Liferay.Loader.define("@liferay/commerce-order-rule-web@1.0.19/js/details",["module","exports","require","frontend-js-web"],(function(e,n,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.default=function({corEntryId:n,currentURL:t,namespace:d}){const c=document.getElementById("".concat(d,"type")),a=()=>{const a=new URL(r+n,t);(0,o.fetch)(a,{body:JSON.stringify({name:document.getElementById("".concat(d,"name")).value,type:c.value}),headers:e,method:"PATCH"})};return c.addEventListener("change",a),{dispose(){c.removeEventListener("change",a)}}},n.HEADERS=void 0;var o=t("frontend-js-web");const e=new Headers({Accept:"application/json","Content-Type":"application/json"});n.HEADERS=e;const r="/o/headless-commerce-admin-order/v1.0/order-rules/"}}));
//# sourceMappingURL=details.js.map