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AAW7D,EAAOsc,WAElB,KAAE9gB,SAAe,KAAMD,IAAI,yBAAyBsI,kBAA0B7D,GAEpF,OAAO,QAAYxE,EACrB,CAEAF,eAAe2Y,EAA0B9R,GACvC,MAAM,KAAE3G,SAAe,KAAMD,IAAI,yBAAyB4G,6BAE1D,OAAO,QAAY3G,EACrB,CAEAF,eAAe8Y,EAAiB3X,GAC9B,IACE,MAAM,KAAEjB,SAAe,KAAM+G,IAAI,gCAAgC9F,kBAEjE,OAAO,QAAYjB,EACrB,CAAE,MAAOC,GACP,MAAM,IAAIG,MAAMH,EAClB,CACF,CAEAH,eAAeqZ,EAAWlY,GACxB,IACE,MAAM,KAAEjB,SAAe,KAAM+G,IAAI,gCAAgC9F,gBAEjE,OAAO,QAAYjB,EACrB,CAAE,MAAOC,GACP,MAAM,IAAIG,MAAMH,EAClB,CACF,CAEAH,eAAekZ,EAAa/X,GAC1B,IACE,MAAM,KAAEjB,SAAe,KAAM+G,IAAI,gCAAgC9F,cAEjE,OAAO,QAAYjB,EACrB,CAAE,MAAOC,GACP,MAAM,IAAIG,MAAMH,EAClB,CACF,CAEAH,eAAe2lB,EAAoBpd,EAAU6C,SACrC,KAAMnL,IAAI,qCAAsC,CAAEyE,OAAQ,CAAEsc,UAAWzY,EAAU8C,UAAWD,IACpG,C","sources":["webpack://kinside_app/./app/frontend/src/common/stores/modules/bankAccounts.js","webpack://kinside_app/./app/frontend/src/common/stores/modules/bankAccounts.service.js","webpack://kinside_app/./app/frontend/src/common/stores/modules/calendars.js","webpack://kinside_app/./app/frontend/src/common/stores/modules/calendars.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/provider-user.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/availability.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/availability.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/enrollments.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/enrollments.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/legup-enrollments.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/legup-enrollments.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/payment_requests.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/payment_requests.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/provider-business.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/provider-business.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/provider-fees.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/provider-fees.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/programs.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/programs.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/offers.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/offers.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/waitlist.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/provider-plan.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/provider-plan.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/tours-schedules.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/tour-schedules.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/legup-tours.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/legup-tours.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/billing-plans.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/billing-plans.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/families.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/families.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/ai-inquiries.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/ai-inquiries.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/payment-history.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/payment-history.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/leads.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/leads.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/care-provider.store.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/care-provider.service.js","webpack://kinside_app/./app/frontend/src/care-provider/stores/modules/waitlist.service.js"],"sourcesContent":["import {\n fetchPaymentMethods,\n addBankAccountPaymentMethod,\n} from './bankAccounts.service';\n\nimport { addArrayToDictionary } from '../../utils';\n\nexport default {\n namespaced: true,\n state: {\n paymentMethods: {},\n },\n getters: {\n paymentMethodsAsArray(state) {\n return Object.values(state.paymentMethods)\n .filter((method) => method !== undefined && !method.deleted);\n },\n },\n mutations: {\n addPaymentMethods: (state, methods) => {\n state.paymentMethods = { ...addArrayToDictionary(methods, state.paymentMethods) };\n },\n },\n actions: {\n async fetchPaymentMethods({ commit, state, dispatch }) {\n try {\n const isPaymentMethodsEmpty = Object.keys(state.paymentMethods).length === 0;\n if (isPaymentMethodsEmpty) {\n const paymentMethods = await fetchPaymentMethods();\n commit('addPaymentMethods', paymentMethods);\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch payment methods', error }, { root: true });\n throw new Error();\n }\n },\n\n async addBankAccount({ commit, dispatch }, methodData) {\n try {\n // eslint-disable-next-line max-len\n const addedMethod = await addBankAccountPaymentMethod(methodData.publicToken, methodData.accountId);\n commit('addPaymentMethods', [addedMethod]);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not add a new bank account', error }, { root: true });\n throw new Error();\n }\n },\n },\n};\n","import { axios } from '@utils';\n\nasync function fetchPaymentMethods() {\n const response = await axios.get('/payment_methods.json');\n return response.data;\n}\n\nasync function addBankAccountPaymentMethod(publicToken, accountId) {\n const response = await axios.post(\n '/payment_methods/bank_account.json',\n {\n public_token: publicToken,\n account_id: accountId,\n },\n );\n return response.data;\n}\n\nexport {\n fetchPaymentMethods,\n addBankAccountPaymentMethod,\n};\n","// import { addArrayToDictionary, getBoundsFromFacilities, toCamelCase } from '@utils';\nimport {\n fetchCalendars,\n deleteCalendar,\n} from './calendars.service';\n\nexport default {\n namespaced: true,\n state: {\n calendars: [],\n },\n getters: {\n getCalendars: (state) => state.calendars,\n },\n mutations: {\n setCalendars(state, calendars) {\n state.calendars = calendars;\n },\n deleteCalendar(state, id) {\n state.calendars = state.calendars.filter((calendar) => calendar.id !== id);\n },\n },\n actions: {\n async fetchCalendars({ commit, dispatch }) {\n try {\n const calendars = await fetchCalendars();\n commit('setCalendars', calendars);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load calendars', error }, { root: true });\n throw new Error();\n }\n },\n async deleteCalendar({ commit, dispatch }, id) {\n try {\n await deleteCalendar(id);\n commit('deleteCalendar', id);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not delete calendar', error }, { root: true });\n throw new Error();\n }\n },\n },\n};\n","import { axios, toCamelCase } from '@utils';\n\nasync function fetchCalendars() {\n const response = await axios.get('/api/v1/calendars.json');\n return toCamelCase(response.data);\n}\n\nasync function deleteCalendar(id) {\n const response = await axios.delete(`/api/v1/calendars/${id}.json`);\n return toCamelCase(response.data);\n}\n\nexport {\n fetchCalendars,\n deleteCalendar,\n};\n","import {\n removeAvatar,\n updateNotificationSettings,\n getUser,\n updateUser,\n getUserNavData,\n getActionItems,\n confirmNewFeeStructure,\n fetchSiteWideSearchResults,\n updateUserContact,\n} from './provider-user.service';\n\nexport default {\n namespaced: true,\n\n state: {\n current: {},\n pages: [],\n luUser: false,\n actionItemsCount: 0,\n siteWideSearchResults: [],\n navbarExpanded: localStorage.getItem('navbarExpanded') ? localStorage.getItem('navBarExpanded') === 'true' : true,\n },\n\n getters: {\n avatar: (state) => state.current.avatar || state.current.luAvatar,\n pages: (state) => state.pages,\n luUser: (state) => state.luUser,\n navbarExpanded: (state) => state.navbarExpanded,\n actionItemsCount: (state) => state.actionItemsCount,\n isNewFeesVersion(state) {\n return state.current.isNewFeesVersion === undefined\n || state.current.isNewFeesVersion === null ? true : state.current.isNewFeesVersion;\n },\n siteWideSearchResults: (state) => state.siteWideSearchResults,\n currentUser: (state) => state.current,\n },\n\n mutations: {\n current: (state, payload) => {\n state.current = {\n ...payload,\n luAvatar: state.current.luAvatar,\n };\n },\n\n updateNotificationSettings(state, settings) {\n state.current = { ...state.current, emailSettings: settings };\n },\n\n clearAvatar(state) {\n state.current = { ...state.current, avatar: undefined };\n },\n\n navData: (state, payload) => {\n state.pages = payload.pages || [];\n state.current = { ...state.current, luAvatar: payload.avatar };\n },\n\n setLuUser: (state, payload) => {\n state.luUser = payload;\n },\n\n actionItemsCount: (state, payload) => {\n state.actionItemsCount = payload;\n },\n setIsNewFeesVersion: (state, payload) => {\n state.current.isNewFeesVersion = payload;\n },\n setSiteWideSearchResults: (state, payload) => {\n state.siteWideSearchResults = payload;\n },\n toggleNavbar: (state) => {\n state.navbarExpanded = !state.navbarExpanded;\n localStorage.setItem('navbarExpanded', state.navbarExpanded);\n },\n },\n\n actions: {\n setCurrentUser({ commit }, user) {\n commit('current', user);\n // eslint-disable-next-line no-underscore-dangle\n this._vm.$setupUserAccess(user);\n },\n\n setNavData({ commit }, data) {\n commit('navData', data);\n },\n\n setActionItemsCount({ commit }, actionItems) {\n const count = actionItems ? ['offers', 'questions', 'tours', 'requestPaperwork', 'sentPaperwork']\n .map((key) => actionItems[key])\n .reduce((acc, items) => acc.concat(items || []), [])\n .length : 0;\n commit('actionItemsCount', count);\n },\n\n async fetchCurrent({ dispatch, state }) {\n try {\n const user = await getUser();\n dispatch('setCurrentUser', user);\n dispatch('track/identifyUser', {\n id: state.current.id,\n traits: state.current,\n }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load user', error }, { root: true });\n }\n },\n\n async fetchSiteWideSearchResults({ commit, dispatch }, { query }) {\n try {\n const results = await fetchSiteWideSearchResults({ query });\n commit('setSiteWideSearchResults', results);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch provider search results', error }, { root: true });\n }\n },\n\n async updateContact({ dispatch, state }, userObj) {\n try {\n const user = await updateUserContact(userObj);\n dispatch('setCurrentUser', user);\n dispatch('track/identifyUser', {\n id: state.current.id,\n traits: state.current,\n }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update user', error }, { root: true });\n }\n },\n\n async update({ dispatch, state }, userObj) {\n try {\n const user = await updateUser(userObj);\n dispatch('setCurrentUser', user);\n dispatch('track/identifyUser', {\n id: state.current.id,\n traits: state.current,\n }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update user', error }, { root: true });\n }\n },\n\n async removeAvatar({ commit, dispatch }) {\n try {\n await removeAvatar();\n commit('clearAvatar');\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not remove avatar', error }, { root: true });\n throw new Error();\n }\n },\n\n async updateNotificationSettings({ commit, dispatch }, settings) {\n try {\n await updateNotificationSettings(settings);\n commit('updateNotificationSettings', settings);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update notification settings', error }, { root: true });\n throw new Error();\n }\n },\n\n async fetchNavData({ dispatch }, email) {\n try {\n const data = await getUserNavData(email);\n dispatch('setNavData', data);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load navigation', error }, { root: true });\n }\n },\n\n async fetchActionItems({ dispatch }) {\n try {\n const actionItems = await getActionItems();\n if (actionItems.success) {\n dispatch('setActionItemsCount', actionItems);\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load action items', error }, { root: true });\n }\n },\n\n async confirmNewFeeStructure({ commit, dispatch }, params) {\n try {\n const response = await confirmNewFeeStructure(params.id);\n commit('setIsNewFeesVersion', response.success);\n commit('providerFees/setFeesSettings', response.providerFees, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not acknowledge notification', error }, { root: true });\n }\n },\n },\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nconst BASE_PATH = '/api/v1/child_care_facilities/';\n\nasync function fetchSpots(facilityId) {\n const response = await axios.get(\n `${BASE_PATH}${facilityId}/availability.json`,\n );\n return toCamelCase(response.data);\n}\n\nasync function updateCurrent(facilityId, availabilityData) {\n const response = await axios.put(\n `${BASE_PATH}${facilityId}/availability.json`,\n toSnakeCase(availabilityData),\n ).catch((error) => {\n if (error.response) {\n throw error.response.data.errors;\n }\n });\n return toCamelCase(response.data);\n}\n\nasync function updateUpcoming(facilityId, upcomingSpotsData) {\n const response = await axios.put(\n `${BASE_PATH}${facilityId}/availability/foreseen.json`,\n toSnakeCase(upcomingSpotsData),\n );\n return toCamelCase(response.data);\n}\n\nasync function fetchHistory(facilityId) {\n const response = await axios.get(\n `${BASE_PATH}${facilityId}/availability/history.json`,\n );\n return toCamelCase(response.data || []);\n}\n\nexport {\n fetchSpots,\n updateCurrent,\n updateUpcoming,\n fetchHistory,\n};\n","/* eslint-disable no-shadow */\nimport {\n fetchSpots,\n updateCurrent,\n updateUpcoming,\n fetchHistory,\n} from './availability.service';\n\nexport default {\n namespaced: true,\n state: {\n history: [],\n spotsData: {\n programs: [],\n conciergeNote: '',\n },\n updateSpotsSuccess: true,\n unsavedSpotsErrorMsg: '',\n },\n getters: {\n totalSpots: (state) => (state.spotsData.totalCurrentFreeSpots\n + state.spotsData.totalForeseenFreeSpots),\n note: (state) => ({\n contents: state.spotsData.conciergeNote,\n lastUpdated: state.spotsData.conciergeNoteLastUpdated,\n }),\n allSpotsByProgram: (state) => state.spotsData.programs.map((program) => ({\n id: program.id,\n name: program.name,\n currentFreeSpots: program.currentFreeSpots,\n foreseenFreeSpots: program.foreseenFreeSpotsByMonths.map((month) => ({\n inMonths: month.inMonths,\n monthName: month.monthName,\n spots: month.spots,\n })),\n })),\n currentSpotsByProgram: (state) => state.spotsData.programs.map((program) => ({\n id: program.id,\n name: program.name,\n currentFreeSpots: program.currentFreeSpots,\n })),\n upcomingSpotsByProgram: (state) => state.spotsData.programs.map((program) => ({\n id: program.id,\n name: program.name,\n foreseenFreeSpots: program.foreseenFreeSpotsByMonths.map((month) => ({\n inMonths: month.inMonths,\n monthName: month.monthName,\n spots: month.spots,\n })),\n })),\n upcomingMonthLabels: (state) => {\n const { programs } = state.spotsData;\n return programs.length > 0\n ? programs[0].foreseenFreeSpotsByMonths.map((month) => month.monthName)\n : [];\n },\n updateSpotsSuccess: (state) => state.updateSpotsSuccess,\n unsavedSpotsErrorMsg: (state) => state.unsavedSpotsErrorMsg,\n },\n mutations: {\n setSpotsData: (state, spotsData) => {\n state.spotsData = spotsData;\n },\n setHistory: (state, history) => {\n state.history = history;\n },\n setUpdateSpotsStatus: (state, updateSpotsSuccess) => {\n state.updateSpotsSuccess = updateSpotsSuccess;\n },\n setUnsavedSpotsErrorMsg: (state, unsavedSpotsErrorMsg) => {\n state.unsavedSpotsErrorMsg = unsavedSpotsErrorMsg;\n },\n },\n actions: {\n async fetchSpots({ commit, dispatch, rootState }) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n const spotsData = await fetchSpots(rootState.facilityId);\n commit('setSpotsData', spotsData);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch current availability', error }, { root: true });\n }\n },\n\n async updateCurrent({ commit, dispatch, rootState }, currentSpotsData) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n\n await updateCurrent(rootState.facilityId, currentSpotsData);\n commit('setUpdateSpotsStatus', true);\n } catch (error) {\n commit('setUpdateSpotsStatus', false);\n commit('setUnsavedSpotsErrorMsg', error);\n dispatch('notifications/addToastError', { text: 'Could not update current availability', error }, { root: true });\n }\n },\n\n async updateUpcoming({ dispatch, rootState }, upcomingSpotsData) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n\n await updateUpcoming(rootState.facilityId, upcomingSpotsData);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update upcoming availability', error }, { root: true });\n }\n },\n\n async fetchHistory({ commit, rootState, dispatch }) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n const history = await fetchHistory(rootState.facilityId);\n commit('setHistory', history.reverse());\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch history', error }, { root: true });\n }\n },\n },\n};\n","import {\n fetchEnrollments,\n fetchStartEnrollment,\n saveEnrollment,\n saveDocument,\n} from './enrollments.service';\n\nexport default {\n namespaced: true,\n state: {\n enrollments: [],\n tourEnabled: false,\n depositAmount: 0,\n documents: [],\n enrollmentDataLoaded: false,\n },\n mutations: {\n setEnrollments: (state, enrollments) => {\n state.enrollments = enrollments;\n },\n\n setTourEnabled: (state, tourEnabled) => {\n state.tourEnabled = tourEnabled;\n },\n\n setDocuments: (state, documents) => {\n state.documents = documents;\n },\n\n setEnrollmentDataLoaded: (state, enrollmentDataLoaded) => {\n state.enrollmentDataLoaded = enrollmentDataLoaded;\n },\n\n setDepositAmount: (state, depositAmount) => {\n state.depositAmount = depositAmount;\n },\n },\n actions: {\n async fetchEnrollments({ commit, dispatch, rootState }) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n\n const enrollments = await fetchEnrollments(rootState.facilityId);\n commit('setEnrollments', enrollments);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch enrollments', error }, { root: true });\n }\n },\n\n async fetchStartEnrollment(\n {\n commit,\n dispatch,\n state,\n },\n { providerId, facilityId },\n ) {\n try {\n if (state.enrollmentDataLoaded) {\n return;\n }\n\n const startEnrollment = await fetchStartEnrollment(providerId, facilityId);\n\n commit('setTourEnabled', startEnrollment.tourEnabled);\n commit('setDocuments', startEnrollment.documents);\n commit('setDepositAmount', startEnrollment.depositAmount);\n commit('setEnrollmentDataLoaded', true);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not start enrollment', error }, { root: true });\n }\n },\n\n async saveEnrollment({ dispatch }, { centerId, enrollmentData, prevEnrollmentId }) {\n try {\n const enrollment = await saveEnrollment(centerId, enrollmentData, prevEnrollmentId);\n\n return enrollment.enrollmentIds;\n } catch (error) {\n if (error.response?.data?.message) {\n dispatch('notifications/addToastError', { text: error.response.data.message }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: 'Could not save enrollment', error }, { root: true });\n }\n }\n\n return null;\n },\n\n async saveDocument({ commit, dispatch, state }, { providerId, formData }) {\n try {\n const document = await saveDocument(providerId, formData);\n commit('setDocuments', [document, ...state.documents]);\n return document.id;\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not save document', error }, { root: true });\n }\n\n return null;\n },\n },\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nasync function fetchEnrollments(facilityId) {\n const response = await axios.get(`/api/v1/enrollments?child_care_facility_id=${facilityId}`);\n return toCamelCase(response.data);\n}\n\nasync function fetchStartEnrollment(providerId, facilityId) {\n const response = await axios.get(`/api/v1/providers/${providerId}/enrollment_details?child_care_facility_id=${facilityId}`);\n return toCamelCase(response.data);\n}\n\nasync function saveEnrollment(centerId, enrollmentData, prevEnrollmentId) {\n const payload = toSnakeCase({ ...enrollmentData, centerId, prevEnrollmentId });\n const response = await axios.post('/api/v1/legup/enrollments', payload);\n return toCamelCase(response.data);\n}\n\nasync function saveDocument(providerId, formData) {\n const response = await axios.post(`/api/v1/providers/${providerId}/upload_document`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n return toCamelCase(response.data);\n}\n\nexport {\n // eslint-disable-next-line\n fetchEnrollments,\n fetchStartEnrollment,\n saveEnrollment,\n saveDocument,\n};\n","import {\n axios, toCamelCase, toSnakeCase,\n} from '@utils';\n\nconst BASE_URL = '/api/v1/legup/enrollments';\n\nasync function fetchEnrollments(facilityId, search, page, rowsPerPage, sortBy, sortDirection) {\n const { data } = await axios.get(BASE_URL, {\n params: {\n facility_id: facilityId,\n rows_per_page: rowsPerPage,\n sort_by: sortBy,\n sort_direction: sortDirection,\n search,\n page,\n },\n });\n return toCamelCase(data);\n}\n\nasync function fetchEnrollment(enrollmentId) {\n const url = `${BASE_URL}/${enrollmentId}`;\n const { data } = await axios.get(url);\n return toCamelCase(data);\n}\n\nasync function enroll(enrollmentId, buttonLocation) {\n const url = `${BASE_URL}/${enrollmentId}/enroll`;\n const { data } = await axios.put(url, {\n button_location: buttonLocation,\n });\n return toCamelCase(data);\n}\n\nasync function inviteToReview(enrollmentId, buttonLocation) {\n const url = `${BASE_URL}/${enrollmentId}/invite_to_review`;\n const { data } = await axios.put(url, {\n button_location: buttonLocation,\n });\n return toCamelCase(data);\n}\n\nasync function unenroll(enrollmentId, returnChild, lastDay, buttonLocation) {\n const url = `${BASE_URL}/${enrollmentId}/unenroll`;\n const { data } = await axios.put(url, {\n return_to_waitlist: returnChild,\n last_day: lastDay,\n button_location: buttonLocation,\n });\n return toCamelCase(data);\n}\n\nasync function cancelEnrollmentOffer(enrollmentId, returnChild, buttonLocation) {\n const url = `${BASE_URL}/${enrollmentId}/cancel`;\n const { data } = await axios.put(url, {\n return_to_waitlist: returnChild,\n button_location: buttonLocation,\n });\n return toCamelCase(data);\n}\n\nasync function inviteToAutopay(enrollmentId, params) {\n const url = `${BASE_URL}/${enrollmentId}/invite_to_autopay`;\n const { data } = await axios.put(url, toSnakeCase(params));\n return toCamelCase(data);\n}\n\nasync function exportEnrollments(facilityId, search, exportId) {\n const url = `${BASE_URL}/export`;\n await axios.get(url, {\n params: { facility_id: facilityId, search, export_id: exportId },\n });\n}\n\nasync function searchByName(params) {\n const { data } = await axios.get(`${BASE_URL}/search_by_name`, { params: toSnakeCase(params) });\n\n return data;\n}\n\nasync function editEnrollment(enrollmentId, amount, startDate, endDate, frequency, autopay) {\n const url = `${BASE_URL}/${enrollmentId}`;\n const { data } = await axios.put(url, toSnakeCase({\n enrollment: {\n amount, startDate, endDate, frequency,\n },\n autopay,\n }));\n return toCamelCase(data);\n}\n\nasync function editLastEnrollmentDay(enrollmentId, lastDay) {\n const url = `${BASE_URL}/${enrollmentId}/update_unenrollment_day`;\n const { data } = await axios.put(url, { last_day: lastDay });\n return toCamelCase(data);\n}\n\nasync function fetchParentInfo(parentId) {\n const response = await axios.get(`/api/v1/parent_users/parent_info?parent_id=${parentId}`);\n return toCamelCase(response.data);\n}\n\nasync function fetchAutoPayConfirmationInfo(params) {\n const { data } = await axios.get(`${BASE_URL}/autopay_confirmation_info`, { params: toSnakeCase(params) });\n return toCamelCase(data);\n}\n\n// eslint-disable-next-line\nexport {\n fetchEnrollments, unenroll, enroll, inviteToReview, cancelEnrollmentOffer,\n inviteToAutopay, exportEnrollments, searchByName, editEnrollment,\n editLastEnrollmentDay, fetchEnrollment, fetchParentInfo,\n fetchAutoPayConfirmationInfo,\n};\n","import {\n fetchEnrollments,\n unenroll,\n enroll,\n inviteToReview,\n cancelEnrollmentOffer,\n inviteToAutopay,\n exportEnrollments,\n searchByName,\n editEnrollment,\n editLastEnrollmentDay,\n fetchEnrollment,\n fetchParentInfo,\n fetchAutoPayConfirmationInfo,\n} from './legup-enrollments.service';\n\nexport default {\n namespaced: true,\n state: {\n enrollments: [],\n searchResult: [],\n page: 1,\n total: 0,\n rowsPerPage: 20,\n currentEnrollment: {},\n parentInfo: {},\n },\n getters: {\n enrollments(state) {\n return state.enrollments;\n },\n currentEnrollment(state) {\n return state.currentEnrollment;\n },\n findParent: (state) => (parentId) => state.parentInfo[parentId],\n },\n mutations: {\n setEnrollments(state, enrollments) {\n state.enrollments = enrollments;\n },\n updateEnrollment(state, { id, enrollment }) {\n const index = state.enrollments.findIndex((e) => e.id === id);\n if (index !== -1) {\n state.enrollments.splice(index, 1, enrollment);\n }\n },\n removeEnrollment(state, id) {\n const index = state.enrollments.findIndex((e) => e.id === id);\n if (index !== -1) {\n state.enrollments.splice(index, 1);\n }\n },\n setSearchResults: (state, result) => {\n state.searchResult = result;\n },\n setPage: (state, page) => {\n state.page = page;\n },\n setTotal: (state, total) => {\n state.total = total;\n },\n setRowsPerPage: (state, rows) => {\n state.rowsPerPage = rows;\n },\n setCurrentEnrollment: (state, enrollment) => {\n state.currentEnrollment = enrollment;\n },\n addParent(state, parent) {\n state.parentInfo = {\n ...state.parentInfo,\n [parent.id]: parent,\n };\n },\n },\n actions: {\n async fetchEnrollments({ dispatch, commit, state }, {\n facilityId, search, sortBy, sortDirection,\n }) {\n try {\n const {\n enrollments, page, total,\n } = await fetchEnrollments(\n facilityId,\n search,\n state.page,\n state.rowsPerPage,\n sortBy,\n sortDirection,\n );\n commit('setEnrollments', enrollments);\n commit('setTotal', total);\n commit('setPage', page);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load enrollments', error }, { root: true });\n }\n },\n async fetchEnrollment({ dispatch, commit }, { enrollmentId }) {\n try {\n const data = await fetchEnrollment(enrollmentId);\n commit('setCurrentEnrollment', data);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch enrollment', error }, { root: true });\n }\n },\n async exportEnrollments({ dispatch }, { facilityId, search, exportId }) {\n try {\n await exportEnrollments(facilityId, search, exportId);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not export enrollments', error }, { root: true });\n throw new Error(error);\n }\n },\n async enroll({ dispatch, commit }, { enrollmentId, buttonLocation }) {\n try {\n const data = await enroll(enrollmentId, buttonLocation);\n if (data.success) {\n commit('updateEnrollment', { id: data.enrollment.id, enrollment: data.enrollment });\n dispatch('notifications/addToastNotification', { text: 'Success! The enrollment has been logged.' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.message }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to enroll', error }, { root: true });\n }\n },\n\n async unenroll({ dispatch, commit }, {\n enrollmentId, returnChild, lastDay, buttonLocation,\n }) {\n try {\n const data = await unenroll(enrollmentId, returnChild, lastDay, buttonLocation);\n if (data.success && data.enrollment.status === 'pending_removal') {\n commit('updateEnrollment', { id: data.enrollment.id, enrollment: data.enrollment });\n dispatch('notifications/addToastNotification', { text: 'Success! Child has been un-enrolled.' }, { root: true });\n } else if (data.success) {\n commit('removeEnrollment', data.enrollment.id);\n dispatch('notifications/addToastNotification', { text: 'Success! Child has been un-enrolled.' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.message }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to un-enroll', error }, { root: true });\n }\n },\n async inviteToReview({ dispatch, commit }, { enrollmentId, buttonLocation }) {\n try {\n const data = await inviteToReview(enrollmentId, buttonLocation);\n if (data.success) {\n commit('updateEnrollment', { id: data.enrollment.id, enrollment: data.enrollment });\n dispatch('notifications/addToastNotification', { text: 'Success! The review request has been sent.' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.message }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to sent the invitation', error }, { root: true });\n }\n },\n async inviteToAutopay({ dispatch, commit }, { enrollmentId, params }) {\n try {\n const data = await inviteToAutopay(enrollmentId, params);\n if (data.success) {\n commit('updateEnrollment', { id: data.enrollment.id, enrollment: data.enrollment });\n dispatch('notifications/addToastNotification', { text: 'Success! The invitation has been sent' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.message }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to sent the invitation', error }, { root: true });\n }\n },\n // eslint-disable-next-line max-len\n async cancelEnrollmentOffer({ dispatch, commit }, { enrollmentId, returnChild, buttonLocation }) {\n try {\n const data = await cancelEnrollmentOffer(enrollmentId, returnChild, buttonLocation);\n if (data.success) {\n commit('removeEnrollment', data.enrollmentId);\n dispatch('notifications/addToastNotification', { text: 'Success! The enrollment offer has been canceled' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.message }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to cancel the enrolment', error }, { root: true });\n }\n },\n async searchByName({ commit, dispatch }, params) {\n try {\n const { results } = await searchByName(params);\n commit('setSearchResults', results);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not search.', error }, { root: true });\n }\n },\n async editEnrollment({ dispatch, commit }, {\n enrollmentId, amount, startDate, endDate, frequency, autopay,\n }) {\n try {\n const data = await editEnrollment(\n enrollmentId,\n amount,\n startDate,\n endDate,\n frequency,\n autopay,\n );\n if (data.success) {\n commit('updateEnrollment', { id: data.enrollment.id, enrollment: data.enrollment });\n dispatch('notifications/addToastNotification', { text: 'Success! The enrollment has been updated.' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.message }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to edit the enrolment', error }, { root: true });\n }\n },\n\n async editLastEnrollmentDay({ dispatch, commit }, { enrollmentId, lastDay }) {\n try {\n const data = await editLastEnrollmentDay(enrollmentId, lastDay);\n if (data.success) {\n if (data.enrollment.status === 'unenrolled') {\n commit('removeEnrollment', data.enrollmentId);\n } else {\n commit('updateEnrollment', { id: data.enrollment.id, enrollment: data.enrollment });\n }\n dispatch('notifications/addToastNotification', { text: 'Success! The enrollment has been updated' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.message }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to edit the enrolment', error }, { root: true });\n }\n },\n\n async fetchParentInfo({ dispatch, commit }, parentId) {\n try {\n const data = await fetchParentInfo(parentId);\n commit('addParent', data);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch parent info', error }, { root: true });\n }\n },\n\n async fetchAutoPayConfirmationInfo({ dispatch }, params) {\n let data = null;\n try {\n data = await fetchAutoPayConfirmationInfo(params);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch autopay info', error }, { root: true });\n }\n return data;\n },\n },\n};\n","/* eslint-disable no-shadow */\nimport {\n fetchPaymentRequests,\n createPayMeRequest,\n searchExistingParents,\n createOneOffCharge,\n} from './payment_requests.service';\n\nexport default {\n namespaced: true,\n state: {\n paymentRequests: {\n amount_pending_cents: Number,\n amount_enrollments_pending_cents: Number,\n payment_requests: [{\n id: Number,\n child_care_facility_id: Number,\n provider_id: Number,\n amount: Number, // cents\n date_from: String, // start of care, can be empty\n date_to: String, // end of care, can be empty\n dependent_ids: [Number], // can be empty\n aasm_state: String, // full list of statuses here: app/models/payment_request.rb#32\n }],\n requestModalOpen: false,\n },\n existingParents: [],\n },\n getters: {\n totalPendingPaymentsInDollars(state) {\n if (state.paymentRequests.amountPendingCents) {\n const totalInDollars = state.paymentRequests.amountPendingCents / 100;\n return `${totalInDollars}`;\n }\n return '0';\n },\n },\n mutations: {\n setPaymentRequests: (state, paymentRequests) => {\n state.paymentRequests = paymentRequests;\n },\n toggleRequestModal: (state, isOpen) => {\n state.requestModalOpen = isOpen;\n },\n setExistingParents: (state, parents) => {\n state.existingParents = parents;\n },\n },\n actions: {\n async fetchPaymentRequests({ commit, dispatch, rootState }) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n const paymentRequests = await fetchPaymentRequests(rootState.facilityId);\n commit('setPaymentRequests', paymentRequests);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch payment requests', error }, { root: true });\n }\n },\n async createPayMeRequest({ commit, dispatch }, data) {\n try {\n commit('toggleRequestModal', false);\n const response = await createPayMeRequest(data);\n const { parentName } = response.data;\n dispatch(\n 'notifications/addToastSuccess',\n { text: `Your payment request to ${parentName} has been sent!` },\n { root: true },\n );\n } catch (error) {\n const { response } = error;\n if (response.status === 422 && response.data.errors) {\n dispatch('notifications/addToastError', { text: response.data.errors[0] }, { root: true });\n commit('toggleRequestModal', true);\n } else {\n dispatch('notifications/addToastError', { text: \"Couldn't create request\", error }, { root: true });\n }\n }\n },\n async searchExistingParents({ commit, dispatch }, searchParam) {\n if (!searchParam || searchParam.length < 2) return;\n\n try {\n const { results } = await searchExistingParents(searchParam);\n commit('setExistingParents', results);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch parents', error }, { root: true });\n }\n },\n async createOneOffCharge({ dispatch }, data) {\n try {\n const response = await createOneOffCharge(data);\n dispatch(\n 'notifications/addToastSuccess',\n { text: 'Your one-off charge has been created!' },\n { root: true },\n );\n return response.data.paymentRequestIds;\n } catch (error) {\n const { response } = error;\n if (response.status === 422 && response.data.message) {\n dispatch('notifications/addToastError', { text: response.data.message }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: \"Couldn't create one-off charge\", error }, { root: true });\n }\n }\n\n return null;\n },\n },\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nasync function fetchPaymentRequests(facilityId) {\n const response = await axios.get(`/api/v1/payment_requests?child_care_facility_id=${facilityId}`);\n return toCamelCase(response.data);\n}\n\nasync function createPayMeRequest(params) {\n const response = await axios.post('/api/v1/payment_requests', toSnakeCase(params));\n return toCamelCase(response);\n}\n\nasync function searchExistingParents(params) {\n const urlParams = new URLSearchParams({ ...params, name: params.input }).toString();\n const { data } = await axios.get(`/api/v1/families/search_by_name?${urlParams}`);\n return toCamelCase(data);\n}\n\nasync function createOneOffCharge(params) {\n const response = await axios.post('/api/v1/payment_requests/one_off_charge', toSnakeCase(params));\n return toCamelCase(response);\n}\n\nexport {\n // eslint-disable-next-line\n fetchPaymentRequests,\n createPayMeRequest,\n searchExistingParents,\n createOneOffCharge,\n};\n","/* eslint-disable no-shadow */\nimport {\n fetchProviderInfo,\n saveProviderInfo,\n} from './provider-business.service';\n\nconst state = {\n provider: {\n id: Number,\n provider_name: String,\n tin: String,\n tin_type: String,\n address: String,\n phone_number: String,\n phone_number_formatted: String,\n first_name: String,\n last_name: String,\n email: String,\n orum_status: String,\n orum_status_message: String,\n bank_account: Object,\n accept_kinside_payment: Boolean,\n payment_acceptance_method: String,\n company_name: String,\n website: String,\n provider_type: String,\n full_address: String,\n card: Object || undefined,\n },\n};\n\nconst getters = {\n providerBusinessInfo: (state) => state.provider,\n};\n\nconst mutations = {\n setProviderBusinessInfo: (state, provider) => {\n state.provider = provider;\n },\n};\n\nconst actions = {\n async fetchProviderBusinessInfo({ commit, dispatch }, id) {\n if (!id) {\n dispatch('notifications/addToastError', { text: 'Could not fetch provider business info' }, { root: true });\n return;\n }\n\n try {\n const businessInfo = await fetchProviderInfo(id);\n commit('setProviderBusinessInfo', businessInfo);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch provider business info', error }, { root: true });\n }\n },\n\n async saveProviderBusinessInfo({ dispatch }, providerData) {\n try {\n await saveProviderInfo(providerData);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not save provider business info', error }, { root: true });\n }\n },\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n mutations,\n actions,\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nasync function fetchProviderInfo(providerId) {\n const response = await axios.get(`/api/v1/providers/${providerId}/business_info.json`);\n return toCamelCase(response.data);\n}\n\nasync function saveProviderInfo(providerData) {\n const response = await axios.post('/business', toSnakeCase(providerData));\n return toCamelCase(response.data);\n}\n\nexport {\n // eslint-disable-next-line import/prefer-default-export\n fetchProviderInfo,\n saveProviderInfo,\n};\n","/* eslint-disable no-shadow */\nimport {\n fetchFeesSettings, submitFeesSettings,\n} from './provider-fees.service';\n\nconst state = {\n feesSettings: {\n waitlist_fee: null,\n waive_fees_with_subsidy: null,\n kinside_waitlist_fee: null,\n kinside_transation_fee: null,\n },\n};\n\nconst getters = {\n feesSettings: (state) => state.feesSettings,\n};\n\nconst mutations = {\n setFeesSettings: (state, feesSettings) => {\n state.feesSettings = feesSettings;\n },\n};\n\nconst actions = {\n async fetchFeesSettings({ commit, dispatch }, id) {\n try {\n if (!id) {\n dispatch('notifications/addToastError', { text: 'Could not fetch fees settings' }, { root: true });\n return;\n }\n const providerFees = await fetchFeesSettings(id);\n commit('setFeesSettings', providerFees);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch fees settings', error }, { root: true });\n }\n },\n async submitFeesSettings({ commit, dispatch }, { id, feesSettings }) {\n try {\n if (!id) {\n dispatch('notifications/addToastError', { text: 'Could not submit fees settings' }, { root: true });\n return false;\n }\n const providerFees = await submitFeesSettings(id, feesSettings);\n commit('setFeesSettings', providerFees);\n return true;\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not submit fees settings', error }, { root: true });\n return false;\n }\n },\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n mutations,\n actions,\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nasync function fetchFeesSettings(providerId) {\n const response = await axios.get(`/api/v1/providers/${providerId}/fees.json`);\n return toCamelCase(response.data);\n}\n\nasync function submitFeesSettings(providerId, feesSettingsData) {\n const response = await axios.put(`/api/v1/providers/${providerId}/fees.json`, toSnakeCase(feesSettingsData));\n return toCamelCase(response.data);\n}\n\nexport {\n // eslint-disable-next-line import/prefer-default-export\n fetchFeesSettings,\n submitFeesSettings,\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nconst BASE_PATH = '/child_care_facilities/';\n\nasync function fetchPrograms(facilityId) {\n const { data } = await axios.get(\n `${BASE_PATH}${facilityId}/facility_programs.json`,\n );\n return toCamelCase(data);\n}\n\nasync function addProgram(facilityId, program) {\n const { data } = await axios.post(\n `${BASE_PATH}${facilityId}/facility_programs.json`,\n toSnakeCase(program),\n );\n return toCamelCase(data);\n}\n\nasync function fetchProgramDetails(facilityId, programId) {\n const { data } = await axios.get(\n `${BASE_PATH}${facilityId}/facility_programs/${programId}.json`,\n );\n return toCamelCase(data);\n}\n\nasync function updateProgram(facilityId, program) {\n const { data } = await axios.put(\n `${BASE_PATH}${facilityId}/facility_programs/${program.id}.json`,\n toSnakeCase(program),\n );\n return toCamelCase(data);\n}\n\nfunction removeProgram(facilityId, programId) {\n return axios.delete(`${BASE_PATH}${facilityId}/facility_programs/${programId}.json`);\n}\n\nasync function fetchSchedules(facilityId) {\n const { data } = await axios.get(`${BASE_PATH}${facilityId}/facility_program_schedule_types.json`);\n return toCamelCase(data);\n}\n\nexport {\n fetchPrograms,\n updateProgram,\n addProgram,\n removeProgram,\n fetchProgramDetails,\n fetchSchedules,\n};\n","import { addArrayToDictionary } from '@utils';\nimport {\n fetchPrograms,\n updateProgram,\n addProgram,\n removeProgram,\n fetchProgramDetails,\n fetchSchedules,\n} from './programs.service';\n\nexport default {\n namespaced: true,\n state: {\n all: {},\n schedules: {},\n },\n getters: {\n allAsArray: (state) => (Object.values(state.all) || [])\n .sort((p1, p2) => p1.position - p2.position),\n schedulesAsArray: (state) => Object.values(state.schedules) || [],\n },\n mutations: {\n addPrograms: (state, programs) => {\n state.all = { ...addArrayToDictionary(programs, state.all) };\n },\n updateProgram: (state, program) => {\n state.all = { ...state.all, [program.id]: { ...state.all[program.id], ...program } };\n },\n removeProgram: (state, id) => {\n const { [id]: removed, ...rest } = state.all;\n state.all = rest;\n },\n setSchedules: (state, schedules) => {\n state.schedules = { ...addArrayToDictionary(schedules, state.schedules) };\n },\n },\n actions: {\n async fetchPrograms({\n commit, rootState, getters, dispatch,\n }) {\n try {\n if (getters.allAsArray.length || !rootState.facilityId) {\n return;\n }\n const programs = await fetchPrograms(rootState.facilityId);\n commit('addPrograms', programs);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch programs', error }, { root: true });\n }\n },\n\n async addProgram({ rootState, commit, dispatch }, program) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n const addedProgram = await addProgram(rootState.facilityId, program);\n commit('addPrograms', [addedProgram]);\n dispatch('notifications/addToastNotification', { text: `Program \"${program.name}\" added succesfully` }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: `Program \"${program.name}\" has not been added`, error }, { root: true });\n }\n },\n\n async fetchProgramDetails({ rootState, commit, dispatch }, programId) {\n try {\n if (!rootState.facilityId && programId === undefined) {\n return;\n }\n const program = await fetchProgramDetails(rootState.facilityId, programId);\n commit('updateProgram', program);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Program details have not been fetched', error }, { root: true });\n }\n },\n\n async updateProgram({ rootState, commit, dispatch }, program) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n await updateProgram(rootState.facilityId, program);\n commit('updateProgram', program);\n dispatch('notifications/addToastNotification', { text: `Program \"${program.name}\" updated succesfully` }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Program has not been updated', error }, { root: true });\n }\n },\n\n async reOrderProgram({ rootState, commit, dispatch }, { program, direction }) {\n let reOrderedProgram;\n\n if (direction === 'up') {\n reOrderedProgram = { ...program, position: program.position - 1 };\n } else if (direction === 'down') {\n reOrderedProgram = { ...program, position: program.position + 1 };\n }\n\n try {\n if (!rootState.facilityId) {\n return;\n }\n await updateProgram(rootState.facilityId, reOrderedProgram);\n const programs = await fetchPrograms(rootState.facilityId);\n commit('addPrograms', programs);\n dispatch(\n 'notifications/addToastNotification',\n { text: `Program \"${program.name}\" order updated sucessfully` },\n { root: true },\n );\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Program has not been reordered', error }, { root: true });\n }\n },\n\n async removeProgram({\n rootState, commit, state, dispatch,\n }, programId) {\n try {\n if (!rootState.facilityId) {\n return;\n }\n const { name } = state.all[programId];\n await removeProgram(rootState.facilityId, programId);\n commit('removeProgram', programId);\n dispatch('notifications/addToastNotification', { text: `Program \"${name}\" removed succesfully` }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Program has not been removed', error }, { root: true });\n }\n },\n\n async fetchSchedules({\n rootState, commit, getters, dispatch,\n }) {\n try {\n if (getters.schedulesAsArray.length || !rootState.facilityId) {\n return;\n }\n const schedules = await fetchSchedules(rootState.facilityId);\n commit('setSchedules', schedules);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch schedules', error }, { root: true });\n }\n },\n },\n};\n","import { axios } from '@utils';\n\nconst BASE_URL = '/api/v1/child_care_facilities';\n\nasync function fetchFacilityOffers(facilityId) {\n const { data } = await axios.get(`${BASE_URL}/${facilityId}/facility_offers`);\n return data.offers;\n}\n\nasync function createFacilityOffer(facilityId, facilityOffer) {\n const url = `${BASE_URL}/${facilityId}/facility_offers`;\n const { data } = await axios.post(url, {\n facility_offer: facilityOffer,\n });\n return data;\n}\n\nasync function updateFacilityOffer(facilityId, facilityOffer) {\n const url = `${BASE_URL}/${facilityId}/facility_offers/${facilityOffer.id}`;\n const { data } = await axios.put(url, {\n facility_offer: facilityOffer,\n });\n return data;\n}\n\nasync function deleteFacilityOffer(facilityId, facilityOfferId) {\n const url = `${BASE_URL}/${facilityId}/facility_offers/${facilityOfferId}`;\n const { data } = await axios.delete(url);\n return data;\n}\n\nexport {\n createFacilityOffer,\n updateFacilityOffer,\n fetchFacilityOffers,\n deleteFacilityOffer,\n};\n","import {\n fetchFacilityOffers,\n createFacilityOffer,\n updateFacilityOffer,\n deleteFacilityOffer,\n} from './offers.service';\n\nconst defaultEmptyOffer = {\n id: null,\n title: null,\n amount: null,\n amount_type: 'dollars',\n offer_type: 'waived_registration',\n ongoing_unit: 'day',\n ongoing_duration: null,\n description: null,\n provider_notes: null,\n};\n\nexport default {\n namespaced: true,\n state: {\n offers: [],\n selectedOffer: defaultEmptyOffer,\n },\n mutations: {\n setOffers: (state, offers) => {\n state.offers = offers;\n },\n\n resetSelectedOffer(state) {\n const newOffer = { ...defaultEmptyOffer };\n newOffer.id = state.offers.length + 1;\n state.selectedOffer = { ...newOffer };\n },\n\n setSelectedOffer(state, offerId) {\n const newOffer = state.offers.filter((offer) => offerId === offer.id)[0];\n state.selectedOffer = { ...newOffer };\n },\n },\n actions: {\n async fetchOffers({ commit, dispatch }, facilityId) {\n try {\n const offers = await fetchFacilityOffers(facilityId);\n commit('setOffers', offers);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch offers', error }, { root: true });\n }\n },\n\n async removeOffer({ commit, state }, { facilityId, facilityOfferId }) {\n const newOffers = state.offers.filter((offer) => facilityOfferId !== offer.id);\n await deleteFacilityOffer(facilityId, facilityOfferId);\n commit('setOffers', newOffers);\n },\n\n async saveOffer({ commit, dispatch, state }, facilityId) {\n try {\n const offerToSave = { ...state.selectedOffer };\n const { offers } = state;\n const hasExisitingOffer = offers.filter((offer) => offer.id === offerToSave.id).length > 0;\n let newOffers = [];\n\n if (hasExisitingOffer) {\n // existing offer\n const savedOffer = await updateFacilityOffer(facilityId, offerToSave);\n newOffers = state.offers.map((offer) => {\n if (offer.id === savedOffer.id) {\n return savedOffer;\n }\n return offer;\n });\n } else {\n // new offer\n const savedOffer = await createFacilityOffer(facilityId, offerToSave);\n newOffers = [...state.offers, savedOffer];\n }\n commit('setOffers', newOffers);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not save offers', error }, { root: true });\n }\n },\n },\n};\n","import {\n getWaitlistSpots,\n getWaitlistSpotDetails,\n sendWaitlistInvite,\n fetchOfferPreview,\n fetchAgeGroupsAndPrograms,\n searchSpotsByName,\n markUnresponsive,\n markEnrolled,\n reactivate,\n} from './waitlist.service';\n\nexport default {\n namespaced: true,\n\n state: {\n filters: {},\n filterCounts: {},\n spots: [],\n spotDetails: {},\n loadingSpots: false,\n loadingSpot: false,\n page: 1,\n searchText: '',\n rowsPerPage: 20,\n totalSearchResults: 120,\n sort: 'position',\n activeFilters: {},\n editProviderNotes: false,\n facilityId: null,\n offerPreview: [],\n ageGroupsAndPrograms: [],\n searchResult: [],\n },\n\n getters: {\n filters: (state, getters) => {\n const filters = {};\n\n Object.keys(state.filters).forEach((key) => {\n const filter = state.filters[key];\n\n const getFilterCount = (type, id) => {\n const filterCount = state.filters[type]\n .options\n .find((o) => o.id === id)\n .count;\n\n if (type !== 'agegroups' && getters.cleanActiveFilters.agegroups) {\n return state.filterCounts[type] ? state.filterCounts[type][id] : filterCount;\n }\n\n return filterCount;\n };\n\n const options = filter.options.map((option) => {\n const count = getFilterCount(key, option.id);\n return { ...option, count };\n });\n filters[key] = { ...filter, options };\n });\n\n Object.keys(filters).forEach((key) => {\n filters[key].options = filters[key].options.reduce((options, option) => {\n const existingOption = options.find((o) => o.name === option.name);\n if (existingOption) {\n existingOption.count += option.count;\n existingOption.id += `,${option.id}`;\n } else {\n options.push(option);\n }\n\n return options;\n }, []);\n });\n\n return filters;\n },\n\n activeFilters: (state) => {\n const defaultFilters = {};\n\n Object.keys(state.filters).forEach((key) => {\n if (state.activeFilters[key] === undefined) {\n defaultFilters[key] = state.filters[key].default;\n }\n });\n\n return { ...state.activeFilters, ...defaultFilters };\n },\n\n cleanActiveFilters: (state) => {\n const cleanFilters = {};\n\n Object.keys(state.activeFilters).forEach((key) => {\n if (state.activeFilters[key] !== undefined) {\n if (Array.isArray(state.activeFilters[key])) {\n const activeFilters = state.activeFilters[key];\n cleanFilters[key] = activeFilters?.map((option) => option.toString().split(',')).flat();\n } else {\n cleanFilters[key] = state.activeFilters[key];\n }\n }\n });\n\n return cleanFilters;\n },\n\n spotDetails: (state) => (id) => state.spotDetails[id],\n\n filterOptionsWithCounts: (state, getters) => (type) => getters.filters[type].options.filter(\n (option) => option.count > 0,\n ),\n\n filterOptionsWithoutCounts: (state, getters) => (type) => getters.filters[type].options.filter(\n (option) => option.count === 0,\n ),\n },\n\n mutations: {\n setFacilityId: (state, facilityId) => {\n state.facilityId = facilityId;\n },\n\n setFilters: (state, filters) => {\n state.filters = filters;\n },\n\n setFilterCounts: (state, filterCounts) => {\n state.filterCounts = filterCounts;\n },\n\n setSpots: (state, spots) => {\n state.spots = spots;\n },\n\n setLoadingSpots: (state, loading) => {\n state.loadingSpots = loading;\n },\n\n setLoadingSpot: (state, loading) => {\n state.loadingSpot = loading;\n },\n\n setPage: (state, page) => {\n state.page = page;\n },\n\n setSearchText: (state, searchText) => {\n state.searchText = searchText;\n },\n\n setRowsPerPage: (state, rowsPerPage) => {\n state.rowsPerPage = rowsPerPage;\n },\n\n setTotalSearchResults: (state, totalSearchResults) => {\n state.totalSearchResults = totalSearchResults;\n },\n\n setSort: (state, sort) => {\n state.sort = sort;\n },\n\n setActiveFilters: (state, activeFilters) => {\n state.activeFilters = activeFilters;\n },\n\n setSpotDetail: (state, spotDetail) => {\n state.spotDetails = { ...state.spotDetails, [spotDetail.id]: spotDetail };\n },\n\n setProviderNotes: (state, { id, notes }) => {\n state.spotDetails[id].providerNotes = notes;\n },\n\n setSelectedDate: (state, { id, date }) => {\n state.spotDetails[id].preferredDate = date;\n },\n\n setSelectedSchedules: (state, { id, scheduleIds }) => {\n state.spotDetails[id].selectedSchedules = scheduleIds;\n },\n\n setSchedulesLongName: (state, { id, scheduleNames }) => {\n state.spotDetails[id].preferredSchedulesLongName = scheduleNames;\n },\n\n setEditProviderNotes: (state, editProviderNotes) => {\n state.editProviderNotes = editProviderNotes;\n },\n\n setOfferPreview: (state, offerPreview) => {\n state.offerPreview = offerPreview;\n },\n\n setAgeGroupsAndPrograms: (state, data) => {\n state.ageGroupsAndPrograms = data;\n },\n\n setSearchResults: (state, result) => {\n state.searchResult = result;\n },\n\n setSpotAnswers: (state, { answers, id }) => {\n state.spotDetails[id].customAnswers = answers;\n },\n },\n\n actions: {\n async getSpots({ commit, dispatch, state }, params) {\n commit('setLoadingSpots', true);\n\n try {\n const spotsData = await getWaitlistSpots(params);\n\n commit('setSpots', spotsData.result || []);\n commit('setTotalSearchResults', spotsData.total);\n commit('setPage', spotsData.page);\n\n if (params.page === 1 && spotsData.filters && (Object.keys(state.filters).length === 0)) {\n commit('setFilters', spotsData.filters);\n } else if (spotsData.filters) {\n const filterCounts = Object.keys(spotsData.filters).reduce((counts, key) => ({\n ...counts,\n [key]: spotsData.filters[key].options.reduce((acc, option) => ({\n ...acc,\n [option.id]: option.count,\n }), {}),\n }\n ), {});\n\n commit('setFilterCounts', filterCounts);\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch spots', error }, { root: true });\n }\n\n commit('setLoadingSpots', false);\n },\n\n async getSpotDetails({ commit, dispatch }, id) {\n commit('setLoadingSpot', true);\n\n try {\n const spotDetails = await getWaitlistSpotDetails(id);\n commit('setSpotDetail', spotDetails);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch spot data', error }, { root: true });\n }\n\n commit('setLoadingSpot', false);\n },\n\n async sendWaitlistInvite({ dispatch }, params) {\n try {\n await sendWaitlistInvite(params);\n dispatch(\n 'notifications/addToastSuccess',\n { text: 'Invitation sent!' },\n { root: true },\n );\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not send the invitation. Refresh the page to try again, or contact concierge@kinside.com for more help.', error }, { root: true });\n }\n },\n\n async fetchOfferPreview({ commit, dispatch }, params) {\n try {\n const previewDetails = await fetchOfferPreview(params);\n commit('setOfferPreview', previewDetails);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch offer preview information', error }, { root: true });\n }\n },\n\n async fetchAgeGroupsAndPrograms({ commit, dispatch }, { facilityId }) {\n try {\n const data = await fetchAgeGroupsAndPrograms(facilityId);\n commit('setAgeGroupsAndPrograms', data);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch offer programs', error }, { root: true });\n }\n },\n\n reset({ commit }) {\n commit('setSpots', []);\n commit('setFilterCounts', {});\n commit('setFilters', {});\n commit('setPage', 1);\n commit('setSearchText', '');\n commit('setTotalSearchResults', 0);\n commit('setActiveFilters', {});\n commit('setSort', 'position');\n },\n\n async searchSpotsByName({ commit, dispatch }, params) {\n try {\n const { results } = await searchSpotsByName(params);\n commit('setSearchResults', results);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not search.', error }, { root: true });\n }\n },\n\n async markUnresponsive({ dispatch, commit, state }, id) {\n try {\n await markUnresponsive(id);\n\n commit('setSpots', state.spots.map((spot) => {\n const newSpot = { ...spot };\n\n if (spot.id === id) {\n newSpot.notResponding = true;\n }\n\n return newSpot;\n }));\n\n dispatch('notifications/addToastSuccess', { text: 'Marked as unresponsive!' }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not mark as unresponsive', error }, { root: true });\n }\n },\n\n async markEnrolled({ dispatch, commit, state }, { id, decrementFilter }) {\n try {\n await markEnrolled(id);\n dispatch('removeSpot', id);\n\n if (decrementFilter) {\n const filters = { ...state.filters };\n filters.status = {\n ...filters.status,\n options: filters.status.options.map((status) => {\n if (status.id === 'spot_offered') {\n return { ...status, count: status.count - 1 };\n }\n\n return status;\n }),\n };\n commit('setFilters', filters);\n }\n\n dispatch('notifications/addToastSuccess', { text: 'Marked as enrolled!' }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not mark as enrolled', error }, { root: true });\n }\n },\n\n removeSpot({ commit, state }, id) {\n commit('setSpots', state.spots.filter((spot) => spot.id !== id));\n },\n\n async reactivate({ dispatch }, id) {\n try {\n await reactivate(id);\n\n dispatch('notifications/addToastSuccess', { text: 'Reactivated waitlist spot!' }, { root: true });\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Unable to match child to an age group. Cannot reactivate waitlist spot.', error }, { root: true });\n\n throw new Error(error);\n }\n },\n },\n};\n","import { axios, toCamelCase } from '@utils';\n\nconst BASE_URL = '/api/v1/provider_plan';\n\nasync function fetchProviderPlanOptions() {\n const { data } = await axios.get('/provider_plans.json');\n return toCamelCase(data);\n}\n\nasync function fetchProviderPlan() {\n const { data } = await axios.get(BASE_URL);\n return toCamelCase(data);\n}\n\nasync function updateProviderPlan(planId) {\n const { data } = await axios.put(`${BASE_URL}/${planId}/switch`);\n return toCamelCase(data);\n}\n\nasync function acceptProviderPlan() {\n const { data } = await axios.put(`${BASE_URL}/accept`);\n return toCamelCase(data);\n}\n\nexport {\n acceptProviderPlan,\n fetchProviderPlanOptions,\n fetchProviderPlan,\n updateProviderPlan,\n};\n","import {\n acceptProviderPlan,\n fetchProviderPlanOptions,\n fetchProviderPlan,\n updateProviderPlan,\n} from './provider-plan.service';\n\nexport default {\n namespaced: true,\n state: {\n providerPlans: [],\n selectedProviderPlan: {},\n },\n mutations: {\n setProviderPlanOptions: (state, providerPlans) => {\n state.providerPlans = providerPlans.sort((a, b) => {\n if (a.order > b.order) {\n return 1;\n }\n if (a.order < b.order) {\n return -1;\n }\n return 0;\n });\n },\n\n setProviderPlan(state, providerPlan) {\n state.selectedProviderPlan = providerPlan;\n },\n },\n actions: {\n async fetchProviderPlanOptions({ commit, dispatch }) {\n try {\n const providerPlanOptions = await fetchProviderPlanOptions();\n commit('setProviderPlanOptions', providerPlanOptions);\n } catch (error) {\n dispatch('notifications/addToastError', {\n text: 'Could not fetch provider plan options',\n error,\n }, { root: true });\n }\n },\n\n async fetchProviderPlan({ commit, dispatch }) {\n try {\n const providerPlan = await fetchProviderPlan();\n commit('setProviderPlan', providerPlan);\n } catch (error) {\n dispatch('notifications/addToastError', {\n text: 'Could not fetch provider plan',\n error,\n }, { root: true });\n }\n },\n\n async updateAndAcceptProviderPlan({ commit, dispatch }, planId) {\n try {\n const providerPlan = await updateProviderPlan(planId);\n await acceptProviderPlan();\n commit('setProviderPlan', providerPlan);\n } catch (error) {\n dispatch('notifications/addToastError', {\n text: 'Could not update provider plan',\n error,\n }, { root: true });\n }\n },\n\n async acceptProviderPlan({ commit, dispatch }) {\n try {\n const providerPlan = await acceptProviderPlan();\n commit('setProviderPlan', providerPlan);\n } catch (error) {\n dispatch('notifications/addToastError', {\n text: 'Could not accept provider plan',\n error,\n }, { root: true });\n }\n },\n },\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nconst BASE_URL = '/api/v1/legup/tour_schedules';\nasync function getTourSchedules(params) {\n try {\n const { data } = await axios.get(BASE_URL, {\n params: toSnakeCase(params),\n });\n\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function updateTourSchedules(params) {\n try {\n const response = await axios.post(`${BASE_URL}/batch_set`, toSnakeCase(params));\n return { data: toCamelCase(response.data), success: true };\n } catch (error) {\n if (error.response.status === 400 && error.response.data.errors) {\n return { success: false, errors: error.response.data.errors };\n }\n throw new Error(error);\n }\n}\n\nasync function getFamilies(tourScheduleId) {\n try {\n const { data } = await axios.get(`${BASE_URL}/${tourScheduleId}/families`);\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function getTourScheduleExceptions(params) {\n try {\n const { data } = await axios.get('/api/v1/legup/tour_schedule_exceptions', {\n params: toSnakeCase(params),\n });\n\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function createTourScheduleExceptions(params) {\n try {\n const { data } = await axios.post('/api/v1/legup/tour_schedule_exceptions', toSnakeCase(params));\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function updateTourScheduleExceptions(params) {\n try {\n const { exceptionId, ...reqParams } = params;\n const { data } = await axios.put(`/api/v1/legup/tour_schedule_exceptions/${exceptionId}`, toSnakeCase(reqParams));\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function cancelTourScheduleExceptions(tourScheduleExceptionId) {\n try {\n const { data } = await axios.delete(`/api/v1/legup/tour_schedule_exceptions/${tourScheduleExceptionId}`);\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nexport {\n getTourSchedules,\n updateTourSchedules,\n getFamilies,\n getTourScheduleExceptions,\n createTourScheduleExceptions,\n updateTourScheduleExceptions,\n cancelTourScheduleExceptions,\n};\n","import { minutesFromMidnightToTime, timeToMinutesFromMidnight } from '@utils';\nimport {\n getTourSchedules,\n updateTourSchedules,\n getFamilies,\n getTourScheduleExceptions,\n createTourScheduleExceptions,\n updateTourScheduleExceptions,\n cancelTourScheduleExceptions,\n} from './tours-schedules.service';\n\nexport default {\n namespaced: true,\n\n state: {\n capacity: 1,\n duration: 30,\n tourSchedules: {},\n openHouse: [],\n virtualLink: undefined,\n errors: false,\n families: [],\n exceptions: [],\n },\n\n mutations: {\n setTourSchedules: (state, { schedules, virtualLink }) => {\n state.capacity = schedules[0]?.capacity || 1;\n state.duration = schedules[0]?.duration || 30;\n state.virtualLink = virtualLink;\n\n const tourSchedules = {};\n schedules.forEach((schedule) => {\n const startTime = minutesFromMidnightToTime(schedule.startTime);\n const endTime = minutesFromMidnightToTime(schedule.endTime);\n const formattedSchedule = { ...schedule, startTime, endTime };\n if (tourSchedules[schedule.dayOfWeek]) {\n tourSchedules[schedule.dayOfWeek].push(formattedSchedule);\n } else {\n tourSchedules[schedule.dayOfWeek] = [formattedSchedule];\n }\n });\n\n state.tourSchedules = tourSchedules;\n },\n\n setOpenHouse: (state, schedules) => {\n state.openHouse = schedules;\n },\n\n setErrors: (state, hasErrors) => {\n state.errors = hasErrors;\n },\n\n setFamilies: (state, families) => {\n state.families = families;\n },\n\n setTourScheduleExceptions: (state, days) => {\n state.exceptions = days;\n },\n },\n\n actions: {\n async getTourSchedules({ commit, dispatch }, params) {\n try {\n const { tourSchedules, virtualLink } = await getTourSchedules(params);\n if (params.openHouse) {\n commit('setOpenHouse', tourSchedules);\n } else {\n commit('setTourSchedules', {\n schedules: tourSchedules || [],\n virtualLink,\n });\n }\n } catch (error) {\n dispatch(\n 'notifications/addToastError',\n { text: 'Could not fetch tour schedules', error },\n { root: true },\n );\n }\n },\n\n async updateTourSchedules({\n state, commit, dispatch,\n }, { schedules, centerId, virtualLink }) {\n commit('setErrors', false);\n const schedulesParam = [];\n try {\n Object.keys(schedules).forEach((day) => {\n schedules[day].forEach((schedule) => {\n schedulesParam.push({\n ...schedule,\n dayOfWeek: day,\n duration: state.duration,\n capacity: state.capacity,\n startTime: timeToMinutesFromMidnight(schedule.startTime),\n endTime: timeToMinutesFromMidnight(schedule.endTime),\n });\n });\n });\n const response = await updateTourSchedules({\n centerId,\n schedules: schedulesParam,\n virtualLink,\n });\n if (response.success) {\n commit('setTourSchedules', {\n schedules: response.data.tourSchedules || [],\n virtualLink: response.data.virtualLink,\n });\n dispatch(\n 'notifications/addToastSuccess',\n { text: 'Tour schedules updated' },\n { root: true },\n );\n } else {\n commit('setErrors', true);\n dispatch(\n 'notifications/addToastError',\n { text: response.errors[0], error: response.errors[0] },\n { root: true },\n );\n }\n } catch (error) {\n commit('setErrors', true);\n dispatch(\n 'notifications/addToastError',\n { text: 'Could not update tour schedules', error },\n { root: true },\n );\n }\n },\n\n async getFamilies({ commit, dispatch }, tourScheduleId) {\n try {\n const { data } = await getFamilies(tourScheduleId);\n commit('setFamilies', data);\n } catch (error) {\n dispatch(\n 'notifications/addToastError',\n { text: 'Could not fetch families', error },\n { root: true },\n );\n }\n },\n\n async getTourScheduleExceptions({ commit, dispatch }, params) {\n try {\n const data = await getTourScheduleExceptions(params);\n commit('setTourScheduleExceptions', data);\n } catch (error) {\n dispatch(\n 'notifications/addToastError',\n { text: 'Could not fetch unavailable dates', error },\n { root: true },\n );\n }\n },\n\n async createUnavailableDate({ dispatch }, params) {\n try {\n const response = await createTourScheduleExceptions(params);\n if (response.success) {\n dispatch('notifications/addToastSuccess', { text: 'Created successfully' }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not create unavailable date', error }, { root: true });\n }\n },\n\n async updateUnavailableDate({ dispatch }, params) {\n try {\n const response = await updateTourScheduleExceptions(params);\n if (response.success) {\n dispatch('notifications/addToastSuccess', { text: 'Updated successfully' }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update unavailable date', error }, { root: true });\n }\n },\n\n async cancelUnavailableDate({ dispatch }, tourScheduleExceptionId) {\n try {\n const response = await cancelTourScheduleExceptions(tourScheduleExceptionId);\n if (response.success) {\n dispatch('notifications/addToastSuccess', { text: 'Success! Unavailability canceled' }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not cancel unavailable date', error }, { root: true });\n }\n },\n },\n};\n","import {\n axios, toCamelCase, toSnakeCase,\n} from '@utils';\n\nconst BASE_URL = '/api/v1/legup/tours';\n\nasync function fetchTours(params) {\n const { data } = await axios.get(BASE_URL, {\n params: toSnakeCase(params),\n });\n return toCamelCase(data);\n}\n\nasync function exportTours(params) {\n const url = `${BASE_URL}/export`;\n await axios.get(url, {\n params: toSnakeCase(params),\n });\n}\n\nasync function searchByName(params) {\n const { data } = await axios.get(`${BASE_URL}/search_by_name`, { params: toSnakeCase(params) });\n\n return data;\n}\n\nasync function createOpenHouse(params) {\n const newParams = { ...params, isOpenHouse: true };\n const { data } = await axios.post('/api/v1/legup/tour_schedules', toSnakeCase(newParams));\n return toCamelCase(data);\n}\n\nasync function updateOpenHouse(params) {\n const { data } = await axios.put(`/api/v1/legup/tour_schedules/${params.tourScheduleId}`, toSnakeCase(params));\n return toCamelCase(data);\n}\n\nasync function cancelOpenHouse(params) {\n const { data } = await axios.delete(`/api/v1/legup/tour_schedules/${params.tourScheduleId}`, toSnakeCase(params));\n return toCamelCase(data);\n}\n\nasync function createTour(params) {\n const { data } = await axios.post(`${BASE_URL}/schedule`, toSnakeCase(params));\n return toCamelCase(data);\n}\n\nasync function fetchNewToursCount() {\n const response = await axios.get(`${BASE_URL}/new_count`);\n return toCamelCase(response.data);\n}\n\nasync function markSeen(body) {\n const response = await axios.put(\n `${BASE_URL}/mark_seen`,\n toSnakeCase(body),\n );\n\n return response;\n}\n\nasync function inviteToOpenHouse(params) {\n const { data } = await axios.post('/api/v1/legup/open_house_invites', toSnakeCase(params));\n return toCamelCase(data);\n}\n\n// eslint-disable-next-line\nexport {\n fetchTours,\n exportTours,\n searchByName,\n createOpenHouse,\n updateOpenHouse,\n cancelOpenHouse,\n fetchNewToursCount,\n markSeen,\n createTour,\n inviteToOpenHouse,\n};\n","import { groupBy } from 'lodash';\n\nimport {\n fetchTours,\n exportTours,\n searchByName,\n createOpenHouse,\n updateOpenHouse,\n cancelOpenHouse,\n fetchNewToursCount,\n markSeen,\n createTour,\n inviteToOpenHouse,\n} from './legup-tours.service';\n\nexport default {\n namespaced: true,\n state: {\n tours: [],\n searchResult: [],\n page: 1,\n total: 0,\n rowsPerPage: 20,\n tourSchedulesSet: false,\n newToursCount: 0,\n },\n getters: {\n tours(state) {\n return state.tours;\n },\n\n upcomingTours: (state) => (count) => {\n const tours = count ? state.tours.slice(0, count) : state.tours;\n return groupBy(tours, (tour) => tour.startTime.split('T')[0]);\n },\n },\n mutations: {\n setTours(state, tours) {\n state.tours = tours;\n },\n setPage: (state, page) => {\n state.page = page;\n },\n setTotal: (state, total) => {\n state.total = total;\n },\n setRowsPerPage: (state, rows) => {\n state.rowsPerPage = rows;\n },\n setSearchResults: (state, result) => {\n state.searchResult = result;\n },\n setTourSchedulesSet: (state, isSet) => {\n state.tourSchedulesSet = isSet;\n },\n setNewToursCount: (state, count) => {\n state.newToursCount = count;\n },\n },\n actions: {\n async fetchTours({ dispatch, commit, state }, {\n centerId, searchText, sortBy, sortDirection, pastTours, upcomingTours,\n }) {\n try {\n const {\n tours, page, total, tourSchedulesSet,\n } = await fetchTours({\n centerId,\n searchText,\n page: state.page,\n rowsPerPage: state.rowsPerPage,\n sortBy,\n sortDirection,\n pastTours,\n upcomingTours,\n });\n commit('setTours', tours);\n commit('setTotal', total);\n commit('setPage', page);\n commit('setTourSchedulesSet', tourSchedulesSet);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load tours', error }, { root: true });\n }\n },\n\n async searchByName({ commit, dispatch }, params) {\n try {\n const { results } = await searchByName(params);\n commit('setSearchResults', results);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not search.', error }, { root: true });\n }\n },\n\n async exportTours({ dispatch }, params) {\n try {\n await exportTours(params);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not export tours', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async createOpenHouse({ dispatch }, params) {\n try {\n await createOpenHouse(params);\n dispatch(\n 'notifications/addToastSuccess',\n { text: 'New open house scheduled' },\n { root: true },\n );\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not create open house', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async updateOpenHouse({ dispatch }, params) {\n try {\n await updateOpenHouse(params);\n dispatch(\n 'notifications/addToastSuccess',\n { text: 'Open house updated' },\n { root: true },\n );\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update open house', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async createTour({ dispatch }, params) {\n try {\n await createTour(params);\n dispatch(\n 'notifications/addToastSuccess',\n { text: 'New tour scheduled' },\n { root: true },\n );\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not create tour', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async fetchNewToursCount({ dispatch, commit }) {\n try {\n const data = await fetchNewToursCount();\n commit('setNewToursCount', data?.count);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could fetch new tours count', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async cancelOpenHouse({ dispatch }, params) {\n try {\n await cancelOpenHouse(params);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not cancel open house', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async markSeen({ commit, dispatch }, centerId) {\n try {\n const response = await markSeen({ centerId });\n if (response.status !== 200) {\n dispatch('notifications/addToastError', { text: 'Could not mark tours as seen' }, { root: true });\n }\n commit('setNewToursCount', response.data?.count);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not mark tours as seen', error }, { root: true });\n }\n },\n\n async inviteToOpenHouse({ dispatch }, params) {\n try {\n await inviteToOpenHouse(params);\n dispatch(\n 'notifications/addToastSuccess',\n { text: 'Open house invite sent' },\n { root: true },\n );\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not send open house invite', error }, { root: true });\n throw new Error();\n }\n },\n },\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nconst BASE_URL = '/api/v1/payment_collections';\n\nasync function fetchBillingPlans(\n facilityId,\n searchText,\n filter,\n page,\n rowsPerPage,\n sortBy,\n sortDirection,\n) {\n const { data } = await axios.get(BASE_URL, {\n params: {\n facility_id: facilityId,\n rows_per_page: rowsPerPage,\n sort_by: sortBy,\n sort_direction: sortDirection,\n search: searchText,\n filter,\n page,\n },\n });\n return toCamelCase(data);\n}\n\nasync function search(params) {\n const { data } = await axios.get(`${BASE_URL}/search`, { params: toSnakeCase(params) });\n\n return data;\n}\n\nasync function updateBillingPlan(id, params) {\n const url = `${BASE_URL}/${id}`;\n\n const { data } = await axios.put(url, { payment_collection: toSnakeCase(params) });\n return toCamelCase(data);\n}\n\nasync function fetchBillingPlan(id) {\n const url = `${BASE_URL}/${id}`;\n\n const { data } = await axios.get(url);\n return toCamelCase(data);\n}\n\nasync function dismissSetupAlert(billingIds, reInvite) {\n const url = `${BASE_URL}/dismiss_setup_alert`;\n\n const { data } = await axios.put(url, {\n payment_collection_ids: billingIds,\n re_invite: reInvite,\n });\n return toCamelCase(data);\n}\n\nexport {\n // eslint-disable-next-line\n fetchBillingPlans,\n search,\n updateBillingPlan,\n fetchBillingPlan,\n dismissSetupAlert,\n};\n","import {\n fetchBillingPlans,\n search,\n updateBillingPlan,\n fetchBillingPlan,\n dismissSetupAlert,\n} from './billing-plans.service';\n\nexport default {\n namespaced: true,\n state: {\n billingPlans: [],\n searchResult: [],\n page: 1,\n total: 0,\n rowsPerPage: 20,\n plansWithUnsetNextCharge: {},\n },\n getters: {\n billingPlans(state) {\n return state.billingPlans;\n },\n },\n mutations: {\n setBillingPlans(state, billingPlans) {\n state.billingPlans = billingPlans;\n },\n updateBillingPlan(state, { id, billingPlan }) {\n const index = state.billingPlans.findIndex((b) => b.id === id);\n if (index !== -1) {\n state.billingPlans.splice(index, 1, billingPlan);\n }\n },\n setSearchResults: (state, result) => {\n state.searchResult = result;\n },\n setPage: (state, page) => {\n state.page = page;\n },\n setTotal: (state, total) => {\n state.total = total;\n },\n setRowsPerPage: (state, rows) => {\n state.rowsPerPage = rows;\n },\n setPlansWithUnsetNextCharge: (state, plansWithUnsetNextCharge) => {\n state.plansWithUnsetNextCharge = plansWithUnsetNextCharge;\n },\n },\n actions: {\n async fetchBillingPlans({ dispatch, commit, state }, {\n facilityId, searchText, sortBy, sortDirection, filter,\n }) {\n try {\n const {\n paymentCollections, page, total, plansWithUnsetNextCharge,\n } = await fetchBillingPlans(\n facilityId,\n searchText,\n filter,\n state.page,\n state.rowsPerPage,\n sortBy,\n sortDirection,\n );\n\n commit('setBillingPlans', paymentCollections);\n commit('setTotal', total);\n commit('setPage', page);\n commit('setPlansWithUnsetNextCharge', plansWithUnsetNextCharge || {});\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load billing plans', error }, { root: true });\n }\n },\n async search({ commit, dispatch }, params) {\n try {\n const { results } = await search(params);\n commit('setSearchResults', results);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not search.', error }, { root: true });\n }\n },\n\n async fetchBillingPlan({ dispatch }, id) {\n let data = null;\n try {\n data = await fetchBillingPlan(id);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to fetch billing plan', error }, { root: true });\n }\n return data;\n },\n async updateBillingPlan({ commit, dispatch }, { id, params }) {\n let data = {};\n try {\n data = await updateBillingPlan(id, params);\n if (data.id) {\n commit('updateBillingPlan', { id: data.id, billingPlan: data });\n dispatch('notifications/addToastNotification', { text: 'Success! The billing plan has been updated.' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.errors }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to update', error }, { root: true });\n }\n return data;\n },\n async dismissSetupAlert({ commit, dispatch }, { billingIds, reInvite }) {\n try {\n await dismissSetupAlert(billingIds, reInvite);\n commit('setPlansWithUnsetNextCharge', {});\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to dismiss', error }, { root: true });\n }\n },\n },\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nconst BASE_URL = '/api/v1/legup/families';\n\nasync function fetchFamilies({\n searchText, page, rowsPerPage, sortBy, sortDirection, programs, status, leadsOnly,\n}) {\n const { data } = await axios.get(BASE_URL, {\n params: toSnakeCase({\n rowsPerPage,\n sortBy,\n sortDirection,\n searchText,\n page,\n programs,\n status,\n leadsOnly,\n }),\n });\n return toCamelCase(data);\n}\n\nasync function exportFamilies(searchText, programs, status, exportId) {\n const url = `${BASE_URL}/export`;\n await axios.get(url, {\n params: toSnakeCase({\n searchText,\n programs,\n status,\n exportId,\n }),\n });\n}\n\nasync function fetchFamily(parentId) {\n const { data } = await axios.get(`${BASE_URL}/${parentId}`);\n return toCamelCase(data);\n}\n\nasync function updateSubsidies(parentId, subsidies) {\n const { data } = await axios.post(`${BASE_URL}/${parentId}/update_subsidies`, toSnakeCase({ subsidies }));\n return toCamelCase(data);\n}\n\nasync function updateParents(parents) {\n const { data } = await axios.post(`${BASE_URL}/update_parents`, toSnakeCase({ parents }));\n return toCamelCase(data);\n}\n\nasync function updateChildren(children) {\n const { data } = await axios.post(`${BASE_URL}/update_children`, toSnakeCase({ children }));\n return toCamelCase(data);\n}\n\n// eslint-disable-next-line\nexport {\n fetchFamilies,\n exportFamilies,\n fetchFamily,\n updateSubsidies,\n updateParents,\n updateChildren,\n};\n","import {\n fetchFamilies,\n exportFamilies,\n fetchFamily,\n updateSubsidies,\n updateParents,\n updateChildren,\n} from './families.service';\n\nexport default {\n namespaced: true,\n state: {\n families: [],\n page: 1,\n total: 0,\n rowsPerPage: 20,\n sortBy: 'childName',\n sortDirection: 'asc',\n selectedFamily: {},\n },\n mutations: {\n setFamilies(state, families) {\n state.families = families;\n },\n\n setPage: (state, page) => {\n state.page = page;\n },\n\n setTotal: (state, total) => {\n state.total = total;\n },\n\n setRowsPerPage: (state, rows) => {\n state.rowsPerPage = rows;\n },\n\n setSortBy: (state, sortBy) => {\n state.sortBy = sortBy;\n },\n\n setSortDirection: (state, sortDirection) => {\n state.sortDirection = sortDirection;\n },\n\n setSelectedFamily: (state, selectedFamily) => {\n state.selectedFamily = selectedFamily;\n },\n removeFamily(state, childId) {\n state.families = state.families.filter((family) => family.child.id !== childId);\n },\n },\n actions: {\n async fetchFamilies({ dispatch, commit, state }, {\n searchText, programs, status, leadsOnly,\n }) {\n try {\n const {\n families, page, total,\n } = await fetchFamilies({\n searchText,\n page: state.page,\n rowsPerPage: state.rowsPerPage,\n sortBy: state.sortBy,\n sortDirection: state.sortDirection,\n programs,\n status,\n leadsOnly,\n });\n commit('setFamilies', families);\n commit('setTotal', total);\n commit('setPage', page);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load families', error }, { root: true });\n }\n },\n\n async fetchFamily({ dispatch, commit }, parentId) {\n try {\n const data = await fetchFamily(parentId);\n commit('setSelectedFamily', data);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load families', error }, { root: true });\n }\n },\n\n async exportFamilies({ dispatch }, {\n searchText, programs, status, exportId,\n }) {\n try {\n await exportFamilies(searchText, programs, status, exportId);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not export families', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async updateSubsidies({ dispatch }, { parentId, subsidies }) {\n try {\n await updateSubsidies(parentId, subsidies);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update subsidies', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async updateParents({ dispatch }, parents) {\n try {\n await updateParents(parents);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update parents', error }, { root: true });\n throw new Error(error);\n }\n },\n\n async updateChildren({ dispatch }, children) {\n try {\n await updateChildren(children);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not update child', error }, { root: true });\n throw new Error(error);\n }\n },\n },\n};\n","import {\n submitResponse,\n} from './ai-inquiries.service';\n\nexport default {\n namespaced: true,\n\n state: {\n responseSubmitted: false,\n },\n\n actions: {\n async submitResponse({ dispatch, state }, formData) {\n try {\n const response = await submitResponse(formData);\n if (response.success) {\n state.responseSubmitted = true;\n } else {\n dispatch('notifications/addToastError', {\n text: response.message,\n }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', {\n text: 'Could not submit response',\n error,\n }, { root: true });\n }\n },\n },\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\n\nasync function submitResponse(form) {\n const response = await axios.post('/ai_inquiry_responses', toSnakeCase(form));\n return toCamelCase(response.data);\n}\n\nexport {\n // eslint-disable-next-line import/prefer-default-export\n submitResponse,\n};\n","import { fetchHistory, fetchCurrentFailedPayments, dismissFailedPaymentsAlert } from './payment-history.service';\n\nexport default {\n namespaced: true,\n state: {\n history: [],\n page: 1,\n total: 0,\n rowsPerPage: 20,\n sortBy: 'date',\n sortDirection: 'desc',\n stats: {},\n status: undefined,\n },\n mutations: {\n setHistory(state, history) {\n state.history = history;\n },\n\n setPage: (state, page) => {\n state.page = page;\n },\n\n setTotal: (state, total) => {\n state.total = total;\n },\n\n setRowsPerPage: (state, rows) => {\n state.rowsPerPage = rows;\n },\n\n setSortBy: (state, sortBy) => {\n state.sortBy = sortBy;\n },\n\n setSortDirection: (state, sortDirection) => {\n state.sortDirection = sortDirection;\n },\n\n setStats(state, stats) {\n state.stats = stats;\n },\n },\n actions: {\n async fetchHistory({ dispatch, commit, state }, {\n facilityId, searchText, category, startDate, endDate, status,\n }) {\n try {\n const {\n paymentRequests,\n page,\n total,\n stats,\n } = await fetchHistory({\n facilityId,\n searchText,\n page: state.page,\n rowsPerPage: state.rowsPerPage,\n sortBy: state.sortBy,\n sortDirection: state.sortDirection,\n category,\n startDate,\n endDate,\n status,\n });\n commit('setHistory', paymentRequests);\n commit('setTotal', total);\n commit('setPage', page);\n commit('setStats', stats);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load payment history', error }, { root: true });\n }\n },\n async fetchCurrentFailedPayments({ dispatch }, facilityId) {\n let paymentRequests = {};\n try {\n paymentRequests = await fetchCurrentFailedPayments(facilityId);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load payments', error }, { root: true });\n }\n return paymentRequests;\n },\n async dismissFailedPaymentsAlert({ dispatch }, facilityId) {\n try {\n await dismissFailedPaymentsAlert(facilityId);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not dismiss alert', error }, { root: true });\n }\n },\n },\n};\n","import { axios, toCamelCase, toSnakeCase } from '@utils';\nimport moment from 'moment-timezone';\n\nasync function fetchHistory({\n facilityId, searchText, page, rowsPerPage, sortBy, sortDirection,\n category, startDate, endDate, status,\n}) {\n const { data } = await axios.post(`/api/v1/child_care_facilities/${facilityId}/payments_history`, toSnakeCase({\n rowsPerPage,\n sortBy,\n sortDirection,\n searchText,\n page,\n category,\n startDate,\n endDate,\n status,\n }));\n return toCamelCase(data);\n}\n\nasync function fetchCurrentFailedPayments(facilityId) {\n const { data } = await axios.get(`/api/v1/child_care_facilities/${facilityId}/current_month_failed_payments`, {\n params: {\n start_date: moment().startOf('month').format('YYYY-MM-DD'),\n end_date: moment().endOf('month').format('YYYY-MM-DD'),\n },\n });\n return data;\n}\n\nasync function dismissFailedPaymentsAlert(facilityId) {\n const { data } = await axios.put(`/api/v1/child_care_facilities/${facilityId}/dismiss_failed_payments_alert`, {\n start_date: moment().startOf('month').format('YYYY-MM-DD'),\n end_date: moment().endOf('month').format('YYYY-MM-DD'),\n });\n return data;\n}\n\n// eslint-disable-next-line\nexport { fetchHistory, fetchCurrentFailedPayments, dismissFailedPaymentsAlert };\n","import {\n axios, toCamelCase,\n} from '@utils';\n\nconst BASE_URL = '/api/v1/legup/leads';\n\nasync function providerOptinPaidLeads(paymentMethodId) {\n const url = `${BASE_URL}/provider_optin_paid_leads`;\n const { data } = await axios.put(url, {\n payment_method_id: paymentMethodId,\n });\n return toCamelCase(data);\n}\n\nasync function removeLead({ childId, centerId }) {\n const url = `${BASE_URL}/remove_lead`;\n const { data } = await axios.put(url, {\n center_id: centerId,\n child_id: childId,\n });\n return toCamelCase(data);\n}\n\nexport {\n providerOptinPaidLeads, removeLead,\n};\n","import {\n providerOptinPaidLeads, removeLead,\n} from './leads.service';\n\nexport default {\n namespaced: true,\n state: {\n optedInPaidLeads: false,\n },\n getters: {\n optedInPaidLeads(state) {\n return state.optedInPaidLeads;\n },\n },\n mutations: {\n setOptedInPaidLeads: (state, optedIn) => {\n state.optedInPaidLeads = optedIn;\n },\n },\n actions: {\n async removeLead({ dispatch, commit }, { centerId, childId }) {\n try {\n const data = await removeLead({ centerId, childId });\n if (data.success) {\n commit('families/removeFamily', childId, { root: true });\n dispatch('notifications/addToastNotification', { text: 'Lead removed' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.error }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to remove lead', error }, { root: true });\n }\n },\n async providerOptinPaidLeads({ dispatch, commit }, paymentMethodId) {\n try {\n const data = await providerOptinPaidLeads(paymentMethodId);\n if (data.success) {\n commit('setOptedInPaidLeads', true);\n dispatch('notifications/addToastNotification', { text: 'Success! Opted-in leads' }, { root: true });\n } else {\n dispatch('notifications/addToastError', { text: data.error }, { root: true });\n }\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Failed to optin', error }, { root: true });\n }\n },\n },\n};\n","import Vue from 'vue';\nimport Vuex from 'vuex';\nimport bankAccounts from '@stores/modules/bankAccounts';\nimport notifications from '@stores/modules/notifications';\nimport facilities from '@stores/modules/facilities';\nimport track from '@stores/modules/track';\nimport tours from '@stores/modules/tours';\nimport account from '@stores/modules/account';\nimport hubspot from '@services/hubspot.service';\nimport { fetchFacilities } from '@stores/modules/facilities.service';\nimport payments from '@stores/modules/payments';\nimport messaging from '@stores/modules/messaging';\nimport dependents from '@stores/modules/dependents';\nimport { toCamelCase } from '@utils';\nimport calendars from '@stores/modules/calendars';\nimport {\n searchFacilityByLicense,\n getStreetAddressFrom,\n searchFacilitiesByAddress,\n getFacilityPaymentHistory,\n} from './care-provider.service';\nimport user from './modules/provider-user';\nimport availability from './modules/availability';\nimport enrollments from './modules/enrollments';\nimport legupEnrollments from './modules/legup-enrollments';\nimport paymentRequests from './modules/payment_requests';\nimport providerBusiness from './modules/provider-business';\nimport providerFees from './modules/provider-fees';\nimport programs from './modules/programs';\nimport offers from './modules/offers';\nimport waitlist from './modules/waitlist';\nimport facility from '../../common/stores/modules/facility';\nimport providerPlan from './modules/provider-plan';\nimport legup from '../../common/stores/modules/legup';\nimport tourSchedules from './modules/tour-schedules';\nimport legupTours from './modules/legup-tours';\nimport billingPlans from './modules/billing-plans';\nimport families from './modules/families';\nimport aiInquiries from './modules/ai-inquiries';\nimport paymentHistory from './modules/payment-history';\nimport leads from './modules/leads';\n\nVue.use(Vuex);\n\nexport default new Vuex.Store({\n modules: {\n account,\n aiInquiries,\n availability,\n bankAccounts,\n calendars,\n dependents,\n enrollments,\n facilities,\n facility,\n families,\n legup,\n legupEnrollments,\n legupTours,\n messaging,\n notifications,\n offers,\n paymentRequests,\n payments,\n programs,\n providerBusiness,\n providerFees,\n providerPlan,\n tours,\n tourSchedules,\n billingPlans,\n track,\n user,\n waitlist,\n paymentHistory,\n leads,\n },\n state: {\n isInitialized: false,\n facilityId: undefined,\n providerId: null,\n paymentSource: false,\n paymentSourceFacilityId: undefined,\n onboardingLocation: null,\n isMobile: false,\n waitlistSpotExport: false,\n enrollmentsExport: false,\n toursExport: false,\n familyExport: false,\n providerPaymentRequests: [],\n },\n mutations: {\n setInitialized: (state) => {\n state.isInitialized = true;\n },\n\n setFacilityId(state, facilityId) {\n state.facilityId = facilityId;\n },\n\n setProviderId(state, providerId) {\n state.providerId = providerId;\n },\n\n setPaymentSource(state, paymentSource) {\n state.paymentSource = paymentSource;\n },\n\n setPaymentSourceFacilityId(state, facilityId) {\n state.paymentSourceFacilityId = facilityId;\n },\n\n setOnboardingLocation(state, location) {\n state.onboardingLocation = location;\n },\n\n setIsMobile(state, value) {\n state.isMobile = value;\n },\n\n setWaitlistSpotExport(state, waitlistSpotExport) {\n state.waitlistSpotExport = waitlistSpotExport;\n },\n\n setEnrollmentsExport(state, enrollmentsExport) {\n state.enrollmentsExport = enrollmentsExport;\n },\n\n setFamilyExport(state, familyExport) {\n state.familyExport = familyExport;\n },\n\n setToursExport(state, toursExport) {\n state.toursExport = toursExport;\n },\n\n setProviderPaymentRequests(state, providerPaymentRequests) {\n state.providerPaymentRequests = providerPaymentRequests;\n },\n },\n actions: {\n async init({ dispatch, commit }) {\n await dispatch('user/fetchCurrent');\n commit('setInitialized');\n },\n\n isInitialized({ state }) {\n return new Promise((resolve) => {\n const checkInitializedState = () => {\n setTimeout(() => {\n if (state.isInitialized) {\n resolve();\n } else {\n checkInitializedState();\n }\n }, 300);\n };\n if (state.isInitialized) {\n resolve();\n } else {\n checkInitializedState();\n }\n });\n },\n\n openChat: () => hubspot.open(),\n\n async searchFacilityByLicense({ dispatch }, { licenses, state }) {\n try {\n return await searchFacilityByLicense(licenses, state);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not search by license number', error }, { root: true });\n return undefined;\n }\n },\n\n async searchFacilitiesByAddress({ dispatch }, searchParams) {\n try {\n return await searchFacilitiesByAddress(searchParams);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not search by address', error }, { root: true });\n return undefined;\n }\n },\n\n async getFacilityPaymentHistory({ dispatch, commit }, { facilityId, startDate, endDate }) {\n try {\n const newPaymentRequests = await getFacilityPaymentHistory(facilityId, startDate, endDate);\n commit('setProviderPaymentRequests', newPaymentRequests.paymentRequests);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not load payment history', error }, { root: true });\n }\n },\n\n async getStreetAddressFrom({ dispatch }, { lat, long }) {\n try {\n const location = await getStreetAddressFrom(lat, long);\n return location;\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not fetch address from coordinates', error }, { root: true });\n return undefined;\n }\n },\n\n async getFacilityById({ dispatch }, id) {\n try {\n const [facilityData] = await fetchFacilities({ idsToRequest: [id] }, { limited: true });\n return toCamelCase(facilityData);\n } catch (error) {\n dispatch('notifications/addToastError', { text: 'Could not get facility data', error }, { root: true });\n return undefined;\n }\n },\n\n async setOnboardingLocation({ commit }, location) {\n commit('setOnboardingLocation', location);\n },\n },\n});\n","import {\n axios, toCamelCase, toSnakeCase, getEnvVar, getLocationObjFromGooglePlace,\n} from '@utils';\n\nasync function searchFacilityByLicense(licenses, state) {\n const { data } = await axios.get('/childcare/by_licenses.json', {\n params: {\n state,\n license_numbers: licenses.join(','),\n },\n });\n return toCamelCase(data.facilities[0]);\n}\n\nasync function getStreetAddressFrom(lat, long) {\n const { data } = await axios.get(\n `https://maps.googleapis.com/maps/api/geocode/json?latlng=${lat},${long}&key=${getEnvVar('GOOGLE_API_KEY')}`,\n {\n transformRequest: (body, headers) => {\n // eslint-disable-next-line no-param-reassign\n delete headers['X-CSRF-Token'];\n },\n },\n );\n\n if (!data.error_message) return getLocationObjFromGooglePlace(data.results[0]);\n\n return null;\n}\n\nasync function searchFacilitiesByAddress(searchParams) {\n const { data } = await axios.get('/childcare/by_address.json', {\n params: toSnakeCase(searchParams),\n });\n return toCamelCase(data.facilities);\n}\n\nasync function getFacilityPaymentHistory(facilityId, startDate, endDate) {\n const { data } = await axios.post(`/api/v1/child_care_facilities/${facilityId}/payments_history`, {\n date_from: startDate,\n date_to: endDate,\n });\n return toCamelCase(data);\n}\n\n// eslint-disable-next-line\nexport { searchFacilityByLicense, getStreetAddressFrom, searchFacilitiesByAddress, getFacilityPaymentHistory };\n","import { axios, toCamelCase } from '@utils';\nimport qs from 'qs';\n\nasync function getWaitlistSpots(params) {\n try {\n const { data } = await axios.get('/api/v1/legup/waitlist_spots', {\n params,\n paramsSerializer: () => qs.stringify(params, { arrayFormat: 'brackets' }),\n });\n\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function getWaitlistSpotDetails(id) {\n try {\n const { data } = await axios.get(`/api/v1/legup/waitlist_spots/${id}`);\n\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function sendWaitlistInvite(params) {\n const centerId = params.id;\n\n const { data } = await axios.post(`/api/v1/legup/centers/${centerId}/invite_family_to_waitlist`, params);\n\n return toCamelCase(data);\n}\n\nasync function searchSpotsByName(params) {\n const { data } = await axios.get('/api/v1/legup/waitlist_spots/search_by_name', { params });\n\n return data;\n}\n\nasync function fetchOfferPreview(params) {\n const centerId = params.center_id;\n\n const { data } = await axios.get(`/api/v1/legup/centers/${centerId}/offer_preview`, params);\n\n return toCamelCase(data);\n}\n\nasync function fetchAgeGroupsAndPrograms(facilityId) {\n const { data } = await axios.get(`/api/v1/legup/centers/${facilityId}/age_groups_and_programs`);\n\n return toCamelCase(data);\n}\n\nasync function markUnresponsive(id) {\n try {\n const { data } = await axios.put(`/api/v1/legup/waitlist_spots/${id}/unresponsive`);\n\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function reactivate(id) {\n try {\n const { data } = await axios.put(`/api/v1/legup/waitlist_spots/${id}/reactivate`);\n\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function markEnrolled(id) {\n try {\n const { data } = await axios.put(`/api/v1/legup/waitlist_spots/${id}/enrolled`);\n\n return toCamelCase(data);\n } catch (error) {\n throw new Error(error);\n }\n}\n\nasync function exportWaitlistSpots(centerId, exportId) {\n await axios.get('api/v1/legup/waitlist_spots/export', { params: { center_id: centerId, export_id: exportId } });\n}\n\nexport {\n getWaitlistSpots,\n getWaitlistSpotDetails,\n sendWaitlistInvite,\n fetchOfferPreview,\n fetchAgeGroupsAndPrograms,\n searchSpotsByName,\n markUnresponsive,\n markEnrolled,\n exportWaitlistSpots,\n reactivate,\n};\n"],"names":["namespaced","state","paymentMethods","getters","paymentMethodsAsArray","Object","values","filter","method","undefined","deleted","mutations","addPaymentMethods","methods","actions","fetchPaymentMethods","commit","dispatch","keys","length","async","get","data","error","text","root","Error","addBankAccount","methodData","publicToken","accountId","post","public_token","account_id","addBankAccountPaymentMethod","calendars","getCalendars","setCalendars","deleteCalendar","id","calendar","fetchCalendars","response","delete","current","pages","luUser","actionItemsCount","siteWideSearchResults","navbarExpanded","localStorage","getItem","avatar","luAvatar","isNewFeesVersion","currentUser","payload","updateNotificationSettings","settings","emailSettings","clearAvatar","navData","setLuUser","setIsNewFeesVersion","setSiteWideSearchResults","toggleNavbar","setItem","setCurrentUser","user","this","_vm","$setupUserAccess","setNavData","setActionItemsCount","actionItems","map","key","reduce","acc","items","concat","fetchCurrent","traits","fetchSiteWideSearchResults","query","updateContact","userObj","update","removeAvatar","fetchNavData","email","fetchActionItems","success","confirmNewFeeStructure","params","providerFees","BASE_PATH","history","spotsData","programs","conciergeNote","updateSpotsSuccess","unsavedSpotsErrorMsg","totalSpots","totalCurrentFreeSpots","totalForeseenFreeSpots","note","contents","lastUpdated","conciergeNoteLastUpdated","allSpotsByProgram","program","name","currentFreeSpots","foreseenFreeSpots","foreseenFreeSpotsByMonths","month","inMonths","monthName","spots","currentSpotsByProgram","upcomingSpotsByProgram","upcomingMonthLabels","setSpotsData","setHistory","setUpdateSpotsStatus","setUnsavedSpotsErrorMsg","fetchSpots","rootState","facilityId","updateCurrent","currentSpotsData","availabilityData","put","catch","errors","updateUpcoming","upcomingSpotsData","fetchHistory","reverse","enrollments","tourEnabled","depositAmount","documents","enrollmentDataLoaded","setEnrollments","setTourEnabled","setDocuments","setEnrollmentDataLoaded","setDepositAmount","fetchEnrollments","fetchStartEnrollment","providerId","startEnrollment","saveEnrollment","centerId","enrollmentData","prevEnrollmentId","enrollment","enrollmentIds","message","saveDocument","formData","document","headers","BASE_URL","searchResult","page","total","rowsPerPage","currentEnrollment","parentInfo","findParent","parentId","updateEnrollment","index","findIndex","e","splice","removeEnrollment","setSearchResults","result","setPage","setTotal","setRowsPerPage","rows","setCurrentEnrollment","addParent","parent","search","sortBy","sortDirection","facility_id","rows_per_page","sort_by","sort_direction","fetchEnrollment","enrollmentId","url","exportEnrollments","exportId","export_id","enroll","buttonLocation","button_location","unenroll","returnChild","lastDay","return_to_waitlist","last_day","status","inviteToReview","inviteToAutopay","cancelEnrollmentOffer","searchByName","results","editEnrollment","amount","startDate","endDate","frequency","autopay","editLastEnrollmentDay","fetchParentInfo","fetchAutoPayConfirmationInfo","paymentRequests","amount_pending_cents","Number","amount_enrollments_pending_cents","payment_requests","child_care_facility_id","provider_id","date_from","String","date_to","dependent_ids","aasm_state","requestModalOpen","existingParents","totalPendingPaymentsInDollars","amountPendingCents","setPaymentRequests","toggleRequestModal","isOpen","setExistingParents","parents","fetchPaymentRequests","createPayMeRequest","parentName","searchExistingParents","searchParam","urlParams","URLSearchParams","input","toString","createOneOffCharge","paymentRequestIds","provider","provider_name","tin","tin_type","address","phone_number","phone_number_formatted","first_name","last_name","orum_status","orum_status_message","bank_account","accept_kinside_payment","Boolean","payment_acceptance_method","company_name","website","provider_type","full_address","card","providerBusinessInfo","setProviderBusinessInfo","fetchProviderBusinessInfo","fetchProviderInfo","saveProviderBusinessInfo","providerData","saveProviderInfo","feesSettings","waitlist_fee","waive_fees_with_subsidy","kinside_waitlist_fee","kinside_transation_fee","setFeesSettings","fetchFeesSettings","submitFeesSettings","feesSettingsData","fetchPrograms","updateProgram","all","schedules","allAsArray","sort","p1","p2","position","schedulesAsArray","addPrograms","removeProgram","removed","rest","setSchedules","addProgram","addedProgram","fetchProgramDetails","programId","reOrderProgram","direction","reOrderedProgram","fetchSchedules","defaultEmptyOffer","title","amount_type","offer_type","ongoing_unit","ongoing_duration","description","provider_notes","offers","selectedOffer","setOffers","resetSelectedOffer","newOffer","setSelectedOffer","offerId","offer","fetchOffers","fetchFacilityOffers","removeOffer","facilityOfferId","newOffers","deleteFacilityOffer","saveOffer","offerToSave","hasExisitingOffer","savedOffer","facilityOffer","facility_offer","updateFacilityOffer","createFacilityOffer","filters","filterCounts","spotDetails","loadingSpots","loadingSpot","searchText","totalSearchResults","activeFilters","editProviderNotes","offerPreview","ageGroupsAndPrograms","forEach","options","option","count","type","filterCount","find","o","cleanActiveFilters","agegroups","getFilterCount","existingOption","push","defaultFilters","default","cleanFilters","Array","isArray","split","flat","filterOptionsWithCounts","filterOptionsWithoutCounts","setFacilityId","setFilters","setFilterCounts","setSpots","setLoadingSpots","loading","setLoadingSpot","setSearchText","setTotalSearchResults","setSort","setActiveFilters","setSpotDetail","spotDetail","setProviderNotes","notes","providerNotes","setSelectedDate","date","preferredDate","setSelectedSchedules","scheduleIds","selectedSchedules","setSchedulesLongName","scheduleNames","preferredSchedulesLongName","setEditProviderNotes","setOfferPreview","setAgeGroupsAndPrograms","setSpotAnswers","answers","customAnswers","getSpots","counts","getSpotDetails","sendWaitlistInvite","fetchOfferPreview","fetchAgeGroupsAndPrograms","reset","searchSpotsByName","markUnresponsive","spot","newSpot","notResponding","markEnrolled","decrementFilter","removeSpot","reactivate","acceptProviderPlan","providerPlans","selectedProviderPlan","setProviderPlanOptions","a","b","order","setProviderPlan","providerPlan","fetchProviderPlanOptions","fetchProviderPlan","updateAndAcceptProviderPlan","planId","updateProviderPlan","capacity","duration","tourSchedules","openHouse","virtualLink","families","exceptions","setTourSchedules","schedule","startTime","endTime","formattedSchedule","dayOfWeek","setOpenHouse","setErrors","hasErrors","setFamilies","setTourScheduleExceptions","days","getTourSchedules","updateTourSchedules","schedulesParam","day","getFamilies","tourScheduleId","getTourScheduleExceptions","createUnavailableDate","createTourScheduleExceptions","updateUnavailableDate","exceptionId","reqParams","updateTourScheduleExceptions","cancelUnavailableDate","tourScheduleExceptionId","cancelTourScheduleExceptions","tours","tourSchedulesSet","newToursCount","upcomingTours","slice","groupBy","tour","setTours","setTourSchedulesSet","isSet","setNewToursCount","fetchTours","pastTours","exportTours","createOpenHouse","newParams","isOpenHouse","updateOpenHouse","createTour","fetchNewToursCount","cancelOpenHouse","markSeen","body","inviteToOpenHouse","billingPlans","plansWithUnsetNextCharge","setBillingPlans","updateBillingPlan","billingPlan","setPlansWithUnsetNextCharge","fetchBillingPlans","paymentCollections","fetchBillingPlan","payment_collection","dismissSetupAlert","billingIds","reInvite","payment_collection_ids","re_invite","selectedFamily","setSortBy","setSortDirection","setSelectedFamily","removeFamily","childId","family","child","fetchFamilies","leadsOnly","fetchFamily","exportFamilies","updateSubsidies","subsidies","updateParents","updateChildren","children","responseSubmitted","submitResponse","form","stats","setStats","category","fetchCurrentFailedPayments","start_date","startOf","format","end_date","endOf","dismissFailedPaymentsAlert","optedInPaidLeads","setOptedInPaidLeads","optedIn","removeLead","center_id","child_id","providerOptinPaidLeads","paymentMethodId","payment_method_id","modules","account","aiInquiries","availability","bankAccounts","dependents","facilities","facility","legup","legupEnrollments","legupTours","messaging","notifications","payments","providerBusiness","track","waitlist","paymentHistory","leads","isInitialized","paymentSource","paymentSourceFacilityId","onboardingLocation","isMobile","waitlistSpotExport","enrollmentsExport","toursExport","familyExport","providerPaymentRequests","setInitialized","setProviderId","setPaymentSource","setPaymentSourceFacilityId","setOnboardingLocation","location","setIsMobile","value","setWaitlistSpotExport","setEnrollmentsExport","setFamilyExport","setToursExport","setProviderPaymentRequests","init","Promise","resolve","checkInitializedState","setTimeout","openChat","open","searchFacilityByLicense","licenses","license_numbers","join","searchFacilitiesByAddress","searchParams","getFacilityPaymentHistory","newPaymentRequests","getStreetAddressFrom","lat","long","transformRequest","error_message","getFacilityById","facilityData","idsToRequest","limited","getWaitlistSpots","paramsSerializer","arrayFormat","getWaitlistSpotDetails","exportWaitlistSpots"],"sourceRoot":""}