[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.222.100.201: ~ $
/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var o in s)e.o(s,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:s[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{PluginBlockSettingsMenuItem:()=>Ht,PluginDocumentSettingPanel:()=>zt,PluginMoreMenuItem:()=>qt,PluginPostPublishPanel:()=>Wt,PluginPostStatusInfo:()=>$t,PluginPrePublishPanel:()=>Qt,PluginSidebar:()=>Xt,PluginSidebarMoreMenuItem:()=>Zt,__experimentalFullscreenModeClose:()=>qe,__experimentalMainDashboardButton:()=>Kt,__experimentalPluginPostExcerpt:()=>Yt,initializeEditor:()=>Jt,reinitializeEditor:()=>es,store:()=>ze});var s={};e.r(s),e.d(s,{__experimentalSetPreviewDeviceType:()=>re,__unstableCreateTemplate:()=>le,closeGeneralSidebar:()=>V,closeModal:()=>U,closePublishSidebar:()=>z,hideBlockTypes:()=>ee,initializeMetaBoxes:()=>pe,metaBoxUpdatesFailure:()=>ie,metaBoxUpdatesSuccess:()=>oe,openGeneralSidebar:()=>N,openModal:()=>G,openPublishSidebar:()=>H,removeEditorPanel:()=>$,requestMetaBoxUpdates:()=>se,setAvailableMetaBoxesPerLocation:()=>te,setIsEditingTemplate:()=>ce,setIsInserterOpened:()=>ne,setIsListViewOpened:()=>ae,showBlockTypes:()=>J,switchEditorMode:()=>Z,toggleDistractionFree:()=>ue,toggleEditorPanelEnabled:()=>Q,toggleEditorPanelOpened:()=>W,toggleFeature:()=>X,togglePinnedPluginItem:()=>Y,togglePublishSidebar:()=>q,updatePreferredStyleVariations:()=>K});var o={};e.r(o),e.d(o,{__experimentalGetInsertionPoint:()=>Ne,__experimentalGetPreviewDeviceType:()=>Fe,areMetaBoxesInitialized:()=>Ue,getActiveGeneralSidebarName:()=>be,getActiveMetaBoxLocations:()=>je,getAllMetaBoxes:()=>Ce,getEditedPostTemplate:()=>He,getEditorMode:()=>we,getHiddenBlockTypes:()=>xe,getMetaBoxesPerLocation:()=>Re,getPreference:()=>ve,getPreferences:()=>fe,hasMetaBoxes:()=>Oe,isEditingTemplate:()=>Ge,isEditorPanelEnabled:()=>Ee,isEditorPanelOpened:()=>Me,isEditorPanelRemoved:()=>Pe,isEditorSidebarOpened:()=>ye,isFeatureActive:()=>Be,isInserterOpened:()=>Le,isListViewOpened:()=>Ve,isMetaBoxLocationActive:()=>Ae,isMetaBoxLocationVisible:()=>Ie,isModalActive:()=>Te,isPluginItemPinned:()=>ke,isPluginSidebarOpened:()=>_e,isPublishSidebarOpened:()=>Se,isSavingMetaBoxes:()=>De});const i=window.wp.blocks,r=window.wp.blockLibrary,n=window.wp.deprecated;var a=e.n(n);const c=window.wp.element,l=window.wp.data,d=window.wp.preferences,p=window.wp.widgets,u=window.wp.editor,g=window.wp.components,m=window.wp.coreData,h=window.wp.commands;function w(e){var t,s,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=w(e[t]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}const y=function(){for(var e,t,s=0,o="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=w(e))&&(o&&(o+=" "),o+=t);return o},_=window.wp.blockEditor,b=window.wp.plugins,f=window.wp.i18n,v=window.wp.notices,x=window.wp.coreCommands,S=window.wp.url,P=window.wp.htmlEntities,E=window.wp.primitives,M=window.ReactJSXRuntime,T=(0,M.jsx)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,M.jsx)(E.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"})}),B=window.wp.compose;function k(e=[],t){const s=[...e];for(const e of t){const t=s.findIndex((t=>t.id===e.id));-1!==t?s[t]=e:s.push(e)}return s}const j=(0,l.combineReducers)({isSaving:function(e=!1,t){switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":case"META_BOX_UPDATES_FAILURE":return!1;default:return e}},locations:function(e={},t){if("SET_META_BOXES_PER_LOCATIONS"===t.type){const s={...e};for(const[e,o]of Object.entries(t.metaBoxesPerLocation))s[e]=k(s[e],o);return s}return e},initialized:function(e=!1,t){return"META_BOXES_INITIALIZED"===t.type||e}}),I=(0,l.combineReducers)({metaBoxes:j}),A=window.wp.apiFetch;var R=e.n(A);const C=window.wp.hooks,O=window.wp.privateApis,{lock:D,unlock:F}=(0,O.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/edit-post"),{interfaceStore:L}=F(u.privateApis),N=e=>({registry:t})=>{t.dispatch(L).enableComplementaryArea("core",e)},V=()=>({registry:e})=>e.dispatch(L).disableComplementaryArea("core"),G=e=>({registry:t})=>(a()("select( 'core/edit-post' ).openModal( name )",{since:"6.3",alternative:"select( 'core/interface').openModal( name )"}),t.dispatch(L).openModal(e)),U=()=>({registry:e})=>(a()("select( 'core/edit-post' ).closeModal()",{since:"6.3",alternative:"select( 'core/interface').closeModal()"}),e.dispatch(L).closeModal()),H=()=>({registry:e})=>{a()("dispatch( 'core/edit-post' ).openPublishSidebar",{since:"6.6",alternative:"dispatch( 'core/editor').openPublishSidebar"}),e.dispatch(u.store).openPublishSidebar()},z=()=>({registry:e})=>{a()("dispatch( 'core/edit-post' ).closePublishSidebar",{since:"6.6",alternative:"dispatch( 'core/editor').closePublishSidebar"}),e.dispatch(u.store).closePublishSidebar()},q=()=>({registry:e})=>{a()("dispatch( 'core/edit-post' ).togglePublishSidebar",{since:"6.6",alternative:"dispatch( 'core/editor').togglePublishSidebar"}),e.dispatch(u.store).togglePublishSidebar()},Q=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).toggleEditorPanelEnabled",{since:"6.5",alternative:"dispatch( 'core/editor').toggleEditorPanelEnabled"}),t.dispatch(u.store).toggleEditorPanelEnabled(e)},W=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).toggleEditorPanelOpened",{since:"6.5",alternative:"dispatch( 'core/editor').toggleEditorPanelOpened"}),t.dispatch(u.store).toggleEditorPanelOpened(e)},$=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).removeEditorPanel",{since:"6.5",alternative:"dispatch( 'core/editor').removeEditorPanel"}),t.dispatch(u.store).removeEditorPanel(e)},X=e=>({registry:t})=>t.dispatch(d.store).toggle("core/edit-post",e),Z=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).switchEditorMode",{since:"6.6",alternative:"dispatch( 'core/editor').switchEditorMode"}),t.dispatch(u.store).switchEditorMode(e)},Y=e=>({registry:t})=>{const s=t.select(L).isItemPinned("core",e);t.dispatch(L)[s?"unpinItem":"pinItem"]("core",e)};function K(){return a()("dispatch( 'core/edit-post' ).updatePreferredStyleVariations",{since:"6.6",hint:"Preferred Style Variations are not supported anymore."}),{type:"NOTHING"}}const J=e=>({registry:t})=>{F(t.dispatch(u.store)).showBlockTypes(e)},ee=e=>({registry:t})=>{F(t.dispatch(u.store)).hideBlockTypes(e)};function te(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}const se=()=>async({registry:e,select:t,dispatch:s})=>{s({type:"REQUEST_META_BOX_UPDATES"}),window.tinyMCE&&window.tinyMCE.triggerSave();const o=new window.FormData(document.querySelector(".metabox-base-form")),i=o.get("post_ID"),r=o.get("post_type"),n=e.select(m.store).getEditedEntityRecord("postType",r,i),a=[!!n.comment_status&&["comment_status",n.comment_status],!!n.ping_status&&["ping_status",n.ping_status],!!n.sticky&&["sticky",n.sticky],!!n.author&&["post_author",n.author]].filter(Boolean),c=[o,...t.getActiveMetaBoxLocations().map((e=>new window.FormData((e=>{const t=document.querySelector(`.edit-post-meta-boxes-area.is-${e} .metabox-location-${e}`);return t||document.querySelector("#metaboxes .metabox-location-"+e)})(e))))].reduce(((e,t)=>{for(const[s,o]of t)e.append(s,o);return e}),new window.FormData);a.forEach((([e,t])=>c.append(e,t)));try{await R()({url:window._wpMetaBoxUrl,method:"POST",body:c,parse:!1}),s.metaBoxUpdatesSuccess()}catch{s.metaBoxUpdatesFailure()}};function oe(){return{type:"META_BOX_UPDATES_SUCCESS"}}function ie(){return{type:"META_BOX_UPDATES_FAILURE"}}const re=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).__experimentalSetPreviewDeviceType",{since:"6.5",version:"6.7",hint:"registry.dispatch( editorStore ).setDeviceType"}),t.dispatch(u.store).setDeviceType(e)},ne=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).setIsInserterOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsInserterOpened"}),t.dispatch(u.store).setIsInserterOpened(e)},ae=e=>({registry:t})=>{a()("dispatch( 'core/edit-post' ).setIsListViewOpened",{since:"6.5",alternative:"dispatch( 'core/editor').setIsListViewOpened"}),t.dispatch(u.store).setIsListViewOpened(e)};function ce(){return a()("dispatch( 'core/edit-post' ).setIsEditingTemplate",{since:"6.5",alternative:"dispatch( 'core/editor').setRenderingMode"}),{type:"NOTHING"}}function le(){return a()("dispatch( 'core/edit-post' ).__unstableCreateTemplate",{since:"6.5"}),{type:"NOTHING"}}let de=!1;const pe=()=>({registry:e,select:t,dispatch:s})=>{if(!e.select(u.store).__unstableIsEditorReady())return;if(de)return;const o=e.select(u.store).getCurrentPostType();window.postboxes.page!==o&&window.postboxes.add_postbox_toggles(o),de=!0,(0,C.addFilter)("editor.__unstableSavePost","core/edit-post/save-metaboxes",((e,o)=>e.then((()=>{if(!o.isAutosave&&t.hasMetaBoxes())return s.requestMetaBoxUpdates()})))),s({type:"META_BOXES_INITIALIZED"})},ue=()=>({registry:e})=>{a()("dispatch( 'core/edit-post' ).toggleDistractionFree",{since:"6.6",alternative:"dispatch( 'core/editor').toggleDistractionFree"}),e.dispatch(u.store).toggleDistractionFree()},{interfaceStore:ge}=F(u.privateApis),me=[],he={},we=(0,l.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(d.store).get("core","editorMode"))&&void 0!==t?t:"visual"})),ye=(0,l.createRegistrySelector)((e=>()=>{const t=e(ge).getActiveComplementaryArea("core");return["edit-post/document","edit-post/block"].includes(t)})),_e=(0,l.createRegistrySelector)((e=>()=>{const t=e(ge).getActiveComplementaryArea("core");return!!t&&!["edit-post/document","edit-post/block"].includes(t)})),be=(0,l.createRegistrySelector)((e=>()=>e(ge).getActiveComplementaryArea("core")));const fe=(0,l.createRegistrySelector)((e=>()=>{a()("select( 'core/edit-post' ).getPreferences",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const t=["editorMode","hiddenBlockTypes"].reduce(((t,s)=>({...t,[s]:e(d.store).get("core",s)})),{}),s=function(e,t){var s;const o=e?.reduce(((e,t)=>({...e,[t]:{enabled:!1}})),{}),i=t?.reduce(((e,t)=>{const s=e?.[t];return{...e,[t]:{...s,opened:!0}}}),null!=o?o:{});return null!==(s=null!=i?i:o)&&void 0!==s?s:he}(e(d.store).get("core","inactivePanels"),e(d.store).get("core","openPanels"));return{...t,panels:s}}));function ve(e,t,s){a()("select( 'core/edit-post' ).getPreference",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const o=fe(e)[t];return void 0===o?s:o}const xe=(0,l.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(d.store).get("core","hiddenBlockTypes"))&&void 0!==t?t:me})),Se=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).isPublishSidebarOpened",{since:"6.6",alternative:"select( 'core/editor' ).isPublishSidebarOpened"}),e(u.store).isPublishSidebarOpened()))),Pe=(0,l.createRegistrySelector)((e=>(t,s)=>(a()("select( 'core/edit-post' ).isEditorPanelRemoved",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelRemoved"}),e(u.store).isEditorPanelRemoved(s)))),Ee=(0,l.createRegistrySelector)((e=>(t,s)=>(a()("select( 'core/edit-post' ).isEditorPanelEnabled",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelEnabled"}),e(u.store).isEditorPanelEnabled(s)))),Me=(0,l.createRegistrySelector)((e=>(t,s)=>(a()("select( 'core/edit-post' ).isEditorPanelOpened",{since:"6.5",alternative:"select( 'core/editor' ).isEditorPanelOpened"}),e(u.store).isEditorPanelOpened(s)))),Te=(0,l.createRegistrySelector)((e=>(t,s)=>(a()("select( 'core/edit-post' ).isModalActive",{since:"6.3",alternative:"select( 'core/interface' ).isModalActive"}),!!e(ge).isModalActive(s)))),Be=(0,l.createRegistrySelector)((e=>(t,s)=>!!e(d.store).get("core/edit-post",s))),ke=(0,l.createRegistrySelector)((e=>(t,s)=>e(ge).isItemPinned("core",s))),je=(0,l.createSelector)((e=>Object.keys(e.metaBoxes.locations).filter((t=>Ae(e,t)))),(e=>[e.metaBoxes.locations])),Ie=(0,l.createRegistrySelector)((e=>(t,s)=>Ae(t,s)&&Re(t,s)?.some((({id:s})=>e(u.store).isEditorPanelEnabled(t,`meta-box-${s}`)))));function Ae(e,t){const s=Re(e,t);return!!s&&0!==s.length}function Re(e,t){return e.metaBoxes.locations[t]}const Ce=(0,l.createSelector)((e=>Object.values(e.metaBoxes.locations).flat()),(e=>[e.metaBoxes.locations]));function Oe(e){return je(e).length>0}function De(e){return e.metaBoxes.isSaving}const Fe=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-site' ).__experimentalGetPreviewDeviceType",{since:"6.5",version:"6.7",alternative:"select( 'core/editor' ).getDeviceType"}),e(u.store).getDeviceType()))),Le=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).isInserterOpened",{since:"6.5",alternative:"select( 'core/editor' ).isInserterOpened"}),e(u.store).isInserterOpened()))),Ne=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).__experimentalGetInsertionPoint",{since:"6.5",version:"6.7"}),F(e(u.store)).getInsertionPoint()))),Ve=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).isListViewOpened",{since:"6.5",alternative:"select( 'core/editor' ).isListViewOpened"}),e(u.store).isListViewOpened()))),Ge=(0,l.createRegistrySelector)((e=>()=>(a()("select( 'core/edit-post' ).isEditingTemplate",{since:"6.5",alternative:"select( 'core/editor' ).getRenderingMode"}),"wp_template"===e(u.store).getCurrentPostType())));function Ue(e){return e.metaBoxes.initialized}const He=(0,l.createRegistrySelector)((e=>()=>{const{id:t,type:s,slug:o}=e(u.store).getCurrentPost(),{getSite:i,getEditedEntityRecord:r,getEntityRecords:n}=e(m.store),a=i();if(+t===a?.page_for_posts){return r("postType","wp_template",e(m.store).getDefaultTemplateId({slug:"home"}))}const c=e(u.store).getEditedPostAttribute("template");if(c){const e=n("postType","wp_template",{per_page:-1})?.find((e=>e.slug===c));return e?r("postType","wp_template",e.id):e}let l;l=o?"page"===s?`${s}-${o}`:`single-${s}-${o}`:"page"===s?"page":`single-${s}`;const d=e(m.store).getDefaultTemplateId({slug:l});return d?e(m.store).getEditedEntityRecord("postType","wp_template",d):null})),ze=(0,l.createReduxStore)("core/edit-post",{reducer:I,actions:s,selectors:o});(0,l.register)(ze);const qe=function({showTooltip:e,icon:t,href:s,initialPost:o}){var i;const{isActive:r,isRequestingSiteIcon:n,postType:a,siteIconUrl:c}=(0,l.useSelect)((e=>{const{getCurrentPostType:t}=e(u.store),{isFeatureActive:s}=e(ze),{getEntityRecord:i,getPostType:r,isResolving:n}=e(m.store),a=i("root","__unstableBase",void 0)||{},c=o?.type||t();return{isActive:s("fullscreenMode"),isRequestingSiteIcon:n("getEntityRecord",["root","__unstableBase",void 0]),postType:r(c),siteIconUrl:a.site_icon_url}}),[]),d=(0,B.useReducedMotion)();if(!r||!a)return null;let p=(0,M.jsx)(g.Icon,{size:"36px",icon:T});const h={expand:{scale:1.25,transition:{type:"tween",duration:"0.3"}}};c&&(p=(0,M.jsx)(g.__unstableMotion.img,{variants:!d&&h,alt:(0,f.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:c})),n&&(p=null),t&&(p=(0,M.jsx)(g.Icon,{size:"36px",icon:t}));const w=y({"edit-post-fullscreen-mode-close":!0,"has-icon":c}),_=null!=s?s:(0,S.addQueryArgs)("edit.php",{post_type:a.slug}),b=null!==(i=a?.labels?.view_items)&&void 0!==i?i:(0,f.__)("Back");return(0,M.jsx)(g.__unstableMotion.div,{whileHover:"expand",children:(0,M.jsx)(g.Button,{className:w,href:_,label:b,showTooltip:e,children:p})})},{BackButton:Qe}=F(u.privateApis),We={hidden:{x:"-100%"},distractionFreeInactive:{x:0},hover:{x:0,transition:{type:"tween",delay:.2}}};const $e=function({initialPost:e}){return(0,M.jsx)(Qe,{children:({length:t})=>t<=1&&(0,M.jsx)(g.__unstableMotion.div,{variants:We,transition:{type:"tween",delay:.8},children:(0,M.jsx)(qe,{showTooltip:!0,initialPost:e})})})},Xe=window.wp.keyboardShortcuts;const Ze=function(){const{toggleFeature:e}=(0,l.useDispatch)(ze),{registerShortcut:t}=(0,l.useDispatch)(Xe.store);return(0,c.useEffect)((()=>{t({name:"core/edit-post/toggle-fullscreen",category:"global",description:(0,f.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}})}),[]),(0,Xe.useShortcut)("core/edit-post/toggle-fullscreen",(()=>{e("fullscreenMode")})),null},{ReusableBlocksRenameHint:Ye}=F(_.privateApis);function Ke(){const{editPost:e}=(0,l.useDispatch)(u.store),[t,s]=(0,c.useState)(!1),[o,i]=(0,c.useState)(void 0),[r,n]=(0,c.useState)(""),{postType:a,isNewPost:d}=(0,l.useSelect)((e=>{const{getEditedPostAttribute:t,isCleanNewPost:s}=e(u.store);return{postType:t("type"),isNewPost:s()}}),[]);return(0,c.useEffect)((()=>{d&&"wp_block"===a&&s(!0)}),[]),"wp_block"===a&&d?(0,M.jsx)(M.Fragment,{children:t&&(0,M.jsx)(g.Modal,{title:(0,f.__)("Create pattern"),onRequestClose:()=>{s(!1)},overlayClassName:"reusable-blocks-menu-items__convert-modal",children:(0,M.jsx)("form",{onSubmit:t=>{t.preventDefault(),s(!1),e({title:r,meta:{wp_pattern_sync_status:o}})},children:(0,M.jsxs)(g.__experimentalVStack,{spacing:"5",children:[(0,M.jsx)(g.TextControl,{label:(0,f.__)("Name"),value:r,onChange:n,placeholder:(0,f.__)("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,M.jsx)(Ye,{}),(0,M.jsx)(g.ToggleControl,{label:(0,f._x)("Synced","pattern (singular)"),help:(0,f.__)("Sync this pattern across multiple locations."),checked:!o,onChange:()=>{i(o?void 0:"unsynced")}}),(0,M.jsx)(g.__experimentalHStack,{justify:"right",children:(0,M.jsx)(g.Button,{variant:"primary",type:"submit",disabled:!r,__experimentalIsFocusable:!0,children:(0,f.__)("Create")})})]})})})}):null}class Je extends c.Component{constructor(){super(...arguments),this.state={historyId:null}}componentDidUpdate(e){const{postId:t,postStatus:s,postType:o,isSavingPost:i,hasHistory:r}=this.props,{historyId:n}=this.state;"trash"!==s||i?t===e.postId&&t===n||"auto-draft"===s||!t||r||this.setBrowserURL(t):this.setTrashURL(t,o)}setTrashURL(e,t){window.location.href=function(e,t){return(0,S.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}setBrowserURL(e){window.history.replaceState({id:e},"Post "+e,function(e){return(0,S.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((()=>({historyId:e})))}render(){return null}}const et=(0,l.withSelect)((e=>{const{getCurrentPost:t,isSavingPost:s}=e(u.store),o=t();let{id:i,status:r,type:n}=o;return["wp_template","wp_template_part"].includes(n)&&(i=o.wp_id),{postId:i,postStatus:r,postType:n,isSavingPost:s()}}))(Je);const tt=function({location:e}){const t=(0,c.useRef)(null),s=(0,c.useRef)(null);(0,c.useEffect)((()=>(s.current=document.querySelector(".metabox-location-"+e),s.current&&t.current.appendChild(s.current),()=>{s.current&&document.querySelector("#metaboxes").appendChild(s.current)})),[e]);const o=(0,l.useSelect)((e=>e(ze).isSavingMetaBoxes()),[]),i=y("edit-post-meta-boxes-area",`is-${e}`,{"is-loading":o});return(0,M.jsxs)("div",{className:i,children:[o&&(0,M.jsx)(g.Spinner,{}),(0,M.jsx)("div",{className:"edit-post-meta-boxes-area__container",ref:t}),(0,M.jsx)("div",{className:"edit-post-meta-boxes-area__clear"})]})};class st extends c.Component{componentDidMount(){this.updateDOM()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}updateDOM(){const{id:e,isVisible:t}=this.props,s=document.getElementById(e);s&&(t?s.classList.remove("is-hidden"):s.classList.add("is-hidden"))}render(){return null}}const ot=(0,l.withSelect)(((e,{id:t})=>({isVisible:e(u.store).isEditorPanelEnabled(`meta-box-${t}`)})))(st);function it({location:e}){const t=(0,l.useRegistry)(),{metaBoxes:s,areMetaBoxesInitialized:o,isEditorReady:i}=(0,l.useSelect)((t=>{const{__unstableIsEditorReady:s}=t(u.store),{getMetaBoxesPerLocation:o,areMetaBoxesInitialized:i}=t(ze);return{metaBoxes:o(e),areMetaBoxesInitialized:i(),isEditorReady:s()}}),[e]),r=!!s?.length;return(0,c.useEffect)((()=>{i&&r&&!o&&t.dispatch(ze).initializeMetaBoxes()}),[i,r,o]),o?(0,M.jsxs)(M.Fragment,{children:[(null!=s?s:[]).map((({id:e})=>(0,M.jsx)(ot,{id:e},e))),(0,M.jsx)(tt,{location:e})]}):null}const rt=window.wp.keycodes;const nt=function(){const e=(0,l.useSelect)((e=>{const{canUser:t}=e(m.store),s=(0,S.addQueryArgs)("edit.php",{post_type:"wp_block"}),o=(0,S.addQueryArgs)("site-editor.php",{path:"/patterns"});return t("create","templates")?o:s}),[]);return(0,M.jsx)(g.MenuItem,{role:"menuitem",href:e,children:(0,f.__)("Manage patterns")})};function at(){const e=(0,l.useSelect)((e=>"wp_template"===e(u.store).getCurrentPostType()),[]);return(0,M.jsx)(d.PreferenceToggleMenuItem,{scope:"core/edit-post",name:e?"welcomeGuideTemplate":"welcomeGuide",label:(0,f.__)("Welcome Guide")})}const{PreferenceBaseOption:ct}=F(d.privateApis);function lt({willEnable:e}){const[t,s]=(0,c.useState)(!1);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message",children:(0,f.__)("A page reload is required for this change. Make sure your content is saved before reloading.")}),(0,M.jsx)(g.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",variant:"secondary",isBusy:t,__experimentalIsFocusable:!0,disabled:t,onClick:()=>{s(!0),function(){const e=document.getElementById("toggle-custom-fields-form");e.querySelector('[name="_wp_http_referer"]').setAttribute("value",(0,S.getPathAndQueryString)(window.location.href)),e.submit()}()},children:e?(0,f.__)("Show & Reload Page"):(0,f.__)("Hide & Reload Page")})]})}const dt=(0,l.withSelect)((e=>({areCustomFieldsEnabled:!!e(u.store).getEditorSettings().enableCustomFields})))((function({label:e,areCustomFieldsEnabled:t}){const[s,o]=(0,c.useState)(t);return(0,M.jsx)(ct,{label:e,isChecked:s,onChange:o,children:s!==t&&(0,M.jsx)(lt,{willEnable:s})})})),{PreferenceBaseOption:pt}=F(d.privateApis),ut=(0,B.compose)((0,l.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:s,isEditorPanelRemoved:o}=e(u.store);return{isRemoved:o(t),isChecked:s(t)}})),(0,B.ifCondition)((({isRemoved:e})=>!e)),(0,l.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(u.store).toggleEditorPanelEnabled(t)}))))(pt),{PreferencesModalSection:gt}=F(d.privateApis);const mt=(0,l.withSelect)((e=>{const{getEditorSettings:t}=e(u.store),{getAllMetaBoxes:s}=e(ze);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:s()}}))((function({areCustomFieldsRegistered:e,metaBoxes:t,...s}){const o=t.filter((({id:e})=>"postcustom"!==e));return e||0!==o.length?(0,M.jsxs)(gt,{...s,children:[e&&(0,M.jsx)(dt,{label:(0,f.__)("Custom fields")}),o.map((({id:e,title:t})=>(0,M.jsx)(ut,{label:t,panelName:`meta-box-${e}`},e)))]}):null})),{PreferenceToggleControl:ht}=F(d.privateApis),{PreferencesModal:wt}=F(u.privateApis);function yt(){const e={general:(0,M.jsx)(mt,{title:(0,f.__)("Advanced")}),appearance:(0,M.jsx)(ht,{scope:"core/edit-post",featureName:"themeStyles",help:(0,f.__)("Make the editor look like your theme."),label:(0,f.__)("Use theme styles")})};return(0,M.jsx)(wt,{extraSections:e})}const{ToolsMoreMenuGroup:_t,ViewMoreMenuGroup:bt}=F(u.privateApis),ft=()=>{const e=(0,B.useViewportMatch)("large");return(0,M.jsxs)(M.Fragment,{children:[e&&(0,M.jsx)(bt,{children:(0,M.jsx)(d.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"fullscreenMode",label:(0,f.__)("Fullscreen mode"),info:(0,f.__)("Show and hide the admin user interface"),messageActivated:(0,f.__)("Fullscreen mode activated"),messageDeactivated:(0,f.__)("Fullscreen mode deactivated"),shortcut:rt.displayShortcut.secondary("f")})}),(0,M.jsxs)(_t,{children:[(0,M.jsx)(nt,{}),(0,M.jsx)(at,{})]}),(0,M.jsx)(yt,{})]})};function vt({nonAnimatedSrc:e,animatedSrc:t}){return(0,M.jsxs)("picture",{className:"edit-post-welcome-guide__image",children:[(0,M.jsx)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,M.jsx)("img",{src:t,width:"312",height:"240",alt:""})]})}function xt(){const{toggleFeature:e}=(0,l.useDispatch)(ze);return(0,M.jsx)(g.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,f.__)("Welcome to the block editor"),finishButtonText:(0,f.__)("Get started"),onFinish:()=>e("welcomeGuide"),pages:[{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Welcome to the block editor")}),(0,M.jsx)("p",{className:"edit-post-welcome-guide__text",children:(0,f.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.")})]})},{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Make each block your own")}),(0,M.jsx)("p",{className:"edit-post-welcome-guide__text",children:(0,f.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")})]})},{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Get to know the block library")}),(0,M.jsx)("p",{className:"edit-post-welcome-guide__text",children:(0,c.createInterpolateElement)((0,f.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:(0,M.jsx)("img",{alt:(0,f.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})})]})},{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Learn how to use the block editor")}),(0,M.jsxs)("p",{className:"edit-post-welcome-guide__text",children:[(0,f.__)("New to the block editor? Want to learn more about using it? "),(0,M.jsx)(g.ExternalLink,{href:(0,f.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),children:(0,f.__)("Here's a detailed guide.")})]})]})}]})}function St(){const{toggleFeature:e}=(0,l.useDispatch)(ze);return(0,M.jsx)(g.Guide,{className:"edit-template-welcome-guide",contentLabel:(0,f.__)("Welcome to the template editor"),finishButtonText:(0,f.__)("Get started"),onFinish:()=>e("welcomeGuideTemplate"),pages:[{image:(0,M.jsx)(vt,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.gif"}),content:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h1",{className:"edit-post-welcome-guide__heading",children:(0,f.__)("Welcome to the template editor")}),(0,M.jsx)("p",{className:"edit-post-welcome-guide__text",children:(0,f.__)("Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.")})]})}]})}function Pt(){const{isActive:e,isEditingTemplate:t}=(0,l.useSelect)((e=>{const{isFeatureActive:t}=e(ze),{getCurrentPostType:s}=e(u.store),o="wp_template"===s();return{isActive:t(o?"welcomeGuideTemplate":"welcomeGuide"),isEditingTemplate:o}}),[]);return e?t?(0,M.jsx)(St,{}):(0,M.jsx)(xt,{}):null}const Et=(0,M.jsx)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,M.jsx)(E.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});const Mt=!1;const{getLayoutStyles:Tt}=F(_.privateApis),{useCommands:Bt}=F(x.privateApis),{useCommandContext:kt}=F(h.privateApis),{EditorInterface:jt,FullscreenMode:It,Sidebar:At}=F(u.privateApis),{BlockKeyboardShortcuts:Rt}=F(r.privateApis),Ct=["wp_template","wp_template_part","wp_block","wp_navigation"];const Ot=function({initialPost:e}){Bt(),function(){const{isFullscreen:e}=(0,l.useSelect)((e=>{const{get:t}=e(d.store);return{isFullscreen:t("core/edit-post","fullscreenMode")}}),[]),{toggle:t}=(0,l.useDispatch)(d.store),{createInfoNotice:s}=(0,l.useDispatch)(v.store);(0,h.useCommand)({name:"core/toggle-fullscreen-mode",label:e?(0,f.__)("Exit fullscreen"):(0,f.__)("Enter fullscreen"),icon:Et,callback:({close:o})=>{t("core/edit-post","fullscreenMode"),o(),s(e?(0,f.__)("Fullscreen off."):(0,f.__)("Fullscreen on."),{id:"core/edit-post/toggle-fullscreen-mode/notice",type:"snackbar",actions:[{label:(0,f.__)("Undo"),onClick:()=>{t("core/edit-post","fullscreenMode")}}]})}})}();const t=function(){const e=(0,l.useRegistry)();return(0,B.useRefEffect)((t=>{function s(s){if(s.target!==t)return;const{ownerDocument:o}=t,{defaultView:r}=o;if(!r.parseInt(r.getComputedStyle(t,":after").height,10))return;const n=t.lastElementChild;if(!n)return;const a=n.getBoundingClientRect();if(s.clientY<a.bottom)return;s.stopPropagation();const c=e.select(_.store).getBlockOrder(""),l=c[c.length-1],d=e.select(_.store).getBlock(l),{selectBlock:p,insertDefaultBlock:u}=e.dispatch(_.store);d&&(0,i.isUnmodifiedDefaultBlock)(d)?p(l):u()}return t.addEventListener("mousedown",s),()=>{t.removeEventListener("mousedown",s)}}),[e])}(),s=function(){const{isBlockBasedTheme:e,hasV3BlocksOnly:t,isEditingTemplate:s,hasMetaBoxes:o}=(0,l.useSelect)((e=>{const{getEditorSettings:t,getCurrentPostType:s}=e(u.store),{getBlockTypes:o}=e(i.store);return{isBlockBasedTheme:t().__unstableIsBlockBasedTheme,hasV3BlocksOnly:o().every((e=>e.apiVersion>=3)),isEditingTemplate:"wp_template"===s(),hasMetaBoxes:e(ze).hasMetaBoxes()}}),[]);return(t||Mt&&e)&&!o||s}(),{createErrorNotice:o}=(0,l.useDispatch)(v.store),{mode:r,isFullscreenActive:n,hasActiveMetaboxes:a,hasBlockSelected:p,showIconLabels:g,isDistractionFree:m,showMetaBoxes:w,hasHistory:x,isEditingTemplate:E,isWelcomeGuideVisible:T}=(0,l.useSelect)((e=>{const{get:t}=e(d.store),{getEditorSettings:s}=e(u.store),{isFeatureActive:o}=e(ze);return{mode:e(u.store).getEditorMode(),isFullscreenActive:e(ze).isFeatureActive("fullscreenMode"),hasActiveMetaboxes:e(ze).hasMetaBoxes(),hasBlockSelected:!!e(_.store).getBlockSelectionStart(),showIconLabels:t("core","showIconLabels"),isDistractionFree:t("core","distractionFree"),showMetaBoxes:"post-only"===e(u.store).getRenderingMode(),hasHistory:!!s().onNavigateToPreviousEntityRecord,isEditingTemplate:"wp_template"===e(u.store).getCurrentPostType(),isWelcomeGuideVisible:o("welcomeGuide")}}),[]);kt(p?"block-selection-edit":"entity-edit");const k=function(){const{hasThemeStyleSupport:e,editorSettings:t,isZoomedOutView:s,renderingMode:o,postType:i}=(0,l.useSelect)((e=>{const{__unstableGetEditorMode:t}=e(_.store),{getCurrentPostType:s,getRenderingMode:o}=e(u.store),i=s();return{hasThemeStyleSupport:e(ze).isFeatureActive("themeStyles"),editorSettings:e(u.store).getEditorSettings(),isZoomedOutView:"zoom-out"===t(),renderingMode:o(),postType:i}}),[]);return(0,c.useMemo)((()=>{var r,n,a;const c=null!==(r=t.styles?.filter((e=>e.__unstableType&&"theme"!==e.__unstableType)))&&void 0!==r?r:[],l=[...t.defaultEditorStyles,...c],d=e&&c.length!==(null!==(n=t.styles?.length)&&void 0!==n?n:0);t.disableLayoutStyles||d||l.push({css:Tt({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})});const p=d?null!==(a=t.styles)&&void 0!==a?a:[]:l;return s||"post-only"!==o||Ct.includes(i)?p:[...p,{css:':root :where(.editor-styles-wrapper)::after {content: ""; display: block; height: 40vh;}'}]}),[t.defaultEditorStyles,t.disableLayoutStyles,t.styles,e,i])}();g?document.body.classList.add("show-icon-labels"):document.body.classList.remove("show-icon-labels");const j=y("edit-post-layout","is-mode-"+r,{"has-metaboxes":a}),{createSuccessNotice:I}=(0,l.useDispatch)(v.store),A=(0,c.useCallback)(((e,t)=>{switch(e){case"move-to-trash":document.location.href=(0,S.addQueryArgs)("edit.php",{trashed:1,post_type:t[0].type,ids:t[0].id});break;case"duplicate-post":{const e=t[0],s="string"==typeof e.title?e.title:e.title?.rendered;I((0,f.sprintf)((0,f.__)('"%s" successfully created.'),(0,P.decodeEntities)(s)),{type:"snackbar",id:"duplicate-post-action",actions:[{label:(0,f.__)("Edit"),onClick:()=>{const t=e.id;document.location.href=(0,S.addQueryArgs)("post.php",{post:t,action:"edit"})}}]})}}}),[I]);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(It,{isActive:n}),(0,M.jsx)(et,{hasHistory:x}),(0,M.jsx)(u.UnsavedChangesWarning,{}),(0,M.jsx)(u.AutosaveMonitor,{}),(0,M.jsx)(u.LocalAutosaveMonitor,{}),(0,M.jsx)(Ze,{}),(0,M.jsx)(u.EditorKeyboardShortcutsRegister,{}),(0,M.jsx)(Rt,{}),(0,M.jsx)(Pt,{}),(0,M.jsx)(Ke,{}),(0,M.jsx)(b.PluginArea,{onError:function(e){o((0,f.sprintf)((0,f.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}),!m&&(0,M.jsx)(At,{onActionPerformed:A,extraPanels:!E&&(0,M.jsx)(it,{location:"side"})}),(0,M.jsx)(ft,{}),(0,M.jsx)($e,{initialPost:e}),(0,M.jsx)(u.EditorSnackbars,{}),(0,M.jsx)(jt,{className:j,styles:k,forceIsDirty:a,contentRef:t,disableIframe:!s,autoFocus:!T,children:!m&&w&&(0,M.jsxs)("div",{className:"edit-post-layout__metaboxes",children:[(0,M.jsx)(it,{location:"normal"}),(0,M.jsx)(it,{location:"advanced"})]})})]})},Dt=()=>{const{newPermalink:e}=(0,l.useSelect)((e=>({newPermalink:e(u.store).getCurrentPost().link})),[]),t=(0,c.useRef)();(0,c.useEffect)((()=>{t.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[]),(0,c.useEffect)((()=>{e&&t.current&&t.current.setAttribute("href",e)}),[e])};function Ft(){return Dt(),null}const{ExperimentalEditorProvider:Lt}=F(u.privateApis);const Nt=function({postId:e,postType:t,settings:s,initialEdits:o,...i}){const{currentPost:r,onNavigateToEntityRecord:n,onNavigateToPreviousEntityRecord:a}=function(e,t,s){const[o,i]=(0,c.useReducer)(((e,{type:t,post:s,previousRenderingMode:o})=>"push"===t?[...e,{post:s,previousRenderingMode:o}]:"pop"===t&&e.length>1?e.slice(0,-1):e),[{post:{postId:e,postType:t}}]),{post:r,previousRenderingMode:n}=o[o.length-1],{getRenderingMode:a}=(0,l.useSelect)(u.store),{setRenderingMode:d}=(0,l.useDispatch)(u.store),p=(0,c.useCallback)((e=>{i({type:"push",post:{postId:e.postId,postType:e.postType},previousRenderingMode:a()}),d(s)}),[a,d,s]),g=(0,c.useCallback)((()=>{i({type:"pop"}),n&&d(n)}),[d,n]);return{currentPost:r,onNavigateToEntityRecord:p,onNavigateToPreviousEntityRecord:o.length>1?g:void 0}}(e,t,"post-only"),{post:d,template:p}=(0,l.useSelect)((e=>{var t;const{getEditedPostTemplate:s}=e(ze),{getEntityRecord:o,getPostType:i,canUser:n}=e(m.store),{getEditorSettings:a}=e(u.store),c=o("postType",r.postType,r.postId),l=a().supportsTemplateMode,d=null!==(t=i(r.postType)?.viewable)&&void 0!==t&&t,p=n("read","templates");return{template:l&&d&&p&&"wp_template"!==r.postType?s():null,post:c}}),[r.postType,r.postId]),w=(0,c.useMemo)((()=>({...s,onNavigateToEntityRecord:n,onNavigateToPreviousEntityRecord:a,defaultRenderingMode:"post-only"})),[s,n,a]),y=(0,c.useMemo)((()=>({type:t,id:e})),[t,e]);return d?(0,M.jsx)(g.SlotFillProvider,{children:(0,M.jsxs)(Lt,{settings:w,post:d,initialEdits:o,useSubRegistry:!1,__unstableTemplate:p,...i,children:[(0,M.jsxs)(u.ErrorBoundary,{children:[(0,M.jsx)(h.CommandMenu,{}),(0,M.jsx)(Ft,{}),(0,M.jsx)(Ot,{initialPost:y})]}),(0,M.jsx)(u.PostLockedModal,{})]})}):null},{PluginPostExcerpt:Vt}=F(u.privateApis),Gt=(0,S.getPath)(window.location.href)?.includes("site-editor.php"),Ut=e=>{a()(`wp.editPost.${e}`,{since:"6.6",alternative:`wp.editor.${e}`})};function Ht(e){return Gt?null:(Ut("PluginBlockSettingsMenuItem"),(0,M.jsx)(u.PluginBlockSettingsMenuItem,{...e}))}function zt(e){return Gt?null:(Ut("PluginDocumentSettingPanel"),(0,M.jsx)(u.PluginDocumentSettingPanel,{...e}))}function qt(e){return Gt?null:(Ut("PluginMoreMenuItem"),(0,M.jsx)(u.PluginMoreMenuItem,{...e}))}function Qt(e){return Gt?null:(Ut("PluginPrePublishPanel"),(0,M.jsx)(u.PluginPrePublishPanel,{...e}))}function Wt(e){return Gt?null:(Ut("PluginPostPublishPanel"),(0,M.jsx)(u.PluginPostPublishPanel,{...e}))}function $t(e){return Gt?null:(Ut("PluginPostStatusInfo"),(0,M.jsx)(u.PluginPostStatusInfo,{...e}))}function Xt(e){return Gt?null:(Ut("PluginSidebar"),(0,M.jsx)(u.PluginSidebar,{...e}))}function Zt(e){return Gt?null:(Ut("PluginSidebarMoreMenuItem"),(0,M.jsx)(u.PluginSidebarMoreMenuItem,{...e}))}function Yt(){return Gt?null:(a()("wp.editPost.__experimentalPluginPostExcerpt",{since:"6.6",hint:"Core and custom panels can be access programmatically using their panel name.",link:"https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/#accessing-a-panel-programmatically"}),Vt)}const{BackButton:Kt}=F(u.privateApis);function Jt(e,t,s,o,n){const a=window.matchMedia("(min-width: 782px)").matches,g=document.getElementById(e),m=(0,c.createRoot)(g);(0,l.dispatch)(d.store).setDefaults("core/edit-post",{fullscreenMode:!0,themeStyles:!0,welcomeGuide:!0,welcomeGuideTemplate:!0}),(0,l.dispatch)(d.store).setDefaults("core",{allowRightClickOverrides:!0,editorMode:"visual",fixedToolbar:!1,hiddenBlockTypes:[],inactivePanels:[],openPanels:["post-status"],showBlockBreadcrumbs:!0,showIconLabels:!1,showListViewByDefault:!1,isPublishSidebarEnabled:!0}),(0,l.dispatch)(i.store).reapplyBlockTypeFilters(),a&&(0,l.select)(d.store).get("core","showListViewByDefault")&&!(0,l.select)(d.store).get("core","distractionFree")&&(0,l.dispatch)(u.store).setIsListViewOpened(!0),(0,r.registerCoreBlocks)(),(0,p.registerLegacyWidgetBlock)({inserter:!1}),(0,p.registerWidgetGroupBlock)({inserter:!1});"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.");return-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(e=>{const t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),m.render((0,M.jsx)(Nt,{settings:o,postId:s,postType:t,initialEdits:n})),m}function es(){a()("wp.editPost.reinitializeEditor",{since:"6.2",version:"6.3"})}(window.wp=window.wp||{}).editPost=t})();

Filemanager

Name Type Size Permission Actions
development Folder 0555
vendor Folder 0555
a11y.js File 8.36 KB 0644
a11y.min.js File 2.3 KB 0644
annotations.js File 23 KB 0644
annotations.min.js File 5.39 KB 0644
api-fetch.js File 22.82 KB 0644
api-fetch.min.js File 5.37 KB 0644
autop.js File 15.83 KB 0644
autop.min.js File 5.48 KB 0644
blob.js File 4.68 KB 0644
blob.min.js File 1.08 KB 0644
block-directory.js File 78.92 KB 0644
block-directory.min.js File 20.28 KB 0644
block-editor.js File 2.43 MB 0644
block-editor.min.js File 794.02 KB 0644
block-library.js File 2.04 MB 0644
block-library.min.js File 815.31 KB 0644
block-serialization-default-parser.js File 14.87 KB 0644
block-serialization-default-parser.min.js File 2.34 KB 0644
blocks.js File 539.33 KB 0644
blocks.min.js File 167.24 KB 0644
commands.js File 175.5 KB 0644
commands.min.js File 45.2 KB 0644
components.js File 2.3 MB 0644
components.min.js File 679.85 KB 0644
compose.js File 197.21 KB 0644
compose.min.js File 36.61 KB 0644
core-commands.js File 22.02 KB 0644
core-commands.min.js File 7.92 KB 0644
core-data.js File 246.24 KB 0644
core-data.min.js File 59.51 KB 0644
customize-widgets.js File 97.11 KB 0644
customize-widgets.min.js File 34.19 KB 0644
data-controls.js File 7.14 KB 0644
data-controls.min.js File 1.44 KB 0644
data.js File 154.56 KB 0644
data.min.js File 26.46 KB 0644
date.js File 798.19 KB 0644
date.min.js File 765.07 KB 0644
deprecated.js File 4.63 KB 0644
deprecated.min.js File 684 B 0644
dom-ready.js File 2.41 KB 0644
dom-ready.min.js File 457 B 0644
dom.js File 61.46 KB 0644
dom.min.js File 12.19 KB 0644
edit-post.js File 113.97 KB 0644
edit-post.min.js File 39.27 KB 0644
edit-site.js File 1.44 MB 0644
edit-site.min.js File 575.93 KB 0644
edit-widgets.js File 174.18 KB 0644
edit-widgets.min.js File 57.63 KB 0644
editor.js File 979.45 KB 0644
editor.min.js File 318.42 KB 0644
element.js File 65.63 KB 0644
element.min.js File 11.7 KB 0644
escape-html.js File 6.07 KB 0644
escape-html.min.js File 1000 B 0644
format-library.js File 67.52 KB 0644
format-library.min.js File 22.3 KB 0644
hooks.js File 19.27 KB 0644
hooks.min.js File 4.21 KB 0644
html-entities.js File 3.62 KB 0644
html-entities.min.js File 788 B 0644
i18n.js File 48.74 KB 0644
i18n.min.js File 8.93 KB 0644
interactivity-router.asset.php File 16.09 KB 0555
interactivity-router.js File 11.7 KB 0644
interactivity-router.min.asset.php File 16.09 KB 0555
interactivity-router.min.js File 2.96 KB 0644
interactivity.js File 95.62 KB 0644
interactivity.min.js File 35.83 KB 0644
is-shallow-equal.js File 4.25 KB 0644
is-shallow-equal.min.js File 1018 B 0644
keyboard-shortcuts.js File 24.17 KB 0644
keyboard-shortcuts.min.js File 2.95 KB 0644
keycodes.js File 13.77 KB 0644
keycodes.min.js File 2.58 KB 0644
list-reusable-blocks.js File 29.89 KB 0644
list-reusable-blocks.min.js File 4.67 KB 0644
media-utils.js File 22.27 KB 0644
media-utils.min.js File 7.19 KB 0644
notices.js File 21.64 KB 0644
notices.min.js File 2.02 KB 0644
nux.js File 13.19 KB 0644
nux.min.js File 3.34 KB 0644
patterns.js File 62.93 KB 0644
patterns.min.js File 20.77 KB 0644
plugins.js File 17.72 KB 0644
plugins.min.js File 4.05 KB 0644
preferences-persistence.js File 29.58 KB 0644
preferences-persistence.min.js File 5.49 KB 0644
preferences.js File 25.7 KB 0644
preferences.min.js File 6.91 KB 0644
primitives.js File 6.73 KB 0644
primitives.min.js File 1.62 KB 0644
priority-queue.js File 13.91 KB 0644
priority-queue.min.js File 3.3 KB 0644
private-apis.js File 8.66 KB 0644
private-apis.min.js File 2.72 KB 0644
redux-routine.js File 23.42 KB 0644
redux-routine.min.js File 8.69 KB 0644
reusable-blocks.js File 20.85 KB 0644
reusable-blocks.min.js File 6.17 KB 0644
rich-text.js File 115.12 KB 0644
rich-text.min.js File 29.11 KB 0644
router.js File 26.28 KB 0644
router.min.js File 4.29 KB 0644
server-side-render.js File 14.61 KB 0644
server-side-render.min.js File 4.28 KB 0644
shortcode.js File 14.92 KB 0644
shortcode.min.js File 2.83 KB 0644
style-engine.js File 37.54 KB 0644
style-engine.min.js File 5.79 KB 0644
token-list.js File 6.44 KB 0644
token-list.min.js File 1.23 KB 0644
undo-manager.js File 8.22 KB 0644
undo-manager.min.js File 1.64 KB 0644
url.js File 33.48 KB 0644
url.min.js File 8.03 KB 0644
viewport.js File 10.45 KB 0644
viewport.min.js File 1.82 KB 0644
warning.js File 2.46 KB 0644
warning.min.js File 311 B 0644
widgets.js File 53.29 KB 0644
widgets.min.js File 19.67 KB 0644
wordcount.js File 14.63 KB 0644
wordcount.min.js File 2.42 KB 0644