Liferay.Loader.define("@liferay/commerce-order-web@5.0.90/js/editCommerceOrderType",["module","exports","require"],(function(e,t,o){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function _default({namespace:e,workflowAction:t}){document.getElementById("".concat(e,"publishButton")).addEventListener("click",(o=>{o.preventDefault();const n=document.getElementById("".concat(e,"fm"));if(!n)throw new Error("Form with id: ".concat(e,"fm not found!"));const c=document.getElementById("".concat(e,"workflowAction"));c&&(c.value=t),submitForm(n)}))}}));
//# sourceMappingURL=editCommerceOrderType.js.map