1import{a as ui}from"./chunk-LMNSNY3N.js";import{a as ma,c as pa}from"./chunk-AISHMQS5.js";import"./chunk-6MHV3TC3.js";import{a as _a}from"./chunk-Q2LLPAYB.js";import{a as hn,b as En}from"./chunk-5JSUJFIM.js";import"./chunk-VDLFYQDH.js";import"./chunk-SF4HQGI2.js";import{b as ra}from"./chunk-BVRM5ENG.js";import"./chunk-MOAUNN4P.js";import{a as Ca}from"./chunk-SJU4UKIT.js";import"./chunk-HKH2SD4G.js";import"./chunk-ICXIN7Y2.js";import{a as ua}from"./chunk-3W75YGV7.js";import{p as kn}from"./chunk-OBBZG42O.js";import"./chunk-TAX6Y6MM.js";import"./chunk-7OL6FSBJ.js";import"./chunk-3DIXIAMJ.js";import"./chunk-2YUQYOBH.js";import"./chunk-F2ZGJ6XF.js";import{a as In}from"./chunk-OILIFHZB.js";import"./chunk-6HYZOOAW.js";import{a as _i}from"./chunk-EHERVRGZ.js";import"./chunk-7S3OEGJT.js";import"./chunk-6HV6F6UQ.js";import"./chunk-YCNFOTAD.js";import{a as aa}from"./chunk-VMMM47AP.js";import"./chunk-6LD4LWYT.js";import"./chunk-YECFTYBJ.js";import{a as ga,b as fa}from"./chunk-E2KJLRKX.js";import{a as oa}from"./chunk-E5UMI5MS.js";import"./chunk-ID6D4P3J.js";import"./chunk-S3XRWOCJ.js";import"./chunk-WB43PDPT.js";import{b as na,c as Cn}from"./chunk-DCO3LFBI.js";import{a as ia}from"./chunk-PTDNSSVN.js";import"./chunk-TMI2NYVM.js";import{b as da,c as ca}from"./chunk-IIAMOPI6.js";import"./chunk-OGB5CDRC.js";import{a as Qo,b as Ko,f as Xo,g as Zo,i as ea,j as ta}from"./chunk-MIXYX7LR.js";import{a as Ut,b as Gt}from"./chunk-PQSPAPHZ.js";import"./chunk-IFHPG6MK.js";import"./chunk-H5S22NEF.js";import"./chunk-FK6H3RFT.js";import"./chunk-33M7DS3X.js";import{a as la,b as sa}from"./chunk-WX2GQK75.js";import"./chunk-ILRUTWFH.js";import{a as Yo}from"./chunk-ZNWYRCPR.js";import"./chunk-VB377JU5.js";import"./chunk-P37GBCO7.js";import"./chunk-MBQULZ2H.js";import{a as Fo}from"./chunk-LMKQXHQE.js";import"./chunk-RHDNU2XY.js";import"./chunk-NGWYSJOW.js";import"./chunk-ZJY3EUAX.js";import{c as Ao}from"./chunk-I6PVXE7W.js";import"./chunk-6QPIU4EL.js";import"./chunk-42STKE4W.js";import"./chunk-QICDEWPR.js";import{a as Lo,f as No,i as Wo}from"./chunk-4UVAF4ER.js";import"./chunk-IGK4BEXX.js";import"./chunk-VGD6YYDX.js";import"./chunk-FPXAXW54.js";import{a as ht,b as Vo,c as qt}from"./chunk-TFHCQGNH.js";import"./chunk-WGRHJ52Y.js";import"./chunk-I2CWBCWA.js";import"./chunk-MNJI6Q4E.js";import{c as Ro}from"./chunk-K7RRJJ4J.js";import"./chunk-VHCJ7GHL.js";import{b as cn,c as mn,d as To,e as pn,f as zt,g as _n}from"./chunk-MVPWU56Q.js";import"./chunk-H42DXS2N.js";import{a as Re,b as Ot}from"./chunk-DKZQI3JZ.js";import"./chunk-EXRXO7EI.js";import"./chunk-Y2RYLQWS.js";import{a as un,b as Oo,c as pi,d as Jt,e as gn}from"./chunk-UR5J6BCV.js";import{a as zo,b as qo,d as Uo,e as Go,g as Ho,h as $o,i as Jo}from"./chunk-7U67UICJ.js";import"./chunk-AHP6CBJJ.js";import{b as Bo,d as jo}from"./chunk-NOWLVWF6.js";import"./chunk-HAVJKH7E.js";import"./chunk-RGJQHTQG.js";import{a as ln}from"./chunk-6NUBY5FT.js";import{a as ko}from"./chunk-7ZUHDHEQ.js";import"./chunk-EF64UYYR.js";import"./chunk-2XUSYFU7.js";import{a as Tt}from"./chunk-CXPCPPOI.js";import"./chunk-W37WV6PN.js";import"./chunk-PLPEPHST.js";import"./chunk-B6S35SLY.js";import"./chunk-LORGYLWS.js";import"./chunk-6UVLSAJX.js";import"./chunk-CAE4ICO3.js";import{a as sn,b as dn}from"./chunk-YUG2JL6U.js";import"./chunk-GVQVRQOL.js";import"./chunk-3GU4C4FQ.js";import{b as fn}from"./chunk-STFGG7UH.js";import"./chunk-P7LBCIPV.js";import{e as $t,h as Yi,i as Qi,j as Ki,l as Xi,o as Zi,s as en,t as tn,u as nn}from"./chunk-YHPWHVAG.js";import"./chunk-7E67MTAQ.js";import"./chunk-GZJ4MQA5.js";import{d as lo,e as so}from"./chunk-PDQBZTON.js";import"./chunk-WRXG5L4C.js";import{a as rt,b as qe,c as lt,d as st,f as dt,g as ct,i as mt,j as pt,l as _t,m as ut,o as gt,p as ft,q as Ct,r as fe}from"./chunk-IRVXRWZD.js";import"./chunk-DDNYMCOM.js";import"./chunk-U7T4QQGQ.js";import{a as co}from"./chunk-RN2BRY5F.js";import"./chunk-FKWHMRM4.js";import"./chunk-UAHJPPOQ.js";import"./chunk-L7W3W6HF.js";import{S as Co,ea as ho,fa as xo,ga as bo,v as fo}from"./chunk-FMACHGU5.js";import"./chunk-Z6PRV6M7.js";import"./chunk-GTQM3BVY.js";import"./chunk-LEP326T3.js";import"./chunk-PVDG46DZ.js";import{a as Bi,b as ji,c as zi}from"./chunk-4UUEYAO2.js";import{a as vo,b as yo,c as Mo}from"./chunk-GS37RU6G.js";import{a as Ai}from"./chunk-MJHKSL2V.js";import{d as ue,e as Ce,g as he}from"./chunk-OASEBQL4.js";import"./chunk-UU623VRN.js";import{a as rn}from"./chunk-BF2YCTPO.js";import{a as oi,c as ai,d as ri,e as li}from"./chunk-2MWBZL4H.js";import{a as ao,b as ro}from"./chunk-AMHTXUJN.js";import"./chunk-LQOHYQYL.js";import"./chunk-QP6ZWSK2.js";import"./chunk-OI3COM7J.js";import"./chunk-RQU7EHE3.js";import"./chunk-5U26V7TR.js";import"./chunk-5V7OC6XX.js";import"./chunk-JHDMGPXH.js";import"./chunk-2FOUSL4U.js";import{a as on,b as an}from"./chunk-WI3G66EK.js";import{b as So,c as Do,d as ci,e as Gi,f as Hi,g as $i,h as Ji,i as mi}from"./chunk-KBFDPR7N.js";import{a as jt}from"./chunk-M2SDBECC.js";import{a as je,b as si,c as at,d as qi,e as Ui,f as di,k as ze}from"./chunk-DBB3PKOU.js";import{b as Io}from"./chunk-H3ZOHFO7.js";import{c as Po,j as Eo}from"./chunk-CIKJJUSN.js";import"./chunk-57Y5ABZS.js";import{a as wo}from"./chunk-RRZRS5BZ.js";import{a as Pn}from"./chunk-LY7WOQZN.js";import{b as mo,e as po}from"./chunk-DTV26CKL.js";import{a as _o,b as uo,c as go}from"./chunk-BEIBI4X5.js";import{b as Ri}from"./chunk-VG7OHNZN.js";import"./chunk-MS4AQ6UA.js";import{b as It,d as kt}from"./chunk-N7NZ2FMU.js";import{f as Pt}from"./chunk-F2TSTV3I.js";import"./chunk-XRMXGMS4.js";import"./chunk-Q4V6AKYI.js";import{a as Ni,b as Wi}from"./chunk-T3PLPHIG.js";import{a as Li,b as Et,c as Ht}from"./chunk-2JW6ZMWV.js";import{a as De}from"./chunk-NIP74ZKI.js";import{b as Ne,c as We}from"./chunk-V46ZQKC5.js";import"./chunk-QNUNLKYK.js";import{c as Fi}from"./chunk-YPNUJAUO.js";import{a as se,c as Dt,r as G}from"./chunk-RE4JJFV5.js";import{d as ge,e as pe,f as $,g as Ke,h as Ti,i as ye,j as Oi,k as oe}from"./chunk-COEKBYWO.js";import"./chunk-E2K2LIS4.js";import{a as U}from"./chunk-KJKRX6VS.js";import"./chunk-2CRWMDGS.js";import{a as Be,b as Fe}from"./chunk-4WMDX4SQ.js";import{b as oo}from"./chunk-IQLKO45Z.js";import"./chunk-V6KBZVCY.js";import"./chunk-6FQQM4CE.js";import{a as we,b as Vi,c as ot,e as St,i as Se,j as Ve}from"./chunk-VTTO24NQ.js";import"./chunk-Y5VOXWTF.js";import{l as Me,n as ae,q as J}from"./chunk-YWHNFDXQ.js";import{l as re}from"./chunk-FCTHY2PU.js";import"./chunk-DPVJW3LI.js";import{f as Zn,h as Wt,i as vt,n as wt}from"./chunk-GW33KQPR.js";import{K as io,S as no,T as te,U as Y,a as Yn,b as Qn,e as Kn,l as Xn,x as ee}from"./chunk-TUEKBDZZ.js";import{o as Ei}from"./chunk-RLPOKPIS.js";import{a as P}from"./chunk-TPES7EAS.js";import{C as to,F as Bt,G as X,H as Oe,b as Ii,c as ce,e as yt,h as ne,i as ve,j as ki,k as Qe,l as Vt,m as me,n as ke,o as ei,p as eo,r as ti,t as ii,y as ni,z as Te}from"./chunk-QXJM3TTT.js";import{B as Hn,D as $n,F as K,J as Jn,k as ie,r as Pi,x as Ue,z as Gn}from"./chunk-TMOIAHHX.js";import{$a as T,Db as O,E as Wn,Eb as Dn,Fa as I,Fb as H,Ga as yi,Hb as nt,Hc as Ye,Ib as l,Jb as y,Kb as E,Lb as _e,M as vi,Mb as Lt,Nb as zn,Oa as Mi,Qa as wi,Rb as w,Sa as it,Sb as S,Tb as D,Va as Sn,Wa as m,Xa as p,Ya as jn,Yb as be,Za as A,_a as k,aa as Ie,ab as _,bb as n,bc as Zt,cb as o,cc as bt,db as v,dc as V,ec as Le,fc as qn,ga as r,gc as Un,hb as F,ib as R,kb as b,la as Bn,mc as Q,nc as Si,o as u,oc as le,p as g,pc as Di,q as Je,qb as h,r as tt,rc as Nt,sa as x,tb as c,xb as N,yb as W,za as j,zb as B}from"./chunk-DJNWGYMM.js";import{ea as M,f as q,s as Nn}from"./chunk-VOZAGDK7.js";import{a as Mn,h as Ln,j as wn}from"./chunk-E5QWB6YB.js";var Ga=(t,s)=>s.sport,Ha=(t,s)=>s.scoreID;function $a(t,s){if(t&1){let e=b();n(0,"button",8),h("click",function(){let i=u(e).$implicit,d=c(2);return g(d.startPractice(i.sport))}),l(1),o()}if(t&2){let e=s.$implicit;r(),y(e.label)}}function Ja(t,s){if(t&1&&(n(0,"a",16)(1,"mat-icon",3),l(2,"live_tv"),o(),l(3," Watch "),o()),t&2){let e=c().$implicit,a=c(3);_("routerLink",a.castLink(e)),it("aria-label",a.watchLabel(e))}}
1function Ya(t,s){if(t&1&&(n(0,"li",10)(1,"a",11)(2,"span",12),l(3),o(),n(4,"span",13),l(5),o()(),n(6,"span",14)(7,"span",15),l(8),o(),m(9,Ja,4,2,"a",16),o()()),t&2){let e=s.$implicit,a=c(3);r(),_("routerLink",a.route(e)),r(2),y(a.kindLabel(e)),r(2),zn("",e.awayName||"Away"," ",e.awayRuns," \u2013 ",e.homeRuns," ",e.homeName||"Home"),r(2),_("ngClass","rpui-chip--"+a.chipKind(e)),r(),y(a.statusLabel(e)),r(),p(a.canWatch(e)?9:-1)}}function Qa(t,s){if(t&1&&(n(0,"ul",9),k(1,Ya,10,9,"li",10,Ha),o()),t&2){let e=c(2);r(),T(e.rows)}}function Ka(t,s){if(t&1){let e=b();n(0,"section",0)(1,"div",1)(2,"h2",2)(3,"mat-icon",3),l(4,"sports_baseball"),o(),l(5," Scoring"),o(),n(6,"a",4),l(7,"My scored games"),o()(),n(8,"div",5)(9,"span",6),l(10,"Practice game"),o(),k(11,$a,2,1,"button",7,Ga),n(13,"button",8),h("click",function(){u(e);let i=c();return g(i.startBasketballPractice())}),l(14,"Basketball"),o()(),m(15,Qa,3,0,"ul",9),o()}if(t&2){let e=c();r(11),T(e.practiceSports),r(4),p(e.rows.length>0?15:-1)}}var ha=(()=>{class t{api;router;cdr;practiceSports=zo;rows=[];visible=!1;constructor(e,a,i){this.api=e,this.router=a,this.cdr=i}ngOnInit(){return wn(this,null,function*(){if(localStorage.getItem("person")!=null){this.visible=!0;try{let e=yield Nn(this.api.get("RoundScore/RPScoringMyScoredGames/3"));this.rows=e?.rows??[]}catch{}this.cdr.markForCheck()}})}startPractice(e){this.router.navigate(["/pages/scoring",qo(e)])}startBasketballPractice(){this.router.navigate(jo(Bo()))}route(e){return Uo(e)}kindLabel(e){return $o(e)}statusLabel(e){return Ho(e)}chipKind(e){return e.status==="ended"?"ok":e.status==="live"?"danger":"neutral"}canWatch(e){return Go(e)}castLink(e){return Yo(e.gameID,"")}watchLabel(e){return`Watch ${e.awayName||"Away"} vs ${e.homeName||"Home"} in Game Cast`}static \u0275fac=function(a){return new(a||t)(x(U),x(Wt),x(Ye))};static \u0275cmp=j({type:t,selectors:[["rp-scoring-card"]],decls:1,vars:1,consts:[["aria-labelledby","rsc-title",1,"rpui-card","rsc-card"],[1,"rsc-head"],["id","rsc-title",1,"rsc-title"],["aria-hidden","true"],["mat-button","","routerLink","/pages/scoring"],[1,"rsc-practice"],[1,"rsc-practice-label"],["mat-stroked-button","",1,"rsc-practice-btn"],["mat-stroked-button","",1,"rsc-practice-btn",3,"click"],[1,"rsc-list"],[1,"rsc-row"],[1,"rsc-row-main",3,"routerLink"],[1,"rsc-row-kind"],[1,"rsc-row-teams"],[1,"rsc-row-side"],[1,"rpui-chip",3,"ngClass"],["mat-stroked-button","",1,"rsc-watch",3,"routerLink"]],template:function(a,i){a&1&&m(0,Ka,16,1,"section",0),a&2&&p(i.visible?0:-1)},dependencies:[K,ie,wt,vt,J,ae,Y,te],styles:["[_nghost-%COMP%]{display:block;width:100%}.rsc-card[_ngcontent-%COMP%]{padding:12px 16px;margin-bottom:16px}.rsc-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.rsc-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin:0;font-size:15px;font-weight:700}.rsc-practice[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.rsc-practice-label[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:#4527a0;margin-right:4px}.rsc-list[_ngcontent-%COMP%]{list-style:none;margin:8px 0 0;padding:0}.rsc-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:4px 0}.rsc-row-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;text-decoration:none;color:inherit}.rsc-row-side[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.rsc-watch[_ngcontent-%COMP%]{flex:none}.rsc-row-kind[_ngcontent-%COMP%]{font-size:12px;color:#78909c}.rsc-row-teams[_ngcontent-%COMP%]{font-size:14px;font-weight:600}"]})}return t})();var Za=()=>[qe,rt,st,pt,dt,lt,_t,ct,mt,ut,gt,ft,ht,Vo,vt],er=t=>({"mx-4":t}),tr=()=>[15,25,50,75,100],On=t=>[t];function ir(t,s){if(t&1){let e=b();n(0,"button",13),h("click",function(){u(e);let i=c();return g(i.closeButton())}),n(1,"mat-icon"),l(2,"close"),o()()}}function nr(t,s){t&1&&(n(0,"th",25),l(1," Event For"),o())}function or(t,s){if(t&1&&l(0),t&2){let e=c().$implicit;E(" ",e.eventForName," ")}}function ar(t,s){if(t&1&&(n(0,"a",27),l(1),o()),t&2){let e=c().$implicit;_("routerLink",V(2,On,"/pages/team/detail/"+e.eventForKey)),r(),y(e.eventForName)}}function rr(t,s){if(t&1&&(n(0,"td",26),m(1,or,1,1),m(2,ar,2,4,"a",27),o()),t&2){let e=s.$implicit;r(),p(e.eventForKey?-1:1),r(),p(e.eventForKey?2:-1)}}function lr(t,s){t&1&&(n(0,"th",25),l(1,"Event"),o())}function sr(t,s){if(t&1&&(n(0,"a",27),l(1),o()),t&2){let e=c().$implicit;
1_("routerLink",V(2,On,"/pages/event/detail/"+e.eventKey)),r(),y(e.eventName)}}function dr(t,s){if(t&1&&(n(0,"a",27),l(1),o()),t&2){let e=c().$implicit;_("routerLink",V(2,On,"/pages/event/"+e.eventKey)),r(),y(e.eventName)}}function cr(t,s){if(t&1&&(n(0,"td",26),m(1,sr,2,4,"a",27),m(2,dr,2,4,"a",27),o()),t&2){let e=s.$implicit;r(),p(e.eventForKey?-1:1),r(),p(e.eventForKey?2:-1)}}function mr(t,s){t&1&&(n(0,"th",28),l(1,"Dates"),o())}function pr(t,s){if(t&1&&(n(0,"td",29),l(1),o()),t&2){let e=s.$implicit;r(),y(e.divisionDates)}}function _r(t,s){t&1&&v(0,"tr",30)}function ur(t,s){t&1&&v(0,"tr",31,1)}function gr(t,s){t&1&&(n(0,"tr",32)(1,"td",33),l(2,"No Events Found"),o()())}function fr(t,s){if(t&1&&(n(0,"table",14),F(1,15),I(2,nr,2,0,"th",16)(3,rr,3,2,"td",17),R(),F(4,18),I(5,lr,2,0,"th",16)(6,cr,3,2,"td",17),R(),F(7,19),I(8,mr,2,0,"th",20)(9,pr,2,1,"td",21),R(),I(10,_r,1,0,"tr",22)(11,ur,2,0,"tr",23)(12,gr,3,0,"tr",24),o()),t&2){let e=c();_("dataSource",e.dataSource4Events),r(10),_("matHeaderRowDef",e.displayedColumns4Events)("matHeaderRowDefSticky",!0),r(),_("matRowDefColumns",e.displayedColumns4Events)}}function Cr(t,s){t&1&&(n(0,"span"),l(1,"..."),o())}var xa=(()=>{class t{api;_formBuilder;router;_membership;cdr;dialog;ngxLoader;notify;_matDialog;breakpointObserver;isDirector;isStaff;isSubDirector;panelWidthTeam;dataSource4Teams;confirmDialogRef;dirEvents=[];isMobile=!1;pageSize;isLoggedIn;person={};persona={};loadingMyEvents;myEvents=[];searchInputTeam;searchInput;searchInputEvent;searchInputStaff;panelWidthEvent;displayedColumns4Events=["eventForName","eventName","divisionDates"];dataSource4Events;paginator;sort;_unsubscribeAll;constructor(e,a,i,d,f,C,L,z,Z,de){this.api=e,this._formBuilder=a,this.router=i,this._membership=d,this.cdr=f,this.dialog=C,this.ngxLoader=L,this.notify=z,this._matDialog=Z,this.breakpointObserver=de,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(xt=>{this.isMobile=!!xt.matches}),this.dataSource4Events=new fe,this.pageSize=this.isMobile?5:10,localStorage.getItem("person")&&(this.isLoggedIn=!0,this.persona=JSON.parse(localStorage.getItem("person")).persona)}ngOnInit(){this.getMyEvents()}getMyEvents(){this.loadingMyEvents=!0,this.ngxLoader.startLoader("loader-myEvent"),this.api.get("Event/myEventsPublic",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.loadingMyEvents=!1,this.dirEvents=e,this.dataSource4Events.data=e,this.cdr.detectChanges(),setTimeout(()=>{this.dataSource4Events.paginator=this.paginator,this.dataSource4Events.sort=this.sort},250),this.ngxLoader.stopLoader("loader-myEvent")},error:e=>{this.ngxLoader.stopLoader("loader-myEvent"),this.loadingMyEvents=!1,this.notify.openAlertModal(e.error?e.error:"An error has occured",se.ERROR)}})}enterEvent(e){this.panelWidthEvent=this.isMobile?"100%":"670px",this.dialog.open(Cn,{panelClass:"enterEvent-custom-dialog-container",width:this.panelWidthEvent,maxWidth:this.panelWidthEvent,height:this.isMobile?"95vh":"auto",maxHeight:"90vh",autoFocus:!1,data:{name:"Enter Event",event:e}}).afterClosed().subscribe(i=>{this.ngOnInit()})}openInfo(){this.notify.openInfoModal("Coming soon")}applyFilterEvent(){this.dataSource4Events.filter=this.searchInput?.trim().toLowerCase()}closeButton(){this.searchInput="",this.applyFilterEvent()}trackTeam=(e,a)=>a._key;ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(U),x(Bt),x(Wt),x(De),x(Ye),x($),x(ue),x(G),x($),x(ee))};static \u0275cmp=j({type:t,selectors:[["my-events"]],viewQuery:function(a,i){if(a&1&&(N(Re,5),N(ht,5)),a&2){let d;W(d=B())&&(i.paginator=d.first),W(d=B())&&(i.sort=d.first)}},inputs:{isDirector:"isDirector",isStaff:"isStaff",isSubDirector:"isSubDirector"},decls:19,vars:12,consts:[["tableTeamPaginator",""],["tableRow",""],["loaderId","loader-myEvent",3,"fgsSize"],[1,"my-12"],[1,"w-98-p",3,"ngClass"],[1,"quick-search-toolbar__actions","mt-4"],[1,"quick-search","quick-search--desktop"],[1,"quick-search__icon"],["type","search","placeholder","Quick Search","name","myEventsQuickSearch",1,"quick-search__input",3,"ngModelChange","keyup","ngModel"],["type","button","aria-label","Clear search",1,"quick-search__clear"],["id","tbl-dirEvents",1,"table-responsive",3,"hidden"],[3,"hidden"],["showFirstLastButtons","",3,"length","pageSizeOptions","pageSize"],["type","button","aria-label","Clear search",1,"quick-search__clear",3,"click"],["recycleRows","","mat-table","","matSort","",1,"table-bordered","table-stripe","mat-elevation-z1","border-separate","my-12",3,"dataSource"],["matColumnDef","eventForName"],["mat-header-cell","","mat-sort-header","","class","pl-8",4,"matHeaderCellDef"],["mat-cell","","class","pl-8",4,"matCellDef"],["matColumnDef","eventName"],["matColumnDef","divisionDates"],["mat-header-cell","","class","pl-8",4,"matHeaderCellDef"],["mat-cell","","class","text-center",4,"matCellDef"],["mat-header-row","","class","grey-300",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","","mat-sort-header","",1,"pl-8"],["mat-cell","",1,"pl-8"],[3,"routerLink"],["mat-header-cell","",1,"pl-8"],["mat-cell","",1,"text-center"],["mat-header-row","",1,"grey-300"],["mat-row","",1,""],[1,"mat-row"],["colspan","17",1,"mat-cell"]],template:function(a,i){if(a&1){let d=b();v(0,"ngx-ui-loader",2),n(1,"mat-card",3)(2,"mat-card-content")(3,"div",4)(4,"div")(5,"div",5)(6,"div",6)(7,"mat-icon",7),l(8,"search"),o(),n(9,"
1input",8),D("ngModelChange",function(C){return u(d),S(i.searchInput,C)||(i.searchInput=C),g(C)}),h("keyup",function(){return u(d),g(i.applyFilterEvent())}),o(),m(10,ir,3,0,"button",9),o()()(),n(11,"div",10),yi(12,fr,13,4)(13,Cr,2,0),Mi(14,12,Za,null,13),wi(0,-1),n(16,"div",11),v(17,"mat-paginator",12,0),o()()()()()}a&2&&(_("fgsSize",75),r(3),_("ngClass",V(9,er,i.isMobile)),r(6),w("ngModel",i.searchInput),r(),p(i.searchInput?10:-1),r(),_("hidden",i.loadingMyEvents),r(5),_("hidden",(i.dataSource4Events==null||i.dataSource4Events.data==null?null:i.dataSource4Events.data.length)<=15),r(),_("length",i.dataSource4Events.data.length)("pageSizeOptions",bt(11,tr))("pageSize",15))},dependencies:[he,Ce,ze,je,at,K,ie,X,ce,ne,me,J,Y,te,Ct,Ot,Re,qt,wt],encapsulation:2})}return t})();var ba=(()=>{class t{dialogRef;dialog;data;title;file;constructor(e,a,i){this.dialogRef=e,this.dialog=a,this.data=i,this.file=i.file,this.title=i.title}h;w;ngOnInit(){this.h=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)*.61,this.w=this.h*1.561}doNotShowAgain(){localStorage.setItem("popupDoNotShow-"+this.file,"do-not-show"),this.closeDialog()}closeDialog(){this.dialogRef.close()}static \u0275fac=function(a){return new(a||t)(x(ge),x($),x(pe))};static \u0275cmp=j({type:t,selectors:[["app-video-popup"]],decls:16,vars:7,consts:[[2,"width","100%"],["fxLayout","row","fxLayoutAlign","space-between center",1,"mb-12",2,"width","100%"],["mat-icon-button","",1,"",3,"click"],[1,"close-icon"],[1,"text-center"],["controls","","playsInline","",3,"width","height"],["type","video/mp4",3,"src"],["mat-raised-button","",1,"red",3,"click"]],template:function(a,i){a&1&&(n(0,"mat-card",0)(1,"mat-card-header")(2,"div",1)(3,"mat-card-title"),l(4),o(),n(5,"button",2),h("click",function(){return i.closeDialog()}),n(6,"mat-icon",3),l(7,"close"),o()()()(),n(8,"mat-card-content",4)(9,"video",5),v(10,"source",6)(11,"source",6),l(12," Your browser does not support the video tag. "),o()(),n(13,"mat-card-actions",4)(14,"button",7),h("click",function(){return i.doNotShowAgain()}),l(15,"Do not Show Again"),o()()()),a&2&&(r(4),y(i.title),r(5),_("width",i.w)("height",i.h),r(),_("src",be("https://regplay.nyc3.cdn.digitaloceanspaces.com/",i.file,".mkv")),r(),_("src",be("https://regplay.nyc3.cdn.digitaloceanspaces.com/",i.file,".m4v")))},dependencies:[X,ze,je,Ui,at,di,si,Y,te,J,ae,Me],styles:["video[_ngcontent-%COMP%]{object-fit:cover}"]})}return t})();var gi=Ln(co());var br=["filter"],vr=()=>[ie,vt,qe,rt,st,pt,dt,lt,_t,ct,mt,ut,gt,ft],Vn=t=>({"flex-direction":t}),yr=()=>[10,20,50,100],Mr=t=>({"w-100-p":t}),wr=t=>({"pl-8":t}),Sr=t=>[t],fi=t=>({"text-center":t}),Dr=t=>({scrollable:t}),Pr=(t,s,e,a)=>({"row-even":t,"row-odd":s,"listing-only":e,bold:a}),ya=()=>[],Er=t=>({"green-50":t}),Ir=t=>({"amber-600-fg":t}),kr=t=>({"max-width":t}),Tr=t=>({"text-bold amber-600-fg":t});function Or(t,s){if(t&1){let e=b();n(0,"div",6)(1,"button",7),h("click",function(){u(e);let i=c();return g(i.addEvent())}),l(2,"Add Event"),o(),n(3,"button",8),h("click",function(){u(e);let i=c();return g(i.addEventV2())}),l(4,"Add Event \u2014 NEW"),o()()}}function Vr(t,s){t&1&&(n(0,"mat-error"),l(1,"Invalid start date"),o())}function Fr(t,s){t&1&&(n(0,"mat-error"),l(1,"Invalid end date"),o())}function Rr(t,s){if(t&1){let e=b();n(0,"div",11)(1,"mat-form-field",27)(2,"mat-label"),l(3,"Filter events by range"),o(),n(4,"mat-date-range-input",28),v(5,"input",29,1),n(7,"input",30,2),h("dateChange",function(){u(e);let i=O(6),d=O(8),f=c(2);return g(f.dateRangeChange(i,d))}),o()(),n(9,"mat-hint"),l(10,"MM/DD/YYYY \u2013 MM/DD/YYYY"),o(),v(11,"mat-datepicker-toggle",31)(12,"mat-date-range-picker",32,3),m(14,Vr,2,0,"mat-error"),m(15,Fr,2,0,"mat-error"),o(),n(16,"mat-icon",33),h("click",function(){u(e);let i=c(2);return g(i.clearDate())}),l(17,"clear"),o(),v(18,"br"),o()}if(t&2){let e=O(13),a=c(2);r(),_("ngClass",V(7,Mr,a.isMobile)),r(3),_("formGroup",a.myEventsDateRangePickerForm)("rangePicker",e),r(7),_("for",e),r(),_("touchUi",a.isMobile),r(2),p(a.myEventsDateRangePickerForm.controls.fromDate.hasError("matStartDateInvalid")?14:-1),r(),p(a.myEventsDateRangePickerForm.controls.toDate.hasError("matEndDateInvalid")?15:-1)}}function Ar(t,s){if(t&1){let e=b();n(0,"button",38),h("click",function(){u(e);let i=c(3);return g(i.closeButton())}),n(1,"mat-icon"),l(2,"close"),o()()}}function Lr(t,s){if(t&1){let e=b();n(0,"div",19)(1,"div",34)(2,"mat-icon",35),l(3,"search"),o(),n(4,"input",36),h("ngModelChange",function(i){u(e);let d=c(2);return g(d.onEventSearchChange(i))}),o(),m(5,Ar,3,0,"button",37),o()()}if(t&2){let e=c(2);r(4),_("ngModel",e.searchInput),r(),p(e.searchInput?5:-1)}}function Nr(t,s){if(t&1){let e=b();n(0,"button",38),h("click",function(){u(e);let i=c(3);return g(i.closeButton())}),n(1,"mat-icon"),l(2,"close"),o()()}}function Wr(t,s){if(t&1){let e=b();n(0,"div",19)(1,"div",39)(2,"mat-icon",35),l(3,"search"),o(),n(4,"input",40),h("ngModelChange",function(i){u(e);let d=c(2);return g(d.onEventSearchChange(i))}),o(),m(5,Nr,3,0,"button",37),o()()}if(t&2){let e=c(2);r(4),_("ngModel",e.searchInput),r(),p(e.searchInput?5:-1)}}function Br(t,s){t&1&&v(0,"th",62)}function jr(t,s){if(t&1&&(n(0,"div",65),v(1,"img",67),o()),t&2){let e=c().$implicit,a=c(3);r(),_("src",a.imagePrefix+e.logo+"&w=80&h=auto&fit=contain",Ie)}}function zr(t,s){if(t&1&&(n(0,"div",66),v(1,"img",68),o()),t&2){let e=c(4);r(),_("src",e.imagePrefix+"picture.nyc3.cdn.digitaloceanspaces.com/noLogo-"+e.association+".webp&w=80&h=80&fit=contain",Ie)}}function qr(t,s){if(t&1&&(n(0,"td",63)(1,"div",64),m(2,jr,2,1,"div",65)(3,zr,2,1,"div",66),o()()),t&2){let e=s.$implicit;r(2),p(e.logo?2:3)}}function Ur(t,s){t&1&&(n(0,"th",69),l(1," Event Name"),o())}function Gr(t,s){t&1&&(n(0,"div",72)(1,"span",73),l(2,"query_builder"),o(),n(3,"span",74),l(4,"Pending Approval"),o()())}function Hr(t,s){t&1&&(n(0,"div",72)(1,"span",75),l(2,"visibility_off"),o(),n(3,"span",76),l(4,"Hidden From Public"),o()())}function $r(t,s){if(t&1&&(n(0,"td",70)(1,"a",71),l(2),o(),m(3,Gr,5,0,"div",72),m(4,Hr,5,0,"div",72),o()),t&2){let e=s.$implicit,a=c(3);_("ngClass",V(5,wr,!a.isMobile)),r(),_("routerLink",V(7,Sr,"/pages/event/"+(a.readOnly?"":"detail/")+e._key)),r(),y(e.name),r(),p(e.pendingApproval?3:-1),r(),p(e.hideFromPublic?4:-1)}}function Jr(t,s){t&1&&(n(0,"th",69),l(1," Classes "),o())}function Yr(t,s){t&1&&(n(0,"span",79),l(1," local_police "),o())}function Qr(t,s){if(t&1&&(m(0,Yr,2,0,"span",79),n(1,"span"),l(2),o()),t&2){let e=s.$implicit,a=s.$index,i=c().$implicit;p(e.qualifier==!0?0:-1),r(),H("amber-600-fg",e.qualifier==!0),r(),_e("",e.name,"",a<(i==null||i.competitionClassesList==null?null:i.competitionClassesList.length)-1?",\xA0":""," ")}}function Kr(t,s){if(t&1&&(n(0,"td",77)(1,"div",78),k(2,Qr,3,5,null,
1null,A),o()()),t&2){let e=s.$implicit,a=c(3);_("ngClass",V(2,fi,!a.isMobile)),r(),_("ngClass",V(4,Dr,(e.competitionClassesList==null?null:e.competitionClassesList.length)>1)),r(),T(e.competitionClassesList)}}function Xr(t,s){t&1&&(n(0,"th",69),l(1," Dates "),o())}function Zr(t,s){if(t&1&&(n(0,"td",80),l(1),o()),t&2){let e=s.$implicit,a=c(3);_("ngClass",V(2,fi,!a.isMobile)),r(),E(" ",e.dates," ")}}function el(t,s){t&1&&(n(0,"th",69),l(1," Entries "),o())}function tl(t,s){t&1&&(n(0,"span"),l(1,"Entries: "),o())}function il(t,s){if(t&1&&(n(0,"td",81),m(1,tl,2,0,"span"),l(2),o()),t&2){let e=s.$implicit,a=c(3);_("ngClass",V(3,fi,!a.isMobile)),r(),p(a.isMobile?1:-1),r(),E(" ",e.listingOnly?"Listing Only":e.teamCnt=="?"?"?/"+e.maxEntries:e.teamCnt," ")}}function nl(t,s){t&1&&(n(0,"th",69),l(1," Location "),o())}function ol(t,s){if(t&1&&(n(0,"td",80),l(1),o()),t&2){let e=s.$implicit,a=c(3);_("ngClass",V(2,fi,!a.isMobile)),r(),E(" ",e.location)}}function al(t,s){t&1&&(n(0,"th",69),l(1," Entry "),o())}function rl(t,s){if(t&1&&(n(0,"td",80),l(1),o()),t&2){let e=s.$implicit,a=c(3);_("ngClass",V(2,fi,!a.isMobile)),r(),E(" ",e.entryFee)}}function ll(t,s){t&1&&(n(0,"th",82),l(1," Director "),o())}function sl(t,s){if(t&1&&(n(0,"td",77),l(1),v(2,"br"),l(3),o()),t&2){let e=s.$implicit,a=c(3);_("ngClass",V(3,fi,!a.isMobile)),r(),E(" ",e.director),r(2),y(e.owner==!1&&a.directorMode==!0?"(Team)":"")}}function dl(t,s){t&1&&v(0,"tr",83)}function cl(t,s){if(t&1&&v(0,"tr",84),t&2){let e=s.$implicit,a=s.index;_("ngClass",Un(1,Pr,a%2===0,a%2!==0,e.listingOnly,!e.listingOnly))}}function ml(t,s){t&1&&(n(0,"tr",85)(1,"td",86)(2,"span",87),l(3,"There are no matching data found"),o()()())}function pl(t,s){if(t&1&&(n(0,"div",41)(1,"table",42),F(2,43),I(3,Br,1,0,"th",44)(4,qr,4,1,"td",45),R(),F(5,46),I(6,Ur,2,0,"th",47)(7,$r,5,9,"td",48),R(),F(8,49),I(9,Jr,2,0,"th",47)(10,Kr,4,6,"td",50),R(),F(11,51),I(12,Xr,2,0,"th",47)(13,Zr,2,4,"td",52),R(),F(14,53),I(15,el,2,0,"th",47)(16,il,3,5,"td",54),R(),F(17,55),I(18,nl,2,0,"th",47)(19,ol,2,4,"td",52),R(),F(20,56),I(21,al,2,0,"th",47)(22,rl,2,4,"td",52),R(),F(23,57),I(24,ll,2,0,"th",58)(25,sl,4,5,"td",50),R(),I(26,dl,1,0,"tr",59)(27,cl,1,6,"tr",60)(28,ml,4,0,"tr",61),o()()),t&2){let e=c(2);r(),_("dataSource",e.dataSource)("trackBy",e.trackMyEvent),r(25),_("matHeaderRowDef",e.displayedColumns),r(),_("matRowDefColumns",e.displayedColumns)}}function _l(t,s){t&1&&(n(0,"span"),l(1,"..."),o())}function ul(t,s){if(t&1&&(n(0,"div",105)(1,"span",106),l(2),o()()),t&2){let e=c().$implicit,a=c(2);nt(e.sportObj==null?null:e.sportObj.color),_("ngClass",V(5,Er,e.schedulePaymentID&&a.isAdmin)),r(2),_e(" ",e.sportObj==null?null:e.sportObj.name," ",e.season," ")}}function gl(t,s){if(t&1&&v(0,"img",91),t&2){let e=c().$implicit,a=c(2);_("src",a.imagePrefix+(e.flyer==null?e.logo:e.flyer)+"&w=150",Ie)}}function fl(t,s){if(t&1&&v(0,"img",92),t&2){let e=c(3);_("src","https://picture.nyc3.cdn.digitaloceanspaces.com/noLogo-"+e.association+".webp",Ie)}}function Cl(t,s){if(t&1&&(n(0,"div",107),l(1),o()),t&2){let e=c().$implicit;nt(e.sportObj==null?null:e.sportObj.color),r(),_e("",e.sportObj==null?null:e.sportObj.name," ",e.season)}}function hl(t,s){t&1&&(n(0,"b",97),l(1,"CANCELLED!"),o())}function xl(t,s){t&1&&(n(0,"div",72)(1,"span",73),l(2,"query_builder"),o(),n(3,"span",74),l(4,"Pending Approval"),o()())}function bl(t,s){t&1&&(n(0,"li"),l(1,"Listing Only"),o())}function vl(t,s){if(t&1&&(n(0,"li",100)(1,"mat-icon"),l(2,"groups"),o(),l(3),o()),t&2){let e=c().$implicit;r(3),y(e.teamCnt)}}function yl(t,s){t&1&&(n(0,"span",108),l(1," local_police "),o())}function Ml(t,s){t&1&&(n(0,"span"),l(1,",\xA0"),o())}function wl(t,s){if(t&1&&(n(0,"span",103),m(1,yl,2,0,"span",108),n(2,"span",78),l(3),o(),m(4,Ml,2,0,"span"),o()),t&2){let e=s.$implicit,a=s.$index,i=c().$implicit;r(),p((e==null?null:e.qualifier)==!0?1:-1),r(),_("ngClass",V(4,Ir,(e==null?null:e.qualifier)==!0)),r(),y(e==null?null:e.name),r(),p(a<(i==null||i.competitionClassesList==null?null:i.competitionClassesList.length)-1?4:-1)}}function Sl(t,s){if(t&1&&(n(0,"mat-card",22)(1,"mat-card-content")(2,"div",88),m(3,ul,3,7,"div",89),n(4,"div",90),m(5,gl,1,1,"img",91),m(6,fl,1,1,"img",92),o(),n(7,"div",93),m(8,Cl,2,4,"div",94),n(9,"div",95)(10,"div",96),m(11,hl,2,0,"b",97),n(12,"a",98),l(13),o(),m(14,xl,5,0,"div",72),o()(),n(15,"div",95)(16,"ul",99)(17,"li"),l(18),o(),m(19,bl,2,0,"li"),m(20,vl,4,1,"li",100),o()(),n(21,"div",95)(22,"ul",101)(23,"li",102),k(24,wl,5,6,"span",103,A),o(),n(26,"li"),l(27),o(),n(28,"li",104),l(29),o()()()()()()()),t&2){let e=s.$implicit,a=c(2);r(2),_("ngStyle",V(17,Vn,a.isMobile?"column":"row")),r(),p(a.isMobile?-1:3),r(2),p(e.logo||e.flyer?5:-1),r(),p(!e.logo&&!e.flyer?6:-1),r(2),p(a.isMobile?8:-1),r(3),p(e.cancelled?11:-1),r(),H("text-strike",e.cancelled),_("routerLink",be
1("/pages/event/detail/",e._key)),r(),y(e.name),r(),p(e.pendingApproval?14:-1),r(4),y(e.dates),r(),p(e.listingOnly?19:-1),r(),p(!e.listingOnly||a.isTINC?20:-1),r(4),T((e==null?null:e.competitionClassesList)??bt(19,ya)),r(3),y(e.location),r(2),y(e.director)}}function Dl(t,s){t&1&&(n(0,"div",72)(1,"span",73),l(2,"query_builder"),o(),n(3,"span",74),l(4,"Pending Approval"),o()())}function Pl(t,s){if(t&1&&v(0,"img",91),t&2){let e=c().$implicit,a=c(2);_("src",a.imagePrefix+(e.flyer==null?e.logo:e.flyer)+"&w=150",Ie)}}function El(t,s){if(t&1&&v(0,"img",92),t&2){let e=c(3);_("src","https://picture.nyc3.cdn.digitaloceanspaces.com/noLogo-"+e.association+".webp",Ie)}}function Il(t,s){t&1&&(n(0,"span",108),l(1," local_police "),o())}function kl(t,s){t&1&&(n(0,"span"),l(1,",\xA0"),o())}function Tl(t,s){if(t&1&&(n(0,"span",120),m(1,Il,2,0,"span",108),n(2,"span",78),l(3),o(),m(4,kl,2,0,"span"),o()),t&2){let e=s.$implicit,a=s.$index,i=c().$implicit;r(),p((e==null?null:e.qualifier)==!0?1:-1),r(),_("ngClass",V(4,Tr,(e==null?null:e.qualifier)==!0)),r(),y(e==null?null:e.name),r(),p(a<(i==null||i.competitionClassesList==null?null:i.competitionClassesList.length)-1?4:-1)}}function Ol(t,s){if(t&1&&(n(0,"mat-card",25)(1,"mat-card-header",109)(2,"mat-card-title",110)(3,"div",111)(4,"div")(5,"a",112),l(6),o(),m(7,Dl,5,0,"div",72),o()()(),n(8,"mat-card-subtitle")(9,"div",113)(10,"div"),v(11,"fa-icon",114),n(12,"span",16),l(13),o()(),n(14,"div"),v(15,"fa-icon",114),l(16),o()()()(),n(17,"mat-card-content")(18,"div",115)(19,"div",116),m(20,Pl,1,1,"img",91),m(21,El,1,1,"img",92),o(),n(22,"table",117)(23,"tr")(24,"td",118),l(25,"Divisions"),o(),n(26,"td")(27,"div",119),k(28,Tl,5,6,"span",120,A),o()()(),n(30,"tr")(31,"td",118),l(32,"Entries/Max"),o(),n(33,"td"),l(34),o()(),n(35,"tr")(36,"td",118),l(37,"Deadline"),o(),n(38,"td"),l(39),Q(40,"date"),o()(),n(41,"tr")(42,"td",118),l(43,"Director"),o(),n(44,"td"),l(45),o()()()()()()),t&2){let e=s.$implicit,a=c(2);_("ngStyle",V(18,kr,a.isMobile?"369px":"500px;")),r(5),_("routerLink",be("/pages/event/detail/",e._key)),r(),y(e.name),r(),p(e.pendingApproval?7:-1),r(4),_("icon",a.faMapMarker),r(2),y(e.location),r(2),_("icon",a.faCalendarWeek),r(),E(" ",e.dates," "),r(2),_("ngStyle",V(20,Vn,a.isMobile?"column":"row")),r(2),p(e.logo||e.flyer?20:-1),r(),p(!e.logo&&!e.flyer?21:-1),r(7),T((e==null?null:e.competitionClassesList)??bt(22,ya)),r(6),y(e.listingOnly?"Listing Only":e.teamCnt=="?"?"?/"+e.maxEntries:e.teamCnt),r(5),y(le(40,15,e.cutDate,"MMMM d, yyyy")),r(6),y(e.director)}}function Vl(t,s){if(t&1){let e=b();n(0,"div",9)(1,"div",10)(2,"div"),m(3,Rr,19,9,"div",11),n(4,"div")(5,"mat-slide-toggle",12),D("ngModelChange",function(i){u(e);let d=c();return S(d.showPreviousSeasonEvents,i)||(d.showPreviousSeasonEvents=i),g(i)}),h("change",function(){u(e);let i=c();return g(i.showPreviousSeasonEventsChange())}),l(6,"Show Previous Season Events"),o()()(),n(7,"mat-button-toggle-group",13),D("ngModelChange",function(i){u(e);let d=c();return S(d.toggleView,i)||(d.toggleView=i),g(i)}),n(8,"mat-button-toggle",14),h("click",function(){u(e);let i=c();return g(i.setToggleView("list"))}),v(9,"fa-icon",15),n(10,"span",16),l(11,"List"),o()(),n(12,"mat-button-toggle",17),h("click",function(){u(e);let i=c();return g(i.setToggleView("card"))}),v(13,"fa-icon",15),n(14,"span",16),l(15,"Card"),o()(),n(16,"mat-button-toggle",18),h("click",function(){u(e);let i=c();return g(i.setToggleView("grid"))}),v(17,"fa-icon",15),n(18,"span",16),l(19,"Grid"),o()()()()(),m(20,Lr,6,2,"div",19),m(21,Wr,6,2,"div",19),n(22,"div",20),yi(23,pl,29,4)(24,_l,2,0),Mi(25,23,vr,null,24),wi(0,-1),o(),n(27,"div",21),k(28,Sl,30,20,"mat-card",22,Sn().trackMyEvent,!0),o(),n(30,"div",23)(31,"div",24),k(32,Ol,46,23,"mat-card",25,Sn().trackMyEvent,!0),o()(),v(34,"mat-paginator",26,0)}if(t&2){let e=c();r(),_("ngStyle",V(14,Vn,e.isMobile?"column":"row")),r(2),p(e.clubMode?-1:3),r(2),w("ngModel",e.showPreviousSeasonEvents),r(2),w("ngModel",e.toggleView),r(2),_("icon",e.faBars),r(4),_("icon",e.faRectangleList),r(4),_("icon",e.faThLarge),r(3),p(e.isMobile?-1:20),r(),p(e.isMobile?21:-1),r(),_("hidden",e.toggleView!=="list"),r(5),_("hidden",e.toggleView!=="card"),r(),T(e.paginatedEvents),r(2),_("hidden",e.toggleView!=="grid"),r(2),T(e.paginatedEvents),r(2),_("length",e.dataSource==null||e.dataSource.filteredData==null?null:e.dataSource.filteredData.length)("pageSizeOptions",bt(16,yr))}}function Fl(t,s){t&1&&(n(0,"div")(1,"mat-card",121)(2,"mat-card-content")(3,"div",110)(4,"h2",110),l(5,"No Events Found"),o(),n(6,"p",110),l(7,"There are no events to display."),o()()()()())}var Ma=(()=>{class t{paging;_membership;_fuseConfigService;platformId;breakpointObserver;_watchService;_formBuilder;cdr;dialog;api;notify;ngxLoader;watchStatus;association=P.clubSite==!0?P.siteName:P.association??"usasb";notLoggedIn;data;directorMode;clubMode;clubData;readOnly;showPreviousSeasonEvents=!1;isMobile=!1;isBrowser=!1;isXS=!1;searchInput;faThLarge=xo;faRectangleList=fo;faBars=ho;faMapMarker=Co;faCalendarWeek=bo;toggleView=P.eventSearchDisplayMode??"list";filter;table;paginator;dataSource=new fe;pageSize=10;events$;
1columnDefinitions=["logo","event","classes",{def:"dates",showMobile:!1},"teamCnt","location","entryFee","director"];fuseConfig;getDisplayedColumns(){let e=this.isXS;return this.columnDefinitions.filter(a=>(!e||a.showMobile!==!1)&&!(this.directorMode&&a.hideOnDirectorMode)).map(a=>typeof a=="string"?a:a.def)}displayedColumns=["logo","event","classes","dates","teamCnt","location","entryFee","director"];imagePrefix=new rn().prefix;form;isTINC=!1;isAdmin=!1;isRestricted=!1;rangeMin=0;rangeMax=1;startDate;endDate;dictSport=Fo;myEventsDateRangePickerForm=new ki({fromDate:new Vt("",yt.required),toDate:new Vt("",yt.required)});paginatedEvents=[];_unsubscribeAll;dateRange={start:null,end:null};constructor(e,a,i,d,f,C,L,z,Z,de,xt,hi){this.paging=e,this._membership=a,this._fuseConfigService=i,this.platformId=d,this.breakpointObserver=f,this._watchService=C,this._formBuilder=L,this.cdr=z,this.dialog=Z,this.api=de,this.notify=xt,this.ngxLoader=hi,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(At=>{this.isMobile=!!At.matches,this.isXS=!!At.matches}),this.pageSize=this.isMobile?5:10,this.isTINC=this._membership.currentUser?.persona?.tinc==!0,this.isAdmin=this._membership.currentUser?.persona?.hq==!0||this._membership.currentUser?.persona?.siteAdmin==!0||this._membership.currentUser?.persona?.regply==!0||this._membership.currentUser?.persona?.hasSupportTools==!0,this.isRestricted=this._membership.isRestricted}toControl(e){return e}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(a=>{this.fuseConfig=a}),this.myEventsDateRangePickerForm=this._formBuilder.group({fromDate:new Vt(""),toDate:new Vt("")});let e=localStorage.getItem("eventSearchDisplayMode");e!=null&&(this.toggleView=e),this.getDataSource()}ngAfterViewInit(){this.paginator&&this.paginator.page.subscribe(()=>{let e=this.paginator.pageIndex*this.paginator.pageSize,a=e+this.paginator.pageSize;this.paginatedEvents=this.dataSource.filteredData.slice(e,a),this.cdr.detectChanges()})}ngOnChanges(e){e.data&&this.getDataSource()}showPreviousSeasonEventsChange(){this.data=null,this.dataSource=null,this.getDataSource()}loading=!1;getDataSource(){this.dataSource||(this.dataSource=new fe([])),this.data==null?(this.loading=!0,this.ngxLoader.startLoader("loader-myEvents"),this.api.get("Event/myEvents4List/"+this.showPreviousSeasonEvents,!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.ngxLoader.stopLoader("loader-myEvents"),this.data=e,this.data?.events?.forEach(a=>{a.sportObj=this.dictSport[a.sport]??{name:a.sport,color:"grey-100"}}),this.dataSource=new fe(e.events),this.dataSource.paginator=this.paginator,this.paginatedEvents=e.events.slice(0,this.pageSize),this.events$=this.dataSource.connect(),this.cdr.detectChanges()},error:e=>{this.loading=!1,this.ngxLoader.stopLoader("loader-myEvents"),this.notify.openErrorModal(e.error?e.error:"An error has occured")}})):(this.data.events.forEach(e=>{e.sportObj=this.dictSport[e.sport]??{name:e.sport,color:"grey-100"}}),this.dataSource=new fe(this.data?.events),this.dataSource.paginator=this.paginator,this.paginatedEvents=this.data?.events.slice(0,this.pageSize),this.events$=this.dataSource.connect(),this.cdr.detectChanges())}setToggleView(e){this.toggleView=e,localStorage.setItem("eventSearchDisplayMode",e),this.paginator&&this.paginator.firstPage()}dateRangeChange(e,a){let i=(0,gi.default)().startOf("day"),d=(0,gi.default)(this.myEventsDateRangePickerForm.controls.fromDate.value),f=(0,gi.default)(this.myEventsDateRangePickerForm.controls.toDate.value);if(!d.isValid()||!f.isValid())return;let C=Math.floor(gi.default.duration(d.diff(i)).asDays()),L=Math.floor(gi.default.duration(f.diff(i)).asDays());this.myEventsRange={min:C,max:L},localStorage.setItem("myEventsRangeFilter",JSON.stringify(this.myEventsRange)),this.myEventsRangeFilter(!1),this.cdr.detectChanges()}myEventsRange={min:-14,max:10};rangeFilterEventCnt;myEvents=[];myEventsRangeFilter(e){if(!this.data||!this.data.events||!this.data.events.length||(e&&localStorage.getItem("myEventsRangeFilter")&&(this.myEventsRange=JSON.parse(localStorage.getItem("myEventsRangeFilter"))),!this.data?.events)||typeof this.myEventsRange?.min!="number"||typeof this.myEventsRange?.max!="number")return;let a=this.data.events.filter(i=>i.dayOffset>=this.myEventsRange.min&&i.dayOffset<=this.myEventsRange.max);if(this.dataSource=new fe(a),this.rangeFilterEventCnt=a.length,this.paginator){this.dataSource.paginator=this.paginator,this.paginator.firstPage();let i=0,d=this.paginator.pageSize;this.paginatedEvents=a.slice(i,d)}this.cdr.detectChanges()}clearDate(){this.myEventsDateRangePickerForm.reset(),this.myEventsRange={min:this.data?.rangeMin??38,max:this.data?.rangeMax??275},localStorage.setItem("myEventsRangeFilter",JSON.stringify(this.myEventsRange)),this.data?.events&&(this.dataSource=new fe(this.data.events),this.dataSource.paginator=this.paginator,this.paginatedEvents=this.data.events.slice(0,this.pageSize)),this.cdr.detectChanges()}formatSliderLabel(e){let a=new Date(new Date().getTime()+e*24*60*60*1e3);return a.getMonth()+1+"/"+a.getDate()+"/"+a.getFullYear().toString().substr(2,2)}panelWidth;addEvent(){if(this.isRestricted){this.notify.openWarningModal("Your account has been restricted.");return}this.panelWidth=this.isMobile?"95vw":"70vw",this.dialog.open(_a,{panelClass:"p12-dialog-container",width:this.panelWidth,minWidth:this.panelWidth,maxWidth:this.panelWidth,height:"auto",maxHeight:"95vh",data:{clubData:this.clubData??{}}}).afterClosed().subscribe(a=>{a&&this.ngOnInit()})}addEventV2(){if(this.isRestricted){this.notify.openWarningModal("Your account has been restricted.");return}this.panelWidth=this.isMobile?"95vw":"88vw",this.dialog.open(ua,{panelClass:"p12-dialog-container",width:this.panelWidth,minWidth:this.panelWidth,maxWidth:this.panelWidth,height:"auto",maxHeight:"95vh",data:{clubData:this.clubData??{}}}).afterClosed().subscribe(a=>{a&&this.ngOnInit()})}trackMyEvent(e,a){return a._key}applyFilter(){if(this.dataSource){this.dataSource.filter=this.searchInput?.trim().toLowerCase()||"";let e=this.paginator?.pageIndex*this.paginator?.pageSize||0,a=e+(this.paginator?.pageSize||this.pageSize);this.paginatedEvents=this.dataSource.filteredData.slice(e,a),this.paginator&&this.paginator.firstPage(),this.cdr.detectChanges()}}onEventSearchChange(e){this.searchInput=e,this.applyFilter()}closeButton(){this.searchInput="",this.applyFilter()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete(),this.dataSource&&this.dataSource.disconnect()}static \u0275fac=function(a){return new(a||t)(x(ko),x(De),x(re),x(vi),x(ee),x(fn),x(Bt),x(Ye),x($),x(U),x(G),x(ue))};static \u0275cmp=j({type:t,selectors:[["my-events-list"]],viewQuery:function(a,i){if(a&1&&(N(br,7),N(qe,5),N(Re,5)),a&2){let d;W(d=B())&&(i.filter=d.first),W(d=B())&&(i.table=d.first),W(d=B())&&(i.paginator=d.first)}},inputs:{notLoggedIn:"notLoggedIn",data:"data",directorMode:"directorMode",clubMode:"clubMode",clubData:"clubData",readOnly:"readOnly"},features:[Zt([{provide:uo,useClass:da,deps:[_o]},{provide:go,useValue:ca}]),Wn],decls:5,vars:5,consts:[["paginator",""],["dateRangeStart",""],["dateRangeEnd",""],["picker",""],["id","myEventList","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth"],[3,"loaderId","fgsSize"],[1,"text-right","mb-12"],["mat-button","",1,"primary",3,"click"],["mat-button","",1,"primary","ml-8",3,"click"],[1,"mb-12"],[1,"flex-justify-center",2,"flex-wrap","wrap","gap","15px",3,"ngStyle"],[1,"flex-center"],["name","showPreviousSeasonEvents","aria-label","Show Previous Season Events",3,"ngModelChange","change","ngModel"],["name","toggleView","aria-label","Display Mode",3,"ngModelChange","ngModel"],["value","list",3,"click"],[1,"fa-lg","blue-grey-fg","ml-12",3,"icon"],[1,"ml-8"],["value","card",3,"click"],["value","grid",3,"click"],[1,"quick-search-toolbar__actions","mt-4"],[1,"my-events-list-table-outer",3,"hidden"],[1,"px-4",3,"hidden"],[1,"mb-12","mat-elevation-z2"],[1,"mt-20",3,"hidden"],[1,"p-4","dvEventCard"],[1,"mat-elevation-z4","mb-8","card-responsive",3,"ngStyle"],["pageSize","10","showFirstLastButtons","",3,"length","pageSizeOptions"],["appearance","fill",3,"ngClass"],[3,"formGroup","rangePicker"],["readonly","","matStartDate","","placeholder","Start date","formControlName","fromDate"],["readonly","","matEndDate","","placeholder","End date","formControlName","toDate",3,"dateChange"],["matSuffix","",3,"for"],[3,"touchUi"],[3,"click"],[1,"quick-search","quick-search--desktop"],[1,"quick-search__icon"],["type","search","placeholder","Quick Search","name","searchInputEvents",1,"quick-search__input",3,"ngModelChange","ngModel"],["type","button","aria-label","Clear search",1,"quick-search__clear"],["type","button","aria-label","Clear search",1,"quick-search__clear",3,"click"],[1,"quick-search"],["type","search","placeholder","Quick Search","name","searchInputEventsMobile",1,"quick-search__input",3,"ngModelChange","ngModel"],[1,"my-events-list-table-wrapper"],["matSort","","mat-table","","recycleRows","",1,"my-events-list-table","w-100-
1p",3,"dataSource","trackBy"],["matColumnDef","logo"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","center my-events-list-logo-td","style","min-width: 80px;",4,"matCellDef"],["matColumnDef","event"],["mat-header-cell","","class","center px-4",4,"matHeaderCellDef"],["mat-cell","","style","height:fit-content;min-width:160px;",3,"ngClass",4,"matCellDef"],["matColumnDef","classes"],["mat-cell","","class"," m-card-sub-title",3,"ngClass",4,"matCellDef"],["matColumnDef","dates"],["mat-cell","","class","nowrap",3,"ngClass",4,"matCellDef"],["matColumnDef","teamCnt"],["data-label","entries","mat-cell","","class"," nowrap",3,"ngClass",4,"matCellDef"],["matColumnDef","location"],["matColumnDef","entryFee"],["matColumnDef","director"],["mat-header-cell","","mat-sort-header","","class","center px-4",4,"matHeaderCellDef"],["mat-header-row","","class","my-events-list-header-row",4,"matHeaderRowDef"],["mat-row","","class","my-events-list-row",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-row","","class","my-events-list-no-data-row",4,"matNoDataRow"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center","my-events-list-logo-td",2,"min-width","80px"],[1,"mel-logo-cell"],[1,"mel-logo-cell__ring"],[1,"mel-logo-cell__ring","mel-logo-cell__ring--placeholder"],["alt","","loading","lazy",1,"mel-logo-cell__img",3,"src"],["alt","","loading","lazy",1,"mel-logo-cell__img","mel-logo-cell__img--placeholder",3,"src"],["mat-header-cell","",1,"center","px-4"],["mat-cell","",2,"height","fit-content","min-width","160px",3,"ngClass"],[3,"routerLink"],[1,"flex-start-center"],[1,"material-icons","orange-fg"],[1,"orange-fg"],[1,"material-icons","red-fg"],[1,"red-fg"],["mat-cell","",1,"m-card-sub-title",3,"ngClass"],[3,"ngClass"],[1,"amber-600-fg","material-icons"],["mat-cell","",1,"nowrap",3,"ngClass"],["data-label","entries","mat-cell","",1,"nowrap",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"center","px-4"],["mat-header-row","",1,"my-events-list-header-row"],["mat-row","",1,"my-events-list-row",3,"ngClass"],["mat-row","",1,"my-events-list-no-data-row"],["colspan","8",1,"mat-cell","message-box","warning","has_noData",2,"grid-column","span 3"],[1,"pl-8"],[2,"display","flex","gap","10px","min-height","150px",3,"ngStyle"],[2,"border-right","1px solid #DEE2E6","flex","0 0 45px","position","relative","margin","-4px 0 -4px -16px",3,"class","ngClass"],[1,"",2,"display","flex","flex","0 0 150px","margin","0 25px","justify-content","center","align-items","center"],[1,"imgFlyer",2,"border","0","width","150px","max-width","150px","height","auto","vertical-align","top",3,"src"],["loading","lazy",2,"width","150px","height","auto",3,"src"],[2,"width","100%","display","flex","flex-direction","column","justify-content","center"],[1,"bold","font-size-18","text-center",3,"class"],[2,"display","flex","flex-direction","row","align-items","center"],[2,"font-style","normal","font-weight","700","font-size","18px","color","#2f333c"],[1,"red-fg","mr-8"],[2,"max-width","99%","min-width","200px",3,"routerLink"],[1,"event-info",2,"list-style","none","display","flex","align-items","center","margin","0","padding","5px 0"],[2,"display","flex","align-items","flex-end","gap","10px"],[1,"event-info",2,"list-style","none","display","flex","flex-direction","row","flex-wrap","wrap","align-items","center","margin","15px 0 0","max-height","85px","overflow-y","auto","padding-left","0"],[2,"display","flex","font-size","15px","flex-wrap","wrap"],[1,"inner","flex-start-center"],[1,"text-capitalize"],[2,"border-right","1px solid #DEE2E6","flex","0 0 45px","position","relative","margin","-4px 0 -4px -16px",3,"ngClass"],[2,"background-position","0 50%","background-repeat","no-repeat","color","#717782","display","block","font-size","13px","font-weight","700","left","60%","line-height","24px","padding","0","position","absolute","top","50%","transform","translate(-50%, -50%) rotate(-90deg)","white-space","nowrap"],[1,"bold","font-size-18","text-center"],[1,"amber-600-fg","material-icons",2,"line-height","20px","font-size","20px"],[2,"justify-content","center"],[1,"text-center"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5px",1,""],[2,"white-space","pre-line",3,"routerLink"],[1,"flex-justify-center"],[1,"fa-sm",3,"icon"],[2,"display","flex","gap","15px",3,"ngStyle"],[2,"display","flex","width","150px","align-self","center","justify-content","center"],["fxFlex.gt-sm","1 1 100%",1,"table","table-responsive","table-striped","tblInfo"],[1,"text-bold"],[1,"dvEventClassList",2,"min-width","150px","max-width","200px","max-height","120px","overflow-y","auto"],[1,"inner"],[1,"mat-elevation-z2"]],template:function(a,i){a&1&&(n(0,"div",4),v(1,"ngx-ui-loader",5),m(2,Or,5,0,"div",6),m(3,Vl,36,17),o(),m(4,Fl,8,0,"div")),a&2&&(r(),_("loaderId","loader-myEvents")("fgsSize",75),r(),p(!i.readOnly&&i.clubData!=null&&!i.isRestricted?2:-1),r(),p(i.myEvents?3:-1),r(),p((!i.data||!i.myEvents)&&i.toggleView!=="list"?4:-1))},dependencies:[K,ie,Pi,wt,vt,X,ce,ne,ve,me,Oe,ti,ii,so,lo,he,Ce,Ct,Ve,Se,we,ot,Vi,St,Fe,J,ae,Y,te,mi,ci,Gi,Hi,$i,Ji,Ro,ze,je,at,di,qi,si,Ot,Re,zi,Bi,ji,Wi,Ni,Ue],styles:['.my-events-list-table-outer[_ngcontent-%COMP%]{overflow-x:auto;margin:8px 0 12px;width:100%;box-sizing:border-box}.my-events-list-table-wrapper[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;box-shadow:0 1px 4px #00000014;border:1px solid #eaecf0;overflow-x:auto;margin:0;background:#fff}.my-events-list-table[_ngcontent-%COMP%]{border-collapse:collapse;font-size:14px}.my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]{background:#eaecf0;font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#4a5568;white-space:nowrap;padding:8px 10px;border-bottom:2px solid #e0e0e0;border-right:1px solid #e0e0e0;vertical-align:middle}.my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}.my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-row.row-even[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{background:#fff}.my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-row.row-odd[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{background:#f9fafb}.my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-row[_ngcontent-%COMP%]{transition:background-color .15s ease;min-height:48px}.my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-row[_ngcontent-%COMP%]:hover td.mat-mdc-cell[_ngcontent-%COMP%]{background:#eef2f7!important}.my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-row[_ngcontent-%COMP%] > td.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px;border-right:1px solid #e0e0e0;border-bottom:0;vertical-align:middle}.my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-row[_ngcontent-%COMP%] > td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}.my-events-list-logo-td[_ngcontent-%COMP%]{padding:0!important;vertical-align:middle!important;width:1%;box-sizing:border-box}.mel-logo-cell[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:6px 4px;min-width:68px;box-sizing:border-box}.mel-logo-cell__ring[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:50%;border:1px solid #e2e8f0;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.mel-logo-cell__ring--placeholder[_ngcontent-%COMP%]{background:linear-gradient(180deg,#f8fafc,#e9eef5);border-color:#cbd5e1}.mel-logo-cell__img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;object-fit:contain;display:block;border-radius:50%}.mel-logo-cell__img--placeholder[_ngcontent-%COMP%]{width:44px;height:44px;object-fit:contain;border-radius:0;opacity:.9}[_nghost-%COMP%] .my-events-list-table[_ngcontent-%COMP%] .my-events-list-no-data-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%], [_nghost-%COMP%] .my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-no-data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:#f9fafb;border-right:1px solid #e0e0e0;padding:12px 16px;vertical-align:middle}[_nghost-%COMP%] .my-events-list-table[_ngcontent-%COMP%] .my-events-list-no-data-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, [_nghost-%COMP%] .my-events-list-table[_ngcontent-%COMP%] tr.my-events-list-no-data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-of-type{border-right:none}.matSlider[_ngcontent-%COMP%] .mat-mdc-slider.mat-slider-horizontal[_ngcontent-%COMP%] .mat-slider-wrapper[_ngcontent-%COMP%]{top:18px}.matSlider[_ngcontent-%COMP%] .mat-mdc-slider.mat-slider-horizontal[_ngcontent-%COMP%] .mat-slider-track-wrapper[_ngcontent-%COMP%]{height:12px;border-radius:10px}.matSlider[_ngcontent-%COMP%] .mat-mdc-slider.mat-mdc-slider-horizontal[_ngcontent-%COMP%] .mat-mdc-slider-track-background[_ngcontent-%COMP%], .matSlider[_ngcontent-%COMP%] .mat-mdc-slider.mat-slider-horizontal[_ngcontent-%COMP%] .mat-slider-track-fill[_ngcontent-%COMP%]{height:100%}.matSlider[_ngcontent-%COMP%] .mat-mdc-slider.mat-slider-horizontal[_ngcontent-%COMP%] .mat-slider-track-fill[_ngcontent-%COMP%]{background-color:#00f}
1.matSlider[_ngcontent-%COMP%] .mat-accent[_ngcontent-%COMP%] .mat-slider-thumb[_ngcontent-%COMP%]{height:30px;width:30px;background-color:#fff;border:solid 2px gray;bottom:-20px;right:-20px}.matSlider[_ngcontent-%COMP%] .mat-slider-min-value[_ngcontent-%COMP%]:not(.mat-slider-thumb-label-showing) .mat-slider-thumb[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%] .mat-slider-wrapper .mat-slider-horizontal .mat-slider-thumb-label{right:-25px!important;top:-22px!important;transform:0}[_nghost-%COMP%] .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb-label{transform:rotate(360deg)!important;width:fit-content;height:15px;border-radius:inherit!important;padding:0 2px;justify-content:flex-start}[_nghost-%COMP%] .mat-slider-wrapper .mat-slider-thumb{transform:scale(0)!important}[_nghost-%COMP%] .mat-slider-wrapper .mat-slider-thumb-label-text{opacity:1!important;text-align:center;transform:rotate(360deg)!important}[_nghost-%COMP%] .mat-slider-wrapper .mat-slider-ticks{height:10px!important}[_nghost-%COMP%] .mat-slider-wrapper .mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(360deg)} .mat-slider-thumb-label-text{font-size:14px}@media screen and (max-width:959px){ .mat-slider-thumb-label-text{font-size:12px}}.myEventsInfiniteScrollWrapper[_ngcontent-%COMP%]{overflow-y:scroll;max-height:40vh}.myEventsInfiniteScrollWrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border-collapse:separate!important}#triangle-up[_ngcontent-%COMP%]{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:15px solid red}.todayTick[_ngcontent-%COMP%]{max-height:55px;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center}.bubble[_ngcontent-%COMP%]{width:10rem;background:#000;position:relative;color:#fff;padding:1rem;text-align:center;border-radius:.3rem}.bubble[_ngcontent-%COMP%]:after{content:"";display:inline-block;width:1rem;height:1rem;background:#000;position:absolute;bottom:-1rem;left:calc(50% - .5rem);clip-path:polygon(0 0,100% 0,50% 100%)}.eventLogo[_ngcontent-%COMP%]{vertical-align:middle;padding:5px;height:60px;width:60px;object-fit:cover;min-width:auto;min-height:60px;max-width:fit-content}.tdImg[_ngcontent-%COMP%]{height:60px;width:60px;object-fit:cover}.tdBorder[_ngcontent-%COMP%]{border:1px solid;border-color:#0000001f;width:60px;height:60px}.mat-mdc-card-content[_ngcontent-%COMP%]:last-child{padding-bottom:4px!important}.mat-mdc-card-content[_ngcontent-%COMP%]:first-child{padding-top:4px!important}.mat-date-range-input-start-wrapper[_ngcontent-%COMP%], .mat-date-range-input-mirror[_ngcontent-%COMP%]{min-width:80px!important}.scrollable[_ngcontent-%COMP%]{min-width:150px;max-width:200px;max-height:120px;overflow-y:auto;display:flex;align-items:center;flex-wrap:wrap;padding:4px 8px}.mat-column-filler[_ngcontent-%COMP%]{padding:0 8px;font-size:10px;text-align:center}.mat-mdc-header-cell[_ngcontent-%COMP%], .mat-mdc-footer-cell[_ngcontent-%COMP%], .mat-mdc-cell[_ngcontent-%COMP%]{min-width:80px;box-sizing:border-box}.mat-mdc-table-sticky-border-elem-top[_ngcontent-%COMP%]{border-bottom:2px solid #cdcdcd}.mat-mdc-table-sticky-border-elem-right[_ngcontent-%COMP%]{border-left:2px solid #cdcdcd}.mat-mdc-table-sticky-border-elem-bottom[_ngcontent-%COMP%]{border-top:2px solid #cdcdcd}.mat-mdc-table-sticky-border-elem-left[_ngcontent-%COMP%]{border-right:2px solid #cdcdcd}.alternate-row[_ngcontent-%COMP%]{background-color:#f0f0f0!important}.sticky-row[_ngcontent-%COMP%]{background-color:#fff!important}.event-info[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#717782;display:inline-block;font-size:16px;font-weight:700;line-height:150%;position:relative}.event-info[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"|";font-size:13px;margin:0 10px;vertical-align:top}.event-info[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child:before{content:"";margin:0}.event-list[_ngcontent-%COMP%]{font-size:0;margin:15px 0 0}.dvEventCard[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}@media screen and (max-width:599px){.dvEventCard[_ngcontent-%COMP%]{flex-direction:column;place-content:center;align-items:center}}'],changeDetection:0})}return t})();var Fn=Ln(co());var Nl=["sessionPaginator"],Wl=["sessionSort"],Bl=["searchSessionForm"],jl=()=>["expandedDetail"],zl=()=>[10,25,100];function ql(t,s){t&1&&(n(0,"th",49),l(1,"Name"),o())}function Ul(t,s){if(t&1&&(n(0,"td",50),l(1),o()),t&2){let e=s.$implicit;r(),y(e.name)}}function Gl(t,s){t&1&&v(0,"th",51)}function Hl(t,s){if(t&1){let e=b();n(0,"button",53),h("click",function(i){u(e);let d=c().$implicit;return c().getTasks4Club(d._key,d.clubID,!1),g(i.stopPropagation())}
1),l(1),o(),n(2,"span",54),h("click",function(){u(e);let i=c().$implicit,d=c();return g(d.getTasks4Club(i._key,i.clubID,!1))}),l(3," format_list_bulleted_add "),o()}if(t&2){let e=c().$implicit;r(),E(" Search Volunteer Sessions for ",e.name," ")}}function $l(t,s){if(t&1&&(n(0,"td",52),m(1,Hl,4,1),o()),t&2){let e=s.$implicit;r(),p(e.requirement>e.completed?1:-1)}}function Jl(t,s){t&1&&(n(0,"th",55),l(1,"Progress"),o())}function Yl(t,s){if(t&1&&(n(0,"td",56)(1,"div",57)(2,"span"),l(3),n(4,"span",58),l(5,"Completed"),o(),l(6),n(7,"span",58),l(8,"Required"),o()()(),n(9,"section",59),v(10,"mat-progress-bar",60),n(11,"div",61),l(12),Q(13,"number"),o()()()),t&2){let e=s.$implicit;r(3),E("",e.completed," "),r(3),E(" / ",e.requirement," "),r(4),_("value",e.completed/e.requirement*100)("bufferValue",e.requirement),r(2),E(" ",le(13,5,e.completed/e.requirement*100,"1.0-0"),"% ")}}function Ql(t,s){t&1&&(n(0,"th",51),l(1,"\xA0"),o())}function Kl(t,s){if(t&1){let e=b();n(0,"mat-icon",63),h("click",function(i){u(e);let d=c().$implicit;return c().expandRow(d),g(i.stopPropagation())}),l(1),o()}if(t&2){let e=c().$implicit,a=c();r(),y(a.expandedElement===e?"expand_less":"expand_more")}}function Xl(t,s){if(t&1&&(n(0,"td",62),m(1,Kl,2,1,"mat-icon"),o()),t&2){let e=s.$implicit;r(),p((e.claimedSessions==null?null:e.claimedSessions.length)>0?1:-1)}}function Zl(t,s){t&1&&(n(0,"th",51),l(1,"Task"),o())}function es(t,s){if(t&1&&(n(0,"td",64),l(1),o()),t&2){let e=s.$implicit;r(),y(e.task)}}function ts(t,s){t&1&&(n(0,"th",51),l(1,"Session"),o())}function is(t,s){if(t&1&&(n(0,"td",64),l(1),o()),t&2){let e=s.$implicit;r(),y(e.name)}}function ns(t,s){t&1&&(n(0,"th",51),l(1,"Description"),o())}function os(t,s){if(t&1&&(n(0,"td",64)(1,"div",81),l(2),o()()),t&2){let e=s.$implicit;r(2),y(e.description)}}function as(t,s){t&1&&(n(0,"th",82),l(1,"Credits"),o())}function rs(t,s){if(t&1&&(n(0,"td",62),l(1),o()),t&2){let e=s.$implicit;r(),E(" ",e.creditValue," ")}}function ls(t,s){t&1&&(n(0,"th",82),l(1,"Location"),o())}function ss(t,s){if(t&1&&(n(0,"td",64),l(1),o()),t&2){let e=s.$implicit;r(),y(e.location)}}function ds(t,s){t&1&&(n(0,"th",82),l(1,"Date"),o())}function cs(t,s){if(t&1&&(n(0,"span"),l(1),Q(2,"date"),v(3,"br"),l(4),Q(5,"date"),Q(6,"date"),o()),t&2){let e=c().$implicit;r(),y(le(2,3,e.startDate,"shortDate")),r(3),_e(" ",le(5,6,e._start,"hh.mm a")," - ",le(6,9,e._end,"hh.mm a")," ")}}function ms(t,s){if(t&1&&(n(0,"td",83),m(1,cs,7,12,"span"),o()),t&2){let e=s.$implicit;r(),p(e.isClaimed!=!1?1:-1)}}function ps(t,s){t&1&&(n(0,"th",82),l(1,"Status"),o())}function _s(t,s){t&1&&(n(0,"mat-chip",85)(1,"mat-icon",90),l(2,"add_circle_outline"),o(),l(3,"Claimed"),o())}function us(t,s){t&1&&(n(0,"mat-chip",86)(1,"mat-icon",91),l(2,"check_circle_outline"),o(),l(3,"Completed"),o())}function gs(t,s){t&1&&(n(0,"mat-chip",87)(1,"mat-icon",92),l(2,"pending"),o(),l(3,"Pending"),o())}function fs(t,s){t&1&&(n(0,"mat-chip",88)(1,"mat-icon",90),l(2,"highlight_off"),o(),l(3,"Denied"),o())}function Cs(t,s){if(t&1){let e=b();n(0,"span",93),h("click",function(){u(e);let i=c().$implicit,d=c(3),f=O(77);return g(d.openDenyCommentDialog(i,f))}),l(1," contact_support "),o()}}function hs(t,s){if(t&1&&(n(0,"td",84),m(1,_s,4,0,"mat-chip",85),m(2,us,4,0,"mat-chip",86),m(3,gs,4,0,"mat-chip",87),m(4,fs,4,0,"mat-chip",88),m(5,Cs,2,0,"span",89),o()),t&2){let e=s.$implicit;r(),p(e.status=="claimed"?1:-1),r(),p(e.status=="markedAsCompleted"?2:-1),r(),p(e.status=="pendingApproval"?3:-1),r(),p(e.status=="denied"?4:-1),r(),p(e.status=="denied"?5:-1)}}function xs(t,s){t&1&&(n(0,"th",82),l(1,"Action"),o())}function bs(t,s){if(t&1&&(n(0,"button",94)(1,"mat-icon"),l(2,"more_vert"),o()()),t&2){c();let e=O(3);_("matMenuTriggerFor",e)}}function vs(t,s){if(t&1){let e=b();n(0,"td",62),m(1,bs,3,1,"button",94),n(2,"mat-menu",null,7)(4,"button",95),h("click",function(){let i=u(e).$implicit,d=c(3);return g(d.askCompletion(i))}),l(5,"Ask Completion"),o(),n(6,"button",96),h("click",function(){let i=u(e).$implicit,d=c(3),f=O(75);return g(d.cancelClaimDialogOpen(i,f))}),l(7," Cancel Claim "),o()()()}if(t&2){let e=s.$implicit;r(),p(e.status!="pendingApproval"&&e.isClaimed!=!1&&e.status!="denied"&&e.status!="markedAsCompleted"?1:-1),r(5),H("spinner",e.loading),_("disabled",e.loading)}}function ys(t,s){t&1&&v(0,"tr",97)}function Ms(t,s){t&1&&v(0,"tr",98)}function ws(t,s){if(t&1&&(n(0,"table",67),F(1,69),I(2,Zl,2,0,"th",19)(3,es,2,1,"td",27),R(),F(4,70),I(5,ts,2,0,"th",19)(6,is,2,1,"td",27),R(),F(7,71),I(8,ns,2,0,"th",19)(9,os,3,1,"td",27),R(),F(10,72),I(11,as,2,0,"th",73)(12,rs,2,1,"td",25),R(),F(13,74),I(14,ls,2,0,"th",73)(15,ss,2,1,"td",27),R(),F(16,75),I(17,ds,2,0,"th",73)(18,ms,2,1,"td",76),R(),F(19,77),I(20,ps,2,0,"th",73)(21,hs,6,5,"td",78),R(),F(22,18),I(23,xs,2,0,"th",73)(24,vs,8,4,"td",25),R(),I(25,ys,1,0,"tr",79)(26,Ms,1,0,"tr",80),o()),t&2){let e=c().$implicit,a=c();_("dataSource",e.claimedSession4kid),r(25),_("matHeaderRowDef",a.displayedColumns4Session),r(),_("matRowDefColumns",a.displayedColumns4Session)}}function Ss(t,s){t&1&&(n(0,"div",68),l(1,"No claimed session(s) found"),o())}function Ds(t,s){if(t&1&&(n(0,"td",64)(1,"div",65)(2,"div",66),m(3,ws,27,3,"table",67),m(4,Ss,2,0,"div",68),o()()()),t&2){let e=s.$implicit,a=c();it("colspan",a.displayedColumns4Childs.length),r(),H("claims-element-detail-wrapper--expanded",e==a.expandedElement),r(2),p(e.noData?-1:3),r(),p(e.noData?4:-1)}}
1function Ps(t,s){t&1&&v(0,"tr",99)}function Es(t,s){if(t&1){let e=b();n(0,"tr",100),h("click",function(){let i=u(e).$implicit,d=c();return g(d.expandRow(i))}),o()}if(t&2){let e=s.$implicit,a=c();H("claims-expanded-row",a.expandedElement===e)}}function Is(t,s){t&1&&v(0,"tr",101)}function ks(t,s){if(t&1&&(n(0,"td",103),l(1,"No sessions found!"),o()),t&2){let e=c(2);it("colspan",e.displayedColumns4Childs==null?null:e.displayedColumns4Childs.length)}}function Ts(t,s){if(t&1&&(n(0,"tr",102),m(1,ks,2,1,"td",103),o()),t&2){let e=c();r(),p(e.loadingKidsWithClaimedVolunteering?-1:1)}}function Os(t,s){t&1&&v(0,"mat-progress-bar",33)}function Vs(t,s){if(t&1&&(n(0,"mat-option",38),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),E(" ",e.name)}}function Fs(t,s){t&1&&(n(0,"mat-hint",39),l(1,"Select a Player"),o())}function Rs(t,s){if(t&1&&(n(0,"mat-option",38),l(1),o()),t&2){let e=s.$implicit;_("value",e._key),r(),E(" ",e.name)}}function As(t,s){if(t&1){let e=b();n(0,"mat-form-field",107)(1,"input",114),h("keyup",function(){u(e);let i=c(3);return g(i.applyFilter4AvailableSessions())}),D("ngModelChange",function(i){u(e);let d=c(3);return S(d.searchInput4AvailableSessions,i)||(d.searchInput4AvailableSessions=i),g(i)}),o(),n(2,"button",115),h("click",function(){u(e);let i=c(3);return g(i.clearFilter4AvailableSessions())}),n(3,"mat-icon"),l(4,"close"),o()()()}if(t&2){let e=c(3);r(),w("ngModel",e.searchInput4AvailableSessions)}}function Ls(t,s){t&1&&(n(0,"div",108),v(1,"mat-progress-bar",33),o())}function Ns(t,s){t&1&&(n(0,"th",82),l(1,"Session Name"),o())}function Ws(t,s){if(t&1&&(n(0,"td",64),l(1),o()),t&2){let e=s.$implicit;r(),y(e.name)}}function Bs(t,s){t&1&&(n(0,"th",51),l(1,"Description"),o())}function js(t,s){if(t&1&&(n(0,"td",64),l(1),o()),t&2){let e=s.$implicit;r(),y(e.description)}}function zs(t,s){t&1&&(n(0,"th",82),l(1,"Credits"),o())}function qs(t,s){if(t&1&&(n(0,"td",62),l(1),o()),t&2){let e=s.$implicit;r(),y(e.creditValue)}}function Us(t,s){t&1&&(n(0,"th",82),l(1,"Location"),o())}function Gs(t,s){if(t&1&&(n(0,"td",64),l(1),o()),t&2){let e=s.$implicit;r(),y(e.location)}}function Hs(t,s){t&1&&(n(0,"th",82),l(1,"Date"),o())}function $s(t,s){if(t&1&&(n(0,"td",83)(1,"span"),l(2),Q(3,"date"),o(),v(4,"br"),n(5,"span"),l(6),o()()),t&2){let e=s.$implicit;r(2),y(le(3,3,e.startDate,"MMM dd")),r(4),_e("",e.startTime," - ",e.endTime)}}function Js(t,s){t&1&&(n(0,"th",82),l(1,"Action"),o())}function Ys(t,s){if(t&1){let e=b();n(0,"button",118),h("click",function(){u(e);let i=c().$implicit,d=c(3),f=O(73);return g(d.claimVolunteerSessionDialogOpen(i,f))}),l(1," Claim Session "),o()}}function Qs(t,s){t&1&&(n(0,"button",117),l(1,"Claimed"),o())}function Ks(t,s){if(t&1&&(n(0,"td",62),m(1,Ys,2,0,"button",116),m(2,Qs,2,0,"button",117),o()),t&2){let e=s.$implicit;r(),p(e.isClaimed?-1:1),r(),p(e.isClaimed?2:-1)}}function Xs(t,s){t&1&&v(0,"tr",97)}function Zs(t,s){t&1&&v(0,"tr",98)}function ed(t,s){if(t&1&&(n(0,"tr",102)(1,"td",119),l(2," No volunteering tasks found. "),o()()),t&2){let e=c(3);r(),it("colspan",e.displayedColumns4AvailableSessions.length)}}function td(t,s){if(t&1&&(n(0,"div"),m(1,As,5,1,"mat-form-field",107),m(2,Ls,2,0,"div",108),n(3,"table",109),F(4,15),I(5,Ns,2,0,"th",73)(6,Ws,2,1,"td",27),R(),F(7,110),I(8,Bs,2,0,"th",19)(9,js,2,1,"td",27),R(),F(10,72),I(11,zs,2,0,"th",73)(12,qs,2,1,"td",25),R(),F(13,111),I(14,Us,2,0,"th",73)(15,Gs,2,1,"td",27),R(),F(16,75),I(17,Hs,2,0,"th",73)(18,$s,7,6,"td",76),R(),F(19,18),I(20,Js,2,0,"th",73)(21,Ks,3,2,"td",25),R(),I(22,Xs,1,0,"tr",79)(23,Zs,1,0,"tr",80)(24,ed,3,1,"tr",31),o(),n(25,"div",112),v(26,"mat-paginator",113,8),o()()),t&2){let e=c(2);r(),p((e.dataSource4AvailableSessions==null||e.dataSource4AvailableSessions.filteredData==null?null:e.dataSource4AvailableSessions.filteredData.length)>0?1:-1),r(),p(e.searchLoading?2:-1),r(),_("dataSource",e.dataSource4AvailableSessions),r(19),_("matHeaderRowDef",e.displayedColumns4AvailableSessions),r(),_("matRowDefColumns",e.displayedColumns4AvailableSessions),r(2),_("hidden",(e.dataSource4AvailableSessions==null||e.dataSource4AvailableSessions.filteredData==null?null:e.dataSource4AvailableSessions.filteredData.length)<=10),r(),_("pageSizeOptions",bt(7,zl))}}function id(t,s){if(t&1){let e=b();n(0,"mwl-calendar-month-view",133),h("dayClicked",function(i){u(e);let d=c(3);return g(d.dayClicked(i.day))})("eventClicked",function(i){u(e);let d=c(3),f=O(73);return g(d.claimVolunteerSessionDialogOpen(i.event.meta.session,f))}),o()}if(t&2){let e=c(3);_("viewDate",e.viewDate)("events",e.calendarEvents4Sessions)("refresh",e.refresh)("activeDayIsOpen",e.activeDayIsOpen)}}
1function nd(t,s){if(t&1){let e=b();n(0,"mwl-calendar-week-view",134),h("eventClicked",function(i){u(e);let d=c(3),f=O(73);return g(d.claimVolunteerSessionDialogOpen(i.event.meta.session,f))}),o()}if(t&2){let e=c(3);_("viewDate",e.viewDate)("events",e.calendarEvents4Sessions)("refresh",e.refresh)}}function od(t,s){if(t&1){let e=b();n(0,"mwl-calendar-day-view",134),h("eventClicked",function(i){u(e);let d=c(3),f=O(73);return g(d.claimVolunteerSessionDialogOpen(i.event.meta.session,f))}),o()}if(t&2){let e=c(3);_("viewDate",e.viewDate)("events",e.calendarEvents4Sessions)("refresh",e.refresh)}}function ad(t,s){if(t&1){let e=b();n(0,"div",120)(1,"div",121)(2,"button",122),D("viewDateChange",function(i){u(e);let d=c(2);return S(d.viewDate,i)||(d.viewDate=i),g(i)}),h("viewDateChange",function(){u(e);let i=c(2);return g(i.closeOpenMonthViewDay())}),l(3," Previous "),o(),n(4,"button",123),D("viewDateChange",function(i){u(e);let d=c(2);return S(d.viewDate,i)||(d.viewDate=i),g(i)}),l(5," Today "),o(),n(6,"button",124),D("viewDateChange",function(i){u(e);let d=c(2);return S(d.viewDate,i)||(d.viewDate=i),g(i)}),h("viewDateChange",function(){u(e);let i=c(2);return g(i.closeOpenMonthViewDay())}),l(7," Next "),o()(),n(8,"div",125),l(9),Q(10,"calendarDate"),o(),n(11,"div",126)(12,"button",127),h("click",function(){u(e);let i=c(2);return g(i.setView(i.CalendarView.Month))}),l(13," Month "),o(),n(14,"button",128),h("click",function(){u(e);let i=c(2);return g(i.setView(i.CalendarView.Week))}),l(15," Week "),o(),n(16,"button",129),h("click",function(){u(e);let i=c(2);return g(i.setView(i.CalendarView.Day))}),l(17," Day "),o()()(),n(18,"div",130),m(19,id,1,4,"mwl-calendar-month-view",131)(20,nd,1,3,"mwl-calendar-week-view",132)(21,od,1,3,"mwl-calendar-day-view",132),o()}if(t&2){let e,a=c(2);r(2),_("view",a.view),w("viewDate",a.viewDate),r(2),w("viewDate",a.viewDate),r(2),_("view",a.view),w("viewDate",a.viewDate),r(3),E(" ",Di(10,13,a.viewDate,a.view+"ViewTitle","en")," "),r(3),H("blue-100",a.view===a.CalendarView.Month),r(2),H("blue-100",a.view===a.CalendarView.Week),r(2),H("blue-100",a.view===a.CalendarView.Day),r(3),p((e=a.view)===a.CalendarView.Month?19:e===a.CalendarView.Week?20:e===a.CalendarView.Day?21:-1)}}function rd(t,s){t&1&&(n(0,"mat-tab-group")(1,"mat-tab",104),I(2,td,28,8,"ng-template",105),o(),n(3,"mat-tab",106),I(4,ad,22,17,"ng-template",105),o()())}function ld(t,s){t&1&&(n(0,"div",48),l(1,"No sessions found!"),o())}function sd(t,s){if(t&1){let e=b();n(0,"div",135)(1,"span",136),l(2),o(),n(3,"span",137),l(4," close "),o()(),n(5,"mat-dialog-content",138)(6,"div",139)(7,"p",140),v(8,"img",141),o(),n(9,"div",142)(10,"div",143),l(11),o(),n(12,"div",144),l(13),o()(),n(14,"div",145)(15,"div",140)(16,"b",146),l(17,"Date"),o(),v(18,"br"),l(19),Q(20,"date"),o(),n(21,"div",140)(22,"b",146),l(23,"Time"),o(),v(24,"br"),l(25),Q(26,"date"),Q(27,"date"),o()(),n(28,"div",147)(29,"span",148),l(30,"explore"),o(),n(31,"span"),l(32),o()()()(),n(33,"mat-card-actions",149)(34,"div",150)(35,"p",140),l(36,"Please confirm claiming this volunteering session"),o(),n(37,"div",151)(38,"button",152),l(39,"Cancel"),o(),n(40,"button",47),h("click",function(){u(e);let i=c();return g(i.claimVolunteeringSession())}),l(41," Claim Session "),o()()()()}if(t&2){let e=c();r(2),E("Claim Session - ",e.claimSelectedSession==null?null:e.claimSelectedSession.task),r(9),y(e.claimSelectedSession==null?null:e.claimSelectedSession.name),r(2),y(e.claimSelectedSession==null?null:e.claimSelectedSession.description),r(6),E("",le(20,10,e.claimSelectedSession==null?null:e.claimSelectedSession.startDate,"MMMM dd, yyyy")," "),r(6),_e("",le(26,13,e.claimSelectedSession==null?null:e.claimSelectedSession._start,"hh:mm a")," - ",le(27,16,e.claimSelectedSession==null?null:e.claimSelectedSession._end,"hh:mm a")," "),r(7),y(e.claimSelectedSession==null?null:e.claimSelectedSession.location),r(8),H("spinner",e.claimLoading),_("disabled",e.claimLoading)}}function dd(t,s){if(t&1){let e=b();n(0,"div",135)(1,"span",136),l(2,"Cancel Claim "),v(3,"br"),n(4,"span",153),l(5),o(),v(6,"br"),n(7,"span",144),l(8),Q(9,"date"),Q(10,"date"),Q(11,"date"),o()(),n(12,"span",137),l(13," close "),o()(),n(14,"mat-dialog-content",154)(15,"div")(16,"p"),l(1
17,"Are you sure you want to cancel this claim ?"),o(),n(18,"div",155)(19,"button",156),l(20,"Cancel"),o(),n(21,"button",157),h("click",function(){u(e);let i=c();return g(i.cancelClaim())}),l(22," Cancel Claim "),o()()()()}if(t&2){let e=c();r(5),y(e.cancelSelectedClaim.name),r(3),Lt("",le(9,7,e.cancelSelectedClaim.startDate,"shortDate")," | ",le(10,10,e.cancelSelectedClaim._start,"shortTime")," - ",le(11,13,e.cancelSelectedClaim._end,"shortTime")),r(13),H("spinner",e.cancelClaimLoading),_("disabled",e.cancelClaimLoading)}}function cd(t,s){if(t&1&&(n(0,"div",135)(1,"span",136),l(2,"Comment"),o(),n(3,"span",137),l(4," close "),o()(),n(5,"mat-dialog-content",154)(6,"div"),l(7),o()()),t&2){let e=c();r(7),y(e.denyComment.deniedReason)}}var Sa=(()=>{class t{cdr;breakpointObserver;dialog;api;notify;_unsubscribeAll;isMobile;refresh=new q;colors=[{primary:"#47dbdb88",secondary:"#3ab1b188"},{primary:"#eeee4388",secondary:"#dcdc5688"},{primary:"#db818155",secondary:"#aa000055"},{primary:"#78db7888",secondary:"#00aa0088"},{primary:"#b09cff88",secondary:"#5D3FD388"},{primary:"#f8bbd088",secondary:"#e91e6388"},{primary:"#e1bee788",secondary:"#9c27b088"},{primary:"#d1c4e988",secondary:"#673ab788"},{primary:"#c5cae988",secondary:"#3f51b588"},{primary:"#bbdefb88",secondary:"#2196f388"},{primary:"#b3e5fc88",secondary:"#03a9f488"},{primary:"#b2ebf288",secondary:"#00bcd488"},{primary:"#b2dfdb88",secondary:"#00968888"},{primary:"#c8e6c988",secondary:"#4caf5088"},{primary:"#dcedc888",secondary:"#8bc34a88"},{primary:"#f0f4c388",secondary:"#cddc3988"},{primary:"#fff9c488",secondary:"#ffeb3b88"},{primary:"#ffecb388",secondary:"#ffc10788"},{primary:"#ffe0b288",secondary:"#ff980088"},{primary:"#ffccbc88",secondary:"#ff572288"},{primary:"#d7ccc888",secondary:"#79554888"},{primary:"#f5f5f588",secondary:"#9e9e9e88"},{primary:"#cfd8dc88",secondary:"#607d8b88"},{primary:"#ff80ab88",secondary:"#ff408188"},{primary:"#7c4dff88",secondary:"#6500ea88"},{primary:"#536dfe88",secondary:"#0001fc88"},{primary:"#18ffff88",secondary:"#00b8d488"},{primary:"#1de9b688",secondary:"#00bfa588"},{primary:"#69f0ae88",secondary:"#00c85388"},{primary:"#b2ff5988",secondary:"#64dd1788"},{primary:"#eeff4188",secondary:"#aeea0088"},{primary:"#ffff0088",secondary:"#ffd60088"},{primary:"#ffdd0088",secondary:"#ffab0088"},{primary:"#ff910088",secondary:"#ff6d0088"},{primary:"#ff3d0088",secondary:"#dd2c0088"},{primary:"#8d6e6388",secondary:"#4e342e88"},{primary:"#75757588",secondary:"#42424288"},{primary:"#78909c88",secondary:"#37474f88"},{primary:"#546e7a88",secondary:"#26323888"}];view=$t.Month;CalendarView=$t;viewDate=new Date;calendarEvents=[];activeDayIsOpen=!1;constructor(e,a,i,d,f){this.cdr=e,this.breakpointObserver=a,this.dialog=i,this.api=d,this.notify=f,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(C=>{this.isMobile=!!C.matches})}ngOnInit(){this.getKidsWithClaimedSessions()}setView(e){this.view=e}closeOpenMonthViewDay(){this.activeDayIsOpen=!1}dayClicked({date:e,events:a}){dn(e,this.viewDate)&&(sn(this.viewDate,e)&&this.activeDayIsOpen===!0||a.length===0?this.activeDayIsOpen=!1:this.activeDayIsOpen=!0,this.viewDate=e)}accordion;expandPanel(e,a){a.stopPropagation(),this._isExpansionIndicator(a.target)||e.close()}_isExpansionIndicator(e){return e.classList&&e.classList.contains("mat-expansion-indicator")}panelDisabled=!0;xpandStatus=!1;displayedColumns4AvailableSessions=["name","description","credits","location","startDate","action"];volunteerTasks;filterParams4Session={player:null,vitsID:0,location:"",dateRangeStart:null,dateRangeEnd:null};getTasks4Club(e,a,i=!0){this.xpandStatus=!0,this.api.get("Vits/"+a,!0).pipe(M(this._unsubscribeAll)).subscribe({next:d=>{this.volunteerTasks=d.map(f=>({_key:f._key,name:f.name})),this.searchSessions()},error:d=>{this.notify.openErrorModal(d.error?d.error:"An error has occured")}}),i||(this.filterParams4Session.player=this.players.find(d=>d._key==e),this.filterParams4Session.vitsID=0,this.filterParams4Session.dateRange=[null,null],this.filterParams4Session.location=null),this.filterParams4Session.vitsID=0}dateRangeChange(e,a){this.filterParams4Session.dateRange=[e.value,a.value],this.filterParams4Session.startDate=(0,Fn.default)(new Date(e.value)).format("MM/DD/YYYY"),this.filterParams4Session.endDate=(0,Fn.default)(new Date(a.value)).format("YYYY-MM-DD")}clearDateRange(e,a){e&&a&&(e.value=null,a.value=null,this.filterParams4Session.startDate=null,this.filterParams4Session.endDate=null)}expandRow(e){e.claimedSessions?.length!=0&&(this.expandedElement=this.expandedElement===e?null:e)}searchLoading=!1;dataSource4AvailableSessions=new fe;calendarEvents4Sessions=[];searched=!1;searchSessions(){this.searchLoading=!0,this.searched=!0,this.filterParams4Session.forParent=!0,this.searchSessionForm.valid&&this.api.post(`Vits/searchSessions/${this.filterParams4Session.player.clubID}`,this.filterParams4Session,!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.searchLoading=!1,this.dataSource4AvailableSessions=new fe(e),setTimeout(()=>{this.dataSource4AvailableSessions.paginator=this.sessionPaginator,this.dataSource4AvailableSessions.sort=this.sessionSort},250),this.calendarEvents4Sessions=[],e.length>0&&(this.viewDate=new Date(e[0]._start),this.view=$t.Week),e.forEach(a=>{let i=this.volunteerTasks.findIndex(d=>d._key===a.vitsID);this.calendarEvents4Sessions.push({start:new Date(a._start),end:new Date(a._end),title:a.task+" - "+a.name,color:this.colors[i??0],allDay:!1,meta:{session:a}})}),this.refresh.next(!0),this.cdr.detectChanges()},error:e=>{this.searchLoading=!1,this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}dataSource4MySessions=new fe;expandedElement;allRowsExpanded=!0;toggleMyVolunteeringListTable(){this.allRowsExpanded=!this.allRowsExpanded,this.expandedElement=null}sessionPaginator;sessionSort;searchSessionForm;displayedColumns4Childs=["name","action","progress","expand"];
1displayedColumns4Session=["task","session","desc","credits","location","startDate","status","action"];kidsWithClaimedVolunteering;loadingKidsWithClaimedVolunteering=!1;players;noData=!1;getKidsWithClaimedSessions(){this.loadingKidsWithClaimedVolunteering=!0,this.api.get("Vits/getKidsWithClaimedSessions",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.loadingKidsWithClaimedVolunteering=!1,e.forEach(a=>{a.claimedSessions.length==0?a.noData=!0:a.claimedSession4kid=new fe(a.claimedSessions)}),this.dataSource4MySessions=new fe(e),setTimeout(()=>{this.dataSource4MySessions.paginator=this.sessionPaginator,this.dataSource4MySessions.sort=this.sessionSort},250),this.players=e.map(a=>({_key:a._key,clubID:a.clubID,name:a.name})),this.cdr.detectChanges()},error:e=>{this.loadingKidsWithClaimedVolunteering=!1,this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}isGroup(e,a){return a.isGroupBy}searchInput4AvailableSessions;applyFilter4AvailableSessions(){this.dataSource4AvailableSessions.filter=this.searchInput4AvailableSessions?.trim().toLowerCase(),this.dataSource4AvailableSessions.paginator&&this.dataSource4AvailableSessions.paginator.firstPage()}clearFilter4AvailableSessions(){this.searchInput4AvailableSessions="",this.applyFilter4AvailableSessions()}claimSelectedSession;claimVolunteerSessionDialogRef;claimVolunteerSessionDialogOpen(e,a){this.claimSelectedSession=e,this.claimVolunteerSessionDialogRef=this.dialog.open(a,{panelClass:"p12-dialog-container",minWidth:this.isMobile?"95vw":"500px",height:"auto",maxHeight:"90vh",autoFocus:!1})}claimLoading=!1;claimVolunteeringSession(){this.claimLoading=!0,this.api.post("Vits/claimSession/"+this.claimSelectedSession._key+"/"+this.filterParams4Session.player._key,!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.claimLoading=!1,this.claimVolunteerSessionDialogRef.close(),this.claimSelectedSession.isClaimed=!0,this.notify.openInfoModal("Claimed successfully"),this.getKidsWithClaimedSessions()},error:e=>{this.claimLoading=!1,this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}confirmDialogRef;askCompletion(e){this.confirmDialogRef=this.dialog.open(Dt,{disableClose:!1}),this.confirmDialogRef.componentInstance.confirmMessage="Are you sure you want to send completion request?",this.confirmDialogRef.afterClosed().subscribe(a=>{a&&this.api.get("Vits/askClaimComplation/"+e._key,!0).pipe(M(this._unsubscribeAll)).subscribe({next:i=>{this.notify.openInfoModal("Request sent successfully"),this.getKidsWithClaimedSessions()},error:i=>{this.notify.openErrorModal(i.error?i.error:"An error has occured")}}),this.confirmDialogRef=null})}cancelClaimDialogRef;cancelSelectedClaim;cancelClaimDialogOpen(e,a){this.cancelSelectedClaim=e,this.cancelClaimDialogRef=this.dialog.open(a,{panelClass:"p12-dialog-container",minWidth:this.isMobile?"100vw":"350px",height:"auto",maxHeight:"90vh",autoFocus:!1})}cancelClaimLoading=!1;cancelClaim(){this.cancelClaimLoading=!0,this.api.delete("Vits/cancelClaim/"+this.cancelSelectedClaim._key,!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.cancelClaimLoading=!1,this.notify.openInfoModal("Cancelled successfully"),this.cancelClaimDialogRef.close(),this.getKidsWithClaimedSessions()},error:e=>{this.cancelClaimLoading=!1,this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}denyComment;denyCommentDialogRef;openDenyCommentDialog(e,a){this.denyComment=e,this.denyCommentDialogRef=this.dialog.open(a,{panelClass:"p12-dialog-container",minWidth:this.isMobile?"100vw":"350px",height:"auto",maxHeight:"90vh",autoFocus:!1})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(Ye),x(ee),x($),x(U),x(G))};static \u0275cmp=j({type:t,selectors:[["vits-parent"]],viewQuery:function(a,i){if(a&1&&(N(zt,5),N(Nl,5),N(Wl,5),N(Bl,5)),a&2){let d;W(d=B())&&(i.accordion=d.first),W(d=B())&&(i.sessionPaginator=d.first),W(d=B())&&(i.sessionSort=d.first),W(d=B())&&(i.searchSessionForm=d.first)}},decls:78,vars:19,consts:[["searchSessionForm","ngForm"],["dateRangeStart",""],["dateRangeEnd",""],["dateRangePicker",""],["claimVolunteerSessionTemplate",""],["cancelClaimTemplate",""],["denyCommentTemplate",""],["menu","matMenu"],["sessionPaginator",""],[1,"mb-8","mat-elevation-z4"],["multi","",2,"justify-content","space-between","align-items","center"],[3,"expanded"],[1,"bold","h3","primary-fg","flex-start-center"],["topic","vits/parents"],["mat-table","","recycleRows","","multiTemplateDataRows","",1,"mat-elevation-z1","tblMySessions",3,"dataSource","ngClass"],["matColumnDef","name"],["mat-header-cell","","class","w-90-p bold",4,"matHeaderCellDef"],["mat-cell","","class","bold font-size-16",4,"matCellDef"],["matColumnDef","action"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","nowrap text-right",4,"matCellDef"],["matColumnDef","progress"],["mat-header-cell","","class","center bold",4,"matHeaderCellDef"],["mat-cell","","class","nowrap",4,"matCellDef"],["matColumnDef","expand"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","grey-100",4,"matHeaderRowDef"],["mat-row","","class","claims-element-row",3,"claims-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","claims-detail-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],[1,"text-center","my-12"],["mode","indeterminate"],[3,"expandedChange","expanded"],[1,"bold","h3","primary-fg"],[1,"p-8","mb-20",2,"display","flex","gap","20px","flex-wrap","wrap","flex-direction","row","align-items","center"],["name","player","required","",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["align","end",1,"red-fg","bold"],["name","vitsID",3,"ngModelChange","ngModel"],[3,"rangePicker"],["matStartDate","","placeholder","Start date"],["matEndDate","","placeholder","End date",3,"dateChange"],["matIconSuffix","",3,"for"],["mat-icon-button","",3,"click"],["matInput","","name","location",3,"ngModelChange","ngModel"],["mat-raised-button","",1,"primary",3,"click","disabled"],[1,"orange-fg"],["mat-header-cell","",1,"w-90-p","bold"],["mat-cell","",1,"bold","font-size-16"],["mat-header-cell",""],["mat-cell","",1,"nowrap","text-right"],["mat-stroked-button","",1,"hiddenOnMobile","primary","hiddenOnMobile",3,"click"],[1,"hiddenOnDesktop","material-icons","primary-fg",3,"click"],["mat-header-cell","",1,"center","bold"],["mat-cell","",1,"nowrap"],[2,"display","flex","flex-direction","row","flex-wrap","wrap","align-items","center","justify-content","center"],[1,"hiddenOnMobile"],[1,"progress-section","hiddenOnMobile"],["color","primary","mode","determinate",3,"value","bufferValue"],[2,"position","absolute","padding","10px","color","white"],["mat-cell","",1,"center"],[3,"click"],["mat-cell",""],[1,"claims-element-detail-wrapper"],[1,"claims-element-detail"],["mat-table","","recycleRows","","matTableResponsive","",1,"table","table-bordered","tblMySessions","mat-elevation-z1",3,"dataSource"],[1,"message-boxxed","w-100-
1p"],["matColumnDef","task"],["matColumnDef","session"],["matColumnDef","desc"],["matColumnDef","credits"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","location",1,"center"],["matColumnDef","startDate"],["mat-cell","","class","center nowrap",4,"matCellDef"],["matColumnDef","status"],["mat-cell","","class","center text-capitalize",4,"matCellDef"],["mat-header-row","","class","grey-300",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"scrollable"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center","nowrap"],["mat-cell","",1,"center","text-capitalize"],[1,"blue"],[1,"green-600",2,"width","118px"],[1,"amber",2,"width","118px"],[1,"red"],[1,"material-icons-outlined","link"],[1,"mr-8"],[1,"pr-4"],[1,"pr-4","fuse-white-fg"],[1,"material-icons-outlined","link",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click","disabled"],["mat-header-row","",1,"grey-300"],["mat-row",""],["mat-header-row","",1,"grey-100"],["mat-row","",1,"claims-element-row",3,"click"],["mat-row","",1,"claims-detail-row"],[1,"mat-row"],[1,"mat-cell","p-16","orange-fg"],["label","List View"],["matTabContent",""],["label","Calendar View"],[1,"w-100-p"],[1,"p-8","text-center"],["mat-table","","recycleRows","",1,"table","table-bordered","mat-elevation-z1",3,"dataSource"],["matColumnDef","description"],["matColumnDef","location"],[3,"hidden"],["showFirstLastButtons","true",3,"pageSizeOptions"],["matInput","","placeholder","Quick Search",3,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-button","","aria-label","Clear",3,"click"],["mat-raised-button","",1,"primary"],["mat-raised-button","","disabled","true"],["mat-raised-button","",1,"primary",3,"click"],[1,"mat-cell","pl-12"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between center",1,"mt-8"],[1,"dvPrevNext"],["mat-stroked-button","","color","primary","mwlCalendarPreviousView","",1,"previous",3,"viewDateChange","view","viewDate"],["mat-stroked-button","","color","","mwlCalendarToday","",1,"today","blue-100",3,"viewDateChange","viewDate"],["mat-stroked-button","","color","primary","mwlCalendarNextView","",1,"next",3,"viewDateChange","view","viewDate"],[1,"viewDate","primary","mat-elevation-z1"],[1,"dvPeriod"],["mat-stroked-button","",3,"click"],["mat-stroked-button","",1,"week",3,"click"],["mat-stroked-button","",1,"day",3,"click"],[1,"mt-8"],[3,"viewDate","events","refresh","activeDayIsOpen"],[3,"viewDate","events","refresh"],[3,"dayClicked","eventClicked","viewDate","events","refresh","activeDayIsOpen"],[3,"eventClicked","viewDate","events","refresh"],[1,"px-8","py-12","grey-300","w-100-p",2,"display","flex","justify-content","space-between","align-items","center"],[1,"w-100-p","h2","bold"],[1,"material-icons","link",3,"mat-dialog-close"],[1,"mat-typography",2,"border-right","1px solid #e0e0e0","border-left","1px solid #e0e0e0","border-bottom","1px solid #e0e0e0"],[1,""],[1,"text-center"],["src","/assets/images/vitsSession.webp"],[1,"blue-200","border-radius-8","p-12","my-8"],[1,"h2","bold"],[1,"h4"],[1,"blue-100","border-radius-8","p-12","my-8","flex-justify","pDateTime",2,"justify-content","space-evenly"],[1,"font-size-12"],[1,"blue-50","border-radius-8","p-12","my-8","h5","flex-start-center","gap-12"],[1,"material-icons"],[2,"border-right","1px solid #e0e0e0","border-left","1px solid #e0e0e0","border-bottom","1px solid #e0e0e0","border-bottom-left-radius","12px","border-bottom-right-radius","12px"],[1,"pb-16","px-20","w-100-p"],[1,"flex-justify","mt-16"],["mat-button","",1,"grey-300",3,"mat-dialog-close"],[1,"h3"],[1,"mat-typography"],[1,"text-right","mt-32"],["mat-button","",1,"mr-8","grey-300",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(a,i){if(a&1){let d=b();n(0,"mat-card",9)(1,"mat-accordion",10)(2,"mat-expansion-panel",11)(3,"mat-expansion-panel-header")(4,"mat-panel-title",12),l(5," My Volunteering Sessions "),v(6,"help-button",13),o()(),n(7,"table",14),F(8,15),I(9,ql,2,0,"th",16)(10,Ul,2,1,"td",17),R(),F(11,18),I(12,Gl,1,0,"th",19)(13,$l,2,1,"td",20),R(),F(14,21),I(15,Jl,2,0,"th",22)(16,Yl,14,8,"td",23),R(),F(17,24),I(18,Ql,2,0,"th",19)(19,Xl,2,1,"td",25),R(),F(20,26),I(21,Ds,5,5,"td",27),R(),I(22,Ps,1,0,"tr",28)(23,Es,1,2,"tr",29)(24,Is,1,0,"tr",30)(25,Ts,2,1,"tr",31),o(),n(26,"div",32),m(27,Os,1,0,"mat-progress-bar",33),o()(),n(28,"mat-expansion-panel",34),D("expandedChange",function(C){return u(d),S(i.xpandStatus,C)||(i.xpandStatus=C),g(C)}),n(29,"mat-expansion-panel-header")(30,"mat-panel-title",35),l(31," Search Volunteering Sessions "),o()(),n(32,"form",36,0)(34,"mat-form-field")(35,"mat-label"),l(36,"Select Player"),o(),n(37,"mat-select",37),D("ngModelChange",function(C){return u(d),S(i.filterParams4Session.player,C)||(i.filterParams4Session.player=C),g(C)}),h("selectionChange",function(){return u(d),g(i.getTasks4Club(i.filterParams4Session.player._key,i.filterParams4Session.player.clubID))}),k(38,Vs,2,2,"mat-option",38,A),o(),m(40,Fs,2,0,"mat-hint",39),o(),n(41,"mat-form-field")(42,"mat-label"),l(43,"Volunteer Tasks"),o(),n(44,"mat-select",40),D("ngModelChange",function(C){return u(d),S(i.filterParams4Session.vitsID,C)||(i.filterParams4Session.vitsID=C),g(C)}),n(45,"mat-option",38),l(46,"All Tasks"),o(),k(47,Rs,2,2,"mat-option",38,A),o()(),n(49,"div")(50,"mat-form-field")(51,"mat-label"),l(52,"Date Range"),o(),n(53,"mat-date-range-input",41),v(54,"input",42,1),n(56,"input",43,2),h("dateChange",function(){u(d);let C=O(55),L=O(57);return g(i.dateRangeChange(C,L))}),o()(),v(58,"mat-datepicker-toggle",44)(59,"mat-date-range-picker",null,3),o(),n(61,"button",45),h("click",function(){u(d);let C=O(55),L=O(57);return g(i.clearDateRange(C,L))}),n(62,"mat-icon"),l(63,"close"),o()()(),n(64,"mat-form-field")(65,"mat-label"),l(66,"Location"),o(),n(67,"input",46),D("ngModelChange",function(C){return u(d),S(i.filterParams4Session.location,C)||(i.filterParams4Session.location=C),g(C)}),o()(),n(68,"button",47),h("click",function(){return u(d),g(i.searchSessions())}),l(69," Search "),o()(),m(70,rd,5,0,"mat-tab-group"),m(71,ld,2,0,"div",48),o()()(),I(72,sd,42,19,"ng-template",null,4,Nt)(74,dd,23,16,"ng-template",null,5,Nt)(76,cd,8,1,"ng-template",null,6,Nt)}if(a&2){let d=O(33),f=O(60);r(2),_("expanded",!0),r(5),_("dataSource",i.dataSource4MySessions)("ngClass",i.isMobile?"onMobile":"onDesktop"),r(15),_("matHeaderRowDef",i.displayedColumns4Childs),r(),_("matRowDefColumns",i.displayedColumns4Childs),r(),_("matRowDefColumns",bt(18,jl)),r(3),p(i.loadingKidsWithClaimedVolunteering?27:-1),r(),w("expanded",i.xpandStatus),r(9),w("ngModel",i.filterParams4Session.player),r(),T(i.players),r(2),p(i.filterParams4Session.player?-1:40),r(4),w("ngModel",i.filterParams4Session.vitsID),r(),_("value",0),r(2),T(i.volunteerTasks),r(6),_("rangePicker",f),r(5),_("for",f),r(9),w("ngModel",i.filterParams4Session.location),r(),_("disabled",d.invalid),r(2),p(i.dataSource4AvailableSessions.data.length>0?70:-1),r(),p(i.dataSource4AvailableSessions.data.length==0&&i.searched?71:-1)}},dependencies:[K,ie,X,ke,ce,ne,ve,Te,me,Qe,Ve,Se,we,ot,St,Fe,Be,li,ai,oi,ri,gn,un,pi,Jt,J,ae,Me,Ct,qe,rt,st,pt,dt,lt,_t,ct,mt,ut,gt,ft,qt,Ot,Re,oe,Ke,ye,kt,It,Pt,mi,ci,Gi,Hi,$i,Ji,Y,te,ro,ao,ze,je,Ui,Eo,Po,_n,zt,cn,mn,pn,Et,Oe,_i,nn,Yi,Qi,Ki,Zi,en,tn,Ut,mo,po,Hn,Ue,Xi],styles:[".claims-element-detail-wrapper[_ngcontent-%COMP%]{overflow:hidden;display:grid;grid-template-rows:0fr;grid-template-columns:100%;transition:grid-template-rows 225ms cubic-bezier(.4,0,.2,1)}.claims-element-detail-wrapper--expanded[_ngcontent-%COMP%]{grid-template-rows:1fr}.claims-element-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;min-height:0}tr.claims-detail-row[_ngcontent-%COMP%]{height:0}tr.claims-element-row[_ngcontent-%COMP%]:not(.claims-expanded-row):active{background:#efefef}.claims-element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}@media screen and (max-width:768px){.tblMySessions[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%]{height:auto}}.progress-section[_ngcontent-%COMP%]{display:flex;align-content:center;align-items:center}
1.mat-mdc-progress-bar[_ngcontent-%COMP%]{--mdc-linear-progress-active-indicator-height: 30px;--mdc-linear-progress-track-height: 30px;--mdc-linear-progress-track-shape: 0}"],changeDetection:0})}return t})();var Da=(()=>{class t{dialogRef;dialog;data;notify;_fuseConfigService;chkMemberID=!1;_unsubscribeAll;fuseConfig;constructor(e,a,i,d,f){this.dialogRef=e,this.dialog=a,this.data=i,this.notify=d,this._fuseConfigService=f,this._unsubscribeAll=new q}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e})}gotoSafeSport(){this.dialogRef.close(),this.redirect_blank("https://safesport.org")}redirect_blank(e){var a=document.createElement("a");a.target="_blank",a.href=e,a.click()}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(ge),x($),x(pe),x(G),x(re))};static \u0275cmp=j({type:t,selectors:[["safe-Sport"]],decls:46,vars:5,consts:[["id","safeSport","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth",2,"display","flex","flex-direction","column"],[1,"pl-8",2,"display","flex","flex-direction","row","justify-content","space-between","align-items","center","height","45px",3,"ngClass"],["mat-dialog-title","",1,"w-100-p"],[1,"text-right"],["mat-icon-button","",1,"",3,"click"],[1,"close-icon"],["mat-dialog-content",""],[1,"mat-body-4","mt-20"],[1,"message-box","warning"],["aria-label","I read and accept","name","testCheck",3,"ngModelChange","ngModel"],[1,"ml-8"],["color","blue"],[1,"text-center","mt-20"],["mat-raised-button","",1,"grey-300",3,"click"],["mat-raised-button","",1,"blue-grey","ml-12",3,"click","disabled"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2),l(3),o(),n(4,"div",3)(5,"button",4),h("click",function(){return i.closeDialog()}),n(6,"mat-icon",5),l(7,"close"),o()()()(),n(8,"div",6)(9,"div",7)(10,"p"),l(11," SafeSport is provided FREE to all members of USA Softball. If you are prompted for payment, please stop the process and let us know ASAP. "),o(),n(12,"p"),l(13," Important! In order to be compliant with the SafeSport requirement for the 2021 season, ONLY ONE of the below courses must be completed. SafeSport Course Breakdown (listed in order of availability; 2nd course is only available after the 1st and so on. ONLY ONE COURSE NEEDS TO BE TAKEN PER SEASON.): "),o(),n(14,"p"),l(15," 1. SafeSport Core Training (this contains 3 modules: Sexual Misconduct Awareness, Mandatory Reporting, and Emotional & Physical Misconduct) "),v(16,"br"),l(17,"2. Refresher 1: Recognizing and Reporting Misconduct "),v(18,"br"),l(19,"3. Refresher 2: Preventing Misconduct 4. Refresher 4 For a step-by-step guide on completing the SafeSport training, please click here. For more help, please visit our Help Documents section. Note: Red = Not Started or Incomplete & Green = Complete "),o(),n(20,"p"),l(21," Lesson 1: Sexual Misconduct Awareness Education "),v(22,"br"),l(23,"Lesson 2: Mandatory Reporting "),v(24,"br"),l(25,"Lesson 3: Emotional and Physical Misconduct "),v(26,"br"),l(27,"Yearly Refresher: Recognizing and Reporting Misconduct "),v(28,"br"),l(29,"Yearly Refresher 2: Preventing Misconduct "),v(30,"br"),l(31,"Yearly Refresher 3 "),o(),n(32,"div",8)(33,"mat-checkbox",9),D("ngModelChange",function(f){return S(i.chkMemberID,f)||(i.chkMemberID=f),f}),o(),n(34,"span",10),l(35,"I will link my "),n(36,"span",11)(37,"b"),l(38),o()(),l(39,", when creating my SafeSport training account."),o()()(),n(40,"div",6)(41,"div",12)(42,"button",13),h("click",function(){return i.closeDialog()}),l(43,"Cancel"),o(),n(44,"button",14),h("click",function(){return i.gotoSafeSport()}),l(45,"Click here to be taken to SafeSport.org"),o()()()()()),a&2&&(r(),_("ngClass",i.fuseConfig.layout.pageheader.primaryBackground),r(2),y(i.data.actionName),r(30),w("ngModel",i.chkMemberID),r(5),E("Member ID : ",i.data.userKey),r(6),_("disabled",!i.chkMemberID))},dependencies:[K,ie,X,ne,me,oe,Ti,ye,J,ae,Me,Y,te,We,Ne,jt],styles:["#safeSport[_ngcontent-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:fit-content}#safeSport[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin:0!important}#safeSport[_ngcontent-%COMP%] .example-margin[_ngcontent-%COMP%]{margin:0 12px}"]})}return t})();var md=["backgroundCheckForm"],pd=t=>({"mt-12":t}),_d=t=>
1({"w-100-p":t});function ud(t,s){if(t&1){let e=b();n(0,"mat-form-field",15)(1,"input",31),D("ngModelChange",function(i){u(e);let d=c();return S(d.formData.middleName,i)||(d.formData.middleName=i),g(i)}),o()()}if(t&2){let e=c();_("ngClass",V(2,_d,e.NMNcondition)),r(),w("ngModel",e.formData.middleName)}}function gd(t,s){if(t&1&&(n(0,"mat-option",26),l(1),o()),t&2){let e=s.$implicit;_("value",e._key),r(),y(e.name)}}function fd(t,s){if(t&1){let e=b();n(0,"mat-form-field",12)(1,"mat-label"),l(2,"Race"),o(),n(3,"mat-select",32),D("ngModelChange",function(i){u(e);let d=c();return S(d.formData.race,i)||(d.formData.race=i),g(i)}),n(4,"mat-option",33),l(5,"American Indian or Alaska Native"),o(),n(6,"mat-option",34),l(7,"Asian"),o(),n(8,"mat-option",35),l(9,"Black/African American (Not of Hispanic Origin)"),o(),n(10,"mat-option",36),l(11,"Hispanic or Latino"),o(),n(12,"mat-option",37),l(13,"Native Hawaiian or Other Pacific Islander"),o(),n(14,"mat-option",38),l(15,"White (Not of Hispanic Origin)"),o()(),n(16,"mat-hint"),l(17,"Race required for searches in (Tennessee, Wisconsin)"),o()()}if(t&2){let e=c();r(3),w("ngModel",e.formData.race),_("required",e.formData.stateID=="TN"||e.formData.stateID=="WI")}}var Pa=(()=>{class t{dialogRef;dialog;data;notify;api;_fuseConfigService;breakpointObserver;isMobile=!1;loading;NMNcondition=!1;formData={states:[]};states=[];_unsubscribeAll;_backgroundCheckForm;fuseConfig;constructor(e,a,i,d,f,C,L){this.dialogRef=e,this.dialog=a,this.data=i,this.notify=d,this.api=f,this._fuseConfigService=C,this.breakpointObserver=L,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(z=>{this.isMobile=!!z.matches})}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.states=this.data.states,this.api.get("BulkTeam/",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.formData.cards=e.cards},error:e=>{this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}gotoBackgroundCheck(){alert("Results will be completed asap."),this.dialogRef.close()}redirect_blank(e){var a=document.createElement("a");a.target="_blank",a.href=e,a.click()}payment(e){this.loading=!0,this._backgroundCheckForm.valid&&(this.loading=!1)}checkNMN(e){this.NMNcondition=e.checked}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(ge),x($),x(pe),x(G),x(U),x(re),x(ee))};static \u0275cmp=j({type:t,selectors:[["background-check"]],viewQuery:function(a,i){if(a&1&&N(md,5),a&2){let d;W(d=B())&&(i._backgroundCheckForm=d.first)}},decls:48,vars:25,consts:[["backgroundCheckForm","ngForm"],["picker",""],["id","backgroundCheck","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth",2,"display","flex","flex-direction","column"],[1,"pl-8",2,"display","flex","flex-direction","row","align-items","center","justify-content","space-between","height","45px",3,"ngClass"],["mat-dialog-title","",1,"w-100-p"],[1,"text-right"],["mat-icon-button","",1,"",3,"click"],[1,"close-icon"],["mat-dialog-content",""],["name","backgroundCheckForm",1,"mt-12",3,"ngSubmit"],[1,"w-100-p"],[1,"green-progress",2,"display","flex","flex-direction","column","justify-content","center","align-items","center"],["floatLabel","always",1,"w-100-p"],["matInput","","type","text","placeholder","Legal First Name","name","firstName","required","",3,"ngModelChange","ngModel"],[1,"w-100-p",2,"display","flex","flex-direction","row","align-items","center","justify-content","space-between"],["floatLabel","always",1,"w-60-p",3,"ngClass"],["name","NMN",3,"ngModelChange","change","ngModel"],["floatLabel","always",1,"w-100-p",3,"ngClass"],["matInput","","type","text","placeholder","Legal Last Name","name","lastName","required","",3,"ngModelChange","ngModel"],["matInput","","name","dob","required","",3,"focus","ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["startView","multi-year",3,"touchUi"],["matInput","","type","text","mask","000-00-0000","placeholder","SSN","name","ssn","required","",3,"ngModelChange","ngModel"],["matInput","","type","text","placeholder","Street Address","name","streetAddress","required","",3,"ngModelChange","ngModel"],["matInput","","type","text","placeholder","City","name","city","required","",3,"ngModelChange","ngModel"],["name","stateID","required","",3,"ngModelChange","ngModel"],[3,"value"],["matInput","","type","number","min","0","placeholder","Zip","name","zip","required","",3,"ngModelChange","ngModel"],["matInput","","type","text","placeholder","Email","name","email","required","",3,"ngModelChange","ngModel"],[1,"text-center","mt-20"],["description","Backgroun
1d Check Fee",1,"w-100-p","mb-12",3,"paymentCallBack","fullView","amount","cards","buttonDisabled","loading","btnText"],["matInput","","type","text","placeholder","Legal Middle Name","name","middleName","required","",3,"ngModelChange","ngModel"],["name","race",3,"ngModelChange","ngModel","required"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"]],template:function(a,i){if(a&1){let d=b();n(0,"div",2)(1,"div",3)(2,"div",4),l(3,"Background Check"),o(),n(4,"div",5)(5,"button",6),h("click",function(){return u(d),g(i.closeDialog())}),n(6,"mat-icon",7),l(7,"close"),o()()()(),n(8,"div",8)(9,"form",9,0),h("ngSubmit",function(){u(d);let C=O(10);return g(C.form.valid)}),n(11,"mat-card",10)(12,"mat-card-content")(13,"div",11)(14,"mat-form-field",12)(15,"input",13),D("ngModelChange",function(C){return u(d),S(i.formData.firstName,C)||(i.formData.firstName=C),g(C)}),o()(),n(16,"div",14),m(17,ud,2,4,"mat-form-field",15),n(18,"mat-checkbox",16),D("ngModelChange",function(C){return u(d),S(i.formData.NMN,C)||(i.formData.NMN=C),g(C)}),h("change",function(C){return u(d),g(i.checkNMN(C))}),l(19,"No Middle Name"),o()(),n(20,"mat-form-field",17)(21,"input",18),D("ngModelChange",function(C){return u(d),S(i.formData.lastName,C)||(i.formData.lastName=C),g(C)}),o()(),n(22,"mat-form-field",12)(23,"mat-label"),l(24,"DOB"),o(),n(25,"input",19),h("focus",function(){u(d);let C=O(28);return g(C.open())}),D("ngModelChange",function(C){return u(d),S(i.formData.dob,C)||(i.formData.dob=C),g(C)}),o(),v(26,"mat-datepicker-toggle",20)(27,"mat-datepicker",21,1),o(),n(29,"mat-form-field",12)(30,"input",22),D("ngModelChange",function(C){return u(d),S(i.formData.ssn,C)||(i.formData.ssn=C),g(C)}),o()(),n(31,"mat-form-field",12)(32,"input",23),D("ngModelChange",function(C){return u(d),S(i.formData.streetAddress,C)||(i.formData.streetAddress=C),g(C)}),o()(),n(33,"mat-form-field",12)(34,"input",24),D("ngModelChange",function(C){return u(d),S(i.formData.city,C)||(i.formData.city=C),g(C)}),o()(),n(35,"mat-form-field",12)(36,"mat-label"),l(37,"State"),o(),n(38,"mat-select",25),D("ngModelChange",function(C){return u(d),S(i.formData.stateID,C)||(i.formData.stateID=C),g(C)}),k(39,gd,2,2,"mat-option",26,A),o()(),n(41,"mat-form-field",12)(42,"input",27),D("ngModelChange",function(C){return u(d),S(i.formData.zip,C)||(i.formData.zip=C),g(C)}),o()(),n(43,"mat-form-field",12)(44,"input",28),D("ngModelChange",function(C){return u(d),S(i.formData.email,C)||(i.formData.email=C),g(C)}),o()(),m(45,fd,18,2,"mat-form-field",12),o()()(),n(46,"div",29)(47,"tinc-stripe",30),h("paymentCallBack",function(C){return u(d),g(i.payment(C))}),o()()()()()}if(a&2){let d=O(10),f=O(28);r(),_("ngClass",i.fuseConfig.layout.pageheader.primaryBackground),r(14),w("ngModel",i.formData.firstName),r(2),p(i.NMNcondition?-1:17),r(),w("ngModel",i.formData.NMN),r(2),_("ngClass",V(23,pd,i.NMNcondition)),r(),w("ngModel",i.formData.lastName),r(4),_("matDatepicker",f),w("ngModel",i.formData.dob),r(),_("for",f),r(),_("touchUi",i.isMobile),r(3),w("ngModel",i.formData.ssn),r(2),w("ngModel",i.formData.streetAddress),r(2),w("ngModel",i.formData.city),r(4),w("ngModel",i.formData.stateID),r(),T(i.states),r(3),w("ngModel",i.formData.zip),r(2),w("ngModel",i.formData.email),r(),p(i.formData.stateID=="TN"||i.formData.stateID=="WI"?45:-1),r(2),_("fullView",!0)("amount",15)("cards",i.formData.cards)("buttonDisabled",d.form.invalid)("loading",i.loading)("btnText","Pay xxx for bg check")}},dependencies:[K,ie,X,ke,ce,ei,ne,ve,Te,ni,me,Qe,Oe,oe,Ti,ye,J,Me,Y,te,ze,je,at,Ve,Se,we,ot,St,Fe,Be,We,Ne,mi,So,Do,ci,kt,It,Pt,Tt],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:fit-content}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin:0!important}.example-margin[_ngcontent-%COMP%]{margin:0 12px}"]})}return t})();function Cd(t,s){if(t&1&&(n(0,"dt"),l(1,"Player Name"),o(),n(2,"dd"),l(3),o(),n(4,"dt"),l(5,"Season"),o(),n(6,"dd"),l(7),o()),t&2){let e=c();r(3),y(e.dueData.playerName),r(4),y(e.dueData.season)}}var bn=(()=>{class t{api;notify;ngxLoader;_membership;_fuseConfigService;ngxService;_detectDevice;isMobile=!1;fuseConfig;_unsubscribeAll;dialogData;dialogRef=null;modalMode=!1;loading=!1;dueData;playerID;season;cards;nextStep=new Bn;constructor(e,a,i,d,f,C,L,z,Z){this.api=e,this.notify=a,this.ngxLoader=i,this._membership=d,this._fuseConfigService=f,this.ngxService=z,this._detectDevice=Z,this._unsubscribeAll=new q,this.dialogData=C,this.dialogRef=L,this._detectDevice.isBreakpointActive(Pn.mobile)&&(this.isMobile=!!this._detectDevice.isBreakpointActive(Pn.mobile))}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.dueData!=null?(this.modalMode=!1,this.dueData.cards=this.cards,this.dueData.playerID=this.playerID):(this.dueData=this.dialogData,this.modalMode=!0)}registrationData={};payClubDue(e){this.registrationData={clubID:this.dueData.clubID,playerID:this.dueData.playerID,amount:this.dueData.amount,period:this.dueData.period,cardID:e,season:this.season},this.ngxService.startLoader("loader-indvReg"),this.api.post("Club/duePayment/",this.registrationData,!0).pipe(M(this._unsubscribeAll)).subscribe({next:()=>{this.notify.openToaster("Club Due Payment is completed","success"),this.ngxService.stopLoader("loader-indvReg"),this.modalMode?this.dialogRef.close(!0):this.nextStep.emit
1(!0)},error:a=>{this.notify.openErrorModal(a.error?a.error:"An error has occured"),this.ngxService.stopLoader("loader-indvReg")}})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(U),x(G),x(ue),x(De),x(re),x(pe,8),x(ge,8),x(ue),x(wo))};static \u0275cmp=j({type:t,selectors:[["duePaymentForm"]],inputs:{dueData:"dueData",playerID:"playerID",season:"season",cards:"cards"},outputs:{nextStep:"nextStep"},decls:23,vars:11,consts:[["id","clubDuePaymentForm",2,"display","flex","flex-direction","column"],[1,"px-8","py-12","grey-300",2,"display","flex","justify-content","space-between","align-items","center"],[1,"w-100-p","font-size-16"],[1,"material-icons","link",3,"mat-dialog-close"],["mat-dialog-content",""],[1,"mat-body-4","my-12"],[1,"text-capitalize"],[1,"mt-20"],["btnText","Pay & Join to Team Roster",1,"w-100-p","mb-12",3,"paymentCallBack","fullView","amount","cards","loading","description"],["loaderId","loader-indvReg",3,"fgsSize"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"span",2),l(3),o(),n(4,"span",3),l(5," close "),o()(),n(6,"div",4)(7,"div",5)(8,"p"),l(9),n(10,"b"),l(11,"Due Payment"),o(),l(12," with the schedule below to join to the team roster."),o()(),n(13,"div")(14,"dl"),m(15,Cd,8,2),n(16,"dt"),l(17,"Due Amount"),o(),n(18,"dd",6),l(19),o()()(),n(20,"div",7)(21,"tinc-stripe",8),h("paymentCallBack",function(f){return i.payClubDue(f)}),o()()(),v(22,"ngx-ui-loader",9),o()),a&2&&(r(3),E("Join ",i.dueData.clubName),r(6),E("",i.dueData.clubName," requires "),r(6),p(i.modalMode?15:-1),r(4),_e("$",i.dueData.amount," / ",i.dueData.period),r(2),_("fullView",!0)("amount",i.dueData.amount)("cards",i.dueData.cards)("loading",i.loading)("description","Due Payment for "+i.dueData.clubName),r(),_("fgsSize",75))},dependencies:[X,he,Ce,Y,J,Tt,oe,Ke,ye],styles:["dl[_ngcontent-%COMP%]{display:grid;grid-template-columns:25% auto;background-color:#0000000d;padding:8px}dl[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{grid-column:1;margin:2px 0;padding-right:15px;text-align:left}dl[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{grid-column:2;margin:2px 0;text-align:left}@media screen and (max-width:400px){dl[_ngcontent-%COMP%]{flex-direction:column}dl[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding:1em 1em 0}}"]})}return t})();var hd=["stepper"],xd=(t,s)=>({type:"person",id:t,name:s}),bd=t=>({teamID:t}),vd=(t,s)=>({kind:"roster",participant:t,context:s});function yd(t,s){t&1&&(n(0,"span",27),l(1,"To join a team as "),n(2,"b"),l(3,'"Player"'),o(),l(4," enter the teams roster password below."),o())}function Md(t,s){t&1&&l(0,"Please verify the team name and join")}function wd(t,s){if(t&1&&(n(0,"div",16),l(1),o()),t&2){let e=c();r(),E(" This player is currently in ",e.team.currentTeamInLeague,"'s roster. If you continue, this player will join to team below: ")}}function Sd(t,s){if(t&1){let e=b();n(0,"div",23)(1,"individual-registration",28),h("nextStep",function(){u(e);let i=c();return g(i.gotoJoinTeam())}),o()()}if(t&2){let e=c();r(),_("playerID",e.playerID)("teamID",e.team.teamID)("season",e.team.season)("invalid",e.isTheStupidFormInvalid())("selfRegistration",e.selfRegistration)}}function Dd(t,s){if(t&1){let e=b();n(0,"div",24),l(1,"This team requies league entry for the players."),v(2,"br"),n(3,"button",29),h("click",function(){u(e);let i=c();return g(i.gotoLeagueEntry())}),l(4,"Join with League Entry"),o()()}if(t&2){let e=c();r(3),H("spinner",e.loading),_("ngClass",e.fuseConfig.layout.pageheader.primaryBackground)("disabled",e.isTheStupidFormInvalid()||e.loading)}}function Pd(t,s){t&1&&(n(0,"div",24),l(1,"Sign the waiver above to continue to the club due payment."),o())}function Ed(t,s){if(t&1){let e=b();n(0,"duePaymentForm",30),h("nextStep",function(){u(e);let i=c();return g(i.gotoJoinTeam())}),o()}if(t&2){let e=c();_("dueData",e.team.clubDueData)("playerID",e.playerID)("season",e.team.season)("cards",e.team.cards)}}function Id(t,s){if(t&1){let e=b();n(0,"div",24)(1,"button",29),h("click",function(){u(e);let i=c();return g(i.gotoJoinTeam(!0))}),l(2,"Switch Teams"),o()()}if(t&2){let e=c();r(),H("spinner",e.loading),_("ngClass",e.fuseConfig.layout.pageheader.primaryBackgroun
1d)("disabled",e.isTheStupidFormInvalid()||e.loading)}}function kd(t,s){if(t&1){let e=b();n(0,"div",26)(1,"button",31),l(2,"Back"),o(),n(3,"button",32),h("click",function(){u(e);let i=c();return g(i.gotoJoinTeam())}),l(4,"Confirm & Join"),o()()}if(t&2){let e=c();r(),_("disabled",e.loading),r(2),H("spinner",e.loading),_("ngClass",e.fuseConfig.layout.pageheader.primaryBackground)("disabled",e.isTheStupidFormInvalid()||e.loading)}}var Ea=(()=>{class t{dialogRef;dialog;data;notify;_formBuilder;api;_fuseConfigService;breakpointObserver;isMobile=!1;loading;joinCode;playerID;shouldNextStepBeDisabled;teamFound=!1;team={};verificationStep=!1;step1Complete=!1;stepIndex=0;firstFormGroup;secondFormGroup;stepper;_unsubscribeAll;playerName;fuseConfig;isMYAS=P.siteName=="myas";isNSA=P.siteName=="nsa";isUSASB=P.association=="usasb";waiverFile="genericPlayerWaiver";waiverLabel="WAIVER OF LIABILITY";constructor(e,a,i,d,f,C,L,z){this.dialogRef=e,this.dialog=a,this.data=i,this.notify=d,this._formBuilder=f,this.api=C,this._fuseConfigService=L,this.breakpointObserver=z,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(Z=>{this.isMobile=!!Z.matches}),this.playerID=i.playerID,this.playerName=i.playerName,P.siteName=="usasb-ut"?(this.waiverFile="usasb-ut-waiver",this.waiverLabel="USA Softball of Utah Waiver of Liability"):P.association=="usasb"?(this.waiverFile="playerRosterEntry",this.waiverLabel="USA SOFTBALL WAIVER OF LIABILITY"):P.siteName=="bpa"?(this.waiverFile="bpaWaiver",this.waiverLabel="BPA WAIVER OF LIABILITY"):P.siteName=="nsa"?(this.waiverFile="nsaWaiver",this.waiverLabel="NSA WAIVER OF LIABILITY"):P.siteName=="nccgsl"?(this.waiverFile="nccgslWaiver",this.waiverLabel="NCCGSL WAIVER OF LIABILITY"):P.siteName=="myas"?(this.waiverFile="myasWaiver",this.waiverLabel="MYAS WAIVER OF LIABILITY"):P.siteName=="tieronefp"?(this.waiverFile="genericPlayerWaiver",this.waiverLabel="WAIVER OF LIABILITY"):P.siteName=="bsc"?(this.waiverFile="bscPlayerWaiver",this.waiverLabel="BSC WAIVER OF LIABILITY"):P.siteName=="asf"?(this.waiverFile="asfWaiver",this.waiverLabel="ASF WAIVER OF LIABILITY"):(this.waiverFile="genericPlayerWaiver",this.waiverLabel="WAIVER OF LIABILITY")}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.firstFormGroup=this._formBuilder.group({joinCode:["",yt.required]}),this.secondFormGroup=this._formBuilder.group({iAgree:[{value:!1,disabled:!0},yt.required]})}isTheStupidFormInvalid(){let e=this.secondFormGroup.get("iAgree");return!(this.secondFormGroup.valid&&e?.value==!0)}selfRegistration=!1;lookUpTeam(){let e=this.firstFormGroup?.value?.joinCode?.trim();this.team={},this.loading=!0,this.api.get(`Roster/passwordLookup/${e}/${this.playerID}`,!0).pipe(M(this._unsubscribeAll)).subscribe({next:a=>{this.teamFound=!0,setTimeout(()=>{this.team=a,e.indexOf("IRAC")>-1&&(this.selfRegistration=!0),this.secondFormGroup.setValue({iAgree:!1}),this.loading=!1,this.stepper.next()},500)},error:a=>{this.loading=!1,this.notify.openAlertModal(a.error?a.error:"An error has occured",se.ERROR)}})}waiverData={signatureName:null,IDNumber:null};gotoJoinTeam(e=!1){var a="joinRosterWithWaiverData";e&&(a="switchTeamsInLeague"),this.team.indvLeagueEntryID!=null&&(a=`switch2TeamInLeague/${this.team.indvLeagueEntryID}`),this.loading=!0,this.api.post(`Roster/${a}/${P.siteName}/${this.team.teamID}/${this.data.playerID}`,this.waiverData,!0).pipe(M(this._unsubscribeAll)).subscribe({next:i=>{if(i?.accessToken){var d=JSON.parse(localStorage.getItem("person"));d.accessToken=i.accessToken,d.refreshToken=i.refreshToken,localStorage.setItem("person",JSON.stringify(d))}this.notify.openToaster("Joined the team","success"),this.loading=!0,this.dialogRef.close(!0)},error:i=>{this.loading=!1,this.notify.openAlertModal(i.error?i.error:"An error has occured",se.WARNING)}})}joinTeamWithClubDue(e){this.loading=!0,this.api.post(`Roster/joinTeamWithClubDue/${this.team.teamID}/${this.data.playerID}`,{cardID:e,clubDue:this.team.clubDueEntryNeeded},!0).pipe(M(this._unsubscribeAll)).subscribe({next:a=>{this.notify.openToaster("Joined the team","success"),this.loading=!0,this.dialogRef.close(!0)},error:a=>{this.loading=!1,this.notify.openAlertModal(a.error?a.error:"An error has occured",se.ERROR)}})}gotoLeagueEntry(){this.dialogRef.close({triggerJoinLeague:!0,playerID:this.playerID,playerName:this.playerName,teamID:this.team.teamID,leagueID:this.team.leagueEntryNeeded})}closeDialog(){this.dialogRef.close()}agreementNotice(){this.waiverData.signatureName==null&&this.notify.openAlertModal("Please click on the waiver & read through.",se.INFO)}onAgreementAccepted(e){e.accepted&&(this.secondFormGroup.get("iAgree").enable(),this.secondFormGroup.get("iAgree").setValue(!0),this.waiverData={signatureName:e.eSignatureName,IDNumber:e.IDNumber})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(ge),x($),x(pe),x(G),x(Bt),x(U),x(re),x(ee))};static \u0275cmp=j({type:t,selectors:[["joinTeam-check"]],viewQuery:function(a,i){if(a&1&&N(hd,5),a&2){let d;W(d=B())&&(i.stepper=d.first)}},features:[Zt([{provide:Qo,useValue:{showError:!0}}])],decls:50,vars:32,consts:[["stepper",""],["id","joinTeam","fusePerfectScrollbar","",1,"joinTeam","mb-52","page-layout","simple","fullwidth",2,"display","flex","flex-direction","column"],[1,"pl-8",2,"display","flex","flex-direction","row","
1justify-content","space-between","align-items","center","height","45px",3,"ngClass"],[1,"w-100-p",3,"ngClass"],[1,"text-right"],["mat-icon-button","",3,"click"],[1,"close-icon"],[1,"matVerticalStepper",3,"linear"],["errorMessage","Code is required.",3,"completed"],[3,"formGroup"],["matStepLabel",""],[1,"blue-600","p-8"],["appearance","fill",1,"w-100-p"],["matInput","","formControlName","joinCode","required",""],["mat-button","",1,"btn-narrow","primary",3,"click","disabled"],[3,"stepControl"],[1,"px-8","py-4","primary","mb-12"],[1,"pl-8",3,"ngClass"],[1,"bold","pl-16"],[2,"display","flex","flex-direction","row","flex-wrap","wrap","justify-content","center","align-items","center"],[3,"click"],["required","","formControlName","iAgree"],[3,"agreementAccepted","file","label","record"],[1,"mt-16"],[1,"mt-16","text-center"],[3,"dueData","playerID","season","cards"],[1,"text-right","mt-12"],[2,"white-space","break-spaces !important"],[3,"nextStep","playerID","teamID","season","invalid","selfRegistration"],["mat-button","",1,"mt-12",3,"click","ngClass","disabled"],[3,"nextStep","dueData","playerID","season","cards"],["mat-button","","matStepperPrevious","",1,"grey-300","mr-8",3,"disabled"],["mat-button","",3,"click","ngClass","disabled"]],template:function(a,i){if(a&1){let d=b();n(0,"div",1)(1,"div",2)(2,"div",3),l(3),o(),n(4,"div",4)(5,"button",5),h("click",function(){return u(d),g(i.closeDialog())}),n(6,"mat-icon",6),l(7,"close"),o()()()(),n(8,"mat-vertical-stepper",7,0)(10,"mat-step",8)(11,"form",9),I(12,yd,5,0,"ng-template",10),n(13,"p",11),l(14,'This step is for "'),n(15,"u"),l(16,"Players Only"),o(),l(17,'".'),v(18,"br"),n(19,"b"),l(20,"Staff"),o(),l(21," members cannot use this form; they must be invited by the "),n(22,"b"),l(23,"Team Owner or Head Coach."),o()(),n(24,"mat-form-field",12)(25,"mat-label"),l(26,"Roster Password"),o(),v(27,"input",13),o(),n(28,"div",4)(29,"button",14),h("click",function(){return u(d),g(i.lookUpTeam())}),l(30,"Join"),o()()()(),n(31,"mat-step",15)(32,"form",9),I(33,Md,1,0,"ng-template",10),m(34,wd,2,1,"div",16),n(35,"div",17),l(36,"Team Information"),o(),n(37,"h3",18),l(38),o(),n(39,"div",19)(40,"span",20),h("click",function(){return u(d),g(i.agreementNotice())}),n(41,"mat-checkbox",21),l(42),o()(),n(43,"agreement-button",22),h("agreementAccepted",function(C){return u(d),g(i.onAgreementAccepted(C))}),o()(),m(44,Sd,2,5,"div",23),m(45,Dd,5,4,"div",24),m(46,Pd,2,0,"div",24),m(47,Ed,1,4,"duePaymentForm",25),m(48,Id,3,4,"div",24),m(49,kd,5,5,"div",26),o()()()()}a&2&&(r(),_("ngClass",i.fuseConfig.layout.pageheader.primaryBackground),r(),_("ngClass",i.isMobile?"font-size-16":"font-size-20"),r(),E("Join a Team - ",i.playerName),r(5),_("linear",!0),r(2),_("completed",i.teamFound),r(),_("formGroup",i.firstFormGroup),r(18),H("spinner",i.loading),_("disabled",i.firstFormGroup.invalid||i.loading),r(2),_("stepControl",i.secondFormGroup),r(),_("formGroup",i.secondFormGroup),r(2),p(i.team.currentTeamInLeague!=null?34:-1),r(),_("ngClass",i.fuseConfig.layout.pageheader.primaryBackground),r(3),y(i.team.teamName),r(4),E(" ",i.waiverData!=null&&i.waiverData.signatureName?"I accept":"Please read"," "),r(),_("file",i.waiverFile)("label",i.waiverLabel)("record",Le(29,vd,Le(24,xd,i.playerID,i.playerName),V(27,bd,i.team.teamID))),r(),p(i.team.individualRegistrationNeeded?44:-1),r(),p(i.team.leagueEntryNeeded!=null&&i.team.currentTeamInLeague==null&&i.team.indvLeagueEntryID==null?45:-1),r(),p(i.team.clubDueNeeded&&i.isTheStupidFormInvalid()?46:-1),r(),p(i.team.clubDueNeeded&&!i.isTheStupidFormInvalid()?47:-1),r(),p(i.team.currentTeamInLeague!=null?48:-1),r(),p(!i.team.individualRegistrationNeeded&&(i.team.leagueEntryNeeded==null||i.team.indvLeagueEntryID!=null)&&!i.team.clubDueNeeded?49:-1))},dependencies:[K,ie,X,ke,ce,ne,ve,Te,Oe,ti,ii,J,ae,Me,Y,te,ta,Xo,Ko,Zo,ea,Ve,Se,we,Fe,Be,Gt,ui,bn,oe,We,Ne],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:fit-content}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin:0!important}.example-margin[_ngcontent-%COMP%]{margin:0 12px}.mat-stepper-vertical[_ngcontent-%COMP%]{margin-top:8px}.mat-input-element[_ngcontent-%COMP%]:disabled, .mat-form-field-type-mat-native-select.mat-form-field-disabled[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]:after{color:#ab1f91!important}@media screen and (max-width:599px){.matVerticalStepper[_ngcontent-%COMP%] .mat-vertical-stepper-header[_ngcontent-%COMP%]{padding:4px!important}.matVerticalStepper[_ngcontent-%COMP%] .mat-vertical-content[_ngcontent-%COMP%]{padding:0 4px 24px!important}.joinTeam[_ngcontent-%COMP%] .mat-step-text-label[_ngcontent-%COMP%]{white-space:break-spaces!important}.joinTeam[_ngcontent-%COMP%] .mat-vertical-stepper-header[_ngcontent-%COMP%]{padding:0!important;height:36px!important}}"]})}return t})();var Ia=(()=>{class t{title;constructor(){}static \u0275fac=function(a){return new(a||t)};
1static \u0275cmp=j({type:t,selectors:[["modal-header"]],inputs:{title:"title"},decls:5,vars:1,consts:[[1,"px-8","py-12","grey-300",2,"display","flex","justify-content","space-between","align-items","center"],[1,"w-100-p","font-size-16"],[1,"material-icons","link",3,"mat-dialog-close"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"span",1),l(2),o(),n(3,"span",2),l(4," close "),o()()),a&2&&(r(2),y(i.title))},dependencies:[oe,Ke],encapsulation:2})}return t})();var Td=["umpireRegistrationForm"],Od=(t,s)=>({type:"person",id:t,name:s}),Vd=t=>({optionID:t}),Fd=(t,s)=>({kind:"official",participant:t,context:s});function Rd(t,s){if(t&1&&(n(0,"mat-option",10),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),y(e.name)}}function Ad(t,s){if(t&1){let e=b();n(0,"mat-form-field",7)(1,"mat-label"),l(2,"Your Association"),o(),n(3,"mat-select",16),D("ngModelChange",function(i){u(e);let d=c();return S(d.association,i)||(d.association=i),g(i)}),h("selectionChange",function(){u(e);let i=c();return g(i.onAssociationChange())}),k(4,Rd,2,2,"mat-option",10,A),o()()}if(t&2){let e=c();r(3),w("ngModel",e.association),_("compareWith",e.compareAssociations),r(),T(e.formData.associations)}}function Ld(t,s){t&1&&(n(0,"span"),l(1,"*"),o())}function Nd(t,s){if(t&1&&(n(0,"mat-option",10),l(1),m(2,Ld,2,0,"span"),o()),t&2){let e=s.$implicit;_("value",e),r(),Lt(" ",e.name," (Jan-Dec ",e.season,")- ",e.price>0?"$"+e.price:"Free"," "),r(),p(e.bgCheckIncluded?2:-1)}}function Wd(t,s){if(t&1&&(n(0,"div",11)(1,"span",17),l(2,"local_police"),o(),n(3,"span",18),l(4),o()()),t&2){let e=c();r(4),E("Background Check Included \u2014 $",e.selectedOption.bgCheckFee)}}function Bd(t,s){if(t&1&&(n(0,"mat-option",10),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),y(e.name)}}function jd(t,s){if(t&1){let e=b();n(0,"mat-form-field",7)(1,"mat-label"),l(2,"Your State"),o(),n(3,"mat-select",19),D("valueChange",function(i){u(e);let d=c();return S(d.state,i)||(d.state=i),g(i)}),k(4,Bd,2,2,"mat-option",10,A),o()()}if(t&2){let e=c();r(3),w("value",e.state),_("compareWith",e.compareStates),r(),T(e.formData.states)}}function zd(t,s){if(t&1&&(n(0,"mat-option",10),l(1),o()),t&2){let e=s.$implicit;_("value",e._key),r(),y(e.name)}}function qd(t,s){if(t&1&&k(0,zd,2,2,"mat-option",10,A),t&2){let e=c();T(e.state==null?null:e.state.counties)}}function Ud(t,s){if(t&1&&(n(0,"mat-option",10),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),y(e)}}function Gd(t,s){if(t&1){let e=b();n(0,"mat-form-field",7)(1,"mat-label"),l(2,"Your District"),o(),n(3,"mat-select",20),D("ngModelChange",function(i){u(e);let d=c();return S(d.district,i)||(d.district=i),g(i)}),k(4,Ud,2,2,"mat-option",10,A),o()()}if(t&2){let e=c();r(3),w("ngModel",e.district),r(),T(e.selectedOption==null?null:e.selectedOption.districts)}}function Hd(t,s){t&1&&(n(0,"span",23),l(1," \xA0 (Youth)"),o())}function $d(t,s){if(t&1&&(n(0,"mat-option",10)(1,"div",22)(2,"span"),l(3),o(),m(4,Hd,2,0,"span",23),o()()),t&2){let e=s.$implicit;_("value",e),r(3),y(e.name),r(),p(e.isYouth?4:-1)}}function Jd(t,s){if(t&1){let e=b();n(0,"mat-form-field",7)(1,"mat-label"),l(2,"Primary Sport"),o(),n(3,"mat-select",21),D("ngModelChange",function(i){u(e);let d=c();return S(d.primarySport,i)||(d.primarySport=i),g(i)}),h("selectionChange",function(){u(e);let i=c();return g(i.calculateRegistrationFee())}),k(4,$d,5,3,"mat-option",10,A),o()()}if(t&2){let e=c();r(3),w("ngModel",e.primarySport),r(),T(e.formData==null?null:e.formData.sports)}}function Yd(t,s){t&1&&(n(0,"span",23),l(1," \xA0 (Youth)"),o())}function Qd(t,s){if(t&1&&(n(0,"mat-option",10)(1,"div",22)(2,"span"),l(3),o(),m(4,Yd,2,0,"span",23),o()()),t&2){let e=s.$implicit;_("value",e),r(3),y(e.name),r(),p(e.isYouth?4:-1)}}function Kd(t,s){if(t&1){let e=b();n(0,"mat-form-field",7)(1,"mat-label"),l(2,"Additional Sports"),o(),n(3,"mat-select",24),D("ngModelChange",function(i){u(e);let d=c();return S(d.additionalSports,i)||(d.additionalSports=i),g(i)}),h("selectionChange",function(){u(e);let i=c();return g(i.calculateRegistrationFee())}),k(4,Qd,5,3,"mat-option",10,A),o()()}if(t&2){let e=c();r(3),w("ngModel",e.additionalSports),_("multiple",(e.formData==null||e.formData.sports==null?null:e.formData.sports.length)>=2),r(),T(e.formData==null?null:e.formData.sports)}}function Xd(t,s){if(t&1){let e=b();n(0,"div",13)(1,"span",25),h("click",function(){u(e);let i=c();return g(i.agreementNotice())}),n(2,"mat-checkbox",26),D("ngModelChange",function(i){u(e);let d=c();return S(d.waiverAccepted,i)||(d.waiverAccepted=i),g(i)}),l(3),o()(),n(4,"agreement-button",27),h("agreementAccepted",function(i){u(e);let d=c();return g(d.onAgreementAccepted(i))}),o()()}if(t&2){let e=c();r(2),w("ngModel",e.waiverAccepted),r(),E(" ",e.waiverData!=null&&e.waiverData.signatureName?"I accept":"Please read"," "),r(),_("file",e.waiverFile)("label",e.waiverLabel)("record",Le(10,Fd,Le(5,Od,e.data.personID,e.data.personName),V(8,Vd,(e.selectedOption==null?null:e.selectedOption._key)??null)))}}var ka=(()=>{class t{dialogRef;dialog;data;notify;api;membership;_fuseConfigService;breakpointObserver;ngxLoader;isMobile;loading;formData={cards:[],options:[]};selectedOption={};association;state;primarySport;additionalSports=[];countyID=null;district=null;isNSA=P.siteName=="nsa"||P.siteName=="bpa";waiverFile="nsaUmpireWaiver2026";waiverLabel="NSA/BPA OFFICIALS WAIVER";waiverAccepted=!1;waiverData={signatureName:null,IDNumber:null};waiverKey=null;waiverOptionID=null;_umpireRegistrationForm;fuseConfig;_unsubscribeAll;constructor(e,a,i,d,f,C,L,z,Z){this.dialogRef=e,this.dialog=a,this.data=i,this.notify=d,this.api=f,this.membership=C,this._fuseConfigService=L,this.breakpointObserver=z,this.ngxLoader=Z,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(de=>{this.isMobile=!!de.matches})}ngOnInit(){if(this.membership.isRestricted){this.notify.openWarningModal("Your account has been restricted."),this.dialogRef.close(!1);return}this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.ngxLoader.startLoader("loader-umpireRegistration"),this.api.get("Umpire/getRegistrationOptionsV2/"+this.data.personID,!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.formData=e,this.formData?.associations?.length===1&&(this.association=this.formData.associations[0],this.onAssociationChange()),e?.sports?.length==1&&(this.primarySport=e.sports[0]._key),e.currentCounty!=null&&(this.countyID=e.currentCounty),this.ngxLoader.stopLoader("loader-umpireRegistration")},error:e=>{this.notify.openErrorModal(e.error?e.error:"An error has occured"),this.ngxLoader.stopLoader("loader-umpireRegistration")}})}registrationOptions=[];onAssociationChange(){this.registrationOptions=this.formData.options.filter(e=>e.site==this.association.site),this.registrationOptions.length==1&&(this.selectedOption=this.registrationOptions[0]),this.onOptionChange()}onOptionChange(){this.waiverKey!=null&&this.waiverOptionID!=this.selectedOption?._key&&(this.waiverAccepted=!1,this.waiverData={signatureName:null,IDNumber:null},this.waiverKey=null,this.waiverOptionID=null),this.calculateRegistrationFee()}umpireRegistrationFee=0;bgCheckRequired=!1;calculateRegistrationFee(){if(this.umpireRegistrationFee=this.selectedOption.price,!this.formData?.bgCheckRequired){this.bgCheckRequired=!1;return}if(this.selectedOption.backgroundCheckRequirement=="allSports")this.bgCheckRequired=!0,this.umpireRegistrationFee+=this.selectedOption.bgCheckFee;else{this.bgCheckRequired=!1;var e=!1;(this.primarySport?.isYouth==!0||this.additionalSports?.filter(i=>i?.isYouth==!0)?.length>0)&&(e=!0),e&&(this.umpireRegistrationFee+=this.selectedOption.bgCheckFee,this.bgCheckRequired=!0)}this.umpireRegistrationFee=Math.round(this.umpireRegistrationFee*100)/100}compareStates(e,a){return e&&a?e._key===a._key:!1}compareAssociations(e,a){return e&&a?e._key===a._key:!1}agreementNotice(){this.waiverData.signatureName==null&&(this.waiverAccepted=!1,this.notify.openAlertModal("Please click on the waiver & read through.",se.INFO))}onAgreementAccepted(e){e.accepted&&(this.waiverAccepted=!0,this.waiverData={signatureName:e.eSignatureName,IDNumber:e.IDNumber}
1,this.waiverKey=e.waiverKey,this.waiverOptionID=this.selectedOption?._key??null)}isPaymentButtonDisabled(){return this.isNSA?this._umpireRegistrationForm?.form?.invalid||!this.waiverAccepted||this.waiverKey==null||this.waiverOptionID!=this.selectedOption?._key:this._umpireRegistrationForm?.form?.invalid}payment(e){if(this.membership.isRestricted){this.notify.openWarningModal("Your account has been restricted."),this.dialogRef.close(!1);return}this.loading=!0;var a=this.association.site;this.formData.associations.length==1&&(a=null);var i={personKey:this.data.personID,cardID:e,optionID:this.selectedOption._key,associationID:a,stateID:this.state._key,countyID:this.countyID,primarySport:this.primarySport._key,additionalSports:this.additionalSports.map(d=>d._key),bgCheckIncluded:this.bgCheckRequired,waiverData:this.isNSA?this.waiverData:null,district:this.district??null};this.api.post("Umpire/registerV2",i,!0).pipe(M(this._unsubscribeAll)).subscribe({next:d=>{this.loading=!1,this.notify.openInfoModal("Registration is completed"),this.dialogRef.close(!0)},error:d=>{this.loading=!1,this.notify.openErrorModal(d.error?d.error:"An error has occured")}})}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(ge),x($),x(pe),x(G),x(U),x(De),x(re),x(ee),x(ue))};static \u0275cmp=j({type:t,selectors:[["umpireRegistration-check"]],viewQuery:function(a,i){if(a&1&&N(Td,5),a&2){let d;W(d=B())&&(i._umpireRegistrationForm=d.first)}},decls:32,vars:19,consts:[["umpireRegistrationForm","ngForm"],["id","umpireRegistration","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth",2,"display","flex","flex-direction","column"],["title","Umpire Registration"],["mat-dialog-content",""],["loaderId","loader-umpireRegistration",3,"fgsSize"],[1,"mat-body-4","mt-20"],["name","umpireRegistrationForm",1,"mt-12",3,"ngSubmit"],[1,"w-100-p"],[1,"green-progress",2,"display","flex","flex-direction","column","justify-content","center","align-items","center"],["name","umpireRegistration","required","","placeholder","Select an Option",3,"ngModelChange","selectionChange","ngModel","disabled"],[3,"value"],[1,"w-100-p","green-600","p-8","mb-20","flex-center",2,"margin-top","-16px"],["name","countyID","required","","placeholder","Select a County",3,"ngModelChange","ngModel"],[1,"mt-20",2,"display","flex","flex-direction","row","flex-wrap","wrap","justify-content","center","align-items","center"],[1,"text-center","mt-20"],["description","Officials Registration Fee",1,"w-100-p","mb-12",3,"paymentCallBack","fullView","amount","cards","buttonDisabled","loading","btnText"],["name","association","required","","placeholder","Select Association",3,"ngModelChange","selectionChange","ngModel","compareWith"],[1,"material-icons"],[1,"ml-8"],["name","state","required","","placeholder","Select State",3,"valueChange","value","compareWith"],["name","district","required","","placeholder","Select a District",3,"ngModelChange","ngModel"],["name","primarySport","required","","placeholder","Select a Primary Sport",3,"ngModelChange","selectionChange","ngModel"],[1,"flex-center"],[1,"orange-fg"],["name","additionalSports","placeholder","Select Additional Sports",3,"ngModelChange","selectionChange","ngModel","multiple"],[3,"click"],["required","","name","waiverAccepted",3,"ngModelChange","ngModel"],[3,"agreementAccepted","file","label","record"]],template:function(a,i){if(a&1){let d=b();n(0,"div",1),v(1,"modal-header",2),n(2,"div",3),v(3,"ngx-ui-loader",4),n(4,"div",5)(5,"p"),l(6,"In order to be an official you must have an active official registration."),o()(),n(7,"form",6,0),h("ngSubmit",function(){u(d);let C=O(8);return g(C.form.valid)}),n(9,"mat-card",7)(10,"mat-card-content")(11,"div",8),m(12,Ad,6,2,"mat-form-field",7),n(13,"mat-form-field",7)(14,"mat-label"),l(15),o(),n(16,"mat-select",9),D("ngModelChange",function(C){return u(d),S(i.selectedOption,C)||(i.selectedOption=C),g(C)}),h("selectionChange",function(){return u(d),g(i.onOptionChange())}),k(17,Nd,3,5,"mat-option",10,A),o()(),m(19,Wd,5,1,"div",11),m(20,jd,6,2,"mat-form-field",7),n(21,"mat-form-field",7)(22,"mat-label"),l(23,"Your County"),o(),n(24,"mat-select",12),D("ngModelChange",function(C){return u(d),S(i.countyID,C)||(i.countyID=C),g(C)}),m(25,qd,2,0),o()(),m(26,Gd,6,1,"mat-form-field",7),m(27,Jd,6,1,"mat-form-field",7),m(28,Kd,6,2,"mat-form-field",7),o()()(),m(29,Xd,5,13,"div",13),n(30,"div",14)(31,"tinc-stripe",15),h("paymentCallBack",function(C){return u(d),g(i.payment(C))}),o()()()()()}a&2&&(r(3),_("fgsSize",75),r(9),p((i.formData==null||i.formData.associations==null?null:i.formData.associations.length)>
11?12:-1),r(3),E("",i.isNSA?"Umpire":"Officials"," Registration"),r(),w("ngModel",i.selectedOption),_("disabled",i.registrationOptions.length==0),r(),T(i.registrationOptions),r(2),p((i.selectedOption==null?null:i.selectedOption.bgCheckIncluded)==!0&&(i.formData==null?null:i.formData.bgCheckRequired)==!0&&i.bgCheckRequired==!0?19:-1),r(),p((i.formData==null||i.formData.states==null?null:i.formData.states.length)>1?20:-1),r(4),w("ngModel",i.countyID),r(),p(i.state!=null?25:-1),r(),p(i.selectedOption!=null&&i.selectedOption.requireDistrict?26:-1),r(),p((i.formData==null||i.formData.sports==null?null:i.formData.sports.length)>1?27:-1),r(),p((i.formData==null||i.formData.sports==null?null:i.formData.sports.length)>1?28:-1),r(),p(i.isNSA?29:-1),r(2),_("fullView",!0)("amount",i.umpireRegistrationFee)("cards",i.formData.cards)("buttonDisabled",i.isPaymentButtonDisabled())("loading",i.loading)("btnText",i.umpireRegistrationFee==0?"Register":"Pay $"+i.umpireRegistrationFee+" for Umpire Registration"))},dependencies:[X,ke,ne,ve,Te,me,Qe,Oe,Ia,ze,je,at,kt,Se,we,It,Pt,Tt,jt,oe,ye,he,Ce,Gt,We,Ne],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:fit-content}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin:0!important}.example-margin[_ngcontent-%COMP%]{margin:0 12px}"]})}return t})();var tc=["nominationForm"];function ic(t,s){t&1&&(n(0,"span"),l(1," | Waitlist"),o())}function nc(t,s){if(t&1&&(n(0,"div",16)(1,"span",17),l(2,"Entry Fee:"),o(),n(3,"span",4),l(4),Q(5,"currency"),o()(),n(6,"div",16)(7,"span",17),l(8,"Entry Cut Off:"),o(),n(9,"span",4),l(10),Q(11,"date"),o()(),n(12,"div",16)(13,"span",17),l(14,"Location:"),o(),n(15,"span",4),l(16),o()(),n(17,"div",16)(18,"span",17),l(19,"Dates:"),o(),n(20,"span",4),l(21),o()()),t&2){let e=c();_("ngClass",e.isMobile?"w-100-p":"w-45-p"),r(4),y(Si(5,8,e.data==null||e.data.person==null?null:e.data.person.entryFee)),r(2),_("ngClass",e.isMobile?"w-100-p":"w-45-p"),r(4),y(le(11,10,e.data==null||e.data.person==null?null:e.data.person.cutDate,"MMM d, y")),r(2),_("ngClass",e.isMobile?"w-100-p":"w-45-p"),r(4),y(e.data==null||e.data.person==null?null:e.data.person.location),r(),_("ngClass",e.isMobile?"w-100-p":"w-45-p"),r(4),y(e.data==null||e.data.person==null?null:e.data.person.dates)}}function oc(t,s){if(t&1&&(n(0,"div",18),l(1," Failed Future Payment Details "),v(2,"hr",19),o(),n(3,"div",16)(4,"span",17),l(5,"Amount:"),o(),n(6,"span",4),l(7),Q(8,"currency"),o()(),n(9,"div",16)(10,"span",17),l(11,"Payment Due Date:"),o(),n(12,"span",4),l(13),Q(14,"date"),o()(),n(15,"div",20)(16,"span",17),l(17,"Credit Card Payment Error:"),o(),n(18,"span",21)(19,"u"),l(20),o()()()),t&2){let e=c();r(3),_("ngClass",e.isMobile?"w-100-p":"w-45-p"),r(4),y(Si(8,5,e.data==null||e.data.futureCharge==null?null:e.data.futureCharge.amount)),r(2),_("ngClass",e.isMobile?"w-100-p":"w-45-p"),r(4),y(le(14,7,e.data==null||e.data.futureCharge==null?null:e.data.futureCharge.futureChargeDate,"MMM d, y")),r(7),y(e.data==null||e.data.futureCharge==null||e.data.futureCharge.chargeResponse==null?null:e.data.futureCharge.chargeResponse.error)}}function ac(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),y(e)}}function rc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Player Class is "),n(2,"strong"),l(3,"required"),o()())}function lc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Player Class / Skill Level"),o(),n(3,"mat-select",31),D("ngModelChange",function(i){u(e);let d=c(2);
1return S(d.nominationData.playerClass,i)||(d.nominationData.playerClass=i),g(i)}),k(4,ac,2,2,"mat-option",32,A),o(),m(6,rc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.playerClass),r(),T(e.classes),r(2),p(e.nominationData.playerClass?-1:6)}}function sc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e.name),r(),y(e.name)}}function dc(t,s){if(t&1&&(n(0,"mat-hint",33),l(1),n(2,"strong"),l(3,"required"),o()()),t&2){let e=c(3);r(),E("",e.jerseySizeLabel," is ")}}function cc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2),o(),n(3,"mat-select",34),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.uniformSize,i)||(d.nominationData.uniformSize=i),g(i)}),k(4,sc,2,2,"mat-option",32,A),o(),m(6,dc,4,1,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(2),y(e.jerseySizeLabel),r(),w("ngModel",e.nominationData.uniformSize),r(),T(e.uniformSize),r(2),p(e.nominationData.uniformSize?-1:6)}}function mc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e.name),r(),y(e.name)}}function pc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Pant Size is "),n(2,"strong"),l(3,"required"),o()())}function _c(t,s){if(t&1){let e=b();n(0,"mat-form-field",25)(1,"mat-label"),l(2,"Pant Size"),o(),n(3,"mat-select",35),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.pantSize,i)||(d.nominationData.pantSize=i),g(i)}),k(4,mc,2,2,"mat-option",32,A),o(),m(6,pc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.pantSize),r(),T(e.pantSize),r(2),p(e.nominationData.pantSize?-1:6)}}function uc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e.name),r(),y(e.name)}}function gc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Short Size is "),n(2,"strong"),l(3,"required"),o()())}function fc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Short Size"),o(),n(3,"mat-select",36),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.shortSize,i)||(d.nominationData.shortSize=i),g(i)}),k(4,uc,2,2,"mat-option",32,A),o(),m(6,gc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.shortSize),r(),T(e.shortSize),r(2),p(e.nominationData.shortSize?-1:6)}}function Cc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e.name),r(),y(e.name)}}function hc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Sock Size is "),n(2,"strong"),l(3,"required"),o()())}function xc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Sock Size"),o(),n(3,"mat-select",37),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.sockSize,i)||(d.nominationData.sockSize=i),g(i)}),k(4,Cc,2,2,"mat-option",32,A),o(),m(6,hc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.sockSize),r(),T(e.sockSize),r(2),p(e.nominationData.sockSize?-1:6)}}function bc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e.name),r(),y(e.name)}}function vc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Hat Size is "),n(2,"strong"),l(3,"required"),o()())}function yc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Hat Size"),o(),n(3,"mat-select",38),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.hatSize,i)||(d.nominationData.hatSize=i),g(i)}),k(4,bc,2,2,"mat-option",32,A),o(),m(6,vc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.hatSize),r(),T(e.hatSize),r(2),p(e.nominationData.hatSize?-1:6)}}function Mc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"This field is "),n(2,"strong"),l(3,"required"),o()())}function wc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Additional Comments"),o(),n(3,"input",39),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.additionalComments,i)||(d.nominationData.additionalComments=i),g(i)}),o(),m(4,Mc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.additionalComments),r(),p(e.nominationData.additionalComments?-1:4)}}function Sc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"This field is "),n(2,"strong"),l(3,"required"),o()())}function Dc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Which Events Interest You?"),o(),n(3,"textarea",40),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.eventsOfInterest,i)||(d.nominationData.eventsOfInterest=i),g(i)}),o(),m(4,Sc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.eventsOfInterest),r(),p(e.nominationData.eventsOfInterest?-1:4)}}function Pc(t,s){if(t&1){let e=b();n(0,"individual-entry-questions",41),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.individualEntryAnswers,i)||(d.nominationData.individualEntryAnswers=i),g(i)}),o()}if(t&2){let e=c(2);
1_("questions",e.nominationData.individualEntryQuestions),w("ngModel",e.nominationData.individualEntryAnswers)}}function Ec(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Jersey No is "),n(2,"strong"),l(3,"required"),o()())}function Ic(t,s){if(t&1){let e=b();n(0,"mat-form-field",27)(1,"mat-label"),l(2,"Player Jersey No"),o(),n(3,"input",42),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.jerseyNo,i)||(d.nominationData.jerseyNo=i),g(i)}),o(),m(4,Ec,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);r(3),w("ngModel",e.nominationData.jerseyNo),r(),p(e.nominationData.jerseyNo?-1:4)}}function kc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Alternative Numbers are "),n(2,"strong"),l(3,"required"),o()())}function Tc(t,s){if(t&1){let e=b();n(0,"mat-form-field",27)(1,"mat-label"),l(2,"Alternative Jersey Numbers"),o(),n(3,"alternative-jersey-number-input",43),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.alternativeJerseyNumbersInp,i)||(d.nominationData.alternativeJerseyNumbersInp=i),g(i)}),o(),m(4,kc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);r(3),w("ngModel",e.nominationData.alternativeJerseyNumbersInp),r(),p(e.nominationData.alternativeJerseyNumbersInp?-1:4)}}function Oc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e._key),r(),y(e.name)}}function Vc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Primary Position is "),n(2,"strong"),l(3,"required"),o()())}function Fc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e._key),r(),y(e.name)}}function Rc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Secondary Position is "),n(2,"strong"),l(3,"required"),o()())}function Ac(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Primary Pos."),o(),n(3,"mat-select",44),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.primaryPos,i)||(d.nominationData.primaryPos=i),g(i)}),k(4,Oc,2,2,"mat-option",32,A),o(),m(6,Vc,4,0,"mat-hint",33),o(),n(7,"mat-form-field",24)(8,"mat-label"),l(9,"Secondary Pos."),o(),n(10,"mat-select",45),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.secondaryPos,i)||(d.nominationData.secondaryPos=i),g(i)}),k(11,Fc,2,2,"mat-option",32,A),o(),m(13,Rc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.primaryPos),r(),T(e.data.positions),r(2),p(e.nominationData.primaryPos?-1:6),r(),_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.secondaryPos),r(),T(e.data.positions),r(2),p(e.nominationData.secondaryPos?-1:13)}}function Lc(t,s){t&1&&(n(0,"div",28)(1,"mat-hint",46),l(2," Primary and Secondary positions cannot be same "),o()())}function Nc(t,s){t&1&&(n(0,"p",49),l(1,"If you submit a request to play with someone that is registered for an older age level than the age level you are registering for, you will be moved to the older age level"),o())}function Wc(t,s){t&1&&(n(0,"p",49),l(1,"Friend requests are only considered if the requested friends are registered for the same activity."),o())}function Bc(t,s){if(t&1){let e=b();n(0,"mat-icon",54),h("click",function(){u(e);let i=c().$index,d=c(4);return g(d.removeFriend(i))}),l(1,"remove_circle"),o()}}function jc(t,s){t&1&&(n(0,"mat-hint",46),l(1,"Name is Required"),o())}function zc(t,s){if(t&1){let e=b();n(0,"mat-form-field",50)(1,"mat-label"),l(2,"Friend's Name"),o(),n(3,"input",52),D("ngModelChange",function(i){let d=u(e).$implicit;return S(d.name,i)||(d.name=i),g(i)}),o(),m(4,Bc,2,0,"mat-icon",53),m(5,jc,2,0,"mat-hint",46),o()}if(t&2){let e=s.$implicit,a=s.$index,i=c(4);r(3),_("name",be("name",a)),w("ngModel",e.name),r(),p(a!=0&&i.nominationData.friendRequests.length>=1?4:-1),r(),p(e.name?-1:5)}}function qc(t,s){if(t&1){let e=b();n(0,"div"),k(1,zc,6,5,"mat-form-field",50,A),n(3,"mat-icon",51),h("click",function(){u(e);let i=c(3);return g(i.addFriend())}),l(4,"add_circle"),o()()}if(t&2){let e=c(3);r(),T(e.nominationData.friendRequests)}}function Uc(t,s){if(t&1){let e=b();n(0,"div",29)(1,"div",47)(2,"mat-checkbox",48),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.friendRequest,i)||(d.nominationData.friendRequest=i),g(i)}),h("change",function(){u(e);let i=c(2);return g(i.toogleFriendRequest())}),l(3,"Friend Request"),o()(),m(4,Nc,2,0,"p",49),m(5,Wc,2,0,"p",49),m(6,qc,5,0,"div"),o()}if(t&2){let e=c(2);r(2),w("ngModel",e.nominationData.friendRequest),r(2),p(e.isMYAS?4:-1),r(),p(e.isMYAS?-1:5),r(),p(e.nominationData.friendRequest?6:-1)}}function Gc(t,s){if(t&1){let e=b();n(0,"div",30)(1,"div")(2,"mat-slide-toggle",55),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.canPlayAsCatcher,i)||(d.nominationData.canPlayAsCatcher=i),g(i)}),l(3,"Can play as Catcher"),o()(),n(4,"div")(5,"mat-slide-toggle",56),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.ownsCatcherGear,i)||(d.nominationData.ownsCatcherGear=i),g(i)}),l(6,"Owns Catcher Gear"),o()()()}if(t&2){let e=c(2);r(2),w("ngModel",e.nominationData.canPlayAsCatcher),r(3),w("ngModel",e.nominationData.ownsCatcherGear)}}function Hc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e._key+"|"+e.name),r(),y(e.name)}}function $c(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Player Association is "),n(2,"strong"),l(3,"required"),o()())}
1function Jc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Player Association"),o(),n(3,"mat-select",57),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.playerAssociation,i)||(d.nominationData.playerAssociation=i),g(i)}),n(4,"mat-option",58),l(5,"N/A"),o(),n(6,"mat-option",59),l(7,"Not Listed - Other"),o(),v(8,"mat-divider"),k(9,Hc,2,2,"mat-option",32,A),o(),m(11,$c,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.playerAssociation),r(6),T(e.data==null||e.data.person==null?null:e.data.person.clubs),r(2),p(e.nominationData.playerAssociation?-1:11)}}function Yc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Association name is "),n(2,"strong"),l(3,"required"),o()())}function Qc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Enter Association Name"),o(),n(3,"input",60),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.playerAssociationOther,i)||(d.nominationData.playerAssociationOther=i),g(i)}),o(),m(4,Yc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.playerAssociationOther),r(),p(e.nominationData.playerAssociationOther?-1:4)}}function Kc(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Travel Team is "),n(2,"strong"),l(3,"required"),o()())}function Xc(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Travel Team"),o(),n(3,"input",61),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.travelTeam,i)||(d.nominationData.travelTeam=i),g(i)}),o(),m(4,Kc,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.travelTeam),r(),p(e.nominationData.travelTeam?-1:4)}}function Zc(t,s){if(t&1&&(n(0,"mat-option",32),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),E(" ",e," ")}}function em(t,s){t&1&&(n(0,"mat-hint",33),l(1,"Grad Year is "),n(2,"strong"),l(3,"required"),o()())}function tm(t,s){if(t&1){let e=b();n(0,"mat-form-field",24)(1,"mat-label"),l(2,"Player Grad Year"),o(),n(3,"mat-select",62),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.gradYear,i)||(d.nominationData.gradYear=i),g(i)}),k(4,Zc,2,2,"mat-option",32,A),o(),m(6,em,4,0,"mat-hint",33),o()}if(t&2){let e=c(2);_("ngClass",e.isMobile?"w-95-p":"w-45-p"),r(3),w("ngModel",e.nominationData.gradYear),r(),T(e.years),r(2),p(e.nominationData.gradYear?-1:6)}}function im(t,s){if(t&1&&(n(0,"h3",22),l(1,"Player Information"),o(),n(2,"div",23),m(3,lc,7,3,"mat-form-field",24),m(4,cc,7,4,"mat-form-field",24),m(5,_c,7,3,"mat-form-field",25),m(6,fc,7,3,"mat-form-field",24),m(7,xc,7,3,"mat-form-field",24),m(8,yc,7,3,"mat-form-field",24),m(9,wc,5,3,"mat-form-field",24),m(10,Dc,5,3,"mat-form-field",24),m(11,Pc,1,2,"individual-entry-questions",26),m(12,Ic,5,2,"mat-form-field",27),m(13,Tc,5,2,"mat-form-field",27),m(14,Ac,14,6),o(),m(15,Lc,3,0,"div",28),m(16,Uc,7,4,"div",29),m(17,Gc,7,2,"div",30),n(18,"div",23),m(19,Jc,12,3,"mat-form-field",24),m(20,Qc,5,3,"mat-form-field",24),m(21,Xc,5,3,"mat-form-field",24),m(22,tm,7,3,"mat-form-field",24),o()),t&2){let e=c();r(3),p(!(e.data==null||e.data.person==null)&&e.data.person.playerClassRequired||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.playerClassRequired?3:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4JerseySize||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.ask4JerseySize?4:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4PantSize||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.ask4PantSize?5:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4ShortSize||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.ask4ShortSize?6:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4SockSize||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.ask4SockSize?7:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4HatSize||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.ask4HatSize?8:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4AdditionalComments||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.ask4AdditionalComments?9:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4EventsOfInterest||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.ask4EventsOfInterest?10:-1),r(),p(e.nominationData.individualEntryQuestions!=null&&e.nominationData.individualEntryQuestions.length?11:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.askJerseyNo||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.askJerseyNo?12:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.askAlternativeJerseyNo?13:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.positionRequired||!(e.formData==null||e.formData.eventData==null)&&e.formData.eventData.positionRequired?14:-1),r(),p(e.nominationData.secondaryPos==e.nominationData.primaryPos&&e.nominationData.primaryPos?15:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.askFriendRequest?16:-1),r(),p((e.data==null||e.data.person==null?null:e.data.person.ask4Catchers)==!0?17:-1),r(2),p(!(e.data==null||e.data.person==null)&&e.data.person.associationNameRequired?19:-1),r(),p(e.nominationData.playerAssociation=="notListed"?20:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4TravelTeam?21:-1),r(),p(!(e.data==null||e.data.person==null)&&e.data.person.ask4GradYear?22:-1)}}function nm(t,s){t&1&&(n(0,"div",65),l(1,"*** Please fill all the required fields. ***"),o())}function om(t,s){if(t&1){let e=b();n(0,"entry-waiver-sign",63),h("signed",function(i){u(e);let d=c();return g(d.nominationData.waiver=i!=null)}),o(),n(1,"entry-waiver-sign",64),h("signed",function(i){u(e);let d=c();return g(d.nominationData.entryWaiverSignature=i)}),o(),m(2,nm,2,0,"div",65)}if(t&2){let e=c(),a=O(12);_("file",e.isMYAS?"myasWaiver":"genericPlayerWaiver")("label",(e.isMYAS?"MYAS ":"")+"Waiver Statement")("record",e.waiverRecord),r(),_("waiver",e.nominationData.entryWaiver)("record",e.waiverRecord),r(),p(a.invalid?2:-1)}}function am(t,s){if(t&1){let e=b();n(0,"button",72),h("click",function(){u(e);let i=c(3);return g(i.applyCouponCode())}),l(1,"Apply"),o()}}function rm(t,s){if(t&1){let e=b();n(0,"button",73),h("click",function(){u(e);let i=c(3);return g(i.removeCouponCode())}),l(1,"Remove"),o()}}function lm(t,s){if(t&1){let e=b();n(0,"div",71)(1,"div",74)(2,"span",75),h("click",function(){u(e);let i=c(3);return g(i.removeCouponCode())}),l(3," delete_forever "),o(),n(4,"span"),l(5),o(),n(6,"span",76),l(7," local_offer "),o()()()}if(t&2){let e=c(3);r(5),E("Discount: -$",e.couponData.discountAmount)}}function sm(t,s){if(t&1){let e=b();n(0,"div",47),l(1,"Coupon Code"),o(),n(2,"div",19)(3,"mat-form-field",67)(4,"mat-label"),l(5,"Coupon Code"),o(),n(6,"input",68),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.nominationData.couponCode,i)||(d.nominationData.couponCode=i),g(i)}),o()(),m(7,am,2,0,"button",69),m(8,rm,2,0,"button",70),o(),m(9,lm,8,1,"div",71)}if(t&2){let e=c(2);r(6),w("ngModel",e.nominationData.couponCode),r(),p(e.nominationData.couponID==null?7:-1),r(),p(e.nominationData.couponID?8:-1),r(),p(e.nominationData.couponID?9:-1)}}function dm(t,s){if(t&1){let e=b();n(0,"tinc-stripe",77),h("paymentCallBack",function(i){u(e);let d=c(2);return g(d.makePayment(i))}),o()}if(t&2){let e=c(2),a=O(12);_("fullView",!0)("amount",e.totalAmount)("cards",e.data.cards)("buttonDisabled",a.invalid||e.nominationData.secondaryPos==e.nominationData.primaryPos&&(e.data==null||e.data.person==null?null:e.data.person.positionRequired)||!e.nominationData.waiver||e.loading||e.nominationData.entryWaiver!=null&&e.nominationData.entryWaiverSignature==null)("loading",e.loading)("bt
1nText","Pay $"+e.totalAmount+" for Entry")}}function cm(t,s){if(t&1){let e=b();l(0),Q(1,"json"),n(2,"tinc-stripe",78),h("paymentCallBack",function(i){u(e);let d=c(2);return g(d.makePayment(i,!0))}),o()}if(t&2){let e=c(2);E(" #",Si(1,8,e.nominationData),"## "),r(2),_("fullView",!0)("amount",e.data==null||e.data.futureCharge==null?null:e.data.futureCharge.amount)("cards",e.data.cards)("buttonDisabled",e.loading)("loading",e.loading)("btnText","Pay the Balance of $"+(e.data==null||e.data.futureCharge==null?null:e.data.futureCharge.amount))("description","Failed Future Charge - "+(e.data==null||e.data.futureCharge==null?null:e.data.futureCharge.name))}}function mm(t,s){if(t&1&&(n(0,"div",13),m(1,sm,10,4),m(2,dm,1,6,"tinc-stripe",66)(3,cm,3,10),o()),t&2){let e=c();r(),p((e.data.person==null?null:e.data.person.entryFee)>0&&e.data.failedFuturePayment!=!0&&(e.data.person!=null&&e.data.person.hasCoupons)?1:-1),r(),p(e.data.failedFuturePayment!=!0?2:3)}}function pm(t,s){if(t&1){let e=b();n(0,"div",14)(1,"button",79),h("click",function(){u(e);let i=c();return g(i.updatePlayerData())}),l(2,"Update"),o()()}if(t&2){let e=c(),a=O(12);r(),_("disabled",a.invalid||(e.data==null||e.data.person==null?null:e.data.person.positionRequired)==!0&&e.nominationData.secondaryPos==e.nominationData.primaryPos||e.data.failedFuturePayment!=!0&&!e.nominationData.waiver||e.nominationData.entryWaiver!=null&&e.nominationData.entryWaiverSignature==null)}}function _m(t,s){if(t&1){let e=b();n(0,"div",15)(1,"button",80),h("click",function(){u(e);let i=c();return g(i.updatePlayerData(!0))}),l(2),o()()}if(t&2){let e=c(),a=O(12);r(),_("disabled",a.invalid||e.nominationData.secondaryPos==e.nominationData.primaryPos||e.data.failedFuturePayment!=!0&&!e.nominationData.waiver||e.nominationData.entryWaiver!=null&&e.nominationData.entryWaiverSignature==null),r(),y(!(e.data==null||e.data.person==null)&&e.data.person.waitlisted?"Update":"Enter Waitlist")}}var Rn=(()=>{class t{dialogRef;dialog;data;notify;api;_fuseConfigService;ngxService;breakpointObserver;confetti;isMobile=!1;loading;formData={cards:[]};entryFee;personID;register4nomination={};nominationData={};classes=["A","AA","AAA","Rec"];uniformSize=[{_key:"1",name:"Adult Small"},{_key:"2",name:"Adult Medium"},{_key:"3",name:"Adult Large"},{_key:"4",name:"Adult XL"},{_key:"5",name:"Youth XS"},{_key:"6",name:"Youth Small"},{_key:"7",name:"Youth Medium"},{_key:"8",name:"Youth Large"},{_key:"9",name:"Youth XL"}];pantSize=[{_key:"1",name:"Youth XS"},{_key:"2",name:"Youth Small"},{_key:"3",name:"Youth Medium"},{_key:"4",name:"Youth Large"},{_key:"5",name:"Youth XL"},{_key:"6",name:"Adult Small"},{_key:"7",name:"Adult Medium"},{_key:"8",name:"Adult Large"},{_key:"9",name:"Adult XL"},{_key:"10",name:"Adult XXL"},{_key:"11",name:"Adult XXXL"}];shortSize=[{_key:"1",name:"Youth XS"},{_key:"2",name:"Youth Small"},{_key:"3",name:"Youth Medium"},{_key:"4",name:"Youth Large"},{_key:"5",name:"Youth XL"},{_key:"6",name:"Adult Small"},{_key:"7",name:"Adult Medium"},{_key:"8",name:"Adult Large"},{_key:"9",name:"Adult XL"}];sockSize=[{_key:"1",name:"XS"},{_key:"2",name:"Small"},{_key:"3",name:"Medium"},{_key:"4",name:"Large"},{_key:"5",name:"XL"}];hatSize=[{_key:"1",name:"Youth"},{_key:"2",name:"S-M"},{_key:"3",name:"L-XL"}];_unsubscribeAll;entryCelebrated=!1;isMYAS=P.siteName=="myas";isCapeCougars=P.siteName=="capecougars";isFutureStars=P.siteName=="futurestarsfp";get jerseySizeLabel(){return this.isCapeCougars?"T-Shirt Size":"Jersey Size"}_nominationForm;fuseConfig;constructor(e,a,i,d,f,C,L,z,Z){this.dialogRef=e,this.dialog=a,this.data=i,this.notify=d,this.api=f,this._fuseConfigService=C,this.ngxService=L,this.breakpointObserver=z,this.confetti=Z,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(de=>{this.isMobile=!!de.matches})}years;waiverRecord;ngOnInit(){if(this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(d=>{this.fuseConfig=d}),this.nominationData=this.data.person,this.waiverRecord={kind:"event",participant:{type:"person",id:this.data.participant?.id,name:this.data.participant?.name},context:{eventID:this.data.person.eventID??null,divisionID:this.data.person.divisionID}},this.classes=this.data.person.sport=="BB"?["A","AA","AAA","Rec"]:["A","B","C","Rec"],this.nominationData.friendRequest=this.nominationData.friends!=null,this.nominationData.friendRequests=[{name:null}],this.nominationData.friends!=null){var e=[];this.nominationData.friends.forEach(d=>{e.push({name:d})}),this.nominationData.friendRequests=e}if(this.data.person.alternativeJerseyNumbers!=null){let d=this.data.person.alternativeJerseyNumbers.split(",");this.nominationData.alternativeJerseyNumbersInp={jerseyNo1:d[0],jerseyNo2:d.length>1?d[1]:"",jerseyNo3:d.length>2?d[2]:""}}let a=new Date().getFullYear(),i=(d,f,C)=>Array.from({length:(f-d)/C+1},(L,z)=>d+z*C);this.years=i(a+14,2e3,-1),this.years=this.years.map(d=>d.toString()),this.calcTotalPrice()}updatePlayerData(e=!1){this.waiverBlocked()||(e&&(this.nominationData.waitlist=!0),this.nominationData.alternativeJerseyNumbersInp!=null&&(this.nominationData.alternativeJerseyNumbers=this.nominationData.alternativeJerseyNumbersInp.jerseyNo1,this.nominationData.alternativeJerseyNumbersInp.jerseyNo2!=""&&(this.nominationData.alternativeJerseyNumbers+=","+this.nominationData.alternativeJerseyNumbersInp.jerseyNo2),this.nominationData.alternativeJerseyNumbersInp.jerseyNo3!=""&&(this.nominationData.alternativeJerseyNumbers+=","+this.nominationData.alternativeJerseyNumbersInp.jerseyNo3)),this.nominationData.friends=this.nominationData.friendRequest?this.nominationData.friendRequests.filter(a=>a.name!=null).map(a=>a.name):null,this.api.post("Family/individualEventEntryUpdate/"+this.data.person._key,this.nominationData,!0).pipe(M(this._unsubscribeAll)).subscribe({next:a=>{this.notify.openToaster("Updated"),this.dialogRef.close(!0)},error:a=>{this.notify.openErrorModal(a.error?a.error:"An error has occured")}}))}totalAmount=0;calcTotalPrice(){this.totalAmount=this.data.person.entryFee,this.nominationData.couponID!=null&&(this.totalAmount-=this.couponData.discountAmount),this.totalAmount=this.round2Cents(this.totalAmount)}couponData={};applyCouponCode(){this.ngxService.startLoader("loader-entry"),this.api.post("Family/applyCouponCode",{code:this.nominationData.couponCode,dpKey:this.data.person._key,amount:this.data.person.entryFee},!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{e._key!=null&&(this.couponData=e,this.nominationData.couponID=e._key,this.couponData.discountAmount=this.round2Cents(e.discountType=="%"?this.data.person.entryFee*(e.discount/100):e.discount),this.notify.openSnackBar("Coupon code applied, and the entry price is updated"),this.calcTotalPrice()),this.ngxService.stopLoader("loader-entry")},error:e=>{this.ngxService.stopLoader("loader-entry"),this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}round2Cents(e){return Math.round(e*100)/100}
1removeCouponCode(){this.notify.openSnackBar("Coupon code removed, and the entry price is updated"),this.couponData={},this.nominationData.couponID=null,this.nominationData.couponCode="",this.calcTotalPrice()}waiverBlocked(){return this.nominationData.entryWaiver!=null&&this.nominationData.entryWaiverSignature==null?(this.notify.openErrorModal(`Please read and sign the "${this.nominationData.entryWaiver.title||"Event Entry Waiver"}" before continuing.`),!0):!1}makePayment(e,a=!1){if(this.waiverBlocked())return;this.loading=!0,a||(this.nominationData.futureCharge=null);let i=!a&&this.nominationData.entryConfirmed!=!0&&this.nominationData.futureCharge==null;this.api.post("Family/individualEventEntryPayment/"+this.data.person._key,{cardID:e,couponID:this.nominationData.couponID,playerData:this.nominationData},!0).pipe(M(this._unsubscribeAll)).subscribe({next:d=>{this.notify.openToaster("Event Entry is completed"),i&&!this.entryCelebrated&&(this.entryCelebrated=!0,this.confetti.cannon()),this.loading=!1,this.dialogRef.close(!0)},error:d=>{this.loading=!1,this.notify.openErrorModal(d.error?d.error:"An error has occured")}})}toogleFriendRequest(){this.nominationData.friendRequest==!0&&this.nominationData.friendRequests==null&&(this.nominationData.friendRequests=[{name:null}])}addFriend(){this.nominationData.friendRequests==null&&(this.nominationData.friendRequests=[]),this.nominationData.friendRequests.push({name:null})}removeFriend(e){this.nominationData.friendRequests.splice(e,1)}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(ge),x($),x(pe),x(G),x(U),x(re),x(ue),x(ee),x(ln))};static \u0275cmp=j({type:t,selectors:[["indEventNomination"]],viewQuery:function(a,i){if(a&1&&N(tc,5),a&2){let d;W(d=B())&&(i._nominationForm=d.first)}},decls:23,vars:13,consts:[["nominationForm","ngForm"],[2,"display","flex","flex-direction","column"],[1,"pl-8","flex-justify-center",3,"ngClass"],[1,"font-size-16","bold","py-4",2,"flex-grow","1"],[1,"text-right"],["mat-icon-button","",1,"",3,"click"],[1,"close-icon"],["mat-dialog-content",""],["loaderId","loader-entry",3,"fgsSize"],["name","nominationForm",1,"mt-12",3,"ngSubmit"],[1,"mb-32","mt-12","w-100-p"],[1,"flex-justify-center","flex-wrap","mx-auto","w-100-p",2,"row-gap","12px"],[1,"my-24"],[1,"mt-16"],[1,"text-center","mt-12"],[1,"text-center","mt-16"],[1,"flex-justify-center",3,"ngClass"],[1,"bold","mr-12"],[1,"h3","text-center","w-100-p"],[1,"my-12"],[1,"flex-start-center","w-100-p"],[1,""],[1,"bold"],[1,"flex-justify-center","flex-wrap",2,"gap","12px"],["appearance","outline","floatLabel","always",3,"ngClass"],["appearance","outline",3,"ngClass"],["name","individualEntryQuestions",1,"w-100-p",3,"questions","ngModel"],["appearance","outline","floatLabel","always",1,"w-45-p"],[1,"text-center"],[1,"mt-12"],[1,"mt-12","flex-evenly-center"],["name","playerClass","required","",3,"ngModelChange","ngModel"],[3,"value"],["align","end",1,"red-fg"],["name","uniformSize","required","",3,"ngModelChange","ngModel"],["name","pantSize","required","",3,"ngModelChange","ngModel"],["name","shortSize","required","",3,"ngModelChange","ngModel"],["name","sockSize","required","",3,"ngModelChange","ngModel"],["name","hatSize","required","",3,"ngModelChange","ngModel"],["matInput","","name","additionalComments","required","",3,"ngModelChange","ngModel"],["matInput","","name","eventsOfInterest","required","",3,"ngModelChange","ngModel"],["name","individualEntryQuestions",1,"w-100-p",3,"ngModelChange","questions","ngModel"],["matInput","","name","jerseyNo","required","",3,"ngModelChange","ngModel"],["matInput","","name","alternativeJerseyNumbersInp","required","",3,"ngModelChange","ngModel"],["name","primaryPos","required","",3,"ngModelChange","ngModel"],["name","secondaryPos","required","",3,"ngModelChange","ngModel"],[1,"red-fg"],[1,"pl-8","py-8","grey-300"],["name","friendRequest",3,"ngModelChange","change","ngModel"],[1,"pb-12"],["appearance","outline","floatLabel","always",1,"mr-8",2,"margin-top","-10px"],[1,"primary-fg",2,"display","block",3,"click"],["matInput","","type","text","required","",3,"ngModelChange","name","ngModel"],["matSuffix","",1,"red-fg"],["matSuffix","",1,"red-fg",3,"click"],["name","canPlayAsCatcher",3,"ngModelChange","ngModel"],["name","ownsCatcherGear",3,"ngModelChange","ngModel"],["name","playerAssociation","required","",3,"ngModelChange","ngModel"],["value","N/A"],["value","notListed"],["matInput","","name","playerAssociationOther","required","",3,"ngModelChange","ngModel"],["matInput","","name","travelTeam","required","",3,"ngModelChange","ngModel"],["name","gradYear","required","",3,"ngModelChange","ngModel"],[3,"signed","file","label","record"],[3,"signed","waiver","record"],[1,"message-box","error","py-8"],["description","Indiv
1idual Event Nomination Fee",1,"w-100-p","mb-12",3,"fullView","amount","cards","buttonDisabled","loading","btnText"],["appearance","fill",1,"w-45-p"],["matInput","","name","couponCode","placeholder","Enter your coupon code",3,"ngModelChange","ngModel"],["mat-raised-button","","color","primary",1,"ml-8"],["mat-raised-button","",1,"red-100","ml-8"],[1,"priceLine","my-12","bold","blue-fg"],["mat-raised-button","","color","primary",1,"ml-8",3,"click"],["mat-raised-button","",1,"red-100","ml-8",3,"click"],[1,"flex-center"],[1,"material-icons","pr-8","link","red-fg",2,"margin-left","-4px",3,"click"],[1,"material-icons","pl-8"],["description","Individual Event Nomination Fee",1,"w-100-p","mb-12",3,"paymentCallBack","fullView","amount","cards","buttonDisabled","loading","btnText"],[1,"w-100-p","mb-12",3,"paymentCallBack","fullView","amount","cards","buttonDisabled","loading","btnText","description"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","",1,"amber",3,"click","disabled"]],template:function(a,i){if(a&1){let d=b();n(0,"div",1)(1,"div",2)(2,"div",3),l(3),m(4,ic,2,0,"span"),o(),n(5,"div",4)(6,"button",5),h("click",function(){return u(d),g(i.closeDialog())}),n(7,"mat-icon",6),l(8,"close"),o()()()(),n(9,"div",7),v(10,"ngx-ui-loader",8),n(11,"form",9,0),h("ngSubmit",function(){u(d);let C=O(12);return g(C.form.valid)}),n(13,"div",10)(14,"div",11),m(15,nc,22,13)(16,oc,21,10),o(),v(17,"hr",12),m(18,im,23,19),o(),m(19,om,3,6),m(20,mm,4,2,"div",13),m(21,pm,3,1,"div",14),m(22,_m,3,2,"div",15),o()()()}a&2&&(r(),_("ngClass",i.data.waitlist?"amber":i.fuseConfig.layout.pageheader.primaryBackground),r(2),_e(" ",i.data==null||i.data.person==null?null:i.data.person.name," ",!(i.data==null||i.data.person==null)&&i.data.person.playerName?" - "+(i.data==null||i.data.person==null?null:i.data.person.playerName):""," "),r(),p(i.data.waitlist||i.data.person.waitlisted?4:-1),r(6),_("fgsSize",75),r(4),H("red-fg",(i.data==null?null:i.data.failedFuturePayment)==!0),r(),p(i.data.failedFuturePayment!=!0?15:16),r(3),p(i.data.failedFuturePayment!=!0?18:-1),r(),p(i.data.failedFuturePayment!=!0?19:-1),r(),p(!(!(i.data==null||i.data.person==null)&&i.data.person.fullyPaid)&&!i.data.waitlist?20:-1),r(),p((i.data==null||i.data.person==null?null:i.data.person.entryConfirmed)==!0&&(i.data==null||i.data.person==null?null:i.data.person.fullyPaid)==!0?21:-1),r(),p(i.data.waitlist?22:-1))},dependencies:[K,ie,X,ke,ce,ne,ve,Te,me,Qe,Oe,J,ae,Me,Y,te,he,Ce,Ve,Se,we,ot,St,kt,It,Pt,Fe,Be,ga,We,Ne,Wi,Ni,Et,Li,na,Tt,oe,ye,fa,Gn,$n,Ue],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:fit-content}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin:0!important}.example-margin[_ngcontent-%COMP%]{margin:0 12px}[_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:7px!important;padding-bottom:7px!important;min-height:38px!important}[_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex{padding:0 10px}[_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mat-mdc-floating-label{font-size:12px!important;font-weight:600;letter-spacing:.2px}[_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mdc-notched-outline__leading, [_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mdc-notched-outline__notch, [_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mdc-notched-outline__trailing{border-color:#ced4da;border-width:1px!important}[_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mdc-notched-outline__leading{border-radius:4px 0 0 4px}[_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mdc-notched-outline__trailing{border-radius:0 4px 4px 0}[_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mat-mdc-form-field-hint-wrapper, [_nghost-%COMP%] mat-form-field.mat-mdc-form-field .mat-mdc-form-field-error-wrapper{padding:0 2px;font-size:11px}dl[_ngcontent-%COMP%]{width:100%;display:grid;grid-template-columns:25% 25% 25% 25%}dl[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{grid-column:1;margin:2px 0}dl[_ngcontent-%COMP%] dt.second[_ngcontent-%COMP%]{grid-column:3}dl[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{grid-column:2;margin:2px 0}dl[_ngcontent-%COMP%] dd.second[_ngcontent-%COMP%]{grid-column:4}.cdk-viewport[_ngcontent-%COMP%]{height:300px;border:solid 1px blue;width:100%}"]})}return t})();var um=["leagueForm"],gm=(t,s)=>({type:"person",id:t,name:s}),fm=(t,s,e)=>({eventID:t,divisionID:s,teamID:e}),Cm=(t,s)=>({kind:"league",participant:t,context:s});function hm(t,s){if(t&1&&(n(0,"mat-option",14),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),y(e.name)}}function xm(t,s){if(t&1&&(n(0,"mat-option",14),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),y(e.name)}}function bm(t,s){if(t&1){let e=b();n(0,"div",9)(1,"div",10),l(2,"Step 2:"),v(3,"br"),n(4,"span",11),l(5,"Pick the event"),o()(),n(6,"mat-form-field",12)(7,"mat-label"),l(8,"Event"),o(),n(9,"mat-select",17),D("ngModelChange",function(i){u(e);let d=c();return S(d.leagueFormData.event,i)||(d.leagueFormData.event=i),g(i)}),h("selectionChange",function(){u(e);let i=c();return g(i.onWaiverTargetChange())}),k(10,xm,2,2,"mat-option",14,A),o()()()}if(t&2){let e=c();r(9),w("ngModel",e.leagueFormData.event),_("disabled",e.preFilledForm),r(),T(e.leagueFormData.sport==null?null:e.leagueFormData.sport.events)}}function vm(t,s){t&1&&l(0," If you submit a request to play with someone that is registered for an older age level than the age level you are registering for, you will be moved to the older age level ")}function ym(t,s){t&1&&l(0," Friend requests are only considered if the requested friends are registered for the same activity. ")}function Mm(t,s){if(t&1){let e=b();n(0,"mat-icon",31),h("click",function(){u(e);let i=c().$index,d=c(4);return g(d.removeFriend(i))}),l(1,"remove_circle"),o()}}function wm(t,s){t&1&&(n(0,"mat-hint",30),l(1,"Name is Required"),o())}function Sm(t,s){if(t&1){let e=b();n(0,"mat-form-field",26)(1,"mat-label"),l(2,"Friend's Name"),o(),n(3,"input",28),D("ngModelChange",function(i){let d=u(e).$implicit;return S(d.name,i)||(d.name=i),g(i)}),o(),m(4,Mm,2,0,"mat-icon",29),m(5,wm,2,0,"mat-hint",30),o()}if(t&2){let e=s.$implicit,a=s.$index,i=c(4);r(3),_("name",be("name",a)),w("ngModel",e.name),r(),p(a!=0&&i.friendRequests.length==1||i.friendRequests.length>1?4:-1),r(),p(e.name?-1:5)}}function Dm(t,s){if(t&1){let e=b();n(0,"div"),k(1,Sm,6,5,"mat-form-field",26,jn),n(3,"mat-icon",27),h("click",function(){u(e);let i=c(3);return g(i.addFriend())}),l(4,"add_circle"),o()()}if(t&2){let e=c(3);r(),T(e.friendRequests)}}function Pm(t,s){if(t&1){let e=b();n(0,"section",22),v(1,"hr"),n(2,"mat-checkbox",23),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.leagueFormData.volunteerCoach,i)||(d.leagueFormData.volunteerCoach=i),g(i)}),n(3,"b"),l(4,"Interested in Coaching?"),o()(),n(5,"p",24),l(6,"All teams comprised of players that registered individually will be in need of an individual(s) to handle coaching duties. Please click the box if interested in coaching."),o(),v(7,"hr"),n(8,"mat-checkbox",25),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.leagueFormData.friendRequest,i)||(d.leagueFormData.friendRequest=i),g(i)}),n(9,"b"),l(10,"Friend Request"),o()(),n(11,"p",24),m(12,vm,1,0)(13,ym,1,0),o(),m(14,Dm,5,0,"div"),o()}if(t&2){let e=c(2);r(2),w("ngModel",e.leagueFormData.volunteerCoach),r(6),w("ngModel",e.leagueFormData.friendRequest),r(4),p(e.isMYAS?12:13),r(2),p(e.leagueFormData.friendRequest?14:-1)}}function Em(t,s){if(t&1){let e=b();n(0,"div",15)(1,"div",18),l(2,"Step 3:"),v(3,"br"),n(4,"span",11),l(5,"Join to"),o()(),n(6,"div")(7,"mat-radio-group",19),D("ngModelChange",function(i){u(e);let d=c();return S(d.leagueFormData.joinOption,i)||(d.leagueFormData.joinOption=i),g(i)}),h("change",function(){u(e);let i=c();return g(i.onjoinOptionSelection())}),n(8,"mat-radio-button",20),l(9,"A certain team"),o(),n(10,"mat-radio-button",21),l(11,"Free Agent / Random Team Assignment"),o()(),m(12,Pm,15,4,"section",22),o()()}if(t&2){let e=c();r(7),w("ngModel",e.leagueFormData.joinOption),_("disabled",e.preFilledForm),r(5),p(e.showVolunteer?12:-1)}}function Im(t,s){if(t&1&&(n(0,"mat-option",14),l(1),o()),t&2){let e=s.$implicit;_("value",e),r(),y(e.name)}}function km(t,s){if(t&1){let e=b();n(0,"div")(1,"mat-form-field",12)(2,"mat-label"),l(3,"Your Team"),o(),n(4,"mat-select",32),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.leagueFormData.team,i)||(d.leagueFormData.team=i),g(i)}),h("selectionChange",function(){u(e);let i=c(2);return i.setAmount(),g(i.onWaiverTargetChange())}),k(5,Im,2,2,"mat-option",14,A),o()(),n(7,"mat-form-field",12)(8,"mat-label"),l(9,"Team Roster Password"),o(),n(10,"input",33),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.leagueFormData.teamRosterPassword,i)||(d.leagueFormData.teamRosterPassword=i),g(i)}),o()()()}if(t&2){let e=c(2);r(4),w("ngModel",e.leagueFormData.team),_("disabled",e.preFilledForm),r(),T(e.leagueFormData.event==null?null:e.leagueFormData.event.teams),r(5),w("ngModel",e.leagueFormData.teamRosterPassword),_("disabled",e.preFilledForm)}}function Tm(t,s){if(t&1&&(n(0,"mat-option",35),l(1),o()),t&2){let e=s.$implicit;_("value",e)("disabled",e.disabled),r(),_e("",e.name,"",e.disabled?" - Entry Closed":"")}}
1function Om(t,s){if(t&1){let e=b();n(0,"mat-form-field",12)(1,"mat-label"),l(2,"Your Division"),o(),n(3,"mat-select",34),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.leagueFormData.division,i)||(d.leagueFormData.division=i),g(i)}),h("selectionChange",function(){u(e);let i=c(2);return i.setAmount(),g(i.onWaiverTargetChange())}),k(4,Tm,2,4,"mat-option",35,A),o()()}if(t&2){let e=c(2);r(3),w("ngModel",e.leagueFormData.division),r(),T(e.leagueFormData.event.divisions)}}function Vm(t,s){if(t&1&&(n(0,"div",9)(1,"div",10),l(2,"Step 4:"),v(3,"br"),n(4,"span",11),l(5),o()(),m(6,km,11,4,"div"),m(7,Om,6,1,"mat-form-field",12),o()),t&2){let e=c();r(5),y(e.leagueFormData.joinOption=="team"?"Pick a team":"Pick an event division"),r(),p(e.leagueFormData.joinOption=="team"?6:-1),r(),p(e.leagueFormData.joinOption=="division"?7:-1)}}function Fm(t,s){if(t&1){let e=b();n(0,"button",47),h("click",function(){u(e);let i=c(3);return g(i.applyCouponCode())}),l(1,"Apply"),o()}}function Rm(t,s){if(t&1){let e=b();n(0,"button",48),h("click",function(){u(e);let i=c(3);return g(i.removeCouponCode())}),l(1,"Remove"),o()}}function Am(t,s){if(t&1&&(n(0,"div",46)(1,"div",36)(2,"span",49),l(3," local_offer "),o(),n(4,"span"),l(5),o()()()),t&2){let e=c(3);r(5),E("Discount: -$",e.couponData.discountAmount)}}function Lm(t,s){if(t&1){let e=b();F(0),n(1,"div",40),l(2,"Coupon Code"),o(),n(3,"div",41)(4,"mat-form-field",42)(5,"mat-label"),l(6),o(),n(7,"input",43),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.leagueFormData.couponCode,i)||(d.leagueFormData.couponCode=i),g(i)}),o()(),m(8,Fm,2,0,"button",44),m(9,Rm,2,0,"button",45),o(),m(10,Am,6,1,"div",46),v(11,"hr"),R()}if(t&2){let e=c(2);r(6),y(e.leagueFormData.couponUsed?"Coupon Discount Applied":"Coupon Code"),r(),w("ngModel",e.leagueFormData.couponCode),_("placeholder",e.leagueFormData.couponUsed?"Coupon discount applied":"Enter your coupon code")("disabled",e.leagueFormData.couponUsed),r(),p(e.leagueFormData.couponID==null&&!e.leagueFormData.couponUsed?8:-1),r(),p(e.leagueFormData.couponID?9:-1),r(),p(e.leagueFormData.couponID?10:-1)}}function Nm(t,s){if(t&1){let e=b();n(0,"div",16)(1,"div",10),l(2,"Step 5:"),v(3,"br"),n(4,"span",11),l(5,"Waiver & Payment"),o()(),n(6,"div",12)(7,"div"),m(8,Lm,12,7,"ng-container"),o(),n(9,"div",36)(10,"mat-checkbox",37),D("ngModelChange",function(i){u(e);let d=c();return S(d.leagueFormData.iAgree,i)||(d.leagueFormData.iAgree=i),g(i)}),l(11,"I accept "),o(),n(12,"agreement-button",38),h("agreementAccepted",function(i){u(e);let d=c();return g(d.onAgreementAccepted(i))}),o()(),n(13,"tinc-stripe",39),h("paymentCallBack",function(i){u(e);let d=c();return g(d.join(i))}),o()()()}if(t&2){let e=c();r(8),p(e.leagueFormData.amount>0?8:-1),r(2),w("ngModel",e.leagueFormData.iAgree),r(2),_("file",e.myasWaiverNeeded?"myasWaiver":"genericPlayerWaiver")("label",(e.myasWaiverNeeded?"MYAS ":"")+"Waiver Statement")("record",Le(18,Cm,Le(11,gm,e.playerID,e.playerName),qn(14,fm,(e.leagueFormData.event==null?null:e.leagueFormData.event._key)??null,(e.leagueFormData.division==null?null:e.leagueFormData.division._key)??null,(e.leagueFormData.team==null?null:e.leagueFormData.team._key)??null))),r(),_("fullView",!0)("amount",e.leagueFormData.amount*100)("cards",e.cards)("buttonDisabled",!e._leagueForm.valid&&!e.preFilledForm||e.leagueFormData.iAgree!=!0||e.waiverKey==null)("loading",e.loading)("btnText",(e.leagueFormData.amount>0?"Pay $"+e.leagueFormData.amount+" & ":"")+"Join to League")}}var vn=(()=>{class t{dialogRef;dialog;data;notify;_membership;ngxService;api;_fuseConfigService;breakpointObserver;confetti;isMobile=!1;loading;sport;league;leagueFee=100;division;joinOption;team;playerID;leagueSports=[];leagueFormData={};cards=[];playerName;fuseConfig;myasWaiverNeeded=P.myasWaiverNeeded;friendRequests=[{name:null}];_unsubscribeAll;entryCelebrated=!1;isMYAS=P.siteName=="myas";_leagueForm;constructor(e,a,i,d,f,C,L,z,Z,de){this.dialogRef=e,this.dialog=a,this.data=i,this.notify=d,this._membership=f,this.ngxService=C,this.api=L,this._fuseConfigService=z,this.breakpointObserver=Z,this.confetti=de,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(xt=>{this.isMobile=!!xt.matches}),this.playerID=i.playerID,this.playerName=i.playerName}preFilledForm=!1;divisionID4Coupon=null;ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.isMobile=this._membership.isMobileDevice,this.ngxService.startLoader("loader-joinLeague"),this.api.get("Family/joinLeagueData"+(this.data.teamID!=null&&this.data.leagueID!=null?`/${this.data.teamID}/${this.data.leagueID}`:""),!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.ngxService.stopLoader("loader-joinLeague"),this.leagueSports=e.sports,this.data.teamID!=null&&this.data.leagueID!=null&&(this.preFilledForm=!0,this.leagueFormData.sport=e.sports[0],this.leagueFormData.event=e.sports[0].events[0],this.leagueFormData.joinOption="team",this.divisionID4Coupon=e.sports[0].events[0].divisions[0]._key,this.leagueFormData.team=e.sports[0].events[0].teams[0],this.leagueFormData.teamRosterPassword=e.sports[0].events[0].teams[0].rosterPassword,this.leagueFormData.iAgree=!1,this.setAmount()),this.cards=e.cards},error:e=>{this.ngxService.stopLoader("loader-joinLeague"),this.notify.openAlertModal(e.error?e.error:"An error has occured",se.ERROR)}})}join(e){this.loading=!0;var a={eventID:this.leagueFormData.event._key,playerID:this.data.playerID,teamID:this.leagueFormData.team?._key,teamRosterPassword:this.leagueFormData.teamRosterPassword,divisionID:this.leagueFormData.division?._key,volunteerCoach:this.leagueFormData.volunteerCoach,cardID:e,couponID:this.leagueFormData.couponID,amount:this.leagueFormData.amount,friends:this.leagueFormData.friendRequest?this.friendRequests.filter(d=>d.name!=null).map(d=>d.name):null};let i=a.teamID==null&&a.divisionID!=null;this.api.post("Family/joinLeague",a,!0).pipe(M(this._unsubscribeAll)).subscribe({next:d=>{this.notify.openToaster("Succesfully joined to the league","success"),this.loading=!1,i&&!this.entryCelebrated&&(this.entryCelebrated=!0,this.confetti.cannon()),this.dialogRef.close(!0)},error:d=>{this.loading=!1,this.notify.openAlertModal(d.error?d.error:"An error has occured",se.ERROR)}})}closeDialog(){this.dialogRef.close()}waiverKey=null;waiverSignedFor=null;waiverTarget(){let e=this.leagueFormData;return[this.playerID,e.event?._key,e.division?._key,e.team?._key].join("|")}
1onAgreementAccepted(e){e.accepted&&(this.waiverKey=e.waiverKey,this.waiverSignedFor=this.waiverTarget(),this.leagueFormData.iAgree=!0)}onWaiverTargetChange(){this.waiverKey==null||this.waiverTarget()===this.waiverSignedFor||(this.waiverKey=null,this.waiverSignedFor=null,this.leagueFormData.iAgree=!1)}showVolunteer=!1;onjoinOptionSelection(){setTimeout(()=>{this.showVolunteer=this.leagueFormData.joinOption=="division"},50)}addFriend(){this.friendRequests.push({name:null})}removeFriend(e){this.friendRequests.splice(e,1)}couponData={};applyCouponCode(){this.ngxService.startLoader("loader-indvEntry"),this.api.post("Team/applyCouponCode",{code:this.leagueFormData.couponCode,divisionID:this.divisionID4Coupon??this.leagueFormData.division._key,amount:this.leagueFormData.amount},!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{e._key!=null&&(this.couponData=e,this.leagueFormData.couponID=e._key,this.couponData.discountAmount=this.round2Cents(e.discountType=="%"?this.leagueFormData.amount*(e.discount/100):e.discount),this.notify.openSnackBar("Coupon code applied, and the entry price is updated"),this.setAmount()),this.ngxService.stopLoader("loader-indvEntry")},error:e=>{this.ngxService.stopLoader("loader-indvEntry"),this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}removeCouponCode(){this.leagueFormData.couponID=null,this.leagueFormData.couponCode=null,this.couponData={},this.setAmount()}setAmount(){this.leagueFormData.team?.prePaid==!0?this.leagueFormData.amount=0:(this.leagueFormData.amount=this.leagueFormData.joinOption=="team"?this.leagueFormData.team.amount:this.leagueFormData.division.amount,this.leagueFormData.couponID!=null&&(this.leagueFormData.amount-=this.couponData.discountAmount))}round2Cents(e){return Math.round(e*100)/100}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(ge),x($),x(pe),x(G),x(De),x(ue),x(U),x(re),x(ee),x(ln))};static \u0275cmp=j({type:t,selectors:[["joinLeague-check"]],viewQuery:function(a,i){if(a&1&&N(um,5),a&2){let d;W(d=B())&&(i._leagueForm=d.first)}},decls:27,vars:8,consts:[["leagueForm","ngForm"],["id","joinLeague","fusePerfectScrollbar","",1,"joinLeague","page-layout","simple","fullwidth",2,"display","flex","flex-direction","column","position","relative"],["loaderId","loader-joinLeague"],[1,"pl-8",2,"display","flex","flex-direction","row","justify-content","space-between","align-items","center","height","45px",3,"ngClass"],[1,"w-100-p"],[1,"text-right"],["mat-icon-button","",3,"click"],[1,"close-icon"],["name","leagueForm"],[1,"step-section",2,"display","flex","flex-direction","row","justify-content","flex-start","align-items","center","gap","10px"],[1,"text-bold","w-30-p"],[1,"secondary-text"],[1,"w-75-p"],["name","sport","required","",3,"ngModelChange","ngModel","disabled"],[3,"value"],[1,"step-section",2,"display","flex","gap","10px","place-content","flex-start","align-items","flex-start","flex-direction","row"],[1,"step-section",2,"display","flex","flex-direction","row","justify-content","flex-start","align-items","flex-start","gap","10px"],["name","event","required","",3,"ngModelChange","selectionChange","ngModel","disabled"],[1,"text-bold","w-35-p"],["name","joinOption","required","",3,"ngModelChange","change","ngModel","disabled"],["value","team"],["value","division"],[2,"max-width","400px"],["name","volunteerCoach",3,"ngModelChange","ngModel"],[1,"my-0"],["name","friendRequest",3,"ngModelChange","ngModel"],["appearance","outline",2,"margin-top","-12px"],[1,"primary-fg",2,"display","block",3,"click"],["matInput","","type","text","required","","maxlength","20",3,"ngModelChange","name","ngModel"],["matSuffix","",1,"red-fg"],[1,"red-fg"],["matSuffix","",1,"red-fg",3,"click"],["name","team","required","",3,"ngModelChange","selectionChange","ngModel","disabled"],["matInput","","name","teamRosterPassword","placeholder","Roster Password","required","",3,"ngModelChange","ngModel","disabled"],["name","division","required","",3,"ngModelChange","selectionChange","ngModel"],[3,"value","disabled"],[1,"flex-start-center"],["required","","name","iAgree",3,"ngModelChange","ngModel"],[3,"agreementAccepted","file","label","record"],["description","
1League Registration Fee",1,"py-12",3,"paymentCallBack","fullView","amount","cards","buttonDisabled","loading","btnText"],[1,"pl-8","py-8","grey-300"],[1,"mt-12"],["appearance","fill",1,"w-45-p"],["matInput","","name","couponCode",3,"ngModelChange","ngModel","placeholder","disabled"],["mat-raised-button","","color","primary",1,"ml-8"],["mat-raised-button","",1,"red-100","ml-8"],[1,"bold","blue-fg"],["mat-raised-button","","color","primary",1,"ml-8",3,"click"],["mat-raised-button","",1,"red-100","ml-8",3,"click"],[1,"material-icons","pl-8"]],template:function(a,i){if(a&1){let d=b();n(0,"div",1),v(1,"ngx-ui-loader",2),n(2,"div",3)(3,"div",4),l(4),o(),n(5,"div",5)(6,"button",6),h("click",function(){return u(d),g(i.closeDialog())}),n(7,"mat-icon",7),l(8,"close"),o()()()(),n(9,"form",8,0)(11,"div",9)(12,"div",10),l(13,"Step 1:"),v(14,"br"),n(15,"span",11),l(16,"Pick a sport"),o()(),n(17,"mat-form-field",12)(18,"mat-label"),l(19,"Sport"),o(),n(20,"mat-select",13),D("ngModelChange",function(C){return u(d),S(i.leagueFormData.sport,C)||(i.leagueFormData.sport=C),g(C)}),k(21,hm,2,2,"mat-option",14,A),o()()(),m(23,bm,12,2,"div",9),m(24,Em,13,3,"div",15),m(25,Vm,8,3,"div",9),m(26,Nm,14,21,"div",16),o()()}a&2&&(r(2),_("ngClass",i.fuseConfig.layout.pageheader.primaryBackground),r(2),E("Join a League - ",i.playerName),r(16),w("ngModel",i.leagueFormData.sport),_("disabled",i.preFilledForm),r(),T(i.leagueSports),r(2),p(i.leagueFormData!=null&&i.leagueFormData.sport?23:-1),r(),p(i.leagueFormData.event?24:-1),r(),p(i.leagueFormData.joinOption?25:-1),r(),p(i.leagueFormData.joinOption=="team"&&i.leagueFormData.team||i.leagueFormData.joinOption=="division"&&i.leagueFormData.division?26:-1))},dependencies:[K,ie,X,ke,ce,ne,ve,Te,to,me,Qe,he,Ce,J,ae,Me,Y,te,oe,Ve,Se,we,ot,St,kt,It,Pt,Mo,vo,yo,Gt,Tt,We,Ne,Fe,Be,jt],styles:["#joinLeague[_ngcontent-%COMP%]{min-height:500px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:fit-content}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin:0!important}.mat-stepper-vertical[_ngcontent-%COMP%]{margin-top:8px}.step-section[_ngcontent-%COMP%]{border-top:2px solid #888;padding-top:10px;margin-top:10px}"]})}return t})();function Wm(t,s){t&1&&(n(0,"mat-hint",10),l(1,"Full Name is "),n(2,"strong"),l(3,"required"),o()())}function Bm(t,s){t&1&&(n(0,"mat-hint",10),l(1,"Email is "),n(2,"strong"),l(3,"required"),o()())}function jm(t,s){t&1&&(n(0,"mat-error",10),l(1," Email is "),n(2,"strong"),l(3,"required"),o()())}function zm(t,s){t&1&&(n(0,"mat-error",10),l(1," Please enter a valid email address "),o())}function qm(t,s){t&1&&(n(0,"mat-error",10)(1,"strong"),l(2," Invalid email address"),o()())}var Ta=(()=>{class t{formBuilder;_membership;api;_fuseConfigService;notify;dialog;breakpointObserver;inviteGuardianForm;isMobile;fuseConfig;dialogData;relations=["Parent","Granparent","Family","Other"];_unsubscribeAll;constructor(e,a,i,d,f,C,L,z){this.formBuilder=e,this._membership=a,this.api=i,this._fuseConfigService=d,this.notify=f,this.dialog=C,this.breakpointObserver=L,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(Z=>{this.isMobile=!!Z.matches}),this.dialogData=z}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.createForm()}createForm(){this.inviteGuardianForm=new ki({fullName:new Vt("",yt.required),email:new Vt("",yt.compose([yt.required,yt.pattern("^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}$")])),readOnly:new Vt("")}),this.inviteGuardianForm.markAllAsTouched()}loading=!1;selfGuardianMessage="You cannot add yourself as a guardian for your own child. Enter someone else's email address instead.";invite(){if(this.inviteGuardianForm.valid){let e=(this.inviteGuardianForm.value.email||"").trim().toLowerCase(),a=(this._membership.currentUser?.email||"").trim().toLowerCase();if(e&&a&&e===a){this.notify.openWarningModal(this.selfGuardianMessage);return}this.loading=!0,this.api.post("Family/inviteGuardian/"+this.dialogData.id,this.inviteGuardianForm.value,!0).pipe(M(this._unsubscribeAll)).subscribe({next:i=>{this.loading=!1,this.notify.openToaster("Invitation sent successfully","success"),this.dialog.close(!0)},error:i=>{this.loading=!1;let d=i.error?i.error:"An error has occured";
1if(typeof d=="string"&&d===this.selfGuardianMessage){this.notify.openWarningModal(d);return}this.notify.openErrorModal(d)}})}}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(Bt),x(De),x(U),x(re),x(G),x(ge),x(ee),x(pe))};static \u0275cmp=j({type:t,selectors:[["invite-guardian"]],decls:37,vars:9,consts:[["id","inviteGuardian","fusePerfectScrollbar","",1,"mb-52","page-layout","simple","fullwidth",2,"display","flex","flex-direction","column"],[1,"pl-8",2,"display","flex","flex-direction","row","justify-content","space-between","align-items","center",3,"ngClass"],[1,"w-100-p",3,"ngClass"],[1,"text-right"],["mat-icon-button","",3,"mat-dialog-close"],[1,"close-icon"],["mat-dialog-content","",1,"mt-20"],["name","inviteGuardianForm","novalidate","","fxLayout","column","fxLayoutAlign","space-between center","fxLayoutGap","5px",3,"formGroup"],[1,"w-100-p"],["matInput","","formControlName","fullName","required",""],[1,"red-fg","font-size-12"],["matInput","","formControlName","email","required",""],[1,"w-100-p","mt-12"],["formControlName","readOnly"],["color","primary","mat-raised-button","",1,"mt-20",3,"click","disabled"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2),l(3,"Invite New Guardian"),o(),n(4,"div",3)(5,"button",4)(6,"mat-icon",5),l(7,"close"),o()()()(),n(8,"div",6)(9,"form",7)(10,"mat-form-field",8)(11,"mat-label"),l(12,"Full Name"),o(),v(13,"input",9),m(14,Wm,4,0,"mat-hint",10),n(15,"mat-error",10),l(16,"Full Name is "),n(17,"strong"),l(18,"required"),o()()(),n(19,"mat-form-field",8)(20,"mat-label"),l(21,"Email"),o(),v(22,"input",11),m(23,Bm,4,0,"mat-hint",10),m(24,jm,4,0,"mat-error",10),m(25,zm,2,0,"mat-error",10),m(26,qm,3,0,"mat-error",10),o(),n(27,"div",12)(28,"mat-checkbox",13),l(29," Restricted Access "),o()(),n(30,"mat-hint",10)(31,"strong"),l(32,"The person you are inviting cannot make any changes."),v(33,"br"),l(34,"i.e: Accepting roster invites, joining individual events, etc."),o()(),n(35,"button",14),h("click",function(){return i.invite()}),l(36," Invite "),o()()()()),a&2&&(r(),_("ngClass",i.fuseConfig.layout.pageheader.primaryBackground),r(),_("ngClass",i.isMobile?"font-size-16":"font-size-20"),r(7),_("formGroup",i.inviteGuardianForm),r(5),p(i.inviteGuardianForm.get("fullName").value?-1:14),r(9),p(i.inviteGuardianForm.get("email").value?-1:23),r(),p(i.inviteGuardianForm.get("email").hasError("required")?24:-1),r(),p(i.inviteGuardianForm.get("email").hasError("email")?25:-1),r(),p(i.inviteGuardianForm.get("email").hasError("pattern")?26:-1),r(9),_("disabled",i.inviteGuardianForm.invalid||i.loading))},dependencies:[K,ie,J,ae,Me,Y,te,oe,Ke,ye,Ve,Se,we,ot,Vi,Fe,Be,X,ke,ce,ne,ve,Te,Oe,ti,ii,We,Ne],encapsulation:2})}return t})();var Um=t=>({"text-truncate":t});function Gm(t,s){t&1&&(n(0,"th",27),l(1,"No."),o())}function Hm(t,s){if(t&1&&(n(0,"td",28),l(1),o()),t&2){let e=s.index;r(),E(" ",e+1)}}function $m(t,s){t&1&&(n(0,"th",29),l(1," Name "),o())}function Jm(t,s){t&1&&(n(0,"span",31),l(1,"(Pending)"),o())}function Ym(t,s){if(t&1&&(n(0,"td",30),l(1),m(2,Jm,2,0,"span",31),o()),t&2){let e=s.$implicit,a=c();_("ngClass",V(3,Um,a.isMobile)),r(),E(" ",e.fullName," "),r(),p(e.type=="invite"?2:-1)}}function Qm(t,s){t&1&&(n(0,"th",32),l(1," Email "),o())}function Km(t,s){if(t&1&&(n(0,"td",33)(1,"a",34),l(2),o()()),t&2){let e=s.$implicit;r(),_("href",be("mailto:",e.email),Ie),r(),y(e.email)}}function Xm(t,s){t&1&&(n(0,"th",29),l(1," Invite "),o())}function Zm(t,s){if(t&1&&(n(0,"td",35),l(1),o()),t&2){let e=s.$implicit;r(),E(" ",e.type=="invite"?"Pending":"Accepted"," ")}}function ep(t,s){t&1&&(n(0,"th",29),l(1," Access "),o())}function tp(t,s){if(t&1&&(n(0,"td",35),l(1),o()),t&2){let e=s.$implicit;r(),E(" ",e.readOnly?"Restricted":"Full"," ")}}function ip(t,s){t&1&&(n(0,"th",36),l(1,"Action"),o())}function np(t,s){if(t&1){let e=b();n(0,"td",37)(1,"button",38),h("click",function(){let i=u(e).$implicit,d=c();return g(d.removeGuardian(i))}),n(2,"mat-icon",31),l(3,"delete"),o()()()}}function op(t,s){t&1&&v(0,"tr",39)}function ap(t,s){t&1&&v(0,"tr",40)}function rp(t,s){t&1&&(n(0,"tr",41)(1,"td",42),l(2,"No parent/guardian assigned"),o()())}var Oa=(()=>{class t{api;cdr;dialog;ngxLoader;notify;_fuseConfigService;breakpointObserver;dialogRef;fuseConfig;dialogData;local_data;isMobile=!1;loading;data=null;searchInput;pageSize;columns2Display=["position","name","email","inviteStatus","readOnlyStatus","action"];confirmDialogRef;dataSource;paginator;sort;_unsubscribeAll;constructor(e,a,i,d,f,C,L,z,Z){this.api=e,this.cdr=a,this.dialog=i,this.ngxLoader=d,this.notify=f,this._fuseConfigService=C,this.breakpointObserver=L,this.dialogRef=Z,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(de=>{this.isMobile=!!de.matches}),this.dataSource=new fe,this.dialogRef=Z,this.dialogData=z}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.pageSize=this.isMobile?5:10,this.getGuardians()}getGuardians(){this.ngxLoader.startLoader("loader-guardian"),this.api.get("Family/guardianList/"+this.dialogData.personId,!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.data=e,this.dataSource=new fe(e),setTimeout(()=>{this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort},250),this.ngxLoader.stopLoader("loader-guardian")},error:e=>{this.notify.openErrorModal(e.error?e.error:"An error has occured"),this.ngxLoader.stopLoader("loader-guardian")}})}removeGuardian(e){this.confirmDialogRef=this.dialog.open(Dt,{disableClose:!1}),this.confirmDialogRef.componentInstance.confirmMessage="Are you sure?",this.confirmDialogRef.afterClosed().subscribe(a=>{a&&this.api.delete(`Family/deleteGuardian/${e.type}/${e.recordID}`,!0).pipe(M(this._unsubscribeAll)).subscribe({next:i=>{this.notify.openToaster("Guardian has been deleted","success"),this.ngOnInit()},error:i=>{this.notify.openErrorModal(i.error?i.error:"An error has occured")}})})}inviteGuardian(){let e=this.isMobile?"100%":"%50";this.dialog.open(Ta,{panelClass:"p12-dialog-container",width:e,maxWidth:e,height:"auto",maxHeight:"90vh",data:{id:this.dialogData.personId}}).afterClosed().subscribe(i=>{i&&this.getGuardians()})}trackEventType(e,a){return a._key}applyFilter(){this.dataSource.filter=this.searchInput?.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}clearFilter(){this.searchInput="",this.applyFilter()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(U),x(Ye),x($),x(ue),x(G),x(re),x(ee),x(pe),x(ge))};static \u0275cmp=j({type:t,selectors:[["guardian"]],viewQuery:function(a,i){if(a&1&&(N(Re,5),N(ht,5)),a&2){let d;W(d=B())&&(i.paginator=d.first),W(d=B())&&(i.sort=d.first)}},decls:40,vars:5,consts:[[1,"dialog-content-wrapper"],["fxLayout","row","fxLayoutAlign","space-between center",1,"pl-8","grey-300","h44"],[1,"w-100-p","my-4","pl-4"],["mat-raised-button","",1,"btn-narrow","mr-4",3,"click"],[1,"text-right"],["mat-icon-button","",1,"",3,"click"],[1,"close-icon"],[1,"example-container"],["recycleRows","","mat-table","","matTableResponsive","",1,"w-100-p","my-12","table-bordered","table-striped",3,"dataSource","trackBy"],["matColumnDef","position"],["mat-header-cell","","class","center px-4",4,"matHeaderCellDef"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","class","pl-8",4,"matHeaderCellDef"],["mat-cell","","class","pl-8 nowrap text-capitalize",3,"ngClass",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","","class","center pl-8",4,"matHeaderCellDef"],["mat-cell","","class","center pl-8",4,"matCellDef"],["matColumnDef","inviteStatus"],["mat-cell","","class","pl-8",4,"matCellDef"],["matColumnDef","readOnlyStatus"],["matColumnDef","action"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","px-4 center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell","",1,"center","px-4"],["mat-cell","",1,"center"],["mat-header-cell","",1,"pl-8"],["mat-cell","",1,"pl-8","nowrap","text-capitalize",3,"ngClass"],[1,"red-fg"],["mat-header-cell","",1,"center","pl-8"],["mat-cell","",1,"center","pl-8"],[3,"href"],["mat-cell","",1,"pl-8"],["mat-header-cell","",1,"center"],["mat-cell","",1,"px-4","center"],["mat-icon-button","","matTooltip","Remove Guardian","matTooltipPosition","above",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],["colspan","10",1,"mat-cell"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div")(2,"div",1)(3,"div",2),l(4),o(),n(5,"div")(6,"button",3),h("click",function(){return i.inviteGuardian()}),l(7,"Invite Guardian"),o()(),n(8,"div",4)(9,"button",5),h("click",function(){return i.dialogRef.close()}),n(10,"mat-icon",6),l(11,"close"),o()()()()(),n(12,"div")(13,"p"),l(14,"You can invite people (your spouse, grandparents and other family members) to manage a child's profile."),o(),n(15,"p"),l(16,'You can choose "Restricted Access" to limit their access, in that case they would only receive the communications and mobile app notifications.'),o(),n(17,"div",7)(18,"table",8),F(19,9),I(20,Gm,2,0,"th",10)(21,Hm,2,1,"td",11),R(),F(22,12),I(23,$m,2,0,"th",13)(24,Ym,3,5,"td",14),R(),F(25,15),I(26,Qm,2,0,"th",16)(27,Km,3,3,"td",17),R(),F(28,18),I(29,Xm,2,0,"th",13)(30,Zm,2,1,"td",19),R(),F(31,20),I(32,ep,2,0,"th",13)(33,tp,2,1,"td",19),R(),F(34,21),I(35,ip,2,0,"th",22)(36,np,4,0,"td",23),R(),I(37,op,1,0,"tr",24)(38,ap,1,0,"tr",25)(39,rp,3,0,"tr",26),o()()()()),a&2&&(r(4),E("Guardian(s) for ",i.dialogData==null?null:i.dialogData.name),r(14),_("dataSource",i.dataSource)("trackBy",i.trackEventType),r(19),_("matHeaderRowDef",i.columns2Display),r(),_("matRowDefColumns",i.columns2Display))},dependencies:[K,ie,Y,te,Ct,qe,rt,st,pt,dt,lt,_t,ct,mt,ut,gt,ft,_i,J,ae,Me],styles:["th.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, td.mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:10px!important}"]})}return t})();var lp=t=>({"amber-fg":t});function sp(t,s){if(t&1){let e=b();n(0,"mat-panel-description")(1,"button",13),h("click",function(i){u(e);let d=c().$implicit,f=c();return g(f.saveAll4person(d,i))}),l(2),n(3,"span",14),l(4,"backup"),o()()()}if(t&2){let e=c().$implicit;r(2),E(" Save All for ",e.firstName," ")}}function dp(t,s){if(t&1&&(n(0,"small",15),l(1),Q(2,"date"),Q(3,"date"),o()),t&2){let e=c().$implicit;r(),_e("between ",le(2,2,e==null?null:e.start,"h:mma")," - ",le(3,5,e==null?null:e.end,"h:mma"))}}function cp(t,s){t&1&&(n(0,"small",15),l(1,"TBD"),o())}function mp(t,s){if(t&1){let e=b();n(0,"mat-card",12)(1,"mat-card-header")(2,"mat-card-title"),l(3),o(),n(4,"mat-card-subtitle"),l(5),Q(6,"date"),m(7,dp,4,8,"small",15),m(8,cp,2,0,"small",15),o()(),n(9,"mat-card-content")(10,"div",16)(11,"mat-button-toggle-group",17),D("ngModelChange",function(i){let d=u(e).$implicit;return S(d.rsvp.status,i)||(d.rsvp.status=i),g(i)}),n(12,"mat-button-toggle",18),l(13,"Yes"),o(),n(14,"mat-button-toggle",18),l(15,"Maybe"),o(),n(16,"mat-button-toggle",18),l(17,"No"),o()(),n(18,"mat-form-field",19)(19,"mat-label"),l(20,"Notes"),o(),n(21,"textarea",20,0),D("ngModelChange",function(i){let d=u(e).$implicit;return S(d.rsvp.notes,i)||(d.rsvp.notes=i),g(i)}),o()(),n(23,"button",21),h("click",function(){let i=u(e).$implicit,d=c().$implicit,f=c();return g(f.saveRSVPResponse(d._key,i))}),l(24,"Save"),o()()()()}if(t&2){let e=s.$implicit;r(3),y(e.title),r(2),E(" ",le(6,16,e.start,"MMM d, yyyy")," "),r(2),p((e==null?null:e.timeTBD)!=!0?7:-1),r(),p((e==null?null:e.timeTBD)==!0?8:-1),r(3),w("ngModel",e.rsvp.status),r(),nt(e.rsvp.status==1?"green-600 bold":""),_("value",1),r(2),nt(e.rsvp.status==2?"blue-600 bold":""),_("value",2),r(2),nt(e.rsvp.status==0?"red-600 bold":""),_("value",0),r(5),w("ngModel",e.rsvp.notes),r(2),_("disabled",e.rsvp.status==null)}}function pp(t,s){if(t&1){let e=b();n(0,"mat-expansion-panel",9),h("opened",function(){let i=u(e).$implicit,d=c();return g(d.onPanelExpand(i))})("closed",function(){let i=u(e).$implicit,d=c();return g(d.onPanelClose(i))}),n(1,"mat-expansion-panel-header")(2,"mat-panel-title",10),l(3),o(),m(4,sp,5,1,"mat-panel-description"),o(),n(5,"div",11),k(6,mp,25,19,"mat-card",12,A),o()()}if(t&2){let e=s.$implicit,a=c();_("expanded",(e==null||e.rsvpActivities==null?null:e.rsvpActivities.length)>0),r(2),_("ngClass",V(4,lp,e.hasPendingRSVP)),r(),E(" ",e.name),r(),p(a.isMobile?-1:4),r(2),T(e.rsvpActivities)}}var Va=(()=>{class t{data;breakpointObserver;api;notify;ngxLoader;_rsvpdata;isMobile=!1;loading=!1;_unsubscribeAll;accordion;constructor(e,a,i,d,f){this.data=e,this.breakpointObserver=a,this.api=i,this.notify=d,this.ngxLoader=f,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(C=>{this.isMobile=!!C.matches}),this._rsvpdata=e}ngOnInit(){this.ngxLoader.startLoader("getRSVPDATA"),this.api.get("TeamActivity/rsvp4Family/"+this._rsvpdata.personID,!0).subscribe({next:e=>{this.ngxLoader.stopLoader("getRSVPDATA"),this._rsvpdata=Mn(Mn({},this._rsvpdata),e)},error:e=>{this.ngxLoader.stopLoader("getRSVPDATA"),this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}onPanelExpand(e){e.rsvpActivities==null&&(this.ngxLoader.startLoader("getRSVPData4Person"),this.api.get("TeamActivity/getRSVPData4Person/"+e._key,!0).subscribe({next:a=>{e.rsvpActivities=a,this.ngxLoader.stopLoader("getRSVPData4Person")},error:a=>{this.ngxLoader.stopLoader("getRSVPData4Person"),this.notify.openErrorModal(a.error?a.error:"An error has occured")}}))}onPanelClose(e){e.rsvpActivities=null}saveRSVPResponse(e,a){this.loading=!0,this.api.put("TeamActivity/saveRSVPResponse",{activityID:"teamActivity/"+
1a._key,personID:e,status:a.rsvp.status,notes:a.rsvp.notes},!0).subscribe({next:i=>{this.loading=!1,this.notify.openToaster("RSVP Response Saved","success")},error:i=>{this.loading=!1,this.notify.openErrorModal(i.error?i.error:"An error has occured")}})}saveAll4person(e,a){a.stopPropagation(),this.loading=!0;let i=e.rsvpActivities.filter(d=>d.rsvp?.status!=null).map(d=>({activityID:d._key,status:d.rsvp.status,notes:d.rsvp.notes}));this.api.put("TeamActivity/saveRSVPResponses/"+e._key,i,!0).subscribe({next:d=>{this.loading=!1,this.notify.openToaster("RSVP Response Saved","success")},error:d=>{this.loading=!1,this.notify.openErrorModal(d.error?d.error:"An error has occured")}})}static \u0275fac=function(a){return new(a||t)(x(pe),x(ee),x(U),x(G),x(ue))};static \u0275cmp=j({type:t,selectors:[["rsvp4Family"]],viewQuery:function(a,i){if(a&1&&N(zt,5),a&2){let d;W(d=B())&&(i.accordion=d.first)}},decls:12,vars:4,consts:[["autosize","cdkTextareaAutosize"],[3,"loaderId","fgsSize"],[1,"px-8","py-12","grey-300",2,"display","flex","justify-content","space-between","align-items","center"],[1,"p-4",2,"display","flex","flex-direction","column"],[1,"bold","h2"],[1,"material-icons","link",3,"mat-dialog-close"],[1,"mat-typography","pt-12"],[1,"rsvpAccordion"],[3,"expanded"],[3,"opened","closed","expanded"],[1,"bold","h2",3,"ngClass"],[2,"display","flex","flex-direction","row","flex-wrap","wrap","gap","25px","justify-content","space-around"],[1,"mat-elevation-z2","card-responsive"],["mat-button","",1,"primary","btn-boxed",3,"click"],[1,"material-icons","mx-4"],[1,"text-capitalize"],[1,"rsvpContentWrapper"],["name","rsvp","aria-label","activity rsvp",3,"ngModelChange","ngModel"],[2,"min-width","60px",3,"value"],["appearance","outline",1,"mt-12"],["matInput","","name","note","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","3",3,"ngModelChange","ngModel"],["mat-button","",1,"btn-boxed","primary",3,"click","disabled"]],template:function(a,i){a&1&&(v(0,"ngx-ui-loader",1),n(1,"div",2)(2,"div",3)(3,"div",4),l(4,"RSVP for Family Members "),o()(),n(5,"span",5),l(6," close "),o()(),n(7,"mat-dialog-content",6)(8,"mat-accordion",7),v(9,"ngx-ui-loader",1),k(10,pp,8,6,"mat-expansion-panel",8,A),o()()),a&2&&(_("loaderId","getRSVPDATA")("fgsSize",75),r(9),_("loaderId","getRSVPData4Person")("fgsSize",75),r(),T(i._rsvpdata==null?null:i._rsvpdata.people))},dependencies:[oe,Ke,ye,J,ae,ze,je,at,di,qi,si,K,ie,zi,Bi,ji,X,ce,ne,me,Ve,Se,we,Fe,Be,oo,Et,_n,zt,cn,mn,pn,To,he,Ce,Y,Ue],styles:[".rsvpAccordion[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:flex-end;align-items:center;gap:15px}.rsvpContentWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:12px}@media screen and (max-width:959px){.rsvpContentWrapper[_ngcontent-%COMP%]{justify-content:center}}[_nghost-%COMP%] {--mat-form-field-subscript-text-line-height: 0 !important}[_nghost-%COMP%] .mat-mdc-form-field-bottom-align:before{height:0px!important}"]})}return t})();function gp(t,s){if(t&1){let e=b();n(0,"a",13)(1,"mat-icon"),l(2,"event_available"),o(),l(3," Subscribe on this iPhone/iPad/Mac "),o(),n(4,"p",14),l(5,"Tip: set Auto-Refresh to every 15 minutes"),o(),n(6,"button",15),h("click",function(){u(e);let i=c();return g(i.copyLink())}),n(7,"mat-icon"),l(8,"content_copy"),o(),l(9),o(),n(10,"p",14),l(11,"Copy the link to subscribe on another device."),o()}if(t&2){let e=c();_("href",e.webcalUrl,Ie),r(9),E(" ",e.copyBtnText," ")}}function fp(t,s){if(t&1){let e=b();n(0,"button",16),h("click",function(){u(e);let i=c();return g(i.resetLink())}),l(1,"Reset link"),o()}}var Fa=(()=>{class t{api;notify;ngxLoader;sanitizer;bottomSheet;dialog;feed;webcalUrl;copyBtnText="Copy link";confirmDialogRef;_unsubscribeAll;constructor(e,a,i,d,f,C){this.api=e,this.notify=a,this.ngxLoader=i,this.sanitizer=d,this.bottomSheet=f,this.dialog=C,this._unsubscribeAll=new q}ngOnInit(){this.ngxLoader.startLoader("getIcsToken"),this.api.get("TeamActivity/icsToken",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.ngxLoader.stopLoader("getIcsToken"),this.setFeed(e)},error:e=>{this.ngxLoader.stopLoader("getIcsToken"),this.notify.openErrorModal(e.error?e.error:"An error has occured")}})}setFeed(e){this.feed=e,this.webcalUrl=this.sanitizer.bypassSecurityTrustUrl(e.webcalUrl)}copyLink(){this.feed?.url&&navigator.clipboard?.writeText(this.feed.url).then(()=>{this.copyBtnText="Copied",setTimeout(()=>{this.copyBtnText="Copy link"},2e3)},()=>this.notify.openToaster("Could not copy the link","error"))}resetLink(){this.confirmDialogRef=this.dialog.open(Dt,{disableClose:!1}),this.confirmDialogRef.componentInstance.confirmMessage="Anyone with the old link will stop receiving updates.",this.confirmDialogRef.afterClosed().subscribe(e=>{e&&(this.ngxLoader.startLoader("getIcsToken"),this.api.post("TeamActivity/icsToken/rotate",{},!0).pipe(M(this._unsubscribeAll)).subscribe({next:a=>{this.ngxLoader.stopLoader("getIcsToken"),this.setFeed(a),this.notify.openToaster("The calendar link has been reset","success")},error:a=>{this.ngxLoader.stopLoader("getIcsToken"),this.notify.openErrorModal(a.error?a.error:"An error has occured")}}))})}openWhyBottomSheet(){this.bottomSheet.open(on,{panelClass:an,data:{title:"Why only Apple Calendar?",html:`<h1>Why only Apple Calendar?</h1> 2 <p>Apple Calendar can check for changes often, so new games, time changes, and cancellations can show up quickly.</p> 3 <ul> 4 <li><b>Apple Calendar</b> can check as often as every 5 minutes.</li> 5 <li><b>Google Calendar</b> and <b>Outlook</b> usually check much less often. Changes may not show up for 12 to 24 hours.</li> 6 </ul> 7 <p>Because schedules can change close to game time, we do not want to offer a calendar option that may show old information.</p>`}})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(U),x(G),x(ue),x(Ei),x(Fi),x($))};static \u0275cmp=j({type:t,selectors:[["calendar-sync"]],decls:23,vars:4,consts:[[1,"px-8","py-12","grey-300",2,"display","flex","justify-content","space-between","align-items","center"],[1,"w-100-p","font-size-16","bold"],[1,"material-icons","link",3,"mat-dialog-close"],[3,"loaderId","fgsSize"],[1,"calendar-sync"],[1,"calendar-sync__apple-badge"],["viewBox","0 0 24 24","width","15","height","15","aria-hidden","true",1,"calendar-sync__apple-logo"],["d","M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z","fill","currentColor"],[1,"bold"],[1,"calendar-sync__blurb"],["mat-button","",1,"calendar-sync__why",3,"click"],["align","center"],["mat-button","",1,"btn-boxed","btn-xs","calendar-sync__reset"],["mat-raised-button","",1,"btn-boxed","primary","calendar-sync__subscribe",3,"href"],[1,"calendar-sync__hint"],["mat-stroked-button","",1,"btn-boxed","calendar-sync__copy",3,"click"],["mat-button","",1,"btn-boxed","btn-xs","calendar-sync__reset",3,"click"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"span",1),l(2,"Sync to Calendar"),o(),n(3,"span",2),l(4," close "),o()(),n(5,"mat-dialog-content"),v(6,"ngx-ui-loader",3),n(7,"div",4)(8,"div",5),Je(),n(9,"svg",6),v(10,"path",7),o(),tt(),n(11,"span",8),l(12,"For Apple Calendar only"),o()(),n(13,"p",9),l(14,"Includes activities for you and your family members across all your Team+ teams."),o(),m(15,gp,12,2),n(16,"button",10),h("click",function(){return i.openWhyBottomSheet()}),n(17,"mat-icon"),l(18,"help_outline"),o(),n(19,"span",8),l(20,"Why isn't this available for Google or Outlook?"),o()()()(),n(21,"mat-dialog-actions",11),m(22,fp,2,0,"button",12),o()),a&2&&(r(6),_("loaderId","getIcsToken")("fgsSize",50),r(9),p(i.feed?15:-1),r(7),p(i.feed?22:-1))},dependencies:[K,oe,Ke,Oi,ye,J,ae,Y,te,he,Ce],styles:[".calendar-sync[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 4px;text-align:center;min-width:280px;min-height:160px;justify-content:center}.calendar-sync__apple-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:#f2f2f7;color:#1d1d1f;font-size:12px;font-weight:700}.calendar-sync__apple-logo[_ngcontent-%COMP%]{display:block}
7.calendar-sync__blurb[_ngcontent-%COMP%]{margin:0;color:#475569;font-size:14px}.calendar-sync__hint[_ngcontent-%COMP%]{margin:0;color:#64748b;font-size:12px}.calendar-sync__why[_ngcontent-%COMP%]{margin-top:4px;color:#1976d2;font-size:13px}.calendar-sync__reset[_ngcontent-%COMP%]{color:#64748b}"]})}return t})();var hp=t=>({"text-truncate":t}),xp=()=>["/pages/payments"],bp=(t,s)=>({"green-A700":t,"blue-grey":s}),Xt=t=>[t],Ra=t=>({amber:t}),vp=t=>({"grey-200":t}),Aa=(t,s)=>s.season;function yp(t,s){if(t&1&&(n(0,"div",19)(1,"a",32),v(2,"img",33),o()()),t&2){let e=c();r(2),_("src",be("assets/images/ADS/bsc-member-perks",e.isMobile?"-mobile":"",".webp"),Ie)}}function Mp(t,s){if(t&1&&(n(0,"div",19)(1,"a",34),v(2,"img",35),o()()),t&2){let e=c();r(2),_("src",be("assets/images/ADS/isc-member-perks",e.isMobile?"-mobile":"",".webp"),Ie)}}function wp(t,s){if(t&1){let e=b();n(0,"button",36),h("click",function(){u(e);let i=c();return g(i.openCalendarSync())}),n(1,"span",37),Je(),n(2,"svg",38),v(3,"rect",39)(4,"path",40),n(5,"text",41),l(6),o(),n(7,"text",42),l(8),o()(),tt(),n(9,"span",43),l(10),o()()()}if(t&2){let e=c();r(6),y(e.calMonth),r(2),y(e.calDay),r(2),y(e.isMobile?"Calendar":"Sync to Calendar")}}function Sp(t,s){if(t&1){let e=b();n(0,"button",44),h("click",function(){u(e);let i=c();return g(i.addChild("add"))}),l(1,"Add Child"),o()}}function Dp(t,s){t&1&&(n(0,"th",60),l(1,"\xA0"),o())}function Pp(t,s){t&1&&(n(0,"span",62),l(1," verified "),o())}function Ep(t,s){t&1&&(n(0,"span",63),l(1," contact_mail "),o())}function Ip(t,s){if(t&1&&(n(0,"span"),l(1),o()),t&2){let e=c().index;r(),y(e+1)}}function kp(t,s){if(t&1&&(n(0,"td",61),m(1,Pp,2,0,"span",62),m(2,Ep,2,0,"span",63),m(3,Ip,2,1,"span"),o()),t&2){let e=s.$implicit;r(),p(e.hasBirthCertificateVerified?1:-1),r(),p(e.driverLicenseVerified?2:-1),r(),p(!e.hasBirthCertificateVerified&&!e.driverLicenseVerified?3:-1)}}function Tp(t,s){t&1&&(n(0,"th",64),l(1,"Name"),o())}function Op(t,s){if(t&1&&(n(0,"a",69)(1,"span",70),l(2),o()()),t&2){let e=c().$implicit;_("routerLink",e.url),r(2),y(e.name)}}function Vp(t,s){if(t&1&&(n(0,"span",70),l(1),o()),t&2){let e=c().$implicit;r(),y(e.name)}}function Fp(t,s){if(t&1&&(n(0,"span",72),l(1),o()),t&2){let e=c().$implicit;r(),y(e.relation)}}function Rp(t,s){if(t&1&&(n(0,"span",73),l(1),o()),t&2){let e=c().$implicit;r(),E("Player rating ",e.rating)}}function Ap(t,s){if(t&1&&(n(0,"span",79),l(1),o()),t&2){let e=c().$implicit;H("mp-name-cell__access--restricted",e.readOnly),r(),E(" ",e.readOnly?"Restricted access":"Shared access"," ")}}function Lp(t,s){if(t&1){let e=b();n(0,"button",80),h("click",function(){u(e);let i=c().$implicit,d=c(2),f=O(21);return g(d.openIDCard(i,f))}),v(1,"mat-icon",81),o()}}function Np(t,s){if(t&1){let e=b();n(0,"td",65)(1,"div",66)(2,"div",67)(3,"div",68),m(4,Op,3,2,"a",69)(5,Vp,2,1,"span",70),o(),n(6,"div",71),m(7,Fp,2,1,"span",72),m(8,Rp,2,1,"span",73),m(9,Ap,2,3,"span",74),o()(),n(10,"div",75)(11,"button",76),h("click",function(){let i=u(e).$implicit,d=c(2);return g(d.addChild("edit",i))}),v(12,"mat-icon",77),o(),m(13,Lp,2,0,"button",78),o()()()}if(t&2){let e=s.$implicit,a=c(2);_("ngClass",V(6,hp,a.isMobile)),r(4),p(e.url?4:5),r(3),p(e.relation!="self"?7:-1),r(),p(e.relation=="self"&&e.rating!=null?8:-1),r(),p(e.sharedAccess?9:-1),r(4),p(e.idCardVisibility!=!1?13:-1)}}function Wp(t,s){t&1&&(n(0,"th",82),l(1,"Contact Info"),o())}function Bp(t,s){if(t&1&&(l(0),v(1,"br"),l(2)),t&2){let e=c().$implicit;E(" ",e.phone),r(2),E("",e.email," ")}}function jp(t,s){if(t&1){let e=b();n(0,"button",85),h("click",function(){u(e);let i=c().$implicit,d=c(2);return g(d.showGuardians(i))}),l(1,"Guardian Access"),o()}}function zp(t,s){if(t&1&&(n(0,"td",83),m(1,Bp,3,2),m(2,jp,2,0,"button",84),o()),t&2){let e=s.$implicit;r(),p(e.relation!="child"?1:-1),r(),p(e.relation=="child"&&e.parentZero?2:-1)}}function qp(t,s){if(t&1){let e=b();n(0,"button",91),h("click",function(){u(e);let i=c(3);return g(i.addChild("add"))}),n(1,"mat-icon",92),l(2,"person_add"),o(),l(3,"Add Your Child"),o()}}function Up(t,s){if(t&1){let e=b();n(0,"th",86)(1,"div",87)(2,"div",88)(3,"span"),l(4,"Action "),o(),n(5,"button",89),h("click",function(){u(e);let i=c(2);return g(i.openBracketLegendMyFamily())}),n(6,"mat-icon"),l(7,"help"),o()()(),m(8,qp,4,0,"button",90),o()()}if(t&2){let e=c(2);r(8),p((e.family==null?null:e.family.length)<=e.maxChildrenOverride?8:-1)}}function Gp(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function Hp(t,s){t&1&&(n(0,"div",108),l(1,"Future Charge Failed!"),o())}function $p(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){let i=u(e).$implicit,d=c(3).$implicit,f=c(2);return g(f.registerForIndividualEventNomination(i,d.name,!1,d))}),n(1,"div")(2,"span",107),l(3),o(),l(4),m(5,Hp,2,0,"div",108),o()()}if(t&2){let e=s.$implicit;r(2),H("red-fg",e.futureChargeFailed),r(),y(e.name),r(),_e(" ",e.entryAllowed?"":e.canJoinWaitlist?" (Join Waitlist)":e.waitlisted?" (On Waitlist)":e.waitlistAllowed?"":" (Closed)"," ",!e.entryAllowed&&e.waitlistAllowed?" (Waitlist Approved)":""," "),r(),p(e.futureChargeFailed?5:-1)}}function Jp(t,s){if(t&1){let e=b();n(0,"button",100),h("menuOpened",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.loadChildActions(i))}),n(1,"span",101),v(2,"bell-svg",102),l(3,"\xA0Individual Event Entry\xA0"),n(4,"mat-icon"),l(5,"arrow_drop_down"),o()()(),n(6,"mat-menu",103,4),m(8,Gp,3,0,"button",104),k(9,$p,6,6,"button",99,A),o()}if(t&2){let e=O(7),a=c(2).$implicit,i=c(2);_("ngClass",i.eventEntryStatusClass(a.eventEntryStatus))("matMenuTriggerFor",e),r(2),_("color","#ffffff"),r(6),p(a._actionsLoading?8:-1),r(),T(a.individualEventEntry)}}function Yp(t,s){t&1&&(n(0,"button",94)(1,"span",101)(2,"mat-icon"),l(3,"payments"),o(),l(4,"\xA0Payment to finish\xA0"),o()()),t&2&&_("routerLink",bt(1,xp))}function Qp(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function Kp(t,s){t&1&&(n(0,"button",110),l(1,"No registration season is open"),o())}function Xp(t,s){if(t&1&&(n(0,"button",111),l(1," View/Print "),n(2,"span",113),l(3),o(),l(4," Card "),o()),t&2){let e=c().$implicit;_("routerLink",V(2,Xt,"/pages/regCard/"+e.registration._key+"/"+e.registration.chkSum)),r(3),y(e.season)}}function Zp(t,s){if(t&1&&(n(0,"button",112),l(1),o()),t&2){let e=c().$implicit;r(),E("Registered for ",e.season)}}function e0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c().$implicit,d=c(3).$implicit,f=c(2);return g(f.membershipPopUp(i.season,d._key,d.relation=="self"))}),n(1,"mat-icon"),l(2,"badge"),o(),l(3,"Register for\xA0"),n(4,"span",114),l(5),o(),l(6,"\xA0Season "),o()}if(t&2){let e=c().$implicit;r(5),y(e.season)}}function t0(t,s){if(t&1&&(m(0,Xp,5,4,"button",111),m(1,Zp,2,1,"button",112),m(2,e0,7,1,"button",99)),t&2){let e=s.$implicit,a=c(5);p(e.registration!=null&&!a.hideCardLink?0:-1),r(),p(e.registration!=null&&a.hideCardLink?1:-1),r(),p(e.registration==null?2:-1)}}function i0(t,s){if(t&1){let e=b();n(0,"button",109),h("menuOpened",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.loadChildActions(i))}),n(1,"mat-icon"),l(2,"badge"),o(),l(3," Individual Registration "),n(4,"mat-icon"),l(5,"arrow_drop_down"),o()(),n(6,"mat-menu",103,5),m(8,Qp,3,0,"button",104),m(9,Kp,2,0,"button",110),k(10,t0,3,3,null,null,Aa),o()}if(t&2){let e=O(7),a=c(2).$implicit,i=c(2);_("matMenuTriggerFor",e)("ngClass",Le(4,bp,a._actionsLoaded&&i.individualRegistrationStatus(a.individualRegistration,"registered"),a._actionsLoaded&&i.individualRegistrationStatus(a.individualRegistration,"pending"))),r(8),p(a._actionsLoading?8:-1),r(),p(a._actionsLoaded&&(!a.individualRegistration||a.individualRegistration.length===0)?9:-1),r(),T(a.individualRegistration)}}function n0(t,s){if(t&1){let e=b();n(0,"button",115),h("click",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.compliancePopUp(i._key,i.name,i))}),n(1,"mat-icon"),l(2,"fact_check"),o(),l(3," Compliance"),o()}}function o0(t,s){if(t&1){let e=b();n(0,"button",116),h("click",function(){u(e);let i=c(2).$implicit,d=c(2);
7return g(d.joinTeamPopUp(i))}),n(1,"mat-icon"),l(2,"group_add"),o(),l(3," Join a Team"),o()}}function a0(t,s){if(t&1){let e=b();n(0,"button",116),h("click",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.joinLeaguePopUp(i))}),n(1,"mat-icon"),l(2,"sports"),o(),l(3," Join a League"),o()}}function r0(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function l0(t,s){if(t&1){let e=b();n(0,"button",119)(1,"div",120),l(2),o()(),n(3,"mat-menu",null,7)(5,"button",106),h("click",function(){let i=u(e),d=i.$implicit,f=i.$index,C=c(3).$implicit,L=c(2),z=O(23);return g(L.acceptTeamInvite(C.roster_invites,d,f,C.name,z))}),n(6,"span",121),l(7,"Accept Invite"),o()(),n(8,"button",106),h("click",function(){let i=u(e),d=i.$implicit,f=i.$index,C=c(3).$implicit,L=c(2);return g(L.rejectTeamInvite(C.roster_invites,d._key,f,C))}),n(9,"span",122),l(10,"Reject Invite"),o()(),n(11,"button",111)(12,"span",123),l(13,"Go to Team Page"),o()()()}if(t&2){let e=s.$implicit,a=O(4);_("matMenuTriggerFor",a),r(2),y(e.teamName),r(9),_("routerLink",V(3,Xt,"/pages/team/detail/"+e.teamID))}}function s0(t,s){if(t&1){let e=b();n(0,"button",117),h("menuOpened",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.loadChildActions(i))}),n(1,"mat-icon"),l(2,"notifications_active"),o(),l(3," Invited "),n(4,"mat-icon"),l(5,"arrow_drop_down"),o()(),n(6,"mat-menu",118,6),m(8,r0,3,0,"button",104),k(9,l0,14,5,null,null,A),o()}if(t&2){let e=O(7),a=c(2).$implicit;_("matMenuTriggerFor",e),r(8),p(a._actionsLoading?8:-1),r(),T(a.roster_invites)}}function d0(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function c0(t,s){t&1&&(n(0,"b"),l(1,"GUEST -\xA0"),o())}function m0(t,s){if(t&1&&(n(0,"button",111),m(1,c0,2,0,"b"),n(2,"span"),l(3),o()()),t&2){let e=s.$implicit;H("light-green-200",e.type=="guest_player"),_("routerLink",V(5,Xt,"/pages/team/detail/"+e.teamID)),r(),p(e.type=="guest_player"?1:-1),r(2),y(e.teamName)}}function p0(t,s){if(t&1){let e=b();n(0,"button",124),h("menuOpened",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.loadChildActions(i))}),n(1,"mat-icon"),l(2,"history"),o(),l(3," Rostered "),n(4,"mat-icon"),l(5,"arrow_drop_down"),o()(),n(6,"mat-menu",null,8),m(8,d0,3,0,"button",104),k(9,m0,4,7,"button",125,A),o()}if(t&2){let e=O(7),a=c(2).$implicit;_("matMenuTriggerFor",e),r(8),p(a._actionsLoading?8:-1),r(),T(a.roster_history)}}function _0(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function u0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){let i=u(e).$implicit,d=c(3).$implicit,f=c(2),C=O(19);return g(f.openGuestPlayerInviteInfoDialog(i,C,d))}),n(1,"div",120),l(2),v(3,"br"),n(4,"span",127),l(5),o()()()}if(t&2){let e=s.$implicit;r(2),E(" ",e.teamName),r(3),E("Pick up from ",e.rosteredTeamName)}}function g0(t,s){if(t&1){let e=b();n(0,"button",126),h("menuOpened",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.loadChildActions(i))}),n(1,"mat-icon"),l(2,"person_add"),o(),l(3," Pick Up Player Invites "),n(4,"mat-icon"),l(5,"arrow_drop_down"),o()(),n(6,"mat-menu",118,9),m(8,_0,3,0,"button",104),k(9,u0,6,2,"button",99,A),o()}if(t&2){let e=O(7),a=c(2).$implicit;_("matMenuTriggerFor",e),r(8),p(a._actionsLoading?8:-1),r(),T(a.pickup_invites)}}function f0(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function C0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){let i=u(e).$implicit,d=c(3).$implicit,f=c(2),C=O(19);return g(f.openGuestPlayerInviteInfoDialog(i,C,d))}),n(1,"div",120),l(2),v(3,"br"),n(4,"span",127),l(5),o()()()}if(t&2){let e=s.$implicit;r(2),E(" ",e.teamName),r(3),_e("",e.location," - ",e.dates)}}function h0(t,s){if(t&1){let e=b();n(0,"button",128),h("menuOpened",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.loadChildActions(i))}),n(1,"mat-icon"),l(2,"person_add"),o(),l(3," Guest Player Invites "),n(4,"mat-icon"),l(5,"arrow_drop_down"),o()(),n(6,"mat-menu",118,10),m(8,f0,3,0,"button",104),k(9,C0,6,3,"button",99,A),o()}if(t&2){let e=O(7),a=c(2).$implicit;_("matMenuTriggerFor",e),r(8),p(a._actionsLoading?8:-1),r(),T(a.guest_invites)}}function x0(t,s){if(t&1){let e=b();n(0,"button",116),h("click",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.membershipPopUp("playerHistory",i._key,i.relation=="self"))}),n(1,"mat-icon"),l(2,"star_rate"),o(),l(3," Get Slowpitch Player Rating"),o()}}function b0(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function v0(t,s){if(t&1){let e=b();n(0,"button",131),h("click",function(){u(e);let i=c(2).$implicit,d=c(5);
7return g(d.gotoUmpireExam(i.season))}),l(1),o()}if(t&2){let e=c(2).$implicit;r(),E("",e.season," Umpire Exam")}}function y0(t,s){if(t&1){let e=b();n(0,"button",129),h("click",function(){u(e);let i=c(4).$implicit,d=c(2),f=O(21);return g(d.openIDCard(i,f))}),l(1),o(),m(2,v0,2,1,"button",130)}if(t&2){let e=c().$implicit,a=c(5);r(),E("View/Print ",e.season," Card"),r(),p(a.isUSASB?2:-1)}}function M0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c(4).$implicit,d=c(2);return g(d.umpireRegistrationPopUp(i))}),l(1),o()}if(t&2){let e=c().$implicit;r(),E("Register for ",e.season)}}function w0(t,s){if(t&1&&(m(0,y0,3,2),m(1,M0,2,1,"button",99)),t&2){let e=s.$implicit;p(e.record!=null?0:-1),r(),p(e.record==null?1:-1)}}function S0(t,s){if(t&1){let e=b();n(0,"button",124),h("menuOpened",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.loadChildActions(i))}),n(1,"mat-icon"),l(2,"sports_baseball"),o(),l(3," Officials "),n(4,"mat-icon"),l(5,"arrow_drop_down"),o()(),n(6,"mat-menu",103,11),m(8,b0,3,0,"button",104),k(9,w0,2,2,null,null,A),o()}if(t&2){let e=O(7),a=c(2).$implicit;_("matMenuTriggerFor",e),r(8),p(a._actionsLoading?8:-1),r(),T(a.umpire.registration)}}function D0(t,s){if(t&1){let e=b();n(0,"button",132),h("click",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.openRSVPDialog(i._key))}),n(1,"mat-icon"),l(2,"event_available"),o(),l(3," RSVP"),o()}if(t&2){let e=c(2).$implicit;_("ngClass",V(1,Ra,e.hasTeamAvailabilityResponsePending))}}function P0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.addChild("edit",i))}),n(1,"span"),l(2,"Edit Profile"),o()()}}function E0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c(2).$implicit,d=c(2);return g(d.compliancePopUp(i._key,i.name,i))}),l(1,"Compliance"),o()}}function I0(t,s){if(t&1&&(n(0,"div",93),m(1,Jp,11,4),m(2,Yp,5,2,"button",94),m(3,i0,12,7),m(4,n0,4,0,"button",95),m(5,o0,4,0,"button",96),m(6,a0,4,0,"button",96),m(7,s0,11,2),m(8,p0,11,2),m(9,g0,11,2),m(10,h0,11,2),m(11,x0,4,0,"button",96),m(12,S0,11,2),m(13,D0,4,3,"button",97),n(14,"button",98),l(15,"More "),n(16,"mat-icon"),l(17,"arrow_drop_down"),o()(),n(18,"mat-menu",null,3),m(20,P0,3,0,"button",99),m(21,E0,2,0,"button",99),o()()),t&2){let e=O(19),a=c().$implicit,i=c(2);r(),p(a.eventEntryCount>0?1:-1),r(),p(a.pendingEntryPayment?2:-1),r(),p(i.spRegistrationSite?3:-1),r(),p((!i.isNSA&&!i.isASF&&(i.isUSASB||a.isManager==!0||a.isPlayer==!0)||i.spRegistrationSite==!0&&(a.individualRegistration[0]==null?null:a.individualRegistration[0].registration)!=null)&&!i.isRestricted&&(a==null?null:a.restricted)!=!0?4:-1),r(),p(!i.noTeamSite&&!i.hideCreateTeam?5:-1),r(),p(a.relation=="child"&&i.showJoinLeague?6:-1),r(),p(a.rosterInviteCount>0?7:-1),r(),p(a.rosterHistoryCount>0?8:-1),r(),p(a.pickupInviteCount>0?9:-1),r(),p(a.guestInviteCount>0?10:-1),r(),p((i.isNSA||i.isCCT)&&a.relation=="self"&&a.rating==null?11:-1),r(),p(a.umpireRegAvailable&&!i.isRestricted&&(a==null?null:a.restricted)!=!0&&!i.noTeamSite&&!i.hideCreateTeam?12:-1),r(),p(a.hasTeamAvailabilityRecord==!0?13:-1),r(),_("matMenuTriggerFor",e),r(6),p(a.relation=="self"||a.relation=="child"?20:-1),r(),p(!i.isRestricted&&(a==null?null:a.restricted)!=!0?21:-1)}}function k0(t,s){t&1&&(n(0,"span")(1,"b"),l(2,"You are given a restricted access."),o(),v(3,"br"),l(4,"You will get only notifications and communications for this child. You can not take actions on the profile. "),o())}function T0(t,s){if(t&1&&(n(0,"td",61),m(1,I0,22,16,"div",93),m(2,k0,5,0,"span"),o()),t&2){let e=s.$implicit;r(),p(e.readOnly?-1:1),r(),p(e.readOnly?2:-1)}}function O0(t,s){t&1&&v(0,"tr",133)}function V0(t,s){if(t&1&&v(0,"tr",134),t&2){let e=s.dataIndex;H("row-even",e%2===0)("row-odd",e%2!==0)}}function F0(t,s){t&1&&(n(0,"tr",135)(1,"td",136),l(2,"No Record found"),o()())}function R0(t,s){if(t&1&&(n(0,"div",31)(1,"table",45),F(2,46),I(3,Dp,2,0,"th",47)(4,kp,4,3,"td",48),R(),F(5,49),I(6,Tp,2,0,"th",50)(7,Np,14,8,"td",51),R(),F(8,52),I(9,Wp,2,0,"th",53)(10,zp,3,2,"td",54),R(),F(11,55),I(12,Up,9,1,"th",56)(13,T0,3,2,"td",48),R(),I(14,O0,1,0,"tr",57)(15,V0,1,4,"tr",58)(16,F0,3,0,"tr",59),o()()),t&2){let e=c();r(),_("dataSource",e.dataSource),r(13),_("matHeaderRowDef",e.displayedColumns),r(),_("matRowDefColumns",e.displayedColumns)}}function A0(t,s){if(t&1){let e=b();n(0,"mat-icon",145),h("click",function(){u(e);let i=c().$implicit,d=c(2),f=O(21);return g(d.openIDCard(i,f))}),o()}}function L0(t,s){if(t&1&&(n(0,"a",141),l(1),o()),t&2){let e=c().$implicit;_("routerLink",V(2,Xt,"/pages/player/"+e._key+"/"+e.name)),r(),y(e.name)}}function N0(t,s){if(t&1&&(n(0,"span"),l(1),o()),t&2){let e=c().$implicit;r(),y(e.name)}}function W0(t,s){if(t&1&&(n(0,"span"),l(1," - "),n(2,"i"),l(3),o()()),t&2){let e=c().$implicit;r(3),y(e.relation)}}function B0(t,s){if(t&1&&(n(0,"span"),v(1,"br"),l(2),o()),t&2){let e=c().$implicit;r(2),E("Rating: ",e.rating)}}
7function j0(t,s){t&1&&(n(0,"span",142)(1,"b"),l(2,"Restricted access."),o()())}function z0(t,s){if(t&1){let e=b();n(0,"button",146),h("menuOpened",function(){u(e);let i=c().$implicit,d=c(2);return g(d.loadChildActions(i))}),n(1,"span",147),l(2," menu "),o(),n(3,"span"),l(4,"Menu"),o()()}if(t&2){c();let e=O(11);_("matMenuTriggerFor",e)}}function q0(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function U0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c().$implicit,d=c(2),f=O(21);return g(d.openIDCard(i,f))}),l(1,"View ID Card"),o()}}function G0(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function H0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){let i=u(e).$implicit,d=c(2).$implicit,f=c(2);return g(f.registerForIndividualEventNomination(i,null,!1,d))}),n(1,"span",107),l(2),o()()}if(t&2){let e=s.$implicit;r(2),y(e.name)}}function $0(t,s){if(t&1&&(n(0,"button",119),l(1,"Indv. Event Entry"),o(),n(2,"mat-menu",148,13),m(4,G0,3,0,"button",104),k(5,H0,3,1,"button",99,A),o()),t&2){let e=O(3),a=c().$implicit;_("matMenuTriggerFor",e),r(4),p(a._actionsLoading?4:-1),r(),T(a.individualEventEntry)}}function J0(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function Y0(t,s){t&1&&(n(0,"button",110),l(1,"No registration season is open"),o())}function Q0(t,s){if(t&1&&(n(0,"button",111),l(1," View/Print "),n(2,"span",113),l(3),o(),l(4," Card "),o()),t&2){let e=c().$implicit;_("routerLink",V(2,Xt,"/pages/regCard/"+e.registration._key+"/"+e.registration.chkSum)),r(3),y(e.season)}}function K0(t,s){if(t&1&&(n(0,"button",112),l(1),o()),t&2){let e=c().$implicit;r(),E("Registered for ",e.season)}}function X0(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c().$implicit,d=c(2).$implicit,f=c(2);return g(f.membershipPopUp(i.season,d._key,d.relation=="self"))}),n(1,"mat-icon"),l(2,"badge"),o(),l(3,"Register for\xA0"),n(4,"span",114),l(5),o(),l(6,"\xA0Season "),o()}if(t&2){let e=c().$implicit;r(5),y(e.season)}}function Z0(t,s){if(t&1&&(m(0,Q0,5,4,"button",111),m(1,K0,2,1,"button",112),m(2,X0,7,1,"button",99)),t&2){let e=s.$implicit,a=c(4);p(e.registration!=null&&!a.hideCardLink?0:-1),r(),p(e.registration!=null&&a.hideCardLink?1:-1),r(),p(e.registration==null?2:-1)}}function e_(t,s){if(t&1&&(n(0,"button",119),l(1,"Indv Reg."),o(),n(2,"mat-menu",148,14),m(4,J0,3,0,"button",104),m(5,Y0,2,0,"button",110),k(6,Z0,3,3,null,null,Aa),o()),t&2){let e=O(3),a=c().$implicit;_("matMenuTriggerFor",e),r(4),p(a._actionsLoading?4:-1),r(),p(a._actionsLoaded&&(!a.individualRegistration||a.individualRegistration.length===0)?5:-1),r(),T(a.individualRegistration)}}function t_(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c().$implicit,d=c(2);return g(d.compliancePopUp(i._key,i.name,i))}),l(1,"Compliance"),o()}}function i_(t,s){if(t&1){let e=b();n(0,"button",149),h("click",function(){u(e);let i=c().$implicit,d=c(2);return g(d.openRSVPDialog(i._key))}),l(1,"RSVP"),o()}if(t&2){let e=c().$implicit;_("ngClass",V(1,Ra,e.hasTeamAvailabilityResponsePending))}}function n_(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c().$implicit,d=c(2);return g(d.joinLeaguePopUp(i))}),l(1,"Join League"),o()}}function o_(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function a_(t,s){if(t&1){let e=b();n(0,"button",119)(1,"div",120),l(2),o()(),n(3,"mat-menu",null,7)(5,"button",106),h("click",function(){let i=u(e),d=i.$implicit,f=i.$index,C=c(2).$implicit,L=c(2),z=O(23);return g(L.acceptTeamInvite(C.roster_invites,d,f,C.name,z))}),n(6,"span",121),l(7,"Accept Invite"),o()(),n(8,"button",106),h("click",function(){let i=u(e),d=i.$implicit,f=i.$index,C=c(2).$implicit,L=c(2);return g(L.rejectTeamInvite(C.roster_invites,d._key,f,C))}),n(9,"span",122),l(10,"Reject Invite"),o()(),n(11,"button",111)(12,"span",123),l(13,"Go to Team Page"),o()()()}if(t&2){let e=s.$implicit,a=O(4);_("matMenuTriggerFor",a),r(2),y(e.teamName),r(9),_("routerLink",V(3,Xt,"/pages/team/detail/"+e.teamID))}}function r_(t,s){if(t&1&&(n(0,"button",119),l(1,"Roster Invite"),o(),n(2,"mat-menu",118,15),m(4,o_,3,0,"button",104),k(5,a_,14,5,null,
7null,A),o()),t&2){let e=O(3),a=c().$implicit;_("matMenuTriggerFor",e),r(4),p(a._actionsLoading?4:-1),r(),T(a.roster_invites)}}function l_(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function s_(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){let i=u(e).$implicit,d=c(2).$implicit,f=c(2),C=O(19);return g(f.openGuestPlayerInviteInfoDialog(i,C,d))}),n(1,"div",120),l(2),v(3,"br"),n(4,"span",127),l(5),o()()()}if(t&2){let e=s.$implicit;r(2),E(" ",e.teamName),r(3),_e("",e.location," - ",e.dates)}}function d_(t,s){if(t&1&&(n(0,"button",119),l(1,"Roster Invite"),o(),n(2,"mat-menu",118,16),m(4,l_,3,0,"button",104),k(5,s_,6,3,"button",99,A),o()),t&2){let e=O(3),a=c().$implicit;_("matMenuTriggerFor",e),r(4),p(a._actionsLoading?4:-1),r(),T(a.guest_invites)}}function c_(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function m_(t,s){t&1&&(n(0,"b"),l(1,"GUEST -\xA0"),o())}function p_(t,s){if(t&1&&(n(0,"button",111),m(1,m_,2,0,"b"),n(2,"span"),l(3),o()()),t&2){let e=s.$implicit;H("light-green-200",e.type=="guest_player"),_("routerLink",V(5,Xt,"/pages/team/detail/"+e.teamID)),r(),p(e.type=="guest_player"?1:-1),r(2),y(e.teamName)}}function __(t,s){if(t&1&&(n(0,"button",119),l(1,"Rostered"),o(),n(2,"mat-menu",null,17),m(4,c_,3,0,"button",104),k(5,p_,4,7,"button",125,A),o()),t&2){let e=O(3),a=c().$implicit;_("matMenuTriggerFor",e),r(4),p(a._actionsLoading?4:-1),r(),T(a.roster_history)}}function u_(t,s){t&1&&(n(0,"button",104),v(1,"span",105),l(2,"Loading\u2026"),o())}function g_(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c(5);return g(i.notify.openInfoModal("Coming Soon"))}),l(1," View/Print "),n(2,"span",113),l(3),o(),l(4," Card "),o()}if(t&2){let e=c().$implicit;r(3),y(e.season)}}function f_(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c(3).$implicit,d=c(2);return g(d.umpireRegistrationPopUp(i))}),l(1),o()}if(t&2){let e=c().$implicit;r(),E("Register for ",e.season," Season")}}function C_(t,s){if(t&1&&(m(0,g_,5,1,"button",99),m(1,f_,2,1,"button",99)),t&2){let e=s.$implicit;p(e.record!=null?0:-1),r(),p(e.record==null?1:-1)}}function h_(t,s){if(t&1&&(n(0,"button",119),l(1,"Officials Reg."),o(),n(2,"mat-menu",null,11),m(4,u_,3,0,"button",104),k(5,C_,2,2,null,null,A),o()),t&2){let e=O(3),a=c().$implicit;_("matMenuTriggerFor",e),r(4),p(a._actionsLoading?4:-1),r(),T(a.umpire.registration)}}function x_(t,s){if(t&1){let e=b();v(0,"mat-divider"),n(1,"button",106),h("click",function(){u(e);let i=c().$implicit,d=c(2);return g(d.showGuardians(i))}),n(2,"span"),l(3,"Guardian Access"),o()()}}function b_(t,s){if(t&1){let e=b();n(0,"button",106),h("click",function(){u(e);let i=c().$implicit,d=c(2);return g(d.membershipPopUp("playerHistory",i._key,i.relation=="self"))}),l(1,"Get Slowpitch Rating"),o()}}function v_(t,s){if(t&1){let e=b();n(0,"div",137)(1,"div",138),m(2,A0,1,0,"mat-icon",139),n(3,"div",140),m(4,L0,2,4,"a",141),m(5,N0,2,1,"span"),m(6,W0,4,1,"span"),m(7,B0,3,1,"span"),o()(),m(8,j0,3,0,"span",142),m(9,z0,5,1,"button",143),n(10,"mat-menu",null,12),m(12,q0,3,0,"button",104),m(13,U0,2,0,"button",99),m(14,$0,7,2),m(15,e_,8,3),m(16,t_,2,0,"button",99),m(17,i_,2,3,"button",144),n(18,"button",106),h("click",function(){let i=u(e).$implicit,d=c(2);return g(d.joinTeamPopUp(i))}),l(19,"Join Team"),o(),m(20,n_,2,0,"button",99),m(21,r_,7,2),m(22,d_,7,2),m(23,__,7,2),m(24,h_,7,2),m(25,x_,4,0),v(26,"mat-divider"),m(27,b_,2,0,"button",99),n(28,"button",106),h("click",function(){let i=u(e).$implicit,d=c(2);return g(d.addChild("edit",i))}),n(29,"span"),l(30,"Edit Profile"),o()()()()}if(t&2){let e=s.$implicit,a=s.$index,i=c(2);_("ngClass",V(21,vp,a%2)),r(2),p(e.idCardVisibility!=!1?2:-1),r(2),p(e.rosterHistoryCount>0?4:-1),r(),p(e.rosterHistoryCount===0?5:-1),r(),p(e.relation!="self"&&e.rating!=null?6:-1),r(),p(e.relation=="self"&&e.rating!=null?7:-1),r(),p(e.readOnly?8:-1),r(),p(e.readOnly?-1:9),r(3),p(e._actionsLoading?12:-1),r(),p(e.idCardVisibility!=!1?13:-1),r(),p(e.eventEntryCount>0?14:-1),r(),p(i.spRegistrationSite?15:-1),r(),p(!i.isNSA&&!i.isASF&&!i.isRestricted&&(e==null?null:e.restricted)!=!0?16:-1),r(),p(e.hasTeamAvailabilityRecord==!0?17:-1),r(3),p(i.showJoinLeague&&e.relation=="child"?20:-1),r(),p(e.rosterInviteCount>0?21:-1),r(),p(e.guestInviteCount>0?22:-1),r(),p(e.rosterHistoryCount>0?23:-1),r(),p(e.umpireRegAvailable&&!i.isRestricted&&(e==null?null:e.restricted)!=!0?24:-1),r(),p(e.relation=="child"&&e.parentZero?25:-1),r(2),p(e.relation=="self"&&(i.isNSA||i.isCCT)&&e.rating==null?27:-1)}}function y_(t,s){if(t&1&&(n(0,"div"),k(1,v_,31,23,"div",137,A),o()),t&2){let e=c();r(),T(e.family)}}function M_(t,s){if(t&1&&(n(0,"span"),l(1),o()),t&2){let e=c(3);r(),Lt("This player needs a ",e.guestInfo.season," Individual Registration to guest play. The ",e.guestInfo.irCoveredBy," covers this fee \u2014 when you tap Accept Invite, we will charge the ",e.guestInfo.irCoveredBy,"'s card on file.")}}function w_(t,s){if(t&1&&(n(0,"span"),l(1),o()),t&2){let e=c(3);r(),E("This player needs a ",e.guestInfo.season," Individual Registration to guest play. When you tap Accept Invite, we will ask you to pay the registration fee first.")}}function S_(t,s){if(t&1&&(n(0,"div",161)(1,"mat-icon",169),l(2,"badge"),o(),m(3,M_,2,3,"span")(4,w_,2,1,"span"),o()),t&2){let e=c(2);r(3),p(e.guestInfo.irCoveredBy?3:4)}}function D_(t,s){if(t&1){let e=b();n(0,"div",167)(1,"mat-form-field",170)(2,"mat-label"),l(3,"Reason to reject"),o(),n(4,"textarea",171),D("ngModelChange",function(i){u(e);let d=c(2);return S(d.guestInfo.rejectReason,i)||(d.guestInfo.rejectReason=i),g(i)}),o()()()}if(t&2){let e=c(2);r(4),w("ngModel",e.guestInfo.rejectReason)}}function P_(t,s){if(t&1){let e=b();n(0,"button",172),h("click",function(){u(e);let i=c(2);return g(i.guestInfo.rejected=!1)}),l(1,"Cancel"),o(),n(2,"button",173),h("click",function(){u(e);let i=c(2);return g(i.rejectGuestInvite(i.guestInfo,i.guestInfo._key))}),l(3,"Submit Reject"),o()}if(t&2){let e=c(2);_("disabled",e.guestInfo.loading),r(2),H("spinner",e.guestInfo.loading),_("disabled",!e.guestInfo.rejectReason||e.guestInfo.loading)}}function E_(t,s){if(t&1){let e=b();n(0,"button",174),h("click",function(){u(e);let i=c(2);return g(i.guestInfo.rejected=!0)}),l(1,"Reject Invite"),o(),n(2,"button",175),h("click",function(){u(e);let i=c(2);return g(i.acceptGuestInvite(i.guestInfo,i.guestInfo._key))}),l(3,"Accept Invite"),o()}if(t&2){let e=c(2);_("disabled",e.guestInfo.loading),r(2),H("spinner",e.guestInfo.loading),_("disabled",e.guestInfo.loading||!e.waiverData.accepted)}}function I_(t,s){if(t&1){let e=b();n(0,"div",150)(1,"div",151)(2,"div",152)(3,"mat-icon"),l(4,"person_add"),o(),n(5,"span"),l(6,"Guest Player Invitation"),o()(),n(7,"button",153)(8,"mat-icon"),l(9,"close"),o()()(),n(10,"div",154)(11,"div",155)(12,"section",156)(13,"header",157)(14,"mat-icon"),l(15,"emoji_events"),o(),n(16,"span"),l(1
77,"Event"),o()(),n(18,"dl",158)(19,"div",159)(20,"dt"),l(21,"Name"),o(),n(22,"dd")(23,"a",160),l(24),o()()(),n(25,"div",159)(26,"dt"),l(27,"Division"),o(),n(28,"dd"),l(29),o()(),n(30,"div",159)(31,"dt"),l(32,"Dates"),o(),n(33,"dd"),l(34),o()(),n(35,"div",159)(36,"dt"),l(37,"Location"),o(),n(38,"dd"),l(39),o()()()(),n(40,"section",156)(41,"header",157)(42,"mat-icon"),l(43,"groups"),o(),n(44,"span"),l(45,"Team"),o()(),n(46,"dl",158)(47,"div",159)(48,"dt"),l(49,"Name"),o(),n(50,"dd")(51,"a",160),l(52),o()()(),n(53,"div",159)(54,"dt"),l(55,"Coach"),o(),n(56,"dd"),l(57),o()()()()(),m(58,S_,5,1,"div",161),n(59,"div",162)(60,"mat-icon",163),l(61),o(),n(62,"span",164),h("click",function(){u(e);let i=c();return g(i.agreementNotice())}),n(63,"mat-checkbox",165),D("ngModelChange",function(i){u(e);let d=c();return S(d.waiverData.accepted,i)||(d.waiverData.accepted=i),g(i)}),l(64),o()(),n(65,"agreement-button",166),h("agreementAccepted",function(i){u(e);let d=c();return g(d.onAgreementAccepted(i))}),o()(),m(66,D_,5,1,"div",167),o(),n(67,"div",168),m(68,P_,4,4)(69,E_,4,4),o()()}if(t&2){let e=c();r(23),_("routerLink","/pages/event/"+e.guestInfo.eventID),r(),y(e.guestInfo.eventName),r(5),y(e.guestInfo.division),r(5),y(e.guestInfo.dates),r(5),y(e.guestInfo.location),r(12),_("routerLink","/pages/team/detail/"+e.guestInfo.teamID),r(),y(e.guestInfo.teamName),r(5),y(e.guestInfo.coach),r(),p(e.guestInfo.individualRegistrationNeeded?58:-1),r(),H("gpi-waiver--signed",e.waiverData==null?null:e.waiverData.signatureName),r(2),y(e.waiverData!=null&&e.waiverData.signatureName?"verified":"assignment"),r(2),w("ngModel",e.waiverData.accepted),r(),y(e.waiverData!=null&&e.waiverData.signatureName?"I accept":"Please read"),r(),_("file",e.waiverFile)("label",e.waiverLabel)("record",e.waiverRecord),r(),p(e.guestInfo.rejected===!0?66:-1),r(2),p(e.guestInfo.rejected===!0?68:69)}}function k_(t,s){if(t&1&&v(0,"img",186),t&2){let e=c(2);_("src",e.imagePrefix+e.person4IDCard.avatar+"&h=220",Ie)}}function T_(t,s){t&1&&(n(0,"div",187)(1,"span",147),l(2,"person"),o()())}function O_(t,s){t&1&&(n(0,"div",188)(1,"span",147),l(2,"verified"),o()())}function V_(t,s){if(t&1&&(n(0,"div",192),l(1),o()),t&2){let e=c(2);r(),y(e.person4IDCard.location)}}function F_(t,s){if(t&1&&(n(0,"div",192),l(1),Q(2,"date"),o()),t&2){let e=c(2);r(),E("DOB: ",le(2,1,e.person4IDCard.birthday,"MM/dd/yyyy"))}}function R_(t,s){t&1&&(n(0,"div",193),v(1,"span",200),n(2,"span"),l(3,"Loading compliance\u2026"),o()())}function A_(t,s){if(t&1&&(n(0,"div",194)(1,"div",201),l(2),o()()),t&2){let e=c(2);r(2),y(e.person4IDCard.roles)}}function L_(t,s){if(t&1&&(n(0,"div",204)(1,"div",206)(2,"span",147),l(3,"verified"),o()(),n(4,"div",207)(5,"div",208),l(6,"IR REGISTERED"),o(),n(7,"div",209),l(8),o()()()),t&2){let e=c(3);r(8),y(e.person4IDCard.IRRegisteredSeason)}}function N_(t,s){if(t&1&&(n(0,"div",204)(1,"div",206)(2,"span",147),l(3,"sports"),o()(),n(4,"div",207)(5,"div",208),l(6,"UMPIRE"),o(),n(7,"div",209),l(8),o()()()),t&2){let e=c(3);r(8),y(e.person4IDCard.umpireSeason)}}function W_(t,s){if(t&1&&(n(0,"div")(1,"div",206)(2,"span",147),l(3),o()(),n(4,"div",207)(5,"div",208),l(6,"ACE"),o(),n(7,"div",209),l(8),Q(9,"date"),o()()()),t&2){let e=c(3);nt(be("compliance-badge ","status-"+(e.person4IDCard.ace==null?null:e.person4IDCard.ace.status))),r(3),y(e.person4IDCard.ace.icon),r(5),y(le(9,5,e.person4IDCard.ace.expiration,"MMM d, yyyy"))}}function B_(t,s){if(t&1&&(n(0,"div")(1,"div",206)(2,"span",147),l(3),o()(),n(4,"div",207)(5,"div",208),l(6,"BG CHECK"),o(),n(7,"div",209),l(8),Q(9,"date"),o()()()),t&2){let e=c(3);nt(be("compliance-badge ","status-"+(e.person4IDCard.backgroundCheck==null?null:e.person4IDCard.backgroundCheck.status))),r(3),y(e.person4IDCard.backgroundCheck.icon),r(5),y(le(9,5,e.person4IDCard.backgroundCheck.expiration,"MMM d, yyyy"))}}function j_(t,s){t&1&&(n(0,"span",210),l(1,"EXPIRED!"),o())}function z_(t,s){if(t&1&&(l(0),Q(1,"date")),t&2){let e=c(4);E(" ",le(1,1,e.person4IDCard.concussion.expiration,"MMM d, yyyy")," ")}}function q_(t,s){if(t&1&&(n(0,"div")(1,"div",206)(2,"span",147),l(3),o()(),n(4,"div",207)(5,"div",208),l(6,"CONCUSSION"),o(),n(7,"div",209),m(8,j_,2,0,"span",210)(9,z_,2,4),o()()()),t&2){let e=c(3);
7nt(be("compliance-badge ","status-"+(e.person4IDCard.concussion==null?null:e.person4IDCard.concussion.status))),r(3),y(e.person4IDCard.concussion.icon),r(5),p(e.person4IDCard.concussion.status==="expired"?8:9)}}function U_(t,s){if(t&1&&(n(0,"div")(1,"div",206)(2,"span",147),l(3),o()(),n(4,"div",207)(5,"div",208),l(6,"SAFE SPORT"),o(),n(7,"div",209),l(8),Q(9,"date"),o()()()),t&2){let e=c(3);nt(be("compliance-badge ","status-"+(e.person4IDCard.safeSport==null?null:e.person4IDCard.safeSport.status))),r(3),y(e.person4IDCard.safeSport.icon),r(5),y(le(9,5,e.person4IDCard.safeSport.expiration,"MMM d, yyyy"))}}function G_(t,s){if(t&1&&(n(0,"div")(1,"div",206)(2,"span",147),l(3),o()(),n(4,"div",207)(5,"div",208),l(6,"BIRTH CERT."),o(),n(7,"div",209),l(8),o()()()),t&2){let e=c(3);nt(be("compliance-badge ","status-"+(e.person4IDCard.birthCertificate==null?null:e.person4IDCard.birthCertificate.status))),r(3),y(e.person4IDCard.birthCertificate.status=="completed"?"verified":"error_outline"),r(5),y(e.person4IDCard.birthCertificate.status=="completed"?"Verified":"Not Verified")}}function H_(t,s){if(t&1&&(n(0,"div",195)(1,"div",202),l(2,"COMPLIANCE STATUS"),o(),n(3,"div",203),m(4,L_,9,1,"div",204),m(5,N_,9,1,"div",204),m(6,W_,10,8,"div",205),m(7,B_,10,8,"div",205),m(8,q_,10,5,"div",205),m(9,U_,10,8,"div",205),m(10,G_,9,5,"div",205),o()()),t&2){let e=c(2);r(4),p(e.person4IDCard.IRRegisteredSeason!=null?4:-1),r(),p(e.person4IDCard.isUmpire?5:-1),r(),p(e.person4IDCard.ace?6:-1),r(),p(e.person4IDCard.backgroundCheck?7:-1),r(),p(e.person4IDCard.concussion?8:-1),r(),p(e.person4IDCard.safeSport?9:-1),r(),p(e.person4IDCard.birthCertificate?10:-1)}}function $_(t,s){if(t&1){let e=b();n(0,"button",211),h("click",function(){u(e);let i=c(2);return g(i.addToAppleWallet())}),v(1,"img",212),o()}if(t&2){let e=c(2);_("disabled",e.idCardLoading)}}function J_(t,s){if(t&1){let e=b();n(0,"div",176)(1,"div",177)(2,"div",178)(3,"div",179),v(4,"img",180),o()(),n(5,"div",181),v(6,"div",182),n(7,"div",183)(8,"div",184)(9,"div",185),m(10,k_,1,1,"img",186),m(11,T_,3,0,"div",187),o(),m(12,O_,3,0,"div",188),o()(),n(13,"div",189)(14,"div",190),l(15),o(),n(16,"div",191),l(17),o(),m(18,V_,2,1,"div",192),m(19,F_,3,4,"div",192),o(),m(20,R_,4,0,"div",193),m(21,A_,3,1,"div",194),m(22,H_,11,7,"div",195),o()(),n(23,"div",196),m(24,$_,2,1,"button",197),n(25,"button",198),h("click",function(){u(e);let i=c();return g(i.printIDCard())}),n(26,"span",147),l(27,"print"),o()(),n(28,"button",199)(29,"span",147),l(30,"close"),o()()()()}if(t&2){let e=c();r(),it("data-role",e.person4IDCard.primaryRole),r(3),_("src",e.getDirectorLogo(),Ie),r(6),p(e.person4IDCard.avatar?10:-1),r(),p(e.person4IDCard.avatar?-1:11),r(),p(e.person4IDCard.hasBirthCertificateVerified?12:-1),r(3),y(e.person4IDCard.name),r(2),E("ID # ",e.person4IDCard._key),r(),p(e.person4IDCard.location?18:-1),r(),p(e.person4IDCard.isPlayer&&e.person4IDCard.birthday?19:-1),r(),p(e.idCardLoading?20:-1),r(),p(!e.idCardLoading&&e.person4IDCard.roles?21:-1),r(),p(!e.idCardLoading&&(e.person4IDCard.roles||e.person4IDCard.IRRegisteredSeason||e.hasComplianceRecords)?22:-1),r(2),p(e.isIOS?24:-1),r(),_("disabled",e.idCardLoading)}}function Y_(t,s){if(t&1){let e=b();n(0,"div",213)(1,"div")(2,"div",214),l(3,"close"),o()(),n(4,"div",215),l(5,"Please review and accept the waiver"),o(),n(6,"div",216)(7,"span",217),h("click",function(){u(e);let i=c();return g(i.agreementNotice())}),n(8,"mat-checkbox",218),D("ngModelChange",function(i){u(e);let d=c();return S(d.waiverData.accepted,i)||(d.waiverData.accepted=i),g(i)}),l(9),o()(),n(10,"agreement-button",166),h("agreementAccepted",function(i){u(e);let d=c();return g(d.onAgreementAccepted(i))}),o()(),n(11,"div",219)(12,"button",220),l(13,"Cancel"),o(),n(14,"button",221),l(15,"Accept Invite"),o()()()}if(t&2){let e=c();r(8),w("ngModel",e.waiverData.accepted),r(),E(" ",e.waiverData!=null&&e.waiverData.signatureName?"I accept":"Please read"," "),r(),_("file",e.waiverFile)("label",e.waiverLabel)("record",e.waiverRecord),r(4),_("mat-dialog-close",!0)("disabled",!e.waiverData.accepted)}}var La=(()=>{class t{api;_membership;ngxLoader;notify;router;dialog;platform;bottomSheet;_fuseConfigService;matIconRegistry;domSanitizer;breakpointObserver;idCardPrint;supportedInputTypes=Array.from(Xn()).join(", ");
7supportsPassiveEventListeners=Qn();supportsScrollBehavior=Kn();fuseConfig;failedFuturePayment;complianceDeepLink=null;deepLinkHandled=!1;demoMode=!1;aceActive=!1;backgroundCheckActive=!1;concussionActive=!1;covidActive=!1;cprActive=!1;guestPlayActive=!1;individualRegistrationActive=!0;safeSportActive=!1;umpireRegistrationActive=!1;rosterHistoryActive=!0;persona={};panelWidthMyPeople;panelHeightMyPeople;myPeople;isSubDirector=!1;hq=!1;tinc=!1;showJoinLeague=P.showJoinLeague==!0;isBSC=P.siteName=="bsc";isISC=P.siteName=="isc";isCCT=P.siteName=="cct";isASF=P.siteName=="asf";isUSASB=P.association=="usasb";spRegistrationSite=P.spRegistrationSite==!0;hideCreateTeam=P.hideCreateTeam==!0;hideCardLink=P.siteName=="asf"||P.siteName=="bsc"||P.siteName=="isc"||P.siteName=="cct"||P.siteName=="nsa"||P.siteName=="nccgsl"||P.siteName=="bpa";isNSA=P.siteName=="nsa"||P.siteName=="bpa";noTeamSite=P.noTeamSite==!0;isIOS=!1;isRegply=!1;IDCardVisibility=P.association=="usasb";IDCardVisibilityConditions=P.IDCardVisibilityConditions;displayedColumns=["position","name","contactInfo","action"];dataSource;expandedKey=null;loading;data=null;rows=[];calMonth=new Date().toLocaleString("en-US",{month:"short"}).toUpperCase();calDay=new Date().getDate();showCalendarSync=JSON.parse(localStorage.getItem("person"))?.personID==="30589146";isMobile=!1;isDirector=!1;isXS=!1;android=!1;ios=!1;isRestricted=!1;maxChildrenOverride=5;searchInput;pageSize;personalInfoForm;states=[];positions=[];imagePrefix=new rn().prefix;faIdBadge=Ao;waiverFile="genericPlayerWaiver";waiverLabel="WAIVER OF LIABILITY";_unsubscribeAll;constructor(e,a,i,d,f,C,L,z,Z,de,xt,hi,At){this.api=e,this._membership=a,this.ngxLoader=i,this.notify=d,this.router=f,this.dialog=C,this.platform=L,this.bottomSheet=z,this._fuseConfigService=Z,this.matIconRegistry=de,this.domSanitizer=xt,this.breakpointObserver=hi,this.idCardPrint=At,this._unsubscribeAll=new q,this.matIconRegistry.addSvgIcon("idCard",this.domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/idCard.svg")),this.matIconRegistry.addSvgIcon("mpPersonEdit",this.domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/mp-person-edit.svg")),this.matIconRegistry.addSvgIcon("verified",this.domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/verified.svg")),this.breakpointObserver.observe(["(max-width: 999px)"]).pipe(M(this._unsubscribeAll)).subscribe(An=>{this.isMobile=!!An.matches,this.isXS=!!An.matches}),a.persona&&(this.isDirector=a.persona.director,this.isSubDirector=a.persona.subDirector,this.hq=a.persona.hq,this.tinc=a.persona.tinc,this.isRestricted=a.persona.restricted==!0,this.isRegply=a.persona.regply==!0),this.platform.ANDROID?this.android=!0:this.platform.IOS&&(this.ios=!0),this.isIOS=this.platform.IOS||this.platform.SAFARI,P.siteName=="usasb-ut"?(this.waiverFile="usasb-ut-waiver",this.waiverLabel="USA Softball of Utah Waiver of Liability"):P.association=="usasb"?(this.waiverFile="playerRosterEntry",this.waiverLabel="USA SOFTBALL WAIVER OF LIABILITY"):P.siteName=="bpa"?(this.waiverFile="bpaWaiver",this.waiverLabel="BPA WAIVER OF LIABILITY"):P.siteName=="nsa"?(this.waiverFile="nsaWaiver",this.waiverLabel="NSA WAIVER OF LIABILITY"):P.siteName=="nccgsl"?(this.waiverFile="nccgslWaiver",this.waiverLabel="NCCGSL WAIVER OF LIABILITY"):P.siteName=="myas"?(this.waiverFile="myasWaiver",this.waiverLabel="MYAS WAIVER OF LIABILITY"):P.siteName=="tieronefp"?(this.waiverFile="genericPlayerWaiver",this.waiverLabel="WAIVER OF LIABILITY"):P.siteName=="bsc"?(this.waiverFile="bscPlayerWaiver",this.waiverLabel="BSC WAIVER OF LIABILITY"):P.siteName=="asf"?(this.waiverFile="asfWaiver",this.waiverLabel="ASF WAIVER OF LIABILITY"):(this.waiverFile="genericPlayerWaiver",this.waiverLabel="WAIVER OF LIABILITY")}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.pageSize=this.isMobile?5:10,this.getMyFamily()}userVerified=!1;cards=[];family=[];getMyFamily(){this._membership.isLoggedIn&&(this.ngxLoader.startLoader("myFamily"),this.api.get("Family/myFamilyV2",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{for(let i of e.family)i.individualRegistration=[],i.individualEventEntry=[],i.roster_invites=[],i.guest_invites=[],i.pickup_invites=[],i.roster_history=[],i.umpire={registration:[]},i.isDirector==!0?i.url=`/pages/director/${i._key}/${i.name}`:i.rosterHistoryCount>0&&(i.url=`/pages/player/${i._key}/${i.name}`);if(this.failedFuturePayment!=null){let i=e.family.find(d=>d._key==this.failedFuturePayment.playerID);i!=null&&this.loadChildActions(i,()=>{let d=i.individualEventEntry.find(f=>f._key==this.failedFuturePayment.entryID);d!=null&&this.registerForIndividualEventNomination(d,i.name,!0,i)})}this.userVerified=e.verified,this.cards=e.cards,this.states=e.states,this.positions=e.positions,this.family=e.family;let a=e.family?.find(i=>i.relation==="self");this.maxChildrenOverride=a?.maxChildrenOverride??5,this.dataSource=new fe(e.family),this.ngxLoader.stopLoader("myFamily"),this.handleComplianceDeepLink()},error:e=>{this.notify.openWarningModal(e.error?e.error:"An error has occured"),this.ngxLoader.stopLoader("myFamily")}}))}loadChildActions(e,a){if(e){if(e._actionsLoaded){a?.();return}e._actionsLoading||(e._actionsLoading=!0,this.api.get(`Family/childActions/${e._key}`,!0).pipe(M(this._unsubscribeAll)).subscribe({next:i=>{e.individualRegistration=i?.individualRegistration||[],e.individualEventEntry=i?.individualEventEntry||[],e.roster_invites=i?.roster_invites||[],e.guest_invites=i?.guest_invites||[],e.pickup_invites=i?.pickup_invites||[],e.roster_history=i?.roster_history||[],e.umpire=i?.umpire||{registration:[]},e._actionsLoaded=!0,e._actionsLoading=!1,a?.()},error:()=>{e._actionsLoading=!1,this.notify.openWarningModal("We couldn\u2019t load this member\u2019s options. Please try again.")}}))}}eventEntryStatusClass(e){return e==="failed"?"red-600":e==="unpaid"?"yellow-700":"green-700"}extendButton(){alert("this is extend"),this.router.navigateByUrl("/pages/membership")}inviteMyPeople(e){alert("Add "+e+" coming soon.")}
7addChild(e,a){if(!this.userVerified){this.notify.openWarningModal("Please verify your email address to continue. If you verify on another device, you\u2019ll need to log in again.");return}if(this.family.length>=this.maxChildrenOverride&&e=="add"){this.notify.openWarningModal(`You have reached the maximum number of children allowed in your account (${this.maxChildrenOverride}).<br><br>Please contact support for additional assistance.`);return}a||(a={}),this.panelWidthMyPeople=this.isMobile?"100%":"65%",this.dialog.open(In,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:"100%",height:"auto",maxHeight:"90vh",autoFocus:!1,data:{actionName:(e=="add"?"Add":"Edit")+" "+(a?.relation=="self"?"Profile":"Child"),mode:e,id:a._key,relation:a.relation,isCoach:a.isManager,isPlayer:a.relation!="self",positions:this.positions,states:this.states,hasRosterHistory:a.rosterHistoryCount>0}}).afterClosed().subscribe(d=>{d&&setTimeout(()=>{this.getMyFamily()},500)})}hideChild(e){this.api.get("Family/hideChild/"+e,!0).pipe(M(this._unsubscribeAll)).subscribe({next:()=>{this.getMyFamily()},error:a=>{this.notify.openWarningModal(a.error?a.error:"An error has occured")}})}triggerJoinLeague(e,a,i,d){this.panelWidthMyPeople=this.isMobile?"100%":"650px",this.dialog.open(vn,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",minHeight:"300px",maxHeight:"90vh",data:{playerID:e,playerName:a,teamID:i,leagueID:d}}).afterClosed().subscribe(C=>{C&&setTimeout(()=>{this.getMyFamily()},100)})}acceptTeamInvite(e,a,i,d=null,f=null){this.openWaiverPopUp(a,f,d,C=>this.continueTeamInvite(a,d,C))}continueTeamInvite(e,a,i){e.individualRegistrationNeeded?(this.panelWidthMyPeople=this.isMobile?"100%":"650px",this.dialog.open(ui,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{playerID:e.playerID,teamID:e.teamID,selfRegistration:!1,season:e.season}}).afterClosed().subscribe(f=>{f&&setTimeout(()=>{this._acceptTeamInvite(e._key,i)},100)})):e.leagueEntryNeeded?(this.panelWidthMyPeople=this.isMobile?"100%":"650px",this.dialog.open(vn,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{playerID:e.playerID,playerName:a,teamID:e.teamID,leagueID:e.leagueEntryNeeded}}).afterClosed().subscribe(f=>{f&&setTimeout(()=>{this._acceptTeamInvite(e._key,i)},100)})):e.clubDueNeeded?(this.panelWidthMyPeople=this.isMobile?"100%":"650px",this.dialog.open(bn,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{playerID:e.playerID,playerName:a,season:e.season,clubID:e.clubDueData.clubID,clubName:e.clubDueData.clubName,amount:e.clubDueData.amount,period:e.clubDueData.period,cards:this.cards}}).afterClosed().subscribe(f=>{f&&setTimeout(()=>{this._acceptTeamInvite(e._key,i)},100)})):this._acceptTeamInvite(e._key,i)}_acceptTeamInvite(e,a){(a?.signatureName?this.api.post("Roster/acceptWithWaiverData/"+P.siteName+"/"+e,a,!0):this.api.get("Roster/accept/"+P.siteName+"/"+e,!0)).pipe(M(this._unsubscribeAll)).subscribe({next:d=>{if(d?.accessToken){var f=JSON.parse(localStorage.getItem("person"));f.accessToken=d.accessToken,f.refreshToken=d.refreshToken,localStorage.setItem("person",JSON.stringify(f))}this.notify.openToaster("The invite has been accepted","success"),setTimeout(()=>{this.getMyFamily()},100)},error:d=>{this.getMyFamily(),this.notify.openWarningModal(d.error?d.error:"An error has occured")}})}rejectTeamInvite(e,a,i,d){this.api.delete("Roster/reject/"+P.siteName+"/"+a,!0).pipe(M(this._unsubscribeAll)).subscribe({next:()=>{this.notify.openToaster("The invite has been rejected","success"),e.splice(i,1),d&&(d.rosterInviteCount=e.length)},error:f=>{this.notify.openWarningModal(f.error?f.error:"An error has occured")}})}compliancePopUp(e,a,i,d){if(this.isRestricted||i?.restricted==!0)return;this.panelWidthMyPeople=this.isMobile?"100%":"650px",this.dialog.open(ra,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",autoFocus:!1,data:{personID:e,name:a,autoOpenSection:d||null}}).afterClosed().subscribe(C=>{C&&this.getMyFamily()})}handleComplianceDeepLink(){if(this.deepLinkHandled||!this.complianceDeepLink||!this.complianceDeepLink.personID||!this.family||this.family.length===0)return;let e=this.family.find(a=>a._key===this.complianceDeepLink.personID);if(!e){this.notify.openWarningModal("This reminder is for a different account. Please log in to the account that received the email."),this.deepLinkHandled=!0;return}this.deepLinkHandled=!0,setTimeout(()=>{this.compliancePopUp(e._key,e.name,e,this.complianceDeepLink.section)},250)}covid19(){this.notify.openAlertModal("Coming Soon",se.INFO)}umpireEducation(){this.notify.openAlertModal("Coming Soon",se.INFO)}ace(){this.notify.openAlertModal("Coming Soon",se.INFO)}concussion(){this.notify.openAlertModal("Coming Soon",se.INFO)}cpr(){this.notify.openAlertModal("Coming Soon",se.INFO)}safeSportPopUp(e){this.panelWidthMyPeople=this.isMobile?"100%":"900px",this.panelHeightMyPeople=this.isMobile?"100%":"700px",this.dialog.open(Da,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{actionName:"SafeSport Training",userKey:e}}).afterClosed().subscribe(()=>{})}backgroundCheckPopUp(){this.panelWidthMyPeople=this.isMobile?"100%":"515px",this.panelHeightMyPeople=this.isMobile?"100%":"auto",this.dialog.open(Pa,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{actionName:"Backgroun
7d Check",states:this.states}}).afterClosed().subscribe(()=>{})}membershipPopUp(e,a,i){this.panelWidthMyPeople=this.isMobile?"100%":"515px",this.panelHeightMyPeople=this.isMobile?"100%":"auto",this.dialog.open(ui,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{actionName:"Membership",season:e,playerID:a,selfRegistration:i}}).afterClosed().subscribe(f=>{f&&this.getMyFamily()})}guestPlayerModalRef;guestInfo;openGuestPlayerInviteInfoDialog(e,a,i=null){this.guestInfo=e,this.waiverData={accepted:!1},this.waiverRecord={kind:e.isPickup?"pickup":"guest",participant:{type:"person",id:i?._key??e.playerID,name:i?.name},context:{inviteID:e._key,teamID:e.teamID}},this.guestPlayerModalRef=this.dialog.open(a,{width:this.isMobile?"100%":"750px",maxWidth:this.isMobile?"100vw":"95vw",maxHeight:"92vh",panelClass:"gpi-dialog-panel",autoFocus:!1}),this.guestPlayerModalRef.afterClosed().subscribe(d=>{d&&this.getMyFamily()})}acceptGuestInvite(e,a){if(!this.waiverData.accepted){this.agreementNotice();return}if(!e.isPickup&&e.individualRegistrationNeeded&&!e.irCoveredBy){this.openGuestIRPaymentModal(e,a);return}e.loading=!0;let i=e.isPickup?"PickupPlayer":"GuestPlayer";this.api.post(i+"/acceptInvite/"+a,this.waiverData,!0).pipe(M(this._unsubscribeAll)).subscribe({next:d=>{if(e.loading=!1,d?.irPaymentRequired){this.notify.openToaster("We couldn't charge the "+(e.irCoveredBy||"team")+"'s card for the registration fee. Please pay the fee to accept the invite.","warning","",8e3),this.openGuestIRPaymentModal(e,a);return}this.notify.openToaster("The invite has been accepted","success"),this.guestPlayerModalRef.close(!0)},error:d=>{e.loading=!1,this.notify.openWarningModal(d.error?d.error:"An error has occured")}})}openGuestIRPaymentModal(e,a){this.panelWidthMyPeople=this.isMobile?"100%":"650px",this.dialog.open(ui,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{playerID:e.playerID,teamID:e.teamID,selfRegistration:!1,season:e.season}}).afterClosed().subscribe(d=>{d&&(e.individualRegistrationNeeded=!1,this.acceptGuestInvite(e,a))})}rejectGuestInvite(e,a){e.loading=!0,e.rejected=!0;let i=e.isPickup?"PickupPlayer":"GuestPlayer";this.api.post(i+"/rejectInvite/"+a,{reason:e.rejectReason},!0).pipe(M(this._unsubscribeAll)).subscribe({next:()=>{e.loading=!1,this.notify.openToaster("The invite has been rejected","success"),this.guestPlayerModalRef.close(!0)},error:d=>{e.loading=!1,this.notify.openWarningModal(d.error?d.error:"An error has occured")}})}showGuardians(e){let a=this.isMobile?"100%":"90%",i=this.isMobile?"100%":"800px",d=this.dialog.open(Oa,{panelClass:"p12-dialog-container",width:a,maxWidth:"850px",height:"auto",maxHeight:"90vh",data:{personId:e._key,name:e.name}})}umpireRegistrationPopUp(e){if(this.isRestricted){this.notify.openWarningModal("Your account has been restricted!");return}if(P.umpireRegistrationNotAllowed==!0){this.notify.openWarningModal("<b>Officials/Umpire registration is not allowed for this site!</b><br><br>Please visit your state's USA Softball website to register as an umpire.");return}let a=typeof e=="string"?e:e?._key,i=typeof e=="object"&&e?.relation==="child",d=typeof e=="object"?e?.name:"",f=()=>{this.panelWidthMyPeople=this.isMobile?"100%":"515px",this.panelHeightMyPeople=this.isMobile?"100%":"50vh",this.dialog.open(ka,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{actionName:"Officials Registration",personID:a,personName:d}}).afterClosed().subscribe(L=>{L&&this.getMyFamily()})};if(i){let C=this.dialog.open(Dt,{disableClose:!1,width:"500px"});C.componentInstance.title="This is Umpire Registration \u2014 Not Player Registration!",C.componentInstance.confirmMessage=`You are about to register <b>${d}</b> as an <b>Umpire (Game Official)</b>.<br><br>This signs them up to <b>officiate games</b>, not to play in them.<br><br>If you meant to register your child as a player, please <b>Cancel</b> and choose <b>Join a Team</b>, or <b>Join a League</b> instead.<br><br><b>Important:</b> Umpire registration fees are <b>non-refundable</b> and cannot be transferred to a player registration after payment. Please make sure this is what you want before continuing.`,C.componentInstance.confirmLabel="Yes, register as Umpire",C.componentInstance.cancelLabel="Cancel",C.componentInstance.isRed=!0,C.afterClosed().subscribe(L=>{L&&f()});return}f()}educationPopUp(){this.notify.openAlertModal("Coming Soon",se.INFO)}umpirePopUp(){this.notify.openAlertModal("Coming Soon",se.INFO)}
7joinTeamPopUp(e){if((P.siteName=="bsc"||P.siteName=="isc")&&e.driverLicenseVerified!=!0){this.notify.openWarningModal("Please verify your identity by uploading your driver license to join a team roster!");return}this.panelWidthMyPeople=this.isMobile?"100%":"600px",this.panelHeightMyPeople=this.isMobile?"100%":"auto",e.relation=="child"||e.relation=="self"&&e.hasPlayerProfile?this.dialog.open(Ea,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{actionName:"Join Team",playerID:e._key,playerName:e.name}}).afterClosed().subscribe(i=>{i&&(i?.triggerJoinLeague?this.triggerJoinLeague(i.playerID,i.playerName,i.teamID,i.leagueID):setTimeout(()=>{this.getMyFamily()},500))}):this.dialog.open(In,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,minWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{actionName:"Edit Adult Player Profile",mode:"edit",relation:"self",incompleteProfile:!0,positions:this.positions,states:this.states}}).afterClosed().subscribe(i=>{i&&(e.hasPlayerProfile=!0,this.joinTeamPopUp(e))})}joinLeaguePopUp(e){this.panelWidthMyPeople=this.isMobile?"100%":"600px",this.dialog.open(vn,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{actionName:"Join League",playerID:e._key,playerName:e.name}}).afterClosed().subscribe(i=>{i&&setTimeout(()=>{this.getMyFamily()},500)})}individualRegistrationStatus(e,a){if(!Array.isArray(e)||e.length===0)return!1;if(a=="registered"){let i=!0;return e.forEach(d=>{i=i&&d.registration!=null}),i}else if(a=="pending"){let i=!1;return e.forEach(d=>{i=i||d.registration==null}),i}return null}openBracketLegendMyFamily(){this.bottomSheet.open(on,{panelClass:an,data:{title:"My Family Legend",html:`<ng-container> 8 <span class="badge-box red">Required-Red</span> 9 <span class="badge-box yellow">Review-Yellow</span> 10 <span class="badge-box green">Completed-Green</span> 11 <span class="badge-box gray">Optional-Grey</span> 12 </ng-container>`}})}isBtnVisible(e,a){return a.relation!="self"||((P.siteName=="usasb-mn"||P.siteName=="usasb-md"||P.siteName=="usasb-fl")&&(a._key=="28255164"||a._key=="28256033"||a._key=="28256099"||a._key=="3594762")&&(this.demoMode=!0),P.siteName=="registerplay"&&(e=="ace"||e=="moreAce"||e=="safeSport"||e=="moreSafeSport"||e=="background"&&!(a.isUmpire||a.isStaff||a.isDirector||a.isManager)||e=="umpireRegistration"&&a.relation!="self"||e=="umpireEducation"&&!a.isUmpire||e=="moreBackgroun
12d"&&(a.isUmpire||a.isStaff||a.isDirector||a.isManager)||e=="moreumpireEducation"&&!a.isUmpire)),!1}registerForIndividualEventNomination(e,a,i=!1,d=null){this.panelWidthMyPeople=this.isMobile?"100%":"50vw",e.playerName=a,e.eventID==null||!e.fullyPaid||e.entryAllowed||e.waitlistAllowed||e.canJoinWaitlist||e.fullyPaid||e.waitlisted?e.entryAllowed||e.waitlistAllowed?this.dialog.open(Rn,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{failedFuturePayment:e.futureChargeFailed,futureCharge:e.futureCharge,person:e,participant:{id:d?._key,name:d?.name},cards:i?[]:this.cards,positions:this.positions.filter(C=>C.sports.indexOf(e.sport)>-1)}}).afterClosed().subscribe(C=>{C&&this.getMyFamily()}):e.fullyPaid||e.waitlisted||e.canJoinWaitlist?this.dialog.open(Rn,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:"auto",maxHeight:"90vh",data:{person:e,participant:{id:d?._key,name:d?.name},waitlist:e.waitlisted||e.canJoinWaitlist,positions:this.positions.filter(C=>C.sports.indexOf(e.sport)>-1)}}).afterClosed().subscribe(C=>{C&&this.getMyFamily()}):this.notify.openWarningModal("Player registrations for this event has been closed!"):this.router.navigateByUrl("/pages/event/"+e.eventID)}openRSVPDialog(e){gtag("event","TA-openRSVPDialog4Family",{event_category:"Team Activity",event_label:"openRSVPDialog4Family",value:e}),this.dialog.open(Va,{width:"900px",maxWidth:"90vw",height:"auto",minHeight:"400px",maxHeight:"90vh",data:{personID:e}})}openCalendarSync(){gtag("event","MF-openCalendarSync",{event_category:"My Family",event_label:"openCalendarSync"}),this.dialog.open(Fa,{width:"480px",maxWidth:"90vw",height:"auto",maxHeight:"90vh"})}applyFilter(e){this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}closeButton(){this.searchInput="",this.applyFilter("")}individualEventEntryClass(e){let a="green-700";return e.forEach(i=>{i.futureChargeFailed==!0?a="red-600":i.fullyPaid||(a="yellow-700")}),a}person4IDCard;hasComplianceRecords;idCardLoading=!1;openIDCard(e,a){this.person4IDCard=e,this.person4IDCard.dob=this.idCardPrint.formatBirthday(e.birthday),this.person4IDCard.roles="";let i="";this.hasComplianceRecords=!1,this.idCardLoading=!0,this.panelWidthMyPeople=this.isMobile?"98%":"400px",this.panelHeightMyPeople="auto";let d=this.dialog.open(a,{panelClass:"p12-dialog-container",width:this.panelWidthMyPeople,maxWidth:this.panelWidthMyPeople,height:this.panelHeightMyPeople,maxHeight:this.panelHeightMyPeople});this.api.get(`Family/getCompliance/${e._key}`,!0).pipe(M(this._unsubscribeAll)).subscribe({next:f=>{if(f.isDirector&&(this.person4IDCard.isDirector=!0,this.person4IDCard.roles+=i+"DIRECTOR ",i=" / "),f.isUmpire&&(this.person4IDCard.isUmpire=!0,this.person4IDCard.umpireSeason=f.umpireSeason,this.person4IDCard.roles+=i+"UMPIRE ",i=" / "),f.isPlayer&&(this.person4IDCard.isPlayer=!0,this.person4IDCard.roles+=i+"PLAYER ",i=" / "),f.IRRegisteredSeason!=null&&(this.person4IDCard.IRRegisteredSeason=f.IRRegisteredSeason,this.person4IDCard.roles+=i+"IR-"+f.IRRegisteredSeason,i=" / "),f.isCoach&&(this.person4IDCard.isCoach=!0,this.person4IDCard.roles+=i+"COACH "),this.person4IDCard.primaryRole=f.isDirector?"DIRECTOR":f.isUmpire?"UMPIRE":f.isPlayer?"PLAYER":f.isCoach?"COACH":"PLAYER",f.ace&&f.visibility?.ace!=="hidden"&&(this.person4IDCard.ace=f.ace,this.person4IDCard.ace.class=this.getComplianceStatusClass(f.ace.status),this.person4IDCard.ace.icon=this.getComplianceStatusIcon(f.ace.status),this.person4IDCard.ace.icon=="error_outline"&&this.person4IDCard.ace.status=="optional"?this.person4IDCard.ace=null:this.person4IDCard.ace?.status=="completed"&&(this.hasComplianceRecords=!0)),f.backgroundCheck&&f.visibility?.backgroundCheck!=="hidden"&&(this.hasComplianceRecords=!0,this.person4IDCard.backgroundCheck=f.backgroundCheck,this.person4IDCard.backgroundCheck.class=this.getComplianceStatusClass(f.backgroundCheck.status),this.person4IDCard.backgroundCheck.icon=this.getComplianceStatusIcon(f.backgroundCheck.status)),f.concussion&&f.visibility?.concussion!=="hidden"&&(this.hasComplianceRecords=!0,this.person4IDCard.concussion=f.concussion,this.person4IDCard.concussion.class=this.getComplianceStatusClass(f.concussion.status),this.person4IDCard.concussion.icon=this.getComplianceStatusIcon(f.concussion.status)),f.safeSport&&f.visibility?.s
12afeSport!=="hidden"&&(this.hasComplianceRecords=!0,this.person4IDCard.safeSport=f.safeSport,this.person4IDCard.safeSport.class=this.getComplianceStatusClass(f.safeSport.status),this.person4IDCard.safeSport.icon=this.getComplianceStatusIcon(f.safeSport.status)),this.person4IDCard.isPlayer&&f.birthCertificate&&f.visibility?.birthCertificate!=="hidden"){this.hasComplianceRecords=!0;let C=f.birthCertificate.status==="completed";this.person4IDCard.birthCertificate={status:C?"completed":"pending",verified:C,class:C?"green-600":"red-600"}}this.idCardLoading=!1},error:f=>{this.idCardLoading=!1,d.close(),this.notify.openErrorModal(f.error?f.error:"An error has occured")}})}gotoUmpireExam(e){this.router.navigateByUrl(`/pages/lms/course/${e}-UMPIRE-EXAM`)}getComplianceStatusClass(e){return e=="expired"?"red-600":e=="expiring"?"dark-orange":e=="completed"?"green-600":"red-600"}getComplianceStatusIcon(e){return e=="expired"?"error_outline":e=="expiring"?"history_toggle_off":e=="completed"?"verified":"error_outline"}printIDCard(){if(!this.person4IDCard){this.notify.openWarningModal("No ID card data available for printing.");return}this.idCardPrint.printCards([this.person4IDCard],{directorLogo:this.getDirectorLogo()})}addToAppleWallet(){if(!this.person4IDCard||!this.person4IDCard._key){this.notify.openWarningModal("No ID card data available.");return}let e=this.person4IDCard._key;this.api.get(`AppleWallet/downloadToken/${e}`,!0).pipe(M(this._unsubscribeAll)).subscribe({next:a=>{if(!a?.token){this.notify.openWarningModal("We couldn\u2019t create the wallet pass. Please try again.");return}window.location.href=`${P.apiUrl}api/AppleWallet/pass/${e}?token=${a.token}`},error:()=>{this.notify.openWarningModal("We couldn\u2019t create the wallet pass. Please try again.")}})}getDirectorLogo(){return P.association==="usasb"?"https://picture.nyc3.cdn.digitaloceanspaces.com/customize-images/usasb/toolBarLogo.png":this.fuseConfig.directorLogo}openWaiverPopUp(e,a,i,d){this.waiverData={accepted:!1},this.waiverRecord={kind:"roster",participant:{type:"person",id:e.playerID,name:i},context:{inviteID:e._key,teamID:e.teamID}};var f=this.dialog.open(a,{width:"900px",maxWidth:"90vw",height:"auto",minHeight:"400px",maxHeight:"90vh"});f.afterClosed().subscribe(C=>{C&&d(this.waiverData)})}waiverData={accepted:!1};waiverRecord=null;agreementNotice(){this.waiverData.signatureName==null?(this.notify.openAlertModal("Please click on the waiver & read through.",se.INFO),this.waiverData.accepted=!1):this.waiverData.accepted=!0}onAgreementAccepted(e){e.accepted&&(this.waiverData={signatureName:e.eSignatureName,IDNumber:e.IDNumber,accepted:!0})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(U),x(De),x(ue),x(G),x(Wt),x($),x(Yn),x(Fi),x(re),x(no),x(Ei),x(ee),x(Ca))};static \u0275cmp=j({type:t,selectors:[["my-people-v2"]],inputs:{failedFuturePayment:"failedFuturePayment",complianceDeepLink:"complianceDeepLink"},decls:24,vars:8,consts:[["guestPlayerInvitationInfo",""],["IDCard",""],["waiverPopup",""],["actions1","matMenu"],["nominate4","matMenu"],["member4","matMenu"],["teamInviteOptions","matMenu"],["team_menu","matMenu"],["history","matMenu"],["pickupInviteOptions","matMenu"],["guestInviteOptions","matMenu"],["umpireRegistration","matMenu"],["personMenu","matMenu"],["indvEntry","matMenu"],["indvRegistration","matMenu"],["rosterInvite","matMenu"],["guestInvite","matMenu"],["rosterHistory","matMenu"],["loaderId","myFamily",3,"fgsSize"],[1,"flex-center",2,"margin-bottom","10px"],[1,"events-header"],[1,"accent-bar"],[1,"header-content"],[1,"title-section","w-100-p"],[2,"display","flex","align-items","center","gap","10px"],[1,"material-icons",2,"color","#1976d2"],[3,"ngClass"],["topic","family/familyMembers"],[1,"mr-4",2,"display","flex","align-items","center","flex-wrap","wrap","gap","8px","justify-content","flex-end"],["id","btnSyncToCalendar","mat-flat-button","","matTooltip","Sync to Apple Calendar",1,"btn-boxed","btn-apple-cal"],["mat-raised-button","",1,"mr-8","btn-boxed","primary"],[1,"mp-table-wrapper"],["href","https://www.memberdeals.com/bscsoftball/?login=1","target","_blank"],["alt","BSC member banner",1,"m-16","mat-elevation-z10","link",3,"src"],["href","https://www.memberdeals.com/indigenoussportscircuit/?login=1","target","_blank"],["alt","ISC member banner",1,"m-16","mat-elevation-z10","link",3,"src"],["id","btnSyncToCalendar","mat-flat-button","","matTooltip","Sync to Apple Calendar",1,"btn-boxed","btn-apple-cal",3,"click"],[1,"btn-apple-cal__inner"],["viewBox","0 0 24 24","aria-hidden","true",1,"btn-apple-cal__icon"],["x","2","y","3","width","20","height","18","rx","4","fill","#ffffff"],["d","M2,9 V7 A4,4 0 0 1 6,3 H18 A4,4 0 0 1 22,7 V9 Z","fill","#fa3e3b"],["x","12","y","7.4","text-anchor","middle","font-size","3.4","font-weight","700","fill","#ffffff","font-family","Helvetica, Arial, sans-serif"],["x","12","y","18.5","text-anchor","middle","font-size","9","font-weight","700","fill","#1d1d1f","font-family","Helvetica, Arial, sans-serif"],[1,"btn-apple-cal__label"],["mat-raised-button","",1,"mr-8","btn-boxed","primary",3,"click"],["mat-table","","recycleRows","",1,"mp-table","w-100-
12p",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","class","pl-8",4,"matHeaderCellDef"],["mat-cell","","class","px-8 mp-name-cell-td",3,"ngClass",4,"matCellDef"],["matColumnDef","contactInfo"],["mat-header-cell","","class","center pl-8",4,"matHeaderCellDef"],["mat-cell","","class","center pl-8",4,"matCellDef"],["matColumnDef","action"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-header-row","","class","mp-table-header-row",4,"matHeaderRowDef"],["mat-row","",3,"row-even","row-odd",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["mat-header-cell",""],["mat-cell","",1,"center"],["matTooltip","Birth certificate verified","matTooltipClass","mat-tooltip-big",1,"material-icons","green-fg","ml-8"],["matTooltip","Driver license verified","matTooltipClass","mat-tooltip-big",1,"material-icons","blue-fg","ml-8"],["mat-header-cell","",1,"pl-8"],["mat-cell","",1,"px-8","mp-name-cell-td",3,"ngClass"],[1,"mp-name-cell"],[1,"mp-name-cell__text"],[1,"mp-name-cell__name"],[1,"mp-name-cell__name-link",3,"routerLink"],[1,"font-weight-900"],[1,"mp-name-cell__meta","text-capitalize"],[1,"mp-name-cell__relation"],[1,"mp-name-cell__rating"],[1,"mp-name-cell__access",3,"mp-name-cell__access--restricted"],[1,"mp-name-cell__actions"],["type","button","mat-icon-button","","matTooltip","Edit profile",1,"mp-name-cell__action-btn",3,"click"],["svgIcon","mpPersonEdit",1,"mp-name-cell__svg-icon"],["type","button","mat-icon-button","","matTooltip","ID card",1,"mp-name-cell__action-btn"],[1,"mp-name-cell__access"],["type","button","mat-icon-button","","matTooltip","ID card",1,"mp-name-cell__action-btn",3,"click"],["svgIcon","idCard",1,"mp-name-cell__svg-icon"],["mat-header-cell","",1,"center","pl-8"],["mat-cell","",1,"center","pl-8"],["mat-stroked-button","",1,"mr-4","btn-sm","btn-boxed","my-4","light-green-200"],["mat-stroked-button","",1,"mr-4","btn-sm","btn-boxed","my-4","light-green-200",3,"click"],["mat-header-cell","",1,"center"],[2,"display","flex","flex-direction","row","align-items","center","justify-content","space-between","width","100%","gap","8px"],[2,"display","flex","align-items","center"],["mat-icon-button","",3,"click"],["mat-raised-button","",1,"primary",2,"height","30px","font-size","12px","padding","0 12px"],["mat-raised-button","",1,"primary",2,"height","30px","font-size","12px","padding","0 12px",3,"click"],[2,"font-size","15px","height","15px","width","15px","margin-right","4px","vertical-align","middle"],[1,"people-action-group"],["mat-button","","matTooltip","You have an event entry that still needs to be paid. Tap to finish your payment.",1,"btn-sm","btn-boxed","action-chip-btn","yellow-700",3,"routerLink"],["mat-stroked-button","",1,"btn-sm","btn-boxed","action-chip-btn","blue-600"],["mat-stroked-button","",1,"btn-sm","btn-boxed","action-chip-btn"],["mat-stroked-button","",1,"btn-sm","btn-boxed","action-chip-btn",3,"ngClass"],["mat-stroked-button","",1,"btn-sm","btn-boxed","action-chip-btn",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-button","",1,"btn-sm","btn-boxed","action-chip-btn",3,"menuOpened","ngClass","matMenuTriggerFor"],[1,"flex-center"],[1,"notificationBell",3,"color"],["yPosition","below",1,"startOverMenu"],["mat-menu-item","","disabled","",1,"mp-menu-loading"],[1,"mp-spinner"],["mat-menu-item","",3,"click"],[1,"text-bold"],[1,"red-600","mx-auto","mt-8","px-12","py-4","border-radius-4",2,"max-width","fit-content"],["mat-button","",1,"btn-sm","btn-boxed","action-chip-btn",3,"menuOpened","matMenuTriggerFor","ngClass"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",1,"green-fg","text-bold"],[1,"green-fg","text-bold"],[1,"red-fg","text-bold"],["mat-stroked-button","",1,"btn-sm","btn-boxed","action-chip-btn","blue-600",3,"click"],["mat-stroked-button","",1,"btn-sm","btn-boxed","action-chip-btn",3,"click"],["mat-button","",1,"amber","btn-sm","btn-boxed","action-chip-btn",3,"menuOpened","matMenuTriggerFor"],["yPosition","below",1,"rosterInviteMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],[1,"mr-24"],[1,"bold","green-fg"],[1,"bold","red-fg"],[1,"bold","blue-fg"],["mat-stroked-button","",1,"btn-sm","btn-boxed","action-chip-btn",3,"menuOpened","matMenuTriggerFor"],["mat-menu-item","",3,"routerLink","light-green-200"],["mat-button","",1,"amber-A400","btn-sm","btn-boxed","action-chip-btn",3,"menuOpened","matMenuTriggerFor"],[1,"small","mt-8",2,"display","inline-block"],["mat-button","",1,"lime-A400","btn-sm","btn-boxed","action-chip-btn",3,"menuOpened","matMenuTriggerFor"],["mat-menu-item","",1,"green-fg",3,"click"],["mat-menu-item","",1,"blue-fg"],["mat-menu-item","",1,"blue-fg",3,"click"],["mat-stroked-button","",1,"btn-sm","btn-boxed","action-chip-btn",3,"click","ngClass"],["mat-header-row","",1,"mp-table-header-row"],["mat-row",""],[1,"mat-row"],["colspan","4",1,"mat-cell"],[1,"flex-justify-center","border-bottom",3,"ngClass"],[1,"flex-start-center"],["svgIcon","idCard",1,"link","mr-8","primary-fg"],[1,"h4"],[3,"routerLink"],[1,"text-boxxed"],["mat-button","",1,"my-8","mat-elevation-z4",2,"max-width","fit-content",3,"matMenuTriggerFor"],["mat-menu-item","",3,"ngClass"],["svgIcon","idCard",1,"link","mr-8","primary-fg",3,"click"],["mat-button","",1,"my-8","mat-elevation-z4",2,"max-width","fit-content",3,"menuOpened","matMenuTriggerFor"],[1,"material-icons"],["yPosition","below"],["mat-menu-item","",3,"click","ngClass"],[1,"dialog-content-wrapper","guestPlayerInvitationInfo"],[1,"gpi-header"],[1,"gpi-header__title"],["mat-icon-button","","aria-label","Close",1,"gpi-header__close",3,"mat-dialog-close"],["mat-dialog-content","",1,"gpi-content"],[1,"gpi-cards"],[1,"gpi-card"],[1,"gpi-card__head"],[1,"gpi-list"],[1,"gpi-row"],[3,"routerLink","mat-dialog-close"],[1,"gpi-ir-note"],[1,"gpi-waiver"],[1,"gpi-waiver__icon"],[1,"gpi-waiver__check",3,"click"],["required","","name","guestWaiverAccepted",3,"ngModelChange","ngModel"],[3,"agreementAccepted","file","label","record"],[1,"gpi-reject"],["mat-dialog-actions","",1,"gpi-actions"],[1,"gpi-ir-note__icon"],["appearance","fill",1,"w-100-p"],["matInput","","name","rejectReason","rows","2",3,"ngModelChange","ngModel"],["mat-stroked-button","",3,"click","disabled"],["mat-flat-button","",1,"gpi-btn","gpi-btn--danger",3,"click","disabled"],["mat-stroked-button","",1,"gpi-btn","gpi-btn--reject",3,"click","disabled"],["mat-flat-button","",1,"gpi-btn","gpi-btn--accept",3,"click","disabled"],["mat-dialog-content","",1,"id-card-dialog"],[1,"id-card-container"],[1,"id-card-header"],[1,"id-card-header-content"],["alt","Logo",1,"id-card-logo",3,"src"],[1,"id-card-body"],[1,"id-card-background-pattern"],[1,"id-card-photo-section"],[1,"ph
12oto-wrapper"],[1,"photo-frame","primary-bg"],["alt","Profile Photo",1,"id-card-photo",3,"src"],[1,"photo-placeholder"],[1,"verified-badge"],[1,"id-card-info-section"],[1,"person-name"],[1,"person-id"],[1,"person-location"],[1,"id-card-compliance-loading"],[1,"id-card-role-section"],[1,"id-card-compliance-section"],[1,"id-card-actions","no-print"],["mat-raised-button","","matTooltip","Add to Apple Wallet",1,"apple-wallet-btn",3,"disabled"],["mat-icon-button","","matTooltip","Print ID Card",1,"action-btn","print",3,"click","disabled"],["mat-icon-button","","matTooltip","Close",1,"action-btn","close",3,"mat-dialog-close"],[1,"mp-spinner","mp-spinner--lg"],[1,"role-badge"],[1,"compliance-title"],[1,"compliance-badges"],[1,"compliance-badge","status-completed"],[3,"class"],[1,"badge-icon"],[1,"badge-content"],[1,"badge-label"],[1,"badge-expiry"],[1,"expired-text"],["mat-raised-button","","matTooltip","Add to Apple Wallet",1,"apple-wallet-btn",3,"click","disabled"],["src","assets/logos/Add2AppleWallet.svg","alt","Add to Apple Wallet","height","40"],["mat-dialog-content","",1,"p-12","mat-elevation-z4"],[1,"material-icons","link",2,"float","right",3,"mat-dialog-close"],[1,"h2","text-center","primary","p-8"],[1,"flex-start-center","p-24"],[3,"click"],["required","","name","waiverAccepted",3,"ngModelChange","ngModel"],[1,"text-center","mt-12"],["mat-button","",1,"grey-300",3,"mat-dialog-close"],["mat-button","",1,"primary","ml-24",3,"mat-dialog-close","disabled"]],template:function(a,i){a&1&&(v(0,"ngx-ui-loader",18),m(1,yp,3,2,"div",19),m(2,Mp,3,2,"div",19),n(3,"div",20),v(4,"div",21),n(5,"div",22)(6,"div",23)(7,"div",24)(8,"span",25),l(9," groups_2 "),o(),n(10,"div",26),l(11,"Family Members"),o(),v(12,"help-button",27),o(),n(13,"div",28),m(14,wp,11,3,"button",29),m(15,Sp,2,0,"button",30),o()()()(),m(16,R0,17,3,"div",31),m(17,y_,3,0,"div"),I(18,I_,70,19,"ng-template",null,0,Nt)(20,J_,31,14,"ng-template",null,1,Nt)(22,Y_,16,7,"ng-template",null,2,Nt)),a&2&&(_("fgsSize",75),r(),p(i.isBSC?1:-1),r(),p(i.isISC?2:-1),r(8),_("ngClass",i.isMobile?"h3":"h2"),r(4),p(i.showCalendarSync?14:-1),r(),p(i.isMobile?15:-1),r(),p(i.isMobile?-1:16),r(),p(i.isMobile?17:-1))},dependencies:[he,Ce,K,ie,Ut,Ct,qe,rt,st,pt,dt,lt,_t,ct,mt,ut,gt,ft,Ot,qt,wt,vt,Y,te,J,ae,Me,li,ai,oi,ri,Et,Li,oe,Ke,Oi,ye,Ve,Se,we,Fe,Be,X,ce,ne,Te,me,hn,Gt,We,Ne,Ai,Ri,Ue],styles:['@charset "UTF-8";.mp-table-wrapper[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;box-shadow:0 1px 4px #00000014;border:1px solid #eaecf0;overflow-x:auto;margin:8px 0}.mp-table[_ngcontent-%COMP%]{border-collapse:collapse;font-family:Open Sans,Open Sans Condensed,sans-serif;font-size:14px}.mp-table[_ngcontent-%COMP%] .mp-table-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]{background:#eaecf0;font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#4a5568;white-space:nowrap;padding:8px 10px;border-bottom:2px solid #e0e0e0;border-right:1px solid #e0e0e0}.mp-table[_ngcontent-%COMP%] .mp-table-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}.mp-table[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px;border-right:1px solid #e0e0e0;border-bottom:1px solid rgb(234.2,234.2,234.2);vertical-align:middle}.mp-table[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}.mp-table[_ngcontent-%COMP%] .row-even[_ngcontent-%COMP%]{background:#fff}.mp-table[_ngcontent-%COMP%] .row-odd[_ngcontent-%COMP%]{background:#f9fafb}.mp-table[_ngcontent-%COMP%] tr.mat-mdc-row[_ngcontent-%COMP%]{transition:background-color .15s ease;height:48px}.mp-table[_ngcontent-%COMP%] tr.mat-mdc-row[_ngcontent-%COMP%]:hover{background-color:#eef2f7!important}.mp-table[_ngcontent-%COMP%] td.mat-column-name[_ngcontent-%COMP%]{vertical-align:middle;min-width:0}.mp-name-cell[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.mp-name-cell__text[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.mp-name-cell__name[_ngcontent-%COMP%]{font-size:14px;line-height:1.3;
12color:#1a202c;letter-spacing:-.01em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mp-name-cell__name[_ngcontent-%COMP%] .mp-name-cell__name-link[_ngcontent-%COMP%]{color:inherit;text-decoration:none;border-bottom:1px solid transparent;transition:border-color .15s ease,color .15s ease}.mp-name-cell__name[_ngcontent-%COMP%] .mp-name-cell__name-link[_ngcontent-%COMP%]:hover{color:#2563eb;border-bottom-color:#2563eb59}.mp-name-cell__meta[_ngcontent-%COMP%]{margin-top:2px;font-size:12px;line-height:1.35;color:#64748b;font-weight:500;font-style:normal;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.mp-name-cell__relation[_ngcontent-%COMP%]{font-weight:600;color:#475569}.mp-name-cell__rating[_ngcontent-%COMP%]{font-weight:500}.mp-name-cell__access[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#0d9488}.mp-name-cell__access--restricted[_ngcontent-%COMP%]{color:#c2410c}.mp-name-cell__actions[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;gap:2px}.mp-name-cell__action-btn[_ngcontent-%COMP%]{width:36px!important;height:36px!important;padding:0!important;color:#64748b!important;transition:color .15s ease,background-color .15s ease}.mp-name-cell__action-btn[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{height:36px!important;width:36px!important}.mp-name-cell__action-btn[_ngcontent-%COMP%]:hover{color:#2563eb!important;background-color:#2563eb0f!important}.mp-name-cell__svg-icon[_ngcontent-%COMP%]{width:20px!important;height:20px!important;line-height:20px!important}.mp-name-cell__svg-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:20px;height:20px}.center[_ngcontent-%COMP%]{text-align:center}.mat-mdc-menu-panel.addFamilyClass[_ngcontent-%COMP%]{min-width:187px!important;max-width:187!important}.blue-grey[disabled][_ngcontent-%COMP%]{background-color:#cedce3!important;color:#ffffffe6!important}.btn-longMenu[_ngcontent-%COMP%]{white-space:break-spaces;height:auto;line-height:2rem}.people-action-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px;padding:4px 0}.action-chip-btn[_ngcontent-%COMP%]{border-radius:20px!important;height:35px!important;min-height:35px!important;line-height:35px!important;padding:0 16px!important;font-size:13px!important;font-weight:500!important;letter-spacing:.2px!important;min-width:unset!important;margin:0!important;transition:transform .15s ease,box-shadow .15s ease!important}.action-chip-btn[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{height:35px!important}.action-chip-btn[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:17px!important;height:17px!important;width:17px!important;line-height:17px!important;vertical-align:middle!important;margin:0 2px -2px!important}.action-chip-btn[_ngcontent-%COMP%]:not([disabled]):hover{transform:translateY(-1px);box-shadow:0 3px 8px #0003!important}@media screen and (max-width:768px){.mat-mdc-menu-item[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:0}.mat-mdc-row[_ngcontent-%COMP%]{height:auto}.mat-mdc-row[_ngcontent-%COMP%] td.mat-column-position[_ngcontent-%COMP%]{display:none!important}.mat-mdc-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-action){display:flex;word-break:break-word}.mat-mdc-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-action) > *[_ngcontent-%COMP%]{grid-column:1}.mat-mdc-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-action):before{display:none}.mp-name-cell[_ngcontent-%COMP%] .mp-name-cell__name[_ngcontent-%COMP%]{font-size:18px}}.green-700[_ngcontent-%COMP%] .notificationBell[_ngcontent-%COMP%]{display:none} .mat-mdc-menu-panel{max-width:fit-content!important} .mat-mdc-menu-item{padding:0 5px!important} .rosterInviteMenu.mat-mdc-menu-panel{min-width:fit-content!important;max-width:auto!important}.guestPlayerInvitationInfo.dialog-content-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:92vh;box-sizing:border-box;overflow:hidden;border-radius:14px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-header[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px 14px 20px;color:#fff;background:linear-gradient(135deg,#1976d2,#0d47a1)}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-header__title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;letter-spacing:.2px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-header__title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px;height:24px;width:24px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-header__close[_ngcontent-%COMP%]{color:#ffffffe6;flex:0 0 auto}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-header__close[_ngcontent-%COMP%]:hover{color:#fff}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-content[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:20px;background:#f5f7fa}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}@media(max-width:560px){.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-cards[_ngcontent-%COMP%]{grid-template-columns:1fr}}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e6e9ef;border-radius:10px;padding:14px 16px;box-shadow:0 1px 2px #1018280a,0 4px 14px #1018280f}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-card__head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #eef1f5;color:#0d47a1;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.6px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-card__head[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;height:20px;width:20px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-list[_ngcontent-%COMP%]{margin:0}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:6px 0}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-row[_ngcontent-%COMP%] + .gpi-row[_ngcontent-%COMP%]{border-top:1px dashed #eef1f5}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-row[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{flex:0 0 auto;color:#667085;font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-row[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{flex:1 1 auto;margin:0;text-align:right;font-size:14px;font-weight:600;color:#1d2939;word-break:break-word}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1976d2;font-weight:600;text-decoration:none}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-ir-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:16px;padding:12px 14px;background:#fff;border:1px solid #bbdefb;border-left:4px solid #1976d2;border-radius:8px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-ir-note__icon[_ngcontent-%COMP%]{color:#1976d2;font-size:22px;height:22px;width:22px;flex:0 0 auto}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-waiver[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:16px;padding:12px 14px;background:#fff;border:1px solid #ffe0b2;border-left:4px solid #fb8c00;border-radius:8px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-waiver__icon[_ngcontent-%COMP%]{color:#fb8c00;font-size:22px;height:22px;width:22px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-waiver__check[_ngcontent-%COMP%]{display:inline-flex}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-waiver--signed[_ngcontent-%COMP%]{border-color:#c8e6c9;border-left-color:#43a047}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-waiver--signed[_ngcontent-%COMP%] .gpi-waiver__icon[_ngcontent-%COMP%]{color:#43a047}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-reject[_ngcontent-%COMP%]{margin-top:16px}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-reject[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-actions[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin:0;padding:14px 20px;background:#fff;border-top:1px solid #eef1f5}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-actions[_ngcontent-%COMP%] .gpi-btn[_ngcontent-%COMP%]{min-width:120px;border-radius:8px;font-weight:600}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-actions[_ngcontent-%COMP%] .gpi-btn--accept[_ngcontent-%COMP%]:not(:disabled):not(.mat-mdc-button-disabled){background:#2e7d32;color:#fff}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-actions[_ngcontent-%COMP%] .gpi-btn--danger[_ngcontent-%COMP%]:not(:disabled):not(.mat-mdc-button-disabled){background:#c62828;color:#fff}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-actions[_ngcontent-%COMP%] .gpi-btn--reject[_ngcontent-%COMP%]:not(:disabled):not(.mat-mdc-button-disabled){color:#c62828;border-color:#c6282866}.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-actions[_ngcontent-%COMP%] .gpi-btn[_ngcontent-%COMP%]:disabled, .guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-actions[_ngcontent-%COMP%] .gpi-btn.mat-mdc-button-disabled[_ngcontent-%COMP%]{background:#e0e0e0;color:#00000061}@media(max-width:560px){.guestPlayerInvitationInfo[_ngcontent-%COMP%] .gpi-actions[_ngcontent-%COMP%] .gpi-btn[_ngcontent-%COMP%]{flex:1 1 auto}}.id-card-dialog[_ngcontent-%COMP%]{padding:0!important;background:transparent;overflow:visible}.id-card-container[_ngcontent-%COMP%]{position:relative;width:380px;max-width:100%;background:linear-gradient(135deg,#fff,#f8f9fa);border-radius:16px;overflow:hidden;box-shadow:0 10px 40px #00000026,0 0 0 1px #0000000d,inset 0 1px #ffffffe6;--role-primary: #1976d2;--role-secondary: #2196f3;--role-gradient: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%)}.id-card-container[data-role=PLAYER][_ngcontent-%COMP%]{--role-primary: #1976d2;--role-secondary: #2196f3;--role-gradient: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%)}.id-card-container[data-role=COACH][_ngcontent-%COMP%]{--role-primary: #78fe6c;--role-secondary: #78fe6c;--role-gradient: linear-gradient(135deg, #78fe6c 0%, #78fe6c 100%)}.id-card-container[data-role=DIRECTOR][_ngcontent-%COMP%]{--role-primary: #8900bf;--role-secondary: #8900bf;
12--role-gradient: linear-gradient(135deg, #8900bf 0%, #8900bf 100%)}.id-card-container[data-role=UMPIRE][_ngcontent-%COMP%]{--role-primary: #dd3400;--role-secondary: #dd3400;--role-gradient: linear-gradient(135deg, #dd3400 0%, #dd3400 100%)}.id-card-header[_ngcontent-%COMP%]{position:relative;background:#f0f0f099;padding:16px 20px 12px;z-index:2}.id-card-header-content[_ngcontent-%COMP%]{text-align:center}.id-card-logo[_ngcontent-%COMP%]{height:50px;max-width:80%;object-fit:contain}.id-card-actions[_ngcontent-%COMP%]{margin-top:24px;display:flex;justify-content:space-evenly;align-items:center;gap:12px}.id-card-actions[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{color:#222;transition:all .2s ease}.id-card-actions[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]:hover{color:#fff;transform:scale(1.25)}.id-card-actions[_ngcontent-%COMP%] .action-btn.print[_ngcontent-%COMP%]:hover{background:#007fe1}.id-card-actions[_ngcontent-%COMP%] .action-btn.close[_ngcontent-%COMP%]:hover{background:#a00}.id-card-actions[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:32px}.id-card-actions[_ngcontent-%COMP%] .apple-wallet-btn[_ngcontent-%COMP%]{padding:0!important;min-width:auto!important;background:transparent!important;box-shadow:none!important;border:none!important;transition:all .2s ease}.id-card-actions[_ngcontent-%COMP%] .apple-wallet-btn[_ngcontent-%COMP%]:hover{transform:scale(1.05);opacity:.9}.id-card-actions[_ngcontent-%COMP%] .apple-wallet-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}.header-gradient-line[_ngcontent-%COMP%]{height:4px;background:linear-gradient(90deg,#ffffff4d,#fffc,#ffffff4d);margin-top:8px;border-radius:2px}.id-card-body[_ngcontent-%COMP%]{position:relative;padding:24px 20px 20px;background:#fff}.id-card-background-pattern[_ngcontent-%COMP%]{position:absolute;inset:0;opacity:.03;background-image:repeating-linear-gradient(45deg,transparent,transparent 10px,currentColor 10px,currentColor 11px),repeating-linear-gradient(-45deg,transparent,transparent 10px,currentColor 10px,currentColor 11px);color:var(--role-primary);pointer-events:none;z-index:0}.id-card-photo-section[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center;margin-bottom:20px;z-index:1}.photo-wrapper[_ngcontent-%COMP%]{position:relative}.photo-frame[_ngcontent-%COMP%]{position:relative;width:140px;height:140px;border-radius:50%;padding:4px;box-shadow:0 8px 24px #00000026,0 0 0 4px #ffffffe6,inset 0 2px 8px #0000001a}.photo-frame[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:-8px;border-radius:50%;background:var(--role-gradient);opacity:.2;filter:blur(12px);z-index:-1}.id-card-photo[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%;border:3px solid white;background:#f5f5f5}.photo-placeholder[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;border:3px solid white;background:linear-gradient(135deg,#e0e0e0,#f5f5f5);display:flex;align-items:center;justify-content:center}.photo-placeholder[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:64px;color:#bdbdbd}.verified-badge[_ngcontent-%COMP%]{position:absolute;bottom:-4px;right:-4px;width:40px;height:40px;background:linear-gradient(135deg,#43a047,#66bb6a);border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #43a04766,0 0 0 3px #fff}.verified-badge[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:24px}.id-card-info-section[_ngcontent-%COMP%]{text-align:center;margin-bottom:16px;position:relative;z-index:1}.person-name[_ngcontent-%COMP%]{font-size:24px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#212121;margin-bottom:6px;line-height:1.2;text-shadow:0 1px 2px rgba(0,0,0,.05)}.person-id[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:var(--role-primary);margin-bottom:4px;letter-spacing:.5px}.person-location[_ngcontent-%COMP%]{font-size:13px;color:#757575;font-weight:500}.id-card-role-section[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:20px;position:relative;z-index:1}.role-badge[_ngcontent-%COMP%]{background:var(--role-gradient);color:#fff;padding:10px 24px;border-radius:8px;font-size:14px;font-weight:700;letter-spacing:1px;text-transform:uppercase;box-shadow:0 4px 12px #00000026,inset 0 1px #ffffff4d;position:relative}.id-card-compliance-section[_ngcontent-%COMP%]{position:relative;z-index:1;margin-bottom:16px}.compliance-title[_ngcontent-%COMP%]{font-size:10px;font-weight:700;letter-spacing:1.2px;color:#9e9e9e;text-align:center;margin-bottom:12px;text-transform:uppercase}.compliance-badges[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.compliance-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#f5f5f5;border:2px solid #e0e0e0;transition:all .2s ease;position:relative;overflow:hidden}.compliance-badge.status-completed[_ngcontent-%COMP%]{background:linear-gradient(135deg,#e8f5e9,#f1f8f4);border-color:#66bb6a}.compliance-badge.status-completed[_ngcontent-%COMP%] .badge-icon[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#43a047}.compliance-badge.status-completed[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg,#43a047,#66bb6a)}.compliance-badge.status-expiring[_ngcontent-%COMP%]{background:linear-gradient(135deg,#fff3e0,#fef8f1);border-color:#ffa726}.compliance-badge.status-expiring[_ngcontent-%COMP%] .badge-icon[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#f57c00}.compliance-badge.status-expiring[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg,#f57c00,#ffa726)}.compliance-badge.status-expired[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ffebee,#fef5f5);border-color:#ef5350}.compliance-badge.status-expired[_ngcontent-%COMP%] .badge-icon[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#e53935}.compliance-badge.status-expired[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg,#e53935,#ef5350)}.badge-icon[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:center}.badge-icon[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:20px}.badge-content[_ngcontent-%COMP%]{flex:1;min-width:0}.badge-label[_ngcontent-%COMP%]{font-size:11px;font-weight:700;color:#424242;text-transform:uppercase;letter-spacing:.3px;margin-bottom:2px;line-height:1}.badge-expiry[_ngcontent-%COMP%]{font-size:10px;color:#757575;font-weight:500;line-height:1.2}.badge-expiry[_ngcontent-%COMP%] .expired-text[_ngcontent-%COMP%]{color:#e53935;font-weight:700;text-transform:uppercase}.id-card-footer[_ngcontent-%COMP%]{position:relative;padding-top:16px;margin-top:16px;border-top:1px dashed #e0e0e0;z-index:1}.security-text[_ngcontent-%COMP%]{text-align:center;font-size:9px;font-weight:700;letter-spacing:1.5px;color:#bdbdbd;text-transform:uppercase;margin-bottom:8px}.holographic-strip[_ngcontent-%COMP%]{height:8px;border-radius:4px;background:linear-gradient(90deg,var(--role-primary) 0%,var(--role-secondary) 25%,#ffffff 50%,var(--role-secondary) 75%,var(--role-primary) 100%);opacity:.15;position:relative}.holographic-strip[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:linear-gradient(45deg,transparent 30%,rgba(255,255,255,.8) 50%,transparent 70%);animation:_ngcontent-%COMP%_shimmer 3s infinite}@keyframes _ngcontent-%COMP%_shimmer{0%,to{transform:translate(-100%)}50%{transform:translate(100%)}}@media print{.id-card-dialog[_ngcontent-%COMP%]{padding:0!important;background:#fff!important}.id-card-container[_ngcontent-%COMP%]{width:3.375in;max-width:3.375in;box-shadow:none!important;page-break-inside:avoid;border:1px solid #e0e0e0}.no-print[_ngcontent-%COMP%], .id-card-actions[_ngcontent-%COMP%]{display:none!important}.id-card-header[_ngcontent-%COMP%], .photo-frame[_ngcontent-%COMP%], .role-badge[_ngcontent-%COMP%], .compliance-badge[_ngcontent-%COMP%]{-webkit-print-color-adjust:exact;print-color-adjust:exact}.holographic-strip[_ngcontent-%COMP%]:after{animation:none}}@media screen and (max-width:480px){.id-card-container[_ngcontent-%COMP%]{width:100%;max-width:360px}
12.person-name[_ngcontent-%COMP%]{font-size:20px}.compliance-badges[_ngcontent-%COMP%]{grid-template-columns:1fr}}.events-header[_ngcontent-%COMP%]{position:relative;background-color:#f5f7fa;padding:16px 24px;border-radius:4px;margin-bottom:20px}@media screen and (max-width:599px){.events-header[_ngcontent-%COMP%]{padding:0}}.accent-bar[_ngcontent-%COMP%]{position:absolute;left:0;top:0;height:100%;width:4px;background-color:#1976d2;border-radius:4px 0 0 4px}.header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.title-section[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.title-section[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:22px;font-weight:500;margin:0;color:#37474f}.mp-spinner[_ngcontent-%COMP%]{display:inline-block;flex:0 0 auto;width:16px;height:16px;margin-right:8px;border:2px solid rgba(0,0,0,.15);border-top-color:#1976d2;border-radius:50%;vertical-align:middle;animation:_ngcontent-%COMP%_mp-spin .7s linear infinite}.mp-spinner--lg[_ngcontent-%COMP%]{width:28px;height:28px;border-width:3px;margin-right:0}.mp-menu-loading[_ngcontent-%COMP%]{display:flex!important;align-items:center;opacity:.85}.id-card-compliance-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px 16px;color:#607d8b;font-size:13px;font-weight:500;letter-spacing:.4px}@keyframes _ngcontent-%COMP%_mp-spin{to{transform:rotate(360deg)}}.btn-apple-cal.mat-mdc-unelevated-button[_ngcontent-%COMP%]{background:#000;color:#fff;padding:0 14px}.btn-apple-cal.mat-mdc-unelevated-button[_ngcontent-%COMP%]:hover{background:#1d1d1f}.btn-apple-cal.mat-mdc-unelevated-button[_ngcontent-%COMP%] .btn-apple-cal__inner[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;line-height:1}.btn-apple-cal.mat-mdc-unelevated-button[_ngcontent-%COMP%] .btn-apple-cal__icon[_ngcontent-%COMP%]{width:20px;height:20px;flex-shrink:0;filter:drop-shadow(0 0 1px rgba(0,0,0,.35))}.btn-apple-cal.mat-mdc-unelevated-button[_ngcontent-%COMP%] .btn-apple-cal__label[_ngcontent-%COMP%]{white-space:nowrap}@media(max-width:600px){.btn-apple-cal.mat-mdc-unelevated-button[_ngcontent-%COMP%]{padding:0 12px;min-width:0}.btn-apple-cal.mat-mdc-unelevated-button[_ngcontent-%COMP%] .btn-apple-cal__icon[_ngcontent-%COMP%]{width:18px;height:18px}.btn-apple-cal.mat-mdc-unelevated-button[_ngcontent-%COMP%] .btn-apple-cal__label[_ngcontent-%COMP%]{font-size:13px}}']})}return t})();var Q_=["pricingForm"],Na=(()=>{class t{dialogRef;data;api;dialog;notify;_fuseConfigService;breakpointObserver;pricing={};_pricingForm;loading=!0;isMobile=!1;_unsubscribeAll;fuseConfig;constructor(e,a,i,d,f,C,L){this.dialogRef=e,this.data=a,this.api=i,this.dialog=d,this.notify=f,this._fuseConfigService=C,this.breakpointObserver=L,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(z=>{this.isMobile=!!z.matches})}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.api.get("SubDirector/"+(this.data.key==null?"defaultPricing":"getPricing/"+this.data.key),!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.loading=!1,this.pricing=e},error:e=>{this.loading=!1,this.notify.openAlertModal(e.error?e.error:"An error has occured",se.ERROR)}})}updatePrice(){this.api.post("SubDirector/"+(this.data.key==null?"defaultPricing":"setPricing/"+this.data.key),this._pricingForm.value,!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.loading=!1,this.notify.openToaster("The prices are set","success"),this.dialogRef.close()},error:e=>{this.loading=!1,this.notify.openAlertModal(e.error?e.error:"An error has occured",se.ERROR)}})}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(ge),x(pe),x(U),x($),x(G),x(re),x(ee))};static \u0275cmp=j({type:t,selectors:[["set-pricing"]],viewQuery:function(a,i){if(a&1&&N(Q_,5),a&2){let d;W(d=B())&&(i._pricingForm=d.first)}},decls:57,vars:4,consts:[["pricingForm","ngForm"],[1,"isdm-modal"],[1,"isdm-header"],[1,"isdm-header-title"],["type","button",1,"isdm-close-btn",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"isdm-body"],["name","pricingForm"],[1,"isdm-section"],[1,"isdm-section-header"],[1,"isdm-section-icon"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"isdm-section-title"],[1,"isdm-form-group"],["for","scheduleFeeInput",1,"isdm-label"],[1,"isdm-label-sub"],[1,"isdm-currency-input"],[1,"isdm-currency-symbol"],["id","scheduleFeeInput","type","number","min","0","name","scheduleFee",3,"ngModelChange","ngModel"],[1,"isdm-form-group",2,"margin-bottom","0"],["for","scheduleFeeLeagueInput",1,"isdm-label"],["id","scheduleFeeLeagueInput","type","number","min","0","name","scheduleFeeLeague",3,"ngModelChange","ngModel"],[1,"isdm-toggle-row"],[1,"isdm-toggle"],["type","checkbox","name","eventApprovalNotRequired",3,"ngModelChange","ngModel"],[1,"isdm-toggle-track"],[1,"isdm-toggle-thumb"],[1,"isdm-toggle-content"],[1,"isdm-toggle-label"],[1,"isdm-toggle-desc"],[1,"isdm-toggle-warning"],["fill","currentColor","viewBox","0 0 20 20"],["fill-rule","evenodd","d","M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule","evenodd"],[1,"isdm-footer"],["type","button",1,"isdm-btn","isdm-btn-secondary",3,"click"],["type","button",1,"isdm-btn","isdm-btn-primary",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 13l4 4L19 7"]],template:function(a,i){if(a&1){let d=b();n(0,"div",1)(1,"div",2)(2,"h2",3),l(3),o(),n(4,"button",4),h("click",function(){return u(d),g(i.closeDialog())}),Je(),n(5,"svg",5),v(6,"path",6),o()()(),tt(),n(7,"div",7)(8,"form",8,0)(10,"div",9)(11,"div",10)(12,"div",11),Je(),n(13,"svg",5),v(14,"path",12),o()(),tt(),n(15,"h3",13),l(16,"Fee Configuration"),o()(),n(17,"div",14)(18,"label",15),l(19,"Schedule Fee "),n(20,"span",16),l(21,"(on top of RP fee)"),o()(),n(22,"div",17)(23,"span",18),l(24,"$"),o(),n(25,"input",19),D("ngModelChange",function(C){return u(d),S(i.pricing.scheduleFee,C)||(i.pricing.scheduleFee=C),g(C)}),o()()(),n(26,"div",20)(27,"label",21),l(28,"League Schedule Fee "),n(29,"span",16),l(30,"(on top of RP fee)"),o()(),n(31,"div",17)(32,"span",18),l(33,"$"),o(),n(34,"input",22),D("ngModelChange",function(C){return u(d),S(i.pricing.scheduleFeeLeague,C)||
12(i.pricing.scheduleFeeLeague=C),g(C)}),o()()()(),n(35,"div",23)(36,"label",24)(37,"input",25),D("ngModelChange",function(C){return u(d),S(i.pricing.eventApprovalNotRequired,C)||(i.pricing.eventApprovalNotRequired=C),g(C)}),o(),v(38,"span",26)(39,"span",27),o(),n(40,"div",28)(41,"div",29),l(42,"Event Approval Not Required"),o(),n(43,"p",30),l(44,"Allow Sub-Directors to create events without requiring your approval."),o(),n(45,"div",31),Je(),n(46,"svg",32),v(47,"path",33),o(),tt(),n(48,"span"),l(49,"Events will go live immediately upon creation"),o()()()()()(),n(50,"div",34)(51,"button",35),h("click",function(){return u(d),g(i.closeDialog())}),l(52,"Cancel"),o(),n(53,"button",36),h("click",function(){return u(d),g(i.updatePrice())}),Je(),n(54,"svg",5),v(55,"path",37),o(),l(56," Update "),o()()()}a&2&&(r(3),y(i.data.actionName),r(22),w("ngModel",i.pricing.scheduleFee),r(9),w("ngModel",i.pricing.scheduleFeeLeague),r(3),w("ngModel",i.pricing.eventApprovalNotRequired))},dependencies:[X,ke,ce,ei,Ii,ne,ve,ni,me,Qe,Oe,oe],styles:["[_nghost-%COMP%]{display:block;margin:-24px}.isdm-modal[_ngcontent-%COMP%]{background:#fff;border-radius:16px;width:100%;max-width:480px;overflow:hidden;animation:_ngcontent-%COMP%_isdm-sp-slideUp .3s ease-out}@keyframes _ngcontent-%COMP%_isdm-sp-slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.isdm-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#1e293b,#334155);padding:20px 24px;display:flex;align-items:center;justify-content:space-between}.isdm-header-title[_ngcontent-%COMP%]{color:#fff;font-size:18px;font-weight:600;letter-spacing:-.01em;margin:0}.isdm-close-btn[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:8px;border:none;background:#ffffff1a;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;padding:0}.isdm-close-btn[_ngcontent-%COMP%]:hover{background:#fff3}.isdm-close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px}.isdm-body[_ngcontent-%COMP%]{padding:24px}.isdm-body[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:0}.isdm-form-group[_ngcontent-%COMP%]{margin-bottom:20px}.isdm-label[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:6px;font-size:14px;font-weight:500;color:#334155;margin-bottom:8px}.isdm-label-sub[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#94a3b8}.isdm-section[_ngcontent-%COMP%]{margin-bottom:20px}.isdm-section-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:16px}.isdm-section-icon[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#dbeafe,#eff6ff);display:flex;align-items:center;justify-content:center;flex-shrink:0}.isdm-section-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;color:#3b82f6}.isdm-section-title[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#1e293b;margin:0}.isdm-currency-input[_ngcontent-%COMP%]{position:relative}.isdm-currency-symbol[_ngcontent-%COMP%]{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:14px;font-weight:500;color:#64748b;pointer-events:none}.isdm-currency-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:14px 16px 14px 32px;border:1px solid #e2e8f0;border-radius:10px;font-size:14px;color:#1e293b;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;font-family:inherit}.isdm-currency-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.isdm-toggle-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:14px;padding:16px;background:#f8fafc;border-radius:12px;margin-top:4px}.isdm-toggle[_ngcontent-%COMP%]{position:relative;width:44px;height:24px;flex-shrink:0;cursor:pointer}.isdm-toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.isdm-toggle-track[_ngcontent-%COMP%]{position:absolute;inset:0;background:#cbd5e1;border-radius:12px;cursor:pointer;transition:background .2s}.isdm-toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + .isdm-toggle-track[_ngcontent-%COMP%]{background:#3b82f6}.isdm-toggle-thumb[_ngcontent-%COMP%]{position:absolute;top:2px;left:2px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .2s;pointer-events:none}.isdm-toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ .isdm-toggle-thumb[_ngcontent-%COMP%]{transform:translate(20px)}.isdm-toggle-content[_ngcontent-%COMP%]{flex:1}.isdm-toggle-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#1e293b;margin-bottom:4px}.isdm-toggle-desc[_ngcontent-%COMP%]{font-size:13px;color:#64748b;line-height:1.5;margin:0}.isdm-toggle-warning[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:10px 12px;background:#fef3c7;border-radius:8px;font-size:12px;color:#92400e;line-height:1.5}.isdm-toggle-warning[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;
12height:14px;flex-shrink:0;margin-top:1px}.isdm-footer[_ngcontent-%COMP%]{padding:16px 24px 24px;display:flex;gap:12px;justify-content:flex-end}.isdm-btn[_ngcontent-%COMP%]{padding:12px 24px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;border:none;font-family:inherit;display:flex;align-items:center;gap:6px}.isdm-btn-secondary[_ngcontent-%COMP%]{background:#f1f5f9;color:#475569}.isdm-btn-secondary[_ngcontent-%COMP%]:hover{background:#e2e8f0}.isdm-btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 4px 14px #3b82f659}.isdm-btn-primary[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px}.isdm-btn-primary[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 6px 20px #3b82f666}.isdm-btn-primary[_ngcontent-%COMP%]:active{transform:translateY(0)}"]})}return t})();var K_=["inviteSubDirForm"];function X_(t,s){t&1&&(n(0,"dt",46),l(1,"Failed Emails"),o())}function Z_(t,s){if(t&1&&(n(0,"dd",47),l(1),o()),t&2){let e=s.$implicit;r(),_e("",e.data," : ",e.message)}}function eu(t,s){if(t&1&&(n(0,"div",42)(1,"dl"),m(2,X_,2,0,"dt",46),k(3,Z_,2,2,"dd",47,A),o()()),t&2){let e=c();r(2),p(e.failedEmails.length>0?2:-1),r(),T(e.failedEmails)}}var Wa=(()=>{class t{dialogRef;data;api;dialog;notify;_membership;_fuseConfigService;breakpointObserver;customPricing=!1;pricing={};defaultPricing;statusMessage="";failedEmails;loadingActivate=!1;isMobile=!1;selection="";loading;_inviteSubDirForm;subDir={canCreateSubDirector:!1,permission:{eventCreation:!0,schedule:!0,finance:!0,teamManagement:!0,score:!0,result:!0},pricing:{eventEntryFee:0,teamRegFee:0,scheduleFee:0,eventApprovalNotRequired:!1}};_unsubscribeAll;fuseConfig;constructor(e,a,i,d,f,C,L,z){this.dialogRef=e,this.data=a,this.api=i,this.dialog=d,this.notify=f,this._membership=C,this._fuseConfigService=L,this.breakpointObserver=z,this._unsubscribeAll=new q,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(Z=>{this.isMobile=!!Z.matches})}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.askPermission("full"),this.subDir.pricingType="default",this.api.get("SubDirector/defaultPricing",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.defaultPricing=e,(this.subDir.pricingType="default")&&(this.subDir.pricing.teamRegFee=e?.teamRegFee,this.subDir.pricing.scheduleFee=e?.scheduleFee)},error:e=>{this.notify.openAlertModal(e.error?e.error:"An error has occured",se.ERROR)}})}radioChange(e){e==="default"?(this.subDir.pricing.teamRegFee=this.defaultPricing?.teamRegFee,this.subDir.pricing.scheduleFee=this.defaultPricing?.scheduleFee):(this.subDir.pricing.teamRegFee=0,this.subDir.pricing.scheduleFee=0)}askPermission(e){e=="full"&&(this.subDir.permission={eventCreation:!0,schedule:!0,finance:!0,teamManagement:!0,score:!0,result:!0}),this.subDir.permission.disabled=e==="full"}inviteSubDir(){if(this.subDir.emails=this.subDir._emails?this.subDir._emails.split(/[\r\n]+/):[],this.subDir.emails.length==0)this.notify.openAlertModal("Please enter email addresses",se.ERROR);else{let e=JSON.parse(JSON.stringify(this.subDir));this.subDir.pricingType!="customPricing"&&(e.pricing={eventApprovalNotRequired:this.subDir.pricing.eventApprovalNotRequired}),this.statusMessage="",this.failedEmails=null,this.api.post("SubDirector/invite/"+P.siteName,e,!0).pipe(M(this._unsubscribeAll)).subscribe({next:a=>{if(this.loading=!1,a.fullSuccess)this.notify.openToaster("An invitation has been sent","success"),this.dialogRef.close();else{this.statusMessage="Some invitations have failed. Please check the list below:",this.failedEmails=a.failedEmails;let i=(a.failedEmails||[]).map(d=>d.data?`${d.data}: ${d.message}`:d.message).join("<br>");this.notify.openAlertModal(i||"Some invitations have failed.",se.WARNING)}},error:a=>{this.loading=!1,this.notify.openAlertModal(a.error?a.error:"An error has occured",se.ERROR)}})}}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(ge),x(pe),x(U),x($),x(G),x(De),x(re),x(ee))};static \u0275cmp=j({type:t,selectors:[["invite-subDir"]],viewQuery:function(a,i){if(a&1&&N(K_,5),a&2){let d;W(d=B())&&(i._inviteSubDirForm=d.first)}},decls:66,vars:7,consts:[["inviteSubDirForm","ngForm"],[1,"isdm-modal"],[1,"isdm-header"],[1,"isdm-header-title"],["type","button",1,"isdm-close-btn",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"isdm-body"],["name","inviteSubDirForm"],[1,"isdm-form-group"],[1,"isdm-label","isdm-label-required"],["placeholder",`[email protected] 13[email protected]`,"name","emails","required","",1,"isdm-textarea",3,"ngModelChange","ngModel"],[1,"isdm-helper"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"isdm-section"],[1,"isdm-section-header"],[1,"isdm-section-icon"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"isdm-section-title"],[1,"isdm-radio-group"],[1,"isdm-radio-option"],["type","radio","name","pricingType","value","default",3,"ngModelChange","ngModel"],[1,"isdm-radio-label"],[1,"isdm-radio-dot"],["type","radio","name","pricingType","value","customPricing",3,"ngModelChange","ngModel"],[1,"isdm-form-group",2,"margin-bottom","0"],["for","scheduleFeeInput",1,"isdm-label"],[1,"isdm-currency-input"],[1,"isdm-currency-symbol"],["id","scheduleFeeInput","type","number","min","0","name","scheduleFee",3,"ngModelChange","ngModel"],[1,"isdm-input-helper"],[1,"isdm-toggle-row"],[1,"isdm-toggle"],["type","checkbox","name","eventApprovalNotRequired",3,"ngModelChange","ngModel"],[1,"isdm-toggle-track"],[1,"isdm-toggle-thumb"],[1,"isdm-toggle-content"],[1,"isdm-toggle-label"],[1,"isdm-toggle-desc"],[1,"isdm-toggle-warning"],["fill","currentColor","viewBox","0 0 20 20"],["fill-rule","evenodd","d","M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule","evenodd"],[1,"isdm-status-block"],[1,"isdm-footer"],["type","button",1,"isdm-btn","isdm-btn-secondary",3,"click"],["type","button",1,"isdm-btn","isdm-btn-primary",3,"click"],[1,"isdm-status-title"],[1,"isdm-status-item"]],template:function(a,i){if(a&1){let d=b();n(0,"div",1)(1,"div",2)(2,"h2",3),l(3,"Invite New Sub-Director"),o(),n(4,"button",4),h("click",function(){return u(d),g(i.closeDialog())}),Je(),n(5,"svg",5),v(6,"path",6),o()()(),tt(),n(7,"div",7)(8,"form",8,0)(10,"div",9)(11,"label",10),l(12,"Email Addresses"),o(),n(13,"textarea",11),D("ngModelChange",function(C){return u(d),S(i.subDir._emails,C)||(i.subDir._emails=C),g(C)}),o(),n(14,"div",12),Je(),n(15,"svg",5),v(16,"path",13),o(),l(17," Enter one email address per line "),o()(),tt(),n(18,"div",14)(19,"div",15)(20,"div",16),Je(),n(21,"svg",5),v(22,"path",17),o()(),tt(),n(23,"h3",18),l(24,"Schedule Fee & Team Registration Pricing"),o()(),n(25,"div",19)(26,"label",20)(27,"input",21),D("ngModelChange",function(C){return u(d),S(i.subDir.pricingType,C)||(i.subDir.pricingType=C),g(C)}),h("ngModelChange",function(C){return u(d),g(i.radioChange(C))}
13),o(),n(28,"span",22),v(29,"span",23),l(30," Default Prices "),o()(),n(31,"label",20)(32,"input",24),D("ngModelChange",function(C){return u(d),S(i.subDir.pricingType,C)||(i.subDir.pricingType=C),g(C)}),h("ngModelChange",function(C){return u(d),g(i.radioChange(C))}),o(),n(33,"span",22),v(34,"span",23),l(35," Custom Prices "),o()()(),n(36,"div",25)(37,"label",26),l(38,"Schedule Fee"),o(),n(39,"div",27)(40,"span",28),l(41,"$"),o(),n(42,"input",29),D("ngModelChange",function(C){return u(d),S(i.subDir.pricing.scheduleFee,C)||(i.subDir.pricing.scheduleFee=C),g(C)}),o()(),n(43,"p",30),l(44,"Amount you receive in addition to the standard schedule fee"),o()()(),n(45,"div",31)(46,"label",32)(47,"input",33),D("ngModelChange",function(C){return u(d),S(i.subDir.pricing.eventApprovalNotRequired,C)||(i.subDir.pricing.eventApprovalNotRequired=C),g(C)}),o(),v(48,"span",34)(49,"span",35),o(),n(50,"div",36)(51,"div",37),l(52,"Event Approval Not Required"),o(),n(53,"p",38),l(54,"Allow Sub-Directors to create events without requiring your approval."),o(),n(55,"div",39),Je(),n(56,"svg",40),v(57,"path",41),o(),tt(),n(58,"span"),l(59,"Events will go live immediately upon creation"),o()()()(),m(60,eu,5,1,"div",42),o()(),n(61,"div",43)(62,"button",44),h("click",function(){return u(d),g(i.closeDialog())}),l(63,"Cancel"),o(),n(64,"button",45),h("click",function(){return u(d),g(i.inviteSubDir())}),l(65,"Send Invite"),o()()()}a&2&&(r(13),w("ngModel",i.subDir._emails),r(14),w("ngModel",i.subDir.pricingType),r(5),w("ngModel",i.subDir.pricingType),r(10),w("ngModel",i.subDir.pricing.scheduleFee),it("disabled",i.subDir.pricingType==="default"?!0:null),r(5),w("ngModel",i.subDir.pricing.eventApprovalNotRequired),r(13),p(i.statusMessage?60:-1))},dependencies:[K,X,ke,ce,ei,Ii,eo,ne,ve,Te,ni,me,Qe,Oe,oe],styles:['[_nghost-%COMP%]{display:block;margin:-24px}.isdm-modal[_ngcontent-%COMP%]{background:#fff;border-radius:16px;width:100%;max-width:480px;overflow:hidden;animation:_ngcontent-%COMP%_isdm-slideUp .3s ease-out}@keyframes _ngcontent-%COMP%_isdm-slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.isdm-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#1e293b,#334155);padding:20px 24px;display:flex;align-items:center;justify-content:space-between}.isdm-header-title[_ngcontent-%COMP%]{color:#fff;font-size:18px;font-weight:600;letter-spacing:-.01em;margin:0}.isdm-close-btn[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:8px;border:none;background:#ffffff1a;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;padding:0}.isdm-close-btn[_ngcontent-%COMP%]:hover{background:#fff3}.isdm-close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px}.isdm-body[_ngcontent-%COMP%]{padding:24px}.isdm-body[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin:0}.isdm-form-group[_ngcontent-%COMP%]{margin-bottom:24px}.isdm-label[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#334155;margin-bottom:8px}.isdm-label-required[_ngcontent-%COMP%]:after{content:"*";color:#ef4444;margin-left:4px}.isdm-textarea[_ngcontent-%COMP%]{width:100%;min-height:100px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:10px;font-size:14px;color:#1e293b;resize:vertical;transition:border-color .2s,box-shadow .2s;font-family:inherit;box-sizing:border-box}.isdm-textarea[_ngcontent-%COMP%]::placeholder{color:#94a3b8}.isdm-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.isdm-helper[_ngcontent-%COMP%]{font-size:12px;color:#64748b;margin-top:8px;display:flex;align-items:center;gap:6px}.isdm-helper[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px;color:#94a3b8;flex-shrink:0}.isdm-section[_ngcontent-%COMP%]{margin-bottom:24px}.isdm-section-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:16px}.isdm-section-icon[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#dbeafe,#eff6ff);display:flex;align-items:center;justify-content:center;flex-shrink:0}.isdm-section-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;color:#3b82f6}.isdm-section-title[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#1e293b;margin:0}.isdm-radio-group[_ngcontent-%COMP%]{display:flex;gap:8px;margin-bottom:16px}.isdm-radio-option[_ngcontent-%COMP%]{flex:1;cursor:pointer}.isdm-radio-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{display:none}.isdm-radio-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border:2px solid #e2e8f0;border-radius:10px;font-size:14px;font-weight:500;color:#64748b;cursor:pointer;transition:all .2s}.isdm-radio-label[_ngcontent-%COMP%]:hover{border-color:#cbd5e1}.isdm-radio-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + .isdm-radio-label[_ngcontent-%COMP%]{border-color:#3b82f6;background:#eff6ff;color:#1d4ed8}.isdm-radio-dot[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;position:relative;flex-shrink:0}.isdm-radio-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + .isdm-radio-label[_ngcontent-%COMP%] .isdm-radio-dot[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background:currentColor}.isdm-currency-input[_ngcontent-%COMP%]{position:relative}.isdm-currency-symbol[_ngcontent-%COMP%]{position:absolute;
13left:16px;top:50%;transform:translateY(-50%);font-size:14px;font-weight:500;color:#64748b;pointer-events:none}.isdm-currency-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:14px 16px 14px 32px;border:1px solid #e2e8f0;border-radius:10px;font-size:14px;color:#1e293b;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;font-family:inherit}.isdm-currency-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.isdm-currency-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed}.isdm-input-helper[_ngcontent-%COMP%]{font-size:12px;color:#64748b;margin-top:8px;margin-bottom:0}.isdm-toggle-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:14px;padding:16px;background:#f8fafc;border-radius:12px;margin-top:4px}.isdm-toggle[_ngcontent-%COMP%]{position:relative;width:44px;height:24px;flex-shrink:0;cursor:pointer}.isdm-toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.isdm-toggle-track[_ngcontent-%COMP%]{position:absolute;inset:0;background:#cbd5e1;border-radius:12px;cursor:pointer;transition:background .2s}.isdm-toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + .isdm-toggle-track[_ngcontent-%COMP%]{background:#3b82f6}.isdm-toggle-thumb[_ngcontent-%COMP%]{position:absolute;top:2px;left:2px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .2s;pointer-events:none}.isdm-toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ .isdm-toggle-thumb[_ngcontent-%COMP%]{transform:translate(20px)}.isdm-toggle-content[_ngcontent-%COMP%]{flex:1}.isdm-toggle-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#1e293b;margin-bottom:4px}.isdm-toggle-desc[_ngcontent-%COMP%]{font-size:13px;color:#64748b;line-height:1.5;margin:0}.isdm-toggle-warning[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:10px 12px;background:#fef3c7;border-radius:8px;font-size:12px;color:#92400e;line-height:1.5}.isdm-toggle-warning[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px;flex-shrink:0;margin-top:1px}.isdm-status-block[_ngcontent-%COMP%]{margin-top:16px;padding:12px 14px;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;font-size:13px}.isdm-status-title[_ngcontent-%COMP%]{font-weight:600;color:#b91c1c;margin-bottom:6px}.isdm-status-item[_ngcontent-%COMP%]{color:#7f1d1d;margin-left:12px;line-height:1.6}.isdm-footer[_ngcontent-%COMP%]{padding:16px 24px 24px;display:flex;gap:12px;justify-content:flex-end}.isdm-btn[_ngcontent-%COMP%]{padding:12px 24px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;border:none;font-family:inherit}.isdm-btn-secondary[_ngcontent-%COMP%]{background:#f1f5f9;color:#475569}.isdm-btn-secondary[_ngcontent-%COMP%]:hover{background:#e2e8f0}.isdm-btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 4px 14px #3b82f659}.isdm-btn-primary[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 6px 20px #3b82f666}.isdm-btn-primary[_ngcontent-%COMP%]:active{transform:translateY(0)}']})}return t})();var tu=["filter"],Ci=t=>({"pl-8":t}),Ba=(t,s)=>({"pl-8":t,"grey-fg":s}),iu=(t,s)=>({nowrap:t,"grey-fg":s}),nu=t=>[t],ja=t=>({"grey-fg":t}),ou=(t,s)=>({"grey-fg":t,"pl-8 w200px":s}),au=(t,s)=>({"grey-fg":t,"pl-8":s}),ru=t=>[10,25,50,75,100,t];function lu(t,s){if(t&1){let e=b();n(0,"button",47),h("click",function(){u(e);let i=c();return g(i.inviteSubDirector())}),l(1,"Sub-Director Invitation"),o()}}function su(t,s){if(t&1){let e=b();n(0,"button",48),h("click",function(){u(e);let i=c();return g(i.setDefaultPricing())}),l(1,"Set Default Pricing"),o()}}function du(t,s){if(t&1){let e=b();n(0,"span",49),h("click",function(){u(e);let i=c();return g(i.setDefaultPricing())}),l(1,"local_atm"),o()}}function cu(t,s){if(t&1){let e=b();n(0,"span",49),h("click",function(){u(e);let i=c();return g(i.inviteSubDirector())}),l(1,"forward_to_inbox"),o()}}function mu(t,s){if(t&1){let e=b();n(0,"button",54),h("click",function(){u(e);let i=c(2);return g(i.clearFilter())}),n(1,"mat-icon"),l(2,"close"),o()()}}function pu(t,s){if(t&1){let e=b();n(0,"div",16)(1,"div",50)(2,"mat-icon",51),l(3,"search"),o(),n(4,"input",52),D("ngModelChange",function(i){u(e);let d=c();return S(d.searchInput,i)||(d.searchInput=i),g(i)}),h("keyup",function(){u(e);let i=c();return g(i.applyFilter())}),o(),m(5,mu,3,0,"button",53),o()()}if(t&2){let e=c();r(4),w("ngModel",e.searchInput),r(),p(e.searchInput?5:-1)}}function _u(t,s){if(t&1&&(n(0,"th",55)(1,"span",56),l(2,"State"),o()()),t&2){let e=c();_("ngClass",V(1,Ci,!e.isMobile))}}function uu(t,s){if(t&1&&(n(0,"td",57),l(1),o()),t&2){let e=s.$implicit,a=c();_("ngClass",Le(4,Ba,!a.isMobile,e.status=="deactive"))("matTooltip",e.status=="deactive"?"deactive":"")("matTooltipDisabled",e.status!="deactive"),r(),E(" ",e.state," ")}}function gu(t,s){if(t&1&&(n(0,"th",58),l(1,"Name"),o()),t&2){let e=c();_("ngClass",V(1,Ci,!e.isMobile))}}function fu(t,s){if(t&1&&(n(0,"a",61),l(1),o()),t&2){let e=c().$implicit;_("routerLink",V(2,nu,"/pages/player/"+e.subDirID)),r(),y(e.name)}}function Cu(t,s){if(t&1&&(n(0,"span",62),l(1),o()),t&2){let e=c().$implicit;r(),y(e.name)}}function hu(t,s){t&1&&(n(0,"span",63),l(1,"Invite is sent "),n(2,"mat-icon",64),l(3,"done"),o()())}function xu(t,s){if(t&1&&(n(0,"td",59)(1,"span",60),m(2,fu,2,4,"a",61),m(3,Cu,2,1,"span",62),m(4,hu,4,0,"span",63),o()()),t&2){let e=s.$implicit,a=c();Dn("width",a.isMobile?null:20,"%"),_("ngClass",Le(6,iu,!a.isMobile,e.status=="deactive")),r(2),p(e.subDirID?2:-1),r(),p(e.subDirID?-1:3),r(),p(e.reSent?4:-1)}}function bu(t,s){if(t&1&&(n(0,"th",55),l(1,"Email"),o()),t&2){let e=c();_("ngClass",V(1,Ci,!e.isMobile))}}function vu(t,s){if(t&1&&(n(0,"td",57),l(1),o()),t&2){let e=s.$implicit,a=c();_("ngClass",Le(4,Ba,!a.isMobile,e.status=="deactive"))("matTooltip",e.status=="deactive"?"deactive":"")("matTooltipDisabled",e.status!="deactive"),r(),y(e.email)}}function yu(t,s){if(t&1&&(n(0,"th",55),l(1,"Phone"),o()),t&2){let e=c();_("ngClass",V(1,Ci,!e.isMobile))}}function Mu(t,s){t&1&&(n(0,"span"),l(1,"N/A"),o())}function wu(t,s){if(t&1&&(n(0,"a",66),l(1),o()),t&2){let e=c().$implicit;_("href","tel:"+e.phone,Ie),r(),y(e.phone)}}function Su(t,s){if(t&1&&(n(0,"td",65),m(1,Mu,2,0,"span"),m(2,wu,2,2,"a",66),o()),t&2){let e=s.$implicit;_("ngClass",V(3,ja,e.status=="deactive")),r(),p(e.phone?-1:1),r(),p(e.phone?2:-1)}}function Du(t,s){if(t&1&&(n(0,"th",67),l(1,"Permissions"),o()),t&2){let e=c();_("ngClass",V(1,Ci,!e.isMobile))}}function Pu(t,s){if(t&1&&(n(0,"span",71),l(1),o()),t&2){let e=s.$implicit,a=c().$implicit;H("sd-permission-pill--deactive",a.status=="deactive"),r(),y(e)}}function Eu(t,s){if(t&1&&(n(0,"td",68)(1,"div",69),k(2,Pu,2,3,"span",70,A),o()()),t&2){let e=s.$implicit,a=c();Dn("width",a.isMobile?null:90,"%"),_("ngClass",Le(5,ou,e.status=="deactive",!a.isMobile))("matTooltip",e.status=="deactive"?"deactive":"")("matTooltipDisabled",e.status!="deactive"),r(2),T(a.getPermissionList(e.permissions))}}
13function Iu(t,s){if(t&1&&(n(0,"th",72),l(1,"Approval / Schedule Fee"),o()),t&2){let e=c();_("ngClass",V(1,Ci,!e.isMobile))}}function ku(t,s){if(t&1&&(n(0,"td",73)(1,"div")(2,"span",74),l(3),o(),n(4,"span"),l(5),o(),n(6,"span"),l(7),o(),n(8,"span"),l(9),o()()()),t&2){let e=s.$implicit,a=c();_("ngClass",Le(5,au,e.status=="deactive",!a.isMobile)),r(3),y(e.pricing?e.pricing.eventApprovalNotRequired==!0?"Auto / ":"Needs / ":""),r(2),y(e.pricing?e.pricing.scheduleFee:"Default Pricing"),r(2),y(e.pricing?e.pricing.scheduleFeeLeague==null?", ?":", "+e.pricing.scheduleFeeLeague:""),r(2),y(e.pricing?" / "+e.pricing.teamRegFee:"")}}function Tu(t,s){t&1&&(n(0,"th",75),l(1,"Stripe"),o())}function Ou(t,s){if(t&1&&(n(0,"td",76)(1,"mat-icon",77),l(2),o()()),t&2){let e=s.$implicit;r(),_("matTooltip",e.stripeAccount==1?"Uses your Stripe Account":e.stripeAccount==2?"Has own Stripe Account":"no stripe account")("ngClass",e.stripeAccount==1?"blue-fg":e.stripeAccount==2?"green-fg":"red-fg"),r(),y(e.stripeAccount==0?"cancel":"check_circle")}}function Vu(t,s){t&1&&(n(0,"th",78),l(1,"Events"),o())}function Fu(t,s){if(t&1&&(n(0,"td",79)(1,"span",80),l(2),o()()),t&2){let e=s.$implicit;_("ngClass",V(2,ja,e.status=="deactive")),r(2),y(e.eventCnt)}}function Ru(t,s){t&1&&(n(0,"th",81)(1,"span",56),l(2,"Actions"),o()())}function Au(t,s){if(t&1&&(n(0,"button",84),l(1,"Events"),o()),t&2){let e=c().$implicit;_("routerLink","/pages/events/filterBySubDir/"+e.subDirID)}}function Lu(t,s){if(t&1){let e=b();n(0,"button",87),h("click",function(){u(e);let i=c().$implicit,d=c();return g(d.setDefaultPricing(i._key))}),l(1,"Edit Director"),o()}}function Nu(t,s){if(t&1){let e=b();n(0,"button",87),h("click",function(){u(e);let i=c(),d=i.$implicit,f=i.index,C=c();return g(C.deleteInvite(d,f))}),l(1,"Delete Invite"),o()}}function Wu(t,s){if(t&1){let e=b();n(0,"button",87),h("click",function(){u(e);let i=c().$implicit,d=c();return g(d.toggleActive(i,"activate"))}),l(1,"Activate"),o()}}function Bu(t,s){if(t&1){let e=b();n(0,"button",87),h("click",function(){u(e);let i=c().$implicit,d=c();return g(d.toggleActive(i,"deactivate"))}),l(1,"De-activate"),o()}}function ju(t,s){if(t&1){let e=b();n(0,"button",87),h("click",function(){u(e);let i=c().$implicit,d=c();return g(d.resendInvitation(i))}),l(1,"Re-Send Invitation"),o()}}function zu(t,s){if(t&1&&(n(0,"td",82)(1,"div",83),m(2,Au,2,1,"button",84),n(3,"button",85)(4,"span"),l(5,"Actions"),o()(),n(6,"mat-menu",null,0),m(8,Lu,2,0,"button",86),m(9,Nu,2,0,"button",86),m(10,Wu,2,0,"button",86),m(11,Bu,2,0,"button",86),m(12,ju,2,0,"button",86),o()()()),t&2){let e=s.$implicit,a=O(7);r(2),p(e.subDirID!=null?2:-1),r(),_("matMenuTriggerFor",a),r(5),p(e.status!="pending"?8:-1),r(),p(e.status=="pending"?9:-1),r(),p(e.status=="deactive"?10:-1),r(),p(e.status=="active"?11:-1),r(),p(e.status=="pending"?12:-1)}}function qu(t,s){t&1&&v(0,"tr",88)}function Uu(t,s){if(t&1&&v(0,"tr",89),t&2){let e=s.index;H("row-even",e%2===0)("row-odd",e%2!==0)}}function Gu(t,s){t&1&&(n(0,"tr",90)(1,"td",91),l(2,"No Record found"),o()())}function Hu(t,s){if(t&1&&(n(0,"div",46),v(1,"mat-paginator",92,1),o()),t&2){let e=c();_("hidden",e.dataSource.data.length<=10),r(),_("length",e.dataSource.data.length)("pageSizeOptions",V(4,ru,e.dataSource.data.length))("pageSize",e.pageSize)}}var za=(()=>{class t{api;_membership;cdr;dialog;ngxLoader;notify;_matDialog;_fuseConfigService;breakpointObserver;platform;fuseConfig;eventID="";confirmDialogRef;paginator;sort;table;filter;dataSource;panelWidthStaff;panelHeightStaff;staff;displayedColumns=["state","name","email","phone","roles","pricing","stripeAccountID","eventCnt","action"];expandedKey=null;loading=!1;data=null;rows=[];isMobile=!1;isBrowser=!1;isXS=!1;searchInput="";pageSize;isActive=!1;isDeactive=!1;reSent=!1;personalInfoForm;_unsubscribeAll;constructor(e,a,i,d,f,C,L,z,Z,de){this.api=e,this._membership=a,this.cdr=i,this.dialog=d,this.ngxLoader=f,this.notify=C,this._matDialog=L,this._fuseConfigService=z,this.breakpointObserver=Z,this.platform=de,this.isBrowser=Jn(de),this._unsubscribeAll=new q,this.dataSource=new fe,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(xt=>{this.isMobile=!!xt.matches})}ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}
13),this.pageSize=this.isMobile?5:10,this.getSubDirector()}drop(e){Lo(this.displayedColumns,e.previousIndex,e.currentIndex)}getSubDirector(){this.ngxLoader.startLoader("loader-subDirector"),this.api.get("SubDirector",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.data=e,this.dataSource=new fe(e),setTimeout(()=>{this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort},250),this.ngxLoader.stopLoader("loader-subDirector")},error:e=>{this.notify.openErrorModal(e.error?e.error:"An error has occured"),this.ngxLoader.stopLoader("loader-subDirector")}})}maxWidthStaff;minWidthStaff;inviteSubDirector(){this.dialog.open(Wa,{panelClass:"p12-dialog-container",width:this.panelWidthStaff,maxWidth:this.maxWidthStaff,minWidth:this.minWidthStaff,height:"auto",maxHeight:"90vh",data:{actionName:"Invite New Sub-Director"}}).afterClosed().subscribe(a=>{this.cdr.detectChanges(),this.getSubDirector()})}setDefaultPricing(e){this.dialog.open(Na,{panelClass:"p12-dialog-container",width:this.panelWidthStaff,maxWidth:this.panelWidthStaff,height:"auto",maxHeight:"90vh",data:{actionName:"Set Pricing",key:e}}).afterClosed().subscribe(i=>{i&&this.getSubDirector()})}toggleActive(e,a){a=="activate"?this.api.get("SubDirector/activate/"+e._key,!0).pipe(M(this._unsubscribeAll)).subscribe({next:i=>{this.notify.openToaster("Activated","success"),this.isActive=!0,e.status="active"},error:i=>{this.notify.openAlertModal(i.error?i.error:"An error has occured",Ht.WARNING)}}):this.api.get("SubDirector/suspend/"+e._key,!0).pipe(M(this._unsubscribeAll)).subscribe({next:i=>{this.notify.openToaster("Suspended","success"),this.isDeactive=!0,e.status="deactive"},error:i=>{this.notify.openAlertModal(i.error?i.error:"An error has occured",Ht.ERROR)}})}deleteInvite(e,a){this.confirmDialogRef=this._matDialog.open(Dt,{disableClose:!1}),this.confirmDialogRef.componentInstance.confirmMessage="Are you sure?",this.confirmDialogRef.afterClosed().subscribe(i=>{i&&this.api.delete("SubDirector/invite/"+e._key,!0).pipe(M(this._unsubscribeAll)).subscribe({next:d=>{this.dataSource.data.splice(a,1),this.dataSource.connect().next(this.dataSource.data),this.cdr.detectChanges(),this.notify.openToaster("Invite is deleted","success")},error:d=>{this.notify.openAlertModal(d.error?d.error:"An error has occured",Ht.ERROR)}})})}resendInvitation(e){e.reSent=!1,this.api.get("SubDirector/resendInvite/"+P.siteName+"/"+e._key,!0).pipe(M(this._unsubscribeAll)).subscribe({next:a=>{this.notify.openToaster("Invite is re-sent","success"),e.reSent=!0},error:a=>{this.notify.openAlertModal(a.error?a.error:"An error has occured",Ht.ERROR)}})}trackEventType(e,a){return a._key}getPermissionList(e){return e?e.split(",").map(a=>a.trim()).filter(a=>!!a):[]}applyFilter(){this.dataSource.filter=this.searchInput?.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}clearFilter(){this.searchInput="",this.applyFilter()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(U),x(De),x(Ye),x($),x(ue),x(G),x($),x(re),x(ee),x(vi))};static \u0275cmp=j({type:t,selectors:[["subDirector"]],viewQuery:function(a,i){if(a&1&&(N(Re,5),N(ht,5),N(qe,7),N(tu,7)),a&2){let d;W(d=B())&&(i.paginator=d.first),W(d=B())&&(i.sort=d.first),W(d=B())&&(i.table=d.first),W(d=B())&&(i.filter=d.first)}},inputs:{eventID:"eventID"},decls:52,vars:14,consts:[["menu","matMenu"],["paginator",""],["loaderId","loader-subDirector",3,"fgsSize"],[1,"my-12"],[1,"events-header"],[1,"accent-bar"],[1,"header-content"],[1,"title-section","w-100-p"],[2,"display","flex","align-items","center","gap","10px"],[1,"material-icons"],[3,"ngClass"],["topic","directors/subDirectors"],[1,"mr-4",2,"display","flex","align-items","center"],["mat-raised-button","",1,"mr-4","primary"],["mat-raised-button","",1,"primary",2,"width","182px"],["color","primary-fg","matTooltip","Sub-Director Invitation","matTooltipPosition","above",1,"material-icons"],[1,"quick-search-toolbar__actions","mt-4"],[1,"sd-table-wrapper"],["recycleRows","","mat-table","","matTableResponsive","","matSort","","matSortDirection","asc","cdkDropList","","cdkDropListOrientation","horizontal",1,"sd-table","w-100-
13p",3,"cdkDropListDropped","dataSource","trackBy"],["matColumnDef","state"],["mat-header-cell","","class","center",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","","class","center",3,"ngClass","matTooltip","matTooltipDisabled",4,"matCellDef"],["matColumnDef","name",3,"sticky"],["mat-header-cell","",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass","width",4,"matCellDef"],["matColumnDef","email"],["matColumnDef","phone"],["mat-cell","","class","px-4 nowrap",3,"ngClass",4,"matCellDef"],["matColumnDef","roles"],["mat-header-cell","","class","",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass","width","matTooltip","matTooltipDisabled",4,"matCellDef"],["matColumnDef","pricing"],["mat-header-cell","","class","nowrap center",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","","class","center",3,"ngClass",4,"matCellDef"],["matColumnDef","stripeAccountID"],["mat-header-cell","","class","center px-4","style","text-align: center",4,"matHeaderCellDef"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","eventCnt"],["mat-header-cell","","class","center px-8",4,"matHeaderCellDef"],["mat-cell","","style","text-align: center",3,"ngClass",4,"matCellDef"],["matColumnDef","action"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","px-4",4,"matCellDef"],["mat-header-row","","class","sd-table-header-row",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",3,"row-even","row-odd",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],[3,"hidden"],["mat-raised-button","",1,"mr-4","primary",3,"click"],["mat-raised-button","",1,"primary",2,"width","182px",3,"click"],["color","primary-fg","matTooltip","Sub-Director Invitation","matTooltipPosition","above",1,"material-icons",3,"click"],[1,"quick-search","quick-search--desktop"],[1,"quick-search__icon"],["type","search","placeholder","Quick Search","name","subDirectorQuickSearch",1,"quick-search__input",3,"ngModelChange","keyup","ngModel"],["type","button","aria-label","Clear search",1,"quick-search__clear"],["type","button","aria-label","Clear search",1,"quick-search__clear",3,"click"],["mat-header-cell","",1,"center",3,"ngClass"],[1,"cdk-visually-hidden"],["mat-cell","",1,"center",3,"ngClass","matTooltip","matTooltipDisabled"],["mat-header-cell","",3,"ngClass"],["mat-cell","",3,"ngClass"],[1,"sd-mobile-val","sd-mobile-val--name"],[1,"font-weight-900","px-4",3,"routerLink"],[1,"font-weight-900","px-4"],[1,"green-fg","px-4"],[1,"green-fg"],["mat-cell","",1,"px-4","nowrap",3,"ngClass"],[3,"href"],["mat-header-cell","",1,"",3,"ngClass"],["mat-cell","",3,"ngClass","matTooltip","matTooltipDisabled"],[1,"sd-permission-pills"],[1,"sd-permission-pill",3,"sd-permission-pill--deactive"],[1,"sd-permission-pill"],["mat-header-cell","",1,"nowrap","center",3,"ngClass"],["mat-cell","",1,"center",3,"ngClass"],[1,"bold"],["mat-header-cell","",1,"center","px-4",2,"text-align","center"],["mat-cell","",1,"text-center"],[3,"matTooltip","ngClass"],["mat-header-cell","",1,"center","px-8"],["mat-cell","",2,"text-align","center",3,"ngClass"],[1,"text-right"],["mat-header-cell","",1,"center"],["mat-cell","",1,"px-4"],[1,"text-center","nowrap","sd-action-buttons"],["mat-button","",1,"blue-grey","btn-narrow",3,"routerLink"],["mat-button","",1,"primary","btn-narrow","ml-8",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],["mat-header-row","",1,"sd-table-header-row"],["mat-row",""],[1,"mat-row"],["colspan","8",1,"mat-cell"],["showFirstLastButtons","",3,"length","pageSizeOptions","pageSize"]],template:function(a,i){a&1&&(v(0,"ngx-ui-loader",2),n(1,"div",3)(2,"div",4),v(3,"div",5),n(4,"div",6)(5,"div",7)(6,"div",8)(7,"span",9),l(8," groups_2 "),o(),n(9,"div",10),l(10,"Sub-Directors"),o(),v(11,"help-button",11),o(),n(12,"div",12),m(13,lu,2,0,"button",13),m(14,su,2,0,"button",14),m(15,du,2,0,"span",15),m(16,cu,2,0,"span",15),o()()()(),F(17),m(18,pu,6,2,"div",16),R(),n(19,"div",17)(20,"table",18),h("cdkDropListDropped",function(f){return i.drop(f)}),F(21,19),I(22,_u,3,3,"th",20)(23,uu,2,7,"td",21),R(),F(24,22),I(25,gu,2,3,"th",23)(26,xu,5,9,"td",24),R(),F(27,25),I(28,bu,2,3,"th",20)(29,vu,2,7,"td",21),R(),F(30,26),I(31,yu,2,3,"th",20)(32,Su,3,5,"td",27),R(),F(33,28),I(34,Du,2,3,"th",29)(35,Eu,4,8,"td",30),R(),F(36,31),I(37,Iu,2,3,"th",32)(38,ku,10,8,"td",33),R(),F(39,34),I(40,Tu,2,0,"th",35)(41,Ou,3,3,"td",36),R(),F(42,37),I(43,Vu,2,0,"th",38)(44,Fu,3,4,"td",39),R(),F(45,40),I(46,Ru,3,0,"th",41)(47,zu,13,7,"td",42),R(),I(48,qu,1,0,"tr",43)(49,Uu,1,4,"tr",44)(50,Gu,3,0,"tr",45),o()(),m(51,Hu,3,6,"div",46),o()),a&2&&(_("fgsSize",75),r(9),_("ngClass",i.isMobile?"h3":"h2"),r(4),p(i.isMobile?-1:13),r(),p(i.isMobile?-1:14),r(),p(i.isMobile?15:-1),r(),p(i.isMobile?16:-1),r(2),p(i.isMobile?-1:18),r(2),_("dataSource",i.dataSource)("trackBy",i.trackEventType),r(4),_("sticky",!i.isMobile),r(24),_("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",!0),r(),_("matRowDefColumns",i.displayedColumns),r(2),p(i.dataSource?51:-1))},dependencies:[he,Ce,K,ie,Ut,Y,te,J,ae,X,ce,ne,me,Ct,qe,rt,st,pt,dt,lt,_t,ct,mt,ut,gt,ft,Et,wt,vt,_i,Wo,No,Ai,Ri,Ot,Re,li,ai,oi,ri,qt,ht],styles:[".sd-table-wrapper[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;box-shadow:0 1px 4px #00000014;border:1px solid #eaecf0;overflow-x:auto;margin:8px 0}.sd-table[_ngcontent-%COMP%]{border-collapse:collapse;font-family:Open Sans,Open Sans Condensed,sans-serif;font-size:14px}.sd-table[_ngcontent-%COMP%] .sd-table-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]{background:#eaecf0;font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#4a5568;white-space:nowrap;padding:8px 10px;border-bottom:2px solid #e0e0e0;border-right:1px solid #e0e0e0}.sd-table[_ngcontent-%COMP%] .sd-table-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}.sd-table[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px;border-right:1px solid #e0e0e0;border-bottom:1px solid rgb(234.2,234.2,234.2);vertical-align:middle}.sd-table[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}.sd-table[_ngcontent-%COMP%] .row-even[_ngcontent-%COMP%]{background:#fff}.sd-table[_ngcontent-%COMP%] .row-odd[_ngcontent-%COMP%]{background:#f9fafb}.sd-table[_ngcontent-%COMP%] tr.mat-mdc-row[_ngcontent-%COMP%]{transition:background-color .15s ease;height:48px}.sd-table[_ngcontent-%COMP%] tr.mat-mdc-row[_ngcontent-%COMP%]:hover{background-color:#eef2f7!important}@media screen and (min-width:600px){.mat-column-filler[_ngcontent-%COMP%]{padding:0 8px;font-size:10px;text-align:center}.mat-mdc-table-sticky-border-elem-right[_ngcontent-%COMP%]{border-left:1px solid #b4b2b2}.mat-mdc-table-sticky-border-elem-left[_ngcontent-%COMP%]{border-right:1px solid #b4b2b2}
13.w200px[_ngcontent-%COMP%]{width:200px;min-width:200px;max-width:200px}.gray[_ngcontent-%COMP%]{background-color:#f5f5f5}.sd-permission-pills[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px}.sd-permission-pill[_ngcontent-%COMP%]{display:inline-block;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:600;line-height:1.4;background:#e8eef4;color:#4a5568;white-space:nowrap}.sd-permission-pill--deactive[_ngcontent-%COMP%]{background:#ececec;color:#9e9e9e}}@media screen and (max-width:960px){.sd-table-wrapper[_ngcontent-%COMP%]{overflow:visible}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{flex-wrap:wrap;height:auto;position:sticky;top:0;z-index:2}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]{display:flex;flex:1;align-items:center;padding:1rem .5rem;justify-content:space-around}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%] > .mat-sort-header-container[_ngcontent-%COMP%]{padding-left:15px}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]:not([mat-sort-header]), .sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%] th.mat-mdc-header-cell.mat-sort-header-disabled[_ngcontent-%COMP%]{display:none}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-button[_ngcontent-%COMP%]{width:fit-content}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]{height:auto;margin-bottom:8px!important;border:1px solid #5e5b5b}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-action){display:grid;grid-template-columns:minmax(88px,28%) 1fr;column-gap:10px;padding:.35rem .5rem;text-align:right!important;word-break:break-word;height:auto;margin:0 5px;align-items:start;width:100%!important;max-width:none!important;border-bottom:1px solid rgb(234.2,234.2,234.2)}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-action) > *[_ngcontent-%COMP%]{grid-column:2;grid-row:1;min-width:0;justify-self:end;text-align:right;white-space:normal}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-action):before{content:attr(data-column-name);text-transform:capitalize;text-align:left;font-weight:700;grid-column:1;grid-row:1;align-self:start;padding-right:4px}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%] td.mat-column-action[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:.5rem;height:fit-content;width:100%!important}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%] td.mat-column-action[_ngcontent-%COMP%]:before{content:attr(data-column-name);text-transform:capitalize;text-align:left;font-weight:700;padding-left:3px!important;flex:0 0 auto}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%] td.mat-column-action[_ngcontent-%COMP%] .sd-action-buttons[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0;text-align:right}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]:last-of-type td[_ngcontent-%COMP%]:last-of-type{border:none}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]:not(:last-of-type) td[_ngcontent-%COMP%]:last-of-type{border-bottom:.5rem solid #fafafa}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:first-child{padding-left:3px!important}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .sd-mobile-val--name[_ng
13content-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] .sd-mobile-val--name[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.sd-table-wrapper[_ngcontent-%COMP%] .sd-table.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%] td.mat-column-stripeAccountID[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:auto}}@media screen and (min-width:961px){.sd-action-buttons[_ngcontent-%COMP%]{justify-content:center}}.events-header[_ngcontent-%COMP%]{position:relative;background-color:#f5f7fa;padding:16px 24px;border-radius:4px;margin-bottom:20px}@media screen and (max-width:599px){.events-header[_ngcontent-%COMP%]{padding:0}}.accent-bar[_ngcontent-%COMP%]{position:absolute;left:0;top:0;height:100%;width:4px;background-color:#1976d2;border-radius:4px 0 0 4px}.header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.title-section[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.title-section[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#1976d2;font-size:35px}@media screen and (max-width:599px){.title-section[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:24px}}.title-section[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:22px;font-weight:500;margin:0;color:#37474f}"]})}return t})();function qa(t){let s=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(!s)return null;let e=Number(s[1]),a=Number(s[2]),i=Number(s[3]),d=new Date(e,a-1,i);return d.getFullYear()!==e||d.getMonth()!==a-1||d.getDate()!==i?null:d}function Ua(t,s,e){return e||t&&!s}var $u=["eventSearchForm"],Ju=["filter"],Yu=["teamsTab"],Qu=t=>({width:t}),Ku=t=>({"text-center":t}),Xu=(t,s)=>s.divisionID+"|"+s.teamID,Zu=(t,s)=>s._key;function e1(t,s){t&1&&v(0,"rp-scoring-card")}function t1(t,s){if(t&1&&(n(0,"span",15),l(1),o()),t&2){let e=c().$implicit,a=c();r(),y(a.openSlotDiscountText(e.discount))}}function i1(t,s){if(t&1&&(n(0,"s"),l(1),o(),n(2,"span",22),l(3),o()),t&2){let e=c(2).$implicit,a=c();it("aria-label","was $"+e.display.entryFee),r(),E("$",e.display.entryFee),r(2),E("$",a.openSlotDiscountedFee(e)," with the open-slot discount")}}function n1(t,s){if(t&1&&l(0),t&2){let e=c(2).$implicit;E(" $",e.display.entryFee," ")}}function o1(t,s){if(t&1&&(n(0,"span",17)(1,"span",18),l(2,"Entry"),o(),m(3,i1,4,3)(4,n1,1,1),o()),t&2){let e=c().$implicit;r(3),p(e.discount?3:4)}}function a1(t,s){if(t&1){let e=b();n(0,"section",6)(1,"div",9)(2,"mat-icon",10),l(3,"campaign"),o()(),n(4,"div",11)(5,"div",12),l(6,"Open slot near you"),o(),n(7,"h2",13),l(8),n(9,"span",14),l(10),o(),m(11,t1,2,1,"span",15),o(),n(12,"div",16)(13,"span",17)(14,"span",18),l(15,"Team"),o(),l(16),o(),n(17,"span",17)(18,"span",18),l(19,"Where"),o(),l(20),o(),m(21,o1,5,1,"span",17),n(22,"span",17)(23,"span",18),l(24,"Accept by"),o(),l(25),Q(26,"date"),o()()(),n(27,"div",19)(28,"button",20),h("click",function(){let i=u(e).$implicit,d=c();return g(d.enterOpenSlot(i))}),l(29,"Enter"),o(),n(30,"button",21),h("click",function(){let i=u(e).$implicit,d=c();return g(d.viewOpenSlotEvent(i))}),l(31,"View event"),o()()()}if(t&2){let e=s.$implicit;it("aria-labelledby","osc-"+e.divisionID+"-"+e.teamID),r(7),_("id","osc-"+e.divisionID+"-"+e.teamID),r(),Lt(" ",e.display==null?null:e.display.event," needs a ",e.display==null?null:e.display.division," team \xB7 ",e.display==null?null:e.display.dates," "),r(2),_e("",e.remaining," ",e.remaining==1?"slot":"slots"," left"),r(),p(e.discount?11:-1),r(5),y(e.team),r(4),_e("",e.display==null?null:e.display.location," \xB7 ~",e.distance," miles"),r(),p((e.display==null?null:e.display.entryFee)!=null?21:-1),r(4),y(le(26,13,e.deadline,"MMM d"))}}function r1(t,s){if(t&1&&(n(0,"span",17)(1,"span",18),l(2,"Director"),o(),l(3),o()),t&2){let e=c().$implicit;r(3),y(e.contact)}}function l1(t,s){if(t&1&&(n(0,"span",17)(1,"span",18),l(2,"Dates"),o(),l(3),o()),t&2){let e=c().$implicit;r(3),y(e.dates)}}function s1(t,s){if(t&1&&(n(0,"span",17)(1,"span",18),l(2,"Location"),o(),l(3),o()),t&2){let e=c().$implicit;r(3),y(e.location)}}function d1(t,s){if(t&1&&(n(0,"span",17)(1,"span",18),l(2,"Sport"),o(),l(3),o()),t&2){let e=c().$implicit;r(3),y(e.sport)}}function c1(t,s){if(t&1&&(n(0,"span",17)(1,"span",18),l(2,"Season"),o(),l(3),o()),t&2){let e=c().$implicit;r(3),y(e.season)}}function m1(t,s){if(t&1){let e=b();n(0,"div",7)(1,"div",23),v(2,"bell-svg",24),o(),n(3,"div",11)(4,"div",25),l(5,"Officiating Invitation"),o(),n(6,"div",26),l(7),n(8,"span",27),l(9,"Umpire"),o()(),n(10,"div",16),m(11,r1,4,1,"span",17),m(12,l1,4,1,"span",17),m(13,s1,4,1,"span",17),m(14,d1,4,1,"span",17),m(15,c1,4,1,"span",17),o()(),n(16,"div",19)(17,"button",28),h("click",function(){let i=u(e).$implicit,d=c();return g(d.processUmpireInvite(i,"accept"))}),l(18,"Accept"),o(),n(19,"button",29),h("click",function(){let i=u(e).$implicit,d=c();return g(d.processUmpireInvite(i,"reject"))}),l(20,"Decline"),o()()()}if(t&2){let e=s.$implicit;r(2),_("color","#e08f1f"),r(5),E(" You're invited to officiate ",e.name," "),r(4),p(e.contact?11:-1),r(),p(e.dates?12:-1),r(),p(e.location?13:-1),r(),p(e.sport?14:-1),r(),p(e.season?15:-1),r(2),H("spinner",e.loading),_("disabled",e.loading),r(2),H("spinner",e.loading),_("disabled",e.loading)}}function p1(t,s){if(t&1&&(n(0,"div",43),v(1,"my-people-v2",44),o()),t&2){let e=c(2);
13r(),_("failedFuturePayment",e.failedFuturePayment)("complianceDeepLink",e.complianceDeepLink)}}function _1(t,s){if(t&1&&(n(0,"span"),l(1),o()),t&2){let e=c(4);r(),E(" ",e.isMobile?"Create Team":"Create a Team"," ")}}function u1(t,s){t&1&&(n(0,"span"),l(1,"Teams"),o())}function g1(t,s){t&1&&(n(0,"span"),l(1,"My Teams"),o())}function f1(t,s){t&1&&(n(0,"span"),l(1,"My Teams"),o())}function C1(t,s){if(t&1&&(n(0,"span"),m(1,u1,2,0,"span"),m(2,g1,2,0,"span"),m(3,f1,2,0,"span"),o()),t&2){let e=c(4);r(),p(e.isMobile&&e.isDirector?1:-1),r(),p(e.isMobile&&!e.isDirector?2:-1),r(),p(e.isMobile?-1:3)}}function h1(t,s){if(t&1&&(m(0,_1,2,1,"span"),m(1,C1,4,3,"span")),t&2){let e=c(3);p(e.hasTeams?-1:0),r(),p(e.hasTeams?1:-1)}}function x1(t,s){if(t&1&&v(0,"my-teams",45),t&2){let e=c(4);_("isDirector",e.isDirector)}}function b1(t,s){if(t&1){let e=b();n(0,"create-team",46),h("teamCreated",function(){u(e);let i=c(5);return g(i.hasAnyTeamCreatedBefore())}),o()}}function v1(t,s){if(t&1&&(n(0,"mat-card"),m(1,b1,1,0,"create-team"),o()),t&2){let e=c(4);r(),p(e.hasTeams?-1:1)}}function y1(t,s){if(t&1&&(n(0,"div",43),m(1,x1,1,1,"my-teams",45),m(2,v1,2,1,"mat-card"),o()),t&2){let e=c(3);r(),p(e.hasTeams?1:-1),r(),p(e.hasTeams?-1:2)}}function M1(t,s){t&1&&(n(0,"mat-tab",33),I(1,h1,2,2,"ng-template",36)(2,y1,3,2,"ng-template",32),o())}function w1(t,s){t&1&&(n(0,"span"),l(1,"Teams"),o())}function S1(t,s){t&1&&(n(0,"span"),l(1,"My Teams"),o())}function D1(t,s){t&1&&(n(0,"span"),l(1,"My Teams"),o())}function P1(t,s){if(t&1&&(m(0,w1,2,0,"span"),m(1,S1,2,0,"span"),m(2,D1,2,0,"span")),t&2){let e=c(3);p(e.isMobile&&e.isDirector?0:-1),r(),p(e.isMobile&&!e.isDirector?1:-1),r(),p(e.isMobile?-1:2)}}function E1(t,s){if(t&1&&v(0,"my-teams",45),t&2){let e=c(4);_("isDirector",e.isDirector)}}function I1(t,s){if(t&1&&(n(0,"div",43),m(1,E1,1,1,"my-teams",45),o()),t&2){let e=c(3);r(),p(e.hasTeams?1:-1)}}function k1(t,s){t&1&&(n(0,"mat-tab",34),I(1,P1,3,3,"ng-template",36)(2,I1,2,1,"ng-template",32),o())}function T1(t,s){t&1&&(n(0,"span"),l(1,"Events"),o())}function O1(t,s){t&1&&(n(0,"span"),l(1,"My Events"),o())}function V1(t,s){if(t&1&&(m(0,T1,2,0,"span"),m(1,O1,2,0,"span")),t&2){let e=c(2);p(e.isMobile&&e.isDirector?0:-1),r(),p(e.isMobile&&!e.isDirector||!e.isMobile?1:-1)}}function F1(t,s){if(t&1&&(n(0,"div",47),v(1,"my-events-list",48),o()),t&2){let e=c(2);_("ngClass",V(2,Ku,e.isMobile)),r(),_("directorMode",e.isDirector)}}function R1(t,s){t&1&&l(0,"My Calendar")}function A1(t,s){t&1&&v(0,"help-button",51)}function L1(t,s){t&1&&v(0,"help-button",52)}function N1(t,s){if(t&1){let e=b();n(0,"mwl-calendar-month-view",66),h("dayClicked",function(i){u(e);let d=c(4);return g(d.dayClicked(i.day))})("eventClicked",function(i){u(e);let d=c(4);return g(d.calendarClick(i.event))}),o()}if(t&2){let e=c(4);_("viewDate",e.viewDate)("events",e.calendarEvents)("refresh",e.refresh)("activeDayIsOpen",e.activeDayIsOpen)}}function W1(t,s){if(t&1){let e=b();n(0,"mwl-calendar-week-view",67),h("eventClicked",function(i){u(e);let d=c(4);return g(d.calendarClick(i.event))}),o()}if(t&2){let e=c(4);_("viewDate",e.viewDate)("events",e.calendarEvents)("refresh",e.refresh)}}function B1(t,s){if(t&1){let e=b();n(0,"mwl-calendar-day-view",67),h("eventClicked",function(i){u(e);let d=c(4);return g(d.calendarClick(i.event))}),o()}if(t&2){let e=c(4);_("viewDate",e.viewDate)("events",e.calendarEvents)("refresh",e.refresh)}}function j1(t,s){if(t&1){let e=b();n(0,"div",49)(1,"span",50),l(2,"Game Calendar"),o(),m(3,A1,1,0,"help-button",51),m(4,L1,1,0,"help-button",52),o(),n(5,"div",53)(6,"div",54)(7,"button",55),D("viewDateChange",function(i){u(e);let d=c(3);return S(d.viewDate,i)||(d.viewDate=i),g(i)}),h("viewDateChange",function(){u(e);let i=c(3);return g(i.closeOpenMonthViewDay())}),l(8,"Previous"),o(),n(9,"button",56),D("viewDateChange",function(i){u(e);let d=c(3);return S(d.viewDate,i)||(d.viewDate=i),g(i)}),l(10,"Today"),o(),n(11,"button",57),D("viewDateChange",function(i){u(e);let d=c(3);return S(d.viewDate,i)||(d.viewDate=i),g(i)}),h("viewDateChange",function(){u(e);let i=c(3);return g(i.closeOpenMonthViewDay())}),l(12,"Next"),o()(),n(13,"div",58),l(14),Q(15,"calendarDate"),o(),n(16,"div",59)(17,"button",60),h("click",function(){u(e);let i=c(3);return g(i.setView(i.CalendarView.Month))}),l(18,"Month"),o(),n(19,"button",61),h("click",function(){u(e);let i=c(3);return g(i.setView(i.CalendarView.Week))}),l(20,"Week"),o(),n(21,"button",62),h("click",function(){u(e);let i=c(3);return g(i.setView(i.CalendarView.Day))}),l(22,"Day"),o()()(),n(23,"div",63),m(24,N1,1,4,"mwl-calendar-month-view",64)(25,W1,1,3,"mwl-calendar-week-view",65)(26,B1,1,3,"mwl-calendar-day-view",65),o()}if(t&2){let e,a=c(3);r(),_("ngClass",a.isMobile?"font-size-16":"font-size-14"),r(2),p(a.isDirector?3:-1),r(),p(a.isDirector?-1:4),r(3),_("view",a.view),w("viewDate",a.viewDate),r(2),w("viewDate",a.viewDate),r(2),_("view",a.view),w("viewDate",a.viewDate),r(3),y(Di(15,16,a.viewDate,a.view+"ViewTitle","en")),r(3),H("blue-100",a.view===a.CalendarView.Month),r(2),H("blue-100",a.view===a.CalendarView.Week),r(2),H("blue-100",a.view===a.CalendarView.Day),r(3),p((e=a.view)===a.CalendarView.Month?24:e===a.CalendarView.Week?25:e===a.CalendarView.Day?26:-1)}}function z1(t,s){t&1&&(n(0,"mat-tab",37),I(1,R1,1,0,"ng-template",36)(2,j1,27,20,"ng-template",32),o())}function q1(t,s){t&1&&(n(0,"div",43),v(1,"vits-parent"),o())}function U1(t,s){t&1&&(n(0,"mat-tab",38),I(1,q1,2,0,"ng-template",32),o())}function G1(t,s){t&1&&(n(0,"span",68)(1,"mat-icon",69),l(2,"supervisor_account"),o(),n(3,"span"),l(4,"My Directors"),o()())}function H1(t,s){t&1&&(n(0,"div",43),v(1,"subDirector"),o())}function $1(t,s){t&1&&(n(0,"mat-tab",39),I(1,G1,5,0,"ng-template",36)(2,H1,2,0,"ng-template",32),o())}function J1(t,s){t&1&&(n(0,"span",68)(1,"mat-icon",69),l(2,"groups"),o(),n(3,"span"),l(4,"My Staff"),o()())}function Y1(t,s){t&1&&(n(0,"div",43),v(1,"staff",70),o())}function Q1(t,s){t&1&&(n(0,"mat-tab",40),I(1,J1,5,0,"ng-template",36)(2,Y1,2,0,"ng-template",32),o())}function K1(t,s){if(t&1&&(n(0,"span",71),l(1),o()),t&2){let e=c(4);r(),y(e.supportNumbers.pendingApprovals)}}function X1(t,s){if(t&1&&(n(0,"span",68)(1,"mat-icon",69),l(2,"fact_check"),o(),n(3,"span"),l(4,"Approvals"),o(),m(5,K1,2,1,"span",71),o()),t&2){let e=c(3);r(5),p((e.supportNumbers==null?null:e.supportNumbers.pendingApprovals)>0?5:-1)}}function Z1(t,s){if(t&1&&(n(0,"div",43),v(1,"approval-tabs",72),o()),t&2){let e=c(3);r(),_("numbers",e.supportNumbers)}}function eg(t,s){t&1&&(n(0,"mat-tab",41),I(1,X1,6,1,"ng-template",36)(2,Z1,2,1,"ng-template",32),o())}function tg(t,s){if(t&1&&(n(0,"span",71),l(1),o()),t&2){let e=c(4);r(),y(e.supportNumbers.alreadyRegistered)}}function ig(t,s){if(t&1&&(n(0,"span",68)(1,"mat-icon",69),l(2,"verified"),o(),n(3,"span"),l(4,"Sanctioned?"),o(),m(5,tg,2,1,"span",71),o()),t&2){let e=c(3);r(5),p((e.supportNumbers==null?null:e.supportNumbers.alreadyRegistered)>0?5:-1)}}function ng(t,s){t&1&&(n(0,"div",43),v(1,"already-registered"),o())}function og(t,s){t&1&&(n(0,"mat-tab",42),I(1,ig,6,1,"ng-template",36)(2,ng,2,0,"ng-template",32),o())}function ag(t,s){if(t&1){let e=b();n(0,"mat-tab-group",30,0),h("selectedTabChange",function(i){u(e);let d=c();return g(d.onTabChanged(i))}),n(2,"mat-tab",31),I(3,p1,2,2,"ng-template",32),o(),m(4,M1,3,0,"mat-tab",33),m(5,k1,3,0,"mat-tab",34),n(6,"mat-tab",35),I(7,V1,2,2,"ng-template",36)(8,F1,2,4,"ng-template",32),o(),m(9,z1,3,0,"mat-tab",37),m(10,U1,2,0,"mat-tab",38),m(11,$1,3,0,"mat-tab",39),m(12,Q1,3,0,"mat-tab",40),m(13,eg,3,0,"mat-tab",41),m(14,og,3,0,"mat-tab",42),o()}if(t&2){let e=c();_("selectedIndex",e.selectedIndex),r(4),p(!e.noTeamSite&&!e.hideCreateTeam?4:-1),r(),p(e.hideCreateTeam&&e.hasTeam
13s?5:-1),r(4),p(e.calendarEvents.length>0?9:-1),r(),p(e.dashboard!=null&&e.dashboard.hasVITS&&e.clubSite?10:-1),r(),p(e.dashboard.canHaveSubDirector?11:-1),r(),p(e.dashboard.canHaveStaff?12:-1),r(),p((e.supportNumbers==null?null:e.supportNumbers.pendingApprovals)>0||e.isTINC?13:-1),r(),p((e.supportNumbers==null?null:e.supportNumbers.alreadyRegistered)>0?14:-1)}}var yn=(()=>{class t{api;router;_membership;_date;dialog;notify;state;_fuseConfigService;ngxLoader;breakpointObserver;cdr;route;paginator;sort;displayedColumns4Volunteer=["position","name","weight","symbol"];columnsToDisplay4Volunteer=this.displayedColumns4Volunteer.slice();env=P;fuseConfig;loading;loadingMyEvents;loadingTeam;dashboard={};supportNumbers=null;canAccessApprovals=!1;filterParams={};selectedIndex;clubSite=P.clubSite==!0;noTeamSite=P.noTeamSite==!0;view=$t.Month;CalendarView=$t;viewDate=new Date;refresh=new q;colors=[{primary:"#3ab1b1",secondary:"#47dbdb"},{primary:"#dcdc56",secondary:"#eeee43"},{primary:"#a00",secondary:"#db8181"},{primary:"#0a0",secondary:"#78db78"},{primary:"#444",secondary:"#ccc"},{primary:"#5D3FD3",secondary:"#b09cff"}];calendarEvents=[];activeDayIsOpen=!1;isMobile=!1;dirEvents=[];myTeams=[];myEvents=[];subDirector=[];errorMessage;searchInput;isLoggedIn;panelWidth;person={};persona={};step=0;stepIndex=0;isLinear=!0;pageSize;isDirector;isStaff;isSubDirector;myEvent;myTeam;_eventSearchForm;group;tabs;filter;confirmDialogRef;teamsTab;displayedColumns=["no","event","dates","location","classes","director"];_unsubscribeAll;loadingStaff;hasTeams;isTINC;hideCreateTeam=P.hideCreateTeam==!0;constructor(e,a,i,d,f,C,L,z,Z,de,xt,hi){this.api=e,this.router=a,this._membership=i,this._date=d,this.dialog=f,this.notify=C,this.state=L,this._fuseConfigService=z,this.ngxLoader=Z,this.breakpointObserver=de,this.cdr=xt,this.route=hi,this._unsubscribeAll=new q,this.breakpointObserver.observe(io.Handset).pipe(M(this._unsubscribeAll)).subscribe(At=>{this.isMobile=!!At.matches}),this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(M(this._unsubscribeAll)).subscribe(At=>{this.isMobile=!!At.matches}),this.pageSize=this.isMobile?5:10,this.isTINC=this._membership.currentUser?.persona?.tinc==!0,localStorage.getItem("person")&&(this.isLoggedIn=!0,this.persona=JSON.parse(localStorage.getItem("person")).persona)}helpVideo={};openFieldAssignmentHelpVideo(){this.dialog.open(ba,{width:"85%",minHeight:"500px",height:"auto",maxHeight:"90vh",data:this.helpVideo})}tabsArray=[];ngOnInit(){this._fuseConfigService.config.pipe(M(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.selectedIndex=this.state.getPageIndex("dashboard"),this.route.queryParamMap.pipe(M(this._unsubscribeAll)).subscribe(e=>{let a=e.get("tab");a&&a!=="myFamily"&&this.scheduleDashboardTabSelect(a)}),!this._membership.isLoggedIn||P.features.dashboard==!1?this.router.navigateByUrl("/pages/events"):(this.loadUmpireInvites(),this.loadOpenSlots(),this.loading=!0,this.ngxLoader.startLoader("loader-dashboard"),this.api.get("Dashboard").pipe(M(this._unsubscribeAll)).subscribe({next:e=>{if(this.dashboard=e,this.canAccessApprovals=Ua(e?.isAdmin===!0,this.clubSite,this.isTINC),this.tabsArray.push("My Family","My Teams","My Events"),e&&(e.canHaveSubDirector&&this.tabsArray.push("My Directors"),e.canHaveStaff&&this.tabsArray.push("My Staff")),this.canAccessApprovals&&this.tabsArray.push("Approvals"),this.loadSupportNumbers(e),this.helpVideo={file:"field-assignment",title:"Field Assignment for League Games"},this.isDirector=e.isDirector,this.isStaff=e.isStaff,this.isSubDirector=e.isSubDirector,this.hasTeams=e.hasTeam
13s,e.upcomingGames&&e.upcomingGames.forEach(a=>{let i=null;a.status=="upcoming"?i=this.colors[a.host?0:1]:a.status=="won"?i=this.colors[3]:a.status=="lost"?i=this.colors[2]:a.status=="umpire"?i=this.colors[5]:i=this.colors[4],this.calendarEvents.push({start:new Date(a.datetime),title:this._date.transform(a.datetime,"h:mm aa")+" | "+a.team.name+(a.host?" vs. ":" @ ")+a.opponent.name+((a.status!="upcoming"&&a.status!="umpire"?" | Score: "+a.team.score+" - "+a.opponent.score:"")+(a.field!=null?" | Location: "+a.field.facility+" - "+a.field.field:"")),color:i,allDay:!1,meta:{gameID:a.status=="umpire"?a.gameID:null,event:a.event,team:a.team}})}),e.officiatingEvents&&e.officiatingEvents.forEach(a=>{a.calendarDays?.forEach(i=>{let d=qa(i);d&&this.calendarEvents.push({start:d,title:"OFFICIATING | "+a.name+" - "+a.location,color:this.colors[5],allDay:!0,meta:{type:"officiating-event",event:a}})})}),e.upcomingActivities){let a={game:{primary:"#ad2121",secondary:"#FAE3E3"},practice:{primary:"#1e90ff",secondary:"#D1E8FF"},meeting:{primary:"#e3bc08",secondary:"#FDF1BA"},other:{primary:"#89cccc",secondary:"#d4fffe"}};e.upcomingActivities.forEach(i=>{this.calendarEvents.push({start:new Date(i.start),end:new Date(i.end),title:i.title+" ("+this._date.transform(new Date(i.start),"MMM d, h:mm a")+" - "+this._date.transform(new Date(i.end),"h:mm a")+")",color:a[i.type],allDay:!1,meta:{type:"activity",activityID:i._key,teamID:i.teamID}})})}e.myEvents&&e.myEvents.events&&e.myEvents.events.forEach(a=>{a.calendarDays&&a.calendarDays.forEach(i=>{this.calendarEvents.push({start:new Date(i),title:a.name+" - "+a.location,color:this.colors[a.owner0?0:1],allDay:!1,meta:{event:a}})})}),this.refresh.next(!0),this.loading=!1,this.ngxLoader.stopLoader("loader-dashboard")},error:e=>{this.loading=!1,this.ngxLoader.stopLoader("loader-dashboard"),this.notify.openAlertModal(e.error?e.error:"An error has occured",Ht.ERROR)}}))}loadSupportNumbers(e){!e?.isAdmin||this.clubSite||this.api.get("Support/numbers").pipe(M(this._unsubscribeAll)).subscribe({next:a=>{this.supportNumbers=a,a?.alreadyRegistered>0&&this.tabsArray.push("Sanctioned?")},error:()=>{}})}umpireInvites=[];loadUmpireInvites(){this.api.get("Umpire/pendingInvites",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.umpireInvites=e||[]},error:()=>{}})}openSlots=[];loadOpenSlots(){this.api.get("Team/openSlots",!0).pipe(M(this._unsubscribeAll)).subscribe({next:e=>{this.openSlots=e||[]},error:()=>{}})}enterOpenSlot(e){this.dialog.open(Cn,{panelClass:"p12-dialog-container",width:"calc(100% - 50px)",maxWidth:"960px",height:"auto",maxHeight:"90vh",data:{actionName:"Enter Event",divID:e.divisionID,teamID:e.teamID}}).afterClosed().subscribe(i=>{i&&this.loadOpenSlots()})}viewOpenSlotEvent(e){window.open(`/pages/event/${e.eventID}/${e.teamID}`,"_blank")}openSlotDiscountText(e){return e.discountType=="%"?e.discount+"% off":"$"+e.discount+" off"}openSlotDiscountedFee(e){let a=Number(e.display?.entryFee)||0,i=Number(e.discount?.discount)||0,d=e.discount?.discountType=="%"?a*i/100:i;return Math.max(0,Math.round((a-d)*100)/100)}processUmpireInvite(e,a){e.loading=!0,this.api.get("Umpire/inviteProcess/"+e._key+"/"+a,!0).pipe(M(this._unsubscribeAll)).subscribe({next:i=>{this.umpireInvites=this.umpireInvites.filter(d=>d._key!=e._key),this.notify.openSnackBar("Invitation "+(a=="accept"?"accepted":"declined"),"success")},error:i=>{e.loading=!1,this.notify.openToaster(i.error?i.error:"An error has occured","error")}})}failedFuturePayment=null;complianceDeepLink=null;tabDirectives;ngAfterViewInit(){let e=this.route.snapshot.params.playerID,a=this.route.snapshot.params.entryID;a!=null&&e!=null&&(this.failedFuturePayment={playerID:e,entryID:a},setTimeout(()=>{let z=this.tabDirectives.toArray(),Z=z.find(de=>de.id=="myFamily");if(Z!=null){let de=z.indexOf(Z);de!=-1&&(this.selectedIndex=de)}},500));let i=this.route.snapshot.data.tab;i&&this.scheduleDashboardTabSelect(i);let d=this.route.snapshot.queryParamMap,f=d.get("tab"),C=d.get("personID"),L=d.get("compliance");f==="myFamily"&&C&&(this.complianceDeepLink={personID:C,section:L||"backgroundCheck"},setTimeout(()=>{let z=this.tabDirectives.toArray(),Z=z.find(de=>de.id=="myFamily");if(Z!=null){let de=z.indexOf(Z);de!=-1&&(this.selectedIndex=de)}},500))}onTabChanged(e){this.selectedIndex=e.index,this.state.setPageIndex("dashboard",e.index)}scheduleDashboardTabSelect(e){let a=()=>{let d=(this.tabDirectives?.toArray()??[]).findIndex(f=>f.id===e);return d>-1?(this.selectedIndex=d,this.state.setPageIndex("dashboard",d),this.cdr.detectChanges(),!0):!1};setTimeout(()=>{if(a()||!this.tabDirectives)return;let i=this.tabDirectives.changes.pipe(M(this._unsubscribeAll)).subscribe(()=>{setTimeout(()=>{a()&&i.unsubscribe()})})})}go2Tab(){let e=1;this.dashboard.canHaveSubDirector&&e++,this.dashboard.isDirector&&e++;let a=this.teamsTab;!a||!(a instanceof Jt)||(a.selectedIndex=e)}hasAnyTeamCreatedBefore(){this.hasTeams=!0}dayClicked({date:e,events:a}){dn(e,this.viewDate)&&(sn(this.viewDate,e)&&this.activeDayIsOpen===!0||a.length===0?this.activeDayIsOpen=!1:this.activeDayIsOpen=!0,this.viewDate=e)}setView(e){this.view=e}closeOpenMonthViewDay(){this.activeDayIsOpen=!1}calendarClick(e){if(e.meta?.type==="officiating-event"){this.router.navigateByUrl("/pages/event/"+e.meta.event._key);return}e.meta.type==="activity"?this.router.navigateByUrl("/pages/team/detail/"+e.meta.teamID+"/activity/"+e.meta.activityID+"/detail"):e.meta.gameID?this.dialog.open(la,sa({gameID:e.meta.gameID,correction:!1})):this.dashboard.isDirector?this.router.navigateByUrl("/pages/event/detail/"+e.meta.event._key):this.router.navigateByUrl("/pages/event/"+e.meta.event._key+"/"+ +e.meta.team._key)}openInfo(){this.notify.openInfoModal("Coming soon")}trackEventType(e,a){return a._key}disabled=!1;
13trackTeam=(e,a)=>a._key;trackMyEvent(e,a){return a._key}closeButton(){this.searchInput=""}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||t)(x(U),x(Wt),x(De),x(Ue),x($),x(G),x(oa),x(re),x(ue),x(ee),x(Ye),x(Zn))};static \u0275cmp=j({type:t,selectors:[["app-dashboard"]],viewQuery:function(a,i){if(a&1&&(N(Re,5),N(ht,5),N(xa,5),N(En,5),N($u,5),N(Jt,5),N(Ju,7),N(Yu,5),N(pi,5),N(kn,5)),a&2){let d;W(d=B())&&(i.paginator=d.first),W(d=B())&&(i.sort=d.first),W(d=B())&&(i.myEvent=d.first),W(d=B())&&(i.myTeam=d.first),W(d=B())&&(i._eventSearchForm=d.first),W(d=B())&&(i.group=d.first),W(d=B())&&(i.filter=d.first),W(d=B())&&(i.teamsTab=d.first),W(d=B())&&(i.tabs=d),W(d=B())&&(i.tabDirectives=d)}},features:[Zt([Ue,fn])],decls:11,vars:6,consts:[["teamsTab",""],["id","dashboard","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth"],["loaderId","loader-dashboard",3,"fgsSize"],["title","Dashboard","icon","dashboard"],[1,"content","p-24","mx-auto",2,"min-height","800px",3,"ngStyle"],["mode","card"],[1,"uib-card","osc-card"],[1,"uib-card"],["dynamicHeight","","animationDuration","250ms",1,"color-tabs","dashboardTabs","mb-32",3,"selectedIndex"],[1,"uib-card__icon","osc-icon"],["aria-hidden","true"],[1,"uib-card__body"],[1,"uib-card__eyebrow","osc-eyebrow"],[1,"uib-card__title",3,"id"],[1,"rpui-chip","rpui-chip--warn"],[1,"rpui-chip","rpui-chip--ok"],[1,"uib-card__details"],[1,"uib-card__detail"],[1,"uib-card__label"],[1,"uib-card__actions"],["mat-flat-button","","color","primary",3,"click"],["mat-stroked-button","",1,"uib-card__decline",3,"click"],[1,"osc-discounted"],[1,"uib-card__icon"],[3,"color"],[1,"uib-card__eyebrow"],[1,"uib-card__title"],[1,"uib-card__badge"],["mat-raised-button","",1,"uib-card__accept",3,"click","disabled"],["mat-stroked-button","",1,"uib-card__decline",3,"click","disabled"],["dynamicHeight","","animationDuration","250ms",1,"color-tabs","dashboardTabs","mb-32",3,"selectedTabChange","selectedIndex"],["label","My Family","tabIdentifier","myFamily"],["matTabContent",""],["tabIdentifier","teams"],["tabIdentifier","teamsHideCreateTeams"],["tabIdentifier","events"],["mat-tab-label",""],["tabIdentifier","calendar"],["label","VITS / Volunteering","tabIdentifier","vits"],["tabIdentifier","subDirectors"],["tabIdentifier","staff"],["tabIdentifier","pendingApprovals"],["tabIdentifier","alreadyRegistered"],[1,"tab-content",2,"min-height","800px"],[3,"failedFuturePayment","complianceDeepLink"],[3,"isDirector"],[3,"teamCreated"],[1,"tab-content",2,"min-height","800px",3,"ngClass"],[3,"directorMode"],[1,"px-8","py-12","grey-300","mt-16",2,"display","flex","justify-content","space-between","align-items","center"],[3,"ngClass"],["topic","gameCalendar/generalDirector"],["topic","gameCalendar/generalCoach"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between center",1,"mt-8"],[1,"dvPrevNext"],["mat-stroked-button","","color","primary","mwlCalendarPreviousView","",1,"previous",3,"viewDateChange","view","viewDate"],["mat-stroked-button","","color","","mwlCalendarToday","",1,"today","blue-100",3,"viewDateChange","viewDate"],["mat-stroked-button","","color","primary","mwlCalendarNextView","",1,"next",3,"viewDateChange","view","viewDate"],[1,"viewDate","primary","mat-elevation-z1"],[1,"dvPeriod"],["mat-stroked-button","",3,"click"],["mat-stroked-button","",1,"week",3,"click"],["mat-stroked-button","",1,"day",3,"click"],[1,"mt-8"],[3,"viewDate","events","refresh","activeDayIsOpen"],[3,"viewDate","events","refresh"],[3,"dayClicked","eventClicked","viewDate","events","refresh","activeDayIsOpen"],[3,"eventClicked","viewDate","events","refresh"],[1,"admin-tab"],[1,"admin-tab__icon"],["showOn","dashboard"],[1,"admin-tab__count"],[3,"numbers"]],template:function(a,i){a&1&&(n(0,"div",1),v(1,"ngx-ui-loader",2)(2,"page-header",3),n(3,"div",4),v(4,"rp-games-to-score",5),m(5,e1,1,0,"rp-scoring-card"),k(6,a1,32,16,"section",6,Xu),k(8,m1,21,13,"div",7,Zu),m(10,ag,15,9,"mat-tab-group",8),o()()),a&2&&(r(),_("fgsSize",75),r(2),_("ngStyle",V(4,Qu,i.fuseConfig.pageWidth&&!i.isMobile?i.fuseConfig.pageWidth+"%":"
13100%")),r(2),p(i.dashboard!=null&&i.dashboard.isAdmin?5:-1),r(),T(i.openSlots),r(2),T(i.umpireInvites),r(2),p(i.loading?-1:10))},dependencies:[ha,Jo,K,ie,Pi,jt,Io,he,Ce,gn,un,Oo,pi,Jt,ze,je,J,ae,Y,te,ma,pa,za,aa,La,ia,En,Ma,Ut,Sa,nn,Yi,Qi,Ki,Zi,en,tn,kn,hn,Ue,Xi],styles:["[_ngcontent-%COMP%]:root{--rp-navy-900: #10243f;--rp-navy-800: #143b67;--rp-navy-700: #1a3668;--rp-navy-600: #244f7e;--rp-text: #122033;--rp-text-muted: #64798c;--rp-text-subtle: #667085;--rp-divider: #dce5ee;--rp-divider-soft: #e8edf3;--rp-border-control: #8792a5;--rp-surface: #ffffff;--rp-surface-tint: #f2f7fc;--rp-surface-head: #eef2f6;--rp-surface-sunken: #f7f9fc;--rp-ok-bg: #eaf6ea;--rp-ok-border: #7fb583;--rp-ok-fg: #2e7d32;--rp-warn-bg: #fff3e0;--rp-warn-border: #c9922f;--rp-warn-fg: #9a4a00;--rp-danger-bg: #ffebee;--rp-danger-border: #d97b7b;--rp-danger-fg: #c62828;--rp-info-bg: #eef2fb;--rp-info-border: #8fa6cf;--rp-info-fg: #244f7e;--rp-neutral-bg: #f1f3f6;--rp-neutral-border: #9aa4b2;--rp-neutral-fg: #5a6b7d;--rp-gold-bg: #fdf6e3;--rp-gold-ring: #d4a531;--rp-gold-fg: #6b4700;--rp-silver-bg: #f1f3f6;--rp-silver-ring: #9ba5b1;--rp-silver-fg: #48535f;--rp-bronze-bg: #f8ede6;--rp-bronze-ring: #c4855f;--rp-bronze-fg: #6e3b1d;--rp-focus-ring: #244f7e;--rp-radius-control: 6px;--rp-radius-card: 8px;--rp-radius-row: 10px;--rp-radius-panel: 16px;--rp-shadow-card: 0 1px 3px rgba(15, 31, 53, .05);--rp-shadow-panel: 0 1px 3px rgba(15, 31, 53, .04), 0 8px 32px rgba(15, 31, 53, .07)}#dashboard[_ngcontent-%COMP%] .p-content[_ngcontent-%COMP%]{padding:0 24px}@media screen and (max-width:599px){#dashboard[_ngcontent-%COMP%] .p-content[_ngcontent-%COMP%]{padding:4px}}@media screen and (min-width:600px)and (max-width:959px){#dashboard[_ngcontent-%COMP%] .p-content[_ngcontent-%COMP%]{padding:4px}}#dashboard[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%]{flex:1 1 auto;max-width:100%;margin-top:32px}#dashboard[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{text-align:center}#dashboard[_ngcontent-%COMP%] .actionButtons.btn-action.mat-mdc-button[_ngcontent-%COMP%]{line-height:25px!important;padding:0 8px}#dashboard[_ngcontent-%COMP%] .page-layout.simple.fullwidth[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%], #dashboard[_ngcontent-%COMP%] .page-layout.simple.inner-sidebar[_ngcontent-%COMP%] > .header[_ngcontent-%COMP%]{height:80px;min-height:80px;max-height:80px}#dashboard[_ngcontent-%COMP%] .fxHeader[_ngcontent-%COMP%]{flex-direction:row;box-sizing:border-box;display:flex;place-content:center space-between;align-items:center}#dashboard[_ngcontent-%COMP%] .fxSearch[_ngcontent-%COMP%]{background:#fff;color:#000000de}#dashboard[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start}#dashboard[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:24px 24px 48px;margin-bottom:96px}#dashboard[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-preview[_ngcontent-%COMP%]{display:flex;min-width:320px}#dashboard[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-source[_ngcontent-%COMP%]{display:none}#dashboard[_ngcontent-%COMP%] .content.source[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%]{flex-direction:column}#dashboard[_ngcontent-%COMP%] .content.source[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{width:100%;margin-bottom:24px;border-bottom:1px solid rgba(0,0,0,.12)}#dashboard[_ngcontent-%COMP%] .content.source[_ngcontent-%COMP%] .cards[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-source[_ngcontent-%COMP%]{background:#263238;display:flex!important;flex:1;max-height:400px;min-width:400px;margin-left:24px;overflow:auto;-webkit-overflow-scrolling:touch}#dashboard[_ngcontent-%COMP%] .float-left[_ngcontent-%COMP%]{float:left}#dashboard[_ngcontent-%COMP%] .float-right[_ngcontent-%COMP%]{float:right}#dashboard[_ngcontent-%COMP%] .clear[_ngcontent-%COMP%]{clear:both}#dashboard[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], #dashboard[_ngcontent-%COMP%] .today[_ngcontent-%COMP%]{margin-right:4px}#dashboard[_ngcontent-%COMP%] .week[_ngcontent-%COMP%], #dashboard[_ngcontent-%COMP%] .day[_ngcontent-%COMP%]{margin-left:4px}#dashboard[_ngcontent-%COMP%] .dvPeriod[_ngcontent-%COMP%] .mat-mdc-outlined-button[_ngcontent-%COMP%], #dashboard[_ngcontent-%COMP%] .dvPrevNext[_ngcontent-%COMP%] .mat-mdc-outlined-button[_ngcontent-%COMP%]{line-height:25px;padding:0 12px}#dashboard[_ngcontent-%COMP%] .mat-headline-6[_ngcontent-%COMP%], #dashboard[_ngcontent-%COMP%] .mat-headline-5[_ngcontent-%COMP%]{margin:0}#dashboard[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%], #dashboard[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{padding-left:10px}@media screen and (max-width:599px){#dashboard[_ngcontent-%COMP%] .viewDate[_ngcontent-%COMP%]{font-size:1em;height:24px;padding:4px 8px}#dashboard[_ngcontent-%COMP%] .mat-column-position[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:959px){#dashboard[_ngcontent-%COMP%] .mat-mdc-card-title[_ngcontent-%COMP%]{font-size:1.2em}#dashboard[_ngcontent-%COMP%] .mat-mdc-outlined-button[_ngcontent-%COMP%]{padding:0;line-height:20px;min-width:62px}#dashboard[_ngcontent-%COMP%] .viewDate[_ngcontent-%COMP%]{order:1;font-size:1em;height:24px;padding:4px 8px;margin:0 0 10px}#dashboard[_ngcontent-%COMP%] .dvPrevNext[_ngcontent-%COMP%]{margin:8px 0}}@media screen and (max-width:959px)and (max-width:599px){#dashboard[_ngcontent-%COMP%] .dvPrevNext[_ngcontent-%COMP%]{margin:8px 0;flex-shrink:0;width:100%;max-width:100%;padding-left:12px;padding-right:12px;display:flex;justify-content:center}}@media screen and (max-width:959px){#dashboard[_ngcontent-%COMP%] .dvPeriod[_ngcontent-%COMP%]{order:3}}.mat-mdc-card-header[_ngcontent-%COMP%]{height:35px!important}.mat-mdc-paginator-range-label[_ngcontent-%COMP%]{margin:0 0 0 43px}@media screen and (max-width:599px){ .mat-tab-label, .mat-tab-label-active{min-width:0!important;padding:5px!important;margin:5px!important}}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header{background:#fff;border-bottom:2px solid #e8eaed;padding:0 4px}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header .mdc-tab{background:transparent;border:none;margin-right:0;padding:0 16px;height:44px;min-width:auto;letter-spacing:.2px;transition:color .2s ease,background-color .2s ease}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header .mdc-tab .mdc-tab__text-label{color:#5f6368;font-weight:500;font-size:13px;transition:color .2s ease}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header .mdc-tab:hover{background-color:#4285f40f;border-radius:6px 6px 0 0}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header .mdc-tab:hover .mdc-tab__text-label{color:#1
13a73e8}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header .mdc-tab .mdc-tab__ripple:before{opacity:0!important}[_nghost-%COMP%] .dashboardTabs .mdc-tab--active .mdc-tab__text-label{color:#1a73e8!important;font-weight:600!important}[_nghost-%COMP%] .dashboardTabs .mdc-tab-indicator__content--underline{border-color:#1a73e8!important;border-width:2.5px!important;border-radius:2px 2px 0 0}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header-pagination{min-width:32px;box-shadow:none;color:#5f6368}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header-pagination:hover{color:#1a73e8;background-color:#4285f40f}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:currentColor}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-label-container{margin:0;box-shadow:none!important}@media screen and (max-width:959px){[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header .mdc-tab{padding:0 14px;height:44px}[_nghost-%COMP%] .dashboardTabs .mat-mdc-tab-header .mdc-tab .mdc-tab__text-label{font-size:14px}}.uib-card[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;background:#fff;border:1px solid #edeff3;border-left:5px solid #f0a11c;border-radius:12px;box-shadow:0 2px 10px #171c2d0f;padding:14px 20px;margin-bottom:16px}.uib-card[_ngcontent-%COMP%] .uib-card__icon[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#fbf1df}.uib-card[_ngcontent-%COMP%] .uib-card__icon[_ngcontent-%COMP%] svg{margin-right:0}.uib-card[_ngcontent-%COMP%] .uib-card__body[_ngcontent-%COMP%]{flex:1 1 320px;min-width:0}.uib-card[_ngcontent-%COMP%] .uib-card__eyebrow[_ngcontent-%COMP%]{font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#c8871f}.uib-card[_ngcontent-%COMP%] .uib-card__title[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:2px 0 6px;font-size:16px;font-weight:700;color:#23283a}.uib-card[_ngcontent-%COMP%] .uib-card__badge[_ngcontent-%COMP%]{padding:2px 10px;border:1px solid #eed9b4;border-radius:10px;background:#faeed9;color:#b97a14;font-size:10px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}.uib-card[_ngcontent-%COMP%] .uib-card__details[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px 24px}.uib-card[_ngcontent-%COMP%] .uib-card__detail[_ngcontent-%COMP%]{display:inline-flex;align-items:baseline;gap:6px;font-size:13px;font-weight:600;color:#2b3040}.uib-card[_ngcontent-%COMP%] .uib-card__label[_ngcontent-%COMP%]{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#98a0af}.uib-card[_ngcontent-%COMP%] .uib-card__actions[_ngcontent-%COMP%]{display:flex;gap:10px;margin-left:auto}.uib-card[_ngcontent-%COMP%] button.uib-card__accept[_ngcontent-%COMP%]{border-radius:24px;padding:0 28px;background:#2ea44e;color:#fff;font-weight:600}.uib-card[_ngcontent-%COMP%] button.uib-card__decline[_ngcontent-%COMP%]{border-radius:24px;padding:0 24px;border:1px solid #d9dee6;background:#fff;color:#2b3040;font-weight:600}@media screen and (max-width:599px){.uib-card[_ngcontent-%COMP%]{padding:14px}.uib-card[_ngcontent-%COMP%] .uib-card__actions[_ngcontent-%COMP%]{width:100%;margin-left:0}.uib-card[_ngcontent-%COMP%] .uib-card__actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 auto}}[_nghost-%COMP%] .dashboardTabs .admin-tab{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid #223f86;border-radius:6px;background:#eef2fb;color:#1a2f63;font-weight:500;line-height:1}[_nghost-%COMP%] .dashboardTabs .admin-tab .admin-tab__icon{font-size:16px;width:16px;height:16px;color:#223f86}[_nghost-%COMP%] .dashboardTabs .admin-tab .admin-tab__count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#223f86;color:#fff;font-size:11px;font-weight:600}[_nghost-%COMP%] .dashboardTabs .mdc-tab--active .admin-tab{background:#223f86;color:#fff}[_nghost-%COMP%] .dashboardTabs .mdc-tab--active .admin-tab .admin-tab__icon{color:#fff}[_nghost-%COMP%] .dashboardTabs .mdc-tab--active .admin-tab .admin-tab__count{background:#fff;color:#223f86}.uib-card.osc-card[_ngcontent-%COMP%]{border-left-color:#c9922f}.uib-card[_ngcontent-%COMP%] .osc-icon[_ngcontent-%COMP%]{background:#fff3e0;color:#9a4a00}.uib-card[_ngcontent-%COMP%] .osc-eyebrow[_ngcontent-%COMP%]{color:#9a4a00}.uib-card[_ngcontent-%COMP%] .osc-discounted[_ngcontent-%COMP%]{margin-left:6px;color:#2e7d32;font-weight:600}"]}
13)}return t})();var Fv=[{path:"",pathMatch:"full",component:yn,data:{metaTags:[{property:"og:title",content:"Dashboard"}]}},{path:"my-family",pathMatch:"full",component:yn,data:{tab:"myFamily",metaTags:[{property:"og:title",content:"My Family"}]}},{path:"failedFuturePayment/:playerID/:entryID",pathMatch:"full",component:yn,data:{metaTags:[{property:"og:title",content:"Dashboard"}]}}];export{Fv as dashboardRoutes};
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.