1import{a as A}from"./chunk-2CORNZ4Z.js";import{a as I,b as N,c as R,d as z}from"./chunk-YH5XXXX2.js";import{b as $}from"./chunk-YKMRCUPE.js";import"./chunk-KAYLHNSB.js";import"./chunk-MAWTGSOV.js";import"./chunk-YX5644MK.js";import"./chunk-YNFHIKTY.js";import{a as L}from"./chunk-QTKO4OJL.js";import"./chunk-KW7DBSQZ.js";import"./chunk-WOCNH4S2.js";import"./chunk-QUJFQN2Y.js";import"./chunk-CBFCXQQU.js";import"./chunk-XONEATYL.js";import"./chunk-2U7I3RVY.js";import"./chunk-GPFZFKHR.js";import"./chunk-AL7KSTRH.js";import"./chunk-6K6CFIK5.js";import"./chunk-FBE7CBTX.js";import"./chunk-VBHKAOCH.js";import{d as k}from"./chunk-G6NUINFV.js";import"./chunk-ACYRCTM3.js";import{a as w}from"./chunk-QILK5OU2.js";import"./chunk-3ZWQCLTE.js";import"./chunk-IGBZWKDE.js";import"./chunk-LN4SZHFK.js";import"./chunk-WX4XIJKH.js";import"./chunk-XYVMHRXA.js";import"./chunk-UAYYDAPC.js";import"./chunk-N4V3NAGB.js";import"./chunk-VZWY4NEG.js";import"./chunk-WI5MSH4N.js";import"./chunk-DQIYUWUV.js";import"./chunk-CKP3SGE2.js";import"./chunk-EBURTGYG.js";import{X as U}from"./chunk-2XT7CFQ4.js";import"./chunk-FEOELD27.js";import"./chunk-TPTHGKB6.js";import"./chunk-QJGIS7D3.js";import"./chunk-TGZ4QTSQ.js";import"./chunk-7WB7YB25.js";import"./chunk-7KGURMOZ.js";import{Q as D,aa as E}from"./chunk-GDICY5PE.js";import"./chunk-J4AQYUSP.js";import{$b as x,Fb as S,Ic as O,Kb as d,Nc as s,Pc as m,Zb as P,ad as y,bc as f,cc as b,dc as h,ec as p,fc as i,gc as o,hc as v,lc as g,mc as _,nb as r,nc as M,nd as T,wb as u,zc as l}from"./chunk-UHCKRBMZ.js";import"./chunk-NWGRQJNB.js";import"./chunk-WDBT6XOS.js";import"./chunk-I7HT3WV2.js";import"./chunk-NJ6U53JR.js";import"./chunk-IGDUUSDA.js";import"./chunk-4WFVMWDK.js";import"./chunk-I7A5XM6S.js";import"./chunk-K7C27B2F.js";import"./chunk-PVMEIX5M.js";import"./chunk-DVVH2KKN.js";import"./chunk-NV3QH4JK.js";import"./chunk-42C7ZIID.js";import"./chunk-YJXU6CME.js";var j=n=>
1({"is-disabled":n});function W(n,t){n&1&&M(0)}function B(n,t){if(n&1&&(i(0,"ion-content",6)(1,"div")(2,"app-new-mobile-header",7),g(3,8),i(4,"div",9),s(5,"My Coupons"),o(),_(),o()(),i(6,"div",10)(7,"div",11),v(8,"lib-user-tabs"),o(),d(9,W,1,0,"ng-container",12),o()()),n&2){l(3);let e=O(3);p("fullscreen",!0),r(2),p("hmColor","secondary")("showClose",!1),r(7),p("ngTemplateOutlet",e)}}function H(n,t){n&1&&(g(0),d(1,B,10,4,"ion-content",5),_())}function q(n,t){n&1&&M(0)}function G(n,t){if(n&1&&(g(0),i(1,"app-new-mobile-header",7),g(2,8),i(3,"div",9),s(4,"My Coupons"),o(),_(),o(),i(5,"div",10)(6,"div",11),v(7,"lib-user-tabs"),o(),d(8,q,1,0,"ng-container",12),o(),_()),n&2){l(2);let e=O(3);r(),p("hmColor","secondary")("showClose",!1),r(7),p("ngTemplateOutlet",e)}}function J(n,t){n&1&&(g(0),d(1,H,2,0,"ng-container",3)(2,G,9,3,"ng-container",4),_())}function K(n,t){n&1&&M(0)}function Q(n,t){if(n&1&&(i(0,"div",13)(1,"div",14),d(2,K,1,0,"ng-container",12),o()()),n&2){l();let e=O(3);r(2),p("ngTemplateOutlet",e)}}function V(n,t){if(n&1&&(i(0,"li"),s(1),o()),n&2){let e=t.$implicit;r(),m(" ",e," ")}}function X(n,t){if(n&1&&(i(0,"div",18)(1,"div",19)(2,"div",20)(3,"div",21),s(4),o(),i(5,"div",22),s(6),o()(),i(7,"div",23)(8,"div",24),s(9),o(),i(10,"div",25)(11,"div",26)(12,"div",27)(13,"ul"),b(14,V,2,1,"li",null,f),o()()()()()()()),n&2){let e=t.$implicit;p("ngClass",y(4,j,!(e!=null&&e.isActive))),r(4),m(" ",e==null?null:e.title," "),r(2),m(" ",e==null?null:e.displayName," "),r(3),m(" Start Date: ",e==null?null:e.startDate," "),r(5),h(e==null?null:e.textList)}}function Y(n,t){if(n&1&&(i(0,"div",16),b(1,X,16,6,"div",18,f),o()),n&2){let e=l(3);r(),h(e.couponContainers)}}function Z(n,t){n&1&&(i(0,"div",17)(1,"div",28),s(2,"No coupons are available "),o()())}function nn(n,t){if(n&1&&(i(0,"div",15),P(1,Y,3,0,"div",16)(2,Z,3,0,"div",17),o()),n&2){let e=l(2);r(),x((e.couponContainers==null?null:e.couponContainers.length)>0?1:2)}}function en(n,t){if(n&1&&P(0,nn,3,1,"div",15),n&2){let e=l();x(e.isLoading?-1:0)}}var mn=(()=>{let t=class t{constructor(a,c,C){this.userDashboardService=a,this.toastService=c,this.b2bDeviceUtilService=C,this.isLoading=!0}ngOnInit(){this.b2bDeviceUtilService.isServer()||this.init()}init(){this.getUserDataSubscription$=this.userDashboardService.getUserData().subscribe({next:a=>{this.user=a;let c=[];if(this.user?.userCouponConfig?.length>0){for(let C of this.user?.userCouponConfig)if(C?.childCoupons?.length>0)for(let F of C?.childCoupons)c?.push(F?.couponId);c?.length>0?this.getCoupons(c):this.isLoading=!1}else this.isLoading=!1},error:a=>{this.toastService.showApiError(a),this.isLoading=!1}})}getCoupons(a){this.couponSubscription$=this.userDashboardService.getMyCoupons(a).subscribe({next:c=>{this.couponContainers=c,this.isLoading=!1},error:c=>{this.isLoading=!1}})}ngOnDestroy(){this.getUserDataSubscription$&&this.getUserDataSubscription$?.unsubscribe(),this.couponSubscription$&&this.couponSubscription$?.unsubscribe()}};t.\u0275fac=function(c){return new(c||t)(u(L),u(k),u(w))},t.\u0275cmp=S({type:t,selectors:[["lib-user-coupon"]],decls:4,vars:0,consts:[["couponTemplate",""],[4,"appDesktopNoRender"],["class","",4,"appDesktopRender"],[4,"appWebsiteNoRender"],[4,"appWebsiteRender"],[3,"fullscreen",4,"appDesktopNoRender"],[3,"fullscreen"],[3,"hmColor","showClose"],["mainMiddleContainer",""],[1,"page-title"],[1,"coupon-template"],[1,"tab-body"],[4,"ngTemplateOutlet"],[1,""],[1,"desktop-container"],[1,"bg-cpn"],[1,"cpn-grid"],[1,"no-cpn-wrap"],[3,"ngClass"],[1,"cpn-box"],[1,"head-box"],[1,"title"],[1,"code"],[1,"body-box"],[1,"date"],[1,"list"],[1,"offers"],[1,"desc"],[1,"title","flex-container","ion-align-items-center","ion-justify-content-center"]],template:function(c,C){c&1&&d(0,J,3,0,"ng-container",1)(1,Q,3,1,"div",2)(2,en,1,1,"ng-template",null,0,T)},dependencies:[$,E,I,N,R,z,D,U,A],styles:["[_nghost-%COMP%] ion-content[_ngcontent-%COMP%]{--padding-bottom: env(safe-area-inset-bottom)}@media screen and (max-width:991px){[_nghost-%COMP%] .coupon-template[_ngcontent-%COMP%]{padding:0 15px;margin-top:20px}}[_nghost-%COMP%] .bg-cpn[_ngcontent-%COMP%]{background:var(--ion-color-primary);padding:15px;border-radius:6px;border:1px solid #dddddd}[_nghost-%COMP%] .no-cpn-wrap[_ngcontent-%COMP%]{background:var(--ion-color-primary);padding:15px;border-radius:6px;border:1px solid #dddddd}[_nghost-%COMP%] .no-cpn-wrap[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:var(--font-size-15);color:var(--secondary-color);font-weight:600}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:15px}@media screen and (max-width:991px){[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media screen and (max-width:767px){[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .is-disabled[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%]{border:1px solid #dddddd}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .is-disabled[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .head-box[_ngcontent-%COMP%]{background:#ddd}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .is-disabled[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .head-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#989898}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .is-disabled[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .head-box[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{color:#989898;background-color:var(--ion-color-primary)}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .is-disabled[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .body-box[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{color:#989898}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .is-disabled[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .offers[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#989898}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .is-disabled[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .offers[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]::marker{color:#989898}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%]{border:1px solid #880342;border-radius:4px;box-shadow:#0000003d 0 3px 8px}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .head-box[_ngcontent-%COMP%]{background:linear-gradient(45deg,#72014a,#d20c28);padding:15px}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .head-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:var(--font-size-16);color:var(--ion-color-primary);font-family:var(--ion-font-family-extrabold);text-align:center;margin-bottom:15px;line-height:1.5em}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .head-box[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{font-size:var(--font-size-14);color:#72014a;text-align:center;background-color:var(--ion-color-primary);padding:10px;margin:15px auto 0;width:130px}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .body-box[_ngcontent-%COMP%]{padding:15px;background:var(--ion-color-primary);border-radius:0 0 4px 4px}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .body-box[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{font-size:var(--font-size-14);color:#72014a;margin-bottom:8px}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{margin:15px 0 0}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .offers[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0 15px;margin:0}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .offers[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:5px;line-height:18px;font-size:12px;color:#72014a}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .offers[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]::marker{color:#72014a}[_nghost-%COMP%] .cpn-grid[_ngcontent-%COMP%] .cpn-box[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .offers[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{margin-bottom:0}@media screen and (max-width:991px){[_nghost-%COMP%] .tab-body[_ngcontent-%COMP%]{margin:0 0 20px}}"]});let n=t;return n})();export{mn as default};
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.