Liferay.Loader.define("commerce-frontend-js@4.0.52/ServiceProvider/commerce-delivery-cart/v1.0/Cart",["module","exports","require","../../../utilities/AJAX/index"],(function(e,t,c){var a;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){return{cartsByAccountIdAndChannelIdURL:(e,c)=>o(t,e,c),createCartByChannelId:(c,a)=>n.default.POST("".concat(d(t,c)).concat(e,"?nestedFields=cartItems"),a),createCouponCodeByCartId:(e,c)=>n.default.POST("".concat(r(t,e),"/coupon-code"),c),deleteCartById:e=>n.default.DELETE(r(t,e)),getCartById:e=>n.default.GET(r(t,e)),getCartByIdWithItems:e=>n.default.GET(r(t,e)+"?nestedFields=cartItems"),getCartsByAccountIdAndChannelId:(e,c,a)=>n.default.GET(o(t,e,c,a)),replaceCartById:(e,c)=>n.default.PUT(r(t,e),c),updateCartById:(e,c)=>n.default.PATCH(r(t,e)+"?nestedFields=cartItems",c)}};var n=(a=c("../../../utilities/AJAX/index"))&&a.__esModule?a:{default:a};const e="/carts",u="/channels",l="v1.0";function r(t="",c){return"".concat(t).concat(l).concat(e,"/").concat(c)}function d(e="",t){return"".concat(e).concat(l).concat(u,"/").concat(t)}function o(t="",c,a,n){const r=new URL("".concat(d(t,a),"/account/").concat(c).concat(e),Liferay.ThemeDisplay.getPortalURL());return n&&Object.keys(n).forEach((e=>{r.searchParams.set(e,n[e])})),r}}}));
//# sourceMappingURL=Cart.js.map