PageSourceSearch

https://michiganrangersfc.com/chunk-DTKALV3B.js

js michiganrangersfc.com collected 2026-10-04 20:23:52 UTC 164,135 bytes, 1,342 lines download raw bytes

1import{f as tt,g as nt}from"./chunk-QLS2HGKB.js";import"./chunk-BTQPKA7U.js";import{a as M}from"./chunk-YYKWMCMZ.js";import{a as Me,b as gi,c as it,d as V,e as H,f as _e,g as Ne,h as ci}from"./chunk-7JPX6E7O.js";import"./chunk-D5WNKLON.js";import"./chunk-FLFERWGO.js";import{c as te}from"./chunk-6CQ6IUNS.js";import{a as et,k as di}from"./chunk-O3BD2LYL.js";import{a as bi}from"./chunk-RHKOMRBX.js";import{a as Si}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-YVLOHBDK.js";import"./chunk-CYDDDATF.js";import"./chunk-GWQPV7EH.js";import"./chunk-RQ74XYI3.js";import"./chunk-3IFGWXMA.js";import"./chunk-EME7BUOO.js";import"./chunk-GXCJ5QS4.js";import"./chunk-VVVN3YIZ.js";import{b as Pe}from"./chunk-FWW3IJT2.js";import"./chunk-NXTJBJRP.js";import"./chunk-U22BTVEZ.js";import{$b as Y,$c as Xi,B as Wi,Ce as oi,Ec as ei,Gb as de,Gc as ii,Hc as ti,Hd as De,Ia as ge,Je as Te,Kb as Qi,Le as li,Mb as ce,Ne as ri,Ob as J,Pe as Ie,Rc as Fe,Sc as ye,Se as Ji,Vb as W,Wb as Ze,Wc as ni,Xb as $,b as he,d as ae,ed as Ki,id as Ae,jb as we,jc as Gi,k as oe,kd as q,kh as Zi,lb as Ke,mb as Hi,u as Ui,ua as zi,v as Li,ve as Ee,xb as Je,ye as ai}from"./chunk-X5J6QTCG.js";import{$ as We,$a as p,Aa as Ti,Ad as hi,Ba as Ii,E as Le,Fa as r,Fb as K,Gb as pe,Hb as ve,Ib as e,Jb as g,Ka as b,Kb as w,Lb as ee,Lc as Pi,Ma as P,Na as je,Ni as be,Pf as qi,Qb as E,Rb as T,Sa as R,Sb as I,Tb as Mi,U as A,Ub as ki,Vb as Vi,Vc as Ni,W as vi,Wc as He,Xa as fe,Xb as Oi,_c as Ri,bb as _,be as Se,bg as Ge,cb as Ye,cc as j,d as O,db as z,dc as qe,eb as F,fa as u,fb as y,ga as x,gb as m,hb as t,ib as n,jb as C,k as Ci,lc as k,ma as xe,mc as L,nb as B,nc as ie,ob as U,oc as Oe,pj as N,qb as h,qc as ze,rd as Bi,re as Yi,sb as v,tb as s,u as Ve,vd as Qe,wd as $i,xb as Ce,xd as le,ya as $e,yb as G,yd as re,zb as X,zd as ji,zg as Xe}from"./chunk-SMW7PHYX.js";import{a as Z,b as Ue}from"./chunk-BMIYOSOG.js";var yt=()=>({view:"1"}),At=()=>[1,2,3,4],Dt=a=>["/admin/financial-aid/applications",a],Et=(a,d)=>d.clubUserFinancialAidApplicationID;function Tt(a,d){a&1&&(e(0,`
2    `),C(1,"app-loader"),e(2,`
3`))}function It(a,d){a&1&&(e(0,`
4    `),t(1,"app-inline-alert",0),e(2,`
5        There was a problem loading the financial aid overview.
6    `),n(),e(3,`
7`)),a&2&&(r(),m("isInline",!0))}function Mt(a,d){if(a&1){let i=h();e(0,`
8        `),t(1,"div",1),e(2,`
9            `),t(3,"div",2),e(4,`
10                `),t(5,"h2",3),e(6,"Ready to set up a financial aid application?"),n(),e(7,`
11                `),t(8,"p",4),e(9,`Use our application builder to get started setting up your club's financial
12                    aid application.`),n(),e(10,`
13                `),t(11,"button",5),v("click",function(){u(i);let l=s(2);return x(l.createApplication())}),e(12,`
14                    Create an Application
15                `),n(),e(13,`
16            `),n(),e(14,`
17        `),n(),e(15,`
18    `)}if(a&2){let i=s(2);r(11),m("disabled",i.creating)}}function kt(a,d){if(a&1&&e(0),a&2){let i=s(4);w(" by ",i.overview.lastSavedByName)}}function Vt(a,d){if(a&1&&(e(0,`
19                            `),t(1,"div",12),e(2,`
20                                `),t(3,"span",13),e(4,"Last Edited"),n(),e(5,`
21                                `),t(6,"strong"),e(7),k(8,"utcDate"),p(9,kt,1,1),n(),e(10,`
22                            `),n(),e(11,`
23                        `)),a&2){let i=s(3);r(7),g(Oe(8,2,i.overview.lastSavedOn,"MMM d, y, h:mm a",!0)),r(2),_(i.overview.lastSavedByName?9:-1)}}function Ot(a,d){if(a&1&&(e(0,`
24                            `),t(1,"a",26),e(2,`
25                                `),C(3,"i",27),e(4,`View Application
26                            `),n(),e(5,`
27                        `)),a&2){let i=s(3);r(),m("routerLink",i.formBuilderRoute)("queryParams",j(2,yt))}}function Pt(a,d){a&1&&(e(0,`
28                                        `),t(1,"tr",28),e(2,`
29                                            `),C(3,"td",30),e(4,`
30                                        `),n(),e(5,`
31                                    `))}function Nt(a,d){a&1&&(e(0,`
32                                    `),t(1,"tr",28),e(2,`
33                                        `),t(3,"td",29),e(4,"No applications have been submitted yet"),n(),e(5,`
34                                    `),n(),e(6,`
35                                    `),F(7,Pt,6,0,null,null,Ye)),a&2&&(r(7),y(j(0,At)))}function Rt(a,d){if(a&1&&e(0),a&2){let i=s().$implicit;w(`
36                                            `,i.clubUserFinancialAidApplicationStatus==null?null:i.clubUserFinancialAidApplicationStatus.description,`
37                                        `)}}function Bt(a,d){if(a&1&&(e(0,`
38                                            `),t(1,"app-status-indicator",32),e(2,`
39                                            `),n(),e(3,`
40                                        `)),a&2){let i=s().$implicit,o=s(3);r(),m("status",(i.clubUserFinancialAidApplicationStatus==null?null:i.clubUserFinancialAidApplicationStatus.clubUserFinancialAidApplicationStatusID)===o.ClubUserFinancialAidApplicationStatusID.APPROVED?"success":"error")("text",i.clubUserFinancialAidApplicationStatus==null?null:i.clubUserFinancialAidApplicationStatus.description)}}function Ut(a,d){if(a&1&&(e(0,`
41                                 `),t(1,"tr"),e(2,`
42                                    `),t(3,"td"),e(4,`
43                                        `),t(5,"a",31),e(6),n(),e(7,`
44                                    `),n(),e(8,`
45                                    `),t(9,"td"),e(10),k(11,"utcDate"),n(),e(12,`
46                                    `),t(13,"td",22),e(14,`
47                                        `),p(15,Rt,1,1)(16,Bt,4,2),n(),e(17,`
48                                `),n(),e(18,`
49                                `)),a&2){let i=d.$implicit,o=s(3);r(5),m("routerLink",qe(7,Dt,i.clubUserFinancialAidApplicationID)),r(),w(`
50                                            `,i.applicantName,`
51                                        `),r(4),g(ie(11,4,i.applicationDate,"MM/dd
51/yyyy")),r(5),_((i.clubUserFinancialAidApplicationStatus==null?null:i.clubUserFinancialAidApplicationStatus.clubUserFinancialAidApplicationStatusID)===o.ClubUserFinancialAidApplicationStatusID.PENDING?15:16)}}function Lt(a,d){if(a&1&&(e(0,`
52        `),t(1,"div",6),e(2,`
53
54            `),e(3,`
55            `),t(4,"div",7),e(5,`
56                `),t(6,"div",8),e(7,`
57                    `),t(8,"div",9),e(9,`
58                        `),t(10,"h2",10),e(11,"Current Application"),n(),e(12,`
59                    `),n(),e(13,`
60                    `),t(14,"div",11),e(15,`
61                        `),t(16,"div",12),e(17,`
62                            `),t(18,"span",13),e(19,"Status"),n(),e(20,`
63                            `),t(21,"app-status-indicator",14),e(22,`
64                            `),n(),e(23,`
65                        `),n(),e(24,`
66                        `),t(25,"div",12),e(26,`
67                            `),t(27,"span",13),e(28,"Application Window"),n(),e(29,`
68                            `),t(30,"strong"),e(31),n(),e(32,`
69                        `),n(),e(33,`
70                        `),t(34,"div",12),e(35,`
71                            `),t(36,"span",13),e(37,"Pending Applicants"),n(),e(38,`
72                            `),t(39,"strong"),e(40),n(),e(41,`
73                        `),n(),e(42,`
74                        `),p(43,Vt,12,6),n(),e(44,`
75                    `),t(45,"div",15),e(46,`
76                        `),t(47,"a",16),e(48,`
77                            `),C(49,"i",17),e(50,`Edit Application
78                        `),n(),e(51,`
79                        `),p(52,Ot,6,3),n(),e(53,`
80                `),n(),e(54,`
81            `),n(),e(55,`
82
83            `),e(56,`
84            `),t(57,"div",7),e(58,`
85                `),t(59,"div",8),e(60,`
86                    `),t(61,"div",18),e(62,`
87                        `),t(63,"h2",19),e(64,"Applicant Queue"),n(),e(65,`
88                    `),n(),e(66,`
89                    `),t(67,"div",20),e(68,`
90                        `),t(69,"p",4),e(70,"Below is a list of the most recent financial aid applications."),n(),e(71,`
91                        `),t(72,"table",21),e(73,`
92                            `),t(74,"thead"),e(75,`
93                                `),t(76,"tr"),e(77,`
94                                    `),t(78,"th"),e(79,"Applicant Name"),n(),e(80,`
95                                    `),t(81,"th"),e(82,"Application Date"),n(),e(83,`
96                                    `),t(84,"th",22),e(85,"Status"),n(),e(86,`
97                                `),n(),e(87,`
98                            `),n(),e(88,`
99                            `),t(89,"tbody"),e(90,`
100                                `),p(91,Nt,9,1),F(92,Ut,19,9,null,null,Et),n(),e(94,`
101                        `),n(),e(95,`
102                    `),n(),e(96,`
103                    `),t(97,"div",23),e(98,`
104                        `),t(99,"a",24),e(100,`
105                            `),C(101,"i",25),e(102,`Review Pending Applications
106                        `),n(),e(103,`
107                    `),n(),e(104,`
108                `),n(),e(105,`
109            `),n(),e(106,`
110
111        `),n(),e(107,`
112    `)),a&2){let i=s(2);r(21),m("status",i.statusDisplay.status)("text",i.statusDisplay.text)("tooltipText",i.statusDisplay.tooltip),r(10),g(i.getWindowDisplay()),r(9),g(i.overview.pendingApplicantCount),r(3),_(i.overview.lastSavedOn?43:-1),r(4),m("routerLink",i.formBuilderRoute)("queryParams",i.formBuilderQueryParams),r(5),_(i.isActive?52:-1),r(39),_(i.overview.recentApplications!=null&&i.overview.recentApplications.length?-1:91),r(),y(i.overview.recentApplications)}}function Wt(a,d){if(a&1&&(e(0,`
113
114    `),e(1,`
115    `),p(2,Mt,16,1),p(3,Lt,108,10)),a&2){let i=s();r(2),_(i.overview!=null&&i.overview.application?-1:2),r(),_(i.overview!=null&&i.overview.application?3:-1)}}var rt=(()=>{let d=class d{constructor(o,l,c){this.financialAidService=o,this.siteDataService=l,this.router=c,this.loading=!0,this.error=!1,this.creating=!1,this.ClubFinancialAidApplicationStatusID=gi,this.ClubUserFinancialAidApplicationStatusID=te,this.unsubscribe$=new O}
115ngOnInit(){this.siteDataService.hideSiteLoader(),this.financialAidService.getClubFinancialAidOverview().pipe(A(this.unsubscribe$)).subscribe({next:o=>{this.overview=o,this.loading=!1},error:()=>{this.error=!0,this.loading=!1}})}createApplication(){this.creating=!0,this.financialAidService.createApplication().pipe(A(this.unsubscribe$)).subscribe({next:o=>{this.router.navigate(["/admin/financial-aid/application",o,"form"])},error:()=>{this.creating=!1,this.siteDataService.showSiteErrorAlert("There was a problem creating the application. Please try again.")}})}get isActive(){return this.overview?.application?.clubFinancialAidApplicationStatusID===gi.ACTIVE}get statusDisplay(){let o=this.overview?.application;return o?this.isActive&&!this.overview.settingsEnabled?{status:"warning",text:"Not Active",tooltip:"Financial aid is turned off in Settings \u2014 applicants can't apply. Enable it on the Settings page."}:{status:this.isActive?"active":"default",text:o.clubFinancialAidApplicationStatus.description}:{status:"default",text:""}}get formBuilderRoute(){let o=this.overview?.application?.clubFinancialAidApplicationID;return o?["/admin/financial-aid/application",o.toString(),"form"]:["/admin/financial-aid/settings"]}get formBuilderQueryParams(){return this.isActive?{live:"1"}:{}}getWindowDisplay(){let o=this.overview?.application;if(!o?.windowStartDate||!o?.windowEndDate)return"ONGOING";let l=new Date(o.windowStartDate),c=new Date(o.windowEndDate);return`${l.getMonth()+1}/${l.getDate()} \u2013 ${c.getMonth()+1}/${c.getDate()}`}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(b(M),b(N),b(le))},d.\u0275cmp=P({type:d,selectors:[["app-financial-aid-overview"]],standalone:!1,decls:3,vars:3,consts:[[3,"isInline"],[1,"d-flex","justify-content-center","mt-4"],[1,"card","text-center","p-4","bg-grey-lt","null-state-card"],[1,"text-header-2"],[1,"text-muted","mb-3"],[1,"btn","btn-primary","btn-add",3,"click","disabled"],[1,"row","mt-3"],[1,"col-12","col-md-6","mb-3"],[1,"card","edit-card"],[1,"card-header","mb-3"],[1,"text-header-3","mb-0"],[1,"card-body","pb-3"],[1,"overview-field","d-flex","justify-content-between","align-items-center","py-2","px-3","bg-grey-lt","mb-1"],[1,"text-muted"],[3,"status","text","tooltipText"],[1,"card-footer","d-flex","align-items-center"],[1,"btn","btn-naked",3,"routerLink","queryParams"],[1,"fa-regular","fa-pen-to-square","mr-1"],[1,"card-header"],[1,"text-header-3","mb-2"],[1,"card-body"],[1,"table","table-sm","mb-3"],[1,"text-right"],[1,"card-footer"],["routerLink","/admin/financial-aid/applications",1,"btn","btn-naked"],[1,"fal","fa-clock","mr-1"],[1,"btn","btn-naked","ml-2",3,"routerLink","queryParams"],[1,"fa-regular","fa-eye","mr-1"],[1,"placeholder-row"],["colspan","3",1,"text-muted","text-center"],["colspan","3"],[3,"routerLink"],[3,"status","text"]],template:function(l,c){l&1&&(p(0,Tt,3,0),p(1,It,4,1),p(2,Wt,4,2)),l&2&&(_(c.loading&&!c.overview?0:-1),r(),_(c.error?1:-1),r(),_(!c.loading&&!c.error?2:-1))},dependencies:[ge,re,Fe,ce,Ae],encapsulation:2});let a=d;return a})();var Yt=["reviewform"],qt=(a,d)=>d.sortOrder,pt=(a,d)=>d.sectionFieldID,yi=(a,d)=>d.clubUserFinancialAidApplicationDocumentID,Ai=(a,d)=>d.playerID;function zt(a,d){if(a&1&&e(0),a&2){let i=s(2);w(`
116                                `,i.application.clubUserFinancialAidApplicationStatus.description,`
117                            `)}}function Ht(a,d){if(a&1&&(e(0,`
118                                `),t(1,"app-status-indicator",19),e(2,`
119                                `),n(),e(3,`
120                            `)),a&2){let i=s(2);r(),m("status",i.application.clubUserFinancialAidApplicationStatusID===i.Statuses.APPROVED?"success":"error")("text",i.application.clubUserFinancialAidApplicationStatus.description)}}function Qt(a,d){if(a&1&&(e(0,`
121                    `),t(1,"div",16),e(2,`
122                        `),t(3,"div",20),e(4,`
123                            Reviewed By
124                        `),n(),e(5,`
125                        `),t(6,"div",21),e(7),n(),e(8,`
126                    `),n(),e(9,`
127                    `)),a&2){let i=s(3);r(7),ee(`
128                            `,i.application.reviewedByClubUser==null||i.application.reviewedByClubUser.user==null?null:i.application.reviewedByClubUser.user.lastName,`,
129                            `,i.application.reviewedByClubUser==null||i.application.reviewedByClubUser.user==null?null:i.application.reviewedByClubUser.user.firstName,`
130                        `)}}function Gt(a,d){if(a&1&&e(0),a&2){let i=s().$implicit;w(`
131                                                    `,i.value,`%
132                                                    `)}}function Xt(a,d){if(a&1&&(e(0),k(1,"currency")),a&2){let i=s().$implicit;w(`
133                                                    `,L(1,1,i.originalValue),`
134                                                    `)}}function Kt(a,d){if(a&1&&(e(0,`
135                                            `),t(1,"tr"),e(2,`
136                                                `),t(3,"td"),e(4),n(),e(5,`
137                                                `),t(6,"td"),e(7,`
138                                                    `),p(8,Gt,1,1)(9,Xt,2,3),e(10,`
139                                                `),n(),e(11,`
140                                                `),t(12,"td"),e(13),k(14,"uppercase"),n(),e(15,`
141                                                `),t(16,"td"),e(17),k(18,"date"),n(),e(19,`
142                                            `),n(),e(20,`
143                                            `)),a&2){let i,o=d.$implicit,l=s(4);r(4),w(`
144                                                    `,o.playerName,`
145                                                `),r(4),_((i=o.clubCreditTypeID)===l.ClubCreditTypes.PERCENTAGE?8:i===l.ClubCreditTypes.FIXED_AMOUNT?9:-1),r(5),w(`
146                                                    `,L(14,4,o.waiveAdmin
146Fee?"yes":"no"),`
147                                                `),r(4),w(`
148                                                    `,ie(18,6,o.expirationDate,"MM/dd/yyyy"),`
149                                                `)}}function Jt(a,d){if(a&1&&(e(0,`
150                    `),t(1,"div",24),e(2,`
151                        `),t(3,"div",15),e(4,`
152                            `),t(5,"div",25),e(6,`
153                                `),t(7,"div",15),e(8,`
154                                    The following discounts have been issued as a result
155                                    of this approval
156                                `),n(),e(9,`
157                            `),n(),e(10,`
158                            `),t(11,"div",11),e(12,`
159                                `),t(13,"div",15),e(14,`
160                                    `),t(15,"table",26),e(16,`
161                                        `),t(17,"thead"),e(18,`
162                                            `),t(19,"tr"),e(20,`
163                                                `),t(21,"th"),e(22,"Player Name"),n(),e(23,`
164                                                `),t(24,"th"),e(25,"Discount Amount"),n(),e(26,`
165                                                `),t(27,"th"),e(28,`Waive Admin Fee (if
166                                                    applicable)?`),n(),e(29,`
167                                                `),t(30,"th"),e(31,"Expiration Date"),n(),e(32,`
168                                            `),n(),e(33,`
169                                        `),n(),e(34,`
170                                        `),t(35,"tbody"),e(36,`
171                                            `),F(37,Kt,21,9,null,null,z),n(),e(39,`
172                                    `),n(),e(40,`
173                                `),n(),e(41,`
174                            `),n(),e(42,`
175                        `),n(),e(43,`
176                    `),n(),e(44,`
177                    `)),a&2){let i=s(3);r(37),y(i.application.clubCredits)}}function Zt(a,d){if(a&1){let i=h();e(0,`
178                    `),t(1,"div",16),e(2,`
179                        `),t(3,"div",20),e(4,`
180                            Fiscal Year
181                        `),n(),e(5,`
182                        `),t(6,"div",21),e(7),t(8,"a",22),v("click",function(){u(i);let l=s(2);return x(l.showEditFiscalYear=!0)}),e(9,`
183                                `),C(10,"i",23),e(11,`
184                            `),n(),e(12,`
185                        `),n(),e(13,`
186                    `),n(),e(14,`
187                    `),t(15,"div",16),e(16,`
188                        `),t(17,"div",20),e(18,`
189                            Reviewed On
190                        `),n(),e(19,`
191                        `),t(20,"div",21),e(21),k(22,"utcDate"),n(),e(23,`
192                    `),n(),e(24,`
193                    `),p(25,Qt,10,2),t(26,"div",16),e(27,`
194                        `),t(28,"div",20),e(29,`
195                            Comments
196                        `),n(),e(30,`
197                        `),t(31,"div",21),e(32),n(),e(33,`
198                    `),n(),e(34,`
199                    `),p(35,Jt,45,0)}if(a&2){let i=s(2);r(7),w(`
200                            `,i.application.clubFiscalYear||"None"," "),r(14),w(`
201                            `,Oe(22,5,i.application.reviewedOn,"MMM d, y, h:mm a",!0),`
202                        `),r(4),_(i.application.reviewedByClubUser!=null&&i.application.reviewedByClubUser.user?25:-1),r(7),w(`
203                            `,i.application.reviewerComments||"None",`
204                        `),r(3),_(i.application.clubUserFinancialAidApplicationStatusID===i.Statuses.APPROVED&&(i.application.clubCredits==null?null:i.application.clubCredits.length)>0?35:-1)}}function en(a,d){if(a&1&&(e(0,`
205        `),t(1,"section",10),e(2,`
206            `),t(3,"div",11),e(4,`
207                `),t(5,"div",27),e(6,`
208                    `),t(7,"span",13),e(8,"Applicant Info"),n(),e(9,`
209                `),n(),e(10,`
210            `),n(),e(11,`
211            `),t(12,"div",28),e(13,`
212                `),t(14,"div",15),e(15,`
213                    `),t(16,"app-dynamic-form",29,0),e(18,`
214                        `),t(19,"app-dynamic-form-field",30),e(20,`
215                        `),n(),e(21,`
216                        `),t(22,"app-dynamic-form-field",31),e(23,`
217                        `),n(),e(24,`
218                        `),t(25,"app-dynamic-form-field",32),e(26,`
219                        `),n(),e(27,`
220                        `),t(28,"app-dynamic-form-field",33),e(29,`
221                        `),n(),e(30,`
222                        `),t(31,"app-dynamic-form-field",34),e(32,`
223                        `),n(),e(33,`
224                        `),t(34,"app-dynamic-form-field",35),e(35,`
225                        `),n(),e(36,`
226                        `),t(37,"app-dynamic-form-field",36),e(38,`
227                        `),n(),e(39,`
228                        `),t(40,"app-dynamic-form-field",37),e(41,`
229                        `),n(),e(42,`
230                        `),t(43,"app-dynamic-form-field",38),e(44,`
231                        `),n(),e(45,`
232                    `),n(),e(46,`
233                `),n(),e(47,`
234            `),n(),e(48,`
235        `),n(),e(49,`
236        `)),a&2){let i=s(2);r(16),m("entity",i.applicantInfo)("fields",i.fields)("contentFieldsMode",!0)("horizontalForm",!0)("showSubmitButton",!1)("showCancelButton",!1)("subscribeToFormServiceErrors",!1)("buttonsPosition","left")}}function tn(a,d){a&1&&(e(0,`
237                                    `),t(1,"span",40),e(2,"Removed"),n(),e(3,`
238                                `))}function nn(a,d){a&1&&(t(0,"span",43),e(1,"Removed"),n())}function an(a,d){if(a&1&&(e(0,`
239                                        `),t(1,"div",44),e(2),n(),e(3,`
240                                    `)),a&2){let i=s().$implicit;r(2),g(i.value||"\u2014")}}function on(a,d){if(a&1){let i=h();e(0,`
241                                            `),t(1,"div",45),e(2,`
242                                                `),C(3,"i"),e(4,`
243                                                `),t(5,"span",46),e(6),n(),e(7,`
244                                                `),t(8,"span",47),e(9,`
245                                                    `),t(10,"button",48),v("click",function(){let l=u(i).$implicit,c=s(8);return x(c.viewDocument(l.clubUserFinancialAidApplicationDocumentID,l.uploadedDocumentName))}),e(11,`
246                                                        `),C(12,"i",49),e(13,`View
247                                                    `),n(),e(14,`
248                                                `),n(),e(15,`
249                                                `),t(16,"button",50),v("click",function(){let l=u(i).$implicit,c=s(8);return x(c.downloadDocument(l.clubUserFinancialAidApplicationDocumentID))}),e(17,`
250                                                    `),C(18,"i",51),e(19,`Download
251                                                `),n(),e(20,`
252                                            `),n(),e(21,`
253                                            `)}if(a&2){let i=d.$implicit,o=s(8);r(3),ve(o.getFileIcon(i.uploadedDocumentName)+" mr-2"),r(3),g(i.uploadedDocumentName),r(2),m("pTooltip",o.isViewable(i.uploadedDocumentName)?"Preview document":"This file type cannot be previewed"),r(2),m("disabled",!o.isViewable(i.uploadedDocumentName))}}function ln(a,d){if(a&1&&(e(0,`
254                                            `),F(1,on,22,5,null,
254null,yi)),a&2){s();let i=Vi(1);r(),y(i)}}function rn(a,d){a&1&&(e(0,`
255                                            `),t(1,"div",52),e(2,"\u2014"),n(),e(3,`
256                                        `))}function dn(a,d){if(a&1&&(e(0,`
257                                        `),Mi(1),e(2,`
258                                        `),p(3,ln,3,0)(4,rn,4,0)),a&2){let i=s().$implicit;r();let o=ki(s(5).getSectionFieldDocs(i.sectionFieldID));r(2),_(o.length?3:4)}}function cn(a,d){if(a&1&&(e(0,`
259                                        `),t(1,"div",53),e(2),n(),e(3,`
260                                    `)),a&2){let i=s().$implicit;r(2),g(i.value||"\u2014")}}function sn(a,d){if(a&1&&(e(0,`
261                            `),t(1,"div",41),e(2,`
262                                `),t(3,"label",42),e(4),p(5,nn,2,0,"span",43),n(),e(6,`
263                                `),p(7,an,4,1)(8,dn,5,2)(9,cn,4,1),e(10,`
264                            `),n(),e(11,`
265                            `)),a&2){let i,o=d.$implicit,l=s(2).$implicit,c=s(3);r(),K("bg-grey-lt",o.isRemoved)("border-radius",o.isRemoved)("p-2",o.isRemoved),m("ngClass",o.fieldTypeID===c.FieldType.TEXTAREA||o.fieldTypeID===c.FieldType.DOCUMENT?"col-12":"col-sm-6 col-lg-4"),r(3),g(o.label),r(),_(o.isRemoved&&!l.isRemoved?5:-1),r(2),_((i=o.fieldTypeID)===c.FieldType.TEXTAREA?7:i===c.FieldType.DOCUMENT?8:9)}}function mn(a,d){if(a&1&&(e(0,`
266                    `),t(1,"section",10),e(2,`
267                        `),t(3,"div",11),e(4,`
268                            `),t(5,"div",39),e(6,`
269                                `),t(7,"span",13),e(8),n(),e(9,`
270                                `),p(10,tn,4,0),n(),e(11,`
271                        `),n(),e(12,`
272                        `),t(13,"div",14),e(14,`
273                            `),F(15,sn,12,10,null,null,pt),n(),e(17,`
274                    `),n(),e(18,`
275                    `)),a&2){let i=s().$implicit;r(8),g(i.title),r(2),_(i.isRemoved?10:-1),r(5),y(i.fields)}}function pn(a,d){if(a&1&&(e(0,`
276                                    `),t(1,"li"),e(2),n(),e(3,`
277                                    `)),a&2){let i=d.$implicit;r(2),ee("",i.user.firstName," ",i.user.lastName)}}function _n(a,d){if(a&1&&(e(0,`
278                    `),t(1,"section",10),e(2,`
279                        `),t(3,"div",11),e(4,`
280                            `),t(5,"div",27),e(6,`
281                                `),t(7,"span",13),e(8),n(),e(9,`
282                            `),n(),e(10,`
283                        `),n(),e(11,`
284                        `),t(12,"div",14),e(13,`
285                            `),t(14,"div",15),e(15,`
286                                `),t(16,"ul",54),e(17,`
287                                    `),F(18,pn,4,2,null,null,Ai),n(),e(20,`
288                            `),n(),e(21,`
289                        `),n(),e(22,`
290                    `),n(),e(23,`
291                    `)),a&2){let i=s(2).$implicit,o=s(3);r(8),g(i.title),r(10),y(o.selectedPlayers)}}function un(a,d){if(a&1&&(e(0,`
292                    `),p(1,_n,24,1)),a&2){let i=s(4);r(),_(i.selectedPlayers.length>0?1:-1)}}function xn(a,d){if(a&1&&(e(0,`
293                                        `),t(1,"tr"),e(2,`
294                                            `),t(3,"td"),e(4),n(),e(5,`
295                                            `),t(6,"td"),e(7),k(8,"date"),n(),e(9,`
296                                            `),t(10,"td"),e(11),n(),e(12,`
297                                            `),t(13,"td"),e(14),k(15,"uppercase"),n(),e(16,`
298                                            `),t(17,"td"),e(18),k(19,"uppercase"),n(),e(20,`
299                                        `),n(),e(21,`
300                                        `)),a&2){let i=d.$implicit;r(4),g(i.fullName),r(3),g(L(8,5,i.dob)),r(4),g(i.age),r(3),g(L(15,7,i.isCurrentPlayer?"yes":"no")),r(4),g(L(19,9,i.isFullTimeStudent?"yes":"no"))}}function fn(a,d){if(a&1&&(e(0,`
301                    `),t(1,"section",10),e(2,`
302                        `),t(3,"div",11),e(4,`
303                            `),t(5,"div",39),e(6,`
304                                `),t(7,"span",13),e(8),n(),e(9,`
305                            `),n(),e(10,`
306                        `),n(),e(11,`
307                        `),t(12,"div",14),e(13,`
308                            `),t(14,"div",15),e(15,`
309                                `),t(16,"table",55),e(17,`
310                                    `),t(18,"thead"),e(19,`
311                                        `),t(20,"tr"),e(21,`
312                                            `),t(22,"th"),e(23,"Dependent Name"),n(),e(24,`
313                                            `),t(25,"th"),e(26,"Dependent Date of Birth"),n(),e(27,`
314                                            `),t(28,"th"),e(29,"Age"),n(),e(30,`
315                                            `),t(31,"th"),e(32,"Current Player"),n(),e(33,`
316                                            `),t(34,"th"),e(35,"Full Time Student"),n(),e(36,`
317                                        `),n(),e(37,`
318                                    `),n(),e(38,`
319                                    `),t(39,"tbody"),e(40,`
320                                        `),F(41,xn,22,11,null,null,z),n(),e(43,`
321                                `),n(),e(44,`
322                            `),n(),e(45,`
323                        `),n(),e(46,`
324                    `),n(),e(47,`
325                    `)),a&2){let i=s(2).$implicit,o=s(3);r(8),ee("",i.title," (",o.application.dependents.length,")"),r(33),y(o.application.dependents)}}function Cn(a,d){if(a&1&&(e(0,`
326                    `),p(1,fn,48,2)),a&2){let i=s(4);r(),_(i.application.dependents&&i.application.dependents.length>0?1:-1)}}function vn(a,d){if(a&1){let i=h();e(0,`
327                                        `),t(1,"tr"),e(2,`
328                                            `),t(3,"td"),e(4,`
329                                                `),C(5,"i"),e(6),n(),e(7,`
330                                            `),t(8,"td"),e(9,`
331                                                `),t(10,"span",57),e(11,`
332                                                    `),t(12,"button",48),v("click",function(){let l=u(i).$implicit,c=s(6);return x(c.viewDocument(l.clubUserFinancialAidApplicationDocumentID,l.uploadedDocumentName))}),e(13,`
333                                                        `),C(14,"i",49),e(15,`View
334                                                    `),n(),e(16,`
335                                                `),n(),e(17,`
336                                                `),t(18,"button",58),v("click",function(){let l=u(i).$implicit,c=s(6);return x(c.downloadDocument(l.clubUserFinancialAidApplicationDocumentID))}),e(19,`
337                                                    `),C(20,"i",51),e(21,`Download
338                                                `),n(),e(22,`
339                                            `),n(),e(23,`
340                                        `),n(),e(24,`
341                                        `)}if(a&2){let i=d.$implicit,o=s(6);
341r(5),ve(o.getFileIcon(i.uploadedDocumentName)+" mr-1"),r(),w("",i.uploadedDocumentName,`
342                                            `),r(4),m("pTooltip",o.isViewable(i.uploadedDocumentName)?"Preview document":"This file type cannot be previewed"),r(2),m("disabled",!o.isViewable(i.uploadedDocumentName))}}function hn(a,d){if(a&1&&(e(0,`
343                    `),t(1,"section",10),e(2,`
344                        `),t(3,"div",11),e(4,`
345                            `),t(5,"div",39),e(6,`
346                                `),t(7,"span",13),e(8),n(),e(9,`
347                            `),n(),e(10,`
348                        `),n(),e(11,`
349                        `),t(12,"div",14),e(13,`
350                            `),t(14,"div",15),e(15,`
351                                `),t(16,"table",56),e(17,`
352                                    `),t(18,"thead"),e(19,`
353                                        `),t(20,"tr"),e(21,`
354                                            `),t(22,"th"),e(23,"Document Name"),n(),e(24,`
355                                            `),t(25,"th"),e(26,"Actions"),n(),e(27,`
356                                        `),n(),e(28,`
357                                    `),n(),e(29,`
358                                    `),t(30,"tbody"),e(31,`
359                                        `),F(32,vn,25,5,null,null,yi),n(),e(34,`
360                                `),n(),e(35,`
361                            `),n(),e(36,`
362                        `),n(),e(37,`
363                    `),n(),e(38,`
364                    `)),a&2){let i=s(2).$implicit,o=s(3);r(8),ee("",i.title," (",o.requiredDocuments.length,")"),r(24),y(o.requiredDocuments)}}function Sn(a,d){if(a&1&&(e(0,`
365                    `),p(1,hn,39,2)),a&2){let i=s(4);r(),_(i.requiredDocuments.length>0?1:-1)}}function bn(a,d){if(a&1&&(e(0,`
366                    `),t(1,"section",10),e(2,`
367                        `),t(3,"div",11),e(4,`
368                            `),t(5,"div",39),e(6,`
369                                `),t(7,"span",13),e(8),n(),e(9,`
370                            `),n(),e(10,`
371                        `),n(),e(11,`
372                        `),t(12,"div",14),e(13,`
373                            `),t(14,"div",15),e(15,`
374                                `),t(16,"app-dynamic-form",59,1),e(18,`
375                                    `),t(19,"app-dynamic-form-field",60),e(20,`
376                                    `),n(),e(21,`
377                                `),n(),e(22,`
378                            `),n(),e(23,`
379                        `),n(),e(24,`
380                    `),n(),e(25,`
381                    `)),a&2){let i=s(2).$implicit,o=s(3);r(8),g(i.title),r(8),m("entity",o.application)("fields",o.fields)("contentFieldsMode",!0)("horizontalForm",!0)("showSubmitButton",!1)("showCancelButton",!1)("subscribeToFormServiceErrors",!1)("buttonsPosition","left")}}function gn(a,d){if(a&1&&(e(0,`
382                    `),p(1,bn,26,9)),a&2){let i=s(4);r(),_(i.settings.enableRequestedAmountField&&i.application.applicationAmount>0?1:-1)}}function wn(a,d){if(a&1&&(e(0,`
383                            `),t(1,"div",61),e(2,`
384                                `),t(3,"label",42),e(4),n(),e(5,`
385                                `),t(6,"div",53),e(7),n(),e(8,`
386                            `),n(),e(9,`
387                            `)),a&2){let i=d.$implicit;r(4),g(i.label),r(3),g(i.value||"\u2014")}}function Fn(a,d){if(a&1&&(e(0,`
388                    `),t(1,"section",10),e(2,`
389                        `),t(3,"div",11),e(4,`
390                            `),t(5,"div",39),e(6,`
391                                `),t(7,"span",13),e(8),n(),e(9,`
392                            `),n(),e(10,`
393                        `),n(),e(11,`
394                        `),t(12,"div",14),e(13,`
395                            `),F(14,wn,10,2,null,null,pt),n(),e(16,`
396                    `),n(),e(17,`
397                    `)),a&2){let i=s(2).$implicit;r(8),g(i.title),r(6),y(i.fields)}}function yn(a,d){if(a&1&&(e(0,`
398                    `),p(1,Fn,18,1)),a&2){let i=s().$implicit;r(),_((i.fields==null?null:i.fields.length)>0?1:-1)}}function An(a,d){if(a&1&&(e(0,`
399                `),p(1,mn,19,2)(2,un,2,1)(3,Cn,2,1)(4,Sn,2,1)(5,gn,2,1)(6,yn,2,1),e(7,`
400            `)),a&2){let i,o=d.$implicit,l=s(3);r(),_((i=o.sectionTypeID)===l.SectionType.CUSTOM?1:i===l.SectionType.PLAYER_INFO?2:i===l.SectionType.HOUSEHOLD_INFO?3:i===l.SectionType.REQUIRED_DOCUMENTS?4:i===l.SectionType.REQUESTED_AMOUNT?5:6)}}function Dn(a,d){if(a&1&&(e(0,`
401            `),F(1,An,8,1,null,null,qt)),a&2){let i=s(2);r(),y(i.submittedSections)}}function En(a,d){if(a&1&&(e(0,`
402                            `),t(1,"tr"),e(2,`
403                                `),t(3,"td"),e(4),n(),e(5,`
404                                `),t(6,"td"),e(7),k(8,"date"),n(),e(9,`
405                                `),t(10,"td"),e(11),n(),e(12,`
406                                `),t(13,"td"),e(14),k(15,"uppercase"),n(),e(16,`
407                                `),t(17,"td"),e(18),k(19,"uppercase"),n(),e(20,`
408                            `),n(),e(21,`
409                            `)),a&2){let i=d.$implicit;r(4),g(i.fullName),r(3),g(L(8,5,i.dob)),r(4),g(i.age),r(3),g(L(15,7,i.isCurrentPlayer?"yes":"no")),r(4),g(L(19,9,i.isFullTimeStudent?"yes":"no"))}}function Tn(a,d){if(a&1&&(e(0,`
410        `),t(1,"section",10),e(2,`
411            `),t(3,"div",11),e(4,`
412                `),t(5,"div",39),e(6,`
413                    `),t(7,"span",13),e(8),n(),e(9,`
414                `),n(),e(10,`
415            `),n(),e(11,`
416            `),t(12,"div",14),e(13,`
417                `),t(14,"div",15),e(15,`
418                    `),t(16,"table",55),e(17,`
419                        `),t(18,"thead"),e(19,`
420                            `),t(20,"tr"),e(21,`
421                                `),t(22,"th"),e(23,"Dependent Name"),n(),e(24,`
422                                `),t(25,"th"),e(26,"Dependent Date of Birth"),n(),e(27,`
423                                `),t(28,"th"),e(29,"Age"),n(),e(30,`
424                                `),t(31,"th"),e(32,"Current Player"),n(),e(33,`
425                                `),t(34,"th"),e(35,"Full Time Student"),n(),e(36,`
426                            `),n(),e(37,`
427                        `),n(),e(38,`
428                        `),t(39,"tbody"),e(40,`
429                            `),F(41,En,22,11,null,null,z),n(),e(43,`
430                    `),n(),e(44,`
431                `),n(),e(45,`
432            `),n(),e(46,`
433        `),n(),e(47,`
434        `)),a&2){let i=s(3);r(8),w("Dependents (",i.application.dependents.length,")"),r(33),y(i.application.dependents)}}function In(a,d){if(a&1){let i=h();e(0,`
435                            `),t(1,"tr"),e(2,`
436                                `),t(3,"td"),e(4,`
437                                    `),C(5,"i"),e(6),n(),e(7,`
438                                `),t(8,"td"),e(9,`
439                                    `),t(10,"span",57),e(11,`
440                                        `),t(12,"button",48),v("click",function(){let l=u(i).$implicit,c=s(4);return x(c.viewDocument(l.clubUserFinancialAidApplicationDocumentID,l.uploadedDocumentName))}),e(13,`
441                                            `),C(14,"i",49),e(15,`View
442                                        `),n(),e(16,`
443                                    `),n(),e(17,`
444                                    `),t(18,"button",58),v("click",function(){let l=u(i).$implicit,c=s(4);return x(c.downloadDocument(l.clubUserFinancialAidApplicationDocumentID))}),e(19,`
445                                        `),C(20,"i",51),e(21,`Download
446                                    `),n(),e(22,`
447                                `),n(),e(23,`
448                            `),n(),e(24,`
449                            `)}if(a&2){let i=d.$implicit,o=s(4);
449r(5),ve(o.getFileIcon(i.uploadedDocumentName)+" mr-1"),r(),w("",i.uploadedDocumentName,`
450                                `),r(4),m("pTooltip",o.isViewable(i.uploadedDocumentName)?"Preview document":"This file type cannot be previewed"),r(2),m("disabled",!o.isViewable(i.uploadedDocumentName))}}function Mn(a,d){if(a&1&&(e(0,`
451        `),t(1,"section",10),e(2,`
452            `),t(3,"div",11),e(4,`
453                `),t(5,"div",39),e(6,`
454                    `),t(7,"span",13),e(8),n(),e(9,`
455                `),n(),e(10,`
456            `),n(),e(11,`
457            `),t(12,"div",14),e(13,`
458                `),t(14,"div",15),e(15,`
459                    `),t(16,"table",56),e(17,`
460                        `),t(18,"thead"),e(19,`
461                            `),t(20,"tr"),e(21,`
462                                `),t(22,"th"),e(23,"Document Name"),n(),e(24,`
463                                `),t(25,"th"),e(26,"Actions"),n(),e(27,`
464                            `),n(),e(28,`
465                        `),n(),e(29,`
466                        `),t(30,"tbody"),e(31,`
467                            `),F(32,In,25,5,null,null,yi),n(),e(34,`
468                    `),n(),e(35,`
469                `),n(),e(36,`
470            `),n(),e(37,`
471        `),n(),e(38,`
472        `)),a&2){let i=s(3);r(8),w("Documents (",i.application.documents.length,")"),r(24),y(i.application.documents)}}function kn(a,d){if(a&1&&(e(0,`
473        `),t(1,"section",10),e(2,`
474            `),t(3,"div",11),e(4,`
475                `),t(5,"div",39),e(6,`
476                    `),t(7,"span",13),e(8,"Requested Amount"),n(),e(9,`
477                `),n(),e(10,`
478            `),n(),e(11,`
479            `),t(12,"div",14),e(13,`
480                `),t(14,"div",15),e(15,`
481                    `),t(16,"app-dynamic-form",59,1),e(18,`
482                        `),t(19,"app-dynamic-form-field",60),e(20,`
483                        `),n(),e(21,`
484                    `),n(),e(22,`
485                `),n(),e(23,`
486            `),n(),e(24,`
487        `),n(),e(25,`
488        `)),a&2){let i=s(3);r(16),m("entity",i.application)("fields",i.fields)("contentFieldsMode",!0)("horizontalForm",!0)("showSubmitButton",!1)("showCancelButton",!1)("subscribeToFormServiceErrors",!1)("buttonsPosition","left")}}function Vn(a,d){if(a&1&&(e(0,`
489        `),p(1,Tn,48,1),p(2,Mn,39,1),p(3,kn,26,8)),a&2){let i=s(2);r(),_(i.application.dependents&&i.application.dependents.length>0?1:-1),r(),_(i.application.documents&&i.application.documents.length>0?2:-1),r(),_(i.settings.enableRequestedAmountField&&i.application.applicationAmount>0?3:-1)}}function On(a,d){a&1&&(e(0,`
490                                                `),t(1,"span",80),e(2,"%"),n(),e(3,`
491                                                `))}function Pn(a,d){if(a&1){let i=h();e(0,`
492                            `),t(1,"fieldset",72),e(2,`
493                                `),t(3,"legend",73),e(4),n(),e(5,`
494                                `),t(6,"div",74),e(7,`
495                                    `),t(8,"div",75),e(9,`
496                                        `),t(10,"app-dynamic-form-field",76),e(11,`
497
498                                            `),B(12,3,3),e(14,`
499                                                `),p(15,On,4,0),U(),e(16,`
500                                        `),n(),e(17,`
501                                    `),n(),e(18,`
502                                    `),t(19,"div",75),e(20,`
503                                        `),t(21,"app-dynamic-form-field",77),v("onChange",function(l){let c=u(i).$implicit,f=s(4);return x(f.programTypeChange(c.playerID,l.value))}),e(22,`
504                                        `),n(),e(23,`
505                                    `),n(),e(24,`
506                                    `),t(25,"div",75),e(26,`
507                                        `),t(27,"app-dynamic-form-field",78),v("onChange",function(l){let c=u(i).$implicit,f=s(4);return x(f.programChange(c.playerID,l.value))}),e(28,`
508                                        `),n(),e(29,`
509                                    `),n(),e(30,`
510                                    `),t(31,"div",75),e(32,`
511                                        `),t(33,"app-dynamic-form-field",79),e(34,`
512                                        `),n(),e(35,`
513                                    `),n(),e(36,`
514                                `),n(),e(37,`
515                            `),n(),e(38,`
516                            `)}if(a&2){let i=d.$implicit,o=s(4);r(4),g(i.user.fullName),r(6),m("fieldName","player"+i.playerID+"amount"),r(5),_(o.clubCreditTypeID===o.ClubCreditTypes.PERCENTAGE?15:-1),r(6),m("fieldName","player"+i.playerID+"programTypeID"),r(6),m("fieldName","player"+i.playerID+"programID")("enableFilter",!0),r(6),m("fieldName","player"+i.playerID+"registrationID")("enableFilter",!0)}}function Nn(a,d){if(a&1&&(e(0,`
517                        `),t(1,"div",71),e(2,`
518                            `),F(3,Pn,39,8,null,null,Ai),n(),e(5,`
519                        `)),a&2){let i=s(3);r(),m("hidden",i.approveDenyValue===3),r(2),y(i.players)}}function Rn(a,d){if(a&1){let i=h();e(0,`
520        `),t(1,"section",10),e(2,`
521            `),t(3,"div",11),e(4,`
522                `),t(5,"div",39),e(6,`
523                    `),t(7,"span",13),e(8,"Approve/Deny"),n(),e(9,`
524                `),n(),e(10,`
525            `),n(),e(11,`
526            `),t(12,"div",14),e(13,`
527                `),t(14,"div",15),e(15,`
528                    `),t(16,"app-dynamic-form",62,2),v("onSubmit",function(l){u(i);let c=s(2);return x(c.submitReview(l,!0))})("onSaveAndAdd",function(l){u(i);let c=s(2);return x(c.submitReview(l,!1))})("onCancel",function(){u(i);let l=s(2);return x(l.cancel())}),e(18,`
529                        `),t(19,"app-dynamic-form-field",63),v("onChange",function(l){u(i);let c=s(2);return c.approveDenyChange(l),x(c.approveDenyValue=l)}),e(20,`
530                        `),n(),e(21,`
531                        `),t(22,"app-dynamic-form-field",64),e(23,`
532                        `),n(),e(24,`
533                        `),t(25,"app-dynamic-form-field",65),v("onChange",function(l){u(i);let c=s(2);return x(c.clubCreditTypeChange(l))}),e(26,`
534                        `),n(),e(27,`
535                        `),p(28,Nn,6,1),t(29,"app-dynamic-form-field",66),e(30,`
536                        `),n(),e(31,`
537                        `),t(32,"app-dynamic-form-field",67),e(33,`
538                        `),n(),e(34,`
539                        `),t(35,"app-dynamic-form-field",68),e(36,`
540                        `),n(),e(37,`
541                        `),t(38,"app-dynamic-form-field",69),e(39,`
542                        `),n(),e(40,`
543                        `),t(41,"app-dynamic-form-field",70),e(42,`
544                        `),n(),e(43,`
545                    `),n(),e(44,`
546                `),n(),e(45,`
547            `),n(),e(46,`
548        `),n(),e(47,`
549        `)}if(a&2){let i=s(2);r(16),m("fields",i.currentReviewFormFields)("contentFieldsMode",!0)("horizontalForm",!0)("showSaveAndAddButton",!0)("entity",i.entity),r(12),_(i.playerFields?28:-1)}}function Bn(a,d){if(a&1&&(e(0,`
550            `),t(1,"app-player-programs",81),e(2,`
551            `),n(),e(3,`
552            `)),a&2){let i=d.$implicit;r(),m("playerID",i.playerID)("playerName",i.user.fullName)("financialAidMode",!0)}}function Un(a,d){if(a&1&&(e(0,`
553        `),t(1,"section",10),e(2,`
554            `),t(3,"div",11),e(4,`
555                `),t(5,"div",39),e(6,`
556                    `),t(7,"span",13),e(8,"Apply Aid"),n(),e(9,`
557                `),n(),e(10,`
558            `),n(),e(11,`
559            `),F(12,Bn,4,3,null,null,Ai),n(),e(14,`
560        `)),a&2){let i=s(2);r(12),y(i.players)}}function Ln(a,d){if(a&1){let i=h();e(0,`
561        `),t(1,"div",82),e(2,`
562            `),t(3,"div",83),e(4,`
563                `),t(5,"a",84),v("click",function(){u(i);let l=s(2);return x(l.cancel())}),e(6,`
564                    Back
565                `),n(),e(7,`
566            `),n(),e(8,`
567        `),n(),e(9,`
568        `)}if(a&2){let i=s(2);r(5),K("disabled",i.loading)}}function Wn(a,d){if(a&1&&(e(0,`
569    `),t(1,"div",9),e(2,`
570        `),t(3,"section",10),e(4,`
571            `),t(5,"div",11),e(6,`
572                `),t(7,"div",12),e(8,`
573                    `),t(9,"span",13),e(10,"Application Status"),n(),e(11,`
574                `),n(),e(12,`
575            `),n(),e(13,`
576            `),t(14,"div",14),e(15,`
577                `),t(16,"div",15),e(17,`
578                    `),t(18,"div",16),e(19,`
579                        `),t(20,"div",17),e(21,`
580                            Application Status
581                        `),n(),e(22,`
582                        `),t(23,"div",18),e(24,`
583                            `),p(25,zt,1,1)(26,Ht,4,2),n(),e(27,`
584                    `),n(),e(28,`
585                    `),t(29,"div",16),e(30,`
586                        `),t(31,"div",17),e(32,`
587                            Application Date
588                        `),n(),e(33,`
589                        `),t(34,"div",18),e(35),k(36,"utcDate"),n(),e(37,`
590                    `),n(),e(38,`
591                    `),p(39,Zt,36,9),n(),e(40,`
592            `),n(),e(41,`
593        `),n(),e(42,`
594        `),p(43,en,50,8),p(44,Dn,3,0),p(45,Vn,4,3),p(46,Rn,48,6),p(47,Un,15,0),p(48,Ln,10,2),n(),e(49,`
595    `)),a&2){let i=s();r(25),_(i.application.clubUserFinancialAidApplicationStatusID===i.Statuses.PENDING?25:26),r(10),w(`
596                            `,Oe(36,9,i.application.applicationDate,"MMM d, y, h:mm a",!0),`
597                        `),r(4),_(i.application.clubUserFinancialAidApplicationStatusID!==i.Statuses.PENDING?39:-1),r(4),_(i.newExperience?-1:43),r(),_(i.newExperience&&i.submittedSections.length>0?44:-1),r(),_(i.newExperience?-1:45),r(),_(i.application.clubUserFinancialAidApplicationStatusID===i.Statuses.PENDING?46:-1),r(),_(i.application.clubUserFinancialAidApplicationStatusID===i.Statuses.APPROVED?47:-1),r(),_(i.application.clubUserFinancialAidApplicationStatusID!==i.Statuses.PENDING?48:-1)}}function $n(a,d){a&1&&(e(0,`
598    `),t(1,"div",85),e(2,`
599        `),C(3,"app-skeleton-template",86),e(4,`
600    `),n(),e(5,`
601    `)),a&2&&(r(3),m("invertBg",!0))}function jn(a,d){a&1&&(e(0,`
602    `),t(1,"div",87),e(2,`
603        `),C(3,"app-loader"),e(4,`
604    `),n(),e(5,`
605    `))}function Yn(a,d){a&1&&(e(0,`
606    `),t(1,"div",88),e(2,`
607        `),t(3,"app-inline-alert",89),e(4,`
608            This document could not be displayed.
609        `),n(),e(5,`
610    `),n(),e(6,`
611    `)),a&2&&(r(3),m("isInline",!0))}function qn(a,d){a&1&&(e(0,`
612    `),t(1,"p",90),e(2,`
613        Annotations made here are not saved. Download the file to save a local copy.
614    `),n(),e(3,`
615    `))}function zn(a,d){if(a&1){let i=h();e(0,`
616    `),t(1,"img",91),v("error",function(){u(i);let l=s(2);return x(l.viewLoadError=!0)}),n(),e(2,`
617    `)}if(a&2){let i=s(2);r(),m("src",i.viewDocumentUrl,Ti)}}function Hn(a,d){if(a&1&&(e(0,`
618    `),C(1,"iframe",92),e(2,`
619    `)),a&2){let i=s(2);r(),m("src",i.viewDocumentUrl,Ii)}}function Qn(a,d){if(a&1&&(e(0,`
620    `),p(1,qn,4,0),p(2,zn,3,1),p(3,Hn,3,1)),a&2){let i=s();r(),_(i.isImageFile(i.viewingDocumentName)?-1:1),r(),_(i.isImageFile(i.viewingDocumentName)?2:-1),r(),_(i.isImageFile(i.viewingDocumentName)?-1:3)}}function Gn(a,d){if(a&1){let i=h();e(0,`
621        `),t(1,"button",94),v("click",function(){u(i);let l=s(3);return x(l.openInNewTab())}),e(2,`
622            `),C(3,"i",95),e(4,`Open in New Tab
623        `),n(),e(5,`
624        `)}}function Xn(a,d){if(a&1){let i=h();e(0,`
625        `),t(1,"button",93),v("click",function(){u(i);let l=s(2);return x(l.downloadDocument(l.viewingDocumentID))}),e(2,`
626            `),C(3,"i",51),e(4,`Download
627        `),n(),e(5,`
628        `),p(6,Gn,6,0)}if(a&2){let i=s(2);r(6),_(i.viewDocumentUrl&&!i.viewLoadError?6:-1)}}function Kn(a,d){if(a&1&&(e(0,`
629        `),p(1,Xn,7,1)),a&2){let i=s();r(),_(i.viewLoading?-1:1)}}function Jn(a,d){if(a&1){let i=h();e(0,`
630        `),t(1,"app-dynamic-form",96,2),v("onSubmit",function(l){u(i);let c=s();return x(c.updateFiscalYear(l))})("onCancel",function(){u(i);let l=s();return x(l.showEditFiscalYear=!1)}),e(3,`
631            `),t(4,"app-dynamic-form-field",68),e(5,`
632            `),n(),e(6,`
633        `),n(),e(7,`
634    `)}if(a&2){let i=s();r(),m("fields",i.fiscalYearFormFields)("contentFieldsMode",!0)("horizontalForm",!0)("entity",i.application)("modalContent",!0)}}var _t=(()=>{let d=class d{constructor(o,l,c,f,S,D,me){this.siteDataService=o,this.userService=l,this.financialAidService=c,this.route=f,this.router=S,this.formService=D,this.sanitizer=me,this.unsubscribe$=new O,this.loading=!0,this.newExperience
634=!1,this.selectedPlayers=[],this.submittedSections=[],this.approveDenyValue=2,this.entity={waiveAdminFee:!0},this.clubUserFinancialAidApplicationStatusID=te.APPROVED,this.clubCreditTypeID=Pe.PERCENTAGE,this.Statuses=te,this.ClubCreditTypes=Pe,this.FieldType=H,this.SectionType=V,this.showEditFiscalYear=!1,this.viewDialogVisible=!1,this.viewDocumentUrl=null,this.viewingDocumentName="",this.viewingDocumentID=null,this.viewLoading=!1,this.viewLoadError=!1,this.viewObjectUrl=null,this.documentCache=new Map,this.viewableExtensions=[".jpg",".jpeg",".png",".gif",".webp",".pdf",".txt",".csv"],this.viewableMimeTypes={".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".webp":"image/webp",".pdf":"application/pdf",".txt":"text/plain",".csv":"text/plain"}}ngOnInit(){this.siteDataService.hideSiteLoader(),this.newExperience=this.siteDataService.clubSettings?.clubOptions?.find(o=>o.optionID===be.ENABLE_NEW_FINANCIAL_AID_EXPERIENCE)?.boolValue??!1,this.route.params.subscribe(o=>{o.id&&Ve([this.financialAidService.getClubUserFinancialAidApplicationMetadata(),this.financialAidService.getClubUserFinancialAidApplicationReviewFormMetadata(),this.financialAidService.getClubUserFinancialAidApplication(+o.id),this.financialAidService.getClubFinancialAidSettings(),this.financialAidService.getProgramTypes(),this.financialAidService.getApplicationResponses(+o.id)]).pipe(vi(l=>{this.fields=l[0].fields,this.reviewFormFields=l[1].fields,this.fiscalYearFormFields=l[1].fields.filter(c=>c.controlName==="clubFiscalYearID"),this.application=l[2],this.applicantInfo=Z(Z({},l[2].clubUser.user),l[2].clubUser.user.userAddress),this.settings=l[3],this.settings.defaultAidToFixedAmount&&(this.clubCreditTypeID=Pe.FIXED_AMOUNT),this.programTypes=l[4],this.submittedSections=l[5]??[]}),Le(()=>Ve([this.financialAidService.getPrograms(this.settings.programTypeID||[]),this.financialAidService.getRegistrations(this.settings.programTypeID||[]),this.userService.getPlayers(this.application.clubUserID)])),vi(l=>{this.programs=l[0],this.registrations=l[1];let c=l[2];c&&(this.selectedPlayers=this.application.selectedPlayerIDs?.length>0?c.filter(f=>this.application.selectedPlayerIDs.includes(f.playerID)):[],this.players=this.newExperience&&this.selectedPlayers.length>0?this.selectedPlayers:c,this.players&&this.players.length>0&&this.players.forEach(f=>{let S=new $({dynamicFormFieldTypeID:W.TEXT,dynamicFormFieldTextBoxTypeID:Ze.TEXT,label:"Amount",controlName:"player"+f.playerID+"amount",key:"player"+f.playerID+"amount",decimalLimit:2,validators:[{validatorType:J.DECIMAL_LIMIT,values:[2]}]});this.reviewFormFields.push(S);let D=new $({dynamicFormFieldTypeID:W.MULTISELECT,label:"Program Type(s)",controlName:"player"+f.playerID+"programTypeID",key:"player"+f.playerID+"programTypeID",options:this.programTypes,value:this.settings.programTypeID?.length>0?this.programTypes.filter(ue=>this.settings.programTypeID.some(Ft=>Ft===ue.value)).map(ue=>ue.value):null});this.reviewFormFields.push(D);let me=new $({dynamicFormFieldTypeID:W.MULTISELECT,label:"Program(s)",controlName:"player"+f.playerID+"programID",key:"player"+f.playerID+"programID",options:this.programs});this.reviewFormFields.push(me);let ke=new $({dynamicFormFieldTypeID:W.MULTISELECT,label:"Registration(s)",controlName:"player"+f.playerID+"registrationID",key:"player"+f.playerID+"registrationID",options:this.registrations});this.reviewFormFields.push(ke)}))}),A(this.unsubscribe$)).subscribe({next:()=>{this.setCurrentReviewFormFields(),this.loading=!1},error:l=>{console.error(l),this.siteDataService.showSiteErrorAlert("There was a problem fetching this application.")}})})}downloadDocument(o){this.financialAidService.downloadClubUserFinancialAidApplicationDocument(this.application.clubUserFinancialAidApplicationID,o).pipe(A(this.unsubscribe$)).subscribe({next:l=>{qi(l)},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem downloading the requested document")}})}getFileIcon(o){switch(o?.toLowerCase().substring(o.lastIndexOf("."))){case".pdf":return"far fa-file-pdf";
634case".jpg":case".jpeg":case".png":case".gif":case".webp":return"far fa-file-image";case".doc":case".docx":return"far fa-file-word";case".xls":case".xlsx":return"far fa-file-excel";case".ppt":case".pptx":return"far fa-file-powerpoint";case".txt":case".csv":return"far fa-file-alt";default:return"far fa-file"}}isViewable(o){if(!o)return!1;let l=o.toLowerCase().substring(o.lastIndexOf("."));return this.viewableExtensions.includes(l)}isImageFile(o){if(!o)return!1;let l=o.toLowerCase().substring(o.lastIndexOf("."));return[".jpg",".jpeg",".png",".gif",".webp"].includes(l)}viewDocument(o,l){this.viewLoadError=!1,this.viewingDocumentName=l,this.viewingDocumentID=o,this.viewDialogVisible=!0;let c=this.documentCache.get(o);if(c){this.viewObjectUrl=c.objectUrl,this.viewDocumentUrl=c.safeUrl,this.viewLoading=!1;return}this.viewDocumentUrl=null,this.viewLoading=!0,this.financialAidService.downloadClubUserFinancialAidApplicationDocument(this.application.clubUserFinancialAidApplicationID,o).pipe(A(this.unsubscribe$)).subscribe({next:f=>{let S=l.toLowerCase().substring(l.lastIndexOf(".")),D=this.viewableMimeTypes[S]||"application/octet-stream",me=new Blob([f.blob],{type:D}),ke=URL.createObjectURL(me),ue=this.sanitizer.bypassSecurityTrustResourceUrl(ke);this.documentCache.set(o,{objectUrl:ke,safeUrl:ue}),this.viewObjectUrl=ke,this.viewDocumentUrl=ue,this.viewLoading=!1},error:()=>{this.viewLoading=!1,this.viewLoadError=!0}})}openInNewTab(){this.viewObjectUrl&&window.open(this.viewObjectUrl,"_blank")}closeViewDialog(){this.viewDialogVisible=!1,this.viewLoading=!1,this.viewLoadError=!1,this.viewObjectUrl=null,this.viewDocumentUrl=null}approveDenyChange(o){this.clubUserFinancialAidApplicationStatusID=o,this.setCurrentReviewFormFields()}clubCreditTypeChange(o){this.clubCreditTypeID=o,this.setCurrentReviewFormFields()}programTypeChange(o,l){this.entity["player"+o+"programTypeID"]=l,this.financialAidService.getPrograms(l).pipe(A(this.unsubscribe$)).subscribe(c=>{if(this.reviewFormFields.find(f=>f.key==="player"+o+"programID").options=c,!l||l.length===0)this.entity["player"+o+"programID"]=null,this.entity["player"+o+"registrationID"]=null,this.setCurrentReviewFormFields();else{let f=(this.reviewform.value["player"+o+"programID"]||[]).filter(S=>c.some(D=>D.value===S));this.entity["player"+o+"programID"]=f,this.programChange(o,f)}})}programChange(o,l){this.entity["player"+o+"programID"]=l,this.financialAidService.getRegistrations(this.reviewform.value["player"+o+"programTypeID"]||[],l).pipe(A(this.unsubscribe$)).subscribe(c=>{if(this.reviewFormFields.find(f=>f.key==="player"+o+"registrationID").options=c,!l||l.length===0)this.entity["player"+o+"registrationID"]=null;else{let f=(this.reviewform.value["player"+o+"registrationID"]||[]).filter(S=>c.some(D=>D.value===S));this.entity["player"+o+"registrationID"]=f}this.setCurrentReviewFormFields()})}setCurrentReviewFormFields(){this.reviewform?(this.entity.clubUserFinancialAidApplicationStatusID=this.clubUserFinancialAidApplicationStatusID,this.entity.clubCreditTypeID=this.clubCreditTypeID,this.entity.effectiveDate=new Date(new Date().setDate(new Date().getDate()-60)),this.entity=Z(Z({},this.reviewform.value),this.entity)):(this.reviewFormFields.find(o=>o.controlName==="clubUserFinancialAidApplicationStatusID").value=this.clubUserFinancialAidApplicationStatusID,this.reviewFormFields.find(o=>o.controlName==="clubCreditTypeID").value=this.clubCreditTypeID,this.reviewFormFields.find(o=>o.controlName==="effectiveDate").value=new Date(new Date().setDate(new Date().getDate()-60))),this.clubUserFinancialAidApplicationStatusID===te.DENIED?this.currentReviewFormFields=Array.from(this.reviewFormFields.filter(o=>o.controlName==="clubUserFinancialAidApplicationStatusID"||o.controlName==="reviewerComments")):(this.reviewFormFields.filter(l=>l.controlName.indexOf("amount")>-1).forEach(l=>{this.clubCreditTypeID===Pe.FIXED_AMOUNT?(l.isCurrency=!0,l.validators=[{validatorType:J.MIN,values:[1]},{validatorType:J.DECIMAL_LIMIT,values:[2]},{validatorType:J.CURRENCY}]):(l.isCurrency=!1,l.validators=[{validatorType:J.RANGE,values:[1,100]},{validatorType:J.DECIMAL_LIMIT,values:[2]}])}),this.currentReviewFormFields=Array.from(this.reviewFormFields.filter(l=>l.controlName!=="amount")))}get playerFields(){return this.reviewFormFields.some(o=>o.controlName.startsWith("player"))?this.reviewFormFields.filter(o=>o.controlName.startsWith("player")):null}updateFiscalYear(o){this.financialAidService.updateClubUserFinancialAidApplication(this.application.clubUserFinancialAidApplicationID,o).pipe(A(this.unsubscribe$)).subscribe({next:()=>{this.application.clubFiscalYear=this.reviewFormFields.find(l=>l.controlName==="clubFiscalYearID").options.find(l=>l.value===o.clubFiscalYearID).label,this.siteDataService.showSiteSuccessAlert("This application fiscal year was successfully updated"),this.formService.hideFormLoader(),this.showEditFiscalYear=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem updating this application's fiscal year"),this.formService.hideFormLoader()}})}submitReview(o,l){if(this.reviewform.isValid){let c=new it;c.clubUserFinancialAidApplicationStatusID=o.clubUserFinancialAidApplicationStatusID,c.reviewerComments=o.reviewerComments;let f=!0;if(c.clubUserFinancialAidApplicationStatusID===te.APPROVED){let S=[];
634f=!1,this.players.forEach(D=>{o["player"+D.playerID+"amount"]&&(f=!0,S.push({playerID:D.playerID,amount:o["player"+D.playerID+"amount"],programTypeID:o["player"+D.playerID+"programTypeID"],programID:o["player"+D.playerID+"programID"],registrationID:o["player"+D.playerID+"registrationID"]}))}),f?(c.clubCreditTypeID=o.clubCreditTypeID,c.expirationDate=o.expirationDate,c.effectiveDate=o.effectiveDate,c.clubFiscalYearID=o.clubFiscalYearID,c.playerCredits=S,c.waiveAdminFee=o.waiveAdminFee):(this.formService.showFormErrorMessage("Please set the amount for at least one player"),document.getElementById("review-form-player"+this.players[0].playerID+"amount").focus(),this.formService.hideFormLoader())}f?this.financialAidService.submitClubUserFinancialAidApplicationReview(this.application.clubUserFinancialAidApplicationID,c,l).pipe(A(this.unsubscribe$)).subscribe({next:S=>{this.application=S,this.siteDataService.showSiteSuccessAlert("This application status was successfully updated"),this.formService.hideFormLoader(),window.scrollTo({top:0,left:0,behavior:"smooth"})},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem submitting this application"),this.formService.hideFormLoader()}}):this.formService.hideFormLoader()}}cancel(){this.router.navigate([".."],{relativeTo:this.route})}getSectionFieldDocs(o){return this.application?.documents?.filter(l=>l.clubFinancialAidSectionFieldID===o)??[]}get requiredDocuments(){return this.application?.documents?.filter(o=>!o.clubFinancialAidSectionFieldID)??[]}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete(),this.documentCache.forEach(o=>URL.revokeObjectURL(o.objectUrl)),this.documentCache.clear()}};d.\u0275fac=function(l){return new(l||d)(b(N),b(zi),b(M),b(Qe),b(le),b(Y),b(Bi))},d.\u0275cmp=P({type:d,selectors:[["app-financial-aid-review"]],viewQuery:function(l,c){if(l&1&&Ce(Yt,5),l&2){let f;G(f=X())&&(c.reviewform=f.first)}},standalone:!1,decls:19,vars:18,consts:[["mainForm",""],["amountForm",""],["reviewform",""],["inputGroupEnd",""],["role","main"],["parentLinkUrl","../","parentLinkText","Financial Aid",3,"pageTitle","showBackButton"],["styleClass","largeWidthDialog",3,"visibleChange","onHide","header","visible","modal","showHeader","draggable","closable"],["pTemplate","footer"],["header","Update Fiscal Year","styleClass","standardWidthDialog",3,"visibleChange","visible","modal","showHeader","draggable","closable"],[1,"content"],[1,"section"],[1,"row"],[1,"col-lg-12","mb-2"],[1,"text-larger","fw-800"],[1,"row","section-content"],[1,"col-lg-12"],[1,"row","view-only-field","mb-2"],[1,"col-md-3","view-only-field-label","fw-400"],[1,"col-md-5"],[3,"status","text"],[1,"col-lg-3","view-only-field-label","fw-400"],[1,"col-lg-9"],["role","button",1,"ml-2","d-inline-block",3,"click"],[1,"fa-solid","fa-pencil"],[1,"row","credits-section","mt-1"],[1,"row","credits-description","mb-1"],["id","financial-aid-credits",1,"temp-table"],[1,"col-lg-12","border-top","mb-2"],[1,"row","section-content","applicant-info-section"],["formID","main-form",3,"entity","fields","contentFieldsMode","horizontalForm","showSubmitButton","showCancelButton","subscribeToFormServiceErrors","buttonsPosition"],["fieldName","firstName","formID","main-form"],["fieldName","lastName","formID","main-form"],["fieldName","addressLine1","formID","main-form"],["fieldName","addressLine2","formID","main-form"],["fieldName","city","formID","main-form"],["fieldName","state","formID","main-form"],["fieldName","zip","formID","main-form"],["fieldName","cellPhone","formID","main-form"],["fieldName","email","formID","main-form"],[1,"col-lg-12","border-top","mb-3"],["pTooltip","This section was removed from the form after it was submitted.","tooltipPosition","top","tooltipStyleClass","sp-tooltip",1,"badge","badge-secondary","ml-2"],[1,"mb-3",3,"ngClass"],[1,"review-field-label"],["pTooltip","This field was removed from the form after it was submitted.","tooltipPosition","top","tooltipStyleClass","sp-tooltip",1,"badge","badge-secondary","ml-1"],[1,"review-textarea-value","review-field-value"],[1,"d-flex","align-items-center","mb-1"],[1,"mr-3","text-truncate"],["tooltipPosition","top","tooltipStyleClass","sp-tooltip",1,"mr-2","flex-shrink-0",3,"pTooltip"],["type","button",1,"btn-a11y","text-primary-link",3,"click","disabled"],[1,"fa","fa-eye","mr-1"],["type","button","pTooltip","Download document","tooltipPosition","top","tooltipStyleClass","sp-tooltip",1,"btn-a11y","text-primary-link","flex-shrink-0",3,"click"],[1,"fa","fa-download","mr-1"],[1,"review-field-value","text-grey-lt"],[1,"review-field-value"],[1,"list-unstyled","mb-0"],["
634id","financial-aid-dependents",1,"temp-table"],["id","financial-aid-documents",1,"temp-table"],["tooltipPosition","top","tooltipStyleClass","sp-tooltip",1,"mr-3",3,"pTooltip"],["type","button","pTooltip","Download document","tooltipPosition","top","tooltipStyleClass","sp-tooltip",1,"btn-a11y","text-primary-link",3,"click"],["formID","amount-form",3,"entity","fields","contentFieldsMode","horizontalForm","showSubmitButton","showCancelButton","subscribeToFormServiceErrors","buttonsPosition"],["fieldName","applicationAmount","formID","amount-form"],[1,"col-sm-6","col-lg-4","mb-3"],["formID","review-form","submitButtonText","Submit Review & Notify","saveAndAddButtonText","Submit Review","submitButtonSavingText","Submitting","buttonsPosition","left",3,"onSubmit","onSaveAndAdd","onCancel","fields","contentFieldsMode","horizontalForm","showSaveAndAddButton","entity"],["fieldName","clubUserFinancialAidApplicationStatusID","formID","review-form",3,"onChange"],["fieldName","amount","formID","review-form"],["fieldName","clubCreditTypeID","formID","review-form",3,"onChange"],["fieldName","effectiveDate","formID","review-form"],["fieldName","expirationDate","formID","review-form"],["fieldName","clubFiscalYearID","formID","review-form"],["fieldName","waiveAdminFee","formID","review-form"],["fieldName","reviewerComments","formID","review-form"],[1,"player-group","mb-3",3,"hidden"],[1,"p-2","mb-2"],[1,"m-1"],[1,"form-row","player-form-row"],[1,"col-lg-6"],["formID","review-form",3,"fieldName"],["formID","review-form",3,"onChange","fieldName"],["formID","review-form",3,"onChange","fieldName","enableFilter"],["formID","review-form",3,"fieldName","enableFilter"],[1,"text-medium"],[3,"playerID","playerName","financialAidMode"],[1,"row","form-action","no-gutters"],[1,"col","left-buttons"],["href","javascript:void(0);",1,"btn","btn-lg",3,"click"],[1,"mb-3"],[3,"invertBg"],[1,"d-flex","justify-content-center","align-items-center","document-viewer-loading"],[1,"p-3"],[3,"isInline"],[1,"text-muted","text-small","mb-2"],[1,"document-viewer-img",3,"error","src"],[1,"document-viewer-iframe",3,"src"],["type","button",1,"btn","btn-lg","mr-2",3,"click"],["type","button",1,"btn","btn-lg",3,"click"],[1,"fa","fa-external-link-alt","mr-1"],["formID","review-form","buttonsPosition","left",3,"onSubmit","onCancel","fields","contentFieldsMode","horizontalForm","entity","modalContent"]],template:function(l,c){l&1&&(t(0,"main",4),e(1,`
635    `),t(2,"app-admin-header",5),e(3,`
636    `),n(),e(4,`
637    `),p(5,Wn,50,13)(6,$n,6,1),n(),e(7,`
638`),t(8,"p-dialog",6),I("visibleChange",function(S){return T(c.viewDialogVisible,S)||(c.viewDialogVisible=S),S}),v("onHide",function(){return c.closeViewDialog()}),e(9,`
639    `),p(10,jn,6,0),p(11,Yn,7,1),p(12,Qn,4,3),R(13,Kn,2,1,"ng-template",7),e(14,`
640`),n(),e(15,`
641
642`),t(16,"p-dialog",8),I("visibleChange",function(S){return T(c.showEditFiscalYear,S)||(c.showEditFiscalYear=S),S}),e(17,`
643    `),p(18,Jn,8,5),n()),l&2&&(r(2),m("pageTitle","Review")("showBackButton",!0),r(3),_(c.loading?6:5),r(3),m("header",c.viewingDocumentName),E("visible",c.viewDialogVisible),m("modal",!0)("showHeader",!0)("draggable",!1)("closable",!0),r(2),_(c.viewLoading?10:-1),r(),_(c.viewLoadError?11:-1),r(),_(c.viewDocumentUrl&&!c.viewLoading&&!c.viewLoadError?12:-1),r(4),E("visible",c.showEditFiscalYear),m("modal",!0)("showHeader",!0)("draggable",!1)("closable",!0),r(2),_(c.fiscalYearFormFields?18:-1))},dependencies:[Pi,De,q,ge,Fe,Se,ni,ce,Ee,de,we,tt,Ni,Ri,He,Ae],styles:["fieldset[_ngcontent-%COMP%]{border:initial;margin:initial;padding:initial;margin-bottom:initial;border:var(--border)}fieldset[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{display:initial;width:initial;max-width:initial;padding:initial;margin-bottom:initial;font-size:initial;line-height:inherit;color:inherit;white-space:initial}.review-field-label[_ngcontent-%COMP%]{color:var(--base-text-grey);font-size:.8rem;font-weight:600;letter-spacing:.01em;display:block;margin-bottom:.2rem}.review-field-value[_ngcontent-%COMP%]{min-height:1.2em}.review-textarea-value[_ngcontent-%COMP%]{white-space:pre-wrap;min-height:3em}.document-viewer-loading[_ngcontent-%COMP%]{height:75vh}.document-viewer-img[_ngcontent-%COMP%]{max-width:100%;display:block;margin:auto}.document-viewer-iframe[_ngcontent-%COMP%]{width:100%;height:75vh;border:none;display:block}"]});let a=d;return a})();var mi=()=>({width:"100%"}),ta=a=>["/admin/financial-aid/applications",a];function na(a,d){if(a&1&&(e(0,`
644                        `),t(1,"th",27),e(2),C(3,"p-sortIcon",28),e(4,`
645                        `),n(),e(5,`
646                        `)),a&2){let i=d.$implicit,o=s(4);r(),m("pSortableColumn",i.field),fe("aria-label",o.AriaLabels.ACTIVATE_SORT),r(),w(`
647                            `,i.header,`
648                            `),r(),m("field",i.field)}}function aa(a,d){if(a&1&&(e(0,`
649                    `),t(1,"tr"),e(2,`
650                        `),F(3,na,6,4,null,null,z),n(),e(5,`
651                `)),a&2){let i=s(3);r(3),y(i.financialAidService.columns)}}function oa(a,d){if(a&1&&(e(0,`
652                            `),t(1,"app-status-indicator",30),e(2,`
653                            `),n(),e(3,`
654                            `)),a&2){let i=s().$implicit,o=s(3);r(),m("status",i.clubUserFinancialAidApplicationStatusID===o.Statuses.APPROVED?"success":"error")("text",i.clubUserFinancialAidApplicationStatus.description)}}function la(a,d){if(a&1&&e(0),a&2){let i=s().$implicit;w(`
655                                `,i.clubUserFinancialAidApplicationStatus.description,`
656                            `)}}function ra(a,d){if(a&1&&(e(0,`
657                    `),t(1,"tr"),e(2,`
658                        `),t(3,"td"),e(4,`
659                            `),t(5,"a",29),e(6),n(),e(7,`
660                        `),n(),e(8,`
661                        `),t(9,"td"),e(10),k(11,"utcDate"),n(),e(12,`
662                        `),t(13,"td"),e(14,`
663                            `),p(15,oa,4,2)(16,la,1,1),n(),e(17,`
664                    `),n(),e(18,`
665                `)),a&2){let i=d.$implicit,o=s(3);r(5),m("routerLink",qe(7,ta,i.clubUserFinancialAidApplicationID)),r(),w(`
666                                `,i.applicantName,`
667                            `),r(4),w(`
668                            `,ie(11,4,i.applicationDate,"M/d/y"),`
669                        `),r(5),_(i.clubUserFinancialAidApplicationStatusID===o.Statuses.APPROVED||i.clubUserFinancialAidApplicationStatusID===o.Statuses.DENIED?15:16)}}function da(a,d){if(a&1&&(e(0,`
670                    `),t(1,"tr"),e(2,`
671                        `),t(3,"td",31),e(4,`
672                            The search criteria produced no results.
673                        `),n(),e(5,`
674                    `),n(),e(6,`
675                `)),a&2){let i=d.$implicit;r(3),fe("colspan",i.length+1)}}function ca(a,d){if(a&1){let i=h();e(0,`
676            `),t(1,"p-table",23),v("onLazyLoad",function(l){u(i);let c=s(2);return x(c.search(l))}),e(2,`
677                `),R(3,aa,6,0,"ng-template",24),e(4,`
678                `),R(5,ra,19,9,"ng-template",25),e(6,`
679                `),R(7,da,7,1,"ng-template",26),e(8,`
680            `),n(),e(9,`
681            `)}if(a&2){let i=s(2);r(),m("columns",i.financialAidService.columns)("value",i.searchResults)("lazy",!0)("paginator",!0)("alwaysShowPaginator",!1)("totalRecords",i.totalRecords)("rows",100)("sortOrder",-1)("loading",i.loading)}}function sa(a,d){if(a&1){let i=h();e(0,`
682`),t(1,"main",0),v("keydown.enter",function(){u(i);let l=s();return x(l.run())}),e(2,`
683    `),e(3,`
684    `),t(4,"app-admin-filter",1),v("adminFilterReset",function(){u(i);let l=s();return x(l.resetFilters())})("adminFilterSearch",function(){u(i);let l=s();return x(l.run())}),e(5,`
685        `),B(6,2),e(7,`
686            `),t(8,"div",3),e(9,`
687                `),t(10,"input",4),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.filters.lastName,l)||(c.financialAidService.filters.lastName=l),x(l)}),n(),e(11,`
688                `),C(12,"label",5),e(13,`
689            `),n(),e(14,`
690            `),t(15,"div",3),e(16,`
691                `),t(17,"input",6),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.filters.firstName,l)||(c.financialAidService.filters.firstName=l),x(l)}),n(),e(18,`
692                `),C(19,"label",5),e(20,`
693            `),n(),e(21,`
694        `),U(),e(22,`
695        `),B(23,7),e(24,`
696            `),t(25,"div",8),e(26,`
697                `),t(27,"div",9),e(28,`
698                    `),t(29,"div",10),e(30,`
699                        `),t(31,"label"),e(32,"Email"),n(),e(33,`
700                        `),t(34,"input",11),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.filters.email,l)||(c.financialAidService.filters.email=l),x(l)}),n(),e(35,`
701                    `),n(),e(36,`
702                `),n(),e(37,`
703                `),t(38,"div",9),e(39,`
704                    `),t(40,"div",10),e(41,`
705                        `),t(42,"label",12),e(43,"Test Users"),n(),e(44,`
706                        `),t(45,"p-select",13),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.filters.testUserOption,l)||(c.financialAidService.filters.testUserOption=l),x(l)}),e(46,`
707                        `),n(),e(47,`
708                    `),n(),e(48,`
709                `),n(),e(49,`
710                `),t(50,"div",9),e(51,`
711                    `),t(52,"div",10),e(53,`
712                        `),t(54,"label",14),e(55,`
713                            Application Status
714                        `),n(),e(56,`
715                        `),t(57,"p-select",15),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.filters.clubUserFinancialAidApplicationStatusID,l)||(c.financialAidService.filters.clubUserFinancialAidApplicationStatusID=l),x(l)}),e(58,`
716                        `),n(),e(59,`
717                    `),n(),e(60,`
718                `),n(),e(61,`
719            `),n(),e(62,`
720            `),t(63,"div",16),e(64,`
721                `),t(65,"div",17),e(66,`
722                    `),t(67,"div",10),e(68,`
723                        `),t(69,"label",18),e(70,"Application Date From"),n(),e(71,`
724                        `),t(72,"p-datepicker",19),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.filters.applicationDateFrom,l)||(c.financialAidService.filters.applicationDateFrom=l),x(l)}),v("onBlur",function(l){u(i);let c=s();return x(c.formatDate(l,"applicationDateFrom"))}),e(73,`
725                        `),n(),e(74,`
726                    `),n(),e(75,`
727                `),n(),e(76,`
728                `),t(77,"div",17),e(78,`
729                    `),t(79,"div",10),e(80,`
730                        `),t(81,"label",20),e(82,"Application Date To"),n(),e(83,`
731                        `),t(84,"p-datepicker",21),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.filters.applicationDateTo,l)||(c.financialAidService.filters.applicationDateTo=l),x(l)}),v("onBlur",function(l){u(i);let c=s();return x(c.formatDate(l,"applicationDateTo"))}),e(85,`
732                        `),n(),e(86,`
733                    `),n(),e(87,`
734                `),n(),e(88,`
735            `),n(),e(89,`
736        `),U(),e(90,`
737    `),n(),e(91,`
738    `),t(92,"section"),e(93,`
739        `),t(94,"div",22),e(95,`
740            `),p(96,ca,10,9),n(),e(97,`
741    `),n(),e(98,`
742`),n(),e(99,`
743`)}if(a&2){let i=s();r(4),m("showAdvanced",!0),r(6),E("ngModel",i.financialAidService.filters.lastName),r(7),E("ngModel",i.financialAidService.filters.firstName),r(17),E("ngModel",i.financialAidService.filters.email),r(11),pe(j(25,mi)),m("options",i.testUserOptions),E("ngModel",i.financialAidService.filters.testUserOption),r(12),pe(j(26,mi)),m("options",i.statuses),E("ngModel",i.financialAidService.filters.clubUserFinancialAidApplicationStatusID),r(15),pe(j(27,mi)),E("ngModel",i.financialAidService.filters.applicationDateFrom),m("placeholder","MM/DD/YYYY")("showOnFocus",!1)("showIcon",!0),r(12),pe(j(28,mi)),E("ngModel",i.financialAidService.filters.applicationDateTo),m("placeholder","MM/DD/YYYY")("showOnFocus",!1)("showIcon",!0),r(12),_(i.showTable?96:-1)}}var ut=(()=>{let d=class d{constructor(o,l,c){this.financialAidService=o,this.siteDataService=l,this.router=c,this.AriaLabels=Ge,this.totalRecords=0,this.loading=!0,this.showTable=!1,this.testUserOptions=Xe,this.Statuses=te,this.unsubscribe$=new O;let f=this.router.getCurrentNavigation()??this.router.lastSuccessfulNavigation();f?.extras?.state?.searchTerm&&(this.searchTerm=f.extras?.state?.searchTerm)}
743ngOnInit(){this.financialAidService.getClubUserFinancialAidApplicationStatuses().pipe(A(this.unsubscribe$)).subscribe(o=>{this.statuses=o,this.financialAidService.filters&&this.financialAidService.filters.page?this.showTable=!0:this.financialAidService.filters=new Me,this.searchTerm&&(this.financialAidService.filters.lastName=this.searchTerm),this.run(),this.siteDataService.hideSiteLoader()})}run(){this.financialAidService.filters.page=1,this.totalRecords=0,this.showTable?this.search():this.showTable=!0}search(o=null){let l=this.financialAidService.filters;o&&o.sortField&&(l.orderBy=o.sortField+" "+(o.sortOrder===1?"ASC":"DESC"),l.page=o.first/l.rows+1),l.getTotalCount=this.totalRecords===0,this.loading=!0,this.financialAidService.searchClubUserFinancialAidApplications().subscribe(c=>{this.searchResults=c.results,l.getTotalCount&&(this.totalRecords=c.count),this.loading=!1},()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")})}formatDate(o,l){let c=o.target.value;if(c&&/Invalid|NaN/.test(new Date(c).toString())){c=c.replace(/\D/g,"");let f=`${c.substring(0,2)}/${c.substring(2,4)}/${c.substring(4,8)}`;c&&!/Invalid|NaN/.test(new Date(f).toString())&&(l==="applicationDateFrom"?this.financialAidService.filters.applicationDateFrom=new Date(f):l==="applicationDateTo"&&(this.financialAidService.filters.applicationDateTo=new Date(f)))}}resetFilters(){this.financialAidService.filters=new Me(this.financialAidService.filters.orderBy)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(b(M),b(N),b(le))},d.\u0275cmp=P({type:d,selectors:[["app-financial-aid-search"]],standalone:!1,decls:1,vars:1,consts:[["role","main",3,"keydown.enter"],[3,"adminFilterReset","adminFilterSearch","showAdvanced"],["primary",""],[1,"col","pr-0"],["type","text","id","last","pInputText","","placeholder","Last Name",1,"full-width",3,"ngModelChange","ngModel"],["for","search",1,"sr-only"],["type","text","id","first","pInputText","","placeholder","First Name",1,"full-width",3,"ngModelChange","ngModel"],["advanced",""],[1,"row","align-bottom"],[1,"col-md-4"],[1,"form-group"],["type","text","placeholder","User Email",3,"ngModelChange","ngModel"],["for","testUserOption"],["inputId","testUserOption","appendTo","body",3,"ngModelChange","options","ngModel"],["for","clubUserFinancialAidApplicationStatusID"],["inputId","clubUserFinancialAidApplicationStatusID","appendTo","body",3,"ngModelChange","options","ngModel"],[1,"row"],[1,"col-md-3"],["for","applicationDateFrom"],["inputId","applicationDateFrom","dateFormat","mm/dd/yy","appendTo","body",3,"ngModelChange","onBlur","ngModel","placeholder","showOnFocus","showIcon"],["for","applicationDateTo"],["inputId","applicationDateTo","dateFormat","mm/dd/yy","appendTo","body",3,"ngModelChange","onBlur","ngModel","placeholder","showOnFocus","showIcon"],[1,"report-table","table-responsive"],["sortField","applicationDate",1,"table","table-striped","table-sm",3,"onLazyLoad","columns","value","lazy","paginator","alwaysShowPaginator","totalRecords","rows","sortOrder","loading"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[3,"pSortableColumn"],[3,"field"],[3,"routerLink"],[3,"status","text"],[2,"text-align","left"]],template:function(l,c){l&1&&p(0,sa,100,29),l&2&&_(c.financialAidService.filters?0:-1)},dependencies:[he,ae,oe,re,Fe,Se,ai,ei,ii,ti,Gi,Je,Ae],encapsulation:2});let a=d;return a})();var _i=class{};function ma(a,d){a&1&&(e(0,`
744          `),C(1,"app-dynamic-form-field",10),e(2,`
745        `))}function pa(a,d){a&1&&(e(0,`
746          `),C(1,"hr",7),e(2,`
747          `),t(3,"h4"),e(4,`
748            Dependents Section Settings
749          `),n(),e(5,`
750          `),C(6,"app-dynamic-form-field",11),e(7,`
751          `),C(8,"app-dynamic-form-field",12),e(9,`
752          `),C(10,"hr",7),e(11,`
753          `),t(12,"h4"),e(13,`
754            Required Documents Section Settings
755          `),n(),e(14,`
756          `),C(15,"app-dynamic-form-field",13),e(16,`
757          `),C(17,"app-dynamic-form-field",14),e(18,`
758          `),C(19,"hr",7),e(20,`
759          `),t(21,"h4"),e(22,`
760            Requested Amount Section Settings
761          `),n(),e(23,`
762          `),C(24,"app-dynamic-form-field",15),e(25,`
763        `))}function _a(a,d){if(a&1){let i=h();e(0,`
764      `),t(1,"app-dynamic-form",1),v("onSubmit",function(l){u(i);let c=s(2);return x(c.save(l))}),e(2,`
765        `),C(3,"app-dynamic-form-field",2),e(4,`
766        `),C(5,"app-dynamic-form-field",3),e(6,`
767        `),C(7,"app-dynamic-form-field",4),e(8,`
768        `),p(9,ma,3,0),C(10,"app-dynamic-form-field",5),e(11,`
769        `),C(12,"app-dynamic-form-field",6),e(13,`
770        `),p(14,pa,26,0),C(15,"hr",7),e(16,`
771        `),t(17,"h4"),e(18,`
772          Review Settings
773        `),n(),e(19,`
774        `),C(20,"app-dynamic-form-field",8),e(21,`
775        `),C(22,"app-dynamic-form-field",9),e(23,`
776      `),n(),e(24,`
777    `)}if(a&2){let i=s(2);r(),m("fields",i.fields)("entity",i.settings)("horizontalForm",!0)("contentFieldsMode",!0)("showSaveAndAddButton",!1)("showCancelButton",!1)("buttonsPosition","left"),r(4),m("datepickerPanelClass","datepicker-hide-year"),r(2),m("datepickerPanelClass","datepicker-hide-year"),r(2),_(i.newExperience?-1:9),r(5),_(i.newExperience?-1:14)}}function ua(a,d){if(a&1&&(e(0,`
778    `),p(1,_a,25,11)),a&2){let i=s();r(),_(i.fields?1:-1)}}function xa(a,d){a&1&&(e(0,`
779    `),C(1,"app-skeleton-template",16),e(2,`
780  `))}var xt=(()=>{let d=class d{constructor(o,l,c){this.siteDataService=o,this.financialAidService=l,this.formService=c,this.unsubscribe$=new O,this.loading=!0,this.newExperience
780=!1}ngOnInit(){document.body.className+=" finaid-settings-wrapper",this.siteDataService.hideSiteLoader(),this.siteDataService.getClubSettings().pipe(A(this.unsubscribe$)).subscribe({next:o=>{this.newExperience=o?.clubOptions?.find(l=>l.optionID===be.ENABLE_NEW_FINANCIAL_AID_EXPERIENCE)?.boolValue??!1},error:()=>{}}),Ve({metadata:this.financialAidService.getClubFinancialAidSettingsMetadata(),settings:this.financialAidService.getClubFinancialAidSettings()}).pipe(A(this.unsubscribe$)).subscribe({next:o=>{this.fields=o.metadata.fields,this.fields.filter(l=>l.controlName==="windowStartDate"||l.controlName==="windowEndDate").forEach(l=>{l.minDate=new Date(l.minDate),l.maxDate=new Date(l.maxDate),l.yearRange="9999:9999"}),this.settings=o.settings||new _i,this.settings.windowStartDate&&(this.settings.windowStartDate=new Date(this.settings.windowStartDate)),this.settings.windowEndDate&&(this.settings.windowEndDate=new Date(this.settings.windowEndDate)),this.loading=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem loading financial aid settings")}})}save(o){this.settings.clubFinancialAidSettingsID&&(o.clubFinancialAidSettingsID=this.settings.clubFinancialAidSettingsID),o.windowStartDate&&!o.windowEndDate||!o.windowStartDate&&o.windowEndDate?(this.formService.showFormErrorMessage("Please specify Start Date and End Date when defining an Application Window"),this.formService.hideFormLoader()):this.financialAidService.saveClubFinancialAidSettings(o).pipe(A(this.unsubscribe$)).subscribe({next:l=>{l?this.settings=l:this.settings=o,this.siteDataService.clubFinancialAidSettingsUpdated(this.settings),this.siteDataService.showSiteSuccessAlert("Financial aid settings saved successfully"),this.formService.hideFormLoader()},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem saving financial aid settings"),this.formService.hideFormLoader()}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(b(N),b(M),b(Y))},d.\u0275cmp=P({type:d,selectors:[["app-financial-aid-settings"]],standalone:!1,decls:4,vars:1,consts:[[1,"finaid-settings-wrapper"],[3,"onSubmit","fields","entity","horizontalForm","contentFieldsMode","showSaveAndAddButton","showCancelButton","buttonsPosition"],["fieldName","enabled"],["fieldName","windowStartDate",3,"datepickerPanelClass"],["fieldName","windowEndDate",3,"datepickerPanelClass"],["fieldName","financialAidPageText"],["fieldName","applicantConfirmationEmailText"],[1,"form-section"],["fieldName","programTypeID"],["fieldName","defaultAidToFixedAmount"],["fieldName","instructionText"],["fieldName","dependentsTitleText"],["fieldName","dependentsDescriptionText"],["fieldName","requiredDocumentsTitleText"],["fieldName","requiredDocumentsDescriptionText"],["fieldName","enableRequestedAmountField"],["skeletonType","form"]],template:function(l,c){l&1&&(t(0,"section",0),e(1,`
781  `),p(2,ua,2,1)(3,xa,3,0),n()),l&2&&(r(2),_(c.loading?3:2))},dependencies:[De,q,ni],encapsulation:2});let a=d;return a})();var fa=()=>({exact:!0});function Ca(a,d){a&1&&(e(0,`
782    `),t(1,"ul",2),e(2,`
783        `),t(3,"li",3),e(4,`
784            `),t(5,"a",4),e(6,"Overview"),n(),e(7,`
785        `),n(),e(8,`
786        `),t(9,"li",5),e(10,`
787            `),t(11,"a",6),e(12,"Applicant Queue"),n(),e(13,`
788        `),n(),e(14,`
789        `),t(15,"li",5),e(16,`
790            `),t(17,"a",7),e(18,"Application Settings"),n(),e(19,`
791        `),n(),e(20,`
792        `),t(21,"li",5),e(22,`
793            `),t(23,"a",8),e(24,"Individual Applications"),n(),e(25,`
794        `),n(),e(26,`
795    `),n(),e(27,`
796    `)),a&2&&(r(3),m("routerLinkActiveOptions",j(1,fa)))}var ft=(()=>{let d=class d{constructor(o){this.siteDataService=o,this.newExperience=!1,this.unsubscribe$=new O}ngOnInit(){this.siteDataService.getClubSettings().pipe(A(this.unsubscribe$)).subscribe(o=>{this.newExperience=o?.clubOptions?.find(l=>l.optionID===be.ENABLE_NEW_FINANCIAL_AID_EXPERIENCE)?.boolValue??!1})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(b(N))},d.\u0275cmp=P({type:d,selectors:[["ng-component"]],standalone:!1,decls:8,vars:1,consts:[["role","main"],["pageTitle","Financial Aid"],["role","tablist",1,"tab-nav","no-bullets","inline-list"],["routerLinkActive","active",1,"nav-item",3,"routerLinkActiveOptions"],["routerLink","/admin/financial-aid/overview","role","tab",1,"nav-link"],["routerLinkActive","active",1,"nav-item"],["routerLink","/admin/financial-aid/applications","role","tab",1,"nav-link"],["routerLink","/admin/financial-aid/settings","role","tab",1,"nav-link"],["routerLink","/admin/financial-aid/individual-applications","role","tab",1,"nav-link"]],template:function(l,c){l&1&&(t(0,"main",0),e(1,`
797    `),C(2,"app-admin-header",1),e(3,`
798    `),p(4,Ca,28,2),C(5,"router-outlet"),e(6,`
799`),n(),e(7,`
800`)),l&2&&(r(4),_(c.newExperience?4:-1))},dependencies:[$i,re,ji,Ee],encapsulation:2});let a=d;return a})();var va=()=>({width:"100%"});function ha(a,d){if(a&1&&(e(0,`
801                        `),t(1,"th",22),e(2),C(3,"p-sortIcon",23),e(4,`
802                        `),n(),e(5,`
803                        `)),a&2){let i=d.$implicit,o=s(4);r(),m("pSortableColumn",i.field),fe("aria-label",o.AriaLabels.ACTIVATE_SORT),r(),w(`
804                            `,i.header,`
805                            `),r(),m("field",i.field)}}function Sa(a,d){if(a&1&&(e(0,`
806                    `),t(1,"tr"),e(2,`
807                        `),F(3,ha,6,4,null,null,z),n(),e(5,`
808                `)),a&2){let i=s(3);r(3),y(i.columns)}}function ba(a,d){if(a&1){let i=h();e(0,`
809                    `),t(1,"tr"),e(2,`
810                        `),t(3,"td"),e(4,`
811                            `),t(5,"a",24),v("click",function(){let l=u(i).$implicit,c=s(3);return x(c.editWindow(l))}),e(6),n(),e(7,`
812                        `),n(),e(8,`
813                        `),t(9,"td"),e(10),k(11,"date"),n(),e(12,`
814                        `),t(13,"td"),e(14),k(15,"date"),n(),e(16,`
815                    `),n(),e(17,`
816                `)}if(a&2){let i=d.$implicit;r(6),w(`
817                                `,i.applicantName,`
818                            `),r(4),w(`
819                            `,ie(11,3,i.windowStartDate,"MM/dd/yyyy"),`
820                        `),r(4),w(`
821                            `,ie(15,6,i.windowEndDate,"MM/dd/yyyy"),`
822                        `)}}function ga(a,d){if(a&1&&(e(0,`
823                    `),t(1,"tr"),e(2,`
824                        `),t(3,"td",25),e(4,`
825                            The search criteria produced no results.
826                        `),n(),e(5,`
827                    `),n(),e(6,`
828                `)),a&2){let i=d.$implicit;r(3),fe("colspan",i.length+1)}}function wa(a,d){if(a&1){let i=h();e(0,`
829            `),t(1,"p-table",18),v("onLazyLoad",function(l){u(i);let c=s(2);return x(c.search(l))}),e(2,`
830                `),R(3,Sa,6,0,"ng-template",19),e(4,`
831                `),R(5,ba,18,9,"ng-template",20),e(6,`
832                `),R(7,ga,7,1,"ng-template",21),e(8,`
833            `),n(),e(9,`
834            `)}if(a&2){let i=s(2);r(),m("columns",i.columns)("value",i.searchResults)("lazy",!0)("paginator",!0)("alwaysShowPaginator",!1)("totalRecords",i.totalRecords)("rows",100)("sortOrder",-1)("loading",i.loading)}}function Fa(a,d){if(a&1){let i=h();e(0,`
835`),t(1,"section",1),v("keydown.enter",function(){u(i);let l=s();return x(l.run())}),e(2,`
836    `),t(3,"div",2),e(4,`
837        `),t(5,"button",3),v("click",function(){u(i);let l=s();return x(l.addNew())}),e(6,"Add Application"),n(),e(7,`
838    `),n(),e(8,`
839
840    `),t(9,"app-admin-filter",4),v("adminFilterReset",function(){u(i);let l=s();return x(l.resetFilters())})("adminFilterSearch",function(){u(i);let l=s();return x(l.run())}),e(10,`
841        `),B(11,5),e(12,`
842            `),t(13,"div",6),e(14,`
843                `),t(15,"input",7),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.individualWindowFilters.lastName,l)||(c.financialAidService.individualWindowFilters.lastName=l),x(l)}),n(),e(16,`
844                `),C(17,"label",8),e(18,`
845            `),n(),e(19,`
846            `),t(20,"div",6),e(21,`
847                `),t(22,"input",9),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.individualWindowFilters.firstName,l)||(c.financialAidService.individualWindowFilters.firstName=l),x(l)}),n(),e(23,`
848                `),C(24,"label",8),e(25,`
849            `),n(),e(26,`
850        `),U(),e(27,`
851        `),B(28,10),e(29,`
852            `),t(30,"div",11),e(31,`
853                `),t(32,"div",12),e(33,`
854                    `),t(34,"div",13),e(35,`
855                        `),t(36,"label"),e(37,"Email"),n(),e(38,`
856                        `),t(39,"input",14),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.individualWindowFilters.email,l)||(c.financialAidService.individualWindowFilters.email=l),x(l)}),n(),e(40,`
857                    `),n(),e(41,`
858                `),n(),e(42,`
859                `),t(43,"div",12),e(44,`
860                    `),t(45,"div",13),e(46,`
861                        `),t(47,"label",15),e(48,"Test Users"),n(),e(49,`
862                        `),t(50,"p-select",16),I("ngModelChange",function(l){u(i);let c=s();return T(c.financialAidService.individualWindowFilters.testUserOption,l)||(c.financialAidService.individualWindowFilters.testUserOption=l),x(l)}),e(51,`
863                        `),n(),e(52,`
864                    `),n(),e(53,`
865                `),n(),e(54,`
866            `),n(),e(55,`
867        `),U(),e(56,`
868    `),n(),e(57,`
869    `),t(58,"section"),e(59,`
870        `),t(60,"div",17),e(61,`
871            `),p(62,wa,10,9),n(),e(63,`
872    `),n(),e(64,`
873`),n(),e(65,`
874`)}if(a&2){let i=s();r(9),m("showAdvanced",!0),r(6),E("ngModel",i.financialAidService.individualWindowFilters.lastName),r(7),E("ngModel",i.financialAidService.individualWindowFilters.firstName),r(17),E("ngModel",i.financialAidService.individualWindowFilters.email),r(11),pe(j(9,va)),m("options",i.testUserOptions),E("ngModel",i.financialAidService.individualWindowFilters.testUserOption),r(12),_(i.showTable?62:-1)}}function ya(a,d){if(a&1&&(e(0,`
875                                        `),t(1,"app-pill",41),e(2,`
876                                        `),n(),e(3,`
877                                        `)),a&2){let i=d.$implicit;r(),m("text",i.user.firstName+" "+i.user.lastName)}}function Aa(a,d){if(a&1&&(e(0,`
878                                    `),t(1,"div",40),e(2,`
879                                        `),F(3,ya,4,1,null,null,z),n(),e(5,`
880                                    `)),a&2){let i=s().$implicit;r(3),y(i.family.players)}}function Da(a,d){if(a&1&&(e(0,`
881                                `),t(1,"div",37),e(2,`
882                                    `),t(3,"div",38),e(4,`
883                                        `),t(5,"div",39),e(6),n(),e(7,`
884                                    `),n(),e(8,`
885                                    `),p(9,Aa,6,0),n(),e(10,`
886                            `)),a&2){let i=d.$implicit;r(6),ee("",i.user.firstName,`
887                                            `,i.user.lastName,`
888                                        `),r(3),_(i.family.players.length>0?9:-1)}}function Ea(a,d){a&1&&C(0,"i",36)}function Ta(a,d){if(a&1){let i=h();e(0,`
889    `),t(1,"div",26),e(2,`
890        `),t(3,"div",27),e(4,`
891            `),C(5,"i",28),e(6,`
892        `),n(),e(7,`
893        `),t(8,"div",29),e(9,`
894            `),t(10,"div",30),e(11,"Find an existing member"),n(),e(12,`
895            `),t(13,"div",31),e(14,`
896                `),t(15,"p"),e(16,"Enter at least the first two characters of member's Last Name to get results."),n(),e(17,`
897                `),t(18,"label",32),e(19,"Member Last Name"),n(),e(20,`
898                `),t(21,"div"),e(22,`
899                    `),t(23,"span",33),e(24,`
900                        `),t(25,"p-autoComplete",34),v("completeMethod",function(l){u(i);let c=s();return x(c.searchUsers(l))})("onSelect",function(l){u(i);let c=s();return x(c.selectMember(l))}),e(26,`
901                            `),R(27,Da,11,3,"ng-template",35),e(28,`
902                        `),n(),e(29,`
903                        `),p(30,Ea,1,0,"i",36),n(),e(31,`
904                `),n(),e(32,`
905            `),n(),e(33,`
906        `),n(),e(34,`
907    `),n(),e(35,`
908    `)}if(a&2){let i=s();r(25),m("suggestions",i.userList)("showEmptyMessage",!0)("emptyMessage","No members found")("forceSelection",!0)("delay",1e3),r(5),_(i.searching?-1:30)}}function Ia(a,d){if(a&1){let i=h();e(0,`
909    `),t(1,"app-dynamic-form",42),v("onDelete",function(){u(i);let l=s(2);return x(l.deleteWindow())})("onCancel",function(){u(i);let l=s(2);return l.createWindowModal=!1,x(l.showAddModal=!1)})("onSubmit",function(l){u(i);let c=s(2);return x(c.save(l))}),e(2,`
910        `),t(3,"app-dynamic-form-field",43),e(4,`
911        `),n(),e(5,`
912        `),t(6,"app-dynamic-form-field",44),e(7,`
913        `),n(),e(8,`
914        `),t(9,"app-dynamic-form-field",45),e(10,`
915        `),n(),e(11,`
916    `),n(),e(12,`
917    `)}if(a&2){let i=s(2);r(),m("fields",i.fields)("contentFieldsMode",!0)("entity",i.window)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("buttonsPosition","spread")("showDeleteButton",!!i.window.clubUserFinancialAidApplicationWindowID)("modalContent",!0)}}function Ma(a,d){if(a&1&&(e(0,`
918    `),p(1,Ia,13,9)),a&2){let i=s();r(),_(i.fields?1:-1)}}function ka(a,d){if(a&1){let i=h();e(0,`
919        `),t(1,"app-dialog-footer"),e(2,`
920            `),B(3,47),e(4,`
921                `),t(5,"button",48),v("click",function(){u(i);let l=s(2);return x(l.showAddModal=!1)}),e(6,"Cancel"),n(),e(7,`
922            `),U(),e(8,`
923        `),n(),e(9,`
924    `)}}function Va(a,d){a&1&&(e(0,`
925    `),R(1,ka,10,0,"ng-template",46),e(2,`
926    `))}var vt=(()=>{let d=class d{constructor(o,l,c,f){this.financialAidService=o,this.siteDataService=l,this.dynamicFormService=c,this.userService=f,this.AriaLabels=Ge,this.totalRecords=0,this.loading=!0,this.showTable=!1,this.searching=!1,this.columns=[{field:"applicantName",header:"Applicant Name"},{field:"windowStartDate",header:"Start Date"},{field:"windowEndDate",header:"End Date"}],this.testUserOptions=Xe,this.showAddModal=!1,this.createWindowModal=!1,this.unsubscribe$=new O}
926ngOnInit(){this.financialAidService.individualWindowFilters&&this.financialAidService.individualWindowFilters.page?this.showTable=!0:this.financialAidService.individualWindowFilters=new Me,this.run(),this.siteDataService.hideSiteLoader()}run(){this.financialAidService.individualWindowFilters.page=1,this.totalRecords=0,this.showTable?this.search():this.showTable=!0}search(o=null){let l=this.financialAidService.individualWindowFilters;o&&o.sortField&&(l.orderBy=o.sortField+" "+(o.sortOrder===1?"ASC":"DESC"),l.page=o.first/l.rows+1),l.getTotalCount=this.totalRecords===0,this.loading=!0,this.financialAidService.searchClubUserFinancialAidApplicationWindows().subscribe({next:c=>{this.searchResults=c.results,l.getTotalCount&&(this.totalRecords=c.count),this.loading=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}resetFilters(){this.financialAidService.individualWindowFilters=new Me(this.financialAidService.individualWindowFilters.orderBy)}addNew(){this.showAddModal=!0}selectMember(o){this.selectedUser=o instanceof Yi?o:o?.value,this.selectedUser&&(this.fields?Ci(null):this.financialAidService.getClubUserFinancialAidApplicationWindowMetadata()).subscribe({next:l=>{l&&(this.fields=l.fields),this.window={clubUserID:this.selectedUser.clubUserID,windowStartDate:new Date,windowEndDate:new Date(new Date().setDate(new Date().getDate()+7)),applicantName:`${this.selectedUser.user.firstName} ${this.selectedUser.user.lastName}`},this.createWindowModal=!0},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}save(o){o.clubUserFinancialAidApplicationWindowID=this.window.clubUserFinancialAidApplicationWindowID,o.clubUserID=this.window.clubUserID,this.financialAidService.saveClubUserFinancialAidApplicationWindow(o).subscribe({next:l=>{l&&(this.window.clubUserFinancialAidApplicationWindowID=l),this.run(),this.createWindowModal=!1,this.showAddModal=!1,this.dynamicFormService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Application Window was saved successfully")},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data."),this.dynamicFormService.hideFormLoader()}})}editWindow(o){this.window=o,(this.fields?Ci(null):this.financialAidService.getClubUserFinancialAidApplicationWindowMetadata()).subscribe({next:l=>{l&&(this.fields=l.fields),this.showAddModal=!0,this.createWindowModal=!0},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}deleteWindow(){this.financialAidService.deleteClubUserFinancialAidApplicationWindow(this.window.clubUserFinancialAidApplicationWindowID).subscribe({next:()=>{this.run(),this.createWindowModal=!1,this.showAddModal=!1,this.dynamicFormService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Application Window was deleted successfully")},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem deleting Application Window."),this.dynamicFormService.hideFormLoader()}})}searchUsers(o){o.query.length>1?(this.searching=!0,this.userService.filters=new et,this.userService.filters.lastName=o.query,this.userService.filters.orderBy="lastName ASC",this.userService.filters.page=1,this.userService.filters.getTotalCount=!1,this.userService.getData(!1).subscribe({next:l=>{this.userList=[],l.results.forEach(c=>{let f=this.userList.find(S=>S.clubUserID===c.id);f===void 0&&(f={clubUserID:c.id,user:{firstName:c.firstName,lastName:c.lastName},family:{players:[]}},this.userList.push(f)),c.playerLastName&&f.family.players.push({playerID:c.playerID,user:{firstName:c.playerFirstName,lastName:c.playerLastName}})}),this.searching=!1},error:()=>{this.searching=!1,this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})):this.userList=[]}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(b(M),b(N),b(Y),b(di))},d.\u0275cmp=P({type:d,selectors:[["ng-component"]],standalone:!1,decls:6,vars:9,consts:[["header","Add Individual Application","styleClass","standardWidthDialog",3,"visibleChange","visible","modal","showHeader","draggable","closable"],[1,"mt-3",3,"keydown.enter"],[1,"d-flex","justify-content-end","mb-3"],[1,"btn","btn-primary","btn-icon-plus",3,"click"],[3,"adminFilterReset","adminFilterSearch","showAdvanced"],["primary",""],[1,"col","pr-0"],["type","text","id","last","pInputText","","placeholder","Last Name",1,"full-width",3,"ngModelChange","ngModel"],["for","search",1,"sr-only"],["type","text","id","first","pInputText","","placeholder","First Name",1,"full-width",3,"ngModelChange","ngModel"],["advanced",""],[1,"row","align-bottom"],[1,"col-md-4"],[1,"form-group"],["type","text","placeholder","User Email",3,"ngModelChange","ngModel"],["for","testUserOption"],["inputId","testUserOption","appendTo","body",3,"ngModelChange","options","ngModel"],[1,"report-table","table-responsive"],["sortField","windowStartDate",1,"table","table-striped","table-sm",3,"onLazyLoad","columns","value","lazy","paginator","alwaysShowPaginator","totalRecords","rows","sortOrder","loading"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[3,"pSortableColumn"],[3,"field"],[3,"click"],[2,"text-align","left"],[1,"row","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,"parent-search-results-row"],[1,"mr-5"],[1,"line-height-1"],[1,"parent-search-results-row--players"],[3,"text"],["formID","player-basic-info-form",3,"onDelete","onCancel","onSubmit","fields","contentFieldsMode","entity","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition","showDeleteButton","modalContent"],["fieldName","applicantName","autoComplete","off"],["fieldName","windowStartDate","autoComplete","off"],["fieldName","windowEndDate","autoComplete","off"],["pTemplate","footer"],["slot","secondary"],[1,"btn","btn-secondary",3,"click"]],template:function(l,c){l&1&&(p(0,Fa,66,10),t(1,"p-dialog",0),I("visibleChange",function(S){return T(c.showAddModal,S)||(c.showAddModal=S),S}),e(2,`
927    `),p(3,Ta,36,6),p(4,Ma,2,1),p(5,Va,3,0),n()),l&2&&(_(c.financialAidService.individualWindowFilters?0:-1),r(),E("visible",c.showAddModal),m("modal",!0)("showHeader",!0)("draggable",!1)("closable",!1),r(2),_(c.createWindowModal?-1:3),r(),_(c.createWindowModal?4
927:-1),r(),_(c.createWindowModal?-1:5))},dependencies:[De,q,he,ae,oe,Se,Qi,ai,ye,ei,ii,ti,de,Je,Ki,He],styles:[".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}"]});let a=d;return a})();function Oa(a,d){if(a&1&&(e(0,`
928        `),t(1,"app-dynamic-form-field",2),e(2,`
929        `),n(),e(3,`
930
931        `),t(4,"app-dynamic-form-field",3),e(5,`
932        `),n(),e(6,`
933    `)),a&2){let i=s();r(),m("field",i.titleField)("form",i.sectionForm),r(3),m("field",i.descriptionField)("form",i.sectionForm)("tinySettings",i.descriptionTinySettings)}}function Pa(a,d){if(a&1){let i=h();e(0,`
934        `),t(1,"app-dialog-footer"),e(2,`
935            `),B(3,4),e(4,`
936                `),t(5,"button",5),v("click",function(){u(i);let l=s();return x(l.cancel())}),e(6,"Cancel"),n(),e(7,`
937            `),U(),e(8,`
938            `),B(9,6),e(10,`
939                `),t(11,"button",7),v("click",function(){u(i);let l=s();return x(l.save())}),e(12,"Save and Continue"),n(),e(13,`
940            `),U(),e(14,`
941        `),n(),e(15,`
942    `)}if(a&2){let i=s();r(5),m("disabled",i.saving),r(6),m("disabled",i.saving)}}var ui=(()=>{let d=class d{constructor(o,l,c){this.dynamicFormService=o,this.financialAidService=l,this.siteDataService=c,this.saved=new xe,this.visible=!1,this.saving=!1,this.editingSection=null,this.unsubscribe$=new O}get header(){return this.editingSection?"Edit Section":"Add Custom Section"}open(o){this.editingSection=o??null,this.titleField=M.sectionTitleField(V.CUSTOM,o?.title),this.titleField.label="Section Title",this.descriptionField=M.sectionDescriptionField(V.CUSTOM,o?.description),this.sectionForm=this.dynamicFormService.createFormGroup([this.titleField,this.descriptionField]),this.descriptionTinySettings=Ue(Z({},this.dynamicFormService.tinySettings),{autoresize_min_height:100,autoresize_max_height:300,placeholder:this.descriptionField.placeholder}),this.visible=!0}cancel(){this.visible=!1}save(){if(this.sectionForm.invalid){this.sectionForm.markAllAsTouched();return}let o={title:this.sectionForm.value.title,description:this.sectionForm.value.description};this.saving=!0,this.editingSection?this.financialAidService.updateCustomSection(this.applicationID,this.editingSection.sectionID,o).pipe(A(this.unsubscribe$)).subscribe({next:()=>{this.saving=!1,this.editingSection.title=o.title,this.editingSection.description=o.description,this.visible=!1,this.saved.emit(this.editingSection)},error:l=>{this.saving=!1,this.siteDataService.showSiteErrorAlert(this.errorMessage(l))}}):this.financialAidService.createCustomSection(this.applicationID,o).pipe(A(this.unsubscribe$)).subscribe({next:l=>{this.saving=!1,this.visible=!1,this.saved.emit({sectionID:l,sectionTypeID:V.CUSTOM,sectionTypeName:"CUSTOM",title:o.title,description:o.description,sortOrder:0,isLocked:!1,isEnabled:!0,fields:[]})},error:l=>{this.saving=!1,this.siteDataService.showSiteErrorAlert(this.errorMessage(l))}})}errorMessage(o){return typeof o?.error=="string"&&o.error?o.error:"There was a problem saving the section. Please try again."}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(b(Y),b(M),b(N))},d.\u0275cmp=P({type:d,selectors:[["app-financial-aid-custom-section-modal"]],inputs:{applicationID:"applicationID"},outputs:{saved:"saved"},standalone:!1,decls:6,vars:5,consts:[["footer",""],["styleClass","standardWidthDialog",3,"visibleChange","modal","closable","visible","header"],[3,"field","form"],[3,"field","form","tinySettings"],["slot","secondary"],["type","button",1,"btn","btn-secondary",3,"click","disabled"],["slot","primary"],["type","button",1,"btn","btn-primary",3,"click","disabled"]],template:function(l,c){if(l&1){let f=h();t(0,"p-dialog",1),I("visibleChange",function(D){return u(f),T(c.visible,D)||(c.visible=D),x(D)}),e(1,`
943
944    `),p(2,Oa,7,5),R(3,Pa,16,2,"ng-template",null,0,ze),e(5,`
945
946`),n()}l&2&&(m("modal",!0)("closable",!0),E("visible",c.visible),m("header",c.header),r(2),_(c.visible&&c.sectionForm?2:-1))},dependencies:[q,ye,de],encapsulation:2});let a=d;return a})();function Na(a,d){if(a&1&&(e(0,`
947            `),t(1,"app-dynamic-form-field",3),e(2,`
948            `),n(),e(3,`
949        `)),a&2){let i=s(2);r(),m("field",i.descriptionField)("form",i.fieldForm)}}function Ra(a,d){if(a&1){let i=h();e(0,`
950                        `),t(1,"div",9),e(2,`
951                            `),C(3,"i",10),e(4,`
952                            `),t(5,"input",11),I("ngModelChange",function(l){let c=u(i).$implicit;return T(c.label,l)||(c.label=l),x(l)}),n(),e(6,`
953                            `),t(7,"button",12),v("click",function(){let l=u(i).$index,c=s(3);return x(c.removeOption(l))}),e(8,`
954                                `),C(9,"i",13),e(10,`
955                                `),t(11,"span",6),e(12,"Remove option"),n(),e(13,`
956                            `),n(),e(14,`
957                        `),n(),e(15,`
958                    `)}if(a&2){let i=d.$implicit,o=d.$index,l=s(3);r(),m("cdkDragData",i),r(4),m("placeholder",Oi("Option ",o+1)),E("ngModel",i.label),r(2),m("hidden",l.optionRows.length<=2)}}function Ba(a,d){if(a&1&&(e(0,`
959                    `),t(1,"div",14),e(2),n(),e(3,`
960                `)),a&2){let i=s(3);r(2),g(i.optionsError)}}function Ua(a,d){if(a&1){let i=h();e(0,`
961            `),t(1,"div",4),e(2,`
962                `),t(3,"label"),e(4,`
963                    `),t(5,"span"),e(6,`
964                        `),t(7,"span",5),e(8,"*"),n(),e(9,`
965                        `),t(10,"span",6),e(11,"required"),n(),e(12,`
966                    `),n(),e(13,`
967                    Options
968                `),n(),e(14,`
969                `),t(15,"div",7),v("cdkDropListDropped",function(l){u(i);let c=s(2);return x(c.optionDropped(l))}),e(16,`
970                    `),F(17,Ra,16,5,null,null,z),n(),e(19,`
971                `),t(20,"button",8),v("click",function(){u(i);let l=s(2);return x(l.addOption())}),e(21,`
972                    Add Option
973                `),n(),e(22,`
974                `),p(23,Ba,4,1),n(),e(24,`
975        `)}if(a&2){let i=s(2);r(17),y(i.optionRows),r(6),_(i.optionsError?23:-1)}}function La(a,d){if(a&1&&(e(0,`
976            `),t(1,"app-dynamic-form-field",3),e(2,`
977            `),n(),e(3,`
978        `)),a&2){let i=s(2);r(),m("field",i.dateFormatField)("form",i.fieldForm)}}function Wa(a,d){if(a&1&&(e(0,`
979            `),t(1,"app-dynamic-form-field",3),e(2,`
980            `),n(),e(3,`
981            `),t(4,"app-inline-alert",15),e(5),n(),e(6,`
982        `)),a&2){let i,o=s(2);r(),m("field",o.maxFilesField)("form",o.fieldForm),r(3),m("isInline",!0),r(),w(`
983                Applicants can upload up to `,((i=o.fieldForm.get("maxFiles"))==null?null:i.value)??1,` file(s) (jpg, jpeg, png, gif, or pdf) for this question.
984            `)}}function $a(a,d){if(a&1&&(e(0,`
985        `),t(1,"app-dynamic-form-field",3),e(2,`
986        `),n(),e(3,`
987
988        `),t(4,"app-dynamic-form-field",3),e(5,`
989        `),n(),e(6,`
990
991        `),p(7,Na,4,2),t(8,"app-dynamic-form-field",3),e(9,`
992        `),n(),e(10,`
993
994        `),p(11,Ua,25,1),p(12,La,4,2),p(13,Wa,7,4),t(14,"app-dynamic-form-field",3),e(15,`
995        `),n(),e(16,`
996    `)),a&2){let i=s();r(),m("field",i.labelField)("form",i.fieldForm),r(3),m("field",i.addDescriptionField)("form",i.fieldForm),r(3),_(i.showDescription?7:-1),r(),m("field",i.inputTypeField)("form",i.fieldForm),r(3),_(i.selectedTypeID===i.ClubFinancialAidFieldTypeID.DROPDOWN?11:-1),r(),_(i.selectedTypeID===i.ClubFinancialAidFieldTypeID.DATE?12:-1),r(),_(i.selectedTypeID===i.ClubFinancialAidFieldTypeID.DOCUMENT?13:-1),r(),m("field",i.requiredField)("form",i.fieldForm)}}function ja(a,d){if(a&1){let i=h();e(0,`
997        `),t(1,"app-dialog-footer"),e(2,`
998            `),B(3,16),e(4,`
999                `),t(5,"button",17),v("click",function(){u(i);let l=s();return x(l.cancel())}),e(6,"Cancel"),n(),e(7,`
1000            `),U(),e(8,`
1001            `),B(9,18),e(10,`
1002                `),t(11,"button",19),v("click",function(){u(i);let l=s();return x(l.save())}),e(12,"Save and Continue"),n(),e(13,`
1003            `),U(),e(14,`
1004        `),n(),e(15,`
1005    `)}if(a&2){let i=s();r(5),m("disabled",i.saving),r(6),m("disabled",i.saving)}}var bt=(()=>{let d=class d{constructor(o,l,c){this.dynamicFormService=o,this.financialAidService=l,this.siteDataService=c,this.saved=new xe,this.visible=!1,this.saving=!1,this.editingField=null,this.optionRows=[],this.optionsError="",this.ClubFinancialAidFieldTypeID=H,this.unsubscribe$=new O}get header(){return this.editingField?"Edit Form Field":"Add a Form Field"}get selectedTypeID(){return this.fieldForm?.get("clubFinancialAidFieldTypeID")?.value}get showDescription(){return!!this.fieldForm?.get("addDescription")?.value}open(o,l){this.sectionID=o,this.editingField=l??null,this.optionsError="",this.labelField=new $({controlName:"label",dynamicFormFieldTypeID:W.TEXT,label:"Field Label",placeholder:"e.g. How long have you been a club member?",maxLength:1e3,required:!0,value:l?.label??""}),this.addDescriptionField=new $({controlName:"addDescription",dynamicFormFieldTypeID:W.INPUT_SWITCH,label:"Add Description",value:!!l?.fieldDescription}),this.descriptionField=new $({controlName:"fieldDescription",dynamicFormFieldTypeID:W.TEXT_AREA,label:"Description",placeholder:"Shown to applicants below the question",maxLength:2500,showCharacterCount:!0,value:l?.fieldDescription??""}),this.inputTypeField=new $({controlName:"clubFinancialAidFieldTypeID",dynamicFormFieldTypeID:W.DROPDOWN,label:"Input Type",placeholder:"Select input type",required:!0,options:Ne.map(c=>({label:c.label,value:c.value})),value:l?.clubFinancialAidFieldTypeID??null}),this.dateFormatField=new $({controlName:"dateFormat",dynamicFormFieldTypeID:W.RADIO_GROUP,label:"Date Format",options:[{label:"MM/DD/YYYY",value:_e.MONTH_DAY_YEAR},{label:"YYYY only",value:_e.YEAR}],value:l?.dateFormat??_e.MONTH_DAY_YEAR}),this.maxFilesField=new $({controlName:"maxFiles",dynamicFormFieldTypeID:W.TEXT,dynamicFormFieldTextBoxTypeID:Ze.NUMBER,label:"Max Files",required:!0,validators:[{validatorType:J.MIN,values:[1],message:"Minimum value is 1"},{validatorType:J.MAX,values:[10],message:"Maximum value is 10"}],value:l?.maxFiles??1}),this.requiredField=new $({controlName:"isRequired",dynamicFormFieldTypeID:W.CHECKBOX,label:"Mark field as required",value:l?.isRequired??!1}),this.optionRows=l?.options?.length?[...l.options].sort((c,f)=>c.sortOrder-f.sortOrder).map(c=>({label:c.label})):[{label:""},{label:""}],this.fieldForm=this.dynamicFormService.createFormGroup([this.labelField,this.addDescriptionField,this.descriptionField,this.inputTypeField,this.dateFormatField,this.maxFilesField,this.requiredField]),this.visible=!0}addOption(){this.optionRows.push({label:""})}removeOption(o){this.optionRows.splice(o,1)}optionDropped(o){Te(this.optionRows,o.previousIndex,o.currentIndex)}cancel(){this.visible=!1}
1005save(){if(this.fieldForm.invalid){this.fieldForm.markAllAsTouched();return}let o=this.fieldForm.value,l=o.clubFinancialAidFieldTypeID,c=[];if(l===H.DROPDOWN){let S=this.optionRows.map(D=>D.label?.trim()).filter(D=>!!D);if(S.length<2){this.optionsError="Dropdown fields require at least 2 options.";return}this.optionsError="",c=S.map((D,me)=>({optionID:0,label:D,value:D,sortOrder:me+1}))}let f={label:o.label,fieldDescription:o.addDescription?o.fieldDescription:null,clubFinancialAidFieldTypeID:l,isRequired:!!o.isRequired,dateFormat:l===H.DATE?o.dateFormat:null,maxFiles:l===H.DOCUMENT?o.maxFiles??1:null,options:c};this.saving=!0,this.editingField?this.financialAidService.updateSectionField(this.applicationID,this.sectionID,this.editingField.sectionFieldID,f).pipe(A(this.unsubscribe$)).subscribe({next:()=>{this.saving=!1,this.visible=!1,this.saved.emit({field:this.toFormField(this.editingField.sectionFieldID,f),isNew:!1})},error:S=>{this.saving=!1,this.siteDataService.showSiteErrorAlert(this.errorMessage(S))}}):this.financialAidService.addSectionField(this.applicationID,this.sectionID,f).pipe(A(this.unsubscribe$)).subscribe({next:S=>{this.saving=!1,this.visible=!1,this.saved.emit({field:this.toFormField(S,f),isNew:!0})},error:S=>{this.saving=!1,this.siteDataService.showSiteErrorAlert(this.errorMessage(S))}})}toFormField(o,l){let c=Ne.find(f=>f.value===l.clubFinancialAidFieldTypeID);return{sectionFieldID:o,fieldKey:this.editingField?.fieldKey??null,label:l.label,fieldDescription:l.fieldDescription,clubFinancialAidFieldTypeID:l.clubFinancialAidFieldTypeID,fieldTypeName:c?.typeName,isVisible:this.editingField?.isVisible??!0,isRequired:l.isRequired,maxLength:l.clubFinancialAidFieldTypeID===H.TEXTAREA?2500:l.clubFinancialAidFieldTypeID===H.TEXT?500:null,dateFormat:l.dateFormat,maxFiles:l.maxFiles??1,sortOrder:this.editingField?.sortOrder??0,options:l.options}}errorMessage(o){return typeof o?.error=="string"&&o.error?o.error:"There was a problem saving the field. Please try again."}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(b(Y),b(M),b(N))},d.\u0275cmp=P({type:d,selectors:[["app-financial-aid-field-modal"]],inputs:{applicationID:"applicationID"},outputs:{saved:"saved"},standalone:!1,decls:9,vars:5,consts:[["footer",""],["styleClass","standardWidthDialog",3,"visibleChange","modal","closable","visible","header"],[1,"fin-aid-field-modal"],[3,"field","form"],[1,"form-group"],["aria-hidden","true",1,"required-asterisk"],[1,"sr-only"],["cdkDropList","",3,"cdkDropListDropped"],["type","button",1,"btn","btn-naked","btn-icon-plus","m-0","p-0",3,"click"],["cdkDrag","",1,"d-flex","align-items-center","mb-2",3,"cdkDragData"],["cdkDragHandle","",1,"fal","fa-up-down-left-right","mr-2"],["type","text","maxlength","250",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["type","button",1,"btn","btn-naked","btn-sm","text-grey","ml-2",3,"click","hidden"],[1,"fal","fa-trash-alt"],[1,"text-danger","text-small","mt-1"],[1,"mb-3",3,"isInline"],["slot","secondary"],["type","button",1,"btn","btn-secondary",3,"click","disabled"],["slot","primary"],["type","button",1,"btn","btn-primary",3,"click","disabled"]],template:function(l,c){if(l&1){let f=h();t(0,"p-dialog",1),I("visibleChange",function(D){return u(f),T(c.visible,D)||(c.visible=D),x(D)}),e(1,`
1006
1007    `),t(2,"div",2),e(3,`
1008    `),p(4,$a,17,12),n(),e(5,`
1009
1010    `),R(6,ja,16,2,"ng-template",null,0,ze),e(8,`
1011
1012`),n()}l&2&&(m("modal",!0)("closable",!0),E("visible",c.visible),m("header",c.header),r(4),_(c.visible&&c.fieldForm?4:-1))},dependencies:[q,he,ae,Wi,oe,ce,ye,de,Ie,ri,li],styles:[".fin-aid-field-modal[_ngcontent-%COMP%]{--p-toggleswitch-checked-background: var(--blue-700);--p-toggleswitch-checked-hover-background: var(--blue-800)}"]});let a=d;return a})();var Ha=["sectionMenu"],Qa=["fieldMenu"],Ga=["fieldModal"],Xa=["headerModal"],Di=(a,d)=>d.sectionFieldID;function Ka(a,d){a&1&&(e(0,`
1013                `),t(1,"span",14),e(2,`
1014                    `),C(3,"i",15),e(4,`
1015                    `),C(5,"i",15),e(6,`
1016                `),n(),e(7,`
1017            `))}function Ja(a,d){a&1&&(e(0,`
1018                `),C(1,"i",16),e(2,`
1019            `))}function Za(a,d){if(a&1&&(e(0,`
1020                `),t(1,"app-dynamic-form-field",17),e(2,`
1021                `),n(),e(3,`
1022            `)),a&2){let i=s();r(),m("field",i.titleField)("form",i.sectionForm)("hideLabel",!0)}}function eo(a,d){if(a&1){let i=h();e(0,`
1023                `),t(1,"button",18),v("click",function(l){u(i);let c=s();return x(c.toggleSectionMenu(l))}),e(2,`
1024                    `),C(3,"i",19),e(4,`
1025                    `),t(5,"span",13),e(6,"Section options"),n(),e(7,`
1026                `),n(),e(8,`
1027                `),C(9,"p-menu",20,0),e(11,`
1028            `)}if(a&2){let i=s();r(9),m("model",i.menuItems)("popup",!0)}}function io(a,d){if(a&1&&(e(0,`
1029                `),t(1,"app-dynamic-form-field",23),e(2,`
1030                `),n(),e(3,`
1031            `)),a&2){let i=s(2);r(),m("field",i.descriptionField)("form",i.sectionForm)("tinySettings",i.descriptionTinySettings)}}function to(a,d){if(a&1&&(e(0,`
1032                        `),t(1,"div",25),e(2,`
1033                            `),t(3,"label",26),e(4),n(),e(5,`
1034                            `),t(6,"div",27),e(7),n(),e(8,`
1035                        `),n(),e(9,`
1036                    `)),a&2){let i=d.$implicit,o=s(3);r(4),g(i.label),r(3),g(o.fieldPlaceholder(i.fieldKey))}}function no(a,d){if(a&1&&(e(0,`
1037                `),t(1,"div",24),e(2,`
1038                    `),F(3,to,10,2,null,null,Di),n(),e(5,`
1039            `)),a&2){let i=s(2);r(3),y(i.section.fields)}}function ao(a,d){if(a&1){let i=h();e(0,`
1040                        `),t(1,"div",25),e(2,`
1041                            `),t(3,"label",26),e(4),n(),e(5,`
1042                            `),t(6,"div",27),e(7),n(),e(8,`
1043                            `),t(9,"div",28),e(10,`
1044                                `),t(11,"span",29),e(12,"Required"),n(),e(13,`
1045                                `),t(14,"p-toggleswitch",10),I("ngModelChange",function(l){let c=u(i).$implicit;return T(c.isRequired,l)||(c.isRequired=l),x(l)}),n(),e(15,`
1046                            `),n(),e(16,`
1047                        `),n(),e(17,`
1048                    `)}if(a&2){let i=d.$implicit,o=s(3);r(4),g(i.label),r(3),g(o.fieldPlaceholder(i.fieldKey)),r(7),E("ngModel",i.isRequired),m("disabled",!o.section.isEnabled||o.isViewMode)}}function oo(a,d){if(a&1&&(e(0,`
1049                `),t(1,"div",24),e(2,`
1050                    `),F(3,ao,18,4,null,null,Di),n(),e(5,`
1051            `)),a&2){let i=s(2);r(3),y(i.section.fields)}}function lo(a,d){a&1&&(e(0,`
1052                `),t(1,"div",30),e(2,`
1053                    `),C(3,"i",31),e(4,`Household players & dependents entry (system managed)
1054                `),n(),e(5,`
1055            `))}function ro(a,d){if(a&1&&(e(0,`
1056                    `),C(1,"p",33),k(2,"safeHtml"),e(3,`
1057                `)),a&2){let i=s(3);r(),m("innerHTML",L(2,1,i.section.description),$e)}}function co(a,d){a&1&&(e(0,`
1058                                `),C(1,"i",37),e(2,`
1059                            `))}function so(a,d){if(a&1){let i=h();e(0,`
1060                                    `),t(1,"button",38),v("click",function(l){u(i);let c=s().$implicit,f=s(3);return x(f.toggleFieldMenu(l,c))}),e(2,`
1061                                        `),C(3,"i",19),e(4,`
1062                                        `),t(5,"span",13),e(6,"Field options"),n(),e(7,`
1063                                    `),n(),e(8,`
1064                                `)}}function mo(a,d){if(a&1){let i=h();e(0,`
1065                        `),t(1,"div",34),e(2,`
1066                            `),p(3,co,3,0),t(4,"label",26),e(5),n(),e(6,`
1067                            `),t(7,"span",35),e(8),n(),e(9,`
1068                            `),t(10,"div",36),e(11,`
1069                                `),t(12,"span",8),e(13,"Display"),n(),e(14,`
1070                                `),t(15,"p-toggleswitch",10),I("ngModelChange",function(l){let c=u(i).$implicit;return T(c.isVisible,l)||(c.isVisible=l),x(l)}),n(),e(16,`
1071                                `),p(17,so,9,0),n(),e(18,`
1072                        `),n(),e(19,`
1073                    `)}if(a&2){let i=d.$implicit,o=s(3);r(),m("cdkDragData",i)("cdkDragDisabled",o.isViewMode),r(2),_(o.section.fields.length>1&&!o.isViewMode?3:-1),r(2),g(i.label),r(3),g(o.fieldTypeLabel(i)),r(7),E("ngModel",i.isVisible),m("disabled",!o.section.isEnabled||o.isViewMode),r(2),_(o.isViewMode?-1:17)}}function po(a,d){a&1&&(e(0,`
1074                        `),t(1,"p",39),e(2,"No form fields yet. Add your first field below."),n(),e(3,`
1075                    `))}function _o(a,d){if(a&1){let i=h();e(0,`
1076                    `),C(1,"p-menu",20,1),e(3,`
1077                    `),t(4,"button",40),v("click",function(){u(i);let l=s(3);return x(l.addField())}),e(5,`
1078                        Add a Form Field
1079                    `),n(),e(6,`
1080                `)}if(a&2){let i=s(3);r(),m("model",i.fieldMenuItems)("popup",!0)}}function uo(a,d){if(a&1){let i=h();e(0,`
1081                `),p(1,ro,4,3),t(2,"div",32),v("cdkDropListDropped",function(l){u(i);let c=s(2);return x(c.fieldDropped(l))}),e(3,`
1082                    `),F(4,mo,20,8,null,null,Di,!1,po,4,0),n(),e(7,`
1083                `),p(8,_o,7,2)}if(a&2){let i=s(2);r(),_(i.section.description?1:-1),r(3),y(i.section.fields),r(4),_(i.isViewMode?-1:8)}}function xo(a,d){if(a&1&&(e(0,`
1084        `),t(1,"div",21),e(2,`
1085
1086            `),t(3,"span",22),e(4),n(),e(5,`
1087
1088            `),e(6,`
1089            `),p(7,io,4,3),p(8,no,6,0),p(9,oo,6,0),p(10,lo,6,0),p(11,uo,9,3),n(),e(12,`
1090    `)),a&2){let i=s();r(4),g(i.sectionTypeLabel),r(3),_(i.isDescriptionEditable&&i.descriptionField&&i.sectionForm?7:-1),r(),_(i.section.fields!=null&&i.section.fields.length&&!i.isPlayerSection&&!i.isCustomSection?8:-1),r(),_(i.isPlayerSection&&(i.section.fields!=null&&i.section.fields.length)?9:-1),r(),_(i.isHouseholdSection?10:-1),r(),_(i.isCustomSection?11:-1)}}function fo(a,d){if(a&1){let i=h();e(0,`
1091        `),t(1,"app-yes-no-modal",42),v("onYesSelect",function(){u(i);let l=s(2);return x(l.deleteSection())})("onNoSelect",function(){u(i);let l=s(2);return x(l.showDeleteSectionConfirm=!1)}),n(),e(2,`
1092    `)}if(a&2){let i=s(2);r(),m("loading",i.deleting)}}function Co(a,d){if(a&1){let i=h();e(0,`
1093        `),t(1,"app-yes-no-modal",43),v("onYesSelect",function(){u(i);let l=s(2);return x(l.deleteField())})("onNoSelect",function(){u(i);let l=s(2);return x(l.fieldPendingDelete=null)}),n(),e(2,`
1094    `)}if(a&2){let i=s(2);r(),m("loading",i.deleting)}}function vo(a,d){if(a&1){let i=h();e(0,`
1095    `),t(1,"app-financial-aid-field-modal",41,2),v("saved",function(l){u(i);let c=s();return x(c.onFieldSaved(l))}),e(3,`
1096    `),n(),e(4,`
1097
1098    `),t(5,"app-financial-aid-custom-section-modal",41,3),v("saved",function(l){u(i);let c=s();return x(c.onHeaderSaved(l))}),e(7,`
1099    `),n(),e(8,`
1100
1101    `),p(9,fo,3,1),p(10,Co,3,1)}if(a&2){let i=s();r(),m("applicationID",i.applicationID),r(4),m("applicationID",i.applicationID),r(4),_(i.showDeleteSectionConfirm?9:-1),r(),_(i.fieldPendingDelete?10:-1)}}var xi=(()=>{let d=class d{constructor(o,l,c){this.dynamicFormService=o,this.financialAidService=l,this.siteDataService=c,this.isViewMode=!1,this.dragDisabled=!0,this.deleted=new xe,this.collapsed=!1,this.ClubFinancialAidSectionTypeID=V,this.menuItems=[],this.fieldMenuItems=[],this.selectedField=null,this.fieldPendingDelete=null,this.showDeleteSectionConfirm=!1,this.deleting=!1,this.unsubscribe$=new O}
1101ngOnInit(){this.titleField=M.sectionTitleField(this.section.sectionTypeID,this.section.title),this.descriptionField=M.sectionDescriptionField(this.section.sectionTypeID,this.section.description),this.sectionForm=this.dynamicFormService.createFormGroup([this.titleField,this.descriptionField]),this.isViewMode&&this.sectionForm.disable(),this.descriptionTinySettings=Ue(Z({},this.dynamicFormService.tinySettings),{autoresize_min_height:100,autoresize_max_height:300,placeholder:this.descriptionField.placeholder}),this.sectionForm.valueChanges.pipe(A(this.unsubscribe$)).subscribe({next:o=>{this.section.title=o.title,this.section.description=o.description}}),this.menuItems=this.isCustomSection?[{label:"Edit Section Header",icon:"fal fa-pen",command:()=>this.headerModal.open(this.section)},{label:"Delete",icon:"fal fa-trash",command:()=>this.showDeleteSectionConfirm=!0}]:[{label:"Delete",icon:"fal fa-trash",disabled:!0}],this.fieldMenuItems=[{label:"Edit",icon:"fal fa-pen",command:()=>this.fieldModal.open(this.section.sectionID,this.selectedField)},{label:"Delete",icon:"fal fa-trash",command:()=>this.fieldPendingDelete=this.selectedField}]}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}get isDescriptionEditable(){return this.section.sectionTypeID===V.INTRODUCTION||this.section.sectionTypeID===V.PLAYER_INFO||this.section.sectionTypeID===V.HOUSEHOLD_INFO||this.section.sectionTypeID===V.REQUIRED_DOCUMENTS}get isToggleDisabled(){return this.section.sectionTypeID===V.APPLICANT_INFO||this.section.sectionTypeID===V.HOUSEHOLD_INFO}get isPlayerSection(){return this.section.sectionTypeID===V.PLAYER_INFO}get isHouseholdSection(){return this.section.sectionTypeID===V.HOUSEHOLD_INFO}get isCustomSection(){return this.section.sectionTypeID===V.CUSTOM}get sectionTypeLabel(){return this.section.sectionTypeName.replace(/_/g," ").replace(/\w\S*/g,o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase())}fieldTypeLabel(o){return Ne.find(l=>l.value===o.clubFinancialAidFieldTypeID)?.label??o.fieldTypeName}fieldPlaceholder(o){return ci(o)}toggleSectionMenu(o){this.sectionMenu.toggle(o)}toggleFieldMenu(o,l){this.selectedField=l,this.fieldMenu.toggle(o)}addField(){this.fieldModal.open(this.section.sectionID)}onFieldSaved(o){o.isNew?(o.field.sortOrder=Math.max(0,...this.section.fields.map(l=>l.sortOrder))+1,this.section.fields=[...this.section.fields,o.field]):this.section.fields=this.section.fields.map(l=>l.sectionFieldID===o.field.sectionFieldID?o.field:l)}onHeaderSaved(o){this.sectionForm.patchValue({title:o.title,description:o.description},{emitEvent:!1})}fieldDropped(o){Te(this.section.fields,o.previousIndex,o.currentIndex),this.section.fields.forEach((l,c)=>l.sortOrder=c+1)}deleteSection(){this.deleting=!0,this.financialAidService.deleteCustomSection(this.applicationID,this.section.sectionID).pipe(A(this.unsubscribe$)).subscribe({next:()=>{this.deleting=!1,this.showDeleteSectionConfirm=!1,this.deleted.emit(this.section),this.siteDataService.showSiteSuccessAlert("Section deleted.")},error:()=>{this.deleting=!1,this.showDeleteSectionConfirm=!1,this.siteDataService.showSiteErrorAlert("There was a problem deleting the section. Please try again.")}})}deleteField(){let o=this.fieldPendingDelete;this.deleting=!0,this.financialAidService.deleteSectionField(this.applicationID,this.section.sectionID,o.sectionFieldID).pipe(A(this.unsubscribe$)).subscribe({next:()=>{this.deleting=!1,this.fieldPendingDelete=null,this.section.fields=this.section.fields.filter(l=>l.sectionFieldID!==o.sectionFieldID),this.siteDataService.showSiteSuccessAlert("Field deleted.")},error:()=>{this.deleting=!1,this.fieldPendingDelete=null,this.siteDataService.showSiteErrorAlert("There was a problem deleting the field. Please try again.")}})}};d.\u0275fac=function(l){return new(l||d)(b(Y),b(M),b(N))},d.\u0275cmp=P({type:d,selectors:[["app-financial-aid-build-section"]],viewQuery:function(l,c){if(l&1&&Ce(Ha,5)(Qa,5)(Ga,5)(Xa,5),l&2){let f;G(f=X())&&(c.sectionMenu=f.first),G(f=X())&&(c.fieldMenu=f.first),G(f=X())&&(c.fieldModal=f.first),G(f=X())&&(c.headerModal=f.first)}},inputs:{section:"section",applicationID:"applicationID",isViewMode:"isViewMode",dragDisabled:"dragDisabled"},outputs:{deleted:"deleted"},standalone:!1,decls:41,vars:18,consts:[["sectionMenu",""],["fieldMenu",""],["fieldModal",""],["headerModal",""],["cdkDrag","",1,"fin-aid-section","mb-3",3,"cdkDragDisabled","cdkDragData"],[1,"fin-aid-section-header","d-flex","align-items-center","justify-content-between","px-3","py-2"],[1,"d-flex","align-items-center"],[1,"d-flex","align-items-center","mr-3"],[1,"fin-aid-section-toggle-label","mr-2"],["tooltipPosition","top",3,"pTooltip"],[3,"ngModelChange","ngModel","disabled"],["type","button",1,"btn","btn-naked","fin-aid-section-action-btn",3,"click"],[1,"fa","fa-chevron-up","fin-aid-section-chevron"],[1,"sr-only"],["cdkDragHandle","",1,"fin-aid-section-action-btn","mr-2","d-flex","align-items-center"],[1,"fal","fa-ellipsis-v","fa-width-auto","letter-spacing-xl"],[1,"fal","fa-lock","fin-aid-section-lock","mr-2"],["fieldContainerClass","fin-aid-title-field",3,"field","form","hideLabel"],["type","button",1,"btn","btn-naked","fin-aid-section-action-btn","mr-1",3,"click"],[1,"fa-solid","fa-ellipsis"],["appendTo","body",3,"model","popup"],[1,"fin-aid-section-body"],[1,"fin-aid-section-type-badge"],[3,"field","form","t
1101inySettings"],[1,"fin-aid-field-list"],[1,"fin-aid-field-row","d-flex","align-items-center","py-2"],[1,"fin-aid-field-label","mb-0"],["aria-hidden","true",1,"fin-aid-field-preview","form-control"],[1,"d-flex","align-items-center","fin-aid-field-required","ml-3"],[1,"fin-aid-field-required-label","mr-2"],[1,"fin-aid-system-placeholder"],[1,"fal","fa-home","mr-2"],["cdkDropList","",1,"fin-aid-field-list",3,"cdkDropListDropped"],[1,"text-muted","mb-3",3,"innerHTML"],["cdkDrag","",1,"fin-aid-field-row","d-flex","align-items-center","py-2",3,"cdkDragData","cdkDragDisabled"],[1,"fin-aid-section-type-badge","ml-2"],[1,"d-flex","align-items-center","ml-auto"],["cdkDragHandle","",1,"fal","fa-up-down-left-right","mr-2"],["type","button",1,"btn","btn-naked","fin-aid-section-action-btn","ml-2",3,"click"],[1,"text-muted","text-small","mb-2"],["type","button",1,"btn","btn-naked","btn-icon-plus","m-0","p-0","mt-2",3,"click"],[3,"saved","applicationID"],["headerText","Delete Section","modalText","Are you sure you want to delete this section and all of its fields?","yesButtonText","Yes, Delete","yesButtonLoadingText","Deleting...","noButtonText","No, Cancel",3,"onYesSelect","onNoSelect","loading"],["headerText","Delete Field","modalText","Are you sure you want to delete this field?","yesButtonText","Yes, Delete","yesButtonLoadingText","Deleting...","noButtonText","No, Cancel",3,"onYesSelect","onNoSelect","loading"]],template:function(l,c){if(l&1&&(t(0,"div",4),e(1,`
1102
1103    `),e(2,`
1104    `),t(3,"div",5),e(4,`
1105
1106        `),e(5,`
1107        `),t(6,"div",6),e(7,`
1108            `),p(8,Ka,8,0),p(9,Ja,3,0),p(10,Za,4,3),n(),e(11,`
1109
1110        `),e(12,`
1111        `),t(13,"div",6),e(14,`
1112            `),t(15,"div",7),e(16,`
1113                `),t(17,"span",8),e(18,"Display"),n(),e(19,`
1114                `),t(20,"span",9),e(21,`
1115                    `),t(22,"p-toggleswitch",10),I("ngModelChange",function(S){return T(c.section.isEnabled,S)||(c.section.isEnabled=S),S}),n(),e(23,`
1116                `),n(),e(24,`
1117            `),n(),e(25,`
1118
1119            `),p(26,eo,12,2),t(27,"button",11),v("click",function(){return c.collapsed=!c.collapsed}),e(28,`
1120                `),C(29,"i",12),e(30,`
1121                `),t(31,"span",13),e(32),n(),e(33,`
1122            `),n(),e(34,`
1123        `),n(),e(35,`
1124
1125    `),n(),e(36,`
1126
1127    `),e(37,`
1128    `),p(38,xo,13,6),n(),e(39,`
1129
1130`),p(40,vo,11,4)),l&2){let f;K("fin-aid-section-disabled",!c.section.isEnabled)("fin-aid-section-error",(c.sectionForm==null||(f=c.sectionForm.get("title"))==null?null:f.invalid)&&(c.sectionForm==null||(f=c.sectionForm.get("title"))==null?null:f.touched)),m("cdkDragDisabled",c.dragDisabled)("cdkDragData",c.section),r(8),_(c.dragDisabled?-1:8),r(),_(c.section.isLocked?9:-1),r(),_(c.titleField&&c.sectionForm?10:-1),r(10),m("pTooltip",c.isToggleDisabled?"This section is required and cannot be disabled":null),r(2),E("ngModel",c.section.isEnabled),m("disabled",c.isToggleDisabled||c.isViewMode),r(4),_(c.isViewMode?-1:26),r(3),K("fin-aid-section-chevron-collapsed",c.collapsed),r(3),w("",c.collapsed?"Expand":"Collapse"," section"),r(6),_(c.collapsed?-1:38),r(2),_(c.isCustomSection?40:-1)}},dependencies:[q,ae,oe,oi,we,Hi,Xi,Ie,ri,li,ui,bt,Ke],styles:[".fin-aid-section[_ngcontent-%COMP%]{border:var(--border);border-radius:var(--border-radius);overflow:hidden}.fin-aid-section.fin-aid-section-disabled[_ngcontent-%COMP%]{opacity:.55}.fin-aid-section.fin-aid-section-error[_ngcontent-%COMP%]{border-color:var(--red-500);border-width:3px}.fin-aid-section-header[_ngcontent-%COMP%]{background-color:var(--blue-1000);color:var(--color-white);min-height:3rem}.fin-aid-section-lock[_ngcontent-%COMP%]{color:#fff9;font-size:.875rem}.fin-aid-title-field[_ngcontent-%COMP%]{margin-bottom:0}.fin-aid-title-field[_ngcontent-%COMP%]     input[type=text]{background:transparent;border:none;border-bottom:1px solid rgba(255,255,255,.4);border-radius:0;box-shadow:none;color:var(--color-white);font-weight:700;font-size:.9375rem;letter-spacing:.04em;outline:none;padding:.125rem 0;min-width:12rem}.fin-aid-title-field[_ngcontent-%COMP%]     input[type=text]::placeholder{color:#ffffff73;font-weight:400;font-style:italic}.fin-aid-title-field[_ngcontent-%COMP%]     input[type=text]:focus{background:transparent;color:var(--color-white);border-bottom-color:var(--color-white);box-shadow:none;caret-color:var(--color-white)}.fin-aid-title-field[_ngcontent-%COMP%]     input[type=text]:-webkit-autofill, .fin-aid-title-field[_ngcontent-%COMP%]     input[type=text]:-webkit-autofill:hover, .fin-aid-title-field[_ngcontent-%COMP%]     input[type=text]:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px var(--blue-1000) inset;-webkit-text-fill-color:var(--color-white)}.fin-aid-title-field.form-error[_ngcontent-%COMP%]     input[type=text]{border-bottom-color:var(--red-600)}.fin-aid-section-type-badge[_ngcontent-%COMP%]{display:inline-block;background:var(--grey-100);color:var(--grey-800);border:1px solid var(--grey-300);border-radius:var(--border-radius);font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:.125rem .5rem;margin-bottom:.75rem;white-space:nowrap}.fin-aid-section-toggle-label[_ngcontent-%COMP%]{color:#ffffffd9;font-size:.8125rem;text-transform:uppercase;letter-spacing:.03em}.fin-aid-section-action-btn[_ngcontent-%COMP%]{color:#ffffffbf;padding:.25rem .5rem}.fin-aid-section-action-btn[_ngcontent-%COMP%]:hover{color:var(--color-white)}.fin-aid-section-chevron[_ngcontent-%COMP%]{transition:transform .2s ease}.fin-aid-section-chevron.fin-aid-section-chevron-collapsed[_ngcontent-%COMP%]{transform:rotate(180deg)}.fin-aid-section-body[_ngcontent-%COMP%]{padding:1.25rem;background:var(--color-white)}.fin-aid-field-list[_ngcontent-%COMP%]{border:var(--border);border-radius:var(--border-radius);overflow:hidden}.fin-aid-field-list[_ngcontent-%COMP%]   .fin-aid-field-row[_ngcontent-%COMP%]{border-bottom:var(--border);gap:1rem;padding-left:.75rem;padding-right:.75rem}.fin-aid-field-list[_ngcontent-%COMP%]   .fin-aid-field-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.fin-aid-field-row[_ngcontent-%COMP%]   .fin-aid-section-action-btn[_ngcontent-%COMP%]{color:var(--grey-600)}.fin-aid-field-row[_ngcontent-%COMP%]   .fin-aid-section-action-btn[_ngcontent-%COMP%]:hover{color:var(--grey-900)}.fin-aid-field-row[_ngcontent-%COMP%]   .fin-aid-section-toggle-label[_ngcontent-%COMP%]{color:var(--grey-600)}.fin-aid-field-label[_ngcontent-%COMP%]{flex:0 0 12rem;font-size:.9375rem;color:var(--base-text)}.fin-aid-field-preview[_ngcontent-%COMP%]{flex:1;background:var(--color-white);pointer-events:none;height:2.25rem;border-color:var(--grey-300);color:var(--grey-600);font-style:italic}.fin-aid-field-required-label[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--grey-600);white-space:nowrap}.fin-aid-system-placeholder[_ngcontent-%COMP%]{padding:1rem;border:1px dashed var(--grey-400);border-radius:var(--border-radius);color:var(--grey-600);font-style:italic;font-size:.9375rem}.fin-aid-section-header[_ngcontent-%COMP%], .fin-aid-field-required[_ngcontent-%COMP%], .fin-aid-field-row[_ngcontent-%COMP%]{--p-toggleswitch-checked-background: var(--blue-700);--p-toggleswitch-checked-hover-background: var(--blue-800)}"]});let a=d;return a})();var So=["customSectionModal"],bo=(a,d)=>d.label,fi=(a,d)=>d.sectionID,Ei=(a,d)=>d.sectionFieldID;function go(a,d){a&1&&(e(0,`
1131    `),C(1,"app-loader"),e(2,`
1132`))}function wo(a,d){a&1&&(e(0,`
1133    `),t(1,"app-inline-alert",3),e(2,`
1134        There was a problem loading the application form.
1135    `),n(),e(3,`
1136`)),a&2&&(r(),m("isInline",!0))}function Fo(a,d){a&1&&(e(0,`
1137                `),C(1,"div",9),e(2,`
1138            `))}function yo(a,d){if(a&1){let i=h();e(0,`
1139            `),t(1,"div",6),v("click",function(){let l=u(i).$index,c=s(2);return x(c.goToStep(l))}),e(2,`
1140                `),t(3,"div",7),e(4),n(),e(5,`
1141                `),t(6,"span",8),e(7),n(),e(8,`
1142            `),n(),e(9,`
1143            `),p(10,Fo,3,0)}if(a&2){let i=d.$implicit,o=d.$index,l=d.$count,c=s(2);r(),K("build-stepper-disabled",i.disabled)("build-stepper-clickable",o<c.activeStep&&!i.disabled),r(2),K("build-stepper-active",c.activeStep===o),r(),w(`
1144                    `,o+1,`
1145                `),r(2),K("build-stepper-active",c.activeStep===o),r(),w(`
1146                    `,i.label,`
1147                `),r(3),_(o!==l-1?10:-1)}}function Ao(a,d){a&1&&(e(0,`
1148            `),t(1,"div",11),e(2,`
1149                `),t(3,"app-inline-alert",12),e(4,`
1150                    This form is currently live. You are viewing it in read-only mode.
1151                    `),t(5,"a",13),e(6,"Back to Overview"),n(),e(7,`
1152                `),n(),e(8,`
1153            `),n(),e(9,`
1154        `)),a&2&&(r(3),m("isInline",!0))}function Do(a,d){a&1&&(e(0,`
1155            `),t(1,"div",11),e(2,`
1156                `),t(3,"app-inline-alert",14),e(4,`
1157                    You are editing a `),t(5,"strong"),e(6,"live"),n(),e(7,` form. Changes are applied immediately.
1158                    New applicants will see your changes right away. Applicants who have already submitted
1159                    or have an application in progress will `),t(8,"strong"),e(9,"not"),n(),e(10,` be affected.
1160                `),n(),e(11,`
1161            `),n(),e(12,`
1162        `)),a&2&&(r(3),m("isInline",!0))}function Eo(a,d){if(a&1){let i=h();e(0,`
1163            `),t(1,"app-financial-aid-build-section",15),v("deleted",function(l){u(i);let c=s(3);return x(c.onSectionDeleted(l))}),e(2,`
1164            `),n(),e(3,`
1165        `)}if(a&2){let i=d.$implicit,o=s(3);r(),m("section",i)("applicationID",o.applicationID)("isViewMode",o.isViewMode)}}function To(a,d){if(a&1){let i=h();e(0,`
1166                `),t(1,"app-financial-aid-build-section",16),v("deleted",function(l){u(i);let c=s(3);return x(c.onSectionDeleted(l))}),e(2,`
1167                `),n(),e(3,`
1168            `)}if(a&2){let i=d.$implicit,o=s(3);r(),m("section",i)("applicationID",o.applicationID)("isViewMode",o.isViewMode)("dragDisabled",o.isViewMode||o.customSections.length<=1)}}function Io(a,d){if(a&1){let i=h();e(0,`
1169            `),t(1,"div",17),e(2,`
1170                `),t(3,"button",18),v("click",function(){u(i);let l=s(3);return x(l.addCustomSection())}),e(4,`
1171                    `),C(5,"i",19),e(6,`Add Custom Section
1172                `),n(),e(7,`
1173                `),t(8,"div",20),e(9,`
1174                    `),t(10,"span",21),e(11,`
1175                        `),t(12,"button",22),v("click",function(){u(i);let l=s(3);return x(l.save())}),e(13,`
1176                            `),C(14,"i",23),e(15,`Save
1177                        `),n(),e(16,`
1178                    `),n(),e(17,`
1179                    `),t(18,"span",21),e(19,`
1180                        `),t(20,"button",24),v("click",function(){u(i);let l=s(3);return x(l.saveAndContinue())}),e(21,`
1181                            Save & Continue `),C(22,"i",25),e(23,`
1182                        `),n(),e(24,`
1183                    `),n(),e(25,`
1184                `),n(),e(26,`
1185            `),n(),e(27,`
1186        `)}if(a&2){let i=s(3);r(10),m("pTooltip",i.canSave?null:"All sections must have a title"),r(2),m("disabled",i.saving||!i.canSave),r(6),m("pTooltip",i.canSave?null:"All sections must have a title"),r(2),m("disabled",i.saving||!i.canSave)}}function Mo(a,d){if(a&1){let i=h();e(0,`
1187        `),p(1,Ao,10,1),p(2,Do,13,1),F(3,Eo,4,3,null,null,fi),t(5,"div",10),v("cdkDropListDropped",function(l){u(i);let c=s(2);return x(c.sectionDropped(l))}),e(6,`
1188            `),F(7,To,4,4,null,null,fi),n(),e(9,`
1189
1190        `),p(10,Io,28,4)}if(a&2){let i=s(2);r(),_(i.isViewMode?1:-1),r(),_(i.isLive?2:-1),r(),y(i.presetSections),r(4),y(i.customSections),r(3),_(i.isViewMode?-1:10)}}function ko(a,d){if(a&1&&(e(0,`
1191                    `),C(1,"p",30),k(2,"safeHtml"),e(3,`
1192                `)),a&2){let i=s().$implicit;r(),m("innerHTML",L(2,1,i.description),$e)}}function Vo(a,d){if(a&1&&(e(0,`
1193                        `),t(1,"div",31),e(2,`
1194                            `),t(3,"label",32),e(4),n(),e(5,`
1195                            `),C(6,"input",33),e(7,`
1196                        `),n(),e(8,`
1197                    `)),a&2){let i=d.$implicit,o=s(5);r(4),g(i.label),r(2),m("placeholder",o.fieldPlaceholder(i.fieldKey))}}function Oo(a,d){if(a&1&&(e(0,`
1198                    `),F(1,Vo,9,2,null,null,Ei)),a&2){let i=s().$implicit;r(),y(i.fields)}}function Po(a,d){a&1&&(e(0,`
1199                    `),t(1,"div",31),e(2,`
1200                        `),t(3,"label",32),e(4,"Choose Player"),n(),e(5,`
1201                        `),t(6,"select",34),e(7,`
1202                            `),t(8,"option"),e(9,"Player name 1"),n(),e(10,`
1203                        `),n(),e(11,`
1204                    `),n(),e(12,`
1205                `))}function No(a,d){a&1&&(e(0,`
1206                    `),t(1,"h4",35),e(2,"Club Players"),n(),e(3,`
1207                    `),t(4,"div",31),e(5,`
1208                        `),t(6,"label",32),e(7,"Club Player 1"),n(),e(8,`
1209                        `),C(9,"input",36),e(10,`
1210                    `),n(),e(11,`
1211                    `),t(12,"button",37),e(13,"+ Add Player"),n(),e(14,`
1212
1213                    `),t(15,"h4",35),e(16,"Additional Dependents"),n(),e(17,`
1214                    `),t(18,"p",38),e(19,"We ask about dependents in your household to better understand your financial responsibilities."),n(),e(20,`
1215                    `),t(21,"button",39),e(22,"+ Add Dependent"),n(),e(23,`
1216                `))}function Ro(a,d){a&1&&(e(0,`
1217                    `),t(1,"div",40),e(2,`
1218                        `),C(3,"i",41),e(4,`Document upload will appear here
1219                    `),n(),e(5,`
1220                `))}function Bo(a,d){a&1&&(t(0,"span",42),e(1," *"),n())}function Uo(a,d){if(a&1&&(e(0,`
1221                                `),t(1,"p",43),e(2),n(),e(3,`
1222                            `)),a&2){let i=s().$implicit;r(2),g(i.fieldDescription)}}function Lo(a,d){a&1&&(e(0,`
1223                                    `),C(1,"textarea",44),e(2,`
1224                                `))}function Wo(a,d){if(a&1&&(e(0,`
1225                                            `),t(1,"option"),e(2),n(),e(3,`
1226                                        `)),a&2){let i=d.$implicit;r(2),g(i.label)}}function $o(a,d){if(a&1&&(e(0,`
1227                                    `),t(1,"select",34),e(2,`
1228                                        `),t(3,"option",45),e(4,"Select an option"),n(),e(5,`
1229                                        `),F(6,Wo,4,1,null,null,Ye),n(),e(8,`
1230                                `)),a&2){let i=s().$implicit;r(6),y(i.options)}}function jo(a,d){if(a&1&&(e(0,`
1231                                    `),C(1,"input",33),e(2,`
1232                                `)),a&2){let i=s().$implicit,o=s(5);r(),m("placeholder",o.dateFormatPlaceholder(i.dateFormat))}}function Yo(a,d){a&1&&(e(0,`
1233                                    `),C(1,"input",46),e(2,`
1234                                `))}function qo(a,d){a&1&&(e(0,`
1235                                    `),t(1,"div",40),e(2,`
1236                                        `),C(3,"i",41),e(4,`Document upload will appear here
1237                                    `),n(),e(5,`
1238                                `))}function zo(a,d){a&1&&(e(0,`
1239                                    `),C(1,"input",47),e(2,`
1240                                `))}function Ho(a,d){if(a&1&&(e(0,`
1241                        `),t(1,"div",31),e(2,`
1242                            `),t(3,"label",32),e(4),p(5,Bo,2,0,"span",42),n(),e(6,`
1243                            `),p(7,Uo,4,1),p(8,Lo,3,0)(9,$o,9,0)(10,jo,3,1)(11,Yo,3,0)(12,qo,6,0)(13,zo,3,0),e(14,`
1244                        `),n(),e(15,`
1245                    `)),a&2){let i,o=d.$implicit,l=s(5);r(4),w(`
1246                                `,o.label),r(),_(o.isRequired?5:-1),r(2),_(o.fieldDescription?7:-1),r(),_((i=o.clubFinancialAidFieldTypeID)===l.ClubFinancialAidFieldTypeID.TEXTAREA?8:i===l.ClubFinancialAidFieldTypeID.DROPDOWN?9:i===l.ClubFinancialAidFieldTypeID.DATE?10:i===l.ClubFinancialAidFieldTypeID.NUMERIC?11:i===l.ClubFinancialAidFieldTypeID.DOCUMENT?12:13)}}function Qo(a,d){if(a&1&&(e(0,`
1247                    `),F(1,Ho,16,4,null,null,Ei)),a&2){let i=s().$implicit,o=s(3);r(),y(o.visibleFields(i))}}function Go(a,d){if(a&1&&(e(0,`
1248                        `),t(1,"div",31),e(2,`
1249                            `),t(3,"label",32),e(4),n(),e(5,`
1250                            `),C(6,"input",33),e(7,`
1251                        `),n(),e(8,`
1252                    `)),a&2){let i=d.$implicit;r(4),g(i.label),r(2),m("placeholder",i.label)}}function Xo(a,d){if(a&1&&(e(0,`
1253                    `),F(1,Go,9,2,null,null,Ei)),a&2){let i=s().$implicit;r(),y(i.fields)}}function Ko(a,d){if(a&1&&(e(0,`
1254            `),t(1,"div",28),e(2,`
1255                `),t(3,"h2",29),e(4),n(),e(5,`
1256                `),p(6,ko,4,3),p(7,Oo,3,0),p(8,Po,13,0),p(9,No,24,0),p(10,Ro,6,0),p(11,Qo,3,0),p(12,Xo,3,0),n(),e(13,`
1257        `)),a&2){let i=d.$implicit,o=s(3);r(4),g(i.title),r(2),_(i.description?6:-1),r(),_(i.sectionTypeID===o.SectionType.APPLICANT_INFO?7:-1),r(),_(i.sectionTypeID===o.SectionType.PLAYER_INFO?8:-1),r(),_(i.sectionTypeID===o.SectionType.HOUSEHOLD_INFO?9:-1),r(),_(i.sectionTypeID===o.SectionType.REQUIRED_DOCUMENTS?10:-1),r(),_(i.sectionTypeID===o.SectionType.CUSTOM?11:-1),r(),_(i.sectionTypeID===o.SectionType.REQUESTED_AMOUNT?12:-1)}}function Jo(a,d){a&1&&(e(0,`
1258                `),t(1,"a",48),e(2,`
1259                    `),C(3,"i",49),e(4,`Back to Overview
1260                `),n(),e(5,`
1261            `))}function Zo(a,d){if(a&1){let i=h();e(0,`
1262                        `),t(1,"button",24),v("click",function(){u(i);let l=s(4);return x(l.saveAndReturnToOverview())}),e(2,`
1263                            `),C(3,"i"),e(4,`Save & Return to Overview
1264                        `),n(),e(5,`
1265                    `)}if(a&2){let i=s(4);r(),m("disabled",i.saving),r(2),ve(i.saving?"fa fa-spinner fa-spin mr-1":"fal fa-check mr-1")}}function el(a,d){if(a&1){let i=h();e(0,`
1266                        `),t(1,"button",22),v("click",function(){u(i);let l=s(4);return x(l.save())}),e(2,`
1267                            `),C(3,"i",23),e(4,`Save as Draft
1268                        `),n(),e(5,`
1269                        `),t(6,"button",24),v("click",function(){u(i);let l=s(4);return x(l.saveAndContinueToPublish())}),e(7,`
1270                            Save and Continue `),C(8,"i",25),e(9,`
1271                        `),n(),e(10,`
1272                    `)}if(a&2){let i=s(4);r(),m("disabled",i.saving),r(5),m("disabled",i.saving)}}function il(a,d){if(a&1){let i=h();e(0,`
1273                `),t(1,"button",18),v("click",function(){u(i);let l=s(3);return x(l.activeStep=0)}),e(2,`
1274                    `),C(3,"i",50),e(4,`Edit Application
1275                `),n(),e(5,`
1276                `),t(6,"div",20),e(7,`
1277                    `),p(8,Zo,6,3)(9,el,11,2),n(),e(10,`
1278            `)}if(a&2){let i=s(3);r(8),_(i.isLive?8:9)}}function tl(a,d){if(a&1&&(e(0,`
1279
1280        `),t(1,"div",26),e(2,`
1281            `),t(3,"app-inline-alert",3),e(4,`
1282                This is a preview of what applicants will see. No changes can be made here.
1283            `),n(),e(5,`
1284        `),n(),e(6,`
1285
1286        `),F(7,Ko,14,8,null,null,fi),t(9,"div",27),e(10,`
1287            `),p(11,Jo,6,0)(12,il,11,1),n(),e(13,`
1288    `)),a&2){let i=s(2);r(3),m("isInline",!0),r(4),y(i.enabledSections),r(4),_(i.isViewMode?11:12)}}function nl(a,d){if(a&1&&(e(0,`
1289                            `),t(1,"span",55),e(2),n(),e(3,`
1290                        `)),a&2){let i=s().$implicit,o=s(3);r(2),ee("(",o.visibleFields(i).length," form field",o.visibleFields(i).length===1?"":"s",")")}}function al(a,d){if(a&1&&(e(0,`
1291                    `),t(1,"li",54),e(2),p(3,nl,4,2),n(),e(4,`
1292                `)),a&2){let i=d.$implicit,o=s(3);r(2),w(`
1293                        `,i.title,`
1294                        `),r(),_(i.sectionTypeID===o.SectionType.CUSTOM?3:-1)}}function ol(a,d){if(a&1){let i=h();e(0,`
1295            `),t(1,"app-yes-no-modal",56),v("onYesSelect",function(){u(i);let l=s(3);return x(l.publish())})("onNoSelect",function(){u(i);let l=s(3);return x(l.showPublishConfirm=!1)}),n(),e(2,`
1296        `)}if(a&2){let i=s(3);r(),m("loading",i.publishing)}}function ll(a,d){if(a&1){let i=h();e(0,`
1297
1298        `),t(1,"div",26),e(2,`
1299            `),t(3,"app-inline-alert",12),e(4,`
1300                Publishing makes this application live for applicants. Any previously active application will be closed.
1301            `),n(),e(5,`
1302        `),n(),e(6,`
1303
1304        `),t(7,"div",28),e(8,`
1305            `),t(9,"h2",29),e(10,"Application Summary"),n(),e(11,`
1306            `),t(12,"p",51),e(13,"The following sections will be included in the published application:"),n(),e(14,`
1307            `),t(15,"ul",52),e(16,`
1308                `),F(17,al,5,2,null,null,fi),n(),e(19,`
1309        `),n(),e(20,`
1310
1311        `),e(21,`
1312        `),t(22,"div",27),e(23,`
1313            `),t(24,"button",18),v("click",function(){u(i);let l=s(2);return x(l.activeStep=1)}),e(25,`
1314                `),C(26,"i",49),e(27,`Back to Preview
1315            `),n(),e(28,`
1316            `),t(29,"div",20),e(30,`
1317                `),t(31,"button",22),v("click",function(){u(i);let l=s(2);return x(l.save())}),e(32,`
1318                    `),C(33,"i",23),e(34,`Save as Draft
1319                `),n(),e(35,`
1320                `),t(36,"button",24),v("click",function(){u(i);let l=s(2);return x(l.showPublishConfirm=!0)}),e(37,`
1321                    `),C(38,"i",53),e(39,`Publish Application
1322                `),n(),e(40,`
1323            `),n(),e(41,`
1324        `),n(),e(42,`
1325
1326        `),p(43,ol,3,1)}if(a&2){let i=s(2);r(3),m("isInline",!0),r(14),y(i.enabledSections),r(14),m("disabled",i.saving||i.publishing),r(5),m("disabled",i.saving||i.publishing),r(7),_(i.showPublishConfirm?43:-1)}}function rl(a,d){if(a&1&&(e(0,`
1327
1328    `),e(1,`
1329    `),t(2,"app-admin-header",4),e(3,`
1330    `),n(),e(4,`
1331
1332    `),e(5,`
1333    `),t(6,"div",5),e(7,`
1334        `),F(8,yo,11,11,null,null,bo),n(),e(10,`
1335
1336    `),e(11,`
1337    `),p(12,Mo,11,3),p(13,tl,14,2),p(14,ll,44,4)),a&2){let i=s();r(2),m("showBackButton",!0),r(6),y(i.steps),r(4),_(i.activeStep===0?12:-1),r(),_(i.activeStep===1?13:-1),r(),_(i.activeStep===2?14:-1)}}var gt=(()=>{let d=class d{constructor(o,l,c,f){this.route=o,this.router=l,this.financialAidService=c,this.siteDataService=f,this.loading=!0,this.error=!1,this.saving=!1,this.publishing=!1,this.showPublishConfirm=!1,this.isViewMode=!1,this.isLive=!1,this.activeStep=0,this.sections=[],this.ClubFinancialAidFieldTypeID=H,this.SectionType=V,this.steps=[{label:"Build",disabled:!1},{label:"Preview",disabled:!1},{label:"Publish",disabled:!1}],this.unsubscribe$=new O}
1337ngOnInit(){this.siteDataService.hideSiteLoader(),this.applicationID=+this.route.snapshot.paramMap.get("id"),this.isViewMode=this.route.snapshot.queryParamMap.get("view")==="1",this.isLive=this.route.snapshot.queryParamMap.get("live")==="1",this.isLive&&(this.steps=this.steps.slice(0,2)),this.financialAidService.getApplicationSections(this.applicationID).pipe(A(this.unsubscribe$)).subscribe({next:o=>{this.sections=o,this.isViewMode&&(this.activeStep=1),this.loading=!1},error:()=>{this.error=!0,this.loading=!1}})}goToStep(o){o<this.activeStep&&!this.steps[o].disabled&&(this.activeStep=o)}save(){this.doSave(()=>{this.siteDataService.showSiteSuccessAlert("Application form saved.")})}saveAndContinue(){this.doSave(()=>{this.activeStep=1})}saveAndContinueToPublish(){this.doSave(()=>{this.activeStep=2})}saveAndReturnToOverview(){this.doSave(()=>{this.siteDataService.showSiteSuccessAlert("Application form saved."),this.router.navigate(["/admin/financial-aid/overview"])})}get canSave(){return this.sections.every(o=>!!o.title?.trim())}addCustomSection(){this.customSectionModal.open()}onCustomSectionAdded(o){o.sortOrder=Math.max(0,...this.sections.map(l=>l.sortOrder))+1,this.sections=[...this.sections,o],setTimeout(()=>{this.buildSections.find(l=>l.section.sectionID===o.sectionID)?.addField()})}onSectionDeleted(o){this.sections=this.sections.filter(l=>l.sectionID!==o.sectionID)}publish(){this.publishing=!0,this.financialAidService.saveFormBuilder(this.applicationID,this.buildSaveRequest()).pipe(Le(()=>this.financialAidService.publishApplication(this.applicationID)),A(this.unsubscribe$)).subscribe({next:()=>{this.publishing=!1,this.siteDataService.showSiteSuccessAlert("Application published."),this.router.navigate(["/admin/financial-aid/overview"])},error:o=>{this.publishing=!1,this.showPublishConfirm=!1,this.siteDataService.showSiteErrorAlert(typeof o?.error=="string"&&o.error?o.error:"There was a problem publishing the application. Please try again.")}})}doSave(o){this.saving=!0;let l=this.buildSaveRequest();this.financialAidService.saveFormBuilder(this.applicationID,l).pipe(A(this.unsubscribe$)).subscribe({next:()=>{this.saving=!1,o()},error:()=>{this.saving=!1,this.siteDataService.showSiteErrorAlert("There was a problem saving the form. Please try again.")}})}buildSaveRequest(){return{sections:this.sections.map(o=>({sectionID:o.sectionID,title:o.title,description:o.description,sortOrder:o.sortOrder,isEnabled:o.isEnabled,fields:(o.fields??[]).filter(l=>l.sectionFieldID>0).map((l,c)=>({sectionFieldID:l.sectionFieldID,label:l.label,clubFinancialAidFieldTypeID:l.clubFinancialAidFieldTypeID,isVisible:l.isVisible??!0,isRequired:l.isRequired,sortOrder:l.sortOrder||c+1}))}))}}get presetSections(){return this.sections.filter(o=>o.sectionTypeID!==V.CUSTOM).sort((o,l)=>o.sortOrder-l.sortOrder)}get customSections(){return this.sections.filter(o=>o.sectionTypeID===V.CUSTOM).sort((o,l)=>o.sortOrder-l.sortOrder)}get enabledSections(){return this.sections.filter(o=>o.isEnabled).sort((o,l)=>o.sortOrder-l.sortOrder)}sectionDropped(o){if(o.previousIndex===o.currentIndex)return;let l=this.customSections;Te(l,o.previousIndex,o.currentIndex);let c=Math.max(0,...this.presetSections.map(f=>f.sortOrder));l.forEach((f,S)=>{f.sortOrder=c+S+1}),this.sections=[...this.sections]}visibleFields(o){return(o.fields??[]).filter(l=>l.isVisible)}dateFormatPlaceholder(o){switch(o){case _e.MONTH_YEAR:return"MM/YYYY";case _e.YEAR:return"YYYY";default:return"MM/DD/YYYY"}}fieldPlaceholder(o){return ci(o)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};d.\u0275fac=function(l){return new(l||d)(b(Qe),b(le),b(M),b(N))},d.\u0275cmp=P({type:d,selectors:[["app-financial-aid-form-builder"]],viewQuery:function(l,c){if(l&1&&Ce(So,5)(xi,5),l&2){let f;G(f=X())&&(c.customSectionModal=f.first),G(f=X())&&(c.buildSections=f)}},standalone:!1,decls:9,vars:4,consts:[["customSectionModal",""],["role","main"],[3,"saved","applicationID"],[3,"isInline"],["pageTitle","Form Builder","parentLinkText","Financial Aid","parentLinkUrl","/admin/financial-aid/overview",3,"showBackButton"],[1,"build-stepper","mb-4"],[1,"build-stepper-step",3,"click"],[1,"build-stepper-circle"],[1,"build-stepper-label"],[1,"build-stepper-line"],["cdkDropList","",3,"cdkDropListDropped"],[1,"mb-3"],["alertType","info",3,"isInline"],["routerLink","/admin/financial-aid/overview",1,"alert-link","ml-1"],["alertType","warning",3,"isInline"],[3,"deleted","section","applicationID","isViewMode"],[3,"deleted","section","applicationID","isViewMode","dragDisabled"],[1,"d-flex","justify-content-between","align-items-center","mt-3"],[1,"btn","btn-secondary",3,"click"],[1,"fal","fa-plus","mr-1"],[1,"d-flex","align-items-center"],["tooltipPosition","top",3,"pTooltip"],[1,"btn","btn-secondary","mr-2",3,"click","disabled"],[1,"fal","fa-save","mr-1"],[1,"btn","btn-primary",3,"click","disabled"],[1,"fal","fa-arrow-right","ml-1"],[1,"mb-4"],[1,"d-flex","justify-content-between","align-items-center","mt-4","pt-3","border-top"],[1,"preview-section","mb-4"],[1,"preview-section-title"],[1,"text-muted","mb-3",3,"innerHTML"],[1,"preview-field-row","mb-2"],[1,"preview-field-label"],["type","text","disabled","",1,"form-control",3,"placeholder"],["disabled","",1,"form-control"],[1,"preview-subsection-label"],["type","text","disabled","","placeholder","Player name",1,"form-control"],["disabled","",1,"btn","btn-secondary","btn-sm","mb-4"],[1,"text-muted","text-small","mb-2"],["disabled","",1,"btn","btn-secondary","btn-sm"],[1,"preview-upload-placeholder"],[1,"fal","fa-file-upload","mr-2"],[1,"text-red"],[1,"text-muted","text-small","mb-1"],["disabled","","rows","3",1,"form-control"],["value",""],["type","number","disabled","","placeholder","0",1,"form-control"],["type","text","disabled","",1,"form-control"],["routerLink","/admin/financial-aid/overview",1,"btn","btn-secondary"],[1,"fal","fa-arrow-left","mr-1"],[1,"fa-regular","fa-pen-to-square","mr-1"],[1,"text-muted","mb-3"],[1,"mb-0"],[1,"fal","fa-paper-plane","mr-1"],[1,"mb-1"],[1,"text-muted","text-small"],["headerText","Publish Application","modalText","Are you sure you want to publish this application? It will become live for applicants and any previously active application will be closed.","yesButtonText","Yes, Publish","yesButtonLoadingText","Publishing...","noButtonText","No, Cancel",3,"onYesSelect","onNoSelect","loading"]],template:function(l,c){l&1&&(t(0,"main",1),e(1,`
1338
1339`),p(2,go,3,0),p(3,wo,4,1),p(4,rl,15,4),t(5,"app-financial-aid-custom-section-modal",2,0),v("saved",function(S){return c.onCustomSectionAdded(S)}),e(7,`
1340`),n(),e(8,`
1341
1342`),n()),l&2&&(r(2),_(c.loading&&!c.sections.length?2:-1),r(),_(c.error?3:-1),r(),_(!c.loading&&!c.error?4:-1),r(),m("applicationID",c.applicationID))},dependencies:[Ui,Li,ge,re,ce,Ee,oi,we,Ie,xi,ui,Ke],styles:['.build-stepper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-start}.build-stepper[_ngcontent-%COMP%]:before{content:"";position:absolute;top:1rem;left:1rem;right:1rem;height:2px;background:var(--grey-300);z-index:0}.build-stepper[_ngcontent-%COMP%]   .build-stepper-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;flex-shrink:0;z-index:1}
1342.build-stepper[_ngcontent-%COMP%]   .build-stepper-circle[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50%;border:2px solid var(--grey-400);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.875rem;color:var(--grey-600);background:var(--color-white)}.build-stepper[_ngcontent-%COMP%]   .build-stepper-circle.build-stepper-active[_ngcontent-%COMP%]{background:var(--base-text);border-color:var(--base-text);color:var(--color-white)}.build-stepper[_ngcontent-%COMP%]   .build-stepper-label[_ngcontent-%COMP%]{margin-top:.375rem;font-size:.8125rem;color:var(--grey-600);white-space:nowrap}.build-stepper[_ngcontent-%COMP%]   .build-stepper-label.build-stepper-active[_ngcontent-%COMP%]{color:var(--base-text);font-weight:700}.build-stepper[_ngcontent-%COMP%]   .build-stepper-line[_ngcontent-%COMP%]{flex:1;height:2px;background:var(--grey-300);margin:1rem .5rem 0;z-index:0}.build-stepper[_ngcontent-%COMP%]   .build-stepper-clickable[_ngcontent-%COMP%]{cursor:pointer}.build-stepper[_ngcontent-%COMP%]   .build-stepper-clickable[_ngcontent-%COMP%]:hover   .build-stepper-circle[_ngcontent-%COMP%]{border-color:var(--blue-700);color:var(--blue-700)}.build-stepper[_ngcontent-%COMP%]   .build-stepper-clickable[_ngcontent-%COMP%]:hover   .build-stepper-label[_ngcontent-%COMP%]{color:var(--blue-700)}.build-stepper[_ngcontent-%COMP%]   .build-stepper-disabled[_ngcontent-%COMP%]{opacity:.4}.preview-section[_ngcontent-%COMP%]{padding-bottom:1.5rem;border-bottom:var(--border)}.preview-section[_ngcontent-%COMP%]:last-of-type{border-bottom:none}.preview-section-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:var(--base-text);margin-bottom:1rem}.preview-field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.preview-field-label[_ngcontent-%COMP%]{flex:0 0 12rem;font-size:.9375rem;color:var(--base-text);margin-bottom:0}.preview-subsection-label[_ngcontent-%COMP%]{font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--grey-600);margin-bottom:.5rem;margin-top:1.25rem}.preview-subsection-label[_ngcontent-%COMP%]:first-child{margin-top:0}.preview-upload-placeholder[_ngcontent-%COMP%]{padding:1rem;border:1px dashed var(--grey-400);border-radius:var(--border-radius);color:var(--grey-600);font-style:italic;font-size:.9375rem}']});let a=d;return a})();var wt=(()=>{let d=class d{};d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=je({type:d}),d.\u0275inj=We({imports:[hi.forChild([{path:"application/:id/form",canActivate:[Si],component:gt},{path:"",component:ft,canActivate:[Si,bi],canActivateChild:[bi],children:[{path:"overview",component:rt},{path:"settings",component:xt},{path:"applications/:id",component:_t},{path:"applications",component:ut},{path:"individual-applications",component:vt},{path:"",redirectTo:"overview",pathMatch:"full"},{path:"**",redirectTo:"error/not-found"}]}]),hi]});let a=d;return a})();var Fc=(()=>{let d=class d{};d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=je({type:d}),d.\u0275inj=We({providers:[M,di],imports:[Zi,wt,nt,Ji]});let a=d;return a})();export{Fc as FinancialAidModule};

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.