WordPress/wp-includes/js/dist/edit-post.min.js

7 lines
486 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=437)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},100:function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function A(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,u=[],l=!1,m=-1;function s(){l&&c&&(l=!1,c.length?u=c.concat(u):m=-1,u.length&&q())}function q(){if(!l){var e=A(s);l=!0;for(var t=u.length;t;){for(c=u,u=[];++m<t;)c&&c[m].run();m=-1,t=u.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function I(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||l||A(q)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=I,i.addListener=I,i.once=I,i.off=I,i.removeListener=I,i.removeAllListeners=I,i.emit=I,i.prependListener=I,i.prependOnceListener=I,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},103:function(e,t,r){"use strict";e.exports=function(e){var t,r={};return function e(t,r){var n;if(Array.isArray(r))for(n=0;n<r.length;n++)e(t,r[n]);else for(n in r)t[n]=(t[n]||[]).concat(r[n])}(r,e),(t=function(e){return function(t){return function(n){var i,o,a=r[n.type],A=t(n);if(a)for(i=0;i<a.length;i++)(o=a[i](n,e))&&e.dispatch(o);return A}}}).effects=r,t}},11:function(e,t,r){var n;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var A in n)r.call(n,A)&&n[A]&&e.push(A)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},115:function(e,t){!function(){e.exports=this.wp.warning}()},12:function(e,t){!function(){e.exports=this.wp.blocks}()},128:function(e,t,r){"use strict";var n=r(0),i=r(3);t.a=function(e){var t=e.label,r=e.isChecked,o=e.onChange,a=e.children;return Object(n.createElement)("div",{className:"edit-post-options-modal__option"},Object(n.createElement)(i.CheckboxControl,{label:t,checked:r,onChange:o}),a)}},13:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return n}))},133:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=o},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(42);function i(e,t){if(null==e)return{};var r,i,o=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},144:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},15:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(38);var i=r(28),o=r(39);function a(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,A=e[Symbol.iterator]();!(n=(a=A.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==A.return||A.return()}finally{if(i)throw o}}return r}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},155:function(e,t,r){"use strict";(function(e){var n=r(0),i=r(3),o=r(9),a=r(63),A=r(4),c=(r(115),r(468)),u=Object(i.createSlotFill)("PluginDocumentSettingPanel"),l=u.Fill,m=u.Slot,s=Object(o.compose)(Object(a.withPluginContext)((function(t,r){return void 0===r.name&&void 0!==e&&e.env,{icon:r.icon||t.icon,panelName:"".concat(t.name,"/").concat(r.name)}})),Object(A.withSelect)((function(e,t){var r=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(r),isEnabled:e("core/edit-post").isEditorPanelEnabled(r)}})),Object(A.withDispatch)((function(e,t){var r=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(r)}}})))((function(e){var t=e.isEnabled,r=e.panelName,o=e.opened,a=e.onToggle,A=e.className,u=e.title,m=e.icon,s=e.children;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(c.a,{label:u,panelName:r}),Object(n.createElement)(l,null,t&&Object(n.createElement)(i.PanelBody,{className:A,title:u,icon:m,opened:o,onToggle:a},s)))}));s.Slot=m,t.a=s}).call(this,r(100))},16:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);var i=r(35),o=r(28);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},171:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=o},18:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,"a",(f