Liferay.Loader.define("frontend-js-web@5.0.45/liferay/util/toggle_boxes",["module","exports","require"],(function(e,t,d){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,d,c){const i=document.getElementById(e),o=document.getElementById(t);if(i&&o){let e=i.checked;d&&(e=!e),e?o.classList.remove("hide"):o.classList.add("hide"),i.addEventListener("click",(()=>{if(o.classList.toggle("hide"),c){o.querySelectorAll("input[type=checkbox]").forEach((e=>{e.checked=i.checked}))}}))}}}));
//# sourceMappingURL=toggle_boxes.js.map