golden hour
/home/doctorbruno/public_html/doctorbruno.info/chennai-copper-kettle.com/wp-includes/js/dist
⬆️ Go Up
Upload
File/Folder
Size
Actions
a11y.js
5.56 KB
Del
OK
a11y.min.js
2.55 KB
Del
OK
annotations.js
15.58 KB
Del
OK
annotations.min.js
5.84 KB
Del
OK
api-fetch.js
19.53 KB
Del
OK
api-fetch.min.js
7.33 KB
Del
OK
autop.js
9.78 KB
Del
OK
autop.min.js
5.56 KB
Del
OK
base-styles.js
115 B
Del
OK
base-styles.min.js
142 B
Del
OK
blob.js
2.35 KB
Del
OK
blob.min.js
1.21 KB
Del
OK
block-directory.js
372.69 KB
Del
OK
block-directory.min.js
126.54 KB
Del
OK
block-editor.js
3.6 MB
Del
OK
block-editor.min.js
1.35 MB
Del
OK
block-library.js
2.89 MB
Del
OK
block-library.min.js
1.24 MB
Del
OK
block-serialization-default-parser.js
6.64 KB
Del
OK
block-serialization-default-parser.min.js
2.5 KB
Del
OK
block-serialization-spec-parser.js
50.58 KB
Del
OK
block-serialization-spec-parser.min.js
10.48 KB
Del
OK
blocks.js
292.88 KB
Del
OK
blocks.min.js
142.99 KB
Del
OK
commands.js
128.65 KB
Del
OK
commands.min.js
55.89 KB
Del
OK
components.js
3.64 MB
Del
OK
components.min.js
817.08 KB
Del
OK
compose.js
83.74 KB
Del
OK
compose.min.js
29.39 KB
Del
OK
core-commands.js
29.11 KB
Del
OK
core-commands.min.js
12.2 KB
Del
OK
core-data.js
660 KB
Del
OK
core-data.min.js
226.52 KB
Del
OK
customize-widgets.js
111.55 KB
Del
OK
customize-widgets.min.js
43.42 KB
Del
OK
data-controls.js
4.2 KB
Del
OK
data-controls.min.js
1.84 KB
Del
OK
data.js
83.69 KB
Del
OK
data.min.js
26.04 KB
Del
OK
date.js
176.69 KB
Del
OK
date.min.js
141.35 KB
Del
OK
deprecated.js
3.11 KB
Del
OK
deprecated.min.js
1.35 KB
Del
OK
development
-
Del
OK
dom-ready.js
1.53 KB
Del
OK
dom-ready.min.js
881 B
Del
OK
dom.js
35.12 KB
Del
OK
dom.min.js
12.86 KB
Del
OK
edit-post.js
441.28 KB
Del
OK
edit-post.min.js
156.59 KB
Del
OK
edit-site.js
2.2 MB
Del
OK
edit-site.min.js
884.08 KB
Del
OK
edit-widgets.js
180.29 KB
Del
OK
edit-widgets.min.js
68.81 KB
Del
OK
editor.js
3.79 MB
Del
OK
editor.min.js
1.5 MB
Del
OK
element.js
27.32 KB
Del
OK
element.min.js
12.18 KB
Del
OK
escape-html.js
2.36 KB
Del
OK
escape-html.min.js
1.13 KB
Del
OK
format-library.js
229.45 KB
Del
OK
format-library.min.js
96.19 KB
Del
OK
hooks.js
12.01 KB
Del
OK
hooks.min.js
4.99 KB
Del
OK
html-entities.js
1.71 KB
Del
OK
html-entities.min.js
950 B
Del
OK
i18n.js
15.36 KB
Del
OK
i18n.min.js
5.66 KB
Del
OK
is-shallow-equal.js
2.77 KB
Del
OK
is-shallow-equal.min.js
1.17 KB
Del
OK
keyboard-shortcuts.js
10.26 KB
Del
OK
keyboard-shortcuts.min.js
3.6 KB
Del
OK
keycodes.js
8.36 KB
Del
OK
keycodes.min.js
2.97 KB
Del
OK
list-reusable-blocks.js
13.34 KB
Del
OK
list-reusable-blocks.min.js
5.41 KB
Del
OK
media-utils.js
1.02 MB
Del
OK
media-utils.min.js
381.85 KB
Del
OK
notices.js
9.55 KB
Del
OK
notices.min.js
3.85 KB
Del
OK
nux.js
4.32 KB
Del
OK
nux.min.js
1.71 KB
Del
OK
patterns.js
88.07 KB
Del
OK
patterns.min.js
37.4 KB
Del
OK
plugins.js
20.72 KB
Del
OK
plugins.min.js
7.08 KB
Del
OK
preferences-persistence.js
17.3 KB
Del
OK
preferences-persistence.min.js
5.58 KB
Del
OK
preferences.js
21.03 KB
Del
OK
preferences.min.js
7.84 KB
Del
OK
primitives.js
5.15 KB
Del
OK
primitives.min.js
2.04 KB
Del
OK
priority-queue.js
10.1 KB
Del
OK
priority-queue.min.js
3.42 KB
Del
OK
private-apis.js
4.42 KB
Del
OK
private-apis.min.js
2.95 KB
Del
OK
react-i18n.js
3.97 KB
Del
OK
react-i18n.min.js
1.59 KB
Del
OK
redux-routine.js
24.75 KB
Del
OK
redux-routine.min.js
9.72 KB
Del
OK
reusable-blocks.js
21.87 KB
Del
OK
reusable-blocks.min.js
7.99 KB
Del
OK
rich-text.js
104.89 KB
Del
OK
rich-text.min.js
42.17 KB
Del
OK
router.js
36.21 KB
Del
OK
router.min.js
14.21 KB
Del
OK
script-modules
-
Del
OK
server-side-render.js
11.32 KB
Del
OK
server-side-render.min.js
4.1 KB
Del
OK
shortcode.js
8.02 KB
Del
OK
shortcode.min.js
3.35 KB
Del
OK
style-engine.js
18.37 KB
Del
OK
style-engine.min.js
6.78 KB
Del
OK
theme.js
135.48 KB
Del
OK
theme.min.js
59.71 KB
Del
OK
token-list.js
6.18 KB
Del
OK
token-list.min.js
1.68 KB
Del
OK
undo-manager.js
5.36 KB
Del
OK
undo-manager.min.js
1.77 KB
Del
OK
upload-media.js
116.33 KB
Del
OK
upload-media.min.js
49.3 KB
Del
OK
url.js
23.4 KB
Del
OK
url.min.js
10.18 KB
Del
OK
vendor
-
Del
OK
viewport.js
7.14 KB
Del
OK
viewport.min.js
2.32 KB
Del
OK
warning.js
1.58 KB
Del
OK
warning.min.js
816 B
Del
OK
widgets.js
50.14 KB
Del
OK
widgets.min.js
20.97 KB
Del
OK
wordcount.js
7 KB
Del
OK
wordcount.min.js
2.51 KB
Del
OK
Edit: customize-widgets.min.js
/*! This file is auto-generated */ (function() { var wp;(wp||={}).customizeWidgets=(()=>{var Wa=Object.create;var ve=Object.defineProperty;var Ra=Object.getOwnPropertyDescriptor;var Ta=Object.getOwnPropertyNames;var za=Object.getPrototypeOf,La=Object.prototype.hasOwnProperty;var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tt=(e,t)=>{for(var r in t)ve(e,r,{get:t[r],enumerable:!0})},Ft=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ta(t))!La.call(e,a)&&a!==r&&ve(e,a,{get:()=>t[a],enumerable:!(o=Ra(t,a))||o.enumerable});return e};var s=(e,t,r)=>(r=e!=null?Wa(za(e)):{},Ft(t||!e||!e.__esModule?ve(r,"default",{value:e,enumerable:!0}):r,e)),Na=e=>Ft(ve({},"__esModule",{value:!0}),e);var g=h((As,Dt)=>{Dt.exports=window.wp.element});var rt=h((Ws,Ht)=>{Ht.exports=window.wp.blockLibrary});var q=h((Rs,Vt)=>{Vt.exports=window.wp.widgets});var ot=h((Ts,Ut)=>{Ut.exports=window.wp.blocks});var y=h((zs,Gt)=>{Gt.exports=window.wp.data});var ne=h((Ls,$t)=>{$t.exports=window.wp.preferences});var R=h((Ns,Kt)=>{Kt.exports=window.wp.i18n});var Y=h((Ps,Yt)=>{Yt.exports=window.React});var p=h((js,Xt)=>{Xt.exports=window.ReactJSXRuntime});var G=h((mi,br)=>{br.exports=window.wp.primitives});var J=h((Ii,wr)=>{wr.exports=window.wp.compose});var vr=h((Ei,yr)=>{yr.exports=window.wp.theme});var kr=h((Bi,Sr)=>{Sr.exports=window.wp.privateApis});var P=h((zi,xr)=>{xr.exports=window.wp.components});var I=h((Pi,Er)=>{Er.exports=window.wp.blockEditor});var ue=h((Oi,Br)=>{Br.exports=window.wp.hooks});var Mr=h((Di,Nr)=>{Nr.exports=window.wp.coreData});var It=h((Hi,Pr)=>{Pr.exports=window.wp.mediaUtils});var X=h((Ui,Gr)=>{Gr.exports=window.wp.keycodes});var me=h((Qi,to)=>{to.exports=window.wp.keyboardShortcuts});var So=h((Sn,vo)=>{"use strict";vo.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,a,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(a=o;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(a=o;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=o;a--!==0;){var n=i[a];if(!e(t[n],r[n]))return!1}return!0}return t!==t&&r!==r}});var _o=h((kn,ko)=>{ko.exports=window.wp.isShallowEqual});var ga=h((ml,ha)=>{ha.exports=window.wp.dom});var Es={};tt(Es,{initialize:()=>Is,store:()=>x});var Ze=s(g(),1),Je=s(rt(),1),ie=s(q(),1),Xe=s(ot(),1),Ot=s(y(),1),Aa=s(ne(),1);function qt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=qt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Ma(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=qt(e))&&(o&&(o+=" "),o+=t);return o}var Se=Ma;var Jt=s(Y(),1),Zt={};function at(e,t){let r=Jt.useRef(Zt);return r.current===Zt&&(r.current=e(t)),r}function Pa(e,t){return function(o,...a){let i=new URL(e);return i.searchParams.set("code",o.toString()),a.forEach(n=>i.searchParams.append("args[]",n)),`${t} error #${o}; visit ${i} for the full message.`}}var Oa=Pa("https://base-ui.com/production-error","Base UI"),Qt=Oa;var U=s(Y(),1);function st(e,t,r,o){let a=at(tr).current;return ja(a,e,t,r,o)&&rr(a,[e,t,r,o]),a.callback}function er(e){let t=at(tr).current;return Fa(t,e)&&rr(t,e),t.callback}function tr(){return{callback:null,cleanup:null,refs:[]}}function ja(e,t,r,o,a){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==a}function Fa(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function rr(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let a=0;a<t.length;a+=1){let i=t[a];if(i!=null)switch(typeof i){case"function":{let n=i(r);typeof n=="function"&&(o[a]=n);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let a=0;a<t.length;a+=1){let i=t[a];if(i!=null)switch(typeof i){case"function":{let n=o[a];typeof n=="function"?n():i(null);break}case"object":{i.current=null;break}default:}}}}}}var sr=s(Y(),1);var or=s(Y(),1),Da=parseInt(or.version,10);function ar(e){return Da>=e}function it(e){if(!sr.isValidElement(e))return null;let t=e,r=t.props;return(ar(19)?r?.ref:t.ref)??null}function le(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var Ks=Object.freeze([]),Z=Object.freeze({});function ir(e,t){let r={};for(let o in e){let a=e[o];if(t?.hasOwnProperty(o)){let i=t[o](a);i!=null&&Object.assign(r,i);continue}a===!0?r[`data-${o.toLowerCase()}`]="":a&&(r[`data-${o.toLowerCase()}`]=a.toString())}return r}function nr(e,t){return typeof e=="function"?e(t):e}function lr(e,t){return typeof e=="function"?e(t):e}var nt={};function fe(e,t,r,o,a){if(!r&&!o&&!a&&!e)return ke(t);let i=ke(e);return t&&(i=de(i,t)),r&&(i=de(i,r)),o&&(i=de(i,o)),a&&(i=de(i,a)),i}function dr(e){if(e.length===0)return nt;if(e.length===1)return ke(e[0]);let t=ke(e[0]);for(let r=1;r<e.length;r+=1)t=de(t,e[r]);return t}function ke(e){return lt(e)?{...ur(e,nt)}:Ha(e)}function de(e,t){return lt(t)?ur(t,e):Va(e,t)}function Ha(e){let t={...e};for(let r in t){let o=t[r];fr(r,o)&&(t[r]=mr(o))}return t}function Va(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=le(e.style,o);break}case"className":{e[r]=dt(e.className,o);break}default:fr(r,o)?e[r]=Ua(e[r],o):e[r]=o}}return e}function fr(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),a=e.charCodeAt(2);return r===111&&o===110&&a>=65&&a<=90&&(typeof t=="function"||typeof t>"u")}function lt(e){return typeof e=="function"}function ur(e,t){return lt(e)?e(t):e??nt}function Ua(e,t){return t?e?(...r)=>{let o=r[0];if(pr(o)){let i=o;cr(i);let n=t(...r);return i.baseUIHandlerPrevented||e?.(...r),n}let a=t(...r);return e?.(...r),a}:mr(t):e}function mr(e){return e&&((...t)=>{let r=t[0];return pr(r)&&cr(r),e(...t)})}function cr(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function dt(e,t){return t?e?t+" "+e:t:e}function pr(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var ft=s(Y(),1);function hr(e,t,r={}){let o=t.render,a=Ga(t,r);if(r.enabled===!1)return null;let i=r.state??Z;return qa(e,o,a,i)}function Ga(e,t={}){let{className:r,style:o,render:a}=e,{state:i=Z,ref:n,props:d,stateAttributesMapping:u,enabled:l=!0}=t,f=l?nr(r,i):void 0,c=l?lr(o,i):void 0,m=l?ir(i,u):Z,S=l&&d?$a(d):void 0,C=l?le(m,S)??{}:Z;return typeof document<"u"&&(l?Array.isArray(n)?C.ref=er([C.ref,it(a),...n]):C.ref=st(C.ref,it(a),n):st(null,null)),l?(f!==void 0&&(C.className=dt(C.className,f)),c!==void 0&&(C.style=le(C.style,c)),C):Z}function $a(e){return Array.isArray(e)?dr(e):fe(void 0,e)}var Ka=Symbol.for("react.lazy");function qa(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let a=fe(r,t.props);a.ref=r.ref;let i=t;return i?.$$typeof===Ka&&(i=U.Children.toArray(t)[0]),U.cloneElement(i,a)}if(e&&typeof e=="string")return Ya(e,r);throw new Error(Qt(8))}function Ya(e,t){return e==="button"?(0,ft.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,ft.createElement)("img",{alt:"",...t,key:t.key}):U.createElement(e,t)}function gr(e){return hr(e.defaultTagName??"div",e,e)}var _e=s(G(),1),ut=s(p(),1),mt=(0,ut.jsx)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ut.jsx)(_e.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});var Ce=s(G(),1),ct=s(p(),1),pt=(0,ct.jsx)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ct.jsx)(Ce.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});var xe=s(G(),1),ht=s(p(),1),gt=(0,ht.jsx)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ht.jsx)(xe.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Ie=s(G(),1),bt=s(p(),1),wt=(0,bt.jsx)(Ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)(Ie.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var Ee=s(G(),1),yt=s(p(),1),Be=(0,yt.jsx)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yt.jsx)(Ee.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})});var Ae=s(G(),1),vt=s(p(),1),We=(0,vt.jsx)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vt.jsx)(Ae.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})});var _r=s(g(),1),St="data-wp-hash";function kt(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ja(document)),e.__wpStyleRuntime}function Za(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${St}]`))if(r.getAttribute(St)===t)return!0;return!1}function Cr(e,t,r){if(!e.head)return;let o=kt(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(Za(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(St,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function Ja(e){let t=kt();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Cr(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Xa(e,t){let r=kt();r.styles.set(e,t);for(let o of r.documents.keys())Cr(o,e,t)}typeof process>"u",Xa("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var Qa={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},_t=(0,_r.forwardRef)(function({render:t,...r},o){return gr({render:t,ref:o,props:fe({className:Qa["visually-hidden"]},r,{"data-visually-hidden":""})})});var Ir={primary:"#3858e9",background:"#222524"},es=new Map([["modern",Ir],["fresh",{primary:"#007cba",background:"#25292b"}],["midnight",{primary:"#cf4339",background:"#3d4042"}],["coffee",{primary:"#916745",background:"#5b534d"}],["ocean",{primary:"#567958",background:"#5f787f"}],["blue",{primary:"#437aa8",background:"#3876a8"}],["ectoplasm",{primary:"#646c3e",background:"#4f386e"}],["sunrise",{primary:"#ad631e",background:"#cc4541"}],["light",{primary:"#007cba",background:"#eaeeed"}]]);function Ct(){let e=document.body.className.match(/admin-color-([\w-]+)/)?.[1]??"modern";return es.get(e)??Ir}var z=s(g(),1),Ke=s(P(),1),la=s(vr(),1);var Ar=s(g(),1),xt=s(R(),1),Wr=s(P(),1),Rr=s(I(),1),Tr=s(J(),1),zr=s(ue(),1),Re=s(p(),1);function ts({text:e,children:t}){let r=(0,Tr.useCopyToClipboard)(e);return(0,Re.jsx)(Wr.Button,{size:"compact",variant:"secondary",ref:r,children:t})}var Lr=class extends Ar.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),(0,zr.doAction)("editor.ErrorBoundary.errorLogged",e)}render(){let{error:e}=this.state;return e?(0,Re.jsx)(Rr.Warning,{className:"customize-widgets-error-boundary",actions:[(0,Re.jsx)(ts,{text:e.stack,children:(0,xt.__)("Copy Error")},"copy-error")],children:(0,xt.__)("The editor has encountered an unexpected error.")}):this.props.children}};var Yo=s(J(),1),Zo=s(Mr(),1),Jo=s(y(),1),Ue=s(g(),1),L=s(I(),1),Xo=s(It(),1),Qo=s(ne(),1),ea=s(rt(),1);var Or=s(g(),1),jr=s(R(),1),Fr=s(P(),1),Dr=s(y(),1),Hr=s(I(),1),Vr=s(p(),1);function rs({inspector:e,closeMenu:t,...r}){let o=(0,Dr.useSelect)(i=>i(Hr.store).getSelectedBlockClientId(),[]),a=(0,Or.useMemo)(()=>document.getElementById(`block-${o}`),[o]);return(0,Vr.jsx)(Fr.MenuItem,{onClick:()=>{e.open({returnFocusWhenClose:a}),t()},...r,children:(0,jr.__)("Show more settings")})}var Ur=rs;var Pe=s(P(),1),bo=s(I(),1),ee=s(g(),1),Q=s(X(),1),F=s(R(),1);var At=s(R(),1),Yr=s(I(),1),Zr=s(P(),1),Jr=s(J(),1),Xr=s(y(),1);var Te=s(y(),1);var $r=s(y(),1);function os(e=!1,t){return t.type==="SET_IS_INSERTER_OPENED"?t.value:e}var Kr=(0,$r.combineReducers)({blockInserterPanel:os});var Et={};tt(Et,{__experimentalGetInsertionPoint:()=>is,isInserterOpened:()=>ss});var as={rootClientId:void 0,insertionIndex:void 0};function ss(e){return!!e.blockInserterPanel}function is(e){return typeof e.blockInserterPanel=="boolean"?as:e.blockInserterPanel}var Bt={};tt(Bt,{setIsInserterOpened:()=>ns});function ns(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}var qr="core/customize-widgets";var ls={reducer:Kr,selectors:Et,actions:Bt},x=(0,Te.createReduxStore)(qr,ls);(0,Te.register)(x);var D=s(p(),1);function Qr({setIsOpened:e}){let t=(0,Jr.useInstanceId)(Qr,"customize-widget-layout__inserter-panel-title"),r=(0,Xr.useSelect)(o=>o(x).__experimentalGetInsertionPoint(),[]);return(0,D.jsxs)("div",{className:"customize-widgets-layout__inserter-panel","aria-labelledby":t,children:[(0,D.jsxs)("div",{className:"customize-widgets-layout__inserter-panel-header",children:[(0,D.jsx)("h2",{id:t,className:"customize-widgets-layout__inserter-panel-header-title",children:(0,At.__)("Add a block")}),(0,D.jsx)(Zr.Button,{size:"small",icon:mt,onClick:()=>e(!1),"aria-label":(0,At.__)("Close inserter")})]}),(0,D.jsx)("div",{className:"customize-widgets-layout__inserter-panel-content",children:(0,D.jsx)(Yr.__experimentalLibrary,{rootClientId:r.rootClientId,__experimentalInsertionIndex:r.insertionIndex,showInserterHelpPanel:!0,onSelect:()=>e(!1)})})]})}var eo=Qr;var j=s(P(),1),co=s(g(),1),b=s(R(),1);var po=s(X(),1),ho=s(me(),1),Me=s(ne(),1);var fo=s(P(),1),O=s(R(),1),ce=s(me(),1),Ne=s(y(),1),uo=s(g(),1);var E=s(R(),1),ro=[{keyCombination:{modifier:"primary",character:"b"},description:(0,E.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,E.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,E.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,E.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,E.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,E.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,E.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,E.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}],description:(0,E.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,E.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")},{keyCombination:{modifier:"primaryShift",character:"SPACE"},description:(0,E.__)("Add non breaking space.")}];var ao=s(g(),1),ze=s(X(),1),B=s(p(),1);function oo({keyCombination:e,forceAriaLabel:t}){let r=e.modifier?ze.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?ze.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,B.jsx)("kbd",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o,children:(Array.isArray(r)?r:[r]).map((a,i)=>a==="+"?(0,B.jsx)(ao.Fragment,{children:a},i):(0,B.jsx)("kbd",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key",children:a},i))})}function ds({description:e,keyCombination:t,aliases:r=[],ariaLabel:o}){return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-description",children:e}),(0,B.jsxs)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-term",children:[(0,B.jsx)(oo,{keyCombination:t,forceAriaLabel:o}),r.map((a,i)=>(0,B.jsx)(oo,{keyCombination:a,forceAriaLabel:o},i))]})]})}var Le=ds;var so=s(y(),1),io=s(me(),1);var no=s(p(),1);function fs({name:e}){let{keyCombination:t,description:r,aliases:o}=(0,so.useSelect)(a=>{let{getShortcutKeyCombination:i,getShortcutDescription:n,getShortcutAliases:d}=a(io.store);return{keyCombination:i(e),aliases:d(e),description:n(e)}},[e]);return t?(0,no.jsx)(Le,{keyCombination:t,description:r,aliases:o}):null}var lo=fs;var _=s(p(),1),us=({shortcuts:e})=>(0,_.jsx)("ul",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list",children:e.map((t,r)=>(0,_.jsx)("li",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut",children:typeof t=="string"?(0,_.jsx)(lo,{name:t}):(0,_.jsx)(Le,{...t})},r))}),Rt=({title:e,shortcuts:t,className:r})=>(0,_.jsxs)("section",{className:Se("customize-widgets-keyboard-shortcut-help-modal__section",r),children:[!!e&&(0,_.jsx)("h2",{className:"customize-widgets-keyboard-shortcut-help-modal__section-title",children:e}),(0,_.jsx)(us,{shortcuts:t})]}),Wt=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{let o=(0,Ne.useSelect)(a=>a(ce.store).getCategoryShortcuts(t),[t]);return(0,_.jsx)(Rt,{title:e,shortcuts:o.concat(r)})};function mo({isModalActive:e,toggleModal:t}){let{registerShortcut:r}=(0,Ne.useDispatch)(ce.store);return(0,uo.useEffect)(()=>{r({name:"core/customize-widgets/keyboard-shortcuts",category:"main",description:(0,O.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}})},[r]),(0,ce.useShortcut)("core/customize-widgets/keyboard-shortcuts",t),e?(0,_.jsxs)(fo.Modal,{className:"customize-widgets-keyboard-shortcut-help-modal",title:(0,O.__)("Keyboard shortcuts"),onRequestClose:t,children:[(0,_.jsx)(Rt,{className:"customize-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/customize-widgets/keyboard-shortcuts"]}),(0,_.jsx)(Wt,{title:(0,O.__)("Global shortcuts"),categoryName:"global"}),(0,_.jsx)(Wt,{title:(0,O.__)("Selection shortcuts"),categoryName:"selection"}),(0,_.jsx)(Wt,{title:(0,O.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,O.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,O.__)("Forward-slash")}]}),(0,_.jsx)(Rt,{title:(0,O.__)("Text formatting"),shortcuts:ro})]}):null}var w=s(p(),1);function go(){let[e,t]=(0,co.useState)(!1),r=()=>t(!e);return(0,ho.useShortcut)("core/customize-widgets/keyboard-shortcuts",r),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(j.ToolbarDropdownMenu,{icon:gt,label:(0,b.__)("Options"),popoverProps:{placement:"bottom-end",className:"more-menu-dropdown__content"},toggleProps:{tooltipPosition:"bottom",size:"compact"},children:()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(j.MenuGroup,{label:(0,b._x)("View","noun"),children:(0,w.jsx)(Me.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"fixedToolbar",label:(0,b.__)("Top toolbar"),info:(0,b.__)("Access all block and document tools in a single place"),messageActivated:(0,b.__)("Top toolbar activated"),messageDeactivated:(0,b.__)("Top toolbar deactivated")})}),(0,w.jsxs)(j.MenuGroup,{label:(0,b.__)("Tools"),children:[(0,w.jsx)(j.MenuItem,{onClick:()=>{t(!0)},shortcut:po.displayShortcut.access("h"),children:(0,b.__)("Keyboard shortcuts")}),(0,w.jsx)(Me.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"welcomeGuide",label:(0,b.__)("Welcome Guide")}),(0,w.jsxs)(j.MenuItem,{role:"menuitem",icon:pt,href:(0,b.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener",children:[(0,b.__)("Help"),(0,w.jsx)(_t,{render:(0,w.jsx)("span",{}),children:(0,b.__)("(opens in a new tab)")})]})]}),(0,w.jsx)(j.MenuGroup,{label:(0,b.__)("Preferences"),children:(0,w.jsx)(Me.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"keepCaretInsideBlock",label:(0,b.__)("Contain text cursor inside block"),info:(0,b.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,b.__)("Contain text cursor inside block activated"),messageDeactivated:(0,b.__)("Contain text cursor inside block deactivated")})})]})}),(0,w.jsx)(mo,{isModalActive:e,toggleModal:r})]})}var A=s(p(),1);function ms({sidebar:e,inserter:t,isInserterOpened:r,setIsInserterOpened:o,isFixedToolbarActive:a}){let[[i,n],d]=(0,ee.useState)([e.hasUndo(),e.hasRedo()]),u=(0,Q.isAppleOS)()?Q.displayShortcut.primaryShift("z"):Q.displayShortcut.primary("y");return(0,ee.useEffect)(()=>e.subscribeHistory(()=>{d([e.hasUndo(),e.hasRedo()])}),[e]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:Se("customize-widgets-header",{"is-fixed-toolbar-active":a}),children:(0,A.jsxs)(bo.NavigableToolbar,{className:"customize-widgets-header-toolbar","aria-label":(0,F.__)("Document tools"),children:[(0,A.jsx)(Pe.ToolbarButton,{icon:(0,F.isRTL)()?Be:We,label:(0,F.__)("Undo"),shortcut:Q.displayShortcut.primary("z"),disabled:!i,onClick:e.undo,className:"customize-widgets-editor-history-button undo-button"}),(0,A.jsx)(Pe.ToolbarButton,{icon:(0,F.isRTL)()?We:Be,label:(0,F.__)("Redo"),shortcut:u,disabled:!n,onClick:e.redo,className:"customize-widgets-editor-history-button redo-button"}),(0,A.jsx)(Pe.ToolbarButton,{className:"customize-widgets-header-toolbar__inserter-toggle",isPressed:r,variant:"primary",icon:wt,label:(0,F._x)("Add block","Generic label for block inserter button"),onClick:()=>{o(l=>!l)}}),(0,A.jsx)(go,{})]})}),(0,ee.createPortal)((0,A.jsx)(eo,{setIsOpened:o}),t.contentContainer[0])]})}var wo=ms;var Oe=s(g(),1),te=s(y(),1);function yo(e){let t=(0,te.useSelect)(o=>o(x).isInserterOpened(),[]),{setIsInserterOpened:r}=(0,te.useDispatch)(x);return(0,Oe.useEffect)(()=>{t?e.open():e.close()},[e,t]),[t,(0,Oe.useCallback)(o=>{let a=o;typeof o=="function"&&(a=o((0,te.select)(x).isInserterOpened())),r(a)},[r])]}var Lo=s(I(),1);var xo=s(So(),1),oe=s(g(),1),je=s(_o(),1),re=s(q(),1);var H=s(ot(),1),Co=s(q(),1);function pe(e){let t=e.match(/^widget_(.+)(?:\[(\d+)\])$/);if(t){let r=t[1],o=parseInt(t[2],10);return`${r}-${o}`}return e}function he(e,t=null){let r;if(e.name==="core/legacy-widget"&&(e.attributes.id||e.attributes.instance))if(e.attributes.id)r={id:e.attributes.id};else{let{encoded:d,hash:u,raw:l,...f}=e.attributes.instance;r={idBase:e.attributes.idBase,instance:{...t?.instance,is_widget_customizer_js_value:!0,encoded_serialized_instance:d,instance_hash_key:u,raw_instance:l,...f}}}else r={idBase:"block",widgetClass:"WP_Widget_Block",instance:{raw_instance:{content:(0,H.serialize)(e)}}};let{form:a,rendered:i,...n}=t||{};return{...n,...r}}function Tt({id:e,idBase:t,number:r,instance:o}){let a,{encoded_serialized_instance:i,instance_hash_key:n,raw_instance:d,...u}=o;if(t==="block"){let l=(0,H.parse)(d.content??"",{__unstableSkipAutop:!0});a=l.length?l[0]:(0,H.createBlock)("core/paragraph",{})}else r?a=(0,H.createBlock)("core/legacy-widget",{idBase:t,instance:{encoded:i,hash:n,raw:d,...u}}):a=(0,H.createBlock)("core/legacy-widget",{id:e});return(0,Co.addWidgetIdToBlock)(a,e)}function cs(e){return e.map(t=>Tt(t))}function Io(e){let[t,r]=(0,oe.useState)(()=>cs(e.getWidgets()));(0,oe.useEffect)(()=>e.subscribe((a,i)=>{r(n=>{let d=new Map(a.map(f=>[f.id,f])),u=new Map(n.map(f=>[(0,re.getWidgetIdFromBlock)(f),f])),l=i.map(f=>{let c=d.get(f.id);return c&&c===f?u.get(f.id):Tt(f)});return(0,je.isShallowEqual)(n,l)?n:l})}),[e]);let o=(0,oe.useCallback)(a=>{r(i=>{if((0,je.isShallowEqual)(i,a))return i;let n=new Map(i.map(l=>[(0,re.getWidgetIdFromBlock)(l),l])),d=a.map(l=>{let f=(0,re.getWidgetIdFromBlock)(l);if(f&&n.has(f)){let c=n.get(f),m=e.getWidget(f);return(0,xo.default)(l,c)&&m?m:he(l,m)}return he(l)});if((0,je.isShallowEqual)(e.getWidgets(),d))return i;let u=e.setWidgets(d);return a.reduce((l,f,c)=>{let m=u[c];return m!==null&&(l===a&&(l=a.slice()),l[c]=(0,re.addWidgetIdToBlock)(f,m)),l},a)})},[e]);return[t,o,o]}var ge=s(g(),1),Ao=s(y(),1),Wo=s(I(),1),Ro=s(q(),1);var W=s(g(),1);var Eo=s(p(),1),zt=(0,W.createContext)();zt.displayName="FocusControlContext";function Bo({api:e,sidebarControls:t,children:r}){let[o,a]=(0,W.useState)({current:null}),i=(0,W.useCallback)(d=>{for(let u of t)if(u.setting.get().includes(d)){u.sectionInstance.expand({completeCallback(){a({current:d})}});break}},[t]);(0,W.useEffect)(()=>{function d(f){let c=pe(f);i(c)}let u=!1;function l(){e.previewer.preview.bind("focus-control-for-setting",d),u=!0}return e.previewer.bind("ready",l),()=>{e.previewer.unbind("ready",l),u&&e.previewer.preview.unbind("focus-control-for-setting",d)}},[e,i]);let n=(0,W.useMemo)(()=>[o,i],[o,i]);return(0,Eo.jsx)(zt.Provider,{value:n,children:r})}var Fe=()=>(0,W.useContext)(zt);function To(e){let{selectBlock:t}=(0,Ao.useDispatch)(Wo.store),[r]=Fe(),o=(0,ge.useRef)(e);(0,ge.useEffect)(()=>{o.current=e},[e]),(0,ge.useEffect)(()=>{if(r.current){let a=o.current.find(i=>(0,Ro.getWidgetIdFromBlock)(i)===r.current);a&&(t(a.clientId),document.querySelector(`[data-block="${a.clientId}"]`)?.focus())}},[r,t])}var zo=s(kr(),1),{lock:Wn,unlock:$}=(0,zo.__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/customize-widgets");var No=s(p(),1),{ExperimentalBlockEditorProvider:ps}=$(Lo.privateApis);function Mo({sidebar:e,settings:t,children:r}){let[o,a,i]=Io(e);return To(o),(0,No.jsx)(ps,{value:o,onInput:a,onChange:i,settings:t,useSubRegistry:!1,children:r})}var T=s(R(),1),be=s(P(),1),Po=s(y(),1),Oo=s(ne(),1),k=s(p(),1);function jo({sidebar:e}){let{toggle:t}=(0,Po.useDispatch)(Oo.store),r=e.getWidgets().every(o=>o.id.startsWith("block-"));return(0,k.jsxs)("div",{className:"customize-widgets-welcome-guide",children:[(0,k.jsx)("div",{className:"customize-widgets-welcome-guide__image__wrapper",children:(0,k.jsxs)("picture",{children:[(0,k.jsx)("source",{srcSet:"https://s.w.org/images/block-editor/welcome-editor.svg",media:"(prefers-reduced-motion: reduce)"}),(0,k.jsx)("img",{className:"customize-widgets-welcome-guide__image",src:"https://s.w.org/images/block-editor/welcome-editor.gif",width:"312",height:"240",alt:""})]})}),(0,k.jsx)("h1",{className:"customize-widgets-welcome-guide__heading",children:(0,T.__)("Welcome to block Widgets")}),(0,k.jsx)("p",{className:"customize-widgets-welcome-guide__text",children:r?(0,T.__)("Your theme provides different \u201Cblock\u201D areas for you to add and edit content.\xA0Try adding a search bar, social icons, or other types of blocks here and see how they\u2019ll look on your site."):(0,T.__)("You can now add any block to your site\u2019s widget areas. Don\u2019t worry, all of your favorite widgets still work flawlessly.")}),(0,k.jsx)(be.Button,{size:"compact",variant:"primary",onClick:()=>t("core/customize-widgets","welcomeGuide"),children:(0,T.__)("Got it")}),(0,k.jsx)("hr",{className:"customize-widgets-welcome-guide__separator"}),!r&&(0,k.jsxs)("p",{className:"customize-widgets-welcome-guide__more-info",children:[(0,T.__)("Want to stick with the old widgets?"),(0,k.jsx)("br",{}),(0,k.jsx)(be.ExternalLink,{href:(0,T.__)("https://wordpress.org/plugins/classic-widgets/"),children:(0,T.__)("Get the Classic Widgets plugin.")})]}),(0,k.jsxs)("p",{className:"customize-widgets-welcome-guide__more-info",children:[(0,T.__)("New to the block editor?"),(0,k.jsx)("br",{}),(0,k.jsx)(be.ExternalLink,{href:(0,T.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),children:(0,T.__)("Here's a detailed guide.")})]})]})}var Do=s(g(),1),ae=s(me(),1),Ho=s(X(),1),Vo=s(y(),1),De=s(R(),1),Uo=s(I(),1);var{usesNativeUndo:Fo}=$(Uo.privateApis);function Go({undo:e,redo:t,save:r}){return(0,ae.useShortcut)("core/customize-widgets/undo",o=>{Fo(o)||(e(),o.preventDefault())}),(0,ae.useShortcut)("core/customize-widgets/redo",o=>{Fo(o)||(t(),o.preventDefault())}),(0,ae.useShortcut)("core/customize-widgets/save",o=>{o.preventDefault(),r()}),null}function hs(){let{registerShortcut:e,unregisterShortcut:t}=(0,Vo.useDispatch)(ae.store);return(0,Do.useEffect)(()=>(e({name:"core/customize-widgets/undo",category:"global",description:(0,De.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/customize-widgets/redo",category:"global",description:(0,De.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,Ho.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/customize-widgets/save",category:"global",description:(0,De.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),()=>{t("core/customize-widgets/undo"),t("core/customize-widgets/redo"),t("core/customize-widgets/save")}),[e]),null}Go.Register=hs;var Lt=Go;var He=s(g(),1),Ve=s(I(),1),$o=s(y(),1),Ko=s(p(),1);function qo(e){let t=(0,He.useRef)(),r=(0,$o.useSelect)(o=>o(Ve.store).getBlockCount()===0);return(0,He.useEffect)(()=>{if(r&&t.current){let{ownerDocument:o}=t.current;(!o.activeElement||o.activeElement===o.body)&&t.current.focus()}},[r]),(0,Ko.jsx)(Ve.ButtonBlockAppender,{...e,ref:t})}var v=s(p(),1),{ExperimentalBlockCanvas:gs}=$(L.privateApis),{BlockKeyboardShortcuts:bs}=$(ea.privateApis);function ta({blockEditorSettings:e,sidebar:t,inserter:r,inspector:o}){let[a,i]=yo(r),n=(0,Yo.useViewportMatch)("small"),{hasUploadPermissions:d,isFixedToolbarActive:u,keepCaretInsideBlock:l,isWelcomeGuideActive:f}=(0,Jo.useSelect)(m=>{let{get:S}=m(Qo.store);return{hasUploadPermissions:m(Zo.store).canUser("create",{kind:"postType",name:"attachment"})??!0,isFixedToolbarActive:!!S("core/customize-widgets","fixedToolbar"),keepCaretInsideBlock:!!S("core/customize-widgets","keepCaretInsideBlock"),isWelcomeGuideActive:!!S("core/customize-widgets","welcomeGuide")}},[]),c=(0,Ue.useMemo)(()=>{let m;return d&&(m=({onError:S,...C})=>{(0,Xo.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:M})=>S(M),...C})}),{...e,__experimentalSetIsInserterOpened:i,mediaUpload:m,hasFixedToolbar:u||!n,keepCaretInsideBlock:l,editorTool:"edit",__unstableHasCustomAppender:!0}},[d,e,u,n,l,i]);return f?(0,v.jsx)(jo,{sidebar:t}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Lt.Register,{}),(0,v.jsx)(bs,{}),(0,v.jsxs)(Mo,{sidebar:t,settings:c,children:[(0,v.jsx)(Lt,{undo:t.undo,redo:t.redo,save:t.save}),(0,v.jsx)(wo,{sidebar:t,inserter:r,isInserterOpened:a,setIsInserterOpened:i,isFixedToolbarActive:u||!n}),(u||!n)&&(0,v.jsx)(L.BlockToolbar,{hideDragHandle:!0}),(0,v.jsx)(gs,{shouldIframe:!1,styles:c.defaultEditorStyles,height:"100%",children:(0,v.jsx)(L.BlockList,{renderAppender:qo})}),(0,Ue.createPortal)((0,v.jsx)("form",{onSubmit:m=>m.preventDefault(),children:(0,v.jsx)(L.BlockInspector,{})}),o.contentContainer[0])]}),(0,v.jsx)(L.__unstableBlockSettingsMenuFirstItem,{children:({onClose:m})=>(0,v.jsx)(Ur,{inspector:o,closeMenu:m})})]})}var K=s(g(),1),ra=s(p(),1),Ge=(0,K.createContext)();Ge.displayName="SidebarControlsContext";function oa({sidebarControls:e,activeSidebarControl:t,children:r}){let o=(0,K.useMemo)(()=>({sidebarControls:e,activeSidebarControl:t}),[e,t]);return(0,ra.jsx)(Ge.Provider,{value:o,children:r})}function aa(){let{sidebarControls:e}=(0,K.useContext)(Ge);return e}function sa(){let{activeSidebarControl:e}=(0,K.useContext)(Ge);return e}var ia=s(g(),1),$e=s(y(),1),Nt=s(I(),1);function na(e,t){let{hasSelectedBlock:r,hasMultiSelection:o}=(0,$e.useSelect)(Nt.store),{clearSelectedBlock:a}=(0,$e.useDispatch)(Nt.store);(0,ia.useEffect)(()=>{if(t.current&&e){let i=function(m){(r()||o())&&m&&f.contains(m)&&!l.contains(m)&&!t.current.contains(m)&&!m.closest('[role="dialog"]')&&!u.expanded()&&a()},n=function(m){i(m.target)},d=function(){i(f.activeElement)},u=e.inspector,l=e.container[0],f=l.ownerDocument,c=f.defaultView;return f.addEventListener("mousedown",n),c.addEventListener("blur",d),()=>{f.removeEventListener("mousedown",n),c.removeEventListener("blur",d)}}},[t,e,r,o,a])}var N=s(p(),1);function da({api:e,sidebarControls:t,blockEditorSettings:r}){let[o,a]=(0,z.useState)(null),i=document.getElementById("customize-theme-controls"),n=(0,z.useRef)(),d=(0,z.useMemo)(()=>Ct().primary,[]);na(o,n),(0,z.useEffect)(()=>{let f=t.map(c=>c.subscribe(m=>{m&&a(c)}));return()=>{f.forEach(c=>c())}},[t]);let u=o&&(0,z.createPortal)((0,N.jsx)(Lr,{children:(0,N.jsx)(ta,{blockEditorSettings:r,sidebar:o.sidebarAdapter,inserter:o.inserter,inspector:o.inspector},o.id)}),o.container[0]),l=i&&(0,z.createPortal)((0,N.jsx)("div",{className:"customize-widgets-popover",ref:n,children:(0,N.jsx)(Ke.Popover.Slot,{})}),i);return(0,N.jsx)(Ke.SlotFillProvider,{children:(0,N.jsx)(la.ThemeProvider,{isRoot:!0,color:{primary:d},children:(0,N.jsx)(oa,{sidebarControls:t,activeSidebarControl:o,children:(0,N.jsxs)(Bo,{api:e,sidebarControls:t,children:[u,l]})})})})}var qe=s(R(),1);function fa(){let{wp:{customize:e}}=window;return class extends e.Section{constructor(r,o){super(r,o),this.parentSection=o.parentSection,this.returnFocusWhenClose=null,this._isOpen=!1}get isOpen(){return this._isOpen}set isOpen(r){this._isOpen=r,this.triggerActiveCallbacks()}ready(){this.contentContainer[0].classList.add("customize-widgets-layout__inspector")}isContextuallyActive(){return this.isOpen}onChangeExpanded(r,o){super.onChangeExpanded(r,o),this.parentSection&&!o.unchanged&&(r?this.parentSection.collapse({manualTransition:!0}):this.parentSection.expand({manualTransition:!0,completeCallback:()=>{this.returnFocusWhenClose&&!this.contentContainer[0].contains(this.returnFocusWhenClose)&&this.returnFocusWhenClose.focus()}}))}open({returnFocusWhenClose:r}={}){this.isOpen=!0,this.returnFocusWhenClose=r,this.expand({allowMultiple:!0})}close(){this.collapse({allowMultiple:!0})}collapse(r){this.isOpen=!1,super.collapse(r)}triggerActiveCallbacks(){this.active.callbacks.fireWith(this.active,[!1,!0])}}}var ws=e=>`widgets-inspector-${e}`;function ua(){let{wp:{customize:e}}=window,t=window.matchMedia("(prefers-reduced-motion: reduce)"),r=t.matches;return t.addEventListener("change",o=>{r=o.matches}),class extends e.Section{ready(){let a=fa();this.inspector=new a(ws(this.id),{title:(0,qe.__)("Block Settings"),parentSection:this,customizeAction:[(0,qe.__)("Customizing"),(0,qe.__)("Widgets"),this.params.title].join(" \u25B8 ")}),e.section.add(this.inspector),this.contentContainer[0].classList.add("customize-widgets__sidebar-section")}hasSubSectionOpened(){return this.inspector.expanded()}onChangeExpanded(a,i){let n=this.controls(),d={...i,completeCallback(){n.forEach(u=>{u.onChangeSectionExpanded?.(a,d)}),i.completeCallback?.()}};if(d.manualTransition){a?(this.contentContainer.addClass(["busy","open"]),this.contentContainer.removeClass("is-sub-section-open"),this.contentContainer.closest(".wp-full-overlay").addClass("section-open")):(this.contentContainer.addClass(["busy","is-sub-section-open"]),this.contentContainer.closest(".wp-full-overlay").addClass("section-open"),this.contentContainer.removeClass("open"));let u=()=>{this.contentContainer.removeClass("busy"),d.completeCallback()};r?u():this.contentContainer.one("transitionend",u)}else super.onChangeExpanded(a,d)}}}var va=s(y(),1);var{wp:ma}=window;function ca(e){let t=e.match(/^(.+)-(\d+)$/);return t?{idBase:t[1],number:parseInt(t[2],10)}:{idBase:e}}function Mt(e){let{idBase:t,number:r}=ca(e);return r?`widget_${t}[${r}]`:`widget_${t}`}function ys(e,t,r){let o=!1,a;function i(...n){let d=(o?t:e).apply(this,n);return o=!0,clearTimeout(a),a=setTimeout(()=>{o=!1},r),d}return i.cancel=()=>{o=!1,clearTimeout(a)},i}var pa=class{constructor(e,t){this.setting=e,this.api=t,this.locked=!1,this.widgetsCache=new WeakMap,this.subscribers=new Set,this.history=[this._getWidgetIds().map(r=>this.getWidget(r))],this.historyIndex=0,this.historySubscribers=new Set,this._debounceSetHistory=ys(this._pushHistory,this._replaceHistory,1e3),this.setting.bind(this._handleSettingChange.bind(this)),this.api.bind("change",this._handleAllSettingsChange.bind(this)),this.undo=this.undo.bind(this),this.redo=this.redo.bind(this),this.save=this.save.bind(this)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}getWidgets(){return this.history[this.historyIndex]}_emit(...e){for(let t of this.subscribers)t(...e)}_getWidgetIds(){return this.setting.get()}_pushHistory(){this.history=[...this.history.slice(0,this.historyIndex+1),this._getWidgetIds().map(e=>this.getWidget(e))],this.historyIndex+=1,this.historySubscribers.forEach(e=>e())}_replaceHistory(){this.history[this.historyIndex]=this._getWidgetIds().map(e=>this.getWidget(e))}_handleSettingChange(){if(this.locked)return;let e=this.getWidgets();this._pushHistory(),this._emit(e,this.getWidgets())}_handleAllSettingsChange(e){if(this.locked||!e.id.startsWith("widget_"))return;let t=pe(e.id);if(!this.setting.get().includes(t))return;let r=this.getWidgets();this._pushHistory(),this._emit(r,this.getWidgets())}_createWidget(e){let t=ma.customize.Widgets.availableWidgets.findWhere({id_base:e.idBase}),r=e.number;t.get("is_multi")&&!r&&(t.set("multi_number",t.get("multi_number")+1),r=t.get("multi_number"));let o=r?`widget_${e.idBase}[${r}]`:`widget_${e.idBase}`,a={transport:ma.customize.Widgets.data.selectiveRefreshableWidgets[t.get("id_base")]?"postMessage":"refresh",previewer:this.setting.previewer};return this.api.create(o,o,"",a).set(e.instance),pe(o)}_removeWidget(e){let t=Mt(e.id),r=this.api(t);if(r){let o=r.get();this.widgetsCache.delete(o)}this.api.remove(t)}_updateWidget(e){let t=this.getWidget(e.id);if(t===e)return e.id;if(t.idBase&&e.idBase&&t.idBase===e.idBase){let r=Mt(e.id);return this.api(r).set(e.instance),e.id}return this._removeWidget(e),this._createWidget(e)}getWidget(e){if(!e)return null;let{idBase:t,number:r}=ca(e),o=Mt(e),a=this.api(o);if(!a)return null;let i=a.get();if(this.widgetsCache.has(i))return this.widgetsCache.get(i);let n={id:e,idBase:t,number:r,instance:i};return this.widgetsCache.set(i,n),n}_updateWidgets(e){this.locked=!0;let t=[],r=e.map(a=>{if(a.id&&this.getWidget(a.id))return t.push(null),this._updateWidget(a);let i=this._createWidget(a);return t.push(i),i});return this.getWidgets().filter(a=>!r.includes(a.id)).forEach(a=>this._removeWidget(a)),this.setting.set(r),this.locked=!1,t}setWidgets(e){let t=this._updateWidgets(e);return this._debounceSetHistory(),t}hasUndo(){return this.historyIndex>0}hasRedo(){return this.historyIndex<this.history.length-1}_seek(e){let t=this.getWidgets();this.historyIndex=e;let r=this.history[this.historyIndex];this._updateWidgets(r),this._emit(t,this.getWidgets()),this.historySubscribers.forEach(o=>o()),this._debounceSetHistory.cancel()}undo(){this.hasUndo()&&this._seek(this.historyIndex-1)}redo(){this.hasRedo()&&this._seek(this.historyIndex+1)}subscribeHistory(e){return this.historySubscribers.add(e),()=>{this.historySubscribers.delete(e)}}save(){this.api.previewer.save()}};var ba=s(X(),1),wa=s(ga(),1),Pt=s(y(),1);function ya(){let{wp:{customize:e}}=window,t=e.OuterSection;return e.OuterSection=class extends t{onChangeExpanded(r,o){return r&&e.section.each(a=>{a.params.type==="outer"&&a.id!==this.id&&a.expanded()&&a.collapse()}),super.onChangeExpanded(r,o)}},e.sectionConstructor.outer=e.OuterSection,class extends e.OuterSection{constructor(...o){super(...o),this.params.type="outer",this.activeElementBeforeExpanded=null,this.contentContainer[0].ownerDocument.defaultView.addEventListener("keydown",i=>{this.expanded()&&(i.keyCode===ba.ESCAPE||i.code==="Escape")&&!i.defaultPrevented&&(i.preventDefault(),i.stopPropagation(),(0,Pt.dispatch)(x).setIsInserterOpened(!1))},!0),this.contentContainer.addClass("widgets-inserter"),this.isFromInternalAction=!1,this.expanded.bind(()=>{this.isFromInternalAction||(0,Pt.dispatch)(x).setIsInserterOpened(this.expanded()),this.isFromInternalAction=!1})}open(){if(!this.expanded()){let o=this.contentContainer[0];this.activeElementBeforeExpanded=o.ownerDocument.activeElement,this.isFromInternalAction=!0,this.expand({completeCallback(){let a=wa.focus.tabbable.find(o)[1];a&&a.focus()}})}}close(){if(this.expanded()){let o=this.contentContainer[0],a=o.ownerDocument.activeElement;this.isFromInternalAction=!0,this.collapse({completeCallback(){o.contains(a)&&this.activeElementBeforeExpanded&&this.activeElementBeforeExpanded.focus()}})}}}}var vs=e=>`widgets-inserter-${e}`;function Sa(){let{wp:{customize:e}}=window;return class extends e.Control{constructor(...r){super(...r),this.subscribers=new Set}ready(){let r=ya();this.inserter=new r(vs(this.id),{}),e.section.add(this.inserter),this.sectionInstance=e.section(this.section()),this.inspector=this.sectionInstance.inspector,this.sidebarAdapter=new pa(this.setting,e)}subscribe(r){return this.subscribers.add(r),()=>{this.subscribers.delete(r)}}onChangeSectionExpanded(r,o){o.unchanged||(r||(0,va.dispatch)(x).setIsInserterOpened(!1),this.subscribers.forEach(a=>a(r,o)))}}}var se=s(I(),1),ka=s(J(),1),we=s(y(),1),_a=s(ue(),1),Ye=s(q(),1);var V=s(p(),1),Ss=(0,ka.createHigherOrderComponent)(e=>t=>{let r=(0,Ye.getWidgetIdFromBlock)(t),o=aa(),a=sa(),i=o?.length>1,n=t.name,d=t.clientId,u=(0,we.useSelect)(S=>S(se.store).canInsertBlockType(n,""),[n]),l=(0,we.useSelect)(S=>S(se.store).getBlock(d),[d]),{removeBlock:f}=(0,we.useDispatch)(se.store),[,c]=Fe();function m(S){let C=o.find(M=>M.id===S);if(r){let M=a.setting,Qe=C.setting;M(M().filter(et=>et!==r)),Qe([...Qe(),r])}else{let M=C.sidebarAdapter;f(d),r=M.setWidgets([...M.getWidgets(),he(l)]).reverse().find(et=>!!et)}c(r)}return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(e,{...t},"edit"),i&&u&&(0,V.jsx)(se.BlockControls,{children:(0,V.jsx)(Ye.MoveToWidgetArea,{widgetAreas:o.map(S=>({id:S.id,name:S.params.label,description:S.params.description})),currentWidgetAreaId:a?.id,onSelect:m})})]})},"withMoveToSidebarToolbarItem");(0,_a.addFilter)("editor.BlockEdit","core/customize-widgets/block-edit",Ss);var Ca=s(ue(),1),xa=s(It(),1),ks=()=>xa.MediaUpload;(0,Ca.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",ks);var Ia=s(J(),1),Ea=s(ue(),1),Ba=s(p(),1),{wp:_s}=window,Cs=(0,Ia.createHigherOrderComponent)(e=>t=>{let{idBase:r}=t.attributes,o=_s.customize.Widgets.data.availableWidgets.find(a=>a.id_base===r)?.is_wide??!1;return(0,Ba.jsx)(e,{...t,isWide:o},"edit")},"withWideWidgetDisplay");(0,Ea.addFilter)("editor.BlockEdit","core/customize-widgets/wide-widget-display",Cs);var jt=s(p(),1),{wp:ye}=window,xs=["core/more","core/block","core/freeform","core/template-part"];function Is(e,t){(0,Ot.dispatch)(Aa.store).setDefaults("core/customize-widgets",{fixedToolbar:!1,welcomeGuide:!0}),(0,Ot.dispatch)(Xe.store).reapplyBlockTypeFilters();let r=(0,Je.__experimentalGetCoreBlocks)().filter(i=>!(xs.includes(i.name)||i.name.startsWith("core/post")||i.name.startsWith("core/query")||i.name.startsWith("core/site")||i.name.startsWith("core/navigation")||i.name.startsWith("core/term")));(0,Je.registerCoreBlocks)(r),(0,ie.registerLegacyWidgetBlock)(),(0,ie.registerLegacyWidgetVariations)(t),(0,ie.registerWidgetGroupBlock)(),(0,Xe.setFreeformContentHandlerName)("core/html");let o=Sa(t);ye.customize.sectionConstructor.sidebar=ua(),ye.customize.controlConstructor.sidebar_block_editor=o;let a=document.createElement("div");document.body.appendChild(a),ye.customize.bind("ready",()=>{let i=[];ye.customize.control.each(n=>{n instanceof o&&i.push(n)}),(0,Ze.createRoot)(a).render((0,jt.jsx)(Ze.StrictMode,{children:(0,jt.jsx)(da,{api:ye.customize,sidebarControls:i,blockEditorSettings:t})}))})}return Na(Es);})(); (window.wp ||= {}).customizeWidgets = wp.customizeWidgets; })();
Save