From df4dde0630b13264f8c97da5f6635219c4d15af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 23 Jun 2023 02:55:34 +0000 Subject: [PATCH 1/3] Fix typos --- assets/js/editor.js | 2 +- readme.txt | 4 ++-- src/block-extensions/animation.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/js/editor.js b/assets/js/editor.js index 6f26395..a291ff2 100644 --- a/assets/js/editor.js +++ b/assets/js/editor.js @@ -1 +1 @@ -!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},915:function(e,t,n){"use strict";var l=this&&this.__createBinding||(Object.create?function(e,t,n,l){void 0===l&&(l=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,l,r)}:function(e,t,n,l){void 0===l&&(l=n),e[l]=t[n]}),r=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 o=n(960),a=n(790);r(n(790),t);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=i),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:i,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.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?o.ElementType.Tag:void 0,l=new a.Element(e,t,void 0,n);this.addNode(l),this.tagStack.push(l)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.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 a.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=s,t.default=s},790:function(e,t,n){"use strict";var l,r=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 __)}),o=this&&this.__assign||function(){return o=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}(i);t.NodeWithChildren=p;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var y=function(e){function t(t,n,l,r){void 0===l&&(l=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,l)||this;return o.name=t,o.attribs=n,o.type=r,o}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),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}(p);function h(e){return(0,a.isTag)(e)}function b(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function v(e){return e.type===a.ElementType.Comment}function k(e){return e.type===a.ElementType.Directive}function E(e){return e.type===a.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(v(e))n=new u(e.data);else if(h(e)){var l=t?x(e.children):[],r=new y(e.name,o({},e.attribs),l);l.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=r}else if(b(e)){l=t?x(e.children):[];var a=new d(l);l.forEach((function(e){return e.parent=a})),n=a}else if(E(e)){l=t?x(e.children):[];var i=new f(l);l.forEach((function(e){return e.parent=i})),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new m(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return w(e,!0)})),n=1;n/i,a=//i,i=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;i=s=function(e,t){return t&&(e="<"+t+">"+e+""),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var m=document.implementation.createHTMLDocument();i=function(e,t){return t?(m.documentElement.querySelector(t).innerHTML=e,m):(m.documentElement.innerHTML=e,m)}}var p,d="object"==typeof document?document.createElement("template"):{};d.content&&(p=function(e){return d.innerHTML=e,d.content.childNodes}),e.exports=function(e){var c,u,m,d,f=e.match(r);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case t:return u=s(e),o.test(e)||(m=u.querySelector(n))&&m.parentNode.removeChild(m),a.test(e)||(m=u.querySelector(l))&&m.parentNode.removeChild(m),u.querySelectorAll(t);case n:case l:return d=(u=i(e)).querySelectorAll(c),a.test(e)&&o.test(e)?d[0].parentNode.childNodes:d;default:return p?p(e):(m=i(e,l).querySelector(l)).childNodes}}},152:function(e,t,n){var l=n(276),r=n(507).formatDOM,o=/<(![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(o);return n&&n[1]&&(t=n[1]),r(l(e),null,t)}},507:function(e,t,n){for(var l,r=n(915),o=n(885).CASE_SENSITIVE_TAG_NAMES,a=r.Comment,i=r.Element,s=r.ProcessingInstruction,c=r.Text,u={},m=0,p=o.length;m1&&(u=f(u,{key:u.key||k})),b.push(u);else if("text"!==o.type){switch(m=o.attribs,s(o)?a(m.style,m):m&&(m=r(m,o.name)),p=null,o.type){case"script":case"style":o.children[0]&&(m.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?m.defaultValue=o.children[0].data:o.children&&o.children.length&&(p=e(o.children,n));break;default:continue}E>1&&(m.key=k),b.push(y(o.name,m,p))}else{if((c=!o.data.trim().length)&&o.parent&&!i(o.parent))continue;if(v&&c)continue;b.push(o.data)}return 1===b.length?b[0]:b}},606:function(e,t,n){var l=n(196),r=n(476).default,o={reactCompat:!0},a=l.version.split(".")[0]>=16,i=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,l,r="function"==typeof t,o={},a={};for(n in e)l=e[n],r&&(o=t(n,l))&&2===o.length?a[o[0]]=o[1]:"string"==typeof l&&(a[l]=n);return a},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=r(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!i.has(e.name)},elementsWithNoTextChildren:i}},139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,l=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,s=/^\s+|\s+$/g,c="\n",u="/",m="*",p="",d="comment",f="declaration";function y(e){return e?e.replace(s,p):p}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var h=1,b=1;function g(e){var t=e.match(n);t&&(h+=t.length);var l=e.lastIndexOf(c);b=~l?e.length-l:b+e.length}function v(){var e={line:h,column:b};return function(t){return t.position=new k(e),_(),t}}function k(e){this.start=e,this.end={line:h,column:b},this.source=s.source}k.prototype.content=e;var E=[];function w(t){var n=new Error(s.source+":"+h+":"+b+": "+t);if(n.reason=t,n.filename=s.source,n.line=h,n.column=b,n.source=e,!s.silent)throw n;E.push(n)}function x(t){var n=t.exec(e);if(n){var l=n[0];return g(l),e=e.slice(l.length),n}}function _(){x(l)}function S(e){var t;for(e=e||[];t=C();)!1!==t&&e.push(t);return e}function C(){var t=v();if(u==e.charAt(0)&&m==e.charAt(1)){for(var n=2;p!=e.charAt(n)&&(m!=e.charAt(n)||u!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return w("End of comment missing");var l=e.slice(2,n-2);return b+=2,g(l),e=e.slice(n),b+=2,t({type:d,comment:l})}}function F(){var e=v(),n=x(r);if(n){if(C(),!x(o))return w("property missing ':'");var l=x(a),s=e({type:f,property:y(n[0].replace(t,p)),value:l?y(l[0].replace(t,p)):p});return x(i),s}}return _(),function(){var e,t=[];for(S(t);e=F();)!1!==e&&(t.push(e),S(t));return t}()}},726:function(e,t,n){"use strict";function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);ne?e?.toLowerCase()?.replace(/(?<= )[^\s]|^./g,(e=>e?.toUpperCase())):"",o=e=>{var t;return e&&null!==(t=e?.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.join("-")?.toLowerCase())&&void 0!==t?t:""},a=(e,t,n)=>e?.split(t)?.join(n);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var e,t,n;const o=null!==(e=window?.blockify?.blockStyles)&&void 0!==e?e:{unregister:{},register:{}},i=null!==(t=o?.unregister)&&void 0!==t?t:{},s=null!==(n=o?.register)&&void 0!==n?n:{};Object.keys(i).forEach((e=>{i[e].forEach((t=>{(0,l.unregisterBlockStyle)(e,t)}))})),Object.keys(s).forEach((e=>{s[e].forEach((t=>{(0,l.registerBlockStyle)(e,{name:t,label:r(a(t,"-"," "))})}))}))}));var s=window.wp.element,c=window.wp.hooks,u=window.wp.compose;const m=e=>Object.keys(e).map((t=>`${t?.includes("-")?t:o(t)}:${e[t]};`)).join(" "),p=e=>{const t={};return e.split(";").map((e=>{const[n,l]=e.split(":");return n&&(t[n]=l),null})),t},d=e=>e.includes("var:")?(e=e.replace("var:","var(--wp--"),(e=a(e,"|","--"))+")"):e;var f;const y=null!==(f=window?.blockify?.blockSupports)&&void 0!==f?f:{};(0,c.addFilter)("blocks.registerBlockType","blockify/block-supports",((e,t)=>(Object.keys(y).includes(t)&&(e.supports={...e.supports,...y[t]}),e)),0),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/alignment-class",((e,t,n)=>(Object.keys(y).includes(t.name)&&n?.align&&!e.className.includes(" align")&&(e.className+=" align"+n.align),e))),(0,c.addFilter)("blocks.registerBlockType","blockify/block-attributes-search",((e,t)=>("core/search"===t&&(e.attributes.style={...e.attributes?.style,spacing:{...e.attributes?.style?.spacing,padding:{top:"1em",right:"1em",bottom:"1em",left:"2em"}}}),e)),0),(0,c.addFilter)("editor.BlockEdit","blockify/with-search-padding-css",(0,u.createHigherOrderComponent)((e=>t=>{if("core/search"!==t.name)return(0,s.createElement)(e,t);const n=document.getElementsByClassName("wp-block-search__input"),l=t?.attributes?.style?.spacing?.padding;return n[0]&&l&&(l.top&&(n[0].style.paddingTop=l?.top),l.right&&(n[0].style.paddingRight=l?.right),l.bottom&&(n[0].style.paddingBottom=l?.bottom),l.left&&(n[0].style.paddingLeft=l?.left)),(0,s.createElement)(e,t)}),"withSearchPaddingCss")),(0,c.addFilter)("editor.BlockListBlock","blockify/with-block-gap-css",(0,u.createHigherOrderComponent)((e=>t=>{var n,l;const r=(0,s.createElement)(e,t);if("core/page-list"!==t.name)return r;const o=null!==(n=t?.attributes?.style?.spacing?.blockGap)&&void 0!==n?n:"";if(!o)return r;t.style={...null!==(l=t.style)&&void 0!==l?l:{},"--wp--style--block-gap":d(o)};const a={...t.wrapperProps,style:{...t.wrapperProps?.style,"--wp--style--block-gap":d(o)}};return(0,s.createElement)(e,i({},t,{wrapperProps:a}))}),"withBlockGapCss"));var h=window.wp.apiFetch,b=n.n(h),g=window.wp.data;const v={icons:{social:{},wordpress:{}}},k={setIcons(e){return{type:"SET_ICONS",icons:e}},getIcons(e){return{type:"GET_ICONS",path:e}}},E={getIcons(e){const{icons:t}=e;return t}},w={GET_ICONS(e){return b()({path:e.path})}},x={*getIcons(){const e=yield k.getIcons("/blockify/v1/icons/");return k.setIcons(e)}};(0,g.register)((0,g.createReduxStore)("blockify/icons",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;return"SET_ICONS"===t.type?{...e,icons:t.icons}:e},actions:k,selectors:E,controls:w,resolvers:x}));var _=window.wp.components,S=window.wp.i18n,C=window.wp.primitives,F=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));const T=()=>(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 120 120",xmlSpace:"preserve"},(0,s.createElement)(C.Path,{d:"M15 0h35v120H15zm55 0h35v120H70z"})),N=e=>{let{children:t}=e;return(0,s.createElement)("p",{className:"blockify-control-label"},t)};var P=window.wp.blockEditor;const I=[{value:"ease",label:(0,S.__)("Ease","blockify")},{value:"ease-in",label:(0,S.__)("Ease In","blockify")},{value:"ease-out",label:(0,S.__)("Ease Out","blockify"),isDefault:!0},{value:"ease-in-out",label:(0,S.__)("Ease In Out","blockify")},{value:"linear",label:(0,S.__)("Linear","blockify")}],O=[{value:"",label:""}];window?.blockify?.animations?.forEach((e=>{O.push({value:e,label:r(e?.replace(/-/g," "))})}));const B=[{value:"enter",label:(0,S.__)("Enter","blockify"),isDefault:!0},{value:"exit",label:(0,S.__)("Exit","blockify")},{value:"infinite",label:(0,S.__)("Infinite","blockify")},{value:"scroll",label:(0,S.__)("Scroll","blockify")}],A=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyAnimation)&&void 0!==t&&t};(0,c.addFilter)("blocks.registerBlockType","blockify/add-animation-attributes",((e,t)=>(A(t)&&(e.attributes={...e.attributes,animation:{type:"object"}}),e)),0);const z=e=>{const t={};var n,l,r,o,a,i,s;return e?.event&&(t["--animation-event"]=null!==(n=e.event)&&void 0!==n?n:"enter","infinite"===e.event&&(t.animationIterationCount="infinite")),e?.name&&(t.animationName=null!==(l=e.name)&&void 0!==l?l:""),e?.duration&&(t.animationDuration=(null!==(r=e.duration)&&void 0!==r?r:"1")+"s"),e?.delay&&(t.animationDelay=(null!==(o=e.delay)&&void 0!==o?o:"0")+"s"),e?.timingFunction&&(t.animationTimingFunction=null!==(a=e?.timingFunction)&&void 0!==a?a:"ease-in-out"),t?.animationIterationCount||(t.animationIterationCount=null!==(i=e?.iterationCount)&&void 0!==i?i:"1"),e?.playState&&(t.animationPlayState=null!==(s=e?.playState)&&void 0!==s?s:"running"),t};(0,c.addFilter)("editor.BlockListBlock","blockify/with-animation-props",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l}=t,r=null!==(n=l?.animation)&&void 0!==n?n:{};if(!r||!Object?.keys(r)?.length)return(0,s.createElement)(e,t);const o=z(r),a=t?.className?.trim()+" has-animation",c={...(t={...t,className:a})?.wrapperProps,className:a,style:{...t?.wrapperProps?.style,...o}};return(0,s.createElement)(e,i({},t,{wrapperProps:c}))}),"withAnimation")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-animation-styles",((e,t,n)=>{var l;const r=null!==(l=n?.animation)&&void 0!==l?l:{};if(!r||!Object?.keys(r)?.length)return e;e.className=e?.className?.trim()+" has-animation";const o=z(r);return{...e,style:{...e?.style,...o}}}));const M=e=>{var t,n,l,r,o,a,i;let{attributes:c,setAttributes:u}=e;const m=null!==(t=c?.animation)&&void 0!==t?t:{};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,s.createElement)("span",null,(0,S.__)("Animation","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>u({animation:{}}),icon:F,iconSize:16,"aria-label":(0,S.__)("Clear Animation","blockify")}))),(0,s.createElement)(_.Flex,{justify:"flex-end"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.Button,{isSecondary:!0,isSmall:!0,icon:"running"===m?.playState?T:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:"currentColor"},(0,s.createElement)("polygon",{points:"10,5 0,10 0,0"})),iconSize:10,onClick:()=>{u({animation:{...m,playState:"running"===m?.playState?"paused":"running"}})}},"running"===m?.playState?(0,S.__)("Pause","blockify"):(0,S.__)("Run","blockify"))))),(0,s.createElement)(_.PanelRow,{className:"blockify-animate-controls"},(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Effect","blockify"),value:null!==(n=m?.name)&&void 0!==n?n:"",options:O,onChange:e=>{var t;u({animation:{...m,name:e,duration:null!==(t=m?.duration)&&void 0!==t?t:1}})}}))),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Easing","blockify"),value:null!==(l=m?.timingFunction)&&void 0!==l?l:"",options:I,onChange:e=>{u({animation:{...m,timingFunction:e}})}}))),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Event","blockify"),value:null!==(r=m?.event)&&void 0!==r?r:"enter",options:B,onChange:e=>{u({animation:{...m,event:e,iterationCount:"infinite"===e?"-1":"-1"===m?.iterationCount?"1":m?.iterationCount}})}})))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Duration","blockify"),value:null!==(o=m?.duration)&&void 0!==o?o:1,onChange:e=>{u({animation:{...m,duration:e}})},min:0,max:100,step:.1,shifStep:10,allowReset:!0})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Delay","blockify"),value:null!==(a=m?.delay)&&void 0!==a?a:0,onChange:e=>{u({animation:{...m,delay:e}})},min:0,max:100,step:.1,shifStep:10,allowReset:!0})),(0,s.createElement)(_.FlexItem,null,"infinite"!==m?.event&&(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Repeat","blockify"),value:"infinite"===m?.event?-1:null!==(i=m?.iterationCount)&&void 0!==i?i:1,onChange:e=>{u({animation:{...m,iterationCount:e}})},min:-1,max:100,step:1,allowReset:!0})))))};(0,c.addFilter)("editor.BlockEdit","blockify/animation-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return A(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.animation)&&void 0!==n&&n,title:(0,S.__)("Animation","blockify")},(0,s.createElement)(M,t)))):(0,s.createElement)(e,t)}),"withAnimation"));var R,D=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})),j=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));const V=null!==(R=window?.blockify?.blockSupports)&&void 0!==R?R:{},L=["","none","block","inline-block","inline","flex","inline-flex","grid","inline-grid","contents"],H=(e,t)=>{var n,l;const{attributes:o,setAttributes:a}=e,{style:i}=o;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,{className:"blockify-display-controls"},(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Display","blockify"),value:null!==(n=i?.display?.[t])&&void 0!==n?n:"",options:L.map((e=>({label:r(e?.replace("-"," ")),value:e}))),onChange:e=>{a({style:{...i,display:{...i?.display,[t]:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Order","blockify"),value:null!==(l=i?.order?.[t])&&void 0!==l?l:"",onChange:e=>{a({style:{...i,order:{...i?.order,[t]:e}}})},min:-10,max:10,step:1,allowReset:!0}))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Width","blockify"),value:i?.width?.[t],onChange:e=>{a({style:{...i,width:{...i?.width,[t]:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Max Width","blockify"),value:i?.maxWidth?.[t],onChange:e=>{a({style:{...i,maxWidth:{...i?.maxWidth,[t]:e}}})}})))))},G=e=>{const{attributes:t,setAttributes:n}=e,[l,r]=(0,s.useState)("all");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,S.__)("Display","blockify"),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{n({style:{...t?.style,display:"",order:"",width:"",maxWidth:""}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Reset Display","blockify")}))),(0,s.createElement)(_.ButtonGroup,null,(0,s.createElement)(_.Button,{isSmall:!0,variant:"all"===l?"primary":"secondary",onClick:()=>r("all")},(0,S.__)("All","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,variant:"mobile"===l?"primary":"secondary",onClick:()=>r("mobile"),icon:D}),(0,s.createElement)(_.Button,{isSmall:!0,variant:"desktop"===l?"primary":"secondary",onClick:()=>r("desktop"),icon:j}))),"all"===l&&H(e,l),"mobile"===l&&H(e,l),"desktop"===l&&H(e,l))};(0,c.addFilter)("editor.BlockEdit","blockify/display-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return(e=>{var t;return null!==(t=V?.[e]?.blockifyPosition)&&void 0!==t&&t})(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.display)&&void 0!==n&&n,title:(0,S.__)("Display","blockify")},(0,s.createElement)(G,t)))):(0,s.createElement)(e,t)}),"withDisplay"));const U=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyFilter)&&void 0!==t&&t},W={blur:{unit:"px",min:0,max:500},brightness:{unit:"%",min:0,max:360},contrast:{unit:"%",min:0,max:200},grayscale:{unit:"%",min:0,max:100},hueRotate:{unit:"deg",min:-360,max:360},invert:{unit:"%",min:0,max:100},opacity:{unit:"%",min:0,max:100},saturate:{unit:"",min:0,max:100,step:.1},sepia:{unit:"%",min:0,max:100}};(0,c.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return U(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},filter:{type:"string"}}},e):e}));const q=e=>{let t="";return Object.keys(W).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&void 0!==e[n]&&(t+=" "+o(n)+"("+e[n]+W?.[n]?.unit+")")})),t?{[e?.backdrop?"backdropFilter":"filter"]:t.trim()}:{}};(0,c.addFilter)("editor.BlockListBlock","blockify/with-css-filter",(0,u.createHigherOrderComponent)((e=>t=>{var n,l;const r=null!==(n=t?.attributes?.style?.filter)&&void 0!==n?n:{},o=(0,s.createElement)(e,t);if(0===Object.getOwnPropertyNames(r).length)return o;const a=q(r);if(!Object.keys(a).length)return o;const c={...(t={...t,style:{...null!==(l=t?.style)&&void 0!==l?l:{},...a}}).wrapperProps,style:{...t.wrapperProps?.style,...a}};return(0,s.createElement)(e,i({},t,{wrapperProps:c}))}),"withCssFilter")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-filter-styles",((e,t,n)=>{var l;const r=null!==(l=n?.style?.filter)&&void 0!==l?l:{};if(0===Object.getOwnPropertyNames(r).length)return e;const o=q(r);return Object.keys(o).length?{...e,style:{...e?.style,...o}}:e}));const $=e=>{const{attributes:t,setAttributes:n}=e,{style:l}=t;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,S.__)("Filter","blockify"),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{n({style:{...t?.style,filter:{}}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Clear Filters","blockify")}))),(0,s.createElement)(_.PanelRow,{className:"blockify-filter-settings"},Object.keys(W).map((e=>{var t,o;return(0,s.createElement)(_.__experimentalNumberControl,{key:e,label:"hueRotate"===e?(0,S.__)("Hue Rotate","blockify"):r(e),value:l?.filter?.[e],onChange:t=>{var r;n({style:{...l,filter:{...null!==(r=l?.filter)&&void 0!==r?r:{},[e]:t}}})},min:null!==(t=W?.[e]?.min)&&void 0!==t?t:0,max:W?.[e]?.max,step:null!==(o=W?.[e]?.step)&&void 0!==o?o:1,allowReset:!0})}))),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Use as backdrop filter","blockify"),checked:l?.filter?.backdrop,onChange:e=>{n({style:{...l,filter:{...l?.filter,backdrop:e}}})}})))};var X;(0,c.addFilter)("editor.BlockEdit","blockify/filter-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return U(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.filter)&&void 0!==n&&n,title:(0,S.__)("Filter","blockify")},(0,s.createElement)($,t)))):(0,s.createElement)(e,t)}),"withFilter"));const Y=null!==(X=window?.blockify?.blockSupports)&&void 0!==X?X:{};(0,c.addFilter)("editor.BlockEdit","blockify/with-negative-margin",(0,u.createHigherOrderComponent)((e=>t=>{if(n=t?.name,null!==(l=Y?.[n]?.blockifyNegativeMargin)&&void 0!==l&&l){const e=document.querySelector('.components-input-control__input[min="0"]');e&&e.setAttribute("min","-999")}var n,l;return(0,s.createElement)(e,t)}),"withMinHeightSettings"));const Z=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyOnclick)&&void 0!==t&&t};var K,J;(0,c.addFilter)("blocks.registerBlockType","blockify/add-onclick-attribute",((e,t)=>Z(t)?(e.attributes={...e.attributes,onclick:{type:"string"}},e):e),0),(0,c.addFilter)("editor.BlockEdit","blockify/with-onclick-attribute",(0,u.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:l,name:r}=t;return Z(r)&&(0,g.useSelect)((e=>{const t=e("core")?.getCurrentUser(),n=e("core")?.getUser(t?.id);return n?.roles}),[])?.includes("administrator")?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(P.InspectorAdvancedControls,null,(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("On-click event","blockify"),help:(0,S.__)("Enter a JavaScript function to be called when the button is clicked.","blockify"),rows:4,value:n?.onclick?.replace('"',"'"),onChange:e=>l({onclick:e?.replace('"',"'")}),style:{fontFamily:"ui-monospace,Menlo,Monaco,Cascadia Code,Segoe UI Mono,Roboto Mono,Oxygen Mono,Ubuntu Monospace,Source Code Pro,Fira Code,Droid Sans Mono,DejaVu Sans Mono,Courier New,monospace",fontSize:"14px",tabSize:"1em",lineHeight:"1.5"}}))):(0,s.createElement)(e,t)}),"onclickAttribute"),99);const Q=null!==(K=window?.blockify?.blockSupports)&&void 0!==K?K:{},ee=e=>{var t;return null!==(t=Q?.[e]?.blockifyPosition)&&void 0!==t&&t},te=null!==(J=window?.blockify?.positionOptions)&&void 0!==J?J:{};(0,c.addFilter)("blocks.registerBlockType","blockify/add-position-attributes",((e,t)=>{if(ee(t)){var n;const t={};Object.keys(te).forEach((e=>{t[e]={type:"object"}})),e.attributes={...e.attributes,style:{...t,...null!==(n=e?.attributes?.style)&&void 0!==n?n:{}}}}return e}),0);const ne=e=>{var t;const n=[],l=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(te).forEach((e=>{const t=o(e);var r,a,i;te?.[e]?.options?(null!==(r=l?.[e]?.all)&&void 0!==r&&r&&n.push(`has-${t}-${o(l?.[e]?.all)}`),null!==(a=l?.[e]?.mobile)&&void 0!==a&&a&&n.push(`has-${t}-${o(l?.[e]?.mobile)}-mobile`),null!==(i=l?.[e]?.desktop)&&void 0!==i&&i&&n.push(`has-${t}-${o(l?.[e]?.desktop)}-desktop`)):l?.[e]&&n.push(`has-${t}`)})),n},le=e=>{var t;const n={},l=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(te).forEach((e=>{var t,r,a;if(te?.[e]?.options)return;const i=o(e);null!==(t=l?.[e]?.all)&&void 0!==t&&t&&(n[`--${i}`]=l?.[e]?.all),null!==(r=l?.[e]?.mobile)&&void 0!==r&&r&&(n[`--${i}-mobile`]=l?.[e]?.mobile),null!==(a=l?.[e]?.desktop)&&void 0!==a&&a&&(n[`--${i}-desktop`]=l?.[e]?.desktop)})),n};(0,c.addFilter)("editor.BlockListBlock","blockify/with-position-style",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{name:l,attributes:r}=t;if(!ee(l))return(0,s.createElement)(e,t);const o=ne(r),a=le(r),i=null!==(n=t?.wrapperProps)&&void 0!==n?n:{};return t={...t,style:{...t?.style,...a}},i&&(i.style={...i?.style,...a}),o.forEach((e=>{t?.className?.includes(e)||(t.className=t?.className+" "+e)})),t.wrapperProps=i,(0,s.createElement)(e,t)}),"withPositionStyle")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/save-position-style",(e=>{const{name:t,attributes:n}=e;if(!Q?.[t]?.blockifyPosition)return e;const l=ne(n),r=le(n);return l.forEach((t=>{e?.className?.includes(t)||(e.className=e?.className+" "+t)})),e.style={...e?.style,...r},e}),11);const re=(e,t)=>{var n,l,r,o,a,i,c,u;const{attributes:m,setAttributes:p}=e,d=null!==(n=m?.style)&&void 0!==n?n:{},f=e=>{const n={};Object.keys(e).forEach((l=>{n[l]={...d?.[l],[t]:e[l]}})),p({style:{...d,...n}})};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Position","blockify"),value:null!==(l=d?.position?.[t])&&void 0!==l?l:"",options:te?.position?.options,onChange:e=>{f({position:e})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:te?.zIndex?.label,value:d?.zIndex?.[t],onChange:e=>{f({zIndex:e})},min:-100,max:100,step:1,allowReset:!0})))),d?.position&&(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Overflow","blockify"),value:null!==(r=d?.overflow?.[t])&&void 0!==r?r:"",options:te?.overflow?.options,onChange:e=>{f({overflow:e})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Pointer Events","blockify"),value:null!==(o=d?.pointerEvents?.[t])&&void 0!==o?o:"",options:te?.pointerEvents?.options,onChange:e=>{f({pointerEvents:e})}})))),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.__experimentalBoxControl,{className:"blockify-box-control",label:(0,S.__)("Inset","blockify"),values:{top:null!==(a=d?.top?.[t])&&void 0!==a?a:"",right:null!==(i=d?.right?.[t])&&void 0!==i?i:"",bottom:null!==(c=d?.bottom?.[t])&&void 0!==c?c:"",left:null!==(u=d?.left?.[t])&&void 0!==u?u:""},onChange:e=>{var t,n,l,r;f({top:null!==(t=e?.top)&&void 0!==t?t:"",right:null!==(n=e?.right)&&void 0!==n?n:"",bottom:null!==(l=e?.bottom)&&void 0!==l?l:"",left:null!==(r=e?.left)&&void 0!==r?r:""})},inputProps:{min:-999}})))},oe=e=>{const{attributes:t,setAttributes:n}=e,[l,r]=(0,s.useState)("all");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,s.createElement)("span",null,(0,S.__)("Position","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{n({style:{...t?.style,position:"",zIndex:"",top:"",right:"",bottom:"",left:""}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Reset Position","blockify")}))),(0,s.createElement)(_.ButtonGroup,null,(0,s.createElement)(_.Button,{isSmall:!0,variant:"all"===l?"primary":"tertiary",onClick:()=>r("all")},(0,S.__)("All","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,variant:"mobile"===l?"primary":"tertiary",onClick:()=>r("mobile"),icon:D}),(0,s.createElement)(_.Button,{isSmall:!0,variant:"desktop"===l?"primary":"tertiary",onClick:()=>r("desktop"),icon:j}))),"all"===l&&re(e,l),"mobile"===l&&re(e,l),"desktop"===l&&re(e,l))};(0,c.addFilter)("editor.BlockEdit","blockify/position-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return ee(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.position)&&void 0!==n&&n,title:(0,S.__)("Position","blockify")},(0,s.createElement)(oe,t)))):(0,s.createElement)(e,t)}),"withPosition")),(0,c.addFilter)("editor.BlockListBlock","blockify/with-block-gap",(0,u.createHigherOrderComponent)((e=>t=>{var n;if("core/query"!==t?.name)return(0,s.createElement)(e,t);if(!t?.attributes?.style?.spacing?.blockGap)return(0,s.createElement)(e,t);const l=null!==(n=t.wrapperProps)&&void 0!==n?n:{};return l.style={...l.style,"--wp--style--block-gap":t.attributes.style.spacing.blockGap},(0,s.createElement)(e,i({},t,{wrapperProps:l}))}),"withBlockGap")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-block-gap",((e,t,n)=>("core/query"===t&&n?.style?.spacing?.blockGap&&(e.style={...e.style,"--wp--style--block-gap":n.style.spacing.blockGap}),e)));const ae=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyBoxShadow)&&void 0!==t&&t};(0,c.addFilter)("blocks.registerBlockType","blockify/add-box-shadow-attributes",((e,t)=>{var n;return ae(t)&&(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},boxShadow:{type:"object"}}}),e}),0);const ie=e=>{var t;const n=null!==(t=e?.style?.boxShadow)&&void 0!==t?t:{},l={},r={inset:"",x:"px",y:"px",blur:"px",spread:"px",color:""};return Object.keys(r).map((e=>((n?.[e]||"0"===n?.[e]?.toString())&&(l["--wp--custom--box-shadow--"+e]=n?.[e]+r?.[e]),(n?.hover?.[e]||"0"===n?.hover?.[e]?.toString())&&(l["--wp--custom--box-shadow--hover--"+e]=n?.hover?.[e]+r?.[e]),!0))),l},se=(e,t)=>{var n;const{attributes:l,setAttributes:o}=e,{style:a}=l,i=null!==(n=a?.boxShadow)&&void 0!==n?n:{},c=e=>{let n;n="default"===t?{...e}:{hover:{...i?.hover,...e}},o({style:{...a,boxShadow:{...i,...n}}})};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,null,["x","y","blur","spread"].map((e=>(0,s.createElement)(_.FlexItem,{key:e},(0,s.createElement)(_.__experimentalNumberControl,{label:r(e),value:"default"===t?i[e]:i?.hover?.[e],step:1,shiftStep:10,onChange:t=>{c({[e]:t})}})))))),(0,s.createElement)("br",null),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,{style:{flex:1.5}},(0,s.createElement)(P.__experimentalPanelColorGradientSettings,{title:(0,S.__)("Color","blockify"),showTitle:!1,enableAlpha:!0,settings:[{enableAlpha:!0,colorValue:"default"===t?i?.color:i?.[t]?.color,label:(0,S.__)("Color ","blockify")+("hover"===t?(0,S.__)(" Hover","blockify"):""),onColorChange:e=>{c({color:e})}}]})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Inset","blockify"),checked:"default"===t?i?.inset:i?.[t]?.inset,onChange:e=>{c({inset:e?"inset":""})}})))))};(0,c.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,name:r}=t;if(!ae(r))return(0,s.createElement)(e,t);const o=ie(l);if(!Object.keys(o).length)return(0,s.createElement)(e,t);const a={...t.wrapperProps},c=(null!==(n=t?.className)&&void 0!==n?n:"")+" has-box-shadow";return t={...t,className:c,style:{...t.style,...o}},a.className+=" has-box-shadow",a.style={...a.style,...o},(0,s.createElement)(e,i({},t,{wrapperProps:a}))}),"withBoxShadow")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,n)=>{const{name:l}=t;if(!ae(l))return e;const r=ie(n);return Object.keys(r).length?(e.className+=" has-box-shadow",e.style={...e.style,...r},e):e}));const ce=e=>{const{attributes:t,setAttributes:n}=e,[l,r]=(0,s.useState)("default");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,S.__)("Shadow","blockify"),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{n({style:{...t?.style,boxShadow:""}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Clear Shadow","blockify")}))),(0,s.createElement)(_.ButtonGroup,null,(0,s.createElement)(_.Button,{isSmall:!0,variant:"default"===l?"primary":"secondary",onClick:()=>r("default")},(0,S.__)("Default","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,variant:"hover"===l?"primary":"secondary",onClick:()=>r("hover")},(0,S.__)("Hover","blockify")))),"default"===l&&se(e,l),"hover"===l&&se(e,l))};(0,c.addFilter)("editor.BlockEdit","blockify/shadow-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return ae(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.shadow)&&void 0!==n&&n,title:(0,S.__)("Shadow","blockify")},(0,s.createElement)(ce,t)))):(0,s.createElement)(e,t)}),"withShadow"));const ue=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyTransform)&&void 0!==t&&t},me={rotate:"deg",rotateX:"deg",rotateY:"deg",scale:"",scaleX:"",scaleY:"",skew:"deg",skewX:"deg",skewY:"deg",translateX:"",translateY:"",translateZ:""};(0,c.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return ue(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},transform:{type:"string"}}},e):e}));const pe=e=>{let t="";return Object.keys(me).forEach((n=>{if(e?.[n]){const l=e[n];t+=` ${n}(${l}${me[n]})`}})),t?{transform:t.trim()}:{}};(0,c.addFilter)("editor.BlockListBlock","blockify/with-css-transform",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,name:r}=t,o=(0,s.createElement)(e,t);if(!ue(r))return o;const{style:a}=l,c=null!==(n=a?.transform)&&void 0!==n?n:{};if(!c)return o;const u=pe(c);if(!Object.keys(u).length)return o;const m={...(t={...t,style:{...t?.style,...u}}).wrapperProps,style:{...t.wrapperProps?.style,...u}};return(0,s.createElement)(e,i({},t,{wrapperProps:m}))}),"withCssTransform")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-transform-styles",((e,t,n)=>{var l;const{name:r}=t;if(!ue(r))return e;const{style:o}=n,a=null!==(l=o?.transform)&&void 0!==l?l:{};if(!a)return e;const i=pe(a);return Object.keys(i).length?{...e,style:{...e?.style,...i}}:e}));const de=e=>{var t;const{attributes:n,setAttributes:l}=e,{style:r}=n,o=null!==(t=r?.transform)&&void 0!==t?t:{};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,S.__)("Transform","blockify"),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{l({style:{...n?.style,transform:""}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Clear Transforms","blockify")})))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Rotate","blockify"),value:o?.rotate,onChange:e=>{l({style:{...r,transform:{...o,rotate:e}}})},min:-360,max:360,step:1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Rotate X","blockify"),value:o?.rotateX,onChange:e=>{l({style:{...r,transform:{...o,rotateX:e}}})},min:-360,max:360,step:1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Rotate Y","blockify"),value:o?.rotateY,onChange:e=>{l({style:{...r,transform:{...o,rotateY:e}}})},min:-360,max:360,step:1}))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Scale","blockify"),value:o?.scale,onChange:e=>{l({style:{...r,transform:{...o,scale:e}}})},min:0,max:10,step:.1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Scale X","blockify"),value:o?.scaleX,onChange:e=>{l({style:{...r,transform:{...o,scaleX:e}}})},min:0,max:10,step:.1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Scale Y","blockify"),value:o?.scaleY,onChange:e=>{l({style:{...r,transform:{...o,scaleY:e}}})},min:0,max:10,step:.1}))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Skew","blockify"),value:o?.skew,onChange:e=>{l({style:{...r,transform:{...o,skew:e}}})},min:-360,max:360,step:1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Skew X","blockify"),value:o?.skewX,onChange:e=>{l({style:{...r,transform:{...o,skewX:e}}})},min:-360,max:360,step:1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Skew Y","blockify"),value:o?.skewY,onChange:e=>{l({style:{...r,transform:{...o,skewY:e}}})},min:-360,max:360,step:1}))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Translate X","blockify"),value:o?.translateX,onChange:e=>{l({style:{...r,transform:{...o,translateX:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Translate Y","blockify"),value:o?.translateY,onChange:e=>{l({style:{...r,transform:{...o,translateY:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Translate Z","blockify"),value:o?.translateZ,onChange:e=>{l({style:{...r,transform:{...o,translateZ:e}}})}}))),(0,s.createElement)("br",null))};(0,c.addFilter)("editor.BlockEdit","blockify/transform-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return ue(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.transform)&&void 0!==n&&n,title:(0,S.__)("Transform","blockify")},(0,s.createElement)(de,t)))):(0,s.createElement)(e,t)}),"withTransform"));var fe=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));(0,l.registerBlockVariation)("core/list",{name:"accordion",title:(0,S.__)("Accordion","blockify"),description:(0,S.__)("Add a collapsible accordion list.","blockify"),category:window?.blockify?.isPlugin?"blockify":"text",icon:fe,attributes:{className:"is-style-accordion"},isDefault:!1,isActive:(e,t)=>e&&e?.className?.includes(t.className)});var ye=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));const he={content:(0,S.__)("Curved text. Curved text. Curved text.","blockify"),containerSize:"160",pathSize:"120"},be={name:"curved-text",title:(0,S.__)("Curved Text","blockify"),icon:ye,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"text",scope:["inserter","transform","block"],description:(0,S.__)("Insert curved text around circular SVG path.","blockify"),attributes:{className:"is-style-curved-text"},isActive:e=>e?.className?.includes("is-style-curved-text")};t()((()=>{(0,l.registerBlockVariation)("core/paragraph",be)})),(0,c.addFilter)("blocks.registerBlockType","blockify/curved-text-attributes",((e,t)=>("core/paragraph"===t&&(e={...e,attributes:{...e?.attributes,curvedText:{type:"object"}}}),e)));const ge=function(){var e,t,n;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{curvedText:r=he}=l,o=null!==(e=r?.content)&&void 0!==e?e:he.content,a=null!==(t=r?.containerSize)&&void 0!==t?t:he.containerSize,i=null!==(n=r?.pathSize)&&void 0!==n?n:he.pathSize,c=parseInt(a)/2,u=parseInt(i)/2,m={viewBox:`0 0 ${a} ${a}`,xmlns:"http://www.w3.org/2000/svg",enableBackground:`new 0 0 ${a} ${a}`,xmlSpace:"preserve",width:a,height:a,contentEditable:!1,x:0,y:0},p=Date.now()+Math.random(),d={id:"circle-"+p,d:`M ${c}, ${c} m -${u}, 0 a ${u},${u} 0 0,1 ${i},0 a ${u},${u} 0 0,1 -${i},0`,fill:"transparent"};return(0,s.createElement)("svg",m,(0,s.createElement)("path",d," "),(0,s.createElement)("text",{fill:"currentColor"},(0,s.createElement)("textPath",{xlinkHref:"#circle-"+p},o)))};(0,c.addFilter)("editor.BlockEdit","blockify/with-curved-text-css",(0,u.createHigherOrderComponent)((e=>t=>{var n,l,r;const{attributes:o,setAttributes:a}=t;if(!(e=>!(!e?.className||"string"!=typeof e?.className)&&e?.className?.includes("is-style-curved-text"))(o))return(0,s.createElement)(e,t);const c=document.getElementsByClassName("edit-site-visual-editor__editor-canvas")?.item(0),u=document.getElementsByName("editor-canvas")?.item(0);let m;if(m=c?c.contentDocument:u?u.contentDocument:document,!m)return(0,s.createElement)(e,t);const p=m?.getElementById("block-"+t?.clientId);p&&(p.innerHTML=(0,s.renderToString)(ge({...o,clientId:t.clientId})));const{curvedText:d=he}=o,f=e=>{var n;const l={...e,svgString:(0,s.renderToString)((0,s.createElement)(ge,i({},o,e,{clientId:null!==(n=t.clientId)&&void 0!==n?n:"1"})))};a({curvedText:{...d,...l}})};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{className:"blockify-controls",title:(0,S.__)("Curved Text","blockify")},(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("Content","blockify"),value:null!==(n=d?.content)&&void 0!==n?n:he.content,onChange:e=>{f({content:e})}}),(0,s.createElement)("p",null,(0,S.__)("Size","blockify")),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)("br",null),(0,s.createElement)(_.Flex,null,(0,s.createElement)(_.FlexItem,{style:{width:"50%"}},(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Container","blockify"),value:null!==(l=d?.containerSize)&&void 0!==l?l:he.containerSize,onChange:e=>{f({containerSize:e})}})),(0,s.createElement)(_.FlexBlock,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Path","blockify"),value:null!==(r=d?.pathSize)&&void 0!==r?r:he.pathSize,onChange:e=>{f({pathSize:e})}})))))))}),"withCurvedTextSettings"),1);var ve=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));const ke={start:"0",end:"100",duration:"2",delay:"0",prefix:"",suffix:""},Ee={name:"counter",title:(0,S.__)("Counter","blockify"),keywords:["counter","number","count","stats"],icon:ve,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"text",scope:["inserter","transform","block"],description:(0,S.__)("Insert counter animation.","blockify"),attributes:{className:"is-style-counter"},isActive:e=>e&&e?.className?.includes("is-style-counter")};t()((()=>{(0,l.registerBlockVariation)("core/paragraph",Ee)})),(0,c.addFilter)("editor.BlockEdit","blockify/with-counter-controls",(0,u.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:l}=t,r=(0,s.createElement)(e,t);if(!n?.className?.includes("is-style-counter"))return r;const{style:o}=n;let a=ke;return o?.counter?a=o.counter:l({style:{...o,counter:ke}}),(0,s.useEffect)((()=>{if(!a?.prefix&&!a?.end&&!a?.suffix)return;let e=a?.end;"string"==typeof a?.prefix&&(e=a?.prefix+e),"string"==typeof a?.suffix&&(e+=a?.suffix),l({content:e})}),[a?.prefix,a?.end,a?.suffix,l]),(0,s.createElement)(s.Fragment,null,r,(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{title:(0,S.__)("Counter Settings","blockify"),initialOpen:!0,className:"blockify-counter-settings"},(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Start","blockify"),value:a?.start,onChange:e=>{l({style:{...o,counter:{...a,start:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("End","blockify"),value:a?.end,onChange:e=>{l({style:{...o,counter:{...a,end:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Duration (seconds)","blockify"),value:a?.duration,onChange:e=>{l({style:{...o,counter:{...a,duration:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Delay (seconds)","blockify"),value:a?.delay,onChange:e=>{l({style:{...o,counter:{...a,delay:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.TextControl,{label:(0,S.__)("Prefix","blockify"),value:a?.prefix,onChange:e=>{l({style:{...o,counter:{...a,prefix:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.TextControl,{label:(0,S.__)("Suffix","blockify"),value:a?.suffix,onChange:e=>{l({style:{...o,counter:{...a,suffix:e}}})}})))))))}),"withCounterControls"),9);var we=(0,s.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(C.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));const xe={name:"image",title:(0,S.__)("Image","blockify"),icon:we,isDefault:!0,category:"media",scope:["inserter","transform","block"],description:(0,S.__)("Insert an image to make a visual statement.","blockify"),attributes:{className:""},isActive:e=>!e?.className||!e?.className?.includes("is-style-icon")&&!e?.className?.includes("is-style-svg")};(0,l.registerBlockVariation)("core/image",xe);var _e=n(488),Se=(_e.domToReact,_e.htmlToDOM,_e.attributesToProps,_e.Comment,_e.Element,_e.ProcessingInstruction,_e.Text,_e),Ce=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));_.SelectControl.Option,_.CustomSelectControl.Option;const Fe=e=>"core/image"===e,Te={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:' '}},Ne={name:"icon",icon:Ce,title:(0,S.__)("Icon","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"media",scope:["inserter","transform","block"],description:(0,S.__)("Insert a customizable SVG icon.","blockify"),attributes:{className:"is-style-icon",iconSet:"wordpress",iconName:"star-empty",iconSvgString:' '},isActive:e=>e&&e?.className?.includes("is-style-icon")};t()((()=>{(0,l.registerBlockVariation)("core/image",Ne)})),(0,c.addFilter)("blocks.registerBlockType","blockify/add-icon-attributes",((e,t)=>{if(Fe(t)){for(const[t,n]of Object.entries(Te))e.attributes[t]={type:n.type};e.attributes={...e.attributes,...Te}}return e}),99),(0,c.addFilter)("editor.BlockEdit","blockify/with-icon",(0,u.createHigherOrderComponent)((e=>t=>{var n,l,r,o,a;const{name:i,attributes:c,setAttributes:u,isSelected:m}=t,{className:p}=c;if(!p)return(0,s.createElement)(e,t);if(!p?.includes("is-style-icon"))return(0,s.createElement)(e,t);if(!Fe(i))return(0,s.createElement)(e,t);m&&(()=>{const e=document.getElementsByClassName("block-editor-block-card__description").item(0);e&&(document.getElementsByClassName("blockify-pro-icon-link").item(0)||(e.innerHTML=e.innerHTML+(0,S.__)(" Get more icons with ","blockify")+'Blockify Pro ↗'))})(),c?.url||u({url:"#"}),c?.iconSet||u({iconSet:Te?.iconSet?.default}),c?.iconName||u({iconName:Te?.iconName?.default}),c?.iconSvgString||u({iconSvgString:Te?.iconSvgString?.default});const d=[],{icons:f}=null!==(n=(0,g.useSelect)((e=>({icons:e("blockify/icons")?.getIcons()})),[]))&&void 0!==n?n:v,y={wordpress:[{name:Te?.iconSvgString?.default,key:Te?.iconName?.default}]};return Object.keys(f).forEach((e=>{let t=e.split("-").join(" ");t="wordpress"===t?"WordPress":t,d.push({label:t,value:e}),y[e]=[],Object.keys(f[e]).forEach((t=>{t!==c?.iconName&&y[e].push({name:Se(f?.[e]?.[t]),key:t})})),f?.[e]?.[c?.iconName]&&y[e].unshift({name:Se(f?.[e]?.[c?.iconName]),key:c?.iconName})})),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{title:(0,S.__)("Icon Settings","blockify"),initialOpen:!0,className:"blockify-icon-settings"},!1,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Select Icon Set","blockify"),value:null!==(l=c?.iconSet)&&void 0!==l?l:Te?.iconSet.default,options:d,onChange:e=>u({iconSet:e})}),(0,s.createElement)((()=>{const e=y[c?.iconSet]?.filter((e=>e?.key===c?.iconName))?.[0]?.name;return(0,s.createElement)("div",{className:"blockify-icon-preview"},e&&(0,s.createElement)(s.Fragment,null,e,(0,s.createElement)("span",null,c?.iconName?.replace("-"," "))))}),null),(0,s.createElement)(_.CustomSelectControl,{label:(0,S.__)("Select Icon","blockify"),options:null!==(r=y?.[c?.iconSet])&&void 0!==r?r:y?.wordpress,value:null!==(o=c?.iconSvgString)&&void 0!==o?o:Te?.iconSvgString?.default,className:"blockify-icon-setting",onChange:e=>{var t;let{selectedItem:n}=e;const l=null!==(t=n?.key)&&void 0!==t?t:"";u({iconName:l}),u({iconSvgString:f?.[c?.iconSet]?.[l]})}}),(0,s.createElement)("br",null),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Icon Width","blockify"),value:null!==(a=c?.iconSize)&&void 0!==a?a:"",onChange:e=>u({iconSize:e})})))))))}),"iconEdit"),0);const Pe=e=>{var t,n,l;const r={};let o="";e?.style?.color?.background&&(o=e.style.color.background),e?.backgroundColor&&(o="var(--wp--preset--color--"+e.backgroundColor+", currentColor)");let a="";e?.style?.color?.gradient&&(a=e?.style?.color?.gradient),e?.gradient&&(a="var(--wp--preset--gradient--"+e.gradient+",currentColor)");let i="";if(e?.style?.color?.text&&(i=e?.style?.color?.text),e?.textColor&&(i="var(--wp--preset--color--"+e.textColor+",currentColor)"),""!==o&&(r["--wp--custom--icon--background"]=o),i?(r["--wp--custom--icon--color"]=i,a&&(r["--wp--custom--icon--background"]=a)):a&&(r["--wp--custom--icon--color"]=a),e?.style?.spacing?.padding){var s,c,u,m;const t=e.style.spacing.padding,n={top:null!==(s=t?.top)&&void 0!==s?s:"0",right:null!==(c=t?.right)&&void 0!==c?c:"0",bottom:null!==(u=t?.bottom)&&void 0!==u?u:"0",left:null!==(m=t?.left)&&void 0!==m?m:"0"};Object.keys(n).forEach((e=>{var t;const l=null!==(t=n?.[e])&&void 0!==t?t:"";l&&l?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+l.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--padding"]=Object.values(n).join(" ")}if(e?.style?.spacing?.margin){var p,d,f,y;const t=e.style.spacing.margin,n={top:null!==(p=t?.top)&&void 0!==p?p:"",right:null!==(d=t?.right)&&void 0!==d?d:"",bottom:null!==(f=t?.bottom)&&void 0!==f?f:"",left:null!==(y=t?.left)&&void 0!==y?y:""};Object.keys(n).forEach((e=>{var t;const l=null!==(t=n?.[e])&&void 0!==t?t:"";l?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+l?.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--margin"]=Object.values(n).join(" ")}let h="";var b,g;e?.borderColor&&(h="var(--wp--preset--color--"+e?.borderColor+")"),e?.style?.border?.width&&(r["--wp--custom--icon--border-width"]=e.style.border.width,r["--wp--custom--icon--border-style"]=null!==(b=e.style.border?.style)&&void 0!==b?b:"solid",r["--wp--custom--icon--border-color"]=null!==(g=e.style.border?.color)&&void 0!==g?g:h);const v=null!==(t=e?.iconSize)&&void 0!==t?t:"";""!==v&&(r["--wp--custom--icon--size"]=v);const k=(null!==(n=e?.iconCustomSVG)&&void 0!==n?n:"")?.replace('"',"'"),E=k&&k?.includes("t=>{let{attributes:n,wrapperProps:l,name:r}=t;return n?.className&&n?.className?.includes("is-style-icon")&&Fe(r)?(l||(l={style:{}}),l.style={...l?.style,...Pe(n)},(0,s.createElement)(e,i({},t,{wrapperProps:l}))):(0,s.createElement)(e,t)}),"withIcon")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/save-icon-styles",((e,t,n)=>{if(!n?.className)return e;const{name:l}=t;return n?.className?.includes("is-style-icon")&&Fe(l)?(e.style={...e?.style,...Pe(n)},e):e}));var Ie=(0,s.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(C.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));const Oe={name:"svg",title:(0,S.__)("SVG","blockify"),icon:Ie,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"media",scope:["inserter","transform","block"],description:(0,S.__)("Insert an inline SVG.","blockify"),attributes:{className:"is-style-svg"},isActive:e=>!!e?.className&&e?.className&&e?.className?.includes("is-style-svg")};t()((()=>{(0,l.registerBlockVariation)("core/image",Oe)}));const Be=e=>"url('data:image/svg+xml;utf8,"+encodeURIComponent(e)+"')",Ae=e=>"data:image/svg+xml;utf8,"+encodeURIComponent(e);(0,c.addFilter)("editor.BlockEdit","blockify/with-svg-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n,l;const{attributes:r,setAttributes:o}=t;if(!r?.className?.includes("is-style-svg"))return(0,s.createElement)(e,t);const{style:a}=r,i=null!==(n=a?.svgString)&&void 0!==n?n:"",c=null!==(l=a?.maskSvg)&&void 0!==l&&l;r?.url||o({url:c?"#":Ae(i)}),c&&"#"!==r?.url&&o({url:"#"}),c||r?.url?.includes("data:image/svg+xml;utf8,")||o({url:Ae(i)});let u="var(--width,1em)",m="";var p;r?.width&&(u=r.width+"px"),r?.height&&(m=(null!==(p=r.height)&&void 0!==p?p:"")+"px"),m=""===m?u:m;const d={width:u,height:m,display:"inline-flex",background:"currentColor",overflow:"hidden","-webkit-mask-repeat":"no-repeat","-mask-repeat":"no-repeat","-webkit-mask-size":"100% 100%","-mask-size":"100% 100%","-webkit-mask-position":"center","-mask-position":"center bottom","-webkit-mask-image":Be(i),"-mask-image":Be(i)};let f="";return i&&(f=Object.entries(d).map((e=>{let[t,n]=e;return`${t}:${n};`})).join("")),(0,s.createElement)(s.Fragment,null,c&&(0,s.createElement)("style",null,"#block-"+t?.clientId+">div:first-of-type{"+f+"}"),(0,s.createElement)(e,t),(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{title:(0,S.__)("SVG Settings","blockify-pro"),className:(0,S.__)("blockify-svg-controls","blockify-pro")},(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("SVG String","blockify"),help:(0,S.__)("Paste your SVG string in the field above. It is recommended to format your SVG with an optimization tool ","blockify"),value:null!=i?i:"",rows:20,onChange:e=>{const t={style:{...a,svgString:e}};t.url=c?"#":Ae(e),o(t)},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)"}})),(0,s.createElement)(_.ExternalLink,{href:"https://jakearchibald.github.io/svgomg/",target:"_blank"},"https://jakearchibald.github.io/svgomg/"),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Mask with text color","blockify"),help:(0,S.__)("If enabled, the SVG will be masked with the text color. (Renders inline SVG on front end).","blockify"),checked:c,onChange:e=>{const t={style:{...a,maskSvg:e}};t.url=c?"#":Ae(i),o(t)}})))))}),"withSvgControls"),9);const ze={name:"marquee",icon:(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),title:(0,S.__)("Marquee","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"design",scope:["inserter","transform","block"],description:(0,S.__)("Adds a horizontal infinite scrolling marquee banner.","blockify"),innerBlocks:[["core/group",{layout:{type:"flex",flexWrap:"nowrap",orientation:"horizontal",justifyContent:"center"}},[["core/paragraph"]]]],attributes:{marquee:{},align:"full",speedMobile:60,speedDesktop:90,pauseOnHover:!0,reverse:!1,spacing:{padding:{right:"0",left:"0"}},layout:{type:"flex",flexWrap:"nowrap",orientation:"marquee",justifyContent:"center"}},isActive:(e,t)=>e.layout?.orientation===t.layout?.orientation};(0,l.registerBlockVariation)("core/group",ze);const Me=e=>{var t,n;return{"--marquee-speed-mobile":(null!==(t=e?.speedMobile)&&void 0!==t?t:20)+"s","--marquee-speed-desktop":(null!==(n=e?.speedDesktop)&&void 0!==n?n:30)+"s","--marquee-direction":e?.reverse?"reverse":"forwards","--marquee-pause":e?.pauseOnHover?"paused":"running"}};(0,c.addFilter)("blocks.registerBlockType","blockify/marquee-attributes",((e,t)=>("core/group"===t&&(e={...e,attributes:{...e.attributes,speedMobile:{type:"string"},speedDesktop:{type:"string"},reverse:{type:"boolean"},pauseOnHover:{type:"boolean"},repeatItems:{type:"number"}}}),e)),0),(0,c.addFilter)("editor.BlockEdit","blockify/with-marquee-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,setAttributes:r}=t;return"marquee"!==l?.layout?.orientation?(0,s.createElement)(e,t):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{title:(0,S.__)("Marquee Settings","blockify-pro"),className:(0,S.__)("blockify-width-control","blockify-pro")},(0,s.createElement)("p",null,(0,S.__)("Scroll Speed (seconds)","blockify")),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)("br",null),(0,s.createElement)(_.Flex,null,(0,s.createElement)(_.FlexItem,{style:{width:"50%"}},(0,s.createElement)(_.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,S.__)("Mobile","blockify"),onChange:e=>{r({speedMobile:e})},value:l?.speedMobile})),(0,s.createElement)(_.FlexBlock,null,(0,s.createElement)(_.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,S.__)("Desktop","blockify-pro"),onChange:e=>{r({speedDesktop:e})},value:l?.speedDesktop})))),(0,s.createElement)("br",null),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.RangeControl,{label:(0,S.__)("Repeat Items","blockify"),help:(0,S.__)("How many times should the items be duplicated and cloned.","blockify"),value:null!==(n=l?.repeatItems)&&void 0!==n?n:2,onChange:e=>{r({repeatItems:e})},min:0,max:10,step:1,allowReset:!0})),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Pause on hover","blockify-pro"),checked:l?.pauseOnHover,onChange:()=>r({pauseOnHover:!l?.pauseOnHover})})),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Reverse direction","blockify-pro"),checked:l?.reverse,onChange:()=>r({reverse:!l?.reverse})})))),(0,s.createElement)(e,t))}),"withInspectorControl"),9),(0,c.addFilter)("editor.BlockListBlock","blockify/with-marquee",(0,u.createHigherOrderComponent)((e=>t=>{var n,l;const{attributes:r}=t;if("marquee"!==r?.layout?.orientation)return(0,s.createElement)(e,t);t.attributes.style={...null!==(n=r.style)&&void 0!==n?n:{},...Me(r)};const o={...t.wrapperProps,style:{...null!==(l=t.wrapperProps?.style)&&void 0!==l?l:{},...Me(r)}};return(0,s.createElement)(e,i({},t,{wrapperProps:o}))}),"withMarquee")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/save-marquee-styles",((e,t,n)=>("marquee"!==n?.layout?.orientation||(e.style={...e?.style,...Me(n)}),e)));var Re=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"}));const De={name:"paragraph",title:(0,S.__)("Paragraph","blockify"),icon:Re,isDefault:!0,category:"text",scope:["inserter","transform","block"],description:(0,S.__)("Insert an image to make a visual statement.","blockify"),attributes:{className:""},isActive:e=>!e?.className?.includes("is-style-curved-text")&&!e?.className?.includes("is-style-counter")};(0,l.registerBlockVariation)("core/paragraph",De);const je=(0,s.createElement)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},(0,s.createElement)(_.Path,{d:"M126.12 315.1A47.06 47.06 0 1 1 79.06 268h47.06Zm23.72 0a47.06 47.06 0 0 1 94.12 0v117.84a47.06 47.06 0 1 1-94.12 0Zm47.06-188.98A47.06 47.06 0 1 1 244 79.06v47.06Zm0 23.72a47.06 47.06 0 0 1 0 94.12H79.06a47.06 47.06 0 0 1 0-94.12Zm188.98 47.06a47.06 47.06 0 1 1 47.06 47.1h-47.06Zm-23.72 0a47.06 47.06 0 0 1-94.12 0V79.06a47.06 47.06 0 1 1 94.12 0ZM315.1 385.88a47.06 47.06 0 1 1-47.1 47.06v-47.06Zm0-23.72a47.06 47.06 0 0 1 0-94.12h117.84a47.06 47.06 0 1 1 0 94.12Z"})),Ve={name:"slack",title:(0,S.__)("Slack","blockify"),icon:je,attributes:{service:"slack"},isActive:(e,t)=>e.service===t.service};(0,l.registerBlockVariation)("core/social-link",Ve);var Le=window.wp.richText;(0,Le.registerFormatType)("blockify/clear-formatting",{title:(0,S.__)("Clear","blockify"),tagName:"span",className:"clear",edit:e=>{const{value:t,isActive:n,onChange:l}=e,{formatTypes:r}=(0,g.useSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()})),[]);return(0,s.createElement)(P.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,S.__)("Clear Formatting","blockify"),onClick:()=>{if(r.length>0){let e=t;r.map((t=>{e=(0,Le.removeFormat)(e,t.name)})),l({...e})}},isActive:n})}});var He=(0,s.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(C.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 Ge="blockify/gradient";(0,Le.registerFormatType)(Ge,{title:(0,S.__)("Gradient","blockify"),tagName:"span",className:"has-text-gradient",attributes:{style:"style",class:"class"},edit:e=>{let{isActive:t,value:n,onChange:l}=e;const[r,o]=(0,s.useState)(""),[a,i]=(0,s.useState)(!1),{gradients:c}=(0,g.useSelect)((e=>({gradients:e("core/block-editor").getSettings()?.gradients})),[]);let u="",m="";return n?.formats&&n.formats.forEach((e=>{const t=e?.find((e=>e?.type===Ge));t?.type===Ge&&(u+=";"+t?.attributes?.style,m+=t?.attributes?.class)})),(0,s.createElement)(P.BlockControls,null,(0,s.createElement)(P.RichTextToolbarButton,{icon:He,title:(0,S.__)("Gradient","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"g",onClick:()=>i(!a)}),a&&(0,s.createElement)(_.Toolbar,{className:"blockify-components-toolbar"},(0,s.createElement)(_.Popover,{position:"bottom center",className:"blockify-gradient-text-control",focusOnMount:"container",onFocusOutside:()=>i(!1)},(0,s.createElement)(_.GradientPicker,{value:null!=r?r:"",gradients:c,onChange:e=>{o(e);let t=u,r=m;c.forEach((t=>{t.gradient===e&&(r+=(r?" ":"")+"has-"+t.slug+"-gradient-background")})),e&&!r.includes("-gradient-background")&&(t+=(t?t+";":"")+"background:"+e),r?.includes("has-text-gradient")&&(r=r?.replace("has-text-gradient","")?.trim()+" has-text-gradient"),l((0,Le.applyFormat)(n,{type:Ge,attributes:{style:t,class:r}}))}}))))}});var Ue=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));_.CustomSelectControl.Option;const We="blockify/typography",qe=[{key:"Default",name:"Default",style:{}},{key:"Thin",name:"Thin",style:{fontStyle:"normal",fontWeight:100}},{key:"Extra Light",name:"Extra Light",style:{fontStyle:"normal",fontWeight:200}},{key:"Light",name:"Light",style:{fontStyle:"normal",fontWeight:300}},{key:"Regular",name:"Regular",style:{fontStyle:"normal",fontWeight:400}},{key:"Medium",name:"Medium",style:{fontStyle:"normal",fontWeight:500}},{key:"Semi Bold",name:"Semi Bold",style:{fontStyle:"normal",fontWeight:600}},{key:"Bold",name:"Bold",style:{fontStyle:"normal",fontWeight:700}},{key:"Extra Bold",name:"Extra Bold",style:{fontStyle:"normal",fontWeight:800}},{key:"Black",name:"Black",style:{fontStyle:"normal",fontWeight:900}},{key:"Thin Italic",name:"Thin Italic",style:{fontStyle:"italic",fontWeight:100}},{key:"Extra Light Italic",name:"Extra Light Italic",style:{fontStyle:"italic",fontWeight:200}},{key:"Light Italic",name:"Light Italic",style:{fontStyle:"italic",fontWeight:300}},{key:"Regular Italic",name:"Regular Italic",style:{fontStyle:"italic",fontWeight:400}},{key:"Medium Italic",name:"Medium Italic",style:{fontStyle:"italic",fontWeight:500}},{key:"Semi Bold Italic",name:"Semi Bold Italic",style:{fontStyle:"italic",fontWeight:600}},{key:"Bold Italic",name:"Bold Italic",style:{fontStyle:"italic",fontWeight:700}},{key:"Extra Bold Italic",name:"Extra Bold Italic",style:{fontStyle:"italic",fontWeight:800}},{key:"Black Italic",name:"Black Italic",style:{fontStyle:"italic",fontWeight:900}}];(0,Le.registerFormatType)(We,{title:(0,S.__)("Typography","blockify"),tagName:"span",className:"has-font",edit:e=>{var t;const{isActive:n,value:l,onChange:o}=e,[a,i]=(0,s.useState)(!1),{fontSizes:c}=(0,g.useSelect)((e=>({fontSizes:e("core/block-editor")?.getSettings()?.fontSizes})),[]),u=(null!==(t=window?.blockify?.selectedFonts)&&void 0!==t?t:[])?.map((e=>({label:r(e?.replace("-"," ")),value:e})));let d="",f="";l?.formats&&l.formats.forEach((e=>{e&&e.forEach((e=>{var t,n;e?.type===We&&(d=null!==(t=e?.attributes?.style)&&void 0!==t?t:"",f=null!==(n=e?.attributes?.class)&&void 0!==n?n:"")}))}));const[y,h]=(0,s.useState)({style:p(d),class:f.split(" "),fontFamily:"",fontSize:"",fontAppearance:qe[0],isOpen:!1});return(0,s.createElement)(P.BlockControls,null,(0,s.createElement)(P.RichTextToolbarButton,{icon:Ue,title:(0,S.__)("Typography","blockify"),isActive:n,shortcutType:"primary",shortcutCharacter:"f",onClick:()=>h({...y,isOpen:!y.isOpen})}),y?.isOpen&&(0,s.createElement)(_.Toolbar,{className:"blockify-components-toolbar"},(0,s.createElement)(_.Popover,{position:"bottom center",className:"blockify-font-family-control",focusOnMount:"container",onFocusOutside:()=>h({...y,isOpen:!1})},(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Select Font Family","blockify"),value:y?.fontFamily,options:u,onChange:e=>{h({...y,fontFamily:e});const t="has-"+e+"-font-family";y?.class?.includes(t)||y?.class?.push(t),o((0,Le.applyFormat)(l,{type:We,attributes:{style:m(y?.style),class:y?.class?.join(" ")}}))}}),(0,s.createElement)(_.FontSizePicker,{fontSizes:c,fallbackFontSize:20,value:parseInt(y?.fontSize),withSlider:!0,onChange:e=>{h({...y,fontSize:e.toString()}),e&&(y.style["--wp--custom--font-size"]=e.toString()),y?.class?.includes("has-inline-font-size")||y.class.push("has-inline-font-size"),o((0,Le.applyFormat)(l,{type:We,attributes:{style:m(y?.style),class:y?.class?.join(" ")}}))}}),(0,s.createElement)(_.CustomSelectControl,{label:(0,S.__)("Appearance","blockify"),value:qe.find((e=>e.key===y?.fontAppearance?.key)),options:null!=qe?qe:[],onChange:e=>{let{selectedItem:t}=e;t&&h({...y,fontAppearance:t}),t?.style?.fontStyle&&(y.style["font-style"]=t?.style?.fontStyle),t?.style?.fontWeight&&(y.style["font-weight"]=t?.style?.fontWeight?.toString()),o((0,Le.applyFormat)(l,{type:We,attributes:{style:m(y?.style),class:y?.class?.join(" ")}}))}}))))}});var $e=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));const Xe="blockify/inline-svg";(0,Le.registerFormatType)(Xe,{title:(0,S.__)("Inline SVG","blockify"),object:!0,tagName:"img",className:"has-inline-svg",edit:e=>{const{isActive:t,onChange:n,value:l}=e,[r,o]=(0,s.useState)(!1),[a,i]=(0,s.useState)({string:"",width:"1em",widthDesktop:"1em",alt:"",src:""});return(0,s.createElement)(P.BlockControls,null,(0,s.createElement)(P.RichTextToolbarButton,{icon:$e,title:(0,S.__)("Inline SVG","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"v",onClick:()=>o(!r)}),r&&(0,s.createElement)(_.Toolbar,{className:"blockify-components-toolbar"},(0,s.createElement)(_.Popover,{position:"bottom center",className:"blockify-svg-control",focusOnMount:"container",onFocusOutside:()=>o(!1)},(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("SVG String","blockify"),help:(0,S.__)("Paste your SVG string in the field above and then click the button below to insert your image.","blockify"),value:a?.string,placeholder:(0,S.__)("Paste your SVG string here","blockify"),rows:20,onChange:e=>{i({...a,string:e.replace(/'/g,'"')})},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)",width:"300px"}}),(0,s.createElement)("br",null),(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("Alt Text","blockify"),placeholder:(0,S.__)("SVG description","blockify"),value:a?.alt,rows:2,onChange:e=>{i({...a,alt:e})},style:{width:"300px"}}),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Width Mobile","blockify"),value:a?.width,onChange:e=>{i({...a,width:e})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Width Desktop","blockify"),value:a?.widthDesktop,onChange:e=>{i({...a,widthDesktop:e})}})))),(0,s.createElement)("br",null),(0,s.createElement)(_.Button,{text:(0,S.__)("Insert SVG","blockify"),onClick:()=>(e=>{let t=`-webkit-mask-image:url(${"data:image/svg+xml;utf8,"+encodeURIComponent(e?.string)})`;e?.width&&(t+=`;--width: ${e?.width}`),e?.widthDesktop&&(t+=`;--width-desktop: ${e?.widthDesktop}`),n((0,Le.insertObject)(l,{type:Xe,attributes:{style:t,alt:e?.alt,role:"presentation",src:""}})),o(!1)})(a)}))))}});var Ye=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.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 Ze="blockify/underline",Ke=["none","solid","wavy","dashed","dotted","double","brush","circle"];(0,Le.registerFormatType)(Ze,{title:(0,S.__)("Underline","blockify"),tagName:"u",className:"has-text-underline",attributes:{style:"style",class:"class"},edit:e=>{let{isActive:t,value:n,onChange:l}=e;const[r,o]=(0,s.useState)(""),[a,i]=(0,s.useState)(!1);let c=[],u=[];return n?.formats&&n.formats.forEach((e=>{e&&e.forEach((e=>{e.type===Ze&&(e.attributes?.style&&(c=e.attributes.style.split(";")),e.attributes?.class&&(u=e.attributes.class.split(" ")))}))})),(0,s.createElement)(P.BlockControls,null,(0,s.createElement)(P.RichTextShortcut,{type:"primary",character:"u",onUse:()=>{l((0,Le.toggleFormat)(n,{type:Ze}))}}),(0,s.createElement)(P.RichTextToolbarButton,{icon:Ye,title:(0,S.__)("Underline","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"u",onClick:()=>i(!a)}),a&&(0,s.createElement)(_.Toolbar,{className:"blockify-components-toolbar"},(0,s.createElement)(_.Popover,{position:"bottom center",className:"blockify-underline-format",focusOnMount:"container",onFocusOutside:()=>i(!1)},(0,s.createElement)(_.__experimentalText,null,(0,S.__)("Underline style","blockify")),(0,s.createElement)("br",null),(0,s.createElement)(_.SelectControl,{onChange:e=>{var t,r;"none"===e&&l((0,Le.removeFormat)(n,Ze)),o(e);const a=null!==(t=u)&&void 0!==t?t:[];a.forEach(((e,t)=>{e.includes("is-underline-")&&delete i.classes[t]}));const i={classes:[...a,"is-underline-"+e],styles:[...null!==(r=c)&&void 0!==r?r:[],"--wp--custom--underline--style:"+e]};l((0,Le.applyFormat)(n,{type:Ze,attributes:{class:i.classes.join(" "),style:i.styles.join(";")}}))},value:r,options:Ke.map((e=>{return{label:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),value:e};var t}))}))))}})}()}(); \ No newline at end of file +!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},915:function(e,t,n){"use strict";var l=this&&this.__createBinding||(Object.create?function(e,t,n,l){void 0===l&&(l=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,l,r)}:function(e,t,n,l){void 0===l&&(l=n),e[l]=t[n]}),r=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 o=n(960),a=n(790);r(n(790),t);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=i),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:i,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.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?o.ElementType.Tag:void 0,l=new a.Element(e,t,void 0,n);this.addNode(l),this.tagStack.push(l)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.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 a.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=s,t.default=s},790:function(e,t,n){"use strict";var l,r=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 __)}),o=this&&this.__assign||function(){return o=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}(i);t.NodeWithChildren=p;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var y=function(e){function t(t,n,l,r){void 0===l&&(l=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,l)||this;return o.name=t,o.attribs=n,o.type=r,o}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),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}(p);function h(e){return(0,a.isTag)(e)}function b(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function v(e){return e.type===a.ElementType.Comment}function k(e){return e.type===a.ElementType.Directive}function E(e){return e.type===a.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(v(e))n=new u(e.data);else if(h(e)){var l=t?x(e.children):[],r=new y(e.name,o({},e.attribs),l);l.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=r}else if(b(e)){l=t?x(e.children):[];var a=new d(l);l.forEach((function(e){return e.parent=a})),n=a}else if(E(e)){l=t?x(e.children):[];var i=new f(l);l.forEach((function(e){return e.parent=i})),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new m(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return w(e,!0)})),n=1;n/i,a=//i,i=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;i=s=function(e,t){return t&&(e="<"+t+">"+e+""),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var m=document.implementation.createHTMLDocument();i=function(e,t){return t?(m.documentElement.querySelector(t).innerHTML=e,m):(m.documentElement.innerHTML=e,m)}}var p,d="object"==typeof document?document.createElement("template"):{};d.content&&(p=function(e){return d.innerHTML=e,d.content.childNodes}),e.exports=function(e){var c,u,m,d,f=e.match(r);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case t:return u=s(e),o.test(e)||(m=u.querySelector(n))&&m.parentNode.removeChild(m),a.test(e)||(m=u.querySelector(l))&&m.parentNode.removeChild(m),u.querySelectorAll(t);case n:case l:return d=(u=i(e)).querySelectorAll(c),a.test(e)&&o.test(e)?d[0].parentNode.childNodes:d;default:return p?p(e):(m=i(e,l).querySelector(l)).childNodes}}},152:function(e,t,n){var l=n(276),r=n(507).formatDOM,o=/<(![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(o);return n&&n[1]&&(t=n[1]),r(l(e),null,t)}},507:function(e,t,n){for(var l,r=n(915),o=n(885).CASE_SENSITIVE_TAG_NAMES,a=r.Comment,i=r.Element,s=r.ProcessingInstruction,c=r.Text,u={},m=0,p=o.length;m1&&(u=f(u,{key:u.key||k})),b.push(u);else if("text"!==o.type){switch(m=o.attribs,s(o)?a(m.style,m):m&&(m=r(m,o.name)),p=null,o.type){case"script":case"style":o.children[0]&&(m.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?m.defaultValue=o.children[0].data:o.children&&o.children.length&&(p=e(o.children,n));break;default:continue}E>1&&(m.key=k),b.push(y(o.name,m,p))}else{if((c=!o.data.trim().length)&&o.parent&&!i(o.parent))continue;if(v&&c)continue;b.push(o.data)}return 1===b.length?b[0]:b}},606:function(e,t,n){var l=n(196),r=n(476).default,o={reactCompat:!0},a=l.version.split(".")[0]>=16,i=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,l,r="function"==typeof t,o={},a={};for(n in e)l=e[n],r&&(o=t(n,l))&&2===o.length?a[o[0]]=o[1]:"string"==typeof l&&(a[l]=n);return a},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=r(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!i.has(e.name)},elementsWithNoTextChildren:i}},139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,l=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,s=/^\s+|\s+$/g,c="\n",u="/",m="*",p="",d="comment",f="declaration";function y(e){return e?e.replace(s,p):p}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var h=1,b=1;function g(e){var t=e.match(n);t&&(h+=t.length);var l=e.lastIndexOf(c);b=~l?e.length-l:b+e.length}function v(){var e={line:h,column:b};return function(t){return t.position=new k(e),_(),t}}function k(e){this.start=e,this.end={line:h,column:b},this.source=s.source}k.prototype.content=e;var E=[];function w(t){var n=new Error(s.source+":"+h+":"+b+": "+t);if(n.reason=t,n.filename=s.source,n.line=h,n.column=b,n.source=e,!s.silent)throw n;E.push(n)}function x(t){var n=t.exec(e);if(n){var l=n[0];return g(l),e=e.slice(l.length),n}}function _(){x(l)}function S(e){var t;for(e=e||[];t=C();)!1!==t&&e.push(t);return e}function C(){var t=v();if(u==e.charAt(0)&&m==e.charAt(1)){for(var n=2;p!=e.charAt(n)&&(m!=e.charAt(n)||u!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return w("End of comment missing");var l=e.slice(2,n-2);return b+=2,g(l),e=e.slice(n),b+=2,t({type:d,comment:l})}}function F(){var e=v(),n=x(r);if(n){if(C(),!x(o))return w("property missing ':'");var l=x(a),s=e({type:f,property:y(n[0].replace(t,p)),value:l?y(l[0].replace(t,p)):p});return x(i),s}}return _(),function(){var e,t=[];for(S(t);e=F();)!1!==e&&(t.push(e),S(t));return t}()}},726:function(e,t,n){"use strict";function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);ne?e?.toLowerCase()?.replace(/(?<= )[^\s]|^./g,(e=>e?.toUpperCase())):"",o=e=>{var t;return e&&null!==(t=e?.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.join("-")?.toLowerCase())&&void 0!==t?t:""},a=(e,t,n)=>e?.split(t)?.join(n);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var e,t,n;const o=null!==(e=window?.blockify?.blockStyles)&&void 0!==e?e:{unregister:{},register:{}},i=null!==(t=o?.unregister)&&void 0!==t?t:{},s=null!==(n=o?.register)&&void 0!==n?n:{};Object.keys(i).forEach((e=>{i[e].forEach((t=>{(0,l.unregisterBlockStyle)(e,t)}))})),Object.keys(s).forEach((e=>{s[e].forEach((t=>{(0,l.registerBlockStyle)(e,{name:t,label:r(a(t,"-"," "))})}))}))}));var s=window.wp.element,c=window.wp.hooks,u=window.wp.compose;const m=e=>Object.keys(e).map((t=>`${t?.includes("-")?t:o(t)}:${e[t]};`)).join(" "),p=e=>{const t={};return e.split(";").map((e=>{const[n,l]=e.split(":");return n&&(t[n]=l),null})),t},d=e=>e.includes("var:")?(e=e.replace("var:","var(--wp--"),(e=a(e,"|","--"))+")"):e;var f;const y=null!==(f=window?.blockify?.blockSupports)&&void 0!==f?f:{};(0,c.addFilter)("blocks.registerBlockType","blockify/block-supports",((e,t)=>(Object.keys(y).includes(t)&&(e.supports={...e.supports,...y[t]}),e)),0),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/alignment-class",((e,t,n)=>(Object.keys(y).includes(t.name)&&n?.align&&!e.className.includes(" align")&&(e.className+=" align"+n.align),e))),(0,c.addFilter)("blocks.registerBlockType","blockify/block-attributes-search",((e,t)=>("core/search"===t&&(e.attributes.style={...e.attributes?.style,spacing:{...e.attributes?.style?.spacing,padding:{top:"1em",right:"1em",bottom:"1em",left:"2em"}}}),e)),0),(0,c.addFilter)("editor.BlockEdit","blockify/with-search-padding-css",(0,u.createHigherOrderComponent)((e=>t=>{if("core/search"!==t.name)return(0,s.createElement)(e,t);const n=document.getElementsByClassName("wp-block-search__input"),l=t?.attributes?.style?.spacing?.padding;return n[0]&&l&&(l.top&&(n[0].style.paddingTop=l?.top),l.right&&(n[0].style.paddingRight=l?.right),l.bottom&&(n[0].style.paddingBottom=l?.bottom),l.left&&(n[0].style.paddingLeft=l?.left)),(0,s.createElement)(e,t)}),"withSearchPaddingCss")),(0,c.addFilter)("editor.BlockListBlock","blockify/with-block-gap-css",(0,u.createHigherOrderComponent)((e=>t=>{var n,l;const r=(0,s.createElement)(e,t);if("core/page-list"!==t.name)return r;const o=null!==(n=t?.attributes?.style?.spacing?.blockGap)&&void 0!==n?n:"";if(!o)return r;t.style={...null!==(l=t.style)&&void 0!==l?l:{},"--wp--style--block-gap":d(o)};const a={...t.wrapperProps,style:{...t.wrapperProps?.style,"--wp--style--block-gap":d(o)}};return(0,s.createElement)(e,i({},t,{wrapperProps:a}))}),"withBlockGapCss"));var h=window.wp.apiFetch,b=n.n(h),g=window.wp.data;const v={icons:{social:{},wordpress:{}}},k={setIcons(e){return{type:"SET_ICONS",icons:e}},getIcons(e){return{type:"GET_ICONS",path:e}}},E={getIcons(e){const{icons:t}=e;return t}},w={GET_ICONS(e){return b()({path:e.path})}},x={*getIcons(){const e=yield k.getIcons("/blockify/v1/icons/");return k.setIcons(e)}};(0,g.register)((0,g.createReduxStore)("blockify/icons",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;return"SET_ICONS"===t.type?{...e,icons:t.icons}:e},actions:k,selectors:E,controls:w,resolvers:x}));var _=window.wp.components,S=window.wp.i18n,C=window.wp.primitives,F=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));const T=()=>(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 120 120",xmlSpace:"preserve"},(0,s.createElement)(C.Path,{d:"M15 0h35v120H15zm55 0h35v120H70z"})),N=e=>{let{children:t}=e;return(0,s.createElement)("p",{className:"blockify-control-label"},t)};var P=window.wp.blockEditor;const I=[{value:"ease",label:(0,S.__)("Ease","blockify")},{value:"ease-in",label:(0,S.__)("Ease In","blockify")},{value:"ease-out",label:(0,S.__)("Ease Out","blockify"),isDefault:!0},{value:"ease-in-out",label:(0,S.__)("Ease In Out","blockify")},{value:"linear",label:(0,S.__)("Linear","blockify")}],O=[{value:"",label:""}];window?.blockify?.animations?.forEach((e=>{O.push({value:e,label:r(e?.replace(/-/g," "))})}));const B=[{value:"enter",label:(0,S.__)("Enter","blockify"),isDefault:!0},{value:"exit",label:(0,S.__)("Exit","blockify")},{value:"infinite",label:(0,S.__)("Infinite","blockify")},{value:"scroll",label:(0,S.__)("Scroll","blockify")}],A=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyAnimation)&&void 0!==t&&t};(0,c.addFilter)("blocks.registerBlockType","blockify/add-animation-attributes",((e,t)=>(A(t)&&(e.attributes={...e.attributes,animation:{type:"object"}}),e)),0);const z=e=>{const t={};var n,l,r,o,a,i,s;return e?.event&&(t["--animation-event"]=null!==(n=e.event)&&void 0!==n?n:"enter","infinite"===e.event&&(t.animationIterationCount="infinite")),e?.name&&(t.animationName=null!==(l=e.name)&&void 0!==l?l:""),e?.duration&&(t.animationDuration=(null!==(r=e.duration)&&void 0!==r?r:"1")+"s"),e?.delay&&(t.animationDelay=(null!==(o=e.delay)&&void 0!==o?o:"0")+"s"),e?.timingFunction&&(t.animationTimingFunction=null!==(a=e?.timingFunction)&&void 0!==a?a:"ease-in-out"),t?.animationIterationCount||(t.animationIterationCount=null!==(i=e?.iterationCount)&&void 0!==i?i:"1"),e?.playState&&(t.animationPlayState=null!==(s=e?.playState)&&void 0!==s?s:"running"),t};(0,c.addFilter)("editor.BlockListBlock","blockify/with-animation-props",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l}=t,r=null!==(n=l?.animation)&&void 0!==n?n:{};if(!r||!Object?.keys(r)?.length)return(0,s.createElement)(e,t);const o=z(r),a=t?.className?.trim()+" has-animation",c={...(t={...t,className:a})?.wrapperProps,className:a,style:{...t?.wrapperProps?.style,...o}};return(0,s.createElement)(e,i({},t,{wrapperProps:c}))}),"withAnimation")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-animation-styles",((e,t,n)=>{var l;const r=null!==(l=n?.animation)&&void 0!==l?l:{};if(!r||!Object?.keys(r)?.length)return e;e.className=e?.className?.trim()+" has-animation";const o=z(r);return{...e,style:{...e?.style,...o}}}));const M=e=>{var t,n,l,r,o,a,i;let{attributes:c,setAttributes:u}=e;const m=null!==(t=c?.animation)&&void 0!==t?t:{};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,s.createElement)("span",null,(0,S.__)("Animation","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>u({animation:{}}),icon:F,iconSize:16,"aria-label":(0,S.__)("Clear Animation","blockify")}))),(0,s.createElement)(_.Flex,{justify:"flex-end"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.Button,{isSecondary:!0,isSmall:!0,icon:"running"===m?.playState?T:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:"currentColor"},(0,s.createElement)("polygon",{points:"10,5 0,10 0,0"})),iconSize:10,onClick:()=>{u({animation:{...m,playState:"running"===m?.playState?"paused":"running"}})}},"running"===m?.playState?(0,S.__)("Pause","blockify"):(0,S.__)("Run","blockify"))))),(0,s.createElement)(_.PanelRow,{className:"blockify-animate-controls"},(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Effect","blockify"),value:null!==(n=m?.name)&&void 0!==n?n:"",options:O,onChange:e=>{var t;u({animation:{...m,name:e,duration:null!==(t=m?.duration)&&void 0!==t?t:1}})}}))),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Easing","blockify"),value:null!==(l=m?.timingFunction)&&void 0!==l?l:"",options:I,onChange:e=>{u({animation:{...m,timingFunction:e}})}}))),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Event","blockify"),value:null!==(r=m?.event)&&void 0!==r?r:"enter",options:B,onChange:e=>{u({animation:{...m,event:e,iterationCount:"infinite"===e?"-1":"-1"===m?.iterationCount?"1":m?.iterationCount}})}})))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Duration","blockify"),value:null!==(o=m?.duration)&&void 0!==o?o:1,onChange:e=>{u({animation:{...m,duration:e}})},min:0,max:100,step:.1,shiftStep:10,allowReset:!0})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Delay","blockify"),value:null!==(a=m?.delay)&&void 0!==a?a:0,onChange:e=>{u({animation:{...m,delay:e}})},min:0,max:100,step:.1,shiftStep:10,allowReset:!0})),(0,s.createElement)(_.FlexItem,null,"infinite"!==m?.event&&(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Repeat","blockify"),value:"infinite"===m?.event?-1:null!==(i=m?.iterationCount)&&void 0!==i?i:1,onChange:e=>{u({animation:{...m,iterationCount:e}})},min:-1,max:100,step:1,allowReset:!0})))))};(0,c.addFilter)("editor.BlockEdit","blockify/animation-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return A(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.animation)&&void 0!==n&&n,title:(0,S.__)("Animation","blockify")},(0,s.createElement)(M,t)))):(0,s.createElement)(e,t)}),"withAnimation"));var R,D=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})),j=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));const V=null!==(R=window?.blockify?.blockSupports)&&void 0!==R?R:{},L=["","none","block","inline-block","inline","flex","inline-flex","grid","inline-grid","contents"],H=(e,t)=>{var n,l;const{attributes:o,setAttributes:a}=e,{style:i}=o;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,{className:"blockify-display-controls"},(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Display","blockify"),value:null!==(n=i?.display?.[t])&&void 0!==n?n:"",options:L.map((e=>({label:r(e?.replace("-"," ")),value:e}))),onChange:e=>{a({style:{...i,display:{...i?.display,[t]:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Order","blockify"),value:null!==(l=i?.order?.[t])&&void 0!==l?l:"",onChange:e=>{a({style:{...i,order:{...i?.order,[t]:e}}})},min:-10,max:10,step:1,allowReset:!0}))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Width","blockify"),value:i?.width?.[t],onChange:e=>{a({style:{...i,width:{...i?.width,[t]:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Max Width","blockify"),value:i?.maxWidth?.[t],onChange:e=>{a({style:{...i,maxWidth:{...i?.maxWidth,[t]:e}}})}})))))},G=e=>{const{attributes:t,setAttributes:n}=e,[l,r]=(0,s.useState)("all");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,S.__)("Display","blockify"),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{n({style:{...t?.style,display:"",order:"",width:"",maxWidth:""}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Reset Display","blockify")}))),(0,s.createElement)(_.ButtonGroup,null,(0,s.createElement)(_.Button,{isSmall:!0,variant:"all"===l?"primary":"secondary",onClick:()=>r("all")},(0,S.__)("All","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,variant:"mobile"===l?"primary":"secondary",onClick:()=>r("mobile"),icon:D}),(0,s.createElement)(_.Button,{isSmall:!0,variant:"desktop"===l?"primary":"secondary",onClick:()=>r("desktop"),icon:j}))),"all"===l&&H(e,l),"mobile"===l&&H(e,l),"desktop"===l&&H(e,l))};(0,c.addFilter)("editor.BlockEdit","blockify/display-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return(e=>{var t;return null!==(t=V?.[e]?.blockifyPosition)&&void 0!==t&&t})(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.display)&&void 0!==n&&n,title:(0,S.__)("Display","blockify")},(0,s.createElement)(G,t)))):(0,s.createElement)(e,t)}),"withDisplay"));const U=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyFilter)&&void 0!==t&&t},W={blur:{unit:"px",min:0,max:500},brightness:{unit:"%",min:0,max:360},contrast:{unit:"%",min:0,max:200},grayscale:{unit:"%",min:0,max:100},hueRotate:{unit:"deg",min:-360,max:360},invert:{unit:"%",min:0,max:100},opacity:{unit:"%",min:0,max:100},saturate:{unit:"",min:0,max:100,step:.1},sepia:{unit:"%",min:0,max:100}};(0,c.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return U(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},filter:{type:"string"}}},e):e}));const q=e=>{let t="";return Object.keys(W).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&void 0!==e[n]&&(t+=" "+o(n)+"("+e[n]+W?.[n]?.unit+")")})),t?{[e?.backdrop?"backdropFilter":"filter"]:t.trim()}:{}};(0,c.addFilter)("editor.BlockListBlock","blockify/with-css-filter",(0,u.createHigherOrderComponent)((e=>t=>{var n,l;const r=null!==(n=t?.attributes?.style?.filter)&&void 0!==n?n:{},o=(0,s.createElement)(e,t);if(0===Object.getOwnPropertyNames(r).length)return o;const a=q(r);if(!Object.keys(a).length)return o;const c={...(t={...t,style:{...null!==(l=t?.style)&&void 0!==l?l:{},...a}}).wrapperProps,style:{...t.wrapperProps?.style,...a}};return(0,s.createElement)(e,i({},t,{wrapperProps:c}))}),"withCssFilter")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-filter-styles",((e,t,n)=>{var l;const r=null!==(l=n?.style?.filter)&&void 0!==l?l:{};if(0===Object.getOwnPropertyNames(r).length)return e;const o=q(r);return Object.keys(o).length?{...e,style:{...e?.style,...o}}:e}));const $=e=>{const{attributes:t,setAttributes:n}=e,{style:l}=t;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,S.__)("Filter","blockify"),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{n({style:{...t?.style,filter:{}}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Clear Filters","blockify")}))),(0,s.createElement)(_.PanelRow,{className:"blockify-filter-settings"},Object.keys(W).map((e=>{var t,o;return(0,s.createElement)(_.__experimentalNumberControl,{key:e,label:"hueRotate"===e?(0,S.__)("Hue Rotate","blockify"):r(e),value:l?.filter?.[e],onChange:t=>{var r;n({style:{...l,filter:{...null!==(r=l?.filter)&&void 0!==r?r:{},[e]:t}}})},min:null!==(t=W?.[e]?.min)&&void 0!==t?t:0,max:W?.[e]?.max,step:null!==(o=W?.[e]?.step)&&void 0!==o?o:1,allowReset:!0})}))),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Use as backdrop filter","blockify"),checked:l?.filter?.backdrop,onChange:e=>{n({style:{...l,filter:{...l?.filter,backdrop:e}}})}})))};var X;(0,c.addFilter)("editor.BlockEdit","blockify/filter-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return U(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.filter)&&void 0!==n&&n,title:(0,S.__)("Filter","blockify")},(0,s.createElement)($,t)))):(0,s.createElement)(e,t)}),"withFilter"));const Y=null!==(X=window?.blockify?.blockSupports)&&void 0!==X?X:{};(0,c.addFilter)("editor.BlockEdit","blockify/with-negative-margin",(0,u.createHigherOrderComponent)((e=>t=>{if(n=t?.name,null!==(l=Y?.[n]?.blockifyNegativeMargin)&&void 0!==l&&l){const e=document.querySelector('.components-input-control__input[min="0"]');e&&e.setAttribute("min","-999")}var n,l;return(0,s.createElement)(e,t)}),"withMinHeightSettings"));const Z=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyOnclick)&&void 0!==t&&t};var K,J;(0,c.addFilter)("blocks.registerBlockType","blockify/add-onclick-attribute",((e,t)=>Z(t)?(e.attributes={...e.attributes,onclick:{type:"string"}},e):e),0),(0,c.addFilter)("editor.BlockEdit","blockify/with-onclick-attribute",(0,u.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:l,name:r}=t;return Z(r)&&(0,g.useSelect)((e=>{const t=e("core")?.getCurrentUser(),n=e("core")?.getUser(t?.id);return n?.roles}),[])?.includes("administrator")?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(P.InspectorAdvancedControls,null,(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("On-click event","blockify"),help:(0,S.__)("Enter a JavaScript function to be called when the button is clicked.","blockify"),rows:4,value:n?.onclick?.replace('"',"'"),onChange:e=>l({onclick:e?.replace('"',"'")}),style:{fontFamily:"ui-monospace,Menlo,Monaco,Cascadia Code,Segoe UI Mono,Roboto Mono,Oxygen Mono,Ubuntu Monospace,Source Code Pro,Fira Code,Droid Sans Mono,DejaVu Sans Mono,Courier New,monospace",fontSize:"14px",tabSize:"1em",lineHeight:"1.5"}}))):(0,s.createElement)(e,t)}),"onclickAttribute"),99);const Q=null!==(K=window?.blockify?.blockSupports)&&void 0!==K?K:{},ee=e=>{var t;return null!==(t=Q?.[e]?.blockifyPosition)&&void 0!==t&&t},te=null!==(J=window?.blockify?.positionOptions)&&void 0!==J?J:{};(0,c.addFilter)("blocks.registerBlockType","blockify/add-position-attributes",((e,t)=>{if(ee(t)){var n;const t={};Object.keys(te).forEach((e=>{t[e]={type:"object"}})),e.attributes={...e.attributes,style:{...t,...null!==(n=e?.attributes?.style)&&void 0!==n?n:{}}}}return e}),0);const ne=e=>{var t;const n=[],l=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(te).forEach((e=>{const t=o(e);var r,a,i;te?.[e]?.options?(null!==(r=l?.[e]?.all)&&void 0!==r&&r&&n.push(`has-${t}-${o(l?.[e]?.all)}`),null!==(a=l?.[e]?.mobile)&&void 0!==a&&a&&n.push(`has-${t}-${o(l?.[e]?.mobile)}-mobile`),null!==(i=l?.[e]?.desktop)&&void 0!==i&&i&&n.push(`has-${t}-${o(l?.[e]?.desktop)}-desktop`)):l?.[e]&&n.push(`has-${t}`)})),n},le=e=>{var t;const n={},l=null!==(t=e?.style)&&void 0!==t?t:{};return Object.keys(te).forEach((e=>{var t,r,a;if(te?.[e]?.options)return;const i=o(e);null!==(t=l?.[e]?.all)&&void 0!==t&&t&&(n[`--${i}`]=l?.[e]?.all),null!==(r=l?.[e]?.mobile)&&void 0!==r&&r&&(n[`--${i}-mobile`]=l?.[e]?.mobile),null!==(a=l?.[e]?.desktop)&&void 0!==a&&a&&(n[`--${i}-desktop`]=l?.[e]?.desktop)})),n};(0,c.addFilter)("editor.BlockListBlock","blockify/with-position-style",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{name:l,attributes:r}=t;if(!ee(l))return(0,s.createElement)(e,t);const o=ne(r),a=le(r),i=null!==(n=t?.wrapperProps)&&void 0!==n?n:{};return t={...t,style:{...t?.style,...a}},i&&(i.style={...i?.style,...a}),o.forEach((e=>{t?.className?.includes(e)||(t.className=t?.className+" "+e)})),t.wrapperProps=i,(0,s.createElement)(e,t)}),"withPositionStyle")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/save-position-style",(e=>{const{name:t,attributes:n}=e;if(!Q?.[t]?.blockifyPosition)return e;const l=ne(n),r=le(n);return l.forEach((t=>{e?.className?.includes(t)||(e.className=e?.className+" "+t)})),e.style={...e?.style,...r},e}),11);const re=(e,t)=>{var n,l,r,o,a,i,c,u;const{attributes:m,setAttributes:p}=e,d=null!==(n=m?.style)&&void 0!==n?n:{},f=e=>{const n={};Object.keys(e).forEach((l=>{n[l]={...d?.[l],[t]:e[l]}})),p({style:{...d,...n}})};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Position","blockify"),value:null!==(l=d?.position?.[t])&&void 0!==l?l:"",options:te?.position?.options,onChange:e=>{f({position:e})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:te?.zIndex?.label,value:d?.zIndex?.[t],onChange:e=>{f({zIndex:e})},min:-100,max:100,step:1,allowReset:!0})))),d?.position&&(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Overflow","blockify"),value:null!==(r=d?.overflow?.[t])&&void 0!==r?r:"",options:te?.overflow?.options,onChange:e=>{f({overflow:e})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Pointer Events","blockify"),value:null!==(o=d?.pointerEvents?.[t])&&void 0!==o?o:"",options:te?.pointerEvents?.options,onChange:e=>{f({pointerEvents:e})}})))),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.__experimentalBoxControl,{className:"blockify-box-control",label:(0,S.__)("Inset","blockify"),values:{top:null!==(a=d?.top?.[t])&&void 0!==a?a:"",right:null!==(i=d?.right?.[t])&&void 0!==i?i:"",bottom:null!==(c=d?.bottom?.[t])&&void 0!==c?c:"",left:null!==(u=d?.left?.[t])&&void 0!==u?u:""},onChange:e=>{var t,n,l,r;f({top:null!==(t=e?.top)&&void 0!==t?t:"",right:null!==(n=e?.right)&&void 0!==n?n:"",bottom:null!==(l=e?.bottom)&&void 0!==l?l:"",left:null!==(r=e?.left)&&void 0!==r?r:""})},inputProps:{min:-999}})))},oe=e=>{const{attributes:t,setAttributes:n}=e,[l,r]=(0,s.useState)("all");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,s.createElement)("span",null,(0,S.__)("Position","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{n({style:{...t?.style,position:"",zIndex:"",top:"",right:"",bottom:"",left:""}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Reset Position","blockify")}))),(0,s.createElement)(_.ButtonGroup,null,(0,s.createElement)(_.Button,{isSmall:!0,variant:"all"===l?"primary":"tertiary",onClick:()=>r("all")},(0,S.__)("All","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,variant:"mobile"===l?"primary":"tertiary",onClick:()=>r("mobile"),icon:D}),(0,s.createElement)(_.Button,{isSmall:!0,variant:"desktop"===l?"primary":"tertiary",onClick:()=>r("desktop"),icon:j}))),"all"===l&&re(e,l),"mobile"===l&&re(e,l),"desktop"===l&&re(e,l))};(0,c.addFilter)("editor.BlockEdit","blockify/position-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return ee(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.position)&&void 0!==n&&n,title:(0,S.__)("Position","blockify")},(0,s.createElement)(oe,t)))):(0,s.createElement)(e,t)}),"withPosition")),(0,c.addFilter)("editor.BlockListBlock","blockify/with-block-gap",(0,u.createHigherOrderComponent)((e=>t=>{var n;if("core/query"!==t?.name)return(0,s.createElement)(e,t);if(!t?.attributes?.style?.spacing?.blockGap)return(0,s.createElement)(e,t);const l=null!==(n=t.wrapperProps)&&void 0!==n?n:{};return l.style={...l.style,"--wp--style--block-gap":t.attributes.style.spacing.blockGap},(0,s.createElement)(e,i({},t,{wrapperProps:l}))}),"withBlockGap")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-block-gap",((e,t,n)=>("core/query"===t&&n?.style?.spacing?.blockGap&&(e.style={...e.style,"--wp--style--block-gap":n.style.spacing.blockGap}),e)));const ae=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyBoxShadow)&&void 0!==t&&t};(0,c.addFilter)("blocks.registerBlockType","blockify/add-box-shadow-attributes",((e,t)=>{var n;return ae(t)&&(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},boxShadow:{type:"object"}}}),e}),0);const ie=e=>{var t;const n=null!==(t=e?.style?.boxShadow)&&void 0!==t?t:{},l={},r={inset:"",x:"px",y:"px",blur:"px",spread:"px",color:""};return Object.keys(r).map((e=>((n?.[e]||"0"===n?.[e]?.toString())&&(l["--wp--custom--box-shadow--"+e]=n?.[e]+r?.[e]),(n?.hover?.[e]||"0"===n?.hover?.[e]?.toString())&&(l["--wp--custom--box-shadow--hover--"+e]=n?.hover?.[e]+r?.[e]),!0))),l},se=(e,t)=>{var n;const{attributes:l,setAttributes:o}=e,{style:a}=l,i=null!==(n=a?.boxShadow)&&void 0!==n?n:{},c=e=>{let n;n="default"===t?{...e}:{hover:{...i?.hover,...e}},o({style:{...a,boxShadow:{...i,...n}}})};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,null,["x","y","blur","spread"].map((e=>(0,s.createElement)(_.FlexItem,{key:e},(0,s.createElement)(_.__experimentalNumberControl,{label:r(e),value:"default"===t?i[e]:i?.hover?.[e],step:1,shiftStep:10,onChange:t=>{c({[e]:t})}})))))),(0,s.createElement)("br",null),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,{style:{flex:1.5}},(0,s.createElement)(P.__experimentalPanelColorGradientSettings,{title:(0,S.__)("Color","blockify"),showTitle:!1,enableAlpha:!0,settings:[{enableAlpha:!0,colorValue:"default"===t?i?.color:i?.[t]?.color,label:(0,S.__)("Color ","blockify")+("hover"===t?(0,S.__)(" Hover","blockify"):""),onColorChange:e=>{c({color:e})}}]})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Inset","blockify"),checked:"default"===t?i?.inset:i?.[t]?.inset,onChange:e=>{c({inset:e?"inset":""})}})))))};(0,c.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,name:r}=t;if(!ae(r))return(0,s.createElement)(e,t);const o=ie(l);if(!Object.keys(o).length)return(0,s.createElement)(e,t);const a={...t.wrapperProps},c=(null!==(n=t?.className)&&void 0!==n?n:"")+" has-box-shadow";return t={...t,className:c,style:{...t.style,...o}},a.className+=" has-box-shadow",a.style={...a.style,...o},(0,s.createElement)(e,i({},t,{wrapperProps:a}))}),"withBoxShadow")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,n)=>{const{name:l}=t;if(!ae(l))return e;const r=ie(n);return Object.keys(r).length?(e.className+=" has-box-shadow",e.style={...e.style,...r},e):e}));const ce=e=>{const{attributes:t,setAttributes:n}=e,[l,r]=(0,s.useState)("default");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,S.__)("Shadow","blockify"),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{n({style:{...t?.style,boxShadow:""}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Clear Shadow","blockify")}))),(0,s.createElement)(_.ButtonGroup,null,(0,s.createElement)(_.Button,{isSmall:!0,variant:"default"===l?"primary":"secondary",onClick:()=>r("default")},(0,S.__)("Default","blockify")),(0,s.createElement)(_.Button,{isSmall:!0,variant:"hover"===l?"primary":"secondary",onClick:()=>r("hover")},(0,S.__)("Hover","blockify")))),"default"===l&&se(e,l),"hover"===l&&se(e,l))};(0,c.addFilter)("editor.BlockEdit","blockify/shadow-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return ae(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.shadow)&&void 0!==n&&n,title:(0,S.__)("Shadow","blockify")},(0,s.createElement)(ce,t)))):(0,s.createElement)(e,t)}),"withShadow"));const ue=e=>{var t;return null!==(t=window?.blockify?.blockSupports?.[e]?.blockifyTransform)&&void 0!==t&&t},me={rotate:"deg",rotateX:"deg",rotateY:"deg",scale:"",scaleX:"",scaleY:"",skew:"deg",skewX:"deg",skewY:"deg",translateX:"",translateY:"",translateZ:""};(0,c.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n;return ue(t)?(e.attributes={...e.attributes,style:{...null!==(n=e?.attributes?.style)&&void 0!==n?n:{},transform:{type:"string"}}},e):e}));const pe=e=>{let t="";return Object.keys(me).forEach((n=>{if(e?.[n]){const l=e[n];t+=` ${n}(${l}${me[n]})`}})),t?{transform:t.trim()}:{}};(0,c.addFilter)("editor.BlockListBlock","blockify/with-css-transform",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,name:r}=t,o=(0,s.createElement)(e,t);if(!ue(r))return o;const{style:a}=l,c=null!==(n=a?.transform)&&void 0!==n?n:{};if(!c)return o;const u=pe(c);if(!Object.keys(u).length)return o;const m={...(t={...t,style:{...t?.style,...u}}).wrapperProps,style:{...t.wrapperProps?.style,...u}};return(0,s.createElement)(e,i({},t,{wrapperProps:m}))}),"withCssTransform")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-transform-styles",((e,t,n)=>{var l;const{name:r}=t;if(!ue(r))return e;const{style:o}=n,a=null!==(l=o?.transform)&&void 0!==l?l:{};if(!a)return e;const i=pe(a);return Object.keys(i).length?{...e,style:{...e?.style,...i}}:e}));const de=e=>{var t;const{attributes:n,setAttributes:l}=e,{style:r}=n,o=null!==(t=r?.transform)&&void 0!==t?t:{};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(N,null,(0,s.createElement)(s.Fragment,null,(0,S.__)("Transform","blockify"),(0,s.createElement)(_.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{l({style:{...n?.style,transform:""}})},icon:F,iconSize:16,"aria-label":(0,S.__)("Clear Transforms","blockify")})))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Rotate","blockify"),value:o?.rotate,onChange:e=>{l({style:{...r,transform:{...o,rotate:e}}})},min:-360,max:360,step:1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Rotate X","blockify"),value:o?.rotateX,onChange:e=>{l({style:{...r,transform:{...o,rotateX:e}}})},min:-360,max:360,step:1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Rotate Y","blockify"),value:o?.rotateY,onChange:e=>{l({style:{...r,transform:{...o,rotateY:e}}})},min:-360,max:360,step:1}))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Scale","blockify"),value:o?.scale,onChange:e=>{l({style:{...r,transform:{...o,scale:e}}})},min:0,max:10,step:.1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Scale X","blockify"),value:o?.scaleX,onChange:e=>{l({style:{...r,transform:{...o,scaleX:e}}})},min:0,max:10,step:.1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Scale Y","blockify"),value:o?.scaleY,onChange:e=>{l({style:{...r,transform:{...o,scaleY:e}}})},min:0,max:10,step:.1}))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Skew","blockify"),value:o?.skew,onChange:e=>{l({style:{...r,transform:{...o,skew:e}}})},min:-360,max:360,step:1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Skew X","blockify"),value:o?.skewX,onChange:e=>{l({style:{...r,transform:{...o,skewX:e}}})},min:-360,max:360,step:1})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Skew Y","blockify"),value:o?.skewY,onChange:e=>{l({style:{...r,transform:{...o,skewY:e}}})},min:-360,max:360,step:1}))),(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Translate X","blockify"),value:o?.translateX,onChange:e=>{l({style:{...r,transform:{...o,translateX:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Translate Y","blockify"),value:o?.translateY,onChange:e=>{l({style:{...r,transform:{...o,translateY:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Translate Z","blockify"),value:o?.translateZ,onChange:e=>{l({style:{...r,transform:{...o,translateZ:e}}})}}))),(0,s.createElement)("br",null))};(0,c.addFilter)("editor.BlockEdit","blockify/transform-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,isSelected:r,name:o}=t;return ue(o)?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),r&&(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{initialOpen:null!==(n=l?.transform)&&void 0!==n&&n,title:(0,S.__)("Transform","blockify")},(0,s.createElement)(de,t)))):(0,s.createElement)(e,t)}),"withTransform"));var fe=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));(0,l.registerBlockVariation)("core/list",{name:"accordion",title:(0,S.__)("Accordion","blockify"),description:(0,S.__)("Add a collapsible accordion list.","blockify"),category:window?.blockify?.isPlugin?"blockify":"text",icon:fe,attributes:{className:"is-style-accordion"},isDefault:!1,isActive:(e,t)=>e&&e?.className?.includes(t.className)});var ye=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));const he={content:(0,S.__)("Curved text. Curved text. Curved text.","blockify"),containerSize:"160",pathSize:"120"},be={name:"curved-text",title:(0,S.__)("Curved Text","blockify"),icon:ye,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"text",scope:["inserter","transform","block"],description:(0,S.__)("Insert curved text around circular SVG path.","blockify"),attributes:{className:"is-style-curved-text"},isActive:e=>e?.className?.includes("is-style-curved-text")};t()((()=>{(0,l.registerBlockVariation)("core/paragraph",be)})),(0,c.addFilter)("blocks.registerBlockType","blockify/curved-text-attributes",((e,t)=>("core/paragraph"===t&&(e={...e,attributes:{...e?.attributes,curvedText:{type:"object"}}}),e)));const ge=function(){var e,t,n;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{curvedText:r=he}=l,o=null!==(e=r?.content)&&void 0!==e?e:he.content,a=null!==(t=r?.containerSize)&&void 0!==t?t:he.containerSize,i=null!==(n=r?.pathSize)&&void 0!==n?n:he.pathSize,c=parseInt(a)/2,u=parseInt(i)/2,m={viewBox:`0 0 ${a} ${a}`,xmlns:"http://www.w3.org/2000/svg",enableBackground:`new 0 0 ${a} ${a}`,xmlSpace:"preserve",width:a,height:a,contentEditable:!1,x:0,y:0},p=Date.now()+Math.random(),d={id:"circle-"+p,d:`M ${c}, ${c} m -${u}, 0 a ${u},${u} 0 0,1 ${i},0 a ${u},${u} 0 0,1 -${i},0`,fill:"transparent"};return(0,s.createElement)("svg",m,(0,s.createElement)("path",d," "),(0,s.createElement)("text",{fill:"currentColor"},(0,s.createElement)("textPath",{xlinkHref:"#circle-"+p},o)))};(0,c.addFilter)("editor.BlockEdit","blockify/with-curved-text-css",(0,u.createHigherOrderComponent)((e=>t=>{var n,l,r;const{attributes:o,setAttributes:a}=t;if(!(e=>!(!e?.className||"string"!=typeof e?.className)&&e?.className?.includes("is-style-curved-text"))(o))return(0,s.createElement)(e,t);const c=document.getElementsByClassName("edit-site-visual-editor__editor-canvas")?.item(0),u=document.getElementsByName("editor-canvas")?.item(0);let m;if(m=c?c.contentDocument:u?u.contentDocument:document,!m)return(0,s.createElement)(e,t);const p=m?.getElementById("block-"+t?.clientId);p&&(p.innerHTML=(0,s.renderToString)(ge({...o,clientId:t.clientId})));const{curvedText:d=he}=o,f=e=>{var n;const l={...e,svgString:(0,s.renderToString)((0,s.createElement)(ge,i({},o,e,{clientId:null!==(n=t.clientId)&&void 0!==n?n:"1"})))};a({curvedText:{...d,...l}})};return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{className:"blockify-controls",title:(0,S.__)("Curved Text","blockify")},(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("Content","blockify"),value:null!==(n=d?.content)&&void 0!==n?n:he.content,onChange:e=>{f({content:e})}}),(0,s.createElement)("p",null,(0,S.__)("Size","blockify")),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)("br",null),(0,s.createElement)(_.Flex,null,(0,s.createElement)(_.FlexItem,{style:{width:"50%"}},(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Container","blockify"),value:null!==(l=d?.containerSize)&&void 0!==l?l:he.containerSize,onChange:e=>{f({containerSize:e})}})),(0,s.createElement)(_.FlexBlock,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Path","blockify"),value:null!==(r=d?.pathSize)&&void 0!==r?r:he.pathSize,onChange:e=>{f({pathSize:e})}})))))))}),"withCurvedTextSettings"),1);var ve=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));const ke={start:"0",end:"100",duration:"2",delay:"0",prefix:"",suffix:""},Ee={name:"counter",title:(0,S.__)("Counter","blockify"),keywords:["counter","number","count","stats"],icon:ve,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"text",scope:["inserter","transform","block"],description:(0,S.__)("Insert counter animation.","blockify"),attributes:{className:"is-style-counter"},isActive:e=>e&&e?.className?.includes("is-style-counter")};t()((()=>{(0,l.registerBlockVariation)("core/paragraph",Ee)})),(0,c.addFilter)("editor.BlockEdit","blockify/with-counter-controls",(0,u.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:l}=t,r=(0,s.createElement)(e,t);if(!n?.className?.includes("is-style-counter"))return r;const{style:o}=n;let a=ke;return o?.counter?a=o.counter:l({style:{...o,counter:ke}}),(0,s.useEffect)((()=>{if(!a?.prefix&&!a?.end&&!a?.suffix)return;let e=a?.end;"string"==typeof a?.prefix&&(e=a?.prefix+e),"string"==typeof a?.suffix&&(e+=a?.suffix),l({content:e})}),[a?.prefix,a?.end,a?.suffix,l]),(0,s.createElement)(s.Fragment,null,r,(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{title:(0,S.__)("Counter Settings","blockify"),initialOpen:!0,className:"blockify-counter-settings"},(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Start","blockify"),value:a?.start,onChange:e=>{l({style:{...o,counter:{...a,start:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("End","blockify"),value:a?.end,onChange:e=>{l({style:{...o,counter:{...a,end:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Duration (seconds)","blockify"),value:a?.duration,onChange:e=>{l({style:{...o,counter:{...a,duration:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalNumberControl,{label:(0,S.__)("Delay (seconds)","blockify"),value:a?.delay,onChange:e=>{l({style:{...o,counter:{...a,delay:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,{className:"blockify-flex-controls"},(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.TextControl,{label:(0,S.__)("Prefix","blockify"),value:a?.prefix,onChange:e=>{l({style:{...o,counter:{...a,prefix:e}}})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.TextControl,{label:(0,S.__)("Suffix","blockify"),value:a?.suffix,onChange:e=>{l({style:{...o,counter:{...a,suffix:e}}})}})))))))}),"withCounterControls"),9);var we=(0,s.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(C.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));const xe={name:"image",title:(0,S.__)("Image","blockify"),icon:we,isDefault:!0,category:"media",scope:["inserter","transform","block"],description:(0,S.__)("Insert an image to make a visual statement.","blockify"),attributes:{className:""},isActive:e=>!e?.className||!e?.className?.includes("is-style-icon")&&!e?.className?.includes("is-style-svg")};(0,l.registerBlockVariation)("core/image",xe);var _e=n(488),Se=(_e.domToReact,_e.htmlToDOM,_e.attributesToProps,_e.Comment,_e.Element,_e.ProcessingInstruction,_e.Text,_e),Ce=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));_.SelectControl.Option,_.CustomSelectControl.Option;const Fe=e=>"core/image"===e,Te={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:' '}},Ne={name:"icon",icon:Ce,title:(0,S.__)("Icon","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"media",scope:["inserter","transform","block"],description:(0,S.__)("Insert a customizable SVG icon.","blockify"),attributes:{className:"is-style-icon",iconSet:"wordpress",iconName:"star-empty",iconSvgString:' '},isActive:e=>e&&e?.className?.includes("is-style-icon")};t()((()=>{(0,l.registerBlockVariation)("core/image",Ne)})),(0,c.addFilter)("blocks.registerBlockType","blockify/add-icon-attributes",((e,t)=>{if(Fe(t)){for(const[t,n]of Object.entries(Te))e.attributes[t]={type:n.type};e.attributes={...e.attributes,...Te}}return e}),99),(0,c.addFilter)("editor.BlockEdit","blockify/with-icon",(0,u.createHigherOrderComponent)((e=>t=>{var n,l,r,o,a;const{name:i,attributes:c,setAttributes:u,isSelected:m}=t,{className:p}=c;if(!p)return(0,s.createElement)(e,t);if(!p?.includes("is-style-icon"))return(0,s.createElement)(e,t);if(!Fe(i))return(0,s.createElement)(e,t);m&&(()=>{const e=document.getElementsByClassName("block-editor-block-card__description").item(0);e&&(document.getElementsByClassName("blockify-pro-icon-link").item(0)||(e.innerHTML=e.innerHTML+(0,S.__)(" Get more icons with ","blockify")+'Blockify Pro ↗'))})(),c?.url||u({url:"#"}),c?.iconSet||u({iconSet:Te?.iconSet?.default}),c?.iconName||u({iconName:Te?.iconName?.default}),c?.iconSvgString||u({iconSvgString:Te?.iconSvgString?.default});const d=[],{icons:f}=null!==(n=(0,g.useSelect)((e=>({icons:e("blockify/icons")?.getIcons()})),[]))&&void 0!==n?n:v,y={wordpress:[{name:Te?.iconSvgString?.default,key:Te?.iconName?.default}]};return Object.keys(f).forEach((e=>{let t=e.split("-").join(" ");t="wordpress"===t?"WordPress":t,d.push({label:t,value:e}),y[e]=[],Object.keys(f[e]).forEach((t=>{t!==c?.iconName&&y[e].push({name:Se(f?.[e]?.[t]),key:t})})),f?.[e]?.[c?.iconName]&&y[e].unshift({name:Se(f?.[e]?.[c?.iconName]),key:c?.iconName})})),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{title:(0,S.__)("Icon Settings","blockify"),initialOpen:!0,className:"blockify-icon-settings"},!1,(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Select Icon Set","blockify"),value:null!==(l=c?.iconSet)&&void 0!==l?l:Te?.iconSet.default,options:d,onChange:e=>u({iconSet:e})}),(0,s.createElement)((()=>{const e=y[c?.iconSet]?.filter((e=>e?.key===c?.iconName))?.[0]?.name;return(0,s.createElement)("div",{className:"blockify-icon-preview"},e&&(0,s.createElement)(s.Fragment,null,e,(0,s.createElement)("span",null,c?.iconName?.replace("-"," "))))}),null),(0,s.createElement)(_.CustomSelectControl,{label:(0,S.__)("Select Icon","blockify"),options:null!==(r=y?.[c?.iconSet])&&void 0!==r?r:y?.wordpress,value:null!==(o=c?.iconSvgString)&&void 0!==o?o:Te?.iconSvgString?.default,className:"blockify-icon-setting",onChange:e=>{var t;let{selectedItem:n}=e;const l=null!==(t=n?.key)&&void 0!==t?t:"";u({iconName:l}),u({iconSvgString:f?.[c?.iconSet]?.[l]})}}),(0,s.createElement)("br",null),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Icon Width","blockify"),value:null!==(a=c?.iconSize)&&void 0!==a?a:"",onChange:e=>u({iconSize:e})})))))))}),"iconEdit"),0);const Pe=e=>{var t,n,l;const r={};let o="";e?.style?.color?.background&&(o=e.style.color.background),e?.backgroundColor&&(o="var(--wp--preset--color--"+e.backgroundColor+", currentColor)");let a="";e?.style?.color?.gradient&&(a=e?.style?.color?.gradient),e?.gradient&&(a="var(--wp--preset--gradient--"+e.gradient+",currentColor)");let i="";if(e?.style?.color?.text&&(i=e?.style?.color?.text),e?.textColor&&(i="var(--wp--preset--color--"+e.textColor+",currentColor)"),""!==o&&(r["--wp--custom--icon--background"]=o),i?(r["--wp--custom--icon--color"]=i,a&&(r["--wp--custom--icon--background"]=a)):a&&(r["--wp--custom--icon--color"]=a),e?.style?.spacing?.padding){var s,c,u,m;const t=e.style.spacing.padding,n={top:null!==(s=t?.top)&&void 0!==s?s:"0",right:null!==(c=t?.right)&&void 0!==c?c:"0",bottom:null!==(u=t?.bottom)&&void 0!==u?u:"0",left:null!==(m=t?.left)&&void 0!==m?m:"0"};Object.keys(n).forEach((e=>{var t;const l=null!==(t=n?.[e])&&void 0!==t?t:"";l&&l?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+l.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--padding"]=Object.values(n).join(" ")}if(e?.style?.spacing?.margin){var p,d,f,y;const t=e.style.spacing.margin,n={top:null!==(p=t?.top)&&void 0!==p?p:"",right:null!==(d=t?.right)&&void 0!==d?d:"",bottom:null!==(f=t?.bottom)&&void 0!==f?f:"",left:null!==(y=t?.left)&&void 0!==y?y:""};Object.keys(n).forEach((e=>{var t;const l=null!==(t=n?.[e])&&void 0!==t?t:"";l?.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+l?.replace("var:preset|spacing|","")+")")})),r["--wp--custom--icon--margin"]=Object.values(n).join(" ")}let h="";var b,g;e?.borderColor&&(h="var(--wp--preset--color--"+e?.borderColor+")"),e?.style?.border?.width&&(r["--wp--custom--icon--border-width"]=e.style.border.width,r["--wp--custom--icon--border-style"]=null!==(b=e.style.border?.style)&&void 0!==b?b:"solid",r["--wp--custom--icon--border-color"]=null!==(g=e.style.border?.color)&&void 0!==g?g:h);const v=null!==(t=e?.iconSize)&&void 0!==t?t:"";""!==v&&(r["--wp--custom--icon--size"]=v);const k=(null!==(n=e?.iconCustomSVG)&&void 0!==n?n:"")?.replace('"',"'"),E=k&&k?.includes("t=>{let{attributes:n,wrapperProps:l,name:r}=t;return n?.className&&n?.className?.includes("is-style-icon")&&Fe(r)?(l||(l={style:{}}),l.style={...l?.style,...Pe(n)},(0,s.createElement)(e,i({},t,{wrapperProps:l}))):(0,s.createElement)(e,t)}),"withIcon")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/save-icon-styles",((e,t,n)=>{if(!n?.className)return e;const{name:l}=t;return n?.className?.includes("is-style-icon")&&Fe(l)?(e.style={...e?.style,...Pe(n)},e):e}));var Ie=(0,s.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(C.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));const Oe={name:"svg",title:(0,S.__)("SVG","blockify"),icon:Ie,isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"media",scope:["inserter","transform","block"],description:(0,S.__)("Insert an inline SVG.","blockify"),attributes:{className:"is-style-svg"},isActive:e=>!!e?.className&&e?.className&&e?.className?.includes("is-style-svg")};t()((()=>{(0,l.registerBlockVariation)("core/image",Oe)}));const Be=e=>"url('data:image/svg+xml;utf8,"+encodeURIComponent(e)+"')",Ae=e=>"data:image/svg+xml;utf8,"+encodeURIComponent(e);(0,c.addFilter)("editor.BlockEdit","blockify/with-svg-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n,l;const{attributes:r,setAttributes:o}=t;if(!r?.className?.includes("is-style-svg"))return(0,s.createElement)(e,t);const{style:a}=r,i=null!==(n=a?.svgString)&&void 0!==n?n:"",c=null!==(l=a?.maskSvg)&&void 0!==l&&l;r?.url||o({url:c?"#":Ae(i)}),c&&"#"!==r?.url&&o({url:"#"}),c||r?.url?.includes("data:image/svg+xml;utf8,")||o({url:Ae(i)});let u="var(--width,1em)",m="";var p;r?.width&&(u=r.width+"px"),r?.height&&(m=(null!==(p=r.height)&&void 0!==p?p:"")+"px"),m=""===m?u:m;const d={width:u,height:m,display:"inline-flex",background:"currentColor",overflow:"hidden","-webkit-mask-repeat":"no-repeat","-mask-repeat":"no-repeat","-webkit-mask-size":"100% 100%","-mask-size":"100% 100%","-webkit-mask-position":"center","-mask-position":"center bottom","-webkit-mask-image":Be(i),"-mask-image":Be(i)};let f="";return i&&(f=Object.entries(d).map((e=>{let[t,n]=e;return`${t}:${n};`})).join("")),(0,s.createElement)(s.Fragment,null,c&&(0,s.createElement)("style",null,"#block-"+t?.clientId+">div:first-of-type{"+f+"}"),(0,s.createElement)(e,t),(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{title:(0,S.__)("SVG Settings","blockify-pro"),className:(0,S.__)("blockify-svg-controls","blockify-pro")},(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("SVG String","blockify"),help:(0,S.__)("Paste your SVG string in the field above. It is recommended to format your SVG with an optimization tool ","blockify"),value:null!=i?i:"",rows:20,onChange:e=>{const t={style:{...a,svgString:e}};t.url=c?"#":Ae(e),o(t)},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)"}})),(0,s.createElement)(_.ExternalLink,{href:"https://jakearchibald.github.io/svgomg/",target:"_blank"},"https://jakearchibald.github.io/svgomg/"),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Mask with text color","blockify"),help:(0,S.__)("If enabled, the SVG will be masked with the text color. (Renders inline SVG on front end).","blockify"),checked:c,onChange:e=>{const t={style:{...a,maskSvg:e}};t.url=c?"#":Ae(i),o(t)}})))))}),"withSvgControls"),9);const ze={name:"marquee",icon:(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),title:(0,S.__)("Marquee","blockify"),isDefault:!1,category:window?.blockify?.isPlugin?"blockify":"design",scope:["inserter","transform","block"],description:(0,S.__)("Adds a horizontal infinite scrolling marquee banner.","blockify"),innerBlocks:[["core/group",{layout:{type:"flex",flexWrap:"nowrap",orientation:"horizontal",justifyContent:"center"}},[["core/paragraph"]]]],attributes:{marquee:{},align:"full",speedMobile:60,speedDesktop:90,pauseOnHover:!0,reverse:!1,spacing:{padding:{right:"0",left:"0"}},layout:{type:"flex",flexWrap:"nowrap",orientation:"marquee",justifyContent:"center"}},isActive:(e,t)=>e.layout?.orientation===t.layout?.orientation};(0,l.registerBlockVariation)("core/group",ze);const Me=e=>{var t,n;return{"--marquee-speed-mobile":(null!==(t=e?.speedMobile)&&void 0!==t?t:20)+"s","--marquee-speed-desktop":(null!==(n=e?.speedDesktop)&&void 0!==n?n:30)+"s","--marquee-direction":e?.reverse?"reverse":"forwards","--marquee-pause":e?.pauseOnHover?"paused":"running"}};(0,c.addFilter)("blocks.registerBlockType","blockify/marquee-attributes",((e,t)=>("core/group"===t&&(e={...e,attributes:{...e.attributes,speedMobile:{type:"string"},speedDesktop:{type:"string"},reverse:{type:"boolean"},pauseOnHover:{type:"boolean"},repeatItems:{type:"number"}}}),e)),0),(0,c.addFilter)("editor.BlockEdit","blockify/with-marquee-controls",(0,u.createHigherOrderComponent)((e=>t=>{var n;const{attributes:l,setAttributes:r}=t;return"marquee"!==l?.layout?.orientation?(0,s.createElement)(e,t):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(P.InspectorControls,null,(0,s.createElement)(_.PanelBody,{title:(0,S.__)("Marquee Settings","blockify-pro"),className:(0,S.__)("blockify-width-control","blockify-pro")},(0,s.createElement)("p",null,(0,S.__)("Scroll Speed (seconds)","blockify")),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)("br",null),(0,s.createElement)(_.Flex,null,(0,s.createElement)(_.FlexItem,{style:{width:"50%"}},(0,s.createElement)(_.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,S.__)("Mobile","blockify"),onChange:e=>{r({speedMobile:e})},value:l?.speedMobile})),(0,s.createElement)(_.FlexBlock,null,(0,s.createElement)(_.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,S.__)("Desktop","blockify-pro"),onChange:e=>{r({speedDesktop:e})},value:l?.speedDesktop})))),(0,s.createElement)("br",null),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.RangeControl,{label:(0,S.__)("Repeat Items","blockify"),help:(0,S.__)("How many times should the items be duplicated and cloned.","blockify"),value:null!==(n=l?.repeatItems)&&void 0!==n?n:2,onChange:e=>{r({repeatItems:e})},min:0,max:10,step:1,allowReset:!0})),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Pause on hover","blockify-pro"),checked:l?.pauseOnHover,onChange:()=>r({pauseOnHover:!l?.pauseOnHover})})),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.ToggleControl,{label:(0,S.__)("Reverse direction","blockify-pro"),checked:l?.reverse,onChange:()=>r({reverse:!l?.reverse})})))),(0,s.createElement)(e,t))}),"withInspectorControl"),9),(0,c.addFilter)("editor.BlockListBlock","blockify/with-marquee",(0,u.createHigherOrderComponent)((e=>t=>{var n,l;const{attributes:r}=t;if("marquee"!==r?.layout?.orientation)return(0,s.createElement)(e,t);t.attributes.style={...null!==(n=r.style)&&void 0!==n?n:{},...Me(r)};const o={...t.wrapperProps,style:{...null!==(l=t.wrapperProps?.style)&&void 0!==l?l:{},...Me(r)}};return(0,s.createElement)(e,i({},t,{wrapperProps:o}))}),"withMarquee")),(0,c.addFilter)("blocks.getSaveContent.extraProps","blockify/save-marquee-styles",((e,t,n)=>("marquee"!==n?.layout?.orientation||(e.style={...e?.style,...Me(n)}),e)));var Re=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"}));const De={name:"paragraph",title:(0,S.__)("Paragraph","blockify"),icon:Re,isDefault:!0,category:"text",scope:["inserter","transform","block"],description:(0,S.__)("Insert an image to make a visual statement.","blockify"),attributes:{className:""},isActive:e=>!e?.className?.includes("is-style-curved-text")&&!e?.className?.includes("is-style-counter")};(0,l.registerBlockVariation)("core/paragraph",De);const je=(0,s.createElement)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},(0,s.createElement)(_.Path,{d:"M126.12 315.1A47.06 47.06 0 1 1 79.06 268h47.06Zm23.72 0a47.06 47.06 0 0 1 94.12 0v117.84a47.06 47.06 0 1 1-94.12 0Zm47.06-188.98A47.06 47.06 0 1 1 244 79.06v47.06Zm0 23.72a47.06 47.06 0 0 1 0 94.12H79.06a47.06 47.06 0 0 1 0-94.12Zm188.98 47.06a47.06 47.06 0 1 1 47.06 47.1h-47.06Zm-23.72 0a47.06 47.06 0 0 1-94.12 0V79.06a47.06 47.06 0 1 1 94.12 0ZM315.1 385.88a47.06 47.06 0 1 1-47.1 47.06v-47.06Zm0-23.72a47.06 47.06 0 0 1 0-94.12h117.84a47.06 47.06 0 1 1 0 94.12Z"})),Ve={name:"slack",title:(0,S.__)("Slack","blockify"),icon:je,attributes:{service:"slack"},isActive:(e,t)=>e.service===t.service};(0,l.registerBlockVariation)("core/social-link",Ve);var Le=window.wp.richText;(0,Le.registerFormatType)("blockify/clear-formatting",{title:(0,S.__)("Clear","blockify"),tagName:"span",className:"clear",edit:e=>{const{value:t,isActive:n,onChange:l}=e,{formatTypes:r}=(0,g.useSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()})),[]);return(0,s.createElement)(P.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,S.__)("Clear Formatting","blockify"),onClick:()=>{if(r.length>0){let e=t;r.map((t=>{e=(0,Le.removeFormat)(e,t.name)})),l({...e})}},isActive:n})}});var He=(0,s.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(C.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 Ge="blockify/gradient";(0,Le.registerFormatType)(Ge,{title:(0,S.__)("Gradient","blockify"),tagName:"span",className:"has-text-gradient",attributes:{style:"style",class:"class"},edit:e=>{let{isActive:t,value:n,onChange:l}=e;const[r,o]=(0,s.useState)(""),[a,i]=(0,s.useState)(!1),{gradients:c}=(0,g.useSelect)((e=>({gradients:e("core/block-editor").getSettings()?.gradients})),[]);let u="",m="";return n?.formats&&n.formats.forEach((e=>{const t=e?.find((e=>e?.type===Ge));t?.type===Ge&&(u+=";"+t?.attributes?.style,m+=t?.attributes?.class)})),(0,s.createElement)(P.BlockControls,null,(0,s.createElement)(P.RichTextToolbarButton,{icon:He,title:(0,S.__)("Gradient","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"g",onClick:()=>i(!a)}),a&&(0,s.createElement)(_.Toolbar,{className:"blockify-components-toolbar"},(0,s.createElement)(_.Popover,{position:"bottom center",className:"blockify-gradient-text-control",focusOnMount:"container",onFocusOutside:()=>i(!1)},(0,s.createElement)(_.GradientPicker,{value:null!=r?r:"",gradients:c,onChange:e=>{o(e);let t=u,r=m;c.forEach((t=>{t.gradient===e&&(r+=(r?" ":"")+"has-"+t.slug+"-gradient-background")})),e&&!r.includes("-gradient-background")&&(t+=(t?t+";":"")+"background:"+e),r?.includes("has-text-gradient")&&(r=r?.replace("has-text-gradient","")?.trim()+" has-text-gradient"),l((0,Le.applyFormat)(n,{type:Ge,attributes:{style:t,class:r}}))}}))))}});var Ue=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));_.CustomSelectControl.Option;const We="blockify/typography",qe=[{key:"Default",name:"Default",style:{}},{key:"Thin",name:"Thin",style:{fontStyle:"normal",fontWeight:100}},{key:"Extra Light",name:"Extra Light",style:{fontStyle:"normal",fontWeight:200}},{key:"Light",name:"Light",style:{fontStyle:"normal",fontWeight:300}},{key:"Regular",name:"Regular",style:{fontStyle:"normal",fontWeight:400}},{key:"Medium",name:"Medium",style:{fontStyle:"normal",fontWeight:500}},{key:"Semi Bold",name:"Semi Bold",style:{fontStyle:"normal",fontWeight:600}},{key:"Bold",name:"Bold",style:{fontStyle:"normal",fontWeight:700}},{key:"Extra Bold",name:"Extra Bold",style:{fontStyle:"normal",fontWeight:800}},{key:"Black",name:"Black",style:{fontStyle:"normal",fontWeight:900}},{key:"Thin Italic",name:"Thin Italic",style:{fontStyle:"italic",fontWeight:100}},{key:"Extra Light Italic",name:"Extra Light Italic",style:{fontStyle:"italic",fontWeight:200}},{key:"Light Italic",name:"Light Italic",style:{fontStyle:"italic",fontWeight:300}},{key:"Regular Italic",name:"Regular Italic",style:{fontStyle:"italic",fontWeight:400}},{key:"Medium Italic",name:"Medium Italic",style:{fontStyle:"italic",fontWeight:500}},{key:"Semi Bold Italic",name:"Semi Bold Italic",style:{fontStyle:"italic",fontWeight:600}},{key:"Bold Italic",name:"Bold Italic",style:{fontStyle:"italic",fontWeight:700}},{key:"Extra Bold Italic",name:"Extra Bold Italic",style:{fontStyle:"italic",fontWeight:800}},{key:"Black Italic",name:"Black Italic",style:{fontStyle:"italic",fontWeight:900}}];(0,Le.registerFormatType)(We,{title:(0,S.__)("Typography","blockify"),tagName:"span",className:"has-font",edit:e=>{var t;const{isActive:n,value:l,onChange:o}=e,[a,i]=(0,s.useState)(!1),{fontSizes:c}=(0,g.useSelect)((e=>({fontSizes:e("core/block-editor")?.getSettings()?.fontSizes})),[]),u=(null!==(t=window?.blockify?.selectedFonts)&&void 0!==t?t:[])?.map((e=>({label:r(e?.replace("-"," ")),value:e})));let d="",f="";l?.formats&&l.formats.forEach((e=>{e&&e.forEach((e=>{var t,n;e?.type===We&&(d=null!==(t=e?.attributes?.style)&&void 0!==t?t:"",f=null!==(n=e?.attributes?.class)&&void 0!==n?n:"")}))}));const[y,h]=(0,s.useState)({style:p(d),class:f.split(" "),fontFamily:"",fontSize:"",fontAppearance:qe[0],isOpen:!1});return(0,s.createElement)(P.BlockControls,null,(0,s.createElement)(P.RichTextToolbarButton,{icon:Ue,title:(0,S.__)("Typography","blockify"),isActive:n,shortcutType:"primary",shortcutCharacter:"f",onClick:()=>h({...y,isOpen:!y.isOpen})}),y?.isOpen&&(0,s.createElement)(_.Toolbar,{className:"blockify-components-toolbar"},(0,s.createElement)(_.Popover,{position:"bottom center",className:"blockify-font-family-control",focusOnMount:"container",onFocusOutside:()=>h({...y,isOpen:!1})},(0,s.createElement)(_.SelectControl,{label:(0,S.__)("Select Font Family","blockify"),value:y?.fontFamily,options:u,onChange:e=>{h({...y,fontFamily:e});const t="has-"+e+"-font-family";y?.class?.includes(t)||y?.class?.push(t),o((0,Le.applyFormat)(l,{type:We,attributes:{style:m(y?.style),class:y?.class?.join(" ")}}))}}),(0,s.createElement)(_.FontSizePicker,{fontSizes:c,fallbackFontSize:20,value:parseInt(y?.fontSize),withSlider:!0,onChange:e=>{h({...y,fontSize:e.toString()}),e&&(y.style["--wp--custom--font-size"]=e.toString()),y?.class?.includes("has-inline-font-size")||y.class.push("has-inline-font-size"),o((0,Le.applyFormat)(l,{type:We,attributes:{style:m(y?.style),class:y?.class?.join(" ")}}))}}),(0,s.createElement)(_.CustomSelectControl,{label:(0,S.__)("Appearance","blockify"),value:qe.find((e=>e.key===y?.fontAppearance?.key)),options:null!=qe?qe:[],onChange:e=>{let{selectedItem:t}=e;t&&h({...y,fontAppearance:t}),t?.style?.fontStyle&&(y.style["font-style"]=t?.style?.fontStyle),t?.style?.fontWeight&&(y.style["font-weight"]=t?.style?.fontWeight?.toString()),o((0,Le.applyFormat)(l,{type:We,attributes:{style:m(y?.style),class:y?.class?.join(" ")}}))}}))))}});var $e=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));const Xe="blockify/inline-svg";(0,Le.registerFormatType)(Xe,{title:(0,S.__)("Inline SVG","blockify"),object:!0,tagName:"img",className:"has-inline-svg",edit:e=>{const{isActive:t,onChange:n,value:l}=e,[r,o]=(0,s.useState)(!1),[a,i]=(0,s.useState)({string:"",width:"1em",widthDesktop:"1em",alt:"",src:""});return(0,s.createElement)(P.BlockControls,null,(0,s.createElement)(P.RichTextToolbarButton,{icon:$e,title:(0,S.__)("Inline SVG","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"v",onClick:()=>o(!r)}),r&&(0,s.createElement)(_.Toolbar,{className:"blockify-components-toolbar"},(0,s.createElement)(_.Popover,{position:"bottom center",className:"blockify-svg-control",focusOnMount:"container",onFocusOutside:()=>o(!1)},(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("SVG String","blockify"),help:(0,S.__)("Paste your SVG string in the field above and then click the button below to insert your image.","blockify"),value:a?.string,placeholder:(0,S.__)("Paste your SVG string here","blockify"),rows:20,onChange:e=>{i({...a,string:e.replace(/'/g,'"')})},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)",width:"300px"}}),(0,s.createElement)("br",null),(0,s.createElement)(_.TextareaControl,{label:(0,S.__)("Alt Text","blockify"),placeholder:(0,S.__)("SVG description","blockify"),value:a?.alt,rows:2,onChange:e=>{i({...a,alt:e})},style:{width:"300px"}}),(0,s.createElement)(_.PanelRow,null,(0,s.createElement)(_.Flex,null,(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Width Mobile","blockify"),value:a?.width,onChange:e=>{i({...a,width:e})}})),(0,s.createElement)(_.FlexItem,null,(0,s.createElement)(_.__experimentalUnitControl,{label:(0,S.__)("Width Desktop","blockify"),value:a?.widthDesktop,onChange:e=>{i({...a,widthDesktop:e})}})))),(0,s.createElement)("br",null),(0,s.createElement)(_.Button,{text:(0,S.__)("Insert SVG","blockify"),onClick:()=>(e=>{let t=`-webkit-mask-image:url(${"data:image/svg+xml;utf8,"+encodeURIComponent(e?.string)})`;e?.width&&(t+=`;--width: ${e?.width}`),e?.widthDesktop&&(t+=`;--width-desktop: ${e?.widthDesktop}`),n((0,Le.insertObject)(l,{type:Xe,attributes:{style:t,alt:e?.alt,role:"presentation",src:""}})),o(!1)})(a)}))))}});var Ye=(0,s.createElement)(C.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(C.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 Ze="blockify/underline",Ke=["none","solid","wavy","dashed","dotted","double","brush","circle"];(0,Le.registerFormatType)(Ze,{title:(0,S.__)("Underline","blockify"),tagName:"u",className:"has-text-underline",attributes:{style:"style",class:"class"},edit:e=>{let{isActive:t,value:n,onChange:l}=e;const[r,o]=(0,s.useState)(""),[a,i]=(0,s.useState)(!1);let c=[],u=[];return n?.formats&&n.formats.forEach((e=>{e&&e.forEach((e=>{e.type===Ze&&(e.attributes?.style&&(c=e.attributes.style.split(";")),e.attributes?.class&&(u=e.attributes.class.split(" ")))}))})),(0,s.createElement)(P.BlockControls,null,(0,s.createElement)(P.RichTextShortcut,{type:"primary",character:"u",onUse:()=>{l((0,Le.toggleFormat)(n,{type:Ze}))}}),(0,s.createElement)(P.RichTextToolbarButton,{icon:Ye,title:(0,S.__)("Underline","blockify"),isActive:t,shortcutType:"primary",shortcutCharacter:"u",onClick:()=>i(!a)}),a&&(0,s.createElement)(_.Toolbar,{className:"blockify-components-toolbar"},(0,s.createElement)(_.Popover,{position:"bottom center",className:"blockify-underline-format",focusOnMount:"container",onFocusOutside:()=>i(!1)},(0,s.createElement)(_.__experimentalText,null,(0,S.__)("Underline style","blockify")),(0,s.createElement)("br",null),(0,s.createElement)(_.SelectControl,{onChange:e=>{var t,r;"none"===e&&l((0,Le.removeFormat)(n,Ze)),o(e);const a=null!==(t=u)&&void 0!==t?t:[];a.forEach(((e,t)=>{e.includes("is-underline-")&&delete i.classes[t]}));const i={classes:[...a,"is-underline-"+e],styles:[...null!==(r=c)&&void 0!==r?r:[],"--wp--custom--underline--style:"+e]};l((0,Le.applyFormat)(n,{type:Ze,attributes:{class:i.classes.join(" "),style:i.styles.join(";")}}))},value:r,options:Ke.map((e=>{return{label:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),value:e};var t}))}))))}})}()}(); \ No newline at end of file diff --git a/readme.txt b/readme.txt index ea5683c..9a741eb 100644 --- a/readme.txt +++ b/readme.txt @@ -362,7 +362,7 @@ License URL: https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL * Add: New settings UI * Remove: Child theme json fix * Fix: Placeholder border -* Fix: Surface before psuedo element pointer events +* Fix: Surface before pseudo element pointer events * Fix: Marquee block gap custom properties = 0.9.18 - 21 November 2022 = @@ -530,7 +530,7 @@ License URL: https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL * Fix: Remove id from nav menu in patterns * Fix: Sub menu padding * Fix: Template part inline css -* Fix: Icon psuedo element bug in Gutenberg 14.3 +* Fix: Icon pseudo element bug in Gutenberg 14.3 * Fix: Horizontal submenu padding on mobile = 0.7.0 - 12 October 2022 = diff --git a/src/block-extensions/animation.tsx b/src/block-extensions/animation.tsx index 6e15a51..acbee18 100644 --- a/src/block-extensions/animation.tsx +++ b/src/block-extensions/animation.tsx @@ -319,7 +319,7 @@ const Animation = ( { attributes, setAttributes }: blockProps ): JSX.Element => min={ 0 } max={ 100 } step={ 0.1 } - shifStep={ 10 } + shiftStep={ 10 } allowReset={ true } /> @@ -338,7 +338,7 @@ const Animation = ( { attributes, setAttributes }: blockProps ): JSX.Element => min={ 0 } max={ 100 } step={ 0.1 } - shifStep={ 10 } + shiftStep={ 10 } allowReset={ true } /> From 28e16ae2ae343da6798a4fa8265931723684c2de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 23 Jun 2023 03:04:22 +0000 Subject: [PATCH 2/3] Add spelling CI workflow --- .github/workflows/spelling.yml | 30 ++++++++++++++++++++++++++++++ .typos.toml | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/spelling.yml create mode 100644 .typos.toml diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 0000000..d3d12d1 --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,30 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow + +name: "Spelling" + +on: + pull_request: null + push: + branches: + - "develop" + - "main" + +permissions: + contents: "read" + +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: true + +jobs: + typos_check: + name: "文A Typos check" + runs-on: "ubuntu-22.04" + timeout-minutes: 1 + steps: + - + name: "Checkout repository" + uses: "actions/checkout@v3" + - + name: "Search for misspellings" + uses: "crate-ci/typos@master" diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..fc55293 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[files] +extend-exclude = ["assets/"] From 1c4e115c1251ce7d447dd7f9054ea71e42269171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 23 Jun 2023 03:05:59 +0000 Subject: [PATCH 3/3] Fix exported files --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 2efeec3..308957d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,6 +4,7 @@ .gitattributes export-ignore .github/ export-ignore .gitignore export-ignore +.typos.toml export-ignore .wordpress-org/ export-ignore README.md export-ignore phpcs.xml export-ignore