(()=>{"use strict";var t={1669(t){t.exports=jQuery}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n(1669),i=n.n(r);document.addEventListener("DOMContentLoaded",function(){o.init()});const o={isInit:!1,init:function(){this.holder=document.querySelectorAll(".qi-block-tabs-horizontal"),this.holder.length&&[...this.holder].map(t=>{o.initItem(t)})},getRealCurrentItem:function(t){return"string"==typeof t&&""!==t&&(t=qiBlocksEditor.qodefGetCurrentBlockElement.get(t)),t},initItem:function(t,e){if(!(t=o.getRealCurrentItem(t)))return;const n=t.querySelectorAll(".qodef-tabs-horizontal-content");n.length&&n.forEach((e,n)=>{n+=1;let r=e.getAttribute("id"),i=t.querySelector(".qodef-tabs-horizontal-navigation li:nth-child("+n+") a"),o=i.getAttribute("href");r="#"+r,r.indexOf(o)>-1&&i.setAttribute("href",r)}),t.classList.contains("qodef--init")?e&&o.isInit&&(o.isInit.tabs("destroy"),o.isInit=i()(t).tabs()):(t.classList.add("qodef--init"),o.isInit=i()(t).tabs())}}})();