PageSourceSearch

https://digi.hlf.com.sg/hlf/sg/ib/6432.35cce3bbccc5be73.js

js hlf.com.sg collected 2026-10-01 14:19:16 UTC 8,937 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkweb_showroom=self.webpackChunkweb_showroom||[]).push([[6432],{6432:(ot,p,n)=>{n.r(p),n.d(p,{SavedVouchersListPageModule:()=>tt});var C=n(16510),M=n(78645),b=n(65619),c=n(59773),m=n(44441),z=n(99080),f=n(32181),y=n(37398),$=n(48180),R=n(99397),U=n(2910),Z=n(97752),u=n(22520),t=n(19212),O=n(13423),T=n(83106),w=n(86687),D=n(76224),I=n(33730),A=n(25982),L=n(71365),g=n(96814),N=n(70855),V=n(37415),x=n(10095),X=n(33410),E=n(2274),S=n(82962),J=n(82669);function Q(i,d){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(),t.hij(" ",t.lcZ(2,1,"your_vouchers")," "))}function H(i,d){if(1&i&&(t.TgZ(0,"div",9),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(),t.hij(" ",e.statusMessage," ")}}function Y(i,d){if(1&i&&t._UZ(0,"img",18)(1,"img",19),2&i){const e=t.oxw().$implicit;t.Q6J("src",null==e?null:e.imagePath,t.LSH),t.xp6(),t.Q6J("src",null==e?null:e.merchantLogoFilePath,t.LSH)}}const r=()=>({span:24}),B=()=>({span:12}),h=()=>({span:8});function F(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",4)(1,"nz-card",13),t.NdJ("click",function(){const l=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.goToVoucherDetail(l))}),t._UZ(2,"nz-card-meta",14),t.TgZ(3,"div",15),t._UZ(4,"span",16),t._uU(5),t.ALo(6,"translate"),t.ALo(7,"date"),t.qZA()(),t.YNc(8,Y,2,2,"ng-template",null,17,t.W1O),t.qZA()}if(2&i){const e=d.$implicit,o=t.MAs(9);t.Q6J("nzXs",t.DdM(15,r))("nzSm",t.DdM(16,B))("nzMd",t.DdM(17,h))("nzLg",t.DdM(18,h))("nzXl",t.DdM(19,h))("nzXXl",t.DdM(20,h)),t.xp6(),t.Q6J("nzCover",o),t.xp6(),t.s9C("nzTitle",e.productName),t.xp6(3),t.AsE(" ",t.lcZ(6,10,"expiring_on")," ",t.xi3(7,12,e.expiryDate,"dd MMM yyyy")," ")}}const K=()=>[48,48];function W(i,d){if(1&i&&(t.TgZ(0,"div",10)(1,"div",11),t.YNc(2,F,10,21,"div",12),t.ALo(3,"async"),t.qZA()()),2&i){const e=t.oxw();
1t.xp6(),t.Q6J("nzGutter",t.DdM(4,K)),t.xp6(),t.Q6J("ngForOf",null==t.lcZ(3,2,e.getUserRewardList$)[0]||null==t.lcZ(3,2,e.getUserRewardList$)[0].body?null:t.lcZ(3,2,e.getUserRewardList$)[0].body.reservationList)}}function j(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"nz-pagination",20),t.NdJ("nzPageIndexChange",function(a){t.CHM(e);const l=t.oxw();return t.KtG(l.toLoadNextData(a))}),t.ALo(2,"async"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(),t.Q6J("nzPageIndex",e.defaultIndex)("nzTotal",null==t.lcZ(2,3,e.getUserRewardList$)[0]||null==t.lcZ(2,3,e.getUserRewardList$)[0].body?null:t.lcZ(2,3,e.getUserRewardList$)[0].body.totalCount)("nzPageSize",12)}}let G=(()=>{class i{constructor(e,o,a,l,v,P,et,nt){this.ref=e,this.store=o,this.modalService=a,this.slCommonService=l,this.topHeaderBreadcrumbService=v,this.getUserRewardListEntityService=P,this.authenticateEntityService=et,this.translate=nt,this.isVisible=!1,this.defaultIndex=1,this.topHeaderBreadcrumbService.setTopHeaderBreadCrumbList([{translateKeyName:"rewards",path:"/side/RewardsPage"},{translateKeyName:"saved_vouchers",path:""}]),this.unsubscribe$=new M.x,this.isNoVoucherDisplay$=new b.X(!1),this.getUserRewardList$=P.entities$,this.getUserRewardListEntityService.clearCache(),this.getUserRewardListLoading$=this.getUserRewardListEntityService.loading$,this.getUserRewardListEntityService.loading$.pipe((0,c.R)(this.unsubscribe$)).subscribe(s=>{}),this.getUserRewardListEntityService.errors$.pipe((0,c.R)(this.unsubscribe$),(0,m.u)((0,z.H)(0))).subscribe(s=>{this.store.dispatch(u.KN({payload:s.payload.data.error.error}))}),this.getUserRewardListEntityService.entities$.pipe((0,c.R)(this.unsubscribe$),(0,f.h)(s=>s&&s.length>0),(0,y.U)(s=>s[0])).subscribe(s=>{if(s&&s.body&&s.body.headerResponseBean.statusCode!==U.R.RESPONSE_CODE_SUCCESS)this.store.dispatch(u.KN({payload:s}));else if(this.totalCount=s?.body?.totalCount,this.isNoVoucherDisplay$.next(0==this.totalCount),s.body&&null===s.body?.reservationList){const it=this.translate.instant("there_is_no_voucher");this.statusMessage=it}}),this.authenticateEntityService.loading$.pipe((0,c.R)(this.unsubscribe$)).subscribe(s=>{}),this.authenticateEntityService.errors$.pipe((0,c.R)(this.unsubscribe$),(0,m.u)((0,z.H)(0))).subscribe(s=>{this.store.dispatch(u.KN({payload:s.payload.data.error.error}))}),this.authenticateEntityService.entities$.pipe((0,c.R)(this.unsubscribe$),(0,f.h)(s=>s&&s.length>0),(0,y.U)(s=>s[0])).subscribe(s=>{this.slCommonService.isSuccessResponse(s)&&(this.customerProfile=s.body.customerProfile)})}ngOnInit(){this.getUserRewardListWs()}getUserRewardListWs(e){this.slCommonService.prepareWebReqParam({startIdx:e??0,amtIdx:12,sortFlag:"NW",isPVFlag:!1,status:["R","N"]}).pipe((0,$.q)(1),(0,R.b)(a=>{this.getUserRewardListEntityService.getWithQuery(a)})).subscribe()}goToVoucherDetail(e){this.modalService.create({nzContent:Z.y,nzData:{rewardDetails:{pageTitle:"SavedVouchersListPage",catalogueId:e.catalogueId,catalogueProductId:e.catalogueProductId,programId:e.programId,detailId:e.detailId}},nzStyle:{width:"70%"},nzFooter:null,nzCentered:!0})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.unsubscribe(),this.topHeaderBreadcrumbService.setTopHeaderBreadCrumbList(null)}action(){window.open("https://www.hlf.com.sg/personal/services/hlf-fastpay.php","_blank")}toLoadNextData(e){this.pageValue=e;const o=12*(e-1);this.getUserRewardListWs(o>0?o:0)}static{this.\u0275fac=function(o){return new(o||i)(t.Y36(t.sBO),t.Y36(O.yh),t.Y36(T.Sf),t.Y36(w.Z),t.Y36(D.w),t.Y36(I.P),t.Y36(A.T),t.Y36(L.sK))}}static{this.\u0275cmp=t.Xpm({type:i,selectors:[["saved-vouchers-list"]],decls:17,vars:30,consts:[[1,"std-main-content-container"],[1,"std-content-container"],[3,"nzSpinning"],["nz-row","","nzJustify","space-between","nzAlign","middle"],["nz-col","",3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[1,"top-desc"],[4,"ngIf"],["class","no-voucher-div",4,"ngIf"],["class","voucher-list",4,"ngIf"],[1,"no-voucher-div"],[1,"voucher-list"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nzHoverable","",3,"nzCover","click"],[3,"nzTitle"],[1,"expire-date"],["nz-icon","","nzType","calendar","nzTheme","fill"],["coverTemplate",""],[1,"voucher-img",3,"src"],[1,"merchant-img",3,"src"],[3,"nzPageIndex","
1nzTotal","nzPageSize","nzPageIndexChange"]],template:function(o,a){1&o&&(t.TgZ(0,"div",0)(1,"nz-content",1)(2,"nz-spin",2),t.ALo(3,"async"),t.TgZ(4,"div",3)(5,"div",4)(6,"div",5),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.YNc(9,Q,3,3,"div",6),t.ALo(10,"async"),t.YNc(11,H,2,1,"div",7),t.ALo(12,"async"),t.ALo(13,"async"),t.YNc(14,W,4,5,"div",8)(15,j,3,5,"div",6),t.ALo(16,"async"),t.qZA()()()),2&o&&(t.xp6(2),t.Q6J("nzSpinning",t.lcZ(3,12,a.getUserRewardListLoading$)),t.xp6(3),t.Q6J("nzXs",t.DdM(24,r))("nzSm",t.DdM(25,r))("nzMd",t.DdM(26,r))("nzLg",t.DdM(27,r))("nzXl",t.DdM(28,r))("nzXXl",t.DdM(29,r)),t.xp6(2),t.Oqu(t.lcZ(8,14,"saved_vouchers")),t.xp6(2),t.Q6J("ngIf",null!==(null==t.lcZ(10,16,a.getUserRewardList$)[0]||null==t.lcZ(10,16,a.getUserRewardList$)[0].body?null:t.lcZ(10,16,a.getUserRewardList$)[0].body.reservationList)),t.xp6(2),t.Q6J("ngIf",null===(null==t.lcZ(12,18,a.getUserRewardList$)[0]||null==t.lcZ(12,18,a.getUserRewardList$)[0].body?null:t.lcZ(12,18,a.getUserRewardList$)[0].body.reservationList)||t.lcZ(13,20,a.isNoVoucherDisplay$)),t.xp6(3),t.Q6J("ngIf",!a.statusMessage),t.xp6(),t.Q6J("ngIf",!t.lcZ(16,22,a.isNoVoucherDisplay$)))},dependencies:[g.sg,g.O5,N.w,V.Ls,x.t3,x.SK,X.OK,E.dE,S.bd,S.l7,J.W,L.X$,g.Ov,g.uU],styles:[".std-content-container[_ngcontent-%COMP%]   .top-desc[_ngcontent-%COMP%]{color:#000;font-size:1rem;font-weight:700}.std-content-container[_ngcontent-%COMP%]   .col-right[_ngcontent-%COMP%]{text-align:right}.std-content-container[_ngcontent-%COMP%]   .voucher-list[_ngcontent-%COMP%]{padding-top:20px}.std-content-container[_ngcontent-%COMP%]   .expire-date[_ngcontent-%COMP%]{padding-top:10px}.std-content-container[_ngcontent-%COMP%]   .voucher-img[_ngcontent-%COMP%]{min-height:200px;height:50px;background-size:cover;background-position:center}.std-content-container[_ngcontent-%COMP%]   .merchant-img[_ngcontent-%COMP%]{border-radius:50%;border:1px solid #f5f5f5;width:60px;height:60px;position:absolute;bottom:33%;left:0;z-index:3}.std-content-container[_ngcontent-%COMP%]   nz-pagination[_ngcontent-%COMP%]{margin:20px auto;justify-content:center;display:flex}.std-content-container[_ngcontent-%COMP%]   .desc_3[_ngcontent-%COMP%]{color:#000;text-decoration:underline;cursor:pointer}.std-content-container[_ngcontent-%COMP%]   .desc_3[_ngcontent-%COMP%]:hover{color:#000;font-family:lato-bold}.std-content-container[_ngcontent-%COMP%]   .no-voucher-div[_ngcontent-%COMP%]{height:20vh;display:flex;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:16px}"],changeDetection:0})}}return i})();var _=n(64190),k=n(393);const q=[{path:"",component:G}];let tt=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275mod=t.oAB({type:i})}static{this.\u0275inj=t.cJS({imports:[_.Bz.forChild(q),C.p,k.I]})}}return i})()}}]);

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.