1import{$h as I,_ as P,ba as $,fi as h,hd as o}from"./chunk-SMW7PHYX.js";var T=(()=>{let d=class d{constructor(e){this.webAPI=e}getPrograms(e){let a=new o;return e.programType!==void 0&&(a=a.append("programTypeID",e.programType.toString())),e.includeRemoved&&(a=a.append("includeRemoved",e.includeRemoved.toString())),e.includeChildrenClubs!=null&&(a=a.append("includeChildren",e.includeChildrenClubs.toString())),e.includeTeams!=null&&(a=a.append("includeTeams",e.includeTeams.toString())),e.includeProgramsPastEndDate!=null&&(a=a.append("includeProgramsPastEndDate",e.includeProgramsPastEndDate.toString())),e.includeProgramsFromLastSixMonths!=null&&(a=a.append("includeProgramsFromLastSixMonths",e.includeProgramsFromLastSixMonths.toString())),e.clubID?.length&&e.clubID.forEach(t=>{a=a.append("clubID",t.toString())}),e.includeRegistrations!=null&&(a=a.append("includeRegistrations",e.includeRegistrations.toString())),this.webAPI.getData("admin/programs/all",a)}getProgramsByType(e,a=!1,t=!0,i=I.INCLUDE,s=!1,p=!1,m=1,n=1e3,D=!1,u="name ASC",l=null,c=null){let r=new o;return r=r.append("assignedToCore",a.toString()),r=r.append("includeRemoved",t.toString()),r=r.append("expiredPrograms",i.toString()),r=r.append("includeTeams",p.toString()),r=r.append("hasAssignments",s.toString()),r=r.append("page",m.toString()),r=r.append("rows",n.toString()),r=r.append("includeCount",D.toString()),u&&(r=r.append("orderBy",u.toString())),l&&(r=r.append("programID",l.toString())),e.forEach(S=>{r=r.append("programTypeID",S.toString())}),c&&(r=r.append("registrationTemplateTypeID",c.toString())),this.webAPI.getData("admin/programs",r)}assignPlayersToTeam(e,a,t,i,s,p,m){let n=new o;return a&&(n=n.append("registrationID",a.toString())),i&&(n=n.append("reserve",i.toString())),s&&(n=n.append("secondary",s.toString())),p&&(n=n.append("guest",p.toString())),this.webAPI.postData(`admin/programs/${e}/assign-to-team/${t}`,m,n)}assignGuestPlayerToTeam(e,a,t,i,s,p,m=!1){let n=new o;return i&&(n=n.append("startDate",i.toLocaleDateString())),s&&(n=n.append("endDate",s.toLocaleDateString())),n=n.append("notify",m.toString()),this.webAPI.postData(`admin/programs/${e}/assign-to-team/${a}/guest/${t}`,p||[],n)}changePlayerTeam(e,a,t,i,s,p,m){let n={changeTeamID:a,teamID:t,secondary:i,reserve:s,guest:p};return this.webAPI.postData(`admin/programs/${e}/change-to-team/${m}`,n)}acceptPlayersToTeam(e,a,t){return this.webAPI.postData(`admin/programs/${e}/accept-to-team/${a}`,t)}getDeclineInviteMetadata(){return this.webAPI.getData("admin/programs/decline-invite/metadata")}declineInvite(e,a,t,i){return this.webAPI.postData(`admin/programs/${a}/players/${e}/teams/${t}/decline-invite`,i)}updateDeclineReason(e,a,t,i){return this.webAPI.putData(`admin/programs/${a}/players/${e}/teams/${t}/decline-invite-reason`,i)}acceptGuestPlayerToTeam(e,a,t){return this.webAPI.postData(`admin/programs/${e}/accept-to-team/${a}/guest/${t}`,null)}uninvitePlayer(e,a,t){return this.webAPI.deleteData(`admin/programs/${e}/players/${t}/teams/${a}/invite`)}uninvitePlayers(e,a,t){return this.webAPI.putData(`admin/programs/${e}/teams/${a}/uninvite`,t)}saveTeamVisibility(e,a,t){return this.webAPI.putData(`admin/programs/${e}/teams/visibility`,{teamIDs:a,visible:t})}rejectInvite(e,a,t){return this.webAPI.putData(`admin/programs/${e}/players/${t}/teams/${a}/reject-invite`,null)}suspendPlayer(e,a,t){return this.webAPI.putData(`admin/programs/${e}/players/${t}/teams/${a}/suspend`,null)}activatePlayer(e,a,t){return this.webAPI.putData(`admin/programs/${e}/players/${t}/teams/${a}/activate`,null)}invitePlayers(e,a,t){return this.webAPI.postData(`admin/programs/${e}/invite-players/${a}`,t,null,!0)}updateInviteAcceptBy(e,a,t,i){let s=new o;return s=s.append("acceptBy",i.toLocaleString("en-US")),t&&t.forEach(p=>{s=s.append("playerID",p.toString())}),this.webAPI.putData(`admin/programs/${e}/teams/${a}/invite`,null,s)}unassignPlayerFromTeam(e,a,t){return this.webAPI.deleteData(`admin/programs/${e}/players/${a}/teams/${t}`)}unassignPlayersFromTeam(e,a,t){return this.webAPI.putData(`admin/programs/${e}/teams/${t}/unassign`,a)}rejectInvites(e,a,t){return this.webAPI.putData(`admin/programs/${e}/teams/${a}/reject-invite`,t)}changePlayersTeam(e,a,t,i,s,p,m){let n=new o;return n=n.append("newTeamID",t.toString()),i!==void 0&&(n=n.append("secondary",i.toString())),s!==void 0&&(n=n.append("reserve",s.toString())),p!==void 0&&(n=n.append("guest",p.toString())),this.webAPI.postData(`admin/programs/${e}/teams/${a}/change-team`,m,n)}unassignGuestPlayerFromTeam(e,a,t){return this.webAPI.deleteData(`admin/programs/${e}/players/${a}/teams/${t}/guest`)}getGuestPlayerEvents(e,a,t){return this.webAPI.getData(`admin/programs/${e}/players/${a}/teams/${t}/guest/events`)}getProgramTypes(){let e=new o;return e=e.append("includeBlankOption","false"),this.webAPI.getData("admin/programs/search-filters/program-types",e)}getRegistrations(e){let a=new o;return e.forEach(t=>{a=a.append("programID",t.toString())}),this.webAPI.getData("admin/programs/registrations",a)}getTeamFinancials(e){let a=new o;return e&&e.forEach(t=>{a=a.append("programID",t.programID.toString())}),this.webAPI.getData("admin/programs/team-financials",a)}addProgramTeams(e,a){return this.webAPI.postData(`admin/programs/${e}/teams`,a)}};d.\u0275fac=function(a){return new(a||d)($(h))},d.\u0275prov=P({token:d,factory:d.\u0275fac});let g=d;return g})();export{T as a};
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.