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