HamroKhanpin/hamrokhaanpaan/wp-includes/js/dist/edit-widgets.min.js
2024-04-29 13:12:44 +05:45

7 lines
58 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.editWidgets=function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));return n},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="F35A")}({"//Lo":function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=o},"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},Cg8A:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));t.a=o},F35A:function(e,t,r){"use strict";r.r(t),r.d(t,"reinitializeEditor",(function(){return _t})),r.d(t,"initialize",(function(){return ht}));var n={};r.r(n),r.d(n,"persistStubPost",(function(){return C})),r.d(n,"saveEditedWidgetAreas",(function(){return B})),r.d(n,"saveWidgetAreas",(function(){return R})),r.d(n,"saveWidgetArea",(function(){return W})),r.d(n,"setWidgetIdForClientId",(function(){return L})),r.d(n,"setWidgetAreasOpenState",(function(){return P})),r.d(n,"setIsWidgetAreaOpen",(function(){return M})),r.d(n,"setIsInserterOpened",(function(){return G})),r.d(n,"closeGeneralSidebar",(function(){return D})),r.d(n,"moveBlockToWidgetArea",(function(){return F})),r.d(n,"__unstableToggleFeature",(function(){return V}));var c={};r.r(c),r.d(c,"getWidgetAreas",(function(){return U})),r.d(c,"getWidgets",(function(){return z}));var o={};r.r(o),r.d(o,"getWidgets",(function(){return q})),r.d(o,"getWidget",(function(){return H})),r.d(o,"getWidgetAreas",(function(){return K})),r.d(o,"getWidgetAreaForWidgetId",(function(){return Q})),r.d(o,"getParentWidgetAreaBlock",(function(){return Y})),r.d(o,"getEditedWidgetAreas",(function(){return J})),r.d(o,"getReferenceWidgetBlocks",(function(){return X})),r.d(o,"isSavingWidgetAreas",(function(){return Z})),r.d(o,"getIsWidgetAreaOpen",(function(){return $})),r.d(o,"isInserterOpened",(function(){return ee})),r.d(o,"__experimentalGetInsertionPoint",(function(){return te})),r.d(o,"canInsertBlockInWidgetArea",(function(){return re})),r.d(o,"__unstableIsFeatureActive",(function(){return ne}));var i={};r.r(i),r.d(i,"metadata",(function(){return je})),r.d(i,"name",(function(){return fe})),r.d(i,"settings",(function(){return _e}));var a=r("GRId"),s=r("HSyU"),l=r("QyPg"),d=r("jZUy"),u=r("GLVC"),b=r("ywyh"),m=r.n(b),g=r("1ZqX"),p=r("YLtl");const O=Object(p.flow)([g.combineReducers,(j={features:{fixedToolbar:!1,welcomeGuide:!0,showBlockBreadcrumbs:!0,themeStyles:!0}},e=>(t=j,r)=>e(t,r))])({features:(e,t)=>"TOGGLE_FEATURE"===t.type?{...e,[t.feature]:!e[t.feature]}:e});var j,f=Object(g.combineReducers)({blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return t.value}return e},widgetAreasOpenState:function(e={},t){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}},preferences:O});const _="root",h=e=>"widget-area-"+e;const E="core/edit-widgets";function w(e,t,...r){return{type:"SELECT",registryName:e,selectorName:t,args:r}}function y(e,t,...r){return{type:"DISPATCH",registryName:e,actionName:t,args:r}}const v={AWAIT_PROMISE:({promise:e})=>e,SELECT:Object(g.createRegistryControl)(e=>({registryName:t,selectorName:r,args:n})=>e.select(t)[r](...n)),GET_PENDING_ACTIONS:Object(g.createRegistryControl)(e=>({postId:t})=>{var r;return(null===(r=k(e).processingQueue[t])||void 0===r?void 0:r.pendingActions)||[]}),IS_PROCESSING_POST:Object(g.createRegistryControl)(e=>({postId:t})=>{var r;return null===(r=k(e).processingQueue[t])||void 0===r?void 0:r.inProgress}),DISPATCH:Object(g.createRegistryControl)(e=>({registryName:t,actionName:r,args:n})=>e.dispatch(t)[r](...n)),RESOLVE_WIDGET_AREAS:Object(g.createRegistryControl)(e=>({query:t})=>e.resolveSelect("core").getEntityRecords(_,"sidebar",t)),RESOLVE_WIDGETS:Object(g.createRegistryControl)(e=>({query:t})=>e.resolveSelect("core").getEntityRecords("root","widget",t))},k=e=>e.stores[E].store.getState();var S=v,I=r("l3Sj"),A=r("onLe"),x=r("U60i");function T(e){if("block"===e.id_base){const t=Object(s.parse)(e.instance.raw.content);return t.length?Object(u.addWidgetIdToBlock)(t[0],e.id):Object(u.addWidgetIdToBlock)(Object(s.createBlock)("core/paragraph",{},[]),e.id)}let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},Object(u.addWidgetIdToBlock)(Object(s.createBlock)("core/legacy-widget",t,[]),e.id)}function N(e,t={}){let r;var n,c,o;"core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance)?r={...t,id:null!==(n=e.attributes.id)&&void 0!==n?n:t.id,id_base:null!==(c=e.attributes.idBase)&&void 0!==c?c:t.id_base,instance:null!==(o=e.attributes.instance)&&void 0!==o?o:t.instance}:r={...t,id_base:"block",instance:{raw:{content:Object(s.serialize)(e)}}};return delete r.rendered,delete r.rendered_form,r}const C=function*(e,t){const r=((e,t)=>({id:e,slug:e,status:"draft",type:"page",blocks:t,meta:{widgetAreaId:e}}))(e,t);return yield y("core","receiveEntityRecords",_,"postType",r,{id:r.id},!1),r};function*B(){const e=yield w(E,"getEditedWidgetAreas");if(null!=e&&e.length)try{yield*R(e),yield y(A.store,"createSuccessNotice",Object(I.__)("Widgets saved."),{type:"snackbar"})}catch(e){yield y(A.store,"createErrorNotice",Object(I.sprintf)(Object(I.__)("There was an error. %s"),e.message),{type:"snackbar"})}}function*R(e){try{for(const t of e)yield*W(t.id)}finally{yield y("core","finishResolution","getEntityRecord",_,"sidebar",{per_page:-1})}}function*W(e){const t=yield w(E,"getWidgets"),r=yield w("core","getEditedEntityRecord",_,"postType",h(e)),n=Object.values(t).filter(({sidebar:t})=>t===e),c=[],o=r.blocks.filter(e=>{const{id:t}=e.attributes;if("core/legacy-widget"===e.name&&t){if(c.includes(t))return!1;c.push(t)}return!0}),i=[];for(const e of n){(yield w(E,"getWidgetAreaForWidgetId",e.id))||i.push(e)}const a=[],s=[],l=[];for(let r=0;r<o.length;r++){const n=o[r],c=Object(u.getWidgetIdFromBlock)(n),i=t[c],d=N(n,i);if(l.push(c),i){yield y("core","editEntityRecord","root","widget",c,{...d,sidebar:e},{undoIgnore:!0});if(!(yield w("core","hasEditsForEntityRecord","root","widget",c)))continue;s.push(({saveEditedEntityRecord:e})=>e("root","widget",c))}else s.push(({saveEntityRecord:t})=>t("root","widget",{...d,sidebar:e}));a.push({block:n,position:r,clientId:n.clientId})}for(const e of i)s.push(({deleteEntityRecord:t})=>t("root","widget",e.id,{force:!0}));const d=(yield y("core","__experimentalBatch",s)).filter(e=>!e.hasOwnProperty("deleted")),b=[];for(let e=0;e<d.length;e++){const t=d[e],{block:n,position:c}=a[e];r.blocks[c].attributes.__internalWidgetId=t.id;var m;if(yield w("core","getLastEntitySaveError","root","widget",t.id))b.push((null===(m=n.attributes)||void 0===m?void 0:m.name)||(null==n?void 0:n.name));l[c]||(l[c]=t.id)}if(b.length)throw new Error(Object(I.sprintf)(Object(I.__)("Could not save the following widgets: %s."),b.join(", ")));yield y("core","editEntityRecord",_,"sidebar",e,{widgets:l},{undoIgnore:!0}),yield*function*(e){const t=yield w("core","getLastEntitySaveError",_,"sidebar",e);yield y("core","saveEditedEntityRecord",_,"sidebar",e);const r=yield w("core","getLastEntitySaveError",_,"sidebar",e);if(r&&t!==r)throw new Error(r)}(e),yield y("core","receiveEntityRecords",_,"postType",r,void 0)}function L(e,t){return{type:"SET_WIDGET_ID_FOR_CLIENT_ID",clientId:e,widgetId:t}}function P(e){return{type:"SET_WIDGET_AREAS_OPEN_STATE",widgetAreasOpenState:e}}function M(e,t){return{type:"SET_IS_WIDGET_AREA_OPEN",clientId:e,isOpen:t}}function G(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function*D(){yield y(x.g.name,"disableComplementaryArea",E)}function*F(e,t){const r=yield w("core/block-editor","getBlockRootClientId",[e]),n=(yield w("core/block-editor","getBlocks")).find(({attributes:e})=>e.id===t).clientId,c=(yield w("core/block-editor","getBlockOrder",n)).length;(yield w(E,"getIsWidgetAreaOpen",n))||(yield y(E,"setIsWidgetAreaOpen",n,!0)),yield y("core/block-editor","moveBlocksToPosition",[e],r,n,c)}function V(e){return{type:"TOGGLE_FEATURE",feature:e}}function*U(){const e={per_page:-1};yield function(e={per_page:-1}){return{type:"RESOLVE_WIDGET_AREAS",query:e}}(e);const t=[],r=(yield w("core","getEntityRecords",_,"sidebar",e)).sort((e,t)=>"wp_inactive_widgets"===e.id?1:"wp_inactive_widgets"===t.id?-1:0);for(const e of r)t.push(Object(s.createBlock)("core/widget-area",{id:e.id,name:e.name})),e.widgets.length||(yield C(h(e.id),[]));const n={};t.forEach((e,t)=>{n[e.clientId]=0===t}),yield P(n),yield C("widget-areas",t)}function*z(){const e={per_page:-1,_embed:"about"};yield function(e={per_page:-1,_embed:"about"}){return{type:"RESOLVE_WIDGETS",query:e}}(e);const t=yield w("core","getEntityRecords","root","widget",e),r={};for(const e of t){const t=T(e);r[e.sidebar]=r[e.sidebar]||[],r[e.sidebar].push(t)}for(const e in r)r.hasOwnProperty(e)&&(yield C(h(e),r[e]))}const q=Object(g.createRegistrySelector)(e=>()=>{const t=e("core").getEntityRecords("root","widget",{per_page:-1,_embed:"about"});return Object(p.keyBy)(t,"id")}),H=Object(g.createRegistrySelector)(e=>(t,r)=>e(E).getWidgets()[r]),K=Object(g.createRegistrySelector)(e=>()=>{const t={per_page:-1};return e("core").getEntityRecords(_,"sidebar",t)}),Q=Object(g.createRegistrySelector)(e=>(t,r)=>e(E).getWidgetAreas().find(t=>e("core").getEditedEntityRecord(_,"postType",h(t.id)).blocks.map(e=>Object(u.getWidgetIdFromBlock)(e)).includes(r))),Y=Object(g.createRegistrySelector)(e=>(t,r)=>{const{getBlock:n,getBlockName:c,getBlockParents:o}=e("core/block-editor");return n(o(r).find(e=>"core/widget-area"===c(e)))}),J=Object(g.createRegistrySelector)(e=>(t,r)=>{let n=e(E).getWidgetAreas();return n?(r&&(n=n.filter(({id:e})=>r.includes(e))),n.filter(({id:t})=>e("core").hasEditsForEntityRecord(_,"postType",h(t))).map(({id:t})=>e("core").getEditedEntityRecord(_,"sidebar",t))):[]}),X=Object(g.createRegistrySelector)(e=>(t,r=null)=>{const n=[],c=e(E).getWidgetAreas();for(const t of c){const c=e("core").getEditedEntityRecord(_,"postType",h(t.id));for(const e of c.blocks){var o;"core/legacy-widget"!==e.name||r&&(null===(o=e.attributes)||void 0===o?void 0:o.referenceWidgetName)!==r||n.push(e)}}return n}),Z=Object(g.createRegistrySelector)(e=>()=>{var t;const r=null===(t=e(E).getWidgetAreas())||void 0===t?void 0:t.map(({id:e})=>e);if(!r)return!1;for(const t of r){if(e("core").isSavingEntityRecord(_,"sidebar",t))return!0}const n=[...Object.keys(e(E).getWidgets()),void 0];for(const t of n){if(e("core").isSavingEntityRecord("root","widget",t))return!0}return!1}),$=(e,t)=>{const{widgetAreasOpenState:r}=e;return!!r[t]};function ee(e){return!!e.blockInserterPanel}function te(e){const{rootClientId:t,insertionIndex:r}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:r}}const re=Object(g.createRegistrySelector)(e=>(t,r)=>{const n=e("core/block-editor").getBlocks(),[c]=n;return e("core/block-editor").canInsertBlockType(r,c.clientId)});function ne(e,t){return Object(p.get)(e.preferences.features,[t],!1)}const ce={reducer:f,controls:S,selectors:o,resolvers:c,actions:n,persist:["preferences"]},oe=Object(g.createReduxStore)(E,ce);Object(g.registerStore)(E,ce),m.a.use((function(e,t){var r;return 0===(null===(r=e.path)||void 0===r?void 0:r.indexOf("/wp/v2/types/widget-area"))?Promise.resolve({}):t(e)}));var ie=r("axFQ"),ae=r("K9lf"),se=r("g56x");const le=Object(ae.createHigherOrderComponent)(e=>t=>{const{clientId:r,name:n}=t,{widgetAreas:c,currentWidgetAreaId:o,canInsertBlockInWidgetArea:i}=Object(g.useSelect)(e=>{var t;if("core/widget-area"===n)return{};const c=e(oe),o=c.getParentWidgetAreaBlock(r);return{widgetAreas:c.getWidgetAreas(),currentWidgetAreaId:null==o||null===(t=o.attributes)||void 0===t?void 0:t.id,canInsertBlockInWidgetArea:c.canInsertBlockInWidgetArea(n)}},[r,n]),{moveBlockToWidgetArea:s}=Object(g.useDispatch)(oe),l=(null==c?void 0:c.length)>1,d="core/widget-area"!==n&&l&&i;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(e,t),d&&Object(a.createElement)(ie.BlockControls,null,Object(a.createElement)(u.MoveToWidgetArea,{widgetAreas:c,currentWidgetAreaId:o,onSelect:e=>{s(t.clientId,e)}})))},"withMoveToWidgetAreaToolbarItem");Object(se.addFilter)("editor.BlockEdit","core/edit-widgets/block-edit",le);var de=r("6aBm");Object(se.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",()=>de.MediaUpload);var ue=r("tI+e"),be=r("TSYQ"),me=r.n(be);var ge=e=>{const[t,r]=Object(a.useState)(!1);return Object(a.useEffect)(()=>{const{ownerDocument:t}=e.current;function n(e){o(e)}function c(){r(!1)}function o(t){e.current.contains(t.target)?r(!0):r(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",c),t.addEventListener("dragenter",o),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",c),t.removeEventListener("dragenter",o)}},[]),t};function pe({id:e}){const[t,r,n]=Object(d.useEntityBlockEditor)("root","postType"),c=Object(a.useRef)(),o=ge(c),i=Object(ie.__experimentalUseInnerBlocksProps)({ref:c},{value:t,onInput:r,onChange:n,templateLock:!1,renderAppender:ie.InnerBlocks.ButtonBlockAppender});return Object(a.createElement)("div",{"data-widget-area-id":e,className:me()("wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper",{"wp-block-widget-area__highlight-drop-zone":o})},Object(a.createElement)("div",i))}const Oe=e=>{const[t,r]=Object(a.useState)(!1);return Object(a.useEffect)(()=>{const{ownerDocument:t}=e.current;function n(){r(!0)}function c(){r(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",c),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",c)}},[]),t},je={name:"core/widget-area",category:"widgets",attributes:{id:{type:"string"},name:{type:"string"}},supports:{html:!1,inserter:!1,customClassName:!1,reusable:!1,__experimentalToolbar:!1,__experimentalParentSelector:!1},editorStyle:"wp-block-widget-area-editor",style:"wp-block-widget-area"},{name:fe}=je,_e={title:Object(I.__)("Widget Area"),description:Object(I.__)("A widget area container."),__experimentalLabel:({name:e})=>e,edit:function({clientId:e,className:t,attributes:{id:r,name:n}}){const c=Object(g.useSelect)(t=>t(oe).getIsWidgetAreaOpen(e),[e]),{setIsWidgetAreaOpen:o}=Object(g.useDispatch)(oe),i=Object(a.useRef)(),s=Object(a.useCallback)(t=>o(e,t),[e]),l=Oe(i),u=ge(i),[b,m]=Object(a.useState)(!1);return Object(a.useEffect)(()=>{l?u&&!c?(s(!0),m(!0)):!u&&c&&b&&s(!1):m(!1)},[c,l,u,b]),Object(a.createElement)(ue.Panel,{className:t,ref:i},Object(a.createElement)(ue.PanelBody,{title:n,opened:c,onToggle:()=>{o(e,!c)},scrollAfterOpen:!l},({opened:e})=>Object(a.createElement)(ue.__unstableDisclosureContent,{className:"wp-block-widget-area__panel-body-content",visible:e},Object(a.createElement)(d.EntityProvider,{kind:"root",type:"postType",id:"widget-area-"+r},Object(a.createElement)(pe,{id:r})))))}};var he=r("TvNi");function Ee({text:e,children:t}){const r=Object(ae.useCopyToClipboard)(e);return Object(a.createElement)(ue.Button,{variant:"secondary",ref:r},t)}class we extends a.Component{constructor(){super(...arguments),this.reboot=this.reboot.bind(this),this.state={error:null}}componentDidCatch(e){this.setState({error:e})}reboot(){this.props.onError()}render(){const{error:e}=this.state;return e?Object(a.createElement)(ie.Warning,{className:"edit-widgets-error-boundary",actions:[Object(a.createElement)(ue.Button,{key:"recovery",onClick:this.reboot,variant:"secondary"},Object(I.__)("Attempt Recovery")),Object(a.createElement)(Ee,{key:"copy-error",text:e.stack},Object(I.__)("Copy Error"))]},Object(I.__)("The editor has encountered an unexpected error.")):this.props.children}}var ye=r("wx14"),ve=r("diJD"),ke=r("hF7m");function Se(){const{redo:e,undo:t}=Object(g.useDispatch)("core"),{saveEditedWidgetAreas:r}=Object(g.useDispatch)(oe);return Object(ke.useShortcut)("core/edit-widgets/undo",e=>{t(),e.preventDefault()},{bindGlobal:!0}),Object(ke.useShortcut)("core/edit-widgets/redo",t=>{e(),t.preventDefault()},{bindGlobal:!0}),Object(ke.useShortcut)("core/edit-widgets/save",e=>{e.preventDefault(),r()},{bindGlobal:!0}),null}Se.Register=function(){const{registerShortcut:e}=Object(g.useDispatch)(ke.store);return Object(a.useEffect)(()=>{e({name:"core/edit-widgets/undo",category:"global",description:Object(I.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-widgets/redo",category:"global",description:Object(I.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}}),e({name:"core/edit-widgets/save",category:"global",description:Object(I.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-widgets/keyboard-shortcuts",category:"main",description:Object(I.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-widgets/next-region",category:"global",description:Object(I.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-widgets/previous-region",category:"global",description:Object(I.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]})},[e]),null};var Ie=Se;var Ae=()=>Object(g.useSelect)(e=>{var t;const{getBlockSelectionEnd:r,getBlockName:n}=e("core/block-editor"),c=r();if("core/widget-area"===n(c))return c;const{getParentWidgetAreaBlock:o}=e(oe),i=o(c),a=null==i?void 0:i.clientId;if(a)return a;const{getEntityRecord:s}=e("core"),l=s(_,"postType","widget-areas");return null==l||null===(t=l.blocks[0])||void 0===t?void 0:t.clientId},[]);function xe({blockEditorSettings:e,children:t,...r}){const{hasUploadPermissions:n,reusableBlocks:c,isFixedToolbarActive:o,keepCaretInsideBlock:i}=Object(g.useSelect)(e=>({hasUploadPermissions:Object(p.defaultTo)(e("core").canUser("create","media"),!0),widgetAreas:e(oe).getWidgetAreas(),widgets:e(oe).getWidgets(),reusableBlocks:[],isFixedToolbarActive:e(oe).__unstableIsFeatureActive("fixedToolbar"),keepCaretInsideBlock:e(oe).__unstableIsFeatureActive("keepCaretInsideBlock")}),[]),{setIsInserterOpened:s}=Object(g.useDispatch)(oe),l=Object(a.useMemo)(()=>{let t;return n&&(t=({onError:t,...r})=>{Object(de.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...r})}),{...e,__experimentalReusableBlocks:c,hasFixedToolbar:o,keepCaretInsideBlock:i,mediaUpload:t,templateLock:"all",__experimentalSetIsInserterOpened:s}},[e,o,i,n,c,s]),u=Ae(),[b,m,O]=Object(d.useEntityBlockEditor)(_,"postType",{id:"widget-areas"});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ie.BlockEditorKeyboardShortcuts.Register,null),Object(a.createElement)(Ie.Register,null),Object(a.createElement)(ue.SlotFillProvider,null,Object(a.createElement)(ie.BlockEditorProvider,Object(ye.a)({value:b,onInput:m,onChange:O,settings:l,useSubRegistry:!1},r),Object(a.createElement)(ie.CopyHandler,null,t),Object(a.createElement)(ve.ReusableBlocksMenuItems,{rootClientId:u}))))}var Te=r("Cg8A"),Ne=r("//Lo"),Ce=r("Mmq9"),Be=r("1CF3");function Re({selectedWidgetAreaId:e}){const t=Object(g.useSelect)(e=>e(oe).getWidgetAreas(),[]),r=Object(a.useMemo)(()=>e&&(null==t?void 0:t.find(t=>t.id===e)),[e,t]);let n;return n=r?"wp_inactive_widgets"===e?Object(I.__)("Blocks in this Widget Area will not be displayed in your site."):r.description:Object(I.__)("Widget Areas are global parts in your sites layout that can accept blocks. These vary by theme, but are typically parts like your Sidebar or Footer."),Object(a.createElement)("div",{className:"edit-widgets-widget-areas"},Object(a.createElement)("div",{className:"edit-widgets-widget-areas__top-container"},Object(a.createElement)(ie.BlockIcon,{icon:Ne.a}),Object(a.createElement)("div",null,Object(a.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(Be.safeHTML)(n)}}),0===(null==t?void 0:t.length)&&Object(a.createElement)("p",null,Object(I.__)("Your theme does not contain any Widget Areas.")),!r&&Object(a.createElement)(ue.Button,{href:Object(Ce.addQueryArgs)("customize.php",{"autofocus[panel]":"widgets",return:window.location.pathname}),isTertiary:!0},Object(I.__)("Manage with live preview")))))}const We=a.Platform.select({web:!0,native:!1});function Le({identifier:e,label:t,isActive:r}){const{enableComplementaryArea:n}=Object(g.useDispatch)(x.g);return Object(a.createElement)(ue.Button,{onClick:()=>n(oe.name,e),className:me()("edit-widgets-sidebar__panel-tab",{"is-active":r}),"aria-label":r?Object(I.sprintf)(Object(I.__)("%s (selected)"),t):t,"data-label":t},t)}function Pe(){const{enableComplementaryArea:e}=Object(g.useDispatch)(x.g),{currentArea:t,hasSelectedNonAreaBlock:r,isGeneralSidebarOpen:n,selectedWidgetAreaBlock:c}=Object(g.useSelect)(e=>{const{getSelectedBlock:t,getBlock:r,getBlockParentsByBlockName:n}=e(ie.store),{getActiveComplementaryArea:c}=e(x.g),o=t(),i=c(oe.name);let a,s=i;return s||(s=o?"edit-widgets/block-inspector":"edit-widgets/block-areas"),o&&(a="core/widget-area"===o.name?o:r(n(o.clientId,"core/widget-area")[0])),{currentArea:s,hasSelectedNonAreaBlock:!(!o||"core/widget-area"===o.name),isGeneralSidebarOpen:!!i,selectedWidgetAreaBlock:a}},[]);return Object(a.useEffect)(()=>{r&&"edit-widgets/block-areas"===t&&n&&e("core/edit-widgets","edit-widgets/block-inspector"),!r&&"edit-widgets/block-inspector"===t&&n&&e("core/edit-widgets","edit-widgets/block-areas")},[r,e]),Object(a.createElement)(x.b,{className:"edit-widgets-sidebar",header:Object(a.createElement)("ul",null,Object(a.createElement)("li",null,Object(a.createElement)(Le,{identifier:"edit-widgets/block-areas",label:c?c.attributes.name:Object(I.__)("Widget Areas"),isActive:"edit-widgets/block-areas"===t})),Object(a.createElement)("li",null,Object(a.createElement)(Le,{identifier:"edit-widgets/block-inspector",label:Object(I.__)("Block"),isActive:"edit-widgets/block-inspector"===t}))),headerClassName:"edit-widgets-sidebar__panel-tabs",title:Object(I.__)("Settings"),closeLabel:Object(I.__)("Close settings"),scope:"core/edit-widgets",identifier:t,icon:Te.a,isActiveByDefault:We},"edit-widgets/block-areas"===t&&Object(a.createElement)(Re,{selectedWidgetAreaId:null==c?void 0:c.attributes.id}),"edit-widgets/block-inspector"===t&&(r?Object(a.createElement)(ie.BlockInspector,null):Object(a.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(I.__)("No block selected."))))}var Me=r("w95h"),Ge=r("Q4Sy");var De=function(){const{hasEditedWidgetAreaIds:e,isSaving:t}=Object(g.useSelect)(e=>{var t;const{getEditedWidgetAreas:r,isSavingWidgetAreas:n}=e(oe);return{hasEditedWidgetAreaIds:(null===(t=r())||void 0===t?void 0:t.length)>0,isSaving:n()}},[]),{saveEditedWidgetAreas:r}=Object(g.useDispatch)(oe);return Object(a.createElement)(ue.Button,{isPrimary:!0,isBusy:t,"aria-disabled":t,onClick:t?void 0:r,disabled:!e},t?Object(I.__)("Saving…"):Object(I.__)("Update"))},Fe=r("Ntru"),Ve=r("K2cm"),Ue=r("RxS6");function ze(){const e=Object(g.useSelect)(e=>e(d.store).hasUndo()),{undo:t}=Object(g.useDispatch)(d.store);return Object(a.createElement)(ue.ToolbarButton,{icon:Object(I.isRTL)()?Ve.a:Fe.a,label:Object(I.__)("Undo"),shortcut:Ue.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?t:void 0})}function qe(){const e=Object(g.useSelect)(e=>e(d.store).hasRedo()),{redo:t}=Object(g.useDispatch)(d.store);return Object(a.createElement)(ue.ToolbarButton,{icon:Object(I.isRTL)()?Fe.a:Ve.a,label:Object(I.__)("Redo"),shortcut:Ue.displayShortcut.primaryShift("z"),"aria-disabled":!e,onClick:e?t:void 0})}var He=r("VKE3"),Ke=r("K+tz"),Qe=r("RMJe"),Ye=r("gdqT");function Je({label:e,info:t,messageActivated:r,messageDeactivated:n,shortcut:c,feature:o}){const i=Object(g.useSelect)(e=>e(oe).__unstableIsFeatureActive(o),[o]),{__unstableToggleFeature:s}=Object(g.useDispatch)(oe);return Object(a.createElement)(ue.MenuItem,{icon:i&&Qe.a,isSelected:i,onClick:()=>{s(o),i?Object(Ye.speak)(n||Object(I.__)("Feature deactivated")):Object(Ye.speak)(r||Object(I.__)("Feature activated"))},role:"menuitemcheckbox",info:t,shortcut:c},e)}const Xe=[{keyCombination:{modifier:"primary",character:"b"},description:Object(I.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:Object(I.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:Object(I.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:Object(I.__)("Remove a link.")},{keyCombination:{modifier:"primary",character:"u"},description:Object(I.__)("Underline the selected text.")}];function Ze({keyCombination:e,forceAriaLabel:t}){const r=e.modifier?Ue.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?Ue.shortcutAriaLabel[e.modifier](e.character):e.character;return Object(a.createElement)("kbd",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||n},Object(p.castArray)(r).map((e,t)=>"+"===e?Object(a.createElement)(a.Fragment,{key:t},e):Object(a.createElement)("kbd",{key:t,className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key"},e)))}var $e=function({description:e,keyCombination:t,aliases:r=[],ariaLabel:n}){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-description"},e),Object(a.createElement)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-term"},Object(a.createElement)(Ze,{keyCombination:t,forceAriaLabel:n}),r.map((e,t)=>Object(a.createElement)(Ze,{keyCombination:e,forceAriaLabel:n,key:t}))))};var et=function({name:e}){const{keyCombination:t,description:r,aliases:n}=Object(g.useSelect)(t=>{const{getShortcutKeyCombination:r,getShortcutDescription:n,getShortcutAliases:c}=t(ke.store);return{keyCombination:r(e),aliases:c(e),description:n(e)}});return t?Object(a.createElement)($e,{keyCombination:t,description:r,aliases:n}):null};const tt=({shortcuts:e})=>Object(a.createElement)("ul",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map((e,t)=>Object(a.createElement)("li",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut",key:t},Object(p.isString)(e)?Object(a.createElement)(et,{name:e}):Object(a.createElement)($e,e)))),rt=({title:e,shortcuts:t,className:r})=>Object(a.createElement)("section",{className:me()("edit-widgets-keyboard-shortcut-help-modal__section",r)},!!e&&Object(a.createElement)("h2",{className:"edit-widgets-keyboard-shortcut-help-modal__section-title"},e),Object(a.createElement)(tt,{shortcuts:t})),nt=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{const n=Object(g.useSelect)(e=>e(ke.store).getCategoryShortcuts(t),[t]);return Object(a.createElement)(rt,{title:e,shortcuts:n.concat(r)})};function ct({isModalActive:e,toggleModal:t}){return Object(ke.useShortcut)("core/edit-widgets/keyboard-shortcuts",t,{bindGlobal:!0}),e?Object(a.createElement)(ue.Modal,{className:"edit-widgets-keyboard-shortcut-help-modal",title:Object(I.__)("Keyboard shortcuts"),closeLabel:Object(I.__)("Close"),onRequestClose:t},Object(a.createElement)(rt,{className:"edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-widgets/keyboard-shortcuts"]}),Object(a.createElement)(nt,{title:Object(I.__)("Global shortcuts"),categoryName:"global"}),Object(a.createElement)(nt,{title:Object(I.__)("Selection shortcuts"),categoryName:"selection"}),Object(a.createElement)(nt,{title:Object(I.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:Object(I.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(I.__)("Forward-slash")}]}),Object(a.createElement)(rt,{title:Object(I.__)("Text formatting"),shortcuts:Xe})):null}const ot={className:"edit-widgets-more-menu__content",position:"bottom left"},it={tooltipPosition:"bottom"};function at(){const[e,t]=Object(a.useState)(!1),r=()=>t(!e);Object(ke.useShortcut)("core/edit-widgets/keyboard-shortcuts",r,{bindGlobal:!0});const n=Object(ae.useViewportMatch)("medium");return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ue.DropdownMenu,{className:"edit-widgets-more-menu",icon:He.a,label:Object(I.__)("Options"),popoverProps:ot,toggleProps:it},()=>Object(a.createElement)(a.Fragment,null,n&&Object(a.createElement)(ue.MenuGroup,{label:Object(I._x)("View","noun")},Object(a.createElement)(Je,{feature:"fixedToolbar",label:Object(I.__)("Top toolbar"),info:Object(I.__)("Access all block and document tools in a single place"),messageActivated:Object(I.__)("Top toolbar activated"),messageDeactivated:Object(I.__)("Top toolbar deactivated")})),Object(a.createElement)(ue.MenuGroup,{label:Object(I.__)("Tools")},Object(a.createElement)(ue.MenuItem,{onClick:()=>{t(!0)},shortcut:Ue.displayShortcut.access("h")},Object(I.__)("Keyboard shortcuts")),Object(a.createElement)(Je,{feature:"welcomeGuide",label:Object(I.__)("Welcome Guide")}),Object(a.createElement)(ue.MenuItem,{role:"menuitem",icon:Ke.a,href:Object(I.__)("https://wordpress.org/support/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(I.__)("Help"),Object(a.createElement)(ue.VisuallyHidden,{as:"span"},Object(I.__)("(opens in a new tab)")))),Object(a.createElement)(ue.MenuGroup,{label:Object(I.__)("Preferences")},Object(a.createElement)(Je,{feature:"keepCaretInsideBlock",label:Object(I.__)("Contain text cursor inside block"),info:Object(I.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:Object(I.__)("Contain text cursor inside block activated"),messageDeactivated:Object(I.__)("Contain text cursor inside block deactivated")}),Object(a.createElement)(Je,{feature:"themeStyles",info:Object(I.__)("Make the editor look like your theme."),label:Object(I.__)("Use theme styles")}),n&&Object(a.createElement)(Je,{feature:"showBlockBreadcrumbs",label:Object(I.__)("Display block breadcrumbs"),info:Object(I.__)("Shows block breadcrumbs at the bottom of the editor."),messageActivated:Object(I.__)("Display block breadcrumbs activated"),messageDeactivated:Object(I.__)("Display block breadcrumbs deactivated")})))),Object(a.createElement)(ct,{isModalActive:e,toggleModal:r}))}var st=function(){const e=Object(ae.useViewportMatch)("medium"),t=Object(a.useRef)(),r=Ae(),n=Object(g.useSelect)(e=>e(oe).getIsWidgetAreaOpen(r),[r]),c=Object(g.useSelect)(e=>e(oe).isInserterOpened()),{setIsWidgetAreaOpen:o,setIsInserterOpened:i}=Object(g.useDispatch)(oe),{selectBlock:s}=Object(g.useDispatch)(ie.store);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"edit-widgets-header"},Object(a.createElement)("div",{className:"edit-widgets-header__navigable-toolbar-wrapper"},e&&Object(a.createElement)("h1",{className:"edit-widgets-header__title"},Object(I.__)("Widgets")),!e&&Object(a.createElement)(ue.VisuallyHidden,{as:"h1",className:"edit-widgets-header__title"},Object(I.__)("Widgets")),Object(a.createElement)(ie.NavigableToolbar,{className:"edit-widgets-header-toolbar","aria-label":Object(I.__)("Document tools")},Object(a.createElement)(ue.ToolbarItem,{ref:t,as:ue.Button,className:"edit-widgets-header-toolbar__inserter-toggle",isPrimary:!0,isPressed:c,onMouseDown:e=>{e.preventDefault()},onClick:()=>{c?t.current.focus():(n||(s(r),o(r,!0)),window.requestAnimationFrame(()=>i(!0)))},icon:Ge.a,label:Object(I._x)("Add block","Generic label for block inserter button")}),e&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ze,null),Object(a.createElement)(qe,null),Object(a.createElement)(ue.ToolbarItem,{as:ie.BlockNavigationDropdown})))),Object(a.createElement)("div",{className:"edit-widgets-header__actions"},Object(a.createElement)(De,null),Object(a.createElement)(x.f.Slot,{scope:"core/edit-widgets"}),Object(a.createElement)(at,null))))};var lt=function(){const{removeNotice:e}=Object(g.useDispatch)(A.store),{notices:t}=Object(g.useSelect)(e=>({notices:e(A.store).getNotices()}),[]),r=Object(p.filter)(t,{isDismissible:!0,type:"default"}),n=Object(p.filter)(t,{isDismissible:!1,type:"default"}),c=Object(p.filter)(t,{type:"snackbar"});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ue.NoticeList,{notices:n,className:"edit-widgets-notices__pinned"}),Object(a.createElement)(ue.NoticeList,{notices:r,className:"edit-widgets-notices__dismissible",onRemove:e}),Object(a.createElement)(ue.SnackbarList,{notices:c,className:"edit-widgets-notices__snackbar",onRemove:e}))};function dt({blockEditorSettings:e}){const{hasThemeStyles:t}=Object(g.useSelect)(e=>({hasThemeStyles:e(oe).__unstableIsFeatureActive("themeStyles")})),r=Object(a.useMemo)(()=>t?e.styles:[],[e,t]);return Object(a.createElement)("div",{className:"edit-widgets-block-editor"},Object(a.createElement)(lt,null),Object(a.createElement)(ie.BlockTools,null,Object(a.createElement)(Ie,null),Object(a.createElement)(ie.BlockEditorKeyboardShortcuts,null),Object(a.createElement)(ie.__unstableEditorStyles,{styles:r}),Object(a.createElement)(ie.BlockSelectionClearer,null,Object(a.createElement)(ie.WritingFlow,null,Object(a.createElement)(ie.ObserveTyping,null,Object(a.createElement)(ie.BlockList,{className:"edit-widgets-main-block-list"}))))))}var ut=()=>{const e=Object(g.useSelect)(e=>{var t;const{getEntityRecord:r}=e("core"),n=r(_,"postType","widget-areas");return null==n||null===(t=n.blocks[0])||void 0===t?void 0:t.clientId},[]);return Object(g.useSelect)(t=>{const{getBlockRootClientId:r,getBlockSelectionEnd:n,getBlockOrder:c,getBlockIndex:o}=t(ie.store),i=t(oe).__experimentalGetInsertionPoint();if(i.rootClientId)return i;const a=n()||e,s=r(a);return a&&""===s?{rootClientId:a,insertionIndex:c(a).length}:{rootClientId:s,insertionIndex:o(a,s)+1}},[e])};const bt={header:Object(I.__)("Widgets top bar"),body:Object(I.__)("Widgets and blocks"),sidebar:Object(I.__)("Widgets settings"),footer:Object(I.__)("Widgets footer")};var mt=function({blockEditorSettings:e}){const t=Object(ae.useViewportMatch)("medium","<"),r=Object(ae.useViewportMatch)("huge",">="),{setIsInserterOpened:n,closeGeneralSidebar:c}=Object(g.useDispatch)(oe),{rootClientId:o,insertionIndex:i}=ut(),{hasBlockBreadCrumbsEnabled:s,hasSidebarEnabled:l,isInserterOpened:d,previousShortcut:u,nextShortcut:b}=Object(g.useSelect)(e=>({hasSidebarEnabled:!!e(x.g).getActiveComplementaryArea(oe.name),isInserterOpened:!!e(oe).isInserterOpened(),hasBlockBreadCrumbsEnabled:e(oe).__unstableIsFeatureActive("showBlockBreadcrumbs"),previousShortcut:e(ke.store).getAllShortcutRawKeyCombinations("core/edit-widgets/previous-region"),nextShortcut:e(ke.store).getAllShortcutRawKeyCombinations("core/edit-widgets/next-region")}),[]);Object(a.useEffect)(()=>{l&&!r&&n(!1)},[l,r]),Object(a.useEffect)(()=>{d&&!r&&c()},[d,r]);const[m,p]=Object(ae.__experimentalUseDialog)({onClose:()=>n(!1)});return Object(a.createElement)(x.e,{labels:bt,header:Object(a.createElement)(st,null),secondarySidebar:d&&Object(a.createElement)("div",Object(ye.a)({ref:m},p,{className:"edit-widgets-layout__inserter-panel"}),Object(a.createElement)("div",{className:"edit-widgets-layout__inserter-panel-header"},Object(a.createElement)(ue.Button,{icon:Me.a,onClick:()=>n(!1)})),Object(a.createElement)("div",{className:"edit-widgets-layout__inserter-panel-content"},Object(a.createElement)(ie.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:t,rootClientId:o,__experimentalInsertionIndex:i}))),sidebar:l&&Object(a.createElement)(x.b.Slot,{scope:"core/edit-widgets"}),content:Object(a.createElement)(dt,{blockEditorSettings:e}),footer:s&&!t&&Object(a.createElement)("div",{className:"edit-widgets-layout__footer"},Object(a.createElement)(ie.BlockBreadcrumb,{rootLabelText:Object(I.__)("Widgets")})),shortcuts:{previous:u,next:b}})};function gt(){const e=Object(g.useSelect)(e=>{const{getEditedWidgetAreas:t}=e(oe),r=t();return(null==r?void 0:r.length)>0},[]);return Object(a.useEffect)(()=>{const t=t=>{if(e)return t.returnValue=Object(I.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[e]),null}function pt(){var e;const t=Object(g.useSelect)(e=>e(oe).__unstableIsFeatureActive("welcomeGuide"),[]),{__unstableToggleFeature:r}=Object(g.useDispatch)(oe),n=Object(g.useSelect)(e=>e(oe).getWidgetAreas({per_page:-1}));if(!t)return null;const c=null==n?void 0:n.every(e=>"wp_inactive_widgets"===e.id||e.widgets.every(e=>e.startsWith("block-"))),o=null!==(e=null==n?void 0:n.filter(e=>"wp_inactive_widgets"!==e.id).length)&&void 0!==e?e:0;return Object(a.createElement)(ue.Guide,{className:"edit-widgets-welcome-guide",contentLabel:Object(I.__)("Welcome to block Widgets"),finishButtonText:Object(I.__)("Get started"),onFinish:()=>r("welcomeGuide"),pages:[{image:Object(a.createElement)(Ot,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},Object(I.__)("Welcome to block Widgets")),c?Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",{className:"edit-widgets-welcome-guide__text"},Object(I.sprintf)(Object(I._n)("Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how theyll look on your site.","Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how theyll look on your site.",o),o))):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",{className:"edit-widgets-welcome-guide__text"},Object(I.__)("You can now add any block to your sites widget areas. Dont worry, all of your favorite widgets still work flawlessly.")),Object(a.createElement)("p",{className:"edit-widgets-welcome-guide__text"},Object(a.createElement)("strong",null,Object(I.__)("Want to stick with the old widgets?"))," ",Object(a.createElement)(ue.ExternalLink,{href:Object(I.__)("https://wordpress.org/plugins/classic-widgets/")},Object(I.__)("Get the Classic Widgets plugin.")))))},{image:Object(a.createElement)(Ot,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},Object(I.__)("Make each block your own")),Object(a.createElement)("p",{className:"edit-widgets-welcome-guide__text"},Object(I.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:Object(a.createElement)(Ot,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},Object(I.__)("Get to know the block library")),Object(a.createElement)("p",{className:"edit-widgets-welcome-guide__text"},Object(a.createInterpolateElement)(Object(I.__)("All of the blocks available to you live in the block library. Youll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:Object(a.createElement)("img",{className:"edit-widgets-welcome-guide__inserter-icon",alt:Object(I.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:Object(a.createElement)(Ot,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},Object(I.__)("Learn how to use the block editor")),Object(a.createElement)("p",{className:"edit-widgets-welcome-guide__text"},Object(I.__)("New to the block editor? Want to learn more about using it? "),Object(a.createElement)(ue.ExternalLink,{href:Object(I.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(I.__)("Here's a detailed guide."))))}]})}function Ot({nonAnimatedSrc:e,animatedSrc:t}){return Object(a.createElement)("picture",{className:"edit-widgets-welcome-guide__image"},Object(a.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),Object(a.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}var jt=function({blockEditorSettings:e,onError:t}){return Object(a.createElement)(we,{onError:t},Object(a.createElement)(xe,{blockEditorSettings:e},Object(a.createElement)(mt,{blockEditorSettings:e}),Object(a.createElement)(Pe,null),Object(a.createElement)(ue.Popover.Slot,null),Object(a.createElement)(he.PluginArea,null),Object(a.createElement)(gt,null),Object(a.createElement)(pt,null)))};const ft=["core/more","core/freeform","core/block"];function _t(e,t){Object(a.unmountComponentAtNode)(e);const r=_t.bind(null,e,t);Object(a.render)(Object(a.createElement)(jt,{blockEditorSettings:t,onError:r}),e)}function ht(e,t){const r=document.getElementById(e),n=_t.bind(null,r,t),c=Object(l.__experimentalGetCoreBlocks)().filter(e=>!(ft.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")));Object(l.registerCoreBlocks)(c),Object(u.registerLegacyWidgetBlock)(),Object(u.registerLegacyWidgetVariations)(t),Et(i),t.__experimentalFetchLinkSuggestions=(e,r)=>Object(d.__experimentalFetchLinkSuggestions)(e,r,t),Object(s.setFreeformContentHandlerName)("core/html"),Object(a.render)(Object(a.createElement)(jt,{blockEditorSettings:t,onError:n}),r)}const Et=e=>{if(!e)return;const{metadata:t,settings:r,name:n}=e;t&&Object(s.unstable__bootstrapServerSideBlockDefinitions)({[n]:t}),Object(s.registerBlockType)(n,r)}},GLVC:function(e,t){e.exports=window.wp.widgets},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},"K+tz":function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=o},K2cm:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));t.a=o},K9lf:function(e,t){e.exports=window.wp.compose},KEfo:function(e,t){e.exports=window.wp.viewport},Mmq9:function(e,t){e.exports=window.wp.url},Ntru:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));t.a=o},Q4Sy:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=o},QyPg:function(e,t){e.exports=window.wp.blockLibrary},RMJe:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=o},RxS6:function(e,t){e.exports=window.wp.keycodes},TSYQ:function(e,t,r){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=c.apply(null,n);i&&e.push(i)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(n=function(){return c}.apply(t,[]))||(e.exports=n)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},TvNi:function(e,t){e.exports=window.wp.plugins},U60i:function(e,t,r){"use strict";r.d(t,"g",(function(){return j})),r.d(t,"b",(function(){return F})),r.d(t,"c",(function(){return L})),r.d(t,"d",(function(){return U})),r.d(t,"e",(function(){return q})),r.d(t,"f",(function(){return M})),r.d(t,"a",(function(){return R}));var n={};r.r(n),r.d(n,"enableComplementaryArea",(function(){return d})),r.d(n,"disableComplementaryArea",(function(){return u})),r.d(n,"pinItem",(function(){return m})),r.d(n,"unpinItem",(function(){return g}));var c={};r.r(c),r.d(c,"getActiveComplementaryArea",(function(){return p})),r.d(c,"isItemPinned",(function(){return O}));var o=r("1ZqX"),i=r("YLtl");const a=Object(o.combineReducers)({singleEnableItems:function(e={},{type:t,itemType:r,scope:n,item:c}){return"SET_SINGLE_ENABLE_ITEM"===t&&r&&n?{...e,[r]:{...e[r],[n]:c||null}}:e},multipleEnableItems:function(e={},{type:t,itemType:r,scope:n,item:c,isEnable:o}){if("SET_MULTIPLE_ENABLE_ITEM"!==t||!r||!n||!c||Object(i.get)(e,[r,n,c])===o)return e;const a=e[r]||{},s=a[n]||{};return{...e,[r]:{...a,[n]:{...s,[c]:o||!1}}}}});var s=Object(o.combineReducers)({enableItems:a});function l(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function d(e,t){return l("complementaryArea",e,t)}function u(e){return l("complementaryArea",e,void 0)}function b(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function m(e,t){return b("pinnedItems",e,t,!0)}function g(e,t){return b("pinnedItems",e,t,!1)}function p(e,t){return function(e,t,r){return Object(i.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function O(e,t,r){return!1!==function(e,t,r,n){return Object(i.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}const j=Object(o.createReduxStore)("core/interface",{reducer:s,actions:n,selectors:c,persist:["enableItems"]});Object(o.registerStore)("core/interface",{reducer:s,actions:n,selectors:c,persist:["enableItems"]});var f=r("wx14"),_=r("GRId"),h=r("TSYQ"),E=r.n(h),w=r("tI+e"),y=r("l3Sj"),v=r("RMJe"),k=r("URob"),S=r("Xxwi"),I=r("KEfo"),A=r("bWcr"),x=r("TvNi"),T=Object(x.withPluginContext)((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));var N=T((function({as:e=w.Button,scope:t,identifier:r,icon:n,selectedIcon:c,...a}){const s=e,l=Object(o.useSelect)(e=>e(j).getActiveComplementaryArea(t)===r,[r]),{enableComplementaryArea:d,disableComplementaryArea:u}=Object(o.useDispatch)(j);return Object(_.createElement)(s,Object(f.a)({icon:c&&l?c:n,onClick:()=>{l?u(t):d(t,r)}},Object(i.omit)(a,["name"])))}));var C=({smallScreenTitle:e,children:t,className:r,toggleButtonProps:n})=>{const c=Object(_.createElement)(N,Object(f.a)({icon:A.a},n));return Object(_.createElement)(_.Fragment,null,Object(_.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&Object(_.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),c),Object(_.createElement)("div",{className:E()("components-panel__header","interface-complementary-area-header",r),tabIndex:-1},t,c))};function B({name:e,as:t=w.Button,onClick:r,...n}){return Object(_.createElement)(w.Fill,{name:e},({onClick:e})=>Object(_.createElement)(t,Object(f.a)({onClick:r||e?(...t)=>{(r||i.noop)(...t),(e||i.noop)(...t)}:void 0},n)))}B.Slot=function({name:e,as:t=w.ButtonGroup,fillProps:r={},bubblesVirtually:n,...c}){return Object(_.createElement)(w.Slot,{name:e,bubblesVirtually:n,fillProps:r},e=>{if(Object(i.isEmpty)(_.Children.toArray(e)))return null;const r=[];_.Children.forEach(e,({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&r.push(t)});const n=_.Children.map(e,e=>!e.props.__unstableExplicitMenuItem&&r.includes(e.props.__unstableTarget)?null:e);return Object(_.createElement)(t,c,n)})};var R=B;const W=e=>Object(_.createElement)(w.MenuItem,Object(i.omit)(e,["__unstableExplicitMenuItem","__unstableTarget"]));function L({scope:e,target:t,__unstableExplicitMenuItem:r,...n}){return Object(_.createElement)(N,Object(f.a)({as:n=>Object(_.createElement)(R,Object(f.a)({__unstableExplicitMenuItem:r,__unstableTarget:`${e}/${t}`,as:W,name:e+"/plugin-more-menu"},n)),role:"menuitemcheckbox",selectedIcon:v.a,name:t,scope:e},n))}function P({scope:e,...t}){return Object(_.createElement)(w.Fill,Object(f.a)({name:"PinnedItems/"+e},t))}P.Slot=function({scope:e,className:t,...r}){return Object(_.createElement)(w.Slot,Object(f.a)({name:"PinnedItems/"+e},r),e=>!Object(i.isEmpty)(e)&&Object(_.createElement)("div",{className:E()(t,"interface-pinned-items")},e))};var M=P;function G({scope:e,children:t,className:r}){return Object(_.createElement)(w.Fill,{name:"ComplementaryArea/"+e},Object(_.createElement)("div",{className:r},t))}const D=T((function({children:e,className:t,closeLabel:r=Object(y.__)("Close plugin"),identifier:n,header:c,headerClassName:i,icon:a,isPinnable:s=!0,panelClassName:l,scope:d,name:u,smallScreenTitle:b,title:m,toggleShortcut:g,isActiveByDefault:p,showIconLabels:O=!1}){const{isActive:f,isPinned:h,activeArea:A,isSmall:x,isLarge:T}=Object(o.useSelect)(e=>{const{getActiveComplementaryArea:t,isItemPinned:r}=e(j),c=t(d);return{isActive:c===n,isPinned:r(d,n),activeArea:c,isSmall:e(I.store).isViewportMatch("< medium"),isLarge:e(I.store).isViewportMatch("large")}},[n,d]);!function(e,t,r,n,c){const i=Object(_.useRef)(!1),a=Object(_.useRef)(!1),{enableComplementaryArea:s,disableComplementaryArea:l}=Object(o.useDispatch)(j);Object(_.useEffect)(()=>{n&&c&&!i.current?(l(e),a.current=!0):a.current&&!c&&i.current?(a.current=!1,s(e,t)):a.current&&r&&r!==t&&(a.current=!1),c!==i.current&&(i.current=c)},[n,c,e,t,r])}(d,n,A,f,x);const{enableComplementaryArea:B,disableComplementaryArea:R,pinItem:W,unpinItem:P}=Object(o.useDispatch)(j);return Object(_.useEffect)(()=>{p&&void 0===A&&!x&&B(d,n)},[A,p,d,n,x]),Object(_.createElement)(_.Fragment,null,s&&Object(_.createElement)(M,{scope:d},h&&Object(_.createElement)(N,{scope:d,identifier:n,isPressed:f&&(!O||T),"aria-expanded":f,label:m,icon:O?v.a:a,showTooltip:!O,isTertiary:O})),u&&s&&Object(_.createElement)(L,{target:u,scope:d,icon:a},m),f&&Object(_.createElement)(G,{className:E()("interface-complementary-area",t),scope:d},Object(_.createElement)(C,{className:i,closeLabel:r,onClose:()=>R(d),smallScreenTitle:b,toggleButtonProps:{label:r,shortcut:g,scope:d,identifier:n}},c||Object(_.createElement)(_.Fragment,null,Object(_.createElement)("strong",null,m),s&&Object(_.createElement)(w.Button,{className:"interface-complementary-area__pin-unpin-item",icon:h?k.a:S.a,label:h?Object(y.__)("Unpin from toolbar"):Object(y.__)("Pin to toolbar"),onClick:()=>(h?P:W)(d,n),isPressed:h,"aria-expanded":h}))),Object(_.createElement)(w.Panel,{className:l},e)))}));D.Slot=function({scope:e,...t}){return Object(_.createElement)(w.Slot,Object(f.a)({name:"ComplementaryArea/"+e},t))};var F=D;class V extends _.Component{componentDidMount(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}componentWillUnmount(){this.isSticky&&document.body.classList.add("sticky-menu"),this.props.isActive&&document.body.classList.remove("is-fullscreen-mode")}componentDidUpdate(e){this.props.isActive!==e.isActive&&this.sync()}sync(){const{isActive:e}=this.props;e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}render(){return null}}var U=V,z=r("K9lf");var q=Object(_.forwardRef)((function({footer:e,header:t,sidebar:r,secondarySidebar:n,notices:c,content:o,drawer:i,actions:a,labels:s,className:l,shortcuts:d},u){const b=Object(_.useRef)(),m=Object(w.__unstableUseNavigateRegions)(b,d);!function(e){Object(_.useEffect)(()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}},[e])}("interface-interface-skeleton__html-container");const g={...{drawer:Object(y.__)("Drawer"),header:Object(y.__)("Header"),body:Object(y.__)("Content"),secondarySidebar:Object(y.__)("Block Library"),sidebar:Object(y.__)("Settings"),actions:Object(y.__)("Publish"),footer:Object(y.__)("Footer")},...s};return Object(_.createElement)("div",{ref:Object(z.useMergeRefs)([u,b]),className:E()(l,"interface-interface-skeleton",m,!!e&&"has-footer")},!!i&&Object(_.createElement)("div",{className:"interface-interface-skeleton__drawer",role:"region","aria-label":g.drawer},i),Object(_.createElement)("div",{className:"interface-interface-skeleton__editor"},!!t&&Object(_.createElement)("div",{className:"interface-interface-skeleton__header",role:"region","aria-label":g.header,tabIndex:"-1"},t),Object(_.createElement)("div",{className:"interface-interface-skeleton__body"},!!n&&Object(_.createElement)("div",{className:"interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":g.secondarySidebar,tabIndex:"-1"},n),!!c&&Object(_.createElement)("div",{className:"interface-interface-skeleton__notices"},c),Object(_.createElement)("div",{className:"interface-interface-skeleton__content",role:"region","aria-label":g.body,tabIndex:"-1"},o),!!r&&Object(_.createElement)("div",{className:"interface-interface-skeleton__sidebar",role:"region","aria-label":g.sidebar,tabIndex:"-1"},r),!!a&&Object(_.createElement)("div",{className:"interface-interface-skeleton__actions",role:"region","aria-label":g.actions,tabIndex:"-1"},a))),!!e&&Object(_.createElement)("div",{className:"interface-interface-skeleton__footer",role:"region","aria-label":g.footer,tabIndex:"-1"},e))}))},URob:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));t.a=o},VKE3:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=o},Xxwi:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));t.a=o},YLtl:function(e,t){e.exports=window.lodash},axFQ:function(e,t){e.exports=window.wp.blockEditor},bWcr:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.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=o},diJD:function(e,t){e.exports=window.wp.reusableBlocks},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},onLe:function(e,t){e.exports=window.wp.notices},"tI+e":function(e,t){e.exports=window.wp.components},w95h:function(e,t,r){"use strict";var n=r("GRId"),c=r("Tqx9");const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=o},wx14:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},ywyh:function(e,t){e.exports=window.wp.apiFetch}});