Changeset 3364145
- Timestamp:
- 09/18/2025 05:39:02 PM (5 months ago)
- Location:
- vk-blocks
- Files:
-
- 8 edited
- 1 copied
-
tags/1.111.0.1 (copied) (copied from vk-blocks/trunk)
-
tags/1.111.0.1/inc/vk-blocks/build/block-build.asset.php (modified) (1 diff)
-
tags/1.111.0.1/inc/vk-blocks/build/block-build.js (modified) (1 diff)
-
tags/1.111.0.1/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.111.0.1/vk-blocks.php (modified) (1 diff)
-
trunk/inc/vk-blocks/build/block-build.asset.php (modified) (1 diff)
-
trunk/inc/vk-blocks/build/block-build.js (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/vk-blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vk-blocks/tags/1.111.0.1/inc/vk-blocks/build/block-build.asset.php
r3364108 r3364145 1 <?php return array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'regenerator-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render'), 'version' => ' 0576a63c7cde29ece0a4');1 <?php return array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'regenerator-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render'), 'version' => 'c22d7ce6e65f77287220'); -
vk-blocks/tags/1.111.0.1/inc/vk-blocks/build/block-build.js
r3364108 r3364145 1 !function(){var e={413: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},141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(413),i=n(957);o(n(957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new i.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var i=n(413),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),x(this,e)},e}();t.Node=l;var s=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(s);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(s);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=i.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(s);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?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}(l);t.NodeWithChildren=p;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=b;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var v=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=o,a}return o(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,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function m(e){return(0,i.isTag)(e)}function h(e){return e.type===i.ElementType.CDATA}function g(e){return e.type===i.ElementType.Text}function k(e){return e.type===i.ElementType.Comment}function y(e){return e.type===i.ElementType.Directive}function _(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(k(e))n=new u(e.data);else if(m(e)){var r=t?j(e.children):[],o=new v(e.name,a({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=o}else if(h(e)){r=t?j(e.children):[];var i=new b(r);r.forEach((function(e){return e.parent=i})),n=i}else if(_(e)){r=t?j(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!y(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(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 j(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=v,t.isTag=m,t.isCDATA=h,t.isText=g,t.isComment=k,t.isDirective=y,t.isDocument=_,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},270:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},496:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,p=(e=(0,r.escapeSpecialCharacters)(e)).match(l),b=p&&p[1]?p[1].toLowerCase():"";switch(b){case o:var f=d(e);return s.test(e)||null===(t=null==(h=f.querySelector(a))?void 0:h.parentNode)||void 0===t||t.removeChild(h),c.test(e)||null===(n=null==(h=f.querySelector(i))?void 0:h.parentNode)||void 0===n||n.removeChild(h),f.querySelectorAll(o);case a:case i:var m=u(e).querySelectorAll(b);return c.test(e)&&s.test(e)?m[0].parentNode.childNodes:m;default:return v?v(e):(h=u(e,i).querySelector(i)).childNodes;var h}};var r=n(731),o="html",a="head",i="body",l=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,c=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){var b=new p;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),b.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=f.documentElement.querySelector(t);return n&&(n.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var v,m="object"==typeof document&&document.createElement("template");m&&m.content&&(v=function(e){return m.innerHTML=e,m.content.childNodes})},471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(i),n=t?t[1]:void 0;return(0,a.formatDOM)((0,o.default)(e),null,n)};var o=r(n(496)),a=n(731),i=/<(![a-zA-Z\s]+)>/},731:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=a,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=l,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var s,c=[],u=0,d=t.length;u<d;u++){var p=t[u];switch(p.nodeType){case 1:var b=i(p.nodeName);(s=new r.Element(b,a(p.attributes))).children=e("template"===b?p.content.childNodes:p.childNodes,s);break;case 3:s=new r.Text(l(p.nodeValue));break;case 8:s=new r.Comment(p.nodeValue);break;default:continue}var f=c[u-1]||null;f&&(f.next=s),s.parent=n,s.prev=f,s.next=null,c.push(s)}return o&&((s=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=c[0]||null,s.parent=n,c.unshift(s),c[1]&&(c[1].prev=c[0])),c};var r=n(141),o=n(270);function a(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function i(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function l(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&l[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),b=s(p);if(b){var f=(0,r.getPropertyInfo)(b);switch(a.includes(b)&&i.includes(t)&&!c&&(b=s("default"+p)),n[b]=d,f&&f.type){case r.BOOLEAN:n[b]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[b]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(210),o=n(958),a=["checked","value"],i=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||i.returnFirstArg,u=n.library||l,d=u.cloneElement,p=u.createElement,b=u.isValidElement,f=t.length,v=0;v<f;v++){var m=t[v];if(o){var h=n.replace(m,v);if(b(h)){f>1&&(h=d(h,{key:h.key||v})),r.push(c(h,m,v));continue}}if("text"!==m.type){var g=m,k={};s(g)?((0,i.setStyleProp)(g.attribs.style,g.attribs),k=g.attribs):g.attribs&&(k=(0,a.default)(g.attribs,g.name));var y=void 0;switch(m.type){case"script":case"style":m.children[0]&&(k.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":"textarea"===m.name&&m.children[0]?k.defaultValue=m.children[0].data:m.children&&m.children.length&&(y=e(m.children,n));break;default:continue}f>1&&(k.key=v),r.push(c(p(m.name,k,y),m,v))}else{var _=!m.data.trim().length;if(_&&m.parent&&!(0,i.canTextBeChildOfNode)(m.parent))continue;if(n.trim&&_)continue;r.push(c(m.data,m,v))}}return 1===r.length?r[0]:r};var o=n(609),a=r(n(840)),i=n(958),l={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,i.isCustomComponent)(e.name,e.attribs)}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,i.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]};var o=r(n(471));t.htmlToDOM=o.default;var a=r(n(840));t.attributesToProps=a.default;var i=r(n(308));t.domToReact=i.default;var l=n(141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1}},958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!i.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,a.default)(e,l)}catch(e){t.style={}}else t.style={}};var o=n(609),a=r(n(229)),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),l={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},788:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function b(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new v(e),k(),t}}function v(e){this.start=e,this.end={line:d,column:p},this.source=s.source}v.prototype.content=e;var m=[];function h(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;m.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return b(r),e=e.slice(r.length),n}}function k(){g(r)}function y(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return h("End of comment missing");var r=e.slice(2,n-2);return p+=2,b(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function x(){var e=f(),n=g(o);if(n){if(_(),!g(a))return h("property missing ':'");var r=g(i),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(l),s}}return k(),function(){var e,t=[];for(y(t);e=x();)!1!==e&&(t.push(e),y(t));return t}()}},210:function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const a=/[\-\:]([a-z])/g,i=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=n(811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},811:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},452:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),l=new E(r||[]);return o(i,"_invoke",{value:C(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",b="suspendedYield",f="executing",v="completed",m={};function h(){}function g(){}function k(){}var y={};c(y,i,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(N([])));x&&x!==n&&r.call(x,i)&&(y=x);var j=k.prototype=h.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function C(e,n,r){var o=p;return function(a,i){if(o===f)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=P(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?v:b,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=k,o(j,"constructor",{value:k,configurable:!0}),o(k,"constructor",{value:g,configurable:!0}),g.displayName=c(k,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,c(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},w(O.prototype),c(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new O(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(j),c(j,s,"Generator"),c(j,i,(function(){return this})),c(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(133)),o=n(917);function a(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}a.default=a,e.exports=a},917:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,s):e.replace(a,s)).replace(r,l))}},133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),a="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(788))},609:function(e){"use strict";e.exports=window.React},942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{metadata:function(){return bt},name:function(){return ft},settings:function(){return vt}});var t={};n.r(t),n.d(t,{metadata:function(){return wt},name:function(){return Ot},settings:function(){return Ct}});var r={};n.r(r),n.d(r,{metadata:function(){return an},name:function(){return ln},settings:function(){return sn}});var o={};n.r(o),n.d(o,{metadata:function(){return An},name:function(){return zn},settings:function(){return Rn}});var a={};n.r(a),n.d(a,{metadata:function(){return ko},name:function(){return yo},settings:function(){return _o}});var i={};n.r(i),n.d(i,{metadata:function(){return Lo},name:function(){return Uo},settings:function(){return Ho}});var l={};n.r(l),n.d(l,{metadata:function(){return aa},name:function(){return ia},settings:function(){return la}});var s={};n.r(s),n.d(s,{metadata:function(){return ya},name:function(){return _a},settings:function(){return xa}});var c={};n.r(c),n.d(c,{metadata:function(){return Ba},name:function(){return Ia},settings:function(){return Ma}});var u={};n.r(u),n.d(u,{metadata:function(){return Ka},name:function(){return ei},settings:function(){return ti}});var d={};n.r(d),n.d(d,{metadata:function(){return Gi},name:function(){return Wi},settings:function(){return Zi}});var p={};n.r(p),n.d(p,{metadata:function(){return jl},name:function(){return wl},settings:function(){return Ol}});var b={};n.r(b),n.d(b,{metadata:function(){return Dl},name:function(){return Al},settings:function(){return zl}});var f={};n.r(f),n.d(f,{metadata:function(){return Zl},name:function(){return Yl},settings:function(){return Xl}});var v={};n.r(v),n.d(v,{metadata:function(){return ys},name:function(){return _s},settings:function(){return xs}});var m={};n.r(m),n.d(m,{metadata:function(){return qs},name:function(){return $s},settings:function(){return Js}});var h={};n.r(h),n.d(h,{metadata:function(){return Pd},name:function(){return Td},settings:function(){return Sd}});var g={};n.r(g),n.d(g,{metadata:function(){return Np},name:function(){return Bp},settings:function(){return Ip}});var k={};n.r(k),n.d(k,{metadata:function(){return jb},name:function(){return wb},settings:function(){return Ob}});var y={};n.r(y),n.d(y,{metadata:function(){return Wb},name:function(){return Zb},settings:function(){return Yb}});var _={};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function j(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}function w(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(_),n.d(_,{metadata:function(){return nf},name:function(){return rf},settings:function(){return of}});var O=window.wp.coreData,C=(window.wp.notices,window.wp.blocks);const P=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,T=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(P);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},S=e=>"*"===e||"x"===e||"X"===e,E=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},N=(e,t)=>{if(S(e)||S(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(E(e),E(t));return n>r?1:n<r?-1:0},B=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=N(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},I=(e,t)=>{const n=T(e),r=T(t),o=n.pop(),a=r.pop(),i=B(n,r);return 0!==i?i:o&&a?B(o.split("."),a.split(".")):o||a?o?-1:1:0};var M,D,A,z=window.wp.i18n,R=(0,z.__)("Lorem ipsum dolor","vk-blocks"),V=(0,z.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","vk-blocks"),F=(0,z.__)("Lorem ipsum","vk-blocks"),L='<i class="fas fa-user"></i>',U="https://demo.dev3.biz/lightning-pro/wp-content/uploads/2018/02/agent-18762_1920-200x300.jpg",H="#8ed1fc",G="https://example.com",W=('{"alt":"Example Image","sizes":{"full":{"url":"'.concat(U,'"}}}'),(0,z.__)("Theoretical Physicist","vk-blocks")),Z=(0,z.__)("Profile","vk-blocks"),Y=(0,z.__)("Albert Einstein","vk-blocks"),X=(0,z.__)("14 March 1879 – 18 April 1955","vk-blocks"),Q=n(609);function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(null,arguments)}var $=function(e){return Q.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),M||(M=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),D||(D=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),A||(A=Q.createElement("path",{fillRule:"evenodd",d:"M24 8.5a8.5 8.5 0 0 1-12.12 7.7l.18-.2a1.61 1.61 0 0 0-1.17-2.72H8.62c.06-.67-.3-1.43-1.04-1.69A8.5 8.5 0 1 1 24 8.5m-7.86.7H14.9L14 6.27V4h3v2.28l-.86 2.91zm.86 1.29V13h-3v-2.51z",clipRule:"evenodd"})))};function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t){if(e){if("string"==typeof e)return J(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}function ee(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ne=window.wp.blockEditor,re=window.ReactJSXRuntime,oe=["title"];function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var le=[{attributes:{style:{type:"string",default:"info"},content:{type:"string",source:"html",selector:"p"}},migrate:function(e,t){return e.title,[te(e,oe),[(0,C.createBlock)("core/paragraph",{content:e.content})].concat(ee(t))]},save:function(e){var t=e.attributes,n=t.style,r=t.content;return(0,re.jsx)("div",ie(ie({},ne.useBlockProps.save({className:"alert alert-".concat(n)})),{},{children:(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:r})}))}}],se=le,ce=window.wp.components;function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||K(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var de=window.wp.element,pe=window.wp.apiFetch,be=n.n(pe),fe=window.wp.data,ve=window.wp.primitives,me=(0,re.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(ve.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),he=(0,re.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(ve.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),ge=(0,re.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(ve.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),ke=n(442),ye=ke.default||ke;function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j(r.key),r)}}function je(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function we(e,t){if(t&&("object"==x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ce(e,t)}function Pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}function Te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Te=function(){return!!e})()}var Se=function(e){function t(e){var n,r,o,a;return _e(this,t),r=this,a=[e],o=Oe(o=t),(n=we(r,Te()?Reflect.construct(o,a||[],Oe(r).constructor):o.apply(r,a))).state={open:!1},n.buttonRef=(0,de.createRef)(),n}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this,t="apc-icon-btn components-button is-secondary is-small";return(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:"components-base-control",children:(0,re.jsxs)("div",{className:"vk-blocks-button-icon-control__wrapper components-base-control__field",ref:this.buttonRef,children:[(0,re.jsx)(ce.Button,{isTertiary:!0,className:"".concat(t," mb-1"),onClick:function(){e.setState({open:!e.state.open})},ref:this.buttonRef,children:this.props.label}),this.state.open&&this.buttonRef.current&&(0,re.jsx)(ce.Popover,{anchor:this.buttonRef.current,children:this.props.renderComp,onFocusOutside:function(n){n.relatedTarget&&!n.relatedTarget.closest(".".concat(t))&&n.relatedTarget!==e.buttonRef.current&&e.setState({open:!1})},focusOnMount:"container",className:"vk-blocks-advanced-popover-control"})]})})})}}])}(de.Component),Ee="vk-blocks/block-editor",Ne="vk-blocks/v1/update_vk_blocks_options",Be=window.regeneratorRuntime,Ie=n.n(Be);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=function(e){be()({path:Ne,method:"POST",data:e})},ze={options:{}},Re={setOptions:function(e){return{type:"SET_OPTIONS",options:e}},fetchFromAPI:function(e){return{type:"FETCH_FROM_API",path:e}}},Ve=(0,fe.createReduxStore)(Ee,{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze,t=arguments.length>1?arguments[1]:void 0;return"SET_OPTIONS"===t.type?De(De({},e),{},{options:t.options}):e},actions:Re,selectors:{getOptions:function(e){return e.options}},controls:{FETCH_FROM_API:function(e){return be()({path:e.path})}},resolvers:{getOptions:function(){return Ie().mark((function e(){var t;return Ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Re.fetchFromAPI(Ne);case 2:return t=e.sent,e.abrupt("return",Re.setOptions(t));case 4:case"end":return e.stop()}}),e)}))()}}});function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,fe.register)(Ve);var Ue,He,Ge,We=['<i class="fa-solid fa-arrow-right"></i>','<i class="fa-solid fa-arrow-down"></i>','<i class="fa-solid fa-arrow-left"></i>','<i class="fa-solid fa-circle-right"></i>','<i class="fa-solid fa-circle-down"></i>','<i class="fa-solid fa-circle-left"></i>','<i class="fa-regular fa-circle-right"></i>','<i class="fa-regular fa-circle-down"></i>','<i class="fa-regular fa-circle-left"></i>','<i class="fa-solid fa-square-up-right"></i>','<i class="fa-solid fa-up-right-from-square"></i>','<i class="fa-solid fa-download"></i>','<i class="fa-solid fa-triangle-exclamation"></i>','<i class="fa-solid fa-circle-exclamation"></i>','<i class="fa-solid fa-exclamation"></i>','<i class="fa-solid fa-question"></i>','<i class="fa-solid fa-circle-question"></i>','<i class="fa-solid fa-circle-info"></i>','<i class="fa-solid fa-info"></i>','<i class="fa-solid fa-check"></i>','<i class="fa-solid fa-square-check"></i>','<i class="fa-solid fa-circle-check"></i>','<i class="fa-solid fa-phone"></i>','<i class="fa-solid fa-square-phone"></i>','<i class="fa-solid fa-mobile-screen-button"></i>','<i class="fa-regular fa-envelope"></i>','<i class="fa-solid fa-user"></i>','<i class="fa-solid fa-users"></i>','<i class="fa-regular fa-file-lines"></i>','<i class="fa-solid fa-file-lines"></i>','<i class="fa-solid fa-file"></i>','<i class="fa-solid fa-file-pdf"></i>','<i class="fa-solid fa-building"></i>','<i class="fa-brands fa-square-x-twitter"></i>','<i class="fa-brands fa-square-facebook"></i>','<i class="fa-brands fa-line"></i>'],Ze=function(e){var t,n,r,o,a,i=e.attributeName,l=e.attributes,s=e.setAttributes,c=e.modeClass,u=void 0!==c&&c,d=vkFontAwesome.iconsUrl,p=vkFontAwesome.iconFamily,b=vkFontAwesome.versions,f=vkFontAwesome.currentVersion,v=ue((0,de.useState)(!1),2),m=v[0],h=v[1],g=ue((0,de.useState)(),2),k=g[0],y=g[1],_=ue((0,de.useState)(!1),2),x=_[0],j=_[1],C=function(e){var t=e.match(/class="([^"]+)"/);return t?t[1]:e},P=function(e){var t=u?C(e):e;s(w({},i,t))},T=(0,fe.useSelect)((function(e){return{canUserEdit:(0,e(O.store).canUser)("update","settings"),optionObj:(0,e(Ee).getOptions)()}}),[]),S=T.canUserEdit,E=T.optionObj,N=(0,fe.useDispatch)(Ee).setOptions;(0,de.useEffect)((function(){y(f)}),[]);var B=l[i]&&!(null!=E&&null!==(t=E.vkBlocksOption)&&void 0!==t&&t.icon_custom_lists.some((function(e){return e===l[i]}))),I=0!==(null==E||null===(n=E.vkBlocksOption)||void 0===n?void 0:n.icon_custom_lists.length),M=x&&1!==(null==E||null===(r=E.vkBlocksOption)||void 0===r?void 0:r.icon_custom_lists.length),D=(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ce.BaseControl,{className:"components-base-control__label",id:"vk_fa_icon_list",label:(0,z.__)("Icon","vk-blocks")+" ( "+p+" ) ",children:(0,re.jsxs)("div",{className:"vk_icon_list_wrap",children:[I&&(0,re.jsxs)("div",{className:"vk_icon_list_my_list",children:[(0,re.jsx)("p",{className:"vk_icon_list_title",children:(0,z.__)("Custom list","vk-blocks")}),(0,re.jsx)("div",{className:"vk_icon_list",children:(null==E||null===(o=E.vkBlocksOption)||void 0===o?void 0:o.icon_custom_lists)&&Object.keys(null==E||null===(a=E.vkBlocksOption)||void 0===a?void 0:a.icon_custom_lists).map((function(e,t){var n=E.vkBlocksOption.icon_custom_lists[e];return(0,re.jsxs)("div",{className:"vk_icon_area",children:[(0,re.jsxs)("div",{className:"vk_icon_button_icon_area",children:[(0,re.jsx)(ce.Button,{className:"vk_icon_button",variant:"secondary",onClick:function(){return P(n)},children:n&&ye("".concat(n))}),x&&(0,re.jsx)(ce.Button,{className:"vk_icon_button_closeSmall",icon:me,onClick:function(){return function(e){var t=E.vkBlocksOption.icon_custom_lists.indexOf(e);E.vkBlocksOption.icon_custom_lists.splice(t,1);var n=Le(Le({},E),{},{vkBlocksOption:Le({},E.vkBlocksOption)});N(n),Ae(n),0===n.vkBlocksOption.icon_custom_lists.length&&j(!1)}(n)},isDestructive:!0})]}),M&&(0,re.jsxs)("div",{className:"vk_icon_button_button_area",children:[(0,re.jsx)(ce.Button,{className:"vk_icon_button_chevronLeft",icon:he,disabled:0===t,onClick:function(){var e=ee(E.vkBlocksOption.icon_custom_lists);e[t-1]=E.vkBlocksOption.icon_custom_lists[t],e[t]=E.vkBlocksOption.icon_custom_lists[t-1];var n=Le(Le({},E),{},{vkBlocksOption:Le(Le({},E.vkBlocksOption),{},{icon_custom_lists:ee(e)})});N(n),Ae(n)}}),(0,re.jsx)(ce.Button,{className:"vk_icon_button_chevronRight",icon:ge,disabled:t===E.vkBlocksOption.icon_custom_lists.length-1,onClick:function(){var e=ee(E.vkBlocksOption.icon_custom_lists);e[t+1]=E.vkBlocksOption.icon_custom_lists[t],e[t]=E.vkBlocksOption.icon_custom_lists[t+1];var n=Le(Le({},E),{},{vkBlocksOption:Le(Le({},E.vkBlocksOption),{},{icon_custom_lists:ee(e)})});N(n),Ae(n)}})]})]},t)}))})]}),(0,re.jsxs)("div",{className:"vk_icon_list_preset",children:[I&&(0,re.jsx)("p",{className:"vk_icon_list_title",children:(0,z.__)("Preset","vk-blocks")}),(0,re.jsx)("div",{className:"vk_icon_list",children:Object.keys(We).map((function(e,t){var n=We[e];return(0,re.jsx)("div",{className:"vk_icon_area",children:(0,re.jsx)("div",{className:"vk_icon_button_icon_area",children:(0,re.jsx)(ce.Button,{className:"vk_icon_button",variant:"secondary",onClick:function(){return P(n)},children:n&&ye("".concat(n))})})},t)}))})]})]})}),(0,re.jsx)("hr",{}),(0,re.jsx)(ce.ExternalLink,{href:d,className:"components-button is-primary mt-1",children:(0,z.__)("Font Awesome icon list","vk-blocks")}),(0,re.jsxs)("p",{className:"mt-1",children:[(0,z.__)("If you want to use an icon other than the ones listed above, you can use any of the icons from Font Awesome's icon list Please select a tag and enter it.","vk-blocks"),(0,re.jsx)("br",{}),(0,z.__)("Ex)","vk-blocks"),'<i class="fa-solid fa-circle-right"></i>']}),S&&(0,re.jsxs)(re.Fragment,{children:[(B||I)&&(0,re.jsx)("hr",{}),(0,re.jsx)(ce.Button,{className:"vk_icon_add_my_list_button",variant:"primary",disabled:!B,onClick:function(){return function(e){var t;null==E||null===(t=E.vkBlocksOption.icon_custom_lists)||void 0===t||t.unshift(e);var n=Le(Le({},E),{},{vkBlocksOption:Le({},E.vkBlocksOption)});N(n),Ae(n)}(l[i])},children:(0,z.__)("Add selected icon to custom list","vk-blocks")}),I&&(0,re.jsx)(ce.ToggleControl,{className:"mt-1",label:(0,z.__)("Delete/Sort mode","vk-blocks"),checked:x,onChange:function(){return j(!x)}}),(0,re.jsx)("hr",{}),(0,re.jsx)(ce.SelectControl,{label:"Font Awesome Version",value:k,options:b,onChange:function(e){return y(e)},className:"mt-1"}),k!==f&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("p",{className:"mt-1",children:(0,z.__)("When you click save button, the window will be reloaded and this setting will be applied.","vk-blocks")}),(0,re.jsx)(ce.Button,{isPrimary:!0,disabled:m,onClick:function(){h(!0),be()({path:"/vk-blocks/v1/options/vk_font_awesome_version/",method:"POST",data:k}).then((function(){h(!1),window.location.reload()})).catch((function(){h(!1)}))},children:(0,z.__)("Save","vk-blocks")})]})]})]});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ce.TextControl,{value:l[i],onChange:function(e){u?function(e){var t=C(e);s(w({},i,t))}(e):s(w({},i,e))},placeholder:'<i class="fa-solid fa-circle-right"></i>',className:"mb-0"}),(0,re.jsx)(Se,{label:(0,z.__)("Select Icon","vk-blocks"),renderComp:D,setAttributes:s})]})};function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$e.apply(null,arguments)}var Je,Ke,et,tt=function(e){return Q.createElement("svg",$e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),Ue||(Ue=Q.createElement("path",{d:"m11.525 15-3.266.008a.11.11 0 0 0-.103.076l-.25.721c-.022.076.03.152.103.152h1.27c.095 0 .147.122.08.19l-2.025 2.18h.007l1.042 3.397c.023.076-.029.145-.102.145H7.26a.104.104 0 0 1-.103-.076l-.521-1.74a.107.107 0 0 0-.206-.008l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084h3.288a.11.11 0 0 0 .103-.144L8.56 18.48c-.015-.038 0-.084.029-.114l3.016-3.176c.066-.068.015-.19-.08-.19"})),He||(He=Q.createElement("path",{fill:"#D8141C",d:"m8.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H1.108c-.074 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})),Ge||(Ge=Q.createElement("path",{d:"M23.35 5.25a8.6 8.6 0 0 0-1.84-2.76A8.4 8.4 0 0 0 18.75.65 8.5 8.5 0 0 0 15.5 0c-2.25 0-4.42.9-6.01 2.49A8.52 8.52 0 0 0 7 8.5c0 1.04.19 2.05.55 3h.47c1.1 0 1.67.95 1.6 1.78h2.27c1.42 0 2.14 1.7 1.17 2.72l-.46.48c.92.34 1.9.51 2.91.51a8.56 8.56 0 0 0 6.01-2.49 8.4 8.4 0 0 0 1.84-2.76 8.46 8.46 0 0 0 0-6.5zm-8.73 7.48-3.56-3.56 1.34-1.34 2.1 2.1 4.06-4.87 1.45 1.21-5.38 6.46z"})))};function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nt.apply(null,arguments)}var rt,ot,at,it=function(e){return Q.createElement("svg",nt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),Je||(Je=Q.createElement("path",{d:"m11.89 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L7.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L7 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084h3.288c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"})),Ke||(Ke=Q.createElement("path",{fill:"#D8141C",d:"m8.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H1.108c-.074 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})),et||(et=Q.createElement("path",{d:"M15.5 0A8.5 8.5 0 0 0 7 8.5c0 1.03.18 2.04.54 3h.48c1.1 0 1.67.95 1.6 1.78h2.27c1.42 0 2.14 1.7 1.16 2.72l-.46.49a8.5 8.5 0 0 0 11.4-7.99C24 3.81 20.2 0 15.5 0m-.93 4.09c.15-.14.34-.23.55-.23h.39c.43.02.76.37.74.8-.01.41-.34.73-.74.74h-.39a.77.77 0 0 1-.54-1.32zm2.48 8.27h-3.09a.77.77 0 0 1 0-1.54h.77V8.5h-.77a.77.77 0 1 1 .01-1.54h1.55c.43 0 .77.35.77.77v3.09h.77a.77.77 0 0 1 0 1.54z"})))};function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lt.apply(null,arguments)}var st,ct,ut,dt=function(e){return Q.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),rt||(rt=Q.createElement("path",{d:"m10.89 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"})),ot||(ot=Q.createElement("path",{fill:"#D8141C",d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})),at||(at=Q.createElement("path",{d:"M23.28 14.183 16.004.644a1.2 1.2 0 0 0-.445-.47A1.16 1.16 0 0 0 14.942 0q-.331 0-.616.173a1.2 1.2 0 0 0-.445.471L8 11.584c.749.251 1.12 1.02 1.06 1.7l2.271-.006c1.416 0 2.14 1.701 1.17 2.722h9.719q.322 0 .601-.164.28-.162.44-.442.351-.606.02-1.211Zm-7.125-2.789v1.827a.3.3 0 0 1-.09.226.3.3 0 0 1-.213.092h-1.82a.3.3 0 0 1-.213-.092.3.3 0 0 1-.09-.226v-1.827q0-.135.09-.226a.3.3 0 0 1 .213-.091h1.82a.3.3 0 0 1 .213.091.3.3 0 0 1 .09.226m.151-6.182-.17 4.413a.21.21 0 0 1-.1.159.4.4 0 0 1-.222.062H14.06a.4.4 0 0 1-.228-.062q-.094-.063-.094-.159l-.162-4.394q0-.135.095-.202.123-.106.228-.106h2.084q.105 0 .228.106a.21.21 0 0 1 .095.183",clipRule:"evenodd"})))},pt=[{name:"alert-success",title:(0,z.__)("Alert Success","vk-blocks"),scope:["inserter","transform"],icon:(0,re.jsx)(tt,{}),attributes:{style:"success",icon:'<i class="fa-solid fa-circle-check"></i>',iconText:(0,z.__)("Success","vk-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z.__)("This is a success alert.","vk-blocks")}}]},{name:"alert-info",title:(0,z.__)("Alert Info","vk-blocks"),scope:["inserter","transform"],icon:(0,re.jsx)(it,{}),attributes:{style:"info",icon:'<i class="fa-solid fa-circle-info"></i>',iconText:(0,z.__)("Information","vk-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z.__)("This is a information alert.","vk-blocks")}}]},{name:"alert-warning",title:(0,z.__)("Alert Warning","vk-blocks"),scope:["inserter","transform"],icon:(0,re.jsx)(dt,{}),attributes:{style:"warning",icon:'<i class="fa-solid fa-triangle-exclamation"></i>',iconText:(0,z.__)("Warning","vk-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z.__)("This is a warning alert.","vk-blocks")}}]},{name:"alert-danger",title:(0,z.__)("Alert Danger","vk-blocks"),scope:["inserter","transform"],icon:(0,re.jsx)($,{}),attributes:{style:"danger",icon:'<i class="fa-solid fa-circle-exclamation"></i>',iconText:(0,z.__)("Danger","vk-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z.__)("This is a danger alert.","vk-blocks")}}]}],bt={apiVersion:3,name:"vk-blocks/alert",category:"vk-blocks-cat",title:"Alert",description:"A colored box with four statuses, including annotations and alerts.",textdomain:"vk-blocks",attributes:{style:{type:"string",default:"info"},icon:{type:"string",default:""},iconText:{type:"string",default:""},content:{type:"string",source:"html",selector:"p"},mobileIconPosition:{type:"string",default:"left"}},supports:{className:!0}},ft=bt.name,vt={icon:(0,re.jsx)($,{}),example:{attributes:{style:"info",content:V}},save:function(e){var t=e.attributes,n=t.style,r=t.icon,o=t.iconText,a=t.mobileIconPosition,i=ne.useBlockProps.save({className:"vk_alert alert alert-".concat(n," ").concat(r?"has-alert-icon":""," ").concat("top"===a?"mobile-icon-top":"")}),l="";return""!==r&&void 0!==r&&(l=(0,re.jsxs)("div",{className:"vk_alert_icon",children:[(0,re.jsx)("div",{className:"vk_alert_icon_icon",children:ye(r)}),(0,re.jsx)("div",{className:"vk_alert_icon_text",children:(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o})})]})),(0,re.jsxs)("div",qe(qe({},i),{},{children:[l,(0,re.jsx)("div",{className:"vk_alert_content",children:(0,re.jsx)(ne.InnerBlocks.Content,{})})]}))},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.style,o=t.icon,a=t.iconText,i=t.mobileIconPosition,l=vkFontAwesome.iconFamily,s=(0,ne.useBlockProps)({className:"vk_alert alert alert-".concat(r," ").concat(o?"has-alert-icon":""," ").concat("top"===i?"mobile-icon-top":"")}),c="";return""!==o&&void 0!==o&&(c=(0,re.jsxs)("div",{className:"vk_alert_icon",children:[(0,re.jsx)("div",{className:"vk_alert_icon_icon",children:ye(o)}),(0,re.jsx)("div",{className:"vk_alert_icon_text",children:(0,re.jsx)(ne.RichText,{tagName:"span",placeholder:(0,z.__)("Icon Text","vk-blocks"),value:a,onChange:function(e){return n({iconText:e})}})})]})),(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Style Settings","vk-blocks"),children:[(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Alert Style","vk-blocks"),id:"vk_alert-style",children:(0,re.jsx)(ce.SelectControl,{value:r,onChange:function(e){return n({style:e})},options:[{label:(0,z.__)("Success","vk-blocks"),value:"success"},{label:(0,z.__)("Info","vk-blocks"),value:"info"},{label:(0,z.__)("Warning","vk-blocks"),value:"warning"},{label:(0,z.__)("Danger","vk-blocks"),value:"danger"}]})}),(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Icon","vk-blocks")+" ( "+l+" )",id:"vk_alert-icon",children:(0,re.jsx)(Ze,Xe({attributeName:"icon"},e))}),o&&(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Mobile Icon Position","vk-blocks"),id:"vk_alert-mobile-icon-position",children:(0,re.jsx)(ce.SelectControl,{value:i,onChange:function(e){return n({mobileIconPosition:e})},options:[{label:(0,z.__)("Left (Default)","vk-blocks"),value:"left"},{label:(0,z.__)("Top","vk-blocks"),value:"top"}]})})]})}),(0,re.jsxs)("div",Xe(Xe({},s),{},{children:[c,(0,re.jsx)("div",{className:"vk_alert_content",children:(0,re.jsx)(ne.InnerBlocks,{})})]}))]})},deprecated:se,variations:pt};function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(null,arguments)}var ht=function(e){return Q.createElement("svg",mt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),st||(st=Q.createElement("path",{fillRule:"evenodd",d:"M4 6.5C4 7.33 4.67 8 5.5 8 6.32 8 7 7.33 7 6.5 7 5.68 6.32 5 5.5 5 4.67 5 4 5.68 4 6.5M20 6H9v1h11zM7 11.5l-1.967.008h-.005c-.364 0-.71.126-.987.343A1.504 1.504 0 0 1 5.5 10 1.51 1.51 0 0 1 7 11.499Zm4.109 5.5.946-.997.005-.003H20v1zM20 11H9v1h11z",clipRule:"evenodd"})),ct||(ct=Q.createElement("path",{d:"m10.89 14.778-3.267.007a.11.11 0 0 0-.102.076l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.144-.103.144h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.106-.168-.106-.205-.007l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19"})),ut||(ut=Q.createElement("path",{fill:"#D8141C",d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})))},gt=window.wp.serverSideRender,kt=n.n(gt);function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xt=/^(h[2-6]).*/,jt=/[^a-zA-Z0-9-_ ]/g,wt={apiVersion:3,name:"vk-blocks/ancestor-page-list",category:"vk-blocks-cat",title:"Page list from ancestor",attributes:{ancestorTitleDisplay:{type:"boolean",default:!0},ancestorTitleTagName:{type:"string",default:"h4"},ancestorTitleClassName:{type:"string",default:null},ancestorTitleLink:{type:"boolean",default:!1},displayHasChildOnly:{type:"boolean",default:!1},hiddenGrandChild:{type:"boolean",default:!1}},description:"Display Page list from ancestor page",textdomain:"vk-blocks",supports:{className:!0}},Ot=wt.name,Ct={icon:(0,re.jsx)(ht,{}),example:{attributes:{hiddenGrandChild:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.name,o=t.ancestorTitleDisplay,a=t.ancestorTitleTagName,i=t.ancestorTitleClassName,l=t.ancestorTitleLink,s=t.displayHasChildOnly,c=t.hiddenGrandChild;(0,de.useEffect)((function(){n({name:r})}),[r]);var u=(0,ne.useBlockProps)(),d=function(e){var t=null==e?void 0:e.match(xt);return t?t[1]:"h4"},p=function(e){return(null==e?void 0:e.replace(jt,""))||""};return(0,de.useEffect)((function(){var e=d(a);e!==a&&n({ancestorTitleTagName:e});var t=p(i);t!==i&&n({ancestorTitleClassName:t})}),[a,i]),(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Ancestor Page List Setting","vk-blocks"),children:[(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Display Ancestor Page Title","vk-blocks"),checked:o,onChange:function(e){return n({ancestorTitleDisplay:e})}}),(0,re.jsx)(ce.SelectControl,{label:(0,z.__)("Archive title tag","vk-blocks"),value:a,onChange:function(e){n({ancestorTitleTagName:d(e)})},options:[{value:"h2",label:(0,z.__)("h2","vk-blocks")},{value:"h3",label:(0,z.__)("h3","vk-blocks")},{value:"h4",label:(0,z.__)("h4","vk-blocks")},{value:"h5",label:(0,z.__)("h5","vk-blocks")},{value:"h6",label:(0,z.__)("h6","vk-blocks")}]}),(0,re.jsx)(ce.TextControl,{label:(0,z.__)("Ancestor page title class name","vk-blocks"),value:i||"",className:"mt-0 mb-3",onChange:function(e){n({ancestorTitleClassName:p(e)})}}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Add link to ancestor page title","vk-blocks"),checked:l,onChange:function(e){return n({ancestorTitleLink:e})}}),(0,re.jsx)("hr",{}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("If there is no child page, the block itself is not displayed","vk-blocks"),checked:s,onChange:function(e){return n({displayHasChildOnly:e})}}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Don't display inactive grand child pages","vk-blocks"),checked:c,onChange:function(e){return n({hiddenGrandChild:e})}})]})}),(0,re.jsx)("div",_t(_t({},u),{},{children:(0,re.jsx)(kt(),{block:"vk-blocks/ancestor-page-list",attributes:t})}))]})}};function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var St=function(e){var t=!1;return e&&null!==e.match(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)&&(t=!0),t};function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At,zt,Rt,Vt,Ft=Dt(Dt({},{content:{source:"html",selector:"p"},balloonName:{source:"html",selector:"figcaption"},balloonType:{type:"string",default:"type-serif"},balloonBgColor:{type:"string"},balloonAlign:{type:"string",default:"position-left"},IconImage:{type:"string",default:null}}),{},{balloonImageType:{type:"string",default:"normal"}}),Lt=Dt(Dt({},Ft),{},{balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"}}),Ut=Dt(Dt({},Lt),{},{balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"},balloonBorder:{type:"boolean",default:!1},balloonImageBorder:{type:"boolean",default:!1},balloonBorderWidth:{type:"string",default:"thin"},balloonBorderColor:{type:"string",default:null},balloonType:{type:"string",default:"type-speech"}}),Ht=Dt(Dt({},Ut),{},{balloonBorderColor:{type:"string",default:"#cccccc"},balloonBgColor:{type:"string",default:"#f5f5f5"}}),Gt=[{attributes:Dt(Dt({},Ht),{},{balloonFullWidth:{type:"boolean",default:!1},balloonBorderColor:{type:"string"},balloonBgColor:{type:"string"}}),save:function(e){var t=e.attributes,n=t.balloonName,r=t.balloonType,o=t.balloonBorder,a=t.balloonFullWidth,i=t.balloonImageBorder,l=t.balloonBorderColor,s=t.balloonBgColor,c=t.balloonAlign,u=t.IconImage,d=t.balloonImageType,p=t.balloonAnimation,b="",f="",v="",m={},h={},g="",k="",y={},_={},x={};x&&(h=x,m=x),"background"in m&&delete m.background,!0===o?(b+="vk_balloon_content-border-true",!0===i?f+="vk_balloon_icon_image-border-true":f="",void 0!==l&&(f+=" has-text-color",b+=" has-text-color",St(l)||(f+=" has-".concat(l,"-color"),b+=" has-".concat(l,"-color"))),St(l)&&!St(s)?(h={borderColor:"".concat(l)},m={borderColor:"".concat(l)}):!St(l)&&St(s)?h={background:"".concat(s)}:St(l)&&St(s)&&(h={borderColor:"".concat(l),background:"".concat(s)},m={borderColor:"".concat(l)}),"position-left"===c?("type-speech"===r?(void 0!==s&&(g+=" has-text-color",St(s)||(g+=" has-".concat(s,"-color"))),void 0!==l&&(k+=" has-text-color",St(l)||(k+=" has-".concat(l,"-color")))):"type-think"===r&&(void 0!==l&&(g+=" has-text-color",St(l)||(g+=" has-".concat(l,"-color"))),void 0!==l&&(k+=" has-text-color",St(l)||(k+=" has-".concat(l,"-color")))),St(l)&&(_={borderColor:"transparent transparent transparent ".concat(s)}),St(s)&&(y={borderColor:"transparent ".concat(s," transparent transparent")})):"position-right"===c&&("type-speech"===r?(void 0!==s&&(g+=" has-text-color",St(s)||(g+=" has-".concat(s,"-color"))),void 0!==l&&(k+=" has-text-color",St(l)||(k+=" has-".concat(l,"-color")))):"type-think"===r&&void 0!==l&&(g+=" has-text-color",k+=" has-text-color",St(l)||(g+=" has-".concat(l,"-color"),k+=" has-".concat(l,"-color"))),St(l)&&(_={borderColor:"transparent ".concat(l," transparent transparent")}),St(s)&&(y={borderColor:"transparent transparent transparent ".concat(s)}))):void 0!==s&&(f="",void 0!==s&&St(s)&&(h={background:"".concat(s)}),"position-left"===c?("type-speech"===r&&void 0!==s&&(g+=" has-text-color",St(s)||(g+=" has-".concat(s,"-color"))),St(l)&&(_={borderColor:"transparent transparent transparent ".concat(s)}),St(s)&&(y={borderColor:"transparent ".concat(s," transparent transparent")})):"position-right"===c&&("type-speech"===r&&void 0!==s&&(g+=" has-text-color",St(s)||(g+=" has-".concat(s,"-color"))),St(s)&&(y={borderColor:"transparent transparent transparent ".concat(s)}))),void 0!==s&&(v+=" has-background-color",St(s)||(v+=" has-".concat(s,"-background-color"))),a&&(b+=" vk_balloon_content_fullwidth");var j=ne.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(c," vk_balloon-").concat(r," vk_balloon-animation-").concat(p)});return(0,re.jsxs)("div",It(It({},j),{},{children:[(0,re.jsx)("div",{className:"vk_balloon_icon",children:u?(0,re.jsxs)("figure",{children:[(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(d," ").concat(f),style:m,src:u,alt:""}),(0,re.jsx)(ne.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})]}):""}),(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(v," ").concat(b),style:h,children:[(0,re.jsx)("span",{className:"vk_balloon_content_before ".concat(g),style:y}),(0,re.jsx)("span",{className:"vk_balloon_content_after ".concat(k),style:_}),(0,re.jsx)(ne.InnerBlocks.Content,{})]})})]}))},migrate:function(e){return Dt(Dt({},e),{},{balloonIconDisplay:!1})}},{attributes:Ht,save:function(e){var t=e.attributes,n=t.balloonName,r=t.balloonType,o=t.balloonBorder,a=t.balloonImageBorder,i=t.balloonBorderColor,l=t.balloonBgColor,s=t.balloonAlign,c=t.IconImage,u=t.balloonImageType,d=t.balloonAnimation,p="",b="",f="",v={},m="",h="",g={},k={};!0===o?(p+="vk_balloon_content-border-true",!0===a?b+="vk_balloon_icon_image-border-true":b="",void 0!==i&&(b+=" has-text-color",p+=" has-text-color",St(i)||(b+=" has-".concat(i,"-color"),p+=" has-".concat(i,"-color"))),St(i)&&!St(l)?v={borderColor:"".concat(i)}:!St(i)&&St(l)?v={background:"".concat(l)}:St(i)&&St(l)&&(v={borderColor:"".concat(i),background:"".concat(l)}),"position-left"===s?("type-speech"===r?(void 0!==l&&(m+=" has-text-color",St(l)||(m+=" has-".concat(l,"-color"))),void 0!==i&&(h+=" has-text-color",St(i)||(h+=" has-".concat(i,"-color")))):"type-think"===r&&(void 0!==i&&(m+=" has-text-color",St(i)||(m+=" has-".concat(i,"-color"))),void 0!==i&&(h+=" has-text-color",St(i)||(h+=" has-".concat(i,"-color")))),St(i)&&(k={borderColor:"transparent transparent transparent ".concat(l)}),St(l)&&(g={borderColor:"transparent ".concat(l," transparent transparent")})):"position-right"===s&&("type-speech"===r?(void 0!==l&&(m+=" has-text-color",St(l)||(m+=" has-".concat(l,"-color"))),void 0!==i&&(h+=" has-text-color",St(i)||(h+=" has-".concat(i,"-color")))):"type-think"===r&&void 0!==i&&(m+=" has-text-color",h+=" has-text-color",St(i)||(m+=" has-".concat(i,"-color"),h+=" has-".concat(i,"-color"))),St(i)&&(k={borderColor:"transparent ".concat(i," transparent transparent")}),St(l)&&(g={borderColor:"transparent transparent transparent ".concat(l)}))):void 0!==l&&(b="",void 0!==l&&St(l)&&(v={background:"".concat(l)}),"position-left"===s?("type-speech"===r&&void 0!==l&&(m+=" has-text-color",St(l)||(m+=" has-".concat(l,"-color"))),St(i)&&(k={borderColor:"transparent transparent transparent ".concat(l)}),St(l)&&(g={borderColor:"transparent ".concat(l," transparent transparent")})):"position-right"===s&&("type-speech"===r&&void 0!==l&&(m+=" has-text-color",St(l)||(m+=" has-".concat(l,"-color"))),St(l)&&(g={borderColor:"transparent transparent transparent ".concat(l)}))),void 0!==l&&(f+=" has-background-color",St(l)||(f+=" has-".concat(l,"-background-color")));var y=ne.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(s," vk_balloon-").concat(r," vk_balloon-animation-").concat(d)});return(0,re.jsxs)("div",Nt(Nt({},y),{},{children:[(0,re.jsx)("div",{className:"vk_balloon_icon",children:c?(0,re.jsxs)("figure",{children:[(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(u," ").concat(b),style:v,src:c,alt:""}),(0,re.jsx)(ne.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})]}):""}),(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(f," ").concat(p),style:v,children:[(0,re.jsx)("span",{className:"vk_balloon_content_before ".concat(m),style:g}),(0,re.jsx)("span",{className:"vk_balloon_content_after ".concat(h),style:k}),(0,re.jsx)(ne.InnerBlocks.Content,{})]})})]}))}},{attributes:Ht,save:function(e){var t,n,r,o,a,i=e.attributes,l=i.balloonName,s=i.balloonType,c=i.balloonBorder,u=i.balloonImageBorder,d=i.balloonBorderColor,p=i.balloonBgColor,b=i.balloonAlign,f=i.IconImage,v=i.balloonImageType,m=i.balloonAnimation;return!0===c?(t="vk_balloon_content-border-true",n=!0===u?"vk_balloon_icon_image-border-true":"",r=d,o=p):(t="",n="",r=p,o=p),a="position-right"===b?"transparent transparent transparent ".concat(o):"transparent ".concat(o," transparent transparent"),(0,re.jsxs)("div",Tt(Tt({},ne.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(b," vk_balloon-").concat(s," vk_balloon-animation-").concat(m)})),{},{children:[(0,re.jsx)("div",{className:"vk_balloon_icon",children:f?(0,re.jsxs)("figure",{children:[(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(v," ").concat(n),style:{borderColor:r},src:f,alt:""}),(0,re.jsx)(ne.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:l})]}):""}),(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(t),style:{backgroundColor:o,borderColor:r},children:[(0,re.jsx)("span",{className:"vk_balloon_content_before",style:{borderColor:a}}),(0,re.jsx)("span",{className:"vk_balloon_content_after",style:{borderColor:a}}),(0,re.jsx)(ne.InnerBlocks.Content,{})]})})]}))}}];function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(null,arguments)}var Zt=function(e){return Q.createElement("svg",Wt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),At||(At=Q.createElement("path",{fillRule:"evenodd",d:"M18 1.2H8.71c-.99 0-1.8.8-1.8 1.8v.27c0 .96-.62 1.8-1.53 2.1l-.93.3 1.15.48c.8.34 1.31 1.12 1.31 1.98 0 .92.75 1.67 1.67 1.67H18c1 0 1.8-.8 1.8-1.8V3c0-1-.8-1.8-1.8-1.8M5.13 7.25c.35.15.58.5.58.88A2.87 2.87 0 0 0 8.58 11H18a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3H8.71a3 3 0 0 0-3 3v.27a1 1 0 0 1-.7.95L1 5.5z",clipRule:"evenodd"})),zt||(zt=Q.createElement("path",{fillRule:"evenodd",d:"M9.89 6.1H9V4.9h.89zm2.67 0h-1.78V4.9h1.78zm2.66 0h-1.78V4.9h1.78zm1.78 0h-.89V4.9H17zm4.21 10.6c0 .3.16.58.41.75L24 19l-2.23 1.09a1 1 0 0 0-.56.9 3 3 0 0 1-3 3.01H14a3 3 0 0 1-3-3v-3.89l1.06-1.1c.43-.46.53-1.05.38-1.57.45-.28.99-.44 1.56-.44h4.52a2.7 2.7 0 0 1 2.7 2.7zm-3 6.1H14c-1 0-1.8-.8-1.8-1.8v-4c0-1 .8-1.8 1.8-1.8h4.52c.82 0 1.5.67 1.5 1.5 0 .7.35 1.37.95 1.75l.6.4-.32.16A2.2 2.2 0 0 0 20 21c0 1-.8 1.81-1.8 1.81z",clipRule:"evenodd"})),Rt||(Rt=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),Vt||(Vt=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))},Yt=function(e){var t;if(e){var n=(0,fe.select)("core/block-editor").getSettings().colors,r=(0,ne.getColorObjectByAttributeValues)(n,e);t=void 0!==r.color?r.color:e}return t},Xt=function(e){var t=e.schema,n=e.setAttributes,r=e.attributes,o=e.enableAlpha,a=void 0===o||o,i=Yt(r[t]);return(0,re.jsx)(ne.ColorPalette,{value:i,enableAlpha:a,onChange:function(e){var r=(0,fe.select)("core/block-editor").getSettings().colors,o=(0,ne.getColorObjectByColorValue)(r,e);n(w({},t,void 0!==o?o.slug:e))}})},Qt=window.lodash,qt=function(e){return(0,Qt.kebabCase)(e)};function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt="undefined"!=typeof img_path&&img_path.full_path?img_path.full_path:"";function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nn,rn,on,an={apiVersion:3,name:"vk-blocks/balloon",title:"Ballon",description:"These speech balloons are perfect for recreating conversations.",category:"vk-blocks-cat",attributes:{content:{source:"html",selector:"p"},balloonName:{source:"html",selector:"figcaption"},balloonType:{type:"string",default:"type-speech"},balloonFullWidth:{type:"boolean",default:!1},balloonIconDisplay:{type:"boolean",default:!0},balloonBorder:{type:"boolean",default:!1},balloonImageBorder:{type:"boolean",default:!1},balloonBorderWidth:{type:"string",default:"thin"},balloonBorderColor:{type:"string"},balloonBgColor:{type:"string"},balloonAlign:{type:"string",default:"position-left"},IconImage:{type:"string",default:null},balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"}},textdomain:"vk-blocks",supports:{html:!1,className:!0}},ln=an.name,sn={icon:(0,re.jsx)(Zt,{}),example:{attributes:{balloonName:F,balloonType:"type-speech",balloonBgColor:"#f5f5f5",balloonAlign:"position-left",IconImage:U,balloonImageType:"normal"},innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]},edit:function(e){var t,n,r=e.attributes,o=e.setAttributes,a=r.content,i=r.balloonName,l=r.balloonType,s=r.balloonBorder,c=r.balloonFullWidth,u=r.balloonIconDisplay,d=r.balloonImageBorder,p=r.balloonBorderColor,b=r.balloonBgColor,f=r.balloonAlign,v=r.IconImage,m=r.balloonImageType,h=r.balloonAnimation,g=vk_blocks_params.balloon_meta_lists;g&&(t=Object.keys(g).map((function(e){var t=g[e],n="";return t.src&&(n=(0,re.jsx)("div",{children:(0,re.jsx)(ce.Button,{onClick:function(){o({IconImage:t.src}),o({balloonName:t.name})},className:"button button-large components-button",children:(0,re.jsx)("img",{className:"icon-image",src:t.src,alt:t.name})})},e)),n}))),"type-serif"===l&&o({balloonType:"type-speech"}),null==m&&o({balloonImageType:"normal"}),null==h&&o({balloonAnimation:"none"}),null==s&&o({balloonBorder:!1}),null==d&&o({balloonImageBorder:!1});var k="",y="",_="",x={},j={},w="",O="",C={},P={},T={};T&&(j=T,x=T),"background"in x&&delete x.background,!0===s?(n=(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsxs)("p",{className:"mb-1 block-prop-title",children:[(0,z.__)("Border","vk-blocks")," "]}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Add border to balloon","vk-blocks"),checked:s,onChange:function(e){return o({balloonBorder:e})}}),(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Image Border","vk-blocks")}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Add border to image","vk-blocks"),className:"mb-1",checked:d,onChange:function(e){return o({balloonImageBorder:e})}}),(0,re.jsxs)("p",{children:[(0,z.__)("* You can change border width on Setting > VK Blocks","vk-blocks")," "]}),(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Border color of speech balloon","vk-blocks")}),(0,re.jsx)(Xt,Jt({enableAlpha:!1,schema:"balloonBorderColor"},e))]}),k+="vk_balloon_content-border-true",!0===d?y+="vk_balloon_icon_image-border-true":y="",void 0!==p&&(y+=" has-text-color",k+=" has-text-color",St(p)||(y+=" has-".concat(qt(p),"-color"),k+=" has-".concat(qt(p),"-color"))),St(p)&&!St(b)?(j={borderColor:"".concat(p)},x={borderColor:"".concat(p)}):!St(p)&&St(b)?j={background:"".concat(b)}:St(p)&&St(b)&&(j={borderColor:"".concat(p),background:"".concat(b)},x={borderColor:"".concat(p)}),"position-left"===f?("type-speech"===l?(void 0!==b&&(w+=" has-text-color",St(b)||(w+=" has-".concat(qt(b),"-color"))),void 0!==p&&(O+=" has-text-color",St(p)||(O+=" has-".concat(qt(p),"-color")))):"type-think"===l&&(void 0!==p&&(w+=" has-text-color",St(p)||(w+=" has-".concat(qt(p),"-color"))),void 0!==p&&(O+=" has-text-color",St(p)||(O+=" has-".concat(qt(p),"-color")))),St(p)&&(P={borderColor:"transparent transparent transparent ".concat(b)}),St(b)&&(C={borderColor:"transparent ".concat(b," transparent transparent")})):"position-right"===f&&("type-speech"===l?(void 0!==b&&(w+=" has-text-color",St(b)||(w+=" has-".concat(qt(b),"-color"))),void 0!==p&&(O+=" has-text-color",St(p)||(O+=" has-".concat(qt(p),"-color")))):"type-think"===l&&void 0!==p&&(w+=" has-text-color",O+=" has-text-color",St(p)||(w+=" has-".concat(qt(p),"-color"),O+=" has-".concat(qt(p),"-color"))),St(p)&&(P={borderColor:"transparent ".concat(p," transparent transparent")}),St(b)&&(C={borderColor:"transparent transparent transparent ".concat(b)}))):(n=(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Border","vk-blocks")}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Add border to balloon","vk-blocks"),checked:s,onChange:function(e){return o({balloonBorder:e})}})]}),y="",void 0!==b&&St(b)&&(j={background:"".concat(b)}),"position-left"===f?("type-speech"===l&&void 0!==b&&(w+=" has-text-color",St(b)||(w+=" has-".concat(qt(b),"-color"))),St(p)&&(P={borderColor:"transparent transparent transparent ".concat(b)}),St(b)&&(C={borderColor:"transparent ".concat(b," transparent transparent")})):"position-right"===f&&("type-speech"===l&&void 0!==b&&(w+=" has-text-color",St(b)||(w+=" has-".concat(qt(b),"-color"))),St(b)&&(C={borderColor:"transparent transparent transparent ".concat(b)}))),void 0!==b&&(_+=" has-background-color",St(b)||(_+=" has-".concat(qt(b),"-background-color"))),c&&(k+=" vk_balloon_content_fullwidth");var S=(0,ne.useBlockProps)({className:"vk_balloon vk_balloon-".concat(f," vk_balloon-").concat(l," vk_balloon-animation-").concat(h)});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(ne.InspectorControls,{children:[(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Balloon setting","vk-blocks"),children:[(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Position","vk-blocks")}),(0,re.jsxs)("p",{className:"mb-1",children:[(0,z.__)("Please specify the layout of the balloon.","vk-blocks")," "]}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:f,onChange:function(e){return o({balloonAlign:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"position-left",label:(0,z.__)("Left","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"position-right",label:(0,z.__)("Right","vk-blocks")})]}),(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Type","vk-blocks")}),(0,re.jsxs)("p",{className:"mb-1",children:[(0,z.__)("Please select the type of balloon.","vk-blocks")," "]}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:l,onChange:function(e){return o({balloonType:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"type-speech",label:(0,z.__)("Speech","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"type-think",label:(0,z.__)("Thinking","vk-blocks")})]}),(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Image Style","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:m,onChange:function(e){return o({balloonImageType:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"normal",label:(0,z.__)("Normal","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"rounded",label:(0,z.__)("Rounded","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"circle",label:(0,z.__)("Circle","vk-blocks")})]}),(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Width","vk-blocks")}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("100%","vk-blocks"),checked:c,onChange:function(e){return o({balloonFullWidth:e})}})]}),(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:"icon display"}),(0,re.jsx)(ce.ToggleControl,{label:"display",checked:u,onChange:function(e){return o({balloonIconDisplay:e})}})]}),n,(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Background color of speech balloon","vk-blocks")}),(0,re.jsx)(Xt,Jt({enableAlpha:!1,schema:"balloonBgColor"},e))]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Default Icon Setting","vk-blocks"),children:[(0,re.jsx)("div",{className:"icon-image-list mb-2",children:t}),(0,re.jsx)("div",{children:(0,z.__)("You can register default icons from Settings > VK Blocks in Admin.","vk-blocks")})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Animation setting","vk-blocks"),children:[(0,re.jsxs)("p",{className:"mb-1",children:[(0,z.__)("Please select the type of animation.","vk-blocks")," "]}),(0,re.jsx)(ce.SelectControl,{value:h,onChange:function(e){return o({balloonAnimation:e})},options:[{value:"none",label:(0,z.__)("None","vk-blocks")},{value:"trembling",label:(0,z.__)("Trembling","vk-blocks")},{value:"trembling-x",label:(0,z.__)("Trembling X","vk-blocks")},{value:"pounding",label:(0,z.__)("Pounding","vk-blocks")},{value:"shaking",label:(0,z.__)("Shaking","vk-blocks")}]})]})]}),(0,re.jsxs)("div",Jt(Jt({},S),{},{children:[u||"undefined"===u&&v?(0,re.jsxs)("div",{className:"vk_balloon_icon",children:[(0,re.jsx)(ne.MediaUpload,{onSelect:function(e){return o({IconImage:e.sizes.full.url})},type:"image",className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(m," ").concat(y),value:v,render:function(e){var t=e.open;return(0,re.jsx)(ce.Button,{onClick:t,className:"image-button",children:(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(m," ").concat(y),style:x,src:v||Kt,alt:(0,z.__)("Upload image","vk-blocks")})})}}),(0,re.jsx)(ne.RichText,{tagName:"figcaption",className:"vk_balloon_icon_name",onChange:function(e){return o({balloonName:e})},value:i,placeholder:(0,z.__)("Icon Name","vk-blocks")})]}):"",(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(_," ").concat(k),style:j,children:[(0,re.jsx)("span",{className:"vk_balloon_content_before ".concat(w),style:C}),(0,re.jsx)("span",{className:"vk_balloon_content_after ".concat(O),style:P}),(0,re.jsx)(ne.InnerBlocks,{templateLock:!1,template:[["core/paragraph",{content:a}]]})]})})]}))]})},save:function(e){var t=e.attributes,n=t.balloonName,r=t.balloonType,o=t.balloonBorder,a=t.balloonFullWidth,i=t.balloonIconDisplay,l=t.balloonImageBorder,s=t.balloonBorderColor,c=t.balloonBgColor,u=t.balloonAlign,d=t.IconImage,p=t.balloonImageType,b=t.balloonAnimation,f="",v="",m="",h={},g={},k="",y="",_={},x={},j={};j&&(g=j,h=j),"background"in h&&delete h.background;var w="undefined"!=typeof img_path&&img_path.full_path?img_path.full_path:"";!0===o?(f+="vk_balloon_content-border-true",!0===l?v+="vk_balloon_icon_image-border-true":v="",void 0!==s&&(v+=" has-text-color",f+=" has-text-color",St(s)||(v+=" has-".concat(qt(s),"-color"),f+=" has-".concat(qt(s),"-color"))),St(s)&&!St(c)?(g={borderColor:"".concat(s)},h={borderColor:"".concat(s)}):!St(s)&&St(c)?g={background:"".concat(c)}:St(s)&&St(c)&&(g={borderColor:"".concat(s),background:"".concat(c)},h={borderColor:"".concat(s)}),"position-left"===u?("type-speech"===r?(void 0!==c&&(k+=" has-text-color",St(c)||(k+=" has-".concat(qt(c),"-color"))),void 0!==s&&(y+=" has-text-color",St(s)||(y+=" has-".concat(qt(s),"-color")))):"type-think"===r&&(void 0!==s&&(k+=" has-text-color",St(s)||(k+=" has-".concat(qt(s),"-color"))),void 0!==s&&(y+=" has-text-color",St(s)||(y+=" has-".concat(qt(s),"-color")))),St(s)&&(x={borderColor:"transparent transparent transparent ".concat(c)}),St(c)&&(_={borderColor:"transparent ".concat(c," transparent transparent")})):"position-right"===u&&("type-speech"===r?(void 0!==c&&(k+=" has-text-color",St(c)||(k+=" has-".concat(qt(c),"-color"))),void 0!==s&&(y+=" has-text-color",St(s)||(y+=" has-".concat(qt(s),"-color")))):"type-think"===r&&void 0!==s&&(k+=" has-text-color",y+=" has-text-color",St(s)||(k+=" has-".concat(qt(s),"-color"),y+=" has-".concat(qt(s),"-color"))),St(s)&&(x={borderColor:"transparent ".concat(s," transparent transparent")}),St(c)&&(_={borderColor:"transparent transparent transparent ".concat(c)}))):void 0!==c&&(v="",void 0!==c&&St(c)&&(g={background:"".concat(c)}),"position-left"===u?("type-speech"===r&&void 0!==c&&(k+=" has-text-color",St(c)||(k+=" has-".concat(qt(c),"-color"))),St(s)&&(x={borderColor:"transparent transparent transparent ".concat(c)}),St(c)&&(_={borderColor:"transparent ".concat(c," transparent transparent")})):"position-right"===u&&("type-speech"===r&&void 0!==c&&(k+=" has-text-color",St(c)||(k+=" has-".concat(qt(c),"-color"))),St(c)&&(_={borderColor:"transparent transparent transparent ".concat(c)}))),void 0!==c&&(m+=" has-background-color",St(c)||(m+=" has-".concat(qt(c),"-background-color"))),a&&(f+=" vk_balloon_content_fullwidth");var O=ne.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(u," vk_balloon-").concat(r," vk_balloon-animation-").concat(b)});return(0,re.jsxs)("div",tn(tn({},O),{},{children:[(0,re.jsx)("div",{className:"vk_balloon_icon",children:i||"undefined"===i&&d?(0,re.jsxs)("figure",{children:[(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(p," ").concat(v),style:h,src:d||w,alt:""}),(0,re.jsx)(ne.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})]}):""}),(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(m," ").concat(f),style:g,children:[(0,re.jsx)("span",{className:"vk_balloon_content_before ".concat(k),style:_}),(0,re.jsx)("span",{className:"vk_balloon_content_after ".concat(y),style:x}),(0,re.jsx)(ne.InnerBlocks.Content,{})]})})]}))},deprecated:Gt};function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(null,arguments)}var un=function(e){return Q.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),nn||(nn=Q.createElement("path",{fillRule:"evenodd",d:"M1 1a1 1 0 0 0-1 1v11.28h1.5V7.5h21v13H10.2l.46 1.5H23a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-9V2a1 1 0 0 0-1-1zm9 3.75H4v-1.5h6z",clipRule:"evenodd"})),rn||(rn=Q.createElement("path",{d:"M.87 22 0 19.47V21c0 .5.38.93.87 1m9.76-4.5H20v-1h-8.42zm1.82-3H20v-1h-8.29c.38.22.64.59.74 1m7.55-3v-1H4v1zm-9.11 3.28H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),on||(on=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))},dn=n(942),pn=n.n(dn);function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tn,Sn,En,Nn={heading:{type:"string",source:"html",selector:"h4"},color:{type:"string",default:"red"},faIcon:{type:"string",default:""},bgColor:{type:"string",default:"transparent"},borderColor:{type:"string"}},Bn=Pn(Pn({},Nn),{},{color:{type:"string"}}),In=Pn(Pn({},Bn),{},{bodyAlign:{type:"string"}}),Mn=[{attributes:In,save:function(e){var t=e.attributes,n=t.heading,r=t.headingTag,o=t.faIcon,a=t.color,i=t.bgColor,l=t.borderColor,s=t.bodyAlign,c=(0,re.jsx)(ne.InnerBlocks.Content,{}),u=(0,re.jsx)(ne.RichText.Content,{tagName:r,className:"vk_borderBox_title",value:n}),d=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(qt(a)),!!a),"vk_borderBox-background-".concat(qt(i)),!!i),"has-text-color",!!l),"has-".concat(qt(l),"-color"),!!l&&!St(l))),p={};void 0!==l&&St(l)&&(p={color:"".concat(l)});var b=ne.useBlockProps.save({className:d,style:p});-1===b.className.indexOf("is-style-")&&(b.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var f=!1;(-1<b.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<b.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<b.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(f=!0);var v,m=pn()("vk_borderBox_title_container",w(w({},"has-background",f&&!!l),"has-".concat(qt(l),"-background-color"),f&&!!l&&!St(l))),h={};if(f&&void 0!==l&&St(l)&&(h={backgroundColor:"".concat(l)}),-1<b.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!a){var g="",k=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!l),"has-".concat(qt(l),"-background-color"),!!l&&!St(l)));void 0!==l&&St(l)&&(g="background-color: ".concat(l,";")),v='<div class="'.concat(pn()(k),'" style="').concat(g,'">').concat(o,"</div>")}else v=-1===o.indexOf('<i class="')?'<i class="'.concat(o,'"></i>'):o;var y=pn()("vk_borderBox_body",w({},"vk_borderBox_body-align-".concat(s),!!s));return(0,re.jsxs)("div",On(On({},b),{},{children:[(0,re.jsxs)("div",{className:m,style:h,children:[ye(v),u]}),(0,re.jsx)("div",{className:y,children:c})]}))}},{attributes:In,save:function(e){var t=e.attributes,n=t.heading,r=t.faIcon,o=t.color,a=t.bgColor,i=t.borderColor,l=t.bodyAlign,s=(0,re.jsx)(ne.InnerBlocks.Content,{}),c=(0,re.jsx)(ne.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:n,"ß":!0}),u=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(o),!!o),"vk_borderBox-background-".concat(a),!!a),"has-text-color",!!i),"has-".concat(i,"-color"),!!i&&!St(i))),d={};void 0!==i&&St(i)&&(d={color:"".concat(i)});var p=ne.useBlockProps.save({className:u,style:d});-1===p.className.indexOf("is-style-")&&(p.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var b=!1;(-1<p.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<p.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<p.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(b=!0);var f,v=pn()("vk_borderBox_title_container",w(w({},"has-background",b&&!!i),"has-".concat(i,"-background-color"),b&&!!i&&!St(i))),m={};if(b&&void 0!==i&&St(i)&&(m={backgroundColor:"".concat(i)}),-1<p.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!o){var h="",g=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!i),"has-".concat(i,"-background-color"),!!i&&!St(i)));void 0!==i&&St(i)&&(h="background-color: ".concat(i,";")),f='<div class="'.concat(pn()(g),'" style="').concat(h,'">').concat(r,"</div>")}else f=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r;var k=pn()("vk_borderBox_body",w({},"vk_borderBox_body-align-".concat(l),!!l));return(0,re.jsxs)("div",jn(jn({},p),{},{children:[(0,re.jsxs)("div",{className:v,style:m,children:[ye(f),c]}),(0,re.jsx)("div",{className:k,children:s})]}))}},{attributes:Bn,save:function(e){var t=e.attributes,n=t.heading,r=t.faIcon,o=t.color,a=t.bgColor,i=t.borderColor,l=(0,re.jsx)(ne.InnerBlocks.Content,{}),s=(0,re.jsx)(ne.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:n,"ß":!0}),c=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(o),!!o),"vk_borderBox-background-".concat(a),!!a),"has-text-color",!!i),"has-".concat(i,"-color"),!!i&&!St(i))),u={};void 0!==i&&St(i)&&(u={color:"".concat(i)});var d=ne.useBlockProps.save({className:c,style:u});-1===d.className.indexOf("is-style-")&&(d.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var p=!1;(-1<d.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<d.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<d.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(p=!0);var b,f=pn()("vk_borderBox_title_container",w(w({},"has-background",p&&!!i),"has-".concat(i,"-background-color"),p&&!!i&&!St(i))),v={};if(p&&void 0!==i&&St(i)&&(v={backgroundColor:"".concat(i)}),-1<d.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!o){var m="",h=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!i),"has-".concat(i,"-background-color"),!!i&&!St(i)));void 0!==i&&St(i)&&(m="background-color: ".concat(i,";")),b='<div class="'.concat(pn()(h),'" style="').concat(m,'">').concat(r,"</div>")}else b=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r;return(0,re.jsxs)("div",yn(yn({},d),{},{children:[(0,re.jsxs)("div",{className:f,style:v,children:[ye(b),s]}),(0,re.jsx)("div",{className:"vk_borderBox_body",children:l})]}))}},{attributes:Nn,save:function(e){var t,n=e.attributes,r=n.heading,o=n.color,a=n.faIcon,i=n.bgColor,l=(0,re.jsx)(ne.InnerBlocks.Content,{}),s=(0,re.jsx)(ne.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:r}),c=ne.useBlockProps.save({className:"vk_borderBox vk_borderBox-color-".concat(o," vk_borderBox-background-").concat(i)});return-1===c.className.indexOf("is-style-")&&(c.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab"),t=-1===a.indexOf('<i class="')?'<i class="'.concat(a,'"></i>'):a,(0,re.jsxs)("div",gn(gn({},c),{},{children:[(0,re.jsxs)("div",{className:"vk_borderBox_title_container",children:[ye(t),s]}),(0,re.jsx)("div",{className:"vk_borderBox_body",children:l})]}))}}],Dn=Mn,An={apiVersion:3,name:"vk-blocks/border-box",title:"Border Box",category:"vk-blocks-cat",attributes:{heading:{type:"string",source:"html",selector:"h3,h4,h5,h6,p",__experimentalRole:"content"},headingTag:{type:"string",default:"h4"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"h3,h4,h5,h6"},includeInToc:{type:"boolean",default:!1},color:{type:"string"},borderColor:{type:"string"},bgColor:{type:"string",default:"transparent"},faIcon:{type:"string",default:""},bodyAlign:{type:"string"}},description:"This is a border box where you can place headings to attract attention.",textdomain:"vk-blocks",supports:{html:!1,className:!0}},zn=An.name,Rn={icon:(0,re.jsx)(un,{}),category:"vk-blocks-cat",example:{attributes:{heading:R,faIcon:L},innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]},styles:[{name:"vk_borderBox-style-solid-kado-tit-tab",label:(0,z.__)("Solid Angle Tab","vk-blocks"),isDefault:!0},{name:"vk_borderBox-style-solid-round-tit-tab",label:(0,z.__)("Solid Round Tab","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-banner",label:(0,z.__)("Solid Angle Banner","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-onborder",label:(0,z.__)("Solid Angle Onborder","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-inner",label:(0,z.__)("Solid Angle Inner","vk-blocks")},{name:"vk_borderBox-style-solid-kado-iconFeature",label:(0,z.__)("Solid Angle iconFeature","vk-blocks")}],edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.heading,o=t.headingTag,a=t.anchor,i=t.includeInToc,l=t.faIcon,s=t.color,c=t.bgColor,u=t.borderColor,d=t.bodyAlign,p=vkFontAwesome.iconFamily,b=(0,de.useRef)(!1);(0,de.useEffect)((function(){b.current||(r&&""!==r.trim()||n({includeInToc:!0}),b.current=!0)}),[i,n,r]);var f=(0,re.jsx)(ne.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]}),v=(0,re.jsx)(ne.RichText,{tagName:o,identifier:"heading",className:"vk_borderBox_title",onChange:function(e){return n({heading:e})},value:r,placeholder:(0,z.__)("Please enter a title.","vk-blocks"),id:"p"===o?void 0:a}),m=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(qt(s)),!!s),"vk_borderBox-background-".concat(qt(c)),!!c),"has-text-color",!!u),"has-".concat(qt(u),"-color"),!!u&&!St(u))),h={};void 0!==u&&St(u)&&(h={color:"".concat(u)});var g=(0,ne.useBlockProps)({className:pn()(m),style:h});-1===g.className.indexOf("is-style-")&&(g.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var k={red:"#dc3545",orange:"#ffa536",blue:"#4267b2",green:"#28a745",black:"#222222"};if(s)n({borderColor:k[s]}),n({color:""});else if(t.className&&t.className.match(/vk_borderBox-color-\w*/)){var y=t.className.split(" ").filter((function(e){return!e.match(/vk_borderBox-color-\w*/)}));n({className:pn()(y)}),n({borderColor:k.red})}var _=!1;(-1<g.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<g.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<g.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(_=!0);var x,j=pn()("vk_borderBox_title_container",w(w({},"has-background",_&&!!u),"has-".concat(qt(u),"-background-color"),_&&!!u&&!St(u))),O={};if(_&&void 0!==u&&St(u)&&(O={backgroundColor:"".concat(u)}),-1<g.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!s){var C="",P=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!u),"has-".concat(qt(u),"-background-color"),!!u&&!St(u)));void 0!==u&&St(u)&&(C="background-color: ".concat(u,";")),x='<div class="'.concat(pn()(P),'" style="').concat(C,'">').concat(l,"</div>")}else x=-1===l.indexOf('<i class="')?'<i class="'.concat(l,'"></i>'):l;var T=pn()("vk_borderBox_body",w({},"vk_borderBox_body-align-".concat(d),!!d));return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.BlockControls,{group:"block",children:(0,re.jsx)(ne.BlockAlignmentControl,{value:d,onChange:function(e){return n({bodyAlign:e})},controls:["left","center","right"]})}),(0,re.jsxs)(ne.InspectorControls,{children:[(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Margin","vk-blocks"),initialOpen:!1,children:(0,re.jsx)(ce.BaseControl,{children:(0,re.jsx)("p",{children:(0,z.__)("The margin-top of the first element and the margin-bottom of the last element in the border block will be automatically set to 0.If you want to add margins at the beginning and end, use a spacer block to specify height instead of margin.","vk-blocks")})})}),(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("HTML element of the title","vk-blocks"),initialOpen:!1,children:(0,re.jsx)(ce.BaseControl,{children:(0,re.jsx)(ce.SelectControl,{label:(0,z.__)("HTML element of the title","vk-blocks"),value:o,options:[{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"p",value:"p"}],onChange:function(e){var t={headingTag:e};"p"===e&&a&&(t.anchor=""),n(t)}})})}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Color","vk-blocks"),children:[(0,re.jsx)(ce.BaseControl,{id:"border-color",label:(0,z.__)("Border Color","vk-blocks"),children:(0,re.jsx)(Xt,fn({schema:"borderColor"},e))}),(0,re.jsx)(ce.BaseControl,{id:"background-color",label:(0,z.__)("Background Color","vk-blocks"),children:(0,re.jsx)(ce.SelectControl,{value:c,onChange:function(e){return n({bgColor:e})},options:[{value:"transparent",label:(0,z.__)("Transparent","vk-blocks")},{value:"white",label:(0,z.__)("White","vk-blocks")}]})})]}),(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Icon","vk-blocks"),children:(0,re.jsx)(ce.BaseControl,{id:"dot-fa",label:(0,z.__)("Icon","vk-blocks")+" ( "+p+" )",children:(0,re.jsx)(Ze,{attributeName:"faIcon",attributes:t,setAttributes:n})})})]}),(0,re.jsxs)("div",fn(fn({},g),{},{children:[(0,re.jsxs)("div",{className:pn()(j),style:O,children:[ye(x),v]}),(0,re.jsx)("div",{className:T,children:f})]}))]})},save:function(e){var t=e.attributes,n=t.heading,r=t.headingTag,o=t.anchor,a=t.faIcon,i=t.color,l=t.bgColor,s=t.borderColor,c=t.bodyAlign,u=(0,re.jsx)(ne.InnerBlocks.Content,{}),d=(0,re.jsx)(ne.RichText.Content,{tagName:r,className:"vk_borderBox_title",value:n,id:"p"===r?void 0:o}),p=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(qt(i)),!!i),"vk_borderBox-background-".concat(qt(l)),!!l),"has-text-color",!!s),"has-".concat(qt(s),"-color"),!!s&&!St(s))),b={};void 0!==s&&St(s)&&(b={color:"".concat(s)});var f=ne.useBlockProps.save({className:p,style:b});-1===f.className.indexOf("is-style-")&&(f.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var v=!1;(-1<f.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<f.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<f.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(v=!0);var m,h=pn()("vk_borderBox_title_container",w(w({},"has-background",v&&!!s),"has-".concat(qt(s),"-background-color"),v&&!!s&&!St(s))),g={};if(v&&void 0!==s&&St(s)&&(g={backgroundColor:"".concat(s)}),-1<f.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!i){var k="",y=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!s),"has-".concat(qt(s),"-background-color"),!!s&&!St(s)));void 0!==s&&St(s)&&(k="background-color: ".concat(s,";")),m='<div class="'.concat(pn()(y),'" style="').concat(k,'">').concat(a,"</div>")}else m=-1===a.indexOf('<i class="')?'<i class="'.concat(a,'"></i>'):a;var _=pn()("vk_borderBox_body",w({},"vk_borderBox_body-align-".concat(c),!!c));return(0,re.jsxs)("div",mn(mn({},f),{},{children:[(0,re.jsxs)("div",{className:h,style:g,children:[ye(m),d]}),(0,re.jsx)("div",{className:_,children:u})]}))},deprecated:Dn};function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vn.apply(null,arguments)}var Fn=function(e){return Q.createElement("svg",Vn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Tn||(Tn=Q.createElement("path",{d:"M5 8h14c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-6.94l-1.43 1.5H19a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v4.78h.27l.24-.69c.17-.47.54-.83.99-1V8.5c0-.28.22-.5.5-.5"})),Sn||(Sn=Q.createElement("path",{d:"M8.5 12.5a1.6 1.6 0 0 0-.5-.68v-.32h8v1zm2.39 2.28H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),En||(En=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))};function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Un=function(){return!!e})()}var Hn=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Un()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbRelAttribute,c=this.props.lbFontAwesomeIconBefore,u=this.props.lbFontAwesomeIconAfter,d=this.props.lbIconSizeBefore,p=this.props.lbIconSizeAfter,b=this.props.lbRichtext,f=this.props.lbsubCaption,v=this.props.inlineStyle,m=this.props.borderRadius,h="",g="",k="";if(h="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?h+=" btn has-background has-vk-color-".concat(n,"-background-color"):(h+=" btn has-background",St(t)||(h+=" has-".concat(qt(t),"-background-color"))),"custom"===n&&void 0!==e&&(h+=" btn has-text-color",St(e)||(h+=" has-".concat(qt(e),"-color")))):"1"===r?"custom"!==n&&void 0===t?h+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(h+=" btn has-text-color is-style-outline",St(t)||(h+=" has-".concat(qt(t),"-color"))):"2"===r&&("custom"!==n&&void 0===t?h+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(h+=" has-text-color vk_button_link-type-text",St(t)||(h+=" has-".concat(qt(t),"-color")))),h="".concat(h," btn-").concat(a),"block"===o&&(h="".concat(h," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),u&&!u.match(/<i/)&&(u='<i class="'.concat(u,'"></i>')),c){var y=c.match(/class="(.*?)"/)[1];y+=" vk_button_link_before";var _=d?" style='font-size: ".concat(d,"'"):"";g='<i class="'.concat(y,'"').concat(_,"></i>")}if(u){var x=u.match(/class="(.*?)"/)[1];x+=" vk_button_link_after";var j=p?" style='font-size: ".concat(p,"'"):"";k='<i class="'.concat(x,'"').concat(j,"></i>")}var O=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},v);m&&(O.borderRadius=m);var C="noopener";return s&&(C=s.includes("noopener")?s:"".concat(s," noopener")),(0,re.jsxs)("a",{href:i,style:O,className:h,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:C,children:[(0,re.jsxs)("div",{className:"vk_button_link_caption",children:[ye(g),b,ye(k)]}),f&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:f})]})}}])}(de.Component),Gn=function(e){return!!(0,fe.select)("core/block-editor").getBlockParentsByBlockName(e,["core/block"]).length},Wn=(0,re.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(ve.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),Zn=(0,re.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(ve.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),Yn=(0,re.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(ve.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})}),Xn=(0,re.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(ve.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),Qn=(0,re.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",children:(0,re.jsx)(ve.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),qn=function(e){var t=e.linkUrl,n=e.linkTitle,r=e.icon,o=e.linkTarget,a=e.onRemove,i=e.onCopy,l=e.relAttribute,s=e.linkDescription,c=t.startsWith("http://")||t.startsWith("https://")||t.startsWith("tel:")||t.startsWith("mailto:")?t:"http://"+t;return(0,re.jsx)("div",{"aria-label":(0,z.__)("Currently selected","vk-blocks"),className:"block-editor-link-control__search-item is-current is-rich is-preview",children:(0,re.jsxs)("div",{className:"block-editor-link-control__search-item-top",children:[(0,re.jsxs)("span",{className:"block-editor-link-control__search-item-header",children:[(0,re.jsx)("span",{className:"block-editor-link-control__search-item-icon is-image",children:r}),(0,re.jsxs)("span",{className:"block-editor-link-control__search-item-details",children:[(0,re.jsx)("a",{className:"components-external-link block-editor-link-control__search-item-title",href:c,target:o,rel:l,"aria-label":s,children:(0,re.jsx)("span",{"data-wp-c16t":"true","data-wp-component":"Truncate",className:"components-truncate af-dc---cacbf-19ok06l e19lxcc00",children:n})}),(0,re.jsx)("span",{className:"block-editor-link-control__search-item-info",children:(0,re.jsx)("span",{"data-wp-c16t":"true","data-wp-component":"Truncate",className:"components-truncate af-dc---cacbf-19ok06l e19lxcc00",children:t})})]})]}),(0,re.jsx)(ce.Tooltip,{text:(0,z.__)("Deleting Link","vk-blocks"),children:(0,re.jsx)("button",{type:"button",className:"components-button is-compact has-icon","aria-label":(0,z.__)("Deleting Link","vk-blocks"),onClick:a,children:(0,re.jsx)("span",{style:{width:"24px",height:"24px"},children:Wn})})}),(0,re.jsx)(ce.Tooltip,{text:(0,z.sprintf)(1 !function(){var e={413: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},141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(413),i=n(957);o(n(957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new i.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var i=n(413),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),x(this,e)},e}();t.Node=l;var s=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(s);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(s);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=i.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(s);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?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}(l);t.NodeWithChildren=p;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=b;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=o,a}return o(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,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,i.isTag)(e)}function h(e){return e.type===i.ElementType.CDATA}function g(e){return e.type===i.ElementType.Text}function k(e){return e.type===i.ElementType.Comment}function y(e){return e.type===i.ElementType.Directive}function _(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(k(e))n=new u(e.data);else if(v(e)){var r=t?j(e.children):[],o=new m(e.name,a({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=o}else if(h(e)){r=t?j(e.children):[];var i=new b(r);r.forEach((function(e){return e.parent=i})),n=i}else if(_(e)){r=t?j(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!y(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(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 j(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=v,t.isCDATA=h,t.isText=g,t.isComment=k,t.isDirective=y,t.isDocument=_,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},270:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},496:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,p=(e=(0,r.escapeSpecialCharacters)(e)).match(l),b=p&&p[1]?p[1].toLowerCase():"";switch(b){case o:var f=d(e);return s.test(e)||null===(t=null==(h=f.querySelector(a))?void 0:h.parentNode)||void 0===t||t.removeChild(h),c.test(e)||null===(n=null==(h=f.querySelector(i))?void 0:h.parentNode)||void 0===n||n.removeChild(h),f.querySelectorAll(o);case a:case i:var v=u(e).querySelectorAll(b);return c.test(e)&&s.test(e)?v[0].parentNode.childNodes:v;default:return m?m(e):(h=u(e,i).querySelector(i)).childNodes;var h}};var r=n(731),o="html",a="head",i="body",l=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,c=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){var b=new p;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),b.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=f.documentElement.querySelector(t);return n&&(n.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var m,v="object"==typeof document&&document.createElement("template");v&&v.content&&(m=function(e){return v.innerHTML=e,v.content.childNodes})},471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(i),n=t?t[1]:void 0;return(0,a.formatDOM)((0,o.default)(e),null,n)};var o=r(n(496)),a=n(731),i=/<(![a-zA-Z\s]+)>/},731:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=a,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=l,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var s,c=[],u=0,d=t.length;u<d;u++){var p=t[u];switch(p.nodeType){case 1:var b=i(p.nodeName);(s=new r.Element(b,a(p.attributes))).children=e("template"===b?p.content.childNodes:p.childNodes,s);break;case 3:s=new r.Text(l(p.nodeValue));break;case 8:s=new r.Comment(p.nodeValue);break;default:continue}var f=c[u-1]||null;f&&(f.next=s),s.parent=n,s.prev=f,s.next=null,c.push(s)}return o&&((s=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=c[0]||null,s.parent=n,c.unshift(s),c[1]&&(c[1].prev=c[0])),c};var r=n(141),o=n(270);function a(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function i(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function l(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&l[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),b=s(p);if(b){var f=(0,r.getPropertyInfo)(b);switch(a.includes(b)&&i.includes(t)&&!c&&(b=s("default"+p)),n[b]=d,f&&f.type){case r.BOOLEAN:n[b]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[b]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(210),o=n(958),a=["checked","value"],i=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||i.returnFirstArg,u=n.library||l,d=u.cloneElement,p=u.createElement,b=u.isValidElement,f=t.length,m=0;m<f;m++){var v=t[m];if(o){var h=n.replace(v,m);if(b(h)){f>1&&(h=d(h,{key:h.key||m})),r.push(c(h,v,m));continue}}if("text"!==v.type){var g=v,k={};s(g)?((0,i.setStyleProp)(g.attribs.style,g.attribs),k=g.attribs):g.attribs&&(k=(0,a.default)(g.attribs,g.name));var y=void 0;switch(v.type){case"script":case"style":v.children[0]&&(k.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?k.defaultValue=v.children[0].data:v.children&&v.children.length&&(y=e(v.children,n));break;default:continue}f>1&&(k.key=m),r.push(c(p(v.name,k,y),v,m))}else{var _=!v.data.trim().length;if(_&&v.parent&&!(0,i.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&_)continue;r.push(c(v.data,v,m))}}return 1===r.length?r[0]:r};var o=n(609),a=r(n(840)),i=n(958),l={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,i.isCustomComponent)(e.name,e.attribs)}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,i.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]};var o=r(n(471));t.htmlToDOM=o.default;var a=r(n(840));t.attributesToProps=a.default;var i=r(n(308));t.domToReact=i.default;var l=n(141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1}},958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!i.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,a.default)(e,l)}catch(e){t.style={}}else t.style={}};var o=n(609),a=r(n(229)),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),l={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},788:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function b(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),k(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=s.source}m.prototype.content=e;var v=[];function h(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;v.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return b(r),e=e.slice(r.length),n}}function k(){g(r)}function y(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return h("End of comment missing");var r=e.slice(2,n-2);return p+=2,b(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function x(){var e=f(),n=g(o);if(n){if(_(),!g(a))return h("property missing ':'");var r=g(i),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(l),s}}return k(),function(){var e,t=[];for(y(t);e=x();)!1!==e&&(t.push(e),y(t));return t}()}},210:function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const a=/[\-\:]([a-z])/g,i=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(a,i);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=n(811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},811:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},452:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),l=new E(r||[]);return o(i,"_invoke",{value:C(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",b="suspendedYield",f="executing",m="completed",v={};function h(){}function g(){}function k(){}var y={};c(y,i,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(N([])));x&&x!==n&&r.call(x,i)&&(y=x);var j=k.prototype=h.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function C(e,n,r){var o=p;return function(a,i){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=P(l,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:b,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=k,o(j,"constructor",{value:k,configurable:!0}),o(k,"constructor",{value:g,configurable:!0}),g.displayName=c(k,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,c(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},w(O.prototype),c(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new O(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(j),c(j,s,"Generator"),c(j,i,(function(){return this})),c(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(133)),o=n(917);function a(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}a.default=a,e.exports=a},917:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,s):e.replace(a,s)).replace(r,l))}},133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),a="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(788))},609:function(e){"use strict";e.exports=window.React},942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{metadata:function(){return bt},name:function(){return ft},settings:function(){return mt}});var t={};n.r(t),n.d(t,{metadata:function(){return wt},name:function(){return Ot},settings:function(){return Ct}});var r={};n.r(r),n.d(r,{metadata:function(){return an},name:function(){return ln},settings:function(){return sn}});var o={};n.r(o),n.d(o,{metadata:function(){return An},name:function(){return zn},settings:function(){return Rn}});var a={};n.r(a),n.d(a,{metadata:function(){return ko},name:function(){return yo},settings:function(){return _o}});var i={};n.r(i),n.d(i,{metadata:function(){return Lo},name:function(){return Uo},settings:function(){return Ho}});var l={};n.r(l),n.d(l,{metadata:function(){return aa},name:function(){return ia},settings:function(){return la}});var s={};n.r(s),n.d(s,{metadata:function(){return ya},name:function(){return _a},settings:function(){return xa}});var c={};n.r(c),n.d(c,{metadata:function(){return Ba},name:function(){return Ia},settings:function(){return Ma}});var u={};n.r(u),n.d(u,{metadata:function(){return Ka},name:function(){return ei},settings:function(){return ti}});var d={};n.r(d),n.d(d,{metadata:function(){return Gi},name:function(){return Wi},settings:function(){return Zi}});var p={};n.r(p),n.d(p,{metadata:function(){return jl},name:function(){return wl},settings:function(){return Ol}});var b={};n.r(b),n.d(b,{metadata:function(){return Dl},name:function(){return Al},settings:function(){return zl}});var f={};n.r(f),n.d(f,{metadata:function(){return Zl},name:function(){return Yl},settings:function(){return Xl}});var m={};n.r(m),n.d(m,{metadata:function(){return ys},name:function(){return _s},settings:function(){return xs}});var v={};n.r(v),n.d(v,{metadata:function(){return qs},name:function(){return $s},settings:function(){return Js}});var h={};n.r(h),n.d(h,{metadata:function(){return Pd},name:function(){return Td},settings:function(){return Sd}});var g={};n.r(g),n.d(g,{metadata:function(){return Np},name:function(){return Bp},settings:function(){return Ip}});var k={};n.r(k),n.d(k,{metadata:function(){return jb},name:function(){return wb},settings:function(){return Ob}});var y={};n.r(y),n.d(y,{metadata:function(){return Wb},name:function(){return Zb},settings:function(){return Yb}});var _={};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function j(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}function w(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(_),n.d(_,{metadata:function(){return nf},name:function(){return rf},settings:function(){return of}});var O=window.wp.coreData,C=(window.wp.notices,window.wp.blocks);const P=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,T=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(P);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},S=e=>"*"===e||"x"===e||"X"===e,E=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},N=(e,t)=>{if(S(e)||S(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(E(e),E(t));return n>r?1:n<r?-1:0},B=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=N(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},I=(e,t)=>{const n=T(e),r=T(t),o=n.pop(),a=r.pop(),i=B(n,r);return 0!==i?i:o&&a?B(o.split("."),a.split(".")):o||a?o?-1:1:0};var M,D,A,z=window.wp.i18n,R=(0,z.__)("Lorem ipsum dolor","vk-blocks"),V=(0,z.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","vk-blocks"),F=(0,z.__)("Lorem ipsum","vk-blocks"),L='<i class="fas fa-user"></i>',U="https://demo.dev3.biz/lightning-pro/wp-content/uploads/2018/02/agent-18762_1920-200x300.jpg",H="#8ed1fc",G="https://example.com",W=('{"alt":"Example Image","sizes":{"full":{"url":"'.concat(U,'"}}}'),(0,z.__)("Theoretical Physicist","vk-blocks")),Z=(0,z.__)("Profile","vk-blocks"),Y=(0,z.__)("Albert Einstein","vk-blocks"),X=(0,z.__)("14 March 1879 – 18 April 1955","vk-blocks"),Q=n(609);function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(null,arguments)}var $=function(e){return Q.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),M||(M=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),D||(D=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),A||(A=Q.createElement("path",{fillRule:"evenodd",d:"M24 8.5a8.5 8.5 0 0 1-12.12 7.7l.18-.2a1.61 1.61 0 0 0-1.17-2.72H8.62c.06-.67-.3-1.43-1.04-1.69A8.5 8.5 0 1 1 24 8.5m-7.86.7H14.9L14 6.27V4h3v2.28l-.86 2.91zm.86 1.29V13h-3v-2.51z",clipRule:"evenodd"})))};function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t){if(e){if("string"==typeof e)return J(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}function ee(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ne=window.wp.blockEditor,re=window.ReactJSXRuntime,oe=["title"];function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var le=[{attributes:{style:{type:"string",default:"info"},content:{type:"string",source:"html",selector:"p"}},migrate:function(e,t){return e.title,[te(e,oe),[(0,C.createBlock)("core/paragraph",{content:e.content})].concat(ee(t))]},save:function(e){var t=e.attributes,n=t.style,r=t.content;return(0,re.jsx)("div",ie(ie({},ne.useBlockProps.save({className:"alert alert-".concat(n)})),{},{children:(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:r})}))}}],se=le,ce=window.wp.components;function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||K(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var de=window.wp.element,pe=window.wp.apiFetch,be=n.n(pe),fe=window.wp.data,me=window.wp.primitives,ve=(0,re.jsx)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(me.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),he=(0,re.jsx)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(me.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),ge=(0,re.jsx)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(me.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),ke=n(442),ye=ke.default||ke;function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j(r.key),r)}}function je(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function we(e,t){if(t&&("object"==x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ce(e,t)}function Pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}function Te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Te=function(){return!!e})()}var Se=function(e){function t(e){var n,r,o,a;return _e(this,t),r=this,a=[e],o=Oe(o=t),(n=we(r,Te()?Reflect.construct(o,a||[],Oe(r).constructor):o.apply(r,a))).state={open:!1},n.buttonRef=(0,de.createRef)(),n}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this,t="apc-icon-btn components-button is-secondary is-small";return(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:"components-base-control",children:(0,re.jsxs)("div",{className:"vk-blocks-button-icon-control__wrapper components-base-control__field",ref:this.buttonRef,children:[(0,re.jsx)(ce.Button,{isTertiary:!0,className:"".concat(t," mb-1"),onClick:function(){e.setState({open:!e.state.open})},ref:this.buttonRef,children:this.props.label}),this.state.open&&this.buttonRef.current&&(0,re.jsx)(ce.Popover,{anchor:this.buttonRef.current,children:this.props.renderComp,onFocusOutside:function(n){n.relatedTarget&&!n.relatedTarget.closest(".".concat(t))&&n.relatedTarget!==e.buttonRef.current&&e.setState({open:!1})},focusOnMount:"container",className:"vk-blocks-advanced-popover-control"})]})})})}}])}(de.Component),Ee="vk-blocks/block-editor",Ne="vk-blocks/v1/update_vk_blocks_options",Be=window.regeneratorRuntime,Ie=n.n(Be);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=function(e){be()({path:Ne,method:"POST",data:e})},ze={options:{}},Re={setOptions:function(e){return{type:"SET_OPTIONS",options:e}},fetchFromAPI:function(e){return{type:"FETCH_FROM_API",path:e}}},Ve=(0,fe.createReduxStore)(Ee,{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze,t=arguments.length>1?arguments[1]:void 0;return"SET_OPTIONS"===t.type?De(De({},e),{},{options:t.options}):e},actions:Re,selectors:{getOptions:function(e){return e.options}},controls:{FETCH_FROM_API:function(e){return be()({path:e.path})}},resolvers:{getOptions:function(){return Ie().mark((function e(){var t;return Ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Re.fetchFromAPI(Ne);case 2:return t=e.sent,e.abrupt("return",Re.setOptions(t));case 4:case"end":return e.stop()}}),e)}))()}}});function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,fe.register)(Ve);var Ue,He,Ge,We=['<i class="fa-solid fa-arrow-right"></i>','<i class="fa-solid fa-arrow-down"></i>','<i class="fa-solid fa-arrow-left"></i>','<i class="fa-solid fa-circle-right"></i>','<i class="fa-solid fa-circle-down"></i>','<i class="fa-solid fa-circle-left"></i>','<i class="fa-regular fa-circle-right"></i>','<i class="fa-regular fa-circle-down"></i>','<i class="fa-regular fa-circle-left"></i>','<i class="fa-solid fa-square-up-right"></i>','<i class="fa-solid fa-up-right-from-square"></i>','<i class="fa-solid fa-download"></i>','<i class="fa-solid fa-triangle-exclamation"></i>','<i class="fa-solid fa-circle-exclamation"></i>','<i class="fa-solid fa-exclamation"></i>','<i class="fa-solid fa-question"></i>','<i class="fa-solid fa-circle-question"></i>','<i class="fa-solid fa-circle-info"></i>','<i class="fa-solid fa-info"></i>','<i class="fa-solid fa-check"></i>','<i class="fa-solid fa-square-check"></i>','<i class="fa-solid fa-circle-check"></i>','<i class="fa-solid fa-phone"></i>','<i class="fa-solid fa-square-phone"></i>','<i class="fa-solid fa-mobile-screen-button"></i>','<i class="fa-regular fa-envelope"></i>','<i class="fa-solid fa-user"></i>','<i class="fa-solid fa-users"></i>','<i class="fa-regular fa-file-lines"></i>','<i class="fa-solid fa-file-lines"></i>','<i class="fa-solid fa-file"></i>','<i class="fa-solid fa-file-pdf"></i>','<i class="fa-solid fa-building"></i>','<i class="fa-brands fa-square-x-twitter"></i>','<i class="fa-brands fa-square-facebook"></i>','<i class="fa-brands fa-line"></i>'],Ze=function(e){var t,n,r,o,a,i=e.attributeName,l=e.attributes,s=e.setAttributes,c=e.modeClass,u=void 0!==c&&c,d=vkFontAwesome.iconsUrl,p=vkFontAwesome.iconFamily,b=vkFontAwesome.versions,f=vkFontAwesome.currentVersion,m=ue((0,de.useState)(!1),2),v=m[0],h=m[1],g=ue((0,de.useState)(),2),k=g[0],y=g[1],_=ue((0,de.useState)(!1),2),x=_[0],j=_[1],C=function(e){var t=e.match(/class="([^"]+)"/);return t?t[1]:e},P=function(e){var t=u?C(e):e;s(w({},i,t))},T=(0,fe.useSelect)((function(e){return{canUserEdit:(0,e(O.store).canUser)("update","settings"),optionObj:(0,e(Ee).getOptions)()}}),[]),S=T.canUserEdit,E=T.optionObj,N=(0,fe.useDispatch)(Ee).setOptions;(0,de.useEffect)((function(){y(f)}),[]);var B=l[i]&&!(null!=E&&null!==(t=E.vkBlocksOption)&&void 0!==t&&t.icon_custom_lists.some((function(e){return e===l[i]}))),I=0!==(null==E||null===(n=E.vkBlocksOption)||void 0===n?void 0:n.icon_custom_lists.length),M=x&&1!==(null==E||null===(r=E.vkBlocksOption)||void 0===r?void 0:r.icon_custom_lists.length),D=(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ce.BaseControl,{className:"components-base-control__label",id:"vk_fa_icon_list",label:(0,z.__)("Icon","vk-blocks")+" ( "+p+" ) ",children:(0,re.jsxs)("div",{className:"vk_icon_list_wrap",children:[I&&(0,re.jsxs)("div",{className:"vk_icon_list_my_list",children:[(0,re.jsx)("p",{className:"vk_icon_list_title",children:(0,z.__)("Custom list","vk-blocks")}),(0,re.jsx)("div",{className:"vk_icon_list",children:(null==E||null===(o=E.vkBlocksOption)||void 0===o?void 0:o.icon_custom_lists)&&Object.keys(null==E||null===(a=E.vkBlocksOption)||void 0===a?void 0:a.icon_custom_lists).map((function(e,t){var n=E.vkBlocksOption.icon_custom_lists[e];return(0,re.jsxs)("div",{className:"vk_icon_area",children:[(0,re.jsxs)("div",{className:"vk_icon_button_icon_area",children:[(0,re.jsx)(ce.Button,{className:"vk_icon_button",variant:"secondary",onClick:function(){return P(n)},children:n&&ye("".concat(n))}),x&&(0,re.jsx)(ce.Button,{className:"vk_icon_button_closeSmall",icon:ve,onClick:function(){return function(e){var t=E.vkBlocksOption.icon_custom_lists.indexOf(e);E.vkBlocksOption.icon_custom_lists.splice(t,1);var n=Le(Le({},E),{},{vkBlocksOption:Le({},E.vkBlocksOption)});N(n),Ae(n),0===n.vkBlocksOption.icon_custom_lists.length&&j(!1)}(n)},isDestructive:!0})]}),M&&(0,re.jsxs)("div",{className:"vk_icon_button_button_area",children:[(0,re.jsx)(ce.Button,{className:"vk_icon_button_chevronLeft",icon:he,disabled:0===t,onClick:function(){var e=ee(E.vkBlocksOption.icon_custom_lists);e[t-1]=E.vkBlocksOption.icon_custom_lists[t],e[t]=E.vkBlocksOption.icon_custom_lists[t-1];var n=Le(Le({},E),{},{vkBlocksOption:Le(Le({},E.vkBlocksOption),{},{icon_custom_lists:ee(e)})});N(n),Ae(n)}}),(0,re.jsx)(ce.Button,{className:"vk_icon_button_chevronRight",icon:ge,disabled:t===E.vkBlocksOption.icon_custom_lists.length-1,onClick:function(){var e=ee(E.vkBlocksOption.icon_custom_lists);e[t+1]=E.vkBlocksOption.icon_custom_lists[t],e[t]=E.vkBlocksOption.icon_custom_lists[t+1];var n=Le(Le({},E),{},{vkBlocksOption:Le(Le({},E.vkBlocksOption),{},{icon_custom_lists:ee(e)})});N(n),Ae(n)}})]})]},t)}))})]}),(0,re.jsxs)("div",{className:"vk_icon_list_preset",children:[I&&(0,re.jsx)("p",{className:"vk_icon_list_title",children:(0,z.__)("Preset","vk-blocks")}),(0,re.jsx)("div",{className:"vk_icon_list",children:Object.keys(We).map((function(e,t){var n=We[e];return(0,re.jsx)("div",{className:"vk_icon_area",children:(0,re.jsx)("div",{className:"vk_icon_button_icon_area",children:(0,re.jsx)(ce.Button,{className:"vk_icon_button",variant:"secondary",onClick:function(){return P(n)},children:n&&ye("".concat(n))})})},t)}))})]})]})}),(0,re.jsx)("hr",{}),(0,re.jsx)(ce.ExternalLink,{href:d,className:"components-button is-primary mt-1",children:(0,z.__)("Font Awesome icon list","vk-blocks")}),(0,re.jsxs)("p",{className:"mt-1",children:[(0,z.__)("If you want to use an icon other than the ones listed above, you can use any of the icons from Font Awesome's icon list Please select a tag and enter it.","vk-blocks"),(0,re.jsx)("br",{}),(0,z.__)("Ex)","vk-blocks"),'<i class="fa-solid fa-circle-right"></i>']}),S&&(0,re.jsxs)(re.Fragment,{children:[(B||I)&&(0,re.jsx)("hr",{}),(0,re.jsx)(ce.Button,{className:"vk_icon_add_my_list_button",variant:"primary",disabled:!B,onClick:function(){return function(e){var t;null==E||null===(t=E.vkBlocksOption.icon_custom_lists)||void 0===t||t.unshift(e);var n=Le(Le({},E),{},{vkBlocksOption:Le({},E.vkBlocksOption)});N(n),Ae(n)}(l[i])},children:(0,z.__)("Add selected icon to custom list","vk-blocks")}),I&&(0,re.jsx)(ce.ToggleControl,{className:"mt-1",label:(0,z.__)("Delete/Sort mode","vk-blocks"),checked:x,onChange:function(){return j(!x)}}),(0,re.jsx)("hr",{}),(0,re.jsx)(ce.SelectControl,{label:"Font Awesome Version",value:k,options:b,onChange:function(e){return y(e)},className:"mt-1"}),k!==f&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("p",{className:"mt-1",children:(0,z.__)("When you click save button, the window will be reloaded and this setting will be applied.","vk-blocks")}),(0,re.jsx)(ce.Button,{isPrimary:!0,disabled:v,onClick:function(){h(!0),be()({path:"/vk-blocks/v1/options/vk_font_awesome_version/",method:"POST",data:k}).then((function(){h(!1),window.location.reload()})).catch((function(){h(!1)}))},children:(0,z.__)("Save","vk-blocks")})]})]})]});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ce.TextControl,{value:l[i],onChange:function(e){u?function(e){var t=C(e);s(w({},i,t))}(e):s(w({},i,e))},placeholder:'<i class="fa-solid fa-circle-right"></i>',className:"mb-0"}),(0,re.jsx)(Se,{label:(0,z.__)("Select Icon","vk-blocks"),renderComp:D,setAttributes:s})]})};function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$e.apply(null,arguments)}var Je,Ke,et,tt=function(e){return Q.createElement("svg",$e({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),Ue||(Ue=Q.createElement("path",{d:"m11.525 15-3.266.008a.11.11 0 0 0-.103.076l-.25.721c-.022.076.03.152.103.152h1.27c.095 0 .147.122.08.19l-2.025 2.18h.007l1.042 3.397c.023.076-.029.145-.102.145H7.26a.104.104 0 0 1-.103-.076l-.521-1.74a.107.107 0 0 0-.206-.008l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084h3.288a.11.11 0 0 0 .103-.144L8.56 18.48c-.015-.038 0-.084.029-.114l3.016-3.176c.066-.068.015-.19-.08-.19"})),He||(He=Q.createElement("path",{fill:"#D8141C",d:"m8.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H1.108c-.074 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})),Ge||(Ge=Q.createElement("path",{d:"M23.35 5.25a8.6 8.6 0 0 0-1.84-2.76A8.4 8.4 0 0 0 18.75.65 8.5 8.5 0 0 0 15.5 0c-2.25 0-4.42.9-6.01 2.49A8.52 8.52 0 0 0 7 8.5c0 1.04.19 2.05.55 3h.47c1.1 0 1.67.95 1.6 1.78h2.27c1.42 0 2.14 1.7 1.17 2.72l-.46.48c.92.34 1.9.51 2.91.51a8.56 8.56 0 0 0 6.01-2.49 8.4 8.4 0 0 0 1.84-2.76 8.46 8.46 0 0 0 0-6.5zm-8.73 7.48-3.56-3.56 1.34-1.34 2.1 2.1 4.06-4.87 1.45 1.21-5.38 6.46z"})))};function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nt.apply(null,arguments)}var rt,ot,at,it=function(e){return Q.createElement("svg",nt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),Je||(Je=Q.createElement("path",{d:"m11.89 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L7.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L7 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084h3.288c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"})),Ke||(Ke=Q.createElement("path",{fill:"#D8141C",d:"m8.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H1.108c-.074 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})),et||(et=Q.createElement("path",{d:"M15.5 0A8.5 8.5 0 0 0 7 8.5c0 1.03.18 2.04.54 3h.48c1.1 0 1.67.95 1.6 1.78h2.27c1.42 0 2.14 1.7 1.16 2.72l-.46.49a8.5 8.5 0 0 0 11.4-7.99C24 3.81 20.2 0 15.5 0m-.93 4.09c.15-.14.34-.23.55-.23h.39c.43.02.76.37.74.8-.01.41-.34.73-.74.74h-.39a.77.77 0 0 1-.54-1.32zm2.48 8.27h-3.09a.77.77 0 0 1 0-1.54h.77V8.5h-.77a.77.77 0 1 1 .01-1.54h1.55c.43 0 .77.35.77.77v3.09h.77a.77.77 0 0 1 0 1.54z"})))};function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lt.apply(null,arguments)}var st,ct,ut,dt=function(e){return Q.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),rt||(rt=Q.createElement("path",{d:"m10.89 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"})),ot||(ot=Q.createElement("path",{fill:"#D8141C",d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})),at||(at=Q.createElement("path",{d:"M23.28 14.183 16.004.644a1.2 1.2 0 0 0-.445-.47A1.16 1.16 0 0 0 14.942 0q-.331 0-.616.173a1.2 1.2 0 0 0-.445.471L8 11.584c.749.251 1.12 1.02 1.06 1.7l2.271-.006c1.416 0 2.14 1.701 1.17 2.722h9.719q.322 0 .601-.164.28-.162.44-.442.351-.606.02-1.211Zm-7.125-2.789v1.827a.3.3 0 0 1-.09.226.3.3 0 0 1-.213.092h-1.82a.3.3 0 0 1-.213-.092.3.3 0 0 1-.09-.226v-1.827q0-.135.09-.226a.3.3 0 0 1 .213-.091h1.82a.3.3 0 0 1 .213.091.3.3 0 0 1 .09.226m.151-6.182-.17 4.413a.21.21 0 0 1-.1.159.4.4 0 0 1-.222.062H14.06a.4.4 0 0 1-.228-.062q-.094-.063-.094-.159l-.162-4.394q0-.135.095-.202.123-.106.228-.106h2.084q.105 0 .228.106a.21.21 0 0 1 .095.183",clipRule:"evenodd"})))},pt=[{name:"alert-success",title:(0,z.__)("Alert Success","vk-blocks"),scope:["inserter","transform"],icon:(0,re.jsx)(tt,{}),attributes:{style:"success",icon:'<i class="fa-solid fa-circle-check"></i>',iconText:(0,z.__)("Success","vk-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z.__)("This is a success alert.","vk-blocks")}}]},{name:"alert-info",title:(0,z.__)("Alert Info","vk-blocks"),scope:["inserter","transform"],icon:(0,re.jsx)(it,{}),attributes:{style:"info",icon:'<i class="fa-solid fa-circle-info"></i>',iconText:(0,z.__)("Information","vk-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z.__)("This is a information alert.","vk-blocks")}}]},{name:"alert-warning",title:(0,z.__)("Alert Warning","vk-blocks"),scope:["inserter","transform"],icon:(0,re.jsx)(dt,{}),attributes:{style:"warning",icon:'<i class="fa-solid fa-triangle-exclamation"></i>',iconText:(0,z.__)("Warning","vk-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z.__)("This is a warning alert.","vk-blocks")}}]},{name:"alert-danger",title:(0,z.__)("Alert Danger","vk-blocks"),scope:["inserter","transform"],icon:(0,re.jsx)($,{}),attributes:{style:"danger",icon:'<i class="fa-solid fa-circle-exclamation"></i>',iconText:(0,z.__)("Danger","vk-blocks")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,z.__)("This is a danger alert.","vk-blocks")}}]}],bt={apiVersion:3,name:"vk-blocks/alert",category:"vk-blocks-cat",title:"Alert",description:"A colored box with four statuses, including annotations and alerts.",textdomain:"vk-blocks",attributes:{style:{type:"string",default:"info"},icon:{type:"string",default:""},iconText:{type:"string",default:""},content:{type:"string",source:"html",selector:"p"},mobileIconPosition:{type:"string",default:"left"}},supports:{className:!0}},ft=bt.name,mt={icon:(0,re.jsx)($,{}),example:{attributes:{style:"info",content:V}},save:function(e){var t=e.attributes,n=t.style,r=t.icon,o=t.iconText,a=t.mobileIconPosition,i=ne.useBlockProps.save({className:"vk_alert alert alert-".concat(n," ").concat(r?"has-alert-icon":""," ").concat("top"===a?"mobile-icon-top":"")}),l="";return""!==r&&void 0!==r&&(l=(0,re.jsxs)("div",{className:"vk_alert_icon",children:[(0,re.jsx)("div",{className:"vk_alert_icon_icon",children:ye(r)}),(0,re.jsx)("div",{className:"vk_alert_icon_text",children:(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o})})]})),(0,re.jsxs)("div",qe(qe({},i),{},{children:[l,(0,re.jsx)("div",{className:"vk_alert_content",children:(0,re.jsx)(ne.InnerBlocks.Content,{})})]}))},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.style,o=t.icon,a=t.iconText,i=t.mobileIconPosition,l=vkFontAwesome.iconFamily,s=(0,ne.useBlockProps)({className:"vk_alert alert alert-".concat(r," ").concat(o?"has-alert-icon":""," ").concat("top"===i?"mobile-icon-top":"")}),c="";return""!==o&&void 0!==o&&(c=(0,re.jsxs)("div",{className:"vk_alert_icon",children:[(0,re.jsx)("div",{className:"vk_alert_icon_icon",children:ye(o)}),(0,re.jsx)("div",{className:"vk_alert_icon_text",children:(0,re.jsx)(ne.RichText,{tagName:"span",placeholder:(0,z.__)("Icon Text","vk-blocks"),value:a,onChange:function(e){return n({iconText:e})}})})]})),(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Style Settings","vk-blocks"),children:[(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Alert Style","vk-blocks"),id:"vk_alert-style",children:(0,re.jsx)(ce.SelectControl,{value:r,onChange:function(e){return n({style:e})},options:[{label:(0,z.__)("Success","vk-blocks"),value:"success"},{label:(0,z.__)("Info","vk-blocks"),value:"info"},{label:(0,z.__)("Warning","vk-blocks"),value:"warning"},{label:(0,z.__)("Danger","vk-blocks"),value:"danger"}]})}),(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Icon","vk-blocks")+" ( "+l+" )",id:"vk_alert-icon",children:(0,re.jsx)(Ze,Xe({attributeName:"icon"},e))}),o&&(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Mobile Icon Position","vk-blocks"),id:"vk_alert-mobile-icon-position",children:(0,re.jsx)(ce.SelectControl,{value:i,onChange:function(e){return n({mobileIconPosition:e})},options:[{label:(0,z.__)("Left (Default)","vk-blocks"),value:"left"},{label:(0,z.__)("Top","vk-blocks"),value:"top"}]})})]})}),(0,re.jsxs)("div",Xe(Xe({},s),{},{children:[c,(0,re.jsx)("div",{className:"vk_alert_content",children:(0,re.jsx)(ne.InnerBlocks,{})})]}))]})},deprecated:se,variations:pt};function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vt.apply(null,arguments)}var ht=function(e){return Q.createElement("svg",vt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),st||(st=Q.createElement("path",{fillRule:"evenodd",d:"M4 6.5C4 7.33 4.67 8 5.5 8 6.32 8 7 7.33 7 6.5 7 5.68 6.32 5 5.5 5 4.67 5 4 5.68 4 6.5M20 6H9v1h11zM7 11.5l-1.967.008h-.005c-.364 0-.71.126-.987.343A1.504 1.504 0 0 1 5.5 10 1.51 1.51 0 0 1 7 11.499Zm4.109 5.5.946-.997.005-.003H20v1zM20 11H9v1h11z",clipRule:"evenodd"})),ct||(ct=Q.createElement("path",{d:"m10.89 14.778-3.267.007a.11.11 0 0 0-.102.076l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.144-.103.144h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.106-.168-.106-.205-.007l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19"})),ut||(ut=Q.createElement("path",{fill:"#D8141C",d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})))},gt=window.wp.serverSideRender,kt=n.n(gt);function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xt=/^(h[2-6]).*/,jt=/[^a-zA-Z0-9-_ ]/g,wt={apiVersion:3,name:"vk-blocks/ancestor-page-list",category:"vk-blocks-cat",title:"Page list from ancestor",attributes:{ancestorTitleDisplay:{type:"boolean",default:!0},ancestorTitleTagName:{type:"string",default:"h4"},ancestorTitleClassName:{type:"string",default:null},ancestorTitleLink:{type:"boolean",default:!1},displayHasChildOnly:{type:"boolean",default:!1},hiddenGrandChild:{type:"boolean",default:!1}},description:"Display Page list from ancestor page",textdomain:"vk-blocks",supports:{className:!0}},Ot=wt.name,Ct={icon:(0,re.jsx)(ht,{}),example:{attributes:{hiddenGrandChild:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.name,o=t.ancestorTitleDisplay,a=t.ancestorTitleTagName,i=t.ancestorTitleClassName,l=t.ancestorTitleLink,s=t.displayHasChildOnly,c=t.hiddenGrandChild;(0,de.useEffect)((function(){n({name:r})}),[r]);var u=(0,ne.useBlockProps)(),d=function(e){var t=null==e?void 0:e.match(xt);return t?t[1]:"h4"},p=function(e){return(null==e?void 0:e.replace(jt,""))||""};return(0,de.useEffect)((function(){var e=d(a);e!==a&&n({ancestorTitleTagName:e});var t=p(i);t!==i&&n({ancestorTitleClassName:t})}),[a,i]),(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Ancestor Page List Setting","vk-blocks"),children:[(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Display Ancestor Page Title","vk-blocks"),checked:o,onChange:function(e){return n({ancestorTitleDisplay:e})}}),(0,re.jsx)(ce.SelectControl,{label:(0,z.__)("Archive title tag","vk-blocks"),value:a,onChange:function(e){n({ancestorTitleTagName:d(e)})},options:[{value:"h2",label:(0,z.__)("h2","vk-blocks")},{value:"h3",label:(0,z.__)("h3","vk-blocks")},{value:"h4",label:(0,z.__)("h4","vk-blocks")},{value:"h5",label:(0,z.__)("h5","vk-blocks")},{value:"h6",label:(0,z.__)("h6","vk-blocks")}]}),(0,re.jsx)(ce.TextControl,{label:(0,z.__)("Ancestor page title class name","vk-blocks"),value:i||"",className:"mt-0 mb-3",onChange:function(e){n({ancestorTitleClassName:p(e)})}}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Add link to ancestor page title","vk-blocks"),checked:l,onChange:function(e){return n({ancestorTitleLink:e})}}),(0,re.jsx)("hr",{}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("If there is no child page, the block itself is not displayed","vk-blocks"),checked:s,onChange:function(e){return n({displayHasChildOnly:e})}}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Don't display inactive grand child pages","vk-blocks"),checked:c,onChange:function(e){return n({hiddenGrandChild:e})}})]})}),(0,re.jsx)("div",_t(_t({},u),{},{children:(0,re.jsx)(kt(),{block:"vk-blocks/ancestor-page-list",attributes:t})}))]})}};function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var St=function(e){var t=!1;return e&&null!==e.match(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)&&(t=!0),t};function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At,zt,Rt,Vt,Ft=Dt(Dt({},{content:{source:"html",selector:"p"},balloonName:{source:"html",selector:"figcaption"},balloonType:{type:"string",default:"type-serif"},balloonBgColor:{type:"string"},balloonAlign:{type:"string",default:"position-left"},IconImage:{type:"string",default:null}}),{},{balloonImageType:{type:"string",default:"normal"}}),Lt=Dt(Dt({},Ft),{},{balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"}}),Ut=Dt(Dt({},Lt),{},{balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"},balloonBorder:{type:"boolean",default:!1},balloonImageBorder:{type:"boolean",default:!1},balloonBorderWidth:{type:"string",default:"thin"},balloonBorderColor:{type:"string",default:null},balloonType:{type:"string",default:"type-speech"}}),Ht=Dt(Dt({},Ut),{},{balloonBorderColor:{type:"string",default:"#cccccc"},balloonBgColor:{type:"string",default:"#f5f5f5"}}),Gt=[{attributes:Dt(Dt({},Ht),{},{balloonFullWidth:{type:"boolean",default:!1},balloonBorderColor:{type:"string"},balloonBgColor:{type:"string"}}),save:function(e){var t=e.attributes,n=t.balloonName,r=t.balloonType,o=t.balloonBorder,a=t.balloonFullWidth,i=t.balloonImageBorder,l=t.balloonBorderColor,s=t.balloonBgColor,c=t.balloonAlign,u=t.IconImage,d=t.balloonImageType,p=t.balloonAnimation,b="",f="",m="",v={},h={},g="",k="",y={},_={},x={};x&&(h=x,v=x),"background"in v&&delete v.background,!0===o?(b+="vk_balloon_content-border-true",!0===i?f+="vk_balloon_icon_image-border-true":f="",void 0!==l&&(f+=" has-text-color",b+=" has-text-color",St(l)||(f+=" has-".concat(l,"-color"),b+=" has-".concat(l,"-color"))),St(l)&&!St(s)?(h={borderColor:"".concat(l)},v={borderColor:"".concat(l)}):!St(l)&&St(s)?h={background:"".concat(s)}:St(l)&&St(s)&&(h={borderColor:"".concat(l),background:"".concat(s)},v={borderColor:"".concat(l)}),"position-left"===c?("type-speech"===r?(void 0!==s&&(g+=" has-text-color",St(s)||(g+=" has-".concat(s,"-color"))),void 0!==l&&(k+=" has-text-color",St(l)||(k+=" has-".concat(l,"-color")))):"type-think"===r&&(void 0!==l&&(g+=" has-text-color",St(l)||(g+=" has-".concat(l,"-color"))),void 0!==l&&(k+=" has-text-color",St(l)||(k+=" has-".concat(l,"-color")))),St(l)&&(_={borderColor:"transparent transparent transparent ".concat(s)}),St(s)&&(y={borderColor:"transparent ".concat(s," transparent transparent")})):"position-right"===c&&("type-speech"===r?(void 0!==s&&(g+=" has-text-color",St(s)||(g+=" has-".concat(s,"-color"))),void 0!==l&&(k+=" has-text-color",St(l)||(k+=" has-".concat(l,"-color")))):"type-think"===r&&void 0!==l&&(g+=" has-text-color",k+=" has-text-color",St(l)||(g+=" has-".concat(l,"-color"),k+=" has-".concat(l,"-color"))),St(l)&&(_={borderColor:"transparent ".concat(l," transparent transparent")}),St(s)&&(y={borderColor:"transparent transparent transparent ".concat(s)}))):void 0!==s&&(f="",void 0!==s&&St(s)&&(h={background:"".concat(s)}),"position-left"===c?("type-speech"===r&&void 0!==s&&(g+=" has-text-color",St(s)||(g+=" has-".concat(s,"-color"))),St(l)&&(_={borderColor:"transparent transparent transparent ".concat(s)}),St(s)&&(y={borderColor:"transparent ".concat(s," transparent transparent")})):"position-right"===c&&("type-speech"===r&&void 0!==s&&(g+=" has-text-color",St(s)||(g+=" has-".concat(s,"-color"))),St(s)&&(y={borderColor:"transparent transparent transparent ".concat(s)}))),void 0!==s&&(m+=" has-background-color",St(s)||(m+=" has-".concat(s,"-background-color"))),a&&(b+=" vk_balloon_content_fullwidth");var j=ne.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(c," vk_balloon-").concat(r," vk_balloon-animation-").concat(p)});return(0,re.jsxs)("div",It(It({},j),{},{children:[(0,re.jsx)("div",{className:"vk_balloon_icon",children:u?(0,re.jsxs)("figure",{children:[(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(d," ").concat(f),style:v,src:u,alt:""}),(0,re.jsx)(ne.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})]}):""}),(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(m," ").concat(b),style:h,children:[(0,re.jsx)("span",{className:"vk_balloon_content_before ".concat(g),style:y}),(0,re.jsx)("span",{className:"vk_balloon_content_after ".concat(k),style:_}),(0,re.jsx)(ne.InnerBlocks.Content,{})]})})]}))},migrate:function(e){return Dt(Dt({},e),{},{balloonIconDisplay:!1})}},{attributes:Ht,save:function(e){var t=e.attributes,n=t.balloonName,r=t.balloonType,o=t.balloonBorder,a=t.balloonImageBorder,i=t.balloonBorderColor,l=t.balloonBgColor,s=t.balloonAlign,c=t.IconImage,u=t.balloonImageType,d=t.balloonAnimation,p="",b="",f="",m={},v="",h="",g={},k={};!0===o?(p+="vk_balloon_content-border-true",!0===a?b+="vk_balloon_icon_image-border-true":b="",void 0!==i&&(b+=" has-text-color",p+=" has-text-color",St(i)||(b+=" has-".concat(i,"-color"),p+=" has-".concat(i,"-color"))),St(i)&&!St(l)?m={borderColor:"".concat(i)}:!St(i)&&St(l)?m={background:"".concat(l)}:St(i)&&St(l)&&(m={borderColor:"".concat(i),background:"".concat(l)}),"position-left"===s?("type-speech"===r?(void 0!==l&&(v+=" has-text-color",St(l)||(v+=" has-".concat(l,"-color"))),void 0!==i&&(h+=" has-text-color",St(i)||(h+=" has-".concat(i,"-color")))):"type-think"===r&&(void 0!==i&&(v+=" has-text-color",St(i)||(v+=" has-".concat(i,"-color"))),void 0!==i&&(h+=" has-text-color",St(i)||(h+=" has-".concat(i,"-color")))),St(i)&&(k={borderColor:"transparent transparent transparent ".concat(l)}),St(l)&&(g={borderColor:"transparent ".concat(l," transparent transparent")})):"position-right"===s&&("type-speech"===r?(void 0!==l&&(v+=" has-text-color",St(l)||(v+=" has-".concat(l,"-color"))),void 0!==i&&(h+=" has-text-color",St(i)||(h+=" has-".concat(i,"-color")))):"type-think"===r&&void 0!==i&&(v+=" has-text-color",h+=" has-text-color",St(i)||(v+=" has-".concat(i,"-color"),h+=" has-".concat(i,"-color"))),St(i)&&(k={borderColor:"transparent ".concat(i," transparent transparent")}),St(l)&&(g={borderColor:"transparent transparent transparent ".concat(l)}))):void 0!==l&&(b="",void 0!==l&&St(l)&&(m={background:"".concat(l)}),"position-left"===s?("type-speech"===r&&void 0!==l&&(v+=" has-text-color",St(l)||(v+=" has-".concat(l,"-color"))),St(i)&&(k={borderColor:"transparent transparent transparent ".concat(l)}),St(l)&&(g={borderColor:"transparent ".concat(l," transparent transparent")})):"position-right"===s&&("type-speech"===r&&void 0!==l&&(v+=" has-text-color",St(l)||(v+=" has-".concat(l,"-color"))),St(l)&&(g={borderColor:"transparent transparent transparent ".concat(l)}))),void 0!==l&&(f+=" has-background-color",St(l)||(f+=" has-".concat(l,"-background-color")));var y=ne.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(s," vk_balloon-").concat(r," vk_balloon-animation-").concat(d)});return(0,re.jsxs)("div",Nt(Nt({},y),{},{children:[(0,re.jsx)("div",{className:"vk_balloon_icon",children:c?(0,re.jsxs)("figure",{children:[(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(u," ").concat(b),style:m,src:c,alt:""}),(0,re.jsx)(ne.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})]}):""}),(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(f," ").concat(p),style:m,children:[(0,re.jsx)("span",{className:"vk_balloon_content_before ".concat(v),style:g}),(0,re.jsx)("span",{className:"vk_balloon_content_after ".concat(h),style:k}),(0,re.jsx)(ne.InnerBlocks.Content,{})]})})]}))}},{attributes:Ht,save:function(e){var t,n,r,o,a,i=e.attributes,l=i.balloonName,s=i.balloonType,c=i.balloonBorder,u=i.balloonImageBorder,d=i.balloonBorderColor,p=i.balloonBgColor,b=i.balloonAlign,f=i.IconImage,m=i.balloonImageType,v=i.balloonAnimation;return!0===c?(t="vk_balloon_content-border-true",n=!0===u?"vk_balloon_icon_image-border-true":"",r=d,o=p):(t="",n="",r=p,o=p),a="position-right"===b?"transparent transparent transparent ".concat(o):"transparent ".concat(o," transparent transparent"),(0,re.jsxs)("div",Tt(Tt({},ne.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(b," vk_balloon-").concat(s," vk_balloon-animation-").concat(v)})),{},{children:[(0,re.jsx)("div",{className:"vk_balloon_icon",children:f?(0,re.jsxs)("figure",{children:[(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(m," ").concat(n),style:{borderColor:r},src:f,alt:""}),(0,re.jsx)(ne.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:l})]}):""}),(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(t),style:{backgroundColor:o,borderColor:r},children:[(0,re.jsx)("span",{className:"vk_balloon_content_before",style:{borderColor:a}}),(0,re.jsx)("span",{className:"vk_balloon_content_after",style:{borderColor:a}}),(0,re.jsx)(ne.InnerBlocks.Content,{})]})})]}))}}];function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(null,arguments)}var Zt=function(e){return Q.createElement("svg",Wt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),At||(At=Q.createElement("path",{fillRule:"evenodd",d:"M18 1.2H8.71c-.99 0-1.8.8-1.8 1.8v.27c0 .96-.62 1.8-1.53 2.1l-.93.3 1.15.48c.8.34 1.31 1.12 1.31 1.98 0 .92.75 1.67 1.67 1.67H18c1 0 1.8-.8 1.8-1.8V3c0-1-.8-1.8-1.8-1.8M5.13 7.25c.35.15.58.5.58.88A2.87 2.87 0 0 0 8.58 11H18a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3H8.71a3 3 0 0 0-3 3v.27a1 1 0 0 1-.7.95L1 5.5z",clipRule:"evenodd"})),zt||(zt=Q.createElement("path",{fillRule:"evenodd",d:"M9.89 6.1H9V4.9h.89zm2.67 0h-1.78V4.9h1.78zm2.66 0h-1.78V4.9h1.78zm1.78 0h-.89V4.9H17zm4.21 10.6c0 .3.16.58.41.75L24 19l-2.23 1.09a1 1 0 0 0-.56.9 3 3 0 0 1-3 3.01H14a3 3 0 0 1-3-3v-3.89l1.06-1.1c.43-.46.53-1.05.38-1.57.45-.28.99-.44 1.56-.44h4.52a2.7 2.7 0 0 1 2.7 2.7zm-3 6.1H14c-1 0-1.8-.8-1.8-1.8v-4c0-1 .8-1.8 1.8-1.8h4.52c.82 0 1.5.67 1.5 1.5 0 .7.35 1.37.95 1.75l.6.4-.32.16A2.2 2.2 0 0 0 20 21c0 1-.8 1.81-1.8 1.81z",clipRule:"evenodd"})),Rt||(Rt=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),Vt||(Vt=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))},Yt=function(e){var t;if(e){var n=(0,fe.select)("core/block-editor").getSettings().colors,r=(0,ne.getColorObjectByAttributeValues)(n,e);t=void 0!==r.color?r.color:e}return t},Xt=function(e){var t=e.schema,n=e.setAttributes,r=e.attributes,o=e.enableAlpha,a=void 0===o||o,i=Yt(r[t]);return(0,re.jsx)(ne.ColorPalette,{value:i,enableAlpha:a,onChange:function(e){var r=(0,fe.select)("core/block-editor").getSettings().colors,o=(0,ne.getColorObjectByColorValue)(r,e);n(w({},t,void 0!==o?o.slug:e))}})},Qt=window.lodash,qt=function(e){return(0,Qt.kebabCase)(e)};function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt="undefined"!=typeof img_path&&img_path.full_path?img_path.full_path:"";function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nn,rn,on,an={apiVersion:3,name:"vk-blocks/balloon",title:"Ballon",description:"These speech balloons are perfect for recreating conversations.",category:"vk-blocks-cat",attributes:{content:{source:"html",selector:"p"},balloonName:{source:"html",selector:"figcaption"},balloonType:{type:"string",default:"type-speech"},balloonFullWidth:{type:"boolean",default:!1},balloonIconDisplay:{type:"boolean",default:!0},balloonBorder:{type:"boolean",default:!1},balloonImageBorder:{type:"boolean",default:!1},balloonBorderWidth:{type:"string",default:"thin"},balloonBorderColor:{type:"string"},balloonBgColor:{type:"string"},balloonAlign:{type:"string",default:"position-left"},IconImage:{type:"string",default:null},balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"}},textdomain:"vk-blocks",supports:{html:!1,className:!0}},ln=an.name,sn={icon:(0,re.jsx)(Zt,{}),example:{attributes:{balloonName:F,balloonType:"type-speech",balloonBgColor:"#f5f5f5",balloonAlign:"position-left",IconImage:U,balloonImageType:"normal"},innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]},edit:function(e){var t,n,r=e.attributes,o=e.setAttributes,a=r.content,i=r.balloonName,l=r.balloonType,s=r.balloonBorder,c=r.balloonFullWidth,u=r.balloonIconDisplay,d=r.balloonImageBorder,p=r.balloonBorderColor,b=r.balloonBgColor,f=r.balloonAlign,m=r.IconImage,v=r.balloonImageType,h=r.balloonAnimation,g=vk_blocks_params.balloon_meta_lists;g&&(t=Object.keys(g).map((function(e){var t=g[e],n="";return t.src&&(n=(0,re.jsx)("div",{children:(0,re.jsx)(ce.Button,{onClick:function(){o({IconImage:t.src}),o({balloonName:t.name})},className:"button button-large components-button",children:(0,re.jsx)("img",{className:"icon-image",src:t.src,alt:t.name})})},e)),n}))),"type-serif"===l&&o({balloonType:"type-speech"}),null==v&&o({balloonImageType:"normal"}),null==h&&o({balloonAnimation:"none"}),null==s&&o({balloonBorder:!1}),null==d&&o({balloonImageBorder:!1});var k="",y="",_="",x={},j={},w="",O="",C={},P={},T={};T&&(j=T,x=T),"background"in x&&delete x.background,!0===s?(n=(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsxs)("p",{className:"mb-1 block-prop-title",children:[(0,z.__)("Border","vk-blocks")," "]}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Add border to balloon","vk-blocks"),checked:s,onChange:function(e){return o({balloonBorder:e})}}),(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Image Border","vk-blocks")}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Add border to image","vk-blocks"),className:"mb-1",checked:d,onChange:function(e){return o({balloonImageBorder:e})}}),(0,re.jsxs)("p",{children:[(0,z.__)("* You can change border width on Setting > VK Blocks","vk-blocks")," "]}),(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Border color of speech balloon","vk-blocks")}),(0,re.jsx)(Xt,Jt({enableAlpha:!1,schema:"balloonBorderColor"},e))]}),k+="vk_balloon_content-border-true",!0===d?y+="vk_balloon_icon_image-border-true":y="",void 0!==p&&(y+=" has-text-color",k+=" has-text-color",St(p)||(y+=" has-".concat(qt(p),"-color"),k+=" has-".concat(qt(p),"-color"))),St(p)&&!St(b)?(j={borderColor:"".concat(p)},x={borderColor:"".concat(p)}):!St(p)&&St(b)?j={background:"".concat(b)}:St(p)&&St(b)&&(j={borderColor:"".concat(p),background:"".concat(b)},x={borderColor:"".concat(p)}),"position-left"===f?("type-speech"===l?(void 0!==b&&(w+=" has-text-color",St(b)||(w+=" has-".concat(qt(b),"-color"))),void 0!==p&&(O+=" has-text-color",St(p)||(O+=" has-".concat(qt(p),"-color")))):"type-think"===l&&(void 0!==p&&(w+=" has-text-color",St(p)||(w+=" has-".concat(qt(p),"-color"))),void 0!==p&&(O+=" has-text-color",St(p)||(O+=" has-".concat(qt(p),"-color")))),St(p)&&(P={borderColor:"transparent transparent transparent ".concat(b)}),St(b)&&(C={borderColor:"transparent ".concat(b," transparent transparent")})):"position-right"===f&&("type-speech"===l?(void 0!==b&&(w+=" has-text-color",St(b)||(w+=" has-".concat(qt(b),"-color"))),void 0!==p&&(O+=" has-text-color",St(p)||(O+=" has-".concat(qt(p),"-color")))):"type-think"===l&&void 0!==p&&(w+=" has-text-color",O+=" has-text-color",St(p)||(w+=" has-".concat(qt(p),"-color"),O+=" has-".concat(qt(p),"-color"))),St(p)&&(P={borderColor:"transparent ".concat(p," transparent transparent")}),St(b)&&(C={borderColor:"transparent transparent transparent ".concat(b)}))):(n=(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Border","vk-blocks")}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("Add border to balloon","vk-blocks"),checked:s,onChange:function(e){return o({balloonBorder:e})}})]}),y="",void 0!==b&&St(b)&&(j={background:"".concat(b)}),"position-left"===f?("type-speech"===l&&void 0!==b&&(w+=" has-text-color",St(b)||(w+=" has-".concat(qt(b),"-color"))),St(p)&&(P={borderColor:"transparent transparent transparent ".concat(b)}),St(b)&&(C={borderColor:"transparent ".concat(b," transparent transparent")})):"position-right"===f&&("type-speech"===l&&void 0!==b&&(w+=" has-text-color",St(b)||(w+=" has-".concat(qt(b),"-color"))),St(b)&&(C={borderColor:"transparent transparent transparent ".concat(b)}))),void 0!==b&&(_+=" has-background-color",St(b)||(_+=" has-".concat(qt(b),"-background-color"))),c&&(k+=" vk_balloon_content_fullwidth");var S=(0,ne.useBlockProps)({className:"vk_balloon vk_balloon-".concat(f," vk_balloon-").concat(l," vk_balloon-animation-").concat(h)});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(ne.InspectorControls,{children:[(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Balloon setting","vk-blocks"),children:[(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Position","vk-blocks")}),(0,re.jsxs)("p",{className:"mb-1",children:[(0,z.__)("Please specify the layout of the balloon.","vk-blocks")," "]}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:f,onChange:function(e){return o({balloonAlign:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"position-left",label:(0,z.__)("Left","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"position-right",label:(0,z.__)("Right","vk-blocks")})]}),(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Type","vk-blocks")}),(0,re.jsxs)("p",{className:"mb-1",children:[(0,z.__)("Please select the type of balloon.","vk-blocks")," "]}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:l,onChange:function(e){return o({balloonType:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"type-speech",label:(0,z.__)("Speech","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"type-think",label:(0,z.__)("Thinking","vk-blocks")})]}),(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Image Style","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:v,onChange:function(e){return o({balloonImageType:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"normal",label:(0,z.__)("Normal","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"rounded",label:(0,z.__)("Rounded","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"circle",label:(0,z.__)("Circle","vk-blocks")})]}),(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Width","vk-blocks")}),(0,re.jsx)(ce.ToggleControl,{label:(0,z.__)("100%","vk-blocks"),checked:c,onChange:function(e){return o({balloonFullWidth:e})}})]}),(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:"icon display"}),(0,re.jsx)(ce.ToggleControl,{label:"display",checked:u,onChange:function(e){return o({balloonIconDisplay:e})}})]}),n,(0,re.jsx)("p",{className:"mb-1 block-prop-title",children:(0,z.__)("Background color of speech balloon","vk-blocks")}),(0,re.jsx)(Xt,Jt({enableAlpha:!1,schema:"balloonBgColor"},e))]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Default Icon Setting","vk-blocks"),children:[(0,re.jsx)("div",{className:"icon-image-list mb-2",children:t}),(0,re.jsx)("div",{children:(0,z.__)("You can register default icons from Settings > VK Blocks in Admin.","vk-blocks")})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Animation setting","vk-blocks"),children:[(0,re.jsxs)("p",{className:"mb-1",children:[(0,z.__)("Please select the type of animation.","vk-blocks")," "]}),(0,re.jsx)(ce.SelectControl,{value:h,onChange:function(e){return o({balloonAnimation:e})},options:[{value:"none",label:(0,z.__)("None","vk-blocks")},{value:"trembling",label:(0,z.__)("Trembling","vk-blocks")},{value:"trembling-x",label:(0,z.__)("Trembling X","vk-blocks")},{value:"pounding",label:(0,z.__)("Pounding","vk-blocks")},{value:"shaking",label:(0,z.__)("Shaking","vk-blocks")}]})]})]}),(0,re.jsxs)("div",Jt(Jt({},S),{},{children:[u||"undefined"===u&&m?(0,re.jsxs)("div",{className:"vk_balloon_icon",children:[(0,re.jsx)(ne.MediaUpload,{onSelect:function(e){return o({IconImage:e.sizes.full.url})},type:"image",className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(v," ").concat(y),value:m,render:function(e){var t=e.open;return(0,re.jsx)(ce.Button,{onClick:t,className:"image-button",children:(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(v," ").concat(y),style:x,src:m||Kt,alt:(0,z.__)("Upload image","vk-blocks")})})}}),(0,re.jsx)(ne.RichText,{tagName:"figcaption",className:"vk_balloon_icon_name",onChange:function(e){return o({balloonName:e})},value:i,placeholder:(0,z.__)("Icon Name","vk-blocks")})]}):"",(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(_," ").concat(k),style:j,children:[(0,re.jsx)("span",{className:"vk_balloon_content_before ".concat(w),style:C}),(0,re.jsx)("span",{className:"vk_balloon_content_after ".concat(O),style:P}),(0,re.jsx)(ne.InnerBlocks,{templateLock:!1,template:[["core/paragraph",{content:a}]]})]})})]}))]})},save:function(e){var t=e.attributes,n=t.balloonName,r=t.balloonType,o=t.balloonBorder,a=t.balloonFullWidth,i=t.balloonIconDisplay,l=t.balloonImageBorder,s=t.balloonBorderColor,c=t.balloonBgColor,u=t.balloonAlign,d=t.IconImage,p=t.balloonImageType,b=t.balloonAnimation,f="",m="",v="",h={},g={},k="",y="",_={},x={},j={};j&&(g=j,h=j),"background"in h&&delete h.background;var w="undefined"!=typeof img_path&&img_path.full_path?img_path.full_path:"";!0===o?(f+="vk_balloon_content-border-true",!0===l?m+="vk_balloon_icon_image-border-true":m="",void 0!==s&&(m+=" has-text-color",f+=" has-text-color",St(s)||(m+=" has-".concat(qt(s),"-color"),f+=" has-".concat(qt(s),"-color"))),St(s)&&!St(c)?(g={borderColor:"".concat(s)},h={borderColor:"".concat(s)}):!St(s)&&St(c)?g={background:"".concat(c)}:St(s)&&St(c)&&(g={borderColor:"".concat(s),background:"".concat(c)},h={borderColor:"".concat(s)}),"position-left"===u?("type-speech"===r?(void 0!==c&&(k+=" has-text-color",St(c)||(k+=" has-".concat(qt(c),"-color"))),void 0!==s&&(y+=" has-text-color",St(s)||(y+=" has-".concat(qt(s),"-color")))):"type-think"===r&&(void 0!==s&&(k+=" has-text-color",St(s)||(k+=" has-".concat(qt(s),"-color"))),void 0!==s&&(y+=" has-text-color",St(s)||(y+=" has-".concat(qt(s),"-color")))),St(s)&&(x={borderColor:"transparent transparent transparent ".concat(c)}),St(c)&&(_={borderColor:"transparent ".concat(c," transparent transparent")})):"position-right"===u&&("type-speech"===r?(void 0!==c&&(k+=" has-text-color",St(c)||(k+=" has-".concat(qt(c),"-color"))),void 0!==s&&(y+=" has-text-color",St(s)||(y+=" has-".concat(qt(s),"-color")))):"type-think"===r&&void 0!==s&&(k+=" has-text-color",y+=" has-text-color",St(s)||(k+=" has-".concat(qt(s),"-color"),y+=" has-".concat(qt(s),"-color"))),St(s)&&(x={borderColor:"transparent ".concat(s," transparent transparent")}),St(c)&&(_={borderColor:"transparent transparent transparent ".concat(c)}))):void 0!==c&&(m="",void 0!==c&&St(c)&&(g={background:"".concat(c)}),"position-left"===u?("type-speech"===r&&void 0!==c&&(k+=" has-text-color",St(c)||(k+=" has-".concat(qt(c),"-color"))),St(s)&&(x={borderColor:"transparent transparent transparent ".concat(c)}),St(c)&&(_={borderColor:"transparent ".concat(c," transparent transparent")})):"position-right"===u&&("type-speech"===r&&void 0!==c&&(k+=" has-text-color",St(c)||(k+=" has-".concat(qt(c),"-color"))),St(c)&&(_={borderColor:"transparent transparent transparent ".concat(c)}))),void 0!==c&&(v+=" has-background-color",St(c)||(v+=" has-".concat(qt(c),"-background-color"))),a&&(f+=" vk_balloon_content_fullwidth");var O=ne.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(u," vk_balloon-").concat(r," vk_balloon-animation-").concat(b)});return(0,re.jsxs)("div",tn(tn({},O),{},{children:[(0,re.jsx)("div",{className:"vk_balloon_icon",children:i||"undefined"===i&&d?(0,re.jsxs)("figure",{children:[(0,re.jsx)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(p," ").concat(m),style:h,src:d||w,alt:""}),(0,re.jsx)(ne.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})]}):""}),(0,re.jsx)("div",{className:"vk_balloon_content_outer",children:(0,re.jsxs)("div",{className:"vk_balloon_content ".concat(v," ").concat(f),style:g,children:[(0,re.jsx)("span",{className:"vk_balloon_content_before ".concat(k),style:_}),(0,re.jsx)("span",{className:"vk_balloon_content_after ".concat(y),style:x}),(0,re.jsx)(ne.InnerBlocks.Content,{})]})})]}))},deprecated:Gt};function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(null,arguments)}var un=function(e){return Q.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),nn||(nn=Q.createElement("path",{fillRule:"evenodd",d:"M1 1a1 1 0 0 0-1 1v11.28h1.5V7.5h21v13H10.2l.46 1.5H23a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-9V2a1 1 0 0 0-1-1zm9 3.75H4v-1.5h6z",clipRule:"evenodd"})),rn||(rn=Q.createElement("path",{d:"M.87 22 0 19.47V21c0 .5.38.93.87 1m9.76-4.5H20v-1h-8.42zm1.82-3H20v-1h-8.29c.38.22.64.59.74 1m7.55-3v-1H4v1zm-9.11 3.28H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),on||(on=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))},dn=n(942),pn=n.n(dn);function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tn,Sn,En,Nn={heading:{type:"string",source:"html",selector:"h4"},color:{type:"string",default:"red"},faIcon:{type:"string",default:""},bgColor:{type:"string",default:"transparent"},borderColor:{type:"string"}},Bn=Pn(Pn({},Nn),{},{color:{type:"string"}}),In=Pn(Pn({},Bn),{},{bodyAlign:{type:"string"}}),Mn=[{attributes:In,save:function(e){var t=e.attributes,n=t.heading,r=t.headingTag,o=t.faIcon,a=t.color,i=t.bgColor,l=t.borderColor,s=t.bodyAlign,c=(0,re.jsx)(ne.InnerBlocks.Content,{}),u=(0,re.jsx)(ne.RichText.Content,{tagName:r,className:"vk_borderBox_title",value:n}),d=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(qt(a)),!!a),"vk_borderBox-background-".concat(qt(i)),!!i),"has-text-color",!!l),"has-".concat(qt(l),"-color"),!!l&&!St(l))),p={};void 0!==l&&St(l)&&(p={color:"".concat(l)});var b=ne.useBlockProps.save({className:d,style:p});-1===b.className.indexOf("is-style-")&&(b.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var f=!1;(-1<b.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<b.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<b.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(f=!0);var m,v=pn()("vk_borderBox_title_container",w(w({},"has-background",f&&!!l),"has-".concat(qt(l),"-background-color"),f&&!!l&&!St(l))),h={};if(f&&void 0!==l&&St(l)&&(h={backgroundColor:"".concat(l)}),-1<b.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!a){var g="",k=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!l),"has-".concat(qt(l),"-background-color"),!!l&&!St(l)));void 0!==l&&St(l)&&(g="background-color: ".concat(l,";")),m='<div class="'.concat(pn()(k),'" style="').concat(g,'">').concat(o,"</div>")}else m=-1===o.indexOf('<i class="')?'<i class="'.concat(o,'"></i>'):o;var y=pn()("vk_borderBox_body",w({},"vk_borderBox_body-align-".concat(s),!!s));return(0,re.jsxs)("div",On(On({},b),{},{children:[(0,re.jsxs)("div",{className:v,style:h,children:[ye(m),u]}),(0,re.jsx)("div",{className:y,children:c})]}))}},{attributes:In,save:function(e){var t=e.attributes,n=t.heading,r=t.faIcon,o=t.color,a=t.bgColor,i=t.borderColor,l=t.bodyAlign,s=(0,re.jsx)(ne.InnerBlocks.Content,{}),c=(0,re.jsx)(ne.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:n,"ß":!0}),u=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(o),!!o),"vk_borderBox-background-".concat(a),!!a),"has-text-color",!!i),"has-".concat(i,"-color"),!!i&&!St(i))),d={};void 0!==i&&St(i)&&(d={color:"".concat(i)});var p=ne.useBlockProps.save({className:u,style:d});-1===p.className.indexOf("is-style-")&&(p.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var b=!1;(-1<p.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<p.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<p.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(b=!0);var f,m=pn()("vk_borderBox_title_container",w(w({},"has-background",b&&!!i),"has-".concat(i,"-background-color"),b&&!!i&&!St(i))),v={};if(b&&void 0!==i&&St(i)&&(v={backgroundColor:"".concat(i)}),-1<p.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!o){var h="",g=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!i),"has-".concat(i,"-background-color"),!!i&&!St(i)));void 0!==i&&St(i)&&(h="background-color: ".concat(i,";")),f='<div class="'.concat(pn()(g),'" style="').concat(h,'">').concat(r,"</div>")}else f=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r;var k=pn()("vk_borderBox_body",w({},"vk_borderBox_body-align-".concat(l),!!l));return(0,re.jsxs)("div",jn(jn({},p),{},{children:[(0,re.jsxs)("div",{className:m,style:v,children:[ye(f),c]}),(0,re.jsx)("div",{className:k,children:s})]}))}},{attributes:Bn,save:function(e){var t=e.attributes,n=t.heading,r=t.faIcon,o=t.color,a=t.bgColor,i=t.borderColor,l=(0,re.jsx)(ne.InnerBlocks.Content,{}),s=(0,re.jsx)(ne.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:n,"ß":!0}),c=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(o),!!o),"vk_borderBox-background-".concat(a),!!a),"has-text-color",!!i),"has-".concat(i,"-color"),!!i&&!St(i))),u={};void 0!==i&&St(i)&&(u={color:"".concat(i)});var d=ne.useBlockProps.save({className:c,style:u});-1===d.className.indexOf("is-style-")&&(d.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var p=!1;(-1<d.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<d.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<d.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(p=!0);var b,f=pn()("vk_borderBox_title_container",w(w({},"has-background",p&&!!i),"has-".concat(i,"-background-color"),p&&!!i&&!St(i))),m={};if(p&&void 0!==i&&St(i)&&(m={backgroundColor:"".concat(i)}),-1<d.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!o){var v="",h=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!i),"has-".concat(i,"-background-color"),!!i&&!St(i)));void 0!==i&&St(i)&&(v="background-color: ".concat(i,";")),b='<div class="'.concat(pn()(h),'" style="').concat(v,'">').concat(r,"</div>")}else b=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r;return(0,re.jsxs)("div",yn(yn({},d),{},{children:[(0,re.jsxs)("div",{className:f,style:m,children:[ye(b),s]}),(0,re.jsx)("div",{className:"vk_borderBox_body",children:l})]}))}},{attributes:Nn,save:function(e){var t,n=e.attributes,r=n.heading,o=n.color,a=n.faIcon,i=n.bgColor,l=(0,re.jsx)(ne.InnerBlocks.Content,{}),s=(0,re.jsx)(ne.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:r}),c=ne.useBlockProps.save({className:"vk_borderBox vk_borderBox-color-".concat(o," vk_borderBox-background-").concat(i)});return-1===c.className.indexOf("is-style-")&&(c.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab"),t=-1===a.indexOf('<i class="')?'<i class="'.concat(a,'"></i>'):a,(0,re.jsxs)("div",gn(gn({},c),{},{children:[(0,re.jsxs)("div",{className:"vk_borderBox_title_container",children:[ye(t),s]}),(0,re.jsx)("div",{className:"vk_borderBox_body",children:l})]}))}}],Dn=Mn,An={apiVersion:3,name:"vk-blocks/border-box",title:"Border Box",category:"vk-blocks-cat",attributes:{heading:{type:"string",source:"html",selector:"h3,h4,h5,h6,p",__experimentalRole:"content"},headingTag:{type:"string",default:"h4"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"h3,h4,h5,h6"},includeInToc:{type:"boolean",default:!1},color:{type:"string"},borderColor:{type:"string"},bgColor:{type:"string",default:"transparent"},faIcon:{type:"string",default:""},bodyAlign:{type:"string"}},description:"This is a border box where you can place headings to attract attention.",textdomain:"vk-blocks",supports:{html:!1,className:!0}},zn=An.name,Rn={icon:(0,re.jsx)(un,{}),category:"vk-blocks-cat",example:{attributes:{heading:R,faIcon:L},innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]},styles:[{name:"vk_borderBox-style-solid-kado-tit-tab",label:(0,z.__)("Solid Angle Tab","vk-blocks"),isDefault:!0},{name:"vk_borderBox-style-solid-round-tit-tab",label:(0,z.__)("Solid Round Tab","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-banner",label:(0,z.__)("Solid Angle Banner","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-onborder",label:(0,z.__)("Solid Angle Onborder","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-inner",label:(0,z.__)("Solid Angle Inner","vk-blocks")},{name:"vk_borderBox-style-solid-kado-iconFeature",label:(0,z.__)("Solid Angle iconFeature","vk-blocks")}],edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.heading,o=t.headingTag,a=t.anchor,i=t.includeInToc,l=t.faIcon,s=t.color,c=t.bgColor,u=t.borderColor,d=t.bodyAlign,p=vkFontAwesome.iconFamily,b=(0,de.useRef)(!1);(0,de.useEffect)((function(){b.current||(r&&""!==r.trim()||n({includeInToc:!0}),b.current=!0)}),[i,n,r]);var f=(0,re.jsx)(ne.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]}),m=(0,re.jsx)(ne.RichText,{tagName:o,identifier:"heading",className:"vk_borderBox_title",onChange:function(e){return n({heading:e})},value:r,placeholder:(0,z.__)("Please enter a title.","vk-blocks"),id:"p"===o?void 0:a}),v=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(qt(s)),!!s),"vk_borderBox-background-".concat(qt(c)),!!c),"has-text-color",!!u),"has-".concat(qt(u),"-color"),!!u&&!St(u))),h={};void 0!==u&&St(u)&&(h={color:"".concat(u)});var g=(0,ne.useBlockProps)({className:pn()(v),style:h});-1===g.className.indexOf("is-style-")&&(g.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var k={red:"#dc3545",orange:"#ffa536",blue:"#4267b2",green:"#28a745",black:"#222222"};if(s)n({borderColor:k[s]}),n({color:""});else if(t.className&&t.className.match(/vk_borderBox-color-\w*/)){var y=t.className.split(" ").filter((function(e){return!e.match(/vk_borderBox-color-\w*/)}));n({className:pn()(y)}),n({borderColor:k.red})}var _=!1;(-1<g.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<g.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<g.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(_=!0);var x,j=pn()("vk_borderBox_title_container",w(w({},"has-background",_&&!!u),"has-".concat(qt(u),"-background-color"),_&&!!u&&!St(u))),O={};if(_&&void 0!==u&&St(u)&&(O={backgroundColor:"".concat(u)}),-1<g.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!s){var C="",P=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!u),"has-".concat(qt(u),"-background-color"),!!u&&!St(u)));void 0!==u&&St(u)&&(C="background-color: ".concat(u,";")),x='<div class="'.concat(pn()(P),'" style="').concat(C,'">').concat(l,"</div>")}else x=-1===l.indexOf('<i class="')?'<i class="'.concat(l,'"></i>'):l;var T=pn()("vk_borderBox_body",w({},"vk_borderBox_body-align-".concat(d),!!d));return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.BlockControls,{group:"block",children:(0,re.jsx)(ne.BlockAlignmentControl,{value:d,onChange:function(e){return n({bodyAlign:e})},controls:["left","center","right"]})}),(0,re.jsxs)(ne.InspectorControls,{children:[(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Margin","vk-blocks"),initialOpen:!1,children:(0,re.jsx)(ce.BaseControl,{children:(0,re.jsx)("p",{children:(0,z.__)("The margin-top of the first element and the margin-bottom of the last element in the border block will be automatically set to 0.If you want to add margins at the beginning and end, use a spacer block to specify height instead of margin.","vk-blocks")})})}),(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("HTML element of the title","vk-blocks"),initialOpen:!1,children:(0,re.jsx)(ce.BaseControl,{children:(0,re.jsx)(ce.SelectControl,{label:(0,z.__)("HTML element of the title","vk-blocks"),value:o,options:[{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"p",value:"p"}],onChange:function(e){var t={headingTag:e};"p"===e&&a&&(t.anchor=""),n(t)}})})}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Color","vk-blocks"),children:[(0,re.jsx)(ce.BaseControl,{id:"border-color",label:(0,z.__)("Border Color","vk-blocks"),children:(0,re.jsx)(Xt,fn({schema:"borderColor"},e))}),(0,re.jsx)(ce.BaseControl,{id:"background-color",label:(0,z.__)("Background Color","vk-blocks"),children:(0,re.jsx)(ce.SelectControl,{value:c,onChange:function(e){return n({bgColor:e})},options:[{value:"transparent",label:(0,z.__)("Transparent","vk-blocks")},{value:"white",label:(0,z.__)("White","vk-blocks")}]})})]}),(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Icon","vk-blocks"),children:(0,re.jsx)(ce.BaseControl,{id:"dot-fa",label:(0,z.__)("Icon","vk-blocks")+" ( "+p+" )",children:(0,re.jsx)(Ze,{attributeName:"faIcon",attributes:t,setAttributes:n})})})]}),(0,re.jsxs)("div",fn(fn({},g),{},{children:[(0,re.jsxs)("div",{className:pn()(j),style:O,children:[ye(x),m]}),(0,re.jsx)("div",{className:T,children:f})]}))]})},save:function(e){var t=e.attributes,n=t.heading,r=t.headingTag,o=t.anchor,a=t.faIcon,i=t.color,l=t.bgColor,s=t.borderColor,c=t.bodyAlign,u=(0,re.jsx)(ne.InnerBlocks.Content,{}),d=(0,re.jsx)(ne.RichText.Content,{tagName:r,className:"vk_borderBox_title",value:n,id:"p"===r?void 0:o}),p=pn()("vk_borderBox",w(w(w(w({},"vk_borderBox-color-".concat(qt(i)),!!i),"vk_borderBox-background-".concat(qt(l)),!!l),"has-text-color",!!s),"has-".concat(qt(s),"-color"),!!s&&!St(s))),b={};void 0!==s&&St(s)&&(b={color:"".concat(s)});var f=ne.useBlockProps.save({className:p,style:b});-1===f.className.indexOf("is-style-")&&(f.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var m=!1;(-1<f.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<f.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<f.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(m=!0);var v,h=pn()("vk_borderBox_title_container",w(w({},"has-background",m&&!!s),"has-".concat(qt(s),"-background-color"),m&&!!s&&!St(s))),g={};if(m&&void 0!==s&&St(s)&&(g={backgroundColor:"".concat(s)}),-1<f.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!i){var k="",y=pn()("vk_borderBox_icon_border",w(w({},"has-background",!!s),"has-".concat(qt(s),"-background-color"),!!s&&!St(s)));void 0!==s&&St(s)&&(k="background-color: ".concat(s,";")),v='<div class="'.concat(pn()(y),'" style="').concat(k,'">').concat(a,"</div>")}else v=-1===a.indexOf('<i class="')?'<i class="'.concat(a,'"></i>'):a;var _=pn()("vk_borderBox_body",w({},"vk_borderBox_body-align-".concat(c),!!c));return(0,re.jsxs)("div",vn(vn({},f),{},{children:[(0,re.jsxs)("div",{className:h,style:g,children:[ye(v),d]}),(0,re.jsx)("div",{className:_,children:u})]}))},deprecated:Dn};function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vn.apply(null,arguments)}var Fn=function(e){return Q.createElement("svg",Vn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Tn||(Tn=Q.createElement("path",{d:"M5 8h14c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-6.94l-1.43 1.5H19a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v4.78h.27l.24-.69c.17-.47.54-.83.99-1V8.5c0-.28.22-.5.5-.5"})),Sn||(Sn=Q.createElement("path",{d:"M8.5 12.5a1.6 1.6 0 0 0-.5-.68v-.32h8v1zm2.39 2.28H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),En||(En=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))};function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Un=function(){return!!e})()}var Hn=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Un()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbRelAttribute,c=this.props.lbFontAwesomeIconBefore,u=this.props.lbFontAwesomeIconAfter,d=this.props.lbIconSizeBefore,p=this.props.lbIconSizeAfter,b=this.props.lbRichtext,f=this.props.lbsubCaption,m=this.props.inlineStyle,v=this.props.borderRadius,h="",g="",k="";if(h="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?h+=" btn has-background has-vk-color-".concat(n,"-background-color"):(h+=" btn has-background",St(t)||(h+=" has-".concat(qt(t),"-background-color"))),"custom"===n&&void 0!==e&&(h+=" btn has-text-color",St(e)||(h+=" has-".concat(qt(e),"-color")))):"1"===r?"custom"!==n&&void 0===t?h+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(h+=" btn has-text-color is-style-outline",St(t)||(h+=" has-".concat(qt(t),"-color"))):"2"===r&&("custom"!==n&&void 0===t?h+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(h+=" has-text-color vk_button_link-type-text",St(t)||(h+=" has-".concat(qt(t),"-color")))),h="".concat(h," btn-").concat(a),"block"===o&&(h="".concat(h," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),u&&!u.match(/<i/)&&(u='<i class="'.concat(u,'"></i>')),c){var y=c.match(/class="(.*?)"/)[1];y+=" vk_button_link_before";var _=d?" style='font-size: ".concat(d,"'"):"";g='<i class="'.concat(y,'"').concat(_,"></i>")}if(u){var x=u.match(/class="(.*?)"/)[1];x+=" vk_button_link_after";var j=p?" style='font-size: ".concat(p,"'"):"";k='<i class="'.concat(x,'"').concat(j,"></i>")}var O=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},m);v&&(O.borderRadius=v);var C="noopener";return s&&(C=s.includes("noopener")?s:"".concat(s," noopener")),(0,re.jsxs)("a",{href:i,style:O,className:h,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:C,children:[(0,re.jsxs)("div",{className:"vk_button_link_caption",children:[ye(g),b,ye(k)]}),f&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:f})]})}}])}(de.Component),Gn=function(e){return!!(0,fe.select)("core/block-editor").getBlockParentsByBlockName(e,["core/block"]).length},Wn=(0,re.jsx)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(me.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),Zn=(0,re.jsx)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})}),Yn=(0,re.jsx)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(me.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})}),Xn=(0,re.jsx)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,re.jsx)(me.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),Qn=(0,re.jsx)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",children:(0,re.jsx)(me.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),qn=function(e){var t=e.linkUrl,n=e.linkTitle,r=e.icon,o=e.linkTarget,a=e.onRemove,i=e.onCopy,l=e.relAttribute,s=e.linkDescription,c=t.startsWith("http://")||t.startsWith("https://")||t.startsWith("tel:")||t.startsWith("mailto:")?t:"http://"+t;return(0,re.jsx)("div",{"aria-label":(0,z.__)("Currently selected","vk-blocks"),className:"block-editor-link-control__search-item is-current is-rich is-preview",children:(0,re.jsxs)("div",{className:"block-editor-link-control__search-item-top",children:[(0,re.jsxs)("span",{className:"block-editor-link-control__search-item-header",children:[(0,re.jsx)("span",{className:"block-editor-link-control__search-item-icon is-image",children:r}),(0,re.jsxs)("span",{className:"block-editor-link-control__search-item-details",children:[(0,re.jsx)("a",{className:"components-external-link block-editor-link-control__search-item-title",href:c,target:o,rel:l,"aria-label":s,children:(0,re.jsx)("span",{"data-wp-c16t":"true","data-wp-component":"Truncate",className:"components-truncate af-dc---cacbf-19ok06l e19lxcc00",children:n})}),(0,re.jsx)("span",{className:"block-editor-link-control__search-item-info",children:(0,re.jsx)("span",{"data-wp-c16t":"true","data-wp-component":"Truncate",className:"components-truncate af-dc---cacbf-19ok06l e19lxcc00",children:t})})]})]}),(0,re.jsx)(ce.Tooltip,{text:(0,z.__)("Deleting Link","vk-blocks"),children:(0,re.jsx)("button",{type:"button",className:"components-button is-compact has-icon","aria-label":(0,z.__)("Deleting Link","vk-blocks"),onClick:a,children:(0,re.jsx)("span",{style:{width:"24px",height:"24px"},children:Wn})})}),(0,re.jsx)(ce.Tooltip,{text:(0,z.sprintf)( 2 2 // translators: %s is the link URL 3 3 // translators: %s is the link URL 4 (0,z.__)("Copy link: %s","vk-blocks"),t),children:(0,re.jsx)("button",{type:"button",className:"components-button is-compact has-icon","aria-label":(0,z.__)("Copy link","vk-blocks"),onClick:function(){return i(t)},children:(0,re.jsx)("span",{style:{width:"24px",height:"24px"},children:Zn})})})]})})},$n=function(e){var t=e.linkUrl,n=e.setLinkUrl,r=e.linkTarget,o=e.setLinkTarget,a=e.linkDescription,i=e.setLinkDescription,l=e.relAttribute,s=e.setRelAttribute,c=ue((0,Q.useState)(!1),2),u=c[0],d=c[1],p=ue((0,Q.useState)(""),2),b=p[0],f=p[1], v=ue((0,Q.useState)(null),2),m=v[0],h=v[1],g=ue((0,Q.useState)(!1),2),k=g[0],y=g[1],_=ue((0,Q.useState)(!0),2),x=_[0],j=_[1],w=ue((0,Q.useState)(""),2),O=w[0],C=w[1];(0,Q.useEffect)((function(){if(t){var e=E(t),n=!e.startsWith(window.location.origin)&&!e.startsWith("#");if(n?f(e):function(e){return e.startsWith("#")?Promise.resolve(e):fetch(e,{method:"GET"}).then((function(e){return e.text()})).then((function(t){var n=t.match(/<title>(.*?)<\/title>/i);return n?n[1]:e})).catch((function(){return e}))}(e).then((function(e){f(e)})),n)h(Yn);else if(e.startsWith("#"))h(Yn);else try{var r=new URL(e).origin,o="".concat(r,"/favicon.ico");h((0,re.jsx)("img",{src:o,alt:"",style:{width:"16px",height:"16px"}}))}catch(e){h(Xn)}}}),[t]),(0,Q.useEffect)((function(){j(!t||""===t.trim())}),[t]);var P=function(){u?""===t&&d(!1):d(!0)},T=function(){n(""),o(""),d(!1)},S=function(e){var t=e.startsWith("#")?e:E(e);if("undefined"!=typeof window&&window.navigator.clipboard)window.navigator.clipboard.writeText(t).then((function(){C((0,z.__)("Link copied to clipboard.","vk-blocks")),y(!0),setTimeout((function(){return y(!1)}),3e3)})).catch((function(){}));else{var n=document.createElement("textarea");n.value=t,document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n),C((0,z.__)("Link copied to clipboard.","vk-blocks")),y(!0),setTimeout((function(){return y(!1)}),3e3)}},E=function(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")||e.startsWith("#")||e.startsWith("tel:")||e.startsWith("mailto:")||""===e?e:"http://"+e},N=function(e,t){var n=l?l.split(" "):[];if(t)n.push(e);else{var r=n.indexOf(e);-1!==r&&n.splice(r,1)}s(n.join(" "))};return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ce.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return(0,re.jsx)(ce.ToolbarButton,{"aria-expanded":n,icon:n?Wn:Xn,isActive:!!t,label:n?(0,z.__)("Unlink","vk-blocks"):(0,z.__)("Input Link URL","vk-blocks"),onClick:function(){P(),r()},className:t?"is-pressed":""})},renderContent:function(e){var c=e.onClose;return(0,re.jsxs)("div",{children:[t&&(0,re.jsx)(qn,{linkUrl:E(t),linkTitle:b,icon:m,linkTarget:r,onRemove:T,onCopy:S}),(0,re.jsxs)("form",{onSubmit:function(e){e.preventDefault(),t&&n(E(t)),c()},children:[(0,re.jsxs)("div",{className:"vk-block-editor-url-input-wrapper",children:[(0,re.jsx)(ne.URLInput,{__nextHasNoMarginBottom:!0,value:t,onChange:function(e){return n(e)}}),(0,re.jsx)(ce.Button,{icon:Qn,label:(0,z.__)("Submit","vk-blocks"),type:"submit",disabled:x})]}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Open link new tab","vk-blocks"),checked:"_blank"===r,onChange:function(e){return o(e?"_blank":"")}}),void 0!==l&&"function"==typeof s&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Add noreferrer","vk-blocks"),checked:l.includes("noreferrer")||!1,onChange:function(e){return N("noreferrer",e)}}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Add nofollow","vk-blocks"),checked:l.includes("nofollow")||!1,onChange:function(e){return N("nofollow",e)}})]}),void 0!==a&&"function"==typeof i&&(0,re.jsx)(ce.TextControl,{label:(0,z.__)("Accessibility link description","vk-blocks"),value:a,onChange:function(e){return i(e)}})]})]})}}),k&&(0,re.jsx)("div",{"aria-live":"polite",style:{position:"fixed",bottom:"-3.5rem",right:"0",zIndex:9999,background:"#000",color:"#fff",padding:"10px",borderRadius:"4px",fontSize:"12px",lineHeight:"1.2"},children:(0,z.__)("Link copied to clipboard.","vk-blocks")}),(0,re.jsx)("div",{"aria-live":"polite",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0,0,0,0)",border:"0"},children:O})]})};function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nr=function(){return!!e})()}var rr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,nr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,r=this.props.lbAlign,o=this.props.lbSize,a=this.props.lbUrl,i=this.props.lbTarget,l=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,c=this.props.lbRichtext,u=this.props.lbsubCaption,d="",p={},b="",f="";if(p=null,d="".concat(d="vk_button_link","0"===n||null===n||"1"===n?" btn":" vk_button_link-type-text"),"0"===n||null===n?"undefined"===e||null==e?(d="".concat(d," btn-").concat(t),p=null):p={backgroundColor:"".concat(e),border:"1px solid ".concat(e),color:"#fff"}:"1"===n?"undefined"===e||null==e?(d="".concat(d," btn-outline-").concat(t),p=null):p={backgroundColor:"transparent",border:"1px solid ".concat(e),color:"".concat(e)}:"2"===n&&("undefined"===e||null==e?(d="".concat(d," btn-outline-").concat(t),p=null):p={color:"".concat(e)}),d="".concat(d," btn-").concat(o),"block"===r&&(d="".concat(d," btn-block")),l&&!l.match(/<i/)&&(l='<i class="'.concat(l,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),l){var v=(l=l.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_before ",b=v.join("")}if(s){var m=(s=s.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_after ",f=m.join("")}return(0,re.jsxs)("a",{href:a,style:p,className:d,role:"button","aria-pressed":!0,target:i?"_blank":null,rel:"noopener",children:[ye(b),c,ye(f),u&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:u})]})}}])}(de.Component);function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ir=function(){return!!e})()}var lr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,ir()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,r=this.props.lbAlign,o=this.props.lbSize,a=this.props.lbUrl,i=this.props.lbTarget,l=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,c=this.props.lbRichtext,u=this.props.lbsubCaption,d="",p="",b="";if(d="vk_button_link","0"!==n&&null!==n&&"1"!==n&&(d+=" vk_button_link-type-text"),"0"===n||null===n?"custom"!==t&&void 0===e?d+=" vk_button_btn has-background has-vk-color-".concat(t,"-background-color"):(d+=" has-background",St(e)?d+=" vk_button_btn":d+=" vk_button_btn has-".concat(e,"-background-color")):"1"===n?"custom"!==t&&void 0===e?d+=" vk_button_btn has-text-color has-vk-color-".concat(t,"-color is-style-outline"):(d+=" has-text-color",St(e)?d+=" vk_button_btn":d+=" vk_button_btn has-".concat(e,"-color is-style-outline")):"2"===n&&("custom"!==t&&void 0===e?d+=" has-text-color has-vk-color-".concat(t,"-color"):(d+=" has-text-color",St(e)?d+="":d+=" has-".concat(e,"-color"))),d="".concat(d," btn-").concat(o),"block"===r&&(d="".concat(d," btn-block")),l&&!l.match(/<i/)&&(l='<i class="'.concat(l,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),l){var f=(l=l.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(s){var v=(s=s.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_after ",b=v.join("")}return(0,re.jsxs)("a",{href:a,style:null,className:d,role:"button","aria-pressed":!0,target:i?"_blank":null,rel:"noopener",children:[ye(p),c,ye(b),u&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:u})]})}}])}(de.Component);function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ur=function(){return!!e})()}var dr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,ur()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,r=this.props.lbAlign,o=this.props.lbSize,a=this.props.lbUrl,i=this.props.lbTarget,l=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,c=this.props.lbRichtext,u=this.props.lbsubCaption,d="",p="",b="";if(d="vk_button_link","0"===n||null===n?"custom"!==t&&void 0===e?d+=" btn has-background has-vk-color-".concat(t,"-background-color"):(d+=" btn has-background",St(e)||(d+=" has-".concat(e,"-background-color"))):"1"===n?"custom"!==t&&void 0===e?d+=" btn has-text-color is-style-outline has-vk-color-".concat(t,"-color"):(d+=" btn has-text-color is-style-outline",St(e)||(d+=" has-".concat(e,"-color"))):"2"===n&&("custom"!==t&&void 0===e?d+=" has-text-color vk_button_link-type-text has-vk-color-".concat(t,"-color"):(d+=" has-text-color vk_button_link-type-text",St(e)||(d+=" has-".concat(e,"-color")))),d="".concat(d," btn-").concat(o),"block"===r&&(d="".concat(d," btn-block")),l&&!l.match(/<i/)&&(l='<i class="'.concat(l,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),l){var f=(l=l.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(s){var v=(s=s.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_after ",b=v.join("")}return(0,re.jsxs)("a",{href:a,style:null,className:d,role:"button","aria-pressed":!0,target:i?"_blank":null,rel:"noopener",children:[ye(p),c,ye(b),u&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:u})]})}}])}(de.Component);function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fr=function(){return!!e})()}var vr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,fr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,r=this.props.lbAlign,o=this.props.lbSize,a=this.props.lbUrl,i=this.props.lbTarget,l=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,c=this.props.lbRichtext,u=this.props.lbsubCaption,d="",p="",b="";if(d="vk_button_link","0"===n||null===n?"custom"!==t&&void 0===e?d+=" btn has-background has-vk-color-".concat(t,"-background-color"):(d+=" btn has-background",St(e)||(d+=" has-".concat(e,"-background-color"))):"1"===n?"custom"!==t&&void 0===e?d+=" btn has-text-color is-style-outline has-vk-color-".concat(t,"-color"):(d+=" btn has-text-color is-style-outline",St(e)||(d+=" has-".concat(e,"-color"))):"2"===n&&("custom"!==t&&void 0===e?d+=" has-text-color vk_button_link-type-text has-vk-color-".concat(t,"-color"):(d+=" has-text-color vk_button_link-type-text",St(e)||(d+=" has-".concat(e,"-color")))),d="".concat(d," btn-").concat(o),"block"===r&&(d="".concat(d," btn-block")),l&&!l.match(/<i/)&&(l='<i class="'.concat(l,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),l){var f=(l=l.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(s){var v=(s=s.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_after ",b=v.join("")}return(0,re.jsxs)("a",{href:a,style:null,className:d,role:"button","aria-pressed":!0,target:i?"_blank":null,rel:"noopener",children:[ye(p),c,ye(b),u&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:u})]})}}])}(de.Component);function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gr=function(){return!!e})()}var kr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,gr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,d=this.props.lbsubCaption,p="",b="",f="";if(p="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",St(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",St(e)||(p+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",St(t)||(p+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",St(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(a),"block"===o&&(p="".concat(p," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var v=(s=s.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_before ",b=v.join("")}if(c){var m=(c=c.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_after ",f=m.join("")}return(0,re.jsxs)("a",{href:i,style:null,className:p,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[ye(b),u,ye(f),d&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:d})]})}}])}(de.Component);function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xr=function(){return!!e})()}var jr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,xr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,d=this.props.lbsubCaption,p="",b="",f="";if(p="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",St(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",St(e)||(p+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",St(t)||(p+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",St(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(a),"block"===o&&(p="".concat(p," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var v=(s=s.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_before ",b=v.join("")}if(c){var m=(c=c.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_after ",f=m.join("")}return(0,re.jsxs)("a",{href:i,style:null,className:p,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[ye(b),u,ye(f),d&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:d})]})}}])}(de.Component);function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cr=function(){return!!e})()}var Pr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Cr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,d=this.props.lbsubCaption,p="",b="",f="";if(p="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",St(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",St(e)||(p+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",St(t)||(p+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",St(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(a),"block"===o&&(p="".concat(p," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var v=s.match(/class="(.*?)"/)[1];b='<i class="'.concat(v+=" vk_button_link_before",'"></i>')}if(c){var m=c.match(/class="(.*?)"/)[1];f='<i class="'.concat(m+=" vk_button_link_after",'"></i>')}return(0,re.jsxs)("a",{href:i,style:null,className:p,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[ye(b),u,ye(f),d&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:d})]})}}])}(de.Component);function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Er=function(){return!!e})()}var Nr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Er()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,d=this.props.lbsubCaption,p="",b="",f="";if(p="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",St(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",St(e)||(p+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",St(t)||(p+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",St(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(a),"block"===o&&(p="".concat(p," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var v=s.match(/class="(.*?)"/)[1];b='<i class="'.concat(v+=" vk_button_link_before",'"></i>')}if(c){var m=c.match(/class="(.*?)"/)[1];f='<i class="'.concat(m+=" vk_button_link_after",'"></i>')}return(0,re.jsxs)("a",{href:i,style:null,className:p,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[ye(b),u,ye(f),d&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:d})]})}}])}(de.Component);function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mr=function(){return!!e})()}var Dr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Mr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbIconSizeBefore,d=this.props.lbIconSizeAfter,p=this.props.lbRichtext,b=this.props.lbsubCaption,f="",v="",m="";if(f="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?f+=" btn has-background has-vk-color-".concat(n,"-background-color"):(f+=" btn has-background",St(t)||(f+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(f+=" btn has-text-color",St(e)||(f+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?f+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(f+=" btn has-text-color is-style-outline",St(t)||(f+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?f+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(f+=" has-text-color vk_button_link-type-text",St(t)||(f+=" has-".concat(t,"-color")))),f="".concat(f," btn-").concat(a),"block"===o&&(f="".concat(f," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var h=s.match(/class="(.*?)"/)[1];h+=" vk_button_link_before";var g=u?" style='font-size: ".concat(u,"'"):"";v='<i class="'.concat(h,'"').concat(g,"></i>")}if(c){var k=c.match(/class="(.*?)"/)[1];k+=" vk_button_link_after";var y=d?" style='font-size: ".concat(d,"'"):"";m='<i class="'.concat(k,'"').concat(y,"></i>")}return(0,re.jsxs)("a",{href:i,style:null,className:f,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[(0,re.jsxs)("div",{className:"vk_button_link_caption",children:[ye(v),p,ye(m)]}),b&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:b})]})}}])}(de.Component);function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rr=function(){return!!e})()}var Vr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Rr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbIconSizeBefore,d=this.props.lbIconSizeAfter,p=this.props.lbRichtext,b=this.props.lbsubCaption,f="",v="",m="";if(f="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?f+=" btn has-background has-vk-color-".concat(n,"-background-color"):(f+=" btn has-background",St(t)||(f+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(f+=" btn has-text-color",St(e)||(f+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?f+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(f+=" btn has-text-color is-style-outline",St(t)||(f+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?f+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(f+=" has-text-color vk_button_link-type-text",St(t)||(f+=" has-".concat(t,"-color")))),f="".concat(f," btn-").concat(a),"block"===o&&(f="".concat(f," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var h=s.match(/class="(.*?)"/)[1];h+=" vk_button_link_before";var g=u?" style='font-size: ".concat(u,"'"):"";v='<i class="'.concat(h,'"').concat(g,"></i>")}if(c){var k=c.match(/class="(.*?)"/)[1];k+=" vk_button_link_after";var y=d?" style='font-size: ".concat(d,"'"):"";m='<i class="'.concat(k,'"').concat(y,"></i>")}return(0,re.jsxs)("a",{href:i,style:null,className:f,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[(0,re.jsxs)("div",{className:"vk_button_link_caption",children:[ye(v),p,ye(m)]}),b&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:b})]})}}])}(de.Component);function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ur(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ur=function(){return!!e})()}var Hr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Ur()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbIconSizeBefore,d=this.props.lbIconSizeAfter,p=this.props.lbRichtext,b=this.props.lbsubCaption,f=this.props.inlineStyle,v="",m="",h="";if(v="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?v+=" btn has-background has-vk-color-".concat(n,"-background-color"):(v+=" btn has-background",St(t)||(v+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(v+=" btn has-text-color",St(e)||(v+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?v+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(v+=" btn has-text-color is-style-outline",St(t)||(v+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?v+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(v+=" has-text-color vk_button_link-type-text",St(t)||(v+=" has-".concat(t,"-color")))),v="".concat(v," btn-").concat(a),"block"===o&&(v="".concat(v," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var g=s.match(/class="(.*?)"/)[1];g+=" vk_button_link_before";var k=u?" style='font-size: ".concat(u,"'"):"";m='<i class="'.concat(g,'"').concat(k,"></i>")}if(c){var y=c.match(/class="(.*?)"/)[1];y+=" vk_button_link_after";var _=d?" style='font-size: ".concat(d,"'"):"";h='<i class="'.concat(y,'"').concat(_,"></i>")}return(0,re.jsxs)("a",{href:i,style:f,className:v,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[(0,re.jsxs)("div",{className:"vk_button_link_caption",children:[ye(m),p,ye(h)]}),b&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:b})]})}}])}(de.Component);function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xr=Yr(Yr({},{content:{type:"string",source:"html",selector:"span"},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}}),{},{subCaption:{type:"string",default:""}}),Qr=Yr(Yr({},Xr),{},{buttonUrl:{type:"string"},buttonColorCustom:{type:"string"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"},subCaption:{type:"string"},clientId:{type:"string"}}),qr=Yr(Yr({},Qr),{},{blockId:{type:"string"}}),$r=Yr(Yr({},qr),{},{buttonTextColorCustom:{type:"string"}}),Jr=Yr(Yr({},$r),{},{buttonWidth:{type:"number",default:0}}),Kr=Yr(Yr({},Jr),{},{buttonWidthMobile:{type:"number",default:0},buttonWidthTablet:{type:"number",default:0},buttonWidth:{type:"number",default:0}}),eo=Yr(Yr({},Kr),{},{old_1_31_0:{type:"string",default:!0}}),to=Yr(Yr({},eo),{},{outerGap:{type:"string",default:null}}),no=Yr(Yr({},to),{},{iconSizeBefore:{type:"string",default:null},iconSizeAfter:{type:"string",default:null}}),ro=Yr(Yr({},no),{},{buttonEffect:{type:"string",default:""}}),oo=[{attributes:Yr(Yr({},ro),{},{borderRadius:{type:"string",default:null}}),save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonEffect,c=t.buttonColor,u=t.buttonTextColorCustom,d=t.buttonColorCustom,p=t.buttonAlign,b=t.buttonWidthMobile,f=t.buttonWidthTablet,v=t.buttonWidth,m=t.outerGap,h=t.fontAwesomeIconBefore,g=t.fontAwesomeIconAfter,k=t.iconSizeBefore,y=t.iconSizeAfter,_=t.blockId,x="";x=void 0!==d&&St(d)||void 0!==u&&St(u)||m?"vk_button vk_button-color-custom vk_button-".concat(_):"vk_button vk_button-color-custom",b||f||v?(b&&(x+=" vk_button-width-mobile-".concat(b)),f&&(x+=" vk_button-width-tablet-".concat(f)),v&&(x+=" vk_button-width-".concat(v))):x+=" vk_button-align-".concat(p),""!==s&&(x+=" is-style-".concat(s));var j=ne.useBlockProps.save({className:x});return(0,re.jsx)("div",Wr(Wr({},j),{},{children:(0,re.jsx)(Hr,{lbTextColorCustom:u,lbColorCustom:d,lbColor:c,lbType:l,lbAlign:p,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:h,lbFontAwesomeIconAfter:g,lbIconSizeBefore:k,lbIconSizeAfter:y,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:ro,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonEffect,c=t.buttonColor,u=t.buttonTextColorCustom,d=t.buttonColorCustom,p=t.buttonAlign,b=t.buttonWidthMobile,f=t.buttonWidthTablet,v=t.buttonWidth,m=t.outerGap,h=t.fontAwesomeIconBefore,g=t.fontAwesomeIconAfter,k=t.iconSizeBefore,y=t.iconSizeAfter,_=t.blockId,x="";x=void 0!==d&&St(d)||void 0!==u&&St(u)||m?"vk_button vk_button-color-custom vk_button-".concat(_):"vk_button vk_button-color-custom",b||f||v?(b&&(x+=" vk_button-width-mobile-".concat(b)),f&&(x+=" vk_button-width-tablet-".concat(f)),v&&(x+=" vk_button-width-".concat(v))):x+=" vk_button-align-".concat(p),""!==s&&(x+=" is-style-".concat(s));var j=ne.useBlockProps.save({className:x});return(0,re.jsx)("div",Lr(Lr({},j),{},{children:(0,re.jsx)(Vr,{lbTextColorCustom:u,lbColorCustom:d,lbColor:c,lbType:l,lbAlign:p,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:h,lbFontAwesomeIconAfter:g,lbIconSizeBefore:k,lbIconSizeAfter:y,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:no,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonColor,c=t.buttonTextColorCustom,u=t.buttonColorCustom,d=t.buttonAlign,p=t.buttonWidthMobile,b=t.buttonWidthTablet,f=t.buttonWidth,v=t.outerGap,m=t.fontAwesomeIconBefore,h=t.fontAwesomeIconAfter,g=t.iconSizeBefore,k=t.iconSizeAfter,y=t.blockId,_="";_=void 0!==u&&St(u)||void 0!==c&&St(c)||v?"vk_button vk_button-color-custom vk_button-".concat(y):"vk_button vk_button-color-custom",p||b||f?(p&&(_+=" vk_button-width-mobile-".concat(p)),b&&(_+=" vk_button-width-tablet-".concat(b)),f&&(_+=" vk_button-width-".concat(f))):_+=" vk_button-align-".concat(d);var x=ne.useBlockProps.save({className:_});return(0,re.jsx)("div",zr(zr({},x),{},{children:(0,re.jsx)(Dr,{lbTextColorCustom:c,lbColorCustom:u,lbColor:s,lbType:l,lbAlign:d,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:m,lbFontAwesomeIconAfter:h,lbIconSizeBefore:g,lbIconSizeAfter:k,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:to,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonColor,c=t.buttonTextColorCustom,u=t.buttonColorCustom,d=t.buttonAlign,p=t.buttonWidthMobile,b=t.buttonWidthTablet,f=t.buttonWidth,v=t.outerGap,m=t.fontAwesomeIconBefore,h=t.fontAwesomeIconAfter,g=t.blockId,k="";k=void 0!==u&&St(u)||v?"vk_button vk_button-color-custom vk_button-".concat(g):"vk_button vk_button-color-custom",p||b||f?(p&&(k+=" vk_button-width-mobile-".concat(p)),b&&(k+=" vk_button-width-tablet-".concat(b)),f&&(k+=" vk_button-width-".concat(f))):k+=" vk_button-align-".concat(d);var y=ne.useBlockProps.save({className:k});return(0,re.jsx)("div",Ir(Ir({},y),{},{children:(0,re.jsx)(Nr,{lbTextColorCustom:c,lbColorCustom:u,lbColor:s,lbType:l,lbAlign:d,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:m,lbFontAwesomeIconAfter:h,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:eo,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonColor,c=t.buttonTextColorCustom,u=t.buttonColorCustom,d=t.buttonAlign,p=t.buttonWidthMobile,b=t.buttonWidthTablet,f=t.buttonWidth,v=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,h=t.blockId,g="";g=void 0!==c&&St(c)||void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-".concat(h):"vk_button vk_button-color-custom",p||b||f?(p&&(g+=" vk_button-width-mobile-".concat(p)),b&&(g+=" vk_button-width-tablet-".concat(b)),f&&(g+=" vk_button-width-".concat(f))):g+=" vk_button-align-".concat(d);var k=ne.useBlockProps.save({className:g});return(0,re.jsx)("div",Sr(Sr({},k),{},{children:(0,re.jsx)(Pr,{lbTextColorCustom:c,lbColorCustom:u,lbColor:s,lbType:l,lbAlign:d,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:v,lbFontAwesomeIconAfter:m,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:Kr,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonColor,c=t.buttonTextColorCustom,u=t.buttonColorCustom,d=t.buttonAlign,p=t.buttonWidth,b=t.fontAwesomeIconBefore,f=t.fontAwesomeIconAfter,v=t.blockId,m="";m=void 0!==c&&St(c)||void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-".concat(v):"vk_button vk_button-color-custom",m+=p?" vk_button-width-".concat(p):" vk_button-align-".concat(d);var h=ne.useBlockProps.save({className:m});return(0,re.jsx)("div",Or(Or({},h),{},{children:(0,re.jsx)(jr,{lbTextColorCustom:c,lbColorCustom:u,lbColor:s,lbType:l,lbAlign:d,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:b,lbFontAwesomeIconAfter:f,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:Jr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonTextColorCustom,d=n.buttonColorCustom,p=n.buttonAlign,b=n.fontAwesomeIconBefore,f=n.fontAwesomeIconAfter,v=n.blockId;t=void 0!==u&&St(u)||void 0!==d&&St(d)?"vk_button vk_button-color-custom vk_button-align-".concat(p," vk_button-").concat(v):"vk_button vk_button-color-custom vk_button-align-".concat(p);var m=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",_r(_r({},m),{},{children:(0,re.jsx)(kr,{lbTextColorCustom:u,lbColorCustom:d,lbColor:c,lbType:s,lbAlign:p,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:b,lbFontAwesomeIconAfter:f,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}},{attributes:qr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonColorCustom,d=n.buttonAlign,p=n.fontAwesomeIconBefore,b=n.fontAwesomeIconAfter,f=n.blockId;t=void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-align-".concat(d," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(d);var v=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",hr(hr({},v),{},{children:(0,re.jsx)(vr,{lbColorCustom:u,lbColor:c,lbType:s,lbAlign:d,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}},{attributes:Qr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonColorCustom,d=n.buttonAlign,p=n.fontAwesomeIconBefore,b=n.fontAwesomeIconAfter,f=n.clientId;t=void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-align-".concat(d," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(d);var v=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",br(br({},v),{},{children:(0,re.jsx)(dr,{lbColorCustom:u,lbColor:c,lbType:s,lbAlign:d,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}},{attributes:Qr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonColorCustom,d=n.buttonAlign,p=n.fontAwesomeIconBefore,b=n.fontAwesomeIconAfter,f=n.clientId;t=void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-align-".concat(d," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(d);var v=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",cr(cr({},v),{},{children:(0,re.jsx)(lr,{lbColorCustom:u,lbColor:c,lbType:s,lbAlign:d,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}},{attributes:Xr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonColorCustom,d=n.buttonAlign,p=n.fontAwesomeIconBefore,b=n.fontAwesomeIconAfter;t=u&&"undefined"!==u?"vk_button vk_button-color-custom vk_button-align-".concat(d):"vk_button vk_button-align-".concat(d);var f=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",ar(ar({},f),{},{children:(0,re.jsx)(rr,{lbColorCustom:u,lbColor:c,lbType:s,lbAlign:d,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}}];function ao(e){var t,n,r,o,a,i=e.el,l=(t=e.attributes,n=t.buttonColorCustom,r=t.buttonType,o=t.clientId,a="",void 0!==n&&St(n)&&("0"!==r&&null!==r||(a+=".vk_button-".concat(o," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"1"===r&&(a+=".vk_button-".concat(o," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(o," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===r&&(a=".vk_button-".concat(o," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(o," .has-text-color.vk_button_link-type-text:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}"))),a);return""!==l?(0,re.jsxs)(re.Fragment,{children:[i,(0,re.jsx)("style",{type:"text/css",children:l})]}):(0,re.jsx)(re.Fragment,{children:i})}function io(e){var t,n,r,o,a,i,l=e.el,s=(t=e.attributes,n=t.buttonTextColorCustom,r=t.buttonColorCustom,o=t.buttonType,a=t.blockId,i="",void 0!==r&&St(r)&&("0"!==o&&null!==o||(i+=".vk_button-".concat(a," .has-background {\n\t\t\t\tbackground-color: ").concat(r,";\n\t\t\t\tborder: 1px solid ").concat(r,";\n\t\t\t}")),"1"===o&&(i+=".vk_button-".concat(a," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(r,";\n\t\t\t\tcolor: ").concat(r,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(r,";\n\t\t\t\tborder: 1px solid ").concat(r,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===o&&(i=".vk_button-".concat(a," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(r,";\n\t\t\t}"))),void 0!==n&&St(n)&&("0"!==o&&null!==o||(i+=" .vk_button-".concat(a," .has-text-color {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),i);return""!==s?(0,re.jsxs)(re.Fragment,{children:[l,(0,re.jsx)("style",{type:"text/css",children:s})]}):(0,re.jsx)(re.Fragment,{children:l})}function lo(e){var t=e.el,n=e.attributes,r=function(e){var t=e.buttonTextColorCustom,n=e.buttonColorCustom,r=e.buttonType,o=e.blockId,a="";return void 0!==n&&St(n)&&("0"!==r&&null!==r||(a+=".vk_button-".concat(o," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t}")),"1"===r&&(a+=".vk_button-".concat(o," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(o," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===r&&(a=".vk_button-".concat(o," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),void 0!==t&&St(t)&&("0"!==r&&null!==r||(a+=" .vk_button-".concat(o," .has-text-color {\n\t\t\t\tcolor: ").concat(t,";\n\t\t\t}"))),a}(n),o=function(e){var t=e.buttonWidthMobile,n=e.buttonWidthTablet,r=e.buttonWidth,o=e.outerGap,a=e.blockId,i="",l=".vk_button";return o&&(t&&(i+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(l,".vk_button-").concat(a," {\n\t\t\t\t\twidth: calc(").concat(t,"% - calc(").concat(o," - calc(").concat(o," / (100 / ").concat(t,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),n&&(i+="@media(min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(l,".vk_button-").concat(a," {\n\t\t\t\t\twidth: calc(").concat(n,"% - calc(").concat(o," - calc(").concat(o," / (100 / ").concat(n,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),r&&(i+="@media (min-width: 992px) {\n\t\t\t\t\t".concat(l,".vk_button-").concat(a," {\n\t\t\t\t\twidth: calc(").concat(r,"% - calc(").concat(o," - calc(").concat(o," / (100 / ").concat(r,"))) - 1px );\n\t\t\t\t}\n\t\t\t}"))),i}(n);return""!==r||""!==o?(0,re.jsxs)(re.Fragment,{children:[t,(0,re.jsxs)("style",{type:"text/css",children:[r," ",o]})]}):(0,re.jsx)(re.Fragment,{children:t})}var so=[lo,lo,lo,io,io,io,ao,ao,function(e){var t,n,r,o,a,i=e.el,l=(t=e.attributes,n=t.clientId,r=t.buttonType,o=t.buttonColorCustom,a="",void 0!==o&&St(o)&&("0"!==r&&null!==r||(a="\n\t\t\t.vk_button-".concat(n," .has-background {\n\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: #fff;\n\t\t\t}\n\t\t\t")),"1"===r&&(a="\n\t\t\t.vk_button-".concat(n," .has-text-color {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: ").concat(o,";\n\t\t\t}\n\t\t\t.vk_button-").concat(n," .has-text-color:hover {\n\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: #fff;\n\t\t\t}\n\t\t\t")),"2"===r&&(a="\n\t\t\t.vk_button-".concat(n," .vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(o,";\n\t\t\t}\n\t\t\t"))),a);return""!==l?(0,re.jsxs)(re.Fragment,{children:[i,(0,re.jsx)("style",{type:"text/css",children:l})]}):(0,re.jsx)(re.Fragment,{children:i})},function(e){return e.el}],co={from:[{type:"block",isMultiBlock:!1,blocks:["core/paragraph"],transform:function(e){var t=e.content,n=document.createElement("div");n.innerHTML=t;var r=n.innerText||"",o=n.querySelector("a"),a=null==o?void 0:o.getAttribute("href"),i=!(null==o||!o.getAttribute("target"));return(0,C.createBlock)("vk-blocks/button",{content:r,buttonUrl:a,buttonTarget:i})},isMatch:function(e){var t=document.createElement("div");t.innerHTML=e.content;var n=t.innerText||"",r=t.querySelectorAll("a");return n.length<=30&&r.length<=1}}]},uo=co,po=window.wp.hooks,bo=window.wp.compose;function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mo,ho,go,ko={apiVersion:3,name:"vk-blocks/button",title:"Button",category:"vk-blocks-cat",attributes:{content:{type:"string",source:"html",selector:"span"},subCaption:{type:"string"},buttonUrl:{type:"string"},buttonTarget:{type:"boolean",default:!1},relAttribute:{type:"string",default:""},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonEffect:{type:"string",default:""},buttonColor:{type:"string",default:"primary"},buttonTextColorCustom:{type:"string"},buttonColorCustom:{type:"string"},buttonAlign:{type:"string",default:"left"},buttonWidthMobile:{type:"number",default:0},buttonWidthTablet:{type:"number",default:0},buttonWidth:{type:"number",default:0},outerGap:{type:"string",default:null},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"},iconSizeBefore:{type:"string",default:null},iconSizeAfter:{type:"string",default:null},borderRadius:{type:"string",default:null},clientId:{type:"string"},blockId:{type:"string"},old_1_31_0:{type:"string",default:!0}},description:"A button link that can display icons before and after.",textdomain:"vk-blocks",supports:{className:!0,anchor:!0,typography:{__experimentalFontFamily:!0,__experimentalFontSize:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}}},yo=ko.name,_o={icon:(0,re.jsx)(Fn,{}),example:{attributes:{content:F,subCaption:R,buttonUrl:G,buttonTarget:!1,buttonSize:"md",buttonType:"0",buttonEffect:"",buttonColor:"primary",buttonTextColorCustom:"undefined",buttonColorCustom:"undefined",buttonAlign:"left",buttonWidthMobile:0,buttonWidthTablet:0,outerGap:null,buttonWidth:0,fontAwesomeIconBefore:L,fontAwesomeIconAfter:L,iconSizeBefore:null,iconSizeAfter:null}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=t.content,a=t.subCaption,i=t.buttonUrl,l=t.buttonTarget,s=t.relAttribute,c=t.buttonSize,u=t.buttonType,d=t.buttonEffect,p=t.buttonColor,b=t.buttonTextColorCustom,f=t.buttonColorCustom,v=t.buttonAlign,m=t.buttonWidthMobile,h=t.buttonWidthTablet,g=t.buttonWidth,k=t.outerGap,y=t.fontAwesomeIconBefore,_=t.fontAwesomeIconAfter,x=t.iconSizeBefore,j=t.iconSizeAfter,w=t.blockId,O=t.old_1_31_0,C=vkFontAwesome.iconFamily,P=!!(0,fe.select)("core/block-editor").getBlockParentsByBlockName(r,["vk-blocks/button-outer"]).length;(0,de.useEffect)((function(){void 0!==t.clientId&&n({clientId:void 0}),void 0!==w&&!1!==Gn(r)||n({blockId:r}),null!==i&&"null"!==i&&"undefined"!==i&&""!==i||n({buttonUrl:void 0}),void 0===f&&n({buttonTextColorCustom:void 0}),null!==f&&"null"!==f&&"undefined"!==f&&""!==f||n({buttonColorCustom:void 0}),null!==y&&"null"!==y&&"undefined"!==y&&""!==y||n({fontAwesomeIconBefore:void 0}),null!==_&&"null"!==_&&"undefined"!==_&&""!==_||n({fontAwesomeIconAfter:void 0}),null!==a&&"null"!==a&&"undefined"!==a&&""!==a||n({subCaption:void 0}),void 0===O&&(void 0===m&&n({buttonWidthMobile:g}),void 0===h&&n({buttonWidthTablet:g}),n({old_1_31_0:!0})),P||n({buttonWidth:0})}),[r]);var T,S=(0,fe.dispatch)("core/block-editor").updateBlockAttributes;(0,de.useEffect)((function(){"custom"!==p?(S(r,{buttonTextColorCustom:void 0}),S(r,{buttonColorCustom:void 0})):void 0===f&&"custom"===p&&(S(r,{buttonColor:"primary"}),S(r,{buttonTextColorCustom:void 0}))}),[p]),(0,de.useEffect)((function(){void 0!==f?S(r,{buttonColor:"custom"}):"custom"===p&&S(r,{buttonColor:"primary"})}),[f]),T=void 0!==f&&St(f)||void 0!==b&&St(b)||k?"vk_button vk_button-color-custom vk_button-".concat(w):"vk_button vk_button-color-custom",P?(m&&(T+=" vk_button-width-mobile-".concat(m)),h&&(T+=" vk_button-width-tablet-".concat(h)),g&&(T+=" vk_button-width-".concat(g))):T+=" vk_button-align-".concat(v),""!==d&&(T+=" is-style-".concat(d));var E=[{value:"px",label:"px",default:16},{value:"em",label:"em",default:1},{value:"rem",label:"rem",default:1}],N=(0,ne.useBlockProps)({className:T}),B={};void 0!==b&&St(b)&&(B={color:"".concat(b)});var I=l?"_blank":"";return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.BlockControls,{children:(0,re.jsx)(ce.ToolbarGroup,{children:(0,re.jsx)($n,{linkUrl:i||"",setLinkUrl:function(e){return n({buttonUrl:e})},linkTarget:I,setLinkTarget:function(e){return n({buttonTarget:"_blank"===e})},relAttribute:s||"",setRelAttribute:function(e){return n({relAttribute:e})}})})}),(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Button setting","vk-blocks"),children:[(0,re.jsx)(ce.TextControl,{label:(0,z.__)("Sub Caption","vk-blocks"),value:a,className:"mt-0 mb-3",onChange:function(e){return n({subCaption:e})},placeholder:"Sub Caption"}),(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Size:","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:c,onChange:function(e){return n({buttonSize:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"lg",label:(0,z.__)("Large","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"md",label:(0,z.__)("Normal","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"sm",label:(0,z.__)("Small","vk-blocks")})]}),!P&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Position:","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:v,onChange:function(e){return n({buttonAlign:e})},className:"vk-button-align-control",isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"left",label:(0,z.__)("Left","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"center",label:(0,z.__)("Center","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"right",label:(0,z.__)("Right","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"wide",label:(0,z.__)("Wide","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"block",label:(0,z.__)("Block","vk-blocks")})]}),(0,re.jsx)("style",{children:"\n\t\t\t\t\t\t\t\t\t.vk-button-align-control .components-toggle-group-control-option-base {\n\t\t\t\t\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t"})]}),P&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Width:","vk-blocks")}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Mobile","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:String(m),onChange:function(e){n({buttonWidthMobile:Number(e)})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:"Auto"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"25",label:"25%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"50",label:"50%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"75",label:"75%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"100",label:"100%"})]}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Tablet","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:String(h),onChange:function(e){n({buttonWidthTablet:Number(e)})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:"Auto"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"25",label:"25%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"50",label:"50%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"75",label:"75%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"100",label:"100%"})]}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("PC","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:String(g),onChange:function(e){n({buttonWidth:Number(e)})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:"Auto"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"25",label:"25%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"50",label:"50%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"75",label:"75%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"100",label:"100%"})]})]}),(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Style:","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:u,onChange:function(e){n({buttonType:e}),"1"!==e&&"2"!==e||n({buttonTextColorCustom:void 0,buttonEffect:""})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:(0,z.__)("Solid color","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"1",label:(0,z.__)("No background","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"2",label:(0,z.__)("Text only","vk-blocks")})]}),(0,re.jsx)("p",{className:"mb-3",children:(0,z.__)('If you select "No background", that you need to select a Custom Color.',"vk-blocks")}),"0"===u&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Effect:","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:d,onChange:function(e){return n({buttonEffect:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"none",label:(0,z.__)("None","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"shine",label:(0,z.__)("Shine","vk-blocks")})]})]}),(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Color","vk-blocks")}),(0,re.jsx)(ce.SelectControl,{label:(0,z.__)("Default Color (Bootstrap)","vk-blocks"),value:p,options:[{label:(0,z.__)("Primary","vk-blocks"),value:"primary"},{label:(0,z.__)("Secondary","vk-blocks"),value:"secondary"},{label:(0,z.__)("Success","vk-blocks"),value:"success"},{label:(0,z.__)("Info","vk-blocks"),value:"info"},{label:(0,z.__)("Warning","vk-blocks"),value:"warning"},{label:(0,z.__)("Danger","vk-blocks"),value:"danger"},{label:(0,z.__)("Light","vk-blocks"),value:"light"},{label:(0,z.__)("Dark","vk-blocks"),value:"dark"},{label:(0,z.__)("Custom Color","vk-blocks"),value:"custom"}],onChange:function(e){return n({buttonColor:e})}}),(0,re.jsxs)(ce.BaseControl,{label:(0,z.__)("Custom Color","vk-blocks"),id:"vk_block_button_custom_color",children:[(0,re.jsx)(ce.BaseControl,{id:"vk_block_button_custom_background_color",label:"0"===u||null===u?(0,z.__)("Background Color","vk-blocks"):(0,z.__)("Button Color","vk-blocks"),help:(0,z.__)("This color palette overrides the default color. If you want to use the default color, click the clear button.","vk-blocks"),children:(0,re.jsx)(Xt,Kn({schema:"buttonColorCustom"},e))}),("0"===u||null===u)&&void 0!==f&&(0,re.jsx)(ce.BaseControl,{id:"vk_block_button_custom_text_color",label:(0,z.__)("Text Color","vk-blocks"),children:(0,re.jsx)(Xt,Kn({schema:"buttonTextColorCustom"},e))})]}),(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Icon","vk-blocks")+" ( "+C+" )"}),(0,re.jsxs)(ce.BaseControl,{id:"vk_block_button_fa_before_text",label:(0,z.__)("Before text","vk-blocks"),children:[(0,re.jsx)(Ze,Kn({attributeName:"fontAwesomeIconBefore"},e)),(0,re.jsx)(ce.__experimentalUnitControl,{label:(0,z.__)("Size","vk-blocks"),value:x,units:E,onChange:function(e){n({iconSizeBefore:parseFloat(e)?e:null})}})]}),(0,re.jsx)("hr",{}),(0,re.jsxs)(ce.BaseControl,{id:"vk_block_button_fa_after_text",label:(0,z.__)("After text","vk-blocks"),children:[(0,re.jsx)(Ze,Kn({attributeName:"fontAwesomeIconAfter"},e)),(0,re.jsx)(ce.__experimentalUnitControl,{label:(0,z.__)("Size","vk-blocks"),value:j,units:E,onChange:function(e){n({iconSizeAfter:parseFloat(e)?e:null})}})]})]}),(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button border radius","vk-blocks")}),(0,re.jsx)(ce.__experimentalUnitControl,{value:t.borderRadius,onChange:function(e){n({borderRadius:e||null})},units:[{value:"px",label:"px",default:5},{value:"%",label:"%",default:5},{value:"em",label:"em",default:1},{value:"rem",label:"rem",default:1}]})]})}),(0,re.jsx)("div",Kn(Kn({},N),{},{children:(0,re.jsx)(Hn,{lbTextColorCustom:b,lbColorCustom:f,lbColor:p,lbType:u,lbAlign:v,lbSize:c,lbFontAwesomeIconBefore:y,lbFontAwesomeIconAfter:_,lbIconSizeBefore:x,lbIconSizeAfter:j,lbsubCaption:a,inlineStyle:Kn(Kn({},B),{},{borderRadius:t.borderRadius}),lbRichtext:(0,re.jsx)(ne.RichText,{tagName:"span",className:"vk_button_link_txt",onChange:function(e){return n({content:e})},value:o,placeholder:(0,z.__)("Input text","vk-blocks"),allowedFormats:["core/bold","core/italic","core/strikethrough","core/superscript","core/subscript","vk-blocks/responsive-br","vk-blocks/nowrap","vk-blocks/inline-font-size"]})})}))]})},save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.relAttribute,l=t.buttonSize,s=t.buttonType,c=t.buttonEffect,u=t.buttonColor,d=t.buttonTextColorCustom,p=t.buttonColorCustom,b=t.buttonAlign,f=t.buttonWidthMobile,v=t.buttonWidthTablet,m=t.buttonWidth,h=t.outerGap,g=t.fontAwesomeIconBefore,k=t.fontAwesomeIconAfter,y=t.iconSizeBefore,_=t.iconSizeAfter,x=t.inlineStyle,j=t.borderRadius,w=t.blockId,O="";O=void 0!==p&&St(p)||void 0!==d&&St(d)||h?"vk_button vk_button-color-custom vk_button-".concat(w):"vk_button vk_button-color-custom",f||v||m?(f&&(O+=" vk_button-width-mobile-".concat(f)),v&&(O+=" vk_button-width-tablet-".concat(v)),m&&(O+=" vk_button-width-".concat(m))):O+=" vk_button-align-".concat(b),""!==c&&(O+=" is-style-".concat(c));var C=ne.useBlockProps.save({className:O}),P=tr({},x);return j&&(P.borderRadius=j),(0,re.jsx)("div",tr(tr({},C),{},{children:(0,re.jsx)(Hn,{lbTextColorCustom:d,lbColorCustom:p,lbColor:u,lbType:s,lbAlign:b,lbSize:l,lbUrl:o,lbTarget:a,lbRelAttribute:i,lbFontAwesomeIconBefore:g,lbFontAwesomeIconAfter:k,lbIconSizeBefore:y,lbIconSizeAfter:_,lbsubCaption:r,inlineStyle:P,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))},deprecated:oo,transforms:uo},xo=function(e){var t=e.buttonTextColorCustom,n=e.buttonColorCustom,r=e.buttonType,o=e.blockId,a="";return void 0!==n&&St(n)&&("0"!==r&&null!==r||(a+=".vk_button-".concat(o," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t}")),"1"===r&&(a+=".vk_button-".concat(o," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(o," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===r&&(a=".vk_button-".concat(o," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),void 0!==t&&St(t)&&("0"!==r&&null!==r||(a+=" .vk_button-".concat(o," .has-text-color {\n\t\t\t\tcolor: ").concat(t,";\n\t\t\t}"))),a},jo=function(e,t){var n=e.buttonWidthMobile,r=e.buttonWidthTablet,o=e.buttonWidth,a=e.outerGap,i=e.blockId,l="",s=t?".vk_button":".vk_buttons .vk_buttons_col .block-editor-block-list__layout .vk_button";return a&&(n&&(l+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(s,".vk_button-").concat(i," {\n\t\t\t\t\twidth: calc(").concat(n,"% - calc(").concat(a," - calc(").concat(a," / (100 / ").concat(n,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),r&&(l+="@media(min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(s,".vk_button-").concat(i," {\n\t\t\t\t\twidth: calc(").concat(r,"% - calc(").concat(a," - calc(").concat(a," / (100 / ").concat(r,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),o&&(l+="@media (min-width: 992px) {\n\t\t\t\t\t".concat(s,".vk_button-").concat(i," {\n\t\t\t\t\twidth: calc(").concat(o,"% - calc(").concat(a," - calc(").concat(a," / (100 / ").concat(o,"))) - 1px );\n\t\t\t\t}\n\t\t\t}"))),l},wo=(0,bo.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes;if("vk-blocks/button"===t.name){var r=xo(n),o=jo(n,!1);return""!==r||""!==o?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(e,vo({},t)),(0,re.jsxs)("style",{type:"text/css",children:[r," ",o]})]}):(0,re.jsx)(e,vo({},t))}return(0,re.jsx)(e,vo({},t))}}),"VKButtonInlineEditorCss");function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(null,arguments)}(0,po.addFilter)("editor.BlockEdit","vk-blocks/button",wo),(0,po.addFilter)("blocks.getSaveElement","vk-blocks/button",(function(e,t,n){if("vk-blocks/button"===t.name){var r=oo.findIndex((function(e){return e.save===t.save}));if(-1===r){var o=xo(n),a=jo(n,!0);return""!==o||""!==a?(0,re.jsxs)(re.Fragment,{children:[e,(0,re.jsxs)("style",{type:"text/css",children:[o," ",a]})]}):e}var i=so[r];return(0,re.jsx)(i,{el:e,attributes:n})}return e}),11);var Co=function(e){return Q.createElement("svg",Oo({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),mo||(mo=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),ho||(ho=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),go||(go=Q.createElement("path",{d:"M5.07 0C3.57 0 2.35.49 1.4 1.47A5.2 5.2 0 0 0 0 5.24c0 1.54.48 2.81 1.43 3.79a4.87 4.87 0 0 0 3.64 1.44c1 0 1.85-.2 2.36-.53l1.35 1.39 1.38-1.38-1.19-1.21c.73-.9 1.17-2.1 1.17-3.5A4.9 4.9 0 0 0 5.07 0M3.08 5.24c0-1.63.73-2.75 1.97-2.75 1.12 0 2 .9 2 2.75 0 .51-.06.93-.19 1.33l-.84-.86-1.39 1.35.84.86c-.14.05-.26.06-.4.06-1.16 0-1.99-.95-1.99-2.74M13.52 7c-.91 0-1.69.64-1.69 1.55 0 .45.14.86.62 1.45-.96.47-1.45 1.17-1.45 1.96 0 1.25.89 2.04 2.09 2.04.73 0 1.3-.28 1.81-.8l.53.67H17l-1.31-1.61c.32-.43.55-.98.62-1.67h-1.1c-.04.3-.13.59-.24.8l-.83-1.07c.75-.43 1.14-.99 1.14-1.7 0-1.07-.81-1.62-1.76-1.62M13 8.5c0-.36.27-.6.57-.6.33 0 .6.3.6.65 0 .42-.2.68-.67.97-.41-.5-.5-.73-.5-1.02m-.78 3.5c0-.48.33-.87.9-1.13l1.1 1.42c-.36.44-.7.6-1.08.6a.93.93 0 0 1-.92-.9zm5.34 2L14 24h2.98l.45-1.43h3.07l.41 1.43H24l-3.52-10zm1.45 3.35h.03l.87 3.08h-1.83z"})))};function Po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Eo=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"}}),save:function(e){var t=e.attributes.heading;return(0,re.jsxs)("dl",To(To({},ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"})),{},{children:[(0,re.jsx)(ne.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t}),(0,re.jsx)("dd",{className:"vk_faq_content",children:(0,re.jsx)(ne.InnerBlocks.Content,{})})]}))}}],No=Eo;function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ao,zo,Ro,Vo,Fo={to:[{type:"block",blocks:["vk-blocks/faq2"],transform:function(e,t){var n=[(0,C.createBlock)("core/paragraph",{content:e.heading})],r=(0,C.createBlock)("vk-blocks/faq2-q",{},n),o=(0,C.createBlock)("vk-blocks/faq2-a",{},t);return(0,C.createBlock)("vk-blocks/faq2",{},[r,o])}}]},Lo={apiVersion:3,name:"vk-blocks/faq",title:"Classic FAQ",category:"vk-blocks-cat",description:"Displays a combination of questions and answers.",textdomain:"vk-blocks",editorScript:"vk-blocks-build-js",editorStyle:"vk-blocks-build-editor-css",attributes:{heading:{type:"string",source:"html",selector:"dt"}},supports:{html:!1,anchor:!0}},Uo=Lo.name,Ho={icon:(0,re.jsx)(Co,{}),styles:[{name:"vk_faq-normal",label:(0,z.__)("Normal","vk-blocks"),isDefault:!0},{name:"vk_faq-bgfill-circle",label:(0,z.__)("Bgfill Circle","vk-blocks")},{name:"vk_faq-bgfill-square",label:(0,z.__)("Bgfill Square","vk-blocks")},{name:"vk_faq-bgfill-rounded",label:(0,z.__)("Bgfill Rounded","vk-blocks")},{name:"vk_faq-border-circle",label:(0,z.__)("Border Circle","vk-blocks")},{name:"vk_faq-border-square",label:(0,z.__)("Border Square","vk-blocks")},{name:"vk_faq-border-rounded",label:(0,z.__)("Border Rounded","vk-blocks")}],example:{attributes:{heading:R},innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]},save:function(e){var t=e.attributes.heading;return(0,re.jsxs)("dl",Do(Do({},ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"})),{},{children:[(0,re.jsx)(ne.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t,"aria-label":(0,z.__)("Question","vk-blocks")}),(0,re.jsx)("dd",{className:"vk_faq_content","aria-label":(0,z.__)("Answer","vk-blocks"),children:(0,re.jsx)(ne.InnerBlocks.Content,{})})]}))},edit:function(e){var t,n=e.attributes,r=e.setAttributes;t=vk_blocks_check.is_pro?(0,z.__)("If you want to be collapsing this block, you can set it at Setting > VK Blocks","vk-blocks"):(0,z.__)("You can be collapsing this block at VK Blocks Pro","vk-blocks");var o=n.heading,a=[["core/paragraph",{content:n.content}]],i=(0,ne.useBlockProps)({className:"vk_faq [accordion_trigger_switch]"});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Accordion Setting","vk-blocks"),children:(0,re.jsx)(ce.PanelRow,{children:t})})}),(0,re.jsxs)("dl",Io(Io({},i),{},{children:[(0,re.jsx)(ne.RichText,{tagName:"dt",className:"vk_faq_title",onChange:function(e){return r({heading:e})},value:o,placeholder:(0,z.__)("Please enter a question.","vk-blocks")}),(0,re.jsx)("dd",{className:"vk_faq_content",children:(0,re.jsx)(ne.InnerBlocks,{template:a})})]}))]})},deprecated:No,transforms:Fo};function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Go.apply(null,arguments)}var Wo=function(e){return Q.createElement("svg",Go({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Ao||(Ao=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),zo||(zo=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),Ro||(Ro=Q.createElement("path",{fillRule:"evenodd",d:"M24 0h-8v8h8zm-4.75 1v2.25H17v1.5h2.25V7h1.5V4.75H23v-1.5h-2.25V1z",clipRule:"evenodd"})),Vo||(Vo=Q.createElement("path",{d:"M5.07 0C3.57 0 2.35.49 1.4 1.47A5.2 5.2 0 0 0 0 5.24c0 1.54.48 2.81 1.43 3.79a4.87 4.87 0 0 0 3.64 1.44c1 0 1.85-.2 2.36-.53l1.35 1.39 1.38-1.38-1.19-1.21c.73-.9 1.17-2.1 1.17-3.5A4.9 4.9 0 0 0 5.07 0M3.08 5.24c0-1.63.73-2.75 1.97-2.75 1.12 0 2 .9 2 2.75 0 .51-.06.93-.19 1.33l-.84-.86-1.39 1.35.84.86c-.14.05-.26.06-.4.06-1.16 0-1.99-.95-1.99-2.74M13.52 7c-.91 0-1.69.64-1.69 1.55 0 .45.14.86.62 1.45-.96.47-1.45 1.17-1.45 1.96 0 1.25.89 2.04 2.09 2.04.73 0 1.3-.28 1.81-.8l.53.67H17l-1.31-1.61c.32-.43.55-.98.62-1.67h-1.1c-.04.3-.13.59-.24.8l-.83-1.07c.75-.43 1.14-.99 1.14-1.7 0-1.07-.81-1.62-1.76-1.62M13 8.5c0-.36.27-.6.57-.6.33 0 .6.3.6.65 0 .42-.2.68-.67.97-.41-.5-.5-.73-.5-1.02m-.78 3.5c0-.48.33-.87.9-1.13l1.1 1.42c-.36.44-.7.6-1.08.6a.93.93 0 0 1-.92-.9zm5.34 2L14 24h2.98l.45-1.43h3.07l.41 1.43H24l-3.52-10zm1.45 3.35h.03l.87 3.08h-1.83z"})))};function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qo={heading:{type:"string",source:"html",selector:"dt"},content:{type:"string"}},$o=[{attributes:qo,save:function(){var e=ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"});return(0,re.jsxs)("div",Qo(Qo({},e),{},{children:[(0,re.jsx)("div",{className:"vk_faq-header"}),(0,re.jsx)("dl",{className:"vk_faq-body",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"vk_faq-footer"})]}))}},{attributes:qo,save:function(){return(0,re.jsx)("dl",Yo(Yo({},ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))}}];function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var na,ra,oa,aa={apiVersion:3,name:"vk-blocks/faq2",category:"vk-blocks-cat",title:"New FAQ",description:"It displays a combination of questions and answers. You can freely add blocks to the question area as well.",textdomain:"vk-blocks",supports:{html:!1,anchor:!0,className:!0},editorScript:"vk-blocks-build-js",editorStyle:"vk-blocks-build-editor-css",attributes:{showContent:{type:"string",default:"default"}}},ia=aa.name,la={icon:(0,re.jsx)(Wo,{}),styles:[{name:"vk_faq-normal",label:(0,z.__)("Normal","vk-blocks"),isDefault:!0},{name:"vk_faq-bgfill-circle",label:(0,z.__)("Bgfill Circle","vk-blocks")},{name:"vk_faq-bgfill-square",label:(0,z.__)("Bgfill Square","vk-blocks")},{name:"vk_faq-bgfill-rounded",label:(0,z.__)("Bgfill Rounded","vk-blocks")},{name:"vk_faq-border-circle",label:(0,z.__)("Border Circle","vk-blocks")},{name:"vk_faq-border-square",label:(0,z.__)("Border Square","vk-blocks")},{name:"vk_faq-border-rounded",label:(0,z.__)("Border Rounded","vk-blocks")}],example:{innerBlocks:[{name:"vk-blocks/faq2-q",innerBlocks:[{name:"core/paragraph",attributes:{content:R}}]},{name:"vk-blocks/faq2-a",innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showContent,o=(0,ne.useBlockProps)({className:"vk_faq"});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Accordion Setting","vk-blocks"),children:vk_blocks_check.is_pro?(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)(ce.SelectControl,{__nextHasNoMarginBottom:!0,name:"vk_blocks_options[new_faq_accordion]",value:r,onChange:function(e){n({showContent:e})},options:[{label:(0,z.__)("Use common settings","vk-blocks"),value:"default"},{label:(0,z.__)("Disable accordion","vk-blocks"),value:"disable"},{label:(0,z.__)("Enable accordion and default open","vk-blocks"),value:"open"},{label:(0,z.__)("Enable accordion and default close","vk-blocks"),value:"close"}]}),(0,re.jsx)("p",{children:(0,z.__)("* You can change each common accordion settings from Setting > VK Blocks.","vk-blocks")})]}):(0,re.jsx)("p",{children:(0,z.__)("You can be collapsing this block at VK Blocks Pro","vk-blocks")})})}),(0,re.jsxs)("div",Ko(Ko({},o),{},{children:[(0,re.jsx)("div",{className:"vk_faq-header"}),(0,re.jsx)("dl",{className:"vk_faq-body",children:(0,re.jsx)(ne.InnerBlocks,{allowedBlocks:["vk-blocks/faq2-q","vk-blocks/faq2-a"],template:[["vk-blocks/faq2-q"],["vk-blocks/faq2-a"]],templateLock:"all"})}),(0,re.jsx)("div",{className:"vk_faq-footer"})]}))]})},save:function(){var e=ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"});return(0,re.jsxs)("div",ta(ta({},e),{},{children:[(0,re.jsx)("div",{className:"vk_faq-header"}),(0,re.jsx)("dl",{className:"vk_faq-body",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"vk_faq-footer"})]}))},deprecated:$o};function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(null,arguments)}var ca=function(e){return Q.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),na||(na=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),ra||(ra=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),oa||(oa=Q.createElement("path",{d:"M14.99 0 10 14h4.17l.63-2h4.3l.57 2H24L19.07 0zm2.03 4.69h.04L18.27 9h-2.56l1.3-4.31z"})))};function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ma,ha,ga,ka=[{attributes:{},save:function(){return(0,re.jsx)("dd",va(va({},ne.useBlockProps.save({className:"vk_faq_content"})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))}}],ya={apiVersion:3,name:"vk-blocks/faq2-a",category:"vk-blocks-cat",title:"FAQ Answer",parent:["vk-blocks/faq2"],description:"Answer area where you can add blocks freely.",textdomain:"vk-blocks",supports:{html:!1,anchor:!0,reusable:!1}},_a=ya.name,xa={icon:(0,re.jsx)(ca,{}),example:{innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]},edit:function(){var e=(0,ne.useBlockProps)({className:"vk_faq_content"});return(0,re.jsx)("dd",da(da({},e),{},{children:(0,re.jsx)(ne.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]})}))},save:function(){return(0,re.jsx)("dd",ba(ba({},ne.useBlockProps.save({className:"vk_faq_content","aria-label":(0,z.__)("Answer","vk-blocks")})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))},deprecated:ka};function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ja.apply(null,arguments)}var wa=function(e){return Q.createElement("svg",ja({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),ma||(ma=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),ha||(ha=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),ga||(ga=Q.createElement("path",{d:"M16.98 0c-2.06 0-3.74.7-5.03 2.08A7.44 7.44 0 0 0 10 7.4a7.5 7.5 0 0 0 1.97 5.36 6.62 6.62 0 0 0 5.01 2.03c1.37 0 2.55-.3 3.26-.75L22.09 16 24 14.06l-1.64-1.72c1-1.26 1.6-2.97 1.6-4.94 0-2.18-.65-3.98-1.95-5.34A6.67 6.67 0 0 0 16.98 0m-2.74 7.4c0-2.3 1-3.88 2.72-3.88 1.54 0 2.76 1.27 2.76 3.88 0 .73-.1 1.32-.27 1.88l-1.16-1.21-1.9 1.9 1.15 1.22c-.2.06-.37.08-.56.08-1.6 0-2.74-1.34-2.74-3.87"})))};function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Na=[{attributes:{},save:function(){return(0,re.jsx)("dt",Ea(Ea({},ne.useBlockProps.save({className:"vk_faq_title"})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))}}],Ba={apiVersion:3,name:"vk-blocks/faq2-q",title:"FAQ Question",category:"vk-blocks-cat",parent:["vk-blocks/faq2"],description:"Question area where you can freely add blocks.",textdomain:"vk-blocks",supports:{html:!1,anchor:!0,className:!0,reusable:!1}},Ia=Ba.name,Ma={icon:(0,re.jsx)(wa,{}),example:{innerBlocks:[{name:"core/paragraph",attributes:{content:R}}]},edit:function(){var e=(0,ne.useBlockProps)({className:"vk_faq_title"});return(0,re.jsx)("dt",Ca(Ca({},e),{},{children:(0,re.jsx)(ne.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]})}))},save:function(){return(0,re.jsx)("dt",Ta(Ta({},ne.useBlockProps.save({className:"vk_faq_title","aria-label":(0,z.__)("Question","vk-blocks")})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))},deprecated:Na};function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var za,Ra,Va,Fa,La,Ua=[{attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null}},save:function(e){var t=e.attributes,n=t.heading,r=t.content,o=t.insertImage,a=t.arrowFlag;return(0,re.jsx)("div",Aa(Aa({},ne.useBlockProps.save({className:"".concat(a," vk_flow")})),{},{children:(0,re.jsxs)("div",{className:"vk_flow_frame",children:[(0,re.jsxs)("dl",{className:"vk_flow_frame_text",children:[(0,re.jsx)(ne.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,re.jsx)(ne.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:r})]}),o&&(0,re.jsx)("div",{className:"vk_flow_frame_image",children:(0,re.jsx)("img",{src:o,alt:""})})]})}))}}],Ha=Ua;function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ga.apply(null,arguments)}var Wa=function(e){return Q.createElement("svg",Ga({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),za||(za=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),Ra||(Ra=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),Va||(Va=Q.createElement("path",{d:"M12.5 14 9 10h7z"})),Fa||(Fa=Q.createElement("path",{fillRule:"evenodd",d:"M23 1H1v6h22zM0 0v8h24V0z",clipRule:"evenodd"})),La||(La=Q.createElement("path",{fillRule:"evenodd",d:"M20 4.5H4v-1h16z",clipRule:"evenodd"})))};function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qa,$a,Ja,Ka={apiVersion:3,name:"vk-blocks/flow",category:"vk-blocks-cat",title:"Flow",attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null},insertImageAlt:{type:"string",default:null}},description:"Displays a sequential description in time series.",textdomain:"vk-blocks",supports:{className:!0}},ei=Ka.name,ti={icon:(0,re.jsx)(Wa,{}),example:{attributes:{heading:R,content:V,arrowFlag:"vk_flow-arrow-on",insertImage:U}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=t.heading,a=t.content,i=t.insertImage,l=t.arrowFlag,s=t.insertImageAlt,c=(0,ne.useBlockProps)({className:"".concat(l," vk_flow")});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Display of arrow","vk-blocks"),children:(0,re.jsx)(ce.RadioControl,{selected:l,options:[{label:(0,z.__)("Arrow display","vk-blocks"),value:"vk_flow-arrow-on"},{label:(0,z.__)("Arrow hidden","vk-blocks"),value:"vk_flow-arrow-off"}],onChange:function(e){return n({arrowFlag:e})}})})}),(0,re.jsxs)("div",Ya(Ya({},c),{},{children:[(0,re.jsxs)("div",{className:"vk_flow_frame",children:[(0,re.jsxs)("dl",{className:"vk_flow_frame_text",children:[(0,re.jsx)(ne.RichText,{tagName:"dt",className:"vk_flow_frame_text_title",onChange:function(e){return n({heading:e})},value:o,placeholder:(0,z.__)("Input title","vk-blocks")},"".concat(r,"2")),(0,re.jsx)(ne.RichText,{tagName:"dd",className:"vk_flow_frame_text_content",onChange:function(e){return n({content:e})},value:a,placeholder:(0,z.__)("Input content","vk-blocks")},"".concat(r,"3"))]}),(0,re.jsx)("div",{className:"vk_flow_frame_image",children:(0,re.jsx)(ne.MediaUpload,{onSelect:function(e){n({insertImage:e.url}),n({insertImageAlt:e.alt})},type:"image",className:"vk_flow_frame_image",value:i,render:function(e){var t=e.open;return(0,re.jsx)(ce.Button,{onClick:t,className:i?"image-button":"button button-large",children:i?(0,re.jsx)("img",{className:"icon-image",src:i,alt:s}):(0,z.__)("Select image","vk-blocks")})}})})]}),"vk_flow-arrow-on"===l&&(0,re.jsx)("div",{className:"vk_flow_frame_arrow"})]}))]})},save:function(e){var t=e.attributes,n=t.heading,r=t.content,o=t.insertImage,a=t.insertImageAlt,i=t.arrowFlag;return(0,re.jsx)("div",Qa(Qa({},ne.useBlockProps.save({className:"".concat(i," vk_flow")})),{},{children:(0,re.jsxs)("div",{className:"vk_flow_frame",children:[(0,re.jsxs)("dl",{className:"vk_flow_frame_text",children:[(0,re.jsx)(ne.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,re.jsx)(ne.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:r})]}),o&&(0,re.jsx)("div",{className:"vk_flow_frame_image",children:(0,re.jsx)("img",{src:o,alt:a})})]})}))},deprecated:Ha};function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(null,arguments)}var ri=function(e){return Q.createElement("svg",ni({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),qa||(qa=Q.createElement("path",{d:"M20 10V4h3v15h-3v-6h-6v6h-3v-1.89l1.06-1.1c.95-1 .28-2.64-1.06-2.73V4h3v6z"})),$a||($a=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),Ja||(Ja=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))};function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ii=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ci=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pi=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vi=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gi=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _i={level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number",default:0},title:{type:"string",source:"html",selector:"span",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2},titleMarginBottom:{type:"number",default:1},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"off"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.2},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},fontAwesomeIconBefore:{type:"string",default:""},fontAwesomeIconAfter:{type:"string",default:""},fontAwesomeIconColor:{type:"string",default:"#000000"}},xi=yi(yi({},_i),{},{outerMarginBottom:{type:"number",default:null},titleMarginBottom:{type:"number",default:null},titleColor:{type:"string",default:null},subTextColor:{type:"string",default:null},fontAwesomeIconColor:{type:"string",default:"#000000"}}),ji=yi(yi({},xi),{},w(w({titleSize:{type:"number",default:2},subTextSize:{type:"number",default:1.2},subTextColor:{type:"string"}},"subTextSize",{type:"number"}),"fontAwesomeIconColor",{type:"string"})),wi=yi(yi({},ji),{},{titleColor:{type:"string"},titleSize:{type:"number"}}),Oi=[{attributes:wi,save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,v=t.fontAwesomeIconAfter,m=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k="";void 0!==a&&(k+="has-text-color",St(a)||(k+=" has-".concat(a,"-color")));var y=pn()("vk_heading_title",w(w({},"vk_heading_title-style-".concat(d),!!d),"".concat(k),!!k)),_={color:null!=a&&St(a)?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},x="";void 0!==c&&(x+="has-text-color",St(c)||(x+=" has-".concat(c,"-color")));var j=pn()("vk_heading_subtext",w(w({},"vk_heading_subtext-style-".concat(d),!!d),"".concat(x),!!x)),O={color:null!=c&&St(c)?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},C="";void 0!==m&&(C+="has-text-color",St(m)||(C+=" has-".concat(m,"-color")));var P=m&&St(m)?'style="color:'.concat(m,';"'):"",T=f,S=v;if(T&&C){var E=T.split('<i class="');E[0]=E[0]+'<i class="'.concat(C," "),T=E.join("")}if(S&&C){var N=S.split('<i class="');N[0]=N[0]+'<i class="'.concat(C," "),S=N.join("")}if(T&&P){var B=T.split("<i");B[0]=B[0]+"<i ".concat(P," "),T=B.join("")}if(S&&P){var I=S.split("<i");I[0]=I[0]+"<i ".concat(P," "),S=I.join("")}var M,D=(0,re.jsxs)(re.Fragment,{children:[ye(T),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(S)]});"on"===s&&(M=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:O,className:j}));var A=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",hi(hi({},A),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[gi(n,D,_,y),M]})}))}},{attributes:wi,save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,v=t.fontAwesomeIconAfter,m=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k={color:null!=a?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},y="vk_heading_title vk_heading_title-style-".concat(d),_={color:null!=c?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},x="vk_heading_subtext vk_heading_subtext-style-".concat(d),j="",w="",O=m?'style="color:'.concat(m,';"'):"";if(f){var C=f.split("<i");C[0]=C[0]+"<i ".concat(O," "),j=C.join("")}if(v){var P=v.split("<i");P[0]=P[0]+"<i ".concat(O," "),w=P.join("")}var T,S=(0,re.jsxs)(re.Fragment,{children:[ye(j),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(w)]});"on"===s&&(T=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:_,className:x}));var E=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",fi(fi({},E),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[vi(n,S,k,y),T]})}))}},{attributes:ji,save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,v=t.fontAwesomeIconAfter,m=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k={color:null!=a?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},y="vk_heading_title vk_heading_title-style-".concat(d),_={color:null!=c?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},x="vk_heading_subtext vk_heading_subtext-style-".concat(d),j="",w="",O=m?'style="color:'.concat(m,';"'):"";if(f){var C=f.split("<i");C[0]=C[0]+"<i ".concat(O," "),j=C.join("")}if(v){var P=v.split("<i");P[0]=P[0]+"<i ".concat(O," "),w=P.join("")}var T,S=(0,re.jsxs)(re.Fragment,{children:[ye(j),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(w)]});"on"===s&&(T=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:_,className:x}));var E=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",di(di({},E),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[pi(n,S,k,y),T]})}))}},{attributes:xi,save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,v=t.fontAwesomeIconAfter,m=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k={color:null!=a?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},y="vk_heading_title vk_heading_title-style-".concat(d),_={color:null!=c?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},x="vk_heading_subtext vk_heading_subtext-style-".concat(d),j="",w="";if(f){m=m||"#000000";var O=f.split("<i");O[0]=O[0]+'<i style="color:'.concat(m,';" '),j=O.join("")}if(v){m=m||"#000000";var C=v.split("<i");C[0]=C[0]+'<i style="color:'.concat(m,';" '),w=C.join("")}var P,T=(0,re.jsxs)(re.Fragment,{children:[ye(j),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(w)]});"on"===s&&(P=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:_,className:x}));var S=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",si(si({},S),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[ci(n,T,k,y),P]})}))}},{attributes:_i,save:function(e){var t,n,r=e.attributes,o=r.level,a=r.align,i=r.title,l=r.titleColor,s=r.titleSize,c=r.subText,u=r.subTextFlag,d=r.subTextColor,p=r.subTextSize,b=r.titleStyle,f=r.titleMarginBottom,v=r.outerMarginBottom,m=r.fontAwesomeIconBefore,h=r.fontAwesomeIconAfter,g=r.fontAwesomeIconColor,k="vk_heading vk_heading-style-".concat(b);v&&(t={marginBottom:v+"rem"}),n=null!=f?{color:l,fontSize:s+"rem",marginBottom:f+"rem",textAlign:a}:{color:l,fontSize:s+"rem",textAlign:a};var y="vk_heading_title vk_heading_title-style-".concat(b),_={color:d,fontSize:p+"rem",textAlign:a},x="vk_heading_subtext vk_heading_subtext-style-".concat(b),j="",w="";if(m){g=g||"#000000";var O=m.split("<i");O[0]=O[0]+'<i style="color:'.concat(g,';" '),j=O.join("")}if(h){g=g||"#000000";var C=h.split("<i");C[0]=C[0]+'<i style="color:'.concat(g,';" '),w=C.join("")}var P,T=(0,re.jsxs)(re.Fragment,{children:[ye(j),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:i}),ye(w)]});"on"===u&&(P=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:c,style:_,className:x}));var S=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",ai(ai({},S),{},{children:(0,re.jsxs)("div",{className:k,style:t,children:[ii(o,T,n,y),P]})}))}}],Ci=Oi;function Pi(e){var t=e.level,n=e.isPressed,r=void 0!==n&&n,o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(t)?(0,re.jsx)(ce.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r,children:(0,re.jsx)(ce.Path,{d:o[t]})}):null}var Ti=[1,2,3,4,5,6],Si={className:"block-library-heading-level-dropdown vk-blocks-heading-level-dropdown"};function Ei(e){var t=e.selectedLevel,n=e.onChange;return(0,re.jsx)(ce.ToolbarDropdownMenu,{popoverProps:Si,icon:(0,re.jsx)(Pi,{level:t}),label:(0,z.__)("Change heading level"),controls:Ti.map((function(e){var r=e===t;return{icon:(0,re.jsx)(Pi,{level:e,isPressed:r}),label:(0,z.sprintf)(4 (0,z.__)("Copy link: %s","vk-blocks"),t),children:(0,re.jsx)("button",{type:"button",className:"components-button is-compact has-icon","aria-label":(0,z.__)("Copy link","vk-blocks"),onClick:function(){return i(t)},children:(0,re.jsx)("span",{style:{width:"24px",height:"24px"},children:Zn})})})]})})},$n=function(e){var t=e.linkUrl,n=e.setLinkUrl,r=e.linkTarget,o=e.setLinkTarget,a=e.linkDescription,i=e.setLinkDescription,l=e.relAttribute,s=e.setRelAttribute,c=ue((0,Q.useState)(!1),2),u=c[0],d=c[1],p=ue((0,Q.useState)(""),2),b=p[0],f=p[1],m=ue((0,Q.useState)(null),2),v=m[0],h=m[1],g=ue((0,Q.useState)(!1),2),k=g[0],y=g[1],_=ue((0,Q.useState)(!0),2),x=_[0],j=_[1],w=ue((0,Q.useState)(""),2),O=w[0],C=w[1];(0,Q.useEffect)((function(){if(t){var e=E(t),n=!e.startsWith(window.location.origin)&&!e.startsWith("#");if(n?f(e):function(e){return e.startsWith("#")?Promise.resolve(e):fetch(e,{method:"GET"}).then((function(e){return e.text()})).then((function(t){var n=t.match(/<title>(.*?)<\/title>/i);return n?n[1]:e})).catch((function(){return e}))}(e).then((function(e){f(e)})),n)h(Yn);else if(e.startsWith("#"))h(Yn);else try{var r=new URL(e).origin,o="".concat(r,"/favicon.ico");h((0,re.jsx)("img",{src:o,alt:"",style:{width:"16px",height:"16px"}}))}catch(e){h(Xn)}}}),[t]),(0,Q.useEffect)((function(){j(!t||""===t.trim())}),[t]);var P=function(){u?""===t&&d(!1):d(!0)},T=function(){n(""),o(""),d(!1)},S=function(e){var t=e.startsWith("#")?e:E(e);if("undefined"!=typeof window&&window.navigator.clipboard)window.navigator.clipboard.writeText(t).then((function(){C((0,z.__)("Link copied to clipboard.","vk-blocks")),y(!0),setTimeout((function(){return y(!1)}),3e3)})).catch((function(){}));else{var n=document.createElement("textarea");n.value=t,document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n),C((0,z.__)("Link copied to clipboard.","vk-blocks")),y(!0),setTimeout((function(){return y(!1)}),3e3)}},E=function(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")||e.startsWith("#")||e.startsWith("tel:")||e.startsWith("mailto:")||""===e?e:"http://"+e},N=function(e,t){var n=l?l.split(" "):[];if(t)n.push(e);else{var r=n.indexOf(e);-1!==r&&n.splice(r,1)}s(n.join(" "))};return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ce.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return(0,re.jsx)(ce.ToolbarButton,{"aria-expanded":n,icon:n?Wn:Xn,isActive:!!t,label:n?(0,z.__)("Unlink","vk-blocks"):(0,z.__)("Input Link URL","vk-blocks"),onClick:function(){P(),r()},className:t?"is-pressed":""})},renderContent:function(e){var c=e.onClose;return(0,re.jsxs)("div",{children:[t&&(0,re.jsx)(qn,{linkUrl:E(t),linkTitle:b,icon:v,linkTarget:r,onRemove:T,onCopy:S}),(0,re.jsxs)("form",{onSubmit:function(e){e.preventDefault(),t&&n(E(t)),c()},children:[(0,re.jsxs)("div",{className:"vk-block-editor-url-input-wrapper",children:[(0,re.jsx)(ne.URLInput,{__nextHasNoMarginBottom:!0,value:t,onChange:function(e){return n(e)}}),(0,re.jsx)(ce.Button,{icon:Qn,label:(0,z.__)("Submit","vk-blocks"),type:"submit",disabled:x})]}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Open link new tab","vk-blocks"),checked:"_blank"===r,onChange:function(e){return o(e?"_blank":"")}}),void 0!==l&&"function"==typeof s&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Add noreferrer","vk-blocks"),checked:l.includes("noreferrer")||!1,onChange:function(e){return N("noreferrer",e)}}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Add nofollow","vk-blocks"),checked:l.includes("nofollow")||!1,onChange:function(e){return N("nofollow",e)}})]}),void 0!==a&&"function"==typeof i&&(0,re.jsx)(ce.TextControl,{label:(0,z.__)("Accessibility link description","vk-blocks"),value:a,onChange:function(e){return i(e)}})]})]})}}),k&&(0,re.jsx)("div",{"aria-live":"polite",style:{position:"fixed",bottom:"-3.5rem",right:"0",zIndex:9999,background:"#000",color:"#fff",padding:"10px",borderRadius:"4px",fontSize:"12px",lineHeight:"1.2"},children:(0,z.__)("Link copied to clipboard.","vk-blocks")}),(0,re.jsx)("div",{"aria-live":"polite",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0,0,0,0)",border:"0"},children:O})]})};function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nr=function(){return!!e})()}var rr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,nr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,r=this.props.lbAlign,o=this.props.lbSize,a=this.props.lbUrl,i=this.props.lbTarget,l=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,c=this.props.lbRichtext,u=this.props.lbsubCaption,d="",p={},b="",f="";if(p=null,d="".concat(d="vk_button_link","0"===n||null===n||"1"===n?" btn":" vk_button_link-type-text"),"0"===n||null===n?"undefined"===e||null==e?(d="".concat(d," btn-").concat(t),p=null):p={backgroundColor:"".concat(e),border:"1px solid ".concat(e),color:"#fff"}:"1"===n?"undefined"===e||null==e?(d="".concat(d," btn-outline-").concat(t),p=null):p={backgroundColor:"transparent",border:"1px solid ".concat(e),color:"".concat(e)}:"2"===n&&("undefined"===e||null==e?(d="".concat(d," btn-outline-").concat(t),p=null):p={color:"".concat(e)}),d="".concat(d," btn-").concat(o),"block"===r&&(d="".concat(d," btn-block")),l&&!l.match(/<i/)&&(l='<i class="'.concat(l,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),l){var m=(l=l.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_before ",b=m.join("")}if(s){var v=(s=s.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_after ",f=v.join("")}return(0,re.jsxs)("a",{href:a,style:p,className:d,role:"button","aria-pressed":!0,target:i?"_blank":null,rel:"noopener",children:[ye(b),c,ye(f),u&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:u})]})}}])}(de.Component);function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ir=function(){return!!e})()}var lr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,ir()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,r=this.props.lbAlign,o=this.props.lbSize,a=this.props.lbUrl,i=this.props.lbTarget,l=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,c=this.props.lbRichtext,u=this.props.lbsubCaption,d="",p="",b="";if(d="vk_button_link","0"!==n&&null!==n&&"1"!==n&&(d+=" vk_button_link-type-text"),"0"===n||null===n?"custom"!==t&&void 0===e?d+=" vk_button_btn has-background has-vk-color-".concat(t,"-background-color"):(d+=" has-background",St(e)?d+=" vk_button_btn":d+=" vk_button_btn has-".concat(e,"-background-color")):"1"===n?"custom"!==t&&void 0===e?d+=" vk_button_btn has-text-color has-vk-color-".concat(t,"-color is-style-outline"):(d+=" has-text-color",St(e)?d+=" vk_button_btn":d+=" vk_button_btn has-".concat(e,"-color is-style-outline")):"2"===n&&("custom"!==t&&void 0===e?d+=" has-text-color has-vk-color-".concat(t,"-color"):(d+=" has-text-color",St(e)?d+="":d+=" has-".concat(e,"-color"))),d="".concat(d," btn-").concat(o),"block"===r&&(d="".concat(d," btn-block")),l&&!l.match(/<i/)&&(l='<i class="'.concat(l,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),l){var f=(l=l.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(s){var m=(s=s.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_after ",b=m.join("")}return(0,re.jsxs)("a",{href:a,style:null,className:d,role:"button","aria-pressed":!0,target:i?"_blank":null,rel:"noopener",children:[ye(p),c,ye(b),u&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:u})]})}}])}(de.Component);function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ur=function(){return!!e})()}var dr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,ur()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,r=this.props.lbAlign,o=this.props.lbSize,a=this.props.lbUrl,i=this.props.lbTarget,l=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,c=this.props.lbRichtext,u=this.props.lbsubCaption,d="",p="",b="";if(d="vk_button_link","0"===n||null===n?"custom"!==t&&void 0===e?d+=" btn has-background has-vk-color-".concat(t,"-background-color"):(d+=" btn has-background",St(e)||(d+=" has-".concat(e,"-background-color"))):"1"===n?"custom"!==t&&void 0===e?d+=" btn has-text-color is-style-outline has-vk-color-".concat(t,"-color"):(d+=" btn has-text-color is-style-outline",St(e)||(d+=" has-".concat(e,"-color"))):"2"===n&&("custom"!==t&&void 0===e?d+=" has-text-color vk_button_link-type-text has-vk-color-".concat(t,"-color"):(d+=" has-text-color vk_button_link-type-text",St(e)||(d+=" has-".concat(e,"-color")))),d="".concat(d," btn-").concat(o),"block"===r&&(d="".concat(d," btn-block")),l&&!l.match(/<i/)&&(l='<i class="'.concat(l,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),l){var f=(l=l.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(s){var m=(s=s.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_after ",b=m.join("")}return(0,re.jsxs)("a",{href:a,style:null,className:d,role:"button","aria-pressed":!0,target:i?"_blank":null,rel:"noopener",children:[ye(p),c,ye(b),u&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:u})]})}}])}(de.Component);function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fr=function(){return!!e})()}var mr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,fr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,r=this.props.lbAlign,o=this.props.lbSize,a=this.props.lbUrl,i=this.props.lbTarget,l=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,c=this.props.lbRichtext,u=this.props.lbsubCaption,d="",p="",b="";if(d="vk_button_link","0"===n||null===n?"custom"!==t&&void 0===e?d+=" btn has-background has-vk-color-".concat(t,"-background-color"):(d+=" btn has-background",St(e)||(d+=" has-".concat(e,"-background-color"))):"1"===n?"custom"!==t&&void 0===e?d+=" btn has-text-color is-style-outline has-vk-color-".concat(t,"-color"):(d+=" btn has-text-color is-style-outline",St(e)||(d+=" has-".concat(e,"-color"))):"2"===n&&("custom"!==t&&void 0===e?d+=" has-text-color vk_button_link-type-text has-vk-color-".concat(t,"-color"):(d+=" has-text-color vk_button_link-type-text",St(e)||(d+=" has-".concat(e,"-color")))),d="".concat(d," btn-").concat(o),"block"===r&&(d="".concat(d," btn-block")),l&&!l.match(/<i/)&&(l='<i class="'.concat(l,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),l){var f=(l=l.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(s){var m=(s=s.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_after ",b=m.join("")}return(0,re.jsxs)("a",{href:a,style:null,className:d,role:"button","aria-pressed":!0,target:i?"_blank":null,rel:"noopener",children:[ye(p),c,ye(b),u&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:u})]})}}])}(de.Component);function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gr=function(){return!!e})()}var kr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,gr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,d=this.props.lbsubCaption,p="",b="",f="";if(p="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",St(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",St(e)||(p+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",St(t)||(p+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",St(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(a),"block"===o&&(p="".concat(p," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var m=(s=s.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_before ",b=m.join("")}if(c){var v=(c=c.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_after ",f=v.join("")}return(0,re.jsxs)("a",{href:i,style:null,className:p,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[ye(b),u,ye(f),d&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:d})]})}}])}(de.Component);function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xr=function(){return!!e})()}var jr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,xr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,d=this.props.lbsubCaption,p="",b="",f="";if(p="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",St(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",St(e)||(p+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",St(t)||(p+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",St(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(a),"block"===o&&(p="".concat(p," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var m=(s=s.replace(/ fas/g,"fas")).split(" ");m[1]=" "+m[1]+" vk_button_link_before ",b=m.join("")}if(c){var v=(c=c.replace(/ fas/g,"fas")).split(" ");v[1]=" "+v[1]+" vk_button_link_after ",f=v.join("")}return(0,re.jsxs)("a",{href:i,style:null,className:p,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[ye(b),u,ye(f),d&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:d})]})}}])}(de.Component);function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cr=function(){return!!e})()}var Pr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Cr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,d=this.props.lbsubCaption,p="",b="",f="";if(p="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",St(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",St(e)||(p+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",St(t)||(p+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",St(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(a),"block"===o&&(p="".concat(p," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var m=s.match(/class="(.*?)"/)[1];b='<i class="'.concat(m+=" vk_button_link_before",'"></i>')}if(c){var v=c.match(/class="(.*?)"/)[1];f='<i class="'.concat(v+=" vk_button_link_after",'"></i>')}return(0,re.jsxs)("a",{href:i,style:null,className:p,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[ye(b),u,ye(f),d&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:d})]})}}])}(de.Component);function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Er=function(){return!!e})()}var Nr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Er()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,d=this.props.lbsubCaption,p="",b="",f="";if(p="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",St(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",St(e)||(p+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",St(t)||(p+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",St(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(a),"block"===o&&(p="".concat(p," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var m=s.match(/class="(.*?)"/)[1];b='<i class="'.concat(m+=" vk_button_link_before",'"></i>')}if(c){var v=c.match(/class="(.*?)"/)[1];f='<i class="'.concat(v+=" vk_button_link_after",'"></i>')}return(0,re.jsxs)("a",{href:i,style:null,className:p,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[ye(b),u,ye(f),d&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:d})]})}}])}(de.Component);function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mr=function(){return!!e})()}var Dr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Mr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbIconSizeBefore,d=this.props.lbIconSizeAfter,p=this.props.lbRichtext,b=this.props.lbsubCaption,f="",m="",v="";if(f="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?f+=" btn has-background has-vk-color-".concat(n,"-background-color"):(f+=" btn has-background",St(t)||(f+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(f+=" btn has-text-color",St(e)||(f+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?f+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(f+=" btn has-text-color is-style-outline",St(t)||(f+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?f+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(f+=" has-text-color vk_button_link-type-text",St(t)||(f+=" has-".concat(t,"-color")))),f="".concat(f," btn-").concat(a),"block"===o&&(f="".concat(f," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var h=s.match(/class="(.*?)"/)[1];h+=" vk_button_link_before";var g=u?" style='font-size: ".concat(u,"'"):"";m='<i class="'.concat(h,'"').concat(g,"></i>")}if(c){var k=c.match(/class="(.*?)"/)[1];k+=" vk_button_link_after";var y=d?" style='font-size: ".concat(d,"'"):"";v='<i class="'.concat(k,'"').concat(y,"></i>")}return(0,re.jsxs)("a",{href:i,style:null,className:f,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[(0,re.jsxs)("div",{className:"vk_button_link_caption",children:[ye(m),p,ye(v)]}),b&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:b})]})}}])}(de.Component);function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rr=function(){return!!e})()}var Vr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Rr()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbIconSizeBefore,d=this.props.lbIconSizeAfter,p=this.props.lbRichtext,b=this.props.lbsubCaption,f="",m="",v="";if(f="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?f+=" btn has-background has-vk-color-".concat(n,"-background-color"):(f+=" btn has-background",St(t)||(f+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(f+=" btn has-text-color",St(e)||(f+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?f+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(f+=" btn has-text-color is-style-outline",St(t)||(f+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?f+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(f+=" has-text-color vk_button_link-type-text",St(t)||(f+=" has-".concat(t,"-color")))),f="".concat(f," btn-").concat(a),"block"===o&&(f="".concat(f," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var h=s.match(/class="(.*?)"/)[1];h+=" vk_button_link_before";var g=u?" style='font-size: ".concat(u,"'"):"";m='<i class="'.concat(h,'"').concat(g,"></i>")}if(c){var k=c.match(/class="(.*?)"/)[1];k+=" vk_button_link_after";var y=d?" style='font-size: ".concat(d,"'"):"";v='<i class="'.concat(k,'"').concat(y,"></i>")}return(0,re.jsxs)("a",{href:i,style:null,className:f,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[(0,re.jsxs)("div",{className:"vk_button_link_caption",children:[ye(m),p,ye(v)]}),b&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:b})]})}}])}(de.Component);function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ur(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ur=function(){return!!e})()}var Hr=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Ur()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,r=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,i=this.props.lbUrl,l=this.props.lbTarget,s=this.props.lbFontAwesomeIconBefore,c=this.props.lbFontAwesomeIconAfter,u=this.props.lbIconSizeBefore,d=this.props.lbIconSizeAfter,p=this.props.lbRichtext,b=this.props.lbsubCaption,f=this.props.inlineStyle,m="",v="",h="";if(m="vk_button_link","0"===r||null===r?("custom"!==n&&void 0===t?m+=" btn has-background has-vk-color-".concat(n,"-background-color"):(m+=" btn has-background",St(t)||(m+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(m+=" btn has-text-color",St(e)||(m+=" has-".concat(e,"-color")))):"1"===r?"custom"!==n&&void 0===t?m+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(m+=" btn has-text-color is-style-outline",St(t)||(m+=" has-".concat(t,"-color"))):"2"===r&&("custom"!==n&&void 0===t?m+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(m+=" has-text-color vk_button_link-type-text",St(t)||(m+=" has-".concat(t,"-color")))),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),s){var g=s.match(/class="(.*?)"/)[1];g+=" vk_button_link_before";var k=u?" style='font-size: ".concat(u,"'"):"";v='<i class="'.concat(g,'"').concat(k,"></i>")}if(c){var y=c.match(/class="(.*?)"/)[1];y+=" vk_button_link_after";var _=d?" style='font-size: ".concat(d,"'"):"";h='<i class="'.concat(y,'"').concat(_,"></i>")}return(0,re.jsxs)("a",{href:i,style:f,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener",children:[(0,re.jsxs)("div",{className:"vk_button_link_caption",children:[ye(v),p,ye(h)]}),b&&(0,re.jsx)("p",{className:"vk_button_link_subCaption",children:b})]})}}])}(de.Component);function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xr=Yr(Yr({},{content:{type:"string",source:"html",selector:"span"},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}}),{},{subCaption:{type:"string",default:""}}),Qr=Yr(Yr({},Xr),{},{buttonUrl:{type:"string"},buttonColorCustom:{type:"string"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"},subCaption:{type:"string"},clientId:{type:"string"}}),qr=Yr(Yr({},Qr),{},{blockId:{type:"string"}}),$r=Yr(Yr({},qr),{},{buttonTextColorCustom:{type:"string"}}),Jr=Yr(Yr({},$r),{},{buttonWidth:{type:"number",default:0}}),Kr=Yr(Yr({},Jr),{},{buttonWidthMobile:{type:"number",default:0},buttonWidthTablet:{type:"number",default:0},buttonWidth:{type:"number",default:0}}),eo=Yr(Yr({},Kr),{},{old_1_31_0:{type:"string",default:!0}}),to=Yr(Yr({},eo),{},{outerGap:{type:"string",default:null}}),no=Yr(Yr({},to),{},{iconSizeBefore:{type:"string",default:null},iconSizeAfter:{type:"string",default:null}}),ro=Yr(Yr({},no),{},{buttonEffect:{type:"string",default:""}}),oo=[{attributes:Yr(Yr({},ro),{},{borderRadius:{type:"string",default:null}}),save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonEffect,c=t.buttonColor,u=t.buttonTextColorCustom,d=t.buttonColorCustom,p=t.buttonAlign,b=t.buttonWidthMobile,f=t.buttonWidthTablet,m=t.buttonWidth,v=t.outerGap,h=t.fontAwesomeIconBefore,g=t.fontAwesomeIconAfter,k=t.iconSizeBefore,y=t.iconSizeAfter,_=t.blockId,x="";x=void 0!==d&&St(d)||void 0!==u&&St(u)||v?"vk_button vk_button-color-custom vk_button-".concat(_):"vk_button vk_button-color-custom",b||f||m?(b&&(x+=" vk_button-width-mobile-".concat(b)),f&&(x+=" vk_button-width-tablet-".concat(f)),m&&(x+=" vk_button-width-".concat(m))):x+=" vk_button-align-".concat(p),""!==s&&(x+=" is-style-".concat(s));var j=ne.useBlockProps.save({className:x});return(0,re.jsx)("div",Wr(Wr({},j),{},{children:(0,re.jsx)(Hr,{lbTextColorCustom:u,lbColorCustom:d,lbColor:c,lbType:l,lbAlign:p,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:h,lbFontAwesomeIconAfter:g,lbIconSizeBefore:k,lbIconSizeAfter:y,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:ro,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonEffect,c=t.buttonColor,u=t.buttonTextColorCustom,d=t.buttonColorCustom,p=t.buttonAlign,b=t.buttonWidthMobile,f=t.buttonWidthTablet,m=t.buttonWidth,v=t.outerGap,h=t.fontAwesomeIconBefore,g=t.fontAwesomeIconAfter,k=t.iconSizeBefore,y=t.iconSizeAfter,_=t.blockId,x="";x=void 0!==d&&St(d)||void 0!==u&&St(u)||v?"vk_button vk_button-color-custom vk_button-".concat(_):"vk_button vk_button-color-custom",b||f||m?(b&&(x+=" vk_button-width-mobile-".concat(b)),f&&(x+=" vk_button-width-tablet-".concat(f)),m&&(x+=" vk_button-width-".concat(m))):x+=" vk_button-align-".concat(p),""!==s&&(x+=" is-style-".concat(s));var j=ne.useBlockProps.save({className:x});return(0,re.jsx)("div",Lr(Lr({},j),{},{children:(0,re.jsx)(Vr,{lbTextColorCustom:u,lbColorCustom:d,lbColor:c,lbType:l,lbAlign:p,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:h,lbFontAwesomeIconAfter:g,lbIconSizeBefore:k,lbIconSizeAfter:y,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:no,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonColor,c=t.buttonTextColorCustom,u=t.buttonColorCustom,d=t.buttonAlign,p=t.buttonWidthMobile,b=t.buttonWidthTablet,f=t.buttonWidth,m=t.outerGap,v=t.fontAwesomeIconBefore,h=t.fontAwesomeIconAfter,g=t.iconSizeBefore,k=t.iconSizeAfter,y=t.blockId,_="";_=void 0!==u&&St(u)||void 0!==c&&St(c)||m?"vk_button vk_button-color-custom vk_button-".concat(y):"vk_button vk_button-color-custom",p||b||f?(p&&(_+=" vk_button-width-mobile-".concat(p)),b&&(_+=" vk_button-width-tablet-".concat(b)),f&&(_+=" vk_button-width-".concat(f))):_+=" vk_button-align-".concat(d);var x=ne.useBlockProps.save({className:_});return(0,re.jsx)("div",zr(zr({},x),{},{children:(0,re.jsx)(Dr,{lbTextColorCustom:c,lbColorCustom:u,lbColor:s,lbType:l,lbAlign:d,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:v,lbFontAwesomeIconAfter:h,lbIconSizeBefore:g,lbIconSizeAfter:k,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:to,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonColor,c=t.buttonTextColorCustom,u=t.buttonColorCustom,d=t.buttonAlign,p=t.buttonWidthMobile,b=t.buttonWidthTablet,f=t.buttonWidth,m=t.outerGap,v=t.fontAwesomeIconBefore,h=t.fontAwesomeIconAfter,g=t.blockId,k="";k=void 0!==u&&St(u)||m?"vk_button vk_button-color-custom vk_button-".concat(g):"vk_button vk_button-color-custom",p||b||f?(p&&(k+=" vk_button-width-mobile-".concat(p)),b&&(k+=" vk_button-width-tablet-".concat(b)),f&&(k+=" vk_button-width-".concat(f))):k+=" vk_button-align-".concat(d);var y=ne.useBlockProps.save({className:k});return(0,re.jsx)("div",Ir(Ir({},y),{},{children:(0,re.jsx)(Nr,{lbTextColorCustom:c,lbColorCustom:u,lbColor:s,lbType:l,lbAlign:d,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:v,lbFontAwesomeIconAfter:h,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:eo,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonColor,c=t.buttonTextColorCustom,u=t.buttonColorCustom,d=t.buttonAlign,p=t.buttonWidthMobile,b=t.buttonWidthTablet,f=t.buttonWidth,m=t.fontAwesomeIconBefore,v=t.fontAwesomeIconAfter,h=t.blockId,g="";g=void 0!==c&&St(c)||void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-".concat(h):"vk_button vk_button-color-custom",p||b||f?(p&&(g+=" vk_button-width-mobile-".concat(p)),b&&(g+=" vk_button-width-tablet-".concat(b)),f&&(g+=" vk_button-width-".concat(f))):g+=" vk_button-align-".concat(d);var k=ne.useBlockProps.save({className:g});return(0,re.jsx)("div",Sr(Sr({},k),{},{children:(0,re.jsx)(Pr,{lbTextColorCustom:c,lbColorCustom:u,lbColor:s,lbType:l,lbAlign:d,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:m,lbFontAwesomeIconAfter:v,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:Kr,save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.buttonSize,l=t.buttonType,s=t.buttonColor,c=t.buttonTextColorCustom,u=t.buttonColorCustom,d=t.buttonAlign,p=t.buttonWidth,b=t.fontAwesomeIconBefore,f=t.fontAwesomeIconAfter,m=t.blockId,v="";v=void 0!==c&&St(c)||void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-".concat(m):"vk_button vk_button-color-custom",v+=p?" vk_button-width-".concat(p):" vk_button-align-".concat(d);var h=ne.useBlockProps.save({className:v});return(0,re.jsx)("div",Or(Or({},h),{},{children:(0,re.jsx)(jr,{lbTextColorCustom:c,lbColorCustom:u,lbColor:s,lbType:l,lbAlign:d,lbSize:i,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:b,lbFontAwesomeIconAfter:f,lbsubCaption:r,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))}},{attributes:Jr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonTextColorCustom,d=n.buttonColorCustom,p=n.buttonAlign,b=n.fontAwesomeIconBefore,f=n.fontAwesomeIconAfter,m=n.blockId;t=void 0!==u&&St(u)||void 0!==d&&St(d)?"vk_button vk_button-color-custom vk_button-align-".concat(p," vk_button-").concat(m):"vk_button vk_button-color-custom vk_button-align-".concat(p);var v=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",_r(_r({},v),{},{children:(0,re.jsx)(kr,{lbTextColorCustom:u,lbColorCustom:d,lbColor:c,lbType:s,lbAlign:p,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:b,lbFontAwesomeIconAfter:f,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}},{attributes:qr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonColorCustom,d=n.buttonAlign,p=n.fontAwesomeIconBefore,b=n.fontAwesomeIconAfter,f=n.blockId;t=void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-align-".concat(d," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(d);var m=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",hr(hr({},m),{},{children:(0,re.jsx)(mr,{lbColorCustom:u,lbColor:c,lbType:s,lbAlign:d,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}},{attributes:Qr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonColorCustom,d=n.buttonAlign,p=n.fontAwesomeIconBefore,b=n.fontAwesomeIconAfter,f=n.clientId;t=void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-align-".concat(d," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(d);var m=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",br(br({},m),{},{children:(0,re.jsx)(dr,{lbColorCustom:u,lbColor:c,lbType:s,lbAlign:d,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}},{attributes:Qr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonColorCustom,d=n.buttonAlign,p=n.fontAwesomeIconBefore,b=n.fontAwesomeIconAfter,f=n.clientId;t=void 0!==u&&St(u)?"vk_button vk_button-color-custom vk_button-align-".concat(d," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(d);var m=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",cr(cr({},m),{},{children:(0,re.jsx)(lr,{lbColorCustom:u,lbColor:c,lbType:s,lbAlign:d,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}},{attributes:Xr,save:function(e){var t,n=e.attributes,r=n.content,o=n.subCaption,a=n.buttonUrl,i=n.buttonTarget,l=n.buttonSize,s=n.buttonType,c=n.buttonColor,u=n.buttonColorCustom,d=n.buttonAlign,p=n.fontAwesomeIconBefore,b=n.fontAwesomeIconAfter;t=u&&"undefined"!==u?"vk_button vk_button-color-custom vk_button-align-".concat(d):"vk_button vk_button-align-".concat(d);var f=ne.useBlockProps.save({className:t});return(0,re.jsx)("div",ar(ar({},f),{},{children:(0,re.jsx)(rr,{lbColorCustom:u,lbColor:c,lbType:s,lbAlign:d,lbSize:l,lbUrl:a,lbTarget:i,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:r})})}))}}];function ao(e){var t,n,r,o,a,i=e.el,l=(t=e.attributes,n=t.buttonColorCustom,r=t.buttonType,o=t.clientId,a="",void 0!==n&&St(n)&&("0"!==r&&null!==r||(a+=".vk_button-".concat(o," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"1"===r&&(a+=".vk_button-".concat(o," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(o," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===r&&(a=".vk_button-".concat(o," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(o," .has-text-color.vk_button_link-type-text:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}"))),a);return""!==l?(0,re.jsxs)(re.Fragment,{children:[i,(0,re.jsx)("style",{type:"text/css",children:l})]}):(0,re.jsx)(re.Fragment,{children:i})}function io(e){var t,n,r,o,a,i,l=e.el,s=(t=e.attributes,n=t.buttonTextColorCustom,r=t.buttonColorCustom,o=t.buttonType,a=t.blockId,i="",void 0!==r&&St(r)&&("0"!==o&&null!==o||(i+=".vk_button-".concat(a," .has-background {\n\t\t\t\tbackground-color: ").concat(r,";\n\t\t\t\tborder: 1px solid ").concat(r,";\n\t\t\t}")),"1"===o&&(i+=".vk_button-".concat(a," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(r,";\n\t\t\t\tcolor: ").concat(r,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(r,";\n\t\t\t\tborder: 1px solid ").concat(r,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===o&&(i=".vk_button-".concat(a," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(r,";\n\t\t\t}"))),void 0!==n&&St(n)&&("0"!==o&&null!==o||(i+=" .vk_button-".concat(a," .has-text-color {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),i);return""!==s?(0,re.jsxs)(re.Fragment,{children:[l,(0,re.jsx)("style",{type:"text/css",children:s})]}):(0,re.jsx)(re.Fragment,{children:l})}function lo(e){var t=e.el,n=e.attributes,r=function(e){var t=e.buttonTextColorCustom,n=e.buttonColorCustom,r=e.buttonType,o=e.blockId,a="";return void 0!==n&&St(n)&&("0"!==r&&null!==r||(a+=".vk_button-".concat(o," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t}")),"1"===r&&(a+=".vk_button-".concat(o," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(o," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===r&&(a=".vk_button-".concat(o," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),void 0!==t&&St(t)&&("0"!==r&&null!==r||(a+=" .vk_button-".concat(o," .has-text-color {\n\t\t\t\tcolor: ").concat(t,";\n\t\t\t}"))),a}(n),o=function(e){var t=e.buttonWidthMobile,n=e.buttonWidthTablet,r=e.buttonWidth,o=e.outerGap,a=e.blockId,i="",l=".vk_button";return o&&(t&&(i+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(l,".vk_button-").concat(a," {\n\t\t\t\t\twidth: calc(").concat(t,"% - calc(").concat(o," - calc(").concat(o," / (100 / ").concat(t,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),n&&(i+="@media(min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(l,".vk_button-").concat(a," {\n\t\t\t\t\twidth: calc(").concat(n,"% - calc(").concat(o," - calc(").concat(o," / (100 / ").concat(n,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),r&&(i+="@media (min-width: 992px) {\n\t\t\t\t\t".concat(l,".vk_button-").concat(a," {\n\t\t\t\t\twidth: calc(").concat(r,"% - calc(").concat(o," - calc(").concat(o," / (100 / ").concat(r,"))) - 1px );\n\t\t\t\t}\n\t\t\t}"))),i}(n);return""!==r||""!==o?(0,re.jsxs)(re.Fragment,{children:[t,(0,re.jsxs)("style",{type:"text/css",children:[r," ",o]})]}):(0,re.jsx)(re.Fragment,{children:t})}var so=[lo,lo,lo,io,io,io,ao,ao,function(e){var t,n,r,o,a,i=e.el,l=(t=e.attributes,n=t.clientId,r=t.buttonType,o=t.buttonColorCustom,a="",void 0!==o&&St(o)&&("0"!==r&&null!==r||(a="\n\t\t\t.vk_button-".concat(n," .has-background {\n\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: #fff;\n\t\t\t}\n\t\t\t")),"1"===r&&(a="\n\t\t\t.vk_button-".concat(n," .has-text-color {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: ").concat(o,";\n\t\t\t}\n\t\t\t.vk_button-").concat(n," .has-text-color:hover {\n\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: #fff;\n\t\t\t}\n\t\t\t")),"2"===r&&(a="\n\t\t\t.vk_button-".concat(n," .vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(o,";\n\t\t\t}\n\t\t\t"))),a);return""!==l?(0,re.jsxs)(re.Fragment,{children:[i,(0,re.jsx)("style",{type:"text/css",children:l})]}):(0,re.jsx)(re.Fragment,{children:i})},function(e){return e.el}],co={from:[{type:"block",isMultiBlock:!1,blocks:["core/paragraph"],transform:function(e){var t=e.content,n=document.createElement("div");n.innerHTML=t;var r=n.innerText||"",o=n.querySelector("a"),a=null==o?void 0:o.getAttribute("href"),i=!(null==o||!o.getAttribute("target"));return(0,C.createBlock)("vk-blocks/button",{content:r,buttonUrl:a,buttonTarget:i})},isMatch:function(e){var t=document.createElement("div");t.innerHTML=e.content;var n=t.innerText||"",r=t.querySelectorAll("a");return n.length<=30&&r.length<=1}}]},uo=co,po=window.wp.hooks,bo=window.wp.compose;function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vo,ho,go,ko={apiVersion:3,name:"vk-blocks/button",title:"Button",category:"vk-blocks-cat",attributes:{content:{type:"string",source:"html",selector:"span"},subCaption:{type:"string"},buttonUrl:{type:"string"},buttonTarget:{type:"boolean",default:!1},relAttribute:{type:"string",default:""},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonEffect:{type:"string",default:""},buttonColor:{type:"string",default:"primary"},buttonTextColorCustom:{type:"string"},buttonColorCustom:{type:"string"},buttonAlign:{type:"string",default:"left"},buttonWidthMobile:{type:"number",default:0},buttonWidthTablet:{type:"number",default:0},buttonWidth:{type:"number",default:0},outerGap:{type:"string",default:null},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"},iconSizeBefore:{type:"string",default:null},iconSizeAfter:{type:"string",default:null},borderRadius:{type:"string",default:null},clientId:{type:"string"},blockId:{type:"string"},old_1_31_0:{type:"string",default:!0}},description:"A button link that can display icons before and after.",textdomain:"vk-blocks",supports:{className:!0,anchor:!0,typography:{__experimentalFontFamily:!0,__experimentalFontSize:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}}},yo=ko.name,_o={icon:(0,re.jsx)(Fn,{}),example:{attributes:{content:F,subCaption:R,buttonUrl:G,buttonTarget:!1,buttonSize:"md",buttonType:"0",buttonEffect:"",buttonColor:"primary",buttonTextColorCustom:"undefined",buttonColorCustom:"undefined",buttonAlign:"left",buttonWidthMobile:0,buttonWidthTablet:0,outerGap:null,buttonWidth:0,fontAwesomeIconBefore:L,fontAwesomeIconAfter:L,iconSizeBefore:null,iconSizeAfter:null}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=t.content,a=t.subCaption,i=t.buttonUrl,l=t.buttonTarget,s=t.relAttribute,c=t.buttonSize,u=t.buttonType,d=t.buttonEffect,p=t.buttonColor,b=t.buttonTextColorCustom,f=t.buttonColorCustom,m=t.buttonAlign,v=t.buttonWidthMobile,h=t.buttonWidthTablet,g=t.buttonWidth,k=t.outerGap,y=t.fontAwesomeIconBefore,_=t.fontAwesomeIconAfter,x=t.iconSizeBefore,j=t.iconSizeAfter,w=t.blockId,O=t.old_1_31_0,C=vkFontAwesome.iconFamily,P=!!(0,fe.select)("core/block-editor").getBlockParentsByBlockName(r,["vk-blocks/button-outer"]).length;(0,de.useEffect)((function(){void 0!==t.clientId&&n({clientId:void 0}),void 0!==w&&!1!==Gn(r)||n({blockId:r}),null!==i&&"null"!==i&&"undefined"!==i&&""!==i||n({buttonUrl:void 0}),void 0===f&&n({buttonTextColorCustom:void 0}),null!==f&&"null"!==f&&"undefined"!==f&&""!==f||n({buttonColorCustom:void 0}),null!==y&&"null"!==y&&"undefined"!==y&&""!==y||n({fontAwesomeIconBefore:void 0}),null!==_&&"null"!==_&&"undefined"!==_&&""!==_||n({fontAwesomeIconAfter:void 0}),null!==a&&"null"!==a&&"undefined"!==a&&""!==a||n({subCaption:void 0}),void 0===O&&(void 0===v&&n({buttonWidthMobile:g}),void 0===h&&n({buttonWidthTablet:g}),n({old_1_31_0:!0})),P||n({buttonWidth:0})}),[r]);var T,S=(0,fe.dispatch)("core/block-editor").updateBlockAttributes;(0,de.useEffect)((function(){"custom"!==p?(S(r,{buttonTextColorCustom:void 0}),S(r,{buttonColorCustom:void 0})):void 0===f&&"custom"===p&&(S(r,{buttonColor:"primary"}),S(r,{buttonTextColorCustom:void 0}))}),[p]),(0,de.useEffect)((function(){void 0!==f?S(r,{buttonColor:"custom"}):"custom"===p&&S(r,{buttonColor:"primary"})}),[f]),T=void 0!==f&&St(f)||void 0!==b&&St(b)||k?"vk_button vk_button-color-custom vk_button-".concat(w):"vk_button vk_button-color-custom",P?(v&&(T+=" vk_button-width-mobile-".concat(v)),h&&(T+=" vk_button-width-tablet-".concat(h)),g&&(T+=" vk_button-width-".concat(g))):T+=" vk_button-align-".concat(m),""!==d&&(T+=" is-style-".concat(d));var E=[{value:"px",label:"px",default:16},{value:"em",label:"em",default:1},{value:"rem",label:"rem",default:1}],N=(0,ne.useBlockProps)({className:T}),B={};void 0!==b&&St(b)&&(B={color:"".concat(b)});var I=l?"_blank":"";return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.BlockControls,{children:(0,re.jsx)(ce.ToolbarGroup,{children:(0,re.jsx)($n,{linkUrl:i||"",setLinkUrl:function(e){return n({buttonUrl:e})},linkTarget:I,setLinkTarget:function(e){return n({buttonTarget:"_blank"===e})},relAttribute:s||"",setRelAttribute:function(e){return n({relAttribute:e})}})})}),(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Button setting","vk-blocks"),children:[(0,re.jsx)(ce.TextControl,{label:(0,z.__)("Sub Caption","vk-blocks"),value:a,className:"mt-0 mb-3",onChange:function(e){return n({subCaption:e})},placeholder:"Sub Caption"}),(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Size:","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:c,onChange:function(e){return n({buttonSize:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"lg",label:(0,z.__)("Large","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"md",label:(0,z.__)("Normal","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"sm",label:(0,z.__)("Small","vk-blocks")})]}),!P&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Position:","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:m,onChange:function(e){return n({buttonAlign:e})},className:"vk-button-align-control",isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"left",label:(0,z.__)("Left","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"center",label:(0,z.__)("Center","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"right",label:(0,z.__)("Right","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"wide",label:(0,z.__)("Wide","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"block",label:(0,z.__)("Block","vk-blocks")})]}),(0,re.jsx)("style",{children:"\n\t\t\t\t\t\t\t\t\t.vk-button-align-control .components-toggle-group-control-option-base {\n\t\t\t\t\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t"})]}),P&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Width:","vk-blocks")}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Mobile","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:String(v),onChange:function(e){n({buttonWidthMobile:Number(e)})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:"Auto"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"25",label:"25%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"50",label:"50%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"75",label:"75%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"100",label:"100%"})]}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Tablet","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:String(h),onChange:function(e){n({buttonWidthTablet:Number(e)})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:"Auto"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"25",label:"25%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"50",label:"50%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"75",label:"75%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"100",label:"100%"})]}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("PC","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:String(g),onChange:function(e){n({buttonWidth:Number(e)})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:"Auto"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"25",label:"25%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"50",label:"50%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"75",label:"75%"}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"100",label:"100%"})]})]}),(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Style:","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:u,onChange:function(e){n({buttonType:e}),"1"!==e&&"2"!==e||n({buttonTextColorCustom:void 0,buttonEffect:""})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:(0,z.__)("Solid color","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"1",label:(0,z.__)("No background","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"2",label:(0,z.__)("Text only","vk-blocks")})]}),(0,re.jsx)("p",{className:"mb-3",children:(0,z.__)('If you select "No background", that you need to select a Custom Color.',"vk-blocks")}),"0"===u&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button Effect:","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:d,onChange:function(e){return n({buttonEffect:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"none",label:(0,z.__)("None","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"shine",label:(0,z.__)("Shine","vk-blocks")})]})]}),(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Color","vk-blocks")}),(0,re.jsx)(ce.SelectControl,{label:(0,z.__)("Default Color (Bootstrap)","vk-blocks"),value:p,options:[{label:(0,z.__)("Primary","vk-blocks"),value:"primary"},{label:(0,z.__)("Secondary","vk-blocks"),value:"secondary"},{label:(0,z.__)("Success","vk-blocks"),value:"success"},{label:(0,z.__)("Info","vk-blocks"),value:"info"},{label:(0,z.__)("Warning","vk-blocks"),value:"warning"},{label:(0,z.__)("Danger","vk-blocks"),value:"danger"},{label:(0,z.__)("Light","vk-blocks"),value:"light"},{label:(0,z.__)("Dark","vk-blocks"),value:"dark"},{label:(0,z.__)("Custom Color","vk-blocks"),value:"custom"}],onChange:function(e){return n({buttonColor:e})}}),(0,re.jsxs)(ce.BaseControl,{label:(0,z.__)("Custom Color","vk-blocks"),id:"vk_block_button_custom_color",children:[(0,re.jsx)(ce.BaseControl,{id:"vk_block_button_custom_background_color",label:"0"===u||null===u?(0,z.__)("Background Color","vk-blocks"):(0,z.__)("Button Color","vk-blocks"),help:(0,z.__)("This color palette overrides the default color. If you want to use the default color, click the clear button.","vk-blocks"),children:(0,re.jsx)(Xt,Kn({schema:"buttonColorCustom"},e))}),("0"===u||null===u)&&void 0!==f&&(0,re.jsx)(ce.BaseControl,{id:"vk_block_button_custom_text_color",label:(0,z.__)("Text Color","vk-blocks"),children:(0,re.jsx)(Xt,Kn({schema:"buttonTextColorCustom"},e))})]}),(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Icon","vk-blocks")+" ( "+C+" )"}),(0,re.jsxs)(ce.BaseControl,{id:"vk_block_button_fa_before_text",label:(0,z.__)("Before text","vk-blocks"),children:[(0,re.jsx)(Ze,Kn({attributeName:"fontAwesomeIconBefore"},e)),(0,re.jsx)(ce.__experimentalUnitControl,{label:(0,z.__)("Size","vk-blocks"),value:x,units:E,onChange:function(e){n({iconSizeBefore:parseFloat(e)?e:null})}})]}),(0,re.jsx)("hr",{}),(0,re.jsxs)(ce.BaseControl,{id:"vk_block_button_fa_after_text",label:(0,z.__)("After text","vk-blocks"),children:[(0,re.jsx)(Ze,Kn({attributeName:"fontAwesomeIconAfter"},e)),(0,re.jsx)(ce.__experimentalUnitControl,{label:(0,z.__)("Size","vk-blocks"),value:j,units:E,onChange:function(e){n({iconSizeAfter:parseFloat(e)?e:null})}})]})]}),(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Button border radius","vk-blocks")}),(0,re.jsx)(ce.__experimentalUnitControl,{value:t.borderRadius,onChange:function(e){n({borderRadius:e||null})},units:[{value:"px",label:"px",default:5},{value:"%",label:"%",default:5},{value:"em",label:"em",default:1},{value:"rem",label:"rem",default:1}]})]})}),(0,re.jsx)("div",Kn(Kn({},N),{},{children:(0,re.jsx)(Hn,{lbTextColorCustom:b,lbColorCustom:f,lbColor:p,lbType:u,lbAlign:m,lbSize:c,lbFontAwesomeIconBefore:y,lbFontAwesomeIconAfter:_,lbIconSizeBefore:x,lbIconSizeAfter:j,lbsubCaption:a,inlineStyle:Kn(Kn({},B),{},{borderRadius:t.borderRadius}),lbRichtext:(0,re.jsx)(ne.RichText,{tagName:"span",className:"vk_button_link_txt",onChange:function(e){return n({content:e})},value:o,placeholder:(0,z.__)("Input text","vk-blocks"),allowedFormats:["core/bold","core/italic","core/strikethrough","core/superscript","core/subscript","vk-blocks/responsive-br","vk-blocks/nowrap","vk-blocks/inline-font-size"]})})}))]})},save:function(e){var t=e.attributes,n=t.content,r=t.subCaption,o=t.buttonUrl,a=t.buttonTarget,i=t.relAttribute,l=t.buttonSize,s=t.buttonType,c=t.buttonEffect,u=t.buttonColor,d=t.buttonTextColorCustom,p=t.buttonColorCustom,b=t.buttonAlign,f=t.buttonWidthMobile,m=t.buttonWidthTablet,v=t.buttonWidth,h=t.outerGap,g=t.fontAwesomeIconBefore,k=t.fontAwesomeIconAfter,y=t.iconSizeBefore,_=t.iconSizeAfter,x=t.inlineStyle,j=t.borderRadius,w=t.blockId,O="";O=void 0!==p&&St(p)||void 0!==d&&St(d)||h?"vk_button vk_button-color-custom vk_button-".concat(w):"vk_button vk_button-color-custom",f||m||v?(f&&(O+=" vk_button-width-mobile-".concat(f)),m&&(O+=" vk_button-width-tablet-".concat(m)),v&&(O+=" vk_button-width-".concat(v))):O+=" vk_button-align-".concat(b),""!==c&&(O+=" is-style-".concat(c));var C=ne.useBlockProps.save({className:O}),P=tr({},x);return j&&(P.borderRadius=j),(0,re.jsx)("div",tr(tr({},C),{},{children:(0,re.jsx)(Hn,{lbTextColorCustom:d,lbColorCustom:p,lbColor:u,lbType:s,lbAlign:b,lbSize:l,lbUrl:o,lbTarget:a,lbRelAttribute:i,lbFontAwesomeIconBefore:g,lbFontAwesomeIconAfter:k,lbIconSizeBefore:y,lbIconSizeAfter:_,lbsubCaption:r,inlineStyle:P,lbRichtext:(0,re.jsx)(ne.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})})}))},deprecated:oo,transforms:uo},xo=function(e){var t=e.buttonTextColorCustom,n=e.buttonColorCustom,r=e.buttonType,o=e.blockId,a="";return void 0!==n&&St(n)&&("0"!==r&&null!==r||(a+=".vk_button-".concat(o," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t}")),"1"===r&&(a+=".vk_button-".concat(o," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(o," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===r&&(a=".vk_button-".concat(o," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),void 0!==t&&St(t)&&("0"!==r&&null!==r||(a+=" .vk_button-".concat(o," .has-text-color {\n\t\t\t\tcolor: ").concat(t,";\n\t\t\t}"))),a},jo=function(e,t){var n=e.buttonWidthMobile,r=e.buttonWidthTablet,o=e.buttonWidth,a=e.outerGap,i=e.blockId,l="",s=t?".vk_button":".vk_buttons .vk_buttons_col .block-editor-block-list__layout .vk_button";return a&&(n&&(l+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(s,".vk_button-").concat(i," {\n\t\t\t\t\twidth: calc(").concat(n,"% - calc(").concat(a," - calc(").concat(a," / (100 / ").concat(n,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),r&&(l+="@media(min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(s,".vk_button-").concat(i," {\n\t\t\t\t\twidth: calc(").concat(r,"% - calc(").concat(a," - calc(").concat(a," / (100 / ").concat(r,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),o&&(l+="@media (min-width: 992px) {\n\t\t\t\t\t".concat(s,".vk_button-").concat(i," {\n\t\t\t\t\twidth: calc(").concat(o,"% - calc(").concat(a," - calc(").concat(a," / (100 / ").concat(o,"))) - 1px );\n\t\t\t\t}\n\t\t\t}"))),l},wo=(0,bo.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes;if("vk-blocks/button"===t.name){var r=xo(n),o=jo(n,!1);return""!==r||""!==o?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(e,mo({},t)),(0,re.jsxs)("style",{type:"text/css",children:[r," ",o]})]}):(0,re.jsx)(e,mo({},t))}return(0,re.jsx)(e,mo({},t))}}),"VKButtonInlineEditorCss");function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(null,arguments)}(0,po.addFilter)("editor.BlockEdit","vk-blocks/button",wo),(0,po.addFilter)("blocks.getSaveElement","vk-blocks/button",(function(e,t,n){if("vk-blocks/button"===t.name){var r=oo.findIndex((function(e){return e.save===t.save}));if(-1===r){var o=xo(n),a=jo(n,!0);return""!==o||""!==a?(0,re.jsxs)(re.Fragment,{children:[e,(0,re.jsxs)("style",{type:"text/css",children:[o," ",a]})]}):e}var i=so[r];return(0,re.jsx)(i,{el:e,attributes:n})}return e}),11);var Co=function(e){return Q.createElement("svg",Oo({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),vo||(vo=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),ho||(ho=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),go||(go=Q.createElement("path",{d:"M5.07 0C3.57 0 2.35.49 1.4 1.47A5.2 5.2 0 0 0 0 5.24c0 1.54.48 2.81 1.43 3.79a4.87 4.87 0 0 0 3.64 1.44c1 0 1.85-.2 2.36-.53l1.35 1.39 1.38-1.38-1.19-1.21c.73-.9 1.17-2.1 1.17-3.5A4.9 4.9 0 0 0 5.07 0M3.08 5.24c0-1.63.73-2.75 1.97-2.75 1.12 0 2 .9 2 2.75 0 .51-.06.93-.19 1.33l-.84-.86-1.39 1.35.84.86c-.14.05-.26.06-.4.06-1.16 0-1.99-.95-1.99-2.74M13.52 7c-.91 0-1.69.64-1.69 1.55 0 .45.14.86.62 1.45-.96.47-1.45 1.17-1.45 1.96 0 1.25.89 2.04 2.09 2.04.73 0 1.3-.28 1.81-.8l.53.67H17l-1.31-1.61c.32-.43.55-.98.62-1.67h-1.1c-.04.3-.13.59-.24.8l-.83-1.07c.75-.43 1.14-.99 1.14-1.7 0-1.07-.81-1.62-1.76-1.62M13 8.5c0-.36.27-.6.57-.6.33 0 .6.3.6.65 0 .42-.2.68-.67.97-.41-.5-.5-.73-.5-1.02m-.78 3.5c0-.48.33-.87.9-1.13l1.1 1.42c-.36.44-.7.6-1.08.6a.93.93 0 0 1-.92-.9zm5.34 2L14 24h2.98l.45-1.43h3.07l.41 1.43H24l-3.52-10zm1.45 3.35h.03l.87 3.08h-1.83z"})))};function Po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Eo=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"}}),save:function(e){var t=e.attributes.heading;return(0,re.jsxs)("dl",To(To({},ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"})),{},{children:[(0,re.jsx)(ne.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t}),(0,re.jsx)("dd",{className:"vk_faq_content",children:(0,re.jsx)(ne.InnerBlocks.Content,{})})]}))}}],No=Eo;function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ao,zo,Ro,Vo,Fo={to:[{type:"block",blocks:["vk-blocks/faq2"],transform:function(e,t){var n=[(0,C.createBlock)("core/paragraph",{content:e.heading})],r=(0,C.createBlock)("vk-blocks/faq2-q",{},n),o=(0,C.createBlock)("vk-blocks/faq2-a",{},t);return(0,C.createBlock)("vk-blocks/faq2",{},[r,o])}}]},Lo={apiVersion:3,name:"vk-blocks/faq",title:"Classic FAQ",category:"vk-blocks-cat",description:"Displays a combination of questions and answers.",textdomain:"vk-blocks",editorScript:"vk-blocks-build-js",editorStyle:"vk-blocks-build-editor-css",attributes:{heading:{type:"string",source:"html",selector:"dt"}},supports:{html:!1,anchor:!0}},Uo=Lo.name,Ho={icon:(0,re.jsx)(Co,{}),styles:[{name:"vk_faq-normal",label:(0,z.__)("Normal","vk-blocks"),isDefault:!0},{name:"vk_faq-bgfill-circle",label:(0,z.__)("Bgfill Circle","vk-blocks")},{name:"vk_faq-bgfill-square",label:(0,z.__)("Bgfill Square","vk-blocks")},{name:"vk_faq-bgfill-rounded",label:(0,z.__)("Bgfill Rounded","vk-blocks")},{name:"vk_faq-border-circle",label:(0,z.__)("Border Circle","vk-blocks")},{name:"vk_faq-border-square",label:(0,z.__)("Border Square","vk-blocks")},{name:"vk_faq-border-rounded",label:(0,z.__)("Border Rounded","vk-blocks")}],example:{attributes:{heading:R},innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]},save:function(e){var t=e.attributes.heading;return(0,re.jsxs)("dl",Do(Do({},ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"})),{},{children:[(0,re.jsx)(ne.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t,"aria-label":(0,z.__)("Question","vk-blocks")}),(0,re.jsx)("dd",{className:"vk_faq_content","aria-label":(0,z.__)("Answer","vk-blocks"),children:(0,re.jsx)(ne.InnerBlocks.Content,{})})]}))},edit:function(e){var t,n=e.attributes,r=e.setAttributes;t=vk_blocks_check.is_pro?(0,z.__)("If you want to be collapsing this block, you can set it at Setting > VK Blocks","vk-blocks"):(0,z.__)("You can be collapsing this block at VK Blocks Pro","vk-blocks");var o=n.heading,a=[["core/paragraph",{content:n.content}]],i=(0,ne.useBlockProps)({className:"vk_faq [accordion_trigger_switch]"});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Accordion Setting","vk-blocks"),children:(0,re.jsx)(ce.PanelRow,{children:t})})}),(0,re.jsxs)("dl",Io(Io({},i),{},{children:[(0,re.jsx)(ne.RichText,{tagName:"dt",className:"vk_faq_title",onChange:function(e){return r({heading:e})},value:o,placeholder:(0,z.__)("Please enter a question.","vk-blocks")}),(0,re.jsx)("dd",{className:"vk_faq_content",children:(0,re.jsx)(ne.InnerBlocks,{template:a})})]}))]})},deprecated:No,transforms:Fo};function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Go.apply(null,arguments)}var Wo=function(e){return Q.createElement("svg",Go({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Ao||(Ao=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),zo||(zo=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),Ro||(Ro=Q.createElement("path",{fillRule:"evenodd",d:"M24 0h-8v8h8zm-4.75 1v2.25H17v1.5h2.25V7h1.5V4.75H23v-1.5h-2.25V1z",clipRule:"evenodd"})),Vo||(Vo=Q.createElement("path",{d:"M5.07 0C3.57 0 2.35.49 1.4 1.47A5.2 5.2 0 0 0 0 5.24c0 1.54.48 2.81 1.43 3.79a4.87 4.87 0 0 0 3.64 1.44c1 0 1.85-.2 2.36-.53l1.35 1.39 1.38-1.38-1.19-1.21c.73-.9 1.17-2.1 1.17-3.5A4.9 4.9 0 0 0 5.07 0M3.08 5.24c0-1.63.73-2.75 1.97-2.75 1.12 0 2 .9 2 2.75 0 .51-.06.93-.19 1.33l-.84-.86-1.39 1.35.84.86c-.14.05-.26.06-.4.06-1.16 0-1.99-.95-1.99-2.74M13.52 7c-.91 0-1.69.64-1.69 1.55 0 .45.14.86.62 1.45-.96.47-1.45 1.17-1.45 1.96 0 1.25.89 2.04 2.09 2.04.73 0 1.3-.28 1.81-.8l.53.67H17l-1.31-1.61c.32-.43.55-.98.62-1.67h-1.1c-.04.3-.13.59-.24.8l-.83-1.07c.75-.43 1.14-.99 1.14-1.7 0-1.07-.81-1.62-1.76-1.62M13 8.5c0-.36.27-.6.57-.6.33 0 .6.3.6.65 0 .42-.2.68-.67.97-.41-.5-.5-.73-.5-1.02m-.78 3.5c0-.48.33-.87.9-1.13l1.1 1.42c-.36.44-.7.6-1.08.6a.93.93 0 0 1-.92-.9zm5.34 2L14 24h2.98l.45-1.43h3.07l.41 1.43H24l-3.52-10zm1.45 3.35h.03l.87 3.08h-1.83z"})))};function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qo={heading:{type:"string",source:"html",selector:"dt"},content:{type:"string"}},$o=[{attributes:qo,save:function(){var e=ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"});return(0,re.jsxs)("div",Qo(Qo({},e),{},{children:[(0,re.jsx)("div",{className:"vk_faq-header"}),(0,re.jsx)("dl",{className:"vk_faq-body",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"vk_faq-footer"})]}))}},{attributes:qo,save:function(){return(0,re.jsx)("dl",Yo(Yo({},ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))}}];function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var na,ra,oa,aa={apiVersion:3,name:"vk-blocks/faq2",category:"vk-blocks-cat",title:"New FAQ",description:"It displays a combination of questions and answers. You can freely add blocks to the question area as well.",textdomain:"vk-blocks",supports:{html:!1,anchor:!0,className:!0},editorScript:"vk-blocks-build-js",editorStyle:"vk-blocks-build-editor-css",attributes:{showContent:{type:"string",default:"default"}}},ia=aa.name,la={icon:(0,re.jsx)(Wo,{}),styles:[{name:"vk_faq-normal",label:(0,z.__)("Normal","vk-blocks"),isDefault:!0},{name:"vk_faq-bgfill-circle",label:(0,z.__)("Bgfill Circle","vk-blocks")},{name:"vk_faq-bgfill-square",label:(0,z.__)("Bgfill Square","vk-blocks")},{name:"vk_faq-bgfill-rounded",label:(0,z.__)("Bgfill Rounded","vk-blocks")},{name:"vk_faq-border-circle",label:(0,z.__)("Border Circle","vk-blocks")},{name:"vk_faq-border-square",label:(0,z.__)("Border Square","vk-blocks")},{name:"vk_faq-border-rounded",label:(0,z.__)("Border Rounded","vk-blocks")}],example:{innerBlocks:[{name:"vk-blocks/faq2-q",innerBlocks:[{name:"core/paragraph",attributes:{content:R}}]},{name:"vk-blocks/faq2-a",innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showContent,o=(0,ne.useBlockProps)({className:"vk_faq"});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Accordion Setting","vk-blocks"),children:vk_blocks_check.is_pro?(0,re.jsxs)(ce.BaseControl,{children:[(0,re.jsx)(ce.SelectControl,{__nextHasNoMarginBottom:!0,name:"vk_blocks_options[new_faq_accordion]",value:r,onChange:function(e){n({showContent:e})},options:[{label:(0,z.__)("Use common settings","vk-blocks"),value:"default"},{label:(0,z.__)("Disable accordion","vk-blocks"),value:"disable"},{label:(0,z.__)("Enable accordion and default open","vk-blocks"),value:"open"},{label:(0,z.__)("Enable accordion and default close","vk-blocks"),value:"close"}]}),(0,re.jsx)("p",{children:(0,z.__)("* You can change each common accordion settings from Setting > VK Blocks.","vk-blocks")})]}):(0,re.jsx)("p",{children:(0,z.__)("You can be collapsing this block at VK Blocks Pro","vk-blocks")})})}),(0,re.jsxs)("div",Ko(Ko({},o),{},{children:[(0,re.jsx)("div",{className:"vk_faq-header"}),(0,re.jsx)("dl",{className:"vk_faq-body",children:(0,re.jsx)(ne.InnerBlocks,{allowedBlocks:["vk-blocks/faq2-q","vk-blocks/faq2-a"],template:[["vk-blocks/faq2-q"],["vk-blocks/faq2-a"]],templateLock:"all"})}),(0,re.jsx)("div",{className:"vk_faq-footer"})]}))]})},save:function(){var e=ne.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"});return(0,re.jsxs)("div",ta(ta({},e),{},{children:[(0,re.jsx)("div",{className:"vk_faq-header"}),(0,re.jsx)("dl",{className:"vk_faq-body",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"vk_faq-footer"})]}))},deprecated:$o};function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(null,arguments)}var ca=function(e){return Q.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),na||(na=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),ra||(ra=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),oa||(oa=Q.createElement("path",{d:"M14.99 0 10 14h4.17l.63-2h4.3l.57 2H24L19.07 0zm2.03 4.69h.04L18.27 9h-2.56l1.3-4.31z"})))};function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var va,ha,ga,ka=[{attributes:{},save:function(){return(0,re.jsx)("dd",ma(ma({},ne.useBlockProps.save({className:"vk_faq_content"})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))}}],ya={apiVersion:3,name:"vk-blocks/faq2-a",category:"vk-blocks-cat",title:"FAQ Answer",parent:["vk-blocks/faq2"],description:"Answer area where you can add blocks freely.",textdomain:"vk-blocks",supports:{html:!1,anchor:!0,reusable:!1}},_a=ya.name,xa={icon:(0,re.jsx)(ca,{}),example:{innerBlocks:[{name:"core/paragraph",attributes:{content:V}}]},edit:function(){var e=(0,ne.useBlockProps)({className:"vk_faq_content"});return(0,re.jsx)("dd",da(da({},e),{},{children:(0,re.jsx)(ne.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]})}))},save:function(){return(0,re.jsx)("dd",ba(ba({},ne.useBlockProps.save({className:"vk_faq_content","aria-label":(0,z.__)("Answer","vk-blocks")})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))},deprecated:ka};function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ja.apply(null,arguments)}var wa=function(e){return Q.createElement("svg",ja({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),va||(va=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),ha||(ha=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),ga||(ga=Q.createElement("path",{d:"M16.98 0c-2.06 0-3.74.7-5.03 2.08A7.44 7.44 0 0 0 10 7.4a7.5 7.5 0 0 0 1.97 5.36 6.62 6.62 0 0 0 5.01 2.03c1.37 0 2.55-.3 3.26-.75L22.09 16 24 14.06l-1.64-1.72c1-1.26 1.6-2.97 1.6-4.94 0-2.18-.65-3.98-1.95-5.34A6.67 6.67 0 0 0 16.98 0m-2.74 7.4c0-2.3 1-3.88 2.72-3.88 1.54 0 2.76 1.27 2.76 3.88 0 .73-.1 1.32-.27 1.88l-1.16-1.21-1.9 1.9 1.15 1.22c-.2.06-.37.08-.56.08-1.6 0-2.74-1.34-2.74-3.87"})))};function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Na=[{attributes:{},save:function(){return(0,re.jsx)("dt",Ea(Ea({},ne.useBlockProps.save({className:"vk_faq_title"})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))}}],Ba={apiVersion:3,name:"vk-blocks/faq2-q",title:"FAQ Question",category:"vk-blocks-cat",parent:["vk-blocks/faq2"],description:"Question area where you can freely add blocks.",textdomain:"vk-blocks",supports:{html:!1,anchor:!0,className:!0,reusable:!1}},Ia=Ba.name,Ma={icon:(0,re.jsx)(wa,{}),example:{innerBlocks:[{name:"core/paragraph",attributes:{content:R}}]},edit:function(){var e=(0,ne.useBlockProps)({className:"vk_faq_title"});return(0,re.jsx)("dt",Ca(Ca({},e),{},{children:(0,re.jsx)(ne.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]})}))},save:function(){return(0,re.jsx)("dt",Ta(Ta({},ne.useBlockProps.save({className:"vk_faq_title","aria-label":(0,z.__)("Question","vk-blocks")})),{},{children:(0,re.jsx)(ne.InnerBlocks.Content,{})}))},deprecated:Na};function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var za,Ra,Va,Fa,La,Ua=[{attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null}},save:function(e){var t=e.attributes,n=t.heading,r=t.content,o=t.insertImage,a=t.arrowFlag;return(0,re.jsx)("div",Aa(Aa({},ne.useBlockProps.save({className:"".concat(a," vk_flow")})),{},{children:(0,re.jsxs)("div",{className:"vk_flow_frame",children:[(0,re.jsxs)("dl",{className:"vk_flow_frame_text",children:[(0,re.jsx)(ne.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,re.jsx)(ne.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:r})]}),o&&(0,re.jsx)("div",{className:"vk_flow_frame_image",children:(0,re.jsx)("img",{src:o,alt:""})})]})}))}}],Ha=Ua;function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ga.apply(null,arguments)}var Wa=function(e){return Q.createElement("svg",Ga({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),za||(za=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),Ra||(Ra=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),Va||(Va=Q.createElement("path",{d:"M12.5 14 9 10h7z"})),Fa||(Fa=Q.createElement("path",{fillRule:"evenodd",d:"M23 1H1v6h22zM0 0v8h24V0z",clipRule:"evenodd"})),La||(La=Q.createElement("path",{fillRule:"evenodd",d:"M20 4.5H4v-1h16z",clipRule:"evenodd"})))};function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qa,$a,Ja,Ka={apiVersion:3,name:"vk-blocks/flow",category:"vk-blocks-cat",title:"Flow",attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null},insertImageAlt:{type:"string",default:null}},description:"Displays a sequential description in time series.",textdomain:"vk-blocks",supports:{className:!0}},ei=Ka.name,ti={icon:(0,re.jsx)(Wa,{}),example:{attributes:{heading:R,content:V,arrowFlag:"vk_flow-arrow-on",insertImage:U}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=t.heading,a=t.content,i=t.insertImage,l=t.arrowFlag,s=t.insertImageAlt,c=(0,ne.useBlockProps)({className:"".concat(l," vk_flow")});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Display of arrow","vk-blocks"),children:(0,re.jsx)(ce.RadioControl,{selected:l,options:[{label:(0,z.__)("Arrow display","vk-blocks"),value:"vk_flow-arrow-on"},{label:(0,z.__)("Arrow hidden","vk-blocks"),value:"vk_flow-arrow-off"}],onChange:function(e){return n({arrowFlag:e})}})})}),(0,re.jsxs)("div",Ya(Ya({},c),{},{children:[(0,re.jsxs)("div",{className:"vk_flow_frame",children:[(0,re.jsxs)("dl",{className:"vk_flow_frame_text",children:[(0,re.jsx)(ne.RichText,{tagName:"dt",className:"vk_flow_frame_text_title",onChange:function(e){return n({heading:e})},value:o,placeholder:(0,z.__)("Input title","vk-blocks")},"".concat(r,"2")),(0,re.jsx)(ne.RichText,{tagName:"dd",className:"vk_flow_frame_text_content",onChange:function(e){return n({content:e})},value:a,placeholder:(0,z.__)("Input content","vk-blocks")},"".concat(r,"3"))]}),(0,re.jsx)("div",{className:"vk_flow_frame_image",children:(0,re.jsx)(ne.MediaUpload,{onSelect:function(e){n({insertImage:e.url}),n({insertImageAlt:e.alt})},type:"image",className:"vk_flow_frame_image",value:i,render:function(e){var t=e.open;return(0,re.jsx)(ce.Button,{onClick:t,className:i?"image-button":"button button-large",children:i?(0,re.jsx)("img",{className:"icon-image",src:i,alt:s}):(0,z.__)("Select image","vk-blocks")})}})})]}),"vk_flow-arrow-on"===l&&(0,re.jsx)("div",{className:"vk_flow_frame_arrow"})]}))]})},save:function(e){var t=e.attributes,n=t.heading,r=t.content,o=t.insertImage,a=t.insertImageAlt,i=t.arrowFlag;return(0,re.jsx)("div",Qa(Qa({},ne.useBlockProps.save({className:"".concat(i," vk_flow")})),{},{children:(0,re.jsxs)("div",{className:"vk_flow_frame",children:[(0,re.jsxs)("dl",{className:"vk_flow_frame_text",children:[(0,re.jsx)(ne.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,re.jsx)(ne.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:r})]}),o&&(0,re.jsx)("div",{className:"vk_flow_frame_image",children:(0,re.jsx)("img",{src:o,alt:a})})]})}))},deprecated:Ha};function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(null,arguments)}var ri=function(e){return Q.createElement("svg",ni({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),qa||(qa=Q.createElement("path",{d:"M20 10V4h3v15h-3v-6h-6v6h-3v-1.89l1.06-1.1c.95-1 .28-2.64-1.06-2.73V4h3v6z"})),$a||($a=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),Ja||(Ja=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))};function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ii=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ci=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pi=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mi=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gi=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _i={level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number",default:0},title:{type:"string",source:"html",selector:"span",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2},titleMarginBottom:{type:"number",default:1},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"off"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.2},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},fontAwesomeIconBefore:{type:"string",default:""},fontAwesomeIconAfter:{type:"string",default:""},fontAwesomeIconColor:{type:"string",default:"#000000"}},xi=yi(yi({},_i),{},{outerMarginBottom:{type:"number",default:null},titleMarginBottom:{type:"number",default:null},titleColor:{type:"string",default:null},subTextColor:{type:"string",default:null},fontAwesomeIconColor:{type:"string",default:"#000000"}}),ji=yi(yi({},xi),{},w(w({titleSize:{type:"number",default:2},subTextSize:{type:"number",default:1.2},subTextColor:{type:"string"}},"subTextSize",{type:"number"}),"fontAwesomeIconColor",{type:"string"})),wi=yi(yi({},ji),{},{titleColor:{type:"string"},titleSize:{type:"number"}}),Oi=[{attributes:wi,save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,v=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k="";void 0!==a&&(k+="has-text-color",St(a)||(k+=" has-".concat(a,"-color")));var y=pn()("vk_heading_title",w(w({},"vk_heading_title-style-".concat(d),!!d),"".concat(k),!!k)),_={color:null!=a&&St(a)?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},x="";void 0!==c&&(x+="has-text-color",St(c)||(x+=" has-".concat(c,"-color")));var j=pn()("vk_heading_subtext",w(w({},"vk_heading_subtext-style-".concat(d),!!d),"".concat(x),!!x)),O={color:null!=c&&St(c)?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},C="";void 0!==v&&(C+="has-text-color",St(v)||(C+=" has-".concat(v,"-color")));var P=v&&St(v)?'style="color:'.concat(v,';"'):"",T=f,S=m;if(T&&C){var E=T.split('<i class="');E[0]=E[0]+'<i class="'.concat(C," "),T=E.join("")}if(S&&C){var N=S.split('<i class="');N[0]=N[0]+'<i class="'.concat(C," "),S=N.join("")}if(T&&P){var B=T.split("<i");B[0]=B[0]+"<i ".concat(P," "),T=B.join("")}if(S&&P){var I=S.split("<i");I[0]=I[0]+"<i ".concat(P," "),S=I.join("")}var M,D=(0,re.jsxs)(re.Fragment,{children:[ye(T),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(S)]});"on"===s&&(M=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:O,className:j}));var A=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",hi(hi({},A),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[gi(n,D,_,y),M]})}))}},{attributes:wi,save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,v=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k={color:null!=a?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},y="vk_heading_title vk_heading_title-style-".concat(d),_={color:null!=c?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},x="vk_heading_subtext vk_heading_subtext-style-".concat(d),j="",w="",O=v?'style="color:'.concat(v,';"'):"";if(f){var C=f.split("<i");C[0]=C[0]+"<i ".concat(O," "),j=C.join("")}if(m){var P=m.split("<i");P[0]=P[0]+"<i ".concat(O," "),w=P.join("")}var T,S=(0,re.jsxs)(re.Fragment,{children:[ye(j),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(w)]});"on"===s&&(T=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:_,className:x}));var E=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",fi(fi({},E),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[mi(n,S,k,y),T]})}))}},{attributes:ji,save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,v=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k={color:null!=a?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},y="vk_heading_title vk_heading_title-style-".concat(d),_={color:null!=c?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},x="vk_heading_subtext vk_heading_subtext-style-".concat(d),j="",w="",O=v?'style="color:'.concat(v,';"'):"";if(f){var C=f.split("<i");C[0]=C[0]+"<i ".concat(O," "),j=C.join("")}if(m){var P=m.split("<i");P[0]=P[0]+"<i ".concat(O," "),w=P.join("")}var T,S=(0,re.jsxs)(re.Fragment,{children:[ye(j),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(w)]});"on"===s&&(T=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:_,className:x}));var E=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",di(di({},E),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[pi(n,S,k,y),T]})}))}},{attributes:xi,save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,v=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k={color:null!=a?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},y="vk_heading_title vk_heading_title-style-".concat(d),_={color:null!=c?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},x="vk_heading_subtext vk_heading_subtext-style-".concat(d),j="",w="";if(f){v=v||"#000000";var O=f.split("<i");O[0]=O[0]+'<i style="color:'.concat(v,';" '),j=O.join("")}if(m){v=v||"#000000";var C=m.split("<i");C[0]=C[0]+'<i style="color:'.concat(v,';" '),w=C.join("")}var P,T=(0,re.jsxs)(re.Fragment,{children:[ye(j),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(w)]});"on"===s&&(P=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:_,className:x}));var S=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",si(si({},S),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[ci(n,T,k,y),P]})}))}},{attributes:_i,save:function(e){var t,n,r=e.attributes,o=r.level,a=r.align,i=r.title,l=r.titleColor,s=r.titleSize,c=r.subText,u=r.subTextFlag,d=r.subTextColor,p=r.subTextSize,b=r.titleStyle,f=r.titleMarginBottom,m=r.outerMarginBottom,v=r.fontAwesomeIconBefore,h=r.fontAwesomeIconAfter,g=r.fontAwesomeIconColor,k="vk_heading vk_heading-style-".concat(b);m&&(t={marginBottom:m+"rem"}),n=null!=f?{color:l,fontSize:s+"rem",marginBottom:f+"rem",textAlign:a}:{color:l,fontSize:s+"rem",textAlign:a};var y="vk_heading_title vk_heading_title-style-".concat(b),_={color:d,fontSize:p+"rem",textAlign:a},x="vk_heading_subtext vk_heading_subtext-style-".concat(b),j="",w="";if(v){g=g||"#000000";var O=v.split("<i");O[0]=O[0]+'<i style="color:'.concat(g,';" '),j=O.join("")}if(h){g=g||"#000000";var C=h.split("<i");C[0]=C[0]+'<i style="color:'.concat(g,';" '),w=C.join("")}var P,T=(0,re.jsxs)(re.Fragment,{children:[ye(j),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:i}),ye(w)]});"on"===u&&(P=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:c,style:_,className:x}));var S=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",ai(ai({},S),{},{children:(0,re.jsxs)("div",{className:k,style:t,children:[ii(o,T,n,y),P]})}))}}],Ci=Oi;function Pi(e){var t=e.level,n=e.isPressed,r=void 0!==n&&n,o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(t)?(0,re.jsx)(ce.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r,children:(0,re.jsx)(ce.Path,{d:o[t]})}):null}var Ti=[1,2,3,4,5,6],Si={className:"block-library-heading-level-dropdown vk-blocks-heading-level-dropdown"};function Ei(e){var t=e.selectedLevel,n=e.onChange;return(0,re.jsx)(ce.ToolbarDropdownMenu,{popoverProps:Si,icon:(0,re.jsx)(Pi,{level:t}),label:(0,z.__)("Change heading level"),controls:Ti.map((function(e){var r=e===t;return{icon:(0,re.jsx)(Pi,{level:e,isPressed:r}),label:(0,z.sprintf)( 5 5 // translators: %s: heading level e.g: "1", "2", "3" 6 6 // translators: %s: heading level e.g: "1", "2", "3" 7 (0,z.__)("Heading %d"),e),isActive:r,onClick:function(){n(e)}}}))})}function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ii=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ai=function(e,t,n,r){switch(e){case 1:return(0,re.jsx)("h1",{style:n,className:r,children:t});case 2:return(0,re.jsx)("h2",{style:n,className:r,children:t});case 3:return(0,re.jsx)("h3",{style:n,className:r,children:t});case 4:return(0,re.jsx)("h4",{style:n,className:r,children:t});case 5:return(0,re.jsx)("h5",{style:n,className:r,children:t});case 6:return(0,re.jsx)("h6",{style:n,className:r,children:t})}};function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vi,Fi,Li,Ui={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t={title:e.content};return(0,C.createBlock)("vk-blocks/heading",t)}}],to:[{type:"block",blocks:["core/heading"],transform:function(e){var t,n,r,o,a=e.title,i=e.level,l=e.anchor,s=e.align,c=e.outerMarginBottom,u=e.titleMarginBottom,d=e.titleColor,p=e.titleSize,b=e.subTextFlag,f=e.subText, v=e.subTextColor,m=e.subTextSize;"on"===b&&u?t=u+"rem":"off"===b&&c&&(t=c+"rem"),p&&(n=p+"rem"),"on"===b&&c&&(r=c+"rem"),m&&(o=m+"rem");var h=Ri(Ri({},e),{},{content:a,level:i,anchor:l,textAlign:s,textColor:d,style:{spacing:{margin:{bottom:t}},typography:{fontSize:n}}}),g=Ri(Ri({},e),{},{content:f,align:s,textColor:v,style:{spacing:{margin:{bottom:r}},typography:{fontSize:o}}}),k=[];return k.push((0,C.createBlock)("core/heading",h)),"on"===b&&k.push((0,C.createBlock)("core/paragraph",g)),k}}]},Hi=Ui,Gi={apiVersion:3,name:"vk-blocks/heading",category:"vk-blocks-cat",title:"Heading ( not recommended )",attributes:{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number",default:null},title:{type:"string",source:"html",selector:"span",default:""},titleColor:{type:"string"},titleSize:{type:"number"},titleMarginBottom:{type:"number",default:null},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"off"},subTextColor:{type:"string"},subTextSize:{type:"number"},fontAwesomeIconBefore:{type:"string",default:""},fontAwesomeIconAfter:{type:"string",default:""},fontAwesomeIconColor:{type:"string"}},description:"This is a heading that allows you to set text size, subtext, icon, and margin.",textdomain:"vk-blocks",supports:{className:!0,customClassName:!0,anchor:!0}},Wi=Gi.name,Zi={icon:(0,re.jsx)(ri,{}),category:"vk-blocks-cat",example:{attributes:{anchor:"",level:2,align:"center",titleStyle:"default",outerMarginBottom:0,title:R,titleColor:H,titleSize:2,titleMarginBottom:1,subText:R,subTextFlag:"on",subTextColor:H,subTextSize:1.2,fontAwesomeIconBefore:L,fontAwesomeIconAfter:"",fontAwesomeIconColor:H}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.level,o=t.align,a=t.title,i=t.titleColor,l=t.titleSize,s=t.subText,c=t.subTextFlag,u=t.subTextColor,d=t.subTextSize,p=t.titleStyle,b=t.titleMarginBottom,f=t.outerMarginBottom,v=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,h=t.fontAwesomeIconColor,g=vkFontAwesome.iconFamily,k="vk_heading vk_heading-style-".concat(p),y={marginBottom:null!=f?f+"rem":void 0},_="";void 0!==i&&(_+="has-text-color",St(i)||(_+=" has-".concat(qt(i),"-color")));var x=pn()("vk_heading_title",w(w({},"vk_heading_title-style-".concat(p),!!p),"".concat(_),!!_)),j={color:null!=i&&St(i)?i:void 0,fontSize:null!=l?l+"rem":void 0,marginBottom:null!=b?b+"rem":void 0,textAlign:null!=o?o:void 0},O="";void 0!==u&&(O+="has-text-color",St(u)||(O+=" has-".concat(qt(u),"-color")));var C=pn()("vk_heading_subtext",w(w({},"vk_heading_subtext-style-".concat(p),!!p),"".concat(O),!!O)),P={color:null!=u&&St(u)?u:void 0,fontSize:null!=d?d+"rem":void 0,textAlign:null!=o?o:void 0},T="";void 0!==h&&(T+="has-text-color",St(h)||(T+=" has-".concat(qt(h),"-color")));var S=h&&St(h)?'style="color:'.concat(h,';"'):"",E=v,N=m;if(E&&T){var B=E.split('<i class="');B[0]=B[0]+'<i class="'.concat(T," "),E=B.join("")}if(N&&T){var I=N.split('<i class="');I[0]=I[0]+'<i class="'.concat(T," "),N=I.join("")}if(E&&S){var M=E.split("<i");M[0]=M[0]+"<i ".concat(S," "),E=M.join("")}if(N&&S){var D=N.split("<i");D[0]=D[0]+"<i ".concat(S," "),N=D.join("")}var A,R=(0,re.jsxs)(re.Fragment,{children:[ye(E),(0,re.jsx)(ne.RichText,{tagName:"span",value:a,onChange:function(e){n({title:e})},placeholder:(0,z.__)("Input title…","vk-blocks")}),ye(N)]});"on"===c&&(A=(0,re.jsx)(ne.RichText,{tagName:"p",value:s,onChange:function(e){return n({subText:e})},style:P,className:C,placeholder:(0,z.__)("Input sub text…","vk-blocks")}));var V=(0,ne.useBlockProps)({className:""});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(ne.BlockControls,{group:"block",children:[(0,re.jsx)(ce.ToolbarGroup,{children:(0,re.jsx)(Ei,{selectedLevel:r,onChange:function(e){n({level:e})}})}),(0,re.jsx)(ne.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})]}),(0,re.jsxs)(ne.InspectorControls,{children:[(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Style Settings","vk-blocks"),children:(0,re.jsx)(ce.SelectControl,{label:(0,z.__)("Heading style","vk-blocks"),value:p,onChange:function(e){return n({titleStyle:e})},options:[{label:(0,z.__)("Default","vk-blocks"),value:"default"},{label:(0,z.__)("Plain","vk-blocks"),value:"plain"}]})}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Margin Setting","vk-blocks"),children:[(0,re.jsx)("p",{children:(0,z.__)("Margin between Heading and sub text (rem)","vk-blocks")}),(0,re.jsx)(ce.RangeControl,{value:b,onChange:function(e){n({titleMarginBottom:e})},min:-1,max:3,step:.1,allowReset:!0,resetFallbackValue:null}),(0,re.jsx)("p",{children:(0,z.__)("Margin bottom size of after this block (rem)","vk-blocks")}),(0,re.jsx)(ce.RangeControl,{value:f,onChange:function(e){n({outerMarginBottom:e})},min:-1,max:8,step:.1,allowReset:!0,resetFallbackValue:null})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Heading Settings","vk-blocks"),children:[(0,re.jsx)(ce.RangeControl,{label:(0,z.__)("Text size (rem)","vk-blocks"),value:l,onChange:function(e){n({titleSize:e})},min:.5,max:4,step:.1,allowReset:!0,resetFallbackValue:null}),(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Text Color","vk-blocks"),id:"vk_heading_textColor",children:(0,re.jsx)(Xt,Bi({schema:"titleColor"},e))})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Icon","vk-blocks")+" ( "+g+" )",children:[(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Before text","vk-blocks"),id:"vk_heading_beforeText",children:(0,re.jsx)(Ze,Bi({attributeName:"fontAwesomeIconBefore"},e))}),(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("After text","vk-blocks"),id:"vk_heading_afterText",children:(0,re.jsx)(Ze,Bi({attributeName:"fontAwesomeIconAfter"},e))}),(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Icon Color","vk-blocks"),id:"vk_heading_iconColor",children:(0,re.jsx)(Xt,Bi({schema:"fontAwesomeIconColor"},e))})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Sub Text Settings","vk-blocks"),children:[(0,re.jsx)(ce.RadioControl,{label:(0,z.__)("Position","vk-blocks"),selected:c,options:[{label:(0,z.__)("Display","vk-blocks"),value:"on"},{label:(0,z.__)("Hide","vk-blocks"),value:"off"}],onChange:function(e){return n({subTextFlag:e})}}),(0,re.jsx)("p",{children:(0,z.__)("Text size (rem)","vk-blocks")}),(0,re.jsx)(ce.RangeControl,{value:d,onChange:function(e){n({subTextSize:e})},min:.5,max:3,step:.1,allowReset:!0,resetFallbackValue:null}),(0,re.jsx)(Xt,Bi({schema:"subTextColor"},e))]})]}),(0,re.jsx)("div",Bi(Bi({},V),{},{children:(0,re.jsxs)("div",{className:k,style:y,children:[Ii(r,R,j,x),A]})}))]})},save:function(e){var t=e.attributes,n=t.level,r=t.align,o=t.title,a=t.titleColor,i=t.titleSize,l=t.subText,s=t.subTextFlag,c=t.subTextColor,u=t.subTextSize,d=t.titleStyle,p=t.titleMarginBottom,b=t.outerMarginBottom,f=t.fontAwesomeIconBefore,v=t.fontAwesomeIconAfter,m=t.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(d),g={marginBottom:null!=b?b+"rem":void 0},k="";void 0!==a&&(k+="has-text-color",St(a)||(k+=" has-".concat(qt(a),"-color")));var y=pn()("vk_heading_title",w(w({},"vk_heading_title-style-".concat(d),!!d),"".concat(k),!!k)),_={color:null!=a&&St(a)?a:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},x="";void 0!==c&&(x+="has-text-color",St(c)||(x+=" has-".concat(qt(c),"-color")));var j=pn()("vk_heading_subtext",w(w({},"vk_heading_subtext-style-".concat(d),!!d),"".concat(x),!!x)),O={color:null!=c&&St(c)?c:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=r?r:void 0},C="";void 0!==m&&(C+="has-text-color",St(m)||(C+=" has-".concat(qt(m),"-color")));var P=m&&St(m)?'style="color:'.concat(m,';"'):"",T=f,S=v;if(T&&C){var E=T.split('<i class="');E[0]=E[0]+'<i class="'.concat(C," "),T=E.join("")}if(S&&C){var N=S.split('<i class="');N[0]=N[0]+'<i class="'.concat(C," "),S=N.join("")}if(T&&P){var B=T.split("<i");B[0]=B[0]+"<i ".concat(P," "),T=B.join("")}if(S&&P){var I=S.split("<i");I[0]=I[0]+"<i ".concat(P," "),S=I.join("")}var M,D=(0,re.jsxs)(re.Fragment,{children:[ye(T),(0,re.jsx)(ne.RichText.Content,{tagName:"span",value:o}),ye(S)]});"on"===s&&(M=(0,re.jsx)(ne.RichText.Content,{tagName:"p",value:l,style:O,className:j}));var A=ne.useBlockProps.save({className:""});return(0,re.jsx)("div",Di(Di({},A),{},{children:(0,re.jsxs)("div",{className:h,style:g,children:[Ai(n,D,_,y),M]})}))},transforms:Hi,deprecated:Ci};function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(null,arguments)}var Xi=function(e){return Q.createElement("svg",Yi({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Vi||(Vi=Q.createElement("path",{d:"M10.9 14.8H7.6a.1.1 0 0 0-.1.1l-.2.7c0 .1 0 .2.1.2h1.3c.1 0 .1.1.1.2l-2 2.2 1 3.4c0 .1 0 .1-.1.1h-1c-.1 0-.1 0-.1-.1L6 19.8c0-.1-.2-.1-.2 0L5.4 21v.1l.4 1.5.1.1h3.3a.1.1 0 0 0 .1-.1L8 18.3v-.1l3-3.2c0-.1 0-.2-.1-.2"})),Fi||(Fi=Q.createElement("path",{fill:"#D8141C",d:"M7 13H5a.1.1 0 0 0-.1.1l-.3.7c0 .1 0 .2.1.2h.8c.1 0 .1.1.1.2l-2.4 6.7c0 .1-.2.1-.2 0L1.4 16c0-.1 0-.2.1-.2h.9a.1.1 0 0 1 .1.1l.6 1.7c0 .1.2.1.2 0l1-2.7c0-.1 0-.2-.1-.2H.1a.3.3 0 0 0-.1.2l3.1 9c0 .1.2.1.2 0l3.8-10.8A.1.1 0 0 0 7 13"})),Li||(Li=Q.createElement("path",{d:"M15.5 0a8.5 8.5 0 0 0-7.92 11.59 1.64 1.64 0 0 1 1 1.69h2.27A1.61 1.61 0 0 1 12.06 16l-.18.19A8.5 8.5 0 1 0 15.5 0m1.7 13.6h-3.4V6.8h3.4zm0-8.3h-3.4V3.4h3.4z"})))};function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($i=function(){return!!e})()}var Ji=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,$i()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,r=this.props.lbMargin,o=this.props.lbMarginUnit,a=this.props.lbRadius,i=this.props.lbAlign,l=this.props.lbType,s=this.props.lbColor,c=this.props.lbFontColor,u=this.props.lbUrl,d=this.props.lbTarget,p=this.props.lbRelAttribute,b=this.props.lbLinkDescription,f="vk_icon_frame";"center"===i?f+=" text-center":"right"===i&&(f+=" text-right");var v="vk_icon_border",m={};"0"===l?"undefined"!==s&&null!=s&&(v+=" has-background",St(s)?m={backgroundColor:"".concat(s)}:v+=" has-".concat(qt(s),"-background-color")):("undefined"!==s&&null!=s&&(v+=" has-text-color",St(s)?m={color:"".concat(s)}:v+=" has-".concat(qt(s),"-color")),f+="1"===l?" is-style-outline":" is-style-noline"),36===t&&"px"===n&&22===r&&"px"===o||(m.width="calc("+(t+n)+" + "+(2*r+o)+")",m.height=m.width),50!==a&&(m.borderRadius=a+"%");var h="";if(e){e=e.replace(/ fas/g,"fas");var g="",k=" vk_icon_font ";36===t&&"px"===n||(g=" font-size:".concat(t).concat(n,";")),"undefined"!==c&&null!=c&&(St(c)?g+=" color:".concat(c,";"):k+=" has-text-color has-".concat(qt(c),"-color "));var y=e.split(" ");y[0]=y[0]+' style="'.concat(g,';"'),y[1]=" "+y[1]+k,h=y.join("")}var _,x=(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:v,style:m,children:ye(h)})});return _=null!=u&&""!==u?(0,re.jsxs)("a",qi(qi(qi({href:u,className:"vk_icon_link"},d?{target:"_blank"}:{}),p?{rel:p}:{}),{},{children:[(0,re.jsx)("span",{className:"screen-reader-text",children:b||(0,z.__)("Icon link","vk-blocks")}),x]})):x,(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:f,children:_})})}}])}(de.Component);function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rl=function(){return!!e})()}var ol=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,rl()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,r=this.props.lbMargin,o=this.props.lbMarginUnit,a=this.props.lbRadius,i=this.props.lbAlign,l=this.props.lbType,s=this.props.lbColor,c=this.props.lbUrl,u=this.props.lbTarget,d="vk_icon_outer";"center"===i?d+=" vk_icon_align_center":"right"===i&&(d+=" vk_icon_align_right");var p="vk_icon_border",b={};"0"===l?"undefined"!==s&&(b={backgroundColor:"".concat(s),borderColor:"".concat(s)}):"1"===l?(p+=" vk_icon_border_frame","undefined"!==s&&(b={borderColor:"".concat(s)})):p+=" vk_icon_border_none",36===t&&"px"===n&&22===r&&"px"===o||(b.width="calc("+(t+n)+" + "+(2*r+o)+")",b.height=b.width),50!==a&&(b.borderRadius=a+"%");var f="";if(e){e=e.replace(/ fas/g,"fas");var v=null;"0"!==l&&"undefined"!==s&&(v="color:".concat(s));var m=null;36===t&&"px"===n||(m=" font-size:".concat(t).concat(n));var h=e.split(" ");h[0]=h[0]+' style="'.concat(v,"; ").concat(m,';"'),h[1]=" "+h[1]+" vk_icon_font ",f=h.join("")}var g,k=(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:p,style:b,children:ye(f)})});return g=null!=c&&""!==c?(0,re.jsx)("a",{href:c,className:"vk_icon_link",target:u&&"_blank",rel:u&&"noopener noreferrer",children:k}):k,(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:d,children:g})})}}])}(de.Component);function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ll(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ll=function(){return!!e})()}var sl=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,ll()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,r=this.props.lbMargin,o=this.props.lbMarginUnit,a=this.props.lbRadius,i=this.props.lbAlign,l=this.props.lbType,s=this.props.lbColor,c=this.props.lbUrl,u=this.props.lbTarget,d="vk_icon_frame";"center"===i?d+=" vk_icon_align_center":"right"===i&&(d+=" vk_icon_align_right");var p="vk_icon_border",b={};"0"===l?"undefined"!==s&&null!=s&&(b={backgroundColor:"".concat(s),borderColor:"".concat(s)}):"1"===l?(p+=" vk_icon_border_frame","undefined"!==s&&null!=s&&(b={borderColor:"".concat(s)})):p+=" vk_icon_border_none",36===t&&"px"===n&&22===r&&"px"===o||(b.width="calc("+(t+n)+" + "+(2*r+o)+")",b.height=b.width),50!==a&&(b.borderRadius=a+"%");var f="";if(e){e=e.replace(/ fas/g,"fas");var v=null;"0"!==l&&"undefined"!==s&&null!=s&&(v="color:".concat(s));var m=null;36===t&&"px"===n||(m=" font-size:".concat(t).concat(n));var h=e.split(" ");h[0]=h[0]+' style="'.concat(v,"; ").concat(m,';"'),h[1]=" "+h[1]+" vk_icon_font ",f=h.join("")}var g,k=(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:p,style:b,children:ye(f)})});return g=null!=c&&""!==c?(0,re.jsx)("a",{href:c,className:"vk_icon_link",target:u&&"_blank",rel:u&&"noopener noreferrer",children:k}):k,(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:d,children:g})})}}])}(de.Component);function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dl=function(){return!!e})()}var pl=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,dl()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,r=this.props.lbMargin,o=this.props.lbMarginUnit,a=this.props.lbRadius,i=this.props.lbAlign,l=this.props.lbType,s=this.props.lbColor,c=this.props.lbFontColor,u=this.props.lbUrl,d=this.props.lbTarget,p="vk_icon_frame";"center"===i?p+=" text-center":"right"===i&&(p+=" text-right");var b="vk_icon_border",f={};"0"===l?"undefined"!==s&&null!=s&&(b+=" has-background",St(s)?f={backgroundColor:"".concat(s)}:b+=" has-".concat(s,"-background-color")):("undefined"!==s&&null!=s&&(b+=" has-text-color",St(s)?f={color:"".concat(s)}:b+=" has-".concat(s,"-color")),p+="1"===l?" is-style-outline":" is-style-noline"),36===t&&"px"===n&&22===r&&"px"===o||(f.width="calc("+(t+n)+" + "+(2*r+o)+")",f.height=f.width),50!==a&&(f.borderRadius=a+"%");var v="";if(e){e=e.replace(/ fas/g,"fas");var m="",h=" vk_icon_font ";36===t&&"px"===n||(m=" font-size:".concat(t).concat(n,";")),"undefined"!==c&&null!=c&&(St(c)?m+=" color:".concat(c,";"):h+=" has-text-color has-".concat(c,"-color "));var g=e.split(" ");g[0]=g[0]+' style="'.concat(m,';"'),g[1]=" "+g[1]+h,v=g.join("")}var k,y=(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:b,style:f,children:ye(v)})});return k=null!=u&&""!==u?(0,re.jsx)("a",{href:u,className:"vk_icon_link",target:d&&"_blank",rel:d&&"noopener noreferrer",children:y}):y,(0,re.jsx)(re.Fragment,{children:(0,re.jsx)("div",{className:p,children:k})})}}])}(de.Component);function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hl,gl,kl,yl={faIcon:{type:"string",default:'<i class="fas fa-user"></i>'},iconSize:{type:"number",default:36},iconSizeUnit:{type:"string",default:"px"},iconMargin:{type:"number",default:22},iconMarginUnit:{type:"string",default:"px"},iconRadius:{type:"number",default:50},iconAlign:{type:"string",default:"left"},iconType:{type:"string",default:"0"},iconColor:{type:"string",default:"undefined"},iconUrl:{type:"string",default:""},iconTarget:{type:"Boolean",default:!1}},_l=ml(ml({},yl),{},{iconColor:{type:"string"},iconUrl:{type:"string"}}),xl=[{attributes:ml(ml({},_l),{},{iconFontColor:{type:"string"}}),save:function(e){var t=e.attributes,n=t.faIcon,r=t.iconSize,o=t.iconSizeUnit,a=t.iconMargin,i=t.iconMarginUnit,l=t.iconRadius,s=t.iconAlign,c=t.iconType,u=t.iconColor,d=t.iconFontColor,p=t.iconUrl,b=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var f=ne.useBlockProps.save({className:"vk_icon"});return(0,re.jsx)("div",fl(fl({},f),{},{children:(0,re.jsx)(pl,{lbFontAwesomeIcon:n,lbSize:r,lbSizeUnit:o,lbMargin:a,lbMarginUnit:i,lbRadius:l,lbAlign:s,lbType:c,lbColor:u,lbFontColor:d,lbUrl:p,lbTarget:b})}))},migrate:function(e){return ml(ml({},e),{},{relAttribute:"",linkDescription:""})}},{attributes:_l,save:function(e){var t=e.attributes,n=t.faIcon,r=t.iconSize,o=t.iconSizeUnit,a=t.iconMargin,i=t.iconMarginUnit,l=t.iconRadius,s=t.iconAlign,c=t.iconType,u=t.iconColor,d=t.iconUrl,p=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var b=ne.useBlockProps.save({className:"vk_icon"});return(0,re.jsx)("div",ul(ul({},b),{},{children:(0,re.jsx)(sl,{lbFontAwesomeIcon:n,lbSize:r,lbSizeUnit:o,lbMargin:a,lbMarginUnit:i,lbRadius:l,lbAlign:s,lbType:c,lbColor:u,lbUrl:d,lbTarget:p})}))}},{attributes:yl,save:function(e){var t=e.attributes,n=t.faIcon,r=t.iconSize,o=t.iconSizeUnit,a=t.iconMargin,i=t.iconMarginUnit,l=t.iconRadius,s=t.iconAlign,c=t.iconType,u=t.iconColor,d=t.iconUrl,p=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var b=ne.useBlockProps.save({className:"vk_icon"});return(0,re.jsx)("div",il(il({},b),{},{children:(0,re.jsx)(ol,{lbFontAwesomeIcon:n,lbSize:r,lbSizeUnit:o,lbMargin:a,lbMarginUnit:i,lbRadius:l,lbAlign:s,lbType:c,lbColor:u,lbUrl:d,lbTarget:p})}))}}],jl={apiVersion:3,name:"vk-blocks/icon",category:"vk-blocks-cat",title:"Icon",attributes:{faIcon:{type:"string",default:'<i class="fas fa-user"></i>'},iconSize:{type:"number",default:36},iconSizeUnit:{type:"string",default:"px"},iconMargin:{type:"number",default:22},iconMarginUnit:{type:"string",default:"px"},iconRadius:{type:"number",default:50},iconAlign:{type:"string",default:"left"},iconType:{type:"string",default:"0"},iconColor:{type:"string"},iconFontColor:{type:"string"},iconUrl:{type:"string"},iconTarget:{type:"Boolean",default:!1},relAttribute:{type:"string",default:""},linkDescription:{type:"string",default:""}},description:"Display icons with Font Awesome.",textdomain:"vk-blocks",supports:{className:!0,anchor:!0}},wl=jl.name,Ol={icon:(0,re.jsx)(Xi,{}),example:{attributes:{faIcon:L,iconSize:36,iconSizeUnit:"px",iconMargin:22,iconMarginUnit:"px",iconRadius:50,iconType:"0",iconAlign:"left",iconColor:"undefined",iconFontColor:"undefined",iconUrl:G,iconTarget:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=t.faIcon,a=t.iconSize,i=t.iconSizeUnit,l=t.iconMargin,s=t.iconMarginUnit,c=t.iconRadius,u=t.iconAlign,d=t.iconType,p=t.iconColor,b=t.iconFontColor,f=t.iconUrl,v=t.relAttribute,m=t.linkDescription,h=t.iconTarget,g=vkFontAwesome.iconFamily,k=(0,fe.select)("core/block-editor").getBlockParentsByBlockName(r,["vk-blocks/icon-outer"]),y="";k.length||(y=(0,re.jsx)(ne.BlockControls,{group:"block",children:(0,re.jsx)(ne.BlockAlignmentControl,{value:u,onChange:function(e){n({iconAlign:e})},controls:["left","center","right"]})}));var _="px"===i?36:1,x="px"===s?22:1,j="";k.length||(j=(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Size","vk-blocks")}),(0,re.jsxs)("div",{className:"vk_icon_custombox",children:[(0,re.jsx)(ce.TextControl,{className:"vk_icon_custombox_number",value:a,step:"px"===i?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):_;"px"===i&&(t=parseInt(t)),n({iconSize:t})},type:"number"}),(0,re.jsx)(ce.SelectControl,{className:"vk_icon_custombox_unit",value:i,onChange:function(e){n({iconSizeUnit:e}),"px"===e&&n({iconSize:parseInt(a)})},options:[{value:"px",label:(0,z.__)("px","vk-blocks")},{value:"em",label:(0,z.__)("em","vk-blocks")},{value:"rem",label:(0,z.__)("rem","vk-blocks")},{value:"vw",label:(0,z.__)("vw","vk-blocks")}]}),(0,re.jsx)(ce.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconSize:36}),n({iconSizeUnit:"px"})},children:(0,z.__)("Reset")})]}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Margin","vk-blocks")}),(0,re.jsxs)("div",{className:"vk_icon_custombox",children:[(0,re.jsx)(ce.TextControl,{className:"vk_icon_custombox_number",value:l,step:"px"===s?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):x;"px"===s&&(t=parseInt(t)),n({iconMargin:t})},type:"number"}),(0,re.jsx)(ce.SelectControl,{className:"vk_icon_custombox_unit",value:s,onChange:function(e){n({iconMarginUnit:e}),"px"===e&&n({iconMargin:parseInt(l)})},options:[{value:"px",label:(0,z.__)("px","vk-blocks")},{value:"em",label:(0,z.__)("em","vk-blocks")},{value:"rem",label:(0,z.__)("rem","vk-blocks")},{value:"vw",label:(0,z.__)("vw","vk-blocks")}]}),(0,re.jsx)(ce.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconMargin:22}),n({iconMarginUnit:"px"})},children:(0,z.__)("Reset")})]}),(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Border radius","vk-blocks"),id:"vk_icon-radius",children:(0,re.jsx)(ce.RangeControl,{value:c,onChange:function(e){return n({iconRadius:void 0!==e?e:50})},min:0,max:50,allowReset:!0})}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Style","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:d,onChange:function(e){n({iconType:e}),"1"!==e&&"2"!==e||n({iconFontColor:void 0})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:(0,z.__)("Solid color","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"1",label:(0,z.__)("Icon & Frame","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"2",label:(0,z.__)("Icon only","vk-blocks")})]})]})),o&&!o.match(/<i/)&&(o='<i class="'.concat(o,'"></i>')),(0,de.useEffect)((function(){"undefined"===p&&n({iconColor:void 0})}),[r]);var w=(0,ne.useBlockProps)({className:"vk_icon"});return(0,re.jsxs)(re.Fragment,{children:[y,(0,re.jsx)(ne.BlockControls,{children:(0,re.jsx)(ce.ToolbarGroup,{children:(0,re.jsx)($n,{linkUrl:f,setLinkUrl:function(e){return n({iconUrl:e})},linkTarget:h?"_blank":"",setLinkTarget:function(e){return n({iconTarget:!!e})},relAttribute:v,setRelAttribute:function(e){return n({relAttribute:e})},linkDescription:m,setLinkDescription:function(e){return n({linkDescription:e})}})})}),(0,re.jsxs)(ne.InspectorControls,{children:[(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Icon Setting","vk-blocks"),children:[(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Icon","vk-blocks")+" ( "+g+" )",id:"vk_icon-font",children:(0,re.jsx)(Ze,el({attributeName:"faIcon"},e))}),j,(0,re.jsx)(ce.TextControl,{label:(0,z.__)("Link URL","vk-blocks"),value:f,onChange:function(e){return n({iconUrl:e})}}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Open link new tab","vk-blocks"),checked:h,onChange:function(e){n({iconTarget:e})}})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Color","vk-blocks"),children:[(0,re.jsx)(ce.BaseControl,{id:"vk_block_icon_color",label:"0"===d||null===d?(0,z.__)("Background Color","vk-blocks"):(0,z.__)("Icon Color","vk-blocks"),children:(0,re.jsx)(Xt,el({schema:"iconColor"},e))}),("0"===d||null===d)&&(0,re.jsx)(ce.BaseControl,{id:"vk_block_icon_font_color",label:(0,z.__)("Icon Color","vk-blocks"),children:(0,re.jsx)(Xt,el({schema:"iconFontColor"},e))})]})]}),(0,re.jsx)("div",el(el({},w),{},{children:(0,re.jsx)(Ji,{lbFontAwesomeIcon:o,lbSize:a,lbSizeUnit:i,lbMargin:l,lbMarginUnit:s,lbRadius:c,lbAlign:u,lbType:d,lbColor:p,lbFontColor:b})}))]})},save:function(e){var t=e.attributes,n=t.faIcon,r=t.iconSize,o=t.iconSizeUnit,a=t.iconMargin,i=t.iconMarginUnit,l=t.iconRadius,s=t.iconAlign,c=t.iconType,u=t.iconColor,d=t.iconFontColor,p=t.iconUrl,b=t.iconTarget,f=t.relAttribute,v=t.linkDescription;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var m=ne.useBlockProps.save({className:"vk_icon"});return(0,re.jsx)("div",nl(nl({},m),{},{children:(0,re.jsx)(Ji,{lbFontAwesomeIcon:n,lbSize:r,lbSizeUnit:o,lbMargin:a,lbMarginUnit:i,lbRadius:l,lbAlign:s,lbType:c,lbColor:u,lbFontColor:d,lbUrl:p,lbTarget:b,lbRelAttribute:f,lbLinkDescription:v})}))},deprecated:xl};function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cl.apply(null,arguments)}var Pl=function(e){return Q.createElement("svg",Cl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23.91 17.64"},e),hl||(hl=Q.createElement("defs",null,Q.createElement("style",null,".icon_svg__cls-1{fill-rule:evenodd}"))),">",gl||(gl=Q.createElement("path",{d:"M1.15 6.21a3.67 3.67 0 0 0 1.57 1 3.6 3.6 0 0 0 1 .15H4l.33-.06a.4.4 0 0 1 0-.11l.32-.75a.11.11 0 0 1 .11-.11h1.53A3.65 3.65 0 1 0 .1 3.6a3.66 3.66 0 0 0 1 2.56ZM3 1.46h1.48v.81H3Zm0 1.46h1.48v2.93H3ZM11 7.16a3.65 3.65 0 0 1-1.58-1 3.63 3.63 0 0 1-1.07-2.51 3.66 3.66 0 1 1 3.93 3.7H12a3.5 3.5 0 0 1-1-.19m.3-4.89v-.81h1.46v.81Zm0 3.58V2.92h1.46v2.93ZM19.23 7.16a3.65 3.65 0 0 1-1.58-1 3.62 3.62 0 0 1-1-2.56 3.65 3.65 0 1 1 3.93 3.7h-.28a3.5 3.5 0 0 1-1.07-.14m.3-4.89v-.81H21v.81Zm0 3.58V2.92H21v2.93Z",className:"icon_svg__cls-1"})),kl||(kl=Q.createElement("path",{d:"M10.9 8.47H7.6a.09.09 0 0 0-.1.1l-.2.7c0 .1 0 .2.1.2h1.3c.1 0 .1.1.1.2l-2 2.2 1 3.4c0 .1 0 .1-.1.1h-1c-.1 0-.1 0-.1-.1l-.6-1.8c0-.1-.2-.1-.2 0l-.4 1.2v.1l.4 1.5.1.1h3.3a.1.1 0 0 0 .1-.1L8 12v-.1l3-3.2c0-.13 0-.23-.1-.23"})),Q.createElement("path",{d:"M7 6.67H5a.09.09 0 0 0-.1.1l-.3.7c0 .1 0 .2.1.2h.8c.1 0 .1.1.1.2l-2.4 6.7c0 .1-.2.1-.2 0l-1.6-4.9c0-.1 0-.2.1-.2h.9a.09.09 0 0 1 .1.1l.6 1.7c0 .1.2.1.2 0l1-2.7c0-.1 0-.2-.1-.2H.1a.3.3 0 0 0-.1.2l3.1 9c0 .1.2.1.2 0l3.8-10.8a.09.09 0 0 0-.1-.1",style:{fill:"#d8141c"}}))};function Tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bl,Il,Ml,Dl={apiVersion:3,name:"vk-blocks/icon-outer",category:"vk-blocks-cat",title:"Icon Outer",attributes:{iconSize:{type:"number",default:36},iconSizeUnit:{type:"string",default:"px"},iconMargin:{type:"number",default:22},iconMarginUnit:{type:"string",default:"px"},iconRadius:{type:"number",default:50},iconsJustify:{type:"string",default:"left"},iconType:{type:"string",default:"0"}},description:"Display the Font Awesome icons horizontally.",textdomain:"vk-blocks",supports:{html:!1,className:!0}},Al=Dl.name,zl={icon:(0,re.jsx)(Pl,{}),styles:[],example:{innerBlocks:[{name:"vk-blocks/icon"},{name:"vk-blocks/icon"}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=t.iconSize,a=t.iconSizeUnit,i=t.iconMargin,l=t.iconMarginUnit,s=t.iconRadius,c=t.iconsJustify,u=t.iconType,d=(0,fe.select)("core/block-editor").getBlocksByClientId,p=(0,fe.dispatch)("core/block-editor").updateBlockAttributes,b=d(r);(0,de.useEffect)((function(){b&&b[0]&&b[0].innerBlocks&&b[0].innerBlocks.forEach((function(e){p(e.clientId,{iconSize:o}),p(e.clientId,{iconSizeUnit:a}),p(e.clientId,{iconMargin:i}),p(e.clientId,{iconMarginUnit:l}),p(e.clientId,{iconRadius:s}),p(e.clientId,{iconType:u})}))}),[b,t,r]);var f=(0,ne.useBlockProps)({className:"vk_icons"}),v="px"===a?36:1,m="px"===l?22:1;return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.BlockControls,{group:"block",children:(0,re.jsx)(ne.JustifyContentControl,{allowedControls:["left","center","right","space-between"],value:c,onChange:function(e){return n({iconsJustify:e})},popoverProps:{position:"bottom right",variant:"toolbar"}})}),(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Icon Common Setting","vk-blocks"),children:[(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Size","vk-blocks")}),(0,re.jsxs)("div",{className:"vk_icon_custombox",children:[(0,re.jsx)(ce.TextControl,{className:"vk_icon_custombox_number",value:o,step:"px"===a?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):v;"px"===a&&(t=parseInt(t)),n({iconSize:t})},type:"number"}),(0,re.jsx)(ce.SelectControl,{className:"vk_icon_custombox_unit",value:a,onChange:function(e){n({iconSizeUnit:e}),"px"===e&&n({iconSize:parseInt(o)})},options:[{value:"px",label:(0,z.__)("px","vk-blocks")},{value:"em",label:(0,z.__)("em","vk-blocks")},{value:"rem",label:(0,z.__)("rem","vk-blocks")},{value:"vw",label:(0,z.__)("vw","vk-blocks")}]}),(0,re.jsx)(ce.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconSize:36}),n({iconSizeUnit:"px"})},children:(0,z.__)("Reset")})]}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Margin","vk-blocks")}),(0,re.jsxs)("div",{className:"vk_icon_custombox",children:[(0,re.jsx)(ce.TextControl,{className:"vk_icon_custombox_number",value:i,step:"px"===l?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):m;"px"===l&&(t=parseInt(t)),n({iconMargin:t})},type:"number"}),(0,re.jsx)(ce.SelectControl,{className:"vk_icon_custombox_unit",value:l,onChange:function(e){n({iconMarginUnit:e}),"px"===e&&n({iconMargin:parseInt(i)})},options:[{value:"px",label:(0,z.__)("px","vk-blocks")},{value:"em",label:(0,z.__)("em","vk-blocks")},{value:"rem",label:(0,z.__)("rem","vk-blocks")},{value:"vw",label:(0,z.__)("vw","vk-blocks")}]}),(0,re.jsx)(ce.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconMargin:22}),n({iconMarginUnit:"px"})},children:(0,z.__)("Reset")})]}),(0,re.jsx)(ce.BaseControl,{label:(0,z.__)("Border radius","vk-blocks"),id:"vk_icon-radius",children:(0,re.jsx)(ce.RangeControl,{value:s,onChange:function(e){return n({iconRadius:void 0!==e?e:50})},min:0,max:50,allowReset:!0})}),(0,re.jsx)("p",{className:"mt-0 mb-2",children:(0,z.__)("Style","vk-blocks")}),(0,re.jsxs)(ce.__experimentalToggleGroupControl,{value:u,onChange:function(e){return n({iconType:e})},isBlock:!0,children:[(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"0",label:(0,z.__)("Solid color","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"1",label:(0,z.__)("Icon & Frame","vk-blocks")}),(0,re.jsx)(ce.__experimentalToggleGroupControlOption,{value:"2",label:(0,z.__)("Icon only","vk-blocks")})]})]})}),(0,re.jsx)("div",Sl(Sl({},f),{},{children:(0,re.jsx)("div",{className:"vk_icons_col vk_icons_col-justify-".concat(c),children:(0,re.jsx)(ne.InnerBlocks,{allowedBlocks:["vk-blocks/icon"],template:[["vk-blocks/icon"],["vk-blocks/icon"]],templateLock:!1,orientation:"horizontal"})})}))]})},save:function(e){var t=e.attributes.iconsJustify,n=ne.useBlockProps.save({className:"vk_icons"});return(0,re.jsx)("div",Nl(Nl({},n),{},{children:(0,re.jsx)("div",{className:"vk_icons_col vk_icons_col-justify-".concat(t),children:(0,re.jsx)(ne.InnerBlocks.Content,{})})}))}};function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rl.apply(null,arguments)}var Vl=function(e){return Q.createElement("svg",Rl({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Bl||(Bl=Q.createElement("path",{fillRule:"evenodd",d:"M17 5.5H7a.5.5 0 0 0-.5.5v5.502l-1.467.006H5V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6.964l-.438-1.41.086-.09H17a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5m-4.745 10.25H14v-1.5h-1.634a1.6 1.6 0 0 1-.11 1.5ZM8.502 12.5H16V11H8v.821c.23.179.398.418.502.679M8 7.75h8v1.5H8z",clipRule:"evenodd"})),Il||(Il=Q.createElement("path",{d:"m10.89 14.778-3.267.007a.11.11 0 0 0-.102.076l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.144-.103.144h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.106-.168-.106-.205-.007l-.426 1.223a.1.1 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19"})),Ml||(Ml=Q.createElement("path",{fill:"#D8141C",d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})))};function Fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ul,Hl,Gl,Wl=function(e){var t=e.title.rendered;return"private"===e.status&&(t+=" (".concat((0,z.__)("Private","vk-blocks"),")")),e.password&&(t+=" (".concat((0,z.__)("Password Protected","vk-blocks"),")")),t},Zl={apiVersion:3,name:"vk-blocks/page-content",title:"Page Content",category:"vk-blocks-cat",attributes:{TargetPost:{type:"number",default:-1}},description:"Displays the body content of the specified parent page.",textdomain:"vk-blocks",supports:{className:!0}},Yl=Zl.name,Xl={icon:(0,re.jsx)(Vl,{}),edit:function(e){var t,n,r,o=e.attributes,a=e.setAttributes,i=o.TargetPost,l=function(e,t){var n=[{label:(0,z.__)("Unspecified","vk-blocks"),value:-1}],r=e.filter((function(e){return"publish"===e.status&&!e.password||e.id===t})).map((function(e){return{label:"private"===e.status||e.password?Wl(e):e.title.rendered,value:e.id}}));return n.concat(r)}((t={slug:"page"},n={per_page:-1,status:"private,publish"},(0,fe.useSelect)((function(e){return e("core").getEntityRecords("postType",t.slug,n)||[]}),[t,n])),i);r=-1===i?(0,re.jsx)("div",{className:"alert alert-warning text-center",children:(0,z.__)("Because no post is selected, The block Will not render","vk-blocks")}):(0,re.jsx)(kt(),{block:"vk-blocks/page-content",attributes:o});var s=(0,ne.useBlockProps)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ne.InspectorControls,{children:(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Page Setting","vk-blocks"),initialOpen:!0,children:(0,re.jsx)(ce.BaseControl,{id:"vb-call-01",children:(0,re.jsx)(ce.SelectControl,{label:(0,z.__)("Select Page","vk-blocks"),value:i,options:l,onChange:function(e){return a({TargetPost:parseInt(e,10)})}})})})}),(0,re.jsx)("div",Ll(Ll({},s),{},{children:r}))]})}};function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ql.apply(null,arguments)}var ql=function(e){return Q.createElement("svg",Ql({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Ul||(Ul=Q.createElement("path",{fillRule:"evenodd",d:"M2.15 7.88A3 3 0 0 1 3 2a3 3 0 1 1-.85 5.88m.25-4.01V3.2h1.2v.67zm0 2.93V4.4h1.2v2.4zm8.75 1.08A3 3 0 0 1 12 2a3 3 0 1 1-.85 5.88m.25-4.01V3.2h1.2v.67zm0 2.93V4.4h1.2v2.4zm8.75 1.08A3 3 0 0 1 21 2a3 3 0 1 1-.85 5.88m.25-4.01V3.2h1.2v.67zm0 2.93V4.4h1.2v2.4z",clipRule:"evenodd"})),Hl||(Hl=Q.createElement("path",{d:"M24 10v1h-6v-1zm0 2v1h-6v-1zm0 2v1h-6v-1zm-9-3v-1H9v1zm0 2v-1H9v1zm0 2v-1h-2.77c.2.3.3.65.27 1zm-9-5v1H0v-1zm-2.63 3 .14-.41c.08-.23.2-.43.37-.59H0v1zm7.52 1.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),Gl||(Gl=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))},$l=function(e){if("string"==typeof e){try{JSON.parse(e)}catch(e){return!0}return!1}return"object"!==x(e)||Array.isArray(e)},Jl=((0,fe.select)("core/block-editor")?(0,fe.select)("core/block-editor"):(0,fe.select)("core/editor"),(0,fe.dispatch)("core/block-editor")?(0,fe.dispatch)("core/block-editor"):(0,fe.dispatch)("core/editor"),function(e){return function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(e)||(e=e.replace(/u0022/g,'"')),e});function Kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kl=function(){return!!e})()}function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ns=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,Kl()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,r=t.heading2,o=t.heading3,a=t.content1,i=t.content2,l=t.content3,s=t.icon1,c=t.icon2,u=t.icon3,d=t.color1,p=t.color2,b=t.color3,f=t.bgType1,v=t.bgType2,m=t.bgType3,h=t.insertImage1,g=t.insertImage2,k=t.insertImage3,y=this.props.blockNum,_=this.props.blockNum-1,x=[s,c,u],j=[d,p,b],w=[f,v,m],O=[h,g,k],C="",P="",T=function(e){if($l(e))return(0,re.jsx)("img",{src:e,alt:""});var t=JSON.parse(Jl(e));return(0,re.jsx)("img",{src:t.sizes.full.url,alt:t.alt})},S=function(e){var t=e[_];if($l(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(Jl(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},E=function(){if(O[_])return(0,re.jsx)("div",{className:"vk_prBlocks_item_image",style:S(O),children:T(O[_])});var e="",t={},n="";void 0!==j[_]&&("0"===w[_]?St(j[_])?(e="has-background ",t={backgroundColor:"".concat(j[_])}):e="has-background has-".concat(qt(j[_]),"-background-color"):"1"===w[_]&&(St(j[_])?(e="has-text-color",t={border:"1px solid ".concat(j[_])},n=j[_]):e="has-text-color has-".concat(qt(j[_]),"-color")));var r=x[_];r&&!r.match(/<i/)&&(r='<i class="'.concat(r,'"></i>'));var o=r.split(" ");o[0]=""!==n?o[0]+' style="color:'.concat(n,'" '):o[0]+" ",o[1]=o[1]+" vk_prBlocks_item_icon ";var a=o.join("");return(0,re.jsx)("div",{className:"vk_prBlocks_item_icon_outer ".concat(e),style:t,children:ye(a)})}(),N="";return"1"===w[_]&&(N="is-style-outline"),1===y?(C=(0,re.jsx)(ne.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,z.__)("Input Title","vk-blocks")}),P=(0,re.jsx)(ne.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:a,placeholder:(0,z.__)("Input Content","vk-blocks")})):2===y?(C=(0,re.jsx)(ne.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:r,placeholder:(0,z.__)("Input Title","vk-blocks")}),P=(0,re.jsx)(ne.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:i,placeholder:(0,z.__)("Input Content","vk-blocks")})):3===y&&(C=(0,re.jsx)(ne.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:o,placeholder:(0,z.__)("Input Title","vk-blocks")}),P=(0,re.jsx)(ne.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:l,placeholder:(0,z.__)("Input Content","vk-blocks")})),(0,re.jsxs)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(N),children:[E,C,P]})}}])}(de.Component);function rs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rs=function(){return!!e})()}function os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?os(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var is=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,rs()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.heading1,o=n.heading2,a=n.heading3,i=n.content1,l=n.content2,s=n.content3,c=n.url1,u=n.url2,d=n.url3,p=n.urlOpenType1,b=n.urlOpenType2,f=n.urlOpenType3,v=n.icon1,m=n.icon2,h=n.icon3,g=n.color1,k=n.color2,y=n.color3,_=n.bgType1,x=n.bgType2,j=n.bgType3,w=n.insertImage1,O=n.insertImage2,C=n.insertImage3,P=this.props.blockNum,T=this.props.blockNum-1,S=[r,o,a],E=[i,l,s],N=[c,u,d],B=[p,b,f],I=[v,m,h],M=[g,k,y],D=[_,x,j],A=[w,O,C],z=function(e){if($l(e))return(0,re.jsx)("img",{src:e,alt:""});var t=JSON.parse(Jl(e));return(0,re.jsx)("img",{src:t.sizes.full.url,alt:t.alt})},R=function(e){var t=e[T];if($l(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(Jl(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},V=function(){if(A[T])return(0,re.jsx)("div",{className:"vk_prBlocks_item_image",style:R(A),children:z(A[T])});var e="",t={},n="";void 0!==M[T]&&("0"===D[T]?St(M[T])?(e="has-background ",t={backgroundColor:"".concat(M[T])}):e="has-background has-".concat(qt(M[T]),"-background-color"):"1"===D[T]&&(St(M[T])?(e="has-text-color",t={border:"1px solid ".concat(M[T])},n=M[T]):e="has-text-color has-".concat(qt(M[T]),"-color")));var r=I[T];r&&!r.match(/<i/)&&(r='<i class="'.concat(r,'"></i>'));var o=r.split(" ");o[0]=""!==n?o[0]+' style="color:'.concat(n,'" '):o[0]+" ",o[1]=o[1]+" vk_prBlocks_item_icon ";var a=o.join("");return(0,re.jsx)("div",{className:"vk_prBlocks_item_icon_outer ".concat(e),style:t,children:ye(a)})}(),F="";return"1"===D[T]&&(F="is-style-outline"),e=(0,re.jsx)(ne.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(P),tagName:"h3",value:S[T]}),t=(0,re.jsx)(ne.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(P),tagName:"p",value:E[T]}),N[T]?(0,re.jsx)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(F),children:(0,re.jsxs)("a",{href:N[T],className:"vk_prBlocks_item_link",target:B[T]?"_blank":"_self",rel:"noopener noreferrer",children:[V,e,t]})}):(0,re.jsxs)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(F),children:[V,e,t]})}}])}(de.Component);function ls(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ls=function(){return!!e})()}function ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var us=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,ls()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.heading1,o=n.heading2,a=n.heading3,i=n.content1,l=n.content2,s=n.content3,c=n.url1,u=n.url2,d=n.url3,p=n.urlOpenType1,b=n.urlOpenType2,f=n.urlOpenType3,v=n.icon1,m=n.icon2,h=n.icon3,g=n.color1,k=n.color2,y=n.color3,_=n.bgType1,x=n.bgType2,j=n.bgType3,w=n.insertImage1,O=n.insertImage2,C=n.insertImage3,P=this.props.blockNum,T=this.props.blockNum-1,S=[r,o,a],E=[i,l,s],N=[c,u,d],B=[p,b,f],I=[v,m,h],M=[g,k,y],D=[_,x,j],A=[w,O,C],z=function(e){if($l(e))return(0,re.jsx)("img",{src:e,alt:""});var t=JSON.parse(Jl(e));return(0,re.jsx)("img",{src:t.sizes.full.url,alt:t.alt})},R=function(e){var t=e[T];if($l(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(Jl(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},V=function(){if(A[T])return(0,re.jsx)("div",{className:"vk_prBlocks_item_image",style:R(A),children:z(A[T])});var e;M[T]||(M[T]="#0693e3"),e="0"===D[T]?"#fff":M[T];var t=I[T];t&&!t.match(/<i/)&&(t='<i class="'.concat(t,'"></i>'));var n=t.split(" ");n[0]=n[0]+' style="color:'.concat(e,'" '),n[1]=n[1]+" vk_prBlocks_item_icon ";var r=n.join("");return"0"===D[T]?(0,re.jsx)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:M[T],border:"1px solid ".concat(M[T])},children:ye(r)}):(0,re.jsx)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+M[T]},children:ye(r)})}();return e=(0,re.jsx)(ne.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(P),tagName:"h3",value:S[T]}),t=(0,re.jsx)(ne.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(P),tagName:"p",value:E[T]}),(0,re.jsx)("div",{className:"vk_prBlocks_item col-sm-4",children:(0,re.jsxs)("a",{href:N[T],className:"vk_prBlocks_item_link",target:B[T]?"_blank":"_self",rel:"noopener noreferrer",children:[V,e,t]})})}}])}(de.Component);function ds(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ds=function(){return!!e})()}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fs,vs,ms,hs,gs=function(e){function t(){return _e(this,t),e=this,r=arguments,n=Oe(n=t),we(e,ds()?Reflect.construct(n,r||[],Oe(e).constructor):n.apply(e,r));var e,n,r}return Pe(t,e),je(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.heading1,o=n.heading2,a=n.heading3,i=n.content1,l=n.content2,s=n.content3,c=n.url1,u=n.url2,d=n.url3,p=n.urlOpenType1,b=n.urlOpenType2,f=n.urlOpenType3,v=n.icon1,m=n.icon2,h=n.icon3,g=n.color1,k=n.color2,y=n.color3,_=n.bgType1,x=n.bgType2,j=n.bgType3,w=n.insertImage1,O=n.insertImage2,C=n.insertImage3,P=this.props.blockNum,T=this.props.blockNum-1,S=[r,o,a],E=[i,l,s],N=[c,u,d],B=[p,b,f],I=[v,m,h],M=[g,k,y],D=[_,x,j],A=[w,O,C],z=function(e){if($l(e))return(0,re.jsx)("img",{src:e,alt:""});var t=JSON.parse(Jl(e));return(0,re.jsx)("img",{src:t.sizes.full.url,alt:t.alt})},R=function(e){var t=e[T];if($l(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(Jl(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},V=function(){if(A[T])return(0,re.jsx)("div",{className:"vk_prBlocks_item_image",style:R(A),children:z(A[T])});var e;M[T]||(M[T]="#0693e3"),e="0"===D[T]?"#fff":M[T];var t=I[T];t&&!t.match(/<i/)&&(t='<i class="'.concat(t,'"></i>'));var n=t.split(" ");n[0]=n[0]+' style="color:'.concat(e,'" '),n[1]=n[1]+" vk_prBlocks_item_icon ";var r=n.join("");return"0"===D[T]?(0,re.jsx)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:M[T],border:"1px solid ".concat(M[T])},children:ye(r)}):(0,re.jsx)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+M[T]},children:ye(r)})}();return e=(0,re.jsx)(ne.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(P),tagName:"h3",value:S[T]}),t=(0,re.jsx)(ne.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(P),tagName:"p",value:E[T]}),N[T]?(0,re.jsx)("div",{className:"vk_prBlocks_item col-sm-4",children:(0,re.jsxs)("a",{href:N[T],className:"vk_prBlocks_item_link",target:B[T]?"_blank":"_self",rel:"noopener noreferrer",children:[V,e,t]})}):(0,re.jsxs)("div",{className:"vk_prBlocks_item col-sm-4",children:[V,e,t]})}}])}(de.Component),ks=[{attributes:function(){for(var e={},t=1;t<=4;t++)e["heading"+t]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+t},e["content"+t]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+t},e["url"+t]={type:"string",default:""},e["urlOpenType"+t]={type:"Boolean",default:!1},e["icon"+t]={type:"string",default:'<i class="fas fa-file"></i>'},e["color"+t]={type:"string",default:"#0693e3"},e["bgType"+t]={type:"string",default:"0"},e["insertImage"+t]={type:"string",default:""};return e}(),save:function(e){var t=e.attributes,n=ne.useBlockProps.save({className:"vk_prBlocks row"});return(0,re.jsxs)("div",bs(bs({},n),{},{children:[(0,re.jsx)(gs,{attributes:t,blockNum:1}),(0,re.jsx)(gs,{attributes:t,blockNum:2}),(0,re.jsx)(gs,{attributes:t,blockNum:3})]}))}},{attributes:function(){for(var e={},t=1;t<=4;t++)e["heading"+t]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+t},e["content"+t]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+t},e["url"+t]={type:"string",default:""},e["urlOpenType"+t]={type:"Boolean",default:!1},e["icon"+t]={type:"string",default:'<i class="fas fa-file"></i>'},e["color"+t]={type:"string",default:"#0693e3"},e["bgType"+t]={type:"string",default:"0"},e["insertImage"+t]={type:"string",default:""};return e}(),save:function(e){var t=e.attributes,n=ne.useBlockProps.save({className:"vk_prBlocks row"});return(0,re.jsxs)("div",cs(cs({},n),{},{children:[(0,re.jsx)(us,{attributes:t,blockNum:1}),(0,re.jsx)(us,{attributes:t,blockNum:2}),(0,re.jsx)(us,{attributes:t,blockNum:3})]}))}}],ys={apiVersion:3,name:"vk-blocks/pr-blocks",title:"PR Blocks ( not recommended )",category:"vk-blocks-cat",attributes:{heading1:{type:"string",source:"html",selector:".vk_prBlocks_item_title-1"},heading2:{type:"string",source:"html",selector:".vk_prBlocks_item_title-2"},heading3:{type:"string",source:"html",selector:".vk_prBlocks_item_title-3"},heading4:{type:"string",source:"html",selector:".vk_prBlocks_item_title-4"},content1:{type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-1"},content2:{type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-2"},content3:{type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-3"},content4:{type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-4"},url1:{type:"string",default:""},url2:{type:"string",default:""},url3:{type:"string",default:""},url4:{type:"string",default:""},urlOpenType1:{type:"Boolean",default:!1},urlOpenType2:{type:"Boolean",default:!1},urlOpenType3:{type:"Boolean",default:!1},urlOpenType4:{type:"Boolean",default:!1},icon1:{type:"string",default:'<i class="fas fa-file"></i>'},icon2:{type:"string",default:'<i class="fas fa-file"></i>'},icon3:{type:"string",default:'<i class="fas fa-file"></i>'},icon4:{type:"string",default:'<i class="fas fa-file"></i>'},color1:{type:"string"},color2:{type:"string"},color3:{type:"string"},color4:{type:"string"},bgType1:{type:"string",default:"0"},bgType2:{type:"string",default:"0"},bgType3:{type:"string",default:"0"},bgType4:{type:"string",default:"0"},insertImage1:{type:"string",default:""},insertImage2:{type:"string",default:""},insertImage3:{type:"string",default:""},insertImage4:{type:"string",default:""}},description:"This is a PR block where you can place images and icon. But currently, it is possible to create the same layout by combining Column Block and Icon Block, so this block is not recommended. Please check Columns category of Block Patterns.",textdomain:"vk-blocks",supports:{className:!0}},_s=ys.name,xs={icon:(0,re.jsx)(ql,{}),example:{heading1:F,heading2:F,heading3:F,content1:R,content2:R,content3:R,url1:G,url2:G,url3:G,urlOpenType1:!1,urlOpenType2:!1,urlOpenType3:!1,icon1:L,icon2:L,icon3:L,color1:H,color2:H,color3:H,bgType1:"0",bgType2:"0",bgType3:"0",insertImage1:"",insertImage2:"",insertImage3:""},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.url1,o=t.url2,a=t.url3,i=t.urlOpenType1,l=t.urlOpenType2,s=t.urlOpenType3,c=t.bgType1,u=t.bgType2,d=t.bgType3,p=t.insertImage1,b=t.insertImage2,f=t.insertImage3,v=vkFontAwesome.iconFamily,m=(0,ne.useBlockProps)({className:"vk_prBlocks row"}),h=function(e){if($l(e))return e?(0,re.jsx)("img",{className:"icon-image",src:e,alt:(0,z.__)("Upload image","vk-blocks")}):(0,z.__)("Select image","vk-blocks");var t=JSON.parse(Jl(e));return e?(0,re.jsx)("img",{className:"icon-image",src:t.sizes.full.url,alt:t.alt}):(0,z.__)("Select image","vk-blocks")};return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(ne.InspectorControls,{children:[(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("PR Block1 Setting","vk-blocks"),children:[(0,re.jsxs)(ce.BaseControl,{label:(0,z.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl1",children:[(0,re.jsx)(ce.TextControl,{value:r,onChange:function(e){return n({url1:e})}}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Open link new tab","vk-blocks"),checked:i,onChange:function(e){return n({urlOpenType1:e})}})]}),(0,re.jsxs)(ce.BaseControl,{label:(0,z.__)("Icon 1","vk-blocks")+" ( "+v+" )",id:"vk_prBlocks_Icon1",children:[(0,re.jsx)(Ze,ts({attributeName:"icon1"},e)),(0,re.jsx)(Xt,ts({schema:"color1"},e)),(0,re.jsx)(ce.RadioControl,{label:(0,z.__)("Icon Background:","vk-blocks"),selected:c,options:[{label:(0,z.__)("Solid color","vk-blocks"),value:"0"},{label:(0,z.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType1:e})}})]}),(0,re.jsxs)(ce.BaseControl,{help:(0,z.__)("When you have an image. Image is displayed with priority","vk-blocks"),children:[(0,re.jsx)("h4",{className:"components-base-control__title",children:(0,z.__)("PR Image 1","vk-blocks")}),(0,re.jsx)(ne.MediaUpload,{onSelect:function(e){$l(e)?n({insertImage1:e.url}):n({insertImage1:JSON.stringify(e)})},type:"image",value:p,render:function(e){var t=e.open;return(0,re.jsx)(ce.Button,{onClick:t,className:p?"image-button":"button button-large",children:h(p)})}})]})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("PR Block2 Setting","vk-blocks"),children:[(0,re.jsxs)(ce.BaseControl,{label:(0,z.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl2",children:[(0,re.jsx)(ce.TextControl,{value:o,onChange:function(e){return n({url2:e})}}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Open link new tab","vk-blocks"),checked:l,onChange:function(e){return n({urlOpenType2:e})}})]}),(0,re.jsxs)(ce.BaseControl,{label:(0,z.__)("Icon 2","vk-blocks")+" ( "+v+" )",id:"vk_prBlocks_Icon2",children:[(0,re.jsx)(Ze,ts({attributeName:"icon2"},e)),(0,re.jsx)(Xt,ts({schema:"color2"},e)),(0,re.jsx)(ce.RadioControl,{label:(0,z.__)("Icon Background:","vk-blocks"),selected:u,options:[{label:(0,z.__)("Solid color","vk-blocks"),value:"0"},{label:(0,z.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType2:e})}})]}),(0,re.jsxs)(ce.BaseControl,{help:(0,z.__)("When you have an image. Image is displayed with priority.","vk-blocks"),children:[(0,re.jsx)("h4",{className:"components-base-control__title",children:(0,z.__)("PR Image 2","vk-blocks")}),(0,re.jsx)(ne.MediaUpload,{onSelect:function(e){$l(e)?n({insertImage2:e.url}):n({insertImage2:JSON.stringify(e)})},type:"image",value:b,render:function(e){var t=e.open;return(0,re.jsx)(ce.Button,{onClick:t,className:b?"image-button":"button button-large",children:h(b)})}})]})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("PR Block3 Setting","vk-blocks"),children:[(0,re.jsxs)(ce.BaseControl,{label:(0,z.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl3",children:[(0,re.jsx)(ce.TextControl,{value:a,onChange:function(e){return n({url3:e})}}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Open link new tab","vk-blocks"),checked:s,onChange:function(e){return n({urlOpenType3:e})}})]}),(0,re.jsxs)(ce.BaseControl,{label:(0,z.__)("Icon 3","vk-blocks")+" ( "+v+" )",id:"vk_prBlocks_Icon3",children:[(0,re.jsx)(Ze,ts({attributeName:"icon3"},e)),(0,re.jsx)(Xt,ts({schema:"color3"},e)),(0,re.jsx)(ce.RadioControl,{label:(0,z.__)("Icon Background:","vk-blocks"),selected:d,options:[{label:(0,z.__)("Solid color","vk-blocks"),value:"0"},{label:(0,z.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType3:e})}})]}),(0,re.jsxs)(ce.BaseControl,{help:(0,z.__)("When you have an image. Image is displayed with priority.","vk-blocks"),children:[(0,re.jsx)("h4",{className:"components-base-control__title",children:(0,z.__)("PR Image 3","vk-blocks")}),(0,re.jsx)(ne.MediaUpload,{onSelect:function(e){$l(e)?n({insertImage3:e.url}):n({insertImage3:JSON.stringify(e)})},type:"image",value:f,render:function(e){var t=e.open;return(0,re.jsx)(ce.Button,{onClick:t,className:f?"image-button":"button button-large",children:h(f)})}})]})]})]}),(0,re.jsxs)("div",ts(ts({},m),{},{children:[(0,re.jsx)(ns,{attributes:t,setAttributes:n,blockNum:1}),(0,re.jsx)(ns,{attributes:t,setAttributes:n,blockNum:2}),(0,re.jsx)(ns,{attributes:t,setAttributes:n,blockNum:3})]}))]})},save:function(e){var t=e.attributes,n=ne.useBlockProps.save({className:"vk_prBlocks row"});return(0,re.jsxs)("div",as(as({},n),{},{children:[(0,re.jsx)(is,{attributes:t,blockNum:1}),(0,re.jsx)(is,{attributes:t,blockNum:2}),(0,re.jsx)(is,{attributes:t,blockNum:3})]}))},deprecated:ks};function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},js.apply(null,arguments)}var ws=function(e){return Q.createElement("svg",js({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),fs||(fs=Q.createElement("path",{d:"M12 3H1v9.5h2.55l-.04.09-.24.69H0V2h13v11.5h-1.29a1.6 1.6 0 0 0-.82-.22H8.62c.02-.26-.02-.53-.12-.78H12zm3 1.5h9v1h-9zM24 7h-9v1h9zm0-5h-9v1h9zm-6.5 9h4v1h-4z"})),vs||(vs=Q.createElement("path",{fillRule:"evenodd",d:"M15 10.7c0-.32.13-.62.37-.85.23-.22.55-.35.88-.35h6.5c.33 0 .65.13.88.35.24.23.37.53.37.85v1.6c0 .32-.13.62-.37.85-.23.22-.55.35-.88.35h-6.5c-.33 0-.65-.13-.88-.35a1.18 1.18 0 0 1-.37-.85zm1.25-.4a.43.43 0 0 0-.3.12.4.4 0 0 0-.12.28v1.6a.43.43 0 0 0 .42.4h6.5c.11 0 .22-.04.3-.12a.4.4 0 0 0 .12-.28v-1.6a.4.4 0 0 0-.13-.28.43.43 0 0 0-.29-.12z",clipRule:"evenodd"})),ms||(ms=Q.createElement("path",{d:"M5.62 6a1 1 0 0 1-1 .99 1 1 0 0 1-1-1 1 1 0 0 1 2 0zm5.48 4.83H2.15c-.42 0-.67-.52-.43-.9l1.44-2.2a.5.5 0 0 1 .85 0l.95 1.43c.2.3.6.33.82.04l2.2-2.8a.5.5 0 0 1 .79 0l2.73 3.5c.29.36.05.93-.4.93m-.21 3.95H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),hs||(hs=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})))},Os=function(e){var t,n="";return e&&!e.match(/<i/)&&(e='<i class="'.concat(e,'"></i>')),e&&((t=e.split(" "))[1]=" "+t[1]+" vk_button_link_before ",n=t.join("")),n},Cs=function(e){return function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(e)||(e=e.replace(/u0022/g,'"')),e},Ps=function(e){var t=e.Image,n=e.ImageBorderColor;if(!t)return(0,z.__)("Select Image","vk-blocks");var r=function(e){var t="none";return e&&(t="1px solid ".concat(e)),t}(n);if(t&&-1===t.indexOf("{"))return(0,re.jsx)("img",{className:"vk_prContent_colImg_image",src:t,alt:(0,z.__)("Upload image","vk-blocks"),style:{border:r}});var o=JSON.parse(Cs(t));return o&&void 0!==o.sizes?(0,re.jsx)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:r}}):void 0};function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bs=Ns(Ns({},{title:{source:"html",selector:".vk_prContent_colTxt_title"},titleColor:{type:"string"},content:{source:"html",selector:".vk_prContent_colTxt_text"},contentColor:{type:"string"},url:{type:"string",default:null},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonText:{source:"html",selector:".vk_button_link_txt",default:""},buttonTarget:{type:"Boolean",default:!1},Image:{type:"string",default:null},ImageBorderColor:{type:"string",default:null},layout:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"}}),{},{titleColor:{type:"string",default:""},contentColor:{type:"string",default:""},url:{type:"string",default:""},buttonColorCustom:{type:"string",default:""},Image:{type:"string",default:"{}"},ImageBorderColor:{type:"string",default:""},fontAwesomeIconBefore:{type:"string",default:""},fontAwesomeIconAfter:{type:"string",default:""}}),Is=[{attributes:Ns(Ns({},Bs),{},{fontAwesomeIconBefore:{type:"string",default:'<i class="fas fa-user"></i>'},fontAwesomeIconAfter:{type:"string",default:'<i class="fas fa-user"></i>'}}),save:function(e){var t=e.attributes,n=t.title,r=t.titleColor,o=t.content,a=t.contentColor,i=t.url,l=t.buttonType,s=t.buttonColor,c=t.buttonColorCustom,u=t.buttonText,d=t.buttonTarget,p=t.Image,b=t.ImageBorderColor,f=t.layout,v=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,h=function(e){return"vk_prContent vk_prContent-layout-image".concat("right"===e?"Right":"Left")}(f),g=function(e){var t="vk_button";return e&&(t="".concat(t," vk_button-color-custom")),t}(c),k=function(e,t,n){var r="btn btn-block vk_button_link vk_prContent_colTxt_btn";return t?r="".concat(r," btn-primary"):t||("0"===n?r="".concat(r," btn-").concat(e):"1"===n&&(r="".concat(r," btn-outline-").concat(e))),r}(s,c,l),y=function(e,t){var n=null;return"0"===t?n={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===t&&(n={backgroundColor:"transparent",border:"1px solid "+e,color:e}),n}(c,l),_=Os(v),x=Os(m);return(0,re.jsxs)("div",Ss(Ss({},ne.useBlockProps.save({className:h})),{},{children:[(0,re.jsx)("div",{className:"col-sm-6 vk_prContent_colImg",children:(0,re.jsx)(Ps,{Image:p,ImageBorderColor:b})}),(0,re.jsxs)("div",{className:"col-sm-6 vk_prContent_colTxt",children:[(0,re.jsx)(ne.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:r}}),(0,re.jsx)(ne.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}}),u&&(0,re.jsx)("div",{className:g,children:(0,re.jsxs)("a",{href:i,className:k,rel:d?"noopener noreferrer":void 0,style:y,target:d?"_blank":void 0,children:[ye(_),(0,re.jsx)("span",{className:"vk_button_link_txt",children:u}),ye(x)]})})]})]}))}}],Ms=Is,Ds=function(e){return"vk_prContent vk_prContent-layout-image".concat("right"===e?"Right":"Left")},As=function(e){var t="vk_button";return e&&(t="".concat(t," vk_button-color-custom")),t},zs=function(e,t,n){var r="btn btn-block vk_button_link vk_prContent_colTxt_btn";return t?r="".concat(r," btn-primary"):t||("0"===n?r="".concat(r," btn-").concat(e):"1"===n&&(r="".concat(r," btn-outline-").concat(e))),r},Rs=function(e,t){var n=null;return"0"===t?n={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===t&&(n={backgroundColor:"transparent",border:"1px solid "+e,color:e}),n},Vs=function(e,t){var n,r="";return e&&!e.match(/<i/)&&(e='<i class="'.concat(e,'"></i>')),e&&((n=e.split(" "))[1]=" "+n[1]+" "+t+" ",r=n.join("")),r},Fs=function(e){var t="none";return e&&(t="1px solid ".concat(e)),t},Ls=function(e){var t,n=e.ImageBorderColor,r=e.setAttributes,o=e.Image,a=Fs(n),i={};(t=o)&&-1===t.indexOf("{")?(i.setImage=function(e){return r({Image:e.sizes.full.url})},i.value=o,i.alt=(0,z.__)("Upload image","vk-blocks"),i.getImagePlaceHolder=function(e,t){return e?(0,re.jsx)("img",{className:"vk_prContent_colImg_image",src:e,alt:(0,z.__)("Upload image","vk-blocks"),style:{border:t}}):(0,z.__)("Select image","vk-blocks")}):(i.setImage=function(e){if(e){var t={alt:e.alt,sizes:{full:{url:e.sizes.full.url}}};r({Image:JSON.stringify(t)})}},i.value=JSON.parse(Cs(o)),i.alt=i.value.alt,i.getImagePlaceHolder=function(e,t){return null===(e=JSON.parse(Cs(e)))||void 0===e.sizes?(0,z.__)("Select image","vk-blocks"):(0,re.jsx)("img",{className:"vk_prContent_colImg_image",src:e.sizes.full.url,alt:e.alt,style:{border:t}})});var l=null!=o&&""!==o&&"{}"!==o;return(0,re.jsx)(ne.MediaUpload,{onSelect:i.setImage,type:"image",value:i.value,render:function(e){var t=e.open;return(0,re.jsx)(ce.Button,{onClick:t,className:l?"image-button":"button button-large",children:i.getImagePlaceHolder(o,a)})}})},Us=function(e){var t=e.Image,n=e.ImageBorderColor;if(!t)return(0,z.__)("Select Image","vk-blocks");var r=Fs(n);if(t&&-1===t.indexOf("{"))return(0,re.jsx)("img",{className:"vk_prContent_colImg_image",src:t,alt:(0,z.__)("Upload image","vk-blocks"),style:{border:r}});var o=JSON.parse(Cs(t));return o&&void 0!==o.sizes?(0,re.jsx)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:r}}):void 0};function Hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hs(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ws(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ys,Xs,Qs,qs={apiVersion:3,name:"vk-blocks/pr-content",title:"PR Content ( not recommended )",description:"This is PR content where you can place images, headlines, text, and buttons.",category:"vk-blocks-cat",attributes:{title:{source:"html",selector:".vk_prContent_colTxt_title"},titleColor:{type:"string",default:""},content:{source:"html",selector:".vk_prContent_colTxt_text"},contentColor:{type:"string",default:""},url:{type:"string",default:""},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:""},buttonText:{source:"html",selector:".vk_button_link_txt",default:""},buttonTarget:{type:"Boolean",default:!1},Image:{type:"string",default:"{}"},ImageBorderColor:{type:"string",default:""},layout:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:"<i class='fas fa-user'></i>"},fontAwesomeIconAfter:{type:"string",default:"<i class='fas fa-user'></i>"}},textdomain:"vk-blocks",supports:{className:!0}},$s=qs.name,Js={icon:(0,re.jsx)(ws,{}),example:{attributes:{title:R,titleColor:H,content:V,contentColor:H,url:G,buttonType:"0",buttonColor:"primary",buttonColorCustom:"",buttonText:F,buttonTarget:!1,Image:U,ImageBorderColor:H,layout:"left",fontAwesomeIconBefore:L,fontAwesomeIconAfter:L}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=t.title,a=t.titleColor,i=t.content,l=t.contentColor,s=t.url,c=t.buttonType,u=t.buttonColor,d=t.buttonColorCustom,p=t.buttonText,b=t.buttonTarget,f=t.Image,v=t.ImageBorderColor,m=t.layout,h=t.fontAwesomeIconBefore,g=t.fontAwesomeIconAfter,k=vkFontAwesome.iconFamily,y=Ds(m),_=As(d),x=zs(u,d,c),j=Rs(d,c),w=Vs(h,"vk_button_link_before"),O=Vs(g,"vk_button_link_after"),C=(0,ne.useBlockProps)({className:y});return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(ne.InspectorControls,{children:[(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Color Setting","vk-blocks"),initialOpen:!1,children:[(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_titleColor-".concat(r),label:(0,z.__)("Title Color","vk-blocks"),children:(0,re.jsx)(ne.ColorPalette,{value:a,onChange:function(e){return n({titleColor:e})}})}),(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_contentColor-".concat(r),label:(0,z.__)("Content Color","vk-blocks"),children:(0,re.jsx)(ne.ColorPalette,{value:l,onChange:function(e){return n({contentColor:e})}})}),(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_image-borderColor-".concat(r),label:(0,z.__)("Image Border Color","vk-blocks"),children:(0,re.jsx)(ne.ColorPalette,{value:v,onChange:function(e){return n({ImageBorderColor:e})}})})]}),(0,re.jsxs)(ce.PanelBody,{title:(0,z.__)("Button Setting","vk-blocks"),initialOpen:!1,children:[(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_buttonText-".concat(r),label:(0,z.__)("Button Text","vk-blocks"),children:(0,re.jsx)(ce.TextControl,{value:p,onChange:function(e){return n({buttonText:e})},placeholder:"Input button text."})}),(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_linkUrl-".concat(r),label:(0,z.__)("Link URL","vk-blocks"),children:(0,re.jsx)(ce.TextControl,{value:s,onChange:function(e){return n({url:e})},placeholder:"https://vektor-inc.co.jp/"})}),(0,re.jsx)(ce.CheckboxControl,{label:(0,z.__)("Open link new tab","vk-blocks"),checked:b,onChange:function(e){return n({buttonTarget:e})}}),(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_buttonType-".concat(r),label:(0,z.__)("Button Type","vk-blocks"),children:(0,re.jsx)(ce.RadioControl,{selected:c,options:[{label:(0,z.__)("Solid","vk-blocks"),value:"0"},{label:(0,z.__)("Ghost","vk-blocks"),value:"1"}],onChange:function(e){return n({buttonType:e})}})}),(0,re.jsx)(ce.RadioControl,{label:(0,z.__)("Default Color:","vk-blocks"),selected:u,options:[{label:(0,z.__)("Primary","vk-blocks"),value:"primary"},{label:(0,z.__)("Secondary","vk-blocks"),value:"secondary"},{label:(0,z.__)("Success","vk-blocks"),value:"success"},{label:(0,z.__)("Info","vk-blocks"),value:"info"},{label:(0,z.__)("Warning","vk-blocks"),value:"warning"},{label:(0,z.__)("Danger","vk-blocks"),value:"danger"},{label:(0,z.__)("Light","vk-blocks"),value:"light"},{label:(0,z.__)("Dark","vk-blocks"),value:"dark"}],onChange:function(e){return n({buttonColor:e})}}),(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_buttonColor-".concat(r),label:(0,z.__)("Button Color","vk-blocks"),children:(0,re.jsx)(ne.ColorPalette,{value:d,onChange:function(e){return n({buttonColorCustom:e})}})}),(0,re.jsxs)(ce.BaseControl,{id:"vk_prContent_icon-".concat(r),children:[(0,re.jsx)("h4",{className:"mt-0 mb-2",children:(0,z.__)("Icon","vk-blocks")+" ( "+k+" )"}),(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_icon_beforeText".concat(r),label:(0,z.__)("Before text","vk-blocks"),children:(0,re.jsx)(Ze,{attributeName:"fontAwesomeIconBefore",attributes:t,setAttributes:n})}),(0,re.jsx)(ce.BaseControl,{id:"vk_prContent_icon_afterText-".concat(r),label:(0,z.__)("After text","vk-blocks"),children:(0,re.jsx)(Ze,{attributeName:"fontAwesomeIconAfter",attributes:t,setAttributes:n})})]})]}),(0,re.jsx)(ce.PanelBody,{title:(0,z.__)("Layout Setting","vk-blocks"),initialOpen:!1,children:(0,re.jsx)(ce.RadioControl,{label:(0,z.__)("Layout Type","vk-blocks"),selected:m,options:[{label:(0,z.__)("Right","vk-blocks"),value:"right"},{label:(0,z.__)("Left","vk-blocks"),value:"left"}],onChange:function(e){return n({layout:e})}})})]}),(0,re.jsxs)("div",Gs(Gs({},C),{},{children:[(0,re.jsx)("div",{className:"col-sm-6 vk_prContent_colImg",children:(0,re.jsx)(Ls,{ImageBorderColor:v,setAttributes:n,Image:f})}),(0,re.jsxs)("div",{className:"col-sm-6 vk_prContent_colTxt",children:[(0,re.jsx)(ne.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return n({title:e})},value:o,placeholder:(0,z.__)("Input title.","vk-blocks"),style:{color:a}}),(0,re.jsx)(ne.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return n({content:e})},value:i,placeholder:(0,z.__)("Input content.","vk-blocks"),style:{color:l}}),p&&(0,re.jsx)("div",{className:_,children:(0,re.jsxs)("a",{href:s,className:x,target:b?"_blank":void 0,style:j,rel:b?"noopener noreferrer":void 0,children:[ye(w),(0,re.jsx)("span",{className:"vk_button_link_txt",children:p}),ye(O)]})})]})]}))]})},save:function(e){var t=e.attributes,n=t.title,r=t.titleColor,o=t.content,a=t.contentColor,i=t.url,l=t.buttonType,s=t.buttonColor,c=t.buttonColorCustom,u=t.buttonText,d=t.buttonTarget,p=t.Image,b=t.ImageBorderColor,f=t.layout,v=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,h=Ds(f),g=As(c),k=zs(s,c,l),y=Rs(c,l),_=Vs(v,"vk_button_link_before"),x=Vs(m,"vk_button_link_after");return(0,re.jsxs)("div",Zs(Zs({},ne.useBlockProps.save({className:h})),{},{children:[(0,re.jsx)("div",{className:"col-sm-6 vk_prContent_colImg",children:(0,re.jsx)(Us,{Image:p,ImageBorderColor:b})}),(0,re.jsxs)("div",{className:"col-sm-6 vk_prContent_colTxt",children:[(0,re.jsx)(ne.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:r}}),(0,re.jsx)(ne.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}}),u&&(0,re.jsx)("div",{className:g,children:(0,re.jsxs)("a",{href:i,className:k,rel:d?"noopener noreferrer":void 0,style:y,target:d?"_blank":void 0,children:[ye(_),(0,re.jsx)("span",{className:"vk_button_link_txt",children:u}),ye(x)]})})]})]}))},deprecated:Ms};function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ks.apply(null,arguments)}var ec=function(e){return Q.createElement("svg",Ks({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Ys||(Ys=Q.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"})),Xs||(Xs=Q.createElement("path",{fill:"#D8141C",d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15"})),Qs||(Qs=Q.createElement("path",{fillRule:"evenodd",d:"M10.63 17.5 9.6 18.59l.13.41H23a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v12.28h1.5V1.5h21v16zm-4.76-6h-.84c-.25 0-.49.07-.7.17L2.5 9.35 5.15 6l1.02.83-2 2.52zM8.62 13a1.7 1.7 0 0 0-.43-1H16v1zm10.4-.3 2.65-3.35L19.02 6 18 6.83l2 2.52-2 2.53 1.02.83zM8 9h8v1H8zm0-3h8v1H8z",clipRule:"evenodd"})))};function tc(e){var t=e.el,n=e.attributes,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.blockId,r=e.mobile,o=e.tablet,a=e.pc,i=e.unit,l="";return null!=i&&(null==r||isNaN(r)||(l+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(r).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}")),null==o||isNaN(o)||(l+="@media (min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(o).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}")),null==a||isNaN(a)||(l+="@media (min-width: 992px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(a).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}"))),l}(n,".vk_slider_".concat(n.blockId,","));return(0,re.jsxs)(re.Fragment,{children:[t,function(){if(r)return(0,re.jsx)("style",{type:"text/css",children:r})}()]})}var nc=[tc,tc,tc,tc,function(e){var t=e.el,n=e.attributes,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.clientId,r=e.mobile,o=e.tablet,a=e.pc,i=e.unit,l="";return null!=i&&(null!=r&&(l+="@media (max-width: 576px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(r).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}")),null!=o&&(l+="@media (min-width: 577px) and (max-width: 768px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(o).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}")),null!=a&&(l+="@media (min-width: 769px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(a).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}"))),l}(n,".vk_slider_".concat(n.clientId,","));return(0,re.jsxs)(re.Fragment,{children:[t,(0,re.jsx)("style",{type:"text/css",children:r})]})},function(e){var t=e.el,n=e.attributes,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.clientId,r=e.mobile,o=e.tablet,a=e.pc,i=e.unit,l="";return null!=i&&(null!=r&&(l+="@media (max-width: 576px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(r).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}")),null!=o&&(l+="@media (min-width: 577px) and (max-width: 768px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(o).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}")),null!=a&&(l+="@media (min-width: 769px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(a).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}"))),l}(n,".vk_slider_".concat(n.clientId,","));return(0,re.jsxs)("div",{children:[t,(0,re.jsx)("style",{type:"text/css",children:r})]})},function(e){var t=e.el,n=e.attributes,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.clientId,r=e.mobile,o=e.tablet,a=e.pc,i=e.unit,l="";return null!=i&&(null!=r&&(l+="@media (max-width: 576px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(r).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}")),null!=o&&(l+="@media (min-width: 577px) and (max-width: 768px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(o).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}")),null!=a&&(l+="@media (min-width: 769px) {\n\t\t\t\t".concat(t,"\n\t\t\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\t\t\theight:").concat(a).concat(i,"!important;\n\t\t\t\t}\n\t\t\t}"))),l}(n,".vk_slider_".concat(n.clientId,","));return(0,re.jsxs)("div",{children:[t,(0,re.jsx)("style",{type:"text/css",children:r})]})},function(e){var t=e.el,n=e.attributes,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.clientId,r=e.mobile,o=e.tablet,a=e.pc,i=e.unit;return"@media (max-width: 576px) {\n\t\t".concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(r).concat(i,"!important;\n\t\t}\n\t}\n\t@media (min-width: 577px) and (max-width: 768px) {\n\t\t").concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(o).concat(i,"!important;\n\t\t}\n\t}\n\t@media (min-width: 769px) {\n\t\t").concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(a).concat(i,"!important;\n\t\t}\n\t}")}(n,".vk_slider_".concat(n.clientId,","));return(0,re.jsxs)(re.Fragment,{children:[t,(0,re.jsx)("style",{type:"text/css",children:r})]})},function(e){var t=e.el,n=e.attributes,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.clientId,r=e.mobile,o=e.tablet,a=e.pc,i=e.unit;return"@media (max-width: 576px) {\n\t\t".concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(r).concat(i,"!important;\n\t\t}\n\t}\n\t@media (min-width: 577px) and (max-width: 768px) {\n\t\t").concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(o).concat(i,"!important;\n\t\t}\n\t}\n\t@media (min-width: 769px) {\n\t\t").concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(a).concat(i,"!important;\n\t\t}\n\t}")}(n,".vk_slider_".concat(n.clientId,","));return(0,re.jsxs)(re.Fragment,{children:[t,(0,re.jsx)("style",{type:"text/css",children:r})]})},function(e){var t=e.el,n=e.attributes,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.clientId,r=e.mobile,o=e.tablet,a=e.pc,i=e.unit;return"@media (max-width: 576px) {\n\t\t".concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(r).concat(i,"!important;\n\t\t}\n\t}\n\t@media (min-width: 577px) and (max-width: 768px) {\n\t\t").concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(o).concat(i,"!important;\n\t\t}\n\t}\n\t@media (min-width: 769px) {\n\t\t").concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(a).concat(i,"!important;\n\t\t}\n\t}")}(n,".vk_slider_".concat(n.clientId,","));return(0,re.jsxs)(re.Fragment,{children:[t,(0,re.jsx)("style",{type:"text/css",children:r})]})},function(e){var t=e.el,n=e.attributes,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.clientId,r=e.mobile,o=e.tablet,a=e.pc,i=e.unit;return"@media (max-width: 576px) {\n\t\t".concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(r).concat(i,"!important;\n\t\t}\n\t}\n\t@media (min-width: 577px) and (max-width: 768px) {\n\t\t").concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(o).concat(i,"!important;\n\t\t}\n\t}\n\t@media (min-width: 769px) {\n\t\t").concat(t,"\n\t\t.vk_slider_").concat(n," .vk_slider_item{\n\t\t\theight:").concat(a).concat(i,"!important;\n\t\t}\n\t}")}(n,".vk_slider_".concat(n.clientId,","));return(0,re.jsxs)(re.Fragment,{children:[t,(0,re.jsx)("style",{type:"text/css",children:r})]})}];function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_c(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pc={unit:{type:"string",default:"px"},pc:{type:"number",default:600},tablet:{type:"number",default:600},mobile:{type:"number",default:600},autoPlay:{type:"boolean",default:!0},autoPlayDelay:{type:"number",default:2500},pagination:{type:"boolean",default:!0},clientId:{type:"string",default:""},width:{type:"string",default:""},loop:{type:"boolean",default:!0},effect:{type:"string",default:"slide"},speed:{type:"number",default:300}},Tc=Cc(Cc({},Pc),{},{slidesPerView:{type:"number",default:1},slidesPerGroup:{type:"number",default:1}}),Sc=Cc(Cc({},Tc),{},{speed:{type:"number",default:500}}),Ec=Cc(Cc({},Sc),{},{autoPlayStop:{type:"boolean",default:!1},pagination:{type:"string",default:"bullets"},clientId:{type:"string"}}),Nc=Cc(Cc({},Ec),{},{pc:{type:"number"},tablet:{type:"number"},mobile:{type:"number"}}),Bc=Cc(Cc({},Nc),{},{navigationPosition:{type:"string",default:"mobile-bottom"}}),Ic=Cc(Cc({},Bc),{},{blockId:{type:"string"}}),Mc=Cc(Cc({},Ic),{},{slidesPerViewMobile:{type:"number",default:1},slidesPerViewTablet:{type:"number",default:1},slidesPerViewPC:{type:"number",default:1},slidesPerGroup:{type:"string",default:"one-by-one"}}),Dc=Cc(Cc({},Mc),{},{centeredSlides:{type:"boolean",default:!1},editorMode:{type:"string",default:"default"}}),Ac=[{attributes:Cc(Cc({},Dc),{},{width:{type:"string"}}),save:function(e){var t=e.attributes,n=t.pagination,r=t.blockId,o=t.width,a=t.autoPlay,i=t.autoPlayStop,l=t.autoPlayDelay,s=t.loop,c=t.effect,u=t.speed,d=t.slidesPerViewMobile,p=t.slidesPerViewTablet,b=t.slidesPerViewPC,f=t.slidesPerGroup,v=t.navigationPosition,m={autoPlay:a,autoPlayStop:i,autoPlayDelay:l,pagination:n,blockId:r,width:o,loop:s,effect:c,speed:u,slidesPerViewMobile:d,slidesPerViewTablet:p,slidesPerViewPC:b,slidesPerGroup:f,centeredSlides:t.centeredSlides},h="";"full"===o?h=" alignfull":"wide"===o&&(h=" alignwide");var g="";"hide"!==n&&(g=(0,re.jsx)("div",{className:"swiper-pagination swiper-pagination-".concat(n)}));var k="",y="";"hide"!==v&&(k=(0,re.jsx)("div",{className:"swiper-button-next swiper-button-".concat(v)}),y=(0,re.jsx)("div",{className:"swiper-button-prev swiper-button-".concat(v)}));var _=ne.useBlockProps.save({className:"swiper swiper-container vk_slider vk_slider_".concat(r).concat(h)});return(0,re.jsxs)("div",oc(oc({},_),{},{"data-vkb-slider":JSON.stringify(m),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),k,y,g]}))}},{attributes:Dc,save:function(e){var t=e.attributes,n=t.pagination,r=t.blockId,o=t.width,a=t.autoPlay,i=t.autoPlayStop,l=t.autoPlayDelay,s=t.loop,c=t.effect,u=t.speed,d=t.slidesPerViewMobile,p=t.slidesPerViewTablet,b=t.slidesPerViewPC,f=t.slidesPerGroup,v=t.navigationPosition,m={autoPlay:a,autoPlayStop:i,autoPlayDelay:l,pagination:n,blockId:r,width:o,loop:s,effect:c,speed:u,slidesPerViewMobile:d,slidesPerViewTablet:p,slidesPerViewPC:b,slidesPerGroup:f,centeredSlides:t.centeredSlides},h="";"full"===o?h=" alignfull":"wide"===o&&(h=" alignwide");var g="";"hide"!==n&&(g=(0,re.jsx)("div",{className:"swiper-pagination swiper-pagination-".concat(n)}));var k="",y="";"hide"!==v&&(k=(0,re.jsx)("div",{className:"swiper-button-next swiper-button-".concat(v)}),y=(0,re.jsx)("div",{className:"swiper-button-prev swiper-button-".concat(v)}));var _=ne.useBlockProps.save({className:"swiper swiper-container vk_slider vk_slider_".concat(r).concat(h)});return(0,re.jsxs)("div",ic(ic({},_),{},{"data-vkb-slider":JSON.stringify(m),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),k,y,g]}))}},{attributes:Mc,save:function(e){var t=e.attributes,n=t.pagination,r=t.blockId,o=t.width,a=t.autoPlay,i=t.autoPlayStop,l=t.autoPlayDelay,s=t.loop,c=t.effect,u=t.speed,d=t.slidesPerViewMobile,p=t.slidesPerViewTablet,b=t.slidesPerViewPC,f=t.slidesPerGroup,v=t.navigationPosition,m={autoPlay:a,autoPlayStop:i,autoPlayDelay:l,pagination:n,blockId:r,width:o,loop:s,effect:c,speed:u,slidesPerViewMobile:d,slidesPerViewTablet:p,slidesPerViewPC:b,slidesPerGroup:f},h="";"full"===o?h=" alignfull":"wide"===o&&(h=" alignwide");var g="";"hide"!==n&&(g=(0,re.jsx)("div",{className:"swiper-pagination swiper-pagination-".concat(n)}));var k="",y="";"hide"!==v&&(k=(0,re.jsx)("div",{className:"swiper-button-next swiper-button-".concat(v)}),y=(0,re.jsx)("div",{className:"swiper-button-prev swiper-button-".concat(v)}));var _=ne.useBlockProps.save({className:"swiper swiper-container vk_slider vk_slider_".concat(r).concat(h)});return(0,re.jsxs)("div",sc(sc({},_),{},{"data-vkb-slider":JSON.stringify(m),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),k,y,g]}))}},{attributes:Ic,save:function(e){var t=e.attributes,n=t.pagination,r=t.blockId,o=t.width,a=t.autoPlay,i=t.autoPlayStop,l=t.autoPlayDelay,s=t.loop,c=t.effect,u=t.speed,d=t.slidesPerView,p=t.slidesPerGroup,b=t.navigationPosition;void 0===d&&(d=1),void 0===p&&(p=1);var f={autoPlay:a,autoPlayStop:i,autoPlayDelay:l,pagination:n,blockId:r,width:o,loop:s,effect:c,speed:u,slidesPerView:d,slidesPerGroup:p},v="";"full"===o?v=" alignfull":"wide"===o&&(v=" alignwide");var m="";"hide"!==n&&(m=(0,re.jsx)("div",{className:"swiper-pagination swiper-pagination-".concat(n)}));var h="",g="";"hide"!==b&&(h=(0,re.jsx)("div",{className:"swiper-button-next swiper-button-".concat(b)}),g=(0,re.jsx)("div",{className:"swiper-button-prev swiper-button-".concat(b)}));var k=ne.useBlockProps.save({className:"swiper-container vk_slider vk_slider_".concat(r).concat(v)});return(0,re.jsxs)("div",uc(uc({},k),{},{"data-vkb-slider":JSON.stringify(f),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),h,g,m]}))}},{attributes:Bc,save:function(e){var t=e.attributes,n=t.pagination,r=t.clientId,o=t.width,a=t.autoPlay,i=t.autoPlayStop,l=t.autoPlayDelay,s=t.loop,c=t.effect,u=t.speed,d=t.slidesPerView,p=t.slidesPerGroup,b=t.navigationPosition;void 0===d&&(d=1),void 0===p&&(p=1);var f,v={autoPlay:a,autoPlayStop:i,autoPlayDelay:l,pagination:n,clientId:r,width:o,loop:s,effect:c,speed:u,slidesPerView:d,slidesPerGroup:p};f="full"===o?"vk_width-full":"wide"===o?"vk_width-wide":"vk_width";var m="";"hide"!==n&&(m=(0,re.jsx)("div",{className:"swiper-pagination swiper-pagination-".concat(n)}));var h="",g="";"hide"!==b&&(h=(0,re.jsx)("div",{className:"swiper-button-next swiper-button-".concat(b)}),g=(0,re.jsx)("div",{className:"swiper-button-prev swiper-button-".concat(b)}));var k=ne.useBlockProps.save({className:"swiper-container vk_slider vk_slider_".concat(r," ").concat(f)});return(0,re.jsxs)("div",pc(pc({},k),{},{"data-vkb-slider":JSON.stringify(v),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),h,g,m]}))}},{attributes:Bc,save:function(e){var t=e.attributes,n=t.pagination,r=t.clientId,o=t.width,a=t.autoPlay,i=t.autoPlayStop,l=t.autoPlayDelay,s=t.loop,c=t.effect,u=t.speed,d=t.slidesPerView,p=t.slidesPerGroup,b=t.navigationPosition;void 0===d&&(d=1),void 0===p&&(p=1);var f,v={autoPlay:a,autoPlayStop:i,autoPlayDelay:l,pagination:n,clientId:r,width:o,loop:s,effect:c,speed:u,slidesPerView:d,slidesPerGroup:p};f="full"===o?"vk_width-full":"wide"===o?"vk_width-wide":"vk_width";var m="";"hide"!==n&&(m=(0,re.jsx)("div",{className:"swiper-pagination swiper-pagination-".concat(n)}));var h="",g="";"hide"!==b&&(h=(0,re.jsx)("div",{className:"swiper-button-next swiper-button-".concat(b)}),g=(0,re.jsx)("div",{className:"swiper-button-prev swiper-button-".concat(b)}));var k=ne.useBlockProps.save({className:"swiper-container vk_slider vk_slider_".concat(r," ").concat(f)});return(0,re.jsxs)("div",fc(fc({},k),{},{"data-vkb-slider":JSON.stringify(v),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),h,g,m]}))}},{attributes:Nc,save:function(e){var t=e.attributes,n=t.pagination,r=t.clientId,o=t.width,a=t.autoPlay,i=t.autoPlayStop,l=t.autoPlayDelay,s=t.loop,c=t.effect,u=t.speed,d=t.slidesPerView,p=t.slidesPerGroup;void 0===d&&(d=1),void 0===p&&(p=1);var b,f={autoPlay:a,autoPlayStop:i,autoPlayDelay:l,pagination:n,clientId:r,width:o,loop:s,effect:c,speed:u,slidesPerView:d,slidesPerGroup:p};b="full"===o?"vk_width-full":"wide"===o?"vk_width-wide":"vk_width";var v="";"hide"!==n&&(v=(0,re.jsx)("div",{className:"swiper-pagination swiper-pagination-".concat(n)}));var m=ne.useBlockProps.save({className:"swiper-container vk_slider vk_slider_".concat(r," ").concat(b)});return(0,re.jsxs)("div",mc(mc({},m),{},{"data-vkb-slider":JSON.stringify(f),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"swiper-button-next"}),(0,re.jsx)("div",{className:"swiper-button-prev"}),v]}))}},{attributes:Ec,save:function(e){var t,n=e.attributes,r=n.pagination,o=n.clientId,a=n.width,i=n.autoPlay,l=n.autoPlayStop,s=n.autoPlayDelay,c=n.loop,u=n.effect,d=n.speed,p=n.slidesPerView,b=n.slidesPerGroup;void 0===p&&(p=1),void 0===b&&(b=1);var f={autoPlay:i,autoPlayStop:l,autoPlayDelay:s,pagination:r,clientId:o,width:a,loop:c,effect:u,speed:d,slidesPerView:p,slidesPerGroup:b};t="full"===a?"vk_width-full":"wide"===a?"vk_width-wide":"vk_width";var v="";"hide"!==r&&(v=(0,re.jsx)("div",{className:"swiper-pagination swiper-pagination-".concat(r)}));var m=ne.useBlockProps.save({className:"swiper-container vk_slider vk_slider_".concat(o," ").concat(t)});return(0,re.jsxs)("div",gc(gc({},m),{},{"data-vkb-slider":JSON.stringify(f),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"swiper-button-next"}),(0,re.jsx)("div",{className:"swiper-button-prev"}),v]}))}},{attributes:Sc,save:function(e){var t,n=e.attributes,r=n.pagination,o=n.clientId,a=n.width,i=n.autoPlay,l=n.autoPlayDelay,s=n.loop,c=n.effect,u=n.speed,d=n.slidesPerView,p=n.slidesPerGroup;void 0===d&&(d=1),void 0===p&&(p=1);var b={autoPlay:i,autoPlayDelay:l,pagination:r,clientId:o,width:a,loop:s,effect:c,speed:u,slidesPerView:d,slidesPerGroup:p};t="full"===a?"vk_width-full":"wide"===a?"vk_width-wide":"vk_width";var f=ne.useBlockProps.save({className:"swiper-container vk_slider vk_slider_".concat(o," ").concat(t)});return(0,re.jsxs)("div",yc(yc({},f),{},{"data-vkb-slider":JSON.stringify(b),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"swiper-button-next"}),(0,re.jsx)("div",{className:"swiper-button-prev"}),r&&(0,re.jsx)("div",{className:"swiper-pagination"})]}))}},{attributes:Tc,save:function(e){var t,n=e.attributes,r=n.pagination,o=n.clientId,a=n.width,i={autoPlay:n.autoPlay,autoPlayDelay:n.autoPlayDelay,pagination:r,clientId:o,width:a,loop:n.loop,effect:n.effect,speed:n.speed};t="full"===a?"vk_width-full":"wide"===a?"vk_width-wide":"vk_width";var l=ne.useBlockProps.save({className:"swiper-container vk_slider vk_slider_".concat(o," ").concat(t)});return(0,re.jsxs)("div",xc(xc({},l),{},{"data-vkb-slider":JSON.stringify(i),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"swiper-button-next"}),(0,re.jsx)("div",{className:"swiper-button-prev"}),r&&(0,re.jsx)("div",{className:"swiper-pagination"})]}))}},{attributes:Pc,save:function(e){var t,n=e.attributes,r=n.pagination,o=n.clientId,a=n.width,i={autoPlay:n.autoPlay,autoPlayDelay:n.autoPlayDelay,pagination:r,clientId:o,width:a,loop:n.loop,effect:n.effect,speed:n.speed};t="full"===a?"vk_width-full":"wide"===a?"vk_width-wide":"vk_width";var l=ne.useBlockProps.save({className:"swiper-container vk_slider vk_slider_".concat(o," ").concat(t)});return(0,re.jsxs)("div",wc(wc({},l),{},{"data-vkb-slider":JSON.stringify(i),children:[(0,re.jsx)("div",{className:"swiper-wrapper",children:(0,re.jsx)(ne.InnerBlocks.Content,{})}),(0,re.jsx)("div",{className:"swiper-button-next"}),(0,re.jsx)("div",{className:"swiper-button-prev"}),r&&(0,re.jsx)("div",{className:"swiper-pagination"})]}))}}],zc=Ac,Rc=function(e){var t=e.initialFixedTable,n=e.label,r=e.helpYes,o=e.helpNo,a=e.schema,i=e.setAttributes,l=ue((0,de.useState)(t),2),s=l[0],c=l[1];return(0,re.jsx)(ce.ToggleControl,{label:n,help:s?r:o,checked:s,onChange:function(){c(!s),i(w({},a,!s))}})};function Vc(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Fc(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:Vc(t[n])&&Vc(e[n])&&Object.keys(t[n]).length>0&&Fc(e[n],t[n])}))}const Lc={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Uc(){const e="undefined"!=typeof document?document:{};return Fc(e,Lc),e}const Hc={document:Lc,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Gc(){const e="undefined"!=typeof window?window:{};return Fc(e,Hc),e}function Wc(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function Zc(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function Yc(){return Date.now()}function Xc(e,t){void 0===t&&(t="x");const n=Gc();let r,o,a;const i=function(e){const t=Gc();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(o=i.transform||i.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map((e=>e.replace(",","."))).join(", ")),a=new n.WebKitCSSMatrix("none"===o?"":o)):(a=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=a.toString().split(",")),"x"===t&&(o=n.WebKitCSSMatrix?a.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(o=n.WebKitCSSMatrix?a.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),o||0}function Qc(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function qc(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const o=r<0||arguments.length<=r?void 0:arguments[r];if(null!=o&&(n=o,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const n=Object.keys(Object(o)).filter((e=>t.indexOf(e)<0));for(let t=0,r=n.length;t<r;t+=1){const r=n[t],a=Object.getOwnPropertyDescriptor(o,r);void 0!==a&&a.enumerable&&(Qc(e[r])&&Qc(o[r])?o[r].__swiper__?e[r]=o[r]:qc(e[r],o[r]):!Qc(e[r])&&Qc(o[r])?(e[r]={},o[r].__swiper__?e[r]=o[r]:qc(e[r],o[r])):e[r]=o[r])}}}var n;return e}function $c(e,t,n){e.style.setProperty(t,n)}function Jc(e){let{swiper:t,targetPosition:n,side:r}=e;const o=Gc(),a=-t.translate;let i,l=null;const s=t.params.speed;t.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(t.cssModeFrameID);const c=n>a?"next":"prev",u=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,d=()=>{i=(new Date).getTime(),null===l&&(l=i);const e=Math.max(Math.min((i-l)/s,1),0),c=.5-Math.cos(e*Math.PI)/2;let p=a+c*(n-a);if(u(p,n)&&(p=n),t.wrapperEl.scrollTo({[r]:p}),u(p,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:p})})),void o.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=o.requestAnimationFrame(d)};d()}function Kc(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function eu(e,t){void 0===t&&(t="");const n=Gc(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter((e=>e.matches(t))):r}function tu(e){try{return void console.warn(e)}catch(e){}}function nu(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Wc(t)),n}function ru(e){const t=Gc(),n=Uc(),r=e.getBoundingClientRect(),o=n.body,a=e.clientTop||o.clientTop||0,i=e.clientLeft||o.clientLeft||0,l=e===t?t.scrollY:e.scrollTop,s=e===t?t.scrollX:e.scrollLeft;return{top:r.top+l-a,left:r.left+s-i}}function ou(e,t){return Gc().getComputedStyle(e,null).getPropertyValue(t)}function au(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function iu(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function lu(e,t){t&&e.addEventListener("transitionend",(function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}))}function su(e,t,n){const r=Gc();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function cu(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function uu(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let du,pu,bu;function fu(){return du||(du=function(){const e=Gc(),t=Uc();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),du}function vu(e){return void 0===e&&(e={}),pu||(pu=function(e){let{userAgent:t}=void 0===e?{}:e;const n=fu(),r=Gc(),o=r.navigator.platform,a=t||r.navigator.userAgent,i={ios:!1,android:!1},l=r.screen.width,s=r.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),b="Win32"===o;let f="MacIntel"===o;return!u&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${s}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),f=!1),c&&!b&&(i.os="android",i.android=!0),(u||p||d)&&(i.os="ios",i.ios=!0),i}(e)),pu}var mu={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const o=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][o](t)})),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function o(){r.off(e,o),o.__emitterProxy&&delete o.__emitterProxy;for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];t.apply(r,a)}return o.__emitterProxy=t,r.on(e,o,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((r,o)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(o,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,r;for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],n=a.slice(1,a.length),r=e):(t=a[0].events,n=a[0].data,r=a[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(r,n)}))})),e}};const hu=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},gu=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},ku=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},yu=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},_u=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),o=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=o,a=[n-t];return a.push(...Array.from({length:t}).map(((e,t)=>n+r+t))),void e.slides.forEach(((t,n)=>{a.includes(t.column)&&yu(e,n)}))}const a=o+r-1;if(e.params.rewind||e.params.loop)for(let r=o-t;r<=a+t;r+=1){const t=(r%n+n)%n;(t<o||t>a)&&yu(e,t)}else for(let r=Math.max(o-t,0);r<=Math.min(a+t,n-1);r+=1)r!==o&&(r>a||r<o)&&yu(e,r)};var xu={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(ou(r,"padding-left")||0,10)-parseInt(ou(r,"padding-right")||0,10),n=n-parseInt(ou(r,"padding-top")||0,10)-parseInt(ou(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:r,slidesEl:o,size:a,rtlTranslate:i,wrongRTL:l}=e,s=e.virtual&&n.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,u=eu(o,`.${e.params.slideClass}, swiper-slide`),d=s?e.virtual.slides.length:u.length;let p=[];const b=[],f=[];let v=n.slidesOffsetBefore;"function"==typeof v&&(v=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const h=e.snapGrid.length,g=e.slidesGrid.length;let k=n.spaceBetween,y=-v,_=0,x=0;if(void 0===a)return;"string"==typeof k&&k.indexOf("%")>=0?k=parseFloat(k.replace("%",""))/100*a:"string"==typeof k&&(k=parseFloat(k)),e.virtualSize=-k,u.forEach((e=>{i?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&($c(r,"--swiper-centered-offset-before",""),$c(r,"--swiper-centered-offset-after",""));const j=n.grid&&n.grid.rows>1&&e.grid;let w;j?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();const O="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let r=0;r<d;r+=1){let o;if(w=0,u[r]&&(o=u[r]),j&&e.grid.updateSlide(r,o,u),!u[r]||"none"!==ou(o,"display")){if("auto"===n.slidesPerView){O&&(u[r].style[e.getDirectionLabel("width")]="");const a=getComputedStyle(o),i=o.style.transform,l=o.style.webkitTransform;if(i&&(o.style.transform="none"),l&&(o.style.webkitTransform="none"),n.roundLengths)w=e.isHorizontal()?su(o,"width",!0):su(o,"height",!0);else{const e=t(a,"width"),n=t(a,"padding-left"),r=t(a,"padding-right"),i=t(a,"margin-left"),l=t(a,"margin-right"),s=a.getPropertyValue("box-sizing");if(s&&"border-box"===s)w=e+i+l;else{const{clientWidth:t,offsetWidth:a}=o;w=e+n+r+i+l+(a-t)}}i&&(o.style.transform=i),l&&(o.style.webkitTransform=l),n.roundLengths&&(w=Math.floor(w))}else w=(a-(n.slidesPerView-1)*k)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),u[r]&&(u[r].style[e.getDirectionLabel("width")]=`${w}px`);u[r]&&(u[r].swiperSlideSize=w),f.push(w),n.centeredSlides?(y=y+w/2+_/2+k,0===_&&0!==r&&(y=y-a/2-k),0===r&&(y=y-a/2-k),Math.abs(y)<.001&&(y=0),n.roundLengths&&(y=Math.floor(y)),x%n.slidesPerGroup==0&&p.push(y),b.push(y)):(n.roundLengths&&(y=Math.floor(y)),(x-Math.min(e.params.slidesPerGroupSkip,x))%e.params.slidesPerGroup==0&&p.push(y),b.push(y),y=y+w+k),e.virtualSize+=w+k,_=w,x+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+m,i&&l&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+k}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+k}px`),j&&e.grid.updateWrapperSize(w,p),!n.centeredSlides){const t=[];for(let r=0;r<p.length;r+=1){let o=p[r];n.roundLengths&&(o=Math.floor(o)),p[r]<=e.virtualSize-a&&t.push(o)}p=t,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(s&&n.loop){const t=f[0]+k;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),o=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)p.push(p[p.length-1]+o)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),b.push(b[b.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==k){const t=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");u.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==u.length-1)).forEach((e=>{e.style[t]=`${k}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(k||0)})),e-=k;const t=e>a?e-a:0;p=p.map((e=>e<=0?-v:e>t?t+m:e))}if(n.centerInsufficientSlides){let e=0;f.forEach((t=>{e+=t+(k||0)})),e-=k;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<a){const n=(a-e-t)/2;p.forEach(((e,t)=>{p[t]=e-n})),b.forEach(((e,t)=>{b[t]=e+n}))}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:b,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){$c(r,"--swiper-centered-offset-before",-p[0]+"px"),$c(r,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==c&&e.emit("slidesLengthChange"),p.length!==h&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),b.length!==g&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(s||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let o,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const i=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){const e=t.activeIndex+o;if(e>t.slides.length&&!r)break;n.push(i(e))}else n.push(i(t.activeIndex));for(o=0;o<n.length;o+=1)if(void 0!==n[o]){const e=n[o].offsetHeight;a=e>a?e:a}(a||0===a)&&(t.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:o,snapGrid:a}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let i=-e;o&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=n.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<r.length;e+=1){const s=r[e];let c=s.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(i+(n.centeredSlides?t.minTranslate():0)-c)/(s.swiperSlideSize+l),d=(i-a[0]+(n.centeredSlides?t.minTranslate():0)-c)/(s.swiperSlideSize+l),p=-(i-c),b=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],v=p>=0&&p<t.size-1||b>1&&b<=t.size||p<=0&&b>=t.size;v&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(e)),hu(s,v,n.slideVisibleClass),hu(s,f,n.slideFullyVisibleClass),s.progress=o?-u:u,s.originalProgress=o?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:o,isBeginning:a,isEnd:i,progressLoop:l}=t;const s=a,c=i;if(0===r)o=0,a=!0,i=!0;else{o=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;a=n||o<=0,i=l||o>=1,n&&(o=0),l&&(o=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),o=t.slidesGrid[n],a=t.slidesGrid[r],i=t.slidesGrid[t.slidesGrid.length-1],s=Math.abs(e);l=s>=o?(s-o)/i:(s+i-a)/i,l>1&&(l-=1)}Object.assign(t,{progress:o,progressLoop:l,isBeginning:a,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!s&&t.emit("reachBeginning toEdge"),i&&!c&&t.emit("reachEnd toEdge"),(s&&!a||c&&!i)&&t.emit("fromEdge"),t.emit("progress",o)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:o}=e,a=e.virtual&&n.virtual.enabled,i=e.grid&&n.grid&&n.grid.rows>1,l=e=>eu(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let s,c,u;if(a)if(n.loop){let t=o-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),s=l(`[data-swiper-slide-index="${t}"]`)}else s=l(`[data-swiper-slide-index="${o}"]`);else i?(s=t.find((e=>e.column===o)),u=t.find((e=>e.column===o+1)),c=t.find((e=>e.column===o-1))):s=t[o];s&&(i||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(s,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(s,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{gu(e,e===s,n.slideActiveClass),gu(e,e===u,n.slideNextClass),gu(e,e===c,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:o,activeIndex:a,realIndex:i,snapIndex:l}=t;let s,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let o;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?o=e:r>=t[e]&&r<t[e+1]&&(o=e+1):r>=t[e]&&(o=e);return n.normalizeSlideIndex&&(o<0||void 0===o)&&(o=0),o}(t)),r.indexOf(n)>=0)s=r.indexOf(n);else{const e=Math.min(o.slidesPerGroupSkip,c);s=e+Math.floor((c-e)/o.slidesPerGroup)}if(s>=r.length&&(s=r.length-1),c===a&&!t.params.loop)return void(s!==l&&(t.snapIndex=s,t.emit("snapIndexChange")));if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&o.grid&&o.grid.rows>1;let p;if(t.virtual&&o.virtual.enabled&&o.loop)p=u(c);else if(d){const e=t.slides.find((e=>e.column===c));let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/o.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:l,snapIndex:s,previousRealIndex:i,realIndex:p,previousIndex:a,activeIndex:c}),t.initialized&&_u(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let o=e.closest(`.${r.slideClass}, swiper-slide`);!o&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!o&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(o=e)}));let a,i=!1;if(o)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===o){i=!0,a=e;break}if(!o||!i)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=o,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},ju={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,wrapperEl:o}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let a=Xc(o,e);return a+=this.cssOverflowAdjustment(),n&&(a=-a),a||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:o,wrapperEl:a,progress:i}=n;let l,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,o.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,o.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-c:o.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();l=0===u?0:(e-n.minTranslate())/u,l!==i&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,o){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const a=this,{params:i,wrapperEl:l}=a;if(a.animating&&i.preventInteractionOnTransition)return!1;const s=a.minTranslate(),c=a.maxTranslate();let u;if(u=r&&e>s?s:r&&e<c?c:e,a.updateProgress(u),i.cssMode){const e=a.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-u;else{if(!a.support.smoothScroll)return Jc({swiper:a,targetPosition:-u,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(u),n&&(a.emit("beforeTransitionStart",t,o),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit("beforeTransitionStart",t,o),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}};function wu(e){let{swiper:t,runCallbacks:n,direction:r,step:o}=e;const{activeIndex:a,previousIndex:i}=t;let l=r;if(l||(l=a>i?"next":a<i?"prev":"reset"),t.emit(`transition${o}`),n&&a!==i){if("reset"===l)return void t.emit(`slideResetTransition${o}`);t.emit(`slideChangeTransition${o}`),"next"===l?t.emit(`slideNextTransition${o}`):t.emit(`slidePrevTransition${o}`)}}var Ou={setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),wu({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),wu({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},Cu={slideTo:function(e,t,n,r,o){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const a=this;let i=e;i<0&&(i=0);const{params:l,snapGrid:s,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:b,enabled:f}=a;if(!f&&!r&&!o||a.destroyed||a.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);const v=Math.min(a.params.slidesPerGroupSkip,i);let m=v+Math.floor((i-v)/a.params.slidesPerGroup);m>=s.length&&(m=s.length-1);const h=-s[m];if(l.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*h),n=Math.floor(100*c[e]),r=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<r-(r-n)/2?i=e:t>=n&&t<r&&(i=e+1):t>=n&&(i=e)}if(a.initialized&&i!==d){if(!a.allowSlideNext&&(p?h>a.translate&&h>a.minTranslate():h<a.translate&&h<a.minTranslate()))return!1;if(!a.allowSlidePrev&&h>a.translate&&h>a.maxTranslate()&&(d||0)!==i)return!1}let g;i!==(u||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(h),g=i>d?"next":i<d?"prev":"reset";const k=a.virtual&&a.params.virtual.enabled;if((!k||!o)&&(p&&-h===a.translate||!p&&h===a.translate))return a.updateActiveIndex(i),l.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==l.effect&&a.setTranslate(h),"reset"!==g&&(a.transitionStart(n,g),a.transitionEnd(n,g)),!1;if(l.cssMode){const e=a.isHorizontal(),n=p?h:-h;if(0===t)k&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),k&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{b[e?"scrollLeft":"scrollTop"]=n}))):b[e?"scrollLeft":"scrollTop"]=n,k&&requestAnimationFrame((()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1}));else{if(!a.support.smoothScroll)return Jc({swiper:a,targetPosition:n,side:e?"left":"top"}),!0;b.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(h),a.updateActiveIndex(i),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,g),0===t?a.transitionEnd(n,g):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,g))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;if(o.destroyed)return;void 0===t&&(t=o.params.speed);const a=o.grid&&o.params.grid&&o.params.grid.rows>1;let i=e;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)i+=o.virtual.slidesBefore;else{let e;if(a){const t=i*o.params.grid.rows;e=o.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=o.getSlideIndexByData(i);const t=a?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:n}=o.params;let l=o.params.slidesPerView;"auto"===l?l=o.slidesPerViewDynamic():(l=Math.ceil(parseFloat(o.params.slidesPerView,10)),n&&l%2==0&&(l+=1));let s=t-e<l;if(n&&(s=s||e<Math.ceil(l/2)),r&&n&&"auto"!==o.params.slidesPerView&&!a&&(s=!1),s){const r=n?e<o.activeIndex?"prev":"next":e-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?o.realIndex:void 0})}if(a){const e=i*o.params.grid.rows;i=o.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else i=o.getSlideIndexByData(i)}return requestAnimationFrame((()=>{o.slideTo(i,t,n,r)})),o},slideNext:function(e,t,n){void 0===t&&(t=!0);const r=this,{enabled:o,params:a,animating:i}=r;if(!o||r.destroyed)return r;void 0===e&&(e=r.params.speed);let l=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const s=r.activeIndex<a.slidesPerGroupSkip?1:l,c=r.virtual&&a.virtual.enabled;if(a.loop){if(i&&!c&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+s,e,t,n)})),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+s,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const r=this,{params:o,snapGrid:a,slidesGrid:i,rtlTranslate:l,enabled:s,animating:c}=r;if(!s||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&o.virtual.enabled;if(o.loop){if(c&&!u&&o.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(l?r.translate:-r.translate),b=a.map((e=>d(e)));let f=a[b.indexOf(p)-1];if(void 0===f&&o.cssMode){let e;a.forEach(((t,n)=>{p>=t&&(e=n)})),void 0!==e&&(f=a[e>0?e-1:e])}let v=0;if(void 0!==f&&(v=i.indexOf(f),v<0&&(v=r.activeIndex-1),"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),o.rewind&&r.isBeginning){const o=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(o,e,t,n)}return o.loop&&0===r.activeIndex&&o.cssMode?(requestAnimationFrame((()=>{r.slideTo(v,e,t,n)})),!0):r.slideTo(v,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===t&&(t