7 lines
198 KiB
JavaScript
7 lines
198 KiB
JavaScript
|
/*! This file is auto-generated */
|
||
|
this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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 r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));const r="core/edit-post",o="#wp-admin-bar-view a",a="#wp-admin-bar-preview a"},"1ZqX":function(e,t){e.exports=window.wp.data},"4qRI":function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},"51Zz":function(e,t){e.exports=window.wp.dataControls},"6aBm":function(e,t){e.exports=window.wp.mediaUtils},"8oxB":function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!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:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,l=[],u=!1,d=-1;function p(){u&&s&&(u=!1,s.length?l=s.concat(l):d=-1,l.length&&m())}function m(){if(!u){var e=c(p);u=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s&&s[d].run();d=-1,t=l.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function f(){}o.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];l.push(new b(e,t)),1!==l.length||u||c(m)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=f,o.addListener=f,o.once=f,o.off=f,o.removeListener=f,o.removeAllListeners=f,o.emit=f,o.prependListener=f,o.prependOnceListener=f,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"9uj6":function(e,t,n){"use strict";n.r(t);var r=n("4qRI"),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|n
|
||
|
/*!
|
||
|
Copyright (c) 2018 Jed Watson.
|
||
|
Licensed under the MIT License (MIT), see
|
||
|
http://jedwatson.github.io/classnames
|
||
|
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},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,"g",(function(){return h})),n.d(t,"b",(function(){return U})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return H})),n.d(t,"e",(function(){return q})),n.d(t,"f",(function(){return D})),n.d(t,"a",(function(){return B}));var r={};n.r(r),n.d(r,"enableComplementaryArea",(function(){return u})),n.d(r,"disableComplementaryArea",(function(){return d})),n.d(r,"pinItem",(function(){return m})),n.d(r,"unpinItem",(function(){return b}));var o={};n.r(o),n.d(o,"getActiveComplementaryArea",(function(){return f})),n.d(o,"isItemPinned",(function(){return v}));var a=n("1ZqX"),i=n("YLtl");const c=Object(a.combineReducers)({singleEnableItems:function(e={},{type:t,itemType:n,scope:r,item:o}){return"SET_SINGLE_ENABLE_ITEM"===t&&n&&r?{...e,[n]:{...e[n],[r]:o||null}}:e},multipleEnableItems:function(e={},{type:t,itemType:n,scope:r,item:o,isEnable:a}){if("SET_MULTIPLE_ENABLE_ITEM"!==t||!n||!r||!o||Object(i.get)(e,[n,r,o])===a)return e;const c=e[n]||{},s=c[r]||{};return{...e,[n]:{...c,[r]:{...s,[o]:a||!1}}}}});var s=Object(a.combineReducers)({enableItems:c});function l(e,t,n){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:n}}function u(e,t){return l("complementaryArea",e,t)}function d(e){return l("complementaryArea",e,void 0)}function p(e,t,n,r){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:n,isEnable:r}}function m(e,t){return p("pinnedItems",e,t,!0)}function b(e,t){return p("pinnedItems",e,t,!1)}function f(e,t){return function(e,t,n){return Object(i.get)(e.enableItems.singleEnableItems,[t,n])}(e,"complementaryArea",t)}function v(e,t,n){return!1!==function(e,t,n,r){return Object(i.get)(e.enableItems.multipleEnableItems,[t,n,r])}(e,"pinnedItems",t,n)}const h=Object(a.createReduxStore)("core/interface",{reducer:s,actions:r,selectors:o,persist:["enableItems"]});Object(a.registerStore)("core/interface",{reducer:s,actions:r,selectors:o,persist:["enableItems"]});var g=n("wx14"),O=n("GRId"),y=n("TSYQ"),j=n.n(y),E=n("tI+e"),_=n("l3Sj"),w=n("RMJe"),S=n("URob"),x=n("Xxwi"),P=n("KEfo"),T=n("bWcr"),k=n("TvNi"),C=Object(k.withPluginContext)((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));var A=C((function({as:e=E.Button,scope:t,identifier:n,icon:r,selectedIcon:o,...c}){const s=e,l=Object(a.useSelect)(e=>e(h).getActiveComplementaryArea(t)===n,[n]),{enableComplementaryArea:u,disableComplementaryArea:d}=Object(a.useDispatch)(h);return Object(O.createElement)(s,Object(g.a)({icon:o&&l?o:r,onClick:()=>{l?d(t):u(t,n)}},Object(i.omit)(c,["name"])))}));var M=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:r})=>{const o=Object(O.createElement)(A,Object(g.a)({icon:T.a},r));return Object(O.createElement)(O.Fragment,null,Object(O.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&Object(O.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),o),Object(O.createElement)("div",{className:j()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,o))};function I({name:e,as:t=E.Button,onClick:n,...r}){return Object(O.createElement)(E.Fill,{name:e},({onClick:e})=>Object(O.createElement)(t,Object(g.a)({onClick:n||e?(...t)=>{(n||i.noop)(...t),(e||i.noop)(...t)}:void 0},r)))}I.Slot=function({name:e,as:t=E.ButtonGroup,fillProps:n={},bubblesVirtually:r,...o}){return Object(O.createElement)(E.Slot,{name:e,bubblesVirtually:r,fillProps:n},e=>
|