1"use strict";(self.webpackChunkdunia_games=self.webpackChunkdunia_games||[]).push([[5781],{27212(D,C,t){t.d(C,{F:()=>o});var y,i=t(10467),e=t(45312),u=t(17705);class o{constructor(){this.VERSION_KEY="app_version",this.currentVersion=e.c.appVersion,this.excludedKeys=[this.VERSION_KEY,"primaryAccessToken","primaryIdToken","primaryRefreshToken"]}checkAndClearCache(){const c=localStorage.getItem(this.VERSION_KEY);return c?c!==this.currentVersion?(console.log(`Version changed: ${c} \u2192 ${this.currentVersion}`),this.clearAllCacheAndReload()):Promise.resolve():(console.log("First time access, saving version:",this.currentVersion),localStorage.setItem(this.VERSION_KEY,this.currentVersion),Promise.resolve())}clearAllCacheAndReload(){var c=this;return(0,i.A)(function*(){c.clearLocalStorageExcept(c.excludedKeys),localStorage.setItem(c.VERSION_KEY,c.currentVersion),sessionStorage.clear(),yield c.clearIndexedDB(),yield c.clearServiceWorkerCache()})()}clearLocalStorageExcept(c){const _={};c.forEach(w=>{_[w]=localStorage.getItem(w)}),localStorage.clear(),Object.entries(_).forEach(([w,I])=>{null!==I&&localStorage.setItem(w,I)})}clearIndexedDB(){return new Promise(c=>{var _,w;null===(_=(w=indexedDB).databases)||void 0===_||_.call(w).then(I=>{const v=I.map(r=>new Promise(b=>{if(r.name){const S=indexedDB.deleteDatabase(r.name);S.onsuccess=()=>b(),S.onerror=()=>b()}else b()}));Promise.all(v).then(()=>c())}).catch(()=>c())})}clearServiceWorkerCache(){return"caches"in window?caches.keys().then(c=>Promise.all(c.map(_=>caches.delete(_)))).then(()=>{}):Promise.resolve()}}(y=o).\u0275fac=function(c){return new(c||y)},y.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})},29987(D,C,t){t.d(C,{$:()=>u});var e,i=t(17705);class u{constructor(){this.isShowTrigger=(0,i.vPA)(!0)}setSideMenuShow(o){this.isShowTrigger.set(o)}}(e=u).\u0275fac=function(o){return new(o||e)},e.\u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})},66844(D,C,t){t.d(C,{A:()=>y});var u,i=t(79928),e=t(17705);class y{get isHaveCard(){return!!document.getElementsByClassName("section-smart-card")[0]}constructor(){this.isOpenedSmartCard=new i.t(!0),this.isOpenedSmartCard$=this.isOpenedSmartCard.asObservable(),this.isClosed=new i.t(!0),this.isClosed$=this.isClosed.asObservable(),this.isMytselPage=new i.t(!1),this.isMytselPage$=this.isMytselPage.asObservable()}showSmartCard(){const f=document.getElementsByClassName("section-smart-card")[0];f&&(f.style.display="block")}hideSmartCard(){const f=document.getElementsByClassName("section-smart-card")[0];f&&(f.style.display="none")}setActiveSmartCard(f){this.isOpenedSmartCard.next(f)}setClosed(f){this.isClosed.next(f)}setIsMytselPage(f){this.isMytselPage.next(f)}}(u=y).\u0275fac=function(f){return new(f||u)},u.\u0275prov=e.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})},21107(D,C,t){t.d(C,{i:()=>u});var e,i=t(17705);class u{constructor(o){this.compiler=o,this.injector=(0,i.WQX)(i.zZn)}loadMyRankSpender(){return Promise.all([Promise.all([t.e(8867),t.e(4178),t.e(2698)]).then(t.bind(t,92060))]).then(o=>o[0].MyrankTopupSpenderModule).then(o=>(this.MyRankModuleComponents=o.components,o instanceof i.Co$?o:this.compiler.compileModuleAsync(o))).then(()=>({components:this.MyRankModuleComponents}))}}(e=u).\u0275fac=function(o){return new(o||e)(i.KVO(i.Ql9))},e.\u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})},22482(D,C,t){t.d(C,{k:()=>u});var e,i=t(17705);class u{constructor(){this.injector=(0,i.WQX)(i.zZn)}loadPaymentWaiting(){const o=t.e(7379).then(t.bind(t,77379));return Promise.resolve(o).then(f=>f.TopupPaymentWaitingComponent)}}(e=u).\u0275fac=function(o){return new(o||e)},e.\u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})},85224(D,C,t){t.d(C,{E:()=>u});var e,i=t(17705);class u{constructor(){this.injector=(0,i.WQX)(i.zZn)}loadSmartCard(){const o=Promise.all([t.e(8867),t.e(4178),t.e(5430)]).then(t.bind(t,50099));return Promise.resolve(o).then(f=>f.SmartCardComponent)}dataInjector(o){return i.zZn.create({providers:[{provide:"dataInject",useValue:o}],parent:this.injector})}}(e=u).\u0275fac=function(o){return new(o||e)},e.\u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})},54770(D,C,t){t.d(C,{T:()=>u});var e,i=t(17705);class u{constructor(){this._state=(0,i.vPA)({type:null}),this.state=this._state.asReadonly()}setParams(o){this._state.set({type:o})}get type(){return this._state().type}matches(o){return this._state().type===o}clear(){this._state.set({type:null})}}(e=u).\u0275fac=function(o){return new(o||e)},e.\u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})},90375(D,C,t){t.d(C,{h:()=>e,u:()=>i});const i=/^[0-9]+$/;function e(u){return u&&i.test(u)?u:null}},70615(D,C,t){t.d(C,{x:()=>y});var u,i=t(17705),e=t(9619);class y{constructor(){this.gb=(0,i.WQX)(e.GrowthBookService)}get enableMaintenanceMode(){var f;return null!==(f=this.gb.isOn("rollout_transaction_maintenance_mode"))&&void 0!==f&&f}}(u=y).\u0275fac=function(f){return new(f||u)},u.\u0275prov=i.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})},24269(D,C,t){var i,e;t.d(C,{N:()=>i}),(e=i||(i={})).MY_RANK="topup_my_rank",e.HIGHLIGHT="topup_banner_highlight",e.FLASH_SALE="topup_flash_sale",e.PRODUCT="topup_product",e.EXPLORE="topup_explore"},39808(D,C,t){t.d(C,{Z:()=>w});var i=t(95006),e=t(45312);class u{}var y=t(39208);class o extends y.u{mapFrom(v){throw new Error("Method not implemented.")}mapTo(v){throw new Error("Method not implemented.")}mapGachaRewards(v){if("SUCCESS"===v.code)return{gachaRewards:v.data,pagination:v.meta.pagination}}mapGachaHistory(v){var r;if("SUCCESS"===v.code)return{gachas:v.data.gachas,pagination:v.meta.pagination};throw new Error(null!==(r=v.message)&&void 0!==r?r:"Failed to load gacha history")}mapPlayGacha(v){var r;if("SUCCESS"===v.code)return v.data;throw new Error(null!==(r=v.message)&&void 0!==r?r:"Play gacha failed")}mapGachaPrizeDetail(v){var r;if("SUCCESS"===v.code)return v.data;throw new Error(null!==(r=v.message)&&void 0!==r?r:"Gacha prize detail not found")}}
1var _,f=t(17705),c=t(58989);class w extends u{constructor(v){super(),this.http=v,this.endpointGacha=e.c.apiReward,this.mapper=new o}getGachaRewards(v,r){return this.http.get(`${this.endpointGacha}gacha?limit=${v}&page=${r}`).pipe((0,i.T)(this.mapper.mapGachaRewards))}getGachaHistory(v,r,b){return this.http.get(`${this.endpointGacha}gacha/prizes?status=${v}&limit=${r}&page=${b}`).pipe((0,i.T)(this.mapper.mapGachaHistory))}playGacha(v){return this.http.post(`${this.endpointGacha}gacha/play`,v).pipe((0,i.T)(this.mapper.mapPlayGacha))}getGachaPrizeDetail(v){return this.http.get(`${this.endpointGacha}gacha/prizes/${v}`).pipe((0,i.T)(this.mapper.mapGachaPrizeDetail))}}(_=w).\u0275fac=function(v){return new(v||_)(f.KVO(c.Qq))},_.\u0275prov=f.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})},32018(D,C,t){t.d(C,{k:()=>n});var i=t(58989),e=t(95006),u=t(92784);class y{}var o=t(60028);class f extends o.R{mapData(g){if(!0===g.status)return g;throw g}}class c extends o.R{mapData(g){var p,T;if(0===(null==g||null===(p=g.status)||void 0===p?void 0:p.code))return g;throw new Error(null==g||null===(T=g.status)||void 0===T?void 0:T.message)}}class _ extends o.R{mapData(g){var p,T;if(!0!==(null==g?void 0:g.status))throw g;return{accounts:(null!==(p=null===(T=g.data)||void 0===T?void 0:T.gamerhubVouchers)&&void 0!==p?p:[]).map(k=>{var L;return{ihNumber:k.ihnumber,vouchers:(null!==(L=k.vouchers)&&void 0!==L?L:[]).map(E=>{var d,a,s,m,l,h;return{code:E.code,program:{image:null!==(d=null===(a=E.program)||void 0===a?void 0:a.image)&&void 0!==d?d:"",name:null!==(s=null===(m=E.program)||void 0===m?void 0:m.name)&&void 0!==s?s:"",description:null!==(l=null===(h=E.program)||void 0===h?void 0:h.description)&&void 0!==l?l:""}}})}})}}}var w=t(31471);function I(x,g){return w.HmacSHA256(x,g).toString(w.enc.Hex)}var r,v=t(17705);const b=u.c.apiUserRoles,S=u.c.apiUser,M=u.c.apiReward,P=u.c.indihomeSignatureSecret;class n extends y{constructor(g){super(),this.http=g,this.mapper=new f,this.otpMapper=new c,this.gamerhubMapper=new _}getRegisteredAccounts(g){const p=new i.Lr({"X-Signature":I(g,P)});return this.http.post(`${b}auth/indihome`,{ihnumber:g},{headers:p}).pipe((0,e.T)(this.mapper.mapData))}sendOtp(g){return this.http.post(`${S}v2/user/send-otp`,{referenceId:g.referenceId,identifierId:g.identifierId}).pipe((0,e.T)(this.otpMapper.mapData))}getGamerhubVouchers(){return this.http.get(`${M}indihome/gamerhub/vouchers`).pipe((0,e.T)(this.gamerhubMapper.mapData))}}(r=n).\u0275fac=function(g){return new(g||r)(v.KVO(i.Qq))},r.\u0275prov=v.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})},75241(D,C,t){t.d(C,{d:()=>r});var i=t(45312);class e{}var u=t(60028);class y extends u.R{mapData(S){return S.data}}var _,o=t(95006),f=t(17705),c=t(58989);const w=i.c.apiContentV3;class I extends e{constructor(S){super(),this.http=S,this.mapper=new y}getSmartCard(){return this.http.get(w+"new/v1/smartcard/get").pipe((0,o.T)(this.mapper.mapData))}}var v;(_=I).\u0275fac=function(S){return new(S||_)(f.KVO(c.Qq))},_.\u0275prov=f.jDH({token:_,factory:_.\u0275fac,providedIn:"root"});class r{constructor(S){this.smartCard=S}execute(){return this.smartCard.getSmartCard()}}(v=r).\u0275fac=function(S){return new(S||v)(f.KVO(I))},v.\u0275prov=f.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})},9590(D,C,t){t.d(C,{H:()=>v});var i=t(95006),e=t(5883);class u{}var y=t(39208);class o extends y.u{mapFrom(b){throw new Error("Method not implemented.")}mapTo(b){throw new Error("Method not implemented.")}mapData(b){if(b)return b.data}}var _,I,f=t(17705),c=t(58989);class w extends u{constructor(b){super(),this.http=b,this.mapperThematic=new o,this.thematic=e.c.apiProductCatalogRevamp}getThematic(){return this.http.get(this.thematic+"thematic",{}).pipe((0,i.T)(this.mapperThematic.mapData))}}(_=w).\u0275fac=function(b){return new(b||_)(f.KVO(c.Qq))},_.\u0275prov=f.jDH({token:_,factory:_.\u0275fac,providedIn:"root"});class v{constructor(b){this.thematicRepository=b}execute(){return this.thematicRepository.getThematic()}}(I=v).\u0275fac=function(b){return new(b||I)(f.KVO(w))},I.\u0275prov=f.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})},26036(D,C,t){t.d(C,{_:()=>y});var u,i=t(39808),e=t(17705);class y{constructor(f){this.gachaRepository=f}execute(f){return this.gachaRepository.getGachaRewards(f.limit,f.page)}}(u=y).\u0275fac=function(f){return new(f||u)(e.KVO(i.Z))},u.\u0275prov=e.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})},31664(D,C,t){t.d(C,{R:()=>y});var u,i=t(32881),e=t(17705);class y{constructor(){this.className="",this.alt="",this.width="",this.height="",this.fallbackSrc=""}onError(f){const c=f.target;c.onerror=null,this.fallbackSrc&&(c.src=this.fallbackSrc)}}(u=y).\u0275fac=function(f){return new(f||u)},u.\u0275cmp=e.VBU({type:u,selectors:[["app-icon"]],inputs:{className:"className",src:"src",alt:"alt",width:"width",height:"height",fallbackSrc:"fallbackSrc"},decls:1,vars:5,consts:[[3,"error","src","ngClass","alt","width","height"]],template:function(f,c){1&f&&(e.j41(0,"img",0),e.bIt("error",function(w){return c.onError(w)}),e.k0s()),2&f&&e.Y8G("src",c.src,e.B4B)("ngClass",c.className)("alt",c.alt)("width",c.width)("height",c.height)},dependencies:[i.MD,i.YU],encapsulation:2})},76924(D,C,t){t.d(C,{h:()=>n});
1var f,i=t(60177),e=t(32881),u=t(42110),y=t(77773),o=t(17705);const c=x=>({"object-position":x});function _(x,g){if(1&x&&o.nrm(0,"img",1),2&x){const p=o.XpG(3);o.Y8G("fetchpriority",p.fetchpriority)("ngSrc",p.src)("alt",p.alt)("width",p.width)("height",p.height)("lazyLoad",p.src)("defaultImage",p.defaultImage)("loading",p.loading)("ngClass",p.className)("ngStyle",o.eq3(10,c,p.objectPosition))}}function w(x,g){if(1&x&&o.nrm(0,"img",2),2&x){const p=o.XpG(3);o.Y8G("src",p.src,o.B4B)("alt",p.alt)("width",p.width)("height",p.height)("ngClass",p.className)("loading",p.loading)("ngStyle",o.eq3(8,c,p.objectPosition)),o.BMQ("fetchpriority",p.fetchpriority)}}function I(x,g){if(1&x&&o.nrm(0,"img",3),2&x){const p=o.XpG(3);o.Y8G("ngSrc",p.src)("alt",p.alt)("width",p.width)("height",p.height)("lazyLoad",p.src)("defaultImage",p.defaultImage)("loading",p.loading)("ngClass",p.className)("ngStyle",o.eq3(9,c,p.objectPosition))}}function v(x,g){if(1&x&&o.DNE(0,_,1,12,"img",1)(1,w,1,10,"img",2)(2,I,1,11,"img",3),2&x){const p=o.XpG(2);o.vxM(p.fill?0:p.isLazyLoad?2:1)}}function r(x,g){if(1&x&&o.nrm(0,"img",4),2&x){const p=o.XpG(3);o.Y8G("src",p.src,o.B4B)("fetchpriority",p.fetchpriority)("alt",p.alt)("width",p.width)("height",p.height)("lazyLoad",p.src)("defaultImage",p.defaultImage)("loading",p.loading)("ngClass",p.className)("ngStyle",o.eq3(10,c,p.objectPosition))}}function b(x,g){if(1&x&&o.nrm(0,"img",5),2&x){const p=o.XpG(3);o.Y8G("ngSrc",p.src)("alt",p.alt)("width",p.width)("height",p.height)("lazyLoad",p.src)("defaultImage",p.defaultImage)("loading",p.loading)("ngClass",p.className)("ngStyle",o.eq3(9,c,p.objectPosition))}}function S(x,g){if(1&x&&o.DNE(0,r,1,12,"img",4)(1,b,1,11,"img",5),2&x){const p=o.XpG(2);o.vxM(p.isLoadingLazy?0:1)}}function M(x,g){if(1&x&&o.DNE(0,v,3,1)(1,S,2,1),2&x){const p=o.XpG();o.vxM(p.priority?0:1)}}function P(x,g){if(1&x&&o.nrm(0,"img",0),2&x){const p=o.XpG();o.Y8G("alt",p.alt)("width",p.width)("height",p.height)("lazyLoad",p.src)("defaultImage",p.defaultImage)("loading",p.loading)("ngClass",p.className)("ngStyle",o.eq3(8,c,p.objectPosition))}}class n{constructor(){this.objectPosition="center"}}(f=n).\u0275fac=function(g){return new(g||f)},f.\u0275cmp=o.VBU({type:f,selectors:[["app-image"]],inputs:{alt:"alt",width:"width",height:"height",src:"src",defaultImage:"defaultImage",className:"className",objectPosition:"objectPosition",optimized:"optimized",priority:"priority",fetchpriority:"fetchpriority",fill:"fill",isLazyLoad:"isLazyLoad",isLoadingLazy:"isLoadingLazy",loading:"loading"},decls:2,vars:1,consts:[[1,"general-image",3,"alt","width","height","lazyLoad","defaultImage","loading","ngClass","ngStyle"],["fill","","priority","",1,"general-image",3,"fetchpriority","ngSrc","alt","width","height","lazyLoad","defaultImage","loading","ngClass","ngStyle"],["priority","",1,"general-image",3,"src","alt","width","height","ngClass","loading","ngStyle"],["priority","",1,"general-image",3,"ngSrc","alt","width","height","lazyLoad","defaultImage","loading","ngClass","ngStyle"],[1,"general-image",3,"src","fetchpriority","alt","width","height","lazyLoad","defaultImage","loading","ngClass","ngStyle"],[1,"general-image",3,"ngSrc","alt","width","height","lazyLoad","defaultImage","loading","ngClass","ngStyle"]],template:function(g,p){1&g&&o.DNE(0,M,2,1)(1,P,1,10,"img",0),2&g&&o.vxM(p.optimized?0:1)},dependencies:[e.MD,e.YU,e.B3,u.Un,u.Je,i.kt,y.b],styles:[".general-image[_ngcontent-%COMP%]{pointer-events:none}"]})},70348(D,C,t){t.d(C,{N:()=>S});var u,i=t(32881),e=t(17705);const y=["textRefSpan"],o=M=>({color:M});function f(M,P){if(1&M&&(e.j41(0,"h1",4),e.EFF(1),e.k0s()),2&M){const n=e.XpG();e.Y8G("ngClass",n.className)("ngStyle",e.eq3(3,o,n.color?n.color:"")),e.R7$(),e.JRh(n.text)}}function c(M,P){if(1&M&&(e.j41(0,"h2",4),e.EFF(1),e.k0s()),2&M){const n=e.XpG();e.Y8G("ngClass",n.className)("ngStyle",e.eq3(3,o,n.color?n.color:"")),e.R7$(),e.JRh(n.text)}}function _(M,P){if(1&M&&(e.j41(0,"h3",4),e.EFF(1),e.k0s()),2&M){const n=e.XpG();e.Y8G("ngClass",n.className)("ngStyle",e.eq3(3,o,n.color?n.color:"")),e.R7$(),e.JRh(n.text)}}function w(M,P){if(1&M&&(e.j41(0,"h4",4),e.EFF(1),e.k0s()),2&M){const n=e.XpG();e.Y8G("ngClass",n.className)("ngStyle",e.eq3(3,o,n.color?n.color:"")),e.R7$(),e.JRh(n.text)}}function I(M,P){if(1&M&&(e.j41(0,"label",4),e.EFF(1),e.k0s()),2&M){const n=e.XpG();e.Y8G("ngClass",n.className)("ngStyle",e.eq3(3,o,n.color?n.color:"")),e.R7$(),e.JRh(n.text)}}function v(M,P){if(1&M&&(e.j41(0,"span",4,0),e.EFF(2),e.k0s()),2&M){const n=e.XpG();e.Y8G("ngClass",n.className)("ngStyle",e.eq3(3,o,n.color?n.color:"")),e.R7$(2),e.JRh(n.text)}}function r(M,P){if(1&M&&(e.j41(0,"div",4),e.EFF(1),e.k0s()),2&M){const n=e.XpG();e.Y8G("ngClass",n.className)("ngStyle",e.eq3(3,o,n.color?n.color:"")),e.R7$(),e.JRh(n.text)}}function b(M,P){if(1&M&&(e.j41(0,"p",4),e.EFF(1),e.k0s()),2&M){const n=e.XpG();e.Y8G("ngClass",n.className)("ngStyle",e.eq3(3,o,n.color?n.color:"")),e.R7$(),e.JRh(n.text)}}class S{constructor(){this.tag="p",this.className="",this.text=""}}
1(u=S).\u0275fac=function(P){return new(P||u)},u.\u0275cmp=e.VBU({type:u,selectors:[["app-text"]],viewQuery:function(P,n){if(1&P&&e.GBs(y,5),2&P){let x;e.mGM(x=e.lsd())&&(n.textRefSpan=x.first)}},inputs:{tag:"tag",className:"className",text:"text",color:"color"},decls:9,vars:8,consts:[["textRefSpan",""],[3,"ngSwitch"],[3,"ngClass","ngStyle",4,"ngSwitchCase"],[3,"ngClass","ngStyle",4,"ngSwitchDefault"],[3,"ngClass","ngStyle"]],template:function(P,n){1&P&&(e.qex(0,1),e.DNE(1,f,2,5,"h1",2)(2,c,2,5,"h2",2)(3,_,2,5,"h3",2)(4,w,2,5,"h4",2)(5,I,2,5,"label",2)(6,v,3,5,"span",2)(7,r,2,5,"div",2)(8,b,2,5,"p",3),e.bVm()),2&P&&(e.Y8G("ngSwitch",n.tag),e.R7$(),e.Y8G("ngSwitchCase","h1"),e.R7$(),e.Y8G("ngSwitchCase","h2"),e.R7$(),e.Y8G("ngSwitchCase","h3"),e.R7$(),e.Y8G("ngSwitchCase","h4"),e.R7$(),e.Y8G("ngSwitchCase","label"),e.R7$(),e.Y8G("ngSwitchCase","span"),e.R7$(),e.Y8G("ngSwitchCase","div"))},dependencies:[i.MD,i.YU,i.B3,i.ux,i.e1,i.fG],styles:["h1,h2,h3,p,span,div{margin:0;color:#fff}.bold{font-family:Montserrat-Bold,sans-serif;font-weight:600}.regular{font-family:Montserrat,sans-serif;font-weight:400}\n"],encapsulation:2})},26539(D,C,t){t.d(C,{K:()=>d});var b,i=t(32881),e=t(73159),u=t(49870),y=t(95789),o=t(67958),f=t(70348),c=t(89417),_=t(6704),w=t(59042),I=t(36872),v=t(32018),r=t(17705);class S{constructor(s){this.indihomeRepository=s}execute(s){return this.indihomeRepository.getRegisteredAccounts(s)}}(b=S).\u0275fac=function(s){return new(s||b)(r.KVO(v.k))},b.\u0275prov=r.jDH({token:b,factory:b.\u0275fac,providedIn:"root"});var g,M=t(86005),P=t(90375),n=t(58211),x=t(30417);function p(a,s){if(1&a){const m=r.RV6();r.qSk(),r.j41(0,"svg",13),r.bIt("click",function(){r.eBV(m);const h=r.XpG();return r.Njj(h.close())}),r.nrm(1,"path",14),r.k0s()}}function T(a,s){if(1&a){const m=r.RV6();r.qSk(),r.j41(0,"svg",15),r.bIt("click",function(){r.eBV(m);const h=r.XpG();return r.Njj(h.close())}),r.nrm(1,"path",16),r.k0s()}}function k(a,s){1&a&&(r.j41(0,"mat-error"),r.EFF(1),r.nI1(2,"translation"),r.nI1(3,"async"),r.k0s()),2&a&&(r.R7$(),r.JRh(r.bMT(3,4,r.i5U(2,1,"key_indihome_benefit_required_no_indihome_label","indihome_benefit"))))}function L(a,s){1&a&&(r.j41(0,"mat-error"),r.EFF(1),r.nI1(2,"translation"),r.nI1(3,"async"),r.k0s()),2&a&&(r.R7$(),r.JRh(r.bMT(3,4,r.i5U(2,1,"key_indihome_benefit_wrong_no_indihome_label","indihome_benefit"))))}function E(a,s){if(1&a&&(r.j41(0,"mat-error"),r.EFF(1),r.k0s()),2&a){const m=r.XpG();r.R7$(),r.JRh(null==m.ihNumberControl?null:m.ihNumberControl.getError("serverError"))}}class d{get ihNumberControl(){return this.form.get("ihNumber")}constructor(s,m,l,h,R,O,N){this.dialogRef=s,this.data=m,this.fb=l,this.userAgent=h,this.getIndihomeAccountsUsecase=R,this.translationService=O,this.loader=N,this.form=this.fb.group({ihNumber:["",[c.k0.required,
1c.k0.pattern(P.u)]]}),this.isMobile=!1,this.isMobile=this.userAgent.isMobileView(),this.currLanguage=this.translationService.currLanguage}ngOnInit(){var s;const m=null===(s=this.data)||void 0===s?void 0:s.ihNumber;m&&P.u.test(m)&&(this.form.patchValue({ihNumber:m}),this.onSubmit())}onlyNumberKey(s){["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Home","End"].includes(s.key)||(s.ctrlKey||s.metaKey)&&["a","c","v","x","z"].includes(s.key.toLowerCase())||/^[0-9]$/.test(s.key)||s.preventDefault()}onSubmit(){if(this.form.invalid)return void this.form.markAllAsTouched();this.loader.show();const s=this.form.value.ihNumber;this.getIndihomeAccountsUsecase.execute(s).subscribe(m=>{var l;this.loader.hide(),localStorage.setItem("referenceId",null==m||null===(l=m.data)||void 0===l?void 0:l.referenceId),this.dialogRef.close(null==m?void 0:m.data)},m=>{var l,h,R;if(this.loader.hide(),"BUSERRCRMERROR"===(null==m||null===(l=m.error)||void 0===l?void 0:l.code)||"BUSERRIHNUMBERNOTFOUND"===(null==m||null===(h=m.error)||void 0===h?void 0:h.code)){var O,N;null===(O=this.ihNumberControl)||void 0===O||O.setErrors({serverError:null==m||null===(N=m.error)||void 0===N||null===(N=N.message)||void 0===N?void 0:N.title})}else{var U;const G="en"===this.currLanguage?"Something went wrong, please try again later":"Terjadi kesalahan, silahkan mencoba beberapa saat lagi!";null===(U=this.ihNumberControl)||void 0===U||U.setErrors({serverError:G})}null===(R=this.ihNumberControl)||void 0===R||R.markAsTouched()})}close(){this.dialogRef.close()}}(g=d).\u0275fac=function(s){return new(s||g)(r.rXU(e.m),r.rXU(e.e),r.rXU(c.ok),r.rXU(I.G),r.rXU(S),r.rXU(M.TranslationService),r.rXU(y.Z))},g.\u0275cmp=r.VBU({type:g,selectors:[["app-dialog-ih-number"]],decls:25,vars:32,consts:[["data-test-id","indihome-popup-container",1,"dialog-ih-number"],[1,"dialog-header"],["data-test-id","indihome-popup-close-button","xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none"],["data-test-id","indihome-popup-close-button","xmlns","http://www.w3.org/2000/svg","width","32","height","32","viewBox","0 0 32 32","fill","none"],[3,"ngSubmit","formGroup"],[1,"dialog-content"],[1,"header-content"],["data-test-id","indihome-popup-title",3,"tag","text","className"],["data-test-id","indihome-popup-description",3,"tag","text","className"],[1,"value-content"],["appearance","outline",1,"ih-number-field"],["data-test-id","indihome-popup-number-input","matInput","","type","tel","formControlName","ihNumber","inputmode","numeric","maxlength","20",3,"keydown","placeholder"],["type","submit","data-test-id","indihome-popup-continue-button",1,"next-btn",3,"disabled"],["data-test-id","indihome-popup-close-button","xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.24551 12.6564C4.0926 12.4807 4 12.2512 4 12C4 11.9964 4.00002 11.9928 4.00006 11.9892C4.00268 11.7437 4.0937 11.5195 4.2428 11.3468L10.2407 4.34923C10.6002 3.9299 11.2315 3.88134 11.6508 4.24076C12.0701 4.60018 12.1187 5.23148 11.7593 5.65081L7.17421 11L19 11C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13L7.17424 13L11.7593 18.3492C12.1187 18.7686 12.0701 19.3999 11.6508 19.7593C11.2315 20.1187 10.6002 20.0701 10.2407 19.6508L4.24551 12.6564Z","fill","white"],["data-test-id","indihome-popup-close-button","xmlns","http://www.w3.org/2000/svg","width","32","height","32","viewBox","0 0 32 32","fill","none",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M26.7071 5.29289C26.3166 4.90237 25.6834 4.90237 25.2929 5.29289L16 14.5858L6.70711 5.29289L6.59495 5.19607C6.20347 4.9056 5.64792 4.93787 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L14.5858 16L5.29289 25.2929L5.19607 25.4051C4.9056 25.7965 4.93787 26.3521 5.29289 26.7071C5.68342 27.0976 6.31658 27.0976 6.70711 26.7071L16 17.4142L25.2929 26.7071L25.4051 26.8039C25.7965 27.0944 26.3521 27.0621 26.7071 26.7071C27.0976 26.3166 27.0976 25.6834 26.7071 25.2929L17.4142 16L26.7071 6.70711L26.8039 6.59495C27.0944 6.20347 27.0621 5.64792 26.7071 5.29289Z","fill","white"]],template:function(s,m){1&s&&(r.j41(0,"div",0)(1,"div",1),r.DNE(2,p,2,0,":svg:svg",2)(3,T,2,0,":svg:svg",3),r.k0s(),r.j41(4,"form",4),r.bIt("ngSubmit",function(){return m.onSubmit()}),r.j41(5,"div",5)(6,"div",6),r.nrm(7,"app-text",7),r.nI1(8,"translation"),r.nI1(9,"async"),r.nrm(10,"app-text",8),r.nI1(11,"translation"),r.nI1(12,"async"),r.k0s(),r.j41(13,"div",9)(14,"mat-form-field",10)(15,"input",11),r.nI1(16,"translation"),r.nI1(17,"async"),r.bIt("keydown",function(h){return m.onlyNumberKey(
1h)}),r.k0s(),r.DNE(18,k,4,6,"mat-error")(19,L,4,6,"mat-error")(20,E,2,1,"mat-error"),r.k0s()(),r.j41(21,"button",12),r.EFF(22),r.nI1(23,"translation"),r.nI1(24,"async"),r.k0s()()()()),2&s&&(r.R7$(2),r.vxM(m.isMobile?2:3),r.R7$(2),r.Y8G("formGroup",m.form),r.R7$(3),r.Y8G("tag","h3")("text",r.bMT(9,15,r.i5U(8,12,"key_indihome_benefit_welcome_title","indihome_benefit")))("className","heading-text"),r.R7$(3),r.Y8G("tag","span")("text",r.bMT(12,20,r.i5U(11,17,"key_indihome_benefit_welcome_subtitle","indihome_benefit")))("className","description-text"),r.R7$(5),r.Y8G("placeholder",r.bMT(17,25,r.i5U(16,22,"key_indihome_benefit_no_indihome_title","indihome_benefit"))),r.R7$(3),r.vxM(null!=m.ihNumberControl&&m.ihNumberControl.hasError("required")&&null!=m.ihNumberControl&&m.ihNumberControl.touched?18:null!=m.ihNumberControl&&m.ihNumberControl.hasError("pattern")&&null!=m.ihNumberControl&&m.ihNumberControl.touched?19:null!=m.ihNumberControl&&m.ihNumberControl.hasError("serverError")?20:-1),r.R7$(3),r.Y8G("disabled",m.form.invalid),r.R7$(),r.SpI(" ",r.bMT(24,30,r.i5U(23,27,"key_indihome_benefit_next_title","indihome_benefit"))," "))},dependencies:[i.MD,i.Jj,u.iI,o.TranslationModule,n.c,f.N,c.X1,c.qT,c.me,c.BC,c.cb,c.tU,c.j4,c.JD,_.M,x.j,x.b,w.fS,w.fg],styles:[".mat-mdc-dialog-panel.popup-ih-number{width:560px;max-width:unset;min-width:unset}@media (max-width: 767px){.mat-mdc-dialog-panel.popup-ih-number{height:100vh}}.mat-mdc-dialog-panel.popup-ih-number .mat-mdc-dialog-inner-container .mat-mdc-dialog-surface{border-radius:20px;background:#161619;overflow:unset}@media (max-width: 767px){.mat-mdc-dialog-panel.popup-ih-number .mat-mdc-dialog-inner-container .mat-mdc-dialog-surface{border-radius:0}}.cdk-overlay-backdrop.backdrop-ih-number{background-color:#262837bf;-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px)}.dialog-ih-number{display:flex;padding:32px 56px;flex-direction:column;align-items:flex-start;gap:40px;flex:1 0 0;align-self:stretch}@media (max-width: 767px){.dialog-ih-number{padding:16px;gap:16px}}.dialog-ih-number .dialog-header{display:flex;justify-content:flex-end;align-items:center;gap:10px;align-self:stretch}@media (max-width: 767px){.dialog-ih-number .dialog-header{padding-bottom:16px;justify-content:flex-start}}.dialog-ih-number .dialog-header svg{width:32px;height:32px;cursor:pointer}@media (max-width: 767px){.dialog-ih-number .dialog-header svg{width:24px;height:24px}}.dialog-ih-number form{width:100%}.dialog-ih-number .dialog-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:40px}.dialog-ih-number .dialog-content .header-content{display:flex;flex-direction:column;align-items:flex-start;gap:4px;align-self:stretch}.dialog-ih-number .dialog-content .header-content app-text h3.heading-text{color:#fff;font-family:Montserrat,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:26px}.dialog-ih-number .dialog-content .header-content app-text span.description-text{color:#afafb9;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:21px}.dialog-ih-number .dialog-content .value-content{display:flex;flex-direction:column;align-items:flex-start;gap:8px;align-self:stretch}.dialog-ih-number .dialog-content .value-content mat-form-field{width:100%}.dialog-ih-number .dialog-content .value-content mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading{border:unset}.dialog-ih-number .dialog-content .value-content mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing{border:unset;border-bottom:1px solid #69707E}.dialog-ih-number .dialog-content .value-content mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{padding:8px 0;min-height:unset}.dialog-ih-number .dialog-content .value-content mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix input{color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:21px}.dialog-ih-number .dialog-content .value-content mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix input::placeholder{color:#afafb9}.dialog-ih-number .dialog-content .value-content mat-form-field .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper{padding:0}.dialog-ih-number .dialog-content .value-content mat-form-field .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper mat-error{font-family:Montserrat,sans-serif;color:#eb9290;font-weight:600;font-size:12px;line-height:18px}.dialog-ih-number .dialog-content button.next-btn{display:flex;width:100%;height:48px;padding:10px 24px;justify-content:center;align-items:center;gap:12px;border-radius:56px;background:#d0021b;color:#fff;text-align:center;font-family:Montserrat,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:26px;border:unset;margin-top:-21px;margin-bottom:30px;filter:brightness(100%);transition:all .3s ease-in-out}.dialog-ih-number .dialog-content button.next-btn[disabled]{background:#afafb9;color:#69707e;pointer-events:none;transition:all .3s ease-in-out}.dialog-ih-number .dialog-content button.next-btn:hover{filter:brightness(120%);transition:all .3s ease-in-out}@media (max-width: 767px){.dialog-ih-number .dialog-content button.next-btn{font-size:16px;line-height:24px;height:40px;margin-top:-19px}}\n"],encapsulation:2})},71279(D,C,t){t.d(C,{p:()=>s});var p,i=t(89417),e=t(27389),u=t(7605),y=t(68305),o=t(97013),f=t(80275),c=t(47538),_=t(73159),w=t(32233),I=t(83284),v=t(86005),r=t(3716),b=t(32881),S=t(67958),M=t(97320),P=t(32374),n=t(17705),x=t(83087),g=t(58211);const T=["ngxotp"];function k(m,l){if(1&m&&(n.j41(0,"span",17),n.EFF(1),n.k0s()),2&m){const h=n.
1XpG();n.R7$(),n.JRh(h.errorMessage)}}function L(m,l){if(1&m&&(n.j41(0,"p",18),n.EFF(1),n.k0s()),2&m){const h=n.XpG();n.R7$(),n.JRh(h.otpExpiredString)}}function E(m,l){1&m&&(n.EFF(0),n.nI1(1,"translation"),n.nI1(2,"async")),2&m&&n.SpI(" ",n.bMT(2,4,n.i5U(1,1,"key_indihome_benefit_waiting_otp_label","indihome_benefit"))," ")}function d(m,l){1&m&&(n.EFF(0),n.nI1(1,"translation"),n.nI1(2,"async")),2&m&&n.SpI(" ",n.bMT(2,4,n.i5U(1,1,"key_indihome_benefit_send_otp_label","indihome_benefit"))," ")}function a(m,l){if(1&m){const h=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(h);const O=n.XpG();return n.Njj(O.resendOTP())}),n.EFF(1),n.nI1(2,"translation"),n.nI1(3,"async"),n.k0s()}2&m&&(n.R7$(),n.SpI(" ",n.bMT(3,4,n.i5U(2,1,"resend_otp_label","topup-v3"))," "))}class s{constructor(l,h,R,O,N,U,G,B,j,F,$,A,V,X){this.data=l,this.renderer=h,this.formBuilder=R,this.otpService=O,this.authServices=N,this.verifyOtpUsecase=U,this.resendOtpUsecase=G,this.verifyEmailOtpUsecase=B,this.resendEmailOtpUsecase=j,this.messageMappingService=F,this.router=$,this.translationService=A,this.timerService=V,this.dialogRef=X,this.currLanguage=localStorage.getItem("currLanguge"),this.otpInputConfig={otpLength:6,autoFocus:!0},this.btnSubmit=!0,this.checkLang()}ngOnInit(){this.otpForm=this.formBuilder.group({}),this.otpExpired=this.otpService.otpExpired,this.otpExpiredString=this.otpService.otpExpiredString,this.expiredStart(),this.getPhone()}checkLang(){this.currLanguage=window.location.href.includes("/en")?"en":"id",this.currLanguage&&(this.translationService.allowedLanguages.includes(this.currLanguage)||this.router.navigateByUrl("/error-404"),this.translationService.changeLanguge(this.currLanguage))}get checkPhoneNumberOrEmail(){var l;return"email"===(null===(l=this.data)||void 0===l||null===(l=l.type)||void 0===l?void 0:l.toLowerCase())?"email":"en"===this.currLanguage?"number":"nomor"}getPhone(){var l;this.phoneNumberView=null===(l=this.data)||void 0===l?void 0:l.phoneNumberOrEmail}expiredStart(){this.subscription=e.c.timer(0,1e3).subscribe(l=>{(0,u.Q)(e.c.timer(this.otpService.otpExpiredMilisecond)),this.otpExpired--,this.otpExpiredString=this.otpService.setExpiredString(this.otpExpired)})}expiredSeconds(){this.timerService.expiredSeconds()}resetExpired(){this.subscription.unsubscribe(),this.otpExpired=this.otpService.otpReset,this.ngxOtp.reset(),this.expiredStart()}storeErrorMessage(l){switch(l){case"Please wait 3 minutes before send OTP again":this.errorMessage="en"===this.currLanguage?"Please wait 3 minutes before send OTP again":"Silakan tunggu 3 menit untuk mengirim ulang OTP";break;case"Please wait 1 minute before send OTP again":this.errorMessage="en"===this.currLanguage?"Please wait 1 minute before send OTP again":"Silakan tunggu 1 menit untuk mengirim ulang OTP";break;default:this.errorMessage=l}}get showResendOTP(){return this.otpExpired<=0}handleResponseError(l){var h;null!=l&&null!==(h=l.error)&&void 0!==h&&null!==(h=h.status)&&void 0!==h&&h.message?this.storeErrorMessage(this.messageMappingService.mappingResponse(l.error.status.message)):this.errorMessage=this.messageMappingService.defaultMessage()}handleResponseEmailError(l){var h;null!=l&&null!==(h=l.error)&&void 0!==h&&null!==(h=h.detail)&&void 0!==h&&h.errorMsg?this.errorMessage=this.messageMappingService.mappingResponse(l.error.detail.errorMsg):this.errorMessage=this.messageMappingService.mappingResponse(l.error.message)}resendOTP(){var l,h;let R;this.errorMessage="",this.btnSubmit=!0,R="email"===(null===(l=this.data)||void 0===l||null===(l=l.type)||void 0===l?void 0:l.toLowerCase())?this.resendEmailOtpUsecase:this.resendOtpUsecase,R.resendIh(null===(h=this.data)||void 0===h?void 0:h.refIdent).subscribe(O=>{this.resetExpired(),this.otpExpiredString=""},O=>{this.handleResponseError(O)})}handleMessageError(){"en"===this.currLanguage?this.errorMessage="Please fill OTP code.":this.errorMessage="Harap isi kode OTP."}handleSuccessInvalidToken(){return"en"===this.currLanguage?"The OTP you've entered is invalid, please input the correct OTP!":"Kode OTP yang kamu masukan salah, mohon masukkan kode OTP yang benar!"}handleFailedInvalidToken(l){var h;return null!=l&&null!==(h=l.error)&&void 0!==h&&null!==(h=h.detail)&&void 0!==h&&h.errorMsg?this.messageMappingService.mappingResponse(l.error.detail.errorMsg):this.messageMappingService.mappingResponse(l.error.message)}handleShowErrorMessageFailedToken(l){var h,R;const O=this.messageMappingService.defaultMessage();l&&(null!=l&&null!==(h=l.error)&&void 0!==h&&h.detail||null!=l&&null!==(R=l.error)&&void 0!==R&&R.message)?this.errorMessage=this.handleFailedInvalidToken(l):this.errorMessage=O}directResetPasswordSuccess(){return"en"===this.currLanguage?"/forgot-password/en?action=create-new-password":"/forgot-password?action=create-new-password"}messageResetPasswordFailed(){return"en"===this.currLanguage?"Please enter a valid code!":"Pastikan kode OTP yang kamu masukan benar!"}handleMessageInvalidCode(l){var h;const R=this.messageResetPasswordFailed(),O=this.messageMappingService.defaultMessage();l&&"Invalid Code"===(null==l||null===(h=l.error)||void 0===h?void 0:h.message)?this.errorMessage=R:this.errorMessage=O}onSubmit(){var l;let R,h="";this.errorMessage="",h=this.valueOtp,h.length<6?this.handleMessageError():(R="email"===(null===(l=this.data)||void 0===l||null===(l=l.type)||void 0===l?void 0:l.toLowerCase())?this.verifyEmailOtpUsecase:this.verifyOtpUsecase,R.executeIH(h).subscribe(O=>{O.tokenId||(this.errorMessage=this.messageMappingService.mappingResponse(this.handleSuccessInvalidToken()))},O=>{this.handleShowErrorMessageFailedToken(O)},()=>{}))}back(){this.dialogRef.close(!1)}handeOtpChange(l){this.errorMessage="",6===l.length&&l.every(h=>
1""!==h)?(this.valueOtp=l.join(""),this.btnSubmit=!1,setTimeout(()=>{this.onSubmit()},300)):this.btnSubmit=!0}handleFillEvent(l){this.errorMessage=""}}(p=s).\u0275fac=function(l){return new(l||p)(n.rXU(_.e),n.rXU(n.sFG),n.rXU(i.ok),n.rXU(y.x),n.rXU(w.u),n.rXU(o.S),n.rXU(f.a),n.rXU(M.g),n.rXU(P.S),n.rXU(c.R),n.rXU(x.Ix),n.rXU(v.TranslationService),n.rXU(r.H),n.rXU(_.m))},p.\u0275cmp=n.VBU({type:p,selectors:[["app-dialog-otp"]],viewQuery:function(l,h){if(1&l&&n.GBs(T,5),2&l){let R;n.mGM(R=n.lsd())&&(h.ngxOtp=R.first)}},decls:45,vars:32,consts:[["ngxotp",""],[1,"dialog-otp-wrapping"],[1,"back"],["data-test-id","popup-input-otp-back-button","src","assets/v3/icon/arrow-left.svg","alt","Dunia Games",3,"click"],["data-test-id","popup-input-otp-header-title"],[1,"description-otp-wrapper"],[1,"otp-form-wrapper"],["data-test-id","popup-input-otp-section-title"],["data-test-id","popup-input-otp-instruction",1,"otp-desc"],[1,"pin"],["data-test-id","popup-input-otp-input-field",3,"otpChange","otpComplete","options"],[1,"pindiv"],["data-test-id","popup-input-otp-error-message","class","error-response",4,"ngIf"],["data-test-id","popup-input-otp-countdown","class","timer-otp",4,"ngIf"],["data-test-id","popup-input-otp-resend-message-text",1,"text-msg"],["class","repeat-otp","data-test-id","popup-input-otp-resend-button",3,"click",4,"ngIf"],["data-test-id","popup-input-otp-verification-button",1,"btn-verifikasi",3,"click","disabled"],["data-test-id","popup-input-otp-error-message",1,"error-response"],["data-test-id","popup-input-otp-countdown",1,"timer-otp"],["data-test-id","popup-input-otp-resend-button",1,"repeat-otp",3,"click"]],template:function(l,h){if(1&l){const R=n.RV6();n.j41(0,"div",1)(1,"header")(2,"div",2)(3,"img",3),n.bIt("click",function(){return n.eBV(R),n.Njj(h.back())}),n.k0s()(),n.j41(4,"span",4),n.EFF(5),n.nI1(6,"translation"),n.nI1(7,"async"),n.k0s()(),n.j41(8,"div",5)(9,"div",6)(10,"h1",7),n.EFF(11),n.nI1(12,"translation"),n.nI1(13,"async"),n.k0s(),n.j41(14,"p",8),n.EFF(15),n.nI1(16,"translation"),n.nI1(17,"async"),n.k0s(),n.j41(18,"div",9)(19,"form")(20,"ngx-otp-input",10,0),n.bIt("otpChange",function(N){return n.eBV(R),n.Njj(h.handeOtpChange(N))})("otpComplete",function(N){return n.eBV(R),n.Njj(h.handleFillEvent(N))}),n.k0s()()(),n.j41(22,"div",11)(23,"div"),n.nrm(24,"span"),n.k0s(),n.j41(25,"div"),n.nrm(26,"span"),n.k0s(),n.j41(27,"div"),n.nrm(28,"span"),n.k0s(),n.j41(29,"div"),n.nrm(30,"span"),n.k0s(),n.j41(31,"div"),n.nrm(32,"span"),n.k0s(),n.j41(33,"div"),n.nrm(34,"span"),n.k0s()(),n.DNE(35,k,2,1,"span",12)(36,L,2,1,"p",13),n.j41(37,"span",14),n.DNE(38,E,3,6)(39,d,3,6),n.k0s(),n.DNE(40,a,4,6,"button",15),n.j41(41,"button",16),n.bIt("click",function(){return n.eBV(R),n.Njj(h.onSubmit())}),n.EFF(42),n.nI1(43,"translation"),n.nI1(44,"async"),n.k0s()()()()}2&l&&(n.R7$(5),n.JRh(n.bMT(7,15,n.i5U(6,12,"key_indihome_benefit_number_verification_label","indihome_benefit"))),n.R7$(6),n.JRh(n.bMT(13,20,n.i5U(12,17,"verification_otp_label","topup-v3"))),n.R7$(4),n.E5c(" ",n.bMT(17,25,n.i5U(16,22,"key_indihome_benefit_fill_otp_code_label_msg","indihome_benefit"))," ",h.checkPhoneNumberOrEmail," ",h.phoneNumberView," "),n.R7$(5),n.Y8G("options",h.otpInputConfig),n.R7$(15),n.Y8G("ngIf",h.errorMessage),n.R7$(),n.Y8G("ngIf",!h.showResendOTP),n.R7$(2),n.vxM(h.showResendOTP?38:39),n.R7$(2),n.Y8G("ngIf",h.showResendOTP),n.R7$(),n.Y8G("disabled",h.btnSubmit),n.R7$(),n.SpI(" ",n.bMT(44,30,n.i5U(43,27,"verification_otp_label","topup-v3"))," "))},dependencies:[b.MD,b.bT,b.Jj,i.YN,i.qT,i.cb,i.cV,i.X1,S.TranslationModule,g.c,I.c],styles:[".mat-mdc-dialog-panel.confirmation-payment{max-width:unset;min-width:unset}@media (max-width: 767px){.mat-mdc-dialog-panel.confirmation-payment{height:100vh}}.mat-mdc-dialog-panel.confirmation-payment .mat-mdc-dialog-inner-container .mat-mdc-dialog-surface{border-radius:16px;background:#161619;overflow:unset;padding:24px 32px}@media (max-width: 767px){.mat-mdc-dialog-panel.confirmation-payment .mat-mdc-dialog-inner-container .mat-mdc-dialog-surface{border-radius:0;padding:0}}.cdk-overlay-backdrop.backdrop-sheet-list-bonus{background-color:#262837bf;-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px)}.dialog-otp-wrapping header{display:flex;gap:16px;padding-bottom:16px;align-items:center}@media (max-width: 767px){.dialog-otp-wrapping header{padding:16px}}.dialog-otp-wrapping header .back{width:24px;height:24px;
1cursor:pointer}@media (max-width: 767px){.dialog-otp-wrapping header .back{top:25px;left:16px}}.dialog-otp-wrapping header .back img{width:24px;height:24px}.dialog-otp-wrapping header span{display:block;font-family:Montserrat-Bold,sans-serif;font-size:20px;font-weight:600}@media (max-width: 767px){.dialog-otp-wrapping header span{font-size:14px;line-height:21px;margin-top:-1px}}.dialog-otp-wrapping header.isOtpActive{justify-content:start;align-items:center}.dialog-otp-wrapping header.isOtpActive .back img{width:24px;height:24px;margin-right:30px}.dialog-otp-wrapping header.isOtpActive span{margin-left:24px}.dialog-otp-wrapping .description-otp-wrapper{text-align:left;width:100%;line-height:1.43}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper{padding:15px 16px}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper{margin:auto;display:flex;width:730px;padding:24px;flex-direction:column;align-items:center;gap:16px;border-radius:16px;border:.5px solid rgba(255,255,255,.1);background:#262837}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper{width:auto}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper h1{color:#fff;font-family:Montserrat-Bold,sans-serif;font-size:20px;font-style:normal;font-weight:600;line-height:28px;margin-bottom:-12px}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper h1{display:none}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper p{color:#fff;text-align:center;font-family:Montserrat,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper p{font-size:12px;font-weight:600;line-height:18px}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper p.otp-desc{font-size:14px;font-weight:400;line-height:21px}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper p.otp-desc{font-size:12px;font-weight:600;font-family:Montserrat-SemiBold,sans-serif;line-height:18px}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper p.timer-otp{margin-bottom:-12px;line-height:21px;font-weight:600;font-family:Montserrat-Bold,sans-serif}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper span{color:#fff;text-align:center;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:21px}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper span.text-msg{font-size:12px;width:278px;line-height:18px}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper span{font-size:10px;font-weight:500;line-height:12px}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper span.error-response{color:#e9b4c0}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pin,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv{display:flex;height:36px;justify-content:center;align-items:flex-start;gap:8px;align-self:stretch}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pin,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv{height:auto}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pin form,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv form{display:flex;height:36px;justify-content:center;align-items:flex-start;gap:8px;align-self:stretch}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pin form,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv form{height:auto}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pin div .
1ngx-otp-input-box,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pin ngx-otp-input .ngx-otp-input-box,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv div .ngx-otp-input-box,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv ngx-otp-input .ngx-otp-input-box{position:relative;width:32px;height:36px;background:#3f424a;outline:none;border:none;border-radius:5px;text-decoration:unset;font-family:Montserrat,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-align:center;margin:0}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pin div .ngx-otp-input-box,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pin ngx-otp-input .ngx-otp-input-box,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv div .ngx-otp-input-box,.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv ngx-otp-input .ngx-otp-input-box{width:32px;height:36px;font-size:16px;line-height:24px}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv{height:1px;margin-top:-20px;z-index:1}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv div{height:1px;border-radius:0;padding-left:11px;padding-right:11px;margin-left:5px;margin-right:5px;background:#fff}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper .pindiv div span{height:1px;display:block;width:100%;background:#fff}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper button.repeat-otp{color:#4169e1;text-align:center;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px;background:transparent;border:unset;padding:0;margin:-8px 0 0;cursor:pointer}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper button.repeat-otp{font-size:12px;line-height:18px}}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper button.btn-verifikasi{display:flex;width:280px;height:40px;padding:8px 16px;justify-content:center;align-items:center;gap:8px;border-radius:56px;background:#d0021b;color:#fff;transition:all .3s ease-in-out;text-align:center;font-family:Montserrat,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px;outline:none;text-decoration:unset;border:unset}.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper button.btn-verifikasi:disabled{background:#afafb9;color:#69707e;transition:all .3s ease-in-out}@media (max-width: 767px){.dialog-otp-wrapping .description-otp-wrapper .otp-form-wrapper button.btn-verifikasi{width:278px}}\n"],encapsulation:2})},57417(D,C,t){t.d(C,{k:()=>E});var c,d,i=t(17705),e=t(32881),u=t(70348),y=t(31664),o=t(67958),f=t(33495);(d=c||(c={})).EMAIL="EMAIL",d.MSISDN="MSISDN";var w,_=t(32018);class I{constructor(a){this.indihomeRepository=a}execute(a){return this.indihomeRepository.sendOtp(a)}}(w=I).\u0275fac=function(a){return new(a||w)(i.KVO(_.k))},w.\u0275prov=i.jDH({token:w,factory:w.\u0275fac,providedIn:"root"});var x,v=t(95789),r=t(32233),b=t(10382),S=t(83087),M=t(25790),P=t(86005),n=t(58211);function g(d,a){if(1&d){const s=i.RV6();i.j41(0,"button",10),i.nI1(1,"translation"),i.nI1(2,"async"),i.bIt("click",function(){i.eBV(s);const l=i.XpG();return i.Njj(l.close())}),i.nrm(3,"app-icon",11),i.nI1(4,"translation"),i.nI1(5,"async"),i.k0s()}if(2&d){let s;const m=i.XpG();i.BMQ("aria-label",i.bMT(2,8,i.i5U(1,5,"indihome_verify_back",m.pageName))),i.R7$(3),i.Y8G("src","assets/v3/icon/arrow-left-light.svg")("alt",null!==(s=i.bMT(5,13,i.i5U(4,10,"indihome_verify_back",m.pageName)))&&void 0!==s?s:"Kembali")("width","24")("height","24")}}function p(d,a){if(1&d){const s=i.RV6();i.j41(0,"button",12),i.bIt("click",function(){const l=i.eBV(s).$implicit,h=i.XpG();return i.Njj(h.select(l))}),i.EFF(1),i.nI1(2,"translation"),i.nI1(3,"async"),i.k0s()}if(2&d){const s=a.$implicit,m=a.$index,l=i.XpG();i.AVh("popup-indihome-verify__option--pill",l.isCompact())("popup-indihome-verify__option--row",!l.isCompact()),i.BMQ("data-test-id","popup-option-verification-otp-ch
1oice-"+(m+1)),i.R7$(),i.Lme(" ",i.bMT(3,10,i.i5U(2,7,s.type===l.accountType.MSISDN?"indihome_verify_option_phone":"indihome_verify_option_email",l.pageName)),": ",s.maskedValue," ")}}function T(d,a){if(1&d&&(i.j41(0,"p",6),i.EFF(1),i.k0s()),2&d){const s=i.XpG();i.R7$(),i.JRh(s.errorMessage())}}function k(d,a){1&d&&(i.j41(0,"a",8),i.EFF(1,"188"),i.k0s())}function L(d,a){1&d&&(i.j41(0,"span",9),i.EFF(1,"188"),i.k0s())}class E{toAccount(a,s){return{identifierId:a.identifierId,type:s,maskedValue:a.value}}constructor(){this.popupService=(0,i.WQX)(f.O),this.sendIndihomeOtpUsecase=(0,i.WQX)(I),this.loader=(0,i.WQX)(v.Z),this.authService=(0,i.WQX)(r.u),this.login=(0,i.WQX)(b.i),this.router=(0,i.WQX)(S.Ix),this.translationService=(0,i.WQX)(P.TranslationService),this.referenceId=(0,i.hFB)(""),this.emails=(0,i.hFB)([]),this.msisdn=(0,i.hFB)([]),this.onSelect=(0,i.hFB)(),this.isMobile=(0,i.hFB)(!1),this.errorMessage=(0,i.vPA)(""),this.accountType=c,this.pageName="indihome_benefit",this.compactThreshold=3,this.accounts=(0,i.EWP)(()=>{var a,s;return[...(null!==(a=this.emails())&&void 0!==a?a:[]).map(m=>this.toAccount(m,c.EMAIL)),...(null!==(s=this.msisdn())&&void 0!==s?s:[]).map(m=>this.toAccount(m,c.MSISDN))]}),this.isCompact=(0,i.EWP)(()=>this.accounts().length<=this.compactThreshold),this.currUrl=null,this.currUrl=this.router.url,this.currLanguage=this.translationService.currLanguage}close(){this.popupService.close()}select(a){this.loader.show(),this.errorMessage.set(""),this.sendIndihomeOtpUsecase.execute({referenceId:this.referenceId(),identifierId:a.identifierId}).subscribe({next:s=>{var m;console.log(a),"EMAIL"===(null==a?void 0:a.type)?this.authService.setEmailOtp(null==a?void 0:a.maskedValue):(this.authService.setPhoneNumberOtp(null==a?void 0:a.maskedValue),this.authService.setUsername(null==a?void 0:a.maskedValue)),this.authService.setAuthId(null==s?void 0:s.data.authId),this.authService.setLoginRedirect("en"===this.currLanguage?`${M.Lw}/en`:M.Lw),this.authService.setOTPVerificationMessage(null==s?void 0:s.status.message),this.loader.hide(),null===(m=this.onSelect())||void 0===m||m(a),this.popupService.close({account:a,otp:null==s?void 0:s.data})},error:s=>{var m,l,h;this.loader.hide(),this.errorMessage.set(null!==(m=null!==(l=null==s||null===(h=s.error)||void 0===h||null===(h=h.status)||void 0===h?void 0:h.message)&&void 0!==l?l:null==s?void 0:s.message)&&void 0!==m?m:"")}})}}(x=E).\u0275fac=function(a){return new(a||x)},x.\u0275cmp=i.VBU({type:x,selectors:[["app-popup-indihome-verify"]],inputs:{referenceId:[1,"referenceId"],emails:[1,"emails"],msisdn:[1,"msisdn"],onSelect:[1,"onSelect"],isMobile:[1,"isMobile"]},decls:21,vars:37,consts:[[1,"popup-indihome-verify"],["type","button","data-test-id","popup-option-verification-otp-close-button",1,"popup-indihome-verify__back"],["data-test-id","popup-option-verification-otp-title",3,"tag","text","className"],["data-test-id","popup-option-verification-otp-description",3,"tag","text","className"],[1,"popup-indihome-verify__options"],["type","button",1,"popup-indihome-verify__option",3,"popup-indihome-verify__option--pill","popup-indihome-verify__option--row"],["data-test-id","indihome-verify-error",1,"popup-indihome-verify__error"],["data-test-id","popup-option-verification-otp-info-text",1,"popup-indihome-verify__note"],["href","tel:188","data-test-id","indihome-call-center",1,"popup-indihome-verify__note-link"],["data-test-id","indihome-call-center",1,"popup-indihome-verify__note-link"],["type","button","data-test-id","popup-option-verification-otp-close-button",1,"popup-indihome-verify__back",3,"click"],[3,"src","alt","width","height"],["type","button",1,"popup-indihome-verify__option",3,"click"]],template:function(a,s){1&a&&(i.j41(0,"div",0),i.DNE(1,g,6,15,"button",1),i.nrm(2,"app-text",2),i.nI1(3,"translation"),i.nI1(4,"async"),i.nrm(5,"app-text",3),i.nI1(6,"translation"),i.nI1(7,"async"),i.j41(8,"div",4),i.Z7z(9,p,4,12,"button",5,i.Vm6),i.k0s(),i.DNE(11,T,2,1,"p",6),i.j41(12,"p",7),i.EFF(13),i.nI1(14,"translation"),i.nI1(15,"async"),i.DNE(16,k,2,0,"a",8)(17,L,2,0,"span",9),i.EFF(18),i.nI1(19,"translation"),i.nI1(20,"async"),i.k0s()()),2&a&&(i.AVh("popup-indihome-verify--list",!s.isCompact())("popup-indihome-verify--mobile",s.isMobile()),i.R7$(),i.vxM(s.isMobile()?1:-1),i.R7$(),i.Y8G("tag","h3")("text",i.bMT(4,20,i.i5U(3,17,"indihome_verify_title",s.pageName)))("className","popup-indihome-verify__title"),i.R7$(3),i.Y8G("tag","p")("text",i.bMT(7,25,i.i5U(6,22,"indihome_verify_subtitle",s.pageName)))("className","popup-indihome-verify__subtitle"),i.R7$(3),i.AVh("popup-indihome-verify__options--scroll",!s.isCompact()),i.R7$(),i.Dyx(s.accounts()),i.R7$(2),i.vxM(s.errorMessage()?11:-1),i.R7$(2),i.SpI(" ",i.bMT(15,30,i.i5U(14,27,"indihome_verify_note_prefix",s.pageName))," "),i.R7$(3),i.vxM(s.isMobile()?16:17),i.R7$(2),i.SpI("",i.bMT(20,35,i.i5U(19,32,"indihome_verify_note_suffix",s.pageName))," "))},dependencies:[e.Jj,u.N,y.R,o.TranslationModule,n.c],styles:[".popup-indihome-verify{box-sizing:border-box;width:512px;max-width:100%;padding:60px;background:#161619;border-radius:16px}.popup-indihome-verify--mobile{width:100vw;min-height:100vh;min-height:100dvh;padding:24px 16px 32px;border-radius:0}.popup-indihome-verify__back{display:inline-flex;align-items:center;justify-content:center;margin:0 0 16px -4px;padding:4px;background:none;border:none;cursor:pointer}.popup-indihome-verify__title{display:block;margin:0 0 8px;color:#fff;font-family:Montserrat-bold,sans-serif;font-weight:700;font-size:20px;line-height:28px;text-align:center}@media (max-width: 767px){.popup-indihome-verify__title{font-size:18px}}.popup-indihome-verify__subtitle{display:block;margin:0 0 24px;color:#afafb9;font-family:Montserrat,sans-serif;font-weight:400;font-size:14px;line-height:21px;text-align:center}.popup-indihome-verify__options{display:flex;flex-direction:column;padding:0 36px}.popup-indihome-verify__options--scroll{height:190px;padding:0;gap:20px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent}.popup-indihome-verify__options--scroll::-webkit-scrollbar{width:4px}.popup-indihome-verify__options--scroll::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:4px}.popup-indihome-verify__option{box-sizing:border-box;display:flex;align-items:center;width:100%;min-height:32px;border:none;background:transparent;cursor:pointer;font-family:Montserrat,sans-serif;font-weight:600;font-size:14px;line-height:21px;transition:background .15s ease,color .15s ease}.popup-indihome-verify__option--pill{justify-content:center;height:32px;margin-bottom:12px;padding:0 16px;color:#16181d;background:#fff;border-radius:100px;text-align:center;font-size:12px}@media (min-width: 1200px){.popup-indihome-verify__option--pill:hover{background:#d0021b;color:#fff}}.popup-indihome-verify__option--row{flex-shrink:0;justify-content:flex-start;height:37px;padding:0 12px;color:#fff;text-align:left;border-bottom:1px solid rgba(255,255,255,.12);border-radius:0}.popup-indihome-verify__option--row:hover{background:#262837;border-bottom-color:transparent}.popup-indihome-verify__note{margin:24px 0 0;color:#fff;font-family:Montserrat,sans-serif;font-weight:400;font-size:12px;line-height:18px;text-align:center;font-size:10px;line-height:12px}.popup-indihome-verify__note-link{color:#fff;text-decoration:none}.popup-indihome-verify__error{margin:12px 0 0;color:#ff6b6b;font-family:Montserrat,sans-serif;font-weight:400;font-size:12px;line-height:18px;text-align:center}.popup-indihome-verify--mobile .popup-indihome-verify__title,.popup-indihome-verify--mobile .popup-indihome-verify__subtitle,.popup-indihome-verify--mobile .popup-indihome-verify__note{text-align:left}.popup-indihome-verify--mobile .popup-indihome-verify__options{padding:0 16px}.popup-indihome-verify--mobile .popup-indihome-verify__note-link{color:#8dacf6;text-decoration:underline}.indihome-verify-panel .mat-mdc-dialog-surface{background:transparent;overflow:visible}
1.indihome-verify-panel .popup .btn-close{top:24px;right:24px}.indihome-fullscreen-panel{width:100vw!important;max-width:100vw!important;height:100vh!important}.indihome-fullscreen-panel .mat-mdc-dialog-surface{background:transparent;overflow:visible;border-radius:0}.indihome-fullscreen-panel .popup{min-width:0;background:transparent;border-radius:0;box-shadow:none}.customBackdrop{background-color:#262837bf}\n"],encapsulation:2,changeDetection:0})},76504(D,C,t){t.d(C,{y:()=>L});var o,i=t(32881),e=t(17705),u=t(70348),y=t(31664);class f{constructor(){this.tag="p",this.iconClassName="",this.textClassName=""}}(o=f).\u0275fac=function(d){return new(d||o)},o.\u0275cmp=e.VBU({type:o,selectors:[["app-icon-label"]],inputs:{icon:"icon",label:"label",tag:"tag",iconClassName:"iconClassName",textClassName:"textClassName"},decls:2,vars:6,consts:[[3,"src","alt","className"],[3,"tag","text","className"]],template:function(d,a){1&d&&e.nrm(0,"app-icon",0)(1,"app-text",1),2&d&&(e.Y8G("src",a.icon)("alt","menu-"+a.label)("className",a.iconClassName),e.R7$(),e.Y8G("tag",a.tag)("text",a.label)("className",a.textClassName))},dependencies:[u.N,y.R],encapsulation:2});var I,c=t(49870),_=t(67958),w=t(12557);const v=E=>[E];function r(E,d){1&E&&e.nrm(0,"div",3)}class b{constructor(){this.isMobile=!1,this.isDisabledRouter=!1,this.clickLink=new e.bkB}get isActive(){var d,a;return null===(d=this.activeFn)||void 0===d?void 0:d.call(this,null===(a=this.item)||void 0===a?void 0:a.child)}onClick(d){this.clickLink.emit(d)}}(I=b).\u0275fac=function(d){return new(d||I)},I.\u0275cmp=e.VBU({type:I,selectors:[["app-side-menu-item"]],inputs:{item:"item",isMobile:"isMobile",isDisabledRouter:"isDisabledRouter",activeFn:"activeFn"},outputs:{clickLink:"clickLink"},decls:5,vars:14,consts:[[3,"click","routerLink"],[3,"tag","icon","label","iconClassName","textClassName"],["class","active-path",4,"ngIf"],[1,"active-path"]],template:function(d,a){1&d&&(e.j41(0,"li")(1,"a",0),e.nI1(2,"addlang"),e.bIt("click",function(m){return a.onClick(m)}),e.nrm(3,"app-icon-label",1),e.k0s(),e.DNE(4,r,1,0,"div",2),e.k0s()),2&d&&(e.AVh("active",a.isActive),e.R7$(),e.Y8G("routerLink",a.isDisabledRouter?null:e.bMT(2,10,e.eq3(12,v,null==a.item?null:a.item.path))),e.BMQ("data-test-id","sidebar-menu-"+a.item.name),e.R7$(2),e.Y8G("tag","span")("icon",null==a.item?null:a.item.icon)("label",null==a.item?null:a.item.name)("iconClassName","icon")("textClassName","label"),e.R7$(),e.Y8G("ngIf",a.isActive))},dependencies:[i.MD,i.bT,c.iI,c.Wk,f,_.TranslationModule,w.C],encapsulation:2});var g,S=t(36872),M=t(97015),P=t(84402),n=t(29987),x=t(73623);const p=E=>({hidemenu:E});function T(E,d){if(1&E){const a=e.RV6();e.j41(0,"app-side-menu-item",3),e.bIt("clickLink",function(m){const l=e.eBV(a).$implicit,h=e.XpG(2);return e.Njj(h.clickLink(m,l))}),e.k0s()}if(2&E){const a=d.$implicit,s=e.XpG(2);e.Y8G("item",a)("isMobile",s.isMobile)("activeFn",s.activeMenu)("isDisabledRouter","profile"===(null==a?null:a.name)&&!s.isLogin)}}function k(E,d){if(1&E&&(e.qex(0),e.j41(1,"nav",1)(2,"ul"),e.Z7z(3,T,1,4,"app-side-menu-item",2,e.Vm6),e.k0s()(),e.bVm()),2&E){const a=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(1,p,!a.isShowMenu)),e.R7$(2),e.Dyx(a.menu)}}class L{get isShowMenu(){const d=window.location.pathname;return!["/top-up/","/mytsel/item/","/embed/","/mytsel","/bracket/","/user-consent/"].some(s=>d.includes(s))}get isShowTrigger(){return this.sideMenuServices.isShowTrigger()}constructor(d,a,s,m,l){this.userAgentIsMobileService=d,this.sessionService=a,this.authService=s,this.sideMenuServices=m,this.analytic=l,this.isLogin=!1,this.menu=[{name:"top up",icon:"assets/aplications/icons/nav/topup.svg",path:"/",child:["","en"]},{name:"promo",icon:"assets/aplications/icons/nav/discount.svg",path:"/promo",child:["promo","dg-voucher"]},{name:"explore",icon:"assets/aplications/icons/nav/globe.svg",path:"/explore",child:["explore","discover","livestream","livescore","esports"]},{name:"reward",icon:"assets/aplications/icons/nav/gift.svg",path:"/store",child:["store"]},{name:"profile",icon:"assets/aplications/icons/nav/profile.svg",path:"/profile",child:["profile"]}],this.isMobile=this.userAgentIsMobileService.isMobileView(),this.sessionService.isLoggedIn$.subscribe(h=>this.isLogin=h)}activeMenu(d){const s=window.location.pathname.split("/")[1];return!!d.includes(s)}clickLink(d,a){if(!this.isLogin&&"profile"===(null==a?void 0:a.name))return this.sendAnalyticClickProfile(a),this.authService.showLogin(),d.preventDefault(),void d.stopPropagation();"profile"===(null==a?void 0:a.name)?this.sendAnalyticClickProfile(a):this.sendAnalyticClickMenu(a)}sendAnalyticClickMenu(d){const a=window.location.href;this.analytic.send({event:"menu_click",event_category:"Homepage Contents",menu_name:d,page_title:"Homepage",page_url:a})}sendAnalyticClickProfile(d){const a=window.location.href;this.analytic.send({event:"profile_icon_click",event_category:"Homepage Contents",page_title:"Homepage",page_url:a})}}(g=L).\u0275fac=function(d){return new(d||g)(e.rXU(S.G),e.rXU(M.SessionService),e.rXU(P.AuthenticationService),e.rXU(n.$),e.rXU(x.S))},g.\u0275cmp=e.VBU({type:g,selectors:[["app-side-menu"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"side-menu",3,"ngClass"],[3,"item","isMobile","activeFn","isDisabledRouter"],[3,"clickLink","item","isMobile","activeFn","isDisabledRouter"]],template:function(d,a){1&d&&e.DNE(0,k,5,3,"ng-container",0),2&d&&e.Y8G("ngIf",a.isS
1howTrigger)},dependencies:[i.MD,i.YU,i.bT,b],styles:[".side-menu[_ngcontent-%COMP%]{z-index:999;width:96px;height:100%;position:fixed;padding-top:88px;left:0;border-right:1px solid rgba(255,255,255,.1);background:#262837}@media (max-width: 767px){.side-menu[_ngcontent-%COMP%]{border-right:unset;border-top:1px solid rgba(255,255,255,.1);width:100%;height:68px;bottom:0;top:unset;left:0;right:0;padding:unset}}@media (min-width: 768px) and (max-width: 1365px){.side-menu[_ngcontent-%COMP%]{border-right:unset;border-top:1px solid rgba(255,255,255,.1);width:100%;height:68px;bottom:0;top:unset;left:0;right:0;padding:unset}}.side-menu.hidemenu[_ngcontent-%COMP%]{display:none}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:unset;display:flex;flex-direction:column;gap:24px;list-style:none;border:none;outline:none}@media (max-width: 767px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{height:68px;flex-direction:row;justify-content:center;gap:unset}}@media (min-width: 768px) and (max-width: 1365px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{height:68px;flex-direction:row;justify-content:space-evenly;gap:unset}}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li{cursor:pointer;justify-content:center;display:flex;padding:12px 0;position:relative;border:none;outline:none}@media (max-width: 767px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li{width:68px}}@media (min-width: 768px) and (max-width: 1365px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li{width:68px}}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a{text-decoration:none;border:none;outline:none}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label{display:flex;flex-direction:column;align-items:center;gap:4px}@media (max-width: 767px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label{gap:2px}}@media (min-width: 768px) and (max-width: 1365px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label{gap:2px}}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label .icon{width:24px;height:24px;opacity:.5}@media (max-width: 767px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label .icon{width:20px;height:20px}}@media (min-width: 768px) and (max-width: 1365px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label .icon{width:20px;height:20px}}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label .label{font-size:14px;color:#afafb9;font-weight:400;line-height:21px;text-transform:capitalize}@media (max-width: 767px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label .label{font-size:12px;line-height:18px}}@media (min-width: 768px) and (max-width: 1365px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a app-icon-label .label{font-size:12px;line-height:18px}}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li .active-path{position:absolute;bottom:0;left:0;top:0;width:4px;border-left:4px solid rgb(208,2,27)}@media (max-width: 767px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li .active-path{bottom:2px;left:0;right:0;height:4px;top:unset;width:100%;border-bottom:4px solid rgb(208,2,27);border-top-left-radius:2.5px;border-top-right-radius:2.5px}}@media (min-width: 768px) and (max-width: 1365px){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li .active-path{bottom:2px;left:0;right:0;height:4px;top:unset;width:100%;border-bottom:4px solid rgb(208,2,27);border-top-left-radius:2.5px;border-top-right-radius:2.5px}}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li a{touch-action:manipulation}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li.active a .icon{opacity:1}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li.active a .label{color:#fff;font-weight:600;font-family:Montserrat-bold,sans-serif}@media (hover: hover) and (pointer: fine){.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li:hover a .icon{opacity:1}.side-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] app-side-menu-item li:hover a .label{color:#fff;font-weight:600;font-family:Montserrat-bold,sans-serif}}@supports (-webkit-touch-callout: none){.fullscreen-video[_ngcontent-%COMP%] .side-menu[_ngcontent-%COMP%]{display:none!important}}"]})},11764(D,C,t){t.d(C,{d:()=>E});var f,_,n,p,i=t(73159),e=t(31664),u=t(32881),y=t(70348),o=t(17705);class c{constructor(){this.title=""}}function w(d,a){1&d&&o.eu8(0)}function I(d,a){if(1&d&&o.DNE(0,w,1,0,"ng-container",0),2&d){const s=o.XpG(2);o.Y8G("ngTemplateOutlet",s.data.value)}}function v(d,a){1&d&&o.eu8(0)}function r(d,a){if(1&d&&o.DNE(0,v,1,0,"ng-container",2),2&d){const s=o.XpG(3);o.Y8G("ngComponentOutlet",s.data.value)("ngComponentOutletInputs",s.data.inputs)}}function b(d,a){if(1&d&&o.nrm(0,"div",1),2&d){const s=o.XpG(3);o.Y8G("innerHTML",s.data.value,o.npT)}}function S(d,a){if(1&d&&o.DNE(0,r,1,2,"ng-container")(1,b,1,1,"div",1),2&d){const s=o.XpG(2);o.vxM(s.isComponent(s.data.value)?0:1)}}function M(d,a){if(1&d&&o.DNE(0,I,1,1,"ng-container")(1,S,2,1),2&d){const s=o.XpG();o.vxM(s.isTemplate(s.data.value)?0:1)}}(f=c).\u0275fac=function(a){return new(a||f)},f.\u0275cmp=o.VBU({type:f,selectors:[["app-popup-header"]],inputs:{title:"title"},decls:2,vars:3,consts:[[1,"popup-header"],[3,"tag","text","className"]],template:function(a,s){1&a&&(o.j41(0,"div",0),o.nrm(1,"app-text",1),o.k0s()),2&a&&(o.R7$(),o.Y8G("tag","h2")("text",s.title)("className","popup-title"))},dependencies:[u.MD,y.N],encapsulation:2});class P{isTemplate(a){return a instanceof o.C4Q}isComponent(a){return"function"==typeof a}}function x(d,a){if(1&d){const s=o.RV6();o.j41(0,"button",2),o.bIt("click",function(){const l=o.eBV(s).$implicit,h=o.XpG();return o.Njj(l.callback(h.onClose))}),o.EFF(1),o.k0s()}if(2&d){const s=a.$implicit;o.R7$(),o.SpI(" ",s.label," ")}}(_=P).\u0275fac=function(a){return new(a||_)},_.\u0275cmp=o.VBU({type:_,selectors:[["app-popup-body"]],inputs:{data:"data"},decls:1,vars:1,consts:[[4,"ngTemplateOutlet"],[3,"innerHTML"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(a,s){1&a&&o.DNE(0,M,2,1),2&a&&o.vxM(null!=s.data&&s.data.value?0:-1)},dependencies:[u.MD,u.OI,u.T3],encapsulation:2});class g{constructor(){this.actions=[]}}function T(d,a){if(1&d){const s=o.RV6();o.j41(0,"button",5),o.bIt("click",function(){o.eBV(s);const l=o.XpG();return o.Njj(l.closePopup())}),o.nrm(1,"app-icon",6),o.k0s()}if(2&d){const s=o.XpG();o.BMQ("data-test-id",null==s.data.data||null==s.data.data.optional?null:s.data.data.optional.closeBtnTestId),o.R7$(),o.Y8G("src","assets/v3/icon/close.svg")("alt","popup")("width","16")("height","16")("className","icon-close")}}function k(d,a){if(1&d&&o.nrm(0,"app-popup-header",2),2&d){const s=o.XpG();o.Y8G("title",s.data.title)}}function L(d,a){if(1&d&&o.nrm(0,"app-popup-footer",4),2&d){const s=o.XpG();o.Y8G("actions",s.data.actions)("onClose",s.close)}}(n=g).\u0275fac=function(a){return new(a||n)},n.\u0275cmp=o.VBU({type:n,selectors:[["app-popup-footer"]],inputs:{actions:"actions",onClose:"onClose"},decls:2,vars:1,consts:[[1,"popup-footer"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(a,s){1&a&&(o.j41(0,"div",0),o.DNE(1,x,2,1,"button",1),o.k0s()),2&a&&(o.R7$(),o.Y8G("ngForOf",s.actions))},dependencies:[u.MD,u.Sq],encapsulation:2});class E{constructor(a,s){this.dialogRef=a,this.data=s,this.close=()=>this.dialogRef.close()}
1closePopup(){this.dialogRef.close()}}(p=E).\u0275fac=function(a){return new(a||p)(o.rXU(i.m),o.rXU(i.e))},p.\u0275cmp=o.VBU({type:p,selectors:[["app-popup-container"]],decls:5,vars:4,consts:[[1,"popup"],[1,"btn-close"],[3,"title"],[3,"data"],[3,"actions","onClose"],[1,"btn-close",3,"click"],[3,"src","alt","width","height","className"]],template:function(a,s){1&a&&(o.j41(0,"div",0),o.DNE(1,T,2,6,"button",1)(2,k,1,1,"app-popup-header",2),o.nrm(3,"app-popup-body",3),o.DNE(4,L,1,2,"app-popup-footer",4),o.k0s()),2&a&&(o.R7$(),o.vxM(null!=s.data.data&&null!=s.data.data.optional&&s.data.data.optional.closeBtn?1:-1),o.R7$(),o.vxM(s.data.title?2:-1),o.R7$(),o.Y8G("data",s.data.data),o.R7$(),o.vxM(s.data.actions&&(null==s.data.actions?null:s.data.actions.length)>0?4:-1))},dependencies:[e.R,c,P,g],styles:[".popup{position:relative;background:#262837;border-radius:16px;min-width:300px;box-shadow:0 8px 24px #0003}.popup .btn-close{position:absolute;background:none;border:none;top:0;right:0;z-index:1000}.custom-popup-panel{width:auto!important}.custom-popup-panel .mat-mdc-dialog-surface{background:transparent;overflow:visible}\n"],encapsulation:2})},81395(D,C,t){t.d(C,{C:()=>x});var _,i=t(32881),e=t(83087),u=t(49870),y=t(58728),o=t(76924),f=t(36872),c=t(17705);const w=["themelayout"],I=()=>[Promise.all([t.e(5461),t.e(1443),t.e(4046),t.e(5299),t.e(7563),t.e(4997),t.e(9223),t.e(5543),t.e(3002),t.e(1070),t.e(3755),t.e(5216),t.e(1757),t.e(5466),t.e(4062),t.e(5199),t.e(6964),t.e(3709),t.e(6454),t.e(1643),t.e(8279),t.e(3209),t.e(958),t.e(3759),t.e(6750),t.e(8867),t.e(4178),t.e(1311),t.e(6025),t.e(7478)]).then(t.bind(t,40618)).then(g=>g.HeaderComponent)],v=()=>[t.e(6889).then(t.bind(t,16889)).then(g=>g.FooterComponent)],r=(g,p)=>({nobackground:g,nohavemenu:p}),b=g=>({"nobackground-img":g});function S(g,p){if(1&g&&c.nrm(0,"app-header",4),2&g){const T=c.XpG();c.Y8G("isNoBackgroundRoute",T.isNoBackgroundRoute)}}function M(g,p){1&g&&c.nrm(0,"div")}function P(g,p){1&g&&c.nrm(0,"app-footer")}function n(g,p){1&g&&c.nrm(0,"div")}class x{constructor(p,T){this.router=p,this.userAgentServices=T,this.isDisableDeferFooter=!1,this.router.events.pipe((0,y.p)(k=>
1k instanceof e.wF)).subscribe(k=>{this.checkRoute(k.urlAfterRedirects)}),this.checkRoute(this.router.url)}ngAfterViewInit(){this.isTabse&&new ResizeObserver(T=>{for(const k of T){const L=k.contentRect.height;this.themelayout.nativeElement.parentElement.style.setProperty("--my-height",`${L}px`)}}).observe(this.themelayout.nativeElement)}get isTabse(){return this.userAgentServices.isTabView()}checkRoute(p){this.isNoBackgroundRoute=p.includes("/top-up/item")||p.includes("/top-up/telco-item")||p.includes("/promo")||p.includes("/dg-voucher")||p.includes("/store")||p.includes("/livestream")||p.includes("/explore")||p.includes("/rankfolio"),this.isDisableDeferFooter=p.includes("/explore")}get isShowMenu(){const p=window.location.pathname;return["/top-up/","/mytsel/item/","/embed/","/mytsel","/bracket/","/user-consent/"].some(k=>p.includes(k))}}(_=x).\u0275fac=function(p){return new(p||_)(c.rXU(e.Ix),c.rXU(f.G))},_.\u0275cmp=c.VBU({type:_,selectors:[["app-layout"]],viewQuery:function(p,T){if(1&p&&c.GBs(w,5),2&p){let k;c.mGM(k=c.lsd())&&(T.themelayout=k.first)}},decls:13,vars:12,consts:[["themelayout",""],[1,"app-theme-layout",3,"ngClass"],[3,"ngClass","className","width","height","src"],[1,"app-layout"],[3,"isNoBackgroundRoute"]],template:function(p,T){1&p&&(c.j41(0,"section",1,0),c.nrm(2,"app-image",2),c.DNE(3,S,1,1)(4,M,1,0),c.nv$(5,3,I,null,4),c.qhs(0,-1),c.j41(7,"main",3),c.nrm(8,"router-outlet"),c.k0s(),c.DNE(9,P,1,0)(10,n,1,0),c.nv$(11,9,v,null,10),c.qhs(0,-1),c.k0s()),2&p&&(c.Y8G("ngClass",c.l_i(7,r,T.isNoBackgroundRoute,!T.isShowMenu)),c.R7$(2),c.Y8G("ngClass",c.eq3(10,b,T.isNoBackgroundRoute))("className","layout-background")("width",1e3)("height",700)("src","/assets/v3/images/bg/background-layout.avif"),c.R7$(9),c.LVR(T.isDisableDeferFooter))},dependencies:[i.MD,i.YU,u.iI,e.n3,o.h],styles:["@media (min-width: 768px) and (max-width: 1365px){app-layout{display:block;height:calc(var(--my-height) * 100vw / 1240px)}}.app-theme-layout{min-height:100vh;background:#161619;transition:background-image .3s ease-in-out;background-size:100%;background-repeat:no-repeat;background-position:top center;background-attachment:fixed}.app-theme-layout.nobackground{background-image:unset;transition:background-image .3s ease-in-out}@media (max-width: 767px){.app-theme-layout{padding-bottom:68px}}@media (min-width: 768px) and (max-width: 1365px){.app-theme-layout{transform:scale(calc(100vw/1240px));transform-origin:top left;width:1240px}.app-theme-layout.nohavemenu{padding-bottom:calc(68px/(100vw/1240px))}.app-theme-layout .container.homepage,.app-theme-layout .container.store,.app-theme-layout .container.topup{padding:0}.app-theme-layout app-landing-join-tournament .container{width:1200px;padding:0}.app-theme-layout .landing-gamefeed .container{justify-items:center}.app-theme-layout .search-form-wrapper .bg-blue{width:100%;height:100%}}.app-theme-layout .app-layout{position:relative;padding-top:88px}@media (max-width: 767px){.app-theme-layout .app-layout{padding-top:60px}}@media (min-width: 768px) and (max-width: 1365px){.app-theme-layout .app-layout{min-height:calc(100vh + 437px);overflow-y:hidden}}.app-theme-layout .mat-ripple-element{background-color:#0000001a!important}.app-theme-layout .layout-background{position:fixed;height:100%;width:100%;object-fit:cover}@media (max-width: 767px){.app-theme-layout .layout-background{display:none}}@media (min-width: 768px) and (max-width: 1365px){.app-theme-layout .layout-background{object-fit:fill}}.app-theme-layout .nobackground-img{display:none}\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.