!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=36)}({36: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 n=e.querySelectorAll("a.nav-link"),a=t.querySelectorAll(".tab-pane");a.forEach((function(e){e.classList.add("shrink")})),n.forEach((function(e){e.dataset.isOpen="0",e.addEventListener("click",(function(){n.forEach((function(t){t!==e&&(t.dataset.isOpen="0")}));var t=parseInt(e.dataset.isOpen,10);if(t&&e.classList.contains("active")){e.dataset.isOpen="0",e.classList.remove("active");var r=e.dataset.bsTarget,o=document.querySelector(r);o&&(o.classList.remove("show"),a.forEach((function(e){e.classList.add("shrink")})),setTimeout((function(){o.classList.remove("active")}),300))}if(!t&&e.classList.contains("active")){e.dataset.isOpen="1";var s=e.dataset.bsTarget,i=document.querySelector(s);i&&i.classList.remove("shrink")}}),!1)}))}}}}});
//# sourceMappingURL=mg_tabs.js.map