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oB,KAAO,IACjHmwB,EAAsBnwB,EAAoB8pB,EAAEqG,E","sources":["webpack://go-invoice-app/./src/modules/course/store/types.js","webpack://go-invoice-app/./src/modules/reports/store/types.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/types.js","webpack://go-invoice-app/./src/modules/authentication/store/types.js","webpack://go-invoice-app/./src/store/date/types.js","webpack://go-invoice-app/./src/modules/upcomingBookings/store/types.js","webpack://go-invoice-app/./src/modules/frequentPlayers/store/types.js","webpack://go-invoice-app/./src/modules/overview/store/types.js","webpack://go-invoice-app/./node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://go-invoice-app/./src/App.vue","webpack://go-invoice-app/./src/App.logic.js","webpack://go-invoice-app/./src/App.vue?7ccd","webpack://go-invoice-app/./src/routes/router.js","webpack://go-invoice-app/./src/store/serverPush/index.js","webpack://go-invoice-app/./src/store/date/state.js","webpack://go-invoice-app/./src/store/date/mutations.js","webpack://go-invoice-app/./src/store/date/actions.js","webpack://go-invoice-app/./src/store/date/getters.js","webpack://go-invoice-app/./src/store/date/index.js","webpack://go-invoice-app/./src/store/globalevents/index.js","webpack://go-invoice-app/./src/store/countries/state.js","webpack://go-invoice-app/./src/store/countries/mutations.js","webpack://go-invoice-app/./src/store/countries/actions.js","webpack://go-invoice-app/./src/store/countries/getters.js","webpack://go-invoice-app/./src/store/countries/index.js","webpack://go-invoice-app/./src/modules/start/store/actions.js","webpack://go-invoice-app/./src/modules/start/store/getters.js","webpack://go-invoice-app/./src/modules/start/store/index.js","webpack://go-invoice-app/./src/store/clubs/state.js","webpack://go-invoice-app/./src/store/clubs/mutations.js","webpack://go-invoice-app/./src/store/clubs/actions.js","webpack://go-invoice-app/./src/store/clubs/getters.js","webpack://go-invoice-app/./src/store/clubs/index.js","webpack://go-invoice-app/./src/modules/authentication/store/state.js","webpack://go-invoice-app/./src/modules/authentication/store/mutations.js","webpack://go-invoice-app/./src/modules/authentication/api/authApi.js","webpack://go-invoice-app/./src/modules/authentication/store/actions.js","webpack://go-invoice-app/./src/modules/authentication/store/getters.js","webpack://go-invoice-app/./src/modules/authentication/store/index.js","webpack://go-invoice-app/./src/modules/overview/store/actions.date.js","webpack://go-invoice-app/./src/modules/overview/store/actions.schedule.js","webpack://go-invoice-app/./src/modules/overview/helpers/default-schedule-helper.js","webpack://go-invoice-app/./src/modules/overview/store/actions.js","webpack://go-invoice-app/./src/modules/overview/store/getters.js","webpack://go-invoice-app/./src/modules/overview/store/mutations.js","webpack://go-invoice-app/./src/modules/overview/store/state.js","webpack://go-invoice-app/./src/modules/overview/store/index.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/state.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/helpers/hash-helper.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/mutations.create.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/mutations.edit.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/mutations.fees.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/mutations.articles.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/mutations.booking.remove.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/mutations.slotbooking.remove.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/mutations.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/api/teeTimeBookingApi.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/api/frequentPlayersApi.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/helpers/payload-helper.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/actions.api.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/helpers/frequentPlayers-helper.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/actions.create.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/helpers/slotbooking-validation-helper.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/actions.edit.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/api/feesApi.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/actions.fees.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/api/rentalItemsApi.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/actions.articles.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/actions.booking.remove.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/actions.slotbooking.remove.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/actions.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/getters.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/store/index.js","webpack://go-invoice-app/./src/modules/upcomingBookings/api/upcomingBookingsApi.js","webpack://go-invoice-app/./src/modules/upcomingBookings/store/actions.js","webpack://go-invoice-app/./src/modules/upcomingBookings/store/getters.js","webpack://go-invoice-app/./src/modules/upcomingBookings/store/mutations.js","webpack://go-invoice-app/./src/modules/upcomingBookings/store/state.js","webpack://go-invoice-app/./src/modules/upcomingBookings/store/index.js","webpack://go-invoice-app/./src/modules/frequentPlayers/api/frequentPlayersApi.js","webpack://go-invoice-app/./src/modules/frequentPlayers/store/actions.js","webpack://go-invoice-app/./src/modules/frequentPlayers/store/getters.js","webpack://go-invoice-app/./src/modules/frequentPlayers/store/mutations.js","webpack://go-invoice-app/./src/modules/frequentPlayers/store/state.js","webpack://go-invoice-app/./src/modules/frequentPlayers/store/index.js","webpack://go-invoice-app/./src/modules/contactInformation/api/contactInformationApi.js","webpack://go-invoice-app/./src/modules/contactInformation/store/actions.js","webpack://go-invoice-app/./src/modules/contactInformation/store/getters.js","webpack://go-invoice-app/./src/modules/contactInformation/store/mutations.js","webpack://go-invoice-app/./src/modules/contactInformation/store/state.js","webpack://go-invoice-app/./src/modules/contactInformation/store/index.js","webpack://go-invoice-app/./src/modules/reports/api/reportsApi.js","webpack://go-invoice-app/./src/modules/reports/store/actions.js","webpack://go-invoice-app/./src/modules/reports/store/getters.js","webpack://go-invoice-app/./src/modules/reports/store/mutations.js","webpack://go-invoice-app/./src/modules/reports/store/state.js","webpack://go-invoice-app/./src/modules/reports/store/index.js","webpack://go-invoice-app/./src/modules/course/store/state.js","webpack://go-invoice-app/./src/modules/course/store/mutations.js","webpack://go-invoice-app/./src/modules/course/store/getters.js","webpack://go-invoice-app/./src/modules/course/store/actions.js","webpack://go-invoice-app/./src/modules/course/store/index.js","webpack://go-invoice-app/./src/store/store.js","webpack://go-invoice-app/./src/main.js","webpack://go-invoice-app/./src/modules/contactInformation/store/types.js","webpack://go-invoice-app/./src/modules/teeTimeBooking/helpers/slotbooking-payload-helper.js","webpack://go-invoice-app/./src/store/clubs/types.js","webpack://go-invoice-app/./src/modules/booking/store/types.js","webpack://go-invoice-app/./src/modules/booking/helpers/booking-engine.js","webpack://go-invoice-app/./src/modules/booking/store/actions.js","webpack://go-invoice-app/./src/modules/booking/store/getters.js","webpack://go-invoice-app/./src/modules/booking/store/mutations.js","webpack://go-invoice-app/./src/modules/booking/store/state.js","webpack://go-invoice-app/./src/modules/booking/store/index.js","webpack://go-invoice-app/./src/modules/start/store/types.js","webpack://go-invoice-app/./src/modules/slotBooking/store/types.js","webpack://go-invoice-app/./src/modules/slotBooking/helpers/slot-booking-engine.js","webpack://go-invoice-app/./src/modules/slotBooking/store/actions.calls.js","webpack://go-invoice-app/./src/modules/slotBooking/store/actions.js","webpack://go-invoice-app/./src/modules/slotBooking/store/mutations.js","webpack://go-invoice-app/./src/modules/slotBooking/store/state.js","webpack://go-invoice-app/./src/modules/slotBooking/store/index.js","webpack://go-invoice-app/./src/store/countries/types.js","webpack://go-invoice-app/webpack/bootstrap","webpack://go-invoice-app/webpack/runtime/chunk loaded","webpack://go-invoice-app/webpack/runtime/compat get default export","webpack://go-invoice-app/webpack/runtime/define property getters","webpack://go-invoice-app/webpack/runtime/ensure chunk","webpack://go-invoice-app/webpack/runtime/get javascript chunk filename","webpack://go-invoice-app/webpack/runtime/get mini-css chunk filename","webpack://go-invoice-app/webpack/runtime/global","webpack://go-invoice-app/webpack/runtime/hasOwnProperty shorthand","webpack://go-invoice-app/webpack/runtime/load script","webpack://go-invoice-app/webpack/runtime/make namespace object","webpack://go-invoice-app/webpack/runtime/node module decorator","webpack://go-invoice-app/webpack/runtime/publicPath","webpack://go-invoice-app/webpack/runtime/css loading","webpack://go-invoice-app/webpack/runtime/jsonp chunk loading","webpack://go-invoice-app/webpack/startup"],"sourcesContent":["import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass CoursesTypes extends TypesBase {\r\n constructor() {\r\n super('courses');\r\n }\r\n\r\n getters = {\r\n GET_ACCESSABLE_CLUBS: 'getAccessableClubs',\r\n GET_ACCESSABLE_COURSES_BY_ID: 'getAccessableCourses',\r\n };\r\n\r\n mutations = {\r\n SET_ACCESSABLE_CLUBS_AND_COURSES: 'setAccessableClubsAndCourses',\r\n };\r\n\r\n actions = {\r\n FETCH_ACCESSABLE_CLUBS_AND_COURSES: 'fetchAccessableClubsAndCourses',\r\n };\r\n}\r\n\r\nclass NamespacedCoursesTypes extends CoursesTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedCoursesTypes();\r\nconst _types = new CoursesTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass ReportsTypes extends TypesBase {\r\n constructor() {\r\n super('reports');\r\n }\r\n getters = {\r\n GET_VALIDATION: 'getValidation',\r\n };\r\n\r\n mutations = {\r\n SET_START_TIME: 'setStartTime',\r\n SET_END_TIME: 'setEndTime',\r\n SET_REPORTS: 'setReports',\r\n SET_FIELD: 'setField',\r\n CLEAN_UP: 'cleanUp',\r\n };\r\n\r\n actions = {\r\n INITIALIZE: 'initialize',\r\n SET_START_TIME: 'setStartTime',\r\n SET_END_TIME: 'setEndTime',\r\n GET_REPORTS: 'getReports',\r\n };\r\n}\r\n\r\nclass NamespacedReportsTypes extends ReportsTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedReportsTypes();\r\nconst _types = new ReportsTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass TeeTimeBookingTypes extends TypesBase {\r\n constructor() {\r\n super('teeTimeBooking');\r\n }\r\n\r\n getters = {\r\n GET_CREATE_SLOT_BOOKINGS_AS_TABLE_DATA: 'getCreateSlotBookingsAsTableData',\r\n GET_SLOT_BOOKINGS_AS_TABLE_DATA: 'getSlotBookingsAsTableData',\r\n GET_AMOUNT_AVAILABLE_SLOTS: 'getAmountAvailableSlots',\r\n HAS_NO_SLOTS: 'hasNoSlots',\r\n IS_LAST_IDENTIFIED_SLOTBOOKING: 'isLastIdentifiedSlotBooking',\r\n GET_NAME_BY_SLOTBOOKING: 'getNameBySlotBooking',\r\n CURRENT_HCP: 'currentHcp',\r\n\r\n /* ARTICLES (Tillval) */\r\n GET_BOOKED_ARTICLES: 'getBookedArticles',\r\n GET_EDIT_ARTICLES_BY_ID: 'getEditArticlesById',\r\n GET_ARTICLES_VALIDATION: 'getArticlesValidation',\r\n\r\n /* VALIDATION */\r\n GET_ERRORS: 'getErrors',\r\n GET_WARNINGS: 'getWarnings',\r\n GET_GLOBAL_ERROR: 'getGlobalErrors',\r\n GET_GLOBAL_WARNING: 'getGlobalWarning',\r\n HAS_CHANGES: 'hasChanges',\r\n HASH_CHANGED_FREQUENT_PLAYERS: 'hashChangedFrequentPlayers',\r\n HASH_CHANGED_PLAYER_AGE: 'hashChangedPlayerAge',\r\n };\r\n\r\n mutations = {\r\n SET_NEW_ITEM_BOOKING_MESSAGES_AFTER_REMOVE: 'setNewItemBookingMessagesAfterRemove',\r\n SET_TEE_TIME_BOOKING: 'setTeeTimeBooking',\r\n SET_SELECTED_BOOKING: 'setSelectedBooking',\r\n\r\n BOOKING_ADD_SLOT_BOOKING: 'bookingAddSlotBooking',\r\n\r\n NEW_BOOKING_REMOVE_SLOT_BOOKING: 'newBookingRemoveSlotBooking',\r\n BOOKING_SET_SLOT_BOOKING_TO_REMOVE: 'bookingSetSlotBookingToRemove',\r\n\r\n BOOKING_REMOVE_SLOT_BOOKING: 'bookingRemoveSlotBooking',\r\n SET_SLOT_BOOKING_TO_EDIT: 'setSlotBookingToEdit',\r\n SET_SLOT_BOOKING_EDIT_PLAYER_FIELD: 'setSlotBookingEditPlayerField',\r\n SET_SLOT_BOOKING_EDIT_FIELD: 'setSlotBookingEditField',\r\n UPDATE_EDITED_SLOT_BOOKING: 'updateEditedSlotBooking',\r\n SET_EDIT_SLOTBOOKING_VALIDATION: 'setEditSlotBookingValidation',\r\n CLEAR_EDIT_SLOTBOOKING_VALIDATION: 'clearEditSlotbookingValidation',\r\n SET_SLOTBOOKING_EDIT_TO_MODIFIED: 'setSlotbookingEditToMoedified',\r\n\r\n SET_HASH_FREQUENT_PLAYERS: 'setHashFrequentPlayers',\r\n SET_HASH_PLAYER_AGE: 'setHashPlayerAge',\r\n SET_PLAYER_TYPE: 'setPlayerType',\r\n SET_FREQUENT_PLAYERS: 'setFrequentPlayers',\r\n UPDATE_FREQUENT_PLAYERS: 'updateFrequentPlayers',\r\n\r\n SET_VALIDATION: 'setValidation',\r\n\r\n SET_FEES: 'setFees',\r\n SET_FEE: 'setFee',\r\n\r\n SET_ARTICLES: 'setArticles',\r\n SET_ARTICLE: 'setArticle',\r\n SET_ARTICLE_FIELD: 'setArticleField',\r\n\r\n CLEAN_UP: 'cleanUp',\r\n\r\n SET_BOOKING_TO_REMOVE: 'setBookingToRemove',\r\n SET_BOOKING_TO_REMOVE_VALIDATION: 'removeBookingValidation',\r\n CLEAR_REMOVE_BOOKING: 'clearRemoveBooking',\r\n REMOVE_BOOKING: 'removeBooking',\r\n\r\n SET_PLAYER_TO_REMOVE_VALIDATION: 'setPlayerToRemoveValidation',\r\n };\r\n\r\n actions = {\r\n INITIALIZE: 'initialize',\r\n REINITIALIZE: 'reinitialize',\r\n FETCH_TEE_TIME_BOOKING: 'fetchTeeTimeBooking',\r\n LOCK_TEE_TIME: 'lockTeeTime',\r\n UNLOCK_TEE_TIME: 'unlockTeeTime',\r\n VALIDATE_TEE_TIME_BOOKING: 'validateTeeTimeBooking',\r\n SUBMIT_TEE_TIME_BOOKING: 'submitTeeTimeBooking',\r\n\r\n SET_SELECTED_BOOKING: 'setSelectedBooking',\r\n BOOKING_ADD_IDENTIFIED_PERSON: 'bookingAddIdentifiedPerson',\r\n BOOKING_ADD_SLOT: 'bookingAddSlot',\r\n NEW_BOOKING_REMOVE_SLOT_BOOKING: 'newBookingRemoveSlotBooking',\r\n BOOKING_PRE_REMOVE_SLOT_BOOKING: 'bookingPreRemoveSlotBooking',\r\n BOOKING_PRE_REMOVE_CLEAR: 'bookingPreRemoveClear',\r\n BOOKING_REMOVE_SLOT_BOOKING: 'bookingRemoveSlotBooking',\r\n SET_SLOT_BOOKING_TO_EDIT: 'setSlotBookingToEdit',\r\n SET_SLOT_BOOKING_EDIT_PLAYER_FIELD: 'setSlotBookingEditPlayerField',\r\n OVERRIDE_SLOT_BOOKING_EDIT: 'overrideSlotBookingEdit',\r\n SET_SLOT_BOOKING_EDIT_FIELD: 'setSLotBookingEditField',\r\n UPDATE_EDITED_SLOT_BOOKING: 'updateEditedSlotBooking',\r\n\r\n SET_PLAYER_TYPE: 'setPlayerType',\r\n GET_FREQUENT_PLAYERS: 'getFrequentPlayers',\r\n UPDATE_FREQUENT_PLAYERS: 'updateFrequentPlayers',\r\n\r\n VALIDATE_PERSON_IDENTIFICATION: 'validatePersonIdentification',\r\n\r\n FETCH_FEES: 'fetchFees',\r\n SET_FEE: 'setFee',\r\n\r\n FETCH_ARTICLES: 'fetchArticles',\r\n SET_ARTICLE: 'setArticle',\r\n SET_ARTICLE_FIELD: 'setArticleField',\r\n VALIDATE_ARTICLE_AVAILABILITY: 'validateArticleAvailability',\r\n\r\n VALIDATE_REMOVE_BOOKING: 'validateRemoveBooking',\r\n VALIDATE_REMOVE_PLAYER: 'validateRemovePlayer',\r\n REMOVE_BOOKING: 'removeBooking',\r\n CLEAR_REMOVE_BOOKING: 'clearRemoveBooking',\r\n\r\n CLEAN_UP: 'cleanUp',\r\n };\r\n}\r\n\r\nclass NamespacedTeeTimeBooking extends TeeTimeBookingTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedTeeTimeBooking();\r\nconst _types = new TeeTimeBookingTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass AuthenticationTypes extends TypesBase {\r\n constructor() {\r\n super('authentication');\r\n }\r\n\r\n getters = {\r\n GET_USER_TOKEN: 'getUserToken',\r\n IS_USER_LOGGED_IN: 'isUserLoggedIn',\r\n GET_PROFILE: 'getProfile',\r\n GET_CLUBS_AND_COURSES: 'getClubsAndCourses',\r\n GET_RELATED_CLUBS: 'getRelatedClubs',\r\n GET_LOADER: 'getLoader',\r\n GET_TOKEN_EXPIRES: 'getTokenExpires',\r\n };\r\n\r\n mutations = {\r\n SET_IS_LOGGED_IN: 'setIsLoggedIn',\r\n SET_AUTH_TOKEN: 'setAuthToken',\r\n SET_CLUBS_AND_COURSES: 'setClubsAndCourses',\r\n SET_USER: 'setUser',\r\n CLEAN_UP: 'cleanUp',\r\n SET_RELATED_CLUBS: 'setRelatedClubs',\r\n SET_LOGGING_OUT: 'setLoggingOut',\r\n SET_HAS_ERROR: 'setHasError',\r\n SET_CURRENT_ROUTE: 'setCurrentRoute',\r\n };\r\n\r\n actions = {\r\n INITIALIZE: 'initialize',\r\n SET_CURRENT_ROUTE: 'setCurrentRoute',\r\n SET_IS_LOGGED_IN: 'setIsLoggedIn',\r\n SET_LOGIN_CREDENTIALS: 'setLoginCredentials',\r\n SET_AUTH_TOKEN_SESSION_STORAGE: 'setAuthTokenSessionStorage',\r\n SET_LOGGING_OUT: 'setLoggingOut',\r\n LOG_OUT: 'logout',\r\n CLEAN_UP: 'cleanUp',\r\n SET_RELATED_CLUBS: 'setRelatedClubs',\r\n };\r\n}\r\n\r\nclass NamespacedAuthenticationTypes extends AuthenticationTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedAuthenticationTypes();\r\nconst _types = new AuthenticationTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from \"@sgf/go-utilities\";\r\n\r\nclass DateTypes extends TypesBase {\r\n constructor() {\r\n super(\"date\");\r\n }\r\n\r\n getters = {\r\n GET_HOLIDAYS: \"getHolidays\",\r\n IS_TEE_TIME_HOLIDAY: \"isTeeTimeHoliday\"\r\n };\r\n\r\n mutations = {\r\n SET_HOLIDAY_DATES: \"setHolidayDates\"\r\n };\r\n\r\n actions = {\r\n LOAD_HOLIDAYS: \"loadHolidays\",\r\n SCHEDULE_DATE_SELECTED: \"scheduleDateSelected\"\r\n };\r\n}\r\n\r\nclass NamespacedDateTypes extends DateTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedDateTypes();\r\nconst _types = new DateTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass UpcomingBookingsTypes extends TypesBase {\r\n constructor() {\r\n super('upcomingBookings');\r\n }\r\n getters = {};\r\n\r\n mutations = {\r\n SET_UPCOMING_BOOKINGS: 'setUpcomingBookings',\r\n CLEAN_UP: 'cleanUp',\r\n };\r\n\r\n actions = {\r\n INITIALIZE: 'initialize',\r\n GET_UPCOMING_BOOKINGS: 'getUpcomingBookings',\r\n };\r\n}\r\n\r\nclass NamespacedUpcomingBookingsTypes extends UpcomingBookingsTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedUpcomingBookingsTypes();\r\nconst _types = new UpcomingBookingsTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass FrequentPlayersTypes extends TypesBase {\r\n constructor() {\r\n super('frequentPlayers');\r\n }\r\n getters = {\r\n GET_SEARCH_VALIDATION: 'getSearchValidation',\r\n HASH_CHANGED: 'hashChanged',\r\n };\r\n\r\n mutations = {\r\n SET_HASH: 'setHash',\r\n SET_FREQUENT_PLAYERS: 'setFrequentPlayers',\r\n SET_FIELD: 'setField',\r\n SET_FOUND_PLAYER: 'setFoundPlayer',\r\n ADD_FREQUENT_PLAYER: 'addFrequentPlayer',\r\n SET_PLAYER_TO_REMOVE: 'setPlayerToRemove',\r\n REMOVE_PLAYER: 'removePlayer',\r\n CLEAN_SEARCH: 'cleanSearch',\r\n CLEAN_UP: 'cleanUp',\r\n };\r\n\r\n actions = {\r\n INITIALIZE: 'initialize',\r\n GET_FREQUENT_PLAYERS: 'getFrequentPlayers',\r\n SET_FIELD: 'setField',\r\n SET_FOUND_PLAYER: 'setFoundPlayer',\r\n VALIDATE_FOUND_PLAYER: 'validateFoundPlayer',\r\n ADD_FREQUENT_PLAYER: 'addFrequentPlayer',\r\n SET_PLAYER_TO_REMOVE: 'setPlayerToRemove',\r\n CLEAN_SEARCH: 'cleanSearch',\r\n REMOVE_PLAYER: 'removePlayer',\r\n SAVE_FREQUENT_PLAYERS: 'saveFrequentPlayers',\r\n };\r\n}\r\n\r\nclass NamespacedFrequentPlayersTypes extends FrequentPlayersTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedFrequentPlayersTypes();\r\nconst _types = new FrequentPlayersTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass OverviewTypes extends TypesBase {\r\n constructor() {\r\n super('overview');\r\n }\r\n\r\n getters = {\r\n GET_CLUBS_AND_COURSES: 'getClubsAndCourses',\r\n GET_RELATED_CLUBS: 'getRelatedClubs',\r\n GET_COURSES_PER_CLUBS: 'getCoursesPerClubs',\r\n GET_SCHEDULE_IDS: 'getScheduleIds',\r\n GET_SETTINGS_LOCAL_STORAGE: 'getSettingsLocalStorage',\r\n };\r\n\r\n mutations = {\r\n SET_DEFAULT_SCHEDULE: 'setDefaultSchedule',\r\n SET_RELATED_CLUBS: 'setRelatedClubs',\r\n SET_SCHEDULE_FIELD: 'setScheduleField',\r\n SET_SELECTED_TEETIME: 'setSelectedTeeTime',\r\n SET_DATE: 'setDate',\r\n SET_CLUB_ID: 'setClubId',\r\n SET_COURSE_ID: 'setCourseId',\r\n SET_BOOKING_TO_REMOVE: 'setBookingToRemove',\r\n SET_SLOT_BOOKING_TO_REMOVE: 'setSlotBookingToRemove',\r\n SET_EXPAND_SCHEDULE_ACTIVE: 'setExpandScheduleActive',\r\n SET_SCROLL_POSITION: 'setScrollPosition',\r\n };\r\n\r\n actions = {\r\n INITIALIZE: 'initialize',\r\n FETCH_SCHEDULES: 'fetchSchedules',\r\n FETCH_RELATED_CLUBS: 'fetchRelatedClubs',\r\n INITIALIZE_SCHEDULES: 'initializeSchedules',\r\n SET_SELECTED_TEETIME: 'setSelectedTeeTime',\r\n SET_DATE: 'setDate',\r\n REFETCH_SCHEDULE: 'refetchSchedule',\r\n SET_CLUB_ID: 'setClubId',\r\n SET_COURSE_ID: 'setCourseId',\r\n SET_BOOKING_TO_REMOVE: 'setBookingToRemove',\r\n SET_SLOT_BOOKING_TO_REMOVE: 'setSlotBookingToRemove',\r\n CLEAR_BOOKING_TO_REMOVE: 'clearBookingToRemove',\r\n SET_EXPAND_SCHEDULE_ACTIVE: 'setExpandScheduleActive',\r\n SET_SCROLL_POSITION: 'setScrollPosition',\r\n SET_SETTINGS_LOCAL_STORAGE: 'setSettingsLocalStorage',\r\n };\r\n}\r\n\r\nclass NamespacedOverviewTypes extends OverviewTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedOverviewTypes();\r\nconst _types = new OverviewTypes();\r\nexport { _types };\r\nexport default types;\r\n","var map = {\n\t\"./af\": 5177,\n\t\"./af.js\": 5177,\n\t\"./ar\": 1509,\n\t\"./ar-dz\": 1488,\n\t\"./ar-dz.js\": 1488,\n\t\"./ar-kw\": 8676,\n\t\"./ar-kw.js\": 8676,\n\t\"./ar-ly\": 2353,\n\t\"./ar-ly.js\": 2353,\n\t\"./ar-ma\": 4496,\n\t\"./ar-ma.js\": 4496,\n\t\"./ar-ps\": 6947,\n\t\"./ar-ps.js\": 6947,\n\t\"./ar-sa\": 2682,\n\t\"./ar-sa.js\": 2682,\n\t\"./ar-tn\": 9756,\n\t\"./ar-tn.js\": 9756,\n\t\"./ar.js\": 1509,\n\t\"./az\": 5533,\n\t\"./az.js\": 5533,\n\t\"./be\": 8959,\n\t\"./be.js\": 8959,\n\t\"./bg\": 7777,\n\t\"./bg.js\": 7777,\n\t\"./bm\": 4903,\n\t\"./bm.js\": 4903,\n\t\"./bn\": 1290,\n\t\"./bn-bd\": 7357,\n\t\"./bn-bd.js\": 7357,\n\t\"./bn.js\": 1290,\n\t\"./bo\": 1545,\n\t\"./bo.js\": 1545,\n\t\"./br\": 1470,\n\t\"./br.js\": 1470,\n\t\"./bs\": 4429,\n\t\"./bs.js\": 4429,\n\t\"./ca\": 7306,\n\t\"./ca.js\": 7306,\n\t\"./cs\": 6464,\n\t\"./cs.js\": 6464,\n\t\"./cv\": 3635,\n\t\"./cv.js\": 3635,\n\t\"./cy\": 4226,\n\t\"./cy.js\": 4226,\n\t\"./da\": 3601,\n\t\"./da.js\": 3601,\n\t\"./de\": 7853,\n\t\"./de-at\": 6111,\n\t\"./de-at.js\": 6111,\n\t\"./de-ch\": 4697,\n\t\"./de-ch.js\": 4697,\n\t\"./de.js\": 7853,\n\t\"./dv\": 708,\n\t\"./dv.js\": 708,\n\t\"./el\": 4691,\n\t\"./el.js\": 4691,\n\t\"./en-au\": 3872,\n\t\"./en-au.js\": 3872,\n\t\"./en-ca\": 8298,\n\t\"./en-ca.js\": 8298,\n\t\"./en-gb\": 6195,\n\t\"./en-gb.js\": 6195,\n\t\"./en-ie\": 6584,\n\t\"./en-ie.js\": 6584,\n\t\"./en-il\": 5543,\n\t\"./en-il.js\": 5543,\n\t\"./en-in\": 9033,\n\t\"./en-in.js\": 9033,\n\t\"./en-nz\": 9402,\n\t\"./en-nz.js\": 9402,\n\t\"./en-sg\": 3004,\n\t\"./en-sg.js\": 3004,\n\t\"./eo\": 2934,\n\t\"./eo.js\": 2934,\n\t\"./es\": 7650,\n\t\"./es-do\": 838,\n\t\"./es-do.js\": 838,\n\t\"./es-mx\": 7730,\n\t\"./es-mx.js\": 7730,\n\t\"./es-us\": 6575,\n\t\"./es-us.js\": 6575,\n\t\"./es.js\": 7650,\n\t\"./et\": 3035,\n\t\"./et.js\": 3035,\n\t\"./eu\": 3508,\n\t\"./eu.js\": 3508,\n\t\"./fa\": 119,\n\t\"./fa.js\": 119,\n\t\"./fi\": 527,\n\t\"./fi.js\": 527,\n\t\"./fil\": 5995,\n\t\"./fil.js\": 5995,\n\t\"./fo\": 2477,\n\t\"./fo.js\": 2477,\n\t\"./fr\": 5498,\n\t\"./fr-ca\": 6435,\n\t\"./fr-ca.js\": 6435,\n\t\"./fr-ch\": 7892,\n\t\"./fr-ch.js\": 7892,\n\t\"./fr.js\": 5498,\n\t\"./fy\": 7071,\n\t\"./fy.js\": 7071,\n\t\"./ga\": 1734,\n\t\"./ga.js\": 1734,\n\t\"./gd\": 217,\n\t\"./gd.js\": 217,\n\t\"./gl\": 7329,\n\t\"./gl.js\": 7329,\n\t\"./gom-deva\": 2124,\n\t\"./gom-deva.js\": 2124,\n\t\"./gom-latn\": 3383,\n\t\"./gom-latn.js\": 3383,\n\t\"./gu\": 5050,\n\t\"./gu.js\": 5050,\n\t\"./he\": 1713,\n\t\"./he.js\": 1713,\n\t\"./hi\": 3861,\n\t\"./hi.js\": 3861,\n\t\"./hr\": 6308,\n\t\"./hr.js\": 6308,\n\t\"./hu\": 609,\n\t\"./hu.js\": 609,\n\t\"./hy-am\": 7160,\n\t\"./hy-am.js\": 7160,\n\t\"./id\": 4063,\n\t\"./id.js\": 4063,\n\t\"./is\": 9374,\n\t\"./is.js\": 9374,\n\t\"./it\": 8383,\n\t\"./it-ch\": 1827,\n\t\"./it-ch.js\": 1827,\n\t\"./it.js\": 8383,\n\t\"./ja\": 3827,\n\t\"./ja.js\": 3827,\n\t\"./jv\": 9722,\n\t\"./jv.js\": 9722,\n\t\"./ka\": 1794,\n\t\"./ka.js\": 1794,\n\t\"./kk\": 7088,\n\t\"./kk.js\": 7088,\n\t\"./km\": 6870,\n\t\"./km.js\": 6870,\n\t\"./kn\": 4451,\n\t\"./kn.js\": 4451,\n\t\"./ko\": 3164,\n\t\"./ko.js\": 3164,\n\t\"./ku\": 8174,\n\t\"./ku-kmr\": 6181,\n\t\"./ku-kmr.js\": 6181,\n\t\"./ku.js\": 8174,\n\t\"./ky\": 8474,\n\t\"./ky.js\": 8474,\n\t\"./lb\": 9680,\n\t\"./lb.js\": 9680,\n\t\"./lo\": 5867,\n\t\"./lo.js\": 5867,\n\t\"./lt\": 5766,\n\t\"./lt.js\": 5766,\n\t\"./lv\": 9532,\n\t\"./lv.js\": 9532,\n\t\"./me\": 8076,\n\t\"./me.js\": 8076,\n\t\"./mi\": 1848,\n\t\"./mi.js\": 1848,\n\t\"./mk\": 306,\n\t\"./mk.js\": 306,\n\t\"./ml\": 3739,\n\t\"./ml.js\": 3739,\n\t\"./mn\": 9053,\n\t\"./mn.js\": 9053,\n\t\"./mr\": 6169,\n\t\"./mr.js\": 6169,\n\t\"./ms\": 3386,\n\t\"./ms-my\": 2297,\n\t\"./ms-my.js\": 2297,\n\t\"./ms.js\": 3386,\n\t\"./mt\": 7075,\n\t\"./mt.js\": 7075,\n\t\"./my\": 2264,\n\t\"./my.js\": 2264,\n\t\"./nb\": 2274,\n\t\"./nb.js\": 2274,\n\t\"./ne\": 8235,\n\t\"./ne.js\": 8235,\n\t\"./nl\": 2572,\n\t\"./nl-be\": 3784,\n\t\"./nl-be.js\": 3784,\n\t\"./nl.js\": 2572,\n\t\"./nn\": 4566,\n\t\"./nn.js\": 4566,\n\t\"./oc-lnc\": 9330,\n\t\"./oc-lnc.js\": 9330,\n\t\"./pa-in\": 9849,\n\t\"./pa-in.js\": 9849,\n\t\"./pl\": 4418,\n\t\"./pl.js\": 4418,\n\t\"./pt\": 9834,\n\t\"./pt-br\": 8303,\n\t\"./pt-br.js\": 8303,\n\t\"./pt.js\": 9834,\n\t\"./ro\": 4457,\n\t\"./ro.js\": 4457,\n\t\"./ru\": 2271,\n\t\"./ru.js\": 2271,\n\t\"./sd\": 1221,\n\t\"./sd.js\": 1221,\n\t\"./se\": 3478,\n\t\"./se.js\": 3478,\n\t\"./si\": 7538,\n\t\"./si.js\": 7538,\n\t\"./sk\": 5784,\n\t\"./sk.js\": 5784,\n\t\"./sl\": 6637,\n\t\"./sl.js\": 6637,\n\t\"./sq\": 6794,\n\t\"./sq.js\": 6794,\n\t\"./sr\": 5719,\n\t\"./sr-cyrl\": 3322,\n\t\"./sr-cyrl.js\": 3322,\n\t\"./sr.js\": 5719,\n\t\"./ss\": 6000,\n\t\"./ss.js\": 6000,\n\t\"./sv\": 1011,\n\t\"./sv.js\": 1011,\n\t\"./sw\": 748,\n\t\"./sw.js\": 748,\n\t\"./ta\": 1025,\n\t\"./ta.js\": 1025,\n\t\"./te\": 1885,\n\t\"./te.js\": 1885,\n\t\"./tet\": 8861,\n\t\"./tet.js\": 8861,\n\t\"./tg\": 6571,\n\t\"./tg.js\": 6571,\n\t\"./th\": 5802,\n\t\"./th.js\": 5802,\n\t\"./tk\": 9527,\n\t\"./tk.js\": 9527,\n\t\"./tl-ph\": 9231,\n\t\"./tl-ph.js\": 9231,\n\t\"./tlh\": 1052,\n\t\"./tlh.js\": 1052,\n\t\"./tr\": 5096,\n\t\"./tr.js\": 5096,\n\t\"./tzl\": 9846,\n\t\"./tzl.js\": 9846,\n\t\"./tzm\": 1765,\n\t\"./tzm-latn\": 7711,\n\t\"./tzm-latn.js\": 7711,\n\t\"./tzm.js\": 1765,\n\t\"./ug-cn\": 8414,\n\t\"./ug-cn.js\": 8414,\n\t\"./uk\": 6618,\n\t\"./uk.js\": 6618,\n\t\"./ur\": 158,\n\t\"./ur.js\": 158,\n\t\"./uz\": 7609,\n\t\"./uz-latn\": 2475,\n\t\"./uz-latn.js\": 2475,\n\t\"./uz.js\": 7609,\n\t\"./vi\": 1135,\n\t\"./vi.js\": 1135,\n\t\"./x-pseudo\": 4051,\n\t\"./x-pseudo.js\": 4051,\n\t\"./yo\": 2218,\n\t\"./yo.js\": 2218,\n\t\"./zh-cn\": 2648,\n\t\"./zh-cn.js\": 2648,\n\t\"./zh-hk\": 1632,\n\t\"./zh-hk.js\": 1632,\n\t\"./zh-mo\": 1541,\n\t\"./zh-mo.js\": 1541,\n\t\"./zh-tw\": 304,\n\t\"./zh-tw.js\": 304\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 5358;","\r\n\r\n\r\n\r\n\r\n","export default {\r\n correlationIds() {\r\n return [\r\n 'removeBooking',\r\n 'validateRemoveBooking',\r\n 'validateRemoveBooking',\r\n 'removeBooking',\r\n 'moveBooking',\r\n 'validateMoveBooking',\r\n 'moveBooking',\r\n 'validateMoveBooking',\r\n 'setSaveSettings',\r\n 'validateAvailability',\r\n 'validateTeeTimeBookings',\r\n 'updateTeeTimeBooking',\r\n 'validatePersonIdentification',\r\n 'validateRemovePlayer',\r\n 'removePlayer',\r\n 'postLoginCredentials',\r\n 'saveFrequentPlayers',\r\n 'fetchReports',\r\n 'validateFrequentPlayer',\r\n ];\r\n },\r\n};\r\n","import { render } from \"./App.vue?vue&type=template&id=6e543724\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=6e543724&lang=css\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createRouter, createWebHashHistory } from 'vue-router';\r\nconst LoginPage = () => import('../modules/login/components/pages/LoginPage');\r\nconst AppAuthView = () => import('../modules/authentication/components/views/AppAuthView');\r\nconst OverviewPage = () => import('../modules/overview/components/pages/OverviewPage');\r\nconst TeeTimeBookingPage = () => import('../modules/teeTimeBooking/components/pages/TeeTimeBookingPage');\r\nconst UpcomingBookingsPage = () => import('../modules/upcomingBookings/compontens/pages/UpcomingBookingsPage');\r\nconst FrequentPlayersPage = () => import('../modules/frequentPlayers/components/pages/FrequentPlayersPage');\r\nconst ContactInformationPage = () => import('../modules/contactInformation/components/pages/ContactInformationPage');\r\nconst ReportsPage = () => import('../modules/reports/components/pages/ReportsPage');\r\n\r\nexport default createRouter({\r\n history: createWebHashHistory(),\r\n routes: [\r\n {\r\n path: '/',\r\n name: 'login',\r\n component: LoginPage,\r\n },\r\n {\r\n path: '/partner-booking',\r\n name: 'BookingRootPage',\r\n component: AppAuthView,\r\n children: [\r\n {\r\n path: '/booking',\r\n name: 'Overview',\r\n component: OverviewPage,\r\n },\r\n {\r\n path: '/booking/teeTime/:teeTimeId',\r\n name: 'TeeTimeBooking',\r\n component: TeeTimeBookingPage,\r\n },\r\n {\r\n path: '/upcomingBookings',\r\n name: 'UpcomingBookings',\r\n component: UpcomingBookingsPage,\r\n },\r\n {\r\n path: '/frequentplayers',\r\n name: 'FrequentPlayers',\r\n component: FrequentPlayersPage,\r\n },\r\n {\r\n path: '/contact',\r\n name: 'Contact',\r\n component: ContactInformationPage,\r\n },\r\n {\r\n path: '/reports',\r\n name: 'Reports',\r\n component: ReportsPage,\r\n },\r\n ],\r\n },\r\n ],\r\n});\r\n","import { serverPushStore, serverPushTypes, _types, eventHelper } from '@sgf/go-server-push';\r\nimport { scheduleTypes } from '@sgf/go-schedule';\r\nimport { apiTypes } from '@sgf/go-api-services';\r\nimport moment from 'moment';\r\nserverPushStore.state.serverPushEndpoint = process.env.VUE_APP_SERVERPUSH;\r\n\r\nserverPushStore.actions[_types.actions.ON_EVENT] = (context, payload) => {\r\n let teeTimeUpdated = eventHelper.handleTeeTimeUpdated(payload);\r\n if (teeTimeUpdated) {\r\n context.dispatch(\r\n scheduleTypes.actions.FETCH_PATCH_FOR_TEETIME,\r\n {\r\n teeTimeId: teeTimeUpdated.teeTimeId,\r\n scheduleId: teeTimeUpdated.courseId,\r\n silent: true,\r\n },\r\n { root: true }\r\n );\r\n }\r\n let courseUpdated = eventHelper.handleCourseUpdated(payload);\r\n if (courseUpdated) {\r\n context.dispatch(\r\n scheduleTypes.actions.FETCH_SCHEDULE,\r\n {\r\n courseId: courseUpdated.id,\r\n date: moment(new Date(courseUpdated.date)).format('YYYY-MM-DD'),\r\n silent: true,\r\n },\r\n { root: true }\r\n );\r\n }\r\n};\r\n\r\nserverPushStore.actions[_types.actions.SET_LOADER] = (context, isActive = false) => {\r\n context.dispatch(\r\n apiTypes.actions.SET_LOADER,\r\n {\r\n isActive: isActive,\r\n correlationId: 'initializeServerPush',\r\n message: '',\r\n origin: '',\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n};\r\nexport { serverPushStore, serverPushTypes };\r\n","export default {\r\n holidays: []\r\n};\r\n","import { _types } from \"./types\";\r\nexport default {\r\n [_types.mutations.SET_HOLIDAY_DATES]: (state, holidays) => {\r\n state.holidays = holidays;\r\n }\r\n};\r\n","import { _types } from './types';\r\nimport { HolidaysApi } from '@sgf/go-api-services';\r\nimport moment from 'moment';\r\nconst holidaysApi = new HolidaysApi();\r\n\r\nexport default {\r\n [_types.actions.LOAD_HOLIDAYS]: (context) => {\r\n holidaysApi.getHolidays(context).then((response) => {\r\n var holidayList = [];\r\n response.forEach((holiday) => {\r\n holidayList.push({\r\n date: moment(holiday.date),\r\n name: holiday.name,\r\n });\r\n });\r\n context.commit(_types.mutations.SET_HOLIDAY_DATES, holidayList);\r\n });\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport moment from 'moment';\r\n\r\nexport default {\r\n [_types.getters.GET_HOLIDAYS]: (state) => {\r\n if (state.holidays !== undefined) return state.holidays;\r\n else return [];\r\n },\r\n [_types.getters.IS_TEE_TIME_HOLIDAY]: (state) => (teeTime) => {\r\n var isHolidayDate = false;\r\n var date = moment(teeTime).format('D MMM YY');\r\n var holidays = state.holidays;\r\n holidays.forEach((holiday) => {\r\n if (holiday.date.format('D MMM YY') == date) isHolidayDate = true;\r\n });\r\n if (!isHolidayDate) return moment(teeTime).format('dddd') === 'söndag';\r\n\r\n return isHolidayDate;\r\n },\r\n};\r\n","import state from \"./state\";\r\nimport mutations from \"./mutations\";\r\nimport actions from \"./actions\";\r\nimport getters from \"./getters\";\r\nimport dateTypes from \"./types\";\r\n\r\nexport { dateTypes };\r\n\r\nexport default {\r\n namespaced: true,\r\n state: state,\r\n mutations: mutations,\r\n actions: actions,\r\n getters: getters\r\n};\r\n","import { globalEventTypes, internalGlobalEventTypes } from '@sgf/go-utilities';\r\nimport { serverPushTypes } from '@sgf/go-server-push';\r\nexport default {\r\n namespaced: true,\r\n namespace: globalEventTypes.namespace,\r\n actions: {\r\n [internalGlobalEventTypes.actions.SCHEDULE_LOADED]: (context, payload) => {\r\n context.dispatch(\r\n serverPushTypes.actions.REGISTER_SCHEDULE_HOOKS,\r\n {\r\n courseId: payload.courseId,\r\n date: new Date(payload.date),\r\n },\r\n { root: true }\r\n );\r\n },\r\n },\r\n};\r\n","export default {\r\n countries: [],\r\n defaultCountry: { id: 3434 }\r\n};\r\n","import { _types } from \"./types\";\r\n\r\nfunction priotizeCountires(countries) {\r\n countries.unshift({\r\n id: null,\r\n value: \"------------------------------\"\r\n })\r\n let countriesToPriotize = [\"Finland\", \"Norge\", \"Danmark\", \"Sverige\"]\r\n countriesToPriotize.forEach(c => {\r\n let index = countries.findIndex(country => {\r\n return country.value === c\r\n })\r\n if (index !== -1) {\r\n countries.unshift(countries[index])\r\n countries.splice(index + 1, 1)\r\n }\r\n })\r\n return countries\r\n}\r\n\r\nexport default {\r\n [_types.mutations.SET_COUNTRIES]: (state, payload) => {\r\n state.countries = priotizeCountires(payload);\r\n state.defaultCountry = payload.find(c => {\r\n return c.value === \"Sverige\"\r\n });\r\n }\r\n};\r\n","import { _types } from \"./types\";\r\nimport { CountriesApi } from \"@sgf/go-api-services\";\r\nconst countriesApi = new CountriesApi();\r\n\r\nexport default {\r\n [_types.actions.LOAD_COUNTRIES]: context => {\r\n countriesApi.getCountries(context).then(response => {\r\n var countriesList = [];\r\n response.forEach(country => {\r\n countriesList.push({\r\n id: country.id,\r\n value: country.name\r\n });\r\n });\r\n context.commit(_types.mutations.SET_COUNTRIES, countriesList);\r\n });\r\n }\r\n};\r\n","import { _types } from \"./types\";\r\n\r\nexport default {\r\n [_types.getters.GET_COUNTRIES]: state => {\r\n if (state.countries !== undefined)\r\n return state.countries\r\n else\r\n return [];\r\n }\r\n};\r\n","import state from \"./state\";\r\nimport mutations from \"./mutations\";\r\nimport actions from \"./actions\";\r\nimport getters from \"./getters\";\r\nimport countriesTypes from \"./types\";\r\n\r\nexport { countriesTypes };\r\n\r\nexport default {\r\n namespaced: true,\r\n state: state,\r\n mutations: mutations,\r\n actions: actions,\r\n getters: getters\r\n};\r\n","import { _types } from './types';\r\nimport { scheduleTypes } from '@types';\r\nimport { dateTypes, countriesTypes, serverPushTypes, bookingTypes } from '@types';\r\n\r\nexport default {\r\n [_types.actions.INITIALIZE_APPLICATION]: (context) => {\r\n context.dispatch(serverPushTypes.actions.INITIALIZE_SERVER_PUSH, {}, { root: true });\r\n context.dispatch(dateTypes.actions.LOAD_HOLIDAYS, {}, { root: true });\r\n context.dispatch(countriesTypes.actions.LOAD_COUNTRIES, {}, { root: true });\r\n context.dispatch(bookingTypes.actions.CLEAR_ALL_OWN_LOCKS, {}, { root: true });\r\n context.dispatch(scheduleTypes.actions.SET_FILTER, { scheduleId: 'schedule1', filter: 'golfcart' }, { root: true });\r\n context.dispatch(scheduleTypes.actions.SET_FILTER, { scheduleId: 'schedule2', filter: 'golfcart' }, { root: true });\r\n },\r\n};\r\n","import { _types } from './types';\r\nexport default {\r\n [_types.getters.GET_LOADER]: (state, getters, rootState) => {\r\n let clubId = rootState.authentication.user.profile.clubId;\r\n let coursesLoader = rootState.api.loaders[clubId];\r\n let clubsAndCoursesLoader = rootState.api.loaders.getClubsAndCourses;\r\n let courseLoader = rootState.api.loaders.initializeServerPush;\r\n if (coursesLoader && coursesLoader.isActive) {\r\n return coursesLoader;\r\n }\r\n if (clubsAndCoursesLoader && clubsAndCoursesLoader.isActive) {\r\n return clubsAndCoursesLoader;\r\n }\r\n if (courseLoader && courseLoader.isActive) {\r\n return courseLoader;\r\n }\r\n return {\r\n isActive: false,\r\n };\r\n },\r\n};\r\n","import actions from './actions';\r\nimport getters from './getters';\r\nimport startTypes from './types';\r\n\r\nexport { startTypes };\r\nexport default {\r\n namespaced: true,\r\n namespace: startTypes.namespace,\r\n state: {},\r\n mutations: {},\r\n actions: actions,\r\n getters: getters,\r\n};\r\n","export default {\r\n clubOptions: {}\r\n};","import { _types } from './types';\r\nimport Vue from 'vue';\r\nexport default {\r\n [_types.mutations.SET_CLUB_OPTIONS]: (state, payload) => {\r\n state.clubOptions = Object.assign({}, state.clubOptions, {\r\n [payload.teeTimeId]: payload.options,\r\n });\r\n },\r\n\r\n [_types.mutations.SET_CLUBS]: (state, payload) => {\r\n state.clubs = payload;\r\n },\r\n\r\n [_types.mutations.RESET_CLUB_OPTIONS]: (state, teeTimeId) => {\r\n delete state.clubOptions[teeTimeId];\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport { ClubsApi } from '@sgf/go-api-services';\r\nconst clubsApi = new ClubsApi();\r\n\r\nexport default {\r\n [_types.actions.LOAD_CLUB_OPTIONS]: (context, payload) => {\r\n clubsApi.getClubs(context, payload.searchPhrase).then((response) => {\r\n context.commit(_types.mutations.SET_CLUB_OPTIONS, {\r\n teeTimeId: payload.teeTimeId,\r\n options: response,\r\n });\r\n });\r\n },\r\n\r\n [_types.actions.RESET_CLUB_OPTIONS]: (context, teeTimeId) => {\r\n context.commit(_types.mutations.RESET_CLUB_OPTIONS, teeTimeId);\r\n },\r\n\r\n [_types.actions.FETCH_CLUBS]: async (context) => {\r\n if (context.state.clubs) return;\r\n let result = await clubsApi.getClubs(context);\r\n context.commit(_types.mutations.SET_CLUBS, result);\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.getters.GET_CLUB_OPTIONS]: (state) => (id) => {\r\n if (state.clubOptions[id] !== undefined) return state.clubOptions[id].map((club) => club.name);\r\n else return [];\r\n },\r\n [_types.getters.GET_CLUBS]: (state) => {\r\n if (!state.clubs) return [];\r\n return state.clubs.map((club) => {\r\n return {\r\n label: club.name,\r\n value: club.id,\r\n };\r\n });\r\n },\r\n};\r\n","import state from \"./state\";\r\nimport mutations from \"./mutations\";\r\nimport actions from \"./actions\";\r\nimport getters from \"./getters\";\r\nimport clubsTypes from \"./types\";\r\n\r\nexport {\r\n clubsTypes\r\n};\r\n\r\nexport default {\r\n namespaced: true,\r\n state: state,\r\n mutations: mutations,\r\n actions: actions,\r\n getters: getters\r\n};","const state = {\r\n authToken: undefined,\r\n formIsSubmitted: false,\r\n user: {},\r\n relatedClubs: [],\r\n isLoggingOut: false,\r\n hasError: false,\r\n currentRoute: undefined,\r\n};\r\nexport default state;\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.mutations.SET_IS_LOGGED_IN]: (state, isLoggedIn) => {\r\n state.isLoggedIn = isLoggedIn;\r\n },\r\n\r\n [_types.mutations.SET_HAS_ERROR]: (state, hasError) => {\r\n state.hasError = hasError;\r\n },\r\n\r\n [_types.mutations.SET_AUTH_TOKEN]: (state, token) => {\r\n state.authToken = token;\r\n },\r\n\r\n [_types.mutations.SET_USER]: (state, user) => {\r\n state.user = user;\r\n },\r\n\r\n [_types.mutations.SET_CLUBS_AND_COURSES]: (state, clubsAndCourses) => {\r\n state.clubsAndCourses = clubsAndCourses;\r\n },\r\n\r\n [_types.mutations.SET_RELATED_CLUBS]: (state, relatedClubs) => {\r\n state.relatedClubs = relatedClubs;\r\n },\r\n\r\n [_types.mutations.SET_LOGGING_OUT]: (state, value) => {\r\n state.isLoggingOut = value;\r\n },\r\n\r\n [_types.mutations.SET_CURRENT_ROUTE]: (state, routeName) => {\r\n state.currentRoute = routeName;\r\n },\r\n\r\n [_types.mutations.CLEAN_UP]: (state) => {\r\n state.user = {};\r\n state.authToken = undefined;\r\n state.isLoggedIn = false;\r\n state.relatedClubs = [];\r\n },\r\n};\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nclass AuthApi extends ServiceBase {\r\n _origin = 'authApi';\r\n\r\n async postLoginCredentials(context, payload) {\r\n try {\r\n let response = await this.fetch(\r\n `/login`,\r\n {\r\n method: 'POST',\r\n mode: 'cors',\r\n cache: 'no-cache',\r\n headers: {\r\n 'Content-Type': 'application/json; charset=utf-8',\r\n },\r\n body: JSON.stringify(payload),\r\n },\r\n context,\r\n 'postLoginCredentials',\r\n 'Loggar in...',\r\n true\r\n );\r\n\r\n return response;\r\n } catch (error) {\r\n return error;\r\n }\r\n }\r\n}\r\nexport default AuthApi;\r\n","import { _types } from './types';\r\nimport AuthApi from '../api/authApi';\r\nconst authenticationApi = new AuthApi();\r\nimport router from '../../../routes/router';\r\n\r\nexport default {\r\n [_types.actions.INITIALIZE]: async (context) => {\r\n const sessionToken = await context.getters[_types.getters.GET_USER_TOKEN];\r\n\r\n if (!context.state.authToken) {\r\n context.dispatch(_types.actions.SET_CURRENT_ROUTE);\r\n const userToken = context.getters[_types.getters.GET_PROFILE];\r\n const relatedClubs = context.getters[_types.getters.GET_RELATED_CLUBS];\r\n\r\n await context.commit(_types.mutations.SET_AUTH_TOKEN, sessionToken);\r\n await context.commit(_types.mutations.SET_USER, userToken);\r\n await context.commit(_types.mutations.SET_RELATED_CLUBS, relatedClubs);\r\n }\r\n },\r\n\r\n [_types.actions.SET_LOGIN_CREDENTIALS]: async (context, payload) => {\r\n const response = await authenticationApi.postLoginCredentials(context, {\r\n username: payload.username,\r\n password: payload.password,\r\n });\r\n if (!response.accessToken) {\r\n context.commit(_types.mutations.SET_HAS_ERROR, true);\r\n return;\r\n }\r\n await context.dispatch(_types.actions.SET_AUTH_TOKEN_SESSION_STORAGE, response);\r\n\r\n context.commit(_types.mutations.SET_IS_LOGGED_IN, true);\r\n context.commit(_types.mutations.SET_HAS_ERROR, false);\r\n let profilePayload = {\r\n username: response.profile.username,\r\n partner: response.profile.partner,\r\n partnerId: response.profile.partnerId,\r\n };\r\n\r\n let relatedClubs = response.profile.clubsAndCourses.reduce((pv, currentClub) => {\r\n const clubId = currentClub.club.id;\r\n const clubName = currentClub.club.name;\r\n\r\n currentClub.courses.forEach((course) => {\r\n const shareBookingStatistics = course.shareBookingStatisics;\r\n const courseId = course.id;\r\n const courseName = course.name;\r\n\r\n pv.push({\r\n clubId,\r\n clubName,\r\n courseId,\r\n courseName,\r\n shareBookingStatistics,\r\n });\r\n });\r\n\r\n return pv;\r\n }, []);\r\n\r\n context.commit(_types.mutations.SET_AUTH_TOKEN, response.accessToken.token);\r\n context.commit(_types.mutations.SET_USER, profilePayload);\r\n context.commit(_types.mutations.SET_RELATED_CLUBS, relatedClubs);\r\n\r\n router.replace({ name: 'Overview' });\r\n },\r\n\r\n [_types.actions.SET_AUTH_TOKEN_SESSION_STORAGE]: (context, result) => {\r\n let profilePayload = {\r\n username: result.profile.username,\r\n partner: result.profile.partner,\r\n partnerId: result.profile.partnerId,\r\n };\r\n\r\n let relatedClubs = result.profile.clubsAndCourses.reduce((pv, currentClub) => {\r\n const clubId = currentClub.club.id;\r\n const clubName = currentClub.club.name;\r\n\r\n currentClub.courses.forEach((course) => {\r\n const courseId = course.id;\r\n const courseName = course.name;\r\n\r\n pv.push({\r\n clubId,\r\n clubName,\r\n courseId,\r\n courseName,\r\n });\r\n });\r\n return pv;\r\n }, []);\r\n\r\n relatedClubs.sort((a, b) => a.clubName.localeCompare(b.clubName));\r\n\r\n sessionStorage.setItem('userToken', JSON.stringify(result.accessToken.token));\r\n sessionStorage.setItem('profile', JSON.stringify(profilePayload));\r\n sessionStorage.setItem('relatedClubs', JSON.stringify(relatedClubs));\r\n sessionStorage.setItem('expires', JSON.stringify(result.accessToken.expires));\r\n },\r\n\r\n [_types.actions.SET_CURRENT_ROUTE]: (context, routeName) => {\r\n if (!routeName) {\r\n routeName = '/#/booking';\r\n }\r\n context.commit(_types.mutations.SET_CURRENT_ROUTE, routeName);\r\n },\r\n\r\n [_types.actions.SET_LOGGING_OUT]: (context, value) => {\r\n context.commit(_types.mutations.SET_LOGGING_OUT, value);\r\n },\r\n\r\n [_types.actions.LOG_OUT]: async (context) => {\r\n if (!context.state.isLoggingOut) {\r\n return;\r\n }\r\n await context.commit(_types.mutations.CLEAN_UP);\r\n sessionStorage.removeItem('userToken');\r\n sessionStorage.removeItem('profile');\r\n sessionStorage.removeItem('relatedClubs');\r\n sessionStorage.removeItem('expires');\r\n sessionStorage.removeItem('LILUM');\r\n\r\n if (router.currentRoute.name == 'login') {\r\n return;\r\n }\r\n\r\n await router.push({ name: 'login' });\r\n window.location.reload();\r\n },\r\n\r\n [_types.actions.CLEAN_UP]: (context) => {\r\n context.commit(_types.mutations.CLEAN_UP);\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.getters.GET_USER_TOKEN]: (state) => {\r\n let sessionToken = sessionStorage.getItem('userToken');\r\n if (sessionToken) {\r\n return JSON.parse(sessionToken);\r\n }\r\n if (state.authToken) {\r\n return state.authToken.access_token;\r\n }\r\n return undefined;\r\n },\r\n\r\n [_types.getters.GET_PROFILE]: (state) => {\r\n let profile = sessionStorage.getItem('profile');\r\n var parsedProfile = JSON.parse(profile);\r\n if (parsedProfile) {\r\n return parsedProfile;\r\n }\r\n if (state.user) {\r\n return state.user;\r\n }\r\n return undefined;\r\n },\r\n\r\n [_types.getters.GET_TOKEN_EXPIRES]: () => {\r\n let tokenExpire = sessionStorage.getItem('expires');\r\n if (tokenExpire) {\r\n return tokenExpire;\r\n }\r\n return undefined;\r\n },\r\n\r\n [_types.getters.GET_RELATED_CLUBS]: (state) => {\r\n let getRelatedClubs = sessionStorage.getItem('relatedClubs');\r\n var relatedClubs = JSON.parse(getRelatedClubs);\r\n if (relatedClubs) {\r\n return relatedClubs;\r\n }\r\n if (state.relatedClubs) {\r\n return state.relatedClubs;\r\n }\r\n return undefined;\r\n },\r\n\r\n [_types.getters.IS_USER_LOGGED_IN]: (state) => {\r\n if (state.user && state.authToken) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n },\r\n\r\n [_types.getters.GET_LOADER]: (state) => {\r\n return state.loader;\r\n },\r\n};\r\n","import state from './state';\r\nimport mutations from './mutations';\r\nimport actions from './actions';\r\nimport getters from './getters';\r\nimport authenticationTypes from './types';\r\n\r\nconst authenticationStore = {\r\n namespaced: true,\r\n state: state,\r\n mutations: mutations,\r\n actions: actions,\r\n getters: getters,\r\n};\r\n\r\nexport { authenticationTypes, authenticationStore };\r\n","import { _types } from './types';\r\nimport moment from 'moment';\r\n\r\nfunction hasScheduleDateRelation(schedule) {\r\n return schedule.relationType === 'TimeAndDate' || schedule.relationType === 'Date';\r\n}\r\n\r\nexport default {\r\n [_types.actions.SET_DATE]: (context, scheduleIdDate) => {\r\n let schedule = context.state.schedules[scheduleIdDate.scheduleId];\r\n let hasDateRelation = hasScheduleDateRelation(schedule);\r\n if (schedule.date === scheduleIdDate.date || scheduleIdDate.date === '') {\r\n return;\r\n }\r\n if (schedule.parentScheduleId && !scheduleIdDate.fromChild && hasDateRelation) {\r\n let parentOffset = context.state.schedules[schedule.parentScheduleId].dayOffset;\r\n let offsetDate = moment(scheduleIdDate.date)\r\n .add((schedule.dayOffset - parentOffset) * -1, 'days')\r\n .format('YYYY-MM-DD');\r\n let parentScheduleIdDate = {\r\n scheduleId: schedule.parentScheduleId,\r\n date: offsetDate,\r\n };\r\n context.dispatch(_types.actions.SET_DATE, parentScheduleIdDate);\r\n return;\r\n }\r\n\r\n if (context.state.schedulesByParent) {\r\n let childSchedules = context.state.schedulesByParent[scheduleIdDate.scheduleId];\r\n if (childSchedules) {\r\n childSchedules.forEach((childScheduleId) => {\r\n let childSchedule = context.state.schedules[childScheduleId];\r\n\r\n let childOffsetDate = moment(scheduleIdDate.date)\r\n .add(childSchedule.dayOffset - schedule.dayOffset, 'days')\r\n .format('YYYY-MM-DD');\r\n let childScheduleIdDate = {\r\n scheduleId: childScheduleId,\r\n date: childOffsetDate,\r\n fromChild: true,\r\n };\r\n if (!hasScheduleDateRelation(childSchedule)) {\r\n return;\r\n }\r\n context.dispatch(_types.actions.SET_DATE, childScheduleIdDate);\r\n });\r\n }\r\n }\r\n context.commit(_types.mutations.SET_DATE, scheduleIdDate);\r\n context.dispatch(_types.actions.REFETCH_SCHEDULE, scheduleIdDate.scheduleId);\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport { scheduleTypes } from '@types';\r\nexport default {\r\n [_types.actions.INITIALIZE_SCHEDULES]: (context) => {\r\n let profile = sessionStorage.getItem('profile');\r\n let schedules = Object.values(context.state.schedules);\r\n\r\n schedules.forEach((schedule) => {\r\n context.dispatch(\r\n scheduleTypes.actions.SET_SELECTED_DATE_FOR_COURSE,\r\n {\r\n scheduleId: schedule.scheduleId,\r\n courseId: schedule.courseId,\r\n date: schedule.date,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n context.dispatch(\r\n scheduleTypes.actions.FETCH_SCHEDULE,\r\n {\r\n scheduleId: schedule.scheduleId,\r\n courseId: schedule.courseId,\r\n date: schedule.date,\r\n username: profile.username,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n });\r\n },\r\n [_types.actions.REFETCH_SCHEDULE]: (context, scheduleId) => {\r\n let profile = sessionStorage.getItem('profile');\r\n let schedule = context.state.schedules[scheduleId];\r\n context.dispatch(\r\n scheduleTypes.actions.SET_SELECTED_DATE_FOR_COURSE,\r\n {\r\n scheduleId: schedule.scheduleId,\r\n courseId: schedule.courseId,\r\n date: schedule.date,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n context.dispatch(\r\n scheduleTypes.actions.FETCH_SCHEDULE,\r\n {\r\n scheduleId: schedule.scheduleId,\r\n courseId: schedule.courseId,\r\n date: schedule.date,\r\n username: profile.username,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n },\r\n};\r\n","export default {\r\n defaultCreateSchedule() {\r\n return {\r\n schedules: [\r\n {\r\n scheduleId: 'schedule1',\r\n parentScheduleId: null,\r\n dayOffset: 0,\r\n order: 1,\r\n relationType: 'None',\r\n clubName: '',\r\n clubId: '',\r\n courseName: '',\r\n courseId: '',\r\n },\r\n {\r\n scheduleId: 'schedule2',\r\n parentScheduleId: null,\r\n dayOffset: 0,\r\n order: 2,\r\n relationType: 'None',\r\n clubName: '',\r\n clubId: '',\r\n courseName: '',\r\n courseId: '',\r\n },\r\n ],\r\n\r\n articleSettings: {\r\n from: '07.00',\r\n to: '17.59',\r\n showDetailedSchedule: false,\r\n },\r\n };\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport actionsDate from './actions.date';\r\nimport actionsSchedule from './actions.schedule';\r\nimport defaultScheduleHelper from '../helpers/default-schedule-helper';\r\nimport moment from 'moment';\r\n\r\nexport default {\r\n ...actionsDate,\r\n ...actionsSchedule,\r\n [_types.actions.INITIALIZE]: (context) => {\r\n context.dispatch(_types.actions.FETCH_RELATED_CLUBS);\r\n context.dispatch(_types.actions.FETCH_SCHEDULES);\r\n },\r\n\r\n [_types.actions.FETCH_SCHEDULES]: async (context) => {\r\n const defaultSchedules = defaultScheduleHelper.defaultCreateSchedule();\r\n\r\n if (context.state.relatedClubs.length == 0) {\r\n return;\r\n }\r\n\r\n const relatedClubs = context.state.relatedClubs.sort((a, b) => a.clubName.localeCompare(b.clubName));\r\n\r\n const relatedClub = relatedClubs[0];\r\n\r\n const existingSchedules = context.state.schedules;\r\n\r\n const createdDefaultSchedules = {\r\n ...defaultSchedules,\r\n schedules: [\r\n {\r\n ...defaultSchedules.schedules[0],\r\n clubName: relatedClub.clubName,\r\n clubId: relatedClub.clubId,\r\n courseName: relatedClub.courseName,\r\n courseId: relatedClub.courseId,\r\n date: existingSchedules?.schedule1?.date || moment().add(relatedClub.dayOffset, 'days').format('YYYY-MM-DD'),\r\n },\r\n {\r\n ...defaultSchedules.schedules[1],\r\n clubName: relatedClub.clubName,\r\n clubId: relatedClub.clubId,\r\n courseName: relatedClub.courseName,\r\n courseId: relatedClub.courseId,\r\n date: existingSchedules?.schedule2?.date || moment().add(relatedClub.dayOffset, 'days').format('YYYY-MM-DD'),\r\n },\r\n ],\r\n };\r\n\r\n let settingsFromLS = await JSON.parse(localStorage.getItem('scheduleSettings'));\r\n\r\n if (settingsFromLS) {\r\n context.commit(_types.mutations.SET_DEFAULT_SCHEDULE, { schedules: settingsFromLS });\r\n\r\n createdDefaultSchedules.schedules.forEach((schedule) => {\r\n let settingsObject = settingsFromLS.find((item) => item.scheduleId == schedule.scheduleId);\r\n\r\n if (settingsObject) {\r\n settingsObject.date = moment().add(schedule.dayOffset, 'days').format('YYYY-MM-DD');\r\n context.commit(_types.mutations.SET_SCHEDULE_FIELD, settingsObject);\r\n }\r\n });\r\n }\r\n\r\n if (!settingsFromLS) {\r\n context.commit(_types.mutations.SET_DEFAULT_SCHEDULE, createdDefaultSchedules);\r\n createdDefaultSchedules.schedules.forEach((schedule) => {\r\n context.commit(_types.mutations.SET_SCHEDULE_FIELD, schedule);\r\n });\r\n }\r\n\r\n context.dispatch(_types.actions.INITIALIZE_SCHEDULES);\r\n },\r\n\r\n [_types.actions.FETCH_RELATED_CLUBS]: async (context) => {\r\n let relatedClubs = sessionStorage.getItem('relatedClubs');\r\n context.commit(_types.mutations.SET_RELATED_CLUBS, JSON.parse(relatedClubs));\r\n },\r\n\r\n [_types.actions.SET_SELECTED_TEETIME]: (context, scheduleIdTeeTimeId) => {\r\n context.commit(_types.mutations.SET_SELECTED_TEETIME, scheduleIdTeeTimeId);\r\n },\r\n\r\n [_types.actions.SET_BOOKING_TO_REMOVE]: (context, bookingId) => {\r\n context.commit(_types.mutations.SET_BOOKING_TO_REMOVE, bookingId);\r\n },\r\n\r\n [_types.actions.SET_SLOT_BOOKING_TO_REMOVE]: (context, bookingId) => {\r\n context.commit(_types.mutations.SET_SLOT_BOOKING_TO_REMOVE, bookingId);\r\n },\r\n\r\n [_types.actions.SET_EXPAND_SCHEDULE_ACTIVE]: (context, value) => {\r\n context.commit(_types.mutations.SET_EXPAND_SCHEDULE_ACTIVE, value);\r\n },\r\n\r\n [_types.actions.CLEAR_BOOKING_TO_REMOVE]: (context) => {\r\n context.commit(_types.mutations.SET_BOOKING_TO_REMOVE, undefined);\r\n context.commit(_types.mutations.SET_SLOT_BOOKING_TO_REMOVE, undefined);\r\n },\r\n\r\n [_types.actions.SET_CLUB_ID]: (context, scheduleIdClubId) => {\r\n context.commit(_types.mutations.SET_SELECTED_TEETIME, { teeTimeId: '', scheduleId: '' });\r\n context.commit(_types.actions.SET_CLUB_ID, scheduleIdClubId);\r\n },\r\n\r\n [_types.actions.SET_COURSE_ID]: (context, scheduleIdCourseId) => {\r\n context.commit(_types.mutations.SET_SELECTED_TEETIME, { teeTimeId: '', scheduleId: '' });\r\n context.commit(_types.mutations.SET_COURSE_ID, scheduleIdCourseId);\r\n context.dispatch(_types.actions.SET_SETTINGS_LOCAL_STORAGE);\r\n context.dispatch(_types.actions.REFETCH_SCHEDULE, scheduleIdCourseId.scheduleId);\r\n },\r\n [_types.actions.SET_SCROLL_POSITION]: (context, scheduleIdPosition) => {\r\n context.commit(_types.mutations.SET_SCROLL_POSITION, scheduleIdPosition);\r\n },\r\n\r\n [_types.actions.SET_SETTINGS_LOCAL_STORAGE]: async (context) => {\r\n const scheduleSettings = Object.values(context.state.schedules).map(({ date, scheduleId, courseId, courseName, clubId, clubName }) => ({\r\n date,\r\n scheduleId,\r\n courseId,\r\n courseName,\r\n clubId,\r\n clubName,\r\n }));\r\n localStorage.setItem('scheduleSettings', JSON.stringify(scheduleSettings));\r\n },\r\n};\r\n","import { _types } from './types';\r\nexport default {\r\n [_types.getters.GET_RELATED_CLUBS]: (state) => {\r\n if (!state.relatedClubs) {\r\n return [];\r\n }\r\n let result = state.relatedClubs.reduce((pv, cv) => {\r\n pv[cv.clubId] = {\r\n id: cv.clubId,\r\n name: cv.clubName,\r\n };\r\n return pv;\r\n }, {});\r\n return Object.values(result);\r\n },\r\n [_types.getters.GET_COURSES_PER_CLUBS]: (state) => {\r\n if (!state.relatedClubs) {\r\n return {};\r\n }\r\n let result = state.relatedClubs.reduce((pv, cv) => {\r\n if (!pv[cv.clubId]) {\r\n pv[cv.clubId] = [];\r\n }\r\n pv[cv.clubId].push({\r\n id: cv.courseId,\r\n name: cv.courseName,\r\n });\r\n return pv;\r\n }, {});\r\n return result;\r\n },\r\n [_types.getters.GET_SCHEDULE_IDS]: (state) => {\r\n if (!state.schedules) {\r\n return [];\r\n }\r\n return Object.values(state.schedules).map((x) => x.scheduleId);\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport Vue from 'vue';\r\nexport default {\r\n [_types.mutations.SET_DEFAULT_SCHEDULE]: (state, defaultSchedules) => {\r\n var schedules = defaultSchedules.schedules.reduce((pv, cv) => {\r\n pv[cv.scheduleId] = cv;\r\n return pv;\r\n }, {});\r\n state.schedules = schedules;\r\n },\r\n\r\n [_types.mutations.SET_SCHEDULE_FIELD]: (state, payload) => {\r\n state.schedules[payload.scheduleId] = payload;\r\n },\r\n\r\n [_types.mutations.SET_RELATED_CLUBS]: (state, relatedClubs) => {\r\n state.relatedClubs = relatedClubs;\r\n },\r\n\r\n [_types.mutations.SET_EXPAND_SCHEDULE_ACTIVE]: (state, value) => {\r\n state.expandIsActive = value;\r\n },\r\n\r\n [_types.mutations.SET_SELECTED_TEETIME]: (state, scheduleIdTeeTimeId) => {\r\n state.selectedScheduleId = scheduleIdTeeTimeId.scheduleId;\r\n state.selectedTeeTimeId = scheduleIdTeeTimeId.teeTimeId;\r\n },\r\n\r\n [_types.mutations.SET_CLUB_ID]: (state, scheduleIdClubId) => {\r\n let club = state.relatedClubs.find((x) => x.clubId === scheduleIdClubId.clubId);\r\n state.schedules[scheduleIdClubId.scheduleId].clubName = club.clubName;\r\n state.schedules[scheduleIdClubId.scheduleId].clubId = scheduleIdClubId.clubId;\r\n },\r\n [_types.mutations.SET_COURSE_ID]: (state, scheduleIdCourseId) => {\r\n let course = state.relatedClubs.find((x) => x.courseId === scheduleIdCourseId.courseId);\r\n state.schedules[scheduleIdCourseId.scheduleId].courseName = course.courseName;\r\n state.schedules[scheduleIdCourseId.scheduleId].courseId = scheduleIdCourseId.courseId;\r\n },\r\n\r\n [_types.mutations.SET_DATE]: (state, scheduleIdDate) => {\r\n state.schedules[scheduleIdDate.scheduleId].date = scheduleIdDate.date;\r\n },\r\n\r\n [_types.mutations.SET_BOOKING_TO_REMOVE]: (state, bookingId) => {\r\n state.bookingToRemove = bookingId;\r\n },\r\n [_types.mutations.SET_SLOT_BOOKING_TO_REMOVE]: (state, bookingId) => {\r\n state.slotBookingToRemove = bookingId;\r\n },\r\n [_types.mutations.SET_SCROLL_POSITION]: (state, scheduleIdPosition) => {\r\n if (state.schedulePositions[scheduleIdPosition.scheduleId] === scheduleIdPosition.position) {\r\n return;\r\n }\r\n state.schedulePositions[scheduleIdPosition.scheduleId] = scheduleIdPosition.position;\r\n },\r\n};\r\n","export default {\r\n hasSubmitted: false,\r\n schedulesByParent: undefined,\r\n schedulePositions: {},\r\n schedules: undefined,\r\n relatedClubs: [],\r\n selectedScheduleId: '',\r\n selectedTeeTimeId: '',\r\n bookingToRemove: undefined,\r\n slotBookingToRemove: undefined,\r\n expandIsActive: false,\r\n filters: { schedule1: 'golfcart', schedule2: 'golfcart' },\r\n};\r\n","import actions from './actions';\r\nimport overviewTypes from './types';\r\nimport getters from './getters';\r\nimport mutations from './mutations';\r\nimport state from './state';\r\n\r\nexport { overviewTypes };\r\n\r\nexport default {\r\n namespaced: true,\r\n namespace: overviewTypes.namespace,\r\n actions: actions,\r\n getters: getters,\r\n mutations: mutations,\r\n state: state,\r\n};\r\n","export default {\r\n teeTimeBooking: undefined,\r\n teeTimeBookingHistory: [],\r\n selectedBookerName: undefined,\r\n selectedBookerId: undefined,\r\n showHistory: false,\r\n slotBookings: undefined,\r\n teeTimeSlotBookings: undefined,\r\n bookings: undefined,\r\n slotBookingsPerBooking: undefined,\r\n newBookingSlotBookings: {},\r\n\r\n slotBookingToEdit: undefined,\r\n slotBookingToEditValidation: [],\r\n\r\n removedSlotBookings: {},\r\n slotBookingToRemove: undefined,\r\n\r\n validation: undefined,\r\n\r\n fees: undefined,\r\n feeSelectionForMultiplePlayers: {},\r\n articles: undefined,\r\n\r\n selectedBooking: '',\r\n\r\n bookingToRemove: undefined,\r\n bookingToRemoveValidation: undefined,\r\n bookingToRemoveRemoveArticles: true,\r\n\r\n selectedTeeTimeBooker: false,\r\n teeTimeBookerCompanies: {},\r\n bookerInformationToUpdate: undefined,\r\n\r\n typeOfPlayer: 'regularPlayer',\r\n frequentPlayers: undefined,\r\n defaultFrequentPlayers: undefined,\r\n selectedScheduleDate: undefined,\r\n};\r\n","export default {\r\n hashNumber(number) {\r\n // Convert number to string to ensure consistent hashing\r\n const string = String(number);\r\n\r\n if (!string) return 0;\r\n let hash = 0;\r\n for (let i = 0; i < string.length; i++) {\r\n const character = string.charCodeAt(i);\r\n hash = (hash << 5) - hash + character;\r\n hash = hash & hash; // Convert to 32bit integer\r\n }\r\n return hash;\r\n },\r\n};\r\n","import { _types } from './types';\r\nexport default {\r\n [_types.mutations.BOOKING_ADD_SLOT_BOOKING]: (state, slotBooking) => {\r\n if (state.selectedBooking !== '') {\r\n state.teeTimeSlotBookings[slotBooking.slotBookingId] = slotBooking;\r\n state.slotBookingsPerBooking[state.selectedBooking].unshift(slotBooking.slotBookingId);\r\n } else {\r\n state.newBookingSlotBookings[slotBooking.slotBookingId] = slotBooking;\r\n }\r\n },\r\n\r\n [_types.mutations.NEW_BOOKING_REMOVE_SLOT_BOOKING]: (state, slotBookingId) => {\r\n delete state.newBookingSlotBookings[slotBookingId];\r\n },\r\n\r\n [_types.mutations.SET_FREQUENT_PLAYERS]: (state, players) => {\r\n state.frequentPlayers = players;\r\n state.defaultFrequentPlayers = players;\r\n },\r\n\r\n [_types.mutations.UPDATE_FREQUENT_PLAYERS]: (state, payload) => {\r\n if (payload.type == 'add') {\r\n const frequentPlayersArray = [...state.frequentPlayers];\r\n frequentPlayersArray.push(payload.player);\r\n state.frequentPlayers = frequentPlayersArray;\r\n }\r\n\r\n if (payload.type == 'remove') {\r\n const indexToRemove = state.frequentPlayers.findIndex((player) => player.id === payload.player.id);\r\n\r\n if (indexToRemove !== -1) {\r\n state.frequentPlayers.splice(indexToRemove, 1);\r\n }\r\n }\r\n },\r\n\r\n [_types.mutations.SET_PLAYER_TYPE]: (state, value) => {\r\n state.typeOfPlayer = value;\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.mutations.SET_SLOT_BOOKING_TO_EDIT]: (state, slotBooking) => {\r\n if (!slotBooking) {\r\n state.slotBookingToEdit = undefined;\r\n state.slotBookingToEditValidation = [];\r\n\r\n delete state.playerAgeSourceHash;\r\n } else {\r\n state.slotBookingToEdit = JSON.parse(JSON.stringify(slotBooking));\r\n }\r\n },\r\n\r\n [_types.mutations.UPDATE_EDITED_SLOT_BOOKING]: (state) => {\r\n let slotBookingId = state.slotBookingToEdit.slotBookingId;\r\n if (state.newBookingSlotBookings[slotBookingId]) {\r\n state.newBookingSlotBookings[slotBookingId] = { ...state.slotBookingToEdit };\r\n } else {\r\n state.teeTimeSlotBookings[slotBookingId] = { ...state.slotBookingToEdit };\r\n }\r\n state.slotBookingToEdit = undefined;\r\n state.slotBookingToEditValidation = [];\r\n delete state.playerAgeSourceHash;\r\n },\r\n\r\n [_types.mutations.CLEAR_EDIT_SLOTBOOKING_VALIDATION]: (state, correlationId) => {\r\n if (!correlationId) {\r\n state.slotBookingToEditValidation = [];\r\n } else {\r\n state.slotBookingToEditValidation = state.slotBookingToEditValidation.filter((x) => x.correlationId !== correlationId);\r\n }\r\n },\r\n\r\n [_types.mutations.SET_EDIT_SLOTBOOKING_VALIDATION]: (state, validations) => {\r\n state.slotBookingToEditValidation = [...state.slotBookingToEditValidation.concat(validations)];\r\n },\r\n\r\n [_types.mutations.SET_SLOT_BOOKING_EDIT_PLAYER_FIELD]: (state, field) => {\r\n if (state.slotBookingToEdit.status === 'unmodified') {\r\n state.slotBookingToEdit.status = 'updated';\r\n }\r\n state.slotBookingToEdit.player[field.field] = field.value;\r\n },\r\n [_types.mutations.SET_SLOT_BOOKING_EDIT_FIELD]: (state, field) => {\r\n state.slotBookingToEdit[field.field] = field.value;\r\n\r\n if (state.slotBookingToEdit.status === 'unmodified') {\r\n state.slotBookingToEdit.status = 'updated';\r\n }\r\n },\r\n\r\n [_types.mutations.SET_SLOTBOOKING_EDIT_TO_MODIFIED]: (state) => {\r\n if (state.slotBookingToEdit.status === 'unmodified') {\r\n state.slotBookingToEdit.status = 'updated';\r\n }\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.mutations.SET_FEES]: (state, fees) => {\r\n state.fees = fees;\r\n },\r\n\r\n [_types.mutations.SET_FEE]: (state, fee) => {\r\n if (!state.slotBookingToEdit.player.gameright) {\r\n state.slotBookingToEdit.player.gameright = {};\r\n }\r\n state.slotBookingToEdit.player.gameright.category = fee.category;\r\n state.slotBookingToEdit.player.gameright.id = fee.id;\r\n state.slotBookingToEdit.player.gameright.amount = fee.price;\r\n state.slotBookingToEdit.player.gameright.name = fee.name;\r\n state.slotBookingToEdit.player.gameright.type = fee.feeType;\r\n delete state.slotBookingToEdit.player.gameright.ordinaryPrice;\r\n\r\n if (state.slotBookingToEdit.status === 'unmodified') {\r\n state.slotBookingToEdit.status = 'updated';\r\n }\r\n },\r\n};\r\n","import { _types } from './types';\r\nexport default {\r\n [_types.mutations.SET_ARTICLES]: (state, articles) => {\r\n state.articles = articles;\r\n },\r\n\r\n [_types.mutations.SET_ARTICLE]: (state, articleId) => {\r\n let isInCurrentSelection = state.slotBookingToEdit.rentalArticleBookings.find((x) => x.articleId === articleId);\r\n if (isInCurrentSelection) {\r\n let index = state.slotBookingToEdit.rentalArticleBookings.indexOf(isInCurrentSelection);\r\n state.slotBookingToEdit.rentalArticleBookings.splice(index, 1);\r\n } else {\r\n let article = state.articles.find((x) => x.id === articleId);\r\n state.slotBookingToEdit.rentalArticleBookings.push({\r\n articleId: articleId,\r\n articleName: article.name,\r\n amount: article.price,\r\n startTime: article.startTime,\r\n endTime: article.endTime,\r\n note: '',\r\n });\r\n }\r\n if (state.slotBookingToEdit.status === 'unmodified') {\r\n state.slotBookingToEdit.status = 'updated';\r\n }\r\n },\r\n\r\n [_types.mutations.SET_ARTICLE_FIELD]: (state, articleField) => {\r\n state.slotBookingToEdit.rentalArticleBookings.forEach((x, index) => {\r\n if (x.articleId === articleField.articleId) {\r\n // Vue.set(state.slotBookingToEdit.rentalArticleBookings[index], articleField.field, articleField.value);\r\n state.slotBookingToEdit.rentalArticleBookings[index][articleField.field] = articleField.value;\r\n }\r\n });\r\n if (state.slotBookingToEdit.status === 'unmodified') {\r\n state.slotBookingToEdit.status = 'updated';\r\n }\r\n },\r\n\r\n [_types.mutations.SET_NEW_ITEM_BOOKING_MESSAGES_AFTER_REMOVE]: (state, messages) => {\r\n if (!messages) delete state.newItemBookingMessages;\r\n else state.newItemBookingMessages = messages;\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.mutations.SET_BOOKING_TO_REMOVE]: (state, bookingId) => {\r\n state.bookingToRemove = bookingId;\r\n },\r\n [_types.mutations.SET_BOOKING_TO_REMOVE_VALIDATION]: (state, validations) => {\r\n state.bookingToRemoveValidation = validations;\r\n },\r\n\r\n [_types.mutations.CLEAR_REMOVE_BOOKING]: (state) => {\r\n delete state.bookingToRemove;\r\n delete state.bookingToRemoveValidation;\r\n\r\n state.bookingToRemoveRemoveArticles = false;\r\n },\r\n\r\n [_types.mutations.REMOVE_BOOKING]: (state) => {\r\n state.slotBookingsPerBooking[state.bookingToRemove].forEach((x) => {\r\n state.teeTimeSlotBookings[x].status = 'deleted';\r\n\r\n state.removedSlotBookings[x] = state.teeTimeSlotBookings[x];\r\n delete state.teeTimeSlotBookings[x];\r\n });\r\n let bookingIndex = state.bookings.map((x) => x.bookingId).indexOf(state.bookingToRemove);\r\n state.bookings.splice(bookingIndex, 1);\r\n delete state.slotBookingsPerBooking[state.bookingToRemove];\r\n state.selectedBooking = '';\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.mutations.SET_PLAYER_TO_REMOVE_VALIDATION]: (state, validations) => {\r\n state.playerToRemoveValidation = validations;\r\n },\r\n\r\n [_types.mutations.BOOKING_SET_SLOT_BOOKING_TO_REMOVE]: (state, slotBookingId) => {\r\n if (!slotBookingId) {\r\n state.slotBookingToRemove = undefined;\r\n } else {\r\n let bookingToRemove = { ...state.teeTimeSlotBookings[slotBookingId] };\r\n\r\n bookingToRemove.status = 'deleted';\r\n\r\n state.slotBookingToRemove = bookingToRemove;\r\n }\r\n },\r\n\r\n [_types.mutations.BOOKING_REMOVE_SLOT_BOOKING]: (state) => {\r\n let slotBooking = state.slotBookingToRemove;\r\n let bookingId = slotBooking.bookingId;\r\n let slotBookingIndex = state.slotBookingsPerBooking[bookingId].indexOf(slotBooking.slotBookingId);\r\n state.slotBookingsPerBooking[bookingId].splice(slotBookingIndex, 1);\r\n if (state.slotBookingsPerBooking[bookingId].length === 0) {\r\n let bookingIndex = state.bookings.map((x) => x.bookingId).indexOf(bookingId);\r\n state.bookings.splice(bookingIndex, 1);\r\n delete state.slotBookingsPerBooking[slotBooking.bookingId];\r\n }\r\n if (slotBooking.slotBookingId.indexOf('new_slot') === -1) {\r\n state.removedSlotBookings[slotBooking.slotBookingId] = slotBooking;\r\n }\r\n delete state.teeTimeSlotBookings[slotBooking.slotBookingId];\r\n\r\n if (!state.slotBookingsPerBooking[state.selectedBooking]) {\r\n state.selectedBooking = '';\r\n }\r\n delete state.slotBookingToRemove;\r\n\r\n state.playerToRemoveValidation = {};\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport Vue from 'vue';\r\nimport { S, hashHelper } from '@sgf/go-utilities';\r\nimport hashNumberHelper from '../helpers/hash-helper';\r\nimport mutationsCreate from './mutations.create';\r\nimport mutationsEdit from './mutations.edit';\r\nimport mutationsFees from './mutations.fees';\r\nimport mutationsArticles from './mutations.articles';\r\nimport mutationsBookingRemove from './mutations.booking.remove';\r\nimport mutationsSlotbookingRemove from './mutations.slotbooking.remove';\r\n\r\nexport default {\r\n ...mutationsCreate,\r\n ...mutationsEdit,\r\n ...mutationsFees,\r\n ...mutationsArticles,\r\n ...mutationsBookingRemove,\r\n ...mutationsSlotbookingRemove,\r\n\r\n [_types.mutations.SET_HASH_FREQUENT_PLAYERS]: (state) => {\r\n let stateToHash = hashHelper.hashObject(state.frequentPlayers);\r\n state.frequentPlayersSourceHash = stateToHash;\r\n },\r\n\r\n [_types.mutations.SET_HASH_PLAYER_AGE]: (state) => {\r\n let stateToHash = hashNumberHelper.hashNumber(state.slotBookingToEdit.player.age);\r\n state.playerAgeSourceHash = stateToHash;\r\n },\r\n\r\n [_types.mutations.SET_VALIDATION]: (state, validation) => {\r\n state.validation = validation;\r\n },\r\n\r\n [_types.mutations.SET_TEE_TIME_BOOKING]: (state, teeTimeBooking) => {\r\n var slotBookings = {};\r\n var bookings = [];\r\n var slotBookingsPerBooking = {};\r\n teeTimeBooking.slotBookings.forEach((sb) => {\r\n slotBookings[sb.slotBookingId] = sb;\r\n slotBookings[sb.slotBookingId].originalGameRight = sb.player.gameright.type;\r\n if (!slotBookingsPerBooking[sb.bookingId]) {\r\n bookings.push({ bookingId: sb.bookingId, bookingNumber: sb.bookingNumber });\r\n slotBookingsPerBooking[sb.bookingId] = [];\r\n }\r\n slotBookingsPerBooking[sb.bookingId].push(sb.slotBookingId);\r\n });\r\n state.teeTimeSlotBookings = slotBookings;\r\n state.bookings = bookings;\r\n state.slotBookingsPerBooking = slotBookingsPerBooking;\r\n delete teeTimeBooking.slotBookings;\r\n state.teeTimeBooking = teeTimeBooking;\r\n state.teeTimeBookingHistory = undefined;\r\n },\r\n\r\n [_types.mutations.SET_SELECTED_BOOKING]: (state, selectedBooking) => {\r\n state.selectedBooking = selectedBooking;\r\n },\r\n\r\n [_types.mutations.CLEAN_UP]: (state) => {\r\n state.teeTimeBooking = undefined;\r\n state.teeTimeSlotBookings = undefined;\r\n state.bookings = undefined;\r\n state.slotBookingsPerBooking = undefined;\r\n state.newBookingSlotBookings = {};\r\n state.removedSlotBookings = {};\r\n state.validation = undefined;\r\n state.fees = undefined;\r\n state.articles = undefined;\r\n state.selectedBooking = '';\r\n state.teeTimeBookingHistory = undefined;\r\n state.typeOfPlayer = 'regularPlayer';\r\n state.playerToRemoveValidation = {};\r\n state.frequentPlayers = undefined;\r\n state.defaultFrequentPlayers = undefined;\r\n },\r\n};\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nfunction lilumStart(key) {\r\n if (window.lilum_startTransaction !== undefined) {\r\n try {\r\n window.lilum_startTransaction(key);\r\n } catch (e) {\r\n return e;\r\n }\r\n }\r\n}\r\nfunction lilumEnd(key) {\r\n if (window.lilum_stopTransaction !== undefined) {\r\n try {\r\n window.lilum_stopTransaction(key);\r\n } catch (e) {\r\n return e;\r\n }\r\n }\r\n}\r\n\r\nclass TeeTimeBookingApi extends ServiceBase {\r\n async getTeeTimeBooking(context, teeTimeId) {\r\n return await this.fetch(\r\n `/teeTimeBookings/${teeTimeId}`,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'getTeeTimeBookings'\r\n );\r\n }\r\n\r\n async validate(context, payload) {\r\n let result = await this.fetch(\r\n `/teeTimeBookings/validate`,\r\n {\r\n method: 'POST',\r\n body: JSON.stringify(payload),\r\n },\r\n context,\r\n 'validateTeeTimeBookings',\r\n 'Validerar...',\r\n true\r\n );\r\n return result;\r\n }\r\n\r\n async updateTeeTimeBooking(context, payload) {\r\n let lilumKey = 'POST__teeTimeBookings';\r\n lilumStart(lilumKey);\r\n let result = await this.fetch(\r\n `/teeTimeBookings`,\r\n {\r\n method: 'POST',\r\n body: JSON.stringify(payload),\r\n },\r\n context,\r\n 'updateTeeTimeBooking',\r\n 'Sparar...',\r\n true\r\n );\r\n lilumEnd(lilumKey);\r\n return result;\r\n }\r\n\r\n async validatePersonIdentification(context, payload) {\r\n return await this.fetch(\r\n `/slotbookings/${payload.slotBookingId}/persons/${payload.personId}/validate`,\r\n {\r\n method: 'POST',\r\n },\r\n context,\r\n 'validatePersonIdentification',\r\n 'Validerar...',\r\n true\r\n );\r\n }\r\n\r\n async getTeeTimeBookingHistory(context, teeTimeId) {\r\n return await this.fetch(\r\n `/teeTimeBookings/${teeTimeId}/history`,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'getTeeTimeBookingHistory'\r\n );\r\n }\r\n}\r\nexport default TeeTimeBookingApi;\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nclass FrequentPlayersApi extends ServiceBase {\r\n _origin = 'frequentPlayersApi';\r\n\r\n async getFrequentPlayers(context) {\r\n return await this.fetch(\r\n `/frequentplayers`,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'getFrequentPlayers',\r\n 'Hämtar...'\r\n );\r\n }\r\n\r\n async saveFrequentPlayers(context, payload) {\r\n return await this.fetch(\r\n `/FrequentPlayers`,\r\n {\r\n method: 'PUT',\r\n body: JSON.stringify(payload),\r\n },\r\n context,\r\n 'saveFrequentPlayers',\r\n 'Sparar...'\r\n );\r\n }\r\n}\r\nexport default FrequentPlayersApi;\r\n","export default {\r\n getPayload(state) {\r\n let result = { ...state.teeTimeBooking };\r\n result.slotBookings = [];\r\n\r\n const processSlotBooking = (slotBooking) => {\r\n let processedSlotBooking = { ...slotBooking };\r\n\r\n if (processedSlotBooking.player?.introductionCard === '') {\r\n delete processedSlotBooking.player.introductionCard;\r\n }\r\n\r\n if (processedSlotBooking.paymentInformation?.status === '') {\r\n delete processedSlotBooking.paymentInformation.status;\r\n }\r\n\r\n return processedSlotBooking;\r\n };\r\n\r\n Object.values(state.slotBookingsPerBooking).forEach((slotBookingIds) => {\r\n slotBookingIds.forEach((sbId, index) => {\r\n let slotBooking = { ...state.teeTimeSlotBookings[sbId], order: slotBookingIds.length - index };\r\n result.slotBookings.push(processSlotBooking(slotBooking));\r\n });\r\n });\r\n\r\n if (state.newBookingSlotBookings) {\r\n Object.values(state.newBookingSlotBookings)\r\n .sort((x) => x.slotBookingId)\r\n .forEach((x, index) => {\r\n result.slotBookings.push(processSlotBooking({ ...x, order: index }));\r\n });\r\n }\r\n\r\n if (state.removedSlotBookings) {\r\n result.slotBookings = result.slotBookings.concat(Object.values(state.removedSlotBookings).map(processSlotBooking));\r\n }\r\n\r\n if (state.slotBookingToRemove) {\r\n result.slotBookings = result.slotBookings.filter((x) => x.slotBookingId !== state.slotBookingToRemove.slotBookingId);\r\n result.slotBookings.push(processSlotBooking(state.slotBookingToRemove));\r\n }\r\n\r\n return result;\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport TeeTimeBookingApi from '../api/teeTimeBookingApi';\r\nimport FrequentPlayersApi from '../api/frequentPlayersApi';\r\nimport payloadHelper from '../helpers/payload-helper';\r\nimport { TeeTimeApi } from '@sgf/go-api-services';\r\n\r\nimport router from '../../../routes/router';\r\n\r\nconst teeTimeBookingApi = new TeeTimeBookingApi();\r\nconst frequentPlayersApi = new FrequentPlayersApi();\r\nconst teeTimeApi = new TeeTimeApi();\r\n\r\nexport default {\r\n [_types.actions.FETCH_TEE_TIME_BOOKING]: async (context, payload) => {\r\n let result = await teeTimeBookingApi.getTeeTimeBooking(context, payload.teeTimeId);\r\n context.commit(_types.mutations.SET_TEE_TIME_BOOKING, result);\r\n if (payload.type == 'edit') {\r\n context.dispatch(_types.actions.LOCK_TEE_TIME, { courseId: context.state.teeTimeBooking.courseId, teeTimeId: context.state.teeTimeBooking.teeTimeId });\r\n }\r\n },\r\n\r\n [_types.actions.LOCK_TEE_TIME]: async (context, teeTimeIdCourseId) => {\r\n let profile = sessionStorage.getItem('profile');\r\n await teeTimeApi.createTeeTimeLock(context, {\r\n correlationId: 'teeTimeLock',\r\n courseId: teeTimeIdCourseId.courseId,\r\n teeTimeId: teeTimeIdCourseId.teeTimeId,\r\n username: profile.username,\r\n clubId: profile.partnerId,\r\n });\r\n },\r\n\r\n [_types.actions.UNLOCK_TEE_TIME]: async (context, teeTimeIdCourseId) => {\r\n teeTimeApi.deleteTeeTimeLock(context, {\r\n correlationId: 'teeTimeUnlock',\r\n courseId: teeTimeIdCourseId.courseId,\r\n teeTimeId: teeTimeIdCourseId.teeTimeId,\r\n });\r\n },\r\n\r\n [_types.actions.VALIDATE_TEE_TIME_BOOKING]: async (context) => {\r\n context.commit(_types.mutations.SET_VALIDATION, undefined);\r\n let payload = payloadHelper.getPayload(context.state);\r\n let result = await teeTimeBookingApi.validate(context, payload);\r\n context.commit(_types.mutations.SET_VALIDATION, result);\r\n },\r\n\r\n [_types.actions.SUBMIT_TEE_TIME_BOOKING]: async (context, teeTimeIdcCloseAfterSave) => {\r\n let { teeTimeId, closeAfterSave } = teeTimeIdcCloseAfterSave;\r\n let payload = payloadHelper.getPayload(context.state);\r\n await frequentPlayersApi.saveFrequentPlayers(context, context.state.frequentPlayers);\r\n let messages = await teeTimeBookingApi.updateTeeTimeBooking(context, payload);\r\n\r\n if (messages && messages.length > 0) {\r\n context.commit(_types.mutations.SET_NEW_ITEM_BOOKING_MESSAGES_AFTER_REMOVE, messages);\r\n }\r\n if (closeAfterSave) {\r\n context.dispatch(_types.actions.UNLOCK_TEE_TIME, { courseId: context.state.teeTimeBooking.courseId, teeTimeId: context.state.teeTimeBooking.teeTimeId });\r\n context.commit(_types.mutations.CLEAN_UP);\r\n router.back();\r\n } else {\r\n context.dispatch(_types.actions.INITIALIZE, teeTimeId);\r\n }\r\n },\r\n\r\n [_types.actions.VALIDATE_PERSON_IDENTIFICATION]: async (context) => {\r\n if (!context.state.slotBookingToEdit.slotBookingId || context.state.slotBookingToEdit.slotBookingId.indexOf('new_slot') !== -1) {\r\n return;\r\n }\r\n if (!context.state.slotBookingToEdit.player.personId) {\r\n return;\r\n }\r\n context.commit(_types.mutations.CLEAR_EDIT_SLOTBOOKING_VALIDATION, 'validatePersonIdentification');\r\n let result = await teeTimeBookingApi.validatePersonIdentification(context, {\r\n slotBookingId: context.state.slotBookingToEdit.slotBookingId,\r\n personId: context.state.slotBookingToEdit.player.personId,\r\n });\r\n result.forEach((msg) => {\r\n msg.correlationId = 'validatePersonIdentification';\r\n context.commit(_types.mutations.SET_EDIT_SLOTBOOKING_VALIDATION, msg);\r\n });\r\n },\r\n\r\n [_types.actions.GET_FREQUENT_PLAYERS]: async (context) => {\r\n if (context.state.frequentPlayers) {\r\n return;\r\n }\r\n let players = await frequentPlayersApi.getFrequentPlayers(context);\r\n\r\n players = players.map((player) => ({\r\n ...player,\r\n personId: player.id,\r\n }));\r\n\r\n context.commit(_types.mutations.SET_FREQUENT_PLAYERS, players);\r\n context.commit(_types.mutations.SET_HASH_FREQUENT_PLAYERS);\r\n },\r\n};\r\n","export default {\r\n defaultFrequentPlayers() {\r\n return {\r\n age: undefined,\r\n city: '',\r\n clubName: '',\r\n country: '',\r\n email: '',\r\n firstname: '',\r\n foreignId: '',\r\n golfId: '',\r\n hcp: '',\r\n id: '',\r\n isFemale: undefined,\r\n isUnknown: undefined,\r\n lastname: '',\r\n membershipType: '',\r\n order: undefined,\r\n phoneNumber: '',\r\n slotBookingId: null,\r\n status: '',\r\n };\r\n },\r\n\r\n createPayloadFromPlayer(player) {\r\n let payload = this.defaultFrequentPlayers();\r\n payload.age = player.age;\r\n payload.clubName = player.city ? player.city : '';\r\n payload.clubName = player.clubName ? player.clubName : '';\r\n payload.firstname = player.firstname;\r\n payload.foreignId = player.foreignId;\r\n payload.golfId = player.golfId;\r\n payload.hcp = player.hcp;\r\n payload.id = player.personId;\r\n payload.isFemale = player.gender == 'Man' ? false : true;\r\n payload.isUnknown = player.isUnknown;\r\n payload.lastname = player.lastname;\r\n payload.membershipType = player.membershipType ? player.membershipType : '';\r\n payload.order = player.order;\r\n payload.phoneNumber = player.phone;\r\n payload.slotBookingId = null;\r\n payload.status = player.status;\r\n\r\n return payload;\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport slotbookingPayloadHelper from '../helpers/slotbooking-payload-helper';\r\nimport frequentPlayersHelper from '../helpers/frequentPlayers-helper';\r\n\r\nexport default {\r\n [_types.actions.BOOKING_ADD_IDENTIFIED_PERSON]: (context, person) => {\r\n let slotBooking = slotbookingPayloadHelper.createPayloadFromPerson(person);\r\n context.dispatch(_types.actions.BOOKING_ADD_SLOT, slotBooking);\r\n },\r\n\r\n [_types.actions.BOOKING_ADD_SLOT]: (context, slotBooking) => {\r\n slotBooking.slotBookingId = 'new_slot_' + new Date().getTime();\r\n if (context.state.selectedBooking !== '') {\r\n slotBooking.bookingId = context.state.selectedBooking;\r\n }\r\n context.commit(_types.mutations.BOOKING_ADD_SLOT_BOOKING, slotBooking);\r\n context.dispatch(_types.actions.VALIDATE_TEE_TIME_BOOKING);\r\n },\r\n\r\n [_types.actions.NEW_BOOKING_REMOVE_SLOT_BOOKING]: (context, slotBookingId) => {\r\n context.commit(_types.mutations.NEW_BOOKING_REMOVE_SLOT_BOOKING, slotBookingId);\r\n context.dispatch(_types.actions.VALIDATE_TEE_TIME_BOOKING);\r\n },\r\n\r\n [_types.actions.UPDATE_FREQUENT_PLAYERS]: (context, payload) => {\r\n let player = frequentPlayersHelper.createPayloadFromPlayer(payload.player);\r\n context.commit(_types.mutations.UPDATE_FREQUENT_PLAYERS, { type: payload.type, player: player });\r\n },\r\n\r\n [_types.actions.SET_PLAYER_TYPE]: (context, value) => {\r\n context.commit(_types.mutations.SET_PLAYER_TYPE, value);\r\n },\r\n};\r\n","function shouldValidateAfterEdit(state) {\r\n let slotBookingId = state.slotBookingToEdit.slotBookingId;\r\n let savedSlotBooking = state.teeTimeSlotBookings[slotBookingId];\r\n let newSlotBooking = state.newBookingSlotBookings[slotBookingId];\r\n let originalSlotBooking = savedSlotBooking ? savedSlotBooking : newSlotBooking;\r\n\r\n if (originalSlotBooking.player.isUnknown && !state.slotBookingToEdit.player.isUnknown) {\r\n return true;\r\n }\r\n if (originalSlotBooking.player.hcp !== state.slotBookingToEdit.player.hcp) {\r\n return true;\r\n }\r\n return false;\r\n}\r\n\r\nexport default {\r\n shouldValidateAfterEdit: shouldValidateAfterEdit,\r\n};\r\n","import { _types } from './types';\r\nimport slotBookingValidationHelper from '../helpers/slotbooking-validation-helper';\r\nimport slotbookingPayloadHelper from '../helpers/slotbooking-payload-helper';\r\n\r\nexport default {\r\n [_types.actions.SET_SLOT_BOOKING_TO_EDIT]: async (context, slotBookingId) => {\r\n if (!slotBookingId) {\r\n context.commit(_types.mutations.SET_SLOT_BOOKING_TO_EDIT, undefined);\r\n return;\r\n }\r\n\r\n let slotBooking;\r\n if (context.state.newBookingSlotBookings[slotBookingId]) {\r\n slotBooking = { ...context.state.newBookingSlotBookings[slotBookingId] };\r\n } else {\r\n slotBooking = { ...context.state.teeTimeSlotBookings[slotBookingId] };\r\n }\r\n\r\n await context.commit(_types.mutations.SET_SLOT_BOOKING_TO_EDIT, slotBooking);\r\n context.commit(_types.mutations.SET_HASH_PLAYER_AGE);\r\n\r\n context.dispatch(_types.actions.FETCH_FEES);\r\n context.dispatch(_types.actions.FETCH_ARTICLES);\r\n },\r\n\r\n [_types.actions.UPDATE_EDITED_SLOT_BOOKING]: (context) => {\r\n let shouldValidate = slotBookingValidationHelper.shouldValidateAfterEdit(context.state);\r\n context.commit(_types.mutations.UPDATE_EDITED_SLOT_BOOKING);\r\n context.commit(_types.mutations.CLEAR_EDIT_SLOTBOOKING_VALIDATION);\r\n if (shouldValidate) {\r\n context.dispatch(_types.actions.VALIDATE_TEE_TIME_BOOKING);\r\n }\r\n },\r\n\r\n [_types.actions.SET_SLOT_BOOKING_EDIT_PLAYER_FIELD]: (context, field) => {\r\n context.commit(_types.mutations.SET_SLOT_BOOKING_EDIT_PLAYER_FIELD, field);\r\n if (field.field === 'age') {\r\n // context.dispatch(_types.actions.FETCH_FEES);\r\n // context.dispatch(_types.actions.FETCH_ARTICLES);\r\n }\r\n },\r\n\r\n [_types.actions.SET_SLOT_BOOKING_EDIT_FIELD]: (context, field) => {\r\n context.commit(_types.mutations.SET_SLOT_BOOKING_EDIT_FIELD, field);\r\n },\r\n\r\n [_types.actions.OVERRIDE_SLOT_BOOKING_EDIT]: (context, person) => {\r\n let isUnknown = context.state.slotBookingToEdit.player.isUnknown;\r\n let overridenSlotBooking = slotbookingPayloadHelper.overridePayloadFromPerson(context.state.slotBookingToEdit, person);\r\n overridenSlotBooking.identified = true;\r\n context.commit(_types.mutations.SET_SLOT_BOOKING_TO_EDIT, overridenSlotBooking);\r\n context.commit(_types.mutations.SET_SLOTBOOKING_EDIT_TO_MODIFIED);\r\n context.dispatch(_types.actions.VALIDATE_PERSON_IDENTIFICATION);\r\n context.dispatch(_types.actions.FETCH_FEES);\r\n context.dispatch(_types.actions.FETCH_ARTICLES);\r\n\r\n if (isUnknown) {\r\n context.dispatch(_types.actions.SET_FEE, { feeId: null });\r\n }\r\n },\r\n};\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nclass FeesApi extends ServiceBase {\r\n _origin = 'feesApi';\r\n\r\n async getFees(context, teeTimeId, payload) {\r\n let params = [];\r\n if (payload.slotBookingId) {\r\n params.push(`slotBookingId=${payload.slotBookingId}`);\r\n }\r\n if (payload.personId) {\r\n params.push(`personId=${payload.personId}`);\r\n }\r\n if (payload.foreignId) {\r\n params.push(`foreignId=${payload.foreignId}`);\r\n }\r\n if (payload.age) {\r\n params.push(`age=${payload.age}`);\r\n }\r\n let endpoint = `/Fees/TeeTimes/${teeTimeId}?${params.join('&')}`;\r\n return await this.fetch(\r\n endpoint,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'getFees',\r\n 'Hämtar artiklar...',\r\n true\r\n );\r\n }\r\n\r\n async validateCompanyGameRight(context, payload) {\r\n let endpoint = `/fees/companygamerights/validate?engagementId=${payload.feeId}&teeTimeId=${payload.teeTimeId}&numberOfPlayers=${payload.numberOfPlayers ? payload.numberOfPlayers : 1}`;\r\n return await this.fetch(\r\n endpoint,\r\n {\r\n method: 'POST',\r\n },\r\n context,\r\n 'validateCompanyGameRight',\r\n 'Validerar...',\r\n true\r\n );\r\n }\r\n}\r\nexport default FeesApi;\r\n","import { _types } from './types';\r\nimport FeesApi from '../api/feesApi';\r\nconst feesApi = new FeesApi();\r\n\r\nexport default {\r\n [_types.actions.FETCH_FEES]: async (context) => {\r\n context.commit(_types.mutations.SET_FEES, undefined);\r\n let sb = context.state.slotBookingToEdit;\r\n let payload = {};\r\n if (sb != undefined && sb.status !== 'created') {\r\n payload.slotBookingId = sb.slotBookingId;\r\n }\r\n if (sb != undefined) {\r\n payload.personId = sb.player.personId;\r\n payload.foreignId = sb.player.foreignId;\r\n payload.age = sb.player.age;\r\n }\r\n let result = await feesApi.getFees(context, context.state.teeTimeBooking.teeTimeId, payload);\r\n context.commit(_types.mutations.SET_FEES, result);\r\n },\r\n\r\n [_types.actions.SET_FEE]: (context, fee) => {\r\n context.commit(_types.mutations.SET_FEE, fee);\r\n context.commit(_types.mutations.CLEAR_EDIT_SLOTBOOKING_VALIDATION, 'validateCompanyGameRight');\r\n },\r\n};\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nclass RentalItemsApi extends ServiceBase {\r\n _origin = 'rentalItemsApi';\r\n\r\n async getRentalItems(context, teeTimeId, payload) {\r\n let params = [];\r\n if (payload.slotBookingId) {\r\n params.push(`slotBookingId=${payload.slotBookingId}`);\r\n }\r\n if (payload.personId) {\r\n params.push(`personId=${payload.personId}`);\r\n }\r\n if (payload.foreignId) {\r\n params.push(`foreignId=${payload.foreignId}`);\r\n }\r\n if (payload.age) {\r\n params.push(`age=${payload.age}`);\r\n }\r\n return await this.fetch(\r\n `/RentalItems/TeeTimes/${teeTimeId}?${params.join('&')}`,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'getRentalItems',\r\n 'Laddar artiklar...',\r\n true\r\n );\r\n }\r\n\r\n async validateAvailability(context, payload) {\r\n let endpoint = `/rentalItems/${payload.articleId}/validate?start=${encodeURIComponent(payload.start)}&end=${encodeURIComponent(payload.end)}`;\r\n if (payload.rentalBookingId) {\r\n endpoint += '&rentalBookingId=' + payload.rentalBookingId;\r\n }\r\n if (payload.personId) {\r\n endpoint += '&personId=' + payload.personId;\r\n }\r\n return await this.fetch(\r\n endpoint,\r\n {\r\n method: 'POST',\r\n body: JSON.stringify(payload),\r\n },\r\n context,\r\n 'validateAvailability',\r\n 'Validerar artiklar...',\r\n true\r\n );\r\n }\r\n}\r\nexport default RentalItemsApi;\r\n","import { _types } from './types';\r\nimport RentalItemsApi from '../api/rentalItemsApi';\r\n\r\nconst rentalItemsApi = new RentalItemsApi();\r\nexport default {\r\n [_types.actions.FETCH_ARTICLES]: async (context) => {\r\n context.commit(_types.mutations.SET_ARTICLES, undefined);\r\n let sb = context.state.slotBookingToEdit;\r\n let payload = {};\r\n if (sb.status !== 'created') {\r\n payload.slotBookingId = sb.slotBookingId;\r\n }\r\n payload.personId = sb.player.personId;\r\n payload.foreignId = sb.player.foreignId;\r\n payload.age = sb.player.age;\r\n let result = await rentalItemsApi.getRentalItems(context, context.state.teeTimeBooking.teeTimeId, payload);\r\n context.commit(_types.mutations.SET_ARTICLES, result);\r\n },\r\n\r\n [_types.actions.SET_ARTICLE]: async (context, articleId) => {\r\n context.commit(_types.mutations.SET_ARTICLE, articleId);\r\n\r\n let isInCurrentSelection = context.state.slotBookingToEdit.rentalArticleBookings.find((x) => x.articleId === articleId);\r\n if (isInCurrentSelection) {\r\n context.dispatch(_types.actions.VALIDATE_ARTICLE_AVAILABILITY, articleId);\r\n }\r\n },\r\n\r\n [_types.actions.SET_ARTICLE_FIELD]: async (context, articleField) => {\r\n context.commit(_types.mutations.SET_ARTICLE_FIELD, articleField);\r\n\r\n if (articleField.field !== 'note') {\r\n context.dispatch(_types.actions.VALIDATE_ARTICLE_AVAILABILITY, articleField.articleId);\r\n }\r\n },\r\n\r\n [_types.actions.VALIDATE_ARTICLE_AVAILABILITY]: async (context, articleId) => {\r\n let article = context.state.slotBookingToEdit.rentalArticleBookings.find((x) => x.articleId === articleId);\r\n let personId = context.state.slotBookingToEdit.player.personId;\r\n\r\n context.commit(_types.mutations.CLEAR_EDIT_SLOTBOOKING_VALIDATION, 'validateAvailability');\r\n let result = await rentalItemsApi.validateAvailability(context, {\r\n articleId: articleId,\r\n start: article.startTime,\r\n end: article.endTime,\r\n rentalBookingId: article.rentalBookingId,\r\n personId: personId,\r\n });\r\n\r\n result.forEach((msg) => {\r\n msg.correlationId = 'validateAvailability';\r\n context.commit(_types.mutations.SET_EDIT_SLOTBOOKING_VALIDATION, msg);\r\n });\r\n },\r\n\r\n [_types.actions.SET_NEW_ITEM_BOOKING_MESSAGES_AFTER_REMOVE]: (context) => {\r\n context.commit(_types.mutations.SET_NEW_ITEM_BOOKING_MESSAGES_AFTER_REMOVE);\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nimport { BookingApi } from '@sgf/go-api-services';\r\nconst bookingApi = new BookingApi();\r\nexport default {\r\n [_types.actions.VALIDATE_REMOVE_BOOKING]: async (context, bookingId) => {\r\n context.commit(_types.mutations.SET_BOOKING_TO_REMOVE, bookingId);\r\n let result = await bookingApi.validateRemoveBooking(context, { bookingId: bookingId });\r\n context.commit(_types.mutations.SET_BOOKING_TO_REMOVE_VALIDATION, { data: result });\r\n },\r\n [_types.actions.REMOVE_BOOKING]: async (context) => {\r\n context.commit(_types.mutations.REMOVE_BOOKING);\r\n context.commit(_types.mutations.CLEAR_REMOVE_BOOKING);\r\n },\r\n [_types.actions.CLEAR_REMOVE_BOOKING]: (context) => {\r\n context.commit(_types.mutations.CLEAR_REMOVE_BOOKING);\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport { SlotBookingApi } from '@sgf/go-api-services';\r\nconst slotBookingApi = new SlotBookingApi();\r\n\r\nexport default {\r\n [_types.actions.VALIDATE_REMOVE_PLAYER]: async (context, slotBookingId) => {\r\n let isNewSLot = slotBookingId.startsWith('new_slot');\r\n context.commit(_types.mutations.BOOKING_SET_SLOT_BOOKING_TO_REMOVE, slotBookingId);\r\n\r\n if (isNewSLot) {\r\n context.commit(_types.mutations.BOOKING_REMOVE_SLOT_BOOKING);\r\n context.dispatch(_types.actions.VALIDATE_TEE_TIME_BOOKING);\r\n }\r\n\r\n if (!isNewSLot) {\r\n let result = await slotBookingApi.validateRemovePlayer(context, { slotBookingId: slotBookingId });\r\n context.commit(_types.mutations.SET_PLAYER_TO_REMOVE_VALIDATION, { data: result });\r\n }\r\n },\r\n\r\n [_types.actions.BOOKING_PRE_REMOVE_CLEAR]: (context) => {\r\n context.commit(_types.mutations.BOOKING_SET_SLOT_BOOKING_TO_REMOVE, undefined);\r\n context.commit(_types.mutations.SET_PLAYER_TO_REMOVE_VALIDATION, {});\r\n },\r\n\r\n [_types.actions.BOOKING_REMOVE_SLOT_BOOKING]: (context) => {\r\n context.commit(_types.mutations.BOOKING_REMOVE_SLOT_BOOKING);\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport actionsApi from './actions.api';\r\nimport actionsCreate from './actions.create';\r\nimport actionsEdit from './actions.edit';\r\nimport actionsFees from './actions.fees';\r\nimport actionsArticles from './actions.articles';\r\nimport actionsBookingRemove from './actions.booking.remove';\r\nimport actionsSlotbookingRemove from './actions.slotbooking.remove';\r\n\r\nexport default {\r\n ...actionsApi,\r\n ...actionsCreate,\r\n ...actionsEdit,\r\n ...actionsFees,\r\n ...actionsArticles,\r\n ...actionsBookingRemove,\r\n ...actionsSlotbookingRemove,\r\n\r\n [_types.actions.INITIALIZE]: (context, teeTimeId) => {\r\n context.commit(_types.mutations.CLEAN_UP);\r\n context.dispatch(_types.actions.GET_FREQUENT_PLAYERS);\r\n context.dispatch(_types.actions.FETCH_TEE_TIME_BOOKING, { teeTimeId: teeTimeId, type: 'edit' });\r\n },\r\n\r\n [_types.actions.REINITIALIZE]: (context) => {\r\n context.dispatch(_types.actions.INITIALIZE, context.state.teeTimeBooking.teeTimeId);\r\n },\r\n\r\n [_types.actions.SET_SELECTED_BOOKING]: (context, selectedBooking) => {\r\n context.commit(_types.mutations.SET_SELECTED_BOOKING, selectedBooking);\r\n },\r\n\r\n [_types.actions.CLEAN_UP]: (context) => {\r\n if (context.state.teeTimeBooking && context.state.teeTimeBooking.teeTimeId) {\r\n context.dispatch(_types.actions.UNLOCK_TEE_TIME, { courseId: context.state.teeTimeBooking.courseId, teeTimeId: context.state.teeTimeBooking.teeTimeId });\r\n }\r\n context.commit(_types.mutations.CLEAN_UP);\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport moment from 'moment';\r\nimport { hashHelper } from '@sgf/go-utilities';\r\nimport hashNumberHelper from '../helpers/hash-helper';\r\n\r\nfunction hcpStringToNumber(hcpString) {\r\n return Number(hcpString.replace(',', '.').replace('+', '-'));\r\n}\r\n\r\nfunction hcpNumberToString(hcpNumber) {\r\n return hcpNumber.toFixed(1).replace('.', ',').replace('-', '+');\r\n}\r\n\r\nfunction getAllSlotBookingIds(state) {\r\n let result = [];\r\n result = result.concat(Object.keys(state.teeTimeSlotBookings));\r\n result = result.concat(Object.keys(state.newBookingSlotBookings));\r\n result = result.concat(Object.keys(state.removedSlotBookings));\r\n return result;\r\n}\r\n\r\nfunction slotBookingsToName(sbs, result) {\r\n Object.values(sbs).forEach((sb) => {\r\n result[sb.slotBookingId] = sb.player.firstname;\r\n if (sb.player.lastname) {\r\n result[sb.slotBookingId] += ' ' + sb.player.lastname;\r\n }\r\n });\r\n}\r\nfunction slotBookingsToTableData(slotBookings) {\r\n return slotBookings.map((sb) => {\r\n let projection = { ...sb };\r\n projection = { ...projection, ...projection.player };\r\n\r\n projection.fullName = projection.firstname;\r\n if (projection.lastname) {\r\n projection.fullName = projection.fullName + ' ' + projection.lastname;\r\n }\r\n projection = { ...projection, ...projection.paymentInformation };\r\n projection.totalAmount = projection.totalAmount.toString().replace('.', ',') + ' kr';\r\n projection.remainingAmountToPay = projection.remainingAmountToPay.toString().replace('.', ',') + ' kr';\r\n delete projection.paymentInformation;\r\n delete projection.player;\r\n return projection;\r\n });\r\n}\r\n\r\nfunction lastIdentifiedSlotBooking(slotBookings, result) {\r\n let numberOfUnidentfied = slotBookings.filter((x) => x.isUnknown === true);\r\n let numberOfIdentified = slotBookings.filter((x) => x.isUnknown === false);\r\n if (numberOfUnidentfied.length === 0) {\r\n return;\r\n }\r\n if (numberOfIdentified.length === 1) {\r\n let lastSlotBooking = numberOfIdentified[0];\r\n result[lastSlotBooking.slotBookingId] = true;\r\n }\r\n}\r\n\r\nfunction hasArticle(articleId, slotBooking) {\r\n if (slotBooking.rentalArticleBookings && slotBooking.rentalArticleBookings.find((x) => x.articleId === articleId)) {\r\n return true;\r\n }\r\n return false;\r\n}\r\n\r\nfunction isArticleAvailable(article, articles, slotBooking) {\r\n let availableArticle = articles.find((x) => x.id === article.articleId);\r\n if (hasArticle(article.articleId, slotBooking)) {\r\n return true;\r\n }\r\n if (availableArticle && availableArticle.bookedBy !== slotBooking.player.id) {\r\n let articleStart = moment(article.startTime);\r\n let articleEnd = moment(article.endTime);\r\n let availableArticleStart = moment(availableArticle.startTime);\r\n let availableArticleEnd = moment(availableArticle.endTime);\r\n if (availableArticleStart.isBetween(articleStart, articleEnd)) {\r\n return false;\r\n }\r\n if (availableArticleEnd.isBetween(articleStart, articleEnd)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n\r\nexport default {\r\n [_types.getters.HAS_CHANGES]: (state) => {\r\n if (state.removedSlotBookings && Object.keys(state.removedSlotBookings).length > 0) {\r\n return true;\r\n }\r\n if (state.newBookingSlotBookings && Object.keys(state.newBookingSlotBookings).length > 0) {\r\n return true;\r\n }\r\n if (state.teeTimeSlotBookings && Object.values(state.teeTimeSlotBookings).filter((x) => x.status === 'updated' || x.status === 'created').length > 0) {\r\n return true;\r\n }\r\n if (\r\n state.teeTimeSlotBookings &&\r\n Object.values(state.teeTimeSlotBookings).filter((x) => x.bookerInformation && x.bookerInformation.isUpdated === true).length > 0\r\n ) {\r\n return true;\r\n }\r\n return false;\r\n },\r\n\r\n [_types.getters.HASH_CHANGED_FREQUENT_PLAYERS]: (state) => {\r\n if (state.frequentPlayersSourceHash === undefined) {\r\n return false;\r\n }\r\n\r\n let newHash = hashHelper.hashObject(state.frequentPlayers);\r\n if (newHash !== state.frequentPlayersSourceHash) {\r\n return true;\r\n }\r\n return false;\r\n },\r\n\r\n [_types.getters.HASH_CHANGED_PLAYER_AGE]: (state) => {\r\n if (state.slotBookingToEdit === undefined) {\r\n return false;\r\n }\r\n if (state.playerAgeSourceHash === undefined) {\r\n return false;\r\n }\r\n\r\n let newHash = hashNumberHelper.hashNumber(state.slotBookingToEdit.player.age);\r\n\r\n if (newHash !== state.playerAgeSourceHash) {\r\n return true;\r\n }\r\n return false;\r\n },\r\n\r\n [_types.getters.GET_ERRORS]: (state) => {\r\n if (!state.validation) {\r\n return {};\r\n }\r\n return state.validation\r\n .filter((x) => x.type === 'Error')\r\n .reduce((pv, cv) => {\r\n if (!pv[cv.reference]) {\r\n pv[cv.reference] = [];\r\n }\r\n pv[cv.reference].push(cv.message);\r\n return pv;\r\n }, {});\r\n },\r\n\r\n [_types.getters.GET_WARNINGS]: (state) => {\r\n if (!state.validation) {\r\n return {};\r\n }\r\n return state.validation\r\n .filter((x) => x.type === 'Warning')\r\n .reduce((pv, cv) => {\r\n if (!pv[cv.reference]) {\r\n pv[cv.reference] = [];\r\n }\r\n pv[cv.reference].push(cv.message);\r\n return pv;\r\n }, {});\r\n },\r\n\r\n [_types.getters.GET_GLOBAL_WARNING]: (state) => {\r\n if (!state.validation) {\r\n return undefined;\r\n }\r\n let allSlotBookingIds = getAllSlotBookingIds(state);\r\n let warnings = state.validation.filter((x) => x.type === 'Warning');\r\n let result = [];\r\n warnings.forEach((w) => {\r\n if (allSlotBookingIds.indexOf(w.reference) === -1) {\r\n result.push(w.message);\r\n }\r\n });\r\n if (result.length > 0) {\r\n return result;\r\n }\r\n return undefined;\r\n },\r\n\r\n [_types.getters.GET_GLOBAL_ERROR]: (state) => {\r\n if (!state.validation) {\r\n return undefined;\r\n }\r\n let errors = state.validation.filter((x) => x.type === 'Error');\r\n let result = [];\r\n errors.forEach((w) => {\r\n result.push(w.message);\r\n });\r\n if (result.length > 0 && !state.slotBookingToRemove) {\r\n return result;\r\n }\r\n return undefined;\r\n },\r\n\r\n [_types.getters.GET_AMOUNT_AVAILABLE_SLOTS]: (state) => {\r\n if (state.teeTimeSlotBookings || state.currentSlotBookings) {\r\n let currentSlotBookings = Object.keys(state.teeTimeSlotBookings).length;\r\n let createdSlotBookings = Object.keys(state.newBookingSlotBookings).length;\r\n let blockedSlots = 0;\r\n\r\n return 4 - currentSlotBookings - createdSlotBookings - blockedSlots;\r\n }\r\n },\r\n\r\n [_types.getters.GET_NAME_BY_SLOTBOOKING]: (state) => {\r\n let result = {};\r\n slotBookingsToName(state.teeTimeSlotBookings, result);\r\n slotBookingsToName(state.newBookingSlotBookings, result);\r\n slotBookingsToName(state.removedSlotBookings, result);\r\n return result;\r\n },\r\n\r\n [_types.getters.HAS_NO_SLOTS]: (state, getters) => {\r\n return getters[_types.getters.GET_AMOUNT_AVAILABLE_SLOTS] === 0;\r\n },\r\n\r\n [_types.getters.CURRENT_HCP]: (state) => {\r\n let total = 0;\r\n Object.values(state.teeTimeSlotBookings)\r\n .map((x) => hcpStringToNumber(x.player.hcp))\r\n .forEach((x) => {\r\n total += x;\r\n });\r\n Object.values(state.newBookingSlotBookings)\r\n .map((x) => hcpStringToNumber(x.player.hcp))\r\n .forEach((x) => {\r\n total += x;\r\n });\r\n return hcpNumberToString(total);\r\n },\r\n\r\n [_types.getters.GET_CREATE_SLOT_BOOKINGS_AS_TABLE_DATA]: (state) => {\r\n let slotBookings = Object.values(state.newBookingSlotBookings).slice().reverse();\r\n return slotBookingsToTableData(slotBookings);\r\n },\r\n\r\n [_types.getters.IS_LAST_IDENTIFIED_SLOTBOOKING]: (state) => {\r\n let result = {};\r\n let createdSlotBookingsPartial = Object.values(state.newBookingSlotBookings).map((x) => {\r\n return {\r\n slotBookingId: x.slotBookingId,\r\n isUnknown: x.player.isUnknown,\r\n };\r\n });\r\n lastIdentifiedSlotBooking(createdSlotBookingsPartial, result);\r\n Object.values(state.slotBookingsPerBooking).forEach((sbpb) => {\r\n let slotBookingsPerBookingPartial = sbpb.map((sbId) => {\r\n return {\r\n slotBookingId: state.teeTimeSlotBookings[sbId].slotBookingId,\r\n isUnknown: state.teeTimeSlotBookings[sbId].player.isUnknown,\r\n };\r\n });\r\n lastIdentifiedSlotBooking(slotBookingsPerBookingPartial, result);\r\n });\r\n return result;\r\n },\r\n\r\n [_types.getters.GET_ARTICLES_VALIDATION]: (state) => {\r\n return state.slotBookingToEdit.rentalArticleBookings.reduce((pv, cv) => {\r\n let start = moment(cv.startTime);\r\n let end = moment(cv.endTime);\r\n if (start.format('YYYY-MM-DD HH:mm') === end.format('YYYY-MM-DD HH:mm') || end.isBefore(start)) {\r\n pv.push(cv.articleName + ': till datum/tid måste vara senare än från datum/tid');\r\n }\r\n return pv;\r\n }, []);\r\n },\r\n\r\n [_types.getters.GET_BOOKED_ARTICLES]: (state) => {\r\n let result = {};\r\n if (state.teeTimeSlotBookings) {\r\n result = Object.values(state.teeTimeSlotBookings).reduce((pv, cv) => {\r\n cv.rentalArticleBookings.forEach((x) => {\r\n if (!isArticleAvailable(x, state.articles, state.slotBookingToEdit)) {\r\n pv[x.articleId] = cv.slotBookingId;\r\n }\r\n });\r\n return pv;\r\n }, {});\r\n }\r\n\r\n if (state.newBookingSlotBookings) {\r\n result = Object.values(state.newBookingSlotBookings).reduce((pv, cv) => {\r\n cv.rentalArticleBookings.forEach((x) => {\r\n if (!isArticleAvailable(x, state.articles, state.slotBookingToEdit)) {\r\n pv[x.articleId] = cv.slotBookingId;\r\n }\r\n });\r\n return pv;\r\n }, result);\r\n }\r\n\r\n if (state.articles) {\r\n state.articles.forEach((x) => {\r\n if (!hasArticle(x.id, state.slotBookingToEdit)) {\r\n if (!result[x.id] && x.isBooked && x.bookedBy !== state.slotBookingToEdit.player.id) {\r\n result[x.id] = 'other';\r\n }\r\n }\r\n });\r\n }\r\n return result;\r\n },\r\n\r\n [_types.getters.GET_SLOT_BOOKINGS_AS_TABLE_DATA]: (state) => {\r\n let result = {};\r\n for (const [key, value] of Object.entries(state.slotBookingsPerBooking)) {\r\n let slotBookings = value.map((sbId) => {\r\n return state.teeTimeSlotBookings[sbId];\r\n });\r\n\r\n let processedSlotBookings = slotBookingsToTableData(slotBookings);\r\n\r\n processedSlotBookings = processedSlotBookings.map((x) => {\r\n if (x.isExternalBooking) {\r\n return {\r\n hcp: x.hcp,\r\n gender: x.gender,\r\n bookingNumber: x.bookingNumber,\r\n isExternal: true,\r\n };\r\n } else {\r\n return x;\r\n }\r\n });\r\n result[key] = processedSlotBookings;\r\n }\r\n\r\n return result;\r\n },\r\n\r\n [_types.getters.GET_EDIT_ARTICLES_BY_ID]: (state) => {\r\n return state.slotBookingToEdit.rentalArticleBookings.reduce((pv, cv) => {\r\n pv[cv.articleId] = cv;\r\n return pv;\r\n }, {});\r\n },\r\n};\r\n","import state from './state';\r\nimport mutations from './mutations';\r\nimport actions from './actions';\r\nimport getters from './getters';\r\nimport teeTimeBookingTypes from './types';\r\n\r\nexport { teeTimeBookingTypes };\r\n\r\nexport default {\r\n namespaced: true,\r\n namespace: teeTimeBookingTypes.namespace,\r\n state: state,\r\n mutations: mutations,\r\n actions: actions,\r\n getters: getters,\r\n};\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nclass UpcomingBookingsApi extends ServiceBase {\r\n _origin = 'upcomingApi';\r\n\r\n async getUpcomingBookings(context) {\r\n return await this.fetch(\r\n `/Bookings/Upcoming`,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'getUpcoming',\r\n 'Hämtar...'\r\n );\r\n }\r\n}\r\nexport default UpcomingBookingsApi;\r\n","import { _types } from './types';\r\nimport UpcomingBookingsApi from '../api/upcomingBookingsApi';\r\nconst upcomingBookingsApi = new UpcomingBookingsApi();\r\n\r\nexport default {\r\n [_types.actions.INITIALIZE]: (context) => {\r\n context.commit(_types.mutations.CLEAN_UP);\r\n context.dispatch(_types.actions.GET_UPCOMING_BOOKINGS);\r\n },\r\n\r\n [_types.actions.GET_UPCOMING_BOOKINGS]: async (context) => {\r\n let bookings = await upcomingBookingsApi.getUpcomingBookings(context);\r\n\r\n context.commit(_types.mutations.SET_UPCOMING_BOOKINGS, bookings);\r\n },\r\n};\r\n","export default {};\r\n","import { _types } from './types';\r\nimport Vue from 'vue';\r\n\r\nexport default {\r\n [_types.mutations.SET_UPCOMING_BOOKINGS]: (state, bookings) => {\r\n let upcomingBookings = bookings.map((cv) => ({ ...cv }));\r\n state.upcomingBookings = upcomingBookings;\r\n },\r\n\r\n [_types.mutations.CLEAN_UP]: (state) => {\r\n state.upcomingBookings = undefined;\r\n },\r\n};\r\n","export default {\r\n upcomingBookings: undefined,\r\n};\r\n","import actions from './actions';\r\nimport upcomingBookingsTypes from './types';\r\nimport getters from './getters';\r\nimport mutations from './mutations';\r\nimport state from './state';\r\n\r\nconst upcomingBookingsStore = {\r\n namespaced: true,\r\n actions: actions,\r\n getters: getters,\r\n mutations: mutations,\r\n state: state,\r\n};\r\n\r\nexport { upcomingBookingsTypes, upcomingBookingsStore };\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nclass FrequentPlayersApi extends ServiceBase {\r\n _origin = 'frequentPlayersApi';\r\n\r\n async getFrequentPlayers(context) {\r\n return await this.fetch(\r\n `/FrequentPlayers`,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'getFrequentPlayers',\r\n 'Hämtar...'\r\n );\r\n }\r\n\r\n async saveFrequentPlayers(context, payload) {\r\n return await this.fetch(\r\n `/FrequentPlayers`,\r\n {\r\n method: 'PUT',\r\n body: JSON.stringify(payload),\r\n },\r\n context,\r\n 'saveFrequentPlayers',\r\n 'Sparar...'\r\n );\r\n }\r\n\r\n async validateFrequentPlayer(context, payload) {\r\n return await this.fetch(\r\n `/FrequentPlayers/Validate`,\r\n {\r\n method: 'POST',\r\n body: JSON.stringify(payload),\r\n },\r\n context,\r\n 'validateFrequentPlayer',\r\n 'Validerar...'\r\n );\r\n }\r\n}\r\nexport default FrequentPlayersApi;\r\n","import { _types } from './types';\r\nimport FrequentPlayersApi from '../api/frequentPlayersApi';\r\nconst frequentPlayersApi = new FrequentPlayersApi();\r\nexport default {\r\n [_types.actions.INITIALIZE]: async (context) => {\r\n context.commit(_types.mutations.CLEAN_UP);\r\n await context.dispatch(_types.actions.GET_FREQUENT_PLAYERS);\r\n context.commit(_types.mutations.SET_HASH);\r\n },\r\n\r\n [_types.actions.GET_FREQUENT_PLAYERS]: async (context) => {\r\n let players = await frequentPlayersApi.getFrequentPlayers(context);\r\n\r\n context.commit(_types.mutations.SET_FREQUENT_PLAYERS, players);\r\n },\r\n\r\n [_types.actions.SAVE_FREQUENT_PLAYERS]: async (context) => {\r\n await frequentPlayersApi.saveFrequentPlayers(context, context.state.frequentPlayers);\r\n await context.dispatch(_types.actions.INITIALIZE);\r\n },\r\n\r\n [_types.actions.SET_FIELD]: (context, fieldValue) => {\r\n context.commit(_types.mutations.SET_FIELD, fieldValue);\r\n },\r\n\r\n [_types.actions.CLEAN_SEARCH]: (context) => {\r\n context.commit(_types.mutations.CLEAN_SEARCH);\r\n },\r\n\r\n [_types.actions.VALIDATE_FOUND_PLAYER]: async (context, player) => {\r\n let validation = await frequentPlayersApi.validateFrequentPlayer(context, player);\r\n context.commit(_types.mutations.SET_FIELD, { field: 'foundPlayerValidation', value: validation });\r\n context.dispatch(_types.actions.SET_FOUND_PLAYER, player);\r\n },\r\n\r\n [_types.actions.SET_FOUND_PLAYER]: (context, player) => {\r\n context.commit(_types.mutations.SET_FOUND_PLAYER, player);\r\n },\r\n\r\n [_types.actions.ADD_FREQUENT_PLAYER]: (context) => {\r\n context.commit(_types.mutations.SET_HASH);\r\n context.commit(_types.mutations.ADD_FREQUENT_PLAYER);\r\n },\r\n [_types.actions.SET_PLAYER_TO_REMOVE]: (context, player) => {\r\n context.commit(_types.mutations.SET_PLAYER_TO_REMOVE, player);\r\n },\r\n\r\n [_types.actions.REMOVE_PLAYER]: (context) => {\r\n context.commit(_types.mutations.REMOVE_PLAYER);\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nimport { hashHelper } from '@sgf/go-utilities';\r\nexport default {\r\n [_types.getters.HASH_CHANGED]: (state) => {\r\n if (state.sourceHash === undefined) {\r\n return false;\r\n }\r\n\r\n let newHash = hashHelper.hashObject(state.frequentPlayers);\r\n if (newHash !== state.sourceHash) {\r\n return true;\r\n }\r\n return false;\r\n },\r\n\r\n [_types.getters.GET_SEARCH_VALIDATION]: (state) => {\r\n if (!state.foundPlayerInformation) {\r\n return {};\r\n }\r\n\r\n let result = [];\r\n let duplicateMessage = 'Spelaren du försöker lägga till finns redan bland dina partnervänner.';\r\n\r\n const isDuplicate = state.frequentPlayers.find((frequentPlayer) => frequentPlayer.golfId === state.foundPlayerInformation.golfId);\r\n if (isDuplicate) {\r\n result.push(duplicateMessage);\r\n }\r\n\r\n if (state.foundPlayerValidation && state.foundPlayerValidation.length > 0) {\r\n state.foundPlayerValidation.forEach((validationError) => {\r\n if (validationError.type === 'Error') {\r\n result.push(validationError.message);\r\n }\r\n });\r\n }\r\n\r\n result = [...new Set(result)];\r\n\r\n return result;\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport { hashHelper } from '@sgf/go-utilities';\r\n\r\nexport default {\r\n [_types.mutations.SET_HASH]: (state) => {\r\n let stateToHash = hashHelper.hashObject(state.frequentPlayers);\r\n state.sourceHash = stateToHash;\r\n },\r\n\r\n [_types.mutations.SET_FREQUENT_PLAYERS]: (state, players) => {\r\n state.frequentPlayers = players;\r\n },\r\n\r\n [_types.mutations.SET_PLAYER_TO_REMOVE]: (state, player) => {\r\n state.playerToRemove = player;\r\n },\r\n\r\n [_types.mutations.REMOVE_PLAYER]: (state) => {\r\n const indexToRemove = state.frequentPlayers.findIndex((player) => player.golfId === state.playerToRemove.golfId);\r\n if (indexToRemove !== -1) {\r\n state.frequentPlayers.splice(indexToRemove, 1);\r\n }\r\n state.playerToRemove = undefined;\r\n },\r\n\r\n [_types.mutations.SET_FOUND_PLAYER]: (state, player) => {\r\n state.foundPlayerInformation = player;\r\n },\r\n\r\n [_types.mutations.SET_FIELD]: (state, fieldValue) => {\r\n state[fieldValue.field] = fieldValue.value;\r\n },\r\n\r\n [_types.mutations.CLEAN_SEARCH]: (state) => {\r\n state.foundPlayerInformation = undefined;\r\n },\r\n\r\n [_types.mutations.ADD_FREQUENT_PLAYER]: (state) => {\r\n const frequentPlayersArray = [...state.frequentPlayers];\r\n frequentPlayersArray.push(state.foundPlayerInformation);\r\n state.frequentPlayers = frequentPlayersArray;\r\n state.foundPlayerInformation = {};\r\n },\r\n\r\n [_types.mutations.CLEAN_UP]: (state) => {\r\n state.frequentPlayers = undefined;\r\n state.playerToRemove = undefined;\r\n state.isSearchModalShowing = false;\r\n state.foundPlayerInformation = undefined;\r\n state.foundPlayerValidation = [];\r\n },\r\n};\r\n","export default {\r\n frequentPlayers: undefined,\r\n playerToRemove: undefined,\r\n isSearchModalShowing: false,\r\n foundPlayerInformation: undefined,\r\n foundPlayerValidation: [],\r\n isSubmitted: false,\r\n};\r\n","import actions from './actions';\r\nimport frequentPlayersTypes from './types';\r\nimport getters from './getters';\r\nimport mutations from './mutations';\r\nimport state from './state';\r\n\r\nconst frequentPlayersStore = {\r\n namespaced: true,\r\n actions: actions,\r\n getters: getters,\r\n mutations: mutations,\r\n state: state,\r\n};\r\n\r\nexport { frequentPlayersTypes, frequentPlayersStore };\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nclass ContactInformationApi extends ServiceBase {\r\n _origin = 'contactInformationApi';\r\n\r\n async getContactInformation(context) {\r\n return await this.fetch(\r\n `/contactInformations`,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'getContactInformation',\r\n 'Hämtar...'\r\n );\r\n }\r\n}\r\nexport default ContactInformationApi;\r\n","import { _types } from './types';\r\nimport ContactInformationApi from '../api/contactInformationApi';\r\nconst contactInformationApi = new ContactInformationApi();\r\n\r\nexport default {\r\n [_types.actions.INITIALIZE]: (context) => {\r\n context.dispatch(_types.actions.GET_CONTACT_INFORMATION);\r\n },\r\n\r\n [_types.actions.GET_CONTACT_INFORMATION]: async (context) => {\r\n let information = await contactInformationApi.getContactInformation(context);\r\n\r\n context.commit(_types.mutations.SET_CONTACT_INFORMATION, information);\r\n },\r\n\r\n [_types.actions.SET_SELECTED_CLUB]: (context, id) => {\r\n context.commit(_types.mutations.SET_SELECTED_CLUB, id);\r\n },\r\n};\r\n","export default {};\r\n","import { _types } from './types';\r\nexport default {\r\n [_types.mutations.SET_CONTACT_INFORMATION]: (state, information) => {\r\n information.sort((a, b) => (a.clubName > b.clubName ? 1 : -1));\r\n\r\n let clubs = information.reduce((acc, cv) => {\r\n acc[cv.id] = cv;\r\n return acc;\r\n }, {});\r\n\r\n state.clubs = clubs;\r\n\r\n const firstClubId = information.length > 0 ? information[0].id : null;\r\n state.selectedClubId = firstClubId;\r\n },\r\n\r\n [_types.mutations.SET_SELECTED_CLUB]: (state, id) => {\r\n let selectedClub = Object.values(state.clubs).find((x) => x.id === id);\r\n state.selectedClubId = selectedClub ? selectedClub.id : null;\r\n },\r\n};\r\n","export default {\r\n clubs: undefined,\r\n selectedClubId: undefined,\r\n};\r\n","import actions from './actions';\r\nimport contactInformationTypes from './types';\r\nimport getters from './getters';\r\nimport mutations from './mutations';\r\nimport state from './state';\r\n\r\nconst contactInformationStore = {\r\n namespaced: true,\r\n actions: actions,\r\n getters: getters,\r\n mutations: mutations,\r\n state: state,\r\n};\r\n\r\nexport { contactInformationTypes, contactInformationStore };\r\n","import { ServiceBase } from '@sgf/go-api-services';\r\n\r\nclass ReportsApi extends ServiceBase {\r\n _origin = 'reportsApi';\r\n\r\n async getReports(context, payload) {\r\n return await this.fetch(\r\n `/Bookings/?from=${payload.startTime}&to=${payload.endTime}`,\r\n {\r\n method: 'GET',\r\n },\r\n context,\r\n 'fetchReports',\r\n 'Hämtar...'\r\n );\r\n }\r\n}\r\nexport default ReportsApi;\r\n","import { _types } from './types';\r\nimport ReportsApi from '../api/reportsApi';\r\nconst reportsApi = new ReportsApi();\r\n\r\nexport default {\r\n [_types.actions.INITIALIZE]: async (context) => {\r\n context.commit(_types.mutations.CLEAN_UP);\r\n },\r\n\r\n [_types.actions.GET_REPORTS]: async (context) => {\r\n context.commit(_types.mutations.SET_FIELD, { field: 'isSubmitted', value: true });\r\n let validations = context.getters[_types.getters.GET_VALIDATION];\r\n\r\n if (Object.values(validations).length > 0) {\r\n return;\r\n }\r\n context.commit(_types.mutations.SET_FIELD, { field: 'isSearching', value: true });\r\n const timePayload = {\r\n startTime: context.state.startTime,\r\n endTime: context.state.endTime,\r\n };\r\n let result = await reportsApi.getReports(context, timePayload);\r\n\r\n context.commit(_types.mutations.SET_REPORTS, result);\r\n context.commit(_types.mutations.SET_FIELD, { field: 'isSearching', value: false });\r\n },\r\n\r\n [_types.actions.SET_START_TIME]: async (context, time) => {\r\n context.commit(_types.mutations.SET_START_TIME, time);\r\n },\r\n\r\n [_types.actions.SET_END_TIME]: async (context, time) => {\r\n context.commit(_types.mutations.SET_END_TIME, time);\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.getters.GET_VALIDATION]: (state) => {\r\n let result = [];\r\n\r\n if (!state.isSubmitted) {\r\n return;\r\n }\r\n\r\n if (!state.endTime || !state.startTime) {\r\n result.push({ field: 'startTime', message: 'Val av datum krävs' });\r\n }\r\n\r\n if (state.endTime && state.startTime) {\r\n if (state.endTime < state.startTime) {\r\n result.push({ field: 'endTime', message: 'Slutdatum kan inte ligga innan startdatum' });\r\n }\r\n }\r\n const timeDifference = new Date(state.endTime) - new Date(state.startTime);\r\n const daysDifference = timeDifference / (1000 * 60 * 60 * 24);\r\n\r\n if (daysDifference > 31) {\r\n result.push({ field: 'endTime', message: 'Det får vara max 31 dagar mellan start- och slutdatum' });\r\n }\r\n\r\n return result.reduce((pv, cv) => {\r\n pv[cv.field] = cv.message;\r\n return pv;\r\n }, {});\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport Vue from 'vue';\r\n\r\nexport default {\r\n [_types.mutations.SET_REPORTS]: (state, result) => {\r\n state.reports = result;\r\n },\r\n\r\n [_types.mutations.SET_START_TIME]: (state, time) => {\r\n state.startTime = time;\r\n },\r\n\r\n [_types.mutations.SET_END_TIME]: (state, time) => {\r\n state.endTime = time;\r\n },\r\n\r\n [_types.mutations.SET_FIELD]: (state, fieldValue) => {\r\n state[fieldValue.field] = fieldValue.value;\r\n },\r\n\r\n [_types.mutations.CLEAN_UP]: (state) => {\r\n state.reports = undefined;\r\n state.isSubmitted = false;\r\n state.isSearching = false;\r\n },\r\n};\r\n","export default {\r\n reports: undefined,\r\n isSubmitted: false,\r\n isSearching: false,\r\n startTime: undefined,\r\n endTime: undefined,\r\n};\r\n","import actions from './actions';\r\nimport reportsTypes from './types';\r\nimport getters from './getters';\r\nimport mutations from './mutations';\r\nimport state from './state';\r\n\r\nconst reportsStore = {\r\n namespaced: true,\r\n actions: actions,\r\n getters: getters,\r\n mutations: mutations,\r\n state: state,\r\n};\r\n\r\nexport { reportsTypes, reportsStore };\r\n","export default {\r\n accessableClubsAndCourses: [],\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.mutations.SET_ACCESSABLE_CLUBS_AND_COURSES]: function (state, payload) {\r\n state.accessableClubsAndCourses = payload;\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.getters.GET_ACCESSABLE_CLUBS]: (state) => {\r\n var clubs = [];\r\n const map = new Map();\r\n if (state.accessableClubsAndCourses.length > 0) {\r\n state.accessableClubsAndCourses.forEach((item) => {\r\n if (!map.has(item.clubId)) {\r\n map.set(item.clubId, true);\r\n clubs.push({\r\n value: item.clubId,\r\n label: item.clubName,\r\n });\r\n }\r\n });\r\n }\r\n return clubs;\r\n },\r\n [_types.getters.GET_ACCESSABLE_COURSES_BY_ID]: (state) => (id) => {\r\n var courses = [];\r\n const map = new Map();\r\n if (state.accessableClubsAndCourses.length > 0) {\r\n state.accessableClubsAndCourses.forEach((item) => {\r\n if (!map.has(item.courseId) && item.clubId === id) {\r\n map.set(item.courseId, true);\r\n courses.push({\r\n value: item.courseId,\r\n label: item.courseName,\r\n });\r\n }\r\n });\r\n }\r\n return courses;\r\n },\r\n};\r\n","import { _types } from './types';\r\nexport default {\r\n [_types.actions.FETCH_ACCESSABLE_CLUBS_AND_COURSES]: (context) => {\r\n let relatedClubs = sessionStorage.getItem('relatedClubs');\r\n\r\n context.commit(_types.mutations.SET_ACCESSABLE_CLUBS_AND_COURSES, JSON.parse(relatedClubs));\r\n },\r\n};\r\n","import state from './state';\r\nimport mutations from './mutations';\r\nimport getters from './getters';\r\nimport actions from './actions';\r\nimport coursesTypes from './types';\r\n\r\nexport { coursesTypes };\r\n\r\nexport default {\r\n namespaced: true,\r\n namespace: coursesTypes.namespace,\r\n state: state,\r\n getters: getters,\r\n mutations: mutations,\r\n actions: actions,\r\n};\r\n","import { createStore } from 'vuex';\r\nimport { apiStore, apiTypes } from '@sgf/go-api-services';\r\nimport { searchStore, searchTypes } from '@sgf/go-person-search';\r\nimport { serverPushStore, serverPushTypes } from './serverPush/';\r\nimport { scheduleStore, scheduleTypes } from '@sgf/go-schedule';\r\nimport dateStore, { dateTypes } from './date/';\r\nimport globalevents from './globalevents';\r\nimport countriesStore, { countriesTypes } from './countries/';\r\nimport startStore from '../modules/start/store';\r\nimport clubsStore, { clubsTypes } from './clubs/';\r\nimport { authenticationStore, authenticationTypes } from '../modules/authentication/store';\r\nimport { overviewStore } from '../modules/overview';\r\nimport { teeTimeBookingStore } from '../modules/teeTimeBooking';\r\nimport { slotBookingStore, slotBookingTypes } from '../modules/slotBooking/store';\r\nimport { bookingStore, bookingTypes } from '../modules/booking/store';\r\nimport { upcomingBookingsStore, upcomingBookingsTypes } from '../modules/upcomingBookings/store';\r\nimport { frequentPlayersStore, frequentPlayersTypes } from '../modules/frequentPlayers/store';\r\nimport { contactInformationStore, contactInformationTypes } from '../modules/contactInformation/store';\r\nimport { reportsStore, reportsTypes } from '../modules/reports/store';\r\nimport courseStore from '../modules/course/store';\r\n\r\napiStore.state.baseUrl = process.env.VUE_APP_APIENDPOINT;\r\n\r\nconst store = createStore({\r\n modules: {\r\n [apiTypes.namespace]: apiStore,\r\n [searchTypes.namespace]: searchStore,\r\n [serverPushTypes.namespace]: serverPushStore,\r\n [scheduleTypes.namespace]: scheduleStore,\r\n [countriesTypes.namespace]: countriesStore,\r\n [startStore.namespace]: startStore,\r\n [dateTypes.namespace]: dateStore,\r\n [clubsTypes.namespace]: clubsStore,\r\n\r\n [globalevents.namespace]: globalevents,\r\n [authenticationTypes.namespace]: authenticationStore,\r\n [overviewStore.namespace]: overviewStore,\r\n [teeTimeBookingStore.namespace]: teeTimeBookingStore,\r\n [slotBookingTypes.namespace]: slotBookingStore,\r\n [bookingTypes.namespace]: bookingStore,\r\n [upcomingBookingsTypes.namespace]: upcomingBookingsStore,\r\n [frequentPlayersTypes.namespace]: frequentPlayersStore,\r\n [contactInformationTypes.namespace]: contactInformationStore,\r\n [reportsTypes.namespace]: reportsStore,\r\n [courseStore.namespace]: courseStore,\r\n },\r\n});\r\n\r\nexport default store;\r\n","import { createApp } from 'vue';\r\nimport moment from 'moment';\r\nimport App from './App.vue';\r\nimport router from './routes/router';\r\n// import directivesConfig from './directives';\r\nimport store from './store/store';\r\nimport { directives as aceDirectives } from '@sgf/go-ace-ui';\r\n\r\n// Vue.config.productionTip = false;\r\n// Vue.config.devtools = true;\r\n// Vue.config.performance = true;\r\n\r\n// directivesConfig();\r\n\r\n//testar lägga in direkt i main istället för att importera\r\nfunction localDirectives() {\r\n app.directive('click-outside', {\r\n beforeMount: function (el, binding, vnode) {\r\n el.clickOutsideEvent = function (event) {\r\n if (!(el == event.target || el.contains(event.target))) {\r\n vnode.context[binding.expression](event);\r\n }\r\n };\r\n document.body.addEventListener('click', el.clickOutsideEvent);\r\n },\r\n unmounted: function (el) {\r\n document.body.removeEventListener('click', el.clickOutsideEvent);\r\n },\r\n });\r\n}\r\n\r\nmoment.locale('sv');\r\nconst app = createApp(App);\r\napp.config.errorHandler = (err) => {\r\n if (err && !err.code) {\r\n throw err;\r\n }\r\n};\r\n\r\nlocalDirectives();\r\n\r\napp.use(router);\r\napp.use(store);\r\napp.use(aceDirectives);\r\napp.mount('#app');\r\napp.config.globalProperties.$moment = moment;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass ContactInformationTypes extends TypesBase {\r\n constructor() {\r\n super('contactInformation');\r\n }\r\n getters = {};\r\n\r\n mutations = {\r\n SET_CONTACT_INFORMATION: 'setContactInformation',\r\n SET_SELECTED_CLUB: 'setSelectedClub',\r\n };\r\n\r\n actions = {\r\n INITIALIZE: 'initialize',\r\n GET_CONTACT_INFORMATION: 'getContactInformation',\r\n SET_SELECTED_CLUB: 'setSelectedClub',\r\n };\r\n}\r\n\r\nclass NamespacedContactInformationTypes extends ContactInformationTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedContactInformationTypes();\r\nconst _types = new ContactInformationTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","export default {\r\n defaultCreatePayload() {\r\n return {\r\n slotBookingId: '',\r\n bookingId: '',\r\n bookingNumber: '',\r\n player: {\r\n personId: '',\r\n golfId: '',\r\n foreignId: '',\r\n firstname: '',\r\n lastname: '',\r\n hcp: '',\r\n gender: 'female',\r\n email: '',\r\n phone: '',\r\n country: '',\r\n homeClub: '',\r\n isUnknown: false,\r\n age: '',\r\n note: '',\r\n isBooker: false,\r\n gameright: {\r\n ordinaryPrice: false,\r\n },\r\n prebookingFee: null,\r\n isMember: false,\r\n hasMembership: false,\r\n introductionCard: '',\r\n },\r\n rentalArticleBookings: [],\r\n order: 0,\r\n status: 'created',\r\n hasArrived: false,\r\n isCompanyBooking: true,\r\n paymentInformation: {\r\n totalAmount: 0,\r\n remainingAmountToPay: 0,\r\n status: '',\r\n },\r\n };\r\n },\r\n createPayloadFromPerson(person) {\r\n let payload = this.defaultCreatePayload();\r\n payload.player.personId = person.id;\r\n payload.player.firstname = person.firstname;\r\n payload.player.lastname = person.lastname;\r\n payload.player.golfId = person.golfId;\r\n payload.player.foreignId = person.foreignId;\r\n payload.player.hcp = person.hcp;\r\n payload.player.homeClub = person.clubName;\r\n payload.player.country = person.country;\r\n payload.player.email = person.email;\r\n payload.player.phone = person.phoneNumber;\r\n payload.player.isUnknown = person.isUnknown;\r\n payload.player.gender = person.isFemale ? 'female' : 'male';\r\n payload.player.age = person.age;\r\n payload.player.isMember = person.membershipType !== '';\r\n payload.player.hasMembership = person.hasMembership;\r\n return payload;\r\n },\r\n\r\n overridePayloadFromPerson(slotBooking, person) {\r\n slotBooking.player.personId = person.id;\r\n slotBooking.player.firstname = person.firstname;\r\n slotBooking.player.lastname = person.lastname;\r\n slotBooking.player.golfId = person.golfId;\r\n slotBooking.player.foreignId = person.foreignId;\r\n slotBooking.player.hcp = person.hcp;\r\n slotBooking.player.homeClub = person.clubName;\r\n slotBooking.player.country = person.country;\r\n slotBooking.player.email = person.email;\r\n slotBooking.player.phone = person.phoneNumber;\r\n slotBooking.player.isUnknown = person.isUnknown;\r\n slotBooking.player.gender = person.isFemale ? 'female' : 'male';\r\n slotBooking.player.age = person.age;\r\n slotBooking.player.isMember = person.membershipType !== '';\r\n return slotBooking;\r\n },\r\n};\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass ClubsTypes extends TypesBase {\r\n constructor() {\r\n super('clubs');\r\n }\r\n\r\n getters = {\r\n GET_CLUB_OPTIONS: 'getClubOptions',\r\n GET_CLUBS: 'getClubs',\r\n };\r\n\r\n mutations = {\r\n SET_CLUB_OPTIONS: 'setClubOptions',\r\n RESET_CLUB_OPTIONS: 'resetClubOptions',\r\n SET_CLUBS: 'setClubs',\r\n };\r\n\r\n actions = {\r\n LOAD_CLUB_OPTIONS: 'loadClubOptions',\r\n RESET_CLUB_OPTIONS: 'resetClubOptions',\r\n FETCH_CLUBS: 'fetchClubs',\r\n };\r\n}\r\n\r\nclass NamespacedDateTypes extends ClubsTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedDateTypes();\r\nconst _types = new ClubsTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass BookingTypes extends TypesBase {\r\n constructor() {\r\n super('booking');\r\n }\r\n getters = {};\r\n\r\n mutations = {\r\n SET_VALIDATIONS: 'setValidations',\r\n SET_REMOVE_BOOKING_ARTICLES: 'setRemoveBookingItemBookings',\r\n };\r\n\r\n actions = {\r\n CLEAR_LOCK: 'clearLock',\r\n CLEAR_ALL_OWN_LOCKS: 'clearAllOwnLocks',\r\n\r\n VALIDATE_REMOVE_BOOKING: 'validateRemoveBooking',\r\n REMOVE_BOOKING: 'removeBooking',\r\n CLEAR_REMOVE_BOOKING_VALIDATION: 'clearRemoveBookingValidation',\r\n SET_REMOVE_BOOKING_ARTICLES: 'setRemoveBookingItemBookings',\r\n };\r\n}\r\n\r\nclass NamespacedBookingTypes extends BookingTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedBookingTypes();\r\nconst _types = new BookingTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { BookingApi, TeeTimeApi } from '@sgf/go-api-services';\r\nimport { scheduleTypes } from '@sgf/go-schedule';\r\nimport bookingTypes from '../store/types';\r\n\r\nclass BookingEngine {\r\n constructor() {\r\n this.bookingApi = new BookingApi();\r\n this.teeTimeApi = new TeeTimeApi();\r\n }\r\n\r\n _commitValidations(context, key, data) {\r\n context.commit(\r\n bookingTypes.mutations.SET_VALIDATIONS,\r\n {\r\n key: key,\r\n data: data,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n }\r\n\r\n clearLock(context, payload) {\r\n this.teeTimeApi\r\n .deleteTeeTimeLock(context, {\r\n correlationId: payload.scheduleId,\r\n courseId: payload.courseId,\r\n teeTimeId: payload.teeTimeId,\r\n })\r\n .then(() => {\r\n context.commit(\r\n scheduleTypes.mutations.UPDATE_LOCK_STATUS_FOR_TEE_TIME,\r\n {\r\n teeTimeId: payload.teeTimeId,\r\n courseId: payload.courseId,\r\n lockStatus: 'unLocked',\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n });\r\n }\r\n\r\n clearAllLocks(context) {\r\n this.teeTimeApi.deleteAllOwnLocks(context);\r\n }\r\n\r\n validateRemoveBooking(context, payload) {\r\n this.bookingApi\r\n .validateRemoveBooking(context, {\r\n bookingId: payload.bookingId,\r\n })\r\n .then((response) => {\r\n this._commitValidations(context, 'data', {\r\n ...response,\r\n type: bookingTypes.actions.REMOVE_BOOKING,\r\n bookingId: payload.bookingId,\r\n });\r\n });\r\n }\r\n\r\n removeBooking(context) {\r\n let data = context.state.validations.data;\r\n this._commitValidations(context, 'data');\r\n\r\n return this.bookingApi\r\n .removeBooking(context, {\r\n bookingId: data.bookingId,\r\n removeItemBookings: data.removeItemBookings,\r\n })\r\n .then(() => {\r\n context.dispatch(\r\n scheduleTypes.actions.FETCH_PATCH_FOR_TEETIME,\r\n {\r\n scheduleId: context.rootState.overview.selectedScheduleId,\r\n teeTimeId: context.rootState.overview.selectedTeeTimeId,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n });\r\n }\r\n}\r\n\r\nexport default BookingEngine;\r\n","import { _types } from './types';\r\nimport BookingEngine from '../helpers/booking-engine';\r\n\r\nconst bookingEngine = new BookingEngine();\r\n\r\nexport default {\r\n [_types.actions.VALIDATE_REMOVE_BOOKING]: (context, payload) => {\r\n bookingEngine.validateRemoveBooking(context, payload);\r\n },\r\n\r\n [_types.actions.CLEAR_REMOVE_BOOKING_VALIDATION]: (context) => {\r\n context.commit(_types.mutations.SET_VALIDATIONS, { key: 'data' });\r\n context.commit(_types.mutations.SET_VALIDATIONS, { key: 'newItemBookingMessages' });\r\n },\r\n\r\n [_types.actions.SET_REMOVE_BOOKING_ARTICLES]: (context, payload) => {\r\n context.commit(_types.mutations.SET_REMOVE_BOOKING_ARTICLES, payload);\r\n },\r\n\r\n [_types.actions.REMOVE_BOOKING]: async (context) => {\r\n await context.commit(_types.mutations.SET_REMOVE_BOOKING_ARTICLES, true);\r\n if (context.state.validations.data.removeItemBookings == true) {\r\n await bookingEngine.removeBooking(context);\r\n }\r\n },\r\n\r\n [_types.actions.CLEAR_ALL_OWN_LOCKS]: (context) => {\r\n bookingEngine.clearAllLocks(context);\r\n },\r\n\r\n [_types.actions.CLEAR_LOCK]: (context, payload) => {\r\n bookingEngine.clearLock(context, payload);\r\n },\r\n};\r\n","export default {};\r\n","import { _types } from './types';\r\nimport Vue from 'vue';\r\n\r\nexport default {\r\n [_types.mutations.SET_VALIDATIONS]: (state, payload) => {\r\n if (!payload.data) {\r\n delete state.validations[payload.key];\r\n } else {\r\n state.validations[payload.key] = payload.data;\r\n }\r\n },\r\n\r\n [_types.mutations.SET_REMOVE_BOOKING_ARTICLES]: (state, payload) => {\r\n state.validations.data.removeItemBookings = payload;\r\n },\r\n};\r\n","export default {\r\n bookings: {},\r\n bookingByTeeTimeId: {},\r\n validations: {},\r\n addPlayerOptions: [\r\n {\r\n label: 'Spelare med Golf-ID',\r\n },\r\n ],\r\n};\r\n","import actions from './actions';\r\nimport bookingTypes from './types';\r\nimport getters from './getters';\r\nimport mutations from './mutations';\r\nimport state from './state';\r\n\r\nconst bookingStore = {\r\n namespaced: true,\r\n actions: actions,\r\n getters: getters,\r\n mutations: mutations,\r\n state: state,\r\n};\r\n\r\nexport { bookingTypes, bookingStore };\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass StartTypes extends TypesBase {\r\n constructor() {\r\n super('start');\r\n }\r\n\r\n getters = {\r\n GET_LOADER: 'getLoader',\r\n };\r\n\r\n mutations = {};\r\n\r\n actions = {\r\n INITIALIZE_APPLICATION: 'initializeApplication',\r\n };\r\n}\r\n\r\nclass NamespacedStartTypes extends StartTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedStartTypes();\r\nconst _types = new StartTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { TypesBase } from '@sgf/go-utilities';\r\n\r\nclass SlotbookingTypes extends TypesBase {\r\n constructor() {\r\n super('slotBooking');\r\n }\r\n getters = {};\r\n\r\n mutations = {\r\n SET_MOVE_SLOTBOOKINGS: 'moveSlotbookings',\r\n SET_VALIDATIONS: 'setValidations',\r\n SET_REMOVE_SLOTBOOKING_ARTICLES: 'setRemoveSlotbookingArticles',\r\n };\r\n\r\n actions = {\r\n SET_MOVE_SLOTBOOKINGS: 'moveSlotBookings',\r\n VALIDATE_REMOVE_PLAYER: 'validateRemovePlayer',\r\n SET_REMOVE_SLOTBOOKING_ARTICLES: 'setRemoveSlotbookingArticles',\r\n\r\n REMOVE_PLAYER: 'removePlayer',\r\n CLEAR_REMOVE_PLAYER_VALIDATION: 'clearRemovePlayerValidation',\r\n };\r\n}\r\n\r\nclass NamespacedSlotbookingTypes extends SlotbookingTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedSlotbookingTypes();\r\nconst _types = new SlotbookingTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","import { SlotBookingApi } from '@sgf/go-api-services';\r\nimport { scheduleTypes } from '@sgf/go-schedule';\r\nimport slotBookingTypes from '../store/types';\r\n\r\nclass SlotBookingEngine {\r\n constructor() {\r\n this.slotBookingApi = new SlotBookingApi();\r\n }\r\n\r\n _commitValidations(context, key, data) {\r\n context.commit(\r\n slotBookingTypes.mutations.SET_VALIDATIONS,\r\n {\r\n key: key,\r\n validation: data,\r\n },\r\n {\r\n root: true,\r\n }\r\n );\r\n }\r\n\r\n validateRemovePlayer(context, payload) {\r\n this.slotBookingApi\r\n .validateRemovePlayer(context, {\r\n slotBookingId: payload.slotBookingId,\r\n })\r\n .then((response) => {\r\n this._commitValidations(context, 'data', {\r\n ...response,\r\n type: slotBookingTypes.actions.REMOVE_PLAYER,\r\n slotBookingId: payload.slotBookingId,\r\n });\r\n });\r\n }\r\n\r\n removePlayer(context) {\r\n let data = context.state.validations.data;\r\n this._commitValidations(context, 'data');\r\n this.slotBookingApi\r\n .removePlayer(context, {\r\n slotBookingId: data.slotBookingId,\r\n removeItemBookings: data.removeItemBookings,\r\n })\r\n .then((result) => {\r\n if (result.messages.length > 0) {\r\n this._commitValidations(context, 'newItemBookingMessages', result.messages);\r\n }\r\n\r\n context.dispatch(\r\n scheduleTypes.actions.FETCH_PATCH_FOR_TEETIME,\r\n {\r\n scheduleId: context.rootState.overview.selectedScheduleId,\r\n teeTimeId: context.rootState.overview.selectedTeeTimeId,\r\n },\r\n { root: true }\r\n );\r\n });\r\n }\r\n}\r\n\r\nexport default SlotBookingEngine;\r\n","import SlotBookingEngine from '../helpers/slot-booking-engine';\r\nimport { _types } from './types';\r\nconst slotBookingEngine = new SlotBookingEngine();\r\n\r\nexport default {\r\n [_types.actions.VALIDATE_REMOVE_PLAYER]: (context, payload) => {\r\n slotBookingEngine.validateRemovePlayer(context, payload);\r\n },\r\n\r\n [_types.actions.REMOVE_PLAYER]: async (context) => {\r\n await context.commit(_types.mutations.SET_REMOVE_SLOTBOOKING_ARTICLES, true);\r\n if (context.state.validations.data.removeItemBookings == true) {\r\n slotBookingEngine.removePlayer(context);\r\n }\r\n },\r\n};\r\n","import { _types } from './types';\r\nimport actionsCalls from './actions.calls';\r\n\r\nexport default {\r\n ...actionsCalls,\r\n [_types.actions.SET_MOVE_SLOTBOOKINGS]: (context, payload) => {\r\n context.commit(_types.mutations.SET_MOVE_SLOTBOOKINGS, payload);\r\n },\r\n\r\n [_types.actions.CLEAR_REMOVE_PLAYER_VALIDATION]: (context) => {\r\n context.commit(_types.mutations.SET_VALIDATIONS, { key: 'data' });\r\n context.commit(_types.mutations.SET_VALIDATIONS, { key: 'newItemBookingMessages' });\r\n },\r\n\r\n [_types.actions.SET_REMOVE_SLOTBOOKING_ARTICLES]: (context, payload) => {\r\n context.commit(_types.mutations.SET_REMOVE_SLOTBOOKING_ARTICLES, payload);\r\n },\r\n};\r\n","import { _types } from './types';\r\n\r\nexport default {\r\n [_types.mutations.SET_MOVE_SLOTBOOKINGS]: (state, payload) => {\r\n if (payload == undefined) payload = {};\r\n state.moveSlotBookings = payload;\r\n },\r\n\r\n [_types.mutations.SET_VALIDATIONS]: (state, payload) => {\r\n if (!payload.validation) {\r\n delete state.validations[payload.key];\r\n } else {\r\n // Vue.set(state.validations, payload.key, payload.validation);\r\n state.validations[payload.key] = payload.validation;\r\n }\r\n },\r\n\r\n [_types.mutations.SET_REMOVE_SLOTBOOKING_ARTICLES]: (state, payload) => {\r\n state.validations.data.removeItemBookings = payload;\r\n },\r\n};\r\n","export default {\r\n slotBookings: {},\r\n validations: {},\r\n moveSlotBookings: {},\r\n personDetailsActive: {},\r\n rentalItemActive: {},\r\n slotBookingByTeeTime: {},\r\n isChanged: {},\r\n slotBookingHash: undefined,\r\n newSlotBookingHash: undefined,\r\n};\r\n","import actions from './actions';\r\nimport slotBookingTypes from './types';\r\nimport mutations from './mutations';\r\nimport state from './state';\r\n\r\nconst slotBookingStore = {\r\n namespaced: true,\r\n actions: actions,\r\n mutations: mutations,\r\n state: state,\r\n};\r\n\r\nexport { slotBookingTypes, slotBookingStore };\r\n","import { TypesBase } from \"@sgf/go-utilities\";\r\n\r\nclass CountriesTypes extends TypesBase {\r\n constructor() {\r\n super(\"countries\");\r\n }\r\n\r\n getters = {\r\n GET_COUNTRIES: \"getCountries\"\r\n };\r\n\r\n mutations = {\r\n SET_COUNTRIES: \"setCountries\"\r\n };\r\n\r\n actions = {\r\n LOAD_COUNTRIES: \"loadCountries\"\r\n };\r\n}\r\n\r\nclass NamespacedDateTypes extends CountriesTypes {\r\n constructor() {\r\n super();\r\n this.toNamespaced();\r\n }\r\n}\r\n\r\nconst types = new NamespacedDateTypes();\r\nconst _types = new CountriesTypes();\r\n\r\nexport { _types };\r\nexport default types;\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"37\":\"f1946490\",\"103\":\"f6664c0b\",\"192\":\"8f2d999b\",\"350\":\"9a1bce7b\",\"393\":\"5f6f19f8\",\"581\":\"be1f61b8\",\"620\":\"6f4ad22f\",\"631\":\"784956dc\",\"634\":\"adf09585\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"37\":\"de79a97b\",\"103\":\"9d61d046\",\"192\":\"035b0a25\",\"350\":\"297a9613\",\"581\":\"2fa3e50f\",\"620\":\"3ac0f103\",\"631\":\"adf728a1\",\"634\":\"9d3ecb00\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"go-invoice-app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"37\":1,\"103\":1,\"192\":1,\"350\":1,\"581\":1,\"620\":1,\"631\":1,\"634\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkgo_invoice_app\"] = self[\"webpackChunkgo_invoice_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(6075); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["CoursesTypes","TypesBase","constructor","super","_defineProperty","GET_ACCESSABLE_CLUBS","GET_ACCESSABLE_COURSES_BY_ID","SET_ACCESSABLE_CLUBS_AND_COURSES","FETCH_ACCESSABLE_CLUBS_AND_COURSES","NamespacedCoursesTypes","this","toNamespaced","types","_types","ReportsTypes","GET_VALIDATION","SET_START_TIME","SET_END_TIME","SET_REPORTS","SET_FIELD","CLEAN_UP","INITIALIZE","GET_REPORTS","NamespacedReportsTypes","TeeTimeBookingTypes","GET_CREATE_SLOT_BOOKINGS_AS_TABLE_DATA","GET_SLOT_BOOKINGS_AS_TABLE_DATA","GET_AMOUNT_AVAILABLE_SLOTS","HAS_NO_SLOTS","IS_LAST_IDENTIFIED_SLOTBOOKING","GET_NAME_BY_SLOTBOOKING","CURRENT_HCP","GET_BOOKED_ARTICLES","GET_EDIT_ARTICLES_BY_ID","GET_ARTICLES_VALIDATION","GET_ERRORS","GET_WARNINGS","GET_GLOBAL_ERROR","GET_GLOBAL_WARNING","HAS_CHANGES","HASH_CHANGED_FREQUENT_PLAYERS","HASH_CHANGED_PLAYER_AGE","SET_NEW_ITEM_BOOKING_MESSAGES_AFTER_REMOVE","SET_TEE_TIME_BOOKING","SET_SELECTED_BOOKING","BOOKING_ADD_SLOT_BOOKING","NEW_BOOKING_REMOVE_SLOT_BOOKING","BOOKING_SET_SLOT_BOOKING_TO_REMOVE","BOOKING_REMOVE_SLOT_BOOKING","SET_SLOT_BOOKING_TO_EDIT","SET_SLOT_BOOKING_EDIT_PLAYER_FIELD","SET_SLOT_BOOKING_EDIT_FIELD","UPDATE_EDITED_SLOT_BOOKING","SET_EDIT_SLOTBOOKING_VALIDATION","CLEAR_EDIT_SLOTBOOKING_VALIDATION","SET_SLOTBOOKING_EDIT_TO_MODIFIED","SET_HASH_FREQUENT_PLAYERS","SET_HASH_PLAYER_AGE","SET_PLAYER_TYPE","SET_FREQUENT_PLAYERS","UPDATE_FREQUENT_PLAYERS","SET_VALIDATION","SET_FEES","SET_FEE","SET_ARTICLES","SET_ARTICLE","SET_ARTICLE_FIELD","SET_BOOKING_TO_REMOVE","SET_BOOKING_TO_REMOVE_VALIDATION","CLEAR_REMOVE_BOOKING","REMOVE_BOOKING","SET_PLAYER_TO_REMOVE_VALIDATION","REINITIALIZE","FETCH_TEE_TIME_BOOKING","LOCK_TEE_TIME","UNLOCK_TEE_TIME","VALIDATE_TEE_TIME_BOOKING","SUBMIT_TEE_TIME_BOOKING","BOOKING_ADD_IDENTIFIED_PERSON","BOOKING_ADD_SLOT","BOOKING_PRE_REMOVE_SLOT_BOOKING","BOOKING_PRE_REMOVE_CLEAR","OVERRIDE_SLOT_BOOKING_EDIT","GET_FREQUENT_PLAYERS","VALIDATE_PERSON_IDENTIFICATION","FETCH_FEES","FETCH_ARTICLES","VALIDATE_ARTICLE_AVAILABILITY","VALIDATE_REMOVE_BOOKING","VALIDATE_REMOVE_PLAYER","NamespacedTeeTimeBooking","AuthenticationTypes","GET_USER_TOKEN","IS_USER_LOGGED_IN","GET_PROFILE","GET_CLUBS_AND_COURSES","GET_RELATED_CLUBS","GET_LOADER","GET_TOKEN_EXPIRES","SET_IS_LOGGED_IN","SET_AUTH_TOKEN","SET_CLUBS_AND_COURSES","SET_USER","SET_RELATED_CLUBS","SET_LOGGING_OUT","SET_HAS_ERROR","SET_CURRENT_ROUTE","SET_LOGIN_CREDENTIALS","SET_AUTH_TOKEN_SESSION_STORAGE","LOG_OUT","NamespacedAuthenticationTypes","DateTypes","GET_HOLIDAYS","IS_TEE_TIME_HOLIDAY","SET_HOLIDAY_DATES","LOAD_HOLIDAYS","SCHEDULE_DATE_SELECTED","NamespacedDateTypes","UpcomingBookingsTypes","SET_UPCOMING_BOOKINGS","GET_UPCOMING_BOOKINGS","NamespacedUpcomingBookingsTypes","FrequentPlayersTypes","GET_SEARCH_VALIDATION","HASH_CHANGED","SET_HASH","SET_FOUND_PLAYER","ADD_FREQUENT_PLAYER","SET_PLAYER_TO_REMOVE","REMOVE_PLAYER","CLEAN_SEARCH","VALIDATE_FOUND_PLAYER","SAVE_FREQUENT_PLAYERS","NamespacedFrequentPlayersTypes","OverviewTypes","GET_COURSES_PER_CLUBS","GET_SCHEDULE_IDS","GET_SETTINGS_LOCAL_STORAGE","SET_DEFAULT_SCHEDULE","SET_SCHEDULE_FIELD","SET_SELECTED_TEETIME","SET_DATE","SET_CLUB_ID","SET_COURSE_ID","SET_SLOT_BOOKING_TO_REMOVE","SET_EXPAND_SCHEDULE_ACTIVE","SET_SCROLL_POSITION","FETCH_SCHEDULES","FETCH_RELATED_CLUBS","INITIALIZE_SCHEDULES","REFETCH_SCHEDULE","CLEAR_BOOKING_TO_REMOVE","SET_SETTINGS_LOCAL_STORAGE","NamespacedOverviewTypes","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","_createBlock","_component_AppShell","default","_withCtx","_createVNode","_component_ApiView","class","correlationIds","$options","_component_router_view","_","name","components","AppShell","ApiView","computed","mapState","logic","methods","mapActions","initialize","authenticationTypes","actions","mounted","__exports__","render","LoginPage","AppAuthView","OverviewPage","TeeTimeBookingPage","UpcomingBookingsPage","FrequentPlayersPage","ContactInformationPage","ReportsPage","createRouter","history","createWebHashHistory","routes","path","component","children","serverPushStore","state","serverPushEndpoint","process","ON_EVENT","context","payload","teeTimeUpdated","eventHelper","handleTeeTimeUpdated","dispatch","scheduleTypes","FETCH_PATCH_FOR_TEETIME","teeTimeId","scheduleId","courseId","silent","root","courseUpdated","handleCourseUpdated","FETCH_SCHEDULE","date","moment","Date","format","SET_LOADER","isActive","apiTypes","correlationId","message","origin","holidays","mutations","holidaysApi","HolidaysApi","getHolidays","then","response","holidayList","forEach","holiday","push","commit","getters","undefined","teeTime","isHolidayDate","namespaced","namespace","globalEventTypes","internalGlobalEventTypes","SCHEDULE_LOADED","serverPushTypes","REGISTER_SCHEDULE_HOOKS","countries","defaultCountry","priotizeCountires","unshift","value","countriesToPriotize","c","index","findIndex","country","splice","SET_COUNTRIES","find","countriesApi","CountriesApi","LOAD_COUNTRIES","getCountries","countriesList","GET_COUNTRIES","INITIALIZE_APPLICATION","INITIALIZE_SERVER_PUSH","dateTypes","countriesTypes","bookingTypes","CLEAR_ALL_OWN_LOCKS","SET_FILTER","filter","rootState","clubId","authentication","user","profile","coursesLoader","api","loaders","clubsAndCoursesLoader","getClubsAndCourses","courseLoader","initializeServerPush","startTypes","clubOptions","SET_CLUB_OPTIONS","assign","options","SET_CLUBS","clubs","RESET_CLUB_OPTIONS","clubsApi","ClubsApi","LOAD_CLUB_OPTIONS","getClubs","searchPhrase","FETCH_CLUBS","async","result","GET_CLUB_OPTIONS","club","GET_CLUBS","label","authToken","formIsSubmitted","relatedClubs","isLoggingOut","hasError","currentRoute","isLoggedIn","token","clubsAndCourses","routeName","AuthApi","ServiceBase","args","postLoginCredentials","fetch","method","mode","cache","headers","body","JSON","stringify","error","authenticationApi","sessionToken","userToken","username","password","accessToken","profilePayload","partner","partnerId","reduce","pv","currentClub","clubName","courses","course","shareBookingStatistics","shareBookingStatisics","courseName","router","replace","sort","a","b","localeCompare","sessionStorage","setItem","expires","removeItem","window","location","reload","getItem","parse","access_token","parsedProfile","tokenExpire","getRelatedClubs","loader","authenticationStore","hasScheduleDateRelation","schedule","relationType","scheduleIdDate","schedules","hasDateRelation","parentScheduleId","fromChild","parentOffset","dayOffset","offsetDate","add","parentScheduleIdDate","schedulesByParent","childSchedules","childScheduleId","childSchedule","childOffsetDate","childScheduleIdDate","values","SET_SELECTED_DATE_FOR_COURSE","defaultCreateSchedule","order","articleSettings","from","to","showDetailedSchedule","actionsDate","actionsSchedule","defaultSchedules","defaultScheduleHelper","length","relatedClub","existingSchedules","createdDefaultSchedules","schedule1","schedule2","settingsFromLS","localStorage","settingsObject","item","scheduleIdTeeTimeId","bookingId","scheduleIdClubId","scheduleIdCourseId","scheduleIdPosition","scheduleSettings","cv","x","expandIsActive","selectedScheduleId","selectedTeeTimeId","bookingToRemove","slotBookingToRemove","schedulePositions","position","hasSubmitted","filters","overviewTypes","teeTimeBooking","teeTimeBookingHistory","selectedBookerName","selectedBookerId","showHistory","slotBookings","teeTimeSlotBookings","bookings","slotBookingsPerBooking","newBookingSlotBookings","slotBookingToEdit","slotBookingToEditValidation","removedSlotBookings","validation","fees","feeSelectionForMultiplePlayers","articles","selectedBooking","bookingToRemoveValidation","bookingToRemoveRemoveArticles","selectedTeeTimeBooker","teeTimeBookerCompanies","bookerInformationToUpdate","typeOfPlayer","frequentPlayers","defaultFrequentPlayers","selectedScheduleDate","hashNumber","number","string","String","hash","i","character","charCodeAt","slotBooking","slotBookingId","players","type","frequentPlayersArray","player","indexToRemove","playerAgeSourceHash","validations","concat","field","status","fee","gameright","category","amount","price","feeType","ordinaryPrice","articleId","isInCurrentSelection","rentalArticleBookings","indexOf","article","articleName","startTime","endTime","note","articleField","messages","newItemBookingMessages","bookingIndex","playerToRemoveValidation","slotBookingIndex","mutationsCreate","mutationsEdit","mutationsFees","mutationsArticles","mutationsBookingRemove","mutationsSlotbookingRemove","stateToHash","hashHelper","hashObject","frequentPlayersSourceHash","hashNumberHelper","age","sb","originalGameRight","bookingNumber","lilumStart","key","lilum_startTransaction","lilumEnd","lilum_stopTransaction","TeeTimeBookingApi","getTeeTimeBooking","validate","updateTeeTimeBooking","lilumKey","validatePersonIdentification","personId","getTeeTimeBookingHistory","FrequentPlayersApi","getFrequentPlayers","saveFrequentPlayers","getPayload","processSlotBooking","processedSlotBooking","introductionCard","paymentInformation","slotBookingIds","sbId","teeTimeBookingApi","frequentPlayersApi","teeTimeApi","TeeTimeApi","teeTimeIdCourseId","createTeeTimeLock","deleteTeeTimeLock","payloadHelper","teeTimeIdcCloseAfterSave","closeAfterSave","back","msg","city","email","firstname","foreignId","golfId","hcp","isFemale","isUnknown","lastname","membershipType","phoneNumber","createPayloadFromPlayer","gender","phone","person","slotbookingPayloadHelper","createPayloadFromPerson","getTime","frequentPlayersHelper","shouldValidateAfterEdit","savedSlotBooking","newSlotBooking","originalSlotBooking","shouldValidate","slotBookingValidationHelper","overridenSlotBooking","overridePayloadFromPerson","identified","feeId","FeesApi","getFees","params","endpoint","join","validateCompanyGameRight","numberOfPlayers","feesApi","RentalItemsApi","getRentalItems","validateAvailability","encodeURIComponent","start","end","rentalBookingId","rentalItemsApi","bookingApi","BookingApi","validateRemoveBooking","data","slotBookingApi","SlotBookingApi","isNewSLot","startsWith","validateRemovePlayer","actionsApi","actionsCreate","actionsEdit","actionsFees","actionsArticles","actionsBookingRemove","actionsSlotbookingRemove","hcpStringToNumber","hcpString","Number","hcpNumberToString","hcpNumber","toFixed","getAllSlotBookingIds","slotBookingsToName","sbs","slotBookingsToTableData","projection","fullName","totalAmount","toString","remainingAmountToPay","lastIdentifiedSlotBooking","numberOfUnidentfied","numberOfIdentified","lastSlotBooking","hasArticle","isArticleAvailable","availableArticle","bookedBy","articleStart","articleEnd","availableArticleStart","availableArticleEnd","isBetween","bookerInformation","isUpdated","newHash","reference","allSlotBookingIds","warnings","w","errors","currentSlotBookings","createdSlotBookings","blockedSlots","total","slice","reverse","createdSlotBookingsPartial","sbpb","slotBookingsPerBookingPartial","isBefore","isBooked","entries","processedSlotBookings","isExternalBooking","isExternal","teeTimeBookingTypes","UpcomingBookingsApi","getUpcomingBookings","upcomingBookingsApi","upcomingBookings","upcomingBookingsStore","validateFrequentPlayer","fieldValue","sourceHash","foundPlayerInformation","duplicateMessage","isDuplicate","frequentPlayer","foundPlayerValidation","validationError","Set","playerToRemove","isSearchModalShowing","isSubmitted","frequentPlayersStore","ContactInformationApi","getContactInformation","contactInformationApi","GET_CONTACT_INFORMATION","information","SET_CONTACT_INFORMATION","SET_SELECTED_CLUB","acc","firstClubId","selectedClubId","selectedClub","contactInformationStore","ReportsApi","getReports","reportsApi","timePayload","time","timeDifference","daysDifference","reports","isSearching","reportsStore","accessableClubsAndCourses","Map","has","set","coursesTypes","apiStore","baseUrl","store","createStore","modules","searchTypes","searchStore","scheduleStore","countriesStore","startStore","dateStore","clubsTypes","clubsStore","globalevents","overviewStore","teeTimeBookingStore","slotBookingTypes","slotBookingStore","bookingStore","upcomingBookingsTypes","frequentPlayersTypes","contactInformationTypes","reportsTypes","courseStore","localDirectives","app","directive","beforeMount","el","binding","vnode","clickOutsideEvent","event","target","contains","expression","document","addEventListener","unmounted","removeEventListener","createApp","App","config","errorHandler","err","use","aceDirectives","mount","globalProperties","$moment","ContactInformationTypes","NamespacedContactInformationTypes","defaultCreatePayload","homeClub","isBooker","prebookingFee","isMember","hasMembership","hasArrived","isCompanyBooking","ClubsTypes","BookingTypes","SET_VALIDATIONS","SET_REMOVE_BOOKING_ARTICLES","CLEAR_LOCK","CLEAR_REMOVE_BOOKING_VALIDATION","NamespacedBookingTypes","BookingEngine","_commitValidations","clearLock","UPDATE_LOCK_STATUS_FOR_TEE_TIME","lockStatus","clearAllLocks","deleteAllOwnLocks","removeBooking","removeItemBookings","overview","bookingEngine","bookingByTeeTimeId","addPlayerOptions","StartTypes","NamespacedStartTypes","SlotbookingTypes","SET_MOVE_SLOTBOOKINGS","SET_REMOVE_SLOTBOOKING_ARTICLES","CLEAR_REMOVE_PLAYER_VALIDATION","NamespacedSlotbookingTypes","SlotBookingEngine","removePlayer","slotBookingEngine","actionsCalls","moveSlotBookings","personDetailsActive","rentalItemActive","slotBookingByTeeTime","isChanged","slotBookingHash","newSlotBookingHash","CountriesTypes","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","call","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","r","n","getter","__esModule","d","definition","defineProperty","enumerable","get","f","chunkId","Promise","all","promises","u","miniCssF","g","globalThis","Function","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","url","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","head","appendChild","Symbol","toStringTag","nmd","paths","p","createStylesheet","fullhref","oldTag","reject","linkTag","rel","nonce","onLinkComplete","errorType","realHref","href","request","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}