Liferay.Loader.define("commerce-frontend-js@4.0.52/components/add_to_wish_list/util/LegacyWishListResource",["module","exports","require","frontend-js-web"],(function(e,o,n){window;{Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var d=n("frontend-js-web");const e="/o/commerce-ui/wish-list-item";var t={toggleInWishList({accountId:o="0",cpDefinitionId:n,skuId:t="0"}){if(!n)return Promise.resolve({success:!1});const r=new FormData;return r.append("commerceAccountId",o),r.append("groupId",Liferay.ThemeDisplay.getScopeGroupId()),r.append("productId",n),r.append("skuId",t),r.append("options","[]"),(0,d.fetch)(e,{body:r,credentials:"include",headers:new Headers({"x-csrf-token":window.Liferay.authToken}),method:"POST"}).then((e=>e.json()))}};o.default=t}}));
//# sourceMappingURL=LegacyWishListResource.js.map