2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
/*! This file is auto-generated */
|
|
(()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[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,{privateApis:()=>K,store:()=>v});var n={};e.r(n),e.d(n,{convertSyncedPatternToStatic:()=>y,createPattern:()=>_,createPatternFromFile:()=>g,setEditingPattern:()=>f});var a={};e.r(a),e.d(a,{isEditingPattern:()=>b});const r=window.wp.data;const o=(0,r.combineReducers)({isEditingPattern:function(e={},t){return"SET_EDITING_PATTERN"===t?.type?{...e,[t.clientId]:t.isEditing}:e}}),s=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"]},m="core/pattern-overrides",_=(e,t,n,a)=>async({registry:r})=>{const o=t===d.unsynced?{wp_pattern_sync_status:t}:void 0,s={title:e,content:n,status:"publish",meta:o,wp_pattern_category:a};return await r.dispatch(i.store).saveEntityRecord("postType","wp_block",s)},g=(e,t)=>async({dispatch:n})=>{const a=await e.text();let r;try{r=JSON.parse(a)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==r.__file||!r.title||!r.content||"string"!=typeof r.title||"string"!=typeof r.content||r.syncStatus&&"string"!=typeof r.syncStatus)throw new Error("Invalid pattern JSON file");return await n.createPattern(r.title,r.syncStatus,r.content,t)},y=e=>({registry:t})=>{const n=t.select(c.store).getBlock(e),a=n.attributes?.content;const r=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,a[n.name]))for(const[e,r]of Object.entries(a[n.name]))(0,s.getBlockType)(t.name)?.attributes[e]&&(t.attributes[e]=r);return(0,s.cloneBlock)(t,{metadata:n&&Object.keys(n).length>0?n:void 0},e(t.innerBlocks))}))}(r))};function f(e,t){return{type:"SET_EDITING_PATTERN",clientId:e,isEditing:t}}function b(e,t){return e.isEditingPattern[t]}const E=window.wp.privateApis,{lock:w,unlock:S}=(0,E.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/patterns"),C={reducer:o},v=(0,r.createReduxStore)("core/patterns",{...C});(0,r.register)(v),S(v).registerPrivateActions(n),S(v).registerPrivateSelectors(a);const h=window.React,k=window.wp.components,x=window.wp.element,P=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{BlockQuickNavigation:T}=S(c.privateApis);const D=window.wp.notices,I=window.wp.compose,R=window.wp.htmlEntities,N=e=>(0,R.decodeEntities)(e),M="wp_pattern_category";function O({categoryTerms:e,onChange:t,categoryMap:n}){const[a,r]=(0,x.useState)(""),o=(0,I.useDebounce)(r,500),s=(0,x.useMemo)((()=>Array.from(n.values()).map((e=>N(e.label))).filter((e=>""===a||e.toLowerCase().includes(a.toLowerCase()))).sort(((e,t)=>e.localeCompare(t)))),[a,n]);return(0,h.createElement)(k.FormTokenField,{className:"patterns-menu-items__convert-modal-categories",value:e,suggestions:s,onChange:function(e){const n=e.reduce(((e,t)=>(e.some((e=>e.toLowerCase()===t.toLowerCase()))||e.push(t),e)),[]);t(n)},onInputChange:o,label:(0,P.__)("Categories"),tokenizeOnBlur:!0,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}function A(){const{saveEntityRecord:e,invalidateResolution:t}=(0,r.useDispatch)(i.store),{corePatternCategories:n,userPatternCategories:a}=(0,r.useSelect)((e=>{const{getUserPatternCategories:t,getBlockPatternCategories:n}=e(i.store);return{corePatternCategories:n(),userPatternCategories:t()}}),[]),o=(0,x.useMemo)((()=>{const e=new Map;return a.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}),[a,n]);return{categoryMap:o,findOrCreateTerm:async function(n){try{const a=o.get(n.toLowerCase());if(a?.id)return a.id;const r=a?{name:a.label,slug:a.name}:{name:n},s=await e("taxonomy",M,r,{throwOnError:!0});return t("getUserPatternCategories"),s.id}catch(e){if("term_exists"!==e.code)throw e;return e.data.term_id}}}}function z({className:e="patterns-menu-items__convert-modal",modalTitle:t=(0,P.__)("Create pattern"),...n}){return(0,h.createElement)(k.Modal,{title:t,onRequestClose:n.onClose,overlayClassName:e},(0,h.createElement)(L,{...n}))}function L({confirmLabel:e=(0,P.__)("Create"),defaultCategories:t=[],content:n,onClose:a,onError:o,onSuccess:s,defaultSyncType:i=d.full,defaultTitle:c=""}){const[l,p]=(0,x.useState)(i),[m,_]=(0,x.useState)(t),[g,y]=(0,x.useState)(c),[f,b]=(0,x.useState)(!1),{createPattern:E}=S((0,r.useDispatch)(v)),{createErrorNotice:w}=(0,r.useDispatch)(D.store),{categoryMap:C,findOrCreateTerm:B}=A();return(0,h.createElement)("form",{onSubmit:e=>{e.preventDefault(),async function(e,t){if(g&&!f)try{b(!0);const a=await Promise.all(m.map((e=>B(e)))),r=await E(e,t,"function"==typeof n?n():n,a);s({pattern:r,categoryId:u})}catch(e){w(e.message,{type:"snackbar",id:"pattern-create"}),o?.()}finally{b(!1),_([]),y("")}}(g,l)}},(0,h.createElement)(k.__experimentalVStack,{spacing:"5"},(0,h.createElement)(k.TextControl,{label:(0,P.__)("Name"),value:g,onChange:y,placeholder:(0,P.__)("My pattern"),className:"patterns-create-modal__name-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,h.createElement)(O,{categoryTerms:m,onChange:_,categoryMap:C}),(0,h.createElement)(k.ToggleControl,{label:(0,P._x)("Synced","Option that makes an individual pattern synchronized"),help:(0,P.__)("Sync this pattern across multiple locations."),checked:l===d.full,onChange:()=>{p(l===d.full?d.unsynced:d.full)}}),(0,h.createElement)(k.__experimentalHStack,{justify:"right"},(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{a(),y("")}},(0,P.__)("Cancel")),(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!g||f,isBusy:f},e))))}function U(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 j({pattern:e,onSuccess:t}){const{createSuccessNotice:n}=(0,r.useDispatch)(D.store),a=(0,r.useSelect)((e=>{const{getUserPatternCategories:t,getBlockPatternCategories:n}=e(i.store);return{core:n(),user:t()}}));return e?{content:e.content,defaultCategories:U(e,a),defaultSyncType:e.type!==l.user?d.unsynced:e.wp_pattern_sync_status||d.full,defaultTitle:(0,P.sprintf)((0,P.__)("%s (Copy)"),"string"==typeof e.title?e.title:e.title.raw),onSuccess:({pattern:e})=>{n((0,P.sprintf)((0,P.__)('"%s" duplicated.'),e.title.raw),{type:"snackbar",id:"patterns-create"}),t?.({pattern:e})}}:null}const F=window.wp.primitives,H=(0,h.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(F.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:a}=(0,r.useDispatch)(D.store),{replaceBlocks:o}=(0,r.useDispatch)(c.store),{setEditingPattern:l}=S((0,r.useDispatch)(v)),[u,p]=(0,x.useState)(!1),m=(0,r.useSelect)((n=>{var a;const{canUser:r}=n(i.store),{getBlocksByClientId:o,canInsertBlockType:l,getBlockRootClientId:u}=n(c.store),d=t||(e.length>0?u(e[0]):void 0),p=null!==(a=o(e))&&void 0!==a?a:[];return!(1===p.length&&p[0]&&(0,s.isReusableBlock)(p[0])&&!!n(i.store).getEntityRecord("postType","wp_block",p[0].attributes.ref))&&l("core/block",d)&&p.every((e=>!!e&&e.isValid&&(0,s.hasBlockSupport)(e.name,"reusable",!0)))&&!!r("create","blocks")}),[e,t]),{getBlocksByClientId:_}=(0,r.useSelect)(c.store),g=(0,x.useCallback)((()=>(0,s.serialize)(_(e))),[_,e]);if(!m)return null;return(0,h.createElement)(h.Fragment,null,(0,h.createElement)(k.MenuItem,{icon:H,onClick:()=>p(!0),"aria-expanded":u,"aria-haspopup":"dialog"},(0,P.__)("Create pattern")),u&&(0,h.createElement)(z,{content:g,onSuccess:t=>{(({pattern:t})=>{if(t.wp_pattern_sync_status!==d.unsynced){const a=(0,s.createBlock)("core/block",{ref:t.id});o(e,a),l(a.clientId,!0),n()}a(t.wp_pattern_sync_status===d.unsynced?(0,P.sprintf)((0,P.__)("Unsynced pattern created: %s"),t.title.raw):(0,P.sprintf)((0,P.__)("Synced pattern created: %s"),t.title.raw),{type:"snackbar",id:"convert-to-pattern-success"}),p(!1)})(t)},onError:()=>{p(!1)},onClose:()=>{p(!1)}}))}const q=window.wp.url;const G=function({clientId:e}){const{canRemove:t,isVisible:n,managePatternsUrl:a}=(0,r.useSelect)((t=>{const{getBlock:n,canRemoveBlock:a,getBlockCount:r}=t(c.store),{canUser:o}=t(i.store),l=n(e);return{canRemove:a(e),isVisible:!!l&&(0,s.isReusableBlock)(l)&&!!o("update","blocks",l.attributes.ref),innerBlockCount:r(e),managePatternsUrl:o("create","templates")?(0,q.addQueryArgs)("site-editor.php",{path:"/patterns"}):(0,q.addQueryArgs)("edit.php",{post_type:"wp_block"})}}),[e]),{convertSyncedPatternToStatic:o}=S((0,r.useDispatch)(v));return n?(0,h.createElement)(h.Fragment,null,t&&(0,h.createElement)(k.MenuItem,{onClick:()=>o(e)},(0,P.__)("Detach")),(0,h.createElement)(k.MenuItem,{href:a},(0,P.__)("Manage patterns"))):null};const Y=window.wp.a11y;function J({placeholder:e,initialName:t="",onClose:n,onSave:a}){const[r,o]=(0,x.useState)(t),s=(0,x.useId)(),i=!!r.trim();return(0,h.createElement)(k.Modal,{title:(0,P.__)("Enable overrides"),onRequestClose:n,focusOnMount:"firstContentElement",aria:{describedby:s},size:"small"},(0,h.createElement)("form",{onSubmit:e=>{e.preventDefault(),i&&(()=>{if(r!==t){const e=(0,P.sprintf)((0,P.__)('Block name changed to: "%s".'),r);(0,Y.speak)(e,"assertive")}a(r),n()})()}},(0,h.createElement)(k.__experimentalVStack,{spacing:"6"},(0,h.createElement)(k.__experimentalText,{id:s},(0,P.__)("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,h.createElement)(k.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:r,label:(0,P.__)("Name"),help:(0,P.__)('For example, if you are creating a recipe pattern, you use "Recipe Title", "Recipe Description", etc.'),placeholder:e,onChange:o}),(0,h.createElement)(k.__experimentalHStack,{justify:"right"},(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n},(0,P.__)("Cancel")),(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,"aria-disabled":!i,variant:"primary",type:"submit"},(0,P.__)("Enable"))))))}function Q({onClose:e,onSave:t}){const n=(0,x.useId)();return(0,h.createElement)(k.Modal,{title:(0,P.__)("Disable overrides"),onRequestClose:e,aria:{describedby:n},size:"small"},(0,h.createElement)("form",{onSubmit:n=>{n.preventDefault(),t(),e()}},(0,h.createElement)(k.__experimentalVStack,{spacing:"6"},(0,h.createElement)(k.__experimentalText,{id:n},(0,P.__)("Are you sure you want to disable overrides? Disabling overrides will revert all applied overrides for this block throughout instances of this pattern.")),(0,h.createElement)(k.__experimentalHStack,{justify:"right"},(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e},(0,P.__)("Cancel")),(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,P.__)("Disable"))))))}const W="content";const K={};w(K,{OverridesPanel:function(){const e=(0,r.useSelect)((e=>e(c.store).getClientIdsWithDescendants()),[]),{getBlock:t}=(0,r.useSelect)(c.store),n=(0,x.useMemo)((()=>e.filter((e=>B(t(e))))),[e,t]);return n?.length?(0,h.createElement)(k.PanelBody,{title:(0,P.__)("Overrides")},(0,h.createElement)(T,{clientIds:n})):null},CreatePatternModal:z,CreatePatternModalContents:L,DuplicatePatternModal:function({pattern:e,onClose:t,onSuccess:n}){const a=j({pattern:e,onSuccess:n});return e?(0,h.createElement)(z,{modalTitle:(0,P.__)("Duplicate pattern"),confirmLabel:(0,P.__)("Duplicate"),onClose:t,onError:t,...a}):null},isOverridableBlock:B,useDuplicatePatternProps:j,RenamePatternModal:function({onClose:e,onError:t,onSuccess:n,pattern:a,...o}){const s=(0,R.decodeEntities)(a.title),[c,l]=(0,x.useState)(s),[u,d]=(0,x.useState)(!1),{editEntityRecord:p,__experimentalSaveSpecifiedEntityEdits:m}=(0,r.useDispatch)(i.store),{createSuccessNotice:_,createErrorNotice:g}=(0,r.useDispatch)(D.store);return(0,h.createElement)(k.Modal,{title:(0,P.__)("Rename"),...o,onRequestClose:e},(0,h.createElement)("form",{onSubmit:async r=>{if(r.preventDefault(),c&&c!==a.title&&!u)try{await p("postType",a.type,a.id,{title:c}),d(!0),l(""),e?.();const t=await m("postType",a.type,a.id,["title"],{throwOnError:!0});n?.(t),_((0,P.__)("Pattern renamed"),{type:"snackbar",id:"pattern-update"})}catch(e){t?.();const n=e.message&&"unknown_error"!==e.code?e.message:(0,P.__)("An error occurred while renaming the pattern.");g(n,{type:"snackbar",id:"pattern-update"})}finally{d(!1),l("")}}},(0,h.createElement)(k.__experimentalVStack,{spacing:"5"},(0,h.createElement)(k.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,P.__)("Name"),value:c,onChange:l,required:!0}),(0,h.createElement)(k.__experimentalHStack,{justify:"right"},(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{e?.(),l("")}},(0,P.__)("Cancel")),(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit"},(0,P.__)("Save"))))))},PatternsMenuItems:function({rootClientId:e}){return(0,h.createElement)(c.BlockSettingsMenuControls,null,(({selectedClientIds:t,onClose:n})=>(0,h.createElement)(h.Fragment,null,(0,h.createElement)(V,{clientIds:t,rootClientId:e,closeBlockSettingsMenu:n}),1===t.length&&(0,h.createElement)(G,{clientId:t[0]}))))},RenamePatternCategoryModal:function({category:e,existingCategories:t,onClose:n,onError:a,onSuccess:o,...s}){const c=(0,x.useId)(),l=(0,x.useRef)(),[u,d]=(0,x.useState)((0,R.decodeEntities)(e.name)),[p,m]=(0,x.useState)(!1),[_,g]=(0,x.useState)(!1),y=_?`patterns-rename-pattern-category-modal__validation-message-${c}`:void 0,{saveEntityRecord:f,invalidateResolution:b}=(0,r.useDispatch)(i.store),{createErrorNotice:E,createSuccessNotice:w}=(0,r.useDispatch)(D.store),S=()=>{n(),d("")};return(0,h.createElement)(k.Modal,{title:(0,P.__)("Rename"),onRequestClose:S,...s},(0,h.createElement)("form",{onSubmit:async r=>{if(r.preventDefault(),!p){if(!u||u===e.name){const e=(0,P.__)("Please enter a new name for this category.");return(0,Y.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,P.__)("This category already exists. Please use a different name.");return(0,Y.speak)(e,"assertive"),g(e),void l.current?.focus()}try{m(!0);const t=await f("taxonomy",M,{id:e.id,slug:e.slug,name:u});b("getUserPatternCategories"),o?.(t),n(),w((0,P.__)("Pattern category renamed."),{type:"snackbar",id:"pattern-category-update"})}catch(e){a?.(),E(e.message,{type:"snackbar",id:"pattern-category-update"})}finally{m(!1),d("")}}}},(0,h.createElement)(k.__experimentalVStack,{spacing:"5"},(0,h.createElement)(k.__experimentalVStack,{spacing:"2"},(0,h.createElement)(k.TextControl,{ref:l,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,P.__)("Name"),value:u,onChange:e=>{_&&g(void 0),d(e)},"aria-describedby":y,required:!0}),_&&(0,h.createElement)("span",{className:"patterns-rename-pattern-category-modal__validation-message",id:y},_)),(0,h.createElement)(k.__experimentalHStack,{justify:"right"},(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:S},(0,P.__)("Cancel")),(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit","aria-disabled":!u||u===e.name||p,isBusy:p},(0,P.__)("Save"))))))},PatternOverridesControls:function({attributes:e,name:t,setAttributes:n}){const a=(0,x.useId)(),[r,o]=(0,x.useState)(!1),[s,i]=(0,x.useState)(!1),l=p[t],u=l.map((t=>e.metadata?.bindings?.[t]?.source));function d(t,a){const r=e?.metadata?.bindings,o=t?function(e,t){const n={...e};for(const a of t)e?.[a]||(n[a]={source:m});return n}(r,l):function(e,t){let n={};for(const a of t)e?.[a]?.source!==m&&void 0!==e?.[a]?.source&&(n[a]=e[a]);return Object.keys(n).length||(n=void 0),n}(r,l),s={...e.metadata,bindings:o};a&&(s.name=a),n({metadata:s})}if(u.every((e=>e&&"core/pattern-overrides"!==e)))return null;const _=!!e.metadata?.name&&u.some((e=>e===m));return(0,h.createElement)(h.Fragment,null,(0,h.createElement)(c.InspectorControls,{group:"advanced"},(0,h.createElement)(k.BaseControl,{id:a,label:(0,P.__)("Overrides"),help:(0,P.__)("Allow changes to this block throughout instances of this pattern.")},(0,h.createElement)(k.Button,{__next40pxDefaultSize:!0,className:"pattern-overrides-control__allow-overrides-button",variant:"secondary","aria-haspopup":"dialog",onClick:()=>{_?i(!0):o(!0)}},_?(0,P.__)("Disable overrides"):(0,P.__)("Enable overrides")))),r&&(0,h.createElement)(J,{initialName:e.metadata?.name,onClose:()=>o(!1),onSave:e=>{d(!0,e)}}),s&&(0,h.createElement)(Q,{onClose:()=>i(!1),onSave:()=>d(!1)}))},ResetOverridesControl:function(e){const t=e.attributes.metadata?.name,n=(0,r.useRegistry)(),a=(0,r.useSelect)((n=>{if(!t)return;const{getBlockAttributes:a,getBlockParentsByBlockName:r}=n(c.store),[o]=r(e.clientId,"core/block",!0);if(!o)return;const s=a(o)[W];return s?s.hasOwnProperty(t):void 0}),[e.clientId,t]);return(0,h.createElement)(c.BlockControls,{group:"other"},(0,h.createElement)(k.ToolbarGroup,null,(0,h.createElement)(k.ToolbarButton,{onClick:function(){const{getBlockAttributes:a,getBlockParentsByBlockName:r}=n.select(c.store),[o]=r(e.clientId,"core/block",!0);if(!o)return;const s=a(o)[W];if(!s.hasOwnProperty(t))return;const{updateBlockAttributes:i,__unstableMarkLastChangeAsPersistent:l}=n.dispatch(c.store);l();let u={...s};delete u[t],Object.keys(u).length||(u=void 0),i(o,{[W]:u})},disabled:!a,__experimentalIsFocusable:!0},(0,P.__)("Reset"))))},useAddPatternCategory:A,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})(); |