PageSourceSearch

https://tablanette.com/chunk-QK4B36SP.js

js tablanette.com collected 2026-10-02 21:37:17 UTC 275,379 bytes, 85 lines download raw bytes

1import{a as qi}from"./chunk-FZQAABYY.js";import{a as ji}from"./chunk-JGH3REO7.js";import{a as Qe}from"./chunk-Y5PKEGZJ.js";import{a as Ai,b as Gi,c as Ni,d as Ui,e as Wi,f as St}from"./chunk-OV2RVYAB.js";import"./chunk-5BCA5R4P.js";import{a as Bi,b as Tt}from"./chunk-M7MALU4R.js";import{a as zi,b as Dn,c as wt}from"./chunk-B6HAWCNR.js";import{b as Ct}from"./chunk-VICJSFC6.js";import{b as xe,c as bt}from"./chunk-I5WZG4ZA.js";import{a as yt}from"./chunk-JL3TS76B.js";import{a as Fi,b as Hi}from"./chunk-JAJCNFMF.js";import{d as Ri,l as Vi,n as Vt,q as Li,s as Re,t as _e,u as Ve}from"./chunk-VTRD4DRG.js";import{a as pt}from"./chunk-UDRLYT4S.js";import{o as Mi,p as ki}from"./chunk-QLHLFYFA.js";import{c as gt,d as ft}from"./chunk-EGH2YYOW.js";import"./chunk-QVVQXAK7.js";import"./chunk-7DFYMR6T.js";import"./chunk-EYDMA7NP.js";import"./chunk-VOZSEBOX.js";import{d as Pe,e as ut}from"./chunk-DKEJMTWH.js";import{a as vt}from"./chunk-QBEVSI4L.js";import"./chunk-YS4TAOYC.js";import{b as Ei}from"./chunk-KGUXX5VB.js";import{a as Oi,b as Di}from"./chunk-YAEPEWPB.js";import"./chunk-U5UNPWKA.js";import{e as gi,h as fi,i as _i,j as Se}from"./chunk-RTCQSZ34.js";import{a as lt}from"./chunk-EYJG6K46.js";import"./chunk-YZGRCHWM.js";import"./chunk-GBN2T7MG.js";import{b as Fe,c as He}from"./chunk-HCTROESA.js";import{B as De,c as ke,f as Ee,g as Ti,h as Si,i as Oe,j as Ii,v as P
vendor: 5,765 bytes, lines 1-82
1i,x as _t,y as xt}from"./chunk-VRAVBXE5.js";import{b as dt,c as ct}from"./chunk-7BI62HGX.js";import"./chunk-K2FFOTHJ.js";import{C as we,D as he,l as ui,r as at,t as rt,u as hi}from"./chunk-STNGBLON.js";import{c as fe,d as wi,e as Ie}from"./chunk-MQ73MKHP.js";import"./chunk-DXQ2TSJO.js";import{i as mt}from"./chunk-7AJKC2Q4.js";import{c as Me,d as ht}from"./chunk-OQOIJ2CW.js";import{c as yi,d as Ci,e as Ze,f as st}from"./chunk-Y7EZXREE.js";import{V as bi}from"./chunk-T4ATVOVN.js";import{B as ge,F as Te,G as vi,x as xi}from"./chunk-WVVCABH3.js";import{$ as Ne,$b as Y,Aa as Ue,B as Ge,C as jt,D as Xe,Db as F,Eb as Z,Fb as Q,Fc as Ht,Hc as Rt,Jc as qe,Kb as l,Lb as r,Mb as a,Mc as it,Nb as _,Nc as ri,Ob as ei,P as qt,Pb as ti,Qb as kt,Rb as et,Rc as Ke,S as Kt,Sb as tt,Sc as li,Tb as Et,U as Zt,Ua as ye,Ub as v,Uc as si,Va as q,Vb as Ot,W as $e,Wa as Jt,Wb as f,Xb as s,Yb as We,Zb as J,_a as o,_b as Ce,_c as di,a as Gt,aa as ce,ac as W,bc as j,c as Nt,ca as se,cc as ii,db as oe,dc as je,ea as D,eb as ve,ec as Dt,f as Ae,fc as ne,gc as C,hc as V,ib as Yt,ic as G,jb as T,jc as Ft,jd as ci,ka as p,kc as m,kd as mi,la as u,lc as x,mc as g,md as ae,nc as te,nd as ue,oc as ni,pb as K,pc as oi,qb as me,qc as S,qd as nt,r as ee,rb as pe,rc as I,rd as ot,sb as Xt,sc as P,t as Ut,ta as Qt,tb as $t,tc as X,td as pi,ub as h,uc as ai,vc as de,wc as z,xc as N,xd as re,ya as Mt,z as Wt}from"./chunk-VQHB4ORK.js";import{a as Je,b as Ye,h as On,i as R}from"./chunk-FBFWB55K.js";var Ki=`
2    .p-divider-horizontal {
3        display: flex;
4        width: 100%;
5        position: relative;
6        align-items: center;
7        margin: dt('divider.horizontal.margin');
8        padding: dt('divider.horizontal.padding');
9    }
10
11    .p-divider-horizontal:before {
12        position: absolute;
13        display: block;
14        inset-block-start: 50%;
15        inset-inline-start: 0;
16        width: 100%;
17        content: '';
18        border-block-start: 1px solid dt('divider.border.color');
19    }
20
21    .p-divider-horizontal .p-divider-content {
22        padding: dt('divider.horizontal.content.padding');
23    }
24
25    .p-divider-vertical {
26        min-height: 100%;
27        display: flex;
28        position: relative;
29        justify-content: center;
30        margin: dt('divider.vertical.margin');
31        padding: dt('divider.vertical.padding');
32    }
33
34    .p-divider-vertical:before {
35        position: absolute;
36        display: block;
37        inset-block-start: 0;
38        inset-inline-start: 50%;
39        height: 100%;
40        content: '';
41        border-inline-start: 1px solid dt('divider.border.color');
42    }
43
44    .p-divider.p-divider-vertical .p-divider-content {
45        padding: dt('divider.vertical.content.padding');
46    }
47
48    .p-divider-content {
49        z-index: 1;
50        background: dt('divider.content.background');
51        color: dt('divider.content.color');
52    }
53
54    .p-divider-solid.p-divider-horizontal:before {
55        border-block-start-style: solid;
56    }
57
58    .p-divider-solid.p-divider-vertical:before {
59        border-inline-start-style: solid;
60    }
61
62    .p-divider-dashed.p-divider-horizontal:before {
63        border-block-start-style: dashed;
64    }
65
66    .p-divider-dashed.p-divider-vertical:before {
67        border-inline-start-style: dashed;
68    }
69
70    .p-divider-dotted.p-divider-horizontal:before {
71        border-block-start-style: dotted;
72    }
73
74    .p-divider-dotted.p-divider-vertical:before {
75        border-inline-start-style: dotted;
76    }
77
78    .p-divider-left:dir(rtl),
79    .p-divider-right:dir(rtl) {
80        flex-direction: row-reverse;
81    }
82`;var Fn=["*"],Hn={root:({instance:t})=>({justifyContent:t.layout==="horizontal"?t.align==="center"||t.align==null?"center":t.align==="left"?"flex-start":t.align==="right"?"flex-end":null:null,alignItems:t.layout==="vertical"?t.align==="center"||t.align==null?"center":t.align==="top"?"flex-start":t.align==="bottom"?"flex-end":null:null})},Rn={root:({instance:t})=>["p-divider p-component","p-divider-"+t.layout,"p-divider-"+t.type,{"p-divider-left":t.layout==="horizontal"&&(!t.align||t.align==="left")},{"p-divider-center":t.layout==="horizontal"&&t.align==="center"},{"p-divider-right":t.layout==="horizontal"&&t.align==="right"},{"p-divider-top":t.layout==="vertical"&&t.align==="top"},{"p-divider-center":t.layout==="vertical"&&(!t.align||t.align==="center")},{"p-divider-bottom":t.layout==="vertical"&&t.align==="bottom"}],content:"p-divider-content"},Zi=(()=>{class t extends bi{name="divider";style=Ki;classes=Rn;inlineStyles=Hn;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Mt(t)))(i||t)}})();static \u0275prov=Ne({token:t,factory:t.\u0275fac})}return t})();var Qi=new se("DIVIDER_INSTANCE"),Vn=(()=>{class t extends Ci{$pcDivider=D(Qi,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=D(Ze,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;layout="horizontal";type="solid";align;_componentStyle=D(Zi);static \u0275fac=(()=>{let e;return function(i){return(e||(e=Mt(t)))(i||t)}})();static \u0275cmp=K({type:t,selectors:[["p-divider"]],hostAttrs:["role","separator"],hostVars:5,hostBindings:function(n,i){n&2&&(F("aria-orientation",i.layout),G(i.sx("root")),Ft(i.cn(i.cx("root"),i.styleClass)))},inputs:{styleClass:"styleClass",layout:"layout",type:"type",align:"align"},features:[de([Zi,{provide:Qi,useExisting:t},{provide:yi,useExisting:t}]),$t([Ze]),Xt],ngContentSelectors:Fn,decls:2,vars:3,consts:[[3,"pBind"]],template:function(n,i){n&1&&(We(),r(0,"div",0),J(1),a()),n&2&&(Ft(i.cx("content")),l("pBind",i.ptm("content")))},dependencies:[re,vi,st,Ze],encapsulation:2,changeDetection:0})}return t})(),Ji=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=me({type:t});
82static \u0275inj=ce({imports:[Vn,st,st]})}return t})();function Ln(t,d){if(t&1&&(r(0,"div",6)(1,"span",7),m(2),a()()),t&2){let e=d.$implicit,n=s();o(2),x(n.label(e))}}var Yi=(()=>{class t{lang;games=[];selectedIndex=0;selectedIndexChange=new oe;prev(){if(!this.games.length)return;let e=(this.selectedIndex-1+this.games.length)%this.games.length;this.selectedIndex=e,this.selectedIndexChange.emit(e)}next(){if(!this.games.length)return;let e=(this.selectedIndex+1)%this.games.length;this.selectedIndex=e,this.selectedIndexChange.emit(e)}label(e){return this.lang&&this.lang[e.labelKey]||e.labelKey}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=K({type:t,selectors:[["app-scores-carousel"]],inputs:{lang:"lang",games:"games",selectedIndex:"selectedIndex"},outputs:{selectedIndexChange:"selectedIndexChange"},decls:8,vars:5,consts:[[1,"scores-carousel"],["type","button",1,"scores-carousel__arrow","scores-carousel__arrow--prev",3,"click"],[1,"scores-carousel__viewport"],[1,"scores-carousel__track"],["class","scores-carousel__page",4,"ngFor","ngForOf"],["type","button",1,"scores-carousel__arrow","scores-carousel__arrow--next",3,"click"],[1,"scores-carousel__page"],[1,"scores-carousel__label"]],template:function(n,i){n&1&&(r(0,"div",0)(1,"button",1),f("click",function(){return i.prev()}),m(2," \u276E "),a(),r(3,"div",2)(4,"div",3),h(5,Ln,3,1,"div",4),a()(),r(6,"button",5),f("click",function(){return i.next()}),m(7," \u276F "),a()()),n&2&&(o(),F("aria-label",(i.lang==null?null:i.lang.miniGamesPrev)||"Previous"),o(3),C("--page-index",i.selectedIndex),o(),l("ngForOf",i.games),o(),F("aria-label",(i.lang==null?null:i.lang.miniGamesNext)||"Next"))},dependencies:[re,ae],styles:["[_nghost-%COMP%]{display:block;width:100%}.scores-carousel[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box}.scores-carousel__arrow[_ngcontent-%COMP%]{flex:0 0 auto;background:transparent;border:0;padding:0 4px;color:var(--brand-primary);font-size:32px;line-height:1;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center;transition:transform .15s ease,filter .15s ease}.scores-carousel__arrow[_ngcontent-%COMP%]:hover{filter:brightness(1.15);transform:scale(1.1)}.scores-carousel__arrow[_ngcontent-%COMP%]:active{transform:scale(.94)}.scores-carousel__viewport[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;overflow:hidden}.scores-carousel__track[_ngcontent-%COMP%]{display:flex;transform:translate(calc(var(--page-index, 0) * -100%));transition:transform .28s cubic-bezier(.4,0,.2,1)}.scores-carousel__page[_ngcontent-%COMP%]{flex:0 0 100%;display:flex;align-items:center;justify-content:center}.scores-carousel__label[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:18px;font-weight:700;color:var(--brand-primary);text-align:center}@media (prefers-reduced-motion: reduce){.scores-carousel__track[_ngcontent-%COMP%]{transition:none}}"]})}return t})();var zn=["memory","hl"];function Xi(t){return zn.indexOf(t)>-1?"score":"wins"}function $i(t,d,e){return Array.isArray(e)?e.map(n=>t==="tablic"?{id:n.id,nickname:n.nickname,value:n.wins,secondary:d?n.played:null}:{id:n.id,nickname:n.nickname,value:n.score,secondary:null}):[]}var zt=class{_box;_destroyed=new Ae;_resizeSubject=new Ae;_resizeObserver;_elementObservables=new Map;constructor(d){this._box=d,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(d){return this._elementObservables.has(d)||this._elementObservables.set(d,new Nt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(d,{box:this._box}),()=>{this._resizeObserver?.unobserve(d),n.unsubscribe(),this._elementObservables.delete(d)}}).pipe(Xe(e=>e.some(n=>n.target===d)),Kt({bufferSize:1,refCount:!0}),$e(this._destroyed))),this._elementObservables.get(d)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},en=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=D(ve);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let i=n?.box||"content-box";return this._observers.has(i)||this._observers.set(i,new zt(i)),this._observers.get(i).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bn=["notch"],An=["matFormFieldNotchedOutline",""],Gn=["*"],tn=["iconPrefixContainer"],nn=["textPrefixContainer"],on=["iconSuffixContainer"],an=["textSuffixContainer"],Nn=["textField"],Un=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Wn=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function jn(t,d){t&1&&_(0,"span",21)}function qn(t,d){if(t&1&&(r(0,"label",20),J(1,1),Z(2,jn,1,0,"span",21),a()),t&2){let e=s(2);l("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),F("for",e._control.disableAutomaticLabeling?null:e._control.id),o(2),Q(!e.hideRequiredMarker&&e._control.required?2:-1)}}
82function Kn(t,d){if(t&1&&Z(0,qn,3,5,"label",20),t&2){let e=s();Q(e._hasFloatingLabel()?0:-1)}}function Zn(t,d){t&1&&_(0,"div",7)}function Qn(t,d){}function Jn(t,d){if(t&1&&h(0,Qn,0,0,"ng-template",13),t&2){s(2);let e=ne(1);l("ngTemplateOutlet",e)}}function Yn(t,d){if(t&1&&(r(0,"div",9),Z(1,Jn,1,1,null,13),a()),t&2){let e=s();l("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),o(),Q(e._forceDisplayInfixLabel()?-1:1)}}function Xn(t,d){t&1&&(r(0,"div",10,2),J(2,2),a())}function $n(t,d){t&1&&(r(0,"div",11,3),J(2,3),a())}function eo(t,d){}function to(t,d){if(t&1&&h(0,eo,0,0,"ng-template",13),t&2){s();let e=ne(1);l("ngTemplateOutlet",e)}}function io(t,d){t&1&&(r(0,"div",14,4),J(2,4),a())}function no(t,d){t&1&&(r(0,"div",15,5),J(2,5),a())}function oo(t,d){t&1&&_(0,"div",16)}function ao(t,d){t&1&&(r(0,"div",18),J(1,6),a())}function ro(t,d){if(t&1&&(r(0,"mat-hint",22),m(1),a()),t&2){let e=s(2);l("id",e._hintLabelId),o(),x(e.hintLabel)}}function lo(t,d){if(t&1&&(r(0,"div",19),Z(1,ro,2,2,"mat-hint",22),J(2,7),_(3,"div",23),J(4,8),a()),t&2){let e=s();o(),Q(e.hintLabel?1:-1)}}var rn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=pe({type:t,selectors:[["mat-label"]]})}return t})(),so=new se("MatError");var ln=(()=>{class t{align="start";id=D(Vt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=pe({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,i){n&2&&(Ot("id",i.id),F("align",null),V("mat-mdc-form-field-hint-end",i.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),co=new se("MatPrefix");var mo=new se("MatSuffix");var hn=new se("FloatingLabelParent"),sn=(()=>{class t{_elementRef=D(Ue);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=D(en);_ngZone=D(ve);_parent=D(hn);_resizeSubscription=new Gt;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return po(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=pe({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,i){n&2&&V("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function po(t){let d=t;if(d.offsetParent!==null)return d.scrollWidth;let e=d.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var dn="mdc-line-ripple--active",It="mdc-line-ripple--deactivating",cn=(()=>{class t{_elementRef=D(Ue);_cleanupTransitionEnd;constructor(){let e=D(ve),n=D(Yt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(It),e.add(dn)}deactivate(){this._elementRef.nativeElement.classList.add(It)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,i=n.contains(It);e.propertyName==="opacity"&&i&&n.remove(dn,It)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=pe({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),mn=(()=>{class t{_elementRef=D(Ue);_ngZone=D(ve);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}
82_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=K({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,i){if(n&1&&Y(Bn,5),n&2){let c;W(c=j())&&(i._notch=c.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,i){n&2&&V("mdc-notched-outline--notched",i.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:An,ngContentSelectors:Gn,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,i){n&1&&(We(),kt(0,"div",1),ei(1,"div",2,0),J(3),ti(),kt(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),uo=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=pe({type:t})}return t})();var ho=new se("MatFormField"),go=new se("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pn="fill",fo="auto",un="fixed",_o="translateY(-50%)",gn=(()=>{class t{_elementRef=D(Ue);_changeDetectorRef=D(si);_platform=D(Ri);_idGenerator=D(Vt);_ngZone=D(ve);_defaults=D(go,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Ke("iconPrefixContainer");_textPrefixContainerSignal=Ke("textPrefixContainer");_iconSuffixContainerSignal=Ke("iconSuffixContainer");_textSuffixContainerSignal=Ke("textSuffixContainer");_prefixSuffixContainers=it(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=li(rn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ai(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||fo}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||pn;this._appearanceSignal.set(n)}_appearanceSignal=Qt(pn);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||un}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||un}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Ae;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Gi();constructor(){let e=this._defaults,n=D(Li);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),ri(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}
82ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=it(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,i="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(i+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(i+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(Zt([void 0,void 0]),Ut(()=>[n.errorState,n.userAriaDescribedBy]),qt(),Xe(([[c,b],[y,M]])=>c!==y||b!==M)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe($e(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),jt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){di({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=it(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];
82if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let c=this._hintChildren?this._hintChildren.find(y=>y.align==="start"):null,b=this._hintChildren?this._hintChildren.find(y=>y.align==="end"):null;c?e.push(c.id):this._hintLabel&&e.push(this._hintLabelId),b&&e.push(b.id)}else this._errorChildren&&e.push(...this._errorChildren.map(c=>c.id));let n=this._control.describedByIds,i;if(n){let c=this._describedByIds||e;i=e.concat(n.filter(b=>b&&!c.includes(b)))}else i=e;this._control.setDescribedByIds(i),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,i=this._iconSuffixContainer?.nativeElement,c=this._textSuffixContainer?.nativeElement,b=e?.getBoundingClientRect().width??0,y=n?.getBoundingClientRect().width??0,M=i?.getBoundingClientRect().width??0,O=c?.getBoundingClientRect().width??0,H=this._currentDirection==="rtl"?"-1":"1",B=`${b+y}px`,$=`calc(${H} * (${B} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,k=`var(--mat-mdc-form-field-label-transform, ${_o} translateX(${$}))`,E=b+y+M+O;return[k,E]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,i]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),i!==null&&this._notchedOutline?._setMaxWidth(i)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=K({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,i,c){if(n&1&&(ii(c,i._labelChild,rn,5),Ce(c,uo,5),Ce(c,co,5),Ce(c,mo,5),Ce(c,so,5),Ce(c,ln,5)),n&2){Dt();let b;W(b=j())&&(i._formFieldControl=b.first),W(b=j())&&(i._prefixChildren=b),W(b=j())&&(i._suffixChildren=b),W(b=j())&&(i._errorChildren=b),W(b=j())&&(i._hintChildren=b)}},viewQuery:function(n,i){if(n&1&&(je(i._iconPrefixContainerSignal,tn,5),je(i._textPrefixContainerSignal,nn,5),je(i._iconSuffixContainerSignal,on,5),je(i._textSuffixContainerSignal,an,5),Y(Nn,5),Y(tn,5),Y(nn,5),Y(on,5),Y(an,5),Y(sn,5),Y(mn,5),Y(cn,5)),n&2){Dt(4);let c;W(c=j())&&(i._textField=c.first),W(c=j())&&(i._iconPrefixContainer=c.first),W(c=j())&&(i._textPrefixContainer=c.first),W(c=j())&&(i._iconSuffixContainer=c.first),W(c=j())&&(i._textSuffixContainer=c.first),W(c=j())&&(i._floatingLabel=c.first),W(c=j())&&(i._notchedOutline=c.first),W(c=j())&&(i._lineRipple=c.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,i){n&2&&V("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-appearance-fill",i.appearance=="fill")("mat-form-field-appearance-outline",i.appearance=="outline")("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-primary",i.color!=="accent"&&i.color!=="warn")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[de([{provide:ho,useExisting:t},{provide:hn,useExisting:t}])],ngContentSelectors:Wn,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormField
82FloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,i){if(n&1){let c=v();We(Un),h(0,Kn,1,1,"ng-template",null,0,qe),r(2,"div",6,1),f("click",function(y){return p(c),u(i._control.onContainerClick(y))}),Z(4,Zn,1,0,"div",7),r(5,"div",8),Z(6,Yn,2,2,"div",9),Z(7,Xn,3,0,"div",10),Z(8,$n,3,0,"div",11),r(9,"div",12),Z(10,to,1,1,null,13),J(11),a(),Z(12,io,3,0,"div",14),Z(13,no,3,0,"div",15),a(),Z(14,oo,1,0,"div",16),a(),r(15,"div",17),Z(16,ao,2,0,"div",18)(17,lo,5,1,"div",19),a()}if(n&2){let c;o(2),V("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),o(2),Q(!i._hasOutline()&&!i._control.disabled?4:-1),o(2),Q(i._hasOutline()?6:-1),o(),Q(i._hasIconPrefix?7:-1),o(),Q(i._hasTextPrefix?8:-1),o(2),Q(!i._hasOutline()||i._forceDisplayInfixLabel()?10:-1),o(2),Q(i._hasTextSuffix?12:-1),o(),Q(i._hasIconSuffix?13:-1),o(),Q(i._hasOutline()?-1:14),o(),V("mat-mdc-form-field-subscript-dynamic-size",i.subscriptSizing==="dynamic");let b=i._getSubscriptMessageType();o(),Q((c=b)==="error"?16:c==="hint"?17:-1)}},dependencies:[sn,mn,ot,cn,ln],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;
82left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
82over .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
82over .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-en
82abled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}
83`],encapsulation:2,changeDetection:0})}return t})();var Le=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=me({type:t});static \u0275inj=ce({imports:[Re,Vi,gn,Re]})}return t})();var fn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=me({type:t});static \u0275inj=ce({})}return t})();var _n=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=me({type:t});static \u0275inj=ce({imports:[Re,Le,Le,fn,Re]})}return t})();function xo(t,d){if(t&1){let e=v();r(0,"button",10),f("click",function(){p(e);let i=s(2);return u(i.inviteGuest.emit())}),a()}if(t&2){let e=s(2);l("label",e.lang.friendInviteTitle)("rounded",!0)}}function vo(t,d){t&1&&(r(0,"mat-icon",24),m(1,"circle"),a())}function bo(t,d){t&1&&(r(0,"mat-icon",25),m(1,"circle"),a())}function yo(t,d){t&1&&(r(0,"mat-icon",26),m(1,"circle"),a())}function Co(t,d){if(t&1&&(r(0,"td",27),m(1),a()),t&2){let e=s(4);o(),g(" ",e.lang["notavailable-offline"]," ")}}function wo(t,d){if(t&1&&(r(0,"td",28),m(1),a()),t&2){let e=s(4);o(),g(" ",e.lang.notavailable," ")}}function To(t,d){if(t&1){let e=v();r(0,"button",29),f("click",function(){p(e);let i=s().$implicit,c=s(3);return u(c.onStartGameDialog.emit({mode:"multi",player:i}))})("mouseenter",function(){p(e);let i=s().$implicit,c=s(3);return u(c.setLabel.emit({type:"invite",nickname:i.nickname}))})("mouseleave",function(){p(e);let i=s(4);return u(i.setLabel.emit({type:"",nickname:""}))}),a()}if(t&2){let e=s(4);l("label",e.lang.challenge)("rounded",!0)}}function So(t,d){if(t&1&&(r(0,"tr",13)(1,"td",14),h(2,vo,2,0,"mat-icon",15)(3,bo,2,0,"mat-icon",16)(4,yo,2,0,"mat-icon",17),a(),r(5,"td",18),m(6),_(7,"br"),r(8,"div",19),m(9),a()(),h(10,Co,2,1,"td",20)(11,wo,2,1,"td",21),r(12,"td",22),h(13,To,1,2,"button",23),a()()),t&2){let e=d.$implicit,n=s(3);o(2),l("ngIf",e.ActiveGames===0&&n.isOnline(e.id)),o(),l("ngIf",e.ActiveGames===0&&!n.isOnline(e.id)),o(),l("ngIf",e.ActiveGames>0),o(2),g(" ",e.nickname," "),o(3),g(" ",e.id," "),o(),l("ngIf",e.ActiveGames===0&&!n.isOnline(e.id)),o(),l("ngIf",e.ActiveGames>0),o(2),l("ngIf",e.ActiveGames===0&&n.isOnline(e.id))}}function Io(t,d){if(t&1&&(r(0,"table",11),h(1,So,14,8,"tr",12),a()),t&2){let e=s(2);o(),l("ngForOf",e.playersResult)}}function Po(t,d){t&1&&(r(0,"mat-icon",24),m(1,"circle"),a())}function Mo(t,d){t&1&&(r(0,"mat-icon",25),m(1,"circle"),a())}function ko(t,d){t&1&&(r(0,"mat-icon",26),m(1,"circle"),a())}function Eo(t,d){if(t&1&&(r(0,"td",27),m(1),a()),t&2){let e=s(4);o(),g(" ",e.lang["notavailable-offline"]," ")}}function Oo(t,d){if(t&1&&(r(0,"td",28),m(1),a()),t&2){let e=s(4);o(),g(" ",e.lang.notavailable," ")}}function Do(t,d){if(t&1){let e=v();r(0,"button",29),f("click",function(){p(e);let i=s().$implicit,c=s(3);return u(c.onStartGameDialog.emit({mode:"multi",player:i}))})("mouseenter",function(){p(e);let i=s().$implicit,c=s(3);return u(c.setLabel.emit({type:"invite",nickname:i.nickname}))})("mouseleave",function(){p(e);let i=s(4);return u(i.setLabel.emit({type:"",nickname:""}))}),a()}if(t&2){let e=s(4);l("label",e.lang.challenge)("rounded",!0)}}function Fo(t,d){if(t&1&&(r(0,"tr",13)(1,"td",14),h(2,Po,2,0,"mat-icon",15)(3,Mo,2,0,"mat-icon",16)(4,ko,2,0,"mat-icon",17),a(),r(5,"td",18),m(6),_(7,"br"),r(8,"div",19),m(9),a()(),h(10,Eo,2,1,"td",20)(11,Oo,2,1,"td",21),r(12,"td",22),h(13,Do,1,2,"button",23),a()()),t&2){let e=d.$implicit,n=s(3);o(2),l("ngIf",e.ActiveGames===0&&n.isOnline(e.id)),o(),l("ngIf",e.ActiveGames===0&&!n.isOnline(e.id)),o(),l("ngIf",e.ActiveGames>0),o(2),g(" ",e.nickname," "),o(3),g(" ",e.id," "),o(),l("ngIf",e.ActiveGames===0&&!n.isOnline(e.id)),o(),l("ngIf",e.ActiveGames>0),o(2),l("ngIf",e.ActiveGames===0&&n.isOnline(e.id))}}function Ho(t,d){if(t&1&&(r(0,"table",11),h(1,Fo,14,8,"tr",12),a()),t&2){let e=s(2);o(),l("ngForOf",e.recentPlayersResult)}}function Ro(t,d){if(t&1){let e=v();r(0,"div",1)(1,"div",2)(2,"label",3),m(3),a(),r(4,"input",4),P("ngModelChange",function(i){p(e);let c=s();return I(c.usernameSearchText,i)||(c.usernameSearchText=i),u(i)}),f("ngModelChange",function(i){p(e);let c=s();return u(c.searchPlayers(i))}),a()(),r(5,"div",5)(6,"div",6),m(7),h(8,xo,1,2,"button",7),r(9,"button",8),f("click",function(){p(e);let i=s();return u(i.showInviteToRegister.emit(!0))}),a()(),h(10,Io,2,1,"table",9)(11,Ho,2,1,"table",9),a()()}if(t&2){let e=s();o(3),x(e.lang.nicknameoremail),o(),S("ngModel",e.usernameSearchText),o(3),g(" ",e.lang.playerSearch," "),o(),l("ngIf",e.canInviteGuest),o(),l("label",e.lang.inviteAFriend)("rounded",!0),o(),l("ngIf",e.playersResult.length>
830&&e.showSearch),o(),l("ngIf",e.recentPlayersResult.length>0&&e.showRecent)}}var Cn=(()=>{class t{rest;lang;user;canInviteGuest=!1;inviteGuest=new oe;_connectedUsers=[];set connectedUsers(e){this._connectedUsers=e}get connectedUsers(){return this._connectedUsers}showSearch=!1;brandTournament;showRecent=!0;onStartGameDialog=new oe;setLabel=new oe;showInviteToRegister=new oe;loadingChange=new oe;usernameSearchText="";playersResult=[];recentPlayersResult=[];searchTimeout;recentTimeout;playerSearchSubscription;constructor(e){this.rest=e}ngOnInit(){setTimeout(()=>{!this.brandTournament||this.brandTournament&&this.brandTournament.accessRules.type=="public"?this.recentPlayers():this.brandTournament&&this.brandTournament.accessRules.type=="emailDomain"&&this.searchPlayers("")})}ngOnDestroy(){this.playerSearchSubscription&&this.playerSearchSubscription.unsubscribe(),clearTimeout(this.searchTimeout),clearTimeout(this.recentTimeout)}searchPlayers(e){clearTimeout(this.searchTimeout),this.playerSearchSubscription&&this.playerSearchSubscription.unsubscribe();let n="";this.brandTournament&&this.brandTournament.accessRules.type=="emailDomain"&&(n=this.brandTournament.id),this.searchTimeout=setTimeout(()=>{e.trim().length>=3?(this.loadingChange.emit(!0),this.playerSearchSubscription=this.rest.searchPlayers(e,n).subscribe(i=>{this.playersResult=i,this.addStatusToPlayersAndSort(),this.showRecent=!1,this.showSearch=!0,this.loadingChange.emit(!1)})):!this.brandTournament||this.brandTournament&&this.brandTournament.accessRules.type=="public"?this.recentPlayers():(this.loadingChange.emit(!0),this.playerSearchSubscription=this.rest.searchPlayers("",n).subscribe(i=>{this.playersResult=i,this.addStatusToPlayersAndSort(),this.showRecent=!1,this.showSearch=!0,this.loadingChange.emit(!1)}))},300)}recentPlayers(){this.loadingChange.emit(!0),this.rest.findRecentPlayers(String(this.user.id)).subscribe(e=>{this.recentPlayersResult=e,this.addStatusToPlayersAndSort(!0),this.showSearch=!1,this.showRecent=!0,this.loadingChange.emit(!1)})}addStatusToPlayersAndSort(e=!1){let n=e?this.recentPlayersResult:this.playersResult;n.forEach(i=>{this.isOnline(i.id)?i.currentStatus=1:i.ActiveGames===0?i.currentStatus=3:i.ActiveGames>0&&(i.currentStatus=2)}),n.sort((i,c)=>i.currentStatus-c.currentStatus)}isOnline(e){return this._connectedUsers.find(n=>n==e)!==void 0}static \u0275fac=function(n){return new(n||t)(T(he))};static \u0275cmp=K({type:t,selectors:[["app-player-search"]],inputs:{lang:"lang",user:"user",canInviteGuest:"canInviteGuest",connectedUsers:"connectedUsers",showSearch:"showSearch",brandTournament:"brandTournament"},outputs:{inviteGuest:"inviteGuest",onStartGameDialog:"onStartGameDialog",setLabel:"setLabel",showInviteToRegister:"showInviteToRegister",loadingChange:"loadingChange"},decls:1,vars:1,consts:[["class","multiplayer-search",4,"ngIf"],[1,"multiplayer-search"],[1,"multiplayer-search-inner"],["for","nickormail",1,"multiplayer-search-wf"],["id","nickormail","pInputText","",1,"multiplayer-search-inner-input",3,"ngModelChange","ngModel"],[1,"multiplayer-search-results"],[1,"multiplayer-search-message"],["style","margin: 20px auto; display: block;","pButton","","pRipple","","type","button","icon","pi pi-link","severity","warn",3,"label","rounded","click",4,"ngIf"],["pButton","","pRipple","","type","button","severity","success",2,"margin","20px auto","display","block",3,"click","label","rounded"],["class","multiplayer-search-results-table",4,"ngIf"],["pButton","","pRipple","","type","button","icon","pi pi-link","severity","warn",2,"margin","20px auto","display","block",3,"click","label","rounded"],[1,"multiplayer-search-results-table"],["class","multiplayer-search-row",4,"ngFor","ngForOf"],[1,"multiplayer-search-row"],[1,"multiplayer-search-status"],["class","online-icon","style","padding-top: 6px",4,"ngIf"],["class","offline-icon","style","padding-top: 6px",4,"ngIf"],["class","unavailable-icon","style","padding-top: 6px",4,"ngIf"],[1,"multiplayer-search-wf"],[1,"multiplayer-search-player-id"],["class","player_unavailable",4,"ngIf"],["class","player_unavailable player_ingame",4,"ngIf"],[1,"multiplayer-invite"],["pButton","","pRipple","","type","button","severity","success","class","button-mp",3,"label","rounded","click","mouseenter","mouseleave",4,"ngIf"],[1,"online-icon",2,"padding-top","6px"],[1,"offline-icon",2,"padding-top","6px"],[1,"unavailable-icon",2,"padding-top","6px"],[1,"player_unavailable"],[1,"player_unavailable","player_ingame"],["pButton","","pRipple","","type","button","severity","success",1,"button-mp",3,"click","mouseenter","mouseleave","label","rounded"]],template:function(n,i){n&1&&h(0,Ro,12,8,"div",0),n&2&&l("ngIf",i.lang!==void 0)},dependencies:[re,ae,ue,De,ke,Ee,Oe,Ie,fe,He,Fe,Ve,_e,Ui,Le,_n],styles:[".multiplayer-search[_ngcontent-%COMP%]{position:absolute;padding-left:20px;padding-right:20px;padding-bottom:40px;top:150px;left:calc(50svw - 200px);
83height:calc(100svh - 220px - var(--safe-bottom));display:flex;flex-direction:column;align-items:flex-start;width:calc(50svw + 210px);font-size:14pt}.multiplayer-search-wf[_ngcontent-%COMP%]{color:#fff;max-width:150px;overflow:hidden}.multiplayer-search-player-id[_ngcontent-%COMP%]{font-size:12px;color:#bbb}.multiplayer-search-status[_ngcontent-%COMP%]{min-width:24px}.multiplayer-search-inner[_ngcontent-%COMP%], .multiplayer-search-inner-input[_ngcontent-%COMP%]{margin-top:6px;align-self:stretch;width:360px}.player_available[_ngcontent-%COMP%]{color:#4caf50}.player_unavailable[_ngcontent-%COMP%]{color:#f11;text-align:right;padding-right:20px;text-shadow:-1px -1px 0 rgba(0,0,0,.4),1px -1px 0 rgba(0,0,0,.4),-1px 1px 0 rgba(0,0,0,.4),1px 1px 0 rgba(0,0,0,.4)}.player_ingame[_ngcontent-%COMP%]{color:var(--brand-primary)}.multiplayer-search-results[_ngcontent-%COMP%]{height:calc(100svh - 290px - var(--safe-bottom));width:380px;overflow-x:hidden;overflow-y:auto;padding-bottom:40px}.multiplayer-search-message[_ngcontent-%COMP%]{color:#fff;width:360px}.multiplayer-search-results-table[_ngcontent-%COMP%]{width:100%}.multiplayer-invite[_ngcontent-%COMP%]{color:var(--brand-primary);font-size:24pt;padding:10px 0 10px 10px;text-align:right}.multiplayer-search-row[_ngcontent-%COMP%]{height:50px}"]})}return t})();var Lo=()=>({width:"99svw",height:"99svh",maxHeight:"99svh",textAlign:"center"}),zo=t=>({width:"100%",height:"97%",display:t}),Bo=()=>({margin:"0 auto"});function Ao(t,d){if(t&1){let e=v();r(0,"div",24),f("click",function(){p(e);let i=s();return i.largeImageSrc="",u(i.showLargeImageDiv=!1)}),_(1,"img",25),a()}if(t&2){let e=s();o(),l("src",X(e.largeImageSrc),q)}}function Go(t,d){if(t&1){let e=v();r(0,"div",26)(1,"div",20),_(2,"span",27),m(3),a(),r(4,"app-mini-games-carousel",28),f("gameClick",function(i){p(e);let c=s();return u(c.miniGameClick.emit(i))}),a()()}if(t&2){let e=s();C("background-color",e.brandTournament.colorScheme.cardPanelBg)("border-color",e.brandTournament.colorScheme.cardPanelBorderColor),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized),o(),g(" ",e.lang.miniGames," "),o(),l("lang",e.lang)("keys",e.selectedMiniGameKeys)("disabled",e.miniGamesDisabled)}}function No(t,d){if(t&1&&(r(0,"div",29)(1,"color"),m(2),a(),m(3),_(4,"span",30),a()),t&2){let e=s();C("background-color",e.brandTournament.colorScheme.cardPanelBg)("border-color",e.brandTournament.colorScheme.cardPanelBorderColor)("color",e.brandTournament.colorScheme.cardPanelText),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized),o(),x(e.lang.startsIn),o(),g(" ",e.starts_in," "),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized)}}function Uo(t,d){if(t&1&&(r(0,"div",29)(1,"color"),m(2),a(),m(3),_(4,"span",30),a()),t&2){let e=s();C("background-color",e.brandTournament.colorScheme.cardPanelBg)("border-color",e.brandTournament.colorScheme.cardPanelBorderColor)("color",e.brandTournament.colorScheme.cardPanelText),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized),o(),x(e.lang.endsIn),o(),g(" ",e.ends_in," "),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized)}}function Wo(t,d){if(t&1&&(r(0,"div",29)(1,"color"),m(2),a(),_(3,"span",30),a()),t&2){let e=s();C("background-color",e.brandTournament.colorScheme.cardPanelBg)("border-color",e.brandTournament.colorScheme.cardPanelBorderColor)("color",e.brandTournament.colorScheme.cardPanelText),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized),o(),x(e.lang.finished),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized)}}function jo(t,d){if(t&1&&(r(0,"div"),_(1,"img",31),m(2),a()),t&2){let e=s();C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized),o(2),g(" ",e.lang.leaderboard," ")}}function qo(t,d){if(t&1&&(r(0,"div"),m(1),a()),t&2){let e=s();C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized),o(),g(" ",e.lang["leaderboard-qualy"]," ")}}function Ko(t,d){t&1&&_(0,"img",43)}function Zo(t,d){t&1&&(r(0,"mat-icon",44),m(1,"person"),a())}function Qo(t,d){t&1&&(r(0,"mat-icon",12),m(1,"circle"),a())}function Jo(t,d){t&1&&(r(0,"mat-icon",45),m(1,"circle"),a())}function Yo(t,d){t&1&&_(0,"img",46)}function Xo(t,d){t&1&&_(0,"img",47)}function $o(t,d){t&1&&_(0,"img",48)}
83function ea(t,d){if(t&1&&(r(0,"tr")(1,"td",32),h(2,Ko,1,0,"img",33)(3,Zo,2,0,"mat-icon",34)(4,Qo,2,0,"mat-icon",35)(5,Jo,2,0,"mat-icon",36),a(),r(6,"td",37),h(7,Yo,1,0,"img",38)(8,Xo,1,0,"img",39)(9,$o,1,0,"img",40),m(10),a(),r(11,"td",41),m(12),a(),r(13,"td",42),m(14),a(),r(15,"td",42),m(16),a()()),t&2){let e=d.$implicit,n=d.index,i=s();o(2),l("ngIf",i.hasQualified(e)),o(),l("ngIf",e.PlayerID==i.user.id&&!i.hasQualified(e)),o(),l("ngIf",i.isOnline(e.PlayerID)&&e.PlayerID!=i.user.id&&!i.hasQualified(e)),o(),l("ngIf",!i.isOnline(e.PlayerID)&&e.PlayerID!=i.user.id&&!i.hasQualified(e)),o(),C("color",i.brandTournament.colorScheme.cardPanelText),o(),l("ngIf",n==0&&i.brandTournament.winCondition=="top3"),o(),l("ngIf",n==1&&i.brandTournament.winCondition=="top3"),o(),l("ngIf",n==2&&i.brandTournament.winCondition=="top3"),o(),g(" ",e.Nickname," "),o(),C("color",i.brandTournament.colorScheme.cardPanelTextEmphasized),o(),g(" ",i.isQualyTournament()&&i.hasQualified(e)?i.pointsToQualify():+e.TotalPoints," "),o(),C("color",i.brandTournament.colorScheme.cardPanelText),o(),g(" ",e.Played," "),o(),C("color",i.brandTournament.colorScheme.cardPanelText),o(),g(" ",e.Wins," ")}}function ta(t,d){if(t&1&&(r(0,"tr")(1,"td",49),m(2),a()()),t&2){let e=s();o(),C("color",e.brandTournament.colorScheme.cardPanelText),o(),g(" ",e.lang.awaitingResults," ")}}function ia(t,d){if(t&1&&(r(0,"tr")(1,"td",50)(2,"mat-icon",45),m(3,"circle"),a(),r(4,"mat-icon",45),m(5,"circle"),a(),r(6,"mat-icon",45),m(7,"circle"),a()()()),t&2){let e=s();o(),C("color",e.brandTournament.colorScheme.cardPanelText)}}function na(t,d){t&1&&(r(0,"mat-icon",44),m(1,"person"),a())}function oa(t,d){if(t&1&&(r(0,"tr")(1,"td",51),h(2,na,2,0,"mat-icon",34),a(),r(3,"td",52),m(4),a(),r(5,"td",53),m(6),a(),r(7,"td",54),m(8),a(),r(9,"td",54),m(10),a()()),t&2){let e=s();o(2),l("ngIf",e.highScorePlayer.PlayerID==e.user.id),o(),C("color",e.brandTournament.colorScheme.cardPanelText),o(),g(" ",e.highScorePlayer.Nickname," "),o(),C("color",e.brandTournament.colorScheme.cardPanelTextEmphasized),o(),g(" ",+e.highScorePlayer.TotalPoints," "),o(),C("color",e.brandTournament.colorScheme.cardPanelText),o(),g(" ",e.highScorePlayer.Played," "),o(),C("color",e.brandTournament.colorScheme.cardPanelText),o(),g(" ",e.highScorePlayer.Wins," ")}}function aa(t,d){if(t&1){let e=v();r(0,"img",58),f("click",function(){let i=p(e).$implicit,c=s(2);return u(c.showSponsorImagePopup(i))}),a()}if(t&2){let e=d.$implicit;l("src",X(e.imageUrl),q)}}function ra(t,d){if(t&1&&(r(0,"div",19)(1,"div",55)(2,"p-carousel",56),h(3,aa,1,2,"ng-template",57),a()()()),t&2){let e=s();C("background-color","#fff")("border-color",e.brandTournament.colorScheme.cardPanelBorderColor)("color",e.brandTournament.colorScheme.cardPanelText),o(2),l("value",e.brandTournament.sponsorImages)("numVisible",1)("numScroll",1)("autoplayInterval",e.brandTournament.sponsorImages.length>1?7e3:0)("circular",!0)}}function la(t,d){t&1&&(r(0,"div",63),_(1,"p-progressSpinner",64),a()),t&2&&(o(),G(z(2,Bo)))}function sa(t,d){}function da(t,d){if(t&1){let e=v();r(0,"p-dialog",59),P("visibleChange",function(i){p(e);let c=s();return I(c.showSponsorUrl,i)||(c.showSponsorUrl=i),u(i)}),h(1,la,2,3,"div",60),_(2,"iframe",61),h(3,sa,0,0,"ng-template",62),a()}if(t&2){let e=s();G(z(14,Lo)),l("modal",!0),S("visible",e.showSponsorUrl),l("closable",!0)("closeOnEscape",!0)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(),l("ngIf",!e.showAdTimeoutPassed),o(),G(N(15,zo,e.showAdTimeoutPassed?"":"none")),l("src",e.sponsorUrl,Jt)("frameBorder","no")}}var In=(()=>{class t{langSvc;rest;sanitizer;cache;lang;brandTournament;user;_connectedUsers=[];set connectedUsers(e){this._connectedUsers=e}static VALID_KEYS=["memory","hl","tct","nmm","chk","nlsc"];miniGameClick=new oe;get selectedMiniGameKeys(){let e=this.brandTournament?.gameModes?.miniGames;return Array.isArray(e)?e.filter(n=>t.VALID_KEYS.includes(n)):[]}get miniGamesDisabled(){return this.tCustom.isDateBeforeTournamentStart(this.brandTournament)||this.tCustom.isDateAfterTournamentEnd(this.brandTournament)}tCustom=new Qe;fullTop10=!0;sponsors=[];highScore;highScorePlayer;playerInHighScoreTop10=!1;playerInHighScoreTop3=!1;timerSubscription;remainingTime;starts_in="";ends_in="";constructor(e,n,i,c){this.langSvc=e,this.rest=n,this.sanitizer=i,this.cache=c}get currentLangCode(){return(this.cache.getCache("ipLocationCountryCode")||"en").toLowerCase()}ngOnInit(){this.getHighScoreFromDB(),this.timerSubscription=Ge(1e3).subscribe(()=>{this.updateRemainingTime()})}ngOnDestroy(){this.timerSubscription&&this.timerSubscription.unsubscribe()}updateRemainingTime(){this.starts_in=this.tCustom.tournamentStartsIn(this.brandTournament),this.ends_in=this.tCustom.tournamentEndsIn(this.brandTournament)}getTop10Icon(){return this.fullTop10?"pi pi-angle-up":"pi pi-angle-down"}getTop3Visible(){return this.highScore&&this.highScore.length&&this.highScore.length>3}getHighScoreFromDB(){return R(this,null,function*(){this.brandTournament.winCondition=="top3"?this.highScore=yield ee(this.rest.highScoreCustomTopN(this.brandTournament)):this.brandTournament.winCondition=="points"&&(this.highScore=yield ee(this.rest.highScoreCustomNOP(this.brandTournament))),this.playerInHighScoreTop10=!1,this.playerInHighScoreTop3=!1;let e=1;for(let n of this.highScore){if(this.playerInHighScoreTop10=parseInt(n.PlayerID)==this.user.id,this.playerInHighScoreTop3=this.playerInHighScoreTop10&&e<=3,this.playerInHighScoreTop10)break;e++}this.playerInHighScoreTop10||this.rest.highScoreCustomPlayer(this.user.id,this.brandTournament).subscribe(n=>{n&&n.length&&n.length>0?this.highScorePlayer=n[0]:this.highScorePlayer={PlayerID:this.user.id,TotalPoints:0,Played:0,Wins:0,Nickname:this.user.nickname}})})}getHighScore(){return this.highScore&&this.highScore.length?this.fullTop10?this.highScore:this.highScore.slice(0,3):[]}isOnline(e){return this._connectedUsers.find(n=>n==e)!==void 0}hasQualified(e){return this.brandTournament.winCondition=="points"&&Number(e.TotalPoints)>=Number(this.brandTournament.pointsToQualify)}isQualyTournament(){return this.brandTournament.winCondition=="points"}pointsToQualify(){return this.brandTournament.pointsToQualify+"+"}showLargeImageDiv=!1;largeImageSrc="";showAdTimeoutPassed=!1;showSponsorUrl;sponsorUrl;showSponsorImagePopup(e){this.showSponsorUrl=this.showLargeImageDiv=!1,e.linkUrl?(setTimeout(()=>{this.showSponsorUrl=!0,this.sponsorUrl=this.sanitizer.bypassSecurityTrustResourceUrl(e.linkUrl)},10),setTimeout(()=>{this.showAdTimeoutPassed=!0},2e3)):(this.showSponsorUrl=!1,this.largeImageSrc=e.originalImageUrl||e.imageUrl,this.showLargeImageDiv=!0)}static \u0275fac=function(n){return new(n||t)(T(Se),T(he),T(ui),T(we))};static \u0275cmp=K({type:t,selectors:[["app-custom-tournament"]],inputs:{lang:"lang",brandTournament:"brandTournament",user:"user",connectedUsers:"connectedUsers"},outputs:{miniGameClick:"miniGameClick"},decls:38,vars:45,consts:[["class","large-image-wrapper",3,"click",4,"ngIf"],[1,"high-score-inner"],["class","card-panel-vertical ct-mini-games",3,"background-color","border-color",4,"ngIf"],["class","card-panel",3,"background-color","border-color","color",4,"ngIf"],[1,"card-panel",2,"padding","10px","padding-top","0","padding-bottom","26px"],[1,"high-score-results-table",2,"margin-top","20px"],["colspan","5",1,"high-score-wf-td1"],[1,"high-score-wf-td1-flex"],[3,"color",4,"ngIf"],["pButton","","pRipple","","type","button","severity","secondary",1,"button-t500-expand",3,"click","icon","rounded"],[1,"card-panel-title-flex",2,"font-size","16px"],[1,"high-score-wf-td2",2,"padding","0","text-align","left"],[1,"online-icon"],[1,"high-score-wf-td2"],[1,"high-score-wf-td2","high-score-wf-td3"],[1,"high-score-wf-td2","high-score-wf-td3","high-score-wf-td4",2,"padding-right","0"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","card-panel-vertical",3,"background-color","border-color","color",4,"ngIf"],[1,"card-panel-vertical"],[1,"card-panel-title-flex"],[1,"pi","pi-receipt"],[1,"rules-div",3,"innerHTML"],["class","full-page-dialog",3,"modal","visible","closable","closeOnEscape","draggable","baseZIndex","autoZIndex","style","visibleChange",4,"ngIf"],[1,"large-image-wrapper",3,"click"],[1,"large-image",3,"src"],[1,"card-panel-vertical","ct-mini-games"],[1,"pi","pi-prime"],["mode","click",3,"gameClick","lang","keys","disabled"],[1,"card-panel"],[1,"pi","pi-clock"],["src","/assets/images/trophy_small.png",2,"height","40px","vertical-align","middle"],[1,"high-score-status-row"],["src","/assets/images/check.webp","style","height: 20px;",4,"ngIf"],["style","color: var(--brand-primary);",4,"ngIf"],["class","online-icon",4,"ngIf"],["class","offline-icon",4,"ngIf"],[1,"high-score-wf"],["src","/assets/images/trophy_small.png","style","height: 26p
83x;vertical-align: middle;margin-right: 3px",4,"ngIf"],["src","/assets/images/trophy_small_2.png","style","height: 23px;vertical-align: middle;margin-right: 5px",4,"ngIf"],["src","/assets/images/trophy_small_3.png","style","height: 20px;vertical-align: middle;margin-right: 7px",4,"ngIf"],[1,"high-score-result"],[1,"high-score-result","high-score-result2",2,"padding-right","0"],["src","/assets/images/check.webp",2,"height","20px"],[2,"color","var(--brand-primary)"],[1,"offline-icon"],["src","/assets/images/trophy_small.png",2,"height","26px","vertical-align","middle","margin-right","3px"],["src","/assets/images/trophy_small_2.png",2,"height","23px","vertical-align","middle","margin-right","5px"],["src","/assets/images/trophy_small_3.png",2,"height","20px","vertical-align","middle","margin-right","7px"],["colspan","5",1,"high-score-result","high-score-result2",2,"padding-right","0","text-align","center","font-size","0.8em"],["colspan","5",1,"high-score-result","high-score-result2",2,"padding","10px","text-align","center","font-size","0.8em"],[1,"high-score-status-row",2,"margin-top","3px","padding-top","4px","border-top","1px dashed #fff"],[1,"high-score-wf",2,"margin-top","0px","padding-top","6px","border-top","1px dashed #fff"],[1,"high-score-result",2,"margin-top","3px","padding-top","0px","border-top","1px dashed #fff"],[1,"high-score-result","high-score-result2",2,"margin-top","3px","padding-top","3px","border-top","1px dashed #fff","padding-right","0"],[1,"card-panel-body-vflex",2,"padding-top","10px","padding-bottom","0px"],[3,"value","numVisible","numScroll","autoplayInterval","circular"],["pTemplate","item"],[1,"w-full","border-round",2,"cursor","pointer","height","100px","vertical-align","middle","object-fit","contain",3,"click","src"],[1,"full-page-dialog",3,"visibleChange","modal","visible","closable","closeOnEscape","draggable","baseZIndex","autoZIndex"],["class","dialog-loader",4,"ngIf"],[3,"src","frameBorder"],["pTemplate","footer"],[1,"dialog-loader"],["strokeWidth","4","fill","transparent","animationDuration","500s",1,"w-4rem","h-4rem"]],template:function(n,i){n&1&&(h(0,Ao,2,2,"div",0),r(1,"div",1),h(2,Go,5,12,"div",2)(3,No,5,12,"div",3)(4,Uo,5,12,"div",3)(5,Wo,4,11,"div",3),r(6,"div",4)(7,"table",5)(8,"th",6)(9,"div",7),h(10,jo,3,3,"div",8)(11,qo,2,3,"div",8),r(12,"button",9),f("click",function(){return i.getHighScoreFromDB()}),a()(),_(13,"div",10),a(),r(14,"tr")(15,"td",11)(16,"mat-icon",12),m(17,"circle"),a()(),r(18,"td",13),m(19),a(),r(20,"td",14),m(21),a(),r(22,"td",15),m(23," P "),a(),r(24,"td",15),m(25," W "),a()(),h(26,ea,17,19,"tr",16)(27,ta,3,3,"tr",17)(28,ia,8,2,"tr",17)(29,oa,11,13,"tr",17),a()()(),r(30,"div",1),h(31,ra,4,11,"div",18),r(32,"div",19)(33,"div",20),m(34),_(35,"span",21),a(),_(36,"div",22),a()(),h(37,da,4,17,"p-dialog",23)),n&2&&(l("ngIf",i.showLargeImageDiv),o(2),l("ngIf",i.selectedMiniGameKeys.length),o(),l("ngIf",i.tCustom.isDateBeforeTournamentStart(i.brandTournament)),o(),l("ngIf",i.tCustom.isTournamentActive(i.brandTournament)),o(),l("ngIf",i.tCustom.isDateAfterTournamentEnd(i.brandTournament)),o(),C("background-color",i.brandTournament.colorScheme.cardPanelBg)("border-color",i.brandTournament.colorScheme.cardPanelBorderColor)("color",i.brandTournament.colorScheme.cardPanelText),o(4),l("ngIf",!i.isQualyTournament()),o(),l("ngIf",i.isQualyTournament()),o(),l("icon","pi pi-refresh")("rounded",!0),o(),C("color",i.brandTournament.colorScheme.cardPanelText),o(5),C("color",i.brandTournament.colorScheme.cardPanelText),o(),g(" ",i.lang.nickname),o(),C("color",i.brandTournament.colorScheme.cardPanelText),o(),g(" ",i.lang.points," "),o(),C("color",i.brandTournament.colorScheme.cardPanelText),o(2),C("color",i.brandTournament.colorScheme.cardPanelText),o(2),l("ngForOf",i.getHighScore()),o(),l("ngIf",i.getHighScore().length==0),o(),l("ngIf",i.isQualyTournament()&&i.getHighScore().length>5),o(),l("ngIf",i.highScorePlayer&&(!i.playerInHighScoreTop10&&i.fullTop10||!i.playerInHighScoreTop3&&!i.fullTop10)),o(2),l("ngIf",i.brandTournament.sponsorImages.length>0),o(),C("background-color",i.brandTournament.colorScheme.cardPanelBg)("border-color",i.brandTournament.colorScheme.cardPanelBorderColor)("color",i.brandTournament.colorScheme.cardPanelText),o(),C("color",i.brandTournament.colorScheme.cardPanelTextEmphasized),o(),g(" ",i.lang.tournamentRules," "),o(),C("color",i.brandTournament.colorScheme.cardPanelTextEmphasized),o(),l("innerHTML",i.tCustom.localizedField(i.brandTournament,"rules",i.currentLangCode),ye),o(),l("ngIf",i.showSponsorUrl))},dependencies:[ft,gt,Te,_e,ae,ue,fe,mt,Pe,Me,vt],styles:['.high-score-wf[_ngcontent-%COMP%]{max-width:120px!important;overflow:hidden!important}.large-image-wrapper[_ngcontent-%COMP%]{position:fixed;top:0;left:0;background-color:#000000e6;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;z-index:9999999;cursor:zoom-out}.large-image[_ngcontent-%COMP%]{height:auto;width:auto!important;object-fit:contain;max-height:100%;max-width:100%}.rules-div[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:13px;margin-top:16px;margin-bottom:16px}.dialog-loader[_ngcontent-%COMP%]{background:#fff;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center}.ct-mini-games[_ngcontent-%COMP%]{position:relative;overflow:hidden;padding:16px 16px 0}.ct-mini-games.mini-games-panel--ripple[_ngcontent-%COMP%]:before{content:"";position:absolute;pointer-events:none;border:2px solid rgba(255,255,255,.95);animation:_ngcontent-%COMP%_ct-mini-games-ripple .6s ease-out}@keyframes _ngcontent-%COMP%_ct-mini-games-ripple{0%{inset:0;border-color:#fffffff2;border-radius:16px;opacity:1}to{inset:14px;border-color:#fff0;border-radius:4px;opacity:0}
83}']})}return t})();var Pt=On(Dn());var ze=class{getRemainingTimeUntilMidnight3rd(){let d=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Belgrade",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),e=new Date,n=d.formatToParts(e),i=parseInt(n.find(w=>w.type==="year").value),c=parseInt(n.find(w=>w.type==="month").value)-1,b=parseInt(n.find(w=>w.type==="day").value),y=parseInt(n.find(w=>w.type==="hour").value),M=parseInt(n.find(w=>w.type==="minute").value),O=parseInt(n.find(w=>w.type==="second").value),H=new Date(Date.UTC(i,c,b,y,M,O)),B=c,A=i;(b>4||b===4&&(y>0||M>0||O>0))&&(B++,B>11&&(B=0,A++));let k=new Date(Date.UTC(A,B,4,0,0,0)).getTime()-H.getTime(),E=Math.floor(k/(1e3*60*60*24)),ie=Math.floor(k%(1e3*60*60*24)/(1e3*60*60)),L=Math.floor(k%(1e3*60*60)/(1e3*60)),U=Math.floor(k%(1e3*60)/1e3);return{days:E,hours:ie,minutes:L,seconds:U}}getRemainingTimeToEndOfMonth(){let d=new Date,n=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Belgrade",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(d),i=parseInt(n.find(L=>L.type==="year").value),c=parseInt(n.find(L=>L.type==="month").value)-1,b=parseInt(n.find(L=>L.type==="day").value),y=parseInt(n.find(L=>L.type==="hour").value),M=parseInt(n.find(L=>L.type==="minute").value),O=parseInt(n.find(L=>L.type==="second").value),H=new Date(Date.UTC(i,c,b,y,M,O)),A=new Date(Date.UTC(i,c+1,0,23,59,59,999)).getTime()-H.getTime(),$=Math.floor(A/(1e3*60*60*24)),k=Math.floor(A%(1e3*60*60*24)/(1e3*60*60)),E=Math.floor(A%(1e3*60*60)/(1e3*60)),ie=Math.floor(A%(1e3*60)/1e3);return{days:$,hours:k,minutes:E,seconds:ie}}};var Be=class{getRemainingTimeToEndOfWeek(){let d=new Date,n=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Belgrade",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(d),i=parseInt(n.find(w=>w.type==="year").value),c=parseInt(n.find(w=>w.type==="month").value)-1,b=parseInt(n.find(w=>w.type==="day").value),y=parseInt(n.find(w=>w.type==="hour").value),M=parseInt(n.find(w=>w.type==="minute").value),O=parseInt(n.find(w=>w.type==="second").value),H=new Date(Date.UTC(i,c,b,y,M,O)),B=H.getUTCDay(),A=B===0?1:8-B,k=new Date(Date.UTC(i,c,b+A,0,0,0,0)).getTime()-H.getTime(),E=Math.floor(k/(1e3*60*60*24)),ie=Math.floor(k%(1e3*60*60*24)/(1e3*60*60)),L=Math.floor(k%(1e3*60*60)/(1e3*60)),U=Math.floor(k%(1e3*60)/1e3);return{days:E,hours:ie,minutes:L,seconds:U}}getRemainingTimeUntilMidnightMonday(){let d=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Belgrade",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),e=new Date,n=d.formatToParts(e),i=parseInt(n.find(w=>w.type==="year").value),c=parseInt(n.find(w=>w.type==="month").value)-1,b=parseInt(n.find(w=>w.type==="day").value),y=parseInt(n.find(w=>w.type==="hour").value),M=parseInt(n.find(w=>w.type==="minute").value),O=parseInt(n.find(w=>w.type==="second").value),H=new Date(Date.UTC(i,c,b,y,M,O)),B=H.getUTCDay(),A;B===1?A=0:A=B===0?1:8-B;let k=new Date(Date.UTC(i,c,b+A,24,0,0)).getTime()-H.getTime(),E=Math.floor(k/(1e3*60*60*24)),ie=Math.floor(k%(1e3*60*60*24)/(1e3*60*60)),L=Math.floor(k%(1e3*60*60)/(1e3*60)),U=Math.floor(k%(1e3*60)/1e3);return{days:E,hours:ie,minutes:L,seconds:U}}};var _a=()=>({width:"calc(100% - 24px)"}),xa=t=>({"600px":t}),va=()=>({width:"calc(100% - 32px)",maxWidth:"28rem",textAlign:"center"}),ba=()=>({width:"90%",maxWidth:"25rem",textAlign:"center"}),ya=()=>[11,51,101],Ca=()=>({view:"multiplayer"}),wa=()=>({}),Ta=t=>({view:"multiplayer",invite:t}),Sa=t=>({border:t});function Ia(t,d){if(t&1&&(r(0,"div",18),_(1,"p-progressSpinner",19),a()),t&2){let e=s();o(),l("ariaLabel",e.lang.friendInviteLoading)}}function Pa(t,d){if(t&1){let e=v();r(0,"button",26),f("click",function(){p(e);let i=s(2);return u(i.login())}),a()}if(t&2){let e=s(2);l("rounded",!0)("label",e.lang.mpLogin)}}function Ma(t,d){if(t&1){let e=v();r(0,"p"),m(1),r(2,"button",28),f("click",function(){p(e);let i=s(3);return u(i.login())}),a()()}if(t&2){let e=s(3);o(),g("",e.lang.friendInviteError_registeredOnly," "),o(),l("label",e.lang.mpLogin)("rounded",!0)}}function ka(t,d){if(t&1&&(r(0,"p"),m(1),a()),t&2){let e=s(4);o(),x(e.lang.mpNoReceived)}}function Ea(t,d){if(t&1){let e=v();r(0,"tr")(1,"td",45)(2,"mat-icon",46),m(3),a()(),r(4,"td",47)(5,"strong"),m(6),a(),r(7,"p"),m(8),a(),r(9,"small"),m(10),a()(),r(11,"td")(12,"div",48),_(13,"button",49),r(14,"button",50),f("click",function(){let i=p(e).$implicit,c=s(5);return u(c.finish(i.incoming?"decline":"cancel",i.code))}),a()()()()}if(t&2){let e=d.$implicit,n=s(5);o(2),V("incoming",e.incoming)("outgoing",!e.incoming),F("aria-label",e.incoming?n.lang.mpReceived:n.lang.mpSent)("title",e.incoming?n.lang.mpReceived:n.lang.mpSent),o(),x(e.incoming?"call_received":"call_made"),o(3),x(e.incoming?e.host.nickname:(e.friend==null?null:e.friend.nickname)||n.lang.mpOpenLink),o(2),te("",e.playToPoints," \xB7 ",n.modeLabel(e,n.lang)),o(2),x(n.lang["mpStatus_"+e.status]),o(3),l("severity",e.incoming?"success":"warn")("roun
83ded",!0)("queryParams",N(18,Ta,e.code))("label",n.lang.mpOpen),o(),l("text",!0)("disabled",n.busy||e.status==="starting")("label",e.incoming?n.lang.mpDecline:n.lang.cancel)}}function Oa(t,d){if(t&1&&(r(0,"table",43)(1,"tbody"),h(2,Ea,15,20,"tr",44),a()()),t&2){let e=s(4);F("aria-label",e.lang.mpMyInvites),o(2),l("ngForOf",e.activeInvites)("ngForTrackBy",e.trackInvite)}}function Da(t,d){if(t&1&&(r(0,"p",51),m(1),a()),t&2){let e=s(4);o(),x(e.lang.mpOneInvite)}}function Fa(t,d){if(t&1&&(r(0,"p"),m(1),a()),t&2){let e=s(4);o(),x(e.lang.mpNoPlayers)}}function Ha(t,d){if(t&1&&(r(0,"span"),m(1),a()),t&2){let e=s(6);o(),x(e.lang["notavailable-offline"])}}function Ra(t,d){if(t&1&&(r(0,"span"),m(1),a()),t&2){let e=s(6);o(),x(e.lang.notavailable)}}function Va(t,d){if(t&1){let e=v();r(0,"button",62),f("click",function(){p(e);let i=s().$implicit,c=s(5);return u(c.configure(i))}),a()}if(t&2){let e=s().$implicit,n=s(5);V("brand-btn-keep",e.status==="online"),l("rounded",!0)("disabled",n.guest||n.sent.length>0)("label",e.status==="offline"?n.lang.mpSendLink:n.lang.challenge)}}function La(t,d){if(t&1&&(r(0,"tr",54)(1,"td",55)(2,"mat-icon",56),m(3,"circle"),a()(),r(4,"td",57),m(5),_(6,"br"),r(7,"div",58),m(8),a()(),r(9,"td",59),h(10,Ha,2,1,"span",13)(11,Ra,2,1,"span",13),a(),r(12,"td",60),h(13,Va,1,5,"button",61),a()()),t&2){let e=d.$implicit,n=s(5);o(2),V("online-icon",e.status==="online")("offline-icon",e.status==="offline")("unavailable-icon",e.status==="inGame"),F("aria-label",n.lang["mpPlayer_"+e.status]),o(3),x(e.nickname),o(3),x(e.id),o(),V("player_ingame",e.status==="inGame"),o(),l("ngIf",e.status==="offline"),o(),l("ngIf",e.status==="inGame"),o(2),l("ngIf",e.status!=="inGame")}}function za(t,d){if(t&1&&(r(0,"table",52)(1,"tbody"),h(2,La,14,14,"tr",53),a()()),t&2){let e=s(4);F("aria-label",e.lang.mpFindPlayer),o(2),l("ngForOf",e.players)}}function Ba(t,d){if(t&1){let e=v();et(0),r(1,"section",29)(2,"div",30)(3,"h2"),m(4),a(),r(5,"span",31),m(6),r(7,"span",32),m(8),a()()(),h(9,ka,2,1,"p",13)(10,Oa,3,3,"table",33),a(),h(11,Da,2,1,"p",34),r(12,"section",35)(13,"div",36)(14,"label",37),m(15),a(),r(16,"input",38),P("ngModelChange",function(i){p(e);let c=s(3);return I(c.query,i)||(c.query=i),u(i)}),f("ngModelChange",function(){p(e);let i=s(3);return u(i.findPlayers())}),a()(),r(17,"div",39)(18,"div",40),m(19),a(),r(20,"button",41),f("click",function(){p(e);let i=s(3);return u(i.configure())}),a(),h(21,Fa,2,1,"p",13)(22,za,3,2,"table",42),a()(),tt()}if(t&2){let e=s(3);o(4),x(e.lang.mpMyInvites),o(2),g("",e.lang.mpActive,": "),o(2),x(e.activeInvites.length),o(),l("ngIf",!e.activeInvites.length&&!e.invites.error),o(),l("ngIf",e.activeInvites.length),o(),l("ngIf",e.sent.length),o(4),x(e.lang.nicknameoremail),o(),S("ngModel",e.query),o(3),x(e.lang.playerSearch),o(),l("rounded",!0)("disabled",e.guest||e.sent.length>0)("label",e.lang.mpInviteFriendLink),o(),l("ngIf",!e.searching&&!e.players.length),o(),l("ngIf",e.players.length)}}function Aa(t,d){if(t&1&&(r(0,"div",27),h(1,Ma,3,3,"p",13)(2,Ba,23,14,"ng-container",13),a()),t&2){let e=s(2);o(),l("ngIf",!e.cache.tokenValid()||e.guest),o(),l("ngIf",e.cache.tokenValid()&&!e.guest)}}function Ga(t,d){if(t&1){let e=v();r(0,"button",78),f("click",function(){p(e);let i=s(3);return u(i.confirmReady())}),a()}if(t&2){let e=s(3);l("severity",e.invite.hostReady?"success":"warn")("rounded",!0)("icon",e.invite.hostReady?"pi pi-check":"")("label",e.lang.mpReady+(e.invite.hostReady?"":"?"))("disabled",e.busy||!e.host||!e.waiting||e.invite.hostReady),F("aria-pressed",!!e.invite.hostReady)}}function Na(t,d){if(t&1){let e=v();r(0,"button",78),f("click",function(){p(e);let i=s(3);return u(i.confirmReady())}),a()}if(t&2){let e=s(3);l("severity",e.invite.friendReady?"success":"warn")("rounded",!0)("icon",e.invite.friendReady?"pi pi-check":"")("label",e.lang.mpReady+(e.invite.friendReady?"":"?"))("disabled",e.busy||e.host||!e.waiting||(e.invite.friend==null?null:e.invite.friend.id)!==(e.user==null?null:e.user.id)||e.invite.friendReady),F("aria-pressed",!!e.invite.friendReady)}}function Ua(t,d){if(t&1){let e=v();r(0,"button",79),f("click",function(){p(e);let i=s(3);return u(i.startGame())}),a()}if(t&2){let e=s(3);l("rounded",!0)("label",e.lang.mpStart)("disabled",e.busy||!e.canStart)}}function Wa(t,d){if(t&1){let e=v();r(0,"div",86)(1,"p"),m(2),a(),r(3,"label",87),m(4),a(),r(5,"input",88),P("ngModelChange",function(i){p(e);let c=s(4);return I(c.email,i)||(c.email=i),u(i)}),a(),r(6,"button",89),f("click",function(){p(e);let i=s(4);return u(i.sendEmail())}),a()()}if(t&2){let e=s(4);o(2),x(e.lang.mpEmailHint),o(2),x(e.lang.email),o(),S("ngModel",e.email),o(),l("rounded",!0)("disabled",e.busy||!e.email||!!e.invite.emailSentAt)("label",e.invite.emailSentAt?e.lang.mpEmailSent:e.lang.mpSendEmail)}}function ja(t,d){if(t&1){let e=v();et(0),r(1,"label",80),m(2),a(),r(3,"input",81),f("click",function(i){return p(e),u(i.target.select())}),a(),r(4,"div",82)(5,"button",83),f("click",function(){p(e);let i=s(3);return u(i.shareLink())}),a(),r(6,"button",84),f("click",function(){p(e);let i=s(3);return u(i.showEmail=!i.showEmail)}),a()(),h(7,Wa,7,6,"div",85),tt()}if(t&2){let e=s(3);o(2),x(e.lang.friendInviteLink),o(),l("value",e.link),o(2),l("rounded",!0)("label",e.lang.mpShareLink),o(),l("rounded",!0)("label",e.lang.mpSendEmail),F("aria-expanded",e.showEmail),o(),l("ngIf",e.showEmail)}}
83function qa(t,d){if(t&1&&(r(0,"h3",90),m(1),a()),t&2){let e=s(3);o(),x(e.lang["mpStatus_"+e.invite.status])}}function Ka(t,d){if(t&1&&(r(0,"p",91)(1,"span",92),m(2,"\u25CF"),a(),m(3),a()),t&2){let e=s(3);V("present",e.otherPresent),o(3),g(" ",e.lang[e.otherPresent?"mpOtherPresent":"mpOtherAbsent"])}}function Za(t,d){if(t&1&&(r(0,"p"),m(1),a()),t&2){let e=s(3);o(),x(e.lang.mpWaitingReady)}}function Qa(t,d){if(t&1&&(r(0,"p"),m(1),Ht(2,"date"),a()),t&2){let e=s(3);o(),te("",e.lang.friendInviteExpiry," ",Rt(2,2,e.invite.expiresAt,"shortTime"))}}function Ja(t,d){if(t&1){let e=v();r(0,"button",93),f("click",function(){p(e);let i=s(3);return u(i.finish("cancel"))}),a()}if(t&2){let e=s(3);l("rounded",!0)("disabled",e.busy||e.invite.status==="starting")("label",e.lang.friendInviteCancel)}}function Ya(t,d){if(t&1&&(r(0,"p"),m(1),a()),t&2){let e=s(4);o(),x(e.lang.mpTargeted)}}function Xa(t,d){if(t&1){let e=v();r(0,"button",10),f("click",function(){p(e);let i=s(4);return u(i.finish("decline"))}),a()}if(t&2){let e=s(4);l("rounded",!0)("disabled",e.busy)("label",e.lang.mpDecline)}}function $a(t,d){if(t&1){let e=v();et(0),h(1,Ya,2,1,"p",13),r(2,"div",82),h(3,Xa,1,3,"button",74),r(4,"button",89),f("click",function(){p(e);let i=s(3);return u(i.accept())}),a()(),tt()}if(t&2){let e=s(3);o(),l("ngIf",e.targetedLoginRequired),o(2),l("ngIf",(e.invite.friend==null?null:e.invite.friend.id)===(e.user==null?null:e.user.id)),o(),l("rounded",!0)("disabled",e.busy)("label",e.targetedLoginRequired?e.lang.mpLogin:e.lang.mpJoinRoom)}}function er(t,d){if(t&1){let e=v();r(0,"button",10),f("click",function(){p(e);let i=s(3);return u(i.finish("decline"))}),a()}if(t&2){let e=s(3);l("rounded",!0)("disabled",e.busy||e.invite.status==="starting")("label",e.lang.mpDecline)}}function tr(t,d){if(t&1&&_(0,"app-chat",94),t&2){let e=s(3);l("lobbyCode",e.code)("lang",e.lang)}}function ir(t,d){if(t&1&&(r(0,"p"),m(1),Ht(2,"date"),a()),t&2){let e=d.$implicit,n=s(3);o(),oi("[",Rt(2,4,e.at,"dd.MM.yyyy HH:mm:ss"),"] - ",e.guestVisitor?n.lang.mpGuest:e.nickname,"",e.nickname?": ":"","",n.lang["mpEvent_"+e.operation])}}function nr(t,d){if(t&1){let e=v();r(0,"div",63)(1,"section",64)(2,"h2"),m(3),a(),r(4,"p"),m(5),a(),r(6,"div",65)(7,"div",66)(8,"img",67),f("error",function(i){p(e);let c=s(2);return u(c.avatarFallback(i,c.invite.host))}),a(),r(9,"span"),m(10),a(),h(11,Ga,1,6,"button",68),a(),r(12,"h3",69),m(13),a(),r(14,"div",66)(15,"img",67),f("error",function(i){p(e);let c=s(2);return u(c.avatarFallback(i,c.invite.friend))}),a(),r(16,"span"),m(17),a(),h(18,Na,1,6,"button",68),a()(),h(19,Ua,1,3,"button",70)(20,ja,8,8,"ng-container",13)(21,qa,2,1,"h3",71)(22,Ka,4,3,"p",72)(23,Za,2,1,"p",13)(24,Qa,3,5,"p",13)(25,Ja,1,3,"button",73)(26,$a,5,5,"ng-container",13)(27,er,1,3,"button",74),a(),h(28,tr,1,2,"app-chat",75),r(29,"div",76),h(30,ir,3,7,"p",77),a()()}if(t&2){let e=s(2);o(3),te("",e.lang.mpRoom," ",e.invite.id),o(2),ni("",e.lang.mpFriendly," \xB7 ",e.invite.playToPoints," \xB7 ",e.modeLabel(e.invite,e.lang)),o(3),V("present",e.invite.hostPresent),l("src",e.playerAvatar(e.invite.host),q)("alt",e.invite.host.nickname),o(2),x(e.invite.host.nickname),o(),l("ngIf",e.active),o(2),x(e.lang.mpVersus),o(2),V("present",e.invite.friendPresent),l("src",e.playerAvatar(e.invite.friend),q)("alt",e.opponentName),o(2),x(e.opponentName),o(),l("ngIf",e.active),o(),l("ngIf",e.active&&e.host),o(),l("ngIf",e.active&&e.host),o(),l("ngIf",e.invite.status!=="pending"),o(),l("ngIf",e.active),o(),l("ngIf",e.waiting&&e.active),o(),l("ngIf",e.active),o(),l("ngIf",e.active&&e.host),o(),l("ngIf",e.active&&!e.host&&!e.waiting&&!e.needsGuestNickname),o(),l("ngIf",e.waiting&&e.active&&!e.host),o(),l("ngIf",e.active&&(e.host||(e.invite.friend==null?null:e.invite.friend.id)===(e.user==null?null:e.user.id))),o(),F("aria-label",e.lang.mpRoomLog),o(),l("ngForOf",e.invite.events)}}function or(t,d){if(t&1&&(r(0,"main",20)(1,"div",21),_(2,"button",22),r(3,"h1"),m(4),a()(),h(5,Pa,1,2,"button",23)(6,Aa,3,2,"div",24)(7,nr,31,30,"div",25),a()),t&2){let e=s();V("mp-search-page",!e.code),o(2),l("label","<")("rounded",!0)("queryParams",e.code?z(10,Ca):z(11,wa)),F("aria-label",e.lang.friendInviteBack),o(2),x(e.lang.multiPlayer),o(),l("ngIf",e.needsLogin),o(),l("ngIf",!e.code),o(),l("ngIf",e.code&&e.invite)}}function ar(t,d){if(t&1&&(r(0,"p"),m(1),a()),t&2){let e=s();o(),x(e.lang.mpBusyHint)}}function rr(t,d){if(t&1){let e=v();r(0,"app-game-mode-selector",95),P("valueChange",function(i){p(e);let c=s();return I(c.ruleset,i)||(c.ruleset=i),u(i)}),a()}if(t&2){let e=s();l("lang",e.lang),S("value",e.ruleset),l("disabled",e.busy)}}function lr(t,d){if(t&1){let e=v();r(0,"div",96)(1,"button",97),f("click",function(){let i=p(e).$implicit,c=s();return u(c.points=i)}),a(),r(2,"span",98),_(3,"img",99),m(4),a()()}if(t&2){let e=d.$implicit,n=s();o(),l("rounded",!0)("disabled",n.busy)("label",n.lang["gameLength"+e])("ngStyle",N(6,Sa,n.points===e?"6px solid #800000":"")),F("aria-pressed",n.points===e),o(3),x(e===11?1:e===51?3:7)}}function sr(t,d){if(t&1){let e=v();r(0,"button",10),f("click",function(){p(e);let i=s();return u(i.dialog=!1)}),a(),r(1,"button",89),f("click",function(){p(e);let i=s();return u(i.create())}),a()}if(t&2){let e=s();l("rounded",!0)("disabled",e.busy)("label",e.lang.cancel),o(),l("rounded",!0)("disabled",e.busy)("label",e.selected?e.lang.mpSendInvite:e.lang.friendInviteCreate)}}var Pn=(()=>{class t{invites;cache;rest;language;share;route;router;messenger;messages;juxtabSelection=null;get ruleset(){return this.juxtabSelection||(this.kontra?"kontra":"normal")}set ruleset(e){this.juxtabSelection=xe({ruleset:e})?e:null,this.kontra=e==="kontra"}modeLabel=bt;lang={};code="";invite;user;players=[];query="";searching=!1;dialog=!1;selected=null;points=11;kontra=!1;nickname="";email="";error="";busy=!1;loading=!1;waiting=!1;needsLogin=!1;showEmail=!1;timer;visitTimer;visiting=!1;searchTimer;searchSub;routeSub;generation=0;visibilityChanged=()=>{document.visibilityState!=="visible"&&this.leave()};constructor(e,n,i,c,b,y,M,O,H){this.invites=e,this.cache=n,this.rest=i,this.language=c,this.share=b,this.route=y,this.router=M,this.messenger=O,this.messages=H}
83ngOnInit(){let e=this.route.snapshot.queryParamMap.get("lang");!this.cache.getCache("ipLocationCountryCode")&&/^[a-z]{2}$/.test(e||"")&&this.cache.setCache("ipLocationCountryCode",e),this.lang=this.language.setLanguageNoMatter(),this.loadUser(),this.invites.start(),this.nickname=this.lang.mpGuest,document.addEventListener("visibilitychange",this.visibilityChanged),this.routeSub=this.route.queryParamMap.subscribe(n=>{n.get("view")==="multiplayer"&&this.open(n.get("invite")||"")})}ngOnDestroy(){this.leave(),document.removeEventListener("visibilitychange",this.visibilityChanged),this.generation++,clearTimeout(this.timer),clearTimeout(this.visitTimer),clearTimeout(this.searchTimer),this.searchSub?.unsubscribe(),this.routeSub?.unsubscribe()}loadUser(){try{this.user=JSON.parse(this.cache.getCache("user")||"null")}catch{this.user=null}}get guest(){return!this.user?.email||/Guest.*@tablanette\.com/i.test(this.user.email)}get needsGuestNickname(){return!!this.invite&&!this.invite.targeted&&this.guest}get guestNicknameDialog(){return!this.loading&&!!this.active&&!this.host&&!this.waiting&&this.needsGuestNickname}get validNickname(){return this.nickname.trim().length>=2&&this.nickname.trim().length<=15}declineGuestInvite(){this.busy||(this.invite?.friend?.id&&this.invite.friend.id===Number(this.user?.id)?this.finish("decline"):this.router.navigate(["/home"]))}get host(){return this.invite?.host.id===Number(this.user?.id)}get targetedLoginRequired(){return!!this.invite?.targeted&&(!this.cache.tokenValid()||this.needsLogin||!this.invite.friend?.id||this.invite.friend.id!==Number(this.user?.id))}get otherPresent(){return this.host?this.invite?.friendPresent:this.invite?.hostPresent}get canStart(){return this.host&&this.active&&this.invite?.hostPresent&&this.invite?.friendPresent&&this.invite?.hostReady&&this.invite?.friendReady}confirmReady(){return R(this,null,function*(){if(this.busy||!this.waiting||!this.active)return;this.busy=!0;let e=this.generation;try{let n=yield this.invites.action(this.code,"confirm-ready");e===this.generation&&(this.invite=n)}catch(n){e===this.generation&&this.showError(n)}finally{this.busy=!1}})}startGame(){return R(this,null,function*(){if(this.busy||!this.canStart)return;this.busy=!0;let e=this.generation;try{let n=yield this.invites.action(this.code,"start");if(e!==this.generation)return;this.invite=n,n.status==="started"&&(this.cache.deleteCache("selectedTournament"),this.cache.deleteCache("selectedTournamentObject"),clearTimeout(this.timer),this.router.navigate(["/gameboard"]))}catch(n){e===this.generation&&this.showError(n)}finally{this.busy=!1}})}playerAvatar(e){return e?.avatarurl||(e?.id&&e.id===Number(this.user?.id)?this.user?.avatarurl:"")||this.defaultAvatar(e)}defaultAvatar(e){return"/api/images-pixel?img="+Math.abs(e?.id||0)%54}avatarFallback(e,n){let i=e.target,c=this.defaultAvatar(n);i.getAttribute("src")!==c&&(i.src=c)}get opponentName(){return this.invite?.friend?.nickname||this.lang[this.invite?.targeted?"mpInvitedPlayer":"mpGuest"]}syncGuestNickname(){if(!this.guest||this.invite?.friend?.id!==Number(this.user?.id))return;let e=this.invite.friend.nickname;!e||this.user.nickname===e||(this.user=Ye(Je({},this.user),{nickname:e}),this.cache.setCache("user",JSON.stringify(this.user)),this.messenger.setUser(this.user))}get active(){return this.invite&&["pending","accepted","starting"].includes(this.invite.status)}get received(){return this.invites.inbox.received.filter(e=>["pending","accepted","starting"].includes(e.status))}get sent(){return this.invites.inbox.sent.filter(e=>["pending","accepted","starting"].includes(e.status))}get activeInvites(){return[...this.received.map(e=>Ye(Je({},e),{incoming:!0})),...this.sent.map(e=>Ye(Je({},e),{incoming:!1}))].sort((e,n)=>n.expiresAt-e.expiresAt)}trackInvite(e,n){return n.code}get link(){return this.code?this.invites.link(this.code):""}open(e){return R(this,null,function*(){this.leave();let n=++this.generation;clearTimeout(this.timer),clearTimeout(this.visitTimer),this.code=e,this.invite=void 0,this.error="",this.waiting=!1,this.loading=!0,this.needsLogin=!1,this.showEmail=!1;try{if(this.cache.tokenValid()&&!this.user){let c=yield ee(this.rest.getUserDataForToken());if(n!==this.generation)return;if(!c?.[0]?.id)throw{status:401,error:{code:"loginRequired"}};this.user=c[0],this.cache.setCache("user",JSON.stringify(this.user)),this.messenger.setUser(this.user)}if(!e){this.cache.tokenValid()&&!this.guest&&(this.findPlayers(),yield this.invites.refresh());return}let i=yield this.invites.preview(e);if(n!==this.generation)return;if(this.invite=i,this.cache.tokenValid())try{let c=yield this.invites.get(e);if(n!==this.generation)return;this.invite=c,this.waiting=this.host||["accepted","starting","started"].includes(c.status),this.waiting&&(this.active||c.status==="started")&&this.ready(n)}catch(c){c.status===403&&i.targeted&&(this.needsLogin=!0),c.status!==403&&this.showError(c)}n===this.generation&&this.active&&!this.needsLogin&&this.visit(n)}catch(i){this.showError(i)}finally{n===this.generation&&(this.loading=!1)}})}findPlayers(){if(clearTimeout(this.searchTimer),this.searchSub?.unsubscribe(),!this.cache.tokenValid()||this.guest){this.searching=!1;return}this.searching=!0,this.searchTimer=setTimeout(()=>{this.searchSub=this.invites.search(this.query).subscribe({next:e=>{this.players=e,this.searching=!1},error:e=>{this.showError(e),this.searching=!1}})},300)}configure(e=null){this.selected=e,this.error="";let n=Number(this.cache.getCache("gameLength_"+this.user?.id));this.points=[11,51,101].includes(n)?n:11,this.kontra=this.cache.getCache("gameModeKontra_"+this.user?.id)==="true",this.dialog=!0;let i=this.cache.getCache("gameRuleset_"+this.user?.id);this.ruleset=["normal","kontra","juxtab","juxtab-extreme"].includes(i)?i:this.kontra?"kontra":"normal"}create(){return R(this,null,function*(){if(this.busy)return;this.busy=!0,this.error="";let e=this.generation;try{let n=yield this.invites.create({playToPoints:this.points,isKontra:this.kontra,ruleset:this.ruleset,recipientId:this.selected?.id});if(e!==this.generation)return;this.cache.setCache("gameLength_"+this.user.id,String(this.points)),this.cache.setCache("gameModeKontra_"+this.user.id,String(this.kontra)),this.dialog=!1,this.cache.setCache("gameRuleset_"+this.user.id,this.ruleset),yield this.router.navigate(["/home"],{queryParams:{view:"multiplayer",invite:n.code}}),this.invites.refresh().catch(()=>{})}catch(n){this.showError(n)}finally{this.busy=!1}})}accept(){return R(this,null,function*(){if(this.busy||!this.invite||this.needsGuestNickname&&!this.validNickname)return;if(this.targetedLoginRequired){this.login();return}this.busy=!0,this.error="";let e=this.generation;try{if(this.cache.tokenValid()||(yield this.rest.ensureGuestSession()),this.loadUser(),this.messenger.setUser(this.user),!this.cache.tokenValid())throw{error:{code:"loginRequired"}};let n=yield this.invites.action(this.code,"join",{nickname:this.needsGuestNickname?this.nickname:""});if(e!==this.generation)return;this.invite=n,this.waiting=!0,this.syncGuestNickname(),this.ready(e),this.invites.refresh().catch(()=>{})}catch(n){this.showError(n)}finally{this.busy=!1}})}visit(e){return R(this,null,function*(){if(!(e!==this.generation||!this.active)){try{if(!this.waiting&&document.visibilityState==="visible"){this.visiting=!0;let n=yield this.invites.visit(this.code);
83if(e!==this.generation)return;this.invite&&Object.assign(this.invite,n)}}catch(n){if([401,403,410].includes(n.status))return}e===this.generation&&this.active&&(this.visitTimer=setTimeout(()=>this.visit(e),8e3))}})}ready(e){return R(this,null,function*(){if(e===this.generation){try{if(document.visibilityState==="visible"){let n=yield this.invites.action(this.code,"ready");if(e!==this.generation)return;if(this.invite=n,this.error="",this.syncGuestNickname(),n.status==="started"){this.cache.deleteCache("selectedTournament"),this.cache.deleteCache("selectedTournamentObject"),this.router.navigate(["/gameboard"]);return}}}catch(n){if(e!==this.generation)return;if(n.status===409&&n.error?.code==="busy"||this.showError(n),[401,403,410].includes(n.status)){if(this.waiting=!1,n.status===410)try{let i=yield this.invites.get(this.code);e===this.generation&&(this.invite=i)}catch{}return}}e===this.generation&&(this.timer=setTimeout(()=>this.ready(e),4e3))}})}finish(i){return R(this,arguments,function*(e,n=this.code){if(!this.busy){this.busy=!0;try{let c=yield this.invites.action(n,e);n===this.code&&(this.leave(),clearTimeout(this.timer),clearTimeout(this.visitTimer),this.generation++,this.invite=c,this.waiting=!1),yield this.invites.refresh()}catch(c){this.showError(c)}finally{this.busy=!1}}})}shareLink(){return R(this,null,function*(){let e=yield this.share.shareInvitation(this.link,this.lang.mpInviteTitle);(e==="copied"||e==="unavailable")&&this.messages.add({key:"multiplayer-errors",severity:e==="copied"?"success":"warn",summary:this.lang[e==="copied"?"linkCopied":"friendInviteCopyManually"],sticky:!1})})}sendEmail(){return R(this,null,function*(){if(!this.busy){this.busy=!0,this.error="";try{this.invite=yield this.invites.action(this.code,"email",{email:this.email}),this.messages.add({key:"multiplayer-errors",severity:"success",summary:this.lang.mpEmailSent,sticky:!1})}catch(e){this.showError(e)}finally{this.busy=!1}}})}login(){this.cache.deleteCache("token"),this.cache.deleteCache("user"),this.messenger.setUser(null),this.cache.setCache("pendingLobbyReturn","/home?view=multiplayer"+(this.code?"&invite="+encodeURIComponent(this.code):"")),this.router.navigate(["/login"])}showError(e){e?.status===401&&(this.needsLogin=!0);let n=this.lang["friendInviteError_"+e?.error?.code]||this.lang.friendInviteError;this.error!==n&&(this.error=n,this.messages.clear("multiplayer-errors"),this.messages.add({key:"multiplayer-errors",severity:"error",summary:n,sticky:!1}))}leave(){this.invite&&(this.host?this.invite.hostReady=!1:this.invite.friendReady=!1),this.waiting&&this.code&&this.invites.action(this.code,"leave").catch(()=>{}),this.visiting&&this.code&&this.invites.visit(this.code,!0).catch(()=>{}),this.visiting=!1}static \u0275fac=function(n){return new(n||t)(T(pt),T(we),T(he),T(Se),T(yt),T(at),T(rt),T(lt),T(ge))};static \u0275cmp=K({type:t,selectors:[["app-multiplayer"]],features:[de([ge])],decls:26,vars:47,consts:[["guestNicknameInput",""],["key","multiplayer-errors","position","top-center",3,"baseZIndex","breakpoints"],["class","mp-loading-overlay",4,"ngIf"],["class","mp-page",3,"mp-search-page",4,"ngIf"],[3,"onShow","visible","header","modal","draggable","resizable","closable","closeOnEscape","blockScroll","baseZIndex"],[1,"mp-guest-form",3,"ngSubmit"],["for","mp-nickname",1,"mp-guest-label"],["pInputText","","id","mp-nickname","name","nickname","minlength","2","maxlength","15","required","","autocomplete","nickname","aria-describedby","mp-guest-hint",3,"ngModelChange","ngModel","disabled"],["id","mp-guest-hint"],[1,"mp-guest-actions"],["pButton","","type","button","severity","danger",3,"click","rounded","disabled","label"],["pButton","","type","submit","severity","success",3,"rounded","disabled","label"],[3,"visibleChange","visible","closeAriaLabel","header","modal","draggable","closable","baseZIndex"],[4,"ngIf"],[3,"lang","value","disabled","valueChange",4,"ngIf"],[1,"game-mode-btn-wrapper"],["class","game-mode-wrapper",4,"ngFor","ngForOf"],["pTemplate","footer"],[1,"mp-loading-overlay"],[3,"ariaLabel"],[1,"mp-page"],[1,"mp-title"],["pButton","","type","button","severity","warn","routerLink","/home",1,"button-back",3,"label","rounded","queryParams"],["pButton","","type","button","severity","warn",3,"rounded","label","click",4,"ngIf"],["class","mp-hub",4,"ngIf"],["class","mp-room-detail",4,"ngIf"],["pButton","","type","button","severity","warn",3,"click","rounded","label"],[1,"mp-hub"],["pButton","","type","button",3,"click","label","rounded"],[1,"card-panel-vertical","card-home","mp-panel","mp-invites-panel"],[1,"mp-invites-heading"],[1,"mp-active-label"],[1,"mp-active-count"],["class","mp-invites-table",4,"ngIf"],["class","mp-hint",4,"ngIf"],[1,"multiplayer-search"],[1,"multiplayer-search-inner"],["for","mp-search",1,"multiplayer-search-wf"],["pInputText","","id","mp-search","aria-describedby","mp-search-help","autocomplete","off",1,"multiplayer-search-inner-input",3,"ngModelChange","ngModel"],[1,"multiplayer-search-results"],["id","mp-search-help",1,"multiplayer-search-message"],["pButton","","type","button","severity","success","icon","pi pi-link",1,"search-invite-friend",3,"click","rounded","disabled","label"],["class","multiplayer-search-results-table",4,"ngIf"],[1,"mp-invites-table"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"mp-direction-cell"],["role","img",1,"mp-direction"],[1,"mp-invite-details"],[1,"mp-actions"],["pButton","","type","button","routerLink","/home",3,"severity","rounded","queryParams","label"],["pButton","","type","button","severity","danger",3,"click","text","disabled","label"],[1,"mp-hint"],[1,"multiplayer-search-results-table"],["class","multiplayer-search-row",4,"ngFor","ngForOf"],[1,"multiplayer-search-row"],[1,"multiplayer-search-status"],["role","img"],[1,"multiplayer-search-wf"],[1,"multiplayer-search-player-id"],[1,"player_unavailable"],[1,"multiplayer-invite"],["pButton","","type","button","severity","success","class","button-mp",3,"rounded","brand-btn-keep","disabled","label","click",4,"ngIf"],["pButton","","type","button","severity","success",1,"button-mp",3,"click","rounded","disabled","label"],[1,"mp-room-detail"],[1,"card-panel-vertical","card-home","mp-panel","mp-invitation"],[1,"mp-players"],[1,"mp-player"],["referrerpolicy","no-referrer",1,"mp-avatar",3,"error","src","alt"],["pButton","","type","button","class","mp-ready brand-btn-keep",3,"severity","rounded","icon","label","disabled","click",4,"ngIf"],[1,"mp-versus"],["pButton","","type","button","class","mp-start brand-btn-keep","severity","success","icon","pi pi-play",3,"rounded","label","disabled","click",4,"ngIf"],["class","mp-waiting-status",4,"ngIf"],["class","mp-presence","role","status",3,"present",4,"ngIf"],["pButton","","type","button","severity","danger","class","brand-btn-keep",3,"rounded","disabled","label","click",4,"ngIf"],["pButton","","type","button","severity","danger",3,"rounded","disabled","label","click",4,"ngIf"],["scope","lobby",3,"lobbyCode","lang",4,"ngIf"],["role","log",1,"mp-room-log"],[4,"ngFor","ngForOf"],["pButton","","type","button",1,"mp-ready","brand-btn-keep",3,"click","
83severity","rounded","icon","label","disabled"],["pButton","","type","button","severity","success","icon","pi pi-play",1,"mp-start","brand-btn-keep",3,"click","rounded","label","disabled"],["for","mp-link"],["pInputText","","id","mp-link","readonly","",3,"click","value"],[1,"mp-toolbar"],["pButton","","type","button","severity","success","icon","pi pi-share-alt",1,"brand-btn-keep",3,"click","rounded","label"],["pButton","","type","button","severity","warn","icon","pi pi-envelope","aria-controls","mp-email-form",3,"click","rounded","label"],["id","mp-email-form","class","mp-email-form",4,"ngIf"],["id","mp-email-form",1,"mp-email-form"],["for","mp-email"],["pInputText","","id","mp-email","type","email","maxlength","254","autocomplete","email",3,"ngModelChange","ngModel"],["pButton","","type","button","severity","success",3,"click","rounded","disabled","label"],[1,"mp-waiting-status"],["role","status",1,"mp-presence"],["aria-hidden","true"],["pButton","","type","button","severity","danger",1,"brand-btn-keep",3,"click","rounded","disabled","label"],["scope","lobby",3,"lobbyCode","lang"],[3,"valueChange","lang","value","disabled"],[1,"game-mode-wrapper"],["pButton","","type","button","severity","warn",1,"game-mode-btn",3,"click","rounded","disabled","label","ngStyle"],[1,"mp-points"],["src","/assets/coin-icons/small/premium.png","alt",""]],template:function(n,i){if(n&1){let c=v();_(0,"p-toast",1),h(1,Ia,2,1,"div",2)(2,or,8,12,"main",3),r(3,"p-dialog",4),f("onShow",function(){p(c);let y=ne(8);return y.focus(),u(y.select())}),r(4,"form",5),f("ngSubmit",function(){return p(c),u(i.accept())}),r(5,"label",6),m(6),a(),r(7,"input",7,0),P("ngModelChange",function(y){return p(c),I(i.nickname,y)||(i.nickname=y),u(y)}),a(),r(9,"p",8),m(10),a(),r(11,"div",9)(12,"button",10),f("click",function(){return p(c),u(i.declineGuestInvite())}),a(),_(13,"button",11),a()()(),r(14,"p-dialog",12),P("visibleChange",function(y){return p(c),I(i.dialog,y)||(i.dialog=y),u(y)}),r(15,"p"),m(16),a(),h(17,ar,2,1,"p",13),r(18,"p"),m(19),a(),h(20,rr,1,3,"app-game-mode-selector",14),r(21,"p"),m(22),a(),r(23,"div",15),h(24,lr,5,8,"div",16),a(),h(25,sr,2,6,"ng-template",17),a()}n&2&&(l("baseZIndex",1e7)("breakpoints",N(42,xa,z(41,_a))),o(),l("ngIf",i.loading||!i.code&&i.searching),o(),l("ngIf",i.lang),o(),G(z(44,va)),l("visible",i.guestNicknameDialog)("header",i.lang.nickname)("modal",!0)("draggable",!1)("resizable",!1)("closable",!1)("closeOnEscape",!1)("blockScroll",!0)("baseZIndex",9999999),o(3),x(i.lang.nickname),o(),S("ngModel",i.nickname),l("disabled",i.busy),o(3),x(i.lang.mpGuestHint),o(2),l("rounded",!0)("disabled",i.busy)("label",i.lang.mpDecline),o(),l("rounded",!0)("disabled",i.busy||!i.validNickname)("label",i.lang.mpJoinRoom),o(),G(z(45,ba)),S("visible",i.dialog),l("closeAriaLabel",i.lang.mpClose)("header",i.lang.gameLengthDialogMultiHeader)("modal",!0)("draggable",!1)("closable",!i.busy)("baseZIndex",9999999),o(2),te("",i.lang.mpFriendly," \xB7 ",(i.selected==null?null:i.selected.nickname)||i.lang.mpOpenLink),o(),l("ngIf",(i.selected==null?null:i.selected.status)==="inGame"),o(2),x(i.lang.chooseRulesetLabel),o(),l("ngIf",i.dialog),o(2),x(i.lang.gameLengthDialogMessage),o(2),l("ngForOf",z(46,ya)))},dependencies:[re,ae,ue,nt,wt,De,Ii,ke,Ee,Ti,Pi,_t,xt,Oe,Si,hi,Ie,fe,Te,ut,Pe,St,Tt,He,Fe,Ve,_e,ht,Me,ct,dt,pi],styles:[".multiplayer-search[_ngcontent-%COMP%]{position:absolute;padding-left:20px;padding-right:20px;padding-bottom:40px;top:150px;left:calc(50svw - 200px);height:calc(100svh - 220px - var(--safe-bottom));display:flex;flex-direction:column;align-items:flex-start;width:calc(50svw + 210px);font-size:14pt}.multiplayer-search-wf[_ngcontent-%COMP%]{color:#fff;max-width:150px;overflow:hidden}.multiplayer-search-player-id[_ngcontent-%COMP%]{font-size:12px;color:#bbb}.multiplayer-search-status[_ngcontent-%COMP%]{min-width:24px}.multiplayer-search-inner[_ngcontent-%COMP%], .multiplayer-search-inner-input[_ngcontent-%COMP%]{margin-top:6px;align-self:stretch;width:360px}.player_available[_ngcontent-%COMP%]{color:#4caf50}.player_unavailable[_ngcontent-%COMP%]{color:#f11;text-align:right;padding-right:20px;text-shadow:-1px -1px 0 rgba(0,0,0,.4),1px -1px 0 rgba(0,0,0,.4),-1px 1px 0 rgba(0,0,0,.4),1px 1px 0 rgba(0,0,0,.4)}.player_ingame[_ngcontent-%COMP%]{color:var(--brand-primary)}.multiplayer-search-results[_ngcontent-%COMP%]{height:calc(100svh - 290px - var(--safe-bottom));width:380px;overflow-x:hidden;overflow-y:auto;padding-bottom:40px}.multiplayer-search-message[_ngcontent-%COMP%]{color:#fff;width:360px}.multiplayer-search-results-table[_ngcontent-%COMP%]{width:100%}.multiplayer-invite[_ngcontent-%COMP%]{color:var(--brand-primary);font-size:24pt;padding:10px 0 10px 10px;text-align:right}.multiplayer-search-row[_ngcontent-%COMP%]{height:50px}",".mp-page[_ngcontent-%COMP%]{position:fixed;top:90px;bottom:calc(110px + var(--safe-bottom, 0px));left:50%;transform:translate(-50%);
83width:min(820px,100% - 32px);margin:0;padding:0;color:#fff;display:flex;flex-direction:column;overflow:hidden}.mp-title[_ngcontent-%COMP%], .mp-toolbar[_ngcontent-%COMP%], .mp-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.mp-title[_ngcontent-%COMP%]{justify-content:center;align-items:flex-start;flex-wrap:nowrap;flex-shrink:0;height:50px;gap:0;margin-bottom:0;color:var(--brand-primary);font-family:var(--brand-font-family)}.mp-title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin:0;padding-top:6px;font-size:24px;font-weight:400}.mp-title[_ngcontent-%COMP%]   .button-back[_ngcontent-%COMP%]{box-sizing:border-box;flex:0 0 40px;width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;font-size:26px;line-height:1;margin:0 10px 10px 0;justify-content:center;align-items:center}.mp-toolbar[_ngcontent-%COMP%]{justify-content:center;margin:16px 0}.mp-guest-form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}.mp-guest-form[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:24px 0;font:14px/1.5 Roboto,sans-serif}.mp-guest-label[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mp-guest-actions[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:12px}.mp-waiting-status[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:10px}.mp-waiting-status[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:var(--brand-primary)}.mp-presence[_ngcontent-%COMP%]{color:#c6c6c6}.mp-presence.present[_ngcontent-%COMP%]{color:#4caf50}.mp-players[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:12px;margin:16px 0 24px}.mp-versus[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0;height:88px;margin:0}.mp-player[_ngcontent-%COMP%]{flex:1;min-width:0;max-width:140px;display:flex;flex-direction:column;align-items:center;gap:10px}.mp-player[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{max-width:100%;overflow-wrap:anywhere;font:14px/1.4 Roboto,sans-serif}.mp-avatar[_ngcontent-%COMP%]{box-sizing:border-box;width:88px;height:88px;max-width:100%;object-fit:cover;border-radius:50%;border:6px solid #969696;background:#222;box-shadow:0 0 10px #141414e6;transition:border-color .2s}.mp-avatar.present[_ngcontent-%COMP%]{border-color:#4caf50}.mp-ready[_ngcontent-%COMP%]{font-size:14px;padding:8px 12px;margin-top:auto}.mp-start[_ngcontent-%COMP%]{align-self:center;min-width:180px;padding:12px 28px;font-size:24px;margin:-8px 0 24px}.mp-loading-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;pointer-events:none}.mp-invites-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.mp-invites-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:16px 6px;border-top:1px solid rgba(255,255,255,.1882352941);vertical-align:middle}.mp-direction-cell[_ngcontent-%COMP%]{width:32px}.mp-direction[_ngcontent-%COMP%]{vertical-align:middle}.mp-direction.incoming[_ngcontent-%COMP%]{color:#4caf50}.mp-direction.outgoing[_ngcontent-%COMP%]{color:#f44}.mp-invite-details[_ngcontent-%COMP%]{overflow-wrap:anywhere}.mp-invite-details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:6px 0}.mp-panel[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;margin:12px 0;padding:20px;align-items:stretch}.mp-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{color:var(--brand-primary);margin:0 0 16px;font-size:1.25rem}.mp-invites-panel[_ngcontent-%COMP%]{width:min(360px,100%);margin:12px auto}.mp-invites-heading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.mp-invites-heading[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0}.mp-active-label[_ngcontent-%COMP%]{color:#4caf50;white-space:nowrap}.mp-active-count[_ngcontent-%COMP%]{color:var(--brand-primary)}.mp-panel[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .mp-hint[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.5}.mp-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-top:1px solid rgba(255,255,255,.1882352941)}.mp-row[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{overflow-wrap:anywhere}.mp-row[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:6px 0}.mp-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mp-count[_ngcontent-%COMP%]{font-size:.85rem}.mp-player-status[_ngcontent-%COMP%]{color:#c6c6c6}.mp-player-status.online[_ngcontent-%COMP%]{color:#86d68a}.mp-panel[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;margin:8px 0 16px}.mp-room-detail[_ngcontent-%COMP%]{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px}.mp-room-detail[_ngcontent-%COMP%] >
83 app-chat[_ngcontent-%COMP%]{width:min(360px,100%);margin:16px auto 0}.mp-invitation[_ngcontent-%COMP%]{max-width:360px;margin:0 auto;text-align:center}.mp-invitation[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-bottom:4px}.mp-invitation[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%] + p[_ngcontent-%COMP%]{margin-top:0}.mp-invitation[_ngcontent-%COMP%]   #mp-link[_ngcontent-%COMP%]{margin-bottom:0}.mp-invitation[_ngcontent-%COMP%]   #mp-link[_ngcontent-%COMP%] + .mp-toolbar[_ngcontent-%COMP%]{margin-top:8px}.mp-invitation[_ngcontent-%COMP%]   .mp-waiting-status[_ngcontent-%COMP%]{margin-bottom:4px}.mp-invitation[_ngcontent-%COMP%]   .mp-presence[_ngcontent-%COMP%]{margin-top:0}.mp-room-log[_ngcontent-%COMP%]{width:min(360px,100%);margin:16px auto 0;text-align:left}.mp-room-log[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:4px 0}.mp-email-form[_ngcontent-%COMP%]{margin:20px 0;text-align:left}.mp-invitation[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;text-align:left}.mp-mode[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:16px;align-items:center}.mp-mode[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:20px}.mp-points[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:4px;font-size:14px}.mp-points[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:16px;height:16px}.mp-page[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .mp-invite-details[_ngcontent-%COMP%]   small[_ngcontent-%COMP%], .mp-invitation[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{box-sizing:border-box;max-width:min(360px,100%);margin-inline:auto;font-family:Roboto,sans-serif;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.mp-page[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .mp-hub[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{width:min(360px,100%)}@media (max-width: 700px){.mp-row[_ngcontent-%COMP%]{flex-wrap:wrap}.mp-invites-table[_ngcontent-%COMP%]   .mp-actions[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-end;gap:4px}}.mp-search-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-bottom:0;font-family:var(--brand-font-family)}.mp-hub[_ngcontent-%COMP%]{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-bottom:40px}.multiplayer-search[_ngcontent-%COMP%]{position:static;width:min(360px,100%);height:auto;min-height:0;margin:24px auto 0;padding:0;flex:none}.multiplayer-search-inner[_ngcontent-%COMP%], .multiplayer-search-inner-input[_ngcontent-%COMP%], .multiplayer-search-message[_ngcontent-%COMP%]{width:min(360px,100%)}.multiplayer-search-inner[_ngcontent-%COMP%]{flex-shrink:0}.multiplayer-search-inner-input[_ngcontent-%COMP%]{box-sizing:border-box}.multiplayer-search-results[_ngcontent-%COMP%]{flex:none;min-height:0;width:100%;height:auto;overflow:visible;padding-bottom:40px}.search-invite-friend[_ngcontent-%COMP%]{display:block;margin:20px auto}.multiplayer-search-results-table[_ngcontent-%COMP%]{font-family:var(--brand-font-family);font-size:14pt}.multiplayer-search-wf[_ngcontent-%COMP%]{overflow-wrap:anywhere}.multiplayer-search-status[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;padding-top:6px}.online-icon[_ngcontent-%COMP%]{color:#4caf50}.offline-icon[_ngcontent-%COMP%]{color:#9696964d}.unavailable-icon[_ngcontent-%COMP%]{color:var(--brand-primary)}.multiplayer-invite[_ngcontent-%COMP%]{padding-left:4px}.multiplayer-invite[_ngcontent-%COMP%]   .button-mp[_ngcontent-%COMP%]{font-size:14px;white-space:normal;overflow-wrap:anywhere}.player_unavailable[_ngcontent-%COMP%]{padding-right:6px;white-space:normal;overflow-wrap:anywhere}"]})}return t})();var dr=["playerdeal"],cr=["headerInfo"],mr=t=>({color:t}),Mn=t=>({"background-image":t}),pr=t=>({"tournament-lock-icon-unlocked":t}),ur=t=>({color:t,fontSize:"16px"}),hr=t=>({color:t,fontSize:"20px"}),kn=t=>({"shimmer-box":t}),En=t=>({filter:t}),gr=()=>({width:"90%",maxWidth:"25rem"}),fr=()=>({width:"90%",maxWidth:"27rem"}),be=()=>({width:"90%",maxWidth:"25rem",textAlign:"center"}),At=t=>({border:t}),_r=()=>({width:"98%",maxWidth:"850px",height:"98%",textAlign:"center"});function xr(t,d){t&1&&_(0,"app-header",null,1)}function vr(t,d){t&1&&_(0,"app-multiplayer")}function br(t,d){if(t&1&&(r(0,"div",30,2),m(2),a()),t&2){let e=s(2);l("ngStyle",N(2,mr,e.view=="playT500"?"var(--brand-accent)":"var(--brand-primary)")),o(2),g(" ",e.headerInfoTXT,`
84`)}}function yr(t,d){if(t&1){let e=v();r(0,"button",34),f("click",function(){p(e);let i=s(3);return u(i.exitMultiplayerSearch())}),a()}
84t&2&&l("label","<")("rounded",!0)}function Cr(t,d){if(t&1&&(r(0,"div",31),h(1,yr,1,2,"button",32),r(2,"div",33),m(3),a()()),t&2){let e=s(2);o(),l("ngIf",e.show2p),o(2),x(e.lang.multiPlayer)}}function wr(t,d){if(t&1){let e=v();r(0,"div",35),f("mouseenter",function(){p(e);let i=s(2);return u(i.setLabel("2p-random"))})("mouseleave",function(){p(e);let i=s(2);return u(i.setLabel(""))})("click",function(i){p(e);let c=s(2);return c.triggerCardRipple(i),u(c.showSearchRandomPlayers())}),a()}if(t&2){let e=s(2);V("multiplayer-random-4",!e.miniGamesEnabled),l("ngClass",e.isRandomDisabled()?"random-disabled":e.show2p?"card-game-hide":"")}}function Tr(t,d){if(t&1){let e=v();r(0,"div",36),f("mouseenter",function(){p(e);let i=s(2);return u(i.setLabel("1p"))})("mouseleave",function(){p(e);let i=s(2);return u(i.setLabel(""))})("click",function(i){p(e);let c=s(2);return c.triggerCardRipple(i),u(c.showStartGameDialog("single"))}),a()}if(t&2){let e=s(2);V("one-player-4",!e.miniGamesEnabled),l("ngClass",e.isOnePlayerDisabled()?"one-player-disabled":e.show2p?"card-game-hide":"")}}function Sr(t,d){if(t&1&&(r(0,"span",39),m(1),a()),t&2){let e=s(3);F("aria-label",e.lang.mpReceived+": "+e.multiplayerInvites.inbox.count),o(),g(" ",e.multiplayerInvites.inbox.count>99?"99+":e.multiplayerInvites.inbox.count," ")}}function Ir(t,d){if(t&1){let e=v();r(0,"div",37),f("mouseenter",function(){p(e);let i=s(2);return u(i.setLabel("2p"))})("mouseleave",function(){p(e);let i=s(2);return u(i.setLabel(""))})("click",function(i){p(e);let c=s(2);return c.triggerCardRipple(i),u(c.showSearchPlayers())}),h(1,Sr,2,2,"span",38),a()}if(t&2){let e=s(2);V("multiplayer-4",!e.miniGamesEnabled),l("ngClass",e.isMultiplayerDisabled()?"multiplayer-disabled":e.show2p?"card-game-hide":""),o(),l("ngIf",e.multiplayerInvites.inbox.count>0)}}function Pr(t,d){if(t&1){let e=v();r(0,"div",40),f("mouseenter",function(){p(e);let i=s(2);return u(i.setLabel("tournaments"))})("mouseleave",function(){p(e);let i=s(2);return u(i.setLabel(""))})("click",function(i){p(e);let c=s(2);return c.triggerCardRipple(i),u(c.showTournaments(!0))}),a()}if(t&2){let e=s(2);V("tournament-4",!e.miniGamesEnabled),l("ngClass",e.tournamentCardClass())}}function Mr(t,d){if(t&1){let e=v();r(0,"div",41),f("mouseenter",function(){p(e);let i=s(2);return u(i.setLabel("minigames"))})("mouseleave",function(){p(e);let i=s(2);return u(i.setLabel(""))})("click",function(i){p(e);let c=s(2);return c.triggerCardRipple(i),u(c.openMiniGames())}),a()}if(t&2){let e=s(2);l("ngClass",e.isMiniGamesDisabled()?"mini-games-disabled":e.show2p?"card-game-hide":"")}}function kr(t,d){t&1&&_(0,"img",69)}function Er(t,d){if(t&1&&(r(0,"div"),m(1),a()),t&2){let e=s().$implicit;o(),g(" ",e.P2," ")}}function Or(t,d){if(t&1&&(r(0,"div"),m(1),a()),t&2){let e=s().$implicit;o(),g(" ",e.P1," ")}}function Dr(t,d){if(t&1&&(r(0,"tr")(1,"td",64),h(2,kr,1,0,"img",65),a(),r(3,"td",66),m(4),a(),r(5,"td",67),h(6,Er,2,1,"div",16)(7,Or,2,1,"div",16),a(),r(8,"td",68),m(9),a()()),t&2){let e=d.$implicit,n=s(3);o(2),l("ngIf",e.Winner==n.user.id),o(2),g(" ",n.getFormatedDate(e.DateStarted)," "),o(2),l("ngIf",e.P1ID==n.user.id),o(),l("ngIf",e.P2ID==n.user.id),o(2),g(" ",e.Points==0?"-":e.Points," ")}}function Fr(t,d){if(t&1&&(r(0,"tr")(1,"td",70),m(2),a(),r(3,"td",71),m(4),a(),r(5,"td",72),m(6),a()()),t&2){let e=d.$implicit,n=s(3);o(2),x(n.lang[e.labelKey]),o(2),x(e.wins),o(2),x(e.plays)}}function Hr(t,d){if(t&1){let e=v();r(0,"div",42)(1,"h1",43),m(2),a(),r(3,"button",44),f("click",function(){p(e);let i=s(2);return u(i.shareMiniGameStats())}),a(),r(4,"div",45)(5,"div",46),_(6,"img",47),r(7,"div",48)(8,"div",49),m(9),a(),r(10,"div",50),m(11),a(),r(12,"div",49),m(13),a(),r(14,"div",50),m(15),a(),r(16,"div",49),m(17),a(),r(18,"div",50),m(19),a()()()(),r(20,"div",51)(21,"div",52)(22,"div",53)(23,"div",54),m(24),_(25,"span",55),a(),r(26,"table",56)(27,"tr"),_(28,"td",57)(29,"td",57),r(30,"td",58),m(31," VS "),a(),r(32,"td",59),m(33),a()(),h(34,Dr,10,5,"tr",60),a()()(),r(35,"div",52)(36,"div",53)(37,"div",54),m(38),_(39,"span",61),a(),r(40,"table",62)(41,"tr")(42,"td",57),m(43),a(),r(44,"td",63),m(45),a(),r(46,"td",59),m(47),a()(),h(48,Fr,7,3,"tr",60),a()()()()()}if(t&2){let e=s(2);o(2),x(e.lang.achievements),o(),l("label",e.shareStatsJustCopied?e.lang.linkCopied:e.lang.shareButton)("icon",e.shareStatsJustCopied?"pi pi-check":"pi pi-share-alt")("rounded",!0),o(3),l("src",e.getProfileUrl(),q),o(3),x(e.lang.wins),o(2),x(e.playerHistoryWins),o(2),x(e.lang.played),o(2),x(e.playerHistoryPlayed),o(2),x(e.lang.points),o(2),x(e.playerHistoryPoints),o(5),g(" ",e.myScoreLast10Label()," "),o(9),g(" ",e.lang.points," "),o(),l("ngForOf",e.getPlayerHistoryResult10()),o(4),g(" ",e.lang.myScoreMiniGameStats," "),o(5),x(e.lang.miniGames),o(2),x(e.lang.wins),o(2),x(e.lang.played),o(),l("ngForOf",e.getMiniGameStatsRows())}}function Rr(t,d){if(t&1){let e=v();r(0,"div",42)(1,"h1",43),m(2),a(),r(3,"div",73)(4,"div"),m(5),a(),r(6,"p-toggleButton",74),P("ngModelChange",function(i){p(e);let c=s(2);return I(c.settings.sound,i)||(c.settings.sound=i),u(i)}),f("onChange",function(){p(e);let i=s(2);return u(i.settingSound())}),a()(),r(7,"div",73)(8,"div"),m(9),a(),r(10,"p-toggleButton",74),P("ngModelChange",function(i){p(e);let c=s(2);return I(c.settings.music,i)||(c.settings.music=i),u(i)}),f("onChange",function(){p(e);let i=s(2);return u(i.settingMusic())}),a()()()}if(t&2){let e=s(2);o(2),x(e.lang.soundSettingsHeader),o(3),x(e.lang.soundSettingsSoundFX),o(),S("ngModel",e.settings.sound),o(3),x(e.lang.soundSettingsMusic),o(),S("ngModel",e.settings.music)}}function Vr(t,d){if(t&1&&(r(0,"div",84),_(1,"img",85),m(2),a()),t&2){let e=s(3);o(2),g(" ",">"+e.getSelectedDeckDesign().points)}}function Lr(t,d){if(t&1){let e=v();r(0,"button",86),f("click",function(){p(e);let i=s(3);return u(i.showThemeDialog=!0)}),a()}if(t&2){let e=s(3);
84l("label",e.lang.changeTheme)("rounded",!0)}}function zr(t,d){if(t&1){let e=v();r(0,"div",87)(1,"div"),m(2),a(),r(3,"p-toggleButton",74),P("ngModelChange",function(i){p(e);let c=s(3);return I(c.settings.randomBackground,i)||(c.settings.randomBackground=i),u(i)}),f("onChange",function(){p(e);let i=s(3);return u(i.settingRandomBackground())}),a()()}if(t&2){let e=s(3);o(2),x(e.lang.appearanceSettingsRandomTheme),o(),S("ngModel",e.settings.randomBackground)}}function Br(t,d){if(t&1&&(r(0,"div",42)(1,"h2",43),m(2),a(),r(3,"div",75)(4,"div",76)(5,"div",77)(6,"div",78),m(7),a(),r(8,"div",79),m(9),a(),h(10,Vr,3,1,"div",80),a()(),r(11,"div",81),m(12),a(),h(13,Lr,1,2,"button",82)(14,zr,4,2,"div",83),a()()),t&2){let e=s(2);o(2),x(e.lang.appearanceSettingsHeader),o(3),l("ngClass",e.getDeckButtonClass(e.getSelectedDeckDesign().id,e.getSelectedDeckDesign().points))("ngStyle",N(9,Mn,"url("+e.getSelectedDeckDesign().button+")")),o(2),x(e.getSelectedDeckDesign().name),o(2),x(e.getSelectedDeckDesign().music),o(),l("ngIf",e.getSelectedDeckDesign().points>0),o(2),x(e.lang.themeDescription),o(),l("ngIf",e.lang!==void 0),o(),l("ngIf",e.randomThemeAllowedByBrand)}}function Ar(t,d){t&1&&_(0,"div",42)}function Gr(t,d){if(t&1&&(r(0,"td")(1,"mat-icon",106),m(2,"circle"),a(),m(3),a()),t&2){let e=s(4);o(3),g(" ",e.lang.preparing)}}function Nr(t,d){if(t&1&&(r(0,"td")(1,"mat-icon",107),m(2,"circle"),a(),m(3),a()),t&2){let e=s(4);o(3),g(" ",e.lang.online)}}function Ur(t,d){if(t&1&&(r(0,"td"),m(1),a()),t&2){let e=s(4);o(),te("",e.lang.startsIn," ",e.t100startsin_short)}}function Wr(t,d){if(t&1&&(r(0,"td"),m(1),a()),t&2){let e=s(4);o(),te("",e.lang.endsIn," ",e.t100endsin_short)}}function jr(t,d){if(t&1){let e=v();r(0,"div",99)(1,"div",100)(2,"img",101),f("click",function(){p(e);let i=s(3);return u(i.showTournament100(!0))}),a()(),r(3,"div",102),f("click",function(){p(e);let i=s(3);return u(i.showTournament100(!0))}),r(4,"div",103),m(5),a(),r(6,"table",104)(7,"tr"),h(8,Gr,4,1,"td",16)(9,Nr,4,1,"td",16),a(),r(10,"tr"),h(11,Ur,2,2,"td",16)(12,Wr,2,2,"td",16),a()()(),r(13,"div",105),m(14),a()()}if(t&2){let e=s(3);C("margin-top","10px"),o(),C("filter","drop-shadow(0 0 0.3rem #4ef692) saturate(2)"),o(4),x(e.lang.t100),o(3),l("ngIf",e.isMonday()),o(),l("ngIf",!e.isMonday()),o(2),l("ngIf",e.isMonday()),o(),l("ngIf",!e.isMonday()),o(2),g(" ",e.lang.tournament100desc," ")}}function qr(t,d){if(t&1&&(r(0,"td")(1,"mat-icon",106),m(2,"circle"),a(),m(3),a()),t&2){let e=s(4);o(3),g(" ",e.lang.preparing)}}function Kr(t,d){if(t&1&&(r(0,"td")(1,"mat-icon",107),m(2,"circle"),a(),m(3),a()),t&2){let e=s(4);o(3),g(" ",e.lang.online)}}function Zr(t,d){if(t&1&&(r(0,"td"),m(1),a()),t&2){let e=s(4);o(),te("",e.lang.startsIn," ",e.t500startsin_short)}}function Qr(t,d){if(t&1&&(r(0,"td"),m(1),a()),t&2){let e=s(4);o(),te("",e.lang.endsIn," ",e.t500endsin_short)}}function Jr(t,d){if(t&1){let e=v();r(0,"div",99)(1,"div",100)(2,"img",108),f("click",function(){p(e);let i=s(3);return u(i.showTournament500(!0))}),a()(),r(3,"div",109),f("click",function(){p(e);let i=s(3);return u(i.showTournament500(!0))}),r(4,"div",103),m(5),a(),r(6,"table",104)(7,"tr"),h(8,qr,4,1,"td",16)(9,Kr,4,1,"td",16),a(),r(10,"tr"),h(11,Zr,2,2,"td",16)(12,Qr,2,2,"td",16),a()()(),r(13,"div",105),m(14),a()()}if(t&2){let e=s(3);o(),C("filter","drop-shadow(0 0 0.3rem #4DA3FF) saturate(1.3)"),o(4),x(e.lang.t500),o(3),l("ngIf",e.isDateBetween1stAnd3rd()),o(),l("ngIf",!e.isDateBetween1stAnd3rd()),o(2),l("ngIf",e.isDateBetween1stAnd3rd()),o(),l("ngIf",!e.isDateBetween1stAnd3rd()),o(2),g(" ",e.lang.tournament500desc," ")}}function Yr(t,d){t&1&&_(0,"img",110)}function Xr(t,d){if(t&1&&_(0,"div",114),t&2){let e=s().$implicit,n=s(3);l("ngClass",N(1,pr,n.tCustom.userHasAccessToPrivateTournament(e,n.user.email)))}}function $r(t,d){if(t&1&&(r(0,"td")(1,"mat-icon",106),m(2,"circle"),a(),m(3),a()),t&2){let e=s(4);o(3),g(" ",e.lang.preparing)}}function el(t,d){if(t&1&&(r(0,"td")(1,"mat-icon",107),m(2,"circle"),a(),m(3),a()),t&2){let e=s(4);o(3),g(" ",e.lang.online)}}function tl(t,d){if(t&1&&(r(0,"td")(1,"mat-icon",106),m(2,"circle"),a(),m(3),a()),t&2){let e=s(4);o(3),g(" ",e.lang.finishedShort)}}function il(t,d){if(t&1&&(r(0,"td"),m(1),a()),t&2){let e=s(2).$implicit,n=s(3);o(),te("",n.lang.startsIn," ",n.tCustom.tournamentStartsIn(e,!0))}}function nl(t,d){if(t&1&&(r(0,"td"),m(1),a()),t&2){let e=s(2).$implicit,n=s(3);o(),te("",n.lang.endsIn," ",n.tCustom.tournamentEndsIn(e,!0))}}function ol(t,d){if(t&1&&(r(0,"tr"),h(1,il,2,2,"td",16)(2,nl,2,2,"td",16),a()),t&2){let e=s().$implicit,n=s(3);
84o(),l("ngIf",n.tCustom.isDateBeforeTournamentStart(e)),o(),l("ngIf",n.tCustom.isTournamentActive(e))}}function al(t,d){if(t&1){let e=v();r(0,"div",99),h(1,Xr,1,3,"div",111),r(2,"div",100)(3,"img",112),f("click",function(){let i=p(e).$implicit,c=s(3);return u(c.showBrandTournament(i))}),a()(),r(4,"div",113),f("click",function(){let i=p(e).$implicit,c=s(3);return u(c.showBrandTournament(i))}),r(5,"div",103),m(6),a(),r(7,"table",104)(8,"tr"),h(9,$r,4,1,"td",16)(10,el,4,1,"td",16)(11,tl,4,1,"td",16),a(),h(12,ol,3,2,"tr",16),a()(),r(13,"div",105),m(14),a()()}if(t&2){let e=d.$implicit,n=s(3);C("margin-top","10px"),o(),l("ngIf",e.private),o(),C("filter","drop-shadow(0 0 5px "+e.colorScheme.primary+")"),o(),l("src",e.listImage,q),o(),C("border-color",e.colorScheme.primary)("background-color",e.colorScheme.secondary),o(),C("font-size",e.colorScheme.titleFontSize?e.colorScheme.titleFontSize+"px":"20px"),o(),x(n.tCustom.localizedField(e,"name",n.currentLangCode)),o(3),l("ngIf",n.tCustom.isDateBeforeTournamentStart(e)),o(),l("ngIf",n.tCustom.isTournamentActive(e)),o(),l("ngIf",n.tCustom.isDateAfterTournamentEnd(e)),o(),l("ngIf",!n.tCustom.isDateAfterTournamentEnd(e)),o(2),g(" ",n.tCustom.localizedField(e,"description",n.currentLangCode)," ")}}function rl(t,d){if(t&1&&_(0,"img",119),t&2){let e=d.$implicit;l("src",X(e.url),q)("alt",e.CompanyName)}}function ll(t,d){if(t&1&&(r(0,"div",115)(1,"div",54),m(2),a(),r(3,"div",116)(4,"div",117),h(5,rl,1,3,"img",118),a()()()),t&2){let e=s(3);o(2),g(" ",e.lang.tournamentSponsors," "),o(3),l("ngForOf",e.sponsors)}}function sl(t,d){t&1&&(r(0,"a",124),m(1,"Advertisement"),a())}function dl(t,d){t&1&&(r(0,"span"),m(1,"Advertisement"),a())}function cl(t,d){if(t&1){let e=v();r(0,"div",120)(1,"div",121),h(2,sl,2,0,"a",122)(3,dl,2,0,"span",16),a(),r(4,"div",117)(5,"img",123),f("click",function(){p(e);let i=s(3);return u(i.adSvc.setShowPopup("home"))}),a()()()}if(t&2){let e=s(3);o(2),l("ngIf",e.isNotMobileApp()&&e.isBuiltInBrand),o(),l("ngIf",!e.isNotMobileApp()||!e.isBuiltInBrand),o(2),l("src",e.getAdLogoForButton(),q)}}function ml(t,d){if(t&1){let e=v();r(0,"div",88)(1,"div",89)(2,"button",34),f("click",function(){p(e);let i=s(2);return u(i.switchOffTournament())}),a(),r(3,"h2",90),m(4),a()(),r(5,"div",91),_(6,"img",92),h(7,jr,15,10,"div",93)(8,Jr,15,8,"div",94)(9,Yr,1,0,"img",95)(10,al,15,18,"div",96)(11,ll,6,2,"div",97)(12,cl,6,3,"div",98),a()()}if(t&2){let e=s(2);o(2),l("label","<")("rounded",!0),o(2),x(e.lang.tournaments),o(3),l("ngIf",e.isBuiltInBrand),o(),l("ngIf",e.isBuiltInBrand),o(),l("ngIf",e.isBuiltInBrand&&e.listedTournaments.length>0),o(),l("ngForOf",e.listedTournaments),o(),l("ngIf",e.listedTournaments.length==0),o(),l("ngIf",e.hasAds()&&e.listedTournaments.length==0)}}function pl(t,d){if(t&1){let e=v();r(0,"div",151)(1,"button",152),f("click",function(){p(e);let i=s(3);return u(i.openInviteNudge())}),_(2,"span",153),r(3,"span",154)(4,"strong"),m(5),a(),r(6,"em"),m(7),a()(),_(8,"span",155),a(),r(9,"button",156),f("click",function(){p(e);let i=s(3);return u(i.dismissInviteNudge())}),_(10,"span",157),a()()}if(t&2){let e=s(3);o(5),x(e.lang.inviteNudgeTitle),o(2),x(e.lang.inviteNudgeBody),o(2),F("aria-label",e.lang.dismissSuggestion)}}function ul(t,d){if(t&1){let e=v();r(0,"button",158),f("click",function(){p(e);let i=s(3);return u(i.openEngagementRecommendation())}),r(1,"span",159),_(2,"i",160),m(3),a(),r(4,"span",161),_(5,"i",162),r(6,"span",163)(7,"strong"),m(8),a(),r(9,"em"),m(10),a()(),_(11,"i",164),a()()}if(t&2){let e=s(3);o(3),g(" ",e.lang.recommendedForYou," "),o(5),x(e.engagementGameLabel(e.engagementRecommendation.GameKey)),o(2),x(e.lang.tryAnotherGame)}}function hl(t,d){if(t&1){let e=v();r(0,"div",165)(1,"div",54),_(2,"span",61),m(3),a(),r(4,"app-mini-games-carousel",166),f("gameClick",function(i){p(e);let c=s(3);return u(c.onMiniGameClick(i))}),a()()}if(t&2){let e=s(3);o(3),g(" ",e.lang.miniGames," "),o(),l("lang",e.lang)}}function gl(t,d){if(t&1&&Et(0,167),t&2){s();let e=ne(50);l("ngTemplateOutlet",e)}}function fl(t,d){t&1&&(r(0,"td",168),m(1," P "),a())}function _l(t,d){t&1&&(r(0,"mat-icon",177),m(1,"person"),a())}function xl(t,d){t&1&&(r(0,"mat-icon",107),m(1,"circle"),a())}function vl(t,d){t&1&&(r(0,"mat-icon",178),m(1,"circle"),a())}function bl(t,d){t&1&&_(0,"img",179)}function yl(t,d){t&1&&_(0,"img",180)}function Cl(t,d){t&1&&_(0,"img",181)}function wl(t,d){if(t&1&&(r(0,"td",72),m(1),a()),t&2){let e=s().$implicit;o(),g(" ",e.secondary," ")}}function Tl(t,d){if(t&1&&(r(0,"tr")(1,"td",169),h(2,_l,2,0,"mat-icon",170)(3,xl,2,0,"mat-icon",171)(4,vl,2,0,"mat-icon",172),a(),r(5,"td",70),h(6,bl,1,0,"img",173)(7,yl,1,0,"img",174)(8,Cl,1,0,"img",175),m(9),a(),r(10,"td",71),m(11),a(),h(12,wl,2,1,"td",176),a()),t&2){let e=d.$implicit,n=d.index,i=s(3);o(2),l("ngIf",e.id==i.user.id),o(),l("ngIf",i.isOnline(e.id)&&e.id!=i.user.id),o(),l("ngIf",!i.isOnline(e.id)&&e.id!=i.user.id),o(2),l("ngIf",n==0),o(),l("ngIf",n==1),o(),l("ngIf",n==2),o(),g(" ",e.nickname," "),o(),C("padding-right",i.displayShowPlayed?null:"0"),o(),g(" ",e.value," "),o(),l("ngIf",i.displayShowPlayed)}}function Sl(t,d){if(t&1&&(r(0,"div",182),m(1),a()),t&2){let e=s(3);o(),g(" ",e.lang.loading||"Loading\u2026"," ")}}function Il(t,d){if(t&1&&Et(0,167),t&2){s();let e=ne(50);l("ngTemplateOutlet",e)}}function Pl(t,d){if(t&1){let e=v();r(0,"app-scores-carousel",183),f("selectedIndexChange",function(i){p(e);let c=s(3);return u(c.onRulesGameChange(i))}),a()}if(t&2){let e=s(3);l("lang",e.lang)("games",e.rulesGames)("selectedIndex",e.rulesSelectedIndex)}}function Ml(t,d){if(t&1&&_(0,"app-juxtab-rules",184),t&2){let e=s(3);l("lang",e.lang)}}function kl(t,d){if(t&1&&_(0,"ul",185),t&2){let e=s(3);l("innerHTML",e.selectedRulesText,ye)}}function El(t,d){t&1&&(r(0,"a",124),m(1,"Advertisement"),a())}function Ol(t,d){t&1&&(r(0,"span"),m(1,"Advertisement"),a())}function Dl(t,d){if(t&1){let e=v();r(0,"div",53)(1,"div",121),h(2,El,2,0,"a",122)(3,Ol,2,0,"span",16),a(),r(4,"div",117)(5,"img",123),f("click",function(){p(e);let i=s(3);return u(i.adSvc.setShowPopup("home"))}),a()()()}if(t&2){let e=s(3);o(2),l("ngIf",e.isNotMobileApp()&&e.isBuiltInBrand),o(),l("ngIf",!e.isNotMobileApp()||!e.isBuiltInBrand),o(2),l("src",e.getAdLogoForButton(),q)}}function Fl(t,d){if(t&1){let e=v();r(0,"div",125)(1,"div",126),h(2,pl,11,3,"div",127)(3,ul,12,3,"button",128)(4,hl,5,2,"div",129),_(5,"app-ch
84at",130),h(6,gl,1,1,"ng-container",131),r(7,"div",53)(8,"div",132)(9,"span",133),m(10),a(),r(11,"button",134),f("click",function(){p(e);let i=s(2);return u(i.onScoresShareClick())}),_(12,"span",135),m(13),a()(),r(14,"app-scores-carousel",136),f("selectedIndexChange",function(i){p(e);let c=s(2);return u(c.onScoresGameChange(i))}),a(),r(15,"div",137)(16,"h2",138),m(17,"30d"),a(),r(18,"p-toggleswitch",139),P("ngModelChange",function(i){p(e);let c=s(2);return I(c.top10alltime,i)||(c.top10alltime=i),u(i)}),f("ngModelChange",function(){p(e);let i=s(2);return u(i.recomputeScoreRows())}),a(),r(19,"h2",138),m(20,"\u221E"),a()(),r(21,"table",62)(22,"th",140),_(23,"img",141),m(24," Top 10 "),r(25,"span",142),m(26),a()(),r(27,"tr")(28,"td",143)(29,"mat-icon",107),m(30,"circle"),a()(),r(31,"td",57),m(32),a(),r(33,"td",63),m(34),a(),h(35,fl,2,0,"td",144),a(),h(36,Tl,13,11,"tr",145),a(),h(37,Sl,2,1,"div",146),a()(),r(38,"div",52),h(39,Il,1,1,"ng-container",131),r(40,"div",53)(41,"div",54),m(42),_(43,"span",147),a(),h(44,Pl,1,3,"app-scores-carousel",148),r(45,"div",149),h(46,Ml,1,1,"app-juxtab-rules",150)(47,kl,1,1,"ng-template",null,3,qe),a()()(),h(49,Dl,6,3,"
84ng-template",null,4,qe),a()}if(t&2){let e=ne(48),n=s(2);o(2),l("ngIf",n.inviteNudgeVisible),o(),l("ngIf",n.engagementRecommendation),o(),l("ngIf",n.miniGamesEnabled&&n.miniGamesPanelVisible),o(),l("lang",n.lang),o(),l("ngIf",n.hasAds()&&!n.miniGamesEnabled),o(4),x(n.lang.scores||"Scores"),o(),l("disabled",n.scoresShareJustCopied),o(),l("ngClass",n.scoresShareJustCopied?"pi-check":"pi-share-alt"),o(),g(" ",n.scoresShareJustCopied?n.lang.linkCopied||"Link copied!":n.lang.scoresShareButton||"Share"," "),o(),l("lang",n.lang)("games",n.scoresGames)("selectedIndex",n.scoresSelectedIndex),o(2),l("ngStyle",N(31,ur,n.top10alltime?"gray":"var(--brand-primary)")),o(2),S("ngModel",n.top10alltime),o(),l("ngStyle",N(33,hr,n.top10alltime?"var(--brand-primary)":"gray")),o(3),F("colspan",n.displayShowPlayed?4:3),o(),l("src",n.top10alltime?"/assets/images/trophy_small_alltime.png":"/assets/images/trophy_small.png",q),o(3),x(n.top10alltime?n.lang.allTime:n.lang.last30days),o(6),g(" ",n.lang.nickname),o(),C("padding-right",n.displayShowPlayed?null:"0"),o(),g(" ",n.displayMetricHeader," "),o(),l("ngIf",n.displayShowPlayed),o(),l("ngForOf",n.displayScoreRows)("ngForTrackBy",n.trackByScoreRow),o(),l("ngIf",n.scoresLoading),o(2),l("ngIf",n.hasAds()&&n.miniGamesEnabled),o(3),g(" ",n.lang.tablanetteRules," "),o(2),l("ngIf",n.rulesGames.length>1),o(2),l("ngIf",n.selectedRulesGame.key==="juxtab")("ngIfElse",e)}}function Hl(t,d){if(t&1&&(r(0,"div",207)(1,"color",208),m(2),a(),m(3),_(4,"span",209),a()),t&2){let e=s(3);o(2),x(e.lang.startsIn),o(),g(" ",e.t500startsin," ")}}function Rl(t,d){if(t&1&&(r(0,"div",207)(1,"color",208),m(2),a(),m(3),_(4,"span",209),a()),t&2){let e=s(3);o(2),x(e.lang.endsIn),o(),g(" ",e.t500endsin," ")}}function Vl(t,d){if(t&1){let e=v();r(0,"button",210),f("click",function(){p(e);let i=s(3);return u(i.fullT500Top10=!i.fullT500Top10)}),a()}if(t&2){let e=s(3);l("icon",e.getT500Top10Icon())("rounded",!0)}}function Ll(t,d){t&1&&(r(0,"mat-icon",177),m(1,"person"),a())}function zl(t,d){t&1&&(r(0,"mat-icon",107),m(1,"circle"),a())}function Bl(t,d){t&1&&(r(0,"mat-icon",178),m(1,"circle"),a())}function Al(t,d){t&1&&_(0,"img",179)}function Gl(t,d){t&1&&_(0,"img",180)}function Nl(t,d){t&1&&_(0,"img",181)}function Ul(t,d){if(t&1&&(r(0,"tr")(1,"td",169),h(2,Ll,2,0,"mat-icon",170)(3,zl,2,0,"mat-icon",171)(4,Bl,2,0,"mat-icon",172),a(),r(5,"td",70),h(6,Al,1,0,"img",173)(7,Gl,1,0,"img",174)(8,Nl,1,0,"img",175),m(9),a(),r(10,"td",71),m(11),a(),r(12,"td",72),m(13),a()()),t&2){let e=d.$implicit,n=d.index,i=s(3);o(2),l("ngIf",e.id==i.user.id),o(),l("ngIf",i.isOnline(e.id)&&e.id!=i.user.id),o(),l("ngIf",!i.isOnline(e.id)&&e.id!=i.user.id),o(2),l("ngIf",n==0),o(),l("ngIf",n==1),o(),l("ngIf",n==2),o(),g(" ",e.nickname," "),o(2),g(" ",e.wins," "),o(2),g(" ",e.played," ")}}function Wl(t,d){if(t&1&&(r(0,"tr")(1,"td",211),m(2),a()()),t&2){let e=s(3);o(2),g(" ",e.lang.awaitingResults," ")}}function jl(t,d){t&1&&(r(0,"mat-icon",177),m(1,"person"),a())}function ql(t,d){if(t&1&&(r(0,"tr")(1,"td",212),h(2,jl,2,0,"mat-icon",170),a(),r(3,"td",213),m(4),a(),r(5,"td",214),m(6),a(),r(7,"td",215),m(8),a()()),t&2){let e=s(3);o(2),l("ngIf",e.highScoreT500Player.id==e.user.id),o(2),g(" ",e.highScoreT500Player.nickname," "),o(2),g(" ",e.highScoreT500Player.wins," "),o(2),g(" ",e.highScoreT500Player.played," ")}}function Kl(t,d){if(t&1){let e=v();r(0,"img",218),f("click",function(){p(e);let i=s(4);return u(i.showSponsorsPopup(!1))}),a()}if(t&2){let e=d.$implicit;l("src",X(e.url),q)("alt",e.CompanyName)}}function Zl(t,d){if(t&1&&(r(0,"p-carousel",216),h(1,Kl,1,3,"ng-template",217),a()),t&2){let e=s(3);l("value",e.sponsors)("numVisible",1)("numScroll",1)("autoplayInterval",5e3)("circular",!0)}}function Ql(t,d){t&1&&_(0,"img",179)}function Jl(t,d){t&1&&_(0,"img",180)}function Yl(t,d){t&1&&_(0,"img",181)}function Xl(t,d){if(t&1&&(r(0,"tr")(1,"td",70),h(2,Ql,1,0,"img",173)(3,Jl,1,0,"img",174)(4,Yl,1,0,"img",175),m(5),a(),r(6,"td",71),m(7),a(),r(8,"td",72),m(9),a()()),t&2){let e=d.$implicit,n=d.index;o(2),l("ngIf",n==0),o(),l("ngIf",n==1),o(),l("ngIf",n==2),o(),g(" ",e.nickname," "),o(2),g(" ",e.points," "),o(2),g(" ",e.played," ")}}function $l(t,d){if(t&1){let e=v();r(0,"div",125)(1,"div",52),h(2,Hl,5,2,"div",186)(3,Rl,5,2,"div",186),r(4,"div",187)(5,"table",188)(6,"th",189)(7,"div",190)(8,"div"),_(9,"img",191),m(10),a(),h(11,Vl,1,2,"button",192),a(),r(12,"div",193),m(13),r(14,"p-button",194),f("click",function(){p(e);let i=s(2);return i.getT500HighScoreFromDB(),u(i.getT500HighScorePreviousFromDB())}),a()()(),r(15,"tr")(16,"td",143)(17,"mat-icon",107),m(18,"circle"),a()(),r(19,"td",57),m(20),a(),r(21,"td",63),m(22),a(),r(23,"td",168),m(24," P "),a()(),h(25,Ul,14,9,"tr",60)(26,Wl,3,1,"tr",16)(27,ql,9,4,"tr",16),a()(),r(28,"div",195)(29,"div",54),m(30),a(),r(31,"div",116),h(32,Zl,2,5,"p-carousel",196),a(),r(33,"button",197),f("click",function(){p(e);let i=s(2);return u(i.showSponsorsPopup(!1))}),m(34),a()()(),r(35,"div",52)(36,"div",198)(37,"div",199),m(38),r(39,"span",200),f("click",function(){p(e);let i=s(2);return u(i.showSponsorsPopupTest(!0))}
84),a()(),r(40,"div",201),m(41),a(),r(42,"table",202)(43,"tr")(44,"td",57),m(45),a(),r(46,"td",63),m(47),a(),r(48,"td",168),m(49," P "),a()(),h(50,Xl,10,6,"tr",60),a(),r(51,"button",203),f("click",function(){p(e);let i=s(2);return u(i.showSponsorsPopup(!0))}),_(52,"img",204),m(53),a()(),r(54,"div",198)(55,"div",205),m(56),_(57,"span",206),a(),r(58,"div",149),_(59,"ul",185),a()()()()}if(t&2){let e=s(2);o(2),l("ngIf",e.isDateBetween1stAnd3rd()),o(),l("ngIf",!e.isDateBetween1stAnd3rd()),o(7),g(" ",e.lang.leaderboard," "),o(),l("ngIf",e.getT500Top3Visible()),o(2),g(" ",e.langSvc.getCurrentMonthName()," "),o(),l("rounded",!0)("text",!0),o(6),g(" ",e.lang.nickname),o(2),g(" ",e.lang.points," "),o(3),l("ngForOf",e.getT500HighScore()),o(),l("ngIf",e.getT500HighScore().length==0),o(),l("ngIf",e.highScoreT500Player&&(!e.playerInHighScoreT500Top10&&e.fullT500Top10||!e.playerInHighScoreT500Top3&&!e.fullT500Top10)),o(3),g(" ",e.lang.tournamentSponsors," "),o(2),l("ngIf",e.sponsors.length>0),o(),l("disabled",e.isDateBetween1stAnd3rd()&&e.user.Moderator!==!0)("rounded",!0),o(),x(e.lang.viewPrizes),o(4),g(" ",e.lang.lastRoundWinners,`
85`),o(3),g(" ",e.langSvc.getPreviousMonthName()," "),o(4),g(" ",e.lang.nickname),o(2),g(" ",e.lang.points," "),o(3),l("ngForOf",e.getT500HighScorePrevious()),o(),l("disabled",!e.userHasUnpickedT500Prizes())("ngClass",N(29,kn,e.userHasUnpickedT500Prizes()))("rounded",!0),o(),l("ngStyle",N(31,En,e.userHasUnpickedT500Prizes()?"":"saturate(0)")),o(),g("",e.lang.claimReward," "),o(3),g(" ",e.lang.tournamentRules," "),o(3),l("innerHTML",e.lang.tournament500rules,ye)}}function es(t,d){if(t&1&&(r(0,"div",225)(1,"color",208),m(2),a(),m(3),_(4,"span",209),a()),t&2){let e=s(3);o(2),x(e.lang.startsIn),o(),g(" ",e.t100startsin," ")}}function ts(t,d){if(t&1&&(r(0,"div",225)(1,"color",208),m(2),a(),m(3),_(4,"span",209),a()),t&2){let e=s(3);o(2),x(e.lang.endsIn),o(),g(" ",e.t100endsin," ")}}function is(t,d){if(t&1){let e=v();r(0,"button",210),f("click",function(){p(e);let i=s(3);return u(i.fullT100Top10=!i.fullT100Top10)}),a()}if(t&2){let e=s(3);l("icon",e.getT100Top10Icon())("rounded",!0)}}function ns(t,d){t&1&&(r(0,"mat-icon",177),m(1,"person"),a())}function os(t,d){t&1&&(r(0,"mat-icon",107),m(1,"circle"),a())}function as(t,d){t&1&&(r(0,"mat-icon",178),m(1,"circle"),a())}function rs(t,d){t&1&&_(0,"img",179)}function ls(t,d){if(t&1&&(r(0,"tr")(1,"td",169),h(2,ns,2,0,"mat-icon",170)(3,os,2,0,"mat-icon",171)(4,as,2,0,"mat-icon",172),a(),r(5,"td",70),h(6,rs,1,0,"img",173),m(7),a(),r(8,"td",71),m(9),a(),r(10,"td",72),m(11),a()()),t&2){let e=d.$implicit,n=d.index,i=s(3);o(2),l("ngIf",e.id==i.user.id),o(),l("ngIf",i.isOnline(e.id)&&e.id!=i.user.id),o(),l("ngIf",!i.isOnline(e.id)&&e.id!=i.user.id),o(2),l("ngIf",n==0),o(),g(" ",e.nickname," "),o(2),g(" ",e.wins," "),o(2),g(" ",e.played," ")}}function ss(t,d){if(t&1&&(r(0,"tr")(1,"td",211),m(2),a()()),t&2){let e=s(3);o(2),g(" ",e.lang.awaitingResults," ")}}function ds(t,d){t&1&&(r(0,"mat-icon",177),m(1,"person"),a())}function cs(t,d){if(t&1&&(r(0,"tr")(1,"td",212),h(2,ds,2,0,"mat-icon",170),a(),r(3,"td",213),m(4),a(),r(5,"td",214),m(6),a(),r(7,"td",215),m(8),a()()),t&2){let e=s(3);o(2),l("ngIf",e.highScoreT100Player.id==e.user.id),o(2),g(" ",e.highScoreT100Player.nickname," "),o(2),g(" ",e.highScoreT100Player.wins," "),o(2),g(" ",e.highScoreT100Player.played," ")}}function ms(t,d){if(t&1){let e=v();r(0,"img",218),f("click",function(){p(e);let i=s(4);return u(i.showSponsorsPopup(!1))}),a()}if(t&2){let e=d.$implicit;l("src",X(e.url),q)("alt",e.CompanyName)}}function ps(t,d){if(t&1&&(r(0,"p-carousel",216),h(1,ms,1,3,"ng-template",217),a()),t&2){let e=s(3);l("value",e.sponsors)("numVisible",1)("numScroll",1)("autoplayInterval",5e3)("circular",!0)}}function us(t,d){t&1&&_(0,"img",179)}function hs(t,d){if(t&1&&(r(0,"tr")(1,"td",70),h(2,us,1,0,"img",173),m(3),a(),r(4,"td",71),m(5),a(),r(6,"td",72),m(7),a()()),t&2){let e=d.$implicit,n=d.index;o(2),l("ngIf",n==0),o(),g(" ",e.nickname," "),o(2),g(" ",e.points," "),o(2),g(" ",e.played," ")}}function gs(t,d){if(t&1){let e=v();r(0,"div",125)(1,"div",52),h(2,es,5,2,"div",219)(3,ts,5,2,"div",219),r(4,"div",220)(5,"table",188)(6,"th",189)(7,"div",190)(8,"div"),_(9,"img",191),m(10),a(),h(11,is,1,2,"button",192),a(),r(12,"div",193)(13,"p-button",194),f("click",function(){p(e);let i=s(2);return i.getT100HighScoreFromDB(),u(i.getT100HighScorePreviousFromDB())}),a()()(),r(14,"tr")(15,"td",143)(16,"mat-icon",107),m(17,"circle"),a()(),r(18,"td",57),m(19),a(),r(20,"td",63),m(21),a(),r(22,"td",168),m(23," P "),a()(),h(24,ls,12,7,"tr",60)(25,ss,3,1,"tr",16)(26,cs,9,4,"tr",16),a()(),r(27,"div",221)(28,"div",54),m(29),a(),r(30,"div",116),h(31,ps,2,5,"p-carousel",196),a(),r(32,"button",222),f("click",function(){p(e);let i=s(2);return u(i.showSponsorsPopup(!1))}),m(33),a()()(),r(34,"div",52)(35,"div",223)(36,"div",199),m(37),r(38,"span",200),f("click",function(){p(e);let i=s(2);return u(i.showSponsorsPopupTest(!0))}),a()(),r(39,"table",202)(40,"tr")(41,"td",57),m(42),a(),r(43,"td",63),m(44),a(),r(45,"td",168),m(46," P "),a()(),h(47,hs,8,4,"tr",60),a(),r(48,"button",224),f("click",function(){p(e);let i=s(2);return u(i.showSponsorsPopupT100(!0))}),_(49,"img",204),m(50),a()(),r(51,"div",223)(52,"div",205),m(53),_(54,"span",206),a(),r(55,"div",149),_(56,"ul",185),a()()()()}if(t&2){let e=s(2);o(2),l("ngIf",e.isMonday()),o(),l("ngIf",!e.isMonday()),o(7),g(" ",e.lang.leaderboard," "),o(),l("ngIf",e.getT100Top3Visible()),o(2),l("rounded",!0)("text",!0),o(6),g(" ",e.lang.nickname),o(2),g(" ",e.lang.points," "),o(3),l("ngForOf",e.getT100HighScore()),o(),l("ngIf",e.getT100HighScore().length==0),o(),l("ngIf",e.highScoreT100Player&&(!e.playerInHighScoreT100Top10&&e.fullT100Top10||!e.playerInHighScoreT100Top3&&!e.fullT100Top10)),o(3),g(" ",e.lang.tournamentSponsors," "),o(2),l("ngIf",e.sponsors.length>0),o(),l("disabled",e.isMonday()&&e.user.Moderator!==!0)("rounded",!0),o(),x(e.lang.viewPrizes),o(4),g(" ",e.lang.lastRoundWinners," "),o(5),g(" ",e.lang.nickname),o(2),g(" ",e.lang.points," "),o(3),l("ngForOf",e.getT100HighScorePrevious()),o(),l("disabled",!e.userHasUnpickedT100Prizes())("ngClass",N(27,kn,e.userHasUnpickedT100Prizes()))("rounded",!0),o(),l("ngStyle",N(29,En,e.userHasUnpickedT100Prizes()?"":"saturate(0)")),o(),g("",e.lang.claimReward," "),o(3),g(" ",e.lang.tournamentRules," "),o(3),l("innerHTML",e.lang.tournament100rules,ye)}}function fs(t,d){if(t&1){let e=v();r(0,"app-custom-tournament",226),f("miniGameClick",function(i){p(e);let c=s(2);return u(c.onMiniGameClick(i))}),a()}if(t&2){let e=s(2);l("lang",e.lang)("brandTournament",e.selectedCustomTournament)("user",e.user)("connectedUsers",e.connectedUsers)}}function _s(t,d){if(t&1){let e=v();r(0,"app-player-search",227),f("inviteGuest",function(){p(e);let i=s(2);return u(i.openFriendInvite())})("onStartGameDialog",function(i){p(e);let c=s(2);return u(c.showStartGameDialog(i.mode,i.player))})("setLabel",function(i){p(e);let c=s(2);return u(c.setLabel(i.type,i.nickname))})("showInviteToRegister",function(i){p(e);let c=s(2);return c.showInviteToRegister=i,c.invitationEmailDialogMessage=c.lang.inviteAFriendMessage,u(c.invitationEmailSent=!1)})("loadingChange",function(i){p(e);let c=s(2);return u(c.loading=i)}),a()}if(t&2){let e=s(2);l("canInviteGuest",e.user&&!e.userIsGuest())("lang",e.lang)("user",e.user)("connectedUsers",e.connectedUsers)("showSearch",(e.activetabitem==null?null:e.activetabitem.id)==="search2p"||!e.activetabitem)("brandTournament",e.selectedCustomTournament)}}function xs(t,d){if(t&1&&(h(0,xr,2,0,"app-header",16)(1,vr,1,0,"app-multiplayer",16),r(2,"div",17),h(3,br,3,4,"div",18)(4,Cr,4,2,"div",19)(5,wr,1,3,"div",20)(6,Tr,1,3,"div",21)(7,Ir,2,4,"div",22)(8,Pr,1,3,"div",23)(9,Mr,1,1,"div",24)(10,Hr,49,19,"div",25)(11,Rr,11,5,"div",25)(12,Br,15,11,"div",25)(13,Ar,1,0,"div",25)(14,ml,13,9,"div",26)(15,Fl,51,35,"div",27)(16,$l,60,33,"div",27)(17,gs,57,31,"div",27)(18,fs,1,4,"app-custom-tournament",28)(19,_s,1,6,"app-player-search",29),a()),t&2){let e=s();l("ngIf",e.lang!==void 0),o(),l("ngIf",e.view==="multiplayer"&&e.lang!==void 0),o(),V("view-fade-out",e.fadingOut),o(),l("ngIf",e.isPlayView()&&e.lang!==void 0&&!e.show2p),o(),l("ngIf",e.isPlayView()&&e.lang!==void 0&&e.show2p),o(),l("ngIf",e.isPlayView()&&e.lang!==void 0&&!e.show2p),o(),l("ngIf",e.isPlayView()&&e.lang!==void 0&&!e.show2p),o(),l("ngIf",e.isPlayView()&&e.lang!==void 0&&!e.show2p),o(),l("ngIf",e.isPlayView()&&e.lang!==void 0),o(),l("ngIf",e.isPlayView()&&e.lang!==void 0&&!e.show2p&&e.miniGamesEnabled),o(),l("ngIf",e.view=="hs"&&e.lang!==void 0),o(),l("ngIf",e.view=="settings"&&e.lang!==void 0),o(),l("ngIf",e.view=="design"&&e.lang!==void 0),o(),l("ngIf",e.view=="coins"&&e.lang!==void 0),o(),l("ngIf",e.view=="tournaments"&&e.lang!==void 0),o(),l("ngIf",e.view=="play"&&e.lang!==void 0&&!e.show2p),o(),l("ngIf",e.view=="playT500"&&e.lang!==void 0&&!e.show2p),o(),l("ngIf",e.view=="playT100"&&e.lang!==void 0&&!e.show2p),o(),l("ngIf",e.selectedCustomTournament&&e.
85isPlayView()&&!e.show2p),o(),l("ngIf",e.show2p&&!e.showInvites)}}function vs(t,d){if(t&1){let e=v();r(0,"button",230),f("click",function(){p(e),s();let i=ne(1);return u(i.onReject())}),a(),r(1,"button",231),f("click",function(){p(e),s();let i=ne(1);return u(i.onAccept())}),a()}if(t&2){let e=s(2);l("label",e.lang.no)("rounded",!0),o(),l("label",e.getStartGameDialogYes())("rounded",!0)}}function bs(t,d){if(t&1&&(r(0,"p-confirmDialog",228,5),h(2,vs,2,4,"ng-template",229),a()),t&2){let e=s();G(z(8,gr)),l("acceptLabel",e.getStartGameDialogYes())("acceptIcon","pi-unlock")("rejectLabel",e.lang.no)("closable",!1)("closeOnEscape",!0)("dismissableMask",!0)}}function ys(t,d){if(t&1&&(r(0,"span",236),_(1,"i",237),m(2),a()),t&2){let e=s(2);o(2),g(" ",e.lang.emailConsentPromptTitle," ")}}function Cs(t,d){if(t&1&&(r(0,"span",238),m(1),a()),t&2){let e=s(2);o(),g(" ",e.engagementConsentPromptError," ")}}function ws(t,d){if(t&1){let e=v();r(0,"div",239)(1,"button",240),f("click",function(){p(e);let i=s(2);return u(i.respondToEngagementConsentPrompt(!1))}),a(),r(2,"button",241),f("click",function(){p(e);let i=s(2);return u(i.respondToEngagementConsentPrompt(!0))}),a()()}if(t&2){let e=s(2);o(),l("outlined",!0)("rounded",!0)("disabled",e.engagementConsentPromptSaving)("label",e.lang.emailConsentPromptDecline),o(),l("rounded",!0)("loading",e.engagementConsentPromptSaving)("label",e.lang.emailConsentPromptAccept)}}function Ts(t,d){if(t&1){let e=v();r(0,"p-dialog",232),P("visibleChange",function(i){p(e);let c=s();return I(c.showEngagementConsentPrompt,i)||(c.showEngagementConsentPrompt=i),u(i)}),h(1,ys,3,1,"ng-template",233),r(2,"div",234)(3,"p"),m(4),a(),r(5,"small"),m(6),a(),h(7,Cs,2,1,"span",235),a(),h(8,ws,3,7,"ng-template",229),a()}if(t&2){let e=s();G(z(13,fr)),S("visible",e.showEngagementConsentPrompt),l("modal",!0)("closable",!1)("closeOnEscape",!1)("dismissableMask",!1)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(4),x(e.lang.emailConsentPromptBody),o(2),x(e.lang.emailConsentPromptNote),o(),l("ngIf",e.engagementConsentPromptError)}}
85function Ss(t,d){if(t&1){let e=v();r(0,"button",243),f("click",function(){p(e);let i=s(2);return u(i.denyGame())}),a(),r(1,"button",244),f("click",function(){p(e);let i=s(2);return u(i.acceptGame())}),a()}if(t&2){let e=s(2);l("label",e.lang.cancel)("rounded",!0),o(),l("label",e.lang.acceptGame)("rounded",!0)}}function Is(t,d){if(t&1){let e=v();r(0,"p-dialog",242),P("visibleChange",function(i){p(e);let c=s();return I(c.showInvitationDialog,i)||(c.showInvitationDialog=i),u(i)}),m(1),_(2,"br"),h(3,Ss,2,4,"ng-template",229),a()}if(t&2){let e=s();G(z(12,be)),l("header",X(e.invitationDialogHeader))("modal",!0),S("visible",e.showInvitationDialog),l("closable",!1)("closeOnEscape",!1)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(),g(" ",e.invitationDialogMessage," ")}}function Ps(t,d){if(t&1){let e=v();r(0,"div",246)(1,"input",247),P("ngModelChange",function(i){p(e);let c=s(2);return I(c.invitationEmail,i)||(c.invitationEmail=i),u(i)}),a()()}if(t&2){let e=s(2);o(),S("ngModel",e.invitationEmail)}}function Ms(t,d){if(t&1){let e=v();r(0,"button",249),f("click",function(){p(e);let i=s(3);return u(i.sendInvitationEmail())}),a()}if(t&2){let e=s(3);l("disabled",!e.validateEmail(e.invitationEmail))("label",e.lang.inviteAFriend)("rounded",!0)}}function ks(t,d){if(t&1){let e=v();r(0,"button",243),f("click",function(){p(e);let i=s(2);return u(i.closeInviteDialog())}),a(),h(1,Ms,1,3,"button",248)}if(t&2){let e=s(2);l("label",e.lang.cancel)("rounded",!0),o(),l("ngIf",!e.invitationEmailSent)}}function Es(t,d){if(t&1){let e=v();r(0,"p-dialog",242),P("visibleChange",function(i){p(e);let c=s();return I(c.showInviteToRegister,i)||(c.showInviteToRegister=i),u(i)}),m(1),_(2,"br"),h(3,Ps,2,1,"div",245),_(4,"br"),h(5,ks,2,3,"ng-template",229),a()}if(t&2){let e=s();G(z(13,be)),l("header",X(e.lang.inviteAFriend))("modal",!0),S("visible",e.showInviteToRegister),l("closable",!1)("closeOnEscape",!0)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(),g(" ",e.invitationEmailDialogMessage," "),o(2),l("ngIf",!e.invitationEmailSent)}}function Os(t,d){t&1&&(r(0,"div",250),_(1,"p-progressSpinner"),a())}function Ds(t,d){t&1&&_(0,"p-progressSpinner",253)}function Fs(t,d){if(t&1&&(r(0,"div",254),m(1),a()),t&2){let e=s(2);o(),g(" ",e.waitingElapsed?7-e.waitingElapsed:7,"s ")}}function Hs(t,d){if(t&1&&(r(0,"div"),m(1),a()),t&2){let e=s(2);o(),g(" ",e.lang.playSingleplayer," ")}}function Rs(t,d){if(t&1){let e=v();r(0,"button",257),f("click",function(){p(e);let i=s(3);return u(i.showStartGameDialog("single"))}),a()}if(t&2){let e=s(3);l("label",e.lang.playSingleplayerButton)("rounded",!0)}}function Vs(t,d){if(t&1){let e=v();r(0,"button",244),f("click",function(){p(e);let i=s(3);return u(i.showSearchRandomPlayers())}),a()}if(t&2){let e=s(3);l("label",e.lang.searchAgainButton)("rounded",!0)}}function Ls(t,d){if(t&1){let e=v();r(0,"button",243),f("click",function(){p(e);let i=s(2);return u(i.stopWaiting())}),a(),h(1,Rs,1,2,"button",255)(2,Vs,1,2,"button",256)}if(t&2){let e=s(2);l("label",e.lang.cancel)("rounded",!0),o(),l("ngIf",e.noRandomPlayerFound),o(),l("ngIf",e.noRandomPlayerFound)}}function zs(t,d){if(t&1){let e=v();r(0,"p-dialog",242),P("visibleChange",function(i){p(e);let c=s();return I(c.showWaitingDialog,i)||(c.showWaitingDialog=i),u(i)}),h(1,Ds,1,0,"p-progressSpinner",251)(2,Fs,2,1,"div",252)(3,Hs,2,1,"div",16),_(4,"br"),h(5,Ls,3,4,"ng-template",229),a()}if(t&2){let e=s();G(z(14,be)),l("header",ai(" ",e.noRandomPlayerFound?e.lang.noPlayerFound:e.lang.searchingForP2))("modal",!0),S("visible",e.showWaitingDialog),l("closable",!1)("closeOnEscape",!1)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(),l("ngIf",!e.noRandomPlayerFound),o(),l("ngIf",!e.noRandomPlayerFound),o(),l("ngIf",e.noRandomPlayerFound)}}function Bs(t,d){if(t&1){let e=v();r(0,"app-game-mode-selector",264),P("valueChange",function(i){p(e);let c=s(2);return I(c.gameRuleset,i)||(c.gameRuleset=i),u(i)}),a()}if(t&2){let e=s(2);l("lang",e.lang),S("value",e.gameRuleset),l("kontraDisabled",e.isKontraDisabled())("allowJuxtab",e.canSelectJuxtab)}}function As(t,d){if(t&1){let e=v();r(0,"button",243),f("click",function(){p(e);let i=s(2);return u(i.cancelGame())}),a(),r(1,"button",265),f("click",function(){p(e);let i=s(2);return u(i.startGame())}),a()}if(t&2){let e=s(2);
85l("label",e.lang.cancel)("rounded",!0),o(),l("label","Start")("rounded",!0)}}function Gs(t,d){if(t&1){let e=v();r(0,"p-dialog",242),P("visibleChange",function(i){p(e);let c=s();return I(c.showGameLengthDialog,i)||(c.showGameLengthDialog=i),u(i)}),m(1),h(2,Bs,1,4,"app-game-mode-selector",258),_(3,"br"),m(4),r(5,"div",259)(6,"div",260)(7,"button",261),f("click",function(){p(e);let i=s();return u(i.game11())}),a(),r(8,"span",262),_(9,"img",263),m(10,"1 "),a()(),r(11,"div",260)(12,"button",261),f("click",function(){p(e);let i=s();return u(i.game51())}),a(),r(13,"span",262),_(14,"img",263),m(15,"3 "),a()(),r(16,"div",260)(17,"button",261),f("click",function(){p(e);let i=s();return u(i.game101())}),a(),r(18,"span",262),_(19,"img",263),m(20,"7 "),a()()(),h(21,As,2,4,"ng-template",229),a()}if(t&2){let e=s();G(z(26,be)),l("header",X(e.gameLengthDialogHeader))("modal",!0),S("visible",e.showGameLengthDialog),l("closable",!1)("closeOnEscape",!0)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(),g(" ",e.lang.chooseRulesetLabel," "),o(),l("ngIf",e.showGameLengthDialog),o(2),g(" ",e.lang.gameLengthDialogMessage," "),o(3),l("disabled",e.to11disabled())("label",e.lang.gameLength11)("ngStyle",N(27,At,e.gameLength==11?"6px solid #800000":""))("rounded",!0),o(5),l("disabled",e.to51disabled())("label",e.lang.gameLength51)("ngStyle",N(29,At,e.gameLength==51?"6px solid #800000":""))("rounded",!0),o(5),l("disabled",e.to101disabled())("label",e.lang.gameLength101)("ngStyle",N(31,At,e.gameLength==101?"6px solid #800000":""))("rounded",!0)}}function Ns(t,d){if(t&1&&m(0),t&2){let e=s(2);x(e.lang.changeTheme)}}function Us(t,d){if(t&1&&(r(0,"div",84),_(1,"img",85),m(2),a()),t&2){let e=s().$implicit;o(2),g(" ",">"+e.points)}}function Ws(t,d){if(t&1){let e=v();r(0,"div",269),f("click",function(){let i=p(e).$implicit,c=s(2);return u(c.selectDeck(i))}),r(1,"div",77)(2,"div",270),m(3),a(),r(4,"div",79),m(5),a(),h(6,Us,3,1,"div",80),a()()}if(t&2){let e=d.$implicit,n=s(2);o(),l("ngClass",n.getDeckButtonClass(e.id,e.points))("ngStyle",N(5,Mn,"url("+e.button+")")),o(2),x(e.name),o(2),x(e.music),o(),l("ngIf",e.points>0)}}function js(t,d){}function qs(t,d){if(t&1){let e=v();r(0,"p-dialog",266),P("visibleChange",function(i){p(e);let c=s();return I(c.showThemeDialog,i)||(c.showThemeDialog=i),u(i)}),h(1,Ns,1,1,"ng-template",233),r(2,"div",267),h(3,Ws,7,7,"div",268),a(),h(4,js,0,0,"ng-template",229),a()}if(t&2){let e=s();G(z(10,_r)),l("modal",!0),S("visible",e.showThemeDialog),l("closable",!0)("closeOnEscape",!0)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(3),l("ngForOf",e.deckDesigns)}}function Ks(t,d){if(t&1){let e=v();r(0,"button",244),f("click",function(){p(e);let i=s(2);return u(i.showThemePointsDialog=!1)}),a()}if(t&2){let e=s(2);l("label",e.lang.ok)("rounded",!0)}}function Zs(t,d){if(t&1){let e=v();r(0,"p-dialog",242),P("visibleChange",function(i){p(e);let c=s();return I(c.showThemePointsDialog,i)||(c.showThemePointsDialog=i),u(i)}),r(1,"color",271),m(2),a(),_(3,"br"),r(4,"color",272),m(5),a(),_(6,"br")(7,"br"),m(8),h(9,Ks,1,2,"ng-template",229),a()}if(t&2){let e=s();G(z(14,be)),l("header",X(e.lang.themePointsDialogMessageHeader))("modal",!0),S("visible",e.showThemePointsDialog),l("closable",!1)("closeOnEscape",!1)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(2),x(e.themePointsDialogMessage1),o(3),x(e.themePointsDialogMessage2),o(3),g(" ",e.themePointsDialogMessage3," ")}}function Qs(t,d){if(t&1){let e=v();r(0,"button",244),f("click",function(){p(e);let i=s(2);return u(i.showT500Dialog=!1)}),a()}if(t&2){let e=s(2);l("label",e.lang.ok)("rounded",!0)}}function Js(t,d){if(t&1){let e=v();r(0,"p-dialog",242),P("visibleChange",function(i){p(e);let c=s();return I(c.showT500Dialog,i)||(c.showT500Dialog=i),u(i)}),m(1),h(2,Qs,1,2,"ng-template",229),a()}if(t&2){let e=s();G(z(12,be)),l("header",X(e.lang.t500DialogMessageHeader))("modal",!0),S("visible",e.showT500Dialog),l("closable",!1)("closeOnEscape",!1)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(),g(" ",e.view=="playT500"?e.t500DialogMessage1:e.t100DialogMessage1," ")}}function Ys(t,d){if(t&1&&(r(0,"small",288),m(1),a()),t&2){let e=s(2);o(),x(e.lang.usernameError)}}
85function Xs(t,d){if(t&1&&(r(0,"small",289),m(1),a()),t&2){let e=s(2);o(),x(e.lang.nicknameError)}}function $s(t,d){if(t&1&&(r(0,"small",290),m(1),a()),t&2){let e=s(2);o(),x(e.lang.tooShort)}}function ed(t,d){if(t&1&&(r(0,"small",291),m(1),a()),t&2){let e=s(2);o(),x(e.lang.tooShort)}}function td(t,d){if(t&1&&(r(0,"small",292),m(1),a()),t&2){let e=s(2);o(),x(e.lang.passwordDoesntMatch)}}function id(t,d){if(t&1){let e=v();r(0,"button",243),f("click",function(){p(e);let i=s(2);return u(i.showInviteToConvertGuest=!1)}),a(),r(1,"button",244),f("click",function(){p(e);let i=s(2);return u(i.doConvertGuest())}),a()}if(t&2){let e=s(2);l("label",e.lang.cancel)("rounded",!0),o(),l("label",e.lang.register)("rounded",!0)}}function nd(t,d){if(t&1){let e=v();r(0,"p-dialog",242),P("visibleChange",function(i){p(e);let c=s();return I(c.showInviteToConvertGuest,i)||(c.showInviteToConvertGuest=i),u(i)}),m(1),_(2,"br")(3,"br"),r(4,"div",273)(5,"div",274)(6,"label",275),m(7),a(),r(8,"input",276),P("ngModelChange",function(i){p(e);let c=s();return I(c.regUsername,i)||(c.regUsername=i),u(i)}),a(),h(9,Ys,2,1,"small",277),a(),r(10,"div",274)(11,"label",278),m(12),a(),r(13,"input",279),P("ngModelChange",function(i){p(e);let c=s();return I(c.regNickname,i)||(c.regNickname=i),u(i)}),a(),h(14,Xs,2,1,"small",280)(15,$s,2,1,"small",281),a(),r(16,"div",274)(17,"label",282),m(18),a(),r(19,"input",283),P("ngModelChange",function(i){p(e);let c=s();return I(c.regPassword,i)||(c.regPassword=i),u(i)}),a(),h(20,ed,2,1,"small",284),a(),r(21,"div",274)(22,"label",285),m(23),a(),r(24,"input",286),P("ngModelChange",function(i){p(e);let c=s();return I(c.regPassword2,i)||(c.regPassword2=i),u(i)}),a(),h(25,td,2,1,"small",287),a()(),h(26,id,2,4,"ng-template",229),a()}if(t&2){let e=s();G(z(27,be)),l("header",X(e.lang.convertToGuestHeader))("modal",!0),S("visible",e.showInviteToConvertGuest),l("closable",!1)("closeOnEscape",!0)("draggable",!1)("baseZIndex",9999999)("autoZIndex",!0),o(),g(" ",e.lang.whyConvertGuest," "),o(6),x(e.lang.email),o(),S("ngModel",e.regUsername),o(),l("ngIf",e.checkRegister&&e.regUsername.trim()==""),o(3),x(e.lang.nickname),o(),l("minlength",5),S("ngModel",e.regNickname),o(),l("ngIf",e.checkRegister&&e.regNickname.trim()==""),o(),l("ngIf",e.checkRegister&&e.regNickname.trim()!==""&&e.regNickname.length<5),o(3),x(e.lang.pass),o(),S("ngModel",e.regPassword),l("minlength",5),o(),l("ngIf",e.checkRegister&&e.regPassword.trim()!==""&&e.regPassword.length<5),o(3),x(e.lang.repeatPass),o(),S("ngModel",e.regPassword2),o(),l("ngIf",e.checkRegister&&(e.regPassword!==""||e.regPassword2!=="")&&e.regPassword!==e.regPassword2)}}function od(t,d){if(t&1&&(r(0,"div",293)(1,"div",294)(2,"span",295),m(3),a(),_(4,"img",296),a()()),t&2){let e=s();o(3),x(e.splashText),o(),l("src",e.splashImageUrl,q)}}function ad(t,d){if(t&1){let e=v();r(0,"app-prizes-popup",297),f("prizeSelected",function(i){p(e);let c=s();return u(c.prizeSelected(i))})("closePopup",function(){p(e);let i=s();return u(i.showPrizesPopup=!1)}),a()}if(t&2){let e=s();l("_selectedSponsor",e.selectedSponsor)("sponsors",e.sponsors)("showPrizes",e.showPrizesPopup)("prizeTier",e.selectPrizesTier)("T100",e.selectedTournament=="playT100")("T500",e.selectedTournament=="playT500")("selectPrizes",e.showSelectPrizesInPopup)}}var ip=(()=>{class t{router;cache;rest;socketController;messengerService;langSvc;route;confirmationService;messageService;deviceDetector;adSvc;brandingSvc;shareSvc;nudgeSvc;multiplayerInvites;juxtabSelection=null;get gameRuleset(){return this.juxtabSelection||(this.gameModeKontra?"kontra":"normal")}set gameRuleset(e){this.juxtabSelection=xe({ruleset:e})?e:null,this.gameModeKontra=e==="kontra"}get isJuxtabSelected(){return xe({ruleset:this.gameRuleset})}
85get canSelectJuxtab(){return!this.selectedCustomTournament&&!["playT100","playT500"].includes(this.view)&&this.gameModeSelected!=="random"}playerDeal;headerInfo;user;socketMessageSubscription;lang;homePageViewSubscription;multiplayerRouteSubscription;multiplayerUserSubscription;homeContentStarted=!1;openingTournament=!1;headerInfoTXT="";t100endsin="";t100endsin_short="";t100startsin="";t100startsin_short="";t500endsin="";t500endsin_short="";t500startsin="";t500startsin_short="";showInvites=!1;playerHistoryResult=[];miniGameStats=[];engagementRecommendation=null;inviteNudgeVisible=!1;pendingEngagementRecommendation=null;engagementRecommendationLoaded=!1;playerHistoryLoadedForNudge=!1;homeSuggestionSettled=!1;inviteOpenedFromNudge=!1;showEngagementConsentPrompt=!1;engagementConsentPromptSaving=!1;engagementConsentPromptError="";shareStatsJustCopied=!1;static MINI_GAME_ROWS=[{key:"memory",labelKey:"memoryGame"},{key:"hl",labelKey:"hlGame"},{key:"tct",labelKey:"tctGame"},{key:"nmm",labelKey:"nmmGame"},{key:"chk",labelKey:"chkGame"},{key:"nlsc",labelKey:"nlscGame"}];playerHistoryWins=0;playerHistoryPlayed=0;playerHistoryPoints=-1;invitesResult=[];acknowledgedInvites=[];invitesTimeout;bgRepaintTimeout;confirmHeader="";tabitems=[];activetabitem;show2p=!1;miniGamesPanelVisible=!0;selectedTournament="";selectedCustomTournament;menuChanged=!0;show=!1;limits;highScore;highScoreM;highScoreT500;highScoreT500Player;playerInHighScoreT500Top10=!1;playerInHighScoreT500Top3=!1;highScoreT500Previous;highScoreT100;highScoreT100Player;playerInHighScoreT100Top10=!1;playerInHighScoreT100Top3=!1;highScoreT100Previous;showStart=!1;connectedUsers=[];secretKey="fjdhsd0232kdjd0s9fs";lastGameInvitation;showInvitationDialog=!1;invitationDialogHeader="";invitationDialogMessage="";showThemePointsDialog=!1;themePointsDialogMessage1="";themePointsDialogMessage2="";themePointsDialogMessage3="";showT500Dialog=!1;t100DialogMessage1="";t100DialogMessage2="";t500DialogMessage1="";t500DialogMessage2="";t500DialogMessage3="";showThemeDialog=!1;loading=!1;showInviteToRegister=!1;invitationEmail="";invitationEmailDialogMessage="";invitationEmailSent=!1;showWaitingDialog=!1;waitingStartTime;waitingElapsed;waitingTimeout;noRandomPlayerFound=!1;showGameLengthDialog=!1;gameModeSelected="";gameLength=101;selectedOpponent;gameLengthDialogHeader="";view="play";fadingOut=!1;static VIEW_FADE_MS=200;static MAX_TIMEOUT_MS=2147483647;remainingTime500;remainingTime100;timer500Subscription;timer100Subscription;settings={music:!1,sound:!1,ambience:!1,deck:"default",table:"default",randomBackground:!0};deckDesigns=[];selectedSponsor;tCustom=new Qe;get currentLangCode(){return(this.cache.getCache("ipLocationCountryCode")||"en").toLowerCase()}constructor(e,n,i,c,b,y,M,O,H,B,A,$,k,E,ie){this.router=e,this.cache=n,this.rest=i,this.socketController=c,this.messengerService=b,this.langSvc=y,this.route=M,this.confirmationService=O,this.messageService=H,this.deviceDetector=B,this.adSvc=A,this.brandingSvc=$,this.shareSvc=k,this.nudgeSvc=E,this.multiplayerInvites=ie}ngOnDestroy(){this.socketMessageSubscription?.unsubscribe(),this.homePageViewSubscription?.unsubscribe(),this.multiplayerRouteSubscription?.unsubscribe(),this.multiplayerUserSubscription?.unsubscribe(),clearTimeout(this.invitesTimeout),clearTimeout(this.bgRepaintTimeout),clearTimeout(this.waitingTimeout),this.timer500Subscription&&this.timer500Subscription.unsubscribe(),this.timer100Subscription&&this.timer100Subscription.unsubscribe()}decrypt(e){return Pt.AES.decrypt(e,this.secretKey).toString(Pt.enc.Utf8)}triggerFalseClick(){try{this.headerInfo.nativeElement.click()}catch{}}forceHomeBackgroundRepaint(){try{let e=document.body;e.classList.add("bg-ready"),e.classList.add("bg-overlay-gone"),e.style.transform="translateZ(0)",e.offsetHeight,setTimeout(()=>{e.style.transform=""},50)}catch{}}ngOnInit(){return R(this,null,function*(){this.openingTournament=this.route.snapshot.queryParamMap.get("view")!=="multiplayer"&&!!(this.cache.getCache("pendingTournamentId")||"").trim();let e=this.cache.getCache("pendingLobbyReturn");e&&(this.cache.deleteCache("pendingLobbyReturn"),this.cache.tokenValid()&&(yield this.router.navigateByUrl(e),!e.startsWith("/home?")))||(this.brandingSvc.applyHomeBackdrop(),this.bgRepaintTimeout=setTimeout(()=>
85this.forceHomeBackgroundRepaint(),1e3),this.cache.setCache("tournamentView",JSON.stringify(!1)),this.multiplayerRouteSubscription=this.route.queryParamMap.subscribe(n=>{if(n.get("view")==="multiplayer")this.view="multiplayer",this.show2p=!1,this.selectedCustomTournament=void 0,this.selectedTournament="",this.cache.deleteCache("selectedTournament"),this.cache.deleteCache("selectedTournamentObject"),this.brandingSvc.applyHomeBackdrop();else if(this.view==="multiplayer"){if(!this.cache.tokenValid()){this.router.navigate(["/"]);return}this.view="play"}}),this.multiplayerUserSubscription=this.messengerService.getUser().subscribe(n=>{this.user=n,n?.id&&this.cache.tokenValid()&&!this.homeContentStarted&&this.initializeHomeContent()}),this.homePageViewSubscription=this.messengerService.getHomePageView().subscribe(n=>{this.route.snapshot.queryParamMap.get("view")==="multiplayer"&&this.router.navigate(["/home"],{queryParams:{view:null,invite:null},queryParamsHandling:"merge"}),this.fadeViewChange(()=>{this.view=n,this.show2p=!1,this.view==="playT500"?this.updateRemainingTime500():this.view==="playT100"?this.updateRemainingTime100():(this.timer500Subscription&&this.timer500Subscription.unsubscribe(),this.timer100Subscription&&this.timer100Subscription.unsubscribe()),this.user?.id&&(this.getPlayerHistory(),this.getMiniGameStats())})}),this.lang=this.langSvc.setLanguageNoMatter(),!(!this.cache.tokenValid()&&this.view==="multiplayer")&&(yield this.initializeHomeContent()))})}initializeHomeContent(){return R(this,null,function*(){this.homeContentStarted||(this.homeContentStarted=!0,this.loadSettingsFromCache(),this.rest.getThemes().subscribe({next:e=>{this.deckDesigns=e},error:()=>{}}),this.lang=this.langSvc.setLanguageNoMatter(),setTimeout(()=>{this.setLabel(""),this.tabitems=[{label:this.lang.findPlayers,id:"search2p"},{label:this.lang.recentPlayers,id:"recent2p"}],this.activetabitem=this.tabitems[0]},300),this.activetabitem=this.tabitems[0],this.socketMessageSubscription=this.socketController.getSocketMessage().subscribe(e=>{if(e[0]==="resendUser")this.socketController.setUser(this.user);else if(e[0]==="connectedUsers")this.connectedUsers=JSON.parse(this.decrypt(e[1]));else if(e[0]==="presenceChanged")this.connectedUsers=Oi(this.connectedUsers,e[1]);else if(e[0]==="newInvitation")this.lastGameInvitation=JSON.parse(e[1]),this.messageService.clear(),this.invitationDialogHeader=this.lang.newInvitation+" ("+this.lastGameInvitation.playTo+")",this.lastGameInvitation.isKontra===!0&&(this.invitationDialogHeader+=" ("+this.lang.counterMode+")"),xe(this.lastGameInvitation)&&(this.invitationDialogHeader+=" ("+bt(this.lastGameInvitation,this.lang)+")"),this.invitationDialogMessage=this.lastGameInvitation.player1.nickname,this.showInvitationDialog=!0;else if(e[0]==="playersPaired"){if(this.showWaitingDialog&&!this.noRandomPlayerFound){let n=JSON.parse(e[1]);if(clearTimeout(this.waitingTimeout),this.user.id==n.player1.id&&n.player1.id!==n.player2.id){let i=new Ct(n.player1,n.player2,"multiplayer",void 0,11,this.getSelectedTournamentName(),!1,"normal");i.multiRandom=!0,this.rest.createNewDbGame(i).subscribe(c=>{console.log("new game: ",c.id),this.socketController.beginRandomGame(c[0],n.player1,n.player2),this.router.navigate(["gameboard"])})}}}else if(e[0]==="beginRandomGame"&&this.showWaitingDialog&&!this.noRandomPlayerFound){let n=JSON.parse(e[1]);this.socketController.acceptGame(n.game,n.player1,n.player2),setTimeout(()=>{this.router.navigate(["gameboard"])},1e3)}}),this.cache.tokenValid()?this.rest.getUserDataForToken().subscribe(e=>R(this,null,function*(){this.user=e[0],this.cache.setCache("user",JSON.stringify(this.user));let n=this.openingTournament;n&&(yield this.consumePendingTournament()),this.socketController.setUser(this.user),this.loadEngagementRecommendation(),this.loadEngagementConsentPrompt(),this.limits={SinglePlayer:999999,MultiPlayer:999999},this.messengerService.setLimits(this.limits),this.playerHistoryPoints==-1&&(this.playerHistoryPoints=0,this.getPlayerHistory()),this.getMiniGameStats(),this.rest.highScore().subscribe(i=>{this.highScore=i,this.recomputeScoreRows(),i.length==0&&setTimeout(()=>{this.rest.highScore().subscribe(c=>{this.highScore=c,this.recomputeScoreRows()})},500)}),this.rest.highScoreM().subscribe(i=>{this.highScoreM=i,this.recomputeScoreRows(),i.length==0&&setTimeout(()=>{this.rest.highScoreM().subscribe(c=>{this.highScoreM=c,this.recomputeScoreRows()})},500)}),this.brandingSvc.isBuiltInBrand()&&(this.getT500HighScoreFromDB(),setTimeout(()=>{try{this.highScoreT500.length==0&&this.getT500HighScoreFromDB()}catch{}},500),this.rest.highScoreT500Previous().subscribe(i=>{this.highScoreT500Previous=i,i.length==0&&setTimeout(()=>{this.rest.highScoreT500Previous().subscribe(c=>{this.highScoreT500Previous=c})},500)}),this.scheduleNextMonthT500HighScore(),this.getT100HighScoreFromDB(),setTimeout(()=>{try{this.highScoreT100.length==0&&this.getT100HighScoreFromDB()}catch{}},500),this.rest.highScoreT100Previous().subscribe(i=>{this.highScoreT100Previous=i,i.length==0&&setTimeout(()=>{this.rest.highScoreT100Previous().subscribe(c=>{this.highScoreT100Previous=c})},500)}),this.scheduleNextSundayT100HighScore()),setTimeout(()=>R(this,null,function*(){if(n)return;let i=yield ee(this.rest.tournaments());this.tournaments=i.filter(c=>c.active==!0),this.selectedTournament=this.cache.getCache("selectedTournament"),this.selectedTournament!==""&&this.selectedTournament!==null&&this.selectedTournament!==void 0&&(this.selectedCustomTournament=this.tournaments.find(c=>c.id===this.selectedTournament),this.selectedCustomTournament?this.cache.setCache("selectedTournamentObject",JSON.stringify(this.selectedCustomTournament)):this.cache.deleteCache("selectedTournamentObject"),this.switchOnTournament(this.selectedTournament))})),setTimeout(()=>{n||this.view==="multiplayer"||this.rest.findDbGame(this.user.id).subscribe(i=>R(this,null,function*(){if(i.length>0){let c=i[0];if(c.TournamentName){this.cache.setCache("selectedTournament",c.Tourn
85amentName);let b=this.tournaments;if(!b||b.length===0)try{b=(yield ee(this.rest.tournaments())).filter(y=>y.active==!0)}catch{b=[]}this.selectedCustomTournament=b.find(y=>y.id===c.TournamentName),this.selectedCustomTournament?this.cache.setCache("selectedTournamentObject",JSON.stringify(this.selectedCustomTournament)):this.cache.deleteCache("selectedTournamentObject")}setTimeout(()=>{this.router.navigate(["gameboard"])},10)}}))},500),this.view==="playT500"?this.updateRemainingTime500():this.view==="playT100"?this.updateRemainingTime100():(this.timer500Subscription&&this.timer500Subscription.unsubscribe(),this.timer100Subscription&&this.timer100Subscription.unsubscribe()),setTimeout(()=>{this.getSponsors()},1),setTimeout(()=>{this.checkIfUserIsGuest()},1),this.triggerBottomBannerShow(),this.loadSettingsFromCache(),setTimeout(()=>{this.loading=!1},1)}),e=>{this.cache.deleteCache("token"),this.cache.deleteCache("user"),this.router.navigate(["/"])}):this.view!=="multiplayer"&&this.router.navigate(["/"]))})}getT500HighScorePreviousFromDB(){this.brandingSvc.isBuiltInBrand()&&this.rest.highScoreT500Previous().subscribe(e=>{this.highScoreT500Previous=e})}getT100HighScorePreviousFromDB(){this.brandingSvc.isBuiltInBrand()&&this.rest.highScoreT100Previous().subscribe(e=>{this.highScoreT100Previous=e})}scheduleRefresh(e,n){n>0&&n<=t.MAX_TIMEOUT_MS&&setTimeout(e,n)}scheduleNextMonthT500HighScore(){let e=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Belgrade",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),n=new Date,i=e.formatToParts(n),c=parseInt(i.find(E=>E.type==="year").value),b=parseInt(i.find(E=>E.type==="month").value)-1,y=new Date(Date.UTC(c,b+1,1,0,1)),M=new Date(Date.UTC(c,b+1,1,0,5)),O=new Date(Date.UTC(c,b+1,1,0,10)),H=new Date(Date.UTC(c,b,parseInt(i.find(E=>E.type==="day").value),parseInt(i.find(E=>E.type==="hour").value),parseInt(i.find(E=>E.type==="minute").value),parseInt(i.find(E=>E.type==="second").value))),B=y.getTime()-H.getTime(),A=M.getTime()-H.getTime(),$=O.getTime()-H.getTime(),k=()=>{this.getT500HighScoreFromDB(),this.getT500HighScorePreviousFromDB()};this.scheduleRefresh(k,B),this.scheduleRefresh(k,A),this.scheduleRefresh(k,$)}getT500HighScoreFromDB(){this.brandingSvc.isBuiltInBrand()&&this.rest.highScoreT500().subscribe(e=>{this.highScoreT500=e,this.playerInHighScoreT500Top10=!1,this.playerInHighScoreT500Top3=!1;let n=1;for(let i of this.highScoreT500){if(this.playerInHighScoreT500Top10=parseInt(i.id)==this.user.id,this.playerInHighScoreT500Top3=this.playerInHighScoreT500Top10&&n<=3,this.playerInHighScoreT500Top10)break;n++}this.playerInHighScoreT500Top10||this.rest.highScoreT500Player(this.user.id).subscribe(i=>{i&&i.length&&i.length>0?this.highScoreT500Player=i[0]:this.highScoreT500Player={id:this.user.id,wins:0,played:0,nickname:this.user.nickname}})})}scheduleNextSundayT100HighScore(){let e=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Belgrade",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),n=new Date,i=e.formatToParts(n),c=parseInt(i.find(U=>U.type==="year").value),b=parseInt(i.find(U=>U.type==="month").value)-1,y=parseInt(i.find(U=>U.type==="day").value),M=new Date(Date.UTC(c,b,parseInt(i.find(U=>U.type==="day").value),parseInt(i.find(U=>U.type==="hour").value),parseInt(i.find(U=>U.type==="minute").value),parseInt(i.find(U=>U.type==="second").value))),O=M.getUTCDay(),H=O<=1?1-O:8-O,B=new Date(Date.UTC(c,b,y+H,0,1)),A=new Date(Date.UTC(c,b,y+H,0,5)),$=new Date(Date.UTC(c,b,y+H,0,10)),k=B.getTime()-M.getTime(),E=A.getTime()-M.getTime(),ie=$.getTime()-M.getTime(),L=()=>{this.getT100HighScoreFromDB(),this.getT100HighScorePreviousFromDB()};this.scheduleRefresh(L,k),this.scheduleRefresh(L,E),this.scheduleRefresh(L,ie)}getT100HighScoreFromDB(){this.brandingSvc.isBuiltInBrand()&&this.rest.highScoreT100().subscribe(e=>{this.highScoreT100=e,this.playerInHighScoreT100Top10=!1,this.playerInHighScoreT100Top3=!1;let n=1;for(let i of this.highScoreT100){if(this.playerInHighScoreT100Top10=parseInt(i.id)==this.user.id,this.playerInHighScoreT100Top3=this.playerInHighScoreT100Top10&&n<=3,this.playerInHighScoreT100Top10)break;n++}this.playerInHighScoreT100Top10||this.rest.highScoreT100Player(this.user.id).subscribe(i=>{i&&i.length&&i.length>0?this.highScoreT100Player=i[0]:this.highScoreT100Player={id:this.user.id,wins:0,played:0,nickname:this.user.nickname}})})}getSponsors(){this.rest.getSponsorData().subscribe(e=>
85{this.sponsors=e,this.sponsors.forEach(n=>{n.url=`/api/customer/image?cid=${n.CustomerId}&w=170&h=100&ts=${new Date().getTime()}`})})}triggerCardRipple(e){let n=e.currentTarget;n&&(n.classList.remove("card-clicked"),n.offsetWidth,n.classList.add("card-clicked"),window.setTimeout(()=>{n.isConnected&&n.classList.remove("card-clicked")},600))}defaultHeaderInfoTXT(){return this.brandingSvc.label("menuCardsLabel",this.currentLangCode)||this.lang.startGame}setLabel(e,n=""){if(n!=="")this.headerInfoTXT=this.lang.invite+" "+n;else switch(e){case"":this.selectedTournament==""?this.headerInfoTXT=this.defaultHeaderInfoTXT():this.selectedTournament=="playT100"?this.headerInfoTXT=this.lang.tournament100:this.selectedTournament=="playT500"?this.headerInfoTXT=this.lang.tournament500:this.selectedCustomTournament!==void 0&&(this.headerInfoTXT=this.tCustom.localizedField(this.selectedCustomTournament,"name",this.currentLangCode));break;case"1p":this.headerInfoTXT=this.lang.singlePlayer;break;case"2p":this.headerInfoTXT=this.lang.multiPlayer;break;case"2p-random":this.headerInfoTXT=this.lang.multiPlayerRandom;break;case"tournaments":this.headerInfoTXT=this.lang.tournaments;break;case"minigames":this.headerInfoTXT=this.lang.miniGames;break}}openMiniGames(){if(this.isMiniGamesDisabled())return;let e=document.querySelector(".high-score"),n=!!e&&e.scrollTop>0;e&&e.scrollTo({top:0,behavior:"smooth"});let i=()=>{let c=this.selectedCustomTournament!==void 0?".ct-mini-games":".lbl-mini-games",b=document.querySelector(c);b&&(b.classList.remove("mini-games-panel--ripple"),b.offsetWidth,b.classList.add("mini-games-panel--ripple"),window.setTimeout(()=>{b.isConnected&&b.classList.remove("mini-games-panel--ripple")},600))};n?"onscrollend"in window&&e?e.addEventListener("scrollend",i,{once:!0}):window.setTimeout(i,400):i()}onMiniGameClick(e){switch(e){case"memory":return this.openMemoryGame();case"hl":return this.openHighLowGame();case"tct":return this.openTicTacToeGame();case"nmm":return this.openNineMorrisGame();case"chk":return this.openCheckersGame();case"nlsc":return this.openNlscGame()}}loadEngagementRecommendation(){this.rest.getEngagementRecommendation(this.brandingSvc.resolvedId||"").subscribe({next:e=>{this.pendingEngagementRecommendation=e&&!e.IsHoldout&&e.GameKey?e:null,this.engagementRecommendationLoaded=!0,this.reconcileHomeSuggestion()},error:()=>{this.pendingEngagementRecommendation=null,this.engagementRecommendationLoaded=!0,this.reconcileHomeSuggestion()}})}reconcileHomeSuggestion(){if(this.homeSuggestionSettled||!this.user||!this.lang||!this.engagementRecommendationLoaded||!this.playerHistoryLoadedForNudge)return;if(this.nudgeSvc.suggestionFor(Number(this.user.id),{surface:"home"})==="invite")this.inviteNudgeVisible=!0,this.engagementRecommendation=null,this.nudgeSvc.markImpression(Number(this.user.id),"invite","home");else{this.engagementRecommendation=this.pendingEngagementRecommendation;let n=this.engagementRecommendation;n&&this.rest.recordEngagementEvent("recommendation_impression",n.GameKey,Number(n.DecisionID)||null,{placement:"home"}).subscribe({error:()=>{}})}this.homeSuggestionSettled=!0}openInviteNudge(){this.user&&(this.inviteNudgeVisible=!1,this.inviteOpenedFromNudge=!0,this.nudgeSvc.recordClick("invite","home"),this.invitationEmailDialogMessage=this.lang.inviteAFriendMessage,this.invitationEmailSent=!1,this.showInviteToRegister=!0)}dismissInviteNudge(){this.user&&(this.inviteNudgeVisible=!1,this.nudgeSvc.dismiss(Number(this.user.id),"invite","home"))}closeInviteDialog(){this.showInviteToRegister=!1,this.inviteOpenedFromNudge=!1}loadEngagementConsentPrompt(){this.rest.getEngagementConsentPrompt(this.brandingSvc.resolvedId||"").subscribe({next:e=>{this.showEngagementConsentPrompt=e?.ShowPrompt===!0||e?.ShowPrompt===1},error:()=>{this.showEngagementConsentPrompt=!1}})}respondToEngagementConsentPrompt(e){this.engagementConsentPromptSaving||(this.engagementConsentPromptSaving=!0,this.engagementConsentPromptError="",this.rest.respondEngagementConsentPrompt(this.brandingSvc.resolvedId||"",e).subscribe({next:()=>{this.showEngagementConsentPrompt=!1,this.engagementConsentPromptSaving=!1},error:()=>{this.engagementConsentPromptError=this.lang?.emailConsentPromptError||"Your choice could not be saved.",this.engagementConsentPromptSaving=!1}}))}engagementGameLabel(e){let n=String(e||""),i={tablic:"gameLabel",memory:"memoryGame",hl:"hlGame",tct:"tctGame",nmm:"nmmGame",chk:"chkGame",nlsc:"nlscGame"};return this.lang?.[i[n]]||n}openEngagementRecommendation(){let e=this.engagementRecommendation;if(e){if(this.rest.recordEngagementEvent("recommendation_click",e.GameKey,Number(e.DecisionID)||null,{placement:"home"}).subscribe({error:()=>{}}),e.GameKey==="tablic")return this.start1pGame();this.onMiniGameClick(e.GameKey)}}isMiniGamesDisabled(){if(this.view==="play")return!1;if(this.selectedCustomTournament!==void 0){if(this.tCustom.isDateBeforeTourn
85amentStart(this.selectedCustomTournament)||this.tCustom.isDateAfterTournamentEnd(this.selectedCustomTournament))return!0;let e=this.selectedCustomTournament?.gameModes?.miniGames;return!(Array.isArray(e)&&e.length>0)}return!0}get miniGamesEnabled(){return this.brandingSvc.miniGamesEnabled()}get randomThemeAllowedByBrand(){return this.brandingSvc.currentProfile?.features?.randomThemeBackground!==!1}get isBuiltInBrand(){return this.brandingSvc.isBuiltInBrand()}openGame(e){if(this.showStart=!0,e===1){let n=this.lang["1pstartquestion"].replace("{{num}}",this.lang.unlimited);this.limits.SinglePlayer<1e5&&(n=this.lang["1pstartquestion"].replace("{{num}}",this.limits.SinglePlayer<0?0:this.limits.SinglePlayer)),this.confirmationService.confirm({header:this.lang["1pheader"],message:n,accept:()=>{this.start1pGame()}})}}start1pGame(){this.createSinglePlayerGame(this.gameLength,this.gameRuleset,!0)}createSinglePlayerGame(e,n,i){let c={id:-1,nickname:qi()},b=this.getSelectedTournamentName(),y=xe({ruleset:n});!b&&!y&&(this.canPlayT500Tournament(!1)&&e==101?b="playT500":this.canPlayT100Tournament(!1)&&e==11&&(b="playT100")),b==null&&(b="");let M=new Ct(this.user,c,"singleplayer","",e,y?"":b,n==="kontra",n);M.multiRandom=!1,console.log("new game: ",M),this.rest.createNewDbGame(M).subscribe({next:O=>{console.log("new game: ",O),i&&(this.cache.setCache("gameLength_"+this.user.id,JSON.stringify(e)),this.cache.setCache("gameModeKontra_"+this.user.id,JSON.stringify(n==="kontra")),this.cache.setCache("gameRuleset_"+this.user.id,n)),this.router.navigate(["gameboard"])},error:O=>{this.showGameLengthDialog=!0,this.messageService.add({severity:"error",summary:this.lang["friendInviteError_"+O?.error?.code]||this.lang.friendInviteError})}})}showSearchPlayers(){if(!(this.view==="playT500"||this.view==="playT100"||this.isMultiplayerDisabled())){if(!this.selectedCustomTournament){this.router.navigate(["/home"],{queryParams:{view:"multiplayer"}});return}this.fadeViewChange(()=>{this.show2p=!0})}}fadeViewChange(e){this.fadingOut=!0,window.setTimeout(()=>{e(),this.fadingOut=!1},t.VIEW_FADE_MS)}showTournament100(e=!1){this.selectedTournament==""||this.selectedTournament==null||this.selectedTournament==null?(this.switchOnTournament("playT100"),e&&this.showSplashAnimation(this.lang.tournament100mode,"/assets/images/tournament100-card.webp")):this.switchOffTournament()}showTournament500(e=!1){this.selectedTournament==""||this.selectedTournament==null||this.selectedTournament==null?(this.switchOnTournament("playT500"),e&&this.showSplashAnimation(this.lang.tournament500mode,"/assets/images/tournament500-card.webp")):this.switchOffTournament()}switchOnTournament(e){this.loading=!0,this.view=e,this.selectedTournament=e,this.cache.setCache("selectedTournament",this.selectedTournament),this.cache.setCache("tournamentView",JSON.stringify(!1)),document.body.style.transition="backdrop-filter 0.3s",e=="playT500"?(document.body.style.backdropFilter="hue-rotate(270deg)",this.updateRemainingTime500()):e=="playT100"?(document.body.style.backdropFilter="hue-rotate(120deg) brightness(1)",this.updateRemainingTime100()):this.selectedCustomTournament!==void 0&&(document.body.style.backdropFilter=this.selectedCustomTournament.colorScheme.backdropFilter),this.setLabel(""),setTimeout(()=>{e=="playT500"?this.headerInfoTXT=this.lang.tournament500:e=="playT100"?this.headerInfoTXT=this.lang.tournament100:this.selectedCustomTournament!==void 0&&(this.headerInfoTXT=this.tCustom.localizedField(this.selectedCustomTournament,"name",this.currentLangCode)),this.loading=!1,this.triggerFalseClick()},1e3),setTimeout(()=>{e=="playT500"?document.body.style.backdropFilter="hue-rotate(275deg)":e=="playT100"?document.body.style.backdropFilter="hue-rotate(125deg) brightness(1)":this.selectedCustomTournament!==void 0&&(document.body.style.backdropFilter=this.selectedCustomTournament.colorScheme.backdropFilter),setTimeout(()=>{e=="playT500"?document.body.style.backdropFilter="hue-rotate(270deg)":e=="playT100"?document.body.style.backdropFilter="hue-rotate(120deg) brightness(1)":this.selectedCustomTournament!==void 0&&(document.body.style.backdropFilter=this.selectedCustomTournament.colorScheme.backdropFilter)},100)},1e3)}switchOffTournament(){this.loading=!0,this.fadeViewChange(()=>{this.view="play",this.selectedTournament="",this.selectedCustomTournament=void 0,this.cache.deleteCache("selectedTournamentObject"),this.cache.setCache("selectedTournament",this.selectedTournament),this.cache.setCache("tournamentView",JSON.stringify(!1)),document.body.style.transition="backdrop-filter 0s",document.body.style.backdropFilter=this.brandingSvc.homeBackdropFilter(),this.timer500Subscription&&this.timer500Subscription.unsubscribe()}),setTimeout(()=>{this.loading=!1},1e3)}exitMultiplayerSearch(){this.fadeViewChange(()=>{this.show2p=!1})}showSearchRandomPlayers(){this.view==="playT500"||this.view==="playT100"||this.isRandomDisabled()||(this.socketController.addUserToQueue(this.user),this.showWaitingDialog=!0,this.waitingStartTime=new Date,this.waitingTimeout=void 0,this.noRandomPlayerFound=!1,this.waitingElapsed=0,this.setWaitingTimer())}setWaitingTimer(){this.waitingElapsed=Math.round((new Date().getTime()-this.waitingStartTime.getTime())/1e3),this.waitingElapsed<7?this.waitingTimeout=setTimeout(()=>{this.setWaitingTimer()},1e3):this.quickStartGame11()}getPlayerHistory(){this.loading=!0,this.rest.getPlayerHistory(String(this.user.id)).subscribe({next:e=>{this.playerHistoryResult=e,this.playerHistoryWins=this.playerHistoryPoints=this.playerHistoryPlayed=0,this.playerHistoryPlayed=this.playerHistoryResult.length,this.playerHistoryResult.forEach(n=>
85{n.Winner==this.user.id&&this.playerHistoryWins++,this.playerHistoryPoints+=n.Points}),this.nudgeSvc.syncTablanetteHistory(Number(this.user.id),this.playerHistoryResult),this.playerHistoryLoadedForNudge=!0,this.reconcileHomeSuggestion(),this.messengerService.setUserPoints(this.playerHistoryPoints),this.loading=!1},error:()=>{this.playerHistoryLoadedForNudge=!0,this.reconcileHomeSuggestion(),this.loading=!1}})}getProfileUrl(){return this.user.avatarurl&&this.user.avatarurl!==null?this.user.avatarurl:"/assets/images/user1.png"}on2pActiveTabItemChange(e){this.activetabitem=e,e.id==="invites2p"?this.showInvites=!0:this.showInvites=!1}acceptGame(){return R(this,null,function*(){if(this.lastGameInvitation){if(this.showInvitationDialog=!1,this.lastGameInvitation.game.tid&&!xe(this.lastGameInvitation)){let e=yield ee(this.rest.tournaments());this.tournaments=e.filter(i=>i.active==!0);let n=this.tournaments.find(i=>i.id==this.lastGameInvitation.game.tid);n&&(this.selectedTournament=n.id,this.selectedCustomTournament=n,this.cache.setCache("selectedTournament",this.selectedTournament),this.cache.setCache("selectedTournamentObject",JSON.stringify(n)))}this.socketController.acceptGame(this.lastGameInvitation.game,this.lastGameInvitation.player1,this.lastGameInvitation.player2),this.router.navigate(["gameboard"])}})}denyGame(){this.lastGameInvitation&&(this.showInvitationDialog=!1,this.socketController.denyGame(this.lastGameInvitation.game,this.lastGameInvitation.player1,this.lastGameInvitation.player2),this.messageService.clear("newinvitation"))}getStartGameDialogYes(){if(this.lang!=null&&this.limits!=null)return this.show2p?this.limits.MultiPlayer>0?this.lang.yes:this.lang.unlock:this.limits.SinglePlayer>0?this.lang.yes:this.lang.unlock}isOnline(e){return this.connectedUsers.find(n=>n==e)!==void 0}sendInvitationEmail(){this.rest.inviteFriendToRegister(this.invitationEmail,this.user.nickname,this.user.email).subscribe(e=>{this.invitationEmailDialogMessage=this.lang.inviteAFriendConfirmed,this.invitationEmailSent=!0,this.inviteOpenedFromNudge&&(this.nudgeSvc.recordOutcome("invite","home","email_sent"),this.inviteOpenedFromNudge=!1)})}validateEmail(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}stopWaiting(){this.socketController.cancelUserQueue(this.user),this.showWaitingDialog=!1,clearTimeout(this.waitingTimeout),this.waitingStartTime=void 0}game11(){this.gameLength=11}game51(){this.gameLength=51}game101(){this.gameLength=101}quickStartGame11(){this.stopWaiting(),this.createSinglePlayerGame(11,"normal",!1)}startGame(){switch(this.showGameLengthDialog=!1,this.gameModeSelected){case"random":this.showSearchRandomPlayers();break;case"single":this.start1pGame();break;case"multi":let e=new Ct(this.user,this.selectedOpponent,"multiplayer",void 0,this.gameLength,this.isJuxtabSelected?"":this.getSelectedTournamentName(),this.gameModeKontra,this.gameRuleset);e.multiRandom=!1,this.rest.createNewDbGame(e).subscribe({next:n=>{console.log("new game: ",n[0]);let i=n[0];i.tid=this.isJuxtabSelected?"":this.getSelectedTournamentName(),this.socketController.sendInvitation(n[0],this.user,this.selectedOpponent,this.gameLength,this.gameModeKontra,this.gameRuleset),this.router.navigate(["gameboard"])},error:n=>{this.showGameLengthDialog=!0,this.messageService.add({severity:"error",summary:this.lang["friendInviteError_"+n?.error?.code]||this.lang.friendInviteError})}});break}}cancelGame(){this.showGameLengthDialog=!1}openMemoryGame(){let e=this.lang?.memRoutePath??"memory",n=this.selectedCustomTournament!==void 0?{queryParams:{t:this.selectedCustomTournament.id}}:{};this.router.navigate(["/"+e],n)}openHighLowGame(){let e=this.lang?.hlRoutePath??"high-low",n=this.selectedCustomTournament!==void 0?{queryParams:{t:this.selectedCustomTournament.id}}:{};this.router.navigate(["/"+e],n)}openTicTacToeGame(){let e=this.lang?.tctRoutePath??"tic-tac-toe",n=this.selectedCustomTournament!==void 0?{queryParams:{t:this.selectedCustomTournament.id}}:{};this.router.navigate(["/"+e],n)}openCheckersGame(){let e=this.lang?.chkRoutePath??"checkers",n=this.selectedCustomTournament!==void 0?{queryParams:{t:this.selectedCustomTournament.id}}:{};this.router.navigate(["/"+e],n)}openNineMorrisGame(){let e=this.lang?.nmmRoutePath??"nine-mens-morris",n=this.selectedCustomTournament!==void 0?{queryParams:{t:this.selectedCustomTournament.id}}:{};this.router.navigate(["/"+e],n)}openNlscGame(){let e=this.lang?.nlscRoutePath??"ludo",n=this.selectedCustomTournament!==void 0?{queryParams:{t:this.selectedCustomTournament.id}}:{};this.router.navigate(["/"+e],n)}showStartGameDialog(e,n=void 0){if(e==="random"){this.showSearchRandomPlayers();return}if(this.isOnePlayerDisabled())return;let i=JSON.parse(this.cache.getCache("gameLength_"+this.user.id));i&&(this.gameLength=i);let c=JSON.parse(this.cache.getCache("gameModeKontra_"+this.user.id));c&&(this.gameModeKontra=c);let b=this.cache.getCache("gameRuleset_"+this.user.id);if(this.gameRuleset=["normal","kontra","juxtab","juxtab-extreme"].includes(b)?b:this.gameModeKontra?"kontra":"normal",(this.selectedCustomTournament||["playT100","playT500"].includes(this.view))&&
85(this.juxtabSelection=null),this.view==="playT500"){if(this.canPlayT500Tournament()==!1)return;this.gameLength=101,this.gameModeKontra=!1}else if(this.view==="playT100"){if(this.canPlayT100Tournament()==!1)return;this.gameLength=11,this.gameModeKontra=!1}else this.selectedCustomTournament!==void 0&&(this.selectedCustomTournament.gameModes.vsAI.to11?this.gameLength=11:this.selectedCustomTournament.gameModes.vsAI.to51?this.gameLength=51:this.selectedCustomTournament.gameModes.vsAI.to101?this.gameLength=101:this.gameLength=11,this.gameModeKontra=!1);switch(this.showWaitingDialog=!1,e){case"single":this.gameLengthDialogHeader=this.lang.gameLengthDialogSingleHeader;break;case"multi":this.gameLengthDialogHeader=this.lang.gameLengthDialogMultiHeader;break}this.selectedOpponent=n,this.gameModeSelected=e,this.showGameLengthDialog=!0}loadSettingsFromCache(){let e=this.cache.getCache("music");e?this.settings.music=JSON.parse(e):this.settings.music=!0;let n=this.cache.getCache("sound");n?this.settings.sound=JSON.parse(n):this.settings.sound=!0;let i=this.cache.getCache("ambience");if(i?this.settings.ambience=JSON.parse(i):this.settings.ambience=!0,this.user){let c=this.cache.getCache("deckboard_random_"+this.user.id);c?this.settings.randomBackground=JSON.parse(c):this.settings.randomBackground=!0}}settingMusic(){this.cache.setCache("music",JSON.stringify(this.settings.music))}settingSound(){this.cache.setCache("sound",JSON.stringify(this.settings.sound))}settingAmbience(){this.cache.setCache("ambience",JSON.stringify(this.settings.ambience))}settingRandomBackground(){this.cache.setCache("deckboard_random_"+this.user.id,JSON.stringify(this.settings.randomBackground))}selectDeck(e){return R(this,null,function*(){if(this.playerHistoryPoints>=e.points||this.user.Moderator==!0){this.settings.deck=e.id,this.cache.setCache("deckdesign_"+this.user.id,JSON.stringify(e.id)),e.board?this.cache.setCache("deckboard_"+this.user.id,JSON.stringify(e.id)):this.cache.deleteCache("deckboard_"+this.user.id),e.music?this.cache.setCache("deckmusic_"+this.user.id,JSON.stringify(e.music)):this.cache.deleteCache("deckmusic_"+this.user.id);let n=yield ee(this.rest.writeToDBLog(this.user.id,"change_theme",e.id,""));setTimeout(()=>{this.showThemeDialog=!1,this.cache.refreshCardImages(!0)},500)}else this.themePointsDialogMessage1=this.lang.themePointsDialogMessage1+e.points,this.themePointsDialogMessage2=this.lang.themePointsDialogMessage2+this.playerHistoryPoints,this.themePointsDialogMessage3=this.lang.themePointsDialogMessage3,this.showThemePointsDialog=!0})}isDeckDesignSelected(e){let n=this.cache.getCache("deckdesign_"+this.user.id);return!n||n.trim()==""?e=="default":e==JSON.parse(n)}getSelectedDeckDesign(){let e="default",n=this.cache.getCache("deckdesign_"+this.user.id);return n&&n.trim()!==""&&(e=JSON.parse(n)),this.deckDesigns.find(i=>i.id===e)}getDeckButtonClass(e,n){let i="";return this.isDeckDesignSelected(e)&&(i+="deck-button-selected "),n&&this.playerHistoryPoints<n&&(i+="deck-button-disabled-no-points "),i}fullT500Top10=!1;fullT100Top10=!1;sponsors=[];top10alltime=!1;scoresGames=[{key:"tablic",labelKey:"scoresGameTablic"},{key:"memory",labelKey:"memoryGame"},{key:"hl",labelKey:"hlGame"},{key:"tct",labelKey:"tctGame"},{key:"nmm",labelKey:"nmmGame"},{key:"chk",labelKey:"chkGame"},{key:"nlsc",labelKey:"nlscGame"}];scoresSelectedIndex=0;scoresCache={};rulesGamesAll=[{key:"juxtab",labelKey:"juxtabRulesTitle"},{key:"tablic",labelKey:"scoresGameTablic",textKey:"tablanetteRulesText"},{key:"memory",labelKey:"memoryGame",textKey:"memoryRulesText"},{key:"hl",labelKey:"hlGame",textKey:"hlRulesText"},{key:"tct",labelKey:"tctGame",textKey:"tctRulesText"},{key:"nmm",labelKey:"nmmGame",textKey:"nmmRulesText"},{key:"chk",labelKey:"chkGame",textKey:"chkRulesText"},{key:"nlsc",labelKey:"nlscGame",textKey:"nlscRulesText"}];rulesSelectedIndex=0;scoresLoading=!1;scoresShareJustCopied=!1;displayScoreRows=[];displayMetricHeader="";displayShowPlayed=!1;gameModeKontra=!1;showSplash=!1;splashText="";splashImageUrl="";claimPrizesDisabled=!0;showPrizesPopup=!1;showSelectPrizesInPopup=!1;selectPrizesTier;showInviteToConvertGuest=!1;
85checkRegister=!1;regUsername="";regNickname="";regPassword="";regPassword2="";showT500NYPromo=!1;showSplashAnimation(e,n){this.splashText=e,this.splashImageUrl=n,this.showSplash=!0,setTimeout(()=>{this.showSplash=!1},5e3)}userHasUnpickedT500Prizes(){return this.highScoreT500Previous&&this.user?this.highScoreT500Previous.some(e=>e.playerId===this.user.id&&!e.selectedPrizeId):!1}userHasUnpickedT100Prizes(){return this.highScoreT100Previous&&this.user?this.highScoreT100Previous.some(e=>e.playerId===this.user.id&&!e.selectedPrizeId):!1}getFormatedDate(e){return ci(Date.parse(e.slice(0,-1)),"dd MMM yyyy","en")}updateRemainingTime500(){this.remainingTime500=new ze().getRemainingTimeToEndOfMonth(),this.timer500Subscription&&this.timer500Subscription.unsubscribe(),this.updateRemainingTime500_2(),this.timer500Subscription=Ge(1e3).subscribe(()=>{this.updateRemainingTime500_2()})}updateRemainingTime500_2(){this.remainingTime500=new ze().getRemainingTimeToEndOfMonth(),this.t500endsin=this.remainingTime500.days+"d "+this.remainingTime500.hours+"h "+this.remainingTime500.minutes+"m "+this.remainingTime500.seconds+"s",this.t500endsin_short=this.remainingTime500.days+"d "+this.remainingTime500.hours+"h";let e=new ze().getRemainingTimeUntilMidnight3rd();this.t500startsin=e.days+"d "+e.hours+"h "+e.minutes+"m "+e.seconds+"s",this.t500startsin_short=e.days+"d "+e.hours+"h"}updateRemainingTime100(){this.remainingTime100=new Be().getRemainingTimeToEndOfWeek(),this.timer100Subscription&&this.timer100Subscription.unsubscribe(),this.updateRemainingTime100_2(),this.timer100Subscription=Ge(1e3).subscribe(()=>{this.updateRemainingTime100_2()})}updateRemainingTime100_2(){this.remainingTime100=new Be().getRemainingTimeToEndOfWeek(),this.t100endsin=this.remainingTime100.days+"d "+this.remainingTime100.hours+"h "+this.remainingTime100.minutes+"m "+this.remainingTime100.seconds+"s",this.t100endsin_short=this.remainingTime100.days+"d "+this.remainingTime100.hours+"h";let e=new Be().getRemainingTimeUntilMidnightMonday();this.t100startsin=e.days+"d "+e.hours+"h "+e.minutes+"m "+e.seconds+"s",this.t100startsin_short=e.days+"d "+e.hours+"h"}tournamentCardClass(){return this.show2p?"card-game-hide":this.view=="playT500"||this.view=="playT100"||this.selectedCustomTournament!==void 0?"card-t500-exit":""}getT500Top10Icon(){return this.fullT500Top10?"pi pi-angle-up":"pi pi-angle-down"}getT100Top10Icon(){return this.fullT100Top10?"pi pi-angle-up":"pi pi-angle-down"}getT500HighScore(){return this.highScoreT500&&this.highScoreT500.length?this.fullT500Top10?this.highScoreT500:this.highScoreT500.slice(0,3):[]}getT500HighScorePrevious(){return this.highScoreT500Previous}getT100HighScore(){return this.highScoreT100&&this.highScoreT100.length?this.fullT100Top10?this.highScoreT100:this.highScoreT100.slice(0,3):[]}getT100HighScorePrevious(){return this.highScoreT100Previous}isDateBetween1stAnd3rd(){let n=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Belgrade",year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date),i=parseInt(n.find(c=>c.type==="day").value);return i>=1&&i<=3}isMonday(){return new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Belgrade",weekday:"long"}).formatToParts(new Date).find(c=>c.type==="weekday").value.toLowerCase()==="monday"}showSponsorsPopup(e=!1,n=void 0){!e&&this.isDateBetween1stAnd3rd()&&this.user.Moderator!==!0||(this.selectedSponsor=void 0,this.selectPrizesTier=void 0,this.showSelectPrizesInPopup=!1,this.showPrizesPopup=!1,setTimeout(()=>{this.showSelectPrizesInPopup=e,this.userT500PrizesTier(),setTimeout(()=>{n&&(this.selectedSponsor=n),this.showPrizesPopup=!0},1)},1))}showSponsorsPopupT100(e=!1,n=void 0){!e&&this.isMonday()&&this.user.Moderator!==!0||(this.selectedSponsor=void 0,this.selectPrizesTier=void 0,this.showSelectPrizesInPopup=!1,this.showPrizesPopup=!1,setTimeout(()=>{this.showSelectPrizesInPopup=e,this.userT100PrizesTier(),setTimeout(()=>{n&&(this.selectedSponsor=n),this.showPrizesPopup=!0},1)},1))}showSponsorsPopupTest(e=!1,n=void 0){this.user.Moderator==!0&&(this.selectedSponsor=void 0,this.selectPrizesTier=void 0,this.showSelectPrizesInPopup=!1,this.showPrizesPopup=!1,setTimeout(()=>{this.showSelectPrizesInPopup=e,this.selectPrizesTier=1,setTimeout(()=>{this.showPrizesPopup=!0},1)},1))}
85userT500PrizesTier(){if(this.highScoreT500Previous&&this.user){let e=this.highScoreT500Previous.find(n=>n.playerId===this.user.id&&!n.selectedPrizeId);e&&(this.selectPrizesTier=e.placewin)}}userT100PrizesTier(){if(this.highScoreT100Previous&&this.user){let e=this.highScoreT100Previous.find(n=>n.playerId===this.user.id&&!n.selectedPrizeId);e&&(this.selectPrizesTier=e.placewin)}}getSelectedTournamentName(){return this.selectedTournament=this.cache.getCache("selectedTournament"),this.selectedTournament!==""&&this.selectedTournament!==null&&this.selectedTournament!==void 0?this.selectedTournament:""}hasAds(){return!(this.adSvc.ads==null||this.adSvc.ads.length==0)}getAdLogoForButton(){return this.adSvc.ads[0].home_page.media_url}getT500Top3Visible(){return this.highScoreT500&&this.highScoreT500.length&&this.highScoreT500.length>3}getT100Top3Visible(){return this.highScoreT100&&this.highScoreT100.length&&this.highScoreT100.length>3}isNotMobileApp(){return this.deviceDetector.userAgent.indexOf("tablicm")==-1}canPlayT500Tournament(e=!0){return this.isDateBetween1stAnd3rd()?!1:this.user.email.indexOf("Guest")>-1&&this.user.email.indexOf("@tablanette.com")>-1?(e&&(this.t500DialogMessage1=this.lang.t500DialogMessage1,this.showT500Dialog=!0),!1):this.playerHistoryPoints>=500||this.isPaid(this.user.PaidUntil)?!0:(e&&(this.t500DialogMessage1=this.lang.t500DialogMessage2,this.showT500Dialog=!0),!1)}canPlayT100Tournament(e=!0){return this.isMonday()?!1:this.user.email.indexOf("Guest")>-1&&this.user.email.indexOf("@tablanette.com")>-1?(e&&(this.t100DialogMessage1=this.lang.t100DialogMessage1,this.showT500Dialog=!0),!1):this.playerHistoryPoints>=100||this.isPaid(this.user.PaidUntil)?!0:(e&&(this.t100DialogMessage1=this.lang.t100DialogMessage2,this.showT500Dialog=!0),!1)}getPlayerHistoryResult10(){return this.playerHistoryResult.slice(0,10)}getMiniGameStats(){this.user?.id&&this.rest.miniGamePlayerStats(this.user.id).subscribe(e=>{this.miniGameStats=e||[]})}getMiniGameStatsRows(){return t.MINI_GAME_ROWS.map(e=>{let n=this.miniGameStats.find(i=>i.gameKey===e.key);return{key:e.key,labelKey:e.labelKey,wins:n?n.wins:0,plays:n?n.plays:0}})}myScoreLast10Label(){return(this.lang.myScoreLast10||"Last 10 {{game}} Games").split("{{game}}").join(this.lang.gameLabel)}shareMiniGameStats(){if(!this.user?.id)return;let e=this.lang.shareMyStatsText||"Check out my Mini Games stats \u2014 can you beat me?";this.shareSvc.sharePlayer(this.user.id,e).then(n=>{(n==="copied"||n==="shared")&&(this.shareStatsJustCopied=!0,setTimeout(()=>{this.shareStatsJustCopied=!1},2500))})}onScoresGameChange(e){this.scoresSelectedIndex=e,this.ensureScoresLoaded(this.scoresGames[e].key)}get rulesGames(){return this.miniGamesEnabled?this.rulesGamesAll:this.rulesGamesAll.slice(0,2)}onRulesGameChange(e){this.rulesSelectedIndex=e}get selectedRulesGame(){let e=this.rulesGames;return e[this.rulesSelectedIndex]??e[0]}get selectedRulesText(){let e=this.selectedRulesGame.textKey;return e&&this.lang?.[e]||""}ensureScoresLoaded(e){if(e==="tablic"||this.scoresCache[e]){this.recomputeScoreRows();return}this.scoresLoading=!0,Wt({allTime:this.rest.miniGameHighScore(e),last30:this.rest.miniGameHighScoreM(e)}).subscribe({next:n=>{this.scoresCache[e]={allTime:n.allTime||[],last30:n.last30||[]},this.scoresLoading=!1,this.recomputeScoreRows()},error:()=>{this.scoresCache[e]={allTime:[],last30:[]},this.scoresLoading=!1,this.recomputeScoreRows()}})}recomputeScoreRows(){let e=this.scoresGames[this.scoresSelectedIndex];if(!e)return;let n;if(e.key==="tablic")n=this.top10alltime?this.highScore:this.highScoreM;else{let i=this.scoresCache[e.key];n=i?this.top10alltime?i.allTime:i.last30:[]}this.displayScoreRows=$i(e.key,this.top10alltime,n),this.displayMetricHeader=this.metricHeaderFor(e.key),this.displayShowPlayed=e.key==="tablic"&&this.top10alltime}metricHeaderFor(e){return e==="tablic"?this.lang?.points||"Points":Xi(e)==="score"?this.lang?.scoreColScore||"Score":this.lang?.scoreColWins||"Wins"}onScoresShareClick(){let e=this.scoresGames[this.scoresSelectedIndex],n=this.lang?.scoresShareText||"Check out the leaderboard!";this.shareSvc.shareGame(e.key,n).then(i=>{(i==="shared"||i==="copied")&&(this.scoresShareJustCopied=!0,setTimeout(()=>{this.scoresShareJustCopied=!1},2500))})}trackByScoreRow(e,n){return n.id}prizeSelected(e){this.getT500HighScorePreviousFromDB()}checkIfUserIsGuest(){if(this.user.email.indexOf("Guest")>-1&&this.user.email.indexOf("@tablanette.com")>-1){let e=new Date(this.user.DateRegistered.slice(0,-1)),i=Math.abs(new Date().getTime()-e.getTime()),c=Math.ceil(i/(1e3*60*60)),b=Math.ceil(i/(1e3*60));c>=2&&(this.showInviteToConvertGuest=!0)}}doConvertGuest(){return R(this,null,function*(){if(this.checkReg
85ister=!0,this.validateEmail(this.regUsername)&&this.regPassword.length>=5&&this.regUsername.trim()!==""&&this.regNickname!==""&&this.regPassword!==""&&this.regPassword==this.regPassword2){try{let n=yield ee(this.rest.writeToDBLog(this.user.id,"convert_guest",String(this.user.email),this.regUsername))}catch{}this.rest.convertGuest(this.user.id,this.regUsername,this.regPassword,this.regNickname).subscribe(n=>{n.length>0?n[0].error!==void 0?this.showInvalidUserMessage(this.lang.userError2):(this.showValidUserMessage(this.lang.userRegisteredNeedsToActivate),this.regUsername=this.regNickname=this.regPassword=this.regPassword2="",this.showInviteToConvertGuest=!1,window.location.reload()):this.showInvalidUserMessage(this.lang.userError2)},n=>{this.showInvalidUserMessage(this.lang.userError2)})}else this.showInvalidUserMessage(this.lang.passwordDoesntMatch)})}showValidUserMessage(e){this.messageService.add({key:"home",severity:"success",summary:e,sticky:!1})}showInvalidUserMessage(e){this.messageService.add({key:"home",severity:"error",summary:e,sticky:!1})}triggerBottomBannerShow(){setTimeout(()=>{this.adSvc.setShowBanner340x130Bottom(!0)},6e3)}triggerT500Show(){setTimeout(()=>{let e=this.cache.getCache("t500ny_promo_ts_"+this.user.id);(!e||parseInt(e)<new Date().getTime())&&(this.isPaid(this.user.PaidUntil)||this.user.email.indexOf("Guest")==-1&&this.user.email.indexOf("@tablanette.com")==-1&&(this.showT500NYPromo=!0))},1e3)}closeT500NYPromo(e){this.loading=!0,this.showT500NYPromo=!1,this.cache.setCache("t500ny_promo_ts_"+this.user.id,String(new Date().getTime()+720*60*1e3)),e==!0?(this.rest.sendT500PaymentInstructionsEmail(this.user).subscribe(),setTimeout(()=>{this.loading=!1,this.messageService.add({key:"home",sticky:!1,severity:"info",closable:!1,life:3e3,summary:this.lang.emailSent,detail:this.lang.emailSentDetail})},1e3)):this.loading=!1}isPaid(e){try{let n=Date.parse(e);return Date.now()<n}catch{return!1}}showTournaments(e){this.selectedTournament==""||this.selectedTournament==null?this.fadeViewChange(()=>{this.view="tournaments",document.body.style.backdropFilter="grayscale(1) brightness(0.5)",this.cache.setCache("selectedTournament",this.selectedTournament),this.cache.setCache("tournamentView",JSON.stringify(!0)),this.updateRemainingTime500(),this.updateRemainingTime100(),this.loadTournaments()}):this.switchOffTournament()}userIsGuest(){return this.user.email.indexOf("Guest")>-1&&this.user.email.indexOf("@tablanette.com")>-1}tournaments=[];get listedTournaments(){return this.tournaments.filter(e=>this.tCustom.isVisibleInTournamentList(e))}openFriendInvite(){this.user&&!this.userIsGuest()&&this.router.navigate(["/home"],{queryParams:{view:"multiplayer"}})}loadTournaments(){this.rest.tournaments().subscribe(e=>{this.tournaments=e.filter(n=>n.active==!0)})}showBrandTournament(e){this.tCustom.checkAccess(e,this.user.email)&&(this.selectedCustomTournament=e,this.cache.setCache("selectedTournamentObject",JSON.stringify(this.selectedCustomTournament)),this.switchOnTournament(e.id),this.showSplashAnimation(this.tCustom.localizedField(this.selectedCustomTournament,"name",this.currentLangCode),this.selectedCustomTournament.listImage))}consumePendingTournament(){return R(this,null,function*(){let e=(this.cache.getCache("pendingTournamentId")||"").trim();this.cache.deleteCache("pendingTournamentId");try{if(!e)return;if(this.selectedTournament="",this.selectedCustomTournament=void 0,this.cache.deleteCache("selectedTournament"),this.cache.deleteCache("selectedTournamentObject"),this.view="play",e==="playT100"||e==="playT500"){if(this.rest.tournaments().subscribe({next:i=>{this.tournaments=i.filter(c=>c.active==!0)},error:()=>{}}),!this.brandingSvc.isBuiltInBrand()){this.showTournamentLinkUnavailable();return}this.switchOnTournament(e),e==="playT100"?this.showSplashAnimation(this.lang.tournament100mode,"/assets/images/tournament100-card.webp"):this.showSplashAnimation(this.lang.tournament500mode,"/assets/images/tournament500-card.webp");return}this.tournaments=(yield ee(this.rest.tournaments())).filter(i=>i.active==!0);let n=this.tCustom.resolveDirectLink(this.tournaments,e,this.user?.email);n.status==="open"?this.showBrandTournament(n.tournament):this.showTournamentLinkUnavailable()}catch{this.showTournamentLinkUnavailable()}finally{this.openingTournament=!1}})}showTournamentLinkUnavailable(){this.messageService.add({key:"home",severity:"info",sticky:!1,closable:!1,life:3500,summary:this.lang&&this.lang.tournamentLinkUnavailable||"That tournament is not available."})}TCustom=Qe;isPlayView(){return this.view=="play"||this.view=="playT500"||this.view=="playT100"||this.selectedCustomTournament!==void 0&&this.view==this.selectedCustomTournament.id}isRandomDisabled(){return this.view=="playT500"||this.view=="playT100"?!0:this.selectedCustomTournament!==void 0?this.tCustom.isDateBeforeTourn
85amentStart(this.selectedCustomTournament)||this.tCustom.isDateAfterTournamentEnd(this.selectedCustomTournament)?!0:!this.selectedCustomTournament.gameModes.random:!1}isOnePlayerDisabled(){return this.view=="playT500"&&this.isDateBetween1stAnd3rd()||this.view=="playT100"&&this.isMonday()?!0:this.selectedCustomTournament!==void 0?this.tCustom.isDateBeforeTournamentStart(this.selectedCustomTournament)||this.tCustom.isDateAfterTournamentEnd(this.selectedCustomTournament)?!0:!this.selectedCustomTournament.gameModes.onePlayer&&!this.selectedCustomTournament.gameModes.vsAI.to11&&!this.selectedCustomTournament.gameModes.vsAI.to51&&!this.selectedCustomTournament.gameModes.vsAI.to101:!1}isMultiplayerDisabled(){return this.view=="playT500"||this.view=="playT100"?!0:this.selectedCustomTournament!==void 0?this.tCustom.isDateBeforeTournamentStart(this.selectedCustomTournament)||this.tCustom.isDateAfterTournamentEnd(this.selectedCustomTournament)?!0:!this.selectedCustomTournament.gameModes.vsMulti:!1}to11disabled(){return!(this.view=="play"||this.view=="playT100")&&this.selectedCustomTournament==null?!0:this.selectedCustomTournament!==void 0?this.tCustom.isDateBeforeTournamentStart(this.selectedCustomTournament)||this.tCustom.isDateAfterTournamentEnd(this.selectedCustomTournament)?!0:!this.selectedCustomTournament.gameModes.vsAI.to11:!1}to51disabled(){return!(this.view=="play"||this.view=="playT100")&&this.selectedCustomTournament==null?!0:this.selectedCustomTournament!==void 0?this.tCustom.isDateBeforeTournamentStart(this.selectedCustomTournament)||this.tCustom.isDateAfterTournamentEnd(this.selectedCustomTournament)?!0:!this.selectedCustomTournament.gameModes.vsAI.to51:!1}to101disabled(){return!(this.view=="play"||this.view=="playT100"||this.view=="playT500")&&this.selectedCustomTournament==null?!0:this.selectedCustomTournament!==void 0?this.tCustom.isDateBeforeTournamentStart(this.selectedCustomTournament)||this.tCustom.isDateAfterTournamentEnd(this.selectedCustomTournament)?!0:!this.selectedCustomTournament.gameModes.vsAI.to101:!1}isKontraDisabled(){return this.selectedCustomTournament!==void 0&&!this.selectedCustomTournament.gameModes.counter}static \u0275fac=function(n){return new(n||t)(T(rt),T(we),T(he),T(Di),T(lt),T(Se),T(at),T(xi),T(ge),T(fi),T(_i),T(gi),T(yt),T(zi),T(pt))};static \u0275cmp=K({type:t,selectors:[["app-home"]],viewQuery:function(n,i){if(n&1&&(Y(dr,5),Y(cr,5)),n&2){let c;W(c=j())&&(i.playerDeal=c.first),W(c=j())&&(i.headerInfo=c.first)}},features:[de([ge])],decls:18,vars:14,consts:[["playerdeal",""],["headerComponent",""],["headerInfo",""],["otherGameRules",""],["adPanel",""],["cd",""],[3,"acceptLabel","acceptIcon","rejectLabel","closable","closeOnEscape","dismissableMask","style",4,"ngIf"],["key","home","position","top-center"],["styleClass","engagement-consent-dialog",3,"visible","modal","closable","closeOnEscape","dismissableMask","draggable","baseZIndex","autoZIndex","style","visibleChange",4,"ngIf"],[3,"header","modal","visible","closable","closeOnEscape","draggable","baseZIndex","autoZIndex","style","visibleChange",4,"ngIf"],["id","loading","class","spinner-wrap",4,"ngIf"],[3,"modal","visible","closable","closeOnEscape","draggable","baseZIndex","autoZIndex","style","visibleChange",4,"ngIf"],["class","splash-screen",4,"ngIf"],[3,"_selectedSponsor","sponsors","showPrizes","prizeTier","T100","T500","selectPrizes","prizeSelected","closePopup",4,"ngIf"],["controls","","hidden","","preload","auto"],["src","/assets/soundfx/dealing2.mp3","type","audio/mpeg"],[4,"ngIf"],[1,"view-fade-wrapper"],["class","header-info","id","headerInfo",3,"ngStyle",4,"ngIf"],["class","header-info-2p","id","headerInfo2p",4,"ngIf"],["data-help-shot","random-player","class","card-game-start multiplayer-random",3,"ngClass","multiplayer-random-4","mouseenter","mouseleave","click",4,"ngIf"],["data-help-shot","single-player","class","card-game-start one-player",3,"ngClass","one-player-4","mouseenter","mouseleave","click",4,"ngIf"],["data-help-shot","multiplayer","class","card-game-start multiplayer",3,"ngClass","multiplayer-4","mouseenter","mouseleave","click",4,"ngIf"],["data-help-shot","tournaments","class","card-game-start tournament",3,"ngClass","tournament-4","mouseenter","mouseleave","click",4,"ngIf"],["data-help-shot","mini-games","class","card-game-start mini-games",3,"ngClass","mouseenter","mouseleave","click",4,"ngIf"],["class","panel-onthehomepage",4,"ngIf"],["class","panel-onthehomepage","style","align-content: center;",4,"ngIf"],["class","high-score",4,"ngIf"],["class","high-score",3,"lang","brandTournament","user","connectedUsers","miniGameClick",4,"ngIf"],[3,"canInviteGuest","lang","user","connectedUsers","showSearch","brandTournament","inviteGuest","onStartGameDialog","setLabel","showInviteToRegister","loadingChange",4,"ngIf"],["id","headerInfo",1,"header-info",3,"ngStyle"],["id","headerInfo2p",1,"header-info-2p"],["pButton","","pRipple","","type","button","severity","warn","class","button-back",3,"label","rounded","click",4,"ngIf"],[1,"header-info-2p-label"],["pButton","","pRipple","","type","button","severity","warn",1,"button-back",3,"click","label","rounded"],["data-help-shot","random-player",1,"card-game-start","multiplayer-random",3,"mouseenter","mouseleave","click","ngClass"],["data-help-shot","single-player",1,"card-game-start","one-player",3,"mouseenter","mouseleave","click","ngClass"],["data-help-shot","multiplayer",1,"card-game-start","multiplayer",3,"mouseenter","mouseleave","click","ngClass"],["data-help-private","","class","multiplayer-invite-badge",4,"ngIf"],["data-help-private","",1,"multiplayer-invite-badge"],["data-help-shot","tournaments",1,"card-game-start","tournament",3,"mouseenter","mouseleave","click","ngClass"],["data-help-shot","mini-games",1,"card-game-start","mini-games",3,"mouseenter","mouseleave","click","ngClass"],[1,"panel-onthehomepage"],[1,"stroked-text",2,"color","#fff"],["pButton","","pRipple","","type","button","severity","info",2,"margin-bottom","16px",3,"click","label","icon","rounded"],[1,"panel-setting-column",2,"width","unset"],[1,"history-header"],["alt","Image","width","160","height","160",1,"history-profile",3,"src"],[1,"history-summary"],[1,"history-summary-row-h"],[1,"history-summary-row"],[1,"myscore-columns"],[1,"high-score-inner"],[1,"card-panel-vertical","card-home"],[1,"card-panel-title-flex",2,"color","var(--brand-primary)"],[1,"pi","pi-history",2,"color","var(--brand-primary)"],[1,"high-score-results-table","history-table",2,"margin-top","10px","width","280px !important"],[1,"high-score-wf-td2"],[1,"high-score-wf-td2","history-table-wf-middle"],[1,"high-score-wf-td2","high-score-wf-td3",2,"padding-right","0"],[4,"ngFor","ngForOf"],[1,"pi","pi-prime",2,"color","var(--brand-primary)"],[1,"high-score-results-table",2,"margin-top","10px","width","280px !important"],[1,"high-score-wf-td2","high-score-wf-td3"],[1,"history-table-wf"],["src","/assets/images/trophy_small.png","style","height: 18px;vertical-align: middle;margin-right: 0",4,"ngIf"],[1,"history-table-wf",2,"font-family","'Roboto', sans-serif","font-size","12px"],[1,"history-table-wf","history-table-wf-middle",2,"font-size","1rem"],[1,"history-table-result",2,"padding-right","0"],["src","/assets/images/trophy_small.png",2,"height","18px","vertical-align","middle","margin-right","0"],[1,"high-score-wf"],[1,"high-score-result"],[1,"high-score-result","high-score-result2",2,"padding-right","0"],[1,"panel-setting"],["onLabel","On","offLabel","Off",1,"setting-button",3,"ngModelChange","onChange","ngModel"],[1,"panel-setting-column",2,"width","100%","align-items","center"],[1,"image-select-content-item"],[1,"deck-button",3,"ngClass","ngStyle"],[1,"deck-name"],[1,"deck-music"],["class","deck-points",4,"ngIf"],[1,"theme-description"],["pButton","","pRipple","","type","button","severity","warn","class","button-theme",3,"label","rounded","click",4,"ngIf"],["class","panel-setting","style","margin-top: 20px;",4,"ngIf"],[1,"deck-points"],["src","/assets/coin-icons/small/premium.png","referrerpolicy","no-referrer",1,"coin-points"],["pButton","","pRipple","","type","button","severity","warn",1,"button-theme",3,"click","label","rounded"],[1,"panel-setting",2,"margin-top","20px"],[1,"panel-onthehomepage",2,"align-content","center"],[1,"tournament-header"],[1,"stroked-text",2,"color","#fff","margin-top","6px"],[1,"tournament-content",2,"width","100%","align-items","center","padding-top","10px","padding-bottom","30px"],["src","/assets/images/trophy_small.png",2,"width","48px","height","auto"],["class","tournament-content-item",3,"margin-top",4,"ngIf"],["class","tournament-content-item",4,"ngIf"],["src","/assets/coin-icons/small/premium-diamond.png","style","margin-top: 40px;width: 48px;
85height: auto",4,"ngIf"],["class","tournament-content-item",3,"margin-top",4,"ngFor","ngForOf"],["class","card-panel-vertical","style","background-color: #fff;color: #0b0b31;max-width: 300px;margin-top: 50px;",4,"ngIf"],["class","card-panel-vertical card-home","style","max-width: 300px;margin-top: 20px;",4,"ngIf"],[1,"tournament-content-item"],[1,"tournament-trophy"],["src","/assets/images/tournament100-card.webp",3,"click"],[1,"tournament-button","tournament-button-100",3,"click"],[1,"tournament-name"],[1,"tournament-table"],[1,"tournament-description"],[1,"unavailable-icon"],[1,"online-icon"],["src","/assets/images/tournament500-card.webp",3,"click"],[1,"tournament-button","tournament-button-500",3,"click"],["src","/assets/coin-icons/small/premium-diamond.png",2,"margin-top","40px","width","48px","height","auto"],["class","tournament-lock-icon",3,"ngClass",4,"ngIf"],[3,"click","src"],[1,"tournament-button","tournament-button-brand-template",3,"click"],[1,"tournament-lock-icon",3,"ngClass"],[1,"card-panel-vertical",2,"background-color","#fff","color","#0b0b31","max-width","300px","margin-top","50px"],[1,"card-panel-body-vflex",2,"padding-top","10px","padding-bottom","0px"],[1,"card-panel-body-vflex",2,"padding-top","10px","padding-bottom","10px"],["class","menu-button-ad",3,"src","alt",4,"ngFor","ngForOf"],[1,"menu-button-ad",3,"src","alt"],[1,"card-panel-vertical","card-home",2,"max-width","300px","margin-top","20px"],[1,"card-panel-title-flex",2,"font-family","'Roboto', sans-serif","color","#5a5c5f","font-size","0.8rem"],["style","text-decoration: none;color: #5a5c5f;font-size: 0.8rem;","href","https://advertise.tablanette.com/","target","_blank",4,"ngIf"],["alt","Sponsor",1,"menu-button-ad",3,"click","src"],["href","https://advertise.tablanette.com/","target","_blank",2,"text-decoration","none","color","#5a5c5f","font-size","0.8rem"],[1,"high-score"],[1,"high-score-inner","lbl-main-left-panel"],["class","card-panel-vertical card-home invite-nudge-panel mini-games-panel--enter",4,"ngIf"],["type","button","class","card-panel-vertical card-home engagement-recommendation-panel mini-games-panel--enter",3,"click",4,"ngIf"],["class","card-panel-vertical card-home lbl-mini-games mini-games-panel--enter","style","",4,"ngIf"],["scope","home",1,"home-chat",3,"lang"],[3,"ngTemplateOutlet",4,"ngIf"],[1,"scores-header"],[1,"scores-header__title"],["pButton","","type","button",1,"p-button-sm","scores-share-btn",3,"click","disabled"],[1,"pi",2,"margin-right","6px",3,"ngClass"],[3,"selectedIndexChange","lang","games","selectedIndex"],[2,"width","100%","display","flex","justify-content","center","gap","16px","align-items","center"],[3,"ngStyle"],[1,"custom-switch",3,"ngModelChange","ngModel"],[1,"high-score-wf-td1"],[2,"height","40px","vertical-align","middle",3,"src"],[2,"font-size","0.5em"],[1,"high-score-wf-td2",2,"padding","0","text-align","left"],["class","high-score-wf-td2 high-score-wf-td3 high-score-wf-td4","style","padding-right: 0;",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["style","margin-top: 8px; color: var(--brand-primary); font-size: 13px; text-align: center;",4,"ngIf"],[1,"pi","pi-receipt",2,"color","var(--brand-primary)"],["style","margin-top: 10px;",3,"lang","games","selectedIndex","selectedIndexChange",4,"ngIf"],[2,"font-family","'Roboto', sans-serif","font-size","12px"],[3,"lang",4,"ngIf","ngIfElse"],[1,"card-panel-vertical","card-home","invite-nudge-panel","mini-games-panel--enter"],["type","button",1,"invite-nudge-panel__main",3,"click"],["aria-hidden","true",1,"invite-nudge-panel__icon","pi","pi-users"],[1,"invite-nudge-panel__copy"],["aria-hidden","true",1,"invite-nudge-panel__arrow","pi","pi-arrow-right"],["type","button",1,"invite-nudge-panel__dismiss",3,"click"],["aria-hidden","true",1,"pi","pi-times"],["type","button",1,"card-panel-vertical","card-home","engagement-recommendation-panel","mini-games-panel--enter",3,"click"],[1,"card-panel-title-flex","engagement-recommendation-panel__title"],["aria-hidden","true",1,"pi","pi-sparkles"],[1,"engagement-recommendation-panel__content"],["aria-hidden","true",1,"engagement-recommendation-panel__game-icon","pi","pi-play"],[1,"engagement-recommendation-panel__copy"],["aria-hidden","true",1,"engagement-recommendation-panel__arrow","pi","pi-arrow-right"],[1,"card-panel-vertical","card-home","lbl-mini-games","mini-games-panel--enter"],["mode","click",3,"gameClick","lang"],[3,"ngTemplateOutlet"],[1,"high-score-wf-td2","high-score-wf-td3","high-score-wf-td4",2,"padding-right","0"],[1,"high-score-status-row"],["style","color: var(--brand-primary);",4,"ngIf"],["class","online-icon",4,"ngIf"],["class","offline-icon",4,"ngIf"],["src","/assets/images/trophy_small.png","style","height: 26p
85x;vertical-align: middle;margin-right: 3px",4,"ngIf"],["src","/assets/images/trophy_small_2.png","style","height: 23px;vertical-align: middle;margin-right: 5px",4,"ngIf"],["src","/assets/images/trophy_small_3.png","style","height: 20px;vertical-align: middle;margin-right: 7px",4,"ngIf"],["class","high-score-result high-score-result2","style","padding-right: 0;",4,"ngIf"],[2,"color","var(--brand-primary)"],[1,"offline-icon"],["src","/assets/images/trophy_small.png",2,"height","26px","vertical-align","middle","margin-right","3px"],["src","/assets/images/trophy_small_2.png",2,"height","23px","vertical-align","middle","margin-right","5px"],["src","/assets/images/trophy_small_3.png",2,"height","20px","vertical-align","middle","margin-right","7px"],[2,"margin-top","8px","color","var(--brand-primary)","font-size","13px","text-align","center"],[2,"margin-top","10px",3,"selectedIndexChange","lang","games","selectedIndex"],[3,"lang"],[1,"rules-list",3,"innerHTML"],["class","card-panel",4,"ngIf"],[1,"card-panel",2,"padding","10px","padding-top","0","padding-bottom","26px"],[1,"high-score-results-table",2,"margin-top","20px"],["colspan","4",1,"high-score-wf-td1"],[1,"high-score-wf-td1-flex"],["src","/assets/images/trophy_small.png",2,"height","40px","vertical-align","middle"],["pButton","","pRipple","","type","button","severity","warn","class","button-t500-expand",3,"icon","rounded","click",4,"ngIf"],[1,"card-panel-title-flex",2,"color","#c1c1c1","font-size","16px"],["icon","pi pi-refresh","severity","secondary",1,"button-t500-refresh",3,"click","rounded","text"],[1,"card-panel-vertical",2,"background-color","#fff","color","#0b0b31"],[3,"value","numVisible","numScroll","autoplayInterval","circular",4,"ngIf"],["pButton","","pRipple","","type","button","severity","info",1,"brand-btn-keep",2,"color","#fff",3,"click","disabled","rounded"],[1,"card-panel-vertical"],[1,"card-panel-title-flex",2,"color","#fff"],[1,"pi","pi-trophy",2,"color","var(--brand-accent)",3,"click"],[1,"card-panel-title-flex",2,"color","#c1c1c1","margin-top","6px"],[1,"high-score-results-table",2,"margin-top","20px","width","280px !important"],["pButton","","pRipple","","type","button","severity","info",1,"brand-btn-keep",2,"color","#fff","display","flex","flex-direction","column","gap","0px","padding-bottom","16px","margin-top","10px",3,"click","disabled","ngClass","rounded"],["src","/assets/images/prize_64.webp",2,"height","60px","width","auto",3,"ngStyle"],[1,"card-panel-title-flex",2,"color","var(--brand-accent)"],[1,"pi","pi-receipt",2,"color","var(--brand-accent)"],[1,"card-panel"],[2,"color","var(--brand-accent)"],[1,"pi","pi-clock",2,"color","var(--brand-accent)"],["pButton","","pRipple","","type","button","severity","warn",1,"button-t500-expand",3,"click","icon","rounded"],["colspan","4",1,"high-score-result","high-score-result2",2,"padding-right","0","text-align","center","font-size","0.8em","color","#c1c1c1"],[1,"high-score-status-row",2,"margin-top","3px","padding-top","4px","border-top","1px dashed #fff"],[1,"high-score-wf",2,"margin-top","0px","padding-top","6px","border-top","1px dashed #fff"],[1,"high-score-result",2,"margin-top","3px","padding-top","0px","border-top","1px dashed #fff"],[1,"high-score-result","high-score-result2",2,"margin-top","3px","padding-top","3px","border-top","1px dashed #fff","padding-right","0"],[3,"value","numVisible","numScroll","autoplayInterval","circular"],["pTemplate","item"],[1,"w-full","border-round",2,"cursor","pointer","height","100px","vertical-align","middle","object-fit","contain",3,"click","src","alt"],["class","card-panel card-t100",4,"ngIf"],[1,"card-panel","card-t100",2,"padding","10px","padding-top","0","padding-bottom","26px"],[1,"card-panel-vertical","card-t100",2,"background-color","#fff","color","#0b0b31"],["pButton","","pRipple","","type","button","severity","success",1,"brand-btn-keep",2,"color","#fff",3,"click","disabled","rounded"],[1,"card-panel-vertical","card-t100"],["pButton","","pRipple","","type","button","severity","success",1,"brand-btn-keep",2,"color","#fff","display","flex","flex-direction","column","gap","0px","padding-bottom","16px","margin-top","10px",3,"click","disabled","ngClass","rounded"],[1,"card-panel","card-t100"],[1,"high-score",3,"miniGameClick","lang","brandTournament","user","connectedUsers"],[3,"inviteGuest","onStartGameDialog","setLabel","showInviteToRegister","loadingChange","canInviteGuest","lang","user","connectedUsers","showSearch","brandTournament"],[3,"acceptLabel","acceptIcon","rejectLabel","closable","closeOnEscape","dismissableMask"],["pTemplate","footer"],["type","button","pButton","","severity","danger",1,"confirm-button",3,"click","label","rounded"],["type","button","pButton","","severity","success",1,"confirm-button",3,"click","label","rounded"],["styleClass","engagement-consent-dialog",3,"visibleChange","visible","modal","closable","closeOnEscape","dismissableMask","draggable","baseZIndex","autoZIndex"],["pTemplate","header"],[1,"engagement-consent-dialog__content"],["class","engagement-consent-dialog__error","role","alert",4,"ngIf"],[1,"engagement-consent-dialog__header"],["aria-hidden","true",1,"pi","pi-envelope"],["role","alert",1,"engagement-consent-dialog__error"],[1,"engagement-consent-dialog__actions"],["type","button","pButton","","severity","secondary",3,"click","outlined","rounded","disabled","label"],["type","button","pButton","","severity","success",3,"click","rounded","loading","label"],[3,"visibleChange","header","modal","visible","closable","closeOnEscape","draggable","baseZIndex","autoZIndex"],["type","button","pButton","","severity","danger",3,"click","label","rounded"],["type","button","pButton","","severity","success",3,"click","label","rounded"],["class","p-field","style","width: 100%; margin-top: 12px",4,"ngIf"],[1,"p-field",2,"width","100%","margin-top","12px"],["id","email","placeholder","E-mail","type","email","aria-describedby","email-help","pInputText","","autocomplete","email",2,"width","100%","color","#000",3,"ngModelChange","ngModel"],["type","button","pButton","","severity","success",3,"disabled","label","rounded","click",4,"ngIf"],["type","button","pButton","","severity","success",3,"click","disabled","label","rounded"],["id","loading",1,"spinner-wrap"],["class","w-4rem h-4rem","strokeWidth","8","fill","transparent","animationDuration","500s",4,"ngIf"],["style","font-size: 28px; margin-top: 1rem;",4,"ngIf"],["strokeWidth","8","fill","transparent","animationDuration","500s",1,"w-4rem","h-4rem"],[2,"font-size","28px","margin-top","1rem"],["type","button","pButton","","severity","warn",3,"label","rounded","click",4,"ngIf"],["type","button","pButton","","severity","success",3,"label","rounded","click",4,"ngIf"],["type","button","pButton","","severity","warn",3,"click","label","rounded"],[3,"lang","value","kontraDisabled","allowJuxtab","valueChange",4,"ngIf"],[1,"game-mode-btn-wrapper"],[1,"game-mode-wrapper"],["type","button","pButton","","severity","warn",1,"game-mode-btn",3,"click","disabled","label","ngStyle","rounded"],[1,"game-mode-points"],["src","/assets/coin-icons/small/premium.png",2,"width","16px","height","16px"],[3,"valueChange","lang","value","kontraDisabled","allowJuxtab"],["type","button","pButton","","severity","success",2,"font-size","24px",3,"click","label","rounded"],[3,"visibleChange","modal","visible","closable","closeOnEscape","draggable","baseZIndex","autoZIndex"],[1,"image-select-content"],["class","image-select-content-item",3,"click",4,"ngFor","ngForOf"],[1,"image-select-content-item",3,"click"],[1,"deck-name",2,"text-align","left"],[2,"color","green"],[2,"color","darkred"],[1,"card-container"],[1,"p-form-field"],["for","username2",1,"p-label"],["id","username2","type","email","aria-describedby","username2-help","pInputText","","autocomplete","email",1,"p-input",3,"ngModelChange","ngModel"],["id","username2-help","class","p-error-block",4,"ngIf"],["for","nickname",1,"p-label"],["maxlength","15","id","nickname","type","text","aria-describedby","nickname-help","pInputText","","autocomplete","username",1,"p-input",3,"ngModelChange","minlength","ngModel"],["id","nickname-help","class","p-error-block",4,"ngIf"],["id","nickname-help2","class","p-error-block",4,"ngIf"],["for","password2",1,"p-label"],["id","password2","type","password","aria-describedby","password2-help","pInputText","","autocomplete","new-password",1,"p-input",3,"ngModelChange","ngModel","minlength"],["id","password2-help","class","p-error-block",4,"ngIf"],["for","password3",1,"p-label"],["id","password3","type","password","aria-describedby","password3-help","pInputText","","autocomplete","new-password",1,"p-input",3,"ngModelChange","ngModel"],["id","password3-help","class","p-error-block",4,"ngIf"],["id","username2-help",1,"p-error-block"],["id","nickname-help",1,"p-error-block"],["id","nickname-help2",1,"p-error-block"],["id","password2-help",1,"p-error-block"],["id","password3-help",1,"p-error-block"],[1,"splash-screen"],[1,"vertical-flex","
85splash-content"],[1,"splash-text",2,"text-align","center"],[1,"splash-logo",3,"src"],[3,"prizeSelected","closePopup","_selectedSponsor","sponsors","showPrizes","prizeTier","T100","T500","selectPrizes"]],template:function(n,i){n&1&&(Z(0,xs,20,21),h(1,bs,3,9,"p-confirmDialog",6),_(2,"p-toast",7),h(3,Ts,9,14,"p-dialog",8)(4,Is,4,13,"p-dialog",9)(5,Es,6,14,"p-dialog",9)(6,Os,2,0,"div",10)(7,zs,6,15,"p-dialog",9)(8,Gs,22,33,"p-dialog",9)(9,qs,5,11,"p-dialog",11)(10,Zs,10,15,"p-dialog",9)(11,Js,3,13,"p-dialog",9)(12,nd,27,28,"p-dialog",9)(13,od,5,2,"div",12)(14,ad,1,7,"app-prizes-popup",13),r(15,"audio",14,0),_(17,"source",15),a()),n&2&&(Q(i.openingTournament?-1:0),o(),l("ngIf",i.lang!==void 0),o(2),l("ngIf",i.lang!==void 0),o(),l("ngIf",i.showInvitationDialog),o(),l("ngIf",i.showInviteToRegister),o(),l("ngIf",i.loading||i.openingTournament),o(),l("ngIf",i.showWaitingDialog),o(),l("ngIf",i.showGameLengthDialog),o(),l("ngIf",i.showThemeDialog),o(),l("ngIf",i.showThemePointsDialog),o(),l("ngIf",i.showT500Dialog),o(),l("ngIf",i.showInviteToConvertGuest),o(),l("ngIf",i.showSplash),o(),l("ngIf",i.showPrizesPopup))},dependencies:[re,mi,ae,ue,ot,nt,wt,De,ke,Ee,_t,xt,Oe,Ie,fe,wi,Te,ut,Pe,ct,dt,Hi,Fi,Tt,Bi,ht,Me,ki,Mi,ft,gt,Ji,He,Fe,mt,Ve,_e,Ni,Wi,Pn,St,Ei,vt,Yi,Cn,In,ji],styles:['@charset "UTF-8";.menu-button-ad[_ngcontent-%COMP%]{max-height:100px;vertical-align:middle;object-fit:contain;cursor:pointer}.spinner-wrap[_ngcontent-%COMP%]{position:absolute;top:calc(50svh - 50px);left:calc(50svw - 50px);z-index:9999999}.header-info[_ngcontent-%COMP%]{position:absolute;top:320px;width:300px;height:auto;z-index:999999;left:calc(50% - 150px);text-align:center;font-weight:400;font-size:1.3em;color:var(--brand-primary);margin-top:var(--brand-header-info-offset, 0px)}@media only screen and (max-height: 936px),only screen and (max-width: 700px){.header-info[_ngcontent-%COMP%]{margin-top:calc(var(--brand-header-info-offset, 0px) * .3)}}.header-info-2p[_ngcontent-%COMP%]{position:absolute;top:90px;width:340px;height:50px;z-index:999999;left:calc(50% - 170px);text-align:center;font-weight:400;font-size:1.5em;color:var(--brand-primary);display:flex;flex-direction:row;justify-content:center}.header-info-2p-label[_ngcontent-%COMP%]{padding-top:6px}.button-back[_ngcontent-%COMP%]{z-index:401;font-size:26px;margin-right:10px}.button-mp[_ngcontent-%COMP%]{z-index:401;font-size:18px;margin-right:10px}.multiplayer-tabs[_ngcontent-%COMP%]{position:absolute;top:150px;left:calc(50svw - 180px);width:360px;display:flex;flex-direction:row;justify-content:center}.panel-onthehomepage[_ngcontent-%COMP%]{position:absolute;padding-left:20px;padding-right:20px;padding-bottom:40px;top:90px;height:calc(100svh - 190px - var(--safe-bottom));display:flex;align-items:center;font-size:12pt;overflow-y:auto;overflow-x:hidden;transform-origin:top}.panel-setting[_ngcontent-%COMP%]{width:300px;color:var(--brand-primary);font-size:22px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:10px 0}.setting-button[_ngcontent-%COMP%]   .p-button[_ngcontent-%COMP%]{margin-bottom:0!important;width:80px!important}.panel-setting-column[_ngcontent-%COMP%]{color:var(--brand-primary);font-size:22px;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:10px 0}.button-theme[_ngcontent-%COMP%]{font-size:18px}.image-select-content[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:row;justify-content:center;gap:2em;flex-wrap:wrap;margin-top:1em;margin-bottom:1em}.image-select-content-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;gap:1em;color:#fff;font-size:18px}.theme-description[_ngcontent-%COMP%]{font-size:18px;margin:1em}.deck-select-card[_ngcontent-%COMP%]{width:64px;border-radius:6px;box-shadow:0 0 6px #323232}.deck-select-card-l[_ngcontent-%COMP%]{transform:rotate(0)}.deck-select-card-r[_ngcontent-%COMP%]{transform:rotate(3deg)}.deck-select-card-checked[_ngcontent-%COMP%]{width:48px;height:48px;margin:auto}.deck-button[_ngcontent-%COMP%]{display:block;background-position:center;width:300px;height:200px;overflow:hidden;border-radius:16px;border:4px solid lightgray;box-shadow:0 0 6px #d3d3d3;padding:10px;cursor:pointer}.deck-button-selected[_ngcontent-%COMP%]{border:4px solid var(--brand-primary);box-shadow:0 0 16px var(--brand-primary)}.deck-button-disabled-no-points[_ngcontent-%COMP%]{cursor:not-allowed}
85.deck-name[_ngcontent-%COMP%]{color:#e37700}.deck-points[_ngcontent-%COMP%]{color:var(--brand-primary);position:relative;top:-20px;left:0;display:flex;flex-direction:row;justify-content:left}.deck-music[_ngcontent-%COMP%]{color:#e37700;position:relative;top:126px;right:24px;text-align:right}.deck-select-card-checked-hidden[_ngcontent-%COMP%]{visibility:hidden}.p-form-field[_ngcontent-%COMP%]{display:block!important;width:100%;font-size:16px}.p-label[_ngcontent-%COMP%]{display:block!important;width:100%;font-size:16px;text-align:left}.p-input[_ngcontent-%COMP%]{display:block!important;width:100%;font-size:16px}.p-error-block[_ngcontent-%COMP%]{display:block!important;color:var(--brand-danger);font-size:12px;text-align:left;width:100%}.confirm-button[_ngcontent-%COMP%]{width:40%}.coin[_ngcontent-%COMP%]{width:32px;height:32px;text-align:center;color:#fff;position:relative;top:10px;left:110px;background-size:100% 100%!important;cursor:pointer;font-size:1.5rem;line-height:1.8rem}.coin-silver[_ngcontent-%COMP%]{background:transparent url(/assets/coin-icons/small/limit-singleplayer.png) center no-repeat}.coin-gold[_ngcontent-%COMP%]{background:transparent url(/assets/coin-icons/small/limit-multiplayer.png) center no-repeat}.coin-silver-infinite[_ngcontent-%COMP%]{background:transparent url(/assets/coin-icons/small/no-limit-singleplayer.png) center no-repeat}.coin-gold-infinite[_ngcontent-%COMP%]{background:transparent url(/assets/coin-icons/small/no-limit-multiplayer.png) center no-repeat}.coin-points[_ngcontent-%COMP%]{width:20px;height:20px;text-align:center;color:#fff;background-size:100% 100%!important;cursor:pointer;font-size:1.5rem;line-height:1.8rem;vertical-align:middle;margin-right:4px;align-self:center}  .online-icon{color:#4caf50;font-size:18px;padding-top:3px}  .offline-icon{color:#9696964d;font-size:18px;padding-top:3px}  .unavailable-icon{color:var(--brand-primary);font-size:18px;padding-top:3px}  .p-togglebutton.p-button.p-highlight{background:green;border-color:green}.splash-screen[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-around;background-color:#000c;position:absolute;left:0;top:0;width:100svw;height:100svh;overflow:hidden;z-index:99999999;color:#fff;animation:_ngcontent-%COMP%_hideAnimation ease 5s;animation-iteration-count:1;animation-fill-mode:forwards}@keyframes _ngcontent-%COMP%_hideAnimation{0%{opacity:1}80%{opacity:1}to{opacity:0;display:none}}.splash-content[_ngcontent-%COMP%]{min-height:150px}.splash-logo[_ngcontent-%COMP%]{border-radius:10px;align-self:center;width:90svw;max-width:152px;height:auto;animation:_ngcontent-%COMP%_zoomInAnimation ease 3s;animation-iteration-count:1;animation-fill-mode:forwards}@keyframes _ngcontent-%COMP%_zoomInAnimation{0%{scale:.7}to{scale:1}}.splash-text[_ngcontent-%COMP%]{max-width:300px;font-size:20px;color:var(--brand-accent);margin-bottom:20px;align-self:center;text-shadow:6px 6px 6px rgba(255,255,255,.35)}.vertical-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.shimmer-box[_ngcontent-%COMP%]{--border-angle: 0turn;--main-bg: conic-gradient(from var(--border-angle), #0288d1);border:solid 5px transparent;border-radius:2em;--gradient-border: conic-gradient(from var(--border-angle), transparent 25%, var(--brand-primary), var(--brand-accent), white 99%);box-shadow:10px 10px 10px #0009;background:var(--main-bg) padding-box,var(--gradient-border) border-box,var(--main-bg) border-box;background-position:center center;animation:_ngcontent-%COMP%_bg-spin 3s linear infinite}@keyframes _ngcontent-%COMP%_bg-spin{to{--border-angle: 1turn}}.shimmer-box-green[_ngcontent-%COMP%]{--gradient-border: conic-gradient(from var(--border-angle), transparent 25%, #4ef692, white 99%) !important}.shimmer-box-blue[_ngcontent-%COMP%]{--gradient-border: conic-gradient(from var(--border-angle), transparent 25%, #4DA3FF, white 99%) !important}@property --border-angle{syntax: "<angle>"; inherits: true; initial-value: 0turn;}.tournament-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:10px 0;gap:0}.tournament-content-item[_ngcontent-%COMP%]{display:block;position:relative;width:320px;height:140px;margin-top:20px}.tournament-button[_ngcontent-%COMP%]{display:block;background-position:center;width:320px;height:100px;overflow:hidden;border-radius:50px;padding:10px;position:absolute;bottom:30px;cursor:pointer;z-index:1}
85.tournament-name[_ngcontent-%COMP%]{position:relative;top:-9px;left:90px;font-size:20px;font-family:Roboto;font-weight:700;paint-order:stroke fill;-webkit-text-stroke:4px rgb(0,0,0);display:flex;flex-direction:column;justify-content:center;width:78px;height:90px;overflow:hidden;padding:2px}.tournament-table[_ngcontent-%COMP%]{position:absolute;top:20px;right:12px;font-size:12px;font-family:Roboto;color:#fff}.tournament-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.tournament-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(2){text-align:left;vertical-align:middle;height:22px}.tournament-trophy[_ngcontent-%COMP%]{position:absolute;top:0;left:20px;z-index:2;filter:drop-shadow(0 0 .75rem #4A0E4E) saturate(2);transform:skew(-.02turn,2deg)}.tournament-trophy[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:95px;width:auto;border-radius:20%;cursor:pointer}.tournament-lock-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/lock32.png);background-repeat:no-repeat;background-position:center;background-size:cover;position:absolute;top:0;right:0;height:43px;width:43px;z-index:2;filter:drop-shadow(0px 10px 4px #000)}.tournament-lock-icon-unlocked[_ngcontent-%COMP%]{background-image:url(/assets/images/lock32open.png)!important}.tournament-button-100[_ngcontent-%COMP%]{background-color:#0d371d!important;border:4px solid #4ef692;box-shadow:0 0 6px #d3d3d3;color:#e9fff2}.tournament-button-500[_ngcontent-%COMP%]{background-color:#26154c!important;border:4px solid #4DA3FF;box-shadow:0 0 6px #d3d3d3;color:#eaf2ff}.tournament-button-brand-template[_ngcontent-%COMP%]{border:4px solid;box-shadow:0 0 6px #d3d3d3;color:#e9fff2}.tournament-description[_ngcontent-%COMP%]{font-size:12px;font-family:Roboto;color:#fff;position:absolute;top:116px;left:0;width:320px;text-align:center;display:flex;justify-content:center;align-items:flex-end;z-index:0;padding-bottom:5px}.tournament-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;width:100%;height:50px}.stroked-text[_ngcontent-%COMP%]{-webkit-text-stroke:4px rgb(0,0,0);paint-order:stroke fill}.start-game-footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:10px}.game-mode-points[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:4px;align-items:center;font-size:14px}.mini-games-panel--enter[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_mini-games-panel-enter .28s cubic-bezier(.4,0,.2,1) both}@keyframes _ngcontent-%COMP%_mini-games-panel-enter{0%{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion: reduce){.mini-games-panel--enter[_ngcontent-%COMP%]{animation:mini-games-panel-enter-reduced .12s ease-out both}@keyframes mini-games-panel-enter-reduced{0%{opacity:0}to{opacity:1}}}.lbl-mini-games[_ngcontent-%COMP%]{position:relative;padding:16px 16px 0!important}.lbl-mini-games[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;border:3px solid transparent;border-radius:inherit;pointer-events:none;opacity:0}.lbl-mini-games.mini-games-panel--ripple[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_mini-games-panel-ripple .6s ease-out}@keyframes _ngcontent-%COMP%_mini-games-panel-ripple{0%{inset:0;border-color:#fffffff2;border-radius:16px;opacity:1}to{inset:14px;border-color:#fff0;border-radius:4px;opacity:0}}.myscore-columns[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}@media only screen and (min-width: 700px){.myscore-columns[_ngcontent-%COMP%]{flex-direction:row;justify-content:center;gap:20px}}.scores-header[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.scores-header__title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:var(--brand-primary)}.scores-share-btn[_ngcontent-%COMP%]{flex:0 0 auto}.multiplayer-invite-badge[_ngcontent-%COMP%]{position:absolute;right:8px;top:8px;min-width:30px;height:30px;padding:0 6px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#bd2222;color:#fff;border:2px solid #fff;font:700 16px Roboto,sans-serif;box-shadow:0 2px 6px #0008;pointer-events:none}.invite-nudge-panel[_ngcontent-%COMP%]{position:relative;width:100%;padding:0!important;overflow:hidden;border-color:var(--brand-primary)}.invite-nudge-panel__main[_ngcontent-%COMP%]{appearance:none;width:100%;padding:15px 42px 15px 15px;display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:11px;align-items:center;border:0;color:#fff;background:transparent;font-family:var(--brand-font-family);text-align:left;cursor:pointer;transition:background-color .16s ease}.invite-nudge-panel__main[_ngcontent-%COMP%]:hover{background:#00000047}.invite-nudge-panel__main[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--brand-primary);outline-offset:-3px}.invite-nudge-panel__icon[_ngcontent-%COMP%]{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:#22000c;background:var(--brand-primary);box-shadow:0 2px 8px #00000047}.invite-nudge-panel__copy[_ngcontent-%COMP%]{display:flex;min-width:0;flex-direction:column;gap:4px}.invite-nudge-panel__copy[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#fff;font-size:16px;line-height:1.2}.invite-nudge-panel__copy[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{color:#ffffffc7;font-size:12px;font-style:normal;line-height:1.35}.invite-nudge-panel__arrow[_ngcontent-%COMP%]{color:var(--brand-primary);transition:transform .16s ease}.invite-nudge-panel__main[_ngcontent-%COMP%]:hover   .invite-nudge-panel__arrow[_ngcontent-%COMP%]{transform:translate(3px)}.invite-nudge-panel__dismiss[_ngcontent-%COMP%]{position:absolute;top:7px;right:7px;width:28px;height:28px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;color:#ffffffb8;background:#0000004d;cursor:pointer}.invite-nudge-panel__dismiss[_ngcontent-%COMP%]:hover, .invite-nudge-panel__dismiss[_ngcontent-%COMP%]:focus-visible{color:#fff;background:#00000094}.engagement-recommendation-panel[_ngcontent-%COMP%]{appearance:none;width:100%;padding:16px!important;gap:13px;color:#fff;font-family:var(--brand-font-family);text-align:left;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,transform .16s ease}@media only screen and (max-width: 699px){.engagement-recommendation-panel[_ngcontent-%COMP%]{margin-top:10px}}.engagement-recommendation-panel[_ngcontent-%COMP%]:hover{border-color:var(--brand-primary);background-color:#00000057;transform:translateY(-1px)}.engagement-recommendation-panel[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--brand-primary);outline-offset:3px}.engagement-recommendation-panel__title[_ngcontent-%COMP%]{width:100%;color:var(--brand-primary);font-size:18px;font-weight:700;line-height:1.2;text-align:center}.engagement-recommendation-panel__content[_ngcontent-%COMP%]{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:11px;align-items:center}.engagement-recommendation-panel__game-icon[_ngcontent-%COMP%]{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#22000c;background:var(--brand-primary);box-shadow:0 2px 8px #00000047}.engagement-recommendation-panel__copy[_ngcontent-%COMP%]{display:flex;min-width:0;flex-direction:column;gap:4px}.engagement-recommendation-panel__copy[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#fff;font-size:17px;font-weight:700;line-height:1.15}.engagement-recommendation-panel__copy[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{color:#fffc;font-size:12px;font-style:normal;line-height:1.35}.engagement-recommendation-panel__arrow[_ngcontent-%COMP%]{color:var(--brand-primary);font-size:16px;transition:transform .16s ease}.engagement-recommendation-panel[_ngcontent-%COMP%]:hover   .engagement-recommendation-panel__arrow[_ngcontent-%COMP%]{transform:translate(3px)}[_nghost-%COMP%]     .engagement-consent-dialog{border:1px solid var(--brand-primary);border-radius:16px;overflow:hidden;font-family:var(--brand-font-family)}.engagement-consent-dialog__header[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--brand-primary);font-size:20px;font-weight:700}.engagement-consent-dialog__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;color:inherit;line-height:1.55;text-align:center}.engagement-consent-dialog__content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.engagement-consent-dialog__content[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{opacity:.72;line-height:1.4}.engagement-consent-dialog__error[_ngcontent-%COMP%]{color:#d93636;font-size:13px;font-weight:600}.engagement-consent-dialog__actions[_ngcontent-%COMP%]{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.engagement-consent-dialog__actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{justify-content:center}@media (max-width: 390px){.engagement-consent-dialog__actions[_ngcontent-%COMP%]{grid-template-columns:1fr}}
85[_nghost-%COMP%]   .home-chat[_ngcontent-%COMP%]{margin-bottom:20px}']})}return t})();export{ip as HomeComponent};

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.