7 lines
58 KiB
JavaScript
7 lines
58 KiB
JavaScript
|
/*! This file is auto-generated */
|
||
|
this.wp=this.wp||{},this.wp.editWidgets=function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.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 c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));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="F35A")}({"//Lo":function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=o},"1CF3":function(e,t){e.exports=window.wp.dom},"1ZqX":function(e,t){e.exports=window.wp.data},"6aBm":function(e,t){e.exports=window.wp.mediaUtils},Cg8A:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.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.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));t.a=o},F35A:function(e,t,r){"use strict";r.r(t),r.d(t,"reinitializeEditor",(function(){return _t})),r.d(t,"initialize",(function(){return ht}));var n={};r.r(n),r.d(n,"persistStubPost",(function(){return C})),r.d(n,"saveEditedWidgetAreas",(function(){return B})),r.d(n,"saveWidgetAreas",(function(){return R})),r.d(n,"saveWidgetArea",(function(){return W})),r.d(n,"setWidgetIdForClientId",(function(){return L})),r.d(n,"setWidgetAreasOpenState",(function(){return P})),r.d(n,"setIsWidgetAreaOpen",(function(){return M})),r.d(n,"setIsInserterOpened",(function(){return G})),r.d(n,"closeGeneralSidebar",(function(){return D})),r.d(n,"moveBlockToWidgetArea",(function(){return F})),r.d(n,"__unstableToggleFeature",(function(){return V}));var c={};r.r(c),r.d(c,"getWidgetAreas",(function(){return U})),r.d(c,"getWidgets",(function(){return z}));var o={};r.r(o),r.d(o,"getWidgets",(function(){return q})),r.d(o,"getWidget",(function(){return H})),r.d(o,"getWidgetAreas",(function(){return K})),r.d(o,"getWidgetAreaForWidgetId",(function(){return Q})),r.d(o,"getParentWidgetAreaBlock",(function(){return Y})),r.d(o,"getEditedWidgetAreas",(function(){return J})),r.d(o,"getReferenceWidgetBlocks",(function(){return X})),r.d(o,"isSavingWidgetAreas",(function(){return Z})),r.d(o,"getIsWidgetAreaOpen",(function(){return $})),r.d(o,"isInserterOpened",(function(){return ee})),r.d(o,"__experimentalGetInsertionPoint",(function(){return te})),r.d(o,"canInsertBlockInWidgetArea",(function(){return re})),r.d(o,"__unstableIsFeatureActive",(function(){return ne}));var i={};r.r(i),r.d(i,"metadata",(function(){return je})),r.d(i,"name",(function(){return fe})),r.d(i,"settings",(function(){return _e}));var a=r("GRId"),s=r("HSyU"),l=r("QyPg"),d=r("jZUy"),u=r(
|
||
|
/*!
|
||
|
Copyright (c) 2018 Jed Watson.
|
||
|
Licensed under the MIT License (MIT), see
|
||
|
http://jedwatson.github.io/classnames
|
||
|
*/!function(){"use strict";var r={}.hasOwnProperty;function c(){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)){if(n.length){var i=c.apply(null,n);i&&e.push(i)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(n=function(){return c}.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 F})),r.d(t,"c",(function(){return L})),r.d(t,"d",(function(){return U})),r.d(t,"e",(function(){return q})),r.d(t,"f",(function(){return M})),r.d(t,"a",(function(){return R}));var n={};r.r(n),r.d(n,"enableComplementaryArea",(function(){return d})),r.d(n,"disableComplementaryArea",(function(){return u})),r.d(n,"pinItem",(function(){return m})),r.d(n,"unpinItem",(function(){return g}));var c={};r.r(c),r.d(c,"getActiveComplementaryArea",(function(){return p})),r.d(c,"isItemPinned",(function(){return O}));var o=r("1ZqX"),i=r("YLtl");const a=Object(o.combineReducers)({singleEnableItems:function(e={},{type:t,itemType:r,scope:n,item:c}){return"SET_SINGLE_ENABLE_ITEM"===t&&r&&n?{...e,[r]:{...e[r],[n]:c||null}}:e},multipleEnableItems:function(e={},{type:t,itemType:r,scope:n,item:c,isEnable:o}){if("SET_MULTIPLE_ENABLE_ITEM"!==t||!r||!n||!c||Object(i.get)(e,[r,n,c])===o)return e;const a=e[r]||{},s=a[n]||{};return{...e,[r]:{...a,[n]:{...s,[c]:o||!1}}}}});var s=Object(o.combineReducers)({enableItems:a});function l(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function d(e,t){return l("complementaryArea",e,t)}function u(e){return l("complementaryArea",e,void 0)}function b(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function m(e,t){return b("pinnedItems",e,t,!0)}function g(e,t){return b("pinnedItems",e,t,!1)}function p(e,t){return function(e,t,r){return Object(i.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function O(e,t,r){return!1!==function(e,t,r,n){return Object(i.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}const j=Object(o.createReduxStore)("core/interface",{reducer:s,actions:n,selectors:c,persist:["enableItems"]});Object(o.registerStore)("core/interface",{reducer:s,actions:n,selectors:c,persist:["enableItems"]});var f=r("wx14"),_=r("GRId"),h=r("TSYQ"),E=r.n(h),w=r("tI+e"),y=r("l3Sj"),v=r("RMJe"),k=r("URob"),S=r("Xxwi"),I=r("KEfo"),A=r("bWcr"),x=r("TvNi"),T=Object(x.withPluginContext)((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));var N=T((function({as:e=w.Button,scope:t,identifier:r,icon:n,selectedIcon:c,...a}){const s=e,l=Object(o.useSelect)(e=>e(j).getActiveComplementaryArea(t)===r,[r]),{enableComplementaryArea:d,disableComplementaryArea:u}=Object(o.useDispatch)(j);return Object(_.createElement)(s,Object(f.a)({icon:c&&l?c:n,onClick:()=>{l?u(t):d(t,r)}},Object(i.omit)(a,["name"])))}));var C=({smallScreenTitle:e,children:t,className:r,toggleButtonProps:n})=>{const c=Object(_.createElement)(N,Object(f.a)({icon:A.a},n));return Object(_.createElement)(_.Fragment,null,Object(_.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&Object(_.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),c),Object(_.createElement)("div",{className:E()("components-panel__header","interface-complementary-area-header",r),tabIndex:-1},t,c))};function B({name:e,as:t=w.Button,onClick:r,...n}){return Object(_.createElement)(w.Fill,{name:e},({onClick:e})=>Object(_.createElement)(t,Object(f.a)({onClick:r||e?(...t)=>{(r||i.noop)(...t),(e||i.noop)(...t)}:void 0},n)))}B.Slot=function({name:e,as:t=w.ButtonGroup,fillProps:r={},bubblesVirtually:n,...c}){return Object(_.createElement)(w.Slot,{name:e,bubblesVirtually:n,fillProps:r},e=>
|