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

7 lines
436 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.editWidgets=function(e){var A={};function t(r){if(A[r])return A[r].exports;var i=A[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=A,t.d=function(e,A,r){t.o(e,A)||Object.defineProperty(e,A,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,A){if(1&A&&(e=t(e)),8&A)return e;if(4&A&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&A&&"string"!=typeof e)for(var i in e)t.d(r,i,function(A){return e[A]}.bind(null,i));return r},t.n=function(e){var A=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(A,"a",A),A},t.o=function(e,A){return Object.prototype.hasOwnProperty.call(e,A)},t.p="",t(t.s="./node_modules/@wordpress/edit-widgets/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,A,t){"use strict";function r(){return(r=Object.assign||function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}t.d(A,"a",(function(){return r}))},"./node_modules/@wordpress/edit-widgets/build-module/index.js":function(e,A,t){"use strict";t.r(A),t.d(A,"initialize",(function(){return pA}));var r={};t.r(r),t.d(r,"persistStubPost",(function(){return S})),t.d(r,"saveEditedWidgetAreas",(function(){return B})),t.d(r,"saveWidgetAreas",(function(){return Y})),t.d(r,"saveWidgetArea",(function(){return W})),t.d(r,"setWidgetIdForClientId",(function(){return Q})),t.d(r,"setWidgetAreasOpenState",(function(){return f})),t.d(r,"setIsWidgetAreaOpen",(function(){return k})),t.d(r,"setIsInserterOpened",(function(){return L})),t.d(r,"closeGeneralSidebar",(function(){return J})),t.d(r,"moveBlockToWidgetArea",(function(){return D})),t.d(r,"__unstableToggleFeature",(function(){return N}));var i={};t.r(i),t.d(i,"getWidgetAreas",(function(){return H})),t.d(i,"getWidgets",(function(){return x}));var o={};t.r(o),t.d(o,"getWidgets",(function(){return R})),t.d(o,"getWidget",(function(){return F})),t.d(o,"getWidgetAreas",(function(){return T})),t.d(o,"getWidgetAreaForWidgetId",(function(){return P})),t.d(o,"getEditedWidgetAreas",(function(){return U})),t.d(o,"getReferenceWidgetBlocks",(function(){return X})),t.d(o,"isSavingWidgetAreas",(function(){return V})),t.d(o,"getIsWidgetAreaOpen",(function(){return _})),t.d(o,"isInserterOpened",(function(){return $})),t.d(o,"canInsertBlockInWidgetArea",(function(){return ee})),t.d(o,"__unstableIsFeatureActive",(function(){return Ae}));var a={};t.r(a),t.d(a,"metadata",(function(){return le})),t.d(a,"name",(function(){return Ie})),t.d(a,"settings",(function(){return de}));var n=t("@wordpress/element"),q=t("@wordpress/blocks"),m=t("@wordpress/block-library"),u=t("@wordpress/core-data"),s=t("@wordpress/widgets"),c=t("@wordpress/api-fetch"),l=t.n(c),I=t("@wordpress/data"),d=t("lodash");const g=Object(d.flow)([I.combineReducers,(p={features:{fixedToolbar:!1,welcomeGuide:!0}},e=>(A=p,t)=>e(A,t))])({features:(e,A)=>"TOGGLE_FEATURE"===A.type?{...e,[A.feature]:!e[A.feature]}:e});var p,O=Object(I.combineReducers)({blockInserterPanel:function(e=!1,A){switch(A.type){case"SET_IS_INSERTER_OPENED":return A.value}return e},widgetAreasOpenState:function(e={},A){const{type:t}=A;switch(t){case"SET_WIDGET_AREAS_OPEN_STATE":return A.widgetAreasOpenState;case"SET_IS_WIDGET_AREA_OPEN":{const{clientId:t,isOpen:r}=A;return{...e,[t]:r}}default:return e}},preferences:g});const K="root",C=e=>"widget-area-"+e;const v="core/edit-widgets";function h(e,A,...t){return{type:"SELECT",registryName:e,selectorName:A,args:t}}function j(e,A,...t){return{type:"DISPATCH",registryName:e,actionName:A,args:t}}const y={AWAIT_PROMISE:({promise:e})=>e,SELECT:Object(I.createRegistryControl)(e=>({registryName:A,selectorName:t,args:r})=>e.select(A)[t](...r)),GET_PENDING_ACTIONS:Object
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var t={}.hasOwnProperty;function i(){for(var e=[],A=0;A<arguments.length;A++){var r=arguments[A];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var n in r)t.call(r,n)&&r[n]&&e.push(n);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(A,[]))||(e.exports=r)}()},"@wordpress/a11y":function(e,A){e.exports=window.wp.a11y},"@wordpress/api-fetch":function(e,A){e.exports=window.wp.apiFetch},"@wordpress/block-editor":function(e,A){e.exports=window.wp.blockEditor},"@wordpress/block-library":function(e,A){e.exports=window.wp.blockLibrary},"@wordpress/blocks":function(e,A){e.exports=window.wp.blocks},"@wordpress/components":function(e,A){e.exports=window.wp.components},"@wordpress/compose":function(e,A){e.exports=window.wp.compose},"@wordpress/core-data":function(e,A){e.exports=window.wp.coreData},"@wordpress/data":function(e,A){e.exports=window.wp.data},"@wordpress/element":function(e,A){e.exports=window.wp.element},"@wordpress/hooks":function(e,A){e.exports=window.wp.hooks},"@wordpress/i18n":function(e,A){e.exports=window.wp.i18n},"@wordpress/keyboard-shortcuts":function(e,A){e.exports=window.wp.keyboardShortcuts},"@wordpress/keycodes":function(e,A){e.exports=window.wp.keycodes},"@wordpress/media-utils":function(e,A){e.exports=window.wp.mediaUtils},"@wordpress/notices":function(e,A){e.exports=window.wp.notices},"@wordpress/plugins":function(e,A){e.exports=window.wp.plugins},"@wordpress/primitives":function(e,A){e.exports=window.wp.primitives},"@wordpress/reusable-blocks":function(e,A){e.exports=window.wp.reusableBlocks},"@wordpress/url":function(e,A){e.exports=window.wp.url},"@wordpress/viewport":function(e,A){e.exports=window.wp.viewport},"@wordpress/widgets":function(e,A){e.exports=window.wp.widgets},lodash:function(e,A){e.exports=window.lodash}});