initial
This commit is contained in:
commit
9883323161
17470 files changed
+4470592
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '4666106116db64c0');
|
||||
+1
@@ -0,0 +1 @@
|
||||
var e={718(e,t,n){function r(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}n.d(t,{A:()=>r})},303(e,t,n){n.d(t,{A:()=>o});var r="";function o(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}},593(e,t,n){n.d(t,{L:()=>a});var r=n(718),o=n(303);function a(e,t){(0,r.A)(),e=(0,o.A)(e);const n=document.getElementById("a11y-speak-intro-text"),a=document.getElementById("a11y-speak-assertive"),s=document.getElementById("a11y-speak-polite");a&&"assertive"===t?a.textContent=e:s&&(s.textContent=e),n&&n.removeAttribute("hidden")}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};n.d(r,{L:()=>o.L,m:()=>a});var o=n(593),a=()=>{};const s=r.m,d=r.L;export{s as setup,d as speak};
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-theme', 'wp-url'), 'module_dependencies' => array(array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/lazy-editor', 'import' => 'dynamic'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '188faf6c64fdd1b4');
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
/*! For license information please see index.js.LICENSE.txt */
|
||||
var e,t,n,o,r,i,a,s={1937(e,t,n){var o=n(1594);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useState,a=o.useEffect,s=o.useLayoutEffect,c=o.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),o=i({inst:{value:n,getSnapshot:t}}),r=o[0].inst,d=o[1];return s(function(){r.value=n,r.getSnapshot=t,l(r)&&d({inst:r})},[e,n,t]),a(function(){return l(r)&&d({inst:r}),e(function(){l(r)&&d({inst:r})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:d},9838(e,t,n){var o=n(1594),r=n(2484);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,s=o.useRef,c=o.useEffect,l=o.useMemo,d=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,o,r){var u=s(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=l(function(){function e(e){if(!c){if(c=!0,a=e,e=o(e),void 0!==r&&p.hasValue){var t=p.value;if(r(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=o(e);return void 0!==r&&r(t,n)?(a=e,t):(a=e,s=n)}var a,s,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,o,r]);var f=a(e,u[0],u[1]);return c(function(){p.hasValue=!0,p.value=f},[f]),d(f),f}},2484(e,t,n){e.exports=n(1937)},2566(e,t,n){e.exports=n(9838)},4317(e){e.exports=import("@wordpress/a11y")},5127(e){e.exports=import("@wordpress/lazy-editor")},6954(e){e.exports=import("@wordpress/route")},1594(e){e.exports=React},5206(e){e.exports=ReactDOM},3713(e){e.exports=ReactJSXRuntime},6044(e){e.exports=wp.commands},2214(e){e.exports=wp.components},8894(e){e.exports=wp.compose},9165(e){e.exports=wp.coreData},7562(e){e.exports=wp.data},1283(e){e.exports=wp.editor},1386(e){e.exports=wp.element},5112(e){e.exports=wp.htmlEntities},2470(e){e.exports=wp.i18n},8122(e){e.exports=wp.keyboardShortcuts},7901(e){e.exports=wp.keycodes},9703(e){e.exports=wp.notices},1172(e){e.exports=wp.primitives},2044(e){e.exports=wp.privateApis},1615(e){e.exports=wp.theme},4011(e){e.exports=wp.url},8399(e,t,n){n.d(t,{T:()=>u,c:()=>p});var o=n(1594),r=n(986),i=n(3819),a=n(9207),s=n(5952),c=n(2474),l=n(3713);const d=o.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new r.E,currentIdRef:{current:null},currentContextRef:{current:null}});function u(e){const{children:t,delay:n,timeoutMs:i=0}=e,a=o.useRef(n),s=o.useRef(n),c=o.useRef(null),u=o.useRef(null),p=(0,r.Z)();return(0,l.jsx)(d.Provider,{value:o.useMemo(()=>({hasProvider:!0,delayRef:a,initialDelayRef:s,currentIdRef:c,timeoutMs:i,currentContextRef:u,timeout:p}),[i,p]),children:t})}function p(e,t={open:!1}){const{open:n}=t,r="rootStore"in e?e.rootStore:e,l=r.useState("floatingId"),u=o.useContext(d),{currentIdRef:p,delayRef:f,timeoutMs:g,initialDelayRef:h,currentContextRef:m,hasProvider:v,timeout:b}=u,[y,w]=o.useState(!1);return(0,i.g)(()=>{function e(){w(!1),m.current?.setIsInstantPhase(!1),p.current=null,m.current=null,f.current=h.current}if(p.current&&!n&&p.current===l){if(w(!1),g){const t=l;return b.start(g,()=>{r.select("open")||p.current&&p.current!==t||e()}),()=>{b.clear()}}e()}},[n,l,p,f,g,h,m,b,r]),(0,i.g)(()=>{if(!n)return;const e=m.current,t=p.current;b.clear(),m.current={onOpenChange:r.setOpen,setIsInstantPhase:w},p.current=l,f.current={open:0,close:(0,a.uf)(h.current,"close")},null!==t&&t!==l?(w(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,s.d)(c.dv))):(w(!1),e?.setIsInstantPhase(!1))},[n,l,r,p,f,h,m,b]),(0,i.g)(()=>()=>{m.current=null},[m]),o.useMemo(()=>({hasProvider:v,delayRef:f,isInstantPhase:y}),[v,f,y])}},5507(e,t,n){n.d(t,{CK:()=>g});var o=n(1594),r=n(5206),i=n(1289),a=n(2496),s=n(3819),c=n(9829),l=n(2147),d=n(80),u=n(9516);n(3713);const p=o.createContext(null);const f=(0,d.F)("portal");function g(e={}){const{ref:t,container:n,componentProps:d=l.t0,elementProps:g}=e,h=(0,a.B)(),m=o.useContext(p),v=m?.portalNode,[b,y]=o.useState(null),[w,x]=o.useState(null),_=(0,c.K)(e=>{null!==e&&x(e)}),S=o.useRef(null);(0,s.g)(()=>{if(null===n)return void(S.current&&(S.current=null,x(null),y(null)));if(null==h)return;const e=(n&&((0,i.Ll)(n)?n:n.current))??v??document.body;null!=e?S.current!==e&&(S.current=e,x(null),y(e)):S.current&&(S.current=null,x(null),y(null))},[n,v,h]);const k=(0,u.o)("div",d,{ref:[t,_],props:[{id:h,[f]:""},g]});return{portalNode:w,portalSubtree:b&&k?r.createPortal(k,b):null}}},8800(e,t,n){n.d(t,{K:()=>c});var o=n(171),r=n(6214),i=n(2864),a=n(4296);const s={open:(0,o.M)(e=>e.open),transitionStatus:(0,o.M)(e=>e.transitionStatus),domReferenceElement:(0,o.M)(e=>e.domReferenceElement),referenceElement:(0,o.M)(e=>e.positionReference??e.referenceElement),floatingElement:(0,o.M)(e=>e.floatingElement),floatingILine truncated
|
||||
__("%1$s ‹ %2$s — WordPress"),e,t);document.title=n,e&&(0,c.speak)(e,"assertive")}},[o,d,e])}o()}catch(m){o(m)}})},9415(e,t,n){n.a(e,async(e,o)=>{try{n.d(t,{A:()=>l});var r=n(1386),i=n(7631),a=n(3713),s=e([i]),c=s.then?(await s)():s;function l({canvas:e,routeContentModule:t}){const[n,o]=(0,r.useState)(null);return(0,r.useEffect)(()=>{null===e&&t?import(t).then(e=>{o(()=>e.canvas)}).catch(e=>{console.error("Failed to load custom canvas:",e)}):o(null)},[e,t]),void 0===e?null:null===e?n?(0,a.jsx)(n,{}):null:(0,a.jsx)(i.A,{canvas:e})}i=c[0],o()}catch(d){o(d)}})},6221(e,t,n){n.d(t,{A:()=>u});var o=n(2214),r=n(6808),i=n(8499),a=n(8894),s=n(2470),c=n(8854),l=n(3713);const __=s.__;if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='c51646152c']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","c51646152c"),e.appendChild(document.createTextNode(".boot-canvas-back-button{height:64px;left:0;position:absolute;top:0;width:64px;z-index:100}.boot-canvas-back-button__container{height:100%;position:relative;width:100%}.boot-canvas-back-button__link.components-button{align-items:center;background:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);border-radius:0;display:inline-flex;height:64px;justify-content:center;padding:0;text-decoration:none;width:64px}@media not (prefers-reduced-motion){.boot-canvas-back-button__link.components-button{transition:outline .1s ease-out}}.boot-canvas-back-button__link.components-button:focus:not(:active){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.boot-canvas-back-button__icon{align-items:center;background-color:#ccc;display:flex;height:64px;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:64px}.boot-canvas-back-button__icon svg{fill:currentColor}.boot-canvas-back-button__icon.has-site-icon{-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px);background-color:hsla(0,0%,100%,.6)}.interface-interface-skeleton__header{margin-top:0!important}")),document.head.appendChild(e)}var d={edit:{opacity:0,scale:.2},hover:{opacity:1,scale:1,clipPath:"inset( 22% round 2px )"}};function u({length:e}){const t=(0,a.useReducedMotion)(),n=window.__experimentalAdminBarInEditor;if(e>1)return null;const u={duration:t?0:.3},p=(0,s.isRTL)()?i.A:r.A;return(0,l.jsxs)(o.__unstableMotion.div,{className:"boot-canvas-back-button",animate:"edit",initial:"edit",whileHover:"hover",whileTap:"tap",transition:u,children:[(0,l.jsx)(o.Button,{className:"boot-canvas-back-button__link",onClick:()=>{window.history.back()},"aria-label":__("Go back"),__next40pxDefaultSize:!0,children:!n&&(0,l.jsx)(c.A,{})}),n?(0,l.jsx)("div",{className:"boot-canvas-back-button__icon",children:(0,l.jsx)(o.Icon,{icon:p})}):(0,l.jsx)(o.__unstableMotion.div,{className:"boot-canvas-back-button__icon",variants:d,children:(0,l.jsx)(o.Icon,{icon:p})})]})}},7631(e,t,n){n.a(e,async(e,o)=>{try{n.d(t,{A:()=>u});var r=n(1386),i=n(2214),a=n(6954),s=n(6221),c=n(3713),l=e([a]),d=l.then?(await l)():l;function u({canvas:e}){const[t,o]=(0,r.useState)(null),l=(0,a.useNavigate)();if((0,r.useEffect)(()=>{Promise.resolve().then(n.bind(n,5127)).then(e=>{o(()=>e.Editor)}).catch(e=>{console.error("Failed to load lazy editor:",e)})},[]),!t)return(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",padding:"2rem"},children:(0,c.jsx)(i.Spinner,{})});const d=e.isPreview?void 0:({length:e})=>(0,c.jsx)(s.A,{length:e});return(0,c.jsxs)("div",{style:{height:"100%",position:"relative"},children:[(0,c.jsx)("div",{style:{height:"100%"},inert:e.isPreview?"true":void 0,children:(0,c.jsx)(t,{postType:e.postType,postId:e.postId,settings:{isPreviewMode:e.isPreview,styles:e.isPreview?[{css:"body{min-height:100vh;}"}]:[]},backButton:d})}),e.isPreview&&e.editLink&&(0,c.jsx)("div",{onClick:()=>l({to:e.editLink}),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),l({to:e.editLink}))},style:{position:"absolute",inset:0,cursor:"pointer",zIndex:1},role:"button",tabIndex:0,"aria-label":"Click to edit"})]})}a=d[0],o()}catch(p){o(p)}})},5279(e,t,n){n.d(t,{A:()=>d});var o=n(3022),r=n(2214),i=n(2470),a=n(4358),s=n(2853),c=n(2641),l=n(3713);function d({className:e,id:t,icon:n,shouldShowPlaceholder:d=!0,children:u,onNavigate:p}){return(0,l.jsx)(r.__experimentalItem,{className:(0,o.A)("boot-navigation-item",e),onClick:e=>{e.preventDefault(),p({id:t,direction:"forward"})},children:(0,l.jsxs)(r.__experimentalHStack,{justify:"flex-start",spacing:2,style:{flexGrow:"1"},children:[(0,c.q)(n,d),(0,l.jsx)(r.FlexBlock,{children:u}),(0,l.jsx)(r.Icon,{icon:(0,i.isRTL)()?a.A:s.A})]})})}},5485(e,t,n){n.a(e,async(e,o)=>{try{n.d(t,{A:()=>m});var r=n(3022),i=n(2214),a=n(9109),s=n(8894),c=n(7562),l=n(3359),d=n(5322),u=n(2641),p=n(3713Line truncated
|
||||
// translators: %d: number of unsaved changes (number).
|
||||
_n("Review %d change…","Review %d changes…",o),o),k=c.displayShortcut.primary("s");return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(p.b,{children:[(0,m.jsx)(f.l,{render:(0,m.jsx)(u.Button,{variant:"primary",size:"compact",onClick:()=>t(!0),onBlur:function(){v&&b(!1)},disabled:_,accessibleWhenDisabled:!0,isBusy:n,"aria-keyshortcuts":c.rawShortcut.primary("s"),className:"boot-save-button",icon:x?l.A:void 0,children:S})}),(0,m.jsxs)(g.z,{children:[y&&(0,m.jsx)("span",{children:S}),(0,m.jsx)("span",{className:"boot-save-button__shortcut",children:k})]})]}),e&&(0,m.jsx)(u.Modal,{title:__("Review changes"),onRequestClose:()=>t(!1),size:"small",children:(0,m.jsx)(d.EntitiesSavedStates,{close:()=>t(!1),variant:"inline"})})]})}o()}catch(y){o(y)}})},2369(e,t,n){n.d(t,{A:()=>l});var o=n(1386),r=n(2214),i=n(1283),a=n(2470),s=n(429),c=n(3713);const __=a.__;function l(){const[e,t]=(0,o.useState)(!1);return(0,s.A)({openSavePanel:()=>t(!0)}),!!e&&(0,c.jsx)(r.Modal,{className:"edit-site-save-panel__modal",onRequestClose:()=>t(!1),title:__("Review changes"),size:"small",children:(0,c.jsx)(i.EntitiesSavedStates,{close:()=>t(!1),variant:"inline"})})}},429(e,t,n){n.d(t,{A:()=>d});var o=n(1386),r=n(8122),i=n(2470),a=n(7562),s=n(9165),c=n(1283);const __=i.__;var l="core/boot/save";function d({openSavePanel:e}){const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=(0,a.useSelect)(s.store),{hasNonPostEntityChanges:i,isPostSavingLocked:d}=(0,a.useSelect)(c.store),{savePost:u}=(0,a.useDispatch)(c.store),{registerShortcut:p,unregisterShortcut:f}=(0,a.useDispatch)(r.store);(0,o.useEffect)(()=>(p({name:l,category:"global",description:__("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),()=>{f(l)}),[p,f]),(0,r.useShortcut)(l,o=>{o.preventDefault();const r=t(),a=!!r.length,s=r.some(e=>n(e.kind,e.name,e.key));a&&!s&&(i()?e():d()||u())})}},9119(e,t,n){n.a(e,async(e,o)=>{try{n.d(t,{A:()=>m});var r=n(2214),i=n(7562),a=n(2470),s=n(7916),c=n(6223),l=n(9424),d=n(8957),u=n(7119),p=n(3359),f=n(3713),g=e([l,d,u]);[l,d,u]=g.then?(await g)():g;const __=a.__;if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='1f27eae1b9']")){const v=document.createElement("style");v.setAttribute("data-wp-hash","1f27eae1b9"),v.appendChild(document.createTextNode(".boot-sidebar__scrollable{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.boot-sidebar__content{contain:content;flex-grow:1;position:relative}.boot-sidebar__footer{padding:16px 8px 8px 16px}.boot-sidebar__back-button{margin:8px 12px}")),document.head.appendChild(v)}function h(){const e=(0,i.useSelect)(e=>e(p.M).getDashboardLink(),[]);return(0,f.jsx)(r.Button,{__next40pxDefaultSize:!0,className:"boot-sidebar__back-button",href:e||"/",icon:(0,a.isRTL)()?c.A:s.A,label:__("Go to the Dashboard"),children:__("Dashboard")})}function m(){const e=window.__experimentalAdminBarInEditor;return(0,f.jsxs)("div",{className:"boot-sidebar__scrollable",children:[e?(0,f.jsx)(h,{}):(0,f.jsx)(l.A,{}),(0,f.jsx)("div",{className:"boot-sidebar__content",children:(0,f.jsx)(d.A,{})}),(0,f.jsx)("div",{className:"boot-sidebar__footer",children:(0,f.jsx)(u.A,{})})]})}o()}catch(b){o(b)}})},9424(e,t,n){n.a(e,async(e,o)=>{try{n.d(t,{A:()=>b});var r=n(7562),i=n(2214),a=n(2470),s=n(9165),c=n(5112),l=n(821),d=n(7901),u=n(6044),p=n(4011),f=n(6593),g=n(3359),h=n(3713),m=e([f]),v=m.then?(await m)():m;f=v[0];const __=a.__;if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='bc60675bd6']")){const w=document.createElement("style");w.setAttribute("data-wp-hash","bc60675bd6"),w.appendChild(document.createTextNode(".boot-site-hub{align-items:center;background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);display:grid;flex-shrink:0;grid-template-columns:60px 1fr auto;padding-right:16px;position:sticky;top:0;z-index:1}.boot-site-hub__actions{flex-shrink:0}.boot-site-hub__title{align-items:center;display:flex;text-decoration:none}.boot-site-hub__title .components-external-link__contents{margin-inline-start:4px;max-width:140px;overflow:hidden;text-decoration:none}.boot-site-hub__title .components-external-link__icon{opacity:0;transition:opacity .1s ease-out}.boot-site-hub__title:hover .components-external-link__icon{opacity:1}@media not (prefers-reduced-motion){.boot-site-hub__title{transition:outline .1s ease-out}}.boot-site-hub__title:focus:not(:active){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.boot-site-hub__title-text{color:var(--wpds-color-fg-content-neutral,#1e1e1e);font-size:13px;font-weight:499}.boot-site-hub__title-text,.boot-site-hub__url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.boot-site-hub__url{color:var(--wpds-color-fg-content-neutral-weak,#707070);font-size:12px}")),documeLine truncated
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-private-apis'), 'version' => '41dc781fd8708207');
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see index.js.LICENSE.txt */
|
||||
var t,e,o={5265(t,e,o){o.d(e,{A:()=>r});const r=function(t,e){}},1937(t,e,o){var r=o(1594);var n="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=r.useState,i=r.useEffect,a=r.useLayoutEffect,c=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var o=e();return!n(t,o)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var o=e(),r=s({inst:{value:o,getSnapshot:e}}),n=r[0].inst,l=r[1];return a(function(){n.value=o,n.getSnapshot=e,u(n)&&l({inst:n})},[t,o,e]),i(function(){return u(n)&&l({inst:n}),t(function(){u(n)&&l({inst:n})})},[t]),c(o),o};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},9838(t,e,o){var r=o(1594),n=o(2484);var s="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=n.useSyncExternalStore,a=r.useRef,c=r.useEffect,u=r.useMemo,l=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,o,r,n){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=u(function(){function t(t){if(!c){if(c=!0,i=t,t=r(t),void 0!==n&&h.hasValue){var e=h.value;if(n(e,t))return a=e}return a=t}if(e=a,s(i,t))return e;var o=r(t);return void 0!==n&&n(e,o)?(i=t,e):(i=t,a=o)}var i,a,c=!1,u=void 0===o?null:o;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]},[e,o,r,n]);var f=i(t,d[0],d[1]);return c(function(){h.hasValue=!0,h.value=f},[f]),l(f),f}},2484(t,e,o){t.exports=o(1937)},2566(t,e,o){t.exports=o(9838)},1594(t){t.exports=React},5206(t){t.exports=ReactDOM},3713(t){t.exports=ReactJSXRuntime},2044(t){t.exports=wp.privateApis},1858(t,e,o){o.d(e,{dy:()=>l,sC:()=>u,zR:()=>c});const r="__TSR_index",n="popstate",s="beforeunload";function i(t){let e=t.getLocation();const o=new Set,n=r=>{e=t.getLocation(),o.forEach(t=>t({location:e,action:r}))},s=o=>{t.notifyOnIndexChange??1?n(o):e=t.getLocation()},i=async({task:o,navigateOpts:r,...n})=>{if(r?.ignoreBlocker??!1)return void o();const s=t.getBlockers?.()??[],i="PUSH"===n.type||"REPLACE"===n.type;if("undefined"!=typeof document&&s.length&&i)for(const o of s){const r=l(n.path,n.state);if(await o.blockerFn({currentLocation:e,nextLocation:r,action:n.type}))return void t.onBlocked?.()}o()};return{get location(){return e},get length(){return t.getLength()},subscribers:o,subscribe:t=>(o.add(t),()=>{o.delete(t)}),push:(o,s,c)=>{const u=e.state[r];s=a(u+1,s),i({task:()=>{t.pushState(o,s),n({type:"PUSH"})},navigateOpts:c,type:"PUSH",path:o,state:s})},replace:(o,s,c)=>{const u=e.state[r];s=a(u,s),i({task:()=>{t.replaceState(o,s),n({type:"REPLACE"})},navigateOpts:c,type:"REPLACE",path:o,state:s})},go:(e,o)=>{i({task:()=>{t.go(e),s({type:"GO",index:e})},navigateOpts:o,type:"GO"})},back:e=>{i({task:()=>{t.back(e?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:e,type:"BACK"})},forward:e=>{i({task:()=>{t.forward(e?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:e,type:"FORWARD"})},canGoBack:()=>0!==e.state[r],createHref:e=>t.createHref(e),block:e=>{if(!t.setBlockers)return()=>{};const o=t.getBlockers?.()??[];return t.setBlockers([...o,e]),()=>{const o=t.getBlockers?.()??[];t.setBlockers?.(o.filter(t=>t!==e))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:n}}function a(t,e){e||(e={});const o=d();return{...e,key:o,__TSR_key:o,[r]:t}}function c(t){const e=t?.window??("undefined"!=typeof document?window:void 0),o=e.history.pushState,a=e.history.replaceState;let c=[];const u=()=>c,h=t?.createHref??(t=>t),f=t?.parseLocation??(()=>l(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const t=d();e.history.replaceState({[r]:0,key:t,__TSR_key:t},"")}let p,m=f(),g=!1,v=!1,y=!1,S=!1;let b,_;const w=()=>{b&&(k._ignoreSubscribers=!0,(b.isPush?e.history.pushState:e.history.replaceState)(b.state,"",b.href),k._ignoreSubscribers=!1,b=void 0,_=void 0,p=void 0)},x=(t,e,o)=>{const r=h(e);_||(p=m),m=l(e,o),b={href:r,state:o,isPush:b?.isPush||"push"===t},_||(_=Promise.resolve().then(()=>w()))},P=t=>{m=f(),k.notify({type:t})},R=async()=>{if(v)return void(v=!1);const t=f(),o=t.state[r]-m.state[r],n=-1===o,s=!(1===o)&&!n||g;g=!1;const i=s?"GO":n?"BACK":"FORWARD",a=s?{type:"GO",index:o}:{type:n?"BACK":"FORWARD"};if(y)y=!1;else{const o=u();if("undefined"!=typeof document&&o.length)for(const r of o){if(await r.blockerFn({currentLocation:m,nextLocation:t,action:i}))return v=!0,e.history.go(1),void k.notify(a)}}m=f(),k.notify(a)},L=t=>{if(S)return void(S=!1);let e=!1;const o=u();if("undefined"!=typeof document&&o.length)for(const t of o){const o=t.enableBeforeUnload??!0;if(!0===o){e=!0;break}if("function"==typeof o&&!0===o()){e=!0;break}}return e?(t.preventDefault(),t.returnValue=""):void 0},k=i({getLocation:()=>m,getLength:()=>e.history.length,pushState:(t,e)=>x("push",t,e),replaceState:(t,e)=>x("replace",t,e),Line truncated
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-components', 'wp-data', 'wp-polyfill'), 'version' => 'c6269b78b51d25fe37c1');
|
||||
+1
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var e={479(e,t,n){n.d(t,{b:()=>i});const i=e=>t=>(n={},i)=>{const r=i[e];if(void 0===r)return n;const s=t(n[r],i);return s===n[r]?n:{...n,[r]:s}}},790(e){e.exports=window.ReactJSXRuntime},427(e){e.exports=window.wp.components},143(e){e.exports=window.wp.data},22(e,t,n){function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}n.d(t,{A:()=>r});const r=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}},809(e,t,n){n.d(t,{A:()=>a});var i=n(22),r=n(427),s=n(143),o=n(642),c=n(790);function a({children:e,className:t,pinnedNoticesClassName:n,dismissibleNoticesClassName:a,context:l}){const u=(0,s.useSelect)(e=>e(o.M).getNotices(l),[l]),{removeNotice:d}=(0,s.useDispatch)(o.M),p=u.filter(({isDismissible:e,type:t})=>e&&"default"===t),f=u.filter(({isDismissible:e,type:t})=>!e&&"default"===t),m=f.length>0,N=p.length>0||function(e){return null!=e&&!1!==e&&""!==e}(e);return m||N?(0,c.jsxs)("div",{className:(0,i.A)("notices-inline-notices-wrapper",t),children:[m&&(0,c.jsx)(r.NoticeList,{notices:f,className:(0,i.A)("components-notices__pinned",n)}),N&&(0,c.jsx)(r.NoticeList,{notices:p,className:(0,i.A)("components-notices__dismissible",a),onRemove:e=>d(e,l),children:e})]}):null}},591(e,t,n){n.d(t,{A:()=>a});var i=n(22),r=n(427),s=n(143),o=n(642),c=n(790);function a({className:e,context:t}){const n=(0,s.useSelect)(e=>e(o.M).getNotices(t),[t]),{removeNotice:a}=(0,s.useDispatch)(o.M),l=n.filter(({type:e})=>"snackbar"===e).slice(-3);return(0,c.jsx)(r.SnackbarList,{notices:l,className:(0,i.A)("components-notices__snackbar",e),onRemove:e=>a(e,t)})}},455(e,t,n){n.r(t),n.d(t,{createErrorNotice:()=>a,createInfoNotice:()=>c,createNotice:()=>s,createSuccessNotice:()=>o,createWarningNotice:()=>l,removeAllNotices:()=>d,removeNotice:()=>u,removeNotices:()=>p});var i=n(425),r=0;function s(e=i.B,t,n={}){const{speak:s=!0,isDismissible:o=!0,context:c=i.A,id:a=`${c}${++r}`,actions:l=[],type:u="default",__unstableHTML:d,icon:p=null,explicitDismiss:f=!1,onDismiss:m}=n;return{type:"CREATE_NOTICE",context:c,notice:{id:a,status:e,content:t=String(t),spokenMessage:s?t:null,__unstableHTML:d,isDismissible:o,actions:l,type:u,icon:p,explicitDismiss:f,onDismiss:m}}}function o(e,t){return s("success",e,t)}function c(e,t){return s("info",e,t)}function a(e,t){return s("error",e,t)}function l(e,t){return s("warning",e,t)}function u(e,t=i.A){return{type:"REMOVE_NOTICE",id:e,context:t}}function d(e="default",t=i.A){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function p(e,t=i.A){return{type:"REMOVE_NOTICES",ids:e,context:t}}},425(e,t,n){n.d(t,{A:()=>i,B:()=>r});var i="global",r="info"},642(e,t,n){n.d(t,{M:()=>c});var i=n(143),r=n(241),s=n(455),o=n(472),c=(0,i.createReduxStore)("core/notices",{reducer:r.A,actions:s,selectors:o});(0,i.register)(c)},472(e,t,n){n.r(t),n.d(t,{getNotices:()=>s});var i=n(425),r=[];function s(e,t=i.A){return e[t]||r}},241(e,t,n){n.d(t,{A:()=>i});var i=(0,n(479).b)("context")((e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...e.filter(({id:e})=>e!==t.notice.id),t.notice];case"REMOVE_NOTICE":return e.filter(({id:e})=>e!==t.id);case"REMOVE_NOTICES":return e.filter(({id:e})=>!t.ids.includes(e));case"REMOVE_ALL_NOTICES":return e.filter(({type:e})=>e!==t.noticeType);default:return e}})}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};n.r(i),n.d(i,{InlineNotices:()=>s.A,SnackbarNotices:()=>o.A,store:()=>r.M});var r=n(642),s=n(809),o=n(591);(window.wp=window.wp||{}).notices=i})();
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '6ab605a6919c6e0efe05');
|
||||
+1
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var e={816(e,r,o){o.d(r,{yf:()=>t});var s=["@wordpress/admin-ui","@wordpress/api-fetch","@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/boot","@wordpress/commands","@wordpress/compose","@wordpress/connectors","@wordpress/workflows","@wordpress/components","@wordpress/content-types","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/font-list-route","@wordpress/format-library","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/rich-text","@wordpress/route","@wordpress/router","@wordpress/routes","@wordpress/storybook","@wordpress/sync","@wordpress/theme","@wordpress/dataviews","@wordpress/fields","@wordpress/lazy-editor","@wordpress/media-editor","@wordpress/media-utils","@wordpress/upload-media","@wordpress/global-styles-ui","@wordpress/ui","@wordpress/views","@wordpress/widget-dashboard"],t=(e,r)=>{if(!s.includes(r))throw new Error(`You tried to opt-in to unstable APIs as module "${r}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return{lock:n,unlock:d}};function n(e,r){if(!e)throw new Error("Cannot lock an undefined object.");const o=e;a in o||(o[a]={}),i.set(o[a],r)}function d(e){if(!e)throw new Error("Cannot unlock an undefined object.");const r=e;if(!(a in r))throw new Error("Cannot unlock an object that was not locked before. ");return i.get(r[a])}var i=new WeakMap,a=Symbol("Private API ID")}},r={};function o(s){var t=r[s];if(void 0!==t)return t.exports;var n=r[s]={exports:{}};return e[s](n,n.exports,o),n.exports}o.d=(e,r)=>{for(var s in r)o.o(r,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:r[s]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};o.r(s),o.d(s,{__dangerousOptInToUnstableAPIsOnlyForCoreModules:()=>t.yf});var t=o(816);(window.wp=window.wp||{}).privateApis=s})();
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-polyfill', 'wp-private-apis'), 'version' => '251c2ea199773891b13a');
|
||||
+1
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var e={790(e){e.exports=window.ReactJSXRuntime},6087(e){e.exports=window.wp.element},3053(e){e.exports=window.wp.privateApis},7602(e,r,t){t.d(r,{A:()=>c});var a=t(3181),n=t(6406),o=t(9933),s=t(7785),i=t(8070);class c{constructor(e){this.id=e.id,this.name=e.name,this.base=e.base?c.get(e.base):null,this.aliases=e.aliases,this.base&&(this.fromBase=e.fromBase,this.toBase=e.toBase);let r=e.coords??this.base.coords;for(let e in r)"name"in r[e]||(r[e].name=e);this.coords=r;let t=e.white??this.base.white??"D65";this.white=(0,o.ie)(t),this.formats=e.formats??{};for(let e in this.formats){let r=this.formats[e];r.type||="function",r.name||=e}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:e.cssId||this.id}),e.gamutSpace?this.gamutSpace="self"===e.gamutSpace?this:c.get(e.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(e,r)=>!0),this.referred=e.referred,Object.defineProperty(this,"path",{value:l(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),s.A.run("colorspace-init-end",this)}inGamut(e,{epsilon:r=75e-6}={}){if(!this.equals(this.gamutSpace))return e=this.to(this.gamutSpace,e),this.gamutSpace.inGamut(e,{epsilon:r});let t=Object.values(this.coords);return e.every((e,n)=>{let o=t[n];if("angle"!==o.type&&o.range){if((0,a.$I)(e))return!0;let[t,n]=o.range;return(void 0===t||e>=t-r)&&(void 0===n||e<=n+r)}return!0})}get isUnbounded(){return Object.values(this.coords).every(e=>!("range"in e))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let e in this.coords)if("angle"===this.coords[e].type)return!0;return!1}getFormat(e){if(!e)return null;"default"===e?e=Object.values(this.formats)[0]:"string"==typeof e&&(e=this.formats[e]);let r=n.A.get(e,this);return r!==e&&e.name in this.formats&&(this.formats[e.name]=r),r}equals(e){return!!e&&(this===e||this.id===e||this.id===e.id)}to(e,r){if(1===arguments.length){const t=(0,i.A)(e);[e,r]=[t.space,t.coords]}if(e=c.get(e),this.equals(e))return r;r=r.map(e=>(0,a.$I)(e)?0:e);let t,n,o=this.path,s=e.path;for(let e=0;e<o.length&&o[e].equals(s[e]);e++)t=o[e],n=e;if(!t)throw new Error(`Cannot convert between color spaces ${this} and ${e}: no connection space was found`);for(let e=o.length-1;e>n;e--)r=o[e].toBase(r);for(let e=n+1;e<s.length;e++)r=s[e].fromBase(r);return r}from(e,r){if(1===arguments.length){const t=(0,i.A)(e);[e,r]=[t.space,t.coords]}return(e=c.get(e)).to(this,r)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let e=[];for(let r in this.coords){let t=this.coords[r],a=t.range||t.refRange;e.push(a?.min??0)}return e}static registry={};static get all(){return[...new Set(Object.values(c.registry))]}static register(e,r){if(1===arguments.length&&(e=(r=arguments[0]).id),r=this.get(r),this.registry[e]&&this.registry[e]!==r)throw new Error(`Duplicate color space registration: '${e}'`);if(this.registry[e]=r,1===arguments.length&&r.aliases)for(let e of r.aliases)this.register(e,r);return r}static get(e,...r){if(!e||(0,a.Qs)(e,this))return e;if("string"===(0,a.NW)(e)){let r=c.registry[e.toLowerCase()];if(!r)throw new TypeError(`No color space found with id = "${e}"`);return r}if(r.length)return c.get(...r);throw new TypeError(`${e} is not a valid color space`)}static findFormat(e,r=c.all){if(!e)return null;"string"==typeof e&&(e={name:e});for(let t of r)for(let[r,a]of Object.entries(t.formats)){a.name??=r,a.type??="function";let o=!(e.name&&a.name!==e.name||e.type&&a.type!==e.type);if(e.id){let r=a.ids||[a.id],t=Array.isArray(e.id)?e.id:[e.id];o&&=t.some(e=>r.includes(e))}if(o){let e=n.A.get(a,t);return e!==a&&(t.formats[a.name]=e),e}}return null}static resolveCoord(e,r){let t,n,o=(0,a.NW)(e);if("string"===o?e.includes(".")?[t,n]=e.split("."):[t,n]=[,e]:Array.isArray(e)?[t,n]=e:(t=e.space,n=e.coordId),t=c.get(t),t||(t=r),!t)throw new TypeError(`Cannot resolve coordinate reference ${e}: No color space specified and relative references are not allowed here`);if(o=(0,a.NW)(n),"number"===o||"string"===o&&n>=0){let e=Object.entries(t.coords)[n];if(e)return{space:t,id:e[0],index:n,...e[1]}}t=c.get(t);let s=n.toLowerCase(),i=0;for(let e in t.coords){let r=t.coords[e];if(e.toLowerCase()===s||r.name?.toLowerCase()===s)return{space:t,id:e,index:i,...r};i++}throw new TypeError(`No "${n}" coordinate found in ${t.name}. Its coordinates are: ${Object.keys(t.coords).join(", ")}`)}static DEFAULT_FORMAT={type:"functions",name:"color"}}function l(e){let r=[e];for(let t=e;t=t.base;)r.push(t);return r}},6406(e,r,t){t.d(r,{A:()=>s});var a=t(3181),n=t(1313);const o=Symbol("instance");class s{type;name;spaceCoords;coords;id;alpha;constructor(e,r=e.space){e[o]=this,this.type="function",this.name="color",Object.assign(this,e),this.space=r,"custom"!==this.type&&(this.spaceCoords=Object.values(r.coords),this.coords||(this.coords=this.spaceCoords.map(e=>{let r=["<number>","<percentage>"];return"angle"===e.type&&r.push("<angle>"),r})),this.coords=this.coords.map((eLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-core-data', 'wp-data', 'wp-element', 'wp-polyfill', 'wp-preferences', 'wp-private-apis'), 'version' => 'd9f51d10cd25f8392774');
|
||||
+1
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var e={582(e){e.exports=window.wp.coreData},143(e){e.exports=window.wp.data},87(e){e.exports=window.wp.element},233(e){e.exports=window.wp.preferences},53(e){e.exports=window.wp.privateApis},686(e,t,r){r.d(t,{j:()=>n});var o=Object.prototype.hasOwnProperty;function i(e,t,r){for(r of e.keys())if(n(r,t))return r}function n(e,t){var r,s,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((s=e.length)===t.length)for(;s--&&n(e[s],t[s]););return-1===s}if(r===Set){if(e.size!==t.size)return!1;for(s of e){if((a=s)&&"object"==typeof a&&!(a=i(t,a)))return!1;if(!t.has(a))return!1}return!0}if(r===Map){if(e.size!==t.size)return!1;for(s of e){if((a=s[0])&&"object"==typeof a&&!(a=i(t,a)))return!1;if(!n(s[1],t.get(a)))return!1}return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((s=e.byteLength)===t.byteLength)for(;s--&&e.getInt8(s)===t.getInt8(s););return-1===s}if(ArrayBuffer.isView(e)){if((s=e.byteLength)===t.byteLength)for(;s--&&e[s]===t[s];);return-1===s}if(!r||"object"==typeof e){for(r in s=0,e){if(o.call(e,r)&&++s&&!o.call(t,r))return!1;if(!(r in t)||!n(e[r],t[r]))return!1}return Object.keys(t).length===s}}return e!=e&&t!=t}},263(e,t,r){r.d(t,{P:()=>i,z:()=>n});var o=["titleField","mediaField","descriptionField","showTitle","showMedia","showDescription","showLevels","infiniteScrollEnabled"];function i(e,t,r){if(!t)return e;let i=e;for(const e of o)e in t&&(i={...i,[e]:t[e]});if(t.filters&&t.filters.length>0){const r=new Set(t.filters.map(e=>e.field)),o=(e.filters??[]).filter(e=>!r.has(e.field));i={...i,filters:[...o,...t.filters]}}if(t.sort){r&&e.sort?.field===r.sort?.field&&e.sort?.direction===r.sort?.direction&&(i={...i,sort:t.sort})}return t.layout&&(i={...i,layout:{...i.layout,...t.layout}}),t.groupBy&&(i={...i,groupBy:t.groupBy}),i}function n(e,t,r){if(!t)return e;let i=e;for(const e of o)if(e in t){const{[e]:t,...r}=i;i=r}if(t.filters&&t.filters.length>0){const r=new Set(t.filters.map(e=>e.field));i={...i,filters:(e.filters??[]).filter(e=>!r.has(e.field))}}if(t.sort&&e.sort?.field===t.sort.field&&e.sort?.direction===t.sort.direction&&(i={...i,sort:r?.sort}),t.layout&&"layout"in i&&i.layout){const e={...i.layout};for(const r of Object.keys(t.layout))delete e[r];i={...i,layout:Object.keys(e).length>0?e:void 0}}if(t.groupBy&&"groupBy"in i){const{groupBy:e,...t}=i;i=t}return i}},513(e,t,r){r.d(t,{Q:()=>a});var o=r(143),i=r(233),n=r(431),s=r(263);async function a(e){const{kind:t,name:r,slug:a,defaultView:f,activeViewOverrides:u,queryParams:l}=e,c=(0,n.A)(t,r,a),d=(0,o.select)(i.store).get("core/views",c)??f,p=l?.page??1,w=l?.search??"",y=e.defaultLayouts?.[d?.type],g={...y&&!0!==y?y:{},...u};return(0,s.P)({...d,page:p,search:w},g,f)}},553(e,t,r){r.d(t,{T:()=>n});var o=r(53),{lock:i,unlock:n}=(0,o.__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/views")},431(e,t,r){function o(e,t,r){return`dataviews-${e}-${t}-${r}`}r.d(t,{A:()=>o})},351(e,t,r){r.d(t,{n:()=>s});var o=r(143),i=r(582),n=r(553);function s({kind:e,name:t}){return(0,o.useSelect)(r=>(0,n.T)(r(i.store)).getViewConfig(e,t),[e,t])}},196(e,t,r){r.d(t,{l:()=>u});var o=r(686),i=r(87),n=r(143),s=r(233),a=r(431),f=r(263);function u(e){const{kind:t,name:r,slug:u,defaultView:l,activeViewOverrides:c,queryParams:d,onChangeQueryParams:p}=e,w=(0,a.A)(t,r,u),y=(0,n.useSelect)(e=>e(s.store).get("core/views",w),[w]),{set:g}=(0,n.useDispatch)(s.store),v=(0,i.useMemo)(()=>y??l??{},[y,l]),h=Number(d?.page??v.page??1),b=d?.search??v.search??"",m=(0,i.useMemo)(()=>{const t=e.defaultLayouts?.[v.type];return{...t&&!0!==t?t:{},...c}},[e.defaultLayouts,v.type,c]);return{view:(0,i.useMemo)(()=>(0,f.P)({...v,page:h,search:b},m,l),[v,h,b,m,l]),isModified:!!y,updateView:(0,i.useCallback)(e=>{const t={page:e?.page,search:e?.search},r=(0,f.z)(function(e,t){const r={...e};for(const e of t)delete r[e];return r}(e,["page","search"]),m,l);p&&!(0,o.j)(t,{page:h,search:b})&&p(t);const i=(0,f.z)(v,m,l),n=(0,f.z)(l,m,l);(0,o.j)(i,r)||((0,o.j)(r,n)?g("core/views",w,void 0):g("core/views",w,r))},[p,h,b,v,l,m,g,w]),resetToDefault:(0,i.useCallback)(()=>{g("core/views",w,void 0)},[w,g])}}}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{loadView:()=>n.Q,useView:()=>i.l,useViewConfig:()=>s.n});var i=r(196),n=r(513),s=r(351);(window.wp=window.wp||{}).views=o})();
|
||||
Reference in new issue
Block a user