Liferay.Loader.define("commerce-frontend-js@4.0.52/utilities/forms/index",["module","exports","require","../AJAX/index","./formsHelper"],(function(e,r,o){var t;window;{Object.defineProperty(r,"__esModule",{value:!0}),r.apiSubmit=u,r.default=void 0;var i=(t=o("../AJAX/index"))&&t.__esModule?t:{default:t},n=o("./formsHelper");function u(e,r=null){if((0,n.isFormElement)(e)){const o=(0,n.toJSON)(new FormData(e));return i.default.POST(r,o)}return Promise.reject(new Error("Not a form."))}var d={apiSubmit:u};r.default=d}}));
//# sourceMappingURL=index.js.map