Liferay.Loader.define("commerce-frontend-js@4.0.75/components/gallery/util/index",["module","exports","require","frontend-js-web"],(function(e,n,o){window;Object.defineProperty(n,"__esModule",{value:!0}),n.fetchImage=function fetchImage(e){return new Promise((n=>{const o=window.document.createElement("img");o.onload=()=>{n(e)},o.src=e}))},n.updateGallery=function updateGallery(e,n,o){const r=JSON.stringify(e),d=new FormData;return d.append("".concat(n,"ddmFormValues"),r),d.append("groupId",themeDisplay.getScopeGroupId()),(0,t.fetch)(o,{body:d,headers:new Headers({"x-csrf-token":Liferay.authToken}),method:"post"}).then((e=>e.json()))};var t=o("frontend-js-web")}));
//# sourceMappingURL=index.js.map