1import{ib as w}from"./chunk-L6EN2BW6.js";import"./chunk-IZDLYJRE.js";import"./chunk-EDLENBQR.js";import"./chunk-UMM552OB.js";import"./chunk-XUZPMCRD.js";import"./chunk-JW3HVCPM.js";import"./chunk-HHEJWSKA.js";import"./chunk-D3VLNOII.js";import"./chunk-5N6ZNYUY.js";import"./chunk-5Q42DF5J.js";import"./chunk-IPAVTCJR.js";import"./chunk-CZQPPCI2.js";import"./chunk-BOJ55PH3.js";import"./chunk-P6SMF36Q.js";import"./chunk-AKJJZDJ4.js";import"./chunk-G7MMMJCH.js";import"./chunk-4MHYHNBE.js";import"./chunk-W74VQ2ZW.js";import"./chunk-MIXPOUNZ.js";import"./chunk-7IEM6YIL.js";import"./chunk-QEX7IBDO.js";import"./chunk-B4HBB6J6.js";import"./chunk-CDH54WDO.js";import"./chunk-ROAQJP46.js";import{Ca as f,Da as H,Hb as l,Ib as d,Jb as F,Kb as v,Lb as C,Sb as T,Xc as P,Yc as D,_a as S,cc as M,cd as u,dc as $,eb as n,fb as g,jd as j,ke as E,oh as N,ph as _,sa as x,ta as I,tb as c,v as s,va as A,vb as r,yc as p,zc as a}from"./chunk-ADQO3XXX.js";import"./chunk-3JMZ37NM.js";var h=(()=>{let t=class t{constructor(i){this.activeCartService=i}getPotentialOrderPromotionsFromCart(){return this.activeCartService.getActive().pipe(s(i=>this.getPotentialOrderPromotionsFromCartHelper(i)))}getAppliedOrderPromotionsFromCart(){return this.activeCartService.getActive().pipe(s(i=>this.getAppliedOrderPromotionsFromCartHelper(i)))}getPotentialOrderPromotionsFromCartHelper(i){return i.potentialOrderPromotions||[]}getAppliedOrderPromotionsFromCartHelper(i){return i.appliedOrderPromotions||[]}};t.\u0275fac=function(o){return new(o||t)(A(w))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function z(e,t){if(e&1&&F(0,"div",4),e&2){let m=t.$implicit;r("innerHTML",m.description,S)}}function q(e,t){if(e&1&&(v(0),F(1,"div",2),p(2,"cxTranslate"),c(3,z,1,1,"div",3),p(4,"async"),C()),e&2){let m=T();n(),r("innerHtml",a(2,2,"basket.potential.promotions"),S),n(2),r("ngForOf",a(4,4,m.potentialPromotions$))}}var b=(()=>{let t=class t{constructor(i){this.promotionService=i,this.potentialPromotions$=this.promotionService.getPotentialOrderPromotionsFromCart(),this.hasPromotions$=this.potentialPromotions$.pipe(s(o=>!!o&&o.length>0))}};t.\u0275fac=function(o){return new(o||t)(g(h))},t.\u0275cmp=f({type:t,selectors:[["sip-cart-potential-promotions"]],decls:3,vars:3,consts:[[1,"potential-order-promotions"],[4,"ngIf"],[1,"cartpotproline",3,"innerHtml"],["class","promotion-message",3,"innerHTML",4,"ngFor","ngForOf"],[1,"promotion-message",3,"innerHTML"]],template:function(o,y){o&1&&(l(0,"div",0),c(1,q,5,6,"ng-container",1),p(2,"async"),d()),o&2&&(n(),r("ngIf",a(2,1,y.hasPromotions$)))},dependencies:[P,D,u,N],encapsulation:2,changeDetection:0});let e=t;return e})();function G(e,t){if(e&1&&(v(0),l(1,"span",2),M(2),d(),C()),e&2){let m=t.$implicit;n(2),$(m.description)}}var L=(()=>{let t=class t{constructor(i){this.promoService=i}ngOnInit(){this.appliedPromotions$=this.promoService.getAppliedOrderPromotionsFromCart()}};t.\u0275fac=function(o){return new(o||t)(g(h))},t.\u0275cmp=f({type:t,selectors:[["sip-cart-applied-promotions"]],decls:3,vars:3,consts:[[1,"d-flex","d-flex--column"],[4,"ngFor","ngForOf"],[1,"applied-order-promotions"]],template:function(o,y){o&1&&(l(0,"div",0),c(1,G,3,1,"ng-container",1),p(2,"async"),d()),o&2&&(n(),r("ngForOf",a(2,1,y.appliedPromotions$)))},dependencies:[P,u],encapsulation:2,changeDetection:0});let e=t;return e})();var tt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=H({type:t}),t.\u0275inj=I({providers:[E({cmsComponents:{PotentialPromotionsComponent:{component:b},PromotionsComponent:{component:L}}})],imports:[j,_]});let e=t;return e})();export{tt as SipCartPromotionsModule};
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.