PageSourceSearch

https://duniagames.co.id/static/1698.56f42419cf85ffa3.js

js duniagames.co.id collected 2026-10-02 06:39:32 UTC 138,285 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdunia_games=self.webpackChunkdunia_games||[]).push([[1698],{32305(st,Y,o){o.d(Y,{C:()=>j});var w,t=o(17705),L=o(92784),T=o(32881),F=o(49870),e=o(77540),z=o(42110),b=o(58211),U=o(93683),B=o(3012);const V=m=>["/profile","transaction-history",m],v=()=>["/top-up/elisa/congrats"],k=(m,h)=>({vendorName:m,trxId:h}),W=m=>[m];function G(m,h){if(1&m&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&m){const p=t.XpG().$implicit;t.R7$(),t.JRh(null==p?null:p.status)}}function P(m,h){if(1&m){const p=t.RV6();t.j41(0,"a",15),t.nI1(1,"addlang"),t.bIt("click",function(S){return t.eBV(p),t.Njj(S.stopPropagation())}),t.EFF(2),t.nI1(3,"translation"),t.nI1(4,"async"),t.k0s()}if(2&m){const p=t.XpG().$implicit;t.Y8G("routerLink",t.bMT(1,3,t.lJ4(10,v)))("queryParams",t.l_i(11,k,null==p||null==p.detailInfo?null:p.detailInfo.paymentType,null==p?null:p.transactionCode)),t.R7$(2),t.SpI(" ",t.bMT(4,8,t.i5U(3,5,"pay_now_label_transactionHistory","transactionhistory"))," ")}}function I(m,h){if(1&m){const p=t.RV6();t.j41(0,"a",16),t.nI1(1,"addlang"),t.bIt("click",function(S){return t.eBV(p),t.Njj(S.stopPropagation())}),t.EFF(2),t.nI1(3,"translation"),t.nI1(4,"async"),t.k0s()}if(2&m){const p=t.XpG().$implicit;t.Y8G("routerLink",t.bMT(1,2,t.eq3(9,W,"/top-up/congrats/"+(null==p?null:p.transactionCode)))),t.R7$(2),t.SpI(" ",t.bMT(4,7,t.i5U(3,4,"pay_now_label_transactionHistory","transactionhistory"))," ")}}function _(m,h){if(1&m&&(t.j41(0,"div",6),t.nI1(1,"addlang"),t.j41(2,"p",7),t.EFF(3),t.nI1(4,"date"),t.j41(5,"span"),t.EFF(6),t.k0s()(),t.j41(7,"div",8)(8,"p"),t.nrm(9,"img",9),t.j41(10,"span",10),t.EFF(11),t.k0s()(),t.j41(12,"p",11),t.EFF(13),t.nI1(14,"number"),t.nI1(15,"myCurrency"),t.DNE(16,G,2,1,"span",12)(17,P,5,14,"a",13)(18,I,5,11,"a",14),t.k0s()()()),2&m){const p=h.$implicit,A=t.XpG(2);t.Y8G("routerLink",t.bMT(1,12,t.eq3(23,V,null==p?null:p.transactionCode))),t.R7$(3),t.SpI(" ",t.i5U(4,14,null==p?null:p.datePurchase,"dd MMM yyyy"),""),t.R7$(3),t.JRh(null==p?null:p.transactionCode),t.R7$(3),t.Y8G("defaultImage",A.defaultImage)("lazyLoad",null==p||null==p.detailInfo?null:p.detailInfo.productImage)("useSrcset",!0),t.R7$(2),t.Lme("",null==p||null==p.detailInfo?null:p.detailInfo.productName," : ",null==p||null==p.detailInfo?null:p.detailInfo.itemName,""),t.R7$(2),t.SpI(" ","dg_diamond"===(null==p||null==p.detailInfo?null:p.detailInfo.paymentType)?t.brH(14,17,null==p?null:p.total,"","id")+" DG-Rings":t.bMT(15,21,null==p?null:p.total)," "),t.R7$(3),t.Y8G("ngIf",!A.isPendingVAPayment(p)&&!A.isPendingDigiposPayment(p)),t.R7$(),t.Y8G("ngIf",A.isPendingVAPayment(p)),t.R7$(),t.Y8G("ngIf",A.isPendingDigiposPayment(p))}}function x(m,h){if(1&m){const p=t.RV6();t.j41(0,"div",4),t.nI1(1,"async"),t.bIt("scrolled",function(){t.eBV(p);const S=t.XpG();return t.Njj(S.loadMoreAll())}),t.DNE(2,_,19,25,"div",5),t.k0s()}if(2&m){const p=t.XpG();t.Y8G("initiateScrollDisabled",t.bMT(1,5,p.isLoad$))("infiniteScrollDistance",2)("infiniteScrollThrottle",100)("scrollWindow",!1),t.R7$(2),t.Y8G("ngForOf",p.allHistoryMobile)}}function u(m,h){1&m&&(t.j41(0,"div",17),t.nrm(1,"div",18),t.k0s())}function D(m,h){1&m&&(t.j41(0,"p",19),t.nrm(1,"img",20),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translation"),t.nI1(5,"async"),t.k0s()()),2&m&&(t.R7$(3),t.JRh(t.bMT(5,4,t.i5U(4,1,"transaction_not_found","transactionhistory"))))}const $=L.c.defaultImage;class j{constructor(){this.defaultImage=$,this.data=[],this.loadMore=new t.bkB,this.allHistoryMobile=[],this.VA_PAYMENTS=["bank_bca","bank_mandiri","alfamart_nuon","indomaret_nuon"],this.DIGIPOS_PAYMENT=["digipos"],this.PENDING_PAYMENT_STATUS=["PENDING"]}ngOnInit(){}ngOnChanges(h){this.allHistoryMobile=this.data}isPendingVAPayment(h){var p;return this.PENDING_PAYMENT_STATUS.includes(null==h?void 0:h.status)&&this.VA_PAYMENTS.includes(null==h||null===(p=h.detailInfo)||void 0===p?void 0:p.paymentType)}isPendingDigiposPayment(h){var p;return this.PENDING_PAYMENT_STATUS.includes(null==h?void 0:h.status)&&this.DIGIPOS_PAYMENT.includes(null==h||null===(p=h.detailInfo)||void 0===p?void 0:p.paymentType)}loadMoreAll(){this.loadMore.emit(null)}}(w=j).\u0275fac=function(h){return new(h||w)},w.\u0275cmp=t.VBU({type:w,selectors:[["app-list-history"]],inputs:{data:"data",isLoad$:[0,"isLoad","isLoad$"]},outputs:{loadMore:"loadMore"},standalone:!1,features:[t.OA$],decls:6,vars:7,consts:[[1,"wrapper-list-history"],["class","list-data","infinite-scroll","",3,"initiateScrollDisabled","infiniteScrollDistance","infiniteScrollThrottle","scrollWindow","scrolled",4,"ngIf"],["class","loader-regions-wrap keyups",4,"ngIf"],["class","nofoundtable",4,"ngIf"],["infinite-scroll","",1,"list-data",3,"scrolled","initiateScrollDisabled","infiniteScrollDistance","infiniteScrollThrottle","scrollWindow"],["class","card",3,"routerLink",4,"ngFor","ngForOf"],[1,"card",3,"routerLink"],[1,"status"],[1,"details"],["alt","Voucher DG",3,"defaultImage","lazyLoad","useSrcset"],[1,"desc"],[1,"amount"],[4,"ngIf"],["class","btn-red-paynow",3,"routerLink","queryParams","click",4,"ngIf"],["class","btn-red-paynow",3,"routerLink","click",4,"ngIf"],[1,"btn-red-paynow",3,"click","routerLink","queryParams"],[1,"btn-red-paynow",3,"click","routerLink"],[1,"loader-regions-wrap","keyups"],[1,"loader"],[1,"nofoundtable"],["src","assets/v2/images/components/notfound.png","alt","Not Found"]],template:function(h,p){1&h&&(t.j41(0,"div",0),t.DNE(1,x,3,7,"div",1)(2,u,2,0,"div",2),t.nI1(3,"async"),t.DNE(4,D,6,6,"p",3),t.nI1(5,"async"),t.k0s()),2&h&&(t.R7$(),t.Y8G("ngIf",(null==p.allHistoryMobile?null:p.allHistoryMobile.length)>=1),t.R7$(),t.Y8G("ngIf",t.bMT(3,3,p.isLoad$)),t.R7$(2),t.Y8G("ngIf",(null==p.allHistoryMobile?null:p.allHistoryMobile.length)<1&&!t.bMT(5,5,p.isLoad$)))},dependencies:[T.Sq,T.bT,F.Wk,e.D,z.Je,T.Jj,T.QX,T.vh,b.c,U.C,B.y],styles:['.justify-content-left[_ngcontent-%COMP%]{justify-content:left!important}.justify-content-center[_ngcontent-%COMP%]{justify-content:center!important}.justify-content-right[_ngcontent-%COMP%]{justify-content:right!important}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between!important}.justify-content-flex-end[_ngcontent-%COMP%]{justify-content:flex-end!important}.text-decoration-line-through[_ngcontent-%COMP%]{text-decoration:line-through!important}.text-decoration-underline[_ngcontent-%COMP%]{text-decoration:underline!important}.text-decoration-overline[_ngcontent-%COMP%]{text-decoration:overline!important}.text-decoration-none[_ngcontent-%COMP%]{text-decoration:none!important}.align-self-center[_ngcontent-%COMP%]{align-self:center}.cursor-no-drop[_ngcontent-%COMP%]{cursor:no-drop!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer!important}.text-left[_ngcontent-%COMP%]{text-align:left!important}.text-center[_ngcontent-%COMP%]{text-align:center!important}.text-right[_ngcontent-%COMP%]{text-align:right!important}
1.text-justify[_ngcontent-%COMP%]{text-align:justify!important}.v-align-top[_ngcontent-%COMP%]{vertical-align:top!important}.v-align-middle[_ngcontent-%COMP%]{vertical-align:middle!important}.v-align-bottom[_ngcontent-%COMP%]{vertical-align:bottom!important}.float-left[_ngcontent-%COMP%]{float:left!important}.float-right[_ngcontent-%COMP%]{float:right!important}@media (min-width: 1200px){.cdk-overlay-pane[_ngcontent-%COMP%]{max-width:unset!important}}@media (min-width: 768px) and (max-width: 1365px){.cdk-overlay-pane[_ngcontent-%COMP%]{max-width:unset!important}}@media (min-width: 1200px){.cdk-overlay-pane.mat-mdc-dialog-panel[_ngcontent-%COMP%]{max-width:unset!important}}@media (min-width: 768px) and (max-width: 1365px){.cdk-overlay-pane.mat-mdc-dialog-panel[_ngcontent-%COMP%]{max-width:unset!important}}.wrapper-list-history[_ngcontent-%COMP%]   p.nofoundtable[_ngcontent-%COMP%]{height:300px;width:100%;font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:center;color:#b4b4c0;position:relative;margin-top:50px}.wrapper-list-history[_ngcontent-%COMP%]   p.nofoundtable[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:118px;height:118px;margin:auto;position:absolute;top:0;left:0;right:0}.wrapper-list-history[_ngcontent-%COMP%]   p.nofoundtable[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;top:140px;left:0;right:0;opacity:.9}.wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap.keyups[_ngcontent-%COMP%]{overflow:hidden;margin-top:30px}.wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%], .wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]:before, .wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]:after{border-radius:50%;width:15px;height:15px;animation-duration:1s;animation-fill-mode:both;animation-name:_ngcontent-%COMP%_load7;animation-timing-function:ease-in-out}.wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{color:#d0021b;font-size:10px;margin:0 auto 55px;position:relative;text-indent:-9999em;transform:translateZ(0);animation-delay:-.16s}.wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]:before, .wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0}.wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]:before{left:-3em;animation-delay:-.32s}.wrapper-list-history[_ngcontent-%COMP%]   .loader-regions-wrap[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]:after{left:3em}@keyframes _ngcontent-%COMP%_load7{0%,80%,to{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em}}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]{height:700px;overflow-y:auto}@media (max-width: 767px){.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]{height:800px}}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:10px;background:#00000026}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background:#4a4a4a}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{cursor:pointer;width:100%;height:152px;padding:16px;border-radius:8px;border:solid 1px #1d1f23;transition:all .3s ease-in-out;background-color:#1d1f23;margin-bottom:16px}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:hover{border-color:#fff;transition:all .3s ease-in-out}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   p.status[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;color:#69707e}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   p.status[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{float:right}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{margin-top:10px}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{position:relative;font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;color:#fff;display:flex}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:32px;height:32px;border:solid 1px #ffffff;border-radius:100%}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span.desc[_ngcontent-%COMP%]{width:calc(100% - 32px);padding-left:13px;margin-top:3px;height:42px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   p.amount[_ng
1content-%COMP%]{font-family:Montserrat,sans-serif;font-size:14px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;color:#fff;margin-top:20px;width:100%;display:flex;align-items:center}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   p.amount[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:10px;font-weight:400;line-height:1.6;opacity:.5;border-radius:8px;background-color:#272a2e;padding:5px 8px 4px;margin-left:auto}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   p.amount[_ngcontent-%COMP%]   .btn-red-paynow[_ngcontent-%COMP%]{background-color:#d0021b;color:#fff;font-weight:800;min-width:120px;text-align:center;display:flex;font-size:12px;padding:8px 16px;border-radius:56px;margin-left:auto;justify-content:center}.wrapper-list-history[_ngcontent-%COMP%]   .list-data[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   p.amount[_ngcontent-%COMP%]   .btn-red-paynow[_ngcontent-%COMP%]:hover{text-decoration:none}']})},29659(st,Y,o){o.d(Y,{g:()=>I});var b,t=o(17705),L=o(86005),T=o(9619),F=o(45312),e=o(32881),z=o(58211);function U(_,x){if(1&_&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&_){const u=t.XpG(2);t.R7$(),t.JRh(u.programs[0])}}function B(_,x){if(1&_&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&_){const u=x.$implicit;t.R7$(),t.JRh(u)}}function w(_,x){if(1&_&&(t.j41(0,"ol"),t.DNE(1,B,2,1,"li",5),t.k0s()),2&_){const u=t.XpG(2);t.R7$(),t.Y8G("ngForOf",u.programs)}}function V(_,x){if(1&_&&(t.j41(0,"div",4)(1,"h2"),t.EFF(2),t.nI1(3,"translation"),t.nI1(4,"async"),t.k0s(),t.DNE(5,U,2,1,"p")(6,w,2,1,"ol"),t.k0s()),2&_){const u=t.XpG();t.R7$(2),t.JRh(t.bMT(4,5,t.i5U(3,2,"myaffprog","affiliate"))),t.R7$(3),t.vxM((null==u.programs?null:u.programs.length)<2?5:6)}}function v(_,x){if(1&_&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&_){const u=t.XpG(2);t.R7$(),t.JRh(u.tncs[0])}}function k(_,x){if(1&_&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&_){const u=x.$implicit;t.R7$(),t.JRh(u)}}function W(_,x){if(1&_&&(t.j41(0,"ol"),t.DNE(1,k,2,1,"li",5),t.k0s()),2&_){const u=t.XpG(2);t.R7$(),t.Y8G("ngForOf",u.tncs)}}function G(_,x){if(1&_&&(t.j41(0,"div",6)(1,"h2"),t.EFF(2),t.nI1(3,"translation"),t.nI1(4,"async"),t.k0s(),t.DNE(5,v,2,1,"p")(6,W,2,1,"ol"),t.k0s()),2&_){const u=t.XpG();t.R7$(2),t.JRh(t.bMT(4,5,t.i5U(3,2,"myafftnc","affiliate"))),t.R7$(3),t.vxM((null==u.tncs?null:u.tncs.length)<2?5:6)}}const P=F.c.defaultImageLogoDGCard;class I{constructor(){this.growthBookService=(0,t.WQX)(T.GrowthBookService),this.currlang=(0,t.WQX)(L.TranslationService).currLanguage,this.defaultImage=P}ngOnInit(){var x,u,D,$,j;const m=null===(x=this.growthBookService.evalFeature("config_my_affiliate_profile"))||void 0===x?void 0:x.value;this.banner=null==m?void 0:m.banner,this.programs="en"===this.currlang?null==m||null===(u=m.program)||void 0===u?void 0:u.en:null==m||null===(D=m.program)||void 0===D?void 0:D.id,this.tncs="en"===this.currlang?null==m||null===($=m.tnc)||void 0===$?void 0:$.en:null==m||null===(j=m.tnc)||void 0===j?void 0:j.id}}(b=I).\u0275fac=function(x){return new(x||b)},b.\u0275cmp=t.VBU({type:b,selectors:[["app-my-affiliate-affiliate"]],standalone:!1,decls:4,vars:3,consts:[[1,"my-affiliate-affiliate"],["alt","Dunia Games",1,"banner",3,"src"],["class","section programs",4,"ngIf"],["class","section tncs",4,"ngIf"],[1,"section","programs"],[4,"ngFor","ngForOf"],[1,"section","tncs"]],template:function(x,u){1&x&&(t.j41(0,"div",0),t.nrm(1,"img",1),t.DNE(2,V,7,7,"div",2)(3,G,7,7,"div",3),t.k0s()),2&x&&(t.R7$(),t.Y8G("src",u.banner?u.banner:u.defaultImage,t.B4B),t.R7$(),t.Y8G("ngIf",(null==u.programs?null:u.programs.length)>0),t.R7$(),t.Y8G("ngIf",(null==u.tncs?null:u.tncs.length)>0))},dependencies:[e.Sq,e.bT,e.Jj,z.c],styles:[".my-affiliate-affiliate{background-color:#22252a;padding:15px;border-radius:9px}.my-affiliate-affiliate .banner{display:block;width:100%;margin:0 auto 15px}.my-affiliate-affiliate .section{margin-bottom:25px}.my-affiliate-affiliate .section h2{font-family:Montserrat-Bold,sans-serif;font-size:14px;font-weight:700;line-height:21px;color:#fff;margin-bottom:10px}.my-affiliate-affiliate .section p,.my-affiliate-affiliate .section ul li,.my-affiliate-affiliate .section ol li{font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;line-height:21px;color:#afafb9}\n"],encapsulation:2})},92529(st,Y,o){o.d(Y,{E:()=>yt});var P,t=o(17705),L=o(73159),T=o(10467),F=o(83284),e=o(95789),z=o(67958),b=o(16875),U=o(95350),B=o(94954),w=o(86005),V=o(76555),v=o(32881),k=o(89417),W=o(55358),G=o(58211);const I=["ngxotp"];function _(i,a){1&i&&(t.EFF(0),t.nI1(1,"translation"),t.nI1(2,"async")),2&i&&t.SpI(" ",t.bMT(2,4,t.i5U(1,1,"connect_payment_title","affiliate"))," ")}function x(i,a){if(1&i){const n=t.RV6();t.j41(0,"div",7)(1,"div",8),t.EFF(2," Akun Pembayaran "),t.k0s(),t.qSk(),t.j41(3,"svg",9)(4,"g",10),t.nrm(5,"path",11)(6,"path",12),t.k0s(),t.j41(7,"defs")(8,"clipPath",13),t.nrm(9,"rect",14),t.k0s()()()(),t.joV(),t.j41(10,"div",15)(11,"div",16),t.EFF(12," Nomor Link Aja "),t.k0s(),t.j41(13,"input",17),t.mxI("ngModelChange",function(c){t.eBV(n);const C=t.XpG();
1return t.DH7(C.phone,c)||(C.phone=c),t.Njj(c)}),t.k0s()(),t.j41(14,"div",18)(15,"button",19),t.bIt("click",function(){t.eBV(n);const c=t.XpG();return t.Njj(c.changestep())}),t.EFF(16,"Selanjutnya"),t.k0s()()}if(2&i){const n=t.XpG();t.R7$(13),t.R50("ngModel",n.phone),t.R7$(2),t.Y8G("disabled",!n.phone||n.phone.length<10)}}function u(i,a){if(1&i&&(t.j41(0,"span",30),t.EFF(1),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.JRh(n.errorMessage)}}function D(i,a){1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()),2&i&&(t.R7$(),t.JRh(t.bMT(3,4,t.i5U(2,1,"please_resend_otp_label","redeem_voucher"))))}function $(i,a){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.Lme("",t.bMT(3,5,t.i5U(2,2,"resend_on_label","redeem_voucher"))," ",n.otpCountdown,"")}}function j(i,a){if(1&i){const n=t.RV6();t.j41(0,"button",31),t.bIt("click",function(){t.eBV(n);const c=t.XpG(2);return t.Njj(c.sendRepeatOtp())}),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()}2&i&&(t.R7$(),t.SpI(" ",t.bMT(3,4,t.i5U(2,1,"resend_otp_label","redeem_voucher"))," "))}function m(i,a){if(1&i){const n=t.RV6();t.j41(0,"div",20)(1,"div",21),t.EFF(2," Masukkan Kode Verifikasi "),t.k0s(),t.j41(3,"div",22),t.EFF(4),t.k0s()(),t.j41(5,"div",23)(6,"div",24)(7,"form")(8,"ngx-otp-input",25,0),t.bIt("otpComplete",function(c){t.eBV(n);const C=t.XpG();return t.Njj(C.handleFillEvent(c))}),t.k0s()()(),t.DNE(10,u,2,1,"span",26)(11,D,4,6,"span",27)(12,$,4,7,"p",27)(13,j,4,6,"button",28),t.k0s(),t.j41(14,"div",18)(15,"button",29),t.bIt("click",function(){t.eBV(n);const c=t.XpG();return t.Njj(c.beforeBack())}),t.EFF(16,"Sebelumnya"),t.k0s(),t.j41(17,"button",19),t.bIt("click",function(){t.eBV(n);const c=t.XpG();return t.Njj(c.submit())}),t.EFF(18,"Selanjutnya"),t.k0s()()}if(2&i){const n=t.XpG();t.R7$(4),t.SpI(" Silahkan masukkan kode verifikasi yang dikirimkan ke ",null==n.otpResponse?null:n.otpResponse.otpRecipient," DG Anda. "),t.R7$(4),t.Y8G("options",n.otpInputConfig),t.R7$(2),t.Y8G("ngIf",n.errorMessage),t.R7$(),t.Y8G("ngIf",n.repeatOtp),t.R7$(),t.Y8G("ngIf",n.timerOtp),t.R7$(),t.Y8G("ngIf",n.repeatOtp),t.R7$(4),t.Y8G("disabled",(null==n.valueOtp?null:n.valueOtp.length)!==n.otpLength)}}function h(i,a){if(1&i){const n=t.RV6();t.j41(0,"div",20)(1,"div",32),t.EFF(2),t.nI1(3,"translation"),t.nI1(4,"async"),t.k0s(),t.j41(5,"div",22),t.EFF(6),t.nI1(7,"translation"),t.nI1(8,"async"),t.k0s()(),t.j41(9,"div",33)(10,"button",34),t.bIt("click",function(){t.eBV(n);const c=t.XpG();return t.Njj(c.close(!0))}),t.EFF(11,"Tutup"),t.k0s()()}2&i&&(t.R7$(2),t.SpI(" ",t.bMT(4,5,t.i5U(3,2,"success_connecting_account_title","affiliate"))," "),t.R7$(4),t.SpI(" ",t.bMT(8,10,t.i5U(7,7,"success_connecting_account","affiliate"))," "))}class p{constructor(a,n,d,c,C,J,H,pt){this.dialogRef=a,this.loader=n,this.alert=d,this.dialog=c,this.countdown=C,this.getAffiliateRequestAccountOtpUsecase=J,this.getAffiliateRequestConfirmAccountOtpUsecase=H,this.affiliateList=pt,this.step=1,this.otpInputConfig={otpLength:6,autoFocus:!0},this.otpLength=6,this.isTriggered=!1,this.timerOtp=!0,this.repeatOtp=!1,this.otpCountdown="01:00",this.lang=(0,t.WQX)(w.TranslationService).currLanguage}ngOnInit(){}changestep(){this.loader.show(),"01:00"===this.otpCountdown?this.repeatOtp?(this.step=2,setTimeout(()=>{this.ngxOtp.reset(),this.timerOtp=!0,this.repeatOtp=!1,this.errorMessage=null,clearInterval(this.timer),this.sendRequestOTP()},100)):(this.step=2,this.sendRequestOTP()):(this.alert.showError(`Waktu tunggu kamu tersisa ${this.otpCountdown}`),this.loader.hide())}sendRequestOTP(){var a=this;return(0,T.A)(function*(){try{const n={account:"LINKAJA",accountNumber:a.phone.toString()};a.otpResponse=yield a.getAffiliateRequestAccountOtpUsecase.execute(n).toPromise(),a.loader.hide(),a.expiredCountdown()}catch(n){a.loader.hide(),a.handleError(n.error)}})()}handleFillEvent(a){this.valueOtp=a,this.valueOtp.length===this.otpLength?(this.submit(),this.isTriggered=!0):this.isTriggered=!1}submit(){var a;if(this.isTriggered)return;const n={otpReqId:null===(a=this.otpResponse)||void 0===a?void 0:a.otpReqId,otpCode:this.valueOtp};this.errorMessage=null,this.loader.show(),this.getAffiliateRequestConfirmAccountOtpUsecase.execute(n).subscribe(d=>{this.alert.showSuccess("en"===this.lang?"Number successfully verified!":"Nomor berhasil diverifikasi!"),this.loader.hide(),this.ngxOtp.reset(),this.timerOtp=!0,this.repeatOtp=!1,this.errorMessage=null,clearInterval(this.timer),this.step=3},d=>{this.alert.showError(d.error.status.message),this.errorMessage=d.error.status.message,this.loader.hide()}),setTimeout(()=>{this.isTriggered=!1},2e3)}sendRepeatOtp(){this.ngxOtp.reset(),this.timerOtp=!0,this.repeatOtp=!1,this.errorMessage=null,clearInterval(this.timer),this.sendRequestOTP()}
1expiredCountdown(){const d=Date.now()+6e4;this.timer=setInterval(()=>{const c=Date.now(),C=d-c;if(C<=0)this.otpCountdown="01:00",this.wrongSchema(),clearInterval(this.timer);else{const J=Math.floor(C%6e4/1e3)+1;this.otpCountdown=this.countdown.setExpiredString(J)}},1e3)}wrongSchema(){this.timerOtp=!1,this.repeatOtp=!0}handleError(a){this.dialogRef.close(!1),this.dialog.open(U.c,{panelClass:"error-payment-wrapper",backdropClass:"backdrop-sheet-list-bonus",data:a})}beforeBack(){this.step=1}close(a){this.dialogRef.close(a)}}(P=p).\u0275fac=function(a){return new(a||P)(t.rXU(L.m),t.rXU(e.Z),t.rXU(b.Alert),t.rXU(L.j),t.rXU(B.V),t.rXU(V.I),t.rXU(W.A),t.rXU(L.e))},P.\u0275cmp=t.VBU({type:P,selectors:[["app-my-affiliate-otp"]],viewQuery:function(a,n){if(1&a&&t.GBs(I,5),2&a){let d;t.mGM(d=t.lsd())&&(n.ngxOtp=d.first)}},inputs:{errorMessage:"errorMessage"},decls:11,vars:4,consts:[["ngxotp",""],[1,"wrapper-popup-number"],[1,"title-popup-connected"],[1,"close-pop",3,"click"],[1,"svg"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 14 14","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z","fill","#AFAFB9"],[1,"payment-account"],[1,"title-payment-ammount"],["xmlns","http://www.w3.org/2000/svg","width","46","height","46","viewBox","0 0 46 46","fill","none"],["clip-path","url(#clip0_2109_12053)"],["d","M0 8C0 3.58172 3.58172 0 8 0H38C42.4183 0 46 3.58172 46 8V38C46 42.4183 42.4183 46 38 46H8C3.58172 46 0 42.4183 0 38V8Z","fill","#E82529"],["fill-rule","evenodd","clip-rule","evenodd","d","M18.0903 8.06446C18.3982 8.00239 18.7381 8.0222 19.0078 8.19258C19.367 8.40655 19.5622 8.83228 19.5272 9.2382C19.4639 9.97124 18.8628 10.6325 18.1208 10.7597C17.7774 10.8218 17.4026 10.747 17.131 10.5255C16.8625 10.3142 16.7126 9.97124 16.7351 9.63488C16.7943 8.90712 17.3397 8.20403 18.0903 8.06446ZM29.4483 8.46261C29.7137 8.44022 29.9815 8.44358 30.2493 8.44694C30.4132 8.44899 30.577 8.45105 30.7402 8.4472C30.8822 8.44811 31.0243 8.4476 31.1663 8.44708C31.3681 8.44634 31.57 8.44561 31.7718 8.44897C31.8638 8.43972 31.9446 8.52909 31.9213 8.61803C31.6595 10.4843 31.3957 12.3504 31.1319 14.2164L31.1309 14.2231C30.926 15.6727 30.7211 17.1223 30.5171 18.5719L30.5164 18.5764C30.5058 18.6438 30.493 18.7249 30.4202 18.7555C30.3547 18.7723 30.2873 18.7716 30.2203 18.7709C30.1976 18.7707 30.1751 18.7704 30.1526 18.7709C29.8156 18.7694 29.4786 18.7697 29.1417 18.77H29.1412H29.1412H29.1411H29.1411H29.1411H29.1411H29.141H29.141H29.141H29.1409H29.1409H29.1409C28.804 18.7703 28.4671 18.7707 28.1303 18.7691C28.0199 18.7854 27.9261 18.678 27.9575 18.5737C28.2377 16.5771 28.5199 14.5809 28.8021 12.5847L28.804 12.5716C28.9904 11.2532 29.1767 9.93477 29.3625 8.61627C29.3702 8.55771 29.3854 8.48727 29.4483 8.46261ZM10.1513 8.84325C9.81908 8.83989 9.48688 8.83653 9.15657 8.85892C9.04883 8.89106 8.97791 8.99497 8.97117 9.10283C8.78146 10.4968 8.59245 11.891 8.40344 13.2852C8.25613 14.3718 8.10881 15.4584 7.96115 16.545C7.91806 16.8417 7.95172 17.1508 8.06844 17.4286C8.42846 18.2898 9.38192 18.8229 10.3125 18.819L10.7393 18.8192C12.0197 18.8201 13.3003 18.8209 14.5806 18.8185C14.6973 18.8251 14.8015 18.7291 14.8069 18.6156C14.8306 18.4583 14.8545 18.301 14.8784 18.1437L14.8785 18.1435C14.9526 17.6557 15.0268 17.1676 15.0964 16.6793C15.122 16.5626 15.0053 16.4636 14.8908 16.4807C14.4048 16.4802 13.9188 16.4805 13.4328 16.4808H13.4321C12.6627 16.4812 11.8934 16.4817 11.1241 16.479C10.8566 16.4909 10.6254 16.2311 10.6774 15.9727C10.8426 14.8357 11.0107 13.6992 11.1787 12.5626L11.1788 12.5625L11.1788 12.5624L11.1788 12.5623L11.1788 12.5622L11.1788 12.5622L11.1788 12.5621L11.1788 12.562L11.1788 12.5619L11.1788 12.5618L11.1789 12.5618L11.1789 12.5612L11.179 12.5607L11.1791 12.5602L11.1791 12.5599C11.3472 11.4236 11.5152 10.2874 11.6803 9.15082C11.7095 9.00597 11.5905 8.85496 11.4406 8.84836C11.3008 8.84047 11.1606 8.84183 11.02
104 8.84318C10.9338 8.84402 10.8471 8.84486 10.7605 8.84352C10.5577 8.84736 10.3545 8.8453 10.1513 8.84325ZM21.9319 11.2555C22.7233 11.1687 23.521 11.1626 24.3169 11.1573C25.0567 11.1617 25.8346 11.3268 26.4119 11.8058C26.9398 12.2355 27.2271 12.8959 27.2854 13.5567C27.327 13.9245 27.2762 14.2903 27.2256 14.655C27.2112 14.7592 27.1967 14.8633 27.1844 14.9673C27.0504 15.9574 26.8995 16.945 26.7487 17.9324L26.6574 18.5308C26.6529 18.6659 26.5232 18.7676 26.3881 18.7496C26.1207 18.7487 25.8533 18.7492 25.5859 18.7496H25.5853C25.1768 18.7503 24.7684 18.7509 24.36 18.747C24.2055 18.7478 24.0951 18.5854 24.1351 18.4436L24.1999 17.9965C24.3127 17.219 24.4254 16.4412 24.5467 15.6647C24.5648 15.5412 24.5848 15.4177 24.6048 15.2943C24.6676 14.9064 24.7305 14.5181 24.7352 14.1247L24.7348 14.1031C24.7301 13.8777 24.7249 13.6239 24.5557 13.4519C24.3644 13.2604 24.0861 13.186 23.8226 13.1539C23.4815 13.1138 23.1372 13.1473 22.8 13.2014L22.5231 15.1159L22.5222 15.1216C22.3489 16.319 22.1757 17.5164 22.0028 18.7139C21.6037 18.3793 21.0799 18.1636 20.5484 18.2208C20.1569 18.2336 19.8041 18.4163 19.4791 18.614L19.626 17.623L19.6261 17.6222C19.8247 16.2807 20.0234 14.9394 20.2301 13.599C20.25 13.4818 20.2684 13.3644 20.2868 13.2469L20.2868 13.2467V13.2467C20.3387 12.9156 20.3907 12.5842 20.4752 12.2593C20.5434 12.0074 20.6512 11.7459 20.8725 11.5861C21.1738 11.3612 21.5625 11.307 21.9275 11.2561L21.9319 11.2555ZM16.8474 11.3428C16.7812 11.3425 16.7146 11.3422 16.6509 11.3605C16.5441 11.3971 16.4812 11.5027 16.4736 11.6093C16.3431 12.5293 16.2117 13.4492 16.0803 14.3691L16.0803 14.3693L16.0802 14.3695L16.0802 14.3697L16.0802 14.3699L16.0801 14.3702L16.0801 14.3704L16.0801 14.3706L16.08 14.3708L16.08 14.3714C15.882 15.7571 15.6841 17.1428 15.4891 18.5289C15.4582 18.6495 15.5731 18.7648 15.6961 18.7481C16.386 18.7494 17.076 18.7499 17.766 18.7481C17.9356 18.7578 18.0726 18.6081 18.0761 18.4474C18.2161 17.4679 18.3568 16.4884 18.4976 15.5089L18.4978 15.5076C18.6821 14.2252 18.8665 12.9427 19.0489 11.6599C19.0835 11.5084 18.9587 11.3451 18.7984 11.3464C18.4521 11.3421 18.1057 11.3428 17.7594 11.3435C17.4768 11.3441 17.1943 11.3446 16.9117 11.3425C16.8904 11.343 16.8689 11.3429 16.8474 11.3428ZM33.8297 11.567C33.9164 11.4609 34.0511 11.3979 34.1902 11.4037C34.4268 11.4038 34.6634 11.4034 34.9001 11.403H34.9001H34.9001H34.9002H34.9002H34.9002H34.9003H34.9003C35.413 11.4022 35.9258 11.4014 36.4383 11.4059C36.6048 11.401 36.6771 11.6273 36.5523 11.7277C35.8809 12.4582 35.2082 13.1873 34.5354 13.9165L34.5351 13.9169L34.5348 13.9172L34.5345 13.9176L34.5342 13.9179L34.5339 13.9182L34.5336 13.9186L34.5329 13.9193L33.937 14.5652L34.6106 15.9806L34.6107 15.9807C35.1851 17.1875 35.7595 18.3944 36.3324 19.6022C36.4432 19.7796 36.2924 20.0328 36.0796 20.0187C35.4049 20.0213 34.7298 20.0209 34.0551 20.0191C33.9245 20.0288 33.8158 19.9368 33.7718 19.8223C33.3231 18.8653 32.8737 17.9086 32.4242 16.9518L32.4228 16.9489L32.4218 16.9469L32.4209 16.9449C32.0373 16.1284 31.6537 15.3119 31.2706 14.4952C31.7326 13.9672 32.1941 13.4389 32.6556 12.9106L32.6573 12.9086L32.6576 12.9083L32.658 12.9079L32.6583 12.9075C33.0487 12.4605 33.4391 12.0136 33.8297 11.567ZM21.2966 19.2469C21.0389 19.095 20.7229 19.076 20.4329 19.1298C19.6608 19.2596 19.0947 19.9856 19.0485 20.7327C19.0377 21.0286 19.1562 21.3275 19.3744 21.5327C19.6321 21.7814 20.0118 21.8889 20.3674 21.8396C21.1449 21.744 21.7868 21.0537 21.8429 20.292C21.8739 19.8813 21.666 19.4529 21.2966 19.2469ZM13.0853 19.9173C12.8991 19.916 12.7111 19.9147 12.5312 19.9679C12.1846 20.0652 11.8973 20.3254 11.7577 20.6503C11.264 21.7235 10.77 22.7966 10.2761 23.8697L10.2744 23.8733C9.39645 25.7807 8.51846 27.6882 7.64175 29.596C7.55646 29.7311 7.68215 29.9143 7.84106 29.891C8.54628 29.8896 9.2515 29.8848 9.95672 29.8791C10.104 29.8839 10.2485 29.7981 10.3055 29.6638C10.4265 29.3919 10.5447 29.1188 10.6628 28.8458L10.6629 28.8457C10.781 28.5726 10.8992 28.2996 11.0202 28.0278C11.0435 27.9432 11.1373 27.9349 11.2123 27.9388C11.5715 27.9398 11.9308 27.9395 12.2901 27.9392H12.2911C12.7698 27.9389 13.2485 27.9385 13.727 27.941C13.7993 27.9327 13.868 27.9864 13.8689 28.059C13.899 28.3293 13.9254 28.5999 13.9517 28.8705L13.9517 28.8706L13.9517 28.8707L13.9518 28.8708L13.9518 28.8709L13.9518 28.871L13.9518 28.8712L13.9518 28.8713C13.9756 29.1157 13.9994 29.3602 14.026 29.6043C14.0381 29.7866 14.2109 29.935 14.3963 29.9257C14.5977 29.9257 14.7991 29.926 15.0005 29.9263C15.504 29.927 16.0077 29.9278 16.5111 29.924C16.6857 29.9257 16.8199 29.7435 16.7742 29.5801C16.4469 27.6578 16.1181 25.7354 15.7892 23.8131L15.7891 23.8125C15.6064 22.7444 15.4236 21.6762 15.2412 20.6081C15.1837 20.2299 14.8304 19.9239 14.4394 19.9195C14.1884 19.9163 13.9371 19.9169 13.6858 19.9176H13.6858H13.6858H13.6857H13.6857H13.6857H13.6857C13.5181 19.918 13.3505 19.9184 13.183 19.9177C13.1505 19.9178 13.1179 19.9176 13.0853 19.9173ZM12.5181 24.4625L12.5181 24.4624L12.5181 24.4624L12.5182 24.4623L12.5182 24.4623L12.5182 24.4623L12.5182 24.4623C12.7448 23.8962 12.9715 23.3302 13.2082 22.7685C13.2563 22.7253 13.3218 22.7803 13.3083 22.8371L13.3387 23.1607L13.3388 23.161L13.3388 23.1611L13.3388 23.1612L13.3388 23.1614L13.3388 23.1615L13.3388 23.1616C13.4185 24.0098 13.4983 24.8583 13.5727 25.7068C13.592 25.7974 13.5054 25.8732 13.4165 25.8635C13.2673 25.8631 13.1179 25.8637 12.9685 25.8644H12.9685H12.9684H12.9683H12.9683H12.9682H12.9682H12.968C12.6565 25.8658 
112.3448 25.8673 12.0339 25.8586C11.9656 25.8296 11.993 25.763 12.0155 25.7083C12.0207 25.6958 12.0256 25.6839 12.029 25.6733C12.1944 25.2708 12.3562 24.8668 12.518 24.4627L12.5181 24.4625ZM31.7919 21.126C31.6845 21.1247 31.5765 21.1234 31.4723 21.1492C31.3399 21.1804 31.238 21.2971 31.2353 21.4323C31.1087 22.7046 30.9841 23.9774 30.8596 25.2501L30.8595 25.2505L30.8595 25.2508L30.8595 25.2512L30.8594 25.2515C30.7972 25.8879 30.7349 26.5242 30.6723 27.1605C30.6387 27.3058 30.7581 27.463 30.9138 27.4559C31.2739 27.4589 31.6341 27.4582 31.9945 27.4574H31.9945H31.9945H31.9946H31.9952L32.3557 27.4568C32.4845 27.4683 32.6053 27.371 32.6206 27.245C33.0013 25.4059 33.3803 23.566 33.7593 21.7264L33.8115 21.4732C33.847 21.3455 33.82 21.1505 33.6553 21.1333C33.3044 21.1235 32.9531 21.125 32.6017 21.1266C32.369 21.1276 32.1363 21.1286 31.9037 21.1263C31.8666 21.127 31.8293 21.1265 31.7919 21.126ZM28.855 22.6049C27.9088 22.3518 26.9234 22.2334 25.943 22.2844C25.0731 22.3161 24.1708 22.5002 23.4611 23.0214C22.7635 23.5189 22.3209 24.2912 22.0906 25.0942C21.8747 25.855 21.788 26.6518 21.8185 27.4408C21.8522 28.1311 22.0403 28.8685 22.5745 29.3546C23.1374 29.8701 23.9311 30.0198 24.6731 30.0837C25.8905 30.1959 27.1335 30.0242 28.2692 29.5805C28.4219 29.5267 28.5731 29.4418 28.6526 29.2969C28.7234 29.1693 28.7381 29.025 28.7527 28.8815C28.759 28.8186 28.7654 28.7558 28.7765 28.6946C28.897 27.7625 29.0173 26.8302 29.1375 25.8979C29.2576 24.9659 29.3778 24.0339 29.4983 23.102C29.514 22.9902 29.5172 22.8511 29.4103 22.7806C29.2968 22.7098 29.1659 22.6801 29.0355 22.6505C28.9746 22.6367 28.9139 22.6229 28.855 22.6049ZM24.5845 25.8738C24.6644 25.5022 24.7865 25.1245 25.0456 24.833C25.3041 24.5301 25.7117 24.3457 26.1166 24.3835C26.3487 24.4038 26.5781 24.4487 26.8057 24.4993L26.5918 26.1331L26.3779 27.7669C26.0031 27.8721 25.6044 27.9496 25.2157 27.8805C24.8862 27.8277 24.633 27.5565 24.5423 27.2505C24.4063 26.8006 24.4862 26.3229 24.5845 25.8738ZM20.1499 22.4152C19.7793 22.4131 19.4089 22.4111 19.0394 22.4252C18.8944 22.456 18.7925 22.5894 18.7813 22.7312C18.7058 23.2649 18.6314 23.7988 18.557 24.3326L18.557 24.3328L18.5569 24.3329L18.5569 24.3331C18.3681 25.6879 18.1792 27.0425 17.9729 28.3947C17.9614 28.4638 17.9506 28.5333 17.9398 28.603C17.8768 29.009 17.8129 29.4208 17.6133 29.7864C17.436 30.1227 17.1455 30.3931 16.8093 30.5758C16.5804 30.7098 16.3339 30.8077 16.0877 30.9056C16.02 30.9325 15.9523 30.9593 15.885 30.987C15.7737 31.0209 15.7046 31.1393 15.758 31.2481C15.9196 31.7447 16.0848 32.24 16.2504 32.7353L16.2606 32.7617C16.304 32.8749 16.3615 33.0251 16.5085 33.0104C16.9489 32.9365 17.3754 32.7934 17.7893 32.6305C18.4514 32.3553 19.0973 31.9705 19.5198 31.3854C19.8986 30.843 20.1231 30.2134 20.286 29.5803C20.4717 28.8571 20.5665 28.1177 20.6613 27.379L20.6613 27.3789L20.6613 27.3789L20.6613 27.3788C20.6955 27.112 20.7297 26.8453 20.7681 26.5795C20.9035 25.6378 21.029 24.6946 21.1545 23.7514L21.1546 23.7509L21.1547 23.7503C21.1985 23.4208 21.2424 23.0914 21.2866 22.762C21.3019 22.6674 21.3073 22.5568 21.2287 22.486C21.1625 22.4131 21.0625 22.4138 20.9
169 22.4145C20.9484 22.4147 20.9282 22.4148 20.9087 22.4142C20.6559 22.418 20.4028 22.4166 20.1499 22.4152ZM31.2064 28.2408C31.5453 28.1633 31.9197 28.1699 32.2299 28.3386C32.6218 28.5402 32.8763 28.9708 32.8516 29.4053C32.8179 30.0314 32.3551 30.5936 31.7621 30.8067C31.3393 30.9656 30.8351 30.9449 30.4536 30.6944C30.1483 30.5011 29.9387 30.1604 29.9369 29.8002C29.9463 29.0835 30.4841 28.3949 31.2064 28.2408ZM34.5938 33.6499C30.9092 33.5799 27.2215 33.7327 23.5518 34.0563C19.5395 34.423 15.5385 34.9192 11.5698 35.6069C9.64936 35.9459 7.73211 36.3139 5.8418 36.7912C6.15782 36.9607 6.47333 37.1313 6.78881 37.302C7.12715 37.485 7.46547 37.668 7.80438 37.8496C8.18999 38.0569 8.6537 38.1124 9.08016 38.0103C9.36305 37.9427 9.64573 37.8742 9.9284 37.8057C10.4742 37.6735 11.0199 37.5413 11.5671 37.4155C15.121 36.5856 18.723 35.9714 22.3366 35.4545C25.601 34.9887 28.8807 34.6277 32.1688 34.3724C34.8277 34.1681 37.4923 34.0272 40.1593 33.9929C39.8681 33.9462 39.5745 33.92 39.2811 33.8938C39.1868 33.8854 39.0926 33.8769 38.9984 33.8678C37.5336 33.7432 36.0639 33.6794 34.5938 33.6499Z","fill","#FEFEFE"],["id","clip0_2109_12053"],["width","46","height","46","fill","white"],[1,"putphone-number"],[1,"title-num"],["type","tel",1,"phone",3,"ngModelChange","ngModel"],[1,"action-area"],[1,"next",3,"click","disabled"],[1,"otp-number"],[1,"title-otp"],[1,"subtitle-otp"],[1,"otp"],[1,"pin"],["data-test-id","input-otp",3,"otpComplete","options"],["class","error-response",4,"ngIf"],[4,"ngIf"],["class","repeat-otp","data-test-id","resend-otp",3,"click",4,"ngIf"],[1,"before",3,"click"],[1,"error-response"],["data-test-id","resend-otp",1,"repeat-otp",3,"click"],[1,"title-otp","bot20"],[1,"action-area","success"],[1,"next","close-btn",3,"click"]],template:function(a,n){1&a&&(t.j41(0,"div",1)(1,"div",2)(2,"h2"),t.DNE(3,_,3,6),t.k0s(),t.j41(4,"div",3),t.bIt("click",function(){return n.close(3===n.step)}),t.j41(5,"div",4),t.qSk(),t.j41(6,"svg",5),t.nrm(7,"path",6),t.k0s()()()(),t.DNE(8,x,17,2)(9,m,19,7)(10,h,12,12),t.k0s()),2&a&&(t.R7$(3),t.vxM(3!==n.step?3:-1),t.R7$(5),t.vxM(1===n.step?8:-1),t.R7$(),t.vxM(2===n.step?9:-1),t.R7$(),t.vxM(3===n.step?10:-1))},dependencies:[v.MD,v.bT,v.Jj,F.c,z.TranslationModule,G.c,L.n,k.YN,k.qT,k.me,k.BC,k.cb,k.vS,k.cV],styles:[".overlay-backdrop-blue{background-color:#262837bf;-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px)}@media (max-width: 767px){.overlay-backdrop-blue{background-color:#00000080}}@media (max-width: 767px){.mat-mdc-dialog-panel{max-width:90vw!important;min-width:90vw!important}}.mat-mdc-dialog-surface{background-color:#1d1f23}.wrapper-popup-number{display:flex;width:500px;padding:24px;flex-direction:column;align-items:flex-start;gap:16px;background:#1d1f23}@media (max-width: 767px){.wrapper-popup-number{width:100%}}.wrapper-popup-number .title-popup-connected{display:flex;padding-bottom:16px;justify-content:space-between;align-items:flex-start;align-self:stretch}.wrapper-popup-number .title-popup-connected h2{color:#fff;font-family:Montserrat,sans-serif;font-size:20px;font-style:normal;font-weight:600;line-height:28px}@media (max-width: 767px){.wrapper-popup-number .title-popup-connected h2{font-size:16px;line-height:24px}}.wrapper-popup-number .title-popup-connected .close-pop{display:flex;width:30px;height:30px;justify-content:center;align-items:center;cursor:pointer}.wrapper-popup-number .title-popup-connected .close-pop .svg{width:30px;height:30px;flex-shrink:0;display:flex;justify-content:center;align-items:center;cursor:pointer}.wrapper-popup-number .title-popup-connected .close-pop .svg svg{width:14px;height:14px;flex-shrink:0;fill:#afafb9}.wrapper-popup-number .payment-account{display:flex;flex-direction:column;align-items:flex-start;gap:8px;align-self:stretch}.wrapper-popup-number .payment-account .title-payment-ammount{color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px}.wrapper-popup-number .payment-account svg{width:46px;height:46px}.wrapper-popup-number .putphone-number{display:flex;flex-direction:column;align-items:flex-start;gap:8px;align-self:stretch}.wrapper-popup-number .putphone-number .title-num{align-self:stretch;color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px}.wrapper-popup-number .putphone-number input.phone{display:flex;padding:8px 0;align-items:flex-start;gap:8px;align-self:stretch;color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:21px;background:transparent;border:unset;outline:unset!important;border-bottom:1px solid #69707E}.wrapper-popup-number .otp-number{display:flex;flex-direction:column;align-items:flex-start;gap:8px;align-self:stretch}.wrapper-popup-number .otp-number .title-otp{color:#fff;font-family:Montserrat,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:normal}.wrapper-popup-number .otp-number .title-otp.bot20{margin-bottom:20px}
1.wrapper-popup-number .otp-number .subtitle-otp{color:#b4b4c0;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:21px}.wrapper-popup-number .otp .pin{margin-bottom:16px}.wrapper-popup-number .otp .pin form ngx-otp-input form{display:flex;width:356px;align-items:flex-start;gap:16px}@media (max-width: 767px){.wrapper-popup-number .otp .pin form ngx-otp-input form{width:100%;gap:unset;justify-content:space-between}}.wrapper-popup-number .otp .pin form ngx-otp-input form input{display:flex;width:40px;height:40px;padding:8px;flex-direction:column;justify-content:center;align-items:center;gap:8px;flex-shrink:0;background:transparent;border:unset;border-bottom:1px solid #AFAFB9;border-radius:unset;color:#fff;text-align:center;font-family:Montserrat;font-size:20px;font-style:normal;font-weight:600;line-height:normal}.wrapper-popup-number .otp>span{color:#fff;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:600;line-height:18px}.wrapper-popup-number .otp>p{color:#fff;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:600;line-height:18px}.wrapper-popup-number .otp button.repeat-otp{color:#4169e1;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:600;line-height:18px;cursor:pointer;border:unset;outline:unset;background:transparent;padding:0;margin:0 0 0 8px;transition:filter .3s ease-in-out;filter:brightness(100%)}.wrapper-popup-number .otp button.repeat-otp:hover{transition:filter .3s ease-in-out;filter:brightness(120%)}@media (max-width: 767px){.wrapper-popup-number .otp button.repeat-otp{display:block;margin-left:unset}}.wrapper-popup-number .action-area{display:flex;justify-content:flex-end;align-items:center;gap:8px;align-self:stretch}.wrapper-popup-number .action-area button.next{border:1px solid transparent;padding:0 32px;align-items:flex-start;gap:8px;border-radius:4px;background:#d0021b;cursor:pointer;display:flex;height:46px;flex-direction:column;justify-content:center;color:#fff;text-align:center;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px;transition:filter .3s ease-in-out;filter:brightness(100%)}.wrapper-popup-number .action-area button.next:hover{transition:filter .3s ease-in-out;filter:brightness(120%)}@media (max-width: 767px){.wrapper-popup-number .action-area button.next{padding:0 16px}}.wrapper-popup-number .action-area button.before{border:1px solid #FFF;padding:0 32px;align-items:flex-start;gap:8px;border-radius:4px;background:transparent;cursor:pointer;display:flex;height:46px;flex-direction:column;justify-content:center;color:#fff;text-align:center;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px}@media (max-width: 767px){.wrapper-popup-number .action-area button.before{padding:0 16px}}.wrapper-popup-number .action-area.success{justify-content:center}.wrapper-popup-number .action-area.success button.next{display:flex;padding:6px 25px;justify-content:center;align-items:flex-start;gap:8px;height:unset;width:100%}.wrapper-popup-number .action-area.success button.next.close-btn{text-align:center;align-items:center}\n"],encapsulation:2});var rt,A=o(44896),S=o(9619),q=o(54216),tt=o(17995),nt=o(52308),et=o(78218),it=o(83087),at=o(36872),ot=o(87742),K=o(72957),f=o(58591),y=o(63120),r=o(49870),O=o(30417),s=o(5380),g=o(61396),l=o(59270),M=o(78820),E=o(15398),X=o(93683),N=o(48973);const ft=(i,a)=>({pending:i,paid:a}),mt=()=>["/commision/detail"],gt=(i,a,n,d)=>({datestart:i,dateend:a,total:n,status:d,page:1});function Ct(i,a){if(1&i&&(t.j41(0,"mat-option",7),t.EFF(1),t.k0s()),2&i){const n=a.$implicit;t.Y8G("value",n),t.R7$(),t.SpI("",n," ")}}function xt(i,a){if(1&i&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.nI1(5,"date"),t.nI1(6,"date"),t.k0s(),t.j41(7,"td"),t.EFF(8),t.nI1(9,"thousandSeparator"),t.k0s(),t.j41(10,"td",17),t.EFF(11),t.k0s(),t.j41(12,"td")(13,"a",18),t.nI1(14,"addlang"),t.EFF(15,"Detail"),t.k0s()()()),2&i){const n=a.$implicit,d=a.$index,c=t.XpG(2);t.R7$(2),t.JRh(d+1),t.R7$(2),t.Lme("",t.ii3(5,8,null==n?null:n.startDate,"dd","","id")," - ",t.ii3(6,13,null==n?null:n.endDate,"dd MMMM yyyy","","id"),""),t.R7$(4),t.SpI("Rp ",t.bMT(9,18,null==n?null:n.commision),""),t.R7$(2),t.Y8G("ngClass",t.l_i(22,ft,"PENDING"===(null==n?null:n.status),"PAID"===(null==n?null:n.status))),t.R7$(),t.JRh("PENDING"===(null==n?null:n.status)&&"en"===c.currLanguage?"Unpaid":"PENDING"===(null==n?null:n.status)&&"id"===c.currLanguage?"Belum Dibayarkan":"PAID"===(null==n?null:n.status)&&"en"===c.currLanguage?"Paid":"PAID"===(null==n?null:n.status)&&"id"===c.currLanguage?"Sudah Dibayarkan":null),t.R7$(2),t.Y8G("routerLink",t.bMT(14,20,t.lJ4(25,mt)))("queryParams",t.ziG(26,gt,null==n?null:n.startDate,null==n?null:n.endDate,null==n?null:n.commision,null==n?null:n.status))}}function bt(i,a){if(1&i&&(t.j41(0,"div",16)(1,"table")(2,"tr")(3,"th"),t.EFF(4,"No"),t.k0s(),t.j41(5,"th"),t.EFF(6,"Bulan"),t.k0s(),t.j41(7,"th"),t.EFF(8,"Total Komisi"),t.k0s(),t.j41(9,"th"),t.EFF(10,"Status"),t.k0s(),t.j41(11,"th"),t.EFF(12,"Action"),t.k0s()(),t.Z7z(13,xt,16,31,"tr",null,t.fX1),t.k0s()()),2&i){const n=t.XpG();
1t.R7$(13),t.Dyx(n.getListAffiliateCommision)}}function Mt(i,a){if(1&i&&(t.j41(0,"div",20)(1,"div",21)(2,"div",22),t.EFF(3),t.nI1(4,"date"),t.nI1(5,"date"),t.k0s(),t.j41(6,"div",23),t.EFF(7),t.k0s()(),t.j41(8,"div",24)(9,"div",25)(10,"div",26),t.EFF(11),t.nI1(12,"translation"),t.nI1(13,"async"),t.k0s(),t.j41(14,"div",27),t.EFF(15),t.nI1(16,"thousandSeparator"),t.k0s()(),t.j41(17,"div",28)(18,"a",18),t.nI1(19,"addlang"),t.EFF(20,"Detail"),t.k0s()()()()),2&i){const n=a.$implicit,d=t.XpG(2);t.R7$(3),t.Lme(" ",t.ii3(4,8,null==n?null:n.startDate,"dd","","id")," - ",t.ii3(5,13,null==n?null:n.endDate,"dd MMM yyyy","","id")," "),t.R7$(3),t.Y8G("ngClass",t.l_i(27,ft,"PENDING"===(null==n?null:n.status),"PAID"===(null==n?null:n.status))),t.R7$(),t.SpI(" ","PENDING"===(null==n?null:n.status)&&"en"===d.currLanguage?"Unpaid":"PENDING"===(null==n?null:n.status)&&"id"===d.currLanguage?"Belum Dibayarkan":"PAID"===(null==n?null:n.status)&&"en"===d.currLanguage?"Paid":"PAID"===(null==n?null:n.status)&&"id"===d.currLanguage?"Sudah Dibayarkan":null," "),t.R7$(4),t.SpI(" ",t.bMT(13,21,t.i5U(12,18,"total_com_com_affiliate","affiliate"))," "),t.R7$(4),t.SpI(" Rp ",t.bMT(16,23,null==n?null:n.commision)," "),t.R7$(3),t.Y8G("routerLink",t.bMT(19,25,t.lJ4(30,mt)))("queryParams",t.ziG(31,gt,null==n?null:n.startDate,null==n?null:n.endDate,null==n?null:n.commision,null==n?null:n.status))}}function wt(i,a){if(1&i&&(t.j41(0,"div",19),t.Z7z(1,Mt,21,36,"div",20,t.fX1),t.k0s()),2&i){const n=t.XpG();t.R7$(),t.Dyx(n.getListAffiliateCommision)}}function vt(i,a){if(1&i){const n=t.RV6();t.j41(0,"div",31)(1,"app-pagination",32),t.bIt("onAction",function(c){t.eBV(n);const C=t.XpG(2);return t.Njj(C.setPage(c))}),t.k0s()()}if(2&i){const n=t.XpG(2);t.R7$(),t.Y8G("page",null==n.paginationMeta||null==n.paginationMeta.pagination?null:n.paginationMeta.pagination.current_page)("totalPage",null==n.paginationMeta||null==n.paginationMeta.pagination?null:n.paginationMeta.pagination.total_pages)}}function Pt(i,a){if(1&i&&(t.j41(0,"div",29),t.DNE(1,vt,2,2,"div",30),t.k0s()),2&i){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.paginationMeta)}}function Ot(i,a){if(1&i&&(t.j41(0,"div",33)(1,"content-loader",34),t.qSk(),t.nrm(2,"rect",35)(3,"rect",36)(4,"rect",37)(5,"rect",38)(6,"rect",39)(7,"rect",40),t.k0s()()),2&i){const n=t.XpG();t.R7$(),t.Y8G("backgroundColor",n.backgroundSkeleton)("foregroundColor",n.foregroundSkeleton)}}function kt(i,a){1&i&&(t.j41(0,"div",41),t.nrm(1,"img",42),t.j41(2,"strong"),t.EFF(3,"Tidak ada data penjualan"),t.k0s()())}function Lt(i,a){if(1&i){const n=t.RV6();t.j41(0,"div",43)(1,"app-error-card",44),t.bIt("onClickEvent",function(){t.eBV(n);const c=t.XpG();return t.Njj(c.getAffiliateCommision())}),t.k0s()()}}class ut{constructor(){this.activatedRoute=(0,t.WQX)(it.nX),this.loader=(0,t.WQX)(e.Z),this.userAgent=(0,t.WQX)(at.G),this.helper=(0,t.WQX)(f.HelperService),this.myToastService=(0,t.WQX)(y.R),this.isMobile=!1,this.isLoading=!0,this.isError=!1,this.getAffiliateCommisionUsecase=(0,t.WQX)(ot.J),this.getAffiliateCommisionDownloadUsecase=(0,t.WQX)(K.L),this.getListAffiliateCommision=[],this.currentYear=(new Date).getFullYear(),this.yearRange=[],this.translationService=(0,t.WQX)(w.TranslationService),this.isMobile=this.userAgent.isMobileView(),this.currLanguage=this.translationService.currLanguage,this.paginationMeta={pagination:{total:1,count:1,per_page:1,current_page:1,total_pages:1}},this.setYear()}ngOnInit(){this.getAffiliateCommision()}getAffiliateCommision(){const a={year:this.stateYear?this.stateYear:this.currentYear,page:this.paginationMeta.pagination.current_page,limit:10};this.loader.show(),this.getAffiliateCommisionUsecase.execute(a).subscribe(n=>{this.loader.hide(),this.getListAffiliateCommision=n.data,this.paginationMeta=n.meta,this.isLoading=!1,this.isError=!1},n=>{this.loader.hide(),this.isLoading=!1,this.isError=!0})}setPage(a){this.paginationMeta.pagination.current_page=a,this.getAffiliateCommision(),window.scrollTo(0,0)}prev(){this.paginationMeta.pagination.current_page--,this.getAffiliateCommision()}next(){this.paginationMeta.pagination.current_page++,this.getAffiliate
1Commision()}setYear(){const a=this.currentYear,n=this.currentYear-4;for(let d=a;d>=n;d--)this.yearRange.push(d)}getYear(a){this.stateYear=null==a?void 0:a.value,this.paginationMeta.pagination.current_page=1,this.getAffiliateCommision()}download(){const a=this.stateYear?this.stateYear:this.currentYear;this.loader.show(),this.getAffiliateCommisionDownloadUsecase.execute(a).subscribe(n=>{this.loader.hide(),this.helper.downLoadFileCSV(n,"DuniaGames-Commission"+a,"text/csv")},n=>{this.loader.hide(),404===n.status?this.myToastService.showError("en"===this.currLanguage?"Failed to download document":"Dokumen gagal diunduh"):this.myToastService.showError(null==n?void 0:n.message)})}}var lt;(rt=ut).\u0275fac=function(a){return new(a||rt)},rt.\u0275cmp=t.VBU({type:rt,selectors:[["app-my-affiliate-payment-list"]],standalone:!1,decls:18,vars:6,consts:[[1,"my-affiliate-payment-list"],[1,"filter-wrapper"],[1,"drop-down-year"],["src","/assets/v3/icon/dropdown-icon.svg",1,"dropdown-icon"],["src","/assets/v3/icon/bottom-ic.svg",1,"dropdown-arrow"],["appearance","fill"],["placeholder","Tahun","panelClass","filter-year",3,"selectionChange"],[3,"value"],[1,"btn-download",3,"click"],["src","assets/v3/icon/download.svg","alt","icon info"],["class","table-wrapper",4,"ngIf"],["class","wrapper-card-mobile",4,"ngIf"],["class","wrapper-pagging",4,"ngIf"],["class","loader-wrapper",4,"ngIf"],["class","empty-wrapper",4,"ngIf"],["class","error-wrapper",4,"ngIf"],[1,"table-wrapper"],[3,"ngClass"],[3,"routerLink","queryParams"],[1,"wrapper-card-mobile"],[1,"card-mob"],[1,"com-det"],[1,"dated"],[1,"status-pay",3,"ngClass"],[1,"cont-det"],[1,"tot-comm"],[1,"word-tot-comm"],[1,"amount-tot-com"],[1,"btn-wr"],[1,"wrapper-pagging"],["class","d-pagination--content",4,"ngIf"],[1,"d-pagination--content"],[1,"con-paging",3,"onAction","page","totalPage"],[1,"loader-wrapper"],["viewBox","0 0 600 320","speed","2",3,"backgroundColor","foregroundColor"],["x","2","y","2","rx","4","ry","4","width","600","height","30"],["x","2","y","30","rx","4","ry","4","width","600","height","30"],["x","2","y","90","rx","4","ry","4","width","600","height","40"],["x","2","y","145","rx","4","ry","4","width","600","height","40"],["x","2","y","200","rx","4","ry","4","width","600","height","40"],["x","2","y","255","rx","4","ry","4","width","600","height","40"],[1,"empty-wrapper"],["src","/assets/v3/icon/illustration-empty.svg","alt","Dunia Games",1,"image-empty"],[1,"error-wrapper"],[3,"onClickEvent"]],template:function(a,n){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3)(4,"img",4),t.j41(5,"mat-form-field",5)(6,"mat-select",6),t.bIt("selectionChange",function(c){return n.getYear(c)}),t.Z7z(7,Ct,2,2,"mat-option",7,t.fX1),t.k0s()()(),t.j41(9,"button",8),t.bIt("click",function(){return n.download()}),t.nrm(10,"img",9),t.EFF(11," Unduh File "),t.k0s()(),t.DNE(12,bt,15,0,"div",10)(13,wt,3,0,"div",11)(14,Pt,2,1,"div",12)(15,Ot,8,2,"div",13)(16,kt,4,0,"div",14)(17,Lt,2,0,"div",15),t.k0s()),2&a&&(t.R7$(7),t.Dyx(n.yearRange),t.R7$(5),t.Y8G("ngIf",(null==n.getListAffiliateCommision?null:n.getListAffiliateCommision.length)>0&&!n.isError&&!n.isLoading&&!n.isMobile),t.R7$(),t.Y8G("ngIf",(null==n.getListAffiliateCommision?null:n.getListAffiliateCommision.length)>0&&!n.isError&&!n.isLoading&&n.isMobile),t.R7$(),t.Y8G("ngIf",(null==n.getListAffiliateCommision?null:n.getListAffiliateCommision.length)>0&&!n.isError&&!n.isLoading),t.R7$(),t.Y8G("ngIf",n.isLoading),t.R7$(),t.Y8G("ngIf",0===(null==n.getListAffiliateCommision?null:n.getListAffiliateCommision.length)&&!n.isError&&!n.isLoading),t.R7$(),t.Y8G("ngIf",n.isError&&!n.isLoading))},dependencies:[v.YU,v.bT,r.Wk,O.j,s.g,g.M,l.e,M.GC,E.m,v.Jj,v.vh,G.c,X.C,N.w],styles:[".my-affiliate-payment-list .filter-wrapper{margin-bottom:5px}.my-affiliate-payment-list .filter-wrapper.vishid{visibility:hidden}.my-affiliate-payment-list .filter-wrapper .drop-down-year{position:relative;display:inline-block;margin-right:15px;margin-bottom:15px;transition:filter .3s ease-in-out;filter:brightness(100%)}.my-affiliate-payment-list .filter-wrapper .drop-down-year:hover{transition:filter .3s ease-in-out;filter:brightness(135%)}.my-affiliate-payment-list .filter-wrapper .drop-down-year .dropdown-icon{position:absolute;width:16px;height:16px;z-index:10;top:8px;left:8px}.my-affiliate-payment-list .filter-wrapper .drop-down-year .dropdown-arrow{position:absolute;right:15px;top:10px;pointer-events:none;z-index:10;width:11px;height:11px}.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-text-field-wrapper{padding:0}@media (max-width: 767px){.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-form-field{width:100%}}.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-form-field .mat-mdc-form-field-subscript-wrapper,.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-select-arrow-wrapper,.my-affiliate-payment-list .filter-wrapper .drop-down-year .mdc-line-ripple{display:none}.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-form-field-appearance-fill .mat-mdc-form-field-flex{border-radius:6px;padding:0;border:1.5px solid rgb(255,255,255);background:#3f424a}.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-form-field-infix{width:131px;padding:4px 10px;min-height:unset}.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-select-min-line,.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-select-value{color:#fff;margin-left:10px}.my-affiliate-payment-list .filter-wrapper .drop-down-year .mdc-line-ripple{display:none}.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-select-arrow-wrapper{position:relative}.my-affiliate-payment-list .filter-wrapper .drop-down-year .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:#69707e}.my-affiliate-payment-list .filter-wrapper .btn-download{position:relative;top:-1px;width:150px;height:32px;border-radius:56px;gap:8px;border-width:1px;
1padding:2px 16px 2px 26px;font-family:Montserrat,sans-serif;font-weight:200;font-size:14px;line-height:21px;text-align:center;vertical-align:middle;background:transparent;color:#fff;border:1px solid;transition:all .3s ease-in-out}.my-affiliate-payment-list .filter-wrapper .btn-download:hover{background:#3f424a}.my-affiliate-payment-list .filter-wrapper .btn-download img{position:absolute;width:24px;height:24px;top:3px;left:12px}.my-affiliate-payment-list .table-wrapper table{border:1px solid rgb(63,66,74);width:100%;color:#fff;font-family:Montserrat,sans-serif;font-weight:400;font-size:14px;line-height:21px}.my-affiliate-payment-list .table-wrapper table tr th,.my-affiliate-payment-list .table-wrapper table tr td{padding:15px;border-bottom:1px solid rgb(63,66,74)}@media (max-width: 767px){.my-affiliate-payment-list .table-wrapper table tr th,.my-affiliate-payment-list .table-wrapper table tr td{padding:10px}}@media (min-width: 1200px){.my-affiliate-payment-list .table-wrapper table tr th.pending,.my-affiliate-payment-list .table-wrapper table tr td.pending{color:#afafb9}.my-affiliate-payment-list .table-wrapper table tr th.paid,.my-affiliate-payment-list .table-wrapper table tr td.paid{color:#0cc477}.my-affiliate-payment-list .table-wrapper table tr th a,.my-affiliate-payment-list .table-wrapper table tr td a{text-decoration:unset;filter:brightness(100%);transition:filter .3s ease-in-out}.my-affiliate-payment-list .table-wrapper table tr th a:hover,.my-affiliate-payment-list .table-wrapper table tr td a:hover{filter:brightness(120%);transition:filter .3s ease-in-out}}@media (min-width: 768px) and (max-width: 1365px){.my-affiliate-payment-list .table-wrapper table tr th.pending,.my-affiliate-payment-list .table-wrapper table tr td.pending{color:#afafb9}.my-affiliate-payment-list .table-wrapper table tr th.paid,.my-affiliate-payment-list .table-wrapper table tr td.paid{color:#0cc477}.my-affiliate-payment-list .table-wrapper table tr th a,.my-affiliate-payment-list .table-wrapper table tr td a{text-decoration:unset;filter:brightness(100%);transition:filter .3s ease-in-out}.my-affiliate-payment-list .table-wrapper table tr th a:hover,.my-affiliate-payment-list .table-wrapper table tr td a:hover{filter:brightness(120%);transition:filter .3s ease-in-out}}.my-affiliate-payment-list .wrapper-card-mobile{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}.my-affiliate-payment-list .wrapper-card-mobile .card-mob{display:flex;width:100%;padding:12px 16px;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid #3F424A;border-bottom:unset}.my-affiliate-payment-list .wrapper-card-mobile .card-mob:nth-last-child(1){border-bottom:1px solid #3F424A}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .com-det{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .com-det .dated{flex:1 0 0;color:#fff;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:18px}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .com-det .status-pay{text-align:right;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:18px}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .com-det .status-pay.pending{color:#afafb9}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .com-det .status-pay.paid{color:#0cc477}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .cont-det{display:flex;align-items:flex-end;align-self:stretch}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .cont-det .tot-comm{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .cont-det .tot-comm .word-tot-comm{align-self:stretch;color:#fff;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:18px}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .cont-det .tot-comm .amount-tot-com{align-self:stretch;color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .cont-det .btn-wr{display:flex;align-items:flex-start}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .cont-det .btn-wr a{display:flex;align-items:center;gap:8px;color:#8dacf6;text-align:center;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:600;line-height:18px;text-decoration:unset;filter:brightness(100%);transition:filter .3s ease-in-out}.my-affiliate-payment-list .wrapper-card-mobile .card-mob .cont-det .btn-wr a:hover{filter:brightness(120%);transition:filter .3s ease-in-out}.my-affiliate-payment-list .wrapper-pagging{position:relative;margin-top:25px}.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .con-paging{border:0}.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component{margin:0;text-align:left}.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination{margin:0;padding-left:3px}.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li a{border:1px solid rgb(65,105,225)!important;border-radius:50px!important;margin-left:10px!important}.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li a:hover,.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li a:focus,.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li a:active{background-color:#4169e1!important}.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li:last-child a:hover,.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li:last-child a:focus,.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li:last-child a:active{background-color:#4169e1!important}.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li:hover a,.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li:focus a,.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li:active a,.my-affiliate-payment-list .wrapper-pagging .d-pagination--content .pagination-component .pagination li.active a{background-color:#4169e1!important}.my-affiliate-payment-list .empty-wrapper{position:relative;background:#22252a;display:block;text-align:center;padding:100px 0 110px}.my-affiliate-payment-list .empty-wrapper .image-empty{display:block;margin:15px auto}.my-affiliate-payment-list .empty-wrapper strong{font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;line-height:24px;color:#fff}.my-affiliate-payment-list .error-wrapper .error-card{height:auto}.my-affiliate-payment-list .error-wrapper .error-card button{height:auto!important;margin:10px}.mat-mdc-option .mat-pseudo-checkbox{display:none}\n"],encapsulation:2});const ht=i=>({connected:i}),_t=i=>({yesdt:i});function It(i,a){if(1&i&&t.EFF(0),2&i){const n=t.XpG(2);t.SpI(" ","en"===n.currLanguage?"Connected with LinkAja account":"Terhubung dengan akun LinkAja"," ")}}function At(i,a){if(1&i&&t.EFF(0),2&i){const n=t.XpG(2);t.SpI(" ","en"===n.currLanguage?"Connect for commission payments":"Hubungkan untuk pembayaran komisi"," ")}}function Et(i,a){if(1&i&&(t.j41(0,"div",13),t.EFF(1),t.k0s()),2&i){const n=t.XpG(3);t.R7$(),t.JRh(null==n.affiliateList||null==n.affiliateList.accounts[0]?null:n.affiliateList.accounts[0].accountNumber)}}function Rt(i,a){if(1&i){const n=t.RV6();t.j41(0,"button",16),t.bIt("click",function(){t.eBV(n);const c=t.XpG(3);return t.Njj(c.reqOtp())}),t.EFF(1),t.k0s()}if(2&i){const n=t.XpG(3);t.R7$(),t.JRh("en"===n.currLanguage?"Change":"Ganti")}}function Tt(i,a){if(1&i){const n=t.RV6();t.j41(0,"div",10),t.nrm(1,"img",11),t.j41(2,"div",12),t.bIt("click",function(){t.eBV(n);const c=t.XpG(2);return t.Njj(null!=c.affiliateList&&c.affiliateList.accounts.length?"":c.reqOtp())}),t.DNE(3,Et,2,1,"div",13),t.j41(4,"div",14),t.EFF(5),t.k0s()(),t.DNE(6,Rt,2,1,"button",15),t.k0s()}if(2&i){const n=t.XpG(2);t.R7$(2),t.Y8G("ngClass",t.eq3(4,ht,null==n.affiliateList?null:n.affiliateList.accounts.length)),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.accounts.length?3:-1),t.R7$(2),t.JRh(null!=n.affiliateList&&n.affiliateList.accounts.length?"en"===n.currLanguage?"Connected":"Terhubung":"en"===n.currLanguage?"Connect":"Hubungkan"),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.accounts.length?6:-1)}}function jt(i,a){if(1&i&&(t.j41(0,"div",4)(1,"div",5),t.nrm(2,"img",6),t.j41(3,"span"),t.EFF(4),t.k0s()(),t.j41(5,"h2"),t.DNE(6,It,1,1)(7,At,1,1),t.k0s(),t.j41(8,"div",7),t.DNE(9,Tt,7,6,"div",8),t.k0s()(),t.j41(10,"div",9),t.nrm(11,"app-my-affiliate-payment-list"),t.k0s()),2&i){const n=t.XpG();t.R7$(4),t.JRh(n.infoPayment),t.R7$(2),t.vxM(null!=n.affiliateList&&n.affiliateList.accounts.length?6:7),t.R7$(3),t.Y8G("ngIf",!n.isError&&!n.isLoading)}}function Ft(i,a){if(1&i&&(t.j41(0,"div",13),t.EFF(1),t.k0s()),2&i){const n=t.XpG(3);t.R7$(),t.JRh(null==n.affiliateList||null==n.affiliateList.accounts[0]?null:n.affiliateList.accounts[0].accountNumber)}}function Gt(i,a){if(1&i){const n=t.RV6();t.j41(0,"button",16),t.bIt("click",function(){t.eBV(n);const c=t.XpG(3);return t.Njj(c.reqOtp())}),t.EFF(1),t.k0s()}if(2&i){const n=t.XpG(3);t.R7$(),t.JRh("en"===n.currLanguage?"Change":"Ganti")}}function Dt(i,a){if(1&i){const n=t.RV6();t.j41(0,"button",44),t.bIt("click",function(){t.eBV(n);const c=t.XpG(3);return t.Njj(c.reqOtp())}),t.EFF(1),t.k0s()}if(2&i){const n=t.XpG(3);t.R7$(),t.JRh("en"===n.currLanguage?"Connect":"Hubungkan")}}function $t(i,a){if(1&i&&(t.j41(0,"div",10),t.nrm(1,"img",11),t.j41(2,"div",42),t.DNE(3,Ft,2,1,"div",13),t.j41(4,"div",14),t.EFF(5),t.k0s()(),t.DNE(6,Gt,2,1,"button",15)(7,Dt,2,1,"button",43),t.k0s()),2&i){const n=t.XpG(2);t.R7$(2),t.Y8G("ngClass",t.eq3(4,ht,null==n.affiliateList?null:n.affiliateList.accounts.length)),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.accounts.length?3:-1),t.R7$(2),t.JRh(null!=n.affiliateList&&n.affiliateList.accounts.length?"en"===n.currLanguage?"Connected":"Terhubung":"en"===n.currLanguage?"LinkAja Account":"Akun LinkAja"),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.accounts.length?6:7)}}function St(i,a){if(1&i&&(t.j41(0,"div",32)(1,"span",45),t.EFF(2),t.k0s()()),2&i){const n=t.XpG(2);t.R7$(2),t.SpI(" ","en"===n.currLanguage?"Uploaded":"Sudah Upload"," ")}}function Nt(i,a){if(1&i&&(t.j41(0,"div",33)(1,"span",45),t.EFF(2),t.k0s()()),2&i){const n=t.XpG(2);t.R7$(2),t.SpI(" ","en"===n.currLanguage?"Not Uploaded":"Belum Upload"," ")}}function Ut(i,a){if(1&i&&(t.j41(0,"div",34),t.EFF(1),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.SpI(" ","en"===n.currLanguage?"Upload a photo in JPG/PNG format, maximum 2MB.":"Upload foto dengan format JPG/PNG maksimal 2MB"," ")}}function Bt(i,a){if(1&i){const n=t.RV6();t.j41(0,"button",46),t.bIt("click",function(){t.eBV(n),t.XpG();const c=t.sdS(10);return t.Njj(c.click())}),t.EFF(1," Upload "),t.k0s()}}function Xt(i,a){if(1&i){const n=t.RV6();t.j41(0,"button",47),t.bIt("click",function(){t.eBV(n),t.XpG();const c=t.sdS(10);return t.Njj(c.click())}),t.EFF(1," Upload "),t.k0s()}}function Yt(i,a){if(1&i&&(t.j41(0,"div",32)(1,"span",45),t.EFF(2),t.k0s()()),2&i){const n=t.XpG(2);t.R7$(2),t.SpI(" ","en"===n.currLanguage?"Uploaded":"Sudah Upload"," ")}}function zt(i,a){if(1&i&&(t.j41(0,"div",33)(1,"span",45),t.EFF(2),t.k0s()()),2&i){const n=t.XpG(2);t.R7$(2),t.SpI(" ","en"===n.currLanguage?"Not Uploaded":"Belum Upload"," ")}}function Vt(i,a){if(1&i&&(t.j41(0,"div",34),t.EFF(1),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.SpI(" ","en"===n.currLanguage?"Upload a photo in JPG/PNG format, maximum 2MB.":"Upload foto dengan format JPG/PNG maksimal 2MB"," ")}}function Wt(i,a){if(1&i){const n=t.RV6();t.j41(0,"button",46),t.bIt("click",function(){t.eBV(n),t.XpG();const c=t.sdS(28);return t.Njj(c.click())}),t.EFF(1," Upload "),t.k0s()}}function Ht(i,a){if(1&i){const n=t.RV6();t.j41(0,"button",47),t.bIt("click",function(){t.eBV(n),t.XpG();const c=t.sdS(28);return t.Njj(c.click())}),t.EFF(1," Upload "),t.k0s()}}function Jt(i,a){if(1&i){const n=t.RV6();t.j41(0,"div",3)(1,"div",17)(2,"span",18),t.EFF(3),t.k0s(),t.j41(4,"div",19)(5,"span",20),t.EFF(6),t.k0s()()(),t.j41(7,"div",7),t.DNE(8,$t,8,6,"div",8),t.k0s(),t.j41(9,"input",21,0),t.bIt("change",function(c){t.eBV(n);const C=t.XpG();return t.Njj(C.onFileChange(c,"KTP"))}),t.k0s(),t.j41(11,"div",22)(12,"div",23)(13,"div",24),t.qSk(),t.j41(14,"svg",25),t.nrm(15,"path",26)(16,"path",27)(17,"path",28),t.k0s()()(),t.joV(),t.j41(18,"div",29)(19,"div",30)(20,"span",31),t.EFF(21),t.k0s(),t.DNE(22,St,3,1,"div",32)(23,Nt,3,1,"div",33),t.k0s(),t.DNE(24,Ut,2,1,"div",34)(25,Bt,2,0,"button",35),t.k0s(),t.DNE(26,Xt,2,0,"button",36),t.k0s(),t.j41(27,"input",21,1),t.bIt("change",function(c){t.eBV(n);const C=t.XpG();return t.Njj(C.onFileChange(c,"NPWP"))}),t.k0s(),t.j41(29,"div",37)(30,"div",23)(31,"div",24),t.qSk(),t.j41(32,"svg",25),t.nrm(33,"path",38)(34,"path",39)(35,"path",40)(36,"path",41),t.k0s()()(),t.joV(),t.j41(37,"div",29)(38,"div",30)(39,"
1span",31),t.EFF(40),t.k0s(),t.DNE(41,Yt,3,1,"div",32)(42,zt,3,1,"div",33),t.k0s(),t.DNE(43,Vt,2,1,"div",34)(44,Wt,2,0,"button",35),t.k0s(),t.DNE(45,Ht,2,0,"button",36),t.k0s()()}if(2&i){const n=t.XpG();t.R7$(3),t.JRh("en"===n.currLanguage?"Set to withdraw your commission":"Atur untuk menerima komisi"),t.R7$(3),t.JRh(null!=n.affiliateList&&null!=n.affiliateList.accounts&&n.affiliateList.accounts.length?null!=n.affiliateList&&null!=n.affiliateList.uploadedDocuments&&n.affiliateList.uploadedDocuments.length?null==n.affiliateList||null==n.affiliateList.uploadedDocuments?null:n.affiliateList.uploadedDocuments.length:2:3),t.R7$(2),t.Y8G("ngIf",!n.isError&&!n.isLoading),t.R7$(3),t.Y8G("ngClass",t.eq3(15,_t,null==n.affiliateList?null:n.affiliateList.uploadedDocuments.includes("KTP"))),t.R7$(10),t.SpI(" ","en"===n.currLanguage?"Your KTP":"KTP kamu"," "),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.uploadedDocuments.includes("KTP")?22:23),t.R7$(2),t.vxM(null!=n.affiliateList&&n.affiliateList.uploadedDocuments.includes("KTP")?-1:24),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.uploadedDocuments.includes("KTP")?-1:25),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.uploadedDocuments.includes("KTP")?-1:26),t.R7$(3),t.Y8G("ngClass",t.eq3(17,_t,null==n.affiliateList?null:n.affiliateList.uploadedDocuments.includes("NPWP"))),t.R7$(11),t.SpI(" ","en"===n.currLanguage?"Your NPWP":"NPWP kamu"," "),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.uploadedDocuments.includes("NPWP")?41:42),t.R7$(2),t.vxM(null!=n.affiliateList&&n.affiliateList.uploadedDocuments.includes("NPWP")?-1:43),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.uploadedDocuments.includes("NPWP")?-1:44),t.R7$(),t.vxM(null!=n.affiliateList&&n.affiliateList.uploadedDocuments.includes("NPWP")?-1:45)}}class yt{constructor(){this.dialog=(0,t.WQX)(L.j),this.getAffiliateListUsecase=(0,t.WQX)(A.n),this.growthBookService=(0,t.WQX)(S.GrowthBookService),this.isLoading=!0,this.isError=!1,this.translationService=(0,t.WQX)(w.TranslationService),this.loaderService=(0,t.WQX)(e.Z),this.postAffiliateUploadKtpnpwpUsecase=(0,t.WQX)(q.W),this.tooltipServices=(0,t.WQX)(tt.l)}get enableAffiliateKtpNpwp(){var a,n,d;const c=null!==(a=localStorage.getItem("x-device"))&&void 0!==a?a:"",C=null===(n=this.growthBookService.evalFeature("toggle_affiliate_ktp_npwp"))||void 0===n?void 0:n.value,J=null!==(d=null==C?void 0:C.xdevice)&&void 0!==d?d:"",H=null==C?void 0:C.enable_all;return this.growthBookService.isOn("toggle_affiliate_ktp_npwp")&&J.includes(c)||this.growthBookService.isOn("toggle_affiliate_ktp_npwp")&&H}ngOnInit(){var a,n,d;this.currLanguage=this.translationService.currLanguage;const c=null===(a=this.growthBookService.evalFeature("config_my_affiliate_profile"))||void 0===a?void 0:a.value;this.infoPayment="en"===this.currLanguage?null==c||null===(n=c.infoPayment)||void 0===n?void 0:n.en:null==c||null===(d=c.infoPayment)||void 0===d?void 0:d.id,this.getAffiliateList()}getAffiliateList(a){this.getAffiliateListUsecase.execute().subscribe(n=>{var d,c,C;(this.isLoading=!1,this.isError=!1,null!==(d=n.uploadedDocuments)&&void 0!==d&&d.length||(n.uploadedDocuments=[]),this.affiliateList=n,this.enableAffiliateKtpNpwp)?this.hasKTPandNPWP=(null===(c=this.affiliateList)||void 0===c?void 0:c.uploadedDocuments.includes("KTP"))&&(null===(C=this.affiliateList)||void 0===C?void 0:C.uploadedDocuments.includes("NPWP")):this.hasKTPandNPWP=!0},n=>{this.isLoading=!1,this.isError=!0},()=>{a()})}reqOtp(){this.dialog.open(p,{data:this.affiliateList.accounts[0],panelClass:"redeem-otp-modal",backdropClass:"overlay-backdrop-blue",disableClose:!0}).afterClosed().subscribe(a=>{a&&this.getAffiliateList()})}onFileChange(a,n){const d=a.target;if(!d.files||0===d.files.length)return;const c=d.files[0];if(c.size>2097152)return void this.tooltipServices.show({isShake:!0,isError:!0,isClose:!0,timeout:15e3,top:"90",topMobile:"130",right:"0",left:"0",rightMobile:"0",leftMobile:"0",width:"unset",message:"en"===this.currLanguage?"Use images in JPG or PNG format less than 2MB.":"Gunakan gambar dengan format JPG atau PNG kurang dari 2MB."});if(!["image/jpeg","image/png"].includes(c.type))return void this.tooltipServices.show({isShake:!0,isError:!0,isClose:!0,timeout:15e3,to
1p:"90",topMobile:"130",right:"0",left:"0",rightMobile:"0",leftMobile:"0",width:"unset",message:"en"===this.currLanguage?"Use images in JPG or PNG format less than 2MB.":"Gunakan gambar dengan format JPG atau PNG kurang dari 2MB."});const H=new FileReader;H.onload=()=>{const pt=H.result,Kt={type:n,image:pt};d.value="",this.loaderService.show(),this.postAffiliateUploadKtpnpwpUsecase.execute(Kt).subscribe(R=>{},R=>{var Z,ct,Q,dt;(console.log(R),this.loaderService.hide(),null!=R&&null!==(Z=R.error)&&void 0!==Z&&null!==(Z=Z.status)&&void 0!==Z&&Z.message||null!=R&&null!==(ct=R.status)&&void 0!==ct&&ct.message)?this.tooltipServices.show({isShake:!0,isError:!0,isClose:!0,timeout:15e3,top:"90",topMobile:"130",right:"0",left:"0",rightMobile:"0",leftMobile:"0",width:"unset",message:(null==R||null===(Q=R.error)||void 0===Q||null===(Q=Q.status)||void 0===Q?void 0:Q.message)||(null==R||null===(dt=R.status)||void 0===dt?void 0:dt.message)}):this.tooltipServices.show({isShake:!0,isError:!0,isClose:!0,timeout:15e3,top:"90",topMobile:"130",right:"0",left:"0",rightMobile:"0",leftMobile:"0",width:"unset",message:"Upload "+n+("en"===this.currLanguage?" Failed":" Gagal")})},()=>{this.getAffiliateList(()=>{this.loaderService.hide(),this.tooltipServices.show({isShake:!1,isSuccess:!0,isClose:!0,timeout:15e3,top:"90",topMobile:"130",right:"0",left:"0",rightMobile:"0",leftMobile:"0",width:"unset",message:("en"===this.currLanguage?"Successful Upload ":"Sukses Upload ")+n})})})},H.onerror=()=>{this.tooltipServices.show({isShake:!0,isError:!0,isClose:!0,timeout:15e3,top:"90",topMobile:"130",right:"0",left:"0",rightMobile:"0",leftMobile:"0",width:"unset",message:"en"===this.currLanguage?"Failed to read file. Please try again.":"Gagal membaca file. Silakan coba lagi."})},H.readAsDataURL(c)}}(lt=yt).\u0275fac=function(a){return new(a||lt)},lt.\u0275cmp=t.VBU({type:lt,selectors:[["app-my-affiliate-payment-account"]],standalone:!1,decls:4,vars:1,consts:[["ktpInput",""],["npwpInput",""],[1,"my-affiliate-payment-account"],[1,"payment-account-wrapper","nohas"],[1,"payment-account-wrapper"],[1,"section-info"],["src","assets/v3/icon/icon-info.svg","alt","icon info"],[1,"payment-wraapper"],["class","payment-list",4,"ngIf"],[1,"payment-list-wraapper"],[1,"payment-list"],["src","assets/v3/icon/link-aja.svg",1,"payment-icon"],[1,"status",3,"click","ngClass"],[1,"telp"],[1,"sts"],[1,"btn-edit"],[1,"btn-edit",3,"click"],[1,"ttl-count-com"],[1,"ttl-cou"],[1,"proggrs"],[1,"pr"],["type","file","hidden","","accept",".jpg,.jpeg,.png",1,"hidden",3,"change"],[1,"idcard",3,"ngClass"],[1,"icone-wrap"],[1,"icon-df"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none"],["d","M18.1404 21.62C17.2604 21.88 16.2204 22 15.0004 22H9.00035C7.78035 22 6.74035 21.88 5.86035 21.62C6.08035 19.02 8.75035 16.97 12.0004 16.97C15.2504 16.97 17.9204 19.02 18.1404 21.62Z","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 2H9C4 2 2 4 2 9V15C2 18.78 3.14 20.85 5.86 21.62C6.08 19.02 8.75 16.97 12 16.97C15.25 16.97 17.92 19.02 18.14 21.62C20.86 20.85 22 18.78 22 15V9C22 4 20 2 15 2ZM12 14.17C10.02 14.17 8.42 12.56 8.42 10.58C8.42 8.60002 10.02 7 12 7C13.98 7 15.58 8.60002 15.58 10.58C15.58 12.56 13.98 14.17 12 14.17Z","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15.5799 10.58C15.5799 12.56 13.9799 14.17 11.9999 14.17C10.0199 14.17 8.41992 12.56 8.41992 10.58C8.41992 8.60002 10.0199 7 11.9999 7C13.9799 7 15.5799 8.60002 15.5799 10.58Z","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"text-wrpe"],[1,"ttle-tope"],[1,"wrde"],[1,"stse","upl"],[1,"stse"],[1,"ttl-bote"],[1,"uploadeedd","hover-bright"],[1,"uploade","hover-bright"],[1,"npwp",3,"ngClass"],["d","M2 8.50488H22","stroke","white","stroke-width","1.5","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M6 16.5049H8","stroke","white","stroke-width","1.5","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M10.5 16.5049H14.5","stroke","white","stroke-width","1.5","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M6.44 3.50488H17.55C21.11 3.50488 22 4.38488 22 7.89488V16.1049C22 19.6149 21.11 20.4949 17.56 20.4949H6.44C2.89 20.5049 2 19.6249 2 16.1149V7.89488C2 4.38488 2.89 3.50488 6.44 3.50488Z","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"status",3,"ngClass"],[1,"btnhub","hover-bright"],[1,"btnhub","hover-bright",3,"click"],[1,"stsess"],[1,"uploadeedd","hover-bright",3,"click"],[1,"uploade","hover-bright",3,"click"]],template:function(a,n){1&a&&(t.j41(0,"div",2),t.nrm(1,"app-dg-tooltip"),t.DNE(2,jt,12,3)(3,Jt,46,19,"div",3),t.k0s()),2&a&&(t.R
17$(2),t.vxM(n.hasKTPandNPWP?2:3))},dependencies:[v.YU,v.bT,nt.I,et.O,ut],styles:['.my-affiliate-payment-account{background-color:#22252a;padding:15px;border-radius:9px}@media (max-width: 767px){.my-affiliate-payment-account{padding:0;background-color:unset}}.my-affiliate-payment-account app-dg-tooltip{position:fixed;top:0;left:0;right:0;margin:auto;width:min-content;white-space:nowrap;z-index:99}@media (max-width: 767px){.my-affiliate-payment-account app-dg-tooltip{width:100%}.my-affiliate-payment-account app-dg-tooltip .tooltip-wrapper .tooltip{max-width:calc(100% - 30px);display:flex;white-space:normal;flex-direction:row}}.my-affiliate-payment-account .payment-account-wrapper{background:#383a3f;border-radius:12px;padding:15px;margin-bottom:20px}@media (max-width: 767px){.my-affiliate-payment-account .payment-account-wrapper{background:#22252a}}.my-affiliate-payment-account .payment-account-wrapper.nohas{padding:unset;background:transparent;display:flex;flex-direction:column}@media (max-width: 767px){.my-affiliate-payment-account .payment-account-wrapper.nohas{background:#22252a;padding:12px 16px}}.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper{margin-top:16px;position:relative}.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list{display:flex;flex-direction:row;justify-content:space-between;align-items:center}@media (max-width: 767px){.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list{justify-content:unset;gap:16px}}.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list .status{cursor:default}@media (max-width: 767px){.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list .status{top:-5px}}.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list .status.connected{top:-18px;display:flex;gap:8px;align-items:center;flex-direction:row}@media (min-width: 1200px){.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list .status.connected{top:0}}@media (min-width: 768px) and (max-width: 1365px){.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list .status.connected{top:0}}.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list button.btn-edit{top:10px}@media (max-width: 767px){.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list button.btn-edit{left:58px;right:unset;top:24px}}.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list button.btnhub{display:flex;padding:4px 16px;justify-content:center;align-items:center;gap:8px;border-radius:56px;background:#d0021b;color:#fff;text-align:center;font-family:Montserrat,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px;outline:none;border:unset;height:min-content}@media (max-width: 767px){.my-affiliate-payment-account .payment-account-wrapper.nohas .payment-wraapper .payment-list button.btnhub{margin-top:20px}}.my-affiliate-payment-account .payment-account-wrapper.nohas .ttl-count-com{display:flex;align-items:center;gap:8px;align-self:stretch;margin-top:9px}.my-affiliate-payment-account .payment-account-wrapper.nohas .ttl-count-com span.ttl-cou{color:#fff;font-family:Montserrat,sans-serif;font-size:16px;font-style:normal;font-weight:700;line-height:24px}.my-affiliate-payment-account .payment-account-wrapper.nohas .ttl-count-com .proggrs{display:flex;width:24px;padding:3px 8px 3px 9px;justify-content:center;align-items:center;border-radius:40px;background:#ffffff1a}.my-affiliate-payment-account .payment-account-wrapper.nohas .ttl-count-com .proggrs span.pr{color:#fff;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:600;line-height:18px}.my-affiliate-payment-account .payment-account-wrapper.nohas input.hidden{display:none}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard{margin-top:16px}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp{display:flex;padding:16px 0;align-items:flex-start;gap:16px;align-self:stretch;border-top:1px solid rgba(255,255,255,.1)}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard.yesdt,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp.yesdt{align-items:center}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .icone-wrap,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .icone-wrap{display:flex;width:46px;height:46px;padding:11px;justify-content:center;align-items:center;border-radius:8px;background:#ffffff1a}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .icone-wrap .icon-df,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .icone-wrap .icon-df{display:flex;width:24px;height:24px;justify-content:center;align-items:center;flex-shrink:0}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .icone-wrap .icon-df svg,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .icone-wrap .icon-df svg{width:24px;height:24px;flex-shrink:0}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex:1 0 0}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe .ttle-tope,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe .ttle-tope{display:flex;align-items:center;gap:8px;align-self:stretch}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe .ttle-tope span.wrde,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe .ttle-tope span.wrde{color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe .ttle-tope .stse,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe .ttle-tope .stse{display:flex;padding:2px 8px;justify-content:center;align-items:center;border-radius:16px;background:#afafb980}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe .ttle-tope .stse.upl,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe .ttle-tope .stse.upl{background:#ccfcd529}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe .ttle-tope .stse.upl span.stsess,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe .ttle-tope .stse.upl span.stsess{color:var(--DIGGIE-Text-text-valid, #0CC477)}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe .ttle-tope .stse span.stsess,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe .ttle-tope .stse span.stsess{color:#fff;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:18px}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe .ttl-bote,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe .ttl-bote{color:#afafb9;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:18px}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe button.uploadeedd,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe button.uploadeedd{display:flex;padding:4px 16px;justify-content:center;align-items:center;gap:8px;border-radius:56px;background:#d0021b;color:#fff;text-align:center;font-family:Montserrat,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px;outline:none;border:unset}@media (min-width: 1200px){.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe button.uploadeedd,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe button.uploadeedd{display:none}}@media (min-width: 768px) and (max-width: 1365px){.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard .text-wrpe button.uploadeedd,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp .text-wrpe button.uploadeedd{display:none}}.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard button.uploade,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp button.uploade{display:flex;padding:4px 16px;justify-content:center;align-items:center;gap:8px;border-radius:56px;background:#d0021b;color:#fff;text-align:center;font-family:Montserrat,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px;outline:none;border:unset}@media (max-width: 767px){.my-affiliate-payment-account .payment-account-wrapper.nohas .idcard button.uploade,.my-affiliate-payment-account .payment-account-wrapper.nohas .npwp button.uploade{display:none}}.my-affiliate-payment-account .payment-account-wrapper .section-info{position:relative;background:#1a1f39;padding:12px;border:1px solid;border-image-source:linear-gradient(.01deg,rgba(22,22,25,.3) 62.14%,rgba(65,105,225,.15) 93.44%,rgba(65,105,225,.225) 103.43%);border-radius:8px;margin-bottom:20px;overflow:hidden}.my-affiliate-payment-account .payment-account-wrapper .section-info:before{content:"";position:absolute;background:url(/assets/v3/icon/bg-section-info.svg);width:133px;
1height:48px;left:45%;right:unset;bottom:0}@media (max-width: 767px){.my-affiliate-payment-account .payment-account-wrapper .section-info:before{left:unset;right:0}}.my-affiliate-payment-account .payment-account-wrapper .section-info img{position:relative;width:22px;height:22px;margin-right:10px;vertical-align:top;margin-top:5px}.my-affiliate-payment-account .payment-account-wrapper .section-info span{position:relative;font-family:Montserrat,sans-serif;font-size:12px;line-height:16px;color:#fff;display:inline-block;width:86%}.my-affiliate-payment-account .payment-account-wrapper h2{font-family:Montserrat,sans-serif;font-size:12px;font-weight:400;line-height:18px;color:#fff;margin:10px 0 20px}.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list{position:relative}.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .payment-icon{width:46px;height:46px}.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .status{position:absolute;top:12px;left:65px;font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;line-height:21px;color:#0a9cc7;cursor:pointer}.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .status.connected{cursor:default;align-self:anchor-center}@media (min-width: 1200px){.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .status.connected{top:0;display:flex;gap:8px;align-items:center;flex-direction:row}}@media (min-width: 768px) and (max-width: 1365px){.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .status.connected{top:0;display:flex;gap:8px;align-items:center;flex-direction:row}}.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .status.connected .telp{color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px}.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .status.connected .sts{color:#0cc477;padding:2px 8px;border-radius:16px;background:#ccfcd529;font-weight:400;font-family:Montserrat,sans-serif}.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .btn-edit{position:absolute;top:10px;right:0;background:transparent;border:none;font-family:Montserrat,sans-serif;font-size:16px;font-weight:600;line-height:24px;color:#0a9cc7;filter:brightness(100%);transition:filter .3s ease-in-out}.my-affiliate-payment-account .payment-account-wrapper .payment-wraapper .payment-list .btn-edit:hover{filter:brightness(120%);transition:filter .3s ease-in-out}.my-affiliate-payment-account .payment-account-wrapper .empty-wrapper strong{font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;line-height:24px;color:#fff}.my-affiliate-payment-account .payment-account-wrapper .error-wrapper .error-card{height:auto}.my-affiliate-payment-account .payment-account-wrapper .error-wrapper .error-card button{height:auto!important}\n'],encapsulation:2})},35545(st,Y,o){o.d(Y,{v:()=>K});var I,t=o(17705),L=o(36872),T=o(13428),F=o(45312),e=o(25037),z=o(96048),b=o(86005),U=o(95789),B=o(16875),w=o(32881),V=o(49870),v=o(78820),k=o(42110),W=o(15398),G=o(58211),P=o(93683);const _=f=>({disable:f}),x=f=>[f];function u(f,y){return this.index}function D(f,y){1&f&&(t.j41(0,"span",21),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()),2&f&&(t.R7$(),t.JRh(t.bMT(3,4,t.i5U(2,1,"followed_com_affiliate","affiliate"))))}function $(f,y){1&f&&(t.j41(0,"span",22),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()),2&f&&(t.R7$(),t.JRh(t.bMT(3,4,t.i5U(2,1,"waiting_approval_com_affiliate","affiliate"))))}function j(f,y){1&f&&(t.j41(0,"span",23),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()),2&f&&(t.R7$(),t.JRh(t.bMT(3,4,t.i5U(2,1,"followed_com_affiliate","affiliate"))))}function m(f,y){1&f&&(t.j41(0,"span",22),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()),2&f&&(t.R7$(),t.JRh(t.bMT(3,4,t.i5U(2,1,"waiting_approval_com_affiliate","affiliate"))))}function h(f,y){if(1&f){const r=t.RV6();t.j41(0,"button",24),t.bIt("click",function(){t.eBV(r);const s=t.XpG(3);return t.Njj(s.goTab())}),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()}2&f&&(t.R7$(),t.JRh(t.bMT(3,4,t.i5U(2,1,"view_sales_affiliate","affiliate"))))}function p(f,y){if(1&f){const r=t.RV6();t.j41(0,"button",25),t.bIt("click",function(){t.eBV(r);const s=t.XpG().$implicit,g=t.XpG(2);return t.Njj(g.joinProgram(null==s?null:s.slug))}),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()}2&f&&(t.R7$(),t.JRh(t.bMT(3,4,t.i5U(2,1,"jonprog_com_affiliate","affiliate"))))}function A(f,y){1&f&&(t.j41(0,"button",20),t.EFF(1),t.nI1(2,"translation"),t.nI1(3,"async"),t.k0s()),2&f&&(t.R7$(),t.JRh(t.bMT(3,4,t.i5U(2,1,"end_affiliate","affiliate"))))}function S(f,y){if(1&f&&(t.j41(0,"div",8)(1,"div",9),t.DNE(2,D,4,6,"span",10)(3,$,4,6,"span",11),t.nrm(4,"img",12),t.k0s(),t.j41(5,"div",13)(6,"div",14),t.EFF(7),t.nI1(8,"translation"),t.nI1(9,"async"),t.DNE(10,j,4,6,"span",15)(11,m,4,6,"span",11),t.k0s(),t.j41(12,"h2"),t.EFF(13),t.k0s(),t.j41(14,"div",16)(15,"p"),t.EFF(16),t.k0s(),t.j41(17,"a",17),t.nI1(18,"addlang"),t.EFF(19),t.nI1(20,"translation"),t.nI1(21,"async"),t.k0s()(),t.DNE(22,h,4,6,"button",18)(23,p,4,6,"button",19)(24,A,4,6,"button",20),t.k0s()()),2&f){const r=y.$implicit,O=t.XpG
1(2);t.Y8G("ngClass",t.eq3(30,_,"CLOSED"===(null==r?null:r.programStatus))),t.R7$(2),t.Y8G("ngIf",O.isMobile&&"JOINED"===(null==r?null:r.userStatus)),t.R7$(),t.Y8G("ngIf",O.isMobile&&"PENDING"===(null==r?null:r.userStatus)),t.R7$(),t.Y8G("src",null==r?null:r.image,t.B4B)("lazyLoad",null==r?null:r.image)("defaultImage",O.defaultImage),t.R7$(3),t.E5c(" ",t.bMT(9,21,t.i5U(8,18,"period_com_affiliate","affiliate"))," ",null==r?null:r.dateStart," - ",null==r?null:r.dateEnd," "),t.R7$(3),t.Y8G("ngIf",!O.isMobile&&"JOINED"===(null==r?null:r.userStatus)),t.R7$(),t.Y8G("ngIf",!O.isMobile&&"PENDING"===(null==r?null:r.userStatus)),t.R7$(2),t.JRh(null==r?null:r.title),t.R7$(3),t.JRh(null==r?null:r.summary),t.R7$(),t.Y8G("routerLink",t.bMT(18,23,t.eq3(32,x,"/affiliate/detail/"+(null==r?null:r.slug)))),t.R7$(2),t.JRh(t.bMT(21,28,t.i5U(20,25,"view_details_affiliate","affiliate"))),t.R7$(3),t.vxM("ACTIVE"===(null==r?null:r.programStatus)&&"JOINED"===(null==r?null:r.userStatus)||"ACTIVE"===(null==r?null:r.programStatus)&&"PENDING"===(null==r?null:r.userStatus)?22:-1),t.R7$(),t.vxM("ACTIVE"===(null==r?null:r.programStatus)&&"NOT_JOINED"===(null==r?null:r.userStatus)?23:-1),t.R7$(),t.vxM("CLOSED"===(null==r?null:r.programStatus)?24:-1)}}function q(f,y){if(1&f&&(t.j41(0,"div",7),t.Z7z(1,S,25,34,"div",8,u,!0),t.k0s()),2&f){const r=t.XpG();t.R7$(),t.Dyx(r.getListAffiliateProgram)}}function tt(f,y){if(1&f){const r=t.RV6();t.j41(0,"div",26)(1,"button",27),t.bIt("click",function(){t.eBV(r);const s=t.XpG();return t.Njj(s.loadMore())}),t.EFF(2),t.nI1(3,"translation"),t.nI1(4,"async"),t.k0s()()}2&f&&(t.R7$(2),t.JRh(t.bMT(4,4,t.i5U(3,1,"show_more_affiliate","affiliate"))))}function nt(f,y){if(1&f){const r=t.RV6();t.j41(0,"div",28)(1,"button",29),t.bIt("click",function(){t.eBV(r);const s=t.XpG();return t.Njj(s.loadLess())}),t.EFF(2),t.nI1(3,"translation"),t.nI1(4,"async"),t.k0s()()}2&f&&(t.R7$(2),t.JRh(t.bMT(4,4,t.i5U(3,1,"show_less_affiliate","affiliate"))))}function et(f,y){if(1&f&&(t.j41(0,"div",30)(1,"content-loader",31),t.qSk(),t.nrm(2,"rect",32)(3,"rect",33)(4,"rect",34)(5,"rect",35)(6,"rect",36)(7,"rect",37)(8,"rect",38)(9,"rect",39)(10,"rect",40)(11,"rect",41)(12,"rect",42)(13,"rect",43)(14,"rect",44)(15,"rect",45),t.k0s()()),2&f){const r=t.XpG();t.R7$(),t.Y8G("backgroundColor",r.backgroundSkeleton)("foregroundColor",r.foregroundSkeleton)}}function it(f,y){1&f&&(t.j41(0,"div",46),t.nrm(1,"img",47),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translation"),t.nI1(5,"async"),t.k0s()()),2&f&&(t.R7$(3),t.JRh(t.bMT(5,4,t.i5U(4,1,"no_program_data_affiliate","affiliate"))))}function at(f,y){if(1&f){const r=t.RV6();t.j41(0,"div",48)(1,"app-error-card",49),t.bIt("onClickEvent",function(){t.eBV(r);const s=t.XpG();return t.Njj(s.getAffiliateProgram())}),t.k0s()()}}const ot=F.c.defaultImage;class K{constructor(){this.userAgent=(0,t.WQX)(L.G),this.loader=(0,t.WQX)(U.Z),this.isMobile=!1,this.isLoading=!0,this.isError=!1,this.defaultImage=ot,this.isLoadMore=!1,this.isLoadLess=!1,this.page=1,this.total=0,this.limit=5,this.getAffiliateProgramUsecase=(0,t.WQX)(T.Z),this.postAffiliateJoinUsecase=(0,t.WQX)(e.N),this.getListAffiliateProgram=[],this.location=(0,t.WQX)(z.aZ),this.translationService=(0,t.WQX)(b.TranslationService),this.loaderService=(0,t.WQX)(U.Z),this.alert=(0,t.WQX)(B.Alert),this.currLanguage=this.translationService.currLanguage,this.isMobile=this.userAgent.isMobileView()}ngOnInit(){this.getAffiliateProgram()}getAffiliateProgram(y,r){const O={userStatus:null,page:this.page,limit:0===r?r:this.limit};this.loader.show(),this.getAffiliateProgramUsecase.execute(O).subscribe(s=>{null!=s&&s.meta&&(this.total=null==s?void 0:s.meta.pagination.total),this.loader.hide(),y?this.getListAffiliateProgram=null==s?void 0:s.data:this.dataBinding(null==s?void 0:s.data),this.isLoading=!1,this.isError=!1},s=>{this.loader.hide(),this.isLoading=!1,this.isError=!0})}joinProgram(y){this.loaderService.show(),this.postAffiliateJoinUsecase.execute(y).subscribe(r=>{r&&(this.loaderService.hide(),this.isError=!1)},r=>{this.loaderService.hide(),this.alert.showError(r.error.status.message)},()=>{this.isLoading=!0,this.getAffiliateProgram(!0,this.limit)})}goTab(){this.tabGroup.selectedIndex=2;const y="en"===this.currLanguage?"/en":"";this.location.replaceState(`profile/my-affiliate${y}?tab=payment-account`)}dataBinding(y){this.getListAffiliateProgram=y,this.isLoadMore=this.getListAffiliateProgram.length<=this.limit,this.isLoadLess=!this.isLoadMore}loadMore(){this.getAffiliateProgram(!1,0)}loadLess(){this.getAffiliateProgram(!1,this.limit),window.scrollTo(0,0)}}(I=K).\u0275fac=function(y){return new(y||I)},I.\u0275cmp=t.VBU({type:I,selectors:[["app-my-affiliate-program"]],inputs:{tabGroup:"tabGroup"},standalone:!1,decls:7,vars:6,consts:[[1,"my-affiliate-program"],["class","program-wraapper",4,"ngIf"],["class","show-more",4,"ngIf"],["class","show-less",4,"ngIf"],["class","loader-wrapper",4,"ngIf"],["class","empty-wrapper",4,"ngIf"],["class","error-wrapper",4,"ngIf"],[1,"program-wraapper"],[1,"program-card",3,"ngClass"],[1,"program-img"],["class","status-mobile",4,"ngIf"],["class","waiting",4,"ngIf"],[1,"img-banner",3,"src","lazyLoad","defaultImage"],[1,"program-description"],[1,"period"],["class","status-desktop",4,"ngIf"],[1,"description"],[3,"routerLink"],[1,"btn"],[1,"btn","btn-join"],["disabled","",1,"btn","btn-end"],[1,"status-mobile"],[1,"waiting"],[1,"status-desktop"],[1,"btn",3,"click"],[1,"btn","btn-join",3,"click"],[1,"show-more"],[1,"btn-more",3,"click"],[1,"show-less"],[1,"btn-less",3,"click"],[1,"loader-wrapper"],["viewBox","0 0 592 498","speed","2",3,"backgroundColor","foregroundColor"],["x","2","y","2","rx","10","ry","10","width","220","height","231"],["x","240","y","13","rx","4","ry","4","width","376","height","20"],["x","240","y","82","rx","4","ry","4","width","143","height","20"],["x","240","y","119","rx","4","ry","4","width","80","height","20"],["x","240","y","155","rx","4","ry","4","width","171","height","20"],["x","240","y","39","rx","4","ry","4","width","233","height","20"],["x","240","y","195","rx","9","ry","9","
1width","395","height","24"],["x","2","y","253","rx","10","ry","10","width","220","height","231"],["x","240","y","264","rx","4","ry","4","width","376","height","20"],["x","240","y","333","rx","4","ry","4","width","143","height","20"],["x","240","y","370","rx","4","ry","4","width","80","height","20"],["x","240","y","406","rx","4","ry","4","width","171","height","20"],["x","240","y","290","rx","4","ry","4","width","233","height","20"],["x","240","y","446","rx","9","ry","9","width","395","height","24"],[1,"empty-wrapper"],["src","assets/v2/images/icons/bookmark-empty.png","width","135","height","135","alt","empty program"],[1,"error-wrapper"],[3,"onClickEvent"]],template:function(y,r){1&y&&(t.j41(0,"div",0),t.DNE(1,q,3,0,"div",1)(2,tt,5,6,"div",2)(3,nt,5,6,"div",3)(4,et,16,2,"div",4)(5,it,6,6,"div",5)(6,at,2,0,"div",6),t.k0s()),2&y&&(t.R7$(),t.Y8G("ngIf",(null==r.getListAffiliateProgram?null:r.getListAffiliateProgram.length)>0&&!r.isError&&!r.isLoading),t.R7$(),t.Y8G("ngIf",r.isLoadMore&&(null==r.getListAffiliateProgram?null:r.getListAffiliateProgram.length)>0),t.R7$(),t.Y8G("ngIf",r.isLoadLess&&(null==r.getListAffiliateProgram?null:r.getListAffiliateProgram.length)>0),t.R7$(),t.Y8G("ngIf",r.isLoading),t.R7$(),t.Y8G("ngIf",0===(null==r.getListAffiliateProgram?null:r.getListAffiliateProgram.length)&&!r.isError&&!r.isLoading),t.R7$(),t.Y8G("ngIf",r.isError&&!r.isLoading))},dependencies:[w.YU,w.bT,V.Wk,v.GC,k.Je,W.m,w.Jj,G.c,P.C],styles:['.my-affiliate-program .program-wraapper{padding:15px;background:#22252a;border-radius:16px}.my-affiliate-program .program-wraapper .program-card{position:relative;display:flex;height:190px;width:100%;background:#161619;border-radius:8px;overflow:hidden;margin-bottom:15px}@media (max-width: 767px){.my-affiliate-program .program-wraapper .program-card{height:220px}}.my-affiliate-program .program-wraapper .program-card.disable:before{content:"";position:absolute;width:100%;height:100%;z-index:1;background:#0000004d;pointer-events:none}.my-affiliate-program .program-wraapper .program-card .program-img{position:relative;width:153px;height:100%;flex-shrink:0}.my-affiliate-program .program-wraapper .program-card .program-img .status-mobile{position:relative;z-index:10;font-family:Montserrat,sans-serif;font-size:12px;font-weight:400;line-height:18px;background:#4169e1;color:#fff;border-radius:8px;padding:2px 8px}.my-affiliate-program .program-wraapper .program-card .program-img .waiting{background:#b66215;position:relative;z-index:10;font-family:Montserrat,sans-serif;font-size:10px;font-weight:400;line-height:18px;color:#fff;border-radius:8px;padding:2px 8px}.my-affiliate-program .program-wraapper .program-card .program-img .img-banner{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover}.my-affiliate-program .program-wraapper .program-card .program-description{position:relative;padding:13px 16px;margin:0;display:flex;flex-direction:column;flex:1}.my-affiliate-program .program-wraapper .program-card .program-description .period{font-family:Montserrat,sans-serif;font-size:12px;font-weight:400;line-height:18px;color:#fff;margin-bottom:15px}@media (max-width: 767px){.my-affiliate-program .program-wraapper .program-card .program-description .period{font-size:10px;line-height:12px;margin-bottom:10px}}.my-affiliate-program .program-wraapper .program-card .program-description .period .status-desktop{float:right;background:#4169e1;border-radius:8px;padding:2px 8px}.my-affiliate-program .program-wraapper .program-card .program-description .period .waiting{display:inline-flex;padding:2px 8px;flex-direction:column;align-items:flex-start;gap:4px;border-radius:8px;background:#b66215;color:#fff;font-family:Montserrat,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:18px;float:right}.my-affiliate-program .program-wraapper .program-card .program-description h2{font-family:Montserrat-Bold,sans-serif;font-size:16px;font-weight:700;line-height:24px;color:#fff;margin-bottom:10px;width:320px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (max-width: 767px){.my-affiliate-program .program-wraapper .program-card .program-description h2{font-size:14px;font-weight:400;line-height:21px;width:135px;margin-bottom:5px}}.my-affiliate-program .program-wraapper .program-card .program-description .description{font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;line-height:21px;color:#afafb9;margin-bottom:15px}.my-affiliate-program .program-wraapper .program-card .program-description .description p{dis
1play:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;width:320px;height:3.1em}@media (max-width: 767px){.my-affiliate-program .program-wraapper .program-card .program-description .description p{width:135px}}.my-affiliate-program .program-wraapper .program-card .program-description .description a{text-decoration:unset;z-index:1;position:relative}.my-affiliate-program .program-wraapper .program-card .program-description .btn{position:absolute;right:15px;bottom:15px;font-family:Montserrat-Bold,sans-serif;font-size:14px;font-weight:700;line-height:21px;color:#fff;max-width:160px;background:transparent;border-radius:56px;border:1px solid;outline:unset;transition:filter .3s ease-in-out;filter:brightness(100%)}@media (max-width: 767px){.my-affiliate-program .program-wraapper .program-card .program-description .btn{font-size:12px;font-weight:700;line-height:18px;position:relative;right:unset;bottom:unset}}.my-affiliate-program .program-wraapper .program-card .program-description .btn:hover{filter:brightness(120%)}.my-affiliate-program .program-wraapper .program-card .program-description .btn.btn-join{background:#d0021b;border:1px solid rgb(208,2,27)}.my-affiliate-program .program-wraapper .program-card .program-description .btn.btn-end{cursor:not-allowed}.my-affiliate-program .program-wraapper .program-card:last-child{margin-bottom:0}.my-affiliate-program .show-more,.my-affiliate-program .show-less{display:inline-block;margin:20px 0;text-align:center;width:100%}.my-affiliate-program .show-more .btn-more,.my-affiliate-program .show-more .btn-less,.my-affiliate-program .show-less .btn-more,.my-affiliate-program .show-less .btn-less{font-family:Montserrat-Bold,sans-serif;font-size:14px;font-weight:600;line-height:21px;padding:10px 9px;color:#fff;background:transparent;border-radius:56px;border:1px solid;outline:unset;transition:all .3s ease-in-out}@media (max-width: 767px){.my-affiliate-program .show-more .btn-more,.my-affiliate-program .show-more .btn-less,.my-affiliate-program .show-less .btn-more,.my-affiliate-program .show-less .btn-less{font-size:12px;font-weight:700;line-height:18px;position:relative;right:unset;bottom:unset}}.my-affiliate-program .show-more .btn-more:hover,.my-affiliate-program .show-more .btn-less:hover,.my-affiliate-program .show-less .btn-more:hover,.my-affiliate-program .show-less .btn-less:hover{background:#3f424a}.my-affiliate-program .empty-wrapper{height:250px;text-align:center;align-content:center;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.my-affiliate-program .empty-wrapper strong{font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;line-height:24px;color:#fff}.my-affiliate-program .error-wrapper .error-card{height:auto}.my-affiliate-program .error-wrapper .error-card button{height:auto!important;margin:10px}\n'],encapsulation:2})},35672(st,Y,o){o.d(Y,{_:()=>O});var P,t=o(36872),L=o(86005),T=o(96551),F=o(92784),e=o(17705),z=o(96048),b=o(32881),U=o(83087),B=o(96850),w=o(78820),V=o(77540),v=o(69353),k=o(73623),W=o(42110),G=o(58211);const I=s=>({showe:s});function _(s,g){if(1&s&&(e.j41(0,"div",13),e.EFF(1," Total "),e.j41(2,"span"),e.EFF(3),e.k0s(),e.EFF(4," yang kamu miliki "),e.k0s()),2&s){const l=e.XpG();e.R7$(3),e.SpI("",null==l.data?null:l.data.totalCouponQuantity," kupon")}}function x(s,g){if(1&s&&(e.j41(0,"div",13),e.EFF(1," You have a total of "),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&s){const l=e.XpG();e.R7$(3),e.SpI("",null==l.data?null:l.data.totalCouponQuantity," coupons")}}function u(s,g){1&s&&(e.qSk(),e.j41(0,"svg",14),e.nrm(1,"path",15),e.k0s())}function D(s,g){1&s&&(e.qSk(),e.j41(0,"svg",14),e.nrm(1,"path",16),e.k0s())}function $(s,g){if(1&s&&(e.qex(0),e.j41(1,"section",17)(2,"div",18)(3,"div",19)(4,"div",6),e.EFF(5),e.nI1(6,"translation"),e.nI1(7,"async"),e.k0s(),e.j41(8,"div",20),e.EFF(9),e.k0s()(),e.j41(10,"div",21)(11,"div",6),e.EFF(12),e.nI1(13,"translation"),e.nI1(14,"async"),e.k0s(),e.j41(15,"div",20),e.EFF(16),e.nI1(17,"date"),e.k0s()(),e.j41(18,"div",22)(19,"div",6),e.EFF(20),e.nI1(21,"translation"),e.nI1(22,"async"),e.k0s(),e.j41(23,"div",20),e.EFF(24),e.k0s()(),e.nrm(25,"div",23),e.j41(26,"div",24)(27,"div",6),e.EFF(28),e.nI1(29,"translation"),e.nI1(30,"async"),e.k0s(),e.j41(31,"div",20),e.nrm(32,"img",25),e.EFF(33),e.k0s()()()(),e.bVm()),2&s){const l=g.$implicit,M=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(32,I,M.visibleIndices.has(M.index))),e.R7$(4),e.JRh(e.bMT(7,12,e.i5U(6,9,"purchase_id_coupon","coupon"))),e.R7$(4),e.JRh(null==l?null:l.purchaseId),e.R7$(3),e.JRh(e.bMT(14,17,e.i5U(13,14,"transaction_date_coupon","coupon"))),e.R7$(4),e.JRh(e.i5U(17,19,null==l?null:l.transactionDate,"dd MMM yyyy")),e.R7$(4),e.JRh(e.bMT(22,25,e.i5U(21,22,"quantity_coupon","coupon"))),e.R7$(4),e.JRh(null==l?null:l.couponQuantity),e.R7$(4),e.JRh(e.bMT(30,30,e.i5U(29,27,"total_redemption_coupon","coupon"))),e.R7$(5),e.JRh(null==l?null:l.totalPoint)}}const j=F.c.defaultImage;class m{constructor(){this.analytic=(0,e.WQX)(k.S),this.translationService=(0,e.WQX)(L.TranslationService),this.defaultImage=j,this.show=!1,this.visibleIndices=new Set}ngOnInit(){this.currLanguage=this.translationService.currLanguage}toogle(g,l){this.visibleIndices.delete(l)||(this.visibleIndices.add(l),this.sendAnalyticsClick(null==g?void 0:g.totalCouponQuantity))}sendAnalyticsClick(g){this.analytic.send({event:"button_click",event_category:"DG Point Store",button_context:"Kupon Saya",button_name:`Total ${g} kupon yang kamu miliki`,page_title:"DG Coupon"})}}(P=m).\u0275fac=function(g){return new(g||P)},P.\u0275cmp=e.VBU({type:P,selectors:[["app-my-coupon-list"]],inputs:{data:"data",index:"index",type:"type"},standalone:!1,decls:20,vars:20,consts:[[1,"section-coupon"],[1,"coupon"],[1,"mask-group"],[1,"frame",3,"ngClass"],["alt","Coupon DG",1,"undian",3,"defaultImage","lazyLoad","useSrcset"],[1,"frame-undian"],[1,"title"],[1,"subtitle"],[1,"group"],[1,"voucher-code",3,"click"],["class","title-code",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","25","height","24","viewBox","0 0 25 24","fill","none",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"title-code"],["xmlns","http://www.w3.org/2000/svg","width","25","height","24","viewBox","0 0 25 24","fill","none"],["d","M12.4994 16.5C12.1796 16.5 11.8596 16.3744 11.6159 16.1233L5.36619 9.69475C4.87794 9.19252 4.87794 8.37891 5.36619 7.87667C5.85445 7.37444 6.64542 7.37444 7.
113368 7.87667L12.4994 13.3982L17.8663 7.87768C18.3546 7.37545 19.1456 7.37545 19.6338 7.87768C20.1221 8.37991 20.1221 9.19353 19.6338 9.69576L13.3841 16.1243C13.14 16.3754 12.8197 16.5 12.4994 16.5Z","fill","white"],["d","M18.751 16.497C18.4311 16.497 18.1111 16.3714 17.8674 16.1203L12.501 10.6028L7.13379 16.1233C6.64551 16.6256 5.85449 16.6256 5.36621 16.1233C4.87793 15.6211 4.87793 14.8075 5.36621 14.3052L11.6162 7.87667C12.1045 7.37444 12.8955 7.37444 13.3838 7.87667L19.6338 14.3052C20.1221 14.8075 20.1221 15.6211 19.6338 16.1233C19.3916 16.3724 19.0713 16.497 18.751 16.497Z","fill","white"],[1,"section-details",3,"ngClass"],[1,"detail-coupon"],[1,"purchase"],[1,"details"],[1,"transaction"],[1,"quantity"],[1,"line-divider"],[1,"total"],["src","assets/v3/images/dgpoints.png","alt","icons dg point"]],template:function(g,l){1&g&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"img",4),e.j41(5,"div",5)(6,"div",6),e.EFF(7),e.k0s(),e.j41(8,"div",7),e.EFF(9),e.nI1(10,"translation"),e.nI1(11,"async"),e.nI1(12,"date"),e.k0s()()()(),e.j41(13,"div",8)(14,"div",9),e.bIt("click",function(){return l.toogle(l.data,l.index)}),e.DNE(15,_,5,1,"div",10)(16,x,4,1,"div",10)(17,u,2,0,"svg",11)(18,D,2,0,"svg",11),e.k0s(),e.DNE(19,$,34,34,"ng-container",12),e.k0s()()()),2&g&&(e.R7$(3),e.Y8G("ngClass",l.type),e.R7$(),e.Y8G("defaultImage",l.defaultImage)("lazyLoad",null==l.data?null:l.data.backgroundImage)("useSrcset",!0),e.R7$(3),e.SpI(" ",null==l.data?null:l.data.couponName," "),e.R7$(2),e.Lme(" ",e.bMT(11,15,e.i5U(10,12,"announce_date_coupon","coupon"))," ",e.i5U(12,17,null==l.data?null:l.data.announceDate,"dd MMMM yyyy")," "),e.R7$(6),e.Y8G("ngIf","id"===l.currLanguage),e.R7$(),e.Y8G("ngIf","en"===l.currLanguage),e.R7$(),e.Y8G("ngIf",!l.visibleIndices.has(l.index)),e.R7$(),e.Y8G("ngIf",l.visibleIndices.has(l.index)),e.R7$(),e.Y8G("ngForOf",null==l.data?null:l.data.detailCoupon))},dependencies:[b.YU,b.Sq,b.bT,W.Je,b.Jj,b.vh,G.c],styles:['.section-coupon[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:25px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]{gap:12px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;align-items:flex-start;position:relative;width:416px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]{width:100%}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]:after{position:absolute;content:"";height:22px;right:-11px;border-radius:22px;z-index:2;top:94px;background-color:#161619;width:22px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]:after{height:20px;right:-10px;border-radius:20px;top:72px;width:20px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]:before{position:absolute;content:"";height:22px;left:-11px;border-radius:22px;z-index:2;top:94px;background-color:#161619;width:22px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]:before{height:20px;left:-10px;border-radius:20px;top:72px;width:20px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]{width:416px;height:104px;border-radius:16px 16px 0 0;background:var(--DIGGIE-Background-bg-secondary-blue, #262837);overflow:hidden}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]{width:100%;height:82px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]{position:relative;display:flex;width:416px;align-items:flex-start}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]{width:100%}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]   .undian[_ngcontent-%COMP%]{width:104px;height:104px;flex-shrink:0;background:linear-gradient(143deg,#ceb3e6 1.22%,#7d4dd7 102.18%);object-fit:cover}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]   .undian[_ngcontent-%COMP%]{height:82px;width:82px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]   .frame-undian[_ngcontent-%COMP%]{display:flex;padding:16px 16px 0 8px;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]   .frame-undian[_ngcontent-%COMP%]{padding:12px 12px 12px 8px;gap:4px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]   .frame-undian[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{align-self:stretch;overflow:hidden;color:var(--Semantic-Shades-Neutral-White, #FFF);text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;font-family:Montserrat;font-size:16px;font-style:normal;font-weight:600;line-height:24px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]   .frame-undian[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px;line-height:18px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]   .frame-undian[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{align-self:stretch;color:var(--DIGGIE-Text-text-secondary, #AFAFB9);font-family:Montserrat;font-size:12px;font-style:normal;font-weight:500;line-height:18px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame[_ngcontent-%COMP%]   .frame-undian[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:12px;line-height:18px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame.inactive[_ngcontent-%COMP%]:before{content:"";position:absolute;width:100%;height:100%;background:#262837bf;z-index:1}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .mask-group[_ngcontent-%COMP%]   .frame.inactive[_ngcontent-%COMP%]   .undian[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:grayscale(100%);-webkit-filter:grayscale(100%)}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]{width:416px;height:auto;border-radius:0 0 16px 16px;overflow:hidden;display:flex;flex-direction:column;gap:8px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]{width:100%}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .voucher-code[_ngcontent-%COMP%]{display:flex;height:65.951px;padding:4px 8px;justify-content:center;align-items:center;gap:16px;cursor:pointer;background:var(--Dark-Extended-Primary-Light-Black-DG-75, rgba(38, 40, 55, .75))}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .voucher-code[_ngcontent-%COMP%]{height:52px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .voucher-code[_ngcontent-%COMP%]   .title-code[_ngcontent-%COMP%]{color:var(--DIGGIE-Text-text-primary, #FFF);font-family:Montserrat;font-size:16px;font-style:normal;font-weight:400;line-height:24px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .voucher-code[_ngcontent-%COMP%]   .title-code[_ngcontent-%COMP%]{font-size:12px;line-height:18px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .voucher-code[_ngcontent-%COMP%]   .title-code[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--DIGGIE-Text-text-primary, #FFF);font-family:Montserrat;font-size:16px;font-style:normal;font-weight:600;line-height:24px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .voucher-code[_ngcontent-%COMP%]   .title-code[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;line-height:18px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .voucher-code[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:flex;width:24px;height:24px;justify-content:center;align-items:center;flex-shrink:0}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .voucher-code[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:16px;height:16px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-detail
1s[_ngcontent-%COMP%]{display:none;flex-direction:column;gap:8px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]{gap:4px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details.showe[_ngcontent-%COMP%]{display:flex}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]{display:flex;padding:16px;flex-direction:column;align-items:flex-start;gap:8px;align-self:stretch;background:var(--DIGGIE-Background-bg-transparent, rgba(38, 40, 55, .75))}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .purchase[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .transaction[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px;align-self:stretch}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .purchase[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .transaction[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--Text-Main-White, #FFF);width:45%;font-family:Montserrat;font-size:14px;font-style:normal;font-weight:400;line-height:21px}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .purchase[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .transaction[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px;line-height:18px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .purchase[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .transaction[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-detail
1s[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{color:var(--Text-Main-White, #FFF);font-family:Montserrat;font-size:14px;font-style:normal;font-weight:400;line-height:21px;display:flex;align-items:center;gap:8px;flex:1 0 0}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .purchase[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .transaction[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%], .section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{font-size:12px;line-height:18px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .line-divider[_ngcontent-%COMP%]{height:1px;width:100%;background:#ffffff1a}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:600}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{font-weight:600;display:flex;gap:8px;align-items:center}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{gap:4px}}.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:flex;width:16px;height:16px;justify-content:center;align-items:center;flex-shrink:0}@media (max-width: 767px){.section-coupon[_ngcontent-%COMP%]   .coupon[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]   .section-details[_ngcontent-%COMP%]   .detail-coupon[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:14px;height:14px}}']});var p,h=o(93683);const A=()=>["/profile"];function S(s,g){1&s&&(e.nrm(0,"app-back-nav",9),e.nI1(1,"addlang")),2&s&&e.Y8G("link",e.bMT(1,1,e.lJ4(3,A)))}function q(s,g){if(1&s&&(e.qex(0),e.nrm(1,"app-my-coupon-list",12),e.bVm()),2&s){const l=g.$implicit,M=g.index;e.R7$(),e.Y8G("data",l)("index",M)("type","active")}}function tt(s,g){if(1&s){const l=e.RV6();e.j41(0,"div",10),e.bIt("scrolled",function(){e.eBV(l);const E=e.XpG();return e.Njj(E.getHistoryCoupon(null,!0))}),e.DNE(1,q,2,3,"ng-container",11),e.k0s()}if(2&s){const l=e.XpG();e.Y8G("fromRoot",!0)("immediateCheck",!0)("infiniteScrollDistance",1)("infiniteScrollThrottle",500)("infiniteScrollDisabled",l.isLoading),e.R7$(),e.Y8G("ngForOf",l.historyCoupon)}}function nt(s,g){1&s&&(e.j41(0,"p",13)(1,"span"),e.EFF(2),e.nI1(3,"translation"),e.nI1(4,"async"),e.k0s()()),2&s&&(e.R7$(2),e.JRh(e.bMT(4,4,e.i5U(3,1,"no_coupon_yet","coupon"))))}function et(s,g){if(1&s&&(e.qex(0),e.nrm(1,"app-my-coupon-list",12),e.bVm()),2&s){const l=g.$implicit,M=g.index;e.R7$(),e.Y8G("data",l)("index",M)("type","inactive")}}function it(s,g){if(1&s){const l=e.RV6();e.j41(0,"div",10),e.bIt("scrolled",function(){e.eBV(l);const E=e.XpG();return e.Njj(E.getHistoryCoupon(null,!0))}),e.DNE(1,et,2,3,"ng-container",11),e.k0s()}if(2&s){const l=e.XpG();e.Y8G("fromRoot",!0)("immediateCheck",!0)("infiniteScrollDistance",1)("infiniteScrollThrottle",500)("infiniteScrollDisabled",l.isLoading),e.R7$(),e.Y8G("ngForOf",l.historyCoupon)}}function at(s,g){1&s&&(e.j41(0,"p",13)(1,"span"),e.EFF(2),e.nI1(3,"translation"),e.nI1(4,"async"),e.k0s()()),2&s&&(e.R7$(2),e.JRh(e.bMT(4,4,e.i5U(3,1,"no_coupon_yet","coupon"))))}function ot(s,g){if(1&s&&(e.j41(0,"content-loader",17),e.qSk(),e.nrm(1,"rect",18)(2,"rect",19)(3,"rect",20)(4,"rect",21)(5,"rect",22)(6,"rect",23)(7,"rect",24)(8,"rect",25)(9,"rect",26)(10,"rect",27)(11,"rect",28)(12,"rect",29),e.k0s()),2&s){const l=e.XpG(2);e.Y8G("backgroundColor",l.backgroundSkeleton)("foregroundColor",l.foregroundSkeleton)}}function K(s,g){if(1&s&&(e.j41(0,"content-loader",30),e.qSk(),e.nrm(1,"rect",18)(2,"rect",19)(3,"rect",20)(4,"rect",21)(5,"rect",22)(6,"rect",23)(7,"rect",24)(8,"rect",25)(9,"rect",26)(10,"rect",27)(11,"rect",28)(12,"rect",29),e.k0s()),2&s){const l=e.XpG(2);e.Y8G("backgroundColor",l.backgroundSkeleton)("foregroundColor",l.foregroundSkeleton)}}function f(s,g){if(1&s&&(e.j41(0,"div",14),e.DNE(1,ot,13,2,"content-loader",15)(2,K,13,2,"content-loader",16),e.k0s()),2&s){const l=e.XpG();e.R7$(),e.Y8G("ngIf",!l.isMobile),e.R7$(),e.Y8G("ngIf",l.isMobile)}}const y=F.c.backgroundSkeleton,r=F.c.foregroundSkeleton;class O{constructor(g,l,M,E,X){var N;this.location=g,this.route=l,this.userAgent=M,this.translationService=E,this.getHistoryCouponUsecase=X,this.isMobile=!1,this.tabActive=0,this.backgroundSkeleton=y,this.foregroundSkeleton=r,this.historyCoupon=[],this.isLoading=!1,this.page=1,this.limit=10,this.totalPage=0,this.isMobile=this.userAgent.isMobileView(),this.currLanguage=this.translationService.currLanguage,this.tabName=null===(N=this.route)||void 0===N||null===(N=N.snapshot)||void 0===N||null===(N=N.queryParams)||void 0===N?void 0:N.tab}ngOnInit(){this.tabName?(this.setUrlTabName(this.tabName),this.tabActive="active"===this.tabName?0:1):(this.setUrlTabName("active"),this.tabActive=0)}onTabChange(g){this.historyCoupon=[],this.page=1,this.totalPage=0,0===g.index?(this.setUrlTabName("active"),this.tabActive=0):1===g.index&&(this.setUrlTabName("inactive"),this.tabActive=1)}setUrlTabName(g){const l="en"===this.currLanguage?"/en":"";this.location.replaceState(`profile/my-coupon${l}?tab=${g}`),this.getHistoryCoupon(g,!1)}getHistoryCoupon(g,l){var M;this.totalPage<this.page&&l||(this.isLoading=!0,null===(M=this.getHistoryCouponUsecase.execute({limit:this.limit,page:this.page,isActive:"active"===g}))||void 0===M||M.subscribe(E=>{var X;E.data&&(this.historyCoupon=[...this.historyCoupon,...E.data],this.page+=1,this.totalPage=null===(X=E.meta)||void 0===X||null===(X=X.pagination)||void 0===X?void 0:X.total_page);this.isLoading=!1},E=>{this.isLoading=!1}))}}(p=O).\u0275fac=function(g){return new(g||p)(e.rXU(z.aZ),e.rXU(U.nX),e.rXU(t.G),e.rXU(L.TranslationService),e.rXU(T.G))},p.\u0275cmp=e.VBU({type:p,selectors:[["app-my-coupon"]],standalone:!1,decls:16,vars:19,consts:[["title","Kupon Saya",3,"link",4,"ngIf"],[1,"settings"],[1,"row","top-head"],[1,"col-md-12"],["animationDuration","0ms","mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedTabChange","selectedIndex"],[3,"label"],["class","history-list","infiniteScroll","",3,"fromRoot","
1immediateCheck","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled","scrolled",4,"ngIf"],["class","nofoundtable",4,"ngIf"],["class","wrapper-loading",4,"ngIf"],["title","Kupon Saya",3,"link"],["infiniteScroll","",1,"history-list",3,"scrolled","fromRoot","immediateCheck","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled"],[4,"ngFor","ngForOf"],[3,"data","index","type"],[1,"nofoundtable"],[1,"wrapper-loading"],["viewBox","0 0 600 600","speed","2",3,"backgroundColor","foregroundColor",4,"ngIf"],["viewBox","0 0 247 424","speed","2",3,"backgroundColor","foregroundColor",4,"ngIf"],["viewBox","0 0 600 600","speed","2",3,"backgroundColor","foregroundColor"],["x","0","y","7","rx","12","ry","12","width","416","height","104"],["x","0","y","120","rx","3","ry","3","width","416","height","12"],["x","0","y","140","rx","3","ry","3","width","416","height","12"],["x","0","y","160","rx","3","ry","3","width","416","height","12"],["x","0","y","204","rx","12","ry","12","width","416","height","104"],["x","0","y","316","rx","3","ry","3","width","416","height","12"],["x","0","y","336","rx","3","ry","3","width","416","height","12"],["x","0","y","356","rx","3","ry","3","width","416","height","12"],["x","0","y","396","rx","12","ry","12","width","416","height","104"],["x","0","y","508","rx","3","ry","3","width","416","height","12"],["x","0","y","528","rx","3","ry","3","width","416","height","12"],["x","0","y","548","rx","3","ry","3","width","416","height","12"],["viewBox","0 0 247 424","speed","2",3,"backgroundColor","foregroundColor"]],template:function(g,l){1&g&&(e.DNE(0,S,2,4,"app-back-nav",0),e.j41(1,"section",1)(2,"div",2)(3,"div",3)(4,"mat-tab-group",4),e.bIt("selectedTabChange",function(E){return l.onTabChange(E)}),e.j41(5,"mat-tab",5),e.nI1(6,"translation"),e.nI1(7,"async"),e.DNE(8,tt,2,6,"div",6)(9,nt,5,6,"p",7),e.k0s(),e.j41(10,"mat-tab",5),e.nI1(11,"translation"),e.nI1(12,"async"),e.DNE(13,it,2,6,"div",6)(14,at,5,6,"p",7),e.k0s()(),e.DNE(15,f,3,2,"div",8),e.k0s()()()),2&g&&(e.Y8G("ngIf",l.isMobile),e.R7$(4),e.Y8G("selectedIndex",l.tabActive),e.R7$(),e.Y8G("label",e.bMT(7,12,e.i5U(6,9,"active_coupons","coupon"))),e.R7$(3),e.Y8G("ngIf",(null==l.historyCoupon?null:l.historyCoupon.length)>=1),e.R7$(),e.Y8G("ngIf",(null==l.historyCoupon?null:l.historyCoupon.length)<1),e.R7$(),e.Y8G("label",e.bMT(12,17,e.i5U(11,14,"coupon_expires","coupon"))),e.R7$(3),e.Y8G("ngIf",(null==l.historyCoupon?null:l.historyCoupon.length)>=1),e.R7$(),e.Y8G("ngIf",(null==l.historyCoupon?null:l.historyCoupon.length)<1),e.R7$(),e.Y8G("ngIf",l.isLoading))},dependencies:[b.Sq,b.bT,B.mq,B.T8,w.GC,V.D,v.i,m,b.Jj,G.c,h.C],styles:['.justify-content-left{justify-content:left!important}.justify-content-center{justify-content:center!important}.justify-content-right{justify-content:right!important}.justify-content-space-between{justify-content:space-between!important}.justify-content-flex-end{justify-content:flex-end!important}.text-decoration-line-through{text-decoration:line-through!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-overline{text-decoration:overline!important}.text-decoration-none{text-decoration:none!important}.align-self-center{align-self:center}.cursor-no-drop{cursor:no-drop!important}.cursor-pointer{cursor:pointer!important}.text-left{text-align:left!important}.text-center{text-align:center!important}.text-right{text-align:right!important}.text-justify{text-align:justify!important}.v-align-top{vertical-align:top!important}.v-align-middle{vertical-align:middle!important}.v-align-bottom{vertical-align:bottom!important}.float-left{float:left!important}.float-right{float:right!important}@media (min-width: 1200px){.cdk-overlay-pane{max-width:unset!important}}@media (min-width: 768px) and (max-width: 1365px){.cdk-overlay-pane{max-width:unset!important}}@media (min-width: 1200px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:unset!important}}@media (min-width: 768px) and (max-width: 1365px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:unset!important}}.settings{margin-top:-52px}.settings ::-webkit-scrollbar{width:4px;height:4px;background-color:#1b1d2199}.settings ::-webkit-scrollbar-thumb{background-color:#3d3e42;border-radius:3px;height:2px;background-clip:content-box;opacity:.5}@media (max-width: 767px){.settings{margin-top:15px}}.settings .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:#fff}.settings .mat-mdc-tab-header-pagination.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{border-color:#161619}.settings .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{dis
1play:none}.settings .mat-mdc-tab-header{position:relative;margin-bottom:16px}.settings .mat-mdc-tab-header:after{content:"";width:100%;height:1px;position:absolute;left:0;bottom:0;opacity:.5;border-bottom:1px solid #3f424a}@media (max-width: 767px){.settings .mat-mdc-tab-header{overflow:visible}.settings .mat-mdc-tab-header:after{width:100vw;left:-15px}}.settings .mat-mdc-tab-label-container .mat-mdc-tab-list{transform:unset!important;overflow-x:auto}.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab{min-width:160px;height:40px}.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{opacity:1}.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content .mdc-tab__text-label{line-height:unset;font-family:Montserrat-Semibold,sans-serif;font-size:14px;color:#69707e;font-weight:400}@media (max-width: 360px){.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content .mdc-tab__text-label{font-size:small}}.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab-indicator .mdc-tab-indicator__content{background-color:unset}.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab-indicator .mdc-tab-indicator__content:after{content:"";display:block;height:3px;background-color:#d0021b;width:100%;left:50%;position:absolute;bottom:0;transform:translate(-50%)}@media (max-width: 767px){.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab-indicator .mdc-tab-indicator__content:after{height:2px}}.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab.mdc-tab--active .mdc-tab__content{opacity:1}.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab.mdc-tab--active .mdc-tab__content .mdc-tab__text-label{font-weight:600;color:#fff}@media (max-width: 767px){.settings .mat-mdc-tab-label-container .mat-mdc-tab-list .mat-mdc-tab-labels .mat-mdc-tab{min-width:45%}}.settings .wrapper-loading{position:absolute;top:40px;width:100%;height:100%;z-index:1;background-color:#161619}.settings .mat-mdc-tab-body p.nofoundtable{display:flex;padding:20px 0;align-items:center;gap:8px;align-self:stretch;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#262837bf;width:100%}.settings .mat-mdc-tab-body p.nofoundtable span{font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:center;color:#b4b4c0;width:100%}.settings .mat-mdc-tab-body .history-list{height:670px}\n'],encapsulation:2})}}]);

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.