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

7 lines
115 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(c){if(t[c])return t[c].exports;var a=t[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,c){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(n.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(c,a,function(t){return e[t]}.bind(null,a));return c},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="dSQ2")}({"0dt7":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o}));const c="core/edit-post",a="#wp-admin-bar-view a",o="#wp-admin-bar-preview a"},"1ZqX":function(e,t){e.exports=window.wp.data},"1iEr":function(e,t,n){"use strict";var c=n("GRId"),a=n("Tqx9");const o=Object(c.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(a.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=o},"2gm7":function(e,t,n){"use strict";var c=n("GRId"),a=n("Tqx9");const o=Object(c.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(a.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=o},"51Zz":function(e,t){e.exports=window.wp.dataControls},"6aBm":function(e,t){e.exports=window.wp.mediaUtils},"8oxB":function(e,t){var n,c,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{c="function"==typeof clearTimeout?clearTimeout:r}catch(e){c=r}}();var i,s=[],u=!1,d=-1;function b(){u&&i&&(u=!1,i.length?s=i.concat(s):d=-1,s.length&&m())}function m(){if(!u){var e=l(b);u=!0;for(var t=s.length;t;){for(i=s,s=[];++d<t;)i&&i[d].run();d=-1,t=s.length}i=null,u=!1,function(e){if(c===clearTimeout)return clearTimeout(e);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function O(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||l(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=O,a.addListener=O,a.once=O,a.off=O,a.removeListener=O,a.removeAllListeners=O,a.emit=O,a.prependListener=O,a.prependOnceListener=O,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},Cg8A:function(e,t,n){"use strict";var c=n("GRId"),a=n("Tqx9");const o=Object(c.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(a.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.2
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var o=typeof c;if("string"===o||"number"===o)e.push(c);else if(Array.isArray(c)){if(c.length){var r=a.apply(null,c);r&&e.push(r)}}else if("object"===o)if(c.toString===Object.prototype.toString)for(var l in c)n.call(c,l)&&c[l]&&e.push(l);else e.push(c.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(c=function(){return a}.apply(t,[]))||(e.exports=c)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},TvNi:function(e,t){e.exports=window.wp.plugins},U60i:function(e,t,n){"use strict";n.d(t,"b",(function(){return K})),n.d(t,"c",(function(){return G})),n.d(t,"d",(function(){return Y})),n.d(t,"e",(function(){return X})),n.d(t,"h",(function(){return q})),n.d(t,"f",(function(){return $})),n.d(t,"g",(function(){return ee})),n.d(t,"a",(function(){return V})),n.d(t,"i",(function(){return M}));var c={};n.r(c),n.d(c,"enableComplementaryArea",(function(){return y})),n.d(c,"disableComplementaryArea",(function(){return w})),n.d(c,"pinItem",(function(){return k})),n.d(c,"unpinItem",(function(){return P})),n.d(c,"toggleFeature",(function(){return T})),n.d(c,"setFeatureValue",(function(){return x})),n.d(c,"setFeatureDefaults",(function(){return I}));var a={};n.r(a),n.d(a,"getActiveComplementaryArea",(function(){return C})),n.d(a,"isItemPinned",(function(){return B})),n.d(a,"isFeatureActive",(function(){return N}));var o=n("wx14"),r=n("GRId"),l=n("TSYQ"),i=n.n(l),s=n("tI+e"),u=n("1ZqX"),d=n("l3Sj"),b=n("RMJe"),m=n("URob"),p=n("Xxwi"),O=n("KEfo"),j=n("bWcr"),E=n("YLtl");const g=Object(u.combineReducers)({features(e={},t){if("SET_FEATURE_DEFAULTS"===t.type){const{scope:n,defaults:c}=t;return{...e,[n]:{...e[n],...c}}}return e}}),h=Object(u.combineReducers)({features(e={},t){if("SET_FEATURE_VALUE"===t.type){const{scope:n,featureName:c,value:a}=t;return{...e,[n]:{...e[n],[c]:a}}}return e}}),_=Object(u.combineReducers)({singleEnableItems:function(e={},{type:t,itemType:n,scope:c,item:a}){return"SET_SINGLE_ENABLE_ITEM"===t&&n&&c?{...e,[n]:{...e[n],[c]:a||null}}:e},multipleEnableItems:function(e={},{type:t,itemType:n,scope:c,item:a,isEnable:o}){if("SET_MULTIPLE_ENABLE_ITEM"!==t||!n||!c||!a||Object(E.get)(e,[n,c,a])===o)return e;const r=e[n]||{},l=r[c]||{};return{...e,[n]:{...r,[c]:{...l,[a]:o||!1}}}}});var f=Object(u.combineReducers)({enableItems:_,preferenceDefaults:g,preferences:h});function v(e,t,n){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:n}}function y(e,t){return v("complementaryArea",e,t)}function w(e){return v("complementaryArea",e,void 0)}function S(e,t,n,c){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:n,isEnable:c}}function k(e,t){return S("pinnedItems",e,t,!0)}function P(e,t){return S("pinnedItems",e,t,!1)}function T(e,t){return function({select:n,dispatch:c}){const a=n.isFeatureActive(e,t);c.setFeatureValue(e,t,!a)}}function x(e,t,n){return{type:"SET_FEATURE_VALUE",scope:e,featureName:t,value:!!n}}function I(e,t){return{type:"SET_FEATURE_DEFAULTS",scope:e,defaults:t}}function C(e,t){return function(e,t,n){return Object(E.get)(e.enableItems.singleEnableItems,[t,n])}(e,"complementaryArea",t)}function B(e,t,n){return!1!==function(e,t,n,c){return Object(E.get)(e.enableItems.multipleEnableItems,[t,n,c])}(e,"pinnedItems",t,n)}function N(e,t,n){var c,a;const o=null===(c=e.preferences.features[t])||void 0===c?void 0:c[n];return!!(void 0!==o?o:null===(a=e.preferenceDefaults.features[t])||void 0===a?void 0:a[n])}const M=Object(u.createReduxStore)("core/interface",{reducer:f,actions:c,selectors:a,persist:["enableItems","preferences"],__experimentalUseThunks:!0});Object(u.registerStore)("core/interface",{reducer:f,actions:c,selectors:a,persist:["enableItems","preferences"],__experimentalUseThunks:!0});var A=n("TvNi"),L=Object(A.withPluginContext)((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));var R=L((function({as:e=s.Button,scope:t,identifier:n,icon:c,selectedIcon:a,...l}){const i=e,d=Object(u.useSelect)(e=>e(M).getActive