wp-go/static/wp-includes/js/dist/edit-widgets.min.js

7 lines
56 KiB
JavaScript
Raw Normal View History

2022-09-13 03:23:28 +00:00
/*! This file is auto-generated */
!function(){var e={4403:function(e,t){var r;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){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 o=i.apply(null,r);o&&e.push(o)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n),r.d(n,{initialize:function(){return er},reinitializeEditor:function(){return Zt}});var e={};r.r(e),r.d(e,{disableComplementaryArea:function(){return L},enableComplementaryArea:function(){return T},pinItem:function(){return O},setFeatureDefaults:function(){return V},setFeatureValue:function(){return D},toggleFeature:function(){return M},unpinItem:function(){return R}});var t={};r.r(t),r.d(t,{getActiveComplementaryArea:function(){return F},isFeatureActive:function(){return z},isItemPinned:function(){return G}});var i={};r.r(i),r.d(i,{closeGeneralSidebar:function(){return Ie},moveBlockToWidgetArea:function(){return Ae},persistStubPost:function(){return he},saveEditedWidgetAreas:function(){return _e},saveWidgetArea:function(){return fe},saveWidgetAreas:function(){return we},setIsInserterOpened:function(){return ke},setIsListViewOpened:function(){return Se},setIsWidgetAreaOpen:function(){return ye},setWidgetAreasOpenState:function(){return ve},setWidgetIdForClientId:function(){return Ee}});var a={};r.r(a),r.d(a,{getWidgetAreas:function(){return Be},getWidgets:function(){return Ne}});var o={};r.r(o),r.d(o,{__experimentalGetInsertionPoint:function(){return Ve},canInsertBlockInWidgetArea:function(){return Fe},getEditedWidgetAreas:function(){return Le},getIsWidgetAreaOpen:function(){return Me},getParentWidgetAreaBlock:function(){return Te},getReferenceWidgetBlocks:function(){return Oe},getWidget:function(){return xe},getWidgetAreaForWidgetId:function(){return Pe},getWidgetAreas:function(){return We},getWidgets:function(){return Ce},isInserterOpened:function(){return De},isListViewOpened:function(){return Ge},isSavingWidgetAreas:function(){return Re}});var s={};r.r(s),r.d(s,{metadata:function(){return Qe},name:function(){return Je},settings:function(){return Xe}});var l=window.wp.element,c=window.wp.blocks,d=window.wp.data,u=window.wp.blockLibrary,m=window.wp.coreData,g=window.wp.widgets,p=window.wp.preferences,h=window.wp.apiFetch,_=r.n(h);var w=(0,d.combineReducers)({blockInserterPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},widgetAreasOpenState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const{type:r}=t;switch(r){case"SET_WIDGET_AREAS_OPEN_STATE":return t.widgetAreasOpenState;case"SET_IS_WIDGET_AREA_OPEN":{const{clientId:r,isOpen:n}=t;return{...e,[r]:n}}default:return e}}}),f=window.wp.i18n,b=window.wp.notices;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t