1import{a as j}from"./chunk-3YGBBZ3Z.js";import{a as E}from"./chunk-745BQPOS.js";import{b as N}from"./chunk-EHD4YHFX.js";import{b as w}from"./chunk-E3H4BJ7I.js";import{f as Y}from"./chunk-ASTXUBF3.js";import{Ja as G,Ka as q,La as z,Oa as K,Sa as W,a as f,c as b,e as y,g as V,h as R}from"./chunk-XNTCN5LM.js";import{Ca as I,Da as c,Kb as A,Kc as P,Ma as T,Nb as r,P as S,Pb as B,S as _,Sb as k,Tb as p,Ub as g,Xb as U,aa as l,c as h,db as u,eb as m,jb as C,jc as d,kb as n,lb as o,mb as M,nd as F,qa as L,xa as O,yb as v}from"./chunk-5LGYDGR4.js";import"./chunk-HIUAR4UN.js";var X={approved:!0,status:"INITIAL",error:null},x=b(R(X),y(t=>({loading:d(()=>t.status()==="LOADING"||t.status()==="INITIAL")})),V((t,a=l(w))=>({load:E(h(_(()=>f(t,{status:"LOADING",error:null})),S(()=>a.getKycStatus().pipe(N({next:i=>{f(t,{status:"DONE",approved:i.kyc_approved})},error:i=>f(t,{error:i,status:"ERROR"})})))))}))),Z={verification_url:null,status:"INITIAL",error:null},D=b(R(Z),y(t=>({loading:d(()=>t.status()==="LOADING")})),V((t,a=l(w),i=l(x))=>({loadVerificationUrl:E(h(_(()=>f(t,{status:"LOADING",error:null})),S(()=>a.getKycVerificationUrl().pipe(N({next:e=>{f(t,{verification_url:e.url??null,status:"DONE"}),e.verification_required||i.load()},error:e=>f(t,{error:e,status:"ERROR"})})))))})));function $(t,a){t&1&&(n(0,"fx-alert",3),r(1,"Checking verification status, Please wait..."),o())}function tt(t,a){t&1&&(n(0,"fx-alert",6),r(1," Oops! We couldn't start the verification process right now. Please try again later. "),o())}function et(t,a){t&1&&(n(0,"fx-alert",3),r(1," To ensure a secure and compliant gaming experience, we need to verify your identity. "),n(2,"em")(3,"b"),r(4,"Please upload a valid photo ID and proof of address through our secure portal."),o()(),r(5," Your information is handled with care, and verification is quick so you can start enjoying our games and rewards! "),o())}function it(t,a){t&1&&(n(0,"fx-alert",3),r(1,"No action is needed for now."),o())}function nt(t,a){if(t&1&&u(0,tt,2,0,"fx-alert",6)(1,et,6,0,"fx-alert",3)(2,it,2,0,"fx-alert",3),t&2){v();let i=g(0),e=g(2);m(i==="ERROR"?0:e?1:2)}}function ot(t,a){t&1&&(n(0,"fx-alert",4),r(1," Oops! We couldn't start the verification process right now. Please try again later. "),o())}
1function rt(t,a){if(t&1&&(n(0,"a",7),r(1," Verify now "),o()),t&2){let i=v(),e=g(1);A("disabled",e!=="DONE"||!i.urlStore.verification_url()),C("href",i.urlStore.verification_url(),O)}}var bt=(()=>{class t{constructor(){this.matomo=l(Y),this.statusStore=l(x),this.urlStore=l(D),this.balanceStore=l(j),this.loading=d(()=>!!(this.statusStore.loading()||this.urlStore.loading()||!this.balanceStore.balance())),this.getBadgeType=d(()=>this.loading()?"info":this.statusStore.status()==="ERROR"||this.isVerifiable()?"danger":"success"),this.getBadgeLabel=d(()=>this.loading()?"Loading...":this.statusStore.status()==="ERROR"?"ERROR":this.isVerifiable()?"Action Needed":"No Action Needed"),this.isVerifiable=d(()=>{let e=this.statusStore.approved(),s=this.balanceStore.realBalance();return!(e||s<1)}),I(()=>{this.statusStore.load(),this.matomo.trackPageView("Verification")});let i=L(()=>{this.isVerifiable()&&(this.urlStore.loadVerificationUrl(),i.destroy())})}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=T({type:t,selectors:[["fx-verification"]],features:[U([x,D])],decls:16,vars:8,consts:[[1,"pb-0"],[1,"card-title","d-flex","justify-content-between"],["size","sm",1,"verification-badge","my-auto",3,"type"],["type","info"],["type","danger",1,"mb-4"],["target","_blank",1,"flex-fill","d-block","w-100","text-center","flex-fill","d-block","w-100","text-center","btn","btn-primary",3,"href","disabled"],["type","warning"],["target","_blank",1,"flex-fill","d-block","w-100","text-center","flex-fill","d-block","w-100","text-center","btn","btn-primary",3,"href"]],template:function(e,s){if(e&1&&(k(0)(1)(2),n(3,"fx-card")(4,"fx-card-body",0)(5,"h3",1),r(6," Verification "),n(7,"fx-badge",2),r(8),o()(),M(9,"hr"),n(10,"div"),u(11,$,2,0,"fx-alert",3)(12,nt,3,1),o()(),n(13,"fx-card-footer"),u(14,ot,2,0,"fx-alert",4),u(15,rt,2,3,"a",5),o()()),e&2){let H=p(s.statusStore.status());c();let J=p(s.urlStore.status());c();let Q=p(s.isVerifiable());c(5),C("type",s.getBadgeType()),c(),B(" ",s.getBadgeLabel()," "),c(3),m(s.loading()?11:12),c(3),m(J==="ERROR"?14:-1),c(),m(H==="DONE"&&Q?15:-1)}},dependencies:[K,P,F,W,G,q,z],styles:[".verification-badge[_ngcontent-%COMP%]{height:fit-content;padding:4px 8px}"],changeDetection:1})}}return t})();export{bt as VerificationComponent};
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.