PageSourceSearch

https://midlandsoccerclub.com/chunk-6J6EUPEE.js

js midlandsoccerclub.com collected 2026-10-09 22:40:34 UTC 56,595 bytes, 329 lines download raw bytes

1import{c as Kt,k as Qt}from"./chunk-FP3J5B6H.js";import"./chunk-BQRBWX66.js";import"./chunk-L5ZOOU2J.js";import"./chunk-KOPGZV6B.js";import"./chunk-BTQPKA7U.js";import{a as Xt}from"./chunk-CJOMWIKP.js";import{a as U}from"./chunk-HEXCNDVV.js";import{b as qt,r as Jt}from"./chunk-ADMKBOBN.js";import"./chunk-LCPPMNQ3.js";import"./chunk-IN6JNWJL.js";import"./chunk-NTPMZIRS.js";import"./chunk-DBNHDKST.js";import"./chunk-N5PZSBUY.js";import"./chunk-G2OHGTWE.js";import"./chunk-GNX3F6NH.js";import"./chunk-QQKJHWTF.js";import{ec as H}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{a as ht,d as vt,e as bt,k as Dt}from"./chunk-Y2KCFOCP.js";import"./chunk-Z52L74DH.js";import"./chunk-3IFGWXMA.js";import{n as it}from"./chunk-EME7BUOO.js";import{a as Ht,j as Lt,q as zt}from"./chunk-QH3IRCHN.js";import"./chunk-PLEH3NAH.js";import"./chunk-GXCJ5QS4.js";import"./chunk-22ACI5KU.js";import"./chunk-FXUQQQIE.js";import"./chunk-VVVN3YIZ.js";import{b as Nt}from"./chunk-FSUBAQYH.js";import"./chunk-7CVCGK4Q.js";import{b as Ut}from"./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{$f as Wt,Ce as kt,Cg as Bt,Ef as $t,Gb as St,Gd as Tt,Hd as Ot,Mb as Et,Td as Rt,_f as At,ag as Yt,bg as Vt,cc as Pt,ce as Mt,d as mt,k as pt,kd as Ft,kh as jt,lb as wt,pf as nt,tf as Gt,ua as ft,za as It}from"./chunk-X5J6QTCG.js";import{$ as A,$a as p,Aa as lt,Ad as Z,E as F,Fa as r,Fb as V,Ib as t,Ie as ne,Jb as O,Ka as D,Kb as f,Lb as X,Lc as dt,Ma as W,Na as Y,Qb as B,Rb as j,Sb as N,Sh as et,U as G,W as $,Wc as ct,Yb as st,_c as _t,bb as g,cc as K,d as rt,db as S,dc as Q,eb as E,fa as u,fb as P,ga as y,gb as C,hb as s,ib as d,jb as b,k as T,lc as I,mc as R,nc as M,pj as yt,q as k,qb as v,sb as h,se as tt,tb as c,u as q,vd as gt,wd as Ct,xd as xt,ya as J,yd as ut}from"./chunk-SMW7PHYX.js";import{h as ie}from"./chunk-BMIYOSOG.js";var Zt=(()=>{let l=class l{};l.\u0275fac=function(i){return new(i||l)},l.\u0275cmp=W({type:l,selectors:[["ng-component"]],standalone:!1,decls:1,vars:0,template:function(i,a){i&1&&b(0,"router-outlet")},dependencies:[Ct],encapsulation:2});let n=l;return n})();var te=ie(ne());var ae=()=>["/dashboard"],re=()=>({class:"order-last"}),le=n=>({toggleicon:n}),se=n=>({"mb-1 border-bottom":n});function de(n,l){n&1&&(t(0,`
2        `),s(1,"a",5),t(2,"Back"),d(),t(3,`
3        `)),n&2&&(r(),C("routerLink",K(1,ae)))}function ce(n,l){if(n&1){let o=v();t(0,`
4        `),s(1,"button",6),h("click",function(){u(o);let i=c();return y(i.back())}),t(2,"Back"),d(),t(3,`
5        `)}}function _e(n,l){if(n&1&&(t(0,`
6                `),s(1,"div"),t(2,`
7                    `),s(3,"span",11),t(4,`
8                        `),s(5,"span",12),t(6,"Register by:"),d(),t(7),I(8,"date"),d(),t(9,`
9                `),d(),t(10,`
10                `)),n&2){let o=c(2);r(7),f(`
11                        `,M(8,1,o.program.eligibilityEndDate,"MMMM d, y"),`
12                    `)}}function me(n,l){if(n&1&&(t(0,`
13                `),s(1,"div",13),t(2,`
14                    `),s(3,"div",14),I(4,"safeHtml"),t(5,`
15                    `),d(),t(6,`
16                `),d(),t(7,`
17                `)),n&2){let o=c(2);r(3),C("innerHTML",R(4,1,o.program.details),J)}}function pe(n,l){n&1&&(t(0,`
18                        `),s(1,"div",20),t(2,`
19                            `),s(3,"button",21),t(4,"Registered or Ineligible"),d(),t(5,`
20                        `),d(),t(6,`
21                        `))}function ge(n,l){if(n&1&&(t(0,`
22                    `),s(1,"div",16),t(2,`
23                        `),s(3,"div",17),t(4,`
24                            `),s(5,"app-player-profile-photo",18),t(6,`
25                            `),d(),t(7,`
26                        `),d(),t(8,`
27                        `),s(9,"div",19),t(10),d(),t(11,`
28                        `),p(12,pe,7,0),d(),t(13,`
29                    `)),n&2){let o=c(),e=o.$implicit,i=o.$index,a=c(4);r(),V("border-bottom",a.entityMap[e.entityID])("pb-3",a.entityMap[e.entityID]),r(4),C("player",e)("playerNumber",(i+1).toString())("initialsOnly",!1),r(5),f(`
30                            `,e.user.fullName,`
31                        `),r(2),g(a.entityMap[e.entityID]?-1:12)}}function Ce(n,l){if(n&1){let o=v();t(0,`
32                    `),s(1,"div",22),t(2,`
33                        `),s(3,"div",23),t(4,`
34                            `),s(5,"em"),t(6,`This player may be eligible for this program based on school
35                                grade.`),d(),t(7,`
36                        `),d(),t(8,`
37                        `),s(9,"button",24),h("click",function(){u(o);let i=c().$implicit,a=c(4);
37return y(a.showPlayerYearlyData(i.entityID))}),t(10),d(),t(11,`
38                    `),d(),t(12,`
39                    `)}if(n&2){let o=c(5);r(10),f(`Enter
40                            School Grade for
41                            `,o.getGradeYearString())}}function xe(n,l){if(n&1){let o=v();t(0,`
42                    `),s(1,"div",22),t(2,`
43                        `),s(3,"div",23),t(4,`
44                            `),s(5,"em"),t(6,`This player may be eligible for this program based on graduation
45                                year.`),d(),t(7,`
46                        `),d(),t(8,`
47                        `),s(9,"button",24),h("click",function(){u(o);let i=c().$implicit,a=c(4);return y(a.showPlayerClubData(i.entityID))}),t(10,`Enter
48                            Graduation
49                            Year`),d(),t(11,`
50                    `),d(),t(12,`
51                    `)}}function ue(n,l){if(n&1){let o=v();t(0,`
52                    `),s(1,"div",29),h("click",function(){u(o);let i=c().$implicit,a=c().$implicit,_=c(3).$implicit,m=c(4);return y(m.toggleGroupCheckbox(_.entityID,a.team,i.registrationGroupID,!m.selectedGroupMap[_.entityID][a.teamID][i.registrationGroupID]))}),t(2,`
53                        `),s(3,"div",30),t(4,`
54                            `),s(5,"div",17),t(6,`
55                                `),s(7,"p-checkbox",31),N("ngModelChange",function(i){u(o);let a=c().$implicit,_=c().$implicit,m=c(3).$implicit,x=c(4);return j(x.selectedGroupMap[m.entityID][_.teamID][a.registrationGroupID],i)||(x.selectedGroupMap[m.entityID][_.teamID][a.registrationGroupID]=i),y(i)}),h("click",function(i){return i.stopPropagation()})("ngModelChange",function(i){u(o);let a=c().$implicit,_=c().$implicit,m=c(3).$implicit,x=c(4);return y(x.groupCheckboxChange(m.entityID,_.team,a.registrationGroupID,i))}),t(8,`
56                                `),d(),t(9,`
57                            `),d(),t(10,`
58                            `),s(11,"div",32),t(12),d(),t(13,`
59                        `),d(),t(14,`
60                    `),d(),t(15,`
61                    `)}if(n&2){let o=c().$implicit,e=c().$implicit,i=c(3).$implicit,a=c(4);r(),V("selected",a.selectedGroupMap[i.entityID][e.teamID][o.registrationGroupID])("disabled",!a.entityEnabled[i.entityID]||!a.teamEnabled[e.teamID]),r(6),B("ngModel",a.selectedGroupMap[i.entityID][e.teamID][o.registrationGroupID]),C("binary",!0)("disabled",!a.entityEnabled[i.entityID]||!a.teamEnabled[e.teamID]),r(5),X(`
62                                `,o.name," ",e.teamID!==0?" - "+e.team.name:"",`
63                            `)}}function ye(n,l){if(n&1&&(t(0,`
64                    `),p(1,ue,16,9)),n&2){let o=l.$implicit,e=c().$implicit,i=c(3).$implicit,a=c(4);r(),g(a.entityMap[i.entityID][e.teamID][o.registrationGroupID]!=null&&a.entityMap[i.entityID][e.teamID][o.registrationGroupID].length?1:-1)}}function fe(n,l){if(n&1&&(t(0,`
65                    `),E(1,ye,2,1,null,null,S)),n&2){let o=c(7);r(),P(o.program.registrationGroups)}}function he(n,l){n&1&&(t(0,`
66                            `),s(1,"app-inline-alert",33),t(2,`You can only register one
67                                player at a time.
68                            `),d(),t(3,`
69                            `)),n&2&&(r(),C("isInline",!0)("alertType","info"))}function ve(n,l){if(n&1){let o=v();t(0,`
70                    `),E(1,fe,3,0,null,null,S),s(3,"div",26),t(4,`
71                        `),s(5,"span",27),t(6,`
72                            `),p(7,he,4,2),d(),t(8,`
73                        `),s(9,"button",28),h("click",function(){u(o);let i=c(2).$implicit,a=c(4);return y(a.continue(i))}),t(10,`
74                            Continue
75                        `),d(),t(11,`
76                    `),d(),t(12,`
77                    `)}if(n&2){let o=c(2).$implicit,e=c(4);
77r(),P(o.assignments),r(6),g(e.entityEnabled[o.entityID]?-1:7),r(2),C("disabled",!e.continueButtonEnabled[o.entityID])}}function be(n,l){if(n&1&&(t(0,`
78                    `),s(1,"div",25),t(2),d(),t(3,`
79                    `),p(4,ve,13,2)),n&2){let o=c().$implicit,e=c(4);r(2),f(`
80                        Select the programs you would like to register `,o.user==null?null:o.user.firstName,` into.
81                        Pricing details will be shown in the next step.
82                    `),r(2),g(e.program.registrationGroups&&(o.assignments!=null&&o.assignments.length)?4:-1)}}function De(n,l){if(n&1&&(t(0,`
83                `),s(1,"div",7),t(2,`
84                    `),p(3,ge,14,9),p(4,Ce,13,1),p(5,xe,13,0),p(6,be,5,2),d(),t(7,`
85                `)),n&2){let o=l.$implicit,e=c(4);r(3),g(e.isTeamRegistration?-1:3),r(),g(o.collectPlayerGrade?4:-1),r(),g(o.collectPlayerGraduationYear?5:-1),r(),g(!o.collectPlayerGrade&&!o.collectPlayerGraduationYear&&e.entityMap[o.entityID]?6:-1)}}function Ie(n,l){if(n&1&&(t(0,`
86                `),E(1,De,8,4,null,null,S)),n&2){let o=c(3);r(),P(o.entities)}}function we(n,l){if(n&1&&(t(0,`
87                    `),s(1,"div",39),t(2,`
88                        `),s(3,"div",17),t(4,`
89                            `),s(5,"app-player-profile-photo",18),t(6,`
90                            `),d(),t(7,`
91                        `),d(),t(8,`
92                        `),s(9,"div",19),t(10),d(),t(11,`
93                    `),d(),t(12,`
94                    `)),n&2){let o=c(4);r(5),C("player",o.selectedEntity)("playerNumber",o.selectedEntityIndex.toString())("initialsOnly",!1),r(5),f(`
95                            `,o.selectedEntity.user.fullName,`
96                        `)}}function Se(n,l){if(n&1&&t(0),n&2){let o=c(3).$implicit;f(`
97                                                `,o.registration.remainingCapacity,`
98                                                spot
99                                                left!
100                                                `)}}function Ee(n,l){if(n&1&&t(0),n&2){let o=c(3).$implicit;f(`
101                                                `,o.registration.remainingCapacity,`
102                                                spots
103                                                left!
104                                                `)}}function Pe(n,l){if(n&1&&(t(0,`
105                                        `),s(1,"div",48),t(2,`
106                                            `),s(3,"span"),t(4,`
107                                                `),b(5,"i",49),t(6,`
108                                                `),p(7,Se,1,1),p(8,Ee,1,1),d(),t(9,`
109                                        `),d(),t(10,`
110                                        `)),n&2){let o=c(2).$implicit;r(7),g(o.registration.remainingCapacity===1?7:-1),r(),g(o.registration.remainingCapacity>1?8:-1)}}function Fe(n,l){if(n&1&&t(0),n&2){let o=c(5).$implicit;f(`
111                                                `,o.registration.remainingAdvancedCapacity,`
112                                                spot left!
113                                                `)}}function Te(n,l){if(n&1&&t(0),n&2){let o=c(5).$implicit;f(`
114                                                `,o.registration.remainingAdvancedCapacity,`
115                                                spots left!
116                                                `)}}function Oe(n,l){if(n&1&&(t(0,`
117                                        `),s(1,"div",48),t(2,`
118                                            `),s(3,"span"),t(4,`
119                                                `),b(5,"i",49),t(6,`
120                                                `),p(7,Fe,1,1),p(8,Te,1,1),d(),t(9,`
121                                        `),d(),t(10,`
122                                        `)),n&2){let o=c(4).$implicit;r(7),g(o.registration.remainingAdvancedCapacity===1?7:-1),r(),g(o.registration.remainingAdvancedCapacity>1?8:-1)}}function Re(n,l){if(n&1&&(t(0,`
123                                        `),p(1,Oe,11,2)),n&2){let o=c(3).$implicit;r(),g(o.registration.showAdvancedCapacityMessage?1:-1)}}function Me(n,l){if(n&1&&(t(0,`
124                                        `),p(1,Re,2,1),t(2,`
125                                        `)),n&2){let o,e=c(2).$implicit,i=c(5);r(),g((o=e.registration.registrationAdvancedCapacityOptionID)===i.RegistrationAdvancedCapacityOption.GENDER_BIRTHYEAR?1:-1)}}function ke(n,l){if(n&1&&(t(0,`
126                                        `),p(1,Pe,11,2)(2,Me,3,1)),n&2){let o=c().$implicit;r(),g(o.registration.showMaxCapacityMessage?1:2)}}function Ge(n,l){n&1&&(t(0,`
127                                        `),s(1,"div",48),t(2,`
128                                            `),s(3,"span",50),t(4,`
129                                                `),b(5,"i",49),t(6,`
130                                                Registration full
131                                            `),d(),t(7,`
132                                        `),d(),t(8,`
133                                        `))}function $e(n,l){if(n&1&&(t(0),I(1,"date")),n&2){let o=c(3);f(`
134                                        \u2013 `,M(1,1,o.sessionOverrideEndDate,"MM/dd
134/yyyy"),`
135                                        `)}}function Ae(n,l){if(n&1&&(t(0),I(1,"date"),p(2,$e,2,4)),n&2){let o=c(2);f(`
136                                        `,M(1,2,o.sessionOverrideStartDate,"MM/dd/yyyy"),`
137                                        `),r(2),g(o.sessionOverrideEndDate?2:-1)}}function We(n,l){n&1&&(t(0,`
138                                        `),s(1,"span"),t(2,"\u2022"),d(),t(3,`
139                                        `))}function Ye(n,l){if(n&1&&(t(0,`
140                                        `),p(1,We,4,0),t(2),I(3,"date")),n&2){let o=c(2),e=c().$implicit;r(),g(o.sessionOverrideStartDate?1:-1),r(),f(`
141                                        Register by `,M(3,2,e.registration.endDate,"MM/dd/yyyy"),`
142                                        `)}}function Ve(n,l){if(n&1&&(t(0,`
143                                    `),s(1,"div",51),t(2,`
144                                        `),p(3,Ae,3,5),p(4,Ye,4,5),d(),t(5,`
145                                    `)),n&2){let o=c(),e=c().$implicit;r(3),g(o.sessionOverrideStartDate?3:-1),r(),g(e.registration.endDate?4:-1)}}function Be(n,l){n&1&&t(0,`
146                                                    ,
147                                                    `)}function je(n,l){if(n&1&&(t(0),p(1,Be,1,0)),n&2){let o=l.$implicit,e=l.$index,i=l.$count,a=c(10);f(`
148                                                    `,a.getDayOfWeek(o)),r(),g(e!==i-1?1:-1)}}function Ne(n,l){if(n&1&&(t(0,`
149                                                `),s(1,"span"),t(2,`
150                                                    `),E(3,je,2,2,null,null,S),d(),t(5,`
151                                                `)),n&2){let o=c(3);r(3),P(o.daysOfWeek)}}function He(n,l){if(n&1&&t(0),n&2){let o=c(4),e=c(6);f(`
152                                                    - `,e.formatTime(o.endTime),`
153                                                    `)}}function Ue(n,l){if(n&1&&(t(0,`
154                                                `),s(1,"span",55),t(2),p(3,He,1,1),d(),t(4,`
155                                                `)),n&2){let o=c(3),e=c(6);r(2),f(`
156                                                    \u2022 `,e.formatTime(o.startTime),`
157                                                    `),r(),g(o.endTime?3:-1)}}function Le(n,l){if(n&1&&(t(0,`
158                                        `),s(1,"div",53),t(2,`
159                                            `),b(3,"i",54),t(4,`
160                                            `),s(5,"div"),t(6,`
161                                                `),p(7,Ne,6,0),p(8,Ue,5,2),d(),t(9,`
162                                        `),d(),t(10,`
163                                        `)),n&2){let o=c(2);r(7),g(o.daysOfWeek!=null&&o.daysOfWeek.length?7:-1),r(),g(o.startTime?8:-1)}}function ze(n,l){if(n&1&&(t(0,`
164                                            `),s(1,"a",57),h("click",function(e){return e.stopPropagation()}),t(2),d(),t(3,`
165                                            `)),n&2){let o=c(3);r(),C("href",st("http://www.google.com/maps/place/",o.practiceFacility.latitude,",",o.practiceFacility.longitude),lt),r(),f(`
166                                                `,o.practiceFacility.name,`
167                                            `)}}function qe(n,l){if(n&1&&(t(0,`
168                                            `),s(1,"span"),t(2),d(),t(3,`
169                                            `)),n&2){let o=c(3);r(2),O(o.practiceFacility.name)}}function Je(n,l){if(n&1&&(t(0,`
170                                        `),s(1,"div",36),t(2,`
171                                            `),b(3,"i",56),t(4,`
172                                            `),p(5,ze,4,4),p(6,qe,4,1),d(),t(7,`
173                                        `)),n&2){let o=c(2);r(5),g(o.practiceFacility!=null&&o.practiceFacility.latitude?5:-1),r(),g(o.practiceFacility!=null&&o.practiceFacility.latitude?-1:6)}}function Xe(n,l){if(n&1&&(t(0,`
174                                    `),s(1,"div",52),t(2,`
175                                        `),p(3,Le,11,2),p(4,Je,8,2),d(),t(5,`
176                                    `)),n&2){let o=c();r(3),g(o.daysOfWeek!=null&&o.daysOfWeek.length||o.startTime?3:-1),r(),g(o.practiceFacility?4:-1)}}function Ke(n,l){if(n&1&&(t(0,`
177                                    `),p(1,Ve,6,2),p(2,Xe,6,2)),n&2){let o=l,e=c().$implicit;r(),g(o.sessionOverrideStartDate||e.registration.endDate?1:-1),r(),g(o.daysOfWeek!=null&&o.daysOfWeek.length||o.startTime||o.practiceFacility?2:-1)}}function Qe(n,l){if(n&1&&(t(0,`
178                            `),s(1,"div",58),t(2,`
179                                `),b(3,"app-training-focus-pills",59),t(4,`
180                            `),d(),t(5,`
181                            `)),n&2){let o=c().$implicit;r(3),C("focuses",o.registration.trainingFocuses)}}function Ze(n,l){if(n&1&&(t(0,`
182                                    `),s(1,"p-accordion",62),t(2,`
183                                        `),s(3,"p-accordion-panel",63),t(4,`
184                                            `),s(5,"p-accordion-header",64),t(6,`
185                                                `),s(7,"span",65),t(8,"More Details"),d(),t(9,`
186                                            `),d(),t(10,`
187                                            `),s(11,"p-accordion-content"),t(12,`
188                                                `),s(13,"div",66),I(14,"safeHtml"),t(15,`
189                                                `),d(),t(16,`
190                                            `),d(),t(17,`
191                                        `),d(),t(18,`
192                                    `),d(),t(19,`
193                                    `)),n&2){let o=c(2).$implicit;r(5),C("pt",Q(5,le,K(4,re))),r(8),C("innerHTML",R(14,2,o.registration.details),J)}}function ti(n,l){if(n&1&&(t(0,`
194                                `),s(1,"div",67),t(2,`
195                                    `),s(3,"span",68),t(4,"List Price"),d(),t(5,`
196                                    `),s(6,"span",32),t(7),I(8,"sprocketCurrency"),d(),t(9,`
197                                `),d(),t(10,`
198                                `)),n&2){let o=c(2).$implicit;r(7),O(R(8,1,o.registration.price))}}function ei(n,l){if(n&1&&(t(0),I(1,"currency")),n&2){let o=c().$implicit;f(`
199                                            `,R(1,1,o.value),`
200                                            `)}}function ii(n,l){if(n&1&&t(0),n&2){let o=c().$implicit;f(`
201                                            `,o.value,`% off
202                                            `)}}function ni(n,l){if(n&1&&(t(0,`
203                                    `),s(1,"div",70),t(2,`
204                                        `),s(3,"div",71),t(4,`
205                                            `),s(5,"span",72),t(6),d(),t(7,`
206                                        `),d(),t(8,`
207                                        `),s(9,"div",73),t(10,`
208                                            `),p(11,ei,2,3),p(12,ii,1,1),d(),t(13,`
209                                    `),d(),t(14,`
210                                    `)),n&2){let o=l.$implicit,e=l.$index,i=l.$count,a=c(8);r(),C("ngClass",Q(4,se,e!==i-1)),r(5),O(o.name),r(5),g(o.clubCreditTypeID===a.ClubCreditType.FIXED_AMOUNT?11:-1),r(),g(o.clubCreditTypeID===a.ClubCreditType.PERCENTAGE?12:-1)}}function oi(n,l){if(n&1&&(t(0,`
211                                `),s(1,"div",69),t(2,`
212                                    `),E(3,ni,15,6,null,null,S),d(),t(5,`
213                                `)),n&2){let o=c(2).$implicit;r(3),P(o.availableCredits)}}function ai(n,l){if(n&1&&(t(0,`
214                            `),s(1,"div",60),t(2,`
215                                `),s(3,"div",61),h("click",function(e){return e.stopPropagation()}),t(4,`
216                                    `),p(5,Ze,20,7),d(),t(6,`
217                                `),p(7,ti,11,3),p(8,oi,6,0),d(),t(9,`
218                            `)),n&2){let o=c().$implicit;r(5),g(o.registration.details?5:-1),r(2),g(o.registration.price>0?7:-1),r(),g(o.availableCredits!=null&&o.availableCredits.length?8:-1)}}function ri(n,l){n&1&&t(0,`
219                                Add to Waitlist
220                                `)}function li(n,l){n&1&&t(0,`
221                                Adding to Waitlist...
222                                `)}function si(n,l){if(n&1){let o=v();t(0,`
223                            `),s(1,"button",75),h("click",function(){u(o);let i=c(2).$implicit,a=c(5);return y(a.addToWaitlist(i))}),t(2,`
224                                `),p(3,ri,1,0),p(4,li,1,0),d(),t(5,`
225                            `)}if(n&2){let o=c(7);r(),C("disabled",o.savingWaitlist),r(2),g(o.savingWaitlist?-1:3),r(),g(o.savingWaitlist?4:-1)}}function di(n,l){n&1&&t(0,`
226                                Remove from Waitlist
227                                `)}function ci(n,l){n&1&&t(0,`
228                                Removing from Waitlist...
229                                `)}function _i(n,l){if(n&1){let o=v();t(0,`
230                            `),s(1,"button",76),h("click",function(){u(o);let i=c(2).$implicit,a=c(5);return y(a.confirmRemoveFromWaitlist(i))}),t(2,`
231                                `),p(3,di,1,0),p(4,ci,1,0),d(),t(5,`
232                            `)}if(n&2){let o=c(7);r(),C("disabled",o.savingWaitlist),r(2),g(o.savingWaitlist?-1:3),r(),g(o.savingWaitlist?4:-1)}}function mi(n,l){if(n&1&&(t(0,`
233                        `),s(1,"div",74),t(2,`
234                            `),p(3,si,6,3),p(4,_i,6,3),d(),t(5,`
235                        `)),n&2){let o=c().$implicit;r(3),g(o.registrationWaitlistID?-1:3),r(),g(o.registrationWaitlistID?4:-1)}}function pi(n,l){if(n&1){let o=v();t(0,`
236                        `),s(1,"div",42),h("click",function(){let i=u(o).$implicit,a=c(5);return y(a.toggleRegistrationCheckbox(i,!a.selectedRegistrations[i.registration.registrationID]))}),t(2,`
237                            `),s(3,"div",43),t(4,`
238                                `),s(5,"div",44),t(6,`
239                                    `),s(7,"p-checkbox",45),N("ngModelChange",function(i){let a=u(o).$implicit,_=c(5);return j(_.selectedRegistrations[a.registration.registrationID],i)||(_.selectedRegistrations[a.registration.registrationID]=i),y(i)}),h("click",function(i){return i.stopPropagation()})("ngModelChange",function(i){let a=u(o).$implicit,_=c(5);return y(_.registrationCheckboxChange(i,a))}),t(8,`
240                                    `),d(),t(9,`
241                                `),d(),t(10,`
242                                `),s(11,"div",46),t(12,`
243                                    `),s(13,"div",16),t(14,`
244                                        `),s(15,"div",47),t(16),d(),t(17,`
245                                        `),p(18,ke,3,1),p(19,Ge,9,0),d(),t(20,`
246                                    `),t(21,`
247                                    `),p(22,Ke,3,2),d(),t(23,`
248                            `),d(),t(24,`
249                            `),p(25,Qe,6,1),p(26,ai,10,3),d(),t(27,`
250                        `),p(28,mi,6,2)}if(n&2){let o,e=l.$implicit,i=l.$index,a=c(5);r(),V("mt-3",i!==0)("selected",a.selectedRegistrations[e.registration.registrationID])("disabled",(e.registration.isCapacityFull||e.registration.isAdvancedCapacityFull)&&!e.hasSpecialRegistration||!a.eligibleRegistrations[e.registration.registrationID]),r(6),B("ngModel",a.selectedRegistrations[e.registration.registrationID]),C("binary",!0)("disabled",(e.registration.isCapacityFull||e.registration.isAdvancedCapacityFull)&&!e.hasSpecialRegistration||!a.eligibleRegistrations[e.registration.registrationID]),r(9),f(`
251                                            `,e.registration.name,`
252                                        `),r(2),g(e.registration.isCapacityFull?-1:18),r(),g(!e.hasSpecialRegistration&&(e.registration.isCapacityFull||e.registration.isAdvancedCapacityFull)?19:-1),r(3),g((o=a.registrationScheduleMap[e.registration.registrationID])?22:-1,o),r(3),g(e.registration.trainingFocuses!=null&&e.registration.trainingFocuses.length?25:-1),r(),g(e.registration.details||e.registration.price>0?26:-1),r(2),g(e.registration.enableWaitlist&&(e.registration.isCapacityFull||e.registration.isAdvancedCapacityFull)&&!e.hasSpecialRegistration?28:-1)}}function gi(n,l){if(n&1&&(t(0,`
253                    `),s(1,"div",40),t(2,`
254                        `),s(3,"div",41),t(4),d(),t(5,`
255                        `),E(6,pi,29,16,null,null,S),d(),t(8,`
256                    `)),n&2){let o=l.$implicit,e=c(4);r(4),X(`
257                            `,o.name," ",e.selectedTeam!=null&&e.selectedTeam.teamID?" - "+e.selectedTeam.name:"",`
258                        `),r(2),P(o.eligibleRegistrations)}}function Ci(n,l){n&1&&(t(0,`
259                                `),b(1,"app-button-loader"),t(2,`
260                                `))}function xi(n,l){if(n&1){let o=v();t(0,`
261                `),s(1,"div",34),t(2,`
262                    `),p(3,we,13,4),s(4,"div",25),t(5,`
263                        PLEASE NOTE: Any indicated discounts or credits will be applied at checkout.
264                    `),d(),t(6,`
265                    `),E(7,gi,9,2,null,null,S),s(9,"div",35),t(10,`
266                        `),s(11,"div",36),t(12,`
267                            `),s(13,"button",37),h("click",function(){u(o);let i=c(3);return y(i.back())}),t(14,"Back"),d(),t(15,`
268                        `),d(),t(16,`
269                        `),s(17,"div",38),t(18,`
270                            `),s(19,"button",28),h("click",function(){u(o);let i=c(3);return y(i.register())}),t(20,`
271                                `),p(21,Ci,3,0),t(22,`
272                                Register
273                            `),d(),t(23,`
274                        `),d(),t(24,`
275                    `),d(),t(25,`
276                `),d(),t(26,`
277                `)}if(n&2){let o=c(3);r(3),g(o.isTeamRegistration?-1:3),r(4),P(o.selectedGroups),r(12),C("disabled",!o.registerButtonEnabled||o.loadingRegister),r(2),g(o.loadingRegister?21:-1)}}function ui(n,l){if(n&1&&(t(0,`
278            `),s(1,"section",15),t(2,`
279                `),p(3,Ie,3,0),p(4,xi,27,3),d(),t(5,`
280            `)),n&2){let o=c(2);r(3),g(o.showRegistrationSelection?-1:3),r(),g(o.showRegistrationSelection?4:-1)}}function yi(n,l){n&1&&(t(0,`
281            `),s(1,"div",77),t(2,`
282                `),s(3,"app-inline-alert",78),t(4,`There are no players on your account
283                    eligible for this program`),d(),t(5,`
284            `),d(),t(6,`
285            `)),n&2&&(r(3),C("alertType","info")("isInline",!0))}function fi(n,l){if(n&1&&(t(0,`
286            `),p(1,yi,7,2)),n&2){let o=c(2);r(),g(o.isTeamRegistration?-1:1)}}function hi(n,l){if(n&1){let o=v();t(0,`
287            `),s(1,"div",79),t(2,`
288                `),s(3,"a",80),h("click",function(){u(o);let i=c(2);return y(i.showAddPlayer=!0)}),t(4,`Add a new
289                    player to your household`),d(),t(5,`
290            `),d(),t(6,`
291            `)}}function vi(n,l){if(n&1&&(t(0,`
292        `),s(1,"div",7),t(2,`
293            `),s(3,"section",8),t(4,`
294                `),s(5,"div",9),t(6,"Program Registration"),d(),t(7,`
295                `),s(8,"h1",10),t(9),d(),t(10,`
296                `),p(11,_e,11,4),b(12,"hr"),t(13,`
297                `),p(14,me,8,3),d(),t(15,`
298            `),p(16,ui,6,2)(17,fi,2,1),p(18,hi,7,0),d(),t(19,`
299        `)),n&2){let o=c();r(9),O(o.program.name),r(2),g(o.program.eligibilityEndDate?11:-1),r(3),g(o.program.details?14:-1),r(2),g(o.entityMap&&o.entities&&o.entities.length>0?16:17),r(2),g(o.isTeamRegistration?-1:18)}}function bi(n,l){if(n&1&&(t(0,`
300`),s(1,"app-overdue-payment-modal",81),t(2,`
301`),d(),t(3,`
302`)),n&2){let o=c();r(),C("player",o.selectedPlayer)("redirectUrl",o.redirectUrl)("specialRegistration",o.specialRegistration)}}function Di(n,l){if(n&1){let o=v();t(0,`
303`),s(1,"app-yes-no-modal",82),h("onNoSelect",function(){u(o);let i=c();return y(i.showRemoveWaitlistConfirm=!1)})("onYesSelect",function(){u(o);let i=c();return y(i.removeFromWaitlist())}),t(2,`
304    `),s(3,"div",83),t(4),d(),t(5,`
305    `),s(6,"div",84),t(7,`
306        `),s(8,"app-inline-alert",85),t(9,`
307            Please note: if you remove a player from the waitlist you may be giving up the spot for another player
308        `),d(),t(10,`
309    `),d(),t(11,`
310`),d(),t(12,`
311`)}if(n&2){let o=c();r(),C("showHeader",!0)("showModalText",!1)("loading",o.savingWaitlist),r(3),f(`
312        Are you sure you want to remove `,o.selectedPlayer.user==null?null:o.selectedPlayer.user.firstName,` from the waitlist?
313    `),r(4),C("isInline",!0)}}function Ii(n,l){if(n&1){let o=v();t(0,`
314    `),s(1,"app-dynamic-form",86),h("onSubmit",function(i){u(o);let a=c();return y(a.updateOpenProgramsForGraduationYear(i))})("onCancel",function(){u(o);let i=c();return y(i.showPlayerGraduationYearModal=!1)}),t(2,`
315        `),b(3,"app-dynamic-form-field",87),t(4,`
316    `),d(),t(5,`
317    `)}if(n&2){let o=c();r(),C("fields",o.editFields)("entity",o.selectedPlayerClubData)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("buttonsPosition","left")}}function wi(n,l){if(n&1){let o=v();t(0,`
318`),s(1,"app-player-yearly-club-data",88),h("saved",function(i){u(o);let a=c();return y(a.updateEligibility(i))})("cancelled",function(){u(o);let i=c();return y(i.showPlayerYearlyDataModal=!1)}),d(),t(2,`
319`)}if(n&2){let o=c();r(),C("player",o.selectedPlayer)("collectDataOnly",!0)("year",o.getGradeYear())("editPlayerYearlyFieldType",o.editPlayerYearlyFieldType)}}var at=(()=>{let l=class l{get allEligibleRegistrations(){return this.selectedGroups.map(e=>e.eligibleRegistrations||[]).reduce((e,i)=>e.concat(i))}get selectedEntityIndex(){return this.selectedEntity?this.entities.findIndex(e=>e.entityID===this.selectedEntity.entityID):1}constructor(e,i,a,_,m,x,w,L,z){this.siteDataService=e,this.analyticsService=i,this.route=a,this.router=_,this.programService=m,this.userService=x,this.playerService=w,this.waitlistService=L,this.registerService=z,this.loading=!0,this.registrationScheduleMap={},this.entityMap={},this.selectedGroupMap={},this.continueButtonEnabled={},this.entityEnabled={},this.teamEnabled={},this.selectedRegistrations={},this.eligibleRegistrations={},this.specialRegistration=!1,this.registerButtonEnabled=!1,this.showRegistrationSelection=!1,this.ClubCreditType=Ut,this.showOverduePaymentWarning=!1,this.loadingRegister=!1,this.showRemoveWaitlistConfirm=!1,this.savingWaitlist=!1,this.showAddPlayer=!1,this.RegistrationAdvancedCapacityOption=Gt,this.showPlayerGraduationYearModal=!1,this.showPlayerYearlyDataModal=!1,this.editPlayerYearlyFieldType=et.Grade,this.unsubscribe$=new rt}ngOnInit(){this.route.params.subscribe(e=>{e.id&&(this.programID=+e.id,this.teamID=+e.teamID,this.programService.getProgramRegistrationGroups(this.programID).pipe($(i=>{this.program=i,this.registrationScheduleMap={},i.registrationGroups?.forEach(a=>{a.registrations?.forEach(_=>{this.registrationScheduleMap[_.registrationID]=_})}),this.isTeamRegistration=this.getIsTeamRegistration()}),F(()=>this.isTeamRegistration?T(null):this.userService.getCurrentUserPlayers()),F(i=>{let a=[];
319return this.isTeamRegistration?(this.entities=[{entityID:0,user:null,assignments:[],collectPlayerGrade:!1,collectPlayerGraduationYear:!1}],a.push(this.programService.getProgramEligibilityCostsAndCredits(this.programID).pipe(k(_=>({entityID:0,eligibility:_})),$(_=>{this.createEligibilityData(_)})))):(this.players=i,this.entities=i?.map(_=>({entityID:_.playerID,user:_.user,assignments:[],collectPlayerGrade:!1,collectPlayerGraduationYear:!1})),this.entities?.length&&this.entities.forEach(_=>{let m=this.playerService.getProgramEligibilityCostsAndCredits(_.entityID,this.programID).pipe(k(x=>({entityID:_.entityID,eligibility:x})),$(x=>{this.createEligibilityData(x)}));a.push(m)})),a.length>0?q(a):T(null)}),G(this.unsubscribe$)).subscribe({next:()=>{this.createGroupUIData(),this.loading=!1,this.siteDataService.hideSiteLoader()}}))})}getIsTeamRegistration(){return this.program.registrationGroups.some(e=>e.registrations.some(i=>i.registrationTemplate.registrationTemplateTypeID===it.TEAM))}createEligibilityData(e){e&&e.eligibility?.length&&(this.entityMap[e.entityID]||(this.entityMap[e.entityID]={}),e.eligibility.some(i=>i.collectPlayerGrade)&&this.players?.some(i=>i.playerID===e.entityID&&i.user.userTypeID===tt.CHILD)&&(this.entities.find(i=>i.entityID===e.entityID).collectPlayerGrade=!0),e.eligibility.some(i=>i.collectPlayerGraduationYear)&&this.players?.some(i=>i.playerID===e.entityID&&i.user.userTypeID===tt.CHILD)&&(this.entities.find(i=>i.entityID===e.entityID).collectPlayerGraduationYear=!0),e.eligibility.forEach(i=>{if(i.registration.registrationGroupID){if(i.registration.program.playerProgramAssignments.length===0){let a=new Xt;a.teamID=0,a.team=new Mt(0),a.team.registrationLabelOverride=i.registration.name,i.registration.program.playerProgramAssignments.push(a)}i.registration.program.playerProgramAssignments.filter(a=>!this.teamID||a.teamID===this.teamID).forEach(a=>{this.entities.find(_=>_.entityID===e.entityID).assignments.some(_=>_.teamID===a.teamID)||this.entities.find(_=>_.entityID===e.entityID).assignments.push({teamID:a.teamID,team:{teamID:a.teamID,name:a.team.name}}),this.teamEnabled[a.teamID]||(this.teamEnabled[a.teamID]=!0),this.entityMap[e.entityID][a.teamID]||(this.entityMap[e.entityID][a.teamID]={}),this.entityMap[e.entityID][a.teamID][i.registration.registrationGroupID]||(this.entityMap[e.entityID][a.teamID][i.registration.registrationGroupID]=[]),this.entityMap[e.entityID][a.teamID][i.registration.registrationGroupID].push(i)})}}),Object.keys(this.entityMap[e.entityID]).forEach(i=>{Object.keys(this.entityMap[e.entityID][i]).forEach(a=>{this.entityMap[e.entityID][i][a]=this.entityMap[e.entityID][i][a].sort((_,m)=>{if(_.registration.sortOrder<m.registration.sortOrder)return-1;if(_.registration.sortOrder>m.registration.sortOrder)return 1;{let x=_.registration.startDate?new Date(_.registration.startDate).getTime():0,w=m.registration.startDate?new Date(m.registration.startDate).getTime():0;if(x!==w)return x-w;let L=_.registration.sessionOverrideStartDate?new Date(_.registration.sessionOverrideStartDate).getTime():0,z=m.registration.sessionOverrideStartDate?new Date(m.registration.sessionOverrideStartDate).getTime():0;return L-z}})})}))}createGroupUIData(){this.isTeamRegistration?(this.program.registrationGroups.forEach(e=>{this.selectedGroupMap[0]||(this.selectedGroupMap[0]={}),this.selectedGroupMap[0][0]||(this.selectedGroupMap[0][0]={}),this.selectedGroupMap[0][0][e.registrationGroupID]=!1}),this.continueButtonEnabled[0]=!1,this.entityEnabled[0]=!0):this.entities?.length&&Object.keys(this.entityMap).forEach(e=>{this.selectedGroupMap[e]||(this.selectedGroupMap[e]={}),Object.keys(this.entityMap[e]).forEach(i=>{this.selectedGroupMap[e][i]||(this.selectedGroupMap[e][i]={}),Object.keys(this.entityMap[e][i]).forEach(a=>{this.selectedGroupMap[e][i][a]=!1})}),this.continueButtonEnabled[e]=!1,this.entityEnabled[e]=!0})}toggleGroupCheckbox(e,i,a,_){this.entityEnabled[e]&&(this.selectedGroupMap[e][i.teamID][a]=_,this.updateGroupUIData(e,i.teamID,_))}groupCheckboxChange(e,i,a,_){let m=!1;typeof _=="boolean"?m=_:_&&typeof _=="object"&&typeof _.checked<"u"?m=!!_.checked:m=!!_,this.updateGroupUIData(e,i.teamID,m)}updateGroupUIData(e,i,a){if(a)this.continueButtonEnabled[e]=!0,this.entities.filter(_=>_.entityID!==e).forEach(_=>{this.continueButtonEnabled[_.entityID]=!1,this.entityEnabled[_.entityID]=!1}
319),Object.keys(this.teamEnabled).forEach(_=>{this.teamEnabled[_]=+_===i});else{let _=!1;Object.keys(this.selectedGroupMap[e]).forEach(m=>{Object.keys(this.selectedGroupMap[e][m]).forEach(x=>{this.selectedGroupMap[e][m][x]&&(_=!0)})}),_||(this.entities.forEach(m=>{this.continueButtonEnabled[m.entityID]=!1,this.entityEnabled[m.entityID]=!0}),Object.keys(this.teamEnabled).forEach(m=>{this.teamEnabled[m]=!0}))}}showPlayerYearlyData(e){this.selectedPlayer=this.players?.find(i=>i.playerID===e),this.showPlayerYearlyDataModal=!0}showPlayerClubData(e){this.selectedPlayer=this.players?.find(i=>i.playerID===e),this.selectedPlayerClubData=this.players.find(i=>i.playerID===e).playerClubData,q({metadata:this.editFields?.length>0?T(null):this.playerService.getPlayerClubDataMetadata(),clubData:this.selectedPlayerClubData?T(null):this.playerService.getPlayerClubData(e)}).subscribe({next:i=>{i.metadata&&(this.editFields=i.metadata.fields.filter(a=>a.controlName==="graduationYear")),i.clubData&&(this.selectedPlayerClubData=i.clubData),this.showPlayerGraduationYearModal=!0},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem saving player data.")}})}continue(e){this.selectedEntity=e,this.selectedPlayer=this.players?.find(i=>i.playerID===e.entityID),this.selectedGroups=[],Object.keys(this.selectedGroupMap[e.entityID]).forEach(i=>{Object.keys(this.selectedGroupMap[e.entityID][i]).forEach(a=>{if(this.selectedGroupMap[e.entityID][i][a]){let _=this.program.registrationGroups.find(m=>m.registrationGroupID===+a);_.eligibleRegistrations=this.entityMap[e.entityID][i][a],+i!=0&&(this.selectedTeam=e.assignments.find(m=>m.teamID===+i)?.team),this.selectedGroups.push(_)}})}),this.selectedGroups=this.selectedGroups.sort((i,a)=>i.sortOrder<a.sortOrder?-1:i.sortOrder>a.sortOrder?1:0),this.selectedGroups.map(i=>i.registrations).reduce((i,a)=>i.concat(a)).forEach(i=>{this.selectedRegistrations[i.registrationID]=!1,this.eligibleRegistrations[i.registrationID]=!0}),this.showRegistrationSelection=!0,this.registerButtonEnabled=!1,setTimeout(()=>{document.getElementById("registration-selection").scrollIntoView({behavior:"smooth"})},10)}back(){this.showRegistrationSelection=!1,this.selectedEntity=null,this.selectedRegistrations={}}toggleRegistrationCheckbox(e,i){this.eligibleRegistrations[e.registration.registrationID]&&(e.hasSpecialRegistration||!e.registration.isCapacityFull&&!e.registration.isAdvancedCapacityFull)&&this.eligibleRegistrations[e.registration.registrationID]&&(this.selectedRegistrations[e.registration.registrationID]=i,this.updateRegisterUI(i))}registrationCheckboxChange(e,i){let a=!1;typeof e=="boolean"?a=e:e&&typeof e=="object"&&typeof e.checked<"u"?a=!!e.checked:a=!!e,(i.hasSpecialRegistration||!i.registration.isCapacityFull&&!i.registration.isAdvancedCapacityFull)&&(this.updateRegisterUI(a),this.analyticsSelectItem(a,i))}updateRegisterUI(e){e?this.registerButtonEnabled=!0:Object.keys(this.selectedRegistrations).forEach(i=>{this.selectedRegistrations[i]&&(this.registerButtonEnabled=!0)}),this.getSelectedRegistrationIDs()?.length?this.allEligibleRegistrations.forEach(i=>{this.selectedRegistrations[i.registration.registrationID]?this.disableExclusionsForSelectedRegistration(i.registration.registrationID):this.toggleEligibilityForNonSelectedRegistration(i.registration.registrationID)}):Object.keys(this.eligibleRegistrations).forEach(i=>{this.eligibleRegistrations[+i]=!0})}disableExclusionsForSelectedRegistration(e){let i=this.getRegistrationExclusionsAndSeasonOverlaps(e);i?.length&&i.forEach(a=>{this.eligibleRegistrations[a.registrationID]=!1,this.selectedRegistrations[a.registrationID]=!1})}toggleEligibilityForNonSelectedRegistration(e){let i=this.getExclusionsAndSeasonOverlapsForRegistration(e).concat(this.getRegistrationExclusionsAndSeasonOverlaps(e));i?.length&&i.some(a=>this.getSelectedRegistrationIDs().some(_=>_===a.registrationID))?(this.eligibleRegistrations[e]=!1,this.selectedRegistrations[e]=!1):this.eligibleRegistrations[e]=!0}getRegistrationExclusionsAndSeasonOverlaps(e){let i=[],a=this.allEligibleRegistrations.filter(_=>_.registration.registrationID===e)[0];if(a.registration.registrationExclusions&&(i=this.allEligibleRegistrations.filter(_=>a.registration.registrationExclusions.some(m=>m.exclusionRegistrationID===_.registration.registrationID))),a&&a.registration.seasons&&a.registration.preventSeasonOverlap&&this.get
319SelectedRegistrationIDs().length>0){let _=this.allEligibleRegistrations.filter(m=>m.registration.programID===a.registration.programID&&m.registration.registrationID!==e);_&&_.length>0&&_.forEach(m=>{m.registration.seasons?.length&&a.registration.seasons.some(x=>m.registration.seasons.some(w=>w.seasonID===x.seasonID))&&(i.some(x=>x.registration.registrationID===m.registration.registrationID)||i.push(m))})}return i.map(_=>_.registration)}getExclusionsAndSeasonOverlapsForRegistration(e){let i=[];i=this.allEligibleRegistrations.filter(_=>_.registration.registrationExclusions?.some(m=>m.exclusionRegistrationID===e));let a=this.allEligibleRegistrations.filter(_=>_.registration.registrationID===e)[0];if(a&&a.registration.seasons){let _=this.allEligibleRegistrations.filter(m=>m.registration.preventSeasonOverlap&&m.registration.programID===a.registration.programID&&m.registration.registrationID!==e);_&&_.length>0&&_.forEach(m=>{m.registration.seasons?.length&&m.registration.seasons.some(x=>a.registration.seasons.some(w=>w.seasonID===x.seasonID))&&(i.some(x=>x.registration.registrationID===m.registration.registrationID)||i.push(m))})}return i.map(_=>_.registration)}getSelectedRegistrationIDs(){let e=[];return Object.keys(this.selectedRegistrations).forEach(i=>{this.selectedRegistrations[i]&&e.push(+i)}),e}registrationStarted(e){return!!e.playerRegistrations?.length}registrationCompleted(e){return!!(e.playerRegistrations?.length&&e.playerRegistrations[0].completed)}addToWaitlist(e){this.savingWaitlist=!0,this.waitlistService.createWaitlistEntry(e.registration.registrationID,this.selectedEntity.entityID,null).pipe(G(this.unsubscribe$)).subscribe({next:i=>{this.siteDataService.showSiteSuccessAlert(`${this.selectedEntity.user.firstName} added to waitlist`),e.registrationWaitlistID=i.registrationWaitlistID,this.savingWaitlist=!1},error:()=>{this.siteDataService.showSiteErrorAlert(`There was a problem adding ${this.selectedEntity.user.firstName} to the waitlist`),this.savingWaitlist=!1}})}confirmRemoveFromWaitlist(e){this.selectedEligibilityCostsAndCredits=e,this.showRemoveWaitlistConfirm=!0}removeFromWaitlist(){this.savingWaitlist=!0,this.waitlistService.deleteWaitlistEntry(this.selectedEligibilityCostsAndCredits.registration.registrationID,this.selectedEntity.entityID,null).pipe(G(this.unsubscribe$)).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert(`${this.selectedEntity.user.firstName} removed from waitlist`),this.selectedEligibilityCostsAndCredits.registrationWaitlistID=null,this.showRemoveWaitlistConfirm=!1,this.savingWaitlist=!1},error:()=>{this.siteDataService.showSiteErrorAlert(`There was a problem removing ${this.selectedEntity.user.firstName} from the waitlist`),this.savingWaitlist=!1}})}register(){this.loadingRegister=!0;let e=this.getSelectedRegistrationIDs()[0];this.analyticsGoToCart(),this.isTeamRegistration?(this.registerService.registrationTemplateType=it.TEAM,this.registerService.registrationID=e,this.registerService.getEntityRegistration().pipe(F(i=>this.registerService.getRegistrationSession(i.entityRegistrationID).pipe(k(a=>({entityRegistrationID:i.entityRegistrationID,session:a})))),F(({entityRegistrationID:i,session:a})=>(this.registerService.session=a,a.sessionData||(a.sessionData=new nt),a.sessionData.selectedRegistrationIDs=this.getSelectedRegistrationIDs(),this.registerService.updateRegistrationSession(i)))).subscribe({next:()=>{this.redirectUrl="/registrations/"+e+"/register",this.showOverduePaymentWarning=!0,this.loadingRegister=!1}})):this.playerService.getPlayerRegistration(this.selectedEntity.entityID,e,this.selectedTeam?.teamID).pipe(F(i=>this.playerService.getPlayerRegistrationSession(this.selectedEntity.entityID,i.playerRegistrationID,e)),F(i=>(i.sessionData||(i.sessionData=new nt),i.sessionData.selectedRegistrationIDs=this.getSelectedRegistrationIDs(),this.playerService.updatePlayerRegistrationSession(this.selectedEntity.entityID,i.playerRegistrationID,i)))).subscribe({next:()=>{this.program.programInvitationTypeID===It.INVITATIONAL_WITH_REGISTRATION&&this.selectedTeam?.teamID?this.redirectUrl=`/players/${this.selectedEntity.entityID}/registrations/${e}/teams/${this.selectedTeam.teamID}/register`:this.redirectUrl=`/players/${this.selectedEntity.entityID}/registrations/${e}/register`,this.specialRegistration=!1,this.allEligibleRegistrations.filter(i=>this.getSelectedRegistrationIDs().includes(i.registration.registrationID)).every(i=>i.hasSpecialRegistration)&&(this.specialRegistration=!0),this.showOverduePaymentWarning=!0,this.loadingRegister=!1}})}analyticsSelectItem(e,i){try{if(e){let a=new ht(`registration_${i.registration.registrationID}`,i.registration.name);a.price=i.registration.price,a.item_category=i.registration.program?.name,a.item_category2=`teamID_${i.registration.teamID}`,a.program_id=i.registration.programID?.toString(),a.program_name=i.registration.program?.name,this.analyticsService.selectItem(new vt([a]))}}catch(a){console.log("GA Exception: ",a)}}analyticsGoToCart(){try{let e=this.getSelectedRegistrationIDs(),i=[],a=0;if(e?.length){this.allEligibleRegistrations.forEach(m=>{e[m.registration.registrationID]&&(i.push({item_id:`registration_${m.registration.registrationID}`,item_name:m.registration.name,item_category:this.program.name,item_category2:`teamID_${m.registration.teamID}`,price:m.registration.price,program_id:m.registration.programID?.toString(),program_name:m.registration.program?.name??this.program.name}),a+=m.registration.price)});let _=new bt(a,i);this.analyticsService.addToCart(_),this.analyticsService.beginCheckout(_)}}catch(e){console.log("GA Exception: ",e)}}playerAdded(e){this.loading=!0,this.players||(this.players=[]),this.players.some(i=>
319i.playerID===e.playerID)||(this.players.push(e),this.entities||(this.entities=[]),this.entities.push({entityID:e.playerID,user:e.user,assignments:[],collectPlayerGrade:!1,collectPlayerGraduationYear:!1})),this.playerService.getProgramEligibilityCostsAndCredits(e.playerID,this.programID).subscribe(i=>{this.createEligibilityData({entityID:e.playerID,eligibility:i}),this.createGroupUIData(),this.showAddPlayer=!1,this.loading=!1})}getGradeYearString(){let e=new Date(this.program.effectiveDate).getFullYear();return`${e}/${e+1}`}getGradeYear(){return new Date(this.program.effectiveDate).getFullYear()}updateEligibility(e){this.selectedPlayer.playerYearlyClubData=e.playerYearlyClubData;let i=e.playerYearlyClubData?.find(a=>a.playerYearlyFieldTypeID===et.Grade&&new Date(a.effectiveDate).getFullYear()===this.getGradeYear())?.numericValue;Object.keys(this.entityMap[e.playerID]).forEach(a=>{Object.keys(this.entityMap[e.playerID][a]).forEach(_=>{this.entityMap[e.playerID][a][_]=this.entityMap[e.playerID][a][_].filter(m=>!m.collectPlayerGrade||m.collectPlayerGrade&&m.grades?.includes(i))})}),this.entities.find(a=>a.entityID===e.playerID).collectPlayerGrade=!1,this.showPlayerYearlyDataModal=!1}updateOpenProgramsForGraduationYear(e){e.graduationYear?this.playerService.savePlayerClubData(this.selectedPlayer.playerID,e,this.selectedPlayerClubData!==null).subscribe({next:()=>{Object.keys(this.entityMap[this.selectedPlayer.playerID]).forEach(i=>{Object.keys(this.entityMap[this.selectedPlayer.playerID][i]).forEach(a=>{this.entityMap[this.selectedPlayer.playerID][i][a]=this.entityMap[this.selectedPlayer.playerID][i][a].filter(_=>!_.collectPlayerGraduationYear||_.graduationYearFrom<=new Date(e.graduationYear).getFullYear()&&_.graduationYearTo>=new Date(e.graduationYear).getFullYear())})}),this.entities.find(i=>i.entityID===this.selectedPlayer.playerID).collectPlayerGraduationYear=!1,this.showPlayerGraduationYearModal=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem saving information.")}}):this.showPlayerGraduationYearModal=!1}getDayOfWeek(e){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e]||""}formatTime(e){return e?(0,te.default)(e,"HH:mm:ss").format("h:mm A"):""}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(i){return new(i||l)(D(yt),D(Dt),D(gt),D(xt),D(H),D(ft),D($t),D(U),D(Kt))},l.\u0275cmp=W({type:l,selectors:[["app-program-overview"]],standalone:!1,decls:21,vars:17,consts:[[1,"main"],[1,"container-67"],["header","Add Player","styleClass","standardWidthDialog",3,"visible","showHeader","closable","modal","draggable"],[3,"add","cancel"],["header","Graduation Year","styleClass","standardWidthDialog",3,"visibleChange","visible","showHeader","closable","modal","draggable"],[1,"btn","btn-naked","btn-icon-chevron-left","pl-0",3,"routerLink"],[1,"btn","btn-naked","btn-icon-chevron-left","pl-0",3,"click"],[1,"card"],[1,"registration-details"],["ngClass","text-h5 mb-0"],[1,"text-h2","mb-3"],[1,"end-date"],[1,"small-label"],[1,"registration-custom-text-row"],[1,"registration-custom-text",3,"innerHTML"],[1,"player-details"],[1,"d-flex","align-items-center"],[1,"mr-3"],[3,"player","playerNumber","initialsOnly"],[1,"fw-600","text-large"],[1,"ml-auto"],["type","button","disabled","",1,"btn","btn-secondary"],[1,"bg-grey-lt","p-3","text-small","mb-3"],[1,"line-height-2","mb-2"],[1,"btn-a11y","text-primary-link",3,"click"],[1,"mt-3","mb-3","text-small","text-grey"],[1,"registration-group-button","d-flex","justify-content-between"],[1,"text-smallest"],["type","button",1,"btn","btn-primary","btn-icon-chevron-right-after",3,"click","disabled"],[1,"checkbox-selection-row","d-flex","align-items-center","px-3","mb-3",3,"click"],[1,"group-row","d-flex","align-items-center"],[3,"ngModelChange","click","ngModel","binary","disabled"],[1,"fw-700"],[3,"isInline","alertType"],["id","registration-selection",1,"card"],[1,"registration-group-buttons","d-flex"],[1,"d-flex"],["type","button",1,"btn","btn-naked","btn-icon-chevron-left",3,"click"],[1,"d-flex","ml-auto","justify-content-end"],[1,"d-flex","align-items-center","border-bottom","pb-3"],[1,"selected-registration-group","mb-3","pb-3"],[1,"group-name-row","text-large","fw-700","pl-3","py-2","mb-3"],[1,"checkbox-selection-row","d-flex","flex-column","px-3","mx-3",3,"click"],[1,"group-row","row","d-flex","align-items-center","full-width"],[1,"col-auto","pl-3","pr-0"],["checkboxIcon","fal fa-check",3,"ngModelChange","click","ngModel","binary","disabled"],[1,"col"],[1,"fw-700","text-uppercase"],[1,"d-flex","justify-content-center","align-items-center","ml-auto"],[1,"fa-solid","fa-triangle-exclamation"],[1,"text-red"],[1,"text-medium","fw-400","mt-1","mb-1"],[1,"d-flex","text-medium","mb-1"],[1,"mr-3","d-flex"],[1,"fal","fa-calendar","mr-2"],[1,"nowrap"],[1,"fal","fa-location-dot","mr-2"],["target","_blank","rel","noopener noreferrer",3,"click","href"],[1,"mb-2"],[3,"focuses"],[1,"text-small","d-flex","border-top","pt-0","mt-1"],[1,"mr-auto","pt-1",3,"click"],["styleClass","p-accordion-naked accordion-toggle-first"],["value","0"],[3,"pt"],[1,"text-medium","fw-500","text-primary-link"],[1,"registration-custom-text-row","border-radius-lg","bg-grey-lt","p-3","mb-3",3,"innerHTML"],[1,"list-price","justify-content-start","pt-1","pr-2","text-nowrap"],[1,"mr-1"],[1,"credits","pl-2","border-left","py-2"],[1,"credit-row","row","
319no-gutters",3,"ngClass"],[1,"col-8","p-0"],[1,"line-height-md","d-inline-block"],[1,"col-4","p-0","text-right"],[1,"d-flex","justify-content-end","px-3","mx-3"],["type","button",1,"btn","btn-sm","btn-naked","btn-icon-plus",3,"click","disabled"],["type","button",1,"btn","btn-sm","btn-naked","btn-icon-times",3,"click","disabled"],[1,"border-bottom","border-top","pb-3"],[3,"alertType","isInline"],[1,"mt-2"],["href","javascript:void(0);",1,"btn","btn-icon-plus","btn-sm","btn-naked",3,"click"],[3,"player","redirectUrl","specialRegistration"],["headerText","Remove from Waitlist","noButtonText","Cancel","yesButtonText","Yes, Remove","yesButtonLoadingText","Removing...",3,"onNoSelect","onYesSelect","showHeader","showModalText","loading"],[1,"mb-3","fw-600"],[1,"mb-3","text-small"],["alertType","warning",3,"isInline"],[3,"onSubmit","onCancel","fields","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","graduationYear"],[3,"saved","cancelled","player","collectDataOnly","year","editPlayerYearlyFieldType"]],template:function(i,a){i&1&&(s(0,"div",0),t(1,`
320    `),s(2,"div",1),t(3,`
321        `),p(4,de,4,2),p(5,ce,4,0),p(6,vi,20,5),d(),t(7,`
322`),d(),t(8,`
323
324`),p(9,bi,4,3),p(10,Di,13,5),s(11,"p-dialog",2),t(12,`
325    `),s(13,"app-add-player",3),h("add",function(m){return a.playerAdded(m)})("cancel",function(){return a.showAddPlayer=!1}),d(),t(14,`
326`),d(),t(15,`
327`),s(16,"p-dialog",4),N("visibleChange",function(m){return j(a.showPlayerGraduationYearModal,m)||(a.showPlayerGraduationYearModal=m),m}),t(17,`
328    `),p(18,Ii,6,7),d(),t(19,`
329`),p(20,wi,3,4)),i&2&&(r(4),g(a.showRegistrationSelection?-1:4),r(),g(a.showRegistrationSelection?5:-1),r(),g(a.loading?-1:6),r(3),g(a.showOverduePaymentWarning?9:-1),r(),g(a.showRemoveWaitlistConfirm?10:-1),r(),C("visible",a.showAddPlayer)("showHeader",!0)("closable",!1)("modal",!0)("draggable",!1),r(5),B("visible",a.showPlayerGraduationYearModal),C("showHeader",!0)("closable",!1)("modal",!0)("draggable",!1),r(2),g(a.showPlayerGraduationYearModal&&a.editFields?18:-1),r(2),g(a.showPlayerYearlyDataModal?20:-1))},dependencies:[dt,Ot,Ft,mt,pt,ut,Et,Tt,kt,Bt,St,Pt,Vt,At,Wt,Yt,Lt,Nt,Ht,qt,_t,ct,wt,Rt],styles:[".checkbox-selection-row[_ngcontent-%COMP%]{min-height:3rem;border-radius:4px;border:var(--border);border-width:2px;padding:.5rem 0}.checkbox-selection-row[_ngcontent-%COMP%]:not(.disabled):hover{cursor:pointer}.checkbox-selection-row.selected[_ngcontent-%COMP%]{border:2px solid var(--green-600);background-color:var(--blue-25)}.checkbox-selection-row.disabled[_ngcontent-%COMP%]{border:2px solid;border-color:var(--grey-300);background-color:var(--grey-300);opacity:.75}.group-name-row[_ngcontent-%COMP%]{color:var(--002d73);border-left:3px solid var(--002d73)}.selected-registration-group[_ngcontent-%COMP%]{background-color:var(--grey-25)}"]});let n=l;return n})();var ee=(()=>{let l=class l{};l.\u0275fac=function(i){return new(i||l)},l.\u0275mod=Y({type:l}),l.\u0275inj=A({imports:[Z.forChild([{path:"",component:Zt,children:[{path:":id",component:at,data:{bodyClass:"program-overview"}},{path:":id/teams/:teamID",component:at,data:{bodyClass:"program-overview"}}]}]),Z]});let n=l;return n})();var Wn=(()=>{let l=class l{};l.\u0275fac=function(i){return new(i||l)},l.\u0275mod=Y({type:l}),l.\u0275inj=A({providers:[H,U],imports:[jt,ee,zt,Jt,Qt]});let n=l;return n})();export{Wn as ProgramModule};

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.