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