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

7 lines
34 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.customizeWidgets=function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s="9pbN")}({"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},"9pbN":function(e,t,s){"use strict";s.r(t),s.d(t,"initialize",(function(){return Se}));var i={};s.r(i),s.d(i,"__unstableIsFeatureActive",(function(){return T}));var n={};s.r(n),s.d(n,"__unstableToggleFeature",(function(){return M}));var c=s("GRId"),r=s("QyPg"),o=s("GLVC"),a=s("tI+e"),l=s("YLtl"),d=s("jZUy"),u=s("1ZqX"),b=s("axFQ"),m=s("6aBm"),h=s("wx14"),p=s("l3Sj");var g=function({inspector:e,closeMenu:t,...s}){const i=Object(u.useSelect)(e=>e(b.store).getSelectedBlockClientId(),[]),n=Object(c.useMemo)(()=>document.getElementById("block-"+i),[i]);return Object(c.createElement)(a.MenuItem,Object(h.a)({onClick:()=>{e.open({returnFocusWhenClose:n}),t()}},s),Object(p.__)("Show more settings"))},O=s("TSYQ"),w=s.n(O),j=s("RxS6"),f=s("Ntru"),_=s("K2cm"),y=s("Q4Sy"),v=s("K9lf"),E=s("bWcr");var k=function e({setIsOpened:t}){const s=Object(v.useInstanceId)(e,"customize-widget-layout__inserter-panel-title");return Object(c.createElement)("div",{className:"customize-widgets-layout__inserter-panel","aria-labelledby":s},Object(c.createElement)("div",{className:"customize-widgets-layout__inserter-panel-header"},Object(c.createElement)("h2",{id:s,className:"customize-widgets-layout__inserter-panel-header-title"},Object(p.__)("Add a block")),Object(c.createElement)(a.Button,{className:"customize-widgets-layout__inserter-panel-header-close-button",icon:E.a,onClick:()=>t(!1),"aria-label":Object(p.__)("Close inserter")})),Object(c.createElement)("div",{className:"customize-widgets-layout__inserter-panel-content"},Object(c.createElement)(b.__experimentalLibrary,{showInserterHelpPanel:!0,onSelect:()=>t(!1)})))},C=s("VKE3"),x=s("K+tz"),S=s("hF7m"),z=s("RMJe"),W=s("gdqT");const B=Object(l.flow)([u.combineReducers,(I={features:{fixedToolbar:!1,welcomeGuide:!0}},e=>(t=I,s)=>e(t,s))])({features:(e,t)=>"TOGGLE_FEATURE"===t.type?{...e,[t.feature]:!e[t.feature]}:e});var I;function T(e,t){return Object(l.get)(e.preferences.features,[t],!1)}function M(e){return{type:"TOGGLE_FEATURE",feature:e}}const F={reducer:Object(u.combineReducers)({preferences:B}),selectors:i,actions:n,persist:["preferences"]},A=Object(u.createReduxStore)("core/customize-widgets",F);function N({label:e,info:t,messageActivated:s,messageDeactivated:i,shortcut:n,feature:r}){const o=Object(u.useSelect)(e=>e(A).__unstableIsFeatureActive(r),[r]),{__unstableToggleFeature:l}=Object(u.useDispatch)(A);return Object(c.createElement)(a.MenuItem,{icon:o&&z.a,isSelected:o,onClick:()=>{l(r),o?Object(W.speak)(i||Object(p.__)("Feature deactivated")):Object(W.speak)(s||Object(p.__)("Feature activated"))},role:"menuitemcheckbox",info:t,shortcut:n},e)}Object(u.registerStore)("core/customize-widgets",F);const G=[{keyCombination:{modifier:"primary",character:"b"},description:Object(p.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:Object(p.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:Object(p.__)("Con
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var s={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var c=typeof i;if("string"===c||"number"===c)e.push(i);else if(Array.isArray(i)){if(i.length){var r=n.apply(null,i);r&&e.push(r)}}else if("object"===c)if(i.toString===Object.prototype.toString)for(var o in i)s.call(i,o)&&i[o]&&e.push(o);else e.push(i.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(i=function(){return n}.apply(t,[]))||(e.exports=i)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},VKE3:function(e,t,s){"use strict";var i=s("GRId"),n=s("Tqx9");const c=Object(i.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},YLtl:function(e,t){e.exports=window.lodash},axFQ:function(e,t){e.exports=window.wp.blockEditor},bWcr:function(e,t,s){"use strict";var i=s("GRId"),n=s("Tqx9");const c=Object(i.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=c},g56x:function(e,t){e.exports=window.wp.hooks},gdqT:function(e,t){e.exports=window.wp.a11y},hF7m:function(e,t){e.exports=window.wp.keyboardShortcuts},jZUy:function(e,t){e.exports=window.wp.coreData},l3Sj:function(e,t){e.exports=window.wp.i18n},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},"tI+e":function(e,t){e.exports=window.wp.components},wx14:function(e,t,s){"use strict";function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e}).apply(this,arguments)}s.d(t,"a",(function(){return i}))}});