!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=35)}({35:function(e,t){Drupal.behaviors.tabs={attach:function(){console.log("Loaded -- Tabs behaviour");var e=document.querySelector(".tbn-c:not(.tabs-added)"),t=document.querySelector(".tbw-c:not(.tabs-added)");if(e&&t){e.classList.add("tabs-added"),t.classList.add("tabs-added");var a=e.querySelectorAll("a.nav-link"),n=t.querySelectorAll(".tab-pane");n.forEach((function(e){e.classList.add("shrink")})),a.forEach((function(e){var t=e.closest(".tabs-added");e.dataset.isOpen="0",e.addEventListener("click",(function(){a.forEach((function(t){t!==e&&(t.dataset.isOpen="0")}));var r=parseInt(e.dataset.isOpen,10);if(r&&e.classList.contains("active")){e.dataset.isOpen="0",e.classList.remove("active");var s=e.dataset.bsTarget,o=document.querySelector(s);o&&(o.classList.remove("show"),n.forEach((function(e){e.classList.add("shrink")})),t&&t.classList.remove("tabs-active"),setTimeout((function(){o.classList.remove("active")}),300))}if(!r&&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)}))}}}}});
//# sourceMappingURL=mg_tabs.js.map