(()=>{var e={20:(e,t,r)=>{"use strict";var n=r(540),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,c={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!a.hasOwnProperty(n)&&(c[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===c[n]&&(c[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:c,_owner:s.current}}t.jsx=c,t.jsxs=c},138:()=>{jQuery,acf.jsxNameReplacements={"accent-height":"accentHeight",accentheight:"accentHeight","accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey","alignment-baseline":"alignmentBaseline",alignmentbaseline:"alignmentBaseline",allowedblocks:"allowedBlocks",allowfullscreen:"allowFullScreen",allowreorder:"allowReorder","arabic-form":"arabicForm",arabicform:"arabicForm",attributename:"attributeName",attributetype:"attributeType",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autoreverse:"autoReverse",autosave:"autoSave",basefrequency:"baseFrequency","baseline-shift":"baselineShift",baselineshift:"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode","cap-height":"capHeight",capheight:"capHeight",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className","clip-path":"clipPath","clip-rule":"clipRule",clippath:"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","color-interpolation":"colorInterpolation","color-interpolation-filters":"colorInterpolationFilters","color-profile":"colorProfile","color-rendering":"colorRendering",colorinterpolation:"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters",colorprofile:"colorProfile",colorrendering:"colorRendering",colspan:"colSpan",contenteditable:"contentEditable",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",diffuseconstant:"diffuseConstant",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback","dominant-baseline":"dominantBaseline",dominantbaseline:"dominantBaseline",edgemode:"edgeMode","enable-background":"enableBackground",enablebackground:"enableBackground",enctype:"encType",enterkeyhint:"enterKeyHint",externalresourcesrequired:"externalResourcesRequired","fill-opacity":"fillOpacity","fill-rule":"fillRule",fillopacity:"fillOpacity",fillrule:"fillRule",filterres:"filterRes",filterunits:"filterUnits","flood-color":"floodColor","flood-opacity":"floodOpacity",floodcolor:"floodColor",floodopacity:"floodOpacity","font-family":"fontFamily","font-size":"fontSize","font-size-adjust":"fontSizeAdjust","font-stretch":"fontStretch","font-style":"fontStyle","font-variant":"fontVariant","font-weight":"fontWeight",fontfamily:"fontFamily",fontsize:"fontSize",fontsizeadjust:"fontSizeAdjust",fontstretch:"fontStretch",fontstyle:"fontStyle",fontvariant:"fontVariant",fontweight:"fontWeight",for:"htmlFor",foreignobject:"foreignObject",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder","glyph-name":"glyphName","glyph-orientation-horizontal":"glyphOrientationHorizontal","glyph-orientation-vertical":"glyphOrientationVertical",glyphname:"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits","horiz-adv-x":"horizAdvX","horiz-origin-x":"horizOriginX",horizadvx:"horizAdvX",horizoriginx:"horizOriginX",hreflang:"hrefLang",htmlfor:"htmlFor","http-equiv":"httpEquiv",httpequiv:"httpEquiv","image-rendering":"imageRendering",imagerendering:"imageRendering",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keyparams:"keyParams",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",keytype:"keyType",lengthadjust:"lengthAdjust","letter-spacing":"letterSpacing",letterspacing:"letterSpacing","lighting-color":"lightingColor",lightingcolor:"lightingColor",limitingconeangle:"limitingConeAngle",marginheight:"marginHeight",marginwidth:"marginWidth","marker-end":"markerEnd","marker-mid":"markerMid","marker-start":"markerStart",markerend:"markerEnd",markerheight:"markerHeight",markermid:"markerMid",markerstart:"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",numoctaves:"numOctaves","overline-position":"overlinePosition","overline-thickness":"overlineThickness",overlineposition:"overlinePosition",overlinethickness:"overlineThickness","paint-order":"paintOrder",paintorder:"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",playsinline:"playsInline","pointer-events":"pointerEvents",pointerevents:"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",refx:"refX",refy:"refY","rendering-intent":"renderingIntent",renderingintent:"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",rowspan:"rowSpan","shape-rendering":"shapeRendering",shaperendering:"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spellcheck:"spellCheck",spreadmethod:"spreadMethod",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles","stop-color":"stopColor","stop-opacity":"stopOpacity",stopcolor:"stopColor",stopopacity:"stopOpacity","strikethrough-position":"strikethroughPosition","strikethrough-thickness":"strikethroughThickness",strikethroughposition:"strikethroughPosition",strikethroughthickness:"strikethroughThickness","stroke-dasharray":"strokeDasharray","stroke-dashoffset":"strokeDashoffset","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","stroke-miterlimit":"strokeMiterlimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth",strokedasharray:"strokeDasharray",strokedashoffset:"strokeDashoffset",strokelinecap:"strokeLinecap",strokelinejoin:"strokeLinejoin",strokemiterlimit:"strokeMiterlimit",strokeopacity:"strokeOpacity",strokewidth:"strokeWidth",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tabindex:"tabIndex",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",templatelock:"templateLock","text-anchor":"textAnchor","text-decoration":"textDecoration","text-rendering":"textRendering",textanchor:"textAnchor",textdecoration:"textDecoration",textlength:"textLength",textrendering:"textRendering","underline-position":"underlinePosition","underline-thickness":"underlineThickness",underlineposition:"underlinePosition",underlinethickness:"underlineThickness","unicode-bidi":"unicodeBidi","unicode-range":"unicodeRange",unicodebidi:"unicodeBidi",unicoderange:"unicodeRange","units-per-em":"unitsPerEm",unitsperem:"unitsPerEm",usemap:"useMap","v-alphabetic":"vAlphabetic","v-hanging":"vHanging","v-ideographic":"vIdeographic","v-mathematical":"vMathematical",valphabetic:"vAlphabetic","vector-effect":"vectorEffect",vectoreffect:"vectorEffect","vert-adv-y":"vertAdvY","vert-origin-x":"vertOriginX","vert-origin-y":"vertOriginY",vertadvy:"vertAdvY",vertoriginx:"vertOriginX",vertoriginy:"vertOriginY",vhanging:"vHanging",videographic:"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","word-spacing":"wordSpacing",wordspacing:"wordSpacing","writing-mode":"writingMode",writingmode:"writingMode","x-height":"xHeight",xchannelselector:"xChannelSelector",xheight:"xHeight","xlink:actuate":"xlinkActuate","xlink:arcrole":"xlinkArcrole","xlink:href":"xlinkHref","xlink:role":"xlinkRole","xlink:show":"xlinkShow","xlink:title":"xlinkTitle","xlink:type":"xlinkType",xlinkactuate:"xlinkActuate",xlinkarcrole:"xlinkArcrole",xlinkhref:"xlinkHref",xlinkrole:"xlinkRole",xlinkshow:"xlinkShow",xlinktitle:"xlinkTitle",xlinktype:"xlinkType","xml:base":"xmlBase","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlbase:"xmlBase",xmllang:"xmlLang","xmlns:xlink":"xmlnsXlink",xmlnsxlink:"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"}},151:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},287:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}function y(){}function k(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var v=k.prototype=new y;v.constructor=k,m(v,b.prototype),v.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,_={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)w.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=n;else if(1{var n,o,i,s,a;n=r(939),o=r(151).utf8,i=r(206),s=r(151).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?s.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var r=n.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,p=-1732584194,d=271733878,f=0;f>>24)|4278255360&(r[f]<<24|r[f]>>>8);r[c>>>5]|=128<>>9<<4)]=c;var h=a._ff,m=a._gg,g=a._hh,b=a._ii;for(f=0;f>>0,u=u+k>>>0,p=p+v>>>0,d=d+x>>>0}return n.endian([l,u,p,d])})._ff=function(e,t,r,n,o,i,s){var a=e+(t&r|~t&n)+(o>>>0)+s;return(a<>>32-i)+t},a._gg=function(e,t,r,n,o,i,s){var a=e+(t&n|r&~n)+(o>>>0)+s;return(a<>>32-i)+t},a._hh=function(e,t,r,n,o,i,s){var a=e+(t^r^n)+(o>>>0)+s;return(a<>>32-i)+t},a._ii=function(e,t,r,n,o,i,s){var a=e+(r^(t|~n))+(o>>>0)+s;return(a<>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(a(e,t));return t&&t.asBytes?r:t&&t.asString?s.bytesToString(r):n.bytesToHex(r)}},540:(e,t,r)=>{"use strict";e.exports=r(287)},848:(e,t,r)=>{"use strict";e.exports=r(20)},939:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n>>6-2*o);return r}},e.exports=r}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(()=>{"use strict";r(138);var e=r(848);const t=r(503);((r,n)=>{const{BlockControls:o,InspectorControls:i,InnerBlocks:s,useBlockProps:a,AlignmentToolbar:c,BlockVerticalAlignmentToolbar:l}=wp.blockEditor,{ToolbarGroup:u,ToolbarButton:p,Placeholder:d,Spinner:f}=wp.components,{Fragment:h}=wp.element,{Component:m}=React,{useSelect:g}=wp.data,{createHigherOrderComponent:b}=wp.compose,y=wp.blockEditor.__experimentalBlockAlignmentMatrixToolbar||wp.blockEditor.BlockAlignmentMatrixToolbar,k=wp.blockEditor.__experimentalBlockAlignmentMatrixControl||wp.blockEditor.BlockAlignmentMatrixControl,v=wp.blockEditor.__experimentalBlockFullHeightAligmentControl||wp.blockEditor.__experimentalBlockFullHeightAlignmentControl||wp.blockEditor.BlockFullHeightAlignmentControl,x=wp.blockEditor.__experimentalUseInnerBlocksProps||wp.blockEditor.useInnerBlocksProps,w={};function _(e){return w[e]||!1}function S(e){return _(e).acf_block_version||1}function j(e){return _(e).validate}function A(e){const t=wp.data.select("core/block-editor").getBlockParents(e);return wp.data.select("core/block-editor").getBlocksByClientId(t).filter((e=>"core/query"===e.name)).length}function I(){return document.querySelectorAll('iframe[name="editor-canvas"]').length>0}function C(t){const r=t.post_types||[];if(r.length){r.push("wp_block");const e=acf.get("postType");if(!r.includes(e))return!1}if("string"==typeof t.icon&&"e===t.category)).pop()||(t.category="common"),t=acf.parseArgs(t,{title:"",name:"",category:"",api_version:2,acf_block_version:1});for(const e in t.attributes)"default"in t.attributes[e]&&0===t.attributes[e].default.length&&delete t.attributes[e].default;t.supports.anchor&&(t.attributes.anchor={type:"string"});let i=H,s=N;var a;(t.supports.alignText||t.supports.align_text)&&(t.attributes=Y(t.attributes,"align_text","string"),i=function(t,r){const n=X;return r.alignText=n(r.alignText),class extends m{render(){const{attributes:r,setAttributes:i}=this.props,{alignText:s}=r;return(0,e.jsxs)(h,{children:[(0,e.jsx)(o,{group:"block",children:(0,e.jsx)(c,{value:n(s),onChange:function(e){i({alignText:n(e)})}})}),(0,e.jsx)(t,{...this.props})]})}}}(i,t)),(t.supports.alignContent||t.supports.align_content)&&(t.attributes=Y(t.attributes,"align_content","string"),i=function(t,r){let i,s,a=r.supports.align_content||r.supports.alignContent;return"matrix"===a?(i=k||y,s=J):(i=l,s=W),i===n?(console.warn(`The "${a}" alignment component was not found.`),t):(r.alignContent=s(r.alignContent),class extends m{render(){const{attributes:r,setAttributes:n}=this.props,{alignContent:a}=r;return(0,e.jsxs)(h,{children:[(0,e.jsx)(o,{group:"block",children:(0,e.jsx)(i,{label:acf.__("Change content alignment"),value:s(a),onChange:function(e){n({alignContent:s(e)})}})}),(0,e.jsx)(t,{...this.props})]})}})}(i,t)),(t.supports.fullHeight||t.supports.full_height)&&(t.attributes=Y(t.attributes,"full_height","boolean"),a=i,t.blockType,i=v?class extends m{render(){const{attributes:t,setAttributes:r}=this.props,{fullHeight:n}=t;return(0,e.jsxs)(h,{children:[(0,e.jsx)(o,{group:"block",children:(0,e.jsx)(v,{isActive:n,onToggle:function(e){r({fullHeight:e})}})}),(0,e.jsx)(a,{...this.props})]})}}:a),t.edit=t=>(wp.element.useEffect((()=>()=>{wp.data.dispatch("core/editor")&&wp.data.dispatch("core/editor").unlockPostSaving("acf/block/"+t.clientId)}),[]),(0,e.jsx)(i,{...t})),t.save=()=>(0,e.jsx)(s,{}),w[t.name]=t;const u=wp.blocks.registerBlockType(t.name,t);return u.attributes.anchor&&(u.attributes.anchor={type:"string"}),u}acf.blockInstances={};const T={},B={};function E(e){const{attributes:n={},context:o={},query:i={},clientId:s=null,delay:a=0}=e,c=t(JSON.stringify({...n,...o,...i})),l=T[c]||{query:{},timeout:!1,promise:r.Deferred(),started:!1};return l.query={...l.query,...i},l.started||(clearTimeout(l.timeout),l.timeout=setTimeout((()=>{l.started=!0,B[c]?(T[c]=null,l.promise.resolve.apply(B[c][0],B[c][1])):r.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",cache:!1,data:acf.prepareForAjax({action:"acf/ajax/fetch-block",block:JSON.stringify(n),clientId:s,context:JSON.stringify(o),query:l.query})}).always((()=>{T[c]=null})).done((function(){B[c]=[this,arguments],l.promise.resolve.apply(this,arguments)})).fail((function(){l.promise.reject.apply(this,arguments)}))}),a),T[c]=l),l.promise}function R(e,t){return JSON.stringify(e)===JSON.stringify(t)}function O(t,r,n=0){const o=function(e,t){switch(e){case"innerblocks":return t<2?s:"ACFInnerBlocks";case"script":return L;case"#comment":return null;default:e=P(e)}return e}(t.nodeName.toLowerCase(),r);if(!o)return null;const i={};if(1===n&&"ACFInnerBlocks"!==o&&(i.ref=React.createRef()),acf.arrayArgs(t.attributes).map(F).forEach((({name:e,value:t})=>{i[e]=t})),"ACFInnerBlocks"===o)return(0,e.jsx)($,{...i});const a=[o,i];return acf.arrayArgs(t.childNodes).forEach((e=>{if(e instanceof Text){const t=e.textContent;t&&a.push(t)}else a.push(O(e,r,n+1))})),React.createElement.apply(this,a)}function P(e){return acf.isget(acf,"jsxNameReplacements",e)||e}function $(t){const{className:r="acf-innerblocks-container"}=t,n=x({className:r},t);return(0,e.jsx)("div",{...n,children:n.children})}function F(e){let t=e.name,r=e.value,n=acf.applyFilters("acf_blocks_parse_node_attr",!1,e);if(n)return n;switch(t){case"class":t="className";break;case"style":const e={};r.split(";").forEach((t=>{const r=t.indexOf(":");if(r>0){let n=t.substr(0,r).trim();const o=t.substr(r+1).trim();"-"!==n.charAt(0)&&(n=acf.strCamelCase(n)),e[n]=o}})),r=e;break;default:if(0===t.indexOf("data-"))break;t=P(t);const n=r.charAt(0);"["!==n&&"{"!==n||(r=JSON.parse(r)),"true"!==r&&"false"!==r||(r="true"===r)}return{name:t,value:r}}acf.parseJSX=(e,t)=>(e=(e="
"+e+"
").replace(/]+)?\/>/,""),O(r(e)[0],t,0).props.children);const M=b((t=>class extends m{constructor(e){super(e);const{name:t,attributes:r}=this.props,o=_(t);if(!o)return;Object.keys(r).forEach((e=>{""===r[e]&&delete r[e]}));const i={full_height:"fullHeight",align_content:"alignContent",align_text:"alignText"};Object.keys(i).forEach((e=>{r[e]!==n?r[i[e]]=r[e]:r[i[e]]===n&&o[e]!==n&&(r[i[e]]=o[e]),delete o[e],delete r[e]}));for(let e in o.attributes)r[e]===n&&o[e]!==n&&(r[e]=o[e])}render(){return(0,e.jsx)(t,{...this.props})}}),"withDefaultAttributes");function N(){return(0,e.jsx)(s.Content,{})}wp.hooks.addFilter("editor.BlockListBlock","acf/with-default-attributes",M);class H extends m{constructor(e){super(e),this.setup()}setup(){const{name:e,attributes:t,clientId:r}=this.props,n=_(e);function o(e){e.includes(t.mode)||(t.mode=e[0])}if(A(r)||I())o(["preview"]);else switch(n.mode){case"edit":o(["edit","preview"]);break;case"preview":o(["preview","edit"]);break;default:o(["auto"])}}render(){const{name:t,attributes:r,setAttributes:n,clientId:s}=this.props,a=_(t),c=A(s)||I();let{mode:l}=r;c&&(l="preview");let d=a.supports.mode;("auto"===l||c)&&(d=!1);const f="preview"===l?acf.__("Switch to Edit"):acf.__("Switch to Preview"),m="preview"===l?"edit":"welcome-view-site";return(0,e.jsxs)(h,{children:[(0,e.jsx)(o,{children:d&&(0,e.jsx)(u,{children:(0,e.jsx)(p,{className:"components-icon-button components-toolbar__control",label:f,icon:m,onClick:function(){n({mode:"preview"===l?"edit":"preview"})}})})}),(0,e.jsx)(i,{children:"preview"===l&&(0,e.jsx)("div",{className:"acf-block-component acf-block-panel",children:(0,e.jsx)(z,{...this.props})})}),(0,e.jsx)(D,{...this.props})]})}}function D(t){const{attributes:r,isSelected:n,name:o,clientId:i}=t,{mode:s}=r,c=g((e=>{const t=e("core/block-editor").getBlockRootClientId(i);return e("core/block-editor").getBlockIndex(i,t)}));let l=!0,u="acf-block-component acf-block-body";return("auto"===s&&!n||"preview"===s)&&(u+=" acf-block-preview",l=!1),i in acf.blockInstances||(acf.blockInstances[i]={validation_errors:!1,mode:s}),acf.blockInstances[i].mode=s,n||(j(o)&&acf.blockInstances[i].validation_errors&&(u+=" acf-block-has-validation-error"),acf.blockInstances[i].has_been_deselected=!0),S(o)>1?(0,e.jsx)("div",{...a({className:u}),children:l?(0,e.jsx)(z,{...t,index:c}):(0,e.jsx)(q,{...t,index:c})}):(0,e.jsx)("div",{...a(),children:(0,e.jsx)("div",{className:"acf-block-component acf-block-body",children:l?(0,e.jsx)(z,{...t,index:c}):(0,e.jsx)(q,{...t,index:c})})})}class V extends m{render(){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:this.props.children}})}}class L extends m{render(){return(0,e.jsx)("div",{ref:e=>this.el=e})}setHTML(e){r(this.el).html(`