1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4960f5e2-22f3-5c9e-a2f2-578d25fb452c")}catch(e){}}(); 3(self.webpackChunkrivalFrontend=self.webpackChunkrivalFrontend||[]).push([[18],{8018:(Js,z,h)=>{h.r(z),h.d(z,{AccountModule:()=>Xs});var u=h(316),R=h(9943),t=h(7580),k=h(9074),I=h(3487),Z=h(436),v=h(9885),M=h(4416),f=h(8188),w=h(3994),x=h(2599);const Et=function(e){return{username:e}};function bt(e,r){if(1&e&&(t.j41(0,"h2",4),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG();let o;t.R7$(1),t.SpI(" ",t.i5U(2,1,"ACCOUNT.WELCOME_MESSAGE",t.eq3(4,Et,null==(o=n.user())?null:o.fname)),"")}}function vt(e,r){if(1&e&&(t.j41(0,"div"),t.nrm(1,"iframe",5),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.Y8G("src",n.cashierUrl(),t.f$h)}}function It(e,r){1&e&&(t.j41(0,"div",6)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"h4"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&e&&(t.R7$(2),t.JRh(t.bMT(3,2,"ACCOUNT.NOLINK_MESSAGE")),t.R7$(3),t.JRh(t.bMT(6,4,"ACCOUNT.NOLINK_TIP")))}let Ft=(()=>{var e;class r{constructor(o,s,i,a,c,d,p){this.authService=o,this.sanitizer=s,this.userService=i,this.titleService=a,this.translate=c,this.trackingService=d,this.gaService=p,this.cashierVisibleEventSent=!1,this.user=this.userService.user,this.cashierUrl=(0,t.EWP)(()=>{const _=this.authService.cashierUrlSignal();return _?this.sanitizer.bypassSecurityTrustResourceUrl(this.authService.addExtraInfoToIframeUrl(_)):null}),this.translate.stream("ACCOUNT.BANK.TITLE").pipe((0,k.pQ)()).subscribe(_=>{this.titleService.setTitle(`Cashier / ${_}`)}),(0,t.QZP)(()=>{null!==this.cashierUrl()&&!this.cashierVisibleEventSent&&(this.cashierVisibleEventSent=!0,this.gaService.event("cashier_old",void 0,void 0,void 0,void 0,{cashier_visible:!0,...this.trackingService.getAffiliateOptions()}))})}ngOnDestroy(){this.cashierVisibleEventSent&&this.gaService.event("cashier_old",void 0,void 0,void 0,void 0,{cashier_visible:!1,...this.trackingService.getAffiliateOptions()})}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(I.u),t.rXU(Z.up),t.rXU(v.D),t.rXU(M.E),t.rXU(f.c$),t.rXU(w.N),t.rXU(x.p))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-cashier"]],decls:5,vars:3,consts:[[1,"container-lg","px-0","pt-3","pb-3","pb-lg-5"],["class","mb-4 px-3 px-md-0",4,"ngIf"],[4,"ngIf","ngIfElse"],["noUrl",""],[1,"mb-4","px-3","px-md-0"],["width","100%","height","750px","title","cashier",3,"src"],[1,"container","text-center","py-5"]],template:function(o,s){if(1&o&&(t.j41(0,"main",0),t.DNE(1,bt,3,6,"h2",1),t.DNE(2,vt,2,1,"div",2),t.k0s(),t.DNE(3,It,7,6,"ng-template",null,3,t.C5r)),2&o){const i=t.sdS(4);t.R7$(1),t.Y8G("ngIf",s.user()),t.R7$(1),t.Y8G("ngIf",s.cashierUrl())("ngIfElse",i)}},dependencies:[u.bT,f.D9]}),r})();var l=h(4456),H=h(9991),F=h(4285),P=h(9902),O=h(9049);const St=function(e){return{"mb-1":e}};function Ot(e,r){if(1&e&&(t.j41(0,"p",25),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("ngClass",t.eq3(2,St,n.promo.wageringRemaining)),t.R7$(1),t.SpI(" ",n.promo.details.split("\n")[0],"")}}function Nt(e,r){if(1&e&&(t.j41(0,"p",20)(1,"span",21),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",26),t.EFF(5),t.nI1(6,"currency"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.SpI("",t.bMT(3,2,"ACCOUNT.PROMO.WAGER_REMAINING")," "),t.R7$(3),t.JRh(t.i5U(6,4,n.promo.wageringRemaining,n.userCurrency()))}}function At(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.PROMO.CLAIM_BTN")))}function kt(e,r){if(1&e){const n=t.RV6();t.j41(0,"button",27),t.bIt("click",function(){t.eBV(n);const s=t.XpG(2);return t.Njj(s.claimPromo())}),t.DNE(1,At,3,3,"span",28),t.k0s()}if(2&e){t.XpG();const n=t.sdS(20),o=t.XpG();t.Y8G("disabled",o.isLoading),t.R7$(1),t.Y8G("ngIf",!o.isLoading)("ngIfElse",n)}}function yt(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.PROMO.UNCLAIM_BTN")))}function Gt(e,r){if(1&e){const n=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){t.eBV(n);const s=t.XpG(2);return t.Njj(s.unclaimPromo())}),t.DNE(1,yt,3,3,"span",28),t.k0s()}if(2&e){t.XpG();const n=t.sdS(20),o=t.XpG();t.Y8G("disabled",o.isLoading),t.R7$(1),t.Y8G("ngIf",!o.isLoading)("ngIfElse",n)}}function Ut(e,r){1&e&&(t.nrm(0,"span",30),t.j41(1,"span",31),t.EFF(2,"Loa
3ding..."),t.k0s())}function Mt(e,r){if(1&e&&t.nrm(0,"div",32),2&e){const n=t.XpG(2);t.Y8G("innerHTML",n.promo.details,t.npT)}}const wt=function(e){return{"mb-3":e}};function xt(e,r){if(1&e&&(t.j41(0,"p",34),t.EFF(1),t.k0s()),2&e){const n=r.$implicit;t.Y8G("ngClass",t.eq3(2,wt,!n.length)),t.R7$(1),t.SpI(" ",n,"")}}function Pt(e,r){if(1&e&&(t.qex(0),t.DNE(1,xt,2,4,"p",33),t.bVm()),2&e){const n=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",n.promo.details.split("\n").slice(1))}}const tt=function(e,r,n){return{"text-bg-primary":e,"text-bg-success":r,"text-bg-danger":n}};function Dt(e,r){if(1&e&&(t.j41(0,"p",20)(1,"span",21),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",22),t.EFF(5),t.nI1(6,"currency"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.SpI("",t.bMT(3,3,"ACCOUNT.PROMO.WAGER_REMAINING"),": "),t.R7$(2),t.Y8G("ngClass",t.sMw(8,tt,"eligible"===n.promo.state,"active"===n.promo.state,"claimed"===n.promo.state)),t.R7$(1),t.JRh(t.i5U(6,5,n.promo.wageringRemaining,n.userCurrency()))}}function Lt(e,r){1&e&&(t.j41(0,"div",35),t.nrm(1,"i",36),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&e&&(t.R7$(3),t.JRh(t.bMT(4,1,"ACCOUNT.PROMO.FREE_SPINS_WARNING")))}function $t(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",37),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"a",38),t.bIt("click",function(){t.eBV(n);const s=t.XpG(2);return t.Njj(s.openChat())}),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.EFF(6),t.nI1(7,"translate"),t.k0s()}2&e&&(t.R7$(1),t.SpI(" ",t.bMT(2,3,"ACCOUNT.PROMO.ACTIVE_INFO1")," "),t.R7$(3),t.JRh(t.bMT(5,5,"ACCOUNT.INFO.PERSONAL.SUPPORT_LINK")),t.R7$(2),t.SpI(" ",t.bMT(7,7,"ACCOUNT.PROMO.ACTIVE_INFO2")," "))}const jt=function(e){return{"active-promo border-success-subtle":e}},Yt=function(e){return{"promo-header pb-2":e}},Bt=function(e){return{"opacity-50":e}},Ht=function(e){return{"rotate-180":e}};function Xt(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"h2",3),t.EFF(3),t.k0s(),t.j41(4,"div",4),t.nrm(5,"img",5),t.k0s()(),t.j41(6,"div",6)(7,"div",7),t.DNE(8,Ot,2,4,"p",8),t.DNE(9,Nt,7,7,"p",9),t.j41(10,"a",10),t.bIt("click",function(){t.eBV(n);const s=t.XpG();
3return t.Njj(s.showDetails=!s.showDetails)}),t.EFF(11),t.nI1(12,"translate"),t.nI1(13,"translate"),t.qSk(),t.j41(14,"svg",11),t.nrm(15,"path",12),t.k0s()()(),t.joV(),t.j41(16,"div",13),t.DNE(17,kt,2,3,"button",14),t.DNE(18,Gt,2,3,"button",15),t.DNE(19,Ut,3,0,"ng-template",null,16,t.C5r),t.k0s(),t.j41(21,"div",17),t.DNE(22,Mt,1,1,"div",18),t.DNE(23,Pt,2,1,"ng-container",19),t.j41(24,"p",20)(25,"span",21),t.EFF(26),t.nI1(27,"translate"),t.k0s(),t.j41(28,"span",22),t.EFF(29),t.nI1(30,"translate"),t.k0s()(),t.DNE(31,Dt,7,12,"p",9),t.DNE(32,Lt,5,3,"div",23),t.k0s()(),t.DNE(33,$t,8,9,"div",24),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("ngClass",t.eq3(30,jt,"active"===n.promo.state)),t.R7$(1),t.Y8G("ngClass",t.eq3(32,Yt,n.showDetails)),t.R7$(2),t.JRh(n.promo.name),t.R7$(2),t.Y8G("src",n.showDetails?"assets/icons/promotions_not_cut.svg":"assets/icons/promotions_cut.svg",t.B4B)("ngClass",t.eq3(34,Bt,!n.showDetails)),t.R7$(3),t.Y8G("ngIf",!n.isHtmlContent(n.promo.details)),t.R7$(1),t.Y8G("ngIf","active"===n.promo.state&&n.promo.wageringRemaining),t.R7$(1),t.BMQ("href","#detailsCollapse"+n.promo.id,t.B4B)("aria-controls","detailsCollapse"+n.promo.id),t.R7$(1),t.SpI(" ",n.showDetails?t.bMT(12,22,"ACCOUNT.PROMO.HIDE_DETAILS"):t.bMT(13,24,"ACCOUNT.PROMO.SHOW_DETAILS")," "),t.R7$(3),t.Y8G("ngClass",t.eq3(36,Ht,n.showDetails)),t.R7$(3),t.Y8G("ngIf","eligible"===n.promo.state),t.R7$(1),t.Y8G("ngIf","claimed"===n.promo.state),t.R7$(3),t.Mz_("id","detailsCollapse",n.promo.id,""),t.R7$(1),t.Y8G("ngIf",n.isHtmlContent(n.promo.details)),t.R7$(1),t.Y8G("ngIf",!n.isHtmlContent(n.promo.details)),t.R7$(3),t.SpI("",t.bMT(27,26,"ACCOUNT.PROMO.STATUS_LABEL")," "),t.R7$(2),t.Y8G("ngClass",t.sMw(38,tt,"eligible"===n.promo.state,"active"===n.promo.state,"claimed"===n.promo.state)),t.R7$(1),t.JRh(t.bMT(30,28,"ACCOUNT.PROMO.STATUS_"+n.promo.state.toUpperCase())),t.R7$(2),t.Y8G("ngIf",n.promo.wageringRemaining),t.R7$(1),t.Y8G("ngIf",n.promo.name.toLowerCase().includes("spins")),t.R7$(1),t.Y8G("ngIf","active"===n.promo.state)}}let Jt=(()=>{var e;class r{constructor(o,s,i,a,c,d){this.promoService=o,this.toastr=s,this.translate=i,this.chatService=a,this.userService=c,this.authService=d,this.showDetail
3s=!1,this.isLoading=!1,this.userCurrency=this.userService.currency}claimPromo(){this.promo&&(this.isLoading=!0,this.promoService.claimPromotion(`${this.promo.id}`).subscribe({next:o=>{this.isLoading=!1,this.promoService.fetchUserPromos(),window.scrollTo(0,0)},error:o=>{var s;switch(this.isLoading=!1,o.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(s=o.message)&&void 0!==s?s:"ACCOUNT.PROMO.TOASTR_FAILED_TIP"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(o.message,this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}}))}unclaimPromo(){this.promo&&(this.isLoading=!0,this.promoService.unclaimPromotion().subscribe({next:o=>{this.isLoading=!1,this.promoService.fetchUserPromos()},error:o=>{var s;switch(this.isLoading=!1,o.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(s=o.message)&&void 0!==s?s:"ACCOUNT.PROMO.TOASTR_FAILED_TIP"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(o.message,this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}}))}openChat(){this.chatService.toggleChat(!0)}isHtmlContent(o){return o.startsWith("<")}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(H.B),t.rXU(F.tw),t.rXU(f.c$),t.rXU(O.m),t.rXU(v.D),t.rXU(I.u))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-promo-card"]],inputs:{promo:"promo"},decls:1,vars:1,consts:[["class","card mb-3",3,"ngClass",4,"ngIf"],[1,"card","mb-3",3,"ngClass"],[1,"card-header","d-flex","align-items-center","pb-0",3,"ngClass"],[1,"w-75","card-title","mb-0","fw-bold","h5"],[1,"w-25","d-flex","justify-content-end","align-self-end"],["alt","promotion gift image","width","100%",3,"src","ngClass"],[1,"card-body","row"],[1,"col-12","col-sm-9","my-3"],["class","card-text fw-bold",3,"ngClass",4,"ngIf"],["class","card-text d-flex flex-wrap flex-sm-nowrap align-items-center",4,"ngIf"],["data-bs-toggle","collapse","role","button","aria-expanded","false",1,"link-primary","fw-bold","text-decoration-none",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-chevron-down","transition",3,"ngClass"],["fill-rule","evenodd","d","M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"],[1,"col-12","col-sm-3","d-flex","align-items-center"],["class","btn btn-primary w-100","type","button",3,"disabled","click",4,"ngIf"],["class","btn btn-outline-danger w-100",3,"disabled","click",4,"ngIf"],["loadingSpinner",""],[1,"collapse","mt-3","mt-sm-0",3,"id"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"card-text","d-flex","flex-wrap","flex-sm-nowrap","align-items-center"],[1,"text-darker","m-end-1"],[1,"badge",3,"ngClass"],["class","alert alert-primary d-block d-sm-flex align-items-sm-center",4,"ngIf"],["class","card-footer alert alert-success border-success-subtle mb-0",4,"ngIf"],[1,"card-text","fw-bold",3,"ngClass"],[1,"badge","text-bg-success"],["type","button",1,"btn","btn-primary","w-100",3,"disabled","click"],[4,"ngIf","ngIfElse"],[1,"btn","btn-outline-danger","w-100",3,"disabled","click"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"],[3,"innerHTML"],["class","card-text text-darker mb-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"card-text","text-darker","mb-0",3,"ngClass"],[1,"alert","alert-primary","d-block","d-sm-flex","align-items-sm-center"],[1,"bi","bi-info-circle-fill","fs-5","m-end-2"],[1,"card-footer","alert","alert-success","border-success-subtle","mb-0"],["role","button",1,"link-success","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"]],template:function(o,s){1&o&&t.DNE(0,Xt,34,42,"div",0),2&o&&t.Y8G("ngIf",s.promo)},dependencies:[u.YU,u.Sq,u.bT,u.oe,f.D9],styles:[".transition[_ngcontent-%COMP%]{transition:transform .3s ease}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}.card[_ngcontent-%COMP%]{border-color:var(--bs-primary)}.promo-header[_ngcontent-%COMP%]{color:var(--bs-primary-text-emphasis);background-color:tint-color(var(--bs-primary),40%);border-color:var(--bs-primary)}.active-promo[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity));color:#fff;box-shadow:none;border-color:inherit}img[_ngcontent-%COMP%]{max-width:75px;transition:opacity .3s ease,padding-bottom .3s ease}"]}),r})();function Vt(e,r){1&e&&(t.j41(0,"div",6)(1,"div",7)(2,"span",8),t.EFF(3,"Loading..."),t.k0s()()())}function Wt(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.PROMO.CODE_SUBMIT_BTN")))}function qt(e,r){1&e&&(t.nrm(0,"span",23),t.j41(1,"span",24),t.EFF(2,"Loa
3ding..."),t.k0s())}function Kt(e,r){1&e&&(t.j41(0,"p",15),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.PROMO.CODE_SUBMIT_INVALID")))}function Qt(e,r){1&e&&(t.j41(0,"p",15),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"ACCOUNT.PROMO.CODE_SUBMIT_ERROR"),""))}function zt(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.PROMO.WARNING")))}const Zt=function(e){return{promoName:e}};function te(e,r){if(1&e&&(t.j41(0,"a",31),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&e){const n=t.XpG(4);let o;t.R7$(1),t.Lme(" ",t.i5U(2,2,"ACCOUNT.PROMO.WARNING_CLAIMED",t.eq3(7,Zt,null==(o=n.activeOrClaimedPromotion())?null:o.name))," ",t.bMT(3,5,"ACCOUNT.PROMO.WARNING_CLAIMED_TIP"),"")}}function ee(e,r){if(1&e&&(t.j41(0,"div",28),t.nrm(1,"i",29),t.DNE(2,zt,3,3,"span",4),t.DNE(3,te,4,9,"a",30),t.k0s()),2&e){const n=t.XpG(3);t.R7$(2),t.Y8G("ngIf",!n.activeOrClaimedPromotion()),t.R7$(1),t.Y8G("ngIf",n.activeOrClaimedPromotion())}}function ne(e,r){if(1&e&&(t.j41(0,"div"),t.nrm(1,"app-promo-card",32),t.k0s()),2&e){const n=r.$implicit;t.R7$(1),t.Y8G("promo",n)}}function oe(e,r){if(1&e&&(t.j41(0,"div",25),t.DNE(1,ee,4,2,"div",26),t.DNE(2,ne,2,1,"div",27),t.k0s()),2&e){const n=t.XpG(2);let o;t.R7$(1),t.Y8G("ngIf",!n.activeOrClaimedPromotion()||"active"!==(null==(o=n.activeOrClaimedPromotion())?null:o.state)),t.R7$(1),t.Y8G("ngForOf",n.promotions())}}const et=function(e){return{"mb-4":e}},se=function(e){return{"is-invalid":e}};function re(e,r){if(1&e){const n=t.RV6();t.j41(0,"section")(1,"div",9)(2,"h3",10),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",11),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",12)(9,"div",13)(10,"label",14),t.EFF(11),t.nI1(12,"translate"),t.j41(13,"span",15),t.EFF(14,"*"),t.k0s()(),t.j41(15,"input",16),t.bIt("input",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.onPromoCodeInput())}),t.k0s()(),t.j41(16,"div",17)(17,"button",18),t.bIt("click",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.submitPromoCode())}),t.DNE(18,Wt,3,3,"span",19),t.DNE(19,qt,3,0,"ng-template",null,20,t.C5r),t.k0s()()(),t.DNE(21,Kt,3,3,"p",21),t.DNE(22,Qt,3,3,"p",21),t.k0s(),t.DNE(23,oe,3,2,"div",22),t.k0s()}if(2&e){const n=t.sdS(20),o=t.XpG(),s=t.sdS(7);let i;t.R7$(3),t.JRh(t.bMT(4,14,"ACCOUNT.PROMO.CODE_TITLE")),t.R7$(3),t.JRh(t.bMT(7,16,"ACCOUNT.PROMO.CODE_TODO")),t.R7$(3),t.Y8G("ngClass",t.eq3(20,et,!o.promoCode.dirty||!o.promoCode.invalid)),t.R7$(2),t.SpI("",t.bMT(12,18,"ACCOUNT.PROMO.CODE_LABEL")," "),t.R7$(4),t.Y8G("formControl",o.promoCode)("ngClass",t.eq3(22,se,o.promoCode.invalid&&o.promoCode.dirty)),t.R7$(1),t.Y8G("ngClass",t.eq3(24,et,!o.promoCode.dirty||!o.promoCode.invalid)),t.R7$(1),t.Y8G("disabled",o.promoCode.invalid||o.isCodeLoading),t.R7$(1),t.Y8G("ngIf",!o.isCodeLoading)("ngIfElse",n),t.R7$(3),t.Y8G("ngIf",o.promoCode.dirty&&o.promoCode.invalid&&!(null!=o.promoCode.errors&&o.promoCode.errors.validationErrorFromServer)),t.R7$(1),t.Y8G("ngIf",null==o.promoCode.errors?null:o.promoCode.errors.validationErrorFromServer),t.R7$(1),t.Y8G("ngIf",null==(i=o.promotions())?null:i.length)("ngIfElse",s)}}function ie(e,r){1&e&&(t.j41(0,"div",6)(1,"h4"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",33),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&e&&(t.R7$(2),t.JRh(t.bMT(3,2,"PROMOTIONS.EMPTY.MESSAGE")),t.R7$(3),t.JRh(t.bMT(6,4,"PROMOTIONS.EMPTY.TIP")))}let ae=(()=>{var e;class r{constructor(o,s,i,a,c,d,p){this.translate=o,this.titleService=s,this.trackingService=i,this.gaService=a,this.promoService=c,this.toastr=d,this.authService=p,this.promotions=this.promoService.promos,this.activeOrClaimedPromotion=(0,t.EWP)(()=>{const _=this.promotions();return _?_.find(T=>"eligible"!==T.state):null}),this.promoCode=new l.MJ("",[l.k0.required,l.k0.minLength(3),l.k0.pattern(/^[A-Z0-9]+$/)]),this.isCodeLoading=!1,this.translate.stream("PROMOTIONS.TITLE").pipe((0,k.pQ)()).subscribe(_=>{this.titleService.setTitle(`Cashier / ${_}`)}),this.gaService.event("cashier_promotions",void 0,void 0,void 0,void 0,{cashier_visible:!0,...this.trackingService.getAffiliateOptions()})}ngOnInit(){this.promoService.fetchUserPromos()}submitPromoCode(){this.promoCode.valid&&this.promoCode.value&&(this.isCodeLoading=!0,this.promoService.applyPromoCode(this.promoCode.value).subscribe({next:o=>{this.isCodeLoading=!1,this.promoService.fetchUserPromos(),this.promoCode.reset()},error:o=>{var s;switch(this.isCodeLoading=!1,o.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(s=o.message)&&void 0!==s?s:"ACCOUNT.PROMO.TOASTR_FAILED_TIP"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(o.message,this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"}),this.promoCode.setErrors({validationErrorFromServer:!0})}}}))}onPromoCodeInput(){var o;const s=(null===(o=this.promoCode.value)||void 0===o?void 0:o.toUpperCase())||"";this.promoCode.setValue(s,{emitEvent:!1})}
3ngOnDestroy(){this.gaService.event("cashier_promotions",void 0,void 0,void 0,void 0,{cashier_visible:!1,...this.trackingService.getAffiliateOptions()})}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(f.c$),t.rXU(M.E),t.rXU(w.N),t.rXU(x.p),t.rXU(H.B),t.rXU(F.tw),t.rXU(I.u))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-user-promotions"]],decls:8,vars:7,consts:[[1,"container-fluid","px-0","pb-3","pb-lg-5"],[3,"isProvider","title","imgSrc"],[1,"container-lg","mt-3","px-2","px-md-3"],["class","container-lg text-center pt-5",4,"ngIf"],[4,"ngIf"],["noPromo",""],[1,"container-lg","text-center","pt-5"],["role","status",1,"spinner-border"],[1,"visually-hidden"],[1,"p-3","py-md-4","mb-3","mb-md-5","bg-darker","rounded-2"],[1,"h4","fw-bold"],[1,"mb-1","text-muted"],[1,"row"],[1,"col-12","col-sm-6","col-md-8","col-lg-10","mb-2","mt-3",3,"ngClass"],["for","promoCodeInput",1,"form-label","mb-1"],[1,"text-danger"],["type","text","id","promoCodeInput","placeholder","Promo Code","required","",1,"form-control",3,"formControl","ngClass","input"],[1,"col-12","col-sm-6","col-md-4","col-lg-2","d-flex","align-items-end","mb-2",3,"ngClass"],["type","button",1,"col-3","btn","btn-primary","w-100",3,"disabled","click"],[4,"ngIf","ngIfElse"],["loadingSpinner",""],["class","text-danger",4,"ngIf"],["class","bg-darker rounded-2 p-3",4,"ngIf","ngIfElse"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"],[1,"bg-darker","rounded-2","p-3"],["class","alert alert-primary d-block d-sm-flex align-items-sm-center",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"alert","alert-primary","d-block","d-sm-flex","align-items-sm-center"],[1,"bi","bi-info-circle-fill","fs-5","m-end-2"],["routerLink","/account/banking","class","text-decoration-none",4,"ngIf"],["routerLink","/account/banking",1,"text-decoration-none"],[3,"promo"],[1,"h3"]],template:function(o,s){1&o&&(t.j41(0,"main",0),t.nrm(1,"app-topbar",1),t.nI1(2,"translate"),t.j41(3,"div",2),t.DNE(4,Vt,4,0,"div",3),t.DNE(5,re,24,26,"section",4),t.k0s(),t.DNE(6,ie,7,6,"ng-template",null,5,t.C5r),t.k0s()),2&o&&(t.R
37$(1),t.Y8G("isProvider",!1)("title",t.bMT(2,5,"ACCOUNT.PROMO.TITLE"))("imgSrc","assets/icons/promotions_big.svg"),t.R7$(3),t.Y8G("ngIf",!s.promotions()),t.R7$(1),t.Y8G("ngIf",s.promotions()))},dependencies:[u.YU,u.Sq,u.bT,R.Wk,l.me,l.BC,l.YS,l.l_,P.G,Jt,f.D9]}),r})();var nt=h(1567);const ot=function(){return["/account/profile/info"]},st=function(){return["/account/profile/address"]},rt=function(){return["/account/profile/account"]},it=function(){return["/account/profile/email-verification"]},at=function(){return["/account/profile/security"]},lt=function(){return["/account/profile/preferences"]},ct=function(){return["/account/profile/self-exclusion"]};let le=(()=>{var e;class r{constructor(o,s,i,a,c){this.translate=o,this.titleService=s,this.router=i,this.trackingService=a,this.gaService=c,this.selectedSectionTitle=this.router.url.split("/")[3].replace("-","_").toUpperCase(),this.router.events.pipe((0,nt.p)(d=>d instanceof R.wF),(0,k.pQ)()).subscribe(()=>{this.selectedSectionTitle=this.router.url.split("/")[3].toUpperCase()}),this.translate.stream("ACCOUNT.INFO.TITLE").pipe((0,k.pQ)()).subscribe(d=>{this.titleService.setTitle(`Cashier / ${d}`)}),this.gaService.event("cashier_profile",void 0,void 0,void 0,void 0,{cashier_visible:!0,...this.trackingService.getAffiliateOptions()})}ngOnDestroy(){this.gaService.event("cashier_profile",void 0,void 0,void 0,void 0,{cashier_visible:!1,...this.trackingService.getAffiliateOptions()})}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(f.c$),t.rXU(M.E),t.rXU(R.Ix),t.rXU(w.N),t.rXU(x.p))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-user-details"]],decls:75,vars:78,consts:[[1,"container-fluid","px-0","pb-3","pb-lg-5"],[3,"isProvider","title","imgSrc"],[1,"container-lg","mt-3","px-2","px-md-3"],[1,"row","gx-4","gy-2"],["id","profileNavDropdownBtn",1,"d-md-none"],[1,"nav"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu"],["routerLinkActive","active",1,"dropdown-item",3,"routerLink"],[1,"d-none","d-md-block","col-md-3"],[1,"bg-darker","rounded-2","py-2"],["id","profile-tab","role","tablist","aria-orientation","vertical",1,"nav","flex-column","nav-underline"],["routerLinkActive","active",1,"nav-link",3,"routerLink"],[1,"col-12","col-md-9"],[1,"bg-darker","rounded-2","p-0"],["id","profile-tabContent",1,"tab-content","pb-3"]],template:function(o,s){1&o&&(t.j41(0,"main",0),t.nrm(1,"app-topbar",1),t.nI1(2,"translate"),t.j41(3,"div",2)(4,"div",3)(5,"div",4)(6,"nav",5)(7,"div",6)(8,"button",7),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"ul",8)(12,"li")(13,"a",9),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"li")(17,"a",9),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"li")(21,"a",9),t.EFF(22),t.nI1(23,"translate"),t.k0s()(),t.j41(24,"li")(25,"a",9),t.EFF(26),t.nI1(27,"translate"),t.k0s()(),t.j41(28,"li")(29,"a",9),t.EFF(30),t.nI1(31,"translate"),t.k0s()(),t.j41(32,"li")(33,"a",9),t.EFF(34),t.nI1(35,"translate"),t.k0s()(),t.j41(36,"li")(37,"a",9),t.EFF(38),t.nI1(39,"translate"),t.k0s()()()()()(),t.j41(40,"aside",10)(41,"div",11)(42,"nav",12)(43,"li")(44,"a",13),t.EFF(45),t.nI1(46,"translate"),t.k0s()(),t.j41(47,"li")(48,"a",13),t.EFF(49),t.nI1(50,"translate"),t.k0s()(),t.j41(51,"li")(52,"a",13),t.EFF(53),t.nI1(54,"translate"),t.k0s()(),t.j41(55,"li")(56,"a",13),t.EFF(57),t.nI1(58,"translate"),t.k0s()(),t.j41(59,"li")(60,"a",13),t.EFF(61),t.nI1(62,"translate"),t.k0s()(),t.j41(63,"li")(64,"a",13),t.EFF(65),t.nI1(66,"translate"),t.k0s()(),t.j41(67,"li")(68,"a",13),t.EFF(69),t.nI1(70,"translate"),t.k0s()()()()(),t.j41(71,"main",14)(72,"div",15)(73,"div",16),t.nrm(74,"router-outlet"),t.k0s()()()()()()),2&o&&(t.R
37$(1),t.Y8G("isProvider",!1)("title",t.bMT(2,32,"ACCOUNT.INFO.TITLE"))("imgSrc","assets/icons/profile_big.svg"),t.R7$(8),t.SpI(" ",t.bMT(10,34,"ACCOUNT.INFO."+("INFO"===s.selectedSectionTitle?"PERSONAL":s.selectedSectionTitle)+".TITLE")," "),t.R7$(4),t.Y8G("routerLink",t.lJ4(64,ot)),t.R7$(1),t.JRh(t.bMT(15,36,"ACCOUNT.INFO.PERSONAL.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(65,st)),t.R7$(1),t.JRh(t.bMT(19,38,"ACCOUNT.INFO.ADDRESS.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(66,rt)),t.R7$(1),t.JRh(t.bMT(23,40,"ACCOUNT.INFO.ACCOUNT.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(67,it)),t.R7$(1),t.JRh(t.bMT(27,42,"ACCOUNT.INFO.EMAIL_VERIFICATION.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(68,at)),t.R7$(1),t.JRh(t.bMT(31,44,"ACCOUNT.INFO.SECURITY.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(69,lt)),t.R7$(1),t.JRh(t.bMT(35,46,"ACCOUNT.INFO.PREFERENCES.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(70,ct)),t.R7$(1),t.JRh(t.bMT(39,48,"ACCOUNT.INFO.SELF_EXCLUSION.TITLE")),t.R7$(6),t.Y8G("routerLink",t.lJ4(71,ot)),t.R7$(1),t.JRh(t.bMT(46,50,"ACCOUNT.INFO.PERSONAL.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(72,st)),t.R7$(1),t.JRh(t.bMT(50,52,"ACCOUNT.INFO.ADDRESS.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(73,rt)),t.R7$(1),t.JRh(t.bMT(54,54,"ACCOUNT.INFO.ACCOUNT.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(74,it)),t.R7$(1),t.JRh(t.bMT(58,56,"ACCOUNT.INFO.EMAIL_VERIFICATION.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(75,at)),t.R7$(1),t.JRh(t.bMT(62,58,"ACCOUNT.INFO.SECURITY.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(76,lt)),t.R7$(1),t.JRh(t.bMT(66,60,"ACCOUNT.INFO.PREFERENCES.TITLE")),t.R7$(3),t.Y8G("routerLink",t.lJ4(77,ct)),t.R7$(1),t.JRh(t.bMT(70,62,"ACCOUNT.INFO.SELF_EXCLUSION.TITLE")))},dependencies:[R.n3,R.Wk,R.wQ,P.G,f.D9]}),r})();function ce(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.SUBMIT_BTN")))}function de(e,r){1&e&&(t.nrm(0,"span",20),t.j41(1,"span",21),t.EFF(2,"Loading..."),t.k0s())}function me(e,r){if(1&e){const n=t.RV6();t.j41(0,"form",6),t.bIt("ngSubmit",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.submitForm())}),t.j41(1,"div",7),t.nrm(2,"input",8),t.j41(3,"label",9),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",7),t.nrm(7,"input",10),t.j41(8,"label",11),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",7),t.nrm(12,"input",12),t.j41(13,"label",13),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"div",14),t.nrm(17,"input",15),t.j41(18,"label",16),t.EFF(19),t.nI1(20,"translate"),t.k0s()(),t.j41(21,"button",17),t.DNE(22,ce,3,3,"span",18),t.DNE(23,de,3,0,"ng-template",null,19,t.C5r),t.k0s()()}if(2&e){const n=t.sdS(24),o=t.XpG();let s;t.Y8G("formGroup",o.prefsForm),t.R7$(4),t.JRh(t.bMT(5,8,"ACCOUNT.INFO.PREFERENCES.EMAIL_LABEL")),t.R7$(5),t.JRh(t.bMT(10,10,"ACCOUNT.INFO.PREFERENCES.PHONE_LABEL")),t.R7$(5),t.JRh(t.bMT(15,12,"ACCOUNT.INFO.PREFERENCES.SNAIL_LABEL")),t.R7$(5),t.JRh(t.bMT(20,14,"ACCOUNT.INFO.PREFERENCES.THIRD_LABEL")),t.R7$(2),t.Y8G("disabled",o.prefsForm.controls.emailPreference.value===(null==(s=o.user())?null:s.allowEmail)&&o.prefsForm.controls.phonePreference.value===(null==(s=o.user())?null:s.allowPhone)&&o.prefsForm.controls.snailPreference.value===(null==(s=o.user())?null:s.allowSnail)&&o.prefsForm.controls.thirdPreference.value===(null==(s=o.user())?null:s.allowThird)||o.isLoading),t.R7$(1),t.Y8G("ngIf",!o.isLoading)("ngIfElse",n)}}let pe=(()=>{var e;class r{constructor(o,s,i,a,c,d){this.userService=o,this.formBuilder=s,this.toastr=i,this.translate=a,this.chatService=c,this.authService=d,this.user=this.userService.user,this.formSubmit=!1,this.isLoading=!1,this.prefsForm=this.formBuilder.group({emailPreference:[!0],phonePreference:[!0],snailPreference:[!0],thirdPreference:[!0]}),(0,t.QZP)(()=>{const p=this.user();var _,T,m,C;p&&this.prefsForm.patchValue({emailPreference:null===(_=p.allowEmail)||void 0===_||_,phonePreference:null===(T=p.allowPhone)||void 0===T||T,snailPreference:null===(m=p.allowSnail)||void 0===m||m,thirdPreference:null===(C=p.allowThird)||void 0===C||C}),this.formSubmit=!1})}submitForm(){var o,s,i,a;if(this.formSubmit=!0,this.prefsForm.valid&&(this.prefsForm.controls.emailPreference.value!==(null===(o=this.user())||void 0===o?void 0:o.allowEmail)||this.prefsForm.controls.phonePreference.value!==(null===(s=this.user())||void 0===s?void 0:s.allowPhone)||this.prefsForm.controls.snailPreference.value!==(null===(i=this.user())||void 0===i?void 0:i.allowSnail)||this.prefsForm.controls.thirdPreference.value!==(null===(a=this.user())||void 0===a?void 0:a.allowThird))){this.isLoading=!0;const c={allowEmail:this.prefsForm.value.emailPreference,allowPhone:this.prefsForm.value.phonePreference,allowSnail:this.prefsForm.value.snailPreference,allowThird:this.prefsForm.value.thirdPreference};this.userService.updateUserInfo(c).subscribe({next:d=>{if(this.user()){this.isLoading=!1,this.toastr.success(this.translate.instant("ACCOUNT.INFO.TOASTR_SUCCESS_H1"),this.translate.instant("ACCOUNT.INFO.TOASTR_SUCCESS_H1_2"),{toastClass:"ngx-toastr lobbyless-toast"});const p={...this.user()};p.allowEmail=c.allowEmail,p.allowPhone=c.allowPhone,p.allowSnail=c.allowSnail,p.allowThird=c.allowThird,this.userService.updateUser(p)}},error:d=>{var p;switch(this.isLoading=!1,console.error(d),d.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(p=d.message)&&void 0!==p?p:"SYSTEM.ERRORS.GENERAL_MESSAGE"),this.translate.instant("ACCOUNT.INFO.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(this.translate.instant("SYSTEM.ERRORS.GENERAL_MESSAGE"),this.translate.instant("ACCOUNT.INFO.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}})}}openChat(){this.chatService.toggleChat(!0)}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(v.D),t.rXU(l.ze),t.rXU(F.tw),t.rXU(f.c$),t.rXU(O.m),t.rXU(I.u))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-preferences"]],decls:15,vars:13,consts:[[1,"p-2","p-md-3"],[1,"h3","fw-bold","mb-4"],[1,"fw-bold","mb-3"],[1,"text-darker","mb-4"],["role","button",1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"],["class","needs-validation","novalidate","",3,"formGroup","ngSubmit",4,"ngIf"],["novalidate","",1,"needs-validation",3,"formGroup","ngSubmit"],[1,"form-check","form-switch","mb-3"],["type","checkbox","role","switch","id","emailPreferenceSwitch","formControlName","emailPreference",1,"form-check-input"],["for","emailPreferenceSwitch",1,"form-check-label"],["type","checkbox","role","switch","id","phonePreferenceSwitch","formControlName","phonePreference",1,"form-check-input"],["for","phonePreferenceSwitch",1,"form-check-label"],["type","checkbox","role","switch","id","snailPreferenceSwitch","formControlName","snailPreference",1,"form-check-input"],["for","snailPreferenceSwitch",1,"form-check-label"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","thirdPreferenceSwitch","formControlName","thirdPreference",1,"form-check-input"],["for","thirdPreferenceSwitch",1,"form-check-label"],["type","submit",1,"btn","btn-success","btn-lg","w-100","mt-4",3,"disabled"],[4,"ngIf","ngIfElse"],["loadingSpinner",""],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"]],template:function(o,s){1&o&&(t.j41(0,"section",0)(1,"h1",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"h5",2),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",3),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"a",4),t.bIt("click",function(){return s.openChat()}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.EFF(13,". "),t.k0s(),t.DNE(14,me,25,16,"form",5),t.k0s()),2&o&&(t.R
37$(2),t.JRh(t.bMT(3,5,"ACCOUNT.INFO.PREFERENCES.H1")),t.R7$(3),t.JRh(t.bMT(6,7,"ACCOUNT.INFO.PREFERENCES.REQUEST")),t.R7$(3),t.SpI(" ",t.bMT(9,9,"ACCOUNT.INFO.PREFERENCES.REQUEST_TIP")," "),t.R7$(3),t.JRh(t.bMT(12,11,"ACCOUNT.INFO.PERSONAL.SUPPORT_LINK")),t.R7$(3),t.Y8G("ngIf",s.user()))},dependencies:[u.bT,l.qT,l.Zm,l.BC,l.cb,l.j4,l.JD,f.D9],styles:["html[dir=rtl][_nghost-%COMP%] .form-switch[_ngcontent-%COMP%], html[dir=rtl] [_nghost-%COMP%] .form-switch[_ngcontent-%COMP%]{padding-right:2.5em;padding-left:0;margin-inline-end:0;margin-inline-start:auto}html[dir=rtl][_nghost-%COMP%] .form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%], html[dir=rtl] [_nghost-%COMP%] .form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]{float:right;margin-right:-2.5em;margin-left:0;background-position:right center}html[dir=rtl][_nghost-%COMP%] .form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:checked, html[dir=rtl] [_nghost-%COMP%] .form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:checked{background-position:left center}"]}),r})();var S=h(9443),D=h(3696);function ue(e,r){if(1&e&&t.nrm(0,"input",43),2&e){const n=t.XpG(3);t.Y8G("value",n.userForm.controls.userBirthYear.value)}}function _e(e,r){if(1&e&&(t.j41(0,"option",47),t.EFF(1),t.k0s()),2&e){const n=r.$implicit;t.Y8G("value",n),t.R7$(1),t.JRh(n)}}const A=function(e){return{"is-invalid":e}};function fe(e,r){if(1&e&&(t.j41(0,"select",44)(1,"option",45),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,_e,2,2,"option",46),t.k0s()),2&e){const n=t.XpG(3);t.Y8G("ngClass",t.eq3(5,A,n.formSubmit&&(n.userForm.controls.userBirthYear.errors||(null==n.userForm.errors?null:n.userForm.errors.ageInvalid)))),t.R7$(2),t.JRh(t.bMT(3,3,"AUTH.REGISTER.BIRTH_YEAR_LABEL")),t.R7$(2),t.Y8G("ngForOf",n.yearOptions)}}function he(e,r){if(1&e&&(t.nrm(0,"input",48),t.nI1(1,"translate")),2&e){const n=t.XpG(3);t.Y8G("value",t.bMT(1,1,"AUTH.REGISTER.BIRTH_MONTH_"+n.userForm.controls.userBirthMonth.value))}}function Te(e,r){if(1&e&&(t.j41(0,"option",47),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=r.$implicit;t.Y8G("value",n),t.R7$(1),t.SpI("",t.bMT(2,2,"AUTH.REGISTER.BIRTH_MONTH_"+n)," ")}}function ge(e,r){if(1&e&&(t.j41(0,"select",49)(1,"option",45),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Te,3,4,"option",46),t.k0s()),2&e){const n=t.XpG(3);t.Y8G("ngClass",t.eq3(5,A,n.formSubmit&&(n.userForm.controls.userBirthMonth.errors||(null==n.userForm.errors?null:n.userForm.errors.ageInvalid)))),t.R7$(2),t.JRh(t.bMT(3,3,"AUTH.REGISTER.BIRTH_MONTH_LABEL")),t.R7$(2),t.Y8G("ngForOf",n.monthOptions)}}function Ce(e,r){if(1&e&&t.nrm(0,"input",50),2&e){const n=t.XpG(3);t.Y8G("value",n.userForm.controls.userBirthDay.value)}}function Re(e,r){if(1&e&&(t.j41(0,"option",47),t.EFF(1),t.k0s()),2&e){const n=r.$implicit;t.Y8G("value",n),t.R7$(1),t.JRh(n)}}function Ee(e,r){if(1&e&&(t.j41(0,"select",51)(1,"option",45),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Re,2,2,"option",46),t.k0s()),2&e){const n=t.XpG(3);t.Y8G("ngClass",t.eq3(5,A,n.formSubmit&&(n.userForm.controls.userBirthDay.errors||(null==n.userForm.errors?null:n.userForm.errors.ageInvalid)))),t.R7$(2),t.JRh(t.bMT(3,3,"AUTH.REGISTER.BIRTH_DAY_LABEL")),t.R7$(2),t.Y8G("ngForOf",n.dayOptions)}}const be=function(e){return{minimalAge:e}};function ve(e,r){if(1&e&&(t.j41(0,"div",52),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG(3);t.R7$(1),t.SpI(" ",t.i5U(2,1,"AUTH.REGISTER.BIRTH_ALERT",t.eq3(4,be,n.configs.minAgeAtReg))," ")}}function Ie(e,r){if(1&e&&(t.j41(0,"div",24)(1,"label",32),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",9)(5,"div",33),t.DNE(6,ue,1,1,"input",34),t.DNE(7,fe,5,7,"select",35),t.k0s(),t.j41(8,"div",36),t.DNE(9,he,2,3,"input",37),t.DNE(10,ge,5,7,"select",38),t.k0s(),t.j41(11,"div",39),t.DNE(12,Ce,1,1,"input",40),t.DNE(13,Ee,5,7,"select",41),t.k0s()(),t.DNE(14,ve,3,6,"div",42),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,8,"AUTH.REGISTER.BIRTH_DATE_LABEL")),t.R7$(4),t.Y8G("ngIf",!n.canEditFields()),t.R7$(1),t.Y8G("ngIf",n.canEditFields()),t.R7$(2),t.Y8G("ngIf",!n.canEditFields()),t.R7$(1),t.Y8G("ngIf",n.canEditFields()),t.R7$(2),t.Y8G("ngIf",!n.canEditFields()),t.R7$(1),t.Y8G("ngIf",n.canEditFields()),t.R7$(1),t.Y8G("ngIf",n.formSubmit&&(null==n.userForm.errors?null:n.userForm.errors.ageInvalid))}}const Fe=function(e,r){return{"btn-outline-success disabled":e,"btn-outline-danger":r}},Se=function(e,r){return{"bi-check-lg":e,"bi-exclamation-circle":r}};function Oe(e,r){if(1&e&&(t.j41(0,"div",24)(1,"label",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",54),t.nrm(5,"input",55),t.j41(6,"a",56),t.nrm(7,"i",57),t.EFF(8),t.k0s(),t.j41(9,"div",20),t.EFF(10),t.nI1(11,"translate"),t.k0s()()()),2&e){const n=t.XpG(2);let o,s,i,a;t.R7$(2),t.JRh(t.bMT(3,8,"AUTH.REGISTER.EMAIL_LABEL")),t.R7$(3),t.Y8G("readonly",!n.canEditFields())("ngClass",t.eq3(12,A,n.formSubmit&&n.userForm.controls.userEmail.errors)),t.R7$(1),t.Y8G("ngClass",t.l_i(14,Fe,"CONFIRMED"===(null==(o=n.user())?null:o.emailStatus),"UNCONFIRMED"===(null==(o=n.user())?null:o.emailStatus))),t.BMQ("aria-disabled","CONFIRMED"===(null==(s=n.user())?null:s.emailStatus)),t.R7$(1),t.Y8G("ngClass",t.l_i(17,Se,"CONFIRMED"===(null==(i=n.user())?null:i.emailStatus),"UNCONFIRMED"===(null==(i=n.user())?null:i.emailStatus))),t.R7$(1),t.SpI(" ",null==(a=n.user())?null:a.emailStatus," "),t.R7$(2),t.JRh(t.bMT(11,10,"AUTH.REGISTER.EMAIL_ALERT"))}}function Ne(e,r){1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"AUTH.REGISTER.PHONE_ALERT")))}function Ae(e,r){1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&e&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"AUTH.REGISTER.PHONE_ALERT_HELP"),""))}function ke(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.SUBMIT_BTN")))}function ye(e,r){1&e&&(t.nrm(0,"span",58),t.j41(1,"span",59),t.EFF(2,"Loa
3ding..."),t.k0s())}function Ge(e,r){if(1&e){const n=t.RV6();t.j41(0,"form",8),t.bIt("ngSubmit",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.submitForm())}),t.j41(1,"div",9)(2,"div",10)(3,"label",11),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"select",12)(7,"option",13),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"option",14),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"option",15),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"option",16),t.EFF(17),t.nI1(18,"translate"),t.k0s()()(),t.j41(19,"div",17)(20,"label",18),t.EFF(21),t.nI1(22,"translate"),t.k0s(),t.nrm(23,"input",19),t.j41(24,"div",20),t.EFF(25),t.nI1(26,"translate"),t.k0s()(),t.j41(27,"div",17)(28,"label",21),t.EFF(29),t.nI1(30,"translate"),t.k0s(),t.nrm(31,"input",22),t.j41(32,"div",20),t.EFF(33),t.nI1(34,"translate"),t.k0s()()(),t.DNE(35,Ie,15,10,"div",23),t.DNE(36,Oe,12,20,"div",23),t.j41(37,"div",24)(38,"label",25),t.EFF(39),t.nI1(40,"translate"),t.k0s(),t.nrm(41,"input",26),t.nI1(42,"translate"),t.j41(43,"div",20),t.DNE(44,Ne,3,3,"ng-container",27),t.DNE(45,Ae,3,3,"ng-container",27),t.k0s(),t.j41(46,"div")(47,"small",28),t.EFF(48),t.nI1(49,"translate"),t.k0s()()(),t.j41(50,"button",29),t.DNE(51,ke,3,3,"span",30),t.DNE(52,ye,3,0,"ng-template",null,31,t.C5r),t.k0s()()}if(2&e){const n=t.sdS(53),o=t.XpG();let s,i;t.Y8G("formGroup",o.userForm),t.R7$(4),t.JRh(t.bMT(5,30,"ACCOUNT.INFO.PERSONAL.TITLE_LABEL")),t.R7$(2),t.Y8G("ngClass",t.eq3(54,A,o.formSubmit&&o.userForm.controls.userTitle.errors)),t.R7$(1),t.Y8G("selected","Mr"===o.userForm.controls.userTitle.value),t.R7$(1),t.JRh(t.bMT(9,32,"ACCOUNT.INFO.PERSONAL.TITLE_MR")),t.R7$(2),t.Y8G("selected","Ms"===o.userForm.controls.userTitle.value),t.R7$(1),t.JRh(t.bMT(12,34,"ACCOUNT.INFO.PERSONAL.TITLE_MS")),t.R7$(2),t.Y8G("selected","Miss"===o.userForm.controls.userTitle.value),t.R7$(1),t.JRh(t.bMT(15,36,"ACCOUNT.INFO.PERSONAL.TITLE_MISS")),t.R7$(2),t.Y8G("selected","Mrs"===o.userForm.controls.userTitle.value),t.R7$(1),t.JRh(t.bMT(18,38,"ACCOUNT.INFO.PERSONAL.TITLE_MRS")),t.R7$(4),t.JRh(t.bMT(22,40,"AUTH.REGISTER.FNAME_LABEL")),t.R7$(2),t.Y8G("readonly",!o.canEditFields())("ngClass",t.eq3(56,A,o.formSubmit&&o.userForm.controls.userFirstName.errors)),t.R7$(2),t.JRh(t.bMT(26,42,"AUTH.REGISTER.FNAME_ALERT")),t.R7$(4),t.JRh(t.bMT(30,44,"AUTH.REGISTER.LNAME_LABEL")),t.R7$(2),t.Y8G("readonly",!o.canEditFields())("ngClass",t.eq3(58,A,o.formSubmit&&o.userForm.controls.userLastName.errors)),t.R7$(2),t.JRh(t.bMT(34,46,"AUTH.REGISTER.FNAME_ALERT")),t.R7$(2),t.Y8G("ngIf",null==(s=o.user())?null:s.birthDate),t.R7$(1),t.Y8G("ngIf",null==(i=o.user())?null:i.email),t.R7$(3),t.JRh(t.bMT(40,48,"AUTH.REGISTER.PHONE_LABEL")),t.R7$(2),t.FS9("placeholder",t.bMT(42,50,"AUTH.REGISTER.PHONE_LABEL")),t.Y8G("ngClass",t.eq3(60,A,o.formSubmit&&o.userForm.controls.userPhone.errors)),t.R7$(3),t.Y8G("ngIf",null==o.userForm.controls.userPhone.errors?null:o.userForm.controls.userPhone.errors.forbiddenPhone),t.R7$(1),t.Y8G("ngIf",!(null!=o.userForm.controls.userPhone.errors&&o.userForm.controls.userPhone.errors.forbiddenPhone)),t.R7$(3),t.SpI("",t.bMT(49,52,"AUTH.REGISTER.PHONE_HELP")," "),t.R7$(2),t.Y8G("disabled",o.isLoading),t.R7$(1),t.Y8G("ngIf",!o.isLoading)("ngIfElse",n)}}let Ue=(()=>{var e;class r{constructor(o,s,i,a,c,d,p){this.userService=o,this.formBuilder=s,this.toastr=i,this.translate=a,this.chatService=c,this.authService=d,this.configs=p,this.user=this.userService.user,this.canEditFields=(0,t.EWP)(()=>{var m;return!this.configs.isRivalCasino&&"CONFIRMED"!==(null===(m=this.user())||void 0===m?void 0:m.docs)}),this.isLoading=!1,this.formSubmit=!1,this.yearOptions=[],this.monthOptions=[],this.dayOptions=[],this.previousBirthYear=null,this.previousBirthMonth=null;for(let m=(new Date).getFullYear()-this.configs.minAgeAtReg;m>=1900;m--)this.yearOptions.push(m);for(let m=1;m<=12;m++)this.monthOptions.push(m<10?`0${m}`:`${m}`);for(let m=1;m<=31;m++)this.dayOptions.push(m);this.userForm=this.formBuilder.group({userFirstName:["",[l.k0.required,l.k0.minLength(2),l.k0.maxLength(50),S.d.notOnlySpaceValidator]],userLastName:["",[l.k0.required,l.k0.minLength(2),l.k0.maxLength(50),S.d.notOnlySpaceValidator]],userBirthYear:["",[l.k0.required]],userBirthMonth:["",[l.k0.required]],userBirthDay:["",[l.k0.required]],userEmail:["",[l.k0.required,l.k0.email]],userTitle:["",[l.k0.required]],userPhone:["",[l.k0.required,l.k0.minLength(8),l.k0.maxLength(15),l.k0.pattern("[0-9]*"),S.d.forbiddenPhoneValidator()]]},{validators:S.d.ageValidator(this.configs.minAgeAtReg)}),this.userForm.valueChanges.subscribe(m=>{if(m.userBirthYear||m.userBirthMonth){const C=+m.userBirthYear,b=+m.userBirthMonth;if(C&&b&&(C!==this.previousBirthYear||b!==this.previousBirthMonth)){const E=new Date(C,b,0).getDate();this.dayOptions=[];for(let g=1;g<=E;g++)this.dayOptions.push(g)}this.previousBirthYear=+C,this.previousBirthMonth=+b}}),(0,t.QZP)(()=>{const m=this.user();var C,b,E,g,N;m&&this.userForm.patchValue({userFirstName:null!==(C=m.fname)&&void 0!==C?C:"",userLastName:null!==(b=m.lname)&&void 0!==b?b:"",userBirthYear:m.birthDate?m.birthDate.split("-")[0]:"",userBirthMonth:m.b
3irthDate?m.birthDate.split("-")[1]:"",userBirthDay:m.birthDate?+m.birthDate.split("-")[2]:"",userEmail:null!==(E=m.email)&&void 0!==E?E:"",userTitle:m.title&&"Not Specified"!==m.title?null===(g=m.title)||void 0===g?void 0:g.replace(".",""):"",userPhone:null!==(N=m.phone)&&void 0!==N?N:""}),this.formSubmit=!1})}submitForm(){if(this.formSubmit=!0,this.user()&&this.userForm.valid){const o=this.getUpdatedInfo();Object.keys(o).length>0&&(this.isLoading=!0,this.userService.updateUserInfo(o).subscribe({next:s=>{if(this.user()){this.isLoading=!1,this.toastr.success(this.translate.instant("ACCOUNT.INFO.TOASTR_SUCCESS_H1"),this.translate.instant("ACCOUNT.INFO.TOASTR_SUCCESS_H1_2"),{toastClass:"ngx-toastr lobbyless-toast"});const i={...this.user(),...o};this.userService.updateUser(i)}},error:s=>{switch(this.isLoading=!1,s.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"FIELD":for(const a in s.fieldErrors){if("title"===a){const c=this.userForm.get("userTitle");c&&c.setErrors({validationErrorFromServer:s.fieldErrors[a]})}else if("phone"===a){const c=this.userForm.get("userPhone");c&&c.setErrors({validationErrorFromServer:s.fieldErrors[a]})}this.toastr.error(s.fieldErrors[a],this.translate.instant("ACCOUNT.INFO.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}break;default:let i="";this.canEditFields()?(Object.keys(this.userForm.controls).forEach(a=>{const c=this.userForm.get(a);null!=c&&c.dirty&&c.setErrors({validationErrorFromServer:!0})}),i=(s.message?s.message+" ":"")+this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_TIP")):i=this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_TIP"),this.toastr.error(i,this.translate.instant("ACCOUNT.INFO.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}}))}}getUpdatedInfo(){var o;const s=this.userForm.value,i=this.user(),a={};if(!i)return a;const c=i.phone,d=null===(o=i.title)||void 0===o?void 0:o.replace(".","");if(s.userPhone!==c&&(a.phone=s.userPhone),s.userTitle!==d&&(a.title=s.userTitle),this.canEditFields()){s.userFirstName!==i.fname&&(a.fname=s.userFirstName),s.userLastName!==i.lname&&(a.lname=s.userLastName),s.userEmail!==i.email&&(a.email=s.userEmail);const _=`${s.userBirthYear}-${s.userBirthMonth}-${+s.userBirthDay<10?"0"+ +s.userBirthDay:s.userBirthDay}`;_!==i.birthDate&&(a.birthDate=_)}return a}openChat(){this.chatService.toggleChat(!0)}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(v.D),t.rXU(l.ze),t.rXU(F.tw),t.rXU(f.c$),t.rXU(O.m),t.rXU(I.u),t.rXU(D.w))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-personal-info"]],decls:20,vars:19,consts:[[1,"p-2","p-md-3"],[1,"h3","fw-bold","mb-4"],[1,"fw-bold","mb-3"],[1,"text-darker"],["role","button",1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"],["class","needs-validation","novalidate","",3,"formGroup","ngSubmit",4,"ngIf"],[1,"alert","alert-primary","m-3"],[1,"bi","bi-info-circle-fill","fs-5"],["novalidate","",1,"needs-validation",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-12","col-sm-4","col-lg-2","mb-2"],["for","userTitle",1,"form-label","mb-1"],["id","userTitle","formControlName","userTitle","required","",1,"form-select",3,"ngClass"],["value","Mr",3,"selected"],["value","Ms",3,"selected"],["value","Miss",3,"selected"],["value","Mrs",3,"selected"],[1,"col-12","col-sm-4","col-lg-5","mb-2"],["for","userFirstName",1,"form-label","mb-1"],["type","text","id","userFirstName","formControlName","userFirstName",1,"form-control",3,"readonly","ngClass"],[1,"invalid-feedback"],["for","userLastName",1,"form-label","mb-1"],["type","text","id","userLastName","formControlName","userLastName",1,"form-control",3,"readonly","ngClass"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["for","userPhone",1,"form-label","mb-1"],["type","text","id","userPhone","formControlName","userPhone","required","",1,"form-control",3,"placeholder","ngClass"],[4,"ngIf"],[1,"fs-sm","text-muted"],["type","submit",1,"btn","btn-success","btn-lg","w-100","mt-4",3,"disabled"],[4,"ngIf","ngIfElse"],["loadingSpinner",""],["for","userBirthYear",1,"form-label","mb-1"],[1,"col-12","col-sm-4","mb-2","mb-sm-0"],["class","form-control","type","text","id","userBirthYear","readonly","",3,"value",4,"ngIf"],["class","form-select","id","userBirthYear","formControlName","userBirthYear",3,"ngClass",4,"ngIf"],[1,"col-12","col-sm-5","mb-2","mb-sm-0"],["class","form-control","type","text","id","userBirthMonth","readonly","",3,"value",4,"ngIf"],["class","form-select","id","userBirthMonth","formControlName","userBirthMonth",3,"ngClass",4,"ngIf"],[1,"col-12","col-sm-3","mb-2","mb-sm-0"],["class","form-control","type","text","id","userBirthDay","readonly","",3,"value",4,"ngIf"],["class","form-select","id","userBirthDay","formControlName","userBirthDay",3,"ngClass",4,"ngIf"],["class","invali
3d-feedback d-block",4,"ngIf"],["type","text","id","userBirthYear","readonly","",1,"form-control",3,"value"],["id","userBirthYear","formControlName","userBirthYear",1,"form-select",3,"ngClass"],["selected","","value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","text","id","userBirthMonth","readonly","",1,"form-control",3,"value"],["id","userBirthMonth","formControlName","userBirthMonth",1,"form-select",3,"ngClass"],["type","text","id","userBirthDay","readonly","",1,"form-control",3,"value"],["id","userBirthDay","formControlName","userBirthDay",1,"form-select",3,"ngClass"],[1,"invalid-feedback","d-block"],["for","userEmail",1,"form-label","mb-1"],[1,"input-group","mb-1"],["type","email","id","userEmail","formControlName","userEmail",1,"form-control",3,"readonly","ngClass"],["type","button","id","emailStatusLink","routerLink","/account/profile/email-verification",1,"btn","btn-outline-secondary",3,"ngClass"],[1,"bi",3,"ngClass"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"]],template:function(o,s){1&o&&(t.j41(0,"section",0)(1,"h1",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"h5",2),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",3),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"a",4),t.bIt("click",function(){return s.openChat()}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.DNE(15,Ge,54,62,"form",5),t.k0s(),t.j41(16,"div",6),t.nrm(17,"i",7),t.EFF(18),t.nI1(19,"translate"),t.k0s()),2&o&&(t.R
37$(2),t.JRh(t.bMT(3,7,"ACCOUNT.INFO.PERSONAL.H1")),t.R7$(3),t.JRh(t.bMT(6,9,"ACCOUNT.INFO.PERSONAL.REQUEST")),t.R7$(3),t.SpI(" ",t.bMT(9,11,"ACCOUNT.INFO.PERSONAL.REQUEST_TIP1")," "),t.R7$(3),t.JRh(t.bMT(12,13,"ACCOUNT.INFO.PERSONAL.SUPPORT_LINK")),t.R7$(2),t.SpI(" ",t.bMT(14,15,"ACCOUNT.INFO.PERSONAL.REQUEST_TIP2")," "),t.R7$(2),t.Y8G("ngIf",s.user()),t.R7$(3),t.SpI(" ",t.bMT(19,17,"ACCOUNT.INFO.WARNING"),"\n"))},dependencies:[u.YU,u.Sq,u.bT,R.Wk,l.qT,l.xH,l.y7,l.me,l.wz,l.BC,l.cb,l.YS,l.j4,l.JD,f.D9],styles:["#emailStatusLink[_ngcontent-%COMP%]{border-top-right-radius:var(--bs-border-radius);border-bottom-right-radius:var(--bs-border-radius)}"]}),r})();var dt=h(1482);function Me(e,r){if(1&e&&t.nrm(0,"input",30),2&e){const n=t.XpG(2);t.Y8G("value",n.getUserCountry(n.addressForm.controls.country.value))}}function we(e,r){if(1&e&&(t.j41(0,"option",34),t.EFF(1),t.k0s()),2&e){const n=r.$implicit;t.Y8G("value",n.code),t.R7$(1),t.JRh(n.name)}}const L=function(e){return{"is-invalid":e}};function xe(e,r){if(1&e&&(t.j41(0,"select",31)(1,"option",32),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,we,2,2,"option",33),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("ngClass",t.eq3(5,L,n.formSubmit&&n.addressForm.controls.country.errors)),t.R7$(2),t.JRh(t.bMT(3,3,"AUTH.REGISTER.COUNTRY_PLACEHOLDER")),t.R7$(2),t.Y8G("ngForOf",n.countryOptions)}}function Pe(e,r){1&e&&(t.j41(0,"small",35),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"AUTH.REGISTER.OPTIONAL")))}function De(e,r){if(1&e&&t.nrm(0,"input",36),2&e){const n=t.XpG(2);t.Y8G("value",n.getProvinceName(n.addressForm.controls.province.value))}}function Le(e,r){if(1&e&&(t.j41(0,"option",34),t.EFF(1),t.k0s()),2&e){const n=r.$implicit;t.Y8G("value",n.code),t.R7$(1),t.JRh(n.name)}}function $e(e,r){if(1&e&&(t.j41(0,"select",37)(1,"option",32),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Le,2,2,"option",33),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("ngClass",t.eq3(5,L,n.formSubmit&&n.addressForm.controls.province.errors)),t.R7$(2),t.JRh(t.bMT(3,3,"AUTH.REGISTER.PROVINCE_LABEL")),t.R7$(2),t.Y8G("ngForOf",n.provinceOptions)}}function je(e,r){1&e&&(t.j41(0,"small",35),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"AUTH.REGISTER.ADDRESS_ALERT")))}function Ye(e,r){1&e&&(t.j41(0,"small",35),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"AUTH.REGISTER.OPTIONAL")))}function Be(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.SUBMIT_BTN")))}function He(e,r){1&e&&(t.nrm(0,"span",41),t.j41(1,"span",42),t.EFF(2,"Loading..."),t.k0s())}function Xe(e,r){if(1&e&&(t.j41(0,"button",38),t.DNE(1,Be,3,3,"span",39),t.DNE(2,He,3,0,"ng-template",null,40,t.C5r),t.k0s()),2&e){const n=t.sdS(3),o=t.XpG(2);t.Y8G("disabled",o.isLoading),t.R7$(1),t.Y8G("ngIf",!o.isLoading)("ngIfElse",n)}}const Je=function(){return["US","CA","VE","AU"]};function Ve(e,r){if(1&e){const n=t.RV6();t.j41(0,"form",8),t.bIt("ngSubmit",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.submitForm())}),t.j41(1,"div",9)(2,"div",10)(3,"label",11),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,Me,1,1,"input",12),t.DNE(7,xe,5,7,"select",13),t.k0s(),t.j41(8,"div",10)(9,"label",14),t.EFF(10),t.nI1(11,"translate"),t.DNE(12,Pe,3,3,"small",15),t.k0s(),t.DNE(13,De,1,1,"input",16),t.DNE(14,$e,5,7,"select",17),t.k0s()(),t.j41(15,"div",18)(16,"div",19)(17,"label",20),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.nrm(20,"input",21),t.nI1(21,"translate"),t.k0s(),t.j41(22,"div",22)(23,"label",23),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.nrm(26,"input",24),t.nI1(27,"translate"),t.k0s()(),t.j41(28,"div",9)(29,"div",10)(30,"label",25),t.EFF(31),t.nI1(32,"translate"),t.DNE(33,je,3,3,"small",15),t.k0s(),t.nrm(34,"input",26),t.nI1(35,"translate"),t.k0s(),t.j41(36,"div",10)(37,"label",27),t.EFF(38),t.nI1(39,"translate"),t.j41(40,"span"),t.DNE(41,Ye,3,3,"small",15),t.k0s()(),t.nrm(42,"input",28),t.nI1(43,"translate"),t.k0s()(),t.DNE(44,Xe,4,3,"button",29),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("formGroup",n.addressForm),t.R7$(4),t.JRh(t.bMT(5,26,"AUTH.REGISTER.COUNTRY_LABEL")),t.R7$(2),t.Y8G("ngIf",!n.canEditAddress()),t.R7$(1),t.Y8G("ngIf",n.canEditAddress()),t.R7$(3),t.SpI("",t.bMT(11,28,"AUTH.REGISTER.PROVINCE_LABEL")," "),t.R7$(2),t.Y8G("ngIf",n.canEditAddress()&&!t.lJ4(46,Je).includes(n.addressForm.controls.country.value)),t.R7$(1),t.Y8G("ngIf",!n.canEditAddress()),t.R7$(1),t.Y8G("ngIf",n.canEditAddress()),t.R7$(4),t.JRh(t.bMT(19,30,"AUTH.REGISTER.ZIP_LABEL")),t.R7$(2),t.FS9("placeholder",t.bMT(21,32,"AUTH.REGISTER.ZIP_LABEL")),t.Y8G("ngClass",t.eq3(47,L,n.formSubmit&&n.addressForm.controls.zip.errors))("readonly",!n.canEditAddress()),t.R7$(4),t.JRh(t.bMT(25,34,"AUTH.REGISTER.CITY_LABEL")),t.R7$(2),t.FS9("placeholder",t.bMT(27,36,"AUTH.REGISTER.CITY_LABEL")),t.Y8G("ngClass",t.eq3(49,L,n.formSubmit&&n.addressForm.controls.city.errors))("readonly",!n.canEditAddress()),t.R7$(5),t.SpI("",t.bMT(32,38,"AUTH.REGISTER.ADDRESS_LABEL")," "),t.R7$(2),t.Y8G("ngIf",n.canEditAddress()),t.R7$(1),t.FS9("placeholder",t.bMT(35,40,"AUTH.REGISTER.ADDRESS_LABEL")),t.Y8G("ngClass",t.eq3(51,L,n.formSubmit&&n.addressForm.controls.address.errors))("readonly",!n.canEditAddress()),t.R7$(4),t.SpI("",t.bMT(39,42,"AUTH.REGISTER.ADDRESS2_LABEL")," "),t.R7$(3),t.Y8G("ngIf",n.canEditAddress()),t.R7$(1),t.FS9("placeholder",t.bMT(43,44,"AUTH.REGISTER.EXTRA_INFO_LABEL")),t.Y8G("readonly",!n.canEditAddress()),t.R7$(2),t.Y8G("ngIf",n.canEditAddress())}}let We=(()=>{var e;
3class r{constructor(o,s,i,a,c,d,p){this.userService=o,this.formBuilder=s,this.toastr=i,this.translate=a,this.chatService=c,this.authService=d,this.configService=p,this.user=this.userService.user,this.canEditAddress=(0,t.EWP)(()=>{var _;return this.configService.isRivalCasino||"CONFIRMED"!==(null===(_=this.user())||void 0===_?void 0:_.docs)}),this.formSubmit=!1,this.isLoading=!1,this.countryOptions=[],this.provinceOptions=[],this.subdivisions=[],this.previousCountry="",this.countryOptions=dt.X7,this.subdivisions=dt.o2,this.addressForm=this.formBuilder.group({country:["",[l.k0.required]],province:[""],zip:["",[l.k0.required,S.d.notOnlySpaceValidator]],city:["",[l.k0.required,S.d.notOnlySpaceValidator]],address:["",[l.k0.required,l.k0.minLength(5),S.d.notOnlySpaceValidator]],address2:[""]},{validators:S.d.provinceOptionalValidator}),(0,t.QZP)(()=>{const _=this.user();if(_){var T,m,C,b,E,g;const N=this.configService.isRivalCasino?this.getUserCountryCode(_.country):null!==(T=_.country)&&void 0!==T?T:"";N!==this.previousCountry&&(this.updateProvinceOptions(N),this.previousCountry=N),this.addressForm.patchValue({address:null!==(m=_.address)&&void 0!==m?m:"",address2:null!==(C=_.address2)&&void 0!==C?C:"",city:null!==(b=_.city)&&void 0!==b?b:"",province:this.configService.isRivalCasino?this.getUserProvinceCode(_.province):null!==(E=_.province)&&void 0!==E?E:"",zip:null!==(g=_.postCode)&&void 0!==g?g:"",country:N})}this.formSubmit=!1})}ngOnInit(){var o;null===(o=this.formSubs)||void 0===o||o.unsubscribe(),this.formSubs=this.addressForm.valueChanges.subscribe(s=>{if(s.country!==this.previousCountry){var i,a,c;this.updateProvinceOptions(s.country),this.previousCountry=s.country;let d=this.configService.isRivalCasino?this.getUserCountryCode(null===(a=this.user())||void 0===a?void 0:a.country):null===(i=this.user())||void 0===i?void 0:i.country;this.user()&&d!==s.country&&this.addressForm.patchValue({province:""},{emitEvent:!1}),null===(c=this.addressForm.get("province"))||void 0===c||c.updateValueAndValidity()}})}submitForm(){if(this.formSubmit=!0,this.addressForm.valid){var o,s,i,a,c,d,p,_;const T=this.addressForm.value;let m={};T.address!==(null===(o=this.user())||void 0===o?void 0:o.address)&&(m.address=T.address),T.address2!==(null===(s=this.user())||void 0===s?void 0:s.address2)&&T.address2.length&&(m.address2=T.address2),T.city!==(null===(i=this.user())||void 0===i?void 0:i.city)&&(m.city=T.city);let C=this.configService.isRivalCasino?this.getUserProvinceCode(null===(c=this.user())||void 0===c?void 0:c.province):null===(a=this.user())||void 0===a?void 0:a.province;T.province!==C&&(m.province=T.province),T.zip!==(null===(d=this.user())||void 0===d?void 0:d.postCode)&&(m.postCode=T.zip);let b=this.configService.isRivalCasino?this.getUserCountryCode(null===(_=this.user())||void 0===_?void 0:_.country):null===(p=this.user())||void 0===p?void 0:p.country;T.country!==b&&(m.country=T.country),Object.keys(m).length&&(this.isLoading=!0,this.userService.updateUserInfo(m).subscribe({next:E=>{if(this.user()){this.isLoading=!1,this.toastr.success(this.translate.instant("ACCOUNT.INFO.TOASTR_SUCCESS_H1"),this.translate.instant("ACCOUNT.INFO.TOASTR_SUCCESS_H1_2"),{toastClass:"ngx-toastr lobbyless-toast"});const g={...this.user()};m.address&&(g.address=m.address),m.address2&&(g.address2=m.address2),m.city&&(g.city=m.city),"province"in m&&(g.province=this.configService.isRivalCasino?this.getUserProvince(m):m.province),m.postCode&&(g.postCode=m.postCode),m.country&&(g.country=this.configService.isRivalCasino?this.getUserCountry(m.country):m.country),this.userService.updateUser(g)}},error:E=>{switch(this.isLoading=!1,E.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"FIELD":for(const g in E.fieldErrors){if(this.addressForm.controls[g]){const Rt=this.addressForm.get("postCode"===g?"zip":g);Rt&&Rt.setErrors({validationErrorFromServer:E.fieldErrors[g]})}this.toastr.error(E.fieldErrors[g],this.translate.instant("ACCOUNT.INFO.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}break;default:this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_TIP"),this.translate.instant("ACCOUNT.INFO.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}}))}}updateProvinceOptions(o){if(!o)return void(this.provinceOptions=[]);const s=this.subdivisions.filter(i=>i.country_code===o);this.provinceOptions=s.map(i=>({name:i.subdivision_name,code:i.code}))}getUserCountryCode(o){if(o){const s=this.countryOptions.find(i=>i.name===o);if(s)return s.code}return""}getProvinceName(o){var s;return(null===(s=this.provinceOptions.find(i=>
3i.code===o))||void 0===s?void 0:s.name)||o||""}getUserCountry(o){if(o){const s=this.countryOptions.find(i=>i.code===o);if(s)return s.name}return""}getUserProvinceCode(o){if(o){var s;const i=this.getUserCountryCode(null===(s=this.user())||void 0===s?void 0:s.country),a=o.normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=this.subdivisions.find(d=>d.country_code===i&&d.subdivision_name===a);if(c)return c.code}return""}getUserProvince(o){if(o.province){var s;const i=o.country||this.getUserCountryCode(null===(s=this.user())||void 0===s?void 0:s.country);if(i){const a=this.subdivisions.find(c=>c.country_code===i&&c.code===o.province);if(a)return a.subdivision_name}}return""}openChat(){this.chatService.toggleChat(!0)}ngOnDestroy(){var o;null===(o=this.formSubs)||void 0===o||o.unsubscribe()}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(v.D),t.rXU(l.ze),t.rXU(F.tw),t.rXU(f.c$),t.rXU(O.m),t.rXU(I.u),t.rXU(D.w))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-address-info"]],decls:20,vars:19,consts:[[1,"p-2","p-md-3"],[1,"h3","fw-bold","mb-4"],[1,"fw-bold","mb-3"],[1,"text-darker"],["role","button",1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"],["class","needs-validation","novalidate","",3,"formGroup","ngSubmit",4,"ngIf"],[1,"alert","alert-primary","m-3"],[1,"bi","bi-info-circle-fill","fs-5"],["novalidate","",1,"needs-validation",3,"formGroup","ngSubmit"],[1,"row","row-cols-1","row-cols-sm-2"],[1,"col","mb-2"],["for","country",1,"form-label","mb-1"],["class","form-control","type","text","id","country","readonly","",3,"value",4,"ngIf"],["class","form-select","id","country","formControlName","country",3,"ngClass",4,"ngIf"],["for","province",1,"form-label","mb-0"],["class","text-muted",4,"ngIf"],["class","form-control mt-1","type","text","id","province","readonly","",3,"value",4,"ngIf"],["class","form-select mt-1","id","province","formControlName","province",3,"ngClass",4,"ngIf"],[1,"row"],[1,"col-12","col-sm-3","mb-2"],["for","zip",1,"form-label","mb-0"],["type","text","id","zip","required","","formControlName","zip","autocomplete","off",1,"form-control","mt-1",3,"placeholder","ngClass","readonly"],[1,"col-12","col-sm-9","mb-2"],["for","city",1,"form-label","mb-1"],["type","text","id","city","required","","formControlName","city",1,"form-control",3,"placeholder","ngClass","readonly"],["for","address",1,"form-label","mb-0"],["type","text","id","address","required","","formControlName","address","autocomplete","off",1,"form-control","mt-1",3,"placeholder","ngClass","readonly"],["for","address2",1,"form-label","mb-0"],["type","text","id","address2","formControlName","address2","autocomplete","off",1,"form-control","mt-1",3,"placeholder","readonly"],["class","btn btn-success btn-lg w-100 mt-4","type","submit",3,"disabled",4,"ngIf"],["type","text","id","country","readonly","",1,"form-control",3,"value"],["id","country","formControlName","country",1,"form-select",3,"ngClass"],["selected","","value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"text-muted"],["type","text","id","province","readonly","",1,"form-control","mt-1",3,"value"],["id","province","formControlName","province",1,"form-select","mt-1",3,"ngClass"],["type","submit",1,"btn","btn-success","btn-lg","w-100","mt-4",3,"disabled"],[4,"ngIf","ngIfElse"],["loadingSpinner",""],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"]],template:function(o,s){1&o&&(t.j41(0,"section",0)(1,"h1",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"h5",2),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",3),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"a",4),t.bIt("click",function(){return s.openChat()}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.DNE(15,Ve,45,53,"form",5),t.k0s(),t.j41(16,"div",6),t.nrm(17,"i",7),t.EFF(18),t.nI1(19,"translate"),t.k0s()),2&o&&(t.R
37$(2),t.JRh(t.bMT(3,7,"ACCOUNT.INFO.ADDRESS.H1")),t.R7$(3),t.JRh(t.bMT(6,9,"ACCOUNT.INFO.ADDRESS.REQUEST")),t.R7$(3),t.SpI(" ",t.bMT(9,11,"ACCOUNT.INFO.PERSONAL.REQUEST_TIP1")," "),t.R7$(3),t.JRh(t.bMT(12,13,"ACCOUNT.INFO.PERSONAL.SUPPORT_LINK")),t.R7$(2),t.SpI(" ",t.bMT(14,15,"ACCOUNT.INFO.PERSONAL.REQUEST_TIP2")," "),t.R7$(2),t.Y8G("ngIf",s.user()),t.R7$(3),t.SpI(" ",t.bMT(19,17,"ACCOUNT.INFO.WARNING"),"\n"))},dependencies:[u.YU,u.Sq,u.bT,l.qT,l.xH,l.y7,l.me,l.wz,l.BC,l.cb,l.YS,l.j4,l.JD,f.D9]}),r})();var qe=h(8756);function Ke(e,r){if(1&e&&(t.j41(0,"div",16),t.nrm(1,"img",17),t.j41(2,"label",18),t.EFF(3),t.k0s()()),2&e){const n=t.XpG(2);let o,s,i,a;t.R7$(1),t.Y8G("src","assets/lang_images/"+(null==(o=n.userLanguage())?null:o.value)+".svg",t.B4B)("height",null==(s=n.userLanguage())?null:s.height)("alt",null==(i=n.userLanguage())?null:i.label),t.R7$(2),t.JRh(null==(a=n.userLanguage())?null:a.label)}}function Qe(e,r){if(1&e&&(t.j41(0,"div",8),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);let o;t.R7$(1),t.JRh(null==(o=n.user())?null:o.locale)}}function ze(e,r){if(1&e&&(t.qex(0),t.j41(1,"div",5)(2,"span",6),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",7)(6,"div",8),t.EFF(7),t.k0s()()(),t.j41(8,"div",9)(9,"span",6),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"div",7),t.DNE(13,Ke,4,4,"div",10),t.DNE(14,Qe,2,1,"ng-template",null,11,t.C5r),t.k0s()(),t.j41(16,"div",9)(17,"span",6),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"div",7)(21,"div",8),t.EFF(22),t.k0s()()(),t.j41(23,"div",12)(24,"span",6),t.EFF(25),t.nI1(26,"translate"),t.k0s(),t.j41(27,"div",7)(28,"div",13)(29,"div",14),t.EFF(30),t.nI1(31,"currency"),t.k0s(),t.j41(32,"a",15),t.EFF(33),t.nI1(34,"translate"),t.k0s()()()(),t.bVm()),2&e){const n=t.sdS(15),o=t.XpG();let s,i;t.R7$(3),t.JRh(t.bMT(4,10,"ACCOUNT.INFO.ACCOUNT.LOGIN")),t.R7$(4),t.JRh(null==(s=o.user())?null:s.login),t.R7$(3),t.JRh(t.bMT(11,12,"ACCOUNT.INFO.ACCOUNT.LOCALE")),t.R7$(3),t.Y8G("ngIf",o.userLanguage())("ngIfElse",n),t.R7$(5),t.JRh(t.bMT(19,14,"ACCOUNT.INFO.ACCOUNT.CURRENCY")),t.R7$(4),t.JRh(o.userCurrency()),t.R7$(3),t.JRh(t.bMT(26,16,"ACCOUNT.INFO.ACCOUNT.BALANCE")),t.R7$(5),t.JRh(t.i5U(31,18,null!==(i=o.balance())&&void 0!==i?i:null==(i=o.user())?null:i.balance,o.userCurrency())),t.R7$(3),t.JRh(t.bMT(34,21,"ACCOUNT.INFO.ACCOUNT.BTN_TO_CASHIER"))}}let Ze=(()=>{var e;class r{constructor(o,s,i){this.userService=o,this.langService=s,this.chatService=i,this.user=this.userService.user,this.balance=this.userService.balance,this.userCurrency=this.userService.currency,this.languageOptions=[],this.userLanguage=(0,t.EWP)(()=>{const a=this.user();return a?this.languageOptions.find(c=>a.locale.includes(c.value)):null}),this.languageOptions=this.langService.languageOptions}openChat(){this.chatService.toggleChat(!0)}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(v.D),t.rXU(qe.g),t.rXU(O.m))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-account-info"]],decls:13,vars:13,consts:[[1,"p-2","p-md-3"],[1,"h3","fw-bold","mb-4"],[1,"text-darker","mb-4"],["role","button",1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"],[4,"ngIf"],[1,"row","mb-3"],[1,"col-sm-3","col-form-label"],[1,"col-sm-9"],[1,"form-control"],[1,"row","mb-3","d-flex","align-items-center"],["class","form-control d-flex align-items-center",4,"ngIf","ngIfElse"],["noUserLang",""],[1,"row","mb-3","mb-sm-4","mb-xxl-3","d-flex","align-items-center"],[1,"input-group"],["type","text",1,"form-control"],["type","button","routerLink","/account/banking","id","balanceLinkToCashier",1,"btn","btn-primary"],[1,"form-control","d-flex","align-items-center"],["width","20",1,"m-end-2",3,"src","height","alt"],[1,"form-check-label"]],template:function(o,s){1&o&&(t.j41(0,"section",0)(1,"h1",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",2),t.EFF(5),t.nI1(6,"translate"),t.j41(7,"a",3),t.bIt("click",function(){return s.openChat()}),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.DNE(12,ze,35,23,"ng-container",4),t.k0s()),2&o&&(t.R
37$(2),t.JRh(t.bMT(3,5,"ACCOUNT.INFO.ACCOUNT.H1")),t.R7$(3),t.SpI(" ",t.bMT(6,7,"ACCOUNT.INFO.ACCOUNT.REQUEST")," "),t.R7$(3),t.JRh(t.bMT(9,9,"ACCOUNT.INFO.PERSONAL.SUPPORT_LINK")),t.R7$(2),t.SpI(" ",t.bMT(11,11,"ACCOUNT.INFO.PERSONAL.REQUEST_TIP2")," "),t.R7$(2),t.Y8G("ngIf",s.user()))},dependencies:[u.bT,R.Wk,u.oe,f.D9],styles:["#balanceLinkToCashier[_ngcontent-%COMP%]{border-top-right-radius:var(--bs-border-radius);border-bottom-right-radius:var(--bs-border-radius)}"]}),r})(),tn=(()=>{var e;class r{constructor(o,s){this.configs=o,this.chatService=s,this.contactEmail=this.configs.contactEmail}openChat(){this.chatService.toggleChat(!0)}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(D.w),t.rXU(O.m))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-self-exclusion"]],decls:41,vars:38,consts:[[1,"p-2","p-md-3"],[1,"h3","fw-bold","mb-4"],[1,"text-darker","mb-4"],[1,"mb-2"],[1,"fw-bold"],["role","button",1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"],[1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"href"],[1,"text-darker"]],template:function(o,s){1&o&&(t.j41(0,"section",0)(1,"h1",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",2),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"ul")(11,"li",3)(12,"span",4),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"li",3)(18,"span",4),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.EFF(21),t.nI1(22,"translate"),t.k0s()(),t.j41(23,"p",2)(24,"span"),t.EFF(25),t.nI1(26,"translate"),t.k0s(),t.j41(27,"a",5),t.bIt("click",function(){return s.openChat()}),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"span"),t.EFF(31),t.nI1(32,"translate"),t.k0s(),t.j41(33,"a",6),t.EFF(34),t.k0s(),t.j41(35,"span"),t.EFF(36),t.nI1(37,"translate"),t.k0s()(),t.j41(38,"p",7),t.EFF(39),t.nI1(40,"translate"),t.k0s()()),2&o&&(t.R
37$(2),t.JRh(t.bMT(3,14,"ACCOUNT.INFO.SELF_EXCLUSION.H1")),t.R7$(3),t.JRh(t.bMT(6,16,"ACCOUNT.INFO.SELF_EXCLUSION.DESCRIPTION")),t.R7$(3),t.JRh(t.bMT(9,18,"ACCOUNT.INFO.SELF_EXCLUSION.OPTIONS")),t.R7$(5),t.JRh(t.bMT(14,20,"ACCOUNT.INFO.SELF_EXCLUSION.FREEZE_TITLE")),t.R7$(2),t.SpI(" \u2013 ",t.bMT(16,22,"ACCOUNT.INFO.SELF_EXCLUSION.FREEZE_DESC")," "),t.R7$(4),t.JRh(t.bMT(20,24,"ACCOUNT.INFO.SELF_EXCLUSION.CLOSE_TITLE")),t.R7$(2),t.SpI(" \u2013 ",t.bMT(22,26,"ACCOUNT.INFO.SELF_EXCLUSION.CLOSE_DESC")," "),t.R7$(4),t.JRh(t.bMT(26,28,"ACCOUNT.INFO.SELF_EXCLUSION.TIP_PART1")),t.R7$(3),t.JRh(t.bMT(29,30,"ACCOUNT.INFO.SELF_EXCLUSION.CHAT_LINK")),t.R7$(3),t.JRh(t.bMT(32,32,"ACCOUNT.INFO.SELF_EXCLUSION.TIP_PART2")),t.R7$(2),t.Mz_("href","mailto:",s.contactEmail,"",t.B4B),t.R7$(1),t.SpI(" ",s.contactEmail,""),t.R7$(2),t.JRh(t.bMT(37,34,"ACCOUNT.INFO.SELF_EXCLUSION.TIP_PART3")),t.R7$(3),t.JRh(t.bMT(40,36,"ACCOUNT.INFO.SELF_EXCLUSION.MESSAGE")))},dependencies:[f.D9]}),r})();const mt=function(){return["/account/transactions/deposits"]},pt=function(){return["/account/transactions/withdrawals"]},ut=function(){return["/account/transactions/reversals"]},_t=function(){return["/account/transactions/wagers"]},ft=function(){return["/account/transactions/promotions"]};let en=(()=>{var e;class r{constructor(o,s,i,a,c){this.translate=o,this.titleService=s,this.router=i,this.gaService=a,this.trackingService=c,this.selectedSectionTitle=this.router.url.split("/")[3].toUpperCase(),this.router.events.pipe((0,nt.p)(d=>d instanceof R.wF),(0,k.pQ)()).subscribe(()=>{this.selectedSectionTitle=this.router.url.split("/")[3].toUpperCase()}),this.translate.stream("ACCOUNT.HISTORY.TITLE").pipe((0,k.pQ)()).subscribe(d=>{this.titleService.setTitle(`Cashier / ${d}`)}),this.gaService.event("cashier_history",void 0,void 0,void 0,void 0,{cashier_visible:!0,...this.trackingService.getAffiliateOptions()})}ngOnDestroy(){this.gaService.event("cashier_history",void 0,void 0,void 0,void 0,{cashier_visible:!1,...this.trackingService.getAffiliateOptions()})}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(f.c$),t.rXU(M.E),t.rXU(R.Ix),t.rXU(x.p),t.rXU(w.N))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-history"]],decls:59,vars:58,consts:[[1,"container-fluid","px-0","pb-3","pb-lg-5"],[3,"isProvider","title","imgSrc"],[1,"container-lg","mt-3","px-2","px-md-3"],[1,"row","gx-4","gy-2"],["id","historyNavDropdownBtn",1,"d-md-none"],[1,"nav"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu"],["routerLinkActive","active",1,"dropdown-item",3,"routerLink"],[1,"d-none","d-md-block","col-md-3"],[1,"bg-darker","rounded-2","py-2"],["id","history-tab","role","tablist","aria-orientation","vertical",1,"nav","flex-column","nav-underline"],["routerLinkActive","active",1,"nav-link",3,"routerLink"],[1,"col-12","col-md-9"],[1,"bg-darker","rounded-2","p-0"],["id","history-tabContent",1,"tab-content","pb-3"]],template:function(o,s){1&o&&(t.j41(0,"main",0),t.nrm(1,"app-topbar",1),t.nI1(2,"translate"),t.j41(3,"div",2)(4,"div",3)(5,"div",4)(6,"nav",5)(7,"div",6)(8,"button",7),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"ul",8)(12,"li")(13,"a",9),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"li")(17,"a",9),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"li")(21,"a",9),t.EFF(22),t.nI1(23,"translate"),t.k0s()(),t.j41(24,"li")(25,"a",9),t.EFF(26),t.nI1(27,"translate"),t.k0s()(),t.j41(28,"li")(29,"a",9),t.EFF(30),t.nI1(31,"translate"),t.k0s()()()()()(),t.j41(32,"aside",10)(33,"div",11)(34,"nav",12)(35,"li")(36,"a",13),t.EFF(37),t.nI1(38,"translate"),t.k0s()(),t.j41(39,"li")(40,"a",13),t.EFF(41),t.nI1(42,"translate"),t.k0s()(),t.j41(43,"li")(44,"a",13),t.EFF(45),t.nI1(46,"translate"),t.k0s()(),t.j41(47,"li")(48,"a",13),t.EFF(49),t.nI1(50,"translate"),t.k0s()(),t.j41(51,"li")(52,"a",13),t.EFF(53),t.nI1(54,"translate"),t.k0s()()()()(),t.j41(55,"main",14)(56,"div",15)(57,"div",16),t.nrm(58,"router-outlet"),t.k0s()()()()()()),2&o&&(t.R
37$(1),t.Y8G("isProvider",!1)("title",t.bMT(2,24,"ACCOUNT.HISTORY.TITLE"))("imgSrc","assets/icons/history_big.svg"),t.R7$(8),t.SpI(" ",t.bMT(10,26,"ACCOUNT.HISTORY."+s.selectedSectionTitle)," "),t.R7$(4),t.Y8G("routerLink",t.lJ4(48,mt)),t.R7$(1),t.JRh(t.bMT(15,28,"ACCOUNT.HISTORY.DEPOSITS")),t.R7$(3),t.Y8G("routerLink",t.lJ4(49,pt)),t.R7$(1),t.JRh(t.bMT(19,30,"ACCOUNT.HISTORY.WITHDRAWALS")),t.R7$(3),t.Y8G("routerLink",t.lJ4(50,ut)),t.R7$(1),t.JRh(t.bMT(23,32,"ACCOUNT.HISTORY.REVERSALS")),t.R7$(3),t.Y8G("routerLink",t.lJ4(51,_t)),t.R7$(1),t.JRh(t.bMT(27,34,"ACCOUNT.HISTORY.WAGERS")),t.R7$(3),t.Y8G("routerLink",t.lJ4(52,ft)),t.R7$(1),t.JRh(t.bMT(31,36,"ACCOUNT.HISTORY.PROMOTIONS")),t.R7$(6),t.Y8G("routerLink",t.lJ4(53,mt)),t.R7$(1),t.JRh(t.bMT(38,38,"ACCOUNT.HISTORY.DEPOSITS")),t.R7$(3),t.Y8G("routerLink",t.lJ4(54,pt)),t.R7$(1),t.JRh(t.bMT(42,40,"ACCOUNT.HISTORY.WITHDRAWALS")),t.R7$(3),t.Y8G("routerLink",t.lJ4(55,ut)),t.R7$(1),t.JRh(t.bMT(46,42,"ACCOUNT.HISTORY.REVERSALS")),t.R7$(3),t.Y8G("routerLink",t.lJ4(56,_t)),t.R7$(1),t.JRh(t.bMT(50,44,"ACCOUNT.HISTORY.WAGERS")),t.R7$(3),t.Y8G("routerLink",t.lJ4(57,ft)),t.R7$(1),t.JRh(t.bMT(54,46,"ACCOUNT.HISTORY.PROMOTIONS")))},dependencies:[R.n3,R.Wk,R.wQ,P.G,f.D9]}),r})();var y=h(4028);function nn(e,r){if(1&e){const n=t.RV6();t.j41(0,"span",12),t.bIt("mouseenter",function(){const i=t.eBV(n).$implicit,a=t.XpG();return t.Njj(a.hoveredDate=i)})("mouseleave",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.hoveredDate=null)}),t.EFF(1),t.k0s()}if(2&e){const n=r.$implicit,o=r.focused,s=t.XpG();t.AVh("focused",o)("range",s.isRange(n))("faded",s.isHovered(n)||s.isInside(n)),t.R7$(1),t.SpI(" ",n.day," ")}}let on=(()=>{var e;class r{constructor(o,s){this.calendar=o,this.formatter=s,this.dateRangeChange=new t.bkB,this.hoveredDate=null,this.fromDate=null,this.toDate=null,this.today=this.calendar.getToday(),this.toDate=this.today,this.fromDate=o.getPrev(this.today,"d",30)}ngOnInit(){this.emitDateRange()}onDateSelection(o){this.fromDate||this.toDate?this.fromDate&&!this.toDate&&o&&o.after(this.fromDate)?this.toDate=o:(this.toDate=null,this.fromDate=o):(this.fromDate=o,this.toDate=null),this.emitDateRange()}isHovered(o){return this.fromDate&&!this.toDate&&this.hoveredDate&&o.after(this.fromDate)&&o.before(this.hoveredDate)}isInside(o){return this.toDate&&o.after(this.fromDate)&&o.before(this.toDate)}isRange(o){return o.equals(this.fromDate)||this.toDate&&o.equals(this.toDate)||this.isInside(o)||this.isHovered(o)}validateInput(o,s){const i=this.formatter.parse(s);return i&&this.calendar.isValid(y.gj.from(i))?y.gj.from(i):o}emitDateRange(){this.dateRangeChange.emit({fromDate:this.fromDate,toDate:this.toDate})}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(y.iF),t.rXU(y.tN))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-date-range-picker"]],outputs:{dateRangeChange:"dateRangeChange"},decls:17,vars:7,consts:[[1,"row","row-cols-sm-auto","gy-2","gy-md-4","only-ltr"],[1,"col-12"],[1,"dp-hidden","position-absolute"],[1,"input-group"],["name","datepicker","ngbDatepicker","","outsideDays","hidden","tabindex","-1",1,"form-control",3,"autoClose","displayMonths","dayTemplate","startDate","maxDate","dateSelect"],["datepicker","ngbDatepicker"],["t",""],["placeholder","yyyy-mm-dd","name","dpFromDate",1,"form-control",3,"value","input"],["dpFromDate",""],["type","button",1,"btn","btn-outline-secondary","bi","bi-calendar3",3,"click"],["placeholder","yyyy-mm-dd","name","dpToDate",1,"form-control",3,"value","input"],["dpToDate",""],[1,"custom-day",3,"mouseenter","mouseleave"]],template:function(o,s){if(1&o){const i=t.RV6();t.j41(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"input",4,5),t.bIt("dateSelect",function(c){return s.onDateSelection(c)}),t.k0s(),t.DNE(6,nn,2,7,"ng-template",null,6,t.C5r),t.k0s()(),t.j41(8,"div",3)(9,"input",7,8),t.bIt("input",function(){t.eBV(i);const c=t.sdS(10);return t.Njj(s.fromDate=s.validateInput(s.fromDate,c.value))}),t.k0s(),t.j41(11,"button",9),t.bIt("click",function(){t.eBV(i);const c=t.sdS(5);return t.Njj(c.toggle())}),t.k0s()()(),t.j41(12,"div",1)(13,"div",3)(14,"input",10,11),t.bIt("input",function(){t.eBV(i);const c=t.sdS(15);return t.Njj(s.toDate=s.validateInput(s.toDate,c.value))}),t.k0s(),t.j41(16,"button",9),t.bIt("click",function(){t.eBV(i);const c=t.sdS(5);return t.Njj(c.toggle())}),t.k0s()()()()}if(2&o){const i=t.sdS(7);t.R7$(4),t.Y8G("autoClose","outside")("displayMonths",2)("dayTemplate",i
3)("startDate",s.fromDate)("maxDate",s.today),t.R7$(5),t.Y8G("value",s.formatter.format(s.fromDate)),t.R7$(5),t.Y8G("value",s.formatter.format(s.toDate))}},dependencies:[l.qT,l.cb,y.cw],styles:["[_nghost-%COMP%] .ngb-dp-header, [_nghost-%COMP%] .ngb-dp-month-name, [_nghost-%COMP%] .ngb-dp-weekdays{background-color:inherit!important}[_nghost-%COMP%] .ngb-dp-day.disabled{color:color-mix(in srgb,var(--bs-body-color),#000 20%)}.dp-hidden[_ngcontent-%COMP%]{width:0;margin:0;border:none;padding:0}.custom-day[_ngcontent-%COMP%]{text-align:center;padding:.185rem .25rem;display:inline-block;height:2rem;width:2rem}.custom-day.focused[_ngcontent-%COMP%]{background-color:#e6e6e6}.custom-day.range[_ngcontent-%COMP%], .custom-day[_ngcontent-%COMP%]:hover{background-color:var(--bs-primary);color:#fff}.custom-day.faded[_ngcontent-%COMP%]{background-color:color-mix(in srgb,var(--bs-primary),transparent 50%)}.input-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-top-left-radius:var(--bs-border-radius)!important;border-bottom-right-radius:0!important;border-bottom-left-radius:var(--bs-border-radius)!important}"]}),r})();function sn(e,r){1&e&&(t.j41(0,"div",8)(1,"div",9)(2,"span",10),t.EFF(3,"Loading..."),t.k0s()()())}function rn(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",20)(1,"span"),t.EFF(2),t.k0s(),t.j41(3,"div",21)(4,"button",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG(3);return t.Njj(s.goToPage(s.currentPage-1))}),t.j41(5,"span",23),t.EFF(6," < "),t.k0s(),t.j41(7,"span",10),t.EFF(8,"Previous"),t.k0s()(),t.j41(9,"button",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG(3);return t.Njj(s.goToPage(s.currentPage+1))}),t.j41(10,"span",23),t.EFF(11," > "),t.k0s(),t.j41(12,"span",10),t.EFF(13,"Next"),t.k0s()()()()}if(2&e){const n=t.XpG(3);t.R7$(2),t.SpI("Page ",n.currentPage+1,""),t.R7$(2),t.Y8G("disabled",0===n.currentPage),t.R7$(5),t.Y8G("disabled",0!==n.currentPage&&(!n.hasMoreData||n.depositTransactions.length<n.count))}}const X=function(e,r){return{"text-bg-success":e,"text-bg-danger":r}};function an(e,r){if(1&e&&(t.j41(0,"tr")(1,"th",24),t.EFF(2),t.k0s(),t.j41(3,"td",25),t.EFF(4),t.k0s(),t.j41(5,"td",25),t.EFF(6),t.k0s(),t.j41(7,"td",25)(8,"span",26),t.EFF(9),t.k0s()(),t.j41(10,"td",25),t.EFF(11),t.k0s(),t.j41(12,"td",25),t.EFF(13),t.k0s()()),2&e){const n=r.$implicit;t.R7$(2),t.JRh(n.id),t.R7$(2),t.JRh(n.amount),t.R7$(2),t.JRh(n.processor),t.R7$(2),t.Y8G("ngClass",t.l_i(7,X,"complete"===n.status.toLowerCase(),"cancelled"===n.status.toLowerCase()||"denied"===n.status.toLowerCase())),t.R7$(1),t.SpI(" ",n.status,""),t.R7$(2),t.JRh(n.ts),t.R7$(2),t.JRh(n.descriptor)}}function ln(e,r){if(1&e&&(t.j41(0,"div")(1,"div",13)(2,"div"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,rn,14,3,"div",14),t.k0s(),t.j41(6,"div",15)(7,"table",16)(8,"thead")(9,"tr")(10,"th",17),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"th",17),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"th",17),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"th",17),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.j41(22,"th",17),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.j41(25,"th",17),t.EFF(26),t.nI1(27,"translate"),t.k0s()()(),t.j41(28,"tbody",18),t.DNE(29,an,14,10,"tr",19),t.k0s()()()()),2&e){const n=t.XpG(2);t.R7$(3),t.Lme("",n.depositTransactions.length," ",t.bMT(4,10,"ACCOUNT.HISTORY.RESULTS"),""),t.R7$(2),t.Y8G("ngIf",n.depositTransactions.length>=n.count||0!==n.currentPage),t.R7$(6),t.JRh(t.bMT(12,12,"ACCOUNT.HISTORY.ID")),t.R7$(3),t.JRh(t.bMT(15,14,"ACCOUNT.HISTORY.AMOUNT")),t.R7$(3),t.JRh(t.bMT(18,16,"ACCOUNT.HISTORY.PROCESSOR")),t.R7$(3),t.JRh(t.bMT(21,18,"ACCOUNT.HISTORY.STATUS")),t.R7$(3),t.JRh(t.bMT(24,20,"ACCOUNT.HISTORY.DATE")),t.R7$(3),t.JRh(t.bMT(27,22,"ACCOUNT.HISTORY.DESCRIPTOR")),t.R7$(3),t.Y8G("ngForOf",n.depositTransactions)}}function cn(e,r){1&e&&t.eu8(0)}function dn(e,r){if(1&e&&(t.j41(0,"div"),t.DNE(1,cn,1,0,"ng-container",27),t.k0s()),2&e){t.XpG(2);const n=t.sdS(12);t.R7$(1),t.Y8G("ngTemplateOutlet",n)}}function mn(e,r){1&e&&t.eu8(0)}function pn(e,r){if(1&e&&(t.j41(0,"div"),t.DNE(1,mn,1,0,"ng-container",27),t.k0s()),2&e){t.XpG(2);const n=t.sdS(12);t.R7$(1),t.Y8G("ngTemplateOutlet",n)}}function un(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",20)(1,"span"),t.EFF(2),t.k0s(),t.j41(3,"div",21)(4,"button",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG(3);return t.Njj(s.goToPage(s.currentPage-1))}),t.j41(5,"span",23),t.EFF(6," < "),t.k0s(),t.j41(7,"span",10),t.EFF(8,"Previous"),t.k0s()(),t.j41(9,"button",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG(3);return t.Njj(s.goToPage(s.currentPage+1))}),t.j41(10,"span",23),t.EFF(11," > "),t.k0s(),t.j41(12,"span",10),t.EFF(13,"Next"),t.k0s()()()()}if(2&e){const n=t.XpG(3);t.R7$(2),t.SpI("Page ",n.currentPage+1,""),t.R7$(2),t.Y8G("disabled",0===n.currentPage),t.R7$(5),t.Y8G("disabled",0!==n.currentPage&&(!n.hasMoreData||n.wagerTransactions.length<n.count))}}function _n(e,r){if(1&e&&(t.j41(0,"tr")(1,"th",28),t.EFF(2),t.k0s(),t.j41(3,"td",25)(4,"span",29),t.EFF(5),t.k0s()(),t.j41(6,"td",25),t.EFF(7),t.k0s(),t.j41(8,"td",25),t.EFF(9),t.k0s(),t.j41(10,"td",25),t.EFF(11),t.k0s()()),2&e){const n=r.$implicit;t.R7$(2),t.JRh(n.id),t.R7$(2),t.Y8G("ngClass",t.l_i(6,X,n.amount>=0,n.amount<0)),t.R7$(1),t.SpI(" ",n.amount," "),t.R7$(2),t.JRh(n.wagered),t.R7$(2),t.JRh(n.game),t.R7$(2),t.JRh(n.ts)}}function fn(e,r){if(1&e&&(t.j41(0,"div")(1,"div",13)(2,"div"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,un,14,3,"div",14),t.k0s(),t.j41(6,"div",15)(7,"table",16)(8,"thead")(9,"tr")(10,"th",17),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"th",17),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"th",17),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"th",17),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.j41(22,"th",17),t.EFF(23),t.nI1(24,"translate"),t.k0s()()(),t.j41(25,"tbody",18),t.DNE(26,_n,12,9,"tr",19),t.k0s()()()()),2&e){const n=t.XpG(2);t.R7$(3),t.Lme("",n.wagerTransactions.length," ",t.bMT(4,9,"ACCOUNT.HISTORY.RESULTS"),""),t.R7$(2),t.Y8G("ngIf",n.wagerTransactions.length>=n.count||0!==n.currentPage),t.R7$(6),t.JRh(t.bMT(12,11,"ACCOUNT.HISTORY.ID")),t.R7$(3),t.JRh(t.bMT(15,13,"ACCOUNT.HISTORY.WAGERED_AMOUNT")),t.R7$(3),t.JRh(t.bMT(18,15,"ACCOUNT.HISTORY.WAGERED")),t.R7$(3),t.JRh(t.bMT(21,17,"ACCOUNT.HISTORY.GAME")),t.R7$(3),t.JRh(t.bMT(24,19,"ACCOUNT.HISTORY.DATE")),t.R7$(3),t.Y8G("ngForOf",n.wagerTransactions)}}function hn(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",20)(1,"span"),t.EFF(2),t.k0s(),t.j41(3,"div",21)(4,"button",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG(3);return t.Njj(s.goToPage(s.currentPage-1))}),t.j41(5,"span",23),t.EFF(6," < "),t.k0s(),t.j41(7,"span",10),t.EFF(8,"Previous"),t.k0s()(),t.j41(9,"button",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG(3);return t.Njj(s.goToPage(s.currentPage+1))}),t.j41(10,"span",23),t.EFF(11," > "),t.k0s(),t.j41(12,"span",10),t.EFF(13,"Next"),t.k0s()()()()}if(2&e){const n=t.XpG(3);t.R7$(2),t.SpI("Page ",n.currentPage+1,""),t.R7$(2),t.Y8G("disabled",0===n.currentPage),t.R7$(5),t.Y8G("disabled",0!==n.currentPage&&(!n.hasMoreData||n.promotionTransactions.length<n.count))}}const Tn=function(e,r,n){return{"text-bg-primary":e,"text-bg-success":r,"text-bg-danger":n}};function gn(e,r){if(1&e&&(t.j41(0,"tr")(1,"td",25),t.EFF(2),t.k0s(),t.j41(3,"td",25)(4,"span",26),t.EFF(5),t.k0s()(),t.j41(6,"td",25),t.EFF(7),t.k0s(),t.j41(8,"td",25),t.EFF(9),t.k0s(),t.j41(10,"td",25),t.EFF(11),t.k0s()()),2&e){const n=r.$implicit;t.R7$(2),t.JRh(n.name),t.R7$(2),t.Y8G("ngClass",t.sMw(6,Tn,"eligible"===n.promotionStatus.toLowerCase(),"complete"===n.promotionStatus.toLowerCase()||"active"===n.promotionStatus.toLowerCase(),"claimed"===n.promotionStatus.toLowerCase()||"expired"===n.promotionStatus.toLowerCase())),t.R7$(1),t.SpI(" ",n.promotionStatus,""),t.R7$(2),t.JRh(n.eligibleTs),t.R7$(2),t.JRh(n.activatedTs),t.R7$(2),t.JRh(n.completionTs)}}function Cn(e,r){if(1&e&&(t.j41(0,"div")(1,"div",13)(2,"div"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,hn,14,3,"div",14),t.k0s(),t.j41(6,"div",15)(7,"table",16)(8,"thead")(9,"tr")(10,"th",17),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"th",17),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"th",17),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"th",17),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.j41(22,"th",17),t.EFF(23),t.nI1(24,"translate"),t.k0s()()(),t.j41(25,"tbody",18),t.DNE(26,gn,12,10,"tr",19),t.k0s()()()()),2&e){const n=t.XpG(2);t.R7$(3),t.Lme("",n.promotionTransactions.length," ",t.bMT(4,9,"ACCOUNT.HISTORY.RESULTS"),""),t.R7$(2),t.Y8G("ngIf",n.promotionTransactions.length>=n.count||0!==n.currentPage),t.R7$(6),t.JRh(t.bMT(12,11,"ACCOUNT.HISTORY.PROMO_NAME")),t.R7$(3),t.JRh(t.bMT(15,13,"ACCOUNT.HISTORY.STATUS")),t.R7$(3),t.JRh(t.bMT(18,15,"ACCOUNT.HISTORY.ELIGIBLE_TS")),t.R7$(3),t.JRh(t.bMT(21,17,"ACCOUNT.HISTORY.ACTIVATED_TS")),t.R7$(3),t.JRh(t.bMT(24,19,"ACCOUNT.HISTORY.COMPLETION_TS")),t.R7$(3),t.Y8G("ngForOf",n.promotionTransactions)}}function Rn(e,r){if(1&e&&(t.j41(0,"div"),t.qex(1,11),t.DNE(2,ln,30,24,"div",12),t.DNE(3,dn,2,1,"div",12),t.DNE(4,pn,2,1,"div",12),t.DNE(5,fn,27,21,"div",12),t.DNE(6,Cn,27,21,"div",12),t.bVm(),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.Y8G("ngSwitch",n.type),t.R7$(1),t.Y8G("ngSwitchCase","deposits"),t.R7$(1),t.Y8G("ngSwitchCase","withdrawals"),t.R7$(1),t.Y8G("ngSwitchCase","reversals"),t.R7$(1),t.Y8G("ngSwitchCase","wagers"),t.R7$(1),t.Y8G("ngSwitchCase","promotions")}}function En(e,r){1&e&&(t.j41(0,"div",31)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"h4"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&e&&(t.R7$(2),t.JRh(t.bMT(3,2,"ACCOUNT.HISTORY.NO_TRANSACTION_MESSAGE")),t.R7$(3),t.JRh(t.bMT(6,4,"ACCOUNT.HISTORY.NO_TRANSACTION_TIP")))}function bn(e,r){if(1&e&&t.DNE(0,En,7,6,"div",30),2&e){const n=t.XpG();t.Y8G("ngIf",!n.isLoading)}}function vn(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",20)(1,"span"),t.EFF(2),t.k0s(),t.j41(3,"div",21)(4,"button",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG(2);return t.Njj(s.goToPage(s.currentPage-1))}),t.j41(5,"span",23),t.EFF(6," < "),t.k0s(),t.j41(7,"span",10),t.EFF(8,"Previous"),t.k0s()(),t.j41(9,"button",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG(2);return t.Njj(s.goToPage(s.currentPage+1))}),t.j41(10,"span",23),t.EFF(11," > "),t.k0s(),t.j41(12,"span",10),t.EFF(13,"Next"),t.k0s()()()()}if(2&e){const n=t.XpG(2);t.R7$(2),t.SpI("Page ",n.currentPage+1,""),t.R7$(2),t.Y8G("disabled",0===n.currentPage),t.R7$(5),t.Y8G("disabled",0!==n.currentPage&&(!n.hasMoreData||n.withdrawalTransactions.length<n.count))}}function In(e,r){if(1&e&&(t.j41(0,"tr")(1,"th",24),t.EFF(2),t.k0s(),t.j41(3,"td",25),t.EFF(4),t.k0s(),t.j41(5,"td",25)(6,"span",26),t.EFF(7),t.k0s()(),t.j41(8,"td",25),t.EFF(9),t.k0s(),t.j41(10,"td",25),t.EFF(11),t.k0s()()),2&e){const n=r.$implicit;t.R7$(2),t.JRh(n.id),t.R7$(2),t.JRh(n.amount),t.R7$(2),t.Y8G("ngClass",t.l_i(6,X,"complete"===n.status.toLowerCase(),"cancelled"===n.status.toLowerCase()||"denied"===n.status.toLowerCase())),t.R7$(1),t.SpI(" ",n.status,""),t.R7$(2),t.JRh(n.processor),t.R7$(2),t.JRh(n.ts)}}function Fn(e,r){if(1&e&&(t.j41(0,"div",13)(1,"div"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,vn,14,3,"div",14),t.k0s(),t.j41(5,"div",15)(6,"table",16)(7,"thead")(8,"tr")(9,"th",17),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"th",17),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"th",17),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"th",17),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"th",17),t.EFF(22),t.nI1(23,"translate"),t.k0s()()(),t.j41(24,"tbody",18),t.DNE(25,In,12,9,"tr",19),t.k0s()()()),2&e){const n=t.XpG();t.R7$(2),t.Lme("",n.withdrawalTransactions.length," ",t.bMT(3,9,"ACCOUNT.HISTORY.RESULTS"),""),t.R7$(2),t.Y8G("ngIf",n.withdrawalTransactions.length>=n.count||0!==n.currentPage),t.R7$(6),t.JRh(t.bMT(11,11,"ACCOUNT.HISTORY.ID")),t.R7$(3),t.JRh(t.bMT(14,13,"ACCOUNT.HISTORY.AMOUNT")),t.R7$(3),t.JRh(t.bMT(17,15,"ACCOUNT.HISTORY.STATUS")),t.R7$(3),t.JRh(t.bMT(20,17,"ACCOUNT.HISTORY.PROCESSOR")),t.R7$(3),t.JRh(t.bMT(23,19,"ACCOUNT.HISTORY.DATE")),t.R7$(3),t.Y8G("ngForOf",n.withdrawalTransactions)}}let $=(()=>{var e;
3class r{constructor(o,s,i,a,c){this.activatedRoute=o,this.userService=s,this.toastr=i,this.translate=a,this.authService=c,this.type="",this.fromDate=null,this.toDate=null,this.isLoading=!0,this.count=20,this.currentPage=0,this.hasMoreData=!0,this.depositTransactions=[],this.withdrawalTransactions=[],this.wagerTransactions=[],this.promotionTransactions=[]}ngOnInit(){var o;let s=null===(o=this.activatedRoute.snapshot.routeConfig)||void 0===o?void 0:o.path;s&&(this.type=s)}getHistory(){this.isLoading=!0;const o={};this.fromDate&&(o.startTs=`${this.fromDate.year}-${this.fromDate.month<10?"0":""}${this.fromDate.month}-${this.fromDate.day<10?"0":""}${this.fromDate.day} 00:00:00`),this.toDate&&(o.endTs=`${this.toDate.year}-${this.toDate.month<10?"0":""}${this.toDate.month}-${this.toDate.day<10?"0":""}${this.toDate.day} 23:59:59`),o.count=this.count,o.offset=this.currentPage*this.count,this.type&&this.userService.getTransactionHistory(this.type,o).subscribe({next:s=>{switch(this.isLoading=!1,this.type){case"deposits":s.deposits&&(0!==this.currentPage&&0===s.deposits.length?(this.currentPage--,this.hasMoreData=!1):this.depositTransactions=s.deposits);break;case"withdrawals":s.withdrawals&&(0!==this.currentPage&&0===s.withdrawals.length?(this.currentPage--,this.hasMoreData=!1):this.withdrawalTransactions=s.withdrawals);break;case"reversals":s.reversals&&(0!==this.currentPage&&0===s.reversals.length?(this.currentPage--,this.hasMoreData=!1):this.withdrawalTransactions=s.reversals);break;case"wagers":s.wagers&&(0!==this.currentPage&&0===s.wagers.length?(this.currentPage--,this.hasMoreData=!1):this.wagerTransactions=s.wagers);break;case"promotions":s.promotions&&(0!==this.currentPage&&0===s.promotions.length?(this.currentPage--,this.hasMoreData=!1):this.promotionTransactions=s.promotions);break;default:this.depositTransactions=[],this.withdrawalTransactions=[],this.wagerTransactions=[],this.promotionTransactions=[]}},error:s=>{var i;switch(this.isLoading=!1,s.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(i=s.message)&&void 0!==i?i:"AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_TIP"),this.translate.instant("ACCOUNT.HISTORY.TOASTR_ERROR_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_TIP"),this.translate.instant("ACCOUNT.HISTORY.TOASTR_ERROR_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}})}goToPage(o){o<0||(this.currentPage=o,this.getHistory())}onDateRangeChange(o){o.fromDate&&(this.fromDate=o.fromDate),this.toDate=o.toDate,this.currentPage=0,this.hasMoreData=!0,this.getHistory()}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(R.nX),t.rXU(v.D),t.rXU(F.tw),t.rXU(f.c$),t.rXU(I.u))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-history-type"]],decls:13,vars:6,consts:[[1,"p-2","p-md-3"],[1,"h3","fw-bold","mb-4"],[1,"d-flex","justify-content-center","mb-4"],[3,"dateRangeChange"],["class","text-center",4,"ngIf"],[4,"ngIf","ngIfElse"],["noTransactionBlock",""],["withdrawalOrReversalBlock",""],[1,"text-center"],["role","status",1,"spinner-border"],[1,"visually-hidden"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"d-flex","justify-content-between","align-items-center","text-muted","mb-2"],["class","d-flex align-items-center",4,"ngIf"],[1,"table-responsive"],[1,"table","table-striped","table-borderless","align-middle"],["scope","col"],[1,"table-group-divider"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center"],[1,"d-flex","flex-nowrap"],["type","button",1,"btn","btn-secondary","btn-sm","m-start-2","py-1","px-3",3,"disabled","click"],["aria-hidden","true",1,""],["scope","row",1,"fw-light"],[1,"fw-light"],[1,"badge","text-bg-secondary",3,"ngClass"],[4,"ngTemplateOutlet"],["scope","row",1,"fw-light","py-4"],[1,"badge","text-bg-secondary","w-100",3,"ngClass"],["class","container text-center pt-3 pb-5",4,"ngIf"],[1,"container","text-center","pt-3","pb-5"]],template:function(o,s){if(1&o&&(t.j41(0,"section",0)(1,"h1",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",2)(5,"app-date-range-picker",3),t.bIt("dateRangeChange",function(a){return s.onDateRangeChange(a)}),t.k0s()(),t.nrm(6,"hr"),t.DNE(7,sn,4,0,"div",4),t.DNE(8,Rn,7,6,"div",5),t.DNE(9,bn,1,1,"ng-template",null,6,t.C5r),t.DNE(11,Fn,26,21,"ng-template",null,7,t.C5r),t.k0s()),2&o){const i=t.sdS(10);t.R7$(2),t.JRh(t.bMT(3,4,"ACCOUNT.HISTORY."+s.type.toUpperCase())),t.R7$(5),t.Y8G("ngIf",s.isLoading),t.R7$(1),t.Y8G("ngIf",!s.isLoading&&(s.depositTransactions.length||s.withdrawalTransactions.length||s.wagerTransactions.length||s.promotionTransactions.length))("ngIfElse",i)}},dependencies:[u.YU,u.Sq,u.bT,u.T3,u.ux,u.e1,on,f.D9]}),r})();var j=h(271),Y=h(1318),B=h(7919),Sn=h(6443),On=h(3722);let J=(()=>{var e;
3class r{constructor(o,s,i){this.http=o,this.configs=s,this.errorMapper=i}getProcessors(){return this.http.post(`${this.configs.apiUrl}`,{jsonrpc:"2.0",id:this.configs.casinoId,method:"cashier.processors",params:{}}).pipe((0,j.T)(o=>{if("result"in o&&"processors"in o.result)return o.result;throw o}),(0,Y.W)(o=>(0,B.$)(()=>this.errorMapper.mapAPIerrors(o))))}deposit(o){return this.http.post(`${this.configs.apiUrl}`,{jsonrpc:"2.0",id:this.configs.casinoId,method:"cashier.deposit",params:o}).pipe((0,j.T)(s=>{if("result"in s&&"status"in s.result)return s.result;throw s}),(0,Y.W)(s=>(0,B.$)(()=>this.errorMapper.mapAPIerrors(s))))}withdraw(o){return this.http.post(`${this.configs.apiUrl}`,{jsonrpc:"2.0",id:this.configs.casinoId,method:"cashier.withdraw",params:o}).pipe((0,j.T)(s=>{if("result"in s&&"amount"in s.result)return s.result;throw s}),(0,Y.W)(s=>(0,B.$)(()=>this.errorMapper.mapAPIerrors(s))))}reverseWithdrawal(o){return this.http.post(`${this.configs.apiUrl}`,{jsonrpc:"2.0",id:this.configs.casinoId,method:"cashier.reverseWithdrawal",params:o}).pipe((0,j.T)(s=>{if("result"in s)return s.result;throw s}),(0,Y.W)(s=>(0,B.$)(()=>this.errorMapper.mapAPIerrors(s))))}claimComps(){return this.http.post(`${this.configs.apiUrl}`,{jsonrpc:"2.0",id:this.configs.casinoId,method:"cashier.claimComps",params:{}}).pipe((0,j.T)(o=>{if("result"in o)return o.result;throw o}),(0,Y.W)(o=>(0,B.$)(()=>this.errorMapper.mapAPIerrors(o))))}}return(e=r).\u0275fac=function(o){return new(o||e)(t.KVO(Sn.Qq),t.KVO(D.w),t.KVO(On.x))},e.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),r})();var V=h(5455),ht=h(4726);let Tt=(()=>{var e;class r{constructor(o){this.modalService=o,this.processor=null}closeModal(){this.modalService.close("processorInfoModal")}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(V.B))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-legal-info-modal"]],inputs:{processor:"processor"},decls:14,vars:5,consts:[["id","processorInfoModal","tabindex","-1","aria-labelledby","processorInfoModalLabel",1,"modal","fade"],[1,"modal-dialog","modal
3-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["id","processorInfoModalLabel",1,"modal-title","fs-5"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body","p-4"],[1,"mb-0","text-darker"],[1,"text-center","pb-4"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(o,s){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),t.EFF(5),t.k0s(),t.j41(6,"button",5),t.bIt("click",function(){return s.closeModal()}),t.k0s()(),t.j41(7,"div",6)(8,"p",7),t.EFF(9),t.k0s()(),t.j41(10,"div",8)(11,"a",9),t.bIt("click",function(){return s.closeModal()}),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()()()),2&o&&(t.R7$(5),t.JRh(null==s.processor?null:s.processor.method),t.R7$(4),t.JRh((null==s.processor?null:s.processor.legal)||(null==s.processor?null:s.processor.info)),t.R7$(3),t.JRh(t.bMT(13,3,"ACCOUNT.MESSAGES.OK_BTN")))},dependencies:[f.D9]}),r})();function Nn(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.PROMO.WARNING")))}const An=function(e){return{promoName:e}};function kn(e,r){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&e){const n=t.XpG(2);let o;t.R7$(1),t.Lme("",t.i5U(2,2,"ACCOUNT.PROMO.WARNING_CLAIMED",t.eq3(7,An,null==(o=n.activeOrClaimedPromotion())?null:o.name))," ",t.bMT(3,5,"ACCOUNT.PROMO.WARNING_CLAIMED_TIP"),"")}}function yn(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&e&&(t.R7$(1),t.Lme("",t.bMT(2,2,"ACCOUNT.PROMO.WARNING_ACTIVE")," ",t.bMT(3,4,"ACCOUNT.PROMO.WARNING_ACTIVE_TIP"),""))}function Gn(e,r){if(1&e&&(t.j41(0,"div"),t.DNE(1,kn,4,9,"span",2),t.DNE(2,yn,4,6,"span",2),t.j41(3,"a",6),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&e){const n=t.XpG();let o,s;t.R7$(1),t.Y8G("ngIf","claimed"===(null==(o=n.activeOrClaimedPromotion())?null:o.state)),t.R7$(1),t.Y8G("ngIf","active"===(null==(s=n.activeOrClaimedPromotion())?null:s.state)),t.R7$(2),t.SpI(" ",t.bMT(5,3,"ACCOUNT.PROMO.SHOW_DETAILS"),"")}}function Un(e,r){if(1&e){const n=t.RV6();t.j41(0,"i",26),t.bIt("click",function(s){t.eBV(n);const i=t.XpG(2).$implicit,a=t.XpG(2);return t.Njj(a.openProcessorInfoModal(s,i))}),t.k0s()}}function Mn(e,r){if(1&e&&(t.j41(0,"h5",24),t.EFF(1),t.DNE(2,Un,1,0,"i",25),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(1),t.SpI(" ",n.method," "),t.R7$(1),t.Y8G("ngIf",n.legal||n.info)}}function wn(e,r){if(1&e&&(t.j41(0,"p",27),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(1),t.JRh(n.deposit.message)}}function xn(e,r){if(1&e&&(t.j41(0,"div",28)(1,"p",29)(2,"small",10),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"small",10),t.EFF(6),t.nI1(7,"currency"),t.k0s()(),t.j41(8,"p",30)(9,"small",10),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"small",10),t.EFF(13),t.nI1(14,"currency"),t.k0s()()()),2&e){const n=t.XpG().$implicit,o=t.XpG(2);t.R7$(3),t.SpI("",t.bMT(4,4,"ACCOUNT.BANK.MIN_LABEL"),":"),t.R7$(3),t.JRh(t.ii3(7,6,null==n.deposit||null==n.deposit.limits?null:n.deposit.limits.min,o.userCurrency(),"symbol","1.0-0")),t.R7$(4),t.SpI("",t.bMT(11,11,"ACCOUNT.BANK.MAX_LABEL"),":"),t.R7$(3),t.JRh(t.ii3(14,13,null==n.deposit||null==n.deposit.limits?null:n.deposit.limits.max,o.userCurrency(),"symbol","1.0-0"))}}function Pn(e,r){if(1&e&&(t.qex(0),t.j41(1,"div",28)(2,"p",31)(3,"small",10),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"p",32)(7,"small",10),t.EFF(8),t.k0s()()(),t.bVm()),2&e){const n=t.XpG(3);let o;t.R7$(4),t.SpI("",t.bMT(5,2,"ACCOUNT.BANK.COMPPOINTS_LABEL"),":"),t.R7$(4),t.JRh(null!==(o=n.compBalance())&&void 0!==o?o:0)}}function Dn(e,r){if(1&e&&(t.qex(0),t.j41(1,"div",28)(2,"p",31)(3,"small",10),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"p",32)(7,"small",10),t.EFF(8),t.nI1(9,"currency"),t.k0s()()(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(4),t.SpI("",t.bMT(5,2,"ACCOUNT.BANK.REVERSE_WITHDRAWAL_TITLE"),":"),t.R7$(4),t.JRh(t.ii3(9,4,n.pendingWithdrawalAmount,n.userCurrency(),"symbol","1.0-0"))}}const Ln=function(){return{outline:"2px solid var(--bs-primary)"}},$n=function(){return{}};function jn(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",14),t.bIt("click",function(){const i=t.eBV(n).index,a=t.XpG(2);return t.Njj(a.selectMethod(i))}),t.j41(1,"div",15)(2,"div",16)(3,"div",17)(4,"div",18),t.DNE(5,Mn,3,2,"h5",19),t.DNE(6,wn,2,1,"p",20),t.k0s(),t.j41(7,"div",21),t.nrm(8,"img",22),t.k0s()()(),t.DNE(9,xn,15,18,"div",23),t.DNE(10,Pn,9,4,"ng-container",2),t.DNE(11,Dn,10,9,"ng-container",2),t.k0s()()}if(2&e){const n=r.$implicit,o=r.index,s=t.XpG(2);t.R7$(1),t.Y8G("ngStyle",null!==s.selectedMethodId&&s.selectedMethodId===o?t.lJ4(8,Ln):t.lJ4(9,$n)),t.R7$(4),t.Y8G("ngIf","compPoints"!==n.method&&"pendingWithdrawal"!==n.method),t.R7$(1),t.Y8G("ngIf",n.deposit&&n.deposit.message),t.R7$(2),t.Y8G("src",n.logoUrl,t.B4B)("alt",n.method+" image"),t.R7$(1),t.Y8G("ngIf",s.user()&&"compPoints"!==n.method&&"pendingWithdrawal"!==n.method),t.R7$(1),t.Y8G("ngIf",null!==s.compBalance()&&"compPoints"===n.method),t.R7$(1),t.Y8G("ngIf",s.user()&&"pendingWithdrawal"===n.method)}}function Yn(e,r){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"input",50),t.bIt("change",function(){const i=t.eBV(n).$implicit,a=t.XpG(3);return t.Njj(null==a.amount?null:a.amount.setValue(i))}),t.k0s(),t.j41(2,"label",51),t.EFF(3),t.nI1(4,"currency"),t.k0s(),t.bVm()}if(2&e){const n=r.$implicit,o=t.XpG(3);t.R7$(1),t.Y8G("id","option"+n)("value",n)("checked",(null==o.amount?null:o.amount.value)===n),t.R7$(1),t.Y8G("for","option"+n),t.R7$(1),t.SpI(" ",t.ii3(4,5,n,o.userCurrency(),"symbol","1.0-0")," ")}}function Bn(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.BANK.AMOUNT_MINMAX_FEEDBACK")))}function Hn(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.BANK.AMOUNT_REQUIRED_FEEDBACK")))}function Xn(e,r){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(3);t.R7$(1),t.JRh(null==n.amount?null:n.amount.getError("validationErrorFromServer"))}}function Jn(e,r){1&e&&(t.j41(0,"span",52),t.nrm(1,"i",53),t.EFF(2,"(EURO)"),t.k0s())}function Vn(e,r){1&e&&(t.j41(0,"span",54),t.nrm(1,"i",55),t.EFF(2,"(USD)"),t.k0s())}function Wn(e,r){1&e&&(t.j41(0,"span",54),t.nrm(1,"i",55),t.EFF(2,"(AUD)"),t.k0s())}function qn(e,r){1&e&&(t.j41(0,"span",54),t.nrm(1,"i",55),t.EFF(2,"(NZD)"),t.k0s())}function Kn(e,r){1&e&&(t.j41(0,"span",54),t.nrm(1,"i",56),t.EFF(2,"(GBP)"),t.k0s())}function Qn(e,r){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(3);t.R7$(1),t.JRh(n.userCurrency())}}const G=function(e){return{"is-invalid":e}};function zn(e,r){if(1&e&&(t.qex(0),t.j41(1,"label",63),t.EFF(2),t.k0s(),t.nrm(3,"input",64),t.bVm()),2&e){const n=t.XpG(2).$implicit,o=t.XpG(4);let s;t.R7$(1),t.Y8G("for",n.id),t.R7$(1),t.JRh(n.label),t.R7$(1),t.Y8G("id",n.id)("placeholder",n.label)("formControlName",n.id)("required",n.required)("ngClass",t.eq3(7,G,o.submittedForm&&(null==(s=o.amountForm.get(n.id))?null:s.invalid)))}}function Zn(e,r){if(1&e&&t.nrm(0,"input",66),2&e){const n=t.XpG(3).$implicit,o=t.XpG(4);let s;t.Y8G("id",n.id)("placeholder",n.label)("formControlName",n.id)("required",n.required)("ngClass",t.eq3(5,G,o.submittedForm&&(null==(s=o.amountForm.get(n.id))?null:s.invalid)))}}function to(e,r){if(1&e&&(t.qex(0),t.j41(1,"label",63),t.EFF(2),t.k0s(),t.DNE(3,Zn,1,7,"input",65),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(1),t.Y8G("for",n.id),t.R7$(1),t.JRh(n.label),t.R7$(1),t.Y8G("ngSwitchCase","int")}}function eo(e,r){if(1&e&&(t.qex(0),t.j41(1,"div",67),t.nrm(2,"input",68),t.j41(3,"label",69),t.EFF(4),t.k0s()(),t.bVm()),2&e){const n=t.XpG(2).$implicit,o=t.XpG(4);let s;t.R7$(2),t.Y8G("id",n.id)("formControlName",n.id)("required",n.required)("ngClass",t.eq3(6,G,o.submittedForm&&(null==(s=o.amountForm.get(n.id))?null:s.invalid))),t.R7$(1),t.Y8G("for",n.id),t.R7$(1),t.SpI(" ",n.label," ")}}function no(e,r){if(1&e&&(t.j41(0,"option",74),t.EFF(1),t.k0s()),2&e){const n=r.$implicit,o=t.XpG(4).$implicit;t.Y8G("value",n),t.R7$(1),t.JRh(o.properties.options[n])}}function oo(e,r){if(1&e&&(t.j41(0,"select",71)(1,"option",72),t.EFF(2,"Please select an option"),t.k0s(),t.DNE(3,no,2,2,"option",73),t.k0s()),2&e){const n=t.XpG(3).$implicit,o=t.XpG(4);let s;t.Y8G("id",n.id)("formControlName",n.id)("required",n.required)("ngClass",t.eq3(5,G,o.submittedForm&&(null==(s=o.amountForm.get(n.id))?null:s.invalid))),t.R7$(3),t.Y8G("ngForOf",o.Object.keys(n.properties.options))}}function so(e,r){if(1&e){const n=t.RV6();t.j41(0,"div")(1,"div",67)(2,"input",75),t.bIt("change",function(s){t.eBV(n);const i=t.XpG(4).$implicit,a=t.XpG(4);return t.Njj(a.onCheckboxChange(s,i.id))}),t.k0s(),t.j41(3,"label",69),t.EFF(4),t.k0s()()()}if(2&e){const n=r.$implicit,o=t.XpG(4).$implicit,s=t.XpG(4);let i;t.R7$(2),t.Y8G("id",o.id+"_"+n)("value",n)("ngClass",t.eq3(5,G,s.submittedForm&&(null==(i=s.amountForm.get(o.id))?null:i.invalid))),t.R7$(1),t.Y8G("for",o.id+"_"+n),t.R7$(1),t.JRh(o.properties.options[n])}}function ro(e,r){if(1&e&&(t.j41(0,"div"),t.DNE(1,so,5,7,"div",35),t.k0s()),2&e){const n=t.XpG(3).$implicit,o=t.XpG(4);t.R7$(1),t.Y8G("ngForOf",o.Object.keys(n.properties.options))}}function io(e,r){if(1&e&&(t.qex(0),t.j41(1,"label",63),t.EFF(2),t.k0s(),t.DNE(3,oo,4,7,"select",70),t.DNE(4,ro,2,1,"div",2),t.bVm()),2&e){const n=t.XpG(2).$implicit,o=t.XpG(4);t.R7$(1),t.Y8G("for",n.id),t.R7$(1),t.JRh(n.label),t.R7$(1),t.Y8G("ngIf",o.isOptionFieldType(n)&&!n.properties.canSelectMultiple),t.R7$(1),t.Y8G("ngIf",o.isOptionFieldType(n)&&n.properties.canSelectMultiple)}}function ao(e,r){if(1&e&&(t.qex(0,42),t.DNE(1,zn,4,9,"ng-container",62),t.DNE(2,to,4,3,"ng-container",62),t.DNE(3,eo,5,8,"ng-container",62),t.DNE(4,
3io,5,4,"ng-container",62),t.bVm()),2&e){const n=t.XpG().$implicit;t.Y8G("ngSwitch",n.type),t.R7$(1),t.Y8G("ngSwitchCase","string"),t.R7$(1),t.Y8G("ngSwitchCase","int"),t.R7$(1),t.Y8G("ngSwitchCase","bool"),t.R7$(1),t.Y8G("ngSwitchCase","option")}}function lo(e,r){if(1&e&&(t.j41(0,"div",40),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit,o=t.XpG(4);let s;t.R7$(1),t.SpI(" ",null==(s=o.amountForm.get(n.id))?null:s.getError("validationErrorFromServer")," ")}}function co(e,r){if(1&e&&(t.j41(0,"div",59),t.DNE(1,ao,5,5,"ng-container",60),t.DNE(2,lo,2,1,"div",61),t.k0s()),2&e){const n=r.$implicit,o=t.XpG(4);let s;t.R7$(1),t.Y8G("ngIf","value"!==n.type),t.R7$(1),t.Y8G("ngIf",null==(s=o.amountForm.get(n.id))?null:s.hasError("validationErrorFromServer"))}}function mo(e,r){if(1&e&&(t.j41(0,"div",33)(1,"div",57),t.DNE(2,co,3,2,"div",58),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(2),t.Y8G("ngForOf",n.extraFieldsForMethod)}}function po(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"uppercase"),t.nI1(3,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,t.bMT(3,3,"ACCOUNT.BANK.DEPOSIT"))))}function uo(e,r){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"div",8)(2,"p",9),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",10),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",33)(9,"div",34),t.DNE(10,Yn,5,10,"ng-container",35),t.k0s(),t.j41(11,"div",17),t.nrm(12,"span",36),t.j41(13,"span",37),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"div",38)(17,"div",36),t.nrm(18,"input",39),t.nI1(19,"translate"),t.j41(20,"div",40),t.DNE(21,Bn,3,3,"span",2),t.DNE(22,Hn,3,3,"span",2),t.DNE(23,Xn,2,1,"span",2),t.k0s()(),t.j41(24,"label",41),t.qex(25,42),t.DNE(26,Jn,3,0,"span",43),t.DNE(27,Vn,3,0,"span",44),t.DNE(28,Wn,3,0,"span",44),t.DNE(29,qn,3,0,"span",44),t.DNE(30,Kn,3,0,"span",44),t.DNE(31,Qn,2,1,"span",45),t.bVm(),t.k0s()()(),t.DNE(32,mo,3,1,"div",46),t.j41(33,"div",47)(34,"button",48),t.bIt("click",function(){t.eBV(n);const s=t.XpG(2);return t.Njj(s.submitForm())}),t.DNE(35,po,4,5,"span",49),t.k0s()(),t.bVm()}if(2&e){const n=t.XpG(2),o=t.sdS(6);let s;t.R7$(3),t.JRh(t.bMT(4,19,"ACCOUNT.BANK.AMOUNT_LABEL")),t.R7$(3),t.JRh(null!==(s=n.processorInfo)&&void 0!==s?s:t.bMT(7,21,"ACCOUNT.BANK.AMOUNT_INFO")),t.R7$(4),t.Y8G("ngForOf",n.predefinedAmounts),t.R7$(4),t.JRh(t.bMT(15,23,"AUTH.REGISTER.CURRENCY_LABEL")),t.R7$(4),t.FS9("placeholder",t.bMT(19,25,"ACCOUNT.BANK.AMOUNT_PLACEHOLDER")),t.Y8G("ngClass",t.eq3(27,G,n.submittedForm&&(null==n.amount?null:n.amount.invalid))),t.R7$(3),t.Y8G("ngIf",(null==n.amount||null==n.amount.errors?null:n.amount.errors.min)||(null==n.amount||null==n.amount.errors?null:n.amount.errors.max)),t.R7$(1),t.Y8G("ngIf",!(null!=n.amount&&null!=n.amount.errors&&n.amount.errors.min||null!=n.amount&&null!=n.amount.errors&&n.amount.errors.max)),t.R7$(1),t.Y8G("ngIf",!(null!=n.amount&&null!=n.amount.errors&&n.amount.errors.min)&&!(null!=n.amount&&null!=n.amount.errors&&n.amount.errors.max)&&(null==n.amount?null:n.amount.hasError("validationErrorFromServer"))),t.R7$(2),t.Y8G("ngSwitch",n.userCurrency()),t.R7$(1),t.Y8G("ngSwitchCase","EUR"),t.R7$(1),t.Y8G("ngSwitchCase","USD"),t.R7$(1),t.Y8G("ngSwitchCase","AUD"),t.R7$(1),t.Y8G("ngSwitchCase","NZD"),t.R7$(1),t.Y8G("ngSwitchCase","GBP"),t.R7$(2),t.Y8G("ngIf",n.extraFieldsForMethod.length&&1!==n.extraFieldsForMethod.length&&"subProcessorId"!==n.extraFieldsForMethod[0].id),t.R7$(2),t.Y8G("disabled",n.transactionPending),t.R7$(1),t.Y8G("ngIf",!n.transactionPending)("ngIfElse",o)}}function _o(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"uppercase"),t.nI1(3,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,t.bMT(3,3,"ACCOUNT.BANK.COMPPOINTS_TITLE"))))}function fo(e,r){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"div",8)(2,"p",76),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",10),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",8)(9,"p",10),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"div",77),t.nrm(13,"i",1),t.j41(14,"span"),t.EFF(15),t.nI1(16,"translate"),t.k0s()()(),t.j41(17,"div",47)(18,"button",48),t.bIt("click",function(){t.eBV(n);const s=t.XpG(2);return t.Njj(s.claimCompPoints())}),t.DNE(19,_o,4,5,"span",49),t.k0s()(),t.bVm()}if(2&e){const n=t.XpG(2),o=t.sdS(6);let s;t.R7$(3),t.JRh(t.bMT(4,8,"ACCOUNT.BANK.COMPPOINTS_TITLE")),t.R7$(3),t.JRh(t.bMT(7,10,"ACCOUNT.BANK.COMPPOINTS_INFO")),t.R7$(4),t.Lme("",t.bMT(11,12,"ACCOUNT.BANK.COMPPOINTS_INFO2")," (",n.userCurrency(),")."),t.R7$(5),t.JRh(t.bMT(16,14,"ACCOUNT.BANK.COMPPOINTS_WARNING")),t.R7$(3),t.Y8G("disabled",n.transactionPending||(null!==(s=n.compBalance())&&void 0!==s?s:0)<1e3),t.R7$(1),t.Y8G("ngIf",!n.transactionPending)("ngIfElse",o)}}function ho(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.BANK.REVERSE_WITHDRAWAL_BTN_LABEL")))}const To=function(e){return{"w-75":e}};function go(e,r){if(1&e){const n=t.RV6();t.j41(0,"button",91),t.bIt("click",function(){t.eBV(n);const s=t.XpG().$implicit,i=t.XpG(3);return t.Njj(i.reverseWithdrawal(s.id))}),t.DNE(1,ho,3,3,"span",49),t.k0s()}if(2&e){const n=t.XpG(4),o=t.sdS(6);t.Y8G("disabled",n.transactionPending)("ngClass",t.eq3(4,To,n.transactionPending)),t.R7$(1),t.Y8G("ngIf",!n.transactionPending)("ngIfElse",o)}}const gt=function(e){return{"pb-5":e}},Co=function(e,r,n){return{amount:e,processor:r,timestamp:n}};function Ro(e,r){if(1&e&&(t.j41(0,"div",79)(1,"div",80)(2,"div",81)(3,"div",82),t.nrm(4,"img",83),t.j41(5,"div",84)(6,"h2",85),t.nrm(7,"app-svg-icon",86),t.EFF(8),t.nI1(9,"translate"),t.nI1(10,"currency"),t.k0s(),t.nrm(11,"hr",87),t.j41(12,"p",88),t.EFF(13),t.nI1(14,"translate"),t.nI1(15,"currency"),t.k0s()()(),t.j41(16,"div",89),t.DNE(17,go,2,6,"button",90),t.k0s()()()()),2&e){const n=r.$implicit,o=r.index,s=t.XpG(3);t.Y8G("ngClass",t.eq3(21,gt,o===s.pendingWithdrawals.length-1)),t.R7$(7),t.Y8G("pathIdentifier","withdrawal"),t.R7$(1),t.Lme(" ",t.bMT(9,6,"ACCOUNT.BANK.REVERSE_WITHDRAWAL_CARD_TITLE")," ",t.ii3(10,8,s.Math.abs(n.amount),s.userCurrency(),"symbol","1.0-0")," "),t.R7$(5),t.SpI(" ",t.i5U(14,13,"ACCOUNT.BANK.REVERSE_WITHDRAWAL_SUMMARY",t.sMw(23,Co,t.ii3(15,16,s.Math.abs(n.amount),s.userCurrency(),"symbol","1.0-0"),n.processor,n.ts)),""),t.R7$(4),t.Y8G("ngIf","PROCESSING"===n.status)}}function Eo(e,r){if(1&e&&(t.qex(0),t.j41(1,"div",8)(2,"p",76),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",10),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"p",10),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.DNE(11,Ro,18,27,"div",78),t.bVm()),2&e){const n=t.XpG(2);t.R7$(3),t.JRh(t.bMT(4,4,"ACCOUNT.BANK.REVERSE_WITHDRAWAL_TITLE")),t.R7$(3),t.JRh(t.bMT(7,6,"ACCOUNT.BANK.REVERSE_WITHDRAWAL_INFO")),t.R7$(3),t.JRh(t.bMT(10,8,"ACCOUNT.BANK.REVERSE_WITHDRAWAL_INFO2")),t.R7$(2),t.Y8G("ngForOf",n.pendingWithdrawals)}}function bo(e,r){if(1&e&&(t.j41(0,"form",7)(1,"div",8)(2,"p",9),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",10),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",11),t.DNE(9,jn,12,10,"div",12),t.k0s(),t.j41(10,"section",13),t.DNE(11,uo,36,29,"ng-container",2),t.DNE(12,fo,20,16,"ng-container",2),t.DNE(13,Eo,12,10,"ng-container",2),t.k0s()()),2&e){const n=t.XpG();let o;t.Y8G("formGroup",n.amountForm),t.R7$(3),t.JRh(t.bMT(4,8,"ACCOUNT.BANK.PROCESSOR_LABEL")),t.R7$(3),t.JRh(null!==(o=n.processorInfo)&&void 0!==o?o:t.bMT(7,10,"ACCOUNT.BANK.PROCESSOR_INFO")),t.R7$(2),t.Y8G("ngClass",t.eq3(12,gt,null===n.selectedMethodId)),t.R7$(1),t.Y8G("ngForOf",n.depositProcessors),t.R7$(2),t.Y8G("ngIf",null!==n.selectedMethodId&&"compPoints"!==n.depositProcessors[n.selectedMethodId].method&&"pendingWithdrawal"!==n.depositProcessors[n.selectedMethodId].method),t.R7$(1),t.Y8G("ngIf",null!==n.selectedMethodId&&"compPoints"===n.depositProcessors[n.selectedMethodId].method),t.R7$(1),t.Y8G("ngIf",null!==n.selectedMethodId&&"pendingWithdrawal"===n.depositProcessors[n.selectedMethodId].method&&n.pendingWithdrawals.length)}}function vo(e,r){1&e&&(t.nrm(0,"span",92),t.j41(1,"span",93),t.EFF(2,"Loa
3ding..."),t.k0s())}let Io=(()=>{var e;class r{constructor(o,s,i,a,c,d,p,_,T){this.fb=o,this.userService=s,this.transactionService=i,this.toastr=a,this.translate=c,this.promoService=d,this.router=p,this.authService=_,this.modalService=T,this.Object=Object,this.Math=Math,this.processors=[],this.depositProcessors=[],this.selectedMethodId=null,this.extraFieldsForMethod=[],this.amountForm=this.fb.group({amount:[null,l.k0.required]}),this.submittedForm=!1,this.predefinedAmounts=[50,100,250,500],this.user=this.userService.user,this.userCurrency=this.userService.currency,this.compBalance=this.userService.compBalance,this.transactionPending=!1,this.activeOrClaimedPromotion=this.promoService.currentPromo,this.pendingWithdrawals=[],this.selectedProcessorForLegalInfo=null}ngOnInit(){var o,s,i;this.depositProcessors=this.processors.map(c=>({...c}));const a=this.depositProcessors.findIndex(c=>"compPoints"===c.method);this.compBalance()?-1===a&&this.depositProcessors.push({id:-3,method:"compPoints",logoUrl:"assets/icons/comp_points.png"}):-1!==a&&this.depositProcessors.splice(a,1),this.user()&&this.userService.getTransactionHistory("withdrawals",{},!1).subscribe({next:c=>{var d;if(null!==(d=c.withdrawals)&&void 0!==d&&d.length){const p=/^processing$/i;this.pendingWithdrawals=c.withdrawals.filter(_=>p.test(_.status))}else this.pendingWithdrawals=[],this.pendingWithdrawalAmount=0;this.pendingWithdrawals.length&&(this.depositProcessors.unshift({id:-2,method:"pendingWithdrawal",logoUrl:"assets/icons/pending_withdrawal.png"}),this.pendingWithdrawalAmount=this.pendingWithdrawals.reduce((p,_)=>p+Math.abs(_.amount),0))},error:c=>{"SESSION"===c.type?(this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"})):this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_TIP"),this.translate.instant("ACCOUNT.HISTORY.TOASTR_ERROR_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}),null===(o=this.amount)||void 0===o||o.setValue(null),this.selectMethod(null),null===(s=this.amountSubs)||void 0===s||s.unsubscribe(),this.amountSubs=null===(i=this.amountForm.get("amount"))||void 0===i?void 0:i.valueChanges.subscribe(c=>{if(!this.predefinedAmounts.includes(c)){const d=document.querySelector('input[name="options"]:checked');d&&(d.checked=!1)}})}selectMethod(o){var s;this.selectedMethodId=o,this.submittedForm=!1,this.amountForm.reset(),this.updateAmountValidators(),this.removeExtraFieldsFromForm(),this.extraFieldsForMethod=null!==this.selectedMethodId&&(null===(s=this.depositProcessors[this.selectedMethodId])||void 0===s||null===(s=s.deposit)||void 0===s?void 0:s.fields)||[],this.addDynamicFieldsToForm();const i=document.getElementById("depositSection");null==i||i.scrollIntoView({behavior:"smooth",block:"start"})}addDynamicFieldsToForm(){this.extraFieldsForMethod.forEach(o=>{this.amountForm.contains(o.id)||this.amountForm.addControl(o.id,"option"===o.type&&o.properties&&"canSelectMultiple"in o.properties&&o.properties.canSelectMultiple?this.fb.array([],o.required?l.k0.required:[]):"value"===o.type&&o.properties&&"value"in o.properties?this.fb.control(o.properties.value):this.fb.control("",o.required?[l.k0.required]:[]))})}removeExtraFieldsFromForm(){Object.keys(this.amountForm.controls).forEach(o=>{"amount"!==o&&this.amountForm.removeControl(o)})}updateAmountValidators(){if(null!==this.selectedMethodId){var o,s,i,a;const d=null!==(o=null===(s=this.depositProcessors[this.selectedMethodId])||void 0===s||null===(s=s.deposit)||void 0===s||null===(s=s.limits)||void 0===s?void 0:s.min)&&void 0!==o?o:0,p=null!==(i=null===(a=this.depositProcessors[this.selectedMethodId])||void 0===a||null===(a=a.deposit)||void 0===a||null===(a=a.limits)||void 0===a?void 0:a.max)&&void 0!==i?i:Number.MAX_SAFE_INTEGER;this.amount&&this.amount.setValidators([l.k0.required,l.k0.min(d),l.k0.max(p)])}else{var c;null===(c=this.amount)||void 0===c||c.setValidators([l.k0.required])}}onCheckboxChange(o,s){const i=this.amountForm.get(s);if(o.target.checked)i.push(new l.MJ(o.target.value));else{const a=i.controls.findIndex(c=>c.value===o.target.value);-1!==a&&i.removeAt(a)}}get amount(){return this.amountForm.get("amount")}isOptionFieldType(o){return"option"===o.type&&!!o.properties&&"options"in o.properties}claimCompPoints(){this.compBalance()&&(this.transactionPending=!0,this.transactionService.claimComps().subscribe({next:o=>{this.transactionPending=!1,this.toastr.success(this.translate.instant("ACCOUNT.BANK.TOASTR_SUCCESS_DEPOSIT_COMPLETE_MESSAGE"),this.translate.instant("ACCOUNT.BANK.TOASTR_SUCCESS_DEPOSIT_COMPLETE_H1"),{toastClass:"ngx-toastr lobbyless-toast"}),this.userService.refreshBalance()},error:o=>{var s,i;switch(this.transactionPending=!1,o.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(s=o.message)&&void 0!==s?s:"ACCOUNT.BANK.TOASTR_ERROR_DEPOSIT_MESSAGE"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(null!==(i=o.message)&&void 0!==i?i:this.translate.instant("ACCOUNT.BANK.TOASTR_ERROR_DEPOSIT_MESSAGE"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}}))}reverseWithdrawal(o){o&&(this.transactionPending=!0,this.transactionService.reverseWithdrawal({id:o}).subscribe({next:s=>{this.transactionPending=!1,this.toastr.success(this.translate.instant("ACCOUNT.BANK.TOASTR_SUCCESS_REVERSE_WITHDRAWAL_MESSAGE"),this.translate.instant("ACCOUNT.BANK.TOASTR_SUCCESS_REVERSE_WITHDRAWAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"}),this.userService.refreshBalance()},error:s=>{var i;switch(this.transactionPending=!1,s.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(i=s.message)&&void 0!==i?i:"ACCOUNT.BANK.TOASTR_ERROR_DEPOSIT_MESSAGE"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(this.translate.instant("ACCOUNT.BANK.TOASTR_ERROR_DEPOSIT_MESSAGE"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}}))}
3submitForm(){if(this.submittedForm=!0,this.amountForm.valid&&null!==this.selectedMethodId){var o;this.transactionPending=!0;const s={amount:null===(o=this.amount)||void 0===o?void 0:o.value,processor:this.depositProcessors[this.selectedMethodId].id};this.extraFieldsForMethod.length&&(s.details=this.extraFieldsForMethod.reduce((i,a)=>(i[a.id]=this.amountForm.controls[a.id].value,i),{})),this.transactionService.deposit(s).subscribe({next:i=>{var a;if(("COMPLETE"===i.status&&(this.transactionPending=!1,this.toastr.success(this.translate.instant("ACCOUNT.BANK.TOASTR_SUCCESS_DEPOSIT_COMPLETE_MESSAGE"),this.translate.instant("ACCOUNT.BANK.TOASTR_SUCCESS_DEPOSIT_COMPLETE_H1"),{toastClass:"ngx-toastr lobbyless-toast"}),this.userService.refreshBalance()),"READY"===i.status&&i.details)&&("REDIRECT"===(null===(a=i.details)||void 0===a?void 0:a.type)&&i.details.content&&"method"in i.details.content)){if("GET"===i.details.content.method){const p=new URL(i.details.content.action);p.searchParams.append("redirect",`${window.location.origin}/account/transactions`),p.searchParams.append("css",`${window.location.origin}/styles/gateway-styles.css`),this.router.navigate(["/account/banking/pay"],{state:{iframeUrl:p.toString()}})}"POPUP_GET"===i.details.content.method&&window.open(i.details.content.action,"_blank")}},error:i=>{var a,c;switch(this.transactionPending=!1,i.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(a=i.message)&&void 0!==a?a:"ACCOUNT.BANK.TOASTR_ERROR_DEPOSIT_MESSAGE"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"FIELD":for(const d in i.fieldErrors){if(this.amountForm.controls[d]){const p=this.amountForm.get(d);p&&p.setErrors({validationErrorFromServer:i.fieldErrors[d]})}this.toastr.error(i.fieldErrors[d],this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}null===(c=this.amountForm.get("amount"))||void 0===c||c.reset(),this.toastr.error(i.message,this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(this.translate.instant("ACCOUNT.BANK.TOASTR_ERROR_DEPOSIT_MESSAGE"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}})}}openProcessorInfoModal(o,s){o.stopPropagation(),this.selectedProcessorForLegalInfo=s,this.modalService.open("processorInfoModal")}ngOnDestroy(){var o;null===(o=this.amountSubs)||void 0===o||o.unsubscribe()}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(l.ok),t.rXU(v.D),t.rXU(J),t.rXU(F.tw),t.rXU(f.c$),t.rXU(H.B),t.rXU(R.Ix),t.rXU(I.u),t.rXU(V.B))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-deposit"]],inputs:{processors:"processors",processorInfo:"processorInfo",selectedTab:"selectedTab"},decls:8,vars:4,consts:[[1,"alert","alert-primary","d-block","d-sm-flex","align-items-sm-center","rounded-3","my-2"],[1,"bi","bi-info-circle-fill","fs-5","m-end-2"],[4,"ngIf"],["class","px-3 py-0 bg-darker rounded-2 mb-2","novalidate","",3,"formGroup",4,"ngIf"],["loadingSpinner",""],[3,"processor"],["routerLink","/account/promotions",1,"text-decoration-none"],["novalidate","",1,"px-3","py-0","bg-darker","rounded-2","mb-2",3,"formGroup"],[1,"fixed-height-section","d-flex","flex-column","align-items-start","justify-content-center"],[1,"h5"],[1,"text-darker"],[1,"row","row-cols-1","row-cols-sm-2","row-cols-lg-3","g-2",3,"ngClass"],["class","col",3,"click",4,"ngFor","ngForOf"],["id","depositSection"],[1,"col",3,"click"],[1,"card","h-100","fixed-height-section",2,"cursor","pointer",3,"ngStyle"],[1,"card-body"],[1,"row"],[1,"col-6","col-lg-7"],["class","card-title mb-0",4,"ngIf"],["class","card-text text-darker",4,"ngIf"],[1,"col-6","col-lg-5"],[1,"card-img-top",3,"src","alt"],["class","card-footer bg-transparent border-0 mb-3",4,"ngIf"],[1,"card-title","mb-0"],["class","bi bi-question-circle m-start-1 text-darker","style","cursor: help;",3,"click",4,"ngIf"],[1,"bi","bi-question-circle","m-start-1","text-darker",2,"cursor","help",3,"click"],[1,"card-text","text-darker"],[1,"card-footer","bg-transparent","border-0","mb-3"],[1,"card-text","mb-0","border-bottom","border-1","d-flex","justify-content-between"],[1,"card-text","d-flex","justify-content-between"],[1,"card-text","mb-0","border-bottom","border-1"],[1,"card-text","text-end"],[1,"fixed-height-section"],[1,"d-flex","gap-2","flex-wrap","mb
3-3"],[4,"ngFor","ngForOf"],[1,"col-8","col-md-10"],[1,"col-4","col-md-2","text-center","text-primary"],[1,"row","mb-3"],["type","number","id","depositAmountInput","formControlName","amount",1,"form-control",3,"placeholder","ngClass"],[1,"invalid-feedback"],["for","depositAmountInput",1,"col-4","col-md-2","col-form-label","text-center"],[3,"ngSwitch"],["class","fw-light mb-0 pb-0",4,"ngSwitchCase"],["class","fw-light",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","fixed-height-section",4,"ngIf"],[1,"fixed-height-section","vstack","col-12","col-sm-8","col-lg-6","mx-auto","justify-content-center"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["type","radio","name","options","autocomplete","off",1,"btn-check",3,"id","value","checked","change"],[1,"btn","btn-outline-primary","py-0",2,"min-width","100px",3,"for"],[1,"fw-light","mb-0","pb-0"],[1,"bi","bi-currency-euro","fw-normal"],[1,"fw-light"],[1,"bi","bi-currency-dollar","fw-normal"],[1,"bi","bi-currency-pound","fw-normal"],[1,"row","gy-2"],["class","col-12 col-sm-6 col-lg-4",4,"ngFor","ngForOf"],[1,"col-12","col-sm-6","col-lg-4"],[3,"ngSwitch",4,"ngIf"],["class","invalid-feedback",4,"ngIf"],[4,"ngSwitchCase"],[1,"form-label",3,"for"],["type","text",1,"form-control",3,"id","placeholder","formControlName","required","ngClass"],["class","form-control","type","number",3,"id","placeholder","formControlName","required","ngClass",4,"ngSwitchCase"],["type","number",1,"form-control",3,"id","placeholder","formControlName","required","ngClass"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","formControlName","required","ngClass"],[1,"form-check-label",3,"for"],["class","form-select",3,"id","formControlName","required","ngClass",4,"ngIf"],[1,"form-select",3,"id","formControlName","required","ngClass"],["selected","","value","","disabled",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","checkbox",1,"form-check-input",3,"id","value","ngClass","change"],[1,"h5","mt-3"],[1,"alert","alert-primary","d-block","d-sm-flex","align-items-sm-center","align-self-stretch","mb-0"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"card","reversible-withdawal","fixed-height-section","mb-3"],[1,"card-body","mt-0","row","d-flex","flex-row","align-items-center"],[1,"col-12","col-md-9","d-flex","flex-column","flex-sm-row","gap-3"],["src","assets/icons/withdrawal.svg","alt","withdrawal image","width","100%",1,"d-none","d-sm-flex","opacity-50"],[1,"flex-grow-1"],[1,"card-title","fw-bold","h5","d-flex","justify-content-start","justify-content-sm-between"],[1,"d-inline-block","d-sm-none","variable-svg-icon","m-end-2","opacity-50",3,"pathIdentifier"],[1,"d-none","d-sm-flex"],[1,"card-text","mb-3","mb-md-0"],[1,"col-12","col-md-3","d-flex","justify-content-center"],["class","btn btn-primary","type","button",3,"disabled","ngClass","click",4,"ngIf"],["type","button",1,"btn","btn-primary",3,"disabled","ngClass","click"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"]],template:function(o,s){1&o&&(t.j41(0,"div",0),t.nrm(1,"i",1),t.DNE(2,Nn,3,3,"span",2),t.DNE(3,Gn,6,5,"div",2),t.k0s(),t.DNE(4,bo,14,14,"form",3),t.DNE(5,vo,3,0,"ng-template",null,4,t.C5r),t.nrm(7,"app-legal-info-modal",5)),2&o&&(t.R
37$(2),t.Y8G("ngIf",!s.activeOrClaimedPromotion()),t.R7$(1),t.Y8G("ngIf",s.activeOrClaimedPromotion()),t.R7$(1),t.Y8G("ngIf",s.depositProcessors.length),t.R7$(3),t.Y8G("processor",s.selectedProcessorForLegalInfo))},dependencies:[u.YU,u.Sq,u.bT,u.B3,u.ux,u.e1,u.fG,R.Wk,l.qT,l.xH,l.y7,l.me,l.Q0,l.Zm,l.wz,l.BC,l.cb,l.YS,l.xq,l.j4,l.JD,ht.D,Tt,u.Pc,u.oe,f.D9],styles:[".reversible-withdawal[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:75px}#depositSection[_ngcontent-%COMP%]{scroll-margin-top:102px}@media (min-width: 576px){#depositSection[_ngcontent-%COMP%]{scroll-margin-top:56px}}.text-end[_ngcontent-%COMP%]{text-align:end!important}"]}),r})();function Fo(e,r){if(1&e){const n=t.RV6();t.j41(0,"i",38),t.bIt("click",function(s){t.eBV(n);const i=t.XpG().$implicit,a=t.XpG(2);return t.Njj(a.openProcessorInfoModal(s,i))}),t.k0s()}}function So(e,r){if(1&e&&(t.j41(0,"small",5),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&e){const n=t.XpG().$implicit,o=t.XpG(2);t.R7$(1),t.JRh(t.ii3(2,1,n.withdrawal.limits.min<=n.withdrawal.limits.max?n.withdrawal.limits.min:0,o.userCurrency(),"symbol","1.0-0"))}}const Oo=function(){return{outline:"2px solid var(--bs-primary)"}},No=function(){return{}};function Ao(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",26),t.bIt("click",function(){const i=t.eBV(n).index,a=t.XpG(2);return t.Njj(a.selectMethod(i))}),t.j41(1,"div",27)(2,"div",28)(3,"div",9)(4,"div",29)(5,"h5",30),t.EFF(6),t.DNE(7,Fo,1,0,"i",31),t.k0s()(),t.j41(8,"div",32),t.nrm(9,"img",33),t.k0s()()(),t.j41(10,"div",34)(11,"p",35)(12,"small",5),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.DNE(15,So,3,6,"small",36),t.k0s(),t.j41(16,"p",37)(17,"small",5),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"small",5),t.EFF(21),t.nI1(22,"currency"),t.k0s()()()()()}if(2&e){const n=r.$implicit,o=r.index,s=t.XpG(2);t.R7$(1),t.Y8G("ngStyle",s.selectedMethodId===o?t.lJ4(18,Oo):t.lJ4(19,No)),t.R7$(5),t.SpI(" ",n.method," "),t.R7$(1),t.Y8G("ngIf",n.legal||n.info),t.R7$(2),t.Y8G("src",n.logoUrl,t.B4B)("alt",n.method+" image"),t.R7$(4),t.SpI("",t.bMT(14,9,"ACCOUNT.BANK.MIN_LABEL"),":"),t.R7$(2),t.Y8G("ngIf",n.withdrawal&&n.withdrawal.limits),t.R7$(3),t.SpI("",t.bMT(19,11,"ACCOUNT.BANK.MAX_LABEL"),":"),t.R7$(3),t.JRh(t.ii3(22,13,null==n.withdrawal||null==n.withdrawal.limits?null:n.withdrawal.limits.max,s.userCurrency(),"symbol","1.0-0"))}}function ko(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.BANK.AMOUNT_MINMAX_FEEDBACK")))}function yo(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.BANK.AMOUNT_REQUIRED_FEEDBACK")))}function Go(e,r){1&e&&(t.j41(0,"span",39),t.nrm(1,"i",40),t.EFF(2,"(EURO)"),t.k0s())}function Uo(e,r){1&e&&(t.j41(0,"span",41),t.nrm(1,"i",42),t.EFF(2,"(USD)"),t.k0s())}function Mo(e,r){1&e&&(t.j41(0,"span",41),t.nrm(1,"i",42),t.EFF(2,"(AUD)"),t.k0s())}function wo(e,r){1&e&&(t.j41(0,"span",41),t.nrm(1,"i",42),t.EFF(2,"(NZD)"),t.k0s())}function xo(e,r){1&e&&(t.j41(0,"span",41),t.nrm(1,"i",43),t.EFF(2,"(GBP)"),t.k0s())}function Po(e,r){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(1),t.JRh(n.userCurrency())}}const U=function(e){return{"is-invalid":e}};function Do(e,r){if(1&e&&(t.qex(0),t.j41(1,"label",50),t.EFF(2),t.k0s(),t.nrm(3,"input",51),t.bVm()),2&e){const n=t.XpG(2).$implicit,o=t.XpG(3);let s;t.R7$(1),t.Y8G("for",n.id),t.R7$(1),t.JRh(n.label),t.R7$(1),t.Y8G("id",n.id)("placeholder",n.label)("formControlName",n.id)("required",n.required)("ngClass",t.eq3(7,U,o.submittedForm&&(null==(s=o.amountForm.get(n.id))?null:s.invalid)))}}function Lo(e,r){if(1&e&&t.nrm(0,"input",53),2&e){const n=t.XpG(3).$implicit,o=t.XpG(3);let s;t.Y8G("id",n.id)("placeholder",n.label)("formControlName",n.id)("required",n.required)("ngClass",t.eq3(5,U,o.submittedForm&&(null==(s=o.amountForm.get(n.id))?null:s.invalid)))}}function $o(e,r){if(1&e&&(t.qex(0),t.j41(1,"label",50),t.EFF(2),t.k0s(),t.DNE(3,Lo,1,7,"input",52),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(1),t.Y8G("for",n.id),t.R7$(1),t.JRh(n.label),t.R7$(1),t.Y8G("ngSwitchCase","int")}}function jo(e,r){if(1&e&&(t.qex(0),t.j41(1,"div",54),t.nrm(2,"input",55),t.j41(3,"label",56),t.EFF(4),t.k0s()(),t.bVm()),2&e){const n=t.XpG(2).$implicit,o=t.XpG(3);let s;t.R7$(2),t.Y8G("id",n.id)("formControlName",n.id)("required",n.required)("ngClass",t.eq3(6,U,o.submittedForm&&(null==(s=o.amountForm.get(n.id))?null:s.invalid))),t.R7$(1),t.Y8G("for",n.id),t.R7$(1),t.SpI(" ",n.label," ")}}function Yo(e,r){if(1&e&&(t.j41(0,"option",61),t.EFF(1),t.k0s()),2&e){const n=r.$implicit,o=t.XpG(4).$implicit;t.Y8G("value",n),t.R7$(1),t.JRh(o.properties.options[n])}}function Bo(e,r){if(1&e&&(t.j41(0,"select",58)(1,"option",59),t.EFF(2,"Please select an option"),t.k0s(),t.DNE(3,Yo,2,2,"option",60),t.k0s()),2&e){const n=t.XpG(3).$implicit,o=t.XpG(3);let s;t.Y8G("id",n.id)("formControlName",n.id)("required",n.required)("ngClass",t.eq3(5,U,o.submittedForm&&(null==(s=o.amountForm.get(n.id))?null:s.invalid))),t.R7$(3),t.Y8G("ngForOf",o.Object.keys(n.properties.options))}}function Ho(e,r){if(1&e){const n=t.RV6();t.j41(0,"div")(1,"div",54)(2,"input",63),t.bIt("change",function(s){t.eBV(n);const i=t.XpG(4).$implicit,a=t.XpG(3);return t.Njj(a.onCheckboxChange(s,i.id))}),t.k0s(),t.j41(3,"label",56),t.EFF(4),t.k0s()()()}if(2&e){const n=r.$implicit,o=t.XpG(4).$implicit,s=t.XpG(3);let i;t.R7$(2),t.Y8G("id",o.id+"_"+n)("value",n)("ngClass",t.eq3(5,U,s.submittedForm&&(null==(i=s.amountForm.get(o.id))?null:i.invalid))),t.R7$(1),t.Y8G("for",o.id+"_"+n),t.R7$(1),t.JRh(o.properties.options[n])}}function Xo(e,r){if(1&e&&(t.j41(0,"div"),t.DNE(1,Ho,5,7,"div",62),t.k0s()),2&e){const n=t.XpG(3).$implicit,o=t.XpG(3);t.R7$(1),t.Y8G("ngForOf",o.Object.keys(n.properties.options))}}function Jo(e,r){if(1&e&&(t.qex(0),t.j41(1,"label",50),t.EFF(2),t.k0s(),t.DNE(3,Bo,4,7,"select",57),t.DNE(4,Xo,2,1,"div",15),t.bVm()),2&e){const n=t.XpG(2).$implicit,o=t.XpG(3);t.R7$(1),t.Y8G("for",n.id),t.R7$(1),t.JRh(n.label),t.R7$(1),t.Y8G("ngIf",o.isOptionFieldType(n)&&!n.properties.canSelectMultiple),t.R7$(1),t.Y8G("ngIf",o.isOptionFieldType(n)&&n.properties.canSelectMultiple)}}function Vo(e,r){if(1&e&&(t.qex(0,17),t.DNE(1,Do,4,9,"ng-container",49),t.DNE(2,$o,4,3,"ng-container",49),t.DNE(3,jo,5,8,"ng-container",49),t.DNE(4,Jo,5,4,"ng-container",49),t.bVm()),2&e){const n=t.XpG().$implicit;t.Y8G("ngSwitch",n.type),t.R7$(1),t.Y8G("ngSwitchCase","string"),t.R7$(1),t.Y8G("ngSwitchCase","int"),t.R7$(1),t.Y8G("ngSwitchCase","bool"),t.R7$(1),t.Y8G("ngSwitchCase","option")}}function Wo(e,r){if(1&e&&(t.j41(0,"div",14),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit,o=t.XpG(3);let s;t.R7$(1),t.SpI(" ",null==(s=o.amountForm.get(n.id))?null:s.getError("validationErrorFromServer")," ")}}function qo(e,r){if(1&e&&(t.j41(0,"div",46),t.DNE(1,Vo,5,5,"ng-container",47),t.DNE(2,Wo,2,1,"div",48),t.k0s()),2&e){const n=r.$implicit,o=t.XpG(3);let s;t.R7$(1),t.Y8G("ngIf","value"!==n.type),t.R7$(1),t.Y8G("ngIf",null==(s=o.amountForm.get(n.id))?null:s.hasError("validationErrorFromServer"))}}function Ko(e,r){if(1&e&&(t.j41(0,"div",8)(1,"div",44),t.DNE(2,qo,3,2,"div",45),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",n.extraFieldsForMethod)}}function Qo(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"uppercase"),t.nI1(3,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,t.bMT(3,3,"ACCOUNT.BANK.WITHDRAWAL"))))}function zo(e,r){1&e&&(t.nrm(0,"span",64),t.j41(1,"span",65),t.EFF(2,"Loa
3ding..."),t.k0s())}function Zo(e,r){if(1&e){const n=t.RV6();t.j41(0,"form",2)(1,"div",3)(2,"p",4),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",5),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",6),t.DNE(9,Ao,23,20,"div",7),t.k0s(),t.j41(10,"div",3)(11,"p",4),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"p",5),t.EFF(15),t.nI1(16,"translate"),t.k0s()(),t.j41(17,"div",8)(18,"div",9),t.nrm(19,"span",10),t.j41(20,"span",11),t.EFF(21),t.nI1(22,"translate"),t.k0s()(),t.j41(23,"div",12)(24,"div",10),t.nrm(25,"input",13),t.nI1(26,"translate"),t.j41(27,"div",14),t.DNE(28,ko,3,3,"span",15),t.DNE(29,yo,3,3,"span",15),t.k0s()(),t.j41(30,"label",16),t.qex(31,17),t.DNE(32,Go,3,0,"span",18),t.DNE(33,Uo,3,0,"span",19),t.DNE(34,Mo,3,0,"span",19),t.DNE(35,wo,3,0,"span",19),t.DNE(36,xo,3,0,"span",19),t.DNE(37,Po,2,1,"span",20),t.bVm(),t.k0s()()(),t.DNE(38,Ko,3,1,"div",21),t.j41(39,"div",22)(40,"button",23),t.bIt("click",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.submitForm())}),t.DNE(41,Qo,4,5,"span",24),t.DNE(42,zo,3,0,"ng-template",null,25,t.C5r),t.k0s()()()}if(2&e){const n=t.sdS(43),o=t.XpG();let s,i;t.Y8G("formGroup",o.amountForm),t.R7$(3),t.JRh(t.bMT(4,21,"ACCOUNT.BANK.PROCESSOR_LABEL")),t.R7$(3),t.JRh(null!==(s=o.processorInfo)&&void 0!==s?s:t.bMT(7,23,"ACCOUNT.BANK.PROCESSOR_INFO")),t.R7$(3),t.Y8G("ngForOf",o.processors),t.R7$(3),t.JRh(t.bMT(13,25,"ACCOUNT.BANK.AMOUNT_LABEL")),t.R7$(3),t.JRh(null!==(i=o.processorInfo)&&void 0!==i?i:t.bMT(16,27,"ACCOUNT.BANK.AMOUNT_W_INFO")),t.R7$(6),t.JRh(t.bMT(22,29,"AUTH.REGISTER.CURRENCY_LABEL")),t.R7$(4),t.FS9("placeholder",t.bMT(26,31,"ACCOUNT.BANK.AMOUNT_PLACEHOLDER")),t.Y8G("ngClass",t.eq3(33,U,o.submittedForm&&(null==o.amount?null:o.amount.invalid))),t.R7$(3),t.Y8G("ngIf",(null==o.amount||null==o.amount.errors?null:o.amount.errors.min)||(null==o.amount||null==o.amount.errors?null:o.amount.errors.max)),t.R7$(1),t.Y8G("ngIf",!(null!=o.amount&&null!=o.amount.errors&&o.amount.errors.min||null!=o.amount&&null!=o.amount.errors&&o.amount.errors.max)),t.R7$(2),t.Y8G("ngSwitch",o.userCurrency()),t.R7$(1),t.Y8G("ngSwitchCase","EUR"),t.R7$(1),t.Y8G("ngSwitchCase","USD"),t.R7$(1),t.Y8G("ngSwitchCase","AUD"),t.R7$(1),t.Y8G("ngSwitchCase","NZD"),t.R7$(1),t.Y8G("ngSwitchCase","GBP"),t.R7$(2),t.Y8G("ngIf",o.extraFieldsForMethod.length&&!(1===o.extraFieldsForMethod.length&&"subProcessorId"===o.extraFieldsForMethod[0].id)),t.R7$(2),t.Y8G("disabled",o.transactionPending),t.R7$(1),t.Y8G("ngIf",!o.transactionPending)("ngIfElse",n)}}let ts=(()=>{var e;class r{constructor(o,s,i,a,c,d,p,_,T){this.fb=o,this.userService=s,this.transactionService=i,this.toastr=a,this.translate=c,this.chatService=d,this.router=p,this.authService=_,this.modalService=T,this.Object=Object,this.processors=[],this.selectedMethodId=null,this.extraFieldsForMethod=[],this.amountForm=this.fb.group({amount:[null,l.k0.required]}),this.submittedForm=!1,this.userCurrency=this.userService.currency,this.transactionPending=!1,this.selectedProcessorForLegalInfo=null}ngOnInit(){var o;null===(o=this.amount)||void 0===o||o.setValue(null),this.selectMethod(null)}selectMethod(o){var s;this.selectedMethodId=o,this.submittedForm=!1,this.updateAmountValidators(),this.removeExtraFieldsFromForm(),this.extraFieldsForMethod=null!==this.selectedMethodId&&(null===(s=this.processors[this.selectedMethodId])||void 0===s||null===(s=s.withdrawal)||void 0===s?void 0:s.fields)||[],this.addDynamicFieldsToForm()}addDynamicFieldsToForm(){this.extraFieldsForMethod.forEach(o=>{this.amountForm.contains(o.id)||this.amountForm.addControl(o.id,"option"===o.type&&o.properties&&"canSelectMultiple"in o.properties&&o.properties.canSelectMultiple?this.fb.array([],o.required?l.k0.required:[]):"value"===o.type&&o.properties&&"value"in o.properties?this.fb.control(o.properties.value):this.fb.control("",o.required?[l.k0.required]:[]))})}removeExtraFieldsFromForm(){Object.keys(this.amountForm.controls).forEach(o=>{"amount"!==o&&this.amountForm.removeControl(o)})}updateAmountValidators(){if(null!==this.selectedMethodId){var o,s,i,a;let d,p;d=null!==(o=null===(s=this.processors[this.selectedMethodId])||void 0===s||null===(s=s.withdrawal)||void 0===s||null===(s=s.limits)||void 0===s?void 0:s.min)&&void 0!==o?o:0,p=null!==(i=null===(a=this.processors[this.selectedMethodId])||void 0===a||null===(a=a.withdrawal)||void 0===a||null===(a=a.limits)||void 0===a?void 0:a.max)&&void 0!==i?i:Number.MAX_SAFE_INTEGER,this.amount&&this.amount.setValidators([l.k0.required,l.k0.min(d),l.k0.max(p)])}else{var c;null===(c=this.amount)||void 0===c||c.setValidators([l.k0.required])}}onCheckboxChange(o,s){const i=this.amountForm.get(s);if(o.target.checked)i.push(new l.MJ(o.target.value));else{const a=i.controls.findIndex(c=>c.value===o.target.value);-1!==a&&i.removeAt(a)}}get amount(){return this.amountForm.get("amount")}isOptionFieldType(o){return"option"===o.type&&!!o.properties&&"options"in o.properties}
3submitForm(){if(this.submittedForm=!0,this.amountForm.valid&&null!==this.selectedMethodId){var o;this.transactionPending=!0;const s={amount:null===(o=this.amount)||void 0===o?void 0:o.value,processor:this.processors[this.selectedMethodId].id};this.extraFieldsForMethod.length&&(s.details=this.extraFieldsForMethod.reduce((i,a)=>(i[a.id]=this.amountForm.controls[a.id].value,i),{})),this.transactionService.withdraw(s).subscribe({next:i=>{if(i.redirect||(this.transactionPending=!1,this.toastr.success(this.translate.instant("ACCOUNT.BANK.TOASTR_SUCCESS_WITHDRAW_MESSAGE"),`${this.translate.instant("ACCOUNT.BANK.TOASTR_SUCCESS_WITHDRAW_H1")}`,{toastClass:"ngx-toastr lobbyless-toast"}),this.userService.refreshBalance()),i.redirect){if("GET"===i.redirect.method){const a=new URL(i.redirect.action);a.searchParams.append("redirect",`${window.location.origin}/account/transactions`),a.searchParams.append("css",`${window.location.origin}/styles/gateway-styles.css`),this.router.navigate(["/account/banking/pay"],{state:{iframeUrl:a.toString()}})}"POPUP_GET"===i.redirect.method&&window.open(i.redirect.action,"_blank")}},error:i=>{var a,c;switch(this.transactionPending=!1,i.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(a=i.message)&&void 0!==a?a:"ACCOUNT.PROMO.TOASTR_FAILED_TIP"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"FIELD":for(const d in i.fieldErrors){if(this.amountForm.controls[d]){const p=this.amountForm.get(d);p&&p.setErrors({validationErrorFromServer:i.fieldErrors[d]})}i.fieldErrors[d]&&this.toastr.error(i.fieldErrors[d],this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}i.raw.error.data&&Array.isArray(i.raw.error.data)&&this.toastr.error(i.raw.error.data.join(" "),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"}),this.amountForm.reset("");break;default:this.amountForm.reset(""),this.toastr.error(null!==(c=i.message)&&void 0!==c?c:this.translate.instant("ACCOUNT.PROMO.TOASTR_FAILED_TIP"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}})}}openChat(){this.chatService.toggleChat(!0)}openProcessorInfoModal(o,s){o.stopPropagation(),this.selectedProcessorForLegalInfo=s,this.modalService.open("processorInfoModal")}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(l.ok),t.rXU(v.D),t.rXU(J),t.rXU(F.tw),t.rXU(f.c$),t.rXU(O.m),t.rXU(R.Ix),t.rXU(I.u),t.rXU(V.B))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-withdraw"]],inputs:{processors:"processors",processorInfo:"processorInfo"},decls:2,vars:2,consts:[["class","px-3 py-0 bg-darker rounded-2 mb-2","novalidate","",3,"formGroup",4,"ngIf"],[3,"processor"],["novalidate","",1,"px-3","py-0","bg-darker","rounded-2","mb-2",3,"formGroup"],[1,"fixed-height-section","d-flex","flex-column","align-items-start","justify-content-center"],[1,"h5"],[1,"text-darker"],[1,"row","row-cols-1","row-cols-sm-2","row-cols-lg-3","g-2"],["class","col",3,"click",4,"ngFor","ngForOf"],[1,"fixed-height-section"],[1,"row"],[1,"col-8","col-md-10"],[1,"col-4","col-md-2","text-center","text-primary"],[1,"row","mb-3"],["type","number","id","withdrawAmountInput","formControlName","amount",1,"form-control",3,"placeholder","ngClass"],[1,"invalid-feedback"],[4,"ngIf"],["for","withdrawAmountInput",1,"col-4","col-md-2","col-form-label","text-center"],[3,"ngSwitch"],["class","fw-light mb-0 pb-0",4,"ngSwitchCase"],["class","fw-light",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","fixed-height-section",4,"ngIf"],[1,"fixed-height-section","vstack","col-12","col-sm-8","col-lg-6","mx-auto","justify-content-center"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["loadingSpinner",""],[1,"col",3,"click"],[1,"card","h-100","fixed-height-section",2,"cursor","pointer",3,"ngStyle"],[1,"card-body"],[1,"col-6","col-lg-7"],[1,"card-title","mb-0"],["class","bi bi-question-circle m-start-1 text-darker","style","cursor: help;",3,"click",4,"ngIf"],[1,"col-6","col-lg-5"],[1,"card-img-top",3,"src","alt"],[1,"card-footer","bg-transparent","border-0","mb-3"],[1,"card-text","mb-0","border-bottom","border-1","d-flex","justify-content-between"],["class","text-darker",4,"ngIf"],[1,"card-text","d-flex","justify-content-between"],[1,"bi","bi-question-circle","m-start-1","text-darker",2,"cursor","help",3,"click"],[1,"fw-light","mb-0","pb-0"],[1,"bi","bi-currency-euro","fw-normal"],[1,"fw-light"],[1,"bi","bi-currency-dollar","fw-normal"],[1,"bi","bi-currency-pound","fw-normal"],[1,"row","gy-2"],["class","col-12 col-sm-6 col-lg-4",4,"ngFor","ngForOf"],[1,"col-12","col-sm-6","col-lg-4"],[3,"ngSwitch",4,"ngIf"],["class","invali
3d-feedback",4,"ngIf"],[4,"ngSwitchCase"],[1,"form-label",3,"for"],["type","text",1,"form-control",3,"id","placeholder","formControlName","required","ngClass"],["class","form-control","type","number",3,"id","placeholder","formControlName","required","ngClass",4,"ngSwitchCase"],["type","number",1,"form-control",3,"id","placeholder","formControlName","required","ngClass"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","formControlName","required","ngClass"],[1,"form-check-label",3,"for"],["class","form-select",3,"id","formControlName","required","ngClass",4,"ngIf"],[1,"form-select",3,"id","formControlName","required","ngClass"],["selected","","value","","disabled",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[4,"ngFor","ngForOf"],["type","checkbox",1,"form-check-input",3,"id","value","ngClass","change"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"]],template:function(o,s){1&o&&(t.DNE(0,Zo,44,35,"form",0),t.nrm(1,"app-legal-info-modal",1)),2&o&&(t.Y8G("ngIf",s.processors.length),t.R7$(1),t.Y8G("processor",s.selectedProcessorForLegalInfo))},dependencies:[u.YU,u.Sq,u.bT,u.B3,u.ux,u.e1,u.fG,l.qT,l.xH,l.y7,l.me,l.Q0,l.Zm,l.wz,l.BC,l.cb,l.YS,l.xq,l.j4,l.JD,Tt,u.Pc,u.oe,f.D9]}),r})();function es(e,r){1&e&&(t.j41(0,"span",10),t.nrm(1,"i",11),t.EFF(2,"(EURO)"),t.k0s())}function ns(e,r){1&e&&(t.j41(0,"span",10),t.nrm(1,"i",12),t.EFF(2,"(USD)"),t.k0s())}function os(e,r){1&e&&(t.j41(0,"span",10),t.nrm(1,"i",12),t.EFF(2,"(AUD)"),t.k0s())}function ss(e,r){1&e&&(t.j41(0,"span",10),t.nrm(1,"i",12),t.EFF(2,"(NZD)"),t.k0s())}function rs(e,r){1&e&&(t.j41(0,"span",10),t.nrm(1,"i",13),t.EFF(2,"(GBP)"),t.k0s())}function is(e,r){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.JRh(n.currency())}}let as=(()=>{var e;class r{constructor(){this.userService=(0,t.WQX)(v.D),this.balance=this.userService.balance,this.currency=this.userService.currency}}return(e=r).\u0275fac=function(o){return new(o||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-balance-holder"]],decls:17,vars:13,consts:[[1,"p-3","py-md-4","bg-darker","rounded-2","mb-2"],[1,"mb-4"],[1,"h5","mb-2"],[1,"input-group","input-group-lg"],["type","text","aria-label","Available balance","aria-describedby","balanceInput","readonly","","name","balanceInput",1,"form-control",3,"value"],["balanceInput",""],["id","balanceInput",1,"input-group-text","bg-primary-subtle"],[3,"ngSwitch"],["class","fw-light",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"fw-light"],[1,"bi","bi-currency-euro","fw-normal"],[1,"bi","bi-currency-dollar","fw-normal"],[1,"bi","bi-currency-pound","fw-normal"]],template:function(o,s){if(1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",3),t.nrm(6,"input",4,5),t.nI1(8,"number"),t.j41(9,"span",6),t.qex(10,7),t.DNE(11,es,3,0,"span",8),t.DNE(12,ns,3,0,"span",8),t.DNE(13,os,3,0,"span",8),t.DNE(14,ss,3,0,"span",8),t.DNE(15,rs,3,0,"span",8),t.DNE(16,is,2,1,"span",9),t.bVm(),t.k0s()()()()),2&o){let i;t.R7$(3),t.JRh(t.bMT(4,8,"ACCOUNT.BANK.BALANCE_LABEL")),t.R7$(3),t.Y8G("value",t.i5U(8,10,null!==(i=s.balance())&&void 0!==i?i:0,"1.2-2")),t.R7$(4),t.Y8G("ngSwitch",s.currency()),t.R7$(1),t.Y8G("ngSwitchCase","EUR"),t.R7$(1),t.Y8G("ngSwitchCase","USD"),t.R7$(1),t.Y8G("ngSwitchCase","AUD"),t.R7$(1),t.Y8G("ngSwitchCase","NZD"),t.R7$(1),t.Y8G("ngSwitchCase","GBP")}},dependencies:[u.ux,u.e1,u.fG,u.QX,f.D9]}),r})();function ls(e,r){1&e&&(t.j41(0,"div",13)(1,"div",14)(2,"span",15),t.EFF(3,"Loading..."),t.k0s()()())}function cs(e,r){if(1&e&&t.nrm(0,"app-deposit",20),2&e){const n=t.XpG(4);t.Y8G("processors",n.processorsForDeposit)("processorInfo",n.depositInfo)}}function ds(e,r){if(1&e&&(t.qex(0),t.DNE(1,cs,1,2,"app-deposit",19),t.bVm()),2&e){const n=t.XpG(3),o=t.sdS(5);t.R7$(1),t.Y8G("ngIf",n.processorsForDeposit.length)("ngIfElse",o)}}function ms(e,r){if(1&e&&t.nrm(0,"app-withdraw",20),2&e){const n=t.XpG(4);t.Y8G("processors",n.processorsForWithdraw)("processorInfo",n.withdrawalInfo)}}function ps(e,r){if(1&e&&(t.qex(0),t.nrm(1,"app-balance-holder"),t.DNE(2,ms,1,2,"app-withdraw",19),t.bVm()),2&e){const n=t.XpG(3),o=t.sdS(5);t.R7$(2),t.Y8G("ngIf",n.processorsForWithdraw.length)("ngIfElse",o)}}const Ct=function(e){return{"show active":e}};function us(e,r){if(1&e&&(t.j41(0,"section")(1,"div",16)(2,"div",17),t.DNE(3,ds,2,2,"ng-container",12),t.k0s(),t.j41(4,"div",18),t.DNE(5,ps,3,2,"ng-container",12),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("ngClass",t.eq3(4,Ct,"deposit"===n.selectedTab)),t.R7$(1),t.Y8G("ngIf","deposit"===n.selectedTab),t.R7$(1),t.Y8G("ngClass",t.eq3(6,Ct,"withdraw"===n.selectedTab)),t.R7$(1),t.Y8G("ngIf","withdraw"===n.selectedTab)}}function _s(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",4)(1,"section",5)(2,"div",6)(3,"ul",7)(4,"li",8)(5,"button",9),t.bIt("click",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.onTabChange("deposit"))}),t.j41(6,"span"),t.EFF(7),t.nI1(8,"uppercase"),t.nI1(9,"translate"),t.k0s()()(),t.j41(10,"li",8)(11,"button",10),t.bIt("click",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.onTabChange("withdraw"))}),t.j41(12,"span"),t.EFF(13),t.nI1(14,"uppercase"),t.nI1(15,"translate"),t.k0s()()()()()(),t.DNE(16,ls,4,0,"div",11),t.DNE(17,us,6,8,"
3section",12),t.k0s()}if(2&e){const n=t.XpG();t.R7$(7),t.JRh(t.bMT(8,5,t.bMT(9,7,"ACCOUNT.BANK.DEPOSIT"))),t.R7$(4),t.Y8G("disabled",n.isLoading),t.R7$(2),t.JRh(t.bMT(14,9,t.bMT(15,11,"ACCOUNT.BANK.WITHDRAWAL"))),t.R7$(3),t.Y8G("ngIf",n.isLoading),t.R7$(1),t.Y8G("ngIf",!n.isLoading)}}function fs(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",13)(1,"h4"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",21),t.EFF(5),t.nI1(6,"translate"),t.j41(7,"a",22),t.bIt("click",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.openChat())}),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.nI1(11,"translate"),t.k0s()()}2&e&&(t.R7$(2),t.JRh(t.bMT(3,4,"ACCOUNT.BANK.NO_PROCESSOR_MESSAGE")),t.R7$(3),t.SpI(" ",t.bMT(6,6,"ACCOUNT.BANK.NO_PROCESSOR_TIP1")," "),t.R7$(3),t.JRh(t.bMT(9,8,"ACCOUNT.BANK.NO_PROCESSOR_TIP_LINK")),t.R7$(2),t.SpI(" ",t.bMT(11,10,"ACCOUNT.BANK.NO_PROCESSOR_TIP2")," "))}let W=(()=>{var e;class r{constructor(o,s,i,a,c,d,p,_,T){this.translate=o,this.titleService=s,this.trackingService=i,this.gaService=a,this.userService=c,this.transactionService=d,this.chatService=p,this.toastr=_,this.authService=T,this.user=this.userService.user,this.isLoading=!0,this.processorsForDeposit=[],this.processorsForWithdraw=[],this.selectedTab="deposit",this.translate.stream("ACCOUNT.BANK.TITLE").pipe((0,k.pQ)()).subscribe(m=>{this.titleService.setTitle(`Cashier / ${m}`)}),this.gaService.event("cashier",void 0,void 0,void 0,void 0,{cashier_visible:!0,...this.trackingService.getAffiliateOptions()}),(0,t.QZP)(()=>{null!==this.userService.balance()&&this.loadProcessors()})}loadProcessors(){var o;this.isLoading=!0,null===(o=this.processorSubs)||void 0===o||o.unsubscribe(),this.processorSubs=this.transactionService.getProcessors().subscribe({next:s=>{this.processorsForDeposit=s.processors.filter(i=>i.deposit),this.processorsForWithdraw=s.processors.filter(i=>i.withdrawal),this.depositInfo=s.depositInfo,this.withdrawalInfo=s.withdrawalInfo,this.isLoading=!1},error:s=>{var i;switch(this.isLoading=!1,s.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(i=s.message)&&void 0!==i?i:"ACCOUNT.PROMO.TOASTR_FAILED_TIP"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(this.translate.instant("ACCOUNT.PROMO.TOASTR_FAILED_TIP"),this.translate.instant("SYSTEM.ERRORS.GENERAL_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}})}onTabChange(o){this.selectedTab=o}openChat(){this.chatService.toggleChat(!0)}ngOnDestroy(){var o;this.gaService.event("cashier",void 0,void 0,void 0,void 0,{cashier_visible:!1,...this.trackingService.getAffiliateOptions()}),null===(o=this.processorSubs)||void 0===o||o.unsubscribe()}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(f.c$),t.rXU(M.E),t.rXU(w.N),t.rXU(x.p),t.rXU(v.D),t.rXU(J),t.rXU(O.m),t.rXU(F.tw),t.rXU(I.u))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-lobbyless-cashier"]],decls:6,vars:6,consts:[[1,"container-fluid","px-0","pb-3","pb-lg-5"],[3,"isProvider","title","imgSrc"],["class","container-lg mt-3 px-2 px-md-3",4,"ngIf"],["noProcessorBlock",""],[1,"container-lg","mt-3","px-2","px-md-3"],["id","category-nav",1,"my-4"],["id","pills-tab",1,"overflow-auto"],["role","tablist",1,"nav","nav-pills","nav-justified","w-auto","bg-darkest","rounded-pill","flex-nowrap"],["role","presentation",1,"nav-item"],["id","pills-deposit-tab'","data-bs-toggle","pill","data-bs-target","#pills-deposit","type","button","role","tab","aria-controls","pills-cashier","aria-selected","false",1,"nav-link","rounded-pill","py-3","fw-bold","active",3,"click"],["id","pills-withdraw-tab'","data-bs-toggle","pill","data-bs-target","#pills-withdraw","type","button","role","tab","aria-controls","pills-cashier","aria-selected","false",1,"nav-link","rounded-pill","py-3","fw-bold","m-start-1",3,"disabled","click"],["class","container-lg text-center pt-5",4,"ngIf"],[4,"ngIf"],[1,"container-lg","text-center","pt-5"],["role","status",1,"spinner-border"],[1,"visually-hidden"],["id","pills-tabContent",1,"tab-content"],["id","pills-deposit","role","tabpanel","aria-labelledby","pills-deposit-tab","tabindex","0",1,"tab-pane","fade",3,"ngClass"],["
3id","pills-withdraw","role","tabpanel","aria-labelledby","pills-withdraw-tab","tabindex","0",1,"tab-pane","fade","show",3,"ngClass"],[3,"processors","processorInfo",4,"ngIf","ngIfElse"],[3,"processors","processorInfo"],[1,"h5"],["role","button",1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"]],template:function(o,s){1&o&&(t.j41(0,"main",0),t.nrm(1,"app-topbar",1),t.nI1(2,"translate"),t.DNE(3,_s,18,13,"div",2),t.DNE(4,fs,12,12,"ng-template",null,3,t.C5r),t.k0s()),2&o&&(t.R7$(1),t.Y8G("isProvider",!1)("title",t.bMT(2,4,"ACCOUNT.BANK.TITLE"))("imgSrc","assets/icons/cashier_big.svg"),t.R7$(2),t.Y8G("ngIf",s.user()))},dependencies:[u.YU,u.bT,P.G,Io,ts,as,u.Pc,f.D9]}),r})();const hs=function(e,r,n){return{"text-bg-success":e,"text-bg-danger":r,"text-bg-primary":n}};function Ts(e,r){if(1&e&&(t.j41(0,"span",15),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG(2);let o;t.Y8G("ngClass",t.sMw(4,hs,"confirmed"===n.userEmailStatus(),"unconfirmed"===n.userEmailStatus()||"invalid"===n.userEmailStatus(),"pending"===n.userEmailStatus())),t.R7$(1),t.JRh(t.bMT(2,2,"ACCOUNT.INFO.EMAIL_VERIFICATION.STATUS_"+(null==(o=n.userEmailStatus())?null:o.toUpperCase())))}}function gs(e,r){1&e&&(t.j41(0,"span",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.EMAIL_VERIFICATION.STATUS_PENDING")))}function Cs(e,r){if(1&e&&(t.j41(0,"p",3),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG(2);let o;t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.EMAIL_VERIFICATION.STATUS_"+(null==(o=n.userEmailStatus())?null:o.toUpperCase())+"_MESSAGE"))}}function Rs(e,r){1&e&&(t.j41(0,"p",3),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.SpI("",t.bMT(2,1,"ACCOUNT.INFO.EMAIL_VERIFICATION.STATUS_PENDING_MESSAGE")," "))}function Es(e,r){if(1&e&&(t.j41(0,"div",8)(1,"label",17),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"input",18),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"AUTH.REGISTER.EMAIL_LABEL")),t.R7$(2),t.Y8G("value",n.userEmail())}}function bs(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.EMAIL_VERIFICATION.SUBMIT_BTN")))}function vs(e,r){1&e&&(t.EFF(0,"` "),t.nrm(1,"span",22),t.j41(2,"span",23),t.EFF(3,"Loading..."),t.k0s())}function Is(e,r){if(1&e){const n=t.RV6();t.j41(0,"button",19),t.bIt("click",function(){t.eBV(n);const s=t.XpG(2);return t.Njj(s.submitEmail())}),t.DNE(1,bs,3,3,"span",20),t.DNE(2,vs,4,0,"ng-template",null,21,t.C5r),t.k0s()}if(2&e){const n=t.sdS(3),o=t.XpG(2);t.Y8G("disabled",o.isLoading),t.R7$(1),t.Y8G("ngIf",!o.isLoading)("ngIfElse",n)}}const Fs=function(e){return{"mb-2":e}};function Ss(e,r){if(1&e&&(t.j41(0,"div",8)(1,"p",9)(2,"span",10),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,Ts,3,8,"span",11),t.DNE(6,gs,3,3,"span",12),t.k0s(),t.DNE(7,Cs,3,3,"p",13),t.DNE(8,Rs,3,3,"p",13),t.DNE(9,Es,5,4,"div",5),t.DNE(10,Is,4,3,"button",14),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.Y8G("ngClass",t.eq3(10,Fs,"unconfirmed"!==n.userEmailStatus()||n.isPending)),t.R7$(2),t.SpI("",t.bMT(4,8,"ACCOUNT.INFO.EMAIL_VERIFICATION.STATUS_LABEL")," "),t.R7$(2),t.Y8G("ngIf",!n.isPending),t.R7$(1),t.Y8G("ngIf",n.isPending),t.R7$(1),t.Y8G("ngIf","unconfirmed"!==n.userEmailStatus()),t.R7$(1),t.Y8G("ngIf",n.isPending),t.R7$(1),t.Y8G("ngIf",n.userEmail()),t.R7$(1),t.Y8G("ngIf","confirmed"!==n.userEmailStatus()&&!n.isPending)}}function Ns(e,r){1&e&&(t.j41(0,"div",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.SECURITY.OLD_PW_ALERT")))}function As(e,r){if(1&e&&(t.j41(0,"div",22),t.EFF(1),t.k0s()),2&e){const n=r.ngIf;t.R7$(1),t.JRh(n)}}function ks(e,r){if(1&e&&(t.j41(0,"div",22),t.EFF(1),t.k0s()),2&e){const n=r.ngIf;t.R7$(1),t.SpI("",n," ")}}function ys(e,r){1&e&&(t.j41(0,"div",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"AUTH.REGISTER.PW_ALERT")))}function Gs(e,r){1&e&&(t.j41(0,"div",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.SECURITY.NEW_PW_ALERT")))}function Us(e,r){if(1&e&&(t.j41(0,"div",22),t.EFF(1),t.k0s()),2&e){const n=r.ngIf;t.R7$(1),t.JRh(n)}}function Ms(e,r){1&e&&(t.j41(0,"div",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"AUTH.REGISTER.PW_ALERT")))}function ws(e,r){1&e&&(t.j41(0,"div",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.SECURITY.CONFIRM_PW_ALERT")))}function xs(e,r){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(1),t.JRh(t.bMT(2,1,"ACCOUNT.INFO.SUBMIT_BTN")))}function Ps(e,r){1&e&&(t.nrm(0,"span",23),t.j41(1,"span",24),t.EFF(2,"Loa
3ding..."),t.k0s())}const q=function(e){return{"is-invalid":e}},K=function(e){return{"invalid-toggle-btn":e}},Q=function(e,r){return{"opacity-50":e,"opacity-1":r}};function Ls(e,r){if(1&e&&(t.j41(0,"main",2),t.nrm(1,"iframe",3),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.Y8G("src",n.iframeUrl,t.f$h)}}function $s(e,r){1&e&&(t.j41(0,"main",4),t.nrm(1,"app-topbar",5),t.nI1(2,"translate"),t.j41(3,"div",6)(4,"div",7)(5,"h3"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"h4"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()()),2&e&&(t.R7$(1),t.Y8G("isProvider",!1)("title",t.bMT(2,5,"ACCOUNT.BANK.TOASTR_SUCCESS_DEPOSIT_READY_H1"))("imgSrc","assets/icons/cashier_big.svg"),t.R7$(5),t.JRh(t.bMT(7,7,"ACCOUNT.NOLINK_MESSAGE")),t.R7$(3),t.JRh(t.bMT(10,9,"ACCOUNT.NOLINK_TIP")))}const js=[{path:"",component:W},{path:"profile",component:le,children:[{path:"info",component:Ue},{path:"address",component:We},{path:"account",component:Ze},{path:"preferences",component:pe},{path:"self-exclusion",component:tn},{path:"email-verification",component:(()=>{var e;class r{constructor(o,s,i,a,c){this.userService=o,this.chatService=s,this.toastr=i,this.translate=a,this.authService=c,this.userEmail=(0,t.EWP)(()=>{const d=this.userService.user();return d?d.email:null}),this.userEmailStatus=(0,t.EWP)(()=>{var d;const p=this.userService.user();return p?null===(d=p.emailStatus)||void 0===d?void 0:d.toLowerCase():null}),this.isLoading=!1,this.isPending=!1}submitEmail(){this.userEmail()&&"unconfirmed"===this.userEmailStatus()&&(this.isLoading=!0,this.userService.resendVerificationEmail().subscribe({next:o=>{this.isLoading=!1,this.isPending=!0,this.toastr.success(this.translate.instant("ACCOUNT.INFO.EMAIL_VERIFICATION.TOASTR_SUCCESS_MESSAGE"),this.translate.instant("ACCOUNT.INFO.EMAIL_VERIFICATION.TOASTR_SUCCESS_H1"),{toastClass:"ngx-toastr lobbyless-toast"})},error:o=>{var s;switch(this.isLoading=!1,o.type){case"SESSION":this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(s=o.message)&&void 0!==s?s:"SYSTEM.ERRORS.GENERAL_MESSAGE"),this.translate.instant("ACCOUNT.INFO.EMAIL_VERIFICATION.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:this.toastr.error(this.translate.instant("SYSTEM.ERRORS.GENERAL_MESSAGE"),this.translate.instant("ACCOUNT.INFO.EMAIL_VERIFICATION.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}}))}openChat(){this.chatService.toggleChat(!0)}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(v.D),t.rXU(O.m),t.rXU(F.tw),t.rXU(f.c$),t.rXU(I.u))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-verify-email"]],decls:19,vars:16,consts:[[1,"p-2","p-md-3"],[1,"h3","fw-bold","mb-4"],[1,"fw-bold","mb-3"],[1,"text-darker"],["role","button",1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"],["class","mb-2",4,"ngIf"],[1,"alert","alert-primary","m-3"],[1,"bi","bi-info-circle-fill","fs-5"],[1,"mb-2"],[1,"d-flex","flex-wrap","flex-sm-nowrap","align-items-center",3,"ngClass"],[1,"h5","mb-0","m-end-2"],["class","badge",3,"ngClass",4,"ngIf"],["class","badge text-bg-primary",4,"ngIf"],["class","text-darker",4,"ngIf"],["class","btn btn-success btn-lg w-100 mt-4","type","button",3,"disabled","click",4,"ngIf"],[1,"badge",3,"ngClass"],[1,"badge","text-bg-primary"],["for","userEmail",1,"form-label","mb-1"],["type","email","id","userEmail","readonly","",1,"form-control",3,"value"],["type","button",1,"btn","btn-success","btn-lg","w-100","mt-4",3,"disabled","click"],[4,"ngIf","ngIfElse"],["loadingSpinner",""],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"]],template:function(o,s){1&o&&(t.j41(0,"section",0)(1,"h1",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"h5",2),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",3),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"a",4),t.bIt("click",function(){return s.openChat()}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.EFF(13,". "),t.k0s(),t.DNE(14,Ss,11,12,"div",5),t.k0s(),t.j41(15,"div",6),t.nrm(16,"i",7),t.EFF(17),t.nI1(18,"translate"),t.k0s()),2&o&&(t.R
37$(2),t.JRh(t.bMT(3,6,"ACCOUNT.INFO.EMAIL_VERIFICATION.H1")),t.R7$(3),t.JRh(t.bMT(6,8,"ACCOUNT.INFO.EMAIL_VERIFICATION.REQUEST")),t.R7$(3),t.SpI(" ",t.bMT(9,10,"ACCOUNT.INFO.EMAIL_VERIFICATION.REQUEST_TIP1")," "),t.R7$(3),t.JRh(t.bMT(12,12,"ACCOUNT.INFO.PERSONAL.SUPPORT_LINK")),t.R7$(3),t.Y8G("ngIf",s.userEmailStatus()),t.R7$(3),t.SpI(" ",t.bMT(18,14,"ACCOUNT.INFO.WARNING"),"\n"))},dependencies:[u.YU,u.bT,f.D9]}),r})()},{path:"security",component:(()=>{var e;class r{constructor(o,s,i,a,c,d,p){this.formBuilder=o,this.configs=s,this.chatService=i,this.userService=a,this.toastr=c,this.translate=d,this.authService=p,this.formSubmit=!1,this.isLoading=!1,this.passwordForm=this.formBuilder.nonNullable.group({oldPassword:["",[l.k0.required,l.k0.minLength(8),S.d.noSpaceValidator]],newPassword:["",[l.k0.required,l.k0.minLength(8),S.d.noSpaceValidator]],confirmPassword:["",[l.k0.required,l.k0.minLength(8),S.d.noSpaceValidator]]},{validators:[this.matchPasswordsValidator,this.differentFromOldValidator]})}submitForm(){if(this.formSubmit=!0,!this.passwordForm.valid)return;const o={oldPassword:this.oldPassword.value,newPassword:this.newPassword.value};this.isLoading=!0,this.userService.changePassword(o).subscribe({next:s=>{this.isLoading=!1,this.toastr.success(this.translate.instant("ACCOUNT.INFO.SECURITY.TOASTR_SUCCESS_MESSAGE"),this.translate.instant("ACCOUNT.INFO.SECURITY.TOASTR_SUCCESS_H1"),{toastClass:"ngx-toastr lobbyless-toast"})},error:s=>{var i,a,c,d,p;switch(this.isLoading=!1,s.type){case"SESSION":this.configs.isRivalCasino?(this.authService.resetUserSession(),this.toastr.error(this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_MESSAGE"),this.translate.instant("AUTH.LOGIN.TOASTR_ERROR_LOGGEDOUT_H1"),{toastClass:"ngx-toastr lobbyless-toast"})):(this.toastr.error(this.translate.instant("ACCOUNT.INFO.SECURITY.TOASTR_FAILED_MESSAGE_OLD"),this.translate.instant("ACCOUNT.INFO.SECURITY.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"}),this.oldPassword.setErrors({validationErrorFromServer:`${this.translate.instant("ACCOUNT.INFO.SECURITY.TOASTR_FAILED_MESSAGE_OLD")}`}));break;case"SYSTEM":this.toastr.error(this.translate.instant(null!==(i=s.message)&&void 0!==i?i:"SYSTEM.ERRORS.GENERAL_MESSAGE"),this.translate.instant("ACCOUNT.INFO.SECURITY.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;case"FIELD":this.newPassword.setErrors({validationErrorFromServer:null!==(a=s.fieldErrors.newPassword)&&void 0!==a?a:s.message}),this.confirmPassword.setValue(""),this.toastr.error(this.translate.instant(null!==(c=null===(d=s.fieldErrors)||void 0===d?void 0:d.newPassword)&&void 0!==c?c:"SYSTEM.ERRORS.GENERAL_MESSAGE"),this.translate.instant("ACCOUNT.INFO.SECURITY.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"});break;default:s.message&&this.oldPassword.setErrors({validationErrorFromServer:s.message}),this.toastr.error(null!==(p=s.message)&&void 0!==p?p:this.translate.instant("SYSTEM.ERRORS.GENERAL_MESSAGE"),this.translate.instant("ACCOUNT.INFO.TOASTR_FAILED_H1"),{toastClass:"ngx-toastr lobbyless-toast"})}}})}toggleFieldTextType(o){switch(o){case"old":this.oldFieldTextType=!this.oldFieldTextType;break;case"new":this.newFieldTextType=!this.newFieldTextType;break;case"confirm":this.confirmFieldTextType=!this.confirmFieldTextType}}openChat(){this.chatService.toggleChat(!0)}get oldPassword(){return this.passwordForm.get("oldPassword")}get newPassword(){return this.passwordForm.get("newPassword")}get confirmPassword(){return this.passwordForm.get("confirmPassword")}differentFromOldValidator(o){var s,i;return(null===(s=o.get("oldPassword"))||void 0===s?void 0:s.value)!==(null===(i=o.get("newPassword"))||void 0===i?void 0:i.value)?null:{sameAsOld:!0}}matchPasswordsValidator(o){var s,i;return(null===(s=o.get("newPassword"))||void 0===s?void 0:s.value)===(null===(i=o.get("confirmPassword"))||void 0===i?void 0:i.value)?null:{passwordsDontMatch:!0}}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(l.ok),t.rXU(D.w),t.rXU(O.m),t.rXU(v.D),t.rXU(F.tw),t.rXU(f.c$),t.rXU(I.u))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-security"]],decls:59,vars:78,consts:[[1,"p-2","p-md-3"],[1,"h3","fw-bold","mb-4"],[1,"fw-bold","mb-3"],[1,"text-darker"],["role","button",1,"link-primary","link-offset-1-hover","link-underline","link-underline-opacity-0","link-underline-opacity-100-hover",3,"click"],["novalidate","",1,"needs-validation",3,"formGroup","ngSubmit"],[1,"mb-3"],["for","oldPassword",1,"form-label","mb-1"],[1,"position-relative"],["id","oldPassword","required","","formControlName","oldPassword",1,"form-control",3,"type","placeholder","ngClass"],["aria-label","Show/hide password",1,"password-toggle-btn",3,"ngClass"],["type","checkbox",1,"password-toggle-check"],[1,"password-toggle-indicator",3,"ngClass","click"],[1,"variable-svg-icon","d-block",3,"pathIdentifier"],["class","invali
3d-feedback",4,"ngIf"],["for","newPassword",1,"form-label","mb-1"],["id","newPassword","required","","formControlName","newPassword",1,"form-control",3,"type","placeholder","ngClass"],["for","confirmPassword",1,"form-label","mb-1"],["id","confirmPassword","required","","formControlName","confirmPassword",1,"form-control",3,"type","placeholder","ngClass"],["type","submit",1,"btn","btn-success","btn-lg","w-100","mt-4",3,"disabled"],[4,"ngIf","ngIfElse"],["loadingSpinner",""],[1,"invalid-feedback"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],["role","status",1,"visually-hidden"]],template:function(o,s){if(1&o&&(t.j41(0,"section",0)(1,"h1",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"h5",2),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",3),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"a",4),t.bIt("click",function(){return s.openChat()}),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"form",5),t.bIt("ngSubmit",function(){return s.submitForm()}),t.j41(14,"div",6)(15,"label",7),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"div",8),t.nrm(19,"input",9),t.nI1(20,"translate"),t.j41(21,"label",10),t.nrm(22,"input",11),t.j41(23,"span",12),t.bIt("click",function(){return s.toggleFieldTextType("old")}),t.nrm(24,"app-svg-icon",13),t.k0s()(),t.DNE(25,Ns,3,3,"div",14),t.DNE(26,As,2,1,"div",14),t.k0s()(),t.j41(27,"div",6)(28,"label",15),t.EFF(29),t.nI1(30,"translate"),t.k0s(),t.j41(31,"div",8),t.nrm(32,"input",16),t.nI1(33,"translate"),t.j41(34,"label",10),t.nrm(35,"input",11),t.j41(36,"span",12),t.bIt("click",function(){return s.toggleFieldTextType("new")}),t.nrm(37,"app-svg-icon",13),t.k0s()(),t.DNE(38,ks,2,1,"div",14),t.DNE(39,ys,3,3,"div",14),t.DNE(40,Gs,3,3,"div",14),t.k0s()(),t.j41(41,"div",6)(42,"label",17),t.EFF(43),t.nI1(44,"translate"),t.k0s(),t.j41(45,"div",8),t.nrm(46,"input",18),t.nI1(47,"translate"),t.j41(48,"label",10),t.nrm(49,"input",11),t.j41(50,"span",12),t.bIt("click",function(){return s.toggleFieldTextType("confirm")}),t.nrm(51,"app-svg-icon",13),t.k0s()(),t.DNE(52,Us,2,1,"div",14),t.DNE(53,Ms,3,3,"div",14),t.DNE(54,ws,3,3,"div",14),t.k0s()(),t.j41(55,"button",19),t.DNE(56,xs,3,3,"span",20),t.DNE(57,Ps,3,0,"ng-template",null,21,t.C5r),t.k0s()()()),2&o){const i=t.sdS(58);t.R7$(2),t.JRh(t.bMT(3,37,"ACCOUNT.INFO.SECURITY.H1")),t.R7$(3),t.JRh(t.bMT(6,39,"ACCOUNT.INFO.SECURITY.REQUEST")),t.R7$(3),t.SpI(" ",t.bMT(9,41,"ACCOUNT.INFO.SECURITY.REQUEST_TIP")," "),t.R7$(3),t.JRh(t.bMT(12,43,"ACCOUNT.INFO.PERSONAL.SUPPORT_LINK")),t.R7$(2),t.Y8G("formGroup",s.passwordForm),t.R7$(3),t.JRh(t.bMT(17,45,"ACCOUNT.INFO.SECURITY.OLD_PW_LABEL")),t.R7$(3),t.FS9("placeholder",t.bMT(20,47,"ACCOUNT.INFO.SECURITY.OLD_PW_PLACEHOLDER")),t.Y8G("type",s.oldFieldTextType?"text":"password")("ngClass",t.eq3(57,q,s.formSubmit&&s.oldPassword.errors)),t.R7$(2),t.Y8G("ngClass",t.eq3(59,K,s.formSubmit&&s.oldPassword.errors)),t.R7$(2),t.Y8G("ngClass",t.l_i(61,Q,!s.oldFieldTextType,s.oldFieldTextType)),t.R7$(1),t.Y8G("pathIdentifier","eye"),t.R7$(1),t.Y8G("ngIf",!(null!=s.oldPassword.errors&&s.oldPassword.errors.validationErrorFromServer)),t.R7$(1),t.Y8G("ngIf",null==s.oldPassword.errors?null:s.oldPassword.errors.validationErrorFromServer),t.R7$(3),t.JRh(t.bMT(30,49,"ACCOUNT.INFO.SECURITY.NEW_PW_LABEL")),t.R7$(3),t.FS9("placeholder",t.bMT(33,51,"ACCOUNT.INFO.SECURITY.NEW_PW_PLACEHOLDER")),t.Y8G("type",s.newFieldTextType?"text":"password")("ngClass",t.eq3(64,q,s.formSubmit&&(s.newPassword.errors||(null==s.passwordForm.errors?null:s.passwordForm.errors.sameAsOld)))),t.R7$(2),t.Y8G("ngClass",t.eq3(66,K,s.formSubmit&&s.newPassword.errors)),t.R7$(2),t.Y8G("ngClass",t.l_i(68,Q,!s.newFieldTextType,s.newFieldTextType)),t.R7$(1),t.Y8G("pathIdentifier","eye"),t.R7$(1),t.Y8G("ngIf",null==s.newPassword.errors?null:s.newPassword.errors.validationErrorFromServer),t.R7$(1),t.Y8G("ngIf",s.newPassword.errors&&!s.newPassword.errors.validationErrorFromServer),t.R7$(1),t.Y8G("ngIf",s.newPassword.dirty&&(null==s.passwordForm.errors?null:s.passwordForm.errors.sameAsOld)),t.R7$(3),t.JRh(t.bMT(44,53,"ACCOUNT.INFO.SECURITY.CONFIRM_PW_LABEL")),t.R7$(3),t.FS9("placeholder",t.bMT(47,55,"ACCOUNT.INFO.SECURITY.CONFIRM_PW_PLACEHOLDER")),t.Y8G("type",s.confirmFieldTextType?"text":"password")("ngClass",t.eq3(71,q,s.formSubmit&&(s.passwordForm.controls.confirmPassword.errors||(null==s.passwordForm.errors?null:s.passwordForm.errors.passwordsDontMatch)))),t.R7$(2),t.Y8G("ngClass",t.eq3(73,K,s.formSubmit&&s.passwordForm.controls.confirmPassword.errors)),t.R7$(2),t.Y8G("ngClass",t.l_i(75,Q,!s.confirmFieldTextType,s.confirmFieldTextType)),t.R7$(1),t.Y8G("pathIdentifier","eye"),t.R7$(1),t.Y8G("ngIf",null==s.confirmPassword.errors?null:s.confirmPassword.errors.validationErrorFromServer),t.R7$(1),t.Y8G("ngIf",s.confirmPassword.errors&&!s.confirmPassword.errors.validationErrorFromServer),t.R7$(1),t.Y8G("ngIf",s.confirmPassword.valid&&(null==s.passwordForm.errors?null:s.passwordForm.errors.passwordsDontMatch)),t.R7$(1),t.Y8G("disabled",s.isLoading),t.R7$(1),t.Y8G("ngIf",!s.isLoading)("ngIfElse",i)}},dependencies:[u.YU,u.bT,l.qT,l.me,l.BC,l.cb,l.YS,l.j4,l.JD,ht.D,f.D9]}),r})()},{path:"",redirectTo:"info",pathMatch:"full"}]},{path:"banking",component:W},{path:"cashier",component:Ft},{path:"banking/pay",component:(()=>{var e;
3class r{constructor(o){this.sanitizer=o,this.iframeUrl=null}ngOnInit(){var o;let s=null===(o=history.state)||void 0===o?void 0:o.iframeUrl;s&&(this.iframeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(s))}}return(e=r).\u0275fac=function(o){return new(o||e)(t.rXU(Z.up))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-gateway-iframe-component"]],decls:3,vars:2,consts:[["class","container-fluid px-0 vh-100",4,"ngIf","ngIfElse"],["noUrl",""],[1,"container-fluid","px-0","vh-100"],["width","100%","height","100%","title","gateway",3,"src"],[1,"container-fluid","px-0","pb-3","pb-lg-5"],[3,"isProvider","title","imgSrc"],[1,"container-lg","mt-3","px-2","px-md-3"],[1,"container","text-center","py-5"]],template:function(o,s){if(1&o&&(t.DNE(0,Ls,2,1,"main",0),t.DNE(1,$s,11,11,"ng-template",null,1,t.C5r)),2&o){const i=t.sdS(2);t.Y8G("ngIf",s.iframeUrl)("ngIfElse",i)}},dependencies:[u.bT,P.G,f.D9]}),r})()},{path:"promotions",component:ae},{path:"transactions",component:en,children:[{path:"deposits",component:$},{path:"withdrawals",component:$},{path:"wagers",component:$},{path:"reversals",component:$},{path:"promotions",component:$},{path:"",redirectTo:"deposits",pathMatch:"full"}]},{path:"**",component:W}];let Ys=(()=>{var e;class r{}return(e=r).\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[R.iI.forChild(js),R.iI]}),r})();var Bs=h(524),Hs=h(3887);let Xs=(()=>{var e;class r{}return(e=r).\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[u.MD,Ys,f.h.forChild(),l.X1,Bs.MainModule,y.yB,Hs.G]}),r})()}}]); 4//# sourceMappingURL=18.ed4203fde0c71ecd.js.map 5//# debugId=4960f5e2-22f3-5c9e-a2f2-578d25fb452c
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.