1import{e as _t}from"./chunk-WYPAU65U.js";import{a as ue,b as St,c as gt,d as z,e as xt,f as Ct,g as Y,h as vt,i as bt,j as yt}from"./chunk-IJCOGGVP.js";import"./chunk-PHZJLURG.js";import"./chunk-I2Y7UB4V.js";import"./chunk-PSOULVZL.js";import"./chunk-XAXLMUF6.js";import{a as pt,b as ht}from"./chunk-D2XWWPO3.js";import{a as fe,e as ft,k as R}from"./chunk-O3BD2LYL.js";import"./chunk-6ORYOOUQ.js";import"./chunk-ZB44PIZA.js";import"./chunk-YBFQQSLW.js";import"./chunk-MB6YAV2B.js";import{a as Ue}from"./chunk-BT6MT7GL.js";import{a as Fe,b as ut}from"./chunk-CXTNRMRP.js";import"./chunk-OBZUIDEP.js";import{a as P}from"./chunk-4CVZBQNN.js";import{a as Le}from"./chunk-WN3UI2QV.js";import{a as Me}from"./chunk-ZB64W4XA.js";import"./chunk-SVABVB5X.js";import"./chunk-CMY6WAF3.js";import"./chunk-FUY7HSJY.js";import"./chunk-JTYXZXFU.js";import{a as pe}from"./chunk-7MK6I7GJ.js";import{a as se}from"./chunk-JKMNVQUA.js";import"./chunk-QH3IRCHN.js";import"./chunk-PLEH3NAH.js";import"./chunk-GXCJ5QS4.js";import"./chunk-4D5SN44G.js";import"./chunk-22ACI5KU.js";import"./chunk-FXUQQQIE.js";import"./chunk-FSUBAQYH.js";import"./chunk-7CVCGK4Q.js";import"./chunk-FWW3IJT2.js";import{a as Ae}from"./chunk-B6LCWWQX.js";import"./chunk-HYGNXZJR.js";import{a as de}from"./chunk-B6XXRKU5.js";import"./chunk-6Q5DDO7R.js";import"./chunk-RW2MVE4O.js";import"./chunk-3ZVRFUA4.js";import"./chunk-H4PCL6BZ.js";import"./chunk-NXTJBJRP.js";import"./chunk-U22BTVEZ.js";import{$b as ae,Ce as mt,Ec as me,Ff as ct,Gb as re,Gc as at,Hc as lt,Hd as Pe,Kb as ot,Lc as we,Mb as rt,Mc as Ie,Sc as ce,b as Ge,cc as st,d as ee,k as te,kd as Te,kh as dt,lc as le,ve as G,xa as B,xb as oe,ye as Ee}from"./chunk-X5J6QTCG.js";import{$ as xe,$a as h,$h as tt,Ad as Ve,E as We,Fa as m,Fb as _e,Gb as ze,H as Be,Ib as e,Jb as q,Ka as f,Kb as k,Lb as He,Lf as Ke,Ma as b,Na as Ce,Ni as it,Pf as ye,Qb as w,Rb as I,Sa as N,Sb as T,Th as V,U as D,Ug as et,W as ge,Xa as ve,bb as _,be as ie,bg as ne,cc as qe,ci as L,d as U,db as $,dc as Qe,di as De,eb as j,fa as S,fb as W,fj as nt,ga as g,gb as p,hb as s,ib as a,jb as v,k as he,nb as E,ob as A,pb as $e,pj as y,qb as C,sb as x,tb as c,u as F,ug as Xe,vd as M,wd as Ye,wh as Q,xb as K,yb as X,yd as be,zb as Z,zd as Je,zg as Ze}from"./chunk-SMW7PHYX.js";import{a as je}from"./chunk-BMIYOSOG.js";function Ht(o,l){if(o&1&&(e(0,` 2 `),s(1,"div",2),e(2,` 3 `),s(3,"div",3),e(4,` 4 `),s(5,"h1",4),v(6,"i",5),e(7),a(),e(8,` 5 `),a(),e(9,` 6 `),s(10,"div",6),e(11,` 7 `),e(12,` 8 `),s(13,"span",7),e(14,"ID#"),a(),e(15),a(),e(16,` 9`),a(),e(17,` 10`)),o&2){let r=c();m(7),He("",r.clubUser==null?null:r.clubUser.user.firstName,` 11 `,r.clubUser==null?null:r.clubUser.user.lastName),m(8),k(" ",r.clubUser==null?null:r.clubUser.clubUserID,` 12 `)}}function qt(o,l){o&1&&e(0,` 13 , 14 `)}function Qt(o,l){if(o&1&&(e(0,` 15 `),s(1,"span"),e(2),h(3,qt,1,0),a(),e(4,` 16 `)),o&2){let r=l.$implicit,i=l.$index,t=l.$count;m(2),k(` 17 `,r.name),m(),_(i!==t-1?3:-1)}}function Gt(o,l){if(o&1&&(e(0,` 18 `),s(1,"div",2),e(2,` 19 `),s(3,"div",8),e(4,"Role(s):"),a(),e(5,` 20 `),s(6,"div",9),e(7,` 21 `),j(8,Qt,5,2,null,null,$),a(),e(10,` 22`),a(),e(11,` 23`)),o&2){let r=c();m(),_e("mb-2",!r.teams),m(7),W(r.roles)}}function Yt(o,l){if(o&1&&(e(0,` 24 `),v(1,"app-pill",12),e(2,` 25 `)),o&2){let r=c().$implicit;m(),p("text",r.name)}}function Jt(o,l){if(o&1&&(e(0,` 26 `),h(1,Yt,3,1)),o&2){let r=l.$index,i=c(3);m(),_(r<i.teamsVisible?1:-1)}}function Kt(o,l){if(o&1&&e(0),o&2){let r=c(3);k(` 27 `,r.teams.length-r.teamsVisible,` more 28 `)}}function Xt(o,l){o&1&&e(0,` 29 Collapse 30 `)}function Zt(o,l){if(o&1){let r=C();e(0,` 31 `),j(1,Jt,2,1,null,null,$),s(3,"button",11),x("click",function(){S(r);let t=c(2);return g(t.teamsVisible=t.teamsVisible===10?t.teams.length:10)}),e(4,` 32 `),h(5,Kt,1,1),h(6,Xt,1,0),a(),e(7,` 33 `)}if(o&2){let r=c(2);m(),W(r.teams),m(2),_e("btn-icon-chevron-down",r.teamsVisible===10)("btn-icon-chevron-up",r.teamsVisible!==10),m(2),_(r.teamsVisible===10?5:-1),m(),_(r.teamsVisible!==10?6:-1)}}function ei(o,l){if(o&1&&(e(0,` 34 `),v(1,"app-pill",12),e(2,` 35 `)),o&2){let r=l.$implicit;m(),p("text",r.name)}
35}function ti(o,l){if(o&1&&(e(0,` 36 `),j(1,ei,3,1,null,null,$)),o&2){let r=c(2);m(),W(r.teams)}}function ii(o,l){if(o&1&&(e(0,` 37 `),s(1,"div",10),e(2,` 38 `),s(3,"div",8),e(4,"Current Team(s):"),a(),e(5,` 39 `),s(6,"div",9),e(7,` 40 `),h(8,Zt,8,6)(9,ti,3,0),a(),e(10,` 41 `),a(),e(11,` 42`)),o&2){let r=c();m(8),_(r.teams.length>10?8:9)}}function ni(o,l){o&1&&(e(0,` 43 `),s(1,"li",15),e(2,` 44 `),s(3,"a",18),e(4,"Roles & Permissions"),a(),e(5,` 45 `),a(),e(6,` 46 `))}function oi(o,l){o&1&&(e(0,` 47 `),s(1,"li",15),e(2,` 48 `),s(3,"a",19),e(4,"Programs/Teams"),a(),e(5,` 49 `),a(),e(6,` 50 `))}function ri(o,l){o&1&&(e(0,` 51 `),s(1,"li",15),e(2,` 52 `),s(3,"a",20),e(4,"Tryout Pools"),a(),e(5,` 53 `),a(),e(6,` 54 `))}function si(o,l){if(o&1&&(e(0,` 55 `),s(1,"div",13),e(2,` 56 `),s(3,"ul",14),e(4,` 57 `),s(5,"li",15),e(6,` 58 `),s(7,"a",16),e(8,"Profile"),a(),e(9,` 59 `),a(),e(10,` 60 `),e(11,` 61 `),s(12,"li",15),e(13,` 62 `),s(14,"a",17),e(15,"Public Profile"),a(),e(16,` 63 `),a(),e(17,` 64 `),h(18,ni,7,0),h(19,oi,7,0),h(20,ri,7,0),a(),e(21,` 65`),a(),e(22,` 66`)),o&2){let r=c();m(18),_(r.user&&(r.user[r.Permission.PermissionsAdmin]&&+r.user.userID!==r.clubUserID||+r.user.clubID==0)?18:-1),m(),_(r.user[r.Permission.AssignStaff]?19:-1),m(),_(r.user[r.Permission.AssignStaffToTryout]?20:-1)}}var Dt=(()=>{let l=class l{constructor(i,t,n,d){this.userService=i,this.authorizeService=t,this.route=n,this.siteDataService=d,this.Permission=V,this.actionMenuItems=[],this.FieldOption=nt,this.teamsVisible=10,this.adminView=!1,this.unsubscribe$=new U}ngOnInit(){this.adminView=this.route.snapshot.parent?.parent?.parent?.data?.adminView,this.route.params.pipe(D(this.unsubscribe$)).subscribe(i=>{i.id==="new"?this.clearStaffDetail():(this.clubUserID=+i.id,F([this.userService.getUser(+this.clubUserID),this.userService.getUserCurrentRoles(this.clubUserID),this.userService.getUserProgramAssignments(this.clubUserID),this.siteDataService.getClubFieldOptions()]).pipe(D(this.unsubscribe$)).subscribe(t=>{this.clubUser=t[0],t[1]?.length&&(this.roles=t[1]),t[2]?.length&&(this.teams=t[2].filter(n=>n.team).map(n=>n.team)),this.clubFieldOptions=t[3]}),this.authorizeService.getUser().pipe(Be(1)).subscribe(t=>{this.user=t,this.createActionMenu()}))})}clearStaffDetail(){this.clubUserID=void 0,this.clubUser=void 0,this.roles=void 0,this.teams=void 0,this.actionMenuItems=[]}createActionMenu(){this.actionMenuItems=[],this.user[V.UserAdmin]&&this.actionMenuItems.push({label:"View in Manage Users",routerLink:["/admin/users",this.clubUserID,"profile"]})}optionEnabled(i){return this.clubFieldOptions?.find(t=>t.fieldOptionID===i)!==void 0}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(f(R),f(De),f(M),f(y))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&K(ue,5),t&2){let d;X(d=Z())&&(n.searchComponent=d.first)}},standalone:!1,decls:10,vars:8,consts:[["role","main"],[3,"pageTitle","parentLinkUrl","showBackButton","parentLinkText"],[1,"row"],[1,"col-md-8"],[1,"my-2","text-header-2"],[1,"fa-duotone","fa-whistle","mr-2"],[1,"col-md-4","align-right"],[1,"small-label"],[1,"col-md-2"],[1,"col-md-10"],[1,"row","mb-2"],["type","button",1,"btn","btn-sm","btn-naked",3,"click"],[3,"text"],[1,"tabs"],["role","tablist",1,"tab-nav","no-bullets","inline-list"],["routerLinkActive","active",1,"nav-item"],["routerLink","profile","role","tab","aria-controls","home",1,"nav-link"],["routerLink","public-profile","role","tab","aria-controls","home",1,"nav-link"],["routerLink","roles","role","tab","aria-controls","home",1,"nav-link"],["routerLink","programs","role","tab","aria-controls","home",1,"nav-link"],["routerLink","tryout-pools","role","tab","aria-controls","home",1,"nav-link"]],template:function(t,n){t&1&&(s(0,"main",0),e(1,` 67 `),v(2,"app-admin-header",1),e(3,` 68 69 `),h(4,Ht,18,3),h(5,Gt,12,2),h(6,ii,12,1),h(7,si,23,3),v(8,"router-outlet"),e(9,` 70`),a()),t&2&&(m(2),p("pageTitle",n.clubUserID?"Staff Detail":"Add Staff")("parentLinkUrl",n.adminView?"../..":"../")("showBackButton",!0)("parentLinkText",n.adminView?"":"Manage Staff"),m(2),_(n.clubUserID?4:-1),m(),_(n.roles?5:-1),m(),_(n.teams?6:-1),m(),_(n.clubUserID?7:-1))},dependencies:[Ye,be,Je,ot,G],encapsulation:2});let o=l;return o}
70)();function ai(o,l){if(o&1&&v(0,"app-staff-profile",0),o&2){let r=c();p("clubUserID",r.clubUserID)}}var wt=(()=>{let l=class l{constructor(i,t){this.siteDataService=i,this.route=t,this.unsubscribe$=new U}ngOnInit(){this.clubUserID=+this.route.snapshot.parent.params.id,this.siteDataService.hideSiteLoader()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(f(y),f(M))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],standalone:!1,decls:1,vars:1,consts:[[3,"clubUserID"]],template:function(t,n){t&1&&h(0,ai,1,1,"app-staff-profile",0),t&2&&_(n.clubUserID?0:-1)},dependencies:[St],encapsulation:2});let o=l;return o})();function li(o,l){o&1&&(e(0,` 71 `),s(1,"app-admin-header",3),e(2,` 72 `),a(),e(3,` 73 `)),o&2&&(m(),p("pageTitle","Manage Staff"))}function mi(o,l){o&1&&(e(0,` 74 `),s(1,"app-admin-header",4),e(2,` 75 `),a(),e(3,` 76 `)),o&2&&(m(),p("pageTitle","Manage Staff"))}var It=(()=>{let l=class l{constructor(i,t,n){this.userService=i,this.authorizeService=t,this.siteDataService=n,this.Permission=V,this.userService.filters=new fe}ngOnInit(){this.authorizeService.getUser().subscribe(i=>{this.user=i}),this.siteDataService.hideSiteLoader()}run(){this.searchComponent.run()}ngOnDestroy(){this.userService.filters=new fe}};l.\u0275fac=function(t){return new(t||l)(f(R),f(De),f(y))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&K(ue,5),t&2){let d;X(d=Z())&&(n.searchComponent=d.first)}},standalone:!1,decls:9,vars:3,consts:[["role","main"],[3,"keydown.enter"],[3,"staffMode"],["parentLinkUrl","../","primaryBtnText","Add Staff","primaryBtnUrl","new",3,"pageTitle"],[3,"pageTitle"]],template:function(t,n){t&1&&(s(0,"main",0),e(1,` 77 `),h(2,li,4,1),h(3,mi,4,1),s(4,"div",1),x("keydown.enter",function(){return n.run()}),e(5,` 78 `),v(6,"app-user-search",2),e(7,` 79 `),a(),e(8,` 80`),a()),t&2&&(m(2),_(n.user[n.Permission.UserAdmin]?2:-1),m(),_(n.user[n.Permission.UserAdmin]?-1:3),m(3),p("staffMode",!0))},dependencies:[G,ue],encapsulation:2});let o=l;return o})();function ci(o,l){if(o&1){let r=C();e(0,` 81 `),s(1,"app-user-file-cabinet",0),x("download",function(t){S(r);let n=c();return g(n.downloadUserDocument(t))}),a(),e(2,` 82`)}if(o&2){let r=c();m(),p("clubUserID",r.clubUserID)("isAdmin",!0)("isStaff",!0)}}function di(o,l){if(o&1){let r=C();e(0,` 83 `),s(1,"main",1),e(2,` 84 `),v(3,"app-admin-header",2),e(4,` 85 `),s(5,"app-user-file-cabinet",3),x("download",function(t){S(r);let n=c();return g(n.downloadUserDocument(t))}),a(),e(6,` 86 `),a(),e(7,` 87`)}o&2&&(m(3),p("pageTitle","Files"),m(2),p("isAdmin",!0)("isStaff",!0))}var Oe=(()=>{let l=class l{constructor(i,t,n){this.siteDataService=i,this.route=t,this.userService=n,this.userMode=!1,this.unsubscribe$=new U}ngOnInit(){Q(this.route,"id")&&(this.clubUserID=+Q(this.route,"id"),this.userMode=!0),this.siteDataService.hideSiteLoader()}downloadUserDocument(i){this.userService.downloadUserDocument(i.clubUserID,i.userDocumentID).pipe(D(this.unsubscribe$)).subscribe({next:t=>{ye(t)},error:()=>{this.siteDataService.showSiteErrorAlert("The requested file could not be found.")}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(f(y),f(M),f(R))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],standalone:!1,decls:2,vars:2,consts:[[3,"download","clubUserID","isAdmin","isStaff"],["role","main"],[3,"pageTitle"],[3,"download","isAdmin","isStaff"]],template:function(t,n){t&1&&(h(0,ci,3,3),h(1,di,8,3)),t&2&&(_(n.userMode?0:-1),m(),_(n.userMode?-1:1))},dependencies:[G,pt],encapsulation:2});let o=l;return o})();var Tt=(()=>{let l=class l{constructor(i){this.siteDataService=i}ngOnInit(){this.siteDataService.hideSiteLoader()}};l.\u0275fac=function(t){return new(t||l)(f(y))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],standalone:!1,decls:1,vars:0,template:function(t,n){t&1&&e(0,"Coming Soon!")},encapsulation:2});let o=l;return o})();function ui(o,l){if(o&1){let r=C();e(0,` 88 `),s(1,"app-dynamic-form",1,0),x("onSubmit",function(t){S(r);let n=c();return g(n.save(t))}),e(3,` 89 `),s(4,"app-dynamic-form-field",2),e(5,` 90 `),a(),e(6,` 91 `),s(7,"app-dynamic-form-field",3),e(8,` 92 `),a(),e(9,` 93 `),s(10,"app-dynamic-form-field",4),e(11,` 94 `),a(),e(12,` 95 `),s(13,"app-dynamic-form-field",5),e(14,` 96 `),a(),e(15,` 97 `),s(16,"app-dynamic-form-field",6),e(17,` 98 `),a(),e(18,` 99 `),s(19,"app-dynamic-form-field",7),e(20,` 100 `),a(),e(21,` 101 `),s(22,"app-dynamic-form-field",8),e(23,` 102 `),a(),e(24,` 103 `),s(25,"app-dynamic-form-field",9),e(26,` 104 `),a(),e(27,` 105 `),s(28,"app-dynamic-form-field",10),e(29,` 106 `),a(),e(30,` 107 `),s(31,"app-dynamic-form-field",11),e(32,` 108 `),a(),e(33,` 109 `),a(),e(34,` 110`)}if(o&2){let r=c();m(),p("fields",r.fields)("entity",r.customData)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("showCancelButton",!1)("buttonsPosition","left")}}var At=(()=>{let l=class l{constructor(i,t,n,d,u){this.siteDataService=i,this.route=t,this.staffService=n,this.sharedStaffService=d,this.formService=u,this.unsubscribe$=new U,this.loading=!0}ngOnInit(){this.clubUserID=+Q(this.route,"id"),F([this.sharedStaffService.getStaffGearDataMetadata(),this.staffService.getStaffCustomData(this.clubUserID)]).pipe(D(this.unsubscribe$)).subscribe({next:i=>
110{this.siteDataService.hideSiteLoader(),this.fields=i[0].fields,this.customData=i[1],this.loading=!1}})}save(i){(this.customData?.clubUserID?this.staffService.updateStaffGearData(this.clubUserID,i):this.staffService.createStaffGearData(this.clubUserID,i)).pipe(D(this.unsubscribe$)).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Gear saved successfully"),this.formService.hideFormLoader()},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem saving the gear fields"),this.formService.hideFormLoader()}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(f(y),f(M),f(z),f(pe),f(ae))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],standalone:!1,decls:1,vars:1,consts:[["form",""],["formID","custom-info-form",3,"onSubmit","fields","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","customDropdownField1ID","formID","custom-info-form"],["fieldName","customDropdownField2ID","formID","custom-info-form"],["fieldName","customDropdownField3ID","formID","custom-info-form"],["fieldName","customDropdownField4ID","formID","custom-info-form"],["fieldName","customDropdownField5ID","formID","custom-info-form"],["fieldName","customDropdownField6ID","formID","custom-info-form"],["fieldName","customDropdownField7ID","formID","custom-info-form"],["fieldName","customDropdownField8ID","formID","custom-info-form"],["fieldName","customDropdownField9ID","formID","custom-info-form"],["fieldName","customDropdownField10ID","formID","custom-info-form"]],template:function(t,n){t&1&&h(0,ui,35,8),t&2&&_(n.fields?0:-1)},dependencies:[Pe,Te],encapsulation:2});let o=l;return o})();function hi(o,l){if(o&1){let r=C();e(0,` 111 `),s(1,"app-shared-staff-documents",1),x("onSave",function(){S(r);let t=c();return g(t.save())})("onDownload",function(t){S(r);let n=c();return g(n.downloadDocument(t))})("onDelete",function(t){S(r);let n=c();return g(n.deleteDocument(t.controlName,t.document))}),e(2,` 112 `),a(),e(3,` 113 `)}if(o&2){let r=c();m(),p("fields",r.fields)("files",r.files)("showCancel",!1)}}var Mt=(()=>{let l=class l{constructor(i,t,n,d,u){this.siteDataService=i,this.userService=t,this.route=n,this.staffService=d,this.formService=u,this.unsubsribe$=new U,this.loading=!0,this.files={},this.maxFileSizeBytes=Ke,this.showEditDialog=!1}isUserDocument(i){return typeof i.userDocumentID=="number"}doneLoading(){this.siteDataService.hideSiteLoader()}ngOnInit(){this.clubUserID=+Q(this.route,"id"),this.staffService.getStaffDocumentsMetadata().pipe(ge(i=>{this.fields=i.fields}),We(()=>{if(this.fields&&this.fields.some(i=>i.documentTypeID)){let i=[];return this.fields.filter(t=>t.documentTypeID).forEach(t=>{let n=this.userService.getUserDocument(this.clubUserID,t.documentTypeID).pipe(ge(d=>{d?.length&&(this.files[t.controlName]=d.map(u=>({document:u,documentTypeID:t.documentTypeID})))}));i.push(n)}),i.length?F(i):he(null)}else return he(null)}),D(this.unsubsribe$)).subscribe(()=>{this.loading=!1,this.siteDataService.hideSiteLoader()})}save(){let i=[];Object.keys(this.files).forEach(t=>{this.files[t].forEach(n=>{if(n.hasChanged||!n.document.isUploaded){let d=this.userService.createUserDocument(this.clubUserID,n.file,n.documentTypeID).pipe(ge(u=>{n.document=u,n.hasChanged=!1,n.document.isUploaded=!0}));i.push(d)}})}),i.length?F(i).pipe(D(this.unsubsribe$)).subscribe({next:()=>{this.staffDocumentsComponent.saveSuccess()},error:()=>{this.staffDocumentsComponent.saveError()}}):this.staffDocumentsComponent.saveSuccess()}downloadDocument(i){if(!this.isUserDocument(i)){this.siteDataService.showSiteErrorAlert("The requested file could not be found.");return}this.userService.downloadUserDocument(this.clubUserID,i.userDocumentID).pipe(D(this.unsubsribe$)).subscribe({next:t=>{ye(t)},error:()=>{this.siteDataService.showSiteErrorAlert("The requested file could not be found.")}})}deleteDocument(i,t){if(!this.isUserDocument(t)){this.staffDocumentsComponent.deleteError();return}this.userService.deleteUserDocument(this.clubUserID,t.userDocumentID).pipe(D(this.unsubsribe$)).subscribe({next:()=>{let n=this.files[i].findIndex(d=>d.document.userDocumentID===t.userDocumentID);this.files[i].splice(n,1),this.files=je({},this.files),this.formService.hideFormLoader(),this.siteDataService.showSiteSuccessAlert("Document deleted successfully")},error:()=>{this.staffDocumentsComponent.deleteError()}})}ngOnDestroy(){this.unsubsribe$.next(),this.unsubsribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(f(y),f(R),f(M),f(pe),f(ae))},l.\u0275cmp=b({type:l,selectors:[["app-staff-documents"]],viewQuery:function(t,n){if(t&1&&K(Fe,5),t&2){let d;X(d=Z())&&(n.staffDocumentsComponent=d.first)}},standalone:!1,decls:3,vars:1,consts:[[1,"container","m-0","p-0"],[3,"onSave","onDownload","onDelete","fields","files","showCancel"]],template:function(t,n){t&1&&(s(0,"div",0),e(1,` 114 `),h(2,hi,4,3),a()),t&2&&(m(2),_(!n.loading&&n.fields?2:-1))},dependencies:[Fe],encapsulation:2});let o=l;return o}
114)();function _i(o,l){if(o&1){let r=C();e(0,` 115 `),s(1,"app-dynamic-form",1,0),x("onSubmit",function(t){S(r);let n=c();return g(n.save(t))}),e(3,` 116 `),s(4,"app-dynamic-form-field",2),e(5,` 117 `),a(),e(6,` 118 `),s(7,"app-dynamic-form-field",3),e(8,` 119 `),a(),e(9,` 120 `),s(10,"app-dynamic-form-field",4),e(11,` 121 `),a(),e(12,` 122 `),a(),e(13,` 123`)}if(o&2){let r=c();m(),p("fields",r.fields)("entity",r.employment)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("showCancelButton",!1)("buttonsPosition","left")}}var Ft=(()=>{let l=class l{constructor(i,t,n,d,u){this.siteDataService=i,this.route=t,this.staffService=n,this.sharedStaffService=d,this.formService=u,this.unsubscribe$=new U,this.loading=!0}ngOnInit(){this.clubUserID=+Q(this.route,"id"),F([this.sharedStaffService.getStaffEmploymentMetadata(),this.staffService.getStaffEmployment(this.clubUserID)]).pipe(D(this.unsubscribe$)).subscribe({next:i=>{this.siteDataService.hideSiteLoader(),this.fields=i[0].fields,this.employment=i[1],this.loading=!1}})}save(i){(this.employment?this.staffService.updateStaffEmployment(this.clubUserID,i):this.staffService.createStaffEmployment(this.clubUserID,i)).pipe(D(this.unsubscribe$)).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Employment info saved successfully"),this.formService.hideFormLoader()},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem saving the employment info"),this.formService.hideFormLoader()}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(f(y),f(M),f(z),f(pe),f(ae))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],standalone:!1,decls:1,vars:1,consts:[["form",""],["formID","employment-info-form",3,"onSubmit","fields","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","employer","formID","employment-info-form"],["fieldName","jobTitle","formID","employment-info-form"],["fieldName","industry","formID","employment-info-form"]],template:function(t,n){t&1&&h(0,_i,14,8),t&2&&_(n.fields?0:-1)},dependencies:[Pe,Te],encapsulation:2});let o=l;return o})();function gi(o,l){o&1&&(e(0,` 124 `),s(1,"tr"),e(2,` 125 `),s(3,"td"),e(4,` 126 None 127 `),a(),e(5,` 128 `),a(),e(6,` 129 `))}function xi(o,l){o&1&&(e(0,` 130 `),s(1,"tr"),e(2,` 131 `),s(3,"th"),e(4,` 132 `),v(5,"p-tableHeaderCheckbox"),e(6,` 133 `),a(),e(7,` 134 `),s(8,"th"),e(9,"Program"),a(),e(10,` 135 `),s(11,"th"),e(12,"Registration"),a(),e(13,` 136 `),s(14,"th"),e(15,"Player Pool"),a(),e(16,` 137 `),a(),e(17,` 138 `))}function Ci(o,l){if(o&1){let r=C();e(0),s(1,"a",19),x("click",function(){let t=S(r).$implicit,n=c().$implicit,d=c(2);return g(d.unassign(n.registrationID,t.playerPoolID))}),e(2,"Unassign"),a(),v(3,"br"),e(4,` 139 `)}if(o&2){let r=l.$implicit;k(` 140 `,r.playerPool.name," ")}}function vi(o,l){if(o&1&&(e(0,` 141 `),s(1,"tr"),e(2,` 142 `),s(3,"td"),e(4,` 143 `),v(5,"p-tableCheckbox",18),e(6,` 144 `),a(),e(7,` 145 `),s(8,"td"),e(9),a(),e(10,` 146 `),s(11,"td"),e(12),a(),e(13,` 147 `),s(14,"td"),e(15,` 148 `),j(16,Ci,5,1,null,null,$),a(),e(18,` 149 `),a(),e(19,` 150 `)),o&2){let r=l.$implicit,i=c(2);m(5),p("value",r),m(4),q(r.program.name),m(3),q(r.name),m(4),W(i.getPlayerPoolAssignments(r.registrationID))}}function bi(o,l){if(o&1){let r=C();e(0,` 151 `),s(1,"section"),e(2,` 152 `),s(3,"div",12),e(4,` 153 `),s(5,"p-table",13),T("selectionChange",function(t){S(r);let n=c();return I(n.selectedRegistrations,t)||(n.selectedRegistrations=t),g(t)}),e(6,` 154 `),N(7,gi,7,0,"ng-template",14),e(8,` 155 `),N(9,xi,18,0,"ng-template",15),e(10,` 156 `),N(11,vi,20,3,"ng-template",16),e(12,` 157 `),a(),e(13,` 158 `),s(14,"button",17),x("click",function(){S(r);let t=c();return g(t.showAssignModal=!0)}),e(15,"Assign"),a(),e(16,` 159 `),v(17,"br")(18,"br"),e(19,` 160 `),a(),e(20,` 161`),a(),e(21,` 162`)}if(o&2){let r=c();m(5),p("value",r.registrations)("tableStyleClass","mb-3")("loading",r.loading),w("selection",r.selectedRegistrations),m(9),p("disabled",!r.selectedRegistrations||r.selectedRegistrations.length===0)}}var jt=(()=>{let l=class l{constructor(i,t,n,d,u,Re){this.tryoutService=i,this.staffService=t,this.route=n,this.programService=d,this.registrationService=u,this.siteDataService=Re,this.AriaLabels=ne,this.loading=!0,this.showTable=!1,this.showAssignMo
162dal=!1,this.tryoutDateRanges=et}ngOnInit(){this.clubUserID=+this.route.snapshot.parent.params.id,F({programs:this.programService.getProgramsByType([B.TRYOUTS]),playerPools:this.tryoutService.playerPools?he(null):this.tryoutService.getPlayerPools()}).subscribe(i=>{this.selectedTryoutDateRange=this.tryoutDateRanges[0],this.programs=i.programs.results,i.playerPools&&(this.tryoutService.playerPools=i.playerPools),this.programs.length>0?this.updateRegistrations():(this.siteDataService.hideSiteLoader(),this.loading=!1),this.siteDataService.hideSiteLoader()})}unassign(i,t){this.staffService.unassignFromPlayerPool(i,this.clubUserID,t).subscribe({next:()=>{this.assignments=this.assignments.filter(n=>!(n.playerPoolID===t&&n.clubUserID===this.clubUserID&&n.registrationID===i)),this.siteDataService.showSiteSuccessAlert("Unassignment processed successfully.")},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request.")}})}assignStaff(){this.selectedRegistrations.length>0&&this.staffService.assignToPlayerPool(this.selectedRegistrations.map(i=>i.registrationID),this.assignPlayerPools?.map(i=>i.playerPoolID),this.clubUserID).subscribe({next:()=>{this.selectedRegistrations.forEach(i=>{this.assignPlayerPools.forEach(t=>{if(this.assignments.findIndex(n=>n.playerPoolID===t.playerPoolID&&n.clubUserID===this.clubUserID&&n.registrationID===i.registrationID)===-1){let n=new _t;n.clubUserID=this.clubUserID,n.registrationID=i.registrationID,n.playerPoolID=t.playerPoolID,n.playerPool=t,this.assignments.push(n)}})}),this.assignments.sort((i,t)=>i.playerPool.name.localeCompare(t.playerPool.name)),this.assignPlayerPools=void 0,this.selectedRegistrations=[],this.tryoutService.staff=void 0,this.siteDataService.showSiteSuccessAlert("Assignment(s) saved successfully."),this.showAssignModal=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request."),this.showAssignModal=!1}})}getPlayerPoolAssignments(i){return this.assignments.filter(t=>t.registrationID===i)}updateRegistrations(){this.loading=!0;let i=new Date;i.setMonth(i.getMonth()-this.selectedTryoutDateRange.value),this.registrationService.getFilteredRegistrations(this.programs.map(t=>t.programID),i,null,!1,!1).subscribe(t=>{this.registrations=t,this.registrations?.length>0?(this.registrations.forEach(n=>n.program={name:this.programs.find(d=>d.programID===n.programID).name,programID:this.programs.find(d=>d.programID===n.programID).programID}),this.registrations.sort((n,d)=>n.program.name.localeCompare(d.program.name)),this.staffService.getPoolAssignments(this.clubUserID,this.registrations.map(n=>n.registrationID)).subscribe({next:n=>{this.assignments=n,this.loading=!1,this.showTable=!0,this.siteDataService.hideSiteLoader()},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})):(this.showTable=!1,this.siteDataService.hideSiteLoader())})}};l.\u0275fac=function(t){return new(t||l)(f(Ae),f(z),f(M),f(de),f(Ue),f(y))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],standalone:!1,decls:42,vars:14,consts:[[1,"my-4"],[1,"text-uppercase","text-medium","d-inline-block","mr-2"],["optionLabel","label",3,"ngModelChange","onChange","options","ngModel"],["header","Assign To Pools",3,"visibleChange","visible","closable","modal","styleClass"],[1,"form-wrapper"],[1,"horizontal-form"],[1,"form-group"],["optionLabel","name","appendTo","body",3,"ngModelChange","autofocusFilter","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel"],["slot","secondary"],[1,"btn",3,"click"],["slot","primary"],[1,"btn","btn-primary",3,"click"],[1,"table-responsive"],["sortField","lastName","dataKey","registrationID",1,"table","table-striped","table-sm",3,"selectionChange","value","tableStyleClass","loading","selection"],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],[1,"btn","btn-primary",3,"click","disabled"],[3,"value"],[3,"click"]],template:function(t,n){t&1&&(s(0,"div",0),e(1,` 163 `),s(2,"span",1),e(3,"View tryouts from:"),a(),e(4,` 164 `),s(5,"p-select",2),T("ngModelChange",function(u){return I(n.selectedTryoutDateRange,u)||(n.selectedTryoutDateRange=u),u}),x("onChange",function(){return n.updateRegistrations()}),e(6,` 165 `),a(),e(7,` 166`),a(),e(8,` 167`),h(9,bi,22,5),s(10,"p-dialog",3),T("visibleChange",function(u){return I(n.showAssignMo
167dal,u)||(n.showAssignModal=u),u}),e(11,` 168 `),s(12,"div",4),e(13,` 169 `),s(14,"div",5),e(15,` 170 `),s(16,"div",6),e(17,` 171 `),s(18,"label"),e(19,"Player Pool"),a(),e(20,` 172 `),s(21,"p-multiSelect",7),T("ngModelChange",function(u){return I(n.assignPlayerPools,u)||(n.assignPlayerPools=u),u}),e(22,` 173 `),a(),e(23,` 174 `),a(),e(24,` 175 176 `),s(25,"app-dialog-footer"),e(26,` 177 `),E(27,8),e(28,` 178 `),s(29,"button",9),x("click",function(){return n.showAssignModal=!1}),e(30,"Cancel"),a(),e(31,` 179 `),A(),e(32,` 180 `),E(33,10),e(34,` 181 `),s(35,"button",11),x("click",function(){return n.assignStaff()}),e(36,"Save"),a(),e(37,` 182 `),A(),e(38,` 183 `),a(),e(39,` 184 185 `),a(),e(40,` 186 `),a(),e(41,` 187`),a()),t&2&&(m(5),p("options",n.tryoutDateRanges),w("ngModel",n.selectedTryoutDateRange),m(4),_(n.showTable?9:-1),m(),w("visible",n.showAssignModal),p("closable",!1)("modal",!0)("styleClass","standardWidthDialog"),m(11),p("autofocusFilter",!0),w("ngModel",n.assignPlayerPools),p("options",n.tryoutService.playerPools)("filter",!0)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} player pools selected"))},dependencies:[ee,te,ie,ce,me,we,Ie,re,oe,le],encapsulation:2});let o=l;return o})();var Di=(o,l)=>l.roleID;function wi(o,l){if(o&1){let r=C();e(0,` 188 `),s(1,"p-select",8),T("ngModelChange",function(t){S(r);let n=c();return I(n.selectedProgramType,t)||(n.selectedProgramType=t),g(t)}),x("onChange",function(){S(r);let t=c();return g(t.getPrograms())}),a(),e(2,` 189 `)}if(o&2){let r=c();m(),w("ngModel",r.selectedProgramType),p("options",r.programTypes)}}function Ii(o,l){if(o&1){let r=C();e(0,` 190 `),s(1,"li",11),e(2,` 191 `),s(3,"a",12),x("click",function(){let t=S(r).$implicit,n=c(2);return g(n.activeTab=t.roleID)}),e(4),a(),e(5,` 192 `),a(),e(6,` 193 `)}if(o&2){let r=l.$implicit,i=c(2);m(),_e("active",i.activeTab===r.roleID),m(2),ve("aria-selected",i.activeTab===r.roleID),m(),k(` 194 `,r.name,` 195 `)}}function Ti(o,l){o&1&&(e(0,` 196 `),s(1,"tr"),e(2,` 197 `),s(3,"td",19),e(4,` 198 None 199 `),a(),e(5,` 200 `),a(),e(6,` 201 `))}function Pi(o,l){o&1&&(e(0,` 202 `),s(1,"th"),e(2,"Team"),a(),e(3,` 203 `))}function Ei(o,l){o&1&&(e(0,` 204 `),s(1,"th"),e(2,"Program"),a(),e(3,` 205 `))}function Ai(o,l){if(o&1&&(e(0,` 206 `),s(1,"tr"),e(2,` 207 `),h(3,Pi,4,0),h(4,Ei,4,0),v(5,"th"),e(6,` 208 `),a(),e(7,` 209 `)),o&2){let r=c(4);m(3),_((r.teams==null?null:r.teams.length)>0?3:-1),m(),_((r.teams==null?null:r.teams.length)===0?4:-1)}}function Mi(o,l){o&1&&(e(0,` 210 `),v(1,"i",21),e(2,` 211 `))}function Fi(o,l){if(o&1){let r=C();e(0,` 212 `),s(1,"tr"),e(2,` 213 `),s(3,"td"),e(4),a(),e(5,` 214 `),s(6,"td"),e(7,` 215 `),h(8,Mi,3,0),s(9,"a",20),x("click",function(){let t=S(r).$implicit,n=c(2).$implicit,d=c(2);return g(d.unassign(t.teamID,n.roleID))}),e(10,"Unassign"),a(),v(11,"br"),e(12,` 216 `),a(),e(13,` 217 `),a(),e(14,` 218 `)}if(o&2){let r=l.$implicit,i=c(2).$implicit,t=c(2);m(4),q((t.teams==null?null:t.teams.length)>0?r.team==null?null:r.team.name:t.selectedProgram.name),m(4),_(i.roleID===3&&!r.secondary&&(t.teams==null?null:t.teams.length)>0?8:-1)}}function Ui(o,l){if(o&1){let r=C();e(0,` 219 `),s(1,"div",13),e(2,` 220 `),s(3,"p-table",14),e(4,` 221 `),N(5,Ti,7,0,"ng-template",15),e(6,` 222 `),N(7,Ai,8,2,"ng-template",16),e(8,` 223 `),N(9,Fi,15,2,"ng-template",17),e(10,` 224 `),a(),e(11,` 225 `),s(12,"button",18),x("click",function(){S(r);let t=c().$implicit,n=c(2);return g(n.showAssign(t.roleID))}),e(13,"Assign"),a(),e(14,` 226 `),v(15,"br")(16,"br"),e(17,` 227 `),a(),e(18,` 228 `)}if(o&2){let r=c().$implicit,i=c(2);m(3),p("value",i.getTeamAssignments(r.roleID))("tableStyleClass","mb-3")("loading",i.loading)}}function Ri(o,l){if(o&1&&(e(0,` 229 `),h(1,Ui,19,3)),o&2){let r=l.$implicit,i=c(2);m(),_(i.activeTab===r.roleID?1:-1)}}function Vi(o,l){if(o&1&&(e(0,` 230 `),s(1,"section"),e(2,` 231 `),E(3),e(4,` 232 `),s(5,"div",9),e(6,` 233 `),s(7,"ul",10),e(8,` 234 `),j(9,Ii,7,4,null,null,$),a(),e(11,` 235 `),a(),e(12,` 236 `),j(13,Ri,2,1,null,null,Di),A(),e(15,` 237 `),a(),e(16,` 238 `)),o&2){let r=c();m(9),W(r.roles),m(4),W(r.roles)}}function Li(o,l){if(o&1){let r=C();e(0,` 239 `),s(1,"div",4),e(2,` 240 `),s(3,"label"),e(4,"Team"),a(),e(5,` 241 `),s(6,"p-multiSelect",27),T("ngModelChange",function(t){S(r);let n=c(2);return I(n.assignTeams,t)||(n.assignTeams=t),g(t)}),e(7,` 242 `),a(),e(8,` 243 `),a(),e(9,` 244 `)}if(o&2){let r=c(2);m(6),p("autofocusFilter",!0),w("ngModel",r.assignTeams),p("options",r.teams)("filter",!0)("showToggleAll",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} team(s) selected")}}function ki(o,l){if(o&1){let r=C();e(0,` 245 `),s(1,"div",4),e(2,` 246 `),s(3,"label",28),e(4,"Assistant Coach"),a(),e(5,` 247 `),s(6,"p-checkbox",29),T("ngModelChange",function(t){S(r);let n=c(2);return I(n.secondary,t)||(n.secondary=t),g(t)}),a(),e(7,` 248 `),a(),e(8,` 249 `)}if(o&2){let r=c(2);m(6),w("ngModel",r.secondary)}}function Oi(o,l){if(o&1&&(e(0,` 250 `),s(1,"div",30),e(2),a(),e(3,` 251 `)),o&2){let r=c(2);m(2),k(` 252 `,r.error,` 253 `)}}function Ni(o,l){if(o&1){let r=C();e(0,` 254 `),s(1,"div",22),e(2,` 255 `),s(3,"div",23),e(4,`
256 `),h(5,Li,10,7),h(6,ki,9,1),h(7,Oi,4,1),s(8,"app-dialog-footer"),e(9,` 257 `),E(10,24),e(11,` 258 `),s(12,"button",25),x("click",function(){S(r);let t=c();return t.error="",g(t.showAssignModal=!1)}),e(13,"Cancel"),a(),e(14,` 259 `),A(),e(15,` 260 `),E(16,26),e(17,` 261 `),s(18,"button",18),x("click",function(){S(r);let t=c();return g(t.assignStaff())}),e(19,"Save"),a(),e(20,` 262 `),A(),e(21,` 263 `),a(),e(22,` 264 265 `),a(),e(23,` 266 `),a(),e(24,` 267 `)}if(o&2){let r=c();m(5),_(!r.selectedProgramType||r.selectedProgramType!==r.programType.TRYOUTS?5:-1),m(),_(r.roleID===r.RoleID.COACH||r.roleID===r.RoleID.VOLUNTEER_COACH?6:-1),m(),_(r.error?7:-1)}}var Wt=(()=>{let l=class l{constructor(i,t,n,d,u,Re){this.teamService=i,this.programService=t,this.staffService=n,this.route=d,this.userService=u,this.siteDataService=Re,this.AriaLabels=ne,this.loading=!0,this.showTable=!1,this.showAssignModal=!1,this.activeTab=0,this.programType=B,this.RoleID=L}ngOnInit(){this.clubUserID=+this.route.snapshot.parent.params.id,F([this.programService.getProgramsByType([B.TRYOUTS,B.SUPPLEMENTAL,B.TEAM,B.TOURNAMENT,B.OTHER,B.LEAGUE,B.CAMPS_AND_CLINICS],!1,!1,tt.INCLUDE,!1,!1,1,1e3,!1,"startDate DESC"),this.teamService.getTeams(),this.userService.getUserCurrentRoles(this.clubUserID),this.programService.getProgramTypes()]).subscribe(i=>{this.programs=i[0].results,this.filteredPrograms=i[0].results,this.filteredProgramsOptions=[],this.filteredPrograms.forEach(t=>{this.filteredProgramsOptions.push({label:t.name,value:t.programID})}),this.allTeams=i[1],i[2]?.length&&(this.roles=i[2].filter(t=>[L.COACH,L.VOLUNTEER_COACH,L.DIRECTOR,L.TEAM_MANAGER,L.VOLUNTEER_TEAM_MANAGER].includes(t.roleID))),this.activeTab=this.roles[0]?.roleID||0,this.programTypes=i[3],this.selectedProgramType=this.programTypes[0].value,this.getPrograms(),this.siteDataService.hideSiteLoader()})}search(){this.programID&&(this.loading=!0,this.assignTeams=void 0,this.activeTab=this.roles[0]?.roleID||0,this.staffService.getStaffAssignments(this.programID,void 0,void 0).subscribe({next:i=>{this.assignments=i,this.loading=!1,this.showTable=!0},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}}))}unassign(i,t){this.staffService.unassignFromTeam(this.programID,this.clubUserID,i,t).subscribe(()=>{this.assignments=this.assignments.filter(n=>!(n.teamID===i&&n.clubUserID===this.clubUserID&&n.roleID===t)),this.siteDataService.showSiteSuccessAlert("Unassignment processed successfully.")},()=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request.")})}showAssign(i){this.roleID=i,this.secondary=!1,this.assignTeams=void 0,this.teams.length>0?this.showAssignModal=!0:this.assignStaff()}assignStaff(){!this.secondary&&(this.roleID===L.COACH||this.roleID===L.VOLUNTEER_COACH)&&this.assignments.some(i=>i.roleID===this.roleID&&!i.secondary&&i.clubUserID!==this.clubUserID&&this.assignTeams?.map(t=>t.teamID).includes(i.teamID))?this.error="Only one head coach can be assigned to a team.":(this.error="",this.staffService.assignStaffToTeam(this.programID,this.assignTeams?.map(i=>i.teamID),[this.clubUserID],this.roleID,this.secondary&&(this.roleID===L.COACH||this.roleID===L.VOLUNTEER_COACH)).subscribe({next:()=>{if(this.assignTeams)this.assignTeams.forEach(i=>{if(this.assignments.findIndex(t=>t.teamID===i.teamID&&t.clubUserID===this.clubUserID&&t.roleID===this.roleID)===-1){let t=new Le;t.clubUserID=this.clubUserID,t.teamID=i.teamID,t.roleID=this.roleID,t.team=i,t.secondary=this.secondary&&(this.roleID===L.COACH||this.roleID===L.VOLUNTEER_COACH),this.assignments.push(t)}});else if(this.assignments.findIndex(i=>i.clubUserID===this.clubUserID&&i.roleID===this.roleID)===-1){let i=new Le;i.clubUserID=this.clubUserID,i.roleID=this.roleID,i.teamID=null,this.assignments.push(i)}this.assignments.sort((i,t)=>i.team.name.localeCompare(t.team.name)),this.assignTeams=void 0,this.siteDataService.showSiteSuccessAlert("Assignment(s) saved successfully."),this.showAssignMo
267dal=!1},error:i=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request. "+i.error),this.showAssignModal=!1}}))}getTeamAssignments(i){return this.assignments.filter(t=>t.roleID===i&&t.clubUserID===this.clubUserID)}getPrograms(){this.filteredPrograms=this.programs.filter(i=>+this.selectedProgramType===i.programTypeID),this.programID=this.filteredPrograms[0]?.programID,this.filteredProgramsOptions=[],this.filteredPrograms.forEach(i=>{this.filteredProgramsOptions.push({label:i.name,value:i.programID})}),this.programID&&(this.selectedProgram=this.filteredPrograms[0],this.updateTeams(),this.search(),this.showTable=!1)}setProgram(){this.selectedProgram=this.filteredPrograms.find(i=>i.programID===this.programID),this.updateTeams(),this.showTable=!1}updateTeams(){this.teamService.getTeamsForProgram(this.programID).subscribe(i=>{this.teams=i,this.siteDataService.hideSiteLoader()})}};l.\u0275fac=function(t){return new(t||l)(f(ct),f(de),f(Me),f(M),f(R),f(y))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],standalone:!1,decls:36,vars:11,consts:[["role","main"],[3,"adminFilterSearch","hideReset","showLabels"],["primary",""],[1,"col","pr-0"],[1,"form-group"],["styleClass","full-width","filter","true","appendTo","body",3,"ngModelChange","onChange","ngModel","options"],["advanced",""],["header","Assign Staff",3,"visibleChange","visible","closable","modal","styleClass"],["styleClass","full-width","appendTo","body",3,"ngModelChange","onChange","ngModel","options"],[1,"tabs"],["role","tablist",1,"tab-nav","no-bullets","inline-list"],[1,"nav-item"],["href","javascript:void(0);","role","tab","aria-controls","home",1,"nav-link",3,"click"],[1,"table-responsive"],[1,"table","table-striped","table-sm",3,"value","tableStyleClass","loading"],["pTemplate","emptymessage"],["pTemplate","header"],["pTemplate","body"],[1,"btn","btn-primary",3,"click"],["colspan","10"],[3,"click"],[1,"fas","fa-flag"],[1,"form-wrapper"],[1,"horizontal-form"],["slot","secondary"],[1,"btn",3,"click"],["slot","primary"],["optionLabel","name","appendTo","body",3,"ngModelChange","autofocusFilter","ngModel","options","filter","showToggleAll","maxSelectedLabels","selectedItemsLabel"],["for","secondary-team"],["name","secondary-team","binary","true",3,"ngModelChange","ngModel"],[1,"form-error-message","form-error-message-full"]],template:function(t,n){t&1&&(s(0,"main",0),e(1,` 268 `),s(2,"app-admin-filter",1),x("adminFilterSearch",function(){return n.search()}),e(3,` 269 `),E(4,2),e(5,` 270 `),s(6,"div",3),e(7,` 271 `),s(8,"div",4),e(9,` 272 `),s(10,"label"),e(11,"Program Type"),a(),e(12,` 273 `),h(13,wi,3,2),a(),e(14,` 274 `),a(),e(15,`
275 `),s(16,"div",3),e(17,` 276 `),s(18,"div",4),e(19,` 277 `),s(20,"label"),e(21,"Program"),a(),e(22,` 278 `),s(23,"p-select",5),T("ngModelChange",function(u){return I(n.programID,u)||(n.programID=u),u}),x("onChange",function(){return n.setProgram()}),a(),e(24,` 279 `),a(),e(25,` 280 `),a(),e(26,` 281 `),A(),e(27,` 282 `),$e(28,6),e(29,` 283 `),a(),e(30,` 284 `),h(31,Vi,17,0),a(),e(32,` 285`),s(33,"p-dialog",7),T("visibleChange",function(u){return I(n.showAssignModal,u)||(n.showAssignModal=u),u}),e(34,` 286 `),h(35,Ni,25,3),a()),t&2&&(m(2),p("hideReset",!0)("showLabels",!0),m(11),_(n.programTypes?13:-1),m(10),w("ngModel",n.programID),p("options",n.filteredProgramsOptions),m(8),_(n.showTable?31:-1),m(2),w("visible",n.showAssignModal),p("closable",!1)("modal",!0)("styleClass","standardWidthDialog"),m(2),_(n.showAssignModal?35:-1))},dependencies:[ee,te,ie,Ee,ce,me,re,st,oe,le],encapsulation:2});let o=l;return o})();var ji=()=>({"min-width":"50%"}),Wi=o=>["/admin/staff",o,"profile"];function Bi(o,l){if(o&1){let r=C();e(0,` 287 `),s(1,"div",10),e(2,` 288 `),s(3,"div",11),e(4,` 289 `),s(5,"label",19),e(6,"Roles"),a(),e(7,` 290 `),s(8,"p-multiSelect",20),T("ngModelChange",function(t){S(r);let n=c();return I(n.userService.permissionsFilters.roles,t)||(n.userService.permissionsFilters.roles=t),g(t)}),e(9,` 291 `),a(),e(10,` 292 `),a(),e(11,` 293 `),a(),e(12,` 294 `)}if(o&2){let r=c();m(8),w("ngModel",r.userService.permissionsFilters.roles),p("options",r.roles)("filter",!1)}}function $i(o,l){if(o&1){let r=C();e(0,` 295 `),s(1,"div",10),e(2,` 296 `),s(3,"div",11),e(4,` 297 `),s(5,"label",19),e(6,"Assigned Permission"),a(),e(7,` 298 `),s(8,"p-select",21),T("ngModelChange",function(t){S(r);let n=c();return I(n.userService.permissionsFilters.assignedPermissionID,t)||(n.userService.permissionsFilters.assignedPermissionID=t),g(t)}),e(9,` 299 `),a(),e(10,` 300 `),a(),e(11,` 301 `),a(),e(12,` 302 `)}if(o&2){let r=c();m(8),p("autofocusFilter",!0),w("ngModel",r.userService.permissionsFilters.assignedPermissionID),p("options",r.permissions)("filter",!0)}}function zi(o,l){if(o&1){let r=C();e(0,` 303 `),s(1,"div",10),e(2,` 304 `),s(3,"div",11),e(4,` 305 `),s(5,"label",19),e(6,"Not Assigned Permission"),a(),e(7,` 306 `),s(8,"p-select",22),T("ngModelChange",function(t){S(r);let n=c();return I(n.userService.permissionsFilters.unassignedPermissionID,t)||(n.userService.permissionsFilters.unassignedPermissionID=t),g(t)}),e(9,` 307 `),a(),e(10,` 308 `),a(),e(11,` 309 `),a(),e(12,` 310 `)}if(o&2){let r=c();m(8),p("autofocusFilter",!0),w("ngModel",r.userService.permissionsFilters.unassignedPermissionID),p("options",r.permissions)("filter",!0)}}function Hi(o,l){if(o&1&&(e(0,` 311 `),v(1,"p-sortIcon",28),e(2,` 312 `)),o&2){let r=c().$implicit;m(),p("field",r.field)}}function qi(o,l){if(o&1&&(e(0,` 313 `),s(1,"th",27),e(2),h(3,Hi,3,1),a(),e(4,` 314 `)),o&2){let r=l.$implicit,i=c(3);m(),p("pSortableColumn",r.field),ve("aria-label",i.AriaLabels.ACTIVATE_SORT),m(),k(` 315 `,r.header,` 316 `),m(),_(r.field?3:-1)}}function Qi(o,l){if(o&1&&(e(0,` 317 `),s(1,"tr"),e(2,` 318 `),s(3,"th"),e(4,` 319 `),s(5,"span",26),e(6,"Selection Column"),a(),e(7,` 320 `),v(8,"p-tableHeaderCheckbox"),e(9,` 321 `),a(),e(10,` 322 `),j(11,qi,5,4,null,null,$),a(),e(13,` 323 `)),o&2){let r=c(2);m(11),W(r.columns)}}function Gi(o,l){if(o&1&&(e(0,` 324 `),s(1,"tr"),e(2,` 325 `),s(3,"td"),e(4,` 326 `),s(5,"p-tableCheckbox",29),e(6,` 327 `),a(),e(7,` 328 `),a(),e(8,` 329 `),s(9,"td"),e(10,` 330 `),s(11,"a",30),e(12),a(),e(13,` 331 `),a(),e(14,` 332 `),s(15,"td"),e(16),a(),e(17,` 333 `),s(18,"td"),e(19),a(),e(20,` 334 `),s(21,"td"),e(22),a(),e(23,` 335 `),a(),e(24,` 336 `)),o&2){let r=l.$implicit,i=c(2);m(5),p("value",r),m(6),p("routerLink",Qe(6,Wi,r.id)),m(),q(r.lastName),m(4),q(r.firstName),m(3),q
336(r.email),m(3),k(` 337 `,i.getArrayString(r.roles),` 338 `)}}function Yi(o,l){if(o&1){let r=C();e(0,` 339 `),s(1,"p-table",23),x("onLazyLoad",function(t){S(r);let n=c();return g(n.search(t))}),T("selectionChange",function(t){S(r);let n=c();return I(n.selectedStaff,t)||(n.selectedStaff=t),g(t)}),e(2,` 340 `),N(3,Qi,14,0,"ng-template",24),e(4,` 341 `),N(5,Gi,25,8,"ng-template",25),e(6,` 342 `),a(),e(7,` 343 `)}if(o&2){let r=c();m(),p("columns",r.columns)("value",r.searchResults)("lazy",!0)("paginator",!0)("alwaysShowPaginator",!1)("totalRecords",r.totalRecords)("rows",500)("loading",r.loading),w("selection",r.selectedStaff)}}function Ji(o,l){if(o&1){let r=C();e(0,` 344 `),s(1,"div",31),e(2,` 345 `),s(3,"div",32),e(4,` 346 `),s(5,"div",11),e(6,` 347 `),s(7,"label"),e(8,"Permission"),a(),e(9,` 348 `),s(10,"p-multiSelect",33),T("ngModelChange",function(t){S(r);let n=c();return I(n.selectedPermissions,t)||(n.selectedPermissions=t),g(t)}),a(),e(11,` 349 `),a(),e(12,` 350 `),s(13,"app-dialog-footer"),e(14,` 351 `),E(15,34),e(16,` 352 `),s(17,"button",35),x("click",function(){S(r);let t=c();return g(t.showAssignModal=!1)}),e(18,"Cancel"),a(),e(19,` 353 `),A(),e(20,` 354 `),E(21,36),e(22,` 355 `),s(23,"button",17),x("click",function(){S(r);let t=c();return g(t.save())}),e(24,"Save"),a(),e(25,` 356 `),A(),e(26,` 357 `),a(),e(27,` 358 `),a(),e(28,` 359 `),a(),e(29,` 360 `)}if(o&2){let r=c();m(10),w("ngModel",r.selectedPermissions),p("filter",!0)("options",r.getModalPermissions())("autofocusFilter",!0)("maxSelectedLabels",1)("selectedItemsLabel","{0} items selected"),m(13),p("disabled",!(r.selectedPermissions!=null&&r.selectedPermissions.length))}}function Ki(o,l){if(o&1){let r=C();e(0,` 361 `),s(1,"app-yes-no-modal",37),x("onYesSelect",function(){S(r);let t=c();return g(t.removeRoles())})("onNoSelect",function(){S(r);let t=c();return g(t.showRemoveRoles=!1)}),e(2,` 362 `),s(3,"div",38),e(4,` 363 `),s(5,"app-inline-alert",39),e(6,` 364 By continuing all Roles & Permissions will be removed from the selected Staff member(s). Are you sure you 365 want to 366 proceed? 367 `),a(),e(7,` 368 `),a(),e(8,` 369 `),a(),e(9,` 370`)}o&2&&(m(),p("showModalText",!1),m(4),p("isInline",!0))}var Bt=(()=>{let l=class l{constructor(i,t,n){this.staffService=i,this.userService=t,this.siteDataService=n,this.AriaLabels=ne,this.totalRecords=0,this.loading=!0,this.showTable=!1,this.Permission=ft,this.showAssignModal=!1,this.showUnassignModal=!1,this.showRemoveRoles=!1,this.disableFinancialAidModule=!1,this.testUserOptions=Ze,this.columns=[{field:"lastName",header:"Last Name"},{field:"firstName",header:"First Name"},{field:"email",header:"Email"},{field:"roles",header:"Role(s)"}],this.unsubscribe$=new U}ngOnInit(){this.disableFinancialAidModule=this.siteDataService.clubSettings?.clubOptions?.find(i=>i.optionID===it.DISABLE_FINANCIAL_AID_MODULE)?.boolValue??!1,this.userService.permissionsFilters&&this.userService.permissionsFilters.page?this.showTable=!0:(this.userService.permissionsFilters=new fe,this.userService.permissionsFilters.rows=500),F({roles:this.userService.getRoles(),permissions:this.staffService.getPermissions()}).pipe(D(this.unsubscribe$)).subscribe(i=>{this.roles=i.roles,this.permissions=i.permissions,this.run(),this.siteDataService.hideSiteLoader()})}run(){this.userService.permissionsFilters.page=1,this.totalRecords=0,this.showTable?this.search():this.showTable=!0}search(i=null){let t=this.userService.permissionsFilters;i&&i.sortField&&(t.orderBy=i.sortField+" "+(i.sortOrder===1?"ASC":"DESC"),t.page=i.first/t.rows+1),t.getTotalCount=this.totalRecords===0,this.loading=!0,this.selectedStaff=[],this.userService.getPermissionsData().pipe(D(this.unsubscribe$)).subscribe({next:n=>{this.searchResults=n.results,t.getTotalCount&&(this.totalRecords=n.count),this.loading=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}resetFilters(){this.userService.permissionsFilters=new fe(this.userService.permissionsFilters.orderBy),this.userService.permissionsFilters.staffUserOption=3}getArrayString(i){return i?.length?Xe(i).join(", "):""}save(){(this.assignMode?this.staffService.assignPermissions(this.selectedStaff.map(i=>i.id),this.selectedPermissions):this.staffService.unassignPermissions(this.selectedStaff.map(i=>i.id),this.selectedPermissions)).pipe(D(this.unsubscribe$)).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Permissions saved successfully"),this.selectedPermissions=[],(this.userService.permissionsFilters.assignedPermissionID||this.userService.permissionsFilters.unassignedPermissionID)&&this.search(),this.showAssignMo
370dal=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem getting data.")}})}removeRoles(){this.staffService.unassignRoles(this.selectedStaff.map(i=>i.id)).pipe(D(this.unsubscribe$)).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Roles & Permissions removed successfully"),this.search(),this.showRemoveRoles=!1},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem processing your request.")}})}getModalPermissions(){return this.permissions.filter(i=>i.value!==null&&(!this.disableFinancialAidModule||i.value!==V.FinancialAidAdmin))}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(f(z),f(R),f(y))},l.\u0275cmp=b({type:l,selectors:[["ng-component"]],standalone:!1,decls:80,vars:21,consts:[["role","main"],["pageTitle","Roles & Permissions"],[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"],[1,"col-md-3"],[1,"form-group"],["for","test-user-option"],["styleClass","full-width","appendTo","body",3,"ngModelChange","ngModel","options"],[1,""],[1,"table-responsive"],[1,"pt-1","buttons-wrapper"],[1,"btn","btn-primary",3,"click","disabled"],[3,"visibleChange","visible","header","closable","modal"],["for","roles"],["inputId","roles","optionLabel","label","optionValue","value","appendTo","body",3,"ngModelChange","ngModel","options","filter"],["inputId","assignedPermissions","optionLabel","label","optionValue","value","appendTo","body",1,"full-width",3,"ngModelChange","autofocusFilter","ngModel","options","filter"],["inputId","unassignedPermissions","optionLabel","label","optionValue","value","appendTo","body",1,"full-width",3,"ngModelChange","autofocusFilter","ngModel","options","filter"],["sortField","lastName",1,"table","table-striped","table-sm",3,"onLazyLoad","selectionChange","columns","value","lazy","paginator","alwaysShowPaginator","totalRecords","rows","loading","selection"],["pTemplate","header"],["pTemplate","body"],[1,"sr-only"],[3,"pSortableColumn"],[3,"field"],[3,"value"],[3,"routerLink"],[1,"form-wrapper"],[1,"horizontal-form"],["appendTo","body",3,"ngModelChange","ngModel","filter","options","autofocusFilter","maxSelectedLabels","selectedItemsLabel"],["slot","secondary"],[1,"btn",3,"click"],["slot","primary"],["headerText","Are you sure you want to remove all Roles & Permissions?","dialogClass","standardWidthDialog","yesButtonText","Yes","noButtonText","No, Cancel",3,"onYesSelect","onNoSelect","showModalText"],[1,"text-medium","fw-600"],["alertType","warning",3,"isInline"]],template:function(t,n){t&1&&(s(0,"main",0),e(1,` 371 `),s(2,"app-admin-header",1),e(3,` 372 `),a(),e(4,` 373 `),s(5,"app-admin-filter",2),x("adminFilterReset",function(){return n.resetFilters()})("adminFilterSearch",function(){return n.run()}),e(6,` 374 `),E(7,3),e(8,` 375 `),s(9,"div",4),e(10,` 376 `),s(11,"input",5),T("ngModelChange",function(u){return I(n.userService.permissionsFilters.lastName,u)||(n.userService.permissionsFilters.lastName=u),u}),a(),e(12,` 377 `),v(13,"label",6),e(14,` 378 `),a(),e(15,` 379 `),s(16,"div",4),e(17,` 380 `),s(18,"input",7),T("ngModelChange",function(u){return I(n.userService.permissionsFilters.firstName,u)||(n.userService.permissionsFilters.firstName=u),u}),a(),e(19,` 381 `),v(20,"label",6),e(21,` 382 `),a(),e(22,` 383 `),A(),e(23,` 384 `),E(24,8),e(25,` 385 `),s(26,"div",9),e(27,` 386 `),E(28),e(29,` 387 `),h(30,Bi,13,3),A(),e(31,` 388 `),E(32),e(33,` 389 `),h(34,$i,13,4),A(),e(35,` 390 `),E(36),e(37,` 391 `),h(38,zi,13,4),A(),e(39,` 392 `),s(40,"div",10),e(41,` 393 `),s(42,"div",11),e(43,` 394 `),s(44,"label",12),e(45,"Test Users"),a(),e(46,` 395 `),s(47,"p-select",13),T("ngModelChange",function(u){return I(n.userService.permissionsFilters.testUserOption,u)||(n.userService.permissionsFilters.testUserOption=u),u}),e(48,` 396 `),a(),e(49,` 397 `),a(),e(50,` 398 `),a(),e(51,` 399 `),a(),e(52,` 400 `),A(),e(53,` 401 `),a(),e(54,` 402 `),s(55,"section",14),e(56,` 403 `),s(57,"div",15),e(58,` 404 `),h(59,Yi,8,9),a(),e(60,` 405 `),s(61,"div",16),e(62,` 406 `),s(63,"button",17),x("click",function(){return n.assignMode=!0,n.showAssignMo
406dal=!0}),e(64,"Assign Permission(s)"),a(),e(65,` 407 `),s(66,"button",17),x("click",function(){return n.assignMode=!1,n.showAssignModal=!0}),e(67,"Unassign Permission(s)"),a(),e(68,` 408 `),s(69,"button",17),x("click",function(){return n.showRemoveRoles=!0}),e(70,"Unassign ALL Roles & Permissions"),a(),e(71,` 409 `),a(),e(72,` 410 `),a(),e(73,` 411`),a(),e(74,` 412`),s(75,"p-dialog",18),T("visibleChange",function(u){return I(n.showAssignModal,u)||(n.showAssignModal=u),u}),e(76,` 413 `),h(77,Ji,30,7),a(),e(78,` 414`),h(79,Ki,10,2)),t&2&&(m(5),p("showAdvanced",!0),m(6),w("ngModel",n.userService.permissionsFilters.lastName),m(7),w("ngModel",n.userService.permissionsFilters.firstName),m(12),_(n.roles?30:-1),m(4),_(n.roles?34:-1),m(4),_(n.roles?38:-1),m(9),w("ngModel",n.userService.permissionsFilters.testUserOption),p("options",n.testUserOptions),m(12),_(n.showTable?59:-1),m(4),p("disabled",!(n.selectedStaff!=null&&n.selectedStaff.length)),m(3),p("disabled",!(n.selectedStaff!=null&&n.selectedStaff.length)),m(3),p("disabled",!(n.selectedStaff!=null&&n.selectedStaff.length)),m(6),ze(qe(20,ji)),w("visible",n.showAssignModal),p("header",n.assignMode?"Assign Permission(s)":"Unassign Permission(s)")("closable",!1)("modal",!0),m(2),_(n.showAssignModal?77:-1),m(2),_(n.showRemoveRoles?79:-1))},dependencies:[Ge,ee,te,be,ie,rt,G,Ee,mt,ce,me,at,lt,we,Ie,re,oe,le],styles:[".buttons-wrapper[_ngcontent-%COMP%]{position:sticky;bottom:0;background:var(--color-white);border-top:var(--border);padding-top:1rem;padding-bottom:1rem}"]});let o=l;return o})();var $t=(()=>{let l=class l{};l.\u0275fac=function(t){return new(t||l)},l.\u0275mod=Ce({type:l}),l.\u0275inj=xe({imports:[Ve.forChild([{path:"onboarding",canActivate:[P,se],loadChildren:()=>import("./chunk-JKBOOBKO.js").then(i=>i.StaffOnboardingModule),data:{permissions:[V.StaffOnboarding]}},{path:"forms",canActivate:[P,se],loadChildren:()=>import("./chunk-ST6I3QWT.js").then(i=>i.FormsAdminModule),data:{permissions:[V.StaffFormsAdmin]}},{path:"permissions",canActivate:[P,se],component:Bt,data:{permissions:[V.PermissionsAdmin]}},{path:"files",canActivate:[P,se],component:Oe,data:{permissions:[V.UserFileCabinet]}},{path:":id",canActivate:[P],component:Dt,children:[{path:"profile",component:Y,canActivate:[P],data:{isStaff:!0},children:[{path:"",component:xt}]},{path:"household",component:Y,canActivate:[P],data:{isStaff:!0},children:[{path:"",component:Ct}]},{path:"public-profile",canActivate:[P],component:wt},{path:"roles",component:bt,canActivate:[P,se],data:{permissions:[V.PermissionsAdmin]}},{path:"options",component:Y,canActivate:[P],data:{isStaff:!0},children:[{path:"",component:vt}]},{path:"tryout-pools",component:jt,canActivate:[P]},{path:"programs",component:Wt,canActivate:[P]},{path:"file-cabinet",component:Y,canActivate:[P],data:{isStaff:!0},children:[{path:"",component:Oe}]},{path:"onboarding",canActivate:[P],component:Tt},{path:"gear",component:Y,canActivate:[P],data:{isStaff:!0},children:[{path:"",component:At}]},{path:"employment",component:Y,canActivate:[P],data:{isStaff:!0},children:[{path:"",component:Ft}]},{path:"documents",component:Y,canActivate:[P],data:{isStaff:!0},children:[{path:"",component:Mt}]},{path:"",component:gt,canActivate:[P],data:{metaTitle:"Add User",isStaff:!0}}]},{path:"",canActivate:[P],component:It}]),Ve]});let o=l;return o})();var vs=(()=>{let l=class l{};l.\u0275fac=function(t){return new(t||l)},l.\u0275mod=Ce({type:l}),l.\u0275inj=xe({providers:[z,Me,R,Ae,de,Ue],imports:[dt,$t,ht,yt,ut]});let o=l;return o})();export{vs as StaffModule};
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.