PageSourceSearch

https://midlandsoccerclub.com/chunk-VBEB5WWU.js

js midlandsoccerclub.com collected 2026-10-09 22:40:05 UTC 197,161 bytes, 1,549 lines download raw bytes

1import{c as Oi,d as yt,e as Ge,f as Yi,g as $i}from"./chunk-JOMDNRWO.js";import"./chunk-44OHTKPY.js";import{a as Bi}from"./chunk-BRA35DTV.js";import{e as Gi}from"./chunk-WYPAU65U.js";import{a as Wi}from"./chunk-QD4M6VLD.js";import"./chunk-OETXZY34.js";import"./chunk-MORY5OOD.js";import"./chunk-RCQFVG4N.js";import"./chunk-U4LHYVR2.js";import"./chunk-IJCOGGVP.js";import"./chunk-PHZJLURG.js";import"./chunk-ZLBN6FZV.js";import"./chunk-BGAAGYCA.js";import"./chunk-YESMKLGV.js";import"./chunk-RBGYAKJK.js";import"./chunk-44ZNT6MQ.js";import"./chunk-3DS6GUXH.js";import"./chunk-34RB33U7.js";import"./chunk-PMGCU7IV.js";import"./chunk-5QYJ3SBW.js";import"./chunk-OVWSJLKC.js";import{g as Ui}from"./chunk-QLS2HGKB.js";import"./chunk-KOPGZV6B.js";import"./chunk-BTQPKA7U.js";import"./chunk-D5WNKLON.js";import{a as Li}from"./chunk-FLFERWGO.js";import"./chunk-HETGIIFW.js";import{a as nt}from"./chunk-QUG4HHXZ.js";import"./chunk-I2Y7UB4V.js";import{b as Vi}from"./chunk-PSOULVZL.js";import"./chunk-XAXLMUF6.js";import"./chunk-RXHK7XE4.js";import{k as Ni}from"./chunk-O3BD2LYL.js";import"./chunk-6ORYOOUQ.js";import"./chunk-ZB44PIZA.js";import"./chunk-YBFQQSLW.js";import"./chunk-MB6YAV2B.js";import"./chunk-ADMKBOBN.js";import"./chunk-LCPPMNQ3.js";import{a as ge}from"./chunk-BT6MT7GL.js";import"./chunk-OBZUIDEP.js";import"./chunk-AEK7Z5QZ.js";import{a as Ee}from"./chunk-4CVZBQNN.js";import"./chunk-IAGBH4HM.js";import"./chunk-MJKUV2I5.js";import"./chunk-4T73AMAL.js";import"./chunk-G2OHGTWE.js";import"./chunk-NAW6KKAQ.js";import"./chunk-GNX3F6NH.js";import"./chunk-VFXJ4ZBD.js";import"./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{a as Ii}from"./chunk-Z3AXU4EF.js";import"./chunk-TP3A6IN2.js";import"./chunk-XNFXA3ZT.js";import{a as jt}from"./chunk-QLTRNXEK.js";import"./chunk-TEFEWVO6.js";import{a as Pi}from"./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"./chunk-CYDDDATF.js";import"./chunk-GWQPV7EH.js";import"./chunk-RQ74XYI3.js";import"./chunk-3IFGWXMA.js";import"./chunk-EME7BUOO.js";import{a as ae}from"./chunk-JKMNVQUA.js";import{j as wi,n as Ai,q as ki}from"./chunk-QH3IRCHN.js";import"./chunk-PLEH3NAH.js";import"./chunk-GXCJ5QS4.js";import{b as oe}from"./chunk-4D5SN44G.js";import{b as Ei,c as Ti,d as bi,h as Ri,i as Fi,j as Mi}from"./chunk-22ACI5KU.js";import"./chunk-FXUQQQIE.js";import"./chunk-VVVN3YIZ.js";import{b as Di}from"./chunk-FSUBAQYH.js";import"./chunk-7CVCGK4Q.js";import"./chunk-FWW3IJT2.js";import{a as Y}from"./chunk-B6LCWWQX.js";import"./chunk-HYGNXZJR.js";import{a as it}from"./chunk-B6XXRKU5.js";import"./chunk-6Q5DDO7R.js";import"./chunk-RW2MVE4O.js";import"./chunk-3ZVRFUA4.js";import{d as vi,e as Te,g as Si,k as xt}from"./chunk-H4PCL6BZ.js";import{a as Ht}from"./chunk-NXTJBJRP.js";import"./chunk-U22BTVEZ.js";import{$b as Fe,$f as yi,$g as fi,Ac as Xt,Ae as ri,Ce as tt,Ec as he,Ee as li,Ff as fe,Gb as ie,Gc as Ke,Hc as Xe,Hd as ce,Je as si,Kb as Ae,Ke as di,Lc as Zt,Le as ci,Mb as Ce,Mc as ei,Ne as mi,Ob as K,Pe as pi,Sc as Ze,Ue as _i,Vb as Re,Wc as ti,We as ui,Xc as ii,Zc as ni,_f as xi,ag as Ci,b as Pe,bg as hi,cc as Jt,d as Q,ed as ai,jc as Kt,k as z,kd as de,kh as gi,lb as zt,lc as Me,mb as qt,ve as H,we as oi,xa as Qt,xb as ye,ye as et}from"./chunk-X5J6QTCG.js";import{$ as We,$a as p,Ad as ut,Db as $,E as It,Fa as s,Fb as L,Fh as Ut,Gg as Gt,Hg as Yt,Ib as e,Jb as f,Ka as E,Kb as S,Lb as le,Lc as At,Ma as V,Na as Qe,Ni as Wt,Pf as Je,Qb as b,Rb as P,Sa as T,Sb as I,Sc as Rt,Th as k,U as De,Uc as Ft,Ug as $t,W as mt,Wc as se,Xa as ue,Xb as wt,Yc as Mt,bb as _,be as te,bg as we,cc as ne,d as be,db as w,dc as O,di as xe,eb as A,ec as _t,fa as y,fb as R,fj as B,ga as C,gb as u,hb as o,ib as a,jb as h,k as N,lc as F,lf as kt,ma as je,mc as Z,mf as Nt,nb as pe,nc as W,nf as Vt,ob as _e,pb as U,pj as G,q as Pt,qb as D,qc as J,sb as v,tb as c,u as j,vd as q,xb as ze,xd as ee,xf as Lt,ya as pt,yb as qe,yd as Ie,yf as Ot,zb as He,zg as Bt}from"./chunk-SMW7PHYX.js";import{a as Tt,b as bt}from"./chunk-BMIYOSOG.js";var rn=i=>({active:i});function ln(i,d){if(i&1&&(e(0,`
2                            `),o(1,"app-pill",21),e(2,`
3                            `),a(),e(3,`
4                          `)),i&2){let t=d.$implicit;s(),u("text",t.firstName+" "+t.lastName)}}function sn(i,d){if(i&1&&(e(0,`
5                        `),o(1,"div",20),e(2,`
6                          `),A(3,ln,4,1,null,null,w),a(),e(5,`
7                      `)),i&2){let t=c().$implicit;s(3),R(t.players)}}function dn(i,d){if(i&1&&(e(0,`
8                    `),o(1,"div",17),e(2,`
9                      `),o(3,"div",18),e(4,`
10                        `),o(5,"div",19),e(6),a(),e(7,`
11                      `),a(),e(8,`
12                      `),p(9,sn,6,0),a(),e(10,`
13                  `)),i&2){let t=d.$implicit;s(6),le("",t.firstName," ",t.lastName,`
14                        `),s(3),_(t.players.length>0?9:-1)}}function cn(i,d){i&1&&h(0,"i",11)}function mn(i,d){if(i&1){let t=D();e(0,`
15    `),o(1,"div"),e(2,`
16      `),o(3,"div",1),e(4,`
17        `),o(5,"div",2),e(6,`
18          `),h(7,"i",3),e(8,`
19        `),a(),e(9,`
20        `),o(10,"div",4),e(11,`
21          `),o(12,"div",5),e(13,"Find an existing member"),a(),e(14,`
22          `),o(15,"div",6),e(16,`
23            `),o(17,"p"),e(18,"Enter at least the first two characters of member's Last Name to get results."),a(),e(19,`
24            `),o(20,"label",7),e(21,"Parent/Player Last Name"),a(),e(22,`
25            `),o(23,"div"),e(24,`
26              `),o(25,"span",8),e(26,`
27                `),o(27,"p-autoComplete",9),v("completeMethod",function(l){y(t);let r=c();return C(r.search(l))})("onSelect",function(l){y(t);let r=c();return C(r.selectMember(l))}),e(28,`
28                  `),T(29,dn,11,3,"ng-template",10),e(30,`
29                `),a(),e(31,`
30                `),p(32,cn,1,0,"i",11),a(),e(33,`
31            `),a(),e(34,`
32          `),a(),e(35,`
33        `),a(),e(36,`
34      `),a(),e(37,`
35      `),o(38,"div",12),e(39,`
36        `),o(40,"div",2),e(41,`
37          `),h(42,"i",13),e(43,`
38        `),a(),e(44,`
39        `),o(45,"div",4),e(46,`
40          `),o(47,"div",5),e(48,"Create a new club account"),a(),e(49,`
41          `),o(50,"div",6),e(51,`
42            `),o(52,"p"),e(53,`If the player and/or their family are new to the club, you can create a new account and
43            register the player at the same time.`),a(),e(54,`
44          `),a(),e(55,`
45          `),o(56,"button",14),v("click",function(){y(t);let l=c();return C(l.showCreateParent())}),e(57,"Create New Account"),a(),e(58,`
46        `),a(),e(59,`
47      `),a(),e(60,`
48      `),o(61,"div",15),e(62,`
49        `),o(63,"button",16),v("click",function(){y(t);let l=c();return C(l.close.emit())}),e(64,"Cancel"),a(),e(65,`
50      `),a(),e(66,`
51    `),a(),e(67,`
52  `)}if(i&2){let t=c();s(27),u("suggestions",t.parentList)("showEmptyMessage",!0)("emptyMessage","No members found")("forceSelection",!0)("delay",1e3),s(5),_(t.searching?-1:32)}}function pn(i,d){i&1&&(e(0,`
53                `),o(1,"div",28),e(2,`
54                  `),o(3,"app-pill",29),e(4,`
55                  `),a(),e(5,`
56                `),a(),e(6,`
57              `))}function _n(i,d){if(i&1){let t=D();e(0,`
58          `),o(1,"div",24),e(2,`
59            `),o(3,"p-radioButton",25),I("ngModelChange",function(l){y(t);let r=c(3);return P(r.selectedPlayerID,l)||(r.selectedPlayerID=l),C(l)}),e(4,`
60            `),a(),e(5,`
61            `),o(6,"label",26),e(7,`
62              `),o(8,"div",27),e(9,`
63                `),o(10,"span"),e(11),a(),e(12,` |
64                `),o(13,"span"),e(14),a(),e(15,` |
65                `),o(16,"span"),e(17),a(),e(18,`
66              `),a(),e(19,`
67              `),p(20,pn,7,0),a(),e(21,`
68          `),a(),e(22,`
69        `)}if(i&2){let t=d.$implicit,n=c(3);s(),u("ngClass",O(10,rn,n.selectedPlayerID===t.playerID)),s(2),u("value",t.playerID),b("ngModel",n.selectedPlayerID),u("inputId",t.playerID)("disabled",t.registered),s(3),u("for",t.playerID),s(5),f(t.firstName+" "+t.lastName),s(3),S("Gender: ",t.gender),s(3),S("DOB: ",t.dob," "),s(3),_(t.registered?20:-1)}}function un(i,d){if(i&1&&(e(0,`
70        `),A(1,_n,23,12,null,null,w)),i&2){let t=c(2);s(),R(t.selectedParent.players)}}function xn(i,d){i&1&&(e(0,`
71        `),o(1,"div",30),e(2,`
72          `),h(3,"img",31),e(4,`
73          `),o(5,"p",32),e(6,`
74            This user has no associated players,`),h(7,"br"),e(8,`
75            click the 'Add a new player' button to add a player.
76          `),a(),e(9,`
77        `),a(),e(10,`
78      `))}function yn(i,d){if(i&1){let t=D();e(0,`
79    `),o(1,"div",22),e(2,`
80      `),p(3,un,3,0)(4,xn,11,0),o(5,"button",14),v("click",function(){y(t);let l=c();return C(l.showCreatePlayer())}),e(6,"Add a new player"),a(),e(7,`
81    `),a(),e(8,`
82    `),o(9,"div",15),e(10,`
83      `),o(11,"button",16),v("click",function(){y(t);let l=c();return C(l.close.emit())}),e(12,"Cancel"),a(),e(13,`
84      `),o(14,"button",23),v("click",function(){y(t);let l=c();return C(l.registerPlayer())}),e(15,`
85        Register In Tryout
86      `),a(),e(16,`
87    `),a(),e(17,`
88  `)}if(i&2){let t=c();s(3),_((t.selectedParent==null||t.selectedParent.players==null?null:t.selectedParent.players.length)>0?3:4),s(11),u("disabled",!t.selectedPlayerID)}}function Cn(i,d){if(i&1){let t=D();e(0,`
89        `),o(1,"app-dynamic-form",34),v("onCancel",function(){y(t);let l=c(2);return C(l.close.emit())})("onSubmit",function(l){y(t);let r=c(2);return C(r.createUser(l))}),e(2,`
90          `),o(3,"app-dynamic-form-field",35),e(4,`
91          `),a(),e(5,`
92          `),o(6,"app-dynamic-form-field",36),e(7,`
93          `),a(),e(8,`
94          `),o(9,"app-dynamic-form-field",37),e(10,`
95          `),a(),e(11,`
96          `),o(12,"app-dynamic-form-field",38),e(13,`
97          `),a(),e(14,`
98        `),a(),e(15,`
99      `)}if(i&2){let t=c(2);
99s(),u("fields",t.fields)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("buttonsPosition","spread")}}function hn(i,d){if(i&1&&(e(0,`
100    `),o(1,"div",33),e(2,`
101      `),o(3,"h5"),e(4,"Parent Information"),a(),e(5,`
102      `),p(6,Cn,16,6),a(),e(7,`
103  `)),i&2){let t=c();s(6),_(t.fields?6:-1)}}function fn(i,d){if(i&1){let t=D();e(0,`
104    `),o(1,"app-add-player",39),v("cancel",function(){y(t);let l=c();return C(l.close.emit())})("add",function(l){y(t);let r=c();return C(r.registerPlayer(l))}),e(2,`
105    `),a(),e(3,`
106  `)}if(i&2){let t=c();s(),u("clubUserID",t.selectedParent==null?null:t.selectedParent.clubUserID)}}var rt=(()=>{let d=class d{constructor(n,l,r,m,x){this.siteDataService=n,this.teamService=l,this.tryoutService=r,this.formService=m,this.userService=x,this.unsubscribe$=new be,this.close=new je,this.selectPlayerModal=!1,this.createPlayerModal=!1,this.createParentModal=!1,this.genderOptions=Gt,this.Permission=k,this.searching=!1}search(n){n?.query?.length>1?(this.searching=!0,this.tryoutService.getRegistrationUsers(this.registrationID,n.query).subscribe({next:l=>{this.parentList=[],l.forEach(r=>{let m=this.parentList.find(x=>x.clubUserID===r.id);m===void 0&&(m={clubUserID:r.id,firstName:r.firstName,lastName:r.lastName,players:[]},this.parentList.push(m)),r.playerLastName&&m.players.push({playerID:r.playerID,firstName:r.playerFirstName,lastName:r.playerLastName,registered:r.registered,gender:r.playerGender,dob:r.playerBirthdate})}),this.searching=!1},error:()=>{this.searching=!1,this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})):this.parentList=[]}registerPlayer(n){this.teamService.registerPlayers(this.registrationID,[n?.playerID||this.selectedPlayerID]).subscribe({next:()=>{this.close.emit(),this.siteDataService.showSiteSuccessAlert("Player registration saved successfully.")},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request.")}})}showAddPlayer(n){this.registrationID=n,this.selectedParent=void 0,this.selectedPlayerID=void 0}showCreatePlayer(){this.createPlayerModal=!0}showCreateParent(){(this.fields?N(null):this.userService.getUserCreateMetadata()).subscribe(n=>{n&&(this.fields=n.fields),this.createParentModal=!0})}createUser(n){this.userService.createClubUser(n,!0).subscribe({next:l=>{this.selectedParent=l,this.siteDataService.showSiteSuccessAlert("Parent created successfully"),this.createParentModal=!1,this.formService.hideFormLoader(),this.showCreatePlayer()},error:l=>{this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert(l.error?.message??"There was a problem saving this user.")}})}selectMember(n){this.selectedParent=n.value,this.selectPlayerModal=!0}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(E(G),E(fe),E(Y),E(Fe),E(Ni))},d.\u0275cmp=V({type:d,selectors:[["app-add-player-to-tryout"]],inputs:{registrationID:"registrationID"},outputs:{close:"close"},standalone:!1,decls:6,vars:9,consts:[["header","Add player to tryout","styleClass","standardWidthDialog",3,"modal","showHeader","draggable","closable","visible"],[1,"row","border-bottom","pb-3","mb-3"],[1,"col-auto"],[1,"fa-solid","fa-magnifying-glass","text-blue","icon-with-circle","fa-width-auto","text-large"],[1,"col"],[1,"text-navy","text-default"],[1,"text-medium"],[1,"fw-800"],[1,"input-icon-wrapper"],["field","name","appendTo","body",3,"completeMethod","onSelect","suggestions","showEmptyMessage","emptyMessage","forceSelection","delay"],["pTemplate","item"],[1,"far","fa-search"],[1,"row","mb-3"],[1,"fa-duotone","fa-user-plus","text-blue","icon-with-circle","fa-width-auto","text-large"],[1,"btn","btn-large",3,"click"],[1,"row","form-action","no-gutters","justify-content-between"],[1,"btn",3,"click"],[1,"parent-search-results-row"],[1,"mr-5"],[1,"line-height-1"],[1,"parent-search-results-row--players"],[3,"text"],[1,"my-3"],[1,"btn","btn-primary",3,"click","disabled"],[1,"radio-group",3,"ngClass"],["name","selectPlayer",3,"ngModelChange","value","ngModel","inputId","disabled"],[1,"row","d-flex","full-width",3,"for"],[1,"col","d-flex","justify-content-between","pr-5","mr-5"],[1,"col-auto","right"],["text","Registered"],[1,"center"],["src","/assets/img/icon-empty-player.png",1,"mt-2","mb-2",2,"height","70px"],[1,"mb-4","text-medium"],[1,"horizontal-form"],["formID","player-basic-info-form",3,"onCancel","onSubmit","fields","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","firstName","autoComplete","off"],["fieldName","lastName","autoComplete","off"],["fieldName","email","autoComplete","off"],["fieldName","cellPhone","autoComplete","off"],["saveButtonText","Register In Tryout",3,"cancel","add","clubUserID"]],template:function(l,r){l&1&&(o(0,"p-dialog",0),e(1,`
107  `),p(2,mn,68,6),p(3,yn,18,2),p(4,hn,8,1),p(5,fn,4,1),a()),l&2&&(u("modal",!0)("showHeader",!0)("draggable",!1)("closable",!1)("visible",!0),s(2),_(!r.selectPlayerModal&&!r.createPlayerModal&&!r.createParentMod
107al?2:-1),s(),_(r.selectPlayerModal&&!r.createPlayerModal?3:-1),s(),_(r.createParentModal&&!r.createPlayerModal?4:-1),s(),_(r.createPlayerModal&&r.selectedParent?5:-1))},dependencies:[At,ce,de,Q,z,te,Ae,ie,Xt,ai,wi],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)}.parent-search-results-row[_ngcontent-%COMP%]{width:450px;display:flex;align-items:center;justify-content:space-between;padding:5px 0}.parent-search-results-row[_ngcontent-%COMP%]   .parent-search-results-row--players[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex;justify-content:flex-end;line-height:1.4em}",".team-details-window[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;border:var(--border);border-radius:8px}.team-details-window[_ngcontent-%COMP%]   .text-largest[_ngcontent-%COMP%]{font-size:1.6rem}.team-details-window[_ngcontent-%COMP%]   .large-number[_ngcontent-%COMP%]{font-size:3.75rem;display:block;line-height:4rem}"]});let i=d;return i})();var Sn=["fileUploadField"],Dn=i=>["/admin/players",i,"profile","player-info"];function En(i,d){if(i&1&&(e(0,`
108        `),h(1,"app-split-button",24),e(2,`
109      `)),i&2){let t=c(2);s(),u("menuItems",t.actionMenuItems)}}function Tn(i,d){if(i&1&&(e(0,`
110      `),p(1,En,3,1)),i&2){let t=c();s(),_(t.actionMenuItems!=null&&t.actionMenuItems.length?1:-1)}}function bn(i,d){if(i&1){let t=D();e(0,`
111        `),o(1,"div",7),e(2,`
112          `),o(3,"div",8),e(4,`
113            `),o(5,"label"),e(6,"Player Pools"),a(),e(7,`
114            `),o(8,"p-multiSelect",25),I("ngModelChange",function(l){y(t);let r=c();return P(r.selectedPlayerPools,l)||(r.selectedPlayerPools=l),C(l)}),e(9,`
115            `),a(),e(10,`
116          `),a(),e(11,`
117        `),a(),e(12,`
118      `)}if(i&2){let t=c();s(8),u("autofocusFilter",!0),b("ngModel",t.selectedPlayerPools),u("options",t.tryoutService.playerPools)("filter",!0)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} player pools selected")}}function Pn(i,d){i&1&&(e(0,`
119            `),o(1,"tr"),e(2,`
120              `),o(3,"td",32),e(4,`
121                No records found
122              `),a(),e(5,`
123            `),a(),e(6,`
124          `))}function In(i,d){i&1&&(e(0,`
125                `),o(1,"th"),e(2,`
126                  Player Pool
127                `),a(),e(3,`
128              `))}function wn(i,d){if(i&1&&(e(0,`
129                  `),o(1,"th"),e(2),a(),e(3,`
130                `)),i&2){let t=c().$implicit;s(2),S(`
131                    `,t.header,`
132                  `)}}function An(i,d){if(i&1&&(e(0,`
133                  `),o(1,"th",35),e(2),h(3,"p-sortIcon",36),e(4,`
134                  `),a(),e(5,`
135                `)),i&2){let t=c().$implicit,n=c(3);s(),u("pSortableColumn",t.field),ue("aria-label",n.AriaLabels.ACTIVATE_SORT),s(),S(`
136                    `,t.header,`
137                    `),s(),u("field",t.field)}}function Rn(i,d){if(i&1&&(e(0,`
138                `),p(1,wn,4,1)(2,An,6,4)),i&2){let t=d.$implicit;s(),_(t.notSortable===!0?1:2)}}function Fn(i,d){if(i&1&&(e(0,`
139            `),o(1,"tr"),e(2,`
140              `),o(3,"th",33),e(4,`
141                Player Name `),h(5,"p-sortIcon",34),e(6,`
142              `),a(),e(7,`
143              `),p(8,In,4,0),A(9,Rn,3,1,null,null,w),o(11,"th"),e(12),F(13,"date"),a(),e(14,`
144            `),a(),e(15,`
145          `)),i&2){let t=c(2);s(3),ue("aria-label",t.AriaLabels.ACTIVATE_SORT),s(5),_(t.user[t.Permission.PlayerPools]?8:-1),s(),R(t.selectedFields),s(3),le("",t.tryoutDate==null?null:t.tryoutDate.title," ",t.tryoutDate!=null&&t.tryoutDate.tryoutDate?Z(13,4,t.tryoutDate.tryoutDate):"")}}function Mn(i,d){if(i&1&&(e(0,`
146                  `),o(1,"td",39)(2,"a",40),e(3),a()(),e(4,`
147                `)),i&2){let t=c().$implicit;s(2),u("routerLink",O(2,Dn,t.playerID)),s(),f(t.lastName+", "+t.firstName)}}function kn(i,d){if(i&1&&(e(0,`
148                  `),o(1,"td"),e(2),a(),e(3,`
149                `)),i&2){let t=c().$implicit;s(2),f(t.lastName+", "+t.firstName)}}function Nn(i,d){if(i&1&&(e(0,`
150                `),o(1,"td"),e(2),a(),e(3,`
151              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.playerPoolsString)}}function Vn(i,d){if(i&1&&(e(0,`
152                `),o(1,"td"),e(2),a(),e(3,`
153              `)),i&2){let t=c().$implicit,n=c(2);s(2),f(t.playerClubData.ageClass?n.formatAgeGroup(t.playerClubData.ageClass):"")}}function Ln(i,d){if(i&1&&(e(0,`
154                `),o(1,"td"),e(2),a(),e(3,`
155              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.tryoutNumber)}}function On(i,d){if(i&1&&(e(0,`
156                `),o(1,"td"),e(2),a(),e(3,`
157              `)),i&2){let t=c().$implicit;s(2),S(" ",t.playerClubData.position," ")}}function Bn(i,d){if(i&1&&(e(0,`
158                `),o(1,"td"),e(2),a(),e(3,`
159              `)),i&2){let t=c().$implicit;s(2),S(" ",t.playerClubData.secondaryPosition,`
160                `)}}function Gn(i,d){if(i&1&&(e(0,`
161                `),o(1,"td"),e(2),F(3,"date"),a(),e(4,`
162              `)),i&2){let t=c().$implicit;s(2),f(W(3,1,t.dob,"y"))}}function Yn(i,d){if(i&1&&(e(0,`
163                `),o(1,"td"),e(2),F(3,"date"),a(),e(4,`
164              `)),i&2){let t=c().$implicit;s(2),f(W(3,1,t.dob,"M/d/yyyy"))}}function $n(i,d){if(i&1&&(e(0,`
165                `),o(1,"td"),e(2),a(),e(3,`
166              `)),i&2){let t=c().$implicit;s(2),f(t.genderID===1?"Male":t.genderID===2?"Female":"Other")}}function Un(i,d){if(i&1&&(e(0,`
167                `),o(1,"td"),e(2),a(),e(3,`
168              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.grade==null?null:t.playerClubData.grade.description)}}function Wn(i,d){if(i&1&&(e(0,`
169                `),o(1,"td"),e(2),a(),e(3,`
170              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.schoolName)}}function jn(i,d){if(i&1&&(e(0,`
171                `),o(1,"td"),e(2),a(),e(3,`
172              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.addressLine1)}}function Qn(i,d){if(i&1&&(e(0,`
173                `),o(1,"td"),e(2),a(),e(3,`
174              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.addressLine2)}}function zn(i,d){if(i&1&&(e(0,`
175                `),o(1,"td"),e(2),a(),e(3,`
176              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.city)}}function qn(i,d){if(i&1&&(e(0,`
177                `),o(1,"td"),e(2),a(),e(3,`
178              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.state)}}function Hn(i,d){if(i&1&&(e(0,`
179                `),o(1,"td"),e(2),a(),e(3,`
180              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.zip)}}function Jn(i,d){if(i&1&&(e(0,`
181                `),o(1,"td"),e(2),a(),e(3,`
182              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.state)}}function Kn(i,d){if(i&1&&(e(0,`
183                `),o(1,"td"),e(2),a(),e(3,`
184              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.graduationYear)}}function Xn(i,d){if(i&1&&(e(0,`
185                `),o(1,"td"),e(2),a(),e(3,`
186              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.preferredPosition)}}function Zn(i,d){if(i&1&&(e(0,`
187                `),o(1,"td"),e(2),a(),e(3,`
188              `)),i&2){let t=c().$implicit;s(2),S(`
189                `,t.playerClubData.preferredSecondaryPosition)}}function ea(i,d){if(i&1&&(e(0,`
190                `),o(1,"td"),e(2),a(),e(3,`
191              `)),i&2){let t=c().$implicit;s(2),S(`
192                `,t.playerClubData.playedWithUsLastYear?"Yes":"No")}}function ta(i,d){if(i&1&&(e(0,`
193                `),o(1,"td"),e(2),a(),e(3,`
194              `)),i&2){let t=c().$implicit;s(2),S(`
195                `,t.playerClubData.playedWithUsLastYearFollowUp)}}function ia(i,d){if(i&1&&(e(0,`
196                `),o(1,"td"),e(2),a(),e(3,`
197              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.trappedPlayerStatus)}}function na(i,d){if(i&1&&(e(0,`
198                `),o(1,"td"),e(2),a(),e(3,`
199              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.previousClub)}}function aa(i,d){if(i&1&&(e(0,`
200                `),o(1,"td"),e(2),a(),e(3,`
201              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.schoolTeamLevel)}}function oa(i,d){if(i&1&&(e(0,`
202                `),o(1,"td"),e(2),a(),e(3,`
203              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.goalkeeperStatus)}}function ra(i,d){if(i&1&&(e(0,`
204                `),o(1,"td"),e(2),a(),e(3,`
205              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.highSchoolLevel)}}function la(i,d){if(i&1&&(e(0,`
206                `),o(1,"td"),e(2),a(),e(3,`
207              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.playingExperience)}}function sa(i,d){if(i&1&&(e(0,`
208                `),o(1,"td"),e(2),a(),e(3,`
209              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.experienceYears)}}function da(i,d){if(i&1&&(e(0,`
210                `),o(1,"td"),e(2),a(),e(3,`
211              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField1)}}function ca(i,d){if(i&1&&(e(0,`
212                `),o(1,"td"),e(2),a(),e(3,`
213              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField2)}}function ma(i,d){if(i&1&&(e(0,`
214                `),o(1,"td"),e(2),a(),e(3,`
215              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField3)}}function pa(i,d){if(i&1&&(e(0,`
216                `),o(1,"td"),e(2),a(),e(3,`
217              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField4)}}function _a(i,d){if(i&1&&(e(0,`
218                `),o(1,"td"),e(2),a(),e(3,`
219              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField5)}}function ua(i,d){if(i&1&&(e(0,`
220                `),o(1,"td"),e(2),a(),e(3,`
221              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField6)}}function xa(i,d){if(i&1&&(e(0,`
222                `),o(1,"td"),e(2),a(),e(3,`
223              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField7)}}function ya(i,d){if(i&1&&(e(0,`
224                `),o(1,"td"),e(2),a(),e(3,`
225              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField8)}}function Ca(i,d){if(i&1&&(e(0,`
226                `),o(1,"td"),e(2),a(),e(3,`
227              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField9)}}function ha(i,d){if(i&1&&(e(0,`
228                `),o(1,"td"),e(2),a(),e(3,`
229              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customTextField10)}}function fa(i,d){if(i&1&&(e(0,`
230                `),o(1,"td"),e(2),a(),e(3,`
231              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField1)}}function ga(i,d){if(i&1&&(e(0,`
232                `),o(1,"td"),e(2),a(),e(3,`
233              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField2)}}function va(i,d){if(i&1&&(e(0,`
234                `),o(1,"td"),e(2),a(),e(3,`
235              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField3)}}function Sa(i,d){if(i&1&&(e(0,`
236                `),o(1,"td"),e(2),a(),e(3,`
237              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField4)}}function Da(i,d){if(i&1&&(e(0,`
238                `),o(1,"td"),e(2),a(),e(3,`
239              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField5)}}function Ea(i,d){if(i&1&&(e(0,`
240                `),o(1,"td"),e(2),a(),e(3,`
241              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField6)}}function Ta(i,d){if(i&1&&(e(0,`
242                `),o(1,"td"),e(2),a(),e(3,`
243              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField7)}}function ba(i,d){if(i&1&&(e(0,`
244                `),o(1,"td"),e(2),a(),e(3,`
245              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField8)}}function Pa(i,d){if(i&1&&(e(0,`
246                `),o(1,"td"),e(2),a(),e(3,`
247              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.customDropdownField9)}}function Ia(i,d){if(i&1&&(e(0,`
248                `),o(1,"td"),e(2),a(),e(3,`
249              `)),i&2){let t=c().$implicit;s(2),S("",t.playerClubData.customDropdownField10,`
250                `)}}function wa(i,d){if(i&1&&(e(0,`
251                `),o(1,"td"),e(2),a(),e(3,`
252              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField1)}}function Aa(i,d){if(i&1&&(e(0,`
253                `),o(1,"td"),e(2),a(),e(3,`
254              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField2)}}function Ra(i,d){if(i&1&&(e(0,`
255                `),o(1,"td"),e(2),a(),e(3,`
256              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField3)}}function Fa(i,d){if(i&1&&(e(0,`
257                `),o(1,"td"),e(2),a(),e(3,`
258              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField4)}}function Ma(i,d){if(i&1&&(e(0,`
259                `),o(1,"td"),e(2),a(),e(3,`
260              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField5)}}function ka(i,d){if(i&1&&(e(0,`
261                `),o(1,"td"),e(2),a(),e(3,`
262              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField6)}}function Na(i,d){if(i&1&&(e(0,`
263                `),o(1,"td"),e(2),a(),e(3,`
264              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField7)}}function Va(i,d){if(i&1&&(e(0,`
265                `),o(1,"td"),e(2),a(),e(3,`
266              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField8)}}function La(i,d){if(i&1&&(e(0,`
267                `),o(1,"td"),e(2),a(),e(3,`
268              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField9)}}function Oa(i,d){if(i&1&&(e(0,`
269                `),o(1,"td"),e(2),a(),e(3,`
270              `)),i&2){let t=c().$implicit;s(2),f(t.playerClubData.gearField10)}}function Ba(i,d){if(i&1){let t=D();e(0,`
271                    `),o(1,"button",41),v("click",function(){y(t);let l=c().$implicit,r=c(2);return r.selectedPlayerID=l.playerID,C(r.getPlayerData())}),a(),e(2,`
272                  `)}}function Ga(i,d){if(i&1){let t=D();e(0,`
273            `),o(1,"tr"),e(2,`
274              `),o(3,"td"),e(4,`
275                `),p(5,Mn,5,4)(6,kn,4,1),a(),e(7,`
276              `),p(8,Nn,4,1),p(9,Vn,4,1),p(10,Ln,4,1),p(11,On,4,1),p(12,Bn,4,1),p(13,Gn,5,4),p(14,Yn,5,4),p(15,$n,4,1),p(16,Un,4,1),p(17,Wn,4,1),p(18,jn,4,1),p(19,Qn,4,1),p(20,zn,4,1),p(21,qn,4,1),p(22,Hn,4,1),p(23,Jn,4,1),p(24,Kn,4,1),p(25,Xn,4,1),p(26,Zn,4,1),p(27,ea,4,1),p(28,ta,4,1),p(29,ia,4,1),p(30,na,4,1),p(31,aa,4,1),p(32,oa,4,1),p(33,ra,4,1),p(34,la,4,1),p(35,sa,4,1),p(36,da,4,1),p(37,ca,4,1),p(38,ma,4,1),p(39,pa,4,1),p(40,_a,4,1),p(41,ua,4,1),p(42,xa,4,1),p(43,ya,4,1),p(44,Ca,4,1),p(45,ha,4,1),p(46,fa,4,1),p(47,ga,4,1),p(48,va,4,1),p(49,Sa,4,1),p(50,Da,4,1),p(51,Ea,4,1),p(52,Ta,4,1),p(53,ba,4,1),p(54,Pa,4,1),p(55,Ia,4,1),p(56,wa,4,1),p(57,Aa,4,1),p(58,Ra,4,1),p(59,Fa,4,1),p(60,Ma,4,1),p(61,ka,4,1),p(62,Na,4,1),p(63,Va,4,1),p(64,La,4,1),p(65,Oa,4,1),o(66,"td"),e(67,`
277                `),o(68,"div",37),e(69,`
278                  `),p(70,Ba,3,0),o(71,"app-checkbox-button",38),I("valueChange",function(l){let r=y(t).$implicit;return P(r.attended,l)||(r.attended=l),C(l)}),v("valueChange",function(l){let r=y(t).$implicit,m=c(2);return C(m.saveAttendance(r,l))}),a(),e(72,`
279                `),a(),e(73,`
280              `),a(),e(74,`
281            `),a(),e(75,`
282          `)}if(i&2){let t=d.$implicit,n=c(2);s(5),_(t.haveAccess?5:6),s(3),_(n.user[n.Permission.PlayerPools]?8:-1),s(),_(n.columnsShown.ageClass?9:-1),s(),_(n.columnsShown.tryoutNumber?10:-1),s(),_(n.columnsShown.position?11:-1),s(),_(n.columnsShown.secondaryPosition?12:-1),s(),_(n.columnsShown.birthYear?13:-1),s(),_(n.columnsShown.birthDate?14:-1),s(),_(n.columnsShown.genderName?15:-1),s(),_(n.columnsShown.grade?16:-1),s(),_(n.columnsShown.schoolName?17:-1),s(),_(n.columnsShown.addressLine1?18:-1),s(),_(n.columnsShown.addressLine2?19:-1),s(),_(n.columnsShown.city?20:-1),s(),_(n.columnsShown.state?21:-1),s(),_(n.columnsShown.zip?22:-1),s(),_(n.columnsShown.state?23:-1),s(),_(n.columnsShown.graduationYear?24:-1),s(),_(n.columnsShown.preferredPosition?25:-1),s(),_(n.columnsShown.preferredSecondaryPosition?26:-1),s(),_(n.columnsShown.playedWithUsLastYear?27:-1),s(),_(n.columnsShown.playedWithUsLastYearFollowUp?28:-1),s(),_(n.columnsShown.trappedPlayerStatus?29:-1),s(),_(n.columnsShown.previousClub?30:-1),s(),_(n.columnsShown.schoolTeamLevel?31:-1),s(),_(n.columnsShown.goalkeeperStatus?32:-1),s(),_(n.columnsShown.highSchoolLevel?33:-1),s(),_(n.columnsShown.playingExperience?34:-1),s(),_(n.columnsShown.experienceYears?35:-1),s(),_(n.columnsShown.customTextField1?36:-1),s(),_(n.columnsShown.customTextField2?37:-1),s(),_(n.columnsShown.customTextField3?38:-1),s(),_(n.columnsShown.customTextField4?39:-1),s(),_(n.columnsShown.customTextField5?40:-1),s(),_(n.columnsShown.customTextField6?41:-1),s(),_(n.columnsShown.customTextField7?42:-1),s(),_(n.columnsShown.customTextField8?43:-1),s(),_(n.columnsShown.customTextField9?44:-1),s(),_(n.columnsShown.customTextField10?45:-1),s(),_(n.columnsShown.customDropdownField1?46:-1),s(),_(n.columnsShown.customDropdownField2?47:-1),s(),_(n.columnsShown.customDropdownField3?48:-1),s(),_(n.columnsShown.customDropdownField4?49:-1),s(),_(n.columnsShown.customDropdownField5?50:-1),s(),_(n.columnsShown.customDropdownField6?51:-1),s(),_(n.columnsShown.customDropdownField7?52:-1),s(),_(n.columnsShown.customDropdownField8?53:-1),s(),_(n.columnsShown.customDropdownField9?54:-1),s(),_(n.columnsShown.customDropdownField10?55:-1),s(),_(n.columnsShown.gearField1?56:-1),s(),_(n.columnsShown.gearField2?57:-1),s(),_(n.columnsShown.gearField3?58:-1),s(),_(n.columnsShown.gearField4?59:-1),s(),_(n.columnsShown.gearField5?60:-1),s(),_(n.columnsShown.gearField6?61:-1),s(),_(n.columnsShown.gearField7?62:-1),s(),_(n.columnsShown.gearField8?63:-1),s(),_(n.columnsShown.gearField9?64:-1),s(),_(n.columnsShown.gearField10?65:-1),s(5),_(n.showEditButton?70:-1),s(),u("inputLabel","Attended")("inputID",t.playerID),b("value",t.attended)}}function Ya(i,d){if(i&1){let t=D();e(0,`
283    `),o(1,"div",26),e(2,`
284      `),o(3,"div",27),e(4,`
285        `),o(5,"p-table",28),v("onLazyLoad",function(l){y(t);let r=c();return C(r.search(l))}),e(6,`
286          `),T(7,Pn,7,0,"ng-template",29),e(8,`
287          `),T(9,Fn,16,6,"ng-template",30),e(10,`
288          `),T(11,Ga,76,63,"ng-template",31),e(12,`
289        `),a(),e(13,`
290      `),a(),e(14,`
291    `),a(),e(15,`
292  `)}if(i&2){let t=c();s(5),u("columns",t.selectedFields)("value",t.players)("loading",t.loading)("paginator",!0)("alwaysShowPaginator",!1)("totalRecords",t.totalRecords)("rows",100)("lazy",!0)}}function $a(i,d){if(i&1){let t=D();e(0,`
293      `),o(1,"app-dynamic-form",43),v("onSubmit",function(l){y(t);let r=c(2);return C(r.savePlayerClubData(l))})("onCancel",function(){y(t);let l=c(2);return C(l.showPlayerProfileModal=!1)})("onCancel",function(){y(t);let l=c(2);return C(l.showPlayerProfileModal=!1)}),e(2,`
294        `),o(3,"app-dynamic-form-field",44),e(4,`
295        `),a(),e(5,`
296        `),h(6,"app-dynamic-form-field",45),e(7,`
297      `),a(),e(8,`
298    `)}if(i&2){let t=c(2);s(),u("fields",t.playerClubDataFields)("entity",t.playerClubData)("horizontalForm",!1)("contentFieldsMode",!0)("showCancelButton",!0)}}function Ua(i,d){if(i&1&&(e(0,`
299    `),h(1,"app-player-tryout-info",42),e(2,`
300    `),p(3,$a,9,5)),i&2){let t=c();s(),u("player",t.selectedPlayer)("registrationID",t.registrationID),s(2),_(t.showPlayerProfileModal?3:-1)}}function Wa(i,d){if(i&1){let t=D();e(0,`
301      `),o(1,"app-dynamic-form",46),v("onCancel",function(){y(t);let l=c();return C(l.showImport=!1)})("onSubmit",function(){y(t);let l=c();return C(l.import())}),e(2,`
302        `),o(3,"app-dynamic-form-field",47,2),v("onChange",function(l){y(t);let r=c();return C(r.file=l?l.target.files[0]:void 0)}),e(5,`
303        `),a(),e(6,`
304      `),a(),e(7,`
305    `)}if(i&2){let t=c();s(),u("fields",t.importFields)("horizontalForm",!0)("contentFieldsMode",!0),s(2),u("acceptType",t.acceptedTypes)("acceptedFileExtensions",t.acceptedFileExtensions)}}function ja(i,d){if(i&1){let t=D();e(0,`
306  `),o(1,"app-yes-no-modal",48),v("onYesSelect",function(){y(t);let l=c();return C(l.clearNumbers())})("onNoSelect",function(){y(t);let l=c();return C(l.showClear=!1)}),e(2,`
307    `),o(3,"div",49),e(4,`
308      `),o(5,"app-inline-alert",50),e(6),a(),e(7,`
309    `),a(),e(8,`
310  `),a(),e(9,`
311`)}if(i&2){let t=c();s(),u("showModalText",!1)("headerText","Confirm Clear "+t.fieldName(t.FieldOption.TRYOUT_JERSEY_NUMBER)+"s"),s(4),u("isInline",!0),s(),S(`
312        Are you sure you want to clear all existing `,t.fieldName(t.FieldOption.TRYOUT_JERSEY_NUMBER),`s for the players
313        in this tryout registration for all attendance days? This
314        action cannot be undone.
315      `)}}function Qa(i,d){if(i&1){let t=D();e(0,`
316  `),o(1,"app-add-player-to-tryout",51),v("close",function(){y(t);let l=c();return C(l.showAddPlayerModal=!1)}),a(),e(2,`
317`)}if(i&2){let t=c();s(),u("registrationID",t.registrationID)}}var Ji=(()=>{let d=class d{constructor(n,l,r,m,x,g,X,re,st,dt,ct,Dt){this.teamService=n,this.tryoutService=l,this.regService=r,this.siteDataService=m,this.router=x,this.sharedPlayerService=g,this.playerService=X,this.route=re,this.authorizeService=st,this.formService=dt,this.clubService=ct,this.consentGatedStorageService=Dt,this.AriaLabels=we,this.FieldOption=B,this.testUserOption=1,this.minBirthYear=kt,this.maxBirthYear=Nt,this.totalRecords=0,this.page=1,this.rows=100,this.orderBy="playerName ASC",this.loading=!0,this.showTable=!1,this.testUserOptions=Bt,this.genderOptions=Yt,this.showPlayerProfileModal=!1,this.columnsShown={},this.attendanceOptionID=null,this.actionMenuItems=[],this.showAddPlayerModal=!1,this.showClear=!1,this.showImport=!1,this.acceptedFileExtensions=Lt,this.acceptedTypes=Ot,this.Permission=k,this.attendanceOptions=[{label:"All",value:null},{label:"Attended",value:1},{label:"Not Attended",value:2}],this.sportID=0;let Et=this.router.getCurrentNavigation()??this.router.lastSuccessfulNavigation();Et?.extras.state&&(this.regName=Et.extras.state.regName)}formatAgeGroup(n){return Ut(n,this.sportID)}ngOnInit(){this.clubService.getSport().subscribe({next:n=>this.sportID=n.sportID}),this.registrationTryoutDateID=this.route.snapshot.params.registrationTryoutDateID,this.registrationID=this.route.snapshot.params.registrationID,this.authorizeService.getUser().subscribe(n=>{this.user=n}),j({playerPools:!this.tryoutService.playerPools||this.tryoutService.registrationID!==this.registrationID?this.tryoutService.getPlayerPools(this.registrationID):N(null),registration:this.regName?N(null):this.regService.getRegistration(this.registrationID),fieldOptions:this.siteDataService.getClubFieldOptions(),tryoutDates:this.tryoutService.getRegistrationTryoutDates(this.registrationID),grades:this.sharedPlayerService.getGrades()}).subscribe({next:n=>{this.clubFieldOptions=n.fieldOptions,this.tryoutService.clubFieldOptions=this.clubFieldOptions,this.showEditButton=this.fieldEnabled(B.TRYOUT_JERSEY_NUMBER)||this.fieldEnabled(B.PRIMARY_POSITION),n.registration&&(this.regName=n.registration.name),n.tryoutDates&&(this.tryoutDate=n.tryoutDates.find(r=>r.registrationTryoutDateID===+this.registrationTryoutDateID)),n.playerPools&&(this.tryoutService.playerPools=n.playerPools),this.tryoutService.playerPools?.length&&(this.tryoutService.playerPools=this.tryoutService.playerPools.filter(r=>!r.isRemoved)),this.grades=n.grades,this.tryoutService.setAvailableFields(!0,!1,!1,!0),this.tryoutService.selectedFields=this.tryoutService.getDefaultFields(!1,!1,!0);let l=localStorage.getItem("tryout_attendance_filters");if(l){let r=JSON.parse(l);
317this.dobFrom=r.dobFrom?new Date(r.dobFrom):null,this.dobTo=r.dobTo?new Date(r.dobTo):null,this.testUserOption=r.testUserOption,this.genderID=r.genderID,this.selectedGrades=r.selectedGrades,this.selectedPlayerPools=r.selectedPlayerPools,this.attendanceOptionID=r.attendanceOptionID}this.showTable=!0,this.user[k.AddPlayerToTryout]&&this.actionMenuItems.push({label:"Add Player To Tryout",command:()=>{this.showAddPlayerModal=!0}}),this.fieldEnabled(B.TRYOUT_JERSEY_NUMBER)&&this.actionMenuItems.push({label:"Clear "+this.fieldName(B.TRYOUT_JERSEY_NUMBER)+"s",command:()=>{this.showClear=!0}}),this.fieldEnabled(B.TRYOUT_JERSEY_NUMBER)&&this.actionMenuItems.push({label:"Import "+this.fieldName(B.TRYOUT_JERSEY_NUMBER)+"s",command:()=>{this.showImportModal()}}),this.siteDataService.hideSiteLoader()},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}run(){this.page=1,this.totalRecords=0,this.search()}search(n=null){n&&n.sortField&&(this.orderBy=n.sortField+" "+(n.sortOrder===1?"ASC":"DESC"),this.page=n.first/this.rows+1),this.getTotalCount=this.totalRecords===0,this.loading=!0;let l={dobFrom:this.dobFrom,dobTo:this.dobTo,testUserOption:this.testUserOption,genderID:this.genderID,selectedGrades:this.selectedGrades,selectedPlayerPools:this.selectedPlayerPools,attendanceOptionID:this.attendanceOptionID};this.consentGatedStorageService.setLocalItem("tryout_attendance_filters",JSON.stringify(l)),this.tryoutService.getTryoutDayPlayersAttendance(this.registrationID,this.registrationTryoutDateID,this.lastName,this.dobFrom,this.dobTo,this.testUserOption,this.genderID,this.selectedGrades,this.selectedPlayerPools,this.attendanceOptionID,this.page,this.rows,this.orderBy,this.getTotalCount,!1).subscribe({next:r=>{this.players=r.results,this.getTotalCount&&(this.totalRecords=r.count),this.players.forEach(m=>{m.playerClubData.playerPoolTiers?.length>0?m.playerClubData.playerPoolsString=m.playerClubData.playerPoolTiers.map(x=>`${x.playerPool.name}${x.name?" - "+x.name:""}`).join("; "):m.playerClubData.playerPools?.length>0&&(m.playerClubData.playerPoolsString=m.playerClubData.playerPools.map(x=>x.name).join("; "))}),this.selectedFields=[...this.tryoutService.selectedFields],this.columnsShown={},this.selectedFields.forEach(m=>this.columnsShown[m.field]=!0),this.loading=!1,this.showTable=!0,this.players.length===0?this.actionMenuItems=this.actionMenuItems.filter(m=>m.label!=="Export"):this.actionMenuItems.some(m=>m.label==="Export")||this.actionMenuItems.push({label:"Export",command:()=>{this.exportCSV()}})},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}save(){this.tryoutService.savePlayersTryoutDateAttendance(this.registrationID,this.registrationTryoutDateID,this.players.filter(n=>n.playerID===this.selectedPlayerID).map(n=>({playerID:n.playerID,tryoutNumber:n.playerClubData.tryoutNumber,attended:n.attended,positionID:n.playerClubData.positionID}))).subscribe({next:()=>{this.formService.hideFormLoader(),this.showPlayerProfileModal=!1,this.formService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Player attendance saved successfully.")},error:n=>{this.formService.hideFormLoader(),n?.error?.errors?this.siteDataService.showSiteErrorAlert("There was a problem processing your request. "+n.error.errors[Object.keys(n.error.errors)[0]][0]):this.siteDataService.showSiteErrorAlert("There was a problem processing your request."+n.error.errors[0])}})}clearNumbers(){this.tryoutService.clearTryoutNumbers(this.registrationID).subscribe({next:()=>{this.search(),this.showClear=!1,this.siteDataService.showSiteSuccessAlert(this.fieldName(B.TRYOUT_JERSEY_NUMBER)+"s cleared successfully.")},error:n=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request."+n.error.errors[0])}})}fieldEnabled(n){return this.clubFieldOptions.find(l=>l.fieldOptionID===n)!==void 0}fieldName(n){return this.clubFieldOptions?.find(l=>l.fieldOptionID===n)?.fieldName}setToDateToEOY(n){return Vt(n)}getPlayerData(){(this.playerClubDataFields?N(null):this.playerService.getPlayerClubDataMetadata()).subscribe(n=>{n&&(this.playerClubDataFields=n.fields?.filter(r=>r.controlName==="positionID"||r.controlName==="tryoutNumber")),this.playerClubData=this.players.find(r=>r.playerID===this.selectedPlayerID).playerClubData;let l=this.players.find(r=>r.playerID===this.selectedPlayerID);this.selectedPlayer={playerID:l.playerID,user:{firstName:l.firstName,lastName:l.lastName,dob:l.dob,genderID:l.genderID,userID:l.userID}},this.showPlayerProfileModal=!0})}savePlayerClubData(n){let l=this.players.find(r=>r.playerID===this.selectedPlayerID);l.playerClubData.tryoutNumber=n.tryoutNumber,n.positionID?(l.playerClubData.positionID=n.positionID,l.playerClubData.position=this.playerClubDataFields.find(r=>r.controlName==="positionID").options.find(r=>r.value===n.positionID).label):(l.playerClubData.positionID=null,l.playerClubData.position=null),this.save()}saveAttendance(n,l){this.players.find(r=>r.playerID===n.playerID).attended=l,this.selectedPlayerID=n.playerID,(this.fieldEnabled(B.TRYOUT_JERSEY_NUMBER)||this.fieldEnabled(B.PRIMARY_POSITION)
317)&&l?this.getPlayerData():this.save()}onSelectedFieldChange(){this.tryoutService.selectedFields.sort((n,l)=>this.tryoutService.availableFields.findIndex(r=>r.field===n.field)-this.tryoutService.availableFields.findIndex(r=>r.field===l.field)),this.consentGatedStorageService.setLocalItem("tryout_attendance_selectedFields",JSON.stringify(this.tryoutService.selectedFields))}exportCSV(){this.tryoutService.getTryoutDayPlayersAttendance(this.registrationID,this.registrationTryoutDateID,this.lastName,this.dobFrom,this.dobTo,this.testUserOption,this.genderID,this.selectedGrades,this.selectedPlayerPools,this.attendanceOptionID,this.page,this.rows,this.orderBy,this.getTotalCount,!0).subscribe({next:n=>{Je(n)},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem exporting data.")}})}showImportModal(){(this.importFields?N(null):this.tryoutService.getTryoutJerseyNumbersImportMetadata()).subscribe(n=>{n&&(this.importFields=n.fields),this.showImport=!0})}import(){this.fileUploadField.hasFileChanged&&this.file?(this.loading=!0,this.tryoutService.importTryoutJerseyNumbers(this.registrationID,this.file).subscribe({next:n=>{n&&n.length>0?this.siteDataService.showSiteErrorAlert("Import errors: "+JSON.stringify(n)):(this.siteDataService.showSiteSuccessAlert("Import Complete"),this.search(),this.fileUploadField.hasFileChanged=!1,this.showImport=!1),this.formService.hideFormLoader()},error:()=>{this.formService.hideFormLoader(),this.loading=!1,this.siteDataService.showSiteErrorAlert("There was a problem saving.")}})):(this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert("Please select a file and try again."))}};d.\u0275fac=function(l){return new(l||d)(E(fe),E(Y),E(ge),E(G),E(ee),E(nt),E(Li),E(q),E(xe),E(Fe),E(Ht),E(jt))},d.\u0275cmp=V({type:d,selectors:[["ng-component"]],viewQuery:function(l,r){if(l&1&&ze(Sn,5),l&2){let m;
317qe(m=He())&&(r.fileUploadField=m.first)}},standalone:!1,decls:130,vars:54,consts:[["customButtonContent",""],["dobFromInput",""],["fileUploadField",""],["role","main"],["primaryBtnIcon","fa-regular fa-table",3,"pageTitle","showBackButton","parentLinkText","parentLinkUrl"],[3,"adminFilterSearch","showLabels","hideReset"],["primary",""],[1,"col-3"],[1,"form-group"],["type","text",3,"ngModelChange","ngModel"],["styleClass","full-width"],["view","year","dateFormat","yy","styleClass","birthday-range-start","inputId","yearpicker","appendTo","body",3,"ngModelChange","ngModel","defaultDate","minDate","maxDate"],["view","year","dateFormat","yy","styleClass","birthday-range-start","inputId","yearpicker","appendTo","body",3,"ngModelChange","onInput","onSelect","ngModel","defaultDate","minDate","maxDate"],["styleClass","full-width","appendTo","body",3,"ngModelChange","ngModel","options"],["inputId","selectedGrades","appendTo","body","placeholder","All","optionValue","value",1,"full-width",3,"ngModelChange","autofocusFilter","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel"],["appendTo","body",1,"full-width",3,"ngModelChange","ngModel","options"],["optionLabel","header","appendTo","body","placeholder","Select fields",3,"ngModelChange","onChange","autofocusFilter","ngModel","dataKey","options","filter","maxSelectedLabels","showToggleAll","selectedItemsLabel"],["advanced",""],["header","Player Information",3,"visibleChange","visible","closable","modal","styleClass"],[3,"visibleChange","visible","header","closable","modal","styleClass"],[1,"card"],[1,"card-heading"],[1,"card-subheading","mb-4"],["href","https://ssprodst.blob.core.windows.net/import-templates/Tryout Jersey Number Import Template.xlsx","target","_blank","rel","noopener noreferrer"],["buttonClass","btn-md","customButtonContent","",3,"menuItems"],["optionLabel","name","optionValue","playerPoolID","styleClass","full-width","appendTo","body","placeholder","All",3,"ngModelChange","autofocusFilter","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel"],[1,"row"],[1,"col-12"],["sortField","playerName","responsiveLayout","scroll",3,"onLazyLoad","columns","value","loading","paginator","alwaysShowPaginator","totalRecords","rows","lazy"],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],["colspan","6"],["pSortableColumn","playerName"],["field","playerName"],[3,"pSortableColumn"],[3,"field"],[1,"d-flex","align-items-center","justify-content-end"],[3,"valueChange","inputLabel","inputID","value"],[1,"fw-700"],["target","_blank",3,"routerLink"],["type","button",1,"btn","btn-sm","btn-icon-pencil-alt","btn-tertiary","mr-1",3,"click"],[3,"player","registrationID"],["formID","player-club-data","submitButtonText","Save","buttonsPosition","left",3,"onSubmit","onCancel","fields","entity","horizontalForm","contentFieldsMode","showCancelButton"],["fieldName","positionID"],["fieldName","tryoutNumber"],["buttonsPosition","left","submitButtonSavingText","Importing","submitButtonText","Import",3,"onCancel","onSubmit","fields","horizontalForm","contentFieldsMode"],["fieldName","importFile",3,"onChange","acceptType","acceptedFileExtensions"],["dialogClass","standardWidthDialog","yesButtonText","Yes","noButtonText","Cancel",3,"onYesSelect","onNoSelect","showModalText","headerText"],[1,"text-medium","fw-600"],["alertType","warning",3,"isInline"],[3,"close","registrationID"]],template:function(l,r){if(l&1){let m=D();o(0,"main",3),e(1,`
318  `),o(2,"app-admin-header",4),e(3,`
319    `),T(4,Tn,2,1,"ng-template",null,0,J),e(6,`
320  `),a(),e(7,`
321  `),o(8,"app-admin-filter",5),v("adminFilterSearch",function(){return r.run()}),e(9,`
322    `),pe(10,6),e(11,`
323      `),o(12,"div",7),e(13,`
324        `),o(14,"div",8),e(15,`
325          `),o(16,"label"),e(17,"Last Name"),a(),e(18,`
326          `),o(19,"input",9),I("ngModelChange",function(g){return y(m),P(r.lastName,g)||(r.lastName=g),C(g)}),a(),e(20,`
327        `),a(),e(21,`
328      `),a(),e(22,`
329      `),o(23,"div",7),e(24,`
330        `),o(25,"div",8),e(26,`
331          `),o(27,"label"),e(28,"Birth Year"),a(),e(29,`
332          `),o(30,"p-inputgroup",10),e(31,`
333            `),o(32,"p-datepicker",11,1),I("ngModelChange",function(g){return y(m),P(r.dobFrom,g)||(r.dobFrom=g),C(g)}),a(),e(34,`
334            `),o(35,"p-inputgroup-addon"),e(36,"to"),a(),e(37,`
335            `),o(38,"p-datepicker",12),I("ngModelChange",function(g){return y(m),P(r.dobTo,g)||(r.dobTo=g),C(g)}),v("onInput",function(){return r.dobTo=r.setToDateToEOY(r.dobTo)})("onSelect",function(){return r.dobTo=r.setToDateToEOY(r.dobTo)}),e(39,`
336            `),a(),e(40,`
337          `),a(),e(41,`
338        `),a(),e(42,`
339      `),a(),e(43,`
340      `),p(44,bn,13,7),o(45,"div",7),e(46,`
341        `),o(47,"div",8),e(48,`
342          `),o(49,"label"),e(50,"Gender"),a(),e(51,`
343          `),o(52,"p-select",13),I("ngModelChange",function(g){return y(m),P(r.genderID,g)||(r.genderID=g),C(g)}),a(),e(53,`
344        `),a(),e(54,`
345      `),a(),e(55,`
346      `),o(56,"div",7),e(57,`
347        `),o(58,"div",8),e(59,`
348          `),o(60,"label"),e(61,"Grade"),a(),e(62,`
349          `),o(63,"p-multiSelect",14),I("ngModelChange",function(g){return y(m),P(r.selectedGrades,g)||(r.selectedGrades=g),C(g)}),e(64,`
350          `),a(),e(65,`
351        `),a(),e(66,`
352      `),a(),e(67,`
353      `),o(68,"div",7),e(69,`
354        `),o(70,"div",8),e(71,`
355          `),o(72,"label"),e(73,"Test Players"),a(),e(74,`
356          `),o(75,"p-select",15),I("ngModelChange",function(g){return y(m),P(r.testUserOption,g)||(r.testUserOption=g),C(g)}),a(),e(76,`
357        `),a(),e(77,`
358      `),a(),e(78,`
359      `),o(79,"div",7),e(80,`
360        `),o(81,"div",8),e(82,`
361          `),o(83,"label"),e(84,"Attendance Status"),a(),e(85,`
362          `),o(86,"p-select",15),I("ngModelChange",function(g){return y(m),P(r.attendanceOptionID,g)||(r.attendanceOptionID=g),C(g)}),a(),e(87,`
363        `),a(),e(88,`
364      `),a(),e(89,`
365      `),o(90,"div",7),e(91,`
366        `),o(92,"div",8),e(93,`
367          `),o(94,"label"),e(95,"Selected Fields"),a(),e(96,`
368          `),o(97,"p-multiSelect",16),I("ngModelChange",function(g){return y(m),P(r.tryoutService.selectedFields,g)||(r.tryoutService.selectedFields=g),C(g)}),v("onChange",function(){return r.onSelectedFieldChange()}),e(98,`
369          `),a(),e(99,`
370        `),a(),e(100,`
371      `),a(),e(101,`
372    `),_e(),e(102,`
373    `),U(103,17),e(104,`
374  `),a(),e(105,`
375  `),p(106,Ya,16,8),a(),e(107,`
376`),o(108,"p-dialog",18),I("visibleChange",function(g){return y(m),P(r.showPlayerProfileModal,g)||(r.showPlayerProfileModal=g),C(g)}),e(109,`
377
378  `),p(110,Ua,4,3),a(),e(111,`
379
380`),o(112,"p-dialog",19),I("visibleChange",function(g){return y(m),P(r.showImport,g)||(r.showImport=g),C(g)}),e(113,`
381  `),o(114,"section",20),e(115,`
382    `),o(116,"h2",21),e(117),a(),e(118,`
383    `),o(119,"h3",22),e(120),o(121,"a",23),e(122),a(),e(123,`
384    `),a(),e(124,`
385    `),p(125,Wa,8,5),a(),e(126,`
386`),a(),e(127,`
387
388`),p(128,ja,10,4),p(129,Qa,3,1)}if(l&2){let m=$(33);s(2),u("pageTitle",r.regName+" Attendance")("showBackButton",!0)("parentLinkText","Tryouts")("parentLinkUrl","/admin/tryouts"),s(6),u("showLabels",!0)("hideReset",!0),s(11),b("ngModel",r.lastName),s(13),b("ngModel",r.dobFrom),u("defaultDate",r.minBirthYear)("minDate",r.minBirthYear)("maxDate",r.maxBirthYear),s(6),b("ngModel",r.dobTo),u("defaultDate",r.minBirthYear)("minDate",m.value?m.value:r.minBirthYear)("maxDate",r.maxBirthYear),s(6),_((r.tryoutService.playerPools==null?null:r.tryoutService.playerPools.length)>1?44:-1),s(8),b("ngModel",r.genderID),u("options",r.genderOptions),s(11),u("autofocusFilter",!0),b("ngModel",r.selectedGrades),u("options",r.grades)("filter",!0)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} grade(s) selected"),s(12),b("ngModel",r.testUserOption),u("options",r.testUserOptions),s(11),b("ngModel",r.attendanceOptionID),u("options",r.attendanceOptions),s(11),u("autofocusFilter",!0),b("ngModel",r.tryoutService.selectedFields),u("dataKey","field")("options",r.tryoutService.availableFields)("filter",!0)("maxSelectedLabels",1)("showToggleAll",!0)("selectedItemsLabel","{0} fields(s) selected"),s(9),_(r.showTable?106:-1),s(2),b("visible",r.showPlayerProfileModal),u("closable",!1)("modal",!0)("styleClass","shortWidthDialog"),s(2),_(r.selectedPlayer&&r.showPlayerProfileModal?110:-1),s(2),b("visible",r.showImport),u("header","Import "+r.fieldName(r.FieldOption.TRYOUT_JERSEY_NUMBER)+"s")("closable",!1)("modal",!0)("styleClass","mediumWidthDialog"),s(5),S("Import ",r.fieldName(r.FieldOption.TRYOUT_JERSEY_NUMBER),"s"),s(3),S("Specify ",r.fieldName(r.FieldOption.TRYOUT_JERSEY_NUMBER),`s using the
389      `),s(2),S(`
390        `,r.fieldName(r.FieldOption.TRYOUT_JERSEY_NUMBER),` Upload Template
391      `),s(3),_(r.importFields?125:-1),s(3),_(r.showClear?128:-1),s(),_(r.showAddPlayerModal?129:-1)}},dependencies:[ce,de,Pe,Q,z,Ie,te,Ce,H,et,ri,tt,_i,ii,ni,he,Ke,Xe,Kt,ie,ye,Me,Ai,rt,se],encapsulation:2});let i=d;return i})();var Ki=i=>[i];function za(i,d){i&1&&e(0,`
392                          #
393                          `)}function qa(i,d){if(i&1&&(e(0,`
394                          `),o(1,"div",27),e(2,`
395                            `),o(3,"span",28),e(4,"eval score"),a(),e(5,`
396                            `),o(6,"span"),e(7),a(),e(8,`
397                          `),a(),e(9,`
398                        `)),i&2){let t,n=c().$implicit,l=c();s(7),S(`
399                              `,((t=l.getPlayerPoolEvaluation(n.playerID))==null?null:t.evaluationScore)||"\u2013",`
400                            `)}}function Ha(i,d){if(i&1){let t=D();e(0,`
401          `),o(1,"div"),e(2,`
402            `),o(3,"div",20),e(4,`
403              `),o(5,"div",21),e(6,`
404                `),h(7,"i",22),e(8,`
405              `),a(),e(9,`
406              `),o(10,"div",23),e(11,`
407                `),o(12,"div",24),e(13,`
408                  `),o(14,"div",25),e(15),a(),e(16,`
409                  `),o(17,"div",26),e(18,`
410                    `),o(19,"div",24),e(20,`
411                      `),o(21,"div",27),e(22,`
412                        `),o(23,"span",28),e(24,"position"),a(),e(25,`
413                        `),o(26,"span"),e(27),a(),e(28,`
414                      `),a(),e(29,`
415                      `),o(30,"div",27),e(31,`
416                        `),p(32,za,1,0),e(33),a(),e(34,`
417                        `),o(35,"div",27),e(36,`
418                          `),o(37,"span",28),e(38,"rating"),a(),e(39,`
419                          `),o(40,"span"),e(41),a(),e(42,`
420                        `),a(),e(43,`
421                        `),p(44,qa,10,1),a(),e(45,`
422                    `),a(),e(46,`
423                  `),a(),e(47,`
424                `),a(),e(48,`
425                `),o(49,"div",29),e(50,`
426                  `),o(51,"a",30),v("click",function(){let l=y(t).$implicit,r=c();return C(r.moveToRanked(l))}),h(52,"i",31),a(),e(53,`
427                `),a(),e(54,`
428              `),a(),e(55,`
429            `),a(),e(56,`
430          `)}if(i&2){let t=d.$implicit,n=c();s(15),f(t.playerName),s(12),S(`
431                          `,(t.position==null?null:t.position.charAt(0))||"\u2013",`
432                        `),s(5),_(t.tryoutNumber?32:-1),s(),S("",t.tryoutNumber,`
433                        `),s(8),S(`
434                            `,n.getPlayerPoolRating(t.playerID).rating||"\u2013",`
435                          `),s(3),_((n.tryoutService.evaluations==null?null:n.tryoutService.evaluations.length)>0?44:-1)}}function Ja(i,d){i&1&&(e(0,`
436            `),o(1,"div"),e(2,"Player Name"),a(),e(3,`
437          `))}function Ka(i,d){if(i&1&&(e(0,`
438                `),o(1,"div",38),e(2),a(),e(3,`
439              `)),i&2){let t=c().$implicit;s(2),f(t.playerName)}}function Xa(i,d){if(i&1){let t=D();e(0,`
440            `),o(1,"div",32),e(2,`
441              `),o(3,"div",33),e(4,`
442                `),o(5,"a",34),v("click",function(){let l=y(t).$implicit,r=c();return C(r.moveToUnranked(l))}),h(6,"i",35),a(),e(7,`
443              `),a(),e(8,`
444              `),o(9,"div",36),h(10,"i",22),a(),e(11,`
445              `),o(12,"div",37),e(13),a(),e(14,`
446              `),p(15,Ka,4,1),o(16,"div",14),e(17,`
447                `),o(18,"span"),e(19),a(),e(20,`
448              `),a(),e(21,`
449              `),o(22,"div",14),e(23),a(),e(24,`
450            `),a(),e(25,`
451          `)}if(i&2){let t=d.$implicit,n=d.$index,l=c();s(13),f(n+1),s(2),_(l.hidePlayerNames?-1:15),s(4),S(`
452                  `,(t.position==null?null:t.position.charAt(0))||"\u2013",`
453                `),s(4),S(`
454                `,t.tryoutNumber||"\u2013",`
455              `)}}var St=(()=>{let d=class d{constructor(n,l,r,m,x){this.siteDataService=n,this.tryoutService=l,this.positionService=r,this.router=m,this.route=x,this.hidePlayerNames=!1,this.closeParentMod
455al=new je;let g=this.router.getCurrentNavigation()??this.router.lastSuccessfulNavigation();g?.extras.state&&(this.playerPoolName=g.extras.state.playerPoolName,this.playerRatings=g.extras.state.playerRatings,this.position=g.extras.state.position)}ngOnInit(){this.playerPoolID=+this.route.snapshot.params.playerPoolID,this.registrationID=+this.route.snapshot.params.registrationID,this.positionID=+this.route.snapshot.params.positionID,j({ratings:this.tryoutService.playerPools?N(null):this.tryoutService.getPlayerRatings(this.registrationID,this.tryoutService.testUserOption,[{playerPoolID:this.playerPoolID}],null,!1,!1,!1,this.tryoutService?.evaluations?.length>0),playerPools:this.tryoutService.playerPools?N(null):this.tryoutService.getPlayerPools(this.registrationID),fieldOptions:this.siteDataService.getClubFieldOptions(),positions:this.tryoutService.specialtyPositions===void 0?this.positionService.getPositions():N(null)}).subscribe({next:n=>{this.tryoutService.playerPools||(this.playerRatings=n.ratings,this.tryoutService.playerPools=n.playerPools,this.playerPoolName=this.tryoutService.playerPools.find(l=>l.playerPoolID===+this.playerPoolID).name,this.playerRatings.forEach(l=>{l.playerRegistrationRatings.find(r=>r.playerPoolID===this.playerPoolID)||l.playerRegistrationRatings.push({playerPoolID:this.playerPoolID,playerID:l.playerID})}),n.positions&&(this.tryoutService.specialtyPositions=n.positions.filter(l=>l.specialtyPosition),this.position=this.tryoutService.specialtyPositions.find(l=>l.positionID===+this.positionID),this.playerRatings=this.getPositionRatings())),this.clubFieldOptions=n.fieldOptions,this.unrankedPlayers=this.playerRatings.filter(l=>!l.playerRegistrationRatings.find(r=>r.playerPoolID===this.playerPoolID).rank),this.rankedPlayers=this.playerRatings.filter(l=>l.playerRegistrationRatings.find(r=>r.playerPoolID===this.playerPoolID).rank).sort((l,r)=>l.playerRegistrationRatings.find(m=>m.playerPoolID===this.playerPoolID).rank>r.playerRegistrationRatings.find(m=>m.playerPoolID===this.playerPoolID).rank?1:-1),this.options=[],this.hidePlayerNames=this.playerRatings?.length&&!this.playerRatings[0].playerName,this.hidePlayerNames||this.options.push({label:"Player Name",value:"playerName"}),this.fieldEnabled(B.PRIMARY_POSITION)&&this.options.push({label:this.fieldName(B.PRIMARY_POSITION),value:"position"}),this.fieldEnabled(B.TRYOUT_JERSEY_NUMBER)&&this.options.push({label:this.fieldName(B.TRYOUT_JERSEY_NUMBER),value:"tryoutNumber"}),this.options.length>0&&(this.orderBy=this.options[0].value),this.siteDataService.hideSiteLoader()},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}fieldEnabled(n){return this.clubFieldOptions.find(l=>l.fieldOptionID===n)!==void 0}fieldName(n){return this.clubFieldOptions.find(l=>l.fieldOptionID===n).fieldName}save(){this.unrankedPlayers.forEach(l=>l.playerRegistrationRatings.find(r=>r.playerPoolID===this.playerPoolID).rank=null),this.rankedPlayers.forEach((l,r)=>{l.playerRegistrationRatings.find(m=>m.playerPoolID===this.playerPoolID).rank=r+1});let n=this.playerRatings.filter(l=>l.playerPools?.some(r=>r.playerPoolID===this.playerPoolID));this.tryoutService.savePlayerRatings(this.registrationID,n.map(l=>l.playerRegistrationRatings.find(r=>r.playerPoolID===this.playerPoolID))).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Ranking information was saved successfully.")},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem saving data.")}})}getPlayerPoolRating(n){return this.playerRatings.find(l=>l.playerID===n).playerRegistrationRatings?.find(l=>l.playerPoolID===this.playerPoolID)}getPlayerPoolEvaluation(n){return this.playerRatings.find(l=>l.playerID===n).playerRegistrationEvaluations?.find(l=>l.playerPoolID===this.playerPoolID)}getPositionRatings(){if(this.tryoutService.specialtyPositions.length>0){let n=this.tryoutService.specialtyPositions.map(l=>l.positionID);return this.positionID?this.playerRatings.filter(l=>l.positionID===+this.positionID):this.playerRatings.filter(l=>!l.positionID||!n.includes(l.positionID))}else return this.playerRatings}drop(n){n.previousContainer===n.container?si(n.container.data,n.previousIndex,n.currentIndex):di(n.previousContainer.data,n.container.data,n.previousIndex,n.currentIndex)}moveToRanked(n){this.rankedPlayers.push(n),this.unrankedPlayers=this.unrankedPlayers.filter(l=>l.playerID!==n.playerID)}moveToUnranked(n){this.unrankedPlayers.push(n),this.rankedPlayers=this.rankedPlayers.filter(l=>l.playerID!==n.playerID)}sort(){this.unrankedPlayers.sort((n,l)=>{switch(this.orderBy){case"playerName":return n.playerName.localeCompare(l.playerName);case"tryoutNumber":return this.customStringCompare(n.tryoutNumber,l.tryoutNumber);case"position":return n.position?.localeCompare(l.position)}})}customStringCompare(n,l){let r=this.splitIntoSegments(n),m=this.splitIntoSegments(l);for(let x=0;x<Math.max(r.length,m.length);x++){if(x>=r.length)return-1;if(x>=m.length)return 1;let g=r[x],X=m[x];if(typeof g=="number"&&typeof X=="number"){if(g!==X)return g<X?-1:1}else{let re=String(g).toLowerCase().localeCompare(String(X).toLowerCase());if(re!==0)return re}}return 0}splitIntoSegments(n){return n?(n.match(/(\d+|[^\d]+)/g)||[n]).map(r=>/^\d+$/.test(r)?parseInt(r,10):r):[""]}};d.\u0275fac=function(l){return new(l||d)(E(G),E(Y),E(Bi),E(ee),E(q))},d.\u0275cmp=V({type:d,selectors:[["app-tryouts-ranking"]],outputs:{closeParentMod
vendor: 3,172 bytes, lines 455-488
455al:"closeParentModal"},standalone:!1,decls:67,vars:17,consts:[["unrankedPlayersView","cdkDropList"],["rankedPlayersView","cdkDropList"],["role","main"],["parentLinkText","Rank Players",3,"pageTitle","showBackButton","parentLinkUrl"],[3,"isInline"],[1,"d-flex","mt-4","mb-5"],[1,"flex-grow-1","mr-2"],[1,"form-group"],["for","orderBy"],["inputId","orderBy",3,"onChange","ngModelChange","ngModel","options","filter"],["cdkDropList","","cdkDropListSortingDisabled","",1,"px-3","mt-3",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],[1,"flex-grow-1","ml-2","pt-4"],[1,"player-rank-grid","text-small","border-bottom","fw-800","text-navy","mb-1"],[1,"text-center"],[1,"text-center","d-none","d-md-block"],["cdkDropList","",1,"full-height",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],[1,"row"],[1,"col","left-buttons"],[1,"btn","btn-lg","btn-primary",3,"click"],[1,"btn","btn-lg",3,"routerLink"],["cdkDrag","","cdkDragPreviewContainer","parent",1,"bg-navy","row","border-radius","mb-1","py-2"],["cdkDragHandle","",1,"col-auto","opacity-60","d-flex","align-items-center","pr-0"],[1,"fa-light","fa-bars","text-larger"],[1,"col"],[1,"row","align-me-center"],[1,"col-6","player-name"],[1,"col-6"],[1,"col-3","align-me-center","d-none","d-md-block"],[1,"opacity-60","text-smallest","d-inline-block","mr-1"],[1,"col-auto","border-left","d-flex","align-items-center","px-2"],[1,"d-flex",3,"click"],[1,"fa-solid","fa-circle-arrow-right","text-large"],["cdkDrag","","cdkDragPreviewContainer","parent",1,"player-rank-grid"],[1,"col-auto","d-flex","align-items-center","px-0"],[3,"click"],[1,"fa-solid","fa-circle-arrow-left","text-large"],["cdkDragHandle",""],[1,"text-center","text-green-alt","fw-800"],[1,"player-name"]],template:function(l,r){if(l&1){let m=D();o(0,"main",2),e(1,`
456  `),o(2,"app-admin-header",3),e(3,`
457  `),a(),e(4,`
458
459  `),o(5,"app-inline-alert",4),e(6,`Drag your players from the left column to the right column in the order you
460    would like them to be ranked. After you are finished, click save and your rankings will be viewable by other
461  admins/coaches.`),a(),e(7,`
462
463  `),o(8,"div",5),e(9,`
464    `),o(10,"div",6),e(11,`
465      `),o(12,"div",7),e(13,`
466        `),o(14,"label",8),e(15,"Order players by"),a(),e(16,`
467        `),o(17,"p-select",9),v("onChange",function(){return r.sort()}),I("ngModelChange",function(g){return y(m),P(r.orderBy,g)||(r.orderBy=g),C(g)}),e(18,`
468        `),a(),e(19,`
469      `),a(),e(20,`
470      `),o(21,"div",10,0),v("cdkDropListDropped",function(g){return r.drop(g)}),e(23,`
471        `),A(24,Ha,57,6,null,null,w),a(),e(26,`
472      `),a(),e(27,`
473
474      `),o(28,"div",11),e(29,`
475
476        `),o(30,"div",12),e(31,`
477          `),h(32,"div"),e(33,`
478          `),h(34,"div"),e(35,`
479          `),o(36,"div",13),e(37,"Rank"),a(),e(38,`
480          `),p(39,Ja,4,0),o(40,"div",14),e(41,"POS"),a(),e(42,`
481          `),o(43,"div",14),e(44,"#"),a(),e(45,`
482        `),a(),e(46,`
483        `),o(47,"div",15,1),v("cdkDropListDropped",function(g){return r.drop(g)}),e(49,`
484          `),A(50,Xa,26,4,null,null,w),a(),e(52,`
485      `),a(),e(53,`
486    `),a(),e(54,`
487    `),o(55,"div",16),e(56,`
488      `),o(57,"div",17),e(58,`
489        `),o(59,"button",18),v("click",function(){return r.save()}),e(60,"Save"),a(),e(61,`
490        `),o(62,"button",19),e(63,"Cancel"),a(),e(64,`
491      `),a(),e(65,`
492    `),a(),e(66,`
493  `),a()}if(l&2){let m=$(22),x=$(48);s(2),u("pageTitle",r.playerPoolName+(r.position?" - "+r.position.name:""))("showBackButton",!0)("parentLinkUrl",r.position?"../../../..":"../.."),s(3),u("isInline",!1),s(12),b("ngModel",r.orderBy),u("options",r.options)("filter",!1),s(4),u("cdkDropListData",r.unrankedPlayers)("cdkDropListConnectedTo",O(13,Ki,x)),s(3),R(r.unrankedPlayers),s(15),_(r.hidePlayerNames?-1:39),s(8),u("cdkDropListData",r.rankedPlayers)("cdkDropListConnectedTo",O(15,Ki,m)),s(3),R(r.rankedPlayers),s(12),u("routerLink",r.position?"../../../..":"../..")}},dependencies:[Q,z,Ie,Ce,H,ye,pi,mi,ci],styles:[".first-letter-only[_ngcontent-%COMP%]{display:inline-block;overflow:hidden;white-space:nowrap;width:1ch}.align-me-center[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0}.player-name[_ngcontent-%COMP%]{line-height:1em}@media(max-width:1024px){.player-name[_ngcontent-%COMP%]{font-size:var(--text-medium)}}.player-rank-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:30px 30px 35px 1fr 40px 40px;background-color:var(--color-white);border-bottom:var(--border);padding:.5rem .5rem 0}.player-rank-grid[_ngcontent-%COMP%]   .player-name[_ngcontent-%COMP%]{font-weight:600}.form-action[_ngcontent-%COMP%]{position:fixed;bottom:0;width:75%;background-color:var(--color-white)}.settings-card[_ngcontent-%COMP%]   .p-datatable-wrapper[_ngcontent-%COMP%]{margin-top:16px}"]});let i=d;return i})();var to=["editMenu"];function io(i,d){i&1&&(e(0,`
494                Positions can be flagged
495                as Specialty
496                Position from (`),o(1,"a",20),e(2,"Positions"),a(),e(3,`)
497                `))}function no(i,d){i&1&&(e(0,`
498                            `),h(1,"app-pill",25),e(2,`
499                            `))}function ao(i,d){if(i&1){let t=D();e(0,`
500                    `),o(1,"tr"),e(2,`
501                        `),o(3,"td")(4,"a",21),v("click",function(){let l=y(t).$implicit,r=c(2);return C(r.showPlayerPool(l.playerPoolID))}),e(5),a()(),e(6,`
502                        `),o(7,"td"),e(8),F(9,"date"),a(),e(10,`
503                        `),o(11,"td"),e(12),F(13,"date"),a(),e(14,`
504                        `),o(15,"td"),e(16),a(),e(17,`
505                        `),o(18,"td"),e(19),a(),e(20,`
506                        `),o(21,"td"),e(22),a(),e(23,`
507                        `),o(24,"td"),e(25),F(26,"date"),a(),e(27,`
508                        `),o(28,"td"),e(29),F(30,"date"),a(),e(31,`
509                        `),o(32,"td"),p(33,no,3,0),a(),e(34,`
510                        `),o(35,"td"),e(36,`
511                            `),o(37,"button",22),v("click",function(l){let r=y(t).$implicit,m=c(2);return C(m.toggleEditMenu(r.playerPoolID,l))}),e(38,`
512                                `),h(39,"i",23),e(40,`
513                                `),o(41,"span",24),e(42,"more"),a(),e(43,`
514                            `),a(),e(44,`
515                        `),a(),e(45,`
516                    `),a(),e(46,`
517                    `)}if(i&2){let t=d.$implicit;s(5),f(t.name),s(3),f(W(9,9,t.birthDateFrom,"MM/dd/y")),s(4),f(W(13,12,t.birthDateTo,"MM/dd/y")),s(4),f(t.genderID===1?"Male":t.genderID===2?"Female":"All"),s(3),f(t.gradeList),s(3),f(t.ageClassList),s(3),f(W(26,15,t.graduationYearFrom,"y")),s(4),f(W(30,18,t.graduationYearTo,"y")),s(4),_(t.isRemoved?33:-1)}}function oo(i,d){if(i&1&&(e(0,`
518            `),o(1,"table",12),e(2,`
519                `),o(3,"thead"),e(4,`
520                    `),o(5,"tr"),e(6,`
521                        `),o(7,"th"),e(8,"Pool Name"),a(),e(9,`
522                        `),o(10,"th"),e(11,"Birthdate From"),a(),e(12,`
523                        `),o(13,"th"),e(14,"Birthdate To"),a(),e(15,`
524                        `),o(16,"th"),e(17,"Gender"),a(),e(18,`
525                        `),o(19,"th"),e(20,"Grade"),a(),e(21,`
526                        `),o(22,"th"),e(23),a(),e(24,`
527                        `),o(25,"th"),e(26,"Graduation Year From"),a(),e(27,`
528                        `),o(28,"th"),e(29,"Graduation Year To"),a(),e(30,`
529                        `),h(31,"th"),e(32,`
530                        `),h(33,"th"),e(34,`
531                    `),a(),e(35,`
532                `),a(),e(36,`
533                `),o(37,"tbody"),e(38,`
534                    `),A(39,ao,47,21,null,null,w),a(),e(41,`
535            `),a(),e(42,`
536            `)),i&2){let t=c();s(23),f(t.fieldName(t.FieldOption.AGE_CLASS)||"Age Group"),s(16),R(t.tryoutService.playerPools)}}function ro(i,d){i&1&&(e(0,`
537    `),o(1,"p"),e(2," Please Note: edits to player pools will apply to all currently open tryouts."),a(),e(3,`
538    `))}function lo(i,d){if(i&1){let t=D();e(0,`
539    `),o(1,"app-dynamic-form",26),v("onSubmit",function(l){y(t);let r=c();return C(r.savePlayerPool(l,!1))})("onSaveAndAdd",function(l){y(t);let r=c();return C(r.savePlayerPool(l,!0))})("onCancel",function(){y(t);let l=c();return C(l.showPlayerPoolModal=!1)}),e(2,`
540        `),o(3,"div",27),e(4,`
541            `),h(5,"app-dynamic-form-field",28),e(6,`
542        `),a(),e(7,`
543        `),o(8,"div",27),e(9,`
544            `),o(10,"app-dynamic-form-field",29),v("onChange",function(l){y(t);let r=c();return C(r.poolTypeChanged(l))}),a(),e(11,`
545        `),a(),e(12,`
546        `),o(13,"div",27),e(14,`
547            `),h(15,"app-dynamic-form-field",30),e(16,`
548        `),a(),e(17,`
549        `),o(18,"div",27),e(19,`
550            `),h(20,"app-dynamic-form-field",31),e(21,`
551        `),a(),e(22,`
552        `),o(23,"div",27),e(24,`
553            `),h(25,"app-dynamic-form-field",32),e(26,`
554        `),a(),e(27,`
555        `),o(28,"div",27),e(29,`
556            `),h(30,"app-dynamic-form-field",33),e(31,`
557        `),a(),e(32,`
558        `),o(33,"div",27),e(34,`
559            `),h(35,"app-dynamic-form-field",34),e(36,`
560        `),a(),e(37,`
561        `),o(38,"div",27),e(39,`
562            `),h(40,"app-dynamic-form-field",35),e(41,`
563        `),a(),e(42,`
564        `),o(43,"div",27),e(44,`
565            `),h(45,"app-dynamic-form-field",36),e(46,`
566        `),a(),e(47,`
567    `),a(),e(48,`
568    `)}if(i&2){let t=c();s(),u("fields",t.activePoolFields)("entity",t.playerPool)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!0)}}function so(i,d){if(i&1){let t=D();e(0,`
569        `),o(1,"app-dynamic-form",37),v("onSubmit",function(l){y(t);let r=c();return C(r.saveSettings(l))})("onCancel",function(){y(t);let l=c();return C(l.showEditRatingCriteriaModal=!1)}),e(2,`
570            `),o(3,"div",27),e(4,`
571                `),h(5,"app-dynamic-form-field",38),e(6,`
572            `),a(),e(7,`
573            `),o(8,"div",27),e(9,`
574                `),h(10,"app-dynamic-form-field",39),e(11,`
575            `),a(),e(12,`
576            `),o(13,"div",27),e(14,`
577                `),h(15,"app-dynamic-form-field",40),e(16,`
578            `),a(),e(17,`
579        `),a(),e(18,`
580        `)}if(i&2){let t=c();s(),u("fields",t.settingsFields)("entity",t.tryoutService.settings)("horizontalForm",!0)("contentFieldsMode",!0)}}function co(i,d){if(i&1){let t=D();e(0,`
581        `),o(1,"app-dialog-footer"),e(2,`
582            `),pe(3,41),e(4,`
583                `),o(5,"button",42),v("click",function(){y(t);let l=c();return C(l.showDeletePlayerPoolModal=!1)}),e(6,"No"),a(),e(7,`
584            `),_e(),e(8,`
585            `),pe(9,43),e(10,`
586                `),o(11,"button",44),v("click",function(){y(t);let l=c();return C(l.deletePlayerPool())}),e(12,"Yes, Delete"),a(),e(13,`
587            `),_e(),e(14,`
588        `),a(),e(15,`
589    `)}}var lt=(()=>{let d=class d{constructor(n,l,r,m){this.siteDataService=n,this.tryoutService=l,this.dynamicFormService=r,this.authorizeService=m,this.showPlayerPoolModal=!1,this.showDeletePlayerPoolModal=!1,this.showEditRatingCriteriaModal=!1,this.checked=!1,this.Permission=k,this.items=[],this.includeRemovedPools=!1,this.FieldOption=B}ngOnInit(){this.authorizeService.getUser().subscribe(l=>{l&&(this.user=l)});let n={settings:this.tryoutService.getTryoutRatingSettings(),playerPools:this.tryoutService.playerPools?N(null):this.tryoutService.getPlayerPools(null,this.includeRemovedPools),fieldOptions:this.tryoutService.clubFieldOptions?N(null):this.siteDataService.getClubFieldOptions()};j(n).subscribe({next:l=>{l.settings?this.tryoutService.settings=l.settings:this.tryoutService.settings||(this.tryoutService.settings=new Oi),l.playerPools&&(this.tryoutService.playerPools=l.playerPools),l.fieldOptions&&(this.tryoutService.clubFieldOptions=l.fieldOptions),this.clubFieldOptions=this.tryoutService.clubFieldOptions,this.siteDataService.hide
589SiteLoader()},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}showPlayerPool(n){this.playerPoolID=n,this.poolFields?(n?this.playerPool=this.tryoutService.playerPools.find(l=>l.playerPoolID===n):this.playerPool=new yt,this.setActivePoolFields(this.playerPool.poolTypeID),this.showPlayerPoolModal=!0):this.tryoutService.getPlayerPoolMetadata().subscribe({next:l=>{this.poolFields=l.fields,n&&(this.playerPool=this.tryoutService.playerPools.find(r=>r.playerPoolID===n)),this.setActivePoolFields(this.playerPool?.poolTypeID||1),this.showPlayerPoolModal=!0},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}showRatingSettings(){this.settingsFields?this.showEditRatingCriteriaModal=!0:this.tryoutService.getTryoutRatingSettingsMetadata().subscribe({next:n=>{this.settingsFields=n.fields,this.showEditRatingCriteriaModal=!0},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}saveSettings(n){this.tryoutService.settings?.tryoutRatingSettingsID&&(n.tryoutRatingSettingsID=this.tryoutService.settings?.tryoutRatingSettingsID),this.tryoutService.saveTryoutRatingSettings(n).subscribe({next:()=>{this.tryoutService.settings=n,this.tryoutService.settings.ratingLabelOverride||(this.tryoutService.settings.ratingLabelOverride="Rating"),this.siteDataService.showSiteSuccessAlert("Settings was saved successfully"),this.showEditRatingCriteriaModal=!1,this.dynamicFormService.hideFormLoader()},error:l=>{this.siteDataService.showSiteErrorAlert(l.error),this.dynamicFormService.hideFormLoader()}})}toggleEditMenu(n,l){this.playerPoolID=n,this.items=[{label:"Delete",command:()=>{this.showDelete(this.playerPoolID)}}],this.tryoutService.playerPools.find(r=>r.playerPoolID===n).isRemoved?this.items.push({label:"Undo Remove",command:()=>{this.unremovePlayerPool()}}):this.items.push({label:"Remove",command:()=>{this.removePlayerPool()}}),this.editMenu.toggle(l)}showDelete(n){this.playerPoolID=n,this.showDeletePlayerPoolModal=!0}deletePlayerPool(){this.tryoutService.deletePlayerPool(this.playerPoolID).subscribe({next:()=>{this.tryoutService.playerPools=this.tryoutService.playerPools.filter(n=>n.playerPoolID!==this.playerPoolID),this.showDeletePlayerPoolModal=!1,this.siteDataService.showSiteSuccessAlert("Player Pool was deleted successfully")},error:n=>{this.siteDataService.showSiteErrorAlert(n.error)}})}removePlayerPool(){this.tryoutService.updatePlayerPoolRemoved(this.playerPoolID,!0).subscribe({next:()=>{if(this.includeRemovedPools){let n=this.tryoutService.playerPools.find(l=>l.playerPoolID===this.playerPoolID);n.isRemoved=!0}else this.tryoutService.playerPools=this.tryoutService.playerPools.filter(n=>n.playerPoolID!==this.playerPoolID);this.tryoutService.selectedPlayerPools=null,this.siteDataService.showSiteSuccessAlert("Player Pool was removed successfully")},error:n=>{this.siteDataService.showSiteErrorAlert(n.error)}})}unremovePlayerPool(){this.tryoutService.updatePlayerPoolRemoved(this.playerPoolID,!1).subscribe({next:()=>{let n=this.tryoutService.playerPools.find(l=>l.playerPoolID===this.playerPoolID);n.isRemoved=!1,this.siteDataService.showSiteSuccessAlert("Player Pool was unremoved successfully")},error:n=>{this.siteDataService.showSiteErrorAlert(n.error)}})}getPlayerPools(){this.tryoutService.getPlayerPools(null,this.includeRemovedPools).subscribe({next:n=>{n&&(this.tryoutService.playerPools=n)},error:n=>{this.siteDataService.showSiteErrorAlert(n.error)}})}savePlayerPool(n,l){this.tryoutService.savePlayerPool(this.playerPoolID,n).subscribe({next:r=>{if(this.playerPoolID){let m=this.tryoutService.playerPools.findIndex(x=>x.playerPoolID===this.playerPoolID);this.tryoutService.playerPools[m]=bt(Tt({},n),{playerPoolID:this.playerPoolID}),this.tryoutService.playerPools[m].gradeList=this.getGradeList(n.gradeID),this.tryoutService.playerPools[m].ageClassList=this.getAgeClassList(n.ageClassID)}else r.gradeList=this.getGradeList(r.gradeID),r.ageClassList=this.getAgeClassList(r.ageClassID),this.tryoutService.playerPools.push(r);l?(this.playerPoolID=void 0,this.playerPool=new yt):this.showPlayerPoolModal=!1,this.dynamicFormService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Player Pool was saved successfully")},error:r=>{this.siteDataService.showSiteErrorAlert(r.error),this.dynamicFormService.hideFormLoader()}})}getGradeList(n){let l="";if(n?.length){let r=this.poolFields.find(m=>m.controlName==="gradeID").options;
589n.forEach(m=>l+=r.find(x=>x.value===m).label+", "),l=l.slice(0,-2)}return l}getAgeClassList(n){let l="";if(n?.length){let r=this.poolFields.find(m=>m.controlName==="ageClassID").options;n.forEach(m=>l+=r.find(x=>x.value===m).label+", "),l=l.slice(0,-2)}return l}setActivePoolFields(n){switch(n){case 1:{this.activePoolFields=this.poolFields.filter(m=>m.controlName!=="gradeID"&&m.controlName!=="ageClassID"&&m.controlName!=="graduationYearFrom"&&m.controlName!=="graduationYearTo");let l=this.poolFields.find(m=>m.controlName==="birthDateFrom"),r=this.poolFields.find(m=>m.controlName==="birthDateTo");l.required=!0,l.validators=[{validatorType:K.REQUIRED},...l.validators],r.required=!0,r.validators=[{validatorType:K.REQUIRED},...r.validators];break}case 2:{this.activePoolFields=this.poolFields.filter(r=>r.controlName!=="birthDateFrom"&&r.controlName!=="ageClassID"&&r.controlName!=="birthDateTo"&&r.controlName!=="graduationYearFrom"&&r.controlName!=="graduationYearTo");let l=this.poolFields.find(r=>r.controlName==="gradeID");l.required=!0,l.validators=[{validatorType:K.REQUIRED},...l.validators];break}case 3:{this.activePoolFields=this.poolFields.filter(m=>m.controlName!=="birthDateFrom"&&m.controlName!=="birthDateTo"&&m.controlName!=="gradeID"&&m.controlName!=="ageClassID");let l=this.poolFields.find(m=>m.controlName==="graduationYearFrom"),r=this.poolFields.find(m=>m.controlName==="graduationYearTo");l.required=!0,l.validators=[{validatorType:K.REQUIRED},...l.validators],r.required=!0,r.validators=[{validatorType:K.REQUIRED},...r.validators];break}case 4:{this.activePoolFields=this.poolFields.filter(r=>r.controlName!=="birthDateFrom"&&r.controlName!=="birthDateTo"&&r.controlName!=="gradeID"&&r.controlName!=="graduationYearFrom"&&r.controlName!=="graduationYearTo");let l=this.poolFields.find(r=>r.controlName==="ageClassID");l.required=!0,l.validators=[{validatorType:K.REQUIRED},...l.validators];break}}}poolTypeChanged(n){this.setActivePoolFields(n)}fieldName(n){return this.clubFieldOptions?.find(l=>l.fieldOptionID===n)?.fieldName}};d.\u0275fac=function(l){return new(l||d)(E(G),E(Y),E(Fe),E(xe))},d.\u0275cmp=V({type:d,selectors:[["app-tryout-settings"]],viewQuery:function(l,r){if(l&1&&ze(to,5),l&2){let m;qe(m=He())&&(r.editMenu=m.first)}},standalone:!1,decls:105,vars:30,consts:[["editMenu",""],[1,"row"],[1,"col-xl-8"],[1,"card","settings-card"],[1,"text-medium"],[1,"col-md-6"],[1,"form-group"],["for","includeRemoved"],["inputId","includeRemoved",3,"ngModelChange","ngModel","binary"],[1,"card-footer"],[1,"text-medium",3,"click"],[1,"col-xl-4"],[1,"settings-table"],[1,"mr-3"],["styleClass","standardWidthDialog",3,"visibleChange","header","visible","modal","showHeader","draggable"],["styleClass","shortWidthDialog",3,"visibleChange","header","visible","modal","showHeader","draggable"],[1,"my-3"],["header","Delete Player Pool","styleClass","shortWidthDialog",3,"visibleChange","visible","modal","showHeader","draggable"],["pTemplate","footer"],["appendTo","body",3,"model","popup"],["href","/admin/club/positions",1,"text-medium"],[3,"click"],[1,"btn","btn-tertiary","btn-sm",3,"click"],[1,"fa-solid","fa-ellipsis"],[1,"sr-only"],["text","removed","status","error"],["submitButtonText","Save","buttonsPosition","left",3,"onSubmit","onSaveAndAdd","onCancel","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton"],[1,"form-row"],["fieldName","name"],["fieldName","poolTypeID",3,"onChange"],["fieldName","birthDateFrom"],["fieldName","birthDateTo"],["fieldName","gradeID"],["fieldName","ageClassID"],["fieldName","genderID"],["fieldName","graduationYearFrom"],["fieldName","graduationYearTo"],["submitButtonText","Save","buttonsPosition","left",3,"onSubmit","onCancel","fields","entity","horizontalForm","contentFieldsMode"],["fieldName","ratingLabelOverride"],["fieldName","min"],["fieldName","max"],["slot","secondary"],[1,"btn",3,"click"],["slot","primary"],[1,"btn","btn-primary",3,"click"]],template:function(l,r){if(l&1){let m=D();o(0,"div",1),e(1,`
590    `),o(2,"div",2),e(3,`
591        `),o(4,"div",3),e(5,`
592            `),o(6,"h2"),e(7,"Player Pools"),a(),e(8,`
593            `),o(9,"p",4),e(10,`Player Pools allow you to automatically assign players attending your tryouts into
594                pools based on their age, grade
595                and/or gender. You can manually move players into pools if their automatic assignment needs to be
596                changed. `),a(),e(11,`
597            `),o(12,"p",4),e(13,`
598                Player Pools can also be further categorized by players positions. Positions that are flagged as
599                Specialty Positions
600                will group players with that position together for rating & ranking purposes.
601
602                `),p(14,io,4,0),a(),e(15,`
603            `),o(16,"div",1),e(17,`
604                `),o(18,"div",5),e(19,`
605                    `),o(20,"div",6),e(21,`
606                        `),o(22,"label",7)(23,"strong"),e(24,"Include Removed"),a()(),e(25,`
607                        `),o(26,"p-checkbox",8),I("ngModelChange",function(g){return y(m),P(r.includeRemovedPools,g)||(r.includeRemovedPools=g),C(g)}),v("ngModelChange",function(){return r.getPlayerPools()}),e(27,`
608                        `),a(),e(28,`
609                    `),a(),e(29,`
610                `),a(),e(30,`
611            `),a(),e(31,`
612            `),p(32,oo,43,1),o(33,"div",9),e(34,`
613                `),o(35,"a",10),v("click",function(){return r.showPlayerPool()}),e(36,"+ Add a Player Pool"),a(),e(37,`
614            `),a(),e(38,`
615        `),a(),e(39,`
616    `),a(),e(40,`
617    `),o(41,"div",11),e(42,`
618        `),o(43,"div",3),e(44,`
619            `),o(45,"h2"),e(46),a(),e(47,`
620            `),o(48,"p",4),e(49,`
621                Customize the rating criteria used in tryouts across your entire club.
622            `),a(),e(50,`
623            `),o(51,"table",12),e(52,`
624                `),o(53,"thead"),e(54,`
625                    `),o(55,"tr"),e(56,`
626                        `),o(57,"th"),e(58),a(),e(59,`
627                    `),a(),e(60,`
628                `),a(),e(61,`
629                `),o(62,"tbody"),e(63,`
630                    `),o(64,"tr"),e(65,`
631                        `),o(66,"td")(67,"span",13),e(68),a(),e(69),a(),e(70,`
632                    `),a(),e(71,`
633                `),a(),e(72,`
634            `),a(),e(73,`
635            `),o(74,"div",9),e(75,`
636                `),o(76,"a",10),v("click",function(){return r.showRatingSettings()}),e(77),a(),e(78,`
637            `),a(),e(79,`
638        `),a(),e(80,`
639    `),a(),e(81,`
640`),a(),e(82,`
641`),o(83,"p-dialog",14),I("visibleChange",function(g){return y(m),P(r.showPlayerPoolModal,g)||(r.showPlayerPoolModal=g),C(g)}),e(84,`
642
643    `),p(85,ro,4,0),p(86,lo,49,5),a(),e(87,`
644`),o(88,"p-dialog",15),I("visibleChange",function(g){return y(m),P(r.showEditRatingCriteriaModal,g)||(r.showEditRatingCriteriaModal=g),C(g)}),e(89,`
645
646    `),o(90,"p"),e(91),a(),e(92,`
647
648    `),o(93,"div",16),e(94,`
649        `),p(95,so,19,4),a(),e(96,`
650`),a(),e(97,`
651`),o(98,"p-dialog",17),I("visibleChange",function(g){return y(m),P(r.showDeletePlayerPoolModal,g)||(r.showDeletePlayerPoolModal=g),C(g)}),e(99,`
652    Deleting a player pool will remove that pool from all active tryouts. Players currently assigned to this pool will
653    not be deleted, but any coach access assigned to the pool will be revoked.
654    `),T(100,co,16,0,"ng-template",18),e(101,`
655`),a(),e(102,`
656`),h(103,"p-menu",19,0)}l&2&&(s(14),_(r.user[r.Permission.Positions]?14:-1),s(12),b("ngModel",r.includeRemovedPools),u("binary",!0),s(6),_((r.tryoutService.playerPools==null?null:r.tryoutService.playerPools.length)>0?32:-1),s(14),S("",r.tryoutService==null||r.tryoutService.settings==null?null:r.tryoutService.settings.ratingLabelOverride," Criteria"),s(12),S("",r.tryoutService==null||r.tryoutService.settings==null?null:r.tryoutService.settings.ratingLabelOverride," Values"),s(10),S("Min: ",r.tryoutService.settings==null?null:r.tryoutService.settings.min),s(),S(` Max:
657                            `,r.tryoutService.settings==null?null:r.tryoutService.settings.max,`
658                        `),s(8),S(`Edit
659                    `,r.tryoutService==null||r.tryoutService.settings==null?null:r.tryoutService.settings.ratingLabelOverride," Criteria"),s(6),u("header",(r.playerPoolID?"Edit":"Add")+" Player Pool"),b("visible",r.showPlayerPoolModal),u("modal",!0)("showHeader",!0)("draggable",!1),s(2),_(r.playerPoolID?85:-1),s(),_(r.activePoolFields?86:-1),s(2),u("header",wt("Edit ",r.tryoutService==null||r.tryoutService.settings==null?null:r.tryoutService.settings.ratingLabelOverride," Criteria")),b("visible",r.showEditRatingCriteriaModal),u("modal",!0)("showHeader",!0)("draggable",!1),s(3),S(`Set the minimum and maximum values to be used in your player tryout
660        `,r.tryoutService==null||r.tryoutService.settings==null?null:r.tryoutService.settings.ratingLabelOverride,". Values can be between 0-100."),s(4),_(r.settingsFields?95:-1),s(3),b("visible",r.showDeletePlayerPoolModal),u("modal",!0)("showHeader",!0)("draggable",!1),s(5),u("model",r.items)("popup",!0))},dependencies:[ce,de,Q,z,te,Ae,Ze,ie,Jt,qt,se],encapsulation:2});let i=d;return i})();function po(i,d){if(i&1){let t=D();e(0,`
661        `),o(1,"div",4),e(2,`
662          `),o(3,"div",5),e(4,`
663            `),o(5,"label"),e(6,"Player Pool"),a(),e(7,`
664            `),o(8,"p-multiSelect",16),I("ngModelChange",function(l){y(t);let r=c();return P(r.selectedPlayerPools,l)||(r.selectedPlayerPools=l),C(l)}),e(9,`
665            `),a(),e(10,`
666          `),a(),e(11,`
667        `),a(),e(12,`
668      `)}if(i&2){let t=c();s(8),u("autofocusFilter",!0),b("ngModel",t.selectedPlayerPools),u("options",t.tryoutService.playerPools)("filter",!0)("showToggleAll",!1)("maxSelectedLabels",1)("selectedItemsLabel","{0} player pools selected")}}function _o(i,d){i&1&&(e(0,`
669            `),o(1,"tr"),e(2,`
670              `),o(3,"td"),e(4,`
671                None
672              `),a(),e(5,`
673            `),a(),e(6,`
674          `))}function uo(i,d){i&1&&(e(0,`
675            `),o(1,"tr"),e(2,`
676              `),o(3,"th"),e(4,`
677                `),h(5,"p-tableHeaderCheckbox"),e(6,`
678              `),a(),e(7,`
679              `),o(8,"th"),e(9,"Staff Member"),a(),e(10,`
680              `),o(11,"th"),e(12,"Player Pool"),a(),e(13,`
681            `),a(),e(14,`
682          `))}function xo(i,d){if(i&1){let t=D();e(0),o(1,"a",23),v("click",function(){let l=y(t).$implicit,r=c().$implicit,m=c(2);
682return C(m.unassign(r.clubUserID,l.playerPoolID))}),e(2,"Unassign"),a(),h(3,"br"),e(4,`
683              `)}if(i&2){let t=d.$implicit;S(`
684                  `,t.playerPool.name," ")}}function yo(i,d){if(i&1&&(e(0,`
685            `),o(1,"tr"),e(2,`
686              `),o(3,"td"),e(4,`
687                `),h(5,"p-tableCheckbox",22),e(6,`
688              `),a(),e(7,`
689              `),o(8,"td"),e(9),a(),e(10,`
690              `),o(11,"td"),e(12,`
691                `),A(13,xo,5,1,null,null,w),a(),e(15,`
692          `),a(),e(16,`
693        `)),i&2){let t=d.$implicit,n=c(2);s(5),u("value",t),s(4),le("",t.lastName,", ",t.firstName),s(4),R(n.getPlayerPoolAssignments(t.clubUserID))}}function Co(i,d){if(i&1){let t=D();e(0,`
694    `),o(1,"section"),e(2,`
695      `),o(3,"div",17),e(4,`
696        `),o(5,"p-table",18),I("selectionChange",function(l){y(t);let r=c();return P(r.selectedStaff,l)||(r.selectedStaff=l),C(l)}),e(6,`
697          `),T(7,_o,7,0,"ng-template",19),e(8,`
698          `),T(9,uo,15,0,"ng-template",20),e(10,`
699          `),T(11,yo,17,3,"ng-template",21),e(12,`
700      `),a(),e(13,`
701      `),o(14,"button",15),v("click",function(){y(t);let l=c();return C(l.showAssignModal=!0)}),e(15,"Assign"),a(),e(16,`
702      `),h(17,"br")(18,"br"),e(19,`
703    `),a(),e(20,`
704  `),a(),e(21,`
705`)}if(i&2){let t=c();s(5),u("value",t.staff)("tableStyleClass","mb-3")("loading",t.loading),b("selection",t.selectedStaff)}}var Xi=(()=>{let d=class d{constructor(n,l,r,m,x){this.tryoutService=n,this.router=l,this.route=r,this.regService=m,this.siteDataService=x,this.AriaLabels=we,this.loading=!0,this.showTable=!1,this.showAssignModal=!1;let g=this.router.getCurrentNavigation()??this.router.lastSuccessfulNavigation();g?.extras.state&&(this.regName=g.extras.state.regName)}ngOnInit(){this.registrationID=this.route.snapshot.params.registrationID,j({registration:this.regName?N(null):this.regService.getRegistration(this.registrationID),playerPools:this.tryoutService.playerPools?N(null):this.tryoutService.getPlayerPools(),staff:this.tryoutService.getCoachingStaff(),settings:this.tryoutService.settings?N(null):this.tryoutService.getTryoutRatingSettings()}).subscribe(n=>{n.playerPools&&(this.tryoutService.playerPools=n.playerPools),n.staff&&(this.allStaff=n.staff,this.staff=this.allStaff),n.registration&&(this.regName=n.registration.name),n.settings&&(this.tryoutService.settings=n.settings),this.search(),this.siteDataService.hideSiteLoader()})}search(){this.loading=!0,this.assignPlayerPools=void 0;let n=[];this.lastName?(this.staff=this.allStaff.filter(l=>l.lastName.toLowerCase().includes(this.lastName.toLowerCase())),n=this.staff):this.staff=this.allStaff,this.tryoutService.getStaffAssignments(this.registrationID,n.map(l=>l.clubUserID),this.selectedPlayerPools?.map(l=>l.playerPoolID)).subscribe({next:l=>{this.assignments=l,this.loading=!1,this.showTable=!0},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}unassign(n,l){this.tryoutService.unassignFromPlayerPool(this.registrationID,n,l).subscribe({next:()=>{this.assignments=this.assignments.filter(r=>!(r.playerPoolID===l&&r.clubUserID===n)),this.siteDataService.showSiteSuccessAlert("Unassignment processed successfully.")},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request.")}})}assignStaff(){this.selectedStaff.length>0&&this.tryoutService.assignStaffToPlayerPool(this.registrationID,this.assignPlayerPools?.map(n=>n.playerPoolID),this.selectedStaff.map(n=>n.clubUserID)).subscribe({next:()=>{this.selectedStaff.forEach(n=>{this.assignPlayerPools.forEach(l=>{if(this.assignments.findIndex(r=>r.playerPoolID===l.playerPoolID&&r.clubUserID===n.clubUserID)===-1){let r=new Gi;r.clubUserID=n.clubUserID,r.playerPoolID=l.playerPoolID,r.playerPool=l,this.assignments.push(r)}})}),this.assignments.sort((n,l)=>n.playerPool.name.localeCompare(l.playerPool.name)),this.assignPlayerPools=void 0,this.selectedStaff=[],this.tryoutService.staff=void 0,this.siteDataService.showSiteSuccessAlert("Assignment(s) saved successfully."),this.showAssignModal=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request."),this.showAssignMo
705dal=!1}})}getPlayerPoolAssignments(n){return this.assignments.filter(l=>l.clubUserID===n)}};d.\u0275fac=function(l){return new(l||d)(E(Y),E(ee),E(q),E(ge),E(G))},d.\u0275cmp=V({type:d,selectors:[["ng-component"]],standalone:!1,decls:63,vars:22,consts:[["role","main"],["parentLinkText","Staff Assignments",3,"pageTitle","showBackButton","parentLinkUrl"],[3,"adminFilterSearch","hideReset","showLabels"],["primary",""],[1,"col","pr-0"],[1,"form-group"],["type","text","placeholder","Last Name",3,"ngModelChange","ngModel"],["advanced",""],["header","Assign Staff",3,"visibleChange","visible","closable","modal","styleClass"],[1,"form-wrapper"],[1,"horizontal-form"],["optionLabel","name","appendTo","body",3,"ngModelChange","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel","autofocusFilter"],["slot","secondary"],[1,"btn",3,"click"],["slot","primary"],[1,"btn","btn-primary",3,"click"],["optionLabel","name","styleClass","full-width","appendTo","body",3,"ngModelChange","autofocusFilter","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel"],[1,"table-responsive"],["sortField","lastName","dataKey","clubUserID",1,"table","table-striped","table-sm",3,"selectionChange","value","tableStyleClass","loading","selection"],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],[3,"value"],[3,"click"]],template:function(l,r){l&1&&(o(0,"main",0),e(1,`
706  `),o(2,"app-admin-header",1),e(3,`
707  `),a(),e(4,`
708
709  `),o(5,"app-admin-header-description"),e(6),F(7,"lowercase"),a(),e(8,`
710
711  `),o(9,"app-admin-filter",2),v("adminFilterSearch",function(){return r.search()}),e(10,`
712    `),pe(11,3),e(12,`
713      `),o(13,"div",4),e(14,`
714        `),o(15,"div",5),e(16,`
715          `),o(17,"label"),e(18,"Last Name"),a(),e(19,`
716          `),o(20,"input",6),I("ngModelChange",function(x){return P(r.lastName,x)||(r.lastName=x),x}),a(),e(21,`
717        `),a(),e(22,`
718      `),a(),e(23,`
719      `),p(24,po,13,7),_e(),e(25,`
720    `),U(26,7),e(27,`
721  `),a(),e(28,`
722  `),p(29,Co,22,4),a(),e(30,`
723`),o(31,"p-dialog",8),I("visibleChange",function(x){return P(r.showAssignModal,x)||(r.showAssignModal=x),x}),e(32,`
724  `),o(33,"div",9),e(34,`
725    `),o(35,"div",10),e(36,`
726      `),o(37,"div",5),e(38,`
727        `),o(39,"label"),e(40,"Player Pool"),a(),e(41,`
728        `),o(42,"p-multiSelect",11),I("ngModelChange",function(x){return P(r.assignPlayerPools,x)||(r.assignPlayerPools=x),x}),e(43,`
729        `),a(),e(44,`
730      `),a(),e(45,`
731      
732        `),o(46,"app-dialog-footer"),e(47,`
733          `),pe(48,12),e(49,`
734            `),o(50,"button",13),v("click",function(){return r.showAssignModal=!1}),e(51,"Cancel"),a(),e(52,`
735          `),_e(),e(53,`
736          `),pe(54,14),e(55,`
737            `),o(56,"button",15),v("click",function(){return r.assignStaff()}),e(57,"Save"),a(),e(58,`
738          `),_e(),e(59,`
739        `),a(),e(60,`
740      
741    `),a(),e(61,`
742  `),a(),e(62,`
743`),a()),l&2&&(s(2),u("pageTitle",r.regName)("showBackButton",!0)("parentLinkUrl","/admin/tryouts"),s(4),S(`
744    Select the staff members who should have access to player groups.
745    Assigned staff members will be able to view players, player information,
746    and be allowed to add notes, `,Z(7,20,r.tryoutService==null||r.tryoutService.settings==null?null:r.tryoutService.settings.ratingLabelOverride),`s, and rankings to
747    player tryout records.
748  `),s(3),u("hideReset",!0)("showLabels",!0),s(11),b("ngModel",r.lastName),s(4),_(r.tryoutService.playerPools&&r.tryoutService.playerPools.length>0?24:-1),s(5),_(r.showTable?29:-1),s(2),b("visible",r.showAssignModal),u("closable",!1)("modal",!0)("styleClass","standardWidthDialog"),s(11),b("ngModel",r.assignPlayerPools),u("options",r.tryoutService.playerPools)("filter",!0)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} player pools selected")("autofocusFilter",!0))},dependencies:[Pe,Q,z,te,H,oi,et,Ze,he,Zt,ei,ie,Me,Ft],encapsulation:2});let i=d;return i})();var ho=()=>({overflow:"visible"});function fo(i,d){i&1&&(e(0,`
749          `),o(1,"tr"),e(2,`
750            `),o(3,"td",10),e(4,`
751              No dates found
752            `),a(),e(5,`
753          `),a(),e(6,`
754        `))}function go(i,d){if(i&1&&(e(0,`
755              `),o(1,"th"),e(2),a(),e(3,`
756            `)),i&2){let t=d.$implicit;s(2),S(`
757                `,t.header,`
758              `)}}function vo(i,d){if(i&1&&(e(0,`
759          `),o(1,"tr"),e(2,`
760            `),A(3,go,4,1,null,null,w),a(),e(5,`
761        `)),i&2){let t=c();s(3),R(t.cols)}}function So(i,d){if(i&1){let t=D();e(0,`
762          `),o(1,"tr"),e(2,`
763            `),o(3,"td"),e(4),a(),e(5,`
764            `),o(6,"td"),e(7),F(8,"date"),a(),e(9,`
765            `),o(10,"td")(11,"a",11),v("click",function(){let l=y(t).$implicit,r=c();return C(r.edit(l))}),e(12,"Edit"),a()(),e(13,`
766          `),a(),e(14,`
767        `)}if(i&2){let t=d.$implicit;s(4),f(t.title),s(3),f(Z(8,2,t.tryoutDate))}}function Do(i,d){if(i&1){let t=D();e(0,`
768      `),o(1,"app-dynamic-form",12,0),v("onDelete",function(){y(t);let l=c();return C(l.deleteTryoutDate())})("onSubmit",function(l){y(t);let r=c();return C(r.save(l))})("onCancel",function(){y(t);let l=c();return C(l.showEditDialog=!1)}),e(3,`
769        `),o(4,"app-dynamic-form-field",13),e(5,`
770        `),a(),e(6,`
771        `),o(7,"app-dynamic-form-field",14),e(8,`
772        `),a(),e(9,`
773      `),a(),e(10,`
774    `)}if(i&2){let t=c();
774s(),u("fields",t.fields)("showDeleteButton",t.editEntity&&t.editEntity.registrationTryoutDateID&&!t.editEntity.isDefault)("entity",t.editEntity)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("buttonsPosition","left")}}var Zi=(()=>{let d=class d{constructor(n,l,r,m){this.router=n,this.siteDataService=l,this.tryoutService=r,this.route=m,this.loading=!0,this.showEditDialog=!1,this.cols=[{field:"title",header:"Title"},{field:"tryoutDate",header:"Tryout Date"},{field:"registrationTryoutDateID",header:"Edit"}];let x=this.router.getCurrentNavigation()??this.router.lastSuccessfulNavigation();x?.extras.state&&(this.regName=x.extras.state.regName)}ngOnInit(){this.registrationID=this.route.snapshot.params.registrationID,j({metaData:this.tryoutService.getTryoutDateMetadata(),dates:this.tryoutService.getRegistrationTryoutDates(this.registrationID)}).subscribe({next:n=>{this.fields=n.metaData.fields,this.tryoutDates=n.dates,this.tryoutDates?.length===0?this.createDefaultTryoutDate():this.loading=!1}}),this.siteDataService.hideSiteLoader()}createDefaultTryoutDate(){this.editEntity=new Ge,this.editEntity.title="Take Attendance",this.editEntity.isDefault=!0,this.save(this.editEntity)}edit(n){this.editEntity=n,this.showEditDialog=!0}create(){this.editEntity=new Ge,this.editEntity.title=`Day ${this.tryoutDates.length+1}`,this.showEditDialog=!0}save(n){n.registrationTryoutDateID=this.editEntity.registrationTryoutDateID,n.registrationID=this.registrationID,this.tryoutService.saveTryoutDate(n).subscribe({next:l=>{this.refresh()},error:()=>{this.siteDataService.showSiteErrorAlert("Failed to save record"),this.refresh()}})}deleteTryoutDate(){this.tryoutService.deleteTryoutDate(this.editEntity.registrationTryoutDateID).subscribe({next:()=>{this.refresh()},error:()=>{this.siteDataService.showSiteErrorAlert("Failed to remove record"),this.refresh()}})}refresh(){this.loading=!0,this.tryoutService.getRegistrationTryoutDates(this.registrationID).subscribe({next:n=>{this.tryoutDates=n,this.loading=!1}}),this.showEditDialog=!1,this.editEntity=void 0}};d.\u0275fac=function(l){return new(l||d)(E(ee),E(G),E(Y),E(q))},d.\u0275cmp=V({type:d,selectors:[["ng-component"]],standalone:!1,decls:24,vars:16,consts:[["form",""],["role","main"],["primaryBtnText","New",3,"primaryBtnAction","pageTitle","showBackButton","parentLinkText","parentLinkUrl"],[1,"row"],[1,"col-xl-10"],["responsiveLayout","scroll",3,"columns","value","loading"],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],["styleClass","standardWidthDialog",3,"visibleChange","visible","showHeader","closable","modal","draggable","header","contentStyle"],["colspan","6"],[3,"click"],[3,"onDelete","onSubmit","onCancel","fields","showDeleteButton","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","title"],["fieldName","tryoutDate"]],template:function(l,r){l&1&&(o(0,"main",1),e(1,`
775  `),o(2,"app-admin-header",2),v("primaryBtnAction",function(){return r.create()}),e(3,`
776  `),a(),e(4,`
777  `),o(5,"div",3),e(6,`
778    `),o(7,"div",4),e(8,`
779      `),o(9,"p-table",5),e(10,`
780        `),T(11,fo,7,0,"ng-template",6),e(12,`
781        `),T(13,vo,6,0,"ng-template",7),e(14,`
782        `),T(15,So,15,4,"ng-template",8),e(16,`
783      `),a(),e(17,`
784    `),a(),e(18,`
785  `),a(),e(19,`
786  `),o(20,"p-dialog",9),I("visibleChange",function(x){return P(r.showEditDialog,x)||(r.showEditDialog=x),x}),e(21,`
787    `),p(22,Do,11,8),a(),e(23,`
788`),a()),l&2&&(s(2),u("pageTitle","Manage Tryout Dates: "+r.regName)("showBackButton",!0)("parentLinkText","Tryouts")("parentLinkUrl","/admin/tryouts"),s(7),u("columns",r.cols)("value",r.tryoutDates)("loading",r.loading),s(11),b("visible",r.showEditDialog),u("showHeader",!0)("closable",!1)("modal",!0)("draggable",!1)("header",r.editEntity!=null&&r.editEntity.registrationTryoutDateID?"Edit Tryout Date":"Create Tryout Date")("contentStyle",ne(15,ho)),s(2),_(r.editEntity&&r.fields?22:-1))},dependencies:[ce,de,te,H,he,ie,se],encapsulation:2});let i=d;return i})();var en=(i,d)=>["registrations",i,"attendance",d],Oe=i=>({regName:i}),Eo=i=>["registrations",i,"player-pools"],To=i=>["registrations",i,"assign-staff"],bo=i=>["registrations",i,"tryout-dates"],Po=i=>["registrations",i,"tiers"];function Io(i,d){if(i&1){let t=D();e(0,`
789          `),o(1,"li",4),e(2,`
790            `),o(3,"a",5),v("click",function(){y(t);let l=c(2);return C(l.activeTab=2)}),e(4,`
791              Tryout Settings
792            `),a(),e(5,`
793          `),a(),e(6,`
794        `)}if(i&2){let t=c(2);s(),L("active",t.activeTab===2),s(2),ue("aria-selected",t.activeTab===2)}}function wo(i,d){if(i&1){let t=D();e(0,`
795    `),o(1,"div",2),e(2,`
796      `),o(3,"ul",3),e(4,`
797        `),o(5,"li",4),e(6,`
798          `),o(7,"a",5),v("click",function(){y(t);let l=c();return C(l.activeTab=1)}),e(8,`
799            Tryouts
800          `),a(),e(9,`
801        `),a(),e(10,`
802        `),p(11,Io,7,3),a(),e(12,`
803    `),a(),e(13,`
804  `)}if(i&2){let t=c();s(5),L("active",t.activeTab===1),s(2),ue("aria-selected",t.activeTab===1),s(4),_(t.user[t.Permission.TryoutSettings]?11:-1)}}function Ao(i,d){if(i&1&&(e(0,`
805                                    `),o(1,"span"),e(2),F(3,"date"),a(),e(4,`
806                                  `)),i&2){let t=c().$implicit;s(2),S(`
807                                      -
808                                    `,Z(3,1,t.tryoutDate))}}function Ro(i,d){if(i&1&&(e(0,`
809                            `),o(1,"a",22),e(2,`
810                              `),o(3,"div",23),e(4,`
811                                `),o(5,"div",24),e(6,`
812                                  `),o(7,"div",25),e(8),p(9,Ao,5,3),a(),e(10,`
813                                `),h(11,"i",26),e(12,`
814                              `),a(),e(13,`
815                            `),a(),e(14,`
816                          `),a(),e(15,`
817                        `)),i&2){let t=d.$implicit,n=c(4).$implicit;s(),u("routerLink",_t(4,en,n.registrationID,t.registrationTryoutDateID))("state",O(7,Oe,n.name)),s(7),S(`
818                                    `,t.title," "),s(),_(t.tryoutDate?9:-1)}}function Fo(i,d){if(i&1&&(e(0,`
819                      `),o(1,"p-accordion",19),e(2,`
820                        `),o(3,"p-accordion-panel",20),e(4,`
821                          `),o(5,"p-accordion-header"),e(6,`
822                            `),o(7,"span"),h(8,"i",21),e(9,"Take Attendance"),a(),e(10,`
823                        `),a(),e(11,`
824                          `),o(12,"p-accordion-content"),e(13,`
825                          `),A(14,Ro,16,9,null,null,w),a(),e(16,`
826                        `),a(),e(17,`
827                    `),a(),e(18,`
828                  `)),i&2){let t=c(3).$implicit,n=c(2);s(),u("expandIcon","fal fa-chevron-down")("collapseIcon","fal fa-chevron-up"),s(2),u("value",t.registrationID),s(11),R(n.getTryoutDays(t.registrationID))}}function Mo(i,d){if(i&1&&(e(0,`
829                      `),o(1,"a",22),e(2,`
830                        `),h(3,"app-title-link",27),F(4,"date"),e(5,`
831                      `),a(),e(6,`
832                    `)),i&2){let t=d.$implicit,n=c(4).$implicit;s(),u("routerLink",_t(6,en,n.registrationID,t.registrationTryoutDateID))("state",O(9,Oe,n.name)),s(2),u("iconClass","fa-duotone fa-pen-to-square")("text",t.tryoutDate?t.title+" - "+Z(4,4,t.tryoutDate):t.title)}}function ko(i,d){if(i&1&&(e(0,`
833                    `),A(1,Mo,7,11,null,null,w)),i&2){let t=c(3).$implicit,n=c(2);s(),R(n.getTryoutDays(t.registrationID))}}function No(i,d){if(i&1&&(e(0,`
834                    `),p(1,Fo,19,3)(2,ko,3,0)),i&2){let t,n=c(2).$implicit,l=c(2);s(),_(((t=l.getTryoutDays(n.registrationID))==null?null:t.length)>1?1:2)}}function Vo(i,d){if(i&1){let t=D();e(0,`
835                  `),o(1,"a",28),v("click",function(){y(t);let l=c(2).$implicit,r=c(2);return C(r.createTryoutDateAndNavigate(l))}),e(2,`
836                    `),h(3,"app-title-link",29),e(4,`
837                  `),a(),e(5,`
838                `)}i&2&&(s(3),u("text","Take Attendance"))}function Lo(i,d){if(i&1&&(e(0,`
839                  `),p(1,No,3,1)(2,Vo,6,1)),i&2){let t,n=c().$implicit,l=c(2);s(),_(((t=l.getTryoutDays(n.registrationID))==null?null:t.length)>0?1:2)}}function Oo(i,d){if(i&1&&(e(0,`
840                `),o(1,"a",22),e(2,`
841                  `),h(3,"app-title-link",30),e(4,`
842                `),a(),e(5,`
843              `)),i&2){let t=c().$implicit;s(),u("routerLink",O(3,Eo,t.registrationID))("state",O(5,Oe,t.name)),s(2),u("text","View Player Pools")}}function Bo(i,d){if(i&1){let t=D();e(0,`
844                `),o(1,"a",31),v("click",function(){y(t);let l=c().$implicit,r=c(2);return C(r.showAddPlayer(l.registrationID))}),e(2,`
845                  `),h(3,"app-title-link",32),e(4,`
846                `),a(),e(5,`
847              `)}}function Go(i,d){if(i&1&&(e(0,`
848                `),o(1,"a",22),e(2,`
849                  `),h(3,"app-title-link",33),e(4,`
850                `),a(),e(5,`
851              `)),i&2){let t=c().$implicit;s(),u("routerLink",O(3,To,t.registrationID))("state",O(5,Oe,t.name)),s(2),u("text","Assign Staff")}}function Yo(i,d){if(i&1&&(e(0,`
852                `),o(1,"a",22),e(2,`
853                  `),h(3,"app-title-link",34),e(4,`
854                `),a(),e(5,`
855              `)),i&2){let t=c().$implicit;s(),u("routerLink",O(3,bo,t.registrationID))("state",O(5,Oe,t.name)),s(2),u("text","Configure Tryout Dates")}}function $o(i,d){if(i&1&&(e(0,`
856                `),o(1,"a",22),e(2,`
857                  `),h(3,"app-title-link",34),e(4,`
858                `),a(),e(5,`
859              `)),i&2){let t=c().$implicit;s(),u("routerLink",O(3,Po,t.registrationID))("state",O(5,Oe,t.name)),s(2),u("text","Configure Tiers")}}function Uo(i,d){if(i&1&&(e(0,`
860        `),o(1,"div",9),e(2,`
861          `),o(3,"div",10),e(4,`
862            `),o(5,"div",11),e(6),a(),e(7,`
863            `),o(8,"h2"),e(9),a(),e(10,`
864          `),a(),e(11,`
865          `),o(12,"div",12),e(13,`
866            `),o(14,"div",13),e(15,`
867              `),o(16,"div",14),e(17,`
868                `),o(18,"div",15),e(19,`
869                  `),o(20,"span",16),e(21),a(),e(22,`
870                  `),o(23,"span",17),e(24,"Registrations"),a(),e(25,`
871                `),a(),e(26,`
872              `),a(),e(27,`
873              `),o(28,"div",18),e(29,`
874                `),p(30,Lo,3,1),p(31,Oo,6,7),p(32,Bo,6,0),p(33,Go,6,7),p(34,Yo,6,7),p(35,$o,6,7),a(),e(36,`
875          `),a(),e(37,`
876        `),a(),e(38,`
877      `),a(),e(39,`
878    `)),i&2){let t=d.$implicit,n=c(2);s(6),f(t.program==null?null:t.program.name),s(3),f(t.name),s(12),f(t.playerRegistrationCount),s(9),_(n.user[n.Permission.TakeAttendance]?30:-1),s(),_(n.user[n.Permission.PlayerPools]?31:-1),s(),_(n.user[n.Permission.AddPlayerToTryout]?32:-1),s(),_(n.user[n.Permission.AssignStaffToTryout]?33:-1),s(),_(n.user[n.Permission.ConfigureTryoutDates]?34:-1),s(),_(n.user[n.Permission.TryoutSettings]?35:-1)}}function Wo(i,d){if(i&1){let t=D();e(0,`
879      `),o(1,"div",6),e(2,`
880        `),o(3,"span",7),e(4,"View tryouts from:"),a(),e(5,`
881        `),o(6,"p-select",8),I("ngModelChange",function(l){y(t);let r=c();return P(r.teamService.selectedTryoutDateRange,l)||(r.teamService.selectedTryoutDateRange=l),C(l)}),v("onChange",function(){y(t);let l=c();return C(l.updateRegistrations())}),e(7,`
882        `),a(),e(8,`
883      `),a(),e(9,`
884      `),A(10,Uo,40,9,null,null,w)}if(i&2){let t=c();s(6),u("options",t.tryoutDateRanges),b("ngModel",t.teamService.selectedTryoutDateRange),s(4),R(t.registrations)}}function jo(i,d){i&1&&(e(0,`
885    `),h(1,"app-tryout-settings"),e(2,`
886  `))}function Qo(i,d){if(i&1){let t=D();e(0,`
887  `),o(1,"app-add-player-to-tryout",35),v("close",function(){y(t);let l=c();return C(l.showAddPlayerModal=!1)}),a(),e(2,`
888`)}if(i&2){let t=c();s(),u("registrationID",t.registrationID)}}var tn=(()=>{let d=class d{constructor(n,l,r,m,x,g,X,re){this.router=n,this.route=l,this.programService=r,this.registrationService=m,this.siteDataService=x,this.teamService=g,this.tryoutService=X,this.authorizeService=re,this.unsubscribe$=new be,this.activeTab=1,this.showAddNewModal=!1,this.showManageStaffModal=!1,this.showAddPlayerModal=!1,this.tryoutDateRanges=$t,this.showAttendanceDays=!1,this.Permission=k}ngOnInit(){this.authorizeService.getUser().subscribe(n=>{this.user=n}),this.programService.getProgramsByType([Qt.TRYOUTS]).subscribe({next:n=>{this.programs=n.results,this.teamService.selectedTryoutDateRange||(this.teamService.selectedTryoutDateRange=this.tryoutDateRanges[0]),this.programs.length>0?this.updateRegistrations():this.siteDataService.hideSiteLoader()},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}updateRegistrations(){let n=new Date;n.setMonth(n.getMonth()-this.teamService.selectedTryoutDateRange.value),this.registrationService.getFilteredRegistrations(this.programs.map(l=>l.programID),n,null,!1,!0).pipe(De(this.unsubscribe$)).subscribe(l=>{this.registrations=l;let r=[];this.registrations.sort((m,x)=>{let g=new Date,X=m.program?.endDate?new Date(m.program?.endDate):null,re=x.program?.endDate?new Date(x.program?.endDate):null;if(X&&re){let st=X>g,dt=re>g;if(st&&dt)return this.compareRegistrations(m,x);{let ct=m.endDate?new Date(m.endDate).getTime():0;return(x.endDate?new Date(x.endDate).getTime():0)-ct}}else{if(X)return-1;if(re)return 1}return this.compareRegistrations(m,x)}),this.registrations.forEach(m=>r.push(this.tryoutService.getRegistrationTryoutDates(m.registrationID))),r.length>0?j(r).pipe(De(this.unsubscribe$)).subscribe({next:m=>{this.registrationTryoutDates=[],m&&m.forEach(x=>{this.registrationTryoutDates=this.registrationTryoutDates.concat(x)}),this.siteDataService.hideSiteLoader()}}):this.siteDataService.hideSiteLoader()})}compareRegistrations(n,l){if(n.tryoutsSortOrder!==null&&l.tryoutsSortOrder!==null){if(n.tryoutsSortOrder!==l.tryoutsSortOrder)return n.tryoutsSortOrder-l.tryoutsSortOrder}else{if(n.tryoutsSortOrder!==null)return-1;if(l.tryoutsSortOrder!==null)return 1}let r=n.endDate?new Date(n.endDate).getTime():0;return(l.endDate?new Date(l.endDate).getTime():0)-r}toggleAttendance(){this.showAttendanceDays=!this.showAttendanceDays}getRegistrations(n){return this.registrations?.filter(l=>l.programID===n)}getTryoutDays(n){return this.registrationTryoutDates?.filter(l=>l.registrationID===n)}showAddPlayer(n){this.registrationID=n,this.showAddPlayerModal=!0}createTryoutDateAndNavigate(n){let l=new Ge;l.registrationID=n.registrationID,l.title="Take Attendance",l.isDefault=!0,this.tryoutService.saveTryoutDate(l).subscribe({next:r=>{this.router.navigate([`./registrations/${n.registrationID}/attendance/${r.registrationTryoutDateID}`],{relativeTo:this.route,state:{regName:n.name}})}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(E(ee),E(q),E(it),E(ge),E(G),E(fe),E(Y),E(xe))},d.\u0275cmp=V({type:d,selectors:[["ng-component"]],standalone:!1,decls:9,vars:3,consts:[["role","main"],["pageTitle","Tryouts"],[1,"tabs"],["role","tablist",1,"tab-nav","no-bullets","inline-list"],[1,"nav-item"],["role","tab","aria-controls","home",1,"nav-link",3,"click"],[1,"my-4"],[1,"text-uppercase","text-medium","d-inline-block","mr-2"],["optionLabel","label",3,"ngModelChange","onChange","options","ngModel"],[1,"card","team-card","col-xl-12"],[1,"card-header"],[1,"sub-head"],[1,"card-body","py-3"],[1,"row"],[1,"col-md-5"],[1,"team-details-window","full-height"],[1,"large-number","text-green-alt"],[1,"text-large","text-uppercase","text-grey"],[1,"col-md-7"],[1,"p-accordion-naked","p-accordion-links","accordion-content-indented",3,"expandIcon","collapseIcon"],[1,"accordion-border-bottom",3,"value"],[1,"fa-duotone","fa-pen-to-square","d-inline-block","pr-5"],[1,"text-decoration-none",3,"routerLink","state"],[1,"row","full-width","no-gutters","mb-1"],[1,"col","d-flex","justify-content-between","align-items-center","ml-5","bg-blue-lt","px-3","py-1"],[1,""],[1,"fal","fa-chevron-right"],[3,"iconClass","text"],[1,"text-decoration-none",3,"click"],["iconClass","fa-duotone fa-pen-to-square",3,"text"],["iconClass","fa-duotone fa-users",3,"text"],["href","javascript:void(0)",1,"text-decoration-none",3,"click"],["text","Add Player To Tryout","iconClass","fa-duotone fa-user-plus"],["iconClass","fa-duotone fa-whistle",3,"text"],["iconClass"," fa-duotone fa-gear",3,"text"],[3,"close","registrationID"]],template:function(l,r){if(l&1&&(o(0,"main",0),e(1,`
889  `),h(2,"app-admin-header",1),e(3,`
890  `),p(4,wo,14,4),p(5,Wo,12,2)(6,jo,3,0),e(7,`
891
892`),p(8,Qo,3,1),a()),l&2){let m;s(4),_(r.user[r.Permission.Tryouts]?4:-1),s(),_((m=r.activeTab)===1?5:m===2?6:-1),s(3),_(r.showAddPlayerModal?8:-1)}},dependencies:[Q,z,Ie,H,ui,ye,hi,xi,yi,Ci,lt,rt,se],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}.radio-group.active[_ngcontent-%COMP%]{border-color:var(--green-400);background-color:var(--blue-25)}",".team-details-window[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;border:var(--border);border-radius:8px}.team-details-window[_ngcontent-%COMP%]   .text-largest[_ngcontent-%COMP%]{font-size:1.6rem}.team-details-window[_ngcontent-%COMP%]   .large-number[_ngcontent-%COMP%]{font-size:3.75rem;display:block;line-height:4rem}"]});let i=d;return i})();var M=(function(i){return i[i.PLAYERS=1]="PLAYERS",i[i.CRITERIA=2]="CRITERIA",i})(M||{}),Be=class{constructor(d){this.tryoutDates=d,this.page=1,this.rows=25,this.orderBy="lastName ASC",this.testUserOption=1,this.showAdvancedOptions=!1,d&&(this.registrationTryoutDateID=[],d.forEach(t=>this.registrationTryoutDateID.push(t.registrationTryoutDateID)))}};var zo=()=>[1,2,3,4],Ue=()=>[1,2,3,4,5,6,7,8,9,10];function qo(i,d){if(i&1&&(e(0,`
893    `),h(1,"app-pill",20),F(2,"date"),e(3,`
894    `)),i&2){let t=c(2);s(),u("text","Open through "+W(2,1,t.registrationAssignment.endD
894ate,"MM/dd/yy"))}}function Ho(i,d){if(i&1&&(e(0,`
895    `),o(1,"div",21),e(2,`
896        `),o(3,"app-inline-alert",22),e(4,`
897            `),o(5,"span",23),e(6),F(7,"date"),a(),e(8,`
898        `),a(),e(9,`
899    `),a(),e(10,`
900    `)),i&2){let t=c(2);s(6),S(`
901                Note: `,t.registrationAssignment?"this evaluation expired on "+W(7,1,t.registrationAssignment.endDate,"MM/dd/yy"):"this evaluation is expired",`
902            `)}}function Jo(i,d){if(i&1&&(e(0,`
903    `),p(1,qo,4,4),p(2,Ho,11,4)),i&2){let t=c();s(),_(t.isEditable?1:-1),s(),_(t.isEditable?-1:2)}}function Ko(i,d){i&1&&U(0)}function Xo(i,d){if(i&1&&(e(0,`
904            `),T(1,Ko,1,0,"ng-container",24),e(2,`
905            `)),i&2){c();let t=$(51);s(),u("ngTemplateOutlet",t)}}function Zo(i,d){i&1&&U(0)}function er(i,d){if(i&1&&(e(0,`
906            `),T(1,Zo,1,0,"ng-container",24),e(2,`
907            `)),i&2){c();let t=$(45);s(),u("ngTemplateOutlet",t)}}function tr(i,d){i&1&&U(0)}function ir(i,d){if(i&1&&(e(0,`
908                `),T(1,tr,1,0,"ng-container",24),e(2,`
909                `)),i&2){c();let t=$(54);s(),u("ngTemplateOutlet",t)}}function nr(i,d){i&1&&U(0)}function ar(i,d){if(i&1&&(e(0,`
910                `),T(1,nr,1,0,"ng-container",24),e(2,`
911                `)),i&2){c();let t=$(48);s(),u("ngTemplateOutlet",t)}}function or(i,d){if(i&1){let t=D();e(0,`
912    `),o(1,"div",25),e(2,`
913        `),o(3,"div",26),e(4,`
914            `),o(5,"div",27),e(6,`
915                `),o(7,"div",28),e(8,`
916                    `),o(9,"span",29),e(10,`
917                        `),o(11,"input",30,6),I("ngModelChange",function(l){y(t);let r=c(3);return P(r.searchData[r.EvaluationTab.CRITERIA].filters.lastName,l)||(r.searchData[r.EvaluationTab.CRITERIA].filters.lastName=l),C(l)}),a(),e(13,`
918                        `),h(14,"label",31),e(15,`
919                    `),a(),e(16,`
920                `),a(),e(17,`
921                `),o(18,"div",32),e(19,`
922                    `),o(20,"button",33),v("click",function(){y(t);let l=c(3);return C(l.searchData[l.EvaluationTab.CRITERIA].filters.showAdvancedOptions=!l.searchData[l.EvaluationTab.CRITERIA].filters.showAdvancedOptions)}),e(21,`
923                        `),h(22,"i",34),e(23,`
924                    `),a(),e(24,`
925                `),a(),e(25,`
926                `),o(26,"div",35),e(27,`
927                    `),o(28,"button",33),v("click",function(){y(t);let l=c(3);return C(l.searchPlayers(!1))}),e(29,`
928                        `),h(30,"i",36),e(31,`
929                    `),a(),e(32,`
930                `),a(),e(33,`
931            `),a(),e(34,`
932        `),a(),e(35,`
933    `),a(),e(36,`
934    `)}if(i&2){let t=c(3);s(11),b("ngModel",t.searchData[t.EvaluationTab.CRITERIA].filters.lastName)}}function rr(i,d){if(i&1){let t=D();e(0,`
935    `),o(1,"div",47),e(2,`
936        `),o(3,"div",48),e(4,`
937            `),o(5,"label",49),e(6,"Tier"),a(),e(7,`
938        `),a(),e(8,`
939        `),o(9,"div",40),e(10,`
940            `),o(11,"p-select",50),I("ngModelChange",function(l){y(t);let r=c(4);return P(r.searchData[r.EvaluationTab.CRITERIA].filters.tierID,l)||(r.searchData[r.EvaluationTab.CRITERIA].filters.tierID=l),C(l)}),e(12,`
941            `),a(),e(13,`
942        `),a(),e(14,`
943    `),a(),e(15,`
944    `)}if(i&2){let t=c(4);s(11),b("ngModel",t.searchData[t.EvaluationTab.CRITERIA].filters.tierID),u("options",t.playerPoolTiers)("disabled",t.searching||t.paginating)}}function lr(i,d){if(i&1){let t=D();e(0,`
945    `),o(1,"div",37),e(2,`
946        `),o(3,"div",38),e(4,`
947            `),o(5,"label",39),e(6,"Tryout date(s)"),a(),e(7,`
948        `),a(),e(8,`
949        `),o(9,"div",40),e(10,`
950                `),o(11,"p-multiSelect",41),I("ngModelChange",function(l){y(t);let r=c(3);return P(r.searchData[r.EvaluationTab.CRITERIA].filters.registrationTryoutDateID,l)||(r.searchData[r.EvaluationTab.CRITERIA].filters.registrationTryoutDateID=l),C(l)}),e(12,`
951            `),a(),e(13,`
952        `),a(),e(14,`
953    `),a(),e(15,`
954    `),p(16,rr,16,3),o(17,"div",42),e(18,`
955        `),o(19,"div",43),e(20,`
956            `),o(21,"label",44),e(22,"SORT"),a(),e(23,`
957        `),a(),e(24,`
958        `),o(25,"div",45),e(26,`
959            `),o(27,"p-select",46),I("ngModelChange",function(l){y(t);let r=c(3);return P(r.searchData[r.EvaluationTab.CRITERIA].filters.orderBy,l)||(r.searchData[r.EvaluationTab.CRITERIA].filters.orderBy=l),C(l)}),e(28,`
960            `),a(),e(29,`
961        `),a(),e(30,`
962    `),a(),e(31,`
963    `)}if(i&2){let t=c(3);s(11),b("ngModel",t.searchData[t.EvaluationTab.CRITERIA].filters.registrationTryoutDateID),u("options",t.tryoutDates)("filter",!1)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} tryout dates selected")("disabled",t.searching||t.paginating),s(5),_((t.playerPoolTiers==null?null:t.playerPoolTiers.length)>0?16:-1),s(11),b("ngModel",t.searchData[t.EvaluationTab.CRITERIA].filters.orderBy),u("options",t.orderByOptions)("disabled",t.searching||t.paginating)}}function sr(i,d){if(i&1&&(e(0,`
964        `),o(1,"div",53),F(2,"safeHtml"),e(3,`
965        `),a(),e(4,`
966        `)),i&2){let t=c().$implicit;s(),u("innerHtml",Z(2,1,t.description),pt)}}function dr(i,d){if(i&1&&(e(0,`
967                                    `),h(1,"app-tag",61),e(2,`
968                                    `)),i&2){let t=c().$implicit,n=c(7);
968s(),u("text",(t.surveyCriteriaValuesCount||0)+"/"+n.totalPlayerCount)("clickable",!1)}}function cr(i,d){if(i&1&&(e(0,`
969                                    `),h(1,"app-tag",62),e(2,`
970                                    `)),i&2){let t=c().$implicit,n=c(7);s(),u("text",(t.surveyCriteriaValuesCount||0)+"/"+n.totalPlayerCount)("clickable",!1)}}function mr(i,d){if(i&1){let t=D();e(0,`
971            `),o(1,"li",55),e(2,`
972                `),o(3,"div"),e(4,`
973                    `),o(5,"a",56),v("click",function(){let l=y(t).$implicit,r=c(3).$implicit,m=c(4);return C(m.selectQuestion(r,l))}),e(6,`
974                        `),o(7,"div",57),e(8,`
975                            `),o(9,"div"),e(10),a(),e(11,`
976                            `),o(12,"div",58),e(13,`
977                                `),o(14,"div",59),e(15,`
978                                    `),p(16,dr,3,2),p(17,cr,3,2),a(),e(18,`
979                                `),h(19,"i",60),e(20,`
980                            `),a(),e(21,`
981                        `),a(),e(22,`
982                    `),a(),e(23,`
983                `),a(),e(24,`
984            `),a(),e(25,`
985            `)}if(i&2){let t=d.$implicit,n=d.$index,l=d.$count,r=c(7);s(),L("selected",(r.selectedQuestion==null?null:r.selectedQuestion.surveyQuestionID)===t.surveyQuestionID),s(4),L("border-bottom",n!==l-1),s(5),S(`
986                                `,t.questionText,`
987                            `),s(6),_((t.surveyCriteriaValuesCount||0)===r.totalPlayerCount?16:-1),s(),_((t.surveyCriteriaValuesCount||0)!==r.totalPlayerCount?17:-1)}}function pr(i,d){if(i&1&&(e(0,`
988        `),o(1,"ul",54),e(2,`
989            `),A(3,mr,26,7,null,null,w),a(),e(5,`
990        `)),i&2){let t=c(2).$implicit;s(3),R(t.questions)}}function _r(i,d){i&1&&(e(0,`
991        `),o(1,"app-inline-alert",63),e(2,`
992            This criteria group is missing criteria.
993        `),a(),e(3,`
994        `)),i&2&&(s(),u("isInline",!0))}function ur(i,d){if(i&1&&(e(0,`
995        `),p(1,pr,6,0)(2,_r,4,1)),i&2){let t=c().$implicit;s(),_(t.questions!=null&&t.questions.length?1:2)}}function xr(i,d){if(i&1&&(e(0,`
996                                    `),h(1,"app-tag",61),e(2,`
997                                    `)),i&2){let t=c().$implicit,n=c(7);s(),u("text",(t.surveyCriteriaValuesCount||0)+"/"+n.totalPlayerCount)("clickable",!1)}}function yr(i,d){if(i&1&&(e(0,`
998                                    `),h(1,"app-tag",62),e(2,`
999                                    `)),i&2){let t=c().$implicit,n=c(7);s(),u("text",(t.surveyCriteriaValuesCount||0)+"/"+n.totalPlayerCount)("clickable",!1)}}function Cr(i,d){if(i&1){let t=D();e(0,`
1000            `),o(1,"li",55),e(2,`
1001                `),o(3,"div"),e(4,`
1002                    `),o(5,"a",56),v("click",function(){let l=y(t).$implicit,r=c(3).$implicit,m=c(4);return C(m.selectCriteria(r,l))}),e(6,`
1003                        `),o(7,"div",57),e(8,`
1004                            `),o(9,"div",26),e(10),a(),e(11,`
1005                            `),o(12,"div",58),e(13,`
1006                                `),o(14,"div",59),e(15,`
1007                                    `),p(16,xr,3,2),p(17,yr,3,2),a(),e(18,`
1008                                `),h(19,"i",60),e(20,`
1009                            `),a(),e(21,`
1010                        `),a(),e(22,`
1011                    `),a(),e(23,`
1012                `),a(),e(24,`
1013            `),a(),e(25,`
1014            `)}if(i&2){let t=d.$implicit,n=d.$index,l=d.$count,r=c(3).$implicit,m=c(4);s(),L("selected",(m.selectedCriteria==null?null:m.selectedCriteria.surveyCriteriaGroupAssignID)===t.surveyCriteriaGroupAssignID),s(4),L("border-bottom",n!==l-1||r.includeOverallComments),s(5),S(`
1015                                `,t.surveyCriteria.name,`
1016                            `),s(6),_((t.surveyCriteriaValuesCount||0)===m.totalPlayerCount?16:-1),s(),_((t.surveyCriteriaValuesCount||0)!==m.totalPlayerCount?17:-1)}}function hr(i,d){if(i&1&&(e(0,`
1017                                    `),h(1,"app-tag",61),e(2,`
1018                                    `)),i&2){let t=c(4).$implicit,n=c(4);s(),u("text",((t==null?null:t.surveyCriteriaGroupCommentsCount)||0)+"/"+n.totalPlayerCount)("clickable",!1)}}function fr(i,d){if(i&1&&(e(0,`
1019                                    `),h(1,"app-tag",62),e(2,`
1020                                    `)),i&2){let t=c(4).$implicit,n=c(4);s(),u("text",((t==null?null:t.surveyCriteriaGroupCommentsCount)||0)+"/"+n.totalPlayerCount)("clickable",!1)}}function gr(i,d){if(i&1){let t=D();e(0,`
1021            `),o(1,"li",55),e(2,`
1022                `),o(3,"div"),e(4,`
1023                    `),o(5,"a",64),v("click",function(){y(t);let l=c(3).$implicit,r=c(4);return C(r.selectOverallComments(l))}),e(6,`
1024                        `),o(7,"div",57),e(8,`
1025                            `),o(9,"div",26),e(10),a(),e(11,`
1026                            `),o(12,"div",58),e(13,`
1027                                `),o(14,"div",59),e(15,`
1028                                    `),p(16,hr,3,2),p(17,fr,3,2),a(),e(18,`
1029                                `),h(19,"i",60),e(20,`
1030                            `),a(),e(21,`
1031                        `),a(),e(22,`
1032                    `),a(),e(23,`
1033                `),a(),e(24,`
1034            `),a(),e(25,`
1035            `)}if(i&2){let t=c(3).$implicit,n=c(4);s(),L("selected",!n.selectedCriteria&&n.selectedGroup.surveyCriteriaGroupID===t.surveyCriteriaGroupID),s(9),S(`
1036                                `,t.overallCommentsLabel||"Overall Comments",`
1037                            `),s(6),_(((t==null?null:t.surveyCriteriaGroupCommentsCount)||0)===n.totalPlayerCount?16:-1),s(),_(((t==null?null:t.surveyCriteriaGroupCommentsCount)||0)!==n.totalPlayerCount?17:-1)}}function vr(i,d){if(i&1&&(e(0,`
1038        `),o(1,"ul",54),e(2,`
1039            `),A(3,Cr,26,7,null,null,w),p(5,gr,26,5),a(),e(6,`
1040        `)),i&2){let t=c(2).$implicit;s(3),R(t.surveyCriteriaAssignments),s(2),_(t.includeOverallComments?5:-1)}}function Sr(i,d){i&1&&(e(0,`
1041        `),o(1,"app-inline-alert",63),e(2,`
1042            This criteria group is missing criteria.
1043        `),a(),e(3,`
1044        `)),i&2&&(s(),u("isInline",!0))}function Dr(i,d){if(i&1&&(e(0,`
1045        `),p(1,vr,7,1)(2,Sr,4,1)),i&2){let t=c().$implicit;s(),_(t.surveyCriteriaAssignments!=null&&t.surveyCriteriaAssignments.length?1:2)}}function Er(i,d){if(i&1&&(e(0,`
1046    `),o(1,"div",51),e(2,`
1047        `),o(3,"div",52),e(4),a(),e(5,`
1048        `),p(6,sr,5,3),p(7,ur,3,1)(8,Dr,3,1),a(),e(9,`
1049    `)),i&2){let t=d.$implicit,n=c(4);s(4),S(`
1050            `,t.name,`
1051        `),s(2),_(t.description?6:-1),s(),_(t.surveyCriteriaTypeID===n.SurveyCriteriaType.FREE_FORM_QUESTION?7:8)}}function Tr(i,d){if(i&1&&(e(0,`
1052    `),A(1,Er,10,3,null,null,w)),i&2){let t=c(3);s(),R(t.survey.criteriaGroups)}}function br(i,d){i&1&&(e(0,`
1053    `),o(1,"app-inline-alert",63),e(2,`
1054        This evaluation is incomplete and is not ready to fill out.
1055    `),a(),e(3,`
1056    `)),i&2&&(s(),u("isInline",!0))}function Pr(i,d){if(i&1&&(e(0,`
1057    `),p(1,or,37,1),p(2,lr,32,11),p(3,Tr,3,0)(4,br,4,1)),i&2){let t=c(2);s(),_(t.searchData[t.EvaluationTab.CRITERIA]!=null&&t.searchData[t.EvaluationTab.CRITERIA].filters?1:-1),s(),_(!(t.searchData[t.EvaluationTab.CRITERIA]==null||t.searchData[t.EvaluationTab.CRITERIA].filters==null)&&t.searchData[t.EvaluationTab.CRITERIA].filters.showAdvancedOptions?2:-1),s(),_(!(t.survey==null||t.survey.criteriaGroups==null)&&t.survey.criteriaGroups.length?3:4)}}function Ir(i,d){i&1&&(e(0,`
1058    `),o(1,"div",65),e(2,`
1059        `),o(3,"div",66),e(4,`
1060            `),h(5,"app-skeleton-template",67),e(6,`
1061        `),a(),e(7,`
1062    `),a(),e(8,`
1063    `))}function wr(i,d){i&1&&(e(0,`
1064    `),A(1,Ir,9,0,null,null,w)),i&2&&(s(),R(ne(0,zo)))}function Ar(i,d){if(i&1&&(e(0,`
1065    `),p(1,Pr,5,3)(2,wr,3,1)),i&2){let t=c();s(),_(t.loading?2:1)}}function Rr(i,d){if(i&1&&(e(0,`
1066    `),o(1,"div",21),e(2),a(),e(3,`
1067    `)),i&2){let t=c(5);s(2),S(`
1068        `,(t.selectedCriteria==null?null:t.selectedCriteria.description)||(t.selectedCriteria==null||t.selectedCriteria.surveyCriteria==null?null:t.selectedCriteria.surveyCriteria.description),`
1069    `)}}function Fr(i,d){if(i&1&&(e(0,`
1070    `),o(1,"div",69),e(2,`
1071        `),o(3,"strong"),e(4),a(),e(5,`
1072        `),o(6,"div",70),e(7,`
1073            `),o(8,"span",71),e(9,"Visible to:"),a(),e(10,`
1074            `),h(11,"app-criteria-group-visibility",72),e(12,`
1075        `),a(),e(13,`
1076    `),a(),e(14,`
1077    `),p(15,Rr,4,1)),i&2){let t=c(4);s(),L("mb-3",!(t.selectedCriteria!=null&&t.selectedCriteria.description||!(t.selectedCriteria==null||t.selectedCriteria.surveyCriteria==null)&&t.selectedCriteria.surveyCriteria.description||t.selectedQuestion!=null&&t.selectedQuestion.questionText))("mb-1",(t.selectedCriteria==null?null:t.selectedCriteria.description)||(t.selectedCriteria==null||t.selectedCriteria.surveyCriteria==null?null:t.selectedCriteria.surveyCriteria.description)||(t.selectedQuestion==null?null:t.selectedQuestion.questionText)),s(3),f((t.selectedCriteria==null||t.selectedCriteria.surveyCriteria==null?null:t.selectedCriteria.surveyCriteria.name)||(t.selectedQuestion==null?null:t.selectedQuestion.questionText)),s(7),u("visibility",t.selectedGroup.surveyCriteriaGroupVisibilityOptionID),s(4),_(t.selectedCriteria!=null&&t.selectedCriteria.description||!(t.selectedCriteria==null||t.selectedCriteria.surveyCriteria==null)&&t.selectedCriteria.surveyCriteria.description?15:-1)}}function Mr(i,d){if(i&1&&(e(0,`
1078        `),o(1,"div",74),e(2),a(),e(3,`
1079        `),o(4,"div",21),e(5,`
1080            Enter any additional comments, up to 500 characters.
1081            `),o(6,"div",70),e(7,`
1082                `),o(8,"div",71),e(9,"Visible to:"),a(),e(10,`
1083                `),h(11,"app-criteria-group-visibility",72),e(12,`
1084            `),a(),e(13,`
1085        `),a(),e(14,`
1086        `)),i&2){let t=c(6);s(2),S(`
1087            `,t.selectedGroup.overallCommentsLabel||"Overall Comments",`
1088        `),s(9),u("visibility",t.selectedGroup.surveyCriteriaGroupVisibilityOptionID)}}function kr(i,d){i&1&&U(0)}function Nr(i,d){if(i&1&&(e(0,`
1089                        `),T(1,kr,1,0,"ng-container",24),e(2,`
1090                    `)),i&2){c(2);let t=$(7);s(),u("ngTemplateOutlet",t)}}function Vr(i,d){if(i&1){let t=D();e(0,`
1091                `),o(1,"app-survey-criteria-value-edit",76),v("delete",function(){y(t);let l=c(7);return C(l.valueDeleted())}),e(2,`
1092                    `),T(3,Nr,3,1,"ng-template",null,8,J),e(5,`
1093                `),a(),e(6,`
1094                `)}if(i&2){let t=c().$implicit,n=c(6);s(),u("criteriaGroup",n.selectedGroup)("assignment",n.selectedCriteria)("surveyID",n.surveyID)("surveyResponseID",n.surveyResponseID)("playerID",t.player.playerID)("value",n.criteriaRightEditData[t.player.playerID])("inputIDPrefix","criteriaPanelRight-"+t.player.playerID)("editService",n.tryoutService)("isEditable",n.isEditable)}}function Lr(i,d){i&1&&U(0)}function Or(i,d){if(i&1&&(e(0,`
1095                        `),T(1,Lr,1,0,"ng-container",24),e(2,`
1096                    `)),i&2){c(2);let t=$(7);s(),u("ngTemplateOutlet",t)}}function Br(i,d){if(i&1){let t=D();e(0,`
1097                `),o(1,"app-survey-criteria-group-comment-edit",77),v("delete",function(){y(t);let l=c(7);return C(l.commentDeleted())}),e(2,`
1098                    `),T(3,Or,3,1,"ng-template",null,8,J),e(5,`
1099                `),a(),e(6,`
1100                `)}if(i&2){let t=c().$implicit,n=c(6);s(),u("criteriaGroup",n.selectedGroup)("surveyID",n.surveyID)("showAIAssistant",!0)("surveyResponseID",n.surveyResponseID)("playerID",t.player.playerID)("value",n.criteriaOverallCommentsRightEditData[t.player.playerID])("inputID","criteriaPanelRight-comments-"+t.player.playerID)("editService",n.tryoutService)("isEditable",n.isEditable)}}function Gr(i,d){i&1&&U(0)}function Yr(i,d){if(i&1&&(e(0,`
1101                        `),T(1,Gr,1,0,"ng-container",24),e(2,`
1102                    `)),i&2){c(2);let t=$(7);s(),u("ngTemplateOutlet",t)}}function $r(i,d){if(i&1){let t=D();e(0,`
1103                `),o(1,"app-survey-question-response-edit",78),v("delete",function(){y(t);let l=c(7);return C(l.valueDeleted())}),e(2,`
1104                    `),T(3,Yr,3,1,"ng-template",null,8,J),e(5,`
1105                `),a(),e(6,`
1106                `)}if(i&2){let t=c().$implicit,n=c(6);s(),u("question",n.selectedQuestion)("criteriaGroup",n.selectedGroup)("surveyID",n.surveyID)("surveyResponseID",n.surveyResponseID)("playerID",t.player.playerID)("value",n.criteriaFreeFormEditData[t.player.playerID])("inputIDPrefix","criteriaPanelRight-ff-"+t.player.playerID)("editService",n.tryoutService)("isEditable",n.isEditable)("showAIAssistant",!0)}}function Ur(i,d){if(i&1&&(e(0,`
1107                            `),o(1,"span"),e(2),a(),e(3,`
1108                            `)),i&2){let t=c(2).$implicit;s(2),S(`
1109                                \u2022 `,t.player.playerClubData.position.short
1109Name||t.player.playerClubData.position.name,`
1110                            `)}}function Wr(i,d){if(i&1&&(e(0,`
1111                            `),o(1,"span"),e(2),a(),e(3,`
1112                            `)),i&2){let t=c(2).$implicit;s(2),S(`
1113                                \u2022 #`,t==null||t.player==null||t.player.playerClubData==null?null:t.player.playerClubData.tryoutNumber,`
1114                            `)}}function jr(i,d){if(i&1&&(e(0,`
1115                    `),o(1,"div",79),e(2,`
1116                        `),o(3,"app-player-profile-photo",80),e(4,`
1117                        `),a(),e(5,`
1118                    `),a(),e(6,`
1119                    `),o(7,"div"),e(8,`
1120                        `),o(9,"div",81),e(10,`
1121                            `),o(11,"span"),e(12),a(),e(13,`
1122                        `),a(),e(14,`
1123                        `),o(15,"div",82),e(16,`
1124                            `),o(17,"span"),e(18),a(),e(19,`
1125                            `),o(20,"span"),e(21),F(22,"date"),a(),e(23,`
1126                            `),p(24,Ur,4,1),p(25,Wr,4,1),a(),e(26,`
1127                    `),a(),e(27,`
1128                `)),i&2){let t=c(),n=t.$implicit,l=t.$index,r=c(6);s(3),u("player",n.player)("firstName",n.player.firstName)("lastName",n.player.lastName)("userID",n.player.userID)("playerNumber",(l+1).toString())("largeCircle",!1)("initialsOnly",!1)("lazy",!0)("showCircle",!1)("registrationID",r.registrationID),s(9),le(`
1129                                `,n.player.firstName," ",n.player.lastName,`
1130                            `),s(6),S("",n.player.genderName," "),s(3),S("\u2022 ",W(22,16,n.player.dob,"y")),s(3),_(n.player.playerClubData!=null&&n.player.playerClubData.position?24:-1),s(),_(!(n==null||n.player==null||n.player.playerClubData==null)&&n.player.playerClubData.tryoutNumber?25:-1)}}function Qr(i,d){if(i&1&&(e(0,`
1131            `),o(1,"div",75),e(2,`
1132                `),p(3,Vr,7,9),p(4,Br,7,9),p(5,$r,7,10),T(6,jr,28,19,"ng-template",null,7,J),e(8,`
1133            `),a(),e(9,`
1134            `)),i&2){let t=d.$implicit,n=d.$index,l=d.$count,r=c(6);s(),L("border-bottom",n!==l-1),s(2),_(r.selectedCriteria&&r.criteriaRightEditData[t.player.playerID]?3:-1),s(),_(!r.selectedCriteria&&r.selectedGroup&&r.criteriaOverallCommentsRightEditData[t.player.playerID]?4:-1),s(),_(r.selectedQuestion&&r.criteriaFreeFormEditData[t.player.playerID]?5:-1)}}function zr(i,d){if(i&1&&(e(0,`
1135            `),o(1,"div",83),e(2,`
1136                `),o(3,"span",84),e(4,"Showing"),a(),e(5,`
1137                `),o(6,"span",85),e(7),a(),e(8,`
1138                `),o(9,"span",84),e(10,"of"),a(),e(11,`
1139                `),o(12,"span",85),e(13),a(),e(14,`
1140                results
1141            `),a(),e(15,`
1142            `)),i&2){let t=c(6);s(7),S(`
1143                    `,(t.searchData[t.EvaluationTab.CRITERIA].searchResults==null||t.searchData[t.EvaluationTab.CRITERIA].searchResults.results==null?null:t.searchData[t.EvaluationTab.CRITERIA].searchResults.results.length)||0,`
1144                `),s(6),S(`
1145                    `,(t.searchData[t.EvaluationTab.CRITERIA].searchResults==null?null:t.searchData[t.EvaluationTab.CRITERIA].searchResults.count)||0,`
1146                `)}}function qr(i,d){if(i&1){let t=D();e(0," "),o(1,"div",21),e(2,`
1147                `),o(3,"div",86),e(4,`
1148                    `),o(5,"button",87),v("click",function(){y(t);let l=c(6);return C(l.searchPlayers(!0))}),e(6,`
1149                        `),h(7,"i",88),e(8,`
1150                        `),o(9,"span"),e(10,"Load More"),a(),e(11,`
1151                    `),a(),e(12,`
1152                `),a(),e(13,`
1153            `),a(),e(14,`
1154            `)}}function Hr(i,d){i&1&&U(0)}function Jr(i,d){if(i&1&&(e(0,`
1155            `),T(1,Hr,1,0,"ng-container",24),e(2,`
1156            `)),i&2){c(6);let t=$(60);s(),u("ngTemplateOutlet",t)}}function Kr(i,d){if(i&1&&(e(0,`
1157        `),p(1,Mr,15,2),o(2,"div",73),e(3,`
1158            `),A(4,Qr,10,5,null,null,w),p(6,zr,16,2),p(7,qr,15,0),p(8,Jr,3,1),a(),e(9,`
1159        `)),i&2){let t=c(5);s(),_(!t.selectedCriteria&&!t.selectedQuestion&&t.selectedGroup?1:-1),s(3),R(t.searchData[t.EvaluationTab.CRITERIA].searchResults==null?null:t.searchData[t.EvaluationTab.CRITERIA].searchResults.results),s(2),_(!t.searching&&!t.paginating?6:-1),s(),_(!t.searching&&!t.paginating&&(t.searchData[t.EvaluationTab.CRITERIA].searchResults==null||t.searchData[t.EvaluationTab.CRITERIA].searchResults.results==null?null:t.searchData[t.EvaluationTab.CRITERIA].searchResults.results.length)<(t.searchData[t.EvaluationTab.CRITERIA].searchResults==null?null:t.searchData[t.EvaluationTab.CRITERIA].searchResults.count)?7:-1),s(),_(t.paginating?8:-1)}}function Xr(i,d){i&1&&(e(0,`
1160        `),o(1,"div",86),e(2,`
1161            `),o(3,"app-inline-alert",63),e(4,`
1162                `),o(5,"span",89),e(6,`
1163                    The specified search criteria did not yield any results.
1164                `),a(),e(7,`
1165            `),a(),e(8,`
1166        `),a(),e(9,`
1167        `)),i&2&&(s(3),u("isInline",!0))}function Zr(i,d){if(i&1&&(e(0,`
1168        `),p(1,Kr,10,4)(2,Xr,10,1)),i&2){let t=c(4);s(),_(!(t.searchData[t.EvaluationTab.CRITERIA]==null||t.searchData[t.EvaluationTab.CRITERIA].searchResults==null||t.searchData[t.EvaluationTab.CRITERIA].searchResults.results==null)&&t.searchData[t.EvaluationTab.CRITERIA].searchResults.results.length?1:2)}}function el(i,d){i&1&&U(0)}function tl(i,d){if(i&1&&(e(0,`
1169        `),T(1,el,1,0,"ng-container",24),e(2,`
1170        `)),i&2){c(4);let t=$(60);s(),u("ngTemplateOutlet",t)}}function il(i,d){if(i&1&&(e(0,`
1171    `),p(1,Fr,16,7),o(2,"div",68),e(3,`
1172        `),p(4,Zr,3,1),p(5,tl,3,1),a(),e(6,`
1173    `)),i&2){let t=c(3);s(),_(t.selectedCriteria||t.selectedQuestion?1:-1),s(3),_(t.searching?-1:4),s(),_(t.searching?5:-1)}}function nl(i,d){if(i&1&&(e(0,`
1174    `),p(1,il,7,3)),i&2){let t=c(2);s(),_(t.selectedGroup?1:-1)}}function al(i,d){i&1&&(e(0,`
1175        `),o(1,"div",65),e(2,`
1176            `),o(3,"div",90),e(4,`
1177                `),h(5,"app-skeleton-template",91),e(6,`
1178            `),a(),e(7,`
1179        `),a(),e(8,`
1180        `))}function ol(i,d){i&1&&(e(0,`
1181    `),o(1,"div",51),e(2,`
1182        `),A(3,al,9,0,null,null,w),a(),e(5,`
1183    `)),i&2&&(s(3),R(ne(0,Ue)))}function rl(i,d){if(i&1&&(e(0,`
1184    `),p(1,nl,2,1)(2,ol,6,1)),i&2){let t=c();s(),_(t.loading?2:1)}}function ll(i,d){if(i&1){let t=D();e(0,`
1185                `),o(1,"div",107),e(2,`
1186                    `),o(3,"div",108),e(4,`
1187                        `),o(5,"label",109),e(6,"tier"),a(),e(7,`
1188                    `),a(),e(8,`
1189                    `),o(9,"div",40),e(10,`
1190                        `),o(11,"p-select",110),I("ngModelChange",function(l){y(t);let r=c(4);return P(r.searchData[r.EvaluationTab.PLAYERS].filters.tierID,l)||(r.searchData[r.EvaluationTab.PLAYERS].filters.tierID=l),C(l)}),e(12,`
1191                        `),a(),e(13,`
1192                    `),a(),e(14,`
1193                `),a(),e(15,`
1194                `)}if(i&2){let t=c(4);s(11),b("ngModel",t.searchData[t.EvaluationTab.PLAYERS].filters.tierID),u("options",t.playerPoolTiers)("disabled",t.searching||t.paginating)}}function sl(i,d){if(i&1){let t=D();e(0,`
1195        `),o(1,"div",97),e(2,`
1196            `),o(3,"div",26),e(4,`
1197                `),o(5,"div",98),e(6,`
1198                    `),o(7,"div",99),e(8,`
1199                        `),o(9,"label",100),e(10,"Tryout Date(s)"),a(),e(11,`
1200                    `),a(),e(12,`
1201                    `),o(13,"div",101),e(14,`
1202                        `),o(15,"p-multiSelect",41),I("ngModelChange",function(l){y(t);let r=c(3);return P(r.searchData[r.EvaluationTab.PLAYERS].filters.registrationTryoutDateID,l)||(r.searchData[r.EvaluationTab.PLAYERS].filters.registrationTryoutDateID=l),C(l)}),e(16,`
1203                        `),a(),e(17,`
1204                    `),a(),e(18,`
1205                `),a(),e(19,`
1206                `),p(20,ll,16,3),o(21,"div",102),e(22,`
1207                    `),o(23,"div",103),e(24,`
1208                        `),o(25,"label",104),e(26,"SORT"),a(),e(27,`
1209                    `),a(),e(28,`
1210                    `),o(29,"div",105),e(30,`
1211                        `),o(31,"p-select",106),I("ngModelChange",function(l){y(t);let r=c(3);return P(r.searchData[r.EvaluationTab.PLAYERS].filters.orderBy,l)||(r.searchData[r.EvaluationTab.PLAYERS].filters.orderBy=l),C(l)}),e(32,`
1212                        `),a(),e(33,`
1213                    `),a(),e(34,`
1214                `),a(),e(35,`
1215            `),a(),e(36,`
1216        `),a(),e(37,`
1217        `)}if(i&2){let t=c(3);s(15),b("ngModel",t.searchData[t.EvaluationTab.PLAYERS].filters.registrationTryoutDateID),u("options",t.tryoutDates)("filter",!1)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} tryout dates selected")("disabled",t.searching||t.paginating),s(5),_((t.playerPoolTiers==null?null:t.playerPoolTiers.length)>0?20:-1),s(11),b("ngModel",t.searchData[t.EvaluationTab.PLAYERS].filters.orderBy),u("options",t.orderByOptions)("disabled",t.searching||t.paginating)}}function dl(i,d){if(i&1){let t=D();e(0,`
1218    `),o(1,"div",93),e(2,`
1219        `),o(3,"div",26),e(4,`
1220            `),o(5,"div",57),e(6,`
1221                `),o(7,"div",94),e(8,`
1222                    `),o(9,"span",29),e(10,`
1223                        `),o(11,"input",95,9),I("ngModelChange",function(l){y(t);let r=c(2);return P(r.searchData[r.EvaluationTab.PLAYERS].filters.lastName,l)||(r.searchData[r.EvaluationTab.PLAYERS].filters.lastName=l),C(l)}),a(),e(13,`
1224                        `),h(14,"label",96),e(15,`
1225                    `),a(),e(16,`
1226                `),a(),e(17,`
1227                `),o(18,"div",32),e(19,`
1228                    `),o(20,"button",33),v("click",function(){y(t);let l=c(2);return C(l.searchData[l.EvaluationTab.PLAYERS].filters.showAdvancedOptions=!l.searchData[l.EvaluationTab.PLAYERS].filters.showAdvancedOptions)}),e(21,`
1229                        `),h(22,"i",34),e(23,`
1230                    `),a(),e(24,`
1231                `),a(),e(25,`
1232                `),o(26,"div",35),e(27,`
1233                    `),o(28,"button",33),v("click",function(){y(t);let l=c(2);return C(l.searchPlayers(!1))}),e(29,`
1234                        `),h(30,"i",36),e(31,`
1235                    `),a(),e(32,`
1236                `),a(),e(33,`
1237            `),a(),e(34,`
1238        `),a(),e(35,`
1239        `),p(36,sl,38,11),a(),e(37,`
1240    `)}if(i&2){let t=c(2);s(11),b("ngModel",t.searchData[t.EvaluationTab.PLAYERS].filters.lastName),s(25),_(!(t.searchData[t.EvaluationTab.PLAYERS]==null||t.searchData[t.EvaluationTab.PLAYERS].filters==null)&&t.searchData[t.EvaluationTab.PLAYERS].filters.showAdvancedOptions?36:-1)}}function cl(i,d){if(i&1&&(e(0,`
1241                                        `),o(1,"span"),e(2),a(),e(3,`
1242                                        `)),i&2){let t=c(2).$implicit;s(2),S(`
1243                                            \u2022 `,t.player.playerClubData.position.shortName||t.player.playerClubData.position.name,`
1244                                        `)}}function ml(i,d){if(i&1&&(e(0,`
1245                                        `),o(1,"span"),e(2),a(),e(3,`
1246                                        `)),i&2){let t=c(2).$implicit;s(2),S(`
1247                                            \u2022 #`,t==null||t.player==null||t.player.playerClubData==null?null:t.player.playerClubData.tryoutNumber,`
1248                                        `)}}function pl(i,d){if(i&1&&(e(0,`
1249                                        `),h(1,"app-tag",61),e(2,`
1250                                        `)),i&2){let t=c(2).$implicit,n=c(4);s(),u("text",(n.playerCriteriaCount[t.player.playerID]||0)+"/"+n.criteriaCount)("clickable",!1)}}function _l(i,d){if(i&1&&(e(0,`
1251                                        `),h(1,"app-tag",62),e(2,`
1252                                        `)),i&2){let t=c(2).$implicit,n=c(4);s(),u("text",(n.playerCriteriaCount[t.player.playerID]||0)+"/"+n.criteriaCount)("clickable",!1)}}function ul(i,d){if(i&1){let t=D();e(0,`
1253                `),o(1,"li",55),e(2,`
1254                    `),o(3,"div"),e(4,`
1255                        `),o(5,"a",112),v("click",function(){y(t);let l=c(),r=l.$implicit,m=l.$index,x=c(4);return C(x.selectPlayer(m,r))}),e(6,`
1256                            `),o(7,"div",57),e(8,`
1257                                `),o(9,"div",79),e(10,`
1258                                    `),o(11,"app-player-profile-photo",80),e(12,`
1259                                    `),a(),e(13,`
1260                                `),a(),e(14,`
1261                                `),o(15,"div"),e(16,`
1262                                    `),o(17,"div",81),e(18),a(),e(19,`
1263                                    `),o(20,"div",82),e(21,`
1264                                        `),o(22,"span"),e(23),a(),e(24,`
1265                                        `),o(25,"span"),e(26),F(27,"date"),a(),e(28,`
1266                                        `),p(29,cl,4,1),p(30,ml,4,1),a(),e(31,`
1267                                `),a(),e(32,`
1268                                `),o(33,"div",113),e(34,`
1269                                    `),o(35,"div",114),e(36,`
1270                                        `),p(37,pl,3,2),p(38,_l,3,2),a(),e(39,`
1271                                    `),h(40,"i",115),e(41,`
1272                                `),a(),e(42,`
1273                            `),a(),e(43,`
1274                        `),a(),e(44,`
1275                    `),a(),e(45,`
1276                `),a(),e(46,`
1277                `)}if(i&2){let t=c(),n=t.$implicit,l=t.$index,r=t.$count,m=c(4);s(),L("selected",(m.selectedPlayer==null||m.selectedPlayer.player==null?null:m.selectedPlayer.player.playerID)===(n==null?null:n.player.playerID)),s(4),L("border-bottom",l!==r-1),s(6),u("player",n.player)("firstName",n.player.firstName)("lastName",n.player.lastName)("userID",n.player.userID)("playerNumber",(l+1).toString())("largeCircle",!1)("initialsOnly",!1)("lazy",!0)("showCircle",!1)("registrationID",m.registrationID),s(7),le(`
1278                                        `,n.player.firstName," ",n.player.lastName,`
1279                                    `),s(5),S(`
1280                                            `,n.player.genderName,`
1281                                        `),s(3),S(`
1282                                            \u2022 `,W(27,22,n.player.dob,"y"),`
1283                                        `),s(3),_(n.player.playerClubData!=null&&n.player.playerClubData.position?29:-1),s(),_(!(n==null||n.player==null||n.player.playerClubData==null)&&n.player.playerClubData.tryoutNumber?30:-1),s(7),_((m.playerCriteriaCount[n.player.playerID]||0)===m.criteriaCount?37:-1),s(),_((m.playerCriteriaCount[n.player.playerID]||0)!==m.criteriaCount?38:-1)}}function xl(i,d){if(i&1&&(e(0,`
1284                `),p(1,ul,47,25)),i&2){let t=d.$implicit;s(),_(t!=null&&t.player?1:-1)}}function yl(i,d){i&1&&U(0)}function Cl(i,d){if(i&1&&(e(0,`
1285            `),T(1,yl,1,0,"ng-container",24),e(2,`
1286            `)),i&2){c(4);let t=$(57);s(),u("ngTemplateOutlet",t)}}function hl(i,d){if(i&1&&(e(0,`
1287        `),o(1,"div",83),e(2,`
1288            `),o(3,"span",84),e(4,"Showing"),a(),e(5,`
1289            `),o(6,"span",85),e(7),a(),e(8,`
1290            `),o(9,"span",84),e(10,"of"),a(),e(11,`
1291            `),o(12,"span",85),e(13),a(),e(14,`
1292            `),o(15,"span"),e(16,"results"),a(),e(17,`
1293        `),a(),e(18,`
1294        `)),i&2){let t=c(4);s(7),S(`
1295                `,(t.searchData[t.EvaluationTab.PLAYERS].searchResults==null||t.searchData[t.EvaluationTab.PLAYERS].searchResults.results==null?null:t.searchData[t.EvaluationTab.PLAYERS].searchResults.results.length)||0,`
1296            `),s(6),f((t.searchData[t.EvaluationTab.PLAYERS].searchResults==null?null:t.searchData[t.EvaluationTab.PLAYERS].searchResults.count)||0)}}function fl(i,d){if(i&1){let t=D();e(0," "),o(1,"div",21),e(2,`
1297            `),o(3,"div",86),e(4,`
1298                `),o(5,"button",87),v("click",function(){y(t);let l=c(4);return C(l.searchPlayers(!0))}),e(6,`
1299                    `),h(7,"i",88),e(8,`
1300                    `),o(9,"span"),e(10,"Load More"),a(),e(11,`
1301                `),a(),e(12,`
1302            `),a(),e(13,`
1303    `),a(),e(14,`
1304    `)}}function gl(i,d){if(i&1&&(e(0,`
1305        `),o(1,"div",51),e(2,`
1306            `),o(3,"ul",111),e(4,`
1307                `),A(5,xl,2,1,null,null,w),a(),e(7,`
1308            `),p(8,Cl,3,1),a(),e(9,`
1309        `),p(10,hl,19,2),p(11,fl,15,0)),i&2){let t=c(3);s(5),R(t.searchData[t.EvaluationTab.PLAYERS].searchResults==null?null:t.searchData[t.EvaluationTab.PLAYERS].searchResults.results),s(3),_(t.paginating?8:-1),s(2),_(!t.searching&&!t.paginating?10:-1),s(),_(!t.searching&&!t.paginating&&(t.searchData[t.EvaluationTab.PLAYERS].searchResults==null||t.searchData[t.EvaluationTab.PLAYERS].searchResults.results==null?null:t.searchData[t.EvaluationTab.PLAYERS].searchResults.results.length)<(t.searchData[t.EvaluationTab.PLAYERS].searchResults==null?null:t.searchData[t.EvaluationTab.PLAYERS].searchResults.count)?11:-1)}}function vl(i,d){i&1&&(e(0,`
1310    `),o(1,"div",86),e(2,`
1311        `),o(3,"app-inline-alert",63),e(4,`
1312            `),o(5,"span",89),e(6,`
1313                The specified search criteria did not yield any results.
1314            `),a(),e(7,`
1315        `),a(),e(8,`
1316    `),a(),e(9,`
1317    `)),i&2&&(s(3),u("isInline",!0))}function Sl(i,d){if(i&1&&(e(0,`
1318        `),p(1,gl,12,3)(2,vl,10,1)),i&2){let t=c(2);s(),_(!(t.searchData[t.EvaluationTab.PLAYERS]==null||t.searchData[t.EvaluationTab.PLAYERS].searchResults==null||t.searchData[t.EvaluationTab.PLAYERS].searchResults.results==null)&&t.searchData[t.EvaluationTab.PLAYERS].searchResults.results.length?1:2)}}function Dl(i,d){i&1&&U(0)}function El(i,d){if(i&1&&(e(0,`
1319    `),T(1,Dl,1,0,"ng-container",24),e(2,`
1320    `)),i&2){c(2);let t=$(57);s(),u("ngTemplateOutlet",t)}}function Tl(i,d){if(i&1&&(e(0,`
1321    `),p(1,dl,38,2),o(2,"div",92),e(3,`
1322        `),p(4,Sl,3,1),p(5,El,3,1),a(),e(6,`
1323`)),i&2){let t=c();s(),_(t.searchData[t.EvaluationTab.PLAYERS]!=null&&t.searchData[t.EvaluationTab.PLAYERS].filters?1:-1),s(3),_(t.searching?-1:4),s(),_(t.searching?5:-1)}}function bl(i,d){if(i&1&&(e(0,`
1324                    `),o(1,"span"),e(2),a(),e(3,`
1325                    `)),i&2){let t=c(4);s(2),S(`
1326                        \u2022 `,t.selectedPlayer.player.playerClubData.position.short
1326Name||t.selectedPlayer.player.playerClubData.position.name,`
1327                    `)}}function Pl(i,d){if(i&1&&(e(0,`
1328                    `),o(1,"span"),e(2),a(),e(3,`
1329                    `)),i&2){let t=c(4);s(2),S(`
1330                        \u2022 #`,t.selectedPlayer.player.playerClubData==null?null:t.selectedPlayer.player.playerClubData.tryoutNumber,`
1331                    `)}}function Il(i,d){if(i&1&&(e(0,`
1332                `),o(1,"div",120),e(2),F(3,"number"),a(),e(4,`
1333                `)),i&2){let t=c().$implicit,n=c(5);s(2),S(`
1334                    `,W(3,1,t.compositeRatings[n.selectedPlayer.player.playerID],"1.0-2"),`
1335                `)}}function wl(i,d){if(i&1&&(e(0,`
1336            `),h(1,"div",121),F(2,"safeHtml"),e(3,`
1337            `)),i&2){let t=c().$implicit;s(),u("innerHtml",Z(2,1,t.description),pt)}}function Al(i,d){if(i&1){let t=D();e(0,`
1338                    `),o(1,"app-survey-question-response-edit",123),v("save",function(){y(t);let l=c(9);return C(l.playersPanelRightSave())})("delete",function(){y(t);let l=c(9);return C(l.valueDeleted())}),e(2,`
1339                    `),a(),e(3,`
1340                    `)}if(i&2){let t=c().$implicit,n=c(3).$implicit,l=c(5);s(),u("question",t)("criteriaGroup",n)("surveyID",l.surveyID)("surveyResponseID",l.surveyResponseID)("playerID",l.selectedPlayer.player.playerID)("value",l.playerFreeFormEditData[t.surveyQuestionID])("inputIDPrefix","playersPanelRight-ff-"+t.surveyQuestionID)("editService",l.tryoutService)("isEditable",l.isEditable)("showAIAssistant",!0)}}function Rl(i,d){if(i&1&&(e(0,`
1341                `),o(1,"div",122),e(2,`
1342                    `),p(3,Al,4,10),a(),e(4,`
1343                `)),i&2){let t=d.$implicit,n=d.$index,l=d.$count,r=c(8);s(),L("border-bottom",n!==l-1),s(2),_(r.playerFreeFormEditData[t.surveyQuestionID]?3:-1)}}function Fl(i,d){if(i&1&&(e(0,`
1344            `),o(1,"div",73),e(2,`
1345                `),A(3,Rl,5,3,null,null,w),a(),e(5,`
1346            `)),i&2){let t=c(2).$implicit;s(3),R(t.questions)}}function Ml(i,d){i&1&&(e(0,`
1347            `),o(1,"app-inline-alert",63),e(2,`
1348                This criteria group is missing criteria.
1349            `),a(),e(3,`
1350            `)),i&2&&(s(),u("isInline",!0))}function kl(i,d){if(i&1&&(e(0,`
1351            `),p(1,Fl,6,0)(2,Ml,4,1)),i&2){let t=c().$implicit;s(),_(t.questions!=null&&t.questions.length?1:2)}}function Nl(i,d){if(i&1){let t=D();e(0,`
1352                    `),o(1,"app-survey-criteria-value-edit",125),v("save",function(){y(t);let l=c(9);return C(l.playersPanelRightSave())})("delete",function(){y(t);let l=c(9);return C(l.valueDeleted())}),a(),e(2,`
1353                    `)}if(i&2){let t=c().$implicit,n=c(3).$implicit,l=c(5);s(),u("criteriaGroup",n)("assignment",t)("surveyID",l.surveyID)("surveyResponseID",l.surveyResponseID)("playerID",l.selectedPlayer.player.playerID)("value",l.playerRightEditData[t.surveyCriteriaGroupAssignID])("inputIDPrefix","playersPanelRight-"+t.surveyCriteriaID)("editService",l.tryoutService)("isEditable",l.isEditable)}}function Vl(i,d){if(i&1&&(e(0,`
1354                `),o(1,"div",124),e(2,`
1355                    `),p(3,Nl,3,9),a(),e(4,`
1356                `)),i&2){let t=d.$implicit,n=d.$index,l=d.$count,r=c(3).$implicit,m=c(5);s(),L("border-bottom",n!==l-1),s(2),_(r&&m.playerRightEditData[t.surveyCriteriaGroupAssignID]?3:-1)}}function Ll(i,d){if(i&1){let t=D();e(0,`
1357                    `),o(1,"app-survey-criteria-group-comment-edit",127),v("delete",function(){y(t);let l=c(9);return C(l.commentDeleted())}),a(),e(2,`
1358                    `)}if(i&2){let t=c(4).$implicit,n=c(5);s(),u("criteriaGroup",t)("surveyID",n.surveyID)("surveyResponseID",n.surveyResponseID)("playerID",n.selectedPlayer.player.playerID)("value",n.playerOverallCommentsRightEditData[t.surveyCriteriaGroupID])("inputID","playersPanelRight-comments-"+t.surveyCriteriaGroupID)("editService",n.tryoutService)("isEditable",n.isEditable)("showAIAssistant",!0)}}function Ol(i,d){if(i&1&&(e(0,`
1359                `),o(1,"div",126),e(2,`
1360                    `),p(3,Ll,3,9),a(),e(4,`
1361                `)),i&2){let t=c(3).$implicit,n=c(5);s(3),_(t&&n.playerOverallCommentsRightEditData[t.surveyCriteriaGroupID]?3:-1)}}function Bl(i,d){if(i&1&&(e(0,`
1362            `),o(1,"div",73),e(2,`
1363                `),A(3,Vl,5,3,null,null,w),p(5,Ol,5,1),a(),e(6,`
1364            `)),i&2){let t=c(2).$implicit;s(3),R(t.surveyCriteriaAssignments),s(2),_(t.includeOverallComments?5:-1)}}function Gl(i,d){i&1&&(e(0,`
1365            `),o(1,"app-inline-alert",63),e(2,`
1366                This criteria group is missing criteria.
1367            `),a(),e(3,`
1368            `)),i&2&&(s(),u("isInline",!0))}function Yl(i,d){if(i&1&&(e(0,`
1369            `),p(1,Bl,7,1)(2,Gl,4,1)),i&2){let t=c().$implicit;s(),_(t.surveyCriteriaAssignments!=null&&t.surveyCriteriaAssignments.length?1:2)}}function $l(i,d){if(i&1&&(e(0,`
1370            `),o(1,"div",119),e(2,`
1371                `),o(3,"div"),e(4),o(5,"div",70),e(6,`
1372                        `),o(7,"div",71),e(8,"Visible to:"),a(),e(9,`
1373                        `),h(10,"app-criteria-group-visibility",72),e(11,`
1374                    `),a(),e(12,`
1375                `),a(),e(13,`
1376                `),p(14,Il,5,4),a(),e(15,`
1377            `),p(16,wl,4,3),p(17,kl,3,1)(18,Yl,3,1)),i&2){let t=d.$implicit,n=c(5);s(),L("mb-3",!t.description)("mb-1",t.description),s(3),S(`
1378                    `,t.name,`
1379                    `),s(6),u("visibility",t.surveyCriteriaGroupVisibilityOptionID),s(4),_(t.compositeRatings&&t.compositeRatings[n.selectedPlayer.player.playerID]&&t.surveyCriteriaTypeID===n.SurveyCriteriaType.RATING?14:-1),s(2),_(t.de
1379scription?16:-1),s(),_(t.surveyCriteriaTypeID===n.SurveyCriteriaType.FREE_FORM_QUESTION?17:18)}}function Ul(i,d){if(i&1&&(e(0,`
1380        `),o(1,"div"),e(2,`
1381            `),A(3,$l,19,9,null,null,w),a(),e(5,`
1382        `)),i&2){let t=c(4);s(3),R(t.survey.criteriaGroups)}}function Wl(i,d){i&1&&(e(0,`
1383        `),o(1,"app-inline-alert",63),e(2,`
1384            This evaluation is incomplete and is not ready to fill out.
1385        `),a(),e(3,`
1386        `)),i&2&&(s(),u("isInline",!0))}function jl(i,d){if(i&1&&(e(0,`
1387    `),o(1,"div",116),e(2,`
1388        `),o(3,"div",117),e(4,`
1389            `),o(5,"div",79),e(6,`
1390                `),o(7,"app-player-profile-photo",80),e(8,`
1391                `),a(),e(9,`
1392            `),a(),e(10,`
1393            `),o(11,"div"),e(12,`
1394                `),o(13,"div",74),e(14),a(),e(15,`
1395                `),o(16,"div",118),e(17,`
1396                    `),o(18,"span"),e(19),a(),e(20,`
1397                    `),o(21,"span"),e(22),F(23,"date"),a(),e(24,`
1398                    `),p(25,bl,4,1),p(26,Pl,4,1),a(),e(27,`
1399            `),a(),e(28,`
1400        `),a(),e(29,`
1401        `),p(30,Ul,6,0)(31,Wl,4,1),a(),e(32,`
1402    `)),i&2){let t=c(3);s(7),u("player",t.selectedPlayer.player)("firstName",t.selectedPlayer.player.firstName)("lastName",t.selectedPlayer.player.lastName)("userID",t.selectedPlayer.player.userID)("playerNumber",(t.selectedPlayerIndex||0).toString())("largeCircle",!0)("initialsOnly",!1)("lazy",!0)("showCircle",!1)("registrationID",t.registrationID),s(7),le(`
1403                    `,t.selectedPlayer.player.firstName," ",t.selectedPlayer.player.lastName,`
1404                `),s(5),S("",t.selectedPlayer.player.genderName," "),s(3),S("\u2022 ",W(23,17,t.selectedPlayer.player.dob,"y")),s(3),_(t.selectedPlayer.player.playerClubData!=null&&t.selectedPlayer.player.playerClubData.position?25:-1),s(),_(t.selectedPlayer.player.playerClubData!=null&&t.selectedPlayer.player.playerClubData.tryoutNumber?26:-1),s(4),_(!(t.survey==null||t.survey.criteriaGroups==null)&&t.survey.criteriaGroups.length?30:31)}}function Ql(i,d){i&1&&(e(0,`
1405        `),o(1,"div",65),e(2,`
1406            `),o(3,"div",90),e(4,`
1407                `),h(5,"app-skeleton-template",91),e(6,`
1408            `),a(),e(7,`
1409        `),a(),e(8,`
1410        `))}function zl(i,d){i&1&&(e(0,`
1411    `),o(1,"div",128),e(2,`
1412        `),h(3,"app-skeleton-template",129),e(4,`
1413    `),a(),e(5,`
1414    `),o(6,"div",51),e(7,`
1415        `),A(8,Ql,9,0,null,null,w),a(),e(10,`
1416    `)),i&2&&(s(3),u("skeletonType","playerHeader")("showLargeProfilePic",!0)("showProfilePicCircle",!1),s(5),R(ne(3,Ue)))}function ql(i,d){if(i&1&&(e(0,`
1417    `),p(1,jl,33,20)(2,zl,11,4)),i&2){let t=c(2);s(),_(!t.searching&&!t.paginating?1:2)}}function Hl(i,d){i&1&&(e(0,`
1418    `),o(1,"div",86),e(2,`
1419        `),o(3,"app-inline-alert",63),e(4,`
1420            `),o(5,"span",89),e(6,`
1421                Please refine your search criteria in order to review a player
1422            `),a(),e(7,`
1423        `),a(),e(8,`
1424    `),a(),e(9,`
1425    `)),i&2&&(s(3),u("isInline",!0))}function Jl(i,d){i&1&&(e(0,`
1426        `),o(1,"div",65),e(2,`
1427            `),o(3,"div",90),e(4,`
1428                `),h(5,"app-skeleton-template",91),e(6,`
1429            `),a(),e(7,`
1430        `),a(),e(8,`
1431        `))}function Kl(i,d){i&1&&(e(0,`
1432    `),o(1,"div",128),e(2,`
1433        `),h(3,"app-skeleton-template",129),e(4,`
1434    `),a(),e(5,`
1435    `),o(6,"div",51),e(7,`
1436        `),A(8,Jl,9,0,null,null,w),a(),e(10,`
1437    `)),i&2&&(s(3),u("skeletonType","playerHeader")("showLargeProfilePic",!0)("showProfilePicCircle",!1),s(5),R(ne(3,Ue)))}function Xl(i,d){if(i&1&&(e(0,`
1438    `),p(1,Hl,10,1)(2,Kl,11,4)),i&2){let t=c(2);s(),_(t.loading?2:1)}}function Zl(i,d){if(i&1&&(e(0,`
1439    `),p(1,ql,3,1),p(2,Xl,3,1)),i&2){let t=c();s(),_(t.selectedPlayer!=null&&t.selectedPlayer.player?1:-1),s(),_(!t.selectedPlayer||!t.selectedPlayer.player?2:-1)}}function es(i,d){i&1&&(e(0,`
1440    `),o(1,"div",130),e(2,`
1441        `),o(3,"div",90),e(4,`
1442            `),h(5,"app-skeleton-template",131),e(6,`
1443        `),a(),e(7,`
1444    `),a(),e(8,`
1445    `))}function ts(i,d){i&1&&(e(0,`
1446    `),A(1,es,9,0,null,null,w)),i&2&&(s(),R(ne(0,Ue)))}function is(i,d){i&1&&(e(0,`
1447        `),o(1,"div",65),e(2,`
1448            `),o(3,"div",90),e(4,`
1449                `),h(5,"app-skeleton-template",91),e(6,`
1450            `),a(),e(7,`
1451        `),a(),e(8,`
1452        `))}function ns(i,d){i&1&&(e(0,`
1453    `),o(1,"div",51),e(2,`
1454        `),A(3,is,9,0,null,null,w),a(),e(5,`
1455`)),i&2&&(s(3),R(ne(0,Ue)))}var nn=(()=>{let d=class d{get linkText(){return this.survey?.title?this.playerPoolName?`${this.playerPoolName} - ${this.survey.title}`:this.survey.title:"Player Evaluations"}constructor(n,l,r,m,x){this.siteDataService=n,this.route=l,this.tryoutService=r,this.authorizeService=m,this.regService=x,this.isEditable=!0,this.EvaluationTab=M,this.selectedTab=M.PLAYERS,this.selectedPlayerIndex=0,this.totalPlayerCount=0,this.hidePlayerName=!1,this.searchData={},this.orderByOptions=[{id:"lastName ASC",name:"Player Last Name ASC"},{id:"lastName DESC",name:"Player Last Name DESC"},{id:"tryoutNumber ASC",name:"Tryout Jersey Number ASC"},{id:"tryoutNumber DESC",name:"Tryout Jersey Number DESC"},{id:"position ASC",name:"Position ASC"},{id:"position DESC",name:"Position DESC"}],this.playerCriteriaCount={},this.criteriaRightEditData={},this.criteriaOverallCommentsRightEditData={},this.criteriaFreeFormEditData={},this.playerRightEditData={},this.playerOverallCommentsRightEditData={},this.playerFreeFormEditData={},this.SurveyCriteriaType=Te,this.SurveyCriteriaFormFieldType=Si,this.SurveyQuestionType=vi,this.loading=!0,this.searching=!0,this.paginating=!1,this.unsubscribe$=new be}
1455ngOnInit(){this.siteDataService.hideSiteLoader();let n=new Be;this.searchData[M.CRITERIA]={filters:new Be(this.tryoutService.selectedTryoutDates)},this.searchData[M.PLAYERS]={filters:new Be(this.tryoutService.selectedTryoutDates)},this.authorizeService.getUser().subscribe(l=>{this.user=l,this.showExportButton=l[k.TryoutRatingVisibility]}),this.route.params.pipe(De(this.unsubscribe$)).subscribe({next:l=>{this.registrationID=+l.registrationID,this.playerPoolID=+l.playerPoolID,this.surveyID=+l.surveyID,this.surveyRegistrationAssignID=+l.surveyRegistrationAssignID,j({registration:this.regService.getRegistration(this.registrationID),survey:this.tryoutService.getPlayerMeasurablesSurvey(this.registrationID,this.surveyID,this.surveyRegistrationAssignID,this.playerPoolID),assignment:this.tryoutService.getPlayerMeasurablesSurveyRegistrationAssignment(this.registrationID,this.surveyID,this.surveyRegistrationAssignID),response:this.tryoutService.getPlayerMeasurablesSurveyResponse(this.surveyID,this.surveyRegistrationAssignID,this.playerPoolID),players:this.tryoutService.getPlayerMeasurablesTryoutSurveyPlayers(this.registrationID,this.surveyID,this.playerPoolID,n,!0,!1),search:this.tryoutService.selectedTryoutDates?.length?this.tryoutService.getPlayerMeasurablesTryoutSurveyPlayers(this.registrationID,this.surveyID,this.playerPoolID,this.searchData[M.CRITERIA].filters,!0,!1):N(null),dates:this.tryoutService.getRegistrationTryoutDates(this.registrationID),playerPool:this.tryoutService.getPlayerPool(this.playerPoolID),tiers:this.tryoutService.getPlayerPoolTiers(this.registrationID,this.playerPoolID),clubSettings:this.siteDataService.getClubSettings()}).pipe(mt(r=>{this.registrationAssignment=r.assignment,this.isEditable=this.registrationAssignment?.isActive,this.response=r.response}),It(r=>!this.response&&this.isEditable?this.tryoutService.createPlayerMeasurablesSurveyResponse(this.surveyID,this.surveyRegistrationAssignID,this.playerPoolID).pipe(mt(m=>{this.response=m}),Pt(()=>r)):N(r)),De(this.unsubscribe$)).subscribe({next:r=>{this.registrationName=r.registration.name,this.playerPoolName=r.playerPool.name,this.survey=r.survey,this.response&&(this.surveyResponseID=this.response.surveyResponseID),r.dates&&(this.tryoutDates=r.dates),this.totalPlayerCount=r.players.count,this.hidePlayerName=!this.user[k.TakeAttendance]&&r.clubSettings.clubOptions.find(m=>m.optionID===Wt.HIDE_PLAYER_NAME_FROM_STAFF_WITHOUT_ATTENDANCE_PERMISSION)?.boolValue,r.search?(this.searchData[M.CRITERIA].filters.showAdvancedOptions=!0,this.searchData[M.PLAYERS].filters.showAdvancedOptions=!0,this.searchData[M.CRITERIA].searchResults={results:Array.from(r.search.results),count:r.search.count},this.searchData[M.PLAYERS].searchResults={results:Array.from(r.search.results),count:r.search.count}):(this.searchData[M.CRITERIA].searchResults={results:Array.from(r.players.results),count:r.players.count},this.searchData[M.PLAYERS].searchResults={results:Array.from(r.players.results),count:r.players.count}),r.tiers?.length>0&&(this.playerPoolTiers=[{playerPoolTierID:null,name:"All Tiers"},{playerPoolTierID:0,name:"Not Tier-Assigned"},...r.tiers]),this.orderByOptions=[],this.hidePlayerName||(this.orderByOptions.push({id:"lastName ASC",name:"Player Last Name ASC"}),this.orderByOptions.push({id:"lastName DESC",name:"Player Last Name DESC"})),this.orderByOptions.push({id:"tryoutNumber ASC",name:"Tryout Jersey Number ASC"}),this.orderByOptions.push({id:"tryoutNumber DESC",name:"Tryout Jersey Number DESC"}),this.orderByOptions.push({id:"position ASC",name:"Position ASC"}),this.orderByOptions.push({id:"position DESC",name:"Position DESC"}),this.setPageInitData(),this.loading=!1,this.searching=!1},error:()=>{this.siteDataService.showSiteErrorAlertDefaultGET()}})}})}changeTab(n){this.selectedTab=n,this.setPlayerCriteriaCounts(),this.setPlayerEditData(),this.setCriteriaData()}playersPanelRightSave(){this.setPlayerCriteriaCounts()}valueDeleted(){this.selectedTab===M.PLAYERS?(this.setPlayerEditData(),this.setPlayerCriteriaCounts()):this.setCriteriaData()}commentDeleted(){this.selectedTab===M.PLAYERS?(this.setPlayerEditData(),this.setPlayerCriteriaCounts()):this.setCriteriaData()}selectCriteria(n,l,r=!1){(r||!this.searching&&!this.paginating)&&(this.selectedGroup=n,this.selectedCriteria=l,this.selectedQuestion=null,this.setCriteriaData())}selectOverallComments(n){this.selectedGroup=n,this.selectedCriteria=null,this.selectedQuestion=null,this.setCriteriaData()}selectPlayer(n,l){this.selectedPlayerIndex=n,this.selectedPlayer=l,this.setPlayerEditData()}selectQuestion(n,l){this.selectedGroup=n,this.selectedCriteria=null,this.selectedQuestion=l,this.setCriteriaData()}searchPlayers(n=!1){this.setFilterData(n),this.tryoutService.getPlayerMeasurablesTryoutSurveyPlayers(this.registrationID,this.surveyID,this.playerPoolID,this.searchData[this.selectedTab].filters,!0,!1).pipe(De(this.unsubscribe$)).subscribe({next:l=>{this.handleSearchSuccess(l)},error:()=>{this.handleSearchFailure()}})}setPageInitData(){if(this.survey.criteriaGroups?.some(l=>l.surveyCriteriaAssignments?.length>0)){let l=this.survey.criteriaGroups.map(m=>m.surveyCriteriaAssignments).reduce((m,x)=>m.concat(x),[])[0],r=this.survey.criteriaGroups.find(m=>m.surveyCriteriaGroupID===l.surveyCriteriaGroupID);this.selectCriteria(r,l,!0)}let n=this.survey.criteriaGroups?.find(l=>l.surveyCriteriaTypeID===Te.FREE_FORM_QUESTION&&l.questions?.length>0);n&&!this.selectedCriteria&&this.selectQuestion(n,n.questions[0]),this.totalPlayerCount&&this.selectPlayer(0,this.searchData[M.PLAYERS].searchResults.results[0]),this.setPlayerCriteriaCounts(),this.setCriteriaCount()}setCriteriaCount(){this.criteriaCount=0;let n=this.survey?.criteriaGroups?.filter(r=>r.surveyCriteriaAssignments?.length>0).map(r=>r.surveyCriteriaAssignments).reduce((r,m)=>r.concat(m),[])||[],l=this.survey?.criteriaGroups?.filter(r=>r.surveyCriteriaTypeID===Te.FREE_FORM_QUESTION&&r.questions?.length>0).map(r=>r.questions).reduce((r,m)=>r.concat(m),[])||[];this.criteriaCount=n.length+l.length}setPlayerCriteriaCounts(){this.selectedTab===M.PLAYERS&&(this.playerCriteriaCount={},this.searchData[M.PLAYERS].searchResults?.results?.length&&this.searchData[M.PLAYERS].searchResults.results.forEac
1455h(n=>{let l=this.survey.criteriaGroups.map(m=>m.surveyCriteriaAssignments).reduce((m,x)=>m.concat(x),[]).filter(m=>m.surveyCriteriaValues?.some(x=>x.playerID===n.player.playerID&&x.surveyCriteriaValueID)),r=this.survey.criteriaGroups.filter(m=>m.surveyCriteriaTypeID===Te.FREE_FORM_QUESTION&&m.questions?.length).map(m=>m.questions).reduce((m,x)=>m.concat(x),[]).filter(m=>m.surveyQuestionResponses?.some(x=>x.playerID===n.player.playerID&&x.surveyQuestionResponseID));this.playerCriteriaCount[n.player.playerID]=l.length+r.length||0}))}setCriteriaEditData(){(this.selectedCriteria||this.selectedGroup)&&(this.criteriaRightEditData={},this.criteriaOverallCommentsRightEditData={},this.criteriaFreeFormEditData={},this.searchData[M.CRITERIA].searchResults?.results?.length&&this.searchData[M.CRITERIA].searchResults.results.forEach(n=>{if(this.selectedCriteria){if(this.selectedCriteria.surveyCriteriaValues||(this.selectedCriteria.surveyCriteriaValues=[]),!this.selectedCriteria.surveyCriteriaValues.some(l=>l.playerID===n.player.playerID)){let l=this.tryoutService.createPlayerSurveyCriteriaValue(this.selectedGroup.surveyCriteriaTypeID,this.selectedGroup,this.surveyResponseID,n.player.playerID,this.selectedCriteria.surveyCriteriaGroupAssignID,this.selectedCriteria.surveyCriteriaID,xt.EVALUATOR);this.selectedCriteria.surveyCriteriaValues.push(l)}this.criteriaRightEditData[n.player.playerID]=this.selectedCriteria.surveyCriteriaValues.find(l=>l.playerID===n.player.playerID)}if(this.selectedGroup&&this.selectedGroup?.includeOverallComments){if(this.selectedGroup.surveyCriteriaGroupComments||(this.selectedGroup.surveyCriteriaGroupComments=[]),!this.selectedGroup.surveyCriteriaGroupComments.some(l=>l.playerID===n.player.playerID)){let l=this.tryoutService.createPlayerSurveyCriteriaGroupComment(n.player.playerID,this.selectedGroup.surveyCriteriaGroupID,this.surveyResponseID);this.selectedGroup.surveyCriteriaGroupComments.push(l)}this.criteriaOverallCommentsRightEditData[n.player.playerID]=this.selectedGroup.surveyCriteriaGroupComments.find(l=>l.playerID===n.player.playerID)}if(this.selectedQuestion){this.selectedQuestion.surveyQuestionResponses||(this.selectedQuestion.surveyQuestionResponses=[]);let l=this.selectedQuestion.surveyQuestionResponses.find(r=>r.playerID===n.player.playerID);l||(l=this.tryoutService.createPlayerSurveyQuestionResponse(this.selectedQuestion.surveyQuestionID,n.player.playerID,this.surveyResponseID),this.selectedQuestion.surveyQuestionResponses.push(l)),this.criteriaFreeFormEditData[n.player.playerID]=l}}))}setPlayerEditData(){this.selectedPlayer&&(this.playerRightEditData={},this.playerOverallCommentsRightEditData={},this.playerFreeFormEditData={},this.searchData[M.PLAYERS].searchResults?.results?.length&&this.searchData[M.PLAYERS].searchResults.results.forEach(n=>{this.survey.criteriaGroups?.forEach(l=>{if(l.surveyCriteriaAssignments?.length&&(l.surveyCriteriaTypeID===Te.RATING&&(l.compositeRatings||(l.compositeRatings={}),l.compositeRatings[n.player.playerID]=this.tryoutService.getCompositeRating(l,n.player.playerID)),l.surveyCriteriaAssignments.forEach(r=>{if(r.surveyCriteriaValues||(r.surveyCriteriaValues=[]),!r.surveyCriteriaValues.some(m=>m.playerID===n.player.playerID)){let m=this.tryoutService.createPlayerSurveyCriteriaValue(l.surveyCriteriaTypeID,l,this.surveyResponseID,n.player.playerID,r.surveyCriteriaGroupAssignID,r.surveyCriteriaID,xt.EVALUATOR);r.surveyCriteriaValues.push(m)}n.player.playerID===this.selectedPlayer.player.playerID&&(this.playerRightEditData[r.surveyCriteriaGroupAssignID]=r.surveyCriteriaValues.find(m=>m.playerID===n.player.playerID))})),l.includeOverallComments){if(l.surveyCriteriaGroupComments||(l.surveyCriteriaGroupComments=[]),!l.surveyCriteriaGroupComments.some(r=>r.playerID===n.player.playerID)){let r=this.tryoutService.createPlayerSurveyCriteriaGroupComment(n.player.playerID,l.surveyCriteriaGroupID,this.surveyResponseID);l.surveyCriteriaGroupComments.push(r)}n.player.playerID===this.selectedPlayer?.player?.playerID&&(this.playerOverallCommentsRightEditData[l.surveyCriteriaGroupID]=l.surveyCriteriaGroupComments.find(r=>r.playerID===n.player.playerID))}l.surveyCriteriaTypeID===Te.FREE_FORM_QUESTION&&l.questions?.length&&l.questions.forEach(r=>{r.surveyQuestionResponses||(r.surveyQuestionResponses=[]);let m=r.surveyQuestionResponses.find(x=>x.playerID===n.player.playerID);m||(m=this.tryoutService.createPlayerSurveyQuestionResponse(r.surveyQuestionID,n.player.playerID,this.surveyResponseID),r.surveyQuestionResponses.push(m)),n.player.playerID===this.selectedPlayer?.player?.playerID&&(this.playerFreeFormEditData[r.surveyQuestionID]=m)})})}))}setFilterData(n){n?this.paginating=!0:(this.searchData[this.selectedTab].searchResults=null,this.searching=!0),this.searchData[this.selectedTab].searchResults?.results?.length?this.searchData[this.selectedTab].filters.page=this.searchData[this.selectedTab].searchResults.results.length/this.searchData[this.selectedTab].filters.rows+1:this.searchData[this.selectedTab].filters.page=1}handleSearchSuccess(n){if(this.searchData[this.selectedTab].searchResults?.results?.length&&n.results?.length?(this.searchData[this.selectedTab].searchResults.count=n.count,this.searchData[this.selectedTab].searchResults.results.push(...n.results)):this.searchData[this.selectedTab].searchResults=n,!this.paginating&&this.selectedTab===M.PLAYERS)if(!this.searchData[this.selectedTab].searchResults.results?.length)this.selectedPlayer=null,this.selectedPlayerIndex=0;else{let l=this.searchData[this.selectedTab].searchResults?.results?.find(r=>r.player.playerID===this.selectedPlayer?.player?.playerID);if(l){let r=this.searchData[this.selectedTab].searchResults?.results?.findIndex(m=>m.player.playerID===this.selectedPlayer?.player?.playerID);this.selectPlayer(r,l)}else this.selectPlayer(0,this.searchData[this.selectedTab].searchResults.results[0])}this.setCriteriaData(),this.searching=!1,this.paginating=!1}handleSearchFailure(){this.siteDataService.showSiteErrorAlertDefaultGET(),this.searching=!1,this.paginating=!1}setCriteriaData(){this.setCriteriaEditData()}exportCSV(){this.tryoutService.getPlayerMeasurablesTryoutSurveyPlayers(this.registrationID,this.surveyID,this.playerPoolID,this.searchData[this.selectedTab].filters,!0,!0).subscribe({next:n=>{Je(n)},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem exporting data.")}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(E(G),E(q),E(Y),E(xe),E(ge))},d.\u0275cmp=V({type:d,selectors:[["app-evaluation"]],standalone:!1,decls:62,vars:14,consts:[["criteriaPanelLeft",""],["criteriaPanelRight",""],["playersPanelLeft",""],["playersPanelRight",""],["skeletonLeftPlayers",""],["skeletonRightCriteria",""],["playerLastNameRight",""],["playerInfo",""],["leftContent",""],["playerLastNameLeft",""],["role","main"],["primaryBtnIcon","fa-regular fa-table",3,"primaryBtnAction","pageTitle","showBackButton","parentLinkText","parentLinkUrl","grandParentLinkText","grandParentLinkUrl","primaryBtnText"],[1,"row","m-0","mt-3"],[1,"col-md-4","bg-grey-lt","left-panel"],[1,"my-3"],[1,"row"],[1,"col-6"],["type","button",1,"tab-pill",3,"click"],[1,"col-md-8","right-panel"],[1,"mt-2","ml-3"],["status","success",3,"text"],[1,"mb-3"],["alertType","warning"],[1,"fw-800"],[4,"ngTemplateOutlet"],["id","search-filters-right",1,"mb-3"],[1,""],[1,"d-flex","mb-3","align-items-center"],["id","lastName-right",1,"full-width","mr-3"],[1,"full-width"],["type","text","id","search-right","pInputText","","placeholder","Search Players",1,"full-width","pl-4",3,"ngModelChange","ngModel"],["for","search-right",1,"sr-only"],[1,"d-flex","justify-content-end","ml-auto","mr-2"],["type","button",1,"btn",3,"click"],[1,"fal","fa-sliders-h"],[1,"d-flex","justify-content-end","ml-auto"],[1,"fal","fa-magnifying-glass"],["
1455id","registrationTryoutDateID-container-right",1,"d-flex","align-items-center","full-width","mb-3"],["id","registrationTryoutDateID-label-right",1,"mr-3","text-uppercase","flex-grow-1"],["for","registrationTryoutDateID-right"],[1,"flex-grow-1"],["optionLabel","title","optionValue","registrationTryoutDateID","placeholder","Select Tryout Date(s)","styleClass","full-width","appendTo","body",3,"ngModelChange","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel","disabled"],["id","orderBy-container-right",1,"d-flex","align-items-center","justify-content-end","full-width","mb-3"],["id","orderBy-label-right",1,"mr-3","flex-grow-1"],["for","orderBy-right"],["id","orderBy-dd-right",1,"flex-grow-1"],["inputID","orderBy","styleClass","full-width","optionLabel","name","optionValue","id","name","orderBy-right",3,"ngModelChange","ngModel","options","disabled"],["id","tierID-container-right",1,"d-flex","align-items-center","full-width","mb-3"],["id","tierID-label-right",1,"mr-3","text-uppercase","flex-grow-1"],["for","tierID-right"],["inputID","tierID","styleClass","full-width","optionLabel","name","optionValue","playerPoolTierID","name","tierID-right",3,"ngModelChange","ngModel","options","disabled"],[1,"card"],[1,"text-larger","fw-800","mb-1"],[1,"mb-3",3,"innerHtml"],[1,"no-bullets","criteria-list","evaluation-list"],[1,"m-0"],["href","javascript:void(0);",1,"criteria-link","evaluation-link",3,"click"],[1,"d-flex","align-items-center"],[1,"d-flex","justify-content-end","ml-auto","align-items-center","text-grey","pr-2"],[1,"criteria-player-counter"],[1,"fa","fa-chevron-right"],["buttonStyleClass","bg-green","styleClass","text-medium",3,"text","clickable"],["styleClass","text-medium",3,"text","clickable"],["alertType","warning",3,"isInline"],["href","javascript:void(0);",1,"evaluation-link",3,"click"],[1,"row","mb-3"],[1,"card","col-12"],["height","10rem"],["id","search-results-right"],[1,"text-larger"],[1,"text-uppercase","text-medium","fw-400","vertical-align"],[1,"text-grey","mr-2"],[3,"visibility"],[1,"card","pt-0","pb-0"],[1,"text-larger","fw-800"],[1,"pt-3"],[3,"delete","criteriaGroup","assignment","surveyID","surveyResponseID","playerID","value","inputIDPrefix","editService","isEditable"],[3,"delete","criteriaGroup","surveyID","showAIAssistant","surveyResponseID","playerID","value","inputID","editService","isEditable"],[3,"delete","question","criteriaGroup","surveyID","surveyResponseID","playerID","value","inputIDPrefix","editService","isEditable","showAIAssistant"],[1,"profile-image","pull-left","mr-3"],[3,"player","firstName","lastName","userID","playerNumber","largeCircle","initialsOnly","lazy","showCircle","registrationID"],[1,"text-medium","fw-800"],[1,"text-small","text-grey"],[1,"text-medium","d-flex","justify-content-center","mb-3"],[1,"mr-1"],[1,"fw-800","mr-1"],[1,"d-flex","justify-content-center"],["type","button",1,"btn","btn-naked",3,"click"],[1,"fa","fa-rotate","mr-2"],[1,"text-medium","fw-600"],[1,"col-12"],["height","7rem"],["id","search-results-left"],["id","search-filters-left",1,"mb-3"],["id","lastName-left",1,"flex-grow-1","mr-3"],["type","text","id","search-left","pInputText","","placeholder","Search Players",1,"full-width","pl-4",3,"ngModelChange","ngModel"],["for","search-left",1,"sr-only"],[1,"mt-3"],["id","registrationTryoutDateID-container-left",1,"d-flex","align-items-center","mb-3"],["id","registrationTryoutDateID-label-left",1,"mr-3","width-auto","text-uppercase","flex-grow-1"],["for","registrationTryoutDateID-left"],["id","registrationTryoutDateID-dd-left",1,"flex-grow-1"],["id","orderBy-container-left",1,"d-flex","align-items-center"],["id","orderBy-label-left",1,"mr-3","flex-grow-1"],["for","orderBy-left"],["id","orderBy-dd-left",1,"flex-grow-1"],["inputID","orderBy-left","styleClass","full-width","optionLabel","name","optionValue","id","name","orderBy",3,"ngModelChange","ngModel","options","disabled"],["id","tierID-container-left",1,"d-flex","align-items-center","full-width","mb-3"],["id","tierID-label-left",1,"mr-3","text-uppercase","flex-grow-1"],["for","tierID-left"],["inputID","tierID","styleClass","full-width","optionLabel","name","optionValue","playerPoolTierID","name","tierID-left",3,"ngModelChange","ngModel","options","disabled"],[1,"n
1455o-bullets","players-list","evaluation-list"],["href","javascript:void(0);",1,"player-link","evaluation-link",3,"click"],[1,"d-flex","justify-content-end","ml-auto","align-items-center","pr-2"],[1,"criteria-player-counter","text-grey"],[1,"fa","fa-chevron-right","text-grey"],[1,"sticky"],[1,"player-header-right","d-flex","align-items-center","border-bottom","pb-2","mb-3"],[1,"text-medium","text-grey"],[1,"criteria-header","text-larger","fw-800","d-flex","align-items-center"],[1,"composite-rating","d-flex","justify-content-end","ml-auto"],[1,"criteria-description","mb-3",3,"innerHtml"],[1,"py-3","px-3"],[3,"save","delete","question","criteriaGroup","surveyID","surveyResponseID","playerID","value","inputIDPrefix","editService","isEditable","showAIAssistant"],[1,"py-3"],[3,"save","delete","criteriaGroup","assignment","surveyID","surveyResponseID","playerID","value","inputIDPrefix","editService","isEditable"],[1,"border-top","py-3","mt-0"],[3,"delete","criteriaGroup","surveyID","surveyResponseID","playerID","value","inputID","editService","isEditable","showAIAssistant"],[1,"border-bottom","pb-2","mb-3"],[3,"skeletonType","showLargeProfilePic","showProfilePicCircle"],[1,"row","mb-1"],["height","5rem"]],template:function(l,r){if(l&1&&(o(0,"main",10),e(1,`
1456    `),o(2,"app-admin-header",11),v("primaryBtnAction",function(){return r.exportCSV()}),e(3,`
1457        `),e(4,`
1458    `),a(),e(5,`
1459
1460    `),p(6,Jo,3,2),o(7,"div",12),e(8,`
1461        `),o(9,"div",13),e(10,`
1462            `),o(11,"div",14),e(12,`
1463                `),o(13,"div",15),e(14,`
1464                    `),o(15,"div",16),e(16,`
1465                        `),o(17,"button",17),v("click",function(){return r.changeTab(r.EvaluationTab.PLAYERS)}),e(18,`
1466                            Players
1467                        `),a(),e(19,`
1468                    `),a(),e(20,`
1469                    `),o(21,"div",16),e(22,`
1470                        `),o(23,"button",17),v("click",function(){return r.changeTab(r.EvaluationTab.CRITERIA)}),e(24,`
1471                            Criteria
1472                        `),a(),e(25,`
1473                    `),a(),e(26,`
1474                `),a(),e(27,`
1475            `),a(),e(28,`
1476            `),p(29,Xo,3,1)(30,er,3,1),e(31,`
1477        `),a(),e(32,`
1478        `),o(33,"div",18),e(34,`
1479            `),o(35,"div",19),e(36,`
1480                `),p(37,ir,3,1)(38,ar,3,1),e(39,`
1481            `),a(),e(40,`
1482        `),a(),e(41,`
1483    `),a(),e(42,`
1484`),a(),e(43,`
1485
1486`),T(44,Ar,3,1,"ng-template",null,0,J),e(46,`
1487
1488`),T(47,rl,3,1,"ng-template",null,1,J),e(49,`
1489
1490`),T(50,Tl,7,3,"ng-template",null,2,J),e(52,`
1491
1492`),T(53,Zl,3,2,"ng-template",null,3,J),e(55,`
1493
1494
1495`),T(56,ts,3,1,"ng-template",null,4,J),e(58,`
1496
1497`),T(59,ns,6,1,"ng-template",null,5,J),e(61,`
1498`)),l&2){let m,x;s(2),u("pageTitle",r.linkText)("showBackButton",!0)("parentLinkText",r.registrationName?r.registrationName:"")("parentLinkUrl","/admin/tryouts/registrations/"+r.registrationID+"/player-pools")("grandParentLinkText","Tryouts")("grandParentLinkUrl","/admin/tryouts")("primaryBtnText",r.showExportButton&&(r.searchData[r.selectedTab]==null||r.searchData[r.selectedTab].searchResults==null||r.searchData[r.selectedTab].searchResults.results==null?null:r.searchData[r.selectedTab].searchResults.results.length)>0?"Export All Evaluations":""),s(4),_(r.loading?-1:6),s(11),L("selected",r.selectedTab===r.EvaluationTab.PLAYERS),s(6),L("selected",r.selectedTab===r.EvaluationTab.CRITERIA),s(6),_((m=r.selectedTab)===r.EvaluationTab.PLAYERS?29:m===r.EvaluationTab.CRITERIA?30:-1),s(8),_((x=r.selectedTab)===r.EvaluationTab.PLAYERS?37:x===r.EvaluationTab.CRITERIA?38:-1)}},dependencies:[Rt,Pe,Q,z,Ae,ti,Ce,H,li,ye,Me,Di,bi,Ei,Ti,Ri,Mt,se,zt],styles:[".left-panel[_ngcontent-%COMP%]{min-height:1000px}.evaluation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border-left:3px solid transparent}.evaluation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:var(--grey-75)}.evaluation-list[_ngcontent-%COMP%]   li.selected[_ngcontent-%COMP%]{border-left:3px solid var(--blue-1000);background-color:var(--primary-background)}.evaluation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .evaluation-link[_ngcontent-%COMP%]{color:var(--base-text);display:block;padding:.5rem 0 .5rem .5rem}.evaluation-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .evaluation-link[_ngcontent-%COMP%]:hover{background-color:var(--grey-75);text-decoration:none;color:var(--base-text)}.composite-rating[_ngcontent-%COMP%]{color:var(--blue-1000)}div.sticky[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0}
1498.metric-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;width:10ch}"]});let i=d;return i})();var as=()=>({overflow:"visible"});function os(i,d){i&1&&(e(0,`
1499          `),o(1,"tr"),e(2,`
1500            `),o(3,"td",10),e(4,`
1501              No tiers found
1502            `),a(),e(5,`
1503          `),a(),e(6,`
1504        `))}function rs(i,d){if(i&1&&(e(0,`
1505              `),o(1,"th",11),e(2),h(3,"p-sortIcon",12),e(4,`
1506              `),a(),e(5,`
1507            `)),i&2){let t=d.$implicit,n=c(2);s(),u("pSortableColumn",t.field),ue("aria-label",n.AriaLabels.ACTIVATE_SORT),s(),S(`
1508                `,t.header,`
1509                `),s(),u("field",t.field)}}function ls(i,d){if(i&1&&(e(0,`
1510          `),o(1,"tr"),e(2,`
1511            `),A(3,rs,6,4,null,null,w),h(5,"th"),e(6,`
1512          `),a(),e(7,`
1513        `)),i&2){let t=c();s(3),R(t.cols)}}function ss(i,d){if(i&1){let t=D();e(0,`
1514          `),o(1,"tr"),e(2,`
1515            `),o(3,"td")(4,"a",13),v("click",function(){let l=y(t).$implicit,r=c();return C(r.edit(l))}),e(5),a()(),e(6,`
1516            `),o(7,"td"),e(8),a(),e(9,`
1517            `),o(10,"td")(11,"a",13),v("click",function(){let l=y(t).$implicit,r=c();return C(r.showDelete(l))}),e(12,"Delete"),a()(),e(13,`
1518          `),a(),e(14,`
1519        `)}if(i&2){let t=d.$implicit;s(5),f(t.name),s(3),f(t.playerPoolName)}}function ds(i,d){if(i&1){let t=D();e(0,`
1520      `),o(1,"app-dynamic-form",14,0),v("onSubmit",function(l){y(t);let r=c();return C(r.save(l))})("onCancel",function(){y(t);let l=c();return C(l.showEditDialog=!1)}),e(3,`
1521        `),o(4,"app-dynamic-form-field",15),e(5,`
1522        `),a(),e(6,`
1523        `),o(7,"app-dynamic-form-field",16),e(8,`
1524        `),a(),e(9,`
1525      `),a(),e(10,`
1526    `)}if(i&2){let t=c();s(),u("fields",t.fields)("entity",t.editEntity)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("buttonsPosition","left")}}function cs(i,d){if(i&1){let t=D();e(0,`
1527    `),o(1,"app-yes-no-modal",17),v("onYesSelect",function(){y(t);let l=c();return C(l.delete())})("onNoSelect",function(){y(t);let l=c();return C(l.showDeleteDialog=!1)}),e(2,`
1528      `),o(3,"div",18),e(4,`
1529        `),o(5,"app-inline-alert",19),e(6,`
1530          Are you sure you want to delete this tier?
1531        `),a(),e(7,`
1532      `),a(),e(8,`
1533    `),a(),e(9,`
1534  `)}if(i&2){let t=c();s(),u("showModalText",!1)("loading",t.loading),s(4),u("isInline",!0)}}var an=(()=>{let d=class d{constructor(n,l,r,m){this.router=n,this.siteDataService=l,this.tryoutService=r,this.route=m,this.loading=!0,this.showEditDialog=!1,this.showDeleteDialog=!1,this.cols=[{field:"name",header:"Name"},{field:"playerPoolName",header:"Player Pool"}],this.AriaLabels=we;let x=this.router.getCurrentNavigation()??this.router.lastSuccessfulNavigation();x?.extras.state&&(this.regName=x.extras.state.regName)}ngOnInit(){this.registrationID=this.route.snapshot.params.registrationID,this.tryoutService.getPlayerPoolTiers(this.registrationID).subscribe({next:n=>{this.tiers=n,this.siteDataService.hideSiteLoader(),this.loading=!1}})}edit(n){this.editEntity=n,this.fields?(this.setPlayerPoolFieldType(Re.DROPDOWN),this.showEditDialog=!0):this.tryoutService.getPlayerPoolTierMetadata().subscribe({next:l=>{this.fields=l.fields,this.setPlayerPoolFieldType(Re.DROPDOWN),this.showEditDialog=!0}})}setPlayerPoolFieldType(n){let l=this.fields.find(r=>r.controlName==="playerPoolID");l.dynamicFormFieldTypeID=n,n===Re.DROPDOWN?l.validators.some(r=>r.validatorType===K.DIGITS)||l.validators.push({validatorType:K.DIGITS},{validatorType:K.NUMBER}):l.validators=l.validators.filter(r=>r.validatorType!==K.DIGITS&&r.validatorType!==K.NUMBER)}showDelete(n){this.deleteEntity=n,this.showDeleteDialog=!0}delete(){this.tryoutService.deletePlayerPoolTier(this.registrationID,this.deleteEntity.playerPoolTierID).subscribe({next:()=>{this.tiers=this.tiers.filter(n=>n.playerPoolTierID!==this.deleteEntity.playerPoolTierID),this.siteDataService.showSiteSuccessAlert("Tier was deleted successfully"),this.showDeleteDialog=!1},error:n=>{this.siteDataService.showSiteErrorAlert(n.error),this.showDeleteDialog=!1}})}create(){this.editEntity=null,this.fields?(this.setPlayerPoolFieldType(Re.MULTISELECT),this.showEditDialog=!0):this.tryoutService.getPlayerPoolTierMetadata().subscribe({next:n=>{this.fields=n.fields,this.setPlayerPoolFieldType(Re.MULTISELECT),this.showEditDialog=!0}})}save(n){this.tryoutService.savePlayerPoolTier(this.registrationID,this.editEntity?.playerPoolTierID,n).subscribe({next:()=>{this.tryoutService.getPlayerPoolTiers(this.registrationID).subscribe({next:l=>{this.tiers=l,this.showEditDialog=!1,this.siteDataService.showSiteSuccessAlert("Tier was saved successfully")}})},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem saving this tier")}})}};d.\u0275fac=function(l){return new(l||d)(E(ee),E(G),E(Y),E(q))},d.\u0275cmp=V({type:d,selectors:[["ng-component"]],standalone:!1,decls:25,vars:17,consts:[["form",""],["role","main"],["primaryBtnText","Add Tier",3,"primaryBtnAction","pageTitle","showBackButton","parentLinkText","parentLinkUrl"],[1,"row"],[1,"col-xl-10"],["responsiveLayout","scroll","sortField","name",3,"columns","value","loading"],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],["styleClass","standardWidthDialog",3,"visibleChange","visible","showHeader","closable","modal","draggable","header","contentStyle"],["colspan","6"],[3,"pSortableColumn"],[3,"field"],[3,"click"],[3,"onSubmit","onCancel","fields","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","name"],["fieldName","playerPoolID"],["headerText","Delete Tier","dialogClass","standardWidthDialog","yesButtonText","Yes","yesButtonLoadingText","Deleting...","noButtonText","No",3,"onYesSelect","onNoSelect","showModalText","loading"],[1,"text-medium","fw-600"],["alertType","warning",3,"isInline"]],template:function(l,r){l&1&&(o(0,"main",1),e(1,`
1535  `),o(2,"app-admin-header",2),v("primaryBtnAction",function(){return r.create()}),e(3,`
1536  `),a(),e(4,`
1537  `),o(5,"div",3),e(6,`
1538    `),o(7,"div",4),e(8,`
1539      `),o(9,"p-table",5),e(10,`
1540        `),T(11,os,7,0,"ng-template",6),e(12,`
1541        `),T(13,ls,8,0,"ng-template",7),e(14,`
1542        `),T(15,ss,15,2,"ng-template",8),e(16,`
1543      `),a(),e(17,`
1544    `),a(),e(18,`
1545  `),a(),e(19,`
1546  `),o(20,"p-dialog",9),I("visibleChange",function(x){return P(r.showEditDialog,x)||(r.showEditDialog=x),x}),e(21,`
1547    `),p(22,ds,11,7),a(),e(23,`
1548
1549  `),p(24,cs,10,3),a()),l&2&&(s(2),u("pageTitle","Configure Tiers: "+r.regName)("showBackButton",!0)("parentLinkText","Tryouts")("parentLinkUrl","/admin/tryouts"),s(7),u("columns",r.cols)("value",r.tiers)("loading",r.loading),s(11),b("visible",r.showEditDialog),u("showHeader",!0)("closable",!1)("modal",!0)("draggable",!1)("header",r.editEntity?"Edit Tier":"Create Tier")("contentStyle",ne(16,as)),s(2),_(r.fields&&r.showEditDialog?22:-1),s(2),_(r.showDeleteDialog?24:-1))},dependencies:[ce,de,te,Ce,H,tt,he,Ke,Xe,ie],encapsulation:2});let i=d;return i})();var on=(()=>{let d=class d{};d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=Qe({type:d}),d.\u0275inj=We({imports:[ut.forChild([{path:"",canActivate:[Ee,ae,oe],component:tn,data:{permissions:[k.Tryouts],metaTitle:"Manage Tryouts"}},{path:"settings",canActivate:[Ee,ae,oe],component:lt,data:{permissions:[k.TryoutSettings],metaTitle:"Tryouts Settings"}},{path:"registrations/:registrationID/player-pools",component:Yi,canActivate:[Ee,ae,oe],data:{permissions:[k.PlayerPools],metaTitle:"Player Pools"}},{path:"registrations/:registrationID/player-pools/:playerPoolID/rank-players/positions/:positionID",component:St,canActivate:[Ee,ae,oe],data:{permissions:[k.PlayerPools],metaTitle:"Rank Players"}},{path:"registrations/:registrationID/player-pools/:playerPoolID/rank-players",component:St,canActivate:[Ee,ae,oe],data:{permissions:[k.PlayerPools],metaTitle:"Rank Players"}},{path:"registrations/:registrationID/player-pools/:playerPoolID/evaluations/:surveyID/assignments/:surveyRegistrationAssignID",component:nn,canActivate:[Ee,ae,oe],data:{permissions:[k.TryoutEvaluations],metaTitle:"Tryout Evaluations"}},{path:"registrations/:registrationID/assign-staff",component:Xi,canActivate:[ae,oe],data:{permissions:[k.AssignStaffToTryout],metaTitle:"Assign Staff"}},{path:"registrations/:registrationID/attendance/:registrationTryoutDateID",component:Ji,canActivate:[ae,oe],data:{permissions:[k.TakeAttendance],metaTitle:"Player Attendance"}},{path:"registrations/:registrationID/tryout-dates",component:Zi,canActivate:[ae,oe],data:{permissions:[k.ConfigureTryoutDates],metaTitle:"Configure Tryout Dates"}},{path:"registrations/:registrationID/tiers",component:an,canActivate:[ae,oe],data:{permissions:[k.TryoutSettings],metaTitle:"Configure Tiers"}}]),ut]});let i=d;return i})();var tm=(()=>{let d=class d{};d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=Qe({type:d}),d.\u0275inj=We({providers:[fe,it,Pi,Ii,nt],imports:[gi,on,fi,Vi,Wi,Ui,ki,Fi,Mi,$i]});let i=d;return i})();export{tm as TryoutModule};

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.