1import{_ as g,ba as p,fi as m,hd as i}from"./chunk-SMW7PHYX.js";var w=(()=>{let s=class s{constructor(t){this.webAPI=t,this.programDatesText="The Program Start and End Dates dictate when the program is 'active', and therefore when the program is available for registrations and when it displays as a currently in-progress program to parents & players. The Start Date is typically when you want to start allowing registrations. The End Date is typically when the season ends, or when parents & players should no longer see it as an active program.",this.accrualDatesText="The Accrual Start and End Dates should align with when program activity occurs for financial reporting purposes. Using the Core Program as an example, the Accrual Start Date should reflect the first date of practice and the Accrual End Date should reflect the last day the teams are expected to actively play (whether that is a tournament, practice, or game) for that program. Additionally, if a camp, tournament, or clinic, enter the Start/End Date(s) in which the program is expected to occur.",this.accrualDatesSubscriptionText="Select the accounting class that best matches this program\u2019s financial category. This helps ensure that revenue and expenses are tracked correctly.",this.openProgramsText="Select whether or not to display the program via our Page Builder application and the Open Programs content type. Display may be set to expire using the Display End Date and assigned down to child clubs utilizing Club Assignments. Additionally, pages providing additional information about the program can be included via link.",this.groupedText="Grouped registrations are typically created for camps or clinics when there are multiple sessions to choose (e.g. week 1 - afternoon, week 1 - morning, week 1 - all day). In a grouped registration, a member will see one link on their homepage about the program, click into it and be able to view various sessions they want to select. The details section will show information about the program during registration.",this.programInfoText="Optionally select a category in which to display the program on the member homepage. Programs with a category will show at the top of the Open Programs panel. A short description can be added for the program that will appear in the Open Programs panel. Use sort order to display the order in which programs are listed. The default sort order for programs within the category is the date the program was created.",this.retentionInfoText="The Group ID and Group Year fields are used for the Retention report and dashboard panel. The presence of a Group ID indicates it should be used for retention. The Group Year indicates the retention year for the program.",this.sortOptions=[{label:"End Date (Latest first)",value:"endDate DESC"},{label:"Program Name (A\u2013Z)",value:"name ASC"}]}searchPrograms(){return this.webAPI.getData("admin/programs/search",this.getParams())}getParams(){let t=new i;return t=t.append("page",this.filters.page.toString()),t=t.append("rows",this.filters.rows.toString()),t=t.append("includeCount",this.filters.getTotalCount.toString()),this.filters.orderBy&&(t=t.append("orderBy",this.filters.orderBy)),this.filters.programName&&(t=t.append("programName",this.filters.programName)),this.filters.programTypeID&&(t=t.append("programTypeID",this.filters.programTypeID.toString())),this.filters.clubProgramCategoryID&&(t=t.append("clubProgramCategoryID",this.filters.clubProgramCategoryID.toString())),this.filters.accountingClassID?.length&&this.filters.accountingClassID.forEach(e=>{t=t.append("clubAccountingClassID",e.toString())}),this.filters.registrationID&&(t=t.append("registrationID",this.filters.registrationID.toString())),this.filters.effectiveDate&&(t=t.append("effectiveDate",this.filters.effectiveDate.toLocaleDateString())),this.filters.includeRemoved&&(t=t.append("includeRemoved",this.filters.includeRemoved.toString())),t=t.append("activityStatus",this.filters.activityStatus.toString()),t}getProgramBasicInfoMetadata(t){let e=new i;return t&&(e=e.append("programID",t.toString())),this.webAPI.getData("admin/programs/basic-info/metadata",e)}getClubAccountingClasses(){return this.webAPI.getData("admin/programs/accounting-classes")}getAccountingClassesFilterOptions(){return this.webAPI.getData("admin/programs/search-filters/accounting-classes")}getProgramDisplaySettingsMetadata(){return this.webAPI.getData("admin/programs/display-settings/metadata")}getTrainingSessionsProgramPurchaseOptionsMetadata(){return this.webAPI.getData("admin/programs/training-sessions/purchase-options/metadata")}getTrainingSessionsProgramPreferences(t){return this.webAPI.getData(`admin/programs/${t}/training-sessions/preferences`)}updateTrainingSessionsProgramPreferences(t,e){return this.webAPI.putData(`admin/programs/${t}/training-sessions/preferences`,e)}getTrainingSessionsPurchaseModelChange(t,e){return this.webAPI.getData(`admin/programs/${t}/training-sessions/purchase-model-change/${e}`)}getProgramCloneMetadata(){return this.webAPI.getData("admin/programs/clone/metadata")}getProgram(t){return this.webAPI.getData(`admin/programs/${t}`)}getProgramHasRegistrations(t){return this.webAPI.getData(`admin/programs/${t}/has-registrations`)}getProgramHasPlayerRegistrations(t){return this.webAPI.getData(`admin/programs/${t}/has-player-registrations`)}getProgramHasTeamRegistrations(t){return this.webAPI.getData(`admin/programs/${t}/has-team-registrations`)}getProgramSignUpsDropdown(t){return this.webAPI.getData(`admin/programs/${t}/sign-ups/dropdown`)}getProgramProgramType(t){return this.webAPI.getData(`admin/programs/${t}/program-type`)}createProgram(t){return this.webAPI.postData("admin/programs",t)}updateProgramBasicInfo(t){return this.webAPI.putData(`admin/programs/${t.programID}/basic-info`,t)}updateProgramTeams(t,e){return this.webAPI.putData(`admin/programs/${t}/teams`,e)}updateProgramDisplaySettings(t){return this.webAPI.putData(`admin/programs/${t.programID}/display-settings`,t)}saveProgramDisplaySettingsFile(t,e){return e?this.webAPI.postMultiPartContent(`admin/programs/${e}/display-settings/backgroundImage`,t,t.name):this.webAPI.postMultiPartContent("admin/programs/display-settings/backgroundImage",t,t.name)}updateProgramRemoved(t,e){return this.webAPI.putData(`admin/programs/${t}/removed`,{isRemoved:e})}cloneProgram(t,e){return this.webAPI.postData(`admin/programs/${t}`,e)}getProgramTypesDropdown(){return this.webAPI.getData("admin/programs/search-filters/program-types")}getRegistrations(t=null,e=null){let a=new i;return t?.length&&t.forEach(r=>{a=a.append("programID",r.toString())}),e?.length&&e.forEach(r=>{a=a.append("clubID",r.toString())}),this.webAPI.getData("admin/programs/search-filters/registrations",a)}getClubProgramCategories(){return this.webAPI.getData("admin/programs/search-filters/club-program-categories")}getPlayersRegisteredInProgram(t){return this.webAPI.getData(`admin/programs/${t}/registered-players`)}getRegistrationGroupMetadata(t,e,a){if(t)return this.webAPI.getData("admin/programs/add/registration-groups/metadata");{e||console.error("programID is required");let r=new i;return a&&(r=r.append("registrationGroupID",a.toString())),this.webAPI.getData(`admin/programs/${e}/registration-groups/metadata`,r)}}getRegistrationGroups(t){return this.webAPI.getData(`admin/programs/${t}/registration-groups`)}getRegistrationGroup(t,e){return this.webAPI.getData(`admin/programs/${t}/registration-groups/${e}`)}saveRegistrationGroup(t,e,a=!1,r,d=!0){let n=new i;if(e.registrationGroupID){n=n.append("updateRegistrations",d.toString());let l={registrationGroup:e,applyToRegistrationIDs:r||[]};return this.webAPI.putData(`admin/programs/${t}/registration-groups/${e.registrationGroupID}`,l,n)}else return n=n.append("attachTemplate",a.toString()),this.webAPI.postData(`admin/programs/${t}/registration-groups`,e,n)}saveRegistrationGroupSortOrderBulk(t,e){return this.webAPI.putData(`admin/programs/${t}/registration-groups/sort-order`,e)}deleteRegistrationGroup(t,e){return this.webAPI.deleteData(`admin/programs/${t}/registration-groups/${e}`)}updateRegistrationGroupTemplateID(t,e,a){return this.webAPI.putData(`admin/programs/${t}/registration-groups/${e}/registration-template`,{registrationTemplateID:a})}getProgramTypes(){return this.webAPI.getData("admin/programs/program-types")}getTeams(){return this.webAPI.getData("admin/programs/teams")}getProgramAddParentProgramSelectMetadata(){return this.webAPI.getData("admin/programs/add/parent-program-select/metadata")}
1getSelectedTeams(t){return this.webAPI.getData(`admin/programs/${t}/selected-teams`)}getProgramAddSignUpMetadata(){return this.webAPI.getData("admin/programs/add/sign-up-select/metadata")}getClubStripeAccountFeeAssignments(){return this.webAPI.getData("admin/programs/basic-info/stripe-account-fee-assignments")}getProgramTypeSettings(){return this.webAPI.getData("admin/programs/program-types/settings")}saveProgramTypeImage(t,e){let a=new i;return a=a.append("libraryItemID",e.toString()),this.webAPI.putData(`admin/programs/program-types/${t}/image`,null,a)}removeProgramTypeImage(t){return this.webAPI.deleteData(`admin/programs/program-types/${t}/image`)}};s.\u0275fac=function(e){return new(e||s)(p(m))},s.\u0275prov=g({token:s,factory:s.\u0275fac});let o=s;return o})();export{w 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.