PageSourceSearch

https://falconpackonline.com/chunk-OCF4YT67.js

js falconpackonline.com collected 2026-09-24 11:03:06 UTC 26,784 bytes, 2 lines download raw bytes

1import{a as we,b as $e,c as je,d as Be,e as V}from"./chunk-3VCO2I5I.js";import"./chunk-NLEENN2Y.js";import"./chunk-QKVRHOPJ.js";import{a as Fe}from"./chunk-XD2KAKEE.js";import{a as Ee}from"./chunk-WDNSOLHJ.js";import"./chunk-YF3YTGQV.js";import"./chunk-ZU6LNYDO.js";import"./chunk-2X7DHSZI.js";import"./chunk-6APBXE6N.js";import{d as Ae,f as Re,l as Oe,m as ke,n as Ve,o as Ne,p as Le}from"./chunk-5UQ3BVSF.js";import"./chunk-JOA2NA7E.js";import{a as ot}from"./chunk-GCMCIECM.js";import{c as Mt,d as Dt,h as At,k as be,l as Rt,m as Me,n as De}from"./chunk-VOSNHB5B.js";import{c as xt}from"./chunk-OF7D2DAX.js";import{a as Te}from"./chunk-UBNAXRCE.js";import"./chunk-LS4E6M46.js";import"./chunk-E3NCQCRU.js";import"./chunk-YGHVP3F5.js";import{a as dt,b as Ue}from"./chunk-K4WAGJOR.js";import"./chunk-JIR33PBE.js";import{D as Se,H as it,M as _e,V as B,W as _t,X as ct,Y as xe}from"./chunk-VLNBRM2D.js";import{Aa as ge,D as ae,J as se,K as ce,Ka as Ie,L as de,T as le,_ as pe,ja as ue,ka as me,ma as fe,pa as Ce,rb as ye,sb as Pe,tb as Pt,ua as he,ub as St,va as ve}from"./chunk-P4N44VAL.js";import{$b as Wt,$e as Q,Ab as c,Bb as l,Bh as et,Cb as E,Ce as te,Ch as j,Ge as vt,H as b,Id as zt,Ie as Et,Ja as $t,Jb as rt,Jd as ht,Jf as st,Ka as jt,Ke as nt,Lb as O,M as G,Ma as Bt,Md as z,Nb as m,Ne as at,Oe as ee,Pe as ie,Pg as re,Se as bt,Ta as s,Vf as K,Vh as yt,Xb as Yt,Yc as w,Zb as Qt,ab as d,ac as v,bc as U,ca as wt,cb as D,cc as M,db as y,fa as mt,fd as x,gb as L,gd as Jt,hb as Ht,hi as ne,jg as X,kd as k,mc as F,md as Ct,mf as $,mg as oe,nc as J,o as ut,oa as N,pa as g,qb as Gt,qd as Y,qe as Kt,qg as gt,ra as I,re as Xt,rg as A,rh as It,sa as ft,sb as P,sc as p,sh as tt,tb as Tt,tc as u,u as R,ub as S,uc as qt,v as Ft,va as q,wa as Z,wc as Zt,zb as h}from"./chunk-AMA5CYX4.js";import{a as H,b as pt}from"./chunk-BCOYB3WA.js";var Ge=i=>({cxRoute:"product",params:i});function ui(i,f){if(i&1&&(c(0,"div",7)(1,"a",9),p(2,"cxUrl"),c(3,"h3"),v(4),l(),c(5,"div",10),v(6),l()()()),i&2){let t=m(),e=m();s(),h("routerLink",u(2,3,J(5,Ge,e.getProductItem(t)))),s(3),U(t.name),s(2),U(t.subname)}}function mi(i,f){if(i&1&&(c(0,"span",12),v(1),l(),c(2,"del",13)(3,"span",14),v(4),l()()),i&2){let t=m(2);s(),U(t.priceAfterDiscount==null?null:t.priceAfterDiscount.formattedValue),s(3),U(t.price.formattedValue)}}function fi(i,f){if(i&1&&(c(0,"div",11)(1,"span",12),v(2),l()()),i&2){let t=m(2);s(2),U(t.price.formattedValue)}}function Ci(i,f){if(i&1&&(c(0,"div",8)(1,"section",8),P(2,mi,5,2)(3,fi,3,1,"div",11),l()()),i&2){let t=m();s(2),S(t.discount!=null&&t.discount.subtotalDiscountValue?2:3)}}function hi(i,f){if(i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),p(4,"cxUrl"),E(5,"cx-media",4),l()(),c(6,"div",5)(7,"div",6),P(8,ui,7,7,"div",7),P(9,Ci,4,1,"div",8),l()()()()),i&2){let t=f,e=m();s(3),h("routerLink",u(4,4,J(6,Ge,e.getProductItem(t)))),s(2),h("container",t.images==null?null:t.images.PRIMARY),s(3),S(t.name?8:-1),s(),S(t.price?9:-1)}}var Ye=(()=>{class i{constructor(t,e){this.productService=t,this.customProductService=e}ngOnInit(){this.productCode&&(this.product$=this.productService.get(this.productCode).pipe(b(ie)))}getProductItem(t){return this.customProductService.getCustomProductItem(t)}static{this.\u0275fac=function(e){return new(e||i)(d(yt),d(xt))}}static{this.\u0275cmp=D({type:i,selectors:[["custom-product-dialogue"]],inputs:{productCode:"productCode",product$:"product$"},standalone:!1,decls:2,vars:3,consts:[[1,"cx-dialog-item","col-sm-12","col-md-6"],[1,"cx-compact","row"],[1,"col-2","cx-image-container"],["tabindex","0",3,"routerLink"],["format","cartIcon",3,"container"],[1,"cx-info"],[1,"cx-info-container","row"],[1,"cx-name","h3"],[1,"cx-price"],[1,"cx-link",3,"routerLink"],[1,"subname"],[1,"price"],[1,"new-price"],[1,"price-discount"],[1,"discount-value"]],template:function(e,o){if(e&1&&(P(0,hi,10,8,"div",0),p(1,"async")),e&2){let r;S((r=u(1,1,o.product$))?0:-1,r)}},dependencies:[ht,he,w,It],encapsulation:2,changeDetection:0})}}return i})();var Qe=()=>[],gi=()=>({cxRoute:"cart"});function Ii(i,f){if(i&1&&E(0,"custom-cart-item",11),i&2){let t=m(),e=m(2);h("item",t)("compact",!0)("quantityControl",f)("promotionLocation",e.promotionLocation)}}function yi(i,f){if(i&1&&(c(0,"div",7),P(1,Ii,1,4,"custom-cart-item",11),p(2,"async"),l()),i&2){let t,e=m(2);s(),S((t=u(2,1,e.getQuantityControl()))?1:-1,t)}}function Pi(i,f){if(i&1&&E(0,"custom-product-dialogue",8),i&2){let t=m(2);h("product$",t.product$)}}function Si(i,f){if(i&1){let t=rt();c(0,"div",10)(1,"div",12)(2,"div"),v(3),p(4,"cxTranslate"),l(),c(5,"div")(6,"span",13),v(7),l()()(),c(8,"div",14),E(9,"cx-promotions",15),l(),c(10,"div",16)(11,"a",17),p(12,"cxUrl"),O("click",function(){q(t);let o=m(2);return Z(o.dismissModal("Proceed To Checkout click"))}),v(13),p(14,"cxTranslate"),l(),c(15,"span",18),O("click",function(){q(t);let o=m(2);return Z(o.dismissModal("Continue Shopping click"))}),v(16),p(17,"cxTranslate"),l()()()}if(i&2){let t=f,e=m(2);s(3),M(" ",u(4,8,"cartItems.cartTotal")," "),s(4),U(t.subTotal==null?null:t.subTotal.formattedValue),s(2),h("promotions",(t.appliedOrderPromotions||F(16,Qe)).concat(t.potentialOrderPromotions||F(17,Qe))),s(2),Qt("disabled",e.form.dirty),h("routerLink",u(12,10,F(18,gi))),s(2),M(" ",u(14,12,"addToCart.proceedToCheckout")," "),s(3),M(" ",u(17,14,"addToCart.continueShopping")," ")}}function _i(i,f){if(i&1&&(c(0,"div",3)(1,"div",4),v(2),p(3,"cxTranslate"),l()(),c(4,"div",5)(5,"div",6),P(6,yi,3,3,"div",7),p(7,"async"),Tt(8,Pi,1,1,"custom-product-dialogue",8),E(9,"div",9),P(10,Si,18,19,"div",10),p(11,"async"),l()()),i&2){let t,e,o=m();s(2),M(" ",u(3,3,"addToCart.addedToCart")," "),s(4),S((t=u(7,5,o.entry$))?6:8,t),s(4),S((e=u(11,7,o.cart$))?10:-1,e)}}function xi(i,f){if(i&1){let t=rt();c(0,"div",3)(1,"div",4),v(2),p(3,"cxTranslate"),l(),c(4,"button",19),p(5,"cxTranslate"),O("click",function(){q(t);let o=m();return Z(o.dismissModal("Cross click"))}),c(6,"span",20),E(7,"cx-icon",21),l()()(),c(8,"div",5)(9,"div",6)(10,"div",22),E(11,"cx-spinner"),l()()()}if(i&2){let t=m();s(2),M(" ",u(3,3,"addToCart.updatingCart")," "),s(2),Gt("aria-label",u(5,5,"common.close")),s(3),h("type",t.iconTypes.CLOSE)}}var qe=(()=>{class i extends Re{constructor(t,e,o,r,n,a){super(t,e,o,r),this.activeCartFacade=t,this.launchDialogService=e,this.routingService=o,this.el=r,this.productService=n,this.customProductService=a,this.iconTypes=se,this.canProceedToCheckout=!1}
1ngOnInit(){this.subscription.add(this.launchDialogService.data$.subscribe(t=>{this.init(t.productCode,t.quantity,t.numberOfEntriesBeforeAdd)})),this.subscription.add(this.routingService.getRouterState().pipe(b(t=>!!t.nextState)).subscribe(()=>this.dismissModal("dismiss")))}init(t,e,o){this.activeCartFacade.getLastEntry(t).subscribe(r=>{if(r&&r.product){let n=this.customProductService.getCustomProductItem(r.product);this.product$=ut(n)}else this.product$=this.getProductPresentation(t)}),this.quantity=e,this.addedEntryWasMerged$=this.getAddedEntryWasMerged(o)}getProductPresentation(t){return this.productService.get(t).pipe(b(e=>!!e),R(e=>{let o=this.customProductService.getCustomProductItem(e);return pt(H({},e),{nameHtml:o?.nameHtml,slug:o?.slug,productCodeAndName:o?.productCodeAndName})}))}static{this.\u0275fac=function(e){return new(e||i)(d(it),d(Ce),d(X),d(jt),d(yt),d(xt))}}static{this.\u0275cmp=D({type:i,selectors:[["custom-added-to-cart-dialog"]],standalone:!1,features:[L],decls:10,vars:11,consts:[[1,"cx-modal-container",3,"esc","cxFocus"],[1,"cx-modal-content"],["aria-live","polite","aria-atomic","true",1,"cx-visually-hidden"],[1,"cx-dialog-header","modal-header"],[1,"cx-dialog-title","modal
1-title"],[1,"cx-dialog-body","modal-body"],[1,"cx-dialog-row"],[1,"cx-dialog-item","col-sm-12","col-md-6"],[3,"product$"],[1,"cx-dialog-separator","col-sm-12","d-xs-block","d-sm-block","d-md-none"],[1,"cx-dialog-actions","col-sm-12","col-md-6"],[3,"item","compact","quantityControl","promotionLocation"],[1,"cx-dialog-total"],[1,"cart-subtotal-value"],[1,"cx-dialog-promotions"],[3,"promotions"],[1,"cx-dialog-buttons"],[1,"btn","btn-secondary",3,"click","routerLink"],[1,"btn","btn-primary",3,"click"],["type","button",1,"close",3,"click"],["aria-hidden","true"],[3,"type"],[1,"col-sm-12"]],template:function(e,o){e&1&&(c(0,"div",0),O("esc",function(){return o.dismissModal("Escape pressed")}),c(1,"div",1),P(2,_i,12,9),p(3,"async"),Tt(4,xi,12,7),c(5,"div",2),v(6),p(7,"async"),p(8,"cxTranslate"),p(9,"cxTranslate"),l()()()),e&2&&(h("cxFocus",o.focusConfig),s(2),S(u(3,3,o.loaded$)?2:4),s(4),M(" ",u(7,5,o.addedEntryWasMerged$)?u(8,7,"addToCart.itemsIncrementedInYourCart"):u(9,9,"addToCart.itemsAddedToYourCart")," "))},dependencies:[$e,Ye,ht,ge,Pt,ce,ue,w,It,et],encapsulation:2})}}return i})();var Ze={launch:{CUSTOM_ADDED_TO_CART:{inlineRoot:!0,component:qe,dialogType:fe.DIALOG}}};var Je=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=g({imports:[x,z,tt,j,ve]})}}return i})();var ze=(()=>{class i{constructor(t){}static{this.\u0275fac=function(e){return new(e||i)(I(Fe))}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=g({providers:[Xt(Ze),Ae],imports:[x,ae,V,Je,z,Ie,St,tt,j,de,me]})}}return i})();var Ei=i=>({code:i}),Vt=()=>[],bi=i=>({isSaveForLater:!1,optionalBtn:i});function Mi(i,f){if(i&1&&(c(0,"div",1)(1,"h2",2),v(2),p(3,"cxTranslate"),l(),E(4,"cx-promotions",3)(5,"custom-cart-item-list",4),p(6,"async"),l()),i&2){let t=m(),e=m(),o=Yt(3);s(2),M(" ",qt(3,8,"cartDetails.cartName",J(13,Ei,t.code))," "),s(2),h("promotions",(t.appliedOrderPromotions||F(15,Vt)).concat(t.potentialOrderPromotions||F(16,Vt))),s(),h("cart$",e.cart$)("items",t.entries||F(17,Vt))("cartIsLoading",!u(6,11,e.cartLoaded$))("promotionLocation",e.promotionLocation)("options",J(18,bi,o))("cartType",e.CartItemListType.MY_CART)}}function Di(i,f){i&1&&P(0,Mi,7,20,"div",1),i&2&&S((f.totalItems||0)>0?0:-1)}function Ai(i,f){if(i&1){let t=rt();c(0,"button",6),O("click",function(){q(t);let o=m().$implicit,r=m();return Z(r.saveForLater(o.item))}),v(1),p(2,"cxTranslate"),l()}if(i&2){let t=m().$implicit;h("disabled",t.loading),s(),M(" ",u(2,2,"saveForLaterItems.saveForLater")," ")}}function Ri(i,f){if(i&1&&P(0,Ai,3,4,"button",5),i&2){let t=m();S(t.selectiveCartEnabled?0:-1)}}var Ke=(()=>{class i extends Oe{constructor(t,e,o,r,n,a,C){super(o,r,n,a,C),this.cartService=t,this.globalMessageService=e,this.activeCartService=o,this.selectiveCartService=r,this.authService=n,this.routingService=a,this.cartConfig=C,this.bundleType=dt,this.CartItemListType=Ue}ngOnInit(){super.ngOnInit(),this.activeCartService.reloadActiveCart(),this.cart$=this.activeCartService.getActive(),this.entryGroups$=this.cart$.pipe(R(t=>t.entryGroups),b(ee)),this.cartService.checkStockRequest().subscribe(t=>{(t.body?.message==="FAILED"||t.message==="FAILED")&&this.globalMessageService.add({key:"validation.cannotProceedCheckout"},A.MSG_TYPE_WARNING)})}combineBundleTemplate(t){let e=[];for(let o=0;o<t.length;o++){if(t[o]?.type!==dt.CONFIGURABLE_BUNDLE){let a=Object.assign({},t[o]);e.push(a);continue}let r=!1,n=(t[o]?.id||"")+(t[o].label||"");for(let a=0;a<e.length;a++){let C=(e[a]?.id||"")+(e[a]?.label||"");if(this.checkIsSameBundle(n,C)){r=!0;let _=e[a].quantity||1;_+=1,e[a].quantity=_;break}}if(!r){let a=Object.assign({},t[o]);a.quantity=1,e.push(a)}}return e}checkIsSameBundle(t,e){return t.localeCompare(e)===0}static{this.\u0275fac=function(e){return new(e||i)(d(ot),d(gt),d(it),d(_e),d(oe),d(X),d(De))}}static{this.\u0275cmp=D({type:i,selectors:[["custom-cart-details"]],standalone:!1,features:[L],decls:4,vars:3,consts:[["saveForLaterBtn",""],[1,"cart-details-wrapper"],[1,"cx-total"],[3,"promotions"],[3,"cart$","items","cartIsLoading","promotionLocation","options","cartType"],["type","button",1,"link","cx-action-link","cx-sfl-btn",3,"disabled"],["type","button",1,"link","cx-action-link","cx-sfl-btn",3,"click","disabled"]],template:function(e,o){if(e&1&&(P(0,Di,1,1),p(1,"async"),Ht(2,Ri,1,1,"ng-template",null,0,Zt)),e&2){let r;S((r=u(1,1,o.cart$))?0:-1,r)}},dependencies:[Pt,je,w,et],encapsulation:2})}}return i})();var Nt=(()=>
1{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=g({providers:[ot],imports:[x,we,St,j,V,K.withConfig({cmsComponents:{CartComponent:{component:Ke}}})]})}}return i})();var ti=(()=>{class i extends Ve{constructor(t,e,o,r,n,a,C,_,W){super(t),this.router=t,this.customCartService=e,this.areaService=o,this.userAddressService=r,this.globalMessageService=n,this.activeCartService=a,this.customUserRelationService=C,this.routingService=_,this.platformId=W}disableButtonWhileNavigation(){if(Jt(this.platformId)){if(!this.areaService.hasSelectedRegionArea()){this.globalMessageService.add({key:"validation.missingRegion"},A.MSG_TYPE_ERROR);return}this.cartValidationInProgress=!0,this.activeCartService.reloadActiveCart();let t=Ft([this.activeCartService.getActive(),this.customUserRelationService.checkUser()]);this.subscription.add(t.pipe(b(([e,o])=>this.checkCustomerAndEntryGroup(e,o)),mt(([e,o])=>{let r=this.customUserRelationService.checkIsAnonymous()?e?.guid:e?.code;return this.customCartService.validateItemFromCart(r??"").pipe(b(n=>this.checkCartItemNotDisabled(n)))}),mt(()=>(this.userAddressService.loadRegions("AE"),this.userAddressService.getRegions("AE").pipe(wt(1),b(e=>this.checkRegionData(e))))),mt(()=>this.customCartService.checkStockRequest().pipe(b(e=>this.checkCartStock(e)),G(e=>{throw this.cartValidationInProgress=!1,this.cd?.detectChanges(),e})))).subscribe(()=>{this.cartValidationInProgress=!1,this.router.navigateByUrl("/checkout")}))}}checkCustomerAndEntryGroup(t,e){if(e&&!e?.phoneNumber)return this.globalMessageService.add({key:"validation.missingPhoneNumber"},A.MSG_TYPE_ERROR),this.routingService.go({cxRoute:"personalDetails"}),!1;let o=t.entryGroups;return o&&o instanceof Array&&this.checkCartHasEmptyConfigurationInfos(o)?(this.globalMessageService.add({key:"validation.cartHasEmptyConfigurationInfos"},A.MSG_TYPE_ERROR),this.cartValidationInProgress=!1,this.cd?.detectChanges(),!1):!0}checkCartItemNotDisabled(t){let e=t?.cartModifications??[],o=!1;return e&&e.length>0&&(o=this.customCartService.checkDisabledItemByCartModificationList(e)),e.length>0||o?(this.globalMessageService.add({key:"validation.hasDisabledItem"},A.MSG_TYPE_WARNING),this.cartValidationInProgress=!1,this.cd?.markForCheck(),!1):!0}checkCartStock(t){return t.body?.message==="SUCCESS"||t.message==="SUCCESS"?!0:(this.globalMessageService.add({key:"validation.cannotProceedCheckout"},A.MSG_TYPE_WARNING),this.refleshStock(),!1)}checkRegionData(t){if(!t||t.length===0)return this.cartValidationInProgress=!1,this.cd?.markForCheck(),!1;let e=this.areaService.getSelectedRegionArea(),o=e.area?.isocode?.split("-")[2],r=!1,n=t.some(a=>{let C=a.areas?.find(_=>_.isocode?.split("-")[2]===o);return C&&a.isocode!==e.region?.isocode?(r=!0,this.areaService.addSelectedRegionAndArea(a,C),this.globalMessageService.add({key:"validation.regionAreaMismatchCorrected"},A.MSG_TYPE_WARNING),this.refleshStock(),!1):!!C});return!n&&!r&&(this.globalMessageService.add({key:"validation.selectedAreaNotAvailable"},A.MSG_TYPE_WARNING),this.cartValidationInProgress=!1,this.cd?.detectChanges()),n}checkCartHasEmptyConfigurationInfos(t){return t.some(e=>e.type===dt.STANDALONE&&e.entries?.[0].configurationInfos?(e.entries?.[0].configurationInfos).some(r=>r.status==="ERROR"):!1)}refleshStock(){let t=setTimeout(()=>{window.location.reload(),clearTimeout(t)},3e3)}static{this.\u0275fac=function(e){return new(e||i)(d(zt),d(ot),d(Te),d(ne),d(gt),d(it),d(Ee),d(X),d(Bt))}}static{this.\u0275cmp=D({type:i,selectors:[["custom-cart-proceed-to-checkout"]],standalone:!1,features:[L],decls:3,vars:7,consts:[["tabindex","-1",3,"clickEvent","disabled","loading"]],template:function(e,o){e&1&&(c(0,"cx-progress-button",0),O("clickEvent",function(){return o.disableButtonWhileNavigation()}),v(1),p(2,"cxTranslate"),l()),e&2&&(Wt("btn btn-primary btn-block"),h("disabled",o.cartValidationInProgress)("loading",o.cartValidationInProgress),s(),M(" ",u(2,5,o.cartValidationInProgress?"validation.inProgress":"cartDetails.proceedToCheckout"),`
2`))},dependencies:[ye,et],encapsulation:2,changeDetection:0})}}return i})();var Lt=(()=>
2{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=g({imports:[x,Pe,z,j,tt,K.withConfig({cmsComponents:{CartProceedToCheckoutComponent:{component:ti}}})]})}}return i})();function Oi(i,f){i&1&&E(0,"custom-order-summary",0),i&2&&h("cart",f)}var ei=(()=>{class i extends Ne{static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=$t(i)))(o||i)}})()}static{this.\u0275cmp=D({type:i,selectors:[["custom-cart-totals"]],standalone:!1,features:[L],decls:2,vars:3,consts:[[3,"cart"]],template:function(e,o){if(e&1&&(P(0,Oi,1,1,"custom-order-summary",0),p(1,"async")),e&2){let r;S((r=u(1,1,o.cart$))?0:-1,r)}},dependencies:[Be,w],encapsulation:2})}}return i})();var Ut=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=g({imports:[x,V,K.withConfig({cmsComponents:{CartTotalsComponent:{component:ei}}})]})}}return i})();var ii=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=g({providers:[{provide:pe,useExisting:ke,multi:!0},{provide:Se,useExisting:Le}],imports:[x,Nt,Lt,Ut,V,le.forChild(),Nt,Lt,V,Ut,ze]})}}return i})();var oi=(()=>{class i{constructor(t,e,o){this.http=t,this.occEndpointsService=e,this.converterService=o}loadAll(t){return this.http.get(this.occEndpointsService.buildUrl("carts",{urlParams:{userId:t}})).pipe(R(e=>e.carts??[]),this.converterService.pipeableMany(B))}load(t,e){return e?e===Et?this.loadAll(t).pipe(R(o=>o.find(r=>r.saveTime===void 0))):this.http.get(this.occEndpointsService.buildUrl("cart",{urlParams:{userId:t,cartId:e}})).pipe(this.converterService.pipeable(B)):ut(void 0)}create(t,e,o){let r=JSON.stringify({}),n={};return e&&(n.oldCartId=e),o&&(n.toMergeCartGuid=o),this.http.post(this.occEndpointsService.buildUrl("createCart",{urlParams:{userId:t},queryParams:n}),r).pipe(this.converterService.pipeable(B))}delete(t,e){let o=new k;return t===vt&&(o=at.createHeader(nt,!0,o)),this.http.delete(this.occEndpointsService.buildUrl("deleteCart",{urlParams:{userId:t,cartId:e}}),{headers:o})}save(t,e,o,r){let n=this.occEndpointsService.buildUrl("saveCart",{urlParams:{userId:t,cartId:e,saveCartName:o,saveCartDescription:r}});return this.http.patch(n,e).pipe(R(a=>a.savedCartData),this.converterService.pipeable(B))}addEmail(t,e,o){let r=new k({"Content-Type":"application/x-www-form-urlencoded"});r=at.createHeader(nt,!0,r);let n=new Ct().set("email",o),a=this.occEndpointsService.buildUrl("addEmail",{urlParams:{userId:t,cartId:e}});return this.http.put(a,n,{headers:r})}static{this.\u0275fac=function(e){return new(e||i)(I(Y),I(Q),I($))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})();var ri={backend:{occ:{endpoints:{carts:"users/${userId}/carts?fields=carts(DEFAULT,potentialProductPromotions,appliedProductPromotions,potentialOrderPromotions,appliedOrderPromotions,entries(totalPrice(formattedValue),product(images(FULL),stock(FULL)),basePrice(formattedValue,value),updateable),totalPrice(formattedValue),totalItems,totalPriceWithTax(formattedValue),totalDiscounts(value,formattedValue),subTotal(formattedValue),totalUnitCount,deliveryItemsQuantity,deliveryCost(formattedValue),totalTax(formattedValue, value),pickupItemsQuantity,net,appliedVouchers,productDiscounts(formattedValue),user,saveTime,name,description)",cart:"users/${userId}/carts/${cartId}?fields=DEFAULT,potentialProductPromotions,appliedProductPromotions,potentialOrderPromotions,appliedOrderPromotions,entries(totalPrice(formattedValue),product(images(FULL),stock(FULL)),basePrice(formattedValue,value),updateable),totalPrice(formattedValue),totalItems,totalPriceWithTax(formattedValue),totalDiscounts(value,formattedValue),subTotal(formattedValue),totalUnitCount,deliveryItemsQuantity,deliveryCost(formattedValue),totalTax(formattedValue, value),pickupItemsQuantity,net,appliedVouchers,productDiscounts(formattedValue),user,saveTime,name,description",createCart:"users/${userId}/carts?fields=DEFAULT,potentialProductPromotions,appliedProductPromotions,potentialOrderPromotions,appliedOrderPromotions,entries(totalPrice(formattedValue),product(images(FULL),stock(FULL)),basePrice(formattedValue,value),updateable),totalPrice(formattedValue),totalItems,totalPriceWithTax(formattedValue),totalDiscounts(value,formattedValue),subTotal(formattedValue),totalUnitCount,deliveryItemsQuantity,deliveryCost(formattedValue),totalTax(formattedValue, value),pickupItemsQuantity,net,appliedVouchers,productDiscounts(formattedValue),user",addEntries:"users/${userId}/carts/${cartId}/entries",updateEntries:"users/${userId}/carts/${cartId}/entries/${entryNumber}",removeEntries:"users/${userId}/carts/${cartId}/entries/${entryNumber}",addEmail:"users/${userId}/carts/${cartId}/email",deleteCart:"users/${userId}/carts/${cartId}",cartVoucher:"users/${userId}/carts/${cartId}/vouchers",saveCart:"/users/${userId}/carts/${cartId}/save?saveCartName=${saveCartName}
2&saveCartDescription=${saveCartDescription}",validate:"users/${userId}/carts/${cartId}/validate?fields=DEFAULT"}}}};var ni=(()=>{class i{constructor(t){this.converter=t}convert(t,e){return e===void 0&&(e=H({},t)),this.removeDuplicatePromotions(t,e),this.handleQuoteCode(t,e),t.entries&&(e.entries=t.entries.map(o=>pt(H({},o),{product:this.converter.convert(o.product,re),promotions:this.converter.convert({item:o,promotions:e?.appliedProductPromotions},_t)}))),e}handleQuoteCode(t,e){t.sapQuote&&(e.quoteCode=t.sapQuote.code,e.quotePurchaseOrderNumber=t.sapQuote.sapPurchaseOrderNumber)}removeDuplicatePromotions(t,e){t&&t.potentialOrderPromotions&&(e.potentialOrderPromotions=this.removeDuplicateItems(t.potentialOrderPromotions)),t&&t.potentialProductPromotions&&(e.potentialProductPromotions=this.removeDuplicateItems(t.potentialProductPromotions)),t&&t.appliedOrderPromotions&&(e.appliedOrderPromotions=this.removeDuplicateItems(t.appliedOrderPromotions)),t&&t.appliedProductPromotions&&(e.appliedProductPromotions=this.removeDuplicateItems(t.appliedProductPromotions))}removeDuplicateItems(t){return t.filter((e,o,r)=>{let n=r.map(a=>JSON.stringify(a));return o===n.indexOf(JSON.stringify(e))})}static{this.\u0275fac=function(e){return new(e||i)(I($))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ai=(()=>{class i{convert(t,e){return e=this.getProductPromotion(t.item,t.promotions),e}getProductPromotion(t,e){let o=[];return e?.forEach(r=>{if(r.description&&r.consumedEntries)for(let n of r.consumedEntries)this.isConsumedByEntry(n,t)&&o.push(r)}),o}isConsumedByEntry(t,e){let o=t.orderEntryNumber;if(e&&e.entries&&e.entries.length>0){for(let r of e.entries)if(r.entryNumber===o)return!0;return!1}else return o===e?.entryNumber}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var si=(()=>{class i{constructor(t,e,o){this.http=t,this.occEndpointsService=e,this.converterService=o}add(t,e,o,r=1,n){let a=this.occEndpointsService.buildUrl("addEntries",{urlParams:{userId:t,cartId:e,quantity:r}});if(a.includes(`quantity=${r}`)){let W=new k({"Content-Type":"application/x-www-form-urlencoded"});return this.http.post(a,{},{headers:W,params:{code:o}}).pipe(this.converterService.pipeable(ct))}let C=H({quantity:r,product:{code:o}},n&&{deliveryPointOfService:{name:n}}),_=new k({"Content-Type":"application/json"});return this.http.post(a,C,{headers:_}).pipe(this.converterService.pipeable(ct))}update(t,e,o,r,n,a=!1){let C=new k({"Content-Type":"application/json"}),_=this.occEndpointsService.buildUrl("updateEntries",{urlParams:{userId:t,cartId:e,entryNumber:o}});if(n===void 0&&a)return this.http.put(_,{quantity:r},{headers:C}).pipe(this.converterService.pipeable(ct));let W={};return n&&(W={deliveryPointOfService:{name:n}}),this.http.patch(_,H({quantity:r},W),{headers:C}).pipe(this.converterService.pipeable(ct))}remove(t,e,o){let r=new k({"Content-Type":"application/x-www-form-urlencoded"}),n=this.occEndpointsService.buildUrl("removeEntries",{urlParams:{userId:t,cartId:e,entryNumber:o}});return this.http.delete(n,{headers:r})}static{this.\u0275fac=function(e){return new(e||i)(I(Y),I(Q),I($))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})();var ci=(()=>{class i{constructor(t,e,o){this.http=t,this.occEndpoints=e,this.converter=o,this.logger=ft(bt)}validate(t,e){let o=this.occEndpoints.buildUrl("validate",{urlParams:{cartId:t,userId:e}});return this.http.post(o,null).pipe(G(r=>{throw st(r,this.logger)}),this.converter.pipeable(be))}static{this.\u0275fac=function(e){return new(e||i)(I(Y),I(Q),I($))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})(),di=(()=>{class i{constructor(t,e,o){this.http=t,this.occEndpoints=e,this.converter=o,this.logger=ft(bt),this.featureToggles=ft(te)}getCartVoucherEndpoint(t,e){return this.occEndpoints.buildUrl("cartVoucher",{urlParams:{userId:t,cartId:e}})}getRemoveCartVoucherEndpoint(t,e){return this.occEndpoints.buildUrl("cartRemoveVoucher",{urlParams:{userId:t,cartId:e}})}getHeaders(t){let e=new k({"Content-Type":"application/json"});return t===vt&&(e=at.createHeader(nt,!0,e)),e}add(t,e,o){let r=this.getCartVoucherEndpoint(t,e),n=JSON.stringify({}),a=new Ct().set("voucherId",o),C=this.getHeaders(t);return this.http.post(r,n,{headers:C,params:a}).pipe(G(_=>{throw st(_,this.logger)}),this.converter.pipeable(xe))}remove(t,e,o){let r=this.getHeaders(t);if(this.featureToggles.enableRemoveVoucherEndpoint){let a=this.getRemoveCartVoucherEndpoint(t,e),C={voucherId:o};return this.http.post(a,C,{headers:r}).pipe(G(_=>{throw st(_,this.logger)}))}let n=this.getCartVoucherEndpoint(t,e)+"/"+encodeURIComponent(o);return this.http.delete(n,{headers:r}).pipe(G(a=>{throw st(a,this.logger)}))}
2static{this.\u0275fac=function(e){return new(e||i)(I(Y),I(Q),I($))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})();var li=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=g({providers:[Kt(ri),{provide:At,useClass:oi},{provide:B,useExisting:ni,multi:!0},{provide:_t,useExisting:ai,multi:!0},{provide:Mt,useClass:si},{provide:Dt,useClass:di},{provide:Rt,useClass:ci}],imports:[x]})}}return i})();var Qr=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=y({type:i})}static{this.\u0275inj=g({imports:[Me,li,ii]})}}return i})();export{Qr as CustomCartBaseModule};

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.