PageSourceSearch

https://jerseywolves.com/chunk-KJ6FJW6K.js

js jerseywolves.com collected 2026-10-06 14:17:29 UTC 51,422 bytes, 312 lines download raw bytes

1import{a as St,b as _t,c as Ct}from"./chunk-4GML6CLG.js";import{a as vt,b as yt}from"./chunk-LNR7EQ32.js";import{g as xt}from"./chunk-QIETH6AN.js";import{a as gt}from"./chunk-FLFERWGO.js";import"./chunk-CJOMWIKP.js";import{k as ft}from"./chunk-O3BD2LYL.js";import{a as ht}from"./chunk-ZB44PIZA.js";import"./chunk-YBFQQSLW.js";import{a as Y}from"./chunk-XDUT5FQR.js";import{Nb as mt,qc as ct}from"./chunk-PXZNPNHI.js";import"./chunk-KWNDGQWR.js";import"./chunk-2ZFY6MCW.js";import"./chunk-KQ7PEKEE.js";import"./chunk-KVMIYEBS.js";import"./chunk-DLHY2JKF.js";import"./chunk-WLMRFXCZ.js";import"./chunk-WN3UI2QV.js";import"./chunk-YVLOHBDK.js";import"./chunk-Z3AXU4EF.js";import"./chunk-TP3A6IN2.js";import"./chunk-XNFXA3ZT.js";import"./chunk-QLTRNXEK.js";import"./chunk-TEFEWVO6.js";import"./chunk-ZB64W4XA.js";import"./chunk-SVABVB5X.js";import"./chunk-CMY6WAF3.js";import"./chunk-FUY7HSJY.js";import"./chunk-JTYXZXFU.js";import"./chunk-7MK6I7GJ.js";import"./chunk-3HFTO6XY.js";import"./chunk-XNSH6ILV.js";import"./chunk-IZKA562T.js";import"./chunk-BROSYERN.js";import"./chunk-Y2KCFOCP.js";import"./chunk-Z52L74DH.js";import{a as qe}from"./chunk-JKMNVQUA.js";import{j as dt,q as ut}from"./chunk-QH3IRCHN.js";import"./chunk-PLEH3NAH.js";import"./chunk-GXCJ5QS4.js";import{b as A}from"./chunk-4D5SN44G.js";import{j as pt}from"./chunk-22ACI5KU.js";import"./chunk-FXUQQQIE.js";import{b as st}from"./chunk-FSUBAQYH.js";import{a as V}from"./chunk-7CVCGK4Q.js";import"./chunk-FWW3IJT2.js";import"./chunk-B6LCWWQX.js";import"./chunk-HYGNXZJR.js";import"./chunk-B6XXRKU5.js";import"./chunk-6Q5DDO7R.js";import"./chunk-RW2MVE4O.js";import"./chunk-3ZVRFUA4.js";import"./chunk-H4PCL6BZ.js";import"./chunk-NXTJBJRP.js";import"./chunk-U22BTVEZ.js";import{$b as se,Ae as nt,Ec as Xe,Ef as rt,Ff as de,Gb as le,Hd as ce,Kb as Ye,Mb as Je,Sc as Ze,Wc as et,Xf as at,b as Ne,d as ie,e as Fe,h as Oe,jc as Ke,k as ne,kd as me,kh as lt,l as Ue,le as ye,m as je,mb as Ge,mg as ot,oe as tt,ua as j,vc as Qe,ve as it,w as Be,x as We,xb as He}from"./chunk-X5J6QTCG.js";import{$ as X,$a as g,Ad as ge,C as q,Db as ee,E as K,Fa as m,Fb as Ee,H as Q,Ib as e,Ic as Ae,Jb as F,Ka as d,Kb as W,Ma as I,Na as Z,Ni as $e,Qb as E,Rb as M,Sa as U,Sb as R,Th as O,U as D,Xa as Ie,_ as be,_c as Ve,ad as Le,bb as x,be as H,bg as xe,cc as he,d as P,db as we,dc as te,di as k,eb as Te,ec as Me,fa as y,fb as Pe,fj as oe,ga as S,gb as h,hb as a,ib as o,jb as c,k as N,kf as ze,lc as Re,mc as ke,nb as ue,ob as fe,pj as b,qb as _,ra as De,ri as ve,sb as v,tb as u,u as C,vd as w,wd as re,xd as $,yd as G,zd as ae}from"./chunk-SMW7PHYX.js";import{a as Ce}from"./chunk-BMIYOSOG.js";var Ft=n=>({adminView:n});function Ot(n,l){if(n&1){let r=_();e(0,`
2    `),a(1,"span",9),v("click",function(i){y(r);let s=ee(5);return S(s.toggle(i))}),e(2),o(),e(3,`
3    `),c(4,"p-menu",10,0),e(6,`
4    `)}if(n&2){let r=u(2);m(2),F(r.teamName),m(2),h("model",r.menuItems)("popup",!0)}}function Ut(n,l){if(n&1&&(e(0,`
5    `),a(1,"div",11),e(2),o(),e(3,`
6    `)),n&2){let r=u(2);m(2),F(r.teamName)}}function jt(n,l){if(n&1){let r=_();a(0,"app-back-link",12),v("back",function(){y(r);let i=u(2);return S(i.goBack())}),o()}}function Bt(n,l){if(n&1){let r=_();e(0,`
7                `),a(1,"li",5),e(2,`
8                    `),a(3,"a",13),v("click",function(){y(r);let i=u(2);return S(i.goToTab("standings"))}),e(4,"Standings"),o(),e(5,`
9                `),o(),e(6,`
10                `)}}function Wt(n,l){if(n&1){let r=_();e(0,`
11                `),a(1,"li",5),e(2,`
12                    `),a(3,"a",14),v("click",function(){y(r);let i=u(2);return S(i.goToTab("invitations"))}),e(4,"Invitations"),o(),e(5,`
13                `),o(),e(6,`
14                `)}}function zt(n,l){if(n&1){let r=_();e(0,`
15                `),a(1,"li",5),e(2,`
16                    `),a(3,"a",15),v("click",function(){y(r);let i=u(2);return S(i.goToTab("team-contact"))}),e(4,"Team Information"),o(),e(5,`
17                `),o(),e(6,`
18                `)}}function $t(n,l){if(n&1){let r=_();e(0,`
19                `),a(1,"li",5),e(2,`
20                    `),a(3,"a",16),v("click",function(){y(r);let i=u(2);return S(i.goToTab("registrations"))}),e(4,"Registration"),o(),e(5,`
21                `),o(),e(6,`
22                `)}if(n&2){let r=u(2);m(3),h("routerLink","registrations/"+r.entityRegistrationID)}}function Gt(n,l){if(n&1){let r=_();e(0,`
23
24`),a(1,"app-team-banner",1),v("profileImageSelected",function(i){y(r);let s=u();return S(s.onLogoSelected(i))})("logoRemoved",function(){y(r);let i=u();return S(i.onLogoRemoved())}),e(2,`
25    `),g(3,Ot,7,3)(4,Ut,4,1),o(),e(5,`
26`),a(6,"main"),e(7,`
27    
28    `),g(8,jt,1,0,"app-back-link"),a(9,"div",2),e(10,`
29        `),a(11,"div",3),e(12,`
30            `),a(13,"ul",4),e(14,`
31                `),a(15,"li",5),e(16,`
32                    `),a(17,"a",6),v("click",function(){y(r);let i=u();return S(i.goToTab("schedule"))}),e(18,"Schedule"),o(),e(19,`
33                `),o(),e(20,`
34                `),g(21,Bt,7,0),g(22,Wt,7,0),a(23,"li",5),e(24,`
35                    `),a(25,"a",7),v("click",function(){y(r);let i=u();return S(i.goToTab("roster"))}),e(26,"Roster"),o(),e(27,`
36                `),o(),e(28,`
37                `),g(29,zt,7,0),g(30,$t,7,1),o(),e(31,`
38        `),o(),e(32,`
39        `),a(33,"div",8),e(34,`
40            `),c(35,"router-outlet"),e(36,`
41        `),o(),e(37,`
42    `),o(),e(38,`
43`),o(),e(39,`
44`)}if(n&2){let r=u();m(),h("eyebrowText",r.programName)("logoUrl",r.team==null?null:r.team.logo)("canEditLogo",!0)("updatingLogo",r.updatingLogo),m(2),x((r.menuItems==null?null:r.menuItems.length)>0?3:4),m(5),x(r.showBackLink?8:-1),m(13),x(r.settings!=null&&r.settings.disableStandings?-1:21),m(),x(r.hasPlayerRegistrations?22:-1),m(3),h("state",te(11,Ft,r.adminView)),m(4),x(r.optionEnabled(r.FieldOption.TEAM_CONTACT_INFORMATION)?29:-1),m(),x(r.showRegistrationTab?30:-1)}}var bt=(()=>{let l=class l{constructor(t,i,s,p,f,T,J,Vt){this.siteDataService=t,this.route=i,this.userService=s,this.router=p,this.leagueService=f,this.teamService=T,this.location=J,this.authorizeService=Vt,this.unsubscribe$=new P,this.teams=[],this.loading=!0,this.menuItems=[],this.adminView=!1,this.Permission=O,this.showTabs=!0,this.activeTab="roster",this.returnURL="/dashboard",this.updatingLogo=!1,this.FieldOption=oe,this.showBackLink=!0}ngOnInit(){this.setBackLinkVisibility(),this.userService.teamRegistrations=null,this.route.params.subscribe(t=>{t&&(this.teamID=+t.id,this.programID=+t.programID),this.route.snapshot.queryParams.ReturnUrl&&(this.returnURL=this.route.snapshot.queryParams.ReturnUrl),this.settings||this.leagueService.getLeagueSettings(this.programID).subscribe({next:i=>{this.settings=i,this.leagueService.leagueSettings=i}}),this.userService.teamRegistrations?this.setCurrentTeam():C({registrations:this.userService.getClubUserTeamRegistrations(),fieldOptions:this.siteDataService.getClubFieldOptions()}).subscribe(i=>{this.userService.teamRegistrations=i.registrations.filter(s=>s.registration.programID===this.programID),this.fieldOptions=i.fieldOptions,this.buildMenu(),this.setCurrentTeam(),this.siteDataService.hideSiteLoader()})}),this.authorizeService.getUser().subscribe(t=>{t&&(this.user=t)})}setCurrentTeam(){this.programName=this.userService.teamRegistrations.find(t=>t.registration.program.programID===this.programID)?.registration.program.name,this.teamName=this.userService.teamRegistrations.find(t=>t.team.teamID===this.teamID)?.team.name,this.team=this.userService.teamRegistrations.find(t=>t.team.teamID===this.teamID)?.team,this.entityRegistrationID=this.userService.teamRegistrations.find(t=>t.registration.program.programID===this.programID&&t.team.teamID===this.teamID)?.entityRegistrationID,this.hasPlayerRegistrations=this.userService.teamRegistrations.find(t=>t.registration.program.programID===this.programID)?.registration.program.hasPlayerRegistrations,this.showRegistrationTab=this.authorizeService.isAdmin(this.user.role)||this.userService.teamRegistrations.find(t=>t.team.teamID===this.teamID).createdByClubUserID===+this.user.userID}optionEnabled(t){return this.fieldOptions?.find(i=>i.fieldOptionID===t)!==void 0}buildMenu(){this.userService.teamRegistrations?.length>1&&(this.menuItems=[],this.userService.teamRegistrations.forEach(t=>this.menuItems.push({label:t.team.name,id:t.team.teamID.toString(),command:()=>{let i=`/teams/${t.team.teamID}/program/${t.registration.program.programID}/${this.activeTab}`;this.activeTab==="registrations"&&(i+=`/${t.entityRegistrationID}`),this.router.navigate([i])}}))),this.loading=!1}goToTab(t){this.activeTab=t}onLogoSelected(t){this.updatingLogo=!0,this.teamService.uploadTeamLogo(this.teamID,this.programID,t).subscribe({next:i=>{this.team.logo=i.location,this.siteDataService.showSiteSuccessAlert("Team logo updated."),this.updatingLogo=!1},error:()=>{this.siteDataService.showSiteErrorAlert("Unable to upload team logo."),this.updatingLogo=!1}})}onLogoRemoved(){this.updatingLogo=!0,this.teamService.deleteTeamLogo(this.teamID,this.programID).subscribe({next:()=>{this.team.logo=null,this.siteDataService.showSiteSuccessAlert("Team logo removed."),this.updatingLogo=!1},error:()=>{this.siteDataService.showSiteErrorAlert("Unable to remove team logo."),this.updatingLogo=!1}})}setBackLinkVisibility(){if(this.siteDataService.previousUrl){this.showBackLink=!0;return}let i=document.referrer;if(!i){this.showBackLink=!1;return}try{this.showBackLink=new URL(i).origin===window.location.origin}catch(s){this.showBackLink=!1}}goBack(){this.showBackLink&&this.location.back()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(i){return new(i||l)(d(b),d(w),d(j),d($),d(Y),d(V),d(Ae),d(k))},l.\u0275cmp=I({type:l,selectors:[["app-teams"]],standalone:!1,decls:1,vars:1,consts:[["teamMenu",""],[3,"profileImageSelected","logoRemoved","eyebrowText","logoUrl","canEditLogo","updatingLogo"],[1,"container"],[1,"tabs"],["role","tablist",1,"tab-nav","no-bullets","inline-list"],["routerLinkActive","active",1,"nav-item"],["routerLink","schedule","role","tab","aria-controls","Schedule","aria-selected","true",1,"nav-link",3,"click"],["routerLink","roster","role","tab","aria-controls","Roster","aria-selected","true",1,"nav-link",3,"click","
44state"],[1,"ml-0","pl-0"],[1,"btn","team-toggle","btn-naked","btn-icon-chevron-down-after",3,"click"],["appendTo","body",3,"model","popup"],[1,"text-jumbo","fw-900","line-height-1"],[3,"back"],["routerLink","standings","role","tab","aria-controls","Standings","aria-selected","true",1,"nav-link",3,"click"],["routerLink","invitations","role","tab","aria-controls","Invitations","aria-selected","true",1,"nav-link",3,"click"],["routerLink","team-contact","role","tab","aria-controls","Team Information","aria-selected","true",1,"nav-link",3,"click"],["role","tab","aria-controls","Registration","aria-selected","true",1,"nav-link",3,"click","routerLink"]],template:function(i,s){i&1&&g(0,Gt,40,13),i&2&&x(s.loading?-1:0)},dependencies:[re,G,ae,at,ot,Ge],styles:[".team-toggle[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:var(--blue-1000);padding:0}.team-toggle[_ngcontent-%COMP%]:after{color:var(--primary-link)}.tab-nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{min-width:7rem;display:inline-block;text-align:center}"]});let n=l;return n})();function Jt(n,l){n&1&&(e(0,`
45                `),a(1,"app-pill",23),e(2,`
46                `),o(),e(3,`
47                `))}function qt(n,l){if(n&1&&(e(0,`
48                `),a(1,"span",24),e(2),o(),e(3,`
49                `)),n&2){let r=u().$implicit;m(2),W("#",r.playerClubData.number)}}function Kt(n,l){if(n&1){let r=_();e(0,`
50            `),a(1,"div",25),e(2,`
51                `),a(3,"app-checkbox-button",26),R("valueChange",function(i){y(r);let s=u().$implicit;return M(s.isCoCaptain,i)||(s.isCoCaptain=i),S(i)}),v("valueChange",function(){y(r);let i=u().$implicit,s=u(2);return S(s.setCoCaptain(i.playerID,i.isCoCaptain))}),e(4,`
52                `),o(),e(5,`
53            `),o(),e(6,`
54            `)}if(n&2){let r=u().$implicit;m(3),h("inputLabel","Co-Captain")("inputID",r.playerID==null?null:r.playerID.toString()),E("value",r.isCoCaptain)}}function Qt(n,l){if(n&1&&(e(0,`
55`),a(1,"div",13),e(2,`
56    `),a(3,"div",14),e(4,`
57        `),a(5,"div",15),e(6,`
58            `),e(7,`
59            `),a(8,"div",16),e(9,`
60                `),a(10,"app-player-profile-photo",17),e(11,`
61                `),o(),e(12,`
62            `),o(),e(13,`
63            `),e(14,`
64            `),a(15,"div",18),e(16),a(17,"div",19),e(18),o(),e(19,`
65            `),o(),e(20,`
66        `),o(),e(21,`
67        `),a(22,"div",20),e(23,`
68            `),e(24,`
69            `),a(25,"div",21),e(26,`
70                `),g(27,Jt,4,0),o(),e(28,`
71            `),e(29,`
72            `),a(30,"div",22),e(31,`
73                `),g(32,qt,4,1),o(),e(33,`
74            `),c(34,"div",22),e(35,`
75            `),c(36,"div",22),e(37,`
76            `),c(38,"div",22),e(39,`
77            `),g(40,Kt,7,3),o(),e(41,`
78    `),o(),e(42,`
79`),o(),e(43,`
80`)),n&2){let r=l.$implicit,t=u(2);m(10),h("player",r)("initialsOnly",t.hidePlayerPhotos)("playerNumber",r.playerClubData==null?null:r.playerClubData.number),m(6),W(`
81                `,r.user.firstName+" "+r.user.lastName,`
82                `),m(2),F(r.playerClubData==null||r.playerClubData.position==null?null:r.playerClubData.position.name),m(9),x(r.secondary?27:-1),m(5),x(r.playerClubData!=null&&r.playerClubData.number?32:-1),m(8),x(t.showCoCaptain?40:-1)}}function Xt(n,l){if(n&1){let r=_();e(0,`
83`),a(1,"div",6),e(2,`
84    `),a(3,"button",27),v("click",function(){y(r);let i=u(2);return S(i.addSelf())}),e(4,"Add Myself"),o(),e(5,`
85`),o(),e(6,`
86`)}}function Zt(n,l){if(n&1&&(e(0,`
87`),e(1,`
88`),Te(2,Qt,44,8,null,null,we),g(4,Xt,7,0)),n&2){let r=u();m(2),Pe(r.rosterPlayers),m(2),x(r.showAddMyself?4:-1)}}function ei(n,l){n&1&&(e(0,`
89`),a(1,"div",28),e(2,`
90    `),a(3,"app-inline-alert",29),e(4,`Please select a team to see their roster.
91    `),o(),e(5,`
92`),o(),e(6,`
93`)),n&2&&(m(3),h("isInline",!0))}function ti(n,l){n&1&&e(0,`
94                Assigned Amount must be 0 or more
95                `)}function ii(n,l){if(n&1&&(e(0),Re(1,"currency")),n&2){let r=u();W(`
96                Assigned Amount max is (`,ke(1,1,r.amountOutstanding),`)
97                `)}}function ni(n,l){n&1&&e(0,`
98                \xA0
99                `)}function ri(n,l){if(n&1){let r=_();e(0,`
100        `),a(1,"app-dialog-footer"),e(2,`
101            `),ue(3,30),e(4,`
102                `),a(5,"button",31),v("click",function(){y(r);let i=u();return S(i.showPaymentModal=!1)}),e(6,"Cancel"),o(),e(7,`
103            `),fe(),e(8,`
104            `),ue(9,32),e(10,`
105                `),a(11,"button",33),v("click",function(){y(r);let i=u();return S(i.confirmRegister())}),e(12,"Add to Roster"),o(),e(13,`
106            `),fe(),e(14,`
107        `),o(),e(15,`
108    `)}}var It=(()=>{let l=class l{constructor(t,i,s,p,f,T,J){this.route=t,this.router=i,this.teamService=s,this.siteDataService=p,this.userService=f,this.playerService=T,this.authorize=J,this.adminView=!1,this.showAddMyself=!1,this.showAddPlayer=!1,this.showCoCaptain=!1,this.hidePlayerPhotos=!1,this.allowSplitTeamPayments=!1,this.showPaymentModal=!1,this.showPaymentModalErrors=!1,this.unsubscribe$=new P}
108ngOnInit(){this.adminView=this.route.snapshot.parent.data?.adminView,this.hasPlayerRegistrations=this.userService.teamRegistrations.find(t=>t.registration.program.programID===this.programID)?.registration.program.hasPlayerRegistrations,this.isAdultProgram=this.userService.teamRegistrations.find(t=>t.registration.program.programID===this.programID)?.registration.program.isAdultProgram,this.authorize.getUser().subscribe(t=>{this.user=t}),this.siteDataService.getClubSettings().pipe(D(this.unsubscribe$)).subscribe({next:t=>{this.hidePlayerPhotos=t.clubOptions?.find(i=>i.optionID===$e.HIDE_PLAYER_PROFILE_PHOTO)?.boolValue||!1}}),this.showCoCaptain=this.hasPlayerRegistrations&&this.isAdultProgram&&(this.authorize.isAdmin(this.user.role)||this.userService.teamRegistrations.find(t=>t.team.teamID===this.teamID&&t.registration.programID===this.programID)?.createdByClubUserID===+this.user.userID)}ngOnChanges(t){(t.teamID||t.programID)&&this.getRoster()}getRoster(){C({roster:this.teamService.getLeagueTeamRoster(this.teamID,this.programID),inviteSettings:this.teamService.getInviteSettings(this.teamID,this.programID)}).pipe(D(this.unsubscribe$)).subscribe({next:t=>{this.roster=t.roster,this.rosterPlayers=this.roster.filter(i=>!i.isGuest),this.guestPlayers=this.roster.filter(i=>i.isGuest),this.showAddMyself=this.hasPlayerRegistrations&&this.isAdultProgram&&!this.rosterPlayers.some(i=>i.userID===this.userService.loggedInClubUser.user.userID),this.allowSplitTeamPayments=t.inviteSettings?.allowSplitTeamPayments??!1,this.amountOutstanding=t.inviteSettings?.amountOutstanding??0,this.siteDataService.hideSiteLoader()},error:()=>{this.siteDataService.hideSiteLoader()}})}register(t){let i;this.teamService.addSelfToRoster(this.teamID,this.programID,t).pipe(K(s=>(i=s,this.playerService.getPlayerUnacceptedInvites(i.playerID)))).subscribe({next:s=>{let p=s.find(f=>f.programID===this.programID&&f.teamID===this.teamID);p?this.router.navigate(["/players",i.playerID,"registrations",p.registrationID,"teams",this.teamID,"register"]):this.getRoster()}})}addSelf(){this.userService.loggedInClubUser.isPlayer?this.allowSplitTeamPayments?(this.assignedAmount=void 0,this.showPaymentModalErrors=!1,this.showPaymentModal=!0):this.register():(this.player={firstName:this.userService.loggedInClubUser.user.firstName,lastName:this.userService.loggedInClubUser.user.lastName,email:this.userService.loggedInClubUser.user.email,cellPhone:this.userService.loggedInClubUser.user.cellPhone},this.showAddPlayer=!0)}confirmRegister(){this.showPaymentModalErrors=!0,(this.assignedAmount==null||this.assignedAmount>=0&&this.assignedAmount<=(this.amountOutstanding??0))&&(this.showPaymentModal=!1,this.showPaymentModalErrors=!1,this.register(this.assignedAmount??void 0))}setCoCaptain(t,i){this.teamService.setPlayerAsCoCaptain(this.teamID,this.programID,t,i).pipe(D(this.unsubscribe$)).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Player co-captaincy saved successfully")},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request.")}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(i){return new(i||l)(d(w),d($),d(V),d(b),d(j),d(rt),d(k))},l.\u0275cmp=I({type:l,selectors:[["app-roster-panel"]],inputs:{teamID:"teamID",programID:"programID"},standalone:!1,features:[De],decls:40,vars:23,consts:[["paymentForm","ngForm"],["amountInput","ngModel"],["header","Add Player","styleClass","standardWidthDialog",3,"visible","showHeader","closable","modal","draggable"],[3,"cancel","add","horizontalForm","allowAddPlayerLogin","createFromClubUser","player"],["header","Assign Your Payment Amount","styleClass","standardWidthDialog",3,"visibleChange","onHide","visible","showHeader","closable","modal","draggable"],[1,"mb-1"],[1,"mb-3"],[1,"form-group"],["for","assignedAmount"],["id","assignedAmount","name","assignedAmount","type","number","min","0","step","0.01","placeholder","0.00",3,"ngModelChange","ngModel","max"],[1,"form-error-message"],[1,"text-small","mt-2"],["pTemplate","footer"],[1,"card","pt-0","pb-0"],[1,"list-row","py-2","text-medium"],[1,"list-row-body","d-flex","align-items-center"],[1,"profile-image","align-self-center"],[3,"player","initialsOnly","playerNumber"],[1,"text-default","pl-2"],[1,"text-smallest"],[1,"list-row-meta"],[1,"list-row-item","list-row-item-md"],[1,"list-row-item","list-row-item-sm"],["text","Secondary"],[1,"fw-700","d-block"],[1,"list-row-item","list-row-item-lg"],[3,"valueChange","input
108Label","inputID","value"],[1,"btn","btn-primary","btn-icon-plus",3,"click"],[1,"mt-3","text-small"],["alertType","info",3,"isInline"],["slot","secondary"],[1,"btn","btn-secondary",3,"click"],["slot","primary"],[1,"btn","btn-primary",3,"click"]],template:function(i,s){if(i&1){let p=_();g(0,Zt,5,1)(1,ei,7,1),a(2,"p-dialog",2),e(3,`
109    `),a(4,"app-add-player",3),v("cancel",function(){return s.showAddPlayer=!1})("add",function(){return s.register()}),e(5,`
110    `),o(),e(6,`
111`),o(),e(7,`
112`),a(8,"p-dialog",4),R("visibleChange",function(T){return y(p),M(s.showPaymentModal,T)||(s.showPaymentModal=T),S(T)}),v("onHide",function(){return y(p),s.showPaymentModalErrors=!1,S(s.assignedAmount=void 0)}),e(9,`
113    `),a(10,"p",5),e(11,"Enter the amount you will pay toward the team fee."),o(),e(12,`
114    `),a(13,"p",6),e(14,"Your payment will reduce the team's remaining balance."),o(),e(15,`
115    `),a(16,"form",null,0),e(18,`
116        `),a(19,"div",7),e(20,`
117            `),a(21,"label",8),e(22,"Your Assigned Amount"),o(),e(23,`
118            `),a(24,"input",9,1),R("ngModelChange",function(T){return y(p),M(s.assignedAmount,T)||(s.assignedAmount=T),S(T)}),o(),e(26,`
119            `),a(27,"div",10),e(28,`
120                `),g(29,ti,1,0),g(30,ii,2,3),g(31,ni,1,0),o(),e(32,`
121        `),o(),e(33,`
122        `),a(34,"p",11),e(35,`If the team fee is not fully paid by the Final Payment Due Date, the team captain is
123            responsible for any remaining balance.`),o(),e(36,`
124    `),o(),e(37,`
125    `),U(38,ri,16,0,"ng-template",12),e(39,`
126`),o()}if(i&2){let p=ee(25);x(s.roster?0:1),m(2),h("visible",s.showAddPlayer)("showHeader",!0)("closable",!1)("modal",!0)("draggable",!1),m(2),h("horizontalForm",!1)("allowAddPlayerLogin",!1)("createFromClubUser",!0)("player",s.player),m(4),E("visible",s.showPaymentModal),h("showHeader",!0)("closable",!0)("modal",!0)("draggable",!1),m(16),E("ngModel",s.assignedAmount),h("max",s.amountOutstanding),m(3),Ee("invisible",!(p.errors!=null&&p.errors.min)&&!(p.errors!=null&&p.errors.max)||!s.showPaymentModalErrors),Ie("aria-hidden",!(p.errors!=null&&p.errors.min)&&!(p.errors!=null&&p.errors.max)||!s.showPaymentModalErrors),m(2),x(p.errors!=null&&p.errors.min?29:-1),m(),x(p.errors!=null&&p.errors.max?30:-1),m(),x(!(p.errors!=null&&p.errors.min)&&!(p.errors!=null&&p.errors.max)?31:-1)}}
126,dependencies:[Ue,Ne,je,ie,Fe,We,Be,ne,Oe,H,Ye,Je,nt,Ze,le,dt,st,Ve],styles:[".radio-group[_ngcontent-%COMP%]{border:1px solid var(--border-color);padding:1rem;display:flex;align-items:center;border-radius:8px;margin-bottom:1rem}.radio-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-left:1rem;font-weight:600}.radio-group.active[_ngcontent-%COMP%]{border-color:var(--green-400);background-color:var(--blue-25)}"]});let n=l;return n})();var wt=(()=>{let l=class l{constructor(t,i){this.route=t,this.siteDataService=i}ngOnInit(){this.route.parent.params.subscribe(t=>{this.teamID=+t.id,this.programID=+t.programID})}};l.\u0275fac=function(i){return new(i||l)(d(w),d(b))},l.\u0275cmp=I({type:l,selectors:[["app-roster"]],standalone:!1,decls:1,vars:2,consts:[[3,"teamID","programID"]],template:function(i,s){i&1&&c(0,"app-roster-panel",0),i&2&&h("teamID",s.teamID)("programID",s.programID)},dependencies:[It],styles:[".radio-group[_ngcontent-%COMP%]{border:1px solid var(--border-color);padding:1rem;display:flex;align-items:center;border-radius:8px;margin-bottom:1rem}.radio-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-left:1rem;font-weight:600}.radio-group.active[_ngcontent-%COMP%]{border-color:var(--green-400);background-color:var(--blue-25)}"]});let n=l;return n})();var ci=()=>({field:"lastName",order:1}),di=()=>({field:"firstName",order:1}),pi=(n,l)=>[n,l],ui=n=>["/admin/users",n,"profile"];function fi(n,l){if(n&1&&(e(0,`
127        `),a(1,"app-user-info-view-only-card",4),e(2,`
128        `),o(),e(3,`
129      `)),n&2){let r=u(2);m(),h("entity",r.player.user)("fields",r.userFields)}}function hi(n,l){if(n&1){let r=_();e(0,`
130        `),a(1,"app-user-info-view-only-card",5),v("edit",function(){y(r);let i=u(2);return S(i.showEditPlayerInfo=!0)}),e(2,`
131        `),o(),e(3,`
132      `)}if(n&2){let r=u(2);m(),h("entity",r.player.playerClubData)("fields",r.playerClubDataFields)("isEditable",!0)}}function gi(n,l){if(n&1&&(e(0,`
133        `),a(1,"app-user-info-view-only-card",6),e(2,`
134        `),o(),e(3,`
135      `)),n&2){let r=u(2);m(),h("entity",r.player.user.userEmergencyContactInfo)("fields",r.emergencyContactFields)}}function xi(n,l){n&1&&(e(0,`
136          `),a(1,"tr"),e(2,`
137            `),a(3,"th"),e(4,"Last Name"),o(),e(5,`
138            `),a(6,"th"),e(7,"First Name"),o(),e(8,`
139            `),a(9,"th"),e(10,"Email"),o(),e(11,`
140            `),a(12,"th"),e(13,"Phone"),o(),e(14,`
141          `),o(),e(15,`
142        `))}function vi(n,l){if(n&1&&(e(0,`
143              `),a(1,"a",11),e(2),o(),e(3,`
144            `)),n&2){let r=u().$implicit;m(),h("routerLink",te(2,ui,r.clubUserID)),m(),W(`
145                `,r.user.lastName,`
146              `)}}function yi(n,l){if(n&1&&e(0),n&2){let r=u().$implicit;W(`
147              `,r.user.lastName,`
148            `)}}function Si(n,l){if(n&1&&(e(0,`
149          `),a(1,"tr"),e(2,`
150            `),a(3,"td"),g(4,vi,4,4)(5,yi,1,1),o(),e(6,`
151          `),a(7,"td"),e(8),o(),e(9,`
152          `),a(10,"td"),e(11),o(),e(12,`
153          `),a(13,"td"),e(14),o(),e(15,`
154        `),o(),e(16,`
155      `)),n&2){let r=l.$implicit,t=u(3);m(4),x(t.user[t.Permission.UserAdmin]?4:5),m(4),F(r.user.firstName),m(3),F(r.user.email),m(3),F(r.user.cellPhone?r.user.cellPhone:r.user.homePhone)}}function _i(n,l){if(n&1&&(e(0,`
156    `),a(1,"section",7),e(2,`
157      `),a(3,"h4"),e(4,"Parents/Legal Guardians"),o(),e(5,`
158      `),a(6,"p-table",8),e(7,`
159        `),U(8,xi,16,0,"ng-template",9),e(9,`
160        `),U(10,Si,17,4,"ng-template",10),e(11,`
161    `),o(),e(12,`
162  `),o(),e(13,`
163`)),n&2){let r=u(2);m(6),h("value",r.parents)("multiSortMeta",Me(4,pi,he(2,ci),he(3,di)))}}function Ci(n,l){if(n&1&&(e(0,`
164  `),a(1,"app-admin-header",1),e(2,`
165  `),o(),e(3,`
166  `),a(4,"div",2),e(5,`
167    `),a(6,"div",3),e(7,`
168      `),g(8,fi,4,2),g(9,hi,4,3),o(),e(10,`
169    `),a(11,"div",3),e(12,`
170      `),g(13,gi,4,2),o(),e(14,`
171  `),o(),e(15,`
172  `),g(16,_i,14,7)),n&2){let r=u();m(),h("pageTitle",r.player.user.firstName+" "+r.player.user.lastName)("parentLinkUrl","../..")("parentLinkText","Roster")("showBackButton",!0),m(7),x(r.player?8:-1),m(),x(r.player.playerClubData?9:-1),m(4),x(r.player?13:-1),m(3),x(r.parents&&r.parents.length>0?16:-1)}}function bi(n,l){if(n&1){let r=_();e(0,`
173    `),a(1,"app-dynamic-form",12),v("onSubmit",function(i){y(r);let s=u();return s.savePlayerClubData(i),S(s.showEditPlayerInfo=!1)})("onCancel",function(){y(r);let i=u();return S(i.showEditPlayerInfo=!1)}),e(2,`
174      `),c(3,"app-dynamic-form-field",13),e(4,`
175      `),c(5,"app-dynamic-form-field",14),e(6,`
176      `),c(7,"app-dynamic-form-field",15),e(8,`
177      `),a(9,"app-dynamic-form-field",16),e(10,`
178      `),o(),e(11,`
179      `),a(12,"app-dynamic-form-field",17),e(13,`
180      `),o(),e(14,`
181      `),a(15,"app-dynamic-form-field",18),e(16,`
182      `),o(),e(17,`
183      `),a(18,"app-dynamic-form-field",19),e(19,`
184      `),o(),e(20,`
185      `),a(21,"app-dynamic-form-field",20),e(22,`
186      `),o(),e(23,`
187      `),a(24,"app-dynamic-form-field",21),e(25,`
188      `),o(),e(26,`
189      `),a(27,"app-dynamic-form-field",22),e(28,`
190      `),o(),e(29,`
191      `),c(30,"app-dynamic-form-field",23),e(31,`
192      `),c(32,"app-dynamic-form-field",24),e(33,`
193      `),c(34,"app-dynamic-form-field",25),e(35,`
194      `),c(36,"app-dynamic-form-field",26),e(37,`
195      `),c(38,"app-dynamic-form-field",27),e(39,`
196      `),c(40,"app-dynamic-form-field",28),e(41,`
197      `),c(42,"app-dynamic-form-field",29),e(43,`
198      `),c(44,"app-dynamic-form-field",30),e(45,`
199      `),c(46,"app-dynamic-form-field",31),e(47,`
200      `),c(48,"app-dynamic-form-field",32),e(49,`
201      `),c(50,"app-dynamic-form-field",33),e(51,`
202      `),c(52,"app-dynamic-form-field",34),e(53,`
203      `),c(54,"app-dynamic-form-field",35),e(55,`
204      `),c(56,"app-dynamic-form-field",36),e(57,`
205      `),c(58,"app-dynamic-form-field",37),e(59,`
206      `),c(60,"app-dynamic-form-field",38),e(61,`
207      `),c(62,"app-dynamic-form-field",39),e(63,`
208      `),c(64,"app-dynamic-form-field",40),e(65,`
209      `),c(66,"app-dynamic-form-field",41),e(67,`
210      `),c(68,"app-dynamic-form-field",42),e(69,`
211      `),c(70,"app-dynamic-form-field",43),e(71,`
212      `),c(72,"app-dynamic-form-field",44),e(73,`
213      `),c(74,"app-dynamic-form-field",45),e(75,`
214      `),c(76,"app-dynamic-form-field",46),e(77,`
215      `),c(78,"app-dynamic-form-field",47),e(79,`
216      `),c(80,"app-dynamic-form-field",48),e(81,`
217      `),a(82,"app-dynamic-form-field",49),e(83,`
218      `),o(),e(84,`
219      `),a(85,"app-dynamic-form-field",50),e(86,`
220      `),o(),e(87,`
221      `),a(88,"app-dynamic-form-field",51),e(89,`
222      `),o(),e(90,`
223      `),a(91,"app-dynamic-form-field",52),e(92,`
224      `),o(),e(93,`
225      `),a(94,"app-dynamic-form-field",53),e(95,`
226      `),o(),e(96,`
227      `),a(97,"app-dynamic-form-field",54),e(98,`
228      `),o(),e(99,`
229      `),a(100,"app-dynamic-form-field",55),e(101,`
230      `),o(),e(102,`
231      `),a(103,"app-dynamic-form-field",56),e(104,`
232      `),o(),e(105,`
233    `),o(),e(106,`
234  `)}if(n&2){let r=u();m(),h("fields",r.playerClubDataFields)("entity",r.player.playerClubData)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("contentFieldsMode",!0)}}var Tt=(()=>{let l=class l{constructor(t,i,s,p,f,T,J){this.userService=t,this.teamService=i,this.route=s,this.siteDataService=p,this.authorize=f,this.playerService=T,this.formService=J,this.loading=!0,this.showEditPlayerInfo=!1,this.Permission=O,this.unsubscribe$=new P}ngOnInit(){this.teamID=+this.route.snapshot.parent.parent.params.id,this.playerID=+this.route.snapshot.parent.params.playerID,C([this.userService.getRosterPlayerUserMetadata(),this.teamService.getTeamRosterPlayer(this.teamID,this.playerID),this.userService.getUserEmergencyContactInfoMetadata(),this.playerService.getParents(this.playerID),this.playerService.getPlayerClubDataMetadata()]).pipe(D(this.unsubscribe$)).subscribe(t=>{this.userFields=t[0].fields,this.player=t[1],this.emergencyContactFields=t[2].fields,this.parents=t[3],this.playerClubDataFields=t[4].fields,this.loading=!1,this.siteDataService.hideSiteLoader()}),this.authorize.getUser().subscribe(t=>{this.user=t})}savePlayerClubData(t){this.playerService.savePlayerClubData(this.playerID,t,this.player.playerClubData!==null).subscribe({next:()=>{this.player.playerClubData=Ce({},t),this.formService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Player information saved successfully")},error:()=>{this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert("There was a problem saving player information.")}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(i){return new(i||l)(d(j),d(de),d(w),d(b),d(k),d(gt),d(se))},l.\u0275cmp=I({type:l,selectors:[["app-roster-player-profile"]],standalone:!1,decls:4,vars:7,consts:[["header","Player Info","styleClass","standardWidthDialog",3,"visibleChange","visible","showHeader","closable","modal","draggable"],[3,"pageTitle","parentLinkUrl","parentLinkText","showBackButton"],[1,"row"],[1,"col-md-6"],["headerText","Basic Info",3,"entity","fields"],["headerText","Player Info",3,"edit","entity","fields","isEditable"],["headerText","Emergency Contact Info",3,"entity","fields"],[1,"card"],["sortMode","multiple",1,"table","table-striped","table-sm",3,"value","multiSortMeta"],["pTemplate","header"],["pTemplate","body"],[3,"routerLink"],["formID","player-club-data","submitButtonText","Save",3,"onSubmit","onCancel","fields","entity","horizontalForm","showCancelButton","showSubmitButton","contentFieldsMode"],["fieldName","schoolName","formID","player-club-data"],["fieldName","gradeID","formID","player-club-data"],["fieldName","playsForSchool","formID","player-club-data"],["fieldName","schoolTeamLevelID","formID","player-club-data"],["fieldName","isGoalkeeper","formID","player-club-data-form"],["fieldName","goalkeeperStatusID","formID","player-club-data-form"],["fieldName","positionID","formID","player-club-data"],["fieldName","secondaryPositionID","formID","player-club-data"],["fieldName","preferredPositionID","formID","player-club-data"],["fieldName","preferredSecondaryPositionID","formID","player-club-data"],["fieldName","preferredNumber","formID","player-club-data"],["fieldName","preferredNumber2","formID","player-club-data"],["fieldName","preferredNumber3","formID","player-club-data"],["fieldName","number","formID","player-club-data"],["fieldName","tryoutNumber","formID","player-club-data"],["fieldName","tShirtSizeID","formID","player-club-data"],["fieldName","referralOptionID","formID","player-club-data"],["fieldName","referralOptionFollowUp","formID","player-club-data"],["fieldName","previousClub","formID","player-club-data"],["fieldName","interestedInRefereeProgram","formID","player-club-data"],["fieldName","certifiedAsReferee","formID","player-club-data"],["fieldName","namesOfFriends","formID","player-club-data"],["fieldName","friendGroup","formID","player-club-data"],["fieldName","coachRequest","formID","player-club-data"],["fieldName","highSchoolLevelID","formID","player-club-data"],["fieldName","playedWithUsLastYear","formID","player-club-data"],["fieldName","playedWithUsLastYearFollowUp","formID","player-club-data"],["fieldName","levelID","formID","player-club-data"],["fieldName","comments","formID","player-club-data"],["fieldName","roommatePreferences","formID","player-club-data"],["fieldName","playOtherSports","formID","player-club-data"],["fieldName","otherSports","formID","player-club-data"],["fieldName","graduationYear","formID","player-club-data"],["fieldName","playingExperienceID","formID","player-club-data"],["fieldName","playingExperienceFollowUp","formID","player-club-data"],["fieldName","experienceYears","formID","player-club-data"],["fieldName","collegeGraduationYear","formID","player-club-data"],["fieldName","collegeAttended","formID","player-club-data"],["fieldName","trappedPlayerStatusID","formID","player-club-data"],["fieldName","playerCardID","formID","player-club-data"],["fieldName","playerCardID2","formID","player-club-data"],["fieldName","playerCardID3","formID","player-club-data"],["fieldName","playerCardID4","formID","player-club-data"],["fieldName","playerCardID5","formID","player-club-data"]],template:function(i,s){i&1&&(g(0,Ci,17,8),a(1,"p-dialog",0),R("visibleChange",function(f){return M(s.showEditPlayerInfo,f)||(s.showEditPlayerInfo=f),f}),e(2,`
235  `),g(3,bi,107,6),o()),i&2&&(x(s.loading?-1:0),m(),E("visible",s.showEditPlayerInfo),h("showHeader",!0)("closable",!0)("modal",!0)("draggable",!1),m(2),x(s.playerClubDataFields&&s.showEditPlayerInfo?3:-1))},dependencies:[G,ce,me,H,tt,it,Xe,le],encapsulation:2});let n=l;return n})();function Di(n,l){n&1&&(e(0,`
236    `),a(1,"ul",1),e(2,`
237      `),a(3,"li",2),e(4,`
238        `),a(5,"a",3),e(6,"Profile"),o(),e(7,`
239      `),o(),e(8,`
240    `),o(),e(9,`
241  `))}var Pt=(()=>{let l=class l{constructor(t,i,s,p){this.teamService=t,this.route=i,this.siteDataService=s,this.authorizeService=p,this.Permission=O,this.adminView=!1,this.showTabs=!1}ngOnInit(){this.route.params.subscribe(t=>
241{t.playerID&&(this.teamID=+this.route.snapshot.parent.params.id,this.playerID=+t.playerID,C({player:this.teamService.getTeamRosterPlayer(this.teamID,this.playerID),options:this.siteDataService.getClubFieldOptions()}).subscribe(i=>{this.player=i.player,this.clubFieldOptions=i.options,this.showTabs=this.optionEnabled(oe.COLLEGE_PROFILE)&&this.over13(this.player.user.dob)&&this.profile[O.CollegeProfile]}))}),this.authorizeService.getUser().subscribe(t=>{t&&(this.profile=t)})}optionEnabled(t){return this.clubFieldOptions?.find(i=>i.fieldOptionID===t)!==void 0}over13(t){return ze(t)>=13}};l.\u0275fac=function(i){return new(i||l)(d(de),d(w),d(b),d(k))},l.\u0275cmp=I({type:l,selectors:[["ng-component"]],standalone:!1,decls:5,vars:1,consts:[[1,"tabs"],["role","tablist",1,"tab-nav","no-bullets","inline-list"],["routerLinkActive","active",1,"nav-item"],["routerLink","profile","role","tab","aria-controls","home","aria-selected","true",1,"nav-link"]],template:function(i,s){i&1&&(a(0,"div",0),e(1,`
242  `),g(2,Di,10,0),o(),e(3,`
243`),c(4,"router-outlet")),i&2&&(m(2),x(s.showTabs?2:-1))},dependencies:[re,G,ae],encapsulation:2});let n=l;return n})();function wi(n,l){n&1&&(e(0,`
244      `),c(1,"i",5),e(2,`
245    `))}function Ti(n,l){n&1&&(e(0,`
246      `),c(1,"i",6),e(2,`
247    `))}function Pi(n,l){if(n&1&&(e(0,`
248    `),c(1,"app-calendar-event-row",7),e(2,`
249  `)),n&2){let r=u();m(),h("events",r.events)("responses",r.responses)("isDefaultRSVPGoing",r.isDefaultRSVPGoing)("playerView",r.isPlayer)("players",r.players)("showTimeAndLocation",!0)("showScore",!0)("wideView",!0)("family",r.family)("teamID",r.teamID)("showSomeDetails",!0)("clubVolunteerSettings",r.clubVolunteerSettings)("playerAssignments",r.playerAssignments)("clubUserID",r.clubUserID)}}function Ei(n,l){n&1&&(e(0,`
250    `),c(1,"app-skeleton-template",8),e(2,`
251  `)),n&2&&(m(),h("skeletonType","calendar-row"))}var Et=(()=>{let l=class l{constructor(t,i,s,p,f,T){this.siteDataService=t,this.route=i,this.clubCalendarService=s,this.authorizeService=p,this.teamService=f,this.userService=T,this.loading=!0,this.isPlayer=!1,this.isAuthenticated=!1,this.isDefaultRSVPGoing=!1,this.playerAssignments=[],this.isPreview=!1,this.unsubscribe$=new P}ngOnInit(){this.loading=!0,this.siteDataService.showSiteLoader(),this.isPreview=window.top.location.href.includes("preview"),this.route.parent.params.pipe(D(this.unsubscribe$)).subscribe({next:t=>{this.teamID=+t.id,this.programID=+t.programID},error:t=>{console.error("Error retrieving route parameters:",t),this.loading=!1,this.siteDataService.hideSiteLoader(),this.siteDataService.showSiteErrorAlert("Unable to load schedule. Invalid route parameters.")}}),this.route.queryParams.pipe(D(this.unsubscribe$)).subscribe(t=>{t&&(this.filteredEvents=t.filteredEvents)}),this.loadInitialData()}loadInitialData(){C({calendarSettings:C({eventSettings:this.clubCalendarService.getCalendarEventSettings(),calendarSettings:this.clubCalendarService.getClubCalendarSettings(),clubVolunteerSettings:this.clubCalendarService.getAllClubVolunteerSettings()}).pipe(D(this.unsubscribe$),q(t=>(console.error("Error loading calendar settings:",t),N({eventSettings:null,calendarSettings:null,clubVolunteerSettings:null})))),userData:this.authorizeService.getUser().pipe(Q(1),D(this.unsubscribe$),q(t=>(console.error("Error loading user data:",t),N(null))))}).pipe(D(this.unsubscribe$)).subscribe({next:t=>{this.clubVolunteerSettings=t.calendarSettings?.clubVolunteerSettings,this.isDefaultRSVPGoing=t.calendarSettings?.calendarSettings?.isDefaultRSVPGoing;let i=t.userData;i&&!this.isPreview&&(this.user=i,this.isAuthenticated=!0,this.isPlayer=this.authorizeService.isPlayer(i.role),this.isAuthenticated&&this.loadUserFamilyAndPlayerData());let s=new Date,p=new Date(s.getFullYear(),s.getMonth(),1),f=new Date(s.getFullYear(),s.getMonth()+1,0);this.loadTeamEvents(p,f)},error:t=>{console.error("Error loading initial data:",t),this.loading=!1,this.siteDataService.hideSiteLoader(),this.siteDataService.showSiteErrorAlert("Unable to load schedule data.")}})}loadUserFamilyAndPlayerData(){this.userService.getClubUserFamily(!1).pipe(Q(1),D(this.unsubscribe$)).subscribe({next:t=>this.family=t,error:t=>console.error("Error loading family data:",t)}
251),this.isPlayer||this.userService.getClubUser().pipe(Q(1),D(this.unsubscribe$),K(t=>(this.clubUserID=t.clubUserID,C({players:this.userService.getCurrentUserPlayers(),playerProgramAssignments:this.userService.getClubUserActiveTeams(this.clubUserID,this.programID,this.teamID)}).pipe(D(this.unsubscribe$),q(i=>(console.error("Error loading player data:",i),N({players:[],playerProgramAssignments:[]})))))),q(t=>(console.error("Error loading club user data:",t),N({players:[],playerProgramAssignments:[]})))).subscribe({next:t=>{t.playerProgramAssignments?.length>0&&(this.playerAssignments=t.playerProgramAssignments),t.players?.length>0&&t.playerProgramAssignments?.length>0&&(this.players=t.players.filter(i=>t.playerProgramAssignments.find(s=>s.playerID===i.playerID)))},error:t=>console.error("Error processing player data:",t)})}loadTeamEvents(t,i){(this.filteredEvents==="true"?this.teamService.getTeamEventsForClubUser(this.teamID,this.programID,t,i,null):this.teamService.getTeamEvents(this.teamID,this.programID,t,i,null)).pipe(D(this.unsubscribe$)).subscribe({next:s=>{this.events=s.events,this.responses=s.responses,this.loading=!1,this.siteDataService.hideSiteLoader()},error:s=>{console.error("Error loading team events:",s),this.loading=!1,this.siteDataService.hideSiteLoader(),this.siteDataService.showSiteErrorAlert("Unable to load team events.")}})}updateTeamEvents(t){this.loading=!0;let i=new Date(t.year,t.month-1,1),s=new Date(t.year,t.month,0);this.loadTeamEvents(i,s)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(i){return new(i||l)(d(b),d(w),d(ye),d(k),d(V),d(j))},l.\u0275cmp=I({type:l,selectors:[["ng-component"]],standalone:!1,decls:14,vars:3,consts:[[1,"schedule-calendar-wrapper"],[1,"month-and-year-toggle",3,"onMonthChange","inline","showOtherMonths"],["pTemplate","previousicon"],["pTemplate","nexticon"],[1,"bg-white","border-all","border-radius","p-3","mb-3"],[1,"fal","fa-circle-chevron-left","text-largest"],[1,"fal","fa-circle-chevron-right","text-largest"],[3,"events","responses","isDefaultRSVPGoing","playerView","players","showTimeAndLocation","showScore","wideView","family","teamID","showSomeDetails","clubVolunteerSettings","playerAssignments","clubUserID"],[3,"skeletonType"]],template:function(i,s){i&1&&(a(0,"div",0),e(1,`
252  `),a(2,"p-datepicker",1),v("onMonthChange",function(f){return s.updateTeamEvents(f)}),e(3,`
253    `),U(4,wi,3,0,"ng-template",2),e(5,`
254    `),U(6,Ti,3,0,"ng-template",3),e(7,`
255  `),o(),e(8,`
256`),o(),e(9,`
257`),a(10,"div",4),e(11,`
258  `),g(12,Pi,3,14)(13,Ei,3,1),o()),i&2&&(m(2),h("inline",!0)("showOtherMonths",!1),m(10),x(s.loading?13:12))},dependencies:[H,et,Ke,mt],encapsulation:2});let n=l;return n})();function Mi(n,l){if(n&1&&(e(0,`
259      `),a(1,"div",7),e(2,`
260        `),a(3,"app-standings-table",8),e(4,`
261        `),o(),e(5,`
262      `),o(),e(6,`
263    `)),n&2){let r=u();m(3),h("standings",r.standings)("settings",r.settings)("programID",r.programID)("clubLeagueSettings",r.clubLeagueSettings)}}var Mt=(()=>{let l=class l{constructor(t,i,s){this.siteDataService=t,this.route=i,this.leagueService=s,this.loading=!0,this.CalendarEventType=ve,this.AriaLabels=xe,this.LeagueStandingsType=xt,this.columns=[]}ngOnInit(){this.route.parent.params.subscribe(t=>{this.teamID=+t.id,this.programID=+t.programID,C({settings:this.leagueService.getLeagueSettings(this.programID),divisions:this.leagueService.getDivisions(this.programID),filterValues:this.leagueService.getStandingsFilterValues(this.programID,this.teamID),clubLeagueSettings:this.leagueService.getClubLeagueSettings()}).subscribe({next:i=>{this.settings=i.settings,this.clubLeagueSettings=i.clubLeagueSettings,this.divisions=i.divisions,this.divisions.unshift({label:"Select a Division",value:null}),this.selectedDivisionID=i.filterValues?.divisionID,this.selectedSeriesID=i.filterValues?.seriesID,this.selectedPoolID=i.filterValues?.poolID,C({series:this.selectedDivisionID?this.leagueService.getSeries(this.selectedDivisionID):N(null),pools:this.selectedSeriesID?this.leagueService.getPools(this.selectedSeriesID):N(null),standings:this.selectedPoolID?this.leagueService.getPoolStandings(this.selectedPoolID):N(null)}).subscribe({next:s=>{s.series&&(this.series=s.series,this.series.unshift({label:"Select a Season",value:null})),s.pools&&(this.pools=s.pools.map(p=>({label:p.name,value:p.poolID})),this.pools.unshift({label:"Select a Pool",value:null})),this.standings=s.standings,this.loading=!1,this.siteDataService.hide
263SiteLoader()}})}})})}updateSeries(){this.series=null,this.pools=null,this.selectedSeriesID=null,this.selectedPoolID=null,this.standings=null,this.selectedDivisionID&&this.leagueService.getSeries(this.selectedDivisionID).subscribe({next:t=>{this.series=t,this.series.unshift({label:"Select a Season",value:null})}})}updatePools(){this.pools=null,this.selectedPoolID=null,this.standings=null,this.selectedSeriesID&&this.leagueService.getPools(this.selectedSeriesID).subscribe({next:t=>{this.pools=t.map(i=>({label:i.name,value:i.poolID})),this.pools.unshift({label:"Select a Pool",value:null})}})}getStandings(){this.standings=null,this.selectedPoolID&&this.leagueService.getPoolStandings(this.selectedPoolID).subscribe({next:t=>{this.standings=t}})}};l.\u0275fac=function(i){return new(i||l)(d(b),d(w),d(Y))},l.\u0275cmp=I({type:l,selectors:[["ng-component"]],standalone:!1,decls:36,vars:7,consts:[[1,"row","full-width"],[1,"filter-column","col-md-3","standings-filter-column"],[1,"pt-4"],[1,"text-uppercase","text-smallest","mb-1"],[1,"mb-3"],["optionLabel","label","optionValue","value","appendTo","body",1,"full-width",3,"ngModelChange","onChange","ngModel","options"],[1,"col-md-9"],[1,"card","settings-card","mb-3"],[3,"standings","settings","programID","clubLeagueSettings"]],template:function(i,s){i&1&&(a(0,"div",0),e(1,`
264  `),a(2,"div",1),e(3,`
265    `),a(4,"div",2),e(5,`
266      `),a(6,"div",3),e(7,`
267        DIVISION
268      `),o(),e(8,`
269      `),a(9,"div",4),e(10,`
270        `),a(11,"p-select",5),R("ngModelChange",function(f){return M(s.selectedDivisionID,f)||(s.selectedDivisionID=f),f}),v("onChange",function(){return s.updateSeries()}),o(),e(12,`
271      `),o(),e(13,`
272
273      `),a(14,"div",3),e(15,`
274        SEASON/ROUND
275      `),o(),e(16,`
276      `),a(17,"div",4),e(18,`
277        `),a(19,"p-select",5),R("ngModelChange",function(f){return M(s.selectedSeriesID,f)||(s.selectedSeriesID=f),f}),v("onChange",function(){return s.updatePools()}),o(),e(20,`
278      `),o(),e(21,`
279      `),a(22,"div",3),e(23,`
280        POOL
281      `),o(),e(24,`
282      `),a(25,"div",4),e(26,`
283        `),a(27,"p-select",5),R("ngModelChange",function(f){return M(s.selectedPoolID,f)||(s.selectedPoolID=f),f}),v("onChange",function(){return s.getStandings()}),o(),e(28,`
284      `),o(),e(29,`
285    `),o(),e(30,`
286  `),o(),e(31,`
287  `),a(32,"div",6),e(33,`
288    `),g(34,Mi,7,4),o(),e(35,`
289`),o()),i&2&&(m(11),E("ngModel",s.selectedDivisionID),h("options",s.divisions),m(8),E("ngModel",s.selectedSeriesID),h("options",s.series),m(8),E("ngModel",s.selectedPoolID),h("options",s.pools),m(7),x(s.standings?34:-1))},dependencies:[ie,ne,He,vt],styles:[".input-short[_ngcontent-%COMP%]{width:50px;max-width:unset;text-align:center;font-weight:700}.standings-filter-column[_ngcontent-%COMP%]    {border:1px solid #DCE4E9;border-radius:6px;margin-bottom:1rem}.standings-filter-column[_ngcontent-%COMP%]     .p-dropdown.p-dropdown{max-width:100%}"]});let n=l;return n})();function Ri(n,l){if(n&1){let r=_();e(0,`
290        `),a(1,"app-dynamic-form",3),v("onSubmit",function(i){y(r);let s=u();return S(s.saveTeamContact(i))}),e(2,`
291          `),c(3,"app-dynamic-form-field",4),e(4,`
292          `),c(5,"app-dynamic-form-field",5),e(6,`
293          `),c(7,"app-dynamic-form-field",6),e(8,`
294          `),c(9,"app-dynamic-form-field",7),e(10,`
295          `),c(11,"app-dynamic-form-field",8),e(12,`
296          `),c(13,"app-dynamic-form-field",9),e(14,`
297          `),c(15,"app-dynamic-form-field",10),e(16,`
298          `),c(17,"app-dynamic-form-field",11),e(18,`
299          `),c(19,"app-dynamic-form-field",12),e(20,`
300          `),c(21,"app-dynamic-form-field",13),e(22,`
301          `),c(23,"app-dynamic-form-field",14),e(24,`
302          `),c(25,"app-dynamic-form-field",15),e(26,`
303          `),c(27,"app-dynamic-form-field",16),e(28,`
304          `),c(29,"app-dynamic-form-field",17),e(30,`
305          `),c(31,"app-dynamic-form-field",18),e(32,`
306        `),o(),e(33,`
307      `)}if(n&2){let r=u();m(),h("fields",r.teamContactFields)("entity",r.teamContact)("horizontalForm",!0)("contentFieldsMode",!0)("showCancelButton",!1)}}var Rt=(()=>{let l=class l{constructor(t,i,s,p,f){this.teamService=t,this.route=i,this.formService=s,this.siteDataService=p,this.router=f,this.unsubscribe$=new P}ngOnInit(){this.route.parent.params.subscribe(t=>{this.teamID=+t.id,this.programID=+t.programID,C({teamContactMetadata:this.teamService.getTeamContactMetadata(),teamContact:this.teamService.getTeamContact(this.teamID)}).subscribe(i=>{this.teamContactFields=i.teamContactMetadata.fields,this.teamContact=i.teamContact,this.siteDataService.hide
307SiteLoader()})})}saveTeamContact(t){this.teamService.saveTeamContact(this.teamID,t,this.teamContact!==null).subscribe({next:()=>{this.teamContact=t,this.formService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Team Information saved successfully")},error:i=>{this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert(`There was a problem saving Team Information. ${i.error}`)}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(i){return new(i||l)(d(V),d(w),d(se),d(b),d($))},l.\u0275cmp=I({type:l,selectors:[["ng-component"]],standalone:!1,decls:9,vars:1,consts:[[1,"row"],[1,"col-md-7"],[1,"card","horizontal-form","compact-form"],["formID"," user-form","submitButtonText","Save","buttonsPosition","left",3,"onSubmit","fields","entity","horizontalForm","contentFieldsMode","showCancelButton"],["fieldName","directorName"],["fieldName","directorEmail"],["fieldName","directorPhone"],["fieldName","teamContactName"],["fieldName","teamContactEmail"],["fieldName","teamContactPhone"],["fieldName","secondaryTeamContactName"],["fieldName","secondaryTeamContactEmail"],["fieldName","secondaryTeamContactPhone"],["fieldName","customTextField1"],["fieldName","customTextField2"],["fieldName","customTextField3"],["fieldName","customDropdownField1ID"],["fieldName","customDropdownField2ID"],["fieldName","customDropdownField3ID"]],template:function(i,s){i&1&&(a(0,"div",0),e(1,`
308  `),a(2,"div",1),e(3,`
309    `),a(4,"section",2),e(5,`
310      `),g(6,Ri,34,5),o(),e(7,`
311  `),o(),e(8,`
312`),o()),i&2&&(m(6),x(s.teamContactFields?6:-1))},dependencies:[ce,me],encapsulation:2});let n=l;return n})();var kt=(()=>{let l=class l{};l.\u0275fac=function(i){return new(i||l)},l.\u0275mod=Z({type:l}),l.\u0275inj=X({imports:[ge.forChild([{path:":id/program/:programID",component:bt,children:[{path:"roster",component:wt,canActivate:[A],data:{metaTitle:"Team Roster"}},{path:"invitations",component:St,canActivate:[A],data:{metaTitle:"Invitations"}},{path:"schedule",component:Et,canActivate:[A],data:{metaTitle:"Schedule"}},{path:"team-contact",component:Rt,canActivate:[A],data:{metaTitle:"Team Information"}},{path:"standings",component:Mt,canActivate:[A],data:{metaTitle:"Standings"}},{path:"invitations/create",component:_t,canActivate:[A],data:{metaTitle:"Invite Players"}},{path:"roster/:playerID",component:Pt,canActivate:[A],children:[{path:"profile",component:Tt,canActivate:[A],data:{metaTitle:"Team Roster Player Profile",profileView:!0}}]},{path:"registrations",canActivate:[qe,A],loadChildren:()=>import("./chunk-QLEDSX3U.js").then(t=>t.EntityRegistrationsModule),data:{bodyClass:"registration",metaTitle:"Registrations",player:!1,permissions:[O.FullMemberAccess]}}]}]),ge]});let n=l;return n})();var At=(()=>{let l=class l{};l.\u0275fac=function(i){return new(i||l)},l.\u0275prov=be({token:l,factory:l.\u0275fac});let n=l;return n})();var ja=(()=>{let l=class l{};l.\u0275fac=function(i){return new(i||l)},l.\u0275mod=Z({type:l}),l.\u0275inj=X({providers:[At,ft,V,ht,Y],imports:[Le,kt,lt,Qe,pt,ut,ct,Ct,yt]});let n=l;return n})();export{ja as UserTeamsModule};

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.