Liferay.Loader.define("frontend-js-web@5.0.45/liferay/util/toggle_radio",["module","exports","require"],(function(e,r,o){window;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,r,o){const t=document.getElementById(e);if(t){let e;r&&(Array.isArray(r)&&(r=r.join(",#")),e=document.querySelectorAll("#".concat(r)),e.forEach((e=>{t.checked?e.classList.remove("hide"):e.classList.add("hide")}))),t.addEventListener("change",(()=>{if(e&&e.forEach((e=>{e.classList.remove("hide")})),o){Array.isArray(o)&&(o=o.join(",#"));document.querySelectorAll("#".concat(o)).forEach((e=>{e.classList.add("hide")}))}}))}}}));
//# sourceMappingURL=toggle_radio.js.map