/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.editSite=function(e){var t={};function n(c){if(t[c])return t[c].exports;var r=t[c]={i:c,l:!1,exports:{}};return e[c].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,c){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(n.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(c,r,function(t){return e[t]}.bind(null,r));return c},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="IqXm")}({"0Ene":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));t.a=a},"1ZqX":function(e,t){e.exports=window.wp.data},"1iEr":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},"2gm7":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},"51Zz":function(e,t){e.exports=window.wp.dataControls},"6aBm":function(e,t){e.exports=window.wp.mediaUtils},B9Az:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");var a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},Cg8A:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.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=a},Civd:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},IqXm:function(e,t,n){"use strict";n.r(t),n.d(t,"reinitializeEditor",(function(){return qr})),n.d(t,"initializeEditor",(function(){return $r})),n.d(t,"__experimentalMainDashboardButton",(function(){return fc})),n.d(t,"__experimentalNavigationToggle",(function(){return Sc})),n.d(t,"PluginSidebar",(function(){return Ur})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return Hr})),n.d(t,"PluginMoreMenuItem",(function(){return Wr}));var c={};n.r(c),n.d(c,"toggleFeature",(function(){return I})),n.d(c,"__experimentalSetPreviewDeviceType",(function(){return N})),n.d(c,"setTemplate",(function(){return P})),n.d(c,"addTemplate",(function(){return M})),n.d(c,"removeTemplate",(function(){return R})),n.d(c,"setTemplatePart",(function(){return A})),n.d(c,"setHomeTemplateId",(function(){return L})),n.d(c,"setPage",(function(){return B})),n.d(c,"setNavigationPanelActiveMenu",(function(){return D})),n.d(c,"openNavigationPanelToMenu",(function(){return F})),n.d(c,"setIsNavigationPanelOpened",(function(){return V})),n.d(c,"setIsInserterOpened",(function(){return G})),n.d(c,"updateSettings",(function(){return z})),n.d(c,"setIsListViewOpened",(function(){return U})),n.d(c,"revertTemplate",(function(){return H})),n.d(c,"openGeneralSidebar",(function(){return W})),n.d(c,"closeGeneralSidebar",(function(){return q}));var r={};n.r(r),n.d(r,"isFeatureActive",(function(){return Q})),n.d(r,"__experimentalGetPreviewDeviceType",(function(){return Z})),n.d(r,"getCanUserCreateMedia",(function(){return J})),n.d(r,"getReusableBlocks",(function(){return ee})),n.d(r,"getSettings",(function(){return te})),n.d(r,"getHomeTemplateId",(function(){return ne})),n.d(r,"getEditedPostType",(function(){return re})),n.d(r,"getEditedPostId",(function(){return ae})),n.d(r,"getPage",(function(){return le})),n.d(r,"getNavigationPanelActiveMenu",(function(){return oe})),n.d(r,"getCurrentTemplateNavigationPanelSubMenu",(function(){return ie})),n.d(r,"isNavigationOpened",(function(){return se})),n.d(r,"isInserterOpened",(function(){return ue})),n.d(r,"__experimentalGetInsertionPoint",(function(){return me})),n.d(r,"isListViewOpened",(function(){return de})),n.d(r,"getCurrentTemplateTemplateParts",(function(){return be}));var a=n("GRId"),l=n("HSyU"),o=n("QyPg"),i=n("1ZqX"),s=n("jZUy"),u=n("jSdM"),m=n("l3Sj"),d=n("KEfo"),b=n("Mmq9"),p=n("g56x"),O=n("6aBm");Object(p.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",()=>O.MediaUpload);var j=n("51Zz");const _={features:{welcomeGuide:!0,welcomeGuideStyles:!0}},g="core/edit-site",h=["index","singular","archive","single","page","home","404","search","author","category","taxonomy","date","tag","attachment","single-post","front-page"],f=["page-home"],E=["post-","author-","single-post-","tag-"],v=["page-"],y={singular:["single","page"],index:["archive","404","search","singular","home"],home:["front-page"]},w=[{area:"header",menu:"template-parts-headers",title:Object(m.__)("headers")},{area:"footer",menu:"template-parts-footers",title:Object(m.__)("footers")},{area:"sidebar",menu:"template-parts-sidebars",title:Object(m.__)("sidebars")},{area:"uncategorized",menu:"template-parts-general",title:Object(m.__)("general")}],S=Object(i.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.features,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_FEATURE":return{...e,[t.feature]:!e[t.feature]};default:return e}}});var x=Object(i.combineReducers)({preferences:S,deviceType:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PREVIEW_DEVICE_TYPE":return t.deviceType}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},editedPost:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE":case"SET_PAGE":return{type:"wp_template",id:t.templateId,page:t.page};case"SET_TEMPLATE_PART":return{type:"wp_template_part",id:t.templatePartId}}return e},homeTemplateId:function(e,t){switch(t.type){case"SET_HOME_TEMPLATE":return t.homeTemplateId}return e},navigationPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{menu:"root",isOpen:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_NAVIGATION_PANEL_ACTIVE_MENU":return{...e,menu:t.menu};case"OPEN_NAVIGATION_PANEL_TO_MENU":return{...e,isOpen:!0,menu:t.menu};case"SET_IS_NAVIGATION_PANEL_OPENED":return{...e,menu:t.isOpen?e.menu:"root",isOpen:t.isOpen};case"SET_IS_LIST_VIEW_OPENED":return{...e,menu:e.isOpen&&t.isOpen?"root":e.menu,isOpen:!t.isOpen&&e.isOpen};case"SET_IS_INSERTER_OPENED":return{...e,menu:e.isOpen&&t.value?"root":e.menu,isOpen:!t.value&&e.isOpen}}return e},blockInserterPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_NAVIGATION_PANEL_TO_MENU":return!1;case"SET_IS_NAVIGATION_PANEL_OPENED":case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_NAVIGATION_PANEL_TO_MENU":return!1;case"SET_IS_NAVIGATION_PANEL_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e}}),k=n("onLe"),T=n("U60i");function C(e){return!!e&&("custom"===(null==e?void 0:e.source)&&(null==e?void 0:e.has_theme_file))}function I(e){return{type:"TOGGLE_FEATURE",feature:e}}function N(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function*P(e,t){const n={templateSlug:t};if(!t){const t=yield i.controls.resolveSelect(s.store,"getEntityRecord","postType","wp_template",e);n.templateSlug=null==t?void 0:t.slug}return{type:"SET_TEMPLATE",templateId:e,page:{context:n}}}function*M(e){const t=yield i.controls.dispatch(s.store,"saveEntityRecord","postType","wp_template",e);return e.content&&(yield i.controls.dispatch(s.store,"editEntityRecord","postType","wp_template",t.id,{blocks:Object(l.parse)(e.content)},{undoIgnore:!0})),{type:"SET_TEMPLATE",templateId:t.id,page:{context:{templateSlug:t.slug}}}}function*R(e){try{yield i.controls.dispatch(s.store,"deleteEntityRecord","postType",e.type,e.id,{force:!0});const t=yield i.controls.select(s.store,"getLastEntityDeleteError","postType",e.type,e.id);if(t)throw t;yield i.controls.dispatch(k.store,"createSuccessNotice",Object(m.sprintf)(Object(m.__)('"%s" removed.'),e.title.rendered),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(m.__)("An error occurred while deleting the template.");yield i.controls.dispatch(k.store,"createErrorNotice",t,{type:"snackbar"})}}function A(e){return{type:"SET_TEMPLATE_PART",templatePartId:e}}function L(e){return{type:"SET_HOME_TEMPLATE",homeTemplateId:e}}function*B(e){var t;if(!e.path&&null!==(t=e.context)&&void 0!==t&&t.postId){const t=yield i.controls.resolveSelect(s.store,"getEntityRecord","postType",e.context.postType||"post",e.context.postId);e.path=Object(b.getPathAndQueryString)(t.link)}const n=yield i.controls.resolveSelect(s.store,"__experimentalGetTemplateForLink",e.path);if(!n)return;const{id:c,slug:r}=n;return yield{type:"SET_PAGE",page:r?{...e,context:{...e.context,templateSlug:r}}:e,templateId:c},c}function D(e){return{type:"SET_NAVIGATION_PANEL_ACTIVE_MENU",menu:e}}function F(e){return{type:"OPEN_NAVIGATION_PANEL_TO_MENU",menu:e}}function V(e){return{type:"SET_IS_NAVIGATION_PANEL_OPENED",isOpen:e}}function G(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function z(e){return{type:"UPDATE_SETTINGS",settings:e}}function U(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function*H(e){let{allowUndo:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(C(e))try{var n;const c=yield i.controls.select(s.store,"getEntity","postType",e.type);if(!c)return void(yield i.controls.dispatch(k.store,"createErrorNotice",Object(m.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"}));const r=Object(b.addQueryArgs)(`${c.baseURL}/${e.id}`,{context:"edit",source:"theme"}),a=yield Object(j.apiFetch)({path:r});if(!a)return void(yield i.controls.dispatch(k.store,"createErrorNotice",Object(m.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"}));const o=e=>{let{blocks:t=[]}=e;return Object(l.__unstableSerializeAndClean)(t)},u=yield i.controls.select(s.store,"getEditedEntityRecord","postType",e.type,e.id);yield i.controls.dispatch(s.store,"editEntityRecord","postType",e.type,e.id,{content:o,blocks:u.blocks,source:"custom"},{undoIgnore:!0});const d=Object(l.parse)(null==a||null===(n=a.content)||void 0===n?void 0:n.raw);if(yield i.controls.dispatch(s.store,"editEntityRecord","postType",e.type,a.id,{content:o,blocks:d,source:"theme"}),t){const t=async()=>{await Object(i.dispatch)(s.store).editEntityRecord("postType",e.type,u.id,{content:o,blocks:u.blocks,source:"custom"})};yield i.controls.dispatch(k.store,"createSuccessNotice",Object(m.__)("Template reverted."),{type:"snackbar",actions:[{label:Object(m.__)("Undo"),onClick:t}]})}else yield i.controls.dispatch(k.store,"createSuccessNotice",Object(m.__)("Template reverted."))}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(m.__)("Template revert failed. Please reload.");yield i.controls.dispatch(k.store,"createErrorNotice",t,{type:"snackbar"})}else yield i.controls.dispatch(k.store,"createErrorNotice",Object(m.__)("This template is not revertable."),{type:"snackbar"})}function*W(e){yield i.controls.dispatch(T.i,"enableComplementaryArea",g,e)}function*q(){yield i.controls.dispatch(T.i,"disableComplementaryArea",g)}var $=n("YLtl"),K=n("pPDe");function Y(e,t,n){return!!y[e]&&("home"===e&&"posts"!==n||y[e].every(e=>t.includes(e)||Y(e,t,n)))}function X(e){if(h.includes(e))return"templates";if(f.includes(e))return"templates-general";if(E.some(t=>e.startsWith(t)))return"templates-posts";return v.some(t=>e.startsWith(t))?"templates-pages":"templates-general"}function Q(e,t){return Object($.get)(e.preferences.features,[t],!1)}function Z(e){return e.deviceType}const J=Object(i.createRegistrySelector)(e=>()=>e(s.store).canUser("create","media")),ee=Object(i.createRegistrySelector)(e=>()=>"web"===a.Platform.OS?e(s.store).getEntityRecords("postType","wp_block",{per_page:-1}):[]),te=Object(K.a)((e,t)=>{const n={...e.settings,outlineMode:!0,focusMode:Q(e,"focusMode"),hasFixedToolbar:Q(e,"fixedToolbar"),__experimentalSetIsInserterOpened:t,__experimentalReusableBlocks:ee(e)};return J(e)?(n.mediaUpload=t=>{let{onError:n,...c}=t;Object(O.uploadMedia)({wpAllowedMimeTypes:e.settings.allowedMimeTypes,onError:e=>{let{message:t}=e;return n(t)},...c})},n):n},e=>[J(e),e.settings,Q(e,"focusMode"),Q(e,"fixedToolbar"),ee(e)]);function ne(e){return e.homeTemplateId}function ce(e){return e.editedPost}function re(e){return ce(e).type}function ae(e){return ce(e).id}function le(e){return ce(e).page}function oe(e){return e.navigationPanel.menu}const ie=Object(i.createRegistrySelector)(e=>t=>{const n=re(t),c=ae(t),r=c?e(s.store).getEntityRecord("postType",n,c):null;if(!r)return"root";var a;if("wp_template_part"===n)return(null===(a=w.find(e=>e.area===(null==r?void 0:r.area)))||void 0===a?void 0:a.menu)||"template-parts";const l=e(s.store).getEntityRecords("postType","wp_template"),o=e(s.store).getEditedEntityRecord("root","site").show_on_front;return Y(r.slug,Object($.map)(l,"slug"),o)?"templates-unused":X(r.slug)});function se(e){return e.navigationPanel.isOpen}function ue(e){return!!e.blockInserterPanel}function me(e){const{rootClientId:t,insertionIndex:n,filterValue:c}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:n,filterValue:c}}function de(e){return e.listViewPanel}const be=Object(i.createRegistrySelector)(e=>t=>{var n;const c=re(t),r=ae(t),a=e(s.store).getEditedEntityRecord("postType",c,r),o=e(s.store).getEntityRecords("postType","wp_template_part",{per_page:-1}),i=Object($.keyBy)(o,e=>e.id);return(null!==(n=a.blocks)&&void 0!==n?n:[]).filter(e=>Object(l.isTemplatePart)(e)).map(e=>{const{attributes:{theme:t,slug:n}}=e;return{templatePart:i[`${t}//${n}`],block:e}}).filter(e=>{let{templatePart:t}=e;return!!t})}),pe={reducer:x,actions:c,selectors:r,controls:j.controls,persist:["preferences"]},Oe=Object(i.createReduxStore)(g,pe);Object(i.registerStore)(g,pe);var je,_e=n("tI+e"),ge=n("wx14"),he=je||(je={});he.Pop="POP",he.Push="PUSH",he.Replace="REPLACE";var fe=function(e){return e};function Ee(e){e.preventDefault(),e.returnValue=""}function ve(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function ye(){return Math.random().toString(36).substr(2,8)}function we(e){var t=e.pathname;t=void 0===t?"/":t;var n=e.search;return n=void 0===n?"":n,e=void 0===(e=e.hash)?"":e,n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),e&&"#"!==e&&(t+="#"===e.charAt(0)?e:"#"+e),t}function Se(e){var t={};if(e){var n=e.indexOf("#");0<=n&&(t.hash=e.substr(n),e=e.substr(0,n)),0<=(n=e.indexOf("?"))&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}const xe=function(e){function t(){var e=l.location,t=o.state||{};return[t.idx,fe({pathname:e.pathname,search:e.search,hash:e.hash,state:t.usr||null,key:t.key||"default"})]}function n(e){return"string"==typeof e?e:we(e)}function c(e,t){return void 0===t&&(t=null),fe(Object(ge.a)({pathname:m.pathname,hash:"",search:""},"string"==typeof e?Se(e):e,{state:t,key:ye()}))}function r(e){s=e,e=t(),u=e[0],m=e[1],d.call({action:s,location:m})}function a(e){o.go(e)}void 0===e&&(e={});var l=void 0===(e=e.window)?document.defaultView:e,o=l.history,i=null;l.addEventListener("popstate",(function(){if(i)b.call(i),i=null;else{var e=je.Pop,n=t(),c=n[0];if(n=n[1],b.length){if(null!=c){var l=u-c;l&&(i={action:e,location:n,retry:function(){a(-1*l)}},a(l))}}else r(e)}}));var s=je.Pop,u=(e=t())[0],m=e[1],d=ve(),b=ve();return null==u&&(u=0,o.replaceState(Object(ge.a)({},o.state,{idx:u}),"")),{get action(){return s},get location(){return m},createHref:n,push:function e(t,a){var i=je.Push,s=c(t,a);if(!b.length||(b.call({action:i,location:s,retry:function(){e(t,a)}}),0)){var m=[{usr:s.state,key:s.key,idx:u+1},n(s)];s=m[0],m=m[1];try{o.pushState(s,"",m)}catch(e){l.location.assign(m)}r(i)}},replace:function e(t,a){var l=je.Replace,i=c(t,a);b.length&&(b.call({action:l,location:i,retry:function(){e(t,a)}}),1)||(i=[{usr:i.state,key:i.key,idx:u},n(i)],o.replaceState(i[0],"",i[1]),r(l))},go:a,back:function(){a(-1)},forward:function(){a(1)},listen:function(e){return d.push(e)},block:function(e){var t=b.push(e);return 1===b.length&&l.addEventListener("beforeunload",Ee),function(){t(),b.length||l.removeEventListener("beforeunload",Ee)}}}}(),ke=xe.push,Te=xe.replace;xe.push=function(e,t){return ke.call(xe,Object(b.addQueryArgs)(window.location.href,e),t)},xe.replace=function(e,t){return Te.call(xe,Object(b.addQueryArgs)(window.location.href,e),t)};var Ce=xe;const Ie=Object(a.createContext)(),Ne=Object(a.createContext)();function Pe(){return Object(a.useContext)(Ie)}function Me(){return Object(a.useContext)(Ne)}function Re(e){const t=new URLSearchParams(e.search);return{...e,params:Object.fromEntries(t.entries())}}function Ae(e){let{children:t}=e;const[n,c]=Object(a.useState)(()=>Re(Ce.location));return Object(a.useEffect)(()=>Ce.listen(e=>{let{location:t}=e;c(Re(t))}),[]),Object(a.createElement)(Ne.Provider,{value:Ce},Object(a.createElement)(Ie.Provider,{value:n},t(n)))}var Le=n("axFQ"),Be=n("TvNi"),De=n("hF7m"),Fe=n("K9lf"),Ve=n("Q4Sy"),Ge=n("OzlF"),ze=n("RxS6"),Ue=n("VKE3"),He=n("K+tz"),We=n("TSYQ"),qe=n.n(We);const $e=[{keyCombination:{modifier:"primary",character:"b"},description:Object(m.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:Object(m.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:Object(m.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:Object(m.__)("Remove a link.")},{keyCombination:{modifier:"primary",character:"u"},description:Object(m.__)("Underline the selected text.")}];function Ke(e){let{keyCombination:t,forceAriaLabel:n}=e;const c=t.modifier?ze.displayShortcutList[t.modifier](t.character):t.character,r=t.modifier?ze.shortcutAriaLabel[t.modifier](t.character):t.character;return Object(a.createElement)("kbd",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":n||r},Object($.castArray)(c).map((e,t)=>"+"===e?Object(a.createElement)(a.Fragment,{key:t},e):Object(a.createElement)("kbd",{key:t,className:"edit-site-keyboard-shortcut-help-modal__shortcut-key"},e)))}function Ye(e){let{description:t,keyCombination:n,aliases:c=[],ariaLabel:r}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-description"},t),Object(a.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-term"},Object(a.createElement)(Ke,{keyCombination:n,forceAriaLabel:r}),c.map((e,t)=>Object(a.createElement)(Ke,{keyCombination:e,forceAriaLabel:r,key:t}))))}function Xe(e){let{name:t}=e;const{keyCombination:n,description:c,aliases:r}=Object(i.useSelect)(e=>{const{getShortcutKeyCombination:n,getShortcutDescription:c,getShortcutAliases:r}=e(De.store);return{keyCombination:n(t),aliases:r(t),description:c(t)}},[t]);return n?Object(a.createElement)(Ye,{keyCombination:n,description:c,aliases:r}):null}const Qe=e=>{let{shortcuts:t}=e;return Object(a.createElement)("ul",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-list",role:"list"},t.map((e,t)=>Object(a.createElement)("li",{className:"edit-site-keyboard-shortcut-help-modal__shortcut",key:t},Object($.isString)(e)?Object(a.createElement)(Xe,{name:e}):Object(a.createElement)(Ye,e))))},Ze=e=>{let{title:t,shortcuts:n,className:c}=e;return Object(a.createElement)("section",{className:qe()("edit-site-keyboard-shortcut-help-modal__section",c)},!!t&&Object(a.createElement)("h2",{className:"edit-site-keyboard-shortcut-help-modal__section-title"},t),Object(a.createElement)(Qe,{shortcuts:n}))},Je=e=>{let{title:t,categoryName:n,additionalShortcuts:c=[]}=e;const r=Object(i.useSelect)(e=>e(De.store).getCategoryShortcuts(n),[n]);return Object(a.createElement)(Ze,{title:t,shortcuts:r.concat(c)})};function et(e){let{isModalActive:t,toggleModal:n}=e;return t?Object(a.createElement)(_e.Modal,{className:"edit-site-keyboard-shortcut-help-modal",title:Object(m.__)("Keyboard shortcuts"),closeLabel:Object(m.__)("Close"),onRequestClose:n},Object(a.createElement)(Ze,{className:"edit-site-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-site/keyboard-shortcuts"]}),Object(a.createElement)(Je,{title:Object(m.__)("Global shortcuts"),categoryName:"global"}),Object(a.createElement)(Je,{title:Object(m.__)("Selection shortcuts"),categoryName:"selection"}),Object(a.createElement)(Je,{title:Object(m.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:Object(m.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(m.__)("Forward-slash")}]}),Object(a.createElement)(Ze,{title:Object(m.__)("Text formatting"),shortcuts:$e})):null}var tt=n("RMJe"),nt=n("gdqT");function ct(e){let{feature:t,label:n,info:c,messageActivated:r,messageDeactivated:l}=e;const o=Object(i.useSelect)(e=>e(Oe).isFeatureActive(t),[]),{toggleFeature:s}=Object(i.useDispatch)(Oe);return Object(a.createElement)(_e.MenuItem,{icon:o&&tt.a,isSelected:o,onClick:Object($.flow)(s.bind(null,t),()=>{o?Object(nt.speak)(l||Object(m.__)("Feature deactivated")):Object(nt.speak)(r||Object(m.__)("Feature activated"))}),role:"menuitemcheckbox",info:c},n)}const{Fill:rt,Slot:at}=Object(_e.createSlotFill)("EditSiteToolsMoreMenuGroup");rt.Slot=e=>{let{fillProps:t}=e;return Object(a.createElement)(at,{fillProps:t},e=>!Object($.isEmpty)(e)&&e)};var lt=rt,ot=n("rrFr"),it=n.n(ot),st=n("ywyh"),ut=n.n(st),mt=n("Tqx9");var dt=Object(a.createElement)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(mt.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"}));function bt(){const{createErrorNotice:e}=Object(i.useDispatch)(k.store);return Object(a.createElement)(_e.MenuItem,{role:"menuitem",icon:dt,onClick:async function(){try{const e=await ut()({path:"/wp-block-editor/v1/export",parse:!1}),t=await e.blob();it()(t,"edit-site-export.zip","application/zip")}catch(t){let n={};try{n=await t.json()}catch(e){}const c=n.message&&"unknown_error"!==n.code?n.message:Object(m.__)("An error occurred while creating the site export.");e(c,{type:"snackbar"})}},info:Object(m.__)("Download your templates and template parts.")},Object(m._x)("Export","site exporter menu item"))}function pt(){const{toggleFeature:e}=Object(i.useDispatch)(Oe);return Object(a.createElement)(_e.MenuItem,{onClick:()=>e("welcomeGuide")},Object(m.__)("Welcome Guide"))}const Ot={className:"edit-site-more-menu__content",position:"bottom left"},jt={tooltipPosition:"bottom"};function _t(){const[e,t]=Object(a.useReducer)(e=>!e,!1);return Object(De.useShortcut)("core/edit-site/keyboard-shortcuts",t),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_e.DropdownMenu,{className:"edit-site-more-menu",icon:Ue.a,label:Object(m.__)("More tools & options"),popoverProps:Ot,toggleProps:jt},e=>{let{onClose:n}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_e.MenuGroup,{label:Object(m._x)("View","noun")},Object(a.createElement)(ct,{feature:"fixedToolbar",label:Object(m.__)("Top toolbar"),info:Object(m.__)("Access all block and document tools in a single place"),messageActivated:Object(m.__)("Top toolbar activated"),messageDeactivated:Object(m.__)("Top toolbar deactivated")}),Object(a.createElement)(ct,{feature:"focusMode",label:Object(m.__)("Spotlight mode"),info:Object(m.__)("Focus on one block at a time"),messageActivated:Object(m.__)("Spotlight mode activated"),messageDeactivated:Object(m.__)("Spotlight mode deactivated")}),Object(a.createElement)(T.a.Slot,{name:"core/edit-site/plugin-more-menu",label:Object(m.__)("Plugins"),as:_e.MenuGroup,fillProps:{onClick:n}})),Object(a.createElement)(_e.MenuGroup,{label:Object(m.__)("Tools")},Object(a.createElement)(bt,null),Object(a.createElement)(_e.MenuItem,{onClick:t,shortcut:ze.displayShortcut.access("h")},Object(m.__)("Keyboard shortcuts")),Object(a.createElement)(pt,null),Object(a.createElement)(_e.MenuItem,{icon:He.a,role:"menuitem",href:Object(m.__)("https://wordpress.org/support/article/site-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(m.__)("Help"),Object(a.createElement)(_e.VisuallyHidden,{as:"span"},Object(m.__)("(opens in a new tab)"))),Object(a.createElement)(lt.Slot,{fillProps:{onClose:n}})))}),Object(a.createElement)(et,{isModalActive:e,toggleModal:t}))}function gt(e){let{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}=e;const{isDirty:c,isSaving:r}=Object(i.useSelect)(e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(s.store),c=t();return{isDirty:c.length>0,isSaving:Object($.some)(c,e=>n(e.kind,e.name,e.key))}},[]),l=!c||r;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_e.Button,{variant:"primary",className:"edit-site-save-button__button","aria-disabled":l,"aria-expanded":n,disabled:l,isBusy:r,onClick:l?void 0:t},Object(m.__)("Save")))}var ht=n("Ntru"),ft=n("K2cm");function Et(){const e=Object(i.useSelect)(e=>e(s.store).hasUndo(),[]),{undo:t}=Object(i.useDispatch)(s.store);return Object(a.createElement)(_e.Button,{icon:Object(m.isRTL)()?ft.a:ht.a,label:Object(m.__)("Undo"),shortcut:ze.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?t:void 0})}function vt(){const e=Object(i.useSelect)(e=>e(s.store).hasRedo(),[]),{redo:t}=Object(i.useDispatch)(s.store);return Object(a.createElement)(_e.Button,{icon:Object(m.isRTL)()?ht.a:ft.a,label:Object(m.__)("Redo"),shortcut:ze.displayShortcut.primaryShift("z"),"aria-disabled":!e,onClick:e?t:void 0})}var yt=n("NWDH");function wt(e){if(e){const t=Object(l.getBlockType)(e.name);return t?Object(l.__experimentalGetBlockLabel)(t,e.attributes):null}return null}function St(e){let{entityTitle:t,entityLabel:n,isLoaded:c,children:r}=e;const{label:l}=function(){const{getBlock:e}=Object(i.useSelect)(Le.store),t=Object(i.useSelect)(e=>e(Le.store).__experimentalGetActiveBlockIdByBlockNames(["core/template-part"]),[]);return t?{label:wt(e(t)),isActive:!0}:{}}(),o=Object(a.useRef)();return c?t?Object(a.createElement)("div",{className:qe()("edit-site-document-actions",{"has-secondary-label":!!l})},Object(a.createElement)("div",{ref:o,className:"edit-site-document-actions__title-wrapper"},Object(a.createElement)(_e.__experimentalText,{size:"body",className:"edit-site-document-actions__title",as:"h1"},Object(a.createElement)(_e.VisuallyHidden,{as:"span"},Object(m.sprintf)(Object(m.__)("Editing %s: "),n)),t),Object(a.createElement)(_e.__experimentalText,{size:"body",className:"edit-site-document-actions__secondary-item"},null!=l?l:""),r&&Object(a.createElement)(_e.Dropdown,{popoverProps:{anchorRef:o.current},position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:c}=e;return Object(a.createElement)(_e.Button,{className:"edit-site-document-actions__get-info",icon:yt.a,"aria-expanded":t,"aria-haspopup":"true",onClick:c,label:Object(m.sprintf)(Object(m.__)("Show %s details"),n)})},contentClassName:"edit-site-document-actions__info-dropdown",renderContent:r}))):Object(a.createElement)("div",{className:"edit-site-document-actions"},Object(m.__)("Template not found")):Object(a.createElement)("div",{className:"edit-site-document-actions"},Object(m.__)("Loading…"))}function xt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const c=Me();function r(r){r.preventDefault(),n?c.replace(e,t):c.push(e,t)}return{href:Object(b.addQueryArgs)(window.location.href,e),onClick:r}}function kt(e){let{params:t={},state:n,replace:c=!1,children:r,...l}=e;const{href:o,onClick:i}=xt(t,n,c);return Object(a.createElement)("a",Object(ge.a)({href:o,onClick:i},l),r)}function Tt(e){var t;let{onClose:n,templatePart:c,closeTemplateDetailsDropdown:r}=e;const{revertTemplate:l}=Object(i.useDispatch)(Oe),{params:o}=Pe(),s=xt({postId:c.id,postType:c.type},{fromTemplateId:o.postId});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_e.MenuGroup,null,Object(a.createElement)(_e.MenuItem,Object(ge.a)({},s,{onClick:function(e){s.onClick(e),n(),r()}}),Object(m.sprintf)(Object(m.__)("Edit %s"),null===(t=c.title)||void 0===t?void 0:t.rendered))),C(c)&&Object(a.createElement)(_e.MenuGroup,null,Object(a.createElement)(_e.MenuItem,{info:Object(m.__)("Restore template to default state"),onClick:function(){l(c),n(),r()}},Object(m.__)("Clear customizations"))))}function Ct(e){let{templatePart:t,clientId:n,closeTemplateDetailsDropdown:c}=e;const{selectBlock:r,toggleBlockHighlight:l}=Object(i.useDispatch)(Le.store),o=Object(i.useSelect)(e=>e(u.store).__experimentalGetDefaultTemplatePartAreas().find(e=>e.area===t.area),[t.area]),s=()=>l(n,!0),d=()=>l(n,!1);return Object(a.createElement)("div",{role:"menuitem",className:"edit-site-template-details__template-areas-item"},Object(a.createElement)(_e.MenuItem,{role:"button",icon:null==o?void 0:o.icon,iconPosition:"left",onClick:()=>{r(n)},onMouseOver:s,onMouseLeave:d,onFocus:s,onBlur:d},null==o?void 0:o.label),Object(a.createElement)(_e.DropdownMenu,{icon:Ue.a,label:Object(m.__)("More options"),className:"edit-site-template-details__template-areas-item-more"},e=>{let{onClose:n}=e;return Object(a.createElement)(Tt,{onClose:n,templatePart:t,closeTemplateDetailsDropdown:c})}))}function It(e){let{closeTemplateDetailsDropdown:t}=e;const n=Object(i.useSelect)(e=>e(Oe).getCurrentTemplateTemplateParts(),[]);return n.length?Object(a.createElement)(_e.MenuGroup,{label:Object(m.__)("Areas"),className:"edit-site-template-details__group edit-site-template-details__template-areas"},n.map(e=>{let{templatePart:n,block:c}=e;return Object(a.createElement)(Ct,{key:n.slug,clientId:c.clientId,templatePart:n,closeTemplateDetailsDropdown:t})})):null}function Nt(e){let{template:t}=e;const[n,c]=Object(s.useEntityProp)("postType",t.type,"title",t.id);return Object(a.createElement)(_e.TextControl,{label:Object(m.__)("Title"),value:n,help:Object(m.__)('Give the template a title that indicates its purpose, e.g. "Full Width".'),onChange:e=>{c(e||t.slug)}})}function Pt(e){let{template:t,onClose:n}=e;const{title:c,description:r}=Object(i.useSelect)(e=>e(u.store).__experimentalGetTemplateInfo(t),[]),{revertTemplate:l}=Object(i.useDispatch)(Oe),o=Object(a.useMemo)(()=>"wp_template"===(null==t?void 0:t.type)?{title:Object(m.__)("templates"),menu:"templates"}:w.find(e=>{let{area:n}=e;return n===(null==t?void 0:t.area)}),[t]),s=xt({postType:t.type,postId:void 0});if(!t)return null;return Object(a.createElement)("div",{className:"edit-site-template-details"},Object(a.createElement)("div",{className:"edit-site-template-details__group"},t.is_custom?Object(a.createElement)(Nt,{template:t}):Object(a.createElement)(_e.__experimentalHeading,{level:4,weight:600,className:"edit-site-template-details__title"},c),r&&Object(a.createElement)(_e.__experimentalText,{size:"body",className:"edit-site-template-details__description",as:"p"},r)),Object(a.createElement)(It,{closeTemplateDetailsDropdown:n}),C(t)&&Object(a.createElement)(_e.MenuGroup,{className:"edit-site-template-details__group edit-site-template-details__revert"},Object(a.createElement)(_e.MenuItem,{className:"edit-site-template-details__revert-button",info:Object(m.__)("Restore template to default state"),onClick:()=>{l(t),n()}},Object(m.__)("Clear customizations"))),Object(a.createElement)(_e.Button,Object(ge.a)({className:"edit-site-template-details__show-all-button"},s),Object(m.sprintf)(Object(m.__)("Browse all %s"),o.title)))}const Mt=e=>{e.preventDefault()};function Rt(e){let{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}=e;const c=Object(a.useRef)(),{deviceType:r,entityTitle:l,template:o,templateType:d,isInserterOpen:b,isListViewOpen:p,listViewShortcut:O,isLoaded:j}=Object(i.useSelect)(e=>{const{__experimentalGetPreviewDeviceType:t,getEditedPostType:n,getEditedPostId:c,isInserterOpened:r,isListViewOpened:a}=e(Oe),{getEditedEntityRecord:l}=e(s.store),{__experimentalGetTemplateInfo:o}=e(u.store),{getShortcutRepresentation:i}=e(De.store),m=n(),d=c(),b=l("postType",m,d),p=!!d;return{deviceType:t(),entityTitle:o(b).title,isLoaded:p,template:b,templateType:m,isInserterOpen:r(),isListViewOpen:a(),listViewShortcut:i("core/edit-site/toggle-list-view")}},[]),{__experimentalSetPreviewDeviceType:_,setIsInserterOpened:g,setIsListViewOpened:h}=Object(i.useDispatch)(Oe),f=Object(Fe.useViewportMatch)("medium"),E=Object(a.useCallback)(()=>{b?c.current.focus():g(!0)},[b,g]),v=Object(a.useCallback)(()=>h(!p),[h,p]),y="wp_template_part"===d;return Object(a.createElement)("div",{className:"edit-site-header"},Object(a.createElement)("div",{className:"edit-site-header_start"},Object(a.createElement)("div",{className:"edit-site-header__toolbar"},Object(a.createElement)(_e.Button,{ref:c,variant:"primary",isPressed:b,className:"edit-site-header-toolbar__inserter-toggle",onMouseDown:Mt,onClick:E,icon:Ve.a,label:Object(m._x)("Toggle block inserter","Generic label for block inserter button")}),f&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Le.ToolSelector,null),Object(a.createElement)(Et,null),Object(a.createElement)(vt,null),Object(a.createElement)(_e.Button,{className:"edit-site-header-toolbar__list-view-toggle",icon:Ge.a,isPressed:p,label:Object(m.__)("List View"),onClick:v,shortcut:O})))),Object(a.createElement)("div",{className:"edit-site-header_center"},Object(a.createElement)(St,{entityTitle:l,entityLabel:"wp_template_part"===d?"template part":"template",isLoaded:j},e=>{let{onClose:t}=e;return Object(a.createElement)(Pt,{template:o,onClose:t})})),Object(a.createElement)("div",{className:"edit-site-header_end"},Object(a.createElement)("div",{className:"edit-site-header__actions"},!y&&Object(a.createElement)(Le.__experimentalPreviewOptions,{deviceType:r,setDeviceType:_}),Object(a.createElement)(gt,{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}),Object(a.createElement)(T.h.Slot,{scope:"core/edit-site"}),Object(a.createElement)(_t,null))))}var At=n("Cg8A");function Lt(e){let{className:t,identifier:n,title:c,icon:r,children:l,closeLabel:o,header:i,headerClassName:s}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(T.b,{className:t,scope:"core/edit-site",identifier:n,title:c,icon:r,closeLabel:o,header:i,headerClassName:s},l),Object(a.createElement)(T.c,{scope:"core/edit-site",identifier:n,icon:r},c))}var Bt=Object(a.createElement)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(mt.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),Dt=n("iClF"),Ft=n("2gm7"),Vt=n("1iEr");const Gt=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["typography","fontSizes"],valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]}],zt={"color.background":"color","color.text":"color","elements.link.color.text":"color","color.gradient":"gradient","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function Ut(e,t,n,c,r){const a=[Object($.get)(e,["blocks",t,...n]),Object($.get)(e,n)];for(const l of a)if(l){const a=["custom","theme","default"];for(const o of a){const a=l[o];if(a){const l=Object($.find)(a,e=>e[c]===r);if(l){if("slug"===c)return l;return Ut(e,t,n,"slug",l.slug)[c]===l[c]?l:void 0}}}}}function Ht(e,t,n,c){if(!c)return c;const r=zt[n],a=Object($.find)(Gt,["cssVarInfix",r]);if(!a)return c;const{valueKey:l,path:o}=a,i=Ut(e,t,o,l,c);return i?`var:preset|${r}|${i.slug}`:c}function Wt(e,t,n){if(!n||!Object($.isString)(n))return n;let c;if(n.startsWith("var:"))c=n.slice("var:".length).split("|");else{if(!n.startsWith("var(--wp--")||!n.endsWith(")"))return n;c=n.slice("var(--wp--".length,-")".length).split("--")}const[r,...a]=c;return"preset"===r?function(e,t,n,c){let[r,a]=c;const l=Object($.find)(Gt,["cssVarInfix",r]);if(!l)return n;const o=Ut(e,t,l.path,"slug",a);if(o){const{valueKey:n}=l;return Wt(e,t,o[n])}return n}(e,t,n,a):"custom"===r?function(e,t,n,c){var r;const a=null!==(r=Object($.get)(e,["blocks",t,"custom",...c]))&&void 0!==r?r:Object($.get)(e,["custom",...c]);return a?Wt(e,t,a):n}(e,t,n,a):n}const qt=Object(a.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),$t={isGlobalStylesUserThemeJSON:!0,version:1};function Kt(e,t){var n;let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const{merged:r,base:o,user:i,setUserConfig:s}=Object(a.useContext)(qt),u=t?`settings.blocks.${t}.${e}`:"settings."+e,m=t=>{s(n=>{const c=Object($.cloneDeep)(n),r=l.__EXPERIMENTAL_PATHS_WITH_MERGE[e]?u+".custom":u;return Object($.set)(c,r,t),c})},d=t=>{const n=t?`settings.blocks.${t}.${e}`:"settings."+e,a=t=>{const c=Object($.get)(t,n);var r,a;return l.__EXPERIMENTAL_PATHS_WITH_MERGE[e]?null!==(r=null!==(a=null==c?void 0:c.custom)&&void 0!==a?a:null==c?void 0:c.theme)&&void 0!==r?r:null==c?void 0:c.default:c};let s;switch(c){case"all":s=a(r);break;case"user":s=a(i);break;case"base":s=a(o);break;default:throw"Unsupported source"}return s},b=null!==(n=d(t))&&void 0!==n?n:d();return[b,m]}function Yt(e,t){var n;let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const{merged:r,base:l,user:o,setUserConfig:i}=Object(a.useContext)(qt),s=t?`styles.blocks.${t}.${e}`:"styles."+e,u=n=>{i(c=>{const a=Object($.cloneDeep)(c);return Object($.set)(a,s,Ht(r.settings,t,e,n)),a})};let m;switch(c){case"all":m=Wt(r.settings,t,null!==(n=Object($.get)(o,s))&&void 0!==n?n:Object($.get)(l,s));break;case"user":m=Wt(r.settings,t,Object($.get)(o,s));break;case"base":m=Wt(l.settings,t,Object($.get)(l,s));break;default:throw"Unsupported source"}return[m,u]}const Xt=["background","backgroundColor","color","linkColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textDecoration","textTransform","padding"];function Qt(e){if(!e)return Xt;const t=Object(l.getBlockType)(e);if(!t)return[];const n=[];return Object.keys(l.__EXPERIMENTAL_STYLE_PROPERTY).forEach(e=>{if(l.__EXPERIMENTAL_STYLE_PROPERTY[e].support)return l.__EXPERIMENTAL_STYLE_PROPERTY[e].requiresOptOut&&Object($.has)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support[0])&&!1!==Object($.get)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support)||Object($.get)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support,!1)?n.push(e):void 0}),n}function Zt(e){const[t]=Kt("color.palette.custom",e),[n]=Kt("color.palette.theme",e),[c]=Kt("color.palette.default",e),[r]=Kt("color.defaultPalette");return Object(a.useMemo)(()=>{const e=[];return n&&n.length&&e.push({name:Object(m._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&c&&c.length&&e.push({name:Object(m._x)("Default","Indicates this palette comes from WordPress."),colors:c}),t&&t.length&&e.push({name:Object(m._x)("Custom","Indicates this palette is created by the user."),colors:t}),e},[t,n,c])}var Jt=()=>{const[e="serif"]=Yt("typography.fontFamily"),[t="black"]=Yt("color.text"),[n="blue"]=Yt("elements.link.color.text"),[c="white"]=Yt("color.background"),[r]=Yt("color.gradient");return Object(a.createElement)(_e.Card,{className:"edit-site-global-styles-preview",style:{background:null!=r?r:c}},Object(a.createElement)(_e.__experimentalHStack,{spacing:5},Object(a.createElement)("div",{style:{fontFamily:e,fontSize:"80px",color:t}},"Aa"),Object(a.createElement)(_e.__experimentalVStack,{spacing:2},Object(a.createElement)(_e.ColorIndicator,{colorValue:t}),Object(a.createElement)(_e.ColorIndicator,{colorValue:n}))))};var en=function(e){let{path:t,icon:n,children:c,isBack:r=!1,...l}=e;const o=Object(_e.__experimentalUseNavigator)();return Object(a.createElement)(_e.__experimentalItem,Object(ge.a)({onClick:()=>o.push(t,{isBack:r})},l),n&&Object(a.createElement)(_e.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(Dt.a,{icon:n,size:24})),Object(a.createElement)(_e.FlexItem,null,c)),!n&&c)};var tn=Object(a.createElement)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(mt.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));var nn=Object(a.createElement)(mt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(mt.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})),cn=n("Civd");const rn=[];function an(e){return[ln(e),on(e),sn(e),un(e)].some(Boolean)}function ln(e){const t=Qt(e);return Kt("border.color",e)[0]&&t.includes("borderColor")}function on(e){const t=Qt(e);return Kt("border.radius",e)[0]&&t.includes("borderRadius")}function sn(e){const t=Qt(e);return Kt("border.style",e)[0]&&t.includes("borderStyle")}function un(e){const t=Qt(e);return Kt("border.width",e)[0]&&t.includes("borderWidth")}function mn(e){let{name:t}=e;const n=Object(_e.__experimentalUseCustomUnits)({availableUnits:Kt("spacing.units")[0]||["px","em","rem"]}),c=un(t),[r,l]=Yt("border.width",t),o=sn(t),[i,s]=Yt("border.style",t),[u=rn]=Kt("color.palette"),d=!Kt("color.custom")[0],b=!Kt("color.customGradient")[0],p=ln(t),[O,j]=Yt("border.color",t),_=on(t),[g,h]=Yt("border.radius",t);return Object(a.createElement)(_e.PanelBody,{title:Object(m.__)("Border"),initialOpen:!0},(c||o)&&Object(a.createElement)("div",{className:"edit-site-global-styles-sidebar__border-controls-row"},c&&Object(a.createElement)(_e.__experimentalUnitControl,{value:r,label:Object(m.__)("Width"),min:0,onChange:e=>{l(e||void 0)},units:n}),o&&Object(a.createElement)(Le.__experimentalBorderStyleControl,{value:i,onChange:s})),p&&Object(a.createElement)(Le.__experimentalColorGradientControl,{label:Object(m.__)("Color"),colorValue:O,colors:u,gradients:void 0,disableCustomColors:d,disableCustomGradients:b,onColorChange:j}),_&&Object(a.createElement)(Le.__experimentalBorderRadiusControl,{values:g,onChange:h}))}function dn(e){const t=Qt(e);return t.includes("color")||t.includes("backgroundColor")||t.includes("background")||t.includes("linkColor")}const bn=["horizontal","vertical"];function pn(e){const t=On(e),n=jn(e),c=_n(e);return t||n||c}function On(e){const t=Qt(e),[n]=Kt("spacing.padding",e);return n&&t.includes("padding")}function jn(e){const t=Qt(e),[n]=Kt("spacing.margin",e);return n&&t.includes("margin")}function _n(e){const t=Qt(e),[n]=Kt("spacing.blockGap",e);return n&&t.includes("--wp--style--block-gap")}function gn(e,t){if(!t)return e;const n={};return t.forEach(t=>{"vertical"===t&&(n.top=e.top,n.bottom=e.bottom),"horizontal"===t&&(n.left=e.left,n.right=e.right),n[t]=e[t]}),n}function hn(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function fn(e){let{name:t}=e;const n=On(t),c=jn(t),r=_n(t),l=Object(_e.__experimentalUseCustomUnits)({availableUnits:Kt("spacing.units",t)[0]||["%","px","em","rem","vw"]}),[o,i]=Yt("spacing.padding",t),s=hn(o),u=Object(Le.__experimentalUseCustomSides)(t,"padding"),d=u&&u.some(e=>bn.includes(e)),b=e=>{const t=gn(e,u);i(t)},p=()=>b({}),[O,j]=Yt("spacing.margin",t),_=hn(O),g=Object(Le.__experimentalUseCustomSides)(t,"margin"),h=g&&g.some(e=>bn.includes(e)),f=e=>{const t=gn(e,g);j(t)},E=()=>f({}),[v,y]=Yt("spacing.blockGap",t),w=()=>y(void 0);return Object(a.createElement)(_e.__experimentalToolsPanel,{label:Object(m.__)("Dimensions"),resetAll:()=>{p(),E(),w()}},n&&Object(a.createElement)(_e.__experimentalToolsPanelItem,{hasValue:()=>!!s&&Object.keys(s).length,label:Object(m.__)("Padding"),onDeselect:p,isShownByDefault:!0},Object(a.createElement)(_e.__experimentalBoxControl,{values:s,onChange:b,label:Object(m.__)("Padding"),sides:u,units:l,allowReset:!1,splitOnAxis:d})),c&&Object(a.createElement)(_e.__experimentalToolsPanelItem,{hasValue:()=>!!_&&Object.keys(_).length,label:Object(m.__)("Margin"),onDeselect:E,isShownByDefault:!0},Object(a.createElement)(_e.__experimentalBoxControl,{values:_,onChange:f,label:Object(m.__)("Margin"),sides:g,units:l,allowReset:!1,splitOnAxis:h})),r&&Object(a.createElement)(_e.__experimentalToolsPanelItem,{hasValue:()=>!!v,label:Object(m.__)("Block spacing"),onDeselect:w,isShownByDefault:!0},Object(a.createElement)(_e.__experimentalUnitControl,{label:Object(m.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:y,units:l,value:v})))}function En(e){const t=vn(e),n=yn(e),c=wn(e),r=Qt(e);return t||n||c||r.includes("fontSize")}function vn(e){const t=Qt(e);return Kt("typography.lineHeight",e)[0]&&t.includes("lineHeight")}function yn(e){const t=Qt(e),n=Kt("typography.fontStyle",e)[0]&&t.includes("fontStyle"),c=Kt("typography.fontWeight",e)[0]&&t.includes("fontWeight");return n||c}function wn(e){const t=Qt(e);return Kt("typography.letterSpacing",e)[0]&&t.includes("letterSpacing")}function Sn(e){let{name:t,element:n}=e;const c=Qt(t),r="text"!==n&&n?`elements.${n}.`:"",[l]=Kt("typography.fontSizes",t),o=!Kt("typography.customFontSize",t)[0],[i]=Kt("typography.fontFamilies",t),s=Kt("typography.fontStyle",t)[0]&&c.includes("fontStyle"),u=Kt("typography.fontWeight",t)[0]&&c.includes("fontWeight"),m=vn(t),d=yn(t),b=wn(t),[p,O]=Yt(r+"typography.fontFamily",t),[j,_]=Yt(r+"typography.fontSize",t),[g,h]=Yt(r+"typography.fontStyle",t),[f,E]=Yt(r+"typography.fontWeight",t),[v,y]=Yt(r+"typography.lineHeight",t),[w,S]=Yt(r+"typography.letterSpacing",t),[x]=Yt(r+"color.background",t),[k]=Yt(r+"color.gradient",t),[T]=Yt(r+"color.text",t),C="link"===n?{textDecoration:"underline"}:{};return Object(a.createElement)(_e.PanelBody,{className:"edit-site-typography-panel",initialOpen:!0},Object(a.createElement)("div",{className:"edit-site-typography-panel__preview",style:{fontFamily:null!=p?p:"serif",background:null!=k?k:x,color:T,fontSize:j,fontStyle:g,fontWeight:f,letterSpacing:w,...C}},"Aa"),c.includes("fontFamily")&&Object(a.createElement)(Le.__experimentalFontFamilyControl,{fontFamilies:i,value:p,onChange:O}),c.includes("fontSize")&&Object(a.createElement)(_e.FontSizePicker,{value:j,onChange:_,fontSizes:l,disableCustomFontSizes:o}),m&&Object(a.createElement)(Le.LineHeightControl,{value:v,onChange:y}),d&&Object(a.createElement)(Le.__experimentalFontAppearanceControl,{value:{fontStyle:g,fontWeight:f},onChange:e=>{let{fontStyle:t,fontWeight:n}=e;h(t),E(n)},hasFontStyles:s,hasFontWeights:u}),b&&Object(a.createElement)(Le.__experimentalLetterSpacingControl,{value:w,onChange:S}))}var xn=function(e){let{name:t,parentMenu:n=""}=e;const c=En(t),r=dn(t),l=an(t),o=pn(t),i=l||o;return Object(a.createElement)(_e.__experimentalItemGroup,null,c&&Object(a.createElement)(en,{icon:tn,path:n+"/typography"},Object(m.__)("Typography")),r&&Object(a.createElement)(en,{icon:nn,path:n+"/colors"},Object(m.__)("Colors")),i&&Object(a.createElement)(en,{icon:cn.a,path:n+"/layout"},Object(m.__)("Layout")))};var kn=function(){return Object(a.createElement)(_e.Card,{size:"small"},Object(a.createElement)(_e.CardBody,null,Object(a.createElement)(Jt,null)),Object(a.createElement)(_e.CardBody,null,Object(a.createElement)(xn,null)),Object(a.createElement)(_e.CardDivider,null),Object(a.createElement)(_e.CardBody,null,Object(a.createElement)(_e.__experimentalItemGroup,null,Object(a.createElement)(_e.__experimentalItem,null,Object(m.__)("Customize the appearance of specific blocks for the whole site.")),Object(a.createElement)(en,{path:"/blocks"},Object(a.createElement)(_e.__experimentalHStack,{justify:"space-between"},Object(a.createElement)(_e.FlexItem,null,Object(m.__)("Blocks")),Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(Dt.a,{icon:Object(m.isRTL)()?Ft.a:Vt.a})))))))};var Tn=function(e){let{back:t,title:n,description:c}=e;return Object(a.createElement)(_e.__experimentalVStack,{spacing:2},Object(a.createElement)(_e.__experimentalHStack,{spacing:2},Object(a.createElement)(_e.__experimentalView,null,Object(a.createElement)(en,{path:t,icon:Object(a.createElement)(Dt.a,{icon:Object(m.isRTL)()?Vt.a:Ft.a,variant:"muted"}),size:"small",isBack:!0,"aria-label":Object(m.__)("Navigate to the previous view")})),Object(a.createElement)(_e.__experimentalSpacer,null,Object(a.createElement)(_e.__experimentalHeading,{level:5},n))),c&&Object(a.createElement)("p",{className:"edit-site-global-styles-header__description"},c))};function Cn(e){let{block:t}=e;const n=En(t.name),c=dn(t.name),r=an(t.name),l=pn(t.name);return n||c||(r||l)?Object(a.createElement)(en,{path:"/blocks/"+t.name},Object(a.createElement)(_e.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(Le.BlockIcon,{icon:t.icon})),Object(a.createElement)(_e.FlexItem,null,t.title))):null}var In=function(){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:"/",title:Object(m.__)("Blocks"),description:Object(m.__)("Customize the appearance of specific blocks and for the whole site.")}),Object(l.getBlockTypes)().map(e=>Object(a.createElement)(Cn,{block:e,key:"menu-itemblock-"+e.name})))};var Nn=function(e){let{name:t}=e;const n=Object(l.getBlockType)(t);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:"/blocks",title:n.title}),Object(a.createElement)(xn,{parentMenu:"/blocks/"+t,name:t}))};var Pn=function(e){let{children:t}=e;return Object(a.createElement)(_e.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:2},t)};function Mn(e){let{name:t,parentMenu:n,element:c,label:r}=e;const l=!t,o="text"!==c&&c?`elements.${c}.`:"",i="link"===c?{textDecoration:"underline"}:{},[s]=Yt(o+"typography.fontFamily",t),[u]=Yt(o+"typography.fontStyle",t),[d]=Yt(o+"typography.fontWeight",t),[b]=Yt(o+"typography.letterSpacing",t),[p]=Yt(o+"color.background",t),[O]=Yt(o+"color.gradient",t),[j]=Yt(o+"color.text",t);return l?Object(a.createElement)(en,{path:n+"/typography/"+c},Object(a.createElement)(_e.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(_e.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=s?s:"serif",background:null!=O?O:p,color:j,fontStyle:u,fontWeight:d,letterSpacing:b,...i}},Object(m.__)("Aa")),Object(a.createElement)(_e.FlexItem,null,r))):null}var Rn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:n||"/",title:Object(m.__)("Typography"),description:Object(m.__)("Manage the typography settings for different elements.")}),!t&&Object(a.createElement)("div",{className:"edit-site-global-styles-screen-typography"},Object(a.createElement)(_e.__experimentalVStack,{spacing:3},Object(a.createElement)(Pn,null,Object(m.__)("Elements")),Object(a.createElement)(_e.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(Mn,{name:t,parentMenu:n,element:"text",label:Object(m.__)("Text")}),Object(a.createElement)(Mn,{name:t,parentMenu:n,element:"link",label:Object(m.__)("Links")})))),!!t&&Object(a.createElement)(Sn,{name:t,element:"text"}))};const An={text:{description:Object(m.__)("Manage the fonts used on the site."),title:Object(m.__)("Text")},link:{description:Object(m.__)("Manage the fonts and typography used on the links."),title:Object(m.__)("Links")}};var Ln=function(e){let{name:t,element:n}=e;const c=void 0===t?"/typography":"/blocks/"+t+"/typography";return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:c,title:An[n].title,description:An[n].description}),Object(a.createElement)(Sn,{name:t,element:n}))};const Bn=[];var Dn=function(e){let{name:t}=e;const[n]=Kt("color.palette.custom"),[c]=Kt("color.palette.theme"),[r]=Kt("color.palette.default"),[l]=Kt("color.defaultPalette",t),o=Object(a.useMemo)(()=>[...n||Bn,...c||Bn,...r&&l?r:Bn],[n,c,r,l]),i=t?"/blocks/"+t+"/colors/palette":"/colors/palette",s=o.length>0?Object(m.sprintf)(Object(m._n)("%d color","%d colors",o.length),o.length):Object(m.__)("Add custom colors");return Object(a.createElement)(_e.__experimentalVStack,{spacing:3},Object(a.createElement)(Pn,null,Object(m.__)("Palette")),Object(a.createElement)(_e.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(en,{path:i},Object(a.createElement)(_e.__experimentalHStack,{isReversed:0===o.length},Object(a.createElement)(_e.FlexBlock,null,Object(a.createElement)(_e.__experimentalZStack,{isLayered:!1,offset:-8},o.slice(0,5).map(e=>{let{color:t}=e;return Object(a.createElement)(_e.ColorIndicator,{key:t,colorValue:t})}))),Object(a.createElement)(_e.FlexItem,null,s)))))};function Fn(e){let{name:t,parentMenu:n}=e;const c=Qt(t),r=c.includes("backgroundColor")||c.includes("background"),[l]=Yt("color.background",t),[o]=Yt("color.gradient",t);return r?Object(a.createElement)(en,{path:n+"/colors/background"},Object(a.createElement)(_e.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.ColorIndicator,{colorValue:null!=o?o:l})),Object(a.createElement)(_e.FlexItem,null,Object(m.__)("Background")))):null}function Vn(e){let{name:t,parentMenu:n}=e;const c=Qt(t).includes("color"),[r]=Yt("color.text",t);return c?Object(a.createElement)(en,{path:n+"/colors/text"},Object(a.createElement)(_e.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.ColorIndicator,{colorValue:r})),Object(a.createElement)(_e.FlexItem,null,Object(m.__)("Text")))):null}function Gn(e){let{name:t,parentMenu:n}=e;const c=Qt(t).includes("linkColor"),[r]=Yt("elements.link.color.text",t);return c?Object(a.createElement)(en,{path:n+"/colors/link"},Object(a.createElement)(_e.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.ColorIndicator,{colorValue:r})),Object(a.createElement)(_e.FlexItem,null,Object(m.__)("Links")))):null}var zn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:n||"/",title:Object(m.__)("Colors"),description:Object(m.__)("Manage palettes and the default color of different global elements on the website.")}),Object(a.createElement)("div",{className:"edit-site-global-styles-screen-colors"},Object(a.createElement)(_e.__experimentalVStack,{spacing:10},Object(a.createElement)(Dn,{name:t}),Object(a.createElement)(_e.__experimentalVStack,{spacing:3},Object(a.createElement)(Pn,null,Object(m.__)("Elements")),Object(a.createElement)(_e.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(Fn,{name:t,parentMenu:n}),Object(a.createElement)(Vn,{name:t,parentMenu:n}),Object(a.createElement)(Gn,{name:t,parentMenu:n}))))))};function Un(e){let{name:t}=e;const[n,c]=Kt("color.palette.theme",t),[r]=Kt("color.palette.theme",t,"base"),[l,o]=Kt("color.palette.default",t),[i]=Kt("color.palette.default",t,"base"),[s,u]=Kt("color.palette.custom",t),[d]=Kt("color.defaultPalette",t);return Object(a.createElement)(_e.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!n&&!!n.length&&Object(a.createElement)(_e.__experimentalPaletteEdit,{canReset:n!==r,canOnlyChangeValues:!0,colors:n,onChange:c,paletteLabel:Object(m.__)("Theme")}),!!l&&!!l.length&&!!d&&Object(a.createElement)(_e.__experimentalPaletteEdit,{canReset:l!==i,canOnlyChangeValues:!0,colors:l,onChange:o,paletteLabel:Object(m.__)("Default")}),Object(a.createElement)(_e.__experimentalPaletteEdit,{colors:s,onChange:u,paletteLabel:Object(m.__)("Custom"),emptyMessage:Object(m.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-"}))}function Hn(e){let{name:t}=e;const[n,c]=Kt("color.gradients.theme",t),[r]=Kt("color.gradients.theme",t,"base"),[l,o]=Kt("color.gradients.default",t),[i]=Kt("color.gradients.default",t,"base"),[s,u]=Kt("color.gradients.custom",t),[d]=Kt("color.defaultGradients",t),[b]=Kt("color.duotone")||[];return Object(a.createElement)(_e.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:10},!!n&&!!n.length&&Object(a.createElement)(_e.__experimentalPaletteEdit,{canReset:n!==r,canOnlyChangeValues:!0,gradients:n,onChange:c,paletteLabel:Object(m.__)("Theme")}),!!l&&!!l.length&&!!d&&Object(a.createElement)(_e.__experimentalPaletteEdit,{canReset:l!==i,canOnlyChangeValues:!0,gradients:l,onChange:o,paletteLabel:Object(m.__)("Default")}),Object(a.createElement)(_e.__experimentalPaletteEdit,{gradients:s,onChange:u,paletteLabel:Object(m.__)("Custom"),emptyMessage:Object(m.__)("Custom gradients are empty! Add some gradients to create your own palette."),slugPrefix:"custom-"}),Object(a.createElement)("div",null,Object(a.createElement)(Pn,null,Object(m.__)("Duotone")),Object(a.createElement)(_e.__experimentalSpacer,{margin:3}),Object(a.createElement)(_e.DuotonePicker,{duotonePalette:b,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:$.noop})))}var Wn=function(e){let{name:t}=e;const[n,c]=Object(a.useState)("solid"),r=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:r+"/colors",title:Object(m.__)("Palette"),description:Object(m.__)("Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),Object(a.createElement)(_e.__experimentalToggleGroupControl,{className:"edit-site-screen-color-palette-toggle",value:n,onChange:c,label:Object(m.__)("Select palette type"),hideLabelFromVision:!0,isBlock:!0},Object(a.createElement)(_e.__experimentalToggleGroupControlOption,{value:"solid",label:Object(m.__)("Solid")}),Object(a.createElement)(_e.__experimentalToggleGroupControlOption,{value:"gradient",label:Object(m.__)("Gradient")})),"solid"===n&&Object(a.createElement)(Un,{name:t}),"gradient"===n&&Object(a.createElement)(Hn,{name:t}))};var qn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=Qt(t),[r]=Kt("color.palette",t),[l]=Kt("color.gradients",t),[o]=Kt("color.custom",t),[i]=Kt("color.customGradient",t),s=Zt(t),u=function(e){const[t]=Kt("color.gradients.custom",e),[n]=Kt("color.gradients.theme",e),[c]=Kt("color.gradients.default",e),[r]=Kt("color.defaultGradients");return Object(a.useMemo)(()=>{const e=[];return n&&n.length&&e.push({name:Object(m._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&c&&c.length&&e.push({name:Object(m._x)("Default","Indicates this palette comes from WordPress."),gradients:c}),t&&t.length&&e.push({name:Object(m._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e},[t,n,c])}(t),[d]=Kt("color.background",t),b=c.includes("backgroundColor")&&d&&(r.length>0||o),p=c.includes("background")&&(l.length>0||i),[O,j]=Yt("color.background",t),[_]=Yt("color.background",t,"user"),[g,h]=Yt("color.gradient",t),[f]=Yt("color.gradient",t,"user");if(!b&&!p)return null;let E={};b&&(E={colorValue:O,onColorChange:j},O&&(E.clearable=O===_));let v={};p&&(v={gradientValue:g,onGradientChange:h},g&&(v.clearable=g===f));const y={...E,...v};return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:n+"/colors",title:Object(m.__)("Background"),description:Object(m.__)("Set a background color or gradient for the whole website.")}),Object(a.createElement)(Le.__experimentalColorGradientControl,Object(ge.a)({className:"edit-site-screen-background-color__control",colors:s,gradients:u,disableCustomColors:!o,disableCustomGradients:!i,__experimentalHasMultipleOrigins:!0,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0},y)))};var $n=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=Qt(t),[r]=Kt("color.palette",t),[l]=Kt("color.custom",t),[o]=Kt("color.text",t),i=Zt(t),s=c.includes("color")&&o&&(r.length>0||l),[u,d]=Yt("color.text",t),[b]=Yt("color.text",t,"user");return s?Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:n+"/colors",title:Object(m.__)("Text"),description:Object(m.__)("Set the default color used for text across the site.")}),Object(a.createElement)(Le.__experimentalColorGradientControl,{className:"edit-site-screen-text-color__control",colors:i,disableCustomColors:!l,__experimentalHasMultipleOrigins:!0,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:u,onColorChange:d,clearable:u===b})):null};var Kn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=Qt(t),[r]=Kt("color.palette",t),[l]=Kt("color.custom",t),o=Zt(t),[i]=Kt("color.link",t),s=c.includes("linkColor")&&i&&(r.length>0||l),[u,d]=Yt("elements.link.color.text",t),[b]=Yt("elements.link.color.text",t,"user");return s?Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:n+"/colors",title:Object(m.__)("Links"),description:Object(m.__)("Set the default color used for links across the site.")}),Object(a.createElement)(Le.__experimentalColorGradientControl,{className:"edit-site-screen-link-color__control",colors:o,disableCustomColors:!l,__experimentalHasMultipleOrigins:!0,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:u,onColorChange:d,clearable:u===b})):null};var Yn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=an(t),r=pn(t);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Tn,{back:n||"/",title:Object(m.__)("Layout")}),r&&Object(a.createElement)(fn,{name:t}),c&&Object(a.createElement)(mn,{name:t}))};function Xn(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/typography"},Object(a.createElement)(Rn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/typography/text"},Object(a.createElement)(Ln,{name:t,element:"text"})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/typography/link"},Object(a.createElement)(Ln,{name:t,element:"link"})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors"},Object(a.createElement)(zn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors/palette"},Object(a.createElement)(Wn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors/background"},Object(a.createElement)(qn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors/text"},Object(a.createElement)($n,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors/link"},Object(a.createElement)(Kn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/layout"},Object(a.createElement)(Yn,{name:t})))}var Qn=function(){const e=Object(l.getBlockTypes)();return Object(a.createElement)(_e.__experimentalNavigatorProvider,{initialPath:"/"},Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:"/"},Object(a.createElement)(kn,null)),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:"/blocks"},Object(a.createElement)(In,null)),e.map(e=>Object(a.createElement)(_e.__experimentalNavigatorScreen,{key:"menu-block-"+e.name,path:"/blocks/"+e.name},Object(a.createElement)(Nn,{name:e.name}))),Object(a.createElement)(Xn,null),e.map(e=>Object(a.createElement)(Xn,{key:"screens-block-"+e.name,name:e.name})))};function Zn(e){if(Object($.startsWith)(e,"var:")){return`var(--wp--${e.slice("var:".length).split("|").join("--")})`}return e}const Jn=(e,t)=>{var n,c;const r=[];if(null==e||!e.settings)return r;const a=e=>{const t={};return Gt.forEach(n=>{let{path:c}=n;const r=Object($.get)(e,c,!1);!1!==r&&Object($.set)(t,c,r)}),t},l=a(e.settings),o=null===(n=e.settings)||void 0===n?void 0:n.custom;return Object($.isEmpty)(l)&&!o||r.push({presets:l,custom:o,selector:"body"}),Object($.forEach)(null===(c=e.settings)||void 0===c?void 0:c.blocks,(e,n)=>{const c=a(e),l=e.custom;Object($.isEmpty)(c)&&!l||r.push({presets:c,custom:l,selector:t[n].selector})}),r},ec=(e,t)=>{const n=Jn(e,t);let c="";return n.forEach(e=>{let{presets:t,custom:n,selector:r}=e;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object($.reduce)(Gt,(t,n)=>{let{path:c,valueKey:r,cssVarInfix:a}=n;const l=Object($.get)(e,c,[]);return["default","theme","custom"].forEach(e=>{l[e]&&l[e].forEach(e=>{t.push(`--wp--preset--${a}--${Object($.kebabCase)(e.slug)}: ${e[r]}`)})}),t},[])}(t),l=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0,r=[];return Object.keys(t).forEach(a=>{const l=n+Object($.kebabCase)(a.replace("/","-")),o=t[a];if(o instanceof Object){const t=l+c;r=[...r,...e(o,t,c)]}else r.push(`${l}: ${o}`)}),r}(n,"--wp--custom--","--");l.length>0&&a.push(...l),a.length>0&&(c+=`${r}{${a.join(";")};}`)}),c},tc=(e,t)=>{const n=((e,t)=>{var n,c;const r=[];if(null==e||!e.styles)return r;const a=e=>Object($.pickBy)(e,(e,t)=>["border","color","spacing","typography"].includes(t)),o=a(e.styles);return o&&r.push({styles:o,selector:"body"}),Object($.forEach)(null===(n=e.styles)||void 0===n?void 0:n.elements,(e,t)=>{e&&l.__EXPERIMENTAL_ELEMENTS[t]&&r.push({styles:e,selector:l.__EXPERIMENTAL_ELEMENTS[t]})}),Object($.forEach)(null===(c=e.styles)||void 0===c?void 0:c.blocks,(e,n)=>{var c;const o=a(e);o&&null!=t&&null!==(c=t[n])&&void 0!==c&&c.selector&&r.push({styles:o,selector:t[n].selector}),Object($.forEach)(null==e?void 0:e.elements,(e,c)=>{e&&null!=t&&t[n]&&null!==l.__EXPERIMENTAL_ELEMENTS&&void 0!==l.__EXPERIMENTAL_ELEMENTS&&l.__EXPERIMENTAL_ELEMENTS[c]&&r.push({styles:e,selector:t[n].selector.split(",").map(e=>e+" "+l.__EXPERIMENTAL_ELEMENTS[c]).join(",")})})}),r})(e,t),c=Jn(e,t);let r=".wp-site-blocks > * { margin-top: 0; margin-bottom: 0; }.wp-site-blocks > * + * { margin-top: var( --wp--style--block-gap ); }";return n.forEach(e=>{let{selector:t,styles:n}=e;const c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object($.reduce)(l.__EXPERIMENTAL_STYLE_PROPERTY,(t,n,c)=>{let{value:r,properties:a}=n;const l=r;if("elements"===Object($.first)(l))return t;const o=Object($.get)(e,l);if(a&&!Object($.isString)(o))Object.entries(a).forEach(e=>{const[n,c]=e;if(!Object($.get)(o,[c],!1))return;const r=Object($.kebabCase)(n);t.push(`${r}: ${Zn(Object($.get)(o,[c]))}`)});else if(Object($.get)(e,l,!1)){const n=c.startsWith("--")?c:Object($.kebabCase)(c);t.push(`${n}: ${Zn(Object($.get)(e,l))}`)}return t},[])}(n);0!==c.length&&(r+=`${t}{${c.join(";")};}`)}),c.forEach(e=>{let{selector:t,presets:n}=e;"body"===t&&(t="");const c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object($.reduce)(Gt,(n,c)=>{let{path:r,cssVarInfix:a,classes:l}=c;if(!l)return n;const o=Object($.get)(t,r,[]);return["default","theme","custom"].forEach(t=>{o[t]&&o[t].forEach(t=>{let{slug:c}=t;l.forEach(t=>{let{classSuffix:r,propertyName:l}=t;const o=`.has-${Object($.kebabCase)(c)}-${r}`,i=e.split(",").map(e=>`${e}${o}`).join(","),s=`var(--wp--preset--${a}--${Object($.kebabCase)(c)})`;n+=`${i}{${l}: ${s} !important;}`})})}),n},"")}(t,n);Object($.isEmpty)(c)||(r+=c)}),r};function nc(){const[e,t]=(()=>{const{user:e,setUserConfig:t}=Object(a.useContext)(qt);return[!!e&&!Object($.isEqual)(e,$t),Object(a.useCallback)(()=>t(()=>$t),[t])]})(),{toggleFeature:n}=Object(i.useDispatch)(Oe);return Object(a.createElement)(Lt,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:Object(m.__)("Styles"),icon:Bt,closeLabel:Object(m.__)("Close global styles sidebar"),header:Object(a.createElement)(_e.Flex,null,Object(a.createElement)(_e.FlexBlock,null,Object(a.createElement)("strong",null,Object(m.__)("Styles")),Object(a.createElement)("span",{className:"edit-site-global-styles-sidebar__beta"},Object(m.__)("Beta"))),Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.DropdownMenu,{icon:Ue.a,label:Object(m.__)("More Global Styles Actions"),toggleProps:{disabled:!e},controls:[{title:Object(m.__)("Reset to defaults"),onClick:t},{title:Object(m.__)("Welcome Guide"),onClick:()=>n("welcomeGuideStyles")}]})))},Object(a.createElement)(Qn,null))}const cc="edit-site/template",rc="edit-site/block-inspector";var ac=e=>{let{sidebarName:t}=e;const{enableComplementaryArea:n}=Object(i.useDispatch)(T.i),[c,r]=t===cc?[Object(m.__)("Template (selected)"),"is-active"]:[Object(m.__)("Template"),""],[l,o]=t===rc?[Object(m.__)("Block (selected)"),"is-active"]:[Object(m.__)("Block"),""];return Object(a.createElement)("ul",null,Object(a.createElement)("li",null,Object(a.createElement)(_e.Button,{onClick:()=>n(g,cc),className:"edit-site-sidebar__panel-tab "+r,"aria-label":c,"data-label":Object(m.__)("Template")},Object(m.__)("Template"))),Object(a.createElement)("li",null,Object(a.createElement)(_e.Button,{onClick:()=>n(g,rc),className:"edit-site-sidebar__panel-tab "+o,"aria-label":l,"data-label":Object(m.__)("Block")},Object(m.__)("Block"))))};function lc(e){let{area:t,clientId:n}=e;const{selectBlock:c,toggleBlockHighlight:r}=Object(i.useDispatch)(Le.store),l=Object(i.useSelect)(e=>e(u.store).__experimentalGetDefaultTemplatePartAreas().find(e=>e.area===t),[t]),o=()=>r(n,!0),s=()=>r(n,!1);return Object(a.createElement)(_e.Button,{className:"edit-site-template-card__template-areas-item",icon:null==l?void 0:l.icon,onMouseOver:o,onMouseLeave:s,onFocus:o,onBlur:s,onClick:()=>{c(n)}},null==l?void 0:l.label)}function oc(){const e=Object(i.useSelect)(e=>e(Oe).getCurrentTemplateTemplateParts(),[]);return e.length?Object(a.createElement)("section",{className:"edit-site-template-card__template-areas"},Object(a.createElement)(_e.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},Object(m.__)("Areas")),Object(a.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map(e=>{let{templatePart:t,block:n}=e;return Object(a.createElement)("li",{key:t.slug},Object(a.createElement)(lc,{area:t.area,clientId:n.clientId}))}))):null}function ic(){const{title:e,description:t,icon:n}=Object(i.useSelect)(e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Oe),{getEntityRecord:c}=e(s.store),{__experimentalGetTemplateInfo:r}=e(u.store),a=c("postType",t(),n());return a?r(a):{}},[]);return e||t?Object(a.createElement)("div",{className:"edit-site-template-card"},Object(a.createElement)(_e.Icon,{className:"edit-site-template-card__icon",icon:n}),Object(a.createElement)("div",{className:"edit-site-template-card__content"},Object(a.createElement)("h2",{className:"edit-site-template-card__title"},e),Object(a.createElement)("div",{className:"edit-site-template-card__description"},t),Object(a.createElement)(oc,null))):null}const{Slot:sc,Fill:uc}=Object(_e.createSlotFill)("EditSiteSidebarInspector"),mc=uc;function dc(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n}=Object(i.useSelect)(e=>{const t=e(T.i).getActiveComplementaryArea(g);return{sidebar:t,isEditorSidebarOpened:[rc,cc].includes(t),hasBlockSelection:!!e(Le.store).getBlockSelectionStart()}},[]),{enableComplementaryArea:c}=Object(i.useDispatch)(T.i);Object(a.useEffect)(()=>{t&&c(g,n?rc:cc)},[n,t]);let r=e;return t||(r=n?rc:cc),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Lt,{identifier:r,title:Object(m.__)("Settings"),icon:At.a,closeLabel:Object(m.__)("Close settings sidebar"),header:Object(a.createElement)(ac,{sidebarName:r}),headerClassName:"edit-site-sidebar__panel-tabs"},r===cc&&Object(a.createElement)(_e.PanelBody,null,Object(a.createElement)(ic,null)),r===rc&&Object(a.createElement)(sc,{bubblesVirtually:!0})),Object(a.createElement)(nc,null))}var bc=n("rmEH");var pc=Object(a.createElement)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(mt.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),Oc=n("OE6V");const jc="__experimentalMainDashboardButton",{Fill:_c,Slot:gc}=Object(_e.createSlotFill)(jc),hc=_c;hc.Slot=e=>{let{children:t}=e;const n=Object(_e.__experimentalUseSlot)(jc);return Boolean(n.fills&&n.fills.length)?Object(a.createElement)(gc,{bubblesVirtually:!0}):t};var fc=hc;const Ec="site-editor";function vc(e){let{params:t,replace:n,...c}=e;const r=xt(t,n);return Object(a.createElement)(_e.__experimentalNavigationItem,Object(ge.a)({},r,c))}var yc=e=>{let{activeItem:t=Ec}=e;const{isNavigationOpen:n,siteTitle:c}=Object(i.useSelect)(e=>{const{getEntityRecord:t}=e(s.store);return{siteTitle:(t("root","__unstableBase",void 0)||{}).name,isNavigationOpen:e(Oe).isNavigationOpened()}},[]),{setIsNavigationPanelOpened:r}=Object(i.useDispatch)(Oe);return Object(a.createElement)("div",{className:qe()("edit-site-navigation-panel",{"is-open":n}),onKeyDown:e=>{e.keyCode!==ze.ESCAPE||e.defaultPrevented||(e.preventDefault(),r(!1))}},Object(a.createElement)("div",{className:"edit-site-navigation-panel__inner"},Object(a.createElement)("div",{className:"edit-site-navigation-panel__site-title-container"},Object(a.createElement)("div",{className:"edit-site-navigation-panel__site-title"},Object(bc.decodeEntities)(c))),Object(a.createElement)("div",{className:"edit-site-navigation-panel__scroll-container"},Object(a.createElement)(_e.__experimentalNavigation,{activeItem:t},Object(a.createElement)(fc.Slot,null,Object(a.createElement)(_e.__experimentalNavigationBackButton,{backButtonLabel:Object(m.__)("Dashboard"),className:"edit-site-navigation-panel__back-to-dashboard",href:"index.php"})),Object(a.createElement)(_e.__experimentalNavigationMenu,null,Object(a.createElement)(_e.__experimentalNavigationGroup,{title:Object(m.__)("Editor")},Object(a.createElement)(vc,{icon:pc,title:Object(m.__)("Site"),item:Ec,params:{postId:void 0,postType:void 0}}),Object(a.createElement)(vc,{icon:cn.a,title:Object(m.__)("Templates"),item:"wp_template",params:{postId:void 0,postType:"wp_template"}}),Object(a.createElement)(vc,{icon:Oc.a,title:Object(m.__)("Template Parts"),item:"wp_template_part",params:{postId:void 0,postType:"wp_template_part"}})))))))},wc=n("wduq");var Sc=function(e){let{icon:t}=e;const{isNavigationOpen:n,isRequestingSiteIcon:c,siteIconUrl:r}=Object(i.useSelect)(e=>{const{getEntityRecord:t,isResolving:n}=e(s.store),c=t("root","__unstableBase",void 0)||{};return{isNavigationOpen:e(Oe).isNavigationOpened(),isRequestingSiteIcon:n("core","getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:c.site_icon_url}},[]),{setIsNavigationPanelOpened:l}=Object(i.useDispatch)(Oe),o=Object(Fe.useReducedMotion)(),u=Object(a.useRef)();Object(a.useEffect)(()=>{n||u.current.focus()},[n]);let d=Object(a.createElement)(_e.Icon,{size:"36px",icon:wc.a});const b={expand:{scale:1.7,borderRadius:0,transition:{type:"tween",duration:"0.2"}}};return r?d=Object(a.createElement)(_e.__unstableMotion.img,{variants:!o&&b,alt:Object(m.__)("Site Icon"),className:"edit-site-navigation-toggle__site-icon",src:r}):c?d=null:t&&(d=Object(a.createElement)(_e.Icon,{size:"36px",icon:t})),Object(a.createElement)(_e.__unstableMotion.div,{className:"edit-site-navigation-toggle"+(n?" is-open":""),whileHover:"expand"},Object(a.createElement)(_e.Button,{className:"edit-site-navigation-toggle__button has-icon",label:Object(m.__)("Toggle navigation"),ref:u,"aria-pressed":n,onClick:()=>l(!n),showTooltip:!0},d))};const{Fill:xc,Slot:kc}=Object(_e.createSlotFill)("EditSiteNavigationPanelPreview"),{Fill:Tc,Slot:Cc}=Object(_e.createSlotFill)("EditSiteNavigationSidebar");function Ic(e){let{isDefaultOpen:t=!1,activeTemplateType:n}=e;const c=Object(Fe.useViewportMatch)("medium"),{setIsNavigationPanelOpened:r}=Object(i.useDispatch)(Oe);return Object(a.useEffect)((function(){r(t&&c)}),[t,c,r]),Object(a.createElement)(Tc,null,Object(a.createElement)(Sc,null),Object(a.createElement)(yc,{activeItem:n}),Object(a.createElement)(kc,null))}Ic.Slot=Cc;var Nc=Ic,Pc=n("diJD");function Mc(e){let{clientId:t}=e;const{getBlocks:n}=Object(i.useSelect)(Le.store),{replaceBlocks:c}=Object(i.useDispatch)(Le.store);return Object(a.createElement)(Le.BlockSettingsMenuControls,null,e=>{let{onClose:r}=e;return Object(a.createElement)(_e.MenuItem,{onClick:()=>{c(t,n(t)),r()}},Object(m.__)("Detach blocks from template part"))})}function Rc(e){let{closeModal:t,onCreate:n}=e;const[c,r]=Object(a.useState)(""),[l,o]=Object(a.useState)("uncategorized"),[s,d]=Object(a.useState)(!1),b=Object(Fe.useInstanceId)(Rc),p=Object(i.useSelect)(e=>e(u.store).__experimentalGetDefaultTemplatePartAreas(),[]);return Object(a.createElement)(_e.Modal,{title:Object(m.__)("Create a template part"),closeLabel:Object(m.__)("Close"),onRequestClose:t,overlayClassName:"edit-site-create-template-part-modal"},Object(a.createElement)("form",{onSubmit:async e=>{e.preventDefault(),c&&(d(!0),await n({title:c,area:l}))}},Object(a.createElement)(_e.TextControl,{label:Object(m.__)("Name"),value:c,onChange:r,required:!0}),Object(a.createElement)(_e.BaseControl,{label:Object(m.__)("Area"),id:"edit-site-create-template-part-modal__area-selection-"+b,className:"edit-site-create-template-part-modal__area-base-control"},Object(a.createElement)(_e.__experimentalRadioGroup,{label:Object(m.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:"edit-site-create-template-part-modal__area-selection-"+b,onChange:o,checked:l},p.map(e=>{let{icon:t,label:n,area:c,description:r}=e;return Object(a.createElement)(_e.__experimentalRadio,{key:n,value:c,className:"edit-site-create-template-part-modal__area-radio"},Object(a.createElement)(_e.Flex,{align:"start",justify:"start"},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.Icon,{icon:t})),Object(a.createElement)(_e.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},n,Object(a.createElement)("div",null,r)),Object(a.createElement)(_e.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},l===c&&Object(a.createElement)(_e.Icon,{icon:tt.a}))))}))),Object(a.createElement)(_e.Flex,{className:"edit-site-create-template-part-modal__modal-actions",justify:"flex-end"},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.Button,{variant:"secondary",onClick:()=>{t()}},Object(m.__)("Cancel"))),Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.Button,{variant:"primary",type:"submit",disabled:!c,isBusy:s},Object(m.__)("Create"))))))}function Ac(e){let{clientIds:t,blocks:n}=e;const[c,r]=Object(a.useState)(!1),{replaceBlocks:o}=Object(i.useDispatch)(Le.store),{saveEntityRecord:u}=Object(i.useDispatch)(s.store),{createSuccessNotice:d}=Object(i.useDispatch)(k.store);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Le.BlockSettingsMenuControls,null,()=>Object(a.createElement)(_e.MenuItem,{onClick:()=>{r(!0)}},Object(m.__)("Make template part"))),c&&Object(a.createElement)(Rc,{closeModal:()=>{r(!1)},onCreate:async e=>{let{title:c,area:r}=e;const a=Object($.kebabCase)(c).replace(/[^\w-]+/g,"")||"wp-custom-part",i=await u("postType","wp_template_part",{slug:a,title:c,content:Object(l.serialize)(n),area:r});o(t,Object(l.createBlock)("core/template-part",{slug:i.slug,theme:i.theme})),d(Object(m.__)("Template part created."),{type:"snackbar"})}}))}function Lc(){var e;const{clientIds:t,blocks:n}=Object(i.useSelect)(e=>{const{getSelectedBlockClientIds:t,getBlocksByClientId:n}=e(Le.store),c=t();return{clientIds:c,blocks:n(c)}},[]);return 1===n.length&&"core/template-part"===(null===(e=n[0])||void 0===e?void 0:e.name)?Object(a.createElement)(Mc,{clientId:t[0]}):Object(a.createElement)(Ac,{clientIds:t,blocks:n})}var Bc=n("B9Az");function Dc(e){let{type:t,id:n,activePage:c,onActivePageChange:r}=e;const l=Object(i.useSelect)(e=>t&&n&&"URL"!==t&&e(s.store).getEntityRecord("postType",t,n),[t,n]),o=Object(a.useMemo)(()=>{if(null==l||!l.link)return null;const e=Object(b.getPathAndQueryString)(l.link);return e===(null==c?void 0:c.path)?null:()=>r({type:t,slug:l.slug,path:e,context:{postType:l.type,postId:l.id}})},[l,null==c?void 0:c.path,r]);return o&&Object(a.createElement)(_e.Button,{icon:Bc.a,label:Object(m.__)("Edit Page Template"),onClick:o})}function Fc(e){let{onClick:t=(()=>{})}=e;const{shortcut:n,isBlockInspectorOpen:c}=Object(i.useSelect)(e=>({shortcut:e(De.store).getShortcutRepresentation("core/edit-site/toggle-block-settings-sidebar"),isBlockInspectorOpen:e(T.i).getActiveComplementaryArea(Oe.name)===rc}),[]),{enableComplementaryArea:r,disableComplementaryArea:l}=Object(i.useDispatch)(T.i),o=c?Object(m.__)("Hide more settings"):Object(m.__)("Show more settings");return Object(a.createElement)(_e.MenuItem,{onClick:()=>{c?(l(g),Object(nt.speak)(Object(m.__)("Block settings closed"))):(r(g,rc),Object(nt.speak)(Object(m.__)("Additional settings are now available in the Editor block settings sidebar"))),t()},shortcut:n},o)}function Vc(){return Object(a.createElement)(Le.BlockSettingsMenuControls,null,e=>{let{selectedClientIds:t,onClose:n}=e;return Object(a.createElement)(Gc,{selectedClientId:t[0],onClose:n})})}function Gc(e){let{selectedClientId:t,onClose:n}=e;const{params:c}=Pe(),r=Object(i.useSelect)(e=>{const n=e(Le.store).getBlock(t);if(n&&Object(l.isTemplatePart)(n)){const{theme:t,slug:c}=n.attributes;return e(s.store).getEntityRecord("postType","wp_template_part",`${t}//${c}`)}},[t]),o=xt({postId:null==r?void 0:r.id,postType:null==r?void 0:r.type},{fromTemplateId:c.postId});return r?Object(a.createElement)(_e.MenuItem,Object(ge.a)({},o,{onClick:e=>{o.onClick(e),n()}}),Object(m.sprintf)(Object(m.__)("Edit %s"),r.slug)):null}var zc=n("cjQ8");var Uc=function(){var e;const t=Pe(),n=Me(),c="wp_template_part"===t.params.postType,r=null===(e=t.state)||void 0===e?void 0:e.fromTemplateId;return c&&r?Object(a.createElement)(_e.Button,{className:"edit-site-visual-editor__back-button",icon:zc.a,onClick:()=>{n.back()}},Object(m.__)("Back")):null};function Hc(e){let{direction:t,resizeWidthBy:n}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("button",{className:"resizable-editor__drag-handle is-"+t,"aria-label":Object(m.__)("Drag to resize"),"aria-describedby":"resizable-editor__resize-help-"+t,onKeyDown:function(e){const{keyCode:c}=e;"left"===t&&c===ze.LEFT||"right"===t&&c===ze.RIGHT?n(20):("left"===t&&c===ze.RIGHT||"right"===t&&c===ze.LEFT)&&n(-20)}}),Object(a.createElement)(_e.VisuallyHidden,{id:"resizable-editor__resize-help-"+t},Object(m.__)("Use left and right arrow keys to resize the canvas.")))}const Wc="100%",qc="100%",$c={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var Kc=function(e){let{enableResizing:t,settings:n,...c}=e;const r=Object(i.useSelect)(e=>e(Oe).__experimentalGetPreviewDeviceType(),[]),l=Object(Le.__experimentalUseResizeCanvas)(r),[o,s]=Object(a.useState)(Wc),[u,m]=Object(a.useState)(qc),d=Object(a.useRef)(),b=Object(Le.__unstableUseMouseMoveTypingReset)(),p=Object(Fe.useMergeRefs)([d,b]);Object(a.useEffect)((function(){const e=d.current;if(!e||!t)return;let n,c=null;function r(){c||(c=e.contentWindow.requestAnimationFrame(()=>{m(e.contentDocument.documentElement.scrollHeight),c=null}))}function a(){var t;null===(t=n)||void 0===t||t.disconnect(),n=new e.contentWindow.ResizeObserver(r),n.observe(e.contentDocument.documentElement),r()}return e.addEventListener("load",a),a(),()=>{var t,r;null===(t=e.contentWindow)||void 0===t||t.cancelAnimationFrame(c),null===(r=n)||void 0===r||r.disconnect(),e.removeEventListener("load",a)}}),[t]);const O=Object(a.useCallback)(e=>{d.current&&s(d.current.offsetWidth+e)},[]);return Object(a.createElement)(_e.ResizableBox,{size:{width:o,height:u},onResizeStop:(e,t,n)=>{s(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{right:t,left:t},showHandle:t,resizeRatio:2,handleComponent:{left:Object(a.createElement)(Hc,{direction:"left",resizeWidthBy:O}),right:Object(a.createElement)(Hc,{direction:"right",resizeWidthBy:O})},handleClasses:void 0,handleStyles:{left:$c,right:$c}},Object(a.createElement)(Le.__unstableIframe,Object(ge.a)({style:t?void 0:l,head:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Le.__unstableEditorStyles,{styles:n.styles}),Object(a.createElement)("style",null,".is-root-container { display: flow-root; }"),t&&Object(a.createElement)("style",null,"html, body { height: -moz-fit-content !important; height: fit-content !important; min-height: 0 !important; }",".is-root-container { min-height: 0 !important; }")),ref:p,name:"editor-canvas",className:"edit-site-visual-editor__editor-canvas"},c)))};const Yc={type:"default",alignments:[]};function Xc(e){let{setIsInserterOpen:t}=e;const{settings:n,templateType:c,templateId:r,page:l}=Object(i.useSelect)(e=>{const{getSettings:n,getEditedPostType:c,getEditedPostId:r,getPage:a}=e(Oe);return{settings:n(t),templateType:c(),templateId:r(),page:a()}},[t]),[o,u,m]=Object(s.useEntityBlockEditor)("postType",c),{setPage:d}=Object(i.useDispatch)(Oe),b=Object(a.useRef)(),p=Object(Fe.useMergeRefs)([b,Object(Le.__unstableUseTypingObserver)()]),O=Object(Fe.useViewportMatch)("small","<"),{clearSelectedBlock:j}=Object(i.useDispatch)(Le.store),_="wp_template_part"===c;return Object(a.createElement)(Le.BlockEditorProvider,{settings:n,value:o,onInput:u,onChange:m,useSubRegistry:!1},Object(a.createElement)(Vc,null),Object(a.createElement)(Lc,null),Object(a.createElement)(Le.__experimentalLinkControl.ViewerFill,null,Object(a.useCallback)(e=>Object(a.createElement)(Dc,Object(ge.a)({},e,{activePage:l,onActivePageChange:d})),[l])),Object(a.createElement)(mc,null,Object(a.createElement)(Le.BlockInspector,null)),Object(a.createElement)(Le.BlockTools,{className:qe()("edit-site-visual-editor",{"is-focus-mode":_}),__unstableContentRef:b,onClick:e=>{e.target===e.currentTarget&&j()}},Object(a.createElement)(Le.BlockEditorKeyboardShortcuts.Register,null),Object(a.createElement)(Uc,null),Object(a.createElement)(Kc,{key:r,enableResizing:_&&!O,settings:n,contentRef:p},Object(a.createElement)(Le.BlockList,{className:"edit-site-block-editor__block-list wp-site-blocks",__experimentalLayout:Yc,renderAppender:!_&&void 0})),Object(a.createElement)(Le.__unstableBlockSettingsMenuFirstItem,null,e=>{let{onClose:t}=e;return Object(a.createElement)(Fc,{onClick:t})})),Object(a.createElement)(Pc.ReusableBlocksMenuItems,null))}function Qc(e){let{openEntitiesSavedStates:t}=e;const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:c}=Object(i.useSelect)(s.store),r=Object(i.useSelect)(e=>e(Oe).isListViewOpened(),[]),a=Object(i.useSelect)(e=>e(T.i).getActiveComplementaryArea(Oe.name)===rc,[]),{redo:l,undo:o}=Object(i.useDispatch)(s.store),{setIsListViewOpened:u}=Object(i.useDispatch)(Oe),{enableComplementaryArea:m,disableComplementaryArea:d}=Object(i.useDispatch)(T.i);return Object(De.useShortcut)("core/edit-site/save",e=>{e.preventDefault();const r=n(),a=!!r.length;!r.some(e=>c(e.kind,e.name,e.key))&&a&&t()}),Object(De.useShortcut)("core/edit-site/undo",e=>{o(),e.preventDefault()}),Object(De.useShortcut)("core/edit-site/redo",e=>{l(),e.preventDefault()}),Object(De.useShortcut)("core/edit-site/toggle-list-view",()=>{u(!r)}),Object(De.useShortcut)("core/edit-site/toggle-block-settings-sidebar",e=>{e.preventDefault(),a?d(g):m(g,rc)}),null}Qc.Register=function(){const{registerShortcut:e}=Object(i.useDispatch)(De.store);return Object(a.useEffect)(()=>{e({name:"core/edit-site/save",category:"global",description:Object(m.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/undo",category:"global",description:Object(m.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-site/redo",category:"global",description:Object(m.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}}),e({name:"core/edit-site/toggle-list-view",category:"global",description:Object(m.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:Object(m.__)("Show or hide the block settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/keyboard-shortcuts",category:"main",description:Object(m.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-site/next-region",category:"global",description:Object(m.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:Object(m.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]})},[e]),null};var Zc=Qc;function Jc(){const{setTemplate:e,setTemplatePart:t,setPage:n}=Object(i.useDispatch)(Oe),{params:{postId:c,postType:r}}=Pe();return Object(a.useEffect)(()=>{"page"===r||"post"===r?n({context:{postType:r,postId:c}}):"wp_template"===r?e(c):"wp_template_part"===r&&t(c)},[c,r]),null}var er=n("w95h");function tr(){const{setIsInserterOpened:e}=Object(i.useDispatch)(Oe),t=Object(i.useSelect)(e=>e(Oe).__experimentalGetInsertionPoint(),[]),n=Object(Fe.useViewportMatch)("medium","<"),[c,r]=Object(Fe.__experimentalUseDialog)({onClose:()=>e(!1)});return Object(a.createElement)("div",Object(ge.a)({ref:c},r,{className:"edit-site-editor__inserter-panel"}),Object(a.createElement)("div",{className:"edit-site-editor__inserter-panel-header"},Object(a.createElement)(_e.Button,{icon:er.a,onClick:()=>e(!1)})),Object(a.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},Object(a.createElement)(Le.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue})))}var nr=n("bWcr");function cr(){const{setIsListViewOpened:e}=Object(i.useDispatch)(Oe),{clearSelectedBlock:t,selectBlock:n}=Object(i.useDispatch)(Le.store);const c=Object(Fe.useFocusOnMount)("firstElement"),r=Object(Fe.useFocusReturn)();const l="edit-site-editor__list-view-panel-label-"+Object(Fe.useInstanceId)(cr);return Object(a.createElement)("div",{"aria-labelledby":l,className:"edit-site-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==ze.ESCAPE||t.defaultPrevented||e(!1)}},Object(a.createElement)("div",{className:"edit-site-editor__list-view-panel-header"},Object(a.createElement)("strong",{id:l},Object(m.__)("List view")),Object(a.createElement)(_e.Button,{icon:nr.a,label:Object(m.__)("Close list view sidebar"),onClick:()=>e(!1)})),Object(a.createElement)("div",{className:"edit-site-editor__list-view-panel-content",ref:Object(Fe.useMergeRefs)([r,c])},Object(a.createElement)(Le.__experimentalListView,{onSelect:async function(e){await t(),n(e,-1)},showNestedBlocks:!0,__experimentalFeatures:!0,__experimentalPersistentListViewFeatures:!0})))}function rr(e){let{text:t,children:n}=e;const c=Object(Fe.useCopyToClipboard)(t);return Object(a.createElement)(_e.Button,{variant:"secondary",ref:c},n)}function ar(e){let{message:t,error:n,reboot:c,dashboardLink:r}=e;const l=[];return c&&l.push(Object(a.createElement)(_e.Button,{key:"recovery",onClick:c,variant:"secondary"},Object(m.__)("Attempt Recovery"))),n&&l.push(Object(a.createElement)(rr,{key:"copy-error",text:n.stack},Object(m.__)("Copy Error"))),r&&l.push(Object(a.createElement)(_e.Button,{key:"back-to-dashboard",variant:"secondary",href:r},Object(m.__)("Back to dashboard"))),Object(a.createElement)(Le.Warning,{className:"editor-error-boundary",actions:l},t)}class lr extends a.Component{constructor(){super(...arguments),this.reboot=this.reboot.bind(this),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}reboot(){this.props.onError()}render(){const{error:e}=this.state;return e?Object(a.createElement)(ar,{message:Object(m.__)("The editor has encountered an unexpected error."),error:e,reboot:this.reboot}):this.props.children}}function or(e){let{nonAnimatedSrc:t,animatedSrc:n}=e;return Object(a.createElement)("picture",{className:"edit-site-welcome-guide__image"},Object(a.createElement)("source",{srcSet:t,media:"(prefers-reduced-motion: reduce)"}),Object(a.createElement)("img",{src:n,width:"312",height:"240",alt:""}))}function ir(){const{toggleFeature:e}=Object(i.useDispatch)(Oe);return Object(i.useSelect)(e=>e(Oe).isFeatureActive("welcomeGuide"),[])?Object(a.createElement)(_e.Guide,{className:"edit-site-welcome-guide",contentLabel:Object(m.__)("Welcome to the site editor"),finishButtonText:Object(m.__)("Get Started"),onFinish:()=>e("welcomeGuide"),pages:[{image:Object(a.createElement)(or,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(m.__)("Edit your site")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(m.__)("Design everything on your site — from the header right down to the footer — using blocks.")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(a.createInterpolateElement)(Object(m.__)("Click to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:Object(a.createElement)("img",{alt:Object(m.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]}):null}function sr(){const{toggleFeature:e}=Object(i.useDispatch)(Oe),{isActive:t,isStylesOpen:n}=Object(i.useSelect)(e=>{const t=e(T.i).getActiveComplementaryArea(Oe.name);return{isActive:e(Oe).isFeatureActive("welcomeGuideStyles"),isStylesOpen:"edit-site/global-styles"===t}},[]);return t&&n?Object(a.createElement)(_e.Guide,{className:"edit-site-welcome-guide",contentLabel:Object(m.__)("Welcome to styles"),finishButtonText:Object(m.__)("Get Started"),onFinish:()=>e("welcomeGuideStyles"),pages:[{image:Object(a.createElement)(or,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(m.__)("Welcome to Styles")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(m.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:Object(a.createElement)(or,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(m.__)("Set the design")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(m.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle! ")))},{image:Object(a.createElement)(or,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(m.__)("Personalize blocks")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(m.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:Object(a.createElement)(or,{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-site-welcome-guide__heading"},Object(m.__)("Learn more")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(m.__)("New to block themes and styling your site? "),Object(a.createElement)(_e.ExternalLink,{href:Object(m.__)("https://wordpress.org/support/article/styles-overview/")},Object(m.__)("Here’s a detailed guide to learn how to make the most of it."))))}]}):null}function ur(){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ir,null),Object(a.createElement)(sr,null))}function mr(){const[e,t]=function(){const[e,t]=Object(a.useState)([]),[n,c]=Object(a.useState)({}),{merged:r}=Object(a.useContext)(qt);return Object(a.useEffect)(()=>{if(null==r||!r.styles||null==r||!r.settings)return;const e=(e=>{const t={};return e.forEach(e=>{var n,c;const r=e.name,a=null!==(n=null==e||null===(c=e.supports)||void 0===c?void 0:c.__experimentalSelector)&&void 0!==n?n:".wp-block-"+r.replace("core/","").replace("/","-");t[r]={name:r,selector:a}}),t})(Object(l.getBlockTypes)()),n=ec(r,e),a=tc(r,e);t([{css:n,isGlobalStyles:!0},{css:a,isGlobalStyles:!0}]),c(r.settings)},[r]),[e,n]}(),{getSettings:n}=Object(i.useSelect)(Oe),{updateSettings:c}=Object(i.useDispatch)(Oe);Object(a.useEffect)(()=>{var r;if(!e||!t)return;const a=n(),l=null==a||null===(r=a.styles)||void 0===r?void 0:r.filter(e=>!e.isGlobalStyles);c({...a,styles:[...l,...e],__experimentalFeatures:t})},[e,t])}function dr(){return mr(),null}function br(e,t){if(Array.isArray(t))return t}const pr=e=>{if(!Object($.isObject)(e)||Array.isArray(e))return e;const t=Object($.pickBy)(Object($.mapValues)(e,pr),$.identity);return Object($.isEmpty)(t)?void 0:t};function Or(){const[e,t,n]=function(){const{globalStylesId:e,settings:t,styles:n}=Object(i.useSelect)(e=>{const t=e(s.store).__experimentalGetCurrentGlobalStylesId(),n=t?e(s.store).getEditedEntityRecord("root","globalStyles",t):void 0;return{globalStylesId:t,settings:null==n?void 0:n.settings,styles:null==n?void 0:n.styles}},[]),{getEditedEntityRecord:c}=Object(i.useSelect)(s.store),{editEntityRecord:r}=Object(i.useDispatch)(s.store),l=Object(a.useMemo)(()=>({settings:null!=t?t:{},styles:null!=n?n:{}}),[t,n]),o=Object(a.useCallback)(t=>{var n,a;const l=c("root","globalStyles",e),o=t({styles:null!==(n=null==l?void 0:l.styles)&&void 0!==n?n:{},settings:null!==(a=null==l?void 0:l.settings)&&void 0!==a?a:{}});r("root","globalStyles",e,{styles:pr(o.styles)||{},settings:pr(o.settings)||{}})},[e]);return[!!t||!!n,l,o]}(),[c,r]=function(){const e=Object(i.useSelect)(e=>e(s.store).__experimentalGetCurrentThemeBaseGlobalStyles(),[]);return[!!e,e]}(),l=Object(a.useMemo)(()=>{return r&&t?(e=r,n=t,Object($.mergeWith)({},e,n,br)):{};var e,n},[t,r]);return Object(a.useMemo)(()=>({isReady:e&&c,user:t,base:r,merged:l,setUserConfig:n}),[l,t,r,n,e,c])}function jr(e){let{children:t}=e;const n=Or();return n.isReady?Object(a.createElement)(qt.Provider,{value:n},t):null}function _r(e){const t=Pe(),n=Object(i.useSelect)(e=>{var t;return null===(t=e(s.store).getEntityRecord("root","site"))||void 0===t?void 0:t.title},[]),c=Object(a.useRef)(!0);Object(a.useEffect)(()=>{c.current=!1},[t]),Object(a.useEffect)(()=>{if(!c.current&&e&&n){const t=Object(m.sprintf)(Object(m.__)("%1$s ‹ %2$s — WordPress"),e,n);document.title=t,Object(nt.speak)(Object(m.sprintf)(Object(m.__)("Now displaying: %s"),document.title),"assertive")}},[e,n,t])}const gr={secondarySidebar:Object(m.__)("Block Library"),drawer:Object(m.__)("Navigation Sidebar")};var hr=function(e){let{onError:t}=e;const{isInserterOpen:n,isListViewOpen:c,sidebarIsOpened:r,settings:l,entityId:o,templateType:d,page:b,template:p,templateResolved:O,isNavigationOpen:j,previousShortcut:_,nextShortcut:g}=Object(i.useSelect)(e=>{const{isInserterOpened:t,isListViewOpened:n,getSettings:c,getEditedPostType:r,getEditedPostId:a,getPage:l,isNavigationOpened:o}=e(Oe),{hasFinishedResolution:i,getEntityRecord:u}=e(s.store),m=r(),d=a();return{isInserterOpen:t(),isListViewOpen:n(),sidebarIsOpened:!!e(T.i).getActiveComplementaryArea(Oe.name),settings:c(),templateType:m,page:l(),template:d?u("postType",m,d):null,templateResolved:!!d&&i("getEntityRecord",["postType",m,d]),entityId:d,isNavigationOpen:o(),previousShortcut:e(De.store).getAllShortcutKeyCombinations("core/edit-site/previous-region"),nextShortcut:e(De.store).getAllShortcutKeyCombinations("core/edit-site/next-region")}},[]),{setPage:h,setIsInserterOpened:f}=Object(i.useDispatch)(Oe),{enableComplementaryArea:E}=Object(i.useDispatch)(T.i),[v,y]=Object(a.useState)(!1),w=Object(a.useCallback)(()=>y(!0),[]),S=Object(a.useCallback)(()=>{y(!1)},[]),x=Object(a.useMemo)(()=>({...null==b?void 0:b.context,queryContext:[(null==b?void 0:b.context.queryContext)||{page:1},e=>h({...b,context:{...null==b?void 0:b.context,queryContext:{...null==b?void 0:b.context.queryContext,...e}}})]}),[null==b?void 0:b.context]);Object(a.useEffect)(()=>{j?document.body.classList.add("is-navigation-sidebar-open"):document.body.classList.remove("is-navigation-sidebar-open")},[j]),Object(a.useEffect)((function(){"open"===new URLSearchParams(window.location.search).get("styles")&&E("core/edit-site","edit-site/global-styles")}),[E]);const k=(null==l?void 0:l.siteUrl)&&void 0!==d&&void 0!==o;return _r(k&&Object(m.__)("Editor (beta)")),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Jc,null),k&&Object(a.createElement)(De.ShortcutProvider,null,Object(a.createElement)(s.EntityProvider,{kind:"root",type:"site"},Object(a.createElement)(s.EntityProvider,{kind:"postType",type:d,id:o},Object(a.createElement)(jr,null,Object(a.createElement)(Le.BlockContextProvider,{value:x},Object(a.createElement)(dr,null),Object(a.createElement)(lr,{onError:t},Object(a.createElement)(Zc.Register,null),Object(a.createElement)(dc,null),Object(a.createElement)(T.e,{labels:gr,secondarySidebar:n?Object(a.createElement)(tr,null):c?Object(a.createElement)(cr,null):null,sidebar:r&&Object(a.createElement)(T.b.Slot,{scope:"core/edit-site"}),drawer:Object(a.createElement)(Nc.Slot,null),header:Object(a.createElement)(Rt,{openEntitiesSavedStates:w}),notices:Object(a.createElement)(u.EditorSnackbars,null),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.EditorNotices,null),p&&Object(a.createElement)(Xc,{setIsInserterOpen:f}),O&&!p&&(null==l?void 0:l.siteUrl)&&o&&Object(a.createElement)(_e.Notice,{status:"warning",isDismissible:!1},Object(m.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),Object(a.createElement)(Zc,{openEntitiesSavedStates:w})),actions:Object(a.createElement)(a.Fragment,null,v?Object(a.createElement)(u.EntitiesSavedStates,{close:S}):Object(a.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},Object(a.createElement)(_e.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:w,"aria-expanded":!1},Object(m.__)("Open save panel")))),footer:Object(a.createElement)(Le.BlockBreadcrumb,null),shortcuts:{previous:_,next:g}}),Object(a.createElement)(ur,null),Object(a.createElement)(_e.Popover.Slot,null),Object(a.createElement)(Be.PluginArea,null))))))))};const fr=["front-page","single-post","page","archive","search","404","index"];function Er(e){let{postType:t}=e;const n=Me(),{templates:c,defaultTemplateTypes:r}=Object(i.useSelect)(e=>({templates:e(s.store).getEntityRecords("postType","wp_template",{per_page:-1}),defaultTemplateTypes:e(u.store).__experimentalGetDefaultTemplateTypes()}),[]),{saveEntityRecord:l}=Object(i.useDispatch)(s.store),{createErrorNotice:o}=Object(i.useDispatch)(k.store),{getLastEntitySaveError:d}=Object(i.useSelect)(s.store);const b=Object($.map)(c,"slug"),p=Object($.filter)(r,e=>Object($.includes)(fr,e.slug)&&!Object($.includes)(b,e.slug));return p.length?Object(a.createElement)(_e.DropdownMenu,{className:"edit-site-new-template-dropdown",icon:null,text:t.labels.add_new,label:t.labels.add_new_item,popoverProps:{noArrow:!1},toggleProps:{variant:"primary"}},()=>Object(a.createElement)(_e.NavigableMenu,{className:"edit-site-new-template-dropdown__popover"},Object(a.createElement)(_e.MenuGroup,{label:t.labels.add_new_item},Object($.map)(p,e=>{let{title:t,description:c,slug:i}=e;return Object(a.createElement)(_e.MenuItem,{info:c,key:i,onClick:()=>{!async function(e){let{slug:t}=e;try{const{title:e,description:c}=Object($.find)(r,{slug:t}),a=await l("postType","wp_template",{excerpt:c,slug:t.toString(),status:"publish",title:e}),o=d("postType","wp_template",a.id);if(o)throw o;n.push({postId:a.id,postType:a.type})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(m.__)("An error occurred while creating the template.");o(t,{type:"snackbar"})}}({slug:i})}},t)})))):null}function vr(e){let{postType:t}=e;const n=Me(),[c,r]=Object(a.useState)(!1),{createErrorNotice:l}=Object(i.useDispatch)(k.store),{saveEntityRecord:o}=Object(i.useDispatch)(s.store),{getLastEntitySaveError:u}=Object(i.useSelect)(s.store);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_e.Button,{variant:"primary",onClick:()=>{r(!0)}},t.labels.add_new),c&&Object(a.createElement)(Rc,{closeModal:()=>r(!1),onCreate:async function(e){let{title:t,area:c}=e;if(t)try{const e=Object($.kebabCase)(t).replace(/[^\w-]+/g,"")||"wp-custom-part",a=await o("postType","wp_template_part",{slug:e,title:t,content:"",area:c}),l=u("postType","wp_template_part",a.id);if(l)throw l;r(!1),n.push({postId:a.id,postType:a.type})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(m.__)("An error occurred while creating the template part.");l(t,{type:"snackbar"}),r(!1)}else l(Object(m.__)("Title is not defined."),{type:"snackbar"})}}))}function yr(e){let{templateType:t="wp_template"}=e;const n=Object(i.useSelect)(e=>e(s.store).getPostType(t),[t]);return n?"wp_template"===t?Object(a.createElement)(Er,{postType:n}):"wp_template_part"===t?Object(a.createElement)(vr,{postType:n}):null:null}function wr(e){var t;let{templateType:n}=e;const c=Object(i.useSelect)(e=>e(s.store).getPostType(n),[n]);return c?Object(a.createElement)("header",{className:"edit-site-list-header"},Object(a.createElement)(_e.__experimentalHeading,{level:1,className:"edit-site-list-header__title"},null===(t=c.labels)||void 0===t?void 0:t.name),Object(a.createElement)("div",{className:"edit-site-list-header__right"},Object(a.createElement)(yr,{templateType:n}))):null}function Sr(e){let{template:t,onClose:n}=e;const[c,r]=Object(a.useState)(()=>t.title.rendered),[l,o]=Object(a.useState)(!1),{getLastEntitySaveError:u}=Object(i.useSelect)(s.store),{editEntityRecord:d,saveEditedEntityRecord:b}=Object(i.useDispatch)(s.store),{createSuccessNotice:p,createErrorNotice:O}=Object(i.useDispatch)(k.store);if(!t.is_custom)return null;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_e.MenuItem,{onClick:()=>{o(!0),r(t.title.rendered)}},Object(m.__)("Rename")),l&&Object(a.createElement)(_e.Modal,{title:Object(m.__)("Rename template"),closeLabel:Object(m.__)("Close"),onRequestClose:()=>{o(!1)},overlayClassName:"edit-site-list__rename-modal"},Object(a.createElement)("form",{onSubmit:async function(e){e.preventDefault();try{await d("postType",t.type,t.id,{title:c}),r(""),o(!1),n(),await b("postType",t.type,t.id);const e=u("postType",t.type,t.id);if(e)throw e;p(Object(m.__)("Template has been renamed."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(m.__)("An error occurred while renaming the template.");O(t,{type:"snackbar"})}}},Object(a.createElement)(_e.Flex,{align:"flex-start",gap:8},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.TextControl,{label:Object(m.__)("Name"),value:c,onChange:r,required:!0}))),Object(a.createElement)(_e.Flex,{className:"edit-site-list__rename-modal-actions",justify:"flex-end",expanded:!1},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.Button,{variant:"tertiary",onClick:()=>{o(!1)}},Object(m.__)("Cancel"))),Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(_e.Button,{variant:"primary",type:"submit"},Object(m.__)("Save")))))))}function xr(e){let{template:t}=e;const{removeTemplate:n,revertTemplate:c}=Object(i.useDispatch)(Oe),{saveEditedEntityRecord:r}=Object(i.useDispatch)(s.store),{createSuccessNotice:l,createErrorNotice:o}=Object(i.useDispatch)(k.store),u=function(e){return!!e&&("custom"===e.source&&!e.has_theme_file)}(t),d=C(t);if(!u&&!d)return null;return Object(a.createElement)(_e.DropdownMenu,{icon:Ue.a,label:Object(m.__)("Actions"),className:"edit-site-list-table__actions"},e=>{let{onClose:i}=e;return Object(a.createElement)(_e.MenuGroup,null,u&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Sr,{template:t,onClose:i}),Object(a.createElement)(_e.MenuItem,{isDestructive:!0,onClick:()=>{n(t),i()}},Object(m.__)("Delete template"))),d&&Object(a.createElement)(_e.MenuItem,{info:Object(m.__)("Restore template to default state"),onClick:()=>{!async function(){try{await c(t,{allowUndo:!1}),await r("postType",t.type,t.id),l(Object(m.__)("Template reverted."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(m.__)("An error occurred while reverting the template.");o(t,{type:"snackbar"})}}(),i()}},Object(m.__)("Clear customizations")))})}var kr=n("0Ene");var Tr=Object(a.createElement)(mt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(mt.Path,{d:"M7.25 16.4371C6.16445 15.2755 5.5 13.7153 5.5 12C5.5 8.41015 8.41015 5.5 12 5.5C15.5899 5.5 18.5 8.41015 18.5 12C18.5 13.7153 17.8356 15.2755 16.75 16.4371V16C16.75 14.4812 15.5188 13.25 14 13.25L10 13.25C8.48122 13.25 7.25 14.4812 7.25 16V16.4371ZM8.75 17.6304C9.70606 18.1835 10.8161 18.5 12 18.5C13.1839 18.5 14.2939 18.1835 15.25 17.6304V16C15.25 15.3096 14.6904 14.75 14 14.75L10 14.75C9.30964 14.75 8.75 15.3096 8.75 16V17.6304ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM14 10C14 11.1046 13.1046 12 12 12C10.8954 12 10 11.1046 10 10C10 8.89543 10.8954 8 12 8C13.1046 8 14 8.89543 14 10Z",fillRule:"evenodd",clipRule:"evenodd",fill:"black"})),Cr=n("K8zD");const Ir=["wp_template","wp_template_part"];function Nr(e){let{isCustomized:t,children:n}=e;return t?Object(a.createElement)(_e.Tooltip,{text:Object(m.__)("This template has been customized")},n):n}function Pr(e){let{text:t,icon:n,imageUrl:c,isCustomized:r}=e;const[l,o]=Object(a.useState)(!1);return Object(a.createElement)(_e.__experimentalHStack,{alignment:"left"},Object(a.createElement)(Nr,{isCustomized:r},c?Object(a.createElement)("div",{className:qe()("edit-site-list-added-by__avatar",{"is-loaded":l})},Object(a.createElement)("img",{onLoad:()=>o(!0),alt:"",src:c})):Object(a.createElement)("div",{className:qe()("edit-site-list-added-by__icon",{"is-customized":r})},Object(a.createElement)(_e.Icon,{icon:n}))),Object(a.createElement)("span",null,t))}function Mr(e){var t;let{slug:n,isCustomized:c}=e;const r=Object(i.useSelect)(e=>e(s.store).getTheme(n),[n]);return Object(a.createElement)(Pr,{icon:cn.a,text:(null==r||null===(t=r.name)||void 0===t?void 0:t.rendered)||n,isCustomized:c})}function Rr(e){let{slug:t,isCustomized:n}=e;const c=Object(i.useSelect)(e=>e(s.store).getPlugin(t),[t]);return Object(a.createElement)(Pr,{icon:kr.a,text:(null==c?void 0:c.name)||t,isCustomized:n})}function Ar(e){var t;let{id:n}=e;const c=Object(i.useSelect)(e=>e(s.store).getUser(n),[n]);return Object(a.createElement)(Pr,{icon:Tr,imageUrl:null==c||null===(t=c.avatar_urls)||void 0===t?void 0:t[48],text:null==c?void 0:c.nickname})}function Lr(){const{name:e,logoURL:t}=Object(i.useSelect)(e=>{var t;const{getEntityRecord:n,getMedia:c}=e(s.store),r=n("root","__unstableBase");return{name:null==r?void 0:r.name,logoURL:null!=r&&r.site_logo?null===(t=c(r.site_logo))||void 0===t?void 0:t.source_url:void 0}},[]);return Object(a.createElement)(Pr,{icon:Cr.a,imageUrl:t,text:e})}function Br(e){let{templateType:t,template:n}=e;if(n){if(Ir.includes(t)){if(n.has_theme_file&&("theme"===n.origin||!n.origin&&["theme","custom"].includes(n.source)))return Object(a.createElement)(Mr,{slug:n.theme,isCustomized:"custom"===n.source});if(n.has_theme_file&&"plugin"===n.origin)return Object(a.createElement)(Rr,{slug:n.theme,isCustomized:"custom"===n.source});if(!n.has_theme_file&&"custom"===n.source&&!n.author)return Object(a.createElement)(Lr,null)}return Object(a.createElement)(Ar,{id:n.author})}}function Dr(e){let{templateType:t}=e;const{templates:n,isLoading:c,postType:r}=Object(i.useSelect)(e=>{const{getEntityRecords:n,hasFinishedResolution:c,getPostType:r}=e(s.store);return{templates:n("postType",t,{per_page:-1}),isLoading:!c("getEntityRecords",["postType",t,{per_page:-1}]),postType:r(t)}},[t]);return!n||c?null:n.length?Object(a.createElement)("table",{className:"edit-site-list-table",role:"table"},Object(a.createElement)("thead",null,Object(a.createElement)("tr",{className:"edit-site-list-table-head",role:"row"},Object(a.createElement)("th",{className:"edit-site-list-table-column",role:"columnheader"},Object(m.__)("Template")),Object(a.createElement)("th",{className:"edit-site-list-table-column",role:"columnheader"},Object(m.__)("Added by")),Object(a.createElement)("th",{className:"edit-site-list-table-column",role:"columnheader"},Object(a.createElement)(_e.VisuallyHidden,null,Object(m.__)("Actions"))))),Object(a.createElement)("tbody",null,n.map(e=>{var n;return Object(a.createElement)("tr",{key:e.id,className:"edit-site-list-table-row",role:"row"},Object(a.createElement)("td",{className:"edit-site-list-table-column",role:"cell"},Object(a.createElement)(_e.__experimentalHeading,{level:4},Object(a.createElement)(kt,{params:{postId:e.id,postType:e.type}},(null===(n=e.title)||void 0===n?void 0:n.rendered)||e.slug)),e.description),Object(a.createElement)("td",{className:"edit-site-list-table-column",role:"cell"},Object(a.createElement)(Br,{templateType:t,template:e})),Object(a.createElement)("td",{className:"edit-site-list-table-column",role:"cell"},Object(a.createElement)(xr,{template:e})))}))):Object(a.createElement)("div",null,Object(m.sprintf)(Object(m.__)("No %s found."),null==r||null===(l=r.labels)||void 0===l||null===(o=l.name)||void 0===o?void 0:o.toLowerCase()));var l,o}function Fr(){var e,t;const{params:{postType:n}}=Pe();!function(){const{registerShortcut:e}=Object(i.useDispatch)(De.store);Object(a.useEffect)(()=>{e({name:"core/edit-site/next-region",category:"global",description:Object(m.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:Object(m.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]})},[])}();const{previousShortcut:c,nextShortcut:r,isNavigationOpen:l}=Object(i.useSelect)(e=>({previousShortcut:e(De.store).getAllShortcutKeyCombinations("core/edit-site/previous-region"),nextShortcut:e(De.store).getAllShortcutKeyCombinations("core/edit-site/next-region"),isNavigationOpen:e(Oe).isNavigationOpened()}),[]),o=Object(i.useSelect)(e=>e(s.store).getPostType(n),[n]);_r(null==o||null===(e=o.labels)||void 0===e?void 0:e.name);const d=null==o||null===(t=o.labels)||void 0===t?void 0:t.items_list,b=o?{header:Object(m.sprintf)(Object(m.__)("%s - Header"),d),body:Object(m.sprintf)(Object(m.__)("%s - Content"),d)}:void 0;return Object(a.createElement)(T.e,{className:qe()("edit-site-list",{"is-navigation-open":l}),labels:{drawer:Object(m.__)("Navigation Sidebar"),...b},header:Object(a.createElement)(wr,{templateType:n}),drawer:Object(a.createElement)(Nc.Slot,null),notices:Object(a.createElement)(u.EditorSnackbars,null),content:Object(a.createElement)(Dr,{templateType:n}),shortcuts:{previous:c,next:r}})}function Vr(e){let{postId:t,postType:n}=e;return!(t||!n)}function Gr(e){let{reboot:t}=e;return Object(a.createElement)(_e.SlotFillProvider,null,Object(a.createElement)(u.UnsavedChangesWarning,null),Object(a.createElement)(Ae,null,e=>{let{params:n}=e;const c=Vr(n);return Object(a.createElement)(a.Fragment,null,c?Object(a.createElement)(Fr,null):Object(a.createElement)(hr,{onError:t}),Object(a.createElement)(Nc,{isDefaultOpen:!!c,activeTemplateType:c?n.postType:void 0}))}))}async function zr(e){const t=new URLSearchParams(Ce.location.search);if(function(e){const{postType:t}=e;return!Vr(e)&&!["post","page","wp_template","wp_template_part"].includes(t)}(Object.fromEntries(t.entries()))){const t=await async function(e){const t=await ut()({path:"/wp/v2/settings"});if(!t)throw new Error("`getHomepageParams`: unable to load site settings.");const{show_on_front:n,page_on_front:c}=t;if("page"===n)return{postType:"page",postId:c};const r=await window.fetch(Object(b.addQueryArgs)(e,{"_wp-find-template":!0})).then(e=>{if(!e.ok)throw new Error(`\`getHomepageParams\`: HTTP status error, ${e.status} ${e.statusText}`);return e.json()}).then(e=>{let{data:t}=e;if(t.message)throw new Error("`getHomepageParams`: REST API error, "+t.message);return t});if(null==r||!r.id)throw new Error("`getHomepageParams`: unable to find home template.");return{postType:"wp_template",postId:r.id}}(e);t&&Ce.replace(t)}}function Ur(e){let{className:t,...n}=e;return Object(a.createElement)(T.b,Object(ge.a)({panelClassName:t,className:"edit-site-sidebar",scope:"core/edit-site"},n))}function Hr(e){return Object(a.createElement)(T.c,Object(ge.a)({__unstableExplicitMenuItem:!0,scope:"core/edit-site"},e))}var Wr=Object(Fe.compose)(Object(Be.withPluginContext)((e,t)=>({icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"})))(T.a);async function qr(e,t){try{await zr(t.siteUrl)}catch(t){return void Object(a.render)(Object(a.createElement)(ar,{message:Object(m.__)("The editor is unable to find a block template for the homepage."),error:t,dashboardLink:"index.php"}),e)}Object(a.unmountComponentAtNode)(e);const n=qr.bind(null,e,t);Object(i.dispatch)(Oe).updateSettings(t),Object(i.dispatch)(u.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas});Vr(Object(b.getQueryArgs)(window.location.href))&&Object(i.dispatch)(Oe).setIsNavigationPanelOpened(Object(i.select)(d.store).isViewportMatch("medium"));Object(a.render)(Object(a.createElement)(Gr,{reboot:n}),e)}function $r(e,t){t.__experimentalFetchLinkSuggestions=(e,n)=>Object(s.__experimentalFetchLinkSuggestions)(e,n,t),t.__experimentalFetchRichUrlData=s.__experimentalFetchUrlData,t.__experimentalSpotlightEntityBlocks=["core/template-part"];const n=document.getElementById(e);Object(i.dispatch)(l.store).__experimentalReapplyBlockTypeFilters(),Object(o.registerCoreBlocks)(),qr(n,t)}},"K+tz":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.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=a},K2cm:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.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=a},K8zD:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));t.a=a},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},NWDH:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},Ntru:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.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=a},OE6V:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=a},OzlF:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=a},Q4Sy:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=a},QyPg:function(e,t){e.exports=window.wp.blockLibrary},RMJe:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},RxS6:function(e,t){e.exports=window.wp.keycodes},TSYQ:function(e,t,n){var c;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("SET_FEATURE_DEFAULTS"===t.type){const{scope:n,defaults:c}=t;return{...e,[n]:{...e[n],...c}}}return e}}),h=Object(u.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("SET_FEATURE_VALUE"===t.type){const{scope:n,featureName:c,value:r}=t;return{...e,[n]:{...e[n],[c]:r}}}return e}}),f=Object(u.combineReducers)({singleEnableItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,itemType:n,scope:c,item:r}=arguments.length>1?arguments[1]:void 0;return"SET_SINGLE_ENABLE_ITEM"===t&&n&&c?{...e,[n]:{...e[n],[c]:r||null}}:e},multipleEnableItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,itemType:n,scope:c,item:r,isEnable:a}=arguments.length>1?arguments[1]:void 0;if("SET_MULTIPLE_ENABLE_ITEM"!==t||!n||!c||!r||Object(_.get)(e,[n,c,r])===a)return e;const l=e[n]||{},o=l[c]||{};return{...e,[n]:{...l,[c]:{...o,[r]:a||!1}}}}});var E=Object(u.combineReducers)({enableItems:f,preferenceDefaults:g,preferences:h});function v(e,t,n){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:n}}function y(e,t){return v("complementaryArea",e,t)}function w(e){return v("complementaryArea",e,void 0)}function S(e,t,n,c){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:n,isEnable:c}}function x(e,t){return S("pinnedItems",e,t,!0)}function k(e,t){return S("pinnedItems",e,t,!1)}function T(e,t){return function(n){let{select:c,dispatch:r}=n;const a=c.isFeatureActive(e,t);r.setFeatureValue(e,t,!a)}}function C(e,t,n){return{type:"SET_FEATURE_VALUE",scope:e,featureName:t,value:!!n}}function I(e,t){return{type:"SET_FEATURE_DEFAULTS",scope:e,defaults:t}}function N(e,t){return function(e,t,n){return Object(_.get)(e.enableItems.singleEnableItems,[t,n])}(e,"complementaryArea",t)}function P(e,t,n){return!1!==function(e,t,n,c){return Object(_.get)(e.enableItems.multipleEnableItems,[t,n,c])}(e,"pinnedItems",t,n)}function M(e,t,n){var c,r;const a=null===(c=e.preferences.features[t])||void 0===c?void 0:c[n];return!!(void 0!==a?a:null===(r=e.preferenceDefaults.features[t])||void 0===r?void 0:r[n])}const R=Object(u.createReduxStore)("core/interface",{reducer:E,actions:c,selectors:r,persist:["enableItems","preferences"],__experimentalUseThunks:!0});Object(u.registerStore)("core/interface",{reducer:E,actions:c,selectors:r,persist:["enableItems","preferences"],__experimentalUseThunks:!0});var A=n("TvNi"),L=Object(A.withPluginContext)((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));var B=L((function(e){let{as:t=s.Button,scope:n,identifier:c,icon:r,selectedIcon:o,...i}=e;const m=t,d=Object(u.useSelect)(e=>e(R).getActiveComplementaryArea(n)===c,[c]),{enableComplementaryArea:b,disableComplementaryArea:p}=Object(u.useDispatch)(R);return Object(l.createElement)(m,Object(a.a)({icon:o&&d?o:r,onClick:()=>{d?p(n):b(n,c)}},Object(_.omit)(i,["name"])))}));var D=e=>{let{smallScreenTitle:t,children:n,className:c,toggleButtonProps:r}=e;const o=Object(l.createElement)(B,Object(a.a)({icon:j.a},r));return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},t&&Object(l.createElement)("span",{className:"interface-complementary-area-header__small-title"},t),o),Object(l.createElement)("div",{className:i()("components-panel__header","interface-complementary-area-header",c),tabIndex:-1},n,o))};function F(e){let{name:t,as:n=s.Button,onClick:c,...r}=e;return Object(l.createElement)(s.Fill,{name:t},e=>{let{onClick:t}=e;return Object(l.createElement)(n,Object(a.a)({onClick:c||t?function(){(c||_.noop)(...arguments),(t||_.noop)(...arguments)}:void 0},r))})}F.Slot=function(e){let{name:t,as:n=s.ButtonGroup,fillProps:c={},bubblesVirtually:r,...a}=e;return Object(l.createElement)(s.Slot,{name:t,bubblesVirtually:r,fillProps:c},e=>{if(Object(_.isEmpty)(l.Children.toArray(e)))return null;const t=[];l.Children.forEach(e,e=>{let{props:{__unstableExplicitMenuItem:n,__unstableTarget:c}}=e;c&&n&&t.push(c)});const c=l.Children.map(e,e=>!e.props.__unstableExplicitMenuItem&&t.includes(e.props.__unstableTarget)?null:e);return Object(l.createElement)(n,a,c)})};var V=F;const G=e=>Object(l.createElement)(s.MenuItem,Object(_.omit)(e,["__unstableExplicitMenuItem","__unstableTarget"]));function z(e){let{scope:t,target:n,__unstableExplicitMenuItem:c,...r}=e;return Object(l.createElement)(B,Object(a.a)({as:e=>Object(l.createElement)(V,Object(a.a)({__unstableExplicitMenuItem:c,__unstableTarget:`${t}/${n}`,as:G,name:t+"/plugin-more-menu"},e)),role:"menuitemcheckbox",selectedIcon:d.a,name:n,scope:t},r))}function U(e){let{scope:t,...n}=e;return Object(l.createElement)(s.Fill,Object(a.a)({name:"PinnedItems/"+t},n))}U.Slot=function(e){let{scope:t,className:n,...c}=e;return Object(l.createElement)(s.Slot,Object(a.a)({name:"PinnedItems/"+t},c),e=>!Object(_.isEmpty)(e)&&Object(l.createElement)("div",{className:i()(n,"interface-pinned-items")},e))};var H=U;function W(e){let{scope:t,children:n,className:c}=e;return Object(l.createElement)(s.Fill,{name:"ComplementaryArea/"+t},Object(l.createElement)("div",{className:c},n))}const q=L((function(e){let{children:t,className:n,closeLabel:c=Object(m.__)("Close plugin"),identifier:r,header:a,headerClassName:o,icon:j,isPinnable:_=!0,panelClassName:g,scope:h,name:f,smallScreenTitle:E,title:v,toggleShortcut:y,isActiveByDefault:w,showIconLabels:S=!1}=e;const{isActive:x,isPinned:k,activeArea:T,isSmall:C,isLarge:I}=Object(u.useSelect)(e=>{const{getActiveComplementaryArea:t,isItemPinned:n}=e(R),c=t(h);return{isActive:c===r,isPinned:n(h,r),activeArea:c,isSmall:e(O.store).isViewportMatch("< medium"),isLarge:e(O.store).isViewportMatch("large")}},[r,h]);!function(e,t,n,c,r){const a=Object(l.useRef)(!1),o=Object(l.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:s}=Object(u.useDispatch)(R);Object(l.useEffect)(()=>{c&&r&&!a.current?(s(e),o.current=!0):o.current&&!r&&a.current?(o.current=!1,i(e,t)):o.current&&n&&n!==t&&(o.current=!1),r!==a.current&&(a.current=r)},[c,r,e,t,n])}(h,r,T,x,C);const{enableComplementaryArea:N,disableComplementaryArea:P,pinItem:M,unpinItem:A}=Object(u.useDispatch)(R);return Object(l.useEffect)(()=>{w&&void 0===T&&!C&&N(h,r)},[T,w,h,r,C]),Object(l.createElement)(l.Fragment,null,_&&Object(l.createElement)(H,{scope:h},k&&Object(l.createElement)(B,{scope:h,identifier:r,isPressed:x&&(!S||I),"aria-expanded":x,label:v,icon:S?d.a:j,showTooltip:!S,variant:S?"tertiary":void 0})),f&&_&&Object(l.createElement)(z,{target:f,scope:h,icon:j},v),x&&Object(l.createElement)(W,{className:i()("interface-complementary-area",n),scope:h},Object(l.createElement)(D,{className:o,closeLabel:c,onClose:()=>P(h),smallScreenTitle:E,toggleButtonProps:{label:c,shortcut:y,scope:h,identifier:r}},a||Object(l.createElement)(l.Fragment,null,Object(l.createElement)("strong",null,v),_&&Object(l.createElement)(s.Button,{className:"interface-complementary-area__pin-unpin-item",icon:k?b.a:p.a,label:k?Object(m.__)("Unpin from toolbar"):Object(m.__)("Pin to toolbar"),onClick:()=>(k?A:M)(h,r),isPressed:k,"aria-expanded":k}))),Object(l.createElement)(s.Panel,{className:g},t)))}));q.Slot=function(e){let{scope:t,...n}=e;return Object(l.createElement)(s.Slot,Object(a.a)({name:"ComplementaryArea/"+t},n))};var $=q;var K=e=>{let{isActive:t}=e;return Object(l.useEffect)(()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}},[]),Object(l.useEffect)(()=>(t?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{t&&document.body.classList.remove("is-fullscreen-mode")}),[t]),null},Y=n("K9lf");var X=Object(l.forwardRef)((function(e,t){let{footer:n,header:c,sidebar:r,secondarySidebar:o,notices:u,content:d,drawer:b,actions:p,labels:O,className:j,shortcuts:_}=e;const g=Object(s.__unstableUseNavigateRegions)(_);!function(e){Object(l.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 h={...{drawer:Object(m.__)("Drawer"),header:Object(m.__)("Header"),body:Object(m.__)("Content"),secondarySidebar:Object(m.__)("Block Library"),sidebar:Object(m.__)("Settings"),actions:Object(m.__)("Publish"),footer:Object(m.__)("Footer")},...O};return Object(l.createElement)("div",Object(a.a)({},g,{ref:Object(Y.useMergeRefs)([t,g.ref]),className:i()(j,"interface-interface-skeleton",g.className,!!n&&"has-footer")}),!!b&&Object(l.createElement)("div",{className:"interface-interface-skeleton__drawer",role:"region","aria-label":h.drawer,tabIndex:"-1"},b),Object(l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!c&&Object(l.createElement)("div",{className:"interface-interface-skeleton__header",role:"region","aria-label":h.header,tabIndex:"-1"},c),Object(l.createElement)("div",{className:"interface-interface-skeleton__body"},!!o&&Object(l.createElement)("div",{className:"interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":h.secondarySidebar,tabIndex:"-1"},o),!!u&&Object(l.createElement)("div",{className:"interface-interface-skeleton__notices"},u),Object(l.createElement)("div",{className:"interface-interface-skeleton__content",role:"region","aria-label":h.body,tabIndex:"-1"},d),!!r&&Object(l.createElement)("div",{className:"interface-interface-skeleton__sidebar",role:"region","aria-label":h.sidebar,tabIndex:"-1"},r),!!p&&Object(l.createElement)("div",{className:"interface-interface-skeleton__actions",role:"region","aria-label":h.actions,tabIndex:"-1"},p))),!!n&&Object(l.createElement)("div",{className:"interface-interface-skeleton__footer",role:"region","aria-label":h.footer,tabIndex:"-1"},n))})),Q=n("VKE3");function Z(e){let{as:t=s.DropdownMenu,className:n,label:c=Object(m.__)("Options"),popoverProps:r,toggleProps:a,children:o}=e;return Object(l.createElement)(t,{className:i()("interface-more-menu-dropdown",n),icon:Q.a,label:c,popoverProps:{position:"bottom left",...r,className:i()("interface-more-menu-dropdown__content",null==r?void 0:r.className)},toggleProps:{tooltipPosition:"bottom",...a}},e=>o(e))}var J=n("gdqT");function ee(e){let{scope:t,label:n,info:c,messageActivated:r,messageDeactivated:a,shortcut:o,feature:i}=e;const b=Object(u.useSelect)(e=>e(R).isFeatureActive(t,i),[i]),{toggleFeature:p}=Object(u.useDispatch)(R);return Object(l.createElement)(s.MenuItem,{icon:b&&d.a,isSelected:b,onClick:()=>{p(t,i),b?Object(J.speak)(a||Object(m.__)("Feature deactivated")):Object(J.speak)(r||Object(m.__)("Feature activated"))},role:"menuitemcheckbox",info:c,shortcut:o},n)}},URob:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.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=a},VKE3:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=a},Xxwi:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.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=a},YLtl:function(e,t){e.exports=window.lodash},axFQ:function(e,t){e.exports=window.wp.blockEditor},bWcr:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.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=a},cjQ8:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));t.a=a},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},iClF:function(e,t,n){"use strict";var c=n("GRId");t.a=function(e){let{icon:t,size:n=24,...r}=e;return Object(c.cloneElement)(t,{width:n,height:n,...r})}},jSdM:function(e,t){e.exports=window.wp.editor},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},pPDe:function(e,t,n){"use strict";var c,r;function a(e){return[e]}function l(){var e={clear:function(){e.head=null}};return e}function o(e,t,n){var c;if(e.length!==t.length)return!1;for(c=n;c2096103.424&&b!==d))return navigator.msSaveBlob?navigator.msSaveBlob(h(s),p):f(s);i=(s=h(s)).type||o}else if(/([\x80-\xff])/.test(s)){for(var j=0,_=new Uint8Array(s.length),g=_.length;j