akashop/volumes/wp/wp-includes/js/dist/customize-widgets.min.js

7 lines
40 KiB
JavaScript
Raw Normal View History

2024-03-20 07:48:21 +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 s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)){if(r.length){var o=i.apply(null,r);o&&e.push(o)}}else if("object"===s){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},5619:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;0!=i--;){var o=s[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.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 rt},store:function(){return P}});var e={};r.r(e),r.d(e,{__experimentalGetInsertionPoint:function(){return O},isInserterOpened:function(){return M}});var t={};r.r(t),r.d(t,{setIsInserterOpened:function(){return T}});var i={};r.r(i),r.d(i,{closeModal:function(){return X},disableComplementaryArea:function(){return j},enableComplementaryArea:function(){return $},openModal:function(){return Q},pinItem:function(){return Y},setDefaultComplementaryArea:function(){return U},setFeatureDefaults:function(){return J},setFeatureValue:function(){return Z},toggleFeature:function(){return K},unpinItem:function(){return q}});var s={};r.r(s),r.d(s,{getActiveComplementaryArea:function(){return ee},isComplementaryAreaLoading:function(){return te},isFeatureActive:function(){return ne},isItemPinned:function(){return re},isModalActive:function(){return ie}});var o=window.wp.element,a=window.wp.blockLibrary,c=window.wp.widgets,l=window.wp.blocks,d=window.wp.data,u=window.wp.preferences,m=window.wp.components,h=window.wp.i18n,p=window.wp.blockEditor,g=window.wp.compose,f=window.wp.hooks;function b({text:e,children:t}){const r=(0,g.useCopyToClipboard)(e);return(0,o.createElement)(m.Button,{variant:"secondary",ref:r},t)}class w extends o.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),(0,f.doAction)("editor.ErrorBoundary.errorLogged",e)}render(){const{error:e}=this.state;return e?(0,o.createElement)(p.Warning,{className:"customize-widgets-error-boundary",actions:[(0,o.createElement)(b,{key:"copy-error",text:e.stack},(0,h.__)("Copy Error"))]},(0,h.__)("The editor has encountered an unexpected error.")):this.props.children}}var _=window.wp.c