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