!function(e){var t={};function s(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=t,s.d=function(e,t,a){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(a,n,function(t){return e[t]}.bind(null,n));return a},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=35)}({35:function(e,t){!function(e,t){e.behaviors.tabs={attach(e){console.log("Loaded -- Tabs behaviour");const s=document.querySelector(".tbn-c:not(.tabs-added)"),a=document.querySelector(".tbw-c:not(.tabs-added)");if(s&&a){s.classList.add("tabs-added"),a.classList.add("tabs-added");const e=s.querySelectorAll("a.nav-link"),t=a.querySelectorAll(".tab-pane");t.forEach(e=>{e.classList.add("shrink")}),e.forEach(s=>{const a=s.closest(".tabs-added");s.dataset.isOpen="0",s.addEventListener("click",(function(){e.forEach(e=>{e!==s&&(e.dataset.isOpen="0")});const n=parseInt(s.dataset.isOpen,10);if(n&&s.classList.contains("active")){s.dataset.isOpen="0",s.classList.remove("active");const e=s.dataset.bsTarget,n=document.querySelector(e);n&&(n.classList.remove("show"),t.forEach(e=>{e.classList.add("shrink")}),a&&a.classList.remove("tabs-active"),setTimeout(()=>{n.classList.remove("active")},300))}if(!n&&s.classList.contains("active")){s.dataset.isOpen="1";const e=s.dataset.bsTarget,t=document.querySelector(e);t&&t.classList.remove("shrink"),a&&a.classList.add("tabs-active")}}),!1)})}const n=document.querySelectorAll(".tb-clsr");t("tabHiders",n,e).forEach(e=>{const t=e.closest(".tab-content");if(t){const s=t.querySelector(".tab-hider");if(s){const t=document.querySelector(`[data-bs-target="#${s.id}"]`);t&&e.addEventListener("click",()=>{new window.Tab(t).show()},!1)}}})}}}(Drupal,once)}});
//# sourceMappingURL=mg_tabs.js.map