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

7 lines
35 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 M}));var n={};s.r(n),s.d(n,"__unstableToggleFeature",(function(){return F}));var c=s("GRId"),r=s("QyPg"),o=s("GLVC"),a=s("HSyU"),l=s("tI+e"),d=s("YLtl"),u=s("jZUy"),b=s("1ZqX"),m=s("axFQ"),h=s("6aBm"),p=s("wx14"),g=s("l3Sj");var O=function({inspector:e,closeMenu:t,...s}){const i=Object(b.useSelect)(e=>e(m.store).getSelectedBlockClientId(),[]),n=Object(c.useMemo)(()=>document.getElementById("block-"+i),[i]);return Object(c.createElement)(l.MenuItem,Object(p.a)({onClick:()=>{e.open({returnFocusWhenClose:n}),t()}},s),Object(g.__)("Show more settings"))},j=s("TSYQ"),w=s.n(j),f=s("RxS6"),_=s("Ntru"),y=s("K2cm"),v=s("Q4Sy"),E=s("K9lf"),k=s("bWcr");var C=function e({setIsOpened:t}){const s=Object(E.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(g.__)("Add a block")),Object(c.createElement)(l.Button,{className:"customize-widgets-layout__inserter-panel-header-close-button",icon:k.a,onClick:()=>t(!1),"aria-label":Object(g.__)("Close inserter")})),Object(c.createElement)("div",{className:"customize-widgets-layout__inserter-panel-content"},Object(c.createElement)(m.__experimentalLibrary,{showInserterHelpPanel:!0,onSelect:()=>t(!1)})))},x=s("VKE3"),S=s("K+tz"),z=s("hF7m"),W=s("RMJe"),B=s("gdqT");const I=Object(d.flow)([b.combineReducers,(T={features:{fixedToolbar:!1,welcomeGuide:!0}},e=>(t=T,s)=>e(t,s))])({features:(e,t)=>"TOGGLE_FEATURE"===t.type?{...e,[t.feature]:!e[t.feature]}:e});var T;function M(e,t){return Object(d.get)(e.preferences.features,[t],!1)}function F(e){return{type:"TOGGLE_FEATURE",feature:e}}const A={reducer:Object(b.combineReducers)({preferences:I}),selectors:i,actions:n,persist:["preferences"]},N=Object(b.createReduxStore)("core/customize-widgets",A);function G({label:e,info:t,messageActivated:s,messageDeactivated:i,shortcut:n,feature:r}){const o=Object(b.useSelect)(e=>e(N).__unstableIsFeatureActive(r),[r]),{__unstableToggleFeature:a}=Object(b.useDispatch)(N);return Object(c.createElement)(l.MenuItem,{icon:o&&W.a,isSelected:o,onClick:()=>{a(r),o?Object(B.speak)(i||Object(g.__)("Feature deactivated")):Object(B.speak)(s||Object(g.__)("Feature activated"))},role:"menuitemcheckbox",info:t,shortcut:n},e)}Object(b.registerStore)("core/customize-widgets",A);const P=[{keyCombination:{modifier:"primary",character:"b"},description:Object(g.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:Object(g.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:Objec
/*!
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}))}});