Liferay.Loader.define("@liferay/commerce-order-rule-web@1.0.30/js/details",["module","exports","require","frontend-js-web"],(function(e,n,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.default=function _default({corEntryId:n,currentURL:t,namespace:d}){const a=document.getElementById("".concat(d,"type")),handleSelectChange=()=>{const c=new URL(r+n,t);(0,o.fetch)(c,{body:JSON.stringify({name:document.getElementById("".concat(d,"name")).value,type:a.value}),headers:e,method:"PATCH"})};return a.addEventListener("change",handleSelectChange),{dispose(){a.removeEventListener("change",handleSelectChange)}}},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