Mini Shell

Direktori : /home/brasafestival/www/old/wp-content/plugins/advanced-custom-fields-pro/assets/build/js/pro/
Upload File :
Current File : /home/brasafestival/www/old/wp-content/plugins/advanced-custom-fields-pro/assets/build/js/pro/acf-pro-blocks.min.js

(()=>{var e={905:()=>{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",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"}},487: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<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=t},12:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|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;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>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<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var o=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?r.push(t.charAt(o>>>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<e.length;o=++n%4)0!=o&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(n))>>>6-2*o);return r}},e.exports=r},738:e=>{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)}},568:(e,t,r)=>{var n,o,i,a,s;n=r(12),o=r(487).utf8,i=r(738),a=r(487).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.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),l=8*e.length,c=1732584193,p=-271733879,u=-1732584194,d=271733878,h=0;h<r.length;h++)r[h]=16711935&(r[h]<<8|r[h]>>>24)|4278255360&(r[h]<<24|r[h]>>>8);r[l>>>5]|=128<<l%32,r[14+(l+64>>>9<<4)]=l;var f=s._ff,m=s._gg,g=s._hh,y=s._ii;for(h=0;h<r.length;h+=16){var b=c,k=p,v=u,x=d;c=f(c,p,u,d,r[h+0],7,-680876936),d=f(d,c,p,u,r[h+1],12,-389564586),u=f(u,d,c,p,r[h+2],17,606105819),p=f(p,u,d,c,r[h+3],22,-1044525330),c=f(c,p,u,d,r[h+4],7,-176418897),d=f(d,c,p,u,r[h+5],12,1200080426),u=f(u,d,c,p,r[h+6],17,-1473231341),p=f(p,u,d,c,r[h+7],22,-45705983),c=f(c,p,u,d,r[h+8],7,1770035416),d=f(d,c,p,u,r[h+9],12,-1958414417),u=f(u,d,c,p,r[h+10],17,-42063),p=f(p,u,d,c,r[h+11],22,-1990404162),c=f(c,p,u,d,r[h+12],7,1804603682),d=f(d,c,p,u,r[h+13],12,-40341101),u=f(u,d,c,p,r[h+14],17,-1502002290),c=m(c,p=f(p,u,d,c,r[h+15],22,1236535329),u,d,r[h+1],5,-165796510),d=m(d,c,p,u,r[h+6],9,-1069501632),u=m(u,d,c,p,r[h+11],14,643717713),p=m(p,u,d,c,r[h+0],20,-373897302),c=m(c,p,u,d,r[h+5],5,-701558691),d=m(d,c,p,u,r[h+10],9,38016083),u=m(u,d,c,p,r[h+15],14,-660478335),p=m(p,u,d,c,r[h+4],20,-405537848),c=m(c,p,u,d,r[h+9],5,568446438),d=m(d,c,p,u,r[h+14],9,-1019803690),u=m(u,d,c,p,r[h+3],14,-187363961),p=m(p,u,d,c,r[h+8],20,1163531501),c=m(c,p,u,d,r[h+13],5,-1444681467),d=m(d,c,p,u,r[h+2],9,-51403784),u=m(u,d,c,p,r[h+7],14,1735328473),c=g(c,p=m(p,u,d,c,r[h+12],20,-1926607734),u,d,r[h+5],4,-378558),d=g(d,c,p,u,r[h+8],11,-2022574463),u=g(u,d,c,p,r[h+11],16,1839030562),p=g(p,u,d,c,r[h+14],23,-35309556),c=g(c,p,u,d,r[h+1],4,-1530992060),d=g(d,c,p,u,r[h+4],11,1272893353),u=g(u,d,c,p,r[h+7],16,-155497632),p=g(p,u,d,c,r[h+10],23,-1094730640),c=g(c,p,u,d,r[h+13],4,681279174),d=g(d,c,p,u,r[h+0],11,-358537222),u=g(u,d,c,p,r[h+3],16,-722521979),p=g(p,u,d,c,r[h+6],23,76029189),c=g(c,p,u,d,r[h+9],4,-640364487),d=g(d,c,p,u,r[h+12],11,-421815835),u=g(u,d,c,p,r[h+15],16,530742520),c=y(c,p=g(p,u,d,c,r[h+2],23,-995338651),u,d,r[h+0],6,-198630844),d=y(d,c,p,u,r[h+7],10,1126891415),u=y(u,d,c,p,r[h+14],15,-1416354905),p=y(p,u,d,c,r[h+5],21,-57434055),c=y(c,p,u,d,r[h+12],6,1700485571),d=y(d,c,p,u,r[h+3],10,-1894986606),u=y(u,d,c,p,r[h+10],15,-1051523),p=y(p,u,d,c,r[h+1],21,-2054922799),c=y(c,p,u,d,r[h+8],6,1873313359),d=y(d,c,p,u,r[h+15],10,-30611744),u=y(u,d,c,p,r[h+6],15,-1560198380),p=y(p,u,d,c,r[h+13],21,1309151649),c=y(c,p,u,d,r[h+4],6,-145523070),d=y(d,c,p,u,r[h+11],10,-1120210379),u=y(u,d,c,p,r[h+2],15,718787259),p=y(p,u,d,c,r[h+9],21,-343485551),c=c+b>>>0,p=p+k>>>0,u=u+v>>>0,d=d+x>>>0}return n.endian([c,p,u,d])})._ff=function(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._gg=function(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._hh=function(e,t,r,n,o,i,a){var s=e+(t^r^n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._ii=function(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(s(e,t));return t&&t.asBytes?r:t&&t.asString?a.bytesToString(r):n.bytesToHex(r)}},418:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var p in a=Object(arguments[c]))r.call(a,p)&&(l[p]=a[p]);if(t){s=t(a);for(var u=0;u<s.length;u++)n.call(a,s[u])&&(l[s[u]]=a[s[u]])}}return l}},408:(e,t,r)=>{"use strict";var n=r(418),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.portal"),i("react.fragment"),i("react.strict_mode"),i("react.profiler"),i("react.provider"),i("react.context"),i("react.forward_ref"),i("react.suspense"),i("react.memo"),i("react.lazy")}"function"==typeof Symbol&&Symbol.iterator;function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l={};function c(e,t,r){this.props=e,this.context=t,this.refs=l,this.updater=r||s}function p(){}function u(e,t,r){this.props=e,this.context=t,this.refs=l,this.updater=r||s}c.prototype.isReactComponent={},c.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(a(85));this.updater.enqueueSetState(this,e,t,"setState")},c.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},p.prototype=c.prototype;var d=u.prototype=new p;d.constructor=u,n(d,c.prototype),d.isPureReactComponent=!0;var h=null,f=Object.prototype.hasOwnProperty,m={key:!0,ref:!0,__self:!0,__source:!0};t.createElement=function(e,t,r){var n,i={},a=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)f.call(t,n)&&!m.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),p=0;p<l;p++)c[p]=arguments[p+2];i.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===i[n]&&(i[n]=l[n]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:h}}},294:(e,t,r)=>{"use strict";e.exports=r(408)}},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";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(905);var t=r(294);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?n(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}const i=r(568);((e,r)=>{const{BlockControls:n,InspectorControls:a,InnerBlocks:s,useBlockProps:l}=wp.blockEditor,{ToolbarGroup:c,ToolbarButton:p,Placeholder:u,Spinner:d}=wp.components,{Fragment:h}=wp.element,{Component:f}=React,{withSelect:m}=wp.data,{createHigherOrderComponent:g}=wp.compose,y={};function b(e){return y[e]||!1}function k(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 v(){return"string"==typeof pagenow&&"site-editor"===pagenow}function x(){const e=E("core/edit-post");return!!e&&!!e.isEditingTemplate&&e.isEditingTemplate()}function w(){return e("iframe[name=editor-canvas]").length&&!function(){const e=E("core/edit-post");return!e||!e.__experimentalGetPreviewDeviceType||"Desktop"===e.__experimentalGetPreviewDeviceType()}()}function S(e){const o=e.post_types||[];if(o.length){o.push("wp_block");const e=acf.get("postType");if(!o.includes(e))return!1}if("string"==typeof e.icon&&"<svg"===e.icon.substr(0,4)){const r=e.icon;e.icon=(0,t.createElement)(I,null,r)}e.icon||delete e.icon,wp.blocks.getCategories().filter((t=>{let{slug:r}=t;return r===e.category})).pop()||(e.category="common");let i={id:{type:"string"},name:{type:"string"},data:{type:"object"},align:{type:"string"},mode:{type:"string"}};e.supports.anchor&&(i.anchor={type:"string"});let a=M,s=R;var l;e.supports.align_text&&(i=function(e){return e.align_text={type:"string"},e}(i),a=function(e,r){const o=F;return r.align_text=o(r.align_text),class extends f{render(){const{attributes:r,setAttributes:i}=this.props,{align_text:a}=r;return(0,t.createElement)(h,null,(0,t.createElement)(n,{group:"block"},(0,t.createElement)(W,{value:o(a),onChange:function(e){i({align_text:o(e)})}})),(0,t.createElement)(e,this.props))}}}(a,e)),e.supports.align_content&&(i=function(e){return e.align_content={type:"string"},e}(i),a=function(e,o){let i,a,s=o.supports.align_content;return"matrix"===s?(i=J||V,a=$):(i=X,a=U),i===r?(console.warn(`The "${s}" alignment component was not found.`),e):(o.align_content=a(o.align_content),class extends f{render(){const{attributes:r,setAttributes:o}=this.props,{align_content:s}=r;return(0,t.createElement)(h,null,(0,t.createElement)(n,{group:"block"},(0,t.createElement)(i,{label:acf.__("Change content alignment"),value:a(s),onChange:function(e){o({align_content:a(e)})}})),(0,t.createElement)(e,this.props))}})}(a,e)),e.supports.full_height&&(i=function(e){return e.full_height={type:"boolean"},e}(i),l=a,a=Y?class extends f{render(){const{attributes:e,setAttributes:r}=this.props,{full_height:o}=e;return(0,t.createElement)(h,null,(0,t.createElement)(n,{group:"block"},(0,t.createElement)(Y,{isActive:o,onToggle:function(e){r({full_height:e})}})),(0,t.createElement)(l,this.props))}}:l),e=acf.parseArgs(e,{title:"",name:"",category:"",attributes:i,apiVersion:2,edit:e=>(0,t.createElement)(a,e),save:()=>(0,t.createElement)(s,null)}),y[e.name]=e;const c=wp.blocks.registerBlockType(e.name,e);return c.attributes.anchor&&(c.attributes.anchor={type:"string"}),c}function E(e){return"core/block-editor"===e?wp.data.select("core/block-editor")||wp.data.select("core/editor"):wp.data.select(e)}const O={},T={};function A(t){const{attributes:r={},context:n={},query:a={},delay:s=0}=t,l=i(JSON.stringify(o(o(o({},r),n),a))),c=O[l]||{query:{},timeout:!1,promise:e.Deferred(),started:!1};return c.query=o(o({},c.query),a),c.started||(clearTimeout(c.timeout),c.timeout=setTimeout((()=>{c.started=!0,T[l]?(O[l]=null,c.promise.resolve.apply(T[l][0],T[l][1])):e.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",cache:!1,data:acf.prepareForAjax({action:"acf/ajax/fetch-block",block:JSON.stringify(r),context:JSON.stringify(n),query:c.query})}).always((()=>{O[l]=null})).done((function(){T[l]=[this,arguments],c.promise.resolve.apply(this,arguments)})).fail((function(){c.promise.reject.apply(this,arguments)}))}),s),O[l]=c),c.promise}function _(e,t){return JSON.stringify(e)===JSON.stringify(t)}function j(e){const t=function(e){switch(e){case"innerblocks":return s;case"script":return H;case"#comment":return null;default:e=C(e)}return e}(e.nodeName.toLowerCase());if(!t)return null;const r={};acf.arrayArgs(e.attributes).map(B).forEach((e=>{let{name:t,value:n}=e;r[t]=n}));const n=[t,r];return acf.arrayArgs(e.childNodes).forEach((e=>{if(e instanceof Text){const t=e.textContent;t&&n.push(t)}else n.push(j(e))})),React.createElement.apply(this,n)}function C(e){return acf.isget(acf,"jsxNameReplacements",e)||e}function B(e){let t=e.name,r=e.value;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=C(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=t=>j(e(t)[0]);const P=g((e=>class extends f{constructor(e){super(e);const{name:t,attributes:n}=this.props,o=b(t);if(o)if(function(e){let{attributes:t}=e;return!t.id}(e)){n.id=acf.uniqid("block_");for(let e in o.attributes)n[e]===r&&o[e]!==r&&(n[e]=o[e])}else(function(e){let{attributes:t,clientId:r}=e;return!!function(e){let t=[];const r=e=>{t.push(e),E("core/block-editor").getBlocks(e.clientId).forEach(r)};E("core/block-editor").getBlocks().forEach(r);for(const r in e)t=t.filter((t=>{let{attributes:n}=t;return n[r]===e[r]}));return t}().filter((e=>e.attributes.id===t.id)).filter((e=>e.clientId!==r)).length})(e)&&(n.id=acf.uniqid("block_"))}render(){return(0,t.createElement)(e,this.props)}}),"withDefaultAttributes");function R(){return(0,t.createElement)(s.Content,null)}wp.hooks.addFilter("editor.BlockListBlock","acf/with-default-attributes",P);class M extends f{constructor(e){super(e),this.setup()}setup(){const{name:e,attributes:t,clientId:r}=this.props,n=b(e);function o(e){e.includes(t.mode)||(t.mode=e[0])}if(k(r)||v()||w()||x())o(["preview"]);else switch(n.mode){case"edit":o(["edit","preview"]);break;case"preview":o(["preview","edit"]);break;default:o(["auto"])}}render(){const{name:e,attributes:r,setAttributes:o,clientId:i}=this.props,s=b(e),l=k(i)||v()||w()||x();let{mode:u}=r;l&&(u="preview");let d=s.supports.mode;("auto"===u||l)&&(d=!1);const f="preview"===u?acf.__("Switch to Edit"):acf.__("Switch to Preview"),m="preview"===u?"edit":"welcome-view-site";return(0,t.createElement)(h,null,(0,t.createElement)(n,null,d&&(0,t.createElement)(c,null,(0,t.createElement)(p,{className:"components-icon-button components-toolbar__control",label:f,icon:m,onClick:function(){o({mode:"preview"===u?"edit":"preview"})}}))),(0,t.createElement)(a,null,"preview"===u&&(0,t.createElement)("div",{className:"acf-block-component acf-block-panel"},(0,t.createElement)(L,this.props))),(0,t.createElement)(D,this.props))}}const D=m(((e,t)=>{const{clientId:r}=t,n=e("core/block-editor").getBlockRootClientId(r);return{index:e("core/block-editor").getBlockIndex(r,n)}}))((function(e){const{attributes:r,isSelected:n}=e,{mode:o}=r;return(0,t.createElement)("div",l(),(0,t.createElement)("div",{className:"acf-block-component acf-block-body"},"auto"===o&&n?(0,t.createElement)(L,e):"auto"!==o||n?"preview"===o?(0,t.createElement)(N,e):(0,t.createElement)(L,e):(0,t.createElement)(N,e)))}));class I extends f{render(){return(0,t.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.children}})}}class H extends f{render(){return(0,t.createElement)("div",{ref:e=>this.el=e})}setHTML(t){e(this.el).html(`<script>${t}<\/script>`)}componentDidUpdate(){this.setHTML(this.props.children)}componentDidMount(){this.setHTML(this.props.children)}}const q={};class z extends f{constructor(e){super(e),this.setRef=this.setRef.bind(this),this.id="",this.el=!1,this.subscribed=!0,this.renderMethod="jQuery",this.setup(e),this.loadState()}setup(e){}fetch(){}maybePreload(e){if(this.state.html===r&&!k(this.props.clientId)){const t=acf.get("preloadedBlocks");if(t&&t[e])return this.setHtml(t[e]),delete t[e],acf.set("preloadedBlocks",t),!0}return!1}loadState(){this.state=q[this.id]||{}}setState(e){q[this.id]=o(o({},this.state),e),this.subscribed&&super.setState(e)}setHtml(t){if((t=t?t.trim():"")===this.state.html)return;const r={html:t};"jsx"===this.renderMethod?(r.jsx=acf.parseJSX(t),r.$el=e(this.el)):r.$el=e(t),this.setState(r)}setRef(e){this.el=e}render(){return this.state.jsx?(0,t.createElement)("div",{ref:this.setRef},this.state.jsx):(0,t.createElement)("div",{ref:this.setRef},(0,t.createElement)(u,null,(0,t.createElement)(d,null)))}shouldComponentUpdate(e,t){let{index:r}=e,{html:n}=t;return r!==this.props.index&&this.componentWillMove(),n!==this.state.html}display(t){if("jQuery"===this.renderMethod){const t=this.state.$el,r=t.parent(),n=e(this.el);n.html(t),r.length&&r[0]!==n[0]&&r.html(t.clone())}switch(t){case"append":this.componentDidAppend();break;case"remount":this.componentDidRemount()}}componentDidMount(){this.state.html===r?this.fetch():this.display("remount")}componentDidUpdate(e,t){this.display("append")}componentDidAppend(){acf.doAction("append",this.state.$el)}componentWillUnmount(){acf.doAction("unmount",this.state.$el),this.subscribed=!1}componentDidRemount(){this.subscribed=!0,setTimeout((()=>{acf.doAction("remount",this.state.$el)}))}componentWillMove(){acf.doAction("unmount",this.state.$el),setTimeout((()=>{acf.doAction("remount",this.state.$el)}))}}class L extends z{setup(e){let{attributes:t}=e;this.id=`BlockForm-${t.id}`}fetch(){const{attributes:e,context:t}=this.props;A({attributes:e,context:t,query:{form:!0}}).done((e=>{let{data:t}=e;this.setHtml(t.form)}))}componentDidAppend(){super.componentDidAppend();const{attributes:e,setAttributes:t}=this.props,{$el:n}=(this.props,this.state);function o(){let o=arguments.length>0&&arguments[0]!==r&&arguments[0];const i=acf.serialize(n,`acf-${e.id}`);o?e.data=i:t({data:i})}let i=!1;n.on("change keyup",(()=>{clearTimeout(i),i=setTimeout(o,300)})),e.data||o(!0)}}class N extends z{setup(e){let{attributes:t,name:r}=e;const n=b(r),o=acf.isget(this.props,"context","postId");this.id=`BlockPreview-${t.id}`,o&&(this.id=`BlockPreview-${t.id}-${o}`),n.supports.jsx&&(this.renderMethod="jsx")}fetch(){let e=arguments.length>0&&arguments[0]!==r?arguments[0]:{};const{attributes:t=this.props.attributes,context:n=this.props.context,delay:o=0}=e;this.setState({prevAttributes:t}),this.maybePreload(t.id)||A({attributes:t,context:n,query:{preview:!0},delay:o}).done((e=>{let{data:t}=e;this.setHtml(t.preview)}))}componentDidAppend(){super.componentDidAppend();const{attributes:e}=this.props,{$el:t}=this.state,r=e.name.replace("acf/","");acf.doAction("render_block_preview",t,e),acf.doAction(`render_block_preview/type=${r}`,t,e)}shouldComponentUpdate(e,t){const r=e.attributes,n=this.props.attributes;if(!_(r,n)){let e=0;r.className!==n.className&&(e=300),r.anchor!==n.anchor&&(e=300),this.fetch({attributes:r,delay:e})}return super.shouldComponentUpdate(e,t)}componentDidRemount(){super.componentDidRemount(),_(this.state.prevAttributes,this.props.attributes)||this.fetch()}}function U(e){return["top","center","bottom"].includes(e)?e:"top"}function F(e){const t=acf.get("rtl")?"right":"left";return["left","center","right"].includes(e)?e:t}function $(e){if(e){const[t,r]=e.split(" ");return`${U(t)} ${F(r)}`}return"center center"}acf.addAction("prepare",(function(){wp.blockEditor||(wp.blockEditor=wp.editor);const e=acf.get("blockTypes");e&&e.map(S)}));const{AlignmentToolbar:W,BlockVerticalAlignmentToolbar:X}=wp.blockEditor,V=wp.blockEditor.__experimentalBlockAlignmentMatrixToolbar||wp.blockEditor.BlockAlignmentMatrixToolbar,J=wp.blockEditor.__experimentalBlockAlignmentMatrixControl||wp.blockEditor.BlockAlignmentMatrixControl,Y=wp.blockEditor.__experimentalBlockFullHeightAligmentControl||wp.blockEditor.__experimentalBlockFullHeightAlignmentControl||wp.blockEditor.BlockFullHeightAlignmentControl})(jQuery)})()})();

Zerion Mini Shell 1.0