{"version":3,"file":"js/chunk-common.js","mappings":"iGAAA,IAAIA,EAAM,CACT,yBAA0B,KAC1B,eAAgB,KAChB,wBAAyB,KACzB,iBAAkB,KAClB,uBAAwB,KACxB,YAAa,KACb,eAAgB,KAChB,kBAAmB,KACnB,uBAAwB,KACxB,kBAAmB,KACnB,kBAAmB,KACnB,mBAAoB,KACpB,gBAAiB,IACjB,cAAe,KACf,aAAc,IACd,iBAAkB,KAClB,uBAAwB,KACxB,sBAAuB,KACvB,mBAAoB,KACpB,sBAAuB,KACvB,cAAe,KACf,oBAAqB,KACrB,cAAe,KACf,kBAAmB,KACnB,eAAgB,KAChB,aAAc,KACd,gBAAiB,KACjB,mBAAoB,KACpB,qBAAsB,KACtB,YAAa,KACb,kBAAmB,KACnB,gBAAiB,KACjB,uBAAwB,KACxB,4BAA6B,KAC7B,gBAAiB,KACjB,cAAe,KACf,eAAgB,KAChB,mBAAoB,KACpB,kBAAmB,IACnB,aAAc,KACd,sBAAuB,KACvB,aAAc,KACd,aAAc,KACd,gBAAiB,KACjB,qBAAsB,IACtB,kBAAmB,KACnB,eAAgB,KAChB,kBAAmB,KACnB,mBAAoB,KACpB,aAAc,IACd,2BAA4B,KAC5B,kBAAmB,KACnB,qBAAsB,KACtB,8BAA+B,KAC/B,yBAA0B,KAC1B,mBAAoB,KACpB,qBAAsB,KACtB,wBAAyB,KACzB,qBAAsB,KACtB,oBAAqB,KACrB,yBAA0B,KAC1B,aAAc,KACd,cAAe,KACf,kBAAmB,KACnB,mBAAoB,KACpB,gBAAiB,KACjB,kBAAmB,KACnB,uBAAwB,KACxB,gBAAiB,KACjB,oBAAqB,GACrB,eAAgB,KAChB,4BAA6B,KAC7B,kBAAmB,KACnB,gBAAiB,KACjB,eAAgB,KAChB,qBAAsB,KACtB,oBAAqB,KACrB,gBAAiB,KACjB,kBAAmB,KACnB,gBAAiB,KACjB,aAAc,KACd,kBAAmB,KACnB,qBAAsB,KACtB,wBAAyB,KACzB,sBAAuB,KACvB,qBA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,gCAC5B,iBAAkB5L,EAAK4L,GAAG,gCAC1B,aAAc5L,EAAK4L,GAAG,SACtB,WAAY5L,EAAK6V,QACjB,kBAAkB,EAClB,gBAAgB5Q,EAAAA,EAAAA,IAAOuB,GACvBiwB,uBAAwBx2B,EAAO,KAAOA,EAAO,GAAK,CAChD3M,EACAC,EACA4iC,IACGD,EACH5iC,EACAC,EACA4iC,KACD,KAAM,EAAG,CAAC,cAAe,mBAAoB,iBAAkB,mBAAoB,iBAAkB,aAAc,WAAY,mBAGtI,I,UClEA,MAAM93B,EAA2B,eAAgB,EAAQ,CAAC,CAAC,YAAY,qBAAoB,KAE3F,MAAe,a","sources":["webpack://overlays/../Icons/ sync ^\\.\\/.*\\.svg$","webpack://overlays/../auth/requests/index.ts","webpack://overlays/../components/src/Molecules/ServiceStatus/index.ts","webpack://overlays/../components/src/config.ts","webpack://overlays/../components/src/dictionary/defaultValues.ts","webpack://overlays/../components/src/dictionary/dictionary.ts","webpack://overlays/../components/src/dictionary/fields.ts","webpack://overlays/../components/src/envVariables.ts","webpack://overlays/../components/src/helpers/dateTimeUtilities.ts","webpack://overlays/../components/src/helpers/getMapBounds.ts","webpack://overlays/../components/src/maps/mapPolyline.ts","webpack://overlays/../components/src/maps/mapPort.ts","webpack://overlays/../components/src/maps/mapPortToLocation.ts","webpack://overlays/../components/src/maps/mapPortToMapPort.ts","webpack://overlays/../components/src/maps/mapRouteToRouteServed.ts","webpack://overlays/../components/src/maps/mapRoutesToMapRoutes.ts","webpack://overlays/../components/src/maps/parseRouteStatusByStatusCategory.ts","webpack://overlays/../components/src/maps/sortPorts.ts","webpack://overlays/../components/src/services/ApolloClient.ts","webpack://overlays/../components/src/stores/queries/location.ts","webpack://overlays/../components/src/stores/useLocationStore.ts","webpack://overlays/../components/src/stores/queries/port.ts","webpack://overlays/../components/src/stores/usePortStore.ts","webpack://overlays/../components/src/stores/queries/routes.ts","webpack://overlays/../components/src/maps/mapRouteStatusCategoryToColour.ts","webpack://overlays/../components/src/maps/mapRoutesWithStatusToRoute.ts","webpack://overlays/../components/src/maps/mapRoutesWithStatusToLocation.ts","webpack://overlays/../components/src/maps/mapRouteByPortsToRoutes.ts","webpack://overlays/../components/src/maps/mapLocationToDestination.ts","webpack://overlays/../components/src/stores/useRoutesStore.ts","webpack://overlays/../components/src/stores/queries/timetables.ts","webpack://overlays/../components/src/types/SailingStatusType.ts","webpack://overlays/../components/src/maps/mapSailingStatusToTimeTableStatusType.ts","webpack://overlays/../components/src/maps/mapSailings.ts","webpack://overlays/../components/src/stores/useTimetableStore.ts","webpack://overlays/../components/src/types/ServiceStatusType.ts","webpack://overlays/../components/src/types/api/index.ts","webpack://overlays/../constants/info-card-color.ts","webpack://overlays/../auth/util/maxBy.ts","webpack://overlays/../auth/util/token.ts","webpack://overlays/../auth/create.ts","webpack://overlays/./src/auth/authConfig.ts","webpack://overlays/./src/envVariables.ts","webpack://overlays/./src/helpers/closeOverlayPanel.ts","webpack://overlays/./src/helpers/shareState.ts","webpack://overlays/./src/i18n.ts","webpack://overlays/./src/views/DummyView.vue","webpack://overlays/./src/views/DummyView.vue?7f55","webpack://overlays/./src/router/index.ts","webpack://overlays/../Icons/OfflineIndicator.svg","webpack://overlays/../Icons/Recent.svg","webpack://overlays/../Icons/StatusDisrupted.svg","webpack://overlays/../Icons/TestIcon.svg","webpack://overlays/../Icons/accordionArrow.svg","webpack://overlays/../Icons/add.svg","webpack://overlays/../Icons/anchor.svg","webpack://overlays/../Icons/anchorPin.svg","webpack://overlays/../Icons/anchorPinHover.svg","webpack://overlays/../Icons/anchorRed.svg","webpack://overlays/../Icons/arrowLeft.svg","webpack://overlays/../Icons/arrowRight.svg","webpack://overlays/../Icons/arrowUp.svg","webpack://overlays/../Icons/audio.svg","webpack://overlays/../Icons/boat.svg","webpack://overlays/../Icons/calendar.svg","webpack://overlays/../Icons/calendarFilled.svg","webpack://overlays/../Icons/calendarMonth.svg","webpack://overlays/../Icons/calmacLogo.svg","webpack://overlays/../Icons/chevron-right.svg","webpack://overlays/../Icons/clock.svg","webpack://overlays/../Icons/close-white.svg","webpack://overlays/../Icons/close.svg","webpack://overlays/../Icons/closeBold.svg","webpack://overlays/../Icons/delete.svg","webpack://overlays/../Icons/edit.svg","webpack://overlays/../Icons/editRed.svg","webpack://overlays/../Icons/expandIcon.svg","webpack://overlays/../Icons/externalLink.svg","webpack://overlays/../Icons/eye.svg","webpack://overlays/../Icons/eyeClosed.svg","webpack://overlays/../Icons/eyeOpen.svg","webpack://overlays/../Icons/favouriteRoute.svg","webpack://overlays/../Icons/favouriteRouteBlack.svg","webpack://overlays/../Icons/ferries.svg","webpack://overlays/../Icons/ferry.svg","webpack://overlays/../Icons/filter.svg","webpack://overlays/../Icons/followLink.svg","webpack://overlays/../Icons/icon-drag.svg","webpack://overlays/../Icons/info.svg","webpack://overlays/../Icons/lineArrowDown.svg","webpack://overlays/../Icons/link.svg","webpack://overlays/../Icons/mail.svg","webpack://overlays/../Icons/mapIcon.svg","webpack://overlays/../Icons/mapIconBlack.svg","webpack://overlays/../Icons/mapMarker.svg","webpack://overlays/../Icons/mapPin.svg","webpack://overlays/../Icons/mapPinRed.svg","webpack://overlays/../Icons/mapPinStar.svg","webpack://overlays/../Icons/menu.svg","webpack://overlays/../Icons/messageBannerAlert.svg","webpack://overlays/../Icons/noSailing.svg","webpack://overlays/../Icons/notification.svg","webpack://overlays/../Icons/notificationsDisabled.svg","webpack://overlays/../Icons/notificationsOff.svg","webpack://overlays/../Icons/offlineBin.svg","webpack://overlays/../Icons/offlineCheck.svg","webpack://overlays/../Icons/offlineDownload.svg","webpack://overlays/../Icons/offlineError.svg","webpack://overlays/../Icons/offlineLoad.svg","webpack://overlays/../Icons/offlineTimetable.svg","webpack://overlays/../Icons/plus.svg","webpack://overlays/../Icons/print.svg","webpack://overlays/../Icons/quoteopen.svg","webpack://overlays/../Icons/redChevron.svg","webpack://overlays/../Icons/redLink.svg","webpack://overlays/../Icons/redMapPin.svg","webpack://overlays/../Icons/redMapPinHover.svg","webpack://overlays/../Icons/redTick.svg","webpack://overlays/../Icons/removeRoute.svg","webpack://overlays/../Icons/routes.svg","webpack://overlays/../Icons/routesDropdownArrow.svg","webpack://overlays/../Icons/routesRed.svg","webpack://overlays/../Icons/sailing.svg","webpack://overlays/../Icons/search.svg","webpack://overlays/../Icons/searchMapPin.svg","webpack://overlays/../Icons/selectArrow.svg","webpack://overlays/../Icons/signOut.svg","webpack://overlays/../Icons/smsDelete.svg","webpack://overlays/../Icons/smsEdit.svg","webpack://overlays/../Icons/star.svg","webpack://overlays/../Icons/starBlack.svg","webpack://overlays/../Icons/statusAtRisk.svg","webpack://overlays/../Icons/statusCancelled.svg","webpack://overlays/../Icons/statusDelayed.svg","webpack://overlays/../Icons/statusNormal.svg","webpack://overlays/../Icons/summerTimetable.svg","webpack://overlays/../Icons/support.svg","webpack://overlays/../Icons/switch.svg","webpack://overlays/../Icons/tick.svg","webpack://overlays/../Icons/tickBlack.svg","webpack://overlays/../Icons/ticket.svg","webpack://overlays/../Icons/tidalTimetable.svg","webpack://overlays/../Icons/train.svg","webpack://overlays/../Icons/warning.svg","webpack://overlays/../Icons/winterTimetable.svg","webpack://overlays/../Images/downloadAppImage.png","webpack://overlays/./src/assets/interactiveMap.jpg","webpack://overlays/./src/assets/interactiveMapRetina.jpg","webpack://overlays/../components/src/Atoms/Button/Button.vue?d97d","webpack://overlays/../components/src/Atoms/Button/Button.vue","webpack://overlays/../components/src/Atoms/Card/Card.vue","webpack://overlays/../components/src/Atoms/Card/Card.vue?646b","webpack://overlays/../components/src/Atoms/Icon/Icon.vue?b227","webpack://overlays/../components/src/Atoms/Icon/Icon.vue","webpack://overlays/../components/src/helpers/mapping.ts","webpack://overlays/../components/src/Atoms/Map/Map.vue?5a14","webpack://overlays/../components/src/Atoms/Map/Map.vue","webpack://overlays/../components/src/Molecules/DatePickerCalendar/DatePickerCalendar.vue?6192","webpack://overlays/../components/src/Molecules/DatePickerCalendar/DatePickerCalendar.vue","webpack://overlays/../components/src/types/IconPositionType.ts","webpack://overlays/../components/src/Molecules/IconText/IconText.vue?2a31","webpack://overlays/../components/src/Molecules/IconText/IconText.vue","webpack://overlays/../components/src/Molecules/InfoCard/InfoCard.vue?777e","webpack://overlays/../components/src/Molecules/InfoCard/InfoCard.vue","webpack://overlays/../components/src/Molecules/PortList/PortList.vue?91a5","webpack://overlays/../components/src/Molecules/PortList/PortList.vue","webpack://overlays/../components/src/Molecules/RecentAndSuggested/RecentSearches.vue?e4b8","webpack://overlays/../components/src/Molecules/RecentAndSuggested/RecentSearches.vue","webpack://overlays/../components/src/Molecules/ServiceStatus/ServiceStatus.vue?a28a","webpack://overlays/../components/src/Molecules/ServiceStatus/ServiceStatus.vue","webpack://overlays/../components/src/Molecules/RouteDetail/RouteDetail.vue?2dbc","webpack://overlays/../components/src/Molecules/RouteDetail/RouteDetail.vue","webpack://overlays/../components/src/Molecules/RouteItem/RouteItem.vue?e57e","webpack://overlays/../components/src/Molecules/RouteItem/RouteItem.vue","webpack://overlays/../components/src/Molecules/Accordian/Accordian.vue?c58a","webpack://overlays/../components/src/Molecules/Accordian/Accordian.vue","webpack://overlays/../components/src/Molecules/OfflineBanner/OfflineBanner.vue?bd4d","webpack://overlays/../components/src/Molecules/OfflineBanner/OfflineBanner.vue","webpack://overlays/../components/src/Molecules/RouteSearchMap/RouteSearchMap.vue?a0bb","webpack://overlays/../components/src/Molecules/RouteSearchMap/RouteSearchMap.vue","webpack://overlays/../components/src/Organisms/RoutesServed/RoutesServed.vue?f0fb","webpack://overlays/../components/src/Organisms/RoutesServed/RoutesServed.vue","webpack://overlays/../components/src/types/RenderTypes.ts","webpack://overlays/../components/src/maps/mapRecentSearches.ts","webpack://overlays/../components/src/maps/mapPortPairToRecentOrSuggestedSearchEntry.ts","webpack://overlays/../components/src/Molecules/TimetableSearchInput/TimetableSearchInput.vue?566b","webpack://overlays/../components/src/Molecules/TimetableSearchInput/TimetableSearchInput.vue","webpack://overlays/../components/src/Molecules/InteractiveMapLink/InteractiveMapLink.vue?df1b","webpack://overlays/../components/src/Molecules/InteractiveMapLink/InteractiveMapLink.vue","webpack://overlays/../components/src/Organisms/TimetableSearch/TimetableSearch.vue?9a5a","webpack://overlays/../components/src/Organisms/TimetableSearch/TimetableSearch.vue","webpack://overlays/../components/src/Molecules/FilterMapButton/FilterWindow.vue?88ba","webpack://overlays/../components/src/Molecules/FilterMapButton/FilterWindow.vue","webpack://overlays/../components/src/Molecules/FilterMapButton/FilterMapButton.vue?1adc","webpack://overlays/../components/src/Molecules/FilterMapButton/FilterMapButton.vue","webpack://overlays/../components/src/Atoms/PanelViewModal/PanelViewModal.vue?d683","webpack://overlays/../components/src/Atoms/PanelViewModal/PanelViewModal.vue","webpack://overlays/../components/src/Molecules/MoreInfoPanel/MoreInfoPanel.vue?6610","webpack://overlays/../components/src/Molecules/MoreInfoPanel/MoreInfoPanel.vue","webpack://overlays/../components/src/Molecules/InteractiveMap/InteractiveMap.vue?e493","webpack://overlays/../components/src/Molecules/InteractiveMap/InteractiveMap.vue","webpack://overlays/./src/views/InteractiveMapApp.vue?3984","webpack://overlays/./src/views/InteractiveMapApp.vue","webpack://overlays/./src/views/InteractiveMapLanding.vue?506a","webpack://overlays/./src/views/InteractiveMapLanding.vue","webpack://overlays/./src/views/MapApp.vue?8b50","webpack://overlays/./src/views/MapApp.vue","webpack://overlays/../components/src/stores/queries/vessel.ts","webpack://overlays/../components/src/stores/useVesselStore.ts","webpack://overlays/./src/views/RoutesServedIndex.vue?8844","webpack://overlays/./src/views/RoutesServedIndex.vue","webpack://overlays/../components/src/Molecules/DownloadApp/DownloadApp.vue?dc2e","webpack://overlays/../components/src/Molecules/DownloadApp/DownloadApp.vue","webpack://overlays/../components/src/maps/mapRoutes.ts","webpack://overlays/../components/src/Atoms/Searchbox/Searchbox.vue?bfbf","webpack://overlays/../components/src/Atoms/Searchbox/Searchbox.vue","webpack://overlays/../components/src/Molecules/ServiceStatus/ServiceStatusSearchbox.vue?f140","webpack://overlays/../components/src/Molecules/ServiceStatus/ServiceStatusSearchbox.vue","webpack://overlays/../components/src/stores/queries/serviceStatus.ts","webpack://overlays/../components/src/stores/useServiceStatusStore.ts","webpack://overlays/../components/src/maps/mapRouteToRecentOrSuggestedSearchEntry.ts","webpack://overlays/../components/src/Organisms/ServiceStatusSearch/ServiceStatusSearch.vue?641f","webpack://overlays/../components/src/Organisms/ServiceStatusSearch/ServiceStatusSearch.vue","webpack://overlays/../components/src/Molecules/StatusKeyButton/StatusKeyButton.vue?fd2c","webpack://overlays/../components/src/Molecules/StatusKeyButton/StatusKeyButton.vue","webpack://overlays/../components/src/Molecules/RouteItemsList/RouteItemsList.vue?ab60","webpack://overlays/../components/src/Molecules/RouteItemsList/RouteItemsList.vue","webpack://overlays/../components/src/helpers/sortRoutesByOriginPort.ts","webpack://overlays/../components/src/Organisms/ServiceStatusHome/ServiceStatusHome.vue?6cb4","webpack://overlays/../components/src/Organisms/ServiceStatusHome/ServiceStatusHome.vue","webpack://overlays/../components/src/Molecules/ServiceStatusKeyBlock/ServiceStatusKeyBlock.vue?0193","webpack://overlays/../components/src/Molecules/ServiceStatusKeyBlock/ServiceStatusKeyBlock.vue","webpack://overlays/./src/views/ModalOverlay.vue?e589","webpack://overlays/./src/views/ModalOverlay.vue","webpack://overlays/./src/views/ServiceStatusIndex.vue?9e0a","webpack://overlays/./src/views/ServiceStatusIndex.vue","webpack://overlays/./src/views/ServiceStatus.vue?c64b","webpack://overlays/./src/views/ServiceStatus.vue","webpack://overlays/../auth/composables/useMsal.ts","webpack://overlays/../auth/composables/useMsalToken.ts","webpack://overlays/../auth/composables/useIsAuthenticated.ts","webpack://overlays/../components/src/stores/queries/routeSubscriptions.ts","webpack://overlays/../components/src/maps/mapRouteInformationToRouteDetails.ts","webpack://overlays/../components/src/helpers/sms/determineAvailableRoutes.ts","webpack://overlays/../components/src/helpers/sms/sortByTextCode.ts","webpack://overlays/../components/src/helpers/sms/filterExpiredSubscriptions.ts","webpack://overlays/../components/src/maps/mapRouteSubscriptionToSaveModel.ts","webpack://overlays/../components/src/maps/mapRouteSubscriptionsToSavedView.ts","webpack://overlays/../components/src/types/api/channel.ts","webpack://overlays/../components/src/maps/mapRouteSubscriptionUpdateToApi.ts","webpack://overlays/../components/src/stores/useRouteSubscriptionStore.ts","webpack://overlays/../components/src/Atoms/TimezoneWarning/TimezoneWarning.vue?16af","webpack://overlays/../components/src/Atoms/TimezoneWarning/TimezoneWarning.vue","webpack://overlays/../components/src/Atoms/SignOutButton/SignOutButton.vue?3f95","webpack://overlays/../components/src/Atoms/SignOutButton/SignOutButton.vue","webpack://overlays/../components/src/dictionary/useDictionary.ts","webpack://overlays/../components/src/Atoms/Spinner/Spinner.vue","webpack://overlays/../components/src/Atoms/Spinner/Spinner.vue?7302","webpack://overlays/../components/src/helpers/sms/determineSubscriptionDates.ts","webpack://overlays/../components/src/helpers/sms/filterRoutesBySearchTerm.ts","webpack://overlays/../components/src/helpers/sms/formatRouteFromPorts.ts","webpack://overlays/../components/src/maps/mapRouteDetailToRecentSearch.ts","webpack://overlays/../components/src/Molecules/RouteSearch/RouteSearch.vue?8592","webpack://overlays/../components/src/Molecules/RouteSearch/RouteSearch.vue","webpack://overlays/../components/src/Molecules/RouteSubscription/RouteSubscription.vue?2fa8","webpack://overlays/../components/src/Molecules/RouteSubscription/RouteSubscription.vue","webpack://overlays/../components/src/helpers/markdownToHtml.ts","webpack://overlays/../components/src/helpers/sms/validateSubscription.ts","webpack://overlays/../components/src/Molecules/AddRouteSubscription/AddRouteSubscription.vue?1574","webpack://overlays/../components/src/Molecules/AddRouteSubscription/AddRouteSubscription.vue","webpack://overlays/../components/src/Molecules/NoRoutesCard/NoRoutesCard.vue?8f8f","webpack://overlays/../components/src/Molecules/NoRoutesCard/NoRoutesCard.vue","webpack://overlays/../components/src/Molecules/ConfirmModal/ConfirmModal.vue?0a2e","webpack://overlays/../components/src/Molecules/ConfirmModal/ConfirmModal.vue","webpack://overlays/../components/src/Molecules/DeleteRouteSubscriptionModal/DeleteRouteSubscriptionModal.vue?98cd","webpack://overlays/../components/src/Molecules/DeleteRouteSubscriptionModal/DeleteRouteSubscriptionModal.vue","webpack://overlays/../components/src/Molecules/RouteSubscriptionCard/RouteSubscriptionCard.vue?4138","webpack://overlays/../components/src/Molecules/RouteSubscriptionCard/RouteSubscriptionCard.vue","webpack://overlays/../components/src/Molecules/AddRouteSubscriptionCard/AddRouteSubscriptionCard.vue?56af","webpack://overlays/../components/src/Molecules/AddRouteSubscriptionCard/AddRouteSubscriptionCard.vue","webpack://overlays/./src/helpers/skeletonRouteSubscriptions.ts","webpack://overlays/./src/views/SmsApp.vue?146a","webpack://overlays/./src/views/SmsApp.vue","webpack://overlays/./src/views/TimetableSearch.vue?91af","webpack://overlays/./src/views/TimetableSearch.vue","webpack://overlays/./src/views/TimetableSearchBanner.vue?7a1a","webpack://overlays/./src/views/TimetableSearchBanner.vue"],"sourcesContent":["var map = {\n\t\"./OfflineIndicator.svg\": 8169,\n\t\"./Recent.svg\": 4687,\n\t\"./StatusDisrupted.svg\": 9712,\n\t\"./TestIcon.svg\": 4946,\n\t\"./accordionArrow.svg\": 9715,\n\t\"./add.svg\": 1716,\n\t\"./anchor.svg\": 8244,\n\t\"./anchorPin.svg\": 1846,\n\t\"./anchorPinHover.svg\": 7268,\n\t\"./anchorRed.svg\": 4672,\n\t\"./arrowLeft.svg\": 7411,\n\t\"./arrowRight.svg\": 2501,\n\t\"./arrowUp.svg\": 746,\n\t\"./audio.svg\": 8455,\n\t\"./boat.svg\": 786,\n\t\"./calendar.svg\": 5832,\n\t\"./calendarFilled.svg\": 2163,\n\t\"./calendarMonth.svg\": 6646,\n\t\"./calmacLogo.svg\": 5216,\n\t\"./chevron-right.svg\": 5092,\n\t\"./clock.svg\": 5908,\n\t\"./close-white.svg\": 7253,\n\t\"./close.svg\": 2385,\n\t\"./closeBold.svg\": 8635,\n\t\"./delete.svg\": 1901,\n\t\"./edit.svg\": 3300,\n\t\"./editRed.svg\": 4643,\n\t\"./expandIcon.svg\": 6793,\n\t\"./externalLink.svg\": 8160,\n\t\"./eye.svg\": 6755,\n\t\"./eyeClosed.svg\": 7300,\n\t\"./eyeOpen.svg\": 9075,\n\t\"./favouriteRoute.svg\": 4427,\n\t\"./favouriteRouteBlack.svg\": 8993,\n\t\"./ferries.svg\": 5629,\n\t\"./ferry.svg\": 7522,\n\t\"./filter.svg\": 2538,\n\t\"./followLink.svg\": 8504,\n\t\"./icon-drag.svg\": 973,\n\t\"./info.svg\": 7832,\n\t\"./lineArrowDown.svg\": 9588,\n\t\"./link.svg\": 5499,\n\t\"./mail.svg\": 9569,\n\t\"./mapIcon.svg\": 8148,\n\t\"./mapIconBlack.svg\": 930,\n\t\"./mapMarker.svg\": 2350,\n\t\"./mapPin.svg\": 5370,\n\t\"./mapPinRed.svg\": 8655,\n\t\"./mapPinStar.svg\": 3146,\n\t\"./menu.svg\": 594,\n\t\"./messageBannerAlert.svg\": 5051,\n\t\"./noSailing.svg\": 6591,\n\t\"./notification.svg\": 5934,\n\t\"./notificationsDisabled.svg\": 1412,\n\t\"./notificationsOff.svg\": 8133,\n\t\"./offlineBin.svg\": 1991,\n\t\"./offlineCheck.svg\": 8202,\n\t\"./offlineDownload.svg\": 9337,\n\t\"./offlineError.svg\": 7891,\n\t\"./offlineLoad.svg\": 2835,\n\t\"./offlineTimetable.svg\": 2241,\n\t\"./plus.svg\": 4965,\n\t\"./print.svg\": 8263,\n\t\"./quoteopen.svg\": 1092,\n\t\"./redChevron.svg\": 2625,\n\t\"./redLink.svg\": 3073,\n\t\"./redMapPin.svg\": 9503,\n\t\"./redMapPinHover.svg\": 2546,\n\t\"./redTick.svg\": 4870,\n\t\"./removeRoute.svg\": 74,\n\t\"./routes.svg\": 3780,\n\t\"./routesDropdownArrow.svg\": 6522,\n\t\"./routesRed.svg\": 4473,\n\t\"./sailing.svg\": 2090,\n\t\"./search.svg\": 9199,\n\t\"./searchMapPin.svg\": 6542,\n\t\"./selectArrow.svg\": 5539,\n\t\"./signOut.svg\": 7415,\n\t\"./smsDelete.svg\": 2676,\n\t\"./smsEdit.svg\": 8004,\n\t\"./star.svg\": 2304,\n\t\"./starBlack.svg\": 1170,\n\t\"./statusAtRisk.svg\": 8762,\n\t\"./statusCancelled.svg\": 7197,\n\t\"./statusDelayed.svg\": 6146,\n\t\"./statusNormal.svg\": 7548,\n\t\"./summerTimetable.svg\": 9519,\n\t\"./support.svg\": 4417,\n\t\"./switch.svg\": 1309,\n\t\"./tick.svg\": 5041,\n\t\"./tickBlack.svg\": 9802,\n\t\"./ticket.svg\": 6734,\n\t\"./tidalTimetable.svg\": 1963,\n\t\"./train.svg\": 4707,\n\t\"./warning.svg\": 5045,\n\t\"./winterTimetable.svg\": 9647\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 = 6602;","import { RedirectRequest } from '@azure/msal-browser';\n\n// Add here scopes for id token to be used at MS Identity Platform endpoints.\nexport const buildLoginRequest = (redirectUri: string, scopes: string[]): RedirectRequest => ({\n scopes,\n redirectUri,\n});\n","import ServiceStatus from './ServiceStatus.vue';\nimport ServiceStatusSearchBox from './ServiceStatusSearchbox.vue';\nimport { ServiceStatusType } from '../../types/ServiceStatusType';\n\nconst GetServiceStatus = function (serviceStatus?: ServiceStatusType) {\n switch (serviceStatus) {\n case ServiceStatusType.AtRisk:\n return { name: 'statusAtRisk', text: 'Possible disruptions' };\n case ServiceStatusType.Disruption:\n return { name: 'statusDelayed', text: 'Disruptions' };\n case ServiceStatusType.Cancelled:\n return { name: 'statusCancelled', text: 'Cancelled for the remainder of today' };\n default:\n return { name: 'statusNormal', text: 'Service normal' };\n }\n};\n\nexport {\n ServiceStatus, ServiceStatusType, GetServiceStatus, ServiceStatusSearchBox,\n};\n","const TABLET_VIEWPORT_WIDTH = 768;\nconst SMALL_DESKTOP_VIEWPORT_WIDTH = 1050;\n\nexport { TABLET_VIEWPORT_WIDTH, SMALL_DESKTOP_VIEWPORT_WIDTH };\n","import { DictionaryText } from './types';\n\nexport const defaultValueText: DictionaryText = {\n 'SMS:Web:AddNewRoute': 'Add new route',\n 'SMS:Web:NoRoutes:Title': 'You do not have any routes yet',\n 'SMS:Web:NoRoutes:Intro': 'Stay up to date on latest route information. Start adding new route(s) and get SMS notifications to your phone.',\n 'SMS:Web:HowItWorks:Title': 'How it works',\n 'SMS:Web:HowItWorks:Description': `Choose the route from the list provided and enter the date range of the subscription. Text message for the subscribed routes will be dispatched to you immediately upon update, at any time of day or night.\n\nYour subscription can be for any period between 1 day and 6 months. This can begin up to 6 months in the future. The choice is yours.\n\nOnce you're happy with your route and date choices remember to save/update your changes.`,\n 'SMS:Web:HowItWorks:Alert:Title': 'Please note',\n 'SMS:Web:HowItWorks:Alert:Description': 'Date range is the length of time (days, weeks, months) your subscription will be active.',\n};\n","import { Ref, ref } from 'vue';\nimport { defaultValueText } from './defaultValues';\nimport { dictionaryFieldMap } from './fields';\nimport { DictionaryResponseItem, DictionaryText } from './types';\nimport { dictionaryUrl } from '../envVariables';\n\nexport const dictionary: Ref = ref({\n ...defaultValueText,\n});\n\nconst updateDictionaryFromResponse = (response: DictionaryResponseItem[]) => {\n response.forEach((entry) => {\n if (entry.key && entry.value) {\n dictionary.value[entry.key] = entry.value;\n }\n });\n};\n\nexport const createBody = (keys: string[]) => ({\n keys,\n culture: 'en-GB',\n});\n\nexport const fetchDictionaryValues = async (): Promise => {\n if (!dictionaryUrl) {\n console.log('Error fetching dictionary values. Dictionary url has not been configured.');\n return;\n }\n try {\n const response = await fetch(dictionaryUrl, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(createBody(dictionaryFieldMap)),\n });\n\n if (!response.ok) {\n console.log(`Error fetching dictionary values: ${response.status}-${response.statusText}`);\n return;\n }\n\n const dictionaryItems = await response.json() as DictionaryResponseItem[];\n updateDictionaryFromResponse(dictionaryItems);\n } catch (e) {\n console.log('Error fetching dictionary values: ', e);\n }\n};\n","export const DictionaryField = {\n 'SMS:Web:AddNewRoute': 'Sms:Web:AddNewRoute',\n 'SMS:Web:HowItWorks:Alert:Description': 'Sms:Web:HowItWorks:Alert:Description',\n 'SMS:Web:HowItWorks:Alert:Title': 'Sms:Web:HowItWorks:Alert:Title',\n 'SMS:Web:HowItWorks:Title': 'Sms:Web:HowItWorks:Title',\n 'SMS:Web:HowItWorks:Description': 'Sms:Web:HowItWorks:Description',\n 'SMS:Web:NoRoutes:Intro': 'Sms:Web:NoRoutes:Intro',\n 'SMS:Web:NoRoutes:Title': 'Sms:Web:NoRoutes:Title',\n\n} as const;\n\nexport const dictionaryFieldMap = Object.entries(DictionaryField).reduce((agg, curr) => {\n const value = curr[1];\n agg.push(value);\n return agg;\n}, []);\n","export const timezone = process.env.VUE_APP_TIMEZONE ?? '';\nexport const googleMapApiKey = process.env.VUE_APP_GOOGLE_MAP_API_KEY ?? '';\nexport const refundUrl = process.env.VUE_APP_REFUND_URL ?? '';\nexport const ticketingUrl = process.env.VUE_APP_TICKETING_URL ?? '';\nexport const routeInformationUrl = process.env.VUE_APP_ROUTE_INFO_URL ?? '';\nexport const timetableResultsUrl = process.env.VUE_APP_TIMETABLE_RESULT_URL ?? '';\nexport const timetableBackupUrl = process.env.VUE_APP_TIMETABLE_BACKUP_URL ?? '';\nexport const smsAlertSignupUrl = process.env.VUE_APP_SMS_SIGNUP_URL ?? '';\nexport const mobileAppDownloadUrl = process.env.VUE_APP_MOBILE_APP_DOWNLOAD_URL ?? '';\nexport const umbracoBaseUrl = process.env.VUE_APP_UMBRACO_CONSUMER_BASE || '';\nexport const dictionaryUrl = process.env.VUE_APP_DICTIONARY_URL ?? '';\nexport const stayUpdatedUrl = process.env.VUE_APP_STAY_UPDATED_URL || '';\nexport const assetBaseUrl = process.env.VUE_APP_ASSETS_BASE_URL || '';\n","import {\n parseISO,\n} from 'date-fns';\n\nconst utcDateTime = (date: Date) => new Date(Date.UTC(\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate(),\n date.getUTCHours(),\n date.getUTCMinutes(),\n date.getUTCSeconds(),\n date.getUTCMilliseconds(),\n));\n\nconst utcDate = (date: Date | string) => new Date(Date.UTC(\n typeof date === 'string' ? parseISO(date).getUTCFullYear() : date.getUTCFullYear(),\n typeof date === 'string' ? parseISO(date).getUTCMonth() : date.getUTCMonth(),\n typeof date === 'string' ? parseISO(date).getUTCDate() : date.getUTCDate(),\n));\n\nfunction addDays(date: string, days: number) {\n const result = new Date(date);\n result.setDate(result.getDate() + days);\n return result.toISOString();\n}\n\n// Difference in days between two dates in ISO format YYYY-MM-DD\nconst differenceInCalendarDays = (date1: string, date2: string) => {\n const date1Date = parseISO(date1);\n const date2Date = parseISO(date2);\n return Math.round((date2Date.getTime() - date1Date.getTime()) / (1000 * 3600 * 24));\n};\n\n// return end of day date time from date string\nconst endOfDay = (date: string) => utcDate(addDays(date, 1)).toISOString();\n\nconst previousDay = (date: string) => utcDate(addDays(date, -1)).toISOString();\n\nconst startOfDay = (date: string) => utcDate(date).toISOString();\n\nconst utcNow = (): Date => utcDateTime(new Date());\n\nconst nowOrStartOfDay = (date: string): string => {\n const now = utcNow();\n const dateInput = parseISO(date);\n if (dateInput.getUTCDate() === now.getUTCDate()\n && dateInput.getUTCMonth() === now.getUTCMonth()\n && dateInput.getUTCFullYear() === now.getUTCFullYear()) {\n return date;\n }\n return startOfDay(date);\n};\n\nconst dateIsLessThanCurrentTime = (dateInput: Date, currentDate = new Date()): boolean =>\n dateInput.getTime() < currentDate.getTime();\n\nexport {\n utcDateTime,\n utcDate,\n endOfDay,\n startOfDay,\n differenceInCalendarDays,\n nowOrStartOfDay,\n utcNow,\n previousDay,\n dateIsLessThanCurrentTime,\n addDays,\n};\n","import { MapBounds } from '..';\n\nconst getMapBounds = (lats: Array, lngs: Array) => ({\n north: Math.max(...lats),\n east: Math.max(...lngs),\n south: Math.min(...lats),\n west: Math.min(...lngs),\n} as MapBounds);\n\nexport { getMapBounds };\n","import { LatLng } from '..';\n\nexport const mapPolyline = (item) => ({\n lat: Number(item.lat),\n lng: Number(item.lng),\n}) as LatLng;\n","import { Port } from '..';\nimport { Port as ApiPort } from '../types/api';\n\nexport const mapPort = (port: ApiPort) => ({\n name: port.name,\n portCode: `(${port.portCode})`,\n order: port.order,\n latitude: port.latitude,\n longitude: port.longitude,\n isFreight: port.isFreight || false,\n hideOnMap: port.hideOnMap || false,\n}) as Port;\n","import { Port } from '../types/api';\n\nexport const mapPortToLocation = (port: Port) => ({\n name: port.name,\n options: {\n position: { lat: port.latitude, lng: port.longitude },\n },\n location: port.location?.name,\n portUrl: port.portUrl,\n isFreight: port.isFreight || false,\n hideOnMap: port.hideOnMap || false,\n});\n","import { MapPort } from '../renderTypes';\nimport { Port } from '../types/api';\n\nexport const mapPortToMapPort = (item: Port) => ({\n name: item.name,\n options: {\n position: { lat: item.latitude, lng: item.longitude },\n },\n portCode: item.portCode,\n image: item.portImage,\n isFreight: item.isFreight || false,\n hideOnMap: item.hideOnMap || false,\n} as MapPort);\n","import { formatInTimeZone } from 'date-fns-tz';\nimport { timetableResultsUrl, timezone } from '../envVariables';\nimport { RoutesServedType } from '../types/RenderTypes';\nimport { Route } from '../apiTypes';\nimport { mapPortToLocation } from './mapPortToLocation';\n\nexport const mapRouteToRouteServed = (route: Route) => {\n const today = formatInTimeZone(new Date(), timezone, 'yyyy-MM-dd');\n\n return ({\n routeCode: route.routeCode,\n timetableLink: route.ports.length <= 2\n ? `${timetableResultsUrl}/#/timetable-search/${route.ports[0].name}/${route.ports[1].name}/${today}`\n : undefined,\n keyInformation: route.keyInformation,\n portList: route.ports.map(mapPortToLocation).filter((port) => !port.isFreight && !port.hideOnMap),\n mapPort: route.ports.map(mapPortToLocation).filter((port) => !port.isFreight && !port.hideOnMap),\n vesselList: route.vessels,\n } as RoutesServedType);\n};\n","import {\n Route, RouteMapCoords,\n} from '../types/api';\nimport {\n mapPolyline, mapPort, sortPorts,\n} from '.';\nimport { GoogleMapsRoute } from '..';\n\nexport const mapRoutesToMapRoutes = (item: Route | RouteMapCoords) => (\n {\n name: item.name,\n ports: item.ports?.map(mapPort).sort(sortPorts),\n originPort: {\n name: item.originPort?.name,\n portCode: item.originPort?.portCode,\n isFreight: item.isFreight || false,\n hideOnMap: item.hideOnMap || false,\n },\n destinationPort: {\n name: item.destinationPort?.name,\n portCode: item.destinationPort?.portCode,\n isFreight: item.isFreight || false,\n hideOnMap: item.hideOnMap || false,\n },\n options: {\n path: item?.polyline ? JSON.parse(item.polyline).map(mapPolyline) : [],\n geodesic: true,\n strokeColor: '#000000',\n strokeOpacity: 1,\n strokeWeight: 3,\n },\n code: item.routeCode,\n location: item.location?.name,\n } as GoogleMapsRoute\n);\n","import { RouteStatusCategory } from '../apiTypes';\nimport { ServiceStatusType } from '..';\n\nexport const parseRouteStatusByStatusCategory = (routeStatus: RouteStatusCategory) => {\n switch (routeStatus) {\n case RouteStatusCategory.AllSailingsCancelled.valueOf():\n return ServiceStatusType.Cancelled;\n case RouteStatusCategory.Disruptions.valueOf():\n return ServiceStatusType.Disruption;\n case RouteStatusCategory.BeAware.valueOf():\n return ServiceStatusType.AtRisk;\n default:\n return ServiceStatusType.Normal;\n }\n};\n","export const sortPorts = (a, b) => a.order - b.order;\n","import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client/core';\nimport { setContext } from '@apollo/client/link/context';\n\nlet acquireToken: () => Promise | undefined;\n\nexport const setAcquireToken = (method: () => Promise) => {\n acquireToken = method;\n};\n\n// HTTP connection to the API\nconst httpLink = createHttpLink({\n // You should use an absolute URL here\n uri: process.env.VUE_APP_CALMAC_API_BASE,\n});\n\n// return the headers to the context so httpLink can read them\nconst authLink = setContext(async (_, { headers }) => {\n // get the authentication token from local storage if it exists\n const token = acquireToken && await acquireToken();\n\n if (!token) {\n return headers;\n }\n return {\n headers: {\n ...headers,\n authorization: `Bearer ${token}`,\n },\n };\n});\n\n// Cache implementation\nconst cache = new InMemoryCache();\n\n// Create the apollo client\nconst apolloClient = new ApolloClient({\n link: authLink.concat(httpLink),\n cache,\n});\n\nexport { apolloClient };\n","import gql from 'graphql-tag';\n\nconst getLocationsServedByLocationCodeQuery = gql`\nquery\n($locationCode: String)\n{\n locations (where: {locationCode: {eq: $locationCode}})\n {\n name\n locationUrl\n soundbiteUrl\n description\n activities {\n description\n icon\n }\n routes{\n routeCode\n keyInformation\n polyline\n vessels{\n name\n vesselUrl\n vesselCode\n }\n ports{\n name\n portCode\n portUrl\n longitude\n latitude\n location{\n name\n }\n }\n }\n }\n }\n`;\n\nexport {\n getLocationsServedByLocationCodeQuery,\n};\n","import { provideApolloClient, useQuery } from '@vue/apollo-composable';\nimport { defineStore } from 'pinia';\nimport { ref } from 'vue';\nimport { getLocationsServedByLocationCodeQuery } from './queries/location';\nimport { apolloClient } from '../services/ApolloClient';\nimport { Location } from '../apiTypes';\nimport { mapRoutesToMapRoutes, mapRouteToRouteServed } from '../maps';\nimport { RoutesServedType } from '../types/RenderTypes';\n\nprovideApolloClient(apolloClient);\n\nconst locationsServed = ref();\nconst isLoading = ref(false);\n\nconst processResult = ((queryResult, document) => {\n if (document.value.loc?.source.body === getLocationsServedByLocationCodeQuery.loc?.source.body) {\n locationsServed.value = queryResult.data?.locations[0];\n }\n});\n\nexport const locationStoreDefinition = {\n state: () => ({\n locationsServed,\n isLoading,\n }),\n actions: {\n async requestLocationsServed(locationCode: string) {\n const {\n onResult,\n onError,\n loading,\n document,\n } = useQuery(getLocationsServedByLocationCodeQuery, {\n locationCode,\n });\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestLocationsServed: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n },\n },\n getters: {\n getLocationsServed() {\n return locationsServed.value?.routes\n ? locationsServed.value.routes.map((route) => ({\n ...mapRouteToRouteServed(route),\n routeMap: [mapRoutesToMapRoutes(route)],\n } as RoutesServedType))\n : undefined;\n },\n },\n};\n\nexport const useLocationStore = defineStore('locationStore', locationStoreDefinition);\n","import gql from 'graphql-tag';\n\nconst getPortsServedByPortCodeQuery = gql`\nquery\n($portCode: String)\n{\n ports (where: {portCode: {eq: $portCode}})\n {\n name\n description\n portUrl\n address\n routes{\n routeCode\n keyInformation\n polyline\n vessels{\n name\n vesselUrl\n vesselCode\n }\n ports{\n name\n portCode\n portUrl\n longitude\n latitude\n location{\n name\n }\n isFreight\n hideOnMap\n }\n isFreight\n hideOnMap\n }\n }\n }\n`;\n\nexport {\n getPortsServedByPortCodeQuery,\n};\n","import { provideApolloClient, useQuery } from '@vue/apollo-composable';\nimport { defineStore } from 'pinia';\nimport { ref } from 'vue';\nimport { getPortsServedByPortCodeQuery } from './queries/port';\nimport { apolloClient } from '../services/ApolloClient';\nimport { Port } from '../apiTypes';\nimport { mapRoutesToMapRoutes, mapRouteToRouteServed } from '../maps';\nimport { RoutesServedType } from '../types/RenderTypes';\n\nprovideApolloClient(apolloClient);\n\nconst portsServed = ref();\nconst isLoading = ref(false);\n\nconst processResult = ((queryResult, document) => {\n if (document.value.loc?.source.body === getPortsServedByPortCodeQuery.loc?.source.body) {\n portsServed.value = queryResult.data?.ports[0];\n }\n});\n\nexport const portStoreDefinition = {\n state: () => ({\n portsServed,\n isLoading,\n }),\n actions: {\n async requestPortsServed(portCode: string) {\n const {\n onResult,\n onError,\n loading,\n document,\n } = useQuery(getPortsServedByPortCodeQuery, {\n portCode,\n });\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestPortsServed: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n },\n },\n getters: {\n getPortsServed() {\n return portsServed.value?.routes\n ? portsServed.value.routes\n .filter((route) => !route.isFreight && !route.hideOnMap)\n .map((route) => ({\n ...mapRouteToRouteServed(route),\n routeMap: [mapRoutesToMapRoutes(route)],\n } as RoutesServedType))\n : undefined;\n },\n },\n};\n\nexport const usePortStore = defineStore('portStore', portStoreDefinition);\n","import gql from 'graphql-tag';\n\nconst getRoutesWithStatusQuery = gql`\nquery {\n routes {\n name\n routeCode\n polyline\n location{\n name\n }\n routeStatuses {\n status\n subStatus\n }\n ports {\n name\n portCode\n order\n latitude\n longitude\n isFreight\n hideOnMap\n }\n status\n isFreight\n hideOnMap\n }\n}\n`;\n\nconst getRouteInformationQuery = gql`\nquery \n(\n $originPortName: String\n $destinationPortName: String\n) {\n routes \n (\n where: {\n and: [\n { originPort: {name: { eq: $originPortName } } }\n { destinationPort: {name: { eq: $destinationPortName } } }\n ]\n }\n ) {\n name\n routeInformation\n polyline\n location {\n name\n }\n ports {\n name\n portCode\n order\n latitude\n longitude\n isFreight\n hideOnMap\n }\n isFreight\n hideOnMap\n }\n}\n`;\n\nconst getRouteInformationByPortsQuery = gql`\nquery \n(\n $originPortName: String\n $destinationPortName: String\n) {\n routes \n (\n where: {\n ports: { some: { name: { contains: $originPortName} } }\n and: { ports: { some: { name: { contains: $destinationPortName} } } }\n }\n ) {\n routeCode\n name\n routeInformation\n polyline\n location {\n name\n }\n ports {\n name\n portCode\n order\n latitude\n longitude\n }\n }\n}\n`;\n\nconst getAllRoutesMapCoordsQuery = gql`\nquery {\n routes {\n name\n routeCode\n polyline\n ports{\n portCode\n longitude\n latitude\n name\n portImage\n isFreight\n hideOnMap\n }\n location {\n name\n latitude\n longitude\n locationCode\n locationImage\n isFreight\n hideOnMap\n }\n originPort{\n name\n portCode\n isFreight\n hideOnMap\n }\n destinationPort{\n name\n portCode\n isFreight\n hideOnMap\n },\n }\n}\n`;\n\nconst getRoutesServedByRouteCodeQuery = gql`\nquery \n(\n $routeCode: String\n) {\n routes (where: {routeCode: {eq: $routeCode}})\n {\n description\n routeCode\n name\n keyInformation\n polyline\n vessels{\n name\n vesselUrl\n vesselCode\n }\n ports{\n name\n portCode\n portUrl\n longitude\n latitude\n location{\n name\n }\n }\n }\n}\n`;\n\nconst getRouteMapByRouteCode = gql`\nquery \n(\n $routeCode: String\n) {\n routes (where: {routeCode: {eq: $routeCode}})\n {\n name\n routeCode\n polyline\n ports{\n name\n portCode\n longitude\n latitude\n }\n }\n}\n`;\n\nconst getAllRoutesQuery = gql`\nquery \n{\n routes \n {\n id\n routeCode\n textCode\n name\n routeInformation\n polyline\n location {\n name\n }\n ports {\n name\n portCode\n order\n latitude\n longitude\n }\n }\n}\n`;\n\nexport {\n getRoutesWithStatusQuery,\n getRouteInformationQuery,\n getRouteInformationByPortsQuery,\n getAllRoutesMapCoordsQuery,\n getRoutesServedByRouteCodeQuery,\n getRouteMapByRouteCode,\n getAllRoutesQuery,\n};\n","import { RouteStatusCategory } from '../types/api';\n\nexport const mapRouteStatusCategoryToColour = (status: RouteStatusCategory) => {\n switch (status) {\n case RouteStatusCategory.AllSailingsCancelled:\n return '#E40520';\n case RouteStatusCategory.Disruptions:\n return '#F2934E';\n case RouteStatusCategory.BeAware:\n return '#FFD964';\n default:\n return '#37BF35';\n }\n};\n","import {\n mapPolyline,\n mapPort,\n mapRouteStatusCategoryToColour,\n parseRouteStatusByStatusCategory,\n sortPorts,\n} from '.';\nimport { GoogleMapsRoute } from '..';\nimport {\n Route as ApiRoute,\n} from '../types/api';\n\nexport const mapRoutesWithStatusToRoute = ((item: ApiRoute) => ({\n name: item.location?.name,\n routeCode: item.routeCode,\n status: parseRouteStatusByStatusCategory(item.status),\n ports: (item.ports || [])\n .filter((port) => !port.isFreight && !port.hideOnMap)\n .map(mapPort).sort(sortPorts),\n options: {\n path: item?.polyline ? JSON.parse(item?.polyline)?.map(mapPolyline) : [],\n geodesic: true,\n strokeColor: mapRouteStatusCategoryToColour(item.status),\n strokeOpacity: 1.0,\n strokeWeight: 3,\n },\n}) as GoogleMapsRoute);\n","import { Route } from '../types/api';\nimport { mapPortToLocation } from './mapPortToLocation';\n\nexport const mapRoutesWithStatusToLocation = ((item: Route) => item\n .ports\n .filter((port) => !port.isFreight && !port.hideOnMap)\n .map(mapPortToLocation)\n .flat());\n","import {\n RouteInformation,\n} from '../types/api';\n\nimport {\n mapPolyline, mapPort, sortPorts,\n} from '.';\nimport { GoogleMapsRoute } from '..';\n\nexport const mapRouteByPortsToRoutes = (item: RouteInformation) => (\n {\n name: item.name,\n ports: item.ports?.map(mapPort).sort(sortPorts),\n options: {\n path: item?.polyline ? JSON.parse(item.polyline).map(mapPolyline) : [],\n geodesic: true,\n strokeColor: '#000000',\n strokeOpacity: 1,\n strokeWeight: 3,\n },\n } as GoogleMapsRoute\n);\n","import { Location } from '../types/api';\n\nexport const mapLocationToDestination = (item: Location) => ({\n name: item.name,\n options: {\n position: { lat: item.latitude, lng: item.longitude },\n },\n code: item.locationCode,\n image: item.locationImage,\n});\n","import { provideApolloClient, useQuery } from '@vue/apollo-composable';\nimport { defineStore } from 'pinia';\nimport { ref } from 'vue';\nimport {\n getRoutesWithStatusQuery,\n getRouteInformationQuery,\n getRouteInformationByPortsQuery,\n getAllRoutesMapCoordsQuery,\n getRoutesServedByRouteCodeQuery,\n getRouteMapByRouteCode,\n getAllRoutesQuery,\n} from './queries/routes';\nimport {\n Route, RouteInformation, RouteMapCoords,\n} from '../types/api';\nimport { apolloClient } from '../services/ApolloClient';\nimport {\n mapLocationToDestination,\n mapPortToLocation,\n mapPortToMapPort,\n mapRouteByPortsToRoutes,\n mapRoutesToMapRoutes,\n mapRoutesWithStatusToLocation,\n mapRoutesWithStatusToRoute,\n mapRouteToRouteServed,\n} from '../maps';\nimport { RoutesServedType } from '../types/RenderTypes';\n\nprovideApolloClient(apolloClient);\n\nconst routesWithStatus = ref>();\nconst routeInformation = ref>();\nconst routesByPorts = ref>();\nconst firstRoutesByPorts = ref();\nconst routesMapCoords = ref>();\nconst routeServed = ref();\nconst routeInfoMap = ref();\nconst allRoutes = ref>();\n\nconst allRoutesError = ref(false);\n\n// Where race condition occur isLaoding may be false when it should be true\nconst isLoading = ref(false);\n\nconst processResult = ((queryResult, document) => {\n if (!queryResult.data || queryResult.loading) {\n return;\n }\n\n if (document.value.loc?.source.body === getRoutesWithStatusQuery.loc?.source.body) {\n routesWithStatus.value = queryResult.data.routes;\n }\n\n if (document.value.loc?.source.body === getRouteInformationQuery.loc?.source.body) {\n routeInformation.value = queryResult.data.routes;\n }\n\n if (document.value.loc?.source.body === getRouteInformationByPortsQuery.loc?.source.body) {\n routesByPorts.value = queryResult.data.routes;\n firstRoutesByPorts.value = routesByPorts.value?.[0];\n }\n\n if (document.value.loc?.source.body === getAllRoutesMapCoordsQuery.loc?.source.body) {\n routesMapCoords.value = queryResult.data.routes;\n }\n\n if (document.value.loc?.source.body === getRoutesServedByRouteCodeQuery.loc?.source.body) {\n routeServed.value = queryResult.data?.routes[0];\n }\n\n if (document.value.loc?.source.body === getRouteMapByRouteCode.loc?.source.body) {\n routeInfoMap.value = queryResult.data?.routes[0];\n }\n});\n\nexport const routeStoreDefinition = {\n state: () => ({\n routesWithStatus,\n routeInformation,\n routesByPorts,\n firstRoutesByPorts,\n routesMapCoords,\n routeServed,\n routeInfoMap,\n allRoutes,\n allRoutesError,\n isLoading,\n }),\n actions: {\n async requestRoutesWithStatus() {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getRoutesWithStatusQuery,\n {},\n );\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestRoutesWithStatus: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n async requestRouteInformation(originPortName: string, destinationPortName: string) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getRouteInformationQuery,\n {\n originPortName,\n destinationPortName,\n },\n );\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestRouteInformation: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n async requestRouteByPorts(originPortName: string, destinationPortName: string) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getRouteInformationByPortsQuery,\n {\n originPortName,\n destinationPortName,\n },\n );\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestRouteByPorts: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n async requestAllRoutesMapCoords() {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getAllRoutesMapCoordsQuery,\n {},\n );\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestAllRoutesMapCoords: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n async requestRouteServed(routeCode: string) {\n const {\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getRoutesServedByRouteCodeQuery,\n { routeCode },\n );\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestRouteServed: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n },\n requestRouteMapByRouteCode(routeCode: string) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getRouteMapByRouteCode,\n { routeCode },\n );\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestRouteMap: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n refetch();\n },\n async requestAllRoutes() {\n const {\n refetch,\n onResult,\n onError,\n loading,\n } = useQuery(\n getAllRoutesQuery,\n {},\n );\n isLoading.value = loading.value;\n allRoutesError.value = false;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestAllRoutes: error', error);\n allRoutesError.value = true;\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n allRoutes.value = queryResult.data?.routes;\n allRoutesError.value = false;\n });\n\n await refetch();\n },\n updateRouteInformation: (newRouteInfo) => {\n routeInformation.value = newRouteInfo;\n },\n getRoute(routeCode: string) {\n return routesWithStatus.value?.filter((route) => route.routeCode === routeCode)?.[0];\n },\n },\n getters: {\n getRouteInformation() {\n if (!routeInformation.value) return undefined;\n return routeInformation.value[0];\n },\n getMapRoutesWithStatus() {\n return (routesWithStatus.value || [])\n .filter((route: Route) => !route.isFreight && !route.hideOnMap)\n .map(mapRoutesWithStatusToRoute);\n },\n getMapLocationsWithStatus() {\n return (routesWithStatus.value || [])\n .filter((route: Route) => !route.isFreight && !route.hideOnMap)\n .map(mapRoutesWithStatusToLocation).flat();\n },\n getMapRoutesByPortName() {\n if (!routesByPorts.value) return undefined;\n return routesByPorts.value?.map(mapRouteByPortsToRoutes);\n },\n getMapPortsByPortName() {\n if (!routesByPorts.value || routesByPorts.value.length === 0) return undefined;\n const { ports } = routesByPorts.value[0];\n\n return ports.map(mapPortToLocation);\n },\n getAllMapRoutesNoStatus() {\n return (routesMapCoords.value || [])\n .filter((route: RouteMapCoords) => !route.isFreight && !route.hideOnMap)\n .map(mapRoutesToMapRoutes);\n },\n getAllMapPortsNoStatus() {\n return (routesMapCoords.value || [])\n .filter((route: RouteMapCoords) => !route.isFreight && !route.hideOnMap)\n .map((item) => item.ports.map(mapPortToMapPort))\n .flat()\n .filter((port) => !port.isFreight && !port.hideOnMap);\n },\n getAllMapDestinationsNoStatus() {\n return (routesMapCoords.value || [])\n .filter((route: RouteMapCoords) =>\n !route.isFreight && !route.hideOnMap\n && !route.location.isFreight && !route.location.hideOnMap)\n .map((item) => mapLocationToDestination(item.location));\n },\n getRoutesServed() {\n return routeServed.value\n ? ({\n ...mapRouteToRouteServed(routeServed.value),\n routeMap: [mapRoutesToMapRoutes(routeServed.value)],\n } as RoutesServedType)\n : undefined;\n },\n },\n};\n\nexport const useRoutesStore = defineStore('routesStore', routeStoreDefinition);\n","import gql from 'graphql-tag';\n\nconst getTimetablesSearchQuery = gql`\nquery (\n $originPortName: String\n $destinationPortName: String\n $sailingStartDate: Date\n $sailingEndDate: Date\n) {\n portPairSailings (\n where: {\n and: [\n { originPort: { name: { eq: $originPortName } } }\n { destinationPort: { name: { eq: $destinationPortName } } }\n { sailingDate: { gte: $sailingStartDate } }\n { sailingDate: { lt: $sailingEndDate } }\n ]\n }\n order: { departureDateTime: ASC }\n ) {\n sailingDate\n route {\n id\n routeCode\n originPort {\n name\n }\n\n destinationPort {\n name\n }\n }\n departureDateTime\n arrivalDateTime\n rescheduledDepartureDateTime\n rescheduledArrivalDateTime\n sailingLegs (order: { order: ASC}) {\n originPort {\n name\n }\n destinationPort {\n name\n }\n departureDateTime\n arrivalDateTime\n rescheduledDepartureDateTime\n rescheduledArrivalDateTime\n order\n }\n status\n }\n}\n`;\n\nconst getPortPairsSuggestionsByOriginPort = gql`\nquery ($portOrLocationName: String) {\n portPairs(\n where: {\n or: [\n { originLocation: { contains: $portOrLocationName } }\n { originPort: { contains: $portOrLocationName } }\n ]\n }\n ) {\n originLocation\n originPort\n originPortCode\n destinationLocation\n destinationPort\n destinationPortCode\n route {\n id\n routeCode\n }\n }\n}\n`;\n\nconst getPortPairsSuggestionsByDestinationPort = gql`\nquery ($portOrLocationName: String) {\n portPairs(\n where: {\n or: [\n { destinationLocation: { contains: $portOrLocationName } }\n { destinationPort: { contains: $portOrLocationName } }\n ]\n }\n ) {\n originLocation\n originPort\n originPortCode\n destinationLocation\n destinationPort\n destinationPortCode\n route {\n id\n routeCode\n }\n }\n}\n`;\n\nconst getRouteByOriginDestinationPortPairs = gql`\nquery (\n $originPortName: String\n $destinationPortName: String\n ) {\n portPairs(\n where: {\n and: [\n { originPort: { contains: $originPortName } }\n { destinationPort: { contains: $destinationPortName } }\n ]\n }\n ) {\n route {\n id\n routeCode\n }\n }\n}\n`;\n\nexport {\n getTimetablesSearchQuery,\n getPortPairsSuggestionsByOriginPort,\n getPortPairsSuggestionsByDestinationPort,\n getRouteByOriginDestinationPortPairs,\n};\n","export enum SailingStatusType {\n Normal = 'normal',\n Delayed = 'delayed',\n Cancelled = 'cancelled',\n }\n","import { SailingStatusType } from '../types';\n\nexport const mapSailingStatusToTimeTableStatusType = (value) => {\n switch (value) {\n case 'DELAYED':\n return SailingStatusType.Delayed;\n case 'CANCELLED':\n return SailingStatusType.Cancelled;\n default:\n return SailingStatusType.Normal;\n }\n};\n","import { Sailing, Stop, PortPairSailing } from '../types';\nimport { Sailing as ISailing, Leg, PortPairSailing as IPortPairSailing } from '../types/api';\nimport { mapSailingStatusToTimeTableStatusType } from './mapSailingStatusToTimeTableStatusType';\n\nexport const mapLegs = (item:Leg) => ({\n time: item.departureDateTime\n ? new Date(Date.parse(item.departureDateTime))\n : undefined,\n port: item.originPort.name,\n order: item.order,\n} as Stop);\n\nexport const mapSailings = (item: ISailing) => ({\n status: mapSailingStatusToTimeTableStatusType(item.status),\n departureTime: new Date(Date.parse(item.departureDateTime)),\n arrivalTime: new Date(Date.parse(item.arrivalDateTime)),\n delayedDepartureTime: item.rescheduledDepartureDateTime\n ? new Date(Date.parse(item.rescheduledDepartureDateTime))\n : undefined,\n delayedArrivalTime: item.rescheduledArrivalDateTime\n ? new Date(Date.parse(item.rescheduledArrivalDateTime))\n : undefined,\n isDelayed: item.status.toUpperCase() === 'DELAYED',\n isCancelled: item.status.toUpperCase() === 'CANCELLED',\n stops: item.legs.map(mapLegs),\n} as Sailing);\n\nexport const mapPortPairSailings = (item: IPortPairSailing) => {\n const stops: Stop[] = item.sailingLegs.map(mapLegs);\n stops.push(mapLegs({\n departureDateTime: item.sailingLegs[item.sailingLegs.length - 1].arrivalDateTime\n ? item.sailingLegs[item.sailingLegs.length - 1].arrivalDateTime\n : undefined,\n originPort: item.sailingLegs[item.sailingLegs.length - 1].destinationPort,\n destinationPort: item.sailingLegs[item.sailingLegs.length - 1].destinationPort,\n order: item.sailingLegs.length,\n } as Leg));\n\n const portPairSailing = {\n status: mapSailingStatusToTimeTableStatusType(item.status),\n departureTime: new Date(Date.parse(item.departureDateTime)),\n arrivalTime: new Date(Date.parse(item.arrivalDateTime)),\n delayedDepartureTime: item.rescheduledDepartureDateTime\n ? new Date(Date.parse(item.rescheduledDepartureDateTime))\n : undefined,\n delayedArrivalTime: item.rescheduledArrivalDateTime\n ? new Date(Date.parse(item.rescheduledArrivalDateTime))\n : undefined,\n isDelayed: item.status.toUpperCase() === 'DELAYED',\n isCancelled: item.status.toUpperCase() === 'CANCELLED',\n stops,\n } as PortPairSailing;\n\n return portPairSailing;\n};\n","import { provideApolloClient, useQuery } from '@vue/apollo-composable';\nimport { defineStore } from 'pinia';\nimport { ref } from 'vue';\nimport {\n getTimetablesSearchQuery,\n getPortPairsSuggestionsByOriginPort,\n getPortPairsSuggestionsByDestinationPort,\n getRouteByOriginDestinationPortPairs,\n} from './queries/timetables';\nimport { apolloClient } from '../services/ApolloClient';\nimport {\n PortPair,\n Route,\n TimetableSearch,\n PortPairSailing,\n} from '../types/api';\nimport { mapPortPairSailings } from '../maps/mapSailings';\nimport { endOfDay, startOfDay } from '..';\n\nprovideApolloClient(apolloClient);\n\nconst recentSearches = ref>();\n\nconst routeSuggestions = ref();\nconst portPairSuggestions = ref();\nconst timetableSearchResults = ref();\nconst portPairRouteId = ref();\nconst portPairRouteCode = ref();\n\nconst isLoading = ref(undefined);\nconst isServerError = ref(false);\n\nconst processResult = ((queryResult, document) => {\n if (!queryResult.data || queryResult.loading) {\n return;\n }\n\n if (document.value.loc?.source.body === getTimetablesSearchQuery.loc?.source.body) {\n timetableSearchResults.value = queryResult.data?.portPairSailings;\n }\n if (document.value.loc?.source.body === getPortPairsSuggestionsByOriginPort.loc?.source.body) {\n portPairSuggestions.value = queryResult.data?.portPairs;\n }\n if (document.value.loc?.source.body\n === getPortPairsSuggestionsByDestinationPort.loc?.source.body) {\n portPairSuggestions.value = queryResult.data?.portPairs;\n }\n if (document.value.loc?.source.body\n === getRouteByOriginDestinationPortPairs.loc?.source.body) {\n portPairRouteId.value = queryResult.data?.portPairs?.[0]?.route?.id;\n portPairRouteCode.value = queryResult.data?.portPairs?.[0]?.route?.routeCode;\n }\n});\n\nexport const timetableStoreDefinition = {\n state: () => ({\n recentSearches,\n timetableSearchResults,\n routeSuggestions,\n portPairSuggestions,\n portPairRouteId,\n portPairRouteCode,\n isLoading,\n isServerError,\n }),\n actions: {\n getRecentSearches() { return recentSearches.value; },\n async getSearchResults(\n newSearch: TimetableSearch,\n shouldUpdateRecentSearches = true,\n isMobile = false,\n ) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getTimetablesSearchQuery,\n {\n originPortName: newSearch.from,\n destinationPortName: newSearch.to,\n sailingStartDate: startOfDay(newSearch.fromDate),\n sailingEndDate: newSearch.toDate\n ? endOfDay(newSearch.toDate)\n : endOfDay(newSearch.fromDate),\n },\n );\n\n isServerError.value = false;\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n isServerError.value = true;\n timetableSearchResults.value = [];\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n if (!loading.value) {\n await refetch();\n }\n\n if (shouldUpdateRecentSearches) {\n this.addSearchToRecent(newSearch, isMobile);\n }\n portPairRouteId.value = undefined;\n portPairRouteCode.value = undefined;\n },\n addSearchToRecent(newSearch: TimetableSearch, isMobile = false) {\n // all these fields must be present to save recent search\n if (!newSearch.from || !newSearch.to || !newSearch.routeCode) {\n return;\n }\n\n const newRecentSearch: TimetableSearch = {\n from: decodeURI(newSearch.from),\n to: decodeURI(newSearch.to),\n fromDate: newSearch.fromDate,\n routeCode: newSearch.routeCode,\n };\n\n if (recentSearches.value === undefined) {\n recentSearches.value = [newRecentSearch];\n return;\n }\n\n // remove item from list if it already exists\n recentSearches.value = recentSearches.value.filter(\n (searchItem: TimetableSearch) => searchItem.from !== newRecentSearch.from\n || searchItem.to !== newRecentSearch.to,\n );\n // Add item to the top of the list\n recentSearches.value?.unshift(newRecentSearch);\n\n const maxNumberOfRecent = isMobile ? 3 : 5;\n\n if (recentSearches.value.length > maxNumberOfRecent) {\n recentSearches.value.pop();\n }\n },\n async getSuggestionsByOriginPortName(originPortName: string) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getPortPairsSuggestionsByOriginPort,\n { portOrLocationName: originPortName },\n );\n isLoading.value = loading.value;\n isServerError.value = false;\n\n onError((error) => {\n isLoading.value = loading.value;\n isServerError.value = true;\n console.log('getSuggestionsByOriginPortName: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n portPairSuggestions.value = undefined;\n await refetch();\n },\n async getSuggestionsByDestinationPortName(destinationPortName: string) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getPortPairsSuggestionsByDestinationPort,\n { portOrLocationName: destinationPortName },\n );\n\n isLoading.value = loading.value;\n isServerError.value = false;\n\n onError((error) => {\n isLoading.value = loading.value;\n isServerError.value = true;\n console.log('getSuggestionsByDestinationPortName: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n timetableSearchResults.value = [];\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n async getRouteByOriginDestinationPortName(originPortName: string, destinationPortName: string) {\n portPairRouteId.value = undefined;\n portPairRouteCode.value = undefined;\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(\n getRouteByOriginDestinationPortPairs,\n {\n originPortName,\n destinationPortName,\n },\n );\n\n isLoading.value = loading.value;\n onError((error) => {\n isLoading.value = loading.value;\n isServerError.value = true;\n console.log('getRouteByOriginDestinationPortName: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n clearSuggestions() {\n portPairSuggestions.value = undefined;\n },\n clearError() {\n isServerError.value = false;\n },\n },\n getters: {\n getSailingResults: () => timetableSearchResults.value?.slice().map(mapPortPairSailings),\n },\n persist: {\n storage: localStorage,\n paths: ['recentSearches'],\n },\n};\n\nexport const useTimetableStore = defineStore('timetableStore', timetableStoreDefinition);\n","export enum ServiceStatusType {\n Normal = 'normal',\n AtRisk = 'atRisk',\n Disruption = 'disruption',\n Cancelled = 'cancelled',\n}\n","export * from './routeSubscription';\nexport * from './channel';\n\n/* eslint-disable no-use-before-define */\nexport enum SubStatus {\n AllSailingsCancelled = 'ALL_SAILINGS_CANCELLED',\n BeAware = 'BE_AWARE',\n Disruptions = 'DISRUPTIONS',\n None = 'NONE'\n}\n\nexport enum RouteStatusCategory {\n AllSailingsCancelled = 'ALL_SAILINGS_CANCELLED',\n BeAware = 'BE_AWARE',\n Disruptions = 'DISRUPTIONS',\n Normal = 'NORMAL'\n}\n\nexport enum StatusCategory {\n Information = 'INFORMATION',\n Sailing = 'SAILING',\n Service = 'SERVICE',\n Undefined = 'UNDEFINED'\n}\n\nexport enum OfflineTimetableType {\n Summer = 'Summer',\n Winter = 'Winter',\n Tidal = 'Tidal'\n}\n\nexport interface Activity {\n description: string;\n icon: string;\n}\nexport interface Location {\n name: string;\n latitude?: number;\n longitude?: number;\n locationCode?: string;\n locationImage?: string;\n locationUrl?: string;\n soundbiteUrl?: string;\n description?: string;\n activities?: Array;\n routes?: Array;\n isFreight?: boolean;\n hideOnMap?: boolean;\n}\nexport interface Port {\n portCode: string;\n name?: string;\n order: number;\n latitude: number;\n longitude: number;\n portImage?: string;\n description?: string;\n portUrl?: string;\n address?: string;\n location?: Location;\n routes?: Array;\n isFreight?: boolean;\n hideOnMap?: boolean;\n}\n\nexport interface Vessel {\n name: string;\n vesselCode: string;\n vesselUrl?: string;\n routes?: Array;\n}\n\nexport interface RouteStatus {\n id: string;\n title: string;\n detail: string;\n status: StatusCategory;\n subStatus: SubStatus;\n updatedAtDateTime: string;\n nextReviewDateTime: string;\n startDateTime: string;\n endDateTime: string;\n}\n\nexport interface Route {\n name: string;\n id?: string;\n routeCode: string;\n ports: Port[];\n polyline?: string;\n routeStatuses: RouteStatus[];\n location?: Location;\n originPort?: Port;\n destinationPort?: Port;\n description?: string;\n vessels?: Vessel[];\n keyInformation?: string;\n status: RouteStatusCategory;\n isFreight?: boolean;\n hideOnMap?: boolean;\n}\n\nexport interface Routes {\n routes: Array;\n}\n\nexport interface Leg {\n originPort: Port;\n destinationPort: Port;\n order?: number;\n departureDateTime: string;\n arrivalDateTime?: string;\n}\n\nexport interface PortPairSailing {\n sailingDate: string;\n route: Route;\n departureDateTime: string;\n arrivalDateTime: string;\n rescheduledDepartureDateTime: string;\n rescheduledArrivalDateTime: string;\n status: string;\n sailingLegs: Leg[];\n vessel: Vessel;\n}\n\nexport interface Sailing {\n sailingDate: string;\n route: Route;\n departureDateTime: string;\n arrivalDateTime: string;\n rescheduledDepartureDateTime?: string;\n rescheduledArrivalDateTime?: string;\n status: string;\n legs: Leg[];\n vessel: Vessel;\n}\n\nexport interface Sailings {\n sailings: Sailing[];\n}\n\nexport interface OfflineTimetable{\n title: string;\n route: Route;\n validFrom: string;\n validUntil: string;\n pdfUrl: string;\n imageUrl: string;\n key: string;\n dateAdded?: string;\n lastUpdated: string;\n}\n\nexport interface OfflineTimetableSaved extends OfflineTimetable{\n fileName: string;\n}\n\nexport interface PortPair{\n originPort: string;\n originPortCode: string;\n originLocation: string;\n destinationPort: string;\n destinationPortCode: string;\n destinationLocation: string;\n route: Route;\n}\n\nexport interface TimetableSearch {\n from: string;\n to: string;\n fromDate: string;\n toDate?: string;\n routeCode: string;\n}\n\nexport interface RouteInformation {\n id?: string;\n name: string;\n polyline: string;\n ports: Port[];\n routeInformation: string;\n routeCode?: string;\n textCode?: string;\n location?: Location;\n}\n\nexport interface OfflineTimetablesResult {\n timetableType: OfflineTimetableType;\n title: string;\n releaseDetail: Date;\n pdfUrl: string;\n imageUrl: string;\n}\n\nexport interface RouteMapCoords {\n name: string;\n routeCode: string;\n polyline: string;\n ports: Array;\n location: Location;\n originPort: Port;\n destinationPort: Port;\n isFreight: boolean;\n hideOnMap: boolean;\n}\n","export const INFO_CARD_COLOR = {\n white: '#ffffff',\n red: '#e40520',\n mint: '#DCF1D9',\n};\n","export const maxBy = (array: T[], iteratee: (item: T) => number | undefined): T | undefined => {\n if (!array.length) {\n return undefined;\n }\n\n return array.reduce((max, item) => {\n const itemValue = iteratee(item);\n const maxValue = iteratee(max);\n\n return itemValue && maxValue && itemValue > maxValue ? item : max;\n });\n};\n","import { AccountInfo } from '@azure/msal-browser';\nimport { maxBy } from './maxBy';\n\nconst accountIsActive = (mostRecentAccount: AccountInfo): boolean => {\n if (!mostRecentAccount?.idTokenClaims?.exp) {\n return true;\n }\n // exp is in seconds since epoch\n const expiryDate = new Date(mostRecentAccount.idTokenClaims.exp * 1000);\n\n return (expiryDate.getTime() >= new Date().getTime());\n};\n\nexport const getActiveAccount = (accounts: AccountInfo[]): AccountInfo | undefined => {\n const mostRecentAccount = maxBy(accounts, (account: AccountInfo) => account.idTokenClaims?.exp);\n\n if (!mostRecentAccount) {\n return undefined;\n }\n\n if (!accountIsActive(mostRecentAccount)) {\n return undefined;\n }\n\n return mostRecentAccount;\n};\n","import {\n AuthenticationResult, EventType, LogLevel, PublicClientApplication,\n} from '@azure/msal-browser';\nimport { B2CConfig } from './types';\nimport { getActiveAccount } from './util/token';\n\n// Config object to be passed to Msal on creation\nexport const buildMsalConfig = (b2cConfig: B2CConfig) => {\n const {\n clientId, tenant, hostname, postLogoutRedirectUri, signInPolicy,\n } = b2cConfig;\n\n return {\n auth: {\n clientId,\n authority: `https://${hostname}/${tenant}/${signInPolicy}`,\n postLogoutRedirectUri,\n knownAuthorities: [`${hostname}`],\n },\n cache: {\n cacheLocation: 'localStorage',\n },\n system: {\n loggerOptions: {\n loggerCallback: (level: LogLevel, message: string, containsPii: boolean) => {\n if (containsPii) {\n return;\n }\n switch (level) {\n case LogLevel.Error:\n console.error(message);\n break;\n case LogLevel.Info:\n console.info(message);\n break;\n case LogLevel.Verbose:\n console.debug(message);\n break;\n case LogLevel.Warning:\n console.warn(message);\n break;\n default:\n break;\n }\n },\n logLevel: LogLevel.Verbose,\n },\n },\n };\n};\n\nexport const createInstance = (b2cConfig: B2CConfig): PublicClientApplication => {\n const config = buildMsalConfig(b2cConfig);\n\n const msalInstance = new PublicClientApplication(config);\n const accounts = msalInstance.getAllAccounts();\n const activeAccount = getActiveAccount(accounts);\n\n if (activeAccount) {\n msalInstance.setActiveAccount(activeAccount);\n }\n msalInstance.addEventCallback((event) => {\n if (event.eventType === EventType.LOGIN_SUCCESS && event.payload) {\n const payload = event.payload as AuthenticationResult;\n const { account } = payload;\n msalInstance.setActiveAccount(account);\n }\n });\n\n return msalInstance;\n};\n","import { B2CConfig } from '@auth/types';\nimport { createInstance } from '@auth/create';\n\nimport {\n b2cClientId, b2cLoginPolicy, b2cPostLogoutRedirectUri, b2cRedirectUri, b2cTenant, b2cHostname,\n} from '@/envVariables';\n\nconst authConfig: B2CConfig = {\n clientId: b2cClientId,\n tenant: b2cTenant,\n hostname: b2cHostname,\n signInPolicy: b2cLoginPolicy,\n redirectUri: b2cRedirectUri,\n postLogoutRedirectUri: b2cPostLogoutRedirectUri,\n};\nexport const msalInstance = createInstance(authConfig);\n","export const timezone = process.env.VUE_APP_TIMEZONE ?? '';\nexport const ticketingUrl = process.env.VUE_APP_TICKETING_URL ?? '';\nexport const routeInformationUrl = process.env.VUE_APP_ROUTE_INFO_URL ?? '';\n\nexport const b2cClientId = process.env.VUE_APP_B2C_CLIENT_ID ?? '';\nexport const b2cTenant = process.env.VUE_APP_B2C_TENANT ?? '';\nexport const b2cHostname = process.env.VUE_APP_B2C_HOSTNAME ?? '';\nexport const b2cLoginPolicy = process.env.VUE_APP_B2C_LOGIN_POLICY ?? '';\nexport const b2cRedirectUri = process.env.VUE_APP_B2C_REDIRECT_URL ?? '';\nexport const b2cPostLogoutRedirectUri = process.env.VUE_APP_B2C_POST_LOGOUT_REDIRECT_URL ?? '';\nexport const b2cApiScope: string = process.env.VUE_APP_B2C_API_SCOPE ?? '';\n\nexport const dictionaryUrl = process.env.VUE_APP_DICTIONARY_URL ?? '';\nexport const umbracoBaseUrl = process.env.VUE_APP_UMBRACO_CONSUMER_BASE || '';\nexport const assetBaseUrl = process.env.VUE_APP_ASSETS_BASE_URL || '';\n\nexport const b2cScopes = [\n 'openid',\n 'offline_access',\n b2cApiScope,\n];\n","export const closeOverlay = (element) => {\n element.setAttribute('aria-expanded', 'false');\n element.setAttribute('aria-hidden', true);\n\n if (element.classList.contains('has-darkOverlay')) {\n element.classList.remove('has-darkOverlay');\n }\n\n if (element.classList.contains('has-stopScroll')) {\n element.classList.remove('has-stopScroll');\n }\n\n if (element.classList.contains('panelActive')) {\n element.classList.remove('panelActive');\n }\n};\n","import { defineStore } from 'pinia';\n\nexport const useSharedState = defineStore('sharedState', {\n state: () => ({\n shared: {} as any,\n }),\n actions: {\n // Check localstorage for a persisted state and pull into shared state\n getState(stateName) {\n const stateToAdd: string | null = window.localStorage.getItem(stateName);\n if (stateToAdd) {\n this.updateSharedState(stateName, JSON.parse(stateToAdd));\n }\n },\n // Update a value\n updateSharedState(key, value) {\n this.shared[key] = value;\n },\n // Remove from shared state\n removeSharedState(key) {\n this.shared[key] = undefined;\n },\n },\n getters: {\n getSharedState: (state) => {\n const allState = this as any;\n const upToDateState = Object.keys(state.shared).forEach((key) => {\n allState.getState(key);\n });\n return upToDateState;\n },\n },\n persist: true,\n});\n","import { createI18n } from 'vue-i18n';\nimport enGB from './locales/en-GB.json';\n\ntype MessageSchema = typeof enGB;\n\nconst i18n = createI18n<[MessageSchema], 'en-GB'>({\n legacy: false,\n locale: 'en-GB',\n fallbackLocale: 'en-GB',\n messages: {\n 'en-GB': enGB,\n },\n});\n\nexport default i18n;\n","\n\n\n\n\n","import { render } from \"./DummyView.vue?vue&type=template&id=1c254107\"\nconst script = {}\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import {\n createRouter, createWebHashHistory, RouteRecordRaw,\n} from 'vue-router';\nimport ServiceStatus from '../views/ServiceStatus.vue';\nimport DummyView from '../views/DummyView.vue';\nimport TimetableSearch from '../views/TimetableSearch.vue';\nimport SmsApp from '../views/SmsApp.vue';\n\nconst routes: Array = [\n {\n path: '/service-status',\n name: 'servicestatus',\n component: ServiceStatus,\n },\n {\n path: '/timetable-search',\n name: 'timetableSearch',\n component: TimetableSearch,\n },\n {\n path: '/sms',\n name: 'sms',\n component: SmsApp,\n },\n {\n path: '/timetable-search/:from/:to/:departureDate',\n name: 'timetableResult',\n component: DummyView,\n props: (route) => ({\n from: route.query.from,\n to: route.query.to,\n departureDate: route.query.departureDate,\n }),\n },\n];\n\nconst router = createRouter({\n history: createWebHashHistory(process.env.BASE_URL),\n routes,\n});\n\nexport default router;\n","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/OfflineIndicator.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/Recent.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/StatusDisrupted.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/TestIcon.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/accordionArrow.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/add.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/anchor.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/anchorPin.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/anchorPinHover.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/anchorRed.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/arrowLeft.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/arrowRight.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/arrowUp.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/audio.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/boat.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/calendar.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/calendarFilled.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/calendarMonth.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/calmacLogo.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/chevron-right.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/clock.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/close-white.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/close.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/closeBold.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/delete.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/edit.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/editRed.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/expandIcon.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/externalLink.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/eye.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/eyeClosed.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/eyeOpen.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/favouriteRoute.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/favouriteRouteBlack.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/ferries.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/ferry.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/filter.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/followLink.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/icon-drag.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/info.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/lineArrowDown.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/link.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/mail.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/mapIcon.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/mapIconBlack.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/mapMarker.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/mapPin.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/mapPinRed.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/mapPinStar.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/menu.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/messageBannerAlert.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/noSailing.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/notification.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/notificationsDisabled.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/notificationsOff.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/offlineBin.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/offlineCheck.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/offlineDownload.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/offlineError.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/offlineLoad.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/offlineTimetable.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/plus.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/print.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/quoteopen.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/redChevron.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/redLink.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/redMapPin.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/redMapPinHover.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/redTick.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/removeRoute.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/routes.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/routesDropdownArrow.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/routesRed.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/sailing.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/search.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/searchMapPin.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/selectArrow.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/signOut.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/smsDelete.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/smsEdit.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/star.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/starBlack.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/statusAtRisk.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/statusCancelled.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/statusDelayed.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/statusNormal.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/summerTimetable.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/support.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/switch.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/tick.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/tickBlack.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/ticket.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/tidalTimetable.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/train.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/warning.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/winterTimetable.svg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/downloadAppImage.png\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/interactiveMap.jpg\";","module.exports = \"https://assets.calmac.co.uk/scripts/apps/overlays/1.0/img/interactiveMapRetina.jpg\";","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-3a666b48\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"disabled\"]\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Button',\n props: {\n label: {},\n primary: { type: Boolean },\n secondary: { type: Boolean },\n outline: { type: Boolean },\n disabled: { type: Boolean },\n onClick: { type: Function }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"button\", {\n disabled: _ctx.disabled,\n class: _normalizeClass([\"button\", { primary: _ctx.primary, secondary: _ctx.secondary, outline: _ctx.outline }]),\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.onClick && _ctx.onClick(...args)))\n }, [\n _createTextVNode(_toDisplayString(_ctx.label) + \" \", 1),\n _renderSlot(_ctx.$slots, \"default\")\n ], 10, _hoisted_1))\n}\n}\n\n})","import script from \"./Button.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Button.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Button.vue?vue&type=style&index=0&id=3a666b48&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3a666b48\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Card.vue?vue&type=template&id=584a82a2\"\nconst script = {}\n\nimport \"./Card.vue?vue&type=style&index=0&id=584a82a2&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-000662e8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"src\"]\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Icon',\n props: {\n sm: { type: Boolean },\n md: { type: Boolean },\n lg: { type: Boolean },\n iconName: {}\n },\n setup(__props: any) {\n\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"img\", {\n src: require(`@icons/${_ctx.iconName}.svg`),\n class: _normalizeClass({ sm: _ctx.sm, md: _ctx.md, lg: _ctx.lg }),\n role: \"presentation\"\n }, null, 10, _hoisted_1))\n}\n}\n\n})","import script from \"./Icon.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Icon.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Icon.vue?vue&type=style&index=0&id=000662e8&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-000662e8\"]])\n\nexport default __exports__","function rad2degr(rad) { return (rad * 180) / Math.PI; }\nfunction degr2rad(degr) { return (degr * Math.PI) / 180; }\n\n/**\n * @param latLngInDeg array of arrays with latitude and longtitude\n * pairs in degrees. e.g. [[latitude1, longtitude1], [latitude2\n * [longtitude2] ...]\n *\n * @return array with the center latitude longtitude pairs in\n * degrees.\n */\nexport const getLatLngCenter = (latLngInDegr) => {\n const LATIDX = 0;\n const LNGIDX = 1;\n let sumX = 0;\n let sumY = 0;\n let sumZ = 0;\n\n for (let i = 0; i < latLngInDegr.length; i += 1) {\n const lat = degr2rad(latLngInDegr[i][LATIDX]);\n const lng = degr2rad(latLngInDegr[i][LNGIDX]);\n // sum of cartesian coordinates\n sumX += Math.cos(lat) * Math.cos(lng);\n sumY += Math.cos(lat) * Math.sin(lng);\n sumZ += Math.sin(lat);\n }\n\n const avgX = sumX / latLngInDegr.length;\n const avgY = sumY / latLngInDegr.length;\n const avgZ = sumZ / latLngInDegr.length;\n\n // convert average x, y, z coordinate to latitude and longtitude\n const lng = Math.atan2(avgY, avgX);\n const hyp = Math.sqrt(avgX * avgX + avgY * avgY);\n const lat = Math.atan2(avgZ, hyp);\n\n return ([rad2degr(lat), rad2degr(lng)]);\n};\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, withCtx as _withCtx, createBlock as _createBlock } from \"vue\"\n\nimport { ref, watch } from 'vue';\nimport {\n GoogleMap, CustomMarker, Polyline,\n} from 'vue3-google-map';\nimport { getLatLngCenter } from '../../helpers/mapping';\nimport {\n Port, GoogleMapsRoute, LatLng, MapPort, MapLocation,\n} from '../../types';\nimport { googleMapApiKey } from '../../envVariables';\nimport { SMALL_DESKTOP_VIEWPORT_WIDTH } from '../../config';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Map',\n props: {\n center: {},\n routes: {},\n routeHoverItem: {},\n routeClickItem: {},\n ports: {},\n portHoverItem: {},\n portClickItem: {},\n destinations: {},\n destinationHoverItem: {},\n destinationClickItem: {},\n isStatic: { type: Boolean },\n zoom: {}\n },\n emits: [\n 'mapClicked',\n 'updateMapRef',\n 'routeClicked',\n 'routeHovered',\n 'routeLeave',\n 'portClicked',\n 'portHovered',\n 'portLeave',\n 'destinationClicked',\n 'destinationHovered',\n 'destinationLeave',\n 'zoomChange',\n],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst apiKey = googleMapApiKey;\n\nconst emit = __emit;\n\nconst mapRef = ref();\n\nconst zoom = ref(props.zoom ?? 8);\n\nconst isSmallScreenWidth = window.innerWidth <= SMALL_DESKTOP_VIEWPORT_WIDTH;\n\nconst customMapStyle = [\n {\n featureType: 'administrative',\n elementType: 'labels.text.fill',\n stylers: [\n {\n color: '#444444',\n },\n ],\n },\n {\n featureType: 'landscape',\n elementType: 'all',\n stylers: [\n {\n color: '#f2f2f2',\n },\n ],\n },\n {\n featureType: 'poi',\n elementType: 'all',\n stylers: [\n {\n visibility: 'off',\n },\n ],\n },\n {\n featureType: 'road',\n elementType: 'all',\n stylers: [\n {\n saturation: -100,\n },\n {\n lightness: 45,\n },\n ],\n },\n {\n featureType: 'road.highway',\n elementType: 'all',\n stylers: [\n {\n visibility: 'simplified',\n },\n ],\n },\n {\n featureType: 'road',\n elementType: 'labels',\n stylers: [\n {\n visibility: 'off',\n },\n ],\n },\n {\n featureType: 'road.arterial',\n elementType: 'labels.icon',\n stylers: [\n {\n visibility: 'off',\n },\n ],\n },\n {\n featureType: 'transit',\n elementType: 'all',\n stylers: [\n {\n visibility: 'off',\n },\n ],\n },\n {\n featureType: 'water',\n elementType: 'all',\n stylers: [\n {\n color: '#BDE4E4',\n },\n {\n visibility: 'on',\n },\n ],\n },\n];\n\nconst getIsPinItem = (pinItemCode, itemCode) => pinItemCode === itemCode;\n\nconst isNoPortSelected = (itemCode) => (!props.portHoverItem\n || !getIsPinItem(props.portHoverItem.portCode, itemCode)) && (\n !props.portClickItem || !getIsPinItem(props.portClickItem.portCode, itemCode)\n);\n\nconst isNoDestinationSelected = (itemCode) => (!props.destinationHoverItem\n || !getIsPinItem(props.destinationHoverItem.code, itemCode)) && (\n !props.destinationClickItem || !getIsPinItem(props.destinationClickItem.code, itemCode)\n);\n\nconst handlePortMouseover = (port) => {\n/*\n Emit click event instead on mobile devices as hover state does not exist and using normal click\n event on Google Map Custom Marker which seems to only work when tapping twice on mobile devices,\n whereas mouseover event works when tapping once.\n*/\n\n if (isSmallScreenWidth) {\n emit('portClicked', port);\n return;\n }\n emit('portHovered', port);\n};\n\nconst handleDestinationMouseover = (destination) => {\n/*\n Emit click event instead on mobile devices as hover state does not exist and using normal click\n event on Google Map Custom Marker which seems to only work when tapping twice on mobile devices,\n whereas mouseover event works when tapping once.\n*/\n\n if (isSmallScreenWidth) {\n emit('destinationClicked', destination);\n return;\n }\n emit('destinationHovered', destination);\n};\n\nfunction getCenter() {\n let maxLat;\n let minLat;\n let maxLng;\n let minLng;\n\n if (props.center) {\n maxLat = props.center.lat;\n minLat = props.center.lat;\n maxLng = props.center.lng;\n minLng = props.center.lng;\n if (props.ports !== undefined) {\n maxLat = Math.max(...props.ports.map((l) => l.options.position.lat));\n minLat = Math.min(...props.ports.map((l) => l.options.position.lat));\n maxLng = Math.max(...props.ports.map((l) => l.options.position.lng));\n minLng = Math.min(...props.ports.map((l) => l.options.position.lng));\n } else if (props.destinations !== undefined) {\n maxLat = Math.max(...props.destinations.map((l) => l.options.position.lat));\n minLat = Math.min(...props.destinations.map((l) => l.options.position.lat));\n maxLng = Math.max(...props.destinations.map((l) => l.options.position.lng));\n minLng = Math.min(...props.destinations.map((l) => l.options.position.lng));\n }\n } else if (props.routes) {\n const routePorts = props.routes.map((route: GoogleMapsRoute) => {\n const result = route.ports.map((port: Port) => [port.latitude, port.longitude]);\n return result;\n }).flat();\n\n const location = getLatLngCenter(routePorts) as [number, number];\n maxLat = Number(location[0]);\n minLat = 0;\n maxLng = Number(location[1]);\n minLng = 0;\n }\n\n const center = { lat: (maxLat + minLat) / 2, lng: (maxLng + minLng) / 2 };\n return center;\n}\n\nwatch(\n () => mapRef.value?.ready,\n (ready) => {\n if (!ready) return;\n emit('updateMapRef', mapRef.value);\n },\n);\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_unref(GoogleMap), {\n ref_key: \"mapRef\",\n ref: mapRef,\n \"api-key\": _unref(apiKey),\n class: \"mapContainer\",\n style: {\"width\":\"100%\",\"height\":\"100vh\"},\n styles: customMapStyle,\n center: getCenter(),\n zoom: zoom.value,\n \"disable-default-ui\": _ctx.isStatic,\n draggable: !_ctx.isStatic,\n \"street-view-control\": false,\n \"map-type-control\": false,\n \"fullscreen-control\": false,\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.$emit('mapClicked'))),\n onZoom_changed: _cache[4] || (_cache[4] = ($event: any) => (_ctx.$emit('zoomChange', mapRef.value.map.getZoom(), zoom.value)))\n }, {\n default: _withCtx(() => [\n (_ctx.routes)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(_ctx.routes, (route, index) => {\n return (_openBlock(), _createElementBlock(_Fragment, { key: index }, [\n _createVNode(_unref(Polyline), {\n options: (_ctx.routeHoverItem && _ctx.routeHoverItem.code === route.code) ||\n (_ctx.routeClickItem && _ctx.routeClickItem.code === route.code) ?\n { ...route.options, strokeColor: '#E40520' } : route.options,\n onClick: ($event: any) => (_ctx.$emit('routeClicked', route)),\n onMouseover: ($event: any) => (_ctx.$emit('routeHovered', route)),\n onMouseout: _cache[0] || (_cache[0] = ($event: any) => (_ctx.$emit('routeLeave')))\n }, null, 8, [\"options\", \"onClick\", \"onMouseover\"]),\n _renderSlot(_ctx.$slots, \"routeInfoWindow\")\n ], 64))\n }), 128))\n : _createCommentVNode(\"\", true),\n (_ctx.ports)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.ports, (port, index) => {\n return (_openBlock(), _createBlock(_unref(CustomMarker), {\n key: index,\n options: port.options,\n onClick: ($event: any) => (_ctx.$emit('portClicked', port)),\n onMouseover: () => handlePortMouseover(port),\n onMouseleave: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$emit('portLeave')))\n }, {\n default: _withCtx(() => [\n (isNoPortSelected(port.portCode))\n ? _renderSlot(_ctx.$slots, \"customPortIcon\", { key: 0 })\n : _createCommentVNode(\"\", true),\n ((_ctx.portHoverItem && getIsPinItem(_ctx.portHoverItem.portCode, port.portCode))\n && !getIsPinItem(_ctx.portClickItem?.portCode, port.portCode))\n ? _renderSlot(_ctx.$slots, \"customPortIconHover\", { key: 1 })\n : _createCommentVNode(\"\", true),\n (_ctx.portClickItem && getIsPinItem(_ctx.portClickItem.portCode, port.portCode))\n ? _renderSlot(_ctx.$slots, \"customPortIconSelected\", { key: 2 })\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1032, [\"options\", \"onClick\", \"onMouseover\"]))\n }), 128)),\n _renderSlot(_ctx.$slots, \"portInfoWindow\")\n ], 64))\n : _createCommentVNode(\"\", true),\n (_ctx.destinations)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.destinations, (destination, index) => {\n return (_openBlock(), _createBlock(_unref(CustomMarker), {\n key: index,\n options: destination.options,\n onClick: ($event: any) => (_ctx.$emit('destinationClicked', destination)),\n onMouseover: () => handleDestinationMouseover(destination),\n onMouseleave: _cache[2] || (_cache[2] = ($event: any) => (_ctx.$emit('destinationLeave')))\n }, {\n default: _withCtx(() => [\n (isNoDestinationSelected(destination.code))\n ? _renderSlot(_ctx.$slots, \"customDestinationIcon\", { key: 0 })\n : _createCommentVNode(\"\", true),\n ((_ctx.destinationHoverItem && getIsPinItem(_ctx.destinationHoverItem.code, destination.code))\n && !getIsPinItem(_ctx.destinationClickItem?.code, destination.code) )\n ? _renderSlot(_ctx.$slots, \"customDestinationIconHover\", { key: 1 })\n : _createCommentVNode(\"\", true),\n (_ctx.destinationClickItem && getIsPinItem(_ctx.destinationClickItem.code, destination.code))\n ? _renderSlot(_ctx.$slots, \"customDestinationIconSelected\", { key: 2 })\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1032, [\"options\", \"onClick\", \"onMouseover\"]))\n }), 128)),\n _renderSlot(_ctx.$slots, \"destinationInfoWindow\")\n ], 64))\n : _createCommentVNode(\"\", true)\n ]),\n _: 3\n }, 8, [\"api-key\", \"center\", \"zoom\", \"disable-default-ui\", \"draggable\"]))\n}\n}\n\n})","import script from \"./Map.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Map.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed, ref, watch } from 'vue';\nimport Datepicker from '@vuepic/vue-datepicker';\nimport '@vuepic/vue-datepicker/dist/main.css';\nimport { Skeletor } from 'vue-skeletor';\nimport 'vue-skeletor/dist/vue-skeletor.css';\nimport {\n isPast, addYears, endOfYear, getYear, parseISO, isValid, format,\n} from 'date-fns';\nimport {\n formatInTimeZone, toZonedTime, fromZonedTime,\n} from 'date-fns-tz';\nimport { Icon } from '../../Atoms';\nimport { timezone } from '../../envVariables';\nimport { utcDate, utcDateTime } from '../..';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DatePickerCalendar',\n props: {\n id: { default: `datepicker-${Date.now()}` },\n initialDate: {},\n disabled: { type: Boolean, default: false },\n todayText: {},\n dateFormat: {},\n teleportId: {},\n maxDate: {},\n minDate: {},\n isLoading: { type: Boolean, default: false },\n isError: { type: Boolean, default: false }\n },\n emits: ['update:selectedDate'],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst now = new Date();\nconst minDateToUse = computed(() => (props.minDate\n ? parseISO(props.minDate)\n : new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate())));\n\nconst maxDateToUse = computed(() => (props.maxDate\n ? props.maxDate\n : endOfYear(addYears(utcDateTime(new Date()), 1)).toISOString()));\n\nconst emit = __emit;\n\nconst localDateValue = ref('');\n\nconst selectedDate = computed({\n get: () => localDateValue.value,\n set: (value) => {\n // Always convert the UTC to local time (UK) and use this to build a UTC without the time\n // we only want a date coming out of this\n const ukDate = toZonedTime(value, timezone);\n const dateAsUtc = new Date(\n Date.UTC(ukDate.getFullYear(), ukDate.getMonth(), ukDate.getDate()),\n );\n\n localDateValue.value = dateAsUtc.toISOString();\n emit('update:selectedDate', localDateValue.value);\n },\n});\n\nwatch(() => props.initialDate, (value) => {\n localDateValue.value = isValid(parseISO(value))\n ? formatInTimeZone(value, timezone, 'yyyy-MM-dd')\n : utcDate(new Date()).toISOString();\n}, { immediate: true });\n\nconst formatDate = (date: Date) => {\n // current min date (today) compared to local date time shifted to UK timezone\n if (format(minDateToUse.value, 'yyy-MM-dd') === formatInTimeZone(\n fromZonedTime(\n date,\n timezone,\n { timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone },\n ),\n timezone,\n 'yyyy-MM-dd',\n )) return props.todayText;\n return formatInTimeZone(\n fromZonedTime(\n date,\n timezone,\n { timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone },\n ),\n timezone,\n props.dateFormat,\n );\n};\n\nconst disabledDates = (date: Date) => (\n toZonedTime(\n date,\n timezone,\n { timeZone: timezone },\n ) ? false : isPast(toZonedTime(\n date,\n timezone,\n { timeZone: timezone },\n ))\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), { key: 0 }))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n id: \"vueDatepicker\",\n class: _normalizeClass([\"datepickerCalendar\", { 'error': _ctx.isError }])\n }, [\n _createVNode(_unref(Datepicker), {\n id: _ctx.id,\n modelValue: selectedDate.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((selectedDate).value = $event)),\n \"inline-with-input\": \"\",\n disabled: _ctx.disabled,\n format: formatDate,\n \"close-on-auto-apply\": true,\n \"enable-time-picker\": false,\n teleport: _ctx.teleportId,\n \"auto-apply\": \"\",\n \"input-class-name\": \"datepickerInput\",\n \"menu-class-name\": \"calendarWrapper\",\n \"calendar-cell-class-name\": \"calenderItem\",\n position: \"left\",\n placeholder: _ctx.todayText,\n clearable: false,\n \"disabled-dates\": disabledDates,\n \"min-date\": minDateToUse.value,\n \"max-date\": maxDateToUse.value,\n \"year-range\": [_unref(getYear)(new Date()), _unref(getYear)(_unref(addYears)(new Date(), 2))],\n \"prevent-min-max-navigation\": \"\",\n utc: \"preserve\"\n }, {\n \"input-icon\": _withCtx(() => [\n _createVNode(_unref(Icon), {\n \"icon-name\": \"calendar\",\n md: true\n })\n ]),\n _: 1\n }, 8, [\"id\", \"modelValue\", \"disabled\", \"teleport\", \"placeholder\", \"min-date\", \"max-date\", \"year-range\"])\n ], 2))\n}\n}\n\n})","import script from \"./DatePickerCalendar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DatePickerCalendar.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./DatePickerCalendar.vue?vue&type=style&index=0&id=05c396db&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","export enum IconPositionType {\n PosLeft = 'posLeft',\n PosRight = 'posRight',\n PosBottom = 'posBottom',\n}\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, renderSlot as _renderSlot, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-05281cec\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\n\nimport { Skeletor } from 'vue-skeletor';\nimport { Icon } from '../../Atoms';\nimport { IconPositionType } from '../../types/IconPositionType';\nimport 'vue-skeletor/dist/vue-skeletor.css';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'IconText',\n props: {\n iconName: {},\n iconSm: { type: Boolean },\n iconLg: { type: Boolean },\n iconMd: { type: Boolean },\n text: {},\n iconPos: {},\n isLoading: { type: Boolean }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([{\n iconRight: _ctx.iconPos === _unref(IconPositionType).PosRight,\n iconBottom: _ctx.iconPos === _unref(IconPositionType).PosBottom\n }, \"iconText\"])\n }, [\n _createVNode(_unref(Icon), {\n \"icon-name\": _ctx.iconName,\n md: _ctx.iconMd,\n sm: _ctx.iconSm,\n lg: _ctx.iconLg\n }, null, 8, [\"icon-name\", \"md\", \"sm\", \"lg\"]),\n (_ctx.text && !_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_1, _toDisplayString(_ctx.text), 1))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), { key: 1 }))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"default\")\n ], 2))\n}\n}\n\n})","import script from \"./IconText.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./IconText.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./IconText.vue?vue&type=style&index=0&id=05281cec&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-05281cec\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-3bbf05eb\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"inner\"\n}\nconst _hoisted_2 = { class: \"text\" }\nconst _hoisted_3 = [\"href\"]\n\nimport { Skeletor } from 'vue-skeletor';\nimport { Icon } from '../../Atoms';\nimport 'vue-skeletor/dist/vue-skeletor.css';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'InfoCard',\n props: {\n iconName: {},\n text: {},\n backgroundColor: {},\n borderColor: {},\n lg: { type: Boolean },\n isLoading: { type: Boolean },\n embeddedLink: {},\n embeddedLinkText: {}\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"infoCard\", { lg: _ctx.lg, loading: _ctx.isLoading }]),\n style: _normalizeStyle({\n backgroundColor: _ctx.isLoading ? 'transparent' : _ctx.backgroundColor,\n borderColor: _ctx.borderColor ? _ctx.borderColor : 'transparent',\n })\n }, [\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.iconName)\n ? (_openBlock(), _createBlock(_unref(Icon), {\n key: 0,\n \"icon-name\": _ctx.iconName\n }, null, 8, [\"icon-name\"]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"span\", _hoisted_2, [\n _createTextVNode(_toDisplayString(_ctx.text) + \" \", 1),\n (_ctx.embeddedLink && _ctx.embeddedLinkText)\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n class: \"embeddedLink\",\n href: _ctx.embeddedLink,\n target: \"_blank\"\n }, _toDisplayString(_ctx.embeddedLinkText), 9, _hoisted_3))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), { key: 1 }))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"default\")\n ], 6))\n}\n}\n\n})","import script from \"./InfoCard.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./InfoCard.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./InfoCard.vue?vue&type=style&index=0&id=3bbf05eb&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3bbf05eb\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-6fbb7106\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"portList\" }\nconst _hoisted_2 = { key: 1 }\nconst _hoisted_3 = {\n key: 0,\n role: \"img\",\n \"aria-hidden\": \"true\",\n width: \"20\",\n height: \"8\",\n viewBox: \"0 0 20 8\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n \"fill-rule\": \"evenodd\",\n \"clip-rule\": \"evenodd\",\n d: \"M13.25 7.79423L20 3.89711L13.25 0V3.39711H0V4.39711H13.25V7.79423Z\",\n fill: \"black\"\n}, null, -1))\nconst _hoisted_5 = [\n _hoisted_4\n]\nconst _hoisted_6 = {\n key: 0,\n class: \"portInfo code\"\n}\nconst _hoisted_7 = {\n key: 1,\n class: \"portInfo location\"\n}\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { class: \"portInfo routeCode\" }\nconst _hoisted_10 = { key: 2 }\nconst _hoisted_11 = {\n key: 0,\n role: \"img\",\n \"aria-hidden\": \"true\",\n width: \"20\",\n height: \"8\",\n viewBox: \"0 0 20 8\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"path\", {\n \"fill-rule\": \"evenodd\",\n \"clip-rule\": \"evenodd\",\n d: \"M13.25 7.79423L20 3.89711L13.25 0V3.39711H0V4.39711H13.25V7.79423Z\",\n fill: \"black\"\n}, null, -1))\nconst _hoisted_13 = [\n _hoisted_12\n]\n\nimport { computed } from 'vue';\nimport { Skeletor } from 'vue-skeletor';\nimport { Icon } from '../../Atoms/index';\nimport { Port } from '../../types';\nimport 'vue-skeletor/dist/vue-skeletor.css';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PortList',\n props: {\n ports: {},\n iconName: {},\n showPortCode: { type: Boolean, default: false },\n showPortLocation: { type: Boolean },\n isLoading: { type: Boolean, default: false },\n textCode: { default: '' },\n showTextCode: { type: Boolean, default: false }\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst displayTextCode = computed(() => props.showTextCode && props.textCode && !props.isLoading);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.iconName)\n ? (_openBlock(), _createBlock(_unref(Icon), {\n key: 0,\n \"icon-name\": _ctx.iconName,\n md: true\n }, null, 8, [\"icon-name\"]))\n : _createCommentVNode(\"\", true),\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.ports, (port, index) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: index,\n class: _normalizeClass({ hasCode: port.portCode || port.location })\n }, [\n (index > 0)\n ? (_openBlock(), _createElementBlock(\"svg\", _hoisted_3, _hoisted_5))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"span\", null, [\n _createTextVNode(_toDisplayString(port.name) + \" \", 1),\n (_ctx.showPortCode && port.portCode)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_6, _toDisplayString(port.portCode), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.showPortLocation && port.location)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_7, _toDisplayString(port.location), 1))\n : _createCommentVNode(\"\", true)\n ])\n ], 2))\n }), 128)),\n (displayTextCode.value)\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_8, [\n _createElementVNode(\"span\", _hoisted_9, \" : \" + _toDisplayString(_ctx.$t('Text code')) + \" \" + _toDisplayString(_ctx.textCode), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_10, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(2, (x, index) => {\n return _createElementVNode(\"li\", { key: index }, [\n (index > 0)\n ? (_openBlock(), _createElementBlock(\"svg\", _hoisted_11, _hoisted_13))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(Skeletor), {\n class: \"portSkeleton\",\n height: \"30\"\n })\n ])\n }), 64))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./PortList.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./PortList.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./PortList.vue?vue&type=style&index=0&id=6fbb7106&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6fbb7106\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, withKeys as _withKeys, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = [\"id\", \"aria-labelledby\"]\nconst _hoisted_2 = { class: \"left\" }\nconst _hoisted_3 = { key: 1 }\nconst _hoisted_4 = { key: 2 }\nconst _hoisted_5 = [\"onClick\"]\nconst _hoisted_6 = { key: 3 }\nconst _hoisted_7 = { class: \"location\" }\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = {\n key: 4,\n class: \"noSuggestions\"\n}\n\nimport { computed, ref } from 'vue';\nimport { Icon } from '../../Atoms';\nimport { PortList } from '../../Molecules';\nimport { RecentOrSuggestedSearchEntry, RecentOrSuggestedSearchEntryGroup } from '../../types';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RecentSearches',\n props: {\n title: {},\n searches: {},\n showSearches: { type: Boolean },\n showRouteMapButton: { type: Boolean },\n selectRouteMapCallback: {},\n ariaId: {},\n ariaLabeledBy: {},\n showPortCodes: { type: Boolean, default: false },\n noResultsText: { default: 'No suggestions found' },\n showTextCode: { type: Boolean, default: false }\n },\n emits: ['setSearchValue', 'setShowSearches', 'searchClick'],\n setup(__props: any) {\n\nconst closeOverlayButtonRef = ref(null);\n\n\nconst props = __props;\n\nconst groupedSearches = computed(() => {\n const groups: RecentOrSuggestedSearchEntryGroup[] = [];\n props.searches?.forEach((portList) => {\n if (!groups.find((x) => x.location === portList.location)) {\n groups.push({ location: portList.location, ports: [] } as RecentOrSuggestedSearchEntryGroup);\n }\n const group = groups.find((x) => x.location === portList.location);\n group?.ports.push(portList);\n });\n\n return groups;\n});\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.searches && _ctx.showSearches)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n id: _ctx.ariaId,\n \"aria-labelledby\": _ctx.ariaLabeledBy,\n role: \"listbox\",\n class: _normalizeClass([\"searchAutocomplete\", {emptyState: _ctx.searches.length === 0 || groupedSearches.value.length === 0}])\n }, [\n (_ctx.showRouteMapButton)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n class: \"routeMapButton\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.selectRouteMapCallback && _ctx.selectRouteMapCallback(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(Icon), { \"icon-name\": \"mapIconBlack\" }),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t('Select using route map')), 1)\n ]),\n _createVNode(_unref(Icon), { \"icon-name\": \"link\" })\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.searches.length > 0 || groupedSearches.value.length > 0)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_3, _toDisplayString(_ctx.title), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.searches.length > 0 && groupedSearches.value.length === 0)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.searches, (search, index) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: index,\n class: \"portPair\"\n }, [\n _createElementVNode(\"button\", {\n onClick: ($event: any) => {_ctx.$emit('setSearchValue', search);\n _ctx.$emit('setShowSearches', false);\n _ctx.$emit('searchClick')}\n }, [\n _createVNode(_unref(PortList), {\n \"icon-name\": search.iconName,\n ports: search.ports,\n \"show-port-code\": _ctx.showPortCodes,\n \"show-text-code\": _ctx.showTextCode,\n \"text-code\": search.textCode,\n class: \"listItem\"\n }, null, 8, [\"icon-name\", \"ports\", \"show-port-code\", \"show-text-code\", \"text-code\"])\n ], 8, _hoisted_5)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (groupedSearches.value && groupedSearches.value.length > 0)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_6, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(groupedSearches.value, (group, index) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: index }, [\n _createElementVNode(\"ul\", null, [\n _createElementVNode(\"li\", _hoisted_7, _toDisplayString(group.location), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(group.ports, (search, index) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: index,\n class: \"portPair\"\n }, [\n _createElementVNode(\"button\", {\n onClick: ($event: any) => {_ctx.$emit('setSearchValue', search);\n _ctx.$emit('setShowSearches', false);\n _ctx.$emit('searchClick')}\n }, [\n _createVNode(_unref(PortList), {\n \"icon-name\": search.iconName,\n ports: search.ports,\n \"show-port-code\": _ctx.showPortCodes,\n class: \"listItem\",\n \"show-text-code\": _ctx.showTextCode,\n \"text-code\": search.textCode\n }, null, 8, [\"icon-name\", \"ports\", \"show-port-code\", \"show-text-code\", \"text-code\"])\n ], 8, _hoisted_8)\n ]))\n }), 128))\n ])\n ]))\n }), 128))\n ]))\n : (_openBlock(), _createElementBlock(\"p\", _hoisted_9, _toDisplayString(_ctx.noResultsText), 1)),\n _createElementVNode(\"button\", {\n onKeydown: _cache[1] || (_cache[1] = _withKeys(($event: any) => {_ctx.$emit('setShowSearches', false);}, [\"tab\"])),\n class: \"srOnly\"\n }, \" Close overlay \", 32)\n ], 10, _hoisted_1))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./RecentSearches.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RecentSearches.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RecentSearches.vue?vue&type=style&index=0&id=1d4e2950&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-0b8d2331\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"serviceStatus\" }\nconst _hoisted_2 = { key: 0 }\n\nimport { ServiceStatusType } from '../../types/ServiceStatusType';\nimport { GetServiceStatus } from '.';\nimport { Icon } from '../../Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ServiceStatus',\n props: {\n status: {},\n showLabel: { type: Boolean }\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst serviceStatus = () => GetServiceStatus(props.status);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_unref(Icon), {\n \"icon-name\": serviceStatus().name,\n md: true\n }, null, 8, [\"icon-name\"]),\n (_ctx.showLabel)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(serviceStatus().text), 1))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./ServiceStatus.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ServiceStatus.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ServiceStatus.vue?vue&type=style&index=0&id=0b8d2331&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0b8d2331\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, renderSlot as _renderSlot, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-ba1aee36\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"routeDetail\" }\nconst _hoisted_2 = { class: \"header\" }\nconst _hoisted_3 = { class: \"routeWrapper\" }\n\nimport { Skeletor } from 'vue-skeletor';\nimport { PortList, IconText, ServiceStatus } from '..';\nimport { ServiceStatusType } from '../../types/ServiceStatusType';\nimport { Port } from '../../types';\nimport 'vue-skeletor/dist/vue-skeletor.css';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteDetail',\n props: {\n status: {},\n ports: {},\n destinationName: {},\n isLoading: { type: Boolean }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(IconText), {\n text: _ctx.destinationName,\n \"icon-name\": \"mapPin\",\n \"icon-md\": true,\n \"is-loading\": _ctx.isLoading\n }, null, 8, [\"text\", \"is-loading\"]),\n _renderSlot(_ctx.$slots, \"favourite\")\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n (_ctx.status && !_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(ServiceStatus), {\n key: 0,\n status: _ctx.status\n }, null, 8, [\"status\"]))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n class: \"vue-skeletor-status\"\n }))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(PortList), {\n ports: _ctx.ports,\n \"show-port-code\": true,\n \"is-loading\": _ctx.isLoading\n }, null, 8, [\"ports\", \"is-loading\"])\n ]),\n _renderSlot(_ctx.$slots, \"lastUpdated\"),\n _renderSlot(_ctx.$slots, \"infoCard\")\n ])\n ]))\n}\n}\n\n})","import script from \"./RouteDetail.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteDetail.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteDetail.vue?vue&type=style&index=0&id=ba1aee36&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-ba1aee36\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-3df5ebe5\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"statusText\"\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"arrowIcon\"\n}\n\nimport { Skeletor } from 'vue-skeletor';\nimport { Port } from '@/types';\nimport { ServiceStatusType } from '../../types/ServiceStatusType';\nimport { GetServiceStatus } from '../ServiceStatus/index';\nimport { RouteDetail } from '..';\nimport { Icon } from '../../Atoms';\nimport 'vue-skeletor/dist/vue-skeletor.css';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteItem',\n props: {\n status: {},\n ports: {},\n destinationName: {},\n clickHandler: { type: Function },\n isArrowHidden: { type: Boolean },\n isLoading: { type: Boolean }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"button\", {\n class: \"routeItem\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.clickHandler && _ctx.clickHandler(...args)))\n }, [\n _createVNode(_unref(RouteDetail), {\n status: _ctx.status,\n ports: _ctx.ports,\n \"destination-name\": _ctx.destinationName,\n \"is-loading\": _ctx.isLoading\n }, {\n infoCard: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"infoCard\", _ctx.status])\n }, [\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, _toDisplayString(_unref(GetServiceStatus)(_ctx.status).text), 1))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), { key: 1 }))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(Icon), { \"icon-name\": \"info\" })\n ], 2)\n ]),\n _: 1\n }, 8, [\"status\", \"ports\", \"destination-name\", \"is-loading\"]),\n (!_ctx.isArrowHidden)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createVNode(_unref(Icon), { \"icon-name\": \"redLink\" })\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./RouteItem.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteItem.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteItem.vue?vue&type=style&index=0&id=3df5ebe5&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3df5ebe5\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-0f2fff0b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"accordian\" }\nconst _hoisted_2 = { class: \"details\" }\nconst _hoisted_3 = [\"id\", \"aria-controls\", \"aria-expanded\", \"aria-label\"]\nconst _hoisted_4 = [\"id\", \"aria-labelledby\", \"aria-expanded\", \"aria-hidden\"]\n\nimport { ref } from 'vue';\nimport { Icon } from '../../Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Accordian',\n props: {\n isExpanded: { type: Boolean },\n panelId: {},\n controlId: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst isPanelExpanded = ref(props.isExpanded);\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"header\"),\n _createElementVNode(\"button\", {\n id: _ctx.controlId,\n \"aria-controls\": _ctx.panelId,\n \"aria-expanded\": isPanelExpanded.value,\n \"aria-label\": _ctx.$t('Expand accordian'),\n class: _normalizeClass([\"arrow\", {expanded: isPanelExpanded.value}]),\n onClick: _cache[0] || (_cache[0] = ($event: any) => (isPanelExpanded.value = !isPanelExpanded.value))\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"redChevron\" })\n ], 10, _hoisted_3)\n ]),\n _createElementVNode(\"div\", {\n id: _ctx.panelId,\n \"aria-labelledby\": _ctx.controlId,\n \"aria-expanded\": isPanelExpanded.value,\n \"aria-hidden\": !isPanelExpanded.value,\n role: \"region\",\n class: _normalizeClass([\"accordianContent\", {panelActive: isPanelExpanded.value}])\n }, [\n _renderSlot(_ctx.$slots, \"content\")\n ], 10, _hoisted_4)\n ]))\n}\n}\n\n})","import script from \"./Accordian.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Accordian.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Accordian.vue?vue&type=style&index=0&id=0f2fff0b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0f2fff0b\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { Icon } from '../../Atoms';\nimport { IconText } from '../../Molecules';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'OfflineBanner',\n props: {\n message: {},\n onClick: { type: Function }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"button\", {\n class: \"offline-banner\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.onClick && _ctx.onClick(...args)))\n }, [\n _createVNode(_unref(IconText), { \"icon-name\": \"OfflineIndicator\" }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.message), 1)\n ]),\n _: 1\n }),\n _createVNode(_unref(Icon), {\n class: \"info\",\n \"icon-name\": \"info\",\n md: \"\"\n })\n ]))\n}\n}\n\n})","import script from \"./OfflineBanner.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./OfflineBanner.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./OfflineBanner.vue?vue&type=style&index=0&id=6fe2bc2a&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6fe2bc2a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-599ec02d\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"routeSearchMap\" }\nconst _hoisted_2 = { key: 0 }\n\nimport { ref, watch, watchEffect, nextTick } from 'vue';\nimport { pixelBoundsToLatLngBounds } from '@googlemaps/markerclusterer';\nimport { InfoWindow } from 'vue3-google-map';\nimport { Map, Icon } from '../../Atoms';\nimport { RouteItem, OfflineBanner } from '../../Molecules';\nimport { GoogleMapsRoute, MapBounds, MapPort, RouteServiceStatus } from '../../types';\nimport { getMapBounds } from '../../helpers';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteSearchMap',\n props: {\n center: {},\n routes: {},\n ports: {},\n onRouteItemClick: { type: Function },\n offline: { type: Boolean },\n isStatusMap: { type: Boolean },\n isStaticMap: { type: Boolean },\n searchResults: {}\n },\n emits: ['onRouteItemClick'],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst selectedRoute = ref();\nconst mapRef = ref();\nconst portLabels = ref>(props.isStatusMap ? [] : props.ports);\nconst showLabels = ref(false);\nconst showRouteItem = ref(false);\n\nconst emit = __emit;\n\nfunction fitToBounds(bounds: MapBounds) {\n const gmap = mapRef.value?.map;\n if (!gmap) return;\n\n nextTick(() => {\n gmap.fitBounds(\n {\n north: bounds.north,\n east: bounds.east,\n south: bounds.south,\n west: bounds.west,\n },\n {\n padding: 50, // Adding padding to ensure the route is not cut off at the edges\n }\n );\n });\n}\n\nconst mapPortLabel = (port) => ({\n name: port.name,\n options: {\n position: {\n lat: port.latitude,\n lng: port.longitude,\n },\n }\n});\n\nfunction handleZoom(newZoom, initialZoom) {\n if (!props.isStatusMap) return;\n if (newZoom < initialZoom && !selectedRoute.value) showLabels.value = false;\n}\n\nfunction focusOnRoute(route) {\n console.log(route);\n const lats = route.ports.map((p) => p.latitude);\n const lngs = route.ports.map((p) => p.longitude);\n\n const mapBounds = getMapBounds(lats, lngs);\n mapBounds.south = props.isStatusMap ? 2 * mapBounds.south - mapBounds.north : mapBounds.south;\n\n fitToBounds(mapBounds);\n}\n\nfunction onPolylineClick(route) {\n if (!props.isStatusMap) return;\n showLabels.value = true;\n showRouteItem.value = true;\n\n selectedRoute.value = route;\n portLabels.value = route.ports.map(mapPortLabel);\n\n focusOnRoute(route);\n}\n\nfunction routeItemClickHandler() {\n emit('onRouteItemClick', selectedRoute.value.routeCode);\n}\n\nconst getPortOffset = () => {\n const gmap = mapRef.value?.map;\n const offset = -25 + (gmap ? gmap.getZoom() : 0);\n return offset;\n};\n\nwatchEffect(() => {\n if (props.searchResults) {\n const ports = props.searchResults.map((item) => item.ports).flat();\n\n const lats = ports.map((p) => p.latitude);\n const lngs = ports.map((p) => p.longitude);\n\n const mapBounds = getMapBounds(lats, lngs);\n\n showLabels.value = true;\n portLabels.value = ports.map(mapPortLabel);\n\n if (props.searchResults.length < 2) {\n showRouteItem.value = true;\n const route = {\n ...props.searchResults[0],\n name: props.searchResults[0].destinationName,\n };\n selectedRoute.value = route;\n\n mapBounds.south = 2 * mapBounds.south - mapBounds.north;\n } else {\n showRouteItem.value = false;\n }\n\n // Needed to add set timeout as if we call fitToBounds too soon the google map is not ready for\n // it and we get unpredictable results. Unfortunately there is nothing we can hook into...\n setTimeout(() => fitToBounds(mapBounds), 500);\n }\n});\n\nwatch(() => props.ports, (newPorts) => {\n if (!props.isStatusMap && newPorts) portLabels.value = newPorts;\n});\n\nwatch(() => mapRef.value, (map) => {\n if (!map || props.isStatusMap) return;\n\n if (props.routes) {\n focusOnRoute(props.routes[0]);\n }\n});\n\nwatch(() => props.routes, (newRoute) => {\n if (props.isStatusMap || !newRoute) return;\n\n focusOnRoute(newRoute[0]);\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_unref(Map), {\n \"is-static\": _ctx.isStaticMap,\n center: _ctx.center,\n routes: _ctx.routes,\n ports: _ctx.ports,\n onRouteClicked: onPolylineClick,\n onUpdateMapRef: _cache[0] || (_cache[0] = (map) => mapRef.value = map),\n onMapClicked: _cache[1] || (_cache[1] = () => showLabels.value = false),\n onZoomChange: _cache[2] || (_cache[2] = (newZoom, initialZoom) => handleZoom(newZoom, initialZoom))\n }, {\n customPortIcon: _withCtx(() => [\n _createVNode(_unref(Icon), {\n \"icon-name\": \"mapMarker\",\n lg: \"\"\n })\n ]),\n portInfoWindow: _withCtx(() => [\n (showLabels.value || !_ctx.isStatusMap)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(portLabels.value, (port, index) => {\n return (_openBlock(), _createBlock(_unref(InfoWindow), {\n key: index,\n class: \"portInfoWindow\",\n options: {\n position: {\n lat: port.options.position.lat,\n lng: port.options.position.lng,\n },\n pixelOffset: {\n width: 0,\n height: getPortOffset(),\n },\n }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"p\", null, _toDisplayString(port.name), 1)\n ]),\n _: 2\n }, 1032, [\"options\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"is-static\", \"center\", \"routes\", \"ports\"]),\n (showLabels.value && showRouteItem.value)\n ? (_openBlock(), _createBlock(_unref(RouteItem), {\n key: 0,\n class: _normalizeClass([\"routeCard\", { isResultCard: _ctx.searchResults }]),\n status: selectedRoute.value.status,\n ports: selectedRoute.value.ports,\n \"destination-name\": selectedRoute.value.name,\n onClick: routeItemClickHandler\n }, null, 8, [\"class\", \"status\", \"ports\", \"destination-name\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.offline)\n ? (_openBlock(), _createBlock(_unref(OfflineBanner), { key: 1 }))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./RouteSearchMap.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteSearchMap.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteSearchMap.vue?vue&type=style&index=0&id=599ec02d&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-599ec02d\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, unref as _unref, createBlock as _createBlock, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-70f1fc47\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"h5\"\n}\nconst _hoisted_2 = { class: \"accordianList\" }\nconst _hoisted_3 = { class: \"inner\" }\nconst _hoisted_4 = { class: \"main\" }\nconst _hoisted_5 = { class: \"col\" }\nconst _hoisted_6 = { class: \"col\" }\nconst _hoisted_7 = { class: \"content\" }\nconst _hoisted_8 = { class: \"actions\" }\nconst _hoisted_9 = [\"href\"]\nconst _hoisted_10 = [\"href\"]\nconst _hoisted_11 = { class: \"keyInfoWrapper\" }\nconst _hoisted_12 = { class: \"h4 keyInfoTitle\" }\nconst _hoisted_13 = [\"innerHTML\"]\nconst _hoisted_14 = { class: \"info\" }\nconst _hoisted_15 = { class: \"row\" }\nconst _hoisted_16 = { class: \"col\" }\nconst _hoisted_17 = { class: \"ports\" }\nconst _hoisted_18 = {\n key: 0,\n class: \"portlist\"\n}\nconst _hoisted_19 = [\"href\"]\nconst _hoisted_20 = {\n key: 1,\n class: \"loadingList\"\n}\nconst _hoisted_21 = { class: \"col\" }\nconst _hoisted_22 = { class: \"vessels\" }\nconst _hoisted_23 = { key: 0 }\nconst _hoisted_24 = [\"href\"]\nconst _hoisted_25 = {\n key: 1,\n class: \"loadingList\"\n}\n\nimport { Skeletor } from 'vue-skeletor';\nimport { RoutesServedType } from '../../types/RenderTypes';\nimport { Card, Icon } from '../../Atoms';\nimport {\n Accordian, PortList, IconText, RouteSearchMap,\n} from '../../Molecules';\nimport { ticketingUrl } from '../../envVariables';\nimport 'vue-skeletor/dist/vue-skeletor.css';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RoutesServed',\n props: {\n routes: {},\n isLoading: { type: Boolean },\n showDesktopView: { type: Boolean },\n expandFirstItem: { type: Boolean },\n isInteractiveMapView: { type: Boolean }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"routesServed\", {desktopView: _ctx.showDesktopView}])\n }, [\n (!_ctx.showDesktopView)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_1, _toDisplayString(_ctx.$t('Routes served')), 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"ul\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.routes, (route, index) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: `${route.routeCode}-${index}`\n }, [\n _createVNode(_unref(Accordian), {\n \"panel-id\": `${route.routeCode}-panel`,\n \"control-id\": `${route.routeCode}-control`,\n \"is-expanded\": _ctx.expandFirstItem ? index === 0 : false\n }, {\n header: _withCtx(() => [\n _createVNode(_unref(Card), null, {\n default: _withCtx(() => [\n (!_ctx.isInteractiveMapView)\n ? (_openBlock(), _createBlock(_unref(Icon), {\n key: 0,\n \"icon-name\": \"ferries\"\n }))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(PortList), {\n ports: route.portList,\n \"show-port-location\": true,\n \"is-loading\": _ctx.isLoading\n }, null, 8, [\"ports\", \"is-loading\"])\n ]),\n _: 2\n }, 1024)\n ]),\n content: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n (!_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(RouteSearchMap), {\n key: 0,\n \"is-static-map\": true,\n routes: route.routeMap,\n ports: route.mapPort\n }, null, 8, [\"routes\", \"ports\"]))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n class: \"mapSkeleton\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n (_ctx.showDesktopView)\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n href: _unref(ticketingUrl),\n class: \"button\"\n }, _toDisplayString(_ctx.$t('Buy tickets')), 9, _hoisted_9))\n : _createCommentVNode(\"\", true),\n (route.portList.length <= 2)\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 1,\n href: route.timetableLink,\n class: \"viewTimetableBtn button\"\n }, _toDisplayString(_ctx.$t('View timetable')), 9, _hoisted_10))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"h3\", _hoisted_12, _toDisplayString(_ctx.$t('Key information')), 1),\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"keyInfo\",\n innerHTML: route.keyInformation\n }, null, 8, _hoisted_13))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n class: \"keyInfoSkeleton\",\n height: \"50\",\n width: \"400\"\n }))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"h4\", null, _toDisplayString(_ctx.$t('More route information')), 1),\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"h5\", null, _toDisplayString(_ctx.$t('Ports')), 1),\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(route.portList, (port, index) => {\n return (_openBlock(), _createElementBlock(\"ul\", {\n key: `${port.name}-${index}`\n }, [\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"a\", {\n class: \"ctaLink\",\n href: port.portUrl\n }, [\n _createVNode(_unref(IconText), {\n text: port.name,\n \"icon-name\": \"anchor\"\n }, null, 8, [\"text\"])\n ], 8, _hoisted_19)\n ])\n ]))\n }), 128))\n ]))\n : (_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [\n _createElementVNode(\"ul\", null, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(3, (index) => {\n return _createElementVNode(\"li\", { key: index }, [\n _createVNode(_unref(Skeletor), {\n height: \"30\",\n width: \"200\"\n })\n ])\n }), 64))\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"h5\", null, _toDisplayString(_ctx.$t('Ferries')), 1),\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_23, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(route.vesselList, (vessel, index) => {\n return (_openBlock(), _createElementBlock(\"ul\", {\n key: `${vessel.name}-${index}`\n }, [\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"a\", {\n class: \"ctaLink\",\n href: vessel.vesselUrl\n }, [\n _createVNode(_unref(IconText), {\n text: vessel.name,\n \"icon-name\": \"ferry\"\n }, null, 8, [\"text\"])\n ], 8, _hoisted_24)\n ])\n ]))\n }), 128))\n ]))\n : (_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_25, [\n _createElementVNode(\"ul\", null, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(3, (index) => {\n return _createElementVNode(\"li\", { key: index }, [\n _createVNode(_unref(Skeletor), {\n height: \"30\",\n width: \"200\"\n })\n ])\n }), 64))\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ])\n ])\n ]),\n _: 2\n }, 1032, [\"panel-id\", \"control-id\", \"is-expanded\"])\n ]))\n }), 128))\n ])\n ], 2))\n}\n}\n\n})","import script from \"./RoutesServed.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RoutesServed.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RoutesServed.vue?vue&type=style&index=0&id=70f1fc47&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-70f1fc47\"]])\n\nexport default __exports__","import { Activity, Vessel } from './api';\n\nexport interface Center {\n lat: number;\n lng: number;\n}\n\nexport interface LatLng {\n lat: number;\n lng: number;\n}\n\nexport interface Options {\n position: LatLng;\n}\n\nexport interface MapBounds {\n north: number;\n east: number;\n south: number;\n west: number;\n}\nexport interface MapPort {\n name: string;\n options: Options;\n portCode?: string;\n image?: string;\n isFreight: boolean;\n hideOnMap: boolean;\n}\n\nexport interface MapLocation {\n name: string;\n options: Options;\n code?: string;\n image?: string;\n}\n\nexport interface Port {\n name: string;\n portCode?: string;\n latitude?: number;\n longitude?: number;\n order?: number;\n location?: string;\n portUrl?: string;\n isFreight?: boolean;\n hideOnMap?: boolean;\n}\n\nexport interface RecentOrSuggestedSearchEntry {\n ports: Port[];\n location?: string;\n routeId: string;\n routeCode?: string;\n textCode?: string;\n iconName: string;\n}\nexport interface RecentOrSuggestedSearchEntryGroup {\n ports: RecentOrSuggestedSearchEntry[];\n location?: string;\n}\n\nexport interface MapOptions {\n path: LatLng[];\n geodesic: boolean;\n strokeColor: string;\n strokeOpacity: number;\n strokeWeight: number;\n}\n\nexport interface GoogleMapsRoute {\n name: string;\n status?: string;\n ports: Port[];\n options: MapOptions;\n code?: string;\n location?: string;\n originPort?: Port;\n destinationPort?: Port;\n}\n\nexport interface IOfflineTimetable {\n title: string;\n portFrom?: string;\n portTo?: string;\n dateFrom?: Date;\n dateTo?: Date;\n timetablePdfUrl: string;\n timetableImageUrl: string;\n dateAdded?: Date;\n lastUpdated: string;\n key: string;\n}\n\nexport interface RouteInfo {\n icon: string;\n title: string;\n text: string;\n}\nexport interface CarouselDateItemProps {\n carouselItemDate: string;\n active: boolean;\n disabled: boolean;\n dayOfWeek: string;\n dayOfMonth: string;\n month: string;\n onClick?: ()=>void;\n}\nexport interface ServiceStatusKeyItem {\n iconName: string;\n heading: string;\n text: string;\n}\nexport enum SuggestionPortType {\n Origin = 0,\n Destination = 1,\n}\n\nexport enum OfflineTimetableDownloadStatus {\n NotDownloaded = 'Not downloaded',\n DownloadStarted = 'Download started',\n Downloaded = 'Downloaded',\n Error = 'Error',\n}\n\nexport interface IOfflineTimetableWithStatus extends IOfflineTimetable {\n downloadStatus: OfflineTimetableDownloadStatus;\n storagePath?: string;\n}\n\nexport interface RoutesServedType {\n routeCode: string;\n timetableLink?: string;\n keyInformation: string;\n portList: Array;\n vesselList: Array;\n routeMap?: Array;\n mapPort: Array;\n isFreight?: boolean;\n}\n\nexport interface InteractiveMapPanelViewModel {\n title: string;\n description: string;\n soundbiteUrl?: string;\n activities?: Array;\n address?: string;\n addressTitle?: string;\n linkText?: string;\n linkUrl?: string;\n routesServed?: Array;\n}\n","import { RecentOrSuggestedSearchEntry } from '../types/RenderTypes';\nimport { TimetableSearch } from '../types/api/index';\n\nexport const mapRecentSearches = (item:TimetableSearch) => ({\n iconName: 'clock',\n ports: [\n {\n name: item.from,\n },\n {\n name: item.to,\n }],\n routeCode: item.routeCode,\n} as RecentOrSuggestedSearchEntry);\n","import { PortPair } from '../apiTypes';\nimport { RecentOrSuggestedSearchEntry } from '../types';\n\nexport const mapPortPairToRecentOrSuggestedSearchEntry = (suggestion: PortPair) => ({\n iconName: 'mapPin',\n ports: [\n {\n name: suggestion.originPort,\n portCode: suggestion.originPortCode,\n },\n {\n name: suggestion.destinationPort,\n portCode: suggestion.destinationPortCode,\n },\n ],\n location: suggestion.originLocation,\n routeId: suggestion?.route?.id,\n routeCode: suggestion?.route?.routeCode,\n} as RecentOrSuggestedSearchEntry);\n","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = { class: \"timetableSearchInputWrapper\" }\nconst _hoisted_2 = { class: \"from\" }\nconst _hoisted_3 = [\"id\"]\nconst _hoisted_4 = [\"value\", \"aria-expanded\", \"placeholder\", \"disabled\"]\nconst _hoisted_5 = [\"aria-label\"]\nconst _hoisted_6 = [\"id\"]\nconst _hoisted_7 = [\"value\", \"aria-expanded\", \"placeholder\", \"disabled\"]\n\nimport { ref, watch } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { directive as vClickOutside } from 'click-outside-vue3';\nimport { RecentOrSuggestedSearchEntry, SuggestionPortType } from '../../types';\nimport { mapRecentSearches, mapPortPairToRecentOrSuggestedSearchEntry } from '../../maps';\nimport { Icon, Card } from '../../Atoms';\nimport { RecentSearches } from '../../Molecules';\nimport { IconText } from '..';\nimport { useTimetableStore } from '../../store';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TimetableSearchInput',\n props: {\n from: {},\n fromCode: {},\n fromLabel: {},\n fromPlaceholder: {},\n to: {},\n toCode: {},\n toLabel: {},\n toPlaceholder: {},\n disabled: { type: Boolean },\n error: { type: Boolean },\n isDuplicateRoute: { type: Boolean }\n },\n emits: ['updateFrom', 'updateTo', 'updateFromCode', 'updateToCode', 'updateRouteId', 'updateRouteCode', 'searchClick'],\n setup(__props: any, { emit: __emit }) {\n\nconst { t } = useI18n();\n\nconst props = __props;\n\n// Internal component state\nconst componentState = ref({\n switched: false,\n from: props.from ? props.from : '',\n fromCode: '',\n fromPlaceholder: props.fromPlaceholder,\n isFromFocus: false,\n to: props.to ? props.to : '',\n toCode: '',\n toPlaceholder: props.toPlaceholder,\n isToFocus: false,\n tempFrom: '',\n tempFromCode: '',\n tempTo: '',\n tempToCode: '',\n routeId: '',\n routeCode: '',\n showSearches: false,\n suggestions: [] as Array,\n suggestionsTitle: '',\n searchSelected: !!(props.from && props.to),\n});\n\n// Emittable events\n\nconst emit = __emit;\n\n// Initialise the store\n\nconst timetableStore = useTimetableStore();\n\n// Async functions for managing external state\n\nconst getSuggestions = async (\n portType: SuggestionPortType,\n newValue: string,\n) => {\n componentState.value.suggestionsTitle = newValue.length < 3 ? t('Recent') : t('Select a route');\n componentState.value = { ...componentState.value, showSearches: true };\n if (newValue.length < 3) {\n const recent = timetableStore.recentSearches;\n const recentSuggestions = recent?.map((item) => mapRecentSearches(item));\n componentState.value = {\n ...componentState.value,\n showSearches: recentSuggestions !== undefined && recentSuggestions.length > 0,\n };\n if (recentSuggestions) {\n componentState.value.suggestions = recentSuggestions;\n }\n } else if (portType === SuggestionPortType.Origin) {\n try {\n await timetableStore.getSuggestionsByOriginPortName(newValue);\n } catch (e) {\n console.log('e', e);\n }\n } else if (portType === SuggestionPortType.Destination) {\n try {\n await timetableStore.getSuggestionsByDestinationPortName(newValue);\n } catch (e) {\n console.log('e', e);\n }\n }\n};\n\nconst onOriginChanged = async (newValue: string) => {\n componentState.value = {\n ...componentState.value,\n from: newValue,\n searchSelected: !!(newValue && componentState.value.to),\n };\n await getSuggestions(SuggestionPortType.Origin, newValue);\n};\n\nconst onDestinationChanged = async (newValue: string) => {\n componentState.value = {\n ...componentState.value,\n searchSelected: !!(newValue && componentState.value.from),\n to: newValue,\n };\n await getSuggestions(SuggestionPortType.Destination, newValue);\n};\n\nconst switchLocations = () => {\n if (props.disabled) {\n return;\n }\n componentState.value.switched = !componentState.value.switched;\n};\n\n// Input event handlers\n\nconst updateEmits = () => {\n emit('updateFrom', componentState.value.from);\n emit('updateFromCode', componentState.value.fromCode);\n emit('updateTo', componentState.value.to);\n emit('updateToCode', componentState.value.toCode);\n emit('updateRouteId', componentState.value.routeId);\n emit('updateRouteCode', componentState.value.routeCode);\n};\n\nfunction handleFocus() {\n const focusComingFromPortSelection = componentState.value.isFromFocus\n || componentState.value.isToFocus;\n\n componentState.value = {\n ...componentState.value,\n searchSelected: false,\n tempFrom: focusComingFromPortSelection\n ? componentState.value.tempFrom\n : componentState.value.from,\n tempFromCode: focusComingFromPortSelection\n ? componentState.value.tempFromCode\n : componentState.value.fromCode,\n tempTo: focusComingFromPortSelection\n ? componentState.value.tempTo\n : componentState.value.to,\n tempToCode: focusComingFromPortSelection\n ? componentState.value.tempToCode\n : componentState.value.toCode,\n from: '',\n fromPlaceholder: '',\n to: '',\n toPlaceholder: '',\n routeId: '',\n routeCode: '',\n };\n}\n\nfunction handleBlur() {\n if (componentState.value.tempFrom !== '' || componentState.value.tempTo !== '') {\n componentState.value = {\n ...componentState.value,\n from: componentState.value.tempFrom,\n fromCode: componentState.value.tempFromCode,\n fromPlaceholder: props.fromPlaceholder,\n to: componentState.value.tempTo,\n toCode: componentState.value.tempToCode,\n toPlaceholder: props.toPlaceholder,\n searchSelected: !!(componentState.value.tempFromCode && componentState.value.tempToCode),\n tempFrom: '',\n tempFromCode: '',\n tempTo: '',\n tempToCode: '',\n };\n } else if (componentState.value.searchSelected === false) {\n componentState.value = {\n ...componentState.value,\n showSearches: false,\n from: '',\n fromCode: '',\n fromPlaceholder: props.fromPlaceholder,\n to: '',\n toCode: '',\n toPlaceholder: props.toPlaceholder,\n routeId: componentState.value.routeId,\n routeCode: componentState.value.routeCode,\n };\n } else {\n updateEmits();\n componentState.value = {\n ...componentState.value,\n showSearches: false,\n };\n }\n componentState.value.showSearches = false;\n componentState.value.isFromFocus = false;\n componentState.value.isToFocus = false;\n timetableStore.clearSuggestions();\n}\n\nconst onOriginFocused = async () => {\n handleFocus();\n componentState.value.isFromFocus = true;\n await getSuggestions(SuggestionPortType.Origin, '');\n};\n\nconst onDestinationFocused = async () => {\n handleFocus();\n componentState.value.isToFocus = true;\n await getSuggestions(SuggestionPortType.Destination, '');\n};\n\n// Recents list event handlers\n\nconst setSearchValue = (portCoupling: RecentOrSuggestedSearchEntry) => {\n componentState.value = {\n ...componentState.value,\n from: portCoupling.ports[0].name,\n fromCode: portCoupling.ports[0].portCode ?? '',\n to: portCoupling.ports[1].name,\n toCode: portCoupling.ports[1].portCode ?? '',\n tempFrom: '',\n tempFromCode: '',\n tempTo: '',\n tempToCode: '',\n routeId: portCoupling.routeId,\n routeCode: portCoupling.routeCode ? portCoupling.routeCode : '',\n searchSelected: true,\n isFromFocus: false,\n isToFocus: false,\n showSearches: false,\n };\n updateEmits();\n};\n\nwatch(() => props.from, (from) => {\n if (from !== undefined) {\n componentState.value = {\n ...componentState.value,\n from,\n };\n }\n});\n\nwatch(() => props.to, (to) => {\n if (to !== undefined) {\n componentState.value = {\n ...componentState.value,\n to,\n };\n }\n});\n\nwatch(() => timetableStore.portPairSuggestions, (portPairs) => {\n if (portPairs && portPairs.length > 0) {\n const suggestions = portPairs?.map((route) => mapPortPairToRecentOrSuggestedSearchEntry(route));\n componentState.value.suggestions = suggestions;\n } else {\n componentState.value.suggestions = [];\n }\n});\n\nwatch(() => componentState.value.switched, () => {\n const tempFrom = componentState.value.from;\n const tempFromCode = componentState.value.fromCode;\n const tempTo = componentState.value.to;\n const tempToCode = componentState.value.toCode;\n componentState.value.from = tempTo;\n componentState.value.fromCode = tempToCode;\n componentState.value.to = tempFrom;\n componentState.value.toCode = tempFromCode;\n updateEmits();\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_unref(Card), {\n class: _normalizeClass([\n 'timetableSearchInput',\n {\n disabled: _ctx.disabled,\n error: _ctx.error || _ctx.isDuplicateRoute,\n isFocus: (componentState.value.isFromFocus || componentState.value.isToFocus)\n && componentState.value.showSearches\n },\n ])\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(IconText), {\n class: \"placeholder\",\n \"icon-name\": \"searchMapPin\",\n \"icon-lg\": true\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"label\", {\n id: _ctx.fromLabel,\n for: \"from\"\n }, _toDisplayString(_ctx.fromLabel), 9, _hoisted_3)\n ]),\n _: 1\n }),\n _createElementVNode(\"input\", {\n id: \"from\",\n role: \"combobox\",\n value: componentState.value.from,\n type: \"text\",\n name: \"from\",\n \"aria-controls\": \"timetableSuggestions\",\n autocomplete: \"off\",\n \"aria-haspopup\": \"listbox\",\n \"aria-labelledby\": \"fromLabel\",\n \"aria-expanded\": componentState.value.showSearches,\n placeholder: componentState.value.fromPlaceholder,\n disabled: _ctx.disabled,\n onFocus: onOriginFocused,\n onInput: _cache[0] || (_cache[0] = ($event: any) => (onOriginChanged($event.target.value)))\n }, null, 40, _hoisted_4)\n ]),\n _createVNode(_unref(Card), {\n class: _normalizeClass([\"switch\", {fromFocus: componentState.value.isFromFocus && componentState.value.showSearches}])\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"button\", {\n \"aria-label\": _ctx.$t('Switch button aria label'),\n onClick: switchLocations\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"switch\" })\n ], 8, _hoisted_5)\n ]),\n _: 1\n }, 8, [\"class\"]),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"to\", {fromFocus: componentState.value.isFromFocus && componentState.value.showSearches}])\n }, [\n _createVNode(_unref(IconText), {\n class: \"placeholder\",\n \"icon-name\": \"searchMapPin\",\n \"icon-lg\": true\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"label\", {\n id: _ctx.toLabel,\n for: \"to\"\n }, _toDisplayString(_ctx.toLabel), 9, _hoisted_6)\n ]),\n _: 1\n }),\n _createElementVNode(\"input\", {\n id: \"to\",\n role: \"combobox\",\n \"aria-haspopup\": \"listbox\",\n value: componentState.value.to,\n \"aria-controls\": \"timetableSuggestions\",\n \"aria-labelledby\": \"toLabel\",\n type: \"text\",\n name: \"to\",\n autocomplete: \"off\",\n \"aria-expanded\": componentState.value.showSearches,\n placeholder: componentState.value.toPlaceholder,\n disabled: _ctx.disabled,\n onFocus: onDestinationFocused,\n onInput: _cache[1] || (_cache[1] = ($event: any) => (onDestinationChanged($event.target.value)))\n }, null, 40, _hoisted_7)\n ], 2)\n ]),\n _: 1\n }, 8, [\"class\"]),\n _createVNode(_unref(RecentSearches), {\n class: _normalizeClass({\n isFocus: (componentState.value.isFromFocus || componentState.value.isToFocus)\n && componentState.value.showSearches\n }),\n title: componentState.value.suggestionsTitle,\n \"show-searches\": componentState.value.showSearches,\n searches: componentState.value.suggestions,\n \"aria-id\": \"timetableSuggestions\",\n onSetSearchValue: _cache[2] || (_cache[2] = (value) => setSearchValue(value))\n }, null, 8, [\"class\", \"title\", \"show-searches\", \"searches\"])\n ])), [\n [_unref(vClickOutside), handleBlur]\n ])\n}\n}\n\n})","import script from \"./TimetableSearchInput.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TimetableSearchInput.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TimetableSearchInput.vue?vue&type=style&index=0&id=1b6f6b3b&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, unref as _unref, createVNode as _createVNode, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-53f17606\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"map-link\" }\n\nimport { Icon } from '../../Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'InteractiveMapLink',\n props: {\n link: {},\n icon: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst routeToMap = () => {\n window.location.href = props.link;\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n _createTextVNode(_toDisplayString(_ctx.$t('Not Sure?')) + \" \", 1),\n _createElementVNode(\"a\", { onClick: routeToMap }, [\n _createTextVNode(_toDisplayString(_ctx.$t('Explore our interactive map')) + \" \", 1),\n _createVNode(_unref(Icon), {\n \"icon-name\": _ctx.icon,\n sm: \"\"\n }, null, 8, [\"icon-name\"])\n ])\n ]))\n}\n}\n\n})","import script from \"./InteractiveMapLink.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./InteractiveMapLink.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./InteractiveMapLink.vue?vue&type=style&index=0&id=53f17606&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-53f17606\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-2426d31a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"top\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"date\"\n}\nconst _hoisted_3 = { class: \"datepickerLabel\" }\nconst _hoisted_4 = { class: \"row\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"date\"\n}\nconst _hoisted_6 = { class: \"datepickerLabel\" }\n\nimport { ref } from 'vue';\nimport { INFO_CARD_COLOR } from '@constants/info-card-color';\nimport { timetableBackupUrl } from '../../envVariables';\nimport { Button } from '../../Atoms';\nimport {\n TimetableSearchResults,\n TimetableSearchInput,\n InteractiveMapLink,\n DatePickerCalendar,\n InfoCard,\n} from '../../Molecules';\nimport { Sailing } from '../../types/Sailing';\nimport { useTimetableStore } from '../../stores';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TimetableSearch',\n props: {\n from: {},\n to: {},\n mapLink: {},\n initialDate: {},\n toInputLabel: {},\n fromInputLabel: {},\n fromPlaceholder: {},\n toPlaceholder: {},\n datePickerLabel: {},\n todayText: {},\n buttonText: {},\n displayResults: { type: Boolean },\n disabled: { type: Boolean },\n isBannerView: { type: Boolean },\n datepickerTeleportId: {},\n isIonicApp: { type: Boolean }\n },\n emits: ['timetableSearchClick'],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst timetableStore = useTimetableStore();\n\nconst emit = __emit;\n\nconst fromInput = ref();\nconst toInput = ref();\nconst dateInput = ref(props.initialDate);\nconst routeCode = ref('');\nconst timetableSearchResults = ref();\n\nconst handleSearch = (\n originPortName: string | undefined,\n destinationPortName: string | undefined,\n sailingDate: string,\n selectedRouteCode: string,\n) => {\n const from = originPortName ?? props.from;\n const to = destinationPortName ?? props.to;\n const code = selectedRouteCode ?? routeCode.value;\n\n emit('timetableSearchClick', from, to, sailingDate, code);\n};\n\nconst onDateSelected = (date) => {\n dateInput.value = date;\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"timetableSearch\", { disabled:_ctx.disabled, bannerView: _ctx.isBannerView }])\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_unref(TimetableSearchInput), {\n from: _ctx.from,\n \"from-label\": _ctx.fromInputLabel ? _ctx.fromInputLabel : _ctx.$t('From'),\n \"from-placeholder\": _ctx.fromPlaceholder ? _ctx.fromPlaceholder : _ctx.$t('Timetable search placeholder'),\n to: _ctx.to,\n \"to-label\": _ctx.toInputLabel ? _ctx.toInputLabel : _ctx.$t('To'),\n \"to-placeholder\": _ctx.toPlaceholder ? _ctx.toPlaceholder : _ctx.$t('Timetable search placeholder'),\n error: false,\n disabled: _ctx.disabled,\n onUpdateFrom: _cache[0] || (_cache[0] = (value) => (fromInput.value = value)),\n onUpdateTo: _cache[1] || (_cache[1] = (value) => (toInput.value = value)),\n onUpdateRouteCode: _cache[2] || (_cache[2] = (value) => (routeCode.value = value))\n }, null, 8, [\"from\", \"from-label\", \"from-placeholder\", \"to\", \"to-label\", \"to-placeholder\", \"disabled\"]),\n (_ctx.isBannerView)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(_ctx.datePickerLabel ? _ctx.datePickerLabel : _ctx.$t(\"Outbound date\")), 1),\n _createVNode(_unref(DatePickerCalendar), {\n \"date-format\": 'dd/MM/yyyy',\n disabled: _ctx.disabled,\n \"initial-date\": _ctx.initialDate,\n \"today-text\": _ctx.todayText ? _ctx.todayText : _ctx.$t('Today'),\n \"onUpdate:selectedDate\": onDateSelected\n }, null, 8, [\"disabled\", \"initial-date\", \"today-text\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n (_ctx.mapLink && !_ctx.isBannerView)\n ? (_openBlock(), _createBlock(_unref(InteractiveMapLink), {\n key: 0,\n icon: \"mapIcon\",\n link: _ctx.mapLink\n }, null, 8, [\"link\"]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_4, [\n (!_ctx.isBannerView)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"span\", _hoisted_6, _toDisplayString(_ctx.datePickerLabel ? _ctx.datePickerLabel : _ctx.$t(\"Outbound date\")), 1),\n _createVNode(_unref(DatePickerCalendar), {\n \"teleport-id\": _ctx.datepickerTeleportId,\n \"date-format\": 'dd/MM/yyyy',\n disabled: _ctx.disabled,\n \"initial-date\": _ctx.initialDate,\n \"today-text\": _ctx.todayText ? _ctx.todayText : _ctx.$t('Today'),\n \"onUpdate:selectedDate\": onDateSelected\n }, null, 8, [\"teleport-id\", \"disabled\", \"initial-date\", \"today-text\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.mapLink && _ctx.isBannerView)\n ? (_openBlock(), _createBlock(_unref(InteractiveMapLink), {\n key: 1,\n icon: \"mapIcon\",\n link: _ctx.mapLink\n }, null, 8, [\"link\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(Button), {\n label: _ctx.buttonText,\n secondary: true,\n \"on-click\": ()=>handleSearch(fromInput.value, toInput.value, dateInput.value, routeCode.value),\n disabled: _ctx.disabled\n }, null, 8, [\"label\", \"on-click\", \"disabled\"])\n ]),\n (timetableSearchResults.value && _ctx.displayResults)\n ? (_openBlock(), _createBlock(_unref(timetableSearchResults), {\n key: 1,\n sailings: timetableSearchResults.value,\n \"is-loading\": _unref(timetableStore).isLoading,\n \"is-error\": _unref(timetableStore).isServerError\n }, null, 8, [\"sailings\", \"is-loading\", \"is-error\"]))\n : _createCommentVNode(\"\", true),\n (_unref(timetableStore).isServerError)\n ? (_openBlock(), _createBlock(_unref(InfoCard), {\n key: 2,\n \"icon-name\": \"warning\",\n text: _ctx.$t('Trouble retrieving timetables'),\n \"embedded-link\": _unref(timetableBackupUrl),\n \"embedded-link-text\": 'here.',\n lg: true,\n \"background-color\": _unref(INFO_CARD_COLOR).white,\n \"border-color\": _unref(INFO_CARD_COLOR).red\n }, null, 8, [\"text\", \"embedded-link\", \"background-color\", \"border-color\"]))\n : _createCommentVNode(\"\", true)\n ], 2))\n}\n}\n\n})","import script from \"./TimetableSearch.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TimetableSearch.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TimetableSearch.vue?vue&type=style&index=0&id=2426d31a&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2426d31a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-0267be88\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"header\" }\nconst _hoisted_2 = [\"aria-label\"]\nconst _hoisted_3 = [\"id\", \"checked\", \"value\"]\nconst _hoisted_4 = [\"for\"]\n\nimport { ref } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { Icon } from '../../Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'FilterWindow',\n props: {\n isFilterOpen: { type: Boolean },\n isMobile: { type: Boolean }\n },\n emits: ['setItemChecked', 'closeFilter'],\n setup(__props: any, { emit: __emit }) {\n\nconst { t } = useI18n();\n\nconst props = __props;\n\nconst emits = __emit;\n\nconst closeFilters = (e) => {\n e.preventDefault();\n emits('closeFilter');\n};\n\nconst checkItems = [\n {\n id: props.isMobile ? 'filterDestinations' : 'filterDestinations_mobile',\n value: 'destinations',\n checked: true,\n },\n {\n id: props.isMobile ? 'filterPorts' : 'filterPorts_mobile',\n value: 'ports',\n checked: false,\n },\n {\n id: props.isMobile ? 'filterRoutes' : 'filterRoutes_mobile',\n value: 'routes',\n checked: false,\n },\n];\n\nconst getCheckedIconText = (item: string) => {\n switch (item) {\n case 'destinations':\n return { icon: 'mapPin', text: t('Show all destinations') };\n case 'ports':\n return { icon: 'anchor', text: t('Show all ports') };\n default:\n return { icon: 'routes', text: t('Show all routes') };\n }\n};\n\n\nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"filterWindow\", {\n mobileFilterWindow:_ctx.isMobile,\n modalExpanded: _ctx.isFilterOpen\n }])\n }, [\n _createElementVNode(\"form\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_unref(Icon), { \"icon-name\": \"filter\" }),\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t('Filter')), 1),\n _createElementVNode(\"button\", {\n class: \"mobileExpandBtn\",\n \"aria-label\": _ctx.$t('Close filters'),\n onClick: closeFilters\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"close\" })\n ], 8, _hoisted_2)\n ]),\n _createElementVNode(\"fieldset\", null, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(checkItems, (item, index) => {\n return _createElementVNode(\"div\", {\n key: index,\n class: \"inputWrapper\"\n }, [\n _createElementVNode(\"input\", {\n id: item.id,\n checked: item.checked,\n type: \"checkbox\",\n name: \"filter\",\n value: item.value,\n onChange: _cache[0] || (_cache[0] = (e) => _ctx.$emit('setItemChecked', e))\n }, null, 40, _hoisted_3),\n _createElementVNode(\"label\", {\n for: item.id\n }, [\n _createVNode(_unref(Icon), {\n \"icon-name\": getCheckedIconText(item.value).icon\n }, null, 8, [\"icon-name\"]),\n _createTextVNode(\" \" + _toDisplayString(getCheckedIconText(item.value).text), 1)\n ], 8, _hoisted_4)\n ])\n }), 64))\n ])\n ])\n ], 2)), [\n [_vShow, _ctx.isFilterOpen]\n ])\n}\n}\n\n})","import script from \"./FilterWindow.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./FilterWindow.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./FilterWindow.vue?vue&type=style&index=0&id=0267be88&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0267be88\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withDirectives as _withDirectives, Teleport as _Teleport, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-5d12efbc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"filterWrapper\" }\nconst _hoisted_2 = { class: \"filterBtnWrapper\" }\nconst _hoisted_3 = { key: 0 }\n\nimport { filter } from 'dom7';\nimport {\n onMounted, onUnmounted, ref,\n} from 'vue';\nimport { directive as vClickOutside } from 'click-outside-vue3';\nimport { Icon } from '../../Atoms';\nimport FilterWindow from './FilterWindow.vue';\nimport { SMALL_DESKTOP_VIEWPORT_WIDTH } from '../../config';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'FilterMapButton',\n emits: ['toggleCheckedItems'],\n setup(__props, { emit: __emit }) {\n\nconst isFilterOpen = ref(!(window.innerWidth <= SMALL_DESKTOP_VIEWPORT_WIDTH));\nconst selectedItems = ref>(['destinations']);\n\nconst windowWidth = ref(window.innerWidth);\n\nconst emits = __emit;\n\nconst removeMobileOverlay = () => {\n document.querySelector('body')?.classList.remove('darkOverlay');\n};\n\nconst addMobileOverlay = () => {\n document.querySelector('body')?.classList.add('darkOverlay');\n};\n\nconst handleFilterBtnClick = () => {\n isFilterOpen.value = !isFilterOpen.value;\n\n // add overlay and stopscroll class to html and body tags for filter modal on mobile\n if (windowWidth.value <= SMALL_DESKTOP_VIEWPORT_WIDTH) {\n if (isFilterOpen.value) {\n addMobileOverlay();\n } else {\n removeMobileOverlay();\n }\n }\n};\n\nconst setItemChecked = (e) => {\n emits('toggleCheckedItems', e.target.value, e.target.checked);\n if (!selectedItems.value.includes(e.target.value) && e.target.checked) {\n selectedItems.value.push(e.target.value);\n }\n if (!e.target.checked) {\n selectedItems.value = selectedItems.value.filter((x) => x !== e.target.value);\n }\n};\n\nconst getCheckedIcon = (item: string) => {\n switch (item) {\n case 'destinations':\n return 'mapPinRed';\n case 'ports':\n return 'anchorRed';\n default:\n return 'routesRed';\n }\n};\n\nconst handleCloseMobileFilter = () => {\n isFilterOpen.value = false;\n removeMobileOverlay();\n};\n\nonMounted(() => {\n window.addEventListener('resize', () => {\n windowWidth.value = window.innerWidth;\n if (windowWidth.value >= SMALL_DESKTOP_VIEWPORT_WIDTH) {\n removeMobileOverlay();\n }\n });\n});\n\nonUnmounted(() => {\n window.removeEventListener('resize', () => {\n windowWidth.value = window.innerWidth;\n });\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"button\", {\n class: _normalizeClass([\"filterMapButton\", {removeBottomRadius: isFilterOpen.value,\n removeRightRadius: selectedItems.value.length > 0 && !isFilterOpen.value}]),\n onClick: handleFilterBtnClick\n }, [\n _createVNode(_unref(Icon), {\n \"icon-name\": \"filter\",\n class: \"filterIcon\"\n }),\n _createTextVNode(\" \" + _toDisplayString(isFilterOpen.value ? _ctx.$t('Hide filters') : _ctx.$t('Show filters')), 1)\n ], 2),\n (!isFilterOpen.value && selectedItems.value.length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"selectedPanel\", {noText: selectedItems.value.length > 0}])\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(selectedItems.value, (item, index) => {\n return (_openBlock(), _createBlock(_unref(Icon), {\n key: index,\n \"icon-name\": getCheckedIcon(item)\n }, null, 8, [\"icon-name\"]))\n }), 128)),\n (selectedItems.value.length === 1)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, _toDisplayString(selectedItems.value[0]), 1))\n : _createCommentVNode(\"\", true)\n ], 2))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(FilterWindow, {\n \"is-filter-open\": isFilterOpen.value,\n class: \"desktopFilterWindow\",\n onSetItemChecked: _cache[0] || (_cache[0] = (e) => setItemChecked(e))\n }, null, 8, [\"is-filter-open\"])\n ]),\n (_openBlock(), _createBlock(_Teleport, {\n to: \"body\",\n class: \"mobile\"\n }, [\n (windowWidth.value <= _unref(SMALL_DESKTOP_VIEWPORT_WIDTH))\n ? _withDirectives((_openBlock(), _createBlock(FilterWindow, {\n key: 0,\n \"is-filter-open\": isFilterOpen.value,\n \"is-mobile\": true,\n onSetItemChecked: _cache[1] || (_cache[1] = (e) => setItemChecked(e)),\n onCloseFilter: handleCloseMobileFilter\n }, null, 8, [\"is-filter-open\"])), [\n [_unref(vClickOutside), handleCloseMobileFilter]\n ])\n : _createCommentVNode(\"\", true)\n ]))\n ], 64))\n}\n}\n\n})","import script from \"./FilterMapButton.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./FilterMapButton.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./FilterMapButton.vue?vue&type=style&index=0&id=5d12efbc&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5d12efbc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, createBlock as _createBlock, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-31712cd7\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"inner\" }\nconst _hoisted_2 = { class: \"header\" }\nconst _hoisted_3 = { class: \"title\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"h1\"\n}\nconst _hoisted_5 = [\"aria-label\"]\nconst _hoisted_6 = [\"src\"]\nconst _hoisted_7 = {\n key: 0,\n class: \"preamble\"\n}\nconst _hoisted_8 = {\n key: 2,\n class: \"itemContainer\"\n}\nconst _hoisted_9 = { class: \"icon\" }\nconst _hoisted_10 = [\"src\"]\nconst _hoisted_11 = {\n key: 4,\n class: \"address\"\n}\nconst _hoisted_12 = { class: \"h4\" }\nconst _hoisted_13 = {\n key: 5,\n class: \"ctaLink rte\"\n}\nconst _hoisted_14 = [\"href\"]\n\nimport { Skeletor } from 'vue-skeletor';\nimport { Icon, RoutesServed } from '@components';\nimport { InteractiveMapPanelViewModel } from '@components/types/RenderTypes';\nimport 'vue-skeletor/dist/vue-skeletor.css';\nimport { ref } from 'vue';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PanelViewModal',\n props: {\n viewModal: {},\n isLoading: { type: Boolean }\n },\n setup(__props: any) {\n\nconst audioElement = ref(null);\n\n\n\nconst toggleAudio = () => {\n const audioSound = audioElement.value;\n if (audioSound) {\n if (audioSound.paused) {\n audioSound.play();\n } else {\n audioSound.pause();\n }\n }\n};\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"h2\", _hoisted_4, _toDisplayString(_ctx.viewModal.title), 1))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n shimmer: true,\n class: \"titleSkeleton\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.viewModal.soundbiteUrl && !_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 2,\n class: \"audioIcon\",\n \"aria-label\": _ctx.$t('Audio button aria label'),\n onClick: toggleAudio\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"audio\" }),\n _createElementVNode(\"audio\", {\n ref_key: \"audioElement\",\n ref: audioElement,\n src: _ctx.viewModal.soundbiteUrl\n }, null, 8, _hoisted_6)\n ], 8, _hoisted_5))\n : _createCommentVNode(\"\", true)\n ]),\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_7, _toDisplayString(_ctx.viewModal.description), 1))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n class: \"preambleSkeleton\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.viewModal.activities && !_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.viewModal.activities, (activity, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: index,\n class: \"item\"\n }, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"img\", {\n src: activity.icon,\n alt: \"\"\n }, null, 8, _hoisted_10)\n ]),\n _createElementVNode(\"p\", null, _toDisplayString(activity.description), 1)\n ]))\n }), 128))\n ]))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 3,\n class: \"activitiesSkeleton\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.viewModal.address && !_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, [\n _createElementVNode(\"h2\", _hoisted_12, _toDisplayString(_ctx.viewModal.addressTitle), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.viewModal.address), 1)\n ]))\n : _createCommentVNode(\"\", true),\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_13, [\n _createElementVNode(\"a\", {\n href: _ctx.viewModal.linkUrl\n }, _toDisplayString(_ctx.viewModal.linkText), 9, _hoisted_14)\n ]))\n : (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 6,\n class: \"linkSkeleton\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(_unref(RoutesServed), {\n routes: _ctx.viewModal.routesServed,\n \"is-loading\": _ctx.isLoading,\n \"is-interactive-map-view\": true\n }, null, 8, [\"routes\", \"is-loading\"])\n ]))\n}\n}\n\n})","import script from \"./PanelViewModal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./PanelViewModal.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./PanelViewModal.vue?vue&type=style&index=0&id=31712cd7&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-31712cd7\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-d5622d9c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"aria-hidden\", \"aria-expanded\"]\nconst _hoisted_2 = [\"aria-label\"]\nconst _hoisted_3 = [\"aria-label\"]\nconst _hoisted_4 = { class: \"inner\" }\n\nimport { useLocationStore, usePortStore, useRoutesStore } from '@components/stores';\nimport {\n MapPort, MapLocation, GoogleMapsRoute, InteractiveMapPanelViewModel,\n} from '@components/types';\nimport { directive as vClickOutside } from 'click-outside-vue3';\nimport { ref, watch, watchEffect } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { Icon, PanelViewModal } from '../..';\nimport { SMALL_DESKTOP_VIEWPORT_WIDTH } from '../../config';\nimport { routeInformationUrl } from '../../envVariables';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MoreInfoPanel',\n props: {\n isOpen: { type: Boolean },\n closeCallback: { type: Function },\n port: {},\n destination: {},\n route: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst { t } = useI18n();\n\nconst isSmallScreenWidth = window.innerWidth <= SMALL_DESKTOP_VIEWPORT_WIDTH;\nconst locationStore = useLocationStore();\nconst portStore = usePortStore();\nconst routeStore = useRoutesStore();\n\nconst isModalExpand = ref(false);\nconst isLoading = ref(false);\n\nconst initialViewState = {\n title: '',\n description: '',\n soundbiteUrl: undefined,\n activities: undefined,\n address: undefined,\n addressTitle: undefined,\n linkText: '',\n linkUrl: '',\n routesServed: undefined,\n};\n\nconst viewState = ref(initialViewState);\n\nconst handleClickOutside = () => {\n if (isSmallScreenWidth) {\n props.closeCallback();\n }\n isModalExpand.value = false;\n};\n\nconst toggleModal = () => {\n isModalExpand.value = !isModalExpand.value;\n};\n\nconst updateLocation = (location) => {\n viewState.value = {\n ...initialViewState,\n title: location.name,\n description: location.description ?? '',\n soundbiteUrl: location.soundbiteUrl,\n activities: location.activities,\n linkText: t('Discover destination', [location.name]),\n linkUrl: location.locationUrl,\n routesServed: locationStore.getLocationsServed,\n };\n};\n\nconst updatePort = (port) => {\n viewState.value = {\n ...initialViewState,\n title: port.name ?? '',\n description: port.description ?? '',\n address: port.address,\n addressTitle: t('Port location'),\n linkText: t('Find out more'),\n linkUrl: port.portUrl,\n routesServed: portStore.getPortsServed,\n };\n};\n\nconst updateRoute = (route) => {\n viewState.value = {\n ...initialViewState,\n title: t('Route info'),\n description: route.description ?? '',\n linkText: t('More route info and fares'),\n linkUrl: `${routeInformationUrl}/${route.routeCode}`,\n routesServed: routeStore.getRoutesServed ? [routeStore.getRoutesServed] : [],\n };\n};\n\nwatchEffect(async () => {\n if (props.destination && props.destination.code) {\n await locationStore.requestLocationsServed(props.destination.code);\n if (locationStore.locationsServed) {\n updateLocation(locationStore.locationsServed);\n }\n } else if (props.port && props.port.portCode) {\n await portStore.requestPortsServed(props.port.portCode);\n if (portStore.portsServed) {\n updatePort(portStore.portsServed);\n }\n } else if (props.route && props.route.code) {\n await routeStore.requestRouteServed(props.route.code);\n if (routeStore.routeServed) {\n updateRoute(routeStore.routeServed);\n }\n }\n});\n\nwatchEffect(() => {\n if (routeStore.routeServed) {\n updateRoute(routeStore.routeServed);\n }\n});\n\nwatchEffect(() => {\n if (locationStore.locationsServed) {\n updateLocation(locationStore.locationsServed);\n }\n});\n\nwatchEffect(() => {\n if (portStore.portsServed) {\n updatePort(portStore.portsServed);\n }\n});\n\nwatchEffect(() => {\n isLoading.value = routeStore.isLoading || portStore.isLoading || locationStore.isLoading;\n});\n\nwatch(() => props.isOpen, (isPanelOpen) => {\n if (isPanelOpen && isSmallScreenWidth) {\n document.querySelector('body')?.classList.add('exploreMapActive');\n } else if (!isPanelOpen && isSmallScreenWidth) {\n document.querySelector('body')?.classList.remove('exploreMapActive');\n }\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"moreInfoPanel\", {panelActive: _ctx.isOpen, modalExpanded: isModalExpand.value}]),\n \"aria-hidden\": !_ctx.isOpen,\n \"aria-expanded\": _ctx.isOpen\n }, [\n _createElementVNode(\"button\", {\n class: \"overlayClose\",\n \"aria-label\": _ctx.$t('Close overlay aria label'),\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.closeCallback && _ctx.closeCallback(...args)))\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"close\" })\n ], 8, _hoisted_2),\n _createElementVNode(\"button\", {\n class: _normalizeClass([\"mobileExpandBtn\", {expanded: isModalExpand.value}]),\n \"aria-label\": isModalExpand.value ? _ctx.$t('Collapse modal') : _ctx.$t('Expand modal'),\n onClick: toggleModal\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"expandIcon\" })\n ], 10, _hoisted_3),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_unref(PanelViewModal), {\n \"view-modal\": viewState.value,\n \"is-loading\": isLoading.value\n }, null, 8, [\"view-modal\", \"is-loading\"])\n ])\n ], 10, _hoisted_1)), [\n [_unref(vClickOutside), handleClickOutside]\n ])\n}\n}\n\n})","import script from \"./MoreInfoPanel.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./MoreInfoPanel.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./MoreInfoPanel.vue?vue&type=style&index=0&id=d5622d9c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-d5622d9c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-89699d20\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"interactiveMap\" }\nconst _hoisted_2 = { class: \"h5\" }\nconst _hoisted_3 = [\"aria-label\"]\nconst _hoisted_4 = {\n key: 0,\n class: \"routeInfoWindow\"\n}\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = [\"src\", \"alt\"]\nconst _hoisted_7 = { key: 0 }\nconst _hoisted_8 = [\"src\", \"alt\"]\n\nimport { useRoutesStore } from '@components/store';\nimport {\n onMounted, onUnmounted, ref, watchEffect,\n} from 'vue';\nimport {\n InfoWindow,\n} from 'vue3-google-map';\nimport {\n GoogleMapsRoute, LatLng, MapLocation, MapPort,\n} from '../../types';\nimport {\n Map, FilterMapButton, Icon, RouteDetail,\n MoreInfoPanel,\n} from '../..';\nimport { SMALL_DESKTOP_VIEWPORT_WIDTH } from '../../config';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'InteractiveMap',\n props: {\n isActive: { type: Boolean }\n },\n emits: ['closeExploreMap'],\n setup(__props: any) {\n\n\n\n\n\nconst routesStore = useRoutesStore();\n\nconst mapRef = ref();\nconst mapCenter = ref({ lat: 56.30867, lng: -5.958157 });\nconst ports = ref();\nconst destinations = ref(routesStore.getAllMapDestinationsNoStatus);\nconst routes = ref();\n\nconst destinationLabel = ref();\nconst portLabel = ref();\nconst routeLabel = ref();\n\nconst destinationClicked = ref();\nconst portClicked = ref();\nconst routeClicked = ref();\n\nconst isOverlayOpen = ref(false);\n\nconst isSmallScreenWidth = window.innerWidth <= SMALL_DESKTOP_VIEWPORT_WIDTH;\nconst mainNav = document.querySelector('.mainNavigation');\n\nconst addStopScroll = () => {\n if (!document.querySelector('html')?.classList.contains('stopScroll')) {\n document.querySelector('html')?.classList.add('stopScroll');\n if (!mainNav) return;\n mainNav.style.display = 'none';\n }\n};\n\nconst removeStopScroll = () => {\n if ((document.querySelector('html')?.classList.contains('stopScroll'))) {\n document.querySelector('html')?.classList.remove('stopScroll');\n if (!mainNav) return;\n mainNav.style.display = 'block';\n }\n};\n\nonMounted(async () => {\n await routesStore.requestAllRoutesMapCoords();\n\n if (window.innerWidth <= SMALL_DESKTOP_VIEWPORT_WIDTH) {\n addStopScroll();\n }\n\n window.addEventListener('resize', () => {\n if (window.innerWidth <= SMALL_DESKTOP_VIEWPORT_WIDTH) {\n addStopScroll();\n }\n if (window.innerWidth >= SMALL_DESKTOP_VIEWPORT_WIDTH) {\n removeStopScroll();\n }\n });\n});\n\nonUnmounted(() => {\n removeStopScroll();\n\n window.removeEventListener('resize', () => {\n if (window.innerWidth <= SMALL_DESKTOP_VIEWPORT_WIDTH) {\n addStopScroll();\n }\n if (window.innerWidth >= SMALL_DESKTOP_VIEWPORT_WIDTH) {\n removeStopScroll();\n }\n });\n});\n\nconst resetLabels = () => {\n destinationLabel.value = undefined;\n portLabel.value = undefined;\n routeLabel.value = undefined;\n};\n\nconst resetClickedItems = () => {\n destinationClicked.value = undefined;\n portClicked.value = undefined;\n routeClicked.value = undefined;\n};\n\nconst toggleMapView = (item, isChecked) => {\n switch (item) {\n case 'destinations':\n if (isChecked) destinations.value = routesStore.getAllMapDestinationsNoStatus;\n else destinations.value = undefined;\n break;\n case 'ports':\n if (isChecked) ports.value = routesStore.getAllMapPortsNoStatus;\n else ports.value = undefined;\n break;\n default:\n if (isChecked) routes.value = routesStore.getAllMapRoutesNoStatus;\n else routes.value = undefined;\n }\n};\n\nconst fitToBounds = (east: number, north: number, south: number, west: number, padding = 0) => {\n const gmap = mapRef.value?.map;\n\n gmap.fitBounds({\n east,\n north,\n south,\n west,\n }, padding);\n};\n\nconst centerPinOnMap = (latlng: LatLng) => {\n const east = latlng.lng + 0.5;\n const north = latlng.lat + 0.5;\n const south = isSmallScreenWidth ? latlng.lat - 1.5 : latlng.lat - 0.5;\n const west = isSmallScreenWidth ? latlng.lng - 0.5 : latlng.lng - 1.5;\n\n fitToBounds(east, north, south, west);\n};\n\nconst handlePortClick = (port: MapPort) => {\n isOverlayOpen.value = true;\n resetLabels();\n resetClickedItems();\n\n portClicked.value = port;\n\n centerPinOnMap(port.options.position);\n};\n\nconst handleDestinationClick = (destination: MapLocation) => {\n isOverlayOpen.value = true;\n resetLabels();\n resetClickedItems();\n\n destinationClicked.value = destination;\n\n centerPinOnMap(destination.options.position);\n};\n\nconst handleRouteClick = (route: GoogleMapsRoute) => {\n isOverlayOpen.value = true;\n resetLabels();\n resetClickedItems();\n\n routeClicked.value = route;\n\n const maxLat = Math.max(...route.ports.map((p) => (p.latitude ? p.latitude : 0)));\n const minLat = Math.min(...route.ports.map((p) => (p.latitude ? p.latitude : 0)));\n const maxLng = Math.max(...route.ports.map((p) => (p.longitude ? p.longitude : 0)));\n const minLng = Math.min(...route.ports.map((p) => (p.longitude ? p.longitude : 0)));\n\n const west = isSmallScreenWidth ? minLng : minLng - 1;\n const south = isSmallScreenWidth ? minLat - 0.5 : minLat;\n fitToBounds(maxLng, maxLat, south, west);\n};\n\nconst getLabelOffset = () => {\n const gmap = mapRef.value?.map;\n const offset = -25 + (gmap ? gmap.getZoom() : 0);\n return offset;\n};\n\nwatchEffect(() => {\n destinations.value = routesStore.getAllMapDestinationsNoStatus;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"mobileTop\", {panelActive: _ctx.isActive}])\n }, [\n _createElementVNode(\"p\", _hoisted_2, _toDisplayString(_ctx.$t('Explore map')), 1),\n _createElementVNode(\"button\", {\n \"aria-label\": _ctx.$t('Close explore map panel'),\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.$emit('closeExploreMap')))\n }, [\n _createVNode(_unref(Icon), {\n \"icon-name\": \"close\",\n md: \"\"\n })\n ], 8, _hoisted_3)\n ], 2),\n _createVNode(_unref(Map), {\n center: mapCenter.value,\n ports: ports.value,\n destinations: destinations.value,\n \"destination-hover-item\": destinationLabel.value,\n \"destination-click-item\": destinationClicked.value,\n \"port-hover-item\": portLabel.value,\n \"port-click-item\": portClicked.value,\n routes: routes.value,\n \"route-hover-item\": routeLabel.value,\n \"route-click-item\": routeClicked.value,\n onUpdateMapRef: _cache[1] || (_cache[1] = (map) => mapRef.value = map),\n onMapClicked: resetLabels,\n onDestinationHovered: _cache[2] || (_cache[2] = (destination) => destinationLabel.value = destination),\n onDestinationLeave: _cache[3] || (_cache[3] = ($event: any) => (destinationLabel.value = undefined)),\n onDestinationClicked: _cache[4] || (_cache[4] = (destination) => handleDestinationClick(destination)),\n onPortHovered: _cache[5] || (_cache[5] = (port) => portLabel.value = port),\n onPortLeave: _cache[6] || (_cache[6] = ($event: any) => (portLabel.value = undefined)),\n onPortClicked: _cache[7] || (_cache[7] = (port) => handlePortClick(port)),\n onRouteHovered: _cache[8] || (_cache[8] = (route) => routeLabel.value = route),\n onRouteLeave: _cache[9] || (_cache[9] = ($event: any) => (routeLabel.value = undefined)),\n onRouteClicked: _cache[10] || (_cache[10] = (route) => handleRouteClick(route))\n }, {\n routeInfoWindow: _withCtx(() => [\n (routeLabel.value && routeLabel.value !== routeClicked.value && !isSmallScreenWidth)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createVNode(_unref(RouteDetail), {\n ports: [routeLabel.value.originPort, routeLabel.value.destinationPort],\n \"destination-name\": routeLabel.value.location\n }, null, 8, [\"ports\", \"destination-name\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n customPortIcon: _withCtx(() => [\n _createVNode(_unref(Icon), {\n class: \"mapIcon\",\n \"icon-name\": \"anchorPin\",\n lg: \"\"\n })\n ]),\n customPortIconHover: _withCtx(() => [\n _createVNode(_unref(Icon), {\n class: \"mapIcon\",\n \"icon-name\": \"anchorPinHover\",\n lg: \"\"\n })\n ]),\n customPortIconSelected: _withCtx(() => [\n _createVNode(_unref(Icon), {\n class: \"mapIcon selected\",\n \"icon-name\": \"anchorPinHover\",\n lg: \"\"\n })\n ]),\n portInfoWindow: _withCtx(() => [\n (portLabel.value && portLabel.value !== portClicked.value && !isSmallScreenWidth)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createVNode(_unref(InfoWindow), {\n class: \"infoWindow\",\n options: {\n position: {\n lat: portLabel.value.options.position.lat,\n lng: portLabel.value.options.position.lng,\n },\n pixelOffset: {\n width: 0,\n height: getLabelOffset(),\n },\n }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"img\", {\n src: portLabel.value.image,\n alt: _ctx.$t('Port image')\n }, null, 8, _hoisted_6),\n _createElementVNode(\"p\", null, _toDisplayString(portLabel.value.name), 1)\n ]),\n _: 1\n }, 8, [\"options\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n customDestinationIcon: _withCtx(() => [\n _createVNode(_unref(Icon), {\n class: \"mapIcon\",\n \"icon-name\": \"redMapPin\",\n lg: \"\"\n })\n ]),\n customDestinationIconHover: _withCtx(() => [\n _createVNode(_unref(Icon), {\n class: \"mapIcon\",\n \"icon-name\": \"redMapPinHover\",\n lg: \"\"\n })\n ]),\n customDestinationIconSelected: _withCtx(() => [\n _createVNode(_unref(Icon), {\n class: \"mapIcon selected\",\n \"icon-name\": \"redMapPinHover\",\n lg: \"\"\n })\n ]),\n destinationInfoWindow: _withCtx(() => [\n (destinationLabel.value && destinationLabel.value !== destinationClicked.value\n && !isSmallScreenWidth)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createVNode(_unref(InfoWindow), {\n class: \"infoWindow\",\n options: {\n position: {\n lat: destinationLabel.value.options.position.lat,\n lng: destinationLabel.value.options.position.lng,\n },\n pixelOffset: {\n width: 0,\n height: getLabelOffset(),\n },\n }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"img\", {\n src: destinationLabel.value.image,\n alt: _ctx.$t('Destination image')\n }, null, 8, _hoisted_8),\n _createElementVNode(\"p\", null, _toDisplayString(destinationLabel.value.name), 1)\n ]),\n _: 1\n }, 8, [\"options\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"center\", \"ports\", \"destinations\", \"destination-hover-item\", \"destination-click-item\", \"port-hover-item\", \"port-click-item\", \"routes\", \"route-hover-item\", \"route-click-item\"]),\n _createVNode(_unref(FilterMapButton), { onToggleCheckedItems: toggleMapView }),\n _createVNode(_unref(MoreInfoPanel), {\n \"is-open\": isOverlayOpen.value,\n \"close-callback\": () => {\n isOverlayOpen.value = false;\n resetClickedItems();\n },\n destination: destinationClicked.value,\n port: portClicked.value,\n route: routeClicked.value\n }, null, 8, [\"is-open\", \"close-callback\", \"destination\", \"port\", \"route\"])\n ]))\n}\n}\n\n})","import script from \"./InteractiveMap.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./InteractiveMap.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./InteractiveMap.vue?vue&type=style&index=0&id=89699d20&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-89699d20\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"consumer\" }\n\nimport { ref } from 'vue';\nimport { InteractiveMap } from '@components/Molecules';\nimport InteractiveMapLanding from './InteractiveMapLanding.vue';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'InteractiveMapApp',\n props: {\n title: {},\n text: {}\n },\n setup(__props: any) {\n\n\n\nconst isExploreMap = ref(false);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"section\", _hoisted_1, [\n (!isExploreMap.value)\n ? (_openBlock(), _createBlock(InteractiveMapLanding, {\n key: 0,\n title: _ctx.title,\n text: _ctx.text,\n onSetExploreBtnClicked: _cache[0] || (_cache[0] = (isClicked) => isExploreMap.value = isClicked)\n }, null, 8, [\"title\", \"text\"]))\n : _createCommentVNode(\"\", true),\n (isExploreMap.value)\n ? (_openBlock(), _createBlock(_unref(InteractiveMap), {\n key: 1,\n \"is-active\": isExploreMap.value,\n onCloseExploreMap: _cache[1] || (_cache[1] = ($event: any) => (isExploreMap.value = false))\n }, null, 8, [\"is-active\"]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./InteractiveMapApp.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./InteractiveMapApp.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '../assets/interactiveMap.jpg'\nimport _imports_1 from '../assets/interactiveMapRetina.jpg'\n\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-b54471c0\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = _imports_0 + ' 1x, ' + _imports_1 + ' 2x'\nconst _hoisted_2 = { class: \"interactiveMapBanner\" }\nconst _hoisted_3 = { class: \"inner\" }\nconst _hoisted_4 = { class: \"text\" }\nconst _hoisted_5 = { class: \"dashedBorder\" }\nconst _hoisted_6 = { class: \"preamble\" }\nconst _hoisted_7 = { class: \"image\" }\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"img\", {\n srcset: _hoisted_1,\n loading: \"lazy\",\n alt: \"\"\n}, null, -1))\n\nimport { Button, IconText } from '@components';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'InteractiveMapLanding',\n props: {\n title: {},\n text: {}\n },\n emits: ['setExploreBtnClicked'],\n setup(__props: any) {\n\n\n\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"h1\", _hoisted_5, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.title), 1)\n ]),\n _createElementVNode(\"p\", _hoisted_6, _toDisplayString(_ctx.text), 1),\n _createVNode(_unref(Button), {\n label: _ctx.$t('Explore map'),\n \"on-click\": () => _ctx.$emit('setExploreBtnClicked', true)\n }, null, 8, [\"label\", \"on-click\"])\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createVNode(_unref(Button), {\n class: \"mobileExploreBtn\",\n label: \"\",\n \"on-click\": () => _ctx.$emit('setExploreBtnClicked', true)\n }, {\n default: _withCtx(() => [\n _createVNode(_unref(IconText), {\n \"icon-name\": \"mapIconBlack\",\n text: _ctx.$t('Explore map')\n }, null, 8, [\"text\"])\n ]),\n _: 1\n }, 8, [\"on-click\"])\n ])\n ])\n ]))\n}\n}\n\n})","import script from \"./InteractiveMapLanding.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./InteractiveMapLanding.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./InteractiveMapLanding.vue?vue&type=style&index=0&id=b54471c0&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-b54471c0\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createBlock as _createBlock } from \"vue\"\n\nimport { ref, watchEffect } from 'vue';\nimport {\n Map,\n Icon,\n GoogleMapsRoute,\n} from '@components';\nimport { useRoutesStore } from '@components/stores';\nimport { mapRoutesToMapRoutes, mapPortToMapPort } from '@components/maps';\nimport { MapPort } from '@components/types';\nimport {\n InfoWindow,\n} from 'vue3-google-map';\nimport { getMapBounds } from '@components/helpers';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MapApp',\n props: {\n isStatic: { type: Boolean },\n routeCode: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst routeStore = useRoutesStore();\nconst mapRef = ref();\n\nconst route = ref();\nconst ports = ref>();\n\nrouteStore.requestRouteMapByRouteCode(props.routeCode);\n\nconst getPortOffset = () => {\n const gmap = mapRef.value?.map;\n const offset = -25 + (gmap ? gmap.getZoom() : 0);\n return offset;\n};\n\nwatchEffect(() => {\n if (routeStore.routeInfoMap) {\n route.value = mapRoutesToMapRoutes(routeStore.routeInfoMap);\n ports.value = routeStore.routeInfoMap.ports.map(mapPortToMapPort);\n\n const gmap = mapRef.value?.map;\n\n if (!gmap) return;\n\n const lats = ports.value.map((p) => p.options.position.lat);\n const lngs = ports.value.map((p) => p.options.position.lng);\n gmap.fitBounds(\n getMapBounds(lats, lngs),\n 70,\n );\n }\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_unref(Map), {\n center: { lat: 55.609867, lng: -4.958157 },\n routes: route.value ? [route.value] : undefined,\n ports: ports.value,\n \"is-static\": _ctx.isStatic,\n class: \"staticMap\",\n onUpdateMapRef: _cache[0] || (_cache[0] = (map) => mapRef.value = map)\n }, {\n customPortIcon: _withCtx(() => [\n _createVNode(_unref(Icon), {\n \"icon-name\": \"mapMarker\",\n lg: \"\"\n })\n ]),\n portInfoWindow: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(ports.value, (port, index) => {\n return (_openBlock(), _createBlock(_unref(InfoWindow), {\n key: index,\n class: \"portInfoWindow\",\n options: {\n position: {\n lat: port.options.position.lat,\n lng: port.options.position.lng,\n },\n pixelOffset: {\n width: 0,\n height: getPortOffset(),\n },\n }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"p\", null, _toDisplayString(port.name), 1)\n ]),\n _: 2\n }, 1032, [\"options\"]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"routes\", \"ports\", \"is-static\"]))\n}\n}\n\n})","import script from \"./MapApp.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./MapApp.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./MapApp.vue?vue&type=style&index=0&id=39904d74&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-39904d74\"]])\n\nexport default __exports__","import gql from 'graphql-tag';\n\nconst getVesselsServedByVesselCodeQuery = gql`\nquery\n($vesselCode: String)\n{\n vessels (where: {vesselCode: {eq: $vesselCode}})\n {\n name\n vesselCode\n routes{\n routeCode\n keyInformation\n polyline\n vessels{\n name\n vesselUrl\n vesselCode\n }\n ports{\n name\n portCode\n portUrl\n longitude\n latitude\n location{\n name\n }\n }\n }\n }\n }\n`;\n\nexport {\n getVesselsServedByVesselCodeQuery,\n};\n","import { provideApolloClient, useQuery } from '@vue/apollo-composable';\nimport { defineStore } from 'pinia';\nimport { ref } from 'vue';\nimport { getVesselsServedByVesselCodeQuery } from './queries/vessel';\nimport { apolloClient } from '../services/ApolloClient';\nimport { Vessel } from '../apiTypes';\nimport { mapRoutesToMapRoutes, mapRouteToRouteServed } from '../maps';\nimport { RoutesServedType } from '../types/RenderTypes';\n\nprovideApolloClient(apolloClient);\n\nconst vesselsServed = ref();\nconst isLoading = ref(false);\n\nconst processResult = ((queryResult, document) => {\n if (document.value.loc?.source.body === getVesselsServedByVesselCodeQuery.loc?.source.body) {\n vesselsServed.value = queryResult.data?.vessels[0];\n }\n});\n\nexport const vesselStoreDefinition = {\n state: () => ({\n vesselsServed,\n isLoading,\n }),\n actions: {\n async requestVesselsServed(vesselCode: string) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(getVesselsServedByVesselCodeQuery, {\n vesselCode,\n });\n isLoading.value = loading.value;\n\n onError((error) => {\n isLoading.value = loading.value;\n console.log('requestVesselsServed: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n },\n getters: {\n getVesselsServed() {\n return vesselsServed.value?.routes\n ? vesselsServed.value.routes.map((route) => ({\n ...mapRouteToRouteServed(route),\n routeMap: [mapRoutesToMapRoutes(route)],\n } as RoutesServedType))\n : undefined;\n },\n },\n};\n\nexport const useVesselStore = defineStore('vesselStore', vesselStoreDefinition);\n","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-0ee1efa0\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"consumer routesServedWrapper\"\n}\nconst _hoisted_2 = { class: \"container\" }\nconst _hoisted_3 = { class: \"dashedBorder\" }\n\nimport { RoutesServed as RoutesServedComponent } from '@components';\nimport {\n onMounted,\n ref,\n watch,\n} from 'vue';\nimport { RoutesServedType } from '@components/renderTypes';\nimport { usePortStore, useLocationStore, useVesselStore } from '@components/stores';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RoutesServedIndex',\n props: {\n portCode: {},\n locationCode: {},\n vesselCode: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst portStore = usePortStore();\nconst locationStore = useLocationStore();\nconst vesselStore = useVesselStore();\n\nconst routesServed = ref>();\n\nonMounted(async () => {\n if (props.portCode) {\n await portStore.requestPortsServed(props.portCode);\n routesServed.value = portStore.getPortsServed;\n }\n if (props.locationCode) {\n await locationStore.requestLocationsServed(props.locationCode);\n routesServed.value = locationStore.getLocationsServed;\n }\n if (props.vesselCode) {\n await vesselStore.requestVesselsServed(props.vesselCode);\n routesServed.value = vesselStore.getVesselsServed;\n }\n});\n\nwatch(() => portStore.portsServed, (port) => {\n if (port) {\n routesServed.value = portStore.getPortsServed;\n }\n});\n\nwatch(() => locationStore.locationsServed, (location) => {\n if (location) {\n routesServed.value = locationStore.getLocationsServed;\n }\n});\n\nwatch(() => vesselStore.vesselsServed, (vessel) => {\n if (vessel) {\n routesServed.value = vesselStore.getVesselsServed;\n }\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (routesServed.value && routesServed.value.length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"h2\", _hoisted_3, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('Routes served')), 1)\n ]),\n _createVNode(_unref(RoutesServedComponent), {\n routes: routesServed.value,\n \"show-desktop-view\": true,\n \"expand-first-item\": true\n }, null, 8, [\"routes\"])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./RoutesServedIndex.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RoutesServedIndex.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RoutesServedIndex.vue?vue&type=style&index=0&id=0ee1efa0&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0ee1efa0\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-3299194b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"downloadApp\"\n}\nconst _hoisted_2 = { class: \"text\" }\nconst _hoisted_3 = { class: \"h1\" }\nconst _hoisted_4 = { class: \"preamble\" }\nconst _hoisted_5 = { class: \"buttonWrapper\" }\nconst _hoisted_6 = [\"href\"]\nconst _hoisted_7 = [\"href\"]\nconst _hoisted_8 = { class: \"preview\" }\nconst _hoisted_9 = [\"src\", \"alt\"]\n\nimport { ref } from 'vue';\nimport { Icon } from '../../Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DownloadApp',\n props: {\n title: {},\n text: {},\n imageSrc: {},\n imageAlt: {},\n downloadLink: {},\n downloadLinkText: {},\n alertLink: {},\n alertLinkText: {}\n },\n setup(__props: any) {\n\nconst showComponent = ref(true);\n\nconst closeComponent = () => {\n showComponent.value = false;\n};\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (showComponent.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"button\", {\n class: \"closeButton\",\n onClick: closeComponent\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"close-white\" })\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"h2\", _hoisted_3, _toDisplayString(_ctx.title), 1),\n _createElementVNode(\"p\", _hoisted_4, _toDisplayString(_ctx.text), 1),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"a\", {\n href: _ctx.downloadLink,\n class: \"button\"\n }, _toDisplayString(_ctx.downloadLinkText), 9, _hoisted_6),\n _createElementVNode(\"a\", {\n href: _ctx.alertLink,\n class: \"button\"\n }, _toDisplayString(_ctx.alertLinkText), 9, _hoisted_7)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"img\", {\n src: _ctx.imageSrc,\n loading: \"lazy\",\n class: \"backgroundImage\",\n alt: _ctx.imageAlt\n }, null, 8, _hoisted_9)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./DownloadApp.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DownloadApp.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./DownloadApp.vue?vue&type=style&index=0&id=3299194b&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3299194b\"]])\n\nexport default __exports__","import { RouteServiceStatus } from '../types/RouteServiceStatus';\nimport {\n Route,\n} from '../types/api/index';\nimport { mapPort, parseRouteStatusByStatusCategory, sortPorts } from '.';\n\nexport const mapRoutes = (item: Route) => ({\n id: item.id,\n routeCode: item.routeCode,\n destinationName: item.location?.name,\n ports: item.ports.map(mapPort).sort(sortPorts),\n status: parseRouteStatusByStatusCategory(item.status),\n isFreight: item.isFreight || false,\n hideOnMap: item.hideOnMap || false,\n} as RouteServiceStatus);\n","import { defineComponent as _defineComponent } from 'vue'\nimport { withKeys as _withKeys, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-c46a4410\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"aria-expanded\", \"aria-haspopup\", \"aria-controls\", \"aria-labelledby\"]\nconst _hoisted_2 = [\"id\", \"placeholder\", \"value\", \"disabled\"]\nconst _hoisted_3 = [\"aria-label\"]\n\nimport { Icon } from '../../Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Searchbox',\n props: {\n id: {},\n placeholder: {},\n value: {},\n disabled: { type: Boolean },\n ariaExpanded: { type: Boolean },\n ariaHasPopup: { type: Boolean },\n ariaLabeledBy: {},\n ariaControls: {},\n hideSearchBtn: { type: Boolean },\n error: { type: Boolean }\n },\n emits: ['update', 'searchClick', 'setIsFocus'],\n setup(__props: any) {\n\nconst props = __props;\n\n\nconst handleClick = () => {\n if (props.disabled) {\n return;\n }\n emit('searchClick');\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"search-container\", { disabled: _ctx.disabled, error: (_ctx.error ? 'error': '') }]),\n role: \"combobox\",\n \"aria-expanded\": _ctx.ariaExpanded,\n \"aria-haspopup\": _ctx.ariaHasPopup,\n \"aria-controls\": _ctx.ariaControls,\n \"aria-labelledby\": _ctx.ariaLabeledBy\n }, [\n _createElementVNode(\"input\", {\n id: _ctx.id,\n placeholder: _ctx.placeholder,\n autocomplete: \"off\",\n type: \"search\",\n value: _ctx.value,\n disabled: _ctx.disabled,\n onInput: _cache[0] || (_cache[0] = ($event: any) => (_ctx.$emit('update', $event.target.value))),\n onKeyup: _cache[1] || (_cache[1] = _withKeys(($event: any) => (_ctx.$emit('searchClick')), [\"enter\"])),\n onFocus: _cache[2] || (_cache[2] = ($event: any) => (_ctx.$emit('setIsFocus', true))),\n onBlur: _cache[3] || (_cache[3] = ($event: any) => (_ctx.$emit('setIsFocus', false)))\n }, null, 40, _hoisted_2),\n (_ctx.hideSearchBtn)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n class: _normalizeClass([\"searchBtn\", { disabled: _ctx.disabled }]),\n \"aria-label\": _ctx.$t('Search button aria label'),\n onClick: handleClick\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"search\" })\n ], 10, _hoisted_3))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"default\")\n ], 10, _hoisted_1))\n}\n}\n\n})","import script from \"./Searchbox.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Searchbox.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Searchbox.vue?vue&type=style&index=0&id=c46a4410&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-c46a4410\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, renderSlot as _renderSlot, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-5e17acda\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"serviceStatusSearch\" }\nconst _hoisted_2 = [\"id\", \"for\"]\nconst _hoisted_3 = [\"aria-label\"]\n\nimport { ref, watch } from 'vue';\nimport { directive as vClickOutside } from 'click-outside-vue3';\nimport { Searchbox, Icon } from '../../Atoms';\nimport { RecentSearches } from '../../Molecules';\nimport { RecentOrSuggestedSearchEntry } from '../../types';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ServiceStatusSearchbox',\n props: {\n placeholder: {},\n searchInputId: {},\n searchInputLabel: {},\n disabled: { type: Boolean },\n suggestions: {},\n suggestionsTitle: {},\n showSearches: { type: Boolean },\n showRouteMapButton: { type: Boolean },\n selectRouteMapCallback: { type: Function },\n hideSearchBtn: { type: Boolean }\n },\n emits: ['updateSearchValue', 'clearSearchValue', 'setShowSearches', 'getIsFocus', 'searchClick'],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\nconst searchValue = ref('');\nconst placeholder = ref(props.placeholder);\n\nconst hideSuggestions = () => {\n emit('setShowSearches', false);\n};\n\nconst setSearchValue = (value) => {\n let inputText;\n value.ports.forEach((portname) => {\n inputText = inputText !== undefined ? `${inputText} - ${portname.name}` : portname.name;\n });\n\n searchValue.value = inputText;\n emit('updateSearchValue', inputText);\n};\n\nconst searchClick = () => {\n if (searchValue.value.trim().length !== 0) {\n emit('searchClick');\n }\n};\n\nwatch(() => props.placeholder, (newPlaceholder) => {\n placeholder.value = newPlaceholder;\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"label\", {\n id: _ctx.searchInputLabel ? _ctx.searchInputLabel : 'serviceStatusLabel',\n for: _ctx.searchInputId ? _ctx.searchInputId : 'serviceStatusInput'\n }, _toDisplayString(_ctx.$t('Search routes')), 9, _hoisted_2),\n _createVNode(_unref(Searchbox), {\n id: _ctx.searchInputId ? _ctx.searchInputId : 'serviceStatusInput',\n \"aria-expanded\": _ctx.showSearches,\n \"aria-labelledby\": _ctx.searchInputLabel ? _ctx.searchInputLabel : 'serviceStatusLabel',\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": \"serviceStatusListbox\",\n placeholder: placeholder.value,\n value: searchValue.value,\n disabled: _ctx.disabled ?? false,\n \"hide-search-btn\": _ctx.hideSearchBtn,\n error: false,\n onUpdate: _cache[1] || (_cache[1] = \n (value) => {\n searchValue.value = value;\n _ctx.$emit('updateSearchValue', searchValue.value);\n }\n ),\n onSearchClick: searchClick,\n onSetIsFocus: _cache[2] || (_cache[2] = (isFocus) => _ctx.$emit('getIsFocus', isFocus))\n }, {\n default: _withCtx(() => [\n (searchValue.value.length > 0)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n class: _normalizeClass([\"clearButton\", { noSearchBtn: !_ctx.hideSearchBtn }]),\n \"aria-label\": _ctx.$t('Clear button aria label'),\n onClick: _cache[0] || (_cache[0] = \n () => {\n searchValue.value = '';\n _ctx.$emit('clearSearchValue');\n }\n )\n }, [\n _createTextVNode(_toDisplayString(_ctx.$t('Clear')) + \" \", 1),\n _createVNode(_unref(Icon), {\n \"icon-name\": \"close\",\n sm: \"\"\n })\n ], 10, _hoisted_3))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"id\", \"aria-expanded\", \"aria-labelledby\", \"placeholder\", \"value\", \"disabled\", \"hide-search-btn\"]),\n _createVNode(_unref(RecentSearches), {\n title: _ctx.suggestionsTitle,\n \"aria-labelledby\": \"serviceStatusLabel\",\n \"aria-id\": \"serviceStatusListbox\",\n \"show-searches\": _ctx.showSearches,\n searches: _ctx.suggestions,\n \"show-route-map-button\": _ctx.showRouteMapButton,\n \"select-route-map-callback\": _ctx.selectRouteMapCallback,\n onSetSearchValue: _cache[3] || (_cache[3] = (value) => setSearchValue(value)),\n onSetShowSearches: _cache[4] || (_cache[4] = ($event: any) => (_ctx.$emit('setShowSearches'))),\n onSearchClick: _cache[5] || (_cache[5] = ($event: any) => (_ctx.$emit('searchClick')))\n }, null, 8, [\"title\", \"show-searches\", \"searches\", \"show-route-map-button\", \"select-route-map-callback\"]),\n _renderSlot(_ctx.$slots, \"default\")\n ])), [\n [_unref(vClickOutside), hideSuggestions]\n ])\n}\n}\n\n})","import script from \"./ServiceStatusSearchbox.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ServiceStatusSearchbox.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ServiceStatusSearchbox.vue?vue&type=style&index=0&id=5e17acda&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5e17acda\"]])\n\nexport default __exports__","import gql from 'graphql-tag';\r\n\r\nconst getServiceStatusQuery = gql`\r\n query {\r\n routes {\r\n name\r\n id\r\n routeCode\r\n ports {\r\n portCode\r\n name\r\n order\r\n isFreight\r\n hideOnMap\r\n }\r\n routeStatuses {\r\n id\r\n title\r\n status\r\n subStatus\r\n updatedAtDateTime\r\n }\r\n location {\r\n name\r\n }\r\n status\r\n isFreight\r\n hideOnMap\r\n }\r\n }`;\r\n\r\nconst getRouteServiceStatusQuery = gql`\r\n query ($routeCode: String) {\r\n routes (where: {routeCode: { eq: $routeCode} }) {\r\n name\r\n id\r\n routeCode\r\n ports {\r\n portCode\r\n name\r\n order\r\n isFreight\r\n hideOnMap\r\n }\r\n routeStatuses {\r\n id\r\n title\r\n status\r\n subStatus\r\n title\r\n startDateTime\r\n endDateTime\r\n detail\r\n nextReviewDateTime\r\n updatedAtDateTime\r\n }\r\n location {\r\n name\r\n }\r\n status\r\n isFreight\r\n hideOnMap\r\n }\r\n }`;\r\n\r\nconst getRoutesQuery = gql`\r\n query ($routeName: String) {\r\n routes (where: {searchKey: { contains: $routeName} }) {\r\n name\r\n id\r\n routeCode\r\n ports {\r\n portCode\r\n name\r\n order\r\n longitude\r\n latitude\r\n isFreight\r\n hideOnMap\r\n }\r\n routeStatuses {\r\n id\r\n title\r\n detail\r\n status\r\n subStatus\r\n updatedAtDateTime\r\n nextReviewDateTime\r\n }\r\n location {\r\n name\r\n }\r\n status\r\n isFreight\r\n hideOnMap\r\n }\r\n }`;\r\n\r\nconst getRouteSuggestionQuery = gql`\r\n query ($routeName: String) {\r\n routes (where: {searchKey: { contains: $routeName} })\r\n {\r\n name\r\n id\r\n ports {\r\n portCode\r\n name\r\n order\r\n }\r\n location {\r\n name\r\n }\r\n status\r\n }\r\n }`;\r\n\r\nexport {\r\n getServiceStatusQuery,\r\n getRouteServiceStatusQuery,\r\n getRoutesQuery,\r\n getRouteSuggestionQuery,\r\n};\r\n","import { provideApolloClient, useQuery } from '@vue/apollo-composable';\nimport { defineStore } from 'pinia';\nimport { ref } from 'vue';\nimport {\n getRoutesQuery,\n getRouteServiceStatusQuery,\n getRouteSuggestionQuery,\n getServiceStatusQuery,\n} from './queries';\nimport {\n Routes,\n Route,\n RouteStatusCategory,\n} from '../types/api';\nimport { apolloClient } from '../services/ApolloClient';\n\nprovideApolloClient(apolloClient);\n\nconst serviceStatus = ref();\nconst queryResults = ref();\nconst routeSuggestion = ref();\nconst routeServiceStatus = ref();\nconst selectedRoute = ref();\n// const allRoutes = ref();\nconst affectedRoutes = ref();\nconst recentSearches = ref>([]);\n\nconst serviceStatusErrorMessage = ref();\nconst searchRouteStatusesErrorMessage = ref();\nconst routesSuggestionErrorMessage = ref();\nconst routeServiceStatusErrorMessage = ref();\nconst isServiceStatusError = ref();\nconst isSearchRouteStatusesError = ref();\nconst isRoutesSuggestionError = ref();\nconst isRouteServiceStatusError = ref();\n\n// Where race condition occur isLaoding may be false when it should be true\nconst isLoading = ref(false);\n\nconst processResult = ((queryResult, document) => {\n if (!queryResult.data || queryResult.loading) {\n return;\n }\n\n if (document.value.loc?.source.body === getServiceStatusQuery.loc?.source.body) {\n serviceStatus.value = queryResult.data.routes;\n }\n if (document.value.loc?.source.body === getRouteServiceStatusQuery.loc?.source.body) {\n routeServiceStatus.value = queryResult.data.routes?.[0];\n }\n if (document.value.loc?.source.body === getRoutesQuery.loc?.source.body) {\n queryResults.value = queryResult.data;\n }\n if (document.value.loc?.source.body === getRouteSuggestionQuery.loc?.source.body) {\n routeSuggestion.value = queryResult.data;\n }\n});\n\nexport const serviceStatusStoreDefinition = {\n state: () => ({\n serviceStatus,\n routeServiceStatus,\n isLoading,\n queryResults,\n routeSuggestion,\n selectedRoute,\n affectedRoutes,\n recentSearches,\n serviceStatusErrorMessage,\n searchRouteStatusesErrorMessage,\n routesSuggestionErrorMessage,\n routeServiceStatusErrorMessage,\n isServiceStatusError,\n isSearchRouteStatusesError,\n isRoutesSuggestionError,\n isRouteServiceStatusError,\n }),\n actions: {\n async getServiceStatus() {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(getServiceStatusQuery);\n isLoading.value = loading.value;\n isServiceStatusError.value = false;\n serviceStatusErrorMessage.value = undefined;\n\n onError((error) => {\n isLoading.value = loading.value;\n isServiceStatusError.value = true;\n serviceStatusErrorMessage.value = error.message;\n console.log('getServiceStatus: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n async getSearchRouteStatuses(q: string) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(getRoutesQuery, { routeName: q });\n isLoading.value = loading.value;\n isSearchRouteStatusesError.value = false;\n searchRouteStatusesErrorMessage.value = undefined;\n\n onError((error) => {\n isLoading.value = loading.value;\n isSearchRouteStatusesError.value = true;\n searchRouteStatusesErrorMessage.value = error.message;\n console.log('getSearchRouteStatuses: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n getRoute(routeCode) {\n return serviceStatus.value?.filter((item) => item.routeCode === routeCode)?.[0];\n },\n clearSearchRouteStatuses() {\n queryResults.value = undefined;\n },\n async getRoutesSuggestion(q: string) {\n const {\n refetch,\n onResult,\n onError,\n document,\n } = useQuery(getRouteSuggestionQuery, { routeName: q });\n isRoutesSuggestionError.value = false;\n routesSuggestionErrorMessage.value = undefined;\n\n onError((error) => {\n isRoutesSuggestionError.value = true;\n routesSuggestionErrorMessage.value = error.message;\n console.log('getRoutesSuggestion: error', error);\n });\n\n onResult((queryResult) => {\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n async getRouteServiceStatus(routeCode: string) {\n const {\n refetch,\n onResult,\n onError,\n loading,\n document,\n } = useQuery(getRouteServiceStatusQuery, { routeCode });\n isLoading.value = loading.value;\n isRouteServiceStatusError.value = false;\n routeServiceStatusErrorMessage.value = undefined;\n\n onError((error) => {\n isLoading.value = loading.value;\n isRouteServiceStatusError.value = true;\n routeServiceStatusErrorMessage.value = error.message;\n console.log('getRouteServiceStatus: error', error);\n });\n\n onResult((queryResult) => {\n isLoading.value = loading.value;\n processResult(queryResult, document);\n });\n\n await refetch();\n },\n updateSelectedRoute: (route: Route) => {\n selectedRoute.value = route;\n },\n addRecentSearch(q: string, isMobile = false) {\n if (!q) {\n return;\n }\n // remove item from list if it already exists\n recentSearches.value = recentSearches.value.filter(\n (searchItem) => q.toLowerCase() !== searchItem.toLowerCase(),\n );\n // Add item to the top of the list\n recentSearches.value?.unshift(q);\n\n const maxNumberOfRecent = isMobile ? 3 : 5;\n\n if (recentSearches.value.length > maxNumberOfRecent) {\n recentSearches.value.pop();\n }\n },\n clearRecentSearches() {\n recentSearches.value = [];\n },\n },\n getters: {\n getSelectedRoute: () => selectedRoute.value,\n getAffectedRoutes: () => serviceStatus\n .value?.filter((item) => item.status !== RouteStatusCategory.Normal) || [],\n getApiErrorStatus: () => (\n isServiceStatusError.value\n || isSearchRouteStatusesError.value\n || isRoutesSuggestionError.value\n || isRouteServiceStatusError.value\n ),\n },\n persist: {\n storage: localStorage,\n paths: ['recentSearches'],\n },\n};\n\nexport const useServiceStatusStore = defineStore('serviceStatusStore', serviceStatusStoreDefinition);\n","import { Route } from '../apiTypes';\nimport { RecentOrSuggestedSearchEntry } from '..';\n\nexport const mapRouteToRecentOrSuggestedSearchEntry = (item:Route) => ({\n iconName: 'mapPin',\n ports: item.ports.map((port) => ({\n name: port.name,\n portCode: `(${port.portCode})`,\n order: port.order,\n })).sort((a, b) => a.order - b.order),\n} as RecentOrSuggestedSearchEntry);\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-1a7caa7a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"serviceStatusSearchWrapper\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"noResultsMsg\"\n}\nconst _hoisted_3 = {\n key: 1,\n class: \"searchResults\"\n}\nconst _hoisted_4 = { class: \"heading\" }\n\nimport { computed, ref, watch } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { RouteServiceStatus, RecentOrSuggestedSearchEntry } from '../../types';\nimport { Route } from '../../types/api';\nimport { ServiceStatusSearchBox, RouteItem } from '../../Molecules';\nimport { useServiceStatusStore } from '../../store';\nimport { mapRoutes, mapRouteToSuggestedSearchEntry } from '../../maps';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ServiceStatusSearch',\n props: {\n searchInputId: {},\n searchInputLabel: {},\n searchInputPlaceholder: {},\n searchClickAction: { type: Function },\n itemClickAction: { type: Function },\n selectRouteMapCallback: { type: Function },\n disabled: { type: Boolean },\n isLoading: { type: Boolean }\n },\n emits: ['updateSearchResults', 'updateMapRoute'],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst { t } = useI18n();\n\nconst searchValue = ref('');\nconst resultsText = ref('');\nconst searchSuggestions = ref();\nconst suggestionTitle = ref('Recent');\nconst showSearches = ref(false);\nconst searchInitiated = ref(false);\nconst isSearchFocus = ref(false);\nconst serviceStatusStore = useServiceStatusStore();\nconst searchResults = ref();\nconst recentSearchList = ref>([]);\nconst placeholder = ref(props.searchInputPlaceholder);\n\nconst emit = __emit;\n\nconst showSearchResults = computed(() =>\n searchResults.value !== undefined\n && searchResults.value.length > 0\n && searchInitiated.value);\n\nconst getSuggestions = async () => {\n if (searchValue.value.length <= 2 && serviceStatusStore.recentSearches.length === 0) {\n showSearches.value = false;\n return;\n }\n\n if (isSearchFocus.value) {\n showSearches.value = true;\n }\n suggestionTitle.value = t('Recent');\n\n if (searchValue.value.length <= 2) {\n searchSuggestions.value = serviceStatusStore.recentSearches.map((item) => ({\n iconName: 'clock',\n ports: [{ name: item }],\n } as RecentOrSuggestedSearchEntry)) as RecentOrSuggestedSearchEntry[];\n } else {\n try {\n await serviceStatusStore.getRoutesSuggestion(searchValue.value);\n suggestionTitle.value = t('Select a route');\n } catch (e) {\n console.log('e', e);\n }\n }\n};\n\nconst handleSearch = async (searchInput: string) => {\n try {\n searchInitiated.value = true;\n await serviceStatusStore.getSearchRouteStatuses(searchInput);\n } catch (e) {\n console.log('e', e);\n }\n\n if (props.searchClickAction) {\n props.searchClickAction(searchInput);\n }\n\n resultsText.value = searchInput;\n showSearches.value = false;\n};\n\nconst onRouteItemClick = (serviceArray, index) => {\n props.itemClickAction(serviceArray, index);\n};\n\nconst onClearSearch = () => {\n searchInitiated.value = false;\n showSearches.value = false;\n searchResults.value = undefined;\n emit('updateSearchResults', undefined);\n serviceStatusStore.clearSearchRouteStatuses();\n searchValue.value = '';\n};\n\nwatch([searchValue], async () => {\n try {\n await getSuggestions();\n } catch (e) {\n console.log('e', e);\n }\n});\n\nwatch(() => serviceStatusStore.queryResults, (newVal) => {\n if (newVal === undefined) {\n searchResults.value = undefined;\n emit('updateSearchResults', undefined);\n } else {\n // If search not initated by user then don't refresh (handles refetch issue)\n if (!searchInitiated.value) {\n return;\n }\n searchResults.value = newVal && newVal.routes?.length > 0\n ? newVal.routes.map(mapRoutes)\n : [];\n emit('updateSearchResults', searchResults.value);\n }\n\n if (searchResults.value) {\n const searchResultsExcludingFreight = searchResults.value\n .filter((route) => !route.ports.some((port) => port.isFreight || port.hideOnMap));\n\n if (searchResultsExcludingFreight.length > 0) {\n emit('updateMapRoute', searchResultsExcludingFreight);\n }\n }\n});\n\nwatch(() => serviceStatusStore.routeSuggestion, (newVal) => {\n searchSuggestions.value = newVal ? newVal.routes.map(mapRouteToSuggestedSearchEntry)\n : undefined;\n});\n\nwatch(() => serviceStatusStore.recentSearches, (recentSearches) => {\n recentSearchList.value = recentSearches;\n});\n\nwatch(() => isSearchFocus.value, (isFocus) => {\n if (isFocus) {\n showSearches.value = true;\n placeholder.value = ' ';\n getSuggestions();\n } else {\n placeholder.value = props.searchInputPlaceholder\n ? props.searchInputPlaceholder : t('Service status search placeholder');\n }\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_unref(ServiceStatusSearchBox), {\n \"search-input-id\": _ctx.searchInputId,\n \"search-input-label\": _ctx.searchInputLabel,\n placeholder: placeholder.value ? placeholder.value : _ctx.$t('Service status search placeholder'),\n suggestions: searchSuggestions.value,\n \"suggestions-title\": _ctx.$t(suggestionTitle.value),\n \"show-searches\": showSearches.value,\n disabled: _ctx.disabled,\n \"show-route-map-button\": true,\n \"select-route-map-callback\": _ctx.selectRouteMapCallback,\n \"hide-search-btn\": searchResults.value === undefined,\n onUpdateSearchValue: _cache[0] || (_cache[0] = (value) => searchValue.value = value),\n onClearSearchValue: onClearSearch,\n onSetShowSearches: _cache[1] || (_cache[1] = (value) => showSearches.value = value),\n onGetIsFocus: _cache[2] || (_cache[2] = (isFocus) => isSearchFocus.value = isFocus),\n onSearchClick: _cache[3] || (_cache[3] = () => handleSearch(searchValue.value))\n }, null, 8, [\"search-input-id\", \"search-input-label\", \"placeholder\", \"suggestions\", \"suggestions-title\", \"show-searches\", \"disabled\", \"select-route-map-callback\", \"hide-search-btn\"]),\n (searchResults.value !== undefined && searchResults.value.length === 0)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_2, _toDisplayString(_ctx.$t('No search results message', [searchValue.value])), 1))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"infoCard\"),\n (showSearchResults.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('Results for text', [resultsText.value])), 1),\n _renderSlot(_ctx.$slots, \"statusKeyButton\")\n ]),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(searchResults.value, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: index,\n class: \"routeItem\"\n }, [\n _createVNode(_unref(RouteItem), {\n \"destination-name\": item.destinationName,\n ports: item.ports,\n status: item.status,\n \"click-handler\": () => onRouteItemClick(searchResults.value, index),\n \"is-loading\": _ctx.isLoading\n }, null, 8, [\"destination-name\", \"ports\", \"status\", \"click-handler\", \"is-loading\"])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./ServiceStatusSearch.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ServiceStatusSearch.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ServiceStatusSearch.vue?vue&type=style&index=0&id=1a7caa7a&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1a7caa7a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-210dfe94\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"aria-label\"]\n\nimport { Icon } from '../../Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'StatusKeyButton',\n props: {\n onClick: { type: Function }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"button\", {\n class: \"statusKeyButton\",\n \"aria-label\": _ctx.$t('Status key button aria label'),\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.onClick && _ctx.onClick(...args)))\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"statusNormal\" }),\n _createVNode(_unref(Icon), { \"icon-name\": \"statusAtRisk\" }),\n _createVNode(_unref(Icon), { \"icon-name\": \"statusDelayed\" }),\n _createVNode(_unref(Icon), { \"icon-name\": \"statusCancelled\" })\n ], 8, _hoisted_1))\n}\n}\n\n})","import script from \"./StatusKeyButton.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./StatusKeyButton.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./StatusKeyButton.vue?vue&type=style&index=0&id=210dfe94&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-210dfe94\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, createVNode as _createVNode, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-0271d331\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"routeItemsList\" }\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = { key: 1 }\n\nimport { RouteServiceStatus } from '../../types';\nimport { RouteItem } from '../../index';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteItemsList',\n props: {\n routeItems: {},\n hideArrows: { type: Boolean },\n isLoading: { type: Boolean }\n },\n emits: ['getRouteItemsIndex'],\n setup(__props: any) {\n\n\n\n\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.routeItems, (item, index) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: index,\n class: \"route\"\n }, [\n _createVNode(_unref(RouteItem), {\n \"destination-name\": item.destinationName,\n ports: item.ports,\n status: item.status,\n \"click-handler\": () => _ctx.$emit('getRouteItemsIndex', _ctx.routeItems, index),\n \"is-arrow-hidden\": _ctx.hideArrows\n }, null, 8, [\"destination-name\", \"ports\", \"status\", \"click-handler\", \"is-arrow-hidden\"])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_3, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(5, (index) => {\n return _createElementVNode(\"li\", {\n key: index,\n class: \"route\"\n }, [\n _createVNode(_unref(RouteItem), {\n \"is-loading\": true,\n \"is-arrow-hidden\": _ctx.hideArrows\n }, null, 8, [\"is-arrow-hidden\"])\n ])\n }), 64))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./RouteItemsList.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteItemsList.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteItemsList.vue?vue&type=style&index=0&id=0271d331&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0271d331\"]])\n\nexport default __exports__","import { Port } from '../types/RenderTypes';\n\nexport const orderRoutesByOriginPortAsc = (\n a: { ports: Port[] },\n b: { ports: Port[] }, \n) => {\n if (a.ports?.[0]?.name < b.ports?.[0]?.name) {\n return -1;\n }\n if (a.ports?.[0]?.name > b.ports?.[0]?.name) {\n return 1;\n }\n return 0;\n};\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, withCtx as _withCtx, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-7a2b0ba4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"mainInfoCard\"\n}\nconst _hoisted_2 = { class: \"heading\" }\nconst _hoisted_3 = {\n key: 3,\n class: \"allRoutes\"\n}\nconst _hoisted_4 = { class: \"heading\" }\nconst _hoisted_5 = {\n key: 4,\n class: \"routelink\"\n}\nconst _hoisted_6 = { class: \"ctaLink rte\" }\n\nimport {\n DownloadApp,\n} from '@components';\nimport {\n computed,\n ref,\n watch,\n watchEffect,\n} from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { Route } from '../../apiTypes';\nimport {\n ServiceStatusSearch,\n InfoCard,\n Icon,\n StatusKeyButton,\n RouteItemsList,\n mapRoutes,\n} from '../../index';\nimport { useServiceStatusStore } from '../../stores';\nimport { RouteServiceStatus } from '../../types';\nimport { INFO_CARD_COLOR } from '../../../../constants/info-card-color';\nimport { smsAlertSignupUrl, mobileAppDownloadUrl } from '../../envVariables';\nimport { orderRoutesByOriginPortAsc } from '../../helpers/sortRoutesByOriginPort';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ServiceStatusHome',\n props: {\n isOverlayView: { type: Boolean },\n isMobile: { type: Boolean },\n statusModalClickHandler: { type: Function },\n selectRouteMapCallback: { type: Function },\n updateRouteMapCallback: { type: Function },\n redirectToServiceIndex: { type: Function },\n searchInputId: {},\n searchInputLabel: {},\n isOffline: { type: Boolean }\n },\n emits: ['getSelectedRouteCode', 'getHasSearch'],\n setup(__props: any, { emit: __emit }) {\n\nconst { t } = useI18n();\nconst props = __props;\n\nconst emit = __emit;\n\nconst serviceStatusStore = useServiceStatusStore();\nconst renderAllRoutes = ref();\nconst showAllRoutesList = ref(!!renderAllRoutes.value);\nconst affectedRoutes = ref();\nconst showAffectedRoutesList = ref(!!affectedRoutes.value);\nconst hasSearchResults = ref(false);\nconst searchResults = ref();\nconst isLoading = ref(false);\n\nconst canShowRoutes = computed(() => (\n !hasSearchResults.value && !props.isOffline && !serviceStatusStore.isServiceStatusError\n));\n\nconst displayAffectedRoutes = computed(() => (\n (showAffectedRoutesList.value || isLoading.value) && canShowRoutes.value\n));\n\nconst displayAllRoutes = computed(() => (\n (showAllRoutesList.value || isLoading.value) && !props.isOverlayView && canShowRoutes.value\n));\n\nconst updateMap = (results) => {\n if (props.updateRouteMapCallback) props.updateRouteMapCallback(results);\n};\n\nconst searchClickAction = (searchValue) => {\n serviceStatusStore.addRecentSearch(searchValue, props.isMobile);\n};\n\nconst updateSearchResults = (newSearchResults) => {\n hasSearchResults.value = newSearchResults !== undefined;\n searchResults.value = newSearchResults;\n};\n\nconst mapRenderRoutes = (allRoutes: Route[] | undefined) => {\n renderAllRoutes.value = allRoutes ? allRoutes.map(mapRoutes)?.sort(orderRoutesByOriginPortAsc)\n : undefined;\n\n showAllRoutesList.value = !!(renderAllRoutes.value && renderAllRoutes\n .value\n .length > 0);\n\n affectedRoutes.value = serviceStatusStore.getAffectedRoutes\n ?.map(mapRoutes)?.sort(orderRoutesByOriginPortAsc);\n\n showAffectedRoutesList.value = !!(affectedRoutes.value && affectedRoutes\n .value\n .length > 0);\n};\n\nconst itemClickAction = async (serviceArray, index) => {\n const { routeCode } = serviceArray[index];\n emit('getSelectedRouteCode', routeCode);\n};\n\nconst getInfoCardDetails = () => {\n let noOfAffectedRoutes;\n let totalRoutes;\n\n if (serviceStatusStore.isServiceStatusError || serviceStatusStore.isRoutesSuggestionError) {\n return {\n icon: 'warning',\n text: t('Trouble retrieving service'),\n backgroundColor: INFO_CARD_COLOR.white,\n borderColor: INFO_CARD_COLOR.red,\n };\n }\n\n if (hasSearchResults.value) {\n const filteredAffectedResultsList = searchResults.value?.filter((item) => item.status !== 'normal');\n noOfAffectedRoutes = filteredAffectedResultsList?.length;\n totalRoutes = searchResults.value?.length;\n } else {\n noOfAffectedRoutes = affectedRoutes.value?.length;\n totalRoutes = renderAllRoutes.value?.length;\n }\n\n return (noOfAffectedRoutes > 0\n ? {\n icon: 'warning',\n text: t(\n 'Number of routes affected text',\n [noOfAffectedRoutes, totalRoutes],\n ),\n backgroundColor: INFO_CARD_COLOR.white,\n borderColor: INFO_CARD_COLOR.red,\n }\n : {\n icon: 'statusNormal',\n text: t('All sailings normal text'),\n backgroundColor: INFO_CARD_COLOR.mint,\n borderColor: INFO_CARD_COLOR.mint,\n });\n};\n\nmapRenderRoutes(serviceStatusStore.serviceStatus);\n\nwatchEffect(() => {\n isLoading.value = serviceStatusStore.isLoading;\n});\n\nwatch(() => serviceStatusStore.serviceStatus, (newVal) => {\n mapRenderRoutes(newVal);\n});\n\nwatch(() => hasSearchResults.value, (newHasSearch) => {\n emit('getHasSearch', newHasSearch);\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_unref(ServiceStatusSearch), {\n \"item-click-action\": (array, index) => itemClickAction(array, index),\n \"select-route-map-callback\": _ctx.selectRouteMapCallback,\n \"search-click-action\": searchClickAction,\n \"search-input-id\": _ctx.searchInputId,\n \"search-input-label\": _ctx.searchInputLabel,\n disabled: _ctx.isOffline,\n \"is-loading\": isLoading.value,\n onUpdateSearchResults: _cache[0] || (_cache[0] = (searchResults) => updateSearchResults(searchResults)),\n onUpdateMapRoute: _cache[1] || (_cache[1] = (searchResults) => updateMap(searchResults))\n }, {\n infoCard: _withCtx(() => [\n (!_ctx.isOffline)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_unref(InfoCard), {\n \"icon-name\": getInfoCardDetails().icon,\n text: getInfoCardDetails().text,\n \"background-color\": getInfoCardDetails().backgroundColor,\n \"border-color\": getInfoCardDetails().borderColor,\n \"is-loading\": isLoading.value,\n lg: \"\"\n }, null, 8, [\"icon-name\", \"text\", \"background-color\", \"border-color\", \"is-loading\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n statusKeyButton: _withCtx(() => [\n (hasSearchResults.value && !_ctx.isOffline)\n ? (_openBlock(), _createBlock(_unref(StatusKeyButton), {\n key: 0,\n \"on-click\": _ctx.statusModalClickHandler\n }, null, 8, [\"on-click\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"item-click-action\", \"select-route-map-callback\", \"search-input-id\", \"search-input-label\", \"disabled\", \"is-loading\"]),\n (!hasSearchResults.value)\n ? _renderSlot(_ctx.$slots, \"myRoutes\", { key: 0 })\n : _createCommentVNode(\"\", true),\n (!_ctx.isMobile)\n ? (_openBlock(), _createBlock(_unref(DownloadApp), {\n key: 1,\n \"alert-link\": _unref(smsAlertSignupUrl),\n \"alert-link-text\": _ctx.$t('Download App alert link text'),\n \"download-link\": _unref(mobileAppDownloadUrl),\n \"download-link-text\": _ctx.$t('Download App link text'),\n \"image-src\": require('@images/downloadAppImage.png'),\n \"image-alt\": _ctx.$t('Download app image alt'),\n title: _ctx.$t('Download App title'),\n text: _ctx.$t('Download App text'),\n class: \"showMobile\"\n }, null, 8, [\"alert-link\", \"alert-link-text\", \"download-link\", \"download-link-text\", \"image-src\", \"image-alt\", \"title\", \"text\"]))\n : _createCommentVNode(\"\", true),\n (displayAffectedRoutes.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n class: _normalizeClass([\"affectedRoutes\", {noBorder: _ctx.isOverlayView}])\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t('Affected routes')), 1),\n (!_ctx.isOverlayView)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n class: \"closeBtn\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (showAffectedRoutesList.value = false))\n }, [\n _createTextVNode(_toDisplayString(_ctx.$t('Close')) + \" \", 1),\n _createVNode(_unref(Icon), {\n \"icon-name\": \"closeBold\",\n sm: \"\"\n })\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isOverlayView)\n ? (_openBlock(), _createBlock(_unref(StatusKeyButton), {\n key: 1,\n \"on-click\": _ctx.statusModalClickHandler,\n class: _normalizeClass({overlayView: _ctx.isOverlayView})\n }, null, 8, [\"on-click\", \"class\"]))\n : _createCommentVNode(\"\", true)\n ]),\n (affectedRoutes.value)\n ? (_openBlock(), _createBlock(_unref(RouteItemsList), {\n key: 0,\n \"route-items\": affectedRoutes.value,\n \"is-loading\": isLoading.value,\n onGetRouteItemsIndex: _cache[3] || (_cache[3] = (routeItems, index) => itemClickAction(routeItems, index))\n }, null, 8, [\"route-items\", \"is-loading\"]))\n : _createCommentVNode(\"\", true)\n ], 2))\n : _createCommentVNode(\"\", true),\n (displayAllRoutes.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t('All routes')), 1),\n _createVNode(_unref(StatusKeyButton), {\n \"on-click\": _ctx.statusModalClickHandler,\n class: _normalizeClass({overlayView: _ctx.isOverlayView})\n }, null, 8, [\"on-click\", \"class\"])\n ]),\n _createVNode(_unref(RouteItemsList), {\n \"route-items\": renderAllRoutes.value,\n \"is-loading\": isLoading.value,\n onGetRouteItemsIndex: _cache[4] || (_cache[4] = (routeItems, index) => itemClickAction(routeItems, index))\n }, null, 8, [\"route-items\", \"is-loading\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isOverlayView)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"p\", _hoisted_6, [\n _createElementVNode(\"a\", {\n onClick: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_ctx.redirectToServiceIndex && _ctx.redirectToServiceIndex(...args)))\n }, _toDisplayString(_ctx.$t('View all routes')), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}\n}\n\n})","import script from \"./ServiceStatusHome.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ServiceStatusHome.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ServiceStatusHome.vue?vue&type=style&index=0&id=7a2b0ba4&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7a2b0ba4\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-2ed7d4f0\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"title\"\n}\nconst _hoisted_2 = { class: \"keyItemsWrapper\" }\nconst _hoisted_3 = { class: \"content\" }\n\nimport { useI18n } from 'vue-i18n';\nimport { ServiceStatusKeyItem } from '../../types';\nimport { Icon } from '../../Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ServiceStatusKeyBlock',\n props: {\n title: {},\n serviceItems: {}\n },\n setup(__props: any) {\n\n\n\nconst { t } = useI18n();\n\nconst serviceStatusKeyBlockItems = {\n title: t('Key'),\n serviceItems: [\n {\n iconName: 'statusNormal',\n heading: t('Normal service'),\n text: t('Normal service text'),\n },\n {\n iconName: 'statusAtRisk',\n heading: t('Be aware'),\n text: t('Be aware text'),\n },\n {\n iconName: 'statusDelayed',\n heading: t('Disruptions'),\n text: t('Disruptions text'),\n },\n {\n iconName: 'statusCancelled',\n heading: t('All sailings cancelled'),\n text: t('All sailings cancelled text'),\n },\n ],\n};\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_ctx.title)\n ? (_openBlock(), _createElementBlock(\"h3\", _hoisted_1, _toDisplayString(_ctx.title), 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList((_ctx.serviceItems ? _ctx.serviceItems : serviceStatusKeyBlockItems.serviceItems), (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: index,\n class: \"keyItem\"\n }, [\n _createVNode(_unref(Icon), {\n \"icon-name\": item.iconName,\n lg: true,\n sm: false,\n md: false\n }, null, 8, [\"icon-name\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"h4\", null, _toDisplayString(item.heading), 1),\n _createElementVNode(\"p\", null, _toDisplayString(item.text), 1)\n ])\n ]))\n }), 128))\n ])\n ], 64))\n}\n}\n\n})","import script from \"./ServiceStatusKeyBlock.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ServiceStatusKeyBlock.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ServiceStatusKeyBlock.vue?vue&type=style&index=0&id=2ed7d4f0&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2ed7d4f0\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-57a021d9\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"overlayContent\",\n role: \"dialog\",\n \"aria-modal\": \"true\"\n}\n\nimport { Icon } from '@components';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ModalOverlay',\n props: {\n isOpen: { type: Boolean },\n showCloseBtn: { type: Boolean },\n closeCallback: { type: Function }\n },\n setup(__props: any) {\n\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.isOpen)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.showCloseBtn)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n class: \"closeBtn\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.closeCallback && _ctx.closeCallback(...args)))\n }, [\n _createVNode(_unref(Icon), {\n \"icon-name\": \"close\",\n lg: \"\"\n })\n ]))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"default\")\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./ModalOverlay.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ModalOverlay.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ModalOverlay.vue?vue&type=style&index=0&id=57a021d9&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-57a021d9\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-cef9e166\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"inner\" }\n\nimport {\n ServiceStatusKeyBlock,\n ServiceStatusHome,\n} from '@components';\nimport { useServiceStatusStore } from '@components/stores';\nimport process from 'process';\nimport { onMounted, ref } from 'vue';\nimport ModalOverlay from './ModalOverlay.vue';\nimport { useSharedState } from '../helpers/shareState';\nimport { closeOverlay } from '../helpers/closeOverlayPanel';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ServiceStatusIndex',\n setup(__props) {\n\nconst serviceStatusStore = useServiceStatusStore();\nconst showServiceStatusModal = ref(false);\n\nconst statusMapUrl = process.env.VUE_APP_SERVICE_STATUS_MAP_URL;\nconst statusUrl = process.env.VUE_APP_SERVICE_STATUS_URL;\n\nconst sharedState = useSharedState();\nsharedState.getState('routeStore');\n\nconst removeOverlayOnPage = () => {\n // close overlay after redirecting\n const serviceStatusBtn = document.getElementById('globalLiveServiceStatusButton');\n const serviceStatusBtnMobile = document.getElementById('globalLiveServiceStatusButtonMobile');\n const serviceStatusOverlay = document.getElementById('liveServiceStatusAppOverlay');\n\n if (serviceStatusOverlay) {\n closeOverlay(serviceStatusOverlay);\n }\n\n if (serviceStatusBtn) {\n closeOverlay(serviceStatusBtn);\n }\n\n if (serviceStatusBtnMobile) {\n closeOverlay(serviceStatusBtnMobile);\n }\n\n const body = document.querySelector('body');\n const html = document.querySelector('html');\n\n // remove overlay and stop scroll from body and html\n if (body && body.classList.contains('darkOverlay')) {\n body.classList.remove('darkOverlay');\n }\n\n if (html && html.classList.contains('stopScroll')) {\n html.classList.remove('stopScroll');\n }\n};\n\nconst redirectToServicePage = (route: string) => {\n window.location.href = route;\n removeOverlayOnPage();\n};\n\nconst routeToRouteItem = (routeCode) => {\n const url = `${process.env.VUE_APP_SERVICE_STATUS_ITEM_URL}/${routeCode}`;\n window.location.href = url;\n\n removeOverlayOnPage();\n};\n\nconst displayModal = () => {\n showServiceStatusModal.value = true;\n};\n\nconst closeModal = () => {\n showServiceStatusModal.value = false;\n};\n\nonMounted(async () => {\n // Start up\n await serviceStatusStore.getServiceStatus();\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"serviceStatusOverlay\", {modalOpen: showServiceStatusModal.value}])\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t('live ferry status')), 1),\n _createVNode(_unref(ServiceStatusHome), {\n \"is-overlay-view\": true,\n \"status-modal-click-handler\": () => displayModal(),\n \"select-route-map-callback\": () => redirectToServicePage(_unref(statusMapUrl)),\n \"redirect-to-service-index\": () => redirectToServicePage(_unref(statusUrl)),\n \"search-input-id\": \"overlaySearchRoutesInput\",\n \"search-input-label\": \"overlaySearchRoutesLabel\",\n onGetSelectedRouteCode: _cache[0] || (_cache[0] = (routeCode) => routeToRouteItem(routeCode))\n }, null, 8, [\"status-modal-click-handler\", \"select-route-map-callback\", \"redirect-to-service-index\"])\n ]),\n _createVNode(ModalOverlay, {\n \"is-open\": showServiceStatusModal.value,\n \"show-close-btn\": true,\n \"close-callback\": () => closeModal()\n }, {\n default: _withCtx(() => [\n _createVNode(_unref(ServiceStatusKeyBlock), {\n title: _ctx.$t('Key')\n }, null, 8, [\"title\"])\n ]),\n _: 1\n }, 8, [\"is-open\", \"close-callback\"])\n ], 2))\n}\n}\n\n})","import script from \"./ServiceStatusIndex.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ServiceStatusIndex.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ServiceStatusIndex.vue?vue&type=style&index=0&id=cef9e166&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-cef9e166\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport ServiceStatusIndex from './ServiceStatusIndex.vue';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ServiceStatus',\n setup(__props) {\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(ServiceStatusIndex))\n}\n}\n\n})","import script from \"./ServiceStatus.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ServiceStatus.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { AccountInfo, InteractionStatus, PublicClientApplication } from '@azure/msal-browser';\nimport { getCurrentInstance, Ref, toRefs } from 'vue';\nimport { MsalState } from '../types/msalState';\n\nexport type MsalContext = {\n instance: PublicClientApplication,\n accounts: Ref,\n inProgress: Ref\n activeAccount: Ref\n}\n\nexport const useMsal = (): MsalContext => {\n const internalInstance = getCurrentInstance();\n if (!internalInstance) {\n throw new Error('useMsal() cannot be called outside the setup() function of a component');\n }\n const {\n instance,\n accounts,\n inProgress,\n activeAccount,\n } = toRefs(internalInstance.appContext.config.globalProperties.$msal as MsalState);\n\n if (!instance || !accounts || !inProgress) {\n throw new Error('Please install the msalPlugin');\n }\n\n return {\n instance: instance.value,\n accounts,\n inProgress,\n activeAccount,\n };\n};\n","import { Ref, ref } from 'vue';\nimport {\n AuthenticationResult,\n AuthError,\n InteractionStatus,\n PopupRequest,\n RedirectRequest,\n SilentRequest,\n} from '@azure/msal-browser';\n\nimport { useMsal } from './useMsal';\n\nexport type MsalAuthenticationResult = {\n acquireToken: (\n requestOverride?: PopupRequest|RedirectRequest|SilentRequest,\n redirectOnError?: boolean)\n => Promise;\n result: Ref;\n error: Ref;\n inProgress: Ref;\n}\n\nexport const useMsalToken = (\n request: RedirectRequest|SilentRequest,\n): MsalAuthenticationResult => {\n const { instance, inProgress } = useMsal();\n\n const localInProgress = ref(false);\n const result = ref(null);\n const error = ref(null);\n\n const acquireToken = async (\n requestOverride?: RedirectRequest | SilentRequest,\n redirectOnError = true,\n ): Promise => {\n if (localInProgress.value) {\n return undefined;\n }\n localInProgress.value = true;\n const tokenRequest = requestOverride || request;\n try {\n const response = await instance.acquireTokenSilent(tokenRequest);\n result.value = response;\n const { accessToken } = response;\n localInProgress.value = false;\n error.value = null;\n return accessToken;\n } catch (e) {\n console.log('b2c: an error occurred while acquiring token silently');\n if (inProgress.value !== InteractionStatus.None) {\n return undefined;\n }\n console.log('b2c: login using redirect after silent token fetch fail');\n if (!redirectOnError) {\n return undefined;\n }\n await instance.loginRedirect(tokenRequest).catch((innerError) => {\n error.value = innerError;\n result.value = null;\n });\n localInProgress.value = false;\n }\n return undefined;\n };\n\n return {\n acquireToken,\n result,\n error,\n inProgress: localInProgress,\n };\n};\n","import {\n watch,\n Ref,\n ref,\n computed,\n} from 'vue';\nimport { RedirectRequest } from '@azure/msal-browser';\nimport { useMsal } from './useMsal';\nimport { useMsalToken } from './useMsalToken';\n\nexport const useIsAuthenticated = (redirectRequest: RedirectRequest) => {\n const { activeAccount } = useMsal();\n\n const isAuthenticated: Ref = ref(undefined);\n\n const { acquireToken, result } = useMsalToken(redirectRequest);\n\n const hasAccount = computed(() => !!activeAccount.value);\n\n watch(() => hasAccount.value, (newValue) => {\n if (newValue) {\n acquireToken(redirectRequest, false).then(() => {\n isAuthenticated.value = !!activeAccount.value && !!result.value;\n });\n return;\n }\n isAuthenticated.value = false;\n }, { immediate: true });\n\n return {\n isAuthenticated,\n };\n};\n","import gql from 'graphql-tag';\n\nconst getRouteSubscriptions = gql`\nquery {\n routeSubscriptions\n {\n id\n mobileNumber\n textCode\n channel\n startDate\n endDate\n }\n}\n`;\n\nconst upsertRouteSubscription = gql`\nmutation UpsertRouteSubscription($upsertRouteSubscriptionInput: UpsertRouteSubscriptionInput!) {\n upsertRouteSubscription(upsertRouteSubscriptionInput: $upsertRouteSubscriptionInput) {\n routeSubscription {\n id\n textCode\n channel\n startDate\n endDate\n }\n errors {\n ... on IBaseError {\n message\n }\n }\n }\n}\n`;\n\nconst deleteRouteSubscription = gql`\nmutation DeleteRouteSubscription($deleteRouteSubscriptionInput: DeleteRouteSubscriptionInput!) {\n deleteRouteSubscription(deleteRouteSubscriptionInput: $deleteRouteSubscriptionInput) {\n removedId\n errors {\n ... on IBaseError {\n message\n }\n }\n }\n}\n`;\n\nexport {\n getRouteSubscriptions,\n upsertRouteSubscription,\n deleteRouteSubscription,\n};\n","import { RouteDetail } from '../types/sms';\nimport { mapPort } from './mapPort';\nimport { RouteInformation } from '../types/api';\n\nexport const mapRouteInformationToRouteDetails = (route: RouteInformation): RouteDetail => ({\n ports: route.ports.map(mapPort),\n textCode: route.textCode || '',\n routeId: route.id || '',\n});\n","import { mapRouteInformationToRouteDetails } from '../../maps/mapRouteInformationToRouteDetails';\nimport { RouteDetail } from '../../types';\nimport { RouteInformation, RouteSubscription } from '../../types/api';\n\nexport const determineAvailableRoutes = ({ allRoutes = [], subscriptions = [] } : {\n allRoutes: RouteInformation[],\n subscriptions: RouteSubscription[],\n}): RouteDetail[] => {\n if (!allRoutes) {\n return [];\n }\n\n if (!subscriptions) {\n return allRoutes.map(mapRouteInformationToRouteDetails);\n }\n\n return allRoutes.filter((route: RouteInformation) =>\n !subscriptions.find(\n (subscription: RouteSubscription) => subscription.textCode === route.textCode,\n ))\n .map(mapRouteInformationToRouteDetails);\n};\n","export const orderByTextCodeAsc = (\n a: { textCode: string},\n b: { textCode: string},\n) => {\n if (Number(a.textCode) < Number(b.textCode)) {\n return -1;\n }\n if (Number(a.textCode) > Number(b.textCode)) {\n return 1;\n }\n return 0;\n};\n","import { parseISO, subDays } from 'date-fns';\nimport { toZonedTime } from 'date-fns-tz';\nimport { dateIsLessThanCurrentTime } from '../dateTimeUtilities';\nimport { RouteSubscription } from '../../types/api';\nimport { timezone } from '../../envVariables';\n\nexport const filterOutExpiredSubscriptionsFromApi = (\n subscriptions: RouteSubscription[],\n currentDate = new Date(),\n)\n: RouteSubscription[] => (subscriptions?.filter(\n (subscription: RouteSubscription) => {\n const prevDay = subDays(parseISO(subscription.endDate), 1);\n const prevDayUk = toZonedTime(prevDay, timezone);\n currentDate.setHours(0, 0, 0, 0);\n\n return !dateIsLessThanCurrentTime(prevDayUk, currentDate);\n },\n)) || [];\n","import { parseISO, subDays } from 'date-fns';\nimport { RouteInformation, RouteSubscription } from '../types/api';\nimport { RouteSubscriptionSavedModel } from '../types/sms';\n\nexport const mapRouteSubscriptionToSaveModel = ({ item, allRoutes } :\n{\n item: RouteSubscription;\n allRoutes: RouteInformation[];\n}): RouteSubscriptionSavedModel | undefined => {\n if (!item) {\n return undefined;\n }\n\n const startDate = parseISO(item.startDate);\n const endDate = subDays(parseISO(item.endDate), 1);\n\n return {\n id: item.id,\n textCode: item.textCode,\n startDate: startDate.toISOString(),\n endDate: endDate.toISOString(),\n };\n};\n","import { filterOutExpiredSubscriptionsFromApi, orderByTextCodeAsc } from '../helpers';\nimport { RouteInformation, RouteSubscription } from '../types/api';\nimport { mapRouteSubscriptionToSaveModel } from './mapRouteSubscriptionToSaveModel';\nimport { RouteSubscriptionSavedModel } from '..';\n\nexport const mapRouteSubscriptionsToSavedView = ({\n allRoutes = [],\n subscriptions = [],\n}:\n{\n allRoutes: RouteInformation[];\n subscriptions: RouteSubscription[];\n}) : RouteSubscriptionSavedModel[] | undefined => {\n if (!subscriptions) {\n return undefined;\n }\n return (\n (filterOutExpiredSubscriptionsFromApi(subscriptions)\n .map(\n (item: RouteSubscription) => mapRouteSubscriptionToSaveModel({\n item,\n allRoutes: allRoutes || [],\n }),\n )\n .filter((item: RouteSubscriptionSavedModel | undefined) =>\n item !== undefined) as RouteSubscriptionSavedModel[])\n .sort(orderByTextCodeAsc));\n};\n","export enum Channel {\n Mobile = 'MOBILE',\n Web = 'WEB'\n}\n","import { RouteDetail } from '../types';\nimport { RouteSubscriptionUpdateModel } from '..';\nimport { UpsertRouteSubsciptionApi } from '../types/api';\nimport { addDays } from '../helpers/dateTimeUtilities';\nimport { Channel } from '../types/api/channel';\n\nexport const mapUpdateRouteSubscriptionToApi = (\n { routeSubscription, allRoutes = [] }:\n { routeSubscription: RouteSubscriptionUpdateModel; allRoutes: RouteDetail[] },\n)\n: UpsertRouteSubsciptionApi | undefined => {\n if (!allRoutes || allRoutes.length === 0) {\n return undefined;\n }\n\n if (!routeSubscription) {\n return undefined;\n }\n\n const textCode = allRoutes\n .find((route: RouteDetail) => route.textCode === routeSubscription.textCode)?.textCode || '';\n return {\n textCode,\n channel: Channel.Web,\n startDate: routeSubscription.startDate,\n endDate: addDays(routeSubscription.endDate, 1),\n };\n};\n","import {\n ref, computed, Ref, watch,\n} from 'vue';\nimport {\n provideApolloClient, useMutation, useQuery,\n} from '@vue/apollo-composable';\nimport { defineStore, storeToRefs } from 'pinia';\n\nimport { ApolloQueryResult } from '@apollo/client';\nimport {\n GetRouteSubscriptionsResponse,\n RouteSubscription,\n} from '../types/api';\nimport { apolloClient } from '../services/ApolloClient';\nimport { useRoutesStore } from './useRoutesStore';\nimport { deleteRouteSubscription, getRouteSubscriptions, upsertRouteSubscription } from './queries';\nimport {\n RouteDetail,\n RouteSubscriptionSavedModel,\n RouteSubscriptionUpdateModel,\n} from '../types';\nimport { determineAvailableRoutes, orderByTextCodeAsc } from '../helpers';\nimport { mapRouteInformationToRouteDetails } from '../maps/mapRouteInformationToRouteDetails';\nimport { mapRouteSubscriptionsToSavedView, mapUpdateRouteSubscriptionToApi } from '../maps';\n\nprovideApolloClient(apolloClient);\n\nexport const useRouteSubscriptionStore = defineStore('routeSubscriptionStore', () => {\n const subscriptions = ref | undefined>(undefined);\n const isSubscriptionLoading = ref(false);\n const isSubscriptionAdding = ref(false);\n const isSubscriptionUpdating = ref(false);\n const isSubscriptionDeleting = ref(false);\n const isSubscriptionFetchError = ref(false);\n const isSubscriptionUpdateError = ref(false);\n const isSubscriptionDeleteError = ref(false);\n\n const {\n allRoutes,\n allRoutesError: isRoutesError,\n isLoading: isRoutesLoading,\n } = storeToRefs(useRoutesStore());\n\n const isLoading = computed(() =>\n isRoutesLoading.value\n || isSubscriptionLoading.value\n || isSubscriptionUpdating.value\n || isSubscriptionDeleting.value\n || isSubscriptionAdding.value);\n\n const availableRoutes = computed(() =>\n determineAvailableRoutes({\n allRoutes: allRoutes.value || [],\n subscriptions: subscriptions.value || [],\n }).sort(orderByTextCodeAsc));\n\n const subscriptionsView: Ref = computed(() => {\n if (!subscriptions.value) {\n return undefined;\n }\n return mapRouteSubscriptionsToSavedView({\n allRoutes: allRoutes.value || [],\n subscriptions: subscriptions.value,\n });\n });\n\n const allRoutesView: Ref = computed(\n () => allRoutes.value?.map(mapRouteInformationToRouteDetails) || [],\n );\n\n const getSubscriptions = async () => {\n const {\n refetch,\n onResult,\n onError,\n loading,\n } = useQuery(\n getRouteSubscriptions,\n );\n\n watch(() => loading.value, (newValue) => {\n isSubscriptionLoading.value = newValue;\n }, { immediate: true });\n\n onError(() => {\n isSubscriptionFetchError.value = true;\n });\n\n onResult((queryResult: ApolloQueryResult) => {\n isSubscriptionFetchError.value = false;\n subscriptions.value = queryResult?.data?.routeSubscriptions || [];\n });\n\n await refetch();\n };\n\n const deleteSubscription = async ({\n textCode,\n onApiError,\n onApiSuccess,\n }: {\n textCode: string;\n onApiError?: () => void;\n onApiSuccess?: () => void;\n }) => {\n const {\n mutate: callDeleteRouteSubscription,\n onError,\n onDone,\n loading,\n } = useMutation(\n deleteRouteSubscription,\n );\n\n isSubscriptionDeleteError.value = false;\n watch(() => loading.value, (newValue) => {\n isSubscriptionDeleting.value = newValue;\n });\n\n onError(() => {\n isSubscriptionDeleteError.value = true;\n if (onApiError) {\n onApiError();\n }\n });\n\n onDone(() => {\n if (onApiSuccess) {\n onApiSuccess();\n }\n });\n\n callDeleteRouteSubscription({\n deleteRouteSubscriptionInput: {\n textCode,\n },\n });\n };\n\n const updateSubscription = async ({\n routeSubscription,\n onApiError,\n onApiSuccess,\n } : {\n routeSubscription: RouteSubscriptionUpdateModel;\n onApiError?: () => void;\n onApiSuccess?: () => void;}) => {\n const {\n mutate: updateRouteSubscription,\n onError,\n onDone,\n loading,\n } = useMutation(\n upsertRouteSubscription,\n );\n\n isSubscriptionUpdateError.value = false;\n const apiModel = mapUpdateRouteSubscriptionToApi({\n routeSubscription,\n allRoutes: allRoutesView.value,\n });\n\n watch(() => loading.value, (newValue) => {\n isSubscriptionUpdating.value = newValue;\n });\n\n onError(() => {\n isSubscriptionUpdateError.value = true;\n if (onApiError) {\n onApiError();\n }\n });\n\n onDone(() => {\n if (onApiSuccess) {\n onApiSuccess();\n }\n });\n\n updateRouteSubscription({\n upsertRouteSubscriptionInput: apiModel,\n });\n };\n\n const addSubscription = async ({\n routeSubscription,\n onApiError,\n onApiSuccess,\n } : {\n routeSubscription: RouteSubscriptionUpdateModel;\n onApiError?: () => void;\n onApiSuccess?: () => void;}) => {\n const {\n mutate: updateRouteSubscription,\n onError,\n onDone,\n loading,\n } = useMutation(\n upsertRouteSubscription,\n );\n\n isSubscriptionUpdateError.value = false;\n const apiModel = mapUpdateRouteSubscriptionToApi({\n routeSubscription,\n allRoutes: allRoutesView.value,\n });\n\n watch(() => loading.value, (newValue) => {\n isSubscriptionAdding.value = newValue;\n });\n\n onError(() => {\n isSubscriptionUpdateError.value = true;\n if (onApiError) {\n onApiError();\n }\n });\n\n onDone(() => {\n if (onApiSuccess) {\n onApiSuccess();\n }\n });\n\n updateRouteSubscription({\n upsertRouteSubscriptionInput: apiModel,\n });\n };\n\n return {\n availableRoutes,\n isRoutesError,\n subscriptions: subscriptionsView,\n allRoutes: allRoutesView,\n isLoading,\n isSubscriptionLoading,\n isSubscriptionAdding,\n isSubscriptionUpdating,\n isSubscriptionFetchError,\n isSubscriptionDeleteError,\n isSubscriptionUpdateError,\n getSubscriptions,\n deleteSubscription,\n addSubscription,\n updateSubscription,\n };\n});\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-a177ea90\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"messageBannerApp\" }\nconst _hoisted_2 = { class: \"container\" }\nconst _hoisted_3 = { class: \"inner\" }\nconst _hoisted_4 = { class: \"warning\" }\nconst _hoisted_5 = { class: \"messageBannerText\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"20\",\n height: \"20\",\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n role: \"img\",\n \"aria-hidden\": \"true\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n \"fill-rule\": \"evenodd\",\n \"clip-rule\": \"evenodd\",\n d: \"\\n M9.97056 11.3849\\n L17.7487 19.1631\\n L19.163 17.7489\\n L11.3848 9.9707\\n L19.163 2.19253\\n L17.7487 0.778315\\n L9.97056 8.55649\\n L2.19239 0.778315\\n L0.778174 2.19253\\n L8.55635 9.9707\\n L0.778174 17.7489\\n L2.19239 19.1631\\n L9.97056 11.3849\\n Z\"\n })\n], -1))\nconst _hoisted_7 = [\n _hoisted_6\n]\n\nimport { Icon } from '../Icon';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TimezoneWarning',\n emits: ['close'],\n setup(__props) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", null, [\n _createVNode(_unref(Icon), { \"icon-name\": \"messageBannerAlert\" })\n ])\n ]),\n _createElementVNode(\"p\", _hoisted_5, _toDisplayString(_ctx.$t('UK dates message')), 1),\n _createElementVNode(\"button\", {\n \"aria-label\": \"close message banner\",\n class: \"close\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.$emit('close')))\n }, _hoisted_7)\n ])\n ])\n ]))\n}\n}\n\n})","import script from \"./TimezoneWarning.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TimezoneWarning.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TimezoneWarning.vue?vue&type=style&index=0&id=a177ea90&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-a177ea90\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-1345e30b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n role: \"img\",\n \"aria-hidden\": \"true\",\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 14 15\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M7.94711 12.0096\\n V11.8221\\n H7.75961\\n H6.69231\\n H6.50481\\n V12.0096\\n V13.2452\\n H2.25481\\n V1.87981\\n H6.50481\\n V3.11538\\n V3.30288\\n H6.69231\\n H7.75961\\n H7.94711\\n V3.11538\\n V0.625\\n V0.4375\\n H7.75961\\n H1\\n H0.8125\\n V0.625\\n V14.5\\n V14.6875\\n H1\\n H7.75961\\n H7.94711\\n V14.5\\n V12.0096\\n Z\",\n \"stroke-width\": \"0.375\"\n }),\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M12.7405 8.28366\\n H12.928\\n V8.09616\\n V7.02885\\n V6.84135\\n H12.7405\\n H8.65874\\n V5.74097\\n V5.40974\\n L8.37474 5.5802\\n L5.34003 7.40174\\n L5.07219 7.56251\\n L5.34003 7.72327\\n L8.37474 9.54481\\n L8.65874 9.71527\\n V9.38404\\n V8.28366\\n H12.7405\\n Z\",\n \"stroke-width\": \"0.375\"\n })\n], -1))\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'SignOutButton',\n emits: ['click'],\n setup(__props, { emit: __emit }) {\n\n\nconst emit = __emit;\n\nconst handleClick = () => {\n emit('click');\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"button\", {\n class: \"signOutButton\",\n type: \"button\",\n onClick: handleClick\n }, [\n _hoisted_1,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t('Sign out')), 1)\n ]))\n}\n}\n\n})","import script from \"./SignOutButton.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./SignOutButton.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./SignOutButton.vue?vue&type=style&index=0&id=1345e30b&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1345e30b\"]])\n\nexport default __exports__","import { dictionary } from './dictionary';\nimport { DictionaryField } from './fields';\n\nexport const useDictionary = () => ({\n DictionaryField,\n dictionary,\n});\n","\n\n\n\n\n","import { render } from \"./Spinner.vue?vue&type=template&id=e2d8d4ca&scoped=true\"\nconst script = {}\n\nimport \"./Spinner.vue?vue&type=style&index=0&id=e2d8d4ca&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e2d8d4ca\"]])\n\nexport default __exports__","import { parseISO } from 'date-fns';\nimport { toZonedTime } from 'date-fns-tz';\nimport { utcNow } from '../dateTimeUtilities';\nimport { timezone } from '../../envVariables';\n\nexport const getSubscriptionStartDefault = (currentDate = utcNow()): string =>\n toZonedTime(currentDate.toISOString(), timezone).toISOString();\n\nexport const getSubscriptionEndDefault = (currentDate = utcNow()): string => {\n currentDate.setUTCDate(currentDate.getUTCDate() - 1);\n currentDate.setUTCMonth(currentDate.getUTCMonth() + 6);\n return toZonedTime(currentDate.toISOString(), timezone).toISOString();\n};\n\nexport const isValidSubscriptionRange = (startDate?: string, endDate?: string): boolean => {\n if (!startDate || !endDate) {\n return true;\n }\n const start = parseISO(startDate);\n const end = parseISO(endDate);\n\n return start.getTime() <= end.getTime();\n};\n","import { RouteDetail } from '@components/renderTypes';\n\nexport const filterRoutesBySearchTerm = ({\n routes = [],\n searchTerm = '',\n}: {\n routes: RouteDetail[],\n searchTerm: string\n}): RouteDetail[] => {\n if (!searchTerm) return routes;\n\n if (!routes) return [];\n\n const res = routes.filter(\n (route: RouteDetail) =>\n route.ports.some(({ name, portCode }) =>\n name.toLowerCase().includes(searchTerm.toLowerCase())\n || (portCode && portCode.toLowerCase().includes(searchTerm.toLowerCase()))),\n );\n\n return res;\n};\n","import { Port } from '../../types';\n\nexport const formatRouteFromPorts = ({\n ports = [],\n textCode,\n textCodePrefix,\n} : {\n ports: Port[];\n textCode: string;\n textCodePrefix: string;\n}): string => {\n if (!textCode || !ports || !ports.length) {\n return '';\n }\n\n return ports.map((port) => `${port.name}${port.portCode}`).join(' - ')\n .concat(`: ${textCodePrefix} ${textCode}`);\n};\n","import { RouteDetail } from '../types/sms';\nimport { RecentOrSuggestedSearchEntry } from '../types/RenderTypes';\n\nexport const mapRouteDetailToRecentSearch = (item: RouteDetail) : RecentOrSuggestedSearchEntry => ({\n ports: item.ports,\n routeId: item.routeId,\n iconName: '',\n textCode: item.textCode,\n});\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, createVNode as _createVNode, createElementBlock as _createElementBlock, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-146ae13c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 1 }\nconst _hoisted_2 = [\"placeholder\", \"disabled\", \"value\", \"aria-labelledby\", \"aria-expanded\"]\nconst _hoisted_3 = {\n key: 0,\n id: \"searchResults\"\n}\n\nimport { Ref, computed, ref } from 'vue';\nimport { Skeletor } from 'vue-skeletor';\nimport 'vue-skeletor/dist/vue-skeletor.css';\nimport { directive as vClickOutside } from 'click-outside-vue3';\nimport { useI18n } from 'vue-i18n';\nimport { RecentOrSuggestedSearchEntry, RouteDetail } from '../../types';\nimport { filterRoutesBySearchTerm, formatRouteFromPorts } from '../../helpers';\nimport { mapRouteDetailToRecentSearch } from '../../maps';\nimport { RecentSearches } from '../../Molecules';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteSearch',\n props: {\n routeDetail: {},\n searchLabelId: {},\n isLoading: { type: Boolean, default: false },\n disabled: { type: Boolean, default: false },\n selectedTextCode: {},\n isError: { type: Boolean, default: false }\n },\n emits: [\"routeSelected\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\nconst { t } = useI18n();\n\nconst searchText = ref('');\nconst showSelectedValue = ref(true);\n\nconst searchInput: Ref = ref(null);\n\nconst searchResults: Ref = computed(() => {\n const filtered = filterRoutesBySearchTerm({\n routes: props.routeDetail,\n searchTerm: searchText.value,\n });\n return filtered.map(mapRouteDetailToRecentSearch);\n});\n\nconst selectedRoutePorts = computed(() => {\n if (props.selectedTextCode) {\n return props.routeDetail.find(\n (route) => route.textCode === props.selectedTextCode,\n )?.ports || [];\n }\n return [];\n});\n\nconst selectedText = computed(() =>\n formatRouteFromPorts({\n ports: selectedRoutePorts.value,\n textCode: props.selectedTextCode || '',\n textCodePrefix: t('Text code'),\n }));\n\nconst inputText = computed(() => {\n if (!showSelectedValue.value) {\n return searchText.value;\n }\n return selectedText.value;\n});\n\nconst handleSearchTextChanged = (event: Event) => {\n searchText.value = (event?.target as HTMLInputElement)?.value || '';\n};\n\nconst handleSearchInputFocus = () => {\n showSelectedValue.value = false;\n};\n\nconst handleBlur = () => {\n showSelectedValue.value = true;\n};\n\nconst handleSelected = (value: RecentOrSuggestedSearchEntry) => {\n searchText.value = '';\n emit('routeSelected', value.textCode || '');\n showSelectedValue.value = true;\n};\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 0,\n height: \"50\"\n }))\n : _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"input\", {\n id: \"search-route\",\n ref_key: \"searchInput\",\n ref: searchInput,\n role: \"combobox\",\n type: \"text\",\n name: \"search-route\",\n \"aria-controls\": \"searchResults\",\n \"aria-haspopup\": \"listbox\",\n class: _normalizeClass([\"routeSearch\", { 'error': _ctx.isError}]),\n placeholder: _ctx.$t('Select a route'),\n disabled: _ctx.disabled,\n value: inputText.value,\n \"aria-labelledby\": _ctx.searchLabelId,\n \"aria-expanded\": !showSelectedValue.value,\n onInput: handleSearchTextChanged,\n onFocus: handleSearchInputFocus\n }, null, 42, _hoisted_2),\n (!showSelectedValue.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createVNode(_unref(RecentSearches), {\n \"show-searches\": true,\n searches: searchResults.value,\n \"show-port-codes\": true,\n \"show-text-code\": true,\n \"no-results-text\": _ctx.$t('No suggestions found'),\n onSetSearchValue: handleSelected\n }, null, 8, [\"searches\", \"no-results-text\"])\n ]))\n : _createCommentVNode(\"\", true)\n ])), [\n [_unref(vClickOutside), handleBlur]\n ])\n}\n}\n\n})","import script from \"./RouteSearch.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteSearch.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteSearch.vue?vue&type=style&index=0&id=146ae13c&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-146ae13c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-26c37e27\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"routeSubscription\" }\nconst _hoisted_2 = { class: \"routeSelectorWrapper\" }\nconst _hoisted_3 = { id: \"subscriptionRouteSearch\" }\nconst _hoisted_4 = { class: \"startDateWrapper dateItem\" }\nconst _hoisted_5 = { for: \"subscriptionStartDate\" }\nconst _hoisted_6 = { class: \"endDateWrapper dateItem\" }\nconst _hoisted_7 = { for: \"subscriptionEndDate\" }\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { class: \"routeSubscriptionErrorMessage\" }\n\nimport { computed, onMounted } from 'vue';\nimport { Skeletor } from 'vue-skeletor';\nimport { RouteDetail } from '../../types';\nimport { getSubscriptionEndDefault, getSubscriptionStartDefault } from '../../helpers/sms/determineSubscriptionDates';\nimport { DatePickerCalendar, RouteSearch } from '../../Molecules';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteSubscription',\n props: {\n mode: { default: 'edit' },\n startDate: {},\n endDate: {},\n routes: {},\n textCode: {},\n isLoading: { type: Boolean, default: false },\n routeError: { type: Boolean, default: false },\n rangeError: { type: Boolean, default: false }\n },\n emits: [\"updateRoute\", \"updateStartDate\", \"updateEndDate\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\nconst routeDisabled = computed(() => props.mode === 'view' || props.mode === 'edit');\nconst startDateDisabled = computed(() => props.mode === 'view');\nconst endDateDisabled = computed(() => props.mode === 'view');\n\nconst subscriptionEndDate = getSubscriptionEndDefault();\nconst subscriptionStartDate = getSubscriptionStartDefault();\n\nconst initialStartDate = computed(() => (\n props.startDate ? props.startDate : subscriptionStartDate));\n\nconst initialEndDate = computed(() => (\n props.endDate ? props.endDate : subscriptionEndDate));\n\nconst errorToShow = computed(() => {\n if (props.routeError) {\n return 'You must select a route';\n }\n if (props.rangeError) {\n return 'The end date selected must be after the start date selected';\n }\n return '';\n});\n\nconst handleStartDateSelected = (date: string) => {\n emit('updateStartDate', date);\n};\n\nconst handleEndDateSelected = (date: string) => {\n emit('updateEndDate', date);\n};\n\nconst handleRouteSelected = (textCode: string) => {\n emit('updateRoute', textCode);\n};\n\nonMounted(() => {\n emit('updateStartDate', initialStartDate.value);\n emit('updateEndDate', initialEndDate.value);\n});\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"label\", _hoisted_3, _toDisplayString(_ctx.$t('Route')), 1),\n _createVNode(_unref(RouteSearch), {\n \"route-detail\": _ctx.routes,\n \"search-label-id\": \"subscriptionRouteSearch\",\n \"is-loading\": _ctx.isLoading,\n \"is-error\": _ctx.routeError,\n disabled: routeDisabled.value,\n \"selected-text-code\": _ctx.textCode,\n onRouteSelected: handleRouteSelected\n }, null, 8, [\"route-detail\", \"is-loading\", \"is-error\", \"disabled\", \"selected-text-code\"])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"label\", _hoisted_5, _toDisplayString(_ctx.$t('Start Date')), 1),\n (!_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(DatePickerCalendar), {\n key: 0,\n id: 'subscriptionStartDate',\n \"date-format\": 'dd/MM/yyyy',\n disabled: startDateDisabled.value,\n \"initial-date\": initialStartDate.value,\n \"max-date\": _unref(subscriptionEndDate),\n \"min-date\": _unref(subscriptionStartDate),\n \"today-text\": _ctx.$t('Today'),\n loading: _ctx.isLoading,\n \"is-error\": _ctx.rangeError,\n \"onUpdate:selectedDate\": handleStartDateSelected\n }, null, 8, [\"disabled\", \"initial-date\", \"max-date\", \"min-date\", \"today-text\", \"loading\", \"is-error\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n height: \"50\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"label\", _hoisted_7, _toDisplayString(_ctx.$t('End Date')), 1),\n (!_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(DatePickerCalendar), {\n key: 0,\n id: 'subscriptionEndDate',\n \"date-format\": 'dd/MM/yyyy',\n disabled: endDateDisabled.value,\n \"initial-date\": initialEndDate.value,\n \"max-date\": _unref(subscriptionEndDate),\n \"min-date\": _unref(subscriptionStartDate),\n \"today-text\": _ctx.$t('Today'),\n loading: _ctx.isLoading,\n \"is-error\": _ctx.rangeError,\n \"onUpdate:selectedDate\": handleEndDateSelected\n }, null, 8, [\"disabled\", \"initial-date\", \"max-date\", \"min-date\", \"today-text\", \"loading\", \"is-error\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n height: \"50\"\n }))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n (errorToShow.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"span\", _hoisted_9, _toDisplayString(_ctx.$t(errorToShow.value)), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}\n}\n\n})","import script from \"./RouteSubscription.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteSubscription.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteSubscription.vue?vue&type=style&index=0&id=26c37e27&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-26c37e27\"]])\n\nexport default __exports__","import * as DOMPurify from 'dompurify';\nimport { marked } from 'marked';\nimport { assetBaseUrl } from '../envVariables';\n\nexport const updateMediaPaths = (input: string, assetsBaseUrl: string) : string => {\n const mediaMatchRegex = /\\[(\\d+)\\]\\s*:\\s*\\/media\\//g;\n return input.replace(mediaMatchRegex, `[$1]: ${assetsBaseUrl}/media/`);\n};\n\nexport const markdownToHtml = (markdown: string | undefined): string => {\n if (!markdown) {\n return '';\n }\n\n const markdownWithRelativePathsUpdated = updateMediaPaths(markdown, assetBaseUrl);\n return DOMPurify.sanitize(marked.parse(markdownWithRelativePathsUpdated, {\n mangle: false,\n headerIds: false,\n }));\n};\n","import { RouteSubscriptionViewModel, SmsErrors } from '../../types';\nimport { isValidSubscriptionRange } from './determineSubscriptionDates';\n\nexport const validateSubscription = (subscription: RouteSubscriptionViewModel) : SmsErrors => {\n const errors: SmsErrors = {\n textCode: false,\n rangeError: false,\n };\n\n if (!subscription.textCode) {\n errors.textCode = true;\n }\n\n if (!isValidSubscriptionRange(subscription.startDate, subscription.endDate)) {\n errors.rangeError = true;\n }\n return errors;\n};\n","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, createBlock as _createBlock, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-b21e5d12\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"addRouteInner\" }\nconst _hoisted_2 = { class: \"h5\" }\nconst _hoisted_3 = [\"innerHTML\"]\nconst _hoisted_4 = {\n key: 1,\n class: \"alertBox\"\n}\nconst _hoisted_5 = {\n key: 0,\n class: \"alertBoxTitle\"\n}\nconst _hoisted_6 = [\"innerHTML\"]\nconst _hoisted_7 = { class: \"buttonsWrapper\" }\nconst _hoisted_8 = { key: 2 }\nconst _hoisted_9 = { class: \"apiError\" }\n\nimport {\n computed, ref, Ref, watchEffect,\n} from 'vue';\nimport { Button, Spinner } from '../../Atoms';\nimport { RouteSubscription } from '../RouteSubscription';\nimport { markdownToHtml, validateSubscription } from '../../helpers';\nimport { RouteDetail, SmsErrors } from '../../types';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AddRouteSubscription',\n props: {\n howItWorksTitle: {},\n howItWorksDescriptionMarkdown: {},\n startDate: { default: undefined },\n endDate: { default: undefined },\n textCode: { default: undefined },\n routes: {},\n alertTitle: {},\n alertDescriptionMarkdown: {},\n isLoading: { type: Boolean, default: false },\n apiError: {}\n },\n emits: [\"save\", \"cancel\", \"updateStartDate\", \"updateEndDate\", \"updateTextCode\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\nconst dirty = ref(false);\nconst errors: Ref = ref({\n textCode: false,\n rangeError: false,\n});\n\nconst showAlert = computed(() => props.alertTitle || props.alertDescriptionMarkdown);\nconst howItWorksDescription = computed(() => markdownToHtml(props.howItWorksDescriptionMarkdown));\nconst alertDescription = computed(() => markdownToHtml(props.alertDescriptionMarkdown));\n\nwatchEffect(() => {\n errors.value = validateSubscription({\n startDate: props.startDate,\n endDate: props.endDate,\n textCode: props.textCode,\n });\n});\n\nconst isError = computed(() => Object.values(errors.value).some((error) => error));\nconst handleUpdateStartDate = (date: string) => {\n emit('updateStartDate', date);\n};\n\nconst handleUpdateEndDate = (date: string) => {\n emit('updateEndDate', date);\n};\n\nconst handleUpdateRoute = (value: string) => {\n emit('updateTextCode', value);\n};\n\nconst handleSave = () => {\n dirty.value = true;\n\n if (isError.value) {\n return;\n }\n emit('save');\n dirty.value = false;\n};\n\nconst handleCancel = () => {\n dirty.value = false;\n emit('cancel');\n};\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"h4\", _hoisted_2, _toDisplayString(_ctx.howItWorksTitle), 1),\n (howItWorksDescription.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"content\",\n innerHTML: howItWorksDescription.value\n }, null, 8, _hoisted_3))\n : _createCommentVNode(\"\", true),\n (showAlert.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n (_ctx.alertTitle)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_5, _toDisplayString(_ctx.alertTitle), 1))\n : _createCommentVNode(\"\", true),\n (alertDescription.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"alertBoxContent\",\n innerHTML: alertDescription.value\n }, null, 8, _hoisted_6))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", null, [\n _createVNode(_unref(RouteSubscription), {\n mode: 'new',\n routes: _ctx.routes,\n \"text-code\": _ctx.textCode,\n \"range-error\": errors.value.rangeError && dirty.value,\n \"route-error\": errors.value.textCode && dirty.value,\n \"start-date\": _ctx.startDate,\n \"end-date\": _ctx.endDate,\n onUpdateStartDate: handleUpdateStartDate,\n onUpdateEndDate: handleUpdateEndDate,\n onUpdateRoute: handleUpdateRoute\n }, null, 8, [\"routes\", \"text-code\", \"range-error\", \"route-error\", \"start-date\", \"end-date\"]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_unref(Button), {\n type: \"button\",\n label: _ctx.$t('Cancel'),\n secondary: true,\n \"on-click\": handleCancel\n }, null, 8, [\"label\"]),\n _createVNode(_unref(Button), {\n type: \"button\",\n label: _ctx.$t('Save'),\n disabled: _ctx.isLoading,\n \"on-click\": handleSave\n }, {\n default: _withCtx(() => [\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Spinner), {\n key: 0,\n class: \"spinner\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"label\", \"disabled\"])\n ])\n ]),\n (_ctx.apiError)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createElementVNode(\"span\", _hoisted_9, _toDisplayString(_ctx.apiError), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./AddRouteSubscription.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AddRouteSubscription.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./AddRouteSubscription.vue?vue&type=style&index=0&id=b21e5d12&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-b21e5d12\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-f444dc04\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"container\" }\nconst _hoisted_2 = { class: \"noRoutesCardWrapper\" }\nconst _hoisted_3 = { class: \"noRoutesTitle\" }\nconst _hoisted_4 = [\"innerHTML\"]\nconst _hoisted_5 = {\n key: 1,\n class: \"noRoutesButtonWrapper\"\n}\nconst _hoisted_6 = {\n key: 2,\n class: \"addRouteWrapper\"\n}\n\nimport {\n Ref,\n computed, ref,\n} from 'vue';\nimport { storeToRefs } from 'pinia';\nimport { useDictionary } from '@components/dictionary';\nimport { useI18n } from 'vue-i18n';\nimport { Card, Icon } from '../../Atoms';\nimport { useRouteSubscriptionStore } from '../../stores/useRouteSubscriptionStore';\nimport { AddRouteSubscription } from '../AddRouteSubscription';\nimport { markdownToHtml } from '../../helpers';\nimport { RouteDetail, RouteSubscriptionViewModel } from '../../types';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'NoRoutesCard',\n props: {\n routes: {}\n },\n setup(__props: any) {\n\n\n\nconst { t } = useI18n();\nconst { DictionaryField, dictionary } = useDictionary();\n\nconst routeSubscriptionsStore = useRouteSubscriptionStore();\nconst {\n addSubscription, getSubscriptions,\n} = routeSubscriptionsStore;\n\nconst { isSubscriptionAdding } = storeToRefs(routeSubscriptionsStore);\n\nconst showInstructions = ref(false);\nconst apiError = ref('');\n\nconst subscription: Ref = ref({\n startDate: undefined,\n endDate: undefined,\n routeCode: undefined,\n});\n\nconst noRoutesIntro = computed(() => markdownToHtml(dictionary.value[DictionaryField['SMS:Web:NoRoutes:Intro']]));\n\nconst clearAddRouteValues = () => {\n subscription.value = {\n startDate: undefined,\n endDate: undefined,\n textCode: undefined,\n };\n};\n\nconst handleAddRoute = () => {\n showInstructions.value = true;\n};\n\nconst handleUpdateStartDate = (value: string) => {\n subscription.value.startDate = value;\n};\n\nconst handleUpdateEndDate = (value: string) => {\n subscription.value.endDate = value;\n};\n\nconst handleUpdateTextCode = (value: string) => {\n subscription.value.textCode = value;\n};\n\nconst handleSave = async () => {\n apiError.value = '';\n\n addSubscription(\n {\n routeSubscription: {\n startDate: subscription.value.startDate || '',\n endDate: subscription.value.endDate || '',\n textCode: subscription.value.textCode || '',\n },\n onApiSuccess: () => {\n clearAddRouteValues();\n getSubscriptions();\n },\n onApiError: () => {\n apiError.value = t('SMS Api error');\n },\n },\n );\n};\n\nconst handleCancel = () => {\n showInstructions.value = false;\n apiError.value = '';\n clearAddRouteValues();\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(Card), { class: \"noRoutesCard\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"h3\", _hoisted_3, _toDisplayString(_unref(dictionary)[_unref(DictionaryField)['SMS:Web:NoRoutes:Title']]), 1),\n (noRoutesIntro.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"noRoutesContent\",\n innerHTML: noRoutesIntro.value\n }, null, 8, _hoisted_4))\n : _createCommentVNode(\"\", true),\n (!showInstructions.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"button\", {\n class: \"button noRoutesButton\",\n onClick: handleAddRoute\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"plus\" }),\n _createTextVNode(\" \" + _toDisplayString(_unref(dictionary)[_unref(DictionaryField)['SMS:Web:AddNewRoute']]), 1)\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createVNode(_unref(AddRouteSubscription), {\n \"start-date\": subscription.value.startDate,\n \"end-date\": subscription.value.endDate,\n routes: _ctx.routes,\n \"text-code\": subscription.value.textCode,\n \"alert-description-markdown\": \n _unref(dictionary)[_unref(DictionaryField)['SMS:Web:HowItWorks:Alert:Description']]\n ,\n \"alert-title\": _unref(dictionary)[_unref(DictionaryField)['SMS:Web:HowItWorks:Alert:Title']],\n \"how-it-works-description-markdown\": \n _unref(dictionary)[_unref(DictionaryField)['SMS:Web:HowItWorks:Description']]\n ,\n \"how-it-works-title\": \n _unref(dictionary)[_unref(DictionaryField)['SMS:Web:HowItWorks:Title']]\n ,\n \"show-instructions\": showInstructions.value,\n \"api-error\": apiError.value,\n \"is-loading\": _unref(isSubscriptionAdding),\n onUpdateEndDate: handleUpdateEndDate,\n onUpdateStartDate: handleUpdateStartDate,\n onUpdateTextCode: handleUpdateTextCode,\n onSave: handleSave,\n onCancel: handleCancel\n }, null, 8, [\"start-date\", \"end-date\", \"routes\", \"text-code\", \"alert-description-markdown\", \"alert-title\", \"how-it-works-description-markdown\", \"how-it-works-title\", \"show-instructions\", \"api-error\", \"is-loading\"])\n ]))\n ]),\n _: 1\n })\n ])\n ]))\n}\n}\n\n})","import script from \"./NoRoutesCard.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./NoRoutesCard.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./NoRoutesCard.vue?vue&type=style&index=0&id=f444dc04&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-f444dc04\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, unref as _unref, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, createVNode as _createVNode, toDisplayString as _toDisplayString, Teleport as _Teleport, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-6947106a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"deleteSubscriptionModalBackground\" }, null, -1))\nconst _hoisted_3 = { class: \"deleteSubscriptionModalInner\" }\nconst _hoisted_4 = {\n role: \"dialog\",\n \"aria-modal\": \"true\",\n class: \"closeButtonWrapper\"\n}\nconst _hoisted_5 = [\"aria-label\"]\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n role: \"img\",\n \"aria-hidden\": \"true\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n \"fill-rule\": \"evenodd\",\n \"clip-rule\": \"evenodd\",\n d: \"M9.97056 11.3848\\n L17.7487 19.163\\n L19.163 17.7488\\n L11.3848 9.97058\\n L19.163 2.19241\\n L17.7487 0.778193\\n L9.97056 8.55637\\n L2.19239 0.778193\\n L0.778174 2.19241\\n L8.55635 9.97058\\n L0.778174 17.7488\\n L2.19239 19.163\\n L9.97056 11.3848Z\"\n })\n], -1))\nconst _hoisted_7 = [\n _hoisted_6\n]\nconst _hoisted_8 = { class: \"textWrapper\" }\nconst _hoisted_9 = { class: \"buttonsWrapper\" }\nconst _hoisted_10 = { key: 0 }\nconst _hoisted_11 = { class: \"error\" }\n\nimport {\n onMounted, onUnmounted, ref, watch,\n} from 'vue';\nimport { Button, Spinner } from '@components/Atoms';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ConfirmModal',\n props: {\n to: {},\n error: {}\n },\n emits: [\"cancel\", \"confirm\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\nconst isMounted = ref(false);\n\nconst isLoading = ref(false);\n\nconst dismiss = () => {\n emit('cancel');\n};\n\nconst handleConfirm = () => {\n emit('confirm');\n isLoading.value = true;\n};\n\nconst escapeHandler = (e: KeyboardEvent) => {\n if (e.key === 'Escape') {\n dismiss();\n }\n};\ndocument.addEventListener('keydown', escapeHandler);\n\nonUnmounted(() => document.removeEventListener('keydown', escapeHandler));\nonMounted(() => {\n isMounted.value = true;\n});\n\nwatch(() => props.error, (value) => {\n if (value) {\n isLoading.value = false;\n }\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (isMounted.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(), _createBlock(_Teleport, { to: _ctx.to }, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"button\", {\n \"aria-label\": _ctx.$t('Close modal'),\n class: \"closeButton\",\n onClick: dismiss\n }, _hoisted_7, 8, _hoisted_5)\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createVNode(_unref(Button), {\n \"on-click\": handleConfirm,\n label: _ctx.$t('Confirm'),\n primary: true,\n disabled: isLoading.value,\n class: \"button\"\n }, {\n default: _withCtx(() => [\n (isLoading.value)\n ? (_openBlock(), _createBlock(_unref(Spinner), {\n key: 0,\n class: \"spinner\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"label\", \"disabled\"]),\n _createVNode(_unref(Button), {\n \"on-click\": dismiss,\n label: _ctx.$t('Cancel'),\n secondary: true,\n class: \"button secondary\"\n }, null, 8, [\"label\"])\n ]),\n (_ctx.error)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"span\", _hoisted_11, _toDisplayString(_ctx.error), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ], 8, [\"to\"]))\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./ConfirmModal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ConfirmModal.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ConfirmModal.vue?vue&type=style&index=0&id=6947106a&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6947106a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"h2\", { class: \"h5\" }, \" Are you sure you want to delete your subscription? \")\n], -1)\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"p\", null, \"You will no longer receive SMS updates for this route once you delete your subscription.\", -1)\n\nimport { ConfirmModal } from '../ConfirmModal';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DeleteRouteSubscriptionModal',\n props: {\n to: {},\n error: {}\n },\n emits: [\"cancel\", \"confirm\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\nconst handleConfirm = () => {\n emit('confirm');\n};\n\nconst handleCancel = () => {\n emit('cancel');\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_unref(ConfirmModal), {\n to: _ctx.to,\n error: _ctx.error,\n onConfirm: handleConfirm,\n onCancel: handleCancel\n }, {\n default: _withCtx(() => [\n _hoisted_1,\n _hoisted_2\n ]),\n _: 1\n }, 8, [\"to\", \"error\"]))\n}\n}\n\n})","import script from \"./DeleteRouteSubscriptionModal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DeleteRouteSubscriptionModal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, vShow as _vShow, withDirectives as _withDirectives, withCtx as _withCtx, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-5b8f60bc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"container\" }\nconst _hoisted_2 = { class: \"routeSubscriptionCardsWrapper\" }\nconst _hoisted_3 = { class: \"textCode\" }\nconst _hoisted_4 = { class: \"bold\" }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = { class: \"rightButtonsWrapper\" }\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { key: 1 }\nconst _hoisted_10 = { key: 0 }\nconst _hoisted_11 = { class: \"apiError\" }\n\nimport {\n computed, ref, Ref, watch,\n} from 'vue';\nimport { Skeletor } from 'vue-skeletor';\nimport { useI18n } from 'vue-i18n';\nimport {\n Card, Button, Icon, Spinner,\n} from '../../Atoms';\nimport { DeleteRouteSubscriptionModal } from '../DeleteRouteSubscriptionModal';\nimport { RouteSubscription } from '../RouteSubscription';\nimport { validateSubscription } from '../../helpers';\nimport { RouteDetail, RouteSubscriptionViewModel, SmsErrors } from '../../types';\nimport { useRouteSubscriptionStore } from '../../stores';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'RouteSubscriptionCard',\n props: {\n startDate: {},\n endDate: {},\n routes: {},\n textCode: {},\n isLoading: { type: Boolean, default: false },\n isUpdating: { type: Boolean, default: false }\n },\n setup(__props: any) {\n\nconst props = __props;\nconst { t } = useI18n();\n\nconst routeSubscriptionsStore = useRouteSubscriptionStore();\nconst {\n updateSubscription,\n deleteSubscription,\n getSubscriptions,\n} = routeSubscriptionsStore;\n\nconst mode: Ref<'view' | 'edit'> = ref('view');\n\nconst subscription: Ref = ref({\n startDate: undefined,\n endDate: undefined,\n textCode: undefined,\n});\n\nconst errors: Ref = ref({\n textCode: false,\n rangeError: false,\n});\n\nconst showErrors = ref(false);\nconst apiError = ref('');\nconst isError = computed(() => Object.values(errors.value).some((err) => err));\nconst showDeleteModal = ref(false);\n\nwatch(() => subscription.value, (value) => {\n errors.value = validateSubscription(value);\n}, { deep: true });\n\nconst handleEdit = () => {\n mode.value = 'edit';\n};\n\nconst resetFields = () => {\n subscription.value = {\n startDate: props.startDate,\n endDate: props.endDate,\n textCode: props.textCode,\n };\n};\n\nresetFields();\n\nconst handleUpdateStartDate = (date: string) => {\n subscription.value.startDate = date;\n};\n\nconst handleUpdateEndDate = (date: string) => {\n subscription.value.endDate = date;\n};\n\nconst handleSave = async () => {\n showErrors.value = true;\n\n if (isError.value) {\n return;\n }\n\n apiError.value = '';\n\n updateSubscription({\n routeSubscription: {\n startDate: subscription.value.startDate || '',\n endDate: subscription.value.endDate || '',\n textCode: subscription.value.textCode || '',\n },\n onApiSuccess: () => {\n mode.value = 'view';\n getSubscriptions();\n },\n onApiError: () => {\n apiError.value = t('SMS Api error');\n },\n });\n showErrors.value = false;\n};\n\nconst handleDelete = () => {\n showDeleteModal.value = true;\n};\n\nconst handleConfirmDelete = () => {\n apiError.value = '';\n deleteSubscription({\n textCode: props.textCode,\n onApiSuccess: () => {\n getSubscriptions();\n },\n onApiError: () => {\n apiError.value = t('SMS Api error');\n },\n });\n};\n\nconst handleCancelDelete = () => {\n showDeleteModal.value = false;\n};\n\nconst handleCancel = () => {\n resetFields();\n mode.value = 'view';\n apiError.value = '';\n};\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_unref(Card), { class: \"routeSubscriptionCard\" }, {\n default: _withCtx(() => [\n _createVNode(_unref(RouteSubscription), {\n mode: mode.value,\n \"is-loading\": _ctx.isLoading,\n routes: _ctx.routes,\n \"text-code\": subscription.value.textCode,\n \"start-date\": subscription.value.startDate,\n \"end-date\": subscription.value.endDate,\n \"range-error\": errors.value.rangeError && showErrors.value,\n \"route-error\": errors.value.textCode && showErrors.value,\n onUpdateStartDate: handleUpdateStartDate,\n onUpdateEndDate: handleUpdateEndDate\n }, null, 8, [\"mode\", \"is-loading\", \"routes\", \"text-code\", \"start-date\", \"end-date\", \"range-error\", \"route-error\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.$t('Text code')) + \":\", 1),\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_5, _toDisplayString(_ctx.textCode), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n class: \"skeletorTextCode\",\n width: \"20\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"subscriptonButtonsWrapper\", { edit: mode.value === 'edit' }])\n }, [\n _withDirectives(_createElementVNode(\"button\", {\n class: \"deleteButton\",\n onClick: handleDelete\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"smsDelete\" }),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('Delete')), 1)\n ], 512), [\n [_vShow, !_ctx.isLoading]\n ]),\n (_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_6))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_7, [\n (mode.value === 'edit')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [\n _createVNode(_unref(Button), {\n type: \"button\",\n class: \"button secondary\",\n label: _ctx.$t('Cancel'),\n secondary: true,\n \"on-click\": handleCancel\n }, null, 8, [\"label\"]),\n _createVNode(_unref(Button), {\n disabled: _unref(routeSubscriptionsStore).isSubscriptionUpdating,\n type: \"button\",\n class: \"button\",\n label: _ctx.$t('Save changes'),\n \"on-click\": handleSave\n }, {\n default: _withCtx(() => [\n (_ctx.isUpdating)\n ? (_openBlock(), _createBlock(_unref(Spinner), {\n key: 0,\n class: \"spinner\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"disabled\", \"label\"])\n ]))\n : _createCommentVNode(\"\", true),\n (mode.value === 'view')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n (!_ctx.isLoading)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n class: \"button editButton\",\n onClick: handleEdit\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"smsEdit\" }),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('Edit details')), 1)\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_unref(Skeletor), {\n key: 1,\n class: \"vue-skeletor\",\n height: \"35\",\n width: \"162\"\n }))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ], 2),\n (apiError.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createElementVNode(\"span\", _hoisted_11, _toDisplayString(apiError.value), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }),\n (showDeleteModal.value)\n ? (_openBlock(), _createBlock(_unref(DeleteRouteSubscriptionModal), {\n key: 0,\n to: \"#modal\",\n error: apiError.value,\n onConfirm: handleConfirmDelete,\n onCancel: handleCancelDelete\n }, null, 8, [\"error\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n}\n}\n\n})","import script from \"./RouteSubscriptionCard.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./RouteSubscriptionCard.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./RouteSubscriptionCard.vue?vue&type=style&index=0&id=5b8f60bc&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5b8f60bc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-5d0a6dfa\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"addRouteCardInner\" }\nconst _hoisted_2 = { class: \"addRouteCardTitle\" }\n\nimport { Ref, ref } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { useDictionary } from '@components/dictionary';\nimport { AddRouteSubscription } from '../AddRouteSubscription';\nimport { RouteDetail, RouteSubscriptionViewModel } from '../../types';\nimport { useRouteSubscriptionStore } from '../../stores';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AddRouteSubscriptionCard',\n props: {\n routes: {}\n },\n emits: [\"saved\", \"cancel\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\nconst { t } = useI18n();\nconst { DictionaryField, dictionary } = useDictionary();\nconst routeSubscriptionsStore = useRouteSubscriptionStore();\nconst {\n addSubscription, getSubscriptions,\n} = routeSubscriptionsStore;\n\nconst subscription: Ref = ref({\n startDate: undefined,\n endDate: undefined,\n textCode: undefined,\n});\n\nconst apiError = ref('');\nconst clearAddRouteValues = () => {\n subscription.value = {\n startDate: undefined,\n endDate: undefined,\n textCode: undefined,\n };\n};\n\nconst handleUpdateEndDate = (value: string) => {\n subscription.value.endDate = value;\n};\n\nconst handleUpdateTextCode = (value: string) => {\n subscription.value.textCode = value;\n};\n\nconst handleUpdateStartDate = (value: string) => {\n subscription.value.startDate = value;\n};\n\nconst handleCancel = () => {\n emit('cancel');\n apiError.value = '';\n};\n\nconst handleSave = async () => {\n apiError.value = '';\n\n addSubscription(\n {\n routeSubscription: {\n startDate: subscription.value.startDate || '',\n endDate: subscription.value.endDate || '',\n textCode: subscription.value.textCode || '',\n },\n onApiSuccess: () => {\n clearAddRouteValues();\n getSubscriptions();\n emit('saved');\n },\n onApiError: () => {\n apiError.value = t('SMS Api error');\n },\n },\n );\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"h3\", _hoisted_2, _toDisplayString(_ctx.$t('Add new route')), 1),\n _createVNode(_unref(AddRouteSubscription), {\n \"how-it-works-title\": \n _unref(dictionary)[_unref(DictionaryField)['SMS:Web:HowItWorks:Title']]\n ,\n \"how-it-works-description-markdown\": \n _unref(dictionary)[_unref(DictionaryField)['SMS:Web:HowItWorks:Description']]\n ,\n routes: _ctx.routes,\n \"alert-title\": _unref(dictionary)[_unref(DictionaryField)['SMS:Web:HowItWorks:Alert:Title']],\n \"start-date\": subscription.value.startDate,\n \"end-date\": subscription.value.endDate,\n \"text-code\": subscription.value.textCode,\n \"alert-description-markdown\": \n _unref(dictionary)[_unref(DictionaryField)['SMS:Web:HowItWorks:Alert:Description']]\n ,\n \"is-loading\": _unref(routeSubscriptionsStore).isSubscriptionAdding,\n \"api-error\": apiError.value,\n onUpdateEndDate: handleUpdateEndDate,\n onUpdateTextCode: handleUpdateTextCode,\n onUpdateStartDate: handleUpdateStartDate,\n onSave: handleSave,\n onCancel: handleCancel\n }, null, 8, [\"how-it-works-title\", \"how-it-works-description-markdown\", \"routes\", \"alert-title\", \"start-date\", \"end-date\", \"text-code\", \"alert-description-markdown\", \"is-loading\", \"api-error\"])\n ]))\n}\n}\n\n})","import script from \"./AddRouteSubscriptionCard.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./AddRouteSubscriptionCard.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./AddRouteSubscriptionCard.vue?vue&type=style&index=0&id=5d0a6dfa&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5d0a6dfa\"]])\n\nexport default __exports__","import { RouteSubscriptionSavedModel } from '@components/types';\n\nconst emptyRouteSubscription: RouteSubscriptionSavedModel = {\n textCode: '',\n startDate: '',\n endDate: '',\n id: '',\n};\n\nexport const skeletonSubscriptions: RouteSubscriptionSavedModel[] = [\n emptyRouteSubscription,\n emptyRouteSubscription,\n];\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, createElementBlock as _createElementBlock, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-4a92eb6a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"smsOverlayBanner\" }\nconst _hoisted_2 = { class: \"container\" }\nconst _hoisted_3 = { class: \"inner\" }\nconst _hoisted_4 = { class: \"dashedBorder\" }\nconst _hoisted_5 = { class: \"smsRoutesWrapper\" }\nconst _hoisted_6 = { class: \"container\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"routesTitleAndButtonWrapper\"\n}\nconst _hoisted_8 = { class: \"routesTitle\" }\nconst _hoisted_9 = { class: \"routesTitleAndButtonWrapper\" }\nconst _hoisted_10 = { key: 1 }\nconst _hoisted_11 = { class: \"container\" }\nconst _hoisted_12 = { class: \"addRouteCardWrapper\" }\nconst _hoisted_13 = { class: \"container\" }\nconst _hoisted_14 = { class: \"addRouteButtonWrapper\" }\nconst _hoisted_15 = { class: \"addRouteButtonInner\" }\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", {\n id: \"modal\",\n class: \"deleteRouteSubscriptionModal\"\n}, null, -1))\n\nimport {\n computed, ref, watch,\n} from 'vue';\nimport { storeToRefs } from 'pinia';\nimport { buildLoginRequest } from '@auth/requests';\nimport { useMsalRedirectGuard, useIsAuthenticated, useMsalToken } from '@auth/composables';\nimport { useRouteSubscriptionStore, useRoutesStore } from '@components/stores';\nimport { SignOutButton, Icon, TimezoneWarning } from '@components/Atoms';\nimport {\n NoRoutesCard, RouteSubscriptionCard, AddRouteSubscriptionCard, InfoCard,\n} from '@components/Molecules';\nimport { useI18n } from 'vue-i18n';\nimport { setAcquireToken } from '@components/services/ApolloClient';\n\nimport { INFO_CARD_COLOR } from '@constants/info-card-color';\nimport { msalInstance } from '@/auth/authConfig';\nimport { b2cRedirectUri, b2cScopes } from '../envVariables';\nimport { skeletonSubscriptions } from '@/helpers';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'SmsApp',\n setup(__props) {\n\nconst { t } = useI18n();\n\n// Use redrect guard to ensure that the user is logged in before continuing\nconst redirectRequest = buildLoginRequest(b2cRedirectUri, b2cScopes);\nconst routeSubscriptionsStore = useRouteSubscriptionStore();\nconst {\n getSubscriptions,\n} = routeSubscriptionsStore;\nconst {\n subscriptions,\n availableRoutes,\n allRoutes,\n isSubscriptionLoading,\n isSubscriptionUpdating,\n isSubscriptionFetchError,\n} = storeToRefs(routeSubscriptionsStore);\n\n// Get authentication state for sign out button\nconst {\n isAuthenticated,\n} = useIsAuthenticated(redirectRequest);\nconst { acquireToken } = useMsalToken(redirectRequest);\n\n// Set the acquire token method for the apollo client - do not remove\nsetAcquireToken(acquireToken);\n\nconst routesStore = useRoutesStore();\nconst { requestAllRoutes } = routesStore;\nrequestAllRoutes();\n\nconst showAddRouteCard = ref(false);\nconst showTimezoneWarning = ref(true);\n\nconst apiError = computed(() => (isSubscriptionFetchError.value ? t('SMS Api error') : ''));\n\nconst stopWatch = watch(() => isAuthenticated.value, async (isAuth: boolean | undefined) => {\n if (isAuth) {\n getSubscriptions();\n setTimeout(() => stopWatch(), 0);\n }\n}, { immediate: true });\n\nconst showNoRoutes = computed(() => isAuthenticated.value\n && !apiError.value\n && subscriptions.value\n && subscriptions?.value?.length === 0\n && !showAddRouteCard.value\n && !isSubscriptionLoading.value);\n\nconst showAddRouteButton = computed(() => isAuthenticated.value\n && subscriptions.value\n && subscriptions.value.length > 0\n && !isSubscriptionLoading.value);\n\nconst subscriptionsToShow = computed(() => {\n if (subscriptions.value && subscriptions.value.length > 0) {\n return subscriptions.value;\n }\n if (isSubscriptionLoading.value) {\n return skeletonSubscriptions;\n }\n return [];\n});\n\nconst handleShowAddRoute = () => {\n showAddRouteCard.value = true;\n};\n\nconst handleCloseAddRoute = () => {\n showAddRouteCard.value = false;\n};\n\nconst handleSignOut = () => {\n msalInstance.logoutRedirect();\n};\n\nconst handleWarningClose = () => {\n showTimezoneWarning.value = false;\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (showTimezoneWarning.value)\n ? (_openBlock(), _createBlock(_unref(TimezoneWarning), {\n key: 0,\n onClose: handleWarningClose\n }))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"section\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"h1\", _hoisted_4, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('Manage my text alerts')), 1)\n ])\n ])\n ])\n ]),\n _createElementVNode(\"section\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n (_unref(isAuthenticated))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"h2\", _hoisted_8, _toDisplayString(_ctx.$t('myRoutes')), 1),\n _createVNode(_unref(SignOutButton), { onClick: handleSignOut })\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_9, [\n (apiError.value)\n ? (_openBlock(), _createBlock(_unref(InfoCard), {\n key: 0,\n class: \"infoCard\",\n \"icon-name\": \"warning\",\n text: apiError.value,\n lg: true,\n \"background-color\": _unref(INFO_CARD_COLOR).white,\n \"border-color\": _unref(INFO_CARD_COLOR).red\n }, null, 8, [\"text\", \"background-color\", \"border-color\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n (showNoRoutes.value)\n ? (_openBlock(), _createBlock(_unref(NoRoutesCard), {\n key: 0,\n routes: _unref(availableRoutes)\n }, null, 8, [\"routes\"]))\n : _createCommentVNode(\"\", true),\n (subscriptionsToShow.value && subscriptionsToShow.value.length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(subscriptionsToShow.value, (subscription) => {\n return (_openBlock(), _createBlock(_unref(RouteSubscriptionCard), {\n key: subscription.textCode,\n \"text-code\": subscription.textCode,\n \"is-loading\": _unref(isSubscriptionLoading),\n \"is-updating\": _unref(isSubscriptionUpdating),\n routes: _unref(allRoutes),\n \"start-date\": subscription.startDate,\n \"end-date\": subscription.endDate\n }, null, 8, [\"text-code\", \"is-loading\", \"is-updating\", \"routes\", \"start-date\", \"end-date\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n (showAddRouteCard.value)\n ? (_openBlock(), _createBlock(_unref(AddRouteSubscriptionCard), {\n key: 0,\n routes: _unref(availableRoutes),\n onSaved: handleCloseAddRoute,\n onCancel: handleCloseAddRoute\n }, null, 8, [\"routes\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n (showAddRouteButton.value && !showAddRouteCard.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n type: \"button\",\n class: \"button\",\n onClick: handleShowAddRoute\n }, [\n _createVNode(_unref(Icon), { \"icon-name\": \"plus\" }),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t('Add new route')), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ]),\n _hoisted_16\n ], 64))\n}\n}\n\n})","import script from \"./SmsApp.vue?vue&type=script&async=true&setup=true&lang=ts\"\nexport * from \"./SmsApp.vue?vue&type=script&async=true&setup=true&lang=ts\"\n\nimport \"./SmsApp.vue?vue&type=style&index=0&id=4a92eb6a&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4a92eb6a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-6db001e2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"timetableSearchOverlay\" }\n\nimport { useRouter } from 'vue-router';\nimport { TimetableSearch, utcDate } from '@components';\nimport process from 'process';\nimport { formatInTimeZone } from 'date-fns-tz';\nimport { parseISO } from 'date-fns';\nimport { useTimetableStore } from '@components/store';\nimport { useSharedState } from '../helpers/shareState';\nimport { timezone } from '../envVariables';\nimport { closeOverlay } from '../helpers/closeOverlayPanel';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TimetableSearch',\n setup(__props) {\n\nconst router = useRouter();\n\nconst sharedState = useSharedState();\nsharedState.getState('timetableStore');\n\nconst initialDate = utcDate(new Date()).toISOString();\nconst explorePageUrl = process.env.VUE_APP_EXPLORE_URL;\n\nconst timetableStore = useTimetableStore();\n\nconst handleRedirect = (\n originPortName,\n destinationPortName,\n outboundDate,\n routeCode,\n) => {\n timetableStore.addSearchToRecent({\n from: originPortName,\n to: destinationPortName,\n fromDate: outboundDate,\n routeCode,\n });\n\n const url = `${process.env.VUE_APP_TIMETABLES_URL}/#${router.resolve({\n name: 'timetableResult',\n params: {\n from: originPortName,\n to: destinationPortName,\n departureDate: formatInTimeZone(parseISO(outboundDate), timezone, 'yyyy-MM-dd'),\n },\n }).fullPath}`;\n window.location.href = url;\n\n // close overlay after redirecting\n const timetableBtn = document.getElementById('globalTimetableSearchButton');\n const timetableBtnMobile = document.getElementById('globalTimetableSearchButtonMobile');\n const timetableOverlay = document.getElementById('timetableSearchAppOverlay');\n\n if (timetableOverlay) {\n closeOverlay(timetableOverlay);\n }\n\n if (timetableBtn) {\n closeOverlay(timetableBtn);\n }\n\n if (timetableBtnMobile) {\n closeOverlay(timetableBtnMobile);\n }\n\n // remove overlay and stop scroll from body\n document.querySelector('body')?.classList.remove('darkOverlay');\n document.querySelector('html')?.classList.remove('stopScroll');\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.$t('Search timetables')), 1),\n _createVNode(_unref(TimetableSearch), {\n class: \"timetable-search-overlay\",\n \"button-text\": _ctx.$t('View timetables'),\n \"from-input-label\": _ctx.$t('From'),\n \"to-input-label\": _ctx.$t('To'),\n \"from-placeholder\": _ctx.$t('Timetable search placeholder'),\n \"to-placeholder\": _ctx.$t('Timetable search placeholder'),\n \"today-text\": _ctx.$t('Today'),\n \"map-link\": _unref(explorePageUrl),\n \"datepicker-teleport-id\": \"#vueDatepicker\",\n \"initial-date\": _unref(initialDate),\n onTimetableSearchClick: _cache[0] || (_cache[0] = (\n originPortName,\n destinationPortName,\n outboundDate,\n routeCode,\n ) => handleRedirect(\n originPortName,\n destinationPortName,\n outboundDate,\n routeCode ))\n }, null, 8, [\"button-text\", \"from-input-label\", \"to-input-label\", \"from-placeholder\", \"to-placeholder\", \"today-text\", \"map-link\", \"initial-date\"])\n ]))\n}\n}\n\n})","import script from \"./TimetableSearch.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TimetableSearch.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TimetableSearch.vue?vue&type=style&index=0&id=6db001e2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6db001e2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = (n: any) => (_pushScopeId(\"data-v-55c67cd4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"timetableSearchBanner\" }\n\nimport { useRouter } from 'vue-router';\nimport { TimetableSearch, utcDate } from '@components';\nimport process from 'process';\nimport { formatInTimeZone } from 'date-fns-tz';\nimport { useSharedState } from '../helpers/shareState';\nimport { timezone } from '../envVariables';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TimetableSearchBanner',\n props: {\n title: {},\n mapLink: {}\n },\n setup(__props: any) {\n\nconst router = useRouter();\n\nconst initialDate = utcDate(new Date()).toISOString();\n\nconst sharedState = useSharedState();\nsharedState.getState('timetableStore');\n\n\n\nconst handleRedirect = (\n originPortName,\n destinationPortName,\n outboundDate,\n) => {\n const url = `${process.env.VUE_APP_TIMETABLES_URL}/#${router.resolve({\n name: 'timetableResult',\n params: {\n from: originPortName,\n to: destinationPortName,\n departureDate: formatInTimeZone(outboundDate, timezone, 'yyyy-MM-dd'),\n },\n }).fullPath}`;\n window.location.href = url;\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"h2\", null, _toDisplayString(_ctx.title), 1),\n _createVNode(_unref(TimetableSearch), {\n class: \"timetable-search-banner\",\n \"button-text\": _ctx.$t('View timetables'),\n \"from-input-label\": _ctx.$t('From'),\n \"to-input-label\": _ctx.$t('To'),\n \"from-placeholder\": _ctx.$t('Timetable search placeholder'),\n \"to-placeholder\": _ctx.$t('Timetable search placeholder'),\n \"today-text\": _ctx.$t('Today'),\n \"map-link\": _ctx.mapLink,\n \"is-banner-view\": true,\n \"initial-date\": _unref(initialDate),\n onTimetableSearchClick: _cache[0] || (_cache[0] = (\n originPortName,\n destinationPortName,\n outboundDate\n ) => handleRedirect(\n originPortName,\n destinationPortName,\n outboundDate ))\n }, null, 8, [\"button-text\", \"from-input-label\", \"to-input-label\", \"from-placeholder\", \"to-placeholder\", \"today-text\", \"map-link\", \"initial-date\"])\n ]))\n}\n}\n\n})","import script from \"./TimetableSearchBanner.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TimetableSearchBanner.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TimetableSearchBanner.vue?vue&type=style&index=0&id=55c67cd4&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-55c67cd4\"]])\n\nexport default __exports__"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","buildLoginRequest","redirectUri","scopes","GetServiceStatus","serviceStatus","ServiceStatusType","AtRisk","name","text","Disruption","Cancelled","SMALL_DESKTOP_VIEWPORT_WIDTH","defaultValueText","dictionary","ref","updateDictionaryFromResponse","response","forEach","entry","key","value","createBody","culture","fetchDictionaryValues","async","dictionaryUrl","fetch","method","headers","body","JSON","stringify","dictionaryFieldMap","ok","console","log","status","statusText","dictionaryItems","json","DictionaryField","entries","reduce","agg","curr","push","timezone","process","googleMapApiKey","ticketingUrl","routeInformationUrl","VUE_APP_ROUTE_INFO_URL","timetableResultsUrl","timetableBackupUrl","VUE_APP_TIMETABLE_BACKUP_URL","smsAlertSignupUrl","VUE_APP_SMS_SIGNUP_URL","mobileAppDownloadUrl","VUE_APP_MOBILE_APP_DOWNLOAD_URL","assetBaseUrl","utcDateTime","date","Date","UTC","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","utcDate","parseISO","addDays","days","result","setDate","getDate","toISOString","endOfDay","startOfDay","utcNow","dateIsLessThanCurrentTime","dateInput","currentDate","getTime","getMapBounds","lats","lngs","north","Math","max","east","south","min","west","mapPolyline","item","lat","Number","lng","mapPort","port","portCode","order","latitude","longitude","isFreight","hideOnMap","mapPortToLocation","options","position","location","portUrl","mapPortToMapPort","image","portImage","mapRouteToRouteServed","route","today","formatInTimeZone","routeCode","timetableLink","ports","length","undefined","keyInformation","portList","filter","vesselList","vessels","mapRoutesToMapRoutes","sort","sortPorts","originPort","destinationPort","path","polyline","parse","geodesic","strokeColor","strokeOpacity","strokeWeight","parseRouteStatusByStatusCategory","routeStatus","RouteStatusCategory","AllSailingsCancelled","valueOf","Disruptions","BeAware","Normal","a","b","acquireToken","setAcquireToken","httpLink","createHttpLink","uri","authLink","setContext","_","token","authorization","cache","InMemoryCache","apolloClient","ApolloClient","link","concat","getLocationsServedByLocationCodeQuery","gql","provideApolloClient","locationsServed","isLoading","processResult","queryResult","document","loc","source","data","locations","locationStoreDefinition","state","actions","locationCode","onResult","onError","loading","useQuery","error","getters","getLocationsServed","routes","routeMap","useLocationStore","defineStore","getPortsServedByPortCodeQuery","portsServed","portStoreDefinition","getPortsServed","usePortStore","getRoutesWithStatusQuery","getRouteInformationQuery","getRouteInformationByPortsQuery","getAllRoutesMapCoordsQuery","getRoutesServedByRouteCodeQuery","getRouteMapByRouteCode","getAllRoutesQuery","mapRouteStatusCategoryToColour","mapRoutesWithStatusToRoute","mapRoutesWithStatusToLocation","flat","mapRouteByPortsToRoutes","mapLocationToDestination","locationImage","routesWithStatus","routeInformation","routesByPorts","firstRoutesByPorts","routesMapCoords","routeServed","routeInfoMap","allRoutes","allRoutesError","routeStoreDefinition","refetch","originPortName","destinationPortName","requestRouteMapByRouteCode","updateRouteInformation","newRouteInfo","getRoute","getRouteInformation","getMapRoutesWithStatus","getMapLocationsWithStatus","getMapRoutesByPortName","getMapPortsByPortName","getAllMapRoutesNoStatus","getAllMapPortsNoStatus","getAllMapDestinationsNoStatus","getRoutesServed","useRoutesStore","getTimetablesSearchQuery","getPortPairsSuggestionsByOriginPort","getPortPairsSuggestionsByDestinationPort","getRouteByOriginDestinationPortPairs","SailingStatusType","mapSailingStatusToTimeTableStatusType","Delayed","mapLegs","time","departureDateTime","mapPortPairSailings","stops","sailingLegs","arrivalDateTime","portPairSailing","departureTime","arrivalTime","delayedDepartureTime","rescheduledDepartureDateTime","delayedArrivalTime","rescheduledArrivalDateTime","isDelayed","toUpperCase","isCancelled","recentSearches","routeSuggestions","portPairSuggestions","timetableSearchResults","portPairRouteId","portPairRouteCode","isServerError","portPairSailings","portPairs","timetableStoreDefinition","getRecentSearches","newSearch","shouldUpdateRecentSearches","isMobile","from","to","sailingStartDate","fromDate","sailingEndDate","toDate","this","addSearchToRecent","newRecentSearch","decodeURI","searchItem","unshift","maxNumberOfRecent","pop","portOrLocationName","clearSuggestions","clearError","getSailingResults","slice","persist","storage","localStorage","paths","useTimetableStore","SubStatus","StatusCategory","OfflineTimetableType","INFO_CARD_COLOR","white","red","mint","maxBy","array","iteratee","itemValue","maxValue","accountIsActive","mostRecentAccount","idTokenClaims","exp","expiryDate","getActiveAccount","accounts","account","buildMsalConfig","b2cConfig","clientId","tenant","hostname","postLogoutRedirectUri","signInPolicy","auth","authority","knownAuthorities","cacheLocation","system","loggerOptions","loggerCallback","level","message","containsPii","LogLevel","Info","info","Verbose","debug","Warning","warn","logLevel","createInstance","config","msalInstance","PublicClientApplication","getAllAccounts","activeAccount","setActiveAccount","addEventCallback","event","eventType","EventType","LOGIN_SUCCESS","payload","authConfig","b2cClientId","b2cTenant","b2cHostname","b2cLoginPolicy","b2cRedirectUri","b2cPostLogoutRedirectUri","b2cApiScope","b2cScopes","closeOverlay","element","setAttribute","classList","contains","remove","useSharedState","shared","getState","stateName","stateToAdd","window","getItem","updateSharedState","removeSharedState","getSharedState","allState","upToDateState","i18n","createI18n","legacy","locale","fallbackLocale","messages","enGB","_createElementVNode","_hoisted_1","_createElementBlock","_hoisted_2","script","__exports__","render","component","ServiceStatus","TimetableSearch","SmsApp","DummyView","props","query","departureDate","router","createRouter","history","createWebHashHistory","_defineComponent","__name","label","primary","type","Boolean","secondary","outline","disabled","onClick","Function","setup","__props","_ctx","_cache","_openBlock","class","_normalizeClass","args","_createTextVNode","_toDisplayString","_renderSlot","$slots","sm","md","lg","iconName","src","require","role","rad2degr","rad","PI","degr2rad","degr","getLatLngCenter","latLngInDegr","LATIDX","LNGIDX","sumX","sumY","sumZ","i","cos","sin","avgX","avgY","avgZ","atan2","hyp","sqrt","center","routeHoverItem","routeClickItem","portHoverItem","portClickItem","destinations","destinationHoverItem","destinationClickItem","isStatic","zoom","emits","emit","__emit","apiKey","mapRef","isSmallScreenWidth","innerWidth","customMapStyle","featureType","elementType","stylers","color","visibility","saturation","lightness","getIsPinItem","pinItemCode","itemCode","isNoPortSelected","isNoDestinationSelected","handlePortMouseover","handleDestinationMouseover","destination","getCenter","maxLat","minLat","maxLng","minLng","l","routePorts","watch","ready","_createBlock","_unref","GoogleMap","ref_key","style","styles","draggable","$event","$emit","onZoom_changed","getZoom","default","_withCtx","_Fragment","_renderList","index","_createVNode","Polyline","onMouseover","onMouseout","_createCommentVNode","CustomMarker","onMouseleave","now","initialDate","todayText","dateFormat","teleportId","maxDate","minDate","isError","minDateToUse","computed","maxDateToUse","endOfYear","addYears","localDateValue","selectedDate","get","set","ukDate","toZonedTime","dateAsUtc","getFullYear","getMonth","isValid","immediate","formatDate","format","fromZonedTime","timeZone","Intl","DateTimeFormat","resolvedOptions","disabledDates","isPast","Skeletor","Datepicker","modelValue","teleport","placeholder","clearable","getYear","utc","Icon","IconPositionType","iconSm","iconLg","iconMd","iconPos","iconRight","PosRight","iconBottom","PosBottom","_hoisted_3","backgroundColor","borderColor","embeddedLink","embeddedLinkText","_normalizeStyle","href","target","_withScopeId","n","_pushScopeId","_popScopeId","width","height","viewBox","fill","xmlns","_hoisted_4","d","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","showPortCode","showPortLocation","textCode","showTextCode","displayTextCode","hasCode","$t","x","title","searches","showSearches","showRouteMapButton","selectRouteMapCallback","ariaId","ariaLabeledBy","showPortCodes","noResultsText","groupedSearches","groups","find","group","emptyState","search","PortList","onKeydown","_withKeys","showLabel","destinationName","IconText","clickHandler","isArrowHidden","RouteDetail","infoCard","isExpanded","panelId","controlId","isPanelExpanded","expanded","panelActive","onRouteItemClick","offline","isStatusMap","isStaticMap","searchResults","selectedRoute","portLabels","showLabels","showRouteItem","fitToBounds","bounds","gmap","nextTick","fitBounds","padding","mapPortLabel","handleZoom","newZoom","initialZoom","focusOnRoute","p","mapBounds","onPolylineClick","routeItemClickHandler","getPortOffset","offset","watchEffect","setTimeout","newPorts","newRoute","Map","onRouteClicked","onUpdateMapRef","onMapClicked","onZoomChange","customPortIcon","portInfoWindow","InfoWindow","pixelOffset","RouteItem","isResultCard","OfflineBanner","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","showDesktopView","expandFirstItem","isInteractiveMapView","desktopView","Accordian","header","Card","content","RouteSearchMap","innerHTML","vessel","vesselUrl","SuggestionPortType","OfflineTimetableDownloadStatus","mapRecentSearches","mapPortPairToRecentOrSuggestedSearchEntry","suggestion","originPortCode","destinationPortCode","originLocation","routeId","fromCode","fromLabel","fromPlaceholder","toCode","toLabel","toPlaceholder","isDuplicateRoute","t","useI18n","componentState","switched","isFromFocus","isToFocus","tempFrom","tempFromCode","tempTo","tempToCode","suggestions","suggestionsTitle","searchSelected","timetableStore","getSuggestions","portType","newValue","recent","recentSuggestions","Origin","getSuggestionsByOriginPortName","Destination","getSuggestionsByDestinationPortName","onOriginChanged","onDestinationChanged","switchLocations","updateEmits","handleFocus","focusComingFromPortSelection","handleBlur","onOriginFocused","onDestinationFocused","setSearchValue","portCoupling","_withDirectives","isFocus","for","autocomplete","onFocus","onInput","fromFocus","RecentSearches","onSetSearchValue","vClickOutside","icon","routeToMap","mapLink","toInputLabel","fromInputLabel","datePickerLabel","buttonText","displayResults","isBannerView","datepickerTeleportId","isIonicApp","fromInput","toInput","handleSearch","sailingDate","selectedRouteCode","onDateSelected","bannerView","TimetableSearchInput","onUpdateFrom","onUpdateTo","onUpdateRouteCode","DatePickerCalendar","InteractiveMapLink","Button","on-click","sailings","InfoCard","isFilterOpen","closeFilters","preventDefault","checkItems","checked","getCheckedIconText","mobileFilterWindow","modalExpanded","onChange","_vShow","selectedItems","windowWidth","removeMobileOverlay","querySelector","addMobileOverlay","add","handleFilterBtnClick","setItemChecked","includes","getCheckedIcon","handleCloseMobileFilter","onMounted","addEventListener","onUnmounted","removeEventListener","removeBottomRadius","removeRightRadius","noText","FilterWindow","onSetItemChecked","_Teleport","onCloseFilter","viewModal","audioElement","toggleAudio","audioSound","paused","play","pause","shimmer","soundbiteUrl","description","activities","activity","alt","address","addressTitle","linkUrl","linkText","RoutesServed","routesServed","isOpen","closeCallback","locationStore","portStore","routeStore","isModalExpand","initialViewState","viewState","handleClickOutside","toggleModal","updateLocation","locationUrl","updatePort","updateRoute","requestLocationsServed","requestPortsServed","requestRouteServed","isPanelOpen","PanelViewModal","isActive","routesStore","mapCenter","destinationLabel","portLabel","routeLabel","destinationClicked","portClicked","routeClicked","isOverlayOpen","mainNav","addStopScroll","display","removeStopScroll","requestAllRoutesMapCoords","resetLabels","resetClickedItems","toggleMapView","isChecked","centerPinOnMap","latlng","handlePortClick","handleDestinationClick","handleRouteClick","getLabelOffset","onDestinationHovered","onDestinationLeave","onDestinationClicked","onPortHovered","onPortLeave","onPortClicked","onRouteHovered","onRouteLeave","routeInfoWindow","customPortIconHover","customPortIconSelected","customDestinationIcon","customDestinationIconHover","customDestinationIconSelected","destinationInfoWindow","FilterMapButton","onToggleCheckedItems","MoreInfoPanel","close-callback","isExploreMap","InteractiveMapLanding","onSetExploreBtnClicked","isClicked","InteractiveMap","onCloseExploreMap","_imports_0","_imports_1","srcset","getVesselsServedByVesselCodeQuery","vesselsServed","vesselStoreDefinition","vesselCode","getVesselsServed","useVesselStore","vesselStore","requestVesselsServed","RoutesServedComponent","imageSrc","imageAlt","downloadLink","downloadLinkText","alertLink","alertLinkText","showComponent","closeComponent","mapRoutes","ariaExpanded","ariaHasPopup","ariaControls","hideSearchBtn","handleClick","onKeyup","onBlur","searchInputId","searchInputLabel","searchValue","hideSuggestions","inputText","portname","searchClick","trim","newPlaceholder","Searchbox","onUpdate","onSearchClick","onSetIsFocus","noSearchBtn","onSetShowSearches","getServiceStatusQuery","getRouteServiceStatusQuery","getRoutesQuery","getRouteSuggestionQuery","queryResults","routeSuggestion","routeServiceStatus","affectedRoutes","serviceStatusErrorMessage","searchRouteStatusesErrorMessage","routesSuggestionErrorMessage","routeServiceStatusErrorMessage","isServiceStatusError","isSearchRouteStatusesError","isRoutesSuggestionError","isRouteServiceStatusError","serviceStatusStoreDefinition","q","routeName","clearSearchRouteStatuses","updateSelectedRoute","addRecentSearch","toLowerCase","clearRecentSearches","getSelectedRoute","getAffectedRoutes","getApiErrorStatus","useServiceStatusStore","mapRouteToRecentOrSuggestedSearchEntry","searchInputPlaceholder","searchClickAction","itemClickAction","resultsText","searchSuggestions","suggestionTitle","searchInitiated","isSearchFocus","serviceStatusStore","recentSearchList","showSearchResults","getRoutesSuggestion","getSearchRouteStatuses","searchInput","serviceArray","onClearSearch","newVal","searchResultsExcludingFreight","some","mapRouteToSuggestedSearchEntry","ServiceStatusSearchBox","onUpdateSearchValue","onClearSearchValue","onGetIsFocus","click-handler","routeItems","hideArrows","orderRoutesByOriginPortAsc","isOverlayView","statusModalClickHandler","updateRouteMapCallback","redirectToServiceIndex","isOffline","renderAllRoutes","showAllRoutesList","showAffectedRoutesList","hasSearchResults","canShowRoutes","displayAffectedRoutes","displayAllRoutes","updateMap","results","updateSearchResults","newSearchResults","mapRenderRoutes","getInfoCardDetails","noOfAffectedRoutes","totalRoutes","filteredAffectedResultsList","newHasSearch","ServiceStatusSearch","item-click-action","onUpdateSearchResults","onUpdateMapRoute","statusKeyButton","StatusKeyButton","DownloadApp","noBorder","overlayView","RouteItemsList","onGetRouteItemsIndex","serviceItems","serviceStatusKeyBlockItems","heading","showCloseBtn","showServiceStatusModal","statusMapUrl","statusUrl","sharedState","removeOverlayOnPage","serviceStatusBtn","getElementById","serviceStatusBtnMobile","serviceStatusOverlay","html","redirectToServicePage","routeToRouteItem","url","displayModal","closeModal","getServiceStatus","modalOpen","ServiceStatusHome","status-modal-click-handler","select-route-map-callback","redirect-to-service-index","onGetSelectedRouteCode","ModalOverlay","ServiceStatusKeyBlock","ServiceStatusIndex","useMsal","internalInstance","getCurrentInstance","instance","inProgress","toRefs","appContext","globalProperties","$msal","useMsalToken","request","localInProgress","requestOverride","redirectOnError","tokenRequest","acquireTokenSilent","accessToken","InteractionStatus","None","loginRedirect","catch","innerError","useIsAuthenticated","redirectRequest","isAuthenticated","hasAccount","then","getRouteSubscriptions","upsertRouteSubscription","deleteRouteSubscription","mapRouteInformationToRouteDetails","determineAvailableRoutes","subscriptions","subscription","orderByTextCodeAsc","filterOutExpiredSubscriptionsFromApi","prevDay","subDays","endDate","prevDayUk","setHours","mapRouteSubscriptionToSaveModel","startDate","mapRouteSubscriptionsToSavedView","Channel","mapUpdateRouteSubscriptionToApi","routeSubscription","channel","Web","useRouteSubscriptionStore","isSubscriptionLoading","isSubscriptionAdding","isSubscriptionUpdating","isSubscriptionDeleting","isSubscriptionFetchError","isSubscriptionUpdateError","isSubscriptionDeleteError","isRoutesError","isRoutesLoading","storeToRefs","availableRoutes","subscriptionsView","allRoutesView","getSubscriptions","routeSubscriptions","deleteSubscription","onApiError","onApiSuccess","mutate","callDeleteRouteSubscription","onDone","useMutation","deleteRouteSubscriptionInput","updateSubscription","updateRouteSubscription","apiModel","upsertRouteSubscriptionInput","addSubscription","useDictionary","cx","cy","r","getSubscriptionStartDefault","getSubscriptionEndDefault","setUTCDate","setUTCMonth","isValidSubscriptionRange","start","end","filterRoutesBySearchTerm","searchTerm","res","formatRouteFromPorts","textCodePrefix","join","mapRouteDetailToRecentSearch","routeDetail","searchLabelId","selectedTextCode","searchText","showSelectedValue","filtered","selectedRoutePorts","selectedText","handleSearchTextChanged","handleSearchInputFocus","handleSelected","mode","routeError","rangeError","routeDisabled","startDateDisabled","endDateDisabled","subscriptionEndDate","subscriptionStartDate","initialStartDate","initialEndDate","errorToShow","handleStartDateSelected","handleEndDateSelected","handleRouteSelected","RouteSearch","onRouteSelected","updateMediaPaths","input","assetsBaseUrl","mediaMatchRegex","replace","markdownToHtml","markdown","markdownWithRelativePathsUpdated","DOMPurify","marked","mangle","headerIds","validateSubscription","errors","howItWorksTitle","howItWorksDescriptionMarkdown","alertTitle","alertDescriptionMarkdown","apiError","dirty","showAlert","howItWorksDescription","alertDescription","values","handleUpdateStartDate","handleUpdateEndDate","handleUpdateRoute","handleSave","handleCancel","RouteSubscription","onUpdateStartDate","onUpdateEndDate","onUpdateRoute","Spinner","routeSubscriptionsStore","showInstructions","noRoutesIntro","clearAddRouteValues","handleAddRoute","handleUpdateTextCode","AddRouteSubscription","onUpdateTextCode","onSave","onCancel","isMounted","dismiss","handleConfirm","escapeHandler","ConfirmModal","onConfirm","isUpdating","showErrors","err","showDeleteModal","deep","handleEdit","resetFields","handleDelete","handleConfirmDelete","handleCancelDelete","edit","DeleteRouteSubscriptionModal","emptyRouteSubscription","skeletonSubscriptions","requestAllRoutes","showAddRouteCard","showTimezoneWarning","stopWatch","isAuth","showNoRoutes","showAddRouteButton","subscriptionsToShow","handleShowAddRoute","handleCloseAddRoute","handleSignOut","logoutRedirect","handleWarningClose","TimezoneWarning","onClose","SignOutButton","NoRoutesCard","RouteSubscriptionCard","AddRouteSubscriptionCard","onSaved","useRouter","explorePageUrl","handleRedirect","outboundDate","params","fullPath","timetableBtn","timetableBtnMobile","timetableOverlay","onTimetableSearchClick"],"sourceRoot":""}