(()=>{var e={184:(e,t)=>{var l;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var l,o,n;return null!=c&&null!==(l=c[t])&&void 0!==l&&l.boxShadow?(null!=e&&null!==(o=e.attributes)&&void 0!==o&&o.boxShadowColor||null!=e&&null!==(n=e.attributes)&&void 0!==n&&n.boxShadowGradient||(e.attributes=Object.assign(e.attributes,{useDefaultBoxShadow:{type:"boolean"},boxShadowX:{type:"integer"},boxShadowY:{type:"integer"},boxShadowBlur:{type:"integer"},boxShadowSpread:{type:"integer"},boxShadowColor:{type:"string"},boxShadowGradient:{type:"string"},boxShadowZIndex:{type:"integer"}})),e):e}));const u=(0,a.createHigherOrderComponent)((e=>l=>{var a;const{attributes:r,setAttributes:s,name:u}=l;if(null==c||null===(a=c[u])||void 0===a||!a.boxShadow)return(0,t.createElement)(e,l);const{useDefaultBoxShadow:d,boxShadowX:p,boxShadowY:m,boxShadowBlur:b,boxShadowSpread:h,boxShadowColor:g,boxShadowGradient:y,boxShadowZIndex:v}=r;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(e,l),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(o.PanelBody,{title:(0,i.__)("Box Shadow","blockify"),initialOpen:!1,className:"blockify-controls"},(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.ToggleControl,{label:(0,i.__)("Use default box shadow?","blockify"),help:(0,i.__)("Inherit custom properties defined in the theme.json file","blockify"),checked:null!=d&&d,onChange:e=>s({useDefaultBoxShadow:e})})),!d&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.Flex,null,(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalNumberControl,{label:(0,i.__)("X","blockify"),value:null!=p?p:0,step:1,shiftStep:10,onChange:e=>s({boxShadowX:parseInt(e)})})),(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalNumberControl,{label:(0,i.__)("Y","blockify"),value:null!=m?m:0,step:1,shiftStep:10,onChange:e=>s({boxShadowY:parseInt(e)})})),(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalNumberControl,{label:(0,i.__)("Blur","blockify"),value:null!=b?b:0,step:1,shiftStep:10,min:0,onChange:e=>s({boxShadowBlur:parseInt(e)})})),(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalNumberControl,{label:(0,i.__)("Spread","blockify"),step:1,shiftStep:10,value:null!=h?h:0,onChange:e=>s({boxShadowSpread:parseInt(e)})})))),(0,t.createElement)(n.__experimentalPanelColorGradientSettings,{title:(0,i.__)("Color","blockify"),showTitle:!1,settings:[{colorValue:null!=g?g:"",gradientValue:null!=y?y:"",label:(0,i.__)("Box Shadow Color","blockify"),onColorChange:e=>s({boxShadowColor:e}),onGradientChange:e=>s({boxShadowGradient:e})}]}),(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Box shadow z index","blockify"),value:null!=v?v:0,onChange:e=>s({boxShadowZIndex:e}),min:-10,max:10}))))))}),"boxShadowEdit");(0,r.addFilter)("editor.BlockEdit","blockify/with-box-shadows",u,99);const d=(0,a.createHigherOrderComponent)((l=>o=>{var n,a,r;const{attributes:i,name:s}=o;if(null==c||null===(n=c[s])||void 0===n||!n.boxShadow)return(0,t.createElement)(l,o);const{useDefaultBoxShadow:u,boxShadowX:d,boxShadowY:p,boxShadowBlur:m,boxShadowSpread:b,boxShadowColor:h,boxShadowGradient:g,boxShadowZIndex:y,style:v}=i;let w={...o.wrapperProps};if(w.className+=" has-box-shadow",u)return(0,t.createElement)(l,e({},o,w));if(!g&&!h)return(0,t.createElement)(l,o);o.className+=" has-box-shadow";let f="0px";return null!=v&&null!==(a=v.border)&&void 0!==a&&a.radius&&(f=(parseInt(v.border.radius)+parseInt(b)/2).toString()+"px"),w.style={...w.style,"--wp--custom--box-shadow--x":(null!=d?d:0)+"px","--wp--custom--box-shadow--y":(null!=p?p:0)+"px","--wp--custom--box-shadow--blur":(null!=m?m:0)+"px","--wp--custom--box-shadow--spread":(null!=b?b:0)+"px","--wp--custom--box-shadow--radius":null!==(r=f)&&void 0!==r?r:0,"--wp--custom--box-shadow--z-index":null!=y?y:0},g&&(w.style["--wp--custom--box-shadow--gradient"]=g),h&&(w.style["--wp--custom--box-shadow--color"]=h),(0,t.createElement)(l,e({},o,{wrapperProps:w}))}),"withBoxShadow");(0,r.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",d),(0,r.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,l)=>{var o,n,a;if(null==c||null===(o=c[null==t?void 0:t.name])||void 0===o||!o.boxShadow)return e;const{useDefaultBoxShadow:r,boxShadowX:i,boxShadowY:s,boxShadowBlur:u,boxShadowSpread:d,boxShadowColor:p,boxShadowGradient:m,boxShadowZIndex:b,style:h}=l;if(r)return e.className+=" has-box-shadow",e;if(!m&&!p)return e;e.className+=" has-box-shadow";let g="0px";return null!=h&&null!==(n=h.border)&&void 0!==n&&n.radius&&(g=(parseInt(h.border.radius)+parseInt(d)/2).toString()+"px"),e.style={...e.style,"--wp--custom--box-shadow--x":(null!=i?i:0)+"px","--wp--custom--box-shadow--y":(null!=s?s:0)+"px","--wp--custom--box-shadow--blur":(null!=u?u:0)+"px","--wp--custom--box-shadow--spread":(null!=d?d:0)+"px","--wp--custom--box-shadow--radius":null!==(a=g)&&void 0!==a?a:"0px","--wp--custom--box-shadow--z-index":null!=b?b:0},m&&(e.style["--wp--custom--box-shadow--gradient"]=m),p&&(e.style["--wp--custom--box-shadow--color"]=p),e}));const p=["core/separator","core/paragraph"];(0,r.addFilter)("blocks.registerBlockType","blockify/add-width-attribute",((e,t)=>(p.includes(t)&&(e.attributes.width={type:"string"},e.attributes.height={type:"string"}),e)));const m=(0,a.createHigherOrderComponent)((e=>l=>{var a;const r=(0,t.createElement)(e,l);if(!p.includes(l.name))return r;const{attributes:s,setAttributes:c}=l;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(e,l),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(o.PanelBody,{title:(0,i.__)("Dimensions","blockify"),initialOpen:!1,className:"blockify-controls"},(0,t.createElement)(o.__experimentalUnitControl,{label:(0,i.__)("Width","blockify"),value:null!==(a=s.width)&&void 0!==a?a:"auto",onChange:e=>c({width:e})}))))}),"withWidthCss"),b=e=>{let t="";return null!=e&&e.width&&(t+="width:"+e.width),t.trim()};(0,r.addFilter)("editor.BlockEdit","blockify/with-width-css",m);const h=(0,a.createHigherOrderComponent)((e=>l=>{const{attributes:o,name:n,clientId:a}=l,r=(0,t.createElement)(e,l);if(!p.includes(n))return r;let i=b(o);return i?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("style",null,"#block-"+a+"{"+i+"}"),(0,t.createElement)(e,l)):r}),"withWidth");(0,r.addFilter)("editor.BlockListBlock","blockify/with-css-filter",h),(0,r.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-filter-styles",(function(e,t,l){if(void 0!==l&&p.includes(t.name)){let t=b(l);t&&(e={...e,style:{...e.style,styles:t}})}return e}));const g=["core/image","core/group"],y={blur:{type:"integer"},brightness:{type:"integer"},contrast:{type:"integer"},grayscale:{type:"integer"},hueRotate:{type:"integer"},invert:{type:"integer"},opacity:{type:"integer"},saturate:{type:"integer"},sepia:{type:"integer"}};(0,r.addFilter)("blocks.registerBlockType","blockify/add-css-filter-attributes",((e,t)=>(g.includes(t)&&Object.keys(y).map((t=>{e.attributes[t]=y[t]})),e)));const v=(0,a.createHigherOrderComponent)((e=>l=>{var a,r,s,c,u,d,p,m,b;const h=(0,t.createElement)(e,l);if(!g.includes(l.name))return h;const{attributes:y,setAttributes:v}=l;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(e,l),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(o.PanelBody,{title:(0,i.__)("Filter","blockify"),initialOpen:!1,className:"blockify-controls"},(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Blur","blockify"),value:null!==(a=null==y?void 0:y.blur)&&void 0!==a?a:0,onChange:e=>v({blur:e}),min:0,max:100,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Brightness","blockify"),value:null!==(r=null==y?void 0:y.brightness)&&void 0!==r?r:100,onChange:e=>v({brightness:e}),min:0,max:1e3,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Contrast","blockify"),value:null!==(s=null==y?void 0:y.contrast)&&void 0!==s?s:100,onChange:e=>v({contrast:e}),min:0,max:1e3,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Grayscale","blockify"),value:null!==(c=null==y?void 0:y.grayscale)&&void 0!==c?c:0,onChange:e=>v({grayscale:e}),min:0,max:100,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Hue Rotate","blockify"),value:null!==(u=null==y?void 0:y.hueRotate)&&void 0!==u?u:0,onChange:e=>v({hueRotate:e}),min:0,max:360,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Invert","blockify"),value:null!==(d=null==y?void 0:y.invert)&&void 0!==d?d:0,onChange:e=>v({invert:e}),min:0,max:100,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Opacity","blockify"),value:null!==(p=null==y?void 0:y.opacity)&&void 0!==p?p:100,onChange:e=>v({opacity:e}),min:0,max:100,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Saturate","blockify"),value:null!==(m=null==y?void 0:y.saturate)&&void 0!==m?m:100,onChange:e=>v({saturate:e}),min:0,max:1e3,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Sepia","blockify"),value:null!==(b=null==y?void 0:y.sepia)&&void 0!==b?b:0,onChange:e=>v({sepia:e}),min:0,max:100,step:1,shiftStep:10,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}))))}),"withCssFilter"),w=e=>{let t="";return null!=e&&e.blur&&(t+=" blur("+e.blur+"px)"),null!=e&&e.brightness&&(t+=" brightness("+e.brightness+"%)"),null!=e&&e.contrast&&(t+=" contrast("+e.contrast+"%)"),null!=e&&e.grayscale&&(t+=" grayscale("+e.grayscale+"%)"),null!=e&&e.hueRotate&&(t+=" hue-rotate("+e.hueRotate+"deg)"),null!=e&&e.invert&&(t+=" invert("+e.invert+"%)"),null!=e&&e.opacity&&(t+=" opacity("+e.opacity+"%)"),null!=e&&e.saturate&&(t+=" saturate("+e.saturate+"%)"),null!=e&&e.sepia&&(t+=" sepia("+e.sepia+"%)"),t.trim()};(0,r.addFilter)("editor.BlockEdit","blockify/with-css-transforms",v);const f=(0,a.createHigherOrderComponent)((e=>l=>{const{attributes:o,name:n,clientId:a}=l,r=(0,t.createElement)(e,l);if(!g.includes(n))return r;let i=w(o);return i?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("style",null,"#block-"+a+"{filter:"+i+"}"),(0,t.createElement)(e,l)):r}),"withCssTransform");(0,r.addFilter)("editor.BlockListBlock","blockify/with-css-filter",f),(0,r.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-filter-styles",(function(e,t,l){if(void 0!==l&&g.includes(t.name)){let t=w(l);t&&(e={...e,style:{...e.style,filter:t}})}return e})),(0,r.addFilter)("blocks.registerBlockType","blockify/block-attributes-position",(e=>{var t;return null!=e&&null!==(t=e.attributes)&&void 0!==t&&t.position||(e.attributes=Object.assign(e.attributes,{position:{type:"string"},inset:{type:"object"},zIndex:{type:"integer"}})),e}));const k=(0,a.createHigherOrderComponent)((e=>l=>{const{attributes:a,setAttributes:r,isSelected:s}=l;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(e,l),s&&(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(o.PanelBody,{title:(0,i.__)("Position","blockify"),initialOpen:!1,className:"blockify-controls"},((e,l)=>{var n,a,r,s;const{position:c,inset:u,zIndex:d}=e,p=[{label:(0,i.__)("Default","blockify"),value:""},{label:(0,i.__)("Relative","blockify"),value:"relative"},{label:(0,i.__)("Absolute","blockify"),value:"absolute"},{label:(0,i.__)("Sticky","blockify"),value:"sticky"},{label:(0,i.__)("Fixed","blockify"),value:"fixed"},{label:(0,i.__)("Static","blockify"),value:"static"}];return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.SelectControl,{label:(0,i.__)("Position","blockify"),value:null!=c?c:"",options:p,onChange:e=>l({position:e})})),(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.Flex,null,(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalUnitControl,{label:(0,i.__)("Top","blockify"),value:null!==(n=null==u?void 0:u.top)&&void 0!==n?n:"",onChange:e=>l({inset:{...u,top:e}})})),(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalUnitControl,{label:(0,i.__)("Right","blockify"),value:null!==(a=null==u?void 0:u.right)&&void 0!==a?a:"",onChange:e=>l({inset:{...u,right:e}})})),(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalUnitControl,{label:(0,i.__)("Bottom","blockify"),value:null!==(r=null==u?void 0:u.bottom)&&void 0!==r?r:"",onChange:e=>l({inset:{...u,bottom:e}})})),(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalUnitControl,{label:(0,i.__)("Left","blockify"),value:null!==(s=null==u?void 0:u.left)&&void 0!==s?s:"",onChange:e=>l({inset:{...u,left:e}})})))),(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Z Index","blockify"),onChange:e=>l({zIndex:e}),value:d,min:-10,max:10,step:1,shiftStep:!0,allowReset:!0})))})(a,r))))}),"withAdvancedControls");(0,r.addFilter)("editor.BlockEdit","blockify/custom-advanced-control",k);const x=e=>{const{position:t,inset:l,zIndex:o,transform:n,opacity:a}=e;let r={};return t&&(r.position=t),null!=l&&l.top&&(r.top=l.top),null!=l&&l.right&&(r.right=l.right),null!=l&&l.bottom&&(r.bottom=l.bottom),null!=l&&l.left&&(r.left=l.left),o&&(r.zIndex=o),r},E=(0,a.createHigherOrderComponent)((l=>o=>{const{attributes:n}=o,a=x(n);let r={...o.wrapperProps};return a&&(r.style={...r.style,...a}),(0,t.createElement)(l,e({},o,{wrapperProps:r}))}),"withPositionStyle");(0,r.addFilter)("editor.BlockListBlock","blockify/with-position-style",E),(0,r.addFilter)("blocks.getSaveContent.extraProps","blockify/add-position-style",((e,t,l)=>{const o=x(l);return o&&(e.style={...e.style,...o}),e})),window.blockify.blockSupports;const _=["core/columns","core/cover","core/group","core/media-text","core/row","core/stack"];(0,r.addFilter)("blocks.registerBlockType","blockify/reverse-mobile-attributes",((e,t)=>(_.includes(t)&&(e.attributes.reverseMobile={type:"boolean"}),e)));const S=(0,a.createHigherOrderComponent)((e=>l=>{const a=(0,t.createElement)(e,l);if(!_.includes(l.name))return a;const{attributes:r,setAttributes:s}=l,{reverseMobile:c}=r;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(e,l),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(o.PanelRow,{className:"blockify-reverse-mobile"},(0,t.createElement)(o.ToggleControl,{label:(0,i.__)("Reverse on mobile","blockify"),checked:null!=c&&c,onChange:()=>s({reverseMobile:!c})}))))}),"editReverseMobile");(0,r.addFilter)("editor.BlockEdit","blockify/edit-reverse-mobile",S,0);const C=(0,a.createHigherOrderComponent)((e=>l=>{const{attributes:o,name:n}=l,a=(0,t.createElement)(e,l);return _.includes(n)?(null!=o&&o.reverseMobile&&(l.className+=" is-reverse-on-mobile"),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(e,l))):a}),"withReverseMobile");(0,r.addFilter)("editor.BlockListBlock","blockify/with-reverse-mobile",C),(0,r.addFilter)("blocks.getSaveContent.extraProps","blockify/save-reverse-mobile",(function(e,t,l){return void 0!==l&&_.includes(t.name)&&null!=l&&l.reverseMobile&&(e.className+=" is-reverse-on-mobile"),e}));const F=["core/group","core/image"],B={translateX:{type:"object"},translateY:{type:"object"},translateZ:{type:"object"},scale:{type:"integer"},scaleX:{type:"integer"},scaleY:{type:"integer"},scaleZ:{type:"integer"},rotate:{type:"integer"},rotateX:{type:"integer"},rotateY:{type:"integer"},rotateZ:{type:"integer"},skewX:{type:"integer"},skewY:{type:"integer"}};(0,r.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>(F.includes(t)&&Object.keys(B).map((t=>{e.attributes[t]=B[t]})),e)));const R=(0,a.createHigherOrderComponent)((e=>l=>{var a,r,s,c,u,d,p,m,b,h,g,y,v;const w=(0,t.createElement)(e,l);if(!F.includes(l.name))return w;const{attributes:f,setAttributes:k}=l;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(e,l),(0,t.createElement)(n.InspectorControls,null,(0,t.createElement)(o.PanelBody,{title:(0,i.__)("Transform","blockify"),initialOpen:!1,className:"blockify-controls"},(0,t.createElement)(o.__experimentalText,null,(0,i.__)("Translate","blockify")),(0,t.createElement)("br",null),(0,t.createElement)(o.Flex,null,(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalUnitControl,{label:(0,i.__)("X","blockify"),value:null!==(a=f.translateX)&&void 0!==a?a:"0px",onChange:e=>k({translateX:e})})),(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalUnitControl,{label:(0,i.__)("Y","blockify"),value:null!==(r=null==f?void 0:f.translateY)&&void 0!==r?r:"0px",onChange:e=>k({translateY:e})})),(0,t.createElement)(o.FlexItem,null,(0,t.createElement)(o.__experimentalUnitControl,{label:(0,i.__)("Z","blockify"),value:null!==(s=null==f?void 0:f.translateZ)&&void 0!==s?s:"0px",onChange:e=>k({translateZ:e})}))),(0,t.createElement)("br",null),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Scale","blockify"),value:null!==(c=null==f?void 0:f.scale)&&void 0!==c?c:1,onChange:e=>k({scale:e}),min:-10,max:10,step:.1,shiftStep:1,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Scale X","blockify"),value:null!==(u=null==f?void 0:f.scaleX)&&void 0!==u?u:1,onChange:e=>k({scaleX:e}),min:-10,max:10,step:.1,shiftStep:1,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Scale Y","blockify"),value:null!==(d=null==f?void 0:f.scaleY)&&void 0!==d?d:1,onChange:e=>k({scaleY:e}),min:-10,max:10,step:.1,shiftStep:1,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.RangeControl,{label:(0,i.__)("Scale Z","blockify"),value:null!==(p=null==f?void 0:f.scaleZ)&&void 0!==p?p:1,onChange:e=>k({scaleZ:e}),min:-10,max:10,step:.1,shiftStep:1,isShiftStepEnabled:!0,withInputField:!0,allowReset:!0}),(0,t.createElement)(o.AnglePickerControl,{label:(0,i.__)("Rotate","blockify"),value:null!==(m=null==f?void 0:f.rotate)&&void 0!==m?m:0,onChange:e=>k({rotate:e})}),(0,t.createElement)(o.AnglePickerControl,{label:(0,i.__)("RotateX","blockify"),value:null!==(b=null==f?void 0:f.rotateX)&&void 0!==b?b:0,onChange:e=>k({rotateX:e})}),(0,t.createElement)(o.AnglePickerControl,{label:(0,i.__)("RotateY","blockify"),value:null!==(h=null==f?void 0:f.rotateY)&&void 0!==h?h:0,onChange:e=>k({rotateY:e})}),(0,t.createElement)(o.AnglePickerControl,{label:(0,i.__)("RotateZ","blockify"),value:null!==(g=null==f?void 0:f.rotateZ)&&void 0!==g?g:0,onChange:e=>k({rotateZ:e})}),(0,t.createElement)("br",null),(0,t.createElement)(o.AnglePickerControl,{label:(0,i.__)("Skew X","blockify"),value:null!==(y=null==f?void 0:f.skewX)&&void 0!==y?y:0,onChange:e=>k({skewX:e})}),(0,t.createElement)(o.AnglePickerControl,{label:(0,i.__)("Skew Y","blockify"),value:null!==(v=null==f?void 0:f.skewY)&&void 0!==v?v:0,onChange:e=>k({skewY:e})}))))}),"withCssTransforms"),P=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,r.addFilter)("editor.BlockEdit","blockify/with-css-transforms",R);const I=(0,a.createHigherOrderComponent)((e=>l=>{const{attributes:o,name:n,clientId:a}=l,r=(0,t.createElement)(e,l);if(!F.includes(n))return r;const i=P(o);return i?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("style",null,"#block-"+a+"{transform:"+i+"}"),(0,t.createElement)(e,l)):r}),"withCssTransform");(0,r.addFilter)("editor.BlockListBlock","blockify/with-css-transform",I),(0,r.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-transform-styles",(function(e,t,l){if(void 0!==l&&F.includes(t.name)){const t=P(l);t&&(e={...e,style:{...e.style,transform:t}})}return e}));const T=window.lodash,O=window.wp.data,X=window.wp.richText;class Y extends t.Component{render(){const{value:e,isActive:l,onChange:o,formatTypes:a}=this.props;return(0,t.createElement)(n.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,i.__)("Clear Formatting","blockify"),onClick:()=>{if(a.length>0){let t=e;(0,T.map)(a,(e=>{t=(0,X.removeFormat)(t,e.name)})),o({...t})}},isActive:l})}}const N=(0,a.compose)((0,O.withSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()}))))(Y);(0,X.registerFormatType)("blockify/clear-formatting",{title:(0,i.__)("Clear","blockify"),tagName:"span",className:"clear",edit:e=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(N,e))});const A=window.wp.primitives,Z=(0,t.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(A.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"})),j=(0,t.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(A.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"})),z="blockify/small";(0,X.registerFormatType)(z,{title:(0,i.__)("Small","blockify"),tagName:"small",className:null,edit(e){let{isActive:l,value:o,onChange:a}=e;const r=()=>{a((0,X.toggleFormat)(o,{type:z}))};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.RichTextShortcut,{type:"primary",character:"sm",onUse:r}),(0,t.createElement)(n.RichTextToolbarButton,{icon:Z,title:(0,i.__)("Small","blockify"),onClick:r,isActive:l,shortcutType:"primary",shortcutCharacter:"sm"}))}});const H="blockify/big";(0,X.registerFormatType)(H,{title:(0,i.__)("Big","blockify"),tagName:"big",className:null,edit(e){let{isActive:l,value:o,onChange:a}=e;const r=()=>{a((0,X.toggleFormat)(o,{type:H}))};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.RichTextShortcut,{type:"primary",character:"+",onUse:r}),(0,t.createElement)(n.RichTextToolbarButton,{icon:j,title:(0,i.__)("Big","blockify"),onClick:r,isActive:l,shortcutType:"primary",shortcutCharacter:"+"}))}});const M=(0,t.createElement)(A.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)(A.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"})),G="blockify/gradient",U=[{gradient:"linear-gradient(0deg,var(--wp--preset--color--black) 0%,var(--wp--preset--color--white) 100%)",slug:"black-white",name:"Black White"}];(0,X.registerFormatType)(G,{title:(0,i.__)("Gradient","blockify"),tagName:"span",className:"has-gradient-text",attributes:{style:"style",class:"class"},edit:(0,a.compose)((0,O.withSelect)((e=>{const{gradients:t}=e("core/block-editor").getSettings();return{gradients:t||U}})))((e=>{let{isActive:l,value:a,onChange:r,gradients:s}=e;const[c,u]=(0,t.useState)(""),[d,p]=(0,t.useState)(!1);return(0,t.createElement)(n.BlockControls,null,(0,t.createElement)(n.RichTextShortcut,{type:"primary",character:"g"}),(0,t.createElement)(n.RichTextToolbarButton,{icon:M,title:(0,i.__)("Gradient","blockify"),isActive:l,shortcutType:"primary",shortcutCharacter:"g",onClick:()=>p(!d)}),d&&(0,t.createElement)(o.Toolbar,{className:"blockify-components-toolbar"},(0,t.createElement)(o.Popover,{position:"bottom center",className:"blockify-gradient-text-control",focusOnMount:"container",onFocusOutside:()=>p(!1)},(0,t.createElement)(o.GradientPicker,{value:c,gradients:s,onChange:e=>{u(e),r((0,X.applyFormat)(a,{type:G,attributes:{style:"background:"+e,class:"has-gradient-text"}}))}}))))}))});const L=(0,t.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(A.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"})),V="blockify/underline";(0,X.registerFormatType)(V,{title:(0,i.__)("Underline","blockify"),tagName:"u",className:null,edit:e=>{let{isActive:l,value:o,onChange:a}=e;const r=()=>{a((0,X.toggleFormat)(o,{type:V}))};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.RichTextShortcut,{type:"primary",character:"u",onUse:r}),(0,t.createElement)(n.RichTextToolbarButton,{icon:L,title:(0,i.__)("Underline","blockify"),onClick:r,isActive:l,shortcutType:"primary",shortcutCharacter:"u"}))}});const D=window.wp.blocks,W=window.wp.domReady;var q=l.n(W);q()((()=>{var e,t,l;const o=null!==(e=null===(t=window)||void 0===t||null===(l=t.blockify)||void 0===l?void 0:l.blockStyles)&&void 0!==e?e:{unregister:[],register:[]};[...null==o?void 0:o.unregister].forEach((e=>{(0,D.unregisterBlockStyle)(null==e?void 0:e.type,null==e?void 0:e.name)})),[...null==o?void 0:o.register].forEach((e=>{(0,D.registerBlockStyle)(null==e?void 0:e.type,e)}))}));var Q,J,K,$=l(184),ee=l.n($);const te=null!==(Q=null===(J=window)||void 0===J||null===(K=J.blockify)||void 0===K?void 0:K.blockSupports)&&void 0!==Q?Q:{};(0,r.addFilter)("blocks.registerBlockType","blockify/block-supports",((e,t)=>(Object.keys(te).includes(t)&&(e.supports={...e.supports,...te[t]}),e)),0),(0,r.addFilter)("blocks.getSaveContent.extraProps","blockify/alignment-class",((e,t,l)=>(Object.keys(te).includes(t.name)&&null!=l&&l.align&&(e.className=ee()(e.className,"align"+l.align)),e))),(0,r.addFilter)("blocks.registerBlockType","blockify/block-attributes-search",((e,t)=>{var l,o,n;return"core/search"===t&&(e.attributes.style={...null===(l=e.attributes)||void 0===l?void 0:l.style,spacing:{...null===(o=e.attributes)||void 0===o||null===(n=o.style)||void 0===n?void 0:n.spacing,padding:{top:"1em",right:"1em",bottom:"1em",left:"2em"}}}),e}),0);const le=(0,a.createHigherOrderComponent)((e=>l=>{var o,n,a;if("core/search"!==l.name)return(0,t.createElement)(e,l);const r=document.getElementsByClassName("wp-block-search__input"),i=null==l||null===(o=l.attributes)||void 0===o||null===(n=o.style)||void 0===n||null===(a=n.spacing)||void 0===a?void 0:a.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,t.createElement)(e,l)}),"withInspectorControl");(0,r.addFilter)("editor.BlockEdit","blockify/with-search-padding-css",le);const oe=window.jQuery;var ne=l.n(oe);q()((()=>{var e,t;const l=ne()(".post-type-block_pattern .page-title-action")[0];if(!l)return;const o=null!==(e=null===(t=window)||void 0===t?void 0:t.blockify)&&void 0!==e?e:{},n=ne()('').get(0);l.after(n),ne()(".export-button").on("click",(()=>{ne().ajax({method:"POST",url:null==o?void 0:o.ajaxUrl,data:{action:"blockify_export_patterns",nonce:null==o?void 0:o.nonce},success:e=>{console.log(e)},error:e=>{console.log((0,i.__)("Patterns error","blockify")),console.log(e)}})}))}));const ae=window.wp.plugins,re=window.wp.editor,ie=window.wp.editPost;(0,ae.registerPlugin)("blockify-page-title",{render:()=>{const{postTitle:e,template:l}=(0,O.useSelect)((e=>({postTitle:e(re.store).getEditedPostAttribute("title"),template:e(re.store).getEditedPostAttribute("template")})),[]);"landing-page"===l?document.body.classList.add("page-template-landing-page"):document.body.classList.remove("page-template-landing-page");const{editPost:n}=(0,O.useDispatch)(re.store);return(0,t.createElement)("div",null,(0,t.createElement)(ie.PluginPostStatusInfo,null,(0,t.createElement)(o.TextControl,{label:(0,i.__)("Title","blockify"),value:null!=e?e:"",min:1,onChange:e=>n({title:e}),required:!0})))}});const se=window.wp.apiFetch;var ce=l.n(se);(0,ae.registerPlugin)("blockify-template-parts",{render:()=>{const{postMeta:e}=(0,O.useSelect)((e=>({postMeta:e(re.store).getEditedPostAttribute("meta")})),[]),{setPostMeta:l}=(0,O.useDispatch)(re.store),n=[{label:(0,i.__)("Default","blockify"),value:""},{label:(0,i.__)("None","blockify"),value:"none"}],[a,r]=(0,t.useState)(null);(0,t.useEffect)((()=>{ce()({path:"/wp/v2/template-parts?context=edit&per_page=-1"}).then((e=>{r(e),console.log(e)}),(e=>{console.error(e)}))}),[r]);const s=[...n],c=[...n];return a instanceof Array&&[...a].forEach((e=>{var t,l;"header"===(null==e?void 0:e.area)&&s.push({label:null==e||null===(t=e.title)||void 0===t?void 0:t.rendered,value:null==e?void 0:e.slug}),"footer"===(null==e?void 0:e.area)&&c.push({label:null==e||null===(l=e.title)||void 0===l?void 0:l.rendered,value:null==e?void 0:e.slug})})),(0,t.createElement)(ie.PluginDocumentSettingPanel,{title:(0,i.__)("Template Parts","blockify"),icon:!1,initialOpen:!1,className:"blockify-template-parts"},(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.SelectControl,{label:(0,i.__)("Header Template Part","blockify"),value:null==e?void 0:e.header_style,options:null!=s?s:n,onChange:e=>l({header_style:e})})),(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.SelectControl,{label:(0,i.__)("Footer Template Part","blockify"),value:null==e?void 0:e.footer_style,options:null!=c?c:n,onChange:e=>l({footer_style:e})})),(0,t.createElement)(o.PanelRow,null,(0,t.createElement)(o.ToggleControl,{label:(0,i.__)("Enable sticky header","blockify"),onChange:e=>l({sticky_header:e}),checked:null==e?void 0:e.sticky_header})))}})})()})();