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

7 lines
81 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.customizeWidgets=function(e){var t={};function r(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,s){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},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 s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(s,o,function(t){return e[t]}.bind(null,o));return s},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="./node_modules/@wordpress/customize-widgets/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,r){"use strict";function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return s}))},"./node_modules/@wordpress/customize-widgets/build-module/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,"initialize",(function(){return Ee}));var s={};r.r(s),r.d(s,"__unstableIsFeatureActive",(function(){return k}));var o={};r.r(o),r.d(o,"__unstableToggleFeature",(function(){return L}));var i=r("@wordpress/element"),n=r("@wordpress/block-library"),c=r("@wordpress/widgets"),a=r("@wordpress/components"),u=r("lodash"),l=r("@wordpress/core-data"),A=r("@wordpress/data"),d=r("@wordpress/block-editor"),b=r("@wordpress/media-utils"),m=r("./node_modules/@babel/runtime/helpers/esm/extends.js"),h=r("@wordpress/i18n");var p=function({inspector:e,closeMenu:t,...r}){const s=Object(A.useSelect)(e=>e(d.store).getSelectedBlockClientId(),[]),o=Object(i.useMemo)(()=>document.getElementById("block-"+s),[s]);return Object(i.createElement)(a.MenuItem,Object(m.a)({onClick:()=>{e.open({returnFocusWhenClose:o}),t()}},r),Object(h.__)("Show more settings"))},g=r("./node_modules/classnames/index.js"),O=r.n(g),w=r("@wordpress/keycodes"),j=r("./node_modules/@wordpress/icons/build-module/library/undo.js"),C=r("./node_modules/@wordpress/icons/build-module/library/redo.js"),y=r("./node_modules/@wordpress/icons/build-module/library/plus.js"),q=r("@wordpress/compose"),v=r("./node_modules/@wordpress/icons/build-module/library/close-small.js");var E=function e({setIsOpened:t}){const r=Object(q.useInstanceId)(e,"customize-widget-layout__inserter-panel-title");return Object(i.createElement)("div",{className:"customize-widgets-layout__inserter-panel","aria-labelledby":r},Object(i.createElement)("div",{className:"customize-widgets-layout__inserter-panel-header"},Object(i.createElement)("h2",{id:r,className:"customize-widgets-layout__inserter-panel-header-title"},Object(h.__)("Add a block")),Object(i.createElement)(a.Button,{className:"customize-widgets-layout__inserter-panel-header-close-button",icon:v.a,onClick:()=>t(!1),"aria-label":Object(h.__)("Close inserter")})),Object(i.createElement)("div",{className:"customize-widgets-layout__inserter-panel-content"},Object(i.createElement)(d.__experimentalLibrary,{showInserterHelpPanel:!0,onSelect:()=>t(!1)})))},I=r("./node_modules/@wordpress/icons/build-module/library/more-vertical.js"),K=r("./node_modules/@wordpress/icons/build-module/library/external.js"),f=r("@wordpress/keyboard-shortcuts"),B=r("./node_modules/@wordpress/icons/build-module/library/check.js"),S=r("@wordpress/a11y");const z=Object(u.flow)([A.combineReducers,(M={features:{fixedToolbar:!1,welcomeGuide:!0}},e=>(t=M,r)=>e(t,r))])({features:(e,t)=>"TOGGLE_FEATURE"===t.type?{...e,[t.feature]:!e[t.feature]}:e});var M;function k(e,t){return Object(u.get)(e.preferences.features,[t],!1)}function L(e){return{type:"TOGGLE_FEA
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var n=o.apply(null,s);n&&e.push(n)}}else if("object"===i)if(s.toString===Object.prototype.toString)for(var c in s)r.call(s,c)&&s[c]&&e.push(c);else e.push(s.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()},"@wordpress/a11y":function(e,t){e.exports=window.wp.a11y},"@wordpress/block-editor":function(e,t){e.exports=window.wp.blockEditor},"@wordpress/block-library":function(e,t){e.exports=window.wp.blockLibrary},"@wordpress/blocks":function(e,t){e.exports=window.wp.blocks},"@wordpress/components":function(e,t){e.exports=window.wp.components},"@wordpress/compose":function(e,t){e.exports=window.wp.compose},"@wordpress/core-data":function(e,t){e.exports=window.wp.coreData},"@wordpress/data":function(e,t){e.exports=window.wp.data},"@wordpress/dom":function(e,t){e.exports=window.wp.dom},"@wordpress/element":function(e,t){e.exports=window.wp.element},"@wordpress/hooks":function(e,t){e.exports=window.wp.hooks},"@wordpress/i18n":function(e,t){e.exports=window.wp.i18n},"@wordpress/is-shallow-equal":function(e,t){e.exports=window.wp.isShallowEqual},"@wordpress/keyboard-shortcuts":function(e,t){e.exports=window.wp.keyboardShortcuts},"@wordpress/keycodes":function(e,t){e.exports=window.wp.keycodes},"@wordpress/media-utils":function(e,t){e.exports=window.wp.mediaUtils},"@wordpress/primitives":function(e,t){e.exports=window.wp.primitives},"@wordpress/widgets":function(e,t){e.exports=window.wp.widgets},lodash:function(e,t){e.exports=window.lodash}});