1import{a as S,b as M,c as N,d as P,e as k,m as U,o as x}from"./chunk-BXLI5HAL.js";import{d as y}from"./chunk-ABACGHJ4.js";import{c as $,g as O}from"./chunk-GDB2PFOH.js";import{N as E,e as F,t as A}from"./chunk-XKQLI5KL.js";import{O as I}from"./chunk-BNJC75RQ.js";import{Da as p,ba as h,eg as L,nf as b,pe as D,sa as g,ta as n,td as C,va as u}from"./chunk-ZIECK5QA.js";import{a as m}from"./chunk-3JMZ37NM.js";var j={backend:{occ:{endpoints:{carts:"users/${userId}/carts?fields=carts(FULL)&dv=2",cart:"users/${userId}/carts/${cartId}?fields=FULL&dv=2&validate=true",cartGroup:"users/${userId}/carts/${cartId}/cartgroups/${cartGroupId}?fields=FULL",createCart:"users/${userId}/carts?fields=FULL",availableTimesForPOS:"/users/${userId}/carts/${cartId}/preorder/availabletimes",createBuyNowCart:"/users/${userId}/buynow-cart?fields=FULL",multiEntries:"/users/${userId}/carts/${cartId}/multientries",updateAddon:"/users/${userId}/carts/${cartId}/entries/${entryNumber}/service",deliveryModeCode:"/users/${userId}/carts/${cartId}/entries/${entryNumber}/deliverymode",updateDeliveryDate:"/users/${userId}/carts/${cartId}/entries/${entryNumber}/productdeliverydate",applyPromotion:"/users/${userId}/carts/${cartId}/applyvoucher",removePromotion:"/users/${userId}/carts/${cartId}/vouchers/${voucherId}",validateCart:"/users/${userId}/carts/${cartId}/validate?fields=FULL",estimatedDeliveryDates:"/users/${userId}/carts/${cartId}/estimatedDeliveryDates?refreshCart=false",updateDeliveryMode:"users/${userId}/carts/${cartId}/entries/deliverymode",validateCartPreCheckout:"/users/${userId}/carts/${cartId}/validate/precheckout?fields=FULL",validateDeliveryWarehouse:"/users/${userId}/carts/${cartId}/warehouse/validate?fields=BASIC&refreshCart=false",wishlistProducts:"/users/${userId}/carts/${cartId}/availableWishlistProducts?refreshCart=false",createIndividualCartForCartGroup:"/users/${userId}/carts/${cartId}/cartgroups/${cartGroupId}/individual-checkout?fields=FULL&dv=2",deleteIndividualCart:"/users/${userId}/carts/${cartId}/individual-checkout",createCartBillingAddress:"/users/${userId}/carts/${cartId}/addresses/billing?fields=FULL",bulkOrderFile:"/users/${userId}/carts/${cartId}/bulkOrderFile",updateGiftMessage:"/users/${userId}/carts/${cartId}/entry/${entryNumber}/giftMessage",updateGiftMessageForCart:"/users/${userId}/carts/${cartId}/giftMessage",checkShopCardBalance:"/shopcard/checkBalance",setCartPaymentDetails:"/users/${userId}/carts/${cartId}/paymentdetails",loadDefaults:"/users/${userId}/carts/${cartId}/defaults",verifyIdentity:"/users/${userId}/carts/${cartId}/verify-identity?fields=FULL",createCartDeliveryAddress:"/users/${userId}/carts/${cartId}/addresses/delivery",createCartEntryDeliveryAddress:"/users/${userId}/carts/${cartId}/entry/${entryNumber}/addresses/delivery",eligibleInstalmentPeriods:"/users/${userId}/carts/${cartId}/eligibleInstalmentPeriods"}}}};var w=(()=>{let e=class e extends M{constructor(i,t,a,d){super(t,a,d),this.loggerFactory=i,this.http=t,this.occEndpointsService=a,this.converterService=d,this.logger=this.loggerFactory.getLogger("SipOccCartEntryAdapter")}add(i,t,a,d=1,o,r){let{isExternalVendorVariantProduct:f,externalVendorTransactionId:l}=r.externalVendorConfig||{},{additionalCartParams:c}=r,v=$(m({quantity:d,product:{code:a,isExternalVendorVariantProduct:f,externalVendorTransactionId:l},digitalProductRecipients:r.digitalProductRecipients,productDeliveryDate:r.productDeliveryData,deliveryPointOfService:r.deliveryPointOfService,postalCode:r.postalCode,deliveryAddress:r.deliveryAddress,selectedDeliveryOption:r.selectedDeliveryOption},c)),G=this.occEndpointsService.buildUrl("addEntries",{urlParams:{userId:i,cartId:t}});return this.http.post(G,v).pipe(y(this.logger,"add"),this.converterService.pipeable(I))}update(i,t,a,d,o,r,f,l){let c={};o&&(c={deliveryPointOfService:{name:o}}),l&&(c={digitalProductRecipients:l});let v=this.occEndpointsService.buildUrl("updateEntries",{urlParams:{userId:i,cartId:t,entryNumber:a}});return this.http.patch(v,m({quantity:d,pickupDate:f},c)).pipe(this.converterService.pipeable(I))}
1addMultiple(i,t,a){let d=$(a.map(r=>({quantity:r.qtyShouldBeAdded,product:{code:r.productCode,isExternalVendorVariantProduct:!1},productDeliveryDate:r.productDeliveryData,deliveryPointOfService:r.deliveryPointOfService,postalCode:r.postalCode}))),o=this.occEndpointsService.buildUrl("multiEntries",{urlParams:{userId:i,cartId:t}});return this.http.post(o,d).pipe(y(this.logger,"addMultiple"),h("cartModifications"),this.converterService.pipeableMany(I))}};e.\u0275fac=function(t){return new(t||e)(u(O),u(C),u(b),u(L))},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var B=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=n({providers:[D(j),{provide:A,useExisting:x},{provide:S,useClass:U},{provide:P,useExisting:k,multi:!0},{provide:F,useExisting:w}],imports:[N]});let s=e;return s})();var ue=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=n({imports:[E,B]});let s=e;return s})();export{ue as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.