1import{a as Y,b as we}from"./chunk-7V7RXI7D.js";import{a as Pe}from"./chunk-HEXCNDVV.js";import{r as be}from"./chunk-ADMKBOBN.js";import"./chunk-LCPPMNQ3.js";import"./chunk-XNSH6ILV.js";import"./chunk-IZKA562T.js";import"./chunk-BROSYERN.js";import"./chunk-Z52L74DH.js";import{q as ye}from"./chunk-QH3IRCHN.js";import"./chunk-PLEH3NAH.js";import"./chunk-GXCJ5QS4.js";import"./chunk-22ACI5KU.js";import"./chunk-FXUQQQIE.js";import"./chunk-FSUBAQYH.js";import"./chunk-7CVCGK4Q.js";import"./chunk-FWW3IJT2.js";import"./chunk-B6LCWWQX.js";import"./chunk-HYGNXZJR.js";import"./chunk-B6XXRKU5.js";import"./chunk-RW2MVE4O.js";import"./chunk-3ZVRFUA4.js";import"./chunk-H4PCL6BZ.js";import"./chunk-NXTJBJRP.js";import"./chunk-U22BTVEZ.js";import{Bb as _e,Cg as ve,Ec as Ce,Td as fe,Xc as ue,Zc as he,d as X,fh as De,jc as xe,k as Z,kh as Ee,lb as ce,lc as ge,xb as pe,ye as Se}from"./chunk-X5J6QTCG.js";import{$ as W,$a as c,Aa as B,Ad as G,Fa as l,Hg as re,Ib as e,Ie as Be,Jb as y,Ka as w,Kb as x,Lb as $,Lc as K,Ma as q,Na as V,Qb as h,Rb as f,Sa as O,Sb as S,Wc as Q,Wg as le,Yb as J,bb as p,be as ie,cc as R,d as U,db as T,di as me,eb as F,ec as N,fa as g,fb as I,fj as se,ga as C,gb as _,hb as n,ib as a,jb as E,jf as ne,lc as D,lf as ae,mc as M,mf as oe,nb as P,nc as k,ob as b,pj as de,qb as u,sb as L,tb as m,u as j,vd as ee,ya as A,yd as te}from"./chunk-SMW7PHYX.js";import{h as We}from"./chunk-BMIYOSOG.js";var Fe=We(Be());var Ie=()=>["/open-programs"],Le=(i,o)=>({programID:i,registrationID:o});function Ve(i,o){if(i&1&&(e(0,` 2 `),E(1,"img",12),e(2,` 3 `)),i&2){let t=m(2);l(),_("src",t.program.image,B)}}function Ye(i,o){if(i&1&&(e(0,` 4 `),n(1,"div",13),e(2),a(),e(3,` 5 `)),i&2){let t=m(2);l(2),y(t.program.programCategory)}}function Ae(i,o){if(i&1&&(e(0,` 6 `),n(1,"div"),e(2,` 7 `),n(3,"span",14),e(4,` 8 `),n(5,"span",15),e(6,"Register by:"),a(),e(7),D(8,"date"),a(),e(9,` 9 `),a(),e(10,` 10 `)),i&2){let t=m(2);l(7),x(` 11 `,k(8,1,t.program.eligibilityEndDate,"MMMM d, y"),` 12 `)}}function Oe(i,o){if(i&1&&(e(0,` 13 `),n(1,"a",16),D(2,"safeUrl"),e(3),a(),e(4,` 14 `)),i&2){let t=m(2);l(),_("href",M(2,3,t.program.linkURL),B)("target",t.program.openLinkInNewTab?"_blank":"_self"),l(2),x(` 15 `,t.program.buttonText||"Info",` 16 `)}}function $e(i,o){if(i&1&&(e(0,` 17 `),n(1,"app-page-link",17),e(2,` 18 `),a(),e(3,` 19 `)),i&2){let t=m(2);l(),_("title",t.program.buttonText||"Info")("customURL",t.program.pageBuilderPageID==null?null:t.program.pageBuilderPageID.toString())("openLinkInNewTab",t.program.openLinkInNewTab)}}function Re(i,o){if(i&1&&(e(0,` 20 `),n(1,"div",18),e(2,` 21 `),n(3,"div",19),D(4,"safeHtml"),e(5,` 22 `),a(),e(6,` 23 `),a(),e(7,` 24 `)),i&2){let t=m(2);l(3),_("innerHTML",M(4,1,t.program.detailText),A)}}function Ne(i,o){if(i&1){let t=u();e(0,` 25 `),n(1,"div",23),e(2,` 26 `),n(3,"div",24),e(4,` 27 `),n(5,"label"),e(6,"Season"),a(),e(7,` 28 `),n(8,"p-multiSelect",25),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.seasonIDs,r)||(d.programDetailService.searchParams.seasonIDs=r),C(r)}),e(9,` 29 `),a(),e(10,` 30 `),a(),e(11,` 31 `),a(),e(12,` 32 `)}if(i&2){let t=m(3);l(8),h("ngModel",t.programDetailService.searchParams.seasonIDs),_("options",t.seasons)("filter",!1)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} seasons selected")}}function Ge(i,o){if(i&1){let t=u();e(0,` 33 `),n(1,"div",23),e(2,` 34 `),n(3,"div",24),e(4,` 35 `),n(5,"label"),e(6,"Day"),a(),e(7,` 36 `),n(8,"p-multiSelect",25),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.dayOfWeek,r)||(d.programDetailService.searchParams.dayOfWeek=r),C(r)}),e(9,` 37 `),a(),e(10,` 38 `),a(),e(11,` 39 `),a(),e(12,` 40 `)}if(i&2){let t=m(3);l(8),h("ngModel",t.programDetailService.searchParams.dayOfWeek),_("options",t.daysOfWeek)("filter",!1)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} days selected")}}function ze(i,o){if(i&1){let t=u();e(0,` 41 `),n(1,"div",23),e(2,` 42 `),n(3,"div",24),e(4,` 43 `),n(5,"label",26),e(6,"Location"),a(),e(7,` 44 `),n(8,"p-multiSelect",27),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.location,r)||(d.programDetailService.searchParams.location=r),C(r)}),e(9,` 45 `),a(),e(10,` 46 `),e(11,` 47 `),a(),e(12,` 48 `),a(),e(13,` 49 `)}if(i&2){let t=m(3);l(8),_("autofocusFilter",!0),h("ngModel",t.programDetailService.searchParams.location),_("options",t.practiceFacilities)("filter",!0)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} locations selected")}}function He(i,o){if(i&1){let t=u();e(0,` 50 `),n(1,"div",23),e(2,` 51 `),n(3,"div",24),e(4,` 52 `),n(5,"label"),e(6,"Birth Year"),a(),e(7,` 53 `),n(8,"p-inputgroup"),e(9,` 54 `),n(10,"p-datepicker",28,0),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.birthYear,r)||(d.programDetailService.searchParams.birthYear=r),C(r)}),a(),e(12,` 55 `),n(13,"p-inputgroup-addon"),e(14,` 56 `),n(15,"a",29),L("click",function(){g(t);let r=m(3);return C(r.programDetailService.searchParams.birthYear=void 0)}),e(16,` 57 `),E(17,"i",30),e(18,` 58 `),a(),e(19,` 59 `),a(),e(20,` 60 `),a(),e(21,` 61 `),a(),e(22,` 62 `),a(),e(23,` 63 `)}if(i&2){let t=m(3);l(10),h("ngModel",t.programDetailService.searchParams.birthYear),_("defaultDate",t.minBirthYear)("minDate",t.minBirthYear)("maxDate",t.maxBirthYear)}}function Ue(i,o){if(i&1){let t=u();e(0,` 64 `),n(1,"div",23),e(2,` 65 `),n(3,"div",24),e(4,` 66 `),n(5,"label"),e(6,"Graduation Year"),a(),e(7,` 67 `),n(8,"p-inputgroup"),e(9,` 68 `),n(10,"p-datepicker",3
681,1),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.graduationYear,r)||(d.programDetailService.searchParams.graduationYear=r),C(r)}),a(),e(12,` 69 `),n(13,"p-inputgroup-addon"),e(14,` 70 `),n(15,"a",29),L("click",function(){g(t);let r=m(3);return C(r.programDetailService.searchParams.graduationYear=void 0)}),e(16,` 71 `),E(17,"i",30),e(18,` 72 `),a(),e(19,` 73 `),a(),e(20,` 74 `),a(),e(21,` 75 `),a(),e(22,` 76 `),a(),e(23,` 77 `)}if(i&2){let t=m(3);l(10),h("ngModel",t.programDetailService.searchParams.graduationYear)}}function je(i,o){if(i&1){let t=u();e(0,` 78 `),n(1,"div",23),e(2,` 79 `),n(3,"div",24),e(4,` 80 `),n(5,"label"),e(6,"Gender"),a(),e(7,` 81 `),n(8,"p-select",32),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.genderID,r)||(d.programDetailService.searchParams.genderID=r),C(r)}),a(),e(9,` 82 `),a(),e(10,` 83 `),a(),e(11,` 84 `)}if(i&2){let t=m(3);l(8),h("ngModel",t.programDetailService.searchParams.genderID),_("options",t.genders)}}function qe(i,o){if(i&1){let t=u();e(0,` 85 `),n(1,"div",23),e(2,` 86 `),n(3,"div",24),e(4,` 87 `),n(5,"label"),e(6,"Grade"),a(),e(7,` 88 `),n(8,"p-multiSelect",33),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.gradeID,r)||(d.programDetailService.searchParams.gradeID=r),C(r)}),e(9,` 89 `),a(),e(10,` 90 `),a(),e(11,` 91 `),a(),e(12,` 92 `)}if(i&2){let t=m(3);l(8),h("ngModel",t.programDetailService.searchParams.gradeID),_("options",t.grades)("maxSelectedLabels",1)("selectedItemsLabel","{0} grades selected")}}function Je(i,o){if(i&1){let t=u();e(0,` 93 `),n(1,"div",23),e(2,` 94 `),n(3,"div",24),e(4,` 95 `),n(5,"label"),e(6),a(),e(7,` 96 `),n(8,"p-multiSelect",33),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.ageClass,r)||(d.programDetailService.searchParams.ageClass=r),C(r)}),e(9,` 97 `),a(),e(10,` 98 `),a(),e(11,` 99 `),a(),e(12,` 100 `)}if(i&2){let t=m(3);l(6),y(t.fieldName(t.FieldOption.AGE_CLASS)),l(2),h("ngModel",t.programDetailService.searchParams.ageClass),_("options",t.ageClasses)("maxSelectedLabels",1)("selectedItemsLabel","{0} items selected")}}function Ke(i,o){if(i&1){let t=u();e(0,` 101 `),n(1,"div",23),e(2,` 102 `),n(3,"div",24),e(4,` 103 `),n(5,"label"),e(6,"Training Focus"),a(),e(7,` 104 `),n(8,"p-multiSelect",33),S("ngModelChange",function(r){g(t);let d=m(3);return f(d.programDetailService.searchParams.trainingFocusIDs,r)||(d.programDetailService.searchParams.trainingFocusIDs=r),C(r)}),e(9,` 105 `),a(),e(10,` 106 `),a(),e(11,` 107 `),a(),e(12,` 108 `)}if(i&2){let t=m(3);l(8),h("ngModel",t.programDetailService.searchParams.trainingFocusIDs),_("options",t.trainingFocuses)("maxSelectedLabels",1)("selectedItemsLabel","{0} items selected")}}function Qe(i,o){if(i&1){let t=u();e(0,` 109 `),n(1,"div",20),e(2,` 110 `),n(3,"app-admin-filter",21),L("adminFilterReset",function(){g(t);let r=m(2);return C(r.resetFilters())})("adminFilterSearch",function(){g(t);let r=m(2);return C(r.run())}),e(4,` 111 `),P(5,22),e(6,` 112 `),c(7,Ne,13,6),c(8,Ge,13,6),c(9,ze,14,7),c(10,He,24,4),c(11,Ue,24,1),c(12,je,12,2),c(13,qe,13,4),c(14,Je,13,5),c(15,Ke,13,4),b(),e(16,` 113 `),a(),e(17,` 114 `),a(),e(18,` 115 `)}if(i&2){let t=m(2);l(3),_("showAdvanced",!1)("showLabels",!1),l(4),p((t.seasons==null?null:t.seasons.length)>1?7:-1),l(),p((t.daysOfWeek==null?null:t.daysOfWeek.length)>1?8:-1),l(),p((t.practiceFacilities==null?null:t.practiceFacilities.length)>1?9:-1),l(),p(t.enableBirthYearFilter?10:-1),l(),p(t.enableGraduationYearFilter?11:-1),l(),p((t.genders==null?null:t.genders.length)>1?12:-1),l(),p((t.grades==null?null:t.grades.length)>1?13:-1),l(),p((t.ageClasses==null?null:t.ageClasses.length)>1?14:-1),l(),p((t.trainingFocuses==null?null:t.trainingFocuses.length)>1?15:-1)}}function Xe(i,o){if(i&1&&(e(0,` 116 `),n(1,"h4"),e(2),a(),e(3,` 117 `)),i&2){let t=m().$implicit;
117l(2),y(t.shortDescription)}}function Ze(i,o){if(i&1&&(e(0,` 118 `),n(1,"div",42),e(2,` 119 `),n(3,"div",43),D(4,"safeHtml"),e(5,` 120 `),a(),e(6,` 121 `),a(),e(7,` 122 `)),i&2){let t=m().$implicit;l(3),_("innerHTML",M(4,1,t.details),A)}}function et(i,o){if(i&1&&(e(0,` 123 `),n(1,"div",37),e(2,` 124 `),n(3,"div",38),e(4,` 125 `),n(5,"span",39),e(6,"REGISTER BY: "),a(),e(7,` 126 `),n(8,"span",40),e(9),D(10,"date"),a(),e(11,` 127 `),a(),e(12,` 128 `),a(),e(13,` 129 `)),i&2){let t=m().$implicit;l(9),x(` 130 `,t.endDate?k(10,1,t.endDate,"MM/dd/y"):"N/A",` 131 `)}}function tt(i,o){if(i&1&&(e(0),D(1,"date")),i&2){let t=m(2).$implicit;x(` 132 - `,k(1,1,t.sessionOverrideEndDate,"MM/dd"),` 133 `)}}function it(i,o){if(i&1&&(e(0,` 134 `),n(1,"div",37),e(2,` 135 `),n(3,"div",38),e(4,` 136 `),n(5,"span",39),e(6,"When: "),a(),e(7,` 137 `),n(8,"span",40),e(9),D(10,"date"),c(11,tt,2,4),a(),e(12,` 138 `),a(),e(13,` 139 `),a(),e(14,` 140 `)),i&2){let t=m().$implicit;l(9),x(` 141 `,k(10,2,t.sessionOverrideStartDate,"MM/dd"),` 142 `),l(2),p(t.sessionOverrideEndDate?11:-1)}}function nt(i,o){if(i&1&&e(0),i&2){let t=m(2).$implicit,s=m(2);x(` 143 - `,s.formatTime(t.endTime),` 144 `)}}function at(i,o){if(i&1&&(e(0,` 145 `),n(1,"div",37),e(2,` 146 `),n(3,"div",38),e(4,` 147 `),n(5,"span",39),e(6,"Time: "),a(),e(7,` 148 `),n(8,"span",40),e(9),c(10,nt,1,1),a(),e(11,` 149 `),a(),e(12,` 150 `),a(),e(13,` 151 `)),i&2){let t=m().$implicit,s=m(2);l(9),x(` 152 `,s.formatTime(t.startTime),` 153 `),l(),p(t.endTime?10:-1)}}function ot(i,o){if(i&1&&(e(0,` 154 `),E(1,"i",44),e(2,` 155 `),n(3,"a",45),e(4),a(),e(5,` 156 `)),i&2){let t=m(2).$implicit;l(3),_("href",J("http://www.google.com/maps/place/",t.practiceFacility.latitude,",",t.practiceFacility.longitude),B),l(),x(` 157 `,t.practiceFacility.name,` 158 `)}}function rt(i,o){if(i&1&&(e(0,` 159 `),n(1,"span"),e(2),a(),e(3,` 160 `)),i&2){let t=m(2).$implicit;l(2),y(t.location?t.location:"N/A")}}function lt(i,o){if(i&1&&(e(0,` 161 `),n(1,"div",37),e(2,` 162 `),n(3,"div",38),e(4,` 163 `),n(5,"span",39),e(6,"LOCATION: "),a(),e(7,` 164 `),n(8,"span",40),e(9,` 165 `),c(10,ot,6,4),c(11,rt,4,1),a(),e(12,` 166 `),a(),e(13,` 167 `),a(),e(14,` 168 `)),i&2){let t=m().$implicit;l(10),p(t.practiceFacility!=null&&t.practiceFacility.latitude?10:-1),l(),p(t.practiceFacility!=null&&t.practiceFacility.latitude?-1:11)}}function mt(i,o){if(i&1&&(e(0,` 169 `),n(1,"div",37),e(2,` 170 `),n(3,"div",38),e(4,` 171 `),n(5,"span",39),e(6,"COST: "),a(),e(7,` 172 `),n(8,"span",40),e(9),D(10,"sprocketCurrency"),a(),e(11,` 173 `),a(),e(12,` 174 `),a(),e(13,` 175 `)),i&2){let t=m().$implicit;l(9),x(` 176 `,M(10,1,t.price),` 177 `)}}function st(i,o){i&1&&(e(0,` 178 `),n(1,"span"),e(2,","),a(),e(3,` 179 `))}function dt(i,o){if(i&1&&(e(0),c(1,st,4,0)),i&2){let t=o.$implicit,s=o.$index,r=o.$count;x(` 180 `,t.description),l(),p(s!==r-1?1:-1)}}function ct(i,o){if(i&1&&(e(0,` 181 `),n(1,"div",37),e(2,` 182 `),P(3),e(4,` 183 `),n(5,"div",38),e(6,` 184 `),n(7,"span",39),e(8,"Grade: "),a(),e(9,` 185 `),n(10,"span",40),e(11,` 186 `),F(12,dt,2,2,null,null,T),a(),e(14,` 187 `),a(),e(15,` 188 `),b(),e(16,` 189 `),a(),e(17,` 190 `)),i&2){let t=m().$implicit;l(12),I(t.grades)}}function pt(i,o){i&1&&(e(0,` 191 `),n(1,"span"),e(2,","),a(),e(3,` 192 `))}function _t(i,o){if(i&1&&(e(0),c(1,pt,4,0)),i&2){let t=o.$implicit,s=o.$index,r=o.$count;x(` 193 `,t.description),l(),p(s!==r-1?1:-1)}}function xt(i,o){if(i&1&&(e(0,` 194 `),n(1,"div",37),e(2,` 195 `),P(3),e(4,` 196 `),n(5,"div",38),e(6,` 197 `),n(7,"span",39),e(8),a(),e(9,` 198 `),n(10,"span",40),e(11,` 199 `),F(12,_t,2,2,null,null,T),a(),e(14,` 200 `),a(),e(15,` 201 `),b(),e(16,` 202 `),a(),e(17,` 203 `)),i&2){let t=m().$implicit,s=m(2);l(8),x("",s.fieldName(s.FieldOption.AGE_CLASS),`: 204 `),l(4),I(t.ageClasses)}}function gt(i,o){if(i&1&&(e(0,` 205 `),n(1,"div",37),e(2,` 206 `),n(3,"div",38),e(4,` 207 `),n(5,"span",39),e(6,"AGE: "),a(),e(7,` 208 `),n(8,"span",40),e(9),a(),e(10,` 209 `),a(),e(11,` 210 `),a(),e(12,` 211 `)),i&2){let t=m().$implicit,s=m(2);l(9),$(` 212 `,s.getDobYear(t.birthDateTo),` - 213 `,s.getDobYear(t.birthDateFrom),` 214 `)}}function Ct(i,o){if(i&1&&(e(0,` 215 `),n(1,"div",37),e(2,` 216 `),n(3,"div",38),e(4,` 217 `),n(5,"span",39),e(6,"GRADUATION YEAR: "),a(),e(7,` 218 `),n(8,"span",40),e(9),a(),e(10,` 219 `),a(),e(11,` 220 `),a(),e(12,` 221 `)),i&2){let t=m().$implicit;l(9),$(` 222 `,t.graduationYearFrom,` - 223 `,t.graduationYearTo,` 224 `)}}function ut(i,o){if(i&1&&(e(0,` 225 `),n(1,"div",37),e(2,` 226 `),n(3,"div",38),e(4,` 227 `),n(5,"span",39),e(6,"Training Focus: "),a(),e(7,` 228 `),n(8,"span",40),e(9,` 229 `),E(10,"app-training-focus-pills",46),e(11,` 230 `),a(),e(12,` 231 `),a(),e(13,` 232 `),a(),e(14,` 233 `)),i&2){let t=m().$implicit;l(10),_("focuses",t.trainingFocuses)}}function ht(i,o){i&1&&(e(0,` 234 `),n(1,"span"),e(2,","),a(),e(3,` 235 `))}function ft(i,o){if(i&1&&(e(0),c(1,ht,4,0)),i&2){let t=o.$implicit,s=o.$index,r=o.$count,d=m(4);x(` 236 `,d.getDay(t)),l(),p(s!==r-1?1:-1)}}function St(i,o){if(i&1&&(e(0,` 237 `),n(1,"div",37),e(2,` 238 `),P(3),e(4,` 239 `),n(5,"div",38),e(6,` 240 `),n(7,"span",39),e(8,"Day: "),a(),e(9,` 241 `),n(10,"span",40),e(11,` 242 `),F(12,ft,2,2,null,null,T),a(),e(14,` 243 `),a(),e(15,` 244 `),b(),e(16,` 245 `),a(),e(17,` 246 `)),i&2){let t=m().$implicit;l(12),I(t.daysOfWeek)}}function vt(i,o){i&1&&(e(0,` 247 `),n(1,"span"),e(2,","),a(),e(3,` 248 `))}function Dt(i,o){if(i&1&&(e(0),c(1,vt,4,0)),i&2){let t=o.$implicit,s=o.$index,r=o.$count;x(` 249 `,t.description," "),l(),p(s!==r-1?1:-1)}}function Et(i,o){if(i&1&&(e(0,` 250 `),n(1,"div",37),e(2,` 251 `),P(3),e(4,` 252 `),n(5,"div",38),e(6,` 253 `),n(7,"span",39),e(8,"Season: "),a(),e(9,` 254 `),n(10,"span",40),e(11,` 255 `),F(12,Dt,2,2,null,null,T),a(),e(14,` 256 `),a(),e(15,` 257 `),b(),e(16,` 258 `),a(),e(17,` 259 `)),i&2){let t=m().$implicit;l(12),I(t.seasons)}}function yt(i,o){if(i&1&&(e(0,` 260 `),n(1,"a",47),e(2,` 261 View 262 `),a(),e(3,` 263 `)),i&2){let t=m().$implicit,s=m(2);l(),_("routerLink",R(2,Ie))("queryParams",N(3,Le,s.programID,t.registrationID))}}function Pt(i,o){if(i&1&&(e(0,` 264 `),n(1,"div",48),e(2,` 265 Please 266 `),n(3,"a",49),e(4,` 267 Log In 268 `),a(),e(5,` 269 to view player eligibility and register 270 `),a(),e(6,` 271 `)),i&2){let t=m().$implicit,s=m(2);l(3),_("routerLink",R(2,Ie))("queryParams",N(3,Le,s.programID,t.registrationID))}}function bt(i,o){if(i&1&&(e(0,` 272 `),n(1,"tr"),e(2,` 273 `),n(3,"td"),e(4,` 274 `),n(5,"div",34),e(6,` 275 `),n(7,"div",35),e(8,` 276 `),n(9,"div",36),e(10,` 277 `),n(11,"h3"),e(12),a(),e(13,` 278 `),c(14,Xe,4,1),E(15,"hr"),e(16,` 279 `),a(),e(17,` 280 `),a(),e(18,` 281 `),c(19,Ze,8,3),n(20,"div",35),e(21,` 282 `),c(22,et,14,4),c(23,it,15,5),c(24,at,14,2),c(25,lt,15,2),c(26,mt,14,3),n(27,"div",37),e(28,` 283 `),n(29,"div",38),e(30,` 284 `),n(31,"span",39),e(32,"Gender: "),a(),e(33,` 285 `),n(34,"span",40),e(35),a(),e(36,` 286 `),a(),e(37,` 287 `),a(),e(38,` 288 `),c(39,ct,18,0),c(40,xt,18,1),c(4
2881,gt,13,2),c(42,Ct,13,2),c(43,ut,15,1),c(44,St,18,0),c(45,Et,18,0),a(),e(46,` 289 `),n(47,"div",41),e(48,` 290 `),n(49,"div",36),e(50,` 291 `),c(51,yt,4,6)(52,Pt,7,6),a(),e(53,` 292 `),a(),e(54,` 293 `),a(),e(55,` 294 `),a(),e(56,` 295 `),a(),e(57,` 296 `)),i&2){let t=o.$implicit,s=m(2);l(12),y((t==null?null:t.registrationLabelOverride)||t.name),l(2),p(t.shortDescription?14:-1),l(5),p(t.details?19:-1),l(3),p(t.endDate?22:-1),l(),p(t.sessionOverrideStartDate?23:-1),l(),p(t.startTime?24:-1),l(),p(t.location?25:-1),l(),p(t.price?26:-1),l(9),x(` 297 `,t.gender?t.gender:"All",` 298 `),l(4),p(t.grades!=null&&t.grades.length?39:-1),l(),p(t.ageClasses!=null&&t.ageClasses.length?40:-1),l(),p(t.birthDateFrom&&t.birthDateTo?41:-1),l(),p(t.graduationYearFrom&&t.graduationYearTo?42:-1),l(),p(t.trainingFocuses!=null&&t.trainingFocuses.length?43:-1),l(),p(t.daysOfWeek!=null&&t.daysOfWeek.length?44:-1),l(),p((t.seasons==null?null:t.seasons.length)>0?45:-1),l(6),p(s.isAuthed?51:52)}}function wt(i,o){i&1&&(e(0,` 299 `),n(1,"h4"),e(2,"No open registrations for the following program"),a(),e(3,` 300 `))}function Tt(i,o){if(i&1){let t=u();e(0,` 301 `),n(1,"div",4),e(2,` 302 `),n(3,"section",5),e(4,` 303 `),c(5,Ve,3,1),c(6,Ye,4,1),n(7,"h1",6),e(8),a(),e(9,` 304 `),c(10,Ae,11,4),n(11,"div",7),e(12,` 305 `),c(13,Oe,5,5),c(14,$e,4,3),a(),e(15,` 306 `),E(16,"hr"),e(17,` 307 `),c(18,Re,8,3),a(),e(19,` 308 `),n(20,"section",8),e(21,` 309 `),c(22,Qe,19,11),n(23,"p-table",9),L("onLazyLoad",function(r){g(t);let d=m();return C(d.search(r))}),e(24,` 310 `),O(25,bt,58,17,"ng-template",10),e(26,` 311 `),O(27,wt,4,0,"ng-template",11),e(28,` 312 `),a(),e(29,` 313 `),a(),e(30,` 314 `),a(),e(31,` 315 `)}if(i&2){let t=m();l(5),p(t.program.image?5:-1),l(),p(t.program.programCategory?6:-1),l(2),y(t.program.name),l(2),p(t.program.eligibilityEndDate?10:-1),l(3),p(t.program.linkURL?13:-1),l(),p(t.program.pageBuilderPageID?14:-1),l(4),p(t.program.detailText?18:-1),l(4),p(t.hasFilters()?22:-1),l(),_("value",t.registrations)("lazy",!0)("paginator",!0)("alwaysShowPaginator",!1)("totalRecords",t.totalRecords)("rows",50)("loading",t.tableLoading)}}var Me=(()=>{let o=class o{constructor(s,r,d,v){this.authService=s,this.siteDataService=r,this.programDetailService=d,this.route=v,this.loading=!0,this.totalRecords=0,this.daysOfWeek=le,this.practiceFacilities=[],this.genders=re,this.seasons=[],this.grades=[],this.ageClasses=[],this.trainingFocuses=[],this.showFilters=!1,this.isAuthed=!1,this.enableBirthYearFilter=!1,this.enableGraduationYearFilter=!1,this.tableLoading=!1,this.minBirthYear=ae,this.maxBirthYear=oe,this.FieldOption=se,this.unsubscribe$=new U}ngOnInit(){this.authService.isAuthenticated().subscribe({next:s=>this.isAuthed=s}),this.route.params.subscribe(s=>{s.id&&(this.programID=+s.id,j({searchFilters:this.programDetailService.getProgramSearchFilters([this.programID]),fieldOptions:this.siteDataService.getClubFieldOptions(this.isAuthed)}).subscribe({next:r=>{r.searchFilters.genders?.length||(this.genders=void 0),this.seasons=r.searchFilters.season,this.grades=r.searchFilters.grades,this.ageClasses=r.searchFilters.ageClasses?.sort((d,v)=>d.value-v.value),this.trainingFocuses=r.searchFilters.trainingFocuses,this.practiceFacilities=r.searchFilters.locations,this.enableBirthYearFilter=r.searchFilters.hasBirthDateFilters,this.enableGraduationYearFilter=r.searchFilters.hasGraduationYearFilters,this.clubFieldOptions=r.fieldOptions,this.resetFilters()}}))})}resetFilters(){this.programDetailService.searchParams=new we,this.programDetailService.searchParams.page=1,this.programDetailService.searchParams.rows=50,this.programDetailService.searchParams.includeProgram=!0,this.totalRecords=0,this.run()}run(){this.search()}search(s=null){this.tableLoading=!0;let r=this.programDetailService.searchParams;s&&(r.page=s.first/r.rows+1),this.programDetailService.getProgramRegistrationSearch([this.programID],r).subscribe({next:d=>{this.totalRecords=d.count,this.registrations=d.registrations,d.programs&&d.programs.length>
3150&&(this.program=d.programs[0],this.showFilters=this.totalRecords>9,this.programDetailService.searchParams.includeProgram=!1,this.enableBirthYearFilter=this.registrations.some(v=>v.birthDateFrom||v.birthDateTo)),this.loading=!1,this.tableLoading=!1,this.siteDataService.hideSiteLoader()},error:()=>{this.loading=!1,this.tableLoading=!1,this.siteDataService.showSiteErrorAlertDefaultGET()}})}formatTime(s){return(0,Fe.default)(s,"HH:mm:ss").format("h:mm A").replace("m","")}hasFilters(){return this.showFilters&&(this.seasons?.length>1||this.daysOfWeek?.length>1||this.practiceFacilities?.length>1||this.enableBirthYearFilter||this.enableGraduationYearFilter||this.genders?.length>1||this.grades?.length>1||this.ageClasses?.length>1||this.trainingFocuses?.length>1)}getDay(s){return ne(s)}getDobYear(s){let r=new Date,d=new Date(s),v=r.getFullYear()-d.getFullYear(),z=d.getMonth(),H=r.getMonth();return H<z||H===z&&r.getDate()<d.getDate()?v-1:v}fieldName(s){return this.clubFieldOptions.find(r=>r.fieldOptionID===s).fieldName}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};o.\u0275fac=function(r){return new(r||o)(w(me),w(de),w(Y),w(ee))},o.\u0275cmp=q({type:o,selectors:[["app-program-details"]],standalone:!1,decls:6,vars:1,consts:[["dobFromInput",""],["graduationYearInput",""],[1,"main"],[1,"container-67"],[1,"card","quick-promo-content"],[1,"registration-details"],[1,"text-h2","mb-3"],[1,"nowrap"],[1,"player-details"],[1,"table","table-striped","table-sm",3,"onLazyLoad","value","lazy","paginator","alwaysShowPaginator","totalRecords","rows","loading"],["pTemplate","body"],["pTemplate","emptymessage"],["placholder","Program Image",1,"quick-promo-hero-img","mb-5",3,"src"],["ngClass","text-h5 mb-0"],[1,"end-date"],[1,"small-label"],[1,"btn","btn-m","mr-1",3,"href","target"],["customCssClass","btn btn-m mr-1",3,"title","customURL","openLinkInNewTab"],[1,"registration-custom-text-row"],[1,"registration-custom-text",3,"innerHTML"],[1,"search-filter-wrapper"],[3,"adminFilterReset","adminFilterSearch","showAdvanced","showLabels"],["primary",""],[1,"col-auto","pr-0"],[1,"form-group"],["placeholder","All","appendTo","body",3,"ngModelChange","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel"],["for","search"],["optionLabel","label","placeholder","All","appendTo","body",3,"ngModelChange","autofocusFilter","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel"],["view","year","dateFormat","yy","inputId","yearpicker","appendTo","body",3,"ngModelChange","ngModel","defaultDate","minDate","maxDate"],[1,"resetBtn",3,"click"],[1,"far","fa-redo-alt"],["view","year","dateFormat","yy","inputId","yearpicker","appendTo","body",3,"ngModelChange","ngModel"],["appendTo","body",3,"ngModelChange","ngModel","options"],["optionLabel","label","placeholder","All","appendTo","body",3,"ngModelChange","ngModel","options","maxSelectedLabels","selectedItemsLabel"],[1,"card","text-left"],[1,"row","pt-3"],[1,"col-12"],[1,"col-6"],[1,"mb-2","text-medium","row"],[1,"text-uppercase","text-medium","col-5"],[1,"fw-500","col"],[1,"row","pt-2"],[1,"row"],[1,"col-12",3,"innerHTML"],[1,"fal","fa-location-dot","mr-2"],["target","_blank","rel","noopener noreferrer",3,"href"],[3,"focuses"],[1,"btn","btn-primary",3,"routerLink","queryParams"],[1,"bg-blue-lt","border-radius","py-2","px-3"],[3,"routerLink","queryParams"]],template:function(r,d){r&1&&(n(0,"div",2),e(1,` 316 `),n(2,"div",3),e(3,` 317 `),c(4,Tt,32,15),a(),e(5,` 318`),a()),r&2&&(l(4),p(d.loading?-1:4))},dependencies:[De,K,X,Z,te,ie,Se,ue,he,ve,Ce,xe,pe,ge,Q,ce,_e,fe],styles:[".quick-promo-hero-img[_ngcontent-%COMP%]{display:block;margin:0 auto} .quick-promo-content .table p{margin-bottom:.875rem}"]});let i=o;return i})();var ke=(()=>{let o=class o{};o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=V({type:o}),o.\u0275inj=W({imports:[G.forChild([{path:":id",component:Me}]),G]});let i=o;return i})();var Ci=(()=>{let o=class o{};o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=V({type:o}),o.\u0275inj=W({providers:[Y,Pe],imports:[Ee,ke,ye,be]});let i=o;return i})();export{Ci as ProgramDetailsModule};
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.