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

7 lines
497 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="dSQ2")}({"0dt7":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a}));var n="core/edit-post",i="#wp-admin-bar-view a",a="#wp-admin-bar-preview a"},"1OyB":function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},"1ZqX":function(e,t){e.exports=window.wp.data},"25BE":function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},"51Zz":function(e,t){e.exports=window.wp.dataControls},"6aBm":function(e,t){e.exports=window.wp.mediaUtils},"8oxB":function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function A(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!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:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var c,u=[],l=!1,s=-1;function m(){l&&c&&(l=!1,c.length?u=c.concat(u):s=-1,u.length&&q())}function q(){if(!l){var e=A(m);l=!0;for(var t=u.length;t;){for(c=u,u=[];++s<t;)c&&c[s].run();s=-1,t=u.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!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 d(){}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=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,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}},BsWD:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("a3WO");function i(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},DSFK:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},Ff2n:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbol
/*!
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 a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var o=i.apply(null,n);o&&e.push(o)}else if("object"===a)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)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},TvNi:function(e,t){e.exports=window.wp.plugins},U60i:function(e,t,r){"use strict";r.d(t,"g",(function(){return j})),r.d(t,"b",(function(){return N})),r.d(t,"c",(function(){return R})),r.d(t,"d",(function(){return ee})),r.d(t,"e",(function(){return ie})),r.d(t,"f",(function(){return W})),r.d(t,"a",(function(){return H}));var n={};r.r(n),r.d(n,"enableComplementaryArea",(function(){return q})),r.d(n,"disableComplementaryArea",(function(){return p})),r.d(n,"pinItem",(function(){return O})),r.d(n,"unpinItem",(function(){return b}));var i={};r.r(i),r.d(i,"getActiveComplementaryArea",(function(){return I})),r.d(i,"isItemPinned",(function(){return g}));var a=r("1ZqX"),o=r("rePB"),A=r("YLtl");function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){Object(o.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l=Object(a.combineReducers)({singleEnableItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,a=t.item;return"SET_SINGLE_ENABLE_ITEM"===r&&n&&i?u(u({},e),{},Object(o.a)({},n,u(u({},e[n]),{},Object(o.a)({},i,a||null)))):e},multipleEnableItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,a=t.item,c=t.isEnable;if("SET_MULTIPLE_ENABLE_ITEM"!==r||!n||!i||!a||Object(A.get)(e,[n,i,a])===c)return e;var l=e[n]||{},s=l[i]||{};return u(u({},e),{},Object(o.a)({},n,u(u({},l),{},Object(o.a)({},i,u(u({},s),{},Object(o.a)({},a,c||!1))))))}}),s=Object(a.combineReducers)({enableItems:l});function m(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function q(e,t){return m("complementaryArea",e,t)}function p(e){return m("complementaryArea",e,void 0)}function d(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function O(e,t){return d("pinnedItems",e,t,!0)}function b(e,t){return d("pinnedItems",e,t,!1)}function I(e,t){return function(e,t,r){return Object(A.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function g(e,t,r){return!1!==function(e,t,r,n){return Object(A.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}var j=Object(a.createReduxStore)("core/interface",{reducer:s,actions:n,selectors:i,persist:["enableItems"]});Object(a.registerStore)("core/interface",{reducer:s,actions:n,selectors:i,persist:["enableItems"]});var v=r("wx14"),h=r("Ff2n"),C=r("GRId"),y=r("TSYQ"),E=r.n(y),K=r("tI+e"),f=r("l3Sj"),S=r("RMJe"),M=r("URob"),Z=r("Xxwi"),z=r("KEfo"),w=r("bWcr"),B=r("TvNi"),G=Object(B.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,identifier:t.identifier||"".concat(e.name,"/").concat(t.name)}}));var Y=G((function(e){var t=e.as,r=void 0===t?K.Button:t,n=e.scope,i=e.identifier,o=e.icon,c=e.selectedIcon,u=Object(h.a)(e,["as","scope","identifier","icon","selectedIcon"]),l=r,s=Object(a.useSelect)((function(e){return e(j).getActiveComplementaryArea(n)===i}),[i]),m=Object(a.useDispatch)(j),q=m.enableComplementaryArea,p=m.disableComplementaryArea;return Object(C.createElement)(l,Object(v.a)({icon: