PageSourceSearch

https://evanstonhockey.com/chunk-37XWLW2P.js

js evanstonhockey.com collected 2026-10-08 09:13:03 UTC 28,653 bytes, 241 lines download raw bytes

1import{a as qe,b as Ke}from"./chunk-WDWHJ6M2.js";import{a as Qe,b as Je}from"./chunk-FKMATMJN.js";import{a as $e}from"./chunk-XUDCPDVC.js";import{a as P}from"./chunk-44ZNT6MQ.js";import{a as ze}from"./chunk-ZQTEW347.js";import"./chunk-PSOULVZL.js";import"./chunk-XAXLMUF6.js";import"./chunk-6ORYOOUQ.js";import"./chunk-ZB44PIZA.js";import"./chunk-YBFQQSLW.js";import"./chunk-BT6MT7GL.js";import{a as oe}from"./chunk-4CVZBQNN.js";import"./chunk-ZB64W4XA.js";import"./chunk-SVABVB5X.js";import"./chunk-CMY6WAF3.js";import"./chunk-4D5SN44G.js";import{d as We,j as Ge}from"./chunk-22ACI5KU.js";import"./chunk-FXUQQQIE.js";import"./chunk-HYGNXZJR.js";import{a as Ue}from"./chunk-B6XXRKU5.js";import"./chunk-6Q5DDO7R.js";import"./chunk-RW2MVE4O.js";import"./chunk-3ZVRFUA4.js";import{a as Be,b as Ye,c as $,i as je}from"./chunk-H4PCL6BZ.js";import"./chunk-U22BTVEZ.js";import{Ce as Ne,Ec as Fe,Ee as Re,Gc as Pe,Hc as Me,Jc as Ve,Kb as Ie,Kg as Oe,b as fe,d as ve,k as he,kh as ke,lc as Ae,mb as De,xa as g,ya as be,ye as Le}from"./chunk-X5J6QTCG.js";import{$ as O,$a as d,Ad as ne,Db as pe,E as Q,Fa as s,Fb as W,Gb as de,H as le,Ib as e,Jb as H,Ka as h,Kb as w,L as J,Lb as X,Lc as xe,Ma as b,Na as k,Qb as I,Rb as A,Sa as D,Sb as F,Th as Te,U as M,Wc as _e,Xa as B,bb as u,be as Ce,bg as ge,cc as ue,d as re,db as Y,dc as Z,di as Ee,eb as j,fa as x,fb as U,ga as _,gb as p,hb as n,ib as o,jb as f,k as R,lc as ee,nb as V,nc as te,ob as L,pj as we,q as K,qb as S,qc as ie,sb as C,tb as c,u as ae,vd as G,wd as ye,xb as se,xd as Se,yb as me,yd as z,zb as ce}from"./chunk-SMW7PHYX.js";import"./chunk-BMIYOSOG.js";var N=class{constructor(a=void 0){this.page=1,this.rows=100,this.orderBy=a}},T=(function(t){return t[t.ACTIVE=1]="ACTIVE",t[t.INACTIVE=2]="INACTIVE",t[t.INCOMPLETE=3]="INCOMPLETE",t})(T||{});function ot(t,a){t&1&&(e(0,`
2            `),n(1,"span",9),e(2,`
3              Effective:
4            `),o(),e(3,`
5          `))}function rt(t,a){t&1&&(e(0,`
6            `),n(1,"span",9),e(2,`
7              Effective Date:
8            `),o(),e(3,`
9          `))}function at(t,a){if(t&1&&(e(0),ee(1,"date")),t&2){let i=c();w(`
10              \u2013
11              `,te(1,1,i.item.endDate,"MM/dd/yyyy"),`
12            `)}}function lt(t,a){if(t&1&&(e(0,`
13                  `),n(1,"app-tag",13),e(2,`
14                  `),o(),e(3,`
15                `)),t&2){let i=c(2);s(),p("text",i.item.programName)("clickable",!0)("routerLink","/admin/programs/"+i.item.programID+"/basic-info")}}function st(t,a){if(t&1&&(e(0,`
16                  `),n(1,"app-tag",14),e(2,`
17                  `),o(),e(3,`
18                `)),t&2){let i=c(2);s(),p("text",i.item.programName)}}function mt(t,a){if(t&1&&(e(0,`
19      `),n(1,"div",10),e(2,`
20        `),n(3,"div",7),e(4,"program"),o(),e(5,`
21        `),n(6,"div",8),e(7,`
22          `),n(8,"div",11),e(9,`
23            `),n(10,"div",8),e(11,`
24              `),n(12,"div",12),e(13,`
25                `),d(14,lt,4,3),d(15,st,4,1),o(),e(16,`
26            `),o(),e(17,`
27          `),o(),e(18,`
28        `),o(),e(19,`
29      `),o(),e(20,`
30    `)),t&2){let i=c();s(14),u(i.user[i.Permission.Programs]?14:-1),s(),u(i.user[i.Permission.Programs]?-1:15)}}function ct(t,a){if(t&1&&(e(0,`
31                    `),n(1,"app-tag",13),e(2,`
32                    `),o(),e(3,`
33                  `)),t&2){let i=c().$implicit;s(),p("text",i.name)("clickable",!0)("routerLink","/admin/teams/setup/"+i.teamID)}}function pt(t,a){if(t&1&&(e(0,`
34                    `),n(1,"app-tag",13),e(2,`
35                    `),o(),e(3,`
36                  `)),t&2){let i=c().$implicit,l=c(2);s(),p("text",i.name)("clickable",!0)("routerLink","/admin/teams/manage-team/"+i.teamID+"/program/"+l.item.programID+"/forms")}}function dt(t,a){if(t&1&&(e(0,`
37                    `),n(1,"app-tag",14),e(2,`
38                    `),o(),e(3,`
39                  `)),t&2){let i=c().$implicit;s(),p("text",i.name)}}function ut(t,a){if(t&1&&(e(0,`
40                `),n(1,"div",12),e(2,`
41                  `),d(3,ct,4,3),d(4,pt,4,3),d(5,dt,4,1),o(),e(6,`
42              `)),t&2){let i=c(2);s(3),u(i.user[i.Permission.TeamAdmin]&&i.user[i.Permission.Teams]&&!i.item.isProgramActive?3:-1),s(),u(i.user[i.Permission.TeamAdmin]&&i.user[i.Permission.Teams]&&i.item.isProgramActive?4:-1),s(),u(!i.user[i.Permission.TeamAdmin]||!i.user[i.Permission.Teams]?5:-1)}}function xt(t,a){if(t&1&&(e(0,`
43          `),n(1,"div",11),e(2,`
44            `),n(3,"div",8),e(4,`
45              `),j(5,ut,7,3,null,null,Y),o(),e(7,`
46          `),o(),e(8,`
47        `)),t&2){let i=c();s(5),U(i.item.teams)}}function _t(t,a){t&1&&(e(0,`
48          `),n(1,"div",15),e(2,"None"),o(),e(3,`
49        `))}var Xe=(()=>{let a=class a{constructor(){this.Permission=Te}};a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=b({type:a,selectors:[["app-form-search-details"]],inputs:{item:"item",user:"user"},standalone:!1,decls:36,vars:9,consts:[[1,"details-row"],[1,"details-wrapper"],[1,"row","mx-0","py-1","border-bottom"],[1,"col","pl-0"],[1,"bg-navy","text-white","border-radius-sm","mr-2","px-2","py-1","d-inline-block"],[1,"text-uppercase","fw-600"],[1,"row","mx-0","py-2"],[1,"col-2","pl-0","text-small","text-uppercase"],[1,"col"],[1,"text-small","text-uppercase","mr-2"],[1,"row","mx-0","border-bottom","py-2"],[1,"row"],[1,"d-inline-block","mb-2"],["icon","fa-regular fa-pen-to-square",3,"text","clickable","routerLink"],[3,"text"],[1,"text-small","text-grey"]],template:function(r,m){r&1&&(n(0,"div",0),e(1,`
50  `),n(2,"div",1),e(3,`
51    `),n(4,"div",2),e(5,`
52      `),n(6,"div",3),e(7,`
53        `),n(8,"div",4),e(9,`
54          `),d(10,ot,4,0),d(11,rt,4,0),n(12,"span",5),e(13,`
55            `),V(14),e(15),ee(16,"date"),L(),e(17,`
56            `),d(18,at,2,4),o(),e(19,`
57        `),o(),e(20,`
58      `),o(),e(21,`
59    `),o(),e(22,`
60
61    `),d(23,mt,21,2),n(24,"div",6),e(25,`
62      `),n(26,"div",7),e(27,"teams"),o(),e(28,`
63      `),n(29,"div",8),e(30,`
64        `),d(31,xt,9,0)(32,_t,4,0),o(),e(33,`
65    `),o(),e(34,`
66  `),o(),e(35,`
67`),o()),r&2&&(s(10),u(m.item.endDate?10:-1),s(),u(m.item.endDate?-1:11),s(4),w(`
68              `,te(16,6,m.item.startDate,"MM/dd/yyyy"),`
69            `),s(3),u(m.item.endDate?18:-1),s(5),u(m.item.programID?23:-1),s(8),u(m.item.teams!=null&&m.item.teams.length?31:32))},dependencies:[z,Re,_e],styles:[".details-row[_ngcontent-%COMP%]{text-align:left!important}.details-wrapper[_ngcontent-%COMP%]{background-color:var(--grey-50);padding:.5rem 1rem}a.detail-link[_ngcontent-%COMP%]:hover{color:var(--grey-800)}"]});let t=a;return t})();var ht=["optionsMenu"],yt=()=>({width:"auto"}),St=t=>["./",t,"criteria"],Ct=t=>["./",t,"assignments"];function gt(t,a){if(t&1){let i=S();e(0,`
70          `),n(1,"div",24),e(2,`
71            `),n(3,"div",16),e(4,`
72              `),n(5,"label",25),e(6,"Program"),o(),e(7,`
73              `),n(8,"p-multiSelect",26),F("ngModelChange",function(r){x(i);let m=c();return A(m.surveyService.filters.programID,r)||(m.surveyService.filters.programID=r),_(r)}),e(9,`
74              `),o(),e(10,`
75            `),o(),e(11,`
76          `),o(),e(12,`
77        `)}if(t&2){let i=c();s(8),p("autofocusFilter",!0),I("ngModel",i.surveyService.filters.programID),p("options",i.programs)("filter",!0)("showToggleAll",!0)("maxSelectedLabels",3)}}function Tt(t,a){if(t&1){let i=S();e(0,`
78          `),n(1,"div",19),e(2,`
79            `),n(3,"div",16),e(4,`
80              `),n(5,"label",27),e(6,"Status"),o(),e(7,`
81              `),n(8,"p-multiSelect",21),F("ngModelChange",function(r){x(i);let m=c();return A(m.surveyService.filters.status,r)||(m.surveyService.filters.status=r),_(r)}),e(9,`
82              `),o(),e(10,`
83            `),o(),e(11,`
84          `),o(),e(12,`
85        `)}if(t&2){let i=c();s(8),I("ngModel",i.surveyService.filters.status),p("options",i.statuses)("filter",!1)("showToggleAll",!0)("maxSelectedLabels",3)}}function Et(t,a){if(t&1&&(e(0,`
86                `),f(1,"p-sortIcon",34),e(2,`
87              `)),t&2){let i=c().$implicit;s(),p("field",i.field)}}function wt(t,a){if(t&1&&(e(0,`
88            `),n(1,"th",33),e(2),d(3,Et,3,1),o(),e(4,`
89          `)),t&2){let i=a.$implicit,l=c(3);s(),p("pSortableColumn",i.field),B("aria-label",l.AriaLabels.ACTIVATE_SORT),s(),w(`
90              `,i.header,`
91              `),s(),u(i.field?3:-1)}}function bt(t,a){t&1&&(e(0,`
92            `),n(1,"th"),e(2,"Assignments"),o(),e(3,`
93          `))}function Dt(t,a){if(t&1&&(e(0,`
94        `),n(1,"tr"),e(2,`
95          `),j(3,wt,5,4,null,null,Y),d(5,bt,4,0),n(6,"th"),e(7,`
96            `),n(8,"span",32),e(9,"Actions"),o(),e(10,`
97          `),o(),e(11,`
98        `),o(),e(12,`
99      `)),t&2){let i=c(2);s(3),U(i.surveyService.columns),s(2),u(i.clubID!==0?5:-1)}}function It(t,a){t&1&&(e(0,`
100                  `),n(1,"app-pill",42),e(2,`
101                  `),o(),e(3,`
102                `))}function At(t,a){t&1&&(e(0,`
103                  `),n(1,"app-pill",43),e(2,`
104                  `),o(),e(3,`
105                `))}function Ft(t,a){t&1&&(e(0,`
106                  `),n(1,"app-pill",44),e(2,`
107                  `),o(),e(3,`
108                `))}function Pt(t,a){if(t&1&&(e(0,`
109            `),n(1,"td"),e(2,`
110              `),d(3,It,4,0)(4,At,4,0)(5,Ft,4,0),e(6,`
111            `),o(),e(7,`
112          `)),t&2){let i,l=c().$implicit,r=c(2);s(3),u((i=l.status)===r.SurveySearchStatus.ACTIVE?3:i===r.SurveySearchStatus.INACTIVE?4:i===r.SurveySearchStatus.INCOMPLETE?5:-1)}}function Mt(t,a){if(t&1&&(e(0,`
113                  `),n(1,"div",46),e(2,`
114                    `),n(3,"div",47),e(4,`
115                      `),n(5,"span",48),e(6,"Staff Only"),o(),e(7,`
116                      `),n(8,"span",49),e(9),o(),e(10,`
117                    `),o(),e(11,`
118                    `),f(12,"app-criteria-group-visibility",50),e(13,`
119                  `),o(),e(14,`
120                `)),t&2){let i=c(2).$implicit,l=c(2);s(),W("pb-2",i.staffAndPlayerCount>0)("mb-2",i.staffAndPlayerCount>0)("border-bottom",i.staffAndPlayerCount>0),s(8),X(" ",i.staffOnlyCount," group",i.staffOnlyCount!==1?"s":""),s(3),p("visibility",l.SurveyCriteriaGroupVisibilityOption.EVALUATOR_ONLY)}}function Vt(t,a){if(t&1&&(e(0,`
121                  `),n(1,"div",46),e(2,`
122                    `),n(3,"div",47),e(4,`
123                      `),n(5,"span",48),e(6,"Staff & Players/Parents"),o(),e(7,`
124                      `),n(8,"span",49),e(9),o(),e(10,`
125                    `),o(),e(11,`
126                    `),f(12,"app-criteria-group-visibility",50),e(13,`
127                  `),o(),e(14,`
128                `)),t&2){let i=c(2).$implicit,l=c(2);s(9),X(" ",i.staffAndPlayerCount," group",i.staffAndPlayerCount!==1?"s":""),s(3),p("visibility",l.SurveyCriteriaGroupVisibilityOption.EVALUATOR_AND_EVALUATEE)}}function Lt(t,a){if(t&1&&(e(0,`
129              `),n(1,"div"),e(2,`
130                `),n(3,"div",45),e(4,`
131                  Visibility by Criteria Group
132                `),o(),e(5,`
133                `),d(6,Mt,15,9),d(7,Vt,15,3),o(),e(8,`
134              `)),t&2){let i=c().$implicit;s(6),u(i.staffOnlyCount>0?6:-1),s(),u(i.staffAndPlayerCount>0?7:-1)}}function Nt(t,a){if(t&1&&(e(0,`
135            `),n(1,"td"),e(2,`
136              `),n(3,"a",51),e(4),o(),e(5,`
137            `),o(),e(6,`
138          `)),t&2){let i=c().$implicit;
138s(3),W("text-red",i.assignmentCount===0)("fw-800",i.assignmentCount===0),p("routerLink",Z(6,Ct,i.surveyID)),s(),w(`
139                `,i.assignmentCount,`
140              `)}}function Rt(t,a){if(t&1&&(e(0,`
141                `),n(1,"button",52),e(2,`
142                  `),f(3,"i",53),e(4,`
143                  `),n(5,"span",32),e(6,`
144                    Expand
145                  `),o(),e(7,`
146                `),o(),e(8,`
147              `)),t&2){let i=c(),l=i.$implicit,r=i.expanded,m=c(2);s(),W("visibility-hidden",l.surveyTypeID===m.SurveyType.PLAYER_MEASURABLES),p("pRowToggler",l),s(2),p("ngClass",r?"fa-rotate-180":"")}}function Ot(t,a){if(t&1){let i=S();e(0,`
148        `),n(1,"tr"),e(2,`
149          `),n(3,"td"),e(4,`
150            `),n(5,"a",35),e(6),o(),e(7,`
151          `),o(),e(8,`
152          `),n(9,"td"),e(10),o(),e(11,`
153          `),n(12,"td"),e(13),o(),e(14,`
154          `),d(15,Pt,8,1),n(16,"td",36),e(17,`
155            `),f(18,"app-criteria-group-visibility",37),e(19,`
156            `),n(20,"p-popover",38,2),e(22,`
157                `),D(23,Lt,9,2,"ng-template",null,3,ie),e(25,`
158            `),o(),e(26,`
159          `),o(),e(27,`
160          `),d(28,Nt,7,8),n(29,"td"),e(30,`
161            `),n(31,"div",39),e(32,`
162              `),n(33,"button",40),C("click",function(r){let m=x(i).$implicit,y=c(2);return _(y.toggleOptionsMenu(m,r))}),e(34,`
163                `),f(35,"i",41),e(36,`
164                `),n(37,"div",32),e(38,"Options"),o(),e(39,`
165              `),o(),e(40,`
166              `),d(41,Rt,9,4),o(),e(42,`
167          `),o(),e(43,`
168        `),o(),e(44,`
169      `)}if(t&2){let i=a.$implicit,l=pe(21),r=c(2);s(5),p("routerLink",Z(9,St,i.surveyID)),s(),w(`
170              `,i.title,`
171            `),s(4),H(i.internalName),s(3),H(i.surveyFormTypeFriendlyName),s(2),u(r.clubID!==0?15:-1),s(3),p("visibility",i.hasVisibleCriteriaGroup?r.SurveyCriteriaGroupVisibilityOption.EVALUATOR_AND_EVALUATEE:r.SurveyCriteriaGroupVisibilityOption.EVALUATOR_ONLY)("visibilityOp",l),s(10),u(r.clubID!==0?28:-1),s(13),u(r.clubID!==0&&r.surveyEvaluateeTypeID===r.SurveyEvaluateeType.PLAYER?41:-1)}}function kt(t,a){if(t&1&&(e(0,`
172        `),n(1,"tr"),e(2,`
173          `),n(3,"td",54),e(4,`
174            `),f(5,"app-form-search-details",55),e(6,`
175          `),o(),e(7,`
176        `),o(),e(8,`
177      `)),t&2){let i=a.$implicit,l=c(2);s(3),B("colspan","10"),s(2),p("item",i)("user",l.user)}}function Bt(t,a){if(t&1&&(e(0,`
178        `),n(1,"tr"),e(2,`
179          `),n(3,"td",56),e(4,`
180            The search criteria produced no results.
181          `),o(),e(5,`
182        `),o(),e(6,`
183      `)),t&2){let i=a.$implicit;s(3),B("colspan",i.length+3)}}function Yt(t,a){if(t&1){let i=S();e(0,`
184    `),n(1,"p-table",28),C("onLazyLoad",function(r){x(i);let m=c();return _(m.search(r))}),e(2,`
185      `),D(3,Dt,13,1,"ng-template",29),e(4,`
186      `),D(5,Ot,45,11,"ng-template",30),e(6,`
187      `),D(7,kt,9,3,"ng-template",null,1,ie),e(9,`
188      `),D(10,Bt,7,1,"ng-template",31),e(11,`
189    `),o(),e(12,`
190  `)}if(t&2){let i=c();s(),p("columns",i.surveyService.columns)("value",i.searchResults)("lazy",!0)("paginator",!0)("alwaysShowPaginator",!1)("totalRecords",i.totalRecords)("rows",100)("sortOrder",-1)("loading",i.loading)("dataKey","surveyID")("expandedRowKeys",i.expandedRows)}}function jt(t,a){if(t&1){let i=S();e(0,`
191  `),n(1,"app-form-clone-dialog",57),C("onCancel",function(){x(i);let r=c();return _(r.showCloneDialog=!1)})("onClone",function(){x(i);let r=c();return _(r.onClone())}),e(2,`
192  `),o(),e(3,`
193`)}if(t&2){let i=c();s(),p("surveyID",i.cloneSurvey.surveyID)("surveyFormTypeID",i.cloneSurvey.surveyFormTypeID)("clubID",i.clubID)}}function Ut(t,a){if(t&1){let i=S();e(0,`
194  `),n(1,"app-yes-no-modal",58),C("onYesSelect",function(){x(i);let r=c();return _(r.deleteSurvey())})("onNoSelect",function(){x(i);let r=c();return _(r.showDeleteConfirm=!1)}),o(),e(2,`
195`)}if(t&2){let i=c();s(),p("loading",i.deleting)}}function Wt(t,a){if(t&1){let i=S();e(0,`
196  `),n(1,"app-yes-no-modal",59),C("onYesSelect",function(){x(i);let r=c();return _(r.saveAndComplete())})("onNoSelect",function(){x(i);let r=c();return _(r.showCompleteConfirm=!1)}),e(2,`
197    `),n(3,"div",60)(4,"div",61),e(5,"This will finalize all evaluations and post the results to the Player Profiles. Are you sure you wish to continue?"),o()(),e(6,`
198  `),o(),e(7,`
199`)}if(t&2){let i=c();s(),p("showModalText",!1)("loading",i.processing)}}function Gt(t,a){if(t&1){let i=S();e(0,`
200  `),n(1,"app-yes-no-modal",62),C("onYesSelect",function(){x(i);let r=c();return _(r.saveAndNotify())})("onNoSelect",function(){x(i);let r=c();return _(r.showNotifyConfirm=!1)}),e(2,`
201    `),n(3,"div",60)(4,"div",61),e(5,"This will finalize all evaluations, post the results to Player Profiles, and send email notifications to parents/players. Are you sure you want to continue?"),o()(),e(6,`
202  `),o(),e(7,`
203`)}if(t&2){let i=c();s(),p("showModalText",!1)("loading",i.processing)}}var Ze=(()=>{let a=class a{constructor(l,r,m,y,E,v,it){this.siteDataService=l,this.programService=r,this.surveyService=m,this.sprocketSurveyService=y,this.authorizeService=E,this.router=v,this.route=it,this.surveyName="Form",this.surveyEvaluateeTypeID=$.PLAYER,this.showTeams=!0,this.AriaLabels=ge,this.totalRecords=0,this.loading=!0,this.showTable=!1,this.showCloneDialog=!1,this.options=[],this.SurveyType=Be,this.SurveySearchStatus=T,this.SurveyEvaluateeType=$,this.SurveyCriteriaGroupVisibilityOption=je,this.teamsExpanded={},this.statuses=[{label:"Active",value:T.ACTIVE},{label:"Inactive",value:T.INACTIVE},{label:"Incomplete",value:T.INCOMPLETE}],this.showDeleteConfirm=!1,this.deleting=!1,this.showCompleteConfirm=!1,this.showNotifyConfirm=!1,this.processing=!1,this.expandedRows={},this.unsubscribe$=new re}ngOnInit(){this.surveyEvaluateeTypeID=this.surveyService.surveyEvaluateeTypeID,this.authorizeService.getUser().pipe(le(1)).subscribe(l=>{this.user=l,this.clubID=+l.clubID,this.clubID===0&&this.surveyService.columns.some(r=>r.field==="status")&&this.surveyService.columns.splice(this.surveyService.columns.length-1,1),this.surveyService.filters&&this.surveyService.filters.page?this.showTable=!0:(this.surveyService.filters=new N,this.clubID>0&&(this.surveyService.filters.status=[T.ACTIVE]))}),ae({surveyTypes:this.surveyService.getSurveyFormTypesDropdown(),programs:this.surveyEvaluateeTypeID===$.PLAYER?this.programService.getProgramsByType([g.SUPPLEMENTAL,g.TEAM,g.TRYOUTS,g.LEAGUE],!1,!1):R(null)}).pipe(M(this.unsubscribe$)).subscribe(l=>{this.surveyTypes=l.surveyTypes,l.programs&&(this.programs=l.programs.results.filter(r=>(r.programTypeID===g.TRYOUTS||r.programTeamTypeID!==be.GROUP)&&(r.programTypeID===g.LEAGUE&&!r.isAdultProgram||r.programTypeID!==g.LEAGUE))),this.siteDataService.hide
203SiteLoader()}),this.run()}run(){this.surveyService.filters.page=1,this.totalRecords=0,this.showTable?this.search():this.showTable=!0}search(l=null){this.lastSearchParams=l;let r=this.surveyService.filters;l&&l.sortField&&(r.orderBy=l.sortField+" "+(l.sortOrder===1?"ASC":"DESC"),r.page=l.first/r.rows+1),r.getTotalCount=this.totalRecords===0,this.loading=!0,this.surveyService.searchSurveys().pipe(M(this.unsubscribe$)).subscribe({next:m=>{this.searchResults=m.results,r.getTotalCount&&(this.totalRecords=m.count),this.loading=!1,this.showTable=!0},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}teamsDisplay(l){return l.join(", ")}isDateFuture(l){return new Date<new Date(l)}resetFilters(){this.surveyService.filters=new N,this.clubID>0&&(this.surveyService.filters.status=[T.ACTIVE])}toggleOptionsMenu(l,r){this.selectedSurvey=l;let m=[];m.push({label:"Criteria",icon:"fa fa-sliders",command:()=>{this.router.navigate([this.selectedSurvey.surveyID,"criteria"],{relativeTo:this.route})}}),m.push({label:"Settings",icon:"fa fa-cog",command:()=>{this.router.navigate([this.selectedSurvey.surveyID,"settings"],{relativeTo:this.route})}}),this.selectedSurvey.surveyFormTypeID===Ye.PLAYER_PROGRESS&&m.push({label:"Submissions",icon:"fa fa-file-lines",command:()=>{this.router.navigate([this.selectedSurvey.surveyID,"submissions"],{relativeTo:this.route})}}),m.push({label:"Duplicate",icon:"fa fa-clone",command:()=>{this.openClone(this.selectedSurvey)}}),this.selectedSurvey.canDelete&&m.push({label:"Delete",icon:"fa fa-times",command:()=>{this.showDeleteConfirm=!0}}),this.selectedSurvey.canComplete&&m.push({label:"Publish",icon:"fas fa-check",command:()=>{this.showCompleteConfirm=!0}}),this.selectedSurvey.canNotify&&m.push({label:"Publish & Notify",icon:"fas fa-paper-plane",command:()=>{this.showNotifyConfirm=!0}}),this.options=[{label:"Options",items:m}],this.optionsMenu.toggle(r)}openClone(l){this.cloneSurvey=l,this.showCloneDialog=!0}onClone(){this.search(this.lastSearchParams),this.onCloneCancel()}onCloneCancel(){this.showCloneDialog=!1}deleteSurvey(){this.clubID===0?this.sprocketSurveyService.canDeleteSprocketSurvey(this.selectedSurvey.surveyID).pipe(Q(l=>l?this.surveyService.deleteSurvey(this.selectedSurvey.surveyID).pipe(K(()=>!0)):R(!1))).subscribe({next:l=>{this.deleting=!1,l?this.search(this.lastSearchParams):(this.selectedSurvey.canDelete=!1,this.siteDataService.showSiteWarnAlert("Cannot delete this form because it has been cloned to clubs.")),this.showDeleteConfirm=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem deleting the form"),this.deleting=!1}}):this.surveyService.isSurveyUnrestricted(this.selectedSurvey.surveyID).pipe(Q(l=>l?this.surveyService.deleteSurvey(this.selectedSurvey.surveyID).pipe(K(()=>!0)):R(!1))).subscribe({next:l=>{this.deleting=!1,l?this.search(this.lastSearchParams):(this.selectedSurvey.canDelete=!1,this.siteDataService.showSiteWarnAlert("Cannot delete this form. Players have been scored.")),this.showDeleteConfirm=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem deleting the form"),this.deleting=!1}})}saveAndComplete(){this.processing=!0,this.surveyService.patchSurveyResponsesBulk(this.selectedSurvey.surveyID,{isCompleted:!0}).pipe(M(this.unsubscribe$),J(()=>{this.showCompleteConfirm=!1,this.processing=!1})).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Evaluation completed successfully!"),this.search(this.lastSearchParams)},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem completing the evaluations.")}})}saveAndNotify(){this.processing=!0,this.surveyService.patchSurveyResponsesBulk(this.selectedSurvey.surveyID,{isCompleted:!0,isNotified:!0}).pipe(M(this.unsubscribe$),J(()=>{this.showNotifyConfirm=!1,this.processing=!1})).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Evaluation completed and players notified successfully!"),this.search(this.lastSearchParams)},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem notifying players.")}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};a.\u0275fac=function(r){return new(r||a)(h(we),h(Ue),h(P),h($e),h(Ee),h(Se),h(G))},a.\u0275cmp=b({type:a,selectors:[["ng-component"]],viewQuery:function(r,m){if(r&1&&se(ht,5),r&2){let y;me(y=ce())&&(m.optionsMenu=y.first)}},standalone:!1,decls:65,vars:21,consts:[["optionsMenu",""],["expandedrow",""],["visibilityOp",""],["content",""],[3,"surveyEvaluateeTypeID"],[3,"keydown.enter"],[3,"adminFilterReset","adminFilterSearch","showAdvanced"],["primary",""],[1,"col","pr-0"],[1,"p-input-icon-left","full-width"],[1,"fa","fa-magnifying-glass"],["type","text","id","search","pInputText","","placeholder","Search",1,"full-width","pl-4",3,"ngModelChange","ngModel"],["for","search",1,"sr-only"],["advanced",""],[1,"row"],[1,"col-md-3"],[1,"form-group"],["for","internal-name"],["id","internal-name","type","text","placeholder","Internal Name",3,"ngModelChange","ngModel"],[1,"col-md-2"],["for","surveyType"],["placeholder","All","appendTo","body",3,"ngModelChange","ngModel","options","filter","showToggleAll","maxSelectedLabels"],[1,"report-table","table-responsive"],["appendTo","body",3,"model","popup"],[1,"col-md-4"],["for","propgramName"],["placeholder","All","appendTo","body","optionLabel","name","optionValue","programID",3,"ngModelChange","autofocusFilter","ngModel","options","filter","showToggleAll","maxSelectedLabels"],["for","status"],["sortField","title",1,"table","table-striped","table-sm",3,"onLazyLoad","columns","value","lazy","paginator","alwaysShowPaginator","totalRecords","rows","sortOrder","loading","dataKey","expandedRowKeys"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"sr-only"],[3,"pSortableColumn"],[3,"field"],[3,"routerLink"],[1,"text-center"],[3,"visibility","visibilityOp"],["appendTo","body"],[1,"d-flex","align-items-center","justify-content-end"],["type","button",1,"btn","btn-sm","btn-tertiary",3,"click"],[1,"fa-solid","fa-ellipsis"],["text","Active","status","active"],["text","Inactive","status","default"],["text","Incomplete","status","error"],[1,"text-smallest","text-uppercase","text-grey","fw-600","mb-2","small-label"],[1,"flex","align-items-center","justify-content-between"],[1,"flex","flex-column"],[1,"text-medium","fw-900"],[1,"text-small","fw-600","text-grey-lt"],[3,"visibility"],[1,"btn","btn-tertiary",3,"routerLink"],["type","button",1,"btn","btn-tertiary","btn-sm","ml-1",3,"pRowToggler"],[1,"fa-solid","fa-chevron-down",3,"ngClass"],[1,"p-0","pb-3"],[3,"item","user"],[2,"text-align","left"],[3,"onCancel","onClone","surveyID","surveyFormTypeID","clubID"],["headerText","Confirm Delete","modalText","Are you sure you want to delete this form?","yesButtonText","Yes, Delete","yesButtonLoadingText","Deleting...","noButtonText","No, Cancel",3,"onYesSelect","onNoSelect","loading"],["headerText","Publish","yesButtonText","Yes, Continue","yesButtonLoadingText","Processing Your Request...","noButtonText","Cancel",3,"onYesSelect","onNoSelect","showModalText","loading"],[1,"confirm-width"],[1,"mt-2","text-grey"],["headerText","Publish & Notify","yesButtonText","Yes, Continue","yesButtonLoadingText","Processing Your Request...","noButtonText","Cancel",3,"onYesSelect","onNoSelect","showModalText","loading"]],template:function(r,m){if(r&1){let y=S();f(0,"app-forms-admin-main-nav",4),e(1,`
204
205`),n(2,"div",5),C("keydown.enter",function(){return m.run()}),e(3,`
206  `),n(4,"app-admin-filter",6),C("adminFilterReset",function(){return m.resetFilters()})("adminFilterSearch",function(){return m.run()}),e(5,`
207    `),V(6,7),e(7,`
208      `),n(8,"div",8),e(9,`
209        `),n(10,"span",9),e(11,`
210          `),f(12,"i",10),e(13,`
211          `),n(14,"input",11),F("ngModelChange",function(v){return x(y),A(m.surveyService.filters.title,v)||(m.surveyService.filters.title=v),_(v)}
211),o(),e(15,`
212          `),f(16,"label",12),e(17,`
213        `),o(),e(18,`
214      `),o(),e(19,`
215    `),L(),e(20,`
216    `),V(21,13),e(22,`
217      `),n(23,"div",14),e(24,`
218        `),n(25,"div",15),e(26,`
219          `),n(27,"div",16),e(28,`
220            `),n(29,"label",17),e(30,"Internal Name"),o(),e(31,`
221            `),n(32,"input",18),F("ngModelChange",function(v){return x(y),A(m.surveyService.filters.internalName,v)||(m.surveyService.filters.internalName=v),_(v)}),o(),e(33,`
222          `),o(),e(34,`
223        `),o(),e(35,`
224        `),d(36,gt,13,6),n(37,"div",19),e(38,`
225          `),n(39,"div",16),e(40,`
226            `),n(41,"label",20),e(42,"Type(s)"),o(),e(43,`
227            `),n(44,"p-multiSelect",21),F("ngModelChange",function(v){return x(y),A(m.surveyService.filters.surveyFormTypes,v)||(m.surveyService.filters.surveyFormTypes=v),_(v)}),e(45,`
228            `),o(),e(46,`
229          `),o(),e(47,`
230        `),o(),e(48,`
231        `),d(49,Tt,13,5),o(),e(50,`
232    `),L(),e(51,`
233  `),o(),e(52,`
234`),o(),e(53,`
235
236`),n(54,"div",22),e(55,`
237  `),d(56,Yt,13,11),o(),e(57,`
238
239`),f(58,"p-menu",23,0),e(60,`
240
241`),d(61,jt,4,3),d(62,Ut,3,1),d(63,Wt,8,2),d(64,Gt,8,2)}r&2&&(p("surveyEvaluateeTypeID",m.surveyEvaluateeTypeID),s(4),p("showAdvanced",!0),s(10),I("ngModel",m.surveyService.filters.title),s(18),I("ngModel",m.surveyService.filters.internalName),s(4),u(m.surveyEvaluateeTypeID===m.SurveyEvaluateeType.PLAYER?36:-1),s(8),I("ngModel",m.surveyService.filters.surveyFormTypes),p("options",m.surveyTypes)("filter",!1)("showToggleAll",!0)("maxSelectedLabels",3),s(5),u(m.clubID!==0?49:-1),s(7),u(m.showTable?56:-1),s(2),de(ue(20,yt)),p("model",m.options)("popup",!0),s(3),u(m.showCloneDialog&&m.cloneSurvey.surveyID?61:-1),s(),u(m.showDeleteConfirm?62:-1),s(),u(m.showCompleteConfirm?63:-1),s(),u(m.showNotifyConfirm?64:-1))},dependencies:[xe,fe,ve,he,z,Ce,Ie,Le,Ne,Fe,Pe,Ve,Me,Ae,Oe,De,We,qe,Qe,Xe],styles:[".confirm-width[_ngcontent-%COMP%]{width:35rem}"]});let t=a;return t})();var et=(()=>{let a=class a{constructor(l,r){this.surveyService=l,this.route=r}ngOnInit(){this.surveyService.surveyEvaluateeTypeID=this.route.snapshot.data.surveyEvaluateeTypeID}};a.\u0275fac=function(r){return new(r||a)(h(P),h(G))},a.\u0275cmp=b({type:a,selectors:[["app-forms"]],standalone:!1,decls:1,vars:0,template:function(r,m){r&1&&f(0,"router-outlet")},dependencies:[ye],encapsulation:2});let t=a;return t})();var tt=(()=>{let a=class a{};a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=k({type:a}),a.\u0275inj=O({imports:[ne.forChild([{path:"",component:et,children:[{path:":surveyID",canActivate:[oe],loadChildren:()=>import("./chunk-3I4KWQVA.js").then(l=>l.FormEditModule)},{path:"",canActivate:[oe],component:Ze}]}]),ne]});let t=a;return t})();var Qi=(()=>{let a=class a{};a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=k({type:a}),a.\u0275inj=O({providers:[ze,P],imports:[ke,tt,Ge,Ke,Je]});let t=a;return t})();export{Qi as FormsModule};

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.