Liferay.Loader.define("segments-web@3.0.68/js/ExperienceSelector",["module","exports","require"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({namespace:e}){const t=document.getElementById("".concat(e,"dropdown")),n=document.getElementById("".concat(e,"dropdownToggle"));let a=null,i=null;const o=()=>{"false"===n.getAttribute("aria-expanded")?(t.classList.add("show"),n.setAttribute("aria-expanded","true")):(t.classList.remove("show"),n.setAttribute("aria-expanded","false"))},s=e=>{t.classList.remove("show"),n.classList[e?"add":"remove"]("disabled"),n.setAttribute("aria-expanded","false")};t&&n&&(a=Liferay.on("SimulationMenu:closeSimulationPanel",(()=>s(!1))),n.addEventListener("click",o),i=Liferay.on("SimulationMenu:openSimulationPanel",(()=>s(!0))));return{dispose(){n&&(a.detach(),n.removeEventListener("click",o),i.detach())}}}}));
//# sourceMappingURL=ExperienceSelector.js.map