1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="441253c4-c0c5-5496-b35f-f2a7994bfb5a")}catch(e){}}(); 3import{a as gi,b as Ro}from"./chunk-45CIO5QC.js";import{a as Le,b as Go}from"./chunk-Y6XFS5NU.js";import"./chunk-CUDIQRYZ.js";import"./chunk-QQZA5M4G.js";import"./chunk-NMPTH6WM.js";import"./chunk-TFF27CT5.js";import"./chunk-PV5UXUQ2.js";import"./chunk-GG6GMYZU.js";import"./chunk-OKDRXUKG.js";import{e as Mi,f as $o,g as Ni,h as wo}from"./chunk-JC4UP3TB.js";import"./chunk-VP43T5XO.js";import{a as Ii,b as Oo}from"./chunk-ZT7GKHHR.js";import{a as hi,b as xo}from"./chunk-XQENGSYE.js";import{a as Ei,b as Do}from"./chunk-4MT2DNXR.js";import"./chunk-7D3SLD73.js";import"./chunk-VBAZA6XS.js";import"./chunk-GGJPBVXG.js";import"./chunk-3BD6QRPQ.js";import"./chunk-4M55JUUC.js";import"./chunk-YZG3QV52.js";import"./chunk-DVR5IIGQ.js";import"./chunk-Q5RXZ4IU.js";import"./chunk-GBY4RRPU.js";import"./chunk-IZYFWM3L.js";import"./chunk-M6G4OERQ.js";import"./chunk-ZVG4DNHX.js";import"./chunk-PAKT4ZL5.js";import"./chunk-LA2ZE42Z.js";import{a as ui,b as Ao}from"./chunk-KP3AVNNE.js";import"./chunk-32AFCRIM.js";import"./chunk-M5E33PEE.js";import{a as mi,b as bo}from"./chunk-RIFL3OOI.js";import"./chunk-XPIB65IW.js";import"./chunk-XKGQNJCS.js";import{c as _i,d as So}from"./chunk-GKJMOZUI.js";import"./chunk-J22HQVSM.js";import"./chunk-HUX4RIIK.js";import"./chunk-VY4NU7UV.js";import"./chunk-YWIZNPZU.js";import"./chunk-4OXYWYAV.js";import"./chunk-6RQXQLJK.js";import{a as di,b as ko}from"./chunk-3JJA42XE.js";import{a as ci,b as yo}from"./chunk-TJZULCOF.js";import{a as Ci,b as vo}from"./chunk-AU3PX3IV.js";import"./chunk-U5OD56XC.js";import"./chunk-AYYGGSE6.js";import"./chunk-NIFLDZE5.js";import"./chunk-PVBCLBDF.js";import{a as Fe,b as No}from"./chunk-6GUPFP5G.js";import{a as ti,b as Eo}from"./chunk-MHXIWPVP.js";import"./chunk-AQDC6WYX.js";import"./chunk-SFCIFWXG.js";import"./chunk-CF5H2NYO.js";import"./chunk-XHG5IVU7.js";import"./chunk-MQV5E5DO.js";import{c as si,d as Po}from"./chunk-QAGHCC2P.js";import"./chunk-O7EIQKZI.js";import"./chunk-HZ3FYHNN.js";import"./chunk-I5DLCAGW.js";import{a as Zn,b as Qn,c as Yn,d as ei}from"./chunk-3WZHGYZ6.js";import"./chunk-BXHIM4XB.js";import{a as ni,b as ii,c as oi}from"./chunk-LIY5Z5DX.js";import"./chunk-IPK2F5DC.js";import"./chunk-H34CH73B.js";import"./chunk-3RF5FXNW.js";import"./chunk-R7PIPRXF.js";import"./chunk-3HFMVEQE.js";import"./chunk-FK25T3QZ.js";import"./chunk-EI7GYDWT.js";import"./chunk-WUDBKBT2.js";import{a as ri,b as To}from"./chunk-7SIU3PC3.js";import{c as Ke,d as pi}from"./chunk-O2PHHKD4.js";import"./chunk-G6GER44T.js";import{b as li,c as fo}from"./chunk-5ADFSENH.js";import{a as st,b as go,d as ai,f as Mo}from"./chunk-CU67UASS.js";import"./chunk-VWMVTC3D.js";import"./chunk-VY7S6CPC.js";import"./chunk-L3LKT7IK.js";import"./chunk-74LRVXWS.js";import"./chunk-GS4DAHJ2.js";import"./chunk-SEPG6I5E.js";import"./chunk-UUTN4GGK.js";import{a as He,b as Io}from"./chunk-7TULFK4B.js";import"./chunk-6UZBGPRN.js";import"./chunk-24W6Z7VZ.js";import"./chunk-J4G6LDJT.js";import"./chunk-GLGWIT7Q.js";import{g as Wn,h as ho}from"./chunk-FOTA36SH.js";import"./chunk-A5GDHMJS.js";import"./chunk-KYW4EFQO.js";import"./chunk-5QBMMN6D.js";import{J as Vn,K as co,L as qn,O as Co,V as jn,W as uo}from"./chunk-HCJKPTGM.js";import{a as rt,b as po,c as _t,d as mo}from"./chunk-XES6EBUH.js";import"./chunk-7IZ7IQFS.js";import"./chunk-U2AYKEFN.js";import"./chunk-7OBMBINE.js";import{D as $n,Da as Ln,E as to,Ea as _o,Ha as Bn,Ia as Jn,J as wn,Ja as Xn,K as no,L as Gn,M as io,P as Ge,Q as oo,R as Hn,S as ao,Z as Fn,_ as lo,o as Rn,p as eo,xa as Kn,ya as ro}from"./chunk-VAXTQMJG.js";import"./chunk-A7N55BD2.js";import{D as zn,E as so,v as Pe,w as Un}from"./chunk-X4TOIQZ5.js";import"./chunk-6CAXAEVI.js";import"./chunk-GNDBXVBS.js";import"./chunk-K7DQ2BDA.js";import{c as fn,d as Li,i as vn,j as ji,o as An,p as Zi,w as Dn,x as Qi}from"./chunk-TTQKVDQ7.js";import{a as kn,b as qi}from"./chunk-XU2EZIUM.js";import"./chunk-OWUVXM77.js";import"./chunk-LSLVPR72.js";import"./chunk-XPG54CHE.js";import{a as bn,b as Wi}from"./chunk-JWWDLNIS.js";import{a as mn,b as un,c as hn,e as In,f as En,g as gn}from"./chunk-Z2XXL3OC.js";import"./chunk-44QRKRNY.js";import"./chunk-QAM7USJC.js";import{b as we,c as xn,d as On}from"./chunk-QCMZCTJ7.js";import{A as Sn,D as Bi,Ia as at,Ja as Xi,Ka as Pn,La as zi,Ta as yn,Ua as Vi,l as Tn,n as Ui}from"./chunk-3HOIF7UE.js";import{a as Se,b as Ji}from"./chunk-NHBFTOZL.js";import{t as lt,u as Yi}from"./chunk-SX3LWQYR.js";import{l as rn,n as _n,o as sn,p as cn}from"./chunk-63XPFYYJ.js";import"./chunk-NDUJ7JZN.js";import{f as en,k as tn,n as nn,s as on,t as an,u as ln}from"./chunk-AA5DU7ME.js";import"./chunk-KWRIU4RP.js";import{n as ot,o as Ki}from"./chunk-H7BNAZPX.js";import{b as dn,c as Cn,d as pn}from"./chunk-SUGUVUND.js";import{C as wi,Va as Nn,Wa as Fi,u as Zt,y as Qt,z as Yt}from"./chunk-RTQW647K.js";import{j as Mn,q as Gi}from"./chunk-UY2AHKUP.js";import{h as it,i as Hi}from"./chunk-LADI2IVP.js";import{I as qt,J as Ri,e as fe,f as Oi,k as zt,l as Di,o as Te,p as Vt}from"./chunk-U3IAJHAB.js";import{r as jt,s as Wt,y as $i}from"./chunk-YA4WYHG7.js";import{$c as Kt,Ac as $t,Bc as wt,Ca as v,Cc as We,Db as a,Fc as U,Fd as Ut,G as Pt,Gd as x,H as yt,Hd as X,Ia as R,Id as Q,J as kt,Ja as $,Jd as tt,L as vt,Lc as M,Ld as Bt,Md as Jt,N as Ve,Nc as Gt,Oc as Ht,Qc as G,Qd as Xt,S as qe,Sc as l,Ub as Dt,Va as he,Xa as xt,Xb as De,Zb as Rt,Zd as nt,_a as Oe,_b as Re,_c as Ft,aa as bt,ab as Ot,ad as Me,bd as H,cd as Ne,fd as b,gd as q,hd as ne,k as ze,ke as z,la as Ae,mc as m,md as Ze,nd as Qe,oa as At,oc as u,od as Ye,q as Tt,qa as B,qc as $e,ra as je,rc as Ee,sc as ge,tc as d,uc as s,vc as c,wc as S,wd as Lt,x as be,xa as xe,xb as Ie,xd as _e,y as St,yd as J,zd as et}from"./chunk-7WH55ISQ.js";import"./chunk-HEWAIBKK.js";import{G as ft,e as Xe,m as gt,o as Mt,x as Nt}from"./chunk-VWJE3CXY.js";import{a as It,b as Et,e as ue}from"./chunk-XN77Q2IT.js";var ct,fi=ue(()=>{"use strict";z();On();Oi();go();Ri();pi();fo();Mo();Oe();z();ct=(()=>{class n extends li{constructor(){super(...arguments),this.entityCache=v(Ke),this._checkInMap=he(ne
3w Map()),this._loaded=he(!1),this.checkInMap=this._checkInMap.asReadonly(),this.checkInMap$=we(this.checkInMap),this.loaded=this._loaded.asReadonly();}onMeetingContext(e,t){this._checkInMap.set(new Map()),this._loaded.set(!1);let i=`/topic/admin/web/meeting/${e}/check-in/data`;this.stomp.watch(i).pipe(ai(i),At(t)).subscribe(o=>{this.processPayload(o);});}processPayload(e){let t=new Map(this._checkInMap());switch(e.type){case st.Full:{t.clear();for(let i of e.data)i.entityDto!=null&&t.set(i.entityIdPk,i.entityDto);this._loaded.set(!0),this.entityCache.hydrate(t.values()),this.entityCache.hydrateLicenses(t.values());break;}case st.Update:{let i=[];for(let o of e.data)switch(o.op){case fe.Create:case fe.Update:{o.entityDto!=null&&(t.set(o.entityIdPk,o.entityDto),i.push(o.entityDto));break;}case fe.Delete:{t.delete(o.entityIdPk);break;}case fe.Nop:break;default:qt(o.op);}i.length>0&&(this.entityCache.hydrate(i),this.entityCache.hydrateLicenses(i));break;}}this._checkInMap.set(t);}static{this.ɵfac=(()=>{let e;return function(i){return(e||(e=Ot(n)))(i||n);};})();}static{this.ɵprov=xe({token:n,factory:n.ɵfac});}}return n;})();});var Ti,Si=ue(()=>{"use strict";z();ft();Ui();Bi();oo();ao();Di();Vi();Co();co();Un();z();Ti=(()=>{class n{constructor(){this.sortUtil=v(Hn),this.stageGroupPipe=v(Vn);}build(e){let{checkInMap:t,meList:i,defs:o,navSort:_,groupSort:E,nameDisplayOpts:g,athleteMap:T,relayTeamMap:I,clubMap:f,licenseMap:N,showLicense:O}=e,w=o.sportEventsMap,V=new Map();for(let p of i)V.set(p.meetingEventIdPk,p);let K=new Map();for(let p of t.values()){let h=V.get(p.meetingEventIdFk);if(h==null||h.visibility===Tn.Gone)continue;let k=h.branchUuid,A=K.get(k);A==null&&(A=[],K.set(k,A)),A.push(p);}let F=[];for(let[,p]of K){let h=V.get(p[0].meetingEventIdFk);h!=null&&F.push(h);}F=this.sortUtil.sortMeetingEvents(F,o,!1).filter(p=>!p.combinedParent),F.sort((p,h)=>{let k=w.get(p.eventIdFk),A=w.get(h.eventIdFk);return(k.relay?1:-1)-(A.relay?1:-1);}),_===Pe.Start?F.sort((p,h)=>h.startDateTime.until(p.startDateTime,Xe.MINUTES)):_===Pe.Deadline&&F.sort((p,h)=>{let k=p.startDateTime.minusSeconds(p.checkInDeadline);return h.startDateTime.minusSeconds(h.checkInDeadline).until(k,Xe.MINUTES);});let Y=[],ie=[],se=new Map(),ee=new Map(),j=new Map(),oe=new Map(),ae=new Map(),te=new Map(),W=new Map(),le=new Map(),re=new Map(),ce=F.map(p=>p.startDateTime.toLocalDate()).filter((p,h,k)=>k.findIndex(A=>A.isEqual(p))===h).sort((p,h)=>p.compareTo(h)),ye=ce.length>1,Z=new Map();for(let p of F)Z.set(p.branchUuid,p);let ke=Array.from(Z.values()),de=new Map();for(let[p,h]of K){let k=h.every(D=>D.checkedIn||D.startStatus===Ge.Scratched),A=h.every(D=>!D.checkedIn&&D.startStatus!==Ge.Scratched),L=!k&&!A?"some":k?"all":"none";de.set(p,L);}let Ce=new Set();for(let p of t.values())p.clubIdFk!=null&&Ce.add(p.clubIdFk);let ve=Array.from(Ce).map(p=>f.get(p)).filter(zt).sort((p,h)=>this.sortUtil.compareClubs(p,h)),pe=new Map(),me=new Map();for(let p of F){let h=p.branchUuid,A=o.sportEventsMap.get(p.eventIdFk).relay,L=K.get(h)??[];se.set(h,A),Y.push({type:"event-head",branchUUID:h,meId:p.meetingEventIdPk,meetingEvent:p,renderGender:!1});let D;if(E){let y=L.map(P=>P.groupNo).filter(yn()).sort((P,C)=>P-C);D=[];for(let P of y){let C=L.filter(Be=>Be.groupNo===P);this.sortCheckInItemsByName(C,T,I,g),D.push(...C);}}else D=[...L],this.sortCheckInItemsByName(D,T,I,g);for(let y of D){let P=y.athleteIdFk!=null?T.get(y.athleteIdFk):void 0,C=y.relayTeamIdFk!=null?I.get(y.relayTeamIdFk):void 0,Be=y.clubIdFk!=null?f.get(y.clubIdFk)??void 0:void 0,Je="";if(O&&P!=null){let ht=N.get(P.athleteIdPk)??[];Je=ht.length>0?ht[0].license:"";}let xi=y.startStatus===Ge.Scratched,pt=y.checkedIn?"CheckedIn":xi?"Scratched":"Pending",mt=y.groupNo===0?void 0:this.stageGroupPipe.transform(y.groupNo,p.eventStage)??void 0,ut=y.lane==null?void 0:qn(y.lane,y.laneRow,y.laneStacked);P!=null&&(pe.set(P.athleteIdPk,{first:P,second:Je}),W.has(P.athleteIdPk)||(W.set(P.athleteIdPk,[]),le.set(P.athleteIdPk,new Map()),re.set(P.athleteIdPk,new Map())),te.has(h)||te.set(h,[]),W.get(P.athleteIdPk).push(h),te.get(h).push(P.athleteIdPk),le.get(P.athleteIdPk).set(h,pt),re.get(P.athleteIdPk).set(h,{group:mt,lane:ut})),C!=null&&(me.set(C.relayTeamIdPk,C),j.has(C.relayTeamIdPk)||(j.set(C.relayTeamIdPk,[]),oe.set(C.relayTeamIdPk,new Map()),ae.set(C.relayTeamIdPk,new Map())),ee.has(h
3)||ee.set(h,[]),j.get(C.relayTeamIdPk).push(h),ee.get(h).push(C.relayTeamIdPk),oe.get(C.relayTeamIdPk).set(h,pt),ae.get(C.relayTeamIdPk).set(h,{group:mt,lane:ut})),Y.push({type:"event-item",branchUUID:h,athlete:P,license:Je,relayTeam:C,club:Be,meId:p.meetingEventIdPk,meetingEvent:p,renderGender:p.gender===Sn.Mixed});}Y.push({type:"spacer",branchUUID:h,renderGender:!1});}return Array.from(pe.values()).sort((p,h)=>this.sortUtil.compareAthletesByName(p.first,h.first,g)).forEach(p=>{let h=p.first.athleteIdPk;W.get(h).forEach(k=>{let A=Z.get(k),D=(K.get(k)??[]).find(P=>P.athleteIdFk===h),y=D?.clubIdFk!=null?f.get(D.clubIdFk)??void 0:void 0;ie.push({type:"participant-item",branchUUID:k,athlete:p.first,license:p.second,club:y,meId:A.meetingEventIdPk,meetingEvent:A,renderGender:!0});});}),Array.from(me.values()).sort((p,h)=>this.sortUtil.compareRelayTeams(p,h)).forEach(p=>{j.get(p.relayTeamIdPk).forEach(h=>{let k=Z.get(h),L=(K.get(h)??[]).find(y=>y.relayTeamIdFk===p.relayTeamIdPk),D=L?.clubIdFk!=null?f.get(L.clubIdFk)??void 0:void 0;ie.push({type:"participant-item",branchUUID:h,relayTeam:p,club:D,meId:k.meetingEventIdPk,meetingEvent:k,renderGender:!0});});}),{seMap:w,viewByEvent:Y,viewByParticipant:ie,branchSample:Z,branchStatus:de,branchSampleList:ke,days:ce,multiDay:ye,isRelayMap:se,clubs:ve,noParticipants:F.length===0,branchesPerAthlete:W,athletesPerBranch:te,athleteStatusMap:le,athleteGroupLaneMap:re,branchesPerRelay:j,relaysPerBranch:ee,relayStatusMap:oe,relayGroupLaneMap:ae};}sortCheckInItemsByName(e,t,i,o){e.sort((_,E)=>{let g=_.athleteIdFk!=null?t.get(_.athleteIdFk):void 0,T=E.athleteIdFk!=null?t.get(E.athleteIdFk):void 0;if(g!=null&&T!=null)return this.sortUtil.compareAthletesByName(g,T,o);let I=_.relayTeamIdFk!=null?i.get(_.relayTeamIdFk):void 0,f=E.relayTeamIdFk!=null?i.get(E.relayTeamIdFk):void 0;return I!=null&&f!=null?this.sortUtil.compareRelayTeams(I,f):0;});}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵprov=xe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();});var Pi,yi=ue(()=>{"use strict";z();je();_o();Oe();eo();Vt();z();Pi=(()=>{class n{constructor(){this.ses=v(Ln),this.sportEventNamePipe=v(Rn);}transform(e,t,i){return i!=null&&(e=e.filter(o=>o.startDateTime.toLocalDate().isEqual(i))),t=Te(t).toLowerCase(),t===""?Tt(e):this.ses.sportEventMap$.pipe(be(o=>e.filter(_=>{let E=o.get(_.eventIdFk),g=o.get(_.combinedSportEventIdFk??0);return this.sportEventNamePipe.transform(E,g).toLowerCase().indexOf(t)>=0;})));}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵpipe=De({name:"branchListFilter",type:n,pure:!0});}}return n;})();});var ki,vi=ue(()=>{"use strict";z();ho();Vt();Xn();z();ki=(()=>{class n{constructor(){this.participantUtil=v(Wn);}transform(e,t,i,o,_,E,g,T,I,f){if(o==null&&_===""&&E==null&&g==null&&f==null)return e;for(_=Te(_).toLowerCase(),e=e.filter(N=>f==null||N.meetingEvent==null||N.meetingEvent.startDateTime.toLocalDate().isEqual(f)).filter(N=>o==null||N.branchUUID===o).filter(N=>{if(N.type==="event-head"||N.type==="spacer")return!0;let O=Te(this.participantUtil.participantName3(Jn(t),N.athlete,N.relayTeam)).toLowerCase(),w=T.getBib(N.athlete?.athleteIdPk,N.relayTeam?.relayTeamIdPk,N.branchUUID),V=O.indexOf(_)>=0||w.toLowerCase().indexOf(_)>=0,K=E==null||N.club?.clubIdPk===E.clubIdPk,F=g==null||I.teamName(N.athlete?.athleteIdPk,N.relayTeam?.relayTeamIdPk).includes(g.longName);return O===""||V&&K&&F;}).filter((N,O,w)=>!(N.type==="event-head"&&(w.at(O+1)==null||w[O+1].type==="spacer"))).filter((N,O,w)=>!(N.type==="spacer"&&(O===0||w.at(O+1)==null||w[O+1].type==="spacer")));e.at(0)!=null&&e[0].type==="spacer";)e.splice(0,1);return e;}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵpipe=De({name:"checkInListFilter",type:n,pure:!0});}}return n;})();});function zo(n,r){if(n&1&&(S(0,"mat-icon",58),b(1," \xA0 ")),n&2){let e=l(6);d("svgIcon",e.svg.check_circle);}}function Vo(n,r){if(n&1&&(S(0,"mat-icon",59),b(1," \xA0 ")),n&2){let e=l(2),t=l(4);H("color",e==="past"?t.colors.colorError:e==="close"?t.colors.colorWarn:void 0),d("svgIcon",t.svg.pending);}}function qo(n,r){if(n&1&&(S(0,"mat-icon",59),b(1," \xA0 ")),n&2){let e=l(2),t=l(4);H("color",e==="close"?t.colors.colorWarn:t.colors.colorError),d("svgIcon",t.svg.error);}}function jo(n,r){if(n&1&&(m(0,zo,2,1),m(1,Vo,2,3),m(2,qo,2,3)),n&2){let e=r,t=l();u(e==="all"?0:-1),a(),u(e==="some"?1:-1),a(),u(e==="none"&&(t==="past"||t==="close")?2:-1);}}function Wo(n,r){if(n&1&&m(0,jo,3,3),n&2){let e,t=l(2),i=l(2);u((e=i.branchStatus.get(t.branchUuid))?0:-1,e);}}function Zo(n,r){if(n&1&&m(0,Wo,1,1),n&2){let e,t=l(),i=l(2);u((e=i.checkInDeadlineStatus(r,t))?0:-1,e);}}function Qo(n,r){if(n&1&&m(0,Zo,1,1),n&2){let e,t=l().meeting,i=l();u((e=i.castMeeting(t))?0:-1,e);}}function Yo(n,r){if(n&1&&m(0,Qo,1,1),n&2){let e,t=r.me,i=l();u((e=i.castMe(t))?0:-1,e);}}function ea(n,r){if(n&1){let e=U();s(0,"button",60),G("click",function(){let i=R(e),o=l(2);return $(o.toggleAll("CheckedIn",i));}),M(1,11),c(),s(2,"button",60),G("click",function(){let i=R(e),o=l(2);return $(o.toggleAll("Scratched",i));}),M(3,12),c(),S(4,"mat-divider"),s(5,"button",60),G("click",function(){let i=R(e),o=l(2);
3return $(o.toggleAll("Pending",i));}),M(6,13),c();}if(n&2){let e=l().item,t=l();d("disabled",!t.canModifyPending(e,"from-pending")),a(2),d("disabled",!t.canModifyPending(e,"from-pending")),a(3),d("disabled",!t.canModifyPending(e,"to-pending"));}}function ta(n,r){if(n&1&&m(0,ea,7,3),n&2){let e,t=r.item,i=l();u((e=i.castItem(t))?0:-1,e);}}function na(n,r){n&1&&(s(0,"td"),M(1,14),c());}function ia(n,r){n&1&&(s(0,"td"),M(1,15),c());}function oa(n,r){if(n&1&&(s(0,"tbody",61)(1,"tr",63),m(2,na,2,0,"td"),m(3,ia,2,0,"td"),c()()),n&2){let e=l(),t=l(2);a(2),u(t.noParticipants?2:-1),a(),u(!t.noParticipants&&e.length===0?3:-1);}}function aa(n,r){if(n&1&&S(0,"td",65),n&2){let e=l(4);H("background","none")("border-bottom","none"),d("colSpan",e.colSpan("spacer"));}}function la(n,r){if(n&1&&(We(0,68),S(1,"span",69),x(2,"meBranchNameAsync"),x(3,"async"),s(4,"span"),M(5,16),c(),s(6,"span"),b(7),x(8,"dateTime"),c(),s(9,"span"),b(10),c(),s(11,"span"),M(12,17),c(),s(13,"span"),b(14),x(15,"dateTime"),c()),n&2){let e=r,t=l(2).$implicit,i=l(3),o=Me(1);d("ngTemplateOutlet",o)("ngTemplateOutletContext",et(25,Ai,e,i.meeting)),a(),d("routerLink",_e(28,dt))("relativeTo",i.ar)("queryParams",J(29,Ct,t.meId))("innerHTML",X(3,17,X(2,15,e)),Ie),a(3),H("margin-left",12,"px"),a(2),H("color",i.colors.greyBlue),a(),q(Q(8,19,e.startDateTime,i.headerTimeFormat())),a(3),q(i.ts.INTERPUNCT_SEP),a(3),H("color",i.colors.greyBlue),a(),q(Q(15,22,e.startDateTime.minusSeconds(e.checkInDeadline),i.headerTimeFormat()));}}function ra(n,r){if(n&1&&(s(0,"td",65),m(1,la,16,31),c(),s(2,"td",66)(3,"button",67),S(4,"mat-icon",59),c()()),n&2){let e,t=l().$implicit,i=l(3),o=Me(4);H("font-weight",500),d("colSpan",i.colSpan("event-header")),a(),u((e=i.getBranchSample(t.branchUUID))?1:-1,e),a(),H("text-align","right"),a(),d("matMenuTriggerFor",o)("matMenuTriggerData",J(9,bi,t)),a(),d("svgIcon",i.svg.more_vert);}}function _a(n,r){if(n&1&&S(0,"rs-athlete-link",71),n&2){let e=l(2).$implicit,t=l(3);d("athlete",r)("nameOpts",t.athleteNameDisplayOpts())("withGender",e.renderGender);}}function sa(n,r){if(n&1&&S(0,"rs-relay-team-link",72),n&2){let e=l(2).$implicit,t=l(3);d("relayTeam",r)("athleteNameOpts",t.athleteNameDisplayOpts())("withGender",e.renderGender);}}function ca(n,r){if(n&1&&(s(0,"span")(1,"span",73),M(2,18),c(),b(3),c()),n&2){let e=l(3).$implicit;a(3),ne(" ",e.license);}}function da(n,r){if(n&1&&(s(0,"td",70),m(1,ca,4,1,"span"),c()),n&2){let e=l(2).$implicit;a(),u(e.license&&e.license!==""?1:-1);}}function Ca(n,r){if(n&1&&(We(0,68),S(1,"span",69),x(2,"meBranchNameAsync"),x(3,"async")),n&2){let e=r,t=l(3).$implicit,i=l(3),o=Me(1);d("ngTemplateOutlet",o)("ngTemplateOutletContext",et(10,Ai,e,i.meeting)),a(),d("routerLink",_e(13,dt))("relativeTo",i.ar)("queryParams",J(14,Ct,t.meId))("innerHTML",X(3,8,X(2,6,e)),Ie);}}function pa(n,r){if(n&1&&(s(0,"td",70),m(1,Ca,4,16),c()),n&2){let e,t=l(2).$implicit,i=l(3);a(),u((e=i.getItemMeetingEvent(t))?1:-1,e);}}function ma(n,r){if(n&1&&S(0,"span",76),n&2){let e=l();d("innerHTML",e.bib,Ie);}}function ua(n,r){n&1&&(s(0,"span"),M(1,21),c());}function ha(n,r){if(n&1&&(s(0,"div",74),x(1,"athleteName"),x(2,"relayTeamName"),s(3,"span",75),M(4,20),c(),m(5,ma,1,1,"span",76),m(6,ua,2,0,"span"),c()),n&2){let e=r,t=l(3).$implicit,i=l(3);d("routerLink",_e(10,Ko))("relativeTo",i.ar)("queryParams",J(11,Lo,Q(1,5,t.athlete,i.athleteNameDisplayOpts())||X(2,8,t.relayTeam))),a(5),u(e.bib!==""?5:-1),a(),u(e.bib===""?6:-1);}}function Ia(n,r){if(n&1&&(s(0,"span")(1,"span",75),M(2,22),c(),b(3),c()),n&2){let e=l(2);a(3),ne("\xA0",e.group);}}function Ea(n,r){n&1&&(s(0,"span"),b(1,",\xA0"),c());}function ga(n,r){if(n&1&&(s(0,"span")(1,"span",75),M(2,23),c(),b(3),c()),n&2){let e=l(2),t=l(3).$implicit,i=l(3);a(2),Gt(i.laneOrderLabel(t)),Ht(2),a(),ne("\xA0",e.lane);}}function Ma(n,r){if(n&1&&(s(0,"div"),m(1,Ia,4,1,"span"),m(2,Ea,2,0,"span"),m(3,ga,4,2,"span"),c()),n&2){let e=l();a(),u(e.group!=null?1:-1),a(),u(e.group!=null&&e.lane!=null?2:-1),a(),u(e.lane!=null?3:-1);}}function Na(n,r){if(n&1&&m(0,Ma,4,3,"div"),n&2){let e=r;u(e.group!=null||e.lane!=null?0:-1);}}function fa(n,r){if(n&1&&(s(0,"span",78)(1,"span"),M(2,24),c(),b(3),c()),n&2){let e=r,t=l(4).$implicit,i=l(3);Ne("text-link",e.teamId!=null),d("routerLink",e.teamId!=null?_e(8,Bo):null)("relativeTo",i.ar)("queryParams",J(9,Jo,e.teamId)),a(),H("font-weight",500),a(2),ne("",i.participantTeamNameUtil.teamName(t.athlete==null?null:t.athlete.athleteIdPk,t.relayTeam==null?null:t.relayTeam.relayTeamIdPk)," ");}}function Ta(n,r){if(n&1&&(s(0,"td",70),m(1,fa,4,11,"span",77),c()),n&2){let e,t=l(3).$implicit,i=l(3);a(),u((e=J(1,Uo,i.participantTeamNameUtil.firstTeamId(t.athlete==null?null:t.athlete.athleteIdPk,t.relayTeam==null?null:t.relayTeam.relayTeamIdPk)))?1:-1,e);}}function Sa(n,r){if(n&1&&(s(0,"span"),b(1),c()),n&2){let e=l(3).$implicit;a(),q(e.club==null?null:e.club.shortName);}}function Pa(n,r){n&1&&(s(0,"span"),M(1,25),c());}function ya(n,r){if(n&1&&(s(0,"td",70),m(1,ha,7,13,"div",74),m(2,Na,1,1),c(),m(3,Ta,2,3,"td",70),s(4,"td",70)(5,"span",74)(6,"span"),M(7,19),c(),m(8,Sa,2,1,"span"),m(9,Pa,2,0,"span"),c()()),n&2){let e,t,i=l(2).$implicit,o=l(3);a(),u((e=J(10,Fo,o.bibUtil.getBib(i.athlete==null?null:i.athlete.athleteIdPk,i.relayTeam==null?null:i.relayTeam.relayTeamIdPk,i.branchUUID)))?1:-1,e),a(),u((t=o.getGroupLane(i))?2
3:-1,t),a(),u(o.meeting!=null&&o.meeting.enableTeamCompetitions?3:-1),a(2),d("routerLink",_e(12,dt))("relativeTo",o.ar)("queryParams",J(13,Ct,i.meId)),a(),H("font-weight",500),a(2),u(i.club!=null&&i.club.shortName?8:-1),a(),u(i.club==null?9:-1);}}function ka(n,r){if(n&1&&(s(0,"button",67),S(1,"mat-icon",59),c()),n&2){let e=l(3).$implicit,t=l(3),i=Me(4);d("matMenuTriggerFor",i)("matMenuTriggerData",J(3,bi,e)),a(),d("svgIcon",t.svg.more_vert);}}function va(n,r){if(n&1){let e=U();s(0,"td",66)(1,"button",79),G("click",function(){R(e);let i=l(2).$implicit,o=l(3);return $(o.toggleStatus("CheckedIn",i));}),S(2,"mat-icon",59),c(),s(3,"button",79),G("click",function(){R(e);let i=l(2).$implicit,o=l(3);return $(o.toggleStatus("Scratched",i));}),S(4,"mat-icon",59),c(),s(5,"button",80),G("click",function(){R(e);let i=l(2).$implicit,o=l(3);return $(o.openCheckinJournal(i));}),S(6,"mat-icon",59),c(),m(7,ka,2,5,"button",67),c();}if(n&2){let e=r,t=l(2),i=t.$implicit,o=t.index,_=l(),E=l(2);a(),H("opacity",e==="Scratched"?.4:1),d("disabled",e==="Processing"),a(),Ne("checked-in",e==="CheckedIn"),d("svgIcon",E.svg.check_circle),a(),H("opacity",e==="CheckedIn"?.4:1),d("disabled",e==="Processing"),a(),Ne("scratched",e==="Scratched"),d("svgIcon",E.svg.block),a(2),d("svgIcon",E.svg.receipt_long),a(),u(i.type==="participant-item"&&E.firstRowOfParticipant(_,o)?7:-1);}}function ba(n,r){if(n&1&&(s(0,"td",70),m(1,_a,1,3,"rs-athlete-link",71),m(2,sa,1,3,"rs-relay-team-link",72),c(),m(3,da,2,1,"td",70),m(4,pa,2,1,"td",70),m(5,ya,10,15),m(6,va,8,14,"td",66)),n&2){let e,t,i,o=l().$implicit,_=l(3);a(),u((e=o.athlete)?1:-1,e),a(),u((t=o.relayTeam)?2:-1,t),a(),u(_.showLicense?3:-1),a(),u(o.type==="participant-item"?4:-1),a(),u(o.type==="participant-item"||o.type==="event-item"?5:-1),a(),u((i=_.getStatus(o))?6:-1,i);}}function Aa(n,r){if(n&1&&(s(0,"tr"),m(1,aa,1,5,"td",64),m(2,ra,5,11),m(3,ba,7,6),c()),n&2){let e=r.$implicit,t=r.first,i=r.last,o=r.index,_=l();H("background",e.type==="spacer"?"none":void 0)("border-bottom",e.type==="spacer"?"none":void 0),Ne("rs-outline-top__nested",t||_[o-1].type==="spacer")("rs-outline-bottom__nested",i||_[o+1].type==="spacer")("rs-outline-middle__nested",e.type!=="spacer"&&!t&&!i&&_[o-1].type!=="spacer"&&_[o+1].type!=="spacer"),a(),u(e.type==="spacer"&&!i?1:-1),a(),u(e.type==="event-head"?2:-1),a(),u(e.type==="event-item"||e.type==="participant-item"?3:-1);}}function xa(n,r){if(n&1&&(m(0,oa,4,2,"tbody",61),s(1,"tbody"),Re(2,Aa,4,13,"tr",62),c()),n&2){let e=r,t=l(2);u(t.noParticipants||e.length===0?0:-1),a(2),d("cdkVirtualForOf",e)("cdkVirtualForTrackBy",t.trackBy);}}function Oa(n,r){if(n&1&&(s(0,"table",45),m(1,xa,3,3),x(2,"checkInListFilter"),c()),n&2){let e,t=l();a(),u((e=Bt(2,1,Ut(12,Ho,[t.currentView(),t.meeting,t.view,t.selectedBranchUUID,t.participantFilterCtrl.value,t.clubCtrl.value,t.teamCtrl.value,t.bibUtil,t.participantTeamNameUtil,t.filteredDate])))?1:-1,e);}}function Da(n,r){if(n&1){let e=U();s(0,"rs-form-field-compat",48)(1,"rs-form-field-label"),M(2,26),c(),s(3,"mat-radio-group",81),G("ngModelChange",function(){R(e);let i=l();return $(i.viewChanged());}),s(4,"mat-radio-button",52),M(5,27),c(),s(6,"mat-radio-button",52),M(7,28),c(),s(8,"mat-radio-button",52),M(9,29),c()()();}if(n&2){let e=l();a(3),d("formControl",e.navSortCtrl),a(),d("value",e.CheckInNavSort.Name)("disableRipple",!0),a(2),d("value",e.CheckInNavSort.Start)("disableRipple",!0),a(2),d("value",e.CheckInNavSort.Deadline)("disableRipple",!0);}}function Ra(n,r){if(n&1){let e=U();s(0,"rs-form-field-compat",48)(1,"rs-form-field-label"),M(2,30),c(),s(3,"mat-radio-group",81),G("ngModelChange",function(){R(e);let i=l();return $(i.viewChanged());}),s(4,"mat-radio-button",52),M(5,31),c(),s(6,"mat-radio-button",52),M(7,32),c()()();}if(n&2){let e=l();a(3),d("formControl",e.groupSortCtrl),a(),d("value",!1)("disableRipple",!0),a(2),d("value",!0)("disableRipple",!0);}}function $a(n,r){if(n&1&&(s(0,"rs-select-option",83),b(1),x(2,"teamName"),c()),n&2){let e=r.$implicit,t=l(2);d("value",e),a(),q(Q(2,2,e,t.TeamNameVariant.Short));}}function wa(n,r){if(n&1&&(s(0,"rs-form-field-compat",48)(1,"rs-form-field-label"),M(2,33),c(),s(3,"rs-select-base",82)(4,"rs-select-option",83),b(5,"All"),c(),Ee(6,$a,3,5,"rs-select-option",83,$e),c()()),n&2){let e=l();a(3),d("formControlCompat",e.teamCtrl),a(),d("value",void 0),a(2),ge(e.membershipTeams());}}function Ga(n,r){if(n&1&&(s(0,"rs-select-option",83),b(1),c()),n&2){let e=r.$implicit;d("value",e),a(),q(e.shortName);}}function Ha(n,r){if(n&1&&(s(0,"rs-form-field-compat",48)(1,"rs-form-field-label"),M(2,34),c(),s(3,"rs-select-base",84)(4,"rs-select-option",83),b(5,"All"),c(),Ee(6,Ga,2,2,"rs-select-option",83,$e),c()()),n&2){let e=l();a(3),d("formControlCompat",e.clubCtrl),a(),d("value",void 0),a(2),ge(e.clubs);}}function Fa(n,r){if(n&1&&S(0,"rs-search-box-mk2",55),n&2){let e=l();d("formControlCompat",e.eventFilterCtrl);}}function Ka(n,r){if(n&1&&(s(0,"rs-select-option",83),b(1),x(2,"dateTime"),c()),n&2){let e=r.$implicit;d("value",e),a(),q(Q(2,2,e,"DateOnly"));}}function La(n,r){if(n&1){let e=U();s(0,"rs-form-field-compat",48)(1,"rs-form-field-label"),M(2,35),c(),s(3,"rs-select-base",85),G("valueChange",function(i){R(e);let o=l();return $(o.updateFilteredDate(i??null));}),s(4,"rs-select-option",83),M(5,36),c(),Ee(6,Ka,3,5,"rs-select-option",83,Xo),c()();}if(n&2){let e=l();a(3),d("value",e.filteredDate)("compareByBi",e.compareByEpochDay),a(),d("value",null),a(2),ge(e.days);}}function Ua(n,r){if(n&1){let e=U();s(0,"rs-secondary-nav-item",86),G("click",function(){R(e);let i=l(2);return $(i.showNav=!0);}),s(1,"span",87),M(2,38),c()();}n&2&&d("active",!1);}function Ba(n,r){if(n&1){let e=U();s(0,"rs-secondary-nav-item",86),G("click",function(){R(e);let i=l(2);return $(i.showNav=!1);}),s(1,"span",87),M(2,39),c()();}n&2&&d("active",!1);}function Ja(n,r){if(n&1&&(s(0,"div",89),b(1),c()),n&2){let e=l().$implicit;a(),q(e.label);}}function Xa(n,r){if(n&1&&S(0,"mat-icon",94),n&2){let e=l(),t=l(4);H("color",e==="close"?t.colors.colorWarn:e==="past"?t.colors.colorError:void 0),d("r
3sMatIconSize",12)("svgIcon",t.svg.more_horiz);}}function za(n,r){if(n&1&&S(0,"mat-icon",94),n&2){let e=l(5);d("rsMatIconSize",12)("svgIcon",e.svg.check);}}function Va(n,r){if(n&1&&S(0,"mat-icon",94),n&2){let e=l(),t=l(4);H("color",e==="close"?t.colors.colorWarn:t.colors.colorError),d("rsMatIconSize",12)("svgIcon",t.svg.priority_high);}}function qa(n,r){if(n&1&&($t(0,92),m(1,Xa,1,4,"mat-icon",93),m(2,za,1,2,"mat-icon",94),m(3,Va,1,4,"mat-icon",95),wt()),n&2){let e=r,t=l().$implicit,i=l(3);a(),u(i.branchStatus.get(t.branchUuid)==="some"?1:-1),a(),u(i.branchStatus.get(t.branchUuid)==="all"?2:-1),a(),u(i.branchStatus.get(t.branchUuid)==="none"&&(e==="close"||e==="past")?3:-1);}}function ja(n,r){if(n&1){let e=U();s(0,"rs-secondary-nav-item",86),G("click",function(){let i=R(e).$implicit,o=l(3);return $(o.select(i));}),m(1,Ja,2,1,"div",89),s(2,"div",90),b(3),x(4,"sportEventNameNum"),x(5,"async"),c(),s(6,"div",91),S(7,"span",76),x(8,"gender"),x(9,"safeHtml"),b(10),x(11,"ageGroupNum"),x(12,"async"),c(),m(13,qa,4,3,"ng-container",92),c();}if(n&2){let e,t=r.$implicit,i=l(3);d("active",i.selectedBranchUUID===t.branchUuid),a(),u(t.label!==""?1:-1),a(2),ne(" ",X(5,9,Q(4,6,t.eventIdFk,t.combinedSportEventIdFk))," "),a(4),d("innerHTML",X(9,15,tt(8,11,t.gender,"header",!0)),Ie),a(3),ne(" \xB7 ",X(12,20,Q(11,17,t.ageGroupIdFk,t.gender))," "),a(3),u((e=i.checkInDeadlineStatus(i.meeting,t))?13:-1,e);}}function Wa(n,r){if(n&1&&(Ee(0,ja,14,22,"rs-secondary-nav-item",88,$e),x(2,"branchListFilter"),x(3,"async")),n&2){let e=l(2);ge(X(3,4,tt(2,0,e.branchSampleList,e.eventFilterCtrl.value,e.filteredDate)));}}function Za(n,r){if(n&1){let e=U();s(0,"rs-secondary-nav-item",86),G("click",function(){R(e);let i=l();return $(i.select(void 0));}),s(1,"span",87),M(2,37),c()(),m(3,Ua,3,1,"rs-secondary-nav-item",88),m(4,Ba,3,1,"rs-secondary-nav-item",88),m(5,Wa,4,6);}if(n&2){let e=l();d("active",e.selectedBranchUUID==null),a(3),u(e.isHackMeeting()&&!e.showNav?3:-1),a(),u(e.isHackMeeting()&&e.showNav?4:-1),a(),u(!e.isHackMeeting()||e.showNav?5:-1);}}function Qa(n,r){if(n&1){let e=U();s(0,"button",56),G("click",function(){R(e);let i=l();return $(i.printCode());}),M(1,40),c();}}var Ho,bi,Ai,dt,Ct,Fo,Ko,Lo,Uo,Bo,Jo,Xo,t_,Ya=ue(()=>{Un();fi();Si();pi();To();Ro();wi();$i();z();ln();cn();oi();pn();gn();ei();Gi();lo();No();So();Xn();Yi();wo();Do();Xi();$o();zi();Hi();ft();uo();yo();Io();Li();Qi();qi();ko();Po();Eo();bo();ji();Zi();Fi();Ki();ro();Ao();po();so();to();Oo();mo();Wi();xo();vo();je();je();Oe();Oe();Go();yi();vi();Ji();io();no();On();z();pn();gn();oi();cn();ei();ln();Ho=(n,r,e,t,i,o,_,E,g,T)=>[n,r,e,t,i,o,_,E,g,T],bi=n=>({item:n}),Ai=(n,r)=>({me:n,meeting:r}),dt=()=>["..","start-lists"],Ct=n=>({meIdPk:n}),Fo=n=>({bib:n}),Ko=()=>["..","bib-allocation"],Lo=n=>({f:n}),Uo=n=>({teamId:n}),Bo=()=>["..","teams"],Jo=n=>({view:"Teams",mtId:n}),Xo=(n,r)=>r.toEpochDay();t_=(()=>{class n extends jn{constructor(){super(),this.bibUtilFactory=v(Ei),this.bibAllocationService=v(_i),this.teamMembershipFeed=v(Ni),this.ms=v(Bn),this.checkInFeed=v(ct),this.entityCache=v(Ke),this.meetingEventFeed=v(ri),this.viewModelBuilder=v(Ti),this.teamUtil=v(Gn),this.athleteNamePipe=v(rt),this.relayTeamNamePipe=v(_t),this.showNav=!1,this.journalTrigger=nt.required(Le),this.CheckInMode=Fn,this.genDialogTrigger=nt.required(He),this.meeting=null,this.meetingId=0,this.selectedBranchUUID=this.ar.snapshot.queryParamMap.get("branchUUID")??void 0,this.meIdPk=Nn(this.ar.snapshot.queryParamMap.get("meIdPk")??""),this.view=this.selectedBranchUUID!=null?"event":this.uss.Settings.CheckIn.view.currentValue,this.seMap=new Map(),this.initial=[],this.viewByEvent=this.initial,this.viewByParticipant=[],this.branchSample=new Map(),this.branchStatus=new Map(),this.branchSampleList=[],this.multiDay=!1,this.days=[],this.filteredDate=null,this.compareByEpochDay=e=>e?.toEpochDay()??null,this.isRelayMap=new Map(),this.clubs=[],this.bibUtil=this.bibUtilFactory.makeBibUtil([]),this.branchesPerAthlete=new Map(),this.athletesPerBranch=new Map(),this.athleteStatusMap=new Map(),this.athleteGroupLaneMap=new Map(),this.branchesPerRelay=new Map(),this.relaysPerBranch=new Map(),this.relayStatus
3Map=new Map(),this.relayGroupLaneMap=new Map(),this.noParticipants=!1,this.eventFilterCtrl=this.nntfb.control(this.ar.snapshot.queryParamMap.get("ef")??""),this.participantFilterCtrl=this.nntfb.control(this.ar.snapshot.queryParamMap.get("pf")??""),this.membershipTeams=this.teamMembershipFeed.teams,this.participantTeamNameUtil=new Mi(this.teamUtil,new Map(),new Map()),this.navSortCtrl=this.tfb.nonNullable.control(this.uss.Settings.CheckIn.navSort.currentValue),this.groupSortCtrl=this.tfb.nonNullable.control(this.uss.Settings.CheckIn.groupSort.currentValue),this.lastNameFirst=he(this.uss.Settings.CheckIn.lastNameFirst.currentValue),this.meetDisplayOpts=xn(this.ms.athleteNameDisplayForMeeting$),this.athleteNameDisplayOpts=Xt(()=>{let e=this.lastNameFirst(),t=this.meetDisplayOpts();return Et(It({},t),{lastNameFirst:e});}),this.athleteNameDisplayOpts$=we(this.athleteNameDisplayOpts),this.foo=xt(()=>{let e=this.lastNameFirst();e!==this.uss.Settings.CheckIn.lastNameFirst.currentValue&&this.uss.updateSetting(this.uss.Settings.CheckIn.lastNameFirst,e);}),this.clubCtrl=this.tfb.control(void 0),this.teamCtrl=this.tfb.control(void 0),this.CheckInNavSort=Pe,this.TeamNameVariant=wn;}get showLicense(){return at.showLicense(this.meeting,this.locationService);}ngOnInit(){super.ngOnInit(),Pt(15e3).pipe(B(()=>this.cd.markForCheck()),this.takeUntilDestroyed()).subscribe(),this.participantFilterCtrl.valueChanges.pipe(qe(100),B(t=>{this.cd.markForCheck(),this.router.navigate([],{queryParams:{pf:t},relativeTo:this.ar});}),this.takeUntilDestroyed()).subscribe(),this.eventFilterCtrl.valueChanges.pipe(qe(100),B(t=>{this.cd.markForCheck(),this.router.navigate([],{queryParams:{ef:t},relativeTo:this.ar});}),this.takeUntilDestroyed()).subscribe(),this.ms.selectedMeeting$.pipe(B(t=>{this.cd.markForCheck(),this.meeting=t.meeting,this.meetingId=t.meeting.meetingIdPk;}),this.takeUntilDestroyed()).subscribe(),this.bibAllocationService.bibAllocations$.pipe(be(t=>t.map(i=>i.entity)),B(t=>{this.cd.markForCheck(),this.bibUtil=this.bibUtilFactory.makeBibUtil(t);}),this.takeUntilDestroyed()).subscribe(),this.teamMembershipFeed.state$.pipe(B(()=>{this.cd.markForCheck(),this.participantTeamNameUtil=this.teamMembershipFeed.teamNameUtil();}),this.takeUntilDestroyed()).subscribe();let e=yt(this.entityCache.athleteMap$,this.entityCache.clubMap$,this.entityCache.relayTeamMap$,this.entityCache.licenseMap$).pipe(vt(500));St([this.checkInFeed.checkInMap$.pipe(kt(()=>this.checkInFeed.loaded())),this.meetingEventFeed.meMap$,this.navSortCtrl.valueChanges.pipe(Ae(this.navSortCtrl.value)),this.groupSortCtrl.valueChanges.pipe(Ae(this.groupSortCtrl.value)),this.athleteNameDisplayOpts$,e.pipe(Ae(null))]).pipe(Kn(this.scopedSes.forCurrentMeeting()),B(([[,t,i,,o],_])=>{this.participantTeamNameUtil=this.teamMembershipFeed.teamNameUtil(),this.resolveData([...t.values()],o,i,_),this.cd.markForCheck();}),this.takeUntilDestroyed()).subscribe();}resolveData(e,t,i,o){let _=this.viewModelBuilder.build({checkInMap:this.checkInFeed.checkInMap(),meList:e,defs:o,navSort:i,groupSort:this.groupSortCtrl.value,nameDisplayOpts:t,athleteMap:this.entityCache.athleteMap(),relayTeamMap:this.entityCache.relayTeamMap(),clubMap:this.entityCache.clubMap(),licenseMap:this.entityCache.licenseMap(),showLicense:at.showLicense(this.meeting,this.locationService)});this.seMap=_.seMap,this.viewByEvent=_.viewByEvent,this.viewByParticipant=_.viewByParticipant,this.branchSample=_.branchSample,this.branchStatus=_.branchStatus,this.branchSampleList=_.branchSampleList,this.days=_.days,this.multiDay=_.multiDay;let E=this.uss.Settings.CheckIn.filteredDate.currentValue;this.filteredDate=this.days.length>1&&E!=null?this.days.find(g=>g.toEpochDay()===E)??null:null,this.isRelayMap=_.isRelayMap,this.clubs=_.clubs,this.noParticipants=_.noParticipants,this.branchesPerAthlete=_.branchesPerAthlete,this.athletesPerBranch=_.athletesPerBranch,this.athleteStatusMap=_.athleteStatusMap,this.athleteGroupLaneMap=_.athleteGroupLaneMap,this.branchesPerRelay=_.branchesPerRelay,this.relaysPerBranch=_.relaysPerBranch,this.relayStatusMap=_.relayStatus
3Map,this.relayGroupLaneMap=_.relayGroupLaneMap;}headerTimeFormat(){return Se(this.meeting),this.multiDay?"DateTime":"TimeOnly";}clubTeamFilterLabel(){return this.meeting?.enableTeamCompetitions===!0?"Team":"Club";}currentView(){return this.view==="event"?this.viewByEvent:this.viewByParticipant;}castItem(e){return e;}castMe(e){return e;}castMeeting(e){return e;}toggleAll(e,t){let i;switch(e){case"Pending":i="You will mark all entries in this group as \"Pending\"";break;case"CheckedIn":i="You will mark all \"Pending\" entries in this group as \"Checked in\"";break;case"Scratched":i="You will mark all \"Pending\" entries in this group as \"Scratched\"";break;default:return;}let o=e==="Pending"?5:void 0;this.genDialogTrigger().openConfirmDialog({message:i,priority:lt.confirm,delayOkActionBy:o,okAction:{action:()=>this.toggleAllConfirmed(e,t),btnTitle:"Continue"}});}toggleStatus(e,t){let i=this.getStatus(t);if(i==="Processing")return;let o=i===e?"Pending":e;if(i==="Pending"){this.submitStatus(o,t);return;}let _;i==="CheckedIn"&&o==="Scratched"?_="This entry is checked in. Mark it as \"Scratched\"?":i==="CheckedIn"?_="This entry is checked in. Mark it as \"Pending\"?":o==="CheckedIn"?_="This entry is scratched. Mark it as \"Checked in\"?":_="This entry is scratched. Mark it as \"Pending\"?",this.genDialogTrigger().openConfirmDialog({dialogTitle:this.participantName(t),message:_,priority:lt.confirm,okAction:{action:()=>this.submitStatus(o,t),btnTitle:"Continue"}});}submitStatus(e,t){let i=t.branchUUID,o=t.athlete,_=t.relayTeam,g=(o!=null?this.athleteStatusMap.get(o.athleteIdPk):_!=null?this.relayStatusMap.get(_.relayTeamIdPk):void 0)?.get(i);if(g==null||g==="Processing")return;o!=null?this.athleteStatusMap.get(o.athleteIdPk).set(i,"Processing"):_!=null&&this.relayStatusMap.get(_.relayTeamIdPk).set(i,"Processing"),this.cd.markForCheck();let T=o?.athleteIdPk??_?.relayTeamIdPk;Se(T);let I={branchUUID:i,status:e};o!=null&&(I.athleteId=o.athleteIdPk),_!=null&&(I.relayId=_.relayTeamIdPk);let f=()=>{o!=null?this.athleteStatusMap.get(o.athleteIdPk).set(i,g):_!=null&&this.relayStatusMap.get(_.relayTeamIdPk).set(i,g),this.cd.markForCheck();};this.http.post(`${it.apiBaseUrl}/api/admin/meeting/${this.meetingId}/check-in/update`,[I],ot()).pipe(B(N=>{N.blockedByResults>0?(f(),this.ss.warn(_!=null?"This relay team has results and cannot be scratched!":"This participant has results and cannot be scratched!")):this.ss.infoSaved();}),Ve(()=>(f(),this.ss.warnOperationFailed(),ze)),this.takeOneUntilDestroyed()).subscribe();}usesVirtualScrolling(){return!0;}trackBy(e,t){return`${t.type}-${t.branchUUID}-${t.athlete?.athleteIdPk}-${t.relayTeam?.relayTeamIdPk}`;}viewChanged(){this.cd.markForCheck(),this.view!=="event"&&(this.selectedBranchUUID=void 0),this.uss.updateSetting(this.uss.Settings.CheckIn.view,this.view),this.uss.updateSetting(this.uss.Settings.CheckIn.navSort,this.navSortCtrl.value),this.uss.updateSetting(this.uss.Settings.CheckIn.groupSort,this.groupSortCtrl.value);}getBranchSample(e){return this.branchSample.get(e);}firstRowOfParticipant(e,t){if(t===0)return!0;let i=e[t-1],o=e[t];return i.athlete?.athleteIdPk!==o.athlete?.athleteIdPk||i.relayTeam?.relayTeamIdPk!==o.relayTeam?.relayTeamIdPk;}getItemMeetingEvent(e){return e.meetingEvent??this.getBranchSample(e.branchUUID);}getStatus(e){return e.athlete!=null?this.athleteStatusMap.get(e.athlete.athleteIdPk).get(e.branchUUID):e.relayTeam!=null?this.relayStatusMap.get(e.relayTeam.relayTeamIdPk).get(e.branchUUID):"Processing";}getGroupLane(e){return e.athlete!=null?this.athleteGroupLaneMap.get(e.athlete.athleteIdPk).get(e.branchUUID):e.relayTeam!=null?this.relayGroupLaneMap.get(e.relayTeam.relayTeamIdPk).get(e.branchUUID):{};}laneOrderLabel(e){let t=this.branchSample.get(e.branchUUID).eventIdFk,i=this.seMap.get(t);return Pn.isFieldEvent2(i)||!i.lanes?"Order":"Lane";}isRelay(e){return this.isRelayMap.get(e)??!1;}canModifyPending(e,t){let i=0,o=0,_=e.athlete,E=e.relayTeam,g=e.branchUUID;if(_!=null){let T=Array.from(this.athleteStatusMap.get(_.athleteIdPk).entries()).filter(([I])=>this.branchOnFilteredDay(I)).map(([,I])=>I);i=T.filter(I=>I==="Pending").length,o=T.filter(I=>I!=="Pending").length;}
3if(E!=null){let T=Array.from(this.relayStatusMap.get(E.relayTeamIdPk).entries()).filter(([I])=>this.branchOnFilteredDay(I)).map(([,I])=>I);i=T.filter(I=>I==="Pending").length,o=T.filter(I=>I!=="Pending").length;}if(e.type==="event-head")if(this.isRelay(g)){let T=this.relaysPerBranch.get(g).map(I=>this.relayStatusMap.get(I).get(g));i=T.filter(I=>I==="Pending").length,o=T.filter(I=>I!=="Pending").length;}else{let T=this.athletesPerBranch.get(g).map(I=>this.athleteStatusMap.get(I).get(g));i=T.filter(I=>I==="Pending").length,o=T.filter(I=>I!=="Pending").length;}switch(t){case"to-pending":return o>0;case"from-pending":return i>0;}}checkInDeadlineStatus(e,t){let i=e.schedule.timeZoneId,o=t.checkInDeadline,_=t.checkInStart,E=gt.of(i),g=Mt.UTC,T=t.startDateTime.minusSeconds(_).atZone(E).withZoneSameInstant(g),I=t.startDateTime.minusSeconds(o).atZone(E).withZoneSameInstant(g),f=t.startDateTime.minusSeconds(o+300).atZone(E).withZoneSameInstant(g),N=Nt.now(g);return I.isBefore(N)?"past":T.isAfter(N)?"not-yet":f.isBefore(N)?"close":"before";}select(e){e==null?(this.selectedBranchUUID=void 0,this.meIdPk=null):(this.selectedBranchUUID=e.branchUuid,this.meIdPk=e.meetingEventIdPk),this.router.navigate([],{queryParams:{branchUUID:this.selectedBranchUUID,meIdPk:this.meIdPk},relativeTo:this.ar,replaceUrl:!0});}printCode(){window.open(`/api/admin/meeting/${this.meeting?.meetingIdPk}/check-in/print-qr-code`,"_blank");}clearFilters(){this.teamCtrl.setValue(void 0),this.clubCtrl.setValue(void 0),this.participantFilterCtrl.setValue(""),this.eventFilterCtrl.setValue(""),this.updateFilteredDate(null);}updateFilteredDate(e){this.filteredDate=e,this.uss.updateSetting(this.uss.Settings.CheckIn.filteredDate,e?.toEpochDay()??null),this.cd.markForCheck();}branchOnFilteredDay(e){return this.filteredDate==null||(this.branchSample.get(e)?.startDateTime.toLocalDate().isEqual(this.filteredDate)??!1);}colSpan(e){let t;switch(e){case"spacer":t=4;break;case"event-header":t=3;break;}return this.meeting?.enableTeamCompetitions===!0&&t++,this.showLicense&&t++,t;}toggleAllConfirmed(e,t){let i=t.athlete,o=t.relayTeam,_=t.branchUUID,E=o!=null||i==null&&this.isRelay(_),g=[],T=[];if(i!=null)this.branchesPerAthlete.get(i.athleteIdPk).filter(f=>this.branchOnFilteredDay(f)).forEach(f=>{T.push(new Fe(i.athleteIdPk,f));});else if(o!=null)this.branchesPerRelay.get(o.relayTeamIdPk).filter(f=>this.branchOnFilteredDay(f)).forEach(f=>{T.push(new Fe(o.relayTeamIdPk,f));});else{let f=this.athletesPerBranch.get(_)??this.relaysPerBranch.get(_);Se(f),f.forEach(N=>{T.push(new Fe(N,_));});}if(T.forEach(f=>{let N=f.second,O=f.first,w=E?this.relayStatusMap.get(O)?.get(N):this.athleteStatusMap.get(O)?.get(N);Se(w),w!==e&&(e==="Pending"||w==="Pending")&&g.push({status:e,athleteId:E?void 0:O,relayId:E?O:void 0,branchUUID:N});}),g.length===0)return;let I=this.genDialogTrigger().openProgressDialog();this.http.post(`${it.apiBaseUrl}/api/admin/meeting/${this.meetingId}/check-in/update`,g,ot()).pipe(B(f=>{f.blockedByResults>0?this.ss.warn("Some participants have results and have not been scratched"):this.ss.infoSaved();}),Ve(()=>(this.ss.warnOperationFailed(),ze)),bt(()=>I.close()),this.takeOneUntilDestroyed()).subscribe();}openCheckinJournal(e){let t=this.checkInFeed.checkInMap(),i=Array.from(t.values()).find(o=>e.meId!=null&&o.meetingEventIdFk!==e.meId?!1:e.athlete!=null&&o.athleteIdFk===e.athlete.athleteIdPk||e.relayTeam!=null&&o.relayTeamIdFk===e.relayTeam.relayTeamIdPk);i!=null&&this.journalTrigger().openDialogFor(this.participantName(e),this.meetingId,i.mpId);}participantName(e){return e.athlete!=null?this.athleteNamePipe.transform(e.athlete,this.athleteNameDisplayOpts()):e.relayTeam!=null?this.relayTeamNamePipe.transform(e.relayTeam):"";}isHackMeeting(){return this.meetingId===25304||this.meetingId===25549;}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=Dt({type:n,selectors:[["rs-check-in"]],viewQuery:function(t,i){t&1&&Ft(i.journalTrigger,Le,5)(i.genDialogTrigger,He,5),t&2&&Kt(2);},features:[Lt([ct]),Rt],decls:44,vars:27,consts:()=>{let e;e="https://support.rosterathletics.com/en/support/solutions/articles/44002300997-check-in/";let t;t="Check-in";let i;i="Filter participants (name/BIB)";let o;o="Filter events";let _;_="View";let E;E="By participants ";let g;g="By events ";let T;T=" Participant name ";let I;I=" First name, Last name ";let f;f=" Last name, First name ";let N;N=" Clear filters ";let O;O=" Check in all pending ";let w;w=" Scratch all pending ";let V;
3V=" Mark all as pending ";let K;K="There are no participants yet";let F;F="There are no entries matching your filters";let Y;Y="Start:\xA0";let ie;ie="Deadline:\xA0";let se;se="License no.:";let ee;ee="Club/school: ";let j;j="BIB: ";let oe;oe="Unallocated";let ae;ae="Group:";let te;te=""+"\uFFFD0\uFFFD"+":";let W;W="Team: ";let le;le="None";let re;re="Sort events";let ce;ce="By name ";let ye;ye="By start time ";let Z;Z="By check-in deadline ";let ke;ke="Sort by group";let de;de=" Ignore group ";let Ce;Ce=" Sort by group ";let ve;ve="Team";let pe;pe="Team";let me;me="Club/school";let p;p="Club/school";let h;h="Filter days";let k;k="Filter days";let A;A="All days";let L;L="All";let D;D="Show all events";let y;y="Hide all events";let P;return P=" Print code ",[["deadlineInfo",""],["actionsMenu",""],["vp",""],["journalTrigger",""],_,E,g,T,I,f,N,O,w,V,K,F,Y,ie,se,ee,j,oe,ae,te,W,le,re,ce,ye,Z,ke,de,Ce,pe,p,k,A,L,D,y,P,["matMenuContent",""],[2,"opacity","0","position","absolute",3,"svgIcon"],[3,"maxBufferPx","minBufferPx","itemSize"],[1,"cdk-table-wrapper"],[1,"rs-mat-table-compat"],["helpUrl",e,"navHeader",t,3,"toggleAllEnabled"],[3,"branchUUID","meId","hasCheckIn"],["bgColor","off-white"],[3,"ngModelChange","ngModel"],["color","primary","value","participant",3,"disableRipple"],["color","primary","value","event",3,"disableRipple"],["color","primary",3,"value","disableRipple"],[1,"filters"],["bgColor","off-white","placeholder",i,3,"formControlCompat"],["placeholder",o,"bgColor","off-white",3,"formControlCompat"],["mat-stroked-button","","color","primary",3,"click"],["mat-stroked-button","","color","primary"],["color","primary",3,"svgIcon"],[3,"svgIcon"],["mat-menu-item","",3,"click","disabled"],[1,"rs-outline-top","rs-outline-bottom"],[3,"background","border-bottom","rs-outline-top__nested","rs-outline-bottom__nested","rs-outline-middle__nested",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"rs-info-row"],[3,"colSpan","background","border-bottom"],[3,"colSpan"],[1,"col-buttons"],["mat-icon-button","",3,"matMenuTriggerFor","matMenuTriggerData"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"text-link",3,"routerLink","relativeTo","queryParams","innerHTML"],[1,"col-item"],[3,"athlete","nameOpts","withGender"],[3,"relayTeam","athleteNameOpts","withGender"],[2,"font-weight","500"],[1,"text-link",3,"routerLink","relativeTo","queryParams"],[1,"label"],[3,"innerHTML"],[3,"text-link","routerLink","relativeTo","queryParams"],[3,"routerLink","relativeTo","queryParams"],["mat-icon-button","",3,"click","disabled"],["mat-icon-button","",3,"click"],[3,"ngModelChange","formControl"],["placeholder",ve,3,"formControlCompat"],[3,"value"],["placeholder",me,3,"formControlCompat"],["placeholder",h,3,"valueChange","value","compareByBi"],[3,"click","active"],[1,"label1"],[3,"active"],[1,"label3"],[1,"label1",2,"font-weight","500"],[1,"label2"],["ngProjectAs","mat-icon",5,["mat-icon"]],[3,"rsMatIconSize","color","svgIcon"],[3,"rsMatIconSize","svgIcon"],[3,"color","rsMatIconSize","svgIcon"]];},template:function(t,i){if(t&1){let o=U();Re(0,Yo,1,1,"ng-template",null,0,Jt),S(2,"rs-generic-dialog-trigger"),s(3,"mat-menu",null,1),Re(5,ta,1,1,"ng-template",41),c(),S(6,"mat-icon",42)(7,"mat-icon",42),s(8,"cdk-virtual-scroll-viewport",43,2)(10,"div",44),m(11,Oa,3,23,"table",45),c()(),s(12,"rs-secondary-nav-panel",46),S(13,"rs-quick-event-view-switcher",47),s(14,"rs-form-field-compat",48)(15,"rs-form-field-label"),M(16,4),c(),s(17,"mat-radio-group",49),Ye("ngModelChange",function(E){return R(o),Qe(i.view,E)||(i.view=E),$(E);}),G("ngModelChange",function(){return R(o),$(i.viewChanged());}),s(18,"mat-radio-button",50),M(19,5),c(),s(20,"mat-radio-button",51),M(21,6),c()()(),m(22,Da,10,7,"rs-form-field-compat",48),m(23,Ra,8,5,"rs-form-field-compat",48),s(24,"rs-form-field-compat",48)(25,"rs-form-field-label"),M(26,7),c(),s(27,"mat-radio-group",49),Ye("ngModelChange",function(E){return R(o),Qe(i.lastNameFirst,E)||(i.lastNameFirst=E),$(E);}),s(28,"mat-radio-button",52),M(29,8),c(),s(30,"mat-radio-button",52),M(31,9),c()()(),s(32,"div",53),m(33,wa,8,2,"rs-form-field-compat",48),m(34,Ha,8,2,"rs-form-field-compat",48),S(35,"rs-search-box-mk2",54),m(36,Fa,1,1,"rs-search-box-mk2",55),m(37,La,8,3,"rs-form-field-compat",48),s(38,"button",56),G("click",function(){return R(o),$(i.clearFilters());}),M(39,10),c()(),m(40,Za,6,4),m(41,Qa,2,0,"button",57),c(),S(42,"rs-checkin-journal-dialog-trigger",null,3);}t&2&&(a(6),d("svgIcon",i.svg.block),a(),d("svgIcon",i.svg.block),a(),d("maxBufferPx",2e3)("minBufferPx",400)("itemSize",66),a(3),u(i.viewByEvent!==i.initial?11:-1),a(),d("toggleAllEnabled",!1),a(),d("branchUUID",i.selectedBranchUUID)("meId",i.meIdPk)("hasCheckIn",(i.meeting==null?null:i.meeting.checkInMode)!==i.CheckInMode.Disabled),a(4),Ze("ngModel",i.view),a(),d("disableRipple",!0),a(2),d("disableRipple",!0),a(2),u(i.view==="event"?22:-1),a(),u(i.view==="event"?23:-1),a(4),Ze("ngModel",i.lastNameFirst),a(),d("value",!1)("disableRipple",!0),a(2),d("value",!0)("disableRipple",!0),a(3),u(i.membershipTeams().length>0?33:-1),a(),u(i.clubs.length>0?34:-1),a(),d("formControlCompat",i.participantFilterCtrl),a(),u(i.view==="event"?36:-1),a(),u(i.days.length>1?37:-1),a(3),u(i.meetingId!==0&&i.meeting!=null&&i.view==="event"?40:-1),a(),u((i.meeting==null?null:i.meeting.checkInMode)===i.CheckInMode.ParticipantVerify?41:-1));},dependencies:[Cn,dn,He,En,hn,mn,un,In,ii,ni,Qt,Zt,Yt,jt,Mn,sn,_n,rn,ci,di,mi,gi,Dn,fn,Yn,Zn,Qn,on,en,tn,an,nn,An,vn,si,ti,kn,Le,Wt,ui,rt,zn,$n,Ii,_t,bn,hi,Ci,ki,Pi],styles:[`[_nghost-%COMP%]{padding-left:248px;display:block}cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{position:fixed;top:64px;left:296px;height:calc(100vh - 64px);width:calc(100% - 296px);overflow-y:scroll!important;overflow-x:visible!important}div.rs-virtual-scroll-weird-fix[_ngcontent-%COMP%]{position:fixed;top:64px;left:296px;height:calc(100vh - 64px);width:calc(100% - 296px);pointer-events:none}div.cdk-table-wrapper[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:24px}div.cdk-table-wrapper[_ngcontent-%COMP%]:has(div.table-header){padding-top:unset}div.table-header[_ngcontent-%COMP%]{box-sizing:border-box;padding-top:24px;height:64px;display:flex;flex-flow:row nowrap;align-items:center;font-size:15px;margin-left:auto;margin-right:auto}table[_ngcontent-%COMP%]{table-layout:fixed}table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{white-space:initial}rs-form-field-compat[_ngcontent-%COMP%], rs-search-box-mk2[_ngcontent-%COMP%]:first-of-type{margin-bottom:16px!important}div.filters[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:12px;padding-bottom:12px;background-color:#f3f3f3;position:sticky;z-index:11;top:40px}
3div.filters[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:16px}div.filters[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.col-buttons[_ngcontent-%COMP%]{flex:0 0 216px;width:216px;min-width:216px;max-width:216px}.col-item[_ngcontent-%COMP%]{width:100px;padding-left:48px}.checked-in[_ngcontent-%COMP%]{color:#00bcd4}.scratched[_ngcontent-%COMP%]{color:#f44336}.label[_ngcontent-%COMP%]{font-weight:500} 4/*# sourceMappingURL=check-in.component-VO7Q6RRE.css.map */`],changeDetection:0});}}return n;})();});Ya();export{t_ as CheckInComponent};/**i18n:98cd60948f00bf3240ebfd0e064bf0123c90f4a120e09300fa6f8d092a2b7bea*///# sourceMappingURL=chunk-X2AOL6ZT.js.map 5//# debugId=441253c4-c0c5-5496-b35f-f2a7994bfb5a
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.