!function(){var e={968:function(){document.addEventListener("click",(e=>(e=>{const t=(null==e?void 0:e.target).closest("button");"/variations"===(null==t?void 0:t.id)&&setTimeout((()=>{const e=document.getElementsByClassName("edit-site-global-styles-header__description").item(0);if(!e)return;const t=document.createElement("p");t.innerHTML='Upgrade to Blockify Pro to add your own style variations.',t.style.marginTop="1rem",e.appendChild(t)}),1e3)})(e)),!0)},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+""),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}},606: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");function p(){return p=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},y=e=>{let t=!1;return null!=e&&e.boxShadow?(Object.keys(g).forEach((n=>{var l;null!=e&&null!==(l=e.boxShadow)&&void 0!==l&&l[n]&&(t=!0)})),t):t},g={useDefault:{type:"boolean"},inset:{type:"boolean"},x:{type:"integer"},y:{type:"integer"},blur:{type:"integer"},spread:{type:"integer"},color:{type:"string"}};(0,s.addFilter)("blocks.registerBlockType","blockify/add-box-shadow-attributes",((e,t)=>{var n;return h(t)?(e.attributes.boxShadow={...null==e||null===(n=e.attributes)||void 0===n?void 0:n.boxShadow,...g},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,p,y,g,b,k,w;const{attributes:x,setAttributes:E,name:C}=t;if(!h(C))return(0,a.createElement)(e,t);let{boxShadow:_}=x;_||(_={});const S=e=>E({boxShadow:{...null==x?void 0:x.boxShadow,...e}});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(f.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,m.__)("Box Shadow","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.ToggleControl,{label:(0,m.__)("Use default shadow?","blockify"),help:(0,m.__)("Inherit theme shadow style","blockify"),checked:null!==(n=null===(l=_)||void 0===l?void 0:l.useDefault)&&void 0!==n&&n,onChange:e=>S({useDefault:e})})),!(null!==(o=_)&&void 0!==o&&o.useDefault)&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.ToggleControl,{label:(0,m.__)("Inset box shadow","blockify"),checked:null!==(r=null===(i=_)||void 0===i?void 0:i.inset)&&void 0!==r&&r,onChange:e=>S({inset:e})})),(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,m.__)("X","blockify"),value:null!==(s=null===(c=_)||void 0===c?void 0:c.x)&&void 0!==s?s:null,step:1,shiftStep:10,onChange:e=>S({x:e})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalNumberControl,{label:(0,m.__)("Y","blockify"),value:null!==(u=null===(d=_)||void 0===d?void 0:d.y)&&void 0!==u?u:null,step:1,shiftStep:10,onChange:e=>S({y:e})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalNumberControl,{label:(0,m.__)("Blur","blockify"),value:null!==(p=null===(y=_)||void 0===y?void 0:y.blur)&&void 0!==p?p:null,step:1,shiftStep:10,min:0,onChange:e=>S({blur:e})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalNumberControl,{label:(0,m.__)("Spread","blockify"),step:1,shiftStep:10,value:null!==(g=null===(b=_)||void 0===b?void 0:b.spread)&&void 0!==g?g:null,onChange:e=>S({spread:e})})))),(0,a.createElement)(f.__experimentalPanelColorGradientSettings,{title:(0,m.__)("Color","blockify"),showTitle:!1,settings:[{colorValue:null!==(k=null===(w=_)||void 0===w?void 0:w.color)&&void 0!==k?k:"",label:(0,m.__)("Shadow Color","blockify"),onColorChange:e=>{_.color=e,E({boxShadow:{..._}})}}]})))))}),"boxShadowEdit"),99);const b=function(){var e,t,n,l;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const{boxShadow:i}=r;let a={};return null!=i&&i.inset&&(a["--wp--custom--box-shadow--inset"]="inset"),""!==(null!==(e=null==i?void 0:i.x)&&void 0!==e?e:"")&&(a["--wp--custom--box-shadow--x"]=i.x+"px"),""!==(null!==(t=null==i?void 0:i.y)&&void 0!==t?t:"")&&(a["--wp--custom--box-shadow--y"]=i.y+"px"),""!==(null!==(n=null==i?void 0:i.blur)&&void 0!==n?n:"")&&(a["--wp--custom--box-shadow--blur"]=i.blur+"px"),""!==(null!==(l=null==i?void 0:i.spread)&&void 0!==l?l:"")&&(a["--wp--custom--box-shadow--spread"]=i.spread+"px"),null!=i&&i.color&&(a["--wp--custom--box-shadow--color"]=i.color),{...o,...a}};(0,s.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",(0,c.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,name:o}=t;if(!h(o))return(0,a.createElement)(e,t);if(!y(l))return(0,a.createElement)(e,t);if(t.className+=" has-box-shadow",null!=l&&null!==(n=l.boxShadow)&&void 0!==n&&n.useDefault)return(0,a.createElement)(e,t);let r={...t.wrapperProps};return r.style=b(null==r?void 0:r.style,l),(0,a.createElement)(e,p({},t,{wrapperProps:r}))}),"withBoxShadow")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,n)=>{var l;const{name:o}=t;return h(o)&&y(n)?(e.className+=" has-box-shadow",null!=n&&null!==(l=n.boxShadow)&&void 0!==l&&l.useDefault||(e.style=b(null==e?void 0:e.style,n)),e):e}));const k=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)},w=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&&i.style.setProperty(s,e),a&&a.style.setProperty(s,e)},x=()=>{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=x();e?w(k(e)):setTimeout((()=>{const e=x();e?w(k(e)):setTimeout((()=>{const e=x();e&&w(k(e))}),3e3)}),2e3)}),1e3)})),document.body.addEventListener("click",(e=>{(e=>{const t=null==e?void 0:e.target;if((null==t?void 0:t.textContent)===(0,m.__)("Reset to defaults"))return void w("");const n=document.querySelectorAll(".components-circular-option-picker__option,.block-editor-panel-color-gradient-settings__color-indicator");if(n.item(0)||"edit-site-global-styles-variations_item-preview"===(null==t?void 0:t.className)){setTimeout((()=>{w(k(x()))}),1e3);for(let e=0;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.blockifyFilter)&&void 0!==t&&t};(0,s.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n,l,o,r;return E(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,p,h;const y=(0,a.createElement)(e,t),{attributes:g,setAttributes:b,name:k}=t;if(!E(k))return y;const w=null!==(n=null==g||null===(l=g.style)||void 0===l?void 0:l.filter)&&void 0!==n?n:{},x=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)(f.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,m.__)("Filter","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Blur","blockify"),value:null!==(o=null==w?void 0:w.blur)&&void 0!==o?o:0,onChange:e=>x({blur:e}),min:0,max:200,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Brightness","blockify"),value:null!==(r=null==w?void 0:w.brightness)&&void 0!==r?r:100,onChange:e=>x({brightness:e}),min:0,max:360,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Contrast","blockify"),value:null!==(i=null==w?void 0:w.contrast)&&void 0!==i?i:100,onChange:e=>x({contrast:e}),min:0,max:200,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Grayscale","blockify"),value:null!==(s=null==w?void 0:w.grayscale)&&void 0!==s?s:0,onChange:e=>x({grayscale:e}),min:0,max:100,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Hue Rotate","blockify"),value:null!==(c=null==w?void 0:w.hueRotate)&&void 0!==c?c:0,onChange:e=>x({hueRotate:e}),min:0,max:360,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Invert","blockify"),value:null!==(u=null==w?void 0:w.invert)&&void 0!==u?u:0,onChange:e=>x({invert:e}),min:0,max:100,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Opacity","blockify"),value:null!==(d=null==w?void 0:w.opacity)&&void 0!==d?d:100,onChange:e=>x({opacity:e}),min:0,max:100,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Saturate","blockify"),value:null!==(p=null==w?void 0:w.saturate)&&void 0!==p?p:100,onChange:e=>x({saturate:e}),min:0,max:1e3,step:1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Sepia","blockify"),value:null!==(h=null==w?void 0:w.sepia)&&void 0!==h?h:0,onChange:e=>x({sepia:e}),min:0,max:100,step:1,allowReset:!0}))))}),"withCssFilter"),99);const C=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(!E(o))return i;let s=C(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,p({},t,{wrapperProps:c}))}),"withCssFilter")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-filter-styles",((e,t,n)=>{const{name:l}=t;if(!E(l))return e;let o=C(n);return o&&(e.style={...e.style,filter:o}),e})),(0,s.addFilter)("editor.BlockEdit","blockify/with-client-id",(0,c.createHigherOrderComponent)((e=>t=>("core/navigation-submenu"===(null==t?void 0:t.name)&&t.setAttributes({clientId:null==t?void 0:t.clientId}),(0,a.createElement)(e,t))),"withClientId")),(0,s.addFilter)("editor.BlockListBlock","blockify/with-mega-menu",(0,c.createHigherOrderComponent)((e=>t=>{var n,l;const{attributes:o,name:r,clientId:i}=t;if("core/navigation-submenu"!==r)return(0,a.createElement)(e,t);let s={};var c,u;null!=o&&o.backgroundColor&&(s["--wp--custom--submenu--background"]="var(--wp--preset--color--"+(null==o?void 0:o.backgroundColor)+")"),null!=o&&null!==(n=o.style)&&void 0!==n&&null!==(l=n.color)&&void 0!==l&&l.background&&(s["--wp--custom--submenu--background"]=null==o||null===(c=o.style)||void 0===c||null===(u=c.color)||void 0===u?void 0:u.background);let d={...null==t?void 0:t.wrapperProps};return d["data-id"]=i,s&&(d.style={...null==d?void 0:d.style,...s}),(0,a.createElement)(e,p({},t,{wrapperProps:d}))}),"withMegaMenu"));var _,S,T;const O=null!==(_=null===(S=window)||void 0===S||null===(T=S.blockify)||void 0===T?void 0:T.blockSupports)&&void 0!==_?_:{},N=e=>{var t,n;return null!==(t=null==O||null===(n=O[e])||void 0===n?void 0:n.blockifyMinHeight)&&void 0!==t&&t};var P,I,F;(0,s.addFilter)("blocks.registerBlockType","blockify/min-height-attributes",((e,t)=>{if(N(t)){var n,l,o;const r=null!==(n=null==O||null===(l=O[t])||void 0===l?void 0:l.width)&&void 0!==n?n:null,i={type:"string"};"string"==typeof r&&(i.default=r),e={...e,attributes:{...null===(o=e)||void 0===o?void 0:o.attributes,minHeight:i}}}return e})),(0,s.addFilter)("editor.BlockEdit","blockify/with-min-height-css",(0,c.createHigherOrderComponent)((e=>t=>{var n,l,o;if(!N(null==t?void 0:t.name))return(0,a.createElement)(e,t);const r=(null==t||null===(n=t.name)||void 0===n||null===(l=n.replace("-"," "))||void 0===l?void 0:l.replace("blockify/","").replace("core/","")).toLowerCase().replace(/(?<= )[^\s]|^./g,(e=>e.toUpperCase())),{setAttributes:i,attributes:s}=t;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(f.InspectorControls,null,(0,a.createElement)(v.PanelBody,{className:"blockify-min-height-control"},(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("Min height of ","blockify")+r,value:null!==(o=null==s?void 0:s.minHeight)&&void 0!==o?o:"none",onChange:e=>i({minHeight:e})})))))}),"withMinHeightSettings")),(0,s.addFilter)("editor.BlockListBlock","blockify/with-min-height",(0,c.createHigherOrderComponent)((e=>t=>{var n,l;if(!N(null==t?void 0:t.name))return(0,a.createElement)(e,t);const o=null!==(n=t.wrapperProps)&&void 0!==n?n:{};return o.style={...o.style,minHeight:null==t||null===(l=t.attributes)||void 0===l?void 0:l.minHeight},(0,a.createElement)(e,p({},t,{wrapperProps:o}))}),"withMinHeight")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-min-height",((e,t,n)=>(N(t)&&(e.style={...e.style,minHeight:null==n?void 0:n.minHeight}),e)));const A=null!==(P=null===(I=window)||void 0===I||null===(F=I.blockify)||void 0===F?void 0:F.blockSupports)&&void 0!==P?P:{},R=e=>{var t,n;return null!==(t=null==A||null===(n=A[e])||void 0===n?void 0:n.blockifyResponsive)&&void 0!==t&&t};(0,s.addFilter)("blocks.registerBlockType","blockify/mobile-attributes",((e,t)=>(R(t)&&(e={...e,attributes:{...e.attributes,reverseMobile:{type:"boolean"},centerMobile:{type:"boolean"},hideMobile:{type:"boolean"},hideDesktop:{type:"boolean"}}}),e))),(0,s.addFilter)("editor.BlockEdit","blockify/edit-mobile-settings",(0,c.createHigherOrderComponent)((e=>t=>{const n=(0,a.createElement)(e,t);if(!R(null==t?void 0:t.name))return n;const{attributes:l,setAttributes:o}=t,{reverseMobile:r,centerMobile:i,hideMobile:s,hideDesktop:c}=l;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(f.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,m.__)("Responsive","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.PanelRow,{className:"blockify-mobile-toggle-setting"},(0,a.createElement)(v.ToggleControl,{label:(0,m.__)("Reverse items on mobile","blockify"),checked:null!=r&&r,onChange:()=>o({reverseMobile:!r})})),(0,a.createElement)(v.PanelRow,{className:"blockify-mobile-toggle-setting"},(0,a.createElement)(v.ToggleControl,{label:(0,m.__)("Center items on mobile","blockify"),checked:null!=i&&i,onChange:()=>o({centerMobile:!i})})),(0,a.createElement)(v.PanelRow,{className:"blockify-mobile-toggle-setting"},(0,a.createElement)(v.ToggleControl,{label:(0,m.__)("Hide on mobile","blockify"),checked:null!=s&&s,onChange:()=>o({hideMobile:!s})})),(0,a.createElement)(v.PanelRow,{className:"blockify-mobile-toggle-setting"},(0,a.createElement)(v.ToggleControl,{label:(0,m.__)("Hide on desktop","blockify"),checked:null!=c&&c,onChange:()=>o({hideDesktop:!c})})))))}),"editMobileSettings"),0);const B=e=>{let t="";return null!=e&&e.reverseMobile&&(t+=" is-reverse-mobile"),null!=e&&e.centerMobile&&(t+=" is-center-mobile"),null!=e&&e.hideMobile&&(t+=" is-hide-mobile"),null!=e&&e.hideDesktop&&(t+=" is-hide-desktop"),t};var M,D,j;(0,s.addFilter)("editor.BlockListBlock","blockify/with-mobile-settings",(0,c.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:l}=t,o=(0,a.createElement)(e,t);return R(l)?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,p({},t,{className:(null==t?void 0:t.className)+B(n)}))):o}),"withMobileSettings")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/save-mobile-settings",((e,t,n)=>R(null==t?void 0:t.name)?{...e,className:(null==e?void 0:e.className)+B(n)}:e));const L=null!==(M=null===(D=window)||void 0===D||null===(j=D.blockify)||void 0===j?void 0:j.blockSupports)&&void 0!==M?M:{};var H,z,U;(0,s.addFilter)("editor.BlockEdit","blockify/with-negative-margin",(0,c.createHigherOrderComponent)((e=>t=>{if(n=null==t?void 0:t.name,null!==(l=null==L||null===(o=L[n])||void 0===o?void 0:o.blockifyNegativeMargin)&&void 0!==l&&l){const e=document.querySelector('.components-input-control__input[min="0"]');e&&e.setAttribute("min","-999")}var n,l,o;return(0,a.createElement)(e,t)}),"withMinHeightSettings"));const V=null!==(H=null===(z=window)||void 0===z||null===(U=z.blockify)||void 0===U?void 0:U.blockSupports)&&void 0!==H?H:{},X=e=>{var t,n;return null!==(t=null==V||null===(n=V[e])||void 0===n?void 0:n.blockifyPosition)&&void 0!==t&&t},Y=[{label:(0,m.__)("","blockify"),value:""},{label:(0,m.__)("Relative","blockify"),value:"relative"},{label:(0,m.__)("Absolute","blockify"),value:"absolute"},{label:(0,m.__)("Sticky","blockify"),value:"sticky"},{label:(0,m.__)("Fixed","blockify"),value:"fixed"},{label:(0,m.__)("Static","blockify"),value:"static"}];(0,m.__)("","blockify"),(0,m.__)("Auto","blockify"),(0,m.__)("Visible","blockify"),(0,m.__)("Hidden","blockify"),(0,m.__)("Clip","blockify"),(0,m.__)("Initial","blockify"),(0,m.__)("Inherit","blockify"),(0,s.addFilter)("blocks.registerBlockType","blockify/block-attributes-position",(e=>{const{name:t}=e;return X(t)&&(e.attributes={...e.attributes,position:{type:"string"},inset:{type:"object"},zIndex:{type:"integer"}}),e})),(0,s.addFilter)("editor.BlockEdit","blockify/custom-advanced-control",(0,c.createHigherOrderComponent)((e=>t=>{var n,l,o,r;const{attributes:i,setAttributes:s,isSelected:c,name:u}=t;if(!X(u))return(0,a.createElement)(e,t);const{position:d,inset:p,zIndex:h}=i;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),c&&(0,a.createElement)(f.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,m.__)("Position","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.SelectControl,{label:(0,m.__)("Position","blockify"),value:null!=d?d:"",options:Y,onChange:e=>s({position:e})})),(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.Flex,null,(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("Top","blockify"),value:null!==(n=null==p?void 0:p.top)&&void 0!==n?n:"",onChange:e=>s({inset:{...p,top:e}})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("Right","blockify"),value:null!==(l=null==p?void 0:p.right)&&void 0!==l?l:"",onChange:e=>s({inset:{...p,right:e}})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("Bottom","blockify"),value:null!==(o=null==p?void 0:p.bottom)&&void 0!==o?o:"",onChange:e=>s({inset:{...p,bottom:e}})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("Left","blockify"),value:null!==(r=null==p?void 0:p.left)&&void 0!==r?r:"",onChange:e=>s({inset:{...p,left:e}})})))),(0,a.createElement)("br",null),(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Z Index","blockify"),onChange:e=>s({zIndex:e}),value:h,min:-10,max:10,step:1,allowReset:!0})))))}),"withPositionEdit"));const G=e=>{const{position:t,inset:n,zIndex:l,overflow:o}=e;let r={};return t&&(r.position=t),null!=n&&n.top&&(r.top=n.top),null!=n&&n.right&&(r.right=n.right),null!=n&&n.bottom&&(r.bottom=n.bottom),null!=n&&n.left&&(r.left=n.left),l&&(r.zIndex=l),null!=o&&o.x&&(r.overflowX=null==o?void 0:o.x),null!=o&&o.y&&(r.overflowY=null==o?void 0:o.y),r};var Z,W,q;(0,s.addFilter)("editor.BlockListBlock","blockify/with-position-style",(0,c.createHigherOrderComponent)((e=>t=>{const{name:n}=t;if(!X(n))return(0,a.createElement)(e,t);const{attributes:l}=t,o=G(l);let r={...t.wrapperProps};return o&&(r.style={...r.style,...o}),(0,a.createElement)(e,p({},t,{wrapperProps:r}))}),"withPositionStyle")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/add-position-style",((e,t,n)=>{var l;const o=G(n),{name:r}=e;return null!=V&&null!==(l=V[r])&&void 0!==l&&l.blockifyPosition?(o&&(e.style={...e.style,...o}),e):e}));const $=null!==(Z=null===(W=window)||void 0===W||null===(q=W.blockify)||void 0===q?void 0:q.blockSupports)&&void 0!==Z?Z:{},K=e=>{var t,n;return null!==(t=null==$||null===(n=$[e])||void 0===n?void 0:n.blockifyTransform)&&void 0!==t&&t};(0,s.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return K(t)?(e.attributes.style={...null!==(n=e.attributes.style)&&void 0!==n?n:{},transform:{type:"object"}},e):e}));const J=e=>{let t="";return null!=e&&e.translateX&&"0px"!==e.translateX&&(t+=" translateX("+e.translateX+")"),null!=e&&e.translateY&&"0px"!==e.translateY&&(t+=" translateY("+e.translateY+")"),null!=e&&e.translateZ&&"0px"!==e.translateZ&&(t+=" translateZ("+e.translateZ+")"),null!=e&&e.scale&&(t+=" scale("+e.scale+")"),null!=e&&e.scaleX&&(t+=" scaleX("+e.scaleX+")"),null!=e&&e.scaleY&&(t+=" scaleY("+e.scaleY+")"),null!=e&&e.scaleZ&&(t+=" scaleZ("+e.scaleZ+")"),null!=e&&e.rotate&&(t+=" rotate("+e.rotate+"deg)"),null!=e&&e.rotateX&&(t+=" rotateX("+e.rotateX+"deg)"),null!=e&&e.rotateY&&(t+=" rotateY("+e.rotateY+"deg)"),null!=e&&e.rotateZ&&(t+=" rotateZ("+e.rotateZ+"deg)"),null!=e&&e.skewX&&(t+=" skewX("+e.skewX+"deg)"),null!=e&&e.skewY&&(t+=" skewY("+e.skewY+"deg)"),t.trim()};(0,s.addFilter)("editor.BlockEdit","blockify/with-css-transforms",(0,c.createHigherOrderComponent)((e=>t=>{var n,l,o,r,i,s,c,u,d,p,h,y,g,b,k;const{name:w}=t;if(!K(w))return(0,a.createElement)(e,t);const{attributes:x,setAttributes:E}=t,C=null!==(n=null==x||null===(l=x.style)||void 0===l?void 0:l.transform)&&void 0!==n?n:{},_=e=>{var t;E({style:{...null==x?void 0:x.style,transform:{...null==x||null===(t=x.style)||void 0===t?void 0:t.transform,...e}}})};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(f.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,m.__)("Transform","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.__experimentalText,null,(0,m.__)("Translate","blockify")),(0,a.createElement)("br",null),(0,a.createElement)(v.Flex,null,(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("X","blockify"),value:null!==(o=null==C?void 0:C.translateX)&&void 0!==o?o:"0px",onChange:e=>_({translateX:e})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("Y","blockify"),value:null!==(r=null==C?void 0:C.translateY)&&void 0!==r?r:"0px",onChange:e=>_({translateY:e})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("Z","blockify"),value:null!==(i=null==C?void 0:C.translateZ)&&void 0!==i?i:"0px",onChange:e=>_({translateZ:e})}))),(0,a.createElement)("br",null),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Scale","blockify"),value:null!==(s=null==C?void 0:C.scale)&&void 0!==s?s:1,onChange:e=>_({scale:e.toString()}),min:-10,max:10,step:.1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Scale X","blockify"),value:null!==(c=null==C?void 0:C.scaleX)&&void 0!==c?c:1,onChange:e=>_({scaleX:e.toString()}),min:-10,max:10,step:.1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Scale Y","blockify"),value:null!==(u=null==C?void 0:C.scaleY)&&void 0!==u?u:1,onChange:e=>_({scaleY:e.toString()}),min:-10,max:10,step:.1,allowReset:!0}),(0,a.createElement)(v.RangeControl,{label:(0,m.__)("Scale Z","blockify"),value:null!==(d=null==C?void 0:C.scaleZ)&&void 0!==d?d:1,onChange:e=>_({scaleZ:e.toString()}),min:-10,max:10,step:.1,allowReset:!0}),(0,a.createElement)(v.AnglePickerControl,{label:(0,m.__)("Rotate","blockify"),value:null!==(p=null==C?void 0:C.rotate)&&void 0!==p?p:0,onChange:e=>_({rotate:e.toString()})}),(0,a.createElement)(v.AnglePickerControl,{label:(0,m.__)("RotateX","blockify"),value:null!==(h=null==C?void 0:C.rotateX)&&void 0!==h?h:0,onChange:e=>_({rotateX:e.toString()})}),(0,a.createElement)(v.AnglePickerControl,{label:(0,m.__)("RotateY","blockify"),value:null!==(y=null==C?void 0:C.rotateY)&&void 0!==y?y:0,onChange:e=>_({rotateY:e.toString()})}),(0,a.createElement)(v.AnglePickerControl,{label:(0,m.__)("RotateZ","blockify"),value:null!==(g=null==C?void 0:C.rotateZ)&&void 0!==g?g:0,onChange:e=>_({rotateZ:e.toString()})}),(0,a.createElement)("br",null),(0,a.createElement)(v.AnglePickerControl,{label:(0,m.__)("Skew X","blockify"),value:null!==(b=null==C?void 0:C.skewX)&&void 0!==b?b:0,onChange:e=>_({skewX:e.toString()})}),(0,a.createElement)(v.AnglePickerControl,{label:(0,m.__)("Skew Y","blockify"),value:null!==(k=null==C?void 0:C.skewY)&&void 0!==k?k:0,onChange:e=>_({skewY:e.toString()})}))))}),"withCssTransforms")),(0,s.addFilter)("editor.BlockListBlock","blockify/with-css-transform",(0,c.createHigherOrderComponent)((e=>t=>{var n,l;const{attributes:o,name:r,clientId:i}=t,s=(0,a.createElement)(e,t);if(!K(r))return s;const c=J(null!==(n=null==o||null===(l=o.style)||void 0===l?void 0:l.transform)&&void 0!==n?n:{});return c?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("style",null,"#block-"+i+"{transform:"+c+"}"),(0,a.createElement)(e,t)):s}),"withCssTransform")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-transform-styles",((e,t,n)=>{var l,o;const{name:r}=t;if(!K(r))return e;const i=J(null!==(l=null==n||null===(o=n.style)||void 0===o?void 0:o.transform)&&void 0!==l?l:{});return i&&(e.style={...e.style,transform:i}),e}));const Q=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.blockifyOnclick)&&void 0!==t&&t};(0,s.addFilter)("blocks.registerBlockType","blockify/add-onclick-attribute",((e,t)=>Q(t)?(e.attributes={...e.attributes,onclick:{type:"string"}},e):e),0),(0,s.addFilter)("editor.BlockEdit","blockify/with-onclick-attribute",(0,c.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,setAttributes:o,name:r}=t;return Q(r)?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(f.InspectorAdvancedControls,null,(0,a.createElement)(v.TextControl,{label:(0,m.__)("On-click event","blockify"),help:(0,m.__)("Enter a JavaScript function to be called when the button is clicked.","blockify"),value:null==l||null===(n=l.onclick)||void 0===n?void 0:n.replace('"',"'"),onChange:e=>o({onclick:null==e?void 0:e.replace('"',"'")})}))):(0,a.createElement)(e,t)}),"onclickAttribute"),99);var ee=n(488),te=(ee.domToReact,ee.htmlToDOM,ee.attributesToProps,ee.Element,ee),ne=window.wp.data,le=window.wp.apiFetch,oe=n.n(le);v.SelectControl.Option,v.CustomSelectControl.Option;const re=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},ie={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,m.__)("Blockify","blockify"),icon:"wordpress"});const ae={name:"icon",icon:"star-empty",title:(0,m.__)("Icon","blockify"),isDefault:!1,category:"media",description:(0,m.__)("Insert a customizable SVG icon.","blockify"),attributes:{className:"is-style-icon",iconSet:"wordpress",iconName:"star-empty",iconSvgString:' '}};(0,l.registerBlockVariation)("core/image",ae);const se={icons:{social:{},wordpress:{}}},ce={setIcons(e){return{type:"SET_ICONS",icons:e}},getIcons(e){return{type:"GET_ICONS",path:e}}},ue={getIcons(e){const{icons:t}=e;return t}},de={GET_ICONS(e){return oe()({path:e.path})}},pe={*getIcons(){const e=yield ce.getIcons("/blockify/v1/icons/");return ce.setIcons(e)}};(0,ne.register)((0,ne.createReduxStore)("blockify/icons",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,t=arguments.length>1?arguments[1]:void 0;return"SET_ICONS"===t.type?{...e,icons:t.icons}:e},actions:ce,selectors:ue,controls:de,resolvers:pe})),(0,s.addFilter)("blocks.registerBlockType","blockify/add-icon-attributes",((e,t)=>(re(t)&&(e.attributes={...e.attributes,...ie}),e)),99),(0,s.addFilter)("editor.BlockEdit","blockify/with-icon",(0,c.createHigherOrderComponent)((e=>t=>{var n,l,o,r,i,s,c;const{name:u,attributes:d,setAttributes:p}=t,{className:h}=d;if(!h)return(0,a.createElement)(e,t);if(null==h||!h.includes("is-style-icon"))return(0,a.createElement)(e,t);if(!re(u))return(0,a.createElement)(e,t);var y,g,b;p({url:"#"}),null!=d&&d.iconSet||p({iconSet:null==ie||null===(y=ie.iconSet)||void 0===y?void 0:y.default}),null!=d&&d.iconName||p({iconName:null==ie||null===(g=ie.iconName)||void 0===g?void 0:g.default}),null!=d&&d.iconSvgString||p({iconSvgString:null==ie||null===(b=ie.iconSvgString)||void 0===b?void 0:b.default});const k=[];let{icons:w}=null!==(n=(0,ne.useSelect)((e=>({icons:e("blockify/icons").getIcons()})),[]))&&void 0!==n?n:se;const x={wordpress:[{name:null==ie||null===(l=ie.iconSvgString)||void 0===l?void 0:l.default,key:null==ie||null===(o=ie.iconName)||void 0===o?void 0:o.default}]};return Object.keys(w).forEach((e=>{var t;let n=e.split("-").join(" ");var l;n="wordpress"===n?"WordPress":n,k.push({label:n,value:e}),x[e]=[],Object.keys(w[e]).forEach((t=>{var n;t!==(null==d?void 0:d.iconName)&&x[e].push({name:te(null==w||null===(n=w[e])||void 0===n?void 0:n[t]),key:t})})),null!=w&&null!==(t=w[e])&&void 0!==t&&t[null==d?void 0:d.iconName]&&x[e].unshift({name:te(null==w||null===(l=w[e])||void 0===l?void 0:l[null==d?void 0:d.iconName]),key:null==d?void 0:d.iconName})})),document.getElementsByClassName("blockify-icon-settings").item(0),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(f.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,m.__)("Icon Settings","blockify"),initialOpen:!0,className:"blockify-icon-settings"},!1,(0,a.createElement)(v.SelectControl,{label:(0,m.__)("Select Icon Set","blockify"),value:null==d?void 0:d.iconSet,options:k,onChange:e=>p({iconSet:e})}),(0,a.createElement)((()=>{var e,t,n,l;const o=null===(e=x[null==d?void 0:d.iconSet])||void 0===e||null===(t=e.filter((e=>(null==e?void 0:e.key)===(null==d?void 0:d.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==d||null===(l=d.iconName)||void 0===l?void 0:l.replace("-"," "))))}),null),(0,a.createElement)(v.CustomSelectControl,{label:(0,m.__)("Select Icon","blockify"),options:null!==(r=null==x?void 0:x[null==d?void 0:d.iconSet])&&void 0!==r?r:null==x?void 0:x.wordpress,value:null!==(i=null==d?void 0:d.iconSvgString)&&void 0!==i?i:null==ie||null===(s=ie.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:"";p({iconName:o}),p({iconSvgString:null==w||null===(n=w[null==d?void 0:d.iconSet])||void 0===n?void 0:n[o]})}}),(0,a.createElement)("br",null),(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.Flex,null,(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,m.__)("Icon Width","blockify"),value:null!==(c=null==d?void 0:d.iconSize)&&void 0!==c?c:"",onChange:e=>p({iconSize:e})})))))))}),"iconEdit"),10);const me=e=>{var t,n,l,o,r,i,a,s,c,u,d,p,m,v,f,h;let y={},g="";null!=e&&null!==(t=e.style)&&void 0!==t&&null!==(n=t.color)&&void 0!==n&&n.background&&(g=e.style.color.background),null!=e&&e.backgroundColor&&(g="var(--wp--preset--color--"+e.backgroundColor+", currentColor)");let b="";var k,w;null!=e&&null!==(l=e.style)&&void 0!==l&&null!==(o=l.color)&&void 0!==o&&o.gradient&&(b=null==e||null===(k=e.style)||void 0===k||null===(w=k.color)||void 0===w?void 0:w.gradient),null!=e&&e.gradient&&(b="var(--wp--preset--gradient--"+e.gradient+",currentColor)");let x="";var E,C;if(null!=e&&null!==(r=e.style)&&void 0!==r&&null!==(i=r.color)&&void 0!==i&&i.text&&(x=null==e||null===(E=e.style)||void 0===E||null===(C=E.color)||void 0===C?void 0:C.text),null!=e&&e.textColor&&(x="var(--wp--preset--color--"+e.textColor+",currentColor)"),""!==g&&(y["--wp--custom--icon--background"]=g),x?(y["--wp--custom--icon--color"]=x,b&&(y["--wp--custom--icon--background"]=b)):b&&(y["--wp--custom--icon--color"]=b),null!=e&&null!==(a=e.style)&&void 0!==a&&null!==(s=a.spacing)&&void 0!==s&&s.padding){var _,S,T,O;const t=e.style.spacing.padding,n={top:null!==(_=null==t?void 0:t.top)&&void 0!==_?_:0,right:null!==(S=null==t?void 0:t.right)&&void 0!==S?S:0,bottom:null!==(T=null==t?void 0:t.bottom)&&void 0!==T?T:0,left:null!==(O=null==t?void 0:t.left)&&void 0!==O?O:0};Object.keys(n).forEach((e=>{var t;const l=null!==(t=null==n?void 0:n[e])&&void 0!==t?t:"";null!=l&&l.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+l.replace("var:preset|spacing|","")+")")})),y["--wp--custom--icon--padding"]=Object.values(n).join(" ")}if(null!=e&&null!==(c=e.style)&&void 0!==c&&null!==(u=c.spacing)&&void 0!==u&&u.margin){var N,P,I,F;const t=e.style.spacing.margin,n={top:null!==(N=null==t?void 0:t.top)&&void 0!==N?N:null,right:null!==(P=null==t?void 0:t.right)&&void 0!==P?P:null,bottom:null!==(I=null==t?void 0:t.bottom)&&void 0!==I?I:null,left:null!==(F=null==t?void 0:t.left)&&void 0!==F?F:null};Object.keys(n).forEach((e=>{var t;const l=null!==(t=null==n?void 0:n[e])&&void 0!==t?t:"";null!=l&&l.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+(null==l?void 0:l.replace("var:preset|spacing|",""))+")")})),y["--wp--custom--icon--margin"]=Object.values(n).join(" ")}let A="";var R,B,M,D;null!=e&&e.borderColor&&(A="var(--wp--preset--color--"+(null==e?void 0:e.borderColor)+")"),null!=e&&null!==(d=e.style)&&void 0!==d&&null!==(p=d.border)&&void 0!==p&&p.width&&(y["--wp--custom--icon--border-width"]=e.style.border.width,y["--wp--custom--icon--border-style"]=null!==(R=null===(B=e.style.border)||void 0===B?void 0:B.style)&&void 0!==R?R:"solid",y["--wp--custom--icon--border-color"]=null!==(M=null===(D=e.style.border)||void 0===D?void 0:D.color)&&void 0!==M?M:A);let j=null!==(m=null==e?void 0:e.iconSize)&&void 0!==m?m:"";""!==j&&(y["--wp--custom--icon--size"]=j);const L=null===(v=null!==(f=null==e?void 0:e.iconCustomSVG)&&void 0!==f?f:"")||void 0===v?void 0:v.replace('"',"'"),H=null!=L&&L.includes("t=>{var n,l;let{attributes:o,wrapperProps:r,name:i}=t;return null!=o&&o.className&&null!=o&&null!==(n=o.className)&&void 0!==n&&n.includes("is-style-icon")&&re(i)?(r||(r={style:{}}),r.style={...null===(l=r)||void 0===l?void 0:l.style,...me(o)},console.log(r),(0,a.createElement)(e,p({},t,{wrapperProps:r}))):(0,a.createElement)(e,t)}),"withIcon")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/save-icon-styles",((e,t,n)=>{var l;if(null==n||!n.className)return e;const{name:o}=t;return null!=n&&null!==(l=n.className)&&void 0!==l&&l.includes("is-style-icon")&&re(o)?(e.style={...null==e?void 0:e.style,...me(n)},e):e}));var ve=window.wp.richText;(0,ve.registerFormatType)("blockify/clear-formatting",{title:(0,m.__)("Clear","blockify"),tagName:"span",className:"clear",edit:e=>{const{value:t,isActive:n,onChange:l}=e,{formatTypes:o}=(0,ne.useSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()})));return(0,a.createElement)(f.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,m.__)("Clear Formatting","blockify"),onClick:()=>{if(o.length>0){let e=t;o.map((t=>{e=(0,ve.removeFormat)(e,t.name)})),l({...e})}},isActive:n})}});var fe=window.wp.primitives,he=(0,a.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(fe.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"}));const ye="blockify/underline",ge=["none","solid","wavy","dashed","dotted","double","brush","circle"];(0,ve.registerFormatType)(ye,{title:(0,m.__)("Underline","blockify"),tagName:"u",className:"has-text-underline",attributes:{style:"style",class:"class"},edit:e=>{let{isActive:t,value:n,onChange:l}=e;const[o,r]=(0,a.useState)(""),[i,s]=(0,a.useState)(!1);let c=[],u=[];return null!=n&&n.formats&&n.formats.map((e=>{if((null==e?void 0:e.type)===ye){var t,n;const l=null==e?void 0:e.attributes;c=(null!==(t=null==l?void 0:l.style)&&void 0!==t?t:"").split(";"),u=(null!==(n=null==l?void 0:l.classes)&&void 0!==n?n:"").split(" ")}})),(0,a.createElement)(f.BlockControls,null,(0,a.createElement)(f.RichTextShortcut,{type:"primary",character:"u",onUse:()=>{l((0,ve.toggleFormat)(n,{type:ye}))}}),(0,a.createElement)(f.RichTextToolbarButton,{icon:he,title:(0,m.__)("Underline","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"u",onClick:()=>s(!i)}),i&&(0,a.createElement)(v.Toolbar,{className:"blockify-components-toolbar"},(0,a.createElement)(v.Popover,{position:"bottom center",className:"blockify-underline-format",focusOnMount:"container",onFocusOutside:()=>s(!1)},(0,a.createElement)(v.__experimentalText,null,(0,m.__)("Underline style","blockify")),(0,a.createElement)("br",null),(0,a.createElement)(v.SelectControl,{onChange:e=>{var t,o;"none"===e&&l((0,ve.removeFormat)(n,ye)),r(e);let i=null!==(t=u)&&void 0!==t?t:[];i.forEach(((e,t)=>{e.includes("is-underline-")&&delete a.classes[t]}));const a={classes:[...i,"is-underline-"+e],styles:[...null!==(o=c)&&void 0!==o?o:[],"--wp--custom--underline--style:"+e]};l((0,ve.applyFormat)(n,{type:ye,attributes:{class:a.classes.join(" "),style:a.styles.join(";")}}))},value:o,options:ge.map((e=>{return{label:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),value:e};var t}))}))))}});var be=(0,a.createElement)(fe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(fe.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));const ke="blockify/gradient";(0,ve.registerFormatType)(ke,{title:(0,m.__)("Gradient","blockify"),tagName:"span",className:"has-text-gradient",attributes:{style:"style",class:"class"},edit:e=>{let{isActive:t,value:n,onChange:l}=e;const[o,r]=(0,a.useState)(""),[i,s]=(0,a.useState)(!1);let c="",u="";const{gradients:d}=(0,ne.useSelect)((e=>{var t;return{gradients:null===(t=e("core/block-editor").getSettings())||void 0===t?void 0:t.gradients}}));return null!=n&&n.formats&&n.formats.map((e=>{var t,n;(null==e?void 0:e.type)===ke&&(c+=";"+(null==e||null===(t=e.attributes)||void 0===t?void 0:t.style),u+=null==e||null===(n=e.attributes)||void 0===n?void 0:n.class)})),(0,a.createElement)(f.BlockControls,null,(0,a.createElement)(f.RichTextShortcut,{type:"primary",character:"g",onUse:()=>{}}),(0,a.createElement)(f.RichTextToolbarButton,{icon:be,title:(0,m.__)("Gradient","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"g",onClick:()=>s(!i)}),i&&(0,a.createElement)(v.Toolbar,{className:"blockify-components-toolbar"},(0,a.createElement)(v.Popover,{position:"bottom center",className:"blockify-gradient-text-control",focusOnMount:"container",onFocusOutside:()=>s(!1)},(0,a.createElement)(v.GradientPicker,{value:null!=o?o:"",gradients:d,onChange:e=>{var t;r(e);let o=c,i=u;var a,s;d.forEach((t=>{t.gradient===e&&(i+=(i?" ":"")+"has-"+t.slug+"-gradient-background")})),e&&!i.includes("-gradient-background")&&(o+=(o?o+";":"")+"background:"+e),null!==(t=i)&&void 0!==t&&t.includes("has-text-gradient")&&(i=(null===(a=i)||void 0===a||null===(s=a.replace("has-text-gradient",""))||void 0===s?void 0:s.trim())+" has-text-gradient"),l((0,ve.applyFormat)(n,{type:ke,attributes:{style:o,class:i}}))}}))))}});var we=(0,a.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(fe.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),xe=(0,a.createElement)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(fe.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"}));const Ee="blockify/small";(0,ve.registerFormatType)(Ee,{title:(0,m.__)("Small","blockify"),tagName:"small",className:null,edit(e){let{isActive:t,value:n,onChange:l}=e;const o=()=>{l((0,ve.toggleFormat)(n,{type:Ee}))};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(f.RichTextShortcut,{type:"primary",character:"sm",onUse:o}),(0,a.createElement)(f.RichTextToolbarButton,{icon:we,title:(0,m.__)("Small","blockify"),onClick:o,isActive:t,shortcutType:"primary",shortcutCharacter:"sm"}))}}),(0,ve.registerFormatType)("blockify/big",{title:(0,m.__)("Big","blockify"),tagName:"span",className:"blockify-big",edit(e){const{isActive:t,value:n,onChange:l}=e,o=()=>{l((0,ve.toggleFormat)(n,{type:"blockify/big"}))};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(f.RichTextShortcut,{type:"primary",character:"+",onUse:o}),(0,a.createElement)(f.RichTextToolbarButton,{icon:xe,title:(0,m.__)("Big","blockify"),onClick:o,isActive:t,shortcutType:"primary",shortcutCharacter:"+"}))}})}()}();