Liferay.Loader.define("frontend-js-web@5.0.31/liferay/portal/tabs.es",["module","exports","require","../util/to_char_code.es"],(function(e,t,a){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.showTab=function(t,a,n,s){const i=t+(0,o.default)(n),d=document.getElementById(i+"TabsId"),l=document.getElementById(i+"TabsSection");if(d&&l){const o={id:n,names:a,namespace:t,selectedTab:d,selectedTabSection:l};s&&"function"==typeof s&&s.call(this,t,a,n,o);try{Liferay.on(e,c),Liferay.fire(e,o)}finally{Liferay.detach(e,c)}}},t.applyTabSelectionDOMChanges=c;var o=(n=a("../util/to_char_code.es"))&&n.__esModule?n:{default:n};const e="showTab";function c({id:e,names:t,namespace:a,selectedTab:n,selectedTabSection:c}){const s=n.querySelector("a");if(n&&s){const e=n.parentElement.querySelector(".active");e&&e.classList.remove("active"),s.classList.add("active")}c&&c.classList.remove("hide");const i=document.getElementById(a+"dropdownTitle");let d;i&&s&&(i.innerHTML=s.textContent),t.splice(t.indexOf(e),1);for(var l=0;l<t.length;l++)d=document.getElementById(a+(0,o.default)(t[l])+"TabsSection"),d&&d.classList.add("hide")}}}));
//# sourceMappingURL=tabs.es.js.map