!function(){var e={960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},885:function(e){e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},276:function(e,t,n){var l="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=/
/i,s=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""+t+">"),d.parseFromString(e,"text/html")}}if(document.implementation){var p=n(507).isIE,m=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);c=function(e,t){return t?(m.documentElement.getElementsByTagName(t)[0].innerHTML=e,m):(m.documentElement.innerHTML=e,m)}}var v,f=document.createElement("template");f.content&&(v=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var t,n,d,p,m=e.match(i);switch(m&&m[1]&&(t=m[1].toLowerCase()),t){case l:return n=u(e),a.test(e)||(d=n.getElementsByTagName(o)[0])&&d.parentNode.removeChild(d),s.test(e)||(d=n.getElementsByTagName(r)[0])&&d.parentNode.removeChild(d),n.getElementsByTagName(l);case o:case r:return p=c(e).getElementsByTagName(t),s.test(e)&&a.test(e)?p[0].parentNode.childNodes:p;default:return v?v(e):c(e,r).getElementsByTagName(r)[0].childNodes}}},152:function(e,t,n){var l=n(276),o=n(507).formatDOM,r=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(r);return n&&n[1]&&(t=n[1]),o(l(e),null,t)}},507:function(e,t,n){for(var l,o=n(885),r=n(642),i=o.CASE_SENSITIVE_TAG_NAMES,a=r.Comment,s=r.Element,c=r.ProcessingInstruction,u=r.Text,d={},p=0,m=i.length;p0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=m;var v=function(e){function t(t){return e.call(this,i.ElementType.Root,t)||this}return o(t,e),t}(m);t.Document=v;var f=function(e){function t(t,n,l,o){void 0===l&&(l=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var r=e.call(this,o,l)||this;return r.name=t,r.attribs=n,r}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,l;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(l=e["x-attribsPrefix"])||void 0===l?void 0:l[t]}}))},enumerable:!1,configurable:!0}),t}(m);function h(e){return(0,i.isTag)(e)}function y(e){return e.type===i.ElementType.CDATA}function g(e){return e.type===i.ElementType.Text}function b(e){return e.type===i.ElementType.Comment}function k(e){return e.type===i.ElementType.Directive}function w(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new u(e.data);else if(b(e))n=new d(e.data);else if(h(e)){var l=t?E(e.children):[],o=new f(e.name,r({},e.attribs),l);l.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=o}else if(y(e)){l=t?E(e.children):[];var a=new m(i.ElementType.CDATA,l);l.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){l=t?E(e.children):[];var s=new v(l);l.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n1&&(u=v(u,{key:u.key||k})),y.push(u);else if("text"!==r.type){switch(d=r.attribs,s(r)?i(d.style,d):d&&(d=o(d)),p=null,r.type){case"script":case"style":r.children[0]&&(d.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?d.defaultValue=r.children[0].data:r.children&&r.children.length&&(p=e(r.children,n));break;default:continue}w>1&&(d.key=k),y.push(f(r.name,d,p))}else{if((c=!r.data.trim().length)&&r.parent&&!a(r.parent))continue;if(b&&c)continue;y.push(r.data)}return 1===y.length?y[0]:y}},916:function(e,t,n){var l=n(196),o=n(476).default,r={reactCompat:!0},i=l.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:i,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,l,o="function"==typeof t,r={},i={};for(n in e)l=e[n],o&&(r=t(n,l))&&2===r.length?i[r[0]]=r[1]:"string"==typeof l&&(i[l]=n);return i},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,r)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},384:function(e,t,n){"use strict";var l=this&&this.__createBinding||(Object.create?function(e,t,n,l){void 0===l&&(l=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,l,o)}:function(e,t,n,l){void 0===l&&(l=n),e[l]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||l(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=n(960),i=n(79);o(n(79),t);var a=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,l=new i.Element(e,t,void 0,n);this.addNode(l),this.tagStack.push(l)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===r.ElementType.Text)t?n.data=(n.data+e).replace(a," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var l=new i.Text(e);this.addNode(l),this.lastNode=l}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.NodeWithChildren(r.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},79:function(e,t,n){"use strict";var l,o=this&&this.__extends||(l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,l=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=m;var v=function(e){function t(t){return e.call(this,i.ElementType.Root,t)||this}return o(t,e),t}(m);t.Document=v;var f=function(e){function t(t,n,l,o){void 0===l&&(l=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var r=e.call(this,o,l)||this;return r.name=t,r.attribs=n,r}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,l;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(l=e["x-attribsPrefix"])||void 0===l?void 0:l[t]}}))},enumerable:!1,configurable:!0}),t}(m);function h(e){return(0,i.isTag)(e)}function y(e){return e.type===i.ElementType.CDATA}function g(e){return e.type===i.ElementType.Text}function b(e){return e.type===i.ElementType.Comment}function k(e){return e.type===i.ElementType.Directive}function w(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new u(e.data);else if(b(e))n=new d(e.data);else if(h(e)){var l=t?E(e.children):[],o=new f(e.name,r({},e.attribs),l);l.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=o}else if(y(e)){l=t?E(e.children):[];var a=new m(i.ElementType.CDATA,l);l.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){l=t?E(e.children):[];var s=new v(l);l.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;ne.length)&&(t=e.length);for(var n=0,l=new Array(t);n{var e,t,n;const o=null!==(e=null===(t=window)||void 0===t||null===(n=t.blockify)||void 0===n?void 0:n.blockStyles)&&void 0!==e?e:{unregister:[],register:[]};[...null==o?void 0:o.unregister].forEach((e=>{(0,l.unregisterBlockStyle)(null==e?void 0:e.type,null==e?void 0:e.name)})),[...null==o?void 0:o.register].forEach((e=>{(0,l.registerBlockStyle)(null==e?void 0:e.type,e)}))}));var o,r,i,a=window.wp.element,s=window.wp.hooks,c=window.wp.compose;const u=null!==(o=null===(r=window)||void 0===r||null===(i=r.blockify)||void 0===i?void 0:i.blockSupports)&&void 0!==o?o:{};(0,s.addFilter)("blocks.registerBlockType","blockify/block-supports",((e,t)=>(Object.keys(u).includes(t)&&(e.supports={...e.supports,...u[t]}),e)),0),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/alignment-class",((e,t,n)=>(Object.keys(u).includes(t.name)&&null!=n&&n.align&&!e.className.includes(" align")&&(e.className+=" align"+n.align),e))),(0,s.addFilter)("blocks.registerBlockType","blockify/block-attributes-search",((e,t)=>{var n,l,o;return"core/search"===t&&(e.attributes.style={...null===(n=e.attributes)||void 0===n?void 0:n.style,spacing:{...null===(l=e.attributes)||void 0===l||null===(o=l.style)||void 0===o?void 0:o.spacing,padding:{top:"1em",right:"1em",bottom:"1em",left:"2em"}}}),e}),0);const d=(0,c.createHigherOrderComponent)((e=>t=>{var n,l,o;if("core/search"!==t.name)return(0,a.createElement)(e,t);const r=document.getElementsByClassName("wp-block-search__input"),i=null==t||null===(n=t.attributes)||void 0===n||null===(l=n.style)||void 0===l||null===(o=l.spacing)||void 0===o?void 0:o.padding;return r[0]&&i&&(i.top&&(r[0].style.paddingTop=null==i?void 0:i.top),i.right&&(r[0].style.paddingRight=null==i?void 0:i.right),i.bottom&&(r[0].style.paddingBottom=null==i?void 0:i.bottom),i.left&&(r[0].style.paddingLeft=null==i?void 0:i.left)),(0,a.createElement)(e,t)}),"withInspectorControl");(0,s.addFilter)("editor.BlockEdit","blockify/with-search-padding-css",d);var p=window.wp.i18n,m=window.wp.data,v=window.wp.components;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t,n,l,o,r;return null!==(t=null===(n=window)||void 0===n||null===(l=n.blockify)||void 0===l||null===(o=l.blockSupports)||void 0===o||null===(r=o[e])||void 0===r?void 0:r.blockifyBoxShadow)&&void 0!==t&&t};(0,s.addFilter)("blocks.registerBlockType","blockify/add-box-shadow-attributes",((e,t)=>{var n;return y(t)?(e.attributes.boxShadow={...null==e||null===(n=e.attributes)||void 0===n?void 0:n.boxShadow,useDefault:{type:"boolean"},x:{type:"integer"},y:{type:"integer"},blur:{type:"integer"},spread:{type:"integer"},color:{type:"string"},gradient:{type:"string"}},e):e}),0),(0,s.addFilter)("editor.BlockEdit","blockify/with-box-shadow",(0,c.createHigherOrderComponent)((e=>t=>{var n,l,o,r,i,s,c,u,d,m,f,g,b,k,w,x,E;const{attributes:C,setAttributes:_,name:S}=t;if(!y(S))return(0,a.createElement)(e,t);let{boxShadow:T}=C;T||(T={});const N=e=>_({boxShadow:{...null==C?void 0:C.boxShadow,...e}});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(h.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,p.__)("Box Shadow","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.ToggleControl,{label:(0,p.__)("Use default shadow?","blockify"),help:(0,p.__)("Inherit custom properties defined in the theme.json file","blockify"),checked:null!==(n=null===(l=T)||void 0===l?void 0:l.useDefault)&&void 0!==n&&n,onChange:e=>N({useDefault:e})})),!(null!==(o=T)&&void 0!==o&&o.useDefault)&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.Flex,null,(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalNumberControl,{label:(0,p.__)("X","blockify"),value:null!==(r=null===(i=T)||void 0===i?void 0:i.x)&&void 0!==r?r:0,step:1,shiftStep:10,onChange:e=>N({x:parseInt(e)})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalNumberControl,{label:(0,p.__)("Y","blockify"),value:null!==(s=null===(c=T)||void 0===c?void 0:c.y)&&void 0!==s?s:0,step:1,shiftStep:10,onChange:e=>N({y:parseInt(e)})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalNumberControl,{label:(0,p.__)("Blur","blockify"),value:null!==(u=null===(d=T)||void 0===d?void 0:d.blur)&&void 0!==u?u:0,step:1,shiftStep:10,min:0,onChange:e=>N({blur:parseInt(e)})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalNumberControl,{label:(0,p.__)("Spread","blockify"),step:1,shiftStep:10,value:null!==(m=null===(f=T)||void 0===f?void 0:f.spread)&&void 0!==m?m:0,onChange:e=>N({spread:parseInt(e)})})))),(0,a.createElement)(h.__experimentalPanelColorGradientSettings,{title:(0,p.__)("Color","blockify"),showTitle:!1,settings:[{colorValue:null!==(g=null===(b=T)||void 0===b?void 0:b.color)&&void 0!==g?g:"",gradientValue:null!==(k=null===(w=T)||void 0===w?void 0:w.gradient)&&void 0!==k?k:"",label:(0,p.__)("Shadow Color","blockify"),onColorChange:e=>{T.color=e,_({boxShadow:{...T}})},onGradientChange:e=>{T.gradient=e,_({boxShadow:{...T}})}}]}),(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Shadow z-index","blockify"),value:null!==(x=parseInt(null===(E=T)||void 0===E?void 0:E.zIndex))&&void 0!==x?x:-1,onChange:e=>N({zIndex:e}),min:-10,max:10}))))))}),"boxShadowEdit"),99);const g=function(){var e,t,n,l,o,r,i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;const{boxShadow:c}=s;let u="inherit";null!=s&&null!==(e=s.style)&&void 0!==e&&null!==(t=e.border)&&void 0!==t&&t.radius;let d=null!==(n=null==c?void 0:c.zIndex)&&void 0!==n?n:"-1";return"string"==typeof d&&(d=d.replace("px","")),null!=c&&c.useDefault?{...a,"--wp--custom--box-shadow--z-index":d}:{...a,"--wp--custom--box-shadow--x":(null!==(l=null==c?void 0:c.x)&&void 0!==l?l:0)+"px","--wp--custom--box-shadow--y":(null!==(o=null==c?void 0:c.y)&&void 0!==o?o:0)+"px","--wp--custom--box-shadow--blur":(null!==(r=null==c?void 0:c.blur)&&void 0!==r?r:0)+"px","--wp--custom--box-shadow--spread":(null!==(i=null==c?void 0:c.spread)&&void 0!==i?i:0)+"px","--wp--custom--box-shadow--color":(null==c?void 0:c.gradient)||(null==c?void 0:c.color)||"","--wp--custom--box-shadow--radius":u,"--wp--custom--box-shadow--z-index":d}};(0,s.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",(0,c.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:l}=t;if(!y(l))return(0,a.createElement)(e,t);const{boxShadow:o}=n;let r={...t.wrapperProps};return null!=o&&o.gradient||null!=o&&o.color||null!=o&&o.useDefault?(r.style=g(r.style,n),(0,a.createElement)(e,f({},t,{wrapperProps:r}))):(0,a.createElement)(e,t)}),"withBoxShadow")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,n)=>{const{name:l}=t;if(!y(l))return e;const{boxShadow:o}=n;return null!=o&&o.gradient||null!=o&&o.color||null!=o&&o.useDefault?(e.style=g(e.style,n),e):e}));const b=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return"";const n="linear-gradient(",l="conic-gradient(from ";return t?null==e?void 0:e.replace(l,n):null==e?void 0:e.replace(n,l)},k=e=>{var t,n,l,o;const r=null===(t=window)||void 0===t||null===(n=t.frames)||void 0===n||null===(l=n[0])||void 0===l||null===(o=l.document)||void 0===o?void 0:o.body,i=null==r?void 0:r.getElementsByClassName("is-root-container").item(0),a=document.getElementById("wpwrap"),s="--wp--preset--gradient--conic";i.style.setProperty(s,e),a.style.setProperty(s,e)},w=()=>{var e,t,n,l,o,r,i,a,s;const c=null===(e=window)||void 0===e||null===(t=e.frames)||void 0===t||null===(n=t[0])||void 0===n||null===(l=n.document)||void 0===l?void 0:l.body;let u="";return c?(u=null!==(o=null===(r=window)||void 0===r||null===(i=r.getComputedStyle(c))||void 0===i||null===(a=i.getPropertyValue("--wp--preset--gradient--conic"))||void 0===a||null===(s=a.split(","))||void 0===s?void 0:s.join(", "))&&void 0!==o?o:"",u):u};document.addEventListener("DOMContentLoaded",(()=>{setTimeout((()=>{const e=w();e?k(b(e)):setTimeout((()=>{const e=w();e?k(b(e)):setTimeout((()=>{const e=w();e&&k(b(e))}),3e3)}),2e3)}),1e3)})),document.body.addEventListener("click",(e=>{const t=null==e?void 0:e.target;(null==t?void 0:t.textContent)===(0,p.__)("Reset to defaults")&&k(""),(()=>{const e=document.querySelectorAll(".components-circular-option-picker__option,.block-editor-panel-color-gradient-settings__color-indicator");if(e.item(0)){k(b(w()));for(let l=0;l{var t,n,l,o,r;return null!==(t=null===(n=window)||void 0===n||null===(l=n.blockify)||void 0===l||null===(o=l.blockSupports)||void 0===o||null===(r=o[e])||void 0===r?void 0:r.blockifyFilter)&&void 0!==t&&t};(0,s.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n,l,o,r;return x(t)?(e.attributes.style={...null!==(n=null===(l=e.attributes)||void 0===l?void 0:l.style)&&void 0!==n?n:{},filter:{type:"object"},hover:{...null==e||null===(o=e.attributes)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.hover,filter:{type:"object"}}},e):e})),(0,s.addFilter)("editor.BlockEdit","blockify/with-css-transforms",(0,c.createHigherOrderComponent)((e=>t=>{var n,l,o,r,i,s,c,u,d,m,f;const y=(0,a.createElement)(e,t),{attributes:g,setAttributes:b,name:k}=t;if(!x(k))return y;const w=null!==(n=null==g||null===(l=g.style)||void 0===l?void 0:l.filter)&&void 0!==n?n:{},E=e=>{var t;b({style:{...null==g?void 0:g.style,filter:{...null==g||null===(t=g.style)||void 0===t?void 0:t.filter,...e}}})};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(h.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,p.__)("Filter","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Blur","blockify"),value:null!==(o=null==w?void 0:w.blur)&&void 0!==o?o:0,onChange:e=>E({blur:e}),min:0,max:200,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Brightness","blockify"),value:null!==(r=null==w?void 0:w.brightness)&&void 0!==r?r:100,onChange:e=>E({brightness:e}),min:0,max:360,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Contrast","blockify"),value:null!==(i=null==w?void 0:w.contrast)&&void 0!==i?i:100,onChange:e=>E({contrast:e}),min:0,max:200,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Grayscale","blockify"),value:null!==(s=null==w?void 0:w.grayscale)&&void 0!==s?s:0,onChange:e=>E({grayscale:e}),min:0,max:100,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Hue Rotate","blockify"),value:null!==(c=null==w?void 0:w.hueRotate)&&void 0!==c?c:0,onChange:e=>E({hueRotate:e}),min:0,max:360,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Invert","blockify"),value:null!==(u=null==w?void 0:w.invert)&&void 0!==u?u:0,onChange:e=>E({invert:e}),min:0,max:100,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Opacity","blockify"),value:null!==(d=null==w?void 0:w.opacity)&&void 0!==d?d:100,onChange:e=>E({opacity:e}),min:0,max:100,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Saturate","blockify"),value:null!==(m=null==w?void 0:w.saturate)&&void 0!==m?m:100,onChange:e=>E({saturate:e}),min:0,max:1e3,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Sepia","blockify"),value:null!==(f=null==w?void 0:w.sepia)&&void 0!==f?f:0,onChange:e=>E({sepia:e}),min:0,max:100,step:1,allowReset:!0}))))}),"withCssFilter"),99);const E=e=>{var t,n;const l=null!==(t=null==e||null===(n=e.style)||void 0===n?void 0:n.filter)&&void 0!==t?t:{};let o="";return null!=l&&l.blur&&(o+=" blur("+l.blur+"px)"),null!=l&&l.brightness&&(o+=" brightness("+l.brightness+"%)"),null!=l&&l.contrast&&(o+=" contrast("+l.contrast+"%)"),null!=l&&l.grayscale&&(o+=" grayscale("+l.grayscale+")"),null!=l&&l.hueRotate&&(o+=" hue-rotate("+l.hueRotate+"deg)"),null!=l&&l.invert&&(o+=" invert("+l.invert+"%)"),null!=l&&l.opacity&&(o+=" opacity("+l.opacity+"%)"),null!=l&&l.saturate&&(o+=" saturate("+l.saturate+")"),null!=l&&l.sepia&&(o+=" sepia("+l.sepia+"%)"),o.trim()};(0,s.addFilter)("editor.BlockListBlock","blockify/with-css-filter",(0,c.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,name:o,clientId:r}=t,i=(0,a.createElement)(e,t);if(!x(o))return i;let s=E(l);if(!s)return i;const c=null!==(n=t.wrapperProps)&&void 0!==n?n:{};return c.style={...c.style,filter:s},(0,a.createElement)(e,f({},t,{wrapperProps:c}))}),"withCssFilter")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-filter-styles",((e,t,n)=>{const{name:l}=t;if(!x(l))return e;let o=E(n);return o&&(e.style={...e.style,filter:o}),e}));var C=n(488),_=(C.domToReact,C.htmlToDOM,C.attributesToProps,C.Element,C),S=window.wp.apiFetch,T=n.n(S);v.SelectControl.Option,v.CustomSelectControl.Option;const N={iconSet:{type:"string",default:"wordpress"},iconName:{type:"string",default:"star-empty"},iconColor:{type:"string"},iconGradient:{type:"string"},iconSize:{type:"string"},iconCustomSVG:{type:"string"},iconSvgString:{type:"string",default:''}};(0,l.registerBlockCollection)("blockify",{title:(0,p.__)("Blockify","blockify"),icon:"wordpress"}),(0,l.registerBlockVariation)("core/image",{name:"icon",title:(0,p.__)("Icon","blockify"),icon:"star-empty",isDefault:!1,category:"blockify",description:(0,p.__)("Insert a customizable SVG icon.","blockify"),attributes:{className:"is-style-icon",iconSet:"wordpress",iconName:"star-empty",iconSvgString:''}});const O={icons:{social:{},wordpress:{}}},P={setIcons(e){return{type:"SET_ICONS",icons:e}},getIcons(e){return{type:"GET_ICONS",path:e}}},I={getIcons(e){const{icons:t}=e;return t}},F={GET_ICONS(e){return T()({path:e.path})}},A={*getIcons(){const e=yield P.getIcons("/blockify/v1/icons/");return P.setIcons(e)}};(0,m.register)((0,m.createReduxStore)("blockify/icons",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1?arguments[1]:void 0;return"SET_ICONS"===t.type?{...e,icons:t.icons}:e},actions:P,selectors:I,controls:F,resolvers:A})),(0,s.addFilter)("blocks.registerBlockType","blockify/add-icon-attributes",((e,t)=>{const{attributes:n}=e;return null!=n&&n.iconName&&console.log(n),(e=>{var t,n,l,o,r;return null!==(t=null===(n=window)||void 0===n||null===(l=n.blockify)||void 0===l||null===(o=l.blockSupports)||void 0===o||null===(r=o[e])||void 0===r?void 0:r.blockifyIcon)&&void 0!==t&&t})(t)&&(e.attributes={...e.attributes,...N}),e}),99),(0,s.addFilter)("editor.BlockEdit","blockify/with-icon",(0,c.createHigherOrderComponent)((e=>t=>{var n,l,o,r,i,s,c,u,d;const{attributes:f,setAttributes:y}=t,{className:g}=f;if(!g)return(0,a.createElement)(e,t);if(null==g||!g.includes("is-style-icon"))return(0,a.createElement)(e,t);var b,k,w;y({url:""}),null!=f&&f.iconSet||y({iconSet:null==N||null===(b=N.iconSet)||void 0===b?void 0:b.default}),null!=f&&f.iconName||y({iconName:null==N||null===(k=N.iconName)||void 0===k?void 0:k.default}),null!=f&&f.iconSvgString||y({iconSvgString:null==N||null===(w=N.iconSvgString)||void 0===w?void 0:w.default});const x=[];let{icons:E}=null!==(n=(0,m.useSelect)((e=>({icons:e("blockify/icons").getIcons()})),[]))&&void 0!==n?n:O;const C={wordpress:[{name:null==N||null===(l=N.iconSvgString)||void 0===l?void 0:l.default,key:null==N||null===(o=N.iconName)||void 0===o?void 0:o.default}]};return Object.keys(E).forEach((e=>{var t;let n=e.split("-").join(" ");var l;n="wordpress"===n?"WordPress":n,x.push({label:n,value:e}),C[e]=[],Object.keys(E[e]).forEach((t=>{var n;t!==(null==f?void 0:f.iconName)&&C[e].push({name:_(null==E||null===(n=E[e])||void 0===n?void 0:n[t]),key:t})})),null!=E&&null!==(t=E[e])&&void 0!==t&&t[null==f?void 0:f.iconName]&&C[e].unshift({name:_(null==E||null===(l=E[e])||void 0===l?void 0:l[null==f?void 0:f.iconName]),key:null==f?void 0:f.iconName})})),document.getElementsByClassName("blockify-icon-settings").item(0),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(h.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,p.__)("Icon Settings","blockify"),initialOpen:!0,className:"blockify-icon-settings"},!1,(0,a.createElement)(v.SelectControl,{label:(0,p.__)("Select Icon Set","blockify"),value:null==f?void 0:f.iconSet,options:x,onChange:e=>y({iconSet:e})}),(0,a.createElement)((()=>{var e,t,n,l;const o=null===(e=C[null==f?void 0:f.iconSet])||void 0===e||null===(t=e.filter((e=>(null==e?void 0:e.key)===(null==f?void 0:f.iconName))))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.name;return(0,a.createElement)("div",{className:"blockify-icon-preview"},o&&(0,a.createElement)(a.Fragment,null,o,(0,a.createElement)("span",null,null==f||null===(l=f.iconName)||void 0===l?void 0:l.replace("-"," "))))}),null),(0,a.createElement)(v.CustomSelectControl,{label:(0,p.__)("Select Icon","blockify"),options:null!==(r=null==C?void 0:C[null==f?void 0:f.iconSet])&&void 0!==r?r:null==C?void 0:C.wordpress,value:null!==(i=null==f?void 0:f.iconSvgString)&&void 0!==i?i:null==N||null===(s=N.iconSvgString)||void 0===s?void 0:s.default,className:"blockify-icon-setting",onChange:e=>{var t,n;let{selectedItem:l}=e;const o=null!==(t=null==l?void 0:l.key)&&void 0!==t?t:"";y({iconName:o}),y({iconSvgString:null==E||null===(n=E[null==f?void 0:f.iconSet])||void 0===n?void 0:n[o]})}}),(0,a.createElement)("br",null),(0,a.createElement)(v.TextareaControl,{label:(0,p.__)("Custom SVG","blockify"),help:(0,p.__)("Enter your own custom SVG code in HTML format.","blockify"),value:null!==(c=null==f||null===(u=f.iconCustomSVG)||void 0===u?void 0:u.replace('"',"'"))&&void 0!==c?c:"",onChange:e=>{var t;null!==(t=e)&&void 0!==t&&t.includes("