Server : Apache System : Linux 122.228.205.92.host.secureserver.net 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64 User : ondostategov ( 1002) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/ondostategov/public_html/wp-includes/js/dist/ |
/*! This file is auto-generated */
(()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})},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,{initializeCommandPalette:()=>E,privateApis:()=>A});const o=window.ReactJSXRuntime,a=window.wp.element,s=window.wp.router,n=window.wp.commands,i=window.wp.i18n,r=window.wp.primitives;var c=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});const l=window.wp.coreData,d=window.wp.data,p=()=>function(){const e=(0,d.useSelect)((e=>e(l.store).getEntityRecord("root","__unstableBase")?.home),[]);return{isLoading:!1,commands:(0,a.useMemo)((()=>e?[{name:"core/view-site",label:(0,i.__)("View site"),icon:c,callback:({close:t})=>{t(),window.open(e,"_blank")}}]:[]),[e])}};function m(e){const t=(0,a.useMemo)((()=>(e??[]).map((e=>{const t=(0,i.sprintf)((0,i.__)("Go to: %s"),e.label);return{name:e.name,label:t,searchLabel:t,callback:({close:t})=>{document.location=e.url,t()}}}))),[e]);(0,n.useCommands)(t),(0,n.useCommandLoader)({name:"core/view-site",hook:p()})}var u=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})}),h=(0,o.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o.jsx)(r.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,o.jsx)(r.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),w=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(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"})}),g=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(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"})}),v=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})}),_=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})}),b=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(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-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 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"})}),y=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})});const x=window.wp.url,k=window.wp.compose,f=window.wp.htmlEntities,S=window.wp.privateApis,{lock:L,unlock:C}=(0,S.__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/core-commands");const{useHistory:T}=C(s.privateApis),j={post:u,page:h,wp_template:w,wp_template_part:g};const M=e=>function({search:t}){const o=T(),{isBlockBasedTheme:s,canCreateTemplate:n}=(0,d.useSelect)((e=>({isBlockBasedTheme:e(l.store).getCurrentTheme()?.is_block_theme,canCreateTemplate:e(l.store).canUser("create",{kind:"postType",name:"wp_template"})})),[]),r=function(e){const[t,o]=(0,a.useState)(""),s=(0,k.useDebounce)(o,250);return(0,a.useEffect)((()=>(s(e),()=>s.cancel())),[s,e]),t}(t),{records:c,isLoading:p}=(0,d.useSelect)((t=>{if(!r)return{isLoading:!1};const o={search:r,per_page:10,orderby:"relevance",status:["publish","future","draft","pending","private"]};return{records:t(l.store).getEntityRecords("postType",e,o),isLoading:!t(l.store).hasFinishedResolution("getEntityRecords",["postType",e,o])}}),[r]);return{commands:(0,a.useMemo)((()=>(c??[]).map((t=>{const a={name:e+"-"+t.id,searchLabel:t.title?.rendered+" "+t.id,label:t.title?.rendered?(0,f.decodeEntities)(t.title?.rendered):(0,i.__)("(no title)"),icon:j[e]};if(!n||"post"===e||"page"===e&&!s)return{...a,callback:({close:e})=>{const o={post:t.id,action:"edit"},a=(0,x.addQueryArgs)("post.php",o);document.location=a,e()}};const r=(0,x.getPath)(window.location.href)?.includes("site-editor.php");return{...a,callback:({close:a})=>{r?o.navigate(`/${e}/${t.id}?canvas=edit`):document.location=(0,x.addQueryArgs)("site-editor.php",{p:`/${e}/${t.id}`,canvas:"edit"}),a()}}}))),[n,c,s,o]),isLoading:p}},P=e=>function({search:t}){const o=T(),{isBlockBasedTheme:s,canCreateTemplate:n}=(0,d.useSelect)((t=>({isBlockBasedTheme:t(l.store).getCurrentTheme()?.is_block_theme,canCreateTemplate:t(l.store).canUser("create",{kind:"postType",name:e})})),[]),{records:r,isLoading:c}=(0,d.useSelect)((t=>{const{getEntityRecords:o}=t(l.store),a={per_page:-1};return{records:o("postType",e,a),isLoading:!t(l.store).hasFinishedResolution("getEntityRecords",["postType",e,a])}}),[]),p=(0,a.useMemo)((()=>function(e=[],t=""){if(!Array.isArray(e)||!e.length)return[];if(!t)return e;const o=[],a=[];for(let s=0;s<e.length;s++){const n=e[s];n?.title?.raw?.toLowerCase()?.includes(t?.toLowerCase())?o.push(n):a.push(n)}return o.concat(a)}(r,t).slice(0,10)),[r,t]);return{commands:(0,a.useMemo)((()=>{if(!n||!s&&"wp_template_part"===!e)return[];const t=(0,x.getPath)(window.location.href)?.includes("site-editor.php"),a=[];return a.push(...p.map((a=>({name:e+"-"+a.id,searchLabel:a.title?.rendered+" "+a.id,label:a.title?.rendered?a.title?.rendered:(0,i.__)("(no title)"),icon:j[e],callback:({close:s})=>{t?o.navigate(`/${e}/${a.id}?canvas=edit`):document.location=(0,x.addQueryArgs)("site-editor.php",{p:`/${e}/${a.id}`,canvas:"edit"}),s()}})))),p?.length>0&&"wp_template_part"===e&&a.push({name:"core/edit-site/open-template-parts",label:(0,i.__)("Go to: Template parts"),icon:g,callback:({close:e})=>{t?o.navigate("/pattern?postType=wp_template_part&categoryId=all-parts"):document.location=(0,x.addQueryArgs)("site-editor.php",{p:"/pattern",postType:"wp_template_part",categoryId:"all-parts"}),e()}}),a}),[n,s,p,o]),isLoading:c}},V=()=>function(){const e=T(),t=(0,x.getPath)(window.location.href)?.includes("site-editor.php"),{isBlockBasedTheme:o,canCreateTemplate:s,canCreatePatterns:n}=(0,d.useSelect)((e=>({isBlockBasedTheme:e(l.store).getCurrentTheme()?.is_block_theme,canCreateTemplate:e(l.store).canUser("create",{kind:"postType",name:"wp_template"}),canCreatePatterns:e(l.store).canUser("create",{kind:"postType",name:"wp_block"})})),[]);return{commands:(0,a.useMemo)((()=>{const a=[];return s&&o&&(a.push({name:"core/edit-site/open-styles",label:(0,i.__)("Go to: Styles"),icon:v,callback:({close:o})=>{t?e.navigate("/styles"):document.location=(0,x.addQueryArgs)("site-editor.php",{p:"/styles"}),o()}}),a.push({name:"core/edit-site/open-navigation",label:(0,i.__)("Go to: Navigation"),icon:_,callback:({close:o})=>{t?e.navigate("/navigation"):document.location=(0,x.addQueryArgs)("site-editor.php",{p:"/navigation"}),o()}}),a.push({name:"core/edit-site/open-templates",label:(0,i.__)("Go to: Templates"),icon:w,callback:({close:o})=>{t?e.navigate("/template"):document.location=(0,x.addQueryArgs)("site-editor.php",{p:"/template"}),o()}})),n&&a.push({name:"core/edit-site/open-patterns",label:(0,i.__)("Go to: Patterns"),icon:b,callback:({close:o})=>{s?(t?e.navigate("/pattern"):document.location=(0,x.addQueryArgs)("site-editor.php",{p:"/pattern"}),o()):document.location.href="edit.php?post_type=wp_block"}}),a}),[e,t,s,n,o]),isLoading:!1}},B=()=>function(){const e=T(),t=(0,x.getPath)(window.location.href)?.includes("site-editor.php"),{canEditCSS:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t,__experimentalGetCurrentGlobalStylesId:o}=e(l.store),a=o(),s=a?t("root","globalStyles",a):void 0;return{canEditCSS:!!s?._links?.["wp:action-edit-css"]}}),[]);return{isLoading:!1,commands:(0,a.useMemo)((()=>o?[{name:"core/open-styles-css",label:(0,i.__)("Open custom CSS"),icon:y,callback:({close:o})=>{o(),t?e.navigate("/styles?section=/css"):document.location=(0,x.addQueryArgs)("site-editor.php",{p:"/styles",section:"/css"})}}]:[]),[e,o,t])}};function z(e){(0,n.useCommandLoader)({name:"core/edit-site/navigate-pages",hook:M("page"),disabled:e}),(0,n.useCommandLoader)({name:"core/edit-site/navigate-posts",hook:M("post"),disabled:e}),(0,n.useCommandLoader)({name:"core/edit-site/navigate-templates",hook:P("wp_template"),disabled:e}),(0,n.useCommandLoader)({name:"core/edit-site/navigate-template-parts",hook:P("wp_template_part"),disabled:e}),(0,n.useCommandLoader)({name:"core/edit-site/basic-navigation",hook:V(),context:"site-editor",disabled:e}),(0,n.useCommandLoader)({name:"core/edit-site/global-styles-css",hook:B(),disabled:e})}const A={};L(A,{useCommands:function(){m(),z()}});const{RouterProvider:G}=C(s.privateApis);function R({settings:e}){const{menu_commands:t,is_network_admin:a}=e;return m(t),z(a),(0,o.jsx)(G,{pathArg:"p",children:(0,o.jsx)(n.CommandMenu,{})})}function E(e){const t=document.createElement("div");document.body.appendChild(t),(0,a.createRoot)(t).render((0,o.jsx)(a.StrictMode,{children:(0,o.jsx)(R,{settings:e})}))}(window.wp=window.wp||{}).coreCommands=t})();