!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+""),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("y({iconSize:e})})))),(0,a.createElement)(h.__experimentalPanelColorGradientSettings,{title:(0,p.__)("Icon color","blockify"),className:"blockify-icon-color",settings:[{colorValue:null==f?void 0:f.iconColor,gradientValue:null==f?void 0:f.iconGradient,label:(0,p.__)((0,p.__)("Icon","blockify")),onColorChange:e=>y({iconColor:e}),onGradientChange:e=>y({iconGradient:e})}]}))))}),"iconEdit"),10);const R=e=>{var t,n,l,o,r,i,a,s,c,u,d,p,m,v,f,h;let y={},g=null!==(t=null!==(n=null==e?void 0:e.iconGradient)&&void 0!==n?n:null==e?void 0:e.iconColor)&&void 0!==t?t:"",b="";var k,w;if(null!=e&&null!==(l=e.style)&&void 0!==l&&null!==(o=l.color)&&void 0!==o&&o.background&&(b=e.style.color.background),null!=e&&e.backgroundColor&&(b="var(--wp--preset--color--"+e.backgroundColor+", currentColor)"),null!=e&&null!==(r=e.style)&&void 0!==r&&null!==(i=r.color)&&void 0!==i&&i.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)"),""!==b&&(y["--wp--custom--icon--background"]=b),""!==g&&(y["--wp--custom--icon--color"]=g),null!=e&&null!==(a=e.style)&&void 0!==a&&null!==(s=a.spacing)&&void 0!==s&&s.padding){var x,E,C,_;const t=e.style.spacing.padding,n={top:null!==(x=null==t?void 0:t.top)&&void 0!==x?x:0,right:null!==(E=null==t?void 0:t.right)&&void 0!==E?E:0,bottom:null!==(C=null==t?void 0:t.bottom)&&void 0!==C?C:0,left:null!==(_=null==t?void 0:t.left)&&void 0!==_?_: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 S,T,N,O;const t=e.style.spacing.margin,n={top:null!==(S=null==t?void 0:t.top)&&void 0!==S?S:null,right:null!==(T=null==t?void 0:t.right)&&void 0!==T?T:null,bottom:null!==(N=null==t?void 0:t.bottom)&&void 0!==N?N:null,left:null!==(O=null==t?void 0:t.left)&&void 0!==O?O: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 P="";var I,F,A,R;null!=e&&e.borderColor&&(P="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!==(I=null===(F=e.style.border)||void 0===F?void 0:F.style)&&void 0!==I?I:"solid",y["--wp--custom--icon--border-color"]=null!==(A=null===(R=e.style.border)||void 0===R?void 0:R.color)&&void 0!==A?A:P);let B=null!==(m=null==e?void 0:e.iconSize)&&void 0!==m?m:"";""!==B&&(y["--wp--custom--icon--size"]=B);const M=null===(v=null!==(f=null==e?void 0:e.iconCustomSVG)&&void 0!==f?f:"")||void 0===v?void 0:v.replace('"',"'"),D=null!=M&&M.includes("t=>{var n,l;let{attributes:o,wrapperProps:r}=t;return null!=o&&o.className&&null!=o&&null!==(n=o.className)&&void 0!==n&&n.includes("is-style-icon")?(r||(r={style:{}}),r.style={...null===(l=r)||void 0===l?void 0:l.style,...R(o)},(0,a.createElement)(e,f({},t,{wrapperProps:r}))):(0,a.createElement)(e,t)}),"withIcon")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/save-icon-styles",((e,t,n)=>{var l;return null!=n&&n.className&&null!=n&&null!==(l=n.className)&&void 0!==l&&l.includes("is-style-icon")?(e.style={...null==e?void 0:e.style,...R(n)},e):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,f({},t,{wrapperProps:d}))}),"withMegaMenu"));var B,M,D;const j=null!==(B=null===(M=window)||void 0===M||null===(D=M.blockify)||void 0===D?void 0:D.blockSupports)&&void 0!==B?B:{},L=e=>{var t,n;return null!==(t=null==j||null===(n=j[e])||void 0===n?void 0:n.minHeight)&&void 0!==t&&t};var z,H,V;(0,s.addFilter)("blocks.registerBlockType","blockify/min-height-attributes",((e,t)=>{if(L(t)){var n,l,o;const r=null!==(n=null==j||null===(l=j[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(!L(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)(h.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,p.__)("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(!L(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,f({},t,{wrapperProps:o}))}),"withMinHeight")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-min-height",((e,t,n)=>(L(t)&&(e.style={...e.style,minHeight:null==n?void 0:n.minHeight}),e)));const U=null!==(z=null===(H=window)||void 0===H||null===(V=H.blockify)||void 0===V?void 0:V.responsiveBlocks)&&void 0!==z?z:["core/column","core/columns","core/group","core/media-text","core/row","core/stack","core/buttons"];var X,G,Y;(0,s.addFilter)("blocks.registerBlockType","blockify/mobile-attributes",((e,t)=>(U.includes(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(!U.includes(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)(h.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,p.__)("Responsive","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.PanelRow,{className:"blockify-mobile-toggle-setting"},(0,a.createElement)(v.ToggleControl,{label:(0,p.__)("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,p.__)("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,p.__)("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,p.__)("Hide on desktop","blockify"),checked:null!=c&&c,onChange:()=>o({hideDesktop:!c})})))))}),"editMobileSettings"),0),(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 U.includes(l)?(null!=n&&n.reverseMobile&&(t.className+=" is-reverse-mobile"),null!=n&&n.centerMobile&&(t.className+=" is-center-mobile"),null!=n&&n.hideMobile&&(t.className+=" is-hide-mobile"),null!=n&&n.hideDesktop&&(t.className+=" is-hide-desktop"),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t))):o}),"withMobileSettings")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/save-mobile-settings",((e,t,n)=>(U.includes(null==t?void 0:t.name)&&(null!=n&&n.reverseMobile&&(e.className+=" is-reverse-mobile"),null!=n&&n.centerMobile&&(e.className+=" is-center-mobile"),null!=n&&n.hideMobile&&(e.className+=" is-hide-mobile"),null!=n&&n.hideDesktop&&(e.className+=" is-hide-desktop")),e)));const Z=null!==(X=null===(G=window)||void 0===G||null===(Y=G.blockify)||void 0===Y?void 0:Y.blockSupports)&&void 0!==X?X:{};var W,q,$;(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==Z||null===(o=Z[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 K=null!==(W=null===(q=window)||void 0===q||null===($=q.blockify)||void 0===$?void 0:$.blockSupports)&&void 0!==W?W:{},J=e=>{var t,n;return null!==(t=null==K||null===(n=K[e])||void 0===n?void 0:n.blockifyPosition)&&void 0!==t&&t},Q=[{label:(0,p.__)("","blockify"),value:""},{label:(0,p.__)("Relative","blockify"),value:"relative"},{label:(0,p.__)("Absolute","blockify"),value:"absolute"},{label:(0,p.__)("Sticky","blockify"),value:"sticky"},{label:(0,p.__)("Fixed","blockify"),value:"fixed"},{label:(0,p.__)("Static","blockify"),value:"static"}];(0,p.__)("","blockify"),(0,p.__)("Auto","blockify"),(0,p.__)("Visible","blockify"),(0,p.__)("Hidden","blockify"),(0,p.__)("Clip","blockify"),(0,p.__)("Initial","blockify"),(0,p.__)("Inherit","blockify"),(0,s.addFilter)("blocks.registerBlockType","blockify/block-attributes-position",(e=>{const{name:t}=e;return J(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(!J(u))return(0,a.createElement)(e,t);const{position:d,inset:m,zIndex:f}=i;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),c&&(0,a.createElement)(h.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,p.__)("Position","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.SelectControl,{label:(0,p.__)("Position","blockify"),value:null!=d?d:"",options:Q,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,p.__)("Top","blockify"),value:null!==(n=null==m?void 0:m.top)&&void 0!==n?n:"",onChange:e=>s({inset:{...m,top:e}})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,p.__)("Right","blockify"),value:null!==(l=null==m?void 0:m.right)&&void 0!==l?l:"",onChange:e=>s({inset:{...m,right:e}})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,p.__)("Bottom","blockify"),value:null!==(o=null==m?void 0:m.bottom)&&void 0!==o?o:"",onChange:e=>s({inset:{...m,bottom:e}})})),(0,a.createElement)(v.FlexItem,null,(0,a.createElement)(v.__experimentalUnitControl,{label:(0,p.__)("Left","blockify"),value:null!==(r=null==m?void 0:m.left)&&void 0!==r?r:"",onChange:e=>s({inset:{...m,left:e}})})))),(0,a.createElement)("br",null),(0,a.createElement)(v.PanelRow,null,(0,a.createElement)(v.RangeControl,{label:(0,p.__)("Z Index","blockify"),onChange:e=>s({zIndex:e}),value:f,min:-10,max:10,step:1,allowReset:!0})))))}),"withPositionEdit"));const ee=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 te,ne,le;(0,s.addFilter)("editor.BlockListBlock","blockify/with-position-style",(0,c.createHigherOrderComponent)((e=>t=>{const{name:n}=t;if(!J(n))return(0,a.createElement)(e,t);const{attributes:l}=t,o=ee(l);let r={...t.wrapperProps};return o&&(r.style={...r.style,...o}),(0,a.createElement)(e,f({},t,{wrapperProps:r}))}),"withPositionStyle")),(0,s.addFilter)("blocks.getSaveContent.extraProps","blockify/add-position-style",((e,t,n)=>{var l;const o=ee(n),{name:r}=e;return null!=K&&null!==(l=K[r])&&void 0!==l&&l.blockifyPosition?(o&&(e.style={...e.style,...o}),e):e}));const oe=null!==(te=null===(ne=window)||void 0===ne||null===(le=ne.blockify)||void 0===le?void 0:le.blockSupports)&&void 0!==te?te:{},re=e=>{var t,n;return null!==(t=null==oe||null===(n=oe[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 re(t)?(e.attributes.style={...null!==(n=e.attributes.style)&&void 0!==n?n:{},transform:{type:"object"}},e):e}));const ie=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,m,f,y,g,b,k;const{name:w}=t;if(!re(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)(h.InspectorControls,null,(0,a.createElement)(v.PanelBody,{title:(0,p.__)("Transform","blockify"),initialOpen:!1,className:"blockify-controls"},(0,a.createElement)(v.__experimentalText,null,(0,p.__)("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,p.__)("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,p.__)("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,p.__)("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,p.__)("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,p.__)("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,p.__)("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,p.__)("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,p.__)("Rotate","blockify"),value:null!==(m=null==C?void 0:C.rotate)&&void 0!==m?m:0,onChange:e=>_({rotate:e.toString()})}),(0,a.createElement)(v.AnglePickerControl,{label:(0,p.__)("RotateX","blockify"),value:null!==(f=null==C?void 0:C.rotateX)&&void 0!==f?f:0,onChange:e=>_({rotateX:e.toString()})}),(0,a.createElement)(v.AnglePickerControl,{label:(0,p.__)("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,p.__)("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,p.__)("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,p.__)("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(!re(r))return s;const c=ie(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(!re(r))return e;const i=ie(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}));var ae=window.wp.richText;class se extends a.Component{render(){const{value:e,isActive:t,onChange:n,formatTypes:l}=this.props;return(0,a.createElement)(h.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,p.__)("Clear Formatting","blockify"),onClick:()=>{if(l.length>0){let t=e;l.map((e=>{t=(0,ae.removeFormat)(t,e.name)})),n({...t})}},isActive:t})}}const ce=(0,c.compose)((0,m.withSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()}))))(se);(0,ae.registerFormatType)("blockify/clear-formatting",{title:(0,p.__)("Clear","blockify"),tagName:"span",className:"clear",edit:e=>(0,a.createElement)(ce,e)});var ue=window.wp.primitives,de=(0,a.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(ue.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 pe="blockify/underline",me=["none","solid","wavy","dashed","dotted","double","curve","circle","brush"];(0,ae.registerFormatType)(pe,{title:(0,p.__)("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)(""),[c,u]=(0,a.useState)(!1);let d=[],f=[];null!=n&&n.formats&&n.formats.map((e=>{if((null==e?void 0:e.type)===pe){var t,n;const l=null==e?void 0:e.attributes;d=(null!==(t=null==l?void 0:l.style)&&void 0!==t?t:"").split(";"),f=(null!==(n=null==l?void 0:l.classes)&&void 0!==n?n:"").split(" ")}}));const{colors:y}=(0,m.useSelect)((e=>{var t;return{colors:null===(t=e("core/block-editor").getSettings())||void 0===t?void 0:t.colors}}));return(0,a.createElement)(h.BlockControls,null,(0,a.createElement)(h.RichTextShortcut,{type:"primary",character:"u",onUse:()=>{l((0,ae.toggleFormat)(n,{type:pe}))}}),(0,a.createElement)(h.RichTextToolbarButton,{icon:de,title:(0,p.__)("Underline","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"u",onClick:()=>u(!c)}),c&&(0,a.createElement)(v.Toolbar,{className:"blockify-components-toolbar"},(0,a.createElement)(v.Popover,{position:"bottom center",className:"blockify-underline-format",focusOnMount:"container",onFocusOutside:()=>u(!1)},(0,a.createElement)(v.__experimentalText,null,(0,p.__)("Underline style","blockify")),(0,a.createElement)("br",null),(0,a.createElement)(v.SelectControl,{onChange:e=>{var t,o;"none"===e&&l((0,ae.removeFormat)(n,pe)),r(e);let i=null!==(t=f)&&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=d)&&void 0!==o?o:[],"--wp--custom--underline--style:"+e]};l((0,ae.applyFormat)(n,{type:pe,attributes:{class:a.classes.join(" "),style:a.styles.join(";")}}))},value:o,options:me.map((e=>{return{label:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),value:e};var t}))}),(0,a.createElement)("br",null),(0,a.createElement)(v.__experimentalText,null,(0,p.__)("Underline color","blockify")),(0,a.createElement)("br",null),(0,a.createElement)(v.ColorPalette,{value:null!=i?i:"",colors:y,onChange:e=>{var t,o,r,i,a,c;s(e);let u=(0,ae.getActiveFormat)(n,pe);const d={classes:[...null!==(t=null==u||null===(o=u.attributes)||void 0===o||null===(r=o.class)||void 0===r?void 0:r.split(" "))&&void 0!==t?t:[],"has-underline-color"],styles:[...null!==(i=null==u||null===(a=u.attributes)||void 0===a||null===(c=a.style)||void 0===c?void 0:c.split(";"))&&void 0!==i?i:[],"--wp--custom--underline--color:"+e]};l((0,ae.applyFormat)(n,{type:pe,attributes:{class:d.classes.join(" "),style:d.styles.join(";")}}))}}))))}});var ve=(0,a.createElement)(ue.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(ue.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 fe="blockify/gradient";(0,ae.registerFormatType)(fe,{title:(0,p.__)("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,m.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)===fe&&(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)(h.BlockControls,null,(0,a.createElement)(h.RichTextShortcut,{type:"primary",character:"g",onUse:()=>{}}),(0,a.createElement)(h.RichTextToolbarButton,{icon:ve,title:(0,p.__)("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;e&&(o+=(o?o+";":"")+"background-image:"+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,ae.applyFormat)(n,{type:fe,attributes:{style:o,class:i}}))}}))))}});var he=(0,a.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(ue.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"})),ye=(0,a.createElement)(ue.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(ue.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 ge="blockify/small";(0,ae.registerFormatType)(ge,{title:(0,p.__)("Small","blockify"),tagName:"small",className:null,edit(e){let{isActive:t,value:n,onChange:l}=e;const o=()=>{l((0,ae.toggleFormat)(n,{type:ge}))};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(h.RichTextShortcut,{type:"primary",character:"sm",onUse:o}),(0,a.createElement)(h.RichTextToolbarButton,{icon:he,title:(0,p.__)("Small","blockify"),onClick:o,isActive:t,shortcutType:"primary",shortcutCharacter:"sm"}))}}),(0,ae.registerFormatType)("blockify/big",{title:(0,p.__)("Big","blockify"),tagName:"span",className:"blockify-big",edit(e){const{isActive:t,value:n,onChange:l}=e,o=()=>{l((0,ae.toggleFormat)(n,{type:"blockify/big"}))};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(h.RichTextShortcut,{type:"primary",character:"+",onUse:o}),(0,a.createElement)(h.RichTextToolbarButton,{icon:ye,title:(0,p.__)("Big","blockify"),onClick:o,isActive:t,shortcutType:"primary",shortcutCharacter:"+"}))}})}()}();