uawdijnntqw1x1x1
IP : 18.118.149.175
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
public_html
/
..
/
.trash
/
wp-includes
/
PHPMailer
/
..
/
js
/
dist
/
edit-site.min.js
/
/
/*! 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 Wr})),n.d(t,"initializeEditor",(function(){return qr})),n.d(t,"__experimentalMainDashboardButton",(function(){return hc})),n.d(t,"__experimentalNavigationToggle",(function(){return wc})),n.d(t,"PluginSidebar",(function(){return zr})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return Ur})),n.d(t,"PluginMoreMenuItem",(function(){return Hr}));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");!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(je||(je={}));var he=function(e){return e};function fe(e){e.preventDefault(),e.returnValue=""}function Ee(){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 ve(){return Math.random().toString(36).substr(2,8)}function ye(e){var t=e.pathname,n=void 0===t?"/":t,c=e.search,r=void 0===c?"":c,a=e.hash,l=void 0===a?"":a;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),l&&"#"!==l&&(n+="#"===l.charAt(0)?l:"#"+l),n}function we(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var c=e.indexOf("?");c>=0&&(t.search=e.substr(c),e=e.substr(0,c)),e&&(t.pathname=e)}return t}const Se=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,c=n.history;function r(){var e=n.location,t=e.pathname,r=e.search,a=e.hash,l=c.state||{};return[l.idx,he({pathname:t,search:r,hash:a,state:l.usr||null,key:l.key||"default"})]}var a=null;n.addEventListener("popstate",(function(){if(a)m.call(a),a=null;else{var e=je.Pop,t=r(),n=t[0],c=t[1];if(m.length){if(null!=n){var l=i-n;l&&(a={action:e,location:c,retry:function(){_(-1*l)}},_(l))}}else j(e)}}));var l=je.Pop,o=r(),i=o[0],s=o[1],u=Ee(),m=Ee();function d(e){return"string"==typeof e?e:ye(e)}function b(e,t){return void 0===t&&(t=null),he(Object(ge.a)({pathname:s.pathname,hash:"",search:""},"string"==typeof e?we(e):e,{state:t,key:ve()}))}function p(e,t){return[{usr:e.state,key:e.key,idx:t},d(e)]}function O(e,t,n){return!m.length||(m.call({action:e,location:t,retry:n}),!1)}function j(e){l=e;var t=r();i=t[0],s=t[1],u.call({action:l,location:s})}function _(e){c.go(e)}return null==i&&(i=0,c.replaceState(Object(ge.a)({},c.state,{idx:i}),"")),{get action(){return l},get location(){return s},createHref:d,push:function e(t,r){var a=je.Push,l=b(t,r);if(O(a,l,(function(){e(t,r)}))){var o=p(l,i+1),s=o[0],u=o[1];try{c.pushState(s,"",u)}catch(e){n.location.assign(u)}j(a)}},replace:function e(t,n){var r=je.Replace,a=b(t,n);if(O(r,a,(function(){e(t,n)}))){var l=p(a,i),o=l[0],s=l[1];c.replaceState(o,"",s),j(r)}},go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(e){return u.push(e)},block:function(e){var t=m.push(e);return 1===m.length&&n.addEventListener("beforeunload",fe),function(){t(),m.length||n.removeEventListener("beforeunload",fe)}}}}(),xe=Se.push,ke=Se.replace;Se.push=function(e,t){return xe.call(Se,Object(b.addQueryArgs)(window.location.href,e),t)},Se.replace=function(e,t){return ke.call(Se,Object(b.addQueryArgs)(window.location.href,e),t)};var Te=Se;const Ce=Object(a.createContext)(),Ie=Object(a.createContext)();function Ne(){return Object(a.useContext)(Ce)}function Pe(){return Object(a.useContext)(Ie)}function Me(e){const t=new URLSearchParams(e.search);return{...e,params:Object.fromEntries(t.entries())}}function Re(e){let{children:t}=e;const[n,c]=Object(a.useState)(()=>Me(Te.location));return Object(a.useEffect)(()=>Te.listen(e=>{let{location:t}=e;c(Me(t))}),[]),Object(a.createElement)(Ie.Provider,{value:Te},Object(a.createElement)(Ce.Provider,{value:n},t(n)))}var Ae=n("axFQ"),Le=n("TvNi"),Be=n("hF7m"),De=n("K9lf"),Fe=n("Q4Sy"),Ve=n("OzlF"),Ge=n("RxS6"),ze=n("VKE3"),Ue=n("K+tz"),He=n("TSYQ"),We=n.n(He);const qe=[{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 $e(e){let{keyCombination:t,forceAriaLabel:n}=e;const c=t.modifier?Ge.displayShortcutList[t.modifier](t.character):t.character,r=t.modifier?Ge.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 Ke(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)($e,{keyCombination:n,forceAriaLabel:r}),c.map((e,t)=>Object(a.createElement)($e,{keyCombination:e,forceAriaLabel:r,key:t}))))}function Ye(e){let{name:t}=e;const{keyCombination:n,description:c,aliases:r}=Object(i.useSelect)(e=>{const{getShortcutKeyCombination:n,getShortcutDescription:c,getShortcutAliases:r}=e(Be.store);return{keyCombination:n(t),aliases:r(t),description:c(t)}},[t]);return n?Object(a.createElement)(Ke,{keyCombination:n,description:c,aliases:r}):null}const Xe=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)(Ye,{name:e}):Object(a.createElement)(Ke,e))))},Qe=e=>{let{title:t,shortcuts:n,className:c}=e;return Object(a.createElement)("section",{className:We()("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)(Xe,{shortcuts:n}))},Ze=e=>{let{title:t,categoryName:n,additionalShortcuts:c=[]}=e;const r=Object(i.useSelect)(e=>e(Be.store).getCategoryShortcuts(n),[n]);return Object(a.createElement)(Qe,{title:t,shortcuts:r.concat(c)})};function Je(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)(Qe,{className:"edit-site-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-site/keyboard-shortcuts"]}),Object(a.createElement)(Ze,{title:Object(m.__)("Global shortcuts"),categoryName:"global"}),Object(a.createElement)(Ze,{title:Object(m.__)("Selection shortcuts"),categoryName:"selection"}),Object(a.createElement)(Ze,{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)(Qe,{title:Object(m.__)("Text formatting"),shortcuts:qe})):null}var et=n("RMJe"),tt=n("gdqT");function nt(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&&et.a,isSelected:o,onClick:Object($.flow)(s.bind(null,t),()=>{o?Object(tt.speak)(l||Object(m.__)("Feature deactivated")):Object(tt.speak)(r||Object(m.__)("Feature activated"))}),role:"menuitemcheckbox",info:c},n)}const{Fill:ct,Slot:rt}=Object(_e.createSlotFill)("EditSiteToolsMoreMenuGroup");ct.Slot=e=>{let{fillProps:t}=e;return Object(a.createElement)(rt,{fillProps:t},e=>!Object($.isEmpty)(e)&&e)};var at=ct,lt=n("rrFr"),ot=n.n(lt),it=n("ywyh"),st=n.n(it),ut=n("Tqx9");var mt=Object(a.createElement)(ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(ut.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 dt(){const{createErrorNotice:e}=Object(i.useDispatch)(k.store);return Object(a.createElement)(_e.MenuItem,{role:"menuitem",icon:mt,onClick:async function(){try{const e=await st()({path:"/wp-block-editor/v1/export",parse:!1}),t=await e.blob();ot()(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 bt(){const{toggleFeature:e}=Object(i.useDispatch)(Oe);return Object(a.createElement)(_e.MenuItem,{onClick:()=>e("welcomeGuide")},Object(m.__)("Welcome Guide"))}const pt={className:"edit-site-more-menu__content",position:"bottom left"},Ot={tooltipPosition:"bottom"};function jt(){const[e,t]=Object(a.useReducer)(e=>!e,!1);return Object(Be.useShortcut)("core/edit-site/keyboard-shortcuts",t),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(_e.DropdownMenu,{className:"edit-site-more-menu",icon:ze.a,label:Object(m.__)("More tools & options"),popoverProps:pt,toggleProps:Ot},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)(nt,{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)(nt,{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)(dt,null),Object(a.createElement)(_e.MenuItem,{onClick:t,shortcut:Ge.displayShortcut.access("h")},Object(m.__)("Keyboard shortcuts")),Object(a.createElement)(bt,null),Object(a.createElement)(_e.MenuItem,{icon:Ue.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)(at.Slot,{fillProps:{onClose:n}})))}),Object(a.createElement)(Je,{isModalActive:e,toggleModal:t}))}function _t(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 gt=n("Ntru"),ht=n("K2cm");function ft(){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)()?ht.a:gt.a,label:Object(m.__)("Undo"),shortcut:Ge.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?t:void 0})}function Et(){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)()?gt.a:ht.a,label:Object(m.__)("Redo"),shortcut:Ge.displayShortcut.primaryShift("z"),"aria-disabled":!e,onClick:e?t:void 0})}var vt=n("NWDH");function yt(e){if(e){const t=Object(l.getBlockType)(e.name);return t?Object(l.__experimentalGetBlockLabel)(t,e.attributes):null}return null}function wt(e){let{entityTitle:t,entityLabel:n,isLoaded:c,children:r}=e;const{label:l}=function(){const{getBlock:e}=Object(i.useSelect)(Ae.store),t=Object(i.useSelect)(e=>e(Ae.store).__experimentalGetActiveBlockIdByBlockNames(["core/template-part"]),[]);return t?{label:yt(e(t)),isActive:!0}:{}}(),o=Object(a.useRef)();return c?t?Object(a.createElement)("div",{className:We()("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:vt.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 St(){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=Pe();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 xt(e){let{params:t={},state:n,replace:c=!1,children:r,...l}=e;const{href:o,onClick:i}=St(t,n,c);return Object(a.createElement)("a",Object(ge.a)({href:o,onClick:i},l),r)}function kt(e){var t;let{onClose:n,templatePart:c,closeTemplateDetailsDropdown:r}=e;const{revertTemplate:l}=Object(i.useDispatch)(Oe),{params:o}=Ne(),s=St({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 Tt(e){let{templatePart:t,clientId:n,closeTemplateDetailsDropdown:c}=e;const{selectBlock:r,toggleBlockHighlight:l}=Object(i.useDispatch)(Ae.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:ze.a,label:Object(m.__)("More options"),className:"edit-site-template-details__template-areas-item-more"},e=>{let{onClose:n}=e;return Object(a.createElement)(kt,{onClose:n,templatePart:t,closeTemplateDetailsDropdown:c})}))}function Ct(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)(Tt,{key:n.slug,clientId:c.clientId,templatePart:n,closeTemplateDetailsDropdown:t})})):null}function It(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 Nt(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=St({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)(It,{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)(Ct,{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 Pt=e=>{e.preventDefault()};function Mt(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(Be.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(De.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:Pt,onClick:E,icon:Fe.a,label:Object(m._x)("Toggle block inserter","Generic label for block inserter button")}),f&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Ae.ToolSelector,null),Object(a.createElement)(ft,null),Object(a.createElement)(Et,null),Object(a.createElement)(_e.Button,{className:"edit-site-header-toolbar__list-view-toggle",icon:Ve.a,isPressed:p,label:Object(m.__)("List View"),onClick:v,shortcut:O})))),Object(a.createElement)("div",{className:"edit-site-header_center"},Object(a.createElement)(wt,{entityTitle:l,entityLabel:"wp_template_part"===d?"template part":"template",isLoaded:j},e=>{let{onClose:t}=e;return Object(a.createElement)(Nt,{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)(Ae.__experimentalPreviewOptions,{deviceType:r,setDeviceType:_}),Object(a.createElement)(_t,{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}),Object(a.createElement)(T.h.Slot,{scope:"core/edit-site"}),Object(a.createElement)(jt,null))))}var Rt=n("Cg8A");function At(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 Lt=Object(a.createElement)(ut.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(ut.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"})),Bt=n("iClF"),Dt=n("2gm7"),Ft=n("1iEr");const Vt=[{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"}]}],Gt={"color.background":"color","color.text":"color","elements.link.color.text":"color","color.gradient":"gradient","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function zt(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 zt(e,t,n,"slug",l.slug)[c]===l[c]?l:void 0}}}}}function Ut(e,t,n,c){if(!c)return c;const r=Gt[n],a=Object($.find)(Vt,["cssVarInfix",r]);if(!a)return c;const{valueKey:l,path:o}=a,i=zt(e,t,o,l,c);return i?`var:preset|${r}|${i.slug}`:c}function Ht(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)(Vt,["cssVarInfix",r]);if(!l)return n;const o=zt(e,t,l.path,"slug",a);if(o){const{valueKey:n}=l;return Ht(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?Ht(e,t,a):n}(e,t,n,a):n}const Wt=Object(a.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),qt={isGlobalStylesUserThemeJSON:!0,version:1};function $t(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)(Wt),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 Kt(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)(Wt),s=t?`styles.blocks.${t}.${e}`:"styles."+e,u=n=>{i(c=>{const a=Object($.cloneDeep)(c);return Object($.set)(a,s,Ut(r.settings,t,e,n)),a})};let m;switch(c){case"all":m=Ht(r.settings,t,null!==(n=Object($.get)(o,s))&&void 0!==n?n:Object($.get)(l,s));break;case"user":m=Ht(r.settings,t,Object($.get)(o,s));break;case"base":m=Ht(l.settings,t,Object($.get)(l,s));break;default:throw"Unsupported source"}return[m,u]}const Yt=["background","backgroundColor","color","linkColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textDecoration","textTransform","padding"];function Xt(e){if(!e)return Yt;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 Qt(e){const[t]=$t("color.palette.custom",e),[n]=$t("color.palette.theme",e),[c]=$t("color.palette.default",e),[r]=$t("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 Zt=()=>{const[e="serif"]=Kt("typography.fontFamily"),[t="black"]=Kt("color.text"),[n="blue"]=Kt("elements.link.color.text"),[c="white"]=Kt("color.background"),[r]=Kt("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 Jt=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)(Bt.a,{icon:n,size:24})),Object(a.createElement)(_e.FlexItem,null,c)),!n&&c)};var en=Object(a.createElement)(ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(ut.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 tn=Object(a.createElement)(ut.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(ut.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"})),nn=n("Civd");const cn=[];function rn(e){return[an(e),ln(e),on(e),sn(e)].some(Boolean)}function an(e){const t=Xt(e);return $t("border.color",e)[0]&&t.includes("borderColor")}function ln(e){const t=Xt(e);return $t("border.radius",e)[0]&&t.includes("borderRadius")}function on(e){const t=Xt(e);return $t("border.style",e)[0]&&t.includes("borderStyle")}function sn(e){const t=Xt(e);return $t("border.width",e)[0]&&t.includes("borderWidth")}function un(e){let{name:t}=e;const n=Object(_e.__experimentalUseCustomUnits)({availableUnits:$t("spacing.units")[0]||["px","em","rem"]}),c=sn(t),[r,l]=Kt("border.width",t),o=on(t),[i,s]=Kt("border.style",t),[u=cn]=$t("color.palette"),d=!$t("color.custom")[0],b=!$t("color.customGradient")[0],p=an(t),[O,j]=Kt("border.color",t),_=ln(t),[g,h]=Kt("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)(Ae.__experimentalBorderStyleControl,{value:i,onChange:s})),p&&Object(a.createElement)(Ae.__experimentalColorGradientControl,{label:Object(m.__)("Color"),colorValue:O,colors:u,gradients:void 0,disableCustomColors:d,disableCustomGradients:b,onColorChange:j}),_&&Object(a.createElement)(Ae.__experimentalBorderRadiusControl,{values:g,onChange:h}))}function mn(e){const t=Xt(e);return t.includes("color")||t.includes("backgroundColor")||t.includes("background")||t.includes("linkColor")}const dn=["horizontal","vertical"];function bn(e){const t=pn(e),n=On(e),c=jn(e);return t||n||c}function pn(e){const t=Xt(e),[n]=$t("spacing.padding",e);return n&&t.includes("padding")}function On(e){const t=Xt(e),[n]=$t("spacing.margin",e);return n&&t.includes("margin")}function jn(e){const t=Xt(e),[n]=$t("spacing.blockGap",e);return n&&t.includes("--wp--style--block-gap")}function _n(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 gn(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function hn(e){let{name:t}=e;const n=pn(t),c=On(t),r=jn(t),l=Object(_e.__experimentalUseCustomUnits)({availableUnits:$t("spacing.units",t)[0]||["%","px","em","rem","vw"]}),[o,i]=Kt("spacing.padding",t),s=gn(o),u=Object(Ae.__experimentalUseCustomSides)(t,"padding"),d=u&&u.some(e=>dn.includes(e)),b=e=>{const t=_n(e,u);i(t)},p=()=>b({}),[O,j]=Kt("spacing.margin",t),_=gn(O),g=Object(Ae.__experimentalUseCustomSides)(t,"margin"),h=g&&g.some(e=>dn.includes(e)),f=e=>{const t=_n(e,g);j(t)},E=()=>f({}),[v,y]=Kt("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 fn(e){const t=En(e),n=vn(e),c=yn(e),r=Xt(e);return t||n||c||r.includes("fontSize")}function En(e){const t=Xt(e);return $t("typography.lineHeight",e)[0]&&t.includes("lineHeight")}function vn(e){const t=Xt(e),n=$t("typography.fontStyle",e)[0]&&t.includes("fontStyle"),c=$t("typography.fontWeight",e)[0]&&t.includes("fontWeight");return n||c}function yn(e){const t=Xt(e);return $t("typography.letterSpacing",e)[0]&&t.includes("letterSpacing")}function wn(e){let{name:t,element:n}=e;const c=Xt(t),r="text"!==n&&n?`elements.${n}.`:"",[l]=$t("typography.fontSizes",t),o=!$t("typography.customFontSize",t)[0],[i]=$t("typography.fontFamilies",t),s=$t("typography.fontStyle",t)[0]&&c.includes("fontStyle"),u=$t("typography.fontWeight",t)[0]&&c.includes("fontWeight"),m=En(t),d=vn(t),b=yn(t),[p,O]=Kt(r+"typography.fontFamily",t),[j,_]=Kt(r+"typography.fontSize",t),[g,h]=Kt(r+"typography.fontStyle",t),[f,E]=Kt(r+"typography.fontWeight",t),[v,y]=Kt(r+"typography.lineHeight",t),[w,S]=Kt(r+"typography.letterSpacing",t),[x]=Kt(r+"color.background",t),[k]=Kt(r+"color.gradient",t),[T]=Kt(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)(Ae.__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)(Ae.LineHeightControl,{value:v,onChange:y}),d&&Object(a.createElement)(Ae.__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)(Ae.__experimentalLetterSpacingControl,{value:w,onChange:S}))}var Sn=function(e){let{name:t,parentMenu:n=""}=e;const c=fn(t),r=mn(t),l=rn(t),o=bn(t),i=l||o;return Object(a.createElement)(_e.__experimentalItemGroup,null,c&&Object(a.createElement)(Jt,{icon:en,path:n+"/typography"},Object(m.__)("Typography")),r&&Object(a.createElement)(Jt,{icon:tn,path:n+"/colors"},Object(m.__)("Colors")),i&&Object(a.createElement)(Jt,{icon:nn.a,path:n+"/layout"},Object(m.__)("Layout")))};var xn=function(){return Object(a.createElement)(_e.Card,{size:"small"},Object(a.createElement)(_e.CardBody,null,Object(a.createElement)(Zt,null)),Object(a.createElement)(_e.CardBody,null,Object(a.createElement)(Sn,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)(Jt,{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)(Bt.a,{icon:Object(m.isRTL)()?Dt.a:Ft.a})))))))};var kn=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)(Jt,{path:t,icon:Object(a.createElement)(Bt.a,{icon:Object(m.isRTL)()?Ft.a:Dt.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 Tn(e){let{block:t}=e;const n=fn(t.name),c=mn(t.name),r=rn(t.name),l=bn(t.name);return n||c||(r||l)?Object(a.createElement)(Jt,{path:"/blocks/"+t.name},Object(a.createElement)(_e.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(_e.FlexItem,null,Object(a.createElement)(Ae.BlockIcon,{icon:t.icon})),Object(a.createElement)(_e.FlexItem,null,t.title))):null}var Cn=function(){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(kn,{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)(Tn,{block:e,key:"menu-itemblock-"+e.name})))};var In=function(e){let{name:t}=e;const n=Object(l.getBlockType)(t);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(kn,{back:"/blocks",title:n.title}),Object(a.createElement)(Sn,{parentMenu:"/blocks/"+t,name:t}))};var Nn=function(e){let{children:t}=e;return Object(a.createElement)(_e.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:2},t)};function Pn(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]=Kt(o+"typography.fontFamily",t),[u]=Kt(o+"typography.fontStyle",t),[d]=Kt(o+"typography.fontWeight",t),[b]=Kt(o+"typography.letterSpacing",t),[p]=Kt(o+"color.background",t),[O]=Kt(o+"color.gradient",t),[j]=Kt(o+"color.text",t);return l?Object(a.createElement)(Jt,{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 Mn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(kn,{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)(Nn,null,Object(m.__)("Elements")),Object(a.createElement)(_e.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(Pn,{name:t,parentMenu:n,element:"text",label:Object(m.__)("Text")}),Object(a.createElement)(Pn,{name:t,parentMenu:n,element:"link",label:Object(m.__)("Links")})))),!!t&&Object(a.createElement)(wn,{name:t,element:"text"}))};const Rn={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 An=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)(kn,{back:c,title:Rn[n].title,description:Rn[n].description}),Object(a.createElement)(wn,{name:t,element:n}))};const Ln=[];var Bn=function(e){let{name:t}=e;const[n]=$t("color.palette.custom"),[c]=$t("color.palette.theme"),[r]=$t("color.palette.default"),[l]=$t("color.defaultPalette",t),o=Object(a.useMemo)(()=>[...n||Ln,...c||Ln,...r&&l?r:Ln],[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)(Nn,null,Object(m.__)("Palette")),Object(a.createElement)(_e.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(Jt,{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 Dn(e){let{name:t,parentMenu:n}=e;const c=Xt(t),r=c.includes("backgroundColor")||c.includes("background"),[l]=Kt("color.background",t),[o]=Kt("color.gradient",t);return r?Object(a.createElement)(Jt,{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 Fn(e){let{name:t,parentMenu:n}=e;const c=Xt(t).includes("color"),[r]=Kt("color.text",t);return c?Object(a.createElement)(Jt,{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 Vn(e){let{name:t,parentMenu:n}=e;const c=Xt(t).includes("linkColor"),[r]=Kt("elements.link.color.text",t);return c?Object(a.createElement)(Jt,{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 Gn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(kn,{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)(Bn,{name:t}),Object(a.createElement)(_e.__experimentalVStack,{spacing:3},Object(a.createElement)(Nn,null,Object(m.__)("Elements")),Object(a.createElement)(_e.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(Dn,{name:t,parentMenu:n}),Object(a.createElement)(Fn,{name:t,parentMenu:n}),Object(a.createElement)(Vn,{name:t,parentMenu:n}))))))};function zn(e){let{name:t}=e;const[n,c]=$t("color.palette.theme",t),[r]=$t("color.palette.theme",t,"base"),[l,o]=$t("color.palette.default",t),[i]=$t("color.palette.default",t,"base"),[s,u]=$t("color.palette.custom",t),[d]=$t("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 Un(e){let{name:t}=e;const[n,c]=$t("color.gradients.theme",t),[r]=$t("color.gradients.theme",t,"base"),[l,o]=$t("color.gradients.default",t),[i]=$t("color.gradients.default",t,"base"),[s,u]=$t("color.gradients.custom",t),[d]=$t("color.defaultGradients",t),[b]=$t("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)(Nn,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 Hn=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)(kn,{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)(zn,{name:t}),"gradient"===n&&Object(a.createElement)(Un,{name:t}))};var Wn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=Xt(t),[r]=$t("color.palette",t),[l]=$t("color.gradients",t),[o]=$t("color.custom",t),[i]=$t("color.customGradient",t),s=Qt(t),u=function(e){const[t]=$t("color.gradients.custom",e),[n]=$t("color.gradients.theme",e),[c]=$t("color.gradients.default",e),[r]=$t("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]=$t("color.background",t),b=c.includes("backgroundColor")&&d&&(r.length>0||o),p=c.includes("background")&&(l.length>0||i),[O,j]=Kt("color.background",t),[_]=Kt("color.background",t,"user"),[g,h]=Kt("color.gradient",t),[f]=Kt("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)(kn,{back:n+"/colors",title:Object(m.__)("Background"),description:Object(m.__)("Set a background color or gradient for the whole website.")}),Object(a.createElement)(Ae.__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 qn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=Xt(t),[r]=$t("color.palette",t),[l]=$t("color.custom",t),[o]=$t("color.text",t),i=Qt(t),s=c.includes("color")&&o&&(r.length>0||l),[u,d]=Kt("color.text",t),[b]=Kt("color.text",t,"user");return s?Object(a.createElement)(a.Fragment,null,Object(a.createElement)(kn,{back:n+"/colors",title:Object(m.__)("Text"),description:Object(m.__)("Set the default color used for text across the site.")}),Object(a.createElement)(Ae.__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 $n=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=Xt(t),[r]=$t("color.palette",t),[l]=$t("color.custom",t),o=Qt(t),[i]=$t("color.link",t),s=c.includes("linkColor")&&i&&(r.length>0||l),[u,d]=Kt("elements.link.color.text",t),[b]=Kt("elements.link.color.text",t,"user");return s?Object(a.createElement)(a.Fragment,null,Object(a.createElement)(kn,{back:n+"/colors",title:Object(m.__)("Links"),description:Object(m.__)("Set the default color used for links across the site.")}),Object(a.createElement)(Ae.__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 Kn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=rn(t),r=bn(t);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(kn,{back:n||"/",title:Object(m.__)("Layout")}),r&&Object(a.createElement)(hn,{name:t}),c&&Object(a.createElement)(un,{name:t}))};function Yn(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)(Mn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/typography/text"},Object(a.createElement)(An,{name:t,element:"text"})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/typography/link"},Object(a.createElement)(An,{name:t,element:"link"})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors"},Object(a.createElement)(Gn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors/palette"},Object(a.createElement)(Hn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors/background"},Object(a.createElement)(Wn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors/text"},Object(a.createElement)(qn,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/colors/link"},Object(a.createElement)($n,{name:t})),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:n+"/layout"},Object(a.createElement)(Kn,{name:t})))}var Xn=function(){const e=Object(l.getBlockTypes)();return Object(a.createElement)(_e.__experimentalNavigatorProvider,{initialPath:"/"},Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:"/"},Object(a.createElement)(xn,null)),Object(a.createElement)(_e.__experimentalNavigatorScreen,{path:"/blocks"},Object(a.createElement)(Cn,null)),e.map(e=>Object(a.createElement)(_e.__experimentalNavigatorScreen,{key:"menu-block-"+e.name,path:"/blocks/"+e.name},Object(a.createElement)(In,{name:e.name}))),Object(a.createElement)(Yn,null),e.map(e=>Object(a.createElement)(Yn,{key:"screens-block-"+e.name,name:e.name})))};function Qn(e){if(Object($.startsWith)(e,"var:")){return`var(--wp--${e.slice("var:".length).split("|").join("--")})`}return e}const Zn=(e,t)=>{var n,c;const r=[];if(null==e||!e.settings)return r;const a=e=>{const t={};return Vt.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},Jn=(e,t)=>{const n=Zn(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)(Vt,(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},ec=(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=Zn(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}: ${Qn(Object($.get)(o,[c]))}`)});else if(Object($.get)(e,l,!1)){const n=c.startsWith("--")?c:Object($.kebabCase)(c);t.push(`${n}: ${Qn(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)(Vt,(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 tc(){const[e,t]=(()=>{const{user:e,setUserConfig:t}=Object(a.useContext)(Wt);return[!!e&&!Object($.isEqual)(e,qt),Object(a.useCallback)(()=>t(()=>qt),[t])]})(),{toggleFeature:n}=Object(i.useDispatch)(Oe);return Object(a.createElement)(At,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:Object(m.__)("Styles"),icon:Lt,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:ze.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)(Xn,null))}const nc="edit-site/template",cc="edit-site/block-inspector";var rc=e=>{let{sidebarName:t}=e;const{enableComplementaryArea:n}=Object(i.useDispatch)(T.i),[c,r]=t===nc?[Object(m.__)("Template (selected)"),"is-active"]:[Object(m.__)("Template"),""],[l,o]=t===cc?[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,nc),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,cc),className:"edit-site-sidebar__panel-tab "+o,"aria-label":l,"data-label":Object(m.__)("Block")},Object(m.__)("Block"))))};function ac(e){let{area:t,clientId:n}=e;const{selectBlock:c,toggleBlockHighlight:r}=Object(i.useDispatch)(Ae.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 lc(){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)(ac,{area:t.area,clientId:n.clientId}))}))):null}function oc(){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)(lc,null))):null}const{Slot:ic,Fill:sc}=Object(_e.createSlotFill)("EditSiteSidebarInspector"),uc=sc;function mc(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n}=Object(i.useSelect)(e=>{const t=e(T.i).getActiveComplementaryArea(g);return{sidebar:t,isEditorSidebarOpened:[cc,nc].includes(t),hasBlockSelection:!!e(Ae.store).getBlockSelectionStart()}},[]),{enableComplementaryArea:c}=Object(i.useDispatch)(T.i);Object(a.useEffect)(()=>{t&&c(g,n?cc:nc)},[n,t]);let r=e;return t||(r=n?cc:nc),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(At,{identifier:r,title:Object(m.__)("Settings"),icon:Rt.a,closeLabel:Object(m.__)("Close settings sidebar"),header:Object(a.createElement)(rc,{sidebarName:r}),headerClassName:"edit-site-sidebar__panel-tabs"},r===nc&&Object(a.createElement)(_e.PanelBody,null,Object(a.createElement)(oc,null)),r===cc&&Object(a.createElement)(ic,{bubblesVirtually:!0})),Object(a.createElement)(tc,null))}var dc=n("rmEH");var bc=Object(a.createElement)(ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(ut.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),pc=n("OE6V");const Oc="__experimentalMainDashboardButton",{Fill:jc,Slot:_c}=Object(_e.createSlotFill)(Oc),gc=jc;gc.Slot=e=>{let{children:t}=e;const n=Object(_e.__experimentalUseSlot)(Oc);return Boolean(n.fills&&n.fills.length)?Object(a.createElement)(_c,{bubblesVirtually:!0}):t};var hc=gc;const fc="site-editor";function Ec(e){let{params:t,replace:n,...c}=e;const r=St(t,n);return Object(a.createElement)(_e.__experimentalNavigationItem,Object(ge.a)({},r,c))}var vc=e=>{let{activeItem:t=fc}=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:We()("edit-site-navigation-panel",{"is-open":n}),onKeyDown:e=>{e.keyCode!==Ge.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(dc.decodeEntities)(c))),Object(a.createElement)("div",{className:"edit-site-navigation-panel__scroll-container"},Object(a.createElement)(_e.__experimentalNavigation,{activeItem:t},Object(a.createElement)(hc.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)(Ec,{icon:bc,title:Object(m.__)("Site"),item:fc,params:{postId:void 0,postType:void 0}}),Object(a.createElement)(Ec,{icon:nn.a,title:Object(m.__)("Templates"),item:"wp_template",params:{postId:void 0,postType:"wp_template"}}),Object(a.createElement)(Ec,{icon:pc.a,title:Object(m.__)("Template Parts"),item:"wp_template_part",params:{postId:void 0,postType:"wp_template_part"}})))))))},yc=n("wduq");var wc=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(De.useReducedMotion)(),u=Object(a.useRef)();Object(a.useEffect)(()=>{n||u.current.focus()},[n]);let d=Object(a.createElement)(_e.Icon,{size:"36px",icon:yc.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:Sc,Slot:xc}=Object(_e.createSlotFill)("EditSiteNavigationPanelPreview"),{Fill:kc,Slot:Tc}=Object(_e.createSlotFill)("EditSiteNavigationSidebar");function Cc(e){let{isDefaultOpen:t=!1,activeTemplateType:n}=e;const c=Object(De.useViewportMatch)("medium"),{setIsNavigationPanelOpened:r}=Object(i.useDispatch)(Oe);return Object(a.useEffect)((function(){r(t&&c)}),[t,c,r]),Object(a.createElement)(kc,null,Object(a.createElement)(wc,null),Object(a.createElement)(vc,{activeItem:n}),Object(a.createElement)(xc,null))}Cc.Slot=Tc;var Ic=Cc,Nc=n("diJD");function Pc(e){let{clientId:t}=e;const{getBlocks:n}=Object(i.useSelect)(Ae.store),{replaceBlocks:c}=Object(i.useDispatch)(Ae.store);return Object(a.createElement)(Ae.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 Mc(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(De.useInstanceId)(Mc),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:et.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 Rc(e){let{clientIds:t,blocks:n}=e;const[c,r]=Object(a.useState)(!1),{replaceBlocks:o}=Object(i.useDispatch)(Ae.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)(Ae.BlockSettingsMenuControls,null,()=>Object(a.createElement)(_e.MenuItem,{onClick:()=>{r(!0)}},Object(m.__)("Make template part"))),c&&Object(a.createElement)(Mc,{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 Ac(){var e;const{clientIds:t,blocks:n}=Object(i.useSelect)(e=>{const{getSelectedBlockClientIds:t,getBlocksByClientId:n}=e(Ae.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)(Pc,{clientId:t[0]}):Object(a.createElement)(Rc,{clientIds:t,blocks:n})}var Lc=n("B9Az");function Bc(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:Lc.a,label:Object(m.__)("Edit Page Template"),onClick:o})}function Dc(e){let{onClick:t=(()=>{})}=e;const{shortcut:n,isBlockInspectorOpen:c}=Object(i.useSelect)(e=>({shortcut:e(Be.store).getShortcutRepresentation("core/edit-site/toggle-block-settings-sidebar"),isBlockInspectorOpen:e(T.i).getActiveComplementaryArea(Oe.name)===cc}),[]),{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(tt.speak)(Object(m.__)("Block settings closed"))):(r(g,cc),Object(tt.speak)(Object(m.__)("Additional settings are now available in the Editor block settings sidebar"))),t()},shortcut:n},o)}function Fc(){return Object(a.createElement)(Ae.BlockSettingsMenuControls,null,e=>{let{selectedClientIds:t,onClose:n}=e;return Object(a.createElement)(Vc,{selectedClientId:t[0],onClose:n})})}function Vc(e){let{selectedClientId:t,onClose:n}=e;const{params:c}=Ne(),r=Object(i.useSelect)(e=>{const n=e(Ae.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=St({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 Gc=n("cjQ8");var zc=function(){var e;const t=Ne(),n=Pe(),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:Gc.a,onClick:()=>{n.back()}},Object(m.__)("Back")):null};function Uc(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===Ge.LEFT||"right"===t&&c===Ge.RIGHT?n(20):("left"===t&&c===Ge.RIGHT||"right"===t&&c===Ge.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 Hc="100%",Wc="100%",qc={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 $c=function(e){let{enableResizing:t,settings:n,...c}=e;const r=Object(i.useSelect)(e=>e(Oe).__experimentalGetPreviewDeviceType(),[]),l=Object(Ae.__experimentalUseResizeCanvas)(r),[o,s]=Object(a.useState)(Hc),[u,m]=Object(a.useState)(Wc),d=Object(a.useRef)(),b=Object(Ae.__unstableUseMouseMoveTypingReset)(),p=Object(De.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)(Uc,{direction:"left",resizeWidthBy:O}),right:Object(a.createElement)(Uc,{direction:"right",resizeWidthBy:O})},handleClasses:void 0,handleStyles:{left:qc,right:qc}},Object(a.createElement)(Ae.__unstableIframe,Object(ge.a)({style:t?void 0:l,head:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Ae.__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 Kc={type:"default",alignments:[]};function Yc(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(De.useMergeRefs)([b,Object(Ae.__unstableUseTypingObserver)()]),O=Object(De.useViewportMatch)("small","<"),{clearSelectedBlock:j}=Object(i.useDispatch)(Ae.store),_="wp_template_part"===c;return Object(a.createElement)(Ae.BlockEditorProvider,{settings:n,value:o,onInput:u,onChange:m,useSubRegistry:!1},Object(a.createElement)(Fc,null),Object(a.createElement)(Ac,null),Object(a.createElement)(Ae.__experimentalLinkControl.ViewerFill,null,Object(a.useCallback)(e=>Object(a.createElement)(Bc,Object(ge.a)({},e,{activePage:l,onActivePageChange:d})),[l])),Object(a.createElement)(uc,null,Object(a.createElement)(Ae.BlockInspector,null)),Object(a.createElement)(Ae.BlockTools,{className:We()("edit-site-visual-editor",{"is-focus-mode":_}),__unstableContentRef:b,onClick:e=>{e.target===e.currentTarget&&j()}},Object(a.createElement)(Ae.BlockEditorKeyboardShortcuts.Register,null),Object(a.createElement)(zc,null),Object(a.createElement)($c,{key:r,enableResizing:_&&!O,settings:n,contentRef:p},Object(a.createElement)(Ae.BlockList,{className:"edit-site-block-editor__block-list wp-site-blocks",__experimentalLayout:Kc,renderAppender:!_&&void 0})),Object(a.createElement)(Ae.__unstableBlockSettingsMenuFirstItem,null,e=>{let{onClose:t}=e;return Object(a.createElement)(Dc,{onClick:t})})),Object(a.createElement)(Nc.ReusableBlocksMenuItems,null))}function Xc(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)===cc,[]),{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(Be.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(Be.useShortcut)("core/edit-site/undo",e=>{o(),e.preventDefault()}),Object(Be.useShortcut)("core/edit-site/redo",e=>{l(),e.preventDefault()}),Object(Be.useShortcut)("core/edit-site/toggle-list-view",()=>{u(!r)}),Object(Be.useShortcut)("core/edit-site/toggle-block-settings-sidebar",e=>{e.preventDefault(),a?d(g):m(g,cc)}),null}Xc.Register=function(){const{registerShortcut:e}=Object(i.useDispatch)(Be.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 Qc=Xc;function Zc(){const{setTemplate:e,setTemplatePart:t,setPage:n}=Object(i.useDispatch)(Oe),{params:{postId:c,postType:r}}=Ne();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 Jc=n("w95h");function er(){const{setIsInserterOpened:e}=Object(i.useDispatch)(Oe),t=Object(i.useSelect)(e=>e(Oe).__experimentalGetInsertionPoint(),[]),n=Object(De.useViewportMatch)("medium","<"),[c,r]=Object(De.__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:Jc.a,onClick:()=>e(!1)})),Object(a.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},Object(a.createElement)(Ae.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue})))}var tr=n("bWcr");function nr(){const{setIsListViewOpened:e}=Object(i.useDispatch)(Oe),{clearSelectedBlock:t,selectBlock:n}=Object(i.useDispatch)(Ae.store);const c=Object(De.useFocusOnMount)("firstElement"),r=Object(De.useFocusReturn)();const l="edit-site-editor__list-view-panel-label-"+Object(De.useInstanceId)(nr);return Object(a.createElement)("div",{"aria-labelledby":l,className:"edit-site-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==Ge.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:tr.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(De.useMergeRefs)([r,c])},Object(a.createElement)(Ae.__experimentalListView,{onSelect:async function(e){await t(),n(e,-1)},showNestedBlocks:!0,__experimentalFeatures:!0,__experimentalPersistentListViewFeatures:!0})))}function cr(e){let{text:t,children:n}=e;const c=Object(De.useCopyToClipboard)(t);return Object(a.createElement)(_e.Button,{variant:"secondary",ref:c},n)}function rr(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)(cr,{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)(Ae.Warning,{className:"editor-error-boundary",actions:l},t)}class ar 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)(rr,{message:Object(m.__)("The editor has encountered an unexpected error."),error:e,reboot:this.reboot}):this.props.children}}function lr(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 or(){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)(lr,{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 <StylesIconImage /> 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 ir(){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)(lr,{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)(lr,{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)(lr,{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)(lr,{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 sr(){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(or,null),Object(a.createElement)(ir,null))}function ur(){const[e,t]=function(){const[e,t]=Object(a.useState)([]),[n,c]=Object(a.useState)({}),{merged:r}=Object(a.useContext)(Wt);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=Jn(r,e),a=ec(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)(()=>{if(!e||!t)return;const r=n(),a=Object($.filter)(r.styles,e=>!e.isGlobalStyles);c({...r,styles:[...a,...e],__experimentalFeatures:t})},[e,t])}function mr(){return ur(),null}function dr(e,t){if(Array.isArray(t))return t}const br=e=>{if(!Object($.isObject)(e)||Array.isArray(e))return e;const t=Object($.pickBy)(Object($.mapValues)(e,br),$.identity);return Object($.isEmpty)(t)?void 0:t};function pr(){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:br(o.styles)||{},settings:br(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,dr)):{};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 Or(e){let{children:t}=e;const n=pr();return n.isReady?Object(a.createElement)(Wt.Provider,{value:n},t):null}function jr(e){const t=Ne(),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(tt.speak)(Object(m.sprintf)(Object(m.__)("Now displaying: %s"),document.title),"assertive")}},[e,n,t])}const _r={secondarySidebar:Object(m.__)("Block Library"),drawer:Object(m.__)("Navigation Sidebar")};var gr=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(Be.store).getAllShortcutKeyCombinations("core/edit-site/previous-region"),nextShortcut:e(Be.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 jr(k&&Object(m.__)("Editor (beta)")),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Zc,null),k&&Object(a.createElement)(Be.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)(Or,null,Object(a.createElement)(Ae.BlockContextProvider,{value:x},Object(a.createElement)(mr,null),Object(a.createElement)(ar,{onError:t},Object(a.createElement)(Qc.Register,null),Object(a.createElement)(mc,null),Object(a.createElement)(T.e,{labels:_r,secondarySidebar:n?Object(a.createElement)(er,null):c?Object(a.createElement)(nr,null):null,sidebar:r&&Object(a.createElement)(T.b.Slot,{scope:"core/edit-site"}),drawer:Object(a.createElement)(Ic.Slot,null),header:Object(a.createElement)(Mt,{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)(Yc,{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)(Qc,{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)(Ae.BlockBreadcrumb,null),shortcuts:{previous:_,next:g}}),Object(a.createElement)(sr,null),Object(a.createElement)(_e.Popover.Slot,null),Object(a.createElement)(Le.PluginArea,null))))))))};const hr=["front-page","single-post","page","archive","search","404","index"];function fr(e){let{postType:t}=e;const n=Pe(),{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)(hr,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 Er(e){let{postType:t}=e;const n=Pe(),[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)(Mc,{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 vr(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)(fr,{postType:n}):"wp_template_part"===t?Object(a.createElement)(Er,{postType:n}):null:null}function yr(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)(vr,{templateType:n}))):null}function wr(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 Sr(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:ze.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)(wr,{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 xr=n("0Ene");var kr=Object(a.createElement)(ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(ut.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"})),Tr=n("K8zD");const Cr=["wp_template","wp_template_part"];function Ir(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 Nr(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)(Ir,{isCustomized:r},c?Object(a.createElement)("div",{className:We()("edit-site-list-added-by__avatar",{"is-loaded":l})},Object(a.createElement)("img",{onLoad:()=>o(!0),alt:"",src:c})):Object(a.createElement)("div",{className:We()("edit-site-list-added-by__icon",{"is-customized":r})},Object(a.createElement)(_e.Icon,{icon:n}))),Object(a.createElement)("span",null,t))}function Pr(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)(Nr,{icon:nn.a,text:(null==r||null===(t=r.name)||void 0===t?void 0:t.rendered)||n,isCustomized:c})}function Mr(e){let{slug:t,isCustomized:n}=e;const c=Object(i.useSelect)(e=>e(s.store).getPlugin(t),[t]);return Object(a.createElement)(Nr,{icon:xr.a,text:(null==c?void 0:c.name)||t,isCustomized:n})}function Rr(e){var t;let{id:n}=e;const c=Object(i.useSelect)(e=>e(s.store).getUser(n),[n]);return Object(a.createElement)(Nr,{icon:kr,imageUrl:null==c||null===(t=c.avatar_urls)||void 0===t?void 0:t[48],text:null==c?void 0:c.nickname})}function Ar(){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)(Nr,{icon:Tr.a,imageUrl:t,text:e})}function Lr(e){let{templateType:t,template:n}=e;if(n){if(Cr.includes(t)){if(n.has_theme_file&&("theme"===n.origin||!n.origin&&["theme","custom"].includes(n.source)))return Object(a.createElement)(Pr,{slug:n.theme,isCustomized:"custom"===n.source});if(n.has_theme_file&&"plugin"===n.origin)return Object(a.createElement)(Mr,{slug:n.theme,isCustomized:"custom"===n.source});if(!n.has_theme_file&&"custom"===n.source&&!n.author)return Object(a.createElement)(Ar,null)}return Object(a.createElement)(Rr,{id:n.author})}}function Br(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)(xt,{params:{postId:e.id,postType:e.type}},Object(dc.decodeEntities)((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)(Lr,{templateType:t,template:e})),Object(a.createElement)("td",{className:"edit-site-list-table-column",role:"cell"},Object(a.createElement)(Sr,{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 Dr(){var e,t;const{params:{postType:n}}=Ne();!function(){const{registerShortcut:e}=Object(i.useDispatch)(Be.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(Be.store).getAllShortcutKeyCombinations("core/edit-site/previous-region"),nextShortcut:e(Be.store).getAllShortcutKeyCombinations("core/edit-site/next-region"),isNavigationOpen:e(Oe).isNavigationOpened()}),[]),o=Object(i.useSelect)(e=>e(s.store).getPostType(n),[n]);jr(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:We()("edit-site-list",{"is-navigation-open":l}),labels:{drawer:Object(m.__)("Navigation Sidebar"),...b},header:Object(a.createElement)(yr,{templateType:n}),drawer:Object(a.createElement)(Ic.Slot,null),notices:Object(a.createElement)(u.EditorSnackbars,null),content:Object(a.createElement)(Br,{templateType:n}),shortcuts:{previous:c,next:r}})}function Fr(e){let{postId:t,postType:n}=e;return!(t||!n)}function Vr(e){let{reboot:t}=e;return Object(a.createElement)(_e.SlotFillProvider,null,Object(a.createElement)(u.UnsavedChangesWarning,null),Object(a.createElement)(Re,null,e=>{let{params:n}=e;const c=Fr(n);return Object(a.createElement)(a.Fragment,null,c?Object(a.createElement)(Dr,null):Object(a.createElement)(gr,{onError:t}),Object(a.createElement)(Ic,{isDefaultOpen:!!c,activeTemplateType:c?n.postType:void 0}))}))}async function Gr(e){const t=new URLSearchParams(Te.location.search);if(function(e){const{postType:t}=e;return!Fr(e)&&!["post","page","wp_template","wp_template_part"].includes(t)}(Object.fromEntries(t.entries()))){const t=await async function(e){const t=await st()({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&&Te.replace(t)}}function zr(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 Ur(e){return Object(a.createElement)(T.c,Object(ge.a)({__unstableExplicitMenuItem:!0,scope:"core/edit-site"},e))}var Hr=Object(De.compose)(Object(Le.withPluginContext)((e,t)=>({icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"})))(T.a);async function Wr(e,t){try{await Gr(t.siteUrl)}catch(t){return void Object(a.render)(Object(a.createElement)(rr,{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=Wr.bind(null,e,t);Object(i.dispatch)(Oe).updateSettings(t),Object(i.dispatch)(u.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas});Fr(Object(b.getQueryArgs)(window.location.href))&&Object(i.dispatch)(Oe).setIsNavigationPanelOpened(Object(i.select)(d.store).isViewportMatch("medium"));Object(a.render)(Object(a.createElement)(Vr,{reboot:n}),e)}function qr(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)(),Wr(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;t<arguments.length;t++){var c=arguments[t];if(c){var a=typeof c;if("string"===a||"number"===a)e.push(c);else if(Array.isArray(c)){if(c.length){var l=r.apply(null,c);l&&e.push(l)}}else if("object"===a)if(c.toString===Object.prototype.toString)for(var o in c)n.call(c,o)&&c[o]&&e.push(o);else e.push(c.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(c=function(){return r}.apply(t,[]))||(e.exports=c)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},TvNi:function(e,t){e.exports=window.wp.plugins},U60i:function(e,t,n){"use strict";n.d(t,"b",(function(){return $})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return K})),n.d(t,"e",(function(){return X})),n.d(t,"h",(function(){return H})),n.d(t,"f",(function(){return Z})),n.d(t,"g",(function(){return ee})),n.d(t,"a",(function(){return V})),n.d(t,"i",(function(){return R}));var c={};n.r(c),n.d(c,"enableComplementaryArea",(function(){return y})),n.d(c,"disableComplementaryArea",(function(){return w})),n.d(c,"pinItem",(function(){return x})),n.d(c,"unpinItem",(function(){return k})),n.d(c,"toggleFeature",(function(){return T})),n.d(c,"setFeatureValue",(function(){return C})),n.d(c,"setFeatureDefaults",(function(){return I}));var r={};n.r(r),n.d(r,"getActiveComplementaryArea",(function(){return N})),n.d(r,"isItemPinned",(function(){return P})),n.d(r,"isFeatureActive",(function(){return M}));var a=n("wx14"),l=n("GRId"),o=n("TSYQ"),i=n.n(o),s=n("tI+e"),u=n("1ZqX"),m=n("l3Sj"),d=n("RMJe"),b=n("URob"),p=n("Xxwi"),O=n("KEfo"),j=n("bWcr"),_=n("YLtl");const g=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_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;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}c={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,i;function s(){n=r?new WeakMap:l()}function u(){var n,c,r,a,l,s=arguments.length;for(a=new Array(s),r=0;r<s;r++)a[r]=arguments[r];for(l=t.apply(null,a),(n=i(l)).isUniqueByDependants||(n.lastDependants&&!o(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),c=n.head;c;){if(o(c.args,a,1))return c!==n.head&&(c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n.head,c.prev=null,n.head.prev=c,n.head=c),c.val;c=c.next}return c={val:e.apply(null,a)},a[0]=null,c.args=a,n.head&&(n.head.prev=c,c.next=n.head),n.head=c,c.val}return t||(t=a),i=r?function(e){var t,r,a,o,i,s=n,u=!0;for(t=0;t<e.length;t++){if(r=e[t],!(i=r)||"object"!=typeof i){u=!1;break}s.has(r)?s=s.get(r):(a=new WeakMap,s.set(r,a),s=a)}return s.has(c)||((o=l()).isUniqueByDependants=u,s.set(c,o)),s.get(c)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},rmEH:function(e,t){e.exports=window.wp.htmlEntities},rrFr:function(e,t,n){var c,r,a;r=[],void 0===(a="function"==typeof(c=function(){return function e(t,n,c){var r,a,l=window,o="application/octet-stream",i=c||o,s=t,u=!n&&!c&&s,m=document.createElement("a"),d=function(e){return String(e)},b=l.Blob||l.MozBlob||l.WebKitBlob||d,p=n||"download";if(b=b.call?b.bind(l):Blob,"true"===String(this)&&(i=(s=[s,i])[0],s=s[1]),u&&u.length<2048&&(p=u.split("/").pop().split("?")[0],m.href=u,-1!==m.href.indexOf(u))){var O=new XMLHttpRequest;return O.open("GET",u,!0),O.responseType="blob",O.onload=function(t){e(t.target.response,p,o)},setTimeout((function(){O.send()}),0),O}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(s)){if(!(s.length>2096103.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<g;++j)_[j]=s.charCodeAt(j);s=new b([_],{type:i})}function h(e){for(var t=e.split(/[:;,]/),n=t[1],c=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=c.length,a=0,l=new Uint8Array(r);a<r;++a)l[a]=c.charCodeAt(a);return new b([l],{type:n})}function f(e,t){if("download"in m)return m.href=e,m.setAttribute("download",p),m.className="download-js-link",m.innerHTML="downloading...",m.style.display="none",document.body.appendChild(m),setTimeout((function(){m.click(),document.body.removeChild(m),!0===t&&setTimeout((function(){l.URL.revokeObjectURL(m.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(r=s instanceof b?s:new b([s],{type:i}),navigator.msSaveBlob)return navigator.msSaveBlob(r,p);if(l.URL)f(l.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===d)try{return f("data:"+i+";base64,"+l.btoa(r))}catch(e){return f("data:"+i+","+encodeURIComponent(r))}(a=new FileReader).onload=function(e){f(this.result)},a.readAsDataURL(r)}return!0}})?c.apply(t,r):c)||(e.exports=a)},"tI+e":function(e,t){e.exports=window.wp.components},w95h: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 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=a},wduq: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:"-2 -2 24 24"},Object(c.createElement)(r.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));t.a=a},wx14:function(e,t,n){"use strict";function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return c}))},ywyh:function(e,t){e.exports=window.wp.apiFetch}});
/home/sudancam/public_html/../.trash/wp-includes/PHPMailer/../js/dist/edit-site.min.js