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B,SAASC,EAA4Bl2C,GAC/D,IAKIuwC,EAAUyB,EALVf,EAAWjxC,EAAK,GAChBm2C,EAAcn2C,EAAK,GACnBo2C,EAAUp2C,EAAK,GAGI+4B,EAAI,EAC3B,GAAGkY,EAASr5B,MAAK,SAAS7H,GAAM,OAA+B,IAAxB6lC,EAAgB7lC,EAAW,IAAI,CACrE,IAAIwgC,KAAY4F,EACZ7F,EAAoBuB,EAAEsE,EAAa5F,KACrCD,EAAoBQ,EAAEP,GAAY4F,EAAY5F,IAGhD,GAAG6F,EAAS,IAAIn5C,EAASm5C,EAAQ9F,EAClC,CAEA,IADG4F,GAA4BA,EAA2Bl2C,GACrD+4B,EAAIkY,EAASr8C,OAAQmkC,IACzBiZ,EAAUf,EAASlY,GAChBuX,EAAoBuB,EAAE+D,EAAiB5D,IAAY4D,EAAgB5D,IACrE4D,EAAgB5D,GAAS,KAE1B4D,EAAgB5D,GAAW,EAE5B,OAAO1B,EAAoBU,EAAE/zC,EAC9B,EAEIo5C,EAAqBC,KAAK,uBAAyBA,KAAK,wBAA0B,GACtFD,EAAmBh3C,QAAQ42C,EAAqBjC,KAAK,KAAM,IAC3DqC,EAAmBn3C,KAAO+2C,EAAqBjC,KAAK,KAAMqC,EAAmBn3C,KAAK80C,KAAKqC,G,ICpFvF,IAAIE,EAAsBjG,EAAoBU,OAAEz+C,EAAW,CAAC,MAAM,WAAa,OAAO+9C,EAAoB,KAAO,IACjHiG,EAAsBjG,EAAoBU,EAAEuF,E","sources":["webpack://hca-lms/./src/authConfig.ts","webpack://hca-lms/./src/composition-api/Search/useCourseSearch.ts","webpack://hca-lms/./src/composition-api/useOrganizationHierarchy.ts","webpack://hca-lms/./src/composition-api/usePasswordValidation.ts","webpack://hca-lms/./src/helpers/dataTableHelper.ts","webpack://hca-lms/./src/helpers/http.ts","webpack://hca-lms/./src/helpers/jwtHelper.ts","webpack://hca-lms/./src/helpers/organizationHelper.ts","webpack://hca-lms/./src/helpers/queryParamHelper.ts","webpack://hca-lms/./src/plugins/msalPlugin.ts","webpack://hca-lms/./src/App.vue?cf69","webpack://hca-lms/./src/App.vue","webpack://hca-lms/./src/App.vue?7ccd","webpack://hca-lms/./src/layouts/AppLayout.vue?d8be","webpack://hca-lms/./src/layouts/AppLayout.vue","webpack://hca-lms/./src/layouts/AppLayoutPublic.vue","webpack://hca-lms/./src/layouts/AppLayoutPublic.vue?4284","webpack://hca-lms/./src/layouts/AppLayoutAuthorizedAdmin.vue?4829","webpack://hca-lms/./src/layouts/AppLayoutAuthorizedAdmin.vue","webpack://hca-lms/./src/layouts/AppLayoutAuthorizedAdmin.vue?43c3","webpack://hca-lms/./src/layouts/AppLayoutCompetencyEvalAdmin.vue?d686","webpack://hca-lms/./src/layouts/AppLayoutCompetencyEvalAdmin.vue","webpack://hca-lms/./src/layouts/AppLayoutCompetencyEvalAdmin.vue?f2ca","webpack://hca-lms/./src/layouts/AppLayoutAuthorizedStudent.vue","webpack://hca-lms/./src/layouts/AppLayoutAuthorizedStudent.vue?6208","webpack://hca-lms/./src/layouts/AppLayoutLogin.vue?7181","webpack://hca-lms/./src/layouts/AppLayoutLogin.vue","webpack://hca-lms/./src/layouts/AppLayoutLogin.vue?1a9b","webpack://hca-lms/./src/layouts/AppLayoutError.vue?b727","webpack://hca-lms/./src/layouts/AppLayoutError.vue","webpack://hca-lms/./src/layouts/AppLayoutError.vue?d10a","webpack://hca-lms/./src/layouts/AppLayout.vue?c015","webpack://hca-lms/./src/components/TopMenuComponent.vue?85f1","webpack://hca-lms/./src/components/TopMenuComponent.vue","webpack://hca-lms/./src/components/TopMenuComponent.vue?690c","webpack://hca-lms/./src/components/Login/LoginTopMenuComponent.vue?f539","webpack://hca-lms/./src/components/Login/LoginTopMenuComponent.vue","webpack://hca-lms/./src/components/Login/LoginTopMenuComponent.vue?9af5","webpack://hca-lms/./src/components/AdminMenu.vue?2ae4","webpack://hca-lms/./src/components/AdminMenu.vue","webpack://hca-lms/./src/components/AdminMenu.vue?11f7","webpack://hca-lms/./src/components/Login/LoginFooterComponent.vue","webpack://hca-lms/./src/components/Login/LoginFooterComponent.vue?a03d","webpack://hca-lms/./src/components/Footer.vue","webpack://hca-lms/./src/components/Footer.vue?7cca","webpack://hca-lms/./src/components/Student/EvaluationPersonInfoUpdate.vue?d4c7","webpack://hca-lms/./src/components/Student/EvaluationPersonInfoUpdate.vue","webpack://hca-lms/./src/components/Student/EvaluationPersonInfoUpdate.vue?95fd","webpack://hca-lms/./src/components/Student/StudentProfessions.vue?91c8","webpack://hca-lms/./src/components/Student/StudentProfessions.vue","webpack://hca-lms/./src/components/Student/StudentProfessions.vue?5414","webpack://hca-lms/./src/components/Course/CourseAssignment/AssignmentPreferences/AddAssignmentPreference.vue?d59a","webpack://hca-lms/./src/components/Course/CourseAssignment/AssignmentPreferences/AddAssignmentPreference.vue","webpack://hca-lms/./src/components/Course/CourseAssignment/AssignmentPreferences/AddAssignmentPreference.vue?011d","webpack://hca-lms/./src/components/Course/CourseAssignment/AssignmentPreferences/EditAssignmentPreference.vue?cb7e","webpack://hca-lms/./src/components/Course/CourseAssignment/AssignmentPreferences/EditAssignmentPreference.vue","webpack://hca-lms/./src/components/Course/CourseAssignment/AssignmentPreferences/EditAssignmentPreference.vue?5604","webpack://hca-lms/./src/components/Course/CourseAssignment/NewHire/Overview.vue?00b4","webpack://hca-lms/./src/components/Course/CourseAssignment/NewHire/Overview.vue","webpack://hca-lms/./src/components/Course/CourseAssignment/NewHire/Overview.vue?d797","webpack://hca-lms/./src/components/Course/CourseAssignment/Annual/Overview.vue?40a1","webpack://hca-lms/./src/components/Course/CourseAssignment/Annual/Overview.vue","webpack://hca-lms/./src/components/Course/CourseAssignment/Annual/Overview.vue?620b","webpack://hca-lms/./src/components/Course/CourseAssignment/Rolling/Overview.vue?aeb3","webpack://hca-lms/./src/components/Course/CourseAssignment/Rolling/Overview.vue","webpack://hca-lms/./src/components/Course/CourseAssignment/Rolling/Overview.vue?340e","webpack://hca-lms/./src/main.ts","webpack://hca-lms/./src/models/AppLayout.ts","webpack://hca-lms/./src/models/auth/AuthorizationLevel.ts","webpack://hca-lms/./src/models/auth/HealthcareAcademyPermissions.ts","webpack://hca-lms/./src/models/courses/Course/CourseFormat.ts","webpack://hca-lms/./src/models/courses/StudentAssignment/AssignmentMethod.ts","webpack://hca-lms/./src/models/states.ts","webpack://hca-lms/./src/models/user/OrganizationLevel/OrganizationLevel.ts","webpack://hca-lms/./src/router/registerNavigate.ts","webpack://hca-lms/./src/router/routes/admin/loginRoutes.ts","webpack://hca-lms/./src/router/routes/admin/systemAdminRoutes.ts","webpack://hca-lms/./src/router/routes/admin/userManagementRoutes.ts","webpack://hca-lms/./src/router/routes/admin/courseManagementRoutes.ts","webpack://hca-lms/./src/router/routes/admin/reportRoutes.ts","webpack://hca-lms/./src/router/routes/student/StudentAssignmentRoutes.ts","webpack://hca-lms/./src/router/routes/admin/resourceRoutes.ts","webpack://hca-lms/./src/router/routes/competencyRoutes.ts","webpack://hca-lms/./src/router/index.ts","webpack://hca-lms/./src/store/account.store.ts","webpack://hca-lms/./src/store/auth.store.ts","webpack://hca-lms/./src/store/config.store.ts","webpack://hca-lms/./src/store/course.store.ts","webpack://hca-lms/./src/store/courseAssignment.store.ts","webpack://hca-lms/./src/store/main.store.ts","webpack://hca-lms/./src/store/organization.store.ts","webpack://hca-lms/./src/store/student/assignments.store.ts","webpack://hca-lms/./src/store/student/student.account.store.ts","webpack://hca-lms/./src/store/trainingCategory.store.ts","webpack://hca-lms/./src/components/Account/PromoteUserRoleComponent.vue?3ed8","webpack://hca-lms/./src/components/Account/PromoteUserRoleComponent.vue","webpack://hca-lms/./src/components/Account/PromoteUserRoleComponent.vue?d4ff","webpack://hca-lms/./src/components/Account/ResetPasswordComponent.vue?e949","webpack://hca-lms/./src/components/Account/ResetPasswordComponent.vue","webpack://hca-lms/./src/components/Account/ResetPasswordComponent.vue?a480","webpack://hca-lms/./src/components/Account/UpdateProfileInfoComponent.vue?605a","webpack://hca-lms/./src/components/Account/UpdateProfileInfoComponent.vue","webpack://hca-lms/./src/components/Account/UpdateProfileInfoComponent.vue?1783","webpack://hca-lms/./src/components/Account/UserCourseAssignment.vue?9a66","webpack://hca-lms/./src/components/Account/UserCourseAssignment.vue","webpack://hca-lms/./src/components/Account/UserCourseAssignment.vue?c686","webpack://hca-lms/./src/components/Account/UserOrgComponent.vue?4708","webpack://hca-lms/./src/components/Account/UserOrgComponent.vue","webpack://hca-lms/./src/components/Account/UserOrgComponent.vue?e474","webpack://hca-lms/./src/components/Account/UserPermissionsComponent.vue?1739","webpack://hca-lms/./src/components/Account/UserPermissionsComponent.vue","webpack://hca-lms/./src/components/Account/UserPermissionsComponent.vue?cde5","webpack://hca-lms/./src/composition-api/Search/useCourseOrgAccessSearch.ts","webpack://hca-lms/./src/components/Course/Course/CourseAccess.vue?d1f4","webpack://hca-lms/./src/components/Course/Course/CourseAccess.vue","webpack://hca-lms/./src/components/Course/Course/CourseAccess.vue?e865","webpack://hca-lms/./src/components/Course/Course/CourseContent.vue?a509","webpack://hca-lms/./src/components/Course/Course/CourseContent.vue","webpack://hca-lms/./src/components/Course/Course/CourseContent.vue?6974","webpack://hca-lms/./src/components/Course/Course/CourseGeneral.vue?2197","webpack://hca-lms/./src/components/Course/Course/CourseGeneral.vue","webpack://hca-lms/./src/components/Course/Course/CourseGeneral.vue?1b50","webpack://hca-lms/./src/components/Course/Course/CourseInterface.vue?e945","webpack://hca-lms/./src/components/Course/Course/CourseInterface.vue","webpack://hca-lms/./src/components/Course/Course/CourseInterface.vue?10bc","webpack://hca-lms/./src/components/Course/Course/CourseOther.vue?cc21","webpack://hca-lms/./src/components/Course/Course/CourseOther.vue","webpack://hca-lms/./src/components/Course/Course/CourseOther.vue?a6d1","webpack://hca-lms/./src/models/courses/Prerequisite/LogicalOperator.ts","webpack://hca-lms/./src/components/Course/Course/CoursePrerequisites.vue?2cf2","webpack://hca-lms/./src/components/Course/Course/CoursePrerequisites.vue","webpack://hca-lms/./src/components/Course/Course/CoursePrerequisites.vue?e0f0","webpack://hca-lms/./src/components/Course/Lesson/LessonEntry.vue?05b9","webpack://hca-lms/./src/components/Course/Lesson/LessonEntry.vue","webpack://hca-lms/./src/components/Course/Lesson/LessonEntry.vue?407d","webpack://hca-lms/./src/components/Course/Lesson/LessonGeneral.vue?7241","webpack://hca-lms/./src/components/Course/Lesson/LessonGeneral.vue","webpack://hca-lms/./src/components/Course/Lesson/LessonGeneral.vue?4eea","webpack://hca-lms/./src/components/Course/Lesson/LessonInterface.vue?f78f","webpack://hca-lms/./src/components/Course/Lesson/LessonInterface.vue","webpack://hca-lms/./src/components/Course/Lesson/LessonInterface.vue?1b28","webpack://hca-lms/./src/components/Course/Lesson/LessonOther.vue?9c20","webpack://hca-lms/./src/components/Course/Lesson/LessonOther.vue","webpack://hca-lms/./src/components/Course/Lesson/LessonOther.vue?c241","webpack://hca-lms/webpack/bootstrap","webpack://hca-lms/webpack/runtime/chunk loaded","webpack://hca-lms/webpack/runtime/compat get default export","webpack://hca-lms/webpack/runtime/define property getters","webpack://hca-lms/webpack/runtime/ensure chunk","webpack://hca-lms/webpack/runtime/get javascript chunk filename","webpack://hca-lms/webpack/runtime/get mini-css chunk filename","webpack://hca-lms/webpack/runtime/global","webpack://hca-lms/webpack/runtime/hasOwnProperty shorthand","webpack://hca-lms/webpack/runtime/load script","webpack://hca-lms/webpack/runtime/make namespace object","webpack://hca-lms/webpack/runtime/node module decorator","webpack://hca-lms/webpack/runtime/publicPath","webpack://hca-lms/webpack/runtime/css loading","webpack://hca-lms/webpack/runtime/jsonp chunk loading","webpack://hca-lms/webpack/startup"],"sourcesContent":["import { LogLevel, PublicClientApplication } from '@azure/msal-browser';\r\nimport useMainStore from './store/main.store';\r\nimport useConfigStore from '@/store/config.store';\r\n\r\n// Config object to be passed to Msal on creation\r\nexport const msalConfig = {\r\n auth: {\r\n clientId: '',\r\n authority: process.env.VUE_APP_APIBASEURL,\r\n redirectUri: window.location.origin + '/redirect', // Must be registered as a SPA redirectURI on your app registration\r\n postLogoutRedirectUri: window.location.origin // Must be registered as a SPA redirectURI on your app registration\r\n },\r\n cache: {\r\n cacheLocation: 'localStorage'\r\n },\r\n system: {\r\n loggerOptions: {\r\n loggerCallback: (level: LogLevel, message: string, containsPii: boolean) => {\r\n if (containsPii) {\r\n return;\r\n }\r\n switch (level) {\r\n case LogLevel.Error:\r\n // eslint-disable-next-line no-case-declarations\r\n const mainStore = useMainStore();\r\n mainStore.setErrorMsg(message);\r\n // noinspection TsLint\r\n console.error(message);\r\n return;\r\n case LogLevel.Info:\r\n if (process.env.NODE_ENV === 'development')\r\n // noinspection TsLint\r\n console.info(message);\r\n return;\r\n case LogLevel.Verbose:\r\n if (process.env.NODE_ENV === 'development')\r\n // noinspection TsLint\r\n console.debug(message);\r\n return;\r\n case LogLevel.Warning:\r\n // noinspection TsLint\r\n console.warn(message);\r\n return;\r\n default:\r\n return;\r\n }\r\n },\r\n logLevel: LogLevel.Verbose\r\n }\r\n }\r\n};\r\n\r\nexport function makeMsalInstance (): PublicClientApplication {\r\n const adConfig = useConfigStore().azureAd;\r\n\r\n msalConfig.auth.clientId = adConfig.clientId;\r\n msalConfig.auth.authority = adConfig.tenantAuthority;\r\n\r\n return new PublicClientApplication(msalConfig);\r\n}\r\n\r\n// Add here scopes for id token to be used at MS Identity Platform endpoints.\r\nexport const loginRequest = {\r\n scopes: ['User.Read'],\r\n};\r\n\r\n// Add here the endpoints for MS Graph API services you would like to use.\r\nexport const graphConfig = {\r\n graphMeEndpoint: 'https://graph.microsoft.com/v1.0/me',\r\n};\r\n","import ITrainingProvider from '@/models/courses/ITrainingProvider';\r\nimport ITrainingSubCategory from '@/models/courses/ITrainingSubCategory';\r\nimport ITrainingCategory from '@/models/courses/trainingCategory';\r\nimport IGridFilter from '@/models/search/IGridFilter';\r\nimport SearchCourse from '@/models/search/courses/SearchCourse';\r\nimport useAuthStore from '@/store/auth.store';\r\nimport useCourseStore from '@/store/course.store';\r\nimport useTrainingCategoryStore from \"@/store/trainingCategory.store\";\r\nimport {reactive, ref, Ref} from 'vue';\r\nimport {FilterMatchMode} from 'primevue/api';\r\nimport {DataTableFilterMeta, DataTableFilterMetaData, DataTablePageEvent, DataTableSortEvent} from 'primevue/datatable';\r\n\r\nexport interface ICourseSearch {\r\n globalSearch: Ref,\r\n showAdvancedSearch: Ref,\r\n courseNameSearch: Ref,\r\n trainingProviderSearch: Ref,\r\n trainingCategorySearch: Ref,\r\n trainingSubCategorySearch: Ref,\r\n includeInactiveSearch: Ref,\r\n\r\n facilityIdSearch: Ref,\r\n departmentIdSearch: Ref,\r\n\r\n courseFilters: Ref,\r\n\r\n coursesFromSearch: Ref,\r\n totalRecords: Ref,\r\n\r\n trainingProviders: Ref,\r\n trainingCategories: Ref,\r\n trainingSubCategories: Ref,\r\n\r\n getTrainingSubCategoryByTrainingCategoryId(trainingCatId: number | undefined): Promise,\r\n toggleAdvSearch(): Promise,\r\n onPage(event : DataTablePageEvent): Promise,\r\n onSort(event : DataTableSortEvent): Promise,\r\n executeSearch(): Promise,\r\n}\r\n\r\nexport default function useCourseSearch(): ICourseSearch {\r\n const authStore = useAuthStore();\r\n const courseStore = useCourseStore();\r\n const trainingCategoryStore = useTrainingCategoryStore();\r\n\r\n const coursesFromSearch: Ref = ref([]);\r\n const totalRecords: Ref = ref(0);\r\n\r\n const trainingProviders: Ref = ref([])\r\n const trainingCategories: Ref = ref([]);\r\n const trainingSubCategories: Ref = ref([]);\r\n\r\n\r\n const courseNameSearch: Ref = ref({\r\n value: undefined,\r\n matchMode: FilterMatchMode.CONTAINS\r\n });\r\n\r\n const showAdvancedSearch: Ref = ref(false);\r\n\r\n const globalSearch: Ref = ref();\r\n const trainingProviderSearch: Ref = ref();\r\n const trainingCategorySearch: Ref = ref();\r\n const trainingSubCategorySearch: Ref = ref();\r\n const includeInactiveSearch: Ref = ref(false);\r\n const facilityIdSearch: Ref = ref();\r\n const departmentIdSearch: Ref = ref();\r\n\r\n const courseFilters: Ref = ref({\r\n global : {\r\n value: globalSearch,\r\n matchMode: FilterMatchMode.CONTAINS\r\n },\r\n courseName : courseNameSearch.value,\r\n trainingProvider : {\r\n value: trainingProviderSearch,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n trainingCategory: {\r\n value: trainingCategorySearch,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n primaryTrainingSubCategory: {\r\n value: trainingSubCategorySearch,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n includeInactive : {\r\n value: includeInactiveSearch,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n facility: {\r\n value: facilityIdSearch,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n department: {\r\n value: departmentIdSearch,\r\n matchMode: FilterMatchMode.EQUALS\r\n }\r\n })\r\n\r\n const coursePreReqGridFilter : IGridFilter = reactive({\r\n filters: courseFilters.value,\r\n first: 0,\r\n rows: 10,\r\n originalEvent: {},\r\n MultiSortMeta: [],\r\n page: 0,\r\n pageCount: 0,\r\n sortField: '',\r\n sortOrder: null,\r\n executorIdentityId: authStore.getIdentityId,\r\n });\r\n\r\n async function toggleAdvSearch() {\r\n showAdvancedSearch.value = !showAdvancedSearch.value;\r\n\r\n if (!!trainingCategories.value.length || !!trainingProviders.value.length)\r\n return;\r\n\r\n try {\r\n trainingProviders.value = await courseStore.getAllTrainingProviders();\r\n } catch (e) {\r\n trainingProviders.value = [];\r\n console.error(e);\r\n return;\r\n }\r\n\r\n try {\r\n trainingCategories.value = await trainingCategoryStore.getAllTrainingCategories();\r\n } catch (e) {\r\n trainingCategories.value = [];\r\n console.error(e);\r\n }\r\n }\r\n\r\n async function getTrainingSubCategoryByTrainingCategoryId(trainingCatId: number | undefined) {\r\n if (!trainingCatId) {\r\n trainingSubCategorySearch.value = undefined;\r\n trainingSubCategories.value = [];\r\n return;\r\n }\r\n\r\n try {\r\n trainingSubCategories.value = await trainingCategoryStore.getTrainingSubCategoryByTrainingCategoryId(trainingCatId);\r\n } catch (e) {\r\n trainingSubCategories.value = [];\r\n console.error('Error getting training sub categories', e);\r\n }\r\n }\r\n\r\n async function executeSearch() {\r\n try {\r\n const searchResult = await courseStore.searchCourses(coursePreReqGridFilter);\r\n\r\n totalRecords.value = searchResult.totalRecords;\r\n coursesFromSearch.value = searchResult.courses;\r\n } catch(e) {\r\n totalRecords.value = 0;\r\n coursesFromSearch.value = [];\r\n console.error(e);\r\n }\r\n }\r\n\r\n async function onPage (event : DataTablePageEvent) {\r\n coursePreReqGridFilter.first = event.first;\r\n coursePreReqGridFilter.page = event.page;\r\n coursePreReqGridFilter.rows = event.rows;\r\n coursePreReqGridFilter.originalEvent = event.originalEvent;\r\n coursePreReqGridFilter.pageCount = event.pageCount;\r\n\r\n await executeSearch();\r\n }\r\n\r\n async function onSort(event : DataTableSortEvent) {\r\n coursePreReqGridFilter.sortField = event.sortField;\r\n coursePreReqGridFilter.sortOrder = event.sortOrder;\r\n\r\n await executeSearch();\r\n }\r\n\r\n return {\r\n showAdvancedSearch,\r\n globalSearch,\r\n courseNameSearch,\r\n trainingProviderSearch,\r\n includeInactiveSearch,\r\n trainingCategorySearch,\r\n trainingSubCategorySearch,\r\n courseFilters,\r\n coursesFromSearch,\r\n totalRecords,\r\n trainingProviders,\r\n trainingCategories,\r\n trainingSubCategories,\r\n facilityIdSearch,\r\n departmentIdSearch,\r\n getTrainingSubCategoryByTrainingCategoryId,\r\n toggleAdvSearch,\r\n onPage,\r\n onSort,\r\n executeSearch,\r\n };\r\n}\r\n","import {computed, ComputedRef, onMounted, Ref, ref, watch } from 'vue';\r\nimport ISimpleCorporation from '@/models/user/OrganizationLevel/Corporation/ISimpleCorporation';\r\nimport ISimpleRegion from '@/models/user/OrganizationLevel/Region/ISimpleRegion';\r\nimport ISimpleDivision from '@/models/user/OrganizationLevel/Division/ISimpleDivision';\r\nimport ISimpleFacility from '@/models/user/OrganizationLevel/Facility/ISimpleFacility';\r\nimport ISimpleDepartment from '@/models/user/OrganizationLevel/Department/ISimpleDepartment';\r\nimport IOrganizationHierarchy from '@/models/user/OrganizationLevel/IOrganizationHierarchy';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport IOrgWideDeptSearchIds from '@/models/search/Organizations/IOrgWideDeptSearchIds';\r\nimport AdminOrganizationAccess from \"@/models/user/OrganizationLevel/AdminOrganizationAccess\";\r\nimport useOrganizationStore from '@/store/organization.store';\r\nimport useAuthStore from '@/store/auth.store';\r\nimport useAccountStore from '@/store/account.store';\r\nimport useMainStore from '@/store/main.store';\r\n\r\nexport interface IUseOrganizationHierarchy{\r\n corporations: Ref,\r\n corporationId: Ref,\r\n isCorporationLoading: Ref,\r\n shouldShowCorporation: ComputedRef,\r\n getCorporations(): Promise,\r\n\r\n regions: Ref,\r\n regionId: Ref,\r\n isRegionLoading: Ref,\r\n isRegionDisabled: ComputedRef,\r\n shouldShowRegion: ComputedRef,\r\n getRegionByCorp(updatedCorporationId: number | undefined): Promise,\r\n\r\n divisions: Ref,\r\n divisionId: Ref,\r\n isDivisionLoading: Ref,\r\n isDivisionDisabled: ComputedRef,\r\n shouldShowDivision: ComputedRef,\r\n getDivisionsByRegion(updateRegionId: number | undefined): Promise,\r\n\r\n facilities: Ref,\r\n facilityId: Ref,\r\n isFacilityLoading: Ref,\r\n isFacilityDisabled: ComputedRef,\r\n shouldShowFacility: ComputedRef,\r\n getFacilitiesByDivision(updateDivisionId: number | undefined): Promise,\r\n getAllAvailableFacilities(): Promise,\r\n\r\n departments: Ref,\r\n departmentId: Ref,\r\n isDepartmentLoading: Ref,\r\n isDepartmentDisabled: ComputedRef,\r\n shouldShowDepartment: ComputedRef,\r\n getDepartmentsByFacility(updateFacilityId: number | undefined): Promise,\r\n\r\n orgWideDeptName: Ref,\r\n orgWideDepartments: Ref,\r\n isOrgWideDepartmentDisabled: ComputedRef,\r\n isOrgWideDepartmentLoading: Ref,\r\n\r\n initializationComplete: Ref,\r\n manualInitialization: Ref,\r\n}\r\n\r\nfunction useOrganizationHierarchy(): IUseOrganizationHierarchy {\r\n\r\n const mainStore = useMainStore();\r\n const authStore= useAuthStore();\r\n const accountStore = useAccountStore();\r\n const organizationStore = useOrganizationStore();\r\n\r\n const adminUserHierarchy: Ref = ref();\r\n const additionalAuthorizedOrgs: Ref = ref({\r\n corporations: [],\r\n regions: [],\r\n divisions: [],\r\n facilities: [],\r\n departments: []\r\n });\r\n\r\n const corporations: Ref = ref([]);\r\n const regions: Ref = ref([]);\r\n const divisions: Ref = ref([]);\r\n const facilities: Ref = ref([]);\r\n const departments: Ref = ref([]);\r\n const orgWideDepartments: Ref = ref([]);\r\n\r\n const corporationId: Ref = ref();\r\n const regionId: Ref = ref();\r\n const divisionId: Ref = ref();\r\n const facilityId: Ref = ref();\r\n const departmentId: Ref = ref();\r\n const orgWideDeptName: Ref = ref();\r\n\r\n const isCorporationLoading: Ref = ref(false);\r\n const isRegionLoading: Ref = ref(false);\r\n const isDivisionLoading: Ref = ref(false);\r\n const isFacilityLoading: Ref = ref(false);\r\n const isDepartmentLoading: Ref = ref(false);\r\n const isOrgWideDepartmentLoading: Ref = ref(false);\r\n\r\n const adminLevel: ComputedRef = computed(() => authStore.getAuthorizationLevel);\r\n const shouldShowCorporation: ComputedRef = computed(() => adminLevel.value >= AuthorizationLevel.CorporationAdministrator);\r\n const shouldShowRegion: ComputedRef = computed(() => adminLevel.value >= AuthorizationLevel.RegionAdministrator);\r\n const shouldShowDivision: ComputedRef = computed(() => adminLevel.value >= AuthorizationLevel.DivisionAdministrator);\r\n const shouldShowFacility: ComputedRef = computed(() => adminLevel.value >= AuthorizationLevel.FacilityAdministrator);\r\n const shouldShowDepartment: ComputedRef = computed(() => adminLevel.value >= AuthorizationLevel.DepartmentAdministrator);\r\n\r\n const isRegionDisabled: ComputedRef = computed(() => (shouldShowCorporation.value && !corporationId.value) || !regions.value);\r\n const isDivisionDisabled: ComputedRef = computed(() => (shouldShowRegion.value && !regionId.value) || !divisions.value);\r\n const isFacilityDisabled: ComputedRef = computed(() => (shouldShowDivision.value && !divisionId.value) || !facilities.value);\r\n const isDepartmentDisabled: ComputedRef = computed(() => (shouldShowFacility.value && !facilityId.value) || !departments.value);\r\n const isOrgWideDepartmentDisabled: ComputedRef = computed(() => !orgWideDepartments.value);\r\n\r\n const initializationComplete: Ref = ref(false);\r\n const manualInitialization: Ref = ref(false);\r\n\r\n watch(regions, (newRegionList: ISimpleRegion[], oldRegionList: ISimpleRegion[]): void => {\r\n const areEqual = JSON.stringify(newRegionList) === JSON.stringify(oldRegionList);\r\n\r\n if (areEqual)\r\n return;\r\n\r\n resetOrgIds('region');\r\n })\r\n\r\n watch(divisions, (newDivisionList: ISimpleDivision[], oldDivisionList: ISimpleDivision[]): void => {\r\n const areEqual = JSON.stringify(newDivisionList) === JSON.stringify(oldDivisionList);\r\n\r\n if (areEqual)\r\n return;\r\n\r\n resetOrgIds('division');\r\n })\r\n\r\n watch(facilities, (newFacilityList: ISimpleFacility[], oldFacilityList: ISimpleFacility[]): void => {\r\n const areEqual = JSON.stringify(newFacilityList) === JSON.stringify(oldFacilityList);\r\n\r\n if (areEqual)\r\n return;\r\n\r\n resetOrgIds('facility')\r\n })\r\n\r\n watch(departments, (newDeptList: ISimpleDepartment[], oldDeptList: ISimpleDepartment[]): void => {\r\n const areEqual = JSON.stringify(newDeptList) === JSON.stringify(oldDeptList);\r\n\r\n if (areEqual)\r\n return;\r\n\r\n resetOrgIds('department');\r\n })\r\n\r\n onMounted(async(): Promise => {\r\n\r\n try {\r\n adminUserHierarchy.value = await accountStore.getAdminHierarchy(authStore.getIdentityId);\r\n }\r\n catch {\r\n adminUserHierarchy.value = undefined;\r\n }\r\n\r\n try {\r\n const userProfileId = authStore.getUserProfileId;\r\n\r\n if (!userProfileId)\r\n return mainStore.setErrorMsg('User Profile Id not found');\r\n\r\n additionalAuthorizedOrgs.value = await accountStore.getAllAdminOrganizationAccess(userProfileId);\r\n }\r\n catch {\r\n additionalAuthorizedOrgs.value = {\r\n corporations: [],\r\n regions: [],\r\n divisions: [],\r\n facilities: [],\r\n departments: []\r\n }\r\n }\r\n\r\n await initialize();\r\n\r\n initializationComplete.value = true;\r\n });\r\n\r\n async function initialize(): Promise {\r\n if (manualInitialization.value)\r\n return;\r\n\r\n try {\r\n if (adminLevel.value === AuthorizationLevel.SystemAdministrator)\r\n return await getCorporations();\r\n }\r\n catch {\r\n corporations.value = [];\r\n return;\r\n }\r\n\r\n try {\r\n\r\n const adminCorporation: ISimpleCorporation | undefined = adminUserHierarchy.value?.corporation;\r\n\r\n if (!adminCorporation) {\r\n return mainStore.setErrorMsg('Admin not assigned to a corporation');\r\n }\r\n\r\n corporations.value = [adminCorporation, ...additionalAuthorizedOrgs.value.corporations];\r\n\r\n if (adminLevel.value === AuthorizationLevel.CorporationAdministrator) {\r\n await getRegionByCorp(adminCorporation.corporationId);\r\n return;\r\n }\r\n\r\n const adminRegion: ISimpleRegion | undefined = adminUserHierarchy.value?.region;\r\n\r\n if (!adminRegion)\r\n return mainStore.setErrorMsg('Admin not assigned to a region');\r\n\r\n regions.value = [adminRegion, ...additionalAuthorizedOrgs.value.regions];\r\n\r\n if (adminLevel.value === AuthorizationLevel.RegionAdministrator) {\r\n await getDivisionsByRegion(adminRegion.regionId);\r\n return;\r\n }\r\n\r\n const adminDivision: ISimpleDivision | undefined = adminUserHierarchy.value?.division;\r\n\r\n if (!adminDivision)\r\n return mainStore.setErrorMsg('Admin not assigned to a division');\r\n\r\n divisions.value = [adminDivision, ...additionalAuthorizedOrgs.value.divisions];\r\n\r\n if (adminLevel.value === AuthorizationLevel.DivisionAdministrator) {\r\n await getFacilitiesByDivision(adminDivision.divisionId);\r\n return ;\r\n }\r\n\r\n const adminFacility: ISimpleFacility | undefined = adminUserHierarchy.value?.facility;\r\n\r\n if (!adminFacility)\r\n return mainStore.setErrorMsg('Admin not assigned to a facility');\r\n\r\n facilities.value = [adminFacility, ...additionalAuthorizedOrgs.value.facilities];\r\n\r\n await getDepartmentsByFacility(adminFacility.facilityId);\r\n }\r\n catch {\r\n mainStore.setErrorMsg('Unable to set organization hierarchy');\r\n }\r\n }\r\n\r\n async function getCorporations(): Promise {\r\n try {\r\n isCorporationLoading.value = true;\r\n corporations.value = await organizationStore.getAllCorporations();\r\n }\r\n finally {\r\n isCorporationLoading.value = false;\r\n }\r\n }\r\n\r\n async function getRegionByCorp(updatedCorporationId: number | undefined): Promise {\r\n const oldCorporationId: number = regions.value[0]?.corporationId;\r\n if (oldCorporationId === updatedCorporationId)\r\n return;\r\n\r\n if (!updatedCorporationId) {\r\n clearOrganizationLevels('corporation');\r\n return;\r\n }\r\n\r\n try {\r\n isRegionLoading.value = true;\r\n\r\n const corporationRegions = await organizationStore.getRegionsByCorporation(updatedCorporationId);\r\n regions.value = [...corporationRegions, ...additionalAuthorizedOrgs.value.regions];\r\n }\r\n catch {\r\n regions.value = [];\r\n throw new Error('Unable to get regions by corporation');\r\n }\r\n finally {\r\n isRegionLoading.value = false;\r\n }\r\n\r\n clearOrganizationLevels('region');\r\n\r\n await searchOrganizationForMatchingDepts(updatedCorporationId);\r\n }\r\n\r\n async function getDivisionsByRegion(updateRegionId: number | undefined): Promise {\r\n\r\n const oldRegionId: number = divisions.value[0]?.regionId;\r\n if (oldRegionId === updateRegionId)\r\n return;\r\n\r\n if (!updateRegionId) {\r\n clearOrganizationLevels('region');\r\n return;\r\n }\r\n\r\n try {\r\n isDivisionLoading.value = true;\r\n\r\n const regionDivision = await organizationStore.getDivisionsByRegion(updateRegionId);\r\n divisions.value = [...regionDivision, ...additionalAuthorizedOrgs.value.divisions];\r\n }\r\n catch {\r\n divisions.value = [];\r\n throw new Error('Unable to get divisions by region');\r\n }\r\n finally {\r\n isDivisionLoading.value = false;\r\n }\r\n\r\n clearOrganizationLevels('division');\r\n\r\n await searchOrganizationForMatchingDepts(undefined, updateRegionId);\r\n }\r\n\r\n async function getFacilitiesByDivision(updateDivisionId: number | undefined): Promise {\r\n\r\n const oldDivisionId: number = facilities.value[0]?.divisionId;\r\n if (oldDivisionId === updateDivisionId)\r\n return;\r\n\r\n if (!updateDivisionId) {\r\n clearOrganizationLevels('division')\r\n return;\r\n }\r\n\r\n try {\r\n isFacilityLoading.value = true;\r\n\r\n const divisionFacilities = await organizationStore.getFacilitiesByDivision(updateDivisionId);\r\n facilities.value = [...divisionFacilities, ...additionalAuthorizedOrgs.value.facilities];\r\n }\r\n catch {\r\n facilities.value = [];\r\n throw new Error('Unable to get facilities by division');\r\n }\r\n finally {\r\n isFacilityLoading.value = false;\r\n }\r\n\r\n clearOrganizationLevels('facility');\r\n\r\n await searchOrganizationForMatchingDepts(undefined, undefined, updateDivisionId);\r\n }\r\n\r\n async function getAllAvailableFacilities(): Promise {\r\n const identityId = authStore.getIdentityId;\r\n\r\n if (!identityId)\r\n return mainStore.setErrorMsg('Identity Id not found');\r\n\r\n try {\r\n isFacilityLoading.value = true;\r\n\r\n facilities.value = await organizationStore.getAllFacilities(identityId);\r\n }\r\n catch {\r\n facilities.value = [];\r\n throw new Error('Unable to get all facilities');\r\n }\r\n finally {\r\n isFacilityLoading.value = false;\r\n }\r\n\r\n clearOrganizationLevels('facility');\r\n }\r\n\r\n async function getDepartmentsByFacility(updateFacilityId: number | undefined): Promise {\r\n\r\n const oldFacilityId: number = departments.value[0]?.facilityId;\r\n if (oldFacilityId === updateFacilityId)\r\n return;\r\n\r\n if (!updateFacilityId) {\r\n clearOrganizationLevels('facility');\r\n return;\r\n }\r\n\r\n try {\r\n isDepartmentLoading.value = true;\r\n\r\n const facilityDepartments = await organizationStore.getDepartmentsByFacility(updateFacilityId);\r\n departments.value = [...facilityDepartments, ...additionalAuthorizedOrgs.value.departments];\r\n }\r\n catch {\r\n departments.value = [];\r\n throw new Error('Unable to get departments by facility');\r\n }\r\n finally {\r\n isDepartmentLoading.value = false;\r\n }\r\n }\r\n\r\n async function searchOrganizationForMatchingDepts(corpId?: number, regId?:number, divId?: number): Promise {\r\n\r\n try {\r\n const orgMdl: IOrgWideDeptSearchIds = {\r\n corporationId: corpId,\r\n regionId: regId,\r\n divisionId: divId,\r\n }\r\n\r\n isOrgWideDepartmentLoading.value = true;\r\n\r\n orgWideDepartments.value = await organizationStore.organizationForMatchingDepts(orgMdl);\r\n }\r\n catch {\r\n orgWideDepartments.value = [];\r\n throw new Error('Unable to get organization wide departments');\r\n }\r\n finally {\r\n isOrgWideDepartmentLoading.value = false;\r\n }\r\n }\r\n\r\n function clearOrganizationLevels(clearOrgLevel: string): void {\r\n orgWideDepartments.value = [];\r\n\r\n departments.value = []\r\n\r\n if (clearOrgLevel === 'facility')\r\n return;\r\n\r\n facilities.value = [];\r\n\r\n if (clearOrgLevel === 'division')\r\n return;\r\n\r\n divisions.value = [];\r\n\r\n if (clearOrgLevel === 'region')\r\n return;\r\n\r\n regions.value = [];\r\n }\r\n\r\n function resetOrgIds(orgLevel: string): void {\r\n orgWideDeptName.value = undefined;\r\n departmentId.value = undefined;\r\n\r\n if (orgLevel === 'department' || !shouldShowFacility.value)\r\n return;\r\n\r\n facilityId.value = undefined;\r\n\r\n if (orgLevel === 'facility' || !shouldShowDivision.value)\r\n return;\r\n\r\n divisionId.value = undefined;\r\n\r\n if (orgLevel === 'division' || !shouldShowRegion.value)\r\n return;\r\n\r\n regionId.value = undefined;\r\n }\r\n\r\n return {\r\n getCorporations,\r\n corporations,\r\n corporationId,\r\n isCorporationLoading,\r\n shouldShowCorporation,\r\n\r\n getRegionByCorp,\r\n regions,\r\n regionId,\r\n isRegionLoading,\r\n isRegionDisabled,\r\n shouldShowRegion,\r\n\r\n getDivisionsByRegion,\r\n divisions,\r\n divisionId,\r\n isDivisionLoading,\r\n isDivisionDisabled,\r\n shouldShowDivision,\r\n\r\n getAllAvailableFacilities,\r\n getFacilitiesByDivision,\r\n facilities,\r\n facilityId,\r\n isFacilityLoading,\r\n isFacilityDisabled,\r\n shouldShowFacility,\r\n\r\n getDepartmentsByFacility,\r\n departments,\r\n departmentId,\r\n isDepartmentLoading,\r\n isDepartmentDisabled,\r\n shouldShowDepartment,\r\n\r\n orgWideDeptName,\r\n orgWideDepartments,\r\n isOrgWideDepartmentDisabled,\r\n isOrgWideDepartmentLoading,\r\n\r\n initializationComplete,\r\n manualInitialization\r\n }\r\n}\r\n\r\nexport default useOrganizationHierarchy;\r\n","interface UsePasswordValidation {\r\n doesPasswordMeetNumericReq(password: string): boolean,\r\n doesPasswordMeetLowercaseReq(password: string): boolean,\r\n doesPasswordMeetUppercaseReq(password: string): boolean,\r\n doesPasswordMeetNonAlphaNumericReq(password: string): boolean,\r\n doesPasswordMeetLengthReq(password: string): boolean\r\n}\r\n\r\nexport default function usePasswordValidation() : UsePasswordValidation {\r\n\r\n function doesPasswordMeetNumericReq(password: string): boolean {\r\n if (!password) return false;\r\n\r\n return new RegExp('\\\\d').test(password)\r\n }\r\n\r\n function doesPasswordMeetLowercaseReq(password: string): boolean {\r\n if (!password) return false;\r\n\r\n return new RegExp('[a-z]').test(password)\r\n }\r\n\r\n function doesPasswordMeetUppercaseReq(password: string): boolean {\r\n if (!password) return false;\r\n\r\n return new RegExp('[A-Z]').test(password)\r\n }\r\n\r\n function doesPasswordMeetNonAlphaNumericReq(password: string): boolean {\r\n if (!password) return false;\r\n\r\n return new RegExp('\\\\W').test(password)\r\n }\r\n\r\n function doesPasswordMeetLengthReq(password: string): boolean {\r\n if (!password) return false;\r\n\r\n return password.length >= 6\r\n }\r\n\r\n return {\r\n doesPasswordMeetNumericReq,\r\n doesPasswordMeetLowercaseReq,\r\n doesPasswordMeetUppercaseReq,\r\n doesPasswordMeetNonAlphaNumericReq,\r\n doesPasswordMeetLengthReq\r\n }\r\n}\r\n\r\n","import CourseFormat from '@/models/courses/Course/CourseFormat';\r\n\r\nexport function getUserFriendlyTimeSpan(minutesSpent: number | undefined): string {\r\n if (!minutesSpent) return '0 minutes';\r\n\r\n const hrs = Math.floor(minutesSpent / 60);\r\n const mins = Math.round(minutesSpent % 60);\r\n\r\n let result = '';\r\n\r\n if (hrs > 0) {\r\n result += `${hrs} hour${hrs > 1 ? 's' : ''} `;\r\n }\r\n if (mins > 0) {\r\n result += `${mins} minute${mins > 1 ? 's' : ''} `;\r\n }\r\n\r\n return result.trim();\r\n}\r\n\r\nexport function displayUserFriendlyDate (dateProp: Date | string): string {\r\n if(!dateProp) return ''\r\n\r\n return new Date(dateProp).toLocaleDateString();\r\n}\r\n\r\nexport function convertStatusToUserFriendly(status: string): string {\r\n return status.replace(/([a-z])([A-Z])/g, '$1 $2');\r\n}\r\n\r\nexport function getStatusStyle(status: string) {\r\n const styleStatus: string = convertStatusToUserFriendly(status);\r\n\r\n return styleStatus.replace(/ /g, '-').toLowerCase();\r\n}\r\n\r\nexport function validateStatus(status: string, targetDate: Date | string | undefined) {\r\n const dueDate: Date = !targetDate ? new Date() : new Date(targetDate);\r\n\r\n const updatedStatus: string = (status !== 'Complete') && (dueDate < new Date())\r\n ? 'past due'\r\n : convertStatusToUserFriendly(status);\r\n\r\n // Convert status to Pascal Case\r\n return updatedStatus.replace(/\\w+/g, word => word[0].toUpperCase() + word.slice(1).toLowerCase());\r\n}\r\n\r\nexport function getStudentStatusStyle(status: string, targetDate: Date | string | undefined) {\r\n const styleStatus = validateStatus(status, targetDate);\r\n\r\n return styleStatus.replace(/ /g, '-').toLowerCase();\r\n}\r\n\r\nexport function getCourseFormatName(courseFormatId: number) {\r\n switch(courseFormatId) {\r\n case CourseFormat.eCompetency_Knowledge:\r\n return 'Knowledge'\r\n case CourseFormat.eCompetency_Skills:\r\n return 'Skill'\r\n default:\r\n return 'None';\r\n }\r\n}\r\n","import axios, {AxiosInstance, AxiosResponse} from 'axios';\r\nimport useAuthStore from '@/store/auth.store'\r\nimport useMainStore from '@/store/main.store'\r\nimport { useRouter } from 'vue-router';\r\nimport ITokenResult from '@/models/auth/ITokenResult';\r\n\r\nconst jwtInterceptor: AxiosInstance = axios.create({\r\n baseURL: process.env.VUE_APP_APIBASEURL ?? window.location.origin\r\n});\r\n\r\nlet isRefreshing = false;\r\nlet refreshSubscribers: ((token: string) => void)[] = [];\r\n\r\n/**\r\n * Add a callback to the refresh queue\r\n */\r\nfunction subscribeTokenRefresh(callback: (token: string) => void): void {\r\n refreshSubscribers.push(callback);\r\n}\r\n\r\n/**\r\n * Notify all subscribers with the new token\r\n */\r\nfunction onRefreshed(token: string): void {\r\n refreshSubscribers.forEach((callback) => callback(token));\r\n refreshSubscribers = [];\r\n}\r\n\r\n/**\r\n * Handle token refresh errors\r\n */\r\nfunction handleTokenRefreshError(error: unknown): void {\r\n console.error('Refresh Token Error:', error);\r\n refreshSubscribers = [];\r\n}\r\n\r\nasync function refreshToken(): Promise {\r\n const authStore = useAuthStore();\r\n\r\n if (isRefreshing) {\r\n // Return a promise for queued requests\r\n return new Promise((resolve) => {\r\n subscribeTokenRefresh(resolve);\r\n });\r\n }\r\n\r\n isRefreshing = true;\r\n\r\n try {\r\n const refreshToken: string = authStore.getRefreshToken;\r\n const accessToken: string = authStore.getUserToken;\r\n\r\n if (!refreshToken) {\r\n throw new Error('No refresh token available');\r\n }\r\n\r\n const config = {\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n }\r\n };\r\n const response: AxiosResponse = await jwtInterceptor.post('api/auth/refresh', { accessToken, refreshToken });\r\n //if this doesn't work try this:\r\n\r\n const tokenMdl = response.data;\r\n\r\n authStore.saveTokenData(tokenMdl.accessToken, tokenMdl.refreshToken);\r\n\r\n onRefreshed(tokenMdl.accessToken);\r\n return tokenMdl.accessToken;\r\n } catch (error) {\r\n handleTokenRefreshError(error);\r\n throw error;\r\n } finally {\r\n isRefreshing = false;\r\n }\r\n}\r\n\r\njwtInterceptor.interceptors.request.use(\r\n (config: any): any => {\r\n const authStore = useAuthStore();\r\n const token = authStore.getUserToken;\r\n\r\n if (token) {\r\n config.headers = {\r\n ...config.headers,\r\n Authorization: `Bearer ${token}`,\r\n };\r\n }\r\n return config;\r\n },\r\n (error) => {\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\njwtInterceptor.interceptors.response.use(\r\n (response: AxiosResponse): AxiosResponse => response,\r\n async (error) => {\r\n const router = useRouter();\r\n const authStore = useAuthStore();\r\n const mainStore = useMainStore();\r\n\r\n const originalRequest = error.config;\r\n\r\n if (\r\n error.response?.status === 401 &&\r\n !originalRequest._retry &&\r\n !isRefreshing\r\n ) {\r\n originalRequest._retry = true;\r\n\r\n try {\r\n const newToken = await refreshToken();\r\n\r\n originalRequest.headers['Authorization'] = `Bearer ${newToken}`;\r\n return jwtInterceptor(originalRequest);\r\n } catch (refreshError) {\r\n console.error('Failed to refresh token:', refreshError);\r\n mainStore.clearMessages();\r\n mainStore.setErrorMsg('Sorry your session has expired, you must login again.');\r\n authStore.$reset();\r\n await router.push('/');\r\n return Promise.reject(refreshError);\r\n }\r\n }\r\n\r\n // If already refreshing, queue the request\r\n if (error.response?.status === 401 && !originalRequest._retry) {\r\n return new Promise((resolve, reject) => {\r\n subscribeTokenRefresh((token) => {\r\n originalRequest._retry = true;\r\n originalRequest.headers['Authorization'] = `Bearer ${token}`;\r\n resolve(jwtInterceptor(originalRequest));\r\n });\r\n });\r\n }\r\n\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\nexport default jwtInterceptor;\r\n","import { AuthenticationType } from '@/models/auth/AuthenticationType';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport axios, { AxiosError } from 'axios';\r\nimport jwt_decode from 'jwt-decode';\r\n\r\nfunction getJsonObjFromToken(token: string): any {\r\n const retObj: any = jwt_decode(token);\r\n return JSON.stringify(retObj);\r\n}\r\n\r\nfunction jwtDecrypt(token: string) : any {\r\n const jsonPayload = getJsonObjFromToken(token);\r\n return JSON.parse(jsonPayload);\r\n}\r\n\r\nexport function determineAuthorizationLevel(token: string): AuthorizationLevel {\r\n if (!token) return AuthorizationLevel.None;\r\n\r\n try {\r\n const jsonObj = jwtDecrypt(token);\r\n // noinspection HttpUrlsUsage\r\n const role = jsonObj['http://schemas.microsoft.com/ws/2008/06/identity/claims/role'];\r\n\r\n switch (role) {\r\n case 'System Administrator':\r\n return AuthorizationLevel.SystemAdministrator;\r\n case 'Corporation Administrator':\r\n return AuthorizationLevel.CorporationAdministrator;\r\n case 'Region Administrator':\r\n return AuthorizationLevel.RegionAdministrator;\r\n case 'Division Administrator':\r\n return AuthorizationLevel.DivisionAdministrator;\r\n case 'Facility Administrator':\r\n return AuthorizationLevel.FacilityAdministrator;\r\n case 'Department Administrator':\r\n return AuthorizationLevel.DepartmentAdministrator;\r\n case 'User':\r\n return AuthorizationLevel.User;\r\n default:\r\n return AuthorizationLevel.None;\r\n }\r\n }\r\n catch (e) {\r\n console.error('Unable to determine Auth Level', e);\r\n return AuthorizationLevel.None;\r\n }\r\n}\r\n\r\nexport function determineIdentityId(token: string): string {\r\n if (!token) return '';\r\n const jsonObj = jwtDecrypt(token);\r\n return jsonObj['HealthcareAcademy.Security.IdentityId'];\r\n}\r\nexport function determineUserProfileId(token: string): number | undefined {\r\n if (!token) return undefined;\r\n const jsonObj = jwtDecrypt(token);\r\n return jsonObj['HealthcareAcademy.Security.UserProfileId'];\r\n}\r\n\r\nexport function determineStudentProfileId(token: string): number | undefined {\r\n if (!token) return undefined;\r\n const jsonObj = jwtDecrypt(token);\r\n return jsonObj['HealthcareAcademy.Security.StudentProfileId'];\r\n}\r\n\r\nexport function determineEmail(token: string): string {\r\n if (!token) return '';\r\n const jsonObj = jwtDecrypt(token);\r\n return jsonObj['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress'];\r\n}\r\n\r\nexport function determineUsername(token: string): string {\r\n if (!token) return '';\r\n const jsonObj = jwtDecrypt(token);\r\n return jsonObj['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name'];\r\n}\r\n\r\nexport function determineFirstName(token: string): string {\r\n if (!token) return '';\r\n const jsonObj = jwtDecrypt(token);\r\n return jsonObj.given_name;\r\n}\r\n\r\nexport function determineLastName(token: string): string {\r\n if (!token) return '';\r\n const jsonObj = jwtDecrypt(token);\r\n return jsonObj.family_name;\r\n}\r\n\r\nexport function determineAuthType(token: string): AuthenticationType {\r\n if (!token) return 'None';\r\n const jsonObj = jwtDecrypt(token);\r\n return jsonObj['HealthcareAcademy.Security.AuthenticationMethod'] ?? 'None';\r\n}\r\n\r\nexport function determineHcaPermissions(token: string) : string[] {\r\n if (!token) return [];\r\n\r\n const jsonObj = jwtDecrypt(token);\r\n\r\n const perms = jsonObj['HealthcareAcademy.Security.Permissions'] ?? [];\r\n\r\n return Array.isArray(perms) ? perms : [perms];\r\n}\r\n\r\nexport function isTokenExpired(token: string): boolean {\r\n if(!token || token.trim().length === 0) return true\r\n const retObj: any = jwt_decode(token);\r\n\r\n const dateTimeNow = new Date().getTime();\r\n const tokenExpirationDateTime = new Date(retObj.exp * 1000).getTime();\r\n\r\n return dateTimeNow > tokenExpirationDateTime\r\n}\r\n\r\nexport async function formatServerErrorResponse(\r\n generalMessage: string,\r\n theException: AxiosError\r\n): Promise {\r\n if (theException === null) return generalMessage;\r\n if (axios.isAxiosError(theException)) {\r\n // here we have a type guard check, error inside this if it will be treated as AxiosError\r\n const response = theException?.response;\r\n const request = theException?.request;\r\n const config = theException?.config; // here we have access the config used to make the api call (we can make a retry using this conf)\r\n\r\n if (theException.code === 'ERR_NETWORK') {\r\n return 'We are unable to contact the server, please wait a moment and try again.';\r\n } else if (theException.code === 'ERR_CANCELED') {\r\n return 'We the connection was cancelled. Please try again.';\r\n }\r\n if (response) {\r\n // The request was made and the server responded with a status code that falls out of the range of 2xx the http status code mentioned above\r\n const statusCode: number = response?.status;\r\n if (statusCode === 404)\r\n return 'The requested endpoint does not exist.';\r\n\r\n if (statusCode === 401)\r\n return 'You are not authorized to perform this operation.';\r\n\r\n if (statusCode === 405)\r\n return 'Route found but the method is not supported.';\r\n\r\n if (statusCode === 400) {\r\n\r\n if (!response.data || !response.data.errors) {\r\n if (response.data.type === 'text/plain')\r\n return await response.data.text();\r\n\r\n return theException.response?.data;\r\n }\r\n\r\n if ( typeof response.data.errors === 'string')\r\n return JSON.stringify(response.data.errors, null, 4);\r\n\r\n const errorMessages: string[] = [];\r\n\r\n for (const errors in response.data.errors) {\r\n // This check is necessary to filter out properties from the object's prototype chain\r\n // eslint-disable-next-line\r\n if (response.data.errors.hasOwnProperty(errors)) {\r\n errorMessages.push(response.data.errors[errors]);\r\n }\r\n }\r\n\r\n return errorMessages;\r\n }\r\n } else if (request) {\r\n // The request was made but no response was received, `error.request` is an instance of XMLHttpRequest in the browser and an instance of http.ClientRequest in Node.js\r\n return 'The server is not responding, please wait a moment and try again.';\r\n }\r\n }\r\n // Catch all\r\n // noinspection TsLint\r\n console.error(theException ? JSON.stringify(theException) : generalMessage);\r\n return generalMessage;\r\n}\r\n","import {OrganizationLevel} from '@/models/user/OrganizationLevel/OrganizationLevel';\r\n\r\nexport function getOrganizationLevelName(organizationLevel: OrganizationLevel | undefined) {\r\n switch (organizationLevel) {\r\n case OrganizationLevel.Department:\r\n return 'Department';\r\n case OrganizationLevel.Facility:\r\n return 'Facility';\r\n case OrganizationLevel.Division:\r\n return 'Division';\r\n case OrganizationLevel.Region:\r\n return 'Region';\r\n case OrganizationLevel.Corporation:\r\n return 'Corporation';\r\n default:\r\n return '';\r\n }\r\n}\r\n","export function parseNumericQueryParam(param: any): number | undefined {\r\n if (typeof param != 'string')\r\n return undefined;\r\n\r\n if (!param)\r\n return undefined;\r\n\r\n return parseInt(param);\r\n}\r\n","import { App, reactive } from 'vue';\r\nimport { EventMessage, EventMessageUtils, EventType, InteractionStatus, PublicClientApplication, AccountInfo } from '@azure/msal-browser';\r\n\r\ntype AccountIdentifiers = Partial>;\r\n\r\n/**\r\n * Helper function to determine whether 2 arrays are equal\r\n * Used to avoid unnecessary state updates\r\n * @param arrayA\r\n * @param arrayB\r\n */\r\nfunction accountArraysAreEqual(arrayA: AccountIdentifiers[], arrayB: AccountIdentifiers[]): boolean {\r\n if (arrayA.length !== arrayB.length) {\r\n return false;\r\n }\r\n\r\n const comparisonArray = [...arrayB];\r\n\r\n return arrayA.every((elementA) => {\r\n const elementB = comparisonArray.shift();\r\n if (!elementA || !elementB) {\r\n return false;\r\n }\r\n\r\n return (elementA.homeAccountId === elementB.homeAccountId) &&\r\n (elementA.localAccountId === elementB.localAccountId) &&\r\n (elementA.username === elementB.username);\r\n });\r\n}\r\n\r\nexport const msalPlugin = {\r\n install: (app: App, msalInstance: PublicClientApplication) => {\r\n\r\n const inProgress = InteractionStatus.Startup;\r\n const accounts = msalInstance.getAllAccounts();\r\n\r\n const state = reactive({\r\n instance: msalInstance,\r\n inProgress,\r\n accounts\r\n });\r\n\r\n app.config.globalProperties.$msal = state;\r\n\r\n msalInstance.addEventCallback((message: EventMessage) => {\r\n switch (message.eventType) {\r\n case EventType.ACCOUNT_ADDED:\r\n case EventType.ACCOUNT_REMOVED:\r\n case EventType.LOGIN_SUCCESS:\r\n case EventType.SSO_SILENT_SUCCESS:\r\n case EventType.HANDLE_REDIRECT_END:\r\n case EventType.LOGIN_FAILURE:\r\n case EventType.SSO_SILENT_FAILURE:\r\n case EventType.LOGOUT_END:\r\n case EventType.ACQUIRE_TOKEN_SUCCESS:\r\n case EventType.ACQUIRE_TOKEN_FAILURE:\r\n // eslint-disable-next-line\r\n const currentAccounts = msalInstance.getAllAccounts();\r\n if (!accountArraysAreEqual(currentAccounts, state.accounts)) {\r\n state.accounts = currentAccounts;\r\n }\r\n break;\r\n }\r\n\r\n const status = EventMessageUtils.getInteractionStatusFromEvent(message, state.inProgress);\r\n if (status !== null) {\r\n state.inProgress = status;\r\n }\r\n });\r\n }\r\n}","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_view = _resolveComponent(\"router-view\")!\n const _component_AppLayout = _resolveComponent(\"AppLayout\")!\n\n return (_openBlock(), _createBlock(_component_AppLayout, null, {\n default: _withCtx(() => [\n _createVNode(_component_router_view)\n ]),\n _: 1\n }))\n}","\r\n\r\n\r\n","import { render } from \"./App.vue?vue&type=template&id=819877f8&ts=true\"\nimport script from \"./App.vue?vue&type=script&lang=ts\"\nexport * from \"./App.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createElementVNode as _createElementVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Toast = _resolveComponent(\"Toast\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_Toast),\n _createElementVNode(\"div\", null, [\n (_openBlock(), _createBlock(_resolveDynamicComponent($setup.layout.value), null, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }))\n ])\n ], 64))\n}","\r\n\r\n\r\n\r\n","\r\n","import { render } from \"./AppLayoutPublic.vue?vue&type=template&id=5eebc1ef\"\nconst script = {}\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"flex flex-column -mb-2 min-h-screen\" }\nconst _hoisted_2 = { class: \"flex flex-column md:flex-row mt-0 mx-0 flex-grow-1\" }\nconst _hoisted_3 = {\n style: {\"background\":\"var(--hca-gold)\"},\n class: \"mx-0\"\n}\nconst _hoisted_4 = { class: \"flex justify-content-end md:hidden\" }\nconst _hoisted_5 = {\n class: \"hidden md:flex p-0 ml-2\",\n style: {\"min-width\":\"250px\"}\n}\n\nimport useAuthStore from \"@/store/auth.store\";\r\nimport router from '@/router';\r\nimport {computed, ref, watch} from 'vue';\r\nimport {MenuItem} from \"primevue/menuitem\";\r\nimport AuthorizationLevel from \"@/models/auth/AuthorizationLevel\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AppLayoutAuthorizedAdmin',\n setup(__props) {\n\r\nconst authStore = useAuthStore();\r\n\r\nconst visibleMenu = ref(false);\r\nconst adminMenuItems = ref([\r\n {\r\n label: 'Reports',\r\n icon: 'reports-icon',\r\n command: () => router.push('/reports')\r\n },\r\n {\r\n label: 'Course Management',\r\n icon: 'course-management-icon',\r\n visible: () => authStore.hasCourseAssignmentPermission || isSystemAdmin.value, \r\n items: [\r\n {\r\n label: 'Assign',\r\n class: 'font-medium',\r\n visible: () => authStore.hasCourseAssignmentPermission,\r\n command: () => router.push('/assign-courses')\r\n },\r\n {\r\n label: 'Drop',\r\n class: 'font-medium',\r\n visible: () => authStore.hasCourseAssignmentPermission,\r\n command: () => router.push('/drop-courses')\r\n },\r\n {\r\n label: 'Automated Assignment',\r\n // visible: () => authStore.hasAutomatedAssignmentPermission,\r\n visible: () => false,\r\n command: () => router.push('/automated-course-assignment')\r\n },\r\n {\r\n label: 'Courses',\r\n visible: () => isSystemAdmin.value,\r\n command: () => router.push('/course-management'),\r\n },\r\n {\r\n label: 'Lessons',\r\n visible: () => isSystemAdmin.value,\r\n command: () => router.push('/lessons')\r\n },\r\n ],\r\n },\r\n {\r\n label: 'User Management',\r\n icon: 'user-management-icon',\r\n items: [\r\n {\r\n label: 'Manage Users',\r\n visible: () => authStore.hasAnyAddEditPermission,\r\n command: () => router.push('/users'),\r\n },\r\n {\r\n label: 'Create User',\r\n visible: () => authStore.hasAnyAddEditPermission,\r\n command: () => router.push('/create-user'),\r\n },\r\n {\r\n label: 'Export Users',\r\n command: () => router.push('/export-users'),\r\n },\r\n {\r\n label: 'Import Users',\r\n visible: () => authStore.hasImportPermission,\r\n command: () => router.push('/import-users'),\r\n },\r\n ],\r\n },\r\n {\r\n label: 'System Administration',\r\n visible: () => isSystemAdmin.value,\r\n icon: 'system-admin-icon',\r\n items: [\r\n {\r\n label: 'Menu Styles',\r\n command: () => router.push('/menu-styles'),\r\n },\r\n {\r\n label: 'Training Categories',\r\n command: () => router.push('/training-categories'),\r\n },\r\n {\r\n label: 'Training Sub-Categories',\r\n command: () => router.push('/training-subcategories'),\r\n },\r\n {\r\n label: 'Training Providers',\r\n command: () => router.push('/training-providers'),\r\n },\r\n {\r\n label: 'Organization Levels',\r\n items: [\r\n {\r\n label: 'Corporations',\r\n command: () => router.push('/corporations')\r\n },\r\n {\r\n label: 'Regions',\r\n command: () => router.push('/regions')\r\n },\r\n {\r\n label: 'Divisions',\r\n command: () => router.push('/divisions')\r\n },\r\n {\r\n label: 'Facilities',\r\n command: () => router.push('/facilities')\r\n },\r\n {\r\n label: 'Departments',\r\n command: () => router.push('/departments')\r\n }\r\n ]\r\n },\r\n ]\r\n },\r\n {\r\n label: 'Resources',\r\n icon: 'resources-icon',\r\n command: () => router.push('/resources'),\r\n }\r\n]);\r\n\r\nconst isSystemAdmin = computed(() => authStore.getAuthorizationLevel === AuthorizationLevel.SystemAdministrator);\r\n\r\nwatch(router.currentRoute, (toPath, fromPath) => {\r\n if(toPath.fullPath !== fromPath.fullPath) visibleMenu.value = false; \r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_TopMenuComponent = _resolveComponent(\"TopMenuComponent\")!\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_AdminMenu = _resolveComponent(\"AdminMenu\")!\n const _component_FooterComponent = _resolveComponent(\"FooterComponent\")!\n const _component_Sidebar = _resolveComponent(\"Sidebar\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_TopMenuComponent),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_Button, {\n icon: \"pi pi-bars text-2xl\",\n class: \"mr-5\",\n plain: \"\",\n text: \"\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (visibleMenu.value = true))\n })\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_AdminMenu, { \"menu-items\": adminMenuItems.value }, null, 8, [\"menu-items\"])\n ])\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _createVNode(_component_FooterComponent),\n _createVNode(_component_Sidebar, {\n visible: visibleMenu.value,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => ((visibleMenu).value = $event)),\n position: \"full\",\n style: {\"background\":\"var(--hca-gold)\"}\n }, {\n default: _withCtx(() => [\n _createVNode(_component_AdminMenu, { \"menu-items\": adminMenuItems.value }, null, 8, [\"menu-items\"])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./AppLayoutAuthorizedAdmin.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AppLayoutAuthorizedAdmin.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"flex flex-column -mb-2 min-h-screen\" }\nconst _hoisted_2 = { class: \"flex flex-column md:flex-row mt-0 mx-0 flex-grow-1\" }\nconst _hoisted_3 = {\n style: {\"background\":\"var(--hca-gold)\"},\n class: \"mx-0\"\n}\nconst _hoisted_4 = { class: \"flex justify-content-end md:hidden\" }\nconst _hoisted_5 = {\n class: \"hidden md:flex p-0 ml-2\",\n style: {\"min-width\":\"250px\"}\n}\n\nimport router from '@/router';\r\nimport {ref, watch} from 'vue';\r\nimport {MenuItem} from \"primevue/menuitem\";\r\nimport useAuthStore from \"@/store/auth.store\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AppLayoutCompetencyEvalAdmin',\n setup(__props) {\n\r\nconst authStore = useAuthStore();\r\n\r\nconst visibleMenu = ref(false);\r\nconst competencyMenuItems = ref([\r\n {\r\n label: 'Competencies',\r\n icon: 'resources-icon',\r\n command: () => router.push('/evaluator-menu'),\r\n },\r\n {\r\n label: 'Evaluation Results',\r\n icon: 'resources-icon',\r\n command: () => router.push('/competency/results'),\r\n },\r\n {\r\n label: 'Custom Competencies',\r\n icon: 'pi pi-pencil',\r\n items: [\r\n {\r\n label: 'Active',\r\n class: 'font-medium',\r\n command: () => router.push('/competency/custom/active')\r\n },\r\n {\r\n label: 'Retired',\r\n class: 'font-medium',\r\n command: () => router.push('/competency/custom/retired')\r\n },\r\n {\r\n label: 'Create New',\r\n class: 'font-medium',\r\n visible: () => authStore.hasCreateCustomCompetencyPermission,\r\n command: () => router.push('/competency/custom/create')\r\n }\r\n ]\r\n }\r\n]);\r\n\r\nwatch(router.currentRoute, (toPath, fromPath) => {\r\n if(toPath.fullPath !== fromPath.fullPath) \r\n visibleMenu.value = false;\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_TopMenuComponent = _resolveComponent(\"TopMenuComponent\")!\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_AdminMenu = _resolveComponent(\"AdminMenu\")!\n const _component_FooterComponent = _resolveComponent(\"FooterComponent\")!\n const _component_Sidebar = _resolveComponent(\"Sidebar\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_TopMenuComponent),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_Button, {\n icon: \"pi pi-bars text-2xl\",\n class: \"mr-5\",\n plain: \"\",\n text: \"\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (visibleMenu.value = true))\n })\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_AdminMenu, { \"menu-items\": competencyMenuItems.value }, null, 8, [\"menu-items\"])\n ])\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _createVNode(_component_FooterComponent),\n _createVNode(_component_Sidebar, {\n visible: visibleMenu.value,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => ((visibleMenu).value = $event)),\n position: \"full\",\n style: {\"background\":\"var(--hca-gold)\"}\n }, {\n default: _withCtx(() => [\n _createVNode(_component_AdminMenu, { \"menu-items\": competencyMenuItems.value }, null, 8, [\"menu-items\"])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./AppLayoutCompetencyEvalAdmin.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AppLayoutCompetencyEvalAdmin.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n","import { render } from \"./AppLayoutAuthorizedStudent.vue?vue&type=template&id=0e67336d\"\nconst script = {}\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"flex flex-column -mb-2 min-h-screen\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_LoginFooterComponent = _resolveComponent(\"LoginFooterComponent\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", null, [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _createVNode(_component_LoginFooterComponent)\n ]))\n}","\r\n\r\n\r\n","import { render } from \"./AppLayoutLogin.vue?vue&type=template&id=f7993f32&ts=true\"\nimport script from \"./AppLayoutLogin.vue?vue&type=script&lang=ts\"\nexport * from \"./AppLayoutLogin.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createStaticVNode as _createStaticVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"min-h-screen flex flex-column surface-ground\" }\nconst _hoisted_2 = {\n class: \"surface-overlay py-3 px-6 flex align-items-center justify-content-between relative lg:static\",\n style: {\"min-height\":\"40px\"}\n}\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"https://hcacontenthosting.blob.core.windows.net/webdocs/Images/HCA-Logo.png\",\n alt: \"Healthcare Academy Logo\",\n height: \"50\",\n class: \"mr-0 lg:mr-6\"\n}, null, -1)\nconst _hoisted_4 = { class: \"block-content\" }\nconst _hoisted_5 = { class: \"surface-section px-2 md:px-4 lg:px-5\" }\nconst _hoisted_6 = { class: \"py-2 flex flex-column sm:flex-row sm:align-items-center justify-content-between\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"https://hcacontenthosting.blob.core.windows.net/webdocs/Images/HCA-Logo.png\",\n alt: \"Image\",\n height: \"60\"\n}, null, -1)\nconst _hoisted_8 = { class: \"ml-2 mt-2 line-height-3 inline-block vertical-align-baseline\" }\nconst _hoisted_9 = /*#__PURE__*/_createStaticVNode(\"
\", 1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_router_link, {\n class: \"px-2 mt-5\",\n to: \"/\"\n }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n })\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", null, [\n _hoisted_7,\n _createElementVNode(\"div\", _hoisted_8, \" © \" + _toDisplayString(new Date().getFullYear()) + \" Omnitech, Inc. All rights reserved\", 1)\n ]),\n _hoisted_9\n ])\n ])\n ])\n ]))\n}","\r\n\r\n\r\n","import { render } from \"./AppLayoutError.vue?vue&type=template&id=0b1b2b01&ts=true\"\nimport script from \"./AppLayoutError.vue?vue&type=script&lang=ts\"\nexport * from \"./AppLayoutError.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./AppLayout.vue?vue&type=template&id=07fb3e0e&ts=true\"\nimport script from \"./AppLayout.vue?vue&type=script&lang=ts\"\nexport * from \"./AppLayout.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"flex flex-row justify-content-between z-0 w-full\",\n style: {\"background-color\":\"var(--hca-light-gray)\",\"box-shadow\":\"0 0 5px 0\"}\n}\nconst _hoisted_2 = { class: \"m-2\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"img\", {\n class: \"flex h-3rem\",\n src: \"https://hcacontenthosting.blob.core.windows.net/webdocs/Images/HCA-Logo.png\",\n alt: \"Healthcare Academy Logo\"\n}, null, -1)\nconst _hoisted_4 = { class: \"flex align-items-end\" }\n\nimport useAuthStore from '@/store/auth.store';\r\nimport Menu from 'primevue/menu';\r\nimport { MenuItem } from 'primevue/menuitem';\r\nimport { onMounted, ref } from 'vue';\r\nimport router from '@/router';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TopMenuComponent',\n setup(__props) {\n\r\nconst authStore = useAuthStore();\r\n\r\nconst displayName = ref('');\r\nconst menu = ref();\r\nconst userActionItems: MenuItem[] = [\r\n {\r\n label: 'Student',\r\n icon: 'student-icon',\r\n visible: () => !!authStore.getStudentProfileId,\r\n command: () => router.push('/home'),\r\n },\r\n {\r\n label: 'Admin',\r\n icon: 'admin-icon',\r\n visible: () => authStore.isAdmin,\r\n command: () => router.push('/admin-menu'),\r\n },\r\n {\r\n label: 'Evaluator',\r\n icon: 'evaluator-icon',\r\n visible: () => authStore.isAdmin && authStore.hasAnyCompetencyEvaluatorPermission,\r\n command: () => router.push('/evaluator-menu'),\r\n },\r\n {\r\n separator: true,\r\n class: 'mx-5',\r\n style: 'border-top-color: var(--hca-main-gray)',\r\n visible: () => authStore.isAdmin,\r\n },\r\n {\r\n label: 'My Profile',\r\n icon: 'my-profile-icon',\r\n command: () => authStore.isAdmin ? router.push('/account/admin') : router.push('/account/student/overview'),\r\n },\r\n {\r\n label: 'Log Out',\r\n icon: 'log-out-icon',\r\n command: () => router.push('/logout'),\r\n },\r\n {\r\n label: 'Help',\r\n icon: 'help-icon',\r\n command: () => window.open('https://healthcareacademy.com/contact-support/', '_blank', 'noreferrer'),\r\n },\r\n];\r\n\r\nonMounted(() => setDisplayName());\r\n\r\nfunction setDisplayName() {\r\n let name = `${authStore.getFirstName} ${authStore.getLastName}`\r\n\r\n if (!name) return;\r\n\r\n if (name.length > 15) {\r\n name = `${authStore.getFirstName.charAt(0).toUpperCase()}. ${authStore.getLastName}`\r\n }\r\n\r\n displayName.value = name;\r\n}\r\n\r\nfunction toggleMenu(event: any): void {\r\n menu.value?.toggle(event);\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_link = _resolveComponent(\"router-link\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_router_link, { to: \"/\" }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_Button, {\n icon: \"pi pi-angle-down\",\n \"icon-pos\": \"right\",\n type: \"button\",\n class: \"h-full px-2 md:pr-7\",\n style: {\"color\":\"var(--hca-main-gray)\",\"font-size\":\"15px\"},\n label: displayName.value,\n pt: { label: { class: ['font-medium'] } },\n onClick: toggleMenu,\n text: \"\"\n }, null, 8, [\"label\"])\n ]),\n _createVNode(_unref(Menu), {\n model: userActionItems,\n ref_key: \"menu\",\n ref: menu,\n class: \"py-0\",\n style: {\"border-radius\":\"15px\"},\n popup: true\n }, null, 512)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./TopMenuComponent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TopMenuComponent.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/logoLarge.png'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2beb73fc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"grid flex justify-content-between background-darkgrey\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"col-9 flex md:hidden mobile-menu\" }, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n alt: \"Healthcare Academy Logo\",\n class: \"h-3rem z-1\"\n })\n], -1))\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", { class: \"pi pi-bars text-3xl color-white\" }, null, -1))\nconst _hoisted_4 = [\n _hoisted_3\n]\n\nimport { ref } from 'vue'\r\nimport router from '@/router';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'LoginTopMenuComponent',\n setup(__props) {\n\r\nconst menu = ref();\r\nlet items = [\r\n { label: 'Dashboard', icon: 'pi pi-fw pi-pencil', command: () => router.push('/dashboard') },\r\n { label: 'Students', icon: 'pi pi-fw pi-user', command: () => router.push('/students') }\r\n];\r\n\r\nfunction ToggleMenu(event: any) { menu.value.toggle(event); }\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Menu = _resolveComponent(\"Menu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", { class: \"md:hidden flex col justify-content-end pr-3\" }, [\n _createElementVNode(\"button\", {\n class: \"no-border h-3rem\",\n onClick: ToggleMenu\n }, _hoisted_4)\n ]),\n _createVNode(_component_Menu, {\n id: \"overlay_menu\",\n ref_key: \"menu\",\n ref: menu,\n model: _unref(items),\n popup: true\n }, null, 8, [\"model\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./LoginTopMenuComponent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./LoginTopMenuComponent.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./LoginTopMenuComponent.vue?vue&type=style&index=0&id=2beb73fc&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2beb73fc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { MenuItem } from 'primevue/menuitem';\r\nimport { computed, ref } from 'vue';\r\nimport PanelMenu from 'primevue/panelmenu';\r\n\r\n// eslint-disable-next-line no-undef\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AdminMenu',\n props: {\n menuItems: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst pm = ref();\r\nconst adminMenuItems = computed(() => props.menuItems || []);\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_unref(PanelMenu), {\n class: \"full-nav pt-3\",\n ref_key: \"pm\",\n ref: pm,\n style: {\"color\":\"var(--hca-dark-blue)\"},\n model: adminMenuItems.value,\n unstyled: true,\n pt: {\r\n headerContent: {\r\n class: ['admin-menu-option']\r\n },\r\n headerAction: {\r\n class: ['flex', 'gap-2']\r\n },\r\n headerLabel: {\r\n style: {\r\n 'font-weight': '500',\r\n 'font-size': '20px'\r\n }\r\n },\r\n label: {\r\n style: {\r\n 'font-weight': '500',\r\n 'font-size': '18px'\r\n }\r\n },\r\n menuContent: {\r\n style: {\r\n 'border-left': 'var(--hca-light-gray) 3px solid',\r\n 'margin-left': '30px'\r\n }\r\n },\r\n menu: {\r\n style: {\r\n 'list-style': 'none',\r\n 'padding': '0',\r\n 'margin-top': '0'\r\n }\r\n },\r\n content: {\r\n class: ['admin-menu-sub-option']\r\n },\r\n action: {\r\n style: {\r\n 'display': 'flex',\r\n 'gap': '5px'\r\n }\r\n },\r\n subMenu: {\r\n style: {\r\n 'list-style': 'none',\r\n 'background-color': 'var(--hca-gold)',\r\n 'border-left': 'var(--hca-light-gray) 3px solid',\r\n 'margin-left': '30px',\r\n 'padding': '0'\r\n }\r\n }\r\n }\n }, null, 8, [\"model\", \"pt\"]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./AdminMenu.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AdminMenu.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./AdminMenu.vue?vue&type=style&index=0&id=658edf6c&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n\r\n\r\n","import { render } from \"./LoginFooterComponent.vue?vue&type=template&id=12d1f59c&scoped=true\"\nconst script = {}\n\nimport \"./LoginFooterComponent.vue?vue&type=style&index=0&id=12d1f59c&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-12d1f59c\"]])\n\nexport default __exports__","\r\n","import { render } from \"./Footer.vue?vue&type=template&id=6f16208b\"\nconst script = {}\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, isRef as _isRef, normalizeClass as _normalizeClass, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"mt-2\" }\nconst _hoisted_2 = { class: \"flex flex-column gap-5\" }\nconst _hoisted_3 = { class: \"p-float-label\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"email\" }, \"E-Mail Address\", -1)\nconst _hoisted_5 = { class: \"p-error\" }\nconst _hoisted_6 = { class: \"p-float-label w-full\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"phone\" }, \"Phone\", -1)\nconst _hoisted_8 = { class: \"p-error\" }\nconst _hoisted_9 = { class: \"flex flex-column mt-3 gap-5\" }\nconst _hoisted_10 = { class: \"flex flex-column\" }\nconst _hoisted_11 = { class: \"p-float-label w-full\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"address1\" }, \"Address Line #1\", -1)\nconst _hoisted_13 = { class: \"p-error\" }\nconst _hoisted_14 = { class: \"flex flex-row gap-3\" }\nconst _hoisted_15 = { class: \"w-full\" }\nconst _hoisted_16 = { class: \"p-float-label\" }\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"address2\" }, \"Address Line #2\", -1)\nconst _hoisted_18 = { class: \"p-error\" }\nconst _hoisted_19 = { class: \"w-full\" }\nconst _hoisted_20 = { class: \"p-float-label w-full\" }\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"zipCode\" }, \"ZipCode\", -1)\nconst _hoisted_22 = { class: \"p-error\" }\nconst _hoisted_23 = { class: \"flex flex-row gap-3\" }\nconst _hoisted_24 = { class: \"flex flex-column w-full\" }\nconst _hoisted_25 = { class: \"p-float-label w-full\" }\nconst _hoisted_26 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"city\" }, \"City\", -1)\nconst _hoisted_27 = { class: \"p-error\" }\nconst _hoisted_28 = { class: \"w-full\" }\nconst _hoisted_29 = { class: \"p-float-label w-full\" }\nconst _hoisted_30 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"selectStates\" }, \"State\", -1)\nconst _hoisted_31 = { class: \"p-error\" }\nconst _hoisted_32 = { class: \"flex justify-content-end\" }\n\nimport useAuthStore from '@/store/auth.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport UpdateContactInformation from '@/models/user/UpdateContactInformation';\r\nimport useStudentAccountStore from '@/store/student/student.account.store';\r\nimport allStates from '@/models/states';\r\nimport {toTypedSchema} from '@vee-validate/zod';\r\nimport {computed, onMounted} from 'vue';\r\nimport {useForm} from 'vee-validate';\r\nimport {z} from 'zod';\r\n\r\n// eslint-disable-next-line no-undef\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'EvaluationPersonInfoUpdate',\n props: {\n requireEmail: { type: Boolean },\n requirePhoneNumber: { type: Boolean },\n requireAddress: { type: Boolean }\n },\n emits: ['updatedContactInfo'],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\n// eslint-disable-next-line no-undef\r\nconst emit = __emit\r\n\r\nconst studentAccountStore = useStudentAccountStore();\r\nconst authStore = useAuthStore();\r\nconst mainStore = useMainStore();\r\n\r\nconst {errors, handleSubmit, defineField, resetForm, isFieldDirty } = useForm({\r\n validationSchema: toTypedSchema(\r\n z.object({\r\n email: z.string({ required_error:'Please enter email address' }).email('Please enter a valid email address'),\r\n phoneNumber: z.string(),\r\n address1: z.string().optional().nullable(),\r\n address2: z.string().optional().nullable(),\r\n city: z.string().optional().nullable(),\r\n state: z.string().optional().nullable(),\r\n zipCode: z.string().optional().nullable(),\r\n }).superRefine((data, ctx) => {\r\n\r\n if (props.requireAddress) {\r\n if (!data.address1) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n path: ['address1'],\r\n message: 'Required',\r\n })\r\n }\r\n if (!data.city) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n path: ['city'],\r\n message: 'Required',\r\n })\r\n }\r\n if (!data.state) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n path: ['state'],\r\n message: 'Required',\r\n })\r\n }\r\n if (!data.zipCode) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n path: ['zipCode'],\r\n message: 'Required',\r\n })\r\n }\r\n }\r\n\r\n if (props.requirePhoneNumber) {\r\n if (!data.phoneNumber) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n path: ['phoneNumber'],\r\n message: 'Required',\r\n })\r\n }\r\n }\r\n }))\r\n});\r\n\r\nconst [email] = defineField('email');\r\nconst [phoneNumber] = defineField('phoneNumber');\r\nconst [address1] = defineField('address1');\r\nconst [address2] = defineField('address2');\r\nconst [city] = defineField('city');\r\nconst [state] = defineField('state');\r\nconst [zipCode] = defineField('zipCode');\r\n\r\nconst userProfileId = computed(() => authStore.getUserProfileId);\r\n\r\nonMounted(async () => await initializeContactInfo());\r\n\r\nasync function initializeContactInfo(): Promise {\r\n if (!userProfileId.value)\r\n return mainStore.setErrorMsg('Invalid User Profile Id.');\r\n\r\n const contactInfo = await studentAccountStore.getContactInfo(userProfileId.value);\r\n\r\n resetForm({\r\n values: {\r\n email: authStore.getEmail,\r\n phoneNumber: contactInfo?.phoneNumber,\r\n address1: contactInfo?.address1,\r\n address2: contactInfo?.address2,\r\n city: contactInfo?.city,\r\n state: contactInfo?.state,\r\n zipCode: contactInfo?.zipCode,\r\n }\r\n })\r\n}\r\n\r\nconst updateContactInfo = handleSubmit(async values => {\r\n if (!userProfileId.value)\r\n return mainStore.setErrorMsg('Unable to save contact info. Invalid User Profile Id');\r\n\r\n try\r\n {\r\n if (isFieldDirty('email')) \r\n await studentAccountStore.updateProfileEmail(userProfileId.value, values.email);\r\n\r\n if (isContactInfoDirty()) {\r\n\r\n const updateMdl: UpdateContactInformation = {\r\n userProfileId: userProfileId.value,\r\n phoneNumber: values.phoneNumber,\r\n address1: values.address1,\r\n address2: values.address2,\r\n city: values.city,\r\n state: values.state,\r\n zipCode: values.zipCode,\r\n }\r\n\r\n await studentAccountStore.updateContactInfo(updateMdl)\r\n\r\n await studentAccountStore.getContactInfo(userProfileId.value)\r\n }\r\n\r\n emit('updatedContactInfo')\r\n } \r\n catch (e) {\r\n console.error('Unable to save contact info. ', e);\r\n }\r\n});\r\n\r\nfunction isContactInfoDirty() {\r\n return (isFieldDirty('phoneNumber') ||\r\n isFieldDirty('address1') ||\r\n isFieldDirty('address2') ||\r\n isFieldDirty('city') ||\r\n isFieldDirty('state') ||\r\n isFieldDirty('zipCode'))\r\n}\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_InputText = _resolveComponent(\"InputText\")!\n const _component_InputMask = _resolveComponent(\"InputMask\")!\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n onSubmit: _cache[7] || (_cache[7] = \n//@ts-ignore\n(...args) => (_unref(updateContactInfo) && _unref(updateContactInfo)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", _hoisted_3, [\n _createVNode(_component_InputText, {\n modelValue: _unref(email),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(email) ? (email).value = $event : null)),\n id: \"email\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).email }]),\n type: \"text\"\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_4\n ]),\n _createElementVNode(\"small\", _hoisted_5, _toDisplayString(_unref(errors)[\"email\"]), 1)\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_InputMask, {\n id: \"phone\",\n modelValue: _unref(phoneNumber),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(phoneNumber) ? (phoneNumber).value = $event : null)),\n mask: \"(999) 999-9999\",\n placeholder: \"(999) 999-9999\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).phoneNumber }])\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_7\n ]),\n _createElementVNode(\"small\", _hoisted_8, _toDisplayString(_unref(errors)[\"phoneNumber\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"span\", _hoisted_11, [\n _createVNode(_component_InputText, {\n id: \"address1\",\n modelValue: _unref(address1),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(address1) ? (address1).value = $event : null)),\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).address1 }])\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_12\n ]),\n _createElementVNode(\"small\", _hoisted_13, _toDisplayString(_unref(errors)[\"address1\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"span\", _hoisted_16, [\n _createVNode(_component_InputText, {\n modelValue: _unref(address2),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(address2) ? (address2).value = $event : null)),\n id: \"address2\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).address2 }])\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_17\n ]),\n _createElementVNode(\"small\", _hoisted_18, _toDisplayString(_unref(errors)[\"address2\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"span\", _hoisted_20, [\n _createVNode(_component_InputText, {\n modelValue: _unref(zipCode),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(zipCode) ? (zipCode).value = $event : null)),\n id: \"zipCode\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).zipCode }])\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_21\n ]),\n _createElementVNode(\"small\", _hoisted_22, _toDisplayString(_unref(errors)[\"zipCode\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_23, [\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"span\", _hoisted_25, [\n _createVNode(_component_InputText, {\n modelValue: _unref(city),\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_isRef(city) ? (city).value = $event : null)),\n id: \"city\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).city }])\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_26\n ]),\n _createElementVNode(\"small\", _hoisted_27, _toDisplayString(_unref(errors)[\"city\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", _hoisted_29, [\n _createVNode(_component_Dropdown, {\n inputId: \"selectStates\",\n modelValue: _unref(state),\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_isRef(state) ? (state).value = $event : null)),\n options: _unref(allStates),\n \"option-label\": \"displayName\",\n \"option-value\": \"code\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).state }]),\n filter: \"\"\n }, null, 8, [\"modelValue\", \"options\", \"class\"]),\n _hoisted_30\n ]),\n _createElementVNode(\"small\", _hoisted_31, _toDisplayString(_unref(errors)[\"state\"]), 1)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_32, [\n _createVNode(_component_Button, {\n label: \"Save\",\n icon: \"pi pi-save\",\n type: \"submit\"\n })\n ])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./EvaluationPersonInfoUpdate.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./EvaluationPersonInfoUpdate.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, unref as _unref, isRef as _isRef, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex justify-content-center\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", null, \"No Professions Found\")\n], -1)\nconst _hoisted_2 = { class: \"flex justify-content-center\" }\nconst _hoisted_3 = { class: \"flex flex-column gap-5\" }\nconst _hoisted_4 = { class: \"flex md:flex-wrap flex-column md:flex-row gap-5\" }\nconst _hoisted_5 = { class: \"p-float-label\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"dd-new-profession-name\" }, \"Profession Name\", -1)\nconst _hoisted_7 = { class: \"p-error\" }\nconst _hoisted_8 = { class: \"p-float-label\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"dd-region\" }, \"State of License/Residence\", -1)\nconst _hoisted_10 = { class: \"p-error\" }\nconst _hoisted_11 = { class: \"p-float-label\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"licenseNumber\" }, \"License #\", -1)\nconst _hoisted_13 = { class: \"p-error\" }\nconst _hoisted_14 = {\n key: 0,\n class: \"flex flex-column md:flex-row gap-3\"\n}\nconst _hoisted_15 = { class: \"p-float-label\" }\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"dd-state\" }, \"Association\", -1)\nconst _hoisted_17 = { class: \"p-error\" }\nconst _hoisted_18 = { class: \"p-float-label\" }\nconst _hoisted_19 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"memberNumber\" }, \"Member #\", -1)\nconst _hoisted_20 = { class: \"p-error\" }\nconst _hoisted_21 = { class: \"flex justify-content-end\" }\nconst _hoisted_22 = { class: \"flex flex-column gap-3\" }\nconst _hoisted_23 = { class: \"flex flex-row gap-2\" }\nconst _hoisted_24 = /*#__PURE__*/_createElementVNode(\"span\", null, \"Association: \", -1)\nconst _hoisted_25 = { class: \"font-semibold\" }\nconst _hoisted_26 = { class: \"flex flex-row gap-2\" }\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"span\", null, \"Member #: \", -1)\nconst _hoisted_28 = { class: \"font-semibold\" }\n\nimport states from '@/models/states';\r\nimport useAuthStore from '@/store/auth.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport useStudentAccountStore from '@/store/student/student.account.store';\r\nimport EvaluationPersonInfoUpdate from '@/components/Student/EvaluationPersonInfoUpdate.vue';\r\nimport AddProfessionMembership from \"@/models/student/evaluation/AddProfessionMembership\";\r\nimport AddUserProfession from \"@/models/student/evaluation/AddUserProfession\";\r\nimport UserProfession from \"@/models/student/evaluation/UserProfession\";\r\nimport Profession from \"@/models/student/evaluation/Profession\";\r\nimport {computed, onMounted, ref, watch} from 'vue';\r\nimport {toTypedSchema} from '@vee-validate/zod';\r\nimport {useForm} from 'vee-validate';\r\nimport {z} from 'zod';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'StudentProfessions',\n props: {\n userProfessions: {}\n },\n emits: ['addedProfession'],\n setup(__props: any, { emit: __emit }) {\n\r\nconst studentAccountStore = useStudentAccountStore();\r\nconst authStore = useAuthStore();\r\nconst mainStore = useMainStore();\r\n\r\n// eslint-disable-next-line no-undef\r\nconst props = __props;\r\n// eslint-disable-next-line no-undef\r\nconst emit = __emit\r\n\r\nconst { errors, handleSubmit, defineField, resetForm } = useForm({\r\n validationSchema: toTypedSchema(\r\n z.object({\r\n professionId: z.number().gt(0),\r\n region: z.string(),\r\n licenseNumber: z.string().optional().nullable(),\r\n association: z.string().optional().nullable(),\r\n memberNumber: z.string().optional()\r\n }).superRefine((data, ctx) => {\r\n if (isProfessionIdPhysicalTherapy(data.professionId) && !data.licenseNumber) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n path: ['licenseNumber'],\r\n message: 'Please enter PT License Number',\r\n })\r\n }\r\n\r\n if (requiresMembership.value && !data.association) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n path: ['association'],\r\n message: 'Please select an association',\r\n });\r\n }\r\n\r\n if (requiresMembership.value && !data.memberNumber) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n path: ['memberNumber'],\r\n message: 'Please enter your member number',\r\n });\r\n\r\n }\r\n }))\r\n});\r\n\r\nconst [professionId] = defineField('professionId');\r\nconst [region] = defineField('region');\r\nconst [licenseNumber] = defineField('licenseNumber');\r\nconst [association] = defineField('association');\r\nconst [memberNumber] = defineField('memberNumber');\r\n\r\nconst regions = ref([]);\r\nconst professions = ref([]);\r\nconst localStudentProfessions = ref([]);\r\nconst isMembershipDialogVisible = ref(false);\r\nconst isPersonalInfoDialogVisible = ref(false);\r\nconst dialogAssociation = ref('');\r\nconst dialogMemberNumber = ref('');\r\nconst requireEmail = ref(false);\r\nconst requirePhoneNumber = ref(false);\r\nconst requireAddress = ref(false);\r\n\r\nconst isLoading = computed(() => mainStore.isBusy);\r\nconst userProfileId = computed(() => authStore.getUserProfileId);\r\nconst requiresMembership = computed(() => {\r\n if (!professions.value.length || !professionId.value)\r\n return false;\r\n\r\n const respiratoryId = professions.value.find(p => p.name.includes('Respiratory Therapist'))!.professionId;\r\n const speechId = professions.value.find(p => p.name.includes('Speech-Language'))!.professionId;\r\n\r\n const professionIdsThatRequireMembership = [ respiratoryId, speechId ];\r\n\r\n return professionIdsThatRequireMembership.includes(professionId.value);\r\n})\r\nconst associations = computed(() => {\r\n if (!requiresMembership.value)\r\n return [];\r\n\r\n if (isProfessionIdRespiratoryTherapist(professionId.value))\r\n return ['AARC']\r\n\r\n if (isProfessionIdSpeechLanguagePathologist(professionId.value))\r\n return ['ASHA ']\r\n\r\n return [];\r\n});\r\n\r\nwatch(props, () => {\r\n localStudentProfessions.value = [...props.userProfessions];\r\n})\r\n\r\nonMounted(async () => {\r\n if (!userProfileId.value)\r\n return mainStore.setErrorMsg('Invalid User Profile Id.');\r\n\r\n localStudentProfessions.value = [... props.userProfessions]\r\n\r\n regions.value = [...states.map(s => s.displayName), 'Nation Wide'].sort()\r\n\r\n try {\r\n professions.value = await studentAccountStore.getAllProfessions()\r\n } catch (e) {\r\n professions.value = [];\r\n console.error('Could not fetch professions', e );\r\n return;\r\n }\r\n\r\n try {\r\n await studentAccountStore.getContactInfo(userProfileId.value);\r\n } catch (e) {\r\n mainStore.setErrorMsg('Could not find contact info');\r\n console.error('Could not fetch contact info', e)\r\n }\r\n})\r\n\r\nfunction isProfessionIdPhysicalTherapy(professionId: number | undefined) {\r\n if (!professions.value.length || !professionId)\r\n return false;\r\n\r\n const profs = professions.value\r\n .filter(p => p.name.includes('Physical Therap'))\r\n .map(p => p.professionId);\r\n\r\n return profs.some(p => p == professionId);\r\n}\r\n\r\nfunction isProfessionIdOccupationalTherapy(professionId: number | undefined) {\r\n if (!professions.value.length || !professionId)\r\n return false;\r\n\r\n const profs = professions.value\r\n .filter(p => p.name.includes('Occupational Therap'))\r\n .map(p => p.professionId);\r\n\r\n return profs.some(p => p == professionId);\r\n}\r\n\r\nfunction isProfessionIdSpeechLanguagePathologist(professionId: number | undefined) {\r\n if (!professions.value.length || !professionId)\r\n return false;\r\n\r\n const speechProf = professions.value.find(p => p.name == 'Speech-Language Pathologist');\r\n\r\n if (!speechProf) {\r\n mainStore.setErrorMsg('Could not find SLP profession');\r\n return false;\r\n }\r\n\r\n return professionId == speechProf.professionId;\r\n}\r\n\r\nfunction isProfessionIdRespiratoryTherapist(professionId: number | undefined) {\r\n if (!professions.value.length || !professionId)\r\n return false;\r\n\r\n const respiratoryProf = professions.value.find(p => p.name == 'Registered Respiratory Therapist');\r\n\r\n if (!respiratoryProf) {\r\n mainStore.setErrorMsg('Could not find Respiratory Therapist profession');\r\n return false;\r\n }\r\n\r\n return professionId == respiratoryProf.professionId;\r\n}\r\n\r\nconst addProfession = handleSubmit(async values => {\r\n if (!userProfileId.value)\r\n return mainStore.setErrorMsg('Invalid User Profile Id.');\r\n\r\n if (!userMeetsPersonalInfoRequirements())\r\n return;\r\n\r\n const professionMembership: AddProfessionMembership | undefined = !requiresMembership.value ? undefined : {\r\n association: values.association!,\r\n memberNumber: values.memberNumber!\r\n };\r\n\r\n const profession: Profession = {\r\n professionId: values.professionId,\r\n name: professions.value.find(up => up.professionId == values.professionId)!.name\r\n }\r\n\r\n const professionMdl: AddUserProfession = {\r\n userProfileId: userProfileId.value,\r\n professionId: values.professionId,\r\n region: values.region,\r\n licenseNumber: values.licenseNumber,\r\n membership: professionMembership,\r\n profession: profession\r\n }\r\n\r\n try {\r\n await studentAccountStore.addProfession(professionMdl)\r\n \r\n resetForm();\r\n \r\n emit('addedProfession')\r\n \r\n } catch (e) {\r\n console.error('Could not add profession', e);\r\n }\r\n});\r\n\r\nfunction userMeetsPersonalInfoRequirements(): boolean {\r\n if (isProfessionIdPhysicalTherapy(professionId.value) && region.value == 'New York') {\r\n if (doesUserContainValidAddress())\r\n return true;\r\n\r\n requireAddress.value = true;\r\n isPersonalInfoDialogVisible.value = true;\r\n return false;\r\n }\r\n\r\n if (isProfessionIdSpeechLanguagePathologist(professionId.value)) {\r\n if (doesUserContainValidEmail() &&\r\n doesUserContainValidPhoneNumber() &&\r\n doesUserContainValidAddress()) {\r\n return true;\r\n }\r\n\r\n requireEmail.value = true;\r\n requirePhoneNumber.value = true;\r\n requireAddress.value = true;\r\n isPersonalInfoDialogVisible.value = true;\r\n return false;\r\n }\r\n\r\n if (isProfessionIdOccupationalTherapy(professionId.value)) {\r\n if (doesUserContainValidEmail())\r\n return true;\r\n\r\n requireEmail.value = true;\r\n isPersonalInfoDialogVisible.value = true;\r\n return false;\r\n }\r\n\r\n return true;\r\n}\r\n\r\nfunction doesUserContainValidAddress(): boolean {\r\n return !!studentAccountStore.getUserAddress;\r\n}\r\n\r\nfunction doesUserContainValidPhoneNumber(): boolean {\r\n const userPhoneNumber = studentAccountStore.getUserPhone;\r\n\r\n return !!userPhoneNumber;\r\n}\r\n\r\nfunction doesUserContainValidEmail(): boolean {\r\n const userEmail = studentAccountStore.getUserEmail;\r\n\r\n if (!userEmail)\r\n return false;\r\n\r\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\r\n\r\n return emailRegex.test(userEmail);\r\n}\r\n\r\nasync function postCompleteContactInfo() {\r\n isPersonalInfoDialogVisible.value = false;\r\n\r\n await addProfession();\r\n}\r\n\r\nasync function removeProfession(userProfessionId: number) {\r\n if (!userProfessionId)\r\n return mainStore.setErrorMsg('Invalid User Profession Id. Unable to remove profession');\r\n\r\n\r\n await studentAccountStore.removeProfession(userProfessionId)\r\n .then(() => {\r\n const indexToRemove = localStudentProfessions.value.findIndex(up => up.userProfessionId == userProfessionId);\r\n\r\n if (indexToRemove == undefined)\r\n return;\r\n\r\n localStudentProfessions.value.splice(indexToRemove, 1);\r\n })\r\n .catch();\r\n}\r\n\r\nfunction shouldDisplayMembershipCard(profession: UserProfession): boolean {\r\n if (!profession.memberships || !profession.memberships.length)\r\n return false;\r\n\r\n return profession.memberships.length > 0;\r\n}\r\n\r\nfunction showMembershipDialog(profession: UserProfession): void {\r\n if (!profession.memberships || !profession.memberships.length)\r\n return mainStore.setErrorMsg('No Membership Found');\r\n\r\n dialogAssociation.value = profession.memberships[0].associationName;\r\n dialogMemberNumber.value = profession.memberships[0].memberNumber;\r\n\r\n isMembershipDialogVisible.value = true;\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Column = _resolveComponent(\"Column\")!\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_DataTable = _resolveComponent(\"DataTable\")!\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_InputText = _resolveComponent(\"InputText\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createVNode(_component_DataTable, {\n value: localStudentProfessions.value,\n loading: isLoading.value,\n class: \"mb-5\"\n }, {\n empty: _withCtx(() => [\n _hoisted_1\n ]),\n default: _withCtx(() => [\n _createVNode(_component_Column, {\n header: \"Profession\",\n field: \"profession.name\"\n }),\n _createVNode(_component_Column, {\n header: \"State/Region\",\n field: \"region\"\n }),\n _createVNode(_component_Column, {\n header: \"License #\",\n field: \"licenseNumber\"\n }),\n _createVNode(_component_Column, { header: \"Membership\" }, {\n body: _withCtx(({ data }) => [\n _createElementVNode(\"div\", _hoisted_2, [\n (shouldDisplayMembershipCard(data))\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n icon: \"pi pi-id-card\",\n iconPos: \"right\",\n severity: \"success\",\n loading: isLoading.value,\n text: \"\",\n onClick: ($event: any) => (showMembershipDialog(data))\n }, null, 8, [\"loading\", \"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { style: {\"width\":\"70px\"} }, {\n body: _withCtx(({ data }) => [\n _createVNode(_component_Button, {\n icon: \"pi pi-trash\",\n iconPos: \"right\",\n severity: \"danger\",\n loading: isLoading.value,\n text: \"\",\n onClick: ($event: any) => (removeProfession(data.userProfessionId))\n }, null, 8, [\"loading\", \"onClick\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"value\", \"loading\"]),\n _createElementVNode(\"form\", {\n onSubmit: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_unref(addProfession) && _unref(addProfession)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(professionId),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(professionId) ? (professionId).value = $event : null)),\n inputId: \"dd-new-profession-name\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).professionId }]),\n \"option-value\": \"professionId\",\n \"option-label\": \"name\",\n loading: isLoading.value,\n options: professions.value,\n style: {\"min-width\":\"200px\"}\n }, null, 8, [\"modelValue\", \"loading\", \"class\", \"options\"]),\n _hoisted_6\n ]),\n _createElementVNode(\"small\", _hoisted_7, _toDisplayString(_unref(errors)[\"professionId\"]), 1)\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(region),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(region) ? (region).value = $event : null)),\n inputId: \"dd-region\",\n class: _normalizeClass([{ 'p-invalid' : _unref(errors).region }, \"w-full md:w-16rem\"]),\n options: regions.value\n }, null, 8, [\"modelValue\", \"class\", \"options\"]),\n _hoisted_9\n ]),\n _createElementVNode(\"small\", _hoisted_10, _toDisplayString(_unref(errors)[\"region\"]), 1)\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", _hoisted_11, [\n _createVNode(_component_InputText, {\n id: \"licenseNumber\",\n modelValue: _unref(licenseNumber),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(licenseNumber) ? (licenseNumber).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_12\n ]),\n _createElementVNode(\"small\", _hoisted_13, _toDisplayString(_unref(errors)[\"licenseNumber\"]), 1)\n ])\n ]),\n (requiresMembership.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_15, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(association),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(association) ? (association).value = $event : null)),\n inputId: \"dd-region\",\n class: _normalizeClass([{ 'p-invalid' : _unref(errors).association }, \"w-full md:w-16rem\"]),\n options: associations.value\n }, null, 8, [\"modelValue\", \"class\", \"options\"]),\n _hoisted_16\n ]),\n _createElementVNode(\"small\", _hoisted_17, _toDisplayString(_unref(errors)[\"association\"]), 1)\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", _hoisted_18, [\n _createVNode(_component_InputText, {\n id: \"memberNumber\",\n modelValue: _unref(memberNumber),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(memberNumber) ? (memberNumber).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_19\n ]),\n _createElementVNode(\"small\", _hoisted_20, _toDisplayString(_unref(errors)[\"memberNumber\"]), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_21, [\n _createVNode(_component_Button, {\n label: \"Add\",\n icon: \"pi pi-plus\",\n type: \"submit\"\n })\n ])\n ])\n ], 32),\n _createVNode(_component_Dialog, {\n visible: isMembershipDialogVisible.value,\n \"onUpdate:visible\": _cache[6] || (_cache[6] = ($event: any) => ((isMembershipDialogVisible).value = $event)),\n header: \"Membership\",\n draggable: false,\n pt: { title: { class: ['mr-2'] } }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"div\", _hoisted_23, [\n _hoisted_24,\n _createElementVNode(\"span\", _hoisted_25, _toDisplayString(dialogAssociation.value), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_26, [\n _hoisted_27,\n _createElementVNode(\"span\", _hoisted_28, _toDisplayString(dialogMemberNumber.value), 1)\n ])\n ])\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_Dialog, {\n visible: isPersonalInfoDialogVisible.value,\n \"onUpdate:visible\": _cache[7] || (_cache[7] = ($event: any) => ((isPersonalInfoDialogVisible).value = $event)),\n header: \"Update Contact Info\",\n draggable: false,\n pt: { title: { class: ['mr-2'] } }\n }, {\n default: _withCtx(() => [\n _createVNode(EvaluationPersonInfoUpdate, {\n \"require-address\": requireAddress.value,\n \"require-email\": requireEmail.value,\n \"require-phone-number\": requirePhoneNumber.value,\n onUpdatedContactInfo: postCompleteContactInfo\n }, null, 8, [\"require-address\", \"require-email\", \"require-phone-number\"])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./StudentProfessions.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./StudentProfessions.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, isRef as _isRef, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"flex justify-content-center pt-5\" }\nconst _hoisted_2 = { class: \"p-float-label w-full\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"facility\" }, \"Facility\", -1)\nconst _hoisted_4 = { class: \"flex flex-column pt-5 w-full\" }\nconst _hoisted_5 = { class: \"p-float-label w-full\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"label\", null, \"New Hire Days\", -1)\nconst _hoisted_7 = { class: \"p-error\" }\nconst _hoisted_8 = { class: \"flex flex-column pt-5 md:pt-3 w-full\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"span\", null, \"Use Import Date\", -1)\nconst _hoisted_10 = { class: \"p-error\" }\nconst _hoisted_11 = { class: \"flex flex-column pt-5 md:pt-3 w-full\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"span\", null, \"New Hire All Year\", -1)\nconst _hoisted_13 = { class: \"p-error\" }\nconst _hoisted_14 = { class: \"flex flex-column pt-5 md:pt-3 w-full\" }\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"span\", null, \"Drop Replaced Courses\", -1)\nconst _hoisted_16 = { class: \"p-error\" }\nconst _hoisted_17 = { class: \"flex flex-row justify-content-end pb-4 pt--3\" }\n\nimport useCourseAssignmentStore from '@/store/courseAssignment.store';\r\nimport useOrganizationStore from '@/store/organization.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport INewAssignmentPreferences from '@/models/courses/StudentAssignment/INewAssignmentPreferences';\r\nimport ISelectOrganization from '@/models/user/OrganizationLevel/ISelectOrganization';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport { useField, useForm } from 'vee-validate';\r\nimport InputSwitch from 'primevue/inputswitch';\r\nimport {computed, onMounted, ref} from 'vue';\r\nimport * as zod from 'zod';\r\n\r\n// eslint-disable-next-line no-undef\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AddAssignmentPreference',\n props: {\n divisionId: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst mainStore = useMainStore();\r\nconst organizationStore = useOrganizationStore();\r\nconst courseAssignmentStore = useCourseAssignmentStore();\r\n\r\nconst { handleSubmit, errors } = useForm({\r\n initialValues: {\r\n newHireAllYear: false,\r\n useImportDate: false,\r\n dropReplacedCourses: false,\r\n },\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n facilityId: zod.number().int(),\r\n newHireDays: zod.number().int().optional(),\r\n newHireAllYear: zod.boolean(),\r\n useImportDate: zod.boolean(),\r\n dropReplacedCourses: zod.boolean(),\r\n })\r\n )\r\n});\r\n\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nconst { value: facilityId } = useField('facilityId');\r\nconst { value: newHireDays } = useField('newHireDays');\r\nconst { value: useImportDate } = useField('useImportDate');\r\nconst { value: dropReplacedCourses } = useField('dropReplacedCourses');\r\nconst { value: newHireAllYear } = useField('newHireAllYear');\r\nconst facility = ref({\r\n id: facilityId.value,\r\n organizations: [],\r\n isLoading: false,\r\n isDisabled: true\r\n});\r\n\r\n//TODO: implement change tracking\r\n// const createdByAdmin = ref('');\r\n// const createOnDate = ref();\r\n// const modifiedByAdmin = ref('');\r\n// const modifiedOnDate = ref();\r\n\r\n\r\nonMounted(async () => {\r\n if (!props.divisionId)\r\n return;\r\n\r\n await getFacilitiesByDivision(props.divisionId);\r\n});\r\n\r\nasync function getFacilitiesByDivision(divId: number) {\r\n try {\r\n facility.value.isLoading = true;\r\n\r\n facility.value.organizations = await organizationStore.getFacilitiesByDivision(divId);\r\n facility.value.isDisabled = false;\r\n }\r\n catch {\r\n facility.value.organizations = [];\r\n }\r\n finally {\r\n facility.value.isLoading = false;\r\n }\r\n}\r\n\r\nconst onSubmit = handleSubmit(async (values) => {\r\n const { \r\n facilityId,\r\n useImportDate,\r\n dropReplacedCourses,\r\n newHireDays,\r\n newHireAllYear, \r\n } = values;\r\n\r\n const newAssignmentPreference: INewAssignmentPreferences = {\r\n facilityId,\r\n useImportDate,\r\n dropReplacedCourses,\r\n newHireDays,\r\n newHireAllYear, \r\n }\r\n\r\n await courseAssignmentStore.addAssignmentPreferences(newAssignmentPreference);\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_InputNumber = _resolveComponent(\"InputNumber\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"form\", {\n onSubmit: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_unref(onSubmit) && _unref(onSubmit)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"span\", _hoisted_2, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(facilityId),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(facilityId) ? (facilityId).value = $event : null)),\n inputId: \"facility\",\n class: \"w-full\",\n optionLabel: \"name\",\n optionValue: \"facilityId\",\n placeholder: \"Select a Facility\",\n options: facility.value.organizations,\n disabled: facility.value.isDisabled,\n loading: facility.value.isLoading\n }, null, 8, [\"modelValue\", \"options\", \"disabled\", \"loading\"]),\n _hoisted_3\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", _hoisted_5, [\n _createVNode(_component_InputNumber, {\n modelValue: _unref(newHireDays),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(newHireDays) ? (newHireDays).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _hoisted_6\n ]),\n _createElementVNode(\"small\", _hoisted_7, _toDisplayString(_unref(errors)[\"newHireDays\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(_unref(InputSwitch), {\n modelValue: _unref(useImportDate),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(useImportDate) ? (useImportDate).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _createElementVNode(\"small\", _hoisted_10, _toDisplayString(_unref(errors)[\"useImportDate\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createVNode(_unref(InputSwitch), {\n modelValue: _unref(newHireAllYear),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(newHireAllYear) ? (newHireAllYear).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _createElementVNode(\"small\", _hoisted_13, _toDisplayString(_unref(errors)[\"newHireAllYear\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _hoisted_15,\n _createVNode(_unref(InputSwitch), {\n modelValue: _unref(dropReplacedCourses),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(dropReplacedCourses) ? (dropReplacedCourses).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _createElementVNode(\"small\", _hoisted_16, _toDisplayString(_unref(errors)[\"dropReplacedCourses\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n icon: \"pi pi-save\",\n iconPos: \"right\",\n outlined: \"\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./AddAssignmentPreference.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AddAssignmentPreference.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, isRef as _isRef, createVNode as _createVNode, resolveComponent as _resolveComponent, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"mt-3\" }\nconst _hoisted_2 = { class: \"flex flex-column mt-5 w-full\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"span\", null, \"New Hire All Year\", -1)\nconst _hoisted_4 = { class: \"p-error\" }\nconst _hoisted_5 = { class: \"flex flex-column mt-5 w-full\" }\nconst _hoisted_6 = { class: \"p-float-label w-full\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"label\", null, \"New Hire Days\", -1)\nconst _hoisted_8 = { class: \"p-error\" }\nconst _hoisted_9 = { class: \"hidden flex-column my-3\" }\nconst _hoisted_10 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Created By: \", -1)\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"on\", -1)\nconst _hoisted_13 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Modified By: \", -1)\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"on\", -1)\nconst _hoisted_16 = { class: \"flex flex-row justify-content-end mb-4 mt-3\" }\n\nimport IAssignmentPreferences from '@/models/courses/StudentAssignment/IAssignmentPreferences';\r\nimport IUpdateAssignmentPreferences from '@/models/courses/StudentAssignment/IUpdateAssignmentPreferences';\r\nimport useCourseAssignmentStore from '@/store/courseAssignment.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport InputSwitch from 'primevue/inputswitch';\r\nimport { useField, useForm } from 'vee-validate';\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\nimport * as zod from 'zod';\r\n\r\n// eslint-disable-next-line no-undef\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'EditAssignmentPreference',\n props: {\n srcAssignmentPreference: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst mainStore = useMainStore();\r\nconst courseAssignmentStore = useCourseAssignmentStore();\r\n\r\nconst { handleSubmit, errors } = useForm({\r\n initialValues: {\r\n newHireAllYear: false\r\n },\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n newHireDays: zod.number().int().optional(),\r\n newHireAllYear: zod.boolean()\r\n })\r\n )\r\n});\r\n\r\nconst { value: newHireDays } = useField('newHireDays');\r\nconst { value: newHireAllYear } = useField('newHireAllYear');\r\nconst createdByAdmin = ref('');\r\nconst createOnDate = ref();\r\nconst modifiedByAdmin = ref('');\r\nconst modifiedOnDate = ref();\r\n\r\nlet assignmentPreference = computed(() => props.srcAssignmentPreference);\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nwatch(assignmentPreference, () => {\r\n\r\n newHireAllYear.value = assignmentPreference.value.newHireAllYear ?? false;\r\n newHireDays.value = newHireAllYear.value ? 365 : (assignmentPreference.value.newHireDays ?? 0);\r\n \r\n createdByAdmin.value = '';\r\n createOnDate.value = new Date;\r\n modifiedByAdmin.value = '';\r\n modifiedOnDate.value = new Date;\r\n});\r\n\r\nconst showNewHireDays = computed(() => !newHireAllYear.value);\r\n\r\nonMounted(() => {\r\n newHireDays.value = assignmentPreference.value.newHireDays ?? 0;\r\n newHireAllYear.value = assignmentPreference.value.newHireAllYear ?? false;\r\n})\r\n\r\nconst onSubmit = handleSubmit(async (values) => {\r\n const { newHireAllYear, newHireDays} = values;\r\n\r\n const updateMdl: IUpdateAssignmentPreferences = {\r\n courseAssignmentPreferenceId: assignmentPreference.value.courseAssignmentPreferenceId,\r\n newHireDays: newHireAllYear ? 365 : (newHireDays ?? 0),\r\n newHireAllYear, \r\n }\r\n\r\n await courseAssignmentStore.updateAssignmentPreferences(updateMdl);\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_InputNumber = _resolveComponent(\"InputNumber\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"form\", {\n onSubmit: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_unref(onSubmit) && _unref(onSubmit)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"span\", null, \" (\" + _toDisplayString(_unref(assignmentPreference).facilityId) + \") \" + _toDisplayString(_unref(assignmentPreference).facilityName), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createVNode(_unref(InputSwitch), {\n modelValue: _unref(newHireAllYear),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(newHireAllYear) ? (newHireAllYear).value = $event : null)),\n class: \"mt-1\"\n }, null, 8, [\"modelValue\"]),\n _createElementVNode(\"small\", _hoisted_4, _toDisplayString(_unref(errors).newHireAllYear), 1)\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"span\", _hoisted_6, [\n _createVNode(_component_InputNumber, {\n modelValue: _unref(newHireDays),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(newHireDays) ? (newHireDays).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _hoisted_7\n ]),\n _createElementVNode(\"small\", _hoisted_8, _toDisplayString(_unref(errors).newHireDays), 1)\n ])\n ], 512), [\n [_vShow, showNewHireDays.value]\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"span\", null, _toDisplayString(createdByAdmin.value), 1),\n _hoisted_12,\n _createElementVNode(\"span\", null, _toDisplayString(createOnDate.value), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"span\", null, _toDisplayString(modifiedByAdmin.value), 1),\n _hoisted_15,\n _createElementVNode(\"span\", null, _toDisplayString(modifiedOnDate.value), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n icon: \"pi pi-save\",\n iconPos: \"right\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./EditAssignmentPreference.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./EditAssignmentPreference.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Facility: \", -1)\nconst _hoisted_3 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Assign By Department\", -1)\nconst _hoisted_5 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Department: \", -1)\nconst _hoisted_7 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Course: \", -1)\nconst _hoisted_9 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Days to Target: \", -1)\nconst _hoisted_11 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Days to Drop: \", -1)\nconst _hoisted_13 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Effective Start Date\", -1)\nconst _hoisted_15 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Effective End Date: \", -1)\nconst _hoisted_17 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Disabled: \", -1)\nconst _hoisted_19 = { class: \"flex flex-row justify-content-between md:justify-content-end pb-4 pt-6\" }\nconst _hoisted_20 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Created By: \", -1)\nconst _hoisted_22 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"px-2\" }, \" on \", -1)\nconst _hoisted_23 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_24 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Disabled By: \", -1)\nconst _hoisted_25 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-x\" }, \"on\", -1)\nconst _hoisted_26 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Modified by: \", -1)\nconst _hoisted_28 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-x\" }, \"on\", -1)\nconst _hoisted_29 = { class: \"pt-3\" }\n\nimport ISimpleCourse from '@/models/courses/Course/ISimpleCourse';\r\nimport INewHireCourseAssignment from '@/models/courses/StudentAssignment/NewHire/INewHireCourseAssignment';\r\nimport useCourseAssignmentStore from '@/store/courseAssignment.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\nimport router from '@/router';\r\n\r\n// eslint-disable-next-line no-undef\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Overview',\n props: {\n srcNewHireAssignment: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst mainStore = useMainStore();\r\nconst courseAssignmentStore = useCourseAssignmentStore();\r\n\r\nconst showDeleteModal = ref(false);\r\n\r\nconst facilityName = ref('');\r\nconst departmentName = ref('');\r\nconst createdByName = ref('');\r\nconst disabledByName = ref('');\r\nconst createdOnDate = ref('');\r\nconst disabledOnDate = ref('');\r\nconst assignByDepartment = ref(false);\r\nconst course = ref();\r\nconst daysToTarget = ref(0);\r\nconst daysToDrop = ref(0);\r\nconst effectiveDateStart = ref();\r\nconst effectiveDateEnd = ref();\r\nconst isDisabled = ref(false);\r\n\r\nconst newHireAssignment = computed(() => props.srcNewHireAssignment);\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(() => {\r\n initializeValues(); \r\n});\r\n\r\nwatch(newHireAssignment, (() => {\r\n initializeValues();\r\n}));\r\n\r\nfunction initializeValues() {\r\n facilityName.value = newHireAssignment.value?.facility?.name ?? '';\r\n departmentName.value = newHireAssignment.value?.departmentName ?? '';\r\n assignByDepartment.value = newHireAssignment.value?.assignByDepartment ?? false;\r\n course.value = newHireAssignment.value?.course;\r\n daysToTarget.value = newHireAssignment.value?.daysToTarget ?? 0;\r\n daysToDrop.value = newHireAssignment.value?.daysToDrop ?? 0;\r\n effectiveDateStart.value = !newHireAssignment.value?.effectiveDateStart ? '' : new Date(newHireAssignment.value.effectiveDateStart).toLocaleString();\r\n effectiveDateEnd.value = !newHireAssignment.value?.effectiveDateEnd ? '' : new Date(newHireAssignment.value.effectiveDateEnd).toLocaleString();\r\n isDisabled.value = newHireAssignment.value?.isDisabled ?? false;\r\n createdByName.value = !newHireAssignment.value?.createdByAdmin ? '' : `${ newHireAssignment.value.createdByAdmin.firstName } ${ newHireAssignment.value.createdByAdmin.lastName }`;\r\n disabledByName.value = !newHireAssignment.value?.disabledByAdmin ? '' : `${ newHireAssignment.value.disabledByAdmin.firstName } ${ newHireAssignment.value.disabledByAdmin.lastName }`;\r\n createdOnDate.value = (!newHireAssignment.value?.createdOn) ? '' : new Date(newHireAssignment.value.createdOn).toLocaleDateString();\r\n disabledOnDate.value = !newHireAssignment.value?.disabledDate ? '' : new Date(newHireAssignment.value.disabledDate).toLocaleDateString();\r\n}\r\n \r\nasync function deleteAssignment() {\r\n const newHireCourseAssignmentId = newHireAssignment.value?.newHireCourseAssignmentId;\r\n\r\n if (!newHireCourseAssignmentId)\r\n return mainStore.setErrorMsg('New Hire Assignment Id not found.')\r\n\r\n try {\r\n await courseAssignmentStore.deleteNewHireAssignment(newHireCourseAssignmentId);\r\n showDeleteModal.value = false;\r\n setTimeout(() => router.push('/automated-course-assignment/new-hires'), 2500);\r\n } catch (e) {\r\n console.error('Error deleting new hire assignment', e);\r\n }\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"span\", null, _toDisplayString(facilityName.value), 1)\n ])\n ], 512), [\n [_vShow, !assignByDepartment.value]\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"span\", null, _toDisplayString(assignByDepartment.value ? \"Yes\" : \"No\"), 1)\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createElementVNode(\"span\", null, _toDisplayString(departmentName.value), 1)\n ])\n ], 512), [\n [_vShow, assignByDepartment.value]\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"span\", null, _toDisplayString(course.value?.name), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createElementVNode(\"span\", null, _toDisplayString(daysToTarget.value) + \" Days\", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createElementVNode(\"span\", null, _toDisplayString(daysToDrop.value) + \" Days\", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"span\", null, _toDisplayString(effectiveDateStart.value), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _hoisted_16,\n _createElementVNode(\"span\", null, _toDisplayString(effectiveDateEnd.value), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n _createElementVNode(\"span\", null, _toDisplayString(isDisabled.value ? \"Yes\" : \"No\"), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _createVNode(_component_Button, {\n label: \"Delete\",\n icon: \"pi pi-check\",\n iconPos: \"right\",\n severity: \"danger\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (showDeleteModal.value = true)),\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _hoisted_21,\n _createElementVNode(\"span\", null, _toDisplayString(createdByName.value), 1),\n _hoisted_22,\n _createElementVNode(\"span\", null, _toDisplayString(createdOnDate.value), 1)\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_23, [\n _hoisted_24,\n _createElementVNode(\"span\", null, _toDisplayString(), 1),\n _hoisted_25,\n _createElementVNode(\"span\", null, _toDisplayString(), 1)\n ])\n ], 512), [\n [_vShow, false]\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_26, [\n _hoisted_27,\n _createElementVNode(\"span\", null, _toDisplayString(disabledByName.value), 1),\n _hoisted_28,\n _createElementVNode(\"span\", null, _toDisplayString(disabledOnDate.value), 1)\n ])\n ], 512), [\n [_vShow, false]\n ]),\n _createVNode(_component_Dialog, {\n visible: showDeleteModal.value,\n \"onUpdate:visible\": _cache[2] || (_cache[2] = ($event: any) => ((showDeleteModal).value = $event)),\n modal: \"\",\n header: \"Are you sure?\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_29, [\n _createVNode(_component_Button, {\n label: \"No\",\n icon: \"pi pi-times\",\n class: \"mr-3\",\n text: \"\",\n autofocus: \"\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (showDeleteModal.value = false))\n }),\n _createVNode(_component_Button, {\n label: \"Yes\",\n icon: \"pi pi-check\",\n onClick: deleteAssignment\n })\n ])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}\n}\n\n})","\r\n\r\n@/models/courses/Course/ISimpleCourse\r\n","import script from \"./Overview.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Overview.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Facility: \", -1)\nconst _hoisted_3 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Assign By Department\", -1)\nconst _hoisted_5 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Department: \", -1)\nconst _hoisted_7 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Course: \", -1)\nconst _hoisted_9 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Assign Start Date\", -1)\nconst _hoisted_11 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Days to Target: \", -1)\nconst _hoisted_13 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Days to Drop: \", -1)\nconst _hoisted_15 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Drop Before Reassign: \", -1)\nconst _hoisted_17 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Continuous Process: \", -1)\nconst _hoisted_19 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Force Target Date: \", -1)\nconst _hoisted_21 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_22 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Omit New Hire: \", -1)\nconst _hoisted_23 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_24 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Disabled: \", -1)\nconst _hoisted_25 = { class: \"flex flex-row justify-content-between md:justify-content-end mb-4 mt-6\" }\nconst _hoisted_26 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Created By: \", -1)\nconst _hoisted_28 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mx-2\" }, \" on \", -1)\nconst _hoisted_29 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_30 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Modified by: \", -1)\nconst _hoisted_31 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mx-2\" }, \"on\", -1)\nconst _hoisted_32 = { class: \"flex flex-row mt-3\" }\nconst _hoisted_33 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mr-2\" }, \"Disabled By: \", -1)\nconst _hoisted_34 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"mx-2\" }, \"on\", -1)\nconst _hoisted_35 = { class: \"mt-3\" }\n\nimport ISimpleCourse from '@/models/courses/Course/ISimpleCourse';\r\nimport IAnnualCourseAssignment from '@/models/courses/StudentAssignment/Annual/IAnnualCourseAssignment';\r\nimport useCourseAssignmentStore from '@/store/courseAssignment.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\nimport router from '@/router';\r\n\r\n// eslint-disable-next-line no-undef\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Overview',\n props: {\n srcAnnualAssignment: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst mainStore = useMainStore();\r\nconst courseAssignmentStore = useCourseAssignmentStore();\r\n\r\nconst showDeleteModal = ref(false);\r\n\r\nconst facilityName = ref('');\r\nconst departmentName = ref('');\r\nconst createdByName = ref('');\r\nconst disabledByName = ref('');\r\nconst createdOnDate = ref('');\r\nconst disabledOnDate = ref('');\r\nconst assignByDepartment = ref(false);\r\nconst course = ref();\r\nconst daysToTarget = ref(0);\r\nconst daysToDrop = ref(0);\r\nconst startDate = ref();\r\nconst isDisabled = ref(false);\r\nconst dropBeforeReassign = ref(false);\r\nconst continuousProcess = ref(false);\r\nconst forceTargetDate = ref(false);\r\nconst omitNewHire = ref(false);\r\n\r\nconst annualAssignment = computed(() => props.srcAnnualAssignment ?? {} as IAnnualCourseAssignment);\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(() => initializeValues());\r\n\r\nwatch(annualAssignment.value, (() => initializeValues()));\r\n\r\nconst initializeValues = () => {\r\n if (!annualAssignment.value) return;\r\n\r\n facilityName.value = annualAssignment.value.facility?.name ?? '';\r\n departmentName.value = annualAssignment.value.departmentName ?? '';\r\n assignByDepartment.value = annualAssignment.value.assignByDepartment ?? false;\r\n course.value = annualAssignment.value.course;\r\n daysToTarget.value = annualAssignment.value.daysToTarget ?? 0;\r\n daysToDrop.value = annualAssignment.value.daysToDrop ?? 0;\r\n startDate.value = !annualAssignment.value.startDate ? '' : new Date(annualAssignment.value.startDate).toLocaleString();\r\n isDisabled.value = annualAssignment.value.isDisabled;\r\n dropBeforeReassign .value = annualAssignment.value.dropBeforeReassign;\r\n continuousProcess .value = annualAssignment.value.continuousProcess;\r\n forceTargetDate .value = annualAssignment.value.forceTargetDate;\r\n omitNewHire .value = annualAssignment.value.omitNewHire;\r\n createdByName.value = !annualAssignment.value.createdByAdmin ? '' : `${ annualAssignment.value.createdByAdmin.firstName } ${ annualAssignment.value.createdByAdmin.lastName }`;\r\n disabledByName.value = !annualAssignment.value.disabledByAdmin ? '' : `${ annualAssignment.value.disabledByAdmin.firstName } ${ annualAssignment.value.disabledByAdmin.lastName }`;\r\n createdOnDate.value = new Date(annualAssignment.value.createdOn).toLocaleDateString();\r\n disabledOnDate.value = !annualAssignment.value.disabledDate ? '' : new Date(annualAssignment.value.disabledDate).toLocaleDateString();\r\n};\r\n \r\nconst deleteAssignment = (async() => {\r\n const annualCourseAssignmentId = annualAssignment.value?.annualCourseAssignmentId;\r\n\r\n if (!annualCourseAssignmentId)\r\n return mainStore.setErrorMsg('Annual Assignment Id not found')\r\n\r\n try {\r\n await courseAssignmentStore.deleteAnnualAssignment(annualCourseAssignmentId);\r\n\r\n showDeleteModal.value = false;\r\n\r\n setTimeout(() => router.push('/automated-course-assignment/annual'), 2500);\r\n } catch (e) {\r\n showDeleteModal.value = false;\r\n window.scrollTo(0, 0);\r\n }\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"span\", null, _toDisplayString(facilityName.value), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"span\", null, _toDisplayString(assignByDepartment.value ? \"Yes\" : \"No\"), 1)\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createElementVNode(\"span\", null, _toDisplayString(departmentName.value), 1)\n ])\n ], 512), [\n [_vShow, assignByDepartment.value]\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"span\", null, _toDisplayString(course.value?.name), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createElementVNode(\"span\", null, _toDisplayString(startDate.value), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createElementVNode(\"span\", null, _toDisplayString(daysToTarget.value) + \" Days\", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"span\", null, _toDisplayString(daysToDrop.value) + \" Days\", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _hoisted_16,\n _createElementVNode(\"span\", null, _toDisplayString(dropBeforeReassign.value ? \"Yes\" : \"No\"), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n _createElementVNode(\"span\", null, _toDisplayString(continuousProcess.value ? \"Yes\" : \"No\"), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _hoisted_20,\n _createElementVNode(\"span\", null, _toDisplayString(forceTargetDate.value ? \"Yes\" : \"No\"), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _hoisted_22,\n _createElementVNode(\"span\", null, _toDisplayString(omitNewHire.value ? \"Yes\" : \"No\"), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_23, [\n _hoisted_24,\n _createElementVNode(\"span\", null, _toDisplayString(isDisabled.value ? \"Yes\" : \"No\"), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_25, [\n _createVNode(_component_Button, {\n label: \"Delete\",\n icon: \"pi pi-times\",\n iconPos: \"right\",\n severity: \"danger\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (showDeleteModal.value = true)),\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ]),\n _createElementVNode(\"div\", _hoisted_26, [\n _hoisted_27,\n _createElementVNode(\"span\", null, _toDisplayString(createdByName.value), 1),\n _hoisted_28,\n _createElementVNode(\"span\", null, _toDisplayString(createdOnDate.value), 1)\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_29, [\n _hoisted_30,\n _createElementVNode(\"span\", null, _toDisplayString(), 1),\n _hoisted_31,\n _createElementVNode(\"span\", null, _toDisplayString(), 1)\n ])\n ], 512), [\n [_vShow, false]\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_32, [\n _hoisted_33,\n _createElementVNode(\"span\", null, _toDisplayString(disabledByName.value), 1),\n _hoisted_34,\n _createElementVNode(\"span\", null, _toDisplayString(disabledOnDate.value), 1)\n ])\n ], 512), [\n [_vShow, isDisabled.value]\n ]),\n _createVNode(_component_Dialog, {\n visible: showDeleteModal.value,\n \"onUpdate:visible\": _cache[2] || (_cache[2] = ($event: any) => ((showDeleteModal).value = $event)),\n modal: \"\",\n header: \"Are you sure?\",\n draggable: false\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_35, [\n _createVNode(_component_Button, {\n label: \"No\",\n icon: \"pi pi-times\",\n class: \"mr-3\",\n text: \"\",\n autofocus: \"\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (showDeleteModal.value = false))\n }),\n _createVNode(_component_Button, {\n label: \"Yes\",\n icon: \"pi pi-check\",\n onClick: deleteAssignment\n })\n ])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./Overview.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Overview.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, vShow as _vShow, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Facility: \", -1)\nconst _hoisted_3 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Assign By Department\", -1)\nconst _hoisted_5 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Department: \", -1)\nconst _hoisted_7 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Course: \", -1)\nconst _hoisted_9 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Days to Target: \", -1)\nconst _hoisted_11 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Days to Drop: \", -1)\nconst _hoisted_13 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"New Hire Buffer: \", -1)\nconst _hoisted_15 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Disabled: \", -1)\nconst _hoisted_17 = { class: \"flex flex-row justify-content-between md:justify-content-end pb-4 pt-6\" }\nconst _hoisted_18 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_19 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Created By: \", -1)\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"px-2\" }, \" on \", -1)\nconst _hoisted_21 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_22 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Modified by: \", -1)\nconst _hoisted_23 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-x\" }, \"on\", -1)\nconst _hoisted_24 = { class: \"flex flex-row pt-3\" }\nconst _hoisted_25 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"pr-2\" }, \"Disabled By: \", -1)\nconst _hoisted_26 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"px-2\" }, \"on\", -1)\nconst _hoisted_27 = { class: \"mt-3\" }\n\nimport ISimpleCourse from '@/models/courses/Course/ISimpleCourse';\r\nimport IRollingCourseAssignment from '@/models/courses/StudentAssignment/Rolling/IRollingCourseAssignment';\r\nimport useCourseAssignmentStore from '@/store/courseAssignment.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\nimport router from '@/router';\r\n\r\n// eslint-disable-next-line no-undef\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Overview',\n props: {\n srcRollingAssignment: {}\n },\n setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst mainStore = useMainStore();\r\nconst courseAssignmentStore = useCourseAssignmentStore();\r\n\r\nconst showDeleteModal = ref(false);\r\n\r\nconst facilityName = ref('');\r\nconst departmentName = ref('');\r\nconst createdByName = ref('');\r\nconst disabledByName = ref('');\r\nconst createdOnDate = ref('');\r\nconst disabledOnDate = ref('');\r\nconst assignByDepartment = ref(false);\r\nconst course = ref();\r\nconst daysToTarget = ref(0);\r\nconst daysToDrop = ref(0);\r\nconst newHireBuffer = ref(0);\r\nconst isDisabled = ref(false);\r\n\r\nconst rollingAssignment = computed(() => props.srcRollingAssignment);\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(() => {\r\n initializeValues(); \r\n});\r\n\r\nwatch(rollingAssignment, (() => {\r\n initializeValues();\r\n}));\r\n\r\nconst initializeValues = () => {\r\n facilityName.value = rollingAssignment.value?.facility?.name ?? '';\r\n departmentName.value = rollingAssignment.value?.departmentName ?? '';\r\n assignByDepartment.value = rollingAssignment.value?.assignByDepartment ?? false;\r\n course.value = rollingAssignment.value?.course;\r\n daysToTarget.value = rollingAssignment.value?.daysToTarget ?? 0;\r\n daysToDrop.value = rollingAssignment.value?.daysToDrop ?? 0;\r\n newHireBuffer.value = rollingAssignment.value?.newHireBuffer ?? 0;\r\n isDisabled.value = rollingAssignment.value?.isDisabled ?? false;\r\n createdByName.value = !rollingAssignment.value?.createdByAdmin ? '' : `${ rollingAssignment.value.createdByAdmin.firstName } ${ rollingAssignment.value.createdByAdmin.lastName }`;\r\n disabledByName.value = !rollingAssignment.value?.disabledByAdmin ? '' : `${ rollingAssignment.value.disabledByAdmin.firstName } ${ rollingAssignment.value.disabledByAdmin.lastName }`;\r\n createdOnDate.value = (!rollingAssignment.value?.createdOn) ? '' : new Date(rollingAssignment.value.createdOn).toLocaleDateString();\r\n disabledOnDate.value = !rollingAssignment.value?.disabledDate ? '' : new Date(rollingAssignment.value.disabledDate).toLocaleDateString();\r\n};\r\n\r\nasync function deleteAssignment() {\r\n const rollingAssignmentId = rollingAssignment.value?.rollingCourseAssignmentId;\r\n\r\n if (!rollingAssignmentId)\r\n return mainStore.setErrorMsg('Invalid rolling assignment Id');\r\n\r\n try {\r\n await courseAssignmentStore.deleteRollingAssignment(rollingAssignmentId);\r\n\r\n showDeleteModal.value = false;\r\n setTimeout(() => router.push('/automated-course-assignment/rolling'), 2500);\r\n\r\n } catch (e) {\r\n showDeleteModal.value = false;\r\n window.scrollTo(0, 0);\r\n }\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"span\", null, _toDisplayString(facilityName.value), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"span\", null, _toDisplayString(assignByDepartment.value ? \"Yes\" : \"No\"), 1)\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createElementVNode(\"span\", null, _toDisplayString(departmentName.value), 1)\n ])\n ], 512), [\n [_vShow, assignByDepartment.value]\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"span\", null, _toDisplayString(course.value?.name), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createElementVNode(\"span\", null, _toDisplayString(daysToTarget.value) + \" Days\", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createElementVNode(\"span\", null, _toDisplayString(daysToDrop.value) + \" Days\", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"span\", null, _toDisplayString(newHireBuffer.value) + \" Days\", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _hoisted_16,\n _createElementVNode(\"span\", null, _toDisplayString(isDisabled.value ? \"Yes\" : \"No\"), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createVNode(_component_Button, {\n label: \"Delete\",\n icon: \"pi pi-check\",\n iconPos: \"right\",\n severity: \"danger\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (showDeleteModal.value = true)),\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n _hoisted_19,\n _createElementVNode(\"span\", null, _toDisplayString(createdByName.value), 1),\n _hoisted_20,\n _createElementVNode(\"span\", null, _toDisplayString(createdOnDate.value), 1)\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_21, [\n _hoisted_22,\n _createElementVNode(\"span\", null, _toDisplayString(), 1),\n _hoisted_23,\n _createElementVNode(\"span\", null, _toDisplayString(), 1)\n ])\n ], 512), [\n [_vShow, false]\n ]),\n _withDirectives(_createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_24, [\n _hoisted_25,\n _createElementVNode(\"span\", null, _toDisplayString(disabledByName.value), 1),\n _hoisted_26,\n _createElementVNode(\"span\", null, _toDisplayString(disabledOnDate.value), 1)\n ])\n ], 512), [\n [_vShow, isDisabled.value]\n ]),\n _createVNode(_component_Dialog, {\n visible: showDeleteModal.value,\n \"onUpdate:visible\": _cache[2] || (_cache[2] = ($event: any) => ((showDeleteModal).value = $event)),\n modal: \"\",\n header: \"Are you sure?\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_27, [\n _createVNode(_component_Button, {\n label: \"No\",\n icon: \"pi pi-times\",\n class: \"mr-3\",\n text: \"\",\n autofocus: \"\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (showDeleteModal.value = false))\n }),\n _createVNode(_component_Button, {\n label: \"Yes\",\n icon: \"pi pi-check\",\n onClick: deleteAssignment\n })\n ])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}\n}\n\n})","\r\n\r\n@/models/courses/Course/ISimpleCourse\r\n","import script from \"./Overview.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Overview.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { createApp } from 'vue';\r\nimport { createPinia } from 'pinia';\r\n\r\nimport { msalPlugin } from '@/plugins/msalPlugin';\r\nimport { makeMsalInstance } from '@/authConfig';\r\nimport useConfigStore from '@/store/config.store';\r\nimport { AuthenticationResult, EventType } from '@azure/msal-browser';\r\nimport { ApplicationInsights } from '@microsoft/applicationinsights-web'\r\n\r\nimport App from './App.vue';\r\nimport router from './router'\r\nimport AppLayout from './layouts/AppLayout.vue'\r\n\r\nimport TopMenuComponent from './components/TopMenuComponent.vue'\r\nimport LoginTopMenuComponent from './components/Login/LoginTopMenuComponent.vue'\r\n\r\nimport AdminMenu from '@/components/AdminMenu.vue';\r\n\r\nimport LoginFooterComponent from './components/Login/LoginFooterComponent.vue'\r\nimport FooterComponent from './components/Footer.vue'\r\n\r\nimport UpdateProfileInfoComponent from './components/Account/UpdateProfileInfoComponent.vue'\r\nimport ResetPasswordComponent from './components/Account/ResetPasswordComponent.vue'\r\nimport UserOrgComponent from './components/Account/UserOrgComponent.vue';\r\nimport PromoteUserRoleComponent from './components/Account/PromoteUserRoleComponent.vue';\r\nimport UserPermissionsComponent from './components/Account/UserPermissionsComponent.vue';\r\nimport UserCourseAssignmentComponent from './components/Account/UserCourseAssignment.vue';\r\n\r\nimport StudentProfessions from './components/Student/StudentProfessions.vue';\r\nimport EvaluationPersonInfoUpdate from './components/Student/EvaluationPersonInfoUpdate.vue';\r\n\r\nimport LessonGeneralComponent from '@/components/Course/Lesson/LessonGeneral.vue';\r\nimport LessonEntryComponent from '@/components/Course/Lesson/LessonEntry.vue';\r\nimport LessonInterfaceComponent from '@/components/Course/Lesson/LessonInterface.vue';\r\nimport LessonOtherComponent from '@/components/Course/Lesson/LessonOther.vue';\r\n\r\nimport CourseGeneralComponent from '@/components/Course/Course/CourseGeneral.vue';\r\nimport CourseInterfaceComponent from '@/components/Course/Course/CourseInterface.vue';\r\nimport CourseContentComponent from '@/components/Course/Course/CourseContent.vue';\r\nimport CourseAccessComponent from '@/components/Course/Course/CourseAccess.vue';\r\nimport CoursePrerequisitesComponent from '@/components/Course/Course/CoursePrerequisites.vue';\r\nimport CourseOtherComponent from '@/components/Course/Course/CourseOther.vue';\r\n\r\nimport AddAssignmentPreference from '@/components/Course/CourseAssignment/AssignmentPreferences/AddAssignmentPreference.vue';\r\nimport EditAssignmentPreference from '@/components/Course/CourseAssignment/AssignmentPreferences/EditAssignmentPreference.vue';\r\nimport NewHireAssignmentOverview from '@/components/Course/CourseAssignment/NewHire/Overview.vue';\r\nimport AnnualAssignmentOverview from '@/components/Course/CourseAssignment/Annual/Overview.vue';\r\nimport RollingAssignmentOverview from '@/components/Course/CourseAssignment/Rolling/Overview.vue';\r\n\r\nimport PrimeVue from 'primevue/config';\r\nimport Accordion from 'primevue/accordion';\r\nimport AccordionTab from 'primevue/accordiontab';\r\nimport Avatar from 'primevue/avatar';\r\nimport Badge from 'primevue/badge';\r\nimport BadgeDirective from 'primevue/badgedirective';\r\nimport Button from 'primevue/button';\r\nimport Calendar from 'primevue/calendar';\r\nimport Card from 'primevue/card';\r\nimport Checkbox from 'primevue/checkbox';\r\nimport Chips from 'primevue/chips';\r\nimport Column from 'primevue/column';\r\nimport DataTable from 'primevue/datatable';\r\nimport Dialog from 'primevue/dialog';\r\nimport Divider from 'primevue/divider';\r\nimport Dropdown from 'primevue/dropdown';\r\nimport Editor from 'primevue/editor';\r\nimport Fieldset from 'primevue/fieldset';\r\nimport FileUpload from 'primevue/fileupload';\r\nimport FloatLabel from 'primevue/floatlabel';\r\nimport IconField from 'primevue/iconfield';\r\nimport InputIcon from 'primevue/inputicon';\r\nimport InputMask from 'primevue/inputmask';\r\nimport InputNumber from 'primevue/inputnumber';\r\nimport InputSwitch from 'primevue/inputswitch';\r\nimport InputText from 'primevue/inputtext';\r\nimport Listbox from 'primevue/listbox';\r\nimport Menu from 'primevue/menu';\r\nimport Menubar from 'primevue/menubar';\r\nimport Message from 'primevue/message';\r\nimport MultiSelect from 'primevue/multiselect';\r\nimport Paginator from 'primevue/paginator';\r\nimport PanelMenu from 'primevue/panelmenu';\r\nimport Password from 'primevue/password';\r\nimport ProgressBar from 'primevue/progressbar';\r\nimport ProgressSpinner from 'primevue/progressspinner';\r\nimport RadioButton from 'primevue/radiobutton';\r\nimport SelectButton from 'primevue/selectbutton';\r\nimport Sidebar from 'primevue/sidebar';\r\nimport Skeleton from 'primevue/skeleton';\r\nimport Steps from 'primevue/steps';\r\nimport TabMenu from 'primevue/tabmenu';\r\nimport TabPanel from 'primevue/tabpanel';\r\nimport TabView from 'primevue/tabview';\r\nimport Tag from 'primevue/tag';\r\nimport Textarea from 'primevue/textarea';\r\nimport TieredMenu from 'primevue/tieredmenu';\r\nimport Toast from 'primevue/toast';\r\nimport ToastService from 'primevue/toastservice';\r\nimport ToggleButton from 'primevue/togglebutton';\r\nimport Toolbar from 'primevue/toolbar';\r\nimport Tooltip from 'primevue/tooltip';\r\n\r\nimport 'primevue/resources/themes/aura-light-blue/theme.css';\r\nimport 'primevue/resources/primevue.min.css';\r\nimport 'primeicons/primeicons.css';\r\nimport 'primeflex/primeflex.css';\r\n\r\nimport '@/assets/styles.scss';\r\n\r\nconst app = createApp(App)\r\n .use(createPinia());\r\n\r\napp.use(PrimeVue);\r\napp.use(ToastService);\r\napp.use(router);\r\n\r\napp.directive('badge', BadgeDirective);\r\napp.directive('tooltip', Tooltip);\r\n\r\n// PrimeVUE components\r\napp.component('Accordion', Accordion);\r\napp.component('AccordionTab', AccordionTab);\r\napp.component('Avatar', Avatar);\r\napp.component('Badge', Badge);\r\napp.component('Button', Button);\r\napp.component('Calendar', Calendar);\r\napp.component('Card', Card);\r\napp.component('Checkbox', Checkbox);\r\napp.component('Chips', Chips);\r\napp.component('Column', Column);\r\napp.component('DataTable', DataTable);\r\napp.component('Dialog', Dialog);\r\napp.component('Divider', Divider);\r\napp.component('Dropdown', Dropdown);\r\napp.component('Editor', Editor);\r\napp.component('Fieldset', Fieldset);\r\napp.component('FileUpload', FileUpload);\r\napp.component('FloatLabel', FloatLabel);\r\napp.component('IconField', IconField);\r\napp.component('InputIcon', InputIcon);\r\napp.component('InputMask', InputMask);\r\napp.component('InputNumber', InputNumber);\r\napp.component('InputSwitch', InputSwitch);\r\napp.component('InputText', InputText);\r\napp.component('Listbox', Listbox);\r\napp.component('Menu', Menu);\r\napp.component('Menubar', Menubar);\r\napp.component('Message', Message);\r\napp.component('MultiSelect', MultiSelect);\r\napp.component('Paginator', Paginator);\r\napp.component('PanelMenu', PanelMenu);\r\napp.component('Password', Password);\r\napp.component('ProgressBar', ProgressBar);\r\napp.component('ProgressSpinner', ProgressSpinner);\r\napp.component('RadioButton', RadioButton);\r\napp.component('SelectButton', SelectButton);\r\napp.component('Sidebar', Sidebar);\r\napp.component('Skeleton', Skeleton);\r\napp.component('Steps', Steps);\r\napp.component('TabMenu', TabMenu);\r\napp.component('TabPanel', TabPanel);\r\napp.component('TabView', TabView);\r\napp.component('Tag', Tag);\r\napp.component('Textarea', Textarea);\r\napp.component('TieredMenu', TieredMenu);\r\napp.component('Toast', Toast);\r\napp.component('ToggleButton', ToggleButton);\r\napp.component('Toolbar', Toolbar);\r\n\r\n// Application custom components\r\napp.component('AppLayout', AppLayout);\r\napp.component('TopMenuComponent', TopMenuComponent);\r\napp.component('LoginTopMenuComponent', LoginTopMenuComponent);\r\napp.component('LoginFooterComponent', LoginFooterComponent);\r\napp.component('FooterComponent', FooterComponent);\r\n\r\napp.component('UpdateProfileInfoComponent', UpdateProfileInfoComponent);\r\napp.component('ResetPasswordComponent', ResetPasswordComponent);\r\napp.component('UserOrgComponent', UserOrgComponent);\r\napp.component('UserPermissionsComponent', UserPermissionsComponent);\r\napp.component('PromoteUserRoleComponent', PromoteUserRoleComponent);\r\napp.component('UserCourseAssignmentComponent', UserCourseAssignmentComponent);\r\napp.component('StudentProfessions', StudentProfessions);\r\napp.component('EvaluationPersonInfoUpdate', EvaluationPersonInfoUpdate);\r\n\r\napp.component('AdminMenu', AdminMenu);\r\n\r\n// Lesson Components\r\napp.component('LessonGeneralComponent', LessonGeneralComponent);\r\napp.component('LessonEntryComponent', LessonEntryComponent);\r\napp.component('LessonInterfaceComponent', LessonInterfaceComponent);\r\napp.component('LessonOtherComponent', LessonOtherComponent);\r\n\r\n// Course Components\r\napp.component('CourseGeneralComponent', CourseGeneralComponent);\r\napp.component('CourseInterfaceComponent', CourseInterfaceComponent);\r\napp.component('CourseContentComponent', CourseContentComponent);\r\napp.component('CourseAccessComponent', CourseAccessComponent);\r\napp.component('CoursePrerequisitesComponent', CoursePrerequisitesComponent);\r\napp.component('CourseOtherComponent', CourseOtherComponent);\r\n\r\n// Automated Course Assignment\r\napp.component('AddAssignmentPreference', AddAssignmentPreference);\r\napp.component('EditAssignmentPreference', EditAssignmentPreference);\r\napp.component('NewHireAssignmentOverview', NewHireAssignmentOverview);\r\napp.component('AnnualAssignmentOverview', AnnualAssignmentOverview);\r\napp.component('RollingAssignmentOverview', RollingAssignmentOverview);\r\n\r\nrouter.isReady().then(async () => {\r\n const configStore = useConfigStore();\r\n await configStore.initialize();\r\n\r\n const msalInstance = makeMsalInstance();\r\n\r\n // Account selection logic is app dependent. Adjust as needed for different use cases.\r\n const accounts = msalInstance.getAllAccounts();\r\n if (accounts.length > 0) {\r\n msalInstance.setActiveAccount(accounts[0]);\r\n }\r\n\r\n msalInstance.addEventCallback((event) => {\r\n if (event.eventType === EventType.LOGIN_SUCCESS && event.payload) {\r\n const payload = event.payload as AuthenticationResult;\r\n const account = payload.account;\r\n msalInstance.setActiveAccount(account);\r\n }\r\n });\r\n\r\n app.use(msalPlugin, msalInstance);\r\n\r\n const appInsights: ApplicationInsights = new ApplicationInsights({ config: {\r\n connectionString: configStore.appInsights,\r\n }});\r\n\r\n appInsights.loadAppInsights();\r\n appInsights.trackPageView();\r\n\r\n // Waiting for the router to be ready prevents race conditions when returning from a loginRedirect or acquireTokenRedirect\r\n app.mount('#app');\r\n});\r\n","const enum AppLayout {\r\n Public = 'AppLayoutPublic',\r\n Admin = 'AppLayoutAuthorizedAdmin',\r\n CompetencyEvaluator = 'AppLayoutCompetencyEvalAdmin',\r\n Student = 'AppLayoutAuthorizedStudent',\r\n Login = 'AppLayoutLogin',\r\n Error = 'AppLayoutError',\r\n}\r\n\r\nexport default AppLayout;\r\n","const enum AuthorizationLevel {\r\n SystemAdministrator = 900,\r\n CorporationAdministrator = 800,\r\n RegionAdministrator = 700,\r\n DivisionAdministrator = 600,\r\n FacilityAdministrator = 500,\r\n DepartmentAdministrator = 400,\r\n User = 100,\r\n None = 0\r\n}\r\n\r\nexport default AuthorizationLevel;","const enum HealthcareAcademyPermissions {\r\n ManageAdmins = 'Administrator.All',\r\n ManageStudents = 'Students.All',\r\n AllowStudentImport = 'Students.Import',\r\n AllowCourseAssign = 'Courses.Assign',\r\n DropCourse = 'Courses.Drop',\r\n ManageCourseResults = 'Courses.Results.All',\r\n ManageCompetencyEvaluator = 'CompetencyEvaluator.All',\r\n ManageAutomatedAssignments = 'AutomatedAssignments.All',\r\n CreateCustomCompetencies = 'Competencies.Create',\r\n}\r\n\r\nexport default HealthcareAcademyPermissions;\r\n","const enum CourseFormat {\r\n Course = 1,\r\n eCompetency_Knowledge = 2,\r\n eCompetency_Skills = 3,\r\n}\r\n\r\nexport default CourseFormat;","export enum AssignmentMethod {\r\n Individual,\r\n Organization,\r\n OrganizationWide\r\n}\r\n","const allStates: { code: string; displayName: string }[] = [\r\n { code: 'AL', displayName: 'Alabama' },\r\n { code: 'AK', displayName: 'Alaska' },\r\n { code: 'AZ', displayName: 'Arizona' },\r\n { code: 'AR', displayName: 'Arkansas' },\r\n { code: 'CA', displayName: 'California' },\r\n { code: 'CO', displayName: 'Colorado' },\r\n { code: 'CT', displayName: 'Connecticut' },\r\n { code: 'DE', displayName: 'Delaware' },\r\n { code: 'DC', displayName: 'District of Columbia' },\r\n { code: 'FL', displayName: 'Florida' },\r\n { code: 'GA', displayName: 'Georgia' },\r\n { code: 'HI', displayName: 'Hawaii' },\r\n { code: 'ID', displayName: 'Idaho' },\r\n { code: 'IL', displayName: 'Illinois' },\r\n { code: 'IN', displayName: 'Indiana' },\r\n { code: 'IA', displayName: 'Iowa' },\r\n { code: 'KS', displayName: 'Kansas' },\r\n { code: 'KY', displayName: 'Kentucky' },\r\n { code: 'LA', displayName: 'Louisiana' },\r\n { code: 'ME', displayName: 'Maine' },\r\n { code: 'MD', displayName: 'Maryland' },\r\n { code: 'MA', displayName: 'Massachusetts' },\r\n { code: 'MI', displayName: 'Michigan' },\r\n { code: 'MN', displayName: 'Minnesota' },\r\n { code: 'MS', displayName: 'Mississippi' },\r\n { code: 'MO', displayName: 'Missouri' },\r\n { code: 'MT', displayName: 'Montana' },\r\n { code: 'NE', displayName: 'Nebraska' },\r\n { code: 'NV', displayName: 'Nevada' },\r\n { code: 'NH', displayName: 'New Hampshire' },\r\n { code: 'NJ', displayName: 'New Jersey' },\r\n { code: 'NM', displayName: 'New Mexico' },\r\n { code: 'NY', displayName: 'New York' },\r\n { code: 'NC', displayName: 'North Carolina' },\r\n { code: 'ND', displayName: 'North Dakota' },\r\n { code: 'OH', displayName: 'Ohio' },\r\n { code: 'OK', displayName: 'Oklahoma' },\r\n { code: 'OR', displayName: 'Oregon' },\r\n { code: 'PA', displayName: 'Pennsylvania' },\r\n { code: 'RI', displayName: 'Rhode Island' },\r\n { code: 'SC', displayName: 'South Carolina' },\r\n { code: 'SD', displayName: 'South Dakota' },\r\n { code: 'TN', displayName: 'Tennessee' },\r\n { code: 'TX', displayName: 'Texas' },\r\n { code: 'UT', displayName: 'Utah' },\r\n { code: 'VT', displayName: 'Vermont' },\r\n { code: 'VA', displayName: 'Virginia' },\r\n { code: 'WA', displayName: 'Washington' },\r\n { code: 'WV', displayName: 'West Virginia' },\r\n { code: 'WI', displayName: 'Wisconsin' },\r\n { code: 'WY', displayName: 'Wyoming' },\r\n ];\r\n\r\nexport default allStates;","export const enum OrganizationLevel {\r\n Corporation = 5,\r\n Region = 4,\r\n Division = 3,\r\n Facility = 2,\r\n Department = 1\r\n}\r\n","import useAuthStore from \"@/store/auth.store\";\r\nimport useMainStore from '@/store/main.store';\r\nimport { determineAuthorizationLevel, isTokenExpired } from '@/helpers/jwtHelper';\r\nimport * as jwtHelper from '@/helpers/jwtHelper';\r\nimport HealthcareAcademyPermissions from '@/models/auth/HealthcareAcademyPermissions';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport { RouteLocationNormalized, Router } from 'vue-router';\r\nimport { nextTick } from 'vue';\r\n\r\nexport function registerNavigate(router: Router) {\r\n router.beforeEach(async (to: RouteLocationNormalized, from: RouteLocationNormalized) => {\r\n const authStore = useAuthStore();\r\n const mainStore = useMainStore();\r\n\r\n const token = authStore.getUserToken;\r\n const isNotExpiredAndHasValue = (!!token && !isTokenExpired(token));\r\n\r\n // Initial Load\r\n if (!mainStore.isStoreCreated) {\r\n if (to.path === '/' || to.meta.requiresAuth === false)\r\n return;\r\n // allow the user to navigate to any path if they have a token that isn't expired. This will allow them to refresh the path without getting booted back to the home screen.\r\n else if (to.path !== '/' && isNotExpiredAndHasValue)\r\n return AuthorizeAndRedirect(to);\r\n // otherwise token has expired, send them back to the login.\r\n else if (to.path !== '/')\r\n return { path: '/', replace: true }\r\n }\r\n\r\n // Regular nav (non initial load)\r\n mainStore.clearMessages(); // clear out any displayed messages\r\n\r\n if (to.path === '/' && authStore.isActivelyLoggedIn)\r\n return { path: '/admin-menu', replace: true };\r\n\r\n if (!authStore.isActivelyLoggedIn && to.meta.requiresAuth) {\r\n if (!authStore.isAdmin) {\r\n authStore.$reset();\r\n return { path: '/', replace: true };\r\n }\r\n\r\n return;\r\n }\r\n else if (!authStore.isActivelyLoggedIn && !to.meta.requiresAuth) {\r\n return;\r\n }\r\n else if (authStore.isActivelyLoggedIn && to.meta.requiresAuth) {\r\n return AuthorizeAndRedirect(to);\r\n }\r\n else {\r\n // the token is valid, but they are trying to navigate to a public page\r\n // TODO review this, you may want to allow them to navigate to public pages\r\n return;\r\n }\r\n });\r\n\r\n router.afterEach(async (to: RouteLocationNormalized, from: RouteLocationNormalized) => {\r\n await nextTick(() => document.title = to.meta.title as string ?? 'Healthcare Academy')\r\n })\r\n}\r\n\r\nfunction AuthorizeAndRedirect(to: RouteLocationNormalized) : void | { path: string, replace: boolean } {\r\n const authStore = useAuthStore();\r\n const requiresAuth: boolean = to.meta.requiresAuth as boolean;\r\n\r\n if (!requiresAuth)\r\n return;\r\n\r\n const requiredAuthorizationLevel = to.meta.requiredAuthorizationLevel as number;\r\n\r\n const token: string = authStore.getUserToken;\r\n const userAuthorizationLevel = determineAuthorizationLevel(token);\r\n\r\n if (!userAuthorizationLevel)\r\n return {path: '/', replace: true};\r\n\r\n if (requiredAuthorizationLevel > userAuthorizationLevel)\r\n return redirectToHome();\r\n\r\n if (userAuthorizationLevel === AuthorizationLevel.SystemAdministrator)\r\n return;\r\n\r\n const requireOneOfThisPermission = to.meta.requirePermission as HealthcareAcademyPermissions[];\r\n\r\n if (!requireOneOfThisPermission)\r\n return;\r\n\r\n const userPerms = authStore.getLoggedInUsersHcaPermissions;\r\n\r\n const isAuthorized = Array.isArray(userPerms)\r\n ? userPerms.some(perm => requireOneOfThisPermission.includes(perm as HealthcareAcademyPermissions))\r\n : requireOneOfThisPermission.includes(userPerms);\r\n\r\n if (!isAuthorized)\r\n return redirectToHome();\r\n\r\n return;\r\n}\r\n\r\nfunction redirectToHome() : { path: string, replace: boolean } {\r\n const authStore = useAuthStore();\r\n const token = authStore.getUserToken;\r\n const isAdmin = jwtHelper.determineAuthorizationLevel(token) >= AuthorizationLevel.DepartmentAdministrator;\r\n\r\n // TODO: add app insights\r\n\r\n return isAdmin\r\n ? { path: '/admin-menu', replace: true }\r\n : { path: '/home', replace: true };\r\n}\r\n","import AppLayout from '@/models/AppLayout';\r\nimport { RouteRecordRaw } from 'vue-router';\r\n\r\nconst loginRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/',\r\n name: 'Login',\r\n component: () => import('@/views/authentication/Login.vue'),\r\n meta: {\r\n requiresAuth: false,\r\n layout: AppLayout.Login\r\n }\r\n },\r\n {\r\n path: '/update-login-details',\r\n name: 'UpdateLogin',\r\n component: () => import('@/views/account/UpdateUserLoginView.vue'),\r\n meta: {\r\n title: 'Update Login',\r\n requiresAuth: true,\r\n layout: AppLayout.Login\r\n }\r\n },\r\n {\r\n path: '/redirect',\r\n name: 'Redirect',\r\n component: () => import('@/views/authentication/Redirect.vue'),\r\n meta: {\r\n requiresAuth: false,\r\n layout: AppLayout.Public\r\n }\r\n },\r\n {\r\n path: '/logout',\r\n name: 'Logout',\r\n component: () => import('@/views/authentication/Logout.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n layout: AppLayout.Login\r\n }\r\n },\r\n {\r\n path: '/sso-redirect',\r\n name: 'SsoLoginRedirect',\r\n component: () => import('@/views/intermediate/HandleSsoView.vue'),\r\n meta: {\r\n requiresAuth: false,\r\n layout: AppLayout.Login\r\n }\r\n },\r\n {\r\n path: '/saml/signin',\r\n name: 'SamlSignIn',\r\n component: () => import('@/views/authentication/SamlSignIn.vue'),\r\n meta: {\r\n requiresAuth: false,\r\n layout: AppLayout.Login\r\n }\r\n },\r\n {\r\n path: '/unauthorized',\r\n name: 'Unauthorized',\r\n component: () => import('@/views/authentication/UnAuthorizedView.vue'),\r\n meta: {\r\n title: 'Unauthorized',\r\n requiresAuth: false,\r\n layout: AppLayout.Public\r\n }\r\n },\r\n {\r\n path: '/forgot-password',\r\n name: 'ForgotPassword',\r\n component: () => import('@/views/authentication/ForgotPasswordView.vue'),\r\n meta: {\r\n title: 'Forgot Password',\r\n requiresAuth: false,\r\n layout: AppLayout.Public\r\n }\r\n },\r\n {\r\n path: '/reset-password',\r\n name: 'ResetPassword',\r\n component: () => import('@/views/authentication/ResetPasswordView.vue'),\r\n meta: {\r\n title: 'Reset Password',\r\n requiresAuth: false,\r\n layout: AppLayout.Public\r\n }\r\n },\r\n];\r\n\r\nexport default loginRoutes;\r\n","import AppLayout from '@/models/AppLayout';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport { RouteRecordRaw } from 'vue-router';\r\n\r\nconst systemAdminRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/menu-styles',\r\n name: 'MenuStyles',\r\n component: () => import('@/views/admin/courses/MenuStylesView.vue'),\r\n meta: {\r\n title: 'Menu Styles',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n },\r\n },\r\n {\r\n path: '/menu-style/edit',\r\n name: 'EditMenuStyle',\r\n component: () => import('@/views/admin/courses/EditMenuStyle.vue'),\r\n meta: {\r\n title: 'Edit Menu Style',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/training-categories',\r\n name: 'TrainingCategories',\r\n component: () => import('@/views/admin/courses/trainingCategory/TrainingCategoryView.vue'),\r\n meta: {\r\n title: 'Training Categories',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/training-category/edit',\r\n name: 'EditTrainingCategory',\r\n component: () => import('@/views/admin/courses/trainingCategory/EditTrainingCategory.vue'),\r\n meta: {\r\n title: 'Edit Training Category',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/training-subcategories',\r\n name: 'TrainingSubCategories',\r\n component: () => import('@/views/admin/courses/TrainingSubCategoryView.vue'),\r\n meta: {\r\n title: 'Training Sub-Categories',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/training-subcategory/edit',\r\n name: 'EditTrainingSubCategory',\r\n component: () => import('@/views/admin/courses/EditTrainingSubCategory.vue'),\r\n meta: {\r\n title: 'Edit Training Sub-Category',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/training-providers',\r\n name: 'TrainingProviders',\r\n component: () => import('@/views/admin/courses/TrainingProviderView.vue'),\r\n meta: {\r\n title: 'Training Providers',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/training-provider/edit',\r\n name: 'EditTrainingProvider',\r\n component: () => import('@/views/admin/courses/EditTrainingProvider.vue'),\r\n meta: {\r\n title: 'Edit Training Provider',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/corporations',\r\n name: 'Corporations',\r\n component: () => import('@/views/admin/organizations/corporation/CorporationView.vue'),\r\n meta: {\r\n title: 'Corporations',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/corporation/edit',\r\n name: 'EditCorporation',\r\n component: () => import('@/views/admin/organizations/corporation/EditCorporation.vue'),\r\n meta: {\r\n title: 'Edit Corporation',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/regions',\r\n name: 'Regions',\r\n component: () => import('@/views/admin/organizations/region/RegionView.vue'),\r\n meta: {\r\n title: 'Regions',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/region/edit',\r\n name: 'EditRegion',\r\n component: () => import('@/views/admin/organizations/region/EditRegion.vue'),\r\n meta: {\r\n title: 'Edit Region',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/divisions',\r\n name: 'Divisions',\r\n component: () => import('@/views/admin/organizations/division/DivisionView.vue'),\r\n meta: {\r\n title: 'Divisions',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DivisionAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/division/edit',\r\n name: 'EditDivision',\r\n component: () => import('@/views/admin/organizations/division/EditDivision.vue'),\r\n meta: {\r\n title: 'Edit Division',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DivisionAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/facilities',\r\n name: 'Facilities',\r\n component: () => import('@/views/admin/organizations/facility/FacilityView.vue'),\r\n meta: {\r\n title: 'Facilities',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.FacilityAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/facility/edit',\r\n name: 'EditFacility',\r\n component: () => import('@/views/admin/organizations/facility/EditFacility.vue'),\r\n meta: {\r\n title: 'Edit Facility',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.FacilityAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/departments',\r\n name: 'Departments',\r\n component: () => import('@/views/admin/organizations/department/DepartmentView.vue'),\r\n meta: {\r\n title: 'Departments',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/department/edit',\r\n name: 'EditDepartment',\r\n component: () => import('@/views/admin/organizations/department/EditDepartment.vue'),\r\n meta: {\r\n title: 'Edit Department',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n];\r\n\r\nexport default systemAdminRoutes;\r\n","import AppLayout from '@/models/AppLayout';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport { RouteRecordRaw } from 'vue-router';\r\nimport HealthcareAcademyPermissions from '@/models/auth/HealthcareAcademyPermissions';\r\n\r\nconst userManagementRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/edit-account',\r\n name: 'EditAccount',\r\n component: () => import('@/views/account/AdminEditAccount.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'UpdateUserProfile',\r\n component: () => import('@/components/Account/UpdateProfileInfoComponent.vue'),\r\n meta: { title: 'Edit Profile' }\r\n },\r\n {\r\n path: 'change-password',\r\n name: 'AdminChangePassword',\r\n component: () => import('@/components/Account/ResetPasswordComponent.vue'),\r\n meta: { title: 'Change Password' }\r\n },\r\n {\r\n path: 'update-org-hierarchy',\r\n name: 'UpdateUserOrgHierarchy',\r\n component: () => import('@/components/Account/UserOrgComponent.vue'),\r\n meta: {\r\n title: 'Update Organization Hierarchy',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.FacilityAdministrator\r\n }\r\n },\r\n {\r\n path: 'promote-role',\r\n name: 'PromoteUserRole',\r\n component: () => import('@/components/Account/PromoteUserRoleComponent.vue'),\r\n meta: { title: 'Promote User' }\r\n },\r\n {\r\n path: 'update-permissions',\r\n name: 'UpdateUserPermissions',\r\n component: () => import('@/components/Account/UserPermissionsComponent.vue'),\r\n meta: { title: 'Permissions' }\r\n },\r\n {\r\n path: 'org-access',\r\n name: 'OrganizationAccess',\r\n component: () => import('@/components/Account/OrganizationAccessComponent.vue'),\r\n meta: { title: 'Organization Access' }\r\n },\r\n {\r\n path: 'assignments',\r\n name: 'UserAssignments',\r\n component: () => import('@/components/Account/UserCourseAssignment.vue'),\r\n meta: { title: 'User Assignments' }\r\n }\r\n ],\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/account/admin',\r\n name: 'MyAccount',\r\n component: () => import('@/views/account/AccountDetailsView.vue'),\r\n meta: {\r\n title: 'My Account',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/account/student/overview',\r\n name: 'StudentAccountOverview',\r\n component: () => import('@/views/account/StudentAccountOverview.vue'),\r\n meta: {\r\n title: 'Student Account',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/account/student/profile',\r\n name: 'StudentAccountProfile',\r\n component: () => import('@/views/account/StudentEditProfile.vue'),\r\n meta: {\r\n title: 'Edit Account',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/account/student/profession',\r\n name: 'StudentEditProfessions',\r\n component: () => import('@/views/account/StudentEditProfession.vue'),\r\n meta: {\r\n title: 'Edit Account',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/account/student/change-password',\r\n name: 'StudentChangePassword',\r\n component: () => import('@/views/account/StudentChangePassword.vue'),\r\n meta: {\r\n title: 'Change Password',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/import-users',\r\n name: 'ImportUsers',\r\n component: () => import('@/views/admin/users/ImportUser.vue'),\r\n meta: {\r\n title: 'Import Users',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.AllowStudentImport],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/export-users',\r\n name: 'ExportUsers',\r\n component: () => import('@/views/admin/users/ExportUser.vue'),\r\n meta: {\r\n title: 'Export Users',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/users',\r\n name: 'Users',\r\n component: () => import('@/views/admin/users/UsersView.vue'),\r\n meta: {\r\n title: 'Search Users',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAdmins, HealthcareAcademyPermissions.ManageStudents],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/create-user',\r\n name: 'CreateUser',\r\n component: () => import('@/views/admin/users/AddUser.vue'),\r\n meta: {\r\n title: 'Create User',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAdmins, HealthcareAcademyPermissions.ManageStudents],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/sync-profiles',\r\n name: 'StudentProfileSync',\r\n component: () => import('@/views/admin/SyncStudentProfile.vue'),\r\n meta: {\r\n title: 'Sync Student Profile',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Login\r\n }\r\n },\r\n];\r\n\r\nexport default userManagementRoutes;\r\n","import AppLayout from '@/models/AppLayout';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport { RouteRecordRaw } from 'vue-router';\r\nimport HealthcareAcademyPermissions from '@/models/auth/HealthcareAcademyPermissions';\r\n\r\nconst courseManagementRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/course-management',\r\n name: 'Courses',\r\n component: () => import('@/views/admin/courses/CoursesView.vue'),\r\n meta: {\r\n title: 'Search Courses',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/course-management/edit-course',\r\n name: 'EditCourse',\r\n component: () => import('@/views/admin/courses/EditCourse.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'CourseGeneral',\r\n component: () => import('@/components/Course/Course/CourseGeneral.vue'),\r\n meta: { title: ' Course General' }\r\n },\r\n {\r\n path: 'interface',\r\n name: 'CourseInterface',\r\n component: () => import('@/components/Course/Course/CourseInterface.vue'),\r\n meta: { title: 'Course Interface' }\r\n },\r\n {\r\n path: 'content',\r\n name: 'CourseContent',\r\n component: () => import('@/components/Course/Course/CourseContent.vue'),\r\n meta: { title: 'Course Content' }\r\n },\r\n {\r\n path: 'access',\r\n name: 'CourseAccess',\r\n component: () => import('@/components/Course/Course/CourseAccess.vue'),\r\n meta: { title: 'Course Access' }\r\n },\r\n {\r\n path: 'prerequisites',\r\n name: 'CoursePreRequisites',\r\n component: () => import('@/components/Course/Course/CoursePrerequisites.vue'),\r\n meta: { title: 'Course Prerequisites' }\r\n },\r\n {\r\n path: 'other',\r\n name: 'CourseOther',\r\n component: () => import('@/components/Course/Course/CourseOther.vue'),\r\n meta: { title: 'Course Other' }\r\n },\r\n ],\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/lessons',\r\n name: 'Lessons',\r\n component: () => import('@/views/admin/courses/LessonsView.vue'),\r\n meta: {\r\n title: 'Search Lessons',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.SystemAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/lesson/edit',\r\n name: 'EditLesson',\r\n component: () => import('@/views/admin/courses/EditLesson.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'LessonGeneral',\r\n component: () => import('@/components/Course/Lesson/LessonGeneral.vue'),\r\n meta: { title: 'Lesson General' }\r\n },\r\n {\r\n path: 'entry',\r\n name: 'LessonEntry',\r\n component: () => import('@/components/Course/Lesson/LessonEntry.vue'),\r\n meta: { title: 'Lesson Entry' }\r\n },\r\n {\r\n path: 'interface',\r\n name: 'LessonInterface',\r\n component: () => import('@/components/Course/Lesson/LessonInterface.vue'),\r\n meta: { title: 'Lesson Interface' }\r\n },\r\n {\r\n path: 'other',\r\n name: 'LessonOther',\r\n component: () => import('@/components/Course/Lesson/LessonOther.vue'),\r\n meta: { title: 'Lesson Other' }\r\n },\r\n ],\r\n meta: {\r\n title: 'Edit Lesson',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/automated-course-assignment',\r\n name: 'Automated Assignments Overview',\r\n component: () => import('@/views/admin/assignments/Automated/AutomatedAssignmentOverview.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'CourseAssignmentPreference',\r\n component: () => import('@/views/admin/assignments/Automated/AssignmentPreferences.vue'),\r\n meta: {\r\n title: 'Automated Assignment Preferences',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: 'annual',\r\n name: 'AnnualCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/Annual/AnnualAssignmentView.vue'),\r\n meta: {\r\n title: 'Annual Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: 'new-hires',\r\n name: 'NewHireCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/NewHire/NewHireAssignmentView.vue'),\r\n meta: {\r\n title: 'New Hire Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: 'rolling',\r\n name: 'RollingCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/Rolling/RollingAssignmentView.vue'),\r\n meta: {\r\n title: 'Rolling Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n }\r\n ],\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAutomatedAssignments],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/course-assignment',\r\n name: 'EditCourseAssignment',\r\n component: () => import('@/views/admin/assignments/EditCourseAssignments.vue'),\r\n meta: {\r\n title: 'Edit Student Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCourseResults],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/lesson-assignment',\r\n name: 'EditLessonAssignment',\r\n component: () => import('@/views/admin/assignments/EditLessonAssignment.vue'),\r\n meta: {\r\n title: 'Edit Student Lesson Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCourseResults],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/assign-courses',\r\n name: 'AssignCourses',\r\n component: () => import('@/views/admin/assignments/CourseAssignment.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'SelectAssignStudents',\r\n component: () => import('@/components/Course/CourseAssignment/SelectStudents.vue')\r\n },\r\n {\r\n path: 'select-course',\r\n name: 'SelectCourse',\r\n component: () => import('@/components/Course/CourseAssignment/SelectCourse.vue')\r\n },\r\n {\r\n path: 'dates',\r\n name: 'SelectDates',\r\n component: () => import('@/components/Course/CourseAssignment/SelectDates.vue')\r\n },\r\n {\r\n path: 'review',\r\n name: 'ReviewNewAssignment',\r\n component: () => import('@/components/Course/CourseAssignment/ReviewNewAssignments.vue')\r\n }\r\n ],\r\n meta: {\r\n title: 'Assign Courses',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.AllowCourseAssign],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/drop-courses',\r\n name: 'DropCourses',\r\n component: () => import('@/views/admin/assignments/DropAssignments.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'SelectDropStudents',\r\n component: () => import('@/components/Course/CourseAssignment/SelectStudents.vue')\r\n },\r\n {\r\n path: 'select-assignments',\r\n name: 'SelectAssignments',\r\n component: () => import('@/components/Course/CourseAssignment/SelectAssignments.vue')\r\n },\r\n {\r\n path: 'review',\r\n name: 'ReviewDropAssignment',\r\n component: () => import('@/components/Course/CourseAssignment/ReviewDropAssignments.vue')\r\n }\r\n ],\r\n meta: {\r\n title: 'Assign Courses',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.AllowCourseAssign],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/automated-course-assignment/annual/add',\r\n name: 'AddAnnualCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/Annual/AddAnnualAssignment.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'SelectAnnualFacility',\r\n component: () => import('@/components/Course/CourseAssignment/Annual/Add/SelectAddFacility.vue')\r\n },\r\n {\r\n path: 'select-course',\r\n name: 'SelectAnnualCourse',\r\n component: () => import('@/components/Course/CourseAssignment/Annual/Add/SelectAddCourse.vue')\r\n },\r\n {\r\n path: 'details',\r\n name: 'SelectAnnualDetails',\r\n component: () => import('@/components/Course/CourseAssignment/Annual/Add/SelectAddDetails.vue')\r\n },\r\n {\r\n path: 'review',\r\n name: 'ReviewAnnualAssignment',\r\n component: () => import('@/components/Course/CourseAssignment/Annual/Add/ReviewAnnualAssignment.vue')\r\n }\r\n ],\r\n meta: {\r\n title: 'Add Annual Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAutomatedAssignments],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/automated-course-assignment/annual/edit',\r\n name: 'EditAnnualCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/Annual/EditAnnualAssignment.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'EditAnnualFacility',\r\n component: () => import('@/components/Course/CourseAssignment/Annual/Edit/SelectEditFacility.vue'),\r\n },\r\n {\r\n path: 'select-course',\r\n name: 'EditAnnualCourse',\r\n component: () => import('@/components/Course/CourseAssignment/Annual/Edit/SelectEditCourse.vue'),\r\n },\r\n {\r\n path: 'details',\r\n name: 'EditAnnualDetails',\r\n component: () => import('@/components/Course/CourseAssignment/Annual/Edit/SelectEditDetails.vue'),\r\n }\r\n ],\r\n meta: {\r\n title: 'Edit Annual Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAutomatedAssignments],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/automated-course-assignment/new-hires/add',\r\n name: 'AddNewHireCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/NewHire/AddNewHireAssignment.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'SelectNewHireFacility',\r\n component: () => import('@/components/Course/CourseAssignment/NewHire/Add/SelectAddFacility.vue')\r\n },\r\n {\r\n path: 'select-course',\r\n name: 'SelectNewHireCourse',\r\n component: () => import('@/components/Course/CourseAssignment/NewHire/Add/SelectAddCourse.vue')\r\n },\r\n {\r\n path: 'details',\r\n name: 'SelectNewHireDetails',\r\n component: () => import('@/components/Course/CourseAssignment/NewHire/Add/SelectAddDetails.vue')\r\n },\r\n {\r\n path: 'review',\r\n name: 'ReviewNewHireAssignment',\r\n component: () => import('@/components/Course/CourseAssignment/NewHire/Add/ReviewNewHireAssignment.vue')\r\n }\r\n ],\r\n meta: {\r\n title: 'Add New Hire Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAutomatedAssignments],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/automated-course-assignment/new-hires/edit',\r\n name: 'EditNewHireCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/NewHire/EditNewHireAssignment.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'EditNewHireFacility',\r\n component: () => import('@/components/Course/CourseAssignment/NewHire/Edit/SelectEditFacility.vue')\r\n },\r\n {\r\n path: 'select-course',\r\n name: 'EditNewHireCourse',\r\n component: () => import('@/components/Course/CourseAssignment/NewHire/Edit/SelectEditCourse.vue')\r\n },\r\n {\r\n path: 'details',\r\n name: 'EditNewHireDetails',\r\n component: () => import('@/components/Course/CourseAssignment/NewHire/Edit/SelectEditDetails.vue')\r\n }\r\n ],\r\n meta: {\r\n title: 'Edit New Hire Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAutomatedAssignments],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/automated-course-assignment/rolling/add',\r\n name: 'AddRollingCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/Rolling/AddRollingAssignment.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'SelectRollingFacility',\r\n component: () => import('@/components/Course/CourseAssignment/Rolling/Add/SelectAddFacility.vue')\r\n },\r\n {\r\n path: 'select-course',\r\n name: 'SelectRollingCourse',\r\n component: () => import('@/components/Course/CourseAssignment/Rolling/Add/SelectAddCourse.vue')\r\n },\r\n {\r\n path: 'details',\r\n name: 'SelectRollingDetails',\r\n component: () => import('@/components/Course/CourseAssignment/Rolling/Add/SelectAddDetails.vue')\r\n },\r\n {\r\n path: 'review',\r\n name: 'ReviewRollingAssignment',\r\n component: () => import('@/components/Course/CourseAssignment/Rolling/Add/ReviewRollingAssignment.vue')\r\n }\r\n ],\r\n meta: {\r\n title: 'Add Rolling Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAutomatedAssignments],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/automated-course-assignment/rolling/edit',\r\n name: 'EditRollingCourseAssignment',\r\n component: () => import('@/views/admin/assignments/Automated/Rolling/EditRollingAssignment.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'EditRollingFacility',\r\n component: () => import('@/components/Course/CourseAssignment/Rolling/Edit/SelectEditFacility.vue'),\r\n },\r\n {\r\n path: 'select-course',\r\n name: 'EditRollingCourse',\r\n component: () => import('@/components/Course/CourseAssignment/Rolling/Edit/SelectEditCourse.vue'),\r\n },\r\n {\r\n path: 'details',\r\n name: 'EditRollingDetails',\r\n component: () => import('@/components/Course/CourseAssignment/Rolling/Edit/SelectEditDetails.vue'),\r\n }\r\n ],\r\n meta: {\r\n title: 'Edit Rolling Course Assignment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageAutomatedAssignments],\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n];\r\n\r\nexport default courseManagementRoutes;\r\n","import AppLayout from '@/models/AppLayout';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport { RouteRecordRaw } from 'vue-router';\r\nimport {ref} from \"vue\";\r\n\r\nconst enableSkills = ref(false);\r\n\r\nconst reportRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/reports',\r\n name: 'Reports',\r\n component: () => import('@/views/reports/ReportsView.vue'),\r\n meta: {\r\n title: 'Reports',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/reports/course-status',\r\n name: 'CourseStatusReport',\r\n component: () => import('@/views/reports/CourseStatusReport.vue'),\r\n meta: {\r\n title: 'Course Status Report',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/reports/skill-status',\r\n name: 'SkillStatusReport',\r\n component: () => enableSkills.value\r\n ? import('@/views/reports/SkillStatusReport.vue')\r\n : import('@/views/admin/MainMenu.vue'),\r\n meta: {\r\n title: 'Skill Status Report',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/reports/lesson-status',\r\n name: 'LessonStatusReport',\r\n component: () => import('@/views/reports/LessonStatusReport.vue'),\r\n meta: {\r\n title: 'Lesson Status Report',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/reports/facility-compliance',\r\n name: 'FacilityComplianceReport',\r\n component: () => import('@/views/reports/FacilityComplianceReport.vue'),\r\n meta: {\r\n title: 'Facility Compliance Report',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n]\r\n\r\nexport default reportRoutes;\r\n","import AppLayout from '@/models/AppLayout';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport { RouteRecordRaw } from 'vue-router';\r\n\r\nconst studentAssignmentRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/home',\r\n name: 'Home',\r\n component: () => import('@/views/student/Home.vue'),\r\n children: [\r\n {\r\n path: '',\r\n name: 'ToDoCourses',\r\n component: () => import('@/components/Student/StudentToDoCourses.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: 'skills',\r\n name: 'ToDoSkills',\r\n component: () => import('@/components/Student/StudentToDoSkills.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: 'completed-courses',\r\n name: 'CompletedCourses',\r\n component: () => import('@/components/Student/StudentCompletedCourses.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: 'completed-skills',\r\n name: 'CompletedSkills',\r\n component: () => import('@/components/Student/StudentCompletedSkills.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n ],\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/lesson-assignments',\r\n name: 'Student Lessons',\r\n component: () => import('@/views/student/LessonAssignments.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/skill-lesson-assignments',\r\n name: 'Student Skill Lessons',\r\n component: () => import('@/views/student/SkillLessonAssignments.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/learning-session',\r\n name: 'Learning Session',\r\n component: () => import('@/views/student/LearningSession.vue'),\r\n meta: {\r\n title: 'Learning Session',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/skill/printable-checklist',\r\n name: 'View Printable Checklist',\r\n component: () => import('@/views/student/skill/PrintableChecklist.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/skill/video-lesson',\r\n name: 'Skill Video Lesson',\r\n component: () => import('@/views/student/skill/VideoLesson.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n {\r\n path: '/skill/review-evaluation',\r\n name: 'Most Recent Evaluation',\r\n component: () => import('@/views/student/skill/ReviewMostRecentEvaluation.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.User,\r\n layout: AppLayout.Student\r\n }\r\n },\r\n];\r\n\r\nexport default studentAssignmentRoutes;\r\n","import { RouteRecordRaw } from 'vue-router';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport AppLayout from '@/models/AppLayout';\r\nimport HealthcareAcademyPermissions from '@/models/auth/HealthcareAcademyPermissions';\r\n\r\nconst resourceRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/resources',\r\n name: 'Resources',\r\n component: () => import('@/views/admin/Resources.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n },\r\n children: [\r\n {\r\n path: '',\r\n name: 'ResourcesCatalogs',\r\n component: () => import('@/components/Resources/ResourcesCatalogs.vue'),\r\n meta: { title: ' Resources Catalogs' }\r\n },\r\n {\r\n path: 'userguides',\r\n name: 'ResourcesUserGuides',\r\n component: () => import('@/components/Resources/ResourcesUserGuide.vue'),\r\n meta: { title: ' Resources User Guide' }\r\n },\r\n {\r\n path: 'newsandupdates',\r\n name: 'ResourcesNewsAndUpdates',\r\n component: () => import('@/components/Resources/ResourcesNewsAndUpdates.vue'),\r\n meta: { title: ' Resources News And Updates' }\r\n }\r\n ]\r\n }\r\n];\r\n\r\nexport default resourceRoutes;","import AppLayout from '@/models/AppLayout';\r\nimport { RouteRecordRaw } from 'vue-router';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport HealthcareAcademyPermissions from \"@/models/auth/HealthcareAcademyPermissions\";\r\n\r\nconst competencyRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/evaluator-menu',\r\n name: 'EvaluatorMainMenu',\r\n component: () => import('@/views/admin/EvaluatorMainMenu.vue'),\r\n meta: {\r\n title: 'eCompetency',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCompetencyEvaluator],\r\n layout: AppLayout.CompetencyEvaluator\r\n }\r\n },\r\n {\r\n path: '/competency/assessment',\r\n name: 'CompetencyAssessment',\r\n component: () => import('@/views/admin/competency/CompetencyAssessment.vue'),\r\n meta: {\r\n title: 'Competency Assessment',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCompetencyEvaluator],\r\n layout: AppLayout.CompetencyEvaluator\r\n }\r\n },\r\n {\r\n path: '/competency/results',\r\n name: 'CompetencyResults',\r\n component: () => import('@/views/admin/competency/CompetencyResultsOverview.vue'),\r\n meta: {\r\n title: 'Competency Results',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCompetencyEvaluator],\r\n layout: AppLayout.CompetencyEvaluator\r\n }\r\n },\r\n {\r\n path: '/competency/review-assessment',\r\n name: 'ReviewAssessment',\r\n component: () => import('@/views/admin/competency/ReviewCompetencyEvaluation.vue'),\r\n meta: {\r\n title: 'Review Competency Results',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCompetencyEvaluator],\r\n layout: AppLayout.CompetencyEvaluator\r\n }\r\n },\r\n {\r\n path: '/competency/custom/active',\r\n name: 'ActiveCustomCompetency',\r\n component: () => import('@/views/admin/competency/custom/ActiveCustomCompetency.vue'),\r\n meta: {\r\n title: 'Active Custom Competency',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCompetencyEvaluator],\r\n layout: AppLayout.CompetencyEvaluator\r\n }\r\n },\r\n {\r\n path: '/competency/custom/edit',\r\n name: 'EditCustomCompetency',\r\n component: () => import('@/views/admin/competency/custom/EditCustomCompetency.vue'),\r\n meta: {\r\n title: 'Edit Custom Competency',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCompetencyEvaluator],\r\n layout: AppLayout.CompetencyEvaluator\r\n }\r\n },\r\n {\r\n path: '/competency/custom/retired',\r\n name: 'RetiredCustomCompetency',\r\n component: () => import('@/views/admin/competency/custom/RetiredCustomCompetency.vue'),\r\n meta: {\r\n title: 'Retired Custom Competency',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.ManageCompetencyEvaluator],\r\n layout: AppLayout.CompetencyEvaluator\r\n }\r\n },\r\n {\r\n path: '/competency/custom/create',\r\n name: 'CreateCustomCompetency',\r\n component: () => import('@/views/admin/competency/custom/CreateCustomCompetency.vue'),\r\n meta: {\r\n title: 'Create Custom Competency',\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n requirePermission: [HealthcareAcademyPermissions.CreateCustomCompetencies],\r\n layout: AppLayout.CompetencyEvaluator\r\n }\r\n },\r\n];\r\n\r\nexport default competencyRoutes;\r\n","import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router';\r\nimport { registerNavigate } from './registerNavigate';\r\nimport loginRoutes from './routes/admin/loginRoutes';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport systemAdminRoutes from './routes/admin/systemAdminRoutes';\r\nimport userManagementRoutes from './routes/admin/userManagementRoutes';\r\nimport courseManagementRoutes from './routes/admin/courseManagementRoutes';\r\nimport AppLayout from '@/models/AppLayout';\r\nimport reportRoutes from './routes/admin/reportRoutes';\r\nimport studentAssignmentRoutes from '@/router/routes/student/StudentAssignmentRoutes';\r\nimport resourceRoutes from './routes/admin/resourceRoutes';\r\nimport competencyRoutes from '@/router/routes/competencyRoutes';\r\n\r\nlet routes: RouteRecordRaw[] = [\r\n {\r\n path: '/confirm-email',\r\n name: 'ConfirmEmail',\r\n component: () => import('@/views/account/ConfirmEmailView.vue'),\r\n meta: {\r\n requiresAuth: false,\r\n layout: AppLayout.Public\r\n }\r\n },\r\n {\r\n path: '/admin-menu',\r\n name: 'AdminMainMenu',\r\n component: () => import('@/views/admin/MainMenu.vue'),\r\n meta: {\r\n requiresAuth: true,\r\n requiredAuthorizationLevel: AuthorizationLevel.DepartmentAdministrator,\r\n layout: AppLayout.Admin\r\n }\r\n },\r\n {\r\n path: '/404',\r\n name: '404',\r\n component: () => import('@/views/errors/404.vue'),\r\n meta: {\r\n requiresAuth: false,\r\n layout: AppLayout.Error\r\n }\r\n },\r\n {\r\n path: '/:pathMatch(.*)*',\r\n component: () => import('@/views/errors/404.vue'),\r\n meta: {\r\n requiresAuth: false,\r\n layout: AppLayout.Error\r\n }\r\n },\r\n];\r\n\r\nroutes = routes.concat(\r\n loginRoutes,\r\n userManagementRoutes,\r\n courseManagementRoutes,\r\n competencyRoutes,\r\n systemAdminRoutes,\r\n reportRoutes,\r\n studentAssignmentRoutes,\r\n resourceRoutes\r\n);\r\n\r\nconst router = createRouter({\r\n routes,\r\n history: createWebHistory()\r\n});\r\n\r\nregisterNavigate(router);\r\n\r\nexport default router;\r\n","import useMainStore from '@/store/main.store';\r\nimport jwtInterceptor from '@/helpers/http';\r\nimport {formatServerErrorResponse} from '@/helpers/jwtHelper';\r\nimport AddAdminOrganizationAccess from '@/models/user/OrganizationLevel/AddAdminOrganizationAccess';\r\nimport AdminOrganizationAccess from '@/models/user/OrganizationLevel/AdminOrganizationAccess';\r\nimport IOrganizationHierarchy from '@/models/user/OrganizationLevel/IOrganizationHierarchy';\r\nimport UserOrgLevels from '@/models/user/OrganizationLevel/IUserOrgLevels';\r\nimport IUserSearchResult from '@/models/search/user/IUserSearchResult';\r\nimport IUserProfile from '@/models/user/IUserProfile';\r\nimport IGridFilter from '@/models/search/IGridFilter';\r\nimport UpdateUser from '@/models/user/updateUser';\r\nimport AddUser from '@/models/user/addUser';\r\nimport {computed, ComputedRef, Ref} from 'vue';\r\nimport {useLocalStorage} from '@vueuse/core';\r\nimport {defineStore} from 'pinia';\r\nimport {AxiosError, AxiosResponse} from 'axios';\r\n\r\nexport interface IAccountStore {\r\n userProfileForActiveUser: Ref,\r\n getActiveUserProfile: ComputedRef,\r\n getActiveUserProfileId: ComputedRef,\r\n\r\n updateProfileRole(newRole: string): void,\r\n searchUsers(filter: IGridFilter): Promise\r\n getUserProfileByUserProfileId(userProfileId: number, includeAdditionalProfiles: boolean): Promise,\r\n updateProfile(updatedProfile: UpdateUser): Promise,\r\n createUser(newUserProfile: AddUser): Promise,\r\n updateUserOrgLevels(updateMdl: UserOrgLevels): Promise,\r\n getAdminHierarchy(identityId: string): Promise,\r\n getAllAdminOrganizationAccess(userProfileId: number): Promise,\r\n addAdminOrganizationAccess(addOrgAccess: AddAdminOrganizationAccess): Promise,\r\n removeAdminOrganizationAccess(userProfileId: number, organizationLevel: string, organizationId: number): Promise,\r\n $reset(): void\r\n}\r\n\r\nconst useAccountStore = defineStore('accountStore', (): IAccountStore => {\r\n const mainStore= useMainStore();\r\n\r\n const userProfileForActiveUser: Ref = useLocalStorage('accountStore_userdata', {} as IUserProfile);\r\n\r\n const getActiveUserProfile: ComputedRef = computed(() => userProfileForActiveUser.value);\r\n const getActiveUserProfileId: ComputedRef = computed(() => userProfileForActiveUser.value.userId);\r\n\r\n\r\n function updateProfileRole(newRole: string): void {\r\n if (!userProfileForActiveUser.value.identityUser)\r\n return mainStore.setErrorMsg('User does not contain role');\r\n\r\n userProfileForActiveUser.value.identityUser.role = newRole;\r\n }\r\n\r\n async function searchUsers(filter: IGridFilter): Promise {\r\n const actionName = 'searchUsers';\r\n mainStore.startTask(actionName);\r\n\r\n const filterJson = JSON.stringify(filter);\r\n\r\n try {\r\n const searchResult: AxiosResponse = await jwtInterceptor.get('api/userProfile/search', {params: {filter: btoa(filterJson)}});\r\n\r\n return searchResult.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to return User search result', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getUserProfileByUserProfileId(userProfileId: number, includeAdditionalProfiles: boolean = false) : Promise {\r\n const actionName = 'getUserProfileByUserProfileId';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getProfileResponse: AxiosResponse = await jwtInterceptor.get('api/userProfile', { params: { id: userProfileId, includeAdditionalProfiles } })\r\n\r\n userProfileForActiveUser.value = getProfileResponse.data;\r\n\r\n return userProfileForActiveUser.value;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Error fetching User Profile', error)\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName)\r\n }\r\n }\r\n\r\n async function updateProfile(updatedProfile: UpdateUser): Promise {\r\n const actionName = 'updateProfile';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/userprofile/update', updatedProfile);\r\n\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Error updating User Profile.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function createUser(newUserProfile: AddUser): Promise {\r\n const actionName = 'CreateUser';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/UserProfile/create', newUserProfile);\r\n\r\n mainStore.setSuccessMsg('Successfully created user.');\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Create User', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateUserOrgLevels(updateMdl: UserOrgLevels): Promise {\r\n const actionName = 'updateUserOrgLevels';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.put('api/UserProfile/update-user-org', updateMdl);\r\n\r\n mainStore.setInfoMsg('Successfully updated user organizations.');\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Update user Organization', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAdminHierarchy(identityId: string): Promise {\r\n const actionName = 'getAdminHierarchy';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getAdminHierarchyResponse: AxiosResponse = await jwtInterceptor.get('api/UserProfile/admin-hierarchy', { params: { identityId } });\r\n\r\n return getAdminHierarchyResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Admin Hierarchy', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAllAdminOrganizationAccess(userProfileId: number): Promise {\r\n const actionName = 'getAllAdminOrganizationAccess';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getAdminOrgAccessResponse: AxiosResponse = await jwtInterceptor.get('api/UserProfile/admin-org-access', { params: { userProfileId } })\r\n\r\n return getAdminOrgAccessResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Admin Organization Access list', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n /**\r\n * Adds the specified organization access for an admin user.\r\n *\r\n * @param addOrgAccess - The organization access to add.\r\n * @returns A promise that resolves when the organization access is added.\r\n */\r\n async function addAdminOrganizationAccess(addOrgAccess: AddAdminOrganizationAccess): Promise {\r\n const actionName = 'addAdminOrganizationAccess';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/UserProfile/add-admin-org-access', addOrgAccess);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to add Admin Organization Access', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n /**\r\n * Removes the specified organization access for an admin user.\r\n *\r\n * @param userProfileId - The ID of the user profile.\r\n * @param organizationLevel - The level of the organization (e.g., Corporation, Region, Division, Facility, Department).\r\n * @param organizationId - The ID of the organization.\r\n * @returns A promise that resolves when the organization access is removed.\r\n */\r\n async function removeAdminOrganizationAccess(userProfileId: number, organizationLevel: string, organizationId: number): Promise {\r\n const actionName = 'removeAdminOrganizationAccess';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.delete(`api/UserProfile/remove-admin-org-access`, {\r\n params: { userProfileId, organizationLevel, organizationId }\r\n });\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to remove Admin Organization Access', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n function $reset() {\r\n userProfileForActiveUser.value = {} as IUserProfile;\r\n }\r\n\r\n return {\r\n userProfileForActiveUser,\r\n getActiveUserProfile,\r\n getActiveUserProfileId,\r\n\r\n updateProfileRole,\r\n searchUsers,\r\n getUserProfileByUserProfileId,\r\n updateProfile,\r\n createUser,\r\n updateUserOrgLevels,\r\n getAdminHierarchy,\r\n getAllAdminOrganizationAccess,\r\n addAdminOrganizationAccess,\r\n removeAdminOrganizationAccess,\r\n $reset\r\n }\r\n});\r\n\r\nexport default useAccountStore;\r\n","import jwtInterceptor from '@/helpers/http';\r\nimport * as jwtHelper from '@/helpers/jwtHelper';\r\nimport {formatServerErrorResponse} from '@/helpers/jwtHelper';\r\nimport useMainStore from './main.store';\r\nimport useAssignmentStore from '@/store/student/assignments.store';\r\nimport useAccountStore from '@/store/account.store';\r\nimport useStudentAccountStore from '@/store/student/student.account.store';\r\nimport axios, {AxiosError, AxiosResponse} from 'axios';\r\nimport { useLocalStorage } from '@vueuse/core';\r\nimport {computed, ComputedRef, Ref} from 'vue';\r\nimport {defineStore} from 'pinia';\r\nimport LoginResult from '@/models/auth/loginResult';\r\nimport UserPermissions from '@/models/user/UserPermissions';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport HealthcareAcademyPermissions from '@/models/auth/HealthcareAcademyPermissions';\r\nimport ITokenResult from '@/models/auth/ITokenResult';\r\nimport PromoteUserRole from '@/models/auth/PromoteUserRole';\r\n\r\nexport interface IAuthStore {\r\n isAdmin: ComputedRef,\r\n isActivelyLoggedIn: ComputedRef,\r\n getUserToken: ComputedRef,\r\n getRefreshToken: ComputedRef,\r\n getIdentityId: ComputedRef,\r\n getUserProfileId: ComputedRef,\r\n getStudentProfileId: ComputedRef,\r\n getFirstName: ComputedRef,\r\n getLastName: ComputedRef,\r\n getUsername: ComputedRef,\r\n getEmail: ComputedRef,\r\n hasAdminChosenToSkipSyncProfile: ComputedRef,\r\n getAuthorizationLevel: ComputedRef,\r\n hasImportPermission: ComputedRef,\r\n hasAnyAddEditPermission: ComputedRef,\r\n hasAddEditPermissionForStudentAndAdmin: ComputedRef,\r\n hasCourseAssignmentPermission: ComputedRef,\r\n hasAutomatedAssignmentPermission: ComputedRef,\r\n hasDropAssignmentPermission: ComputedRef,\r\n hasAnyCompetencyEvaluatorPermission: ComputedRef,\r\n hasCreateCustomCompetencyPermission: ComputedRef,\r\n getLoggedInUsersHcaPermissions: ComputedRef,\r\n\r\n login(username: string, password: string): Promise<{ syncStudentProfile: boolean, loginMeetsStandard: boolean } | void>,\r\n studentLogin(loginUserProfileId: number, username: string, password: string): Promise<{ loginMeetsStandard: boolean } | void>,\r\n updatePassword(userIdentityId: string, currentPassword: string, password: string, confirmPassword: string): Promise,\r\n resetPassword(resetEmail: string, password: string, confirmPassword: string, token: string): Promise,\r\n logout(): Promise,\r\n samlLogout(): Promise,\r\n redirectAADLogin(msiToken: string): Promise,\r\n isAuthenticated(): Promise,\r\n forgotPassword(forgotPasswordEmail: string): Promise,\r\n adminResetPassword(userId: number, password: string, confirmPassword: string): Promise,\r\n updateUserPermissions(permissions: UserPermissions): Promise,\r\n getUserPermissions(userId: number): Promise,\r\n updateLoginInfo(loginUserProfileId: number, currentPassword: string, updateEmail: string, newPassword: string, confirmPassword: string): Promise,\r\n promoteUserRole(promotionMdl: PromoteUserRole): Promise,\r\n requestEmailConfirmation(email: string): Promise,\r\n confirmEmail(emailToConfirm: string, token: string): Promise,\r\n doesLoginMeetRequirements(identityId: string): Promise<{ loginMeetsStandard: boolean } | void>,\r\n saveTokenData(accessToken: string, refreshToken: string): void,\r\n adminChoseToSkipSyncProfile(): void,\r\n $reset(): void,\r\n}\r\n\r\nconst http = axios.create({ baseURL: process.env.VUE_APP_APIBASEURL ?? window.location.origin });\r\n\r\nconst useAuthStore = defineStore('authStore', (): IAuthStore => {\r\n const mainStore = useMainStore();\r\n\r\n const token: Ref = useLocalStorage('authStore_accessToken', '');\r\n const refreshToken: Ref = useLocalStorage('authStore_refreshToken', '');\r\n const skipStudentSync: Ref> = useLocalStorage('authStore_hasAdminChosenToSkipSyncProfile', new Map());\r\n\r\n const isAdmin: ComputedRef = computed(() => jwtHelper.determineAuthorizationLevel(token.value) >= AuthorizationLevel.DepartmentAdministrator);\r\n const isActivelyLoggedIn: ComputedRef = computed(() => !jwtHelper.isTokenExpired(token.value));\r\n const getUserToken: ComputedRef = computed(() => token.value);\r\n const getRefreshToken: ComputedRef = computed(() => refreshToken.value);\r\n const getIdentityId: ComputedRef = computed(() => jwtHelper.determineIdentityId(token.value));\r\n const getUserProfileId: ComputedRef = computed(() => jwtHelper.determineUserProfileId(token.value));\r\n const getStudentProfileId: ComputedRef = computed(() => jwtHelper.determineStudentProfileId(token.value));\r\n const getFirstName: ComputedRef = computed(() => jwtHelper.determineFirstName(token.value));\r\n const getLastName: ComputedRef = computed(() => jwtHelper.determineLastName(token.value));\r\n const getUsername: ComputedRef = computed(() => jwtHelper.determineUsername(token.value));\r\n const getEmail: ComputedRef = computed(() => jwtHelper.determineEmail(token.value));\r\n const getAuthorizationLevel: ComputedRef = computed(() => jwtHelper.determineAuthorizationLevel(token.value));\r\n const hasAdminChosenToSkipSyncProfile: ComputedRef = computed(() => skipStudentSync.value.get( getUsername.value ) ?? false);\r\n const getLoggedInUsersHcaPermissions: ComputedRef = computed(() => jwtHelper.determineHcaPermissions(token.value).map(p => p as HealthcareAcademyPermissions));\r\n\r\n const hasImportPermission: ComputedRef = computed(() => {\r\n if (jwtHelper.determineAuthorizationLevel(token.value) === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n\r\n return getLoggedInUsersHcaPermissions.value.includes(HealthcareAcademyPermissions.AllowStudentImport);\r\n });\r\n const hasAnyAddEditPermission: ComputedRef = computed(() => {\r\n if (jwtHelper.determineAuthorizationLevel(token.value) === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n\r\n const currentPerms: string[] = getLoggedInUsersHcaPermissions.value;\r\n const allEditUserPerms: HealthcareAcademyPermissions[] = [HealthcareAcademyPermissions.ManageAdmins, HealthcareAcademyPermissions.ManageStudents];\r\n\r\n if (Array.isArray(currentPerms)){\r\n return currentPerms.some(perm => allEditUserPerms.includes(perm as HealthcareAcademyPermissions))\r\n }\r\n\r\n return allEditUserPerms.includes(currentPerms);\r\n });\r\n const hasAddEditPermissionForStudentAndAdmin: ComputedRef = computed(() => {\r\n if (jwtHelper.determineAuthorizationLevel(token.value) === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n\r\n const currentPerms = getLoggedInUsersHcaPermissions.value;\r\n\r\n return currentPerms.includes(HealthcareAcademyPermissions.ManageStudents) && currentPerms.includes(HealthcareAcademyPermissions.ManageAdmins);\r\n });\r\n const hasCourseAssignmentPermission: ComputedRef = computed(() => {\r\n if (jwtHelper.determineAuthorizationLevel(token.value) === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n\r\n return getLoggedInUsersHcaPermissions.value.includes(HealthcareAcademyPermissions.AllowCourseAssign);\r\n });\r\n const hasAutomatedAssignmentPermission: ComputedRef = computed(() => {\r\n if (jwtHelper.determineAuthorizationLevel(token.value) === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n\r\n return getLoggedInUsersHcaPermissions.value.includes(HealthcareAcademyPermissions.ManageAutomatedAssignments);\r\n });\r\n const hasDropAssignmentPermission: ComputedRef = computed(() => {\r\n if (jwtHelper.determineAuthorizationLevel(token.value) === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n\r\n return getLoggedInUsersHcaPermissions.value.includes(HealthcareAcademyPermissions.DropCourse);\r\n });\r\n const hasAnyCompetencyEvaluatorPermission: ComputedRef = computed(() => {\r\n if (jwtHelper.determineAuthorizationLevel(token.value) === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n\r\n const currentPerms: string[] = getLoggedInUsersHcaPermissions.value;\r\n const competencyPermissions: HealthcareAcademyPermissions[] = [HealthcareAcademyPermissions.ManageCompetencyEvaluator, HealthcareAcademyPermissions.CreateCustomCompetencies];\r\n\r\n if (Array.isArray(currentPerms)){\r\n return currentPerms.some(perm => competencyPermissions.includes(perm as HealthcareAcademyPermissions))\r\n }\r\n\r\n return competencyPermissions.includes(currentPerms);\r\n });\r\n\r\n const hasCreateCustomCompetencyPermission: ComputedRef = computed(() => {\r\n if (jwtHelper.determineAuthorizationLevel(token.value) === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n\r\n return getLoggedInUsersHcaPermissions.value.includes(HealthcareAcademyPermissions.CreateCustomCompetencies);\r\n });\r\n\r\n async function login(username: string, password: string): Promise<{ syncStudentProfile: boolean, loginMeetsStandard: boolean } | void> {\r\n const actionName = 'login';\r\n mainStore.startTask(actionName);\r\n mainStore.clearMessages();\r\n\r\n try {\r\n const loginResponse: AxiosResponse = await http.post('api/auth/login', { username, password });\r\n\r\n if (loginResponse.data.errorMessage && !loginResponse.data.token)\r\n return mainStore.setErrorMsg(loginResponse.data.errorMessage);\r\n\r\n if (!loginResponse.data.token || !loginResponse.data.refreshToken || loginResponse.data.loginMeetsStandard === undefined)\r\n return mainStore.setErrorMsg('Unable to login. Please try again later.');\r\n\r\n saveTokenData(loginResponse.data.token, loginResponse.data.refreshToken);\r\n\r\n return {\r\n syncStudentProfile: !loginResponse.data.hasStudentProfile,\r\n loginMeetsStandard: loginResponse.data.loginMeetsStandard\r\n }\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Error occurred on Login', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function studentLogin(loginUserProfileId: number, username: string, password: string): Promise<{ loginMeetsStandard: boolean } | void> {\r\n const actionName: string = 'studentLogin';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse<{ loginMeetsStandard: boolean }> = await jwtInterceptor.post('api/auth/student-login', { userProfileId: loginUserProfileId, username, password });\r\n\r\n return { loginMeetsStandard: response.data.loginMeetsStandard };\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Sync profiles. Please notify your administrator', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updatePassword(userIdentityId: string, currentPassword: string, password: string, confirmPassword: string): Promise {\r\n const actionName: string = 'updatePassword';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const mdl = { identityId: userIdentityId, currentPassword, password, confirmPassword };\r\n\r\n await jwtInterceptor.put('api/account/user/update-password', mdl);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Update Password, Please Contact your Administrator', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n\r\n throw new Error(errorMsg.toString());\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function resetPassword(resetEmail: string, password: string, confirmPassword: string, token: string): Promise {\r\n const actionName: string = 'resetPassword';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const mdl = { email: resetEmail, password, confirmPassword, token };\r\n\r\n await http.post('api/auth/reset-password-url', mdl);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to reset your password. Please contact your Administrator', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function logout(): Promise {\r\n try {\r\n await jwtInterceptor.post('api/auth/logout');\r\n }\r\n finally {\r\n const assignmentStore = useAssignmentStore();\r\n const accountStore = useAccountStore();\r\n const studentAccountStore = useStudentAccountStore();\r\n\r\n $reset();\r\n assignmentStore.$reset();\r\n accountStore.$reset();\r\n studentAccountStore.$reset();\r\n }\r\n }\r\n\r\n async function samlLogout(): Promise {\r\n try {\r\n return await jwtInterceptor.post('api/auth/adfs/logout');\r\n }\r\n finally {\r\n const assignmentStore = useAssignmentStore();\r\n const accountStore = useAccountStore();\r\n const studentAccountStore = useStudentAccountStore();\r\n\r\n $reset();\r\n assignmentStore.$reset();\r\n accountStore.$reset();\r\n studentAccountStore.$reset();\r\n }\r\n }\r\n\r\n async function redirectAADLogin(msiToken: string): Promise {\r\n const actionName: string = 'redirectAADLogin';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const redirectLoginResponse: AxiosResponse = await http.post('api/auth/loginAAD', { msiToken });\r\n\r\n saveTokenData(redirectLoginResponse.data.accessToken, redirectLoginResponse.data.refreshToken);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('We were unable to log you in. Please try again later.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function isAuthenticated(): Promise {\r\n const actionName: string = 'isAuthenticated';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.get('api/auth/ping');\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Sorry, we were unable validate you being logged in.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function forgotPassword(forgotPasswordEmail: string): Promise {\r\n const actionName: string = 'forgotPassword';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const forgotPasswordResponse: AxiosResponse<{ success: boolean, message: string }> = await http.post('api/auth/forgot-password', { email: forgotPasswordEmail });\r\n\r\n if (!forgotPasswordResponse.data.success)\r\n return mainStore.setErrorMsg(forgotPasswordResponse.data.message);\r\n\r\n mainStore.setInfoMsg('A password reset email has been sent to ' + forgotPasswordEmail + ', it should arrive in the next few minutes. Please double-check your spam/junk folder if you do not see it.');\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to send you a forgotten password link. Please try again later.', error)\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function adminResetPassword(userId: number, password: string, confirmPassword: string): Promise {\r\n const actionName: string = 'adminResetPassword';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/auth/admin/reset-password', { userId, password, confirmPassword });\r\n\r\n mainStore.setSuccessMsg('Password Updated Successfully');\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to reset password', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateUserPermissions(permissions: UserPermissions): Promise {\r\n const actionName: string = 'updateUserPermissions';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/auth/update-permissions', permissions);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update User Permissions', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getUserPermissions(userId: number): Promise {\r\n const actionName: string = 'getUserPermissions';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getUserPermsResponse: AxiosResponse = await jwtInterceptor.get('api/auth/user-claims', { params: { userId }});\r\n\r\n return getUserPermsResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch User permissions', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateLoginInfo(loginUserProfileId: number, currentPassword: string, updateEmail: string, newPassword: string, confirmPassword: string): Promise {\r\n const actionName: string = 'updateLoginInfo';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const updateLoginInfoResponse: AxiosResponse = await jwtInterceptor.post('api/auth/update-login-info', {\r\n userProfileId: loginUserProfileId,\r\n currentPassword,\r\n email: updateEmail,\r\n newPassword,\r\n confirmPassword\r\n });\r\n\r\n saveTokenData(updateLoginInfoResponse.data.accessToken, updateLoginInfoResponse.data.refreshToken);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update login Info. Please try again later.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function promoteUserRole(promotionMdl: PromoteUserRole): Promise {\r\n const actionName: string = 'promoteUserRole';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/auth/promote-user-role', promotionMdl);\r\n\r\n mainStore.setSuccessMsg('User promoted successfully');\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to promote user. Please try again later.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function requestEmailConfirmation(email: string): Promise{\r\n const actionName: string = 'requestEmailConfirmation';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await http.post('api/auth/request-email-confirmation', { email } );\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to request email confirmation. Please contact your Administrator', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function confirmEmail(emailToConfirm: string, token: string): Promise {\r\n const actionName: string = 'confirmEmail';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await http.post('api/auth/confirm-email', { email: emailToConfirm, token })\r\n\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to confirm email address. Please contact your Administrator', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function doesLoginMeetRequirements(identityId: string): Promise<{ loginMeetsStandard: boolean } | void> {\r\n const actionName: string = 'doesLoginMeetRequirements';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const doesLoginMeetRequirementsResponse: AxiosResponse<{ loginMeetsStandard: boolean }> = await jwtInterceptor.get('api/auth/meet-login-standard', { params: { identityId }});\r\n\r\n return { loginMeetsStandard: doesLoginMeetRequirementsResponse.data.loginMeetsStandard };\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to validate login standard', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n function saveTokenData(newAccessToken: string, newRefreshToken: string): void {\r\n token.value = newAccessToken;\r\n refreshToken.value = newRefreshToken;\r\n }\r\n\r\n function adminChoseToSkipSyncProfile(): void {\r\n skipStudentSync.value.set(getUsername.value, true);\r\n }\r\n\r\n function $reset(): void {\r\n token.value = '';\r\n refreshToken.value = '';\r\n }\r\n\r\n return {\r\n isAdmin,\r\n isActivelyLoggedIn,\r\n getIdentityId,\r\n getUserProfileId,\r\n getStudentProfileId,\r\n getUserToken,\r\n getRefreshToken,\r\n getFirstName,\r\n getLastName,\r\n getUsername,\r\n getEmail,\r\n hasAdminChosenToSkipSyncProfile,\r\n getAuthorizationLevel,\r\n hasImportPermission,\r\n hasAnyAddEditPermission,\r\n hasAddEditPermissionForStudentAndAdmin,\r\n hasCourseAssignmentPermission,\r\n hasAutomatedAssignmentPermission,\r\n hasDropAssignmentPermission,\r\n getLoggedInUsersHcaPermissions,\r\n hasAnyCompetencyEvaluatorPermission,\r\n hasCreateCustomCompetencyPermission,\r\n\r\n login,\r\n studentLogin,\r\n updatePassword,\r\n resetPassword,\r\n logout,\r\n samlLogout,\r\n redirectAADLogin,\r\n isAuthenticated,\r\n forgotPassword,\r\n adminResetPassword,\r\n updateUserPermissions,\r\n getUserPermissions,\r\n updateLoginInfo,\r\n promoteUserRole,\r\n requestEmailConfirmation,\r\n confirmEmail,\r\n doesLoginMeetRequirements,\r\n saveTokenData,\r\n adminChoseToSkipSyncProfile,\r\n $reset\r\n }\r\n});\r\n\r\nexport default useAuthStore;\r\n","import axios, {AxiosError, AxiosResponse } from 'axios';\r\nimport { defineStore } from 'pinia';\r\nimport useMainStore from '@/store/main.store';\r\nimport { formatServerErrorResponse } from '@/helpers/jwtHelper';\r\nimport { useLocalStorage } from '@vueuse/core';\r\nimport {computed, ComputedRef, Ref} from 'vue';\r\n\r\nexport type Config = {\r\n azureAd: OAuthConfigData;\r\n appInsights: string;\r\n};\r\n\r\nexport type OAuthConfigData = {\r\n clientId: string;\r\n tenantAuthority: string;\r\n};\r\n\r\nexport interface IConfigStore {\r\n azureAd: ComputedRef;\r\n appInsights: ComputedRef;\r\n initialize(): Promise;\r\n}\r\n\r\nconst http = axios.create({ baseURL: process.env.VUE_APP_APIBASEURL ?? window.location.origin });\r\n\r\nconst useConfigStore = defineStore('configStore', (): IConfigStore => {\r\n const mainStore = useMainStore();\r\n\r\n const configState: Ref = useLocalStorage('configStore_state', {} as Config);\r\n\r\n const azureAd: ComputedRef = computed(() => configState.value.azureAd);\r\n const appInsights: ComputedRef = computed(() => configState.value.appInsights);\r\n\r\n async function initialize(): Promise {\r\n const actionName: string = 'initialize';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await http.get('api/config/client-app');\r\n\r\n configState.value = response.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('We are experiencing issues. Please try again shortly.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n return {\r\n azureAd,\r\n appInsights,\r\n initialize,\r\n }\r\n});\r\n\r\nexport default useConfigStore;\r\n","import { defineStore } from 'pinia';\r\nimport { AxiosError, AxiosResponse } from 'axios';\r\nimport useMainStore from '@/store/main.store';\r\nimport jwtInterceptor from '@/helpers/http';\r\nimport ILesson from '@/models/courses/Lesson/ILesson';\r\nimport ICourse from '@/models/courses/Course/ICourse';\r\nimport IGridFilter from '@/models/search/IGridFilter';\r\nimport ICoursePrerequisiteLogic from '@/models/courses/Prerequisite/ICoursePrerequisiteLogic';\r\nimport { LogicalOperator } from '@/models/courses/Prerequisite/LogicalOperator';\r\nimport ITrainingProvider from '@/models/courses/ITrainingProvider';\r\nimport ILessonSearchResult from '@/models/search/ILessonSearchResult';\r\nimport ITrainingProviderSearchResult from '@/models/search/ITrainingProviderSearchResult';\r\nimport ILessonOther from '@/models/courses/Lesson/ILessonOther';\r\nimport ILessonEntry from '@/models/courses/Lesson/ILessonEntry';\r\nimport ILessonGeneral from '@/models/courses/Lesson/ILessonGeneral';\r\nimport LessonInterface from '@/models/courses/Lesson/LessonInterface';\r\nimport IMenuStyle from '@/models/courses/IMenuStyle';\r\nimport CourseGeneral from '@/models/courses/Course/CourseGeneral';\r\nimport ICourseInterface from '@/models/courses/Course/ICourseInterface';\r\nimport ICourseOther from '@/models/courses/Course/ICourseOther';\r\nimport IModifyRestrictedCourse from '@/models/courses/Course/IModifyRestrictedCourse';\r\nimport ICourseAccessSearchResult from '@/models/search/ICourseAccessSearchResult';\r\nimport ICourseGroupAccess from '@/models/courses/Course/ICourseGroupAccess';\r\nimport ISimpleCourse from '@/models/courses/Course/ISimpleCourse';\r\nimport { formatServerErrorResponse } from '@/helpers/jwtHelper';\r\nimport { computed, ComputedRef, Ref, ref } from 'vue';\r\nimport ICourseMenuContent from '@/models/courses/Course/ICourseMenuContent';\r\nimport CourseSearchResult from '@/models/search/courses/CourseSearchResult';\r\nimport LessonObjective from '@/models/student/evaluation/LessonObjective';\r\n\r\nexport interface ICourseStore {\r\n getActiveLesson: ComputedRef,\r\n getActiveLessonId: ComputedRef,\r\n getActiveLessonName: ComputedRef,\r\n getActiveCourse: ComputedRef,\r\n getActiveCourseId: ComputedRef,\r\n getActiveCourseName: ComputedRef,\r\n\r\n getCourse(courseId: number): Promise,\r\n searchCourses(filter: IGridFilter) : Promise,\r\n updateCourseGeneral(course: CourseGeneral): Promise,\r\n updateCourseInterface(course: ICourseInterface): Promise,\r\n updateCourseOther(course: ICourseOther): Promise,\r\n getMenuContent(courseId: number): Promise,\r\n updateCourseContent(updateMdl: ICourseMenuContent): Promise,\r\n updateCourseGroupAccess(course: ICourseGroupAccess): Promise,\r\n searchOrgForCourseAccess(filter: IGridFilter): Promise,\r\n revokeCourseAccess(editAccess: IModifyRestrictedCourse): Promise,\r\n enableCourseAccess(editAccess: IModifyRestrictedCourse): Promise,\r\n getCoursePreRequisites(courseId: number): Promise,\r\n updatePrerequisites(prereqLogic: ICoursePrerequisiteLogic): Promise,\r\n updateGroupLogicalOperator(courseId: number, newGroupLogicalOperator: LogicalOperator): Promise,\r\n getLesson(lessonId: number): Promise,\r\n getLessonObjectives(lessonId: number): Promise,\r\n searchLessons(filter: IGridFilter): Promise,\r\n updateLessonGeneralInfo(lesson: ILessonGeneral): Promise,\r\n updateLessonEntry(lesson: ILessonEntry): Promise,\r\n updateLessonInterface(lesson: LessonInterface): Promise,\r\n updateLessonOther(lesson: ILessonOther): Promise,\r\n getAllMenuStyles() : Promise,\r\n getMenuStyleById(menuStyleId: number) : Promise,\r\n updateMenuStyle(menuStyle: IMenuStyle): Promise,\r\n getAllTrainingProviders() : Promise,\r\n getTrainingProvider(trainingProviderId: number): Promise,\r\n searchTrainingProvider(filter: IGridFilter): Promise,\r\n updateTrainingProvider(trainingProvider: ITrainingProvider): Promise,\r\n getAvailableCourses(facilityId: number, departmentId: number | undefined, studentId: number | undefined): Promise,\r\n clearActiveCourse(): void,\r\n clearActiveLesson(): void\r\n}\r\n\r\nconst useCourseStore = defineStore('courseStore', (): ICourseStore => {\r\n const mainStore = useMainStore();\r\n\r\n const activeLesson: Ref = ref();\r\n const activeCourse: Ref = ref();\r\n\r\n const getActiveLesson: ComputedRef = computed(() => activeLesson.value);\r\n const getActiveLessonId: ComputedRef = computed(() => activeLesson.value?.lessonId);\r\n const getActiveLessonName: ComputedRef = computed(() => activeLesson.value?.name);\r\n const getActiveCourse: ComputedRef = computed(() => activeCourse.value);\r\n const getActiveCourseId: ComputedRef = computed(() => activeCourse.value?.courseId);\r\n const getActiveCourseName: ComputedRef = computed(() => activeCourse.value?.name);\r\n\r\n\r\n async function getCourse(courseId: number): Promise {\r\n const actionName = 'getCourse';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getCourseResponse: AxiosResponse = await jwtInterceptor.get('api/course', { params: { courseId } });\r\n\r\n activeCourse.value = getCourseResponse.data;\r\n return getCourseResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Course. Please try again later.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchCourses(filter: IGridFilter) : Promise {\r\n const actionName = 'searchCourses';\r\n mainStore.startTask(actionName);\r\n\r\n const filterJson = JSON.stringify(filter);\r\n\r\n try {\r\n const searchCoursesResponse: AxiosResponse = await jwtInterceptor.get('api/course/search', { params: { filter: btoa(filterJson) }} );\r\n\r\n return searchCoursesResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to search Courses.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateCourseGeneral(course: CourseGeneral): Promise {\r\n const actionName = 'updateCourseGeneral';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/course/update-general', course);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course General Info');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Course General Info', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateCourseInterface(course: ICourseInterface): Promise {\r\n const actionName = 'updateCourseInterface';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/course/update-interface', course);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course Interface');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Course Interface', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getMenuContent(courseId: number): Promise {\r\n const actionName = 'getMenuContent';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getMenuContentResponse: AxiosResponse = await jwtInterceptor.get('api/course/menu-content', { params: { courseId } });\r\n\r\n return getMenuContentResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch course menu content', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateCourseContent(updateMdl: ICourseMenuContent): Promise {\r\n const actionName = 'updateCourseContent';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/course/update-content', updateMdl);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course Content');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Course Content', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateCourseOther(course: ICourseOther): Promise {\r\n const actionName = 'updateCourseOther';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/course/update-other', course);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course Other');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Course Other', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateCourseGroupAccess(course: ICourseGroupAccess): Promise {\r\n const actionName = 'updateCourseGroupAccess';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/course/update-group-access', course);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course Access');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Course Access', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchOrgForCourseAccess(filter: IGridFilter): Promise {\r\n const actionName = 'searchOrgForCourseAccess';\r\n mainStore.startTask(actionName);\r\n\r\n const filterJson = JSON.stringify(filter);\r\n\r\n try {\r\n const searchOrgForCourseAccessResponse: AxiosResponse = await jwtInterceptor.get('api/course/search-org-access', { params: { filter: btoa(filterJson) }} );\r\n\r\n return searchOrgForCourseAccessResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Search Course Organization Access', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function revokeCourseAccess(editAccess: IModifyRestrictedCourse): Promise {\r\n const actionName = 'revokeCourseAccess';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/course/disable-access', editAccess);\r\n\r\n mainStore.setInfoMsg('Successfully removed access to course');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to revoke course access.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function enableCourseAccess(editAccess: IModifyRestrictedCourse): Promise {\r\n const actionName = 'enableCourseAccess';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/course/enable-access', editAccess);\r\n\r\n mainStore.setInfoMsg('Successfully enabled access to course');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to grant course access.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getCoursePreRequisites(courseId: number): Promise {\r\n const actionName = 'getCoursePreRequisites';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getCoursePreRequisitesResponse: AxiosResponse = await jwtInterceptor.get('api/CoursePrerequisite', { params: { courseId } });\r\n\r\n return getCoursePreRequisitesResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch course prerequisites', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updatePrerequisites(prereqLogic: ICoursePrerequisiteLogic): Promise {\r\n const actionName = 'updatePrerequisites';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/coursePrerequisite/update', prereqLogic);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course Prerequisites');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update course prerequisites', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateGroupLogicalOperator(courseId: number, newGroupLogicalOperator: LogicalOperator): Promise {\r\n const actionName = 'updateGroupLogicalOperator';\r\n mainStore.startTask(actionName);\r\n\r\n const mdl = {\r\n courseId,\r\n operator: newGroupLogicalOperator\r\n };\r\n\r\n try {\r\n await jwtInterceptor.post('api/coursePrerequisite/update-group-operator', mdl);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course Prerequisites');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update course prerequisite group operator (AND, OR, Min of)', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getLesson(lessonId: number): Promise {\r\n const actionName = 'getLesson';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getLessonResponse: AxiosResponse = await jwtInterceptor.get('api/lesson', {params: { id: lessonId }});\r\n\r\n activeLesson.value = getLessonResponse.data;\r\n return getLessonResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Lesson', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getLessonObjectives(lessonId: number): Promise {\r\n const actionName = 'getLessonObjectives';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getLessonObjectivesResponse: AxiosResponse = await jwtInterceptor.get('api/lesson/lesson-objectives', {params: { lessonId }});\r\n\r\n return getLessonObjectivesResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch lesson objectives', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchLessons(filter: IGridFilter): Promise {\r\n const actionName = 'searchLessons';\r\n mainStore.startTask(actionName);\r\n\r\n const filterJson = JSON.stringify(filter);\r\n\r\n try {\r\n const searchLessonsResponse: AxiosResponse = await jwtInterceptor.get('api/lesson/search', { params: { filter: btoa(filterJson) }} );\r\n\r\n return searchLessonsResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to return Lesson search results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateLessonGeneralInfo(lesson: ILessonGeneral): Promise {\r\n const actionName = 'updateLessonGeneralInfo';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/lesson/update-general', lesson);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Lesson General Info');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Lesson General Info', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateLessonEntry(lesson: ILessonEntry): Promise {\r\n const actionName = 'updateLessonEntry';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/lesson/update-entry', lesson);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Lesson Entry');\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Lesson Entry', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateLessonInterface(lesson: LessonInterface): Promise {\r\n const actionName = 'updateLessonInterface';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/lesson/update-interface', lesson);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Lesson Interface');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Lesson Interface', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateLessonOther(lesson: ILessonOther): Promise {\r\n const actionName = 'updateLessonOther';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/lesson/update-other', lesson);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Lesson Other');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Lesson Other', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAllMenuStyles() : Promise {\r\n const actionName = 'getAllMenuStyles';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getAllMenuStylesResponse: AxiosResponse = await jwtInterceptor.get('api/MenuStyle/get-all');\r\n\r\n return getAllMenuStylesResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch all Menu Styles', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getMenuStyleById(menuStyleId: number) : Promise {\r\n const actionName = 'getMenuStyleById';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getMenuStyleByIdResponse: AxiosResponse = await jwtInterceptor.get('api/MenuStyle', { params: { id: menuStyleId }});\r\n\r\n return getMenuStyleByIdResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Menu Style', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateMenuStyle(menuStyle: IMenuStyle): Promise {\r\n const actionName = 'updateMenuStyle';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/menuStyle/update', menuStyle);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Menu Style');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to get Menu Style', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAllTrainingProviders() : Promise {\r\n const actionName = 'getAllTrainingProviders';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getAllTrainingProvidersResponse: AxiosResponse = await jwtInterceptor.get('api/trainingProvider/training-providers');\r\n\r\n return getAllTrainingProvidersResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch all Training Providers', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getTrainingProvider(trainingProviderId: number): Promise {\r\n const actionName = 'getTrainingProvider';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getTrainingProviderResponse: AxiosResponse = await jwtInterceptor.get('api/trainingProvider', {params: { id: trainingProviderId }});\r\n\r\n return getTrainingProviderResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Training Provider', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchTrainingProvider(filter: IGridFilter): Promise {\r\n const actionName = 'searchTrainingProvider';\r\n mainStore.startTask(actionName);\r\n\r\n const filterJson = JSON.stringify(filter);\r\n\r\n try {\r\n const searchTrainingProviderResponse: AxiosResponse = await jwtInterceptor.get('api/trainingProvider/search', { params: { filter: btoa(filterJson) }} );\r\n\r\n return searchTrainingProviderResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to return Training Provider Search Results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateTrainingProvider(trainingProvider: ITrainingProvider): Promise {\r\n const actionName = 'updateTrainingProvider';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/trainingProvider/update', trainingProvider);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Training Provider');\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Training Provider', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAvailableCourses(facilityId: number, departmentId: number | undefined, studentId: number | undefined): Promise {\r\n const actionName = 'getAvailableCourses';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getAvailableCoursesResponse: AxiosResponse = await jwtInterceptor.get('api/course/available-courses', {\r\n params: {\r\n facilityId,\r\n departmentId,\r\n studentId\r\n }\r\n });\r\n\r\n return getAvailableCoursesResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch available Courses', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n function clearActiveCourse(): void {\r\n activeCourse.value = undefined;\r\n }\r\n\r\n function clearActiveLesson(): void {\r\n activeLesson.value = undefined;\r\n }\r\n\r\n return {\r\n getActiveLesson,\r\n getActiveLessonId,\r\n getActiveLessonName,\r\n getActiveCourse,\r\n getActiveCourseId,\r\n getActiveCourseName,\r\n\r\n getCourse,\r\n searchCourses,\r\n updateCourseGeneral,\r\n updateCourseInterface,\r\n updateCourseOther,\r\n getMenuContent,\r\n updateCourseContent,\r\n updateCourseGroupAccess,\r\n searchOrgForCourseAccess,\r\n revokeCourseAccess,\r\n enableCourseAccess,\r\n getCoursePreRequisites,\r\n updatePrerequisites,\r\n updateGroupLogicalOperator,\r\n getLesson,\r\n getLessonObjectives,\r\n searchLessons,\r\n updateLessonGeneralInfo,\r\n updateLessonEntry,\r\n updateLessonInterface,\r\n updateLessonOther,\r\n getAllMenuStyles,\r\n getMenuStyleById,\r\n updateMenuStyle,\r\n getAllTrainingProviders,\r\n getTrainingProvider,\r\n searchTrainingProvider,\r\n updateTrainingProvider,\r\n getAvailableCourses,\r\n clearActiveCourse,\r\n clearActiveLesson\r\n }\r\n})\r\n\r\nexport default useCourseStore;\r\n","import {defineStore} from 'pinia'\r\nimport {AxiosError, AxiosResponse} from 'axios';\r\nimport ISimpleUser from '@/models/user/ISimpleUser'\r\nimport useMainStore from './main.store';\r\nimport jwtInterceptor from '@/helpers/http';\r\nimport IStudentAssignment from '@/models/courses/StudentAssignment/IStudentAssignment';\r\nimport UpdateCourseAssignment from '@/models/courses/StudentAssignment/UpdateCourseAssignment';\r\nimport ILessonResult from '@/models/courses/StudentAssignment/ILessonResult';\r\nimport IUpdateLessonResult from '@/models/courses/StudentAssignment/IUpdateLessonResult';\r\nimport ISimpleCourse from '@/models/courses/Course/ISimpleCourse';\r\nimport IAddStudentAssignment from '@/models/courses/StudentAssignment/IAddStudentAssignment';\r\nimport IOrganizationAssignment from '@/models/courses/StudentAssignment/IOrganizationAssignment';\r\nimport IAssignmentPreferences from '@/models/courses/StudentAssignment/IAssignmentPreferences';\r\nimport IUpdateAssignmentPreferences from '@/models/courses/StudentAssignment/IUpdateAssignmentPreferences';\r\nimport INewAssignmentPreferences from '@/models/courses/StudentAssignment/INewAssignmentPreferences';\r\nimport IGridFilter from '@/models/search/IGridFilter';\r\nimport IAddNewHireAssignment from '@/models/courses/StudentAssignment/NewHire/IAddNewHireAssignment';\r\nimport INewHireCourseAssignment from '@/models/courses/StudentAssignment/NewHire/INewHireCourseAssignment';\r\nimport IUpdateNewHireAssignmentOrganization from '@/models/courses/StudentAssignment/NewHire/IUpdateNewHireAssignmentOrganization';\r\nimport IUpdateNewHireAssignmentDetails from '@/models/courses/StudentAssignment/NewHire/IUpdateNewHireAssignmentDetails';\r\nimport IAnnualAssignmentSearchResult from '@/models/search/Assignments/IAnnualAssignmentSearchResult';\r\nimport IAnnualCourseAssignment from '@/models/courses/StudentAssignment/Annual/IAnnualCourseAssignment';\r\nimport IUpdateAnnualAssignmentOrganization from '@/models/courses/StudentAssignment/Annual/IUpdateAnnualAssignmentOrganization';\r\nimport IUpdateAnnualAssignmentDetails from '@/models/courses/StudentAssignment/Annual/IUpdateAnnualAssignmentDetails';\r\nimport IAddAnnualAssignment from '@/models/courses/StudentAssignment/Annual/IAddAnnualAssignment';\r\nimport IRollingAssignmentSearchResult from '@/models/search/Assignments/IRollingAssignmentSearchResult';\r\nimport IRollingCourseAssignment from '@/models/courses/StudentAssignment/Rolling/IRollingCourseAssignment';\r\nimport INewHireAssignmentSearchResult from '@/models/search/Assignments/INewHireAssignmentSearchResult';\r\nimport IUpdateRollingAssignmentOrganization from '@/models/courses/StudentAssignment/Rolling/IUpdateRollingAssignmentOrganization';\r\nimport IUpdateRollingAssignmentCourse from '@/models/courses/StudentAssignment/Rolling/IUpdateRollingAssignmentCourse';\r\nimport IUpdateRollingAssignmentDetails from '@/models/courses/StudentAssignment/Rolling/IUpdateRollingAssignmentDetails';\r\nimport IAddRollingAssignment from '@/models/courses/StudentAssignment/Rolling/IAddRollingAssignment';\r\nimport IUpdateNewHireAssignmentCourse from '@/models/courses/StudentAssignment/NewHire/IUpdateNewHireAssignmentCourse';\r\nimport IUpdateAnnualAssignmentCourse from '@/models/courses/StudentAssignment/Annual/IUpdateAnnualAssignmentCourse';\r\nimport ISimpleLessonAssignment from '@/models/courses/Lesson/ISimpleLessonAssignment';\r\nimport {formatServerErrorResponse} from '@/helpers/jwtHelper';\r\nimport {computed, ComputedRef, Ref} from 'vue';\r\nimport IAssignmentForStudentView from '@/models/courses/StudentAssignment/IAssignmentForStudentView';\r\nimport {useSessionStorage} from '@vueuse/core';\r\nimport SearchCourse from '@/models/search/courses/SearchCourse';\r\nimport CourseAssignmentState from '@/models/courses/StudentAssignment/CourseAssignmentState';\r\nimport {AssignmentMethod} from '@/models/courses/StudentAssignment/AssignmentMethod';\r\nimport StudentAssignmentMethod from '@/models/courses/StudentAssignment/StudentAssignmentMethod';\r\nimport {getOrganizationLevelName} from '@/helpers/organizationHelper';\r\nimport {OrganizationLevel} from '@/models/user/OrganizationLevel/OrganizationLevel';\r\nimport DropStudentAssignment from '@/models/courses/StudentAssignment/DropAssignment/DropStudentAssignment';\r\nimport DropOrganizationAssignment from '@/models/courses/StudentAssignment/DropAssignment/DropOrganizationAssignment';\r\nimport DropOrganizationWideAssignment from '@/models/courses/StudentAssignment/DropAssignment/DropOrganizationWideAssignment';\r\n\r\nexport interface ICourseAssignmentStore {\r\n displayNamesOfAssignedStudents: ComputedRef,\r\n displayNamesOfAssignedCourses: ComputedRef,\r\n getAllCourses: ComputedRef,\r\n getEnableDate: ComputedRef,\r\n getTargetDate: ComputedRef,\r\n getDropDate: ComputedRef,\r\n getCourseAssignmentState: ComputedRef,\r\n getSelectedOrganizationDisplayString: ComputedRef,\r\n\r\n getStudentDisplayNameById(userId: string): string,\r\n getCourseNameById(courseId: number): string,\r\n setIndividualStudents(users: ISimpleUser[]): void,\r\n setOrganizationStudents(orgAssignment: StudentAssignmentMethod): void,\r\n setCourses(courses: SearchCourse[]): void,\r\n setAssignedDates(enableCourse: Date | undefined, target: Date | undefined, dropCourse: Date | undefined): void,\r\n removeStudent(user: ISimpleUser): void,\r\n removeOrganizationAssignment(): void,\r\n removeCourse(course: ISimpleCourse): void,\r\n addStudentAssignments(studentAssignments: IAddStudentAssignment[]): Promise,\r\n addAssignmentToOrganization(organizationAssignments: IOrganizationAssignment[]): Promise,\r\n getAssignmentsForStudent(userProfileId: number): Promise,\r\n getAssignmentsForLoggedInStudent(): Promise,\r\n getCourseAssignment(studentId: number, courseId: number): Promise,\r\n getLessonResult(studentId: number, courseId: number, lessonId: number): Promise,\r\n getLessonAssignments(studentId: number, courseId: number): Promise,\r\n updateCourseAssignment(courseAssignment: UpdateCourseAssignment): Promise,\r\n updateLessonResult(lessonResult: IUpdateLessonResult): Promise,\r\n getCourseDeleteStatus(studentId: number, courseId: number): Promise,\r\n dropAssignment(studentId: number, courseId: number): Promise,\r\n deleteAssignment(studentId: number, courseId: number): Promise,\r\n validateCourseAssignments(studentAssignments: IAddStudentAssignment[]): Promise\r\n validateOrganizationAssignments(organizationAssignments: IOrganizationAssignment[]): Promise\r\n getAssignedCoursesForStudents(studentIds: string[]): Promise,\r\n getAssignedCoursesForOrganization(organizationLevel: OrganizationLevel, organizationId: number): Promise,\r\n getAssignedCoursesOrganizationWide(organizationLevel: OrganizationLevel, organizationId: number, orgWideName: string): Promise,\r\n getStudentAssignmentDropCount(studentDropMdl: DropStudentAssignment): Promise,\r\n getOrganizationAssignmentDropCount(organizationDropMdl: DropOrganizationAssignment): Promise,\r\n getOrganizationWideAssignmentDropCount(organizationWideDropMdl: DropOrganizationWideAssignment): Promise,\r\n dropAssignmentForIndividuals(studentDropMdl: DropStudentAssignment): Promise,\r\n dropAssignmentForOrganization(organizationDropMdl: DropOrganizationAssignment): Promise,\r\n dropAssignmentOrganizationWide(organizationWideDropMdl: DropOrganizationWideAssignment): Promise,\r\n getAssignmentPreferences(divisionId: number): Promise,\r\n updateAssignmentPreferences(assignmentPreferences: IUpdateAssignmentPreferences): Promise,\r\n addAssignmentPreferences(assignmentPreferences: INewAssignmentPreferences): Promise,\r\n searchNewHireAssignments(filter: IGridFilter): Promise,\r\n addNewHireAssignment(newHireAssignment: IAddNewHireAssignment): Promise,\r\n getNewHireAssignment(newHireAssignmentId: number): Promise,\r\n deleteNewHireAssignment(newHireAssignmentId: number): Promise,\r\n updateNewHireAssignmentOrganizations(updateNewHireOrgs: IUpdateNewHireAssignmentOrganization): Promise,\r\n updateNewHireAssignmentCourse(updateCourse: IUpdateNewHireAssignmentCourse): Promise,\r\n updateNewHireCourseAssignmentDetails(updateDetails: IUpdateNewHireAssignmentDetails): Promise,\r\n searchAnnualAssignments(filter: IGridFilter): Promise,\r\n getAnnualAssignment(annualAssignmentId: number): Promise,\r\n deleteAnnualAssignment(annualAssignmentId: number): Promise,\r\n updateAnnualAssignmentOrganizations(updateAnnualOrgs: IUpdateAnnualAssignmentOrganization): Promise,\r\n updateAnnualAssignmentCourse(updateCourse: IUpdateAnnualAssignmentCourse): Promise,\r\n updateAnnualCourseAssignmentDetails(updateDetails: IUpdateAnnualAssignmentDetails): Promise,\r\n addAnnualAssignment(annualAssignment: IAddAnnualAssignment): Promise,\r\n searchRollingAssignments(filter: IGridFilter): Promise,\r\n getRollingAssignment(rollingAssignmentId: number): Promise,\r\n deleteRollingAssignment(rollingAssignmentId: number): Promise,\r\n updateRollingAssignmentOrganizations(updateRollingOrgs: IUpdateRollingAssignmentOrganization): Promise,\r\n updateRollingAssignmentCourse(updateCourse: IUpdateRollingAssignmentCourse): Promise,\r\n updateRollingCourseAssignmentDetails(updateDetails: IUpdateRollingAssignmentDetails): Promise,\r\n addRollingAssignment(rollingAssignment: IAddRollingAssignment): Promise,\r\n $reset(): void\r\n}\r\n\r\nconst useCourseAssignmentStore = defineStore('courseAssignmentStore', (): ICourseAssignmentStore => {\r\n const mainStore = useMainStore();\r\n\r\n const assignmentState: Ref = useSessionStorage('courseAssignmentStore_assignmentState', { selectedCourses: [] });\r\n\r\n const getCourseAssignmentState: ComputedRef = computed(() => assignmentState.value);\r\n const getAllCourses: ComputedRef = computed(() => assignmentState.value.selectedCourses);\r\n const getEnableDate: ComputedRef = computed(() => assignmentState.value?.enableCourseOnDate);\r\n const getTargetDate: ComputedRef = computed(() => assignmentState.value?.targetDate);\r\n const getDropDate: ComputedRef = computed(() => assignmentState.value?.dropCourseDate);\r\n\r\n const displayNamesOfAssignedStudents: ComputedRef = computed(() => {\r\n if (assignmentState.value.studentAssignment?.assignmentMethod !== AssignmentMethod.Individual)\r\n return 'No Students Selected';\r\n\r\n if (!assignmentState.value.studentAssignment.students?.length)\r\n return 'No Students Selected';\r\n\r\n return assignmentState.value.studentAssignment.students.map(u => `${u.firstName} ${u.lastName}`).join(', ');\r\n });\r\n\r\n const displayNamesOfAssignedCourses: ComputedRef = computed(() => {\r\n if (!assignmentState.value?.studentAssignment?.students)\r\n return 'No Students Selected';\r\n\r\n return assignmentState.value.selectedCourses.map(c => c.name).join(', ');\r\n });\r\n\r\n const getSelectedOrganizationDisplayString: ComputedRef = computed(() => {\r\n const studentAssignmentState = assignmentState.value.studentAssignment;\r\n\r\n if (!studentAssignmentState || studentAssignmentState.assignmentMethod === AssignmentMethod.Individual)\r\n return undefined;\r\n\r\n if (studentAssignmentState?.assignmentMethod === AssignmentMethod.OrganizationWide)\r\n return `All ${studentAssignmentState.organizationWideName} Departments in ${studentAssignmentState.organizationName} ${getOrganizationLevelName(studentAssignmentState.organizationLevel)}`;\r\n\r\n if (studentAssignmentState?.assignmentMethod === AssignmentMethod.Organization)\r\n return `${studentAssignmentState.organizationName} ${getOrganizationLevelName(studentAssignmentState.organizationLevel)}`;\r\n\r\n return undefined;\r\n });\r\n\r\n function getStudentDisplayNameById(identityId: string): string {\r\n if (assignmentState.value.studentAssignment?.assignmentMethod !== AssignmentMethod.Individual)\r\n return 'No Students Selected';\r\n\r\n if (!assignmentState.value?.studentAssignment.students)\r\n return 'No Students Selected';\r\n\r\n return assignmentState.value?.studentAssignment.students\r\n .filter(student => student.userId === identityId)\r\n .map(s => `${s.firstName} ${s.lastName}`)[0]\r\n }\r\n\r\n function getCourseNameById(courseId: number): string {\r\n if (!assignmentState.value || !assignmentState.value.selectedCourses.length)\r\n return 'No Courses Selected';\r\n\r\n const course = assignmentState.value\r\n .selectedCourses\r\n .find(course => course.courseId === courseId);\r\n\r\n return course?.name || 'Course Not Found';\r\n }\r\n\r\n function setIndividualStudents(users: ISimpleUser[]): void {\r\n assignmentState.value.studentAssignment = {\r\n assignmentMethod: AssignmentMethod.Individual,\r\n students: users\r\n };\r\n }\r\n\r\n function setOrganizationStudents(orgAssignment: StudentAssignmentMethod): void {\r\n assignmentState.value.studentAssignment = orgAssignment;\r\n }\r\n\r\n function setCourses(courses: SearchCourse[]): void {\r\n if (!assignmentState.value)\r\n return mainStore.setErrorMsg('Unable to set courses');\r\n\r\n assignmentState.value.selectedCourses = courses;\r\n }\r\n\r\n function setAssignedDates(enableCourse: Date | undefined, target: Date | undefined, dropCourse: Date | undefined): void {\r\n if (!assignmentState.value)\r\n return mainStore.setErrorMsg('Unable to set dates');\r\n\r\n assignmentState.value.enableCourseOnDate = enableCourse;\r\n assignmentState.value.targetDate = target;\r\n assignmentState.value.dropCourseDate = dropCourse;\r\n }\r\n\r\n function removeStudent(user: ISimpleUser): void {\r\n const removeIndex = assignmentState.value.studentAssignment?.students?.findIndex?.(s => s.userId === user.userId);\r\n\r\n if (removeIndex === undefined || removeIndex === -1)\r\n return mainStore.setErrorMsg('unable to find user to remove');\r\n\r\n assignmentState.value.studentAssignment?.students?.splice?.(removeIndex, 1);\r\n }\r\n\r\n function removeOrganizationAssignment(): void {\r\n assignmentState.value.studentAssignment = undefined;\r\n }\r\n\r\n function removeCourse(course: ISimpleCourse): void {\r\n if (!assignmentState.value)\r\n return mainStore.setErrorMsg('Unable to remove course');\r\n\r\n const removeIndex = assignmentState.value.selectedCourses.findIndex(c => c.courseId === course.courseId);\r\n\r\n if (removeIndex === -1) {\r\n return mainStore.setErrorMsg('unable to find course to remove');\r\n }\r\n\r\n assignmentState.value.selectedCourses.splice(removeIndex, 1);\r\n }\r\n\r\n async function addStudentAssignments(studentAssignments: IAddStudentAssignment[]): Promise {\r\n const actionName = 'addStudentAssignments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/bulk-add', studentAssignments);\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to add Student Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function addAssignmentToOrganization(organizationAssignments: IOrganizationAssignment[]): Promise {\r\n const actionName = 'addAssignmentToOrganization';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/assign-to-org', organizationAssignments);\r\n\r\n mainStore.setInfoMsg('Successfully Added Student Assignments')\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Assign Student Assignment to Organization', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAssignmentsForStudent(userProfileId: number): Promise {\r\n const actionName = 'getAssignmentsForStudent';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getCourseResponse: AxiosResponse = await jwtInterceptor.get('api/studentAssignment', { params: { id: userProfileId } });\r\n\r\n return getCourseResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Assignments for Student', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAssignmentsForLoggedInStudent(): Promise {\r\n const actionName = 'getAssignmentsForLoggedInStudent';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getCourseResponse: AxiosResponse = await jwtInterceptor.get('api/studentAssignment/student-courses');\r\n\r\n return getCourseResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Assignments for Student', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getCourseAssignment(studentId: number, courseId: number): Promise {\r\n const actionName = 'getCourseAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/studentAssignment/course-assignment', { params: { studentId, courseId } });\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Course Assignments', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getLessonResult(studentId: number, courseId: number, lessonId: number): Promise {\r\n const actionName = 'getLessonResult';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/studentAssignment/lesson-result', { params: { studentId, courseId, lessonId } });\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Lesson Assignment results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getLessonAssignments(studentId: number, courseId: number): Promise {\r\n const actionName = 'getCourseLessons';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/studentAssignment/course-lessons', { params: { studentId, courseId } });\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Lesson Assignments', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateCourseAssignment(courseAssignment: UpdateCourseAssignment): Promise {\r\n const actionName = 'updateCourseAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/course-update', courseAssignment);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Course Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateLessonResult(lessonResult: IUpdateLessonResult): Promise {\r\n const actionName = 'updateLessonResult';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/lesson-result-update', lessonResult);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Lesson Result');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Lesson Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getCourseDeleteStatus(studentId: number, courseId: number): Promise {\r\n const actionName = 'getCourseDeleteStatus';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/studentAssignment/delete-available', { params: { studentId, courseId } });\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to check if delete is available for this Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function dropAssignment(studentId: number, courseId: number): Promise {\r\n const actionName = 'dropAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const mdl = {\r\n studentId,\r\n courseId\r\n };\r\n\r\n await jwtInterceptor.post('api/studentAssignment/drop', mdl);\r\n\r\n mainStore.setInfoMsg('Successfully dropped Course Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to drop Course Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function deleteAssignment(studentId: number, courseId: number): Promise {\r\n const actionName = 'deleteCourse';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.delete('api/studentAssignment/delete', { params: { studentId, courseId } });\r\n\r\n mainStore.setInfoMsg('Successfully deleted Course Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to delete Course Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function validateCourseAssignments(studentAssignments: IAddStudentAssignment[]): Promise {\r\n const actionName = 'validateCourseAssignments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.post('api/studentAssignment/validate', studentAssignments);\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Validate Assignment(s)', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function validateOrganizationAssignments(organizationAssignments: IOrganizationAssignment[]): Promise {\r\n const actionName = 'validateOrganizationAssignments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.post('api/studentAssignment/validate-org-assignments', organizationAssignments);\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Validate Assignment(s)', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAssignedCoursesForStudents(studentIds: string[]): Promise {\r\n const actionName = 'getAssignedCoursesForStudents';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.post('api/studentAssignment/assigned-courses-for-students', studentIds);\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch assignments', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAssignedCoursesForOrganization(organizationLevel: OrganizationLevel, organizationId: number): Promise {\r\n const actionName = 'getAssignedCoursesForOrganization';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/studentAssignment/assigned-courses-for-organization', { params: { organizationLevel, organizationId } });\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch assignments', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAssignedCoursesOrganizationWide(organizationLevel: OrganizationLevel, organizationId: number, orgWideName: string): Promise {\r\n const actionName = 'getAssignedCoursesOrganizationWide';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/studentAssignment/assigned-courses-organization-wide', { params: { organizationLevel, organizationId, orgWideName } });\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch assignments', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getStudentAssignmentDropCount(studentDropMdl: DropStudentAssignment) : Promise {\r\n const actionName = 'getStudentAssignmentDropCount';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.post('api/studentAssignment/individual-assignment-drop-count', studentDropMdl);\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch student drop count', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getOrganizationAssignmentDropCount(organizationDropMdl: DropOrganizationAssignment) : Promise {\r\n const actionName = 'getOrganizationAssignmentDropCount';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.post('api/studentAssignment/organization-assignment-drop-count', organizationDropMdl);\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to organization fetch drop count', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getOrganizationWideAssignmentDropCount(organizationWideDropMdl: DropOrganizationWideAssignment) : Promise {\r\n const actionName = 'getOrganizationWideAssignmentDropCount';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.post('api/studentAssignment/organization-wide-assignment-drop-count', organizationWideDropMdl);\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch organization wide drop count', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function dropAssignmentForIndividuals(studentDropMdl: DropStudentAssignment): Promise {\r\n const actionName = 'dropAssignmentForIndividuals';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/drop-assignment-for-students', studentDropMdl);\r\n\r\n mainStore.setInfoMsg('Successfully dropped Student Assignment(s)');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to drop student assignment(s)', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function dropAssignmentForOrganization(organizationDropMdl: DropOrganizationAssignment): Promise {\r\n const actionName = 'dropAssignmentForOrganization';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/drop-assignment-for-organization', organizationDropMdl);\r\n\r\n mainStore.setInfoMsg('Successfully dropped assignment(s) for organization');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to drop assignment(s) for organization', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function dropAssignmentOrganizationWide(organizationWideDropMdl: DropOrganizationWideAssignment): Promise {\r\n const actionName = 'dropAssignmentOrganizationWide';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/drop-assignment-organization-wide', organizationWideDropMdl);\r\n\r\n mainStore.setInfoMsg('Successfully dropped organization wide assignment(s)');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to drop organization wide assignment(s)', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAssignmentPreferences(divisionId: number): Promise {\r\n const actionName = 'getAssignmentPreferences';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/studentAssignment/assignment-preferences', {params: { divisionId }});\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Assignment Preferences', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateAssignmentPreferences(assignmentPreferences: IUpdateAssignmentPreferences): Promise {\r\n const actionName = 'updateAssignmentPreferences';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/update-assignment-preference', assignmentPreferences);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Course Assignment Preference');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Course Assignment Preference', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function addAssignmentPreferences(assignmentPreferences: INewAssignmentPreferences): Promise {\r\n const actionName = 'addAssignmentPreferences';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/studentAssignment/add-assignment-preference', assignmentPreferences);\r\n\r\n mainStore.setInfoMsg('Successfully Added Course Assignment Preference');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Add Course Assignment Preference', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchNewHireAssignments(filter: IGridFilter): Promise {\r\n const actionName = 'searchNewHireAssignments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const filterJson = JSON.stringify(filter);\r\n\r\n const response: AxiosResponse = await jwtInterceptor.get('api/new-hire-assignment/search', { params: { filter: btoa(filterJson) }});\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to return New Hire Assignment search results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function addNewHireAssignment(newHireAssignment: IAddNewHireAssignment): Promise {\r\n const actionName = 'addNewHireAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/new-hire-assignment/add', newHireAssignment);\r\n\r\n mainStore.setInfoMsg('Successfully added New Hire Course Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Add New Hire Course Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getNewHireAssignment(newHireAssignmentId: number): Promise {\r\n const actionName = 'getNewHireAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/new-hire-assignment', { params: { newHireAssignmentId }});\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch New Hire Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function deleteNewHireAssignment(newHireAssignmentId: number): Promise {\r\n const actionName = 'deleteNewHireAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.delete('api/new-hire-assignment/delete', { params: { newHireAssignmentId } });\r\n\r\n mainStore.setInfoMsg('Successfully deleted New Hire Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to delete New Hire Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateNewHireAssignmentOrganizations(updateNewHireOrgs: IUpdateNewHireAssignmentOrganization): Promise {\r\n const actionName = 'updateNewHireAssignmentOrganizations';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/new-hire-assignment/update-organizations', updateNewHireOrgs);\r\n\r\n mainStore.setInfoMsg('Successfully updated New Hire Course Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update New Hire Assignment Organization', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateNewHireAssignmentCourse(updateCourse: IUpdateNewHireAssignmentCourse): Promise {\r\n const actionName = 'updateNewHireAssignmentCourse';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/new-hire-assignment/update-course', updateCourse);\r\n\r\n mainStore.setInfoMsg('Successfully updated New Hire Course Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update New Hire Assignment Course', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateNewHireCourseAssignmentDetails(updateDetails: IUpdateNewHireAssignmentDetails): Promise {\r\n const actionName = 'updateNewHireCourseAssignmentDetails';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/new-hire-assignment/update-details', updateDetails);\r\n\r\n mainStore.setInfoMsg('Successfully updated New Hire Course Assignment Details');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update New Hire Assignment Details', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchAnnualAssignments(filter: IGridFilter): Promise {\r\n const actionName = 'searchAnnualAssignments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const filterJson = JSON.stringify(filter);\r\n\r\n const response: AxiosResponse = await jwtInterceptor.get('api/annual-assignment/search', { params: { filter: btoa(filterJson) }});\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Annual Assignment search results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAnnualAssignment(annualAssignmentId: number): Promise {\r\n const actionName = 'getAnnualAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/annual-assignment', { params: { annualAssignmentId }});\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Annual Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function deleteAnnualAssignment(annualAssignmentId: number): Promise {\r\n const actionName = 'deleteAnnualAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.delete('api/annual-assignment/delete', { params: { annualAssignmentId } });\r\n\r\n mainStore.setInfoMsg('Successfully deleted Annual Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to delete Annual Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateAnnualAssignmentOrganizations(updateAnnualOrgs: IUpdateAnnualAssignmentOrganization): Promise {\r\n const actionName = 'updateAnnualAssignmentOrganizations';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/annual-assignment/update-organizations', updateAnnualOrgs);\r\n\r\n mainStore.setInfoMsg('Successfully updated Annual Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Annual Course Assignment Organization', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateAnnualAssignmentCourse(updateCourse: IUpdateAnnualAssignmentCourse): Promise {\r\n const actionName = 'updateAnnualAssignmentCourse';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/annual-assignment/update-course', updateCourse);\r\n\r\n mainStore.setInfoMsg('Successfully updated Annual Assignment');\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Annual Course Assignment Course', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateAnnualCourseAssignmentDetails(updateDetails: IUpdateAnnualAssignmentDetails): Promise {\r\n const actionName = 'updateAnnualCourseAssignmentDetails';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/annual-assignment/update-details', updateDetails);\r\n\r\n mainStore.setInfoMsg('Successfully updated Annual Assignment Details');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Annual Assignment Details', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function addAnnualAssignment(annualAssignment: IAddAnnualAssignment): Promise {\r\n const actionName = 'addAnnualAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/annual-assignment/add', annualAssignment);\r\n\r\n mainStore.setInfoMsg('Successfully added Annual Course Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Add Annual Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchRollingAssignments(filter: IGridFilter): Promise {\r\n const actionName = 'searchRollingAssignments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const filterJson = JSON.stringify(filter);\r\n\r\n const response: AxiosResponse = await jwtInterceptor.get('api/rolling-assignment/search', { params: { filter: btoa(filterJson) }});\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Rolling Assignment search results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getRollingAssignment(rollingAssignmentId: number): Promise {\r\n const actionName = 'getRollingAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/rolling-assignment', { params: { rollingAssignmentId }});\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Rolling Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function deleteRollingAssignment(rollingAssignmentId: number): Promise {\r\n const actionName = 'deleteRollingAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.delete('api/rolling-assignment/delete', { params: { rollingAssignmentId } });\r\n\r\n mainStore.setInfoMsg('Successfully deleted Rolling Assignment');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to delete Rolling Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateRollingAssignmentOrganizations(updateRollingOrgs: IUpdateRollingAssignmentOrganization): Promise {\r\n const actionName = 'updateRollingAssignmentOrganizations';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/rolling-assignment/update-organizations', updateRollingOrgs);\r\n\r\n mainStore.setInfoMsg('Successfully updated Rolling Assignment Organizations');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Rolling Assignment Organizations', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateRollingAssignmentCourse(updateCourse: IUpdateRollingAssignmentCourse): Promise {\r\n const actionName = 'updateRollingAssignmentCourse';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/rolling-assignment/update-course', updateCourse);\r\n\r\n mainStore.setInfoMsg('Successfully updated Rolling Assignment Course');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Rolling Assignment Course', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateRollingCourseAssignmentDetails(updateDetails: IUpdateRollingAssignmentDetails): Promise {\r\n const actionName = 'updateRollingCourseAssignmentDetails';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/rolling-assignment/update-details', updateDetails);\r\n\r\n mainStore.setInfoMsg('Successfully updated Rolling Assignment Details');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Rolling Assignment Details', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function addRollingAssignment(rollingAssignment: IAddRollingAssignment): Promise {\r\n const actionName = 'addRollingAssignment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/rolling-assignment/add', rollingAssignment);\r\n\r\n mainStore.setInfoMsg('Successfully added Rolling Course Assignment');\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to Add Rolling Assignment', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n function $reset(): void {\r\n assignmentState.value = { selectedCourses: [] };\r\n }\r\n\r\n return {\r\n displayNamesOfAssignedStudents,\r\n displayNamesOfAssignedCourses,\r\n getAllCourses,\r\n getEnableDate,\r\n getTargetDate,\r\n getDropDate,\r\n getCourseAssignmentState,\r\n getSelectedOrganizationDisplayString,\r\n\r\n getStudentDisplayNameById,\r\n getCourseNameById,\r\n setIndividualStudents,\r\n setOrganizationStudents,\r\n setCourses,\r\n setAssignedDates,\r\n removeStudent,\r\n removeOrganizationAssignment,\r\n removeCourse,\r\n addStudentAssignments,\r\n addAssignmentToOrganization,\r\n getAssignmentsForStudent,\r\n getAssignmentsForLoggedInStudent,\r\n getCourseAssignment,\r\n getLessonResult,\r\n getLessonAssignments,\r\n updateCourseAssignment,\r\n updateLessonResult,\r\n getCourseDeleteStatus,\r\n dropAssignment,\r\n deleteAssignment,\r\n validateCourseAssignments,\r\n getAssignedCoursesForStudents,\r\n getAssignedCoursesForOrganization,\r\n getAssignedCoursesOrganizationWide,\r\n getStudentAssignmentDropCount,\r\n getOrganizationAssignmentDropCount,\r\n getOrganizationWideAssignmentDropCount,\r\n dropAssignmentForIndividuals,\r\n dropAssignmentForOrganization,\r\n dropAssignmentOrganizationWide,\r\n validateOrganizationAssignments,\r\n getAssignmentPreferences,\r\n updateAssignmentPreferences,\r\n addAssignmentPreferences,\r\n searchNewHireAssignments,\r\n addNewHireAssignment,\r\n getNewHireAssignment,\r\n deleteNewHireAssignment,\r\n updateNewHireAssignmentOrganizations,\r\n updateNewHireAssignmentCourse,\r\n updateNewHireCourseAssignmentDetails,\r\n searchAnnualAssignments,\r\n getAnnualAssignment,\r\n deleteAnnualAssignment,\r\n updateAnnualAssignmentOrganizations,\r\n updateAnnualAssignmentCourse,\r\n updateAnnualCourseAssignmentDetails,\r\n addAnnualAssignment,\r\n searchRollingAssignments,\r\n getRollingAssignment,\r\n deleteRollingAssignment,\r\n updateRollingAssignmentOrganizations,\r\n updateRollingAssignmentCourse,\r\n updateRollingCourseAssignmentDetails,\r\n addRollingAssignment,\r\n $reset\r\n }\r\n})\r\n\r\nexport default useCourseAssignmentStore;\r\n","import ITask from '@/models/ITask';\r\nimport {defineStore} from 'pinia';\r\nimport {computed, ComputedRef, Ref, ref} from 'vue';\r\n\r\nexport type ApplicationState = {\r\n errorMsg: string | undefined,\r\n infoMsg: string | undefined,\r\n successMsg: string | undefined,\r\n hasCreated: boolean,\r\n runningTasks: ITask[]\r\n}\r\n\r\nexport interface IMainStore {\r\n state: Ref\r\n isBusy: ComputedRef,\r\n isStoreCreated: ComputedRef,\r\n getErrorMsg: ComputedRef,\r\n getInfoMsg: ComputedRef,\r\n getSuccessMsg: ComputedRef,\r\n getRunningTasks: ComputedRef,\r\n\r\n setStoreAsCreated(): void,\r\n clearMessages():void,\r\n setSuccessMsg(msg: string): void,\r\n clearSuccessMessage(): void,\r\n setInfoMsg(msg: string): void,\r\n clearInfoMessage(): void,\r\n setErrorMsg(msg: string | string[]): void,\r\n clearErrorMessage(): void,\r\n startTask(action: string): void,\r\n taskCompleted(action: string): void\r\n}\r\n\r\nconst useMainStore = defineStore('mainStore', (): IMainStore => {\r\n\r\n const state: Ref = ref({\r\n successMsg: '',\r\n infoMsg: '',\r\n errorMsg: '',\r\n hasCreated: false,\r\n runningTasks: []\r\n });\r\n\r\n const isBusy: ComputedRef = computed(() => state.value.runningTasks.length > 0);\r\n const isStoreCreated: ComputedRef = computed(() => state.value.hasCreated);\r\n const getErrorMsg: ComputedRef = computed(() => state.value.errorMsg);\r\n const getInfoMsg: ComputedRef = computed(() => state.value.infoMsg);\r\n const getSuccessMsg: ComputedRef = computed(() => state.value.successMsg);\r\n const getRunningTasks: ComputedRef = computed(() => state.value.runningTasks);\r\n\r\n function setStoreAsCreated(): void {\r\n state.value.hasCreated = true;\r\n }\r\n\r\n function clearMessages(): void {\r\n state.value.successMsg = '';\r\n state.value.infoMsg = '';\r\n state.value.errorMsg = '';\r\n }\r\n\r\n function setSuccessMsg(msg: string): void {\r\n state.value.successMsg = msg;\r\n }\r\n\r\n function clearSuccessMessage(): void {\r\n state.value.successMsg = '';\r\n }\r\n\r\n function setInfoMsg(msg: string): void {\r\n state.value.infoMsg = msg;\r\n }\r\n\r\n function clearInfoMessage(): void {\r\n state.value.infoMsg = '';\r\n }\r\n\r\n function setErrorMsg(msg: string | string[]): void {\r\n state.value.errorMsg = typeof msg === 'string' ? msg : msg.join('\\n');\r\n }\r\n\r\n function clearErrorMessage(): void {\r\n state.value.errorMsg = '';\r\n }\r\n\r\n function startTask(action: string): void {\r\n const task: ITask = {\r\n action,\r\n startTime: new Date()\r\n };\r\n\r\n state.value.runningTasks.push(task);\r\n }\r\n\r\n function taskCompleted(action: string): void {\r\n const taskIndex = state.value\r\n .runningTasks\r\n .findIndex(i => i.action === action);\r\n\r\n state.value.runningTasks.splice(taskIndex, 1);\r\n }\r\n\r\n return {\r\n state,\r\n\r\n isBusy,\r\n isStoreCreated,\r\n getErrorMsg,\r\n getInfoMsg,\r\n getSuccessMsg,\r\n getRunningTasks,\r\n\r\n setStoreAsCreated,\r\n clearMessages,\r\n setSuccessMsg,\r\n clearSuccessMessage,\r\n setInfoMsg,\r\n clearInfoMessage,\r\n setErrorMsg,\r\n clearErrorMessage,\r\n startTask,\r\n taskCompleted\r\n }\r\n});\r\n\r\nexport default useMainStore;\r\n","import jwtInterceptor from '@/helpers/http';\r\nimport IGridFilter from '@/models/search/IGridFilter';\r\nimport IDivisionSearchResult from '@/models/search/Organizations/IDivisionSearchResult';\r\nimport IFacilitySearchResult from '@/models/search/Organizations/IFacilitySearchResult';\r\nimport IRegionSearchResult from '@/models/search/Organizations/IRegionSearchResult';\r\nimport ICorporation from '@/models/user/OrganizationLevel/Corporation/ICorporation';\r\nimport ISimpleCorporation from '@/models/user/OrganizationLevel/Corporation/ISimpleCorporation';\r\nimport IUpdateCorporation from '@/models/user/OrganizationLevel/Corporation/IUpdateCorporation';\r\nimport IDepartment from '@/models/user/OrganizationLevel/Department/IDepartment';\r\nimport IDivision from '@/models/user/OrganizationLevel/Division/IDivision';\r\nimport ISimpleDivision from '@/models/user/OrganizationLevel/Division/ISimpleDivision';\r\nimport IUpdateDivision from '@/models/user/OrganizationLevel/Division/IUpdateDivision';\r\nimport IFacility from '@/models/user/OrganizationLevel/Facility/IFacility';\r\nimport IOrganizationHierarchy from '@/models/user/OrganizationLevel/IOrganizationHierarchy';\r\nimport IRegion from '@/models/user/OrganizationLevel/Region/IRegion';\r\nimport ISimpleRegion from '@/models/user/OrganizationLevel/Region/ISimpleRegion';\r\nimport IUpdateRegion from '@/models/user/OrganizationLevel/Region/IUpdateRegion';\r\nimport IUpdateFacility from '@/models/user/OrganizationLevel/Facility/IUpdateFacility';\r\nimport IDepartmentSearchResult from '@/models/search/Organizations/IDepartmentSearchResult';\r\nimport IUpdateDepartment from '@/models/user/OrganizationLevel/Department/IUpdateDepartment';\r\nimport IOrgWideDeptSearchIds from '@/models/search/Organizations/IOrgWideDeptSearchIds';\r\nimport ISimpleStudent from '@/models/user/ISimpleStudent';\r\nimport { formatServerErrorResponse } from '@/helpers/jwtHelper';\r\nimport { AxiosError, AxiosResponse } from 'axios';\r\nimport { defineStore } from 'pinia';\r\nimport useMainStore from './main.store';\r\nimport {ref, Ref} from 'vue';\r\n\r\nexport interface IOrganizationStore {\r\n\r\n getAllCorporations(): Promise,\r\n getCorporation(corporationId: number): Promise,\r\n updateCorporation(corporation: IUpdateCorporation): Promise,\r\n searchRegions(filter: IGridFilter): Promise,\r\n getRegionsByCorporation(corporationId: number): Promise,\r\n getRegion(regionId: number): Promise\r\n updateRegion(region: IUpdateRegion): Promise,\r\n searchDivisions(filter: IGridFilter): Promise,\r\n getDivisionsByRegion(regionId: number): Promise,\r\n getDivision(divisionId: number): Promise,\r\n updateDivision(division: IUpdateDivision): Promise,\r\n searchFacilities(filter: IGridFilter): Promise,\r\n getAllFacilities(identityId: string): Promise,\r\n getFacilitiesByDivision(divisionId: number): Promise,\r\n getFacility(facilityId: number): Promise,\r\n updateFacility(facility: IUpdateFacility): Promise,\r\n getOrganizationHierarchyByFacility(facilityId: number): Promise,\r\n searchDepartments(filter: IGridFilter): Promise,\r\n getDepartmentsByFacility(facilityId: number): Promise,\r\n getDepartment(departmentId: number): Promise,\r\n updateDepartment(department: IUpdateDepartment): Promise,\r\n getStudentsByDepartment(departmentId: number, includeInactive: boolean): Promise,\r\n organizationForMatchingDepts(orgIds: IOrgWideDeptSearchIds): Promise,\r\n getAllDepartmentNames(): Promise,\r\n}\r\n\r\nconst useOrganizationStore = defineStore('organizationStore', (): IOrganizationStore => {\r\n const mainStore = useMainStore();\r\n\r\n const corporations: Ref = ref([]);\r\n\r\n async function getAllCorporations(): Promise {\r\n const isCorporationsNullOrEmpty = !corporations.value || !corporations.value.length;\r\n\r\n if (!isCorporationsNullOrEmpty) {\r\n return corporations.value;\r\n }\r\n\r\n const actionName = 'GetAllCorporations';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/all-corporations');\r\n\r\n corporations.value = response.data;\r\n\r\n return corporations.value;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Corporations', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getCorporation(corporationId: number): Promise {\r\n const actionName = 'getCorporation';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/corporation', { params: { corporationId }} );\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Corporations', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateCorporation(corporation: IUpdateCorporation): Promise {\r\n const actionName = 'updateCorporation';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/organization/update-corporation', corporation);\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Corporation', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchRegions(filter: IGridFilter): Promise {\r\n const actionName = 'searchRegions';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const filterJson = JSON.stringify(filter);\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/search-regions', { params: { filter: btoa(filterJson) }} );\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to return Region search results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getRegionsByCorporation(corporationId: number): Promise {\r\n const actionName = 'getRegionsByCorporation';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/regions-by-corporation', { params: { corporationId } });\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Regions by Corporation', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getRegion(regionId: number): Promise {\r\n const actionName = 'getRegion';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/region', { params: { regionId }} );\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Region', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateRegion(region: IUpdateRegion): Promise {\r\n const actionName = 'updateRegion';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/organization/update-region', region);\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Region', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchDivisions(filter: IGridFilter): Promise {\r\n const actionName = 'searchDivisions';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const filterJson = JSON.stringify(filter);\r\n\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/search-divisions', { params: { filter: btoa(filterJson) }} );\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to return Division search results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getDivisionsByRegion(regionId: number): Promise {\r\n const actionName = 'GetDivisions';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/divisions-by-region', { params: { regionId } });\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Divisions by Region', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getDivision(divisionId: number): Promise {\r\n const actionName = 'getDivision';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/division', { params: { divisionId }} );\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Division', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateDivision(division: IUpdateDivision): Promise {\r\n const actionName = 'updateDivision';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/organization/update-division', division);\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Division', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchFacilities(filter: IGridFilter): Promise {\r\n const actionName = 'searchFacilities';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const filterJson = JSON.stringify(filter);\r\n\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/search-facilities', {params: {filter: btoa(filterJson)}});\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to return Facility search results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw error;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAllFacilities(identityId: string): Promise {\r\n const actionName = 'getAllFacilities';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/all-facilities', {\r\n params: { identityId }\r\n });\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch all facilities', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getFacilitiesByDivision(divisionId: number): Promise {\r\n const actionName = 'getFacilitiesByDivision';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/facilities-by-division', { params: { divisionId } });\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Facilities by Division', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getFacility(facilityId: number): Promise {\r\n const actionName = 'getFacility';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/facility', { params: { facilityId }} );\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Facility', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateFacility(facility: IUpdateFacility): Promise {\r\n const actionName = 'updateFacility';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/organization/update-facility', facility);\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Facility', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getOrganizationHierarchyByFacility(facilityId: number): Promise {\r\n const actionName = 'getDepartmentsByFacility';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const hierarchyResponse: AxiosResponse = await jwtInterceptor.get('api/organization/hierarchy-by-facility', { params: { facilityId } })\r\n\r\n return hierarchyResponse.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Departments by Facility', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchDepartments(filter: IGridFilter): Promise {\r\n const actionName = 'searchDepartments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const filterJson = JSON.stringify(filter);\r\n\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/search-departments', {params: {filter: btoa(filterJson)}});\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to return Department search results', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getDepartmentsByFacility(facilityId: number): Promise {\r\n const actionName = 'getDepartmentsByFacility';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/departments-by-facility', { params: { facilityId } });\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Departments by Facility', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getDepartment(departmentId: number): Promise {\r\n const actionName = 'getDepartment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/department', { params: { departmentId }} );\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Department', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateDepartment(department: IUpdateDepartment): Promise {\r\n const actionName = 'updateDepartment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/organization/update-department', department);\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Department', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getStudentsByDepartment(departmentId: number, includeInactive: boolean): Promise {\r\n const actionName = 'getStudentsByDepartment';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/students-by-department', { params: { departmentId, includeInactive } });\r\n\r\n return response.data;\r\n }\r\n catch(error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Students by Department', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function organizationForMatchingDepts(orgIds: IOrgWideDeptSearchIds): Promise {\r\n const actionName = 'organizationForMatchingDepts';\r\n mainStore.startTask(actionName);\r\n\r\n const corporationId = orgIds.corporationId;\r\n const regionId = orgIds.regionId;\r\n const divisionId = orgIds.divisionId;\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/organization-depts', {\r\n params: { corporationId, regionId, divisionId }\r\n });\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to find departments given organization', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAllDepartmentNames(): Promise {\r\n const actionName = 'getAllDepartmentNames';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/organization/all-departments');\r\n\r\n return response.data;\r\n }\r\n catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable fetch all department names', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n }\r\n finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n return {\r\n getAllCorporations,\r\n getCorporation,\r\n updateCorporation,\r\n\r\n searchRegions,\r\n getRegionsByCorporation,\r\n getRegion,\r\n updateRegion,\r\n\r\n searchDivisions,\r\n getDivisionsByRegion,\r\n getDivision,\r\n updateDivision,\r\n\r\n searchFacilities,\r\n getAllFacilities,\r\n getFacilitiesByDivision,\r\n getFacility,\r\n updateFacility,\r\n getOrganizationHierarchyByFacility,\r\n\r\n searchDepartments,\r\n getDepartmentsByFacility,\r\n getDepartment,\r\n updateDepartment,\r\n getStudentsByDepartment,\r\n organizationForMatchingDepts,\r\n getAllDepartmentNames,\r\n }\r\n});\r\n\r\nexport default useOrganizationStore;\r\n","import useMainStore from '@/store/main.store';\r\nimport {formatServerErrorResponse} from '@/helpers/jwtHelper';\r\nimport jwtInterceptor from '@/helpers/http';\r\nimport AddKnowledgeCheckEvaluation from \"@/models/student/evaluation/AddKnowledgeCheckEvaluation\";\r\nimport IAssignmentForStudentView from '@/models/courses/StudentAssignment/IAssignmentForStudentView';\r\nimport CompletedCompetencyEvaluation from \"@/models/courses/competencies/CompletedCompetencyEvaluation\";\r\nimport AddNonCeEvaluation from \"@/models/student/evaluation/AddNonCeEvaluation\";\r\nimport ICourseMenuContent from '@/models/courses/Course/ICourseMenuContent';\r\nimport AddCeEvaluation from \"@/models/student/evaluation/AddCeEvaluation\";\r\nimport ILessonAssignment from '@/models/courses/Lesson/ILessonAssignment';\r\nimport ISessionResume from '@/models/student/scorm/ISessionResume';\r\nimport CourseFormat from '@/models/courses/Course/CourseFormat';\r\nimport ISessionInfo from '@/models/student/scorm/ISessionInfo';\r\nimport { useSessionStorage } from '@vueuse/core';\r\nimport {computed, ComputedRef, Ref} from 'vue';\r\nimport {defineStore} from 'pinia';\r\nimport {AxiosError, AxiosResponse} from 'axios';\r\n\r\ninterface IAssignmentStore {\r\n getAllAssignments: ComputedRef,\r\n getIncompleteCourseAssignments: ComputedRef,\r\n getCompletedCourseAssignments: ComputedRef,\r\n getIncompleteSkillAssignments: ComputedRef,\r\n getCompletedSkillAssignments: ComputedRef,\r\n\r\n getCourseAssignmentByCourseId(courseId: number): IAssignmentForStudentView | undefined,\r\n getLessonAssignmentByLessonId(lessonId: number): ILessonAssignment,\r\n getMyAssignments(): Promise,\r\n getMyLessonAssignments(studentId: number, courseId: number): Promise,\r\n getCourseAssignmentStatus(studentId: number, courseId: number): Promise,\r\n getCourseMenuInfo(courseId: number): Promise,\r\n hasCompetencyBeenEvaluated(studentId: number, courseId: number): Promise,\r\n getMostRecentEvaluation(studentId: number, courseId: number): Promise,\r\n startSession(studentId: number, courseId: number, lessonId: number): Promise,\r\n getResumeSessionData(studentId: number, courseId: number, lessonId: number): Promise,\r\n saveSession(session: ISessionInfo): Promise,\r\n exitAssignment(sessionId: string): Promise,\r\n submitNonCeEvaluation(evaluationMdl: AddNonCeEvaluation): Promise,\r\n submitCeEvaluation(evaluationMdl: AddCeEvaluation): Promise,\r\n submitKnowledgeCheckEvaluation(evaluationMdl: AddKnowledgeCheckEvaluation): Promise,\r\n $reset(): void,\r\n}\r\n\r\nconst useAssignmentStore = defineStore('assignmentStore', (): IAssignmentStore => {\r\n const mainStore = useMainStore();\r\n\r\n const courseAssignments: Ref = useSessionStorage('assignmentStore_courseAssignments', [] as IAssignmentForStudentView[]);\r\n const lessonAssignments: Ref = useSessionStorage('assignmentStore_lessonAssignments', [] as ILessonAssignment[]);\r\n\r\n const getAllAssignments: ComputedRef = computed(() => courseAssignments.value);\r\n const getIncompleteCourseAssignments: ComputedRef = computed(() => courseAssignments.value.filter(sa => sa.courseFormatId === CourseFormat.Course && sa.status !== 'Complete'));\r\n const getCompletedCourseAssignments: ComputedRef = computed(() => courseAssignments.value.filter(sa => sa.courseFormatId === CourseFormat.Course && sa.status === 'Complete'));\r\n const getIncompleteSkillAssignments: ComputedRef = computed(() => courseAssignments.value.filter(sa => sa.courseFormatId !== CourseFormat.Course && sa.status !== 'Complete'));\r\n const getCompletedSkillAssignments: ComputedRef = computed(() => courseAssignments.value.filter(sa => sa.courseFormatId !== CourseFormat.Course && sa.status === 'Complete'));\r\n\r\n function getCourseAssignmentByCourseId(courseId: number): IAssignmentForStudentView | undefined {\r\n return courseAssignments.value.find((ca: IAssignmentForStudentView) => ca.courseId === courseId);\r\n }\r\n\r\n function getLessonAssignmentByLessonId(lessonId: number): ILessonAssignment {\r\n const lesson = lessonAssignments.value.find((la: ILessonAssignment) => la.lessonId === lessonId);\r\n\r\n if (lesson === undefined)\r\n throw new Error('Lesson not found');\r\n\r\n return lesson\r\n }\r\n\r\n async function getMyAssignments(): Promise {\r\n const actionName = 'getMyAssignments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getMyAssignmentsResponse: AxiosResponse = await jwtInterceptor.get('api/student/assignment/courses');\r\n\r\n courseAssignments.value = getMyAssignmentsResponse.data;\r\n return courseAssignments.value;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Assignments for Student', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n courseAssignments.value = [];\r\n return courseAssignments.value;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getMyLessonAssignments(studentId: number, courseId: number): Promise {\r\n const actionName = 'getMyLessonAssignments';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getMyLessonsResponse: AxiosResponse = await jwtInterceptor.get('api/student/assignment/lessons', { params: { studentId, courseId } });\r\n\r\n lessonAssignments.value = getMyLessonsResponse.data;\r\n return lessonAssignments.value;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Assignments for Student', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getCourseAssignmentStatus(studentId: number, courseId: number): Promise {\r\n const actionName = 'getCourseAssignmentStatus';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getCourseAssignmentStatusResponse: AxiosResponse = await jwtInterceptor.get('api/student/assignment/get-course-assignment-status', { params: { studentId, courseId } });\r\n\r\n return getCourseAssignmentStatusResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Assignments for Student', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getCourseMenuInfo(courseId: number): Promise {\r\n const actionName = 'getCourseMenuInfo';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getCourseMenuInfoResponse: AxiosResponse = await jwtInterceptor.get('api/student/assignment/course-menu-content', { params: { courseId } });\r\n\r\n return getCourseMenuInfoResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Course Menu Content', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function hasCompetencyBeenEvaluated(studentId: number, courseId: number): Promise {\r\n const actionName = 'hasCompetencyBeenEvaluated';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const hasCompetencyBeenEvaluatedResponse: AxiosResponse = await jwtInterceptor.get('api/student/assignment/has-evaluation-result', { params: { studentId, courseId } });\r\n\r\n return hasCompetencyBeenEvaluatedResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Competency Evaluation', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getMostRecentEvaluation(studentId: number, courseId: number): Promise {\r\n const actionName = 'getMostRecentEvaluation';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getMostRecentEvaluationResponse: AxiosResponse = await jwtInterceptor.get('api/student/assignment/most-recent-evaluation', { params: { studentId, courseId } });\r\n\r\n return getMostRecentEvaluationResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Most Recent Evaluation', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n\r\n async function startSession(studentId: number, courseId: number, lessonId: number): Promise {\r\n const actionName = 'startSession';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const startSessionResponse: AxiosResponse = await jwtInterceptor.get('api/student/assignment/start-session', { params: { studentId, courseId, lessonId } });\r\n\r\n return startSessionResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to generate Session Id', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getResumeSessionData(studentId: number, courseId: number, lessonId: number): Promise {\r\n const actionName = 'getResumeSessionData';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getResumeSessionDataResponse: AxiosResponse = await jwtInterceptor.get('api/student/assignment/resume-session', { params: { studentId, courseId, lessonId } })\r\n\r\n return getResumeSessionDataResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to generate Session Id', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function saveSession(session: ISessionInfo): Promise {\r\n const actionName = 'saveSession';\r\n await waitUntilActionIsComplete(actionName);\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/student/assignment/save-session', session);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to save session data', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function exitAssignment(sessionId: string): Promise {\r\n const actionName = 'exitAssignment';\r\n await waitUntilActionIsComplete('saveSession');\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/student/assignment/exit-assignment',\r\n sessionId,\r\n { headers: { 'Content-Type': 'application/json' } }\r\n )\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to save exit and save lesson data', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function submitNonCeEvaluation(evaluationMdl: AddNonCeEvaluation): Promise {\r\n const actionName = 'submitNonCeEvaluation';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/student/assignment/submit-non-ce-evaluation', evaluationMdl);\r\n\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to save non CE evaluation data', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function submitCeEvaluation(evaluationMdl: AddCeEvaluation): Promise {\r\n const actionName = 'submitCeEvaluation';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/student/assignment/submit-ce-evaluation', evaluationMdl);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to save CE Evaluation data', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function submitKnowledgeCheckEvaluation(evaluationMdl: AddKnowledgeCheckEvaluation): Promise {\r\n const actionName = 'submitKnowledgeCheckEvaluation';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/student/assignment/submit-knowledge-check-evaluation', evaluationMdl);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to save Knowledge Check Evaluation data', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function waitUntilActionIsComplete(actionName: string) {\r\n await new Promise(f => setTimeout(f, 250));\r\n let isTaskActive = mainStore.getRunningTasks.some(task => task.action === actionName);\r\n\r\n while (isTaskActive) {\r\n await new Promise(f => setTimeout(f, 500));\r\n isTaskActive = mainStore.getRunningTasks.some(task => task.action === actionName);\r\n }\r\n }\r\n\r\n function $reset() {\r\n courseAssignments.value = [];\r\n lessonAssignments.value = [];\r\n }\r\n\r\n\r\n return {\r\n getAllAssignments,\r\n getIncompleteCourseAssignments,\r\n getCompletedCourseAssignments,\r\n getIncompleteSkillAssignments,\r\n getCompletedSkillAssignments,\r\n\r\n getCourseAssignmentByCourseId,\r\n getLessonAssignmentByLessonId,\r\n getMyAssignments,\r\n getMyLessonAssignments,\r\n getCourseAssignmentStatus,\r\n getCourseMenuInfo,\r\n hasCompetencyBeenEvaluated,\r\n getMostRecentEvaluation,\r\n startSession,\r\n getResumeSessionData,\r\n saveSession,\r\n exitAssignment,\r\n submitNonCeEvaluation,\r\n submitCeEvaluation,\r\n submitKnowledgeCheckEvaluation,\r\n $reset\r\n }\r\n});\r\n\r\nexport default useAssignmentStore;\r\n","import {AxiosError, AxiosResponse} from 'axios';\r\nimport {defineStore} from 'pinia';\r\nimport useMainStore from '@/store/main.store';\r\nimport jwtInterceptor from '@/helpers/http';\r\nimport {formatServerErrorResponse} from '@/helpers/jwtHelper';\r\nimport {computed, ComputedRef, Ref} from 'vue';\r\nimport {useLocalStorage} from '@vueuse/core';\r\nimport UpdateContactInformation from '@/models/user/UpdateContactInformation';\r\nimport AddUserProfession from \"@/models/student/evaluation/AddUserProfession\";\r\nimport UserProfession from \"@/models/student/evaluation/UserProfession\";\r\nimport ContactInformation from '@/models/user/ContactInformation';\r\nimport Profession from \"@/models/student/evaluation/Profession\";\r\nimport IUserProfile from '@/models/user/IUserProfile';\r\n\r\nexport interface StudentAccountStore {\r\n getUserEmail: ComputedRef,\r\n getUserPhone: ComputedRef,\r\n getUserAddress: ComputedRef,\r\n getStudentUserProfile: ComputedRef,\r\n\r\n getUserProfile(userProfileId: number): Promise,\r\n getContactInfo(userProfileId: number): Promise,\r\n updateProfileEmail(userProfileId: number, email: string): Promise,\r\n getUserProfessions(userProfileId: number): Promise,\r\n getAllProfessions(): Promise,\r\n addProfession(profession: AddUserProfession): Promise,\r\n removeProfession(userProfessionId: number): Promise,\r\n updateContactInfo(updateMdl: UpdateContactInformation): Promise,\r\n $reset(): void,\r\n\r\n studentUserProfile: Ref,\r\n contactInfoForActiveUser: Ref\r\n}\r\n\r\nconst useStudentAccountStore = defineStore('studentAccountStore', (): StudentAccountStore => {\r\n const mainStore= useMainStore();\r\n\r\n const studentUserProfile: Ref = useLocalStorage('studentAccountStore_userProfile', {} as IUserProfile);\r\n const contactInfoForActiveUser: Ref = useLocalStorage('accountStore_contactInfo', {} as ContactInformation);\r\n\r\n const getUserEmail: ComputedRef = computed(() => studentUserProfile.value.email);\r\n const getUserPhone: ComputedRef = computed(() => contactInfoForActiveUser.value.phoneNumber ?? '');\r\n const getUserAddress: ComputedRef = computed(() => contactInfoForActiveUser.value.address1 ?? '');\r\n const getStudentUserProfile: ComputedRef = computed(() =>!Object.keys(studentUserProfile.value).length ? undefined : studentUserProfile.value);\r\n\r\n\r\n async function getUserProfile(userProfileId: number) : Promise {\r\n const actionName = 'getUserProfile';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getUserProfileResponse: AxiosResponse = await jwtInterceptor.get('api/userProfile', {\r\n params: { id: userProfileId }\r\n });\r\n\r\n studentUserProfile.value = getUserProfileResponse.data;\r\n\r\n return studentUserProfile.value;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Error fetching User Profile', error)\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getContactInfo(userProfileId: number) : Promise {\r\n const actionName = 'getContactInfo';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response: AxiosResponse = await jwtInterceptor.get('api/userprofile/contact-info', {\r\n params: { userProfileId }\r\n });\r\n\r\n if (!Object.keys(response.data).length) {\r\n return;\r\n }\r\n\r\n contactInfoForActiveUser.value = response.data;\r\n return contactInfoForActiveUser.value;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch User contact info', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateProfileEmail(userProfileId: number, email: string): Promise {\r\n const actionName = 'updateProfileEmail';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const mdl = {\r\n userProfileId,\r\n email\r\n }\r\n\r\n await jwtInterceptor.post('api/UserProfile/update-email/', { mdl });\r\n\r\n mainStore.setSuccessMsg('Profile info has been updated successfully.');\r\n\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Email', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getUserProfessions(userProfileId: number): Promise {\r\n const actionName = 'getUserProfessions';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getProfessionsResponse: AxiosResponse = await jwtInterceptor.get('api/userProfile/student-professions', {\r\n params: { userProfileId }\r\n });\r\n\r\n return getProfessionsResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch your profession list', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getAllProfessions(): Promise {\r\n const actionName = 'getAllProfessions';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getAllProfessionsResponse: AxiosResponse = await jwtInterceptor.get('api/userProfile/list-professions')\r\n\r\n return getAllProfessionsResponse.data;\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch professions list', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function addProfession(profession: AddUserProfession): Promise {\r\n const actionName = 'addProfession';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/UserProfile/add-profession', profession);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to add profession.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function removeProfession(userProfessionId: number): Promise {\r\n const actionName = 'removeProfession';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.delete('api/UserProfile/remove-profession', { params: { userProfessionId } });\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to remove profession.', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateContactInfo(updateMdl: UpdateContactInformation): Promise {\r\n const actionName = 'updateContactInfo';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/UserProfile/update-contact-info', updateMdl);\r\n } catch( error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update contact info', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n function $reset() {\r\n studentUserProfile.value = {} as IUserProfile;\r\n contactInfoForActiveUser.value = {} as ContactInformation\r\n }\r\n\r\n return {\r\n getUserEmail,\r\n getUserPhone,\r\n getUserAddress,\r\n getStudentUserProfile,\r\n\r\n getUserProfile,\r\n getContactInfo,\r\n updateProfileEmail,\r\n getAllProfessions,\r\n getUserProfessions,\r\n addProfession,\r\n removeProfession,\r\n updateContactInfo,\r\n $reset,\r\n studentUserProfile,\r\n contactInfoForActiveUser\r\n }\r\n});\r\n\r\nexport default useStudentAccountStore;\r\n","import {defineStore} from \"pinia\";\r\nimport ITrainingCategory from \"@/models/courses/trainingCategory\";\r\nimport ITrainingSubCategory from \"@/models/courses/ITrainingSubCategory\";\r\nimport IGridFilter from \"@/models/search/IGridFilter\";\r\nimport ITrainingCategorySearchResult from \"@/models/search/ITrainingCategorySearchResult\";\r\nimport ITrainingSubCategorySearchResult from \"@/models/search/ITrainingSubCategorySearchResult\";\r\nimport {AxiosError, AxiosResponse} from \"axios\";\r\nimport jwtInterceptor from \"@/helpers/http\";\r\nimport {formatServerErrorResponse} from \"@/helpers/jwtHelper\";\r\nimport useMainStore from \"@/store/main.store\";\r\n\r\nexport interface TrainingCategoryStore {\r\n getAllTrainingCategories(): Promise,\r\n getTrainingCategory(trainingCategoryId: number) : Promise,\r\n getTrainingSubCategoryByTrainingCategoryId(trainingCategoryId: number) : Promise,\r\n searchTrainingCategories(filter: IGridFilter): Promise,\r\n updateTrainingCategory(trainingCategory: ITrainingCategory): Promise,\r\n getTrainingSubCategoryById(trainingSubCategoryId: number) : Promise,\r\n searchTrainingSubCategories(filter: IGridFilter): Promise,\r\n updateTrainingSubCategory(trainingSubCategory: ITrainingSubCategory): Promise,\r\n getCustomCompetencyTrainingCategories(): Promise,\r\n createCustomCompetencyTrainingCategory(name: string): Promise,\r\n getCustomCompetencyTrainingCategoryForAdmin(userProfileId: number): Promise,\r\n}\r\n\r\nconst useTrainingCategoryStore = defineStore('trainingCategoryStore', (): TrainingCategoryStore => {\r\n const mainStore = useMainStore();\r\n\r\n async function getAllTrainingCategories(): Promise {\r\n const actionName = 'getAllTrainingCategories';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getTrainingCategoriesResponse: AxiosResponse = await jwtInterceptor.get('api/trainingCategory/training-categories');\r\n\r\n return getTrainingCategoriesResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Training Categories', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getTrainingCategory(trainingCategoryId: number) : Promise {\r\n const actionName = 'getTrainingCategory';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getTrainingCategoryResponse: AxiosResponse = await jwtInterceptor.get('api/trainingCategory', { params: { id: trainingCategoryId }});\r\n\r\n return getTrainingCategoryResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to get Training Category', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getTrainingSubCategoryByTrainingCategoryId(trainingCategoryId: number) : Promise {\r\n const actionName = 'getTrainingSubCategoryByTrainingCategoryId';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getTrainingSubCategoryResponse: AxiosResponse = await jwtInterceptor.get('api/trainingSubCategory/from-training-cat', { params: { id: trainingCategoryId }});\r\n\r\n return getTrainingSubCategoryResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch training sub-categories', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchTrainingCategories(filter: IGridFilter): Promise {\r\n const actionName = 'searchTrainingCategories';\r\n mainStore.startTask(actionName);\r\n\r\n const filterJson = JSON.stringify(filter);\r\n\r\n try {\r\n const searchTrainingCategoriesResponse: AxiosResponse = await jwtInterceptor.get('api/trainingCategory/search', { params: { filter: btoa(filterJson) }} );\r\n\r\n return searchTrainingCategoriesResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to search for training categories', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateTrainingCategory(trainingCategory: ITrainingCategory): Promise {\r\n const actionName = 'updateTrainingCategory';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/trainingCategory/update', trainingCategory);\r\n\r\n mainStore.setInfoMsg('Successfully Updated Training Category');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Training Category', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getTrainingSubCategoryById(trainingSubCategoryId: number) : Promise {\r\n const actionName = 'getTrainingSubCategoryById';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const getTrainingSubCategoryResponse: AxiosResponse = await jwtInterceptor.get('api/trainingSubCategory', { params: { id: trainingSubCategoryId }});\r\n\r\n return getTrainingSubCategoryResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to fetch Training Sub Category', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function searchTrainingSubCategories(filter: IGridFilter): Promise {\r\n const actionName = 'searchTrainingSubCategories';\r\n mainStore.startTask(actionName);\r\n\r\n const filterJson = JSON.stringify(filter);\r\n\r\n try {\r\n const searchTrainingSubCategoriesResponse: AxiosResponse = await jwtInterceptor.get('api/trainingSubCategory/search', { params: { filter: btoa(filterJson) }} );\r\n\r\n return searchTrainingSubCategoriesResponse.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to search for Training Sub Categories', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function updateTrainingSubCategory(trainingSubCategory: ITrainingSubCategory): Promise {\r\n const actionName = 'updateTrainingSubCategory';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/trainingSubCategory', trainingSubCategory)\r\n\r\n mainStore.setInfoMsg('Successfully Updated Training SubCategory');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update training sub category', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getCustomCompetencyTrainingCategories(): Promise {\r\n const actionName = 'updateTrainingCategory';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response : AxiosResponse = await jwtInterceptor.get('api/trainingCategory/custom-competencies');\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to update Training Category', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function createCustomCompetencyTrainingCategory(name: string): Promise {\r\n const actionName = 'createCustomCompetencyTrainingCategory';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n await jwtInterceptor.post('api/trainingCategory/new-custom-competency', { name });\r\n\r\n mainStore.setInfoMsg('Successfully Created Custom Competency Training Category');\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to create Custom Competency Training Category', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n async function getCustomCompetencyTrainingCategoryForAdmin(userProfileId: number): Promise {\r\n const actionName = 'getCustomCompetencyTrainingCategoryForAdmin';\r\n mainStore.startTask(actionName);\r\n\r\n try {\r\n const response : AxiosResponse = await jwtInterceptor.get('api/trainingCategory/custom-competencies-for-admin', { params: { userProfileId }});\r\n\r\n return response.data;\r\n } catch (error: AxiosError | any) {\r\n const errorMsg = await formatServerErrorResponse('Unable to get Custom Competency Training Category', error);\r\n\r\n mainStore.setErrorMsg(errorMsg);\r\n throw errorMsg;\r\n } finally {\r\n mainStore.taskCompleted(actionName);\r\n }\r\n }\r\n\r\n return {\r\n getAllTrainingCategories,\r\n getTrainingCategory,\r\n getTrainingSubCategoryByTrainingCategoryId,\r\n searchTrainingCategories,\r\n updateTrainingCategory,\r\n getTrainingSubCategoryById,\r\n searchTrainingSubCategories,\r\n updateTrainingSubCategory,\r\n getCustomCompetencyTrainingCategories,\r\n createCustomCompetencyTrainingCategory,\r\n getCustomCompetencyTrainingCategoryForAdmin,\r\n }\r\n})\r\n\r\nexport default useTrainingCategoryStore;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, resolveComponent as _resolveComponent, isRef as _isRef, normalizeClass as _normalizeClass, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"flex justify-content-center border-round-lg\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex flex-column md:flex-row gap-4\" }\nconst _hoisted_3 = { class: \"flex align-items-center\" }\nconst _hoisted_4 = { class: \"font-bold\" }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex align-items-center justify-content-center\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"pi pi-arrow-right hidden md:inline-block\",\n style: {\"font-size\":\"20px\"}\n }),\n /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"pi pi-arrow-down md:hidden\",\n style: {\"font-size\":\"20px\"}\n })\n], -1)\nconst _hoisted_6 = { class: \"p-float-label\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"label\", {\n for: \"dd-rolePromotion\",\n class: \"font-normal\"\n}, \"New User Role\", -1)\nconst _hoisted_8 = { class: \"p-error\" }\nconst _hoisted_9 = { class: \"flex justify-content-end\" }\nconst _hoisted_10 = { class: \"flex flex-column gap-2 mb-5\" }\nconst _hoisted_11 = { class: \"p-text-secondary\" }\nconst _hoisted_12 = { class: \"font-semibold\" }\nconst _hoisted_13 = { class: \"font-semibold\" }\nconst _hoisted_14 = { class: \"p-text-secondary\" }\nconst _hoisted_15 = { class: \"font-semibold\" }\nconst _hoisted_16 = { class: \"flex justify-content-end gap-2\" }\n\nimport useAuthStore from '@/store/auth.store';\r\nimport useAccountStore from '@/store/account.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport AuthorizationLevel from '@/models/auth/AuthorizationLevel';\r\nimport PromoteUserRole from '@/models/auth/PromoteUserRole';\r\nimport {toTypedSchema} from '@vee-validate/zod';\r\nimport {useField, useForm} from 'vee-validate';\r\nimport {computed, ref} from 'vue';\r\nimport * as zod from 'zod';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PromoteUserRoleComponent',\n setup(__props) {\n\r\nconst authStore = useAuthStore();\r\nconst mainStore = useMainStore();\r\nconst accountStore = useAccountStore();\r\n\r\nconst { handleSubmit, errors, resetForm } = useForm({\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n newRoleAuthorizationLevel: zod.number().gte(400)\r\n })\r\n )\r\n});\r\n\r\nconst { value: newRoleAuthorizationLevel } = useField('newRoleAuthorizationLevel');\r\nconst adminLevel = authStore.getAuthorizationLevel;\r\nconst promotionConfirmation = ref(false);\r\n\r\nconst promotionOrg = computed(() => roleOptions.value.find(ro => ro.authLevel == newRoleAuthorizationLevel.value)?.roleName.split(\" \")[0] ?? 'No Promotion');\r\nconst userDisplayName = computed(() => accountStore.getActiveUserProfile.displayName);\r\nconst currentUserRole = computed(() => accountStore.getActiveUserProfile.identityUser?.role ?? '');\r\nconst orgNameOfPromotion = computed(() => {\r\n switch (newRoleAuthorizationLevel.value) {\r\n case AuthorizationLevel.CorporationAdministrator:\r\n return accountStore.getActiveUserProfile.corporation?.name ?? 'Corporation not found';\r\n case AuthorizationLevel.RegionAdministrator:\r\n return accountStore.getActiveUserProfile.region?.name ?? 'Region not found';\r\n case AuthorizationLevel.DivisionAdministrator:\r\n return accountStore.getActiveUserProfile.division?.name ?? 'Division not found';\r\n case AuthorizationLevel.FacilityAdministrator:\r\n return accountStore.getActiveUserProfile.facility?.name ?? 'Facility not found';\r\n case AuthorizationLevel.DepartmentAdministrator:\r\n return accountStore.getActiveUserProfile.department?.name ?? 'Department not found';\r\n default:\r\n return 'Unable to Promote';\r\n }\r\n});\r\nconst roleOptions = computed<{ roleName: string, authLevel: AuthorizationLevel }[]>(() => {\r\n const roles = [\r\n { roleName: 'System Admin', authLevel: AuthorizationLevel.SystemAdministrator },\r\n { roleName: 'Corporation Admin', authLevel: AuthorizationLevel.CorporationAdministrator },\r\n { roleName: 'Region Admin', authLevel: AuthorizationLevel.RegionAdministrator },\r\n { roleName: 'Division Admin', authLevel: AuthorizationLevel.DivisionAdministrator },\r\n { roleName: 'Facility Admin', authLevel: AuthorizationLevel.FacilityAdministrator },\r\n { roleName: 'Department Admin', authLevel: AuthorizationLevel.DepartmentAdministrator }\r\n ];\r\n\r\n return roles\r\n .filter(role => role.authLevel <= adminLevel && !currentUserRole.value.includes(role.roleName))\r\n});\r\n\r\nconst confirmPromotion = handleSubmit(async (data) => {\r\n const { newRoleAuthorizationLevel } = data;\r\n\r\n switch (newRoleAuthorizationLevel) {\r\n case AuthorizationLevel.CorporationAdministrator: {\r\n const userCorporation = accountStore.getActiveUserProfile.corporation;\r\n\r\n if (!userCorporation?.corporationId)\r\n return mainStore.setErrorMsg('Unable to promote User. Please assign corporation to user.')\r\n\r\n break;\r\n }\r\n case AuthorizationLevel.RegionAdministrator: {\r\n const userRegion = accountStore.getActiveUserProfile.region;\r\n\r\n if (!userRegion?.regionId)\r\n return mainStore.setErrorMsg('Unable to promote User. Please assign region to user.')\r\n\r\n break;\r\n }\r\n case AuthorizationLevel.DivisionAdministrator: {\r\n const userDivision = accountStore.getActiveUserProfile.division;\r\n\r\n if (!userDivision?.divisionId)\r\n return mainStore.setErrorMsg('Unable to promote User. Please assign division to user.')\r\n\r\n break;\r\n }\r\n case AuthorizationLevel.FacilityAdministrator: {\r\n const userFacility = accountStore.getActiveUserProfile.facility;\r\n\r\n if (!userFacility?.facilityId)\r\n return mainStore.setErrorMsg('Unable to promote User. Please assign facility to user.')\r\n\r\n break;\r\n }\r\n case AuthorizationLevel.DepartmentAdministrator: {\r\n const userDept = accountStore.getActiveUserProfile.department;\r\n\r\n if (!userDept?.departmentId)\r\n return mainStore.setErrorMsg('Unable to promote User. Please assign department to user.')\r\n\r\n break;\r\n }\r\n default:\r\n return mainStore.setErrorMsg('Invalid Authorization level selected.');\r\n }\r\n\r\n promotionConfirmation.value = true;\r\n});\r\n\r\nasync function promoteUser() {\r\n const userProfileId = accountStore.getActiveUserProfileId;\r\n\r\n if (!userProfileId)\r\n return mainStore.setErrorMsg('Invalid User Profile Id');\r\n\r\n const corporation = accountStore.getActiveUserProfile.corporation;\r\n const region = accountStore.getActiveUserProfile.region;\r\n const division = accountStore.getActiveUserProfile.division;\r\n const facility = accountStore.getActiveUserProfile.facility;\r\n const department = accountStore.getActiveUserProfile.department;\r\n\r\n const promoteUserRoleMdl: PromoteUserRole = {\r\n userProfileId: userProfileId,\r\n newAdminLevel: newRoleAuthorizationLevel.value as AuthorizationLevel,\r\n corporationId: corporation?.corporationId,\r\n regionId: region?.regionId,\r\n divisionId: division?.divisionId,\r\n facilityId: facility?.facilityId,\r\n departmentId: department?.departmentId\r\n }\r\n\r\n await authStore.promoteUserRole(promoteUserRoleMdl)\r\n .then(() => {\r\n accountStore.updateProfileRole(`${promotionOrg.value} Administrator`)\r\n\r\n resetForm();\r\n })\r\n .catch(() => {});\r\n\r\n promotionConfirmation.value = false;\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n onSubmit: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_unref(confirmPromotion) && _unref(confirmPromotion)(...args))),\n class: \"flex my-5 gap-4\"\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", _hoisted_4, _toDisplayString(currentUserRole.value), 1)\n ]),\n _hoisted_5,\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_Dropdown, {\n \"input-id\": \"dd-rolePromotion\",\n modelValue: _unref(newRoleAuthorizationLevel),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(newRoleAuthorizationLevel) ? (newRoleAuthorizationLevel).value = $event : null)),\n \"option-label\": \"roleName\",\n \"option-value\": \"authLevel\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).newRoleAuthorizationLevel }]),\n placeholder: \"Select new role\",\n options: roleOptions.value,\n invalid: !!_unref(errors).newRoleAuthorizationLevel\n }, null, 8, [\"modelValue\", \"options\", \"invalid\", \"class\"]),\n _hoisted_7\n ]),\n _createElementVNode(\"small\", _hoisted_8, _toDisplayString(_unref(errors)[\"newRoleAuthorizationLevel\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createVNode(_component_Button, {\n label: \"Promote\",\n type: \"submit\"\n })\n ])\n ], 32),\n _createVNode(_component_Dialog, {\n visible: promotionConfirmation.value,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => ((promotionConfirmation).value = $event)),\n modal: \"\",\n header: \"Are You Sure?\",\n draggable: false\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"span\", _hoisted_11, [\n _createTextVNode(\"Promote \"),\n _createElementVNode(\"span\", _hoisted_12, _toDisplayString(userDisplayName.value), 1),\n _createTextVNode(\" to \"),\n _createElementVNode(\"span\", _hoisted_13, _toDisplayString(promotionOrg.value) + \" Admin\", 1)\n ]),\n _createElementVNode(\"span\", _hoisted_14, [\n _createTextVNode(_toDisplayString(promotionOrg.value) + \": \", 1),\n _createElementVNode(\"span\", _hoisted_15, _toDisplayString(orgNameOfPromotion.value), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createVNode(_component_Button, {\n type: \"button\",\n label: \"Cancel\",\n severity: \"secondary\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (promotionConfirmation.value = false))\n }),\n _createVNode(_component_Button, {\n type: \"button\",\n label: \"Save\",\n onClick: promoteUser\n })\n ])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./PromoteUserRoleComponent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./PromoteUserRoleComponent.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, createElementVNode as _createElementVNode, withDirectives as _withDirectives, isRef as _isRef, withCtx as _withCtx, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"border-round-lg p-3\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex flex-column mt-5 gap-5\" }\nconst _hoisted_3 = { class: \"mt-3\" }\nconst _hoisted_4 = { class: \"flex flex-row gap-2\" }\nconst _hoisted_5 = { class: \"pi pi-check color-success\" }\nconst _hoisted_6 = { class: \"pi pi-times color-failure\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"span\", null, \"One number\", -1)\nconst _hoisted_8 = { class: \"flex flex-row gap-2\" }\nconst _hoisted_9 = { class: \"pi pi-check color-success\" }\nconst _hoisted_10 = { class: \"pi pi-times color-failure\" }\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"span\", null, \"One lowercase character\", -1)\nconst _hoisted_12 = { class: \"flex flex-row gap-2\" }\nconst _hoisted_13 = { class: \"pi pi-check color-success\" }\nconst _hoisted_14 = { class: \"pi pi-times color-failure\" }\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"span\", null, \"One uppercase character\", -1)\nconst _hoisted_16 = { class: \"flex flex-row gap-2\" }\nconst _hoisted_17 = { class: \"pi pi-check color-success\" }\nconst _hoisted_18 = { class: \"pi pi-times color-failure\" }\nconst _hoisted_19 = /*#__PURE__*/_createElementVNode(\"span\", null, \"One special character\", -1)\nconst _hoisted_20 = { class: \"flex flex-row gap-2\" }\nconst _hoisted_21 = { class: \"pi pi-check color-success\" }\nconst _hoisted_22 = { class: \"pi pi-times color-failure\" }\nconst _hoisted_23 = /*#__PURE__*/_createElementVNode(\"span\", null, \"6 characters minimum\", -1)\nconst _hoisted_24 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"newPassword\" }, \"New Password\", -1)\nconst _hoisted_25 = { class: \"p-error\" }\nconst _hoisted_26 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"confirmPassword\" }, \"Confirm Password\", -1)\nconst _hoisted_27 = { class: \"p-error\" }\nconst _hoisted_28 = { class: \"flex justify-content-center\" }\n\nimport useAuthStore from '@/store/auth.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport useAccountStore from '@/store/account.store';\r\nimport usePasswordValidation from '@/composition-api/usePasswordValidation';\r\nimport { useField, useForm } from 'vee-validate';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport * as zod from \"zod\";\r\nimport {computed} from \"vue\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ResetPasswordComponent',\n setup(__props) {\n\r\nconst authStore = useAuthStore();\r\nconst mainStore = useMainStore();\r\nconst accountStore = useAccountStore();\r\nconst passwordValidation = usePasswordValidation();\r\n\r\nconst { handleSubmit, errors } = useForm({\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n newPassword: zod.string({ required_error: 'Required' }).min(6, 'Password must be at least 6 characters'),\r\n confirmPassword: zod.string()\r\n }).superRefine(({ newPassword, confirmPassword }, ctx) => {\r\n\r\n if (!passwordValidation.doesPasswordMeetNumericReq(newPassword)) {\r\n ctx.addIssue({\r\n code: zod.ZodIssueCode.custom,\r\n path: ['newPassword'],\r\n message: \"Password must contain number\",\r\n });\r\n }\r\n\r\n if (!passwordValidation.doesPasswordMeetLowercaseReq(newPassword)) {\r\n ctx.addIssue({\r\n code: zod.ZodIssueCode.custom,\r\n path: ['newPassword'],\r\n message: \"Password must contain one lowercase character\",\r\n });\r\n }\r\n\r\n if (!passwordValidation.doesPasswordMeetUppercaseReq(newPassword)) {\r\n ctx.addIssue({\r\n code: zod.ZodIssueCode.custom,\r\n path: ['newPassword'],\r\n message: \"Password must contain one uppercase character\",\r\n });\r\n }\r\n\r\n if (!passwordValidation.doesPasswordMeetNonAlphaNumericReq(newPassword)) {\r\n ctx.addIssue({\r\n code: zod.ZodIssueCode.custom,\r\n path: ['newPassword'],\r\n message: \"Password must contain one non-alphanumeric character\",\r\n });\r\n }\r\n\r\n if (newPassword !== confirmPassword) {\r\n ctx.addIssue({\r\n code: zod.ZodIssueCode.custom,\r\n path: ['confirmPassword'],\r\n message: \"Passwords don't match\"\r\n });\r\n }\r\n })\r\n ),\r\n});\r\n\r\nconst { value: newPassword } = useField('newPassword');\r\nconst { value: confirmPassword } = useField('confirmPassword');\r\n\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nfunction clearInputs() {\r\n newPassword.value = '';\r\n confirmPassword.value = '';\r\n}\r\n\r\nconst submitUpdatePassword = handleSubmit(async (data) => {\r\n const userProfileId = accountStore.getActiveUserProfileId;\r\n\r\n if (!userProfileId)\r\n return mainStore.setErrorMsg('User Id not found, please refresh page.');\r\n\r\n const { newPassword, confirmPassword } = data;\r\n\r\n return await authStore.adminResetPassword(userProfileId, newPassword, confirmPassword)\r\n .then(() => clearInputs())\r\n .catch();\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Divider = _resolveComponent(\"Divider\")!\n const _component_Password = _resolveComponent(\"Password\")!\n const _component_FloatLabel = _resolveComponent(\"FloatLabel\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n class: \"flex justify-content-center\",\n onSubmit: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_unref(submitUpdatePassword) && _unref(submitUpdatePassword)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_FloatLabel, null, {\n default: _withCtx(() => [\n _createVNode(_component_Password, {\n modelValue: _unref(newPassword),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(newPassword) ? (newPassword).value = $event : null)),\n id: \"newPassword\",\n toggleMask: \"\",\n invalid: !!_unref(errors).newPassword\n }, {\n footer: _withCtx(() => [\n _createVNode(_component_Divider),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _withDirectives(_createElementVNode(\"i\", _hoisted_5, null, 512), [\n [_vShow, _unref(passwordValidation).doesPasswordMeetNumericReq(_unref(newPassword))]\n ]),\n _withDirectives(_createElementVNode(\"i\", _hoisted_6, null, 512), [\n [_vShow, !_unref(passwordValidation).doesPasswordMeetNumericReq(_unref(newPassword))]\n ]),\n _hoisted_7\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _withDirectives(_createElementVNode(\"i\", _hoisted_9, null, 512), [\n [_vShow, _unref(passwordValidation).doesPasswordMeetLowercaseReq(_unref(newPassword))]\n ]),\n _withDirectives(_createElementVNode(\"i\", _hoisted_10, null, 512), [\n [_vShow, !_unref(passwordValidation).doesPasswordMeetLowercaseReq(_unref(newPassword))]\n ]),\n _hoisted_11\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _withDirectives(_createElementVNode(\"i\", _hoisted_13, null, 512), [\n [_vShow, _unref(passwordValidation).doesPasswordMeetUppercaseReq(_unref(newPassword))]\n ]),\n _withDirectives(_createElementVNode(\"i\", _hoisted_14, null, 512), [\n [_vShow, !_unref(passwordValidation).doesPasswordMeetUppercaseReq(_unref(newPassword))]\n ]),\n _hoisted_15\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _withDirectives(_createElementVNode(\"i\", _hoisted_17, null, 512), [\n [_vShow, _unref(passwordValidation).doesPasswordMeetNonAlphaNumericReq(_unref(newPassword))]\n ]),\n _withDirectives(_createElementVNode(\"i\", _hoisted_18, null, 512), [\n [_vShow, !_unref(passwordValidation).doesPasswordMeetNonAlphaNumericReq(_unref(newPassword))]\n ]),\n _hoisted_19\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _withDirectives(_createElementVNode(\"i\", _hoisted_21, null, 512), [\n [_vShow, _unref(passwordValidation).doesPasswordMeetLengthReq(_unref(newPassword))]\n ]),\n _withDirectives(_createElementVNode(\"i\", _hoisted_22, null, 512), [\n [_vShow, !_unref(passwordValidation).doesPasswordMeetLengthReq(_unref(newPassword))]\n ]),\n _hoisted_23\n ])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"invalid\"]),\n _hoisted_24\n ]),\n _: 1\n }),\n _createElementVNode(\"small\", _hoisted_25, _toDisplayString(_unref(errors)[\"newPassword\"]), 1)\n ]),\n _createElementVNode(\"div\", null, [\n _createVNode(_component_FloatLabel, null, {\n default: _withCtx(() => [\n _createVNode(_component_Password, {\n modelValue: _unref(confirmPassword),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(confirmPassword) ? (confirmPassword).value = $event : null)),\n id: \"confirmPassword\",\n class: \"w-full\",\n toggleMask: \"\",\n invalid: !!_unref(errors).confirmPassword\n }, null, 8, [\"modelValue\", \"invalid\"]),\n _hoisted_26\n ]),\n _: 1\n }),\n _createElementVNode(\"small\", _hoisted_27, _toDisplayString(_unref(errors)[\"confirmPassword\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_28, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./ResetPasswordComponent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ResetPasswordComponent.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, unref as _unref, isRef as _isRef, createVNode as _createVNode, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"flex justify-content-center border-round-lg mb-3\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex flex-column md:flex-row justify-content-between align-items-center gap-5 md:gap-3\" }\nconst _hoisted_3 = {\n key: 1,\n class: \"flex flex-row gap-1\"\n}\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"span\", { style: {\"min-width\":\"75px\"} }, \"Login ID: \", -1)\nconst _hoisted_5 = { class: \"font-semibold\" }\nconst _hoisted_6 = { key: 3 }\nconst _hoisted_7 = { class: \"flex flex-column md:flex-row gap-5 md:gap-2\" }\nconst _hoisted_8 = {\n key: 1,\n class: \"w-full\"\n}\nconst _hoisted_9 = { class: \"p-float-label\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"firstName\" }, \"First Name\", -1)\nconst _hoisted_11 = { class: \"p-error\" }\nconst _hoisted_12 = {\n key: 3,\n class: \"w-full\"\n}\nconst _hoisted_13 = { class: \"p-float-label\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"middleName\" }, \"Middle Name\", -1)\nconst _hoisted_15 = { class: \"p-error\" }\nconst _hoisted_16 = {\n key: 5,\n class: \"w-full\"\n}\nconst _hoisted_17 = { class: \"p-float-label\" }\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"lastName\" }, \"Last Name\", -1)\nconst _hoisted_19 = { class: \"p-error\" }\nconst _hoisted_20 = { class: \"flex flex-column md:flex-row gap-5 md:gap-2\" }\nconst _hoisted_21 = {\n key: 1,\n class: \"w-full\"\n}\nconst _hoisted_22 = { class: \"p-float-label\" }\nconst _hoisted_23 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"email\" }, \"E-Mail Address\", -1)\nconst _hoisted_24 = { class: \"p-error\" }\nconst _hoisted_25 = {\n key: 3,\n class: \"w-full\"\n}\nconst _hoisted_26 = { class: \"p-float-label\" }\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"title\" }, \"Title\", -1)\nconst _hoisted_28 = { class: \"flex flex-column md:flex-row gap-5 md:gap-2\" }\nconst _hoisted_29 = {\n key: 1,\n class: \"w-full\"\n}\nconst _hoisted_30 = { class: \"p-float-label\" }\nconst _hoisted_31 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"employeeId\" }, \"Employee ID\", -1)\nconst _hoisted_32 = {\n key: 3,\n class: \"w-full\"\n}\nconst _hoisted_33 = { class: \"p-float-label\" }\nconst _hoisted_34 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"hireDate\" }, \"Hire Date\", -1)\nconst _hoisted_35 = { class: \"p-error\" }\nconst _hoisted_36 = {\n key: 5,\n class: \"w-full\"\n}\nconst _hoisted_37 = { class: \"p-float-label\" }\nconst _hoisted_38 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"hireDate\" }, \"Import Date\", -1)\nconst _hoisted_39 = { class: \"flex flex-row justify-content-center md:justify-content-end\" }\nconst _hoisted_40 = { key: 1 }\n\nimport useAuthStore from '@/store/auth.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport useAccountStore from '@/store/account.store';\r\nimport updateUser from '@/models/user/updateUser';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport { useForm, useField } from 'vee-validate';\r\nimport { computed, onMounted, ref } from 'vue';\r\nimport * as zod from 'zod';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'UpdateProfileInfoComponent',\n setup(__props) {\n\r\nconst authStore = useAuthStore();\r\nconst accountStore = useAccountStore();\r\nconst mainStore = useMainStore();\r\n\r\naccountStore.$onAction(({ after, name }) => {\r\n after(async () => {\r\n if (['updateProfile', 'getUserProfileByUserProfileId'].includes(name)) {\r\n await initialize()\r\n }\r\n })\r\n})\r\n\r\nconst { handleSubmit, errors, resetForm } = useForm({\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n firstName: zod.string({ required_error: 'First name is required' }),\r\n middleName: zod.string().optional().nullable(),\r\n lastName: zod.string({ required_error: 'Last name is required' }),\r\n email: zod.string().email('please enter a valid email address').optional(),\r\n userStatus: zod.string(),\r\n title: zod.string().optional().nullable(),\r\n hireDate: zod.date().optional(),\r\n employeeId: zod.string().optional().nullable(),\r\n })\r\n )\r\n});\r\n\r\nconst { value: firstName } = useField('firstName');\r\nconst { value: middleName } = useField('middleName');\r\nconst { value: lastName } = useField('lastName');\r\nconst { value: email } = useField('email');\r\nconst { value: userStatus } = useField('userStatus');\r\nconst { value: title } = useField('title');\r\nconst { value: hireDate } = useField('hireDate');\r\nconst { value: employeeId } = useField('employeeId');\r\n\r\nconst username = ref();\r\nconst displayName = ref();\r\nconst importDate = ref();\r\nconst accountStatusOptions = ['Active', 'Disabled'];\r\n\r\nconst userProfileId = computed(() => accountStore.getActiveUserProfileId);\r\nconst isLoading = computed(() => mainStore.isBusy);\r\nconst isStatusDisabled = computed(() => userProfileId.value == authStore.getUserProfileId);\r\n\r\nonMounted(async () => initialize());\r\n\r\nconst updateProfile = handleSubmit(async (data) => {\r\n if (!userProfileId.value)\r\n return mainStore.setErrorMsg('Profile not found. Please Refresh page.');\r\n\r\n const userProfile: updateUser = {\r\n userId: userProfileId.value,\r\n email: data.email,\r\n isDisabled: (data.userStatus === 'Disabled'),\r\n firstName: data.firstName,\r\n middleName: data.middleName,\r\n lastName: data.lastName,\r\n title: data.title,\r\n employeeId: data.employeeId,\r\n hireDate: safeTryParseDate(data.hireDate),\r\n }\r\n\r\n await accountStore.updateProfile(userProfile)\r\n .then(() => mainStore.setInfoMsg('Successfully updated User Profile'))\r\n .catch(() => {});\r\n});\r\n\r\nasync function initialize() {\r\n const userProfile = accountStore.getActiveUserProfile;\r\n\r\n if (!userProfile.userId)\r\n return;\r\n\r\n username.value = userProfile.userName;\r\n displayName.value = userProfile.displayName ?? '';\r\n importDate.value = safeTryParseDate(userProfile.importDate);\r\n\r\n resetForm({\r\n values: {\r\n firstName: userProfile.firstName,\r\n middleName: userProfile.middleName,\r\n lastName: userProfile.lastName,\r\n email: userProfile.email,\r\n userStatus: userProfile.isDisabled ? 'Disabled' : 'Active',\r\n title: userProfile.title,\r\n employeeId: userProfile.employeeId,\r\n hireDate: safeTryParseDate(userProfile.hireDate),\r\n }\r\n })\r\n}\r\n\r\nfunction safeTryParseDate(date: Date | undefined): Date | undefined {\r\n if (!date)\r\n return undefined;\r\n\r\n const timestamp = Date.parse(date.toString());\r\n\r\n const isDate = !isNaN(timestamp);\r\n\r\n return isDate ? new Date(date) : undefined;\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Skeleton = _resolveComponent(\"Skeleton\")!\n const _component_SelectButton = _resolveComponent(\"SelectButton\")!\n const _component_InputText = _resolveComponent(\"InputText\")!\n const _component_Calendar = _resolveComponent(\"Calendar\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n class: \"flex flex-column my-5 px-5 gap-5\",\n onSubmit: _cache[9] || (_cache[9] = \n//@ts-ignore\n(...args) => (_unref(updateProfile) && _unref(updateProfile)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n class: \"h-2rem w-10rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(username.value), 1)\n ])),\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 2,\n class: \"h-2rem w-10rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createVNode(_component_SelectButton, {\n modelValue: _unref(userStatus),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(userStatus) ? (userStatus).value = $event : null)),\n options: accountStatusOptions,\n style: {\"min-width\":\"190px\"},\n disabled: isStatusDisabled.value\n }, null, 8, [\"modelValue\", \"disabled\"])\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n class: \"h-2rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"span\", _hoisted_9, [\n _createVNode(_component_InputText, {\n modelValue: _unref(firstName),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(firstName) ? (firstName).value = $event : null)),\n id: \"firstName\",\n type: \"text\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).firstName }])\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_10\n ]),\n _createElementVNode(\"small\", _hoisted_11, _toDisplayString(_unref(errors)[\"firstName\"]), 1)\n ])),\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 2,\n class: \"h-2rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"span\", _hoisted_13, [\n _createVNode(_component_InputText, {\n modelValue: _unref(middleName),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(middleName) ? (middleName).value = $event : null)),\n id: \"middleName\",\n type: \"text\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).middleName }])\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_14\n ]),\n _createElementVNode(\"small\", _hoisted_15, _toDisplayString(_unref(errors)[\"middleName\"]), 1)\n ])),\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 4,\n class: \"h-2rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n _createElementVNode(\"span\", _hoisted_17, [\n _createVNode(_component_InputText, {\n modelValue: _unref(lastName),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(lastName) ? (lastName).value = $event : null)),\n id: \"lastName\",\n type: \"text\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).lastName }])\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_18\n ]),\n _createElementVNode(\"small\", _hoisted_19, _toDisplayString(_unref(errors)[\"lastName\"]), 1)\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n class: \"h-2rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_21, [\n _createElementVNode(\"span\", _hoisted_22, [\n _createVNode(_component_InputText, {\n modelValue: _unref(email),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(email) ? (email).value = $event : null)),\n id: \"email\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).email }]),\n type: \"text\"\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_23\n ]),\n _createElementVNode(\"small\", _hoisted_24, _toDisplayString(_unref(errors)[\"email\"]), 1)\n ])),\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 2,\n class: \"h-2rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_25, [\n _createElementVNode(\"span\", _hoisted_26, [\n _createVNode(_component_InputText, {\n modelValue: _unref(title),\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_isRef(title) ? (title).value = $event : null)),\n id: \"title\",\n class: \"w-full\",\n type: \"text\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_27\n ])\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_28, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n class: \"h-2rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_29, [\n _createElementVNode(\"span\", _hoisted_30, [\n _createVNode(_component_InputText, {\n modelValue: _unref(employeeId),\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_isRef(employeeId) ? (employeeId).value = $event : null)),\n id: \"employeeId\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).employeeId }]),\n type: \"text\"\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_31\n ])\n ])),\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 2,\n class: \"h-2rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_32, [\n _createElementVNode(\"span\", _hoisted_33, [\n _createVNode(_component_Calendar, {\n modelValue: _unref(hireDate),\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => (_isRef(hireDate) ? (hireDate).value = $event : null)),\n inputId: \"hireDate\",\n iconDisplay: \"input\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).hireDate }]),\n \"show-icon\": \"\"\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_34\n ]),\n _createElementVNode(\"small\", _hoisted_35, _toDisplayString(_unref(errors)[\"hireDate\"]), 1)\n ])),\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 4,\n class: \"h-2rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_36, [\n _createElementVNode(\"span\", _hoisted_37, [\n _createVNode(_component_Calendar, {\n modelValue: importDate.value,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((importDate).value = $event)),\n inputId: \"importDate\",\n iconDisplay: \"input\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).hireDate }]),\n disabled: \"\",\n \"show-icon\": \"\"\n }, null, 8, [\"modelValue\", \"class\"]),\n _hoisted_38\n ])\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_39, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n class: \"h-2rem w-8rem\",\n borderRadius: \"16px\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_40, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ]))\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./UpdateProfileInfoComponent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./UpdateProfileInfoComponent.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"border-round-lg p-3 mb-5\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex justify-content-center\" }\nconst _hoisted_3 = { class: \"flex gap-2\" }\nconst _hoisted_4 = { class: \"flex flex-column gap-2\" }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"span\", null, \"Are you sure you want to drop this course?\", -1)\nconst _hoisted_6 = { class: \"font-semibold\" }\nconst _hoisted_7 = { class: \"flex justify-content-end mt-3\" }\n\nimport useCourseAssignmentStore from '@/store/courseAssignment.store';\r\nimport useAccountStore from '@/store/account.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport router from '@/router';\r\nimport {convertStatusToUserFriendly, getStatusStyle} from '@/helpers/dataTableHelper';\r\nimport IStudentAssignment from '@/models/courses/StudentAssignment/IStudentAssignment';\r\nimport {computed, onMounted, ref} from 'vue';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'UserCourseAssignment',\n setup(__props) {\n\r\nconst mainStore = useMainStore();\r\nconst accountStore = useAccountStore();\r\nconst courseAssignmentStore = useCourseAssignmentStore();\r\n\r\naccountStore.$onAction(({ after, name }) => {\r\n after(async () => {\r\n if (name == 'getUserProfileByUserProfileId')\r\n await initializeValues()\r\n })\r\n})\r\n\r\nconst assignments = ref([]);\r\nconst courseToBeDropped = ref();\r\nconst showConfirmDropDialog = ref(false);\r\n\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(() => initializeValues());\r\n\r\nasync function initializeValues() {\r\n const userProfileId = accountStore.getActiveUserProfileId;\r\n\r\n if (!userProfileId)\r\n return;\r\n\r\n try {\r\n assignments.value = await courseAssignmentStore.getAssignmentsForStudent(userProfileId);\r\n } catch (e) {\r\n assignments.value = [];\r\n console.error('Error getting student assignments', e);\r\n }\r\n}\r\n\r\nfunction confirmCourseDrop(courseId: number) {\r\n if (!courseId)\r\n return mainStore.setErrorMsg('Invalid student assignment');\r\n\r\n courseToBeDropped.value = courseId;\r\n\r\n showConfirmDropDialog.value = true;\r\n}\r\n\r\nasync function dropAssignment() {\r\n const assignmentToBeDropped = assignments.value.find(a => a.courseId == courseToBeDropped.value);\r\n\r\n if (!assignmentToBeDropped)\r\n return mainStore.setErrorMsg('Invalid student assignment');\r\n\r\n try {\r\n await courseAssignmentStore.dropAssignment(assignmentToBeDropped.studentId, assignmentToBeDropped.courseId);\r\n\r\n await initializeValues();\r\n } finally {\r\n showConfirmDropDialog.value = false;\r\n }\r\n}\r\n\r\nfunction getCourseName(courseId: number) {\r\n const course = assignments.value.find(a => a.courseId == courseId)?.course;\r\n\r\n return course?.name ?? '';\r\n}\r\n\r\nfunction clearDropData() {\r\n courseToBeDropped.value = undefined;\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Column = _resolveComponent(\"Column\")!\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_DataTable = _resolveComponent(\"DataTable\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_DataTable, {\n scrollHeight: \"35rem\",\n style: {\"background-color\":\"var(--table-header-gray)\"},\n lazy: \"\",\n scrollable: \"\",\n value: assignments.value,\n loading: isLoading.value,\n rows: 10,\n totalRecords: assignments.value.length\n }, {\n default: _withCtx(() => [\n _createVNode(_component_Column, {\n header: \"Course\",\n field: \"course.name\"\n }),\n _createVNode(_component_Column, {\n header: \"Status\",\n field: \"status\"\n }, {\n body: _withCtx(({ data }) => [\n _createElementVNode(\"div\", {\n class: \"border-round-lg px-2 py-1 w-full\",\n style: _normalizeStyle({ \r\n backgroundColor: `var(--${ _unref(getStatusStyle)(data.status) })`,\r\n color: `var(--${ _unref(getStatusStyle)(data.status) }-text-color)`,\r\n })\n }, [\n _createElementVNode(\"span\", _hoisted_2, _toDisplayString(_unref(convertStatusToUserFriendly)(data.status)), 1)\n ], 4)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n header: \"Enroll Date\",\n field: \"enrollDate\"\n }, {\n body: _withCtx(({ data }) => [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", null, _toDisplayString(!data.enrollDate ? '' : new Date(data.enrollDate).toLocaleDateString()), 1)\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, null, {\n body: _withCtx(({ data }) => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_Button, {\n label: \"Edit\",\n icon: \"pi pi-pencil\",\n \"data-ai-id\": \"assignment_editAssignment\",\n onClick: ($event: any) => (_unref(router).push({ path: '/course-assignment', query: { studentId: data.studentId, courseId: data.courseId } }))\n }, null, 8, [\"onClick\"]),\n _createVNode(_component_Button, {\n icon: \"pi pi-trash\",\n severity: \"danger\",\n \"data-ai-id\": \"assignment_promptDropCourse\",\n outlined: \"\",\n onClick: ($event: any) => (confirmCourseDrop(data.courseId))\n }, null, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"value\", \"loading\", \"totalRecords\"]),\n _createVNode(_component_Dialog, {\n visible: showConfirmDropDialog.value,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => ((showConfirmDropDialog).value = $event)),\n modal: \"\",\n header: \"Are you sure?\",\n onHide: clearDropData,\n draggable: false\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _createElementVNode(\"span\", _hoisted_6, _toDisplayString(getCourseName(courseToBeDropped.value)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_component_Button, {\n label: \"No\",\n icon: \"pi pi-times\",\n class: \"mr-3\",\n \"data-ai-id\": \"assignment_closeDropCourseDialog\",\n text: \"\",\n autofocus: \"\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (showConfirmDropDialog.value = false))\n }),\n _createVNode(_component_Button, {\n label: \"Yes\",\n icon: \"pi pi-check\",\n \"data-ai-id\": \"assignment_dropCourse\",\n onClick: dropAssignment\n })\n ])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./UserCourseAssignment.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./UserCourseAssignment.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, isRef as _isRef, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-38fa5fae\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"user-org-container\" }\nconst _hoisted_2 = { class: \"org-search\" }\nconst _hoisted_3 = { key: 0 }\nconst _hoisted_4 = { class: \"p-float-label\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { for: \"corporation\" }, \"Corporation\", -1))\nconst _hoisted_6 = { key: 1 }\nconst _hoisted_7 = { class: \"p-float-label\" }\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { for: \"region\" }, \"Region\", -1))\nconst _hoisted_9 = { key: 2 }\nconst _hoisted_10 = { class: \"p-float-label\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { for: \"division\" }, \"Division\", -1))\nconst _hoisted_12 = { key: 3 }\nconst _hoisted_13 = { class: \"p-float-label\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { for: \"facility\" }, \"Facility\", -1))\nconst _hoisted_15 = { key: 4 }\nconst _hoisted_16 = { class: \"p-float-label\" }\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { for: \"department\" }, \"Department\", -1))\nconst _hoisted_18 = { class: \"update-action\" }\n\nimport {computed, onBeforeMount, watch} from 'vue';\r\nimport useAccountStore from '@/store/account.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport useOrganizationHierarchy from \"@/composition-api/useOrganizationHierarchy\";\r\nimport UserOrgLevels from '@/models/user/OrganizationLevel/IUserOrgLevels';\r\nimport IOrganizationHierarchy from \"@/models/user/OrganizationLevel/IOrganizationHierarchy\";\r\nimport ISimpleCorporation from \"@/models/user/OrganizationLevel/Corporation/ISimpleCorporation\";\r\nimport ISimpleRegion from \"@/models/user/OrganizationLevel/Region/ISimpleRegion\";\r\nimport ISimpleDivision from \"@/models/user/OrganizationLevel/Division/ISimpleDivision\";\r\nimport ISimpleFacility from \"@/models/user/OrganizationLevel/Facility/ISimpleFacility\";\r\nimport ISimpleDepartment from \"@/models/user/OrganizationLevel/Department/ISimpleDepartment\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'UserOrgComponent',\n setup(__props) {\n\r\nconst mainStore = useMainStore();\r\nconst accountStore = useAccountStore();\r\nconst {\r\n corporationId,\r\n regionId,\r\n divisionId,\r\n facilityId,\r\n departmentId,\r\n\r\n corporations,\r\n regions,\r\n divisions,\r\n facilities,\r\n departments,\r\n\r\n isCorporationLoading,\r\n isRegionLoading,\r\n isDivisionLoading,\r\n isFacilityLoading,\r\n isDepartmentLoading,\r\n\r\n isRegionDisabled,\r\n isDivisionDisabled,\r\n isFacilityDisabled,\r\n isDepartmentDisabled,\r\n\r\n shouldShowCorporation,\r\n shouldShowRegion,\r\n shouldShowDivision,\r\n shouldShowFacility,\r\n shouldShowDepartment,\r\n \r\n getCorporations,\r\n getRegionByCorp,\r\n getDivisionsByRegion,\r\n getFacilitiesByDivision,\r\n getDepartmentsByFacility,\r\n manualInitialization,\r\n initializationComplete\r\n \r\n} = useOrganizationHierarchy();\r\n\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nconst orgHierarchy = computed(() => ({\r\n corporation: accountStore.getActiveUserProfile.corporation ?? {} as ISimpleCorporation,\r\n region: accountStore.getActiveUserProfile.region ?? {} as ISimpleRegion,\r\n division: accountStore.getActiveUserProfile.division ?? {} as ISimpleDivision,\r\n facility: accountStore.getActiveUserProfile.facility ?? {} as ISimpleFacility,\r\n department: accountStore.getActiveUserProfile.department ?? {} as ISimpleDepartment\r\n} as IOrganizationHierarchy));\r\n\r\nonBeforeMount(() => manualInitialization.value = true);\r\n\r\nwatch(initializationComplete, async (newVal, oldVal) => {\r\n if (newVal === oldVal)\r\n return;\r\n\r\n if (initializationComplete.value)\r\n await initializeValues();\r\n})\r\n\r\nasync function initializeValues() {\r\n const corporation = orgHierarchy.value?.corporation;\r\n\r\n if (shouldShowCorporation.value) {\r\n await getCorporations();\r\n await getRegionByCorp(corporation?.corporationId);\r\n corporationId.value = corporation?.corporationId;\r\n } else {\r\n corporations.value = corporation ? [corporation] : [];\r\n corporationId.value = corporation?.corporationId;\r\n } \r\n \r\n const region = orgHierarchy.value?.region;\r\n if (shouldShowRegion.value) {\r\n await getDivisionsByRegion(region?.regionId);\r\n regionId.value = region?.regionId;\r\n }\r\n else {\r\n regions.value = region ? [region] : [];\r\n regionId.value = region?.regionId;\r\n }\r\n\r\n const division = orgHierarchy.value?.division;\r\n if (shouldShowDivision.value) {\r\n await getFacilitiesByDivision(division?.divisionId);\r\n divisionId.value = division?.divisionId;\r\n }\r\n else {\r\n divisions.value = division ? [division] : [];\r\n divisionId.value = division?.divisionId;\r\n }\r\n \r\n const facility = orgHierarchy.value?.facility;\r\n if (shouldShowFacility.value) {\r\n await getDepartmentsByFacility(facility?.facilityId);\r\n facilityId.value = facility?.facilityId;\r\n }\r\n else {\r\n facilities.value = facility ? [facility] : [];\r\n facilityId.value = facility?.facilityId;\r\n }\r\n \r\n if (shouldShowDepartment.value) {\r\n departmentId.value = orgHierarchy.value?.department?.departmentId;\r\n }\r\n}\r\n\r\nasync function updateUserOrgLevels() {\r\n const userProfileId = accountStore.getActiveUserProfileId;\r\n\r\n if (!userProfileId)\r\n return mainStore.setErrorMsg('User Id not found, please refresh page.');\r\n\r\n const updateOrgMdl: UserOrgLevels = {\r\n userProfileId: userProfileId,\r\n corporationId: corporationId.value,\r\n regionId: regionId.value,\r\n divisionId: divisionId.value,\r\n facilityId: facilityId.value,\r\n departmentId: departmentId.value\r\n }\r\n \r\n await accountStore.updateUserOrgLevels(updateOrgMdl);\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"section\", _hoisted_1, [\n _createElementVNode(\"form\", {\n onSubmit: _withModifiers(updateUserOrgLevels, [\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_unref(shouldShowCorporation))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", _hoisted_4, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(corporationId),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(corporationId) ? (corporationId).value = $event : null)),\n \"input-id\": \"corporation\",\n \"option-label\": \"name\",\n \"option-value\": \"corporationId\",\n placeholder: \"Select a Corporation\",\n filter: \"\",\n \"show-clear\": \"\",\n options: _unref(corporations),\n loading: _unref(isCorporationLoading),\n onChange: _cache[1] || (_cache[1] = ($event: any) => (_unref(getRegionByCorp)(_unref(corporationId))))\n }, null, 8, [\"modelValue\", \"options\", \"loading\"]),\n _hoisted_5\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(shouldShowRegion))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"span\", _hoisted_7, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(regionId),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(regionId) ? (regionId).value = $event : null)),\n \"input-Id\": \"region\",\n \"option-label\": \"name\",\n \"option-value\": \"regionId\",\n placeholder: \"Select a Region\",\n filter: \"\",\n \"show-clear\": \"\",\n options: _unref(regions),\n disabled: _unref(isRegionDisabled),\n loading: _unref(isRegionLoading),\n onChange: _cache[3] || (_cache[3] = ($event: any) => (_unref(getDivisionsByRegion)(_unref(regionId))))\n }, null, 8, [\"modelValue\", \"options\", \"disabled\", \"loading\"]),\n _hoisted_8\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(shouldShowDivision))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n _createElementVNode(\"span\", _hoisted_10, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(divisionId),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(divisionId) ? (divisionId).value = $event : null)),\n \"input-Id\": \"division\",\n \"option-label\": \"name\",\n \"option-value\": \"divisionId\",\n placeholder: \"Select a Division\",\n filter: \"\",\n \"show-clear\": \"\",\n options: _unref(divisions),\n disabled: _unref(isDivisionDisabled),\n loading: _unref(isDivisionLoading),\n onChange: _cache[5] || (_cache[5] = ($event: any) => (_unref(getFacilitiesByDivision)(_unref(divisionId))))\n }, null, 8, [\"modelValue\", \"options\", \"disabled\", \"loading\"]),\n _hoisted_11\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(shouldShowFacility))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"span\", _hoisted_13, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(facilityId),\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_isRef(facilityId) ? (facilityId).value = $event : null)),\n \"input-Id\": \"facility\",\n \"option-label\": \"name\",\n \"option-value\": \"facilityId\",\n placeholder: \"Select a Facility\",\n filter: \"\",\n \"show-clear\": \"\",\n options: _unref(facilities),\n disabled: _unref(isFacilityDisabled),\n loading: _unref(isFacilityLoading),\n onChange: _cache[7] || (_cache[7] = ($event: any) => (_unref(getDepartmentsByFacility)(_unref(facilityId))))\n }, null, 8, [\"modelValue\", \"options\", \"disabled\", \"loading\"]),\n _hoisted_14\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_unref(shouldShowDepartment))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [\n _createElementVNode(\"span\", _hoisted_16, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(departmentId),\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => (_isRef(departmentId) ? (departmentId).value = $event : null)),\n \"input-Id\": \"department\",\n \"option-label\": \"name\",\n \"option-value\": \"departmentId\",\n placeholder: \"Select a Department\",\n filter: \"\",\n \"show-clear\": \"\",\n options: _unref(departments),\n disabled: _unref(isDepartmentDisabled),\n loading: _unref(isDepartmentLoading)\n }, null, 8, [\"modelValue\", \"options\", \"disabled\", \"loading\"]),\n _hoisted_17\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./UserOrgComponent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./UserOrgComponent.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./UserOrgComponent.vue?vue&type=style&index=0&id=38fa5fae&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-38fa5fae\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, resolveComponent as _resolveComponent, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, withCtx as _withCtx, createBlock as _createBlock, unref as _unref } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"border-round-lg p-3\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex flex-column gap-3\" }\nconst _hoisted_3 = { class: \"flex justify-content-between align-items-end\" }\nconst _hoisted_4 = { style: {\"color\":\"whitesmoke\",\"font-size\":\"24px\"} }\nconst _hoisted_5 = {\n class: \"flex flex-wrap gap-4\",\n style: {\"background-color\":\"var(--footer-gray)\"}\n}\nconst _hoisted_6 = [\"for\"]\nconst _hoisted_7 = { class: \"align-content-center\" }\nconst _hoisted_8 = { class: \"flex flex-row justify-content-center mt-5\" }\n\nimport HealthcareAcademyPermissions from '@/models/auth/HealthcareAcademyPermissions';\r\nimport AuthorizationLevel from \"@/models/auth/AuthorizationLevel\";\r\nimport UserPermissions from '@/models/user/UserPermissions';\r\nimport useAccountStore from '@/store/account.store';\r\nimport useAuthStore from '@/store/auth.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport { useField, useForm } from 'vee-validate';\r\nimport * as zod from 'zod';\r\nimport {computed, onMounted, ref} from 'vue';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'UserPermissionsComponent',\n setup(__props) {\n\r\nconst mainStore = useMainStore();\r\nconst authStore = useAuthStore();\r\nconst accountStore = useAccountStore();\r\n\r\nconst { handleSubmit, resetForm } = useForm({\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n addEditAdministrator: zod.boolean(),\r\n addEditStudent: zod.boolean(),\r\n assignCourses: zod.boolean(),\r\n manageCourseResults: zod.boolean(),\r\n importStudents: zod.boolean(),\r\n dropCourses: zod.boolean(),\r\n competencyEvaluator: zod.boolean(),\r\n manageAutomatedAssignments: zod.boolean(),\r\n createCustomCompetencies: zod.boolean(),\r\n })\r\n )\r\n});\r\n\r\nconst { value: addEditAdministrator } = useField('addEditAdministrator');\r\nconst { value: addEditStudent } = useField('addEditStudent');\r\nconst { value: assignCourses } = useField('assignCourses');\r\nconst { value: manageCourseResults } = useField('manageCourseResults');\r\nconst { value: importStudents } = useField('importStudents');\r\nconst { value: dropCourses } = useField('dropCourses');\r\nconst { value: competencyEvaluator } = useField('competencyEvaluator');\r\nconst { value: manageAutomatedAssignments } = useField('manageAutomatedAssignments');\r\nconst { value: createCustomCompetencies } = useField('createCustomCompetencies');\r\n\r\nconst userProfileId = ref();\r\nconst permissionCategories = ref([\r\n {\r\n key: 1,\r\n label: 'Course Management',\r\n icon: 'course-management-icon-white',\r\n categoryPermissions: [\r\n {\r\n key: 1,\r\n label: 'Assign Courses',\r\n inputId: 'assignCourses',\r\n hcaPermission: HealthcareAcademyPermissions.AllowCourseAssign,\r\n ref: assignCourses\r\n },\r\n {\r\n key: 2,\r\n label: 'Drop Courses',\r\n inputId: 'dropCourses',\r\n hcaPermission: HealthcareAcademyPermissions.DropCourse,\r\n ref: dropCourses\r\n },\r\n {\r\n key: 3,\r\n label: 'Enter/Edit Course Results',\r\n inputId: 'manageCourseResults',\r\n hcaPermission: HealthcareAcademyPermissions.ManageCourseResults,\r\n ref: manageCourseResults\r\n },\r\n {\r\n key: 4,\r\n label: 'Manage Automated Assignments',\r\n inputId: 'manageAutomatedAssignments',\r\n hcaPermission: HealthcareAcademyPermissions.ManageAutomatedAssignments,\r\n ref: manageAutomatedAssignments\r\n },\r\n ]\r\n },\r\n {\r\n key: 2,\r\n label: 'User Management',\r\n icon: 'user-management-icon-white',\r\n categoryPermissions: [\r\n {\r\n key: 1,\r\n label: 'Add/Edit Student',\r\n inputId: 'addEditStudent',\r\n hcaPermission: HealthcareAcademyPermissions.ManageStudents,\r\n ref: addEditStudent\r\n },\r\n {\r\n key: 2,\r\n label: 'Add/Edit Administrator',\r\n inputId: 'addEditAdministrator',\r\n hcaPermission: HealthcareAcademyPermissions.ManageAdmins,\r\n ref: addEditAdministrator\r\n },\r\n {\r\n key: 3,\r\n label: 'Import Students',\r\n inputId: 'importStudents',\r\n hcaPermission: HealthcareAcademyPermissions.AllowStudentImport,\r\n ref: importStudents\r\n },\r\n ]\r\n },\r\n {\r\n key: 3,\r\n label: 'eCompetencies Management',\r\n icon: 'evaluator-icon-white',\r\n categoryPermissions: [\r\n {\r\n key: 1,\r\n label: 'Evaluate Students',\r\n inputId: 'competencyEvaluator',\r\n hcaPermission: HealthcareAcademyPermissions.ManageCompetencyEvaluator,\r\n ref: competencyEvaluator\r\n },\r\n {\r\n key: 2,\r\n label: 'Create Custom Competencies',\r\n inputId: 'createCustomCompetencies',\r\n hcaPermission: HealthcareAcademyPermissions.CreateCustomCompetencies,\r\n ref: createCustomCompetencies\r\n },\r\n ]\r\n }\r\n]);\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(() => initializePermissions())\r\n\r\nasync function initializePermissions() {\r\n userProfileId.value = accountStore.getActiveUserProfileId;\r\n\r\n if (!userProfileId.value)\r\n return mainStore.setErrorMsg('User Id not found, please refresh page.');\r\n\r\n await authStore.getUserPermissions(userProfileId.value)\r\n .then((permResult) => populateWithPermissions(permResult))\r\n .catch();\r\n}\r\n\r\nfunction populateWithPermissions(permResult: UserPermissions | void) {\r\n const permissions : string[] = [];\r\n permissions.push(...permResult?.permissionsList ?? []);\r\n\r\n if (!permissions) return;\r\n\r\n resetForm({\r\n values: {\r\n addEditAdministrator: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.ManageAdmins),\r\n addEditStudent: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.ManageStudents),\r\n assignCourses: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.AllowCourseAssign),\r\n manageCourseResults: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.ManageCourseResults),\r\n importStudents: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.AllowStudentImport),\r\n dropCourses: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.DropCourse),\r\n competencyEvaluator: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.ManageCompetencyEvaluator),\r\n manageAutomatedAssignments: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.ManageAutomatedAssignments),\r\n createCustomCompetencies: caseInsensitiveArraySearch(permissions, HealthcareAcademyPermissions.CreateCustomCompetencies),\r\n }\r\n });\r\n}\r\n\r\nfunction caseInsensitiveArraySearch(perms: string[], searchValue: string) : boolean {\r\n return perms.some(e => e.toLowerCase() === searchValue.toLowerCase());\r\n}\r\n\r\nfunction isAuthorizedToDisplay(permission: HealthcareAcademyPermissions): boolean {\r\n const authLevel = authStore.getAuthorizationLevel;\r\n \r\n if (authLevel === AuthorizationLevel.SystemAdministrator)\r\n return true;\r\n \r\n return authStore.getLoggedInUsersHcaPermissions.some(e => e.toLowerCase() === permission.toLowerCase());\r\n}\r\n\r\nfunction hasDisplayablePermissions(permCategory: any): boolean {\r\n const permissions = permCategory.categoryPermissions.map((p: any) => p.hcaPermission);\r\n\r\n return permissions.some((p: any) => isAuthorizedToDisplay(p));\r\n}\r\n\r\nconst saveUserPermissions = handleSubmit(async () => {\r\n if (!userProfileId.value)\r\n return mainStore.setErrorMsg('User Id not found, please refresh page.');\r\n\r\n const permissions: UserPermissions = {\r\n userId: userProfileId.value,\r\n permissionsList: [\r\n ...(addEditAdministrator.value ? [HealthcareAcademyPermissions.ManageAdmins] : []),\r\n ...(addEditStudent.value ? [HealthcareAcademyPermissions.ManageStudents] : []),\r\n ...(assignCourses.value ? [HealthcareAcademyPermissions.AllowCourseAssign] : []),\r\n ...(manageCourseResults.value ? [HealthcareAcademyPermissions.ManageCourseResults] : []),\r\n ...(importStudents.value ? [HealthcareAcademyPermissions.AllowStudentImport] : []),\r\n ...(dropCourses.value ? [HealthcareAcademyPermissions.DropCourse] : []),\r\n ...(competencyEvaluator.value ? [HealthcareAcademyPermissions.ManageCompetencyEvaluator] : []),\r\n ...(manageAutomatedAssignments.value ? [HealthcareAcademyPermissions.ManageAutomatedAssignments] : []),\r\n ...(createCustomCompetencies.value ? [HealthcareAcademyPermissions.CreateCustomCompetencies] : []),\r\n ]\r\n };\r\n\r\n await authStore.updateUserPermissions(permissions)\r\n .then(() => mainStore.setSuccessMsg('Successfully updated user permissions.'))\r\n .catch(() => {});\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Checkbox = _resolveComponent(\"Checkbox\")!\n const _component_Card = _resolveComponent(\"Card\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n class: \"flex justify-content-center\",\n onSubmit: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_unref(saveUserPermissions) && _unref(saveUserPermissions)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(permissionCategories.value, (permCategory) => {\n return _withDirectives((_openBlock(), _createBlock(_component_Card, {\n key: permCategory.key,\n style: {\"background-color\":\"var(--footer-gray)\"}\n }, {\n title: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", _hoisted_4, _toDisplayString(permCategory.label), 1),\n _createElementVNode(\"span\", {\n class: _normalizeClass([\"pi\", permCategory.icon]),\n style: {\"width\":\"30px\",\"height\":\"30px\"}\n }, null, 2)\n ])\n ]),\n content: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(permCategory.categoryPermissions, (perm) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: perm.key\n }, [\n _createElementVNode(\"label\", {\n for: perm.inputId,\n class: \"flex gap-2 field-checkbox mb-0 p-3 border-round-lg text-200\",\n style: {\"background-color\":\"var(--hca-maroon)\"}\n }, [\n _createVNode(_component_Checkbox, {\n inputId: perm.inputId,\n modelValue: perm.ref,\n \"onUpdate:modelValue\": ($event: any) => ((perm.ref) = $event),\n binary: true\n }, null, 8, [\"inputId\", \"modelValue\", \"onUpdate:modelValue\"]),\n _createElementVNode(\"span\", _hoisted_7, _toDisplayString(perm.label), 1)\n ], 8, _hoisted_6)\n ])), [\n [_vShow, isAuthorizedToDisplay(perm.hcaPermission)]\n ])\n }), 128))\n ])\n ]),\n _: 2\n }, 1024)), [\n [_vShow, hasDisplayablePermissions(permCategory)]\n ])\n }), 128)),\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./UserPermissionsComponent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./UserPermissionsComponent.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import IOrgCourseAccess from '@/models/courses/Course/IOrgCourseAccess';\r\nimport IGridFilter from '@/models/search/IGridFilter';\r\nimport useAuthStore from '@/store/auth.store';\r\nimport useCourseStore from '@/store/course.store';\r\nimport UseOrganizationHierarchy from \"@/composition-api/useOrganizationHierarchy\";\r\nimport { FilterMatchMode } from 'primevue/api';\r\nimport {DataTableFilterMeta, DataTableSortEvent, DataTablePageEvent} from 'primevue/datatable';\r\nimport { Ref, ref, reactive, ComputedRef } from 'vue';\r\nimport ISimpleCorporation from '@/models/user/OrganizationLevel/Corporation/ISimpleCorporation';\r\nimport ISimpleRegion from '@/models/user/OrganizationLevel/Region/ISimpleRegion';\r\nimport ISimpleDivision from '@/models/user/OrganizationLevel/Division/ISimpleDivision';\r\nimport ISimpleFacility from '@/models/user/OrganizationLevel/Facility/ISimpleFacility';\r\n\r\nexport interface ICourseOrgAccessSearch {\r\n courseIdSearch: Ref,\r\n\r\n corporations: Ref,\r\n corporationId: Ref,\r\n isCorporationLoading: Ref,\r\n\r\n getRegionByCorp(updatedCorporationId: number | undefined): Promise,\r\n regions: Ref,\r\n regionId: Ref,\r\n isRegionLoading: Ref,\r\n isRegionDisabled: ComputedRef,\r\n\r\n getDivisionsByRegion(updateRegionId: number | undefined): Promise,\r\n divisions: Ref,\r\n divisionId: Ref,\r\n isDivisionLoading: Ref,\r\n isDivisionDisabled: ComputedRef,\r\n\r\n getFacilitiesByDivision(updateDivisionId: number | undefined): Promise,\r\n facilities: Ref,\r\n facilityId: Ref,\r\n isFacilityLoading: Ref,\r\n isFacilityDisabled: ComputedRef,\r\n\r\n courseOrgAccessFilters: Ref,\r\n\r\n courseOrgAccessFromSearch: Ref,\r\n totalRecords: Ref,\r\n\r\n onPage: (event : DataTablePageEvent) => Promise,\r\n onSort: (event : DataTableSortEvent) => Promise,\r\n onFilter: (event : IGridFilter) => Promise,\r\n executeSearch: () => Promise,\r\n}\r\n\r\nexport default function useCourseOrgAccessSearch(): ICourseOrgAccessSearch {\r\n const courseStore = useCourseStore();\r\n const authStore = useAuthStore();\r\n const {\r\n corporationId,\r\n corporations,\r\n isCorporationLoading,\r\n getRegionByCorp,\r\n\r\n regionId,\r\n regions,\r\n isRegionLoading,\r\n isRegionDisabled,\r\n getDivisionsByRegion,\r\n\r\n divisions,\r\n divisionId,\r\n isDivisionLoading,\r\n isDivisionDisabled,\r\n getFacilitiesByDivision,\r\n\r\n facilities,\r\n facilityId,\r\n isFacilityLoading,\r\n isFacilityDisabled,\r\n\r\n } = UseOrganizationHierarchy();\r\n\r\n const courseIdSearch: Ref = ref();\r\n\r\n const courseOrgAccessFromSearch: Ref = ref([]);\r\n const totalRecords: Ref = ref(0);\r\n\r\n const courseOrgAccessFilters: Ref = ref({\r\n courseId : {\r\n value: courseIdSearch,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n corporation: {\r\n value: corporationId,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n region: {\r\n value: regionId,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n division: {\r\n value: divisionId,\r\n matchMode: FilterMatchMode.EQUALS\r\n },\r\n facility: {\r\n value: facilityId,\r\n matchMode: FilterMatchMode.EQUALS\r\n }\r\n })\r\n\r\n let courseOrgAccessGridFilter : IGridFilter = reactive({\r\n filters: courseOrgAccessFilters.value,\r\n first: 0,\r\n rows: 10,\r\n originalEvent: {},\r\n MultiSortMeta: [],\r\n page: 0,\r\n pageCount: 0,\r\n sortField: '',\r\n sortOrder: null,\r\n });\r\n\r\n async function executeSearch() {\r\n courseOrgAccessGridFilter.requesterId = authStore.getIdentityId;\r\n\r\n try {\r\n const searchResult = await courseStore.searchOrgForCourseAccess(courseOrgAccessGridFilter)\r\n\r\n totalRecords.value = searchResult.totalRecords;\r\n courseOrgAccessFromSearch.value = searchResult.organizations;\r\n } catch (e) {\r\n totalRecords.value = 0;\r\n courseOrgAccessFromSearch.value = [];\r\n console.error(e);\r\n }\r\n }\r\n\r\n async function onPage (event : DataTablePageEvent) {\r\n courseOrgAccessGridFilter.first = event.first;\r\n courseOrgAccessGridFilter.page = event.page;\r\n courseOrgAccessGridFilter.rows = event.rows;\r\n courseOrgAccessGridFilter.originalEvent = event.originalEvent;\r\n courseOrgAccessGridFilter.pageCount = event.pageCount;\r\n\r\n await executeSearch();\r\n }\r\n\r\n async function onSort(event : DataTableSortEvent) {\r\n courseOrgAccessGridFilter.sortField = event.sortField;\r\n courseOrgAccessGridFilter.sortOrder = event.sortOrder;\r\n\r\n await executeSearch();\r\n }\r\n\r\n async function onFilter(event : IGridFilter) {\r\n courseOrgAccessGridFilter = event;\r\n\r\n await executeSearch();\r\n }\r\n\r\n return {\r\n courseIdSearch,\r\n\r\n corporations,\r\n corporationId,\r\n isCorporationLoading,\r\n\r\n getRegionByCorp,\r\n regions,\r\n regionId,\r\n isRegionLoading,\r\n isRegionDisabled,\r\n\r\n getDivisionsByRegion,\r\n divisions,\r\n divisionId,\r\n isDivisionLoading,\r\n isDivisionDisabled,\r\n\r\n getFacilitiesByDivision,\r\n facilities,\r\n facilityId,\r\n isFacilityLoading,\r\n isFacilityDisabled,\r\n\r\n courseOrgAccessFilters,\r\n courseOrgAccessFromSearch,\r\n totalRecords,\r\n onFilter,\r\n onPage,\r\n onSort,\r\n executeSearch,\r\n };\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, isRef as _isRef, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"border-round-lg p-3\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex flex-column\" }\nconst _hoisted_3 = { class: \"flex flex-column mt-5 gap-5\" }\nconst _hoisted_4 = { class: \"p-float-label w-full\" }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"corporationSearch\" }, \"Corporation\", -1)\nconst _hoisted_6 = { class: \"p-float-label w-full\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"region\" }, \"Region\", -1)\nconst _hoisted_8 = { class: \"p-float-label w-full\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"division\" }, \"Division\", -1)\nconst _hoisted_10 = { class: \"p-float-label w-full\" }\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"facility\" }, \"Facility\", -1)\nconst _hoisted_12 = { class: \"flex justify-content-center\" }\nconst _hoisted_13 = { class: \"flex w-full\" }\nconst _hoisted_14 = { class: \"flex flex-column\" }\nconst _hoisted_15 = { class: \"mt-5 w-full mr-3 min-w-150px\" }\nconst _hoisted_16 = {\n key: 1,\n class: \"flex flex-column align-items-center\"\n}\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"h-2rem\" }, \"Skilled Nursing\", -1)\nconst _hoisted_18 = { class: \"mt-5 w-full mr-3 min-w-150px\" }\nconst _hoisted_19 = {\n key: 1,\n class: \"flex flex-column align-items-center\"\n}\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"h-2rem\" }, \"eCompetency\", -1)\nconst _hoisted_21 = { class: \"mt-5 w-full mr-3 min-w-150px\" }\nconst _hoisted_22 = {\n key: 1,\n class: \"flex flex-column align-items-center\"\n}\nconst _hoisted_23 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"h-2rem\" }, \"Assisted Living\", -1)\nconst _hoisted_24 = { class: \"flex flex-row justify-content-end pb-4 mt-5\" }\n\nimport useCourseStore from '@/store/course.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport useCourseOrgAccessSearch from '@/composition-api/Search/useCourseOrgAccessSearch';\r\nimport ICourseGroupAccess from '@/models/courses/Course/ICourseGroupAccess';\r\nimport IModifyRestrictedCourse from '@/models/courses/Course/IModifyRestrictedCourse';\r\nimport IOrgCourseAccess from '@/models/courses/Course/IOrgCourseAccess';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport { useField, useForm } from 'vee-validate';\r\nimport { computed, onMounted } from 'vue';\r\nimport * as zod from 'zod';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CourseAccess',\n setup(__props) {\n\r\nconst mainStore = useMainStore();\r\nconst courseStore = useCourseStore();\r\nconst {\r\n courseIdSearch,\r\n corporations,\r\n corporationId,\r\n isCorporationLoading,\r\n\r\n getRegionByCorp,\r\n regions,\r\n regionId,\r\n isRegionLoading,\r\n isRegionDisabled,\r\n\r\n getDivisionsByRegion,\r\n divisions,\r\n divisionId,\r\n isDivisionLoading,\r\n isDivisionDisabled,\r\n\r\n getFacilitiesByDivision,\r\n facilities,\r\n facilityId,\r\n isFacilityLoading,\r\n isFacilityDisabled,\r\n\r\n courseOrgAccessFilters,\r\n courseOrgAccessFromSearch,\r\n totalRecords,\r\n onPage,\r\n executeSearch\r\n} = useCourseOrgAccessSearch();\r\n\r\ncourseStore.$onAction(({ after, name }) => {\r\n after(() => {\r\n if (name === 'getCourse'){\r\n initializeValues();\r\n }\r\n })\r\n});\r\n\r\nconst { handleSubmit, resetForm } = useForm({\r\n initialValues: {\r\n allowAccessToSkilledNursing: false,\r\n allowAccessToeCompetency: false,\r\n allowAccessToAssistedLiving: false,\r\n },\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n allowAccessToSkilledNursing: zod.boolean(),\r\n allowAccessToeCompetency: zod.boolean(),\r\n allowAccessToAssistedLiving: zod.boolean(),\r\n })\r\n )\r\n});\r\n\r\nconst { value: allowAccessToSkilledNursing } = useField('allowAccessToSkilledNursing');\r\nconst { value: allowAccessToeCompetency } = useField('allowAccessToeCompetency');\r\nconst { value: allowAccessToAssistedLiving } = useField('allowAccessToAssistedLiving');\r\n\r\nconst noOrgSelected = computed(() => !corporationId.value)\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(async() => initializeValues());\r\n\r\nfunction initializeValues() {\r\n const course = courseStore.getActiveCourse;\r\n\r\n if (!course?.courseId)\r\n return;\r\n\r\n courseIdSearch.value = course.courseId;\r\n\r\n resetForm({ values: {\r\n allowAccessToSkilledNursing: course.allowAccessToSkilledNursing ?? false,\r\n allowAccessToAssistedLiving: course.allowAccessToAssistedLiving ?? false,\r\n allowAccessToeCompetency: course.allowAccessToeCompetency ?? false\r\n }\r\n })\r\n}\r\n\r\nconst onSubmit = handleSubmit(async (values: any) => {\r\n if (!courseIdSearch.value)\r\n return mainStore.setErrorMsg('Course Id not found.')\r\n\r\n const {\r\n allowAccessToSkilledNursing,\r\n allowAccessToeCompetency,\r\n allowAccessToAssistedLiving,\r\n\t} = values\r\n\r\n const courseGroupAccess: ICourseGroupAccess = {\r\n courseId: courseIdSearch.value,\r\n allowAccessToSkilledNursing,\r\n allowAccessToeCompetency,\r\n allowAccessToAssistedLiving,\r\n };\r\n\r\n await courseStore.updateCourseGroupAccess(courseGroupAccess);\r\n});\r\n\r\nasync function revokeCourseAccess(orgAccess: IOrgCourseAccess) {\r\n if (!courseIdSearch.value)\r\n return mainStore.setErrorMsg('Course Id not found.')\r\n\r\n const editAccessMdl: IModifyRestrictedCourse = {\r\n courseId: courseIdSearch.value,\r\n organizationLevel: orgAccess.organizationLevel,\r\n organizationId: orgAccess.organizationId,\r\n }\r\n\r\n try {\r\n await courseStore.revokeCourseAccess(editAccessMdl);\r\n\r\n const updatedIndex = courseOrgAccessFromSearch.value\r\n .findIndex(i =>\r\n i.organizationId === orgAccess.organizationId &&\r\n i.organizationLevel === orgAccess.organizationLevel)\r\n\r\n if (updatedIndex == -1) {\r\n mainStore.setErrorMsg('Access Removed. Unable to find organization. Please refresh page.');\r\n return;\r\n }\r\n\r\n courseOrgAccessFromSearch.value.filter(i =>\r\n i.organizationId === orgAccess.organizationId &&\r\n i.organizationLevel === orgAccess.organizationLevel)[0].isAllowedAccessToCourse = false;\r\n } catch(e) {\r\n console.error('Error revoking course access', e);\r\n }\r\n}\r\n \r\nasync function enableCourseAccess(orgAccess: IOrgCourseAccess) {\r\n if (!courseIdSearch.value)\r\n return mainStore.setErrorMsg('Course Id not found.')\r\n\r\n const editAccessMdl: IModifyRestrictedCourse = {\r\n courseId: courseIdSearch.value,\r\n organizationLevel: orgAccess.organizationLevel,\r\n organizationId: orgAccess.organizationId,\r\n }\r\n\r\n try {\r\n await courseStore.enableCourseAccess(editAccessMdl)\r\n\r\n const updatedIndex = courseOrgAccessFromSearch.value\r\n .findIndex(i => \r\n i.organizationId === orgAccess.organizationId && \r\n i.organizationLevel === orgAccess.organizationLevel)\r\n\r\n if (!updatedIndex) \r\n return mainStore.setErrorMsg('Access Enabled. Unable to find organization. Please refresh page.');\r\n\r\n courseOrgAccessFromSearch.value.filter(i => \r\n i.organizationId === orgAccess.organizationId && \r\n i.organizationLevel === orgAccess.organizationLevel)[0]\r\n .isAllowedAccessToCourse = true;\r\n }\r\n catch {\r\n console.error('Error enabling course access');\r\n } \r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_Column = _resolveComponent(\"Column\")!\n const _component_DataTable = _resolveComponent(\"DataTable\")!\n const _component_TabPanel = _resolveComponent(\"TabPanel\")!\n const _component_Skeleton = _resolveComponent(\"Skeleton\")!\n const _component_InputSwitch = _resolveComponent(\"InputSwitch\")!\n const _component_TabView = _resolveComponent(\"TabView\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_TabView, null, {\n default: _withCtx(() => [\n _createVNode(_component_TabPanel, { header: \"Assign By Organization\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", _hoisted_4, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(corporationId),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(corporationId) ? (corporationId).value = $event : null)),\n filter: \"\",\n inputId: \"corporationSearch\",\n class: \"w-full\",\n optionLabel: \"name\",\n optionValue: \"corporationId\",\n placeholder: \"Select an Corporation\",\n options: _unref(corporations),\n loading: _unref(isCorporationLoading),\n \"show-clear\": \"\",\n onChange: _cache[1] || (_cache[1] = ($event: any) => (_unref(getRegionByCorp)(_unref(corporationId))))\n }, null, 8, [\"modelValue\", \"options\", \"loading\"]),\n _hoisted_5\n ]),\n _createElementVNode(\"span\", _hoisted_6, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(regionId),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(regionId) ? (regionId).value = $event : null)),\n filter: \"\",\n inputId: \"region\",\n class: \"w-full\",\n optionLabel: \"name\",\n optionValue: \"regionId\",\n placeholder: \"Select a Region\",\n options: _unref(regions),\n disabled: _unref(isRegionDisabled),\n loading: _unref(isRegionLoading),\n \"show-clear\": \"\",\n onChange: _cache[3] || (_cache[3] = ($event: any) => (_unref(getDivisionsByRegion)(_unref(regionId))))\n }, null, 8, [\"modelValue\", \"options\", \"disabled\", \"loading\"]),\n _hoisted_7\n ]),\n _createElementVNode(\"span\", _hoisted_8, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(divisionId),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(divisionId) ? (divisionId).value = $event : null)),\n inputId: \"division\",\n class: \"w-full\",\n optionLabel: \"name\",\n optionValue: \"divisionId\",\n placeholder: \"Select a Division\",\n options: _unref(divisions),\n disabled: _unref(isDivisionDisabled),\n loading: _unref(isDivisionLoading),\n filter: \"\",\n \"show-clear\": \"\",\n onChange: _cache[5] || (_cache[5] = ($event: any) => (_unref(getFacilitiesByDivision)(_unref(divisionId))))\n }, null, 8, [\"modelValue\", \"options\", \"disabled\", \"loading\"]),\n _hoisted_9\n ]),\n _createElementVNode(\"span\", _hoisted_10, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(facilityId),\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_isRef(facilityId) ? (facilityId).value = $event : null)),\n inputId: \"facility\",\n class: \"w-full\",\n optionLabel: \"name\",\n optionValue: \"facilityId\",\n placeholder: \"Select a Facility\",\n options: _unref(facilities),\n disabled: _unref(isFacilityDisabled),\n loading: _unref(isFacilityLoading),\n filter: \"\",\n \"show-clear\": \"\"\n }, null, 8, [\"modelValue\", \"options\", \"disabled\", \"loading\"]),\n _hoisted_11\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _createVNode(_component_Button, {\n icon: \"pi pi-search\",\n label: \"Search\",\n \"aria-label\": \"Search\",\n onClick: _unref(executeSearch),\n loading: isLoading.value,\n disabled: noOrgSelected.value\n }, null, 8, [\"onClick\", \"loading\", \"disabled\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createVNode(_component_DataTable, {\n rows: 10,\n \"rows-per-page-options\": [10, 20, 40 , 60],\n \"total-records\": _unref(totalRecords),\n value: _unref(courseOrgAccessFromSearch),\n loading: isLoading.value,\n filters: _unref(courseOrgAccessFilters),\n \"onUpdate:filters\": _cache[7] || (_cache[7] = ($event: any) => (_isRef(courseOrgAccessFilters) ? (courseOrgAccessFilters).value = $event : null)),\n scrollHeight: \"35rem\",\n paginator: \"\",\n scrollable: \"\",\n lazy: \"\",\n class: \"w-full pb-3 pb-3 mt-3 md:mt-5\",\n onPage: _unref(onPage)\n }, {\n default: _withCtx(() => [\n _createVNode(_component_Column, {\n header: \"Organization Level\",\n field: \"organizationLevel\"\n }),\n _createVNode(_component_Column, {\n header: \"Organization Name\",\n field: \"name\"\n }),\n _createVNode(_component_Column, { header: \"Modify Access\" }, {\n body: _withCtx(({ data }) => [\n _createElementVNode(\"div\", null, [\n (data.isAllowedAccessToCourse)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n label: \"Remove Access\",\n onClick: ($event: any) => (revokeCourseAccess(data)),\n severity: \"danger\"\n }, null, 8, [\"onClick\"]))\n : (_openBlock(), _createBlock(_component_Button, {\n key: 1,\n label: \"Enable Access\",\n onClick: ($event: any) => (enableCourseAccess(data)),\n severity: \"success\"\n }, null, 8, [\"onClick\"]))\n ])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"total-records\", \"value\", \"loading\", \"filters\", \"onPage\"])\n ])\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_TabPanel, { header: \"Assign By Group\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"form\", {\n onSubmit: _cache[11] || (_cache[11] = \n//@ts-ignore\n(...args) => (_unref(onSubmit) && _unref(onSubmit)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n _hoisted_17,\n _createVNode(_component_InputSwitch, {\n modelValue: _unref(allowAccessToSkilledNursing),\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => (_isRef(allowAccessToSkilledNursing) ? (allowAccessToSkilledNursing).value = $event : null)),\n disabled: isLoading.value\n }, null, 8, [\"modelValue\", \"disabled\"])\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n _hoisted_20,\n _createVNode(_component_InputSwitch, {\n modelValue: _unref(allowAccessToeCompetency),\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => (_isRef(allowAccessToeCompetency) ? (allowAccessToeCompetency).value = $event : null)),\n disabled: isLoading.value\n }, null, 8, [\"modelValue\", \"disabled\"])\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_22, [\n _hoisted_23,\n _createVNode(_component_InputSwitch, {\n modelValue: _unref(allowAccessToAssistedLiving),\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = ($event: any) => (_isRef(allowAccessToAssistedLiving) ? (allowAccessToAssistedLiving).value = $event : null)),\n disabled: isLoading.value\n }, null, 8, [\"modelValue\", \"disabled\"])\n ]))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createVNode(_component_Button, {\n label: \"Save\",\n icon: \"pi pi-save\",\n \"icon-pos\": \"right\",\n type: \"submit\"\n })\n ])\n ], 32)\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./CourseAccess.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CourseAccess.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, resolveComponent as _resolveComponent, isRef as _isRef, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"border-round-lg\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex flex-column w-full p-3\" }\nconst _hoisted_3 = { class: \"flex flex-column\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"mb-3\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"\" }, \"To be inserted in the course menu below the title and above the lesson links (applies only to system and generated menus)\")\n], -1)\nconst _hoisted_5 = { class: \"flex flex-column\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"my-3\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"\" }, \"To be inserted in the course menu below the lesson links (applies only to system and generated menus)\")\n], -1)\nconst _hoisted_7 = { class: \"flex flex-row justify-content-center md:justify-content-end mt-5 gap-3\" }\n\nimport useMainStore from '@/store/main.store';\r\nimport useCourseStore from '@/store/course.store';\r\nimport ICourseMenuContent from '@/models/courses/Course/ICourseMenuContent';\r\nimport {toTypedSchema} from '@vee-validate/zod';\r\nimport {useField, useForm} from 'vee-validate';\r\nimport * as zod from 'zod';\r\nimport {ref, onMounted, computed} from 'vue';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CourseContent',\n setup(__props) {\n\r\nconst mainStore = useMainStore();\r\nconst courseStore = useCourseStore();\r\n\r\ncourseStore.$onAction(({ after, name }) => {\r\n after(async () => {\r\n if (['getCourse'].includes(name)) {\r\n await initializeValues();\r\n }\r\n })\r\n})\r\n\r\nconst { handleSubmit, resetForm } = useForm({\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n headerContent: zod.string().optional().nullable(),\r\n footerContent: zod.string().optional().nullable(),\r\n })\r\n )\r\n});\r\n\r\nconst { value: headerContent } = useField('headerContent');\r\nconst { value: footerContent } = useField('footerContent');\r\n\r\nconst courseId = ref();\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(async () => await initializeValues());\r\n\r\nasync function initializeValues() {\r\n courseId.value = courseStore.getActiveCourseId;\r\n\r\n if (!courseId.value)\r\n return mainStore.setErrorMsg('Course not found. Please try again later');\r\n\r\n try {\r\n const menuContent = await courseStore.getMenuContent(courseId.value);\r\n\r\n resetForm({\r\n values: {\r\n headerContent: menuContent?.header,\r\n footerContent: menuContent?.footer\r\n }\r\n });\r\n } catch (e) {\r\n console.error('Error initializing course content', e);\r\n\r\n resetForm({\r\n values: {\r\n headerContent: '',\r\n footerContent: ''\r\n }\r\n });\r\n }\r\n}\r\n\r\nconst onSubmit = handleSubmit(async (values) => {\r\n if (!courseId.value)\r\n return mainStore.setErrorMsg('Course not found. Please try again later');\r\n\r\n const {\r\n headerContent,\r\n footerContent\r\n } = values;\r\n\r\n const updateCourseMdl: ICourseMenuContent = {\r\n courseId: courseId.value,\r\n header: headerContent,\r\n footer: footerContent\r\n };\r\n\r\n await courseStore.updateCourseContent(updateCourseMdl);\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Editor = _resolveComponent(\"Editor\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n onSubmit: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_unref(onSubmit) && _unref(onSubmit)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createVNode(_component_Editor, {\n modelValue: _unref(headerContent),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(headerContent) ? (headerContent).value = $event : null)),\n editorStyle: \"height: 10rem\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createVNode(_component_Editor, {\n modelValue: _unref(footerContent),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(footerContent) ? (footerContent).value = $event : null)),\n editorStyle: \"height: 10rem\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./CourseContent.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CourseContent.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, unref as _unref, isRef as _isRef, createVNode as _createVNode, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"border-round-lg\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex py-3 flex-column w-full\" }\nconst _hoisted_3 = { class: \"flex flex-column md:flex-row md:mt-5\" }\nconst _hoisted_4 = { class: \"flex justify-content-center align-items-center w-full\" }\nconst _hoisted_5 = {\n key: 1,\n class: \"font-semibold\"\n}\nconst _hoisted_6 = { class: \"flex flex-column justify-content-center align-items-center w-full mt-5 md:mt-0\" }\nconst _hoisted_7 = {\n key: 1,\n class: \"p-float-label w-full\"\n}\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"courseName\" }, \"Name\", -1)\nconst _hoisted_9 = { class: \"p-error\" }\nconst _hoisted_10 = { class: \"flex flex-column w-full mt-5 md:mt-0\" }\nconst _hoisted_11 = { class: \"flex justify-content-center align-items-center h-3rem\" }\nconst _hoisted_12 = { class: \"flex\" }\nconst _hoisted_13 = { class: \"flex flex-column mt-5 w-full\" }\nconst _hoisted_14 = {\n key: 1,\n class: \"p-float-label w-full\"\n}\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"label\", null, \"Description\", -1)\nconst _hoisted_16 = { class: \"p-error\" }\nconst _hoisted_17 = { class: \"flex flex-column md:flex-row mt-5\" }\nconst _hoisted_18 = { class: \"md:mr-3 mt-5 md:mt-0 md:w-full\" }\nconst _hoisted_19 = {\n key: 1,\n class: \"p-float-label w-full\"\n}\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"contactHours\" }, \"Contact Hours\", -1)\nconst _hoisted_21 = { class: \"p-error\" }\nconst _hoisted_22 = { class: \"w-full\" }\nconst _hoisted_23 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_24 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"authToolInput\" }, \"Authoring Tool\", -1)\nconst _hoisted_25 = { class: \"p-error\" }\nconst _hoisted_26 = { class: \"flex flex-column md:flex-row mt-5\" }\nconst _hoisted_27 = { class: \"md:w-full md:mr-3\" }\nconst _hoisted_28 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_29 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"courseFormat\" }, \"Course Format\", -1)\nconst _hoisted_30 = { class: \"p-error\" }\nconst _hoisted_31 = { class: \"flex flex-column md:flex-row mt-5\" }\nconst _hoisted_32 = { class: \"md:w-full md:mr-3\" }\nconst _hoisted_33 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_34 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"trainingCatId\" }, \"Training Category\", -1)\nconst _hoisted_35 = { class: \"p-error\" }\nconst _hoisted_36 = { class: \"mt-5 md:mt-0 md:w-full\" }\nconst _hoisted_37 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_38 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"courseGroup\" }, \"Training Sub-Category\", -1)\nconst _hoisted_39 = { class: \"p-error\" }\nconst _hoisted_40 = { class: \"flex flex-column md:flex-row\" }\nconst _hoisted_41 = { class: \"mt-5 w-full md:mr-3\" }\nconst _hoisted_42 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_43 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"advVendor\" }, \"Training Provider\", -1)\nconst _hoisted_44 = { class: \"p-error\" }\nconst _hoisted_45 = { class: \"mt-5 w-full md:mr-3\" }\nconst _hoisted_46 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_47 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"trainingProviderInput\" }, \"Training Provider Name\", -1)\nconst _hoisted_48 = { class: \"p-error\" }\nconst _hoisted_49 = { class: \"flex flex-column md:flex-row\" }\nconst _hoisted_50 = { class: \"mt-5 w-full md:mr-3\" }\nconst _hoisted_51 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_52 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"dd-EvaluationType\" }, \"Evaluation Type\", -1)\nconst _hoisted_53 = { class: \"p-error\" }\nconst _hoisted_54 = { class: \"flex flex-row justify-content-center md:justify-content-end my-5\" }\n\nimport useMainStore from '@/store/main.store';\r\nimport useCourseStore from '@/store/course.store';\r\nimport useTrainingCategoryStore from \"@/store/trainingCategory.store\";\r\nimport ITrainingSubCategory from '@/models/courses/ITrainingSubCategory';\r\nimport ITrainingCategory from '@/models/courses/trainingCategory';\r\nimport ITrainingProvider from '@/models/courses/ITrainingProvider';\r\nimport CourseGeneral from '@/models/courses/Course/CourseGeneral';\r\nimport CourseFormat from '@/models/courses/Course/CourseFormat';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport { useField, useForm } from 'vee-validate';\r\nimport { computed, onMounted, ref } from 'vue';\r\nimport * as zod from 'zod';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CourseGeneral',\n setup(__props) {\n\r\nconst mainStore = useMainStore();\r\nconst trainingCategoryStore = useTrainingCategoryStore();\r\nconst courseStore = useCourseStore();\r\n\r\ncourseStore.$onAction(({ after, name }) => {\r\n after(async () => {\r\n if (['getCourse'].includes(name)) {\r\n await initializeValues();\r\n }\r\n })\r\n})\r\n\r\nconst { handleSubmit, errors, resetForm } = useForm({\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n name: zod.string({ required_error: 'Name is required.' }),\r\n description: zod.string().optional().nullable(),\r\n courseStatus: zod.string(),\r\n trainingCategoryId: zod.number().int().positive(),\r\n trainingProviderId: zod.number().int().positive(),\r\n trainingProviderName: zod.string().optional().nullable(),\r\n authoringTool: zod.string().optional().nullable(),\r\n trainingSubCategoryId: zod.number().int().nullable().optional(),\r\n courseFormatId: zod.number().int().positive(),\r\n contactHours: zod.number().nonnegative(),\r\n evaluationType: zod.string().optional().nullable(),\r\n })\r\n )\r\n});\r\n\r\nconst { value: name } = useField('name');\r\nconst { value: description } = useField('description');\r\nconst { value: courseStatus } = useField('courseStatus');\r\nconst { value: trainingCategoryId } = useField('trainingCategoryId');\r\nconst { value: trainingSubCategoryId } = useField('trainingSubCategoryId');\r\nconst { value: trainingProviderId } = useField('trainingProviderId');\r\nconst { value: trainingProviderName } = useField('trainingProviderName');\r\nconst { value: authoringTool } = useField('authoringTool');\r\nconst { value: courseFormatId } = useField('courseFormatId');\r\nconst { value: contactHours } = useField('contactHours');\r\nconst { value: evaluationType } = useField('evaluationType');\r\n\r\nconst allTrainingCategories = ref([]);\r\nconst allTrainingSubCategories = ref([]);\r\nconst allTrainingProviders = ref([]);\r\nconst evaluationTypes = [\r\n { type: 'CE', name: 'Continuing Education' },\r\n { type: 'Non-CE', name: 'Non-Continuing Education' },\r\n { type: 'Knowledge Check', name: 'Knowledge Check' },\r\n { type: undefined, name: 'None' }\r\n];\r\n\r\nconst courseStatusOptions = ['Active', 'Disabled'];\r\nconst courseFormats = [\r\n { courseFormatId: CourseFormat.Course , name: 'Course' },\r\n { courseFormatId: CourseFormat.eCompetency_Knowledge , name: 'eCompetency - Knowledge (test)' },\r\n { courseFormatId: CourseFormat.eCompetency_Skills , name: 'eCompetency - Skills (checklist)' },\r\n];\r\n\r\nconst courseId = computed(() => courseStore.getActiveCourseId);\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(async() => await initializeValues());\r\n\r\nasync function initializeValues() {\r\n const course = courseStore.getActiveCourse;\r\n\r\n if (!courseId.value || !course)\r\n return;\r\n\r\n resetForm({\r\n values: {\r\n name: course.name,\r\n description: course.description,\r\n courseStatus: course.isDisabled ? 'Disabled' : 'Active',\r\n trainingProviderName: course.trainingProviderName,\r\n trainingProviderId: course.trainingProviderId,\r\n trainingCategoryId: course.trainingCategoryId,\r\n trainingSubCategoryId: course.trainingSubCategoryId,\r\n authoringTool: course.authoringTool,\r\n courseFormatId: course.courseFormatId,\r\n contactHours: course.contactHours,\r\n evaluationType: course.evaluationType\r\n }\r\n });\r\n\r\n try {\r\n allTrainingCategories.value = await trainingCategoryStore.getAllTrainingCategories();\r\n } catch (e) {\r\n allTrainingCategories.value = [];\r\n console.error('Error fetching training categories', e);\r\n return;\r\n }\r\n\r\n try {\r\n allTrainingProviders.value = await courseStore.getAllTrainingProviders();\r\n } catch (e) {\r\n allTrainingProviders.value = [];\r\n console.error('Error fetching training providers', e);\r\n return;\r\n }\r\n\r\n await onTrainingCategoryChange(course.trainingCategoryId);\r\n}\r\n\r\nasync function onTrainingCategoryChange(trainingCategoryId: number | undefined) {\r\n if (!trainingCategoryId) return;\r\n\r\n try {\r\n allTrainingSubCategories.value = await trainingCategoryStore.getTrainingSubCategoryByTrainingCategoryId(trainingCategoryId);\r\n } catch (e) {\r\n allTrainingSubCategories.value = [];\r\n console.error('Error fetching training sub categories', e);\r\n }\r\n}\r\n\r\nconst onSubmit = handleSubmit(async (values) => {\r\n if (!courseId.value)\r\n return mainStore.setErrorMsg('Course Id not found')\r\n\r\n const {\r\n name, \r\n courseStatus,\r\n description, \r\n trainingCategoryId,\r\n trainingSubCategoryId,\r\n trainingProviderId,\r\n trainingProviderName,\r\n authoringTool,\r\n courseFormatId,\r\n contactHours,\r\n evaluationType\r\n } = values;\r\n\r\n const updateCourseGeneralMdl: CourseGeneral = {\r\n courseId: courseId.value,\r\n name,\r\n isDisabled: (courseStatus === 'Disabled'),\r\n description,\r\n trainingCategoryId,\r\n trainingSubCategoryId: trainingSubCategoryId ?? undefined,\r\n trainingProviderId,\r\n trainingProviderName,\r\n authoringTool,\r\n courseFormatId,\r\n contactHours,\r\n evaluationType\r\n }\r\n\r\n await courseStore.updateCourseGeneral(updateCourseGeneralMdl);\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Skeleton = _resolveComponent(\"Skeleton\")!\n const _component_InputText = _resolveComponent(\"InputText\")!\n const _component_SelectButton = _resolveComponent(\"SelectButton\")!\n const _component_Textarea = _resolveComponent(\"Textarea\")!\n const _component_InputNumber = _resolveComponent(\"InputNumber\")!\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n class: \"flex px-4 md:justify-content-center\",\n onSubmit: _cache[12] || (_cache[12] = \n//@ts-ignore\n(...args) => (_unref(onSubmit) && _unref(onSubmit)(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"7rem\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_5, \"Course ID: \" + _toDisplayString(courseId.value), 1))\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_7, [\n _createVNode(_component_InputText, {\n modelValue: _unref(name),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(name) ? (name).value = $event : null)),\n id: \"courseName\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_8\n ])),\n _createElementVNode(\"small\", _hoisted_9, _toDisplayString(_unref(errors)[\"name\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"10rem\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createBlock(_component_SelectButton, {\n key: 1,\n modelValue: _unref(courseStatus),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(courseStatus) ? (courseStatus).value = $event : null)),\n options: courseStatusOptions\n }, null, 8, [\"modelValue\"]))\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"8rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_14, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(description),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(description) ? (description).value = $event : null)),\n class: \"w-full\",\n rows: \"5\",\n cols: \"30\",\n autoResize: \"\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_15\n ])),\n _createElementVNode(\"small\", _hoisted_16, _toDisplayString(_unref(errors)[\"description\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", _hoisted_18, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_19, [\n _createVNode(_component_InputNumber, {\n modelValue: _unref(contactHours),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(contactHours) ? (contactHours).value = $event : null)),\n id: \"contactHours\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_20\n ])),\n _createElementVNode(\"small\", _hoisted_21, _toDisplayString(_unref(errors)[\"contactHours\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_22, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_23, [\n _createVNode(_component_InputText, {\n id: \"authToolInput\",\n modelValue: _unref(authoringTool),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(authoringTool) ? (authoringTool).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_24\n ])),\n _createElementVNode(\"small\", _hoisted_25, _toDisplayString(_unref(errors)[\"authoringTool\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"div\", _hoisted_27, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_28, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(courseFormatId),\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_isRef(courseFormatId) ? (courseFormatId).value = $event : null)),\n \"input-id\": \"courseFormat\",\n \"option-value\": \"courseFormatId\",\n \"option-label\": \"name\",\n class: _normalizeClass([\"w-full\", { 'p-invalid' : _unref(errors).courseFormatId }]),\n loading: isLoading.value,\n options: courseFormats\n }, null, 8, [\"modelValue\", \"class\", \"loading\"]),\n _hoisted_29\n ])),\n _createElementVNode(\"small\", _hoisted_30, _toDisplayString(_unref(errors)[\"courseFormatId\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_31, [\n _createElementVNode(\"div\", _hoisted_32, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_33, [\n _createVNode(_component_Dropdown, {\n modelValue: _unref(trainingCategoryId),\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_isRef(trainingCategoryId) ? (trainingCategoryId).value = $event : null)),\n inputId: \"trainingCatId\",\n \"option-value\": \"trainingCategoryId\",\n \"option-label\": \"name\",\n class: \"w-full\",\n filter: \"\",\n \"show-clear\": \"\",\n loading: isLoading.value,\n options: allTrainingCategories.value,\n onChange: _cache[7] || (_cache[7] = ($event: any) => (onTrainingCategoryChange(_unref(trainingCategoryId))))\n }, null, 8, [\"modelValue\", \"loading\", \"options\"]),\n _hoisted_34\n ])),\n _createElementVNode(\"small\", _hoisted_35, _toDisplayString(_unref(errors)[\"trainingCategoryId\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_36, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_37, [\n _createVNode(_component_Dropdown, {\n inputId: \"subcategoryId\",\n modelValue: _unref(trainingSubCategoryId),\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => (_isRef(trainingSubCategoryId) ? (trainingSubCategoryId).value = $event : null)),\n loading: isLoading.value,\n options: allTrainingSubCategories.value,\n disabled: !_unref(trainingCategoryId),\n \"option-value\": \"trainingSubCategoryId\",\n \"option-label\": \"name\",\n class: \"w-full\",\n filter: \"\",\n \"show-clear\": \"\"\n }, null, 8, [\"modelValue\", \"loading\", \"options\", \"disabled\"]),\n _hoisted_38\n ])),\n _createElementVNode(\"small\", _hoisted_39, _toDisplayString(_unref(errors)[\"trainingSubCategoryId\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_40, [\n _createElementVNode(\"div\", _hoisted_41, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_42, [\n _createVNode(_component_Dropdown, {\n inputId: \"advVendor\",\n modelValue: _unref(trainingProviderId),\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => (_isRef(trainingProviderId) ? (trainingProviderId).value = $event : null)),\n options: allTrainingProviders.value,\n \"option-label\": \"name\",\n \"option-value\": \"trainingProviderId\",\n class: \"w-full\",\n filter: \"\",\n \"show-clear\": \"\"\n }, null, 8, [\"modelValue\", \"options\"]),\n _hoisted_43\n ])),\n _createElementVNode(\"small\", _hoisted_44, _toDisplayString(_unref(errors)[\"trainingProviderId\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_45, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_46, [\n _createVNode(_component_InputText, {\n id: \"trainingProviderInput\",\n modelValue: _unref(trainingProviderName),\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = ($event: any) => (_isRef(trainingProviderName) ? (trainingProviderName).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_47\n ])),\n _createElementVNode(\"small\", _hoisted_48, _toDisplayString(_unref(errors)[\"trainingProviderName\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_49, [\n _createElementVNode(\"div\", _hoisted_50, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"3rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_51, [\n _createVNode(_component_Dropdown, {\n inputId: \"dd-EvaluationType\",\n modelValue: _unref(evaluationType),\n \"onUpdate:modelValue\": _cache[11] || (_cache[11] = ($event: any) => (_isRef(evaluationType) ? (evaluationType).value = $event : null)),\n options: evaluationTypes,\n \"option-label\": \"name\",\n \"option-value\": \"type\",\n class: \"w-full\",\n filter: \"\",\n \"show-clear\": \"\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_52\n ])),\n _createElementVNode(\"small\", _hoisted_53, _toDisplayString(_unref(errors)[\"evaluationType\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_54, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./CourseGeneral.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CourseGeneral.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, isRef as _isRef, createVNode as _createVNode, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"border-round-lg\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex flex-column py-3 gap-5\" }\nconst _hoisted_3 = { class: \"flex flex-column md:flex-row md:justify-content-start gap-5 md:gap-3 mt-5\" }\nconst _hoisted_4 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"courseType\" }, \"Course Type\", -1)\nconst _hoisted_6 = { class: \"p-error\" }\nconst _hoisted_7 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"menuStyle\" }, \"Menu Style\", -1)\nconst _hoisted_9 = { class: \"p-error\" }\nconst _hoisted_10 = { class: \"flex flex-column md:flex-row md:justify-content-start gap-5 md:gap-3\" }\nconst _hoisted_11 = { style: {\"min-width\":\"190px\"} }\nconst _hoisted_12 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"browseType\" }, \"AICC Browse Type\", -1)\nconst _hoisted_14 = { class: \"p-error\" }\nconst _hoisted_15 = { style: {\"min-width\":\"190px\"} }\nconst _hoisted_16 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"reviewType\" }, \"AICC Review Type\", -1)\nconst _hoisted_18 = { class: \"p-error\" }\nconst _hoisted_19 = { class: \"flex flex-column md:flex-row md:justify-content-start gap-5 md:gap-3\" }\nconst _hoisted_20 = {\n key: 1,\n class: \"p-float-label w-full\"\n}\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"screenWidth\" }, \"Screen Width\", -1)\nconst _hoisted_22 = { class: \"p-error\" }\nconst _hoisted_23 = {\n key: 1,\n class: \"p-float-label\",\n style: {\"min-width\":\"235px\"}\n}\nconst _hoisted_24 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"screenHeight\" }, \"Screen Height\", -1)\nconst _hoisted_25 = { class: \"p-error\" }\nconst _hoisted_26 = {\n key: 1,\n class: \"p-float-label\"\n}\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"label\", { for: \"maxIncompleteOpenLessons\" }, \"Max Incomplete Lessons Open\", -1)\nconst _hoisted_28 = { class: \"p-error\" }\nconst _hoisted_29 = { class: \"flex flex-row justify-content-center md:justify-content-end\" }\n\nimport useCourseStore from '@/store/course.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport IMenuStyle from '@/models/courses/IMenuStyle';\r\nimport ICourseInterface from '@/models/courses/Course/ICourseInterface';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport { useField, useForm } from 'vee-validate';\r\nimport {computed, onMounted, ref} from 'vue';\r\nimport * as zod from 'zod';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CourseInterface',\n setup(__props) {\n\r\nconst courseStore = useCourseStore();\r\nconst mainStore = useMainStore();\r\n\r\ncourseStore.$onAction(({ after, name }) => {\r\n after(async () => {\r\n if (['getCourse'].includes(name)) {\r\n await initializeValues();\r\n }\r\n })\r\n})\r\n\r\nconst { handleSubmit, errors, resetForm } = useForm({\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n courseInterface: zod.string().optional().nullable(),\r\n menuStyleId: zod.number().int().optional(),\r\n screenWidth: zod.number().int().positive(),\r\n screenHeight: zod.number().int().positive(),\r\n maxIncompleteLessonsAllowed: zod.number().int().nonnegative().optional(),\r\n browseType: zod.string().optional().nullable(),\r\n reviewType: zod.string().optional().nullable(),\r\n })\r\n )\r\n});\r\n\r\nconst { value: courseInterface } = useField('courseInterface');\r\nconst { value: menuStyleId } = useField('menuStyleId');\r\nconst { value: screenWidth } = useField('screenWidth');\r\nconst { value: screenHeight } = useField('screenHeight');\r\nconst { value: maxIncompleteLessonsAllowed } = useField('maxIncompleteLessonsAllowed');\r\nconst { value: browseType } = useField('browseType');\r\nconst { value: reviewType } = useField('reviewType');\r\n\r\nconst allCourseInterfaces: { interfaceValue: string, name: string }[] = [\r\n { interfaceValue: 'AiccCompliant' , name: 'AICC'},\r\n { interfaceValue: 'NoInterface' , name: 'No Interface'}\r\n];\r\nconst browseTypes: { browseValue: string, browseLabel: string }[] = [\r\n { browseValue: 'All', browseLabel: 'All' },\r\n { browseValue: 'None', browseLabel: 'None' }\r\n];\r\nconst reviewTypes: { browseValue: string, browseLabel: string }[] = [\r\n { browseValue: 'All', browseLabel: 'All' },\r\n { browseValue: 'None', browseLabel: 'None' }\r\n];\r\nconst allMenuStyles = ref([]);\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nonMounted(async() => await initializeValues());\r\n\r\nasync function initializeValues() {\r\n const course = courseStore.getActiveCourse;\r\n\r\n if (!course?.courseId)\r\n return;\r\n\r\n resetForm({\r\n values: {\r\n menuStyleId: course.menuStyleId,\r\n courseInterface: course.courseInterface,\r\n browseType: course.browseType,\r\n reviewType: course.reviewType,\r\n maxIncompleteLessonsAllowed: course.maxIncompleteLessonsAllowed,\r\n screenWidth: course.screenWidth,\r\n screenHeight: course.screenHeight,\r\n }\r\n });\r\n\r\n try {\r\n allMenuStyles.value = await courseStore.getAllMenuStyles();\r\n } catch (e) {\r\n allMenuStyles.value = [];\r\n console.error('Error fetching menu styles', e);\r\n }\r\n}\r\n\r\nconst onSubmit = handleSubmit(async (values) => {\r\n const courseId = courseStore.getActiveCourseId;\r\n\r\n if (!courseId)\r\n return mainStore.setErrorMsg('No active course id found');\r\n\r\n const {\r\n courseInterface,\r\n menuStyleId,\r\n screenWidth,\r\n screenHeight,\r\n maxIncompleteLessonsAllowed,\r\n browseType,\r\n reviewType\r\n } = values;\r\n\r\n const updateCourseMdl: ICourseInterface = {\r\n courseId: courseId,\r\n courseInterface: courseInterface,\r\n menuStyleId,\r\n screenWidth,\r\n screenHeight,\r\n maxIncompleteLessonsAllowed,\r\n browseType: browseType,\r\n reviewType: reviewType\r\n };\r\n\r\n await courseStore.updateCourseInterface(updateCourseMdl);\r\n});\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Skeleton = _resolveComponent(\"Skeleton\")!\n const _component_Dropdown = _resolveComponent(\"Dropdown\")!\n const _component_InputNumber = _resolveComponent(\"InputNumber\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n onSubmit: _cache[7] || (_cache[7] = \n//@ts-ignore\n(...args) => (_unref(onSubmit) && _unref(onSubmit)(...args))),\n class: \"px-3\"\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", null, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createVNode(_component_Dropdown, {\n inputId: \"courseType\",\n modelValue: _unref(courseInterface),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(courseInterface) ? (courseInterface).value = $event : null)),\n options: allCourseInterfaces,\n \"option-value\": \"interfaceValue\",\n \"option-label\": \"name\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_5\n ])),\n _createElementVNode(\"small\", _hoisted_6, _toDisplayString(_unref(errors)[\"courseInterface\"]), 1)\n ]),\n _createElementVNode(\"div\", null, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createVNode(_component_Dropdown, {\n inputId: \"menuStyle\",\n modelValue: _unref(menuStyleId),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(menuStyleId) ? (menuStyleId).value = $event : null)),\n options: allMenuStyles.value,\n \"option-value\": \"menuStyleId\",\n \"option-label\": \"name\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\", \"options\"]),\n _hoisted_8\n ])),\n _createElementVNode(\"small\", _hoisted_9, _toDisplayString(_unref(errors)[\"menuStyleId\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createVNode(_component_Dropdown, {\n inputId: \"browseType\",\n modelValue: _unref(browseType),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(browseType) ? (browseType).value = $event : null)),\n options: browseTypes,\n \"option-value\": \"browseLabel\",\n \"option-label\": \"browseValue\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_13\n ])),\n _createElementVNode(\"small\", _hoisted_14, _toDisplayString(_unref(errors)[\"browseType\"]), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"100%\",\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n _createVNode(_component_Dropdown, {\n inputId: \"reviewType\",\n modelValue: _unref(reviewType),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(reviewType) ? (reviewType).value = $event : null)),\n options: reviewTypes,\n \"option-value\": \"browseLabel\",\n \"option-label\": \"browseValue\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_17\n ])),\n _createElementVNode(\"small\", _hoisted_18, _toDisplayString(_unref(errors)[\"reviewType\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"div\", null, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"10rem\",\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_20, [\n _createVNode(_component_InputNumber, {\n modelValue: _unref(screenWidth),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(screenWidth) ? (screenWidth).value = $event : null)),\n id: \"screenWidth\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_21\n ])),\n _createElementVNode(\"small\", _hoisted_22, _toDisplayString(_unref(errors)[\"screenWidth\"]), 1)\n ]),\n _createElementVNode(\"div\", null, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"10rem\",\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_23, [\n _createVNode(_component_InputNumber, {\n modelValue: _unref(screenHeight),\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_isRef(screenHeight) ? (screenHeight).value = $event : null)),\n id: \"screenHeight\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_24\n ])),\n _createElementVNode(\"small\", _hoisted_25, _toDisplayString(_unref(errors)[\"screenHeight\"]), 1)\n ]),\n _createElementVNode(\"div\", null, [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_component_Skeleton, {\n key: 0,\n width: \"10rem\",\n height: \"2rem\"\n }))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_26, [\n _createVNode(_component_InputNumber, {\n modelValue: _unref(maxIncompleteLessonsAllowed),\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_isRef(maxIncompleteLessonsAllowed) ? (maxIncompleteLessonsAllowed).value = $event : null)),\n id: \"maxIncompleteOpenLessons\",\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_27\n ])),\n _createElementVNode(\"small\", _hoisted_28, _toDisplayString(_unref(errors)[\"maxIncompleteLessonsAllowed\"]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_29, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n","import script from \"./CourseInterface.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CourseInterface.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, isRef as _isRef, createVNode as _createVNode, createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"border-round-lg\",\n style: {\"background-color\":\"var(--hca-form-bg)\"}\n}\nconst _hoisted_2 = { class: \"flex flex-column\" }\nconst _hoisted_3 = { class: \"flex mt-5\" }\nconst _hoisted_4 = { class: \"p-float-label w-full\" }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"label\", null, \"Custom Field #1\", -1)\nconst _hoisted_6 = { class: \"flex mt-5\" }\nconst _hoisted_7 = { class: \"p-float-label w-full\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"label\", null, \"CE Broker Lesson # OR Clock Hours (NAB)\", -1)\nconst _hoisted_9 = { class: \"flex mt-5\" }\nconst _hoisted_10 = { class: \"p-float-label w-full\" }\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"label\", null, \"Approval # (NAB) OR Exp Date (ANCC)\", -1)\nconst _hoisted_12 = { class: \"flex mt-5\" }\nconst _hoisted_13 = { class: \"p-float-label w-full\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"label\", null, \"Tags or Expiration Data (NAB)\", -1)\nconst _hoisted_15 = { class: \"flex mt-5\" }\nconst _hoisted_16 = { class: \"p-float-label w-full\" }\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"label\", null, \"Approval Number\", -1)\nconst _hoisted_18 = { class: \"py-3\" }\nconst _hoisted_19 = { class: \"mt-5\" }\nconst _hoisted_20 = { class: \"p-float-label w-full\" }\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"label\", null, \"Custom Field #6\", -1)\nconst _hoisted_22 = { class: \"mt-5\" }\nconst _hoisted_23 = { class: \"p-float-label w-full\" }\nconst _hoisted_24 = /*#__PURE__*/_createElementVNode(\"label\", null, \"Custom Field #7\", -1)\nconst _hoisted_25 = { class: \"py-5\" }\nconst _hoisted_26 = { class: \"p-float-label w-full\" }\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"label\", null, \"Custom Field #8\", -1)\nconst _hoisted_28 = { class: \"flex flex-row justify-content-end mt-3\" }\n\nimport useCourseStore from '@/store/course.store';\r\nimport useMainStore from '@/store/main.store';\r\nimport ICourseOther from '@/models/courses/Course/ICourseOther';\r\nimport { useField, useForm } from 'vee-validate';\r\nimport { toTypedSchema } from '@vee-validate/zod';\r\nimport * as zod from 'zod';\r\nimport {computed, ref} from 'vue';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CourseOther',\n setup(__props) {\n\r\nconst courseStore = useCourseStore();\r\nconst mainStore = useMainStore();\r\n\r\ncourseStore.$onAction(({ after, name }) => {\r\n after(() => {\r\n if (name === 'getCourse'){\r\n initializeValues();\r\n }\r\n })\r\n});\r\n\r\nconst { handleSubmit, resetForm } = useForm({\r\n validationSchema: toTypedSchema(\r\n zod.object({\r\n userDefinedField1: zod.string().optional().nullable(),\r\n userDefinedField2: zod.string().optional().nullable(),\r\n userDefinedField3: zod.string().optional().nullable(),\r\n userDefinedField4: zod.string().optional().nullable(),\r\n approvalNumber: zod.string().optional().nullable(),\r\n userDefinedField6: zod.string().optional().nullable(),\r\n userDefinedField7: zod.string().optional().nullable(),\r\n userDefinedField8: zod.string().optional().nullable(),\r\n })\r\n )\r\n});\r\n\r\n\r\nconst displayingUserDefinedField = ref(0);\r\n\r\nconst { value: userDefinedField1 } = useField('userDefinedField1');\r\nconst { value: userDefinedField2 } = useField('userDefinedField2');\r\nconst { value: userDefinedField3 } = useField('userDefinedField3');\r\nconst { value: userDefinedField4 } = useField('userDefinedField4');\r\nconst { value: approvalNumber } = useField('approvalNumber');\r\nconst { value: userDefinedField6 } = useField('userDefinedField6');\r\nconst { value: userDefinedField7 } = useField('userDefinedField7');\r\nconst { value: userDefinedField8 } = useField('userDefinedField8');\r\n\r\nconst isLoading = computed(() => mainStore.isBusy);\r\n\r\nconst initializeValues = () => {\r\n const course = courseStore.getActiveCourse;\r\n\r\n if (!course)\r\n return mainStore.setErrorMsg('No active course found');\r\n\r\n resetForm({\r\n values: {\r\n userDefinedField1: course.userDefinedField1,\r\n userDefinedField2: course.userDefinedField2,\r\n userDefinedField3: course.userDefinedField3,\r\n userDefinedField4: course.userDefinedField4,\r\n approvalNumber: course.approvalNumber,\r\n userDefinedField6: course.userDefinedField6,\r\n userDefinedField7: course.userDefinedField7,\r\n userDefinedField8: course.userDefinedField8,\r\n }\r\n })\r\n\r\n if (userDefinedField6.value) { displayingUserDefinedField.value = 1; }\r\n if (userDefinedField7.value) { displayingUserDefinedField.value = 2; } \r\n if (userDefinedField8.value) { displayingUserDefinedField.value = 3; }\r\n};\r\n\r\nconst onSubmit = handleSubmit(async (values) => {\r\n const courseId = courseStore.getActiveCourseId;\r\n\r\n if (!courseId)\r\n return mainStore.setErrorMsg('No active course found');\r\n\r\n const {\r\n userDefinedField1,\r\n userDefinedField2,\r\n userDefinedField3,\r\n userDefinedField4,\r\n approvalNumber,\r\n userDefinedField6,\r\n userDefinedField7,\r\n userDefinedField8\r\n } = values;\r\n\r\n const updateCourse: ICourseOther = {\r\n courseId,\r\n userDefinedField1: userDefinedField1,\r\n userDefinedField2: userDefinedField2,\r\n userDefinedField3: userDefinedField3,\r\n userDefinedField4: userDefinedField4,\r\n approvalNumber: approvalNumber,\r\n userDefinedField6: userDefinedField6,\r\n userDefinedField7: userDefinedField7,\r\n userDefinedField8: userDefinedField8,\r\n };\r\n\r\n await courseStore.updateCourseOther(updateCourse);\r\n});\r\n\r\nfunction addField() {\r\n displayingUserDefinedField.value++;\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_Textarea = _resolveComponent(\"Textarea\")!\n const _component_Button = _resolveComponent(\"Button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"form\", {\n onSubmit: _cache[8] || (_cache[8] = \n//@ts-ignore\n(...args) => (_unref(onSubmit) && _unref(onSubmit)(...args))),\n class: \"p-3\"\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", _hoisted_4, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(userDefinedField1),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(userDefinedField1) ? (userDefinedField1).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_5\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"span\", _hoisted_7, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(userDefinedField2),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(userDefinedField2) ? (userDefinedField2).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_8\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"span\", _hoisted_10, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(userDefinedField3),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(userDefinedField3) ? (userDefinedField3).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_11\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"span\", _hoisted_13, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(userDefinedField4),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(userDefinedField4) ? (userDefinedField4).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_14\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"span\", _hoisted_16, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(approvalNumber),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(approvalNumber) ? (approvalNumber).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_17\n ])\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_18, [\n _createVNode(_component_Button, {\n label: \"Add Field\",\n icon: \"pi pi-plus\",\n outlined: \"\",\n onClick: addField\n })\n ], 512), [\n [_vShow, displayingUserDefinedField.value < 3]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"span\", _hoisted_20, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(userDefinedField6),\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_isRef(userDefinedField6) ? (userDefinedField6).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_21\n ])\n ], 512), [\n [_vShow, displayingUserDefinedField.value >= 1]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"span\", _hoisted_23, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(userDefinedField7),\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_isRef(userDefinedField7) ? (userDefinedField7).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_24\n ])\n ], 512), [\n [_vShow, displayingUserDefinedField.value >= 2]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"span\", _hoisted_26, [\n _createVNode(_component_Textarea, {\n modelValue: _unref(userDefinedField8),\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => (_isRef(userDefinedField8) ? (userDefinedField8).value = $event : null)),\n class: \"w-full\"\n }, null, 8, [\"modelValue\"]),\n _hoisted_27\n ])\n ], 512), [\n [_vShow, displayingUserDefinedField.value >= 3]\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_28, [\n _createVNode(_component_Button, {\n label: \"Save\",\n type: \"submit\",\n loading: isLoading.value\n }, null, 8, [\"loading\"])\n ])\n ], 32)\n ]))\n}\n}\n\n})","\r\n\r\n