Liferay.Loader.define("@liferay/commerce-order-rule-web@1.0.19/js/qualifiers",["module","exports","require","commerce-frontend-js/utilities/index","frontend-js-web"],(function(e,r,t){window;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({currentURL:e,namespace:r,searchParam:t,selector:c}){const o=(0,a.createPortletURL)(e),i=document.querySelectorAll("[name=".concat(r).concat(c,"]")),s=e=>{e.target.checked&&(o.searchParams.set("".concat(r).concat(t),e.target.value),(0,n.liferayNavigate)(o.toString()))};return i.forEach((e=>{e.addEventListener("change",s)})),{dispose(){i.forEach((e=>{e.removeEventListener("change",s)}))}}};var n=t("commerce-frontend-js/utilities/index"),a=t("frontend-js-web")}));
//# sourceMappingURL=qualifiers.js.map