import{cb as vi,ra as ft}from"./chunk-JU4GNYLY.js";import{c as Me,e as yi,k as bi,q as gt}from"./chunk-GDQTHL4G.js";import{a as _i,m as pt,p as pn}from"./chunk-BVBRAD4P.js";import{$a as An,$c as Ke,$g as oi,$i as Lr,Ab as Yn,Ad as h,Bb as _e,Ca as s,Da as l,Dc as Xn,Ea as M,Eh as si,Fa as ue,Fb as ye,Ga as xe,H as Te,Hb as $n,Ia as ce,Ic as N,Ja as K,Jb as be,K as x,Ka as v,Kb as b,L as ee,Lc as Ye,N as C,Na as Be,Nb as F,O as fe,Ob as cn,Oh as li,P as z,Pb as Kn,Ph as di,Q as te,Qc as R,Ra as Rn,Rd as et,Sa as jn,Sd as Jn,Ta as Ln,Tb as We,Tc as U,Ti as pi,Ua as dn,Uc as me,Ui as jr,V as se,Va as c,Vi as gi,W as le,Wa as O,Wc as $e,Xa as _,Xb as Ue,Y as he,Ya as kn,Yc as ne,Yj as ge,Z as Qe,_ as De,_i as fi,ab as Qn,ah as Nr,aj as hi,bb as Vn,bd as qe,cb as Wn,ch as ri,d as Bn,db as w,eb as Ce,f as G,fb as W,g as B,ga as a,gd as ie,h as ae,ha as de,id as Xe,jd as Dr,je as Zn,jf as tt,jg as nt,kd as j,ke as Gr,kf as ei,l as V,la as $,lb as m,ld as pe,m as ln,ma as Nn,mb as p,md as Je,nd as Ze,ob as Ve,od as I,og as it,oj as st,pa as S,pg as ni,pj as lt,qg as ve,qj as ui,rg as mn,rj as dt,sg as Pe,si as ot,sj as xi,td as k,tg as ii,ti as ci,tj as ct,ua as d,ui as rt,uj as Ci,vi as mi,vj as mt,wi as at,xb as u,xc as qn,xf as ti,ya as Ge,yf as Br,yh as ai,zb as Un,zh as Rr}from"./chunk-HVAZPJTE.js";import{a as Ee,b as He,d as o,i as g}from"./chunk-ZLNWVVCY.js";var ht,gn=o(()=>{"use strict";gt();ht=class extends Me{}});var ut,fn=o(()=>{"use strict";h();ut=class extends N{}});var Y,hn=o(()=>{"use strict";h();gn();fn();Y=class{constructor(n){this.id=new Ye(n.gameId),this.date=ne.fromISO(n.date),this.event=new ut(n.event),this.club=new ht(n.club)}getDateHumanized(){return this.date.format("dd/MM/yy")}getEventName(){return this.event.value}getClubName(){return this.club.getName()}getId(){return this.id}toPrimitives(){return{gameId:this.id.toNumber(),date:this.date.toISODate(),event:this.event.value,club:this.club.toDto()}}}});var Pi,Mi=o(()=>{"use strict";pn();hn();Pi=class e extends _i{static empty(){return new e([])}static fromDtos(n){return new e(n.map(t=>new Y(t)))}getGames(){return this.items}}});var H,q=o(()=>{"use strict";H=class{constructor({color:n,type:t}){this._color=n,this._type=t}getColor(){return this._color}getType(){return this._type}}});var Oe,Oi=o(()=>{"use strict";q();Oe=class extends H{constructor(){super({color:"#EDEDED",type:"OTHER"})}}});var xt,zi=o(()=>{"use strict";q();xt=class extends H{constructor(){super({color:"#C3DDA3",type:"BIRDIE"})}}});var Ct,wi=o(()=>{"use strict";q();Ct=class extends H{constructor(){super({color:"#D7BDDF",type:"BOGEY"})}}});var _t,Si=o(()=>{"use strict";q();_t=class extends H{constructor(){super({color:"#E9CDAF",type:"DOUBLEBOGEY"})}}});var yt,Fi=o(()=>{"use strict";q();yt=class extends H{constructor(){super({color:"#FFF",type:"HOLEINONE"})}}});var bt,Ii=o(()=>{"use strict";q();bt=class extends H{constructor(){super({color:"#B8CDDF",type:"PAR"})}}});var vt,Ei=o(()=>{"use strict";q();vt=class extends H{constructor(){super({color:"#D7B8B0",type:"TRIPLEBOGEY"})}}});var ze,Hi=o(()=>{"use strict";Oi();zi();wi();Si();Fi();Ii();Ei();ze=class{static fromTypeString(n){if(!n)return new Oe;let i={HOLEINONE:()=>new yt,PAR:()=>new bt,BIRDIE:()=>new xt,BOGEY:()=>new Ct,DOUBLEBOGEY:()=>new _t,TRIPLEBOGEY:()=>new vt,OTHER:()=>new Oe}[n];return i?i():new Oe}}});var Pt=o(()=>{"use strict";q();Hi()});var P,A=o(()=>{"use strict";P=class{constructor({color:n,type:t}){this.color=n,this.type=t}getColor(){return this.color}getType(){return this.type}}});var Ne,Ti=o(()=>{"use strict";A();Ne=class extends P{constructor(){super({color:"#ededed",type:null})}}});var Mt,Di=o(()=>{"use strict";A();Mt=class extends P{constructor(){super({color:"#000",type:"BLACK"})}}});var Ot,Gi=o(()=>{"use strict";A();Ot=class extends P{constructor(){super({color:"#65abd0",type:"BLUE"})}}});var zt,Bi=o(()=>{"use strict";A();zt=class extends P{constructor(){super({color:"#d9c26c",type:"GOLDEN"})}}});var wt,Ni=o(()=>{"use strict";A();wt=class extends P{constructor(){super({color:"#9bbe65",type:"GREEN"})}}});var St,Ri=o(()=>{"use strict";A();St=class extends P{constructor(){super({color:"#d2d2d2",type:"GREY"})}}});var Ft,ji=o(()=>{"use strict";A();Ft=class extends P{constructor(){super({color:"#f6b730",type:"ORANGE"})}}});var It,Li=o(()=>{"use strict";A();It=class extends P{constructor(){super({color:"#ed5faf",type:"PINK"})}}});var Et,ki=o(()=>{"use strict";A();Et=class extends P{constructor(){super({color:"#d16161",type:"RED"})}}});var Ht,Ai=o(()=>{"use strict";A();Ht=class extends P{constructor(){super({color:"#f6eb34",type:"YELLOW"})}}});var Tt,Qi=o(()=>{"use strict";Ti();Di();Gi();Bi();Ni();Ri();ji();Li();ki();Ai();Tt=class{static fromTypeString(n){if(!n)return new Ne;let i={GOLDEN:()=>new zt,BLACK:()=>new Mt,GREY:()=>new St,YELLOW:()=>new Ht,BLUE:()=>new Ot,RED:()=>new Et,ORANGE:()=>new Ft,GREEN:()=>new wt,PINK:()=>new It}[n];return i?i():new Ne}}});var Vi=o(()=>{"use strict";A();Qi()});var Dt,un=o(()=>{"use strict";h();Dt=class extends N{hasBeenPlayed(){return this.value!==0}formatGross(){return this.hasBeenPlayed()?this.value:"-"}getGross(){return this.value}}});var Gt,xn=o(()=>{"use strict";Gt=class{constructor(n){this._value=n}getValue(){return this._value}}});var Bt,Cn=o(()=>{"use strict";un();xn();Pt();Bt=class{constructor(n){this.index=n.hole,this.par=n.par,this.stroke=n.stroke,this.score=n.score,this.points=new Gt(n.points),this.gross=new Dt(n.gross),this.type=ze.fromTypeString(n.holeType)}getIndex(){return this.index}getType(){return this.type}getColor(){return this.type.getColor()}getGross(){return this.gross.hasBeenPlayed()?this.gross.getGross():this.gross.formatGross()}getPar(){return this.par}getStroke(){return this.stroke}getScore(){return this.score}getPoints(){return this.points.getValue()}}});var X,_n=o(()=>{"use strict";Pt();X=class{constructor(n){this._value=n.value,this._holeType=ze.fromTypeString(n.holeType)}getValue(){return this._value}getHoleTypeAsKey(){return(this._holeType.getType()||"OTHER").toLowerCase()}getColor(){return this._holeType.getColor()}}});var Re,yn=o(()=>{"use strict";Cn();Re=class{constructor(n){this.holes=[],this.holes=n.holes.map(t=>new Bt(t)),this.grossTotal=n.grossTotal,this.parTotal=n.parTotal,this.scoreTotal=n.scoreTotal,this.isFrontNine=n.isFrontNine}getHoles(){return this.holes}getGrossTotal(){return this.grossTotal}getParTotal(){return this.parTotal}getScoreTotal(){return this.scoreTotal}getIsFrontNine(){return this.isFrontNine}}});var Nt,Wi=o(()=>{"use strict";yn();Nt=class{constructor(n){let t=n.holes.slice(0,9),i=n.holes.slice(9,18);this.frontNineHoles=new Re({holes:t,grossTotal:n.summary.grossTotalAtHole9,parTotal:n.summary.parTotalAtHole9,scoreTotal:n.summary.scoreTotalAtHole9,isFrontNine:!0}),this.backNineHoles=new Re({holes:i,grossTotal:n.summary.grossTotalAtHole18,parTotal:n.summary.parTotalAtHole18,scoreTotal:n.summary.scoreTotalAtHole18,isFrontNine:!1})}getFrontNineHoles(){return this.frontNineHoles}getBackNineHoles(){return this.backNineHoles}}});var Rt,Ui=o(()=>{"use strict";_n();Rt=class e{constructor(n){this.grossTotal=n.grossTotal,this.netTotal=n.netTotal,this.scoreTotal=n.scoreTotal,this.holeInOne=new X({value:n.holeInOne,holeType:"HOLEINONE"}),this.birdies=new X({value:n.birdies,holeType:"BIRDIE"}),this.par=new X({value:n.par,holeType:"PAR"}),this.bogeys=new X({value:n.bogeys,holeType:"BOGEY"}),this.doubleBogeys=new X({value:n.doubleBogeys,holeType:"DOUBLEBOGEY"}),this.tripleBogeys=new X({value:n.tripleBogeys,holeType:"TRIPLEBOGEY"})}getGrossTotal(){return this.grossTotal}getNetTotal(){return this.netTotal}getScoreTotal(){return this.scoreTotal}getHoleInOne(){return this.holeInOne}getBirdies(){return this.birdies}getPar(){return this.par}getBogeys(){return this.bogeys}getDoubleBogeys(){return this.doubleBogeys}getTripleBogeys(){return this.tripleBogeys}static fromPrimitives(n){return new e(n)}}});var bn=o(()=>{"use strict";Pt();Vi();gn();un();Cn();_n();Wi();yn();xn();Ui();fn()});var jt,Yi=o(()=>{"use strict";gt();h();bn();jt=class e{constructor(n){this.holes=new Nt({holes:n.holes,summary:n.summary}),this.teeColor=Tt.fromTypeString(n.teeColorType),this.club=new Me(n.club),this.playerHcp=n.playerHcp,this.gameId=new Ye(n.gameId),this.date=ne.fromISO(n.date),this.event=n.event,this.summary=new Rt(n.summary)}getFrontNineHoles(){return this.holes.getFrontNineHoles()}getBackNineHoles(){return this.holes.getBackNineHoles()}getClub(){return this.club}getTeeColor(){return this.teeColor}getTeeColorHex(){return this.teeColor.getColor()}getPlayerHcp(){return this.playerHcp}getGameId(){return this.gameId}getDateHumanized(){return this.date.format("dd/MM/yy")}getEventName(){return this.event}getSummary(){return this.summary}static fromDto(n){return new e(n)}}});var Q,$i=o(()=>{"use strict";Q=class{}});var Ki=o(()=>{"use strict";$i()});var qi=o(()=>{"use strict"});var Xi=o(()=>{"use strict"});var Ji=o(()=>{"use strict"});var Zi=o(()=>{"use strict"});var eo=o(()=>{"use strict"});var to=o(()=>{"use strict"});var no=o(()=>{"use strict"});var io=o(()=>{"use strict";qi();Xi();Ji();Zi();eo();to();no()});var L=o(()=>{"use strict";hn();Mi();Yi();Ki();io();bn()});var kr,kt,ro=o(()=>{"use strict";ae();me();L();u();L();kr="FindFederatedGamesByFederated",kt=class Lt extends U{constructor(n){super(),this.federatedGameRepository=n}internalExecute(n){return g(this,null,function*(){return this.federatedGameRepository.findGamesByFederated(n.federatedId,n.pagination)})}static{this.\u0275fac=function(t){return new(t||Lt)(C(Q))}}static{this.\u0275prov=x({token:Lt,factory:Lt.\u0275fac,providedIn:"root"})}};kt=G([R(kr),B("design:paramtypes",[Q])],kt)});var vn=o(()=>{"use strict";ro()});var dd,ao=o(()=>{"use strict";h();vn();u();vn();dd=(()=>{class e extends k{constructor(t){super(),this.findGamesByFederatedQry=t}execute(t){return g(this,null,function*(){return this.isLoadingSubject.next(!0),this.findGamesByFederatedQry.execute(t).finally(()=>{this.isLoadingSubject.next(!1)})})}static{this.\u0275fac=function(i){return new(i||e)(C(kt))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var Qr,Qt,Pn=o(()=>{"use strict";ae();me();L();u();L();Qr="FindFederatedGameDetailQry",Qt=class At extends U{constructor(n){super(),this.federatedGameRepository=n}internalExecute(n){return g(this,null,function*(){let{federatedId:t,gameId:i}=n;return yield this.federatedGameRepository.findGameDetailsByFederated(t,i)})}static{this.\u0275fac=function(t){return new(t||At)(C(Q))}}static{this.\u0275prov=x({token:At,factory:At.\u0275fac,providedIn:"root"})}};Qt=G([R(Qr),B("design:paramtypes",[Q])],Qt)});var Mn,so=o(()=>{"use strict";h();Pn();u();Pn();Mn=(()=>{class e extends k{constructor(t){super(),this.findFederatedGameDetailQry=t}execute(r){return g(this,arguments,function*({gameId:t,federatedId:i}){return this.isLoadingSubject.next(!0),this.findFederatedGameDetailQry.execute({federatedId:i,gameId:t}).finally(()=>{this.isLoadingSubject.next(!1)})})}static{this.\u0275fac=function(i){return new(i||e)(C(Qt))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var On=o(()=>{"use strict";so();ao()});var lo,co=o(()=>{"use strict";F();h();u();pe();lo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-game-headers-section"]],standalone:!0,features:[w],decls:15,vars:15,consts:[[1,"game-detail-headers__header"]],template:function(i,r){i&1&&(s(0,"div",0),c(1),m(2,"translate"),l(),s(3,"div",0),c(4),m(5,"translate"),l(),s(6,"div",0),c(7),m(8,"translate"),l(),s(9,"div",0),c(10),m(11,"translate"),l(),s(12,"div",0),c(13),m(14,"translate"),l()),i&2&&(a(),_(" ",p(2,5,"federated.game.detail.headers.hole"),`
`),a(3),_(" ",p(5,7,"federated.game.detail.headers.handicap"),`
`),a(3),_(" ",p(8,9,"federated.game.detail.headers.par"),`
`),a(3),_(" ",p(11,11,"federated.game.detail.headers.stroke"),`
`),a(3),_(" ",p(14,13,"federated.game.detail.headers.stablePoints"),`
`))},dependencies:[b,I,j],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr) 2fr;border:1px solid var(--ds-surface-raised);text-align:center;font-size:.875rem;font-weight:400;line-height:1.3;border-bottom:1px solid var(--ds-surface-raised)}@media screen and (max-width: 768px){[_nghost-%COMP%]{font-size:1.125rem}}.game-detail-headers__header[_ngcontent-%COMP%]{padding:var(--size-s);background-color:var(--ds-background-grey-boldest);color:var(--ds-text-inverse);font-weight:300;border-right:1px solid var(--ds-surface-raised)}.game-detail-headers__header[_ngcontent-%COMP%]:last-child{border-right:none}"]})}}return e})()});function Wr(e,n){if(e&1&&(s(0,"div",3)(1,"div",4),c(2),l(),s(3,"div",5),c(4),l(),s(5,"div",4),c(6),l(),s(7,"div",5),c(8),l(),s(9,"div",4),c(10),l()()),e&2){let t=n.$implicit,i=v();a(2),_(" ",t.getIndex()," "),a(),d("ngStyle",W(7,mo,i.gameTeeColor)),a(),_(" ",t.getStroke()," "),a(2),_(" ",t.getPar()," "),a(),d("ngStyle",W(9,mo,t.getColor())),a(),_(" ",t.getGross()," "),a(2),_(" ",t.getScore()," ")}}var mo,po,go=o(()=>{"use strict";F();h();L();u();h();F();mo=e=>({backgroundColor:e});po=(()=>{class e{constructor(t){this.translateService=t}getNineHeader(){return this.gameNineHoles.getIsFrontNine()?this.translateService.translate("federated.game.detail.headers.nine.front"):this.translateService.translate("federated.game.detail.headers.nine.back")}static{this.\u0275fac=function(i){return new(i||e)(de(Ze))}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-game-holes-section"]],inputs:{gameNineHoles:"gameNineHoles",gameTeeColor:"gameTeeColor"},standalone:!0,features:[w],decls:11,vars:7,consts:[["class","game-detail-nine",4,"ngFor","ngForOf"],[1,"game-detail-summary"],[1,"game-detail-summary__item"],[1,"game-detail-nine"],[1,"game-detail-nine__item"],[1,"game-detail-nine__item",3,"ngStyle"]],template:function(i,r){i&1&&(S(0,Wr,11,11,"div",0),s(1,"div",1)(2,"div",2),c(3),m(4,"uppercase"),l(),s(5,"div",2),c(6),l(),s(7,"div",2),c(8),l(),s(9,"div",2),c(10),l()()),i&2&&(d("ngForOf",r.gameNineHoles.getHoles()),a(3),_(" ",p(4,5,r.getNineHeader())," "),a(3),_(" ",r.gameNineHoles.getParTotal()," "),a(2),_(" ",r.gameNineHoles.getGrossTotal()," "),a(2),_(" ",r.gameNineHoles.getScoreTotal()," "))},dependencies:[b,Yn,ye,be,I],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}div[_ngcontent-%COMP%]{border:1px solid var(--ds-surface-raised);text-align:center;font-size:.875rem;font-weight:400;line-height:1.3;border-bottom:1px solid var(--ds-surface-raised)}@media screen and (max-width: 768px){div[_ngcontent-%COMP%]{font-size:1.125rem}}.game-detail-nine[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr) 2fr}.game-detail-nine__item[_ngcontent-%COMP%]{background-color:var(--neutral-30);padding:var(--size-s);border-right:1px solid var(--ds-surface-raised)}.game-detail-nine__item[_ngcontent-%COMP%]:last-child{border-right:none}.game-detail-summary[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr repeat(2,1fr) 2fr}.game-detail-summary__item[_ngcontent-%COMP%]{background-color:var(--ds-background-grey-boldest);color:var(--ds-text-inverse);font-weight:300;padding:var(--size-s);border-right:1px solid var(--ds-surface-raised)}.game-detail-summary__item[_ngcontent-%COMP%]:last-child{border-right:none}"],changeDetection:0})}}return e})()});var Ur,Yr,fo,zn=o(()=>{"use strict";F();u();h();L();u();h();F();Ur=e=>({"background-color":e}),Yr=e=>({backgroundColor:e}),fo=(()=>{class e{constructor(t){this.translateService=t,this.highlighted=!1,this.holeTypeNameSignal=$("")}ngOnInit(){this.setNameSignal()}setNameSignal(){let t=this.translateService.translate("federated.game.detail.summary.legend."+this.summaryHoleLegend.getHoleTypeAsKey());this.holeTypeNameSignal.set(t)}static{this.\u0275fac=function(i){return new(i||e)(de(Ze))}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-summary-legend-item"]],inputs:{summaryHoleLegend:"summaryHoleLegend",highlighted:"highlighted"},standalone:!0,features:[w],decls:4,vars:8,consts:[[1,"game-detail-legend__item",3,"ngStyle"],[3,"ngStyle"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"span",1),c(2),l(),c(3),l()),i&2&&(d("ngStyle",W(4,Ur,r.highlighted?"var(--ds-background-grey)":"var(--ds-surface-raised)")),a(),d("ngStyle",W(6,Yr,r.summaryHoleLegend.getColor())),a(),_(" ",r.summaryHoleLegend.getValue(),""),a(),_(" ",r.holeTypeNameSignal(),`
`))},dependencies:[b,ye,I],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}.game-detail-legend__item[_ngcontent-%COMP%]{border:1px solid var(--ds-border);padding:var(--size-s);font-size:.875rem;font-weight:400;line-height:1.3;font-weight:300;color:var(--ds-text);gap:var(--size-xs)}@media screen and (max-width: 768px){.game-detail-legend__item[_ngcontent-%COMP%]{font-size:1.125rem}}.game-detail-legend__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{border:1px solid var(--ds-border);padding:var(--size-xs)}"],changeDetection:0})}}return e})()});var ho,wn=o(()=>{"use strict";F();h();L();zn();u();pe();ho=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-game-summary-section"]],inputs:{gameSummary:"gameSummary"},standalone:!0,features:[w],decls:23,vars:21,consts:[[1,"game-detail-summary"],[1,"game-detail-summary__item"],[1,"game-detail-legend"],[3,"summaryHoleLegend"],[3,"highlighted","summaryHoleLegend"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"div",1),c(2),m(3,"translate"),s(4,"span"),c(5),l()(),s(6,"div",1),c(7),m(8,"translate"),s(9,"span"),c(10),l()(),s(11,"div",1),c(12),m(13,"translate"),s(14,"span"),c(15),l()()(),s(16,"div",2),M(17,"rfeg-summary-legend-item",3)(18,"rfeg-summary-legend-item",4)(19,"rfeg-summary-legend-item",4)(20,"rfeg-summary-legend-item",3)(21,"rfeg-summary-legend-item",3)(22,"rfeg-summary-legend-item",4),l()),i&2&&(a(2),_(" ",p(3,15,"federated.game.detail.summary.results.gross")," "),a(3),O(r.gameSummary.getGrossTotal()),a(2),_(" ",p(8,17,"federated.game.detail.summary.results.net")," "),a(3),O(r.gameSummary.getNetTotal()),a(2),_(" ",p(13,19,"federated.game.detail.summary.results.total")," "),a(3),_(" ",r.gameSummary.getScoreTotal(),""),a(2),d("summaryHoleLegend",r.gameSummary.getHoleInOne()),a(),d("highlighted",!0)("summaryHoleLegend",r.gameSummary.getBogeys()),a(),d("highlighted",!0)("summaryHoleLegend",r.gameSummary.getBirdies()),a(),d("summaryHoleLegend",r.gameSummary.getDoubleBogeys()),a(),d("summaryHoleLegend",r.gameSummary.getPar()),a(),d("highlighted",!0)("summaryHoleLegend",r.gameSummary.getTripleBogeys()))},dependencies:[b,I,j,fo],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}.game-detail-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.game-detail-summary__item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background-color:var(--ds-background-brand-bold);padding:var(--size-s);border-bottom:1px solid var(--ds-border);color:var(--ds-text-brand-inverse);width:100%;font-size:.875rem;font-weight:400;line-height:1.3;font-weight:300}@media screen and (max-width: 768px){.game-detail-summary__item[_ngcontent-%COMP%]{font-size:1.125rem}}.game-detail-summary__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500}.game-detail-legend[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;width:100%}"]})}}return e})()});var uo=o(()=>{"use strict";co();go();zn();wn()});function $r(e,n){if(e&1&&M(0,"rfeg-federated-game-holes-section",10),e&2){let t=n.ngIf,i=v(2);d("gameTeeColor",i.getTeeColor())("gameNineHoles",t)}}function Kr(e,n){if(e&1&&M(0,"rfeg-federated-game-holes-section",10),e&2){let t=n.ngIf,i=v(2);d("gameTeeColor",i.getTeeColor())("gameNineHoles",t)}}function qr(e,n){if(e&1&&M(0,"rfeg-federated-game-summary-section",11),e&2){let t=n.ngIf;d("gameSummary",t)}}function Xr(e,n){if(e&1&&(s(0,"div",3)(1,"div",4)(2,"h2",5),c(3),m(4,"uppercase"),l(),s(5,"div",6),c(6),m(7,"translate"),l()(),s(8,"div",7),M(9,"rfeg-federated-game-headers-section"),S(10,$r,1,2,"rfeg-federated-game-holes-section",8)(11,Kr,1,2,"rfeg-federated-game-holes-section",8)(12,qr,1,1,"rfeg-federated-game-summary-section",9),l()()),e&2){let t,i,r,f,E,D=v();a(3),_(" ",p(4,6,(t=D.federatedGameDetails())==null?null:t.getEventName())," "),a(3),kn(" ",p(7,8,"federated.game.detail.title"),": ",(i=D.federatedGameDetails())==null?null:i.getPlayerHcp()," "),a(4),d("ngIf",(r=D.federatedGameDetails())==null?null:r.getFrontNineHoles()),a(),d("ngIf",(f=D.federatedGameDetails())==null?null:f.getBackNineHoles()),a(),d("ngIf",(E=D.federatedGameDetails())==null?null:E.getSummary())}}function Jr(e,n){e&1&&(s(0,"div",12)(1,"h2",13),c(2),m(3,"translate"),l()()),e&2&&(a(2),_(" ",p(3,1,"federated.game.detail.noResults")," "))}var xo,Sn=o(()=>{"use strict";u();ge();F();vi();h();L();On();uo();wn();u();F();pe();jr();xo=(()=>{class e extends li{constructor(){super(...arguments),this.federated=fe(ft),this.federatedGame=fe(Y),this.findFederatedGameDetailService=fe(Mn),this.isLoading$=this.findFederatedGameDetailService.isLoading$,this.federatedGameDetails=$(null),this.error=$(null)}ngOnInit(){this.initComponent()}getTeeColor(){return this.federatedGameDetails()?.getTeeColorHex()}initComponent(){return g(this,null,function*(){yield this.findFederatedGameDetailService.execute({federatedId:this.federated.getId().toStringValue(),gameId:this.federatedGame.getId().toStringValue()}).then(t=>{this.federatedGameDetails.set(t)}).catch(t=>{this.error.set(t)})})}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=he(e)))(r||e)}})()}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-game-detail-modal"]],standalone:!0,features:[Wn([],[Mn]),Nn,w],decls:4,vars:5,consts:[[3,"rfegLoadingMask"],["class","game-detail",4,"ngIf"],["class","no-results",4,"ngIf"],[1,"game-detail"],[1,"game-detail__header"],[1,"title"],[1,"game-detail__header__handicap"],[1,"game-detail__content"],[3,"gameTeeColor","gameNineHoles",4,"ngIf"],[3,"gameSummary",4,"ngIf"],[3,"gameTeeColor","gameNineHoles"],[3,"gameSummary"],[1,"no-results"],[1,"no-results__title"]],template:function(i,r){if(i&1&&(s(0,"div",0),m(1,"async"),S(2,Xr,13,10,"div",1)(3,Jr,4,3,"div",2),l()),i&2){let f;d("rfegLoadingMask",(f=p(1,3,r.isLoading$))!==null&&f!==void 0?f:!1),a(2),d("ngIf",r.error()===null),a(),d("ngIf",r.error()!==null)}},dependencies:[b,_e,$n,be,I,j,gi,pi,po,lo,ho],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}.game-detail[_ngcontent-%COMP%]{margin:var(--size-m)}.game-detail__header[_ngcontent-%COMP%]{text-align:center}.game-detail__header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;line-height:1.3;margin-bottom:var(--size-s)}@media screen and (max-width: 768px){.game-detail__header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.5rem}}.game-detail__header__handicap[_ngcontent-%COMP%]{color:var(--ds-text-inverse);background-color:var(--ds-background-lime);font-weight:600;padding:var(--size-m) var(--size-s)}.game-detail__content[_ngcontent-%COMP%]{overflow-y:auto;height:60vh}.no-results[_ngcontent-%COMP%]{text-align:center;margin:var(--size-m) var(--size-s);min-height:20vh;display:flex;align-items:center}.no-results__title[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:700;line-height:1.3;font-weight:500}@media screen and (max-width: 768px){.no-results__title[_ngcontent-%COMP%]{font-size:1.625rem}}"],changeDetection:0})}}return e})()});function da(e,n){e&1&&(s(0,"span"),c(1),m(2,"translate"),l()),e&2&&(a(),O(p(2,1,"common.noResults")))}function ca(e,n){e&1&&M(0,"tr",8)}function ma(e,n){if(e&1){let t=ce();s(0,"rfeg-table",5),m(1,"translate"),S(2,ca,1,0,"tr",6),l(),s(3,"rfeg-paginator",7),m(4,"translate"),m(5,"translate"),m(6,"translate"),K("pageChange",function(r){se(t);let f=v();return le(f.pageChange.emit(r))}),l()}if(e&2){let t=v(),i=Vn(0);Be("ariaLabel",p(1,11,"federated.game.table.label")),d("stickyHeader",!1)("columns",t.tableColumns)("dataSource",t.tableDataSource)("tableStyles",Ce(19,la)),a(3),Be("stringFound",p(4,13,"ui.paginator.found")),Be("stringOf",p(5,15,"ui.paginator.of")),Be("stringPage",p(6,17,"ui.paginator.page")),d("totalItems",i.total)("totalPages",i.pages)("currentPage",i.actualPage)}}function pa(e,n){if(e&1){let t=ce();s(0,"rfeg-popover-action-button",9)(1,"rfeg-popover-button",10),m(2,"translate"),m(3,"translate"),K("click",function(){let r=se(t).$implicit,f=v();return le(f.openFederatedGameModal(r))}),s(4,"rfeg-icon",11),M(5,"rfeg-icon-eye"),l()()()}e&2&&(a(),d("title",p(2,3,"federated.game.table.columns.actions.title"))("subtitle",p(3,5,"federated.game.table.columns.actions.subtitle")),a(3),d("size",18))}var sa,la,Ec,_o=o(()=>{"use strict";Rr();F();u();vi();ge();h();L();Sn();u();ge();pe();mn();ni();Ci();ui();xi();ci();mi();Jn();ei();Lr();sa=["actionsTemplate"],la=()=>({boxShadow:"none"});Ec=(()=>{class e{set federatedGamePaginated(t){this.gamesPaginatedSignal.set(t),this.tableDataSource.setData(t.data)}constructor(t,i){this.injector=t,this.modalService=i,this.gamesPaginatedSignal=$(Ke.fromPageAndPageSize({page:1,pageSize:0,paginatedDto:{data:[],total:0}})),this.pageChange=new De,this.commonHeaderStyles={padding:"var(--size-s) var(--size-xs)"},this.tableColumns=[{columnDef:"date",header:()=>Je("federated.game.table.columns.date.header"),cell:r=>r.getDateHumanized(),headerCellStyles:this.commonHeaderStyles},{columnDef:"event",header:()=>Je("federated.game.table.columns.event.header"),cell:r=>r.getEventName(),headerCellStyles:this.commonHeaderStyles},{columnDef:"club",header:()=>Je("federated.game.table.columns.club.header"),cell:r=>r.getClubName(),headerCellStyles:this.commonHeaderStyles},{columnDef:"actions",header:()=>"",cell:()=>this.actionsTemplate,bodyCellStyles:{textAlign:"end"}}],this.tableDataSource=new st([])}openFederatedGameModal(t){return g(this,null,function*(){let i=Qe.create({parent:this.injector,providers:[{provide:ft,useValue:this.federated},{provide:Y,useValue:t}]});this.modalService.open(new ai(xo),{injector:i})})}static{this.\u0275fac=function(i){return new(i||e)(de(Qe),de(di))}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-game-widget"]],viewQuery:function(i,r){if(i&1&&Rn(sa,7),i&2){let f;jn(f=Ln())&&(r.actionsTemplate=f.first)}},inputs:{federated:"federated",federatedGamePaginated:"federatedGamePaginated"},outputs:{pageChange:"pageChange"},standalone:!0,features:[w],decls:11,vars:5,consts:[["actionsTemplate",""],[1,"federated-game-widget"],["rfegCardHeader","",1,"card-header"],[1,"title"],[1,"card-content"],[3,"ariaLabel","stickyHeader","columns","dataSource","tableStyles"],["rfeg-header-row","","class","table-header-row",4,"rfegHeaderRowDef"],[3,"pageChange","stringFound","stringOf","stringPage","totalItems","totalPages","currentPage"],["rfeg-header-row","",1,"table-header-row"],["ariaLabel","federated game actions",1,"view-popover-button"],[3,"click","title","subtitle"],[3,"size"]],template:function(i,r){if(i&1&&(An(0),s(1,"rfeg-card",1)(2,"div",2)(3,"h3",3),c(4),m(5,"translate"),l()(),s(6,"div",4),S(7,da,3,3,"span")(8,ma,7,20),l()(),S(9,pa,6,7,"ng-template",null,0,Ve)),i&2){let f=Qn(r.gamesPaginatedSignal());a(4),O(p(5,3,"federated.game.title")),a(3),Ge(f.data.length===0?7:8)}},dependencies:[b,I,j,Pe,ve,it,mt,ct,lt,dt,at,ot,rt,si,nt,et,tt,hi,fi],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:var(--size-xs)}.title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;line-height:1.2;font-size:.875rem;font-weight:400;line-height:1.3;color:var(--ds-text);font-weight:600}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:1.125rem}}.table-header-row[_ngcontent-%COMP%]{font-size:.563rem;font-weight:400;line-height:1.3;border-bottom:1px solid var(--ds-border)}@media screen and (max-width: 768px){.table-header-row[_ngcontent-%COMP%]{font-size:.813rem}}.card-content[_ngcontent-%COMP%]{padding:var(--size-base) 0}@media screen and (min-width: 768px){.table-header-row[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400;line-height:1.3}}@media screen and (min-width: 768px) and (max-width: 768px){.table-header-row[_ngcontent-%COMP%]{font-size:1rem}}@media screen and (min-width: 768px){.card-content[_ngcontent-%COMP%]{padding:var(--size-base)}}"],changeDetection:0})}}return e})()});var yo,bo=o(()=>{"use strict";gt();u();gt();yo=(()=>{class e{constructor(t){this.findClubsQry=t}_getClubs(){return g(this,null,function*(){return yield this.findClubsQry.execute().catch(()=>yi.empty())})}detailFromDto(t){return g(this,null,function*(){let r=(yield this._getClubs()).getClubById(t.clubId.toString());return He(Ee({},t),{club:r?.toDto()})})}gamesFromDtos(t){return g(this,null,function*(){let i=yield this._getClubs();return t.map(r=>{let f=i.getClubById(r.clubId.toString())??Me.createNoClub();return He(Ee({},r),{club:f.toDto()})}).filter(r=>r!==null)})}static{this.\u0275fac=function(i){return new(i||e)(C(bi))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()});var vo,Po=o(()=>{"use strict";Ue();u();pn();h();Te();L();bo();u();vo=(()=>{class e extends pt{constructor(){super(...arguments),this.federatedGameMapper=fe(yo)}findGamesByFederated(t,i){return g(this,null,function*(){let{page:r,pageSize:f}=i,E=new Kn().set("page",r.toString()).set("pageSize",f.toString()),D=`${this.apiUrl}/federated/${t}/games`,Gn=yield V(this.http.get(D,{params:E})),Hr=yield this.federatedGameMapper.gamesFromDtos(Gn.data);return Ke.fromPageAndPageSize({page:r+1,pageSize:f,paginatedDto:{data:Hr.map(Tr=>new Y(Tr)),total:Gn.total}})})}findGameDetailsByFederated(t,i){return g(this,null,function*(){let r=`${this.apiUrl}/federated/${t}/games/${i}`;try{let f=yield V(this.http.get(r)),E=yield this.federatedGameMapper.detailFromDto(f);return jt.fromDto(E)}catch{throw new Xn}})}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=he(e)))(r||e)}})()}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var Xc,Mo=o(()=>{"use strict";L();Po();u();Xc=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=te({type:e})}static{this.\u0275inj=ee({providers:[{provide:Q,useClass:vo}]})}}return e})()});var Oo=o(()=>{"use strict"});var zo=o(()=>{"use strict";Oo()});var wo=o(()=>{"use strict";zo()});var So=o(()=>{"use strict";_o();Sn()});var Fo=o(()=>{"use strict";So();On()});var ga=o(()=>{"use strict";L();wo();Fo();Mo()});var Se,Io=o(()=>{"use strict";Se=class e{constructor(n){this.general=n.general,this.pp=n.pp,this.novel=n.novel}static createEmpty(){return new e({general:null,pp:null,novel:null})}hasSomeValue(){return[this.general,this.pp,this.novel].some(t=>t!==null)}getNovelValue(){return this.novel}getPandPValue(){return this.pp}getGeneralValue(){return this.general}toPrimitives(){return{general:this.general,pp:this.pp,novel:this.novel}}}});var Eo=o(()=>{"use strict"});var Ho=o(()=>{"use strict";Eo()});var oe,ke=o(()=>{"use strict";oe=class{}});var To=o(()=>{"use strict";ke()});var Ae=o(()=>{"use strict";Ho();To();Io()});var Om,Do=o(()=>{"use strict";F();ge();Ae();h();u();F();pe();mn();Om=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-sace-widget"]],inputs:{federatedSace:"federatedSace"},standalone:!0,features:[w],decls:24,vars:21,consts:[[3,"title"],[1,"container"],[1,"column"],[1,"value"],[1,"name"],[1,"column","column--middle"]],template:function(i,r){if(i&1&&(s(0,"rfeg-card",0),m(1,"translate"),s(2,"div",1)(3,"div",2)(4,"strong",3),c(5),l(),s(6,"span",4),c(7),m(8,"translate"),m(9,"uppercase"),l()(),s(10,"div",5)(11,"strong",3),c(12),l(),s(13,"span",4),c(14),m(15,"translate"),m(16,"uppercase"),l()(),s(17,"div",2)(18,"strong",3),c(19),l(),s(20,"span",4),c(21),m(22,"translate"),m(23,"uppercase"),l()()()()),i&2){let f,E,D;d("title",p(1,7,"federated.sace.title")),a(5),O((f=(f=r.federatedSace.getGeneralValue())==null?null:f.toFixed(3))!==null&&f!==void 0?f:"--"),a(2),O(p(9,11,p(8,9,"federated.sace.general"))),a(5),O((E=(E=r.federatedSace.getPandPValue())==null?null:E.toFixed(3))!==null&&E!==void 0?E:"--"),a(2),O(p(16,15,p(15,13,"federated.sace.pandp"))),a(5),O((D=(D=r.federatedSace.getNovelValue())==null?null:D.toFixed(3))!==null&&D!==void 0?D:"--"),a(2),O(p(23,19,p(22,17,"federated.sace.novel")))}},dependencies:[b,be,I,j,Pe,ve],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}.container[_ngcontent-%COMP%]{padding:var(--size-base);padding-top:var(--size-xl);display:flex;align-items:center;justify-content:center}.container[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{flex:1;text-align:center;padding:var(--size-s) var(--size-xs)}.container[_ngcontent-%COMP%]   .column--middle[_ngcontent-%COMP%]{border-left:1px solid var(--ds-border);border-right:1px solid var(--ds-border)}.container[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{display:block;font-size:1.25rem;font-weight:700;line-height:1.3;text-align:center}@media screen and (max-width: 768px){.container[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:1.5rem}}.container[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:400;line-height:1.3;color:var(--ds-text-subtlest);text-align:center}@media screen and (max-width: 768px){.container[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:1.125rem}}"],changeDetection:0})}}return e})()});var ha,Wt,Go=o(()=>{"use strict";ae();me();Ae();ke();u();ke();ha="GetFederatedSace",Wt=class Vt extends U{constructor(n){super(),this.repository=n}internalExecute(n){return g(this,null,function*(){return this.repository.getFederatedSACE(n).catch(()=>Se.createEmpty())})}static{this.\u0275fac=function(t){return new(t||Vt)(C(oe))}}static{this.\u0275prov=x({token:Vt,factory:Vt.\u0275fac,providedIn:"root"})}};Wt=G([R(ha),B("design:paramtypes",[oe])],Wt)});var Fn=o(()=>{"use strict";Go()});var Nm,Bo=o(()=>{"use strict";h();Fn();u();Fn();Nm=(()=>{class e extends k{constructor(t){super(),this.getFederatedSACEQry=t}execute(t){return g(this,null,function*(){return this.isLoadingSubject.next(!0),this.getFederatedSACEQry.execute(t).finally(()=>{this.isLoadingSubject.next(!1)})})}static{this.\u0275fac=function(i){return new(i||e)(C(Wt))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var Ut,No=o(()=>{"use strict";h();Ut=class extends qn{constructor(){super({name:"NotFoundFederatedSACEException",message:"Federated SACE not found",code:"exception.federated.sace.notFound"})}}});var Ro=o(()=>{"use strict";No()});var jo,Lo=o(()=>{"use strict";pn();Te();Ae();Ro();u();jo=(()=>{class e extends pt{getFederatedSACE(t){return g(this,null,function*(){let i=`${this.apiUrl}/federated/${t}/sace`;try{let r=yield V(this.http.get(i));return new Se(r)}catch{throw new Ut}})}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=he(e)))(r||e)}})()}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var Jm,ko=o(()=>{"use strict";ke();Lo();u();Jm=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=te({type:e})}static{this.\u0275inj=ee({providers:[{provide:oe,useClass:jo}]})}}return e})()});var Ao=o(()=>{"use strict";Do()});var Qo=o(()=>{"use strict";Bo()});var Vo=o(()=>{"use strict";Ao();Qo()});var xa=o(()=>{"use strict";Ae();Vo();ko()});var Yt,Wo=o(()=>{"use strict";h();Yt=class extends N{}});var $t,Uo=o(()=>{"use strict";h();$t=class extends N{}});var Kt,In=o(()=>{"use strict";h();Wo();Uo();Kt=class{constructor(n){this.date=ne.fromISO(n.date),this.event=new Yt(n.event),this.handicap=new $t(n.handicap)}getDateHumanized(){return this.date.format("dd/MM/yyyy")}getDateMonth(){return this.date.format("MMMM")}getEventName(){return this.event.value}getEventAndClubShortNameString(){return this.event.value}getHandicapValue(){return Number(this.handicap.value.toFixed(1))}toPrimitives(){return{date:this.date.toISODate(),event:this.event.value,handicap:this.handicap.value}}}});var Fe,Yo=o(()=>{"use strict";In();Fe=class e{constructor(n){this.scores=[],this.scores=n}static empty(){return new e([])}static fromDtos(n){return new e(n.map(t=>new Kt(t)))}static fromEntities(n){return new e(n)}isEmpty(){return this.scores.length===0}getScores(){return this.scores}getScoresReverse(){return[...this.scores].reverse()}}});var $o=o(()=>{"use strict"});var Ko=o(()=>{"use strict"});var qo=o(()=>{"use strict";$o();Ko()});var re,Xo=o(()=>{"use strict";re=class{}});var Jo=o(()=>{"use strict";Xo()});var J=o(()=>{"use strict";In();Yo();qo();Jo()});var Zo,er=o(()=>{"use strict";h();Te();J();u();Ue();h();Zo=(()=>{class e{constructor(t,i){this.http=t,this.appConfig=i,this.apiUrl=this.appConfig.enviroment.apiUrl}findScoresByFederatedId(t){return g(this,null,function*(){let i=`${this.apiUrl}/federated/${t}/scores`,r=yield V(this.http.get(i));return Fe.fromDtos(r)})}static{this.\u0275fac=function(i){return new(i||e)(C(We),C(qe))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var jp,tr=o(()=>{"use strict";F();J();er();u();jp=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=te({type:e})}static{this.\u0275inj=ee({providers:[{provide:re,useClass:Zo}],imports:[b]})}}return e})()});function va(e,n){if(e&1&&(ue(0),s(1,"div",4,1)(3,"div",5)(4,"span",6),c(5),m(6,"translate"),l(),s(7,"span",7),c(8),l()(),s(9,"div",5)(10,"span",6),c(11),m(12,"translate"),l(),s(13,"span",7),c(14),l()(),s(15,"div",5)(16,"span",6),c(17),m(18,"translate"),l(),s(19,"span",7),c(20),l()()(),xe()),e&2){let t=n.ngIf,i=dn(2),r=v(2);a(),d("ngStyle",W(13,ba,r.backgroundWithOpacity(i,.9))),a(4),_("",p(6,7,"federated.score.event.label"),":"),a(3),O(t.getEventAndClubShortNameString()),a(3),_("",p(12,9,"federated.score.date.label"),":"),a(3),O(t.getDateHumanized()),a(3),_("",p(18,11,"federated.score.handicap.label"),":"),a(3),O(t.getHandicapValue())}}function Pa(e,n){if(e&1&&S(0,va,21,15,"ng-container",3),e&2){let t=n.dataIndex,i=v();d("ngIf",i.getFederatedScoreByIndex(t))}}var ya,ba,nr,ir=o(()=>{"use strict";F();ge();h();Te();J();u();F();pe();ya=()=>({minHeight:"300px",maxWidth:"100%"}),ba=e=>({backgroundColor:e});nr=(()=>{class e{constructor(){this.federatedScoresSubject=new Bn([]),this.labels$=this.federatedScoresSubject.pipe(ln(t=>t.map(i=>i.getDateMonth().slice(0,3)))),this.data$=this.federatedScoresSubject.pipe(ln(t=>t.map(i=>i.getHandicapValue()))),this.datasets=[{label:"Handicap",data:this.data$,borderColor:"--ds-text-brand"}],this.lineChartOptions={displayLegend:!1,maintainAspectRatio:!1}}set federatedScoreCollection(t){this.federatedScoresSubject.next(t.getScoresReverse())}getFederatedScoreByIndex(t){return this.federatedScoresSubject.getValue()[t]??null}backgroundWithOpacity(t,i){let r=getComputedStyle(t).backgroundColor,f=r.match(/\d+/g);return f?`rgba(${f[0]}, ${f[1]}, ${f[2]}, ${i})`:r}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-score-line-chart"]],inputs:{federatedScoreCollection:"federatedScoreCollection"},standalone:!0,features:[w],decls:3,vars:6,consts:[["tooltip",""],["tooltipContainer",""],[3,"labels","datasets","options","tooltipTemplate","chartStyles"],[4,"ngIf"],[1,"tooltip",3,"ngStyle"],[1,"tooltip-section"],[1,"tooltip-section-title"],[1,"tooltip-section-description"]],template:function(i,r){if(i&1&&(M(0,"rfeg-line-chart",2),S(1,Pa,1,1,"ng-template",null,0,Ve)),i&2){let f=dn(2);d("labels",r.labels$)("datasets",r.datasets)("options",r.lineChartOptions)("tooltipTemplate",f)("chartStyles",Ce(5,ya))}},dependencies:[b,_e,ye,ii,I,j],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}.tooltip[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--size-xs);background-color:var(--ds-text);color:var(--ds-text-inverse);padding:var(--size-2xs);border-radius:var(--size-2xs);font-size:.75rem;font-weight:400;line-height:1.3;max-width:200px}@media screen and (max-width: 768px){.tooltip[_ngcontent-%COMP%]{font-size:1rem}}.tooltip-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--size-3xs)}.tooltip-section-title[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0})}}return e})()});function Oa(e,n){e&1&&M(0,"tr",2)}var Ma,or,rr=o(()=>{"use strict";F();Dr();ge();J();u();Ci();ui();xi();Ma=()=>({boxShadow:"none"});or=(()=>{class e{constructor(){this.commonHeaderStyles={padding:"var(--size-s) var(--size-xs)"},this.columns=[{columnDef:"date",header:()=>Xe("federated.score.date.label"),cell:t=>t.getDateHumanized(),headerCellStyles:this.commonHeaderStyles},{columnDef:"event",header:()=>Xe("federated.score.event.label"),cell:t=>t.getEventAndClubShortNameString(),headerCellStyles:this.commonHeaderStyles},{columnDef:"handicap",header:()=>Xe("federated.score.handicap.label"),cell:t=>t.getHandicapValue().toString(),headerCellStyles:He(Ee({},this.commonHeaderStyles),{textAlign:"end"}),bodyCellStyles:{textAlign:"end"}}],this.tableDataSource=new st([])}set federatedScoreCollection(t){this.tableDataSource.setData(t.getScores())}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-score-table"]],inputs:{federatedScoreCollection:"federatedScoreCollection"},standalone:!0,features:[w],decls:2,vars:5,consts:[[3,"dataSource","columns","stickyHeader","tableStyles"],["rfeg-header-row","","class","table-header-row",4,"rfegHeaderRowDef"],["rfeg-header-row","",1,"table-header-row"]],template:function(i,r){i&1&&(s(0,"rfeg-table",0),S(1,Oa,1,0,"tr",1),l()),i&2&&d("dataSource",r.tableDataSource)("columns",r.columns)("stickyHeader",!1)("tableStyles",Ce(4,Ma))},dependencies:[b,mt,ct,lt,dt],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}.table-header-row[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400;line-height:1.3;border-bottom:1px solid var(--ds-border)}@media screen and (max-width: 768px){.table-header-row[_ngcontent-%COMP%]{font-size:1rem}}"],changeDetection:0})}}return e})()});function za(e,n){if(e&1){let t=ce();ue(0),s(1,"rfeg-button",9),K("click",function(){se(t);let r=v();return le(r.onGetWorldHandicapPdf())}),s(2,"span"),c(3),m(4,"translate"),l()(),xe()}if(e&2){let t=v();a(),d("isLoading",t.isDownloadingWorldHandicapPdf),a(2),O(p(4,2,"federated.score.certificate.worldHandicap.title"))}}function wa(e,n){if(e&1){let t=ce();ue(0),s(1,"rfeg-popover-button",10),m(2,"translate"),m(3,"translate"),K("click",function(){se(t);let r=v();return le(r.onGetHandicapCertificatePdf("es"))}),s(4,"rfeg-icon",5),M(5,"rfeg-icon-eye"),l()(),xe()}if(e&2){let t=v();a(),d("isLoading",t.isDownloadingHandicapCertificatePdf&&t.lastLangSelected==="es")("isDisabled",t.isDownloadingHandicapCertificatePdf)("title",p(2,5,"federated.score.certificate.handicap.spanishVersionTitle"))("subtitle",p(3,7,"federated.score.certificate.handicap.spanishVersionSubtitle")),a(3),d("size",18)}}function Sa(e,n){if(e&1){let t=ce();ue(0),s(1,"rfeg-popover-button",11),m(2,"translate"),m(3,"translate"),K("click",function(){se(t);let r=v();return le(r.onGetHandicapCertificatePdf("en"))}),s(4,"rfeg-icon",5),M(5,"rfeg-icon-eye"),l()(),xe()}if(e&2){let t=v();a(),d("isLoading",t.isDownloadingHandicapCertificatePdf&&t.lastLangSelected==="en")("isDisabled",t.isDownloadingHandicapCertificatePdf)("title",p(2,5,"federated.score.certificate.handicap.englishVersionTitle"))("subtitle",p(3,7,"federated.score.certificate.handicap.englishVersionSubtitle")),a(3),d("size",18)}}function Fa(e,n){if(e&1&&M(0,"rfeg-federated-score-table",12),e&2){let t=v(2);d("federatedScoreCollection",t.federatedScoreCollection)}}function Ia(e,n){if(e&1&&(s(0,"div"),M(1,"rfeg-federated-score-line-chart",12),l()),e&2){let t=v(2);a(),d("federatedScoreCollection",t.federatedScoreCollection)}}function Ea(e,n){if(e&1&&S(0,Fa,1,1,"rfeg-federated-score-table",12)(1,Ia,2,1,"div"),e&2){let t,i=v();Ge((t=i.viewModeSignal())==="table"?0:t==="chart"?1:-1)}}function Ha(e,n){e&1&&(s(0,"span"),c(1),m(2,"translate"),l()),e&2&&(a(),O(p(2,1,"federated.score.noData")))}var ar,xg,sr=o(()=>{"use strict";F();u();ge();h();J();ir();rr();u();F();mn();ni();Nr();ci();mi();pe();Jn();ei();Br();Gr();ar=e=>({active:e});xg=(()=>{class e{constructor(){this.canDownloadWorldHandicapPdf=!1,this.canDownloadHandicapCertificatePdf=!1,this.isDownloadingWorldHandicapPdf=!1,this.isDownloadingHandicapCertificatePdf=!1,this.getWorldHandicapPdf=new De,this.getHandicapCertificatePdf=new De,this.viewModeSignal=$("chart"),this.lastLangSelected="es"}setViewMode(t){this.viewModeSignal.set(t)}onGetWorldHandicapPdf(){this.getWorldHandicapPdf.emit()}onGetHandicapCertificatePdf(t){this.lastLangSelected=t,this.getHandicapCertificatePdf.emit(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=z({type:e,selectors:[["rfeg-federated-score-widget"]],inputs:{canDownloadWorldHandicapPdf:"canDownloadWorldHandicapPdf",canDownloadHandicapCertificatePdf:"canDownloadHandicapCertificatePdf",federatedScoreCollection:"federatedScoreCollection",isDownloadingWorldHandicapPdf:"isDownloadingWorldHandicapPdf",isDownloadingHandicapCertificatePdf:"isDownloadingHandicapCertificatePdf"},outputs:{getWorldHandicapPdf:"getWorldHandicapPdf",getHandicapCertificatePdf:"getHandicapCertificatePdf"},standalone:!0,features:[w],decls:19,vars:15,consts:[["rfegCardHeader","",1,"card-header"],[1,"title"],[1,"view-selector-container"],[4,"ngIf"],["aria-label","chart view mode",1,"view-selector-button",3,"click","ngClass"],[3,"size"],["aria-label","table view mode",1,"view-selector-button",3,"click","ngClass"],["ariaLabel","handicap certificates container",1,"view-popover-button"],[1,"card-content"],["size","default","color","info","ariaLabel","world handicap button",3,"click","isLoading"],["ariaLabel","esp handicap button",3,"click","isLoading","isDisabled","title","subtitle"],["ariaLabel","eng handicap button",3,"click","isLoading","isDisabled","title","subtitle"],[3,"federatedScoreCollection"]],template:function(i,r){i&1&&(s(0,"rfeg-card")(1,"div",0)(2,"h3",1),c(3),m(4,"translate"),l(),s(5,"div",2),S(6,za,5,4,"ng-container",3),s(7,"button",4),K("click",function(){return r.setViewMode("chart")}),s(8,"rfeg-icon",5),M(9,"rfeg-icon-bar-chart"),l()(),s(10,"button",6),K("click",function(){return r.setViewMode("table")}),s(11,"rfeg-icon",5),M(12,"rfeg-icon-list"),l()(),s(13,"rfeg-popover-action-button",7),S(14,wa,6,9,"ng-container",3)(15,Sa,6,9,"ng-container",3),l()()(),s(16,"div",8),S(17,Ea,2,1)(18,Ha,3,3,"span"),l()()),i&2&&(a(3),O(p(4,9,"federated.score.evolution.title")),a(3),d("ngIf",r.canDownloadWorldHandicapPdf),a(),d("ngClass",W(11,ar,r.viewModeSignal()==="chart")),a(),d("size",18),a(2),d("ngClass",W(13,ar,r.viewModeSignal()==="table")),a(),d("size",18),a(3),d("ngIf",r.canDownloadHandicapCertificatePdf),a(),d("ngIf",r.canDownloadHandicapCertificatePdf),a(2),Ge(r.federatedScoreCollection.isEmpty()?18:17))},dependencies:[b,Un,_e,Pe,ve,it,ri,oi,at,ot,rt,I,j,nt,et,tt,ti,Zn,or,nr],styles:["[_ngcontent-%COMP%]:root{--size-base: 1rem;--size-3xs: calc(var(--size-base) * .125);--size-2xs: calc(var(--size-base) * .25);--size-xs: calc(var(--size-base) * .5);--size-s: calc(var(--size-base) * .75);--size-m: calc(var(--size-base));--size-l: calc(var(--size-base) * 1.5);--size-xl: calc(var(--size-base) * 2);--size-2xl: calc(var(--size-base) * 2.5);--size-3xl: calc(var(--size-base) * 3.5);--size-4xl: calc(var(--size-base) * 4);--size-5xl: calc(var(--size-base) * 8)}.text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.text--2xsmall[_ngcontent-%COMP%]{font-size:.563rem}.text--2xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--xsmall[_ngcontent-%COMP%]{font-size:.6875rem}.text--xsmall--bold[_ngcontent-%COMP%]{font-weight:700}.text--small[_ngcontent-%COMP%]{font-size:.75rem}.text--small--bold[_ngcontent-%COMP%]{font-weight:700}.text--base[_ngcontent-%COMP%]{font-size:.875rem}.text--base--bold[_ngcontent-%COMP%]{font-weight:700}.text--large[_ngcontent-%COMP%]{font-size:1rem}.text--large--bold[_ngcontent-%COMP%]{font-weight:700}.text__align--center[_ngcontent-%COMP%]{text-align:center}.text__align--start[_ngcontent-%COMP%]{text-align:start}.text__align--end[_ngcontent-%COMP%]{text-align:end}.text--bold[_ngcontent-%COMP%]{font-weight:700}.text--regular[_ngcontent-%COMP%]{font-weight:400}.text--thin[_ngcontent-%COMP%]{font-weight:300}.heading[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;line-height:1.2}.heading--h6[_ngcontent-%COMP%]{font-size:1.125rem}.heading--h6--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h5[_ngcontent-%COMP%]{font-size:1.25rem}.heading--h5--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h4[_ngcontent-%COMP%]{font-size:1.375rem}.heading--h4--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h3[_ngcontent-%COMP%]{font-size:1.5625rem}.heading--h3--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h2[_ngcontent-%COMP%]{font-size:1.75rem}.heading--h2--bold[_ngcontent-%COMP%]{font-weight:700}.heading--h1[_ngcontent-%COMP%]{font-size:2rem}.heading--h1--bold[_ngcontent-%COMP%]{font-weight:700}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:var(--size-xs)}.title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;line-height:1.2;font-size:.875rem;font-weight:400;line-height:1.3;color:var(--ds-text);font-weight:600}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:1.125rem}}.view-selector-container[_ngcontent-%COMP%]{display:flex;gap:var(--size-2xs)}.view-selector-button[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;line-height:1.3;border:none;background:transparent;color:var(--ds-text-subtlest);cursor:pointer;transition:color .2s}@media screen and (max-width: 768px){.view-selector-button[_ngcontent-%COMP%]{font-size:1.25rem}}.view-selector-button[_ngcontent-%COMP%]:hover, .view-selector-button.active[_ngcontent-%COMP%]{color:var(--ds-text)}.view-popover-button[_ngcontent-%COMP%]{margin:auto 0}.card-content[_ngcontent-%COMP%]{padding:var(--size-base);padding-top:var(--size-xs)}"],changeDetection:0})}}return e})()});var Ta,Xt,lr=o(()=>{"use strict";ae();me();J();u();J();Ta="FindFederatedScores",Xt=class qt extends U{constructor(n){super(),this.federatedScoreRepository=n}internalExecute(n){return g(this,null,function*(){return this.federatedScoreRepository.findScoresByFederatedId(n).catch(()=>Fe.fromDtos([]))})}static{this.\u0275fac=function(t){return new(t||qt)(C(re))}}static{this.\u0275prov=x({token:qt,factory:qt.\u0275fac,providedIn:"root"})}};Xt=G([R(Ta),B("design:paramtypes",[re])],Xt)});var En=o(()=>{"use strict";lr()});var Sg,dr=o(()=>{"use strict";h();En();u();En();Sg=(()=>{class e extends k{constructor(t){super(),this.findFederatedScoresQry=t}execute(t){return g(this,null,function*(){return this.isLoadingSubject.next(!0),this.findFederatedScoresQry.execute(t).finally(()=>{this.isLoadingSubject.next(!1)})})}static{this.\u0275fac=function(i){return new(i||e)(C(Xt))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var cr=o(()=>{"use strict";sr()});var mr=o(()=>{"use strict";dr()});var pr=o(()=>{"use strict";cr();mr()});var Ga=o(()=>{"use strict";tr();J();pr()});var gr,fr=o(()=>{"use strict";gr={FIRST:"FIRST",SECOND:"SECOND",THIRD:"THIRD",FOURTH:"FOURTH",FIFTH:"FIFTH",SIXTH:"SIXTH",NO_HCP:"NO_HCP"}});var hr=o(()=>{"use strict"});var ur=o(()=>{"use strict"});var Hn=o(()=>{"use strict";fr();hr();ur()});var Jt,xr=o(()=>{"use strict";h();Hn();Jt=class extends N{constructor(n){super(n)}getCategory(){return this.value?this.value:gr.NO_HCP}}});var Zt,Cr=o(()=>{"use strict";h();Zt=class extends N{constructor(n){super(n)}}});var en,_r=o(()=>{"use strict";h();en=class extends N{constructor(n){super(n)}has(){return this.value?this.value<=54:!1}getValue(){return this.value?this.value:null}}});var tn,yr=o(()=>{"use strict";h();xr();Cr();_r();tn=class{constructor(n){this.status=new Zt(n.status),this.value=new en(n.value),this.updatedAt=n.updatedAt?ne.fromISO(n.updatedAt):null,this.category=new Jt(n.category)}getValue(){return this.value.has()?this.value.getValue():null}getCategory(){return this.category.getCategory()}isActive(){return this.status.value!=="NO_HCP"}hasDate(){return!!this.updatedAt}getUpdatedAtHumanized(){return this.updatedAt?this.updatedAt.format("dd/MM/yyyy"):""}}});var T,Tn=o(()=>{"use strict";T=class{}});var Z=o(()=>{"use strict";Hn();yr();Tn()});var Ba,br,vr=o(()=>{"use strict";ae();me();Z();u();Z();Ba="FindHandicapByIdQry",br=class nn extends U{constructor(n){super(),this.handicapRepository=n}internalExecute(n){return g(this,null,function*(){return this.handicapRepository.findHandicapById(n.value)})}static{this.\u0275fac=function(t){return new(t||nn)(C(T))}}static{this.\u0275prov=x({token:nn,factory:nn.\u0275fac,providedIn:"root"})}};br=G([R(Ba),B("design:paramtypes",[T])],br)});var Pr,Mr=o(()=>{"use strict";Ue();h();Te();Z();u();Ue();h();Pr=(()=>{class e{constructor(t,i){this.http=t,this.appConfig=i,this.apiUrl=this.appConfig.enviroment.apiUrl}findHandicapById(t){return g(this,null,function*(){let i=`${this.apiUrl}/federated/${t}/handicap`,r=yield V(this.http.get(i));return new tn(r)})}getWorldHandicapPdf(t){return g(this,null,function*(){let i=`${this.apiUrl}/whs/${t}/world-handicap`,r=new cn({"Content-Type":"application/pdf"}),f=yield V(this.http.get(i,{responseType:"blob",headers:r,observe:"response"})),E=this.getFilename(f);return{blob:new Blob([f.body],{type:"application/pdf"}),filename:E}})}getHandicapCertificatePdf(t,i){return g(this,null,function*(){let r=`${this.apiUrl}/whs/${t}/handicap-certificate?lang=${i}`,f=new cn({"Content-Type":"application/pdf"}),E=yield V(this.http.get(r,{responseType:"blob",headers:f,observe:"response"})),D=this.getFilename(E);return{blob:new Blob([E.body],{type:"application/pdf"}),filename:D}})}getFilename(t){let i=t.headers.get("Content-Disposition"),r=null;return i&&i.includes("filename=")&&(r=i.split("filename=")[1].split(";")[0].trim(),r=r.replace(/['"]/g,"")),r}static{this.\u0275fac=function(i){return new(i||e)(C(We),C(qe))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var wf,Or=o(()=>{"use strict";F();Tn();Mr();u();wf=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=te({type:e})}static{this.\u0275inj=ee({providers:[{provide:T,useClass:Pr}],imports:[b]})}}return e})()});var Na,rn,zr=o(()=>{"use strict";ae();me();h();Z();u();Z();h();Na="GetHandicapCertificatePdfByIdQry",rn=class on extends $e{constructor(n,t){super(),this.handicapRepository=n,this.pdfService=t}internalExecute(i){return g(this,arguments,function*({id:n,lang:t}){let r=yield this.handicapRepository.getHandicapCertificatePdf(n.value,t);this.pdfService.openPdf(r)})}static{this.\u0275fac=function(t){return new(t||on)(C(T),C(ie))}}static{this.\u0275prov=x({token:on,factory:on.\u0275fac,providedIn:"root"})}};rn=G([R(Na),B("design:paramtypes",[T,ie])],rn)});var Ra,sn,wr=o(()=>{"use strict";ae();me();h();Z();u();Z();h();Ra="GetWorldHandicapPdfByIdQry",sn=class an extends $e{constructor(n,t){super(),this.handicapRepository=n,this.pdfService=t}internalExecute(n){return g(this,null,function*(){let t=yield this.handicapRepository.getWorldHandicapPdf(n.value);this.pdfService.openPdf(t)})}static{this.\u0275fac=function(t){return new(t||an)(C(T),C(ie))}}static{this.\u0275prov=x({token:an,factory:an.\u0275fac,providedIn:"root"})}};sn=G([R(Ra),B("design:paramtypes",[T,ie])],sn)});var Ie=o(()=>{"use strict";vr();zr();wr()});var Yf,Fr=o(()=>{"use strict";h();Ie();u();Ie();Yf=(()=>{class e extends k{constructor(t){super(),this.getHandicapCertificatePdfByIdQry=t}execute(r){return g(this,arguments,function*({federatedId:t,lang:i}){return this.isLoadingSubject.next(!0),this.getHandicapCertificatePdfByIdQry.execute({id:t,lang:i}).finally(()=>{this.isLoadingSubject.next(!1)})})}static{this.\u0275fac=function(i){return new(i||e)(C(rn))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var Zf,Ir=o(()=>{"use strict";h();Ie();u();Ie();Zf=(()=>{class e extends k{constructor(t){super(),this.getWorldHandicapPdfByIdQry=t}execute(t){return g(this,null,function*(){return this.isLoadingSubject.next(!0),this.getWorldHandicapPdfByIdQry.execute(t).finally(()=>{this.isLoadingSubject.next(!1)})})}static{this.\u0275fac=function(i){return new(i||e)(C(sn))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})()});var Er=o(()=>{"use strict";Fr();Ir()});var ja=o(()=>{"use strict";Ie();Z();Or();Er()});export{Pi as a,dd as b,Ec as c,Xc as d,ga as e,Se as f,Om as g,Nm as h,Jm as i,xa as j,Fe as k,jp as l,xg as m,Sg as n,Ga as o,gr as p,br as q,wf as r,Yf as s,Zf as t,ja as u};
