{"version":3,"sources":["public/resources.ts","i18n.ts","environment/Environment.ts","environment/currentEnvironment.ts","environment/config/development.ts","environment/config/production.ts","environment/config/test.ts","environment/config/index.ts","config.ts","amplitude/amplitude.ts","constants/TokenError.tsx","constants/urlPaths.ts","components/buttons/showPasswordButton/ShowPasswordButton.tsx","context/NotificationContext.tsx","helpers/inputValidation/InputError.ts","helpers/inputValidation/validators/allValid.ts","helpers/inputValidation/validators/isEqualString.ts","helpers/inputValidation/validators/isFilledString.ts","helpers/inputValidation/regexRules/index.ts","helpers/inputValidation/validators/isPasswordStrong.ts","hooks/useUrlQuery.ts","public/assets/images/get-e-logo-large.png","public/assets/images/car.png","public/assets/images/logoIcon.svg","public/assets/images/logoLightBackground.svg","public/assets/images/logoDarkBackground.svg","public/assets/images/emptyAirline.png","services/routes.ts","services/api.ts","constants/httpStatusCodes.ts","pages/acceptInvite/api/index.ts","pages/acceptInvite/AcceptInvite.tsx","constants/index.ts","constants/colors.ts","constants/layout.ts","context/CurrentProfileContext.tsx","context/LocaleContext.tsx","constants/dateFormats.ts","constants/timeFormats.ts","helpers/repeats.ts","styles/theme.ts","constants/queryKeys.ts","helpers/tryGetAsync.ts","pages/availability/api/index.ts","pages/availability/components/AvailabilityLoadingSkeleton.tsx","constants/datePickerPlaceholder.ts","helpers/inputValidation/FormError.ts","helpers/inputValidation/getFormErrorMessage.ts","helpers/inputValidation/validators/and.ts","helpers/inputValidation/validators/isAfterDate.ts","helpers/inputValidation/validators/isAfterTime.ts","helpers/inputValidation/validators/isNotNull.ts","public/assets/icons/trafficJam.svg","helpers/inputValidation/validators/isPastDate.ts","helpers/inputValidation/validators/isValidDateFormat.ts","helpers/inputValidation/validators/isValidTimeFormat.ts","pages/availability/components/CreateAvailabilityModal.tsx","pages/availability/components/ConfirmDeleteModal.tsx","pages/availability/components/TableRowDesktop.tsx","components/dropdownButtonMenu/CustomWidthTooltip.tsx","components/dropdownButtonMenu/DropdownButtonMenu.tsx","pages/availability/components/TableRowMobile.tsx","pages/availability/Availability.tsx","styles/Iframe.ts","components/errorPage/ErrorPage.tsx","constants/amplitude/eventSourceKeys.ts","constants/amplitude/commonKeys.ts","public/assets/icons/notFound.svg","public/assets/icons/notAuthorized.svg","public/assets/icons/notAuthenticated.svg","public/assets/icons/tooManyRequests.svg","public/assets/icons/car.svg","public/assets/icons/email.svg","public/assets/icons/Lock.svg","pages/errorPages/UnexpectedError.tsx","public/assets/icons/no-results.svg","pages/bookingTool/api/useBookingTool.ts","pages/bookingTool/components/BookingToolSkeleton.tsx","pages/bookingTool/BookingTool.tsx","helpers/inputValidation/validators/isValidDate.ts","styles/Typography.ts","helpers/downloadFile.ts","pages/rides/api/exportRidesToExcel.ts","pages/customerExport/components/ExportGridContainer.tsx","pages/customerExport/CustomerExport.tsx","pages/documents/api/useDocument.ts","pages/documents/api/useFiles.ts","pages/documents/api/downloadDowument.ts","pages/documents/components/DocumentRow.tsx","pages/documents/api/types.ts","pages/documents/components/DocumentsLoadingSkeleton.tsx","pages/documents/Documents.tsx","components/navigation/NavigationMenu.styles.tsx","components/buttons/PageActionButton.tsx","components/noRowsDataGridOverlay/CustomNoRowsOverlay.tsx","constants/amplitude/supplierKeys.ts","styles/DataGrid.tsx","helpers/getCountryCode.ts","pages/vehicles/api/useUploadedImageUrls.tsx","pages/vehicles/components/LightBoxPortal.tsx","pages/vehicles/components/imageUploader/helpers.tsx","pages/vehicles/components/imageUploader/ImageUploader.tsx","hooks/useDebounceEffect.tsx","pages/ride/supplier/components/AddDriverModal.tsx","hooks/useDebounce.ts","pages/drivers/api/index.ts","pages/drivers/components/ConfirmToggleDriverActivationModal.tsx","pages/drivers/components/DriversLoadingSkeleton.tsx","pages/drivers/components/EditDriverModal.tsx","pages/vehicles/components/SmallVehicleImage.tsx","pages/drivers/api/types.ts","pages/drivers/hooks/useDriversColumns.tsx","pages/drivers/hooks/useDriversColumnsMobile.tsx","pages/drivers/Drivers.tsx","pages/errorPages/InvalidAuthCode.tsx","pages/errorPages/InvalidCookie.tsx","pages/errorPages/InvalidInviteToken.tsx","pages/errorPages/InvalidPasswordToken.tsx","pages/errorPages/NotFound.tsx","pages/errorPages/TooManyRequest.tsx","pages/errorPages/UnauthorizedUser.tsx","helpers/inputValidation/validators/isEmail.ts","pages/forgotPassword/api/index.ts","pages/forgotPassword/ForgotPassword.tsx","services/types.ts","pages/invoices/api/index.ts","pages/invoices/components/Heading.tsx","pages/invoices/components/InvoicesLoadingSkeleton.tsx","pages/invoices/Invoices.tsx","constants/getEWebsites.ts","constants/windowStorageKeys.ts","helpers/findZendeskLocale.ts","helpers/zendeskConfig.ts","services/auth.ts","context/AuthenticatedUserContext.tsx","hooks/useZendeskAuth.ts","pages/login/Login.tsx","styles/Button.ts","styles/Container.ts","components/loginMessage/LogInMessage.tsx","constants/contacts.ts","pages/users/api/types.ts","pages/pageContainer/customer/ContactUsModal.tsx","styles/Form.ts","pages/users/api/index.ts","pages/users/components/EditUserProfileModal.tsx","components/contactUs/ContactUsContent.tsx","components/contactUs/ContactUsModal.tsx","components/logos/NavigationLogo.styles.tsx","components/logos/NavigationLogo.tsx","helpers/isMatchPath.ts","components/menuListItem/MenuListItem.tsx","components/navigation/customers/CustomerList.tsx","components/navigation/suppliers/SupplierList.tsx","components/navigation/NavigationMenu.tsx","helpers/isIframeView.ts","helpers/report.ts","pages/errorPages/ErrorBoundary.tsx","pages/loading/Loading.tsx","pages/pageContainer/PageContainer.tsx","pages/reports/components/api/types.ts","pages/reports/helpers/mapQualityReportData.ts","pages/reports/components/api/index.ts","pages/reports/components/api/useReport.ts","pages/reports/components/ReportsLoadingSkeleton.tsx","components/detailPanelToggle/DetailPanelToggle.tsx","helpers/getPercentage.ts","pages/reports/helpers/index.tsx","pages/reports/components/DetailsRow.tsx","pages/reports/components/DriverUpdatesTooltip.tsx","pages/reports/components/LocationSharingTooltip.tsx","pages/reports/components/hooks/useDriverAnalysisColumns.tsx","pages/reports/components/hooks/useDriversAddedPercentage.ts","pages/reports/components/hooks/useTrackedDriversPercentage.ts","pages/reports/components/SummaryBasicCard.tsx","pages/reports/components/tabs/DriverAnalysisTab.tsx","pages/ride/api/types.ts","pages/reports/components/AverageRatingDistributionCard.tsx","pages/reports/components/AverageRatingTopicCard.tsx","pages/reports/components/hooks/useReviewsColumns.tsx","pages/reports/components/hooks/useReviewsDetailsContent.tsx","pages/reports/components/tabs/ReviewsTab.tsx","pages/reports/components/hooks/useSituationsColumns.tsx","pages/reports/components/hooks/useSituationsDetailsContent.tsx","pages/reports/components/SummaryListCard.tsx","pages/reports/components/tabs/SituationsTab.tsx","helpers/getPercentageChange.ts","pages/reports/components/tabs/SummaryTab.tsx","pages/reports/Reports.tsx","hooks/useEmailFromUrlQuery.ts","pages/resetPassword/api/index.ts","pages/resetPassword/ResetPassword.tsx","components/notification/Notification.tsx","constants/content.ts","constants/amplitude/customerKeys.ts","helpers/getDateTimeWithoutOffset.ts","helpers/getScheduledArrival.ts","helpers/metersToKmAndMiFormatted.ts","helpers/secondsToTimeFormatted.ts","helpers/maps/mapRideToSummaryRide.ts","helpers/rideStatusUtil.ts","hooks/usePageLeave.ts","pages/rides/api/types.ts","pages/rides/components/StatusBadge.tsx","helpers/getDueInTime.ts","pages/rides/customer/api/downloadBookingConfirmation.ts","pages/rides/customer/api/downloadReceipt.ts","pages/ride/api/useRide.ts","helpers/getRemainingTimeString.ts","pages/ride/components/withExpandable.tsx","pages/ride/components/CancellationPoliciesCard.tsx","helpers/getDateTimeFromDateTimePartials.ts","helpers/getTimeDelta.ts","pages/ride/customer/components/CarsAutomatedUpdatesNotification.tsx","pages/ride/components/CancelRideConfirmModal.tsx","components/circleWrapper/CircleWrapper.tsx","pages/ride/components/DriverInformation.tsx","components/buttons/CopyToClipboardButton.tsx","pages/ride/customer/context/RideContext.ts","pages/ride/customer/api/useSearchLocation.ts","pages/ride/components/SearchLocationComponent.tsx","pages/ride/components/RideInformation.tsx","constants/keyCodes.ts","pages/ride/components/RideReview.tsx","pages/ride/components/RideVehicleInformationCard.tsx","pages/ride/customer/api/index.ts","pages/ride/components/SendBookingConfirmationModal.tsx","pages/ride/components/AddTravellerModal.tsx","pages/ride/components/RemoveTravellerConfirmModal.tsx","pages/ride/components/travellerInformation/useTravellerInformationColumns.tsx","pages/ride/components/travellerInformation/TravellerInformation.tsx","pages/ride/components/UpdatePendingConfirmModal.tsx","pages/ride/components/UpdateRideConfirmModal.tsx","pages/ride/components/NoVehicleAvailable.tsx","pages/ride/components/VehicleInformationCard.tsx","pages/ride/components/VehicleInformationCards.tsx","pages/ride/customer/api/useAvailabilites.ts","pages/ride/customer/api/useFlightSearch.ts","pages/ride/customer/components/rideLoadingSkeleton/RideLoadingSkeleton.tsx","helpers/googleMaps/fetchDirections.ts","helpers/googleMaps/googleApi.ts","hooks/useEffectAsync.ts","public/assets/images/map-marker-icon.png","components/navigation/GoogleMap.tsx","pages/ride/customer/Ride.tsx","constants/events.ts","pages/ride/customer/components/RideSummaryCard.tsx","pages/ride/customer/hooks/useCarInformation.tsx","pages/ride/customer/hooks/useRideInformation.tsx","pages/ride/customer/hooks/useTravellerInformation.ts","helpers/isElementPartialVisible.ts","pages/ride/customer/components/ReviewRideCard.tsx","pages/ride/customer/components/RideReviewModal.tsx","pages/ride/customer/components/RideHeader.tsx","pages/ride/customer/components/RideViewLoadingSkeleton.tsx","pages/ride/supplier/context/RideContext.ts","pages/ride/supplier/components/ReferenceCard.tsx","pages/ride/api/index.ts","pages/ride/supplier/helpers/index.ts","pages/ride/supplier/hooks/useConfirmCloseAddRemarksRide.tsx","pages/rides/supplier/components/RemarksCard.tsx","pages/rides/supplier/components/ReferencesAndRemarksModal.tsx","pages/vehicles/colorOptions/index.ts","pages/vehicles/api/index.ts","pages/vehicles/colorOptions/ColorCircle.tsx","public/assets/images/noColor.png","pages/rides/supplier/api/index.ts","pages/vehicles/components/AddVehicleModal.tsx","helpers/inputValidation/validators/isOnlyLettersAndNumbersString.ts","pages/ride/supplier/hooks/useSupplierDriverInformation.ts","pages/ride/supplier/components/DriverVehicleModal.tsx","pages/ride/supplier/components/StepperDriverVehicleModal.tsx","pages/ride/supplier/components/DriverReferencesCard.tsx","pages/ride/customer/api/useFlight.ts","pages/ride/customer/UpdateRide.tsx","pages/ride/customer/helpers/flightStatusUtil.ts","pages/ride/customer/components/FlightStatusDateTime.tsx","pages/ride/customer/components/AirportDetails.tsx","pages/ride/customer/components/FlightNotTrackedComponent.tsx","pages/ride/customer/components/FlightStatusButton.tsx","pages/ride/customer/components/FlightInformationCard.tsx","pages/ride/customer/components/MeetingInstructionsCard.tsx","pages/ride/customer/components/PassengerInformationCard.tsx","pages/ride/customer/components/ReferencesCard.tsx","pages/ride/customer/components/RideInformationCard.tsx","pages/ride/customer/components/SelectedVehicleCard.tsx","pages/ride/customer/helpers/renderRideView.tsx","pages/ride/customer/RideView.tsx","pages/ride/supplier/components/rideSummaryCard/components/InformationSummary.styles.tsx","pages/ride/supplier/components/rideSummaryCard/RideSummaryCardContext.ts","pages/ride/supplier/components/rideSummaryCard/components/SummaryAccordion.tsx","pages/ride/supplier/components/rideSummaryCard/components/PassengerInformationSummary.tsx","helpers/flightStatusUtil.ts","pages/rides/components/FlightStatusBadge.tsx","pages/ride/supplier/components/rideSummaryCard/components/RideInformationSummary.tsx","pages/rides/supplier/components/CloseRideModal.tsx","pages/ride/supplier/components/AdditionalCostsCard.tsx","helpers/googleMaps/getRidePoints.ts","pages/ride/supplier/components/rideSummaryCard/components/RideSummary.tsx","pages/ride/supplier/components/rideSummaryCard/components/VehicleInformationSummary.tsx","pages/ride/supplier/components/ConfirmRideModal.tsx","pages/rides/components/CellWrapper.tsx","pages/rides/supplier/components/AddDriverModalRidesOverview.tsx","pages/rides/supplier/components/ChangeDriverModalRidesOverview.tsx","pages/rides/supplier/components/RemoveDriverConfirmModal.tsx","pages/ride/supplier/components/DriverInformationCard.tsx","pages/ride/supplier/components/RemarksModal.tsx","pages/ride/supplier/components/rideLoadingSkeleton/RideLoadingSkeleton.tsx","pages/ride/supplier/components/RideMapCard.tsx","pages/rides/api/downloadRideOrder.ts","pages/ride/supplier/components/rideSummaryCard/RideSummaryCard.tsx","pages/ride/supplier/Ride.styles.tsx","pages/ride/supplier/Ride.tsx","pages/ride/supplier/components/AdditionalCostsForm.tsx","pages/ride/supplier/components/CloseRideModal.tsx","pages/ride/supplier/components/SelectedVehicleCard.tsx","pages/ride/supplier/components/ConfirmRideModalNew.tsx","pages/ride/supplier/components/RideHeader.tsx","pages/ride/supplier/helpers/renderRideView.tsx","pages/ride/supplier/RideView.tsx","pages/ride/components/RidePageSwitch.tsx","helpers/maps/mapRideToContext.ts","pages/ride/components/LeavePageModal.tsx","pages/ride/components/passengerInformation/PassengerInformation.tsx","pages/ride/components/passengerInformation/PassengerList.tsx","pages/ride/components/updateRide/ChangeFlightNumber.tsx","pages/ride/components/updateRide/ChangeReferences.tsx","pages/ride/components/updateRide/ChangeRideInformation.tsx","pages/ride/components/updateRide/VehicleOptions.tsx","pages/ride/customer/components/RideMap.tsx","pages/ride/customer/hooks/useNewRideInformation.tsx","pages/ride/customer/hooks/usePassengerInformation.ts","pages/ride/customer/hooks/useReferences.tsx","helpers/maps/mapRidesToRows.ts","helpers/isFlightMismatch.ts","helpers/isOvernightFlight.ts","pages/rides/api/useRides.ts","pages/rides/components/Rides.styles.ts","pages/rides/components/CustomFooter.tsx","pages/rides/components/RidesLoadingSkeleton.tsx","pages/rides/supplier/helpers/handleRideMiddleMouseClick.ts","pages/rides/components/CellText.tsx","pages/rides/components/StatusOptionBadge.tsx","pages/rides/customer/hooks/useRidesColumns.tsx","pages/rides/customer/Rides.tsx","pages/rides/supplier/helpers/dateRangeShortcuts.ts","pages/rides/components/RidesMobileFiltersModal.tsx","pages/rides/customer/RidesNew.tsx","helpers/isLandscape.ts","pages/rides/components/ExportButton.tsx","pages/rides/components/ResetFiltersButton.tsx","components/iconedLabel/IconedLabel.tsx","pages/rides/supplier/hooks/ridesChangeStatusUtil.ts","pages/rides/supplier/hooks/components/ChangeStatusButton.tsx","pages/rides/supplier/hooks/components/FlightInfo.tsx","pages/rides/supplier/hooks/components/RideInformationCell.tsx","pages/rides/supplier/components/MobileList.tsx","pages/rides/supplier/context/RidesContext.ts","pages/rides/supplier/components/SearchInput.tsx","pages/rides/supplier/helpers/getAmplitudeEventProperties.ts","pages/rides/supplier/helpers/mapRidesToRows.ts","pages/rides/supplier/hooks/useRidesColumns.tsx","pages/rides/supplier/Rides.tsx","pages/rides/supplier/RidesNew.tsx","pages/rides/components/ridesPageSwitch/RidesPageSwitch.tsx","constants/languages.ts","constants/localStorageKeys.ts","pages/settings/Settings.styles.tsx","pages/settings/Settings.tsx","pages/users/hooks/useUsersColumns.tsx","pages/users/hooks/useUsersColumnsMobile.tsx","pages/users/components/ActiveUsersDataGrid.tsx","pages/users/components/UserModal.styles.tsx","pages/users/components/AddUserModal.tsx","pages/users/components/ChangeUserStatusModal.tsx","pages/users/components/DeactivatedUsersDataGrid.tsx","pages/users/components/EditUserModal.tsx","pages/users/components/InvitedUsersDataGrid.tsx","pages/users/components/RevokeUserModal.tsx","pages/users/components/UsersLoadingSkeleton.tsx","pages/users/Users.tsx","pages/vehicles/components/ConfirmToggleVehicleActivationModal.tsx","pages/vehicles/api/types.ts","pages/vehicles/components/VehicleCard.tsx","pages/vehicles/components/VehiclesLoadingSkeleton.tsx","pages/vehicles/hooks/useVehiclesColumns.tsx","pages/vehicles/Vehicles.tsx","hooks/useQuery.tsx","components/authenticate/Authenticate.tsx","helpers/hasProperty.ts","components/privateRoute/PrivateRoute.tsx","components/routes/Routes.tsx","helpers/findDayjsLocale.ts","public/supportedLocales.ts","App.tsx","public/findSupportedLocale.ts","constants/sentryIgnoreErrors.ts","index.tsx"],"names":["resources","translation","i18n","use","initReactI18next","init","saveMissing","fallbackLng","missingKeyHandler","lngs","_ns","key","console","log","concat","join","interpolation","escapeValue","react","useSuspense","Environment","currentEnvironment","nodeEnv","process","Development","Test","Production","Error","appUrl","logOutUrl","iframeUrl","signInUrl","forgottenPasswordUrl","bookingToolUrl","setCookieUrl","refreshCookieUrl","deleteCookieUrl","googleAddressKey","apiUrl","useNewAuthentication","amplitudeApi","envConfig","development","test","production","config","geteUrl","minimumPasswordLength","legacyIframeId","paginationLimit","appVersion","sentryDsn","logAmplitudeEvent","event","eventProperties","arguments","length","undefined","sessionReplay","deviceId","amplitude","getInstance","getDeviceId","sessionId","getSessionId","sessionReplayProperties","logEvent","_objectSpread","TokenError","AVAILABILITY","REPORTS","REPORTS_SUMMARY","REPORTS_SITUATIONS","REPORTS_DRIVER_ANALYSIS","REPORTS_REVIEWS","LOG_IN","LOG_IN_NEW","FORGOT_PASSWORD","USERS","RIDES","UPDATE_RIDE","DRIVERS","VEHICLES","BOOKING_TOOL","DOCUMENTS","INVOICES","SETTINGS","getSingleRideRoute","id","getUpdateRideRoute","INVALID_AUTH_CODE","ShowPasswordButton","_ref","onShowPassword","_useState","useState","_useState2","_slicedToArray","showingPassword","setShowingPassword","t","useTranslation","_jsx","InputAdornment","position","children","IconButton","onClick","isPasswordVisible","onMouseDown","preventDefault","style","padding","Visibility","VisibilityOff","Severity","NotificationContext","createContext","useNotificationContext","context","useContext","InputError","allValid","input","Object","values","every","value","isValid","isEqualString","valueToCompare","error","trim","isFilledString","IS_EMAIL","IS_PASSWORD","IS_DECIMAL_NUMBER","IS_LETTER_AND_NUMBER","isPasswordStrong","useUrlQuery","search","useLocation","useMemo","URLSearchParams","ROUTE_PREFIX","LOGOUT","LOGIN","RIDE_ID_PARAM","ACCOUNT_ID_PARAM","INVITED_USERS","USER_PROFILE","USER_INVITE","ACCEPT_INVITE","RESET_PASSWORD","RIDE","RIDE_CHANGE_INFORMATION","RIDE_CHANGE_PASSENGERS","RIDE_AVAILABILITIES","SEARCH_LOCATION","RIDE_SWAP_ESTIMATE_OPTION","DOWNLOAD_BOOKING_CONFIRMATION","DOWNLOAD_RIDE_ORDER","DOWNLOAD_RECEIPT_ROUTE","SEARCH_FLIGHT","GET_FLIGHT_INFO","EXPORT_RIDES_TO_EXCEL","SUMMARY_REPORT","DRIVERS_REPORT","SITUATIONS_REPORT","REVIEWS_REPORT","STOP_SALES_RULE","DRIVERS_SEARCH","VEHICLE_BRANDS","VEHICLE_MODELS","FILES","BOOKING_TOOL_URL","ERROR_TOO_MANY_REQUESTS","ERROR_NOT_AUTHORIZED","ERROR_NOT_FOUND","getSupplierInvoicesRoute","page","getUsersRoute","isDeactivated","getRideRoute","replace","getCancelRideRoute","getUpdateRideInformation","getUpdateTravellerInformation","getFlightInfoRoute","getUpdateFlightNumberRoute","getSendBookingConfirmationEmailRoute","getStopSalesRulesRoute","accountId","getPastStopSalesRulesRoute","getStopSalesRuleRoute","ruleId","getDriverRoute","getToggleDriverStatusRoute","getAirlineIataImage","imageName","imageWidth","imageHeight","toUpperCase","getUserRoute","getRevokeUserRoute","getUpdateUserStatusRoute","getFileRoute","getDownloadRideOrderRoute","getAssignDriverToRide","rideId","driverId","getUnassignDriverFromRide","getSupplierInvoiceFile","invoiceNumber","fileType","getSearchBrands","limit","getSearchVehicles","getFindVehicleRoute","getVehicleRoute","getDriversSearch","IMAGE_UPLOAD","apiClient","axios","create","baseURL","withCredentials","headers","Cookies","get","interceptors","response","status","window","location","href","Promise","reject","acceptUserInvite","_asyncToGenerator","_regeneratorRuntime","mark","_callee","request","wrap","_context","prev","next","post","sent","abrupt","stop","_x","apply","useStyles","makeStyles","container","maxWidth","margin","heading","marginBottom","marginTop","formField","logoContainer","display","AcceptInvite","_urlParams$get","_urlParams$get2","_urlParams$get3","classes","urlParams","history","useHistory","token","firstNameParam","lastNameParam","firstName","setFirstName","_useState3","_useState4","lastName","setLastName","_useState5","_useState6","password","setPassword","_useState7","_useState8","confirmPassword","setConfirmPassword","_useState9","_useState10","firstNameError","setFirstNameError","_useState11","_useState12","lastNameError","setLastNameError","_useState13","_useState14","passwordError","setPasswordError","_useState15","_useState16","confirmPasswordError","setConfirmPasswordError","_useState17","_useState18","_useState19","_useState20","showingConfirmPassword","setShowingConfirmPassword","showNotification","_useMutation","useMutation","onSuccess","push","onError","_error$response","_error$response$data","data","message","acceptUserInviteMutation","mutate","isLoading","submitForm","validated","Empty","NotStrongPassword","NoMatch","validateFormFields","password_confirmation","SignedOutLayout","linkPrefix","toLowerCase","_jsxs","Paper","elevation","className","src","logoIconLightBackground","alt","Form","onSubmit","Typography","variant","component","mb","TextField","label","onChange","target","inputProps","form","autocomplete","type","name","required","helperText","InputProps","endAdornment","fontSize","Box","PrimaryButton","submitsForm","loading","DUMMY_DATE","REPEATS","WEEKDAYS","WEEKDAY_SHORT_NAMES","PERIODS","LAST_30_DAYS","translationKey","LAST_7_DAYS","YESTERDAY","USER_ROLES","BOOKING_SOURCE","COLORS","BLACK","BLACK_50","BLACK_12","WHITE","WHITE_10","WHITE_20","SLATE_GREY","DARK_GRAY","LIGHT_GRAY","EXTRA_LIGHT_GRAY","LIGHT_BLUE_INFO","BLUE_DARK","BLUE","LIGHT_BLUE","ORANGE","ORANGE_OFFICIAL","ORANGE_WARNING","LIGHT_ORANGE","MEDIUM_ORANGE","GREEN","LIGHT_GREEN","RED","RED_WARNING","LIGHT_RED","ORANGE_TEXT","BLUE_TEXT","GREEN_TEXT","GREY_INPUT","PROFILE_COLORS","PASTEL_ORANGE","PASTEL_PINKISH","PASTEL_YELLOWISH","PASTEL_MARKER_GREEN","PASTEL_CYAN","PASTEL_BLUE","PASTEL_VIOLENT","PASTEL_VERY_PINK","MAX_CONTENT_WIDTH","BUTTON_WIDTH","MIN_BUTTON_WIDTH","IMAGE_SIZE","CurrentProfileContext","useCurrentProfileContext","currentProfileContext","LocaleContext","useLocaleContext","localeContext","DATE_FORMATS","TIME_FORMATS","resolveApplicableOnDaysValue","EVERY_MONDAY","EVERY_TUESDAY","EVERY_WEDNESDAY","EVERY_THURSDAY","EVERY_FRIDAY","EVERY_SATURDAY","EVERY_SUNDAY","resolveApplicableOnDaysShortNames","applicableOnDays","keys","filter","weekday","includes","map","applicableDay","resolveRepeatsInitialValue","DO_NOT_REPEAT","resolveRepeatsValue","CUSTOM","TOOLBAR_HEIGHT","theme","createTheme","USE_VEHICLE","tryGetAsync","_tryGetAsync","getter","t0","success","t1","getStopSalesRule","_yield$apiClient$get","_x2","getCurrentStopSalesRules","_ref2","_callee2","_yield$apiClient$get2","_context2","_x3","getPastStopSalesRules","_ref3","_callee3","_yield$apiClient$get3","_context3","_x4","editStopSalesRule","_ref4","_callee4","payload","_context4","put","BaseError","_x5","_x6","_x7","createStopSalesRule","_ref5","_callee5","_context5","_x8","_x9","deleteStopSalesRule","_ref6","_callee6","_context6","delete","_x10","_x11","mainWrapper","alignItems","mainWrapperTopPadding","paddingTop","headerTitleWrapper","_defineProperty","justifyContent","flexDirection","breakpoints","up","headerTitle","down","width","gap","content","height","AvailabilityLoadingSkeleton","isMobile","useMediaQuery","Grid","item","xs","Skeleton","datePickerPlaceholder","fieldYearPlaceholder","fieldMonthPlaceholder","fieldDayPlaceholder","FormError","getFormErrorMessage","Unauthorized","UnexpectedError","WrongCredentials","and","firstResult","createSecond","isAfterDate","minimum","differenceInSeconds","isAfterTime","isNotNull","_path","isPastDate","isToday","isPast","isValidDateFormat","dateFormat","formattedDate","format","parsedDate","parse","Date","isValidFormattedDate","isValidTimeFormat","timeFormat","formattedTime","parsedTime","isValidFormattedTime","styleTheme","formFieldMobile","dateFieldStart","marginRight","dateFieldEnd","marginLeft","checkbox","cancelButton","color","border","outline","timeSepartor","CreateAvailabilityModal","_currentUser$accountI","_currentUser$accountI2","blockedPeriodId","isModalOpen","onClose","isSaving","setIsSaving","currentUser","currentProfile","autoFocusRef","useRef","startDateTime","setStartDateTime","startDateTimeError","setStartDateTimeError","endDateTime","setEndDateTime","endDateTimeError","setEndDateTimeError","startTime","setStartTime","startTimeError","setStartTimeError","endTime","setEndTime","endTimeError","setEndTimeError","description","setDescription","_useState21","_useState22","descriptionError","setDescriptionError","_useState23","_useState24","repeats","setRepeats","_useState25","_useState26","setApplicableOnDays","_useState27","_useState28","formError","setFormError","_useState29","_useState30","openStartDate","setOpenStartDate","_useState31","_useState32","openEndDate","setOpenEndDate","_useState33","_useState34","openStartTime","setOpenStartTime","_useState35","_useState36","openEndTime","setOpenEndTime","_useState37","_useState38","openStartDateTime","setOpenStartDateTime","_useState39","_useState40","openEndDateTime","setOpenEndDateTime","_useStopSalesRule","enabled","_useQuery","useQuery","keepPreviousData","refetchOnWindowFocus","retry","isError","isFetching","refetch","useStopSalesRule","toString","Boolean","blockedPeriod","isfetchingBlockedPeriod","useEffect","_blockedPeriod$applic","startDateTimeInitial","start","dayjs","toDate","endDateTimeInitial","end","startTimeInitial","applicableStartTime","endTimeInitial","applicableEndTime","_autoFocusRef$current","current","focus","isFieldDisabled","isBlockedTimeVisible","isRepeatsOnVisible","InvalidPastDate","InvalidDateFormat","InvalidAfterDate","startTimeParsed","endTimeParsed","InvalidTimeFormat","InvalidAfterTime","postData","_currentUser$accountI3","_currentUser$accountI4","_currentUser$accountI5","_currentUser$accountI6","Modal","isOpen","isDisabled","title","confirmButtonLabel","cancelButtonLabel","sx","backgroundColor","columnSpacing","lg","paddingBottom","fontWeight","md","DatePicker","newValue","slotProps","textField","readOnly","localeText","open","DateTimePicker","disabled","mobilePaper","rowSpacing","paddingLeft","Select","onChangeValue","handleRepeatsOn","repeat","SelectOption","_Fragment","direction","FormControlLabel","control","Checkbox","checked","prevValue","_toConsumableArray","element","TimePicker","ampm","autoFocus","inputRef","buttonFixedWidth","mobileContent","ConfirmDeleteModal","blockedPeriodMessage","submitDelete","Tooltip","arrow","FlagOutlinedIcon","part1","SportsScoreOutlinedIcon","part2","RepeatOutlinedIcon","part3","tableRow","cursor","transition","tableCell","fontFamily","background","TableRowDesktop","handleEditBlockPeriod","handleDeleteBlockPeriod","isConfirmDeleteModalOpen","setIsConfirmDeleteModalOpen","handleSubmitDelete","finish","TableRow","hover","TableCell","colSpan","stopPropagation","DropdownMenu","options","icon","EditOutlinedIcon","iconColor","labelColor","DeleteOutlineOutlinedIcon","CustomWidthTooltip","styled","props","_objectWithoutProperties","_excluded","popper","tooltipClasses","tooltip","DropdownButtonMenu","buttonLabel","buttonIcon","buttonHeight","tooltipWidth","buttonClassName","anchorEl","setAnchorEl","handleClose","textWrap","hidden","placement","Button","borderTopRightRadius","borderBottomRightRadius","borderColor","startIcon","currentTarget","minWidth","borderTopLeftRadius","borderBottomLeftRadius","borderLeft","paddingRight","KeyboardArrowDownIcon","Menu","MenuListProps","anchorOrigin","vertical","horizontal","transformOrigin","PaperProps","transform","option","_option$iconColor","_option$labelColor","MenuItem","handleOptionClick","ListItemIcon","SvgIcon","iconSize","ListItemText","editButton","deleteButton","accordion","minHeight","borderBottom","boxShadow","TableRowMobile","Accordion","AccordionSummary","expandIcon","ExpandMoreOutlinedIcon","AccordionDetails","Availability","isButtonWidthFitContent","root","rootMobile","pageHeader","tableHead","pageHeaderMobile","tableContainer","addButton","locale","showPastPeriod","setShowPastPeriod","mobileView","selectedBlockedPeriodId","isCreateAvailabilityModalOpen","setIsCreateAvailabilityModalOpen","_useCurrentStopSalesR","_useQuery2","useCurrentStopSalesRules","currentStopSalesRules","isfetchingCurrent","refetchCurrent","_usePastStopSalesRule","_useQuery3","usePastStopSalesRules","pastStopSalesRules","isfetchingPast","refetchPast","handleAvailabilitySubmit","xl","AddIcon","TableContainer","Table","size","TableHead","columns","lineHeight","borderRight","textAlign","Switch","isChecked","TableBody","NoResults","getWhenMessage","iframeStyles","createStyles","iframe","ErrorPage","_ref$onButtonClick","onButtonClick","header","_ref$buttonTitle","buttonTitle","_ref$isButtonVisable","isButtonVisable","spacing","alignSelf","fullWidth","FIELD","BUTTON","INPUT","SCREEN","MODAL","RIDES_PAGE","SINGLE_RIDE_PAGE","NOT_AUTHORIZED_PAGE","NOT_FOUND_PAGE","TO_MANY_REQUEST_PAGE","UNEXPECTED_ERROR_PAGE","INVALID_PASSWORD_TOKEN_PAGE","INVALID_INVITE_TOKEN_PAGE","INVALID_COOKIE_PAGE","EDIT_SINGLE_RIDE","_extends","assign","bind","i","source","prototype","hasOwnProperty","call","this","excluded","sourceKeys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgTrafficJam","svgRef","titleId","viewBox","fill","xmlns","ref","d","ForwardRef","onRetry","isPageOpened","carIcon","go","getBookingToolUrl","skeletonContainer","BookingToolSkeleton","alignContent","animation","BookingTool","_useBookingTool","useBookingTool","onLoad","document","getElementById","contentWindow","postMessage","isValidDate","InvalidDate","typographyStyles","button","typography","palette","paper","errorContainer","errorTheme","main","errorMessageMargin","successTheme","dialogueTitle","dialogueList","body1Override","inlineLink","grey","black","common","whiteLink","white","subtitle","subtitle1Override","subtitle2Override","body1","capitalize","textTransform","mobileTitle","downloadFile","url","fileName","link","createElement","download","body","appendChild","click","remove","exportRidesToExcel","variables","result","Accept","responseType","then","URL","createObjectURL","Blob","catch","exportButton","ExportGridContainer","isButtonDisabled","buttonOnClick","isShowingDownloadButton","CloudDownloadOutlinedIcon","CustomerExport","startDate","endDate","_React$useState","React","_React$useState2","dateRange","setDateRange","formErrors","setFormErrors","period","setPeriod","typeClasses","exportRidesToExcelMutation","getHelperText","periodKey","find","_newStartDate","newStartDate","newEndDate","subtract","startOf","clone","_dateRange$0$format","_dateRange$3","_dateRange$1$clone$en","_dateRange$4","_dateRange$0$toDate","_dateRange$","_dateRange$1$toDate","_dateRange$2","fieldErrors","validateFields","endOf","LocalizationProvider","dateAdapter","AdapterDayjs","DateRangePicker","fieldSeparator","CalendarTodayOutlinedIcon","slots","field","SingleInputDateRangeField","clsx","useDocuments","getDocuments","cacheTime","getFiles","downloadDocument","row","downloadLink","textDecoration","downloadIcon","DocumentRow","downloadDocumentMutation","_window$open","Info","Spinner","DownloadOutlinedIcon","DocumentsLoadingSkeleton","tableHeaderLabel","Documents","setData","_useDocuments","documents","isLoadingDocuments","_useFiles","useFiles","files","isLoadingFiles","text","DRAWER_WIDTH","CLOSED_DRAWER_WITH","navigationStyles","appBar","zIndex","drawer","transitions","easing","sharp","duration","leavingScreen","appBarShift","enteringScreen","hide","flexShrink","whiteSpace","drawerOpen","flexWrap","drawerClose","overflowX","listContainer","toolbar","flexGrow","menuButton","separateListContainer","borderRadius","overflow","separateContainer","profileDropdown","profilePhoto","selectedItem","closedItem","closedList","buttonMobile","buttonDisabled","loadingIndicator","PageActionButton","_ref$isVisible","isVisible","hoverColor","desktopInitialRight","mobileInitialBottom","isExtraSmall","only","isMenuClosed","right","buttonWidth","ButtonBase","bottom","CircularProgress","CustomNoRowsOverlay","emptyAirline","SINGLE_RIDE_CONFIRM","SINGLE_RIDE_CONFIRM_SAVE","SINGLE_RIDE_CLOSE","SINGLE_RIDE_CLOSE_SAVE","SINGLE_RIDE_ADD_DRIVER","SINGLE_RIDE_CHANGE_DRIVER","SINGLE_RIDE_DRIVER_SAVE","SINGLE_RIDE_DRIVER_UNASSIGN","SINGLE_RIDE_DOWNLOAD_DOCUMENTATION","SINGLE_RIDE_ADD_REMARKS","SINGLE_RIDE_ADD_REMARKS_SAVE","SINGLE_RIDE_ADD_REMARKS_BOOKING_REFERENCE","SINGLE_RIDE_ADD_REMARKS_EXTRA_WAITING_TIME","SINGLE_RIDE_ADD_REMARKS_WAITING_TIME_COSTS","SINGLE_RIDE_ADD_REMARKS_PARKING_TOLL_COSTS","SINGLE_RIDE_ADD_REMARKS_OTHER_COSTS","ADD_DRIVER_AND_VEHICLE_BUTTON","CHANGE_DRIVER_AND_VEHICLE_BUTTON","VEHICLES_SCREEN","VEHICLES_SEARCH_INPUT","NEW_VEHICLE_BUTTON","EDIT_VEHICLE_BUTTON","DUPLICATE_VEHICLE_BUTTON","DEACTIVATE_VEHICLE_BUTTON","ACTIVATE_VEHICLE_BUTTON","ADD_OR_EDIT_VEHICLE_LICENSE_PLATE_INPUT","ADD_OR_EDIT_VEHICLE_BRAND_INPUT","ADD_OR_EDIT_VEHICLE_MODEL_INPUT","ADD_OR_EDIT_VEHICLE_COLOR_INPUT","ADD_OR_EDIT_VEHICLE_IDENTIFIER_INPUT","ADD_OR_EDIT_VEHICLE_PHOTO_INPUT","ADD_OR_EDIT_NEW_VEHICLE_REMOVE_PHOTO_BUTTON","ADD_OR_EDIT_NEW_VEHICLE_ADD_UPDATE_BUTTON","DRIVERS_SCREEN","NEW_DRIVER_BUTTON","EDIT_DRIVER_BUTTON","DEACTIVATE_DRIVER_BUTTON","ACTIVATE_DRIVER_BUTTON","ADD_OR_EDIT_DRIVER_NAME_SURNAME_INPUT","ADD_OR_EDIT_DRIVER_PHONE_NUMBER_INPUT","ADD_OR_EDIT_DRIVER_PHOTO_INPUT","ADD_OR_EDIT_DRIVER_REMOVE_PHOTO_INPUT","ADD_OR_EDIT_DRIVER_SAVE","ADD_DRIVER_AND_VEHICLE_SKIP","SINGLE_RIDE_ADD_DRIVER_AND_VEHICLE_STEP_ONE","SINGLE_RIDE_ADD_DRIVER_AND_VEHICLE_STEP_TWO","useDataGridStyles","dataGrid","wordWrap","dataGridMobile","hideHeader","rowMinHeight52","hideSeparator","visibility","menuItem","hideItem","dataGridNoRows","overflowY","iconNoRows","tableHeader","noRightBorder","noMarginTop","truncateText","textOverflow","hideColumnHeaderRow","font14","timezoneToCountryCode","getCountryCode","userTimezone","tz","guess","useUploadedImageUrls","isClicked","useQueries","file","formData","FormData","append","queryKey","queryFn","uploadImage","LightBoxPortal","_ref$images","images","startIndex","ReactDOM","createPortal","Lightbox","image","TO_RADIANS","Math","PI","resizeImageFile","resolve","Resizer","imageFileResizer","uri","imageBox","opacity","loader","top","left","imageCropBox","imageMobileCropBox","ImageUploader","setFiles","isDriverPage","boxWidth","boxHeight","logPhotoInputEvent","logPhotoDeleteEvent","defaultImages","setImagesChange","setImages","setIsModalOpen","imgSrc","setImgSrc","previewCanvasRef","crop","setCrop","completedCrop","setCompletedCrop","imgRef","currentImage","setCurrentImage","isViewerOpen","setViewerOpen","handleFileSelect","reader","FileReader","addEventListener","_reader$result","readAsDataURL","fn","waitTime","deps","savedCallback","setTimeout","clearTimeout","useDebounceEffect","canvasWidth","canvasHeight","canvas","scale","rotate","ctx","getContext","scaleX","naturalWidth","scaleY","naturalHeight","pixelRatio","min","devicePixelRatio","floor","imageSmoothingQuality","cropX","x","cropY","y","rotateRads","centerX","centerY","save","translate","drawImage","restore","canvasPreview","mt","index","mr","handleImageClick","objectFit","indexForFiles","prevImages","_","idx","prevFiles","handleDelete","DeleteIcon","accept","evn","previewCanvas","toBlob","blob","fileURL","File","slice","ReactCrop","percentCrop","onComplete","completeCrop","aspect","maxHeight","mediaWidth","mediaHeight","_event$currentTarget","centerCrop","makeAspectCrop","unit","addDriverModal","contentContainer","imageUploaderContainer","photoUploadContainer","faceIcon","photoUploadDescription","AddDriverModal","onAddDriver","isSubmitted","setIsSubmitted","isLoadingImages","setIsLoadingImages","mobile","setValues","handleChange","prevStateForm","resultsOfImages","isSuccess","_successfulUploads$","successfulUploads","newDriver","phoneNumber","pictureUrl","some","validatedName","validatedMobile","modalContentClassName","Face","autoComplete","MuiTelInput","defaultCountry","PhoneOutlined","useDebounce","milliSeconds","debouncedValue","setDebouncedValue","handler","useDrivers","debouncedSearchQuery","getDrivers","endpoint","editDriver","addDriver","toggleDriverStatus","patch","confirmButtonDeactivate","ConfirmToggleDriverActivationModal","onToggle","confirmButtonClassName","DriversLoadingSkeleton","Array","editDriverModal","deleteIcon","EditDriverModal","driver","onEditDriver","onDeactivateClick","deleteClicked","setDeleteClicked","updatedDriver","fieldErros","additionalTextButtonLabel","handleAdditional","Delete","Lock","vehicleBox","_props$boxSize","boxSize","cameraBox","photoBox","SmallVehicleImage","photo","evt","backgroundPosition","CameraAltIcon","ChangeStatus","driverNameMobile","MobileViewPanelToggle","isExpanded","tabIndex","ExpandMoreIcon","shortest","toggleStatusButton","order","TABLE_HEIGHT","Drivers","_selectedDriver$curre","dataGridClases","gridApiRef","useGridApiRef","searchPhrase","setSearchPhrase","isAddDriverModalOpen","setIsAddDriverModalOpen","isConfirmToggleIsActiveModalOpen","setIsConfirmToggleIsActiveModalOpen","isEditDriverModalOpen","setIsEditDriverModalOpen","results","setResults","isUpdateNotificationOpen","selectedDriver","_useDrivers","drivers","searchTerm","filteredDrivers","columnVisibilityModel","rideAssigned","actions","GRID_DETAIL_PANEL_TOGGLE_FIELD","isNoRows","tableWrapperHeight","tableHeight","onToggleStatus","onEdit","onActionItemClick","useCallback","action","EDIT_DRIVER","DEACTIVATE_DRIVER","ACTIVATE_DRIVER","headerName","renderCell","params","_params$row","flex","_feedbacks","_feedbacks2","rating","feedbacks","averageRate","toFixed","StarIcon","count","_tripsCount","tripsCount","headerClassName","getActions","GridActionsCellItem","CreateOutlinedIcon","showInMenu","onResize","onResizeCapture","nonce","PersonAddAlt1OutlinedIcon","PersonRemoveAlt1OutlinedIcon","GRID_DETAIL_PANEL_TOGGLE_COL_DEF","useDriversColumns","handleAddDriver","handleEditDriver","handleToggleActivation","onRowClick","toggleDetailPanel","detailPanelContent","_driver$tripsCount$to","_driver$tripsCount","LabeledData","ignoreColumns","useDriversColumnsMobile","CustomTextField","noHelperTextSpace","SearchIcon","DataGridPro","apiRef","hideFooter","disableColumnSelector","rows","noRowsOverlay","getDetailPanelContent","getDetailPanelHeight","InvalidAuthCode","lockIcon","InvalidCookie","InvalidInviteToken","errorType","localisedKey","NotFound","Expired","emailIcon","InvalidPasswordToken","notFoundIcon","goBack","TooManyRequest","timer","tooManyRequestsIcon","UnauthorizedUser","notAuthorizedIcon","isEmail","forgotPassword","emailField","buttons","signInButton","ForgotPassword","isSuccessCardVisible","setIsSuccessCardVisible","email","setEmail","emailError","setEmailError","forgotPasswordMutation","Card","CardContent","EmptyEmail","InvalidEmail","SecondaryButton","PrimaryTimeZone","AccountType","AccountTypeAbbreviation","Customer","Supplier","FileType","getSupplierInvoices","Heading","InvoicesLoadingSkeleton","table","pagination","getPaymentDate","invoiceDate","paymentDay","finalPaymentDay","dateObject","set","Invoices","useSupplierFinancialInformationVisibility","useFlags","currentPage","setCurrentPage","_useSupplierInvoices","meta","lastPage","useSupplierInvoices","supplierInvoices","isFetchingSupplierInvoices","Container","invoice","_invoice$amountDue","totalTripCount","currency","amountDue","toLocaleString","paymentDayOfMonth","PDF","PictureAsPdfOutlinedIcon","EXCEL","ListAltOutlinedIcon","Pagination","showFirstButton","showLastButton","GET_E_TERMS_AND_CONDITIONS","MENU_STATE","RIDES_FILTER","SUPPLIER_RIDES_FILTER","USER","PROFILE_COLOR","IS_LOGIN_WITH_NEW_PORTAL","findZendeskLocale","setZendeskLocale","zE","authenticateZendeskUser","done","_yield$getZendeskToke","getZendeskToken","logoutZendeskUser","login","_yield$apiClient$post","logout","AuthContext","AuthProvider","storedUser","localStorage","getItem","JSON","getAuthenticatedUser","user","setUser","initZendesk","attempts","intervalId","setInterval","clearInterval","useZendeskAuth","handleLogin","loggedUser","setItem","stringify","handleLogout","removeItem","onLogin","onLogout","Provider","useAuth","authenticatedUserContext","forgotPasswordContainer","dontHaveAccount","signInButtonContainer","secondaryButton","logoImage","signedOutMobile","termsLink","Login","signingIn","setSigningIn","onSignIn","_error$response2","_error$response2$data","logo","Alert","severity","TertiaryButtonLink","to","useButtonStyles","defaultTextButton","inlineButtonMargin","iconButton","containerStyles","rootBookingTool","rootWithoutNavigation","iframePage","bookingTool","contentWithoutNavigation","contentShift","easeOut","companyInformationContainer","fullHeight","framedFullHeight","LogInMessage","containerClasses","car","align","Link","reload","clear","sessionStorage","UK_GLOBAL_OPERATIONS","WEB_WHATSAPP_REDIRECTING","UserRoles","AgentVerticle","contactDetails","phone","priorityContactDetails","ContactUsModal","buttonClasses","showCopyIcon","setShowCopyIcon","copied","setCopied","contacts","agentVerticle","AIRLINE","openZendeskLiveChat","disableRipple","disableFocusRipple","disableTouchRipple","ArrowForwardIcon","onMouseOver","onMouseLeave","copy","DoneIcon","FileCopyIcon","details","IconedData","PhoneOutlinedIcon","dataLabel","dataLabelColor","isLinked","bottomMargin","WhatsAppIcon","useFormStyles","withoutLabel","permissionsContainer","passwordField","formGroup","customLogin","formContainer","disabledField","borderBottomStyle","WebkitTextFillColor","useUsers","getUsers","getInvitedUsers","inviteUser","editUser","revokeUser","updateUserStatus","updateUserProfile","_ref7","_callee7","_context7","useUserProfile","getUserProfile","staleTime","_ref8","_callee8","_context8","EditUserProfileModal","onUserProfileUpdated","formClasses","_useReactQueryMutatio","useReactQueryMutation","handleServerErrors","updateUserProfileMutation","errors","serverErrors","handleSubmit","shouldValidatePassword","noValidate","autoCapitalize","phoneBox","ContactUsContact","EmailOutlinedIcon","accountManager","accountEmail","confirmButton","navigationLogoStyles","smallLogo","largeLogo","companyInformation","NavigationLogo","closed","currentYear","getFullYear","isMatchPath","path","fullPath","matchPath","pathname","separatedItem","MenuListItem","_ref$disableMathcingP","disableMathcingPath","isSeparateItem","disableHoverListener","ListItemButton","selected","NavLink","CustomerList","showDocuments","List","role","ListIcon","BarChartIcon","permissions","manageUsers","PersonIcon","FolderIcon","SupplierList","DirectionsCarFilledIcon","ContactMailIcon","EventBusyIcon","PersonOutlineIcon","seeInvoices","ReceiptLongIcon","dropdownItem","DropdownProfileItem","NavigationMenu","_localStorage$getItem","closeMenu","openMenu","isDropdownOpen","setIsDropdownOpen","isOpenMyProfileModal","setIsOpenMyProfileModal","isOpenSupportModal","setIsOpenSupportModal","_typographyStyles","useTheme","_useCurrentProfileCon","refetchUserProfile","useSettingsPage","handleUserProfileUpdate","logOut","fetch","method","credentials","logOutNew","backgroundProfileColor","colorKeys","randomColorKey","random","getRandomProfileColor","AppBar","Toolbar","edge","MenuIcon","HelpIcon","Drawer","anchor","Chip","ChevronRightIcon","CloseIcon","ChevronLeftIcon","_currentProfile$email","_currentProfile$first","_currentProfile$lastN","substring","getUserInitials","ArrowDropUpIcon","ArrowDropDownIcon","MenuList","SettingsIcon","AccountCircleIcon","LogoutIcon","userRole","SUPPLIER","CUSTOMER","getNavigation","accountType","ContactUsModalSupplier","RIDE_ID_URLS","IFRAME_URL","report","Sentry","ErrorBoundary","_Component","_inherits","_super","_createSuper","_this","_classCallCheck","state","hasError","_createClass","setState","Component","Loading","framed","largeIcon","LinearProgress","MenuState","PageContainer","mainClassName","allowedAccountType","allowedUserRoles","innerWidth","previousMenuState","ldClient","useLDClient","Closed","Open","iframeView","RegExp","currentMenuState","setClosed","_useUserProfile","userProfile","isFetched","_userProfile$id","_userProfile$agentVer","_userProfile$agentTie","_userProfile$organiza","_userProfile$accountN","_userProfile$accountN2","_userProfile$accountN3","ldContext","kind","fullName","identify","chameleon","created","joinedAt","userId","setUserId","userProperties","agentTier","organizationId","accountName","split","properties","setUserProperties","FullScreenLoader","isBookingTool","SituationType","QualityValuationEnum","situationTypesRecord","DriverLate","DriverNoShow","WrongVehicle","SafetyIncident","VehicleCondition","ServiceQuality","OnRouteDelay","Other","listSummary","listDrivers","listSituations","listReviews","_yield$apiClient$get4","useReport","queryResults","_queryResults","_queryResults$","summary","isLoadingSummary","isRefetchingSummary","isRefetching","_queryResults$2","situations","isLoadingSituations","isRefetchingSituations","_queryResults$3","isLoadingDrivers","isRefetchingDrivers","_queryResults$4","reviews","isLoadingReviews","isRefetchingReviews","_drivers$drivers$map","_drivers$drivers","totalRides","totalTripsWithDriversAdded","totalAccuratelyTrackedRides","totalSituations","totalDriverLate","totalSituationsByType","totalOnRouteDelay","totalDriverNoShow","totalVehicleCondition","totalServiceQuality","totalSafetyIncident","totalWrongVehicle","totalOther","situation","_situation$driver$nam","_situation$driver","_situation$situationT","pickupTime","rideNumber","situationType","totalTrips","totalReviews","rides","ride","pickupTimeLocal","tripUnid","gpsTracking","arrival","closestDistanceToArrivalPointInMeters","departure","closestDistanceToDeparturePointInMeters","NOT_ACCURATE","ACCURATE","NO_UPDATES","driverUpdates","timeDifferenceInSeconds","timeDifferenceBetweenFirstAndLastStatusUpdate","mapQualityReportData","refetchAll","forEach","query","mainContainer","mainContainerMobile","pageHeaderWrapper","card","ReportsLoadingSkeleton","isSmallDevice","DetailPanelToggle","getPercentage","part","total","decimals","Number","percentage","getStatusColor","getStatusIcon","MoodOutlinedIcon","SentimentNeutralOutlinedIcon","MoodBadOutlinedIcon","DetailsRow","formatInTimeZone","DriverUpdatesTooltip","LocationSharingTooltip","COLUMN_WIDTH","firstTableCell","tableHeaderCellContent","mobileRowDetails","getRidesTrackedAccuratelyPercent","trackedRidesCount","useDriversAddedPercentage","currentPeriod","pastPeriod","driversAddedCurrentPeriodPercentage","_currentPeriod$summar","_currentPeriod$summar2","driversAddedPreviousPeriodPercentage","_pastPeriod$summary$t","_pastPeriod$summary$t2","useTrackedDriversPercentage","trackedDriversCurrentPeriodPercentage","trackedDriversPreviousPeriodPercentage","SummaryBasicCard","_ref$title","_ref$percentage","percentage1","percentage2","text1","text2","numberOfReviews","_ref$titleTooltip","titleTooltip","excludePercentage1","includeTotalRidesText","parseInt","enterTouchDelay","InfoOutlinedIcon","Rating","DriverAnalysisTab","_useDriverAnalysisCol","detailsClasses","sortable","disableColumnMenu","_params$row$averageRa","renderHeader","_params$row$averageRa2","_params$row$averageRa3","round","_row$rides","tableLayout","_row$rides2","useDriverAnalysisColumns","_useDriverAnalysisCol2","rowDetails","rowDetailsMobile","_useDriversAddedPerce","_useTrackedDriversPer","ridesTrackedAccuratelyPercent","autoHeight","disableColumnFilter","getRowHeight","FeedbackTopics","PAYMENT_METHOD","AverageRatingDistributionCard","_ref$stars","stars5","_ref$stars2","stars4","_ref$stars3","stars3","_ref$stars4","stars2","_ref$stars5","stars1","totalRatings","ratingsPerPercent","ratingBox","serviceBox","AverageRatingTopicCard","ratingsByTopic","rate","useReviewsDetailsContent","_row$topics","topics","topic","getTopicLabel","comments","comment","adminComment","SERVICE_RATE","DRIVER_RATE","MEETING_DRIVER_RATE","VEHICLE_RATE","ReviewsTab","_pastPeriod$summary$r","pickUpTime","_params$row$ride","_params$row$ride$ride","_params$row$ride$ride2","rideRoute","metaKey","useReviewsColumns","averageRateByTopic","entries","averageRating","totalRate","totalFiveStar","totalFourStar","totalThreeStar","totalTwoStar","totalOneStar","getSituationType","useSituationsDetailsContent","PersonOutlineOutlinedIcon","dataColor","itemRow","SummaryListCard","driverLate","driverNoShow","vehicleCondition","serviceQuality","safetyIncident","onRouteDelay","wrongVehicle","other","SituationsTab","_pastPeriod$summary$s","_params$id","_params$id$toString","useSituationsColumns","sortedSituations","sort","sortA","sortB","getTime","getPercentageChange","currentPercentage","previousPercentage","tabContentHeaderWrapper","tabContentHeader","SummaryTab","_currentPeriod$summar3","_currentPeriod$summar4","_pastPeriod$summary$t3","_currentPeriod$summar5","_currentPeriod$summar6","ReportsActiveTab","dateNow","yesterday","addDays","Reports","month","setMonth","setStartDate","setEndDate","openDate","setOpenDate","previousStartDate","setPreviousStartDate","previousEndDate","setPreviousEndDate","activeTab","Summary","Situations","DriverAnalysis","Reviews","getActiveTab","endDateCurrentMonth","dayjsStartDate","dayjsEndDate","dayjsEndDateCurrentMonth","dayjsPreviousStartDate","dayjsPreviousEndDate","_useReport","isLoadingCurrent","_useReport2","isLoadingPast","previousPeriod","currentPeriodDates","handlePeriods","views","startOfMonth","endOfMonth","addMonths","maxDate","minDate","Tabs","Tab","selectedIndex","useEmailFromUrlQuery","emailMatch","match","decodeURIComponent","resetPassword","helpText","ResetPassword","resetPasswordMutation","uuid","Notification","_COLORS$WHITE","_COLORS$ORANGE_WARNIN","_COLORS$WHITE2","textColor","verticalPosition","Snackbar","disableWindowBlurListener","_event","reason","WarningAmberIcon","CloseOutlinedIcon","CHANGE_TIME_ROUTE_CAR","RIDE_INFORMATION","CHANGE_PASSENGER_AND_RIDE_INFO","PASSENGERS","RIDE_INFORMATION_FROM","RIDE_INFORMATION_TO","RIDE_INFORMATION_PICKUP_DATE","RIDE_INFORMATION_CAR_PICKUP_TIME","RIDE_INFORMATION_PASSENGERS","RIDE_INFORMATION_LUGGAGE","RIDE_INFORMATION_SPECIAL_REQUEST","RIDE_INFORMATION_REFERENCE","RIDE_INFORMATION_VEHICLE_CARD","RIDE_INFORMATION_FLIGHT_TRACKING","PASSENGERS_MODAL_FIRST_NAME","PASSENGERS_MODAL_LAST_NAME","PASSENGERS_MODAL_EMAIL","PASSENGERS_MODAL_PHONE","PASSENGERS_MODAL_ADD_PASSENGER","CANCEL_RIDE","CONFIRM_UPDATE","CONFIRM_CANCELLATION_RIDE","DONWLOAD_DOCUMENTATION","SEND_CONFIRMATION","EDIT_RIDE","getDateTimeWithoutOffsetFormatted","dateTime","dateTimeFormat","parsedDateTime","utcOffset","getDateTimeWithoutOffset","formattedDateTime","getScheduledArrival","durationInSeconds","time","calculatedDateInSeconds","setSeconds","getSeconds","metersToKmAndMiFormatted","meters","kilometers","miles","secondsToTimeFormatted","seconds","hours","minutes","mapRideToSummaryRide","rideValues","newEstimateDistanceAndDuration","_newEstimateDistanceA","_newEstimateDistanceA2","_rideValues$pickUpLoc","_rideValues$pickUpLoc2","_rideValues$pickUpLoc3","_rideValues$pickUpLoc4","_rideValues$dropOffLo","_rideValues$dropOffLo2","_rideValues$dropOffLo3","_rideValues$dropOffLo4","_rideValues$dropOffLo5","_rideValues$pickUpLoc5","_newEstimateDistanceA3","_newEstimateDistanceA4","prettifiedUnid","distance","distanceInMeters","pickupCoordinates","pickUpLocation","latitude","longitude","lat","lon","dropOffCoordinates","dropOffLocation","paymentMethod","booker","primaryTimeZone","dropOffPlaceId","pickUpPlaceId","scheduledArrival","scheduledArrivalLocal","pickUpTimeLocal","lastPositionUpdate","RideStatus","RideStatusFilter","RideStatusSupplierFilter","RideStatusOption","RideStatusColor","TO_CONFIRM","CONFIRMED","BOOKED","TO_CONFIRM_CHANGE","DRIVER_ON_THE_WAY","DRIVER_AT_PICKUP","PASSENGER_ON_BOARD","ACTIVE","TO_CLOSE","COMPLETED","TO_CONFIRM_CANCEL","CANCELLED","RideStatusTextColor","useRideStatusMap","rideStatusMap","Map","useRideStatusSupplierMap","getRideStatusColor","getRideStatusTextColor","getRideStatusKey","rideStatusKeyLookup","getRideStatusOptionKey","_Object$entries$find","getRideStatusOptions","statusOptions","newOptions","hasDriver","DRIVER_KNOWN","hasFlight","NO_FLIGHT_INFORMATION","hasContact","CONTACT_GREETER_INFO_KNOWN","isFlightMismatch","FLIGHT_TIMES_MISMATCH","isOvernightFlight","OVERNIGHT_FLIGHT","defaultFilters","add","defaultSupplierFilters","getCustomerRidesFilter","ridesFilter","ridesFilterParsed","isArray","resetCustomerRidesFilter","filters","filtersParsed","getSupplierRidesFilter","resetSupplierRidesFilter","usePageLeave","isBackEnabled","initialPathName","setIsUpdatePendingModalOpen","isRefreshingDisabled","routeChanged","setRouteChanged","unlisten","listen","handleBlockedNavigation","onUnload","returnValue","removeEventListener","pushState","LocationType","FlightType","StatusBadge","trackingStatus","pickupDateTimeUtc","resolvedStatus","dueIn","startUtc","prefix","startUtcMoment","utc","nowUtcMoment","durationMinutes","diff","asMinutes","roundHours","roundMinutes","getDueInTime","untrackingIcon","LocationOffIcon","downloadBookingConfirmation","unid","downloadReceipt","useRide","viewRide","getHoursString","withExpandable","WrappedComponent","setIsExpanded","toggleExpanded","renderChevrons","ExpandLess","ExpandMore","headingContainer","policyWrapper","dateComponents","timeComponents","isUtc","cancelledAt","cancellationPolicies","appliedCancellationPolicy","pickUpDate","vehicleType","departureTimeZone","isTitleDisabled","cancelledAtDateTimeFormatted","cancelledAtLocalDateTimeFormatted","utcToZonedTime","combinedDateTime","getMonth","getDate","getHours","getMinutes","pickupTimeDifference","_combinedDateTime$toU","remainingTimeString","startTimeUtcSec","valueOf","endTimeUtcSec","delta","abs","remainingDays","remainingHours","getRemainingTimeString","toUTCString","cancelledPickupTimeDelta","_combinedDateTime$toU2","startTimeSec","getTimeDelta","policy","cancelledUnderHours","chargePercentage","vehicleTypes","appliableCarTypes","containerMobile","boxOne","boxThree","isIgnoredByCars","SyncDisabledIcon","CachedIcon","getStatusMessage","getUpdateMessage","connectedTrips","connectedTripsFlag","CarsAutomatedUpdatesNotification","isVerySmallScreen","useConnectedTripsNotification","closeButton","systemAutomatedBox","boxTwo","CancelRideConfirmModal","onConfirm","selectedVehicle","isSystemAutomatedRide","_useFlags","useManagedByCars","trip","Fragment","CircleWrapper","_COLORS$BLACK","_px","_px2","sizePx","horizontalDivider","DriverInformation","rideStatus","_ref$name","_ref$phone","_ref$pickupDescriptio","pickupDescription","isOnlyPickUpDescriptionAvailable","BadgeOutlinedIcon","Divider","CopyToClipboardButton","iconMarginRight","navigator","clipboard","writeText","ContentCopyOutlinedIcon","RideContext","LOCAL","addedTravellerCount","isTravellerIncreasingDisabled","amplitudeEventProperties","NewRideContext","listSearchLocationOptions","q","secondaryText","SearchLocationComponent","_ref$error","_ref$inputValue","inputValue","setInputValue","_ref$address","address","setAddress","_ref$label","isSearchLocationEnabled","setIsSearchLocationEnabled","_useSearchLocation","isSearchEnabled","searchOptions","useSearchLocation","_useSearchLocation$se","handleOpen","Autocomplete","popupIcon","filterOptions","getOptionLabel","onOpen","renderOption","prop","_option$address","renderIcon","FlightIcon","LocationOnIcon","city","country","onInputChange","newInputValue","centerContainer","timeSeparator","initialRideErrors","travellers","luggages","customFields","initialRide","pickUpDateLocal","dropOffDate","dropOffDateLocal","flightNumber","specialRequest","customReference","flightDetails","RideInformation","_rideValues$flightDet3","_rideValues$flightDet4","_rideValues$flightDet7","_rideValues$flightDet8","_rideValues$flightDet9","_rideValues$flightDet10","_rideValues$flightDet11","_rideValues$flightDet12","_rideValues$customFie2","setRideValues","setErrors","handleFlightNumberFinishing","isLoadingFlight","isErrorFlight","initialRideValues","isReferenceVisible","setIsReferenceVisible","inputValueDropOff","setInputValueDropOff","openTime","setOpenTime","imageError","setImageError","isFlightTracked","number","_useContext","updatedRideValues","handleChangeValue","fieldKey","newValues","_rideValues$customFie","updatedCustomFields","customField","newErrors","flightDepartureDateTime","_rideValues$flightDet","_rideValues$flightDet2","datetimeZulu","datetimeLocal","flightArrivalDateTime","_rideValues$flightDet5","_rideValues$flightDet6","airlineAbbreviation","handleImageError","flightIcon","AirplanemodeInactiveOutlinedIcon","rowGap","onBlur","LuggageOutlinedIcon","onKeyDown","airlineName","FlightTakeoffIcon","iata","dataTextBold","FlightLandIcon","multiline","customFieldError","isRequired","VisibilityOffIcon","VisibilityIcon","mainWrapperWebForm","_process$env$REACT_AP","mainWrapperCustomForm","wrapper","borderTop","accordionDetails","firstAccordion","RideReview","_process$env$REACT_AP2","disableEditing","displayTitle","isCompactDesign","feedback","_feedback$topics$find","_feedback$topics$find2","_feedback$topics$find3","_feedback$topics$find4","_feedback$comment","feedbackRates","MopinionForm","formKey","vehicleImage","RideVehicleInformationCard","vehicleClass","AirlineSeatReclineNormalOutlinedIcon","WorkOutlineOutlinedIcon","updateRideInformation","cancelRide","updateTravellerInformation","passengers","updateFlightNumber","updateRideVehicle","carId","sendConfirmationEmail","emailTo","multipleSelectItem","SendBookingConfirmationModal","initialBookingConfirmationEmails","bookingConfirmationEmails","setBookingConfirmationEmails","extraEmails","setExtraEmails","extraEmailsErrors","setExtraEmailsErrors","initialFormErrors","traveller","reduce","sendConfirmationEmailMutation","updatedValues","isIncluded","prevFormErrors","_step3","updatedFormErrors","_iterator3","_createForOfIteratorHelper","s","n","err","e","f","_step","validatesExtraEmails","_iterator","_step2","_iterator2","_formErrors$traveller","AddTravellerModal","uuidv4","isLead","RemoveTravellerConfirmModal","TravellerAction","addTravellerButton","initialTravellerId","initialTraveller","initialTravellerErrors","phoneError","TravellerInformation","setIsTravellerIncreasingDisabled","isAddModalOpen","setIsAddModalOpen","isEditModalOpen","setIsEditModalOpen","isRemoveModalOpen","setIsRemoveModalOpen","selectedTraveller","handleEdit","handleRemove","handleSetLead","EDIT","REMOVE","Radio","PersonOffOutlinedIcon","useTravellerInformationColumns","AddOutlinedIcon","newTraveller","oldValues","updatedErrors","updatedTraveller","UpdatePendingConfirmModal","changesList","contact","UpdateRideConfirmModal","changes","changedItems","items","changedItemElements","isChanged","CUSTOM_FIELD_KEY","elements","hasChanges","imageContainer","cardContainer","sendButton","NoVehicleAvailable","CarCrashOutlinedIcon","cardSelected","cardHidden","VehicleInformationCard","_ref$vehicleClass","_ref$vehicleType","_ref$travellers","_ref$luggages","_ref$price","price","_ref$priceCurrency","priceCurrency","onCardClick","isVehicleSelected","VehicleInformationCards","_selectedVehicle$pric","setSelectedVehicle","_ref$vehicleList","vehicleList","_ref$isError","setIsError","setIsUpdateNotificationOpen","showAvailabilityOptions","vehicle","_vehicle$price","FormHelperText","DirectionsCarFilledOutlinedIcon","useAvailabilites","errorCode","setErrorCode","getAvailabilites","_error$response$statu","_data$availabilities$","_data$availabilities","availabilities","vehicleSeatsNumber","vehicleBagsCapacity","mapResponseToVehicle","estimationDetails","useFlightSearch","flightId","flightDate","searchFlight","_data$id$toString","_data$airlineName","_data$departure$dateT","_data$departure$dateT2","_data$departure$iata","_data$departure$name","_data$arrival$dateTim","_data$arrival$dateTim2","_data$arrival$iata","_data$arrival$name","ARRIVAL","dateTimeLocal","dateTimeZulu","RideLoadingSkeleton","cache","cachedDirectionsService","fetchDirections","route","cacheKey","place","toUrlValue","placeId","createCacheKey","cachedPromise","directionsService","google","maps","DirectionsService","origin","destination","stopovers","promise","waypoints","stopover","travelMode","TravelMode","DRIVING","DirectionsStatus","OK","originError","destinationError","bootstrapURLKeys","_config$googleAddress","libraries","Loader","apiKey","useEffectAsync","effect","effectMemo","cachedDirectionsRenderer","cachedMarker","getDirectionsRenderer","DirectionsRenderer","Pusher","Runtime","createXHR","xhr","XMLHttpRequest","refetchVehicleListTimeoutId","pusherClient","cluster","encrypted","authEndpoint","subscribeToPusher","channelId","subscribe","setMarker","Marker","lng","setPosition","GoogleMap","_placeIds$","_placeIds$2","_pickupCoordinates$la","_pickupCoordinates$lo","points","placeIds","driverPosition","_ref$zoom","zoom","subscribeChannelId","googleMap","dropoffCoordinates","pickupPlaceId","dropoffPlaceId","handleRenderRoute","directionsRenderer","directionPlaces","directions","directionPlacesProps","LatLng","setDirections","handleApiLoaded","setMap","ExploreOffOutlinedIcon","GoogleMapReact","center","yesIWantToUseGoogleMapApiInternals","mapTypeControl","onGoogleApiLoaded","RideSummaryCard","_booker$name","isDownloading","sendBookingHandler","downloadBookingHandler","downloadReceiptHandler","_useContext$summary","RouteOutlinedIcon","TimerOutlinedIcon","WhereToVoteOutlinedIcon","AccountCircleOutlinedIcon","CREDIT_CARD","ReceiptLongOutlinedIcon","useCarInformation","useRideInformation","rideErrors","setRideErrors","validateRideFields","pickupDate","InvalidPastTime","validatedCustomFields","validatedCustomFieldsErrors","validation","useTravellerInformation","travellerValues","setTravellerValues","travellerErrors","setTravellerErrors","validateTravellerFields","validatedFirstName","validatedLastName","validatedPhone","validatedEmail","tabs","utcSwitch","alpha","hoverOpacity","utcSwitchChecked","tab","updateButton","summaryReverse","ActiveElement","onPress","targetId","getAttribute","querySelector","scrollIntoView","behavior","getTabLink","driverInstructionsOnTop","Ride","_rideValues$pickUpLoc9","_rideValues$pickUpLoc10","_rideValues$dropOffLo9","_rideValues$dropOffLo10","_travellerValues$leng","_data$cancellationPol","_rideValues$pickUpLoc16","_data$driver","_data$driver2","isTypingFlightNumberFinished","setIsTypingFlightNumberFinished","isVehicleNotSelected","setIsVehicleNotSelected","isCheckingAvailabileVehicleList","setIsCheckingAvailabileVehicleList","isUpdateRideModalOpen","setIsUpdateRideModalOpen","isCancelRideModalOpen","setIsCancelRideModalOpen","isUpdatePendingModalOpen","setIsBackEnabled","isSendBookingConfirmationModalOpen","setIsSendBookingConfirmationModalOpen","activeElement","setActiveElement","useParams","_useRide","isFormDisabled","initialVehicleValues","initialTravellerValues","UTC","setIsUtc","whatIsChanged","_useRideInformation","_useTravellerInformat","_useCarInformation","downloadBookingConfirmationMutation","isDownloadingBookingConfirmation","_useMutation2","downloadReceiptMutation","isDownloadingReceipt","_useMutation3","updateRideInformationMutation","isUpdatingRideInformation","_useMutation4","updateTravellerInformationMutation","isUpdatingTravellers","_useMutation5","updateFlightNumberMutation","isUpdatingFlightNumber","_useMutation6","rideAmplitudeEventProperties","cancelRideMutation","isLoadingCancelRide","_useAvailabilites","pickup","transferPoint","pickupTimeZulu","dropOff","numberOfPassengers","numberOfBags","refetchAvailabileVehicleList","isLoadingAvailabilites","isRefetchingAvailabilites","areAvailabilitesFetched","restSelectedVehicle","obj","objId","restObj","_excluded2","checkVehicleAfterRefetchAvailabilites","searchFlightDate","_rideValues$pickUpLoc6","_rideValues$dropOffLo6","_rideValues$pickUpLoc7","_rideValues$pickUpLoc8","timeZone","rideDuration","AIRPORT","_rideValues$dropOffLo7","_rideValues$dropOffLo8","zonedTimeToUtc","_useFlightSearch","flightSearchDetails","refetchFlightDetails","_useMutation7","updateVehicleMutation","isUpdatingVehicle","createdAt","pickUp","departAt","customer","supplier","situationTag","qcStatus","_currentUser$fullName","_currentUser$email","_data$flightDetails$n","_data$flightDetails","_data$flightDetails2","_data$unid","_data$pickUp","_data$pickUp2","_data$pickUp3","_data$pickUp4","_data$dropOff","_data$dropOff2","_data$numberOfPasseng","_data$numberOfPasseng2","_data$numberOfBags$to","_data$numberOfBags","_data$specialRequest","_data$customerReferen","_data$customFields","_data$pickUp$location","_data$pickUp5","_data$pickUp5$locatio","_data$pickUp$location2","_data$pickUp6","_data$pickUp6$locatio","_data$pickUp$location3","_data$pickUp7","_data$pickUp7$locatio","_data$pickUp$location4","_data$pickUp8","_data$pickUp8$locatio","_data$pickUp$location5","_data$pickUp9","_data$pickUp9$locatio","_data$pickUp9$locatio2","_data$pickUp$location6","_data$pickUp10","_data$pickUp10$locati","_data$pickUp10$locati2","_data$pickUp$departur","_data$pickUp11","_data$dropOff$locatio","_data$dropOff3","_data$dropOff3$locati","_data$dropOff$locatio2","_data$dropOff4","_data$dropOff4$locati","_data$dropOff$locatio3","_data$dropOff5","_data$dropOff5$locati","_data$dropOff$locatio4","_data$dropOff6","_data$dropOff6$locati","_data$dropOff$locatio5","_data$dropOff7","_data$dropOff7$locati","_data$dropOff7$locati2","_data$dropOff$locatio6","_data$dropOff8","_data$dropOff8$locati","_data$dropOff8$locati2","_data$dropOff$arrival","_data$dropOff9","_currentUser$primaryT","_data$unid2","_data$vehicle$type","_data$vehicle","_data$vehicle$imageUr","_data$vehicle2","_data$vehicle$seats$t","_data$vehicle3","_data$vehicle3$seats","_data$vehicle$luggage","_data$vehicle4","_data$vehicle4$luggag","_data$price$amount","_data$price","_data$price$isoCurren","_data$price2","leadPassenger","passenger","passengerFullName","tagManagerArgs","dataLayer","passengerName","TagManager","newRideValues","departAtLocal","arriveAt","arriveAtLocal","customerReference","coordinates","arrivalTimeZone","defaultTravellers","rest","_excluded3","newVehicleValues","class","imageUrl","seats","luggage","amount","isoCurrency","updatedErrorsValues","_initialRideValues$cu","_initialRideValues$cu2","isLocationDirty","checkVisibility","querySelectorAll","SUMMARY","allTabs","headerPadding","elementRect","getBoundingClientRect","viewportHeight","innerHeight","documentElement","clientHeight","isElementPartialVisible","pageYOffset","passive","CAR","_rideValues$pickUpLoc11","_rideValues$dropOffLo11","_initialRideValues$cu3","_initialRideValues$cu4","_initialRideValues$cu5","_initialRideValues$cu6","_initialRideValues$cu7","_initialRideValues$cu8","_rideValues$pickUpLoc12","_initialRideValues$cu9","_initialRideValues$cu10","_rideValues$dropOffLo12","isRideSetted","isSamePickupDate","isSamePickupTime","_data$numberOfPasseng3","_data$numberOfBags2","_selectedVehicle$trav","_selectedVehicle$lugg","handleUpdateRideInformation","_data$numberOfPasseng4","_data$numberOfPasseng5","_data$numberOfBags$to2","_data$numberOfBags3","_data$specialRequest2","_data$customerReferen2","_data$customFields2","defaultValues","currentValues","areRideInformationValuesChanged","customFieldsPairs","fromEntries","handleUpdateTravellerInformation","defaultPassengers","_excluded4","changedTravellerValues","_excluded5","areTravellerInformationValuesChanged","_excluded6","isActiveClass","isTravellerUpdated","_initialTravellerValu","initialTravellerKeys","currentTravellerKeys","isEqual","isFormDirty","_initialRideValues$cu12","_rideValues$pickUpLoc13","_initialRideValues$cu13","_rideValues$dropOffLo13","_initialVehicleValues","isUpdatedDisabled","_initialRideValues$cu16","_rideValues$pickUpLoc15","_initialRideValues$cu17","_rideValues$dropOffLo15","_initialVehicleValues3","_initialRideValues$cu14","_rideValues$pickUpLoc14","_initialRideValues$cu15","_rideValues$dropOffLo14","_initialVehicleValues2","changedCustomFields","currentCustomField","changedCustomField","checkWhatIsChanging","isUtcSwitchDisabled","handleSelectNewCar","vehicleUpdateNotification","Trans","i18nKey","components","selectNewCar","variation","scrollButtons","TRAVELLER","POLICIES","labelPlacement","_initialRideValues$cu11","CancellationPoliciesCard","_selectedVehicle$carI","_selectedVehicle$id","_data$flightDetails$n2","_data$flightDetails3","_data$pickUp$departAt","_data$pickUp12","defaultFlightNumber","defaultPickUpDate","departureDate","handleUpdateFlightNumber","isManagedByApi","CARS","ReviewRideCard","closeModal","isInModal","RideReviewModal","headerText","subheaderText","reviewButton","editButtonIcon","deleteButtonIcon","RideHeader","isReviewModalOpen","setIsReviewModalOpen","Mail","Download","ReceiptLongOutlined","StarOutline","EditOutlined","DeleteOutlineOutlined","bigCard","smallCard","RideViewLoadingSkeleton","isLargeScreen","rideResponse","ReferenceCard","reference","setReference","confirmRide","closeRide","addRideRemarks","assignVehicleAndDriver","remarksValuesToConfirmCloseAddRemarksRideRequest","remarksValues","referenceNumber","remarks","extraWaitingTime","minutesWaited","parseFloat","waitingTimeCosts","minutesCosts","parkingTollCosts","parkingCosts","otherCosts","useConfirmCloseAddRemarksRide","onConfirmRide","_yield$confirmRide","onCloseRide","_yield$closeRide","onAddRideRemarks","_yield$addRideRemarks","initialRemarks","buttonAddRemarks","RemarksCard","setRemarksValues","isAdditionalButtonHidden","isAdditionalCostsTitleHidden","isAdditionalCosts","setIsAdditionalCosts","sm","minRows","ReferencesAndRemarksModal","onFinished","supplierReference","_useConfirmCloseAddRe","colorOptions","getColorOption","colorId","el","useVehicles","getVehicles","_response$data","getBrands","_response$data2","getModels","brandId","_response$data3","brand_id","createVehicle","updateVehicle","archiveVehicle","restoreVehicle","findVehicle","_response$data4","_x12","useVehicle","vehicleId","uniqueId","getVehicle","_ref9","_callee9","_response$data5","_context9","_x13","useDriverVehicles","getDriverVehicles","_ref10","_callee10","_response$data6","_context10","_x14","getRideVehicle","_ref11","_callee11","_response$data7","_response$data8","_response$data8$data","_context11","_x15","circle","ColorCircle","paddingBox","textBold","assignDriverToRide","unassignDriverFromRide","AddVehicleModal","_vehicle$pictures$map","_vehicle$pictures","_values$brand","_values$brand6","_vehicle$pictures2","_vehicle$pictures2$so","searchBrandTerm","setBrandTerm","searchModelTerm","setModelTerm","isDone","setIsDone","pictures","newPictures","setNewPictures","isModelOpen","setIsModelOpen","licensePlate","brand","model","identifier","_useBrands","brandOptions","isLoadingBrands","_useFindVehicleByLice","useFindVehicleByLicensePlate","isVehicleFounded","_useModels","useModels","modelOptions","isLoadingModels","_error$response$data$","_error$response$data$2","code","LicensePlateAlreadyTaken","createVehicleMutation","isLoadingCreate","_error$response2$data2","_error$response2$data3","editVehicleMutation","isLoadingEdit","OnlyLettersAndNumbersAllowed","allSettled","failureUploads","_values$color","_values$brand2","_values$brand3","_values$model","_values$model2","newArrayOfPictures","urlArr","objArr","urls","Set","has","getUnionPicturesToUploadByUrl","isDefault","modelId","_values$color2","_values$brand4","_values$brand5","_values$model3","_values$model4","MaxLengthExceeded","isFullScreen","Crop169Icon","maxLength","columnGap","renderInput","placeholder","noOptionsText","encodeURIComponent","disableClearable","PinIcon","item1","item2","ADD_DRIVER_ID","DEAFULT_ADD_DRIVER_BUTTON_OPTION","phoneOs","NO_RESULTS_DRIVER_OPTION","initialDriverInformationError","nameError","phoneNumberError","useSupplierDriverInformation","initialDriverInformation","setValue","setError","handleAddDriverInformation","errorMessage","_addDriverError$respo","_addDriverError$respo2","handleChangeDriver","_yield$assignDriverTo","handleUnassignDriver","_yield$unassignDriver","driverInformations","driverInformation","setDriverInformation","driverInformationError","setDriverInformationError","addDriverInformation","validateDriverInformationFields","_value$name","refetchDrivers","driverVehicleModal","addNewContainer","addNew","driverOptionContainer","entityInfo","entityImage","starIcon","smallPhoto","vehicleOption","notification","infoIcon","DriverVehicleModal","_selectedVehicle$pict","_selectedVehicle$pict2","_selectedVehicle$pict3","_selectedVehicle$bran","_selectedVehicle$bran2","_selectedVehicle$mode","_selectedVehicle$mode2","initialDriver","initialVehicle","isRidesOverview","driverVehicleId","rideDataId","driverSearchPhrase","setDriverSearchPhrase","setSelectedDriver","driverError","setDriverError","vehicleSearchPhrase","setVehicleSearchPhrase","addDriverModalOpen","setAddDriverModalOpen","addVehicleModalOpen","setAddVehicleModalOpen","initialVehicleStateSet","setInitialVehicleStateSet","_useVehicles","vehicles","refetchVehicles","_useDriverVehicles$da","driverVehicles","vehicleData","driverOptions","vehicleOptions","isArchived","vcl","driverVehicleOptions","handleAddVehicle","_refetchedVehicles$da","refetchedVehicles","veh","InfoOutlined","getOptionKey","isOptionEqualToValue","_option$feedbacks","_option$feedbacks2","_option$feedbacks$cou","_option$feedbacks3","_option$feedbacks4","Add","Star","Badge","isColumn","topMargin","fontTextSize","dataLabelBold","Phone","componentsProps","modifiers","_option$brand","_option$model","_option$brand2","_option$model2","picture","_createElement","pic","DirectionsCar","Crop169","iconRightMargin","StarsOutlined","ColorLens","Bookmark","stepperDriverVehicleModal","modalButtonsContainer","modalContent","entityContent","stepper","StepperDriverVehicleModal","activeStep","setActiveStep","steps","handleSkip","_apiError$response","_apiError$response$da","apiError","_apiError$response2","_apiError$response2$d","isAdditionalDisabled","buttonsClassName","Stepper","Step","StepLabel","_option$pictures","_option$pictures2","renderVehicleStep","driverInformationContainer","manageButton","informationContainer","sectionSeparator","_vehicle$pictures$fin","_vehicle$pictures$","_vehicle$pictures3","_data$driver8","isCustomerPage","isRemarksModalOpen","setIsRemarksModalOpen","isDriverVehicleModalOpen","setIsDriverVehicleModalOpen","isVehicleViewerOpen","setVehicleViewerOpen","isDriverViewerOpen","setDriverViewerOpen","_useRideVehicle","useRideVehicle","refetchVehicle","vehiclePreviewImageUrl","useVehicleCustomerPage","useDriverPictureCustomer","newFrontendExperience","isShowingVehicleFlag","isDriverShown","isFlowC","renderVehicleInfo","_vehicle$brand","_vehicle$brand2","_vehicle$model","_vehicle$model2","renderDriverInfo","_data$driver3","_data$driver4","_data$driver$feedback","_data$driver5","_data$driver5$feedbac","_data$driver$feedback2","_data$driver6","_data$driver6$feedbac","_data$driver7","renderReferencesAndRemarks","ReceiptLong","getFlightInfo","FlightStatus","FlightStatusColor","NOT_TRACKED","SCHEDULED","DEPARTING_ON_TIME","DEPARTING_EARLY","DEPARTING_LATE","ON_TIME","EXPECTED_EARLY","EXPECTED_LATE","DIVERTED","LOST_TRACKING","ARRIVED","ARRIVED_LATE","ARRIVED_EARLY","FlightStatusBorderColor","FlightStatusBackgroundColor","FlightStatusTooltip","getFlightStatusBorderColor","getFlightStatusBackgroundColor","getFlightStatusKeyName","FlightStatusDateTime","flight","flightTimes","showUtcTime","delayed","scheduledFlightTimeStyle","flightStatus","getTimeColor","delayedUTC","scheduledUTC","scheduled","dateTimeLabel","dateTimeLabelMobile","arrivalInfoMobile","airportIata","flightInfoText","AirportDetailsCard","_airportData$times","_airportData$airportI","_airportData$airportC","airportType","airportData","FlightTakeoff","FlightLand","dateLabel","times","airportName","airportCity","terminal","gate","iconContainer","FlightNotTrackedComponent","statusButton","textButton","FlightStatusButton","titleHeader","infoContainer","infoContainerMobile","spinner","bottomText","googleLink","planeIcon","loaderCardContent","_useFlight","useFlight","notTracked","AirplanemodeActive","AirplanemodeInactive","AirportDetails","updatedAtUTC","fromNow","Language","meetingInstructionsContainer","passengerInfoContainer","showClientInstructions","Hail","referencesContainer","rideInfoContainer","pickupContent","dropoffContent","timeDateContainer","modal","TrafficJamIconWrapper","TrafficJamIcon","_data$booker","_data$dropOff2$locati","showUtcSwitch","isSupplierPage","setShowUtcTime","passengerNames","pickUpDateAndTime","getCopyToClipboardText","FormGroup","BookmarkAdd","Room","CalendarToday","Person","Luggage","Help","_data$price2$amount","_data$vehicle5","isSelectedHeaderVisible","isSelected","isPassengerOverMax","cardBorderStyle","AirlineSeatReclineExtra","Work","Check","renderDesktopView","_data$passengers","_data$cancellationPol2","currentOrder","renderComponent","_data$pickUp2$locatio","_data$feedbacks","googleMapContainer","justifyItems","SelectedVehicleCard","MeetingInstructionsCard","DriverReferencesCard","RideInformationCard","FlightInformationCard","PassengerInformationCard","ReferencesCard","renderMobileView","_data$feedbacks2","_data$passengers2","_data$cancellationPol3","_data$cancellationPol4","googleMapContainerMobile","RideView","informationSummaryStyles","subtitleWithIcon","vehicleImageMobile","labeledDataLabel","accordionSummary","pickupDropoffDateTime","RideSummaryAccordions","initialExpandedAccordions","RideInformationSummary","VehicleInformationSummary","PassengerInformationSummary","RideSummaryCardContext","expanded","setExpanded","SummaryAccordion","summaryTitle","detailsContent","_ref$getCopyToClipboa","hasCopyButton","getOtherPassengers","clientInstructions","_ref$displayAsAcccord","displayAsAcccordion","getLeadPassenger","_leadPassenger$phone","EmojiPeopleOutlinedIcon","rightMargin","PhoneIcon","TextSnippetOutlinedIcon","NO_INFO","DELAYED","LANDED_ON_TIME","AT_GATE_ON_TIME","DEPARTED_ON_TIME","DEPARTED_LATE","AT_GATE_LATE","LANDED_LATE","COMPLETED_ON_TIME","COMPLETED_LATE","FlightStatusTextColor","getFlightStatusTextColor","getFlightStatusColor","getFlightStatusTooltip","FlightStatusBadge","showTooltip","_flightDetails$arriva2","_flightDetails$depart2","_dropOff$location5","_dropOff$location6","_pickUp$location5","_pickUp$location6","isOnlyPickupAndDropoff","isAlwaysMobile","hidePickUpDateAndTime","_ref$passengers","_flightDetails$arriva","scheduledTime","DEPARTURE","_flightDetails$depart","arrivalTime","dropOffDateAndTime","flightTypeIcon","FlightTakeoffOutlinedIcon","FlightLandOutlinedIcon","scheduledLabel","getPassengersNamesList","_pickUp$location","_pickUp$location2","_pickUp$location3","_pickUp$location4","_dropOff$location","_dropOff$location2","_dropOff$location3","_dropOff$location4","RoomOutlinedIcon","QuestionMarkOutlinedIcon","leftMargin","closeRideModal","CloseRideModal","_ride$durationInSecon","_ride$numberOfPasseng","_ride$numberOfBags$to","notesToSupplier","AdditionalCostsCard","getRidePoints","pickupLatitude","pickupLongitude","dropOffLatitude","dropOffLongitude","RideSummary","vehicleModel","meetingInstructions","vehicleImageUrl","vehicleClassAndType","LocalTaxiOutlinedIcon","HandshakeOutlinedIcon","confirmRideModal","ConfirmRideModal","_ride$pickUp$location","_ride$dropOff$locatio","driverChangeRequest","isDriverUnassign","_useSupplierDriverInf","handleConfirm","CellWrapper","mobileFieldDisabled","pointerEvents","formDriverField","noResults","AddDriverModalRidesOverview","isDriverSelected","setIsDriverSelected","isAdded","setIsAdded","isNewDriverAdded","setIsNewDriverAdded","isSubmited","setIsSubmited","filterOptionsLength","setFilterOptionsLength","_driverInformation$na","handleAddNewDriver","_driverInformation$id","finally","driverInformationOptions","activeDrivers","driverInformationItem","unshift","_newValue$phoneNumber","ChangeDriverModalRidesOverview","RemoveDriverConfirmModal","DriverInformationCard","_driver$name","_driver$feedbacks$ave","_driver$feedbacks","_driver$feedbacks$cou","_driver$feedbacks2","_driver$phoneNumber","onDriverManageFinished","isTitileDisabled","isChangeDriverModalOpen","setIsChangeDriverModalOpen","isRemoveDriverConfirmModalOpen","setIsRemoveDriverConfirmModalOpen","isSavingRemove","setIsSavingRemove","driverButtonOptionsMap","mainButton","driverButtonOptions","onConfirmRemoveDriver","RemarksModal","setSupplierReference","handleAddRemarks","RideMapCard","_rideResponse$dropOff7","_rideResponse$dropOff8","_rideResponse$dropOff9","_rideResponse$dropOff10","_rideResponse$dropOff11","_rideResponse$dropOff12","_rideResponse$pickUp5","_rideResponse$pickUp6","_rideResponse$pickUp7","_rideResponse$pickUp8","_rideResponse$pickUp9","_rideResponse$pickUp10","_rideResponse$pickUp$3","_rideResponse$pickUp11","_rideResponse$pickUp12","_rideResponse$dropOff13","_rideResponse$dropOff14","_rideResponse$dropOff15","mapKey","marginBotton","_rideResponse$pickUp","_rideResponse$pickUp$","_rideResponse$pickUp$2","_rideResponse$pickUp2","_rideResponse$pickUp3","_rideResponse$pickUp4","_rideResponse$dropOff","_rideResponse$dropOff2","_rideResponse$dropOff3","_rideResponse$dropOff4","_rideResponse$dropOff5","_rideResponse$dropOff6","downloadRideOrder","gridItemMobile","gridItem","_rideResponse$price3","_rideResponse$price4","_rideResponse$duratio","_rideResponse$numberO","_rideResponse$numberO2","downloadRideOrderMutation","_rideResponse$price","_rideResponse$price2","brandAndModel","_rideResponse$unid","rideStyles","headerSecondaryTitle","referenceAndRemarksButton","isConfirmRideModalOpen","setIsConfirmRideModalOpen","isCloseRideModalOpen","setIsCloseRideModalOpen","setMapKey","isFetchingRide","isConfirmRideButtonVisible","isCloseRideButtonVisible","isReferenceAndRemarksButtonEnabled","handleConfirmCloseFinished","handleDriverManageFinished","AdditionalCostsForm","additionalCostsValues","onChangeField","closeRideStage","setCloseRideStage","luggageSeatsContainer","vehicleInfo","_data$vehicle6","ConfirmRideModalNew","showPrice","_data$pickUp3$locatio","_data$pickUp4$locatio","priceOnMap","_data$price3","_data$price4","RidePageSwitch","useNewCustomerRidePage","useNewSupplierPage","CustomerRideNew","CustomerRide","SupplierRideView","SupplierRide","mapRideToContext","LeavePageModal","halfFormField","PassengerInformation","handleAddNewPassenger","handleRemovePassenger","updatePassengers","passengerCount","errorValues","isOnlyOnePassenger","AddDeleteButtons","onAddClick","onDeleteClick","_passenger$id","isDeleteDisabled","PassengerList","_passengers$find","contentKey","setContentKey","isMainPassengerRequiredError","setIsMainPassengerRequiredError","initialPassengerId","updatedErrorValues","updatedPassenger","updatedError","RadioGroup","passengerId","prevPassengers","noFlightTracking","flightTracking","ChangeFlightNumber","_flightDetails$depart3","_flightDetails$depart4","_flightDetails$arriva3","_flightDetails$arriva4","_flightDetails$depart5","_flightDetails$depart6","_flightDetails$arriva5","_flightDetails$arriva6","setFlightNumber","CheckIcon","DangerousOutlinedIcon","initialReferenceErrors","initialReference","ChangeReferences","_referenceValues$cust2","referenceValues","setReferenceValues","initialReferenceValues","_referenceValues$cust","renderField","commonProps","FormControl","InputLabel","labelId","utcBlock","ChangeRideInformation","VehicleOptions","maxPassengers","getUniqueVehicleId","RideMap","useNewRideInformation","setFlightDetails","initialPassenger","initialPassengerErrors","validField","usePassengerInformation","passengerValues","setPassengerValues","passengerErrors","setPassengerErrors","validatePassengerFields","useReferences","referencesValues","setReferencesValues","referencesErrors","setReferencesErrors","validateReferencesFields","downloadOptions","UpdateRide","initialFlight","isLeavingBack","setIsLeavingBack","_useNewRideInformatio","_useReferences","_usePassengerInformat","goToRides","vehicleItemId","isPickupDateDirty","_data$flightDetails$n4","_data$flightDetails6","_data$flightDetails7","prevDetails","_data$flightDetails4","_data$flightDetails$n3","_data$flightDetails5","newReferencesValues","_initialReferenceValu","_initialReferenceValu2","fieldsValid","_data$flightDetails$n5","_data$flightDetails8","mapRidesToRows","_row$pickUp","_row$pickUp2","_row$flightDetails","_row$flightDetails2","pickUpDepartAt","pickUpDepartAtLocal","contactPerson","isFlightMismatchValue","isOvernightFlightValue","depDateTimeLocal","arrDateTimeLocal","depDate","arrDate","isSame","isPaymentMethodCreditCard","originalPickupUtc","pickupLocal","from","newStatusOptions","useRides","_variables$query","statusFilters","listRides","_variables$query2","filterEmptyStrings","filteredParams","arr","useRidesStyles","addRideButton","footer","filterButtonsWrapper","multipleSelectButtonsWrapper","mulipleSelectButtonsOld","resetFilters","resultsFilterButtonWrapper","noResultsContentWrapper","totalCount","totalCountLabel","numberedIcon","numberedIconZero","buttonStyle","CustomFooter","handleExport","_ref$totalCount","isLoadingExport","customClasses","GridFooterContainer","labelClassName","RidesLoadingSkeleton","flexBasis","handleRideMiddleMouseClick","composedPath","HTMLElement","CellText","tooltipContent","tooltipText","optionIcon","StatusOptionBadge","isRideStatusOptionVisible","ContactMail","AirplanemodeInactiveOutlined","Nightlight","PersonAdd","useRidesColumns","handleSendConfirmation","handleEditRide","_row$row","RideAction","DOWNLOAD_CONFIRMATION","DOWNLOAD_RECEIPT","_params$row$customerR","_params$row$customFie","Rides","_previousFilterState$","_selectedRow$rideId","previousFilterState","selectedRow","setSelectedRow","statusFilterKey","setStatusFilterKey","isInitialLoad","setIsInitialLoad","statusIds","setStatusIds","selectedDateRange","setSelectedDateRange","_useRides","_useRides$data","rideResultIds","tripUnids","_selectedRow$passenge","dataRows","handleResetFilters","filterStatusIds","resetFiltersButton","TertiaryButton","TuneOutlinedIcon","MultipleSelect","classNames","buttonsWrapper","onSetIds","ids","defaultSelectedValue","displayAsButtons","hideFooterRowCount","additionalContent","shortcutsItems","getValue","today","prevWeek","prevMonth","prevYear","startOfNextMonth","clearFiltersButton","RidesMobileFiltersModal","_initialFiltersState$","statusFilterMap","numberedValues","isSmallScreen","initialFiltersState","selectedFilters","setSelectedFilters","itemKey","prevFilters","MobileDateRangePicker","shortcuts","CalendarTodayOutlined","CustomRangeShortcuts","_props$changeImportan","changeImportance","resolvedItems","gridRow","gridColumn","dense","th","px","pt","pl","pr","ListItem","filtersButton","isFiltersModalOpen","setIsFiltersModalOpen","filtersActive","range","FilterList","dr","clearable","isLandscape","orientation","exportMainButton","ExportButton","ResetFilterButton","IconedLabel","_ref$suffix","suffix","alignToTop","colorOfIconAndLabel","excludeAnotation","RideChangeStatusKey","rideChangeStatusLabel","CONFIRM_RIDE","CLOSE_RIDE","REFERENCES_AND_REMARKS","ADD_DRIVER","UNASSIGN_DRIVER","CHANGE_DRIVER","ADD_DRIVER_AND_VEHICLE","CHANGE_DRIVER_AND_VEHICLE","UNASSIGN_DRIVER_AND_VEHICLE","rideChangeStatusTooltip","ChangeStatusButton","handleChangeStatusButtonClick","handleDownloadRideOrder","handleReferenceAndRemarks","handleRemoveDriver","handleDriverAndVehicle","optionsMap","isDriverAssigned","getRideChangeStatusOptionsMap","changeStatusOptions","_row$driver","_row$driver2","RequestQuoteOutlinedIcon","FileDownloadOutlinedIcon","mainButtonTooltip","FlightInfo","airlineAbrevation","RideInformationCell","HailOutlinedIcon","passengersCount","MobileList","handleRowClick","_ref$isFlowC","previousPickupDate","groupingDate","rideItem","_rideItem$driver$name","_rideItem$driver","hasVehicle","hasMissingAssignments","LocationOnOutlinedIcon","DirectionsCarOutlinedIcon","memo","RidesContext","SearchInput","getAmplitudeEventProperies","updatedRide","updatedStatus","statusFilterKeys","isUpdatedRideStatusMatching","pickupDateTime","pickupDateSorting","notesForTheCustomer","statusBadgeKey","_params$row$driver$na","_params$row$driver","resetMobile","fullScreenLoader","missingDriverVehicleRow","searchTimeoutId","_rideDataRef$current$","_rideDataRef$current$2","_rideDataRef$current$3","_rideDataRef$current","_rideDataRef$current2","_rideDataRef$current3","_rideDataRef$current4","_rideDataRef$current5","_rideDataRef$current6","_rideDataRef$current7","_rideDataRef$current8","_rideDataRef$current9","_rideDataRef$current10","_rideDataRef$current11","_rideDataRef$current12","_rideDataRef$current13","_rideDataRef$current14","ridesClasses","setSearchTerm","rideStatusSupplierMap","debouncedSearchPhrase","setDebouncedSearchPhrase","updatedRideData","setUpdatedRideData","isDriverAndVehicleModalOpen","setIsDriverAndVehicleModalOpen","isReferencesModalOpen","setIsReferencesModalOpen","driverToRemove","setDriverToRemove","rideDataRef","singleRide","handleConfirmCloseAddRemarksFinished","_useRidesColumns","desktopColumns","filteredRides","calculateOverflowY","handleSearchInputOnChange","getRowClassName","now","hoursDiff","RidesPageSwitch","useNewSupplierOverview","useNewCustomerOverview","CustomerRidesNew","CustomerRides","SupplierRidesNew","SupplierRides","LANGUAGES","PREFERRED_USER_LANGUAGE","settingsStyles","labelDescription","Settings","language","setLanguage","updateLocale","handleLanguage","useUsersColumns","handleDeactivate","handleReactivate","handleRevoke","EDIT_USER","DEACTIVATE_USER","REACTIVATE_USER","REVOKE_USER","PersonOutlinedIcon","manageRidesBookedByOthers","lastSeen","actionItems","PersonRemoveOutlined","deactivateButton","useUsersColumnsMobile","ActiveTab","Invited","Active","Deactivated","getDropDown","ActiveUsersDataGrid","onChangeStatus","useRouteMatch","TabPanel","selectedValue","Route","exact","ActiveTabUrl","getTableWrapperHeight","getTableHeight","userModalStyles","AddUserModal","onInviteUser","roleIds","setRoleIds","MANAGE_USERS","MANAGE_RIDES_BOOKED_BY_OTHERS","roleMapValues","roleMapValuesSupplier","defaultRoleValues","_i","_Object$entries","_Object$entries$_i","handleInviteUserError","EmailAlreadyTaken","permissionValues","acc","ChangeUserStatusModal","isActive","onUpdateUserStatus","handleUpdateStatus","statusNamespace","DeactivatedUsersDataGrid","EditUserModal","onEditUser","roleMap","shouldSubmitPassword","handleEditUserError","InvitedUsersDataGrid","onRevoke","RevokeUserModal","onRevokeUser","UsersLoadingSkeleton","MOBILE_TABLE_HEIGHT","Users","invitedCount","setInvitedCount","isDeactivateModalOpen","setIsDeactivateModalOpen","isRevokeUserModalOpen","setIsRevokeUserModalOpen","isEditUserProfileModal","setIsEditUserProfileModal","isLoadingActive","setIsLoadingActive","isLoadingInvited","setIsLoadingInvited","isLoadingDeactivated","setIsLoadingDeactivated","activeCount","setActiveCount","deactivatedCount","setDeactivatedCount","selectedUser","isUserStatusActivate","_useUsers","activeUsers","isFetchingActiveUsers","refetchActiveUsers","_useInvitedUsers","useInvitedUsers","invitedUsers","isFetchingInvitedUsers","refetchInvitedUsers","_useUsers2","deactivatedUsers","isFetchingDeativatedUsers","refetchDeactivatedUsers","handleChangeStatus","NumberedTabs","NumberedTab","ConfirmToggleVehicleActivationModal","mili","VehicleCard","onDuplicateClick","DUPLICATE","DEACTIVATE","ACTIVATE","EditIcon","ContentCopyIcon","NoCrashIcon","CarRepairIcon","VehiclesLoadingSkeleton","redMenuItem","headerTypo","Vehicles","_vehicleForEdit$isArc","dataGridClasses","isAddVehicleModalOpen","setIsAddVehicleModalOpen","isEditVehicleModalOpen","setIsEditVehicleModalOpen","selectedId","_useVehicles$data","vehicleForEdit","_onSuccess","onSettled","restoreVehicleMutation","isLoadingRestore","_onSuccess2","archiveVehicleMutation","isLoadingArchive","_pictures$find","_pictures","_pictures$","_params$row$brand$nam","_params$row$brand","_params$row$model$nam","_params$row$model","CreateIcon","useVehiclesColumns","handleCloseAddEditModal","textUnderlineOffset","Authenticate","authorizing","setAuthorizing","authorized","setAuthorized","authorizationCode","tokenIsInvalid","setTokenIsInvalid","errorResponse","json","property","object","fetchError","Redirect","PrivateRoute","render","mainContainerRide","usePrivateRoutes","SEE_INVOICES","Routes","findDayjsLocale","supportedLocales","LicenseInfo","setLicenseKey","gtmId","_process$env$GOOGLE_T","GOOGLE_TAG_MANAGER_ID","App","queryClient","QueryClient","setLocale","localeInitialized","setLocaleInitialized","setNotification","ieNavigator","userLanguage","browserLanguage","navigatorLanguages","languages","navigatorLanguage","uniqueUserLanguages","userLanguages","portalLocale","preferredLocales","preferredLocale","supportedLocale","findSupportedLocale","changeLanguage","initialize","notificationElement","_config$amplitudeApi","initAmplitude","BrowserRouter","QueryClientProvider","client","ComponentsProvider","SENTRY_IGNORE_ERRORS","dsn","ignoreErrors","beforeSend","environment","release","logLevel","fastUrl","chmln","_chmln$Snippet","Snippet","debug","extend","timezone","advancedFormat","relativeTime","initialLdContext","LDProvider","asyncWithLDProvider","clientSideID","ThemeProvider"],"mappings":"+i/EAQeA,EALG,CACd,QAAS,CAAEC,Y,SACX,QAAS,CAAEA,Y,UCAfC,IAAKC,IAAIC,KAAkBC,KAAK,CAC5BL,YACAM,aAAa,EACbC,YAAa,QACbC,kBAAiB,SAACC,EAAMC,EAAKC,GACzBC,QAAQC,IAAI,gBAADC,OAAiBH,EAAG,mBAAAG,OAAkBL,EAAKM,KAAK,OAC/D,EAGAC,cAAe,CAAEC,aAAa,GAC9BC,MAAO,CAAEC,aAAa,KAGXjB,QAAI,E,6FClBdkB,EAAW,SAAXA,GAAW,OAAXA,IAAW,6BAAXA,IAAW,eAAXA,IAAW,2BAAXA,CAAW,EAAXA,GAAW,IAMDA,ICWAC,EAfa,WACxB,IAAMC,EAAUC,aAEhB,OAAQD,GACJ,IAAK,cACD,OAAOF,EAAYI,YACvB,IAAK,OACD,OAAOJ,EAAYK,KACvB,IAAK,aACD,OAAOL,EAAYM,WACvB,QACI,MAAM,IAAIC,MAAM,wBAADb,OAAyBQ,EAAO,MAE3D,CAb4B,GCDb,GACXM,OAAQ,wBACRC,UAAW,sCACXC,UAAW,gCACXC,UAAW,gCACXC,qBAAsB,mCACtBC,eAAgB,0CAChBC,aAAc,kCACdC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AAUvrI,EAAAI,KAKhBo7B,IAASqsG,OACL5wI,eAACy0I,IAAa,CAAC/+H,MAAOA,GAAMvV,SACxBH,eAAC0rD,GAAa,CAAC/9C,QAAQ,QAAOxN,SAC1BH,eAACy5B,IAAoB,CAACC,YAAaC,IAAax5B,SAC5CH,eAACs0I,EAAU,CAAAn0I,SACPH,eAACwxI,GAAG,YAKpB39G,SAASC,eAAe,SAC1B,wBAAA/qB,EAAAM,OAAA,GAAAT,EAAA,IAxBNH,E","file":"static/js/main.f1f10c9b.chunk.js","sourcesContent":["import translationEN from './locales/en-GB.json';\nimport translationES from './locales/es-ES.json';\n\nconst resources = {\n 'en-GB': { translation: translationEN },\n 'es-ES': { translation: translationES },\n};\n\nexport default resources;\n","import i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\nimport resources from './public/resources';\n\n// eslint-disable-next-line @typescript-eslint/no-floating-promises\ni18n.use(initReactI18next).init({\n resources,\n saveMissing: true,\n fallbackLng: 'en-GB',\n missingKeyHandler(lngs, _ns, key) {\n console.log(`Missing key \"${key}\" for locales: ${lngs.join(', ')}`);\n },\n\n // React renderer already escapes text nodes, this prevents double escaping\n interpolation: { escapeValue: false },\n react: { useSuspense: true },\n});\n\nexport default i18n;\n","enum Environment {\n Development,\n Test,\n Production,\n}\n\nexport default Environment;\n","import Environment from './Environment';\n\nconst currentEnvironment = ((): Environment => {\n const nodeEnv = process.env.NODE_ENV as string;\n\n switch (nodeEnv) {\n case 'development':\n return Environment.Development;\n case 'test':\n return Environment.Test;\n case 'production':\n return Environment.Production;\n default:\n throw new Error(`Unknown environment \"${nodeEnv}\"`);\n }\n})();\n\nexport default currentEnvironment;\n","/* eslint-disable import/no-anonymous-default-export */\nexport default {\n appUrl: 'http://localhost:3000',\n logOutUrl: 'http://localhost/portal/auth/logout',\n iframeUrl: 'http://localhost/portal/views',\n signInUrl: 'http://localhost/portal/login',\n forgottenPasswordUrl: 'http://localhost/password/forget',\n bookingToolUrl: 'https://{subDomain}.book-test.get-e.com',\n setCookieUrl: 'http://localhost:3002/authorize',\n refreshCookieUrl: 'http://localhost:3003/refresh',\n deleteCookieUrl: 'http://localhost:3004/log-out',\n googleAddressKey: 'AIzaSyBwTMpGcV7qZPjCvF8I6-k9oMGjowxbeJ0',\n apiUrl: 'http://localhost:80/',\n useNewAuthentication: true,\n amplitudeApi: 'e8a7983067bd030e339fbe82738422e3',\n\n // For testing via ngrok + remote desktop\n\n /*\n * AppUrl: 'http://portal.get-e.ngrok.io',\n * logOutUrl: 'http://core.get-e.ngrok.io/portal/auth/logout',\n * iframeUrl: 'http://core.get-e.ngrok.io/portal/views',\n * signInUrl: 'http://core.get-e.ngrok.io/portal/login',\n * forgottenPasswordUrl: 'http://portal.get-e.ngrok.io/password/forget',\n * bookingToolUrl: 'http://{subDomain}.book.get-e.com',\n * setCookieUrl: 'http://cookie-authorize.get-e.ngrok.io/authorize',\n * refreshCookieUrl: 'http://cookie-refresh.get-e.ngrok.io/refresh',\n * deleteCookieUrl: 'http://cookie-log-out.get-e.ngrok.io/log-out',\n * googleAddressKey: 'AIzaSyBwTMpGcV7qZPjCvF8I6-k9oMGjowxbeJ0',\n */\n};\n","/* eslint-disable import/no-anonymous-default-export */\nexport default {\n appUrl: 'https://app.portal.get-e.com',\n logOutUrl: 'https://portal.get-e.com/portal/auth/logout',\n iframeUrl: 'https://portal.get-e.com/portal/views',\n signInUrl: 'https://portal.get-e.com/portal/login',\n bookingToolUrl: 'https://{subDomain}.book.get-e.com',\n forgottenPasswordUrl: 'https://portal.get-e.com/password/forget',\n setCookieUrl: 'https://cookiemonster.portal.get-e.com/authorize',\n refreshCookieUrl: 'https://cookiemonster.portal.get-e.com/refresh',\n deleteCookieUrl: 'https://cookiemonster.portal.get-e.com/log-out',\n googleAddressKey: 'AIzaSyCxPpCnxu55zcwoOeucuceKOqgXW-77NMg',\n apiUrl: 'https://portal.get-e.com/',\n useNewAuthentication: false,\n amplitudeApi: '32dd0337deaaf68cac0f6a4589365b5c',\n};\n","/* eslint-disable import/no-anonymous-default-export */\nexport default {\n appUrl: 'APP_URL',\n logOutUrl: 'LOG_OUT_URL',\n iframeUrl: 'IFRAME_URL',\n signInUrl: 'SIGN_IN_URL',\n bookingToolUrl: 'https://{subDomain}.book-test.get-e.com',\n forgottenPasswordUrl: 'FORGOTTEN_PASSWORD',\n setCookieUrl: 'COOKIE_URL',\n refreshCookieUrl: 'REFRESH_COOKIE_URL',\n deleteCookieUrl: 'DELETE_COOKIE_URL',\n googleAddressKey: 'GOOGLE_ADDRESS_KEY',\n apiUrl: 'API_URL',\n useNewAuthentication: false,\n amplitudeApi: 'AMPLITUDE_API',\n};\n","import currentEnvironment from '../currentEnvironment';\nimport Environment from '../Environment';\nimport development from './development';\nimport production from './production';\nimport test from './test';\n\nconst envConfig = (() => {\n switch (currentEnvironment) {\n case Environment.Development:\n return development;\n case Environment.Test:\n return test;\n case Environment.Production:\n return production;\n default:\n throw new Error(`Unhandled environment \"${Environment[currentEnvironment]}\"`);\n }\n})();\n\nexport default envConfig;\n","/* eslint-disable no-warning-comments */\nimport envConfig from './environment/config';\n\nconst config = {\n appUrl: envConfig.appUrl,\n logOutUrl: envConfig.logOutUrl,\n iframeUrl: envConfig.iframeUrl,\n signInUrl: envConfig.signInUrl,\n bookingToolUrl: envConfig.bookingToolUrl,\n forgottenPasswordUrl: envConfig.forgottenPasswordUrl,\n geteUrl: 'https://get-e.com',\n setCookieUrl: envConfig.setCookieUrl,\n refreshCookieUrl: envConfig.refreshCookieUrl,\n deleteCookieUrl: envConfig.deleteCookieUrl,\n minimumPasswordLength: 8,\n legacyIframeId: 'legacy-iframe',\n paginationLimit: 10,\n googleAddressKey: envConfig.googleAddressKey,\n apiUrl: envConfig.apiUrl,\n useNewAuthentication: envConfig.useNewAuthentication,\n amplitudeApi: envConfig.amplitudeApi,\n\n // TODO: Set during build\n appVersion: '0.0.1',\n sentryDsn: 'https://14abdcf586784e6ba2cabaadb7e089d2@sentry.io/259970',\n};\n\nexport default config;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport * as sessionReplay from '@amplitude/session-replay-browser';\nimport amplitude from 'amplitude-js';\n\nimport config from '../config';\n\nexport const initAmplitude = () => {\n amplitude.getInstance().init(config.amplitudeApi ?? '');\n};\n\nexport const setAmplitudeUserId = (userId: string) => {\n amplitude.getInstance().setUserId(userId);\n};\n\nexport const setAmplitudeUserProperties = (properties: any) => {\n amplitude.getInstance().setUserProperties(properties);\n};\n\nexport const logAmplitudeEvent = (event: any, eventProperties = {}) => {\n sessionReplay.init(config.amplitudeApi, {\n deviceId: amplitude.getInstance().getDeviceId(),\n sessionId: amplitude.getInstance().getSessionId(),\n });\n\n // Call whenever the session id changes\n sessionReplay.setSessionId(amplitude.getInstance().getSessionId());\n\n /*\n * When you send events to Amplitude, call this event to get\n * The most up to date session replay properties for the event\n */\n const sessionReplayProperties = sessionReplay.getSessionReplayProperties();\n\n amplitude.getInstance().logEvent(event, {\n ...eventProperties,\n ...sessionReplayProperties,\n });\n};\n","enum TokenError {\n NotFound,\n Expired,\n}\nexport default TokenError;\n","export const BASE_URL_PATH = '/';\n\nexport const AVAILABILITY = '/availability';\n\nexport const REPORTS = '/reports';\nexport const REPORTS_SUMMARY = `${REPORTS}/summary`;\nexport const REPORTS_SITUATIONS = `${REPORTS}/situations`;\nexport const REPORTS_DRIVER_ANALYSIS = `${REPORTS}/driverAnalysis`;\nexport const REPORTS_REVIEWS = `${REPORTS}/reviews`;\n\nexport const LOG_IN = '/log-in';\nexport const LOG_IN_NEW = '/portal/login';\nexport const FORGOT_PASSWORD = '/forgot-password';\nexport const RESET_PASSWORD = '/reset-password';\nexport const ACCEPT_INVITE = '/accept-invite';\n\nexport const USERS = '/users';\n\nexport const RIDES = '/rides';\nexport const UPDATE_RIDE = '/update/ride';\n\nexport const EXPORT = '/export';\n\nexport const DRIVERS = '/drivers';\nexport const VEHICLES = '/vehicles';\n\nexport const BOOKING_TOOL = '/booking-tool';\n\nexport const DOCUMENTS = '/documents';\n\nexport const INVOICES = '/invoices';\n\nexport const SETTINGS = '/settings';\n\nexport const getSingleRideRoute = (id: string) => `${RIDES}/${id}`;\nexport const getUpdateRideRoute = (id: string) => `${UPDATE_RIDE}/${id}`;\n\nexport const AUTHENTICATE = '/authenticate';\nexport const INVALID_AUTH_CODE = '/invalid-auth-code';\nexport const INVALID_COOKIE = '/invalid-cookie';\nexport const INVALID_INVITE_TOKEN = '/invalid-invite-token';\nexport const EXPIRED_INVITE_TOKEN = '/expired-invite-token';\nexport const INVALID_PASSWORD_TOKEN = '/invalid-password-token';\nexport const EXPIRED_PASSWORD_TOKEN = '/expired-password-token';\n","import { Visibility, VisibilityOff } from '@mui/icons-material';\nimport { IconButton, InputAdornment } from '@mui/material';\nimport React, { FunctionComponent, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\ninterface ShowPasswordButtonProps {\n onShowPassword: (isVisible: boolean) => void;\n}\n\nconst ShowPasswordButton: FunctionComponent = ({ onShowPassword }) => {\n const [showingPassword, setShowingPassword] = useState(false);\n const { t } = useTranslation();\n\n const handleClick = () => {\n const isPasswordVisible = !showingPassword;\n\n setShowingPassword(isPasswordVisible);\n onShowPassword(isPasswordVisible);\n };\n\n return (\n \n event.preventDefault()}\n style={{ padding: 0 }}\n >\n {showingPassword ? : }\n \n \n );\n};\n\nexport default ShowPasswordButton;\n","import { createContext, useContext } from 'react';\n\nexport enum Severity {\n Info,\n Error,\n}\n\nexport interface NotificationContextValue {\n showNotification: (message: string, severity?: Severity) => void;\n}\n\nexport const NotificationContext = createContext(null);\n\nexport const useNotificationContext = (): NotificationContextValue => {\n const context = useContext(NotificationContext);\n\n if (context === null) {\n throw new Error('NotificationContext should not be null');\n }\n\n return context;\n};\n","enum InputError {\n LowerCaseRequired = 'form.helperText.lowerCaseRequired',\n UpperCaseRequired = 'form.helperText.upperCaseRequired',\n NumberRequired = 'form.helperText.numberRequired',\n SpecialCharacterRequired = 'form.helperText.specialCharacterRequired',\n OnlyLettersAndNumbersAllowed = 'form.helperText.onlyLettersAndNumbersAllowed',\n MaxLengthExceeded = 'form.helperText.maxLengthExceeded',\n ContainsWhiteSpace = 'form.helperText.noWhiteSpace',\n Empty = 'form.helperText.empty',\n TooLong = 'errors.tooLong',\n InvalidEmail = 'errors.invalidEmail',\n EmptyEmail = 'errors.emptyEmail',\n InvalidDate = 'errors.invalidDate',\n InvalidPastDate = 'errors.invalidPastDate',\n InvalidPastTime = 'errors.invalidPastTime',\n InvalidDateFormat = 'errors.invalidDateFormat',\n InvalidTimeFormat = 'errors.invalidTimeFormat',\n InvalidAfterDate = 'errors.invalidAfterDate',\n InvalidAfterTime = 'errors.invalidAfterTime',\n NotStrongPassword = 'errors.notStrongPassword',\n NoMatch = 'errors.noMatch',\n InvalidLogin = 'errors.invalidLogin',\n EmptyLoginPassword = 'errors.emptyLoginPassword',\n EmptyLoginEmail = 'errors.emptyLoginEmail',\n EmailAlreadyTaken = 'errors.emailAlreadyTaken',\n LicensePlateAlreadyTaken = 'errors.licensePlateAlreadyTaken',\n}\n\nenum PasswordError {\n TooShort = 'passwordTooShort',\n}\n\nenum ConfirmPasswordError {\n MustMatch = 'form.helperText.passwordsMustMatch',\n}\n\nexport { InputError, ConfirmPasswordError, PasswordError };\n","/* eslint-disable @typescript-eslint/ban-types */\nimport { Validated, Valid } from '../Validator';\n\nexport default function allValid(input: { [K in keyof T]: Validated }): input is {\n [K in keyof T]: Valid;\n} {\n const values = Object.values>(input);\n\n return values.every(value => value.isValid);\n}\n","import { Validated } from '../Validator';\n\nconst isEqualString = (value: string, valueToCompare: string, error: TError): Validated =>\n value.trim() !== valueToCompare.trim()\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n\nexport default isEqualString;\n","import { Validated } from '../Validator';\n\nexport default function isFilledString(value: string, error: TError): Validated {\n return value === null || value.trim() === ''\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n}\n","/* eslint-disable no-useless-escape */\n/* eslint-disable prefer-named-capture-group */\nexport const IS_EMAIL =\n /(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\n// At least one lowercase letter, one uppercase letter, one digit, one special character, and is at least eight characters.\nexport const IS_PASSWORD = /((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{8,}))/;\n\nexport const IS_PHONE_NUMBER = /^([0-9\\s\\-\\+\\(\\)]{11,})$/;\n\nexport const IS_EDIT_AVAILABILITY_ROUTE = /\\/availability\\/\\d+\\/edit/;\n\n// Allows only digits and point as a decimal separator\nexport const IS_DECIMAL_NUMBER = /^\\d*\\.?\\d*$/;\n\nexport const IS_LETTER_AND_NUMBER = /^[a-zA-Z0-9]*$/;\n","import { IS_PASSWORD } from '../regexRules';\nimport { Validated } from '../Validator';\n\nexport default function isPasswordStrong(value: string, error: TError): Validated {\n return !IS_PASSWORD.test(value)\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n}\n","import { useMemo } from 'react';\nimport { useLocation } from 'react-router-dom';\n\nconst useUrlQuery = (): URLSearchParams => {\n const { search } = useLocation();\n\n return useMemo(() => new URLSearchParams(search), [search]);\n};\n\nexport default useUrlQuery;\n","export default __webpack_public_path__ + \"static/media/get-e-logo-large.ab0e07db.png\";","export default __webpack_public_path__ + \"static/media/car.23e13d77.png\";","export default __webpack_public_path__ + \"static/media/logoIcon.5ccb8451.svg\";","export default __webpack_public_path__ + \"static/media/logoLightBackground.59219783.svg\";","export default __webpack_public_path__ + \"static/media/logoDarkBackground.d3f1a773.svg\";","export default __webpack_public_path__ + \"static/media/emptyAirline.e7788029.png\";","import config from '../config';\nimport { AssignDriverToRide } from '../pages/rides/supplier/api/types';\nimport { FileType } from './types';\n\nconst ROUTE_PREFIX = 'portal-api/';\n\nexport const CSRF_COOKIE = '/sanctum/csrf-cookie';\n\nexport const LOGOUT = `${ROUTE_PREFIX}logout`;\n\nexport const LOGIN = `${ROUTE_PREFIX}login`;\n\nconst RIDE_ID_PARAM = 'unid';\n\nconst ACCOUNT_ID_PARAM = 'accountId';\n\nconst AIRLINE_IATA_IMAGE_BASE_URL = 'https://pics.avs.io';\n\nexport const USERS = `${ROUTE_PREFIX}users`;\n\nexport const INVITED_USERS = `${ROUTE_PREFIX}invited-users`;\n\nexport const USER_PROFILE = `${ROUTE_PREFIX}users/profile`;\n\nexport const USER_INVITE = `${ROUTE_PREFIX}users/invite`;\n\nexport const ACCEPT_INVITE = `${ROUTE_PREFIX}users/accept-invite`;\n\nexport const FORGOT_PASSWORD = `${ROUTE_PREFIX}forgot-password`;\n\nexport const RESET_PASSWORD = `${ROUTE_PREFIX}reset-password`;\n\nexport const RIDES = `${ROUTE_PREFIX}trips`;\n\nexport const RIDE = `${ROUTE_PREFIX}trips/${RIDE_ID_PARAM}`;\n\nexport const RIDE_CHANGE_INFORMATION = `${RIDE}/change-information`;\n\nexport const RIDE_CHANGE_PASSENGERS = `${RIDE}/change-passengers`;\n\nexport const RIDE_AVAILABILITIES = `${ROUTE_PREFIX}availabilities`;\n\nexport const SEARCH_LOCATION = `${ROUTE_PREFIX}locations/search`;\n\nexport const RIDE_SWAP_ESTIMATE_OPTION = `${RIDES}/${RIDE_ID_PARAM}/swap-estimate-option`;\n\nexport const DOWNLOAD_BOOKING_CONFIRMATION = `${RIDE}/get-booking-confirmation-pdf`;\nexport const DOWNLOAD_RIDE_ORDER = `${RIDE}/get-order-pdf`;\n\nexport const DOWNLOAD_RECEIPT_ROUTE = `${RIDE}/get-receipt-pdf`;\n\nexport const SEARCH_FLIGHT = `${ROUTE_PREFIX}flights/search`;\n\nexport const GET_FLIGHT_INFO = `${RIDES}/${RIDE_ID_PARAM}/flights/show`;\n\nexport const EXPORT_RIDES_TO_EXCEL = `${RIDES}/export-to-excel`;\n\nconst REPORTS = 'modules/quality-reports/';\n\nexport const SUMMARY_REPORT = `${REPORTS}summary/supplier`;\n\nexport const DRIVERS_REPORT = `${REPORTS}driver-analysis/supplier`;\n\nexport const SITUATIONS_REPORT = `${REPORTS}situation-details/supplier`;\n\nexport const REVIEWS_REPORT = `${REPORTS}reviews/supplier`;\n\nexport const STOP_SALES_RULE = `/api/internal/accounts/${ACCOUNT_ID_PARAM}/stop-sales-rules`;\n\nexport const DRIVERS = `${ROUTE_PREFIX}drivers`;\nexport const DRIVERS_SEARCH = `${ROUTE_PREFIX}drivers-search`;\n\nexport const VEHICLES = `${ROUTE_PREFIX}vehicles`;\nexport const VEHICLE_BRANDS = `${ROUTE_PREFIX}vehicle-brands`;\nexport const VEHICLE_MODELS = `${ROUTE_PREFIX}vehicle-models`;\n\nexport const PUSHER_AUTH = 'portal/pusher/auth';\n\nexport const DOCUMENTS = `${ROUTE_PREFIX}account-documents`;\nexport const FILES = `${ROUTE_PREFIX}account-files`;\n\nexport const BOOKING_TOOL_URL = `${ROUTE_PREFIX}booking-tool-url`;\n\nexport const ERROR_TOO_MANY_REQUESTS = '/too-many-requests';\nexport const ERROR_NOT_AUTHORIZED = '/not-authorized';\nexport const ERROR_NOT_FOUND = '/not-found';\n\nexport const getSupplierInvoicesRoute = (page: number) => `${ROUTE_PREFIX}supplier-invoices?page=${page}`;\n\nexport const getUsersRoute = (isDeactivated: boolean) => `${USERS}?isDeactivated=${isDeactivated}`;\n\nexport const getRideRoute = (id: string) => RIDE.replace(RIDE_ID_PARAM, id);\n\nexport const getCancelRideRoute = (id: string) => `${RIDE.replace(RIDE_ID_PARAM, id)}/cancel`;\n\nexport const getUpdateRideInformation = (id: string) => RIDE_CHANGE_INFORMATION.replace(RIDE_ID_PARAM, id);\n\nexport const getUpdateTravellerInformation = (id: string) => RIDE_CHANGE_PASSENGERS.replace(RIDE_ID_PARAM, id);\n\nexport const getUpdateVehicleRideRoute = (id: string) => RIDE_SWAP_ESTIMATE_OPTION.replace(RIDE_ID_PARAM, id);\n\nexport const getFlightInfoRoute = (id: string) => GET_FLIGHT_INFO.replace(RIDE_ID_PARAM, id);\n\nexport const getUpdateFlightNumberRoute = (id: string) => `${RIDE.replace(RIDE_ID_PARAM, id)}/change-flight`;\n\nexport const getSendBookingConfirmationEmailRoute = (id: string) =>\n `${RIDE.replace(RIDE_ID_PARAM, id)}/send-booking-confirmation-email`;\n\nexport const getDownloadBookingConfirmationRoute = (id: string) => `${DOWNLOAD_BOOKING_CONFIRMATION.replace(RIDE_ID_PARAM, id)}`;\n\nexport const getDownloadReceiptRoute = (id: string) => `${DOWNLOAD_RECEIPT_ROUTE.replace(RIDE_ID_PARAM, id)}`;\n\nexport const getStopSalesRulesRoute = (accountId: string) => `${STOP_SALES_RULE.replace(ACCOUNT_ID_PARAM, accountId)}`;\n\nexport const getPastStopSalesRulesRoute = (accountId: string) =>\n `${STOP_SALES_RULE.replace(ACCOUNT_ID_PARAM, accountId)}?withPastPeriods=true`;\n\nexport const getStopSalesRuleRoute = (accountId: string, ruleId: string) =>\n `${STOP_SALES_RULE.replace(ACCOUNT_ID_PARAM, accountId)}/${ruleId}`;\n\nexport const getDriverRoute = (id: string) => `${DRIVERS}/${id}`;\n\nexport const getDriverVehiclesRoute = (id: number) => `${DRIVERS}/${id}/vehicles`;\n\nexport const getRideVehicleRoute = (id: string) => `${RIDES}/${id}/driver-vehicle`;\n\nexport const getToggleDriverStatusRoute = (id: string) => `${DRIVERS}/${id}/activation-status `;\n\nexport const getAirlineIataImage = (imageName: string, imageWidth = 300, imageHeight = 50) =>\n `${AIRLINE_IATA_IMAGE_BASE_URL}/${imageWidth}/${imageHeight}/${imageName.toUpperCase()}.png`;\n\nexport const getUserRoute = (id: string) => `${USERS}/${id}`;\n\nexport const getRevokeUserRoute = (id: string) => `${INVITED_USERS}/${id}/revoke`;\n\nexport const getUpdateUserStatusRoute = (id: string) => `${USERS}/${id}/status`;\n\nexport const getFileRoute = (id: string) => `${FILES}/${id}`;\n\nexport const getDownloadRideOrderRoute = (id: string) => `${DOWNLOAD_RIDE_ORDER.replace(RIDE_ID_PARAM, id)}`;\n\nexport const getAssignDriverToRide = ({ rideId, driverId }: AssignDriverToRide) =>\n `${DRIVERS}/${driverId}/assign-to-trip/${rideId}`;\n\nexport const getUnassignDriverFromRide = (rideId: string) => `${RIDE.replace(RIDE_ID_PARAM, rideId)}/unassign-driver`;\n\nexport const getConfirmRideRoute = (id: string) => `${RIDE.replace(RIDE_ID_PARAM, id)}/confirm`;\n\nexport const getCloseRideRoute = (id: string) => `${RIDE.replace(RIDE_ID_PARAM, id)}/close`;\n\nexport const getRideAddRemarksRoute = (id: string) => `${RIDE.replace(RIDE_ID_PARAM, id)}/add-remarks`;\n\nexport const assignVehicleAndDriverRoute = (id: string) => `${RIDE.replace(RIDE_ID_PARAM, id)}/assign`;\n\nexport const getSupplierInvoiceFile = (invoiceNumber: string, fileType: FileType) => {\n return `${config.apiUrl}${ROUTE_PREFIX}supplier-invoices/${invoiceNumber}/${fileType}`;\n};\n\nexport const getSearchBrands = (search: string, limit?: number) => `${VEHICLE_BRANDS}?search=${search}`;\nexport const getSearchVehicles = (search: string, limit?: number) =>\n `${VEHICLES}?search=${search}${limit ? `&limit=${limit}` : ''}`;\nexport const getFindVehicleRoute = (search: string) => `${VEHICLES}/find-by-license-plate/${search}`;\nexport const getVehicleRoute = (id: number) => `${VEHICLES}/${id}`;\nexport const getDriversRoute = () => `${DRIVERS}`;\nexport const getDriversSearch = (search?: string) => `${DRIVERS_SEARCH}?search=${search}`;\n\nexport const IMAGE_UPLOAD = `${ROUTE_PREFIX}image-upload`;\n","import axios from 'axios';\nimport Cookies from 'js-cookie';\n\nimport config from '../config';\nimport { STATUS_403, STATUS_404, STATUS_429 } from '../constants/httpStatusCodes';\nimport { ERROR_NOT_AUTHORIZED, ERROR_NOT_FOUND, ERROR_TOO_MANY_REQUESTS } from './routes';\n\nconst apiClient = axios.create({\n baseURL: config.apiUrl,\n withCredentials: true,\n headers: { 'X-XSRF-TOKEN': Cookies.get('XSRF-TOKEN') as string },\n});\n\napiClient.interceptors.response.use(\n response => {\n return response;\n },\n error => {\n if (error.response.status === STATUS_429) {\n window.location.href = ERROR_TOO_MANY_REQUESTS;\n } else if (error.response.status === STATUS_403) {\n window.location.href = ERROR_NOT_AUTHORIZED;\n } else if (error.response.status === STATUS_404) {\n window.location.href = ERROR_NOT_FOUND;\n } else {\n return Promise.reject(error);\n }\n }\n);\n\nexport default apiClient;\n","export const STATUS_422 = 422;\nexport const STATUS_401 = 401;\nexport const STATUS_429 = 429;\nexport const STATUS_403 = 403;\nexport const STATUS_404 = 404;\n","import { AxiosResponse } from 'axios';\n\nimport apiClient from '../../../services/api';\nimport { ACCEPT_INVITE } from '../../../services/routes';\nimport { AcceptUserInviteRequest } from './types';\n\nexport const acceptUserInvite = async (request: AcceptUserInviteRequest): Promise => {\n const response = await apiClient.post(ACCEPT_INVITE, request);\n\n return response;\n};\n","import { Form, PrimaryButton, SignedOutLayout, TextField } from '@get-e/react-components';\nimport { Paper, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { Box } from '@mui/system';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\nimport { useHistory } from 'react-router';\n\nimport ShowPasswordButton from '../../components/buttons/showPasswordButton/ShowPasswordButton';\nimport { LOG_IN } from '../../constants/urlPaths';\nimport { Severity, useNotificationContext } from '../../context/NotificationContext';\nimport { InputError } from '../../helpers/inputValidation/InputError';\nimport allValid from '../../helpers/inputValidation/validators/allValid';\nimport isEqualString from '../../helpers/inputValidation/validators/isEqualString';\nimport isFilledString from '../../helpers/inputValidation/validators/isFilledString';\nimport isPasswordStrong from '../../helpers/inputValidation/validators/isPasswordStrong';\nimport useUrlQuery from '../../hooks/useUrlQuery';\nimport { logoIconLightBackground } from '../../public/assets/images';\nimport { acceptUserInvite } from './api';\n\nconst TOKEN_QUERY_PARAMETER = 'token';\nconst FIRST_NAME_QUERY_PARAMETER = 'firstName';\nconst LAST_NAME_QUERY_PARAMETER = 'lastName';\n\nconst useStyles = makeStyles({\n container: {\n padding: '2em',\n maxWidth: '430px',\n margin: '0 auto',\n },\n heading: {\n marginBottom: '1rem',\n marginTop: '2rem',\n },\n formField: { marginBottom: '2rem' },\n logoContainer: {\n display: 'block',\n margin: '0 auto',\n maxWidth: 110,\n },\n});\n\nconst AcceptInvite = () => {\n const { t } = useTranslation();\n const classes = useStyles();\n const urlParams = useUrlQuery();\n const history = useHistory();\n const token = urlParams.get(TOKEN_QUERY_PARAMETER) ?? '';\n const firstNameParam = urlParams.get(FIRST_NAME_QUERY_PARAMETER) ?? '';\n const lastNameParam = urlParams.get(LAST_NAME_QUERY_PARAMETER) ?? '';\n const [firstName, setFirstName] = useState(firstNameParam);\n const [lastName, setLastName] = useState(lastNameParam);\n const [password, setPassword] = useState('');\n const [confirmPassword, setConfirmPassword] = useState('');\n const [firstNameError, setFirstNameError] = useState(null);\n const [lastNameError, setLastNameError] = useState(null);\n const [passwordError, setPasswordError] = useState(null);\n const [confirmPasswordError, setConfirmPasswordError] = useState(null);\n const [showingPassword, setShowingPassword] = useState(false);\n const [showingConfirmPassword, setShowingConfirmPassword] = useState(false);\n const { showNotification } = useNotificationContext();\n\n const { mutate: acceptUserInviteMutation, isLoading } = useMutation(acceptUserInvite, {\n onSuccess: () => {\n history.push(LOG_IN);\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onError: (error: any) => {\n showNotification(error?.response?.data?.message || t('errors.defaultError'), Severity.Error);\n },\n });\n\n const validateFormFields = (): boolean => {\n setFirstNameError(null);\n setLastNameError(null);\n setPasswordError(null);\n setConfirmPasswordError(null);\n\n const validated = {\n firstName: isFilledString(firstName, InputError.Empty),\n lastName: isFilledString(lastName, InputError.Empty),\n password: isPasswordStrong(password, InputError.NotStrongPassword),\n confirmPassword: isEqualString(confirmPassword, password, InputError.NoMatch),\n };\n\n if (!allValid(validated)) {\n setFirstNameError(validated.firstName.isValid ? null : validated.firstName.error);\n setLastNameError(validated.lastName.isValid ? null : validated.lastName.error);\n setPasswordError(validated.password.isValid ? null : validated.password.error);\n setConfirmPasswordError(validated.confirmPassword.isValid ? null : validated.confirmPassword.error);\n\n return false;\n }\n\n return true;\n };\n\n const submitForm = () => {\n if (validateFormFields()) {\n acceptUserInviteMutation({\n firstName,\n lastName,\n password,\n password_confirmation: confirmPassword,\n token,\n });\n }\n };\n\n return (\n \n \n {'Logo'}\n
\n \n {t('pages.acceptInvite.welcome')}!\n \n \n {t('pages.acceptInvite.completeBelowDetails')}\n \n {\n setFirstName(event.target.value);\n setFirstNameError(null);\n }}\n inputProps={{ form: { autocomplete: 'off' } }}\n type=\"text\"\n name=\"firstName\"\n required\n error={firstNameError !== null}\n helperText={firstNameError ? t(firstNameError) : undefined}\n />\n {\n setLastName(event.target.value);\n setLastNameError(null);\n }}\n inputProps={{ form: { autocomplete: 'off' } }}\n type=\"text\"\n name=\"lastName\"\n required\n error={lastNameError !== null}\n helperText={lastNameError ? t(lastNameError) : undefined}\n />\n {\n setPassword(event.target.value);\n setPasswordError(null);\n }}\n InputProps={{\n endAdornment: (\n {\n setShowingPassword(isPasswordVisible);\n }}\n />\n ),\n }}\n required\n error={passwordError !== null}\n helperText={passwordError ? t(passwordError) : undefined}\n />\n {\n setConfirmPassword(event.target.value);\n setConfirmPasswordError(null);\n }}\n InputProps={{\n endAdornment: (\n {\n setShowingConfirmPassword(isPasswordVisible);\n }}\n />\n ),\n }}\n required\n error={confirmPasswordError !== null}\n helperText={confirmPasswordError ? t(confirmPasswordError) : undefined}\n />\n \n \n {t('useEightOrMoreCharacters')}\n \n \n \n {t('pages.acceptInvite.activatePrifile')}\n \n \n \n
\n
\n );\n};\n\nexport default AcceptInvite;\n","export const DUMMY_DATE = '1970-01-01';\n\nexport enum REPEATS {\n DO_NOT_REPEAT = 'Do not repeat',\n EVERY_MONDAY = 'Every Monday',\n EVERY_TUESDAY = 'Every Tuesday',\n EVERY_WEDNESDAY = 'Every Wednesday',\n EVERY_THURSDAY = 'Every Thursday',\n EVERY_FRIDAY = 'Every Friday',\n EVERY_SATURDAY = 'Every Saturday',\n EVERY_SUNDAY = 'Every Sunday',\n CUSTOM = 'Custom',\n}\n\nexport enum ADJUSTMENT_REPEATS {\n DOES_NOT_REPEAT = 'Does not repeat',\n REPEATS_DAILY = 'Repeats daily',\n REPEATS_WEEKLY = 'Repeats weekly',\n REPEATS_YEARLY = 'Repeats yearly',\n}\n\nexport enum ADJUSTMENT_REPEATS_VALUES {\n DOES_NOT_REPEAT = 'NONE',\n REPEATS_DAILY = 'DAILY',\n REPEATS_WEEKLY = 'WEEKLY',\n REPEATS_YEARLY = 'YEARLY',\n}\n\nexport enum ADJUSTMENT_REPEATS_SUFFIX {\n DOES_NOT_REPEAT = 'One time occasion',\n REPEATS_DAILY = 'Every day from and to a specific time',\n REPEATS_WEEKLY = 'Every selected day of the week',\n REPEATS_YEARLY = 'Every selected day of the year',\n}\n\nexport enum WEEKDAYS {\n MONDAY = 'Monday',\n TUESDAY = 'Tuesday',\n WEDNESDAY = 'Wednesday',\n THURSDAY = 'Thursday',\n FRIDAY = 'Friday',\n SATURDAY = 'Saturday',\n SUNDAY = 'Sunday',\n}\n\nexport enum WEEKDAY_SHORT_NAMES {\n MONDAY = 'Mon',\n TUESDAY = 'Tue',\n WEDNESDAY = 'Wed',\n THURSDAY = 'Thu',\n FRIDAY = 'Fri',\n SATURDAY = 'Sat',\n SUNDAY = 'Sun',\n}\n\nexport const PERIODS = {\n LAST_30_DAYS: {\n label: 'Last 30 days',\n value: 29,\n translationKey: 'periodPicker.last30Days',\n },\n LAST_7_DAYS: {\n label: 'Last 7 days',\n value: 6,\n translationKey: 'periodPicker.last7Days',\n },\n YESTERDAY: {\n label: 'Yesterday',\n value: 0,\n translationKey: 'periodPicker.yesterday',\n },\n};\n\nexport enum USER_ROLES {\n MANAGE_RIDES_BOOKED_BY_OTHERS = 'MANAGE_RIDES_BOOKED_BY_OTHERS',\n MANAGE_USERS = 'MANAGE_USERS',\n}\n\nexport enum BOOKING_SOURCE {\n API_V2 = 'API_V2',\n BACKOFFICE = 'BACKOFFICE',\n BOOKINGTOOL = 'BOOKINGTOOL',\n BATCH_BOOKINGS = 'BATCH_BOOKINGS',\n AMADEUS = 'AMADEUS',\n BOOKING_DOT_COM = 'BOOKING_DOT_COM',\n PORTAL_API = 'PORTAL_API',\n CARS = 'CARS',\n}\n","export const COLORS = {\n BLACK: '#1A364C',\n BLACK_50: 'rgba(0, 0, 0, 0.5)',\n BLACK_12: 'rgba(0, 0, 0, 0.12)',\n WHITE: '#FFFFFF',\n WHITE_10: 'rgba(255,255,255,0.1)',\n WHITE_20: 'rgba(255,255,255,0.2)',\n SLATE_GREY: '#788B9B',\n DARK_GRAY: '#BCBDCB',\n LIGHT_GRAY: '#EEF3F9',\n EXTRA_LIGHT_GRAY: '#F8F8F8',\n LIGHT_BLUE_INFO: '#03A9F4',\n BLUE_DARK: '#001154',\n BLUE: '#073690',\n LIGHT_BLUE: '#BAC3D8',\n ORANGE: '#F86909',\n ORANGE_OFFICIAL: '#FF9600',\n ORANGE_WARNING: '#E99A00',\n LIGHT_ORANGE: '#FFEBD7',\n MEDIUM_ORANGE: '#FFE3C7',\n GREEN: '#12944A',\n LIGHT_GREEN: '#BDDDCB',\n RED: '#B72323',\n RED_WARNING: '#801818',\n LIGHT_RED: '#E6C1C1',\n ORANGE_TEXT: '#BE3800',\n BLUE_TEXT: '#082E82',\n GREEN_TEXT: '#006B2E',\n GREY_INPUT: '#EFEFEF',\n PROFILE_COLORS: {\n PASTEL_ORANGE: '#FFC09C',\n PASTEL_PINKISH: '#FF9C9C',\n PASTEL_YELLOWISH: '#FFE99C',\n PASTEL_MARKER_GREEN: '#9EFF9C',\n PASTEL_CYAN: '#9CEDFF',\n PASTEL_BLUE: '#9CB8FF',\n PASTEL_VIOLENT: '#BC9CFF',\n PASTEL_VERY_PINK: '#FF9CFB',\n },\n};\n\nexport function getRandomProfileColor(): string {\n const colorKeys = Object.keys(COLORS.PROFILE_COLORS);\n const randomColorKey = colorKeys[Math.floor(Math.random() * colorKeys.length)];\n\n return COLORS.PROFILE_COLORS[randomColorKey] as string;\n}\n","export const MAX_CONTENT_WIDTH = '1730px';\nexport const BUTTON_WIDTH = '150px';\nexport const MIN_BUTTON_WIDTH = '200px';\nexport const IMAGE_SIZE = '115px';\n","import { createContext, useContext } from 'react';\n\nimport { UseQueryResult } from 'react-query';\nimport { User } from '../pages/users/api/types';\n\nexport interface CurrentProfileContextProps {\n currentProfile: User;\n refetchUserProfile: () => Promise;\n isMenuClosed: boolean;\n}\n\nexport const CurrentProfileContext = createContext(null);\n\nexport const useCurrentProfileContext = (): CurrentProfileContextProps => {\n const currentProfileContext = useContext(CurrentProfileContext);\n\n if (currentProfileContext === null) {\n throw new Error('CurrentProfileContext should not be null');\n }\n\n return currentProfileContext;\n};\n","import { createContext, useContext } from 'react';\n\nexport const portalLocales = ['en-GB', 'es-ES'] as const;\n\nexport type PortalLocale = (typeof portalLocales)[number];\n\nexport const isPortalLocale = (value: string): value is PortalLocale => {\n const locales = portalLocales as readonly string[];\n\n return locales.includes(value);\n};\n\nexport interface LocaleContextProps {\n locale: PortalLocale;\n updateLocale: (locale: PortalLocale) => Promise;\n}\n\nexport const LocaleContext = createContext(null);\n\nexport const useLocaleContext = (): LocaleContextProps => {\n const localeContext = useContext(LocaleContext);\n\n if (localeContext === null) {\n throw new Error('LocaleContext should not be null');\n }\n\n return localeContext;\n};\n","export const DATE_FORMATS = {\n 'DD MMM yyyy': 'DD MMM yyyy',\n 'DD MMM': 'DD MMM',\n 'ddd, DD MMM YYYY': 'ddd, DD MMM YYYY',\n 'ddd DD MMM YYYY': 'ddd DD MMM YYYY',\n 'ddd DD-MMM-YYYY HH:mm A': 'ddd DD-MMM-YYYY HH:mm A',\n 'YYYY-MM-DDTHH:mm:ss': 'YYYY-MM-DDTHH:mm:ss',\n 'ddd, DD MMM YYYY at HH:mm A': 'ddd, DD MMM YYYY [at] HH:mm A',\n 'ddd DD MMM YYYY at HH:mm A': 'ddd DD MMM YYYY [at] HH:mm A',\n 'DD MMM at HH:mm A': 'DD MMM [at] HH:mm A',\n 'YYYY-MM-DD HH:mm:ss': 'YYYY-MM-DD HH:mm:ss',\n 'YYYY/MM/DD HH:mm:ss': 'YYYY/MM/DD HH:mm:ss',\n 'YYYY-MM-DD': 'YYYY-MM-DD',\n 'dd MMM yyyy hh:mm a': 'dd MMM yyyy hh:mm a',\n 'EEE, dd MMM yyyy at HH:mm a': \"EEE, dd MMM yyyy 'at' HH:mm a\",\n 'dd MMM yyyy': 'dd MMM yyyy',\n 'EEE, dd MMM yyyy': 'EEE, dd MMM yyyy',\n 'MMM Do HH:mm A': 'MMM Do HH:mm A',\n MMM: 'MMM',\n MMMM: 'MMMM',\n 'YYYY-MM-DDT': 'YYYY-MM-DDT',\n 'd MMM yyyy at p': \"d MMM yyyy 'at' p\",\n 'yyyy-MM-dd': 'yyyy-MM-dd',\n 'DD MMM YYYY HH:mm': 'DD MMM YYYY HH:mm',\n 'DD MMM YYYY': 'DD MMM YYYY',\n 'ddd DD MMM': 'ddd DD MMM',\n 'ddd Do MMM': 'ddd Do MMM',\n yyyy: 'yyyy',\n mmm: 'mmm',\n dd: 'dd',\n 'YYYY-MM-DDT00:00:00': 'YYYY-MM-DDT00:00:00',\n};\n","export const TIME_FORMATS = {\n 'HH:mm:ss': 'HH:mm:ss',\n 'HH:mm a': 'HH:mm a',\n 'hh:mm A': 'hh:mm A',\n 'HH:mm A': 'HH:mm A',\n 'hh:mm a': 'hh:mm a',\n 'HH:mm': 'HH:mm',\n 'HHh mmmin': 'HH[h] mm[min]',\n};\n","import dayjs from 'dayjs';\nimport { ADJUSTMENT_REPEATS, ADJUSTMENT_REPEATS_VALUES, REPEATS, WEEKDAYS, WEEKDAY_SHORT_NAMES } from '../constants';\nimport { DATE_FORMATS } from '../constants/dateFormats';\nimport { TIME_FORMATS } from '../constants/timeFormats';\n\nexport interface BlockedPeriodMessage {\n part1: string;\n part2: string;\n part3: string;\n}\n\nexport const resolveRepeatsValue = (value: keyof typeof WEEKDAYS): REPEATS => {\n switch (value) {\n case 'MONDAY':\n return REPEATS.EVERY_MONDAY;\n case 'TUESDAY':\n return REPEATS.EVERY_TUESDAY;\n case 'WEDNESDAY':\n return REPEATS.EVERY_WEDNESDAY;\n case 'THURSDAY':\n return REPEATS.EVERY_THURSDAY;\n case 'FRIDAY':\n return REPEATS.EVERY_FRIDAY;\n case 'SATURDAY':\n return REPEATS.EVERY_SATURDAY;\n case 'SUNDAY':\n return REPEATS.EVERY_SUNDAY;\n default:\n return REPEATS.DO_NOT_REPEAT;\n }\n};\n\nexport const resolveApplicableOnDaysValue = (value: REPEATS): keyof typeof WEEKDAYS => {\n switch (value) {\n case REPEATS.EVERY_MONDAY:\n return 'MONDAY';\n case REPEATS.EVERY_TUESDAY:\n return 'TUESDAY';\n case REPEATS.EVERY_WEDNESDAY:\n return 'WEDNESDAY';\n case REPEATS.EVERY_THURSDAY:\n return 'THURSDAY';\n case REPEATS.EVERY_FRIDAY:\n return 'FRIDAY';\n case REPEATS.EVERY_SATURDAY:\n return 'SATURDAY';\n case REPEATS.EVERY_SUNDAY:\n return 'SUNDAY';\n default:\n return 'MONDAY';\n }\n};\n\nexport const resolveApplicableOnDaysShortNames = (applicableOnDays: Array) =>\n (\n Object.keys(WEEKDAYS).filter(weekday => applicableOnDays.includes(weekday as keyof typeof WEEKDAYS)) as Array<\n keyof typeof WEEKDAYS\n >\n )\n .map(applicableDay => WEEKDAY_SHORT_NAMES[applicableDay])\n .join(', ');\n\nexport const getWhenMessage = (\n repeats: REPEATS,\n startDateTime: Date | null,\n endDateTime: Date | null,\n startTime: Date | null,\n endTime: Date | null,\n applicableOnDays: Array\n): BlockedPeriodMessage => {\n if (repeats === REPEATS.DO_NOT_REPEAT) {\n return {\n part1: `${dayjs(startDateTime).format(DATE_FORMATS['ddd DD MMM YYYY at HH:mm A'])}`,\n part2: `${dayjs(endDateTime).format(DATE_FORMATS['ddd DD MMM YYYY at HH:mm A'])}`,\n part3: '',\n };\n }\n\n return {\n part1: `${dayjs(startDateTime).format(DATE_FORMATS['ddd DD MMM YYYY'])}`,\n part2: `${dayjs(endDateTime).format(DATE_FORMATS['ddd DD MMM YYYY'])}`,\n part3: `${resolveApplicableOnDaysShortNames(applicableOnDays)} from ${dayjs(startTime).format(\n TIME_FORMATS['HH:mm A']\n )} to ${dayjs(endTime).format(TIME_FORMATS['HH:mm A'])}`,\n };\n};\n\nexport const getAdjustmentWhenMessage = (\n repeats: ADJUSTMENT_REPEATS,\n startDateTime: Date | null,\n endDateTime: Date | null,\n startTime: Date | null,\n endTime: Date | null,\n applicableOnDays: Array\n) => {\n if (repeats === ADJUSTMENT_REPEATS.DOES_NOT_REPEAT) {\n return {\n part1: `${dayjs(startDateTime).format(DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A'])} - ${dayjs(endDateTime).format(\n DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']\n )}`,\n part2: '',\n };\n } else if (repeats === ADJUSTMENT_REPEATS.REPEATS_DAILY) {\n return {\n part1: `${dayjs(startTime).format(TIME_FORMATS['HH:mm A'])} - ${dayjs(endTime).format(TIME_FORMATS['HH:mm A'])}`,\n part2: 'Daily',\n };\n } else if (repeats === ADJUSTMENT_REPEATS.REPEATS_WEEKLY) {\n return {\n part1: `${dayjs(startTime).format(TIME_FORMATS['HH:mm A'])} - ${dayjs(endTime).format(TIME_FORMATS['HH:mm A'])}`,\n part2: `${resolveApplicableOnDaysShortNames(applicableOnDays)}`,\n };\n } else if (repeats === ADJUSTMENT_REPEATS.REPEATS_YEARLY) {\n return {\n part1: `${dayjs(startDateTime).format(\n DATE_FORMATS['MMM Do HH:mm A']\n )} - ${dayjs(endDateTime).format(DATE_FORMATS['MMM Do HH:mm A'])}`,\n part2: 'Yearly',\n };\n }\n\n return {\n part1: '',\n part2: '',\n };\n};\n\nexport const resolveRepeatsInitialValue = (value: Array | null): REPEATS => {\n if (value && value.length === 1) {\n return resolveRepeatsValue(value[0]);\n } else if (value && value.length > 1) {\n return REPEATS.CUSTOM;\n }\n\n return REPEATS.DO_NOT_REPEAT;\n};\n\nexport const resolveAdjustmentRepeatsInitialValue = (value: ADJUSTMENT_REPEATS_VALUES): ADJUSTMENT_REPEATS =>\n Object.values(ADJUSTMENT_REPEATS)[Object.values(ADJUSTMENT_REPEATS_VALUES).indexOf(value)];\n","import { createTheme, Theme } from '@mui/material/styles';\n\ndeclare module '@mui/styles' {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n interface DefaultTheme extends Theme {}\n}\n\nexport const TOOLBAR_HEIGHT = 56;\n\nexport const TABLE_ROW_HEIGHT = 56;\n\nconst theme = createTheme({});\n\nexport default theme;\n","export const USE_STOP_SALES_RULE = 'use-stop-sales-rule';\nexport const USE_STOP_SALES_RULES = 'use-stop-sales-rules';\nexport const USE_PAST_STOP_SALES_RULES = 'use-past-stop-sales-rules';\nexport const USE_RIDES = 'use-rides';\nexport const USE_USER_PROFILE = 'use-user-profile';\n\nexport const USE_RIDE = 'use-ride';\nexport const USE_AVAILABILITIES = 'use-availabilities';\nexport const USE_SEARCH_LOCATION = 'use-search-location';\nexport const USE_FLIGHT_SEARCH = 'use-flight-search';\nexport const USE_FLIGHT = 'use-flight';\n\nexport const USE_DRIVERS = 'use-drivers';\nexport const USE_DRIVER = 'use-driver';\n\nexport const USE_VEHICLES = 'use-vehicles';\nexport const USE_BRANDS = 'use-brands';\nexport const USE_VEHICLE = 'use-vehicle';\nexport const USE_MODELS = 'use-models';\nexport const USE_IMAGES = 'use-images';\nexport const USE_DRIVER_VEHICLES = 'use-driver-vehicles';\nexport const USE_RIDE_VEHICLE = 'use-ride-vehicle';\n\nexport const USE_USERS = 'use-users';\nexport const USE_ACTIVE_USERS = 'use-active-users';\nexport const USE_DEACTIVE_USERS = 'use-deactive-users';\nexport const USE_INVITED_USERS = 'use-invited-users';\n\nexport const USE_DOCUMENTS = 'use-documents';\nexport const USE_FILES = 'use-files';\n\nexport const USE_SUPPLIER_INVOICES = 'use-supplier-invoices';\n\nexport const USE_REPORT_CURRENT_PERIOD = 'use-report-current-period';\nexport const USE_REPORT_PREVIOUS_PERIOD = 'use-report-previous-period';\n\nexport const USE_BOOKING_TOOL_URL = 'use-booking-tool-url';\n","export default async function tryGetAsync(getter: () => Promise): Promise<\n | {\n success: true;\n value: T;\n }\n | {\n success: false;\n error: Error;\n }\n> {\n try {\n return {\n success: true,\n value: await getter(),\n };\n } catch (error) {\n return {\n success: false,\n error: error as Error,\n };\n }\n}\n","import { BaseError } from 'make-error-cause';\nimport { useQuery } from 'react-query';\n\nimport { USE_PAST_STOP_SALES_RULES, USE_STOP_SALES_RULE, USE_STOP_SALES_RULES } from '../../../constants/queryKeys';\nimport tryGetAsync from '../../../helpers/tryGetAsync';\nimport apiClient from '../../../services/api';\nimport { getPastStopSalesRulesRoute, getStopSalesRuleRoute, getStopSalesRulesRoute } from '../../../services/routes';\nimport { BlockedPeriod, BlockedPeriodRequest } from './types';\n\nexport const useStopSalesRule = (accountId: string, ruleId: string, enabled: boolean) => {\n const { data, isLoading, isError, isFetching, refetch } = useQuery(\n [USE_STOP_SALES_RULE],\n () => getStopSalesRule(accountId, ruleId),\n {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n enabled,\n }\n );\n\n return {\n data,\n isLoading,\n isError,\n isFetching,\n refetch,\n };\n};\n\nexport const useCurrentStopSalesRules = (accountId: string, enabled: boolean) => {\n const { data, isLoading, isError, isFetching, refetch } = useQuery(\n [USE_STOP_SALES_RULES],\n () => getCurrentStopSalesRules(accountId),\n {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n enabled,\n }\n );\n\n return {\n data: data ?? [],\n isLoading,\n isError,\n isFetching,\n refetch,\n };\n};\n\nexport const usePastStopSalesRules = (accountId: string, enabled: boolean) => {\n const { data, isLoading, isError, isFetching, refetch } = useQuery(\n [USE_PAST_STOP_SALES_RULES],\n () => getPastStopSalesRules(accountId),\n {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n enabled,\n }\n );\n\n return {\n data: data ?? [],\n isLoading,\n isError,\n isFetching,\n refetch,\n };\n};\n\nconst getStopSalesRule = async (accountId: string, ruleId: string): Promise => {\n const { data } = await apiClient.get(getStopSalesRuleRoute(accountId, ruleId));\n\n return data;\n};\n\nconst getCurrentStopSalesRules = async (accountId: string): Promise => {\n const { data } = await apiClient.get(getStopSalesRulesRoute(accountId));\n\n return data;\n};\n\nconst getPastStopSalesRules = async (accountId: string): Promise => {\n const { data } = await apiClient.get(getPastStopSalesRulesRoute(accountId));\n\n return data;\n};\n\nexport const editStopSalesRule = async (accountId: string, ruleId: string, payload: BlockedPeriodRequest) => {\n const result = await tryGetAsync(() => apiClient.put(getStopSalesRuleRoute(accountId, ruleId), payload));\n\n if (!result.success) {\n throw new BaseError('Failed to edit blocked period');\n }\n};\n\nexport const createStopSalesRule = async (accountId: string, payload: BlockedPeriodRequest) => {\n const result = await tryGetAsync(() => apiClient.post(getStopSalesRulesRoute(accountId), payload));\n\n if (!result.success) {\n throw new BaseError('Failed to create blocked period');\n }\n};\n\nexport const deleteStopSalesRule = async (accountId: string, ruleId: string) => {\n const result = await tryGetAsync(() => apiClient.delete(getStopSalesRuleRoute(accountId, ruleId)));\n\n if (!result.success) {\n throw new BaseError('Failed to delete blocked period');\n }\n};\n","import { Grid, Skeleton, Box, useMediaQuery, Theme } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\n\nconst useStyles = makeStyles((theme: Theme) => ({\n mainWrapper: {\n alignItems: 'center',\n padding: 0,\n },\n mainWrapperTopPadding: { paddingTop: '3.5rem' },\n headerTitleWrapper: {\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [theme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 0,\n [theme.breakpoints.down('md')]: { marginBottom: '0.5rem' },\n [theme.breakpoints.down('sm')]: {\n width: '100%',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '0.5rem',\n marginBottom: '0.5rem',\n },\n },\n content: {\n width: '100%',\n height: 'calc(100vh - 263px)',\n marginTop: '2rem',\n },\n}));\n\nconst AvailabilityLoadingSkeleton = () => {\n const classes = useStyles();\n const isMobile = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n\n return (\n \n \n \n \n \n \n \n {!isMobile && }\n \n \n \n \n \n \n \n );\n};\n\nexport default AvailabilityLoadingSkeleton;\n","import { DATE_FORMATS } from './dateFormats';\n\nexport const datePickerPlaceholder = {\n fieldYearPlaceholder: () => DATE_FORMATS.yyyy,\n fieldMonthPlaceholder: () => DATE_FORMATS.mmm,\n fieldDayPlaceholder: () => DATE_FORMATS.dd,\n};\n","enum FormError {\n Unauthorized,\n UnexpectedError,\n WrongCredentials,\n}\n\nexport default FormError;\n","import FormError from './FormError';\n\nexport default function getFormErrorMessage(error: FormError): string {\n switch (error) {\n case FormError.Unauthorized:\n return 'errors.formWError.unauthorized';\n case FormError.UnexpectedError:\n return 'errors.formWError.unexpectedError';\n case FormError.WrongCredentials:\n return 'errors.formError.wrongCredentials';\n default:\n throw new Error('Unhandled form error');\n }\n}\n","import { Invalid, Validated } from '../Validator';\n\nexport default function and(\n firstResult: Validated,\n createSecond: (input: TFirstValue) => Validated\n): Invalid | Validated {\n return firstResult.isValid ? createSecond(firstResult.value) : firstResult;\n}\n","import { differenceInSeconds } from 'date-fns';\n\nimport { Validated } from '../Validator';\n\nconst isAfterDate = (value: Date | null, minimum: Date | null, error: TError): Validated =>\n value === null || (minimum !== null && differenceInSeconds(value, minimum) <= 0)\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n\nexport default isAfterDate;\n","import { differenceInSeconds } from 'date-fns';\n\nimport { Validated } from '../Validator';\n\nconst isAfterTime = (value: Date | null, minimum: Date | null, error: TError): Validated =>\n value === null || (minimum !== null && differenceInSeconds(value, minimum) < 0)\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n\nexport default isAfterTime;\n","import { Validated } from '../Validator';\n\nexport default function isNotNull(value: TValue | null): Validated;\n\nexport default function isNotNull(value: TValue | null, error: TError): Validated;\n\nexport default function isNotNull(\n value: TValue | null,\n error?: TError\n): Validated {\n return value === null\n ? {\n isValid: false,\n error: error ?? undefined,\n }\n : {\n isValid: true,\n value,\n };\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgTrafficJam(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 19,\n viewBox: \"0 0 20 19\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1.66683 18.3334C1.43072 18.3334 1.2328 18.2535 1.07308 18.0938C0.913357 17.9341 0.833496 17.7362 0.833496 17.5V10.8334L2.60433 6.60421C2.70155 6.3681 2.85433 6.1806 3.06266 6.04171C3.271 5.90282 3.50016 5.83337 3.75016 5.83337H11.2502C11.5002 5.83337 11.7293 5.90282 11.9377 6.04171C12.146 6.1806 12.2988 6.3681 12.396 6.60421L14.1668 10.8334V17.5C14.1668 17.7362 14.087 17.9341 13.9272 18.0938C13.7675 18.2535 13.5696 18.3334 13.3335 18.3334H12.5002C12.2641 18.3334 12.0661 18.2535 11.9064 18.0938C11.7467 17.9341 11.6668 17.7362 11.6668 17.5V16.6667H3.3335V17.5C3.3335 17.7362 3.25364 17.9341 3.09391 18.0938C2.93419 18.2535 2.73627 18.3334 2.50016 18.3334H1.66683ZM3.16683 9.16671H11.8127L11.1252 7.50004H3.87516L3.16683 9.16671ZM4.5835 14.1667C4.93072 14.1667 5.22586 14.0452 5.46891 13.8021C5.71197 13.5591 5.8335 13.2639 5.8335 12.9167C5.8335 12.5695 5.71197 12.2743 5.46891 12.0313C5.22586 11.7882 4.93072 11.6667 4.5835 11.6667C4.23627 11.6667 3.94114 11.7882 3.69808 12.0313C3.45502 12.2743 3.3335 12.5695 3.3335 12.9167C3.3335 13.2639 3.45502 13.5591 3.69808 13.8021C3.94114 14.0452 4.23627 14.1667 4.5835 14.1667ZM10.4168 14.1667C10.7641 14.1667 11.0592 14.0452 11.3022 13.8021C11.5453 13.5591 11.6668 13.2639 11.6668 12.9167C11.6668 12.5695 11.5453 12.2743 11.3022 12.0313C11.0592 11.7882 10.7641 11.6667 10.4168 11.6667C10.0696 11.6667 9.77447 11.7882 9.53141 12.0313C9.28836 12.2743 9.16683 12.5695 9.16683 12.9167C9.16683 13.2639 9.28836 13.5591 9.53141 13.8021C9.77447 14.0452 10.0696 14.1667 10.4168 14.1667ZM15.0002 15.8334V8.66671L13.4793 5.00004H4.72933L5.10433 4.10421C5.20155 3.8681 5.35433 3.6806 5.56266 3.54171C5.771 3.40282 6.00016 3.33337 6.25016 3.33337H13.7502C14.0002 3.33337 14.2293 3.40282 14.4377 3.54171C14.646 3.6806 14.7988 3.8681 14.896 4.10421L16.6668 8.33337V15C16.6668 15.2362 16.587 15.4341 16.4272 15.5938C16.2675 15.7535 16.0696 15.8334 15.8335 15.8334H15.0002ZM17.5002 13.3334V6.16671L15.9793 2.50004H7.22933L7.60433 1.60421C7.70155 1.3681 7.85433 1.1806 8.06266 1.04171C8.271 0.902818 8.50016 0.833374 8.75016 0.833374H16.2502C16.5002 0.833374 16.7293 0.902818 16.9377 1.04171C17.146 1.1806 17.2988 1.3681 17.396 1.60421L19.1668 5.83337V12.5C19.1668 12.7362 19.087 12.9341 18.9272 13.0938C18.7675 13.2535 18.5696 13.3334 18.3335 13.3334H17.5002Z\",\n fill: \"#788B9B\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgTrafficJam);\nexport default __webpack_public_path__ + \"static/media/trafficJam.43b97620.svg\";\nexport { ForwardRef as ReactComponent };","import { isPast, isToday } from 'date-fns';\n\nimport { Validated } from '../Validator';\n\nconst isPastDate = (value: Date | null, error: TError): Validated =>\n value === null || (!isToday(value) && isPast(value))\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n\nexport default isPastDate;\n","import { parse, isValid, format } from 'date-fns';\n\nimport { Validated } from '../Validator';\n\nconst isValidDateFormat = (value: Date | null, dateFormat: string, error: TError): Validated => {\n const isValidDate = isValid(value);\n const formattedDate = isValidDate && value ? format(value, dateFormat) : null;\n\n const parsedDate = formattedDate ? parse(formattedDate, dateFormat, new Date()) : null;\n\n const isValidFormattedDate = parsedDate ? isValid(parsedDate) : false;\n\n return value === null || !isValidFormattedDate\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n};\n\nexport default isValidDateFormat;\n","import { parse, isValid, format } from 'date-fns';\n\nimport { Validated } from '../Validator';\n\nconst isValidTimeFormat = (value: Date | null, timeFormat: string, error: TError): Validated => {\n const isValidTime = isValid(value);\n\n const formattedTime = isValidTime && value ? format(value, timeFormat) : null;\n\n const parsedTime = formattedTime ? parse(formattedTime, timeFormat, new Date()) : null;\n\n const isValidFormattedTime = parsedTime ? isValid(parsedTime) : false;\n\n return value === null || !isValidFormattedTime\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n};\n\nexport default isValidTimeFormat;\n","/* eslint-disable max-statements */\n/* eslint-disable max-lines-per-function */\n/* eslint-disable complexity */\nimport { Select, SelectOption, TextField, ModalAction as Modal } from '@get-e/react-components';\nimport { Box, Checkbox, FormControlLabel, Grid, Typography, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { DatePicker, DateTimePicker, TimePicker } from '@mui/x-date-pickers-pro';\nimport dayjs from 'dayjs';\nimport { BaseError } from 'make-error-cause';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { DUMMY_DATE, REPEATS, WEEKDAYS } from '../../../constants';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../../constants/datePickerPlaceholder';\nimport { TIME_FORMATS } from '../../../constants/timeFormats';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport FormError from '../../../helpers/inputValidation/FormError';\nimport getFormErrorMessage from '../../../helpers/inputValidation/getFormErrorMessage';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport { Validated } from '../../../helpers/inputValidation/Validator';\nimport allValid from '../../../helpers/inputValidation/validators/allValid';\nimport and from '../../../helpers/inputValidation/validators/and';\nimport isAfterDate from '../../../helpers/inputValidation/validators/isAfterDate';\nimport isAfterTime from '../../../helpers/inputValidation/validators/isAfterTime';\nimport isFilledString from '../../../helpers/inputValidation/validators/isFilledString';\nimport isNotNull from '../../../helpers/inputValidation/validators/isNotNull';\nimport isPastDate from '../../../helpers/inputValidation/validators/isPastDate';\nimport isValidDateFormat from '../../../helpers/inputValidation/validators/isValidDateFormat';\nimport isValidTimeFormat from '../../../helpers/inputValidation/validators/isValidTimeFormat';\nimport { resolveApplicableOnDaysValue, resolveRepeatsInitialValue } from '../../../helpers/repeats';\nimport theme from '../../../styles/theme';\nimport { createStopSalesRule, editStopSalesRule, useStopSalesRule } from '../api';\nimport { BlockedPeriodRequest } from '../api/types';\n\nconst useStyles = makeStyles(styleTheme => ({\n formField: {\n marginBottom: '1.25rem',\n width: '100%',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n formFieldMobile: { marginBottom: '1.25rem' },\n dateFieldStart: {\n width: '50%',\n marginRight: '1rem',\n },\n dateFieldEnd: {\n width: '50%',\n marginLeft: '1rem',\n },\n checkbox: { height: '2rem' },\n cancelButton: {\n width: '150px',\n marginLeft: '1rem',\n color: COLORS.BLUE,\n border: `2px solid ${COLORS.BLUE}`,\n outline: '2px',\n '&:hover': { border: `2px solid ${COLORS.BLUE}` },\n },\n timeSepartor: { '& .MuiDateTimePickerToolbar-separator': { marginTop: '.7rem' } },\n}));\n\ninterface CreateAvailabilityModalProps {\n blockedPeriodId: string;\n isModalOpen: boolean;\n onClose: () => void;\n onSubmit: () => void;\n}\n\ninterface ValidatedBlockedPeriod {\n startDateTime: Validated;\n endDateTime: Validated;\n description: Validated;\n startTime?: Validated;\n endTime?: Validated;\n}\n\nconst CreateAvailabilityModal = ({ blockedPeriodId, isModalOpen, onClose, onSubmit }: CreateAvailabilityModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const [isSaving, setIsSaving] = useState(false);\n const { currentProfile: currentUser } = useCurrentProfileContext();\n const autoFocusRef = useRef();\n\n const [startDateTime, setStartDateTime] = useState(null);\n\n const [startDateTimeError, setStartDateTimeError] = useState(null);\n\n const [endDateTime, setEndDateTime] = useState(null);\n\n const [endDateTimeError, setEndDateTimeError] = useState(null);\n\n const [startTime, setStartTime] = useState(null);\n const [startTimeError, setStartTimeError] = useState(null);\n const [endTime, setEndTime] = useState(null);\n const [endTimeError, setEndTimeError] = useState(null);\n const [description, setDescription] = useState('');\n\n const [descriptionError, setDescriptionError] = useState(null);\n\n const [repeats, setRepeats] = useState(REPEATS.DO_NOT_REPEAT);\n\n const [applicableOnDays, setApplicableOnDays] = useState>([]);\n\n const [formError, setFormError] = useState(null);\n\n const [openStartDate, setOpenStartDate] = useState(false);\n const [openEndDate, setOpenEndDate] = useState(false);\n const [openStartTime, setOpenStartTime] = useState(false);\n const [openEndTime, setOpenEndTime] = useState(false);\n const [openStartDateTime, setOpenStartDateTime] = useState(false);\n const [openEndDateTime, setOpenEndDateTime] = useState(false);\n\n const { data: blockedPeriod, isFetching: isfetchingBlockedPeriod } = useStopSalesRule(\n currentUser.accountId?.toString() ?? '',\n blockedPeriodId,\n Boolean(blockedPeriodId)\n );\n\n useEffect(() => {\n if (blockedPeriodId && blockedPeriod) {\n const startDateTimeInitial = blockedPeriod.start ? dayjs(blockedPeriod.start).toDate() : null;\n\n const endDateTimeInitial = blockedPeriod.end ? dayjs(blockedPeriod.end).toDate() : null;\n\n const startTimeInitial = blockedPeriod.applicableStartTime\n ? dayjs(`${DUMMY_DATE} ${blockedPeriod.applicableStartTime}`).toDate()\n : null;\n\n const endTimeInitial = blockedPeriod.applicableEndTime\n ? dayjs(`${DUMMY_DATE} ${blockedPeriod.applicableEndTime}`).toDate()\n : null;\n\n setStartDateTime(startDateTimeInitial);\n setEndDateTime(endDateTimeInitial);\n setStartTime(startTimeInitial);\n setEndTime(endTimeInitial);\n setRepeats(resolveRepeatsInitialValue(blockedPeriod.applicableOnDays));\n setApplicableOnDays(blockedPeriod.applicableOnDays ?? []);\n setDescription(blockedPeriod.description);\n }\n }, [blockedPeriodId, blockedPeriod]);\n\n useEffect(() => {\n autoFocusRef.current?.focus();\n }, [autoFocusRef]);\n\n const isFieldDisabled = useMemo(\n () => Boolean(blockedPeriodId) && isfetchingBlockedPeriod,\n [blockedPeriodId, isfetchingBlockedPeriod]\n );\n\n const isBlockedTimeVisible = useMemo(() => {\n return repeats !== REPEATS.DO_NOT_REPEAT;\n }, [repeats]);\n\n const isRepeatsOnVisible = useMemo(() => {\n return repeats === REPEATS.CUSTOM;\n }, [repeats]);\n\n const validateFormFields = (): boolean => {\n const validated = {\n startDateTime: and(isNotNull(startDateTime, InputError.Empty), value =>\n and(isPastDate(startDateTime, InputError.InvalidPastDate), () =>\n isValidDateFormat(startDateTime, DATE_FORMATS['dd MMM yyyy hh:mm a'], InputError.InvalidDateFormat)\n )\n ),\n endDateTime: and(isNotNull(endDateTime, InputError.Empty), () =>\n and(isAfterDate(endDateTime, startDateTime, InputError.InvalidAfterDate), () =>\n isValidDateFormat(endDateTime, DATE_FORMATS['dd MMM yyyy hh:mm a'], InputError.InvalidDateFormat)\n )\n ),\n description: isFilledString(description, InputError.Empty),\n } as ValidatedBlockedPeriod;\n\n if (isBlockedTimeVisible) {\n const startTimeParsed = dayjs(`${DUMMY_DATE} ${dayjs(startTime).format(TIME_FORMATS['HH:mm:ss'])}`).toDate();\n\n const endTimeParsed = dayjs(`${DUMMY_DATE} ${dayjs(endTime).format(TIME_FORMATS['HH:mm:ss'])}`).toDate();\n\n validated.startTime = and(isNotNull(startTime, InputError.Empty), () =>\n isValidTimeFormat(startTime, TIME_FORMATS['HH:mm'], InputError.InvalidTimeFormat)\n );\n\n validated.endTime = and(isNotNull(endTime, InputError.Empty), () =>\n and(isAfterTime(endTimeParsed, startTimeParsed, InputError.InvalidAfterTime), () =>\n isValidTimeFormat(endTime, TIME_FORMATS['HH:mm'], InputError.InvalidTimeFormat)\n )\n );\n }\n\n if (!allValid(validated)) {\n setStartDateTimeError(validated.startDateTime.isValid ? null : validated.startDateTime.error);\n\n setEndDateTimeError(validated.endDateTime.isValid ? null : validated.endDateTime.error);\n\n setDescriptionError(validated.description.isValid ? null : validated.description.error);\n\n if (isBlockedTimeVisible && validated.startTime && validated.endTime) {\n setStartTimeError(validated.startTime.isValid ? null : validated.startTime.error);\n setEndTimeError(validated.endTime.isValid ? null : validated.endTime.error);\n }\n\n return false;\n }\n\n return true;\n };\n\n const submitForm = async () => {\n if (!validateFormFields()) {\n return;\n }\n\n const postData = {\n start: startDateTime ? dayjs(startDateTime).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']) : null,\n end: endDateTime ? dayjs(endDateTime).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']) : null,\n description,\n applicableOnDays: applicableOnDays.length ? applicableOnDays : null,\n applicableStartTime: startTime && isBlockedTimeVisible ? dayjs(startTime).format(TIME_FORMATS['HH:mm:ss']) : null,\n applicableEndTime: endTime && isBlockedTimeVisible ? dayjs(endTime).format(TIME_FORMATS['HH:mm:ss']) : null,\n } as BlockedPeriodRequest;\n\n try {\n setFormError(null);\n setIsSaving(true);\n\n if (blockedPeriodId) {\n await editStopSalesRule(currentUser.accountId?.toString() ?? '', blockedPeriodId, postData);\n } else {\n await createStopSalesRule(currentUser.accountId?.toString() ?? '', postData);\n }\n\n setIsSaving(false);\n onSubmit();\n } catch (error) {\n setIsSaving(false);\n\n if (error instanceof BaseError) {\n setFormError(new BaseError(error.message));\n return;\n }\n }\n };\n\n const handleApplicableOnDays = (key: keyof typeof WEEKDAYS, checked: boolean) => {\n if (checked) {\n !applicableOnDays.includes(key) && setApplicableOnDays(prevValue => [...prevValue, key]);\n } else {\n setApplicableOnDays(applicableOnDays.filter(element => element !== key));\n }\n };\n\n const handleStartTime = (newTime: Date | null) => {\n setStartTime(newTime);\n setStartTimeError(null);\n };\n\n const handleEndTime = (newTime: Date | null) => {\n setEndTime(newTime);\n setEndTimeError(null);\n };\n\n const handleRepeatsOn = (newValue: REPEATS) => {\n setRepeats(newValue);\n setFormError(null);\n\n if (newValue !== REPEATS.CUSTOM && newValue !== REPEATS.DO_NOT_REPEAT) {\n setApplicableOnDays([resolveApplicableOnDaysValue(newValue)]);\n } else {\n setApplicableOnDays([]);\n }\n\n if (newValue !== REPEATS.DO_NOT_REPEAT) {\n if (startDateTime !== null) {\n setStartTime(startDateTime);\n }\n\n if (endDateTime !== null) {\n setEndTime(endDateTime);\n }\n }\n };\n\n const resolveFormErrorMessage = (error: FormError | BaseError | null) => {\n if (error instanceof BaseError) {\n return error.message;\n }\n\n return t(getFormErrorMessage(FormError.UnexpectedError));\n };\n\n return (\n \n \n \n \n \n \n {t('rideInformation')}\n \n \n \n {isBlockedTimeVisible && (\n \n {\n setStartDateTime(newValue);\n setStartDateTimeError(null);\n setFormError(null);\n }}\n slotProps={{\n textField: {\n error: startDateTimeError !== null,\n helperText: startDateTimeError ? t(startDateTimeError) : undefined,\n variant: 'filled',\n required: true,\n inputProps: { readOnly: true },\n onClick: () => setOpenStartDate(true),\n },\n }}\n localeText={datePickerPlaceholder}\n onClose={() => setOpenStartDate(false)}\n open={openStartDate}\n />\n {\n setEndDateTime(newValue);\n setEndDateTimeError(null);\n setFormError(null);\n }}\n slotProps={{\n textField: {\n error: endDateTimeError !== null,\n helperText: endDateTimeError ? t(endDateTimeError) : undefined,\n variant: 'filled',\n required: true,\n inputProps: { readOnly: true },\n onClick: () => setOpenEndDate(true),\n },\n }}\n localeText={datePickerPlaceholder}\n onClose={() => setOpenEndDate(false)}\n open={openEndDate}\n />\n \n )}\n {!isBlockedTimeVisible && (\n \n {\n setStartDateTime(newValue);\n setStartDateTimeError(null);\n setFormError(null);\n }}\n disabled={isSaving || isFieldDisabled}\n slotProps={{\n textField: {\n error: startDateTimeError !== null,\n helperText: startDateTimeError ? t(startDateTimeError) : undefined,\n variant: 'filled',\n required: true,\n onClick: () => setOpenStartDateTime(true),\n },\n mobilePaper: { className: classes.timeSepartor },\n }}\n onClose={() => setOpenStartDateTime(false)}\n open={openStartDateTime}\n />\n {\n setEndDateTime(newValue);\n setEndDateTimeError(null);\n setFormError(null);\n }}\n disabled={isSaving || isFieldDisabled}\n slotProps={{\n textField: {\n error: endDateTimeError !== null,\n helperText: endDateTimeError ? t(endDateTimeError) : undefined,\n variant: 'filled',\n required: true,\n onClick: () => setOpenEndDateTime(true),\n },\n mobilePaper: { className: classes.timeSepartor },\n }}\n onClose={() => setOpenEndDateTime(false)}\n open={openEndDateTime}\n />\n \n )}\n \n \n \n \n \n {t('pages.availability.repetitionRules')}\n \n \n \n handleRepeatsOn(newValue)}\n >\n {Object.keys(REPEATS).map(repeat => (\n \n {REPEATS[repeat as keyof typeof REPEATS]}\n \n ))}\n \n \n \n {isRepeatsOnVisible && (\n <>\n \n \n {t('pages.availability.repeatsOn')}\n \n \n \n {Object.keys(WEEKDAYS).map(weekday => {\n return (\n \n handleApplicableOnDays(\n weekday as keyof typeof WEEKDAYS,\n event.target.checked\n )\n }\n />\n }\n label={WEEKDAYS[weekday as keyof typeof WEEKDAYS]}\n className={classes.checkbox}\n />\n );\n })}\n \n \n )}\n {isBlockedTimeVisible && (\n <>\n \n \n {t('pages.availability.blockedTimeOnSelectedWeekdays')}\n \n \n \n \n \n {\n handleStartTime(newValue);\n setFormError(null);\n }}\n format={TIME_FORMATS['HH:mm a']}\n slotProps={{\n textField: {\n error: startTimeError !== null,\n helperText: startTimeError ? t(startTimeError) : undefined,\n variant: 'filled',\n required: true,\n inputProps: { readOnly: true },\n onClick: () => setOpenStartTime(true),\n },\n }}\n ampm={false}\n onClose={() => setOpenStartTime(false)}\n open={openStartTime}\n />\n {\n handleEndTime(newValue);\n setFormError(null);\n }}\n format={TIME_FORMATS['HH:mm a']}\n slotProps={{\n textField: {\n error: endTimeError !== null,\n helperText: endTimeError ? t(endTimeError) : undefined,\n variant: 'filled',\n required: true,\n inputProps: { readOnly: true },\n onClick: () => setOpenEndTime(true),\n },\n }}\n ampm={false}\n onClose={() => setOpenEndTime(false)}\n open={openEndTime}\n />\n \n \n \n \n )}\n \n \n {t('pages.availability.description')}\n \n \n \n {\n setDescription(event.target.value);\n setDescriptionError(null);\n setFormError(null);\n }}\n label={t('pages.availability.yourDescription')}\n type=\"text\"\n autoFocus\n name=\"description\"\n inputRef={autoFocusRef}\n error={descriptionError !== null}\n helperText={descriptionError ? t(descriptionError) : undefined}\n required\n disabled={isSaving || isFieldDisabled}\n />\n \n {formError && (\n \n \n {formError ? resolveFormErrorMessage(formError) : null}\n \n \n )}\n \n \n \n );\n};\n\nexport default CreateAvailabilityModal;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport FlagOutlinedIcon from '@mui/icons-material/FlagOutlined';\nimport RepeatOutlinedIcon from '@mui/icons-material/RepeatOutlined';\nimport SportsScoreOutlinedIcon from '@mui/icons-material/SportsScoreOutlined';\nimport { Box, Tooltip, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { REPEATS } from '../../../constants';\nimport { COLORS } from '../../../constants/colors';\nimport { BUTTON_WIDTH } from '../../../constants/layout';\nimport { BlockedPeriodMessage } from '../../../helpers/repeats';\n\nconst useStyles = makeStyles({\n heading: {\n marginBottom: '1.875rem',\n color: COLORS.BLUE,\n },\n buttonFixedWidth: {\n width: `${BUTTON_WIDTH} !important`,\n height: '44px',\n },\n mobileContent: {\n color: COLORS.BLACK,\n marginLeft: '0.3rem !important',\n },\n cancelButton: {\n width: `${BUTTON_WIDTH}`,\n marginLeft: '1rem',\n color: COLORS.BLUE,\n border: `2px solid ${COLORS.BLUE}`,\n outline: '2px',\n '&:hover': { border: `2px solid ${COLORS.BLUE}` },\n },\n});\n\ninterface ConfirmDeleteModalProps {\n isModalOpen: boolean;\n onClose: () => void;\n repeats: REPEATS;\n blockedPeriodMessage: BlockedPeriodMessage;\n submitDelete: () => Promise;\n isSaving?: boolean;\n isFieldDisabled?: boolean;\n}\n\nconst ConfirmDeleteModal = ({\n isModalOpen,\n onClose,\n repeats,\n blockedPeriodMessage,\n submitDelete,\n isSaving,\n isFieldDisabled,\n}: ConfirmDeleteModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n return (\n \n \n {t('pages.availability.confirmDeleteBlockPeriodMessage1')}:\n \n \n \n \n \n \n {blockedPeriodMessage.part1} \n \n \n \n \n \n {blockedPeriodMessage.part2}\n \n {repeats !== REPEATS.DO_NOT_REPEAT && (\n \n \n \n \n {blockedPeriodMessage.part3}\n \n )}\n \n {t('pages.availability.confirmDeleteBlockPeriodMessage2')}\n \n \n {t('doYouWantToProceed')}\n \n \n \n );\n};\n\nexport default ConfirmDeleteModal;\n","import { DropdownMenu } from '@get-e/react-components';\nimport DeleteOutlineOutlinedIcon from '@mui/icons-material/DeleteOutlineOutlined';\nimport EditOutlinedIcon from '@mui/icons-material/EditOutlined';\nimport FlagOutlinedIcon from '@mui/icons-material/FlagOutlined';\nimport RepeatOutlinedIcon from '@mui/icons-material/RepeatOutlined';\nimport SportsScoreOutlinedIcon from '@mui/icons-material/SportsScoreOutlined';\nimport { Box, TableCell, TableRow, Tooltip, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { REPEATS } from '../../../constants';\nimport { COLORS } from '../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { BlockedPeriodMessage } from '../../../helpers/repeats';\nimport { BlockedPeriod } from '../api/types';\nimport ConfirmDeleteModal from './ConfirmDeleteModal';\n\nconst useStyles = makeStyles({\n tableRow: {\n height: '56px',\n cursor: 'pointer',\n transition: '150ms all ease-in-out',\n },\n tableCell: {\n fontFamily: 'inherit',\n color: COLORS.BLACK,\n background: COLORS.WHITE,\n },\n});\n\ninterface TableRowDesktopProps {\n repeats: REPEATS;\n blockedPeriod: BlockedPeriod;\n blockedPeriodMessage: BlockedPeriodMessage;\n handleEditBlockPeriod: (id: number) => void;\n handleDeleteBlockPeriod: (id: number) => Promise;\n}\n\nconst TableRowDesktop = ({\n repeats,\n blockedPeriod,\n blockedPeriodMessage,\n handleEditBlockPeriod,\n handleDeleteBlockPeriod,\n}: TableRowDesktopProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const { showNotification } = useNotificationContext();\n\n const [isConfirmDeleteModalOpen, setIsConfirmDeleteModalOpen] = useState(false);\n\n const handleSubmitDelete = async (id: number) => {\n try {\n await handleDeleteBlockPeriod(id);\n } catch (error) {\n showNotification(t('errors.deleteBlockedPeriod'), Severity.Error);\n } finally {\n setIsConfirmDeleteModalOpen(false);\n }\n };\n\n return (\n <>\n handleEditBlockPeriod(blockedPeriod.id)}\n key={blockedPeriod.id}\n className={classes.tableRow}\n hover\n >\n \n {blockedPeriod.description}\n \n \n \n \n \n \n \n \n {blockedPeriodMessage.part1} \n \n \n \n \n \n {blockedPeriodMessage.part2}\n {repeats !== REPEATS.DO_NOT_REPEAT && (\n \n \n \n \n \n )}\n {blockedPeriodMessage.part3}\n {\n event.preventDefault();\n event.stopPropagation();\n }}\n >\n handleEditBlockPeriod(blockedPeriod.id),\n },\n {\n id: 2,\n label: t('buttonName.delete'),\n icon: DeleteOutlineOutlinedIcon,\n iconColor: COLORS.BLUE_DARK,\n labelColor: COLORS.BLUE_DARK,\n onClick: () => setIsConfirmDeleteModalOpen(true),\n },\n ]}\n />\n \n \n \n \n {isConfirmDeleteModalOpen && (\n setIsConfirmDeleteModalOpen(false)}\n repeats={repeats}\n blockedPeriodMessage={blockedPeriodMessage}\n submitDelete={() => handleSubmitDelete(blockedPeriod.id)}\n />\n )}\n \n );\n};\n\nexport default TableRowDesktop;\n","import { Tooltip, TooltipProps, styled } from '@mui/material';\nimport { tooltipClasses } from '@mui/material/Tooltip';\nimport React from 'react';\n\ninterface CustomWidthTooltipProps extends TooltipProps {\n maxWidth?: number;\n}\n\nexport const CustomWidthTooltip = styled(({ className, maxWidth, ...props }: CustomWidthTooltipProps) => (\n \n))({ [`& .${tooltipClasses.tooltip}`]: { maxWidth: ({ maxWidth }: CustomWidthTooltipProps) => maxWidth } });\n","import { SvgIconComponent } from '@mui/icons-material';\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';\nimport { Box, Button, ListItemIcon, ListItemText, SvgIcon } from '@mui/material';\nimport Menu from '@mui/material/Menu';\nimport MenuItem from '@mui/material/MenuItem';\nimport React, { ReactNode, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../constants/colors';\nimport { CustomWidthTooltip } from './CustomWidthTooltip';\n\nexport interface DropdownMenuOption {\n id: number;\n label: string;\n onClick?: () => void;\n icon?: SvgIconComponent;\n labelColor?: string;\n iconColor?: string;\n iconSize?: string;\n tooltip?: string;\n}\n\ninterface DropdownButtonMenuProps {\n options: DropdownMenuOption[];\n buttonLabel: string;\n buttonIcon?: ReactNode;\n onClick?: () => void;\n buttonHeight?: string;\n tooltip?: string;\n tooltipWidth?: number;\n width?: string;\n isDisabled?: boolean;\n fontSize?: string;\n buttonClassName?: string;\n}\n\nconst DropdownButtonMenu = ({\n options,\n buttonLabel,\n buttonIcon,\n onClick,\n buttonHeight,\n tooltip,\n tooltipWidth,\n width,\n isDisabled,\n fontSize,\n buttonClassName,\n}: DropdownButtonMenuProps) => {\n const [anchorEl, setAnchorEl] = useState(null);\n const open = Boolean(anchorEl);\n const { t } = useTranslation();\n\n const handleButtonClick = (event: React.MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n onClick?.();\n };\n\n const handleMenuClick = (event: React.MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const handleOptionClick = (option: DropdownMenuOption) => {\n option.onClick && option.onClick();\n handleClose();\n };\n\n return (\n <>\n \n \n {options.length > 0 && (\n }\n />\n )}\n \n {options.length > 0 && (\n \n {options.map(option => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleOptionClick(option);\n }}\n sx={{\n padding: '.75rem 1rem',\n '&:hover': { backgroundColor: COLORS.LIGHT_GRAY },\n }}\n >\n {option.icon && (\n \n \n \n )}\n {option.label}\n \n ))}\n \n )}\n \n );\n};\n\nexport default DropdownButtonMenu;\n","import DeleteOutlineOutlinedIcon from '@mui/icons-material/DeleteOutlineOutlined';\nimport EditOutlinedIcon from '@mui/icons-material/EditOutlined';\nimport ExpandMoreOutlinedIcon from '@mui/icons-material/ExpandMoreOutlined';\nimport FlagOutlinedIcon from '@mui/icons-material/FlagOutlined';\nimport RepeatOutlinedIcon from '@mui/icons-material/RepeatOutlined';\nimport SportsScoreOutlinedIcon from '@mui/icons-material/SportsScoreOutlined';\nimport { Accordion, AccordionDetails, AccordionSummary, Box, TableCell, TableRow, Tooltip, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport DropdownButtonMenu from '../../../components/dropdownButtonMenu/DropdownButtonMenu';\nimport { REPEATS } from '../../../constants';\nimport { COLORS } from '../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { BlockedPeriodMessage } from '../../../helpers/repeats';\nimport { BlockedPeriod } from '../api/types';\nimport ConfirmDeleteModal from './ConfirmDeleteModal';\n\nconst useStyles = makeStyles({\n tableRow: { cursor: 'pointer' },\n tableCell: {\n color: COLORS.BLACK,\n background: COLORS.WHITE,\n },\n editButton: {\n width: '150px',\n marginRight: '1rem',\n marginLeft: '0.2rem',\n color: COLORS.BLUE,\n border: `2px solid ${COLORS.BLUE}`,\n },\n deleteButton: {\n width: '150px',\n color: COLORS.RED,\n border: `2px solid ${COLORS.RED}`,\n },\n accordion: {\n '& .MuiAccordionSummary-root': { padding: '0 0.5rem' },\n '& .MuiAccordionSummary-root.Mui-expanded': {\n minHeight: 'unset',\n background: COLORS.EXTRA_LIGHT_GRAY,\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n },\n '& .MuiAccordionSummary-content': { margin: '1rem 0' },\n '& .MuiAccordionSummary-content.Mui-expanded': { margin: '1rem 0' },\n border: 'none',\n boxShadow: 'none',\n },\n mobileContent: {\n color: COLORS.BLACK,\n marginLeft: '0.3rem',\n },\n});\n\ninterface TableRowMobileProps {\n repeats: REPEATS;\n blockedPeriod: BlockedPeriod;\n blockedPeriodMessage: BlockedPeriodMessage;\n handleEditBlockPeriod: (id: number) => void;\n handleDeleteBlockPeriod: (id: number) => Promise;\n}\n\nconst TableRowMobile = ({\n repeats,\n blockedPeriod,\n blockedPeriodMessage,\n handleEditBlockPeriod,\n handleDeleteBlockPeriod,\n}: TableRowMobileProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const [isConfirmDeleteModalOpen, setIsConfirmDeleteModalOpen] = useState(false);\n const { showNotification } = useNotificationContext();\n\n const handleSubmitDelete = async (id: number) => {\n try {\n await handleDeleteBlockPeriod(id);\n } catch (error) {\n showNotification(t('errors.deleteBlockedPeriod'), Severity.Error);\n } finally {\n setIsConfirmDeleteModalOpen(false);\n }\n };\n\n return (\n <>\n \n \n \n }\n aria-controls={`panel${blockedPeriod.id}-content`}\n >\n {blockedPeriod.description}\n \n handleEditBlockPeriod(blockedPeriod.id)}\n >\n \n \n \n \n \n {blockedPeriodMessage.part1}\n \n \n \n \n \n {blockedPeriodMessage.part2}\n \n {repeats !== REPEATS.DO_NOT_REPEAT && (\n \n \n \n \n {blockedPeriodMessage.part3}\n \n )}\n \n }\n onClick={() => handleEditBlockPeriod(blockedPeriod.id)}\n options={[\n {\n id: 1,\n label: t('buttonName.delete'),\n icon: DeleteOutlineOutlinedIcon,\n onClick: () => setIsConfirmDeleteModalOpen(true),\n },\n ]}\n />\n \n \n \n \n \n \n {isConfirmDeleteModalOpen && (\n setIsConfirmDeleteModalOpen(false)}\n repeats={repeats}\n blockedPeriodMessage={blockedPeriodMessage}\n submitDelete={() => handleSubmitDelete(blockedPeriod.id)}\n />\n )}\n \n );\n};\n\nexport default TableRowMobile;\n","import { PrimaryButton, TableBody, TableContainer, TableHead, NoResultsDataGrid as NoResults } from '@get-e/react-components';\nimport AddIcon from '@mui/icons-material/Add';\nimport { FormControlLabel, Grid, Switch, Table, TableCell, TableRow, Typography, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport dayjs from 'dayjs';\nimport React, { FunctionComponent, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { DUMMY_DATE } from '../../constants';\nimport { COLORS } from '../../constants/colors';\nimport { BUTTON_WIDTH, MIN_BUTTON_WIDTH } from '../../constants/layout';\nimport { useCurrentProfileContext } from '../../context/CurrentProfileContext';\nimport { useLocaleContext } from '../../context/LocaleContext';\nimport { getWhenMessage, resolveRepeatsInitialValue } from '../../helpers/repeats';\nimport theme from '../../styles/theme';\nimport { deleteStopSalesRule, useCurrentStopSalesRules, usePastStopSalesRules } from './api';\nimport AvailabilityLoadingSkeleton from './components/AvailabilityLoadingSkeleton';\nimport CreateAvailabilityModal from './components/CreateAvailabilityModal';\nimport TableRowDesktop from './components/TableRowDesktop';\nimport TableRowMobile from './components/TableRowMobile';\n\nconst useStyles = ({ isButtonWidthFitContent }: { isButtonWidthFitContent: boolean }) =>\n makeStyles({\n root: {\n margin: '0',\n padding: '2rem',\n },\n rootMobile: {\n margin: '0 auto',\n padding: '1rem',\n },\n pageHeader: {\n display: 'flex',\n alignItems: 'center',\n paddingBottom: '2rem',\n color: COLORS.BLACK,\n },\n tableHead: { height: '56px' },\n pageHeaderMobile: {\n display: 'flex',\n flexDirection: 'column',\n paddingBottom: '2rem',\n color: COLORS.BLACK,\n },\n tableContainer: { background: COLORS.WHITE },\n tableCell: {\n color: COLORS.BLACK,\n background: COLORS.WHITE,\n },\n addButton: {\n width: isButtonWidthFitContent ? 'fit-content' : BUTTON_WIDTH,\n minWidth: isButtonWidthFitContent ? MIN_BUTTON_WIDTH : 'auto',\n paddingLeft: '0.25rem',\n paddingRight: '0.25rem',\n },\n });\n\nconst Availability: FunctionComponent = () => {\n const { locale } = useLocaleContext();\n const classes = useStyles({ isButtonWidthFitContent: locale === 'es-ES' })();\n const [showPastPeriod, setShowPastPeriod] = useState(false);\n const mobileView = useMediaQuery(theme.breakpoints.down('lg'));\n const { currentProfile: currentUser } = useCurrentProfileContext();\n const { t } = useTranslation();\n const selectedBlockedPeriodId = useRef('');\n const [isCreateAvailabilityModalOpen, setIsCreateAvailabilityModalOpen] = useState(false);\n\n const {\n data: currentStopSalesRules,\n isFetching: isfetchingCurrent,\n refetch: refetchCurrent,\n } = useCurrentStopSalesRules(currentUser.accountId?.toString() ?? '', !showPastPeriod);\n\n const {\n data: pastStopSalesRules,\n isFetching: isfetchingPast,\n refetch: refetchPast,\n } = usePastStopSalesRules(currentUser.accountId?.toString() ?? '', showPastPeriod);\n\n const data = showPastPeriod ? pastStopSalesRules : currentStopSalesRules;\n\n const handleAddBlockPeriod = () => {\n selectedBlockedPeriodId.current = '';\n setIsCreateAvailabilityModalOpen(true);\n };\n\n const handleEditBlockPeriod = (id: number) => {\n selectedBlockedPeriodId.current = id.toString();\n setIsCreateAvailabilityModalOpen(true);\n };\n\n const handleDeleteBlockPeriod = async (id: number) => {\n await deleteStopSalesRule(currentUser.accountId?.toString() ?? '', id.toString());\n showPastPeriod ? await refetchPast() : await refetchCurrent();\n };\n\n const togglePastPeriod = (isChecked: boolean) => {\n setShowPastPeriod(isChecked);\n };\n\n const handleAvailabilitySubmit = async () => {\n setIsCreateAvailabilityModalOpen(false);\n showPastPeriod ? await refetchPast() : await refetchCurrent();\n };\n\n if (isfetchingCurrent || isfetchingPast) {\n return ;\n }\n\n return (\n \n \n \n {t('availability')}\n \n \n \n }>\n {t('blockPeriod')}\n \n \n \n \n \n \n \n \n \n \n {t('pages.availability.description')}\n \n \n {!mobileView && (\n \n {t('when')}\n \n )}\n \n togglePastPeriod(event.target.checked)}\n />\n }\n label={t('pages.availability.showPastPeriod')}\n sx={{\n marginLeft: 'auto',\n marginRight: '0',\n color: COLORS.BLACK,\n }}\n />\n \n \n \n \n {!data.length && !isfetchingCurrent && !isfetchingPast && (\n \n \n \n \n \n )}\n {data?.map(blockedPeriod => {\n const repeats = resolveRepeatsInitialValue(blockedPeriod.applicableOnDays);\n\n const blockedPeriodMessage = getWhenMessage(\n repeats,\n dayjs(blockedPeriod.start).toDate(),\n dayjs(blockedPeriod.end).toDate(),\n dayjs(`${DUMMY_DATE} ${blockedPeriod.applicableStartTime}`).toDate(),\n dayjs(`${DUMMY_DATE} ${blockedPeriod.applicableEndTime}`).toDate(),\n blockedPeriod.applicableOnDays ?? []\n );\n\n if (mobileView) {\n return (\n \n );\n }\n\n return (\n \n );\n })}\n \n
\n
\n
\n
\n {isCreateAvailabilityModalOpen && (\n setIsCreateAvailabilityModalOpen(false)}\n onSubmit={handleAvailabilitySubmit}\n />\n )}\n \n );\n};\n\nexport default Availability;\n","import { makeStyles, createStyles } from '@mui/styles';\nimport { TOOLBAR_HEIGHT } from './theme';\n\nconst iframeStyles = makeStyles(() =>\n createStyles({\n iframe: {\n width: '100%',\n height: `calc(100vh - ${TOOLBAR_HEIGHT}px)`,\n border: 'none',\n },\n })\n);\n\nexport default iframeStyles;\n","import { PrimaryButton } from '@get-e/react-components';\nimport { Typography, Grid } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React from 'react';\n\nimport { COLORS } from '../../constants/colors';\n\nconst useStyles = makeStyles({\n container: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n maxWidth: '20rem',\n },\n icon: {\n height: '9.5rem',\n width: '8rem',\n },\n});\n\ninterface ErrorPageProps {\n icon: string;\n header: string;\n description: string;\n buttonTitle?: string;\n onButtonClick?: () => void;\n isButtonVisable?: boolean;\n}\n\nconst ErrorPage = ({\n onButtonClick = () => {},\n icon,\n header,\n description,\n buttonTitle = '',\n isButtonVisable = true,\n}: ErrorPageProps) => {\n const classes = useStyles();\n\n return (\n \n
\n {header}\n \n {header}\n \n \n {description}\n \n {isButtonVisable && (\n \n {buttonTitle}\n \n )}\n
\n \n );\n};\n\nexport default ErrorPage;\n","export const FIELD = '';\nexport const BUTTON = '\n \n \n
\n
\n \n {t('email')}\n \n setShowCopyIcon(true)}\n onMouseLeave={() => handleMouseLeave()}\n >\n {t('contact.emailAddress')}\n {showCopyIcon ? (\n \n handleCopyClick(t('contact.emailAddress'))}\n >\n {copied ? : }\n \n \n ) : null}\n \n
\n
\n
\n
\n \n {t('modals.contact.phoneAndWhatsapp')}\n \n \n {contacts.map(details => (\n \n window.open(\n `${WEB_WHATSAPP_REDIRECTING}${details.phone.replace(/\\s/g, '')}`,\n '_blank'\n )\n }\n >\n \n \n \n \n \n ))}\n \n
\n
\n \n \n \n );\n};\n\nexport default ContactUsModal;\n","import { Theme } from '@mui/material/styles';\nimport { makeStyles, createStyles } from '@mui/styles';\n\nimport { COLORS } from '../constants/colors';\n\nconst useFormStyles = makeStyles((theme: Theme) =>\n createStyles({\n root: {\n display: 'flex',\n flexWrap: 'wrap',\n width: '100%',\n },\n withoutLabel: { marginTop: theme.spacing(3) },\n textField: {\n width: '50ch',\n height: '70px',\n marginBottom: '2rem',\n\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n permissionsContainer: { margin: '1em 0 0 0' },\n passwordField: { height: '80px' },\n formGroup: {\n width: '100%',\n '& > *': { marginRight: theme.spacing(1) },\n },\n customLogin: {\n height: 'auto',\n width: '50ch',\n },\n formContainer: {\n padding: theme.spacing(4),\n maxWidth: '424px',\n margin: '1em auto',\n backgroundColor: theme.palette.common.white,\n [theme.breakpoints.down('xs')]: { margin: '0 auto 2em' },\n },\n margin: { margin: theme.spacing(3, 0, 0) },\n disabledField: {\n '& .MuiInputBase-root.MuiFilledInput-root.Mui-disabled': {\n backgroundColor: COLORS.WHITE,\n border: `1px solid ${COLORS.BLACK_12}`,\n '&:before': { borderBottomStyle: 'none' },\n },\n '& .MuiInputBase-input.MuiFilledInput-input.Mui-disabled': { WebkitTextFillColor: COLORS.BLACK },\n },\n })\n);\n\nexport default useFormStyles;\n","import { AxiosResponse } from 'axios';\nimport { useQuery } from 'react-query';\n\nimport { USE_INVITED_USERS, USE_USER_PROFILE } from '../../../constants/queryKeys';\nimport apiClient from '../../../services/api';\nimport {\n INVITED_USERS,\n USER_INVITE,\n USER_PROFILE,\n getRevokeUserRoute,\n getUpdateUserStatusRoute,\n getUserRoute,\n getUsersRoute,\n} from '../../../services/routes';\nimport { EditUserRequest, InviteUserRequest, User, UserProfileRequest } from './types';\n\nexport const useUsers = (key: string, isDeactivated: boolean) => {\n const { data, isLoading, isError, isFetching, refetch } = useQuery([key], () => getUsers(isDeactivated), {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n });\n\n return {\n data: data ?? [],\n isLoading,\n isError,\n isFetching,\n refetch,\n };\n};\n\nexport const useInvitedUsers = () => {\n const { data, isLoading, isError, isFetching, refetch } = useQuery([USE_INVITED_USERS], () => getInvitedUsers(), {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n });\n\n return {\n data: data ?? [],\n isLoading,\n isError,\n isFetching,\n refetch,\n };\n};\n\nconst getUsers = async (isDeactivated: boolean): Promise => {\n const { data } = await apiClient.get(getUsersRoute(isDeactivated));\n\n return data;\n};\n\nconst getInvitedUsers = async (): Promise => {\n const { data } = await apiClient.get(INVITED_USERS);\n\n return data;\n};\n\nexport const inviteUser = async (payload: InviteUserRequest): Promise => {\n const response = await apiClient.post(USER_INVITE, payload);\n\n return response;\n};\n\nexport const editUser = async (id: string, payload: EditUserRequest): Promise => {\n const response = await apiClient.put(getUserRoute(id), payload);\n\n return response;\n};\n\nexport const revokeUser = async (id: string): Promise => {\n const response = await apiClient.put(getRevokeUserRoute(id));\n\n return response;\n};\n\nexport const updateUserStatus = async (id: string, isDeactivated: boolean): Promise => {\n const response = await apiClient.put(getUpdateUserStatusRoute(id), { isDeactivated });\n\n return response;\n};\n\nexport const updateUserProfile = async (variables: UserProfileRequest): Promise => {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n const { email, firstName, lastName, password, password_confirmation } = variables;\n\n const payload = {\n email,\n firstName,\n lastName,\n } as UserProfileRequest;\n\n if (password && password_confirmation) {\n payload.password = password;\n payload.password_confirmation = password_confirmation;\n }\n\n const response = await apiClient.put(USER_PROFILE, payload);\n\n return response;\n};\n\nexport const useUserProfile = () =>\n useQuery([USE_USER_PROFILE], () => getUserProfile(), {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n cacheTime: 600000,\n staleTime: 600000,\n });\n\nexport const getUserProfile = async (): Promise => {\n const { data } = await apiClient.get(USER_PROFILE);\n\n return data;\n};\n","import { Form, TextField, ModalAction as Modal } from '@get-e/react-components';\nimport { AxiosError, AxiosResponse } from 'axios';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation as useReactQueryMutation } from 'react-query';\n\nimport ShowPasswordButton from '../../../components/buttons/showPasswordButton/ShowPasswordButton';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport and from '../../../helpers/inputValidation/validators/and';\nimport isEmail from '../../../helpers/inputValidation/validators/isEmail';\nimport isEqualString from '../../../helpers/inputValidation/validators/isEqualString';\nimport isFilledString from '../../../helpers/inputValidation/validators/isFilledString';\nimport isPasswordStrong from '../../../helpers/inputValidation/validators/isPasswordStrong';\nimport useFormStyles from '../../../styles/Form';\nimport { updateUserProfile } from '../api';\nimport { User } from '../api/types';\n\ninterface EditUserProfileFields {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n password: string;\n confirmPassword: string;\n}\n\ninterface EditUserProfileError {\n firstName: string | null;\n lastName: string | null;\n email: string | null;\n password: string | null;\n confirmPassword: string | null;\n}\n\ninterface EditUserProfileModalProps {\n user: User;\n onClose: () => void;\n onUserProfileUpdated?: () => Promise;\n}\n\nconst EditUserProfileModal = ({ user, onClose, onUserProfileUpdated }: EditUserProfileModalProps) => {\n const formClasses = useFormStyles();\n const { t } = useTranslation();\n const [showingPassword, setShowingPassword] = useState(false);\n const [showingConfirmPassword, setShowingConfirmPassword] = useState(false);\n const { showNotification } = useNotificationContext();\n\n const [values, setValues] = useState({\n id: user.id,\n firstName: user.firstName,\n lastName: user.lastName,\n email: user.email,\n password: '',\n confirmPassword: '',\n });\n\n const [formErrors, setFormErrors] = useState({\n firstName: null,\n lastName: null,\n email: null,\n password: null,\n confirmPassword: null,\n });\n\n const { mutate: updateUserProfileMutation, isLoading } = useReactQueryMutation(updateUserProfile, {\n onSuccess: () => {\n onUserProfileUpdated && onUserProfileUpdated();\n onClose();\n },\n onError: (error: AxiosError) => {\n onUserProfileUpdated && onUserProfileUpdated();\n handleServerErrors(error);\n },\n });\n\n const handleServerErrors = (errors: AxiosError) => {\n const serverErrors = (errors.response as AxiosResponse).data.errors;\n\n const fieldErrors: EditUserProfileError = {\n firstName: serverErrors.firstName ? serverErrors.firstName[0] : null,\n lastName: serverErrors.lastName ? serverErrors.lastName[0] : null,\n email: serverErrors.email ? serverErrors.email[0] : null,\n password: serverErrors.password ? serverErrors.password[0] : null,\n confirmPassword: serverErrors.confirmPassword ? serverErrors.confirmPassword[0] : null,\n };\n\n setFormErrors({ ...fieldErrors });\n };\n\n const handleUpdateProfile = () => {\n updateUserProfileMutation({\n email: values.email.trim(),\n firstName: values.firstName.trim(),\n lastName: values.lastName.trim(),\n password: values.password.trim(),\n password_confirmation: values.confirmPassword.trim(),\n });\n\n showNotification(t('modals.edit.editSuccessMessage'), Severity.Info);\n };\n\n const handleSubmit = () => {\n if (!validateFields()) {\n return;\n }\n\n handleUpdateProfile();\n };\n\n const handleChange = (key: T, newValue: EditUserProfileFields[T] & string): void => {\n setValues({\n ...values,\n [key]: newValue,\n });\n setFormErrors(prevStateForm => ({\n ...prevStateForm,\n [key]: null,\n }));\n };\n\n const validateFields = (): boolean => {\n const shouldValidatePassword = values.password.trim() !== '';\n\n const validated = {\n firstName: isFilledString(values.firstName, InputError.Empty),\n lastName: isFilledString(values.lastName, InputError.Empty),\n email: and(isFilledString(values.email, InputError.Empty), () => isEmail(values.email, InputError.InvalidEmail)),\n password: isPasswordStrong(values.password, InputError.NotStrongPassword),\n confirmPassword: isEqualString(values.confirmPassword, values.password, InputError.NoMatch),\n };\n\n const fieldErrors: EditUserProfileError = {\n firstName: validated.firstName.isValid ? null : t(validated.firstName.error),\n lastName: validated.lastName.isValid ? null : t(validated.lastName.error),\n email: validated.email.isValid ? null : t(validated.email.error),\n password: validated.password.isValid || !shouldValidatePassword ? null : validated.password.error,\n confirmPassword:\n validated.confirmPassword.isValid || !shouldValidatePassword ? null : validated.confirmPassword.error,\n };\n\n const isValid = Object.values(fieldErrors).every(error => error === null);\n\n !isValid && setFormErrors(fieldErrors);\n\n return isValid;\n };\n\n return (\n \n
\n handleChange('firstName', event.target.value)}\n required\n value={values.firstName}\n />\n handleChange('lastName', event.target.value)}\n required\n value={values.lastName}\n />\n handleChange('email', event.target.value)}\n required\n value={values.email}\n />\n handleChange('password', event.target.value)}\n InputProps={{\n endAdornment: (\n {\n setShowingPassword(password);\n }}\n />\n ),\n autoComplete: 'new-password',\n }}\n error={formErrors.password !== null}\n helperText={formErrors.password ? t(formErrors.password) : null}\n required\n className={formClasses.textField}\n />\n handleChange('confirmPassword', event.target.value)}\n InputProps={{\n endAdornment: (\n {\n setShowingConfirmPassword(password);\n }}\n />\n ),\n autoComplete: 'confirm-new-password',\n }}\n error={formErrors.confirmPassword !== null}\n helperText={formErrors.confirmPassword ? t(formErrors.confirmPassword) : null}\n required\n className={formClasses.textField}\n />\n \n \n );\n};\n\nexport default EditUserProfileModal;\n","import { IconedData } from '@get-e/react-components';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport PhoneOutlinedIcon from '@mui/icons-material/PhoneOutlined';\nimport WhatsAppIcon from '@mui/icons-material/WhatsApp';\nimport { Box, IconButton, Link, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../constants/colors';\nimport { OPERATIONS_EMAIL, UK_GLOBAL_OPERATIONS, WEB_WHATSAPP_REDIRECTING } from '../../constants/contacts';\nimport { useCurrentProfileContext } from '../../context/CurrentProfileContext';\n\nconst useStyles = makeStyles({\n phoneBox: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n marginBottom: '.25rem',\n },\n});\n\nconst handleOnMailClick = () => (window.location.href = `mailto:${OPERATIONS_EMAIL}`);\n\nconst ContactUsContact = () => {\n const classes = useStyles();\n const { t } = useTranslation();\n const { currentProfile } = useCurrentProfileContext();\n\n return (\n <>\n \n \n handleOnMailClick()}\n />\n \n window.open(`${WEB_WHATSAPP_REDIRECTING}${UK_GLOBAL_OPERATIONS.replace(/\\s/g, '')}`, '_blank')}\n >\n \n \n \n \n \n \n {currentProfile?.accountManager && (\n \n \n {t('modals.contact.accountManager')}: {currentProfile?.accountManager}\n {currentProfile?.accountEmail && (\n <>\n
\n \n {currentProfile?.accountEmail}\n \n \n )}\n \n
\n )}\n \n );\n};\n\nexport default ContactUsContact;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport ContactUsContact from './ContactUsContent';\n\nconst useStyles = makeStyles({ confirmButton: { width: '100% !important' } });\n\ninterface ContactUsProps {\n isModalOpen: boolean;\n onClose: () => void;\n}\n\nconst ContactUsModal = ({ isModalOpen, onClose }: ContactUsProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n return (\n \n \n \n );\n};\n\nexport default ContactUsModal;\n","import { makeStyles, createStyles } from '@mui/styles';\n\nconst navigationLogoStyles = makeStyles(() =>\n createStyles({\n smallLogo: {\n width: '23px',\n margin: '1em auto',\n display: 'block',\n },\n largeLogo: {\n width: '100%',\n maxWidth: '100px',\n margin: '1em auto',\n display: 'block',\n },\n companyInformation: {\n fontSize: '0.75em',\n color: 'white',\n textAlign: 'center',\n margin: '0',\n },\n companyInformationContainer: {\n margin: '1em 0',\n width: '100%',\n },\n })\n);\n\nexport default navigationLogoStyles;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport largeLogo from '../../public/assets/images/logoDarkBackground.svg';\nimport smallLogo from '../../public/assets/images/logoIcon.svg';\nimport navigationLogoStyles from './NavigationLogo.styles';\n\ninterface LogoProps {\n closed: boolean;\n}\n\nconst NavigationLogo = ({ closed }: LogoProps): JSX.Element => {\n const currentYear = new Date().getFullYear();\n\n const classes = navigationLogoStyles();\n const { t } = useTranslation();\n\n return (\n
\n {closed ? (\n {t('getE.logo.alt')}\n ) : (\n <>\n {t('getE.logo.alt')}\n

{t('getE.companyName')}

\n

2015-{currentYear}

\n \n )}\n
\n );\n};\n\nexport default NavigationLogo;\n","import { matchPath } from 'react-router-dom';\n\nexport function isMatchPath(path: string): boolean {\n const fullPath = `${path}(/*)?`;\n\n return Boolean(matchPath(window.location.pathname, { path: fullPath }));\n}\n","import { ListItemButton, ListItemIcon, ListItemText, Tooltip } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport React from 'react';\nimport { NavLink } from 'react-router-dom';\n\nimport { COLORS } from '../../constants/colors';\nimport { useCurrentProfileContext } from '../../context/CurrentProfileContext';\nimport { isMatchPath } from '../../helpers/isMatchPath';\n\nconst useStyles = makeStyles({\n selectedItem: { background: `${COLORS.WHITE_20} !important` },\n item: {\n padding: '.5rem',\n '&:hover': { background: `${COLORS.WHITE_10} !important` },\n '& > div': { paddingLeft: '.1rem' },\n },\n separatedItem: { marginTop: '.5rem' },\n});\n\ninterface MenuListItemProps {\n icon: JSX.Element;\n label: string;\n href: string;\n onClick?: () => void;\n disableMathcingPath?: boolean;\n isSeparateItem?: boolean;\n}\n\nexport const MenuListItem = ({ icon, label, href, onClick, disableMathcingPath = false, isSeparateItem }: MenuListItemProps) => {\n const classes = useStyles();\n const { isMenuClosed } = useCurrentProfileContext();\n\n return (\n \n \n {icon}\n {label}\n \n \n );\n};\n","import List from '@material-ui/core/List';\nimport AddIcon from '@material-ui/icons/Add';\nimport BarChartIcon from '@material-ui/icons/BarChart';\nimport FolderIcon from '@material-ui/icons/Folder';\nimport ListIcon from '@material-ui/icons/List';\nimport PersonIcon from '@material-ui/icons/Person';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { BOOKING_TOOL, DOCUMENTS, EXPORT, RIDES, USERS } from '../../../constants/urlPaths';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { MenuListItem } from '../../menuListItem/MenuListItem';\nimport navigationStyles from '../NavigationMenu.styles';\n\nconst CustomerList = ({ showDocuments }) => {\n const classes = navigationStyles();\n const { t } = useTranslation();\n const { currentProfile } = useCurrentProfileContext();\n\n return (\n <>\n \n
\n }\n label={t('navigation.customer.bookingTool')}\n href={BOOKING_TOOL}\n />\n } label={t('rides')} href={RIDES} />\n }\n label={t('navigation.customer.export')}\n href={EXPORT}\n />\n {currentProfile.permissions.manageUsers && (\n }\n label={t('users')}\n href={USERS}\n data-testid=\"users-tab\"\n />\n )}\n {showDocuments && (\n } label={t('documents')} href={DOCUMENTS} />\n )}\n
\n
\n \n );\n};\n\nexport default CustomerList;\n","import List from '@material-ui/core/List';\nimport FolderIcon from '@material-ui/icons/Folder';\nimport ListIcon from '@material-ui/icons/List';\nimport PersonOutlineIcon from '@material-ui/icons/PersonOutline';\nimport ContactMailIcon from '@mui/icons-material/ContactMail';\nimport DirectionsCarFilledIcon from '@mui/icons-material/DirectionsCarFilled';\nimport EventBusyIcon from '@mui/icons-material/EventBusy';\nimport ReceiptLongIcon from '@mui/icons-material/ReceiptLong';\nimport StarIcon from '@mui/icons-material/Star';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { AVAILABILITY, DOCUMENTS, DRIVERS, INVOICES, REPORTS, RIDES, USERS, VEHICLES } from '../../../constants/urlPaths';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { MenuListItem } from '../../menuListItem/MenuListItem';\nimport navigationStyles from '../NavigationMenu.styles';\n\nconst SupplierList = ({ showDocuments }) => {\n const classes = navigationStyles();\n const { t } = useTranslation();\n const { useSupplierFinancialInformationVisibility } = useFlags();\n const { currentProfile } = useCurrentProfileContext();\n\n return (\n <>\n \n
\n } label={t('rides')} href={RIDES} />\n }\n label={t('navigation.supplier.vehicles')}\n href={VEHICLES}\n />\n }\n label={t('navigation.supplier.drivers')}\n href={DRIVERS}\n />\n }\n label={t('navigation.supplier.availability')}\n href={AVAILABILITY}\n />\n } label={t('navigation.supplier.reports')} href={REPORTS} />\n {currentProfile.permissions.manageUsers && (\n }\n label={t('users')}\n href={USERS}\n data-testid=\"users-tab\"\n />\n )}\n {showDocuments && (\n } label={t('documents')} href={DOCUMENTS} />\n )}\n {currentProfile.permissions.seeInvoices && useSupplierFinancialInformationVisibility && (\n }\n label={t('navigation.supplier.invoices')}\n href={INVOICES}\n />\n )}\n
\n
\n \n );\n};\n\nexport default SupplierList;\n","/* eslint-disable no-nested-ternary */\nimport ChevronLeftIcon from '@material-ui/icons/ChevronLeft';\nimport ChevronRightIcon from '@material-ui/icons/ChevronRight';\nimport AccountCircleIcon from '@mui/icons-material/AccountCircle';\nimport ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';\nimport ArrowDropUpIcon from '@mui/icons-material/ArrowDropUp';\nimport CloseIcon from '@mui/icons-material/Close';\nimport HelpIcon from '@mui/icons-material/Help';\nimport LogoutIcon from '@mui/icons-material/Logout';\nimport MenuIcon from '@mui/icons-material/Menu';\nimport SettingsIcon from '@mui/icons-material/Settings';\nimport {\n AppBar,\n Chip,\n Drawer,\n Grid,\n IconButton,\n Link,\n Toolbar,\n useMediaQuery,\n useTheme,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n MenuList,\n Tooltip,\n} from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router-dom';\n\nimport config from '../../config';\nimport { COLORS, getRandomProfileColor } from '../../constants/colors';\nimport { GET_E_PRIVACY, GET_E_TERMS_AND_CONDITIONS } from '../../constants/getEWebsites';\nimport { LOG_IN_NEW, SETTINGS } from '../../constants/urlPaths';\nimport { IS_LOGIN_WITH_NEW_PORTAL, PROFILE_COLOR, RIDES_FILTER, SUPPLIER_RIDES_FILTER } from '../../constants/windowStorageKeys';\nimport { useAuth } from '../../context/AuthenticatedUserContext';\nimport { useCurrentProfileContext } from '../../context/CurrentProfileContext';\nimport { Severity, useNotificationContext } from '../../context/NotificationContext';\nimport currentEnvironment from '../../environment/currentEnvironment';\nimport Environment from '../../environment/Environment';\nimport { useDocuments } from '../../pages/documents/api/useDocument';\nimport ContactUsModal from '../../pages/pageContainer/customer/ContactUsModal';\nimport EditUserProfileModal from '../../pages/users/components/EditUserProfileModal';\nimport { AccountType } from '../../services/types';\nimport containerStyles from '../../styles/Container';\nimport typographyStyles from '../../styles/Typography';\nimport { default as ContactUsModalSupplier } from '../contactUs/ContactUsModal';\nimport NavigationLogo from '../logos/NavigationLogo';\nimport { MenuListItem } from '../menuListItem/MenuListItem';\nimport CustomerList from './customers/CustomerList';\nimport navigationStyles from './NavigationMenu.styles';\nimport SupplierList from './suppliers/SupplierList';\n\nconst useStyles = makeStyles({\n dropdownItem: {\n padding: '.5rem',\n '&:hover': { background: `${COLORS.WHITE_10} !important` },\n '& > div': { paddingLeft: '.2rem' },\n },\n closedItem: { padding: '.5rem' },\n});\n\ninterface DropdownItem {\n icon: JSX.Element;\n label: string;\n onClick?: () => void;\n closed?: boolean;\n}\n\nconst DropdownProfileItem = ({ icon, label, onClick, closed }: DropdownItem) => {\n const classes = useStyles();\n\n return (\n \n \n {icon}\n {label}\n \n \n );\n};\n\ninterface NavigationMenuProps {\n closed: boolean;\n closeMenu: () => void;\n openMenu: () => void;\n role: AccountType;\n}\n\nconst NavigationMenu = ({ closed, closeMenu, openMenu, role }: NavigationMenuProps) => {\n const [isDropdownOpen, setIsDropdownOpen] = useState(false);\n const [isOpenMyProfileModal, setIsOpenMyProfileModal] = useState(false);\n const [isOpenSupportModal, setIsOpenSupportModal] = useState(false);\n const classes = navigationStyles();\n const { subtitle1Override, whiteLink } = typographyStyles();\n const { companyInformationContainer } = containerStyles();\n const theme = useTheme();\n const mobileView = useMediaQuery(theme.breakpoints.down('sm'));\n const { t } = useTranslation();\n const { currentProfile, refetchUserProfile } = useCurrentProfileContext();\n const { onLogout } = useAuth();\n const history = useHistory();\n const { showNotification } = useNotificationContext();\n const { data: documents } = useDocuments();\n const { useSettingsPage } = useFlags();\n\n useEffect(() => {\n setIsDropdownOpen(closed);\n }, [closed]);\n\n const handleUserProfileUpdate = async () => {\n await refetchUserProfile();\n };\n\n const onMobileClick = (): void => {\n if (mobileView) {\n closeMenu();\n }\n };\n\n const getNavigation = (userRole: AccountType): JSX.Element => {\n switch (userRole) {\n case AccountType.SUPPLIER:\n return 0} />;\n case AccountType.CUSTOMER:\n return 0} />;\n default:\n throw new Error('Unhandled user role');\n }\n };\n\n const logOut = async (): Promise => {\n await fetch(config.deleteCookieUrl, {\n method: 'POST',\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n },\n credentials: 'include',\n })\n .then(response => {\n if (response.status >= 200 && response.status < 300) {\n window.location.href = config.logOutUrl;\n\n return;\n }\n\n throw new Error(`Unexpected response status: ${response.status}`);\n })\n .catch(error => {\n showNotification(t('alert.logOutError'), Severity.Error);\n });\n localStorage.removeItem(IS_LOGIN_WITH_NEW_PORTAL);\n localStorage.removeItem(RIDES_FILTER);\n localStorage.removeItem(SUPPLIER_RIDES_FILTER);\n };\n\n const logOutNew = async () => {\n try {\n await onLogout();\n history.push(LOG_IN_NEW);\n } catch (error) {\n showNotification(t('alert.logOutError'), Severity.Error);\n }\n\n localStorage.removeItem(RIDES_FILTER);\n localStorage.removeItem(SUPPLIER_RIDES_FILTER);\n localStorage.removeItem(IS_LOGIN_WITH_NEW_PORTAL);\n };\n\n const backgroundProfileColor = localStorage.getItem(PROFILE_COLOR)?.toString();\n\n if (!backgroundProfileColor) {\n localStorage.setItem(PROFILE_COLOR, getRandomProfileColor());\n }\n\n const handleLogout = () => {\n const isLoginWithNewPortal = localStorage.getItem(IS_LOGIN_WITH_NEW_PORTAL);\n\n if (isLoginWithNewPortal) {\n return logOutNew();\n }\n\n return logOut();\n };\n\n const getUserInitials = () => {\n if (currentProfile?.firstName && currentProfile?.lastName) {\n return `${currentProfile.firstName[0].toUpperCase()}${currentProfile.lastName[0].toUpperCase()}`;\n }\n\n if (currentProfile?.firstName) {\n return `${currentProfile.firstName[0].toUpperCase()}${currentProfile.firstName[1]?.toUpperCase() || ''}`;\n }\n\n if (currentProfile?.lastName) {\n return `${currentProfile.lastName[0].toUpperCase()}${currentProfile.lastName[1]?.toUpperCase() || ''}`;\n }\n\n return `${currentProfile?.email?.substring(0, 2).toUpperCase()}`;\n };\n\n const handleSettingsClick = () => {\n history.push(SETTINGS);\n\n if (mobileView) {\n closeMenu();\n }\n };\n\n return (\n <>\n {mobileView && (\n \n \n openMenu()}\n data-testid=\"open-menu-button\"\n edge=\"start\"\n className={clsx(classes.menuButton, { [classes.hide]: !closed })}\n >\n \n \n setIsOpenSupportModal(true)}\n className={!closed ? classes.hide : ''}\n >\n \n \n \n \n )}\n \n
\n {currentEnvironment !== Environment.Production && }\n (closed ? openMenu() : closeMenu())}\n title={`menu-${closed ? 'open' : 'close'}`}\n aria-label=\"close drawer\"\n data-testid=\"desktop-menu-toggle\"\n >\n {closed ? : mobileView ? : }\n \n
\n \n \n \n {\n {\n setIsDropdownOpen(!isDropdownOpen);\n }}\n >\n \n {getUserInitials()}\n \n {t('authentication.account')}\n \n {isDropdownOpen ? : }\n \n \n }\n\n {isDropdownOpen && (\n \n {useSettingsPage && (\n }\n onClick={handleSettingsClick}\n closed={closed}\n />\n )}\n }\n onClick={() => setIsOpenMyProfileModal(true)}\n closed={closed}\n />\n }\n onClick={handleLogout}\n closed={closed}\n />\n \n )}\n \n
onMobileClick()} className={clsx({ [classes.closedList]: closed })}>\n {getNavigation(role)}\n
\n \n }\n label={t('navigation.supplier.support')}\n href={window.location.pathname}\n onClick={() => setIsOpenSupportModal(true)}\n disableMathcingPath\n />\n \n
\n \n \n {!closed && (\n <>\n \n {t('accountActivation.privacyPolicy')}\n {t('screenReader.newWindow')}\n \n
\n \n {t('accountActivation.termsAndConditions')}\n {t('screenReader.newWindow')}\n \n \n )}\n
\n
\n \n {isOpenSupportModal && currentProfile.accountType === AccountType.CUSTOMER && (\n setIsOpenSupportModal(false)} />\n )}\n {currentProfile.accountType === AccountType.SUPPLIER && (\n setIsOpenSupportModal(false)} />\n )}\n {isOpenMyProfileModal && currentProfile && (\n setIsOpenMyProfileModal(false)}\n onUserProfileUpdated={handleUserProfileUpdate}\n />\n )}\n \n );\n};\n\nexport default NavigationMenu;\n","const RIDE_ID_URLS = [];\n\nconst IFRAME_URL = ['^\\\\/booking-tool$', '^\\\\/pending-changes$', ...RIDE_ID_URLS];\n\nexport const isIframeView = (pathname: string): boolean => {\n const regex = new RegExp(IFRAME_URL.join('|'), 'i');\n\n return regex.test(pathname);\n};\n\nexport const isRideIdView = (pathname: string): boolean => {\n const regex = new RegExp(RIDE_ID_URLS.join('|'), 'i');\n\n return regex.test(pathname);\n};\n","import * as Sentry from '@sentry/browser';\n\nexport type ErrorNumber = string;\n\nexport function setUserContext(context: UserContext): void {\n Sentry.setUser({\n id: context.userId.toString(),\n email: context.emailAddress,\n });\n}\n\nexport function clearUserContext(): void {\n Sentry.setUser(null);\n}\n\nexport function report(error: Error): ErrorNumber {\n return Sentry.captureException(error);\n}\n\nexport interface UserContext {\n userId: number;\n emailAddress: string;\n}\n","import React, { Component } from 'react';\n\nimport LogInMessage from '../../components/loginMessage/LogInMessage';\nimport { report } from '../../helpers/report';\nimport UnexpectedError from './UnexpectedError';\n\ninterface Props {\n children: JSX.Element;\n message: 'logIn' | 'reload';\n}\n\ninterface State {\n hasError: boolean;\n}\n\nclass ErrorBoundary extends Component {\n constructor(props: Props) {\n super(props);\n this.state = { hasError: false };\n }\n\n componentDidCatch(error: Error): void {\n report(error);\n this.setState({ hasError: true });\n }\n\n render(): JSX.Element {\n if (this.state.hasError) {\n if (this.props.message === 'logIn') {\n return ;\n }\n\n return ;\n }\n\n return this.props.children;\n }\n}\nexport default ErrorBoundary;\n","import { Grid, LinearProgress } from '@mui/material';\nimport React, { FunctionComponent } from 'react';\n\nimport largeIcon from '../../public/assets/images/get-e-logo-large.png';\nimport containerStyles from '../../styles/Container';\n\nconst Loading: FunctionComponent<{ framed: boolean }> = ({ framed }) => {\n const classes = containerStyles();\n\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nexport default Loading;\n","/* eslint-disable max-statements */\nimport chameleon from '@chamaeleonidae/chmln';\nimport { FullScreenLoader } from '@get-e/react-components';\nimport { Grid } from '@mui/material';\nimport { Container } from '@mui/system';\nimport clsx from 'clsx';\nimport { useLDClient } from 'launchdarkly-react-client-sdk';\nimport React, { FunctionComponent, useEffect, useState } from 'react';\nimport { useHistory, useLocation } from 'react-router-dom';\n\nimport { setAmplitudeUserId, setAmplitudeUserProperties } from '../../amplitude/amplitude';\nimport LogInMessage from '../../components/loginMessage/LogInMessage';\nimport NavigationMenu from '../../components/navigation/NavigationMenu';\nimport { USE_NEW_AUTH } from '../../constants/env';\nimport { MAX_CONTENT_WIDTH } from '../../constants/layout';\nimport { BASE_URL_PATH, BOOKING_TOOL, LOG_IN_NEW, RIDES } from '../../constants/urlPaths';\nimport { MENU_STATE } from '../../constants/windowStorageKeys';\nimport { CurrentProfileContext } from '../../context/CurrentProfileContext';\nimport { isIframeView } from '../../helpers/isIframeView';\nimport { isMatchPath } from '../../helpers/isMatchPath';\nimport { ERROR_NOT_AUTHORIZED } from '../../services/routes';\nimport { AccountType } from '../../services/types';\nimport containerStyles from '../../styles/Container';\nimport ErrorBoundary from '../errorPages/ErrorBoundary';\nimport Loading from '../loading/Loading';\nimport { useUserProfile } from '../users/api';\nimport { UserRoles } from '../users/api/types';\n\ninterface Props {\n children: JSX.Element;\n mainClassName?: string;\n allowedAccountType?: AccountType[];\n allowedUserRoles?: UserRoles[];\n}\n\nexport enum MenuState {\n Open = 'open',\n Closed = 'closed',\n}\n\nconst PageContainer: FunctionComponent = ({ children, mainClassName, allowedAccountType, allowedUserRoles }: Props) => {\n const mobileView = window.innerWidth;\n const previousMenuState = localStorage.getItem(MENU_STATE);\n const ldClient = useLDClient();\n const location = useLocation();\n\n if (!previousMenuState) {\n localStorage.setItem(MENU_STATE, mobileView ? MenuState.Closed : MenuState.Open);\n }\n\n const classes = containerStyles();\n const history = useHistory();\n const iframeView = isIframeView(history.location.pathname);\n const currentMenuState = localStorage.getItem(MENU_STATE) === MenuState.Closed;\n const [closed, setClosed] = useState(currentMenuState);\n\n const { data: userProfile, refetch: refetchUserProfile, isLoading, isFetched, isFetching } = useUserProfile();\n\n useEffect(() => {\n if (ldClient && userProfile) {\n const ldContext = {\n kind: 'user',\n key: userProfile.email,\n name: userProfile.fullName,\n email: userProfile.email,\n };\n\n ldClient?.identify(ldContext);\n\n chameleon.identify(userProfile.id, {\n email: userProfile.email,\n name: userProfile.fullName,\n created: userProfile.joinedAt,\n role: userProfile.accountType,\n });\n\n setAmplitudeUserId(userProfile?.id ?? '');\n\n const userProperties = {\n 'Account ID': userProfile.id,\n 'Account Name': `${userProfile.firstName} ${userProfile.lastName}`,\n 'Account Contracts': userProfile.accountType,\n 'Account verticle': userProfile.agentVerticle ?? '',\n 'Account tier': userProfile.agentTier ?? '',\n 'Org ID': userProfile.organizationId ?? '',\n 'Org name': userProfile.accountName ?? '',\n ...(userProfile.accountType === AccountType.CUSTOMER &&\n userProfile.accountName && { 'Top-level org name': userProfile?.accountName?.split(' - ')[0] ?? '' }),\n };\n\n setAmplitudeUserProperties(userProperties);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [userProfile]);\n\n if (isLoading || isFetching) {\n return ;\n }\n\n if (isFetched && !userProfile) {\n if (USE_NEW_AUTH) {\n history.push(LOG_IN_NEW);\n return null;\n }\n\n return ;\n }\n\n if (userProfile && location.pathname === BASE_URL_PATH) {\n history.push(RIDES);\n return null;\n }\n\n if (!userProfile) {\n return ;\n }\n\n const role = userProfile?.accountType ? userProfile.accountType : AccountType.CUSTOMER;\n\n const isBookingTool = isMatchPath(BOOKING_TOOL);\n\n if (allowedAccountType && !allowedAccountType.includes(role)) {\n history.push(ERROR_NOT_AUTHORIZED);\n return null;\n }\n\n if (allowedUserRoles && allowedUserRoles.some(userRole => !userProfile.permissions[userRole])) {\n history.push(ERROR_NOT_AUTHORIZED);\n return null;\n }\n\n return (\n \n \n {\n localStorage.setItem(MENU_STATE, MenuState.Closed);\n setClosed(true);\n }}\n openMenu={(): void => {\n localStorage.setItem(MENU_STATE, MenuState.Open);\n setClosed(false);\n }}\n role={role}\n closed={closed}\n />\n \n \n \n {children}\n \n \n \n \n \n );\n};\n\nexport default PageContainer;\n","export interface ReportParams {\n startDate: string;\n endDate: string;\n accountId: number;\n accountType?: string;\n queryKey?: string;\n}\n\nexport interface SummaryResponse {\n totalRides: number;\n}\n\ninterface DriversRide {\n tripId: number;\n tripUnid: string;\n pickupTimeLocal: string;\n driverId: number;\n driverName: string;\n closestDistanceToArrivalPointInMeters?: number;\n closestDistanceToDeparturePointInMeters?: number;\n timeDifferenceBetweenFirstAndLastStatusUpdate?: number;\n}\n\ninterface DriversSummary {\n totalTripsWithDriversAdded: number;\n totalAccuratelyTrackedRides: number;\n}\n\nexport interface DriversResponse {\n summary: DriversSummary;\n drivers?: Array<{\n driver: Partial & { id: number; name: string };\n totalTrips: number;\n totalReviews: number;\n averageRate: number | null;\n rides: DriversRide[];\n }>;\n}\n\nexport interface SituationsResponse {\n summary: {\n totalSituations: number;\n totalSituationsByType: SummarySituations;\n };\n situations: Array<{\n pickupTime: string;\n rideNumber: string;\n driver: Partial | null;\n situationType: string | null;\n situations: Array<{\n id: number;\n code: string;\n }>;\n }>;\n}\n\ninterface Topic {\n topic: string;\n rate: number | null;\n}\n\ninterface ReviewRide {\n rideNumber: string;\n pickUpTime: Date;\n driver: string;\n}\n\nexport interface Review {\n id: number;\n ride: ReviewRide;\n averageRate: number;\n hidden: boolean;\n adminComment: string | null;\n topics: Topic[] | null;\n comments: string[];\n}\n\ninterface SummaryReview {\n totalReviews: number;\n totalRate: number;\n totalOneStar: number;\n totalTwoStar: number;\n totalThreeStar: number;\n totalFourStar: number;\n totalFiveStar: number;\n averageRateByTopic: Record;\n}\n\nexport interface ReviewsResponse {\n summary: SummaryReview;\n reviews: Review[];\n}\n\ninterface SummarySituations {\n totalSituations: number;\n totalDriverLate: number;\n totalOnRouteDelay: number;\n totalDriverNoShow: number;\n totalVehicleCondition: number;\n totalServiceQuality: number;\n totalSafetyIncident: number;\n totalWrongVehicle: number;\n totalOther: number;\n}\n\ninterface Summary {\n totalRides: number;\n totalTripsWithDriversAdded: number;\n totalAccuratelyTrackedRides: number;\n situations: SummarySituations;\n reviews: SummaryReview;\n}\n\nexport interface QualityReport {\n summary: Summary;\n situations: Situation[];\n drivers: Driver[];\n reviews: Review[];\n}\n\nexport interface Situation {\n pickupTime: Date;\n rideNumber: string;\n driver: string;\n situationType: SituationType;\n}\n\nexport interface DriverRide {\n pickupTime: Date;\n rideNumber: string;\n gpsTracking: QualityValuationEnum;\n driverUpdates: QualityValuationEnum;\n}\n\nexport interface Driver {\n id: number;\n name: string;\n totalTrips: number;\n totalReviews: number;\n averageRate: number | null;\n rides: DriverRide[];\n}\n\nexport enum SituationType {\n DriverLate = 'DRIVER_LATE',\n DriverNoShow = 'DRIVER_NO_SHOW',\n WrongVehicle = 'WRONG_VEHICLE',\n SafetyIncident = 'SAFETY_INCIDENT',\n VehicleCondition = 'VEHICLE_CONDITION',\n ServiceQuality = 'SERVICE_QUALITY',\n OnRouteDelay = 'ON_ROUTE_DELAY',\n Other = 'OTHER',\n}\n\nexport enum QualityValuationEnum {\n ACCURATE = 'Accurate',\n NOT_ACCURATE = 'Not accurate',\n NO_UPDATES = 'No updates',\n}\n\nexport interface ReportTabProps {\n currentPeriod?: QualityReport;\n pastPeriod?: QualityReport;\n period: string;\n}\n","import {\n SummaryResponse,\n SituationsResponse,\n DriversResponse,\n ReviewsResponse,\n QualityReport,\n SituationType,\n QualityValuationEnum,\n Driver,\n} from '../components/api/types';\n\nconst DISTANCE_THRESHOLD = 4000;\nconst TIME_DIFFERENCE_THRESHOLD_SEC = 60;\n\nexport const situationTypesRecord: Record = {\n [SituationType.DriverLate]: SituationType.DriverLate,\n [SituationType.DriverNoShow]: SituationType.DriverNoShow,\n [SituationType.WrongVehicle]: SituationType.WrongVehicle,\n [SituationType.SafetyIncident]: SituationType.SafetyIncident,\n [SituationType.VehicleCondition]: SituationType.VehicleCondition,\n [SituationType.ServiceQuality]: SituationType.ServiceQuality,\n [SituationType.OnRouteDelay]: SituationType.OnRouteDelay,\n [SituationType.Other]: SituationType.Other,\n};\n\nconst checkGPSTracking = (arrival?: number, departure?: number): QualityValuationEnum => {\n if (!arrival || !departure) {\n return QualityValuationEnum.NO_UPDATES;\n }\n\n if (arrival >= DISTANCE_THRESHOLD || departure >= DISTANCE_THRESHOLD) {\n return QualityValuationEnum.NOT_ACCURATE;\n }\n\n return QualityValuationEnum.ACCURATE;\n};\n\nconst driverUpdateCheck = (timeDifferenceInSeconds?: number): QualityValuationEnum => {\n if (!timeDifferenceInSeconds) {\n return QualityValuationEnum.NO_UPDATES;\n }\n\n if (timeDifferenceInSeconds < TIME_DIFFERENCE_THRESHOLD_SEC) {\n return QualityValuationEnum.NOT_ACCURATE;\n }\n\n return QualityValuationEnum.ACCURATE;\n};\n\nexport const mapQualityReportData = (\n summary: SummaryResponse,\n situations: SituationsResponse,\n drivers: DriversResponse,\n reviews: ReviewsResponse\n): QualityReport => {\n return {\n summary: {\n totalRides: summary.totalRides,\n totalTripsWithDriversAdded: drivers.summary.totalTripsWithDriversAdded,\n totalAccuratelyTrackedRides: drivers.summary.totalAccuratelyTrackedRides,\n situations: {\n totalSituations: situations.summary.totalSituations,\n totalDriverLate: situations.summary.totalSituationsByType.totalDriverLate,\n totalOnRouteDelay: situations.summary.totalSituationsByType.totalOnRouteDelay,\n totalDriverNoShow: situations.summary.totalSituationsByType.totalDriverNoShow,\n totalVehicleCondition: situations.summary.totalSituationsByType.totalVehicleCondition,\n totalServiceQuality: situations.summary.totalSituationsByType.totalServiceQuality,\n totalSafetyIncident: situations.summary.totalSituationsByType.totalSafetyIncident,\n totalWrongVehicle: situations.summary.totalSituationsByType.totalWrongVehicle,\n totalOther: situations.summary.totalSituationsByType.totalOther,\n },\n reviews: reviews.summary,\n },\n situations: situations.situations.map(situation => {\n return {\n pickupTime: new Date(situation.pickupTime),\n rideNumber: situation.rideNumber,\n driver: situation.driver?.name ?? '-',\n situationType: situationTypesRecord[situation.situationType ?? SituationType.Other],\n };\n }),\n drivers:\n drivers.drivers?.map(driver => {\n return {\n id: driver.driver.id,\n name: driver.driver.name,\n totalTrips: driver.totalTrips,\n totalReviews: driver.totalReviews,\n averageRate: driver.averageRate,\n rides: driver.rides.map(ride => {\n return {\n pickupTime: new Date(ride.pickupTimeLocal),\n rideNumber: ride.tripUnid,\n gpsTracking: checkGPSTracking(\n ride.closestDistanceToArrivalPointInMeters,\n ride.closestDistanceToDeparturePointInMeters\n ),\n driverUpdates: driverUpdateCheck(ride.timeDifferenceBetweenFirstAndLastStatusUpdate),\n };\n }),\n };\n }) ?? ([] as Driver[]),\n reviews: reviews.reviews,\n };\n};\n","import apiClient from '../../../../services/api';\nimport { SUMMARY_REPORT, DRIVERS_REPORT, SITUATIONS_REPORT, REVIEWS_REPORT } from '../../../../services/routes';\nimport { ReportParams, SummaryResponse, DriversResponse, SituationsResponse, ReviewsResponse } from './types';\n\nexport const listSummary = async (variables: ReportParams): Promise => {\n const { data } = await apiClient.get(SUMMARY_REPORT, {\n params: (({ startDate, endDate, accountId }) => ({\n startDate,\n endDate,\n accountId,\n }))(variables),\n });\n\n return data;\n};\n\nexport const listDrivers = async (variables: ReportParams): Promise => {\n const { data } = await apiClient.get(DRIVERS_REPORT, {\n params: (({ startDate, endDate, accountId }) => ({\n startDate,\n endDate,\n accountId,\n }))(variables),\n });\n\n return data;\n};\n\nexport const listSituations = async (variables: ReportParams): Promise => {\n const { data } = await apiClient.get(SITUATIONS_REPORT, {\n params: (({ startDate, endDate, accountId }) => ({\n startDate,\n endDate,\n accountId,\n }))(variables),\n });\n\n return data;\n};\n\nexport const listReviews = async (variables: ReportParams): Promise => {\n const { data } = await apiClient.get(REVIEWS_REPORT, { params: variables });\n\n return data;\n};\n","import { useQueries } from 'react-query';\n\nimport { mapQualityReportData } from '../../helpers/mapQualityReportData';\nimport { ReportParams } from './types';\nimport { listSummary, listDrivers, listSituations, listReviews } from '.';\n\nexport function useReport(variables: ReportParams) {\n const queryResults = useQueries([\n {\n queryKey: [`USE_SUMMARY${variables.queryKey}`, 1],\n queryFn: () => listSummary(variables),\n enabled: Boolean(variables.accountId),\n refetchOnWindowFocus: false,\n retry: false,\n },\n {\n queryKey: [`USE_SITUATIONS${variables.queryKey}`, 2],\n queryFn: () => listSituations(variables),\n enabled: Boolean(variables.accountId),\n refetchOnWindowFocus: false,\n retry: false,\n },\n {\n queryKey: [`USE_DRIVERS${variables.queryKey}`, 3],\n queryFn: () => listDrivers(variables),\n enabled: Boolean(variables.accountId),\n refetchOnWindowFocus: false,\n retry: false,\n },\n {\n queryKey: [`USE_REVIEWS${variables.queryKey}`, 4],\n queryFn: () => listReviews(variables),\n enabled: Boolean(variables.accountId),\n refetchOnWindowFocus: false,\n retry: false,\n },\n ]);\n\n const [\n { data: summary, isLoading: isLoadingSummary, isRefetching: isRefetchingSummary },\n { data: situations, isLoading: isLoadingSituations, isRefetching: isRefetchingSituations },\n { data: drivers, isLoading: isLoadingDrivers, isRefetching: isRefetchingDrivers },\n { data: reviews, isLoading: isLoadingReviews, isRefetching: isRefetchingReviews },\n ] = queryResults;\n\n const report = summary && situations && drivers && reviews && mapQualityReportData(summary, situations, drivers, reviews);\n\n const isLoading =\n isLoadingSummary ||\n isLoadingSituations ||\n isLoadingDrivers ||\n isLoadingReviews ||\n isRefetchingSummary ||\n isRefetchingSituations ||\n isRefetchingDrivers ||\n isRefetchingReviews;\n\n const refetchAll = () => {\n queryResults.forEach(query => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n query.refetch();\n });\n };\n\n return {\n report,\n isLoading,\n refetchAll,\n };\n}\n","import { Grid, Skeleton, Chip, useMediaQuery, Box } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport theme from '../../../styles/theme';\n\nconst useStyles = makeStyles({\n mainContainer: {\n justifyContent: 'space-between',\n alignItems: 'flex-end',\n padding: '0 2rem 2rem 2rem',\n },\n mainContainerMobile: {\n justifyContent: 'space-between',\n alignItems: 'flex-end',\n padding: '2rem',\n },\n pageHeaderWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n color: '#000',\n },\n pageHeader: {\n color: '#3f51b5',\n fontSize: '1.5rem',\n fontWeight: 700,\n },\n card: {\n marginRight: '2rem',\n marginTop: '1rem',\n },\n});\n\nconst ReportsLoadingSkeleton = () => {\n const classes = useStyles();\n const isSmallDevice = useMediaQuery(theme.breakpoints.down('md'));\n\n return (\n \n \n \n \n }\n sx={{ borderColor: '#EEF3F9' }}\n variant=\"outlined\"\n />\n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n};\n\nexport default ReportsLoadingSkeleton;\n","import ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport IconButton from '@mui/material/IconButton';\nimport { GridRenderCellParams } from '@mui/x-data-grid-pro';\nimport React from 'react';\n\nimport theme from '../../styles/theme';\n\nexport function DetailPanelToggle(props: Pick) {\n const { value: isExpanded } = props;\n\n return (\n \n theme.transitions.create('transform', { duration: theme.transitions.duration.shortest }),\n }}\n fontSize=\"inherit\"\n />\n \n );\n}\n","export const getPercentage = (part: number, total: number, decimals = 2) => {\n if (part === 0 || total === 0) {\n return Number(0).toFixed(decimals);\n }\n\n const percentage = (part / total) * 100;\n\n if (percentage <= 0.01) {\n return '0.01';\n }\n\n return percentage.toFixed(decimals);\n};\n","import MoodBadOutlinedIcon from '@mui/icons-material/MoodBadOutlined';\nimport MoodOutlinedIcon from '@mui/icons-material/MoodOutlined';\nimport SentimentNeutralOutlinedIcon from '@mui/icons-material/SentimentNeutralOutlined';\nimport React from 'react';\n\nimport { COLORS } from '../../../constants/colors';\nimport { QualityValuationEnum } from '../components/api/types';\n\nexport const getStatusColor = (status: QualityValuationEnum) => {\n switch (status) {\n case QualityValuationEnum.ACCURATE:\n return COLORS.GREEN;\n case QualityValuationEnum.NO_UPDATES:\n return COLORS.ORANGE_OFFICIAL;\n case QualityValuationEnum.NOT_ACCURATE:\n return COLORS.RED;\n default:\n throw new Error('Driver update or location sharing status not supported');\n }\n};\n\nexport const getStatusIcon = (status: QualityValuationEnum) => {\n switch (status) {\n case QualityValuationEnum.ACCURATE:\n return (\n \n );\n case QualityValuationEnum.NO_UPDATES:\n return (\n \n );\n case QualityValuationEnum.NOT_ACCURATE:\n return (\n \n );\n default:\n throw new Error('Driver update or location sharing status not supported');\n }\n};\n","import { Box, TableCell, TableRow, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { formatInTimeZone } from 'date-fns-tz';\nimport React from 'react';\nimport { Link } from 'react-router-dom';\n\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { RIDES } from '../../../constants/urlPaths';\nimport { TABLE_ROW_HEIGHT } from '../../../styles/theme';\nimport { getStatusIcon } from '../helpers';\nimport { DriverRide } from './api/types';\n\nconst useStyles = makeStyles({\n tableRow: {\n height: `${TABLE_ROW_HEIGHT}px`,\n transition: '150ms all ease-in-out',\n },\n tableCell: {\n color: COLORS.BLACK,\n background: COLORS.EXTRA_LIGHT_GRAY,\n },\n});\n\ninterface DetailsRowProps {\n ride: DriverRide;\n}\n\nconst DetailsRow = ({ ride }: DetailsRowProps) => {\n const classes = useStyles();\n\n return (\n <>\n \n \n {formatInTimeZone(ride.pickupTime, 'UTC', DATE_FORMATS['d MMM yyyy at p'])}\n \n \n \n {ride.rideNumber}\n \n \n \n \n {getStatusIcon(ride.driverUpdates)}\n {ride.driverUpdates}\n \n \n \n \n {getStatusIcon(ride.gpsTracking)}\n {ride.gpsTracking}\n \n \n \n \n );\n};\n\nexport default DetailsRow;\n","import MoodBadOutlinedIcon from '@mui/icons-material/MoodBadOutlined';\nimport MoodOutlinedIcon from '@mui/icons-material/MoodOutlined';\nimport SentimentNeutralOutlinedIcon from '@mui/icons-material/SentimentNeutralOutlined';\nimport { Box, Typography } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\n\nconst DriverUpdatesTooltip = () => {\n const { t } = useTranslation();\n\n return (\n \n \n \n {t('pages.reports.allUpdatesReceivedAccurately')}\n \n \n \n {t('pages.reports.notAllUpdatesReceived')}\n \n \n \n {t('pages.reports.noUpdatesReceived')}\n \n \n );\n};\n\nexport default DriverUpdatesTooltip;\n","import MoodBadOutlinedIcon from '@mui/icons-material/MoodBadOutlined';\nimport MoodOutlinedIcon from '@mui/icons-material/MoodOutlined';\nimport SentimentNeutralOutlinedIcon from '@mui/icons-material/SentimentNeutralOutlined';\nimport { Box, Typography } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\n\nconst LocationSharingTooltip = () => {\n const { t } = useTranslation();\n\n return (\n \n \n \n {t('pages.reports.locationsReceivedAccurately')}\n \n \n \n {t('pages.reports.locationsReceivedTooFar')}\n \n \n \n {t('pages.reports.noLocationsReceived')}\n \n \n );\n};\n\nexport default LocationSharingTooltip;\n","import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';\nimport StarIcon from '@mui/icons-material/Star';\nimport {\n Box,\n Container,\n Rating,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Tooltip,\n Typography,\n} from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GridRowId, GridRowParams } from '@mui/x-data-grid-pro';\nimport clsx from 'clsx';\nimport { formatInTimeZone } from 'date-fns-tz';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Link } from 'react-router-dom';\n\nimport { DetailPanelToggle } from '../../../../components/detailPanelToggle/DetailPanelToggle';\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { RIDES } from '../../../../constants/urlPaths';\nimport { getPercentage } from '../../../../helpers/getPercentage';\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport { TABLE_ROW_HEIGHT } from '../../../../styles/theme';\nimport { getStatusColor } from '../../helpers';\nimport { DriverRide, QualityValuationEnum } from '../api/types';\nimport DetailsRow from '../DetailsRow';\nimport DriverUpdatesTooltip from '../DriverUpdatesTooltip';\nimport LocationSharingTooltip from '../LocationSharingTooltip';\n\nconst COLUMN_WIDTH = 230;\n\nconst useStyles = makeStyles({\n tableHead: { height: `${TABLE_ROW_HEIGHT}px` },\n tableContainer: {\n background: COLORS.WHITE,\n border: 'none',\n },\n tableCell: {\n color: COLORS.BLACK,\n background: COLORS.EXTRA_LIGHT_GRAY,\n paddingRight: '0.625rem',\n paddingLeft: '0',\n },\n firstTableCell: { paddingLeft: '0.625rem' },\n tableHeaderCellContent: {\n lineHeight: '2rem',\n paddingRight: '0.5rem',\n },\n mobileRowDetails: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n background: COLORS.EXTRA_LIGHT_GRAY,\n padding: '1rem 0.5rem',\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n },\n});\n\nconst getRidesTrackedAccuratelyPercent = (rides: DriverRide[], totalTrips: number) => {\n const trackedRidesCount = rides.filter(\n (ride: { gpsTracking: QualityValuationEnum; driverUpdates: QualityValuationEnum }) =>\n ride.gpsTracking === QualityValuationEnum.ACCURATE && ride.driverUpdates === QualityValuationEnum.ACCURATE\n ).length;\n\n return getPercentage(trackedRidesCount, totalTrips, 0);\n};\n\nexport const useDriverAnalysisColumns = () => {\n const classes = useDataGridStyles();\n const detailsClasses = useStyles();\n const { t } = useTranslation();\n\n const columns = useMemo(\n () => [\n {\n field: 'ride',\n headerName: t('driver'),\n width: '100%',\n flex: 1,\n sortable: false,\n disableColumnMenu: true,\n renderCell: (params: GridRowParams) => (\n \n {params.row.name}\n {params.row.averageRate !== 0 && params.row.averageRate !== null && (\n \n \n {params.row.averageRate}\n \n \n }\n />\n \n )}\n \n {t('pages.reports.totalRides')}: {params.row.totalTrips}\n \n \n {t('pages.reports.ridesTrackedAccurately')}:\n {getRidesTrackedAccuratelyPercent(params.row.rides, params.row.totalTrips)}%\n \n \n ),\n },\n {\n field: 'name',\n minWidth: COLUMN_WIDTH,\n flex: 1,\n sortable: false,\n disableColumnMenu: true,\n renderHeader: () => (\n \n {t('driver')}\n \n ),\n },\n {\n field: 'totalReviews',\n minWidth: COLUMN_WIDTH,\n flex: 1,\n sortable: false,\n disableColumnMenu: true,\n renderHeader: () => (\n \n {t('reviews')}\n \n ),\n renderCell: (params: GridRowParams) => (\n \n {params.row.averageRate === 0 || params.row.averageRate === null ? (\n \n \n {`${params.row.totalReviews} ${t('reviews')}`}\n \n \n ) : (\n <>\n \n \n {Math.round((params.row.averageRate ?? 0) * 100) / 100}\n \n {params.row.totalReviews && (\n \n {`${params.row.totalReviews} ${t('reviews')}`}\n \n )}\n \n \n }\n />\n \n )}\n \n ),\n },\n {\n field: 'totalTrips',\n minWidth: COLUMN_WIDTH,\n flex: 1,\n sortable: false,\n disableColumnMenu: true,\n renderHeader: () => (\n \n {t('pages.reports.totalRides')}\n \n ),\n },\n {\n field: 'ridesTrackedAccuratelyPercent',\n minWidth: COLUMN_WIDTH,\n flex: 1,\n sortable: false,\n disableColumnMenu: true,\n headerClassName: classes.hideSeparator,\n renderHeader: () => (\n \n {t('pages.reports.ridesTrackedAccurately')}\n \n \n \n \n ),\n renderCell: (params: GridRowParams) => (\n {getRidesTrackedAccuratelyPercent(params.row.rides, params.row.totalTrips)}%\n ),\n },\n {\n ...GRID_DETAIL_PANEL_TOGGLE_COL_DEF,\n headerClassName: classes.hideSeparator,\n renderCell: (params: { id: GridRowId; value: boolean }) => (\n \n ),\n },\n ],\n [t, classes.hideSeparator, classes.tableHeader, classes.noRightBorder]\n );\n\n const rowDetails = useMemo(\n () =>\n ({ row }: GridRowParams) => (\n \n \n \n \n \n \n \n {t('pages.reports.pickUpTime')}\n \n \n \n \n \n \n {t('rideNumber')}\n \n \n \n \n \n \n {t('pages.reports.driverUpdates')}\n \n } arrow placement=\"top\">\n \n \n \n \n \n \n \n {t('pages.reports.locationSharing')}\n \n } arrow placement=\"top\">\n \n \n \n \n \n \n \n {(row.rides as DriverRide[])?.map((ride: DriverRide) => (\n \n ))}\n \n
\n
\n ),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n\n const rowDetailsMobile = useMemo(\n () =>\n ({ id, row }: GridRowParams) => {\n return (\n \n {row.rides?.map((ride: DriverRide) => (\n \n \n \n {t('rideNumber')}:{' '}\n \n \n {ride.rideNumber}\n \n \n \n {formatInTimeZone(ride.pickupTime, 'UTC', DATE_FORMATS['d MMM yyyy at p'])}\n \n \n \n {t('pages.reports.driverUpdatesAndLocationSharing')}:\n \n \n {ride.driverUpdates}\n \n \n \n ))}\n \n );\n },\n [detailsClasses.mobileRowDetails, t]\n );\n\n return [columns, rowDetails, rowDetailsMobile] as const;\n};\n","import { useMemo } from 'react';\nimport { getPercentage } from '../../../../helpers/getPercentage';\nimport { QualityReport } from '../api/types';\n\ninterface DriversAddedPercentage {\n driversAddedCurrentPeriodPercentage: string;\n driversAddedPreviousPeriodPercentage: string;\n}\n\nexport function useDriversAddedPercentage(\n currentPeriod: QualityReport | undefined,\n pastPeriod: QualityReport | undefined\n): DriversAddedPercentage {\n const driversAddedCurrentPeriodPercentage = useMemo(() => {\n return getPercentage(\n currentPeriod?.summary.totalTripsWithDriversAdded ?? 0,\n currentPeriod?.summary.totalRides ?? 0,\n 0\n ).toString();\n }, [currentPeriod]);\n\n const driversAddedPreviousPeriodPercentage = useMemo(() => {\n return getPercentage(\n pastPeriod?.summary.totalTripsWithDriversAdded ?? 0,\n pastPeriod?.summary.totalRides ?? 0,\n 0\n ).toString();\n }, [pastPeriod]);\n\n return {\n driversAddedCurrentPeriodPercentage,\n driversAddedPreviousPeriodPercentage,\n };\n}\n","import { useMemo } from 'react';\n\nimport { getPercentage } from '../../../../helpers/getPercentage';\nimport { QualityReport } from '../api/types';\n\ninterface TrackedDriversPercentage {\n trackedDriversCurrentPeriodPercentage: string;\n trackedDriversPreviousPeriodPercentage: string;\n}\n\nexport function useTrackedDriversPercentage(\n currentPeriod: QualityReport | undefined,\n pastPeriod: QualityReport | undefined\n): TrackedDriversPercentage {\n const trackedDriversCurrentPeriodPercentage = useMemo(\n () =>\n getPercentage(\n currentPeriod?.summary.totalAccuratelyTrackedRides ?? 0,\n currentPeriod?.summary.totalRides ?? 0,\n 0\n ).toString(),\n [currentPeriod]\n );\n\n const trackedDriversPreviousPeriodPercentage = useMemo(\n () =>\n getPercentage(\n pastPeriod?.summary.totalAccuratelyTrackedRides ?? 0,\n pastPeriod?.summary.totalRides ?? 0,\n 0\n ).toString(),\n [pastPeriod]\n );\n\n return {\n trackedDriversCurrentPeriodPercentage,\n trackedDriversPreviousPeriodPercentage,\n };\n}\n","import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';\nimport StarIcon from '@mui/icons-material/Star';\nimport { Box, Grid, Rating, Tooltip, Typography } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\n\ninterface SummaryBasicCardProps {\n title?: string;\n percentage1?: string;\n percentage2?: string;\n text1?: string;\n text2?: string;\n numberOfReviews?: number;\n rating?: number;\n titleTooltip?: string;\n excludePercentage1?: boolean;\n includeTotalRidesText?: boolean;\n}\n\nconst SummaryBasicCard = ({\n title = '',\n percentage1 = '',\n percentage2,\n text1,\n text2,\n numberOfReviews,\n rating,\n titleTooltip = '',\n excludePercentage1,\n includeTotalRidesText,\n}: SummaryBasicCardProps) => {\n const { t } = useTranslation();\n\n return (\n \n \n \n \n \n \n {title}\n \n {percentage2 && (\n \n {`${percentage2}%`}\n \n )}\n \n {titleTooltip && (\n \n \n \n )}\n \n {percentage1 && (\n \n \n {percentage1}\n {Boolean(!excludePercentage1) && '%'}\n \n {includeTotalRidesText && (\n \n {t('pages.reports.ofTotalRide')}\n \n )}\n \n )}\n {(rating || rating === 0) && (\n \n \n \n {rating}\n \n {(numberOfReviews || numberOfReviews === 0) && (\n \n {`${numberOfReviews} ${t('reviews')}`}\n \n )}\n \n }\n />\n \n )}\n \n \n {text1 && {text1}}\n {text2 && (\n \n {text2}\n \n )}\n \n \n \n );\n};\n\nexport default SummaryBasicCard;\n","import { Grid, useMediaQuery } from '@mui/material';\nimport { DataGridPro, useGridApiRef, GridRowId, GridEventListener, GridColDef } from '@mui/x-data-grid-pro';\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport theme, { TABLE_ROW_HEIGHT } from '../../../../styles/theme';\nimport { ReportTabProps } from '../api/types';\nimport { useDriverAnalysisColumns } from '../hooks/useDriverAnalysisColumns';\nimport { useDriversAddedPercentage } from '../hooks/useDriversAddedPercentage';\nimport { useTrackedDriversPercentage } from '../hooks/useTrackedDriversPercentage';\nimport SummaryBasicCard from '../SummaryBasicCard';\n\nexport enum DriverUpdatesStatus {\n ACCURATE = 'Accurate',\n NOT_ACCURATE = 'Not accurate',\n NO_UPDATES = 'No updates',\n}\n\nexport enum LocationSharingStatus {\n ACCURATE = 'Accurate',\n NOT_ACCURATE = 'Not accurate',\n NO_UPDATES = 'No updates',\n}\n\nconst DriverAnalysisTab = ({ currentPeriod, pastPeriod, period }: ReportTabProps) => {\n const { t } = useTranslation();\n const dataGridClases = useDataGridStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const gridApiRef = useGridApiRef();\n const [columns, rowDetails, rowDetailsMobile] = useDriverAnalysisColumns();\n\n const onRowClick = useCallback>(\n (params: { id: GridRowId }) => {\n gridApiRef.current.toggleDetailPanel(params.id);\n },\n [gridApiRef]\n );\n\n const { driversAddedCurrentPeriodPercentage, driversAddedPreviousPeriodPercentage } = useDriversAddedPercentage(\n currentPeriod,\n pastPeriod\n );\n\n const { trackedDriversCurrentPeriodPercentage, trackedDriversPreviousPeriodPercentage } = useTrackedDriversPercentage(\n currentPeriod,\n pastPeriod\n );\n\n const columnVisibilityModel = useMemo(() => {\n return {\n ride: isMobile,\n name: !isMobile,\n totalReviews: !isMobile,\n totalTrips: !isMobile,\n ridesTrackedAccuratelyPercent: !isMobile,\n };\n }, [isMobile]);\n\n return (\n \n \n \n \n \n \n \n \n \n (isMobile ? 100 : TABLE_ROW_HEIGHT)}\n columns={columns as GridColDef[]}\n getDetailPanelHeight={() => 'auto'}\n getDetailPanelContent={isMobile ? rowDetailsMobile : rowDetails}\n onRowClick={onRowClick}\n columnVisibilityModel={columnVisibilityModel}\n />\n \n );\n};\n\nexport default DriverAnalysisTab;\n","import { Point } from '../../../components/navigation/GoogleMap';\nimport { RideStatus, RideTrackingStatus } from '../../../helpers/rideStatusUtil';\nimport { Driver } from '../../drivers/api/types';\nimport { Arrival, Departure, FlightDetails } from '../../rides/api/types';\nimport { UpdateTraveller } from '../components/travellerInformation/TravellerInformation';\n\nexport enum FeedbackTopics {\n SERVICE_RATE = 'SERVICE_RATE',\n DRIVER_RATE = 'DRIVER_RATE',\n MEETING_DRIVER_RATE = 'MEETING_DRIVER_RATE',\n VEHICLE_RATE = 'VEHICLE_RATE',\n}\n\nexport interface RideFeedbackTopic {\n topic: FeedbackTopics;\n rate: number;\n}\nexport interface RideFeedback {\n averageRate: number;\n hidden: boolean;\n topics: RideFeedbackTopic[];\n comment: string;\n}\n\nexport interface CustomField {\n id: number;\n label: string;\n key: string;\n value: string;\n isRequired: boolean;\n options?: Array<{ label: string; value: string }>;\n type?: 'TEXT' | 'ENUM';\n}\n\nexport type CustomFieldItem = [string, string];\n\nexport interface ConnectedTrip {\n id: number;\n unid: number;\n}\n\nexport interface RideResponse {\n unid: string;\n prettifiedUnid: string;\n connectedTrips: ConnectedTrip[];\n status: keyof typeof RideStatus;\n trackingStatus: keyof typeof RideTrackingStatus;\n distanceInMeters: number;\n driverVehicleId: number | null;\n durationInSeconds: number;\n numberOfPassengers: number;\n numberOfBags: number;\n passengers: Passenger[];\n vehicle: Vehicle;\n dropOff: Arrival;\n pickUp: Departure;\n specialRequest: string;\n customerReference: string | null;\n supplierReference: string | null;\n supplier: string;\n customer: string;\n appliedCancellationPolicy?: CancellationPolicy | null;\n cancellationPolicies: CancellationPolicy[];\n driver: Driver | null;\n flightDetails: FlightDetails | null;\n paymentMethod?: string;\n booker?: Booker;\n pickupDescription?: string;\n cancelledAt: string | null;\n feedbacks: RideFeedback[];\n lastPositionUpdate?: Point;\n customFields?: CustomField[];\n price: Pricing;\n notesForTheCustomer?: string;\n notesToSupplier?: string;\n contactPerson?: Partial | null;\n createdAt: string;\n situationTag: string;\n qcStatus: boolean;\n isManagedByApi?: boolean;\n isIgnoredByCars?: boolean;\n source?: string;\n}\n\nexport interface Booker {\n id: number;\n name: string;\n}\n\nexport interface Passenger {\n id: number;\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n isLead: boolean;\n uuid: string;\n}\n\nexport interface Vehicle {\n name: string;\n class: string;\n type: string;\n brandAndModel?: string;\n imageUrl: string;\n seats: number;\n luggage: number;\n id?: number;\n licensePlate?: string;\n identifier?: string;\n color?: string;\n status?: string;\n isArchived?: boolean;\n}\n\nexport interface Pricing {\n isoCurrency: string;\n amount: number;\n}\n\nexport interface CancellationPolicy {\n id: number;\n chargePercentage: number;\n cancelledUnderHours: number;\n distanceExceedsKm?: number | null;\n vehicleTypes: string[];\n vehicleClasses?: string[];\n}\n\nexport interface UpdateRideInformation {\n id: string;\n payload: {\n numberOfPassengers: number;\n numberOfBags: number;\n customerReference: string;\n specialRequest: string;\n customFields: { [key: string]: string } | null;\n };\n}\n\nexport interface UpdateTravellerInformation {\n id: string;\n payload: UpdateTraveller[];\n}\n\nexport interface UpdateAvailabilites {\n pickup: {\n transferPoint: {\n id: string;\n type: string;\n };\n pickupTimeZulu: string;\n pickupTime: string;\n };\n dropOff: {\n transferPoint: {\n id: string;\n type: string;\n };\n };\n numberOfPassengers: number;\n numberOfBags: number;\n}\n\nexport interface SearchLocation {\n id: string;\n name: string;\n address?: string;\n type: string;\n city?: string;\n country?: string;\n latitude: number;\n longitude: number;\n timeZone?: string;\n}\n\nexport interface UpdateVehicleRide {\n rideId: string;\n carId: string;\n}\n\nexport interface FlightDetailsVariables {\n id: string;\n payload: {\n flightNumber: string;\n departureDate: string;\n };\n}\n\nexport enum PAYMENT_METHOD {\n CREDIT_CARD = 'Creditcard',\n INVOICE = 'Invoice',\n}\n\nexport interface AvailabilitiesResponse {\n estimationDetails: EstimationDetails;\n availabilities: VehicleResponse[];\n}\n\nexport interface EstimationDetails {\n distanceInMeters: number;\n durationInSeconds: number;\n}\n\nexport interface VehicleResponse {\n uuid: string;\n vehicleName: string;\n vehicleClass: string;\n vehicleType: string;\n vehicleImage: string;\n vehicleAttributes: string[];\n vehicleSeatsNumber: number;\n vehicleBagsCapacity: number;\n price: number;\n currency: string;\n}\n\nexport interface ConfirmCloseAddRemarksRideRequest {\n referenceNumber?: string;\n minutesWaited?: number;\n minutesCosts?: number;\n parkingCosts?: number;\n otherCosts?: number;\n remarks?: string;\n}\n\nexport interface RideAmplitudeEventProperties {\n 'Ride number': string;\n 'Ride created time': string;\n 'Ride pickup time': string;\n 'Ride customer': string;\n 'Ride supplier': string;\n 'Ride status': string;\n 'Ride situation tags': string;\n 'Ride qc status': boolean;\n 'Ride has driver': boolean;\n}\n","import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';\nimport { Box, Grid, LinearProgress, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\n\nconst useStyles = makeStyles({\n mainContainer: {\n width: '100%',\n height: 'calc(100% - 1rem)',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '3px',\n marginTop: '1rem',\n },\n label: {\n color: COLORS.BLACK,\n fontSize: '0.75rem',\n fontWeight: '700',\n },\n});\n\ninterface AverageRatingDistributionCardProps {\n title?: string;\n stars5?: number;\n stars4?: number;\n stars3?: number;\n stars2?: number;\n stars1?: number;\n}\n\nconst AverageRatingDistributionCard = ({\n title = '',\n stars5 = 0,\n stars4 = 0,\n stars3 = 0,\n stars2 = 0,\n stars1 = 0,\n}: AverageRatingDistributionCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n const totalRatings = useMemo(() => stars1 + stars2 + stars3 + stars4 + stars5, [stars1, stars2, stars3, stars4, stars5]);\n\n const ratingsPerPercent = useMemo(() => 100 / totalRatings, [totalRatings]);\n\n return (\n \n \n \n \n {title}\n \n \n \n \n \n {t('pages.reports.stars5')}\n \n \n \n \n {`${Math.round(stars5)}`}\n \n \n \n {t('pages.reports.stars4')}\n \n \n \n \n {`${Math.round(stars4)}`}\n \n \n \n {t('pages.reports.stars3')}\n \n \n \n \n {`${Math.round(stars3)}`}\n \n \n \n {t('pages.reports.stars2')}\n \n \n \n \n {`${Math.round(stars2)}`}\n \n \n \n {t('pages.reports.stars1')}\n \n \n \n \n {`${Math.round(stars1)}`}\n \n \n \n \n \n );\n};\n\nexport default AverageRatingDistributionCard;\n","import { Box, Grid, Rating, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React, { FunctionComponent } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\n\nconst useStyles = makeStyles({\n mainContainer: {\n width: '100%',\n height: 'calc(100% - 1rem)',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '3px',\n marginTop: '1rem',\n },\n ratingBox: {\n display: 'flex',\n alignItems: 'center',\n },\n serviceBox: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n paddingBottom: '.5rem',\n },\n});\n\nconst AverageRatingTopicCard: FunctionComponent<{\n ratingsByTopic: Array<{\n label: string;\n rate: number | null;\n }> | null;\n}> = ({ ratingsByTopic }) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n return (\n \n \n \n \n {t('pages.reports.averageRatingByTopic')}\n \n \n \n {ratingsByTopic &&\n ratingsByTopic.map(({ label, rate }, index) => (\n \n {label}\n \n {rate?.toFixed(1)}\n \n \n \n ))}\n \n \n \n );\n};\n\nexport default AverageRatingTopicCard;\n","import { Rating, Typography, useMediaQuery, Link } from '@mui/material';\nimport { Container } from '@mui/system';\nimport { GridRowParams, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GridRowId } from '@mui/x-data-grid-pro';\nimport clsx from 'clsx';\nimport { formatInTimeZone } from 'date-fns-tz';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router-dom';\n\nimport { DetailPanelToggle } from '../../../../components/detailPanelToggle/DetailPanelToggle';\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { getSingleRideRoute } from '../../../../constants/urlPaths';\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport theme from '../../../../styles/theme';\n\nconst COLUMN_WIDTH = 230;\n\nexport const useReviewsColumns = () => {\n const classes = useDataGridStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const history = useHistory();\n\n return useMemo(() => {\n const columns = [\n {\n field: 'pickUpTime',\n minWidth: COLUMN_WIDTH,\n flex: 1,\n sortable: false,\n disableColumnMenu: true,\n renderHeader: () => (\n \n {isMobile ? t('ride') : t('pages.reports.pickUpTime')}\n \n ),\n renderCell: (params: GridRowParams) => (\n <>{formatInTimeZone(params.row.ride.pickUpTime, 'UTC', DATE_FORMATS['d MMM yyyy at p'])}\n ),\n },\n {\n field: 'rideNumber',\n minWidth: COLUMN_WIDTH,\n flex: 1,\n sortable: false,\n disableColumnMenu: true,\n renderHeader: () => (\n \n {t('rideNumber')}\n \n ),\n renderCell: (params: GridRowParams) => (\n ) => {\n event.stopPropagation();\n\n const rideRoute = getSingleRideRoute(params?.row?.ride?.rideNumber?.toString()?.replace(/-/g, ''));\n\n if (!rideRoute) {\n return;\n }\n\n if (event && event.button === 0 && event.metaKey) {\n event.preventDefault();\n window.open(rideRoute, '_blank');\n return;\n }\n\n history.push(rideRoute);\n }}\n >\n {params.row.ride.rideNumber}\n \n ),\n },\n {\n field: 'driver',\n minWidth: COLUMN_WIDTH,\n flex: 1,\n sortable: false,\n disableColumnMenu: true,\n renderHeader: () => (\n \n {t('driver')}\n \n ),\n renderCell: (params: GridRowParams) => <>{params.row.ride.driver},\n },\n {\n field: 'averageRating',\n minWidth: COLUMN_WIDTH,\n flex: 1,\n headerClassName: classes.hideSeparator,\n sortable: false,\n disableColumnMenu: true,\n renderHeader: () => (\n \n {t('averageRating')}\n \n ),\n renderCell: (params: GridRowParams) => (\n <>\n {params.row.averageRate}\n \n \n ),\n },\n {\n ...GRID_DETAIL_PANEL_TOGGLE_COL_DEF,\n headerClassName: classes.hideSeparator,\n renderCell: (params: { id: GridRowId; value: boolean }) => (\n \n ),\n },\n ];\n\n return columns;\n }, [t, classes.hideSeparator, classes.tableHeader, classes.noRightBorder, isMobile, history]);\n};\n","import { Typography, Box, Grid, Rating, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { GridRowParams } from '@mui/x-data-grid-pro';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Link } from 'react-router-dom';\n\nimport { COLORS } from '../../../../constants/colors';\nimport theme from '../../../../styles/theme';\nimport { FeedbackTopics } from '../../../ride/api/types';\nimport { getTopicLabel } from '../tabs/ReviewsTab';\n\nconst useStyles = makeStyles({\n container: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '1rem .5rem .5rem .5rem',\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n },\n title: {\n color: COLORS.SLATE_GREY,\n fontWeight: 700,\n },\n ratingBox: {\n display: 'flex',\n alignItems: 'center',\n },\n serviceBox: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n paddingBottom: '.5rem',\n },\n});\n\nexport const useReviewsDetailsContent = () => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n return useMemo(\n () =>\n ({ row }: GridRowParams) => (\n \n \n {isMobile && (\n <>\n \n {t('rideNumber')}: \n \n {row.ride.rideNumber}\n \n \n \n {t('driver')}: \n {row.ride.driver}\n \n \n )}\n \n {row.topics?.map(({ topic, rate }: { topic: string; rate: number }, index: string) => (\n \n \n {getTopicLabel(topic as keyof typeof FeedbackTopics, t)}\n \n \n {rate?.toFixed(1)}\n \n \n \n ))}\n \n \n {t('comments')}\n {row.comments.map((comment: string, index: number) => (\n \n {comment}\n \n ))}\n {row.adminComment && (\n <>\n {t('pages.reports.adminComment')}\n {row.adminComment}\n \n )}\n \n \n \n ),\n [classes.container, classes.ratingBox, classes.serviceBox, classes.title, t, isMobile]\n );\n};\n","import { Grid, useMediaQuery } from '@mui/material';\nimport { DataGridPro, useGridApiRef, GridRowId, GridEventListener, GridColDef } from '@mui/x-data-grid-pro';\nimport React, { useCallback, useMemo } from 'react';\nimport { TFunction, useTranslation } from 'react-i18next';\n\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport theme from '../../../../styles/theme';\nimport { FeedbackTopics } from '../../../ride/api/types';\nimport { ReportTabProps } from '../api/types';\nimport AverageRatingDistributionCard from '../AverageRatingDistributionCard';\nimport AverageRatingTopicCard from '../AverageRatingTopicCard';\nimport { useReviewsColumns } from '../hooks/useReviewsColumns';\nimport { useReviewsDetailsContent } from '../hooks/useReviewsDetailsContent';\nimport SummaryBasicCard from '../SummaryBasicCard';\n\nexport const getTopicLabel = (topic: keyof typeof FeedbackTopics, t: TFunction) => {\n switch (topic) {\n case FeedbackTopics.SERVICE_RATE:\n return t('pages.reports.overallService');\n case FeedbackTopics.DRIVER_RATE:\n return t('driver');\n case FeedbackTopics.MEETING_DRIVER_RATE:\n return t('pages.reports.meetingTheDriver');\n case FeedbackTopics.VEHICLE_RATE:\n return t('vehicle');\n default:\n return topic;\n }\n};\n\nconst ReviewsTab = ({ currentPeriod, pastPeriod, period }: ReportTabProps) => {\n const { t } = useTranslation();\n const dataGridClases = useDataGridStyles();\n const gridApiRef = useGridApiRef();\n const columns = useReviewsColumns();\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'));\n\n const rows = useMemo(() => currentPeriod?.reviews || [], [currentPeriod?.reviews]);\n\n const onRowClick = useCallback>(\n (params: { id: GridRowId }) => {\n gridApiRef.current.toggleDetailPanel(params.id);\n },\n [gridApiRef]\n );\n\n const averageRateByTopic = currentPeriod\n ? Object.entries(currentPeriod?.summary.reviews.averageRateByTopic).map(([key, value]) => {\n return {\n label: getTopicLabel(key as keyof typeof FeedbackTopics, t),\n rate: value,\n };\n })\n : null;\n\n const columnVisibilityModel = useMemo(() => {\n return {\n rideNumber: !isMobile,\n driver: !isMobile,\n averageRating: !isMobile,\n };\n }, [isMobile]);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n 'auto'}\n onRowClick={onRowClick}\n columnVisibilityModel={columnVisibilityModel}\n />\n \n );\n};\n\nexport default ReviewsTab;\n","import { Link, useMediaQuery } from '@mui/material';\nimport { GridRowParams, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GridRowId } from '@mui/x-data-grid-pro';\nimport { formatInTimeZone } from 'date-fns-tz';\nimport React, { useMemo } from 'react';\nimport { useTranslation, TFunction } from 'react-i18next';\n\nimport { useHistory } from 'react-router-dom';\nimport { DetailPanelToggle } from '../../../../components/detailPanelToggle/DetailPanelToggle';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { getSingleRideRoute } from '../../../../constants/urlPaths';\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport theme from '../../../../styles/theme';\nimport { SituationType } from '../api/types';\n\nconst COLUMN_WIDTH = 230;\nconst COLUMN_WIDTH_MOBILE = 90;\n\nconst getSituationType = (type: SituationType, t: TFunction): string => {\n switch (type) {\n case SituationType.DriverNoShow:\n return t('pages.reports.situationTypes.driverNoShow');\n case SituationType.Other:\n return t('pages.reports.situationTypes.other');\n case SituationType.DriverLate:\n return t('pages.reports.situationTypes.driverLate');\n case SituationType.WrongVehicle:\n return t('pages.reports.situationTypes.wrongVehicle');\n case SituationType.SafetyIncident:\n return t('pages.reports.situationTypes.safetyIncident');\n case SituationType.VehicleCondition:\n return t('pages.reports.situationTypes.vehicleCondition');\n case SituationType.ServiceQuality:\n return t('pages.reports.situationTypes.serviceQuality');\n case SituationType.OnRouteDelay:\n return t('pages.reports.situationTypes.onRouteDelay');\n default:\n throw new Error(`Wrong type ${type} provided for situation type.`);\n }\n};\n\nexport const useSituationsColumns = () => {\n const classes = useDataGridStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const history = useHistory();\n\n return useMemo(() => {\n const columns = [\n {\n field: 'pickupTime',\n headerName: t('pages.reports.pickUpTime'),\n minWidth: isMobile ? 200 : COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRowParams) => (\n <>{formatInTimeZone(params.row.pickupTime, 'UTC', DATE_FORMATS['d MMM yyyy at p'])}\n ),\n },\n {\n field: 'rideNumber',\n headerName: t('rideNumber'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRowParams) => (\n ) => {\n const rideRoute = getSingleRideRoute(params?.id?.toString()?.replace(/-/g, ''));\n\n if (!rideRoute) {\n return;\n }\n\n if (event && event.button === 0 && event.metaKey) {\n event.preventDefault();\n window.open(rideRoute, '_blank');\n return;\n }\n\n history.push(rideRoute);\n }}\n sx={{ textDecoration: 'underline' }}\n >\n {params.row.rideNumber}\n \n ),\n },\n {\n field: 'driver',\n headerName: t('driver'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n },\n {\n field: 'sitationType',\n headerName: t('pages.reports.situationType'),\n minWidth: isMobile ? COLUMN_WIDTH_MOBILE : COLUMN_WIDTH,\n flex: 1,\n headerClassName: classes.hideSeparator,\n renderCell: (params: GridRowParams) => <>{getSituationType(params.row.situationType, t)},\n },\n {\n ...GRID_DETAIL_PANEL_TOGGLE_COL_DEF,\n headerClassName: classes.hideSeparator,\n renderCell: (params: { id: GridRowId; value: boolean }) => (\n \n ),\n },\n ];\n\n return columns;\n }, [t, isMobile, classes.hideSeparator, history]);\n};\n","import { IconedData } from '@get-e/react-components';\nimport PersonOutlineOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';\nimport { Typography, Box, Grid, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { GridRowParams } from '@mui/x-data-grid-pro';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Link } from 'react-router-dom';\n\nimport { COLORS } from '../../../../constants/colors';\nimport theme from '../../../../styles/theme';\n\nconst useStyles = makeStyles({\n container: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '1rem .5rem .5rem .5rem',\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n background: COLORS.EXTRA_LIGHT_GRAY,\n },\n title: {\n color: COLORS.SLATE_GREY,\n fontWeight: 700,\n },\n ratingBox: {\n display: 'flex',\n alignItems: 'center',\n },\n serviceBox: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n paddingBottom: '.5rem',\n },\n});\n\nexport const useSituationsDetailsContent = () => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n return useMemo(\n () =>\n ({ row }: GridRowParams) => (\n \n \n {isMobile && (\n <>\n \n \n \n \n {t('rideNumber')}: \n \n {row.rideNumber}\n \n \n \n )}\n \n \n ),\n [classes.container, t, isMobile]\n );\n};\n","import { Box, Grid, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\n\nconst useStyles = makeStyles({\n itemRow: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n marginTop: '0.25rem',\n },\n});\n\ninterface SummaryListCardProps {\n title?: string;\n driverLate?: number;\n driverNoShow?: number;\n vehicleCondition?: number;\n serviceQuality?: number;\n safetyIncident?: number;\n onRouteDelay?: number;\n wrongVehicle?: number;\n other?: number;\n}\n\nconst SummaryListCard = ({\n title = '',\n driverLate,\n driverNoShow,\n vehicleCondition,\n serviceQuality,\n safetyIncident,\n onRouteDelay,\n wrongVehicle,\n other,\n}: SummaryListCardProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n\n return (\n \n \n \n \n {title}\n \n \n \n \n \n {t('pages.reports.situationTypes.driverLate')}\n {driverLate}\n \n \n {t('pages.reports.situationTypes.driverNoShow')}\n {driverNoShow}\n \n \n {t('pages.reports.situationTypes.vehicleCondition')}\n {vehicleCondition}\n \n \n {t('pages.reports.situationTypes.serviceQuality')}\n {serviceQuality}\n \n \n \n \n {t('pages.reports.situationTypes.safetyIncident')}\n {safetyIncident}\n \n \n {t('pages.reports.situationTypes.onRouteDelay')}\n {onRouteDelay}\n \n \n {t('pages.reports.situationTypes.wrongVehicle')}\n {wrongVehicle}\n \n \n {t('pages.reports.situationTypes.other')}\n {other}\n \n \n \n \n \n );\n};\n\nexport default SummaryListCard;\n","import { Grid, useMediaQuery } from '@mui/material';\nimport { DataGridPro, GRID_DETAIL_PANEL_TOGGLE_FIELD, GridColDef } from '@mui/x-data-grid-pro';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { getPercentage } from '../../../../helpers/getPercentage';\n\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport theme from '../../../../styles/theme';\nimport { ReportTabProps } from '../api/types';\nimport { useSituationsColumns } from '../hooks/useSituationsColumns';\nimport { useSituationsDetailsContent } from '../hooks/useSituationsDetailsContent';\nimport SummaryBasicCard from '../SummaryBasicCard';\nimport SummaryListCard from '../SummaryListCard';\n\nconst SituationsTab = ({ currentPeriod, pastPeriod, period }: ReportTabProps) => {\n const { t } = useTranslation();\n const dataGridClases = useDataGridStyles();\n const columns = useSituationsColumns();\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'));\n\n const sortedSituations = useMemo(\n () =>\n currentPeriod?.situations\n .sort((sortA, sortB) => sortB.pickupTime.getTime() - sortA.pickupTime.getTime())\n .map(item => ({\n ...item,\n id: item.rideNumber,\n })),\n [currentPeriod?.situations]\n );\n\n const columnVisibilityModel = useMemo(() => {\n return {\n rideNumber: !isMobile,\n driver: !isMobile,\n [GRID_DETAIL_PANEL_TOGGLE_FIELD]: isMobile,\n };\n }, [isMobile]);\n\n return (\n \n \n \n \n \n \n \n \n \n 'auto'}\n columnVisibilityModel={columnVisibilityModel}\n />\n \n );\n};\n\nexport default SituationsTab;\n","export const getPercentageChange = (currentPercentage: number, previousPercentage: number, decimals = 2) => {\n if (previousPercentage === 0) {\n return currentPercentage;\n }\n\n if (currentPercentage === 0) {\n return -previousPercentage;\n }\n\n const increase = currentPercentage - previousPercentage;\n const changePercentage = increase / previousPercentage;\n\n return Number((changePercentage * 100).toFixed(decimals));\n};\n","import { Grid, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { getPercentage } from '../../../../helpers/getPercentage';\nimport { getPercentageChange } from '../../../../helpers/getPercentageChange';\nimport { ReportTabProps } from '../api/types';\nimport { useDriversAddedPercentage } from '../hooks/useDriversAddedPercentage';\nimport { useTrackedDriversPercentage } from '../hooks/useTrackedDriversPercentage';\nimport SummaryBasicCard from '../SummaryBasicCard';\nimport SummaryListCard from '../SummaryListCard';\n\nconst useStyles = makeStyles({\n tabContentHeaderWrapper: {\n marginTop: '2rem',\n marginBottom: '1rem',\n padding: 0,\n },\n tabContentHeader: {\n fontWeight: 700,\n color: COLORS.BLUE_DARK,\n },\n});\n\nconst SummaryTab = ({ currentPeriod, pastPeriod, period }: ReportTabProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n\n const { driversAddedCurrentPeriodPercentage, driversAddedPreviousPeriodPercentage } = useDriversAddedPercentage(\n currentPeriod,\n pastPeriod\n );\n\n const { trackedDriversCurrentPeriodPercentage, trackedDriversPreviousPeriodPercentage } = useTrackedDriversPercentage(\n currentPeriod,\n pastPeriod\n );\n\n return (\n <>\n \n {t('pages.reports.ridePerformances')}\n \n \n \n \n \n \n \n \n \n \n \n \n \n {t('pages.reports.communicationsWithCustomers')}\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default SummaryTab;\n","/* eslint-disable max-statements */\nimport { FullScreenLoader, Select, SelectOption, Tab, Tabs } from '@get-e/react-components';\nimport { Chip, Grid, Typography, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { DatePicker } from '@mui/x-date-pickers-pro';\nimport { addDays, addMonths, endOfMonth, startOfMonth } from 'date-fns';\nimport dayjs from 'dayjs';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router-dom';\n\nimport { PERIODS } from '../../constants';\nimport { COLORS } from '../../constants/colors';\nimport { DATE_FORMATS } from '../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../constants/datePickerPlaceholder';\nimport { USE_REPORT_CURRENT_PERIOD, USE_REPORT_PREVIOUS_PERIOD } from '../../constants/queryKeys';\nimport { REPORTS, REPORTS_DRIVER_ANALYSIS, REPORTS_REVIEWS, REPORTS_SITUATIONS, REPORTS_SUMMARY } from '../../constants/urlPaths';\nimport { useCurrentProfileContext } from '../../context/CurrentProfileContext';\nimport { AccountTypeAbbreviation } from '../../services/types';\nimport theme from '../../styles/theme';\nimport { useReport } from './components/api/useReport';\nimport ReportsLoadingSkeleton from './components/ReportsLoadingSkeleton';\nimport DriverAnalysisTab from './components/tabs/DriverAnalysisTab';\nimport ReviewsTab from './components/tabs/ReviewsTab';\nimport SituationsTab from './components/tabs/SituationsTab';\nimport SummaryTab from './components/tabs/SummaryTab';\n\nconst useStyles = makeStyles({\n mainContainer: {\n justifyContent: 'space-between',\n alignItems: 'flex-end',\n padding: '0 2rem 2rem 2rem',\n },\n mainContainerMobile: {\n justifyContent: 'space-between',\n alignItems: 'flex-end',\n padding: '1rem',\n },\n pageHeaderWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n color: COLORS.BLACK,\n },\n pageHeader: {\n color: COLORS.BLUE,\n fontSize: '1.5rem',\n fontWeight: 700,\n marginRight: '2rem',\n },\n});\n\nexport enum ReportsActiveTab {\n Summary,\n Situations,\n DriverAnalysis,\n Reviews,\n}\n\nconst getActiveTab = (url: string): ReportsActiveTab => {\n switch (url) {\n case REPORTS:\n case REPORTS_SUMMARY:\n return ReportsActiveTab.Summary;\n case REPORTS_SITUATIONS:\n return ReportsActiveTab.Situations;\n case REPORTS_DRIVER_ANALYSIS:\n return ReportsActiveTab.DriverAnalysis;\n case REPORTS_REVIEWS:\n return ReportsActiveTab.Reviews;\n default:\n throw new Error(`Unhandled URL \"${url}\"`);\n }\n};\n\nconst dateNow = new Date();\nconst yesterday = addDays(dateNow, -1);\n\nconst Reports = () => {\n const history = useHistory();\n const classes = useStyles();\n const isSmallDevice = useMediaQuery(theme.breakpoints.down('md'));\n const { pathname } = history.location;\n const { t } = useTranslation();\n const [period, setPeriod] = useState(PERIODS.LAST_30_DAYS.value);\n const [month, setMonth] = useState(null);\n const [startDate, setStartDate] = useState(addDays(yesterday, -PERIODS.LAST_30_DAYS.value));\n const [endDate, setEndDate] = useState(yesterday);\n const [openDate, setOpenDate] = useState(false);\n const { currentProfile: currentUser } = useCurrentProfileContext();\n\n const [previousStartDate, setPreviousStartDate] = useState(addDays(yesterday, -PERIODS.LAST_30_DAYS.value * 2));\n\n const [previousEndDate, setPreviousEndDate] = useState(addDays(yesterday, -PERIODS.LAST_30_DAYS.value));\n\n const activeTab = useMemo(() => getActiveTab(pathname), [pathname]);\n\n const handlePeriods = (newValue: number | null) => {\n setMonth(null);\n setPeriod(newValue);\n\n if (newValue === null || isLoading) {\n return;\n }\n\n setStartDate(addDays(yesterday, -newValue));\n setEndDate(yesterday);\n setPreviousStartDate(addDays(yesterday, -newValue * 2));\n setPreviousEndDate(addDays(yesterday, -newValue));\n };\n\n const handleMonth = (newValue: Date | null) => {\n setPeriod(null);\n\n setMonth(newValue);\n\n if (newValue) {\n setStartDate(startOfMonth(newValue));\n setEndDate(endOfMonth(newValue) > dateNow ? dateNow : endOfMonth(newValue));\n setPreviousStartDate(addMonths(startOfMonth(newValue), -1));\n setPreviousEndDate(addMonths(endOfMonth(newValue), -1));\n }\n };\n\n const endDateCurrentMonth = endDate > dateNow ? dateNow : endDate;\n const dayjsStartDate = dayjs(startDate).startOf('day');\n const dayjsEndDate = dayjs(endDate).endOf('day');\n const dayjsEndDateCurrentMonth = dayjs(endDateCurrentMonth).endOf('day');\n const dayjsPreviousStartDate = dayjs(previousStartDate).startOf('day');\n const dayjsPreviousEndDate = dayjs(previousEndDate).endOf('day');\n\n const {\n report: currentPeriod,\n refetchAll: refetchCurrent,\n isLoading: isLoadingCurrent,\n } = useReport({\n startDate: dayjsStartDate.format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n endDate: dayjsEndDate.format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n accountId: currentUser.accountId,\n accountType: AccountTypeAbbreviation[currentUser.accountType],\n queryKey: USE_REPORT_CURRENT_PERIOD + startDate + endDate,\n });\n\n const {\n report: pastPeriod,\n refetchAll: refetchPast,\n isLoading: isLoadingPast,\n } = useReport({\n startDate: dayjsPreviousStartDate.format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n endDate: dayjsPreviousEndDate.format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n accountId: currentUser.accountId,\n accountType: AccountTypeAbbreviation[currentUser.accountType],\n queryKey: USE_REPORT_PREVIOUS_PERIOD + previousStartDate + previousEndDate,\n });\n\n useEffect(() => {\n refetchCurrent();\n refetchPast();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [period, month]);\n\n const previousPeriod = useMemo(\n () =>\n `${dayjsPreviousStartDate.format(DATE_FORMATS['DD MMM'])}\n - ${dayjsPreviousEndDate.format(DATE_FORMATS['DD MMM'])}`,\n [dayjsPreviousStartDate, dayjsPreviousEndDate]\n );\n\n const currentPeriodDates = useMemo(\n () =>\n `${dayjsStartDate.format(DATE_FORMATS['DD MMM'])}\n - ${dayjsEndDateCurrentMonth.format(DATE_FORMATS['DD MMM'])}`,\n [dayjsStartDate, dayjsEndDateCurrentMonth]\n );\n\n const isLoading = useMemo(() => isLoadingCurrent || isLoadingPast, [isLoadingCurrent, isLoadingPast]);\n\n if (isLoading) {\n return ;\n }\n\n return (\n \n \n \n {t('pages.reports.qualityReport')}\n \n \n \n \n handlePeriods(newValue)}\n disabled={isLoading}\n sx={{ width: '99%' }}\n >\n {PERIODS.LAST_30_DAYS.label}\n {PERIODS.LAST_7_DAYS.label}\n {PERIODS.YESTERDAY.label}\n \n \n \n setOpenDate(true),\n },\n }}\n localeText={datePickerPlaceholder}\n onClose={() => setOpenDate(false)}\n open={openDate}\n disabled={isLoading}\n maxDate={dateNow}\n minDate={addDays(dateNow, -3472)} // Days since 2015\n sx={{ width: '99%' }}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n {isLoading ? (\n div > div': { minHeight: 'calc(100vh - 300px)' } }}>\n \n \n ) : (\n <>\n {activeTab === ReportsActiveTab.Summary ? (\n \n \n \n ) : null}\n {activeTab === ReportsActiveTab.Situations ? (\n \n \n \n ) : null}\n {activeTab === ReportsActiveTab.Reviews ? (\n \n \n \n ) : null}\n {activeTab === ReportsActiveTab.DriverAnalysis ? (\n \n \n \n ) : null}\n \n )}\n \n \n );\n};\n\nexport default Reports;\n","/* eslint-disable prefer-named-capture-group */\n/* eslint-disable @typescript-eslint/prefer-regexp-exec */\nimport { useLocation } from 'react-router-dom';\n\nconst useEmailFromUrlQuery = (): string => {\n const location = useLocation();\n\n // This works for all characters that can be in email !#$%&'*+-/=?^_`{|}~, expect # and %\n const emailRegex = /[?&]email=([^&#%]+)/;\n const emailMatch = location.search.match(emailRegex);\n const email = emailMatch ? decodeURIComponent(emailMatch[1]) : '';\n\n return email;\n};\n\nexport default useEmailFromUrlQuery;\n","import { AxiosResponse } from 'axios';\n\nimport apiClient from '../../../services/api';\nimport { RESET_PASSWORD } from '../../../services/routes';\nimport { ResetPasswordRequest } from './types';\n\nexport const resetPassword = async (request: ResetPasswordRequest): Promise => {\n const response = await apiClient.post(RESET_PASSWORD, request);\n\n return response;\n};\n","import { PrimaryButton, SignedOutLayout, TextField } from '@get-e/react-components';\nimport { Card, CardContent, Grid, Typography, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\nimport { useHistory } from 'react-router';\nimport uuid from 'react-uuid';\n\nimport ShowPasswordButton from '../../components/buttons/showPasswordButton/ShowPasswordButton';\nimport { COLORS } from '../../constants/colors';\nimport { LOG_IN } from '../../constants/urlPaths';\nimport { Severity, useNotificationContext } from '../../context/NotificationContext';\nimport { InputError } from '../../helpers/inputValidation/InputError';\nimport allValid from '../../helpers/inputValidation/validators/allValid';\nimport isEqualString from '../../helpers/inputValidation/validators/isEqualString';\nimport isPasswordStrong from '../../helpers/inputValidation/validators/isPasswordStrong';\nimport useEmailFromUrlQuery from '../../hooks/useEmailFromUrlQuery';\nimport useUrlQuery from '../../hooks/useUrlQuery';\nimport { logoIconLightBackground } from '../../public/assets/images';\nimport theme from '../../styles/theme';\nimport { resetPassword } from './api';\n\nconst useStyles = makeStyles({\n container: { minHeight: '100%' },\n formField: { marginBottom: '2rem' },\n buttons: { width: '100%' },\n signInButton: {\n width: '100%',\n marginTop: '2rem',\n },\n logoContainer: {\n display: 'block',\n margin: '0 auto',\n maxWidth: 110,\n marginBottom: '2rem',\n },\n helpText: { fontSize: '0.75rem' },\n});\n\nconst TOKEN_QUERY_PARAMETER = 'token';\n\nconst ResetPassword = () => {\n const [password, setPassword] = useState('');\n const [confirmPassword, setConfirmPassword] = useState('');\n const [passwordError, setPasswordError] = useState(null);\n const [confirmPasswordError, setConfirmPasswordError] = useState(null);\n const [showingPassword, setShowingPassword] = useState(false);\n const [showingConfirmPassword, setShowingConfirmPassword] = useState(false);\n const { t } = useTranslation();\n const classes = useStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'));\n const urlParams = useUrlQuery();\n const token = urlParams.get(TOKEN_QUERY_PARAMETER) ?? '';\n const { showNotification } = useNotificationContext();\n const history = useHistory();\n const email = useEmailFromUrlQuery();\n\n const { mutate: resetPasswordMutation, isLoading } = useMutation(resetPassword, {\n onSuccess: () => {\n showNotification(t('pages.resetPassword.resetPasswordSuccessfull'), Severity.Info);\n history.push(LOG_IN);\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onError: (error: any) => {\n showNotification(error?.response?.data?.message || t('errors.defaultError'), Severity.Error);\n },\n });\n\n const validateFormFields = (): boolean => {\n setPasswordError(null);\n setConfirmPasswordError(null);\n\n const validated = {\n password: isPasswordStrong(password, InputError.NotStrongPassword),\n confirmPassword: isEqualString(confirmPassword, password, InputError.NoMatch),\n };\n\n if (!allValid(validated)) {\n setPasswordError(validated.password.isValid ? null : validated.password.error);\n setConfirmPasswordError(validated.confirmPassword.isValid ? null : validated.confirmPassword.error);\n\n return false;\n }\n\n return true;\n };\n\n const handleUpdate = () => {\n if (validateFormFields()) {\n resetPasswordMutation({\n password,\n password_confirmation: confirmPassword,\n token,\n email,\n });\n }\n };\n\n return (\n \n \n \n \n \n {'Logo'}\n \n \n {t('pages.resetPassword.resetYourPassword')}\n \n {t('pages.resetPassword.pleaseEnterNewPassword')}\n {\n setPassword(event.target.value);\n setPasswordError(null);\n }}\n InputProps={{\n endAdornment: (\n {\n setShowingPassword(isPasswordVisible);\n }}\n />\n ),\n }}\n error={passwordError !== null}\n helperText={passwordError ? t(passwordError) : undefined}\n required\n className={classes.formField}\n />\n {\n setConfirmPassword(event.target.value);\n setConfirmPasswordError(null);\n }}\n InputProps={{\n endAdornment: (\n {\n setShowingConfirmPassword(isPasswordVisible);\n }}\n />\n ),\n }}\n error={confirmPasswordError !== null}\n helperText={confirmPasswordError ? t(confirmPasswordError) : undefined}\n required\n className={classes.formField}\n />\n \n \n \n {t('useEightOrMoreCharacters')}\n \n \n \n {t('buttonName.updatePassword')}\n \n \n \n \n \n \n );\n};\n\nexport default ResetPassword;\n","import CloseOutlinedIcon from '@mui/icons-material/CloseOutlined';\nimport WarningAmberIcon from '@mui/icons-material/WarningAmber';\nimport { Box, IconButton, Snackbar, useMediaQuery } from '@mui/material';\nimport React, { ReactElement, useMemo } from 'react';\n\nimport { COLORS } from '../../constants/colors';\nimport { NOTIFICATION_HEIGHT } from '../../constants/content';\nimport { MENU_STATE } from '../../constants/windowStorageKeys';\nimport { MenuState } from '../../pages/pageContainer/PageContainer';\nimport theme from '../../styles/theme';\nimport { CLOSED_DRAWER_WITH, DRAWER_WIDTH } from '../navigation/NavigationMenu.styles';\n\nexport interface NotificationProps {\n isOpen: boolean;\n onClose: () => void;\n content: ReactElement;\n backgroundColor?: string;\n textColor?: string;\n verticalPosition?: 'top' | 'bottom';\n className?: string;\n}\n\nconst Notification = ({\n content,\n isOpen,\n backgroundColor,\n textColor,\n onClose,\n verticalPosition,\n className,\n}: NotificationProps) => {\n const isMenuClosed = localStorage.getItem(MENU_STATE) === MenuState.Closed;\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n const left = useMemo(() => {\n if (isMobile) {\n return 0;\n }\n\n if (isMenuClosed) {\n return `${CLOSED_DRAWER_WITH}px !important`;\n }\n\n return `${DRAWER_WIDTH}px !important`;\n }, [isMenuClosed, isMobile]);\n\n const width = useMemo(() => {\n if (isMobile) {\n return '100%';\n }\n\n if (isMenuClosed) {\n return `calc(100% - ${`${CLOSED_DRAWER_WITH}px`})`;\n }\n\n return `calc(100% - ${`${DRAWER_WIDTH}px`})`;\n }, [isMenuClosed, isMobile]);\n\n const visibility = useMemo(() => {\n return isMobile && !isMenuClosed ? 'hidden' : 'visible';\n }, [isMenuClosed, isMobile]);\n\n return (\n {\n if (reason !== 'clickaway') {\n onClose();\n }\n }}\n >\n \n \n {content}\n \n \n \n \n \n );\n};\n\nexport default Notification;\n","export const HEADER_HEIGHT = '56px';\nexport const NOTIFICATION_HEIGHT = '56px';\n","import { BUTTON, FIELD, INPUT } from './eventSourceKeys';\n\nconst CHANGE_TIME_ROUTE_CAR = 'Change time, route and car:';\nconst RIDE_INFORMATION = 'Ride information:';\nconst CHANGE_PASSENGER_AND_RIDE_INFO = 'Change passenger and ride info:';\nconst PASSENGERS = 'Passengers:';\n\nexport const RIDE_INFORMATION_FROM = `${FIELD} ${CHANGE_TIME_ROUTE_CAR} From`;\nexport const RIDE_INFORMATION_TO = `${FIELD} ${CHANGE_TIME_ROUTE_CAR} To`;\nexport const RIDE_INFORMATION_PICKUP_DATE = `${FIELD} ${CHANGE_TIME_ROUTE_CAR} Pickup date`;\nexport const RIDE_INFORMATION_CAR_PICKUP_TIME = `${FIELD} ${CHANGE_TIME_ROUTE_CAR} Pickup time`;\n\nexport const RIDE_INFORMATION_PASSENGERS = `${INPUT} ${CHANGE_PASSENGER_AND_RIDE_INFO} ${RIDE_INFORMATION} Passengers`;\nexport const RIDE_INFORMATION_LUGGAGE = `${INPUT} ${CHANGE_PASSENGER_AND_RIDE_INFO} ${RIDE_INFORMATION} Pieces of luggage`;\nexport const RIDE_INFORMATION_SPECIAL_REQUEST = `${INPUT} ${CHANGE_PASSENGER_AND_RIDE_INFO} ${RIDE_INFORMATION} Special request`;\nexport const RIDE_INFORMATION_REFERENCE = `${INPUT} ${CHANGE_PASSENGER_AND_RIDE_INFO} \n${RIDE_INFORMATION} Customer reference number`;\n\nexport const RIDE_INFORMATION_VEHICLE_CARD = `${BUTTON} ${CHANGE_TIME_ROUTE_CAR} Select service level`;\nexport const RIDE_INFORMATION_FLIGHT_TRACKING = `${INPUT} Flight tracking: Flight number`;\n\nexport const PASSENGERS_MODAL_FIRST_NAME = `${INPUT} ${CHANGE_PASSENGER_AND_RIDE_INFO} ${PASSENGERS} First name`;\nexport const PASSENGERS_MODAL_LAST_NAME = `${INPUT} ${CHANGE_PASSENGER_AND_RIDE_INFO} ${PASSENGERS} Last name`;\nexport const PASSENGERS_MODAL_EMAIL = `${INPUT} ${CHANGE_PASSENGER_AND_RIDE_INFO} ${PASSENGERS} Email`;\nexport const PASSENGERS_MODAL_PHONE = `${INPUT} ${CHANGE_PASSENGER_AND_RIDE_INFO} ${PASSENGERS} Phone number`;\nexport const PASSENGERS_MODAL_ADD_PASSENGER = `${BUTTON} ${CHANGE_PASSENGER_AND_RIDE_INFO} ${PASSENGERS} Add passenger`;\n\nexport const UPDATE_RIDE = `${BUTTON} Update ride: Open modal`;\nexport const CANCEL_RIDE = `${BUTTON} Cancel ride: Open modal`;\nexport const CONFIRM_UPDATE = `${BUTTON} Save ride changes modal: Save`;\nexport const CONFIRM_CANCELLATION_RIDE = `${BUTTON} Cancel modal: Confirm cancellation`;\n\nexport const DONWLOAD_DOCUMENTATION = `${BUTTON} Download documentation`;\nexport const SEND_CONFIRMATION = `${BUTTON} Single ride: Send confirmation email`;\n\nexport const EDIT_RIDE = `${BUTTON} Single ride: Edit ride`;\n","import dayjs from 'dayjs';\n\nimport { DATE_FORMATS } from '../constants/dateFormats';\n\nexport const getDateTimeWithoutOffsetFormatted = (dateTime: string, dateTimeFormat?: string) => {\n if (dateTime.toLowerCase().includes('am') || dateTime.toLowerCase().includes('pm') || dateTime?.length <= 5) {\n return dateTime;\n }\n\n const parsedDateTime = dayjs.tz(dateTime);\n const utcOffset = parsedDateTime.utcOffset();\n\n return parsedDateTime.utcOffset(utcOffset).format(dateTimeFormat || DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']);\n};\n\nexport const getDateTimeWithoutOffset = (dateTime: string) => {\n const formattedDateTime = getDateTimeWithoutOffsetFormatted(dateTime, DATE_FORMATS['YYYY/MM/DD HH:mm:ss']);\n\n return new Date(formattedDateTime);\n};\n","import dayjs from 'dayjs';\n\nimport { TIME_FORMATS } from '../constants/timeFormats';\n\nexport default function getScheduledArrival(pickUpTime: Date | null, durationInSeconds: number | undefined) {\n if (!pickUpTime || !durationInSeconds) {\n return '';\n }\n\n const time = new Date(pickUpTime);\n\n const calculatedDateInSeconds = time.setSeconds(time.getSeconds() + durationInSeconds);\n\n return dayjs(calculatedDateInSeconds).format(TIME_FORMATS['HH:mm A']);\n}\n","export default function metersToKmAndMiFormatted(meters: number | undefined) {\n if (!meters) {\n return '';\n }\n\n const kilometers = (meters / 1000).toFixed(1);\n const miles = (meters * 0.000621371192).toFixed(1);\n\n return `${kilometers} km / ${miles} mi`;\n}\n","export default function secondsToTimeFormatted(seconds: number | undefined) {\n if (!seconds) {\n return '';\n }\n\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds % 3600) / 60);\n\n const hDisplay = hours > 0 ? `${hours} H ` : '';\n const mDisplay = minutes > 0 ? `${minutes} min` : '';\n\n return hDisplay + mDisplay;\n}\n","import { EstimationDetails, RideResponse } from '../../pages/ride/api/types';\nimport { Ride } from '../../pages/ride/components/RideInformation';\nimport { SummaryRideType } from '../../pages/ride/customer/context/RideContext';\nimport getScheduledArrival from '../getScheduledArrival';\nimport metersToKmAndMiFormatted from '../metersToKmAndMiFormatted';\nimport secondsToTimeFormatted from '../secondsToTimeFormatted';\n\nexport const mapRideToSummaryRide = (\n ride: RideResponse,\n rideValues: Ride,\n newEstimateDistanceAndDuration: EstimationDetails | undefined\n): SummaryRideType => ({\n prettifiedUnid: ride.prettifiedUnid,\n status: ride.status,\n distance: metersToKmAndMiFormatted(newEstimateDistanceAndDuration?.distanceInMeters ?? ride.distanceInMeters),\n time: secondsToTimeFormatted(newEstimateDistanceAndDuration?.durationInSeconds ?? ride.durationInSeconds),\n pickupCoordinates:\n rideValues.pickUpLocation?.latitude && rideValues.pickUpLocation?.longitude\n ? {\n lat: rideValues.pickUpLocation?.latitude,\n lon: rideValues.pickUpLocation?.longitude,\n }\n : undefined,\n dropOffCoordinates:\n rideValues.dropOffLocation?.latitude && rideValues.dropOffLocation?.longitude\n ? {\n lat: rideValues.dropOffLocation?.latitude,\n lon: rideValues.dropOffLocation?.longitude,\n }\n : undefined,\n paymentMethod: ride?.paymentMethod,\n booker: ride?.booker,\n primaryTimeZone: rideValues.primaryTimeZone,\n dropOffPlaceId: rideValues.dropOffLocation?.id,\n pickUpPlaceId: rideValues.pickUpLocation?.id,\n scheduledArrival: getScheduledArrival(\n rideValues.pickUpTime,\n newEstimateDistanceAndDuration?.durationInSeconds ?? ride.durationInSeconds\n ),\n scheduledArrivalLocal: getScheduledArrival(\n rideValues.pickUpTimeLocal,\n newEstimateDistanceAndDuration?.durationInSeconds ?? ride.durationInSeconds\n ),\n lastPositionUpdate: ride?.lastPositionUpdate,\n});\n","import { DateRange } from '@mui/x-date-pickers-pro';\nimport dayjs, { Dayjs } from 'dayjs';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../constants/colors';\nimport { RIDES_FILTER, SUPPLIER_RIDES_FILTER } from '../constants/windowStorageKeys';\n\nexport enum RideStatus {\n TO_CONFIRM = 'toConfirm',\n CONFIRMED = 'confirmed',\n BOOKED = 'booked',\n TO_CONFIRM_CHANGE = 'toConfirmChange',\n DRIVER_ON_THE_WAY = 'driverOnTheWay',\n DRIVER_AT_PICKUP = 'driverAtPickup',\n PASSENGER_ON_BOARD = 'passengerOnBoard',\n ACTIVE = 'active',\n TO_CLOSE = 'toClose',\n COMPLETED = 'completed',\n TO_CONFIRM_CANCEL = 'toConfirmCancel',\n CANCELLED = 'cancelled',\n}\n\nexport enum RideStatusFilter {\n BOOKED = 'booked',\n ACTIVE = 'active',\n COMPLETED = 'completed',\n CANCELLED = 'cancelled',\n}\n\nexport enum RideStatusSupplierFilter {\n TO_CONFIRM = 'toConfirm',\n CONFIRMED = 'confirmed',\n TO_CLOSE = 'toClose',\n COMPLETED = 'completed',\n CANCELLED = 'cancelled',\n}\n\nexport enum RideStatusOption {\n DRIVER_KNOWN = 'Driver known',\n NO_FLIGHT_INFORMATION = 'No flight information',\n OVERNIGHT_FLIGHT = 'Overnight flight',\n CONTACT_GREETER_INFO_KNOWN = 'Contact / Greeter info known',\n FLIGHT_TIMES_MISMATCH = 'Flight times mismatch',\n}\n\nexport const RideStatusColor = {\n TO_CONFIRM: COLORS.MEDIUM_ORANGE,\n CONFIRMED: COLORS.LIGHT_BLUE,\n BOOKED: COLORS.LIGHT_BLUE,\n TO_CONFIRM_CHANGE: COLORS.MEDIUM_ORANGE,\n DRIVER_ON_THE_WAY: COLORS.LIGHT_GREEN,\n DRIVER_AT_PICKUP: COLORS.LIGHT_GREEN,\n PASSENGER_ON_BOARD: COLORS.LIGHT_GREEN,\n ACTIVE: COLORS.LIGHT_GREEN,\n TO_CLOSE: COLORS.MEDIUM_ORANGE,\n COMPLETED: COLORS.LIGHT_BLUE,\n TO_CONFIRM_CANCEL: COLORS.MEDIUM_ORANGE,\n CANCELLED: COLORS.BLACK_12,\n} as {\n [key in keyof typeof RideStatus]: keyof typeof COLORS;\n};\n\nexport const RideStatusTextColor = {\n TO_CONFIRM: COLORS.RED_WARNING,\n CONFIRMED: COLORS.BLACK,\n BOOKED: COLORS.BLACK,\n TO_CONFIRM_CHANGE: COLORS.RED_WARNING,\n DRIVER_ON_THE_WAY: COLORS.GREEN_TEXT,\n DRIVER_AT_PICKUP: COLORS.GREEN_TEXT,\n PASSENGER_ON_BOARD: COLORS.GREEN_TEXT,\n ACTIVE: COLORS.GREEN_TEXT,\n TO_CLOSE: COLORS.RED_WARNING,\n COMPLETED: COLORS.BLACK,\n TO_CONFIRM_CANCEL: COLORS.RED_WARNING,\n CANCELLED: COLORS.BLACK,\n} as {\n [key in keyof typeof RideStatus]: keyof typeof COLORS;\n};\n\nexport enum RideTrackingStatus {\n NOT_TRACKING = 'NOT_TRACKING',\n DRIVER_ON_THE_WAY = 'DRIVER_ON_THE_WAY',\n DRIVER_AT_PICKUP = 'DRIVER_AT_PICKUP',\n PASSENGER_ON_BOARD = 'PASSENGER_ON_BOARD',\n COMPLETE = 'COMPLETE',\n}\n\nexport const useRideStatusMap = (): Map => {\n const { t } = useTranslation();\n const rideStatusMap: Map = new Map();\n\n for (const key in RideStatusFilter) {\n if (Object.prototype.hasOwnProperty.call(RideStatusFilter, key)) {\n rideStatusMap.set(key, t(RideStatusFilter[key as keyof typeof RideStatusFilter]));\n }\n }\n\n return rideStatusMap;\n};\n\nexport const useRideStatusSupplierMap = () => {\n const { t } = useTranslation();\n const rideStatusMap: Map = new Map([]);\n\n Object.keys(RideStatusSupplierFilter).map(value =>\n rideStatusMap.set(value, t(RideStatusSupplierFilter[value as keyof typeof RideStatusSupplierFilter]))\n );\n\n return rideStatusMap;\n};\n\nexport const getRideStatusColor = (status: keyof typeof RideStatus) => RideStatusColor[status];\n\nexport const getRideStatusTextColor = (status: keyof typeof RideStatus) => RideStatusTextColor[status];\n\nexport const getRideStatusKey = (() => {\n const rideStatusKeyLookup: { [key: string]: keyof typeof RideStatus } = {};\n\n Object.entries(RideStatus).forEach(([key, value]) => {\n rideStatusKeyLookup[value] = key as keyof typeof RideStatus;\n });\n\n return (value: string): keyof typeof RideStatus => {\n return rideStatusKeyLookup[value];\n };\n})();\n\nexport const getRideStatusOptionKey = (value: string): keyof typeof RideStatusOption => {\n return Object.entries(RideStatusOption).find(([_key, val]) => val === value)?.[0] as keyof typeof RideStatusOption;\n};\n\ninterface RideStatusOptions {\n hasDriver: boolean;\n hasFlight: boolean;\n hasContact: boolean;\n isFlightMismatch: boolean;\n isOvernightFlight: boolean;\n}\n\nexport const getRideStatusOptions = (statusOptions: RideStatusOptions): Array => {\n const newOptions: Array = [];\n\n if (statusOptions?.hasDriver) {\n newOptions.push(getRideStatusOptionKey(RideStatusOption.DRIVER_KNOWN));\n }\n\n if (!statusOptions?.hasFlight) {\n newOptions.push(getRideStatusOptionKey(RideStatusOption.NO_FLIGHT_INFORMATION));\n }\n\n if (statusOptions?.hasContact) {\n newOptions.push(getRideStatusOptionKey(RideStatusOption.CONTACT_GREETER_INFO_KNOWN));\n }\n\n if (statusOptions?.isFlightMismatch) {\n newOptions.push(getRideStatusOptionKey(RideStatusOption.FLIGHT_TIMES_MISMATCH));\n }\n\n if (statusOptions?.isOvernightFlight) {\n newOptions.push(getRideStatusOptionKey(RideStatusOption.OVERNIGHT_FLIGHT));\n }\n\n return newOptions;\n};\n\nexport interface RidesFilterState {\n status: string[];\n dateRange: DateRange;\n}\n\nconst defaultFilters = {\n status: [RideStatusFilter.BOOKED, RideStatusFilter.ACTIVE],\n dateRange: [dayjs().subtract(1, 'days'), dayjs().add(6, 'M')],\n} as RidesFilterState;\n\nconst defaultSupplierFilters = {\n status: [RideStatusSupplierFilter.TO_CONFIRM, RideStatusSupplierFilter.CONFIRMED, RideStatusSupplierFilter.TO_CLOSE],\n dateRange: [dayjs().subtract(1, 'days'), dayjs().add(6, 'M')],\n} as RidesFilterState;\n\nexport const getCustomerRidesFilter = () => {\n const ridesFilter = localStorage.getItem(RIDES_FILTER);\n const ridesFilterParsed = ridesFilter ? (JSON.parse(ridesFilter) as RidesFilterState) : null;\n\n const status = Array.isArray(ridesFilterParsed?.status) ? ridesFilterParsed?.status : defaultFilters.status;\n\n const startDate = ridesFilterParsed?.dateRange ? dayjs(ridesFilterParsed.dateRange[0]) : null;\n const endDate = ridesFilterParsed?.dateRange ? dayjs(ridesFilterParsed.dateRange[1]) : null;\n\n const dateRange = startDate?.isValid() && endDate?.isValid() ? [startDate, endDate] : [null, null];\n\n return {\n status,\n dateRange,\n } as RidesFilterState;\n};\n\nexport const resetCustomerRidesFilter = () => {\n localStorage.removeItem(RIDES_FILTER);\n const filters = getCustomerRidesFilter();\n const filtersParsed = JSON.stringify({ ...filters });\n\n localStorage.setItem(RIDES_FILTER, filtersParsed);\n\n return filters;\n};\n\nexport const getSupplierRidesFilter = () => {\n const ridesFilter = localStorage.getItem(SUPPLIER_RIDES_FILTER);\n const ridesFilterParsed = ridesFilter ? (JSON.parse(ridesFilter) as RidesFilterState) : null;\n\n const status = Array.isArray(ridesFilterParsed?.status) ? ridesFilterParsed?.status : defaultSupplierFilters.status;\n\n const startDate = ridesFilterParsed?.dateRange ? dayjs(ridesFilterParsed.dateRange[0]) : null;\n const endDate = ridesFilterParsed?.dateRange ? dayjs(ridesFilterParsed.dateRange[1]) : null;\n\n const dateRange = startDate?.isValid() && endDate?.isValid() ? [startDate, endDate] : [null, null];\n\n return {\n status,\n dateRange,\n } as RidesFilterState;\n};\n\nexport const resetSupplierRidesFilter = () => {\n localStorage.removeItem(SUPPLIER_RIDES_FILTER);\n const filters = getSupplierRidesFilter();\n const filtersParsed = JSON.stringify({ ...filters });\n\n localStorage.setItem(SUPPLIER_RIDES_FILTER, filtersParsed);\n\n return filters;\n};\n","import { useEffect, useState } from 'react';\nimport { useHistory } from 'react-router-dom';\n\nconst usePageLeave = (\n isBackEnabled: boolean,\n initialPathName: string,\n setIsUpdatePendingModalOpen: (isOpen: boolean) => void,\n isRefreshingDisabled: boolean,\n isDisabled: boolean\n) => {\n const history = useHistory();\n const [routeChanged, setRouteChanged] = useState('');\n\n useEffect(() => {\n if (isDisabled) {\n return;\n }\n\n const unlisten = history.listen(location => {\n if (location.pathname === initialPathName) {\n return;\n }\n\n if (routeChanged === '') {\n history.replace(initialPathName);\n } else {\n history.push(routeChanged);\n return;\n }\n\n setRouteChanged(location.pathname);\n setIsUpdatePendingModalOpen(true);\n });\n\n return function cleanup() {\n unlisten();\n };\n }, [history, isBackEnabled, initialPathName, routeChanged, setIsUpdatePendingModalOpen, isDisabled]);\n\n const handleBlockedNavigation = (event: PopStateEvent) => {\n event.preventDefault();\n setIsUpdatePendingModalOpen(true);\n };\n\n const onUnload = (event: BeforeUnloadEvent) => {\n event.preventDefault();\n event.returnValue = '';\n };\n\n useEffect(() => {\n if (isDisabled) {\n return;\n }\n\n if (!isBackEnabled && !isRefreshingDisabled) {\n window.addEventListener('beforeunload', onUnload);\n }\n\n return () => {\n window.removeEventListener('beforeunload', onUnload);\n };\n }, [isBackEnabled, isDisabled, isRefreshingDisabled]);\n\n useEffect(() => {\n if (isDisabled) {\n return;\n }\n\n if (!isBackEnabled) {\n window.history.pushState(null, document.title, window.location.href);\n window.addEventListener('popstate', handleBlockedNavigation);\n } else {\n if (routeChanged !== '') {\n history.replace(routeChanged);\n setIsUpdatePendingModalOpen(false);\n return;\n }\n\n history.goBack();\n return;\n }\n\n return () => {\n window.removeEventListener('popstate', handleBlockedNavigation);\n }; // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isBackEnabled, isDisabled]);\n};\n\nexport default usePageLeave;\n","import { Coordinates } from '../../../services/types';\nimport { FlightStatus } from '../../ride/customer/helpers/flightStatusUtil';\n\nexport enum LocationType {\n AIRPORT = 'AIRPORT',\n PLACE = 'PLACE',\n}\nexport interface Location {\n id: string;\n name: string;\n address: string | null;\n type: string;\n coordinates: Coordinates;\n}\n\nexport interface Passenger {\n id: number;\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n isLead: boolean;\n name?: string;\n}\n\nexport interface Arrival {\n arriveAt: string;\n arriveAtLocal: string;\n arrivalTimeZone?: string;\n location: Location;\n}\n\nexport interface Departure {\n departAt: string;\n departAtLocal: string;\n departureTimeZone?: string;\n location: Location;\n}\n\nexport enum FlightType {\n ARRIVAL = 'Arrival',\n DEPARTURE = 'Departure',\n}\n\nexport interface FlightDetails {\n number: string;\n type: FlightType;\n airlineName?: string;\n status?: string;\n arrivalTime?: string;\n departure: {\n datetimeLocal: string;\n datetimeZulu: string;\n iata: string;\n name?: string;\n };\n arrival: {\n datetimeLocal: string;\n datetimeZulu: string;\n iata: string;\n name?: string;\n };\n}\n\ninterface FlightTimes {\n scheduled: string | null;\n scheduledUTC: string | null;\n delayed: string | null;\n delayedUTC: string | null;\n}\n\ninterface AirportDetails {\n airportIata: string | null;\n airportName: string | null;\n airportCity: string;\n terminal: string | null;\n gate: string | null;\n times: FlightTimes;\n}\n\nexport interface FlightDetailsNew {\n flightNumber: string;\n flightStatus: FlightStatus;\n updatedAtUTC: string | null;\n isSubscribed: boolean | null;\n airlineIata: string | null;\n departure: AirportDetails;\n arrival: AirportDetails;\n}\n\nexport interface FlightSearchResponse {\n id: number;\n airlineName?: string;\n departure: {\n dateTimeLocal: string;\n dateTimeZulu: string;\n iata: string;\n name?: string;\n };\n arrival: {\n dateTimeLocal: string;\n dateTimeZulu: string;\n iata: string;\n name?: string;\n };\n}\nexport interface RidesVariables {\n query: string;\n statusFilters: string[];\n startDate: string | null;\n endDate: string | null;\n}\n\nexport interface DownloadPdfParams {\n unid: string;\n prettifiedUnid: string;\n}\n\nexport interface DownloadExport {\n startDate: string;\n endDate: string;\n tripUnids?: string[];\n}\n","import LocationOffIcon from '@mui/icons-material/LocationOff';\nimport { Box, Typography } from '@mui/material';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport getDueInTime from '../../../helpers/getDueInTime';\nimport { getRideStatusColor, getRideStatusTextColor, RideStatus, RideTrackingStatus } from '../../../helpers/rideStatusUtil';\n\ninterface StatusBadgeProps {\n status: keyof typeof RideStatus;\n trackingStatus?: keyof typeof RideTrackingStatus;\n pickupDateTimeUtc?: string;\n}\n\nconst StatusBadge = ({ status, trackingStatus, pickupDateTimeUtc }: StatusBadgeProps) => {\n const { t } = useTranslation();\n\n const resolvedStatus = useMemo(() => {\n switch (status) {\n case 'ACTIVE':\n switch (trackingStatus) {\n case 'DRIVER_ON_THE_WAY':\n return t(RideStatus.DRIVER_ON_THE_WAY);\n case 'DRIVER_AT_PICKUP':\n return t(RideStatus.DRIVER_AT_PICKUP);\n case 'PASSENGER_ON_BOARD':\n return t(RideStatus.PASSENGER_ON_BOARD);\n default:\n return t(RideStatus[status]);\n }\n\n default:\n return t(RideStatus[status]);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [status, trackingStatus]);\n\n const dueIn = useMemo(\n () => (status === 'BOOKED' && pickupDateTimeUtc ? getDueInTime(pickupDateTimeUtc, t('dueIn')) : ''),\n [pickupDateTimeUtc, status, t]\n );\n\n const untrackingIcon = useMemo(() => {\n const isNotTrackedRideStatus = trackingStatus === 'NOT_TRACKING' && (status === 'ACTIVE' || status === 'COMPLETED');\n\n return isNotTrackedRideStatus ? (\n \n ) : null;\n }, [status, trackingStatus]);\n\n return (\n \n \n {dueIn || resolvedStatus}\n \n {untrackingIcon}\n \n );\n};\n\nexport default StatusBadge;\n","import dayjs from 'dayjs';\n\nconst minutesOf4Hours = 240;\nconst minutesOf24Hours = 1440;\n\nexport default function getDueInTime(startUtc: string | undefined, prefix: string) {\n if (!startUtc) {\n return '';\n }\n\n const startUtcMoment = dayjs.utc(startUtc);\n const nowUtcMoment = dayjs.utc();\n\n const durationDifference = dayjs.duration(startUtcMoment.diff(nowUtcMoment));\n const durationMinutes = durationDifference.asMinutes();\n\n const hours = durationMinutes / 60;\n const roundHours = Math.floor(hours);\n const minutes = (hours - roundHours) * 60;\n const roundMinutes = Math.round(minutes);\n\n if (durationMinutes < 60) {\n return `${prefix} ${roundMinutes}m`;\n } else if (durationMinutes <= minutesOf4Hours) {\n return `${prefix} ${roundHours}h ${roundMinutes}m`;\n } else if (durationMinutes <= minutesOf24Hours) {\n return `${prefix} ${roundHours}h`;\n }\n\n return '';\n}\n","import downloadFile from '../../../../helpers/downloadFile';\nimport apiClient from '../../../../services/api';\nimport { getDownloadBookingConfirmationRoute } from '../../../../services/routes';\nimport { DownloadPdfParams } from '../../api/types';\n\nconst downloadBookingConfirmation = async (variables: DownloadPdfParams): Promise => {\n const { unid, prettifiedUnid } = variables;\n\n const result = await apiClient\n .get(getDownloadBookingConfirmationRoute(unid), { responseType: 'blob' })\n .then(response => {\n const url = window.URL.createObjectURL(new Blob([response.data]));\n\n downloadFile(url, `GET-E Booking confirmation ${prettifiedUnid}.pdf`);\n })\n .catch(error => {\n console.log(error);\n });\n\n return result;\n};\n\nexport default downloadBookingConfirmation;\n","import downloadFile from '../../../../helpers/downloadFile';\nimport apiClient from '../../../../services/api';\nimport { getDownloadReceiptRoute } from '../../../../services/routes';\nimport { DownloadPdfParams } from '../../api/types';\n\nconst downloadReceipt = async (variables: DownloadPdfParams): Promise => {\n const { unid, prettifiedUnid } = variables;\n\n const result = await apiClient\n .get(getDownloadReceiptRoute(unid), { responseType: 'blob' })\n .then(response => {\n const url = window.URL.createObjectURL(new Blob([response.data]));\n\n downloadFile(url, `GET-E Receipt ${prettifiedUnid}.pdf`);\n })\n .catch(error => {\n console.log(error);\n });\n\n return result;\n};\n\nexport default downloadReceipt;\n","import { useQuery } from 'react-query';\n\nimport { USE_RIDE } from '../../../constants/queryKeys';\nimport apiClient from '../../../services/api';\nimport { getRideRoute } from '../../../services/routes';\nimport { RideResponse } from './types';\n\nexport function useRide(id: string) {\n return useQuery([USE_RIDE], () => viewRide(id), {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n staleTime: 0,\n cacheTime: 0,\n });\n}\n\nexport const viewRide = async (id: string): Promise => {\n const { data } = await apiClient.get(getRideRoute(id));\n\n return data;\n};\n","import dayjs from 'dayjs';\n\nexport default function getRemainingTimeString(startTime: string | null, endTime: string | null) {\n let remainingTimeString = '';\n const startTimeUtcSec = dayjs(startTime).valueOf() / 1000;\n const endTimeUtcSec = dayjs(endTime).valueOf() / 1000;\n\n let delta = Math.abs(endTimeUtcSec - startTimeUtcSec);\n const remainingDays = Math.floor(delta / 86400);\n\n delta -= remainingDays * 86400;\n const remainingHours = Math.floor(delta / 3600) % 24;\n\n if (remainingDays === 0) {\n remainingTimeString += getHoursString(remainingHours);\n } else if (remainingDays === 1) {\n remainingTimeString = `${remainingDays} day `;\n remainingTimeString += getHoursString(remainingHours);\n } else if (remainingDays > 1) {\n remainingTimeString = `${remainingDays} days `;\n remainingTimeString += getHoursString(remainingHours);\n }\n\n return remainingTimeString;\n}\n\nconst getHoursString = (hours: number) => {\n if (hours < 1) {\n return '';\n } else if (hours === 1) {\n return `${hours} hour`;\n } else if (hours > 1) {\n return `${hours} hours`;\n }\n};\n","/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ExpandLess, ExpandMore } from '@mui/icons-material';\nimport { useMediaQuery } from '@mui/material';\nimport React, { useState } from 'react';\n\nimport { COLORS } from '../../../constants/colors';\nimport theme from '../../../styles/theme';\n\nconst withExpandable = (WrappedComponent: React.ComponentType) => {\n return (props: any) => {\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const [isExpanded, setIsExpanded] = useState(true);\n\n const toggleExpanded = () => {\n setIsExpanded(prev => !prev);\n };\n\n return (\n <>\n \n ) : (\n \n ))\n }\n />\n \n );\n };\n};\n\nexport default withExpandable;\n","import { Box, Typography, Grid } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { utcToZonedTime } from 'date-fns-tz';\nimport dayjs from 'dayjs';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { getDateTimeFromDateTimePartials } from '../../../helpers/getDateTimeFromDateTimePartials';\nimport getRemainingTimeString from '../../../helpers/getRemainingTimeString';\nimport getTimeDelta from '../../../helpers/getTimeDelta';\nimport { RideStatus, getRideStatusKey } from '../../../helpers/rideStatusUtil';\nimport { CancellationPolicy } from '../api/types';\nimport withExpandable from './withExpandable';\n\nconst useStyles = makeStyles({\n heading: {\n marginBottom: '0',\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n policyWrapper: { marginBottom: '0.5rem' },\n});\n\ninterface CancellationPoliciesCardProps {\n isUtc: boolean;\n cancelledAt: string | null;\n cancellationPolicies: CancellationPolicy[];\n appliedCancellationPolicy?: CancellationPolicy | null;\n status: keyof typeof RideStatus | null;\n pickUpDate: Date | null;\n pickUpTime: Date | null;\n vehicleType?: string;\n departureTimeZone?: string;\n isVisible?: boolean;\n isTitleDisabled?: boolean;\n order?: number;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n}\n\nconst CancellationPoliciesCard = ({\n isUtc,\n cancelledAt,\n cancellationPolicies,\n appliedCancellationPolicy,\n status,\n pickUpDate,\n pickUpTime,\n vehicleType,\n departureTimeZone,\n isVisible = true,\n isTitleDisabled,\n order,\n renderChevrons,\n isExpanded,\n}: CancellationPoliciesCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n const cancelledAtDateTimeFormatted = useMemo(\n () => `${dayjs(cancelledAt).utc().format(DATE_FORMATS['ddd DD-MMM-YYYY HH:mm A'])} UTC`,\n [cancelledAt]\n );\n\n const cancelledAtLocalDateTimeFormatted = useMemo(() => {\n if (!cancelledAt || !departureTimeZone) {\n return '';\n }\n\n return `${dayjs(utcToZonedTime(cancelledAt, departureTimeZone)).format(DATE_FORMATS['ddd DD-MMM-YYYY HH:mm A'])} ${t(\n 'localTime'\n ).toLowerCase()}`;\n }, [cancelledAt, departureTimeZone, t]);\n\n const combinedDateTime = pickUpDate && pickUpTime ? getDateTimeFromDateTimePartials(pickUpDate, pickUpTime) : null;\n\n const pickupTimeDifference = useMemo(\n () => getRemainingTimeString(cancelledAt ?? '', combinedDateTime?.toUTCString() ?? ''),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [cancelledAt, pickUpDate, pickUpTime]\n );\n\n const cancelledPickupTimeDelta = useMemo(\n () => getTimeDelta(cancelledAt ?? '', combinedDateTime?.toUTCString() ?? ''),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [cancelledAt, pickUpDate, pickUpTime]\n );\n\n if (cancellationPolicies.length === 0 || !isVisible) {\n return null;\n }\n\n return (\n \n \n \n {t(\n appliedCancellationPolicy\n ? 'pages.singleRide.polices.appliedCancellationPolicy'\n : 'pages.singleRide.polices.cancellationPolicies'\n )}\n \n {renderChevrons}\n \n\n {isExpanded && (\n <>\n {!appliedCancellationPolicy &&\n cancellationPolicies.map(policy => (\n
\n \n {t('pages.singleRide.polices.cancelled', {\n cancelledUnderHours: policy.cancelledUnderHours,\n chargePercentage: policy.chargePercentage,\n })}\n \n {vehicleType && policy.vehicleTypes.includes(vehicleType) && (\n \n {t('pages.singleRide.polices.appliableFor', { appliableCarTypes: vehicleType })}\n \n )}\n
\n ))}\n {appliedCancellationPolicy && (\n
\n \n {t('pages.singleRide.polices.cancelled', {\n cancelledUnderHours: appliedCancellationPolicy.cancelledUnderHours,\n chargePercentage: appliedCancellationPolicy.chargePercentage,\n })}\n \n {vehicleType && appliedCancellationPolicy.vehicleTypes.includes(vehicleType) && (\n \n {t('pages.singleRide.polices.appliableFor', { appliableCarTypes: vehicleType })}\n \n )}\n
\n )}\n {cancelledAt && status === getRideStatusKey(RideStatus.CANCELLED) && (\n \n {t('pages.singleRide.polices.cancelledAt')}\n \n {isUtc ? cancelledAtDateTimeFormatted : cancelledAtLocalDateTimeFormatted}{' '}\n {`(${pickupTimeDifference} ${cancelledPickupTimeDelta < 0 ? 'after' : 'before'} pickup time)`}\n \n \n )}\n \n )}\n
\n );\n};\n\nexport default withExpandable(CancellationPoliciesCard);\n","export const getDateTimeFromDateTimePartials = (dateComponents: Date, timeComponents: Date) =>\n new Date(\n dateComponents.getFullYear(),\n dateComponents.getMonth(),\n dateComponents.getDate(),\n timeComponents.getHours(),\n timeComponents.getMinutes(),\n timeComponents.getSeconds()\n );\n","import dayjs from 'dayjs';\n\nexport default function getTimeDelta(startTime: string | null, endTime: string | null) {\n const startTimeSec = dayjs(startTime).valueOf() / 1000;\n const endTimeSec = dayjs(endTime).valueOf() / 1000;\n\n return endTimeSec - startTimeSec;\n}\n","import CachedIcon from '@mui/icons-material/Cached';\nimport SyncDisabledIcon from '@mui/icons-material/SyncDisabled';\nimport { Box, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport theme from '../../../../styles/theme';\nimport { ConnectedTrip } from '../../api/types';\n\nconst useStyles = makeStyles({\n container: {\n height: '54px',\n backgroundColor: COLORS.MEDIUM_ORANGE,\n display: 'flex',\n alignItems: 'center',\n width: '100vw',\n marginLeft: '-435px',\n marginRight: '-500px',\n },\n containerMobile: {\n backgroundColor: COLORS.MEDIUM_ORANGE,\n alignItems: 'center',\n width: 'calc(100% + 40px)',\n marginLeft: '-33px',\n marginRight: '-33px',\n marginTop: '-15px',\n padding: '10px 25px',\n },\n boxOne: {\n color: COLORS.ORANGE_TEXT,\n fontWeight: '700',\n fontSize: '16px',\n display: 'flex',\n alignItems: 'center',\n marginRight: '10px',\n },\n boxThree: {\n color: COLORS.ORANGE_TEXT,\n textDecoration: 'underline',\n marginLeft: '10px',\n cursor: 'pointer',\n },\n});\n\nexport const getStatusIcon = (isIgnoredByCars: boolean) => {\n if (isIgnoredByCars) {\n return ;\n }\n\n return ;\n};\n\nexport const getStatusMessage = (isIgnoredByCars: boolean, t: (key: string) => string) => {\n if (isIgnoredByCars) {\n return t('pages.singleRide.ignoringAutomatedUpdates');\n }\n\n return t('pages.singleRide.carsAutomatedUpdates');\n};\n\nexport const getUpdateMessage = (\n isIgnoredByCars: boolean,\n connectedTrips: ConnectedTrip[] | undefined,\n t: (key: string) => string,\n connectedTripsFlag: boolean\n) => {\n if (isIgnoredByCars) {\n return t('pages.singleRide.thisRideWasManuallyUpdated');\n }\n\n if (Array.isArray(connectedTrips) && connectedTrips.length > 0 && connectedTripsFlag) {\n return t('pages.singleRide.connectedManualUpdateIgnoreResult');\n }\n\n return t('pages.singleRide.manualUpdateIgnoreResult');\n};\n\ninterface CarsAutomatedUpdatesNotificationProps {\n isIgnoredByCars?: boolean;\n connectedTrips?: ConnectedTrip[];\n}\n\nconst CarsAutomatedUpdatesNotification = ({ connectedTrips, isIgnoredByCars }: CarsAutomatedUpdatesNotificationProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const isVerySmallScreen = useMediaQuery(theme.breakpoints.down('sm'));\n const { useConnectedTripsNotification } = useFlags();\n\n const handleLearnMoreClick = () => {\n window.open('https://get-e.com/how-cars-works', '_blank', 'noopener,noreferrer');\n };\n\n return (\n <>\n \n \n {getStatusIcon(Boolean(isIgnoredByCars))}\n {getStatusMessage(Boolean(isIgnoredByCars), t)}\n \n \n {getUpdateMessage(Boolean(isIgnoredByCars), connectedTrips, t, useConnectedTripsNotification)}\n \n \n {t('pages.singleRide.learnHowItWorks')}\n \n \n \n );\n};\n\nexport default CarsAutomatedUpdatesNotification;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography, Box, Link } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { CancellationPolicy, ConnectedTrip } from '../api/types';\nimport { getStatusIcon, getStatusMessage, getUpdateMessage } from '../customer/components/CarsAutomatedUpdatesNotification';\nimport { Vehicle } from './VehicleInformationCards';\n\nconst useStyles = makeStyles({\n confirmButton: {\n background: COLORS.RED,\n '&:hover': { background: COLORS.RED_WARNING },\n },\n closeButton: { marginLeft: '.5rem' },\n systemAutomatedBox: {\n padding: '.5rem',\n borderRadius: '.25rem',\n backgroundColor: COLORS.MEDIUM_ORANGE,\n marginBottom: '.5rem',\n },\n boxOne: {\n color: COLORS.ORANGE_TEXT,\n fontWeight: '700',\n fontSize: '16px',\n display: 'flex',\n alignItems: 'center',\n marginLeft: '10px',\n },\n boxTwo: {\n marginLeft: '10px',\n },\n boxThree: {\n color: COLORS.ORANGE_TEXT,\n textDecoration: 'underline',\n marginLeft: '10px',\n cursor: 'pointer',\n },\n});\n\nconst CancelRideConfirmModal = ({\n onClose,\n onConfirm,\n cancellationPolicies,\n selectedVehicle,\n isLoading,\n isSystemAutomatedRide,\n isIgnoredByCars,\n connectedTrips,\n}: {\n onClose: () => void;\n onConfirm: () => void;\n cancellationPolicies: CancellationPolicy[];\n selectedVehicle: Vehicle | null;\n isLoading?: boolean;\n isSystemAutomatedRide?: boolean;\n isIgnoredByCars?: boolean;\n connectedTrips?: ConnectedTrip[];\n}) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const { useManagedByCars, useConnectedTripsNotification } = useFlags();\n\n return (\n \n {isSystemAutomatedRide && useManagedByCars && (\n <>\n \n \n {getStatusIcon(Boolean(isIgnoredByCars))}\n {getStatusMessage(Boolean(isIgnoredByCars), t)}\n \n \n {getUpdateMessage(Boolean(isIgnoredByCars), connectedTrips, t, useConnectedTripsNotification)}\n \n {\n window.open('https://get-e.com/how-cars-works', '_blank');\n }}\n >\n {t('pages.singleRide.learnHowItWorks')}\n \n \n {Array.isArray(connectedTrips) && connectedTrips.length > 0 && useConnectedTripsNotification && (\n \n {t('pages.rides.otherRidesInThisGroup')}\n {connectedTrips.map((trip, index) => (\n \n {\n window.open(`/rides/${trip.unid}`, '_blank');\n }}\n sx={{ cursor: 'pointer' }}\n >\n {trip.unid}\n \n {index !== connectedTrips.length - 1 && <> | }\n \n ))}\n {t('pages.rides.remainingRidesUpdated')}\n \n )}\n \n )}\n {t('modals.cancelRide.description')}\n {cancellationPolicies.length > 0 && (\n \n {t('pages.singleRide.polices.cancellationPolicies')}\n \n )}\n {cancellationPolicies.map(policy => (\n
\n \n {t('pages.singleRide.polices.cancelled', {\n cancelledUnderHours: policy.cancelledUnderHours,\n chargePercentage: policy.chargePercentage,\n })}\n \n {selectedVehicle && policy.vehicleTypes.includes(selectedVehicle.vehicleType) && (\n \n {t('pages.singleRide.polices.appliableFor', { appliableCarTypes: selectedVehicle.vehicleType })}\n \n )}\n
\n ))}\n \n {t('doYouWantToProceed')}\n \n \n );\n};\n\nexport default CancelRideConfirmModal;\n","import { Box } from '@mui/material';\nimport React, { ReactNode } from 'react';\n\nimport { COLORS } from '../../constants/colors';\n\ninterface CircleWrapperProps {\n sizePx?: string;\n color?: string;\n children?: ReactNode;\n}\n\nconst CircleWrapper = ({ sizePx, color, children }: CircleWrapperProps) => {\n return (\n \n {children}\n \n );\n};\n\nexport default CircleWrapper;\n","import BadgeOutlinedIcon from '@mui/icons-material/BadgeOutlined';\nimport { Box, Divider, Grid, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport CircleWrapper from '../../../components/circleWrapper/CircleWrapper';\nimport { COLORS } from '../../../constants/colors';\nimport { RideStatus } from '../../../helpers/rideStatusUtil';\n\nconst useStyles = makeStyles({\n heading: {\n marginBottom: '1rem',\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n horizontalDivider: {\n margin: '1.5rem 0',\n height: '1px',\n border: 'none',\n background: COLORS.BLACK_12,\n },\n});\n\ninterface DriverInformationProps {\n rideStatus: keyof typeof RideStatus;\n onClick?: () => void;\n name?: string;\n phone?: string;\n pickupDescription?: string;\n}\n\nconst DriverInformation = ({ rideStatus, onClick, name = '', phone = '', pickupDescription = '' }: DriverInformationProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n const isOnlyPickUpDescriptionAvailable = pickupDescription && !name && !phone;\n\n return (\n \n \n {!isOnlyPickUpDescriptionAvailable && (\n \n \n {t('pages.rides.driverInformation')}\n \n {!(name || phone || pickupDescription) && (\n {t('pages.rides.descriptionInformation')}\n )}\n \n )}\n {(name || phone) && (\n \n \n \n \n \n \n \n \n {name && (\n \n {t('name')}: {name}\n \n )}\n {phone && (\n \n {t('form.fields.phoneNumber')}: {phone}\n \n )}\n \n \n {pickupDescription && }\n \n )}\n {pickupDescription && rideStatus !== 'TO_CONFIRM' && (\n \n \n {t('meetingInstructions')}\n \n {pickupDescription}\n \n )}\n \n \n );\n};\n\nexport default DriverInformation;\n","import ContentCopyOutlinedIcon from '@mui/icons-material/ContentCopyOutlined';\nimport { IconButton } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../constants/colors';\nimport { Severity, useNotificationContext } from '../../context/NotificationContext';\n\ninterface CopyToClipboardButtonProps {\n text: string;\n size?: string;\n padding?: string;\n iconMarginRight?: string;\n}\n\nconst CopyToClipboardButton = ({ text, size, padding, iconMarginRight }: CopyToClipboardButtonProps) => {\n const { t } = useTranslation();\n const { showNotification } = useNotificationContext();\n\n const handleClick = (event: React.MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n showNotification(t('copiedToClipboard'), Severity.Info);\n return navigator.clipboard.writeText(text);\n };\n\n return (\n \n \n \n );\n};\n\nexport default CopyToClipboardButton;\n","import { createContext } from 'react';\n\nimport { Point } from '../../../../components/navigation/GoogleMap';\nimport { Coordinates, PrimaryTimeZone } from '../../../../services/types';\nimport { Booker, RideAmplitudeEventProperties } from '../../api/types';\n\nexport interface RideMapType {\n pickupCoordinates?: Coordinates;\n dropOffCoordinates?: Coordinates;\n pickUpPlaceId?: string;\n dropOffPlaceId?: string;\n lastPositionUpdate?: Point;\n prettifiedUnid: string;\n}\n\nexport interface SummaryRideType {\n prettifiedUnid: string;\n status: string;\n distance: string;\n time: string;\n pickupCoordinates?: Coordinates;\n dropOffCoordinates?: Coordinates;\n paymentMethod?: string;\n booker?: Booker;\n primaryTimeZone: PrimaryTimeZone | null;\n scheduledArrival: string;\n scheduledArrivalLocal: string;\n pickUpPlaceId?: string;\n dropOffPlaceId?: string;\n specialRequest?: string;\n vehicleType?: string;\n price?: string;\n mainTraveller?: string;\n otherTraveller?: string;\n lastPositionUpdate?: Point;\n}\n\nexport interface RideContextType {\n summary: SummaryRideType;\n isDisabled: boolean;\n addedTravellerCount: number;\n isTravellerIncreasingDisabled: boolean;\n amplitudeEventProperties?: RideAmplitudeEventProperties;\n}\n\nexport const RideContext = createContext({\n summary: {\n prettifiedUnid: '',\n status: '',\n distance: '',\n time: '',\n pickupCoordinates: undefined,\n dropOffCoordinates: undefined,\n primaryTimeZone: PrimaryTimeZone.LOCAL,\n scheduledArrival: '',\n scheduledArrivalLocal: '',\n lastPositionUpdate: undefined,\n },\n isDisabled: false,\n addedTravellerCount: 0,\n isTravellerIncreasingDisabled: false,\n amplitudeEventProperties: {\n 'Ride number': '',\n 'Ride created time': '',\n 'Ride pickup time': '',\n 'Ride customer': '',\n 'Ride supplier': '',\n 'Ride status': '',\n 'Ride situation tags': '',\n 'Ride qc status': false,\n 'Ride has driver': false,\n },\n});\n\nexport interface NewRideContextType {\n summary: RideMapType;\n amplitudeEventProperties?: RideAmplitudeEventProperties;\n}\n\nexport const NewRideContext = createContext({\n summary: {\n prettifiedUnid: '',\n pickupCoordinates: undefined,\n dropOffCoordinates: undefined,\n lastPositionUpdate: undefined,\n pickUpPlaceId: '',\n dropOffPlaceId: '',\n },\n amplitudeEventProperties: {\n 'Ride number': '',\n 'Ride created time': '',\n 'Ride pickup time': '',\n 'Ride customer': '',\n 'Ride supplier': '',\n 'Ride status': '',\n 'Ride situation tags': '',\n 'Ride qc status': false,\n 'Ride has driver': false,\n },\n});\n","/* eslint-disable id-length */\nimport { useQuery } from 'react-query';\n\nimport { USE_SEARCH_LOCATION } from '../../../../constants/queryKeys';\nimport apiClient from '../../../../services/api';\nimport { SEARCH_LOCATION } from '../../../../services/routes';\nimport { SearchLocation } from '../../api/types';\n\nexport function useSearchLocation(search: string, isSearchEnabled?: boolean) {\n const {\n data: searchOptions,\n isLoading,\n refetch,\n } = useQuery([USE_SEARCH_LOCATION + search], () => listSearchLocationOptions(search), {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n cacheTime: 500,\n enabled: Boolean(isSearchEnabled),\n });\n\n return {\n searchOptions,\n isLoading,\n refetch,\n };\n}\n\nexport const listSearchLocationOptions = async (search: string): Promise => {\n const { data } = await apiClient.get(SEARCH_LOCATION, { params: { q: search } });\n\n return data;\n};\n","import { Autocomplete } from '@get-e/react-components';\nimport ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';\nimport FlightIcon from '@mui/icons-material/Flight';\nimport LocationOnIcon from '@mui/icons-material/LocationOn';\nimport { Box, Container, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React, { useState, useContext } from 'react';\n\nimport CopyToClipboardButton from '../../../components/buttons/CopyToClipboardButton';\nimport { COLORS } from '../../../constants/colors';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport useFormStyles from '../../../styles/Form';\nimport { SearchLocation } from '../api/types';\nimport { useSearchLocation } from '../customer/api/useSearchLocation';\nimport { RideContext } from '../customer/context/RideContext';\n\nconst useStyles = makeStyles({ secondaryText: { color: COLORS.DARK_GRAY } });\n\ninterface SearchLocationProps {\n error: InputError | null;\n helperText?: string;\n inputValue: string;\n setInputValue: (inputValue: string) => void;\n address: SearchLocation | null;\n setAddress: (address: SearchLocation | null) => void;\n label: string;\n isSearchEnabled?: boolean;\n logEvent?: () => void;\n}\n\nexport const SearchLocationComponent = ({\n error = null,\n helperText,\n inputValue = '',\n setInputValue,\n address = null,\n setAddress,\n label = '',\n logEvent,\n}: SearchLocationProps) => {\n const classes = useStyles();\n const formClasses = useFormStyles();\n const [isSearchLocationEnabled, setIsSearchLocationEnabled] = useState(false);\n\n const { isDisabled } = useContext(RideContext);\n\n const { searchOptions = [], isLoading, refetch } = useSearchLocation(inputValue, isSearchLocationEnabled);\n\n const handleOpen = async () => {\n setIsSearchLocationEnabled(true);\n await refetch();\n };\n\n return (\n \n }\n required\n filterOptions={(option): SearchLocation[] => option}\n label={label}\n loading={isLoading}\n options={searchOptions}\n getOptionLabel={(option: SearchLocation) => option.name}\n isError={error !== null}\n helperText={helperText}\n onOpen={handleOpen}\n renderOption={(prop, option: SearchLocation) => {\n const renderIcon = option.type === 'AIRPORT' ? FlightIcon : LocationOnIcon;\n\n return (\n \n \n \n {option.address ?? option.name}\n \n {option?.city} {option?.country && `, ${option?.country}`}\n \n \n \n );\n }}\n value={address}\n onChange={(_, newValue) => {\n logEvent?.();\n setAddress?.(newValue ?? null);\n }}\n onInputChange={(_, newInputValue) => {\n setInputValue?.(newInputValue);\n }}\n disabled={isDisabled}\n className={formClasses.disabledField}\n />\n {isDisabled && (\n \n \n \n )}\n \n );\n};\n","/* eslint-disable max-lines-per-function */\nimport { Spinner, TextField, IconedData } from '@get-e/react-components';\nimport AirplanemodeInactiveOutlinedIcon from '@mui/icons-material/AirplanemodeInactiveOutlined';\nimport FlightIcon from '@mui/icons-material/Flight';\nimport FlightLandIcon from '@mui/icons-material/FlightLand';\nimport FlightTakeoffIcon from '@mui/icons-material/FlightTakeoff';\nimport LuggageOutlinedIcon from '@mui/icons-material/LuggageOutlined';\nimport PersonOutlineOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';\nimport VisibilityIcon from '@mui/icons-material/Visibility';\nimport VisibilityOffIcon from '@mui/icons-material/VisibilityOff';\nimport { Grid, Box, Typography, InputAdornment, Button, Tooltip, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { DatePicker, TimePicker } from '@mui/x-date-pickers-pro';\nimport dayjs from 'dayjs';\nimport React, { SetStateAction, Dispatch, useState, KeyboardEvent, useMemo, useContext, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport uuid from 'react-uuid';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport CopyToClipboardButton from '../../../components/buttons/CopyToClipboardButton';\nimport {\n RIDE_INFORMATION_CAR_PICKUP_TIME,\n RIDE_INFORMATION_FROM,\n RIDE_INFORMATION_LUGGAGE,\n RIDE_INFORMATION_PASSENGERS,\n RIDE_INFORMATION_PICKUP_DATE,\n RIDE_INFORMATION_REFERENCE,\n RIDE_INFORMATION_SPECIAL_REQUEST,\n RIDE_INFORMATION_TO,\n} from '../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../../constants/datePickerPlaceholder';\nimport { ENTER } from '../../../constants/keyCodes';\nimport { TIME_FORMATS } from '../../../constants/timeFormats';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport { getAirlineIataImage } from '../../../services/routes';\nimport { PrimaryTimeZone } from '../../../services/types';\nimport useFormStyles from '../../../styles/Form';\nimport theme from '../../../styles/theme';\nimport { FlightDetails } from '../../rides/api/types';\nimport { CustomField, RideFeedback, SearchLocation } from '../api/types';\nimport { RideContext } from '../customer/context/RideContext';\nimport { SearchLocationComponent } from './SearchLocationComponent';\n\nconst useStyles = makeStyles({\n centerContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n '& > div > span': { fontWeight: 700 },\n },\n timeSeparator: {\n '& .MuiTimePickerToolbar-hourMinuteLabel': {\n display: 'flex',\n alignItems: 'center',\n },\n '& .MuiTimePickerToolbar-separator': { marginTop: '-.5rem' },\n },\n});\n\nconst AIRLINE_IMAGE_WIDTH = 75;\nconst AIRLINE_IMAGE_HEIGHT = 25;\n\nexport interface RideError {\n pickUpDate: InputError | null;\n pickUpTime: InputError | null;\n travellers: InputError | null;\n luggages: InputError | null;\n pickUpLocation: InputError | null;\n dropOffLocation: InputError | null;\n customFields: { [key: string]: InputError | null };\n}\n\nexport const initialRideErrors = {\n pickUpDate: null,\n pickUpTime: null,\n travellers: null,\n luggages: null,\n pickUpLocation: null,\n dropOffLocation: null,\n customFields: {},\n};\n\nexport interface Ride {\n id: string;\n pickUpLocation: SearchLocation | null;\n dropOffLocation: SearchLocation | null;\n pickUpDate: Date | null;\n pickUpTime: Date | null;\n pickUpDateLocal: Date | null;\n pickUpTimeLocal: Date | null;\n dropOffDate: Date | null;\n dropOffDateLocal: Date | null;\n travellers: string;\n luggages: string;\n flightNumber: string;\n specialRequest: string;\n customReference: string;\n flightDetails: FlightDetails;\n primaryTimeZone: PrimaryTimeZone | null;\n feedbacks: RideFeedback[];\n customFields: CustomField[];\n}\n\nexport const initialRide = {\n id: uuid(),\n pickUpLocation: null,\n dropOffLocation: null,\n pickUpDate: null,\n pickUpDateLocal: null,\n pickUpTime: null,\n pickUpTimeLocal: null,\n dropOffDate: null,\n dropOffDateLocal: null,\n travellers: '',\n luggages: '',\n flightNumber: '',\n specialRequest: '',\n customReference: '',\n flightDetails: {} as FlightDetails,\n primaryTimeZone: null,\n feedbacks: [],\n customFields: [],\n} as Ride;\n\ninterface RideInformationProps {\n rideValues: Ride;\n setRideValues: Dispatch>;\n errors: RideError;\n setErrors: Dispatch>;\n handleFlightNumberFinishing: () => void;\n isLoadingFlight?: boolean;\n isErrorFlight?: boolean;\n isUtc: boolean;\n initialRideValues?: Ride | null;\n}\n\n// eslint-disable-next-line complexity\nconst RideInformation = ({\n rideValues,\n setRideValues,\n errors,\n setErrors,\n handleFlightNumberFinishing,\n isLoadingFlight,\n isErrorFlight,\n isUtc,\n initialRideValues,\n}: RideInformationProps) => {\n const { t } = useTranslation();\n const [isReferenceVisible, setIsReferenceVisible] = useState(Boolean(rideValues.customReference));\n const classes = useStyles();\n const formClasses = useFormStyles();\n const [inputValue, setInputValue] = useState('');\n const [inputValueDropOff, setInputValueDropOff] = useState('');\n const [openDate, setOpenDate] = useState(false);\n const [openTime, setOpenTime] = useState(false);\n const [imageError, setImageError] = useState(false);\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const isFlightTracked = !isErrorFlight && Boolean(rideValues.flightDetails.number);\n\n const { isDisabled, addedTravellerCount, isTravellerIncreasingDisabled, amplitudeEventProperties } = useContext(RideContext);\n\n const updatedRideValues = useMemo(() => {\n if (addedTravellerCount > parseInt(rideValues.travellers) && !isTravellerIncreasingDisabled) {\n return {\n ...rideValues,\n travellers: addedTravellerCount.toString(),\n };\n }\n\n return rideValues;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [addedTravellerCount, isTravellerIncreasingDisabled]);\n\n useEffect(() => {\n setRideValues(updatedRideValues);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedRideValues]);\n\n const handleChangeValue = (field: keyof Ride, value: string | Date | SearchLocation | null, fieldKey?: string) => {\n let newValues = { ...rideValues };\n\n if (field === 'customFields') {\n const updatedCustomFields = rideValues.customFields?.map(customField => {\n if (customField.key === fieldKey) {\n return {\n ...customField,\n value,\n } as CustomField;\n }\n\n return customField;\n });\n\n newValues.customFields = updatedCustomFields;\n } else {\n newValues = {\n ...rideValues,\n [field]: value,\n };\n }\n\n const newErrors = { ...errors };\n\n if (field !== 'customFields') {\n newErrors[field] = null;\n } else if (fieldKey) {\n newErrors.customFields[fieldKey] = null;\n }\n\n newErrors.pickUpDate = null;\n newErrors.pickUpTime = null;\n\n if (field === 'pickUpDateLocal') {\n newValues.pickUpTimeLocal = dayjs(\n dayjs(value as Date).format(DATE_FORMATS['YYYY-MM-DDT']) +\n dayjs(newValues.pickUpTimeLocal).format(TIME_FORMATS['HH:mm:ss'])\n ).toDate();\n }\n\n if (field === 'pickUpDate') {\n newValues.pickUpTime = dayjs(\n dayjs(value as Date).format(DATE_FORMATS['YYYY-MM-DDT']) +\n dayjs(newValues.pickUpTime).format(TIME_FORMATS['HH:mm:ss'])\n ).toDate();\n }\n\n setRideValues(newValues);\n setErrors(newErrors);\n };\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === ENTER) {\n handleFlightNumberFinishing();\n }\n };\n\n const flightDepartureDateTime = useMemo(() => {\n const dateTime = isUtc\n ? rideValues.flightDetails.departure?.datetimeZulu\n : rideValues.flightDetails.departure?.datetimeLocal;\n\n return dateTime && dayjs(dateTime).utc().format(DATE_FORMATS['DD MMM at HH:mm A']);\n }, [isUtc, rideValues.flightDetails.departure?.datetimeLocal, rideValues.flightDetails.departure?.datetimeZulu]);\n\n const flightArrivalDateTime = useMemo(() => {\n const dateTime = isUtc ? rideValues.flightDetails.arrival?.datetimeZulu : rideValues.flightDetails.arrival?.datetimeLocal;\n\n return dateTime && dayjs(dateTime).utc().format(DATE_FORMATS['DD MMM at HH:mm A']);\n }, [isUtc, rideValues.flightDetails.arrival?.datetimeLocal, rideValues.flightDetails.arrival?.datetimeZulu]);\n\n const airlineAbbreviation = useMemo(() => rideValues.flightNumber.replace(/[^a-zA-Z]/g, ''), [rideValues.flightNumber]);\n\n const handleImageError = () => {\n setImageError(true);\n };\n\n const flightIcon = useMemo(() => {\n if (isFlightTracked) {\n return airlineAbbreviation && flightDepartureDateTime && !imageError ? (\n \n ) : (\n \n );\n }\n\n return ;\n }, [airlineAbbreviation, flightDepartureDateTime, imageError, isFlightTracked]);\n\n return (\n <>\n \n \n {t('rideInformation')}\n \n \n \n \n \n {\n handleChangeValue('pickUpLocation', newValue);\n }}\n label={t('pickUpLocation')}\n logEvent={() => logAmplitudeEvent(RIDE_INFORMATION_FROM, amplitudeEventProperties)}\n />\n \n \n {\n handleChangeValue('dropOffLocation', newValue);\n }}\n label={t('dropOffLocation')}\n logEvent={() => logAmplitudeEvent(RIDE_INFORMATION_TO, amplitudeEventProperties)}\n />\n \n \n \n \n \n handleChangeValue(isUtc ? 'pickUpDate' : 'pickUpDateLocal', newValue)}\n format={DATE_FORMATS['dd MMM yyyy']}\n disabled={isDisabled}\n className={formClasses.disabledField}\n onClose={() => {\n logAmplitudeEvent(RIDE_INFORMATION_PICKUP_DATE, amplitudeEventProperties);\n setOpenDate(false);\n }}\n slotProps={{\n textField: {\n error: errors.pickUpDate !== null,\n helperText: errors.pickUpDate ? t(errors.pickUpDate) : '',\n variant: 'filled',\n required: true,\n inputProps: { readOnly: true },\n onClick: () => setOpenDate(true),\n },\n }}\n localeText={datePickerPlaceholder}\n open={openDate}\n />\n \n
\n \n \n handleChangeValue(isUtc ? 'pickUpTime' : 'pickUpTimeLocal', newValue)}\n format={TIME_FORMATS['HH:mm a']}\n disabled={isDisabled}\n className={formClasses.disabledField}\n onClose={() => {\n logAmplitudeEvent(RIDE_INFORMATION_CAR_PICKUP_TIME, amplitudeEventProperties);\n setOpenTime(false);\n }}\n slotProps={{\n textField: {\n error: errors.pickUpTime !== null,\n helperText: errors.pickUpTime ? t(errors.pickUpTime) : '',\n variant: 'filled',\n required: true,\n inputProps: { readOnly: true },\n onClick: () => setOpenTime(true),\n },\n mobilePaper: { className: classes.timeSeparator },\n }}\n ampm={false}\n open={openTime}\n />\n \n \n \n handleChangeValue('travellers', event.target.value)}\n error={errors.travellers !== null}\n helperText={errors.travellers && t(errors.travellers)}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n inputProps: { min: 1 },\n }}\n disabled={isDisabled}\n className={formClasses.disabledField}\n onBlur={() =>\n initialRideValues?.travellers !== rideValues.travellers\n ? logAmplitudeEvent(RIDE_INFORMATION_PASSENGERS, amplitudeEventProperties)\n : {}\n }\n />\n \n \n handleChangeValue('luggages', event.target.value)}\n error={errors.luggages !== null}\n helperText={errors.luggages && t(errors.luggages)}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n inputProps: { min: 0 },\n }}\n disabled={isDisabled}\n className={formClasses.disabledField}\n onBlur={() =>\n initialRideValues?.luggages !== rideValues.luggages\n ? logAmplitudeEvent(RIDE_INFORMATION_LUGGAGE, amplitudeEventProperties)\n : {}\n }\n />\n \n \n \n \n handleChangeValue('flightNumber', event.target.value)}\n onBlur={handleFlightNumberFinishing}\n onKeyDown={handleKeyDown}\n InputProps={{\n endAdornment: (\n \n {isDisabled && isFlightTracked ? (\n \n \n \n ) : (\n \n {isLoadingFlight ? : flightIcon}\n \n )}\n \n ),\n }}\n disabled={isDisabled}\n className={formClasses.disabledField}\n />\n \n \n {isFlightTracked && flightDepartureDateTime && (\n \n \n \n {flightDepartureDateTime} {isUtc ? '(UTC)' : ''}\n \n \n )}\n {isFlightTracked && flightArrivalDateTime && (\n \n \n \n {flightArrivalDateTime} {isUtc ? '(UTC)' : ''}\n \n \n )}\n \n \n \n handleChangeValue('specialRequest', event.target.value)}\n disabled={isDisabled}\n multiline\n className={formClasses.disabledField}\n InputProps={{\n endAdornment: isDisabled && (\n \n \n \n ),\n }}\n onBlur={() =>\n initialRideValues?.specialRequest !== rideValues.specialRequest\n ? logAmplitudeEvent(RIDE_INFORMATION_SPECIAL_REQUEST, amplitudeEventProperties)\n : {}\n }\n />\n \n {isReferenceVisible && (\n <>\n \n handleChangeValue('customReference', event.target.value)}\n disabled={isDisabled}\n className={formClasses.disabledField}\n InputProps={{\n endAdornment: isDisabled && (\n \n \n \n ),\n }}\n onBlur={() =>\n initialRideValues?.customReference !== rideValues.customReference\n ? logAmplitudeEvent(RIDE_INFORMATION_REFERENCE, amplitudeEventProperties)\n : {}\n }\n />\n \n {rideValues.customFields?.map(customField => {\n const customFieldError =\n errors.customFields[customField.key] !== undefined &&\n errors.customFields[customField.key] !== null;\n\n return (\n \n handleChangeValue('customFields', event.target.value, customField.key)}\n required={customField.isRequired}\n error={customFieldError}\n helperText={customFieldError ? t('form.helperText.empty') : ' '}\n disabled={isDisabled}\n className={formClasses.disabledField}\n InputProps={{\n endAdornment: isDisabled && (\n \n \n \n ),\n }}\n onBlur={() =>\n initialRideValues?.customFields[customField.key] !==\n rideValues.customFields[customField.key]\n ? logAmplitudeEvent(RIDE_INFORMATION_REFERENCE, amplitudeEventProperties)\n : {}\n }\n />\n \n );\n })}\n \n )}\n \n : }\n sx={{ color: COLORS.BLUE }}\n onClick={() => setIsReferenceVisible(!isReferenceVisible)}\n >\n {isReferenceVisible\n ? t('pages.singleRide.fields.hideReferences')\n : t('pages.singleRide.fields.showReferences')}\n \n \n \n \n );\n};\n\nexport default RideInformation;\n","export const ENTER = 'Enter';\n","import ExpandMoreOutlinedIcon from '@mui/icons-material/ExpandMoreOutlined';\nimport { Accordion, AccordionDetails, AccordionSummary, Box, Rating, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport MopinionForm from 'react-mopinion-forms';\n\nimport { COLORS } from '../../../constants/colors';\nimport { FeedbackTopics, RideFeedback } from '../api/types';\n\nconst useStyles = makeStyles({\n mainWrapperWebForm: {\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '3px',\n padding: '1rem',\n [`& #mopinion--${process.env.REACT_APP_WEB_FEEDBACK_FORM_RIDES ?? ''}`]: {\n '& .control-group.question': {\n padding: '0 !important',\n marginBottom: '1rem',\n },\n '& .block-title': { margin: '0' },\n '& .block-title > *': {\n color: `${COLORS.BLUE_DARK} !important`,\n fontWeight: '400 !important',\n },\n '& .stars-group .ui-stars-star': { fontSize: '1.5rem !important' },\n '& .form-actions': { padding: '0' },\n '& .mopinion-survey-content .ui-stars-star-on .mopicon-star': { color: COLORS.ORANGE_OFFICIAL },\n '& .mopinion-survey-content .ui-stars-star-hover .mopicon-star': { color: COLORS.ORANGE_OFFICIAL },\n '& .btn-submit': {\n backgroundColor: `${COLORS.ORANGE} !important`,\n borderColor: `${COLORS.ORANGE} !important`,\n boxShadow: 'unset !important',\n '&:hover': {\n backgroundColor: `${COLORS.ORANGE_TEXT} !important`,\n borderColor: `${COLORS.ORANGE_TEXT} !important`,\n transform: 'unset',\n },\n },\n },\n },\n mainWrapperCustomForm: {\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '3px',\n },\n wrapper: { flexDirection: 'column' },\n heading: {\n marginBottom: '1rem',\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n rating: {\n color: COLORS.ORANGE_OFFICIAL,\n fontSize: '1.5rem',\n },\n accordion: {\n '& .MuiAccordionSummary-root': { padding: '0' },\n '& .MuiAccordionSummary-root.Mui-expanded': {\n minHeight: 'unset',\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n borderTop: `1px solid ${COLORS.BLACK_12}`,\n },\n '& .MuiAccordionSummary-content': {\n margin: '0',\n padding: '0 1rem',\n },\n '& .MuiAccordionSummary-content.Mui-expanded': { margin: '1rem 0' },\n '& .MuiAccordionSummary-expandIconWrapper': { marginRight: '0.5rem' },\n '& .MuiAccordionDetails-root': { padding: '1rem !important' },\n\n boxShadow: 'none',\n marginBottom: '0 !important',\n marginTop: '0 !important',\n },\n accordionDetails: {\n display: 'flex',\n flexDirection: 'column',\n padding: '1rem 0.3rem',\n },\n firstAccordion: { '& .MuiAccordionSummary-root.Mui-expanded': { borderTop: '0 !important' } },\n});\n\ninterface RideReviewProps {\n feedbacks: RideFeedback[];\n isVisible?: boolean;\n disableEditing?: boolean;\n marginBottom?: string;\n displayTitle?: string;\n isCompactDesign?: boolean;\n}\n\nconst RideReview = ({\n feedbacks,\n isVisible = true,\n disableEditing,\n marginBottom,\n displayTitle,\n isCompactDesign,\n}: RideReviewProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n if (!isVisible) {\n return null;\n }\n\n if (!feedbacks.length && !disableEditing) {\n return (\n \n \n {t('pages.rides.review')}\n \n \n \n );\n }\n\n return (\n \n {displayTitle && feedbacks.length > 0 && (\n \n {displayTitle}\n \n )}\n {feedbacks.length > 0 && (\n \n {feedbacks.map((feedback, index) => {\n const feedbackRates = {\n SERVICE_RATE: feedback.topics.find(topic => topic.topic === FeedbackTopics.SERVICE_RATE)?.rate,\n MEETING_DRIVER_RATE: feedback.topics.find(topic => topic.topic === FeedbackTopics.MEETING_DRIVER_RATE)\n ?.rate,\n DRIVER_RATE: feedback.topics.find(topic => topic.topic === FeedbackTopics.DRIVER_RATE)?.rate,\n VEHICLE_RATE: feedback.topics.find(topic => topic.topic === FeedbackTopics.VEHICLE_RATE)?.rate,\n };\n\n const comment = feedback.comment ?? '';\n\n return (\n \n }>\n \n {t('averageRating')}\n \n \n {feedback.averageRate.toFixed(1)}\n \n \n \n \n \n \n {feedbackRates?.SERVICE_RATE && (\n \n \n {t('pages.rides.howYouRateThisService')}\n \n \n \n {feedbackRates.SERVICE_RATE.toFixed(1)}\n \n \n \n \n )}\n {feedbackRates?.MEETING_DRIVER_RATE && (\n \n {t('pages.rides.wasMeetingDriverEasy')}\n \n \n {feedbackRates.MEETING_DRIVER_RATE.toFixed(1)}\n \n \n \n \n )}\n {feedbackRates?.DRIVER_RATE && (\n \n {t('pages.rides.howYouRateDriver')}\n \n \n {feedbackRates.DRIVER_RATE.toFixed(1)}\n \n \n \n \n )}\n {feedbackRates?.VEHICLE_RATE && (\n \n {t('pages.rides.howYouRateVehicle')}\n \n \n {feedbackRates.VEHICLE_RATE.toFixed(1)}\n \n \n \n \n )}\n \n \n {t('comment')}\n \n {comment}\n \n \n \n );\n })}\n \n )}\n \n );\n};\n\nexport default RideReview;\n","import { IconedData } from '@get-e/react-components';\nimport AirlineSeatReclineNormalOutlinedIcon from '@mui/icons-material/AirlineSeatReclineNormalOutlined';\nimport WorkOutlineOutlinedIcon from '@mui/icons-material/WorkOutlineOutlined';\nimport { Box, Grid, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\n\nconst useStyles = makeStyles({\n heading: {\n marginBottom: '1rem',\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n vehicleImage: {\n position: 'absolute',\n bottom: '16px',\n right: 0,\n height: '70px',\n width: '180px',\n },\n});\n\ninterface RideVehicleInformationCardProps {\n vehicleClass: string;\n vehicleType: string;\n vehicleImage?: string;\n travellers: number;\n luggages: number;\n}\n\nconst RideVehicleInformationCard = ({\n vehicleClass,\n vehicleType,\n vehicleImage,\n travellers,\n luggages,\n}: RideVehicleInformationCardProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n\n return (\n \n \n \n {t('pages.singleRide.currentVehicle')}\n \n {` ${vehicleClass} ${vehicleType}`}\n \n \n \n \n \n \n \n \"Vehicle\"\n \n );\n};\n\nexport default RideVehicleInformationCard;\n","import { AxiosResponse } from 'axios';\n\nimport apiClient from '../../../../services/api';\nimport {\n getCancelRideRoute,\n getSendBookingConfirmationEmailRoute,\n getUpdateFlightNumberRoute,\n getUpdateRideInformation,\n getUpdateTravellerInformation,\n getUpdateVehicleRideRoute,\n} from '../../../../services/routes';\nimport { FlightDetailsVariables, UpdateRideInformation, UpdateTravellerInformation, UpdateVehicleRide } from '../../api/types';\n\nexport const updateRideInformation = async (variables: UpdateRideInformation): Promise => {\n const { id, payload } = variables;\n const response = await apiClient.post(getUpdateRideInformation(id), payload);\n\n return response;\n};\n\nexport const cancelRide = async (id: string): Promise => {\n const response = await apiClient.post(getCancelRideRoute(id));\n\n return response.data as AxiosResponse;\n};\n\nexport const updateTravellerInformation = async (variables: UpdateTravellerInformation): Promise => {\n const { id, payload } = variables;\n const response = await apiClient.post(getUpdateTravellerInformation(id), { passengers: payload });\n\n return response;\n};\n\nexport const updateFlightNumber = async (variables: FlightDetailsVariables): Promise => {\n const { id, payload } = variables;\n const response = await apiClient.post(getUpdateFlightNumberRoute(id), payload);\n\n return response;\n};\n\nexport const updateRideVehicle = async (variables: UpdateVehicleRide): Promise => {\n const { carId, rideId } = variables;\n const response = await apiClient.post(getUpdateVehicleRideRoute(rideId), { uuid: carId });\n\n return response;\n};\n\nexport const sendConfirmationEmail = async ({ id, emailTo }: { id: string; emailTo: string }): Promise => {\n const response = await apiClient.post(getSendBookingConfirmationEmailRoute(id), { emailTo });\n\n return response;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { TextField, ModalAction as Modal } from '@get-e/react-components';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport { Box, Checkbox, InputAdornment, Tooltip, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\n\nimport { COLORS } from '../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport isEmail from '../../../helpers/inputValidation/validators/isEmail';\nimport { sendConfirmationEmail } from '../customer/api';\n\nconst useStyles = makeStyles({\n formField: {\n marginBottom: '1rem',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n multipleSelectItem: {\n width: '100% !important',\n padding: '0.5rem !important',\n '& .MuiListItemText-root': { paddingLeft: '0.5rem !important' },\n },\n});\n\nconst EMAIL_LIST_SEPARATOR = ',';\n\nexport interface SendBookingEmailOptions {\n initialBookingConfirmationEmails: BookingConfirmationEmail[];\n extraEmails: string;\n}\n\nexport interface BookingConfirmationEmail {\n email: string;\n isIncluded: boolean;\n id: string;\n}\n\ninterface SendBookingErrors {\n [id: string]: null | string;\n}\n\ninterface SendBookingConfirmationProps {\n onClose: () => void;\n isOpen: boolean;\n initialBookingConfirmationEmails: BookingConfirmationEmail[];\n rideId: string;\n}\n\nconst SendBookingConfirmationModal = ({\n onClose,\n isOpen,\n initialBookingConfirmationEmails,\n rideId,\n}: SendBookingConfirmationProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const { showNotification } = useNotificationContext();\n\n const [bookingConfirmationEmails, setBookingConfirmationEmails] =\n useState(initialBookingConfirmationEmails);\n\n const [extraEmails, setExtraEmails] = useState('');\n\n const [extraEmailsErrors, setExtraEmailsErrors] = useState(null);\n\n const ids: string[] = initialBookingConfirmationEmails.map(traveller => traveller.id);\n\n const initialFormErrors: SendBookingErrors = ids.reduce((errors, id) => {\n errors[id] = null;\n return errors;\n }, {});\n\n const [formErrors, setFormErrors] = useState(initialFormErrors);\n\n const validateFields = (): boolean => {\n let hasError = false;\n\n if (extraEmails !== '') {\n const emailsList = extraEmails.split(EMAIL_LIST_SEPARATOR).map(element => element.trim());\n\n const validatesExtraEmails = emailsList.map(email => {\n return isEmail(email, InputError.InvalidEmail);\n });\n\n for (const validated of validatesExtraEmails) {\n if (!validated.isValid) {\n setExtraEmailsErrors(InputError.InvalidEmail);\n hasError = true;\n }\n }\n }\n\n setFormErrors(prevFormErrors => {\n const updatedFormErrors = { ...prevFormErrors };\n\n for (const traveller of bookingConfirmationEmails) {\n if (isEmail(traveller.email, InputError.InvalidEmail).isValid) {\n updatedFormErrors[traveller.id] = null;\n } else {\n updatedFormErrors[traveller.id] = InputError.InvalidEmail;\n hasError = true;\n }\n }\n\n return updatedFormErrors;\n });\n\n return !hasError;\n };\n\n const { mutate: sendConfirmationEmailMutation, isLoading } = useMutation(sendConfirmationEmail, {\n onSuccess: () => {\n showNotification(t('alert.edit.successSendEmail'), Severity.Info);\n onClose();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n });\n\n const handleSubmit = (): void => {\n if (!validateFields()) {\n return;\n }\n\n const includedEmails: string[] = bookingConfirmationEmails\n .filter(traveller => traveller.isIncluded)\n .map(traveller => traveller.email);\n\n const emailTo = includedEmails.join(', ').concat(extraEmails ? ` , ${extraEmails}` : '');\n\n emailTo &&\n sendConfirmationEmailMutation({\n id: rideId ?? '',\n emailTo,\n });\n };\n\n const handleChange = (id: string, field: keyof BookingConfirmationEmail, value: string | boolean) => {\n const updatedValues = bookingConfirmationEmails.map(traveller => {\n if (traveller.id === id) {\n return {\n ...traveller,\n [field]: value,\n };\n }\n\n if (field === 'isIncluded' && traveller.id === id) {\n return {\n ...traveller,\n [field]: !traveller.isIncluded,\n };\n }\n\n return traveller;\n });\n\n setBookingConfirmationEmails(updatedValues);\n setFormErrors(prevFormErrors => {\n const updatedFormErrors = { ...prevFormErrors };\n\n for (const traveller of bookingConfirmationEmails) {\n if (traveller.id === id) {\n updatedFormErrors[traveller.id] = null;\n }\n }\n\n return updatedFormErrors;\n });\n };\n\n return (\n \n {bookingConfirmationEmails.length > 0 && (\n \n {t('pages.singleRide.emailAddressesCheckToInclude')}\n \n )}\n {bookingConfirmationEmails?.map(traveller => (\n \n handleChange(traveller.id, 'email', event.target.value)}\n required\n autoComplete=\"off\"\n value={traveller.email}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n \n handleChange(traveller.id, 'isIncluded', event.target.checked)}\n inputProps={{ 'data-cy': 'traveller-included-checkbox' } as any}\n />\n \n \n ))}\n\n \n {t('pages.rides.extraEmailAddress')}\n \n setExtraEmails(event.target.value)}\n autoComplete=\"off\"\n value={extraEmails}\n inputProps={{ 'data-cy': 'extra-email-input' } as any}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n \n );\n};\n\nexport default SendBookingConfirmationModal;\n","import { TextField, ModalAction as Modal } from '@get-e/react-components';\nimport PersonOutlineIcon from '@material-ui/icons/PersonOutline';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport PhoneOutlinedIcon from '@mui/icons-material/PhoneOutlined';\nimport { Checkbox, FormControlLabel, InputAdornment } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { MuiTelInput } from 'mui-tel-input';\nimport React, { useContext, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport {\n PASSENGERS_MODAL_FIRST_NAME,\n PASSENGERS_MODAL_EMAIL,\n PASSENGERS_MODAL_LAST_NAME,\n PASSENGERS_MODAL_PHONE,\n PASSENGERS_MODAL_ADD_PASSENGER,\n} from '../../../constants/amplitude/customerKeys';\nimport { getCountryCode } from '../../../helpers/getCountryCode';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport and from '../../../helpers/inputValidation/validators/and';\nimport isEmail from '../../../helpers/inputValidation/validators/isEmail';\nimport isFilledString from '../../../helpers/inputValidation/validators/isFilledString';\nimport { RideContext } from '../customer/context/RideContext';\nimport { Traveller } from './travellerInformation/TravellerInformation';\n\nconst useStyles = makeStyles({\n formField: {\n marginBottom: '1rem',\n width: '100%',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n multipleSelectItem: {\n width: '100% !important',\n padding: '0.5rem !important',\n '& .MuiListItemText-root': { paddingLeft: '0.5rem !important' },\n },\n});\n\ninterface AddTravellerErrors {\n firstName: InputError | null;\n lastName: InputError | null;\n email: InputError | null;\n phone: InputError | null;\n}\n\ninterface AddTravellerModalProps {\n onClose: () => void;\n onSubmit: (values: Traveller) => void;\n isOpen: boolean;\n traveller?: Traveller;\n}\n\nconst AddTravellerModal = ({ onClose, onSubmit, isOpen, traveller }: AddTravellerModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const { amplitudeEventProperties } = useContext(RideContext);\n\n const [values, setValues] = useState(\n traveller ?? {\n id: uuidv4(),\n firstName: '',\n lastName: '',\n email: '',\n phone: '',\n isLead: false,\n }\n );\n\n const [formErrors, setFormErrors] = useState({\n firstName: null,\n lastName: null,\n email: null,\n phone: null,\n });\n\n const validateFields = (): boolean => {\n const validated = {\n firstName: isFilledString(values.firstName, InputError.Empty),\n lastName: isFilledString(values.lastName, InputError.Empty),\n email: and(isFilledString(values.email, InputError.Empty), () => isEmail(values.email, InputError.InvalidEmail)),\n phone: isFilledString(values.phone, InputError.Empty),\n };\n\n const fieldErros: AddTravellerErrors = {\n firstName: validated.firstName.isValid ? null : validated.firstName.error,\n lastName: validated.lastName.isValid ? null : validated.lastName.error,\n email: validated.email.isValid || !values.isLead ? null : validated.email.error,\n phone: validated.phone.isValid || !values.isLead ? null : validated.phone.error,\n };\n\n const isValid = Object.values(fieldErros).every(error => error === null);\n\n !isValid && setFormErrors(fieldErros);\n\n return isValid;\n };\n\n const handleSubmit = (): void => {\n if (!validateFields()) {\n return;\n }\n\n logAmplitudeEvent(PASSENGERS_MODAL_ADD_PASSENGER, amplitudeEventProperties);\n onSubmit(values);\n };\n\n const handleChange = (key: T, newValue: Traveller[T] & (string | boolean)): void => {\n setValues({\n ...values,\n [key]: newValue,\n });\n\n setFormErrors(prevStateForm => ({\n ...prevStateForm,\n [key]: null,\n }));\n };\n\n return (\n \n handleChange('firstName', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.firstName}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n onBlur={() =>\n values.firstName !== '' ? logAmplitudeEvent(PASSENGERS_MODAL_FIRST_NAME, amplitudeEventProperties) : {}\n }\n />\n handleChange('lastName', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.lastName}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n onBlur={() =>\n values.lastName !== '' ? logAmplitudeEvent(PASSENGERS_MODAL_LAST_NAME, amplitudeEventProperties) : {}\n }\n />\n handleChange('phone', value)}\n required={values.isLead}\n error={values.isLead && formErrors?.phone !== null}\n helperText={values.isLead && formErrors?.phone && t(formErrors.phone)}\n variant=\"filled\"\n fullWidth\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n onBlur={() => (values.phone !== '' ? logAmplitudeEvent(PASSENGERS_MODAL_PHONE, amplitudeEventProperties) : {})}\n />\n handleChange('email', event.target.value)}\n required={values.isLead}\n autoComplete=\"off\"\n value={values.email}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n onBlur={() => (values.email !== '' ? logAmplitudeEvent(PASSENGERS_MODAL_EMAIL, amplitudeEventProperties) : {})}\n />\n handleChange('isLead', event.target.checked)} />}\n label={t('pages.rides.mainPassenger')}\n sx={{\n width: '100%',\n marginRight: 0,\n }}\n />\n \n );\n};\n\nexport default AddTravellerModal;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { Traveller } from './travellerInformation/TravellerInformation';\n\nconst RemoveTravellerConfirmModal = ({\n onClose,\n onConfirm,\n traveller,\n}: {\n onClose: () => void;\n onConfirm: (id: string) => void;\n traveller: Traveller;\n}) => {\n const { t } = useTranslation();\n\n return (\n onConfirm(traveller.id)}\n title={t('modals.removePassenger.title')}\n confirmButtonLabel={t('buttonName.confirm')}\n cancelButtonLabel={t('buttonName.cancel')}\n maxWidth=\"sm\"\n >\n \n {t('modals.removePassenger.descriptionPart1')}\n {`${traveller.firstName} ${traveller.lastName}`} \n {t('modals.removePassenger.descriptionPart2')}\n \n {t('doYouWantToProceed')}\n \n );\n};\n\nexport default RemoveTravellerConfirmModal;\n","import CreateOutlinedIcon from '@mui/icons-material/CreateOutlined';\nimport PersonOffOutlinedIcon from '@mui/icons-material/PersonOffOutlined';\nimport { FormControlLabel, Radio, Tooltip, Typography } from '@mui/material';\nimport { GridRowParams, GridActionsCellItem } from '@mui/x-data-grid-pro';\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport { Traveller } from './TravellerInformation';\n\nexport enum TravellerAction {\n EDIT = 'buttonName.edit',\n REMOVE = 'buttonName.remove',\n}\n\nexport const useTravellerInformationColumns = (\n handleEdit: (traveller: Traveller) => void,\n handleRemove: (traveller: Traveller) => void,\n handleSetLead: (id: string) => void,\n isDisabled: boolean\n) => {\n const { t } = useTranslation();\n const dataGridClases = useDataGridStyles();\n\n const onActionItemClick = useCallback((traveller: Traveller, action: TravellerAction) => {\n switch (action) {\n case TravellerAction.EDIT:\n handleEdit(traveller);\n break;\n case TravellerAction.REMOVE:\n handleRemove(traveller);\n break;\n default:\n throw new Error('Traveller action not supported');\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return useMemo(\n () => [\n {\n field: 'fullName',\n headerName: t('pages.rides.fullName'),\n headerClassName: dataGridClases.header,\n minWidth: 140,\n flex: 1,\n renderCell: (params: GridRowParams) => (\n \n \n {params.row.firstName} {params.row.lastName}\n \n \n ),\n },\n {\n field: 'phone',\n headerName: t('form.fields.mobile'),\n headerClassName: dataGridClases.header,\n minWidth: 140,\n flex: 1,\n renderCell: (params: { value: string }) => (\n \n {params.value}\n \n ),\n },\n {\n field: 'email',\n headerName: t('email'),\n headerClassName: dataGridClases.header,\n minWidth: 140,\n flex: 1,\n renderCell: (params: { value: string }) => (\n \n {params.value}\n \n ),\n },\n {\n field: 'isLead',\n headerName: t('pages.rides.mainPassenger'),\n headerClassName: dataGridClases.header,\n minWidth: 140,\n maxWidth: 140,\n renderCell: (params: GridRowParams) => (\n handleSetLead(params.row.id)}\n control={}\n disabled={isDisabled}\n />\n ),\n },\n {\n field: 'actions',\n type: 'actions',\n width: 20,\n headerClassName: dataGridClases.hideSeparator,\n getActions: (params: GridRowParams) => [\n }\n label={t('buttonName.edit')}\n onClick={() => onActionItemClick(params.row, TravellerAction.EDIT)}\n showInMenu\n onResize={undefined}\n onResizeCapture={undefined}\n nonce=\"\"\n />,\n }\n label={t('buttonName.remove')}\n onClick={() => onActionItemClick(params.row, TravellerAction.REMOVE)}\n showInMenu\n onResize={undefined}\n onResizeCapture={undefined}\n nonce=\"\"\n />,\n ],\n },\n ],\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [t, dataGridClases.hideSeparator, dataGridClases.menuItem, handleSetLead, onActionItemClick]\n );\n};\n","import { SecondaryButton } from '@get-e/react-components';\nimport AddOutlinedIcon from '@mui/icons-material/AddOutlined';\nimport { Typography, Box } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { DataGridPro, GridRowParams, GridColDef } from '@mui/x-data-grid-pro';\nimport clsx from 'clsx';\nimport React, { Dispatch, SetStateAction, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport AddTravellerModal from '../AddTravellerModal';\nimport RemoveTravellerConfirmModal from '../RemoveTravellerConfirmModal';\nimport { useTravellerInformationColumns } from './useTravellerInformationColumns';\n\nconst useStyles = makeStyles({\n addTravellerButton: {\n marginRight: '1rem',\n paddingLeft: '0.4rem',\n paddingRight: '0.4rem',\n },\n buttonIcon: { marginRight: '0.5rem' },\n error: { marginTop: '2rem' },\n});\n\nexport interface Traveller {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n isLead: boolean;\n uuid?: string;\n}\n\nexport interface UpdateTraveller {\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n isLead: boolean;\n uuid?: string;\n}\n\nexport interface TravellerError {\n id: string;\n firstNameError: InputError | null;\n lastNameError: InputError | null;\n emailError: InputError | null;\n phoneError: InputError | null;\n}\n\nconst initialTravellerId = uuidv4();\n\nexport const initialTraveller = {\n id: initialTravellerId,\n firstName: '',\n lastName: '',\n email: '',\n phone: '',\n isLead: true,\n} as Traveller;\n\nexport const initialTravellerErrors = {\n id: initialTravellerId,\n firstNameError: null,\n lastNameError: null,\n emailError: null,\n phoneError: null,\n} as TravellerError;\n\ninterface TravellerInformationProps {\n values: Traveller[];\n setValues: Dispatch>;\n errors: TravellerError[];\n setErrors: Dispatch>;\n isDisabled: boolean;\n setIsTravellerIncreasingDisabled: Dispatch>;\n}\n\nconst TravellerInformation = ({\n values,\n setValues,\n errors,\n setErrors,\n isDisabled,\n setIsTravellerIncreasingDisabled,\n}: TravellerInformationProps) => {\n const classes = useStyles();\n const dataGridClases = useDataGridStyles();\n const { t } = useTranslation();\n const [isAddModalOpen, setIsAddModalOpen] = useState(false);\n const [isEditModalOpen, setIsEditModalOpen] = useState(false);\n const [isRemoveModalOpen, setIsRemoveModalOpen] = useState(false);\n const selectedTraveller = useRef();\n\n const handleEdit = (traveller: Traveller) => {\n selectedTraveller.current = traveller;\n setIsEditModalOpen(true);\n };\n\n const handleRemove = (traveller: Traveller) => {\n selectedTraveller.current = traveller;\n setIsRemoveModalOpen(true);\n setIsTravellerIncreasingDisabled(true);\n };\n\n const handleSetLead = (id: string) => {\n handleChangeValue(id, 'isLead', true);\n };\n\n const columns = useTravellerInformationColumns(handleEdit, handleRemove, handleSetLead, isDisabled);\n\n const handleChangeValue = (id: string, field: keyof Traveller, value: string | boolean) => {\n const updatedValues = values.map(traveller => {\n if (traveller.id === id) {\n return {\n ...traveller,\n [field]: value,\n };\n }\n\n if (field === 'isLead') {\n return {\n ...traveller,\n [field]: false,\n };\n }\n\n return traveller;\n });\n\n setValues(updatedValues);\n };\n\n const handleAddTraveller = (newTraveller: Traveller) => {\n const oldValues = values.map(traveller => ({\n ...traveller,\n isLead: newTraveller.isLead ? false : traveller.isLead,\n }));\n\n const updatedValues = [...oldValues, { ...newTraveller }];\n\n const updatedErrors = [\n ...errors,\n {\n id: newTraveller.id,\n firstNameError: null,\n lastNameError: null,\n emailError: null,\n phoneError: null,\n },\n ];\n\n setValues(updatedValues);\n setErrors(updatedErrors);\n setIsAddModalOpen(false);\n setIsTravellerIncreasingDisabled(false);\n };\n\n const handleEditTraveller = (updatedTraveller: Traveller) => {\n const oldValues = values.map(traveller => ({\n ...traveller,\n isLead: updatedTraveller.isLead ? false : traveller.isLead,\n }));\n\n const updatedValues = oldValues.map(traveller => (traveller.id === updatedTraveller.id ? updatedTraveller : traveller));\n\n setValues(updatedValues);\n setIsEditModalOpen(false);\n };\n\n const handleRemoveTraveller = (id: string) => {\n const updatedValues = values.filter(traveller => traveller.id !== id);\n const updatedErrors = errors.filter(traveller => traveller.id !== id);\n\n setValues(updatedValues);\n setErrors(updatedErrors);\n selectedTraveller.current = undefined;\n };\n\n return (\n <>\n \n \n {t('passengerInformation')}\n \n \n !isDisabled && handleEdit(params.row)}\n columnVisibilityModel={{ actions: !isDisabled }}\n />\n \n setIsAddModalOpen(true)}\n className={classes.addTravellerButton}\n disabled={isDisabled}\n >\n \n {t('pages.rides.addPassenger')}\n \n \n {isAddModalOpen && (\n setIsAddModalOpen(false)}\n onSubmit={handleAddTraveller}\n />\n )}\n {isEditModalOpen && (\n setIsEditModalOpen(false)}\n onSubmit={handleEditTraveller}\n traveller={selectedTraveller.current}\n />\n )}\n {selectedTraveller.current && isRemoveModalOpen && (\n setIsRemoveModalOpen(false)}\n onConfirm={handleRemoveTraveller}\n traveller={selectedTraveller.current}\n />\n )}\n \n );\n};\n\nexport default TravellerInformation;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography } from '@mui/material';\nimport React from 'react';\n\nimport { useTranslation } from 'react-i18next';\n\nconst UpdatePendingConfirmModal = ({ onClose, onConfirm }: { onClose: () => void; onConfirm: () => void }) => {\n const { t } = useTranslation();\n\n return (\n \n {t('modals.updatePendingRide.description')}\n \n {t('doYouWantToProceed')}\n \n \n );\n};\n\nexport default UpdatePendingConfirmModal;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography, Box, Link } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { ConnectedTrip } from '../api/types';\nimport { getStatusIcon, getStatusMessage, getUpdateMessage } from '../customer/components/CarsAutomatedUpdatesNotification';\nimport { CUSTOM_FIELD_KEY } from '../customer/Ride';\n\nconst useStyles = makeStyles({\n changesList: {\n marginTop: '0.5rem',\n paddingLeft: '1.5rem',\n },\n systemAutomatedBox: {\n padding: '.5rem',\n borderRadius: '.25rem',\n backgroundColor: COLORS.MEDIUM_ORANGE,\n marginBottom: '2rem',\n },\n contact: {\n textDecoration: 'underline',\n '&:hover': {\n color: COLORS.RED_WARNING,\n textDecoration: 'underline',\n borderBottom: 'none',\n },\n },\n boxOne: {\n color: COLORS.ORANGE_TEXT,\n fontWeight: '700',\n fontSize: '16px',\n display: 'flex',\n alignItems: 'center',\n marginLeft: '10px',\n },\n boxTwo: {\n marginLeft: '10px',\n },\n boxThree: {\n color: COLORS.ORANGE_TEXT,\n textDecoration: 'underline',\n marginLeft: '10px',\n cursor: 'pointer',\n },\n});\n\nconst UpdateRideConfirmModal = ({\n onClose,\n onConfirm,\n changes,\n isLoading,\n isSystemAutomatedRide,\n isIgnoredByCars,\n connectedTrips,\n}: {\n onClose: () => void;\n onConfirm: () => void;\n changes?: Map;\n isLoading?: boolean;\n isSystemAutomatedRide?: boolean;\n isIgnoredByCars?: boolean;\n connectedTrips?: ConnectedTrip[];\n}) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const { useManagedByCars, useConnectedTripsNotification } = useFlags();\n\n const changedItems = useMemo(() => {\n const items: string[] = [];\n\n const changedItemElements: JSX.Element[] = [];\n\n changes?.forEach((isChanged, field) => {\n isChanged && items.push(field);\n\n if (isChanged === true || isChanged === CUSTOM_FIELD_KEY) {\n changedItemElements.push(\n
  • {typeof isChanged === 'boolean' ? t(`pages.singleRide.updatedFields.${field}`) : field}
  • \n );\n }\n });\n\n return {\n elements:
      {changedItemElements ?? <>}
    ,\n hasChanges: changedItemElements.length > 0,\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [changes]);\n\n return (\n \n {isSystemAutomatedRide && useManagedByCars && (\n <>\n \n \n {getStatusIcon(Boolean(isIgnoredByCars))}\n {getStatusMessage(Boolean(isIgnoredByCars), t)}\n \n \n {getUpdateMessage(Boolean(isIgnoredByCars), connectedTrips, t, useConnectedTripsNotification)}\n \n {\n window.open('https://get-e.com/how-cars-works', '_blank');\n }}\n >\n {t('pages.singleRide.learnHowItWorks')}\n \n \n {Array.isArray(connectedTrips) && connectedTrips.length > 0 && useConnectedTripsNotification && (\n \n {t('pages.rides.otherRidesInThisGroup')}\n {connectedTrips.map((trip, index) => (\n \n {\n window.open(`/rides/${trip.unid}`, '_blank');\n }}\n sx={{ cursor: 'pointer' }}\n >\n {trip.unid}\n \n {index !== connectedTrips.length - 1 && <> | }\n \n ))}\n {t('pages.rides.remainingRidesUpdated')}\n \n )}\n \n )}\n {t('modals.updateRide.description')}\n {changedItems.hasChanges && (\n <>\n \n {t('modals.updateRide.whatIsChanging')}\n \n {changedItems.elements}\n \n )}\n \n {t('doYouWantToProceed')}\n \n \n );\n};\n\nexport default UpdateRideConfirmModal;\n","import CarCrashOutlinedIcon from '@mui/icons-material/CarCrashOutlined';\nimport { Card, CardContent, Grid, Box, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { BUTTON_WIDTH } from '../../../constants/layout';\n\nconst useStyles = makeStyles({\n image: {\n maxHeight: '100%',\n maxWidth: '100%',\n },\n imageContainer: {\n color: COLORS.SLATE_GREY,\n marginBottom: '1rem',\n lineHeight: 0,\n fontSize: '2.5rem',\n },\n cardContainer: {\n textAlign: 'center',\n marginBottom: '1rem',\n height: 'auto',\n margin: '0',\n },\n formField: {\n marginBottom: '1.75rem',\n width: '100%',\n },\n sendButton: {\n width: BUTTON_WIDTH,\n display: 'flex',\n },\n});\n\nconst NoVehicleAvailable = () => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n return (\n \n \n \n \n \n \n \n \n \n \n {t('pages.singleRide.noVehicleAvailable')}\n \n \n {t('pages.singleRide.noVehicleAvailableDescriptionShort')}\n \n \n \n \n \n );\n};\n\nexport default NoVehicleAvailable;\n","import { IconedData } from '@get-e/react-components';\nimport AirlineSeatReclineNormalOutlinedIcon from '@mui/icons-material/AirlineSeatReclineNormalOutlined';\nimport WorkOutlineOutlinedIcon from '@mui/icons-material/WorkOutlineOutlined';\nimport { Card, CardContent, Grid, Typography, Box, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport theme from '../../../styles/theme';\n\nconst useStyles = makeStyles({\n image: {\n height: '120px',\n width: '350px',\n },\n cardContainer: {\n marginBottom: '1rem',\n cursor: 'pointer',\n height: 'auto',\n margin: '0',\n overflow: 'hidden',\n transition: 'height 1.2s ease-in-out, margin 1.2s ease-in-out',\n '&:hover': {\n backgroundColor: COLORS.EXTRA_LIGHT_GRAY,\n boxShadow: '0px 12px 24px -4px rgba(148, 158, 171, 0.12), 0px 0px 2px rgba(148, 158, 171, 0.2)',\n },\n '& .MuiCardContent-root:last-child': { paddingBottom: '1rem' },\n },\n cardSelected: { backgroundColor: `${COLORS.EXTRA_LIGHT_GRAY} !important` },\n cardHidden: {\n height: 0,\n margin: 0,\n padding: 0,\n border: 'none',\n },\n});\n\ninterface VehicleInformationCardProps {\n vehicleClass?: string;\n vehicleType?: string;\n vehicleImage?: string;\n travellers?: string;\n luggages?: string;\n price?: string;\n priceCurrency?: string;\n isVehicleSelected?: boolean;\n onCardClick?: () => void;\n}\n\nconst VehicleInformationCard = ({\n vehicleClass = '',\n vehicleType = '',\n vehicleImage,\n travellers = '0',\n luggages = '0',\n price = '0',\n priceCurrency = 'eur',\n onCardClick,\n isVehicleSelected,\n}: VehicleInformationCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n return (\n \n \n \n \n \n {`${vehicleClass} ${vehicleType}`}\n \n \n \n \n \n \n \n {priceCurrency} {price}\n \n \n {t('pages.singleRide.priceDescription')}\n \n \n \n \n \"Vehicle\"\n \n \n \n \n );\n};\n\nexport default VehicleInformationCard;\n","import { Spinner } from '@get-e/react-components';\nimport DirectionsCarFilledOutlinedIcon from '@mui/icons-material/DirectionsCarFilledOutlined';\nimport { Button, FormHelperText } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { Dispatch, SetStateAction, useContext } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport { RIDE_INFORMATION_VEHICLE_CARD } from '../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../constants/colors';\nimport { RideContext } from '../customer/context/RideContext';\nimport NoVehicleAvailable from './NoVehicleAvailable';\nimport VehicleInformationCard from './VehicleInformationCard';\n\nconst useStyles = makeStyles({\n button: {\n color: COLORS.BLUE,\n marginTop: '1rem',\n },\n});\n\nexport interface Vehicle {\n id: string;\n vehicleClass: string;\n vehicleType: string;\n vehicleImage: string;\n travellers: string;\n luggages: string;\n price: number;\n priceCurrency: string;\n // Remove carId as it's not in use\n carId?: string;\n}\n\ninterface VehicleInformationCardsProp {\n selectedVehicle: Vehicle | null;\n setSelectedVehicle: Dispatch>;\n setIsUpdateNotificationOpen: Dispatch>;\n vehicleList: Vehicle[];\n isError?: boolean;\n setIsError?: () => void;\n showAvailabilityOptions: () => void;\n isLoading: boolean;\n}\n\nconst VehicleInformationCards = ({\n selectedVehicle,\n setSelectedVehicle,\n vehicleList = [],\n isError = false,\n setIsError,\n setIsUpdateNotificationOpen,\n showAvailabilityOptions,\n isLoading,\n}: VehicleInformationCardsProp) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const { isDisabled, amplitudeEventProperties } = useContext(RideContext);\n\n const onCardClick = (vehicle: Vehicle | null) => {\n if (isDisabled || isLoading) {\n return;\n }\n\n setSelectedVehicle(vehicle);\n setIsError?.();\n setIsUpdateNotificationOpen(false);\n\n logAmplitudeEvent(RIDE_INFORMATION_VEHICLE_CARD, amplitudeEventProperties);\n };\n\n return (\n <>\n {selectedVehicle && (\n onCardClick(selectedVehicle)}\n vehicleClass={selectedVehicle.vehicleClass}\n vehicleType={selectedVehicle.vehicleType}\n vehicleImage={selectedVehicle.vehicleImage}\n luggages={selectedVehicle.luggages}\n travellers={selectedVehicle.travellers}\n price={(Math.round((selectedVehicle?.price ?? 0) * 100) / 100).toFixed(2)}\n priceCurrency={selectedVehicle.priceCurrency}\n />\n )}\n {vehicleList.length > 0 &&\n !selectedVehicle &&\n vehicleList.map((vehicle: Vehicle) => (\n onCardClick(vehicle)}\n vehicleClass={vehicle.vehicleClass}\n vehicleType={vehicle.vehicleType}\n vehicleImage={vehicle.vehicleImage}\n luggages={vehicle.luggages}\n travellers={vehicle.travellers}\n price={(Math.round((vehicle.price ?? 0) * 100) / 100).toFixed(2)}\n priceCurrency={vehicle.priceCurrency}\n />\n ))}\n {vehicleList.length === 0 && !selectedVehicle && !isLoading && }\n {isError && {t('errors.selectVehicle')}}\n : }\n className={classes.button}\n onClick={showAvailabilityOptions}\n >\n {t('pages.rides.showOptions')}\n \n \n );\n};\n\nexport default VehicleInformationCards;\n","/* eslint-disable @typescript-eslint/no-shadow */\nimport { AxiosError } from 'axios';\nimport { useMemo, useState } from 'react';\nimport { useQuery } from 'react-query';\n\nimport { USE_AVAILABILITIES } from '../../../../constants/queryKeys';\nimport apiClient from '../../../../services/api';\nimport { RIDE_AVAILABILITIES } from '../../../../services/routes';\nimport { AvailabilitiesResponse, UpdateAvailabilites, VehicleResponse } from '../../api/types';\nimport { Vehicle } from '../../components/VehicleInformationCards';\n\nconst mapResponseToVehicle = (response: VehicleResponse): Vehicle => ({\n id: response.uuid,\n vehicleClass: response.vehicleClass,\n vehicleType: response.vehicleType,\n vehicleImage: response.vehicleImage,\n travellers: response.vehicleSeatsNumber.toString(),\n luggages: response.vehicleBagsCapacity.toString(),\n price: response.price,\n priceCurrency: response.currency,\n});\n\nexport function useAvailabilites(variables: UpdateAvailabilites) {\n const [errorCode, setErrorCode] = useState(0);\n\n const { data, isLoading, refetch, error, isRefetching, isFetching, isFetched } = useQuery(\n [USE_AVAILABILITIES],\n () => getAvailabilites(variables),\n {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n retry: false,\n cacheTime: 500,\n enabled: false,\n onError: (error: AxiosError) => setErrorCode(error?.response?.status ?? null),\n onSuccess: () => setErrorCode(null),\n }\n );\n\n return useMemo(() => {\n const vehicleList = errorCode\n ? []\n : (data?.availabilities?.map((response: VehicleResponse) => mapResponseToVehicle(response)) ?? []);\n\n const newEstimateDistanceAndDuration = errorCode ? undefined : data?.estimationDetails;\n\n return {\n vehicleList,\n newEstimateDistanceAndDuration,\n isLoading,\n refetch,\n error,\n isRefetching,\n isFetching,\n isFetched,\n };\n }, [data, errorCode, isLoading, refetch, error, isRefetching, isFetching, isFetched]);\n}\n\nexport const getAvailabilites = async (variables: UpdateAvailabilites): Promise => {\n const { data } = await apiClient.get(RIDE_AVAILABILITIES, { params: variables });\n\n return data;\n};\n","import { useMemo } from 'react';\nimport { useQuery } from 'react-query';\n\nimport { USE_FLIGHT_SEARCH } from '../../../../constants/queryKeys';\nimport apiClient from '../../../../services/api';\nimport { SEARCH_FLIGHT } from '../../../../services/routes';\nimport { FlightDetails, FlightSearchResponse, FlightType } from '../../../rides/api/types';\n\nexport function useFlightSearch(flightId: string, flightDate: string) {\n const { data, isLoading, isError, refetch } = useQuery(\n [USE_FLIGHT_SEARCH + flightId],\n () => searchFlight(flightId, flightDate),\n {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n retry: false,\n enabled: false,\n }\n );\n\n return useMemo(() => {\n const flightDetails: FlightDetails = {\n number: data?.id.toString() ?? '',\n type: FlightType.ARRIVAL,\n airlineName: data?.airlineName ?? '',\n departure: {\n datetimeLocal: data?.departure.dateTimeLocal ?? '',\n datetimeZulu: data?.departure.dateTimeZulu ?? '',\n iata: data?.departure.iata ?? '',\n name: data?.departure.name ?? '',\n },\n arrival: {\n datetimeLocal: data?.arrival.dateTimeLocal ?? '',\n datetimeZulu: data?.arrival.dateTimeZulu ?? '',\n iata: data?.arrival.iata ?? '',\n name: data?.arrival.name ?? '',\n },\n };\n\n return {\n flightDetails,\n isLoading,\n refetch,\n isError,\n };\n }, [data, isLoading, refetch, isError]);\n}\n\nexport const searchFlight = async (flightId: string, flightDate: string): Promise => {\n const { data } = await apiClient.get(SEARCH_FLIGHT, {\n params: {\n flightId,\n flightDate,\n },\n });\n\n return data;\n};\n","import { Grid, Skeleton, useMediaQuery } from '@mui/material';\nimport React from 'react';\n\nimport theme from '../../../../../styles/theme';\n\nconst RideLoadingSkeleton = () => {\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default RideLoadingSkeleton;\n","import { LatLng, Place } from '../../components/navigation/GoogleMap';\n\ntype DirectionsResult = google.maps.DirectionsResult;\n\nconst cache = new Map>();\n\nfunction createCacheKey(route: Place[]): string {\n return route.reduce(\n (result, place) =>\n place.location ? `${result};${(place.location as LatLng).toUrlValue(6)}` : `${result};${place.placeId as string}`,\n ''\n );\n}\n\nlet cachedDirectionsService: google.maps.DirectionsService | null = null;\n\nexport default function fetchDirections(route: Place[]): Promise {\n const cacheKey = createCacheKey(route);\n const cachedPromise = cache.get(cacheKey);\n\n if (cachedPromise) {\n return cachedPromise;\n }\n\n const directionsService = (() => {\n if (cachedDirectionsService === null) {\n cachedDirectionsService = new google.maps.DirectionsService();\n }\n\n return cachedDirectionsService;\n })();\n\n const origin = route[0];\n const destination = route[route.length - 1];\n const stopovers = route.slice(1, route.length - 1);\n\n const promise = new Promise((resolve, reject) => {\n directionsService.route(\n {\n origin,\n destination,\n waypoints: stopovers.map(stopover => ({\n location: stopover,\n stopover: true,\n })),\n travelMode: google.maps.TravelMode.DRIVING,\n },\n (response, status) => {\n if (status !== google.maps.DirectionsStatus.OK) {\n const originError = origin.location\n ? ` ${(origin.location as LatLng).toUrlValue(6)}`\n : `${origin.placeId as string}`;\n\n const destinationError = destination.location\n ? ` ${(destination.location as LatLng).toUrlValue(6)}`\n : `${destination.placeId as string}`;\n\n reject(new Error(`Cannot find directions from ${originError} to ${destinationError} (${status})`));\n\n return;\n }\n\n resolve(response);\n }\n );\n });\n\n cache.set(cacheKey, promise);\n\n return promise;\n}\n","import { Loader } from '@googlemaps/js-api-loader';\n\nimport config from '../../config';\n\nexport const DEFAULT_COORDINATES = {\n lat: 52.0842715,\n lon: 5.0124521,\n};\n\nexport const googleMapsKey = config.googleAddressKey ?? '';\n\nexport const bootstrapURLKeys = {\n key: googleMapsKey,\n libraries: ['places'],\n};\n\nexport const loader = new Loader({\n apiKey: config.googleAddressKey,\n libraries: ['places'],\n});\n","/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { DependencyList, useCallback, useEffect } from 'react';\n\n/**\n * Important note: The effect will NOT be awaited!\n *\n * This is simply a convenience function for using await inside a useEffect.\n */\nexport default function useEffectAsync(effect: () => Promise, deps?: DependencyList): void {\n const effectMemo = useCallback(() => {\n effect();\n }, [effect]);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(effectMemo, deps);\n}\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAGkElEQVRoQ9VZCWxVRRRFxC0SRQFDogmGaGJiYmJi4sIiQhRRFFEiIAoYXOKCAeuC2qKsBSogCGUVRUBAGlstUSCIhkWggIBA2aFQKNTaXypd37z3rudMB/P9ndL/X38XT3LS//tn7j33zcydO/OaxQu+798IPgAmgAvAn8DN4CbzeR44HLxPRFqZbo0PiLkDouaCBaCP76I8kfzzvpzIB//09WcX/yPQxAPzwRn42sGYaXjAeTuISAWdSiWy96Qvs9e4MmSWkq6fONIp6b/sNtqRobOVzFvnyoHTvjiuDqYCnAK2NWYbBnDYDTzt4XlvPODJC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E8Xy/Qg2d82ZPj6Q1u62FPuIYYGM/OW/B3GzYyft53quqagiMcebpjwMxO8J0DXmPkBAN8fFsOJ3x64U5IZp7XkUH4tCN/q43dxzgy/EslgyxV7nBUr1wbEJ9iZAQHjNwJOnyakY7qi7/j7AGfJXh4bYyM4IAR3kQs4lx925It4k3edBDwOclIqDtgrD1YfDzf10NvcxwPPp7sSMHfVXMfMdxg3McHMPoq6LMUtjmPB5du1JmHmWGIcRs/wGgL2F7PK0HeHtgE1IW0aa4b18FX7OVzNIDxu8BSlg7dA2SemvgI9ggWhrAdgvhbjbv6ARyM5BjPXxefqcT9ZcmGqqkDjDBu6g8cXjjayAPJUBxmbKJi4StzlT7c0CZsx160BQGccW8oPopS+OGxdmEdkypDnRIrvY6JlapjkhOytemJkoP1E2zx3UJ7Y75hAIdvMV8wc9jE1UZOHZ41YIeXDy8Zsw0HDjccr+bw11TPX4oJ2BT51gY2Mhts6kQCzrnBhXio6RnlrRvZa6IjIRwr0TcPbG3MNQ4gYBDoZe7wqlWsNnZFef3LPj11HLCPMdN4MFlpCatHXh/aRIdzbBpv3PTUWci+xkzjAmJ4g5FThPqRJbZNOMm6n1cpaHsIvNZ0bxqAoB6gy8NLF3NTEU7u3H+c1POer5Hq/4VeEEDYVO7SUzKrp9aZq5GuALRJNs2bHqCvJQTu4sGd74svimehxutH/LYFvMo0b5qAQP0yMDvX10dNXrmfqjrfFoG3m2ZNGxCawOmyGEUaryYJ/G+Y+bnpA3qvgOC1TJcmZa7C/5pGyowWEH0bWAjmQnw78+//FyC+H9jXfK0HNGv2D1zCL/CvJxskAAAAAElFTkSuQmCC\"","/* eslint-disable func-names */\nimport ExploreOffOutlinedIcon from '@mui/icons-material/ExploreOffOutlined';\nimport { Box, Typography } from '@mui/material';\nimport GoogleMapReact from 'google-map-react';\nimport Pusher from 'pusher-js';\nimport React, { FunctionComponent, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport config from '../../config';\nimport { COLORS } from '../../constants/colors';\nimport { TRIP_POSITION_UPDATE } from '../../constants/events';\nimport currentEnvironment from '../../environment/currentEnvironment';\nimport Environment from '../../environment/Environment';\nimport fetchDirections from '../../helpers/googleMaps/fetchDirections';\nimport { bootstrapURLKeys } from '../../helpers/googleMaps/googleApi';\nimport useEffectAsync from '../../hooks/useEffectAsync';\nimport driverIcon from '../../public/assets/images/map-marker-icon.png';\nimport { PUSHER_AUTH } from '../../services/routes';\nimport { Coordinates } from '../../services/types';\n\nexport type LatLng = google.maps.LatLng;\nexport type Place = google.maps.Place;\nexport type Map = google.maps.Map;\nexport type Marker = google.maps.Marker;\n\nexport interface Point {\n longitude: number;\n latitude: number;\n}\n\ninterface TripPosition {\n position: Point;\n}\n\nconst DEFAULT_MAP_ZOOM = 11;\n\nlet cachedDirectionsRenderer: google.maps.DirectionsRenderer | null = null;\n\nlet cachedMarker: Marker | null = null;\n\nconst getDirectionsRenderer = () => {\n if (cachedDirectionsRenderer === null) {\n cachedDirectionsRenderer = new google.maps.DirectionsRenderer();\n }\n\n return cachedDirectionsRenderer;\n};\n\ninterface DirectonPlacesProps {\n pickupCoordinates?: Coordinates;\n dropoffCoordinates?: Coordinates;\n pickupPlaceId?: string;\n dropoffPlaceId?: string;\n}\n\nconst getDirectionPlaces = (directionPlacesProps: DirectonPlacesProps): Place[] => {\n return [\n {\n location: directionPlacesProps.pickupCoordinates\n ? new google.maps.LatLng(directionPlacesProps.pickupCoordinates.lat, directionPlacesProps.pickupCoordinates.lon)\n : undefined,\n placeId: !directionPlacesProps.pickupCoordinates ? directionPlacesProps.pickupPlaceId : undefined,\n },\n {\n location: directionPlacesProps.dropoffCoordinates\n ? new google.maps.LatLng(directionPlacesProps.dropoffCoordinates.lat, directionPlacesProps.dropoffCoordinates.lon)\n : undefined,\n placeId: !directionPlacesProps.dropoffCoordinates ? directionPlacesProps.dropoffPlaceId : undefined,\n },\n ];\n};\n\nPusher.Runtime.createXHR = function () {\n const xhr = new XMLHttpRequest();\n\n xhr.withCredentials = true;\n return xhr;\n};\n\nconst pusherClient = new Pusher(process.env.REACT_APP_PUSHER_KEY ?? '', {\n cluster: 'eu',\n encrypted: true,\n authEndpoint: `${config.apiUrl}${PUSHER_AUTH}`,\n});\n\nconst subscribeToPusher = (channelId: string, map: Map) => {\n const channel = pusherClient.subscribe(channelId ?? '');\n\n channel.bind(TRIP_POSITION_UPDATE, (data: TripPosition) => {\n setMarker(map, data);\n });\n};\n\nconst setMarker = (map: Map, data: TripPosition) => {\n if (cachedMarker === null) {\n cachedMarker = new google.maps.Marker({\n position: {\n lat: data.position.latitude,\n lng: data.position.longitude,\n },\n map,\n title: '',\n icon: driverIcon,\n });\n } else {\n cachedMarker.setPosition({\n lat: data.position.latitude,\n lng: data.position.longitude,\n });\n }\n};\n\nconst GoogleMap: FunctionComponent<{\n points?: Array;\n placeIds?: string[];\n driverPosition?: Point;\n onLoaded?: () => void;\n zoom?: number;\n subscribeChannelId?: string;\n}> = ({ points, placeIds, driverPosition, zoom = DEFAULT_MAP_ZOOM, subscribeChannelId }) => {\n const { t } = useTranslation();\n const googleMap = useRef(null);\n const [isError, setIsError] = useState(false);\n const pickupCoordinates = points?.[0];\n const dropoffCoordinates = points?.[1];\n const pickupPlaceId = placeIds?.[0] ?? '';\n const dropoffPlaceId = placeIds?.[1] ?? '';\n\n const handleRenderRoute = async () => {\n const directionsRenderer = getDirectionsRenderer();\n\n const directionPlaces = getDirectionPlaces({\n pickupCoordinates,\n dropoffCoordinates,\n pickupPlaceId,\n dropoffPlaceId,\n });\n\n try {\n const directions = await fetchDirections(directionPlaces);\n\n directionsRenderer.setDirections(directions);\n } catch {\n setIsError(true);\n }\n };\n\n const handleApiLoaded = async (map: Map) => {\n googleMap.current = map;\n const directionsRenderer = getDirectionsRenderer();\n\n directionsRenderer.setMap(map);\n\n await handleRenderRoute();\n\n if (currentEnvironment !== Environment.Development && subscribeChannelId) {\n subscribeToPusher(subscribeChannelId, map);\n }\n\n if (driverPosition && driverPosition.latitude && driverPosition.longitude) {\n setMarker(map, { position: driverPosition } as TripPosition);\n }\n };\n\n useEffectAsync(async () => {\n if (googleMap.current) {\n setIsError(false);\n await handleRenderRoute();\n }\n }, [pickupCoordinates, dropoffCoordinates, pickupPlaceId, dropoffPlaceId]);\n\n return (\n <>\n {isError ? (\n \n \n {t('noRouteAvailable')}\n \n ) : (\n handleApiLoaded(map)}\n />\n )}\n \n );\n};\n\nexport default GoogleMap;\n","/* eslint-disable @typescript-eslint/init-declarations */\n/* eslint-disable max-lines-per-function */\n/* eslint-disable max-statements */\n/* eslint-disable @typescript-eslint/no-floating-promises */\n/* eslint-disable complexity */\nimport { PrimaryButton, SecondaryButton } from '@get-e/react-components';\nimport { alpha } from '@material-ui/core/styles';\nimport { FormControlLabel, Grid, Link, Switch, Tabs, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { Box } from '@mui/system';\nimport clsx from 'clsx';\nimport { zonedTimeToUtc } from 'date-fns-tz';\nimport dayjs from 'dayjs';\nimport _ from 'lodash';\nimport React, { useState, SetStateAction, useEffect, MouseEvent, useMemo, useRef } from 'react';\nimport TagManager from 'react-gtm-module';\nimport { Trans, useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\nimport { useParams } from 'react-router';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport Notification from '../../../components/notification/Notification';\nimport { BOOKING_SOURCE } from '../../../constants';\nimport { SINGLE_RIDE_PAGE } from '../../../constants/amplitude/commonKeys';\nimport {\n CANCEL_RIDE,\n CONFIRM_CANCELLATION_RIDE,\n CONFIRM_UPDATE,\n DONWLOAD_DOCUMENTATION,\n RIDE_INFORMATION_FLIGHT_TRACKING,\n SEND_CONFIRMATION,\n UPDATE_RIDE,\n} from '../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { getSingleRideRoute } from '../../../constants/urlPaths';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { getDateTimeWithoutOffset } from '../../../helpers/getDateTimeWithoutOffset';\nimport { isElementPartialVisible } from '../../../helpers/isElementPartialVisible';\nimport { mapRideToSummaryRide } from '../../../helpers/maps/mapRideToSummaryRide';\nimport { RideStatus, getRideStatusKey } from '../../../helpers/rideStatusUtil';\nimport usePageLeave from '../../../hooks/usePageLeave';\nimport { PrimaryTimeZone } from '../../../services/types';\nimport theme from '../../../styles/theme';\nimport { FlightDetails, LocationType, Passenger } from '../../rides/api/types';\nimport StatusBadge from '../../rides/components/StatusBadge';\nimport downloadBookingConfirmation from '../../rides/customer/api/downloadBookingConfirmation';\nimport downloadReceipt from '../../rides/customer/api/downloadReceipt';\nimport { CustomFieldItem, RideAmplitudeEventProperties } from '../api/types';\nimport { useRide } from '../api/useRide';\nimport CancellationPoliciesCard from '../components/CancellationPoliciesCard';\nimport CancelRideConfirmModal from '../components/CancelRideConfirmModal';\nimport DriverInformation from '../components/DriverInformation';\nimport RideInformation, { Ride as RideType } from '../components/RideInformation';\nimport RideReview from '../components/RideReview';\nimport RideVehicleInformationCard from '../components/RideVehicleInformationCard';\nimport SendBookingConfirmationModal, { BookingConfirmationEmail } from '../components/SendBookingConfirmationModal';\nimport TravellerInformation, { Traveller } from '../components/travellerInformation/TravellerInformation';\nimport UpdatePendingConfirmModal from '../components/UpdatePendingConfirmModal';\nimport UpdateRideConfirmModal from '../components/UpdateRideConfirmModal';\nimport VehicleInformationCards, { Vehicle } from '../components/VehicleInformationCards';\nimport { cancelRide, updateFlightNumber, updateRideInformation, updateRideVehicle, updateTravellerInformation } from './api';\nimport { useAvailabilites } from './api/useAvailabilites';\nimport { useFlightSearch } from './api/useFlightSearch';\nimport RideLoadingSkeleton from './components/rideLoadingSkeleton/RideLoadingSkeleton';\nimport RideSummaryCard from './components/RideSummaryCard';\nimport { RideContext, SummaryRideType } from './context/RideContext';\nimport useCarInformation from './hooks/useCarInformation';\nimport useRideInformation from './hooks/useRideInformation';\nimport useTravellerInformation from './hooks/useTravellerInformation';\n\nconst useStyles = makeStyles(styleTheme => ({\n mainWrapper: {\n alignItems: 'center',\n padding: '0 2rem',\n },\n mainWrapperTopPadding: { paddingTop: '3.5rem' },\n header: {\n position: 'sticky',\n top: '0',\n backgroundColor: COLORS.WHITE,\n display: 'flex',\n zIndex: 10,\n flexDirection: 'column',\n },\n headerTitleWrapper: {\n marginBottom: '2rem',\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [styleTheme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 'auto !important',\n [styleTheme.breakpoints.up('md')]: { marginBottom: 0 },\n },\n tabs: {\n paddingTop: '1rem 0',\n fontWeight: 700,\n borderBottom: `1px solid ${COLORS.SLATE_GREY}`,\n display: 'flex',\n justifyContent: 'space-between',\n [styleTheme.breakpoints.down('sm')]: { flexDirection: 'column-reverse' },\n },\n utcSwitch: {\n whiteSpace: 'nowrap',\n [styleTheme.breakpoints.down('sm')]: {\n display: 'block',\n marginLeft: 0,\n },\n '& .MuiSwitch-switchBase.Mui-checked': {\n color: COLORS.ORANGE_WARNING,\n '&:hover': { backgroundColor: alpha(COLORS.ORANGE_WARNING, theme.palette.action.hoverOpacity) },\n },\n '& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': { backgroundColor: COLORS.ORANGE_WARNING },\n '& .MuiFormControlLabel-label': { fontWeight: 700 },\n },\n utcSwitchChecked: { '& .MuiFormControlLabel-label': { color: COLORS.ORANGE_WARNING } },\n tab: {\n textDecoration: 'none',\n color: COLORS.SLATE_GREY,\n padding: '1rem',\n '&:hover': { borderBottom: 'none' },\n },\n activeTab: {\n borderBottom: `2px solid ${COLORS.BLUE}`,\n lineHeight: '1.3rem',\n color: `${COLORS.BLACK} !important`,\n '&:hover': { borderBottom: `2px solid ${COLORS.BLUE}` },\n },\n updateButton: { marginRight: '1rem' },\n buttons: { width: '150px' },\n heading: {\n marginBottom: '1rem',\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n summary: {\n display: 'flex',\n flexDirection: 'column',\n },\n summaryReverse: {\n display: 'flex',\n flexDirection: 'column-reverse',\n marginBottom: '2rem',\n },\n}));\n\nenum ActiveElement {\n RIDE = 'RIDE',\n CAR = 'CAR',\n TRAVELLER = 'TRAVELLER',\n POLICIES = 'POLICIES',\n SUMMARY = 'SUMMARY',\n}\n\nconst REFETCH_VEHICLE_LIST_TIMEOUT_MS = 400;\nlet refetchVehicleListTimeoutId: NodeJS.Timeout | undefined;\n\nconst onPress = (event: MouseEvent) => {\n event.preventDefault();\n const targetId = event.currentTarget.getAttribute('href');\n const target = targetId && window.document.querySelector(targetId);\n\n if (target) {\n target.scrollIntoView({ behavior: 'smooth' });\n }\n};\n\nconst getLeadPassenger = (passengers: Passenger[]) => passengers.filter(passenger => passenger.isLead)[0];\n\nconst getTabLink = (tab: string) => `#${tab}`;\nconst HEADER_PADDING = 480;\n\nexport const CUSTOM_FIELD_KEY = 'customField';\n\nconst driverInstructionsOnTop = [\n getRideStatusKey(RideStatus.CONFIRMED),\n getRideStatusKey(RideStatus.ACTIVE),\n getRideStatusKey(RideStatus.DRIVER_ON_THE_WAY),\n getRideStatusKey(RideStatus.DRIVER_AT_PICKUP),\n getRideStatusKey(RideStatus.PASSENGER_ON_BOARD),\n];\n\nconst Ride = () => {\n const [isTypingFlightNumberFinished, setIsTypingFlightNumberFinished] = useState(false);\n const [isVehicleNotSelected, setIsVehicleNotSelected] = useState(false);\n const [isCheckingAvailabileVehicleList, setIsCheckingAvailabileVehicleList] = useState(false);\n const [isUpdateRideModalOpen, setIsUpdateRideModalOpen] = useState(false);\n const [isCancelRideModalOpen, setIsCancelRideModalOpen] = useState(false);\n const [isUpdatePendingModalOpen, setIsUpdatePendingModalOpen] = useState(false);\n const [isBackEnabled, setIsBackEnabled] = useState(false);\n const [isSendBookingConfirmationModalOpen, setIsSendBookingConfirmationModalOpen] = useState(false);\n const [activeElement, setActiveElement] = useState(ActiveElement.RIDE);\n const [isUpdateNotificationOpen, setIsUpdateNotificationOpen] = useState(false);\n const [isTravellerIncreasingDisabled, setIsTravellerIncreasingDisabled] = useState(true);\n const classes = useStyles();\n const { t } = useTranslation();\n const { rideId }: { rideId: string } = useParams();\n const { showNotification } = useNotificationContext();\n const { data, isLoading, refetch } = useRide(rideId);\n const isFormDisabled = data?.status !== getRideStatusKey(RideStatus.BOOKED);\n const initialRideValues = useRef(null);\n const initialVehicleValues = useRef(null);\n const initialTravellerValues = useRef(null);\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { currentProfile: currentUser } = useCurrentProfileContext();\n const [isUtc, setIsUtc] = useState(currentUser.primaryTimeZone === PrimaryTimeZone.UTC);\n const whatIsChanged = useRef>();\n const isPageOpened = useRef(false);\n\n const { rideValues, setRideValues, rideErrors, setRideErrors, validateRideFields } = useRideInformation(isUtc);\n\n const { travellerValues, setTravellerValues, travellerErrors, setTravellerErrors, validateTravellerFields } =\n useTravellerInformation();\n\n const { selectedVehicle, setSelectedVehicle } = useCarInformation();\n\n const { mutate: downloadBookingConfirmationMutation, isLoading: isDownloadingBookingConfirmation } =\n useMutation(downloadBookingConfirmation);\n\n const { mutate: downloadReceiptMutation, isLoading: isDownloadingReceipt } = useMutation(downloadReceipt);\n\n const { mutate: updateRideInformationMutation, isLoading: isUpdatingRideInformation } = useMutation(updateRideInformation, {\n onSuccess: () => {\n showNotification(t('alert.edit.success'), Severity.Info);\n refetch();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n });\n\n const { mutate: updateTravellerInformationMutation, isLoading: isUpdatingTravellers } = useMutation(\n updateTravellerInformation,\n {\n onSuccess: () => {\n showNotification(t('alert.edit.success'), Severity.Info);\n refetch();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n }\n );\n\n const { mutate: updateFlightNumberMutation, isLoading: isUpdatingFlightNumber } = useMutation(updateFlightNumber, {\n onSuccess: () => {\n showNotification(t('alert.edit.success'), Severity.Info);\n refetch();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n });\n\n const { mutate: cancelRideMutation, isLoading: isLoadingCancelRide } = useMutation(cancelRide, {\n onSuccess: () => {\n showNotification(t('pages.rides.successCancelRide'), Severity.Info);\n setIsCancelRideModalOpen(false);\n refetch();\n logAmplitudeEvent(CONFIRM_CANCELLATION_RIDE, rideAmplitudeEventProperties);\n },\n onError: (error: Error) => {\n showNotification(t('errors.cancelRide'), Severity.Error);\n setIsCancelRideModalOpen(false);\n },\n });\n\n const checkVehicleAfterRefetchAvailabilites = () => {\n if (selectedVehicle && isCheckingAvailabileVehicleList) {\n const { id, carId, ...restSelectedVehicle } = selectedVehicle;\n\n const vehicleExists = vehicleList.some(obj => {\n const { id: objId, ...restObj } = obj;\n\n if (JSON.stringify(restSelectedVehicle) === JSON.stringify(restObj)) {\n selectedVehicle.carId = objId;\n return true;\n }\n\n return false;\n });\n\n if (vehicleExists) {\n setSelectedVehicle(selectedVehicle);\n\n setIsCheckingAvailabileVehicleList(false);\n } else {\n setSelectedVehicle(null);\n setIsUpdateNotificationOpen(true);\n\n setIsCheckingAvailabileVehicleList(false);\n }\n }\n };\n\n const {\n vehicleList,\n newEstimateDistanceAndDuration,\n refetch: refetchAvailabileVehicleList,\n isLoading: isLoadingAvailabilites,\n isRefetching: isRefetchingAvailabilites,\n isFetched: areAvailabilitesFetched,\n } = useAvailabilites({\n pickup: {\n transferPoint: {\n id: rideValues.pickUpLocation?.id ?? '',\n type: rideValues.pickUpLocation?.type.toUpperCase() ?? '',\n },\n pickupTimeZulu: isUtc ? dayjs(rideValues.pickUpTime).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']) : '',\n pickupTime: isUtc ? '' : dayjs(rideValues.pickUpTimeLocal).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n },\n dropOff: {\n transferPoint: {\n id: rideValues.dropOffLocation?.id ?? '',\n type: rideValues.dropOffLocation?.type.toUpperCase() ?? '',\n },\n },\n numberOfPassengers: parseInt(rideValues.travellers),\n numberOfBags: parseInt(rideValues.luggages),\n });\n\n useEffect(() => {\n if (areAvailabilitesFetched && isCheckingAvailabileVehicleList && !isRefetchingAvailabilites) {\n checkVehicleAfterRefetchAvailabilites();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isCheckingAvailabileVehicleList, areAvailabilitesFetched, isRefetchingAvailabilites]);\n\n const isPickupDateDirty = () => {\n if (!initialRideValues.current) {\n return false;\n }\n\n if (isUtc) {\n return (\n initialRideValues.current.pickUpDate !== rideValues.pickUpDate ||\n initialRideValues.current.pickUpTime !== rideValues.pickUpTime\n );\n }\n\n return (\n initialRideValues.current.pickUpDateLocal !== rideValues.pickUpDateLocal ||\n initialRideValues.current.pickUpTimeLocal !== rideValues.pickUpTimeLocal\n );\n };\n\n const isLocationDirty = () => {\n if (!initialRideValues.current) {\n return false;\n }\n\n return (\n initialRideValues.current.pickUpLocation?.name !== rideValues.pickUpLocation?.name ||\n initialRideValues.current.dropOffLocation?.name !== rideValues.dropOffLocation?.name\n );\n };\n\n // The logic for this calculation is described in the ticket TP-1336\n const searchFlightDate = useMemo(\n () => {\n let timeZone = '';\n let flightDate: Date | null = null;\n\n const rideDuration = newEstimateDistanceAndDuration?.durationInSeconds ?? 0;\n\n if (rideValues.pickUpLocation?.type === LocationType.AIRPORT) {\n timeZone = rideValues.pickUpLocation?.timeZone ?? '';\n flightDate = isUtc ? rideValues.pickUpDate : rideValues.pickUpDateLocal;\n } else if (rideValues.dropOffLocation?.type === LocationType.AIRPORT) {\n timeZone = rideValues.dropOffLocation?.timeZone ?? '';\n\n if (isPickupDateDirty()) {\n flightDate = isUtc ? rideValues.pickUpDate : rideValues.pickUpDateLocal;\n flightDate = dayjs(flightDate).add(rideDuration, 'seconds').toDate();\n } else {\n flightDate = isUtc ? rideValues.dropOffDate : rideValues.dropOffDateLocal;\n }\n }\n\n if (isUtc && timeZone && flightDate) {\n return dayjs(zonedTimeToUtc(flightDate, timeZone)).format(DATE_FORMATS['YYYY-MM-DD']);\n }\n\n return dayjs(flightDate).format(DATE_FORMATS['YYYY-MM-DD']);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n isUtc,\n rideValues.pickUpDate,\n rideValues.pickUpDateLocal,\n rideValues.dropOffDate,\n rideValues.dropOffDateLocal,\n rideValues.pickUpLocation?.timeZone,\n rideValues.pickUpLocation?.type,\n rideValues.dropOffLocation?.timeZone,\n rideValues.dropOffLocation?.type,\n newEstimateDistanceAndDuration?.durationInSeconds,\n ]\n );\n\n const {\n flightDetails: flightSearchDetails,\n refetch: refetchFlightDetails,\n isLoading: isLoadingFlight,\n isError: isErrorFlight,\n } = useFlightSearch(rideValues.flightNumber, searchFlightDate);\n\n const { mutate: updateVehicleMutation, isLoading: isUpdatingVehicle } = useMutation(updateRideVehicle, {\n onSuccess: () => {\n showNotification(t('alert.edit.successVehicleChange'), Severity.Info);\n refetch();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n });\n\n const rideAmplitudeEventProperties = useMemo(() => {\n return {\n 'Ride number': data?.prettifiedUnid,\n 'Ride created time': dayjs.utc(data?.createdAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride pickup time': dayjs.utc(data?.pickUp.departAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride customer': data?.customer,\n 'Ride supplier': data?.supplier,\n 'Ride status': data?.status,\n 'Ride situation tags': data?.situationTag,\n 'Ride qc status': data?.qcStatus,\n 'Ride has driver': Boolean(data?.driver),\n } as RideAmplitudeEventProperties;\n }, [\n data?.createdAt,\n data?.customer,\n data?.driver,\n data?.pickUp.departAt,\n data?.prettifiedUnid,\n data?.qcStatus,\n data?.situationTag,\n data?.status,\n data?.supplier,\n ]);\n\n useEffect(() => {\n if (!data || isLoading) {\n return;\n }\n\n const leadPassenger = getLeadPassenger(data.passengers);\n const passengerFullName = leadPassenger ? `${leadPassenger.firstName} ${leadPassenger.lastName}` : '';\n\n const tagManagerArgs = {\n dataLayer: {\n name: currentUser?.fullName ?? null,\n email: currentUser?.email ?? null,\n accountType: currentUser?.accountType,\n rideNumber: data.unid,\n passengerName: passengerFullName,\n },\n };\n\n TagManager.dataLayer(tagManagerArgs);\n\n const newRideValues = {\n ...rideValues,\n flightNumber: data?.flightDetails?.number ?? '',\n flightDetails: data?.flightDetails ?? ({} as FlightDetails),\n id: data?.unid ?? '',\n pickUpDate: getDateTimeWithoutOffset(data?.pickUp?.departAt),\n pickUpTime: getDateTimeWithoutOffset(data?.pickUp?.departAt),\n pickUpDateLocal: getDateTimeWithoutOffset(data?.pickUp?.departAtLocal),\n pickUpTimeLocal: getDateTimeWithoutOffset(data?.pickUp?.departAtLocal),\n dropOffDate: getDateTimeWithoutOffset(data?.dropOff?.arriveAt),\n dropOffDateLocal: getDateTimeWithoutOffset(data?.dropOff?.arriveAtLocal),\n travellers: data?.numberOfPassengers?.toString() ?? '',\n luggages: data?.numberOfBags?.toString() ?? '',\n specialRequest: data?.specialRequest ?? '',\n customReference: data?.customerReference ?? '',\n customFields: data?.customFields ?? [],\n pickUpLocation: {\n id: data?.pickUp?.location?.id ?? '',\n name: data?.pickUp?.location?.name ?? '',\n address: data?.pickUp?.location?.address ?? '',\n type: data?.pickUp?.location?.type ?? '',\n latitude: data?.pickUp?.location?.coordinates?.lat ?? 0,\n longitude: data?.pickUp?.location?.coordinates?.lon ?? 0,\n timeZone: data?.pickUp?.departureTimeZone ?? '',\n },\n dropOffLocation: {\n id: data?.dropOff?.location?.id ?? '',\n name: data?.dropOff?.location?.name ?? '',\n address: data?.dropOff?.location?.address ?? '',\n type: data?.dropOff?.location?.type ?? '',\n latitude: data?.dropOff?.location?.coordinates?.lat ?? 0,\n longitude: data?.dropOff?.location?.coordinates?.lon ?? 0,\n timeZone: data?.dropOff?.arrivalTimeZone ?? '',\n },\n primaryTimeZone: currentUser?.primaryTimeZone ?? null,\n status: data?.status,\n } as RideType;\n\n setRideValues(newRideValues);\n\n const defaultTravellers: Traveller[] = data\n ? data.passengers.map(({ id, ...rest }) => ({\n id: id.toString(),\n ...rest,\n }))\n : [];\n\n setTravellerValues(defaultTravellers);\n\n const newVehicleValues = {\n id: data?.unid ?? '',\n vehicleClass: data?.vehicle.class,\n vehicleType: data?.vehicle?.type ?? '',\n vehicleImage: data?.vehicle?.imageUrl ?? '',\n travellers: data?.vehicle?.seats?.toString() ?? '',\n luggages: data?.vehicle?.luggage?.toString() ?? '',\n price: data?.price?.amount ?? 0,\n priceCurrency: data?.price?.isoCurrency ?? '',\n };\n\n setSelectedVehicle(newVehicleValues);\n\n const updatedErrorsValues = defaultTravellers.map(traveller => ({\n ...traveller,\n id: traveller.id,\n firstNameError: null,\n lastNameError: null,\n emailError: null,\n phoneError: null,\n }));\n\n setTravellerErrors(updatedErrorsValues);\n\n initialRideValues.current = newRideValues;\n initialVehicleValues.current = newVehicleValues;\n initialTravellerValues.current = defaultTravellers;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data, isLoading]);\n\n useEffect(() => {\n // Do not call flight search if pickup of dropoff location fields are dirty\n if (!isTypingFlightNumberFinished || isLocationDirty()) {\n return;\n }\n\n refetchFlightDetails();\n setIsTypingFlightNumberFinished(false);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isTypingFlightNumberFinished]);\n\n useEffect(() => {\n setRideValues({\n ...rideValues,\n flightDetails: isErrorFlight ? ({} as FlightDetails) : (flightSearchDetails ?? ({} as FlightDetails)),\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [flightSearchDetails, isErrorFlight]);\n\n useEffect(() => {\n function checkVisibility() {\n const elements = isMobile\n ? document.querySelectorAll('.tab-elements')\n : document.querySelectorAll(`.tab-elements:not([id*=\"${ActiveElement.SUMMARY}\"])`);\n\n const allTabs: Array> = [];\n\n elements.forEach(element => {\n const isVisible = isElementPartialVisible(element as HTMLInputElement, HEADER_PADDING);\n\n if (isVisible) {\n allTabs.push(element.id as keyof typeof ActiveElement);\n }\n });\n\n if (window.pageYOffset === 0) {\n setActiveElement(allTabs[0] as keyof typeof ActiveElement);\n } else {\n setActiveElement(allTabs[allTabs.length - 1] as keyof typeof ActiveElement);\n }\n }\n\n window.addEventListener('scroll', checkVisibility, { passive: true });\n\n return () => {\n window.removeEventListener('scroll', checkVisibility);\n };\n }, [isMobile]);\n\n useEffect(() => {\n if (selectedVehicle?.id && selectedVehicle?.id !== rideValues?.id) {\n const target = window.document.querySelector(getTabLink(ActiveElement.CAR));\n\n if (target) {\n target.scrollIntoView({ behavior: 'smooth' });\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedVehicle]);\n\n useEffect(() => {\n const isRideSetted = Boolean(rideValues.pickUpLocation?.id) && Boolean(rideValues.dropOffLocation?.id);\n\n const isSamePickupDate = isUtc\n ? initialRideValues.current?.pickUpDate === rideValues?.pickUpDate\n : initialRideValues.current?.pickUpDateLocal === rideValues?.pickUpDateLocal;\n\n const isSamePickupTime = isUtc\n ? initialRideValues.current?.pickUpTime === rideValues?.pickUpTime\n : initialRideValues.current?.pickUpTimeLocal === rideValues?.pickUpTimeLocal;\n\n const isInitialRideValues =\n initialRideValues.current?.pickUpLocation?.id === rideValues.pickUpLocation?.id &&\n initialRideValues.current?.dropOffLocation?.id === rideValues.dropOffLocation?.id &&\n isSamePickupDate &&\n isSamePickupTime;\n\n if (!isInitialRideValues && isRideSetted && validateRideFields()) {\n clearTimeout(refetchVehicleListTimeoutId);\n refetchVehicleListTimeoutId = setTimeout(() => {\n refetchAvailabileVehicleList();\n setIsCheckingAvailabileVehicleList(true);\n }, REFETCH_VEHICLE_LIST_TIMEOUT_MS);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n rideValues.pickUpLocation,\n rideValues.dropOffLocation,\n rideValues.pickUpDate,\n rideValues.pickUpTime,\n rideValues.pickUpDateLocal,\n rideValues.pickUpTimeLocal,\n ]);\n\n useEffect(() => {\n if (\n selectedVehicle === null ||\n rideValues.travellers !== data?.numberOfPassengers?.toString() ||\n rideValues.luggages !== data?.numberOfBags?.toString()\n ) {\n if (\n parseInt(rideValues.travellers) > parseInt(selectedVehicle?.travellers ?? '-1') ||\n parseInt(rideValues.luggages) > parseInt(selectedVehicle?.luggages ?? '-1')\n ) {\n clearTimeout(refetchVehicleListTimeoutId);\n refetchVehicleListTimeoutId = setTimeout(() => {\n refetchAvailabileVehicleList();\n setIsCheckingAvailabileVehicleList(true);\n }, REFETCH_VEHICLE_LIST_TIMEOUT_MS);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [rideValues.travellers, rideValues.luggages]);\n\n const areRideInformationValuesChanged = () => {\n const defaultValues = {\n travellers: data?.numberOfPassengers?.toString() ?? '',\n luggages: data?.numberOfBags?.toString() ?? '',\n specialRequest: data?.specialRequest ?? '',\n customReference: data?.customerReference ?? '',\n customFields: data?.customFields ?? '',\n };\n\n const currentValues = {\n travellers: rideValues.travellers,\n luggages: rideValues.luggages,\n specialRequest: rideValues.specialRequest,\n customReference: rideValues.customReference,\n customFields: rideValues.customFields,\n };\n\n return JSON.stringify(defaultValues) !== JSON.stringify(currentValues);\n };\n\n const areTravellerInformationValuesChanged = () => {\n const defaultPassengers = data?.passengers.map(({ id, ...keepAttrs }) => keepAttrs);\n const changedTravellerValues = travellerValues.map(({ id, ...keepAttrs }) => keepAttrs);\n\n return JSON.stringify(defaultPassengers) !== JSON.stringify(changedTravellerValues);\n };\n\n function handleUpdateRideInformation() {\n if (areRideInformationValuesChanged()) {\n const customFieldsPairs: CustomFieldItem[] = [];\n\n rideValues.customFields.forEach(customField => customFieldsPairs.push([customField.key, customField.value]));\n const customFields = customFieldsPairs.length > 0 ? Object.fromEntries(new Map(customFieldsPairs)) : null;\n\n updateRideInformationMutation({\n id: rideId,\n payload: {\n numberOfPassengers: parseInt(rideValues.travellers),\n numberOfBags: parseInt(rideValues.luggages),\n customerReference: rideValues.customReference,\n specialRequest: rideValues.specialRequest,\n customFields,\n },\n });\n }\n }\n\n function handleUpdateTravellerInformation() {\n if (areTravellerInformationValuesChanged()) {\n updateTravellerInformationMutation({\n id: rideId,\n payload: travellerValues.map(({ id, ...keepAttrs }) => keepAttrs),\n });\n }\n }\n\n function handleUpdateFlightNumber() {\n const defaultFlightNumber = data?.flightDetails?.number ?? '';\n const defaultPickUpDate = getDateTimeWithoutOffset(data?.pickUp?.departAtLocal ?? '');\n\n if (defaultFlightNumber !== rideValues.flightNumber && defaultPickUpDate !== rideValues.pickUpDate) {\n updateFlightNumberMutation({\n id: rideId,\n payload: {\n flightNumber: rideValues.flightNumber,\n departureDate: dayjs(isUtc ? rideValues.pickUpDate : rideValues.pickUpDateLocal).format(\n DATE_FORMATS['YYYY-MM-DD']\n ),\n },\n });\n }\n }\n\n const onUpdateHandler = () => {\n const carId = selectedVehicle?.id === rideValues?.id ? (selectedVehicle?.carId ?? '') : (selectedVehicle?.id ?? '');\n\n // Update vehicle - swap estimate options\n if (selectedVehicle?.id) {\n updateVehicleMutation({\n rideId: rideValues.id,\n carId,\n });\n } else if (selectedVehicle === null) {\n setIsVehicleNotSelected(!isVehicleNotSelected);\n setIsUpdateRideModalOpen(false);\n return;\n }\n\n handleUpdateTravellerInformation();\n\n handleUpdateFlightNumber();\n handleUpdateRideInformation();\n\n setIsUpdateRideModalOpen(false);\n setIsCheckingAvailabileVehicleList(false);\n\n logAmplitudeEvent(CONFIRM_UPDATE, rideAmplitudeEventProperties);\n };\n\n const validateFields = () => validateTravellerFields() && validateRideFields();\n\n const handleRideUpdate = () => {\n if (validateFields()) {\n setIsUpdateRideModalOpen(true);\n\n logAmplitudeEvent(UPDATE_RIDE, rideAmplitudeEventProperties);\n }\n };\n\n const onCancelHandler = () => {\n cancelRideMutation(rideId);\n };\n\n const isActiveClass = (tab: string) => (ActiveElement[activeElement] === tab ? classes.activeTab : '');\n\n const handleFlightNumberFinishing = () => {\n setIsTypingFlightNumberFinished(true);\n\n if (initialRideValues?.current?.flightNumber !== rideValues.flightNumber) {\n logAmplitudeEvent(RIDE_INFORMATION_FLIGHT_TRACKING, rideAmplitudeEventProperties);\n }\n };\n\n const initialBookingConfirmationEmails: BookingConfirmationEmail[] = travellerValues.map(traveller => ({\n id: traveller.email,\n email: traveller.email,\n isIncluded: traveller.isLead,\n }));\n\n const isTravellerUpdated = () => {\n const initialTravellerKeys = initialTravellerValues.current?.map(\n traveller => traveller.firstName + traveller.lastName + traveller.email + traveller.phone + traveller.isLead\n );\n\n const currentTravellerKeys = travellerValues.map(\n traveller => traveller.firstName + traveller.lastName + traveller.email + traveller.phone + traveller.isLead\n );\n\n return !_.isEqual(initialTravellerKeys, currentTravellerKeys);\n };\n\n const isFormDirty = useMemo(() => {\n if (!initialRideValues.current) {\n return false;\n }\n\n if (\n initialRideValues.current.pickUpLocation?.name !== rideValues.pickUpLocation?.name ||\n initialRideValues.current.dropOffLocation?.name !== rideValues.dropOffLocation?.name ||\n initialRideValues.current.pickUpDate !== rideValues.pickUpDate ||\n initialRideValues.current.pickUpTime !== rideValues.pickUpTime ||\n initialRideValues.current.pickUpDateLocal !== rideValues.pickUpDateLocal ||\n initialRideValues.current.pickUpTimeLocal !== rideValues.pickUpTimeLocal ||\n initialRideValues.current.travellers !== rideValues.travellers ||\n initialRideValues.current.luggages !== rideValues.luggages ||\n initialRideValues.current.flightNumber !== rideValues.flightNumber ||\n initialRideValues.current.specialRequest !== rideValues.specialRequest ||\n initialRideValues.current.customReference !== rideValues.customReference ||\n initialVehicleValues.current?.id !== selectedVehicle?.id ||\n isTravellerUpdated()\n ) {\n return true;\n }\n\n return false;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [rideValues, selectedVehicle, travellerValues]);\n\n const checkWhatIsChanging = () => {\n if (!initialRideValues.current) {\n return;\n }\n\n const changedCustomFields: string[] = [];\n\n initialRideValues.current.customFields.forEach(customField => {\n const currentCustomField = rideValues.customFields.filter(field => field.id === customField.id)[0];\n\n if (JSON.stringify(customField) !== JSON.stringify(currentCustomField)) {\n changedCustomFields.push(customField.label);\n }\n });\n\n const changes = new Map();\n\n changes.set('pickUpLocation', initialRideValues.current.pickUpLocation?.name !== rideValues.pickUpLocation?.name);\n changes.set('dropOffLocation', initialRideValues.current.dropOffLocation?.name !== rideValues.dropOffLocation?.name);\n changes.set('pickUpDate', initialRideValues.current.pickUpDate !== rideValues.pickUpDate);\n changes.set('pickUpTime', initialRideValues.current.pickUpTime !== rideValues.pickUpTime);\n changes.set('pickUpDateLocal', initialRideValues.current.pickUpDateLocal !== rideValues.pickUpDateLocal);\n changes.set('pickUpTimeLocal', initialRideValues.current.pickUpTimeLocal !== rideValues.pickUpTimeLocal);\n changes.set('travellers', initialRideValues.current.travellers !== rideValues.travellers);\n changes.set('luggages', initialRideValues.current.luggages !== rideValues.luggages);\n changes.set('flightNumber', initialRideValues.current.flightNumber !== rideValues.flightNumber);\n changes.set('specialRequest', initialRideValues.current.specialRequest !== rideValues.specialRequest);\n changes.set('customReference', initialRideValues.current.customReference !== rideValues.customReference);\n changes.set('vehicle', initialVehicleValues.current?.id !== selectedVehicle?.id);\n changes.set('passengerInformation', isTravellerUpdated());\n changedCustomFields.forEach(changedCustomField => {\n changes.set(changedCustomField, CUSTOM_FIELD_KEY);\n });\n whatIsChanged.current = changes;\n };\n\n const isUpdatedDisabled = useMemo(() => {\n if (!initialRideValues.current || !vehicleList || !selectedVehicle) {\n return true;\n }\n\n if (\n initialRideValues.current.pickUpLocation?.name !== rideValues.pickUpLocation?.name ||\n initialRideValues.current.dropOffLocation?.name !== rideValues.dropOffLocation?.name ||\n initialRideValues.current.pickUpDate !== rideValues.pickUpDate ||\n initialRideValues.current.pickUpTime !== rideValues.pickUpTime ||\n initialRideValues.current.pickUpDateLocal !== rideValues.pickUpDateLocal ||\n initialRideValues.current.pickUpTimeLocal !== rideValues.pickUpTimeLocal ||\n initialRideValues.current.travellers !== rideValues.travellers ||\n initialRideValues.current.luggages !== rideValues.luggages ||\n initialRideValues.current.flightNumber !== rideValues.flightNumber ||\n initialRideValues.current.specialRequest !== rideValues.specialRequest ||\n initialRideValues.current.customReference !== rideValues.customReference ||\n JSON.stringify(initialRideValues.current.customFields) !== JSON.stringify(rideValues.customFields) ||\n initialVehicleValues.current?.id !== selectedVehicle?.id ||\n isTravellerUpdated()\n ) {\n checkWhatIsChanging();\n return false;\n }\n\n return true;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [rideValues, selectedVehicle, travellerValues]);\n\n const isUtcSwitchDisabled = useMemo(() => {\n if (!initialRideValues.current) {\n return true;\n }\n\n if (isUtc) {\n return (\n initialRideValues.current.pickUpDate !== rideValues.pickUpDate ||\n initialRideValues.current.pickUpTime !== rideValues.pickUpTime\n );\n }\n\n return (\n initialRideValues.current.pickUpDateLocal !== rideValues.pickUpDateLocal ||\n initialRideValues.current.pickUpTimeLocal !== rideValues.pickUpTimeLocal\n );\n }, [isUtc, rideValues.pickUpDate, rideValues.pickUpDateLocal, rideValues.pickUpTime, rideValues.pickUpTimeLocal]);\n\n const handleSelectNewCar = (event: MouseEvent) => {\n onPress(event);\n };\n\n usePageLeave(\n isBackEnabled,\n getSingleRideRoute(rideId),\n setIsUpdatePendingModalOpen,\n isUpdatedDisabled,\n !isFormDirty || isFormDisabled\n );\n\n const vehicleUpdateNotification = useMemo(() => {\n if (vehicleList.length === 0 && !selectedVehicle) {\n return {t('pages.singleRide.noVehicleAvailableExtended')};\n }\n\n return (\n \n \n ),\n }}\n />\n \n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedVehicle, vehicleList.length]);\n\n const showAvailabilityOptions = async () => {\n await refetchAvailabileVehicleList();\n setSelectedVehicle(null);\n };\n\n if (!data || isLoading) {\n return ;\n }\n\n if (!isPageOpened.current) {\n isPageOpened.current = true;\n logAmplitudeEvent(SINGLE_RIDE_PAGE, rideAmplitudeEventProperties);\n }\n\n return (\n <>\n \n \n {isUpdateNotificationOpen && !(isLoadingAvailabilites || isRefetchingAvailabilites) && (\n setIsUpdateNotificationOpen(false)}\n />\n )}\n \n \n \n \n {t('ride')} {data?.prettifiedUnid}\n \n \n \n \n {data.status === getRideStatusKey(RideStatus.BOOKED) && (\n \n {t('pages.singleRide.update')}\n \n )}\n {data &&\n data.status !== getRideStatusKey(RideStatus.TO_CLOSE) &&\n data.status !== getRideStatusKey(RideStatus.COMPLETED) &&\n data.status !== getRideStatusKey(RideStatus.CANCELLED) && (\n {\n setIsCancelRideModalOpen(true);\n logAmplitudeEvent(CANCEL_RIDE, rideAmplitudeEventProperties);\n }}\n className={classes.buttons}\n variation=\"danger\"\n >\n {t('pages.singleRide.cancelRide')}\n \n )}\n \n \n \n \n {isMobile && (\n \n {t('summary')}\n \n )}\n \n {t('rideInformation')}\n \n \n {t('vehicleInformation')}\n \n \n {t('passengerInformation')}\n \n \n {t('pages.singleRide.policies')}\n \n \n setIsUtc?.(event.target.checked)}\n name=\"primaryTimeZone\"\n />\n }\n label={t('utcTime')}\n labelPlacement=\"start\"\n />\n \n \n \n \n \n \n \n \n \n \n {t('vehicleInformation')}\n \n \n setIsVehicleNotSelected(false)}\n setIsUpdateNotificationOpen={setIsUpdateNotificationOpen}\n showAvailabilityOptions={showAvailabilityOptions}\n isLoading={isLoadingAvailabilites || isRefetchingAvailabilites}\n />\n \n \n \n \n \n \n \n \n {data && (\n \n \n {\n setIsSendBookingConfirmationModalOpen(true);\n\n logAmplitudeEvent(SEND_CONFIRMATION, rideAmplitudeEventProperties);\n }}\n downloadBookingHandler={() => {\n downloadBookingConfirmationMutation({\n unid: data.unid,\n prettifiedUnid: data.prettifiedUnid,\n });\n\n logAmplitudeEvent(DONWLOAD_DOCUMENTATION, rideAmplitudeEventProperties);\n }}\n downloadReceiptHandler={() =>\n downloadReceiptMutation({\n unid: data.unid,\n prettifiedUnid: data.prettifiedUnid,\n })\n }\n isUtc={isUtc}\n />\n \n \n \n \n \n \n \n \n {data.status === getRideStatusKey(RideStatus.COMPLETED) && (\n \n )}\n \n \n )}\n \n \n \n {isUpdateRideModalOpen && (\n setIsUpdateRideModalOpen(false)}\n onConfirm={onUpdateHandler}\n changes={whatIsChanged.current}\n isLoading={isUpdatingRideInformation || isUpdatingVehicle || isUpdatingTravellers || isUpdatingFlightNumber}\n isSystemAutomatedRide={data?.isManagedByApi && data?.source === BOOKING_SOURCE.CARS}\n isIgnoredByCars={data?.isIgnoredByCars}\n />\n )}\n {isCancelRideModalOpen && (\n setIsCancelRideModalOpen(false)}\n onConfirm={onCancelHandler}\n cancellationPolicies={data.cancellationPolicies}\n selectedVehicle={selectedVehicle}\n isLoading={isLoadingCancelRide}\n isSystemAutomatedRide={data?.isManagedByApi && data?.source === BOOKING_SOURCE.CARS}\n isIgnoredByCars={data?.isIgnoredByCars}\n />\n )}\n {isUpdatePendingModalOpen && (\n setIsUpdatePendingModalOpen(false)}\n onConfirm={() => {\n setIsBackEnabled(true);\n }}\n />\n )}\n {isSendBookingConfirmationModalOpen && (\n setIsSendBookingConfirmationModalOpen(false)}\n rideId={rideId}\n />\n )}\n \n );\n};\n\nexport default Ride;\n","export const TRIP_UPDATE = 'trip.update';\nexport const TRIP_POSITION_UPDATE = 'trip.position.update';\n","import { IconedData } from '@get-e/react-components';\nimport AccountCircleOutlinedIcon from '@mui/icons-material/AccountCircleOutlined';\nimport DownloadOutlinedIcon from '@mui/icons-material/DownloadOutlined';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport ExploreOffOutlinedIcon from '@mui/icons-material/ExploreOffOutlined';\nimport ReceiptLongOutlinedIcon from '@mui/icons-material/ReceiptLongOutlined';\nimport RouteOutlinedIcon from '@mui/icons-material/RouteOutlined';\nimport TimerOutlinedIcon from '@mui/icons-material/TimerOutlined';\nimport WhereToVoteOutlinedIcon from '@mui/icons-material/WhereToVoteOutlined';\nimport { Box, Grid } from '@mui/material';\nimport React, { useContext, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport GoogleMap from '../../../../components/navigation/GoogleMap';\nimport { COLORS } from '../../../../constants/colors';\nimport { RideStatus, getRideStatusKey } from '../../../../helpers/rideStatusUtil';\nimport { PAYMENT_METHOD } from '../../api/types';\nimport { RideContext } from '../context/RideContext';\n\ninterface RideSummaryCardProps {\n isDownloading: boolean;\n sendBookingHandler: () => void;\n downloadBookingHandler: () => void;\n downloadReceiptHandler?: () => void;\n isUtc: boolean;\n}\n\nconst showGoogleMap = true;\n\nconst RideSummaryCard = ({\n isDownloading,\n sendBookingHandler,\n downloadBookingHandler,\n downloadReceiptHandler,\n isUtc,\n}: RideSummaryCardProps) => {\n const { t } = useTranslation();\n\n const {\n summary: {\n status,\n paymentMethod,\n distance,\n time,\n pickupCoordinates,\n dropOffCoordinates,\n pickUpPlaceId,\n dropOffPlaceId,\n booker,\n scheduledArrival,\n scheduledArrivalLocal,\n prettifiedUnid,\n lastPositionUpdate,\n },\n } = useContext(RideContext);\n\n const points = useMemo(() => {\n return [pickupCoordinates, dropOffCoordinates];\n }, [dropOffCoordinates, pickupCoordinates]);\n\n return (\n \n \n \n {showGoogleMap && (\n \n )}\n {!showGoogleMap && (\n \n \n \n )}\n \n \n \n \n \n \n \n \n \n \n {} : downloadBookingHandler}\n />\n {paymentMethod === PAYMENT_METHOD.CREDIT_CARD &&\n (status === getRideStatusKey(RideStatus.CONFIRMED) || status === getRideStatusKey(RideStatus.COMPLETED)) && (\n {} : downloadReceiptHandler}\n />\n )}\n \n \n );\n};\n\nexport default RideSummaryCard;\n","import { Dispatch, SetStateAction, useState } from 'react';\n\nimport { Vehicle } from '../../components/VehicleInformationCards';\n\nconst useCarInformation = (): {\n selectedVehicle: Vehicle | null;\n setSelectedVehicle: Dispatch>;\n} => {\n const [selectedVehicle, setSelectedVehicle] = useState(null);\n\n return {\n selectedVehicle,\n setSelectedVehicle,\n };\n};\n\nexport default useCarInformation;\n","import { Dispatch, SetStateAction, useState } from 'react';\n\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport allValid from '../../../../helpers/inputValidation/validators/allValid';\nimport and from '../../../../helpers/inputValidation/validators/and';\nimport isAfterTime from '../../../../helpers/inputValidation/validators/isAfterTime';\nimport isFilledString from '../../../../helpers/inputValidation/validators/isFilledString';\nimport isNotNull from '../../../../helpers/inputValidation/validators/isNotNull';\nimport isPastDate from '../../../../helpers/inputValidation/validators/isPastDate';\nimport { initialRide, initialRideErrors, Ride, RideError } from '../../components/RideInformation';\n\nconst useRideInformation = (\n isUtc: boolean\n): {\n rideValues: Ride;\n setRideValues: Dispatch>;\n rideErrors: RideError;\n setRideErrors: Dispatch>;\n validateRideFields: () => boolean;\n} => {\n const [errors, setErrors] = useState(initialRideErrors);\n const [rideValues, setRideValues] = useState(initialRide);\n\n const validateFields = () => {\n const pickupDate = isUtc ? rideValues.pickUpDate : rideValues.pickUpDateLocal;\n const pickupTime = isUtc ? rideValues.pickUpTime : rideValues.pickUpTimeLocal;\n\n const validated = {\n pickUpDate: and(isNotNull(pickupDate, InputError.Empty), () => isPastDate(pickupDate, InputError.InvalidPastDate)),\n pickUpTime: and(isNotNull(pickupTime, InputError.Empty), () =>\n isAfterTime(pickupTime, new Date(), InputError.InvalidPastTime)\n ),\n travellers: isFilledString(rideValues.travellers, InputError.Empty),\n luggages: isFilledString(rideValues.luggages, InputError.Empty),\n pickUpLocation: isNotNull(rideValues.pickUpLocation, InputError.Empty),\n dropOffLocation: isNotNull(rideValues.dropOffLocation, InputError.Empty),\n };\n\n const validatedCustomFields = {};\n const validatedCustomFieldsErrors = {};\n\n rideValues.customFields.forEach(customField => {\n const validation = isFilledString(customField.value, InputError.Empty);\n\n if (customField.isRequired) {\n validatedCustomFields[customField.key] = validation;\n validatedCustomFieldsErrors[customField.key] = validation.isValid ? null : validation.error;\n }\n });\n\n if (!allValid(validated) || !allValid(validatedCustomFields)) {\n const fieldErrors = {\n pickUpDate: validated.pickUpDate.isValid ? null : validated.pickUpDate.error,\n pickUpTime: validated.pickUpTime.isValid ? null : validated.pickUpTime.error,\n travellers: validated.travellers.isValid ? null : validated.travellers.error,\n luggages: validated.luggages.isValid ? null : validated.luggages.error,\n pickUpLocation: validated.pickUpLocation.isValid ? null : validated.pickUpLocation.error,\n dropOffLocation: validated.dropOffLocation.isValid ? null : validated.dropOffLocation.error,\n customFields: validatedCustomFieldsErrors,\n };\n\n setErrors(fieldErrors);\n return false;\n }\n\n return true;\n };\n\n return {\n rideValues,\n setRideValues,\n rideErrors: errors,\n setRideErrors: setErrors,\n validateRideFields: validateFields,\n };\n};\n\nexport default useRideInformation;\n","import { Dispatch, SetStateAction, useState } from 'react';\n\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport { Validated } from '../../../../helpers/inputValidation/Validator';\nimport and from '../../../../helpers/inputValidation/validators/and';\nimport isEmail from '../../../../helpers/inputValidation/validators/isEmail';\nimport isFilledString from '../../../../helpers/inputValidation/validators/isFilledString';\nimport {\n initialTraveller,\n initialTravellerErrors,\n Traveller,\n TravellerError,\n} from '../../components/travellerInformation/TravellerInformation';\n\nconst useTravellerInformation = (): {\n travellerValues: Traveller[];\n setTravellerValues: Dispatch>;\n travellerErrors: TravellerError[];\n setTravellerErrors: Dispatch>;\n validateTravellerFields: () => boolean;\n} => {\n const [values, setValues] = useState([initialTraveller]);\n\n const [errors, setErrors] = useState([initialTravellerErrors]);\n\n const validateFields = () => {\n const fieldErrors: TravellerError[] = values.map(traveller => {\n const { isLead } = traveller;\n\n const validatedFirstName = isFilledString(traveller.firstName, InputError.Empty);\n\n const validatedLastName = isFilledString(traveller.lastName, InputError.Empty);\n\n let validatedPhone = {\n isValid: true,\n value: '',\n } as Validated;\n\n if (isLead) {\n validatedPhone = isFilledString(traveller.phone, InputError.Empty);\n }\n\n const validatedEmail = and(isFilledString(traveller.email, InputError.Empty), () =>\n isEmail(traveller.email, InputError.InvalidEmail)\n );\n\n return {\n id: traveller.id,\n firstNameError: validatedFirstName.isValid ? null : validatedFirstName.error,\n lastNameError: validatedLastName.isValid ? null : validatedLastName.error,\n emailError: validatedEmail.isValid ? null : validatedEmail.error,\n phoneError: validatedPhone.isValid ? null : validatedPhone.error,\n };\n });\n\n setErrors(fieldErrors);\n\n const hasErrors = fieldErrors.some(\n error => error.firstNameError || error.lastNameError || error.emailError || error.phoneError\n );\n\n return !hasErrors;\n };\n\n return {\n travellerValues: values,\n setTravellerValues: setValues,\n travellerErrors: errors,\n setTravellerErrors: setErrors,\n validateTravellerFields: validateFields,\n };\n};\n\nexport default useTravellerInformation;\n","export function isElementPartialVisible(element: HTMLInputElement, headerPadding?: number) {\n const elementRect = element.getBoundingClientRect();\n const viewportHeight = window.innerHeight || document.documentElement.clientHeight;\n\n const isPartiallyVisible =\n elementRect.bottom > 0 + (headerPadding ?? 0) && elementRect.top < viewportHeight - (headerPadding ?? 0);\n\n return isPartiallyVisible;\n}\n","import ExpandMoreOutlinedIcon from '@mui/icons-material/ExpandMoreOutlined';\nimport { Accordion, AccordionDetails, AccordionSummary, Box, Rating, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport MopinionForm from 'react-mopinion-forms';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { FeedbackTopics, RideFeedback } from '../../api/types';\n\nconst useStyles = makeStyles({\n mainWrapperWebForm: {\n borderRadius: '3px',\n [`& #mopinion--${process.env.REACT_APP_WEB_FEEDBACK_FORM_RIDES ?? ''}`]: {\n '& .control-group.question': {\n padding: '0 !important',\n marginBottom: '1rem',\n },\n '& .block-title': { margin: '0' },\n '& .block-title > *': {\n color: `${COLORS.BLACK} !important`,\n fontWeight: '400 !important',\n },\n '& .stars-group .ui-stars-star': { fontSize: '1.5rem !important' },\n '& .form-actions': { padding: '0' },\n '& .mopinion-survey-content .ui-stars-star-on .mopicon-star': { color: COLORS.ORANGE_OFFICIAL },\n '& .mopinion-survey-content .ui-stars-star-hover .mopicon-star': { color: COLORS.ORANGE_OFFICIAL },\n '& .btn-submit': {\n width: '150px',\n height: '44px',\n backgroundColor: `${COLORS.ORANGE} !important`,\n borderColor: `${COLORS.ORANGE} !important`,\n boxShadow: 'unset !important',\n '&:hover': {\n backgroundColor: `${COLORS.ORANGE_TEXT} !important`,\n borderColor: `${COLORS.ORANGE_TEXT} !important`,\n transform: 'unset',\n },\n '& .is-context-icon': { display: 'none !important' },\n },\n },\n },\n mainWrapperCustomForm: {\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '3px',\n },\n wrapper: { flexDirection: 'column' },\n heading: {\n marginBottom: '1rem',\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n rating: {\n color: COLORS.ORANGE_OFFICIAL,\n fontSize: '1.5rem',\n },\n accordion: {\n '& .MuiAccordionSummary-root': { padding: '0' },\n '& .MuiAccordionSummary-root.Mui-expanded': {\n minHeight: 'unset',\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n borderTop: `1px solid ${COLORS.BLACK_12}`,\n },\n '& .MuiAccordionSummary-content': {\n margin: '0',\n padding: '0 1rem',\n },\n '& .MuiAccordionSummary-content.Mui-expanded': { margin: '1rem 0' },\n '& .MuiAccordionSummary-expandIconWrapper': { marginRight: '0.5rem' },\n '& .MuiAccordionDetails-root': { padding: '1rem !important' },\n\n boxShadow: 'none',\n marginBottom: '0 !important',\n marginTop: '0 !important',\n },\n accordionDetails: {\n display: 'flex',\n flexDirection: 'column',\n padding: '1rem 0.3rem',\n },\n firstAccordion: { '& .MuiAccordionSummary-root.Mui-expanded': { borderTop: '0 !important' } },\n});\n\ninterface ReviewRideCardProps {\n feedbacks: RideFeedback[];\n closeModal?: () => void;\n isInModal?: boolean;\n}\n\nconst ReviewRideCard = ({ feedbacks, closeModal, isInModal }: ReviewRideCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n if (!feedbacks?.length) {\n return (\n \n {\n if (!isInModal) {\n return;\n }\n\n if (closeModal) {\n closeModal();\n }\n }}\n formKey={process.env.REACT_APP_WEB_FEEDBACK_FORM_RIDES ?? ''}\n />\n \n );\n }\n\n return (\n \n {feedbacks?.length > 0 && (\n \n {feedbacks?.map((feedback, index) => {\n const feedbackRates = {\n SERVICE_RATE: feedback.topics.find(topic => topic.topic === FeedbackTopics.SERVICE_RATE)?.rate,\n MEETING_DRIVER_RATE: feedback.topics.find(topic => topic.topic === FeedbackTopics.MEETING_DRIVER_RATE)\n ?.rate,\n DRIVER_RATE: feedback.topics.find(topic => topic.topic === FeedbackTopics.DRIVER_RATE)?.rate,\n VEHICLE_RATE: feedback.topics.find(topic => topic.topic === FeedbackTopics.VEHICLE_RATE)?.rate,\n };\n\n const comment = feedback.comment ?? '';\n\n return (\n \n }>\n \n {t('averageRating')}\n \n \n {feedback.averageRate.toFixed(1)}\n \n \n \n \n \n \n {feedbackRates?.SERVICE_RATE && (\n \n \n {t('pages.rides.howYouRateThisService')}\n \n \n \n {feedbackRates.SERVICE_RATE.toFixed(1)}\n \n \n \n \n )}\n {feedbackRates?.MEETING_DRIVER_RATE && (\n \n {t('pages.rides.wasMeetingDriverEasy')}\n \n \n {feedbackRates.MEETING_DRIVER_RATE.toFixed(1)}\n \n \n \n \n )}\n {feedbackRates?.DRIVER_RATE && (\n \n {t('pages.rides.howYouRateDriver')}\n \n \n {feedbackRates.DRIVER_RATE.toFixed(1)}\n \n \n \n \n )}\n {feedbackRates?.VEHICLE_RATE && (\n \n {t('pages.rides.howYouRateVehicle')}\n \n \n {feedbackRates.VEHICLE_RATE.toFixed(1)}\n \n \n \n \n )}\n \n \n {t('comment')}\n \n {comment}\n \n \n \n );\n })}\n \n )}\n \n );\n};\n\nexport default ReviewRideCard;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { RideFeedback } from '../../api/types';\nimport ReviewRideCard from './ReviewRideCard';\n\nconst RideReviewModal = ({ onClose, isOpen, feedbacks }: { onClose: () => void; isOpen: boolean; feedbacks: RideFeedback[] }) => {\n const { t } = useTranslation();\n\n return (\n {}} isOpen={isOpen} onClose={onClose} title={t('pages.singleRide.review')} maxWidth=\"sm\">\n \n \n );\n};\n\nexport default RideReviewModal;\n","import { SecondaryButton } from '@get-e/react-components';\nimport { Download, StarOutline, Mail, EditOutlined, DeleteOutlineOutlined, ReceiptLongOutlined } from '@mui/icons-material';\nimport { Grid, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport dayjs from 'dayjs';\nimport React, { useState, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\n\nimport { useHistory } from 'react-router-dom';\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { BOOKING_SOURCE } from '../../../../constants';\nimport { CONFIRM_CANCELLATION_RIDE, DONWLOAD_DOCUMENTATION, EDIT_RIDE } from '../../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { getUpdateRideRoute } from '../../../../constants/urlPaths';\nimport { Severity, useNotificationContext } from '../../../../context/NotificationContext';\nimport { getRideStatusKey, RideStatus } from '../../../../helpers/rideStatusUtil';\nimport theme from '../../../../styles/theme';\nimport StatusBadge from '../../../rides/components/StatusBadge';\nimport downloadBookingConfirmation from '../../../rides/customer/api/downloadBookingConfirmation';\nimport downloadReceipt from '../../../rides/customer/api/downloadReceipt';\nimport { RideResponse, RideAmplitudeEventProperties, PAYMENT_METHOD } from '../../api/types';\nimport CancelRideConfirmModal from '../../components/CancelRideConfirmModal';\nimport SendBookingConfirmationModal, { BookingConfirmationEmail } from '../../components/SendBookingConfirmationModal';\nimport { cancelRide } from '../api';\nimport useCarInformation from '../hooks/useCarInformation';\nimport RideReviewModal from './RideReviewModal';\n\nconst useStyles = makeStyles(styleTheme => ({\n mainWrapper: {\n alignItems: 'center',\n paddingLeft: '2rem',\n [styleTheme.breakpoints.down('lg')]: { padding: '0' },\n },\n header: {\n display: 'flex',\n flexDirection: 'column',\n color: COLORS.BLUE,\n },\n headerTitleWrapper: {\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [styleTheme.breakpoints.up('lg')]: {\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n marginTop: '2rem',\n minHeight: '2.75rem',\n },\n },\n headerTitle: {\n display: 'flex',\n flexDirection: 'column',\n marginBottom: 'auto !important',\n [styleTheme.breakpoints.up('lg')]: { marginBottom: 0 },\n },\n headerText: {\n fontSize: '1.5rem',\n fontWeight: 700,\n paddingRight: '1rem',\n [styleTheme.breakpoints.down('md')]: { fontSize: '1.2rem' },\n },\n subheaderText: {\n fontWeight: 400,\n fontSize: '0.75rem',\n marginBottom: '2rem',\n marginTop: '-0.5rem',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n marginRight: '0.5rem',\n '& .MuiSvgIcon-root': {\n fontSize: '1.3rem',\n marginRight: '0.3rem',\n },\n [styleTheme.breakpoints.down('lg')]: { marginBottom: '1rem' },\n },\n editButton: {\n marginRight: '1rem',\n border: `1px solid ${COLORS.BLUE}`,\n color: COLORS.BLUE,\n },\n reviewButton: {\n marginRight: '1rem',\n border: `1px solid ${COLORS.BLUE}`,\n color: COLORS.BLUE,\n width: '163px !important',\n },\n buttons: {\n width: '174px',\n [styleTheme.breakpoints.down('md')]: {\n width: '146px',\n fontSize: '13px',\n height: '40px',\n },\n },\n editButtonIcon: { color: COLORS.BLUE },\n deleteButtonIcon: { color: COLORS.RED },\n}));\n\ninterface CustomerRideHeaderProps {\n data?: RideResponse;\n refetch: () => void;\n rideId: string;\n}\n\nconst RideHeader = ({ data, refetch, rideId }: CustomerRideHeaderProps) => {\n const classes = useStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { selectedVehicle } = useCarInformation();\n const { t } = useTranslation();\n const { showNotification } = useNotificationContext();\n const [isCancelRideModalOpen, setIsCancelRideModalOpen] = useState(false);\n const [isSendBookingConfirmationModalOpen, setIsSendBookingConfirmationModalOpen] = useState(false);\n const [isReviewModalOpen, setIsReviewModalOpen] = useState(false);\n const history = useHistory();\n\n let initialBookingConfirmationEmails: BookingConfirmationEmail[] = [];\n\n if (data) {\n initialBookingConfirmationEmails = data?.passengers.map(passenger => ({\n id: passenger.email,\n email: passenger.email,\n isIncluded: passenger.isLead,\n }));\n }\n\n const { mutate: downloadBookingConfirmationMutation } = useMutation(downloadBookingConfirmation);\n const { mutate: downloadReceiptMutation } = useMutation(downloadReceipt);\n\n const onDownloadBookingConfirmationClick = () => {\n if (data) {\n downloadBookingConfirmationMutation({\n unid: data.unid,\n prettifiedUnid: data.prettifiedUnid,\n });\n\n logAmplitudeEvent(DONWLOAD_DOCUMENTATION, rideAmplitudeEventProperties);\n }\n };\n\n const onDownloadReceiptClick = () => {\n if (data) {\n downloadReceiptMutation({\n unid: data.unid,\n prettifiedUnid: data.prettifiedUnid,\n });\n\n logAmplitudeEvent(DONWLOAD_DOCUMENTATION, rideAmplitudeEventProperties);\n }\n };\n\n const rideAmplitudeEventProperties = useMemo(() => {\n return {\n 'Ride number': data?.prettifiedUnid,\n 'Ride created time': dayjs.utc(data?.createdAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride pickup time': dayjs.utc(data?.pickUp.departAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride customer': data?.customer,\n 'Ride supplier': data?.supplier,\n 'Ride status': data?.status,\n 'Ride situation tags': data?.situationTag,\n 'Ride qc status': data?.qcStatus,\n 'Ride has driver': Boolean(data?.driver),\n } as RideAmplitudeEventProperties;\n }, [\n data?.createdAt,\n data?.customer,\n data?.driver,\n data?.pickUp.departAt,\n data?.prettifiedUnid,\n data?.qcStatus,\n data?.situationTag,\n data?.status,\n data?.supplier,\n ]);\n\n const { mutate: cancelRideMutation, isLoading: isLoadingCancelRide } = useMutation(cancelRide, {\n onSuccess: () => {\n showNotification(t('pages.rides.successCancelRide'), Severity.Info);\n setIsCancelRideModalOpen(false);\n refetch();\n logAmplitudeEvent(CONFIRM_CANCELLATION_RIDE, rideAmplitudeEventProperties);\n },\n onError: (error: Error) => {\n showNotification(t('errors.cancelRide'), Severity.Error);\n setIsCancelRideModalOpen(false);\n },\n });\n\n return (\n <>\n \n \n \n \n \n \n {t('ride')} {data?.prettifiedUnid}\n \n {data && (\n \n )}\n \n \n setIsSendBookingConfirmationModalOpen(true)}\n >\n \n {t('pages.singleRide.sendBookingInfo')}\n \n onDownloadBookingConfirmationClick()}\n >\n \n {t('pages.singleRide.downloadBookingConfirmation')}\n \n {data?.paymentMethod === PAYMENT_METHOD.CREDIT_CARD &&\n (data?.status === getRideStatusKey(RideStatus.CONFIRMED) ||\n data?.status === getRideStatusKey(RideStatus.COMPLETED)) && (\n onDownloadReceiptClick()}>\n \n {t('pages.rides.downloadReceipt')}\n \n )}\n \n \n\n \n {data?.status === getRideStatusKey(RideStatus.COMPLETED) && (\n setIsReviewModalOpen(true)}\n className={clsx(classes.reviewButton, classes.buttons)}\n loading={false}\n >\n \n {t('pages.singleRide.reviewRide')}\n \n )}\n {data?.status === getRideStatusKey(RideStatus.BOOKED) &&\n data?.status !== getRideStatusKey(RideStatus.COMPLETED) && (\n {\n history.push(getUpdateRideRoute(rideId));\n logAmplitudeEvent(EDIT_RIDE, rideAmplitudeEventProperties);\n }}\n className={clsx(classes.editButton, classes.buttons)}\n loading={false}\n >\n \n {t('pages.singleRide.editRide')}\n \n )}\n {data?.status === getRideStatusKey(RideStatus.BOOKED) &&\n data?.status !== getRideStatusKey(RideStatus.COMPLETED) && (\n setIsCancelRideModalOpen(true)}\n className={classes.buttons}\n variation=\"danger\"\n >\n \n {t('pages.singleRide.cancelRide')}\n \n )}\n \n \n \n {isCancelRideModalOpen && (\n setIsCancelRideModalOpen(false)}\n onConfirm={() => cancelRideMutation(rideId)}\n cancellationPolicies={data?.cancellationPolicies || []}\n selectedVehicle={selectedVehicle}\n isLoading={isLoadingCancelRide}\n isSystemAutomatedRide={data?.isManagedByApi && data?.source === BOOKING_SOURCE.CARS}\n isIgnoredByCars={data?.isIgnoredByCars}\n />\n )}\n {isSendBookingConfirmationModalOpen && (\n setIsSendBookingConfirmationModalOpen(false)}\n rideId={rideId}\n />\n )}\n {isReviewModalOpen && (\n setIsReviewModalOpen(false)} feedbacks={[]} />\n )}\n \n \n );\n};\n\nexport default RideHeader;\n","import { Grid, Skeleton, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\n\nimport theme from '../../../../styles/theme';\n\nconst useStyles = makeStyles(() => ({\n bigCard: { marginTop: '1.25rem' },\n smallCard: { marginTop: '1.25rem' },\n}));\n\nconst RideViewLoadingSkeleton = () => {\n const isLargeScreen = useMediaQuery(theme.breakpoints.down('lg'));\n const classes = useStyles();\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n {isLargeScreen ? (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ) : (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n \n );\n};\n\nexport default RideViewLoadingSkeleton;\n","import { createContext } from 'react';\n\nimport { RideAmplitudeEventProperties, RideResponse } from '../../api/types';\n\nexport interface SupplierRideContext {\n isDisabled: boolean;\n rideResponse?: RideResponse;\n amplitudeEventProperties?: RideAmplitudeEventProperties;\n}\n\nexport const RideContext = createContext({\n rideResponse: undefined,\n isDisabled: false,\n});\n","import { TextField } from '@get-e/react-components';\nimport { Box, Typography } from '@mui/material';\nimport React, { Dispatch, SetStateAction, useContext } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { SINGLE_RIDE_ADD_REMARKS_BOOKING_REFERENCE } from '../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { RideContext } from '../context/RideContext';\n\ninterface ReferencesCardProps {\n reference?: string | null;\n setReference: Dispatch>;\n isVisible?: boolean;\n isDisabled?: boolean;\n isTitleDisabled?: boolean;\n order?: number;\n}\n\nconst ReferenceCard = ({ reference, setReference, isVisible, isDisabled, isTitleDisabled, order }: ReferencesCardProps) => {\n const { t } = useTranslation();\n const { amplitudeEventProperties } = useContext(RideContext);\n\n if (!isVisible) {\n return null;\n }\n\n return (\n \n \n {t('pages.rides.referenceNumber')}\n \n {isDisabled && {reference ?? t('notAvailable')}}\n {!isDisabled && (\n setReference(event.target.value)}\n onBlur={() => logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS_BOOKING_REFERENCE, amplitudeEventProperties)}\n disabled={isDisabled}\n noHelperTextSpace\n />\n )}\n \n );\n};\n\nexport default ReferenceCard;\n","import { AxiosResponse } from 'axios';\n\nimport apiClient from '../../../services/api';\nimport {\n assignVehicleAndDriverRoute,\n getCloseRideRoute,\n getConfirmRideRoute,\n getRideAddRemarksRoute,\n} from '../../../services/routes';\nimport { ConfirmCloseAddRemarksRideRequest, RideResponse } from './types';\n\nexport const confirmRide = async (\n unid: string,\n request: ConfirmCloseAddRemarksRideRequest\n): Promise> => {\n const response = await apiClient.post(getConfirmRideRoute(unid), request);\n\n return response;\n};\n\nexport const closeRide = async (\n unid: string,\n request: ConfirmCloseAddRemarksRideRequest\n): Promise> => {\n const response = await apiClient.post(getCloseRideRoute(unid), request);\n\n return response;\n};\n\nexport const addRideRemarks = async (\n unid: string,\n request: ConfirmCloseAddRemarksRideRequest\n): Promise> => {\n const response = await apiClient.post(getRideAddRemarksRoute(unid), request);\n\n return response;\n};\n\nexport const assignVehicleAndDriver = async (\n rideId: string,\n payload: {\n driverId: number;\n vehicleId: number | null;\n }\n): Promise => {\n const response = await apiClient.post(assignVehicleAndDriverRoute(rideId), payload);\n\n return response;\n};\n","import { RemarksValues } from '../../../rides/supplier/components/RemarksCard';\nimport { ConfirmCloseAddRemarksRideRequest } from '../../api/types';\n\nexport const remarksValuesToConfirmCloseAddRemarksRideRequest = (\n reference: string | null,\n remarksValues: RemarksValues\n): ConfirmCloseAddRemarksRideRequest => {\n const request = {} as ConfirmCloseAddRemarksRideRequest;\n\n if (reference) {\n request.referenceNumber = reference;\n }\n\n if (remarksValues.comments) {\n request.remarks = remarksValues.comments;\n }\n\n if (remarksValues.extraWaitingTime) {\n request.minutesWaited = parseFloat(remarksValues.extraWaitingTime);\n }\n\n if (remarksValues.waitingTimeCosts) {\n request.minutesCosts = parseFloat(remarksValues.waitingTimeCosts);\n }\n\n if (remarksValues.parkingTollCosts) {\n request.parkingCosts = parseFloat(remarksValues.parkingTollCosts);\n }\n\n if (remarksValues.otherCosts) {\n request.otherCosts = parseFloat(remarksValues.otherCosts);\n }\n\n return request;\n};\n","import { useContext, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport {\n SINGLE_RIDE_ADD_REMARKS_SAVE,\n SINGLE_RIDE_CLOSE_SAVE,\n SINGLE_RIDE_CONFIRM_SAVE,\n} from '../../../../constants/amplitude/supplierKeys';\nimport { Severity, useNotificationContext } from '../../../../context/NotificationContext';\nimport { RemarksValues } from '../../../rides/supplier/components/RemarksCard';\nimport { addRideRemarks, closeRide, confirmRide } from '../../api';\nimport { RideResponse } from '../../api/types';\nimport { RideContext } from '../context/RideContext';\nimport { remarksValuesToConfirmCloseAddRemarksRideRequest } from '../helpers';\n\ninterface UseConformCloseAddRemarksRide {\n onConfirmRide: () => Promise;\n onCloseRide: () => Promise;\n onAddRideRemarks: () => Promise;\n isSaving: boolean;\n}\n\ninterface UseConfirmCloseAddRemarksRideProps {\n rideId: string;\n reference?: string | null;\n remarksValues: RemarksValues;\n}\n\nconst useConfirmCloseAddRemarksRide = ({\n rideId,\n reference,\n remarksValues,\n}: UseConfirmCloseAddRemarksRideProps): UseConformCloseAddRemarksRide => {\n const [isSaving, setIsSaving] = useState(false);\n const { showNotification } = useNotificationContext();\n const { t } = useTranslation();\n const { amplitudeEventProperties } = useContext(RideContext);\n\n const onConfirmRide = async () => {\n const request = remarksValuesToConfirmCloseAddRemarksRideRequest(reference ?? null, remarksValues);\n\n try {\n setIsSaving(true);\n const { data } = await confirmRide(rideId, request);\n\n showNotification(t('pages.singleRide.confirmRideSuccessNotification'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_CONFIRM_SAVE, amplitudeEventProperties);\n return data;\n } catch (error) {\n showNotification(t('pages.singleRide.confirmRideFailedNotification'), Severity.Error);\n } finally {\n setIsSaving(false);\n }\n };\n\n const onCloseRide = async () => {\n const request = remarksValuesToConfirmCloseAddRemarksRideRequest(reference ?? null, remarksValues);\n\n try {\n setIsSaving(true);\n const { data } = await closeRide(rideId, request);\n\n showNotification(t('pages.singleRide.closeRideSuccessNotification'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_CLOSE_SAVE, amplitudeEventProperties);\n return data;\n } catch (error) {\n showNotification(t('pages.singleRide.closeRideFailedNotification'), Severity.Error);\n } finally {\n setIsSaving(false);\n }\n };\n\n const onAddRideRemarks = async () => {\n const request = remarksValuesToConfirmCloseAddRemarksRideRequest(reference ?? null, remarksValues);\n\n try {\n setIsSaving(true);\n const { data } = await addRideRemarks(rideId, request);\n\n showNotification(t('pages.singleRide.addRemarksSuccessNotification'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS_SAVE, amplitudeEventProperties);\n setIsSaving(false);\n return data;\n } catch (error) {\n showNotification(t('pages.singleRide.addRemarksFailedNotification'), Severity.Error);\n setIsSaving(false);\n }\n };\n\n return {\n onConfirmRide,\n onCloseRide,\n onAddRideRemarks,\n isSaving,\n };\n};\n\nexport default useConfirmCloseAddRemarksRide;\n","import { TextField } from '@get-e/react-components';\nimport { Button, Grid, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { Dispatch, useState, SetStateAction, useContext } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport {\n SINGLE_RIDE_ADD_REMARKS_EXTRA_WAITING_TIME,\n SINGLE_RIDE_ADD_REMARKS_OTHER_COSTS,\n SINGLE_RIDE_ADD_REMARKS_PARKING_TOLL_COSTS,\n SINGLE_RIDE_ADD_REMARKS_WAITING_TIME_COSTS,\n} from '../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { IS_DECIMAL_NUMBER } from '../../../../helpers/inputValidation/regexRules';\nimport { RideContext } from '../../../ride/supplier/context/RideContext';\n\nexport const initialRemarks = {\n extraWaitingTime: '',\n waitingTimeCosts: '',\n parkingTollCosts: '',\n otherCosts: '',\n comments: '',\n};\n\nconst useStyles = makeStyles({\n container: {},\n formField: { marginBottom: '1.25rem' },\n buttonAddRemarks: {\n color: COLORS.BLUE,\n padding: 0,\n '&:hover': { backgroundColor: COLORS.WHITE },\n },\n});\n\nexport interface RemarksValues {\n extraWaitingTime: string | null;\n waitingTimeCosts: string | null;\n parkingTollCosts: string | null;\n otherCosts: string | null;\n comments: string | null;\n}\n\ninterface RemarksCardProps {\n remarksValues: RemarksValues;\n setRemarksValues: Dispatch>;\n isAdditionalButtonHidden?: boolean;\n isAdditionalCostsTitleHidden?: boolean;\n}\n\nexport const RemarksCard = ({\n remarksValues,\n setRemarksValues,\n isAdditionalButtonHidden,\n isAdditionalCostsTitleHidden,\n}: RemarksCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const [isAdditionalCosts, setIsAdditionalCosts] = useState(false);\n const { amplitudeEventProperties } = useContext(RideContext);\n\n const handleChange = (key: T, newValue: RemarksValues[T] & string): void => {\n if (key !== 'comments') {\n if (newValue === '' || IS_DECIMAL_NUMBER.test(newValue)) {\n setRemarksValues({\n ...remarksValues,\n [key]: newValue,\n });\n }\n }\n\n setRemarksValues({\n ...remarksValues,\n [key]: newValue,\n });\n };\n\n return (\n \n {!isAdditionalCosts && !isAdditionalButtonHidden && (\n \n )}\n {(isAdditionalCosts || isAdditionalButtonHidden) && (\n \n {!isAdditionalCostsTitleHidden && (\n \n {t('modals.referencesAndRemarks.additionalCosts')}\n \n )}\n \n {t('modals.referencesAndRemarks.additionalCostsDescription1')}\n \n \n {t('modals.referencesAndRemarks.additionalCostsDescription2')}\n \n \n \n handleChange('extraWaitingTime', event.target.value)}\n onBlur={() =>\n logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS_EXTRA_WAITING_TIME, amplitudeEventProperties)\n }\n InputProps={{ inputProps: { min: 0 } }}\n />\n \n \n handleChange('waitingTimeCosts', event.target.value)}\n onBlur={() =>\n logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS_WAITING_TIME_COSTS, amplitudeEventProperties)\n }\n InputProps={{ inputProps: { min: 0 } }}\n />\n \n \n handleChange('parkingTollCosts', event.target.value)}\n onBlur={() =>\n logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS_PARKING_TOLL_COSTS, amplitudeEventProperties)\n }\n InputProps={{ inputProps: { min: 0 } }}\n />\n \n \n handleChange('otherCosts', event.target.value)}\n onBlur={() => logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS_OTHER_COSTS, amplitudeEventProperties)}\n InputProps={{ inputProps: { min: 0 } }}\n />\n \n \n handleChange('comments', event.target.value)}\n InputProps={{\n minRows: '3',\n multiline: true,\n }}\n />\n \n )}\n \n );\n};\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Grid } from '@mui/material';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { RideResponse } from '../../../ride/api/types';\nimport ReferenceCard from '../../../ride/supplier/components/ReferenceCard';\nimport useConfirmCloseAddRemarksRide from '../../../ride/supplier/hooks/useConfirmCloseAddRemarksRide';\nimport { RemarksCard, RemarksValues, initialRemarks } from './RemarksCard';\n\nexport interface ReferencesAndremarksData {\n referenceNumber: string;\n minutesWaiting: string;\n minutesCosts: string;\n parkingCosts: string;\n otherCosts: string;\n remarks: string;\n}\n\ninterface ViewRideRemarksModalProps {\n rideId: string;\n isModalOpen: boolean;\n onClose: () => void;\n onFinished: (updatedRide?: RideResponse) => void;\n supplierReference?: string;\n}\n\nconst ReferencesAndRemarksModal = ({\n rideId,\n isModalOpen,\n onClose,\n onFinished,\n supplierReference,\n}: ViewRideRemarksModalProps) => {\n const { t } = useTranslation();\n const [reference, setReference] = useState(supplierReference ?? null);\n const [remarksValues, setRemarksValues] = useState(initialRemarks);\n\n const { onAddRideRemarks, isSaving } = useConfirmCloseAddRemarksRide({\n rideId,\n reference,\n remarksValues,\n });\n\n const handleSubmit = async () => {\n const data = await onAddRideRemarks();\n\n onClose();\n onFinished(data);\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default ReferencesAndRemarksModal;\n","export const colorOptions = [\n /*\n * {\n * id: 'UNSPECIFIED',\n * color: 'UNSPECIFIED',\n * name: 'colors.unspecified',\n * },\n */\n {\n id: 'WHITE',\n color: '#FFFFFF',\n name: 'colors.white',\n },\n {\n id: 'BLACK',\n color: '#000000',\n name: 'colors.black',\n },\n {\n id: 'SILVER_GRAY',\n color: '#A1A5B2',\n name: 'colors.silverGray',\n },\n {\n id: 'YELLOW',\n color: '#FCCF43',\n name: 'colors.yellow',\n },\n {\n id: 'LIGHT_BLUE',\n color: '#134DE1',\n name: 'colors.lightBlue',\n },\n {\n id: 'DARK_BLUE',\n color: '#001154',\n name: 'colors.darkBlue',\n },\n {\n id: 'LIGHT_BROWN',\n color: '#C9A58B',\n name: 'colors.lightBrown',\n },\n {\n id: 'DARK_BROWN',\n color: '#783F17',\n name: 'colors.darkBrown',\n },\n {\n id: 'GREEN',\n color: '#12944A',\n name: 'colors.green',\n },\n {\n id: 'ORANGE',\n color: '#FF7F00',\n name: 'colors.orange',\n },\n {\n id: 'PINK',\n color: '#FF9CFB',\n name: 'colors.pink',\n },\n {\n id: 'PURPLE',\n color: '#8613E1',\n name: 'colors.purple',\n },\n {\n id: 'RED',\n color: '#B72323',\n name: 'colors.red',\n },\n];\n\nexport interface ColorOption {\n id: string;\n color?: string;\n name: string;\n}\n\nexport const getColorOption = (colorId: string | ColorOption) => colorOptions.find(el => el.id === colorId) || colorOptions[0];\n","import { AxiosResponse } from 'axios';\nimport { useQuery } from 'react-query';\n\nimport {\n USE_VEHICLES,\n USE_BRANDS,\n USE_MODELS,\n USE_VEHICLE,\n USE_DRIVER_VEHICLES,\n USE_RIDE_VEHICLE,\n} from '../../../constants/queryKeys';\nimport { useDebounce } from '../../../hooks/useDebounce';\nimport apiClient from '../../../services/api';\nimport {\n getSearchBrands,\n getSearchVehicles,\n getFindVehicleRoute,\n VEHICLE_MODELS,\n VEHICLES,\n getVehicleRoute,\n getDriverVehiclesRoute,\n getRideVehicleRoute,\n} from '../../../services/routes';\nimport { ColorOption, getColorOption } from '../colorOptions';\nimport { Entity, Vehicle, VehicleUpdateVariables, VehicleVariables } from './types';\n\ninterface Response {\n data: T;\n}\n\nexport const useVehicles = (search: string, limit?: number) => {\n const debouncedSearchQuery = useDebounce(search, 400);\n\n const { data, isLoading, isError, isFetching, refetch } = useQuery(\n [USE_VEHICLES + debouncedSearchQuery],\n () => getVehicles(debouncedSearchQuery, limit),\n {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: false,\n }\n );\n\n return {\n data: data ?? [],\n isLoading,\n isError,\n isFetching,\n refetch,\n };\n};\n\nconst getVehicles = async (search: string, limit?: number): Promise => {\n const response = await apiClient.get>(getSearchVehicles(search, limit));\n\n return response.data?.data;\n};\n\nexport function useBrands(search: string, limit?: number) {\n return useQuery([USE_BRANDS + search], () => getBrands(search, limit), {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n cacheTime: 500,\n });\n}\n\nconst getBrands = async (search: string, limit?: number): Promise => {\n const response = await apiClient.get>(getSearchBrands(search, limit));\n\n return response.data?.data;\n};\n\nexport function useModels(search: string, brandId?: number, limit?: number) {\n return useQuery([USE_MODELS + search], () => getModels(search, brandId, limit), {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n cacheTime: 500,\n enabled: Boolean(brandId) || Boolean(search),\n });\n}\n\nconst getModels = async (search: string, brandId?: number, limit?: number): Promise => {\n const response = await apiClient.get>(VEHICLE_MODELS, {\n params: {\n search,\n brand_id: brandId,\n },\n });\n\n return response.data?.data;\n};\n\nexport const createVehicle = async (variables: VehicleVariables): Promise => {\n const response = await apiClient.post>(VEHICLES, variables);\n\n return response;\n};\n\nexport const updateVehicle = async (variables: VehicleUpdateVariables): Promise => {\n const response = await apiClient.put>(getVehicleRoute(variables.id), variables);\n\n return response;\n};\n\nexport const archiveVehicle = async (id: number): Promise => {\n const response = await apiClient.put>(`${getVehicleRoute(id)}/archive`);\n\n return response;\n};\n\nexport const restoreVehicle = async (id: number): Promise => {\n const response = await apiClient.put>(`${getVehicleRoute(id)}/restore`);\n\n return response;\n};\n\nexport function useFindVehicleByLicensePlate(search: string, isDisabled?: boolean) {\n const debouncedSearchQuery = useDebounce(search, 400);\n\n return useQuery([USE_VEHICLE + debouncedSearchQuery], () => findVehicle(debouncedSearchQuery), {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n cacheTime: 500,\n enabled: Boolean(debouncedSearchQuery) && isDisabled,\n });\n}\n\nexport const findVehicle = async (search: string): Promise => {\n const response = await apiClient.get>(getFindVehicleRoute(search));\n\n return response.data?.data;\n};\n\nexport function useVehicle(vehicleId?: number | null, uniqueId?: Date | string) {\n const { data, isLoading, isError, isFetching, refetch, isFetched } = useQuery(\n [USE_VEHICLE + uniqueId + vehicleId],\n () => getVehicle(vehicleId ?? -1),\n {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n cacheTime: 500,\n enabled: Boolean(vehicleId),\n }\n );\n\n return {\n data: data\n ? {\n ...data,\n color: getColorOption(data?.color as string) as ColorOption,\n }\n : null,\n isLoading,\n isError,\n isFetching,\n refetch,\n isFetched,\n };\n}\n\nexport const getVehicle = async (vehicleId: number): Promise => {\n const response = await apiClient.get>(getVehicleRoute(vehicleId));\n\n return response.data?.data;\n};\n\nexport function useDriverVehicles(driverId: number) {\n return useQuery([USE_DRIVER_VEHICLES], () => getDriverVehicles(driverId), {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n cacheTime: 500,\n enabled: Boolean(driverId),\n });\n}\n\nconst getDriverVehicles = async (driverId: number): Promise => {\n const response = await apiClient.get>(getDriverVehiclesRoute(driverId));\n\n return response.data?.data;\n};\n\nexport function useRideVehicle(rideId: string) {\n return useQuery([USE_RIDE_VEHICLE], () => getRideVehicle(rideId), {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n cacheTime: 500,\n enabled: Boolean(rideId),\n });\n}\n\nconst getRideVehicle = async (rideId: string): Promise => {\n const response = await apiClient.get>(getRideVehicleRoute(rideId));\n\n return response.data.data\n ? {\n ...response.data?.data,\n color: (getColorOption(response.data?.data?.color as string) as ColorOption) || {\n id: '',\n color: '',\n name: '',\n },\n }\n : null;\n};\n","import { Box, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { HTMLAttributes } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { noColor } from '../../../public/assets/images';\nimport { ColorOption } from '.';\n\nconst useStyles = makeStyles(() => ({\n circle: (props: { color?: string }) => ({\n width: '16px',\n height: '16px',\n border: `1px solid ${COLORS.LIGHT_GRAY}`,\n borderRadius: '50%',\n backgroundColor: props.color || COLORS.WHITE,\n marginRight: '10px',\n }),\n}));\n\ninterface ColorCircleProps {\n option: ColorOption;\n props?: HTMLAttributes;\n paddingBox?: string;\n textBold?: boolean;\n}\n\nconst ColorCircle = ({ option, props, paddingBox, textBold }: ColorCircleProps) => {\n const { t } = useTranslation();\n const classes = useStyles({ color: option.color });\n\n return (\n \n {option.color === 'UNSPECIFIED' ? (\n \n {t(option.color)}\n \n ) : (\n \n )}\n \n {t(option.name)}\n \n \n );\n};\n\nexport default ColorCircle;\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA8dJREFUWAntmM1LlEEcx4cICnzDjS0kYhcWugVK0KFi9R8QLPDiEtUlu4f+A3ryEv4B6jFCPUoHO3gJ7NBF2BI6FPhApiyyHkRbxPgMz8g888zsPC9rHWpgmeeZZ3bms7+X7/yeFeJ/+3sWuCyE6BFCXBNC3BRC3BJClMIP1wNCiGI4h7l/pj3p7r7+qKfntgajoHw9wF0XRlkrFHqf9vXdfV4o3OfzcmzsXr1ef9VoNJaPj4/rp6enzbOwcc0Yz5gzNzf3QPtBWLujoJeEEP1jIdzMwMDjlXJ5bWNk5LB1eKiYvD2wBmi/EIK1czViB9eUno2PD74tl9++q1TO1Ofr/LwXzJywu7u7YFgzc3zyRdxR4pe3Wq0dgBQc/fuhobOjIDAZvPespVmTPVJDYvoIHLv+ajbP1gcHI5Bb09NeINsEAxIvpXI38XFuOX2Db4uLEUAs2djc1KckvjYg2TNRI8OkZLCAbbePExMRSO6zNvao1Wp3wj2vJCGUriWYXZtiMT0WuQ5WV13TveNa4rB32yatRwD7Vv00ORmBJGHSyI65vpY0bTVSSsrBwcGyuYB5f7SzE0uYLLKj1kUnQzffcJmQVJeJob7k6zslO+zD6aPFolV2egHkaPKBqefIzka1GnF1noRh79CKFCGxRuVRSuJeBUgfrKxEAPPIjuZmKqRYk/HHIa8DJLk2ZefD6GiSr8XmsHdoQWs2y3pOr0piKzgGbLLzfWnJMds9zN4hICyxJsXZ/fX2T7ampiKuzio7ISAssZYL0HZOf5mdbf+rLE/bAWZ2sdrHlB0SJk2143OxPOKyJIkCzCs7WpKQsLFGaqeWGQWnelvCJK12NJlB8mIttVArKLM3ZWdjeNicYr33CbU86jhuskiNvmOzXo9kNLGY5JzWCgbrUYdJOahzuxnYzzMzEUif7Gjutcaf8nc3gEnKLd1ituu0sqNZD4a2TWbz3t6es2C1AdnGkr4eBEHwOtQ/6xFn0l5lMrHoKvltMK4xX7XDHiEcB4XXegrW+dLkAnGN22Tn5/q6nA6c5trEL01A8gooqxsWyGtJm+wc7e/rcLg21WsnkKS6jMe8kLweIDXqs1apBJPFYlWLO6esKJe6+nNIFiOYXa70jatz+k25vFDt6lKvmXgpM5yCxvQyJoHEmmmrboT/x/b28oti8aGWEKyZ2q0KytaTYdLlCpSjCdiTk5PY32+M8Yw52ssQmcoaKMWFNUBlAmnWkLWk555TKrGMdIKe2KHAoPIAWNaTISTXWIoKiTm546wTwP/mGr8BvyjzJE98im0AAAAASUVORK5CYII=\"","import { AxiosResponse } from 'axios';\n\nimport apiClient from '../../../../services/api';\nimport { getAssignDriverToRide, getUnassignDriverFromRide } from '../../../../services/routes';\nimport { RideResponse } from '../../../ride/api/types';\nimport { AssignDriverToRide } from './types';\n\nexport const assignDriverToRide = async (variables: AssignDriverToRide): Promise> => {\n const response = await apiClient.post(getAssignDriverToRide(variables));\n\n return response;\n};\n\nexport const unassignDriverFromRide = async (rideId: string): Promise> => {\n const response = await apiClient.post(getUnassignDriverFromRide(rideId));\n\n return response;\n};\n","/* eslint-disable max-depth */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { TextField, ModalAction as Modal } from '@get-e/react-components';\nimport Crop169Icon from '@mui/icons-material/Crop169';\nimport PinIcon from '@mui/icons-material/Pin';\nimport { Autocomplete, Grid, InputAdornment, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { random } from 'lodash';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport {\n ADD_OR_EDIT_NEW_VEHICLE_ADD_UPDATE_BUTTON,\n ADD_OR_EDIT_NEW_VEHICLE_REMOVE_PHOTO_BUTTON,\n ADD_OR_EDIT_VEHICLE_BRAND_INPUT,\n ADD_OR_EDIT_VEHICLE_COLOR_INPUT,\n ADD_OR_EDIT_VEHICLE_IDENTIFIER_INPUT,\n ADD_OR_EDIT_VEHICLE_LICENSE_PLATE_INPUT,\n ADD_OR_EDIT_VEHICLE_MODEL_INPUT,\n ADD_OR_EDIT_VEHICLE_PHOTO_INPUT,\n} from '../../../constants/amplitude/supplierKeys';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport { IS_LETTER_AND_NUMBER } from '../../../helpers/inputValidation/regexRules';\nimport and from '../../../helpers/inputValidation/validators/and';\nimport isFilledString from '../../../helpers/inputValidation/validators/isFilledString';\nimport isOnlyLettersAndNumbersString from '../../../helpers/inputValidation/validators/isOnlyLettersAndNumbersString';\nimport theme from '../../../styles/theme';\nimport { useUserProfile } from '../../users/api';\nimport { useBrands, useModels, createVehicle, useFindVehicleByLicensePlate, updateVehicle } from '../api';\nimport { Entity, ImageUrl, Vehicle } from '../api/types';\nimport { useUploadedImageUrls } from '../api/useUploadedImageUrls';\nimport { ColorOption, colorOptions } from '../colorOptions';\nimport ColorCircle from '../colorOptions/ColorCircle';\nimport { getUnionPicturesToUploadByUrl } from './imageUploader/helpers';\nimport ImageUploader from './imageUploader/ImageUploader';\n\nconst useStyles = makeStyles(() => ({\n formField: {\n marginBottom: '1rem',\n width: '100%',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n}));\n\ninterface AddVehicleErrors {\n licensePlate: InputError | null;\n}\n\ninterface AddVehicleModalProps {\n onClose: () => void;\n onSuccess: (id: number) => void;\n isOpen: boolean;\n vehicle?: Vehicle;\n}\n\nconst AddVehicleModal = ({ onClose, isOpen, vehicle, onSuccess }: AddVehicleModalProps) => {\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const classes = useStyles();\n const { t } = useTranslation();\n const { data: userProfile } = useUserProfile();\n const { showNotification } = useNotificationContext();\n\n const [searchBrandTerm, setBrandTerm] = useState('');\n const [searchModelTerm, setModelTerm] = useState('');\n const [files, setFiles] = useState([]);\n const [isDone, setIsDone] = useState(false);\n const [isLoadingImages, setIsLoadingImages] = useState(false);\n const [newPictures, setNewPictures] = useState(vehicle?.pictures?.map(el => el.url) ?? []);\n const [isModelOpen, setIsModelOpen] = useState(false);\n\n const [values, setValues] = useState(\n vehicle ?? {\n id: random(),\n licensePlate: '',\n brand: null,\n model: null,\n color: undefined,\n identifier: '',\n pictures: [],\n status: '',\n }\n );\n\n const [formErrors, setFormErrors] = useState({\n licensePlate: null,\n });\n\n const { data: brandOptions, isLoading: isLoadingBrands } = useBrands(searchBrandTerm);\n\n const { data: isVehicleFounded } = useFindVehicleByLicensePlate(\n values.licensePlate,\n vehicle?.licensePlate !== values.licensePlate\n );\n\n const { data: modelOptions, isLoading: isLoadingModels } = useModels(searchModelTerm, values.brand?.id);\n\n const { mutate: createVehicleMutation, isLoading: isLoadingCreate } = useMutation(createVehicle, {\n onSuccess: response => {\n showNotification(t('pages.vehicles.alert.success'), Severity.Info);\n onSuccess(response.data.id);\n },\n onError: (error: any) => {\n if (error.response?.data?.errors?.licensePlate[0]?.code === 'UNIQUE_VIOLATION') {\n setFormErrors({\n ...formErrors,\n licensePlate: InputError.LicensePlateAlreadyTaken,\n });\n } else {\n showNotification(t('pages.vehicles.alert.error'), Severity.Error);\n }\n },\n });\n\n const { mutate: editVehicleMutation, isLoading: isLoadingEdit } = useMutation(updateVehicle, {\n onSuccess: response => {\n showNotification(t('pages.vehicles.alert.successUpdate'), Severity.Info);\n onSuccess(response.data.id);\n },\n onError: (error: any) => {\n if (error.response?.data?.errors?.licensePlate[0]?.code === 'UNIQUE_VIOLATION') {\n setFormErrors({\n ...formErrors,\n licensePlate: InputError.LicensePlateAlreadyTaken,\n });\n } else {\n showNotification(t('pages.vehicles.alert.errorUpdate'), Severity.Error);\n }\n },\n });\n\n const validateFields = (): boolean => {\n const validated = {\n licensePlate: and(isFilledString(values.licensePlate, InputError.Empty), () =>\n isOnlyLettersAndNumbersString(values.licensePlate, InputError.OnlyLettersAndNumbersAllowed)\n ),\n };\n\n const fieldErrors: AddVehicleErrors = {\n licensePlate: validated.licensePlate.isValid ? null : validated.licensePlate.error,\n };\n\n const isValid = fieldErrors.licensePlate === null;\n\n !isValid && setFormErrors(fieldErrors);\n\n return isValid;\n };\n\n const resultsOfImages = useUploadedImageUrls(isDone, files);\n\n useEffect(() => {\n if (isVehicleFounded && formErrors.licensePlate !== InputError.LicensePlateAlreadyTaken && !vehicle) {\n setFormErrors({\n ...formErrors,\n licensePlate: InputError.LicensePlateAlreadyTaken,\n });\n } else {\n setFormErrors({\n ...formErrors,\n licensePlate: null,\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isVehicleFounded]);\n\n useEffect(() => {\n setIsLoadingImages(resultsOfImages.some(result => result.isLoading || result.isFetching));\n\n if (isDone) {\n const allSettled = resultsOfImages.every(result => result.isSuccess || result.isError);\n\n if (allSettled) {\n const successfulUploads = resultsOfImages\n .filter(result => result.isSuccess)\n .map(result => result.data) as ImageUrl[];\n\n const failureUploads = resultsOfImages.filter(result => result.isError);\n\n // Is editing or creating new\n if (vehicle && vehicle.id !== -1 && failureUploads?.length === 0) {\n const result = getUnionPicturesToUploadByUrl(newPictures, vehicle?.pictures);\n const newArrayOfPictures = result.concat(successfulUploads as any);\n\n if (newArrayOfPictures.length > 0) {\n if (!newArrayOfPictures.find(el => el?.isDefault)) {\n newArrayOfPictures[0].isDefault = true;\n }\n }\n\n editVehicleMutation({\n id: vehicle.id,\n licensePlate: values.licensePlate,\n identifier: values.identifier,\n color: (values?.color as ColorOption)?.id,\n pictures: newArrayOfPictures,\n ...(Boolean(values.brand?.id) && { brandId: values.brand?.id }),\n ...(Boolean(values.model?.id) && { modelId: values.model?.id }),\n });\n } else if (failureUploads?.length === 0) {\n if (successfulUploads.length > 0) {\n successfulUploads[0].isDefault = true;\n }\n\n createVehicleMutation({\n licensePlate: values.licensePlate,\n identifier: values.identifier,\n color: (values?.color as ColorOption)?.id,\n pictures: successfulUploads,\n ...(Boolean(values.brand?.id) && { brandId: values.brand?.id }),\n ...(Boolean(values.model?.id) && { modelId: values.model?.id }),\n });\n } else {\n showNotification(t('pages.vehicles.alert.error'), Severity.Error);\n }\n\n setIsDone(false);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [resultsOfImages, isDone, createVehicleMutation, values]);\n\n const handleSubmit = () => {\n if (!validateFields()) {\n return;\n }\n\n setIsDone(true);\n logAmplitudeEvent(ADD_OR_EDIT_NEW_VEHICLE_ADD_UPDATE_BUTTON);\n };\n\n const handleChange = (key: T, newValue: Vehicle[T]): void => {\n if (key === 'brand') {\n setValues({\n ...values,\n brand: newValue as Entity,\n model: undefined,\n });\n } else {\n setValues({\n ...values,\n [key]: newValue,\n });\n }\n\n if (key === 'licensePlate') {\n const value = newValue as string;\n\n if (value.length > 10) {\n setFormErrors({\n ...formErrors,\n licensePlate: InputError.MaxLengthExceeded,\n });\n } else if (!IS_LETTER_AND_NUMBER.test(value)) {\n setFormErrors({\n ...formErrors,\n licensePlate: InputError.OnlyLettersAndNumbersAllowed,\n });\n } else {\n setFormErrors(prevStateForm => ({\n ...prevStateForm,\n [key]: null,\n }));\n }\n } else {\n setFormErrors(prevStateForm => ({\n ...prevStateForm,\n [key]: null,\n }));\n }\n };\n\n return (\n \n \n \n \n {\n handleChange('licensePlate', event.target.value.toUpperCase());\n }}\n required\n autoComplete=\"off\"\n value={values.licensePlate}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n inputProps: { maxLength: 10 },\n }}\n onBlur={() => logAmplitudeEvent(ADD_OR_EDIT_VEHICLE_LICENSE_PLATE_INPUT)}\n />\n \n \n \n {\n handleChange('brand', newValue);\n logAmplitudeEvent(ADD_OR_EDIT_VEHICLE_BRAND_INPUT);\n setIsModelOpen(true);\n }}\n options={brandOptions ?? []}\n getOptionLabel={(option: Entity) => option?.name}\n value={values.brand}\n renderInput={params => (\n \n )}\n noOptionsText={\n \n {t('pages.vehicles.emailSupportToAddBrand')} {searchBrandTerm}\n \n }\n onInputChange={(_, newValue) => setBrandTerm(newValue)}\n />\n \n \n {\n handleChange('model', newValue);\n logAmplitudeEvent(ADD_OR_EDIT_VEHICLE_MODEL_INPUT);\n }}\n options={modelOptions ?? []}\n getOptionLabel={(option: Entity) => option?.name}\n value={values.model}\n renderInput={params => (\n \n )}\n onInputChange={(_, newValue) => setModelTerm(newValue)}\n noOptionsText={\n \n {t('pages.vehicles.emailSupportToAddBrand')} {searchModelTerm}\n \n }\n open={isModelOpen}\n onOpen={() => setIsModelOpen(true)}\n onClose={() => setIsModelOpen(false)}\n />\n \n \n \n {\n handleChange('color', newValue);\n logAmplitudeEvent(ADD_OR_EDIT_VEHICLE_COLOR_INPUT);\n }}\n options={colorOptions}\n getOptionLabel={(option: ColorOption) => t(option?.name)}\n value={values.color as ColorOption}\n renderInput={params => (\n \n )}\n renderOption={(prop, option: ColorOption) => {\n return ;\n }}\n />\n \n \n handleChange('identifier', event.target.value)}\n autoComplete=\"off\"\n value={values.identifier}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n onBlur={() => logAmplitudeEvent(ADD_OR_EDIT_VEHICLE_IDENTIFIER_INPUT)}\n />\n \n \n (item2.isDefault ? 1 : 0) - (item1.isDefault ? 1 : 0))\n ?.map(el => el.url)}\n setImagesChange={setNewPictures}\n logPhotoInputEvent={() => logAmplitudeEvent(ADD_OR_EDIT_VEHICLE_PHOTO_INPUT)}\n logPhotoDeleteEvent={() => logAmplitudeEvent(ADD_OR_EDIT_NEW_VEHICLE_REMOVE_PHOTO_BUTTON)}\n />\n \n \n \n \n );\n};\n\nexport default AddVehicleModal;\n","import { IS_LETTER_AND_NUMBER } from '../regexRules';\nimport { Validated } from '../Validator';\n\nexport default function isOnlyLettersAndNumbersString(value: string, error: TError): Validated {\n return !value || !IS_LETTER_AND_NUMBER.test(value)\n ? {\n isValid: false,\n error,\n }\n : {\n isValid: true,\n value,\n };\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Dispatch, SetStateAction, useContext, useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { QueryObserverResult } from 'react-query';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { SINGLE_RIDE_DRIVER_SAVE, SINGLE_RIDE_DRIVER_UNASSIGN } from '../../../../constants/amplitude/supplierKeys';\nimport { Severity, useNotificationContext } from '../../../../context/NotificationContext';\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport isFilledString from '../../../../helpers/inputValidation/validators/isFilledString';\nimport { addDriver, useDrivers } from '../../../drivers/api';\nimport { AddDriverRequest, Driver } from '../../../drivers/api/types';\nimport { assignDriverToRide, unassignDriverFromRide } from '../../../rides/supplier/api';\nimport { AssignDriverToRide } from '../../../rides/supplier/api/types';\nimport { RideResponse } from '../../api/types';\nimport { RideContext } from '../context/RideContext';\n\nexport const ADD_DRIVER_ID = -1;\nexport const NO_RESULTS_DRIVER_ID = -2;\n\nexport const DEAFULT_ADD_DRIVER_BUTTON_OPTION = {\n id: ADD_DRIVER_ID,\n name: '',\n phoneNumber: '',\n phoneOs: null,\n tripsCount: 0,\n} as Driver;\n\nexport const NO_RESULTS_DRIVER_OPTION = {\n id: NO_RESULTS_DRIVER_ID,\n name: '',\n phoneNumber: '',\n phoneOs: null,\n tripsCount: 0,\n};\n\nexport const initialDriverInformationError = {\n nameError: null,\n phoneNumberError: null,\n} as DriverInformationError;\n\nexport interface DriverInformationError {\n nameError: InputError | null;\n phoneNumberError?: string | null;\n}\n\nconst useSupplierDriverInformation = (\n initialDriverInformation?: Driver\n): {\n driverInformations: Driver[];\n driverInformation?: Driver;\n setDriverInformation: Dispatch>;\n driverInformationError: DriverInformationError;\n setDriverInformationError: Dispatch>;\n addDriverInformation: (driverInformation: AddDriverRequest) => Promise;\n validateDriverInformationFields: () => boolean;\n refetchDrivers: () => Promise>;\n handleChangeDriver: (request: AssignDriverToRide) => Promise;\n handleUnassignDriver: (rideId: string) => Promise;\n isLoading: boolean;\n} => {\n const [values, setValues] = useState([]);\n const [value, setValue] = useState(initialDriverInformation);\n const [error, setError] = useState(initialDriverInformationError);\n const { showNotification } = useNotificationContext();\n const { t } = useTranslation();\n const { amplitudeEventProperties } = useContext(RideContext);\n\n const { data: drivers, refetch, isLoading, isFetching } = useDrivers();\n\n useEffect(() => {\n if (!isLoading && !isFetching && drivers && values.length === 0) {\n setValues(drivers);\n }\n }, [drivers, isLoading, isFetching, values.length]);\n\n const validateFields = (): boolean => {\n const validatedName = isFilledString(value?.name ?? '', InputError.Empty);\n const fieldErros = { nameError: !value || validatedName.isValid ? null : validatedName.error };\n\n setError(fieldErros);\n\n return fieldErros.nameError === null;\n };\n\n const handleAddDriverInformation = async (newDriver: AddDriverRequest) => {\n try {\n const response = await addDriver(newDriver);\n\n setValue(response.data);\n setError(initialDriverInformationError);\n showNotification(t('pages.drivers.driverSuccessfullyCreated'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_SAVE, amplitudeEventProperties);\n } catch (addDriverError: any) {\n let errorMessage = null;\n\n if (addDriverError.response && addDriverError.response.data) {\n errorMessage = addDriverError.response.data.errors?.phoneNumber?.[0];\n }\n\n setError({\n phoneNumberError: errorMessage,\n nameError: null,\n });\n showNotification(t('errors.defaultError'), Severity.Error);\n } finally {\n await refetch();\n }\n };\n\n const handleChangeDriver = async (request: AssignDriverToRide) => {\n try {\n const { data } = await assignDriverToRide(request);\n\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_SAVE, amplitudeEventProperties);\n return data;\n } catch (changeDriverError) {\n showNotification(t('alert.driverAssignError'), Severity.Error);\n }\n };\n\n const handleUnassignDriver = async (rideId: string) => {\n try {\n const { data } = await unassignDriverFromRide(rideId);\n\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_UNASSIGN, amplitudeEventProperties);\n return data;\n } catch (unassignDriverError) {\n showNotification(t('alert.driverUnassignError'), Severity.Error);\n }\n };\n\n return {\n driverInformations: values,\n driverInformation: value,\n setDriverInformation: setValue,\n driverInformationError: error,\n setDriverInformationError: setError,\n addDriverInformation: handleAddDriverInformation,\n validateDriverInformationFields: validateFields,\n refetchDrivers: refetch,\n handleChangeDriver,\n handleUnassignDriver,\n isLoading,\n };\n};\n\nexport default useSupplierDriverInformation;\n","/* eslint-disable max-lines-per-function */\n/* eslint-disable complexity */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Autocomplete, IconedData, ModalAction as Modal } from '@get-e/react-components';\nimport {\n Phone,\n Star,\n Badge,\n Face,\n DirectionsCar,\n Crop169,\n StarsOutlined,\n ColorLens,\n Bookmark,\n Add,\n InfoOutlined,\n} from '@mui/icons-material';\nimport { Box, Grid, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useContext, useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useParams } from 'react-router-dom';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { SINGLE_RIDE_DRIVER_UNASSIGN } from '../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../../context/NotificationContext';\nimport theme from '../../../../styles/theme';\nimport { addDriver, useDrivers } from '../../../drivers/api';\nimport { AddDriverRequest, Driver } from '../../../drivers/api/types';\nimport { unassignDriverFromRide } from '../../../rides/supplier/api';\nimport { useDriverVehicles, useVehicle, useVehicles } from '../../../vehicles/api';\nimport { Photo, Vehicle } from '../../../vehicles/api/types';\nimport { getColorOption } from '../../../vehicles/colorOptions';\nimport ColorCircle from '../../../vehicles/colorOptions/ColorCircle';\nimport AddVehicleModal from '../../../vehicles/components/AddVehicleModal';\nimport SmallVehicleImage from '../../../vehicles/components/SmallVehicleImage';\nimport { assignVehicleAndDriver } from '../../api';\nimport { RideContext } from '../context/RideContext';\nimport { ADD_DRIVER_ID, DEAFULT_ADD_DRIVER_BUTTON_OPTION } from '../hooks/useSupplierDriverInformation';\nimport AddDriverModal from './AddDriverModal';\n\nconst useStyles = makeStyles({\n driverVehicleModal: { '& .MuiDialog-container .MuiPaper-root': { maxWidth: '600px' } },\n formField: {\n marginBottom: '1.25rem',\n width: '100%',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n addNewContainer: {\n borderTop: `1px solid ${COLORS.DARK_GRAY}`,\n padding: '.75rem 1rem',\n cursor: 'pointer',\n '&:hover': { backgroundColor: COLORS.LIGHT_GRAY },\n },\n addNew: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n color: COLORS.BLACK_50,\n },\n button: {\n marginRight: '1rem',\n border: `1px solid ${COLORS.BLUE}`,\n color: COLORS.BLUE,\n fontSize: '13px',\n marginTop: '1rem',\n marginBottom: '0.5rem',\n },\n driverOptionContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-start',\n color: COLORS.SLATE_GREY,\n padding: '.75rem 1rem',\n '&:hover': { backgroundColor: COLORS.LIGHT_GRAY },\n cursor: 'pointer',\n },\n entityInfo: {\n display: 'flex',\n alignItems: 'center',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n flexWrap: 'wrap',\n padding: '1rem',\n height: 'auto',\n },\n entityImage: {\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '8px',\n backgroundColor: COLORS.EXTRA_LIGHT_GRAY,\n width: '88px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '88px',\n marginRight: '1rem',\n '& .MuiSvgIcon-root': {\n fontSize: '2.3rem',\n color: COLORS.DARK_GRAY,\n },\n },\n starIcon: {\n fontSize: '1.25rem',\n marginRight: '0.2rem',\n },\n image: {\n width: '100%',\n height: '100%',\n borderRadius: '8px',\n },\n smallPhoto: {\n width: '30px',\n height: '30px',\n marginRight: '1rem',\n },\n vehicleOption: {\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n padding: '.75rem 1rem',\n '&:hover': { backgroundColor: COLORS.LIGHT_GRAY },\n },\n notification: {\n padding: '1rem 1.3rem',\n backgroundColor: COLORS.LIGHT_BLUE_INFO,\n marginBottom: '2rem',\n display: 'flex',\n alignItems: 'center',\n borderRadius: '.25rem',\n color: COLORS.WHITE,\n },\n infoIcon: {\n color: COLORS.WHITE,\n marginRight: '.7rem',\n },\n});\n\ninterface DriverVehicleModalProps {\n isModalOpen: boolean;\n onClose: () => void;\n initialVehicle: Vehicle | null;\n initialDriver: Driver | null;\n driverVehicleId?: number | null;\n isRidesOverview?: boolean;\n rideDataId?: string;\n rideStatus?: string;\n}\n\nconst DriverVehicleModal = ({\n isModalOpen,\n initialDriver,\n initialVehicle,\n onClose,\n isRidesOverview,\n driverVehicleId,\n rideDataId,\n rideStatus,\n}: DriverVehicleModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const { showNotification } = useNotificationContext();\n const { rideId }: { rideId: string } = useParams();\n const { amplitudeEventProperties } = useContext(RideContext);\n\n const [driverSearchPhrase, setDriverSearchPhrase] = useState('');\n const [selectedDriver, setSelectedDriver] = useState(initialDriver ? { ...initialDriver } : null);\n const [driverError, setDriverError] = useState('');\n const [vehicleSearchPhrase, setVehicleSearchPhrase] = useState('');\n const [selectedVehicle, setSelectedVehicle] = useState(initialVehicle ? { ...initialVehicle } : null);\n const [addDriverModalOpen, setAddDriverModalOpen] = useState(false);\n const [addVehicleModalOpen, setAddVehicleModalOpen] = useState(false);\n const [initialVehicleStateSet, setInitialVehicleStateSet] = useState(false);\n\n const { data: drivers } = useDrivers(driverSearchPhrase);\n const { data: vehicles, refetch: refetchVehicles } = useVehicles(vehicleSearchPhrase, 500);\n const { data: driverVehicles = [] } = useDriverVehicles(selectedDriver?.id);\n const { data: vehicleData } = useVehicle(isRidesOverview ? driverVehicleId : null, '');\n\n const driverOptions: Driver[] = useMemo(() => drivers.filter(driver => !driver.isDeactivated), [drivers]);\n\n const vehicleOptions: Vehicle[] = useMemo(\n () =>\n vehicles\n .filter(vehicle => !vehicle.isArchived)\n .map(vcl => ({\n ...vcl,\n color: getColorOption(vcl.color || ''),\n })),\n [vehicles]\n );\n\n const driverVehicleOptions: Vehicle[] = useMemo(\n () => driverVehicles?.filter(vehicle => !vehicle.isArchived),\n [driverVehicles]\n );\n\n useEffect(() => {\n if (initialVehicle) {\n setSelectedVehicle(initialVehicle);\n }\n }, [initialVehicle]);\n\n useEffect(() => {\n if (initialDriver) {\n setSelectedDriver(initialDriver);\n }\n }, [initialDriver]);\n\n useEffect(() => {\n if (isRidesOverview && driverVehicleId && !initialVehicleStateSet && vehicleData) {\n setSelectedVehicle(vehicleData);\n setInitialVehicleStateSet(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [vehicleData]);\n\n const handleSubmit = async () => {\n if (!selectedDriver) {\n await handleUnassignDriver();\n return;\n }\n\n try {\n await assignVehicleAndDriver(isRidesOverview ? rideDataId || '' : rideId, {\n driverId: selectedDriver?.id,\n vehicleId: selectedVehicle ? selectedVehicle?.id : null,\n });\n\n showNotification(t('alert.edit.success'), Severity.Info);\n } catch (error: any) {\n showNotification(error?.response?.data?.message || t('errors.defaultError'), Severity.Error);\n } finally {\n onClose();\n }\n };\n\n const handleAddDriver = async (newDriver: AddDriverRequest) => {\n try {\n const response: any = await addDriver(newDriver);\n\n setSelectedDriver(response.data);\n\n showNotification(t('pages.drivers.driverSuccessfullyCreated'), Severity.Info);\n } catch (error: any) {\n showNotification(error?.response?.data?.message || t('errors.defaultError'), Severity.Error);\n } finally {\n setAddDriverModalOpen(false);\n }\n };\n\n const handleAddVehicle = async (id: number) => {\n const refetchedVehicles = await refetchVehicles();\n const vehicle = refetchedVehicles.data?.find(veh => veh.id === id);\n\n if (vehicle) {\n setSelectedVehicle(vehicle);\n }\n\n setAddVehicleModalOpen(false);\n };\n\n const handleUnassignDriver = async () => {\n try {\n await unassignDriverFromRide(isRidesOverview ? rideDataId || '' : rideId);\n showNotification(t('alert.edit.successRemoveDriver'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_UNASSIGN, amplitudeEventProperties);\n onClose?.();\n } catch (error) {\n showNotification(t('alert.driverUnassignError'), Severity.Error);\n }\n };\n\n return (\n \n \n \n {selectedDriver && selectedVehicle && rideStatus === 'TO_CONFIRM' && (\n \n \n {t('modals.driverAndVehicle.autoConfirmWarning')}\n \n )}\n \n \n option.name}\n getOptionKey={(option: Driver) => option.id}\n isOptionEqualToValue={(option, value) => option.id === value.id}\n filterOptions={(options: Driver[]) => {\n const found = options.some(el => el.id === ADD_DRIVER_ID);\n\n if (!found) {\n options.push(DEAFULT_ADD_DRIVER_BUTTON_OPTION);\n }\n\n return options;\n }}\n renderOption={(prop, option: Driver) => {\n const averageRate = option.feedbacks?.averageRate\n ? option.feedbacks?.averageRate.toFixed(1).toString()\n : '';\n\n const count = option.feedbacks?.count ?? '';\n\n if (option.id === ADD_DRIVER_ID) {\n return (\n {\n setAddDriverModalOpen(true);\n setSelectedDriver(null);\n }}\n >\n \n <>{t('buttonName.addNew')}\n \n \n \n );\n }\n\n return (\n \n \n \n \n \n {option.name} ({option.phoneNumber})\n \n \n {averageRate}\n \n {count !== '' && count !== 0 && (\n <>\n \n ({option.feedbacks?.count})\n \n )}\n \n );\n }}\n value={selectedDriver}\n onChange={(_, newValue) => {\n if (!newValue) {\n setSelectedVehicle(null);\n }\n\n setSelectedDriver(newValue as Driver);\n setDriverError('');\n }}\n required\n className={classes.formField}\n inputValue={driverSearchPhrase}\n onInputChange={(_, newInputValue) => {\n setDriverSearchPhrase(newInputValue);\n setDriverError('');\n }}\n isError={driverError !== ''}\n helperText={driverError ? t(driverError) : ''}\n />\n \n \n {!selectedDriver || !selectedDriver?.pictureUrl ? (\n \n ) : (\n \"driver\"\n )}\n \n \n \n \n \n \n \n\n \n option.id === value.id}\n componentsProps={{\n popper: {\n modifiers: [\n {\n name: 'flip',\n enabled: false,\n },\n {\n name: 'preventOverflow',\n enabled: false,\n },\n ],\n },\n }}\n options={\n !vehicleSearchPhrase && driverVehicleOptions.length > 0 && selectedDriver\n ? driverVehicleOptions\n : vehicleOptions\n }\n getOptionLabel={(option: Vehicle) => {\n if (option.id === -1) {\n return '';\n }\n\n return `${option.licensePlate} ${option.brand?.name || ''} ${option.model?.name || ''}`;\n }}\n filterOptions={(options: Vehicle[]) => {\n const found = options.some(el => el.id === -1);\n\n if (!found) {\n options.push({\n id: -1,\n licensePlate: '',\n identifier: '',\n brand: {\n name: '',\n id: -1,\n },\n color: '',\n model: {\n name: '',\n id: -1,\n },\n status: '',\n pictures: [],\n isArchived: false,\n });\n }\n\n return options;\n }}\n renderOption={(prop, option: Vehicle) => {\n if (option.id === -1) {\n return (\n {\n setAddVehicleModalOpen(true);\n setSelectedVehicle(null);\n }}\n >\n \n <>{t('buttonName.addNew')}\n <>\n \n \n \n \n );\n }\n\n const photo = option.pictures.find(picture => picture.isDefault) || option.pictures[0];\n\n return (\n \n \n \n \n \n {option.licensePlate}\n \n \n {option.brand?.name || ''} {option.model?.name || ''}\n \n \n );\n }}\n value={selectedVehicle}\n onChange={(_, newValue) => {\n setSelectedVehicle(newValue as Vehicle);\n }}\n className={classes.formField}\n inputValue={vehicleSearchPhrase}\n onInputChange={(_, newInputValue) => {\n setVehicleSearchPhrase(newInputValue);\n }}\n />\n \n \n {!selectedVehicle || !selectedVehicle.pictures || selectedVehicle?.pictures?.length === 0 ? (\n \n ) : (\n pic.isDefault)?.url ||\n selectedVehicle?.pictures[0].url\n }\n alt=\"vehicle\"\n />\n )}\n \n \n \n \n \n \n \n \n ) : (\n '-'\n )\n }\n dataLabelColor={COLORS.BLACK}\n isColumn\n />\n \n \n \n \n \n \n {addDriverModalOpen && (\n setAddDriverModalOpen(false)}\n />\n )}\n {addVehicleModalOpen && (\n setAddVehicleModalOpen(false)}\n />\n )}\n \n );\n};\n\nexport default DriverVehicleModal;\n","/* eslint-disable complexity */\n/* eslint-disable max-statements */\n/* eslint-disable max-lines-per-function */\nimport { Autocomplete, IconedData, ModalAction as Modal } from '@get-e/react-components';\nimport {\n Phone,\n Star,\n Badge,\n Face,\n DirectionsCar,\n Crop169,\n StarsOutlined,\n ColorLens,\n Bookmark,\n Add,\n InfoOutlined,\n} from '@mui/icons-material';\nimport { Box, Grid, Typography, useMediaQuery, Stepper, Step, StepLabel } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useContext, useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useParams } from 'react-router-dom';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport {\n ADD_DRIVER_AND_VEHICLE_SKIP,\n SINGLE_RIDE_ADD_DRIVER_AND_VEHICLE_STEP_ONE,\n SINGLE_RIDE_ADD_DRIVER_AND_VEHICLE_STEP_TWO,\n SINGLE_RIDE_DRIVER_UNASSIGN,\n} from '../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../../context/NotificationContext';\nimport theme from '../../../../styles/theme';\nimport { addDriver, useDrivers } from '../../../drivers/api';\nimport { AddDriverRequest, Driver } from '../../../drivers/api/types';\nimport { unassignDriverFromRide } from '../../../rides/supplier/api';\nimport { useDriverVehicles, useVehicle, useVehicles } from '../../../vehicles/api';\nimport { Photo, Vehicle } from '../../../vehicles/api/types';\nimport { getColorOption } from '../../../vehicles/colorOptions';\nimport ColorCircle from '../../../vehicles/colorOptions/ColorCircle';\nimport AddVehicleModal from '../../../vehicles/components/AddVehicleModal';\nimport SmallVehicleImage from '../../../vehicles/components/SmallVehicleImage';\nimport { assignVehicleAndDriver } from '../../api';\nimport { RideContext } from '../context/RideContext';\nimport { ADD_DRIVER_ID, DEAFULT_ADD_DRIVER_BUTTON_OPTION } from '../hooks/useSupplierDriverInformation';\nimport AddDriverModal from './AddDriverModal';\n\nconst useStyles = makeStyles(styleTheme => ({\n stepperDriverVehicleModal: {\n '& .MuiDialog-container .MuiPaper-root': { maxWidth: '600px' },\n [styleTheme.breakpoints.up('md')]: {\n '& .MuiDialogActions-root': {\n '& .MuiContainer-root': {\n flexDirection: 'row',\n '& > div:first-of-type': {\n display: 'flex',\n flexDirection: 'row',\n '& button': {\n marginRight: '1rem',\n },\n },\n '& > button.MuiButtonBase-root:last-child': {\n minWidth: '100px',\n },\n },\n },\n },\n [styleTheme.breakpoints.down('md')]: {\n '& .MuiDialogActions-root': {\n '& .MuiContainer-root': {\n flexDirection: 'column',\n alignItems: 'center',\n width: '100%',\n '& > div:first-of-type': {\n display: 'flex',\n flexDirection: 'column',\n width: '270px !important',\n '& button': {\n width: '270px !important',\n margin: '0.5rem 0',\n marginRight: '0 !important',\n },\n },\n '& > button.MuiButtonBase-root:last-child': {\n width: '270px !important',\n marginTop: '0.75rem',\n },\n },\n },\n },\n },\n modalButtonsContainer: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n padding: '0',\n },\n formField: {\n marginBottom: '1.25rem',\n width: '100%',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n modalContent: {\n minHeight: '300px',\n },\n addNewContainer: {\n borderTop: `1px solid ${COLORS.DARK_GRAY}`,\n padding: '.75rem 1rem',\n cursor: 'pointer',\n '&:hover': { backgroundColor: COLORS.LIGHT_GRAY },\n },\n addNew: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n color: COLORS.BLACK_50,\n },\n button: {\n marginRight: '1rem',\n border: `1px solid ${COLORS.BLUE}`,\n color: COLORS.BLUE,\n fontSize: '13px',\n marginTop: '1rem',\n marginBottom: '0.5rem',\n },\n driverOptionContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-start',\n color: COLORS.SLATE_GREY,\n padding: '.75rem 1rem',\n '&:hover': { backgroundColor: COLORS.LIGHT_GRAY },\n cursor: 'pointer',\n },\n entityInfo: {\n display: 'flex',\n alignItems: 'flex-start',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n flexWrap: 'nowrap',\n padding: '1rem',\n height: 'auto',\n },\n entityImage: {\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '8px',\n backgroundColor: COLORS.EXTRA_LIGHT_GRAY,\n width: '88px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '88px',\n marginRight: '1rem',\n flexShrink: 0,\n '& .MuiSvgIcon-root': {\n fontSize: '2.3rem',\n color: COLORS.DARK_GRAY,\n },\n },\n entityContent: {\n flex: 1,\n minWidth: 0,\n overflow: 'hidden',\n },\n starIcon: {\n fontSize: '1.25rem',\n marginRight: '0.2rem',\n },\n image: {\n width: '100%',\n height: '100%',\n borderRadius: '8px',\n },\n smallPhoto: {\n width: '30px',\n height: '30px',\n marginRight: '1rem',\n },\n vehicleOption: {\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n padding: '.75rem 1rem',\n '&:hover': { backgroundColor: COLORS.LIGHT_GRAY },\n },\n notification: {\n padding: '1rem 1.3rem',\n backgroundColor: COLORS.LIGHT_BLUE_INFO,\n marginBottom: '2rem',\n display: 'flex',\n alignItems: 'center',\n borderRadius: '.25rem',\n color: COLORS.WHITE,\n },\n infoIcon: {\n color: COLORS.WHITE,\n marginRight: '.7rem',\n },\n stepper: {\n marginBottom: '2rem',\n },\n}));\n\nconst StepperDriverVehicleModal = ({\n isModalOpen,\n initialDriver,\n initialVehicle,\n onClose,\n isRidesOverview,\n driverVehicleId,\n rideDataId,\n rideStatus,\n}) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const { showNotification } = useNotificationContext();\n const { rideId }: { rideId: string } = useParams();\n const { amplitudeEventProperties } = useContext(RideContext);\n\n const [activeStep, setActiveStep] = useState(0);\n const steps = [t('modals.driverAndVehicle.vehicleAssignment'), t('modals.driverAndVehicle.driverAssignment')];\n\n const [driverSearchPhrase, setDriverSearchPhrase] = useState('');\n const [selectedDriver, setSelectedDriver] = useState(initialDriver ? { ...initialDriver } : null);\n const [driverError, setDriverError] = useState('');\n const [vehicleSearchPhrase, setVehicleSearchPhrase] = useState('');\n const [selectedVehicle, setSelectedVehicle] = useState(initialVehicle ? { ...initialVehicle } : null);\n const [addDriverModalOpen, setAddDriverModalOpen] = useState(false);\n const [addVehicleModalOpen, setAddVehicleModalOpen] = useState(false);\n const [initialVehicleStateSet, setInitialVehicleStateSet] = useState(false);\n\n const { data: drivers } = useDrivers(driverSearchPhrase);\n const { data: vehicles, refetch: refetchVehicles } = useVehicles(vehicleSearchPhrase, 500);\n const { data: driverVehicles = [] } = useDriverVehicles(selectedDriver?.id);\n const { data: vehicleData } = useVehicle(isRidesOverview ? driverVehicleId : null, '');\n\n const driverOptions = useMemo(() => drivers.filter(driver => !driver.isDeactivated), [drivers]);\n\n const vehicleOptions = useMemo(\n () =>\n vehicles\n .filter(vehicle => !vehicle.isArchived)\n .map(vcl => ({\n ...vcl,\n color: getColorOption(vcl.color || ''),\n })),\n [vehicles]\n );\n\n const driverVehicleOptions = useMemo(() => driverVehicles?.filter(vehicle => !vehicle.isArchived), [driverVehicles]);\n\n useEffect(() => {\n if (initialVehicle) {\n setSelectedVehicle(initialVehicle);\n }\n }, [initialVehicle]);\n\n useEffect(() => {\n if (initialDriver) {\n setSelectedDriver(initialDriver);\n }\n }, [initialDriver]);\n\n useEffect(() => {\n if (isRidesOverview && driverVehicleId && !initialVehicleStateSet && vehicleData) {\n setSelectedVehicle(vehicleData);\n setInitialVehicleStateSet(true);\n }\n }, [vehicleData, isRidesOverview, driverVehicleId, initialVehicleStateSet]);\n\n useEffect(() => {\n if (isModalOpen && activeStep === 0) {\n logAmplitudeEvent(SINGLE_RIDE_ADD_DRIVER_AND_VEHICLE_STEP_ONE, amplitudeEventProperties);\n }\n }, [isModalOpen, amplitudeEventProperties, activeStep]);\n\n const handleNext = () => {\n setActiveStep(1);\n logAmplitudeEvent(SINGLE_RIDE_ADD_DRIVER_AND_VEHICLE_STEP_TWO, amplitudeEventProperties);\n };\n\n const handleBack = () => {\n setActiveStep(0);\n logAmplitudeEvent(SINGLE_RIDE_ADD_DRIVER_AND_VEHICLE_STEP_ONE, amplitudeEventProperties);\n };\n\n const handleSkip = async () => {\n logAmplitudeEvent(ADD_DRIVER_AND_VEHICLE_SKIP, amplitudeEventProperties);\n\n if (activeStep === 0) {\n setSelectedVehicle(null);\n setActiveStep(1);\n return;\n }\n\n if (selectedVehicle) {\n await handleSubmit();\n return;\n }\n\n onClose();\n };\n\n const handleSubmit = async () => {\n if (!selectedDriver) {\n await handleUnassignDriver();\n return;\n }\n\n try {\n await assignVehicleAndDriver(isRidesOverview ? rideDataId || '' : rideId, {\n driverId: selectedDriver?.id,\n vehicleId: selectedVehicle ? selectedVehicle?.id : null,\n });\n\n showNotification(t('alert.edit.success'), Severity.Info);\n } catch (error: unknown) {\n if (error && typeof error === 'object' && 'response' in error) {\n const apiError = error as { response?: { data?: { message?: string } } };\n\n showNotification(apiError.response?.data?.message || t('errors.defaultError'), Severity.Error);\n } else {\n showNotification(t('errors.defaultError'), Severity.Error);\n }\n } finally {\n onClose();\n }\n };\n\n const handleAddDriver = async (newDriver: AddDriverRequest) => {\n try {\n const response = await addDriver(newDriver);\n\n setSelectedDriver(response.data);\n showNotification(t('pages.drivers.driverSuccessfullyCreated'), Severity.Info);\n } catch (error: unknown) {\n if (error && typeof error === 'object' && 'response' in error) {\n const apiError = error as { response?: { data?: { message?: string } } };\n\n showNotification(apiError.response?.data?.message || t('errors.defaultError'), Severity.Error);\n } else {\n showNotification(t('errors.defaultError'), Severity.Error);\n }\n } finally {\n onClose();\n }\n };\n\n const handleAddVehicle = async (id: number) => {\n const refetchedVehicles = await refetchVehicles();\n const vehicle = refetchedVehicles.data?.find(veh => veh.id === id);\n\n if (vehicle) {\n setSelectedVehicle(vehicle);\n }\n\n setAddVehicleModalOpen(false);\n };\n\n const handleUnassignDriver = async () => {\n try {\n await unassignDriverFromRide(isRidesOverview ? rideDataId || '' : rideId);\n showNotification(t('alert.edit.successRemoveDriver'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_UNASSIGN, amplitudeEventProperties);\n onClose?.();\n } catch (error) {\n showNotification(t('alert.driverUnassignError'), Severity.Error);\n }\n };\n\n const renderVehicleStep = () => (\n \n option.id === value.id}\n componentsProps={{\n popper: {\n modifiers: [\n {\n name: 'flip',\n enabled: false,\n },\n {\n name: 'preventOverflow',\n enabled: false,\n },\n ],\n },\n }}\n options={\n !vehicleSearchPhrase && driverVehicleOptions.length > 0 && selectedDriver\n ? driverVehicleOptions\n : vehicleOptions\n }\n getOptionLabel={option => {\n if (option.id === -1) {\n return '';\n }\n\n return `${option.licensePlate} ${option.brand?.name || ''} ${option.model?.name || ''}`;\n }}\n filterOptions={(options: Vehicle[]) => {\n const found = options.some(el => el.id === -1);\n\n if (!found) {\n options.push({\n id: -1,\n licensePlate: '',\n identifier: '',\n brand: {\n name: '',\n id: -1,\n },\n color: '',\n model: {\n name: '',\n id: -1,\n },\n status: '',\n pictures: [],\n isArchived: false,\n });\n }\n\n return options;\n }}\n renderOption={(prop, option) => {\n if (option.id === -1) {\n return (\n {\n setAddVehicleModalOpen(true);\n setSelectedVehicle(null);\n }}\n >\n \n <>{t('buttonName.addNew')}\n <>\n \n \n \n \n );\n }\n\n const photo = option.pictures?.find(picture => picture.isDefault) || option.pictures?.[0];\n\n return (\n \n \n \n \n \n {option.licensePlate}\n \n \n {option.brand?.name || ''} {option.model?.name || ''}\n \n \n );\n }}\n value={selectedVehicle}\n onChange={(_, newValue) => {\n setSelectedVehicle(newValue);\n }}\n className={classes.formField}\n inputValue={vehicleSearchPhrase}\n onInputChange={(_, newInputValue) => {\n setVehicleSearchPhrase(newInputValue);\n }}\n />\n\n \n \n {!selectedVehicle || !selectedVehicle.pictures || selectedVehicle?.pictures?.length === 0 ? (\n \n ) : (\n pic.isDefault)?.url ||\n selectedVehicle?.pictures[0].url\n }\n alt=\"vehicle\"\n />\n )}\n \n \n \n \n \n \n \n : '-'}\n dataLabelColor={COLORS.BLACK}\n isColumn\n />\n \n \n \n \n \n );\n\n const renderDriverStep = () => (\n \n option.name}\n getOptionKey={(option: Driver) => option.id}\n isOptionEqualToValue={(option, value) => option.id === value.id}\n filterOptions={options => {\n const found = options.some(el => el.id === ADD_DRIVER_ID);\n\n if (!found) {\n options.push(DEAFULT_ADD_DRIVER_BUTTON_OPTION);\n }\n\n return options;\n }}\n renderOption={(prop, option) => {\n const averageRate = option.feedbacks?.averageRate ? option.feedbacks?.averageRate.toFixed(1).toString() : '';\n\n const count = option.feedbacks?.count ?? '';\n\n if (option.id === ADD_DRIVER_ID) {\n return (\n {\n setAddDriverModalOpen(true);\n setSelectedDriver(null);\n }}\n >\n \n <>{t('buttonName.addNew')}\n \n \n \n );\n }\n\n return (\n \n \n \n \n \n {option.name} ({option.phoneNumber})\n \n \n {averageRate}\n \n {count !== '' && count !== 0 && (\n <>\n \n ({option.feedbacks?.count})\n \n )}\n \n );\n }}\n value={selectedDriver}\n onChange={(_, newValue) => {\n setSelectedDriver(newValue);\n setDriverError('');\n }}\n required\n className={classes.formField}\n inputValue={driverSearchPhrase}\n onInputChange={(_, newInputValue) => {\n setDriverSearchPhrase(newInputValue);\n setDriverError('');\n }}\n isError={driverError !== ''}\n helperText={driverError ? t(driverError) : ''}\n />\n\n \n \n {!selectedDriver || !selectedDriver?.pictureUrl ? (\n \n ) : (\n \"driver\"\n )}\n \n \n \n \n \n \n \n );\n\n return (\n \n \n \n \n {steps.map(label => (\n \n {label}\n \n ))}\n \n \n\n \n {selectedDriver && selectedVehicle && rideStatus === 'TO_CONFIRM' && (\n \n \n {t('modals.driverAndVehicle.autoConfirmWarning')}\n \n )}\n \n\n {activeStep === 0 ? renderVehicleStep() : renderDriverStep()}\n \n\n {addDriverModalOpen && (\n setAddDriverModalOpen(false)}\n />\n )}\n {addVehicleModalOpen && (\n setAddVehicleModalOpen(false)}\n />\n )}\n \n );\n};\n\nexport default StepperDriverVehicleModal;\n","/* eslint-disable complexity */\nimport { SecondaryButton, IconedData } from '@get-e/react-components';\nimport {\n Badge,\n Phone,\n ReceiptLong,\n Star,\n Crop169,\n ColorLens,\n Bookmark,\n StarsOutlined,\n Face,\n DirectionsCar,\n} from '@mui/icons-material';\nimport { Box, Grid, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useParams } from 'react-router-dom';\n\nimport { COLORS } from '../../../../constants/colors';\nimport ReferencesAndRemarksModal from '../../../rides/supplier/components/ReferencesAndRemarksModal';\nimport { useRideVehicle } from '../../../vehicles/api';\nimport { Photo } from '../../../vehicles/api/types';\nimport { ColorOption } from '../../../vehicles/colorOptions';\nimport ColorCircle from '../../../vehicles/colorOptions/ColorCircle';\nimport LightBoxPortal from '../../../vehicles/components/LightBoxPortal';\nimport { RideResponse } from '../../api/types';\nimport withExpandable from '../../components/withExpandable';\nimport DriverVehicleModal from './DriverVehicleModal';\nimport StepperDriverVehicleModal from './StepperDriverVehicleModal';\n\nconst useStyles = makeStyles({\n driverInformationContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n padding: '1rem',\n position: 'relative',\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n heading: {\n marginBottom: '0',\n color: COLORS.BLUE,\n fontSize: '1rem',\n fontWeight: 700,\n },\n button: {\n marginRight: '1rem',\n border: `1px solid ${COLORS.BLUE}`,\n color: COLORS.BLUE,\n width: '105px !important',\n fontSize: '13px',\n marginTop: '1rem',\n marginBottom: '0.5rem',\n },\n manageButton: {\n border: `1px solid ${COLORS.BLUE}`,\n color: COLORS.BLUE,\n width: '105px !important',\n fontSize: '13px !important',\n height: '37px !important',\n },\n image: {\n width: '85px',\n height: '80px',\n borderRadius: '4px',\n marginTop: '1.3rem',\n cursor: 'pointer',\n '&:hover': {\n opacity: '0.8',\n },\n },\n informationContainer: {\n display: 'flex',\n justifyContent: 'flex-start',\n },\n entityImage: {\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '4px',\n backgroundColor: COLORS.EXTRA_LIGHT_GRAY,\n width: '85px',\n minWidth: '85px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '80px',\n marginTop: '1.3rem',\n '& .MuiSvgIcon-root': {\n fontSize: '2.3rem',\n color: COLORS.DARK_GRAY,\n },\n },\n sectionSeparator: {\n marginTop: '1.5rem',\n marginBottom: '0.5rem',\n },\n});\n\ninterface DriverReferencesCardProps {\n data?: RideResponse;\n refetch?: () => void;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n isCustomerPage?: boolean;\n}\n\nconst DriverReferencesCard = ({ data, refetch, renderChevrons, isExpanded, isCustomerPage }: DriverReferencesCardProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const { rideId }: { rideId: string } = useParams();\n const isLargeScreen = useMediaQuery('(max-width:1470px)');\n const [isRemarksModalOpen, setIsRemarksModalOpen] = useState(false);\n const [isDriverVehicleModalOpen, setIsDriverVehicleModalOpen] = useState(false);\n const [isVehicleViewerOpen, setVehicleViewerOpen] = useState(false);\n const [isDriverViewerOpen, setDriverViewerOpen] = useState(false);\n const { data: vehicle, refetch: refetchVehicle } = useRideVehicle(rideId);\n const vehiclePreviewImageUrl = vehicle?.pictures?.find((pic: Photo) => pic.isDefault)?.url || vehicle?.pictures[0]?.url;\n const { useVehicleCustomerPage, useDriverPictureCustomer, newFrontendExperience } = useFlags();\n const isShowingVehicleFlag = isCustomerPage ? useVehicleCustomerPage : true;\n const isDriverShown = isCustomerPage ? useDriverPictureCustomer : true;\n const isFlowC = newFrontendExperience === 'FLOW_C';\n\n useEffect(() => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n refetchVehicle();\n }, [data, refetchVehicle]);\n\n const renderVehicleInfo = () => {\n if (!isShowingVehicleFlag) {\n return null;\n }\n\n return (\n <>\n {!isFlowC && (\n \n {t('vehicleInformation')}\n \n )}\n \n {vehicle?.pictures && vehicle?.pictures?.length > 0 ? (\n setVehicleViewerOpen(true)}\n className={classes.image}\n src={vehiclePreviewImageUrl}\n alt=\"vehicle\"\n />\n ) : (\n \n \n \n )}\n \n \n \n \n \n \n \n ) : (\n '-'\n )\n }\n dataLabelColor={COLORS.BLACK}\n isColumn\n bottomMargin=\"1rem\"\n fontSize=\".75rem\"\n fontTextSize=\"1rem\"\n dataLabelBold={false}\n iconSize=\"1.25rem\"\n />\n {!isCustomerPage && (\n \n )}\n \n \n \n \n );\n };\n\n const renderDriverInfo = () => {\n return (\n <>\n \n {data?.driver?.pictureUrl && isDriverShown ? (\n setDriverViewerOpen(true)}\n />\n ) : (\n \n \n \n )}\n \n \n \n \n {Boolean(data?.driver?.feedbacks) && (\n \n \n {(data?.driver?.feedbacks?.averageRate ?? 0).toFixed(1)}\n \n \n \n {`(${data?.driver?.feedbacks?.count ?? 0} ${t('reviews').toLowerCase()})`}\n \n \n )}\n \n \n \n \n \n \n \n \n );\n };\n\n const renderReferencesAndRemarks = () => {\n if (isCustomerPage) {\n return null;\n }\n\n return (\n \n \n \n {t('pages.singleRide.referenceAndRemarks')}\n \n \n\n \n\n {data?.customFields?.map(field => (\n \n ))}\n {\n setIsRemarksModalOpen(true);\n }}\n className={classes.button}\n >\n {data?.supplierReference === null ? t('buttonName.add') : t('buttonName.update')}\n \n \n );\n };\n\n return (\n \n \n \n {!isFlowC && (\n \n {t('pages.singleRide.driverInformation.title')}\n \n )}\n {renderChevrons}\n \n\n {isExpanded && (\n <>\n {isFlowC ? (\n <>\n {!isCustomerPage && (\n {renderReferencesAndRemarks()}\n )}\n\n \n {t('pages.singleRide.vehicleAndDriverInformation')}\n \n {renderVehicleInfo()}\n {data?.driver && {renderDriverInfo()}}\n \n ) : (\n <>\n {renderDriverInfo()}\n\n {isShowingVehicleFlag && (\n \n {renderVehicleInfo()}\n \n )}\n \n )}\n\n setVehicleViewerOpen(false)}\n images={vehicle?.pictures?.map(pic => pic.url) || []}\n />\n\n {data?.driver?.pictureUrl && (\n setDriverViewerOpen(false)}\n images={[data.driver.pictureUrl]}\n />\n )}\n\n {!isCustomerPage && (\n \n {\n setIsDriverVehicleModalOpen(true);\n }}\n className={classes.button}\n >\n {vehicle ? t('buttonName.update') : t('buttonName.add')}\n \n \n )}\n \n )}\n \n\n {isExpanded && !isCustomerPage && !isFlowC && (\n <>\n {renderReferencesAndRemarks()}\n\n {isRemarksModalOpen && (\n setIsRemarksModalOpen(false)}\n onFinished={() => {\n setIsRemarksModalOpen(false);\n refetch?.();\n }}\n supplierReference={data?.supplierReference || undefined}\n />\n )}\n\n {isDriverVehicleModalOpen &&\n (isFlowC ? (\n {\n refetch?.();\n setIsDriverVehicleModalOpen(false);\n }}\n isRidesOverview={false}\n driverVehicleId={data?.driverVehicleId || null}\n rideDataId={data?.unid || ''}\n />\n ) : (\n {\n refetch?.();\n setIsDriverVehicleModalOpen(false);\n }}\n />\n ))}\n \n )}\n\n {isExpanded && !isCustomerPage && isFlowC && (\n <>\n {isRemarksModalOpen && (\n setIsRemarksModalOpen(false)}\n onFinished={() => {\n setIsRemarksModalOpen(false);\n refetch?.();\n }}\n supplierReference={data?.supplierReference || undefined}\n />\n )}\n {isDriverVehicleModalOpen && (\n {\n refetch?.();\n setIsDriverVehicleModalOpen(false);\n }}\n isRidesOverview={false}\n driverVehicleId={data?.driverVehicleId || null}\n rideDataId={data?.unid || ''}\n />\n )}\n \n )}\n \n );\n};\n\nexport default withExpandable(DriverReferencesCard);\n","import { useQuery } from 'react-query';\n\nimport { USE_FLIGHT } from '../../../../constants/queryKeys';\nimport apiClient from '../../../../services/api';\nimport { getFlightInfoRoute } from '../../../../services/routes';\nimport { FlightDetailsNew } from '../../../rides/api/types';\n\nexport function useFlight(rideId: string) {\n const {\n data: flightDetails,\n isLoading,\n isError,\n refetch,\n } = useQuery([USE_FLIGHT + rideId], () => getFlightInfo(rideId), {\n keepPreviousData: true,\n refetchOnWindowFocus: false,\n retry: 1,\n cacheTime: 500,\n });\n\n return {\n flightDetails,\n isLoading,\n isError,\n refetch,\n };\n}\n\nexport const getFlightInfo = async (id: string): Promise => {\n const { data } = await apiClient.get(getFlightInfoRoute(id));\n\n return data;\n};\n","/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/init-declarations */\n/* eslint-disable max-lines-per-function */\n/* eslint-disable max-statements */\n/* eslint-disable @typescript-eslint/no-floating-promises */\n/* eslint-disable complexity */\nimport { SecondaryButton, IconedData } from '@get-e/react-components';\nimport DownloadOutlinedIcon from '@mui/icons-material/DownloadOutlined';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport ReceiptLongOutlinedIcon from '@mui/icons-material/ReceiptLongOutlined';\nimport { Grid, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport { zonedTimeToUtc } from 'date-fns-tz';\nimport dayjs from 'dayjs';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport _ from 'lodash';\nimport React, { useState, useEffect, useMemo, useRef } from 'react';\nimport TagManager from 'react-gtm-module';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\nimport { useParams } from 'react-router';\nimport { useHistory } from 'react-router-dom';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport PageActionButton from '../../../components/buttons/PageActionButton';\nimport { BOOKING_SOURCE } from '../../../constants';\nimport { EDIT_SINGLE_RIDE } from '../../../constants/amplitude/commonKeys';\nimport {\n CONFIRM_UPDATE,\n DONWLOAD_DOCUMENTATION,\n RIDE_INFORMATION_FLIGHT_TRACKING,\n SEND_CONFIRMATION,\n UPDATE_RIDE,\n} from '../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { getSingleRideRoute } from '../../../constants/urlPaths';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { getDateTimeWithoutOffset } from '../../../helpers/getDateTimeWithoutOffset';\nimport { mapRideToContext } from '../../../helpers/maps/mapRideToContext';\nimport { RideStatus, getRideStatusKey } from '../../../helpers/rideStatusUtil';\nimport { PrimaryTimeZone } from '../../../services/types';\nimport theme from '../../../styles/theme';\nimport { FlightDetails, LocationType, Passenger } from '../../rides/api/types';\nimport StatusBadge from '../../rides/components/StatusBadge';\nimport downloadBookingConfirmation from '../../rides/customer/api/downloadBookingConfirmation';\nimport downloadReceipt from '../../rides/customer/api/downloadReceipt';\nimport { CustomFieldItem, PAYMENT_METHOD, RideAmplitudeEventProperties } from '../api/types';\nimport { useRide } from '../api/useRide';\nimport LeavePageModal from '../components/LeavePageModal';\nimport { PassengerList } from '../components/passengerInformation/PassengerList';\nimport { Ride as RideType } from '../components/RideInformation';\nimport SendBookingConfirmationModal, { BookingConfirmationEmail } from '../components/SendBookingConfirmationModal';\nimport { Traveller } from '../components/travellerInformation/TravellerInformation';\nimport ChangeFlightNumber from '../components/updateRide/ChangeFlightNumber';\nimport ChangeReferences, { ReferenceField } from '../components/updateRide/ChangeReferences';\nimport ChangeRideInformation from '../components/updateRide/ChangeRideInformation';\nimport VehicleOptions from '../components/updateRide/VehicleOptions';\nimport UpdateRideConfirmModal from '../components/UpdateRideConfirmModal';\nimport { Vehicle } from '../components/VehicleInformationCards';\nimport { updateFlightNumber, updateRideInformation, updateRideVehicle, updateTravellerInformation } from './api';\nimport { useAvailabilites } from './api/useAvailabilites';\nimport { useFlightSearch } from './api/useFlightSearch';\nimport CarsAutomatedUpdatesNotification from './components/CarsAutomatedUpdatesNotification';\nimport RideLoadingSkeleton from './components/rideLoadingSkeleton/RideLoadingSkeleton';\nimport RideMap from './components/RideMap';\nimport { NewRideContext, RideMapType } from './context/RideContext';\nimport useNewRideInformation from './hooks/useNewRideInformation';\nimport usePassengerInformation from './hooks/usePassengerInformation';\nimport useReferences from './hooks/useReferences';\n\nconst useStyles = makeStyles(styleTheme => ({\n mainWrapper: {\n alignItems: 'center',\n padding: '0 2rem',\n [styleTheme.breakpoints.down('md')]: { padding: '0' },\n },\n header: {\n backgroundColor: COLORS.WHITE,\n display: 'flex',\n flexDirection: 'column',\n },\n headerTitleWrapper: {\n marginBottom: '2rem',\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [styleTheme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: '.5rem !important',\n fontSize: '1.2rem',\n [styleTheme.breakpoints.up('md')]: { marginBottom: 0 },\n },\n headerText: {\n fontSize: '1.5rem',\n fontWeight: 700,\n paddingRight: '1rem',\n color: COLORS.BLUE,\n [styleTheme.breakpoints.down('md')]: { fontSize: '1.2rem' },\n },\n updateButton: { marginRight: '1rem' },\n buttons: {\n width: '150px',\n [styleTheme.breakpoints.down('md')]: {\n width: 'auto',\n fontSize: '13px',\n height: '40px',\n marginTop: '1rem',\n },\n },\n downloadOptions: {\n display: 'flex',\n flexDirection: 'row',\n [styleTheme.breakpoints.down('md')]: { flexDirection: 'column' },\n },\n}));\n\nconst REFETCH_VEHICLE_LIST_TIMEOUT_MS = 400;\nlet refetchVehicleListTimeoutId: NodeJS.Timeout | undefined;\n\nconst getLeadPassenger = (passengers: Passenger[]) => passengers.filter(passenger => passenger.isLead)[0];\n\nexport const CUSTOM_FIELD_KEY = 'customField';\n\nconst UpdateRide = () => {\n const [isTypingFlightNumberFinished, setIsTypingFlightNumberFinished] = useState(false);\n const [isVehicleNotSelected, setIsVehicleNotSelected] = useState(false);\n const [isCheckingAvailabileVehicleList, setIsCheckingAvailabileVehicleList] = useState(false);\n const [isUpdateRideModalOpen, setIsUpdateRideModalOpen] = useState(false);\n const [isSendBookingConfirmationModalOpen, setIsSendBookingConfirmationModalOpen] = useState(false);\n const classes = useStyles();\n const { t } = useTranslation();\n const { rideId }: { rideId: string } = useParams();\n const { showNotification } = useNotificationContext();\n const { data, isLoading } = useRide(rideId);\n const initialRideValues = useRef(null);\n const initialVehicleValues = useRef(null);\n const initialTravellerValues = useRef(null);\n const initialReferenceValues = useRef(null);\n const initialFlight = useRef(null);\n const [flightNumber, setFlightNumber] = useState('');\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { currentProfile: currentUser } = useCurrentProfileContext();\n const [isUtc, setIsUtc] = useState(currentUser.primaryTimeZone === PrimaryTimeZone.UTC);\n const whatIsChanged = useRef>();\n const isPageOpened = useRef(false);\n const [selectedVehicle, setSelectedVehicle] = useState(null);\n const [isLeavingBack, setIsLeavingBack] = useState(false);\n const history = useHistory();\n const { useManagedByCars } = useFlags();\n\n const { rideValues, setRideValues, rideErrors, setRideErrors, flightDetails, setFlightDetails, validateRideFields } =\n useNewRideInformation(isUtc);\n\n const { referencesValues, setReferencesValues, referencesErrors, setReferencesErrors, validateReferencesFields } =\n useReferences();\n\n const { passengerValues, setPassengerValues, passengerErrors, setPassengerErrors, validatePassengerFields } =\n usePassengerInformation();\n\n const { mutate: downloadBookingConfirmationMutation, isLoading: isDownloadingBookingConfirmation } =\n useMutation(downloadBookingConfirmation);\n\n const { mutate: downloadReceiptMutation, isLoading: isDownloadingReceipt } = useMutation(downloadReceipt);\n\n const { mutate: updateRideInformationMutation, isLoading: isUpdatingRideInformation } = useMutation(updateRideInformation, {\n onSuccess: () => {\n showNotification(t('alert.edit.success'), Severity.Info);\n goToRides();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n });\n\n const { mutate: updateTravellerInformationMutation, isLoading: isUpdatingTravellers } = useMutation(\n updateTravellerInformation,\n {\n onSuccess: () => {\n showNotification(t('alert.edit.success'), Severity.Info);\n goToRides();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n }\n );\n\n const { mutate: updateFlightNumberMutation, isLoading: isUpdatingFlightNumber } = useMutation(updateFlightNumber, {\n onSuccess: () => {\n showNotification(t('alert.edit.success'), Severity.Info);\n goToRides();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n });\n\n const goToRides = () => history.push(getSingleRideRoute(rideId));\n\n const checkVehicleAfterRefetchAvailabilites = () => {\n if (selectedVehicle && isCheckingAvailabileVehicleList) {\n const { id, carId, ...restSelectedVehicle } = selectedVehicle;\n\n const vehicleExists = vehicleList.some(obj => {\n const { id: vehicleItemId, ...restObj } = obj;\n\n if (JSON.stringify(restSelectedVehicle) === JSON.stringify(restObj)) {\n selectedVehicle.id = isPickupDateDirty() || isLocationDirty() ? vehicleItemId : rideId;\n\n return true;\n }\n\n return false;\n });\n\n if (vehicleExists) {\n setSelectedVehicle(selectedVehicle);\n\n setIsCheckingAvailabileVehicleList(false);\n } else if (initialVehicleValues.current === selectedVehicle && !isPickupDateDirty() && !isLocationDirty()) {\n // Check is this okey\n setSelectedVehicle(selectedVehicle);\n setIsVehicleNotSelected(false);\n setIsCheckingAvailabileVehicleList(false);\n } else {\n setSelectedVehicle(null);\n setIsVehicleNotSelected(!isVehicleNotSelected);\n\n setIsCheckingAvailabileVehicleList(false);\n }\n }\n };\n\n const {\n vehicleList,\n newEstimateDistanceAndDuration,\n refetch: refetchAvailabileVehicleList,\n isLoading: isLoadingAvailabilites,\n isRefetching: isRefetchingAvailabilites,\n isFetched: areAvailabilitesFetched,\n } = useAvailabilites({\n pickup: {\n transferPoint: {\n id: rideValues.pickUpLocation?.id ?? '',\n type: rideValues.pickUpLocation?.type.toUpperCase() ?? '',\n },\n pickupTimeZulu: isUtc ? dayjs(rideValues.pickUpTime).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']) : '',\n pickupTime: isUtc ? '' : dayjs(rideValues.pickUpTimeLocal).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n },\n dropOff: {\n transferPoint: {\n id: rideValues.dropOffLocation?.id ?? '',\n type: rideValues.dropOffLocation?.type.toUpperCase() ?? '',\n },\n },\n numberOfPassengers: parseInt(rideValues.travellers),\n numberOfBags: parseInt(rideValues.luggages),\n });\n\n useEffect(() => {\n if (areAvailabilitesFetched && isCheckingAvailabileVehicleList && !isRefetchingAvailabilites) {\n checkVehicleAfterRefetchAvailabilites();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isCheckingAvailabileVehicleList, areAvailabilitesFetched, isRefetchingAvailabilites]);\n\n const isPickupDateDirty = () => {\n if (!initialRideValues.current) {\n return false;\n }\n\n if (isUtc) {\n return (\n initialRideValues.current.pickUpDate !== rideValues.pickUpDate ||\n initialRideValues.current.pickUpTime !== rideValues.pickUpTime\n );\n }\n\n return (\n initialRideValues.current.pickUpDateLocal !== rideValues.pickUpDateLocal ||\n initialRideValues.current.pickUpTimeLocal !== rideValues.pickUpTimeLocal\n );\n };\n\n const isLocationDirty = () => {\n if (!initialRideValues.current) {\n return false;\n }\n\n return (\n initialRideValues.current.pickUpLocation?.name !== rideValues.pickUpLocation?.name ||\n initialRideValues.current.dropOffLocation?.name !== rideValues.dropOffLocation?.name\n );\n };\n\n // The logic for this calculation is described in the ticket TP-1336\n const searchFlightDate = useMemo(\n () => {\n let timeZone = '';\n let flightDate: Date | null = null;\n\n const rideDuration = newEstimateDistanceAndDuration?.durationInSeconds ?? 0;\n\n if (rideValues.pickUpLocation?.type === LocationType.AIRPORT) {\n timeZone = rideValues.pickUpLocation?.timeZone ?? '';\n flightDate = isUtc ? rideValues.pickUpDate : rideValues.pickUpDateLocal;\n } else if (rideValues.dropOffLocation?.type === LocationType.AIRPORT) {\n timeZone = rideValues.dropOffLocation?.timeZone ?? '';\n\n if (isPickupDateDirty()) {\n flightDate = isUtc ? rideValues.pickUpDate : rideValues.pickUpDateLocal;\n flightDate = dayjs(flightDate).add(rideDuration, 'seconds').toDate();\n } else {\n flightDate = isUtc ? rideValues.dropOffDate : rideValues.dropOffDateLocal;\n }\n }\n\n if (isUtc && timeZone && flightDate) {\n return dayjs(zonedTimeToUtc(flightDate, timeZone)).format(DATE_FORMATS['YYYY-MM-DD']);\n }\n\n return dayjs(flightDate).format(DATE_FORMATS['YYYY-MM-DD']);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n isUtc,\n rideValues.pickUpDate,\n rideValues.pickUpDateLocal,\n rideValues.dropOffDate,\n rideValues.dropOffDateLocal,\n rideValues.pickUpLocation?.timeZone,\n rideValues.pickUpLocation?.type,\n rideValues.dropOffLocation?.timeZone,\n rideValues.dropOffLocation?.type,\n newEstimateDistanceAndDuration?.durationInSeconds,\n ]\n );\n\n const {\n flightDetails: flightSearchDetails,\n refetch: refetchFlightDetails,\n isLoading: isLoadingFlight,\n isError: isErrorFlight,\n } = useFlightSearch(flightNumber ?? '', searchFlightDate);\n\n const { mutate: updateVehicleMutation, isLoading: isUpdatingVehicle } = useMutation(updateRideVehicle, {\n onSuccess: () => {\n showNotification(t('alert.edit.successVehicleChange'), Severity.Info);\n goToRides();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n });\n\n const rideAmplitudeEventProperties = useMemo(() => {\n return {\n 'Ride number': data?.prettifiedUnid,\n 'Ride created time': dayjs.utc(data?.createdAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride pickup time': dayjs.utc(data?.pickUp.departAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride customer': data?.customer,\n 'Ride supplier': data?.supplier,\n 'Ride status': data?.status,\n 'Ride situation tags': data?.situationTag,\n 'Ride qc status': data?.qcStatus,\n 'Ride has driver': Boolean(data?.driver),\n } as RideAmplitudeEventProperties;\n }, [\n data?.createdAt,\n data?.customer,\n data?.driver,\n data?.pickUp.departAt,\n data?.prettifiedUnid,\n data?.qcStatus,\n data?.situationTag,\n data?.status,\n data?.supplier,\n ]);\n\n useEffect(() => {\n if (!data || isLoading) {\n return;\n }\n\n const leadPassenger = getLeadPassenger(data.passengers);\n const passengerFullName = leadPassenger ? `${leadPassenger.firstName} ${leadPassenger.lastName}` : '';\n\n const tagManagerArgs = {\n dataLayer: {\n name: currentUser?.fullName ?? null,\n email: currentUser?.email ?? null,\n accountType: currentUser?.accountType,\n rideNumber: data.unid,\n passengerName: passengerFullName,\n },\n };\n\n TagManager.dataLayer(tagManagerArgs);\n\n const newRideValues = {\n ...rideValues,\n flightNumber: data?.flightDetails?.number ?? '',\n flightDetails: data?.flightDetails ?? ({} as FlightDetails),\n id: data?.unid ?? '',\n pickUpDate: getDateTimeWithoutOffset(data?.pickUp?.departAt),\n pickUpTime: getDateTimeWithoutOffset(data?.pickUp?.departAt),\n pickUpDateLocal: getDateTimeWithoutOffset(data?.pickUp?.departAtLocal),\n pickUpTimeLocal: getDateTimeWithoutOffset(data?.pickUp?.departAtLocal),\n dropOffDate: getDateTimeWithoutOffset(data?.dropOff?.arriveAt),\n dropOffDateLocal: getDateTimeWithoutOffset(data?.dropOff?.arriveAtLocal),\n travellers: data?.numberOfPassengers?.toString() ?? '',\n luggages: data?.numberOfBags?.toString() ?? '',\n specialRequest: data?.specialRequest ?? '',\n pickUpLocation: {\n id: data?.pickUp?.location?.id ?? '',\n name: data?.pickUp?.location?.name ?? '',\n address: data?.pickUp?.location?.address ?? '',\n type: data?.pickUp?.location?.type ?? '',\n latitude: data?.pickUp?.location?.coordinates?.lat ?? 0,\n longitude: data?.pickUp?.location?.coordinates?.lon ?? 0,\n timeZone: data?.pickUp?.departureTimeZone ?? '',\n },\n dropOffLocation: {\n id: data?.dropOff?.location?.id ?? '',\n name: data?.dropOff?.location?.name ?? '',\n address: data?.dropOff?.location?.address ?? '',\n type: data?.dropOff?.location?.type ?? '',\n latitude: data?.dropOff?.location?.coordinates?.lat ?? 0,\n longitude: data?.dropOff?.location?.coordinates?.lon ?? 0,\n timeZone: data?.dropOff?.arrivalTimeZone ?? '',\n },\n primaryTimeZone: currentUser?.primaryTimeZone ?? null,\n status: data?.status,\n } as unknown as RideType;\n\n setRideValues(newRideValues);\n setFlightNumber(data?.flightDetails?.number ?? '');\n setFlightDetails(prevDetails => ({\n ...prevDetails,\n ...(data?.flightDetails ?? {}),\n number: data?.flightDetails?.number ?? prevDetails.number ?? '',\n }));\n\n const newReferencesValues = {\n customReference: data?.customerReference ?? '',\n customFields: data?.customFields ?? [],\n };\n\n setReferencesValues(newReferencesValues);\n\n const defaultTravellers: Traveller[] = data\n ? data.passengers.map(({ id, ...rest }) => ({\n id: id.toString(),\n ...rest,\n }))\n : [];\n\n setPassengerValues(defaultTravellers);\n\n const newVehicleValues = {\n id: data?.unid ?? '',\n vehicleClass: data?.vehicle.class,\n vehicleType: data?.vehicle?.type ?? '',\n vehicleImage: data?.vehicle?.imageUrl ?? '',\n travellers: data?.vehicle?.seats?.toString() ?? '',\n luggages: data?.vehicle?.luggage?.toString() ?? '',\n price: data?.price?.amount ?? 0,\n priceCurrency: data?.price?.isoCurrency ?? '',\n };\n\n setSelectedVehicle(newVehicleValues);\n\n const updatedErrorsValues = defaultTravellers.map(traveller => ({\n ...traveller,\n id: traveller.id,\n firstName: null,\n lastName: null,\n email: null,\n phone: null,\n }));\n\n setPassengerErrors(updatedErrorsValues);\n\n initialRideValues.current = newRideValues;\n initialFlight.current = data?.flightDetails?.number ?? '';\n initialVehicleValues.current = newVehicleValues;\n initialTravellerValues.current = defaultTravellers;\n initialReferenceValues.current = newReferencesValues;\n\n if (data?.flightDetails?.number) {\n setFlightNumber(data.flightDetails.number);\n setIsTypingFlightNumberFinished(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data, isLoading]);\n\n useEffect(() => {\n // Do not call flight search if pickup of dropoff location fields are dirty\n if (!isTypingFlightNumberFinished || isLocationDirty()) {\n return;\n }\n\n refetchFlightDetails();\n setIsTypingFlightNumberFinished(false);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isTypingFlightNumberFinished]);\n\n useEffect(() => {\n setFlightDetails(isErrorFlight ? ({} as FlightDetails) : (flightSearchDetails ?? ({} as FlightDetails)));\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [flightSearchDetails, isErrorFlight]);\n\n useEffect(() => {\n const isRideSetted = Boolean(rideValues.pickUpLocation?.id) && Boolean(rideValues.dropOffLocation?.id);\n\n if (isRideSetted) {\n clearTimeout(refetchVehicleListTimeoutId);\n\n refetchVehicleListTimeoutId = setTimeout(() => {\n refetchAvailabileVehicleList();\n setIsCheckingAvailabileVehicleList(true);\n }, REFETCH_VEHICLE_LIST_TIMEOUT_MS);\n }\n\n return () => clearTimeout(refetchVehicleListTimeoutId);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [rideValues]);\n\n useEffect(() => {\n if (\n rideValues.travellers !== data?.numberOfPassengers?.toString() ||\n rideValues.luggages !== data?.numberOfBags?.toString()\n ) {\n if (\n parseInt(rideValues.travellers) > parseInt(selectedVehicle?.travellers ?? '-1') ||\n parseInt(rideValues.luggages) > parseInt(selectedVehicle?.luggages ?? '-1')\n ) {\n clearTimeout(refetchVehicleListTimeoutId);\n refetchVehicleListTimeoutId = setTimeout(() => {\n refetchAvailabileVehicleList();\n setIsCheckingAvailabileVehicleList(true);\n }, REFETCH_VEHICLE_LIST_TIMEOUT_MS);\n }\n }\n\n return () => clearTimeout(refetchVehicleListTimeoutId);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [rideValues.travellers, rideValues.luggages]);\n\n const areRideInformationValuesChanged = () => {\n const defaultValues = {\n travellers: data?.numberOfPassengers?.toString() ?? '',\n luggages: data?.numberOfBags?.toString() ?? '',\n specialRequest: data?.specialRequest ?? '',\n customReference: data?.customerReference ?? '',\n customFields: data?.customFields ?? '',\n };\n\n const currentValues = {\n travellers: rideValues.travellers,\n luggages: rideValues.luggages,\n specialRequest: rideValues.specialRequest,\n customReference: referencesValues.customReference,\n customFields: referencesValues.customFields,\n };\n\n return JSON.stringify(defaultValues) !== JSON.stringify(currentValues);\n };\n\n const areTravellerInformationValuesChanged = () => {\n const defaultPassengers = data?.passengers.map(({ id, ...keepAttrs }) => keepAttrs);\n const changedTravellerValues = passengerValues.map(({ id, ...keepAttrs }) => keepAttrs);\n\n return JSON.stringify(defaultPassengers) !== JSON.stringify(changedTravellerValues);\n };\n\n function handleUpdateRideInformation() {\n if (areRideInformationValuesChanged()) {\n const customFieldsPairs: CustomFieldItem[] = [];\n\n referencesValues.customFields.forEach(customField => customFieldsPairs.push([customField.key, customField.value]));\n const customFields = customFieldsPairs.length > 0 ? Object.fromEntries(new Map(customFieldsPairs)) : null;\n\n updateRideInformationMutation({\n id: rideId,\n payload: {\n numberOfPassengers: parseInt(rideValues.travellers),\n numberOfBags: parseInt(rideValues.luggages),\n customerReference: referencesValues.customReference,\n specialRequest: rideValues.specialRequest,\n customFields,\n },\n });\n }\n }\n\n function handleUpdateTravellerInformation() {\n if (areTravellerInformationValuesChanged()) {\n updateTravellerInformationMutation({\n id: rideId,\n payload: passengerValues.map(({ id, ...keepAttrs }) => keepAttrs),\n });\n }\n }\n\n function handleUpdateFlightNumber() {\n const defaultFlightNumber = data?.flightDetails?.number ?? '';\n const defaultPickUpDate = getDateTimeWithoutOffset(data?.pickUp?.departAtLocal ?? '');\n\n if (defaultFlightNumber !== flightNumber && defaultPickUpDate !== rideValues.pickUpDate) {\n updateFlightNumberMutation({\n id: rideId,\n payload: {\n flightNumber: flightNumber ?? '',\n departureDate: dayjs(isUtc ? rideValues.pickUpDate : rideValues.pickUpDateLocal).format(\n DATE_FORMATS['YYYY-MM-DD']\n ),\n },\n });\n }\n }\n\n const onUpdateHandler = () => {\n /*\n * If user click on other vehicle (change default selected vehicle), then send carId, in opposite send id from vehicleListe\n * const carId = selectedVehicle?.id === rideValues?.id ? (selectedVehicle?.carId ?? '') : (selectedVehicle?.id ?? '');\n */\n\n /*\n * Initial selectedVehicleId === rideValues.id ( rideNumber )\n *\n * Update vehicle - swap estimate options if there was change in vehicle selection\n */\n if (!selectedVehicle) {\n setIsVehicleNotSelected(true);\n setIsUpdateRideModalOpen(false);\n showNotification(t('errors.missingProvideRequiredInformation'), Severity.Error);\n return;\n }\n\n if (selectedVehicle?.id !== rideValues?.id && selectedVehicle !== null) {\n updateVehicleMutation({\n rideId: rideValues.id,\n carId: selectedVehicle?.id,\n });\n }\n\n handleUpdateTravellerInformation();\n handleUpdateFlightNumber();\n handleUpdateRideInformation();\n\n setIsUpdateRideModalOpen(false);\n setIsCheckingAvailabileVehicleList(false);\n\n logAmplitudeEvent(CONFIRM_UPDATE, rideAmplitudeEventProperties);\n };\n\n const validateFields = () => {\n const fieldsValid = validatePassengerFields() && validateRideFields() && validateReferencesFields();\n\n if (!selectedVehicle) {\n setIsVehicleNotSelected(true);\n showNotification(t('errors.selectVehicle'), Severity.Error);\n return false;\n }\n\n return fieldsValid;\n };\n\n const handleRideUpdate = () => {\n if (validateFields()) {\n setIsUpdateRideModalOpen(true);\n\n logAmplitudeEvent(UPDATE_RIDE, rideAmplitudeEventProperties);\n }\n };\n\n const handleFlightNumberFinishing = () => {\n setIsTypingFlightNumberFinished(true);\n\n if (initialFlight?.current !== flightNumber) {\n logAmplitudeEvent(RIDE_INFORMATION_FLIGHT_TRACKING, rideAmplitudeEventProperties);\n }\n };\n\n const initialBookingConfirmationEmails: BookingConfirmationEmail[] = passengerValues.map(traveller => ({\n id: traveller.email,\n email: traveller.email,\n isIncluded: traveller.isLead,\n }));\n\n const isTravellerUpdated = () => {\n const initialTravellerKeys = initialTravellerValues.current?.map(\n traveller => traveller.firstName + traveller.lastName + traveller.email + traveller.phone + traveller.isLead\n );\n\n const currentTravellerKeys = passengerValues.map(\n traveller => traveller.firstName + traveller.lastName + traveller.email + traveller.phone + traveller.isLead\n );\n\n return !_.isEqual(initialTravellerKeys, currentTravellerKeys);\n };\n\n const checkWhatIsChanging = () => {\n if (!initialRideValues.current) {\n return;\n }\n\n const changedCustomFields: string[] = [];\n\n initialReferenceValues?.current?.customFields.forEach(customField => {\n const currentCustomField = referencesValues.customFields.filter(field => field.id === customField.id)[0];\n\n if (JSON.stringify(customField) !== JSON.stringify(currentCustomField)) {\n changedCustomFields.push(customField.label);\n }\n });\n\n const changes = new Map();\n\n changes.set('pickUpLocation', initialRideValues.current.pickUpLocation?.name !== rideValues.pickUpLocation?.name);\n changes.set('dropOffLocation', initialRideValues.current.dropOffLocation?.name !== rideValues.dropOffLocation?.name);\n changes.set('pickUpDate', initialRideValues.current.pickUpDate !== rideValues.pickUpDate);\n changes.set('pickUpTime', initialRideValues.current.pickUpTime !== rideValues.pickUpTime);\n changes.set('pickUpDateLocal', initialRideValues.current.pickUpDateLocal !== rideValues.pickUpDateLocal);\n changes.set('pickUpTimeLocal', initialRideValues.current.pickUpTimeLocal !== rideValues.pickUpTimeLocal);\n changes.set('travellers', initialRideValues.current.travellers !== rideValues.travellers);\n changes.set('luggages', initialRideValues.current.luggages !== rideValues.luggages);\n changes.set('flightNumber', initialFlight?.current !== flightNumber);\n changes.set('specialRequest', initialRideValues.current.specialRequest !== rideValues.specialRequest);\n changes.set('customReference', initialReferenceValues?.current?.customReference !== referencesValues.customReference);\n changes.set('vehicle', initialVehicleValues.current?.id !== selectedVehicle?.id);\n changes.set('passengerInformation', isTravellerUpdated());\n changedCustomFields.forEach(changedCustomField => {\n changes.set(changedCustomField, CUSTOM_FIELD_KEY);\n });\n whatIsChanged.current = changes;\n };\n\n const isUpdatedDisabled = useMemo(() => {\n if (!initialRideValues.current || !vehicleList || !selectedVehicle || !initialReferenceValues.current) {\n return true;\n }\n\n if (\n initialRideValues.current.pickUpLocation?.name !== rideValues.pickUpLocation?.name ||\n initialRideValues.current.dropOffLocation?.name !== rideValues.dropOffLocation?.name ||\n initialRideValues.current.pickUpDate !== rideValues.pickUpDate ||\n initialRideValues.current.pickUpTime !== rideValues.pickUpTime ||\n initialRideValues.current.pickUpDateLocal !== rideValues.pickUpDateLocal ||\n initialRideValues.current.pickUpTimeLocal !== rideValues.pickUpTimeLocal ||\n initialRideValues.current.travellers !== rideValues.travellers ||\n initialRideValues.current.luggages !== rideValues.luggages ||\n initialFlight.current !== flightNumber ||\n initialRideValues.current.specialRequest !== rideValues.specialRequest ||\n initialReferenceValues.current.customReference !== referencesValues.customReference ||\n JSON.stringify(initialReferenceValues.current.customFields) !== JSON.stringify(referencesValues.customFields) ||\n initialVehicleValues.current?.id !== selectedVehicle?.id ||\n isTravellerUpdated()\n ) {\n checkWhatIsChanging();\n return false;\n }\n\n return true;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [rideValues, selectedVehicle, passengerValues, referencesValues, flightNumber]);\n\n if (!data || isLoading) {\n return ;\n }\n\n if (!isPageOpened.current) {\n isPageOpened.current = true;\n logAmplitudeEvent(EDIT_SINGLE_RIDE, rideAmplitudeEventProperties);\n }\n\n return (\n <>\n \n {useManagedByCars && data?.isManagedByApi && data?.source === BOOKING_SOURCE.CARS && (\n \n )}\n\n \n \n \n \n \n \n {t('ride')} {data?.prettifiedUnid}\n \n \n \n \n {\n setIsSendBookingConfirmationModalOpen(true);\n\n logAmplitudeEvent(SEND_CONFIRMATION, rideAmplitudeEventProperties);\n }}\n fontSize=\".75rem\"\n iconSize=\"1.25rem\"\n iconRightMargin=\".2rem\"\n />\n {\n downloadBookingConfirmationMutation({\n unid: data.unid,\n prettifiedUnid: data.prettifiedUnid,\n });\n\n logAmplitudeEvent(DONWLOAD_DOCUMENTATION, rideAmplitudeEventProperties);\n }}\n fontSize=\".75rem\"\n iconSize=\"1.25rem\"\n iconRightMargin=\".2rem\"\n />\n {data?.paymentMethod === PAYMENT_METHOD.CREDIT_CARD &&\n (data?.status === getRideStatusKey(RideStatus.CONFIRMED) ||\n data?.status === getRideStatusKey(RideStatus.COMPLETED)) && (\n {\n downloadReceiptMutation({\n unid: data.unid,\n prettifiedUnid: data.prettifiedUnid,\n });\n }}\n fontSize=\".75rem\"\n iconSize=\"1.25rem\"\n iconRightMargin=\".2rem\"\n />\n )}\n \n \n \n \n {t('pages.singleRide.update')}\n \n {\n isUpdatedDisabled ? goToRides() : setIsLeavingBack(true);\n }}\n className={classes.buttons}\n >\n Back\n \n \n \n \n \n \n \n \n \n {isMobile && (\n setIsVehicleNotSelected(false)}\n isLoading={isLoadingAvailabilites || isRefetchingAvailabilites}\n maxPassengers={parseInt(rideValues.travellers)}\n />\n )}\n \n \n \n \n {data && (\n \n \n {!isMobile && (\n setIsVehicleNotSelected(false)}\n isLoading={isLoadingAvailabilites || isRefetchingAvailabilites}\n maxPassengers={parseInt(rideValues.travellers)}\n />\n )}\n \n )}\n \n \n \n {isUpdateRideModalOpen && (\n setIsUpdateRideModalOpen(false)}\n onConfirm={onUpdateHandler}\n changes={whatIsChanged.current}\n isLoading={isUpdatingRideInformation || isUpdatingVehicle || isUpdatingTravellers || isUpdatingFlightNumber}\n isSystemAutomatedRide={data?.isManagedByApi && data?.source === BOOKING_SOURCE.CARS}\n isIgnoredByCars={data?.isIgnoredByCars}\n />\n )}\n {isSendBookingConfirmationModalOpen && (\n setIsSendBookingConfirmationModalOpen(false)}\n rideId={rideId}\n />\n )}\n {isLeavingBack && setIsLeavingBack(false)} onConfirm={goToRides} />}\n \n );\n};\n\nexport default UpdateRide;\n","import { COLORS } from '../../../../constants/colors';\n\nexport enum FlightStatus {\n NOT_TRACKED = 'NOT_TRACKED',\n SCHEDULED = 'SCHEDULED',\n DEPARTING_ON_TIME = 'DEPARTING_ON_TIME',\n DEPARTING_EARLY = 'DEPARTING_EARLY',\n DEPARTING_LATE = 'DEPARTING_LATE',\n CANCELLED = 'CANCELLED',\n ON_TIME = 'ON_TIME',\n EXPECTED_EARLY = 'EXPECTED_EARLY',\n EXPECTED_LATE = 'EXPECTED_LATE',\n DIVERTED = 'DIVERTED',\n LOST_TRACKING = 'LOST_TRACKING',\n ARRIVED = 'ARRIVED',\n ARRIVED_LATE = 'ARRIVED_LATE',\n ARRIVED_EARLY = 'ARRIVED_EARLY',\n}\n\nexport const FlightStatusColor = {\n NOT_TRACKED: COLORS.SLATE_GREY,\n SCHEDULED: COLORS.SLATE_GREY,\n DEPARTING_ON_TIME: COLORS.GREEN_TEXT,\n DEPARTING_EARLY: COLORS.ORANGE_WARNING,\n DEPARTING_LATE: COLORS.ORANGE_WARNING,\n CANCELLED: COLORS.RED_WARNING,\n ON_TIME: COLORS.GREEN_TEXT,\n EXPECTED_EARLY: COLORS.ORANGE_WARNING,\n EXPECTED_LATE: COLORS.ORANGE_WARNING,\n DIVERTED: COLORS.RED_WARNING,\n LOST_TRACKING: COLORS.ORANGE_WARNING,\n ARRIVED: COLORS.GREEN_TEXT,\n ARRIVED_LATE: COLORS.ORANGE_WARNING,\n ARRIVED_EARLY: COLORS.ORANGE_WARNING,\n} as {\n [key in keyof typeof FlightStatus]: keyof typeof COLORS;\n};\n\nexport const FlightStatusBorderColor = {\n NOT_TRACKED: COLORS.SLATE_GREY,\n SCHEDULED: COLORS.SLATE_GREY,\n DEPARTING_ON_TIME: COLORS.GREEN_TEXT,\n DEPARTING_EARLY: COLORS.ORANGE_WARNING,\n DEPARTING_LATE: COLORS.ORANGE_WARNING,\n CANCELLED: COLORS.LIGHT_RED,\n ON_TIME: COLORS.GREEN_TEXT,\n EXPECTED_EARLY: COLORS.ORANGE_WARNING,\n EXPECTED_LATE: COLORS.ORANGE_WARNING,\n DIVERTED: COLORS.LIGHT_RED,\n LOST_TRACKING: COLORS.ORANGE_WARNING,\n ARRIVED: COLORS.GREEN_TEXT,\n ARRIVED_LATE: COLORS.ORANGE_WARNING,\n ARRIVED_EARLY: COLORS.ORANGE_WARNING,\n} as {\n [key in keyof typeof FlightStatus]: keyof typeof COLORS;\n};\n\nexport const FlightStatusBackgroundColor = {\n NOT_TRACKED: COLORS.WHITE,\n SCHEDULED: COLORS.WHITE,\n DEPARTING_ON_TIME: COLORS.WHITE,\n DEPARTING_EARLY: COLORS.WHITE,\n DEPARTING_LATE: COLORS.WHITE,\n CANCELLED: COLORS.LIGHT_RED,\n ON_TIME: COLORS.WHITE,\n EXPECTED_EARLY: COLORS.WHITE,\n EXPECTED_LATE: COLORS.WHITE,\n DIVERTED: COLORS.LIGHT_RED,\n LOST_TRACKING: COLORS.WHITE,\n ARRIVED: COLORS.WHITE,\n ARRIVED_LATE: COLORS.WHITE,\n ARRIVED_EARLY: COLORS.WHITE,\n} as {\n [key in keyof typeof FlightStatus]: keyof typeof COLORS;\n};\n\nexport const FlightStatusTooltip = {\n NOT_TRACKED: 'Flight status is not tracked',\n SCHEDULED: 'Flight is scheduled',\n DEPARTING_ON_TIME: 'Departing on time',\n DEPARTING_EARLY: 'Departing earlier than scheduled',\n DEPARTING_LATE: 'The flight is delayed on departure',\n CANCELLED: 'The flight has been cancelled',\n ON_TIME: 'Flight is on time',\n EXPECTED_EARLY: 'Expected to arrive early',\n EXPECTED_LATE: 'Expected to arrive late',\n DIVERTED: 'Flight has been diverted',\n LOST_TRACKING: 'Flight tracking has been lost',\n ARRIVED: 'Flight has arrived',\n ARRIVED_LATE: 'Flight has arrived late',\n ARRIVED_EARLY: 'Flight has arrived early',\n} as {\n [key in keyof typeof FlightStatus]: string;\n};\n\nexport const getFlightStatusColor = (status: keyof typeof FlightStatus) => FlightStatusColor[status];\n\nexport const getFlightStatusBorderColor = (status: keyof typeof FlightStatus) => FlightStatusBorderColor[status];\n\nexport const getFlightStatusBackgroundColor = (status: keyof typeof FlightStatus) => FlightStatusBackgroundColor[status];\n\nexport const getFlightStatusKeyName = (value: string): keyof typeof FlightStatus => {\n return Object.entries(FlightStatus).find(([_, val]) => val === value)?.[0] as keyof typeof FlightStatus;\n};\n\nexport const getFlightStatusTooltip = (status: keyof typeof FlightStatus) => FlightStatusTooltip[status];\n","import { Typography, Box } from '@mui/material';\nimport dayjs from 'dayjs';\nimport React, { useMemo } from 'react';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { TIME_FORMATS } from '../../../../constants/timeFormats';\nimport { FlightStatus } from '../helpers/flightStatusUtil';\n\ninterface FlightStatusDateTimeProps {\n status?: FlightStatus;\n flightTimes: {\n delayed: string;\n scheduled: string;\n delayedUTC: string;\n scheduledUTC: string;\n };\n showUtcTime: boolean;\n}\n\nexport const FlightStatusDateTime = ({ status, flightTimes: flight, showUtcTime }: FlightStatusDateTimeProps) => {\n const color = useMemo(() => {\n if (\n !flight?.delayed &&\n (status === FlightStatus.ARRIVED || status === FlightStatus.ON_TIME || status === FlightStatus.DEPARTING_ON_TIME)\n ) {\n return COLORS.GREEN;\n }\n\n return COLORS.SLATE_GREY;\n }, [status, flight?.delayed]);\n\n const scheduledFlightTimeStyle = useMemo(() => {\n return {\n textDecoration: flight?.delayed || status === FlightStatus.CANCELLED ? 'line-through' : 'none',\n color,\n fontWeight: flight?.delayed || status === FlightStatus.CANCELLED ? 400 : 600,\n fontSize: flight?.delayed && status !== FlightStatus.CANCELLED ? '0.75rem' : '',\n };\n }, [color, status, flight?.delayed]);\n\n const getTimeColor = (flightStatus?: FlightStatus): string => {\n switch (flightStatus) {\n case FlightStatus.ARRIVED:\n case FlightStatus.ON_TIME:\n case FlightStatus.DEPARTING_ON_TIME:\n return COLORS.GREEN_TEXT;\n case FlightStatus.DEPARTING_LATE:\n case FlightStatus.DEPARTING_EARLY:\n case FlightStatus.ARRIVED_EARLY:\n case FlightStatus.ARRIVED_LATE:\n case FlightStatus.EXPECTED_EARLY:\n case FlightStatus.EXPECTED_LATE:\n case FlightStatus.LOST_TRACKING:\n return COLORS.ORANGE_WARNING;\n default:\n return COLORS.BLACK;\n }\n };\n\n return (\n \n {flight?.delayed && status !== FlightStatus.CANCELLED && (\n \n {dayjs(!showUtcTime ? flight?.delayed : flight?.delayedUTC).format(TIME_FORMATS['HH:mm A'])}\n \n )}\n \n {dayjs(!showUtcTime ? flight?.scheduled : flight?.scheduledUTC).format(TIME_FORMATS['HH:mm A'])}\n \n \n );\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { FlightTakeoff, FlightLand } from '@mui/icons-material';\nimport { Grid, Box, Typography, Tooltip, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport dayjs from 'dayjs';\nimport React from 'react';\n\nimport { useTranslation } from 'react-i18next';\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { FlightStatus } from '../helpers/flightStatusUtil';\nimport { FlightStatusDateTime } from './FlightStatusDateTime';\n\nconst useStyles = makeStyles({\n dateTimeLabel: {\n display: 'flex',\n flexDirection: 'column',\n maxWidth: '100% !important',\n marginRight: '2rem',\n },\n dateTimeLabelMobile: { paddingBottom: '1rem' },\n arrivalInfoMobile: { marginTop: '2rem' },\n airportIata: {\n fontWeight: 700,\n marginLeft: '0.5rem',\n marginRight: '0.5rem',\n },\n flightInfoText: {\n color: COLORS.BLACK,\n fontSize: '1rem',\n lineHeight: '0.875rem',\n marginBottom: '0.5rem',\n marginTop: '0.5rem',\n },\n});\n\ninterface AirportDetailsCardProps {\n airportType: 'departure' | 'arrival';\n airportData: any;\n isLargeScreen: boolean;\n showUtcTime: boolean;\n status?: FlightStatus;\n}\n\nconst AirportDetailsCard = ({ airportType, airportData, isLargeScreen, status, showUtcTime }: AirportDetailsCardProps) => {\n const classes = useStyles();\n const isMobile = useMediaQuery('(max-width:600px)');\n const { t } = useTranslation();\n\n const icon =\n airportType === 'departure' ? (\n \n ) : (\n \n );\n\n const dateLabel = dayjs(airportData?.times?.scheduled).format(DATE_FORMATS['ddd Do MMM']);\n\n return (\n \n \n {icon}\n \n \n {airportData?.airportIata ?? ''} - {airportData?.airportCity ?? ''}\n \n \n \n • {dateLabel}\n \n \n \n \n \n {airportType === 'departure' ? 'Departure' : 'Arrival'}\n \n \n \n \n \n \n {t('pages.singleRide.flightInformation.terminal')}\n \n {airportData?.terminal || '-'}\n \n \n {t('pages.singleRide.flightInformation.gate')}\n {airportData?.gate || '-'}\n \n \n \n \n );\n};\n\nexport default AirportDetailsCard;\n","import { Box, Grid, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React from 'react';\n\nimport { COLORS } from '../../../../constants/colors';\n\nconst useStyles = makeStyles({\n iconContainer: {\n '& > svg': {\n fontSize: '2.3rem',\n color: COLORS.SLATE_GREY,\n },\n },\n});\n\ninterface NotTrackedComponentProps {\n headerText: string;\n description: string;\n icon: React.ReactElement;\n}\n\nconst FlightNotTrackedComponent = ({ headerText, description, icon }: NotTrackedComponentProps) => {\n const classes = useStyles();\n\n return (\n \n {icon}\n \n {headerText}\n \n {description}\n \n );\n};\n\nexport default FlightNotTrackedComponent;\n","import { Tooltip, Typography, Box } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport {\n getFlightStatusBackgroundColor,\n getFlightStatusKeyName,\n getFlightStatusTooltip,\n getFlightStatusColor,\n getFlightStatusBorderColor,\n} from '../helpers/flightStatusUtil';\n\ninterface StatusButtonStyleProps {\n variant: string;\n}\n\nconst useStyles = makeStyles({\n statusButton: ({ variant }: StatusButtonStyleProps) => ({\n padding: '0.25rem 0.5rem !important',\n borderRadius: '4px',\n marginLeft: '0.5rem',\n color: getFlightStatusColor(getFlightStatusKeyName(variant)),\n border: `1px solid ${getFlightStatusBorderColor(getFlightStatusKeyName(variant))}`,\n backgroundColor: getFlightStatusBackgroundColor(getFlightStatusKeyName(variant)),\n }),\n textButton: {\n fontSize: '.75rem',\n lineHeight: '.9rem',\n },\n});\n\ninterface StatusButtonProps {\n variant: string;\n className?: string;\n}\n\nexport const FlightStatusButton = ({ variant, className }: StatusButtonProps) => {\n const classes = useStyles({ variant });\n const tooltip = getFlightStatusTooltip(getFlightStatusKeyName(variant));\n const { t } = useTranslation();\n\n return (\n \n \n \n {variant !== '' ? t(`pages.singleRide.flightInformation.statuses.${variant}`) : ''}\n \n \n \n );\n};\n\nexport default FlightStatusButton;\n","import { Spinner } from '@get-e/react-components';\nimport { AirplanemodeActive, AirplanemodeInactive, Language } from '@mui/icons-material';\nimport { Card, CardContent, Grid, Typography, Box, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport dayjs from 'dayjs';\nimport React from 'react';\n\nimport { useTranslation } from 'react-i18next';\nimport { COLORS } from '../../../../constants/colors';\nimport withExpandable from '../../components/withExpandable';\nimport { useFlight } from '../api/useFlight';\nimport { FlightStatus } from '../helpers/flightStatusUtil';\nimport AirportDetails from './AirportDetails';\nimport FlightNotTrackedComponent from './FlightNotTrackedComponent';\nimport FlightStatusButton from './FlightStatusButton';\n\nconst useStyles = makeStyles({\n cardContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n position: 'relative',\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n utcSwitch: {\n display: 'flex',\n justifyContent: 'space-between',\n flexDirection: 'row',\n alignItems: 'baseline',\n '& label': {\n marginLeft: 0,\n marginRight: 0,\n },\n },\n heading: {\n marginBottom: '0',\n color: COLORS.BLUE,\n fontSize: '1rem',\n fontWeight: 700,\n },\n titleHeader: {\n color: COLORS.BLACK,\n fontWeight: 700,\n },\n infoContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n infoContainerMobile: {\n display: 'flex',\n flexDirection: 'column',\n },\n arrivalInfoMobile: { marginTop: '2rem' },\n spinner: {\n display: 'flex',\n justifyContent: 'center',\n },\n bottomText: {\n color: COLORS.SLATE_GREY,\n fontSize: '0.75rem',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n marginTop: '1rem',\n },\n googleLink: {\n cursor: 'pointer',\n '& > svg': {\n marginRight: '0.25rem',\n fontSize: '0.875rem',\n },\n },\n planeIcon: {\n color: COLORS.SLATE_GREY,\n marginRight: '0.5rem',\n fontSize: '1.3rem',\n },\n loaderCardContent: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n height: '200px',\n },\n});\n\ninterface FlightInformationCardProps {\n rideId: string;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n showUtcTime: boolean;\n}\n\nconst FlightInformationCard = ({ rideId, renderChevrons, isExpanded, showUtcTime }: FlightInformationCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isLargeScreen = useMediaQuery('(min-width:1400px)');\n const { flightDetails, isLoading, isError } = useFlight(rideId);\n\n const handleGoogleLinkClick = () => {\n if (!flightDetails?.flightNumber) {\n return;\n }\n\n const query = encodeURIComponent(flightDetails?.flightNumber || '');\n const url = `https://www.google.com/search?q=Flight ${query}`;\n\n window.open(url, '_blank');\n };\n\n const notTracked = () => {\n return flightDetails?.flightStatus === FlightStatus.NOT_TRACKED;\n };\n\n if (isLoading) {\n return (\n \n \n \n \n \n );\n }\n\n if (isError || (Array.isArray(flightDetails) && flightDetails.length === 0)) {\n return null;\n }\n\n return (\n \n \n \n \n \n {t('pages.singleRide.flightInformation.title')}\n \n {renderChevrons}\n \n {isExpanded && (\n \n \n {!notTracked() && (\n \n \n \n {flightDetails?.flightNumber}\n \n \n \n )}\n \n \n )}\n\n {isExpanded &&\n (notTracked() ? (\n }\n headerText={`${t('pages.singleRide.flightInformation.couldntReturnUpdate')}\n ${flightDetails?.flightNumber ? ` (${flightDetails?.flightNumber})` : ''}`}\n description={t('pages.singleRide.flightInformation.checkOtherSources')}\n />\n ) : (\n \n \n \n \n ))}\n\n {isExpanded && (\n \n \n {t('pages.singleRide.flightInformation.lastUpdate')}:{' '}\n {notTracked()\n ? t('pages.singleRide.flightInformation.never')\n : dayjs(flightDetails?.updatedAtUTC).fromNow()}\n \n \n {t('pages.singleRide.flightInformation.searchOnGoogle')}\n \n \n )}\n \n \n \n );\n};\n\nexport default withExpandable(FlightInformationCard);\n","import { Grid, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { RideResponse } from '../../api/types';\nimport withExpandable from '../../components/withExpandable';\n\nconst useStyles = makeStyles({\n meetingInstructionsContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n padding: '1rem',\n position: 'relative',\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n heading: {\n marginBottom: '0',\n color: COLORS.BLUE,\n fontSize: '1rem',\n fontWeight: 700,\n },\n});\n\ninterface MeetingInstructionsCardProps {\n data?: RideResponse;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n}\n\nconst MeetingInstructionsCard = ({ data, isExpanded, renderChevrons }: MeetingInstructionsCardProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n\n return (\n \n \n \n {t('pages.singleRide.meetingInstructions.title')}\n \n {renderChevrons}\n \n {isExpanded && (\n \n {data?.pickupDescription}\n \n )}\n \n );\n};\n\nexport default withExpandable(MeetingInstructionsCard);\n","import { IconedData } from '@get-e/react-components';\nimport { Hail, ReceiptLong } from '@mui/icons-material';\nimport { Grid, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { Passenger, RideResponse } from '../../api/types';\nimport withExpandable from '../../components/withExpandable';\n\nconst useStyles = makeStyles({\n passengerInfoContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n padding: '1rem',\n position: 'relative',\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n heading: {\n marginBottom: '0',\n color: COLORS.BLUE,\n fontSize: '1rem',\n fontWeight: 700,\n },\n passenger: { marginTop: '1rem' },\n});\n\ninterface PassengerInformationCardProps {\n data?: RideResponse;\n showClientInstructions?: boolean;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n}\n\nconst PassengerInformationCard = ({\n data,\n showClientInstructions,\n renderChevrons,\n isExpanded,\n}: PassengerInformationCardProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n\n return (\n \n \n \n {t('pages.singleRide.passengerInformation.title')}\n \n {renderChevrons}\n \n\n {isExpanded && (\n <>\n {data?.passengers.map((passenger: Passenger, index: number) => (\n 0 ? classes.passenger : undefined}\n marginTop={isExpanded ? '1rem' : 0}\n >\n \n \n {passenger.phone}\n \n \n ))}\n {showClientInstructions && (\n \n )}\n \n )}\n \n );\n};\n\nexport default withExpandable(PassengerInformationCard);\n","import { IconedData } from '@get-e/react-components';\nimport ReceiptLongIcon from '@mui/icons-material/ReceiptLong';\nimport { Grid, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { RideResponse } from '../../api/types';\nimport withExpandable from '../../components/withExpandable';\n\nconst useStyles = makeStyles({\n referencesContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n padding: '1rem',\n position: 'relative',\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n heading: {\n marginBottom: '0',\n color: COLORS.BLUE,\n fontSize: '1rem',\n fontWeight: 700,\n },\n});\n\ninterface ReferencesCardProps {\n data?: RideResponse;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n}\n\nconst ReferencesCard = ({ data, renderChevrons, isExpanded }: ReferencesCardProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n\n return (\n \n \n \n {t('pages.singleRide.references.title')}\n \n {renderChevrons}\n \n\n {isExpanded && (\n <>\n \n\n {data?.customFields?.map(field => (\n \n ))}\n \n )}\n \n );\n};\n\nexport default withExpandable(ReferencesCard);\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable complexity */\nimport { IconedData } from '@get-e/react-components';\nimport { Room, Person, Luggage, Help, CalendarToday, BookmarkAdd } from '@mui/icons-material';\nimport { Box, FormControlLabel, FormGroup, Grid, Link, SvgIcon, Switch, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport dayjs from 'dayjs';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport CopyToClipboardButton from '../../../../components/buttons/CopyToClipboardButton';\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { getDateTimeWithoutOffsetFormatted } from '../../../../helpers/getDateTimeWithoutOffset';\nimport metersToKmAndMiFormatted from '../../../../helpers/metersToKmAndMiFormatted';\nimport secondsToTimeFormatted from '../../../../helpers/secondsToTimeFormatted';\nimport { TrafficJamIcon } from '../../../../public/assets/icons';\nimport theme from '../../../../styles/theme';\nimport { Passenger, RideResponse } from '../../api/types';\nimport withExpandable from '../../components/withExpandable';\n\nconst useStyles = makeStyles(styleTheme => ({\n rideInfoContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n padding: '1rem',\n position: 'relative',\n },\n utcSwitch: {\n display: 'flex',\n justifyContent: 'space-between',\n flexDirection: 'row',\n alignItems: 'baseline',\n '& label': {\n marginLeft: 0,\n marginRight: 0,\n },\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n heading: {\n color: COLORS.BLUE,\n fontSize: '1rem',\n fontWeight: 700,\n marginBottom: 0,\n },\n contentContainer: {\n color: COLORS.SLATE_GREY,\n '& .MuiSvgIcon-root': {\n marginTop: '-0.1rem',\n marginRight: '0.5rem',\n },\n },\n pickupContent: {\n paddingLeft: '1.2rem',\n borderLeft: `2px solid ${COLORS.SLATE_GREY}`,\n marginLeft: '0.7rem',\n },\n dropoffContent: {\n marginTop: '0rem',\n paddingLeft: '2.1rem',\n },\n timeDateContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n marginTop: '1.5rem',\n [styleTheme.breakpoints.down('md')]: {\n flexDirection: 'column',\n alignItems: 'flex-start',\n },\n },\n modal: {\n border: 'none',\n padding: '0',\n marginBottom: '1.5rem',\n },\n}));\n\ninterface RideInformationCardProps {\n data?: RideResponse;\n showUtcSwitch: boolean;\n isInModal?: boolean;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n isSupplierPage?: boolean;\n showUtcTime: boolean;\n setShowUtcTime: (show: boolean) => void;\n}\n\nconst TrafficJamIconWrapper = () => (\n \n \n \n);\n\nconst getPassengersNamesList = (passengers: Passenger[]): string =>\n passengers.map(passenger => `${passenger.firstName} ${passenger.lastName}`).join(', ');\n\nconst RideInformationCard = ({\n data,\n showUtcSwitch,\n isInModal,\n renderChevrons,\n isExpanded,\n isSupplierPage,\n showUtcTime,\n setShowUtcTime,\n}: RideInformationCardProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const distance = useMemo(() => metersToKmAndMiFormatted(data?.distanceInMeters), [data?.distanceInMeters]);\n const time = useMemo(() => secondsToTimeFormatted(data?.durationInSeconds), [data?.durationInSeconds]);\n const { useManagedByCars, useConnectedTripsNotification } = useFlags();\n\n const passengerNames = getPassengersNamesList(data?.passengers || []);\n\n const pickUpDateAndTime = useMemo(() => {\n if (!data?.pickUp?.departAtLocal) {\n return '';\n }\n\n return getDateTimeWithoutOffsetFormatted(data?.pickUp?.departAtLocal || '', DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']);\n }, [data?.pickUp?.departAtLocal]);\n\n const getCopyToClipboardText = () => {\n return [\n `${t('ride')}: ${data?.prettifiedUnid}`,\n `${t('pages.singleRide.fields.pickUpDate')}: ${pickUpDateAndTime}`,\n `${t('pickUpLocation')}: ${data?.pickUp?.location.address}`,\n `${t('dropOffLocation')}: ${data?.dropOff?.location.address}`,\n `${t('specialRequest')}: ${data?.specialRequest}`,\n `${t('vehicleType')}: ${data?.vehicle?.type}`,\n `${t('numberOfPassengers')}: ${data?.numberOfPassengers}`,\n `${t('piecesOfLuggage')}: ${data?.numberOfBags}`,\n `${t('passengers')}: ${passengerNames}`,\n ].join('\\n');\n };\n\n return (\n \n \n \n {t('pages.singleRide.rideInformation.title')}\n {isSupplierPage && }\n \n {showUtcSwitch && isExpanded && (\n \n setShowUtcTime(!showUtcTime)} />}\n label={t('pages.singleRide.local')}\n labelPlacement=\"start\"\n />\n {t('pages.singleRide.utc')}\n \n )}\n {!isInModal && renderChevrons}\n \n {isExpanded && (\n \n {!isSupplierPage && (\n \n )}\n \n\n \n \n {data?.pickUp?.location?.name}\n {isSupplierPage && (\n \n )}\n \n {data?.pickUp?.location?.address}\n \n {distance} ({time})\n \n \n\n \n\n \n \n {data?.dropOff?.location?.name}\n {isSupplierPage && (\n \n )}\n \n {data?.dropOff?.location?.address}\n \n\n \n \n \n\n \n \n\n \n {useManagedByCars &&\n useConnectedTripsNotification &&\n data?.isManagedByApi &&\n Array.isArray(data?.connectedTrips) &&\n data?.connectedTrips.length > 0 && (\n (\n \n {\n window.open(`/rides/${trip.unid}`, '_blank');\n }}\n sx={{ cursor: 'pointer' }}\n >\n {trip.unid}\n \n {index !== data?.connectedTrips.length - 1 && <> | }\n \n ))}\n dataLabelColor={COLORS.BLACK}\n isColumn\n topMargin={isMobile ? '0.75rem' : '1.5rem'}\n fontSize=\".75rem\"\n fontTextSize=\"1rem\"\n dataLabelBold={false}\n iconSize=\"1.25rem\"\n />\n )}\n \n )}\n \n );\n};\n\nexport default withExpandable(RideInformationCard);\n","import { IconedData } from '@get-e/react-components';\nimport { AirlineSeatReclineExtra, Work, Check } from '@mui/icons-material';\nimport { Grid, Typography, Box, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport theme from '../../../../styles/theme';\nimport { RideResponse } from '../../api/types';\nimport { Vehicle } from '../../components/updateRide/VehicleOptions';\nimport withExpandable from '../../components/withExpandable';\n\nconst useStyles = makeStyles({\n image: {\n height: '62px',\n width: '182px',\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n heading: {\n color: COLORS.BLUE,\n fontSize: '1rem',\n fontWeight: 700,\n marginBottom: 0,\n },\n cardContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n padding: '1rem',\n position: 'relative',\n },\n});\n\nconst SelectIcon = () => {\n return (\n \n \n \n );\n};\n\ninterface SelectedVehicleCardProps {\n data?: RideResponse;\n isSelectedHeaderVisible?: boolean;\n isSelected?: boolean;\n isError?: boolean;\n onCardClick?: () => void;\n vehicle?: Vehicle;\n isPassengerOverMax?: boolean;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n}\n\nconst SelectedVehicleCard = ({\n data,\n isSelectedHeaderVisible,\n isSelected,\n isError,\n onCardClick,\n vehicle,\n isPassengerOverMax,\n renderChevrons,\n isExpanded,\n}: SelectedVehicleCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n const cardBorderStyle = isError ? `1px solid ${COLORS.RED}` : `1px solid ${COLORS.BLACK_12}`;\n\n return (\n \n {isSelectedHeaderVisible && (\n \n \n {t('pages.singleRide.selectedVehicle.title')}\n \n {renderChevrons}\n \n )}\n {isExpanded && (\n \n \n \n \n {vehicle?.vehicleClass\n ? `${vehicle?.vehicleClass} ${vehicle?.vehicleType}`\n : `${data?.vehicle?.class} ${data?.vehicle?.type}`}\n \n \n \n \n \n {isPassengerOverMax && (\n \n {t('pages.rides.maxCapacity')}\n \n )}\n \n \n {vehicle?.priceCurrency ? `${vehicle?.priceCurrency} ` : `${data?.price?.isoCurrency} `}\n {data ? data?.price?.amount?.toFixed(2) : vehicle?.price?.toFixed(2)}\n \n \n \n \n \"Vehicle\"\n \n \n {t('pages.singleRide.priceDescription')}\n \n {isSelected && SelectIcon()}\n \n \n )}\n \n );\n};\n\nexport default withExpandable(SelectedVehicleCard);\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Grid } from '@mui/material';\nimport clsx from 'clsx';\nimport dayjs from 'dayjs';\nimport React, { Fragment } from 'react';\n\nimport GoogleMap from '../../../../components/navigation/GoogleMap';\nimport { RideStatus, getRideStatusKey } from '../../../../helpers/rideStatusUtil';\nimport { RideResponse } from '../../api/types';\nimport CancellationPoliciesCard from '../../components/CancellationPoliciesCard';\nimport DriverReferencesCard from '../../supplier/components/DriverReferencesCard';\nimport FlightInformationCard from '../components/FlightInformationCard';\nimport MeetingInstructionsCard from '../components/MeetingInstructionsCard';\nimport PassengerInformationCard from '../components/PassengerInformationCard';\nimport ReferencesCard from '../components/ReferencesCard';\nimport ReviewRideCard from '../components/ReviewRideCard';\nimport RideInformationCard from '../components/RideInformationCard';\nimport SelectedVehicleCard from '../components/SelectedVehicleCard';\n\nexport const renderDesktopView = (\n data: RideResponse | undefined,\n classes: any,\n refetch: () => any,\n showUtcTime: boolean,\n setShowUtcTime: (show: boolean) => void\n) => {\n const defaultOrder = ['GoogleMap', 'SelectedVehicle', 'MeetingInstructions', 'DriverInformation', 'ReviewRide'];\n\n const componentOrder = {\n DRIVER_ON_THE_WAY: ['GoogleMap', 'DriverInformation', 'SelectedVehicle', 'MeetingInstructions', 'ReviewRide'],\n DRIVER_AT_PICKUP: ['GoogleMap', 'DriverInformation', 'SelectedVehicle', 'MeetingInstructions', 'ReviewRide'],\n PASSENGER_ON_BOARD: ['GoogleMap', 'DriverInformation', 'SelectedVehicle', 'MeetingInstructions', 'ReviewRide'],\n COMPLETED: ['GoogleMap', 'ReviewRide', 'SelectedVehicle', 'DriverInformation', 'MeetingInstructions'],\n };\n\n const currentOrder = componentOrder[data?.status || 'BOOKED'] || defaultOrder;\n\n const renderComponent = (component: string) => {\n switch (component) {\n case 'GoogleMap':\n return (\n \n \n \n );\n case 'SelectedVehicle':\n return (\n data?.vehicle && (\n \n \n \n )\n );\n case 'MeetingInstructions':\n return (\n data?.pickupDescription && (\n \n \n \n )\n );\n case 'DriverInformation':\n return (\n data?.driver && (\n \n \n \n )\n );\n case 'ReviewRide':\n return (\n data?.status === 'COMPLETED' &&\n Boolean(data?.feedbacks?.length) && (\n \n \n \n )\n );\n default:\n return null;\n }\n };\n\n return (\n <>\n \n \n \n \n \n \n \n {Boolean(data?.passengers?.length) && (\n \n \n \n )}\n \n \n \n {Boolean(data?.cancellationPolicies?.length) && (\n \n \n \n )}\n \n \n {currentOrder?.map((component: string) => {\n return {renderComponent(component)};\n })}\n \n \n );\n};\n\nexport const renderMobileView = (\n data: RideResponse | undefined,\n classes: any,\n refetch: () => any,\n showUtcTime: boolean,\n setShowUtcTime: (show: boolean) => void\n) => {\n return (\n <>\n \n \n \n \n \n \n \n {data?.status === getRideStatusKey(RideStatus.COMPLETED) && Boolean(data?.feedbacks?.length) && (\n \n \n \n )}\n {data?.vehicle && (\n \n \n \n )}\n \n \n \n {data?.pickupDescription && (\n \n \n \n )}\n {data?.driver && (\n \n \n \n )}\n {Boolean(data?.passengers?.length) && (\n \n \n \n )}\n \n \n \n {Boolean(data?.cancellationPolicies?.length) && (\n \n \n \n )}\n \n \n );\n};\n","import { useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useState } from 'react';\nimport { useParams } from 'react-router-dom';\n\nimport { COLORS } from '../../../constants/colors';\nimport theme from '../../../styles/theme';\nimport { useRide } from '../api/useRide';\nimport RideHeader from './components/RideHeader';\nimport RideViewLoadingSkeleton from './components/RideViewLoadingSkeleton';\nimport { renderDesktopView, renderMobileView } from './helpers/renderRideView';\n\nconst useStyles = makeStyles(styleTheme => ({\n contentContainer: {\n paddingLeft: '2rem',\n marginBottom: '0.5rem',\n [styleTheme.breakpoints.down('lg')]: { padding: '0' },\n },\n cancellationPolicies: {\n marginTop: '1.5rem',\n width: '96%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n padding: '1rem',\n marginLeft: '2rem',\n position: 'relative',\n [styleTheme.breakpoints.down('lg')]: {\n marginLeft: '0',\n width: '100%',\n },\n '& h4': { color: `${COLORS.BLUE} !important` },\n },\n googleMapContainer: {\n height: '20rem',\n display: 'flex',\n justifyContent: 'flex-start',\n marginTop: '1rem',\n borderRadius: '.5rem',\n overflow: 'hidden',\n '& > *': {\n borderRadius: '.5rem',\n overflow: 'hidden',\n },\n },\n googleMapContainerMobile: {\n height: '12.5rem',\n display: 'flex',\n justifyContent: 'flex-start',\n marginTop: '1rem',\n marginBottom: '-1rem',\n '& > *': {\n borderTopLeftRadius: '.5rem',\n borderTopRightRadius: '.5rem',\n overflow: 'hidden',\n },\n },\n}));\n\nconst RideView = () => {\n const classes = useStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { rideId }: { rideId: string } = useParams();\n const { data, refetch, isLoading } = useRide(rideId);\n const [showUtcTime, setShowUtcTime] = useState(false);\n\n if (isLoading) {\n return ;\n }\n\n return (\n <>\n \n {isMobile\n ? renderMobileView(data, classes, refetch, showUtcTime, setShowUtcTime)\n : renderDesktopView(data, classes, refetch, showUtcTime, setShowUtcTime)}\n \n );\n};\n\nexport default RideView;\n","import { makeStyles, createStyles } from '@mui/styles';\n\nimport { COLORS } from '../../../../../../constants/colors';\n\nconst informationSummaryStyles = makeStyles(() =>\n createStyles({\n subtitle: {\n marginBottom: '0.5rem',\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n subtitleWithIcon: {\n marginBottom: 0,\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n heading: {\n marginBottom: '1rem',\n color: COLORS.ORANGE,\n fontSize: '1rem',\n fontWeight: 700,\n },\n vehicleImage: {\n height: '77px',\n width: '240px',\n },\n vehicleImageMobile: {\n position: 'relative',\n height: '96px',\n },\n labeledDataLabel: { marginRight: '0 !important' },\n accordion: {\n '& .MuiAccordionSummary-root': {\n padding: '0 1rem',\n height: '56px',\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n },\n '& .MuiAccordionSummary-root.Mui-expanded': {\n minHeight: 'unset',\n background: COLORS.EXTRA_LIGHT_GRAY,\n },\n '& .MuiAccordionSummary-content': { margin: 0 },\n '& .MuiAccordionSummary-content.Mui-expanded': { margin: 0 },\n border: 'none',\n boxShadow: 'none',\n },\n accordionSummary: {},\n accordionDetails: {\n display: 'flex',\n flexDirection: 'column',\n padding: '1rem',\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n },\n pickupDropoffDateTime: {\n paddingLeft: '2.125rem',\n color: COLORS.SLATE_GREY,\n fontWeight: '700',\n fontSize: '0.875rem',\n lineHeight: '0.875rem',\n paddingTop: '0.5rem',\n },\n })\n);\n\nexport default informationSummaryStyles;\n","import { Dispatch, SetStateAction, createContext } from 'react';\n\nexport enum RideSummaryAccordions {\n RideInformationSummary = 'RideInformationSummary',\n VehicleInformationSummary = 'VehicleInformationSummary',\n PassengerInformationSummary = 'PassengerInformationSummary',\n}\n\nexport interface RideSummaryAccordionsExpanded {\n [RideSummaryAccordions.RideInformationSummary]: boolean;\n [RideSummaryAccordions.VehicleInformationSummary]: boolean;\n [RideSummaryAccordions.PassengerInformationSummary]: boolean;\n}\n\nexport interface RideSummaryContext {\n expanded: RideSummaryAccordionsExpanded;\n setExpanded: Dispatch>;\n}\n\nexport const initialExpandedAccordions = {\n RideInformationSummary: true,\n VehicleInformationSummary: true,\n PassengerInformationSummary: true,\n} as RideSummaryAccordionsExpanded;\n\nexport const RideSummaryCardContext = createContext({\n expanded: initialExpandedAccordions,\n setExpanded: () => {},\n});\n","import ExpandMoreOutlinedIcon from '@mui/icons-material/ExpandMoreOutlined';\nimport { Accordion, AccordionSummary, AccordionDetails, Typography, Grid } from '@mui/material';\nimport React, { useContext } from 'react';\n\nimport CopyToClipboardButton from '../../../../../../components/buttons/CopyToClipboardButton';\nimport { RideSummaryAccordions, RideSummaryCardContext } from '../RideSummaryCardContext';\nimport informationSummaryStyles from './InformationSummary.styles';\n\ninterface SummaryAccordionProps {\n unid: keyof typeof RideSummaryAccordions;\n summaryTitle: string;\n detailsContent: JSX.Element;\n getCopyToClipboardText?: string;\n hasCopyButton?: boolean;\n}\n\nconst SummaryAccordion = ({\n unid,\n summaryTitle,\n detailsContent,\n getCopyToClipboardText = '',\n hasCopyButton,\n}: SummaryAccordionProps) => {\n const classes = informationSummaryStyles();\n const { expanded, setExpanded } = useContext(RideSummaryCardContext);\n\n const handleOnChange = (_event: React.SyntheticEvent, isExpanded: boolean) => {\n setExpanded({\n ...expanded,\n [unid]: isExpanded,\n });\n };\n\n return (\n \n }\n aria-controls={`panel${unid}-content`}\n >\n \n \n {summaryTitle}\n \n {hasCopyButton ? : ''}\n \n \n {detailsContent}\n \n );\n};\n\nexport default SummaryAccordion;\n","import { IconedData } from '@get-e/react-components';\nimport EmojiPeopleOutlinedIcon from '@mui/icons-material/EmojiPeopleOutlined';\nimport LuggageOutlinedIcon from '@mui/icons-material/LuggageOutlined';\nimport PersonOutlineOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';\nimport PhoneIcon from '@mui/icons-material/Phone';\nimport TextSnippetOutlinedIcon from '@mui/icons-material/TextSnippetOutlined';\nimport { Box, Typography, useMediaQuery } from '@mui/material';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../../../constants/colors';\nimport theme from '../../../../../../styles/theme';\nimport { Passenger } from '../../../../api/types';\nimport { RideSummaryAccordions } from '../RideSummaryCardContext';\nimport informationSummaryStyles from './InformationSummary.styles';\nimport SummaryAccordion from './SummaryAccordion';\n\ninterface PassengerInformationSummaryProps {\n unid: keyof typeof RideSummaryAccordions;\n passengers?: Passenger[];\n numberOfPassengers?: string;\n luggage?: string;\n clientInstructions?: string;\n displayAsAcccordion?: boolean;\n}\n\nconst getLeadPassenger = (passengers: Passenger[]) => passengers.filter(passenger => passenger.isLead)[0];\n\nconst getOtherPassengers = (passengers: Passenger[]) => passengers.filter(passenger => !passenger.isLead);\n\nconst PassengerInformationSummary = ({\n unid,\n passengers,\n numberOfPassengers,\n luggage,\n clientInstructions,\n displayAsAcccordion = true,\n}: PassengerInformationSummaryProps) => {\n const classes = informationSummaryStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n const leadPassenger = useMemo(() => {\n return passengers ? getLeadPassenger(passengers) : undefined;\n }, [passengers]);\n\n const content = useMemo(\n () => (\n <>\n \n \n \n \n \n \n {getOtherPassengers(passengers ?? []).map(passenger => (\n \n \n \n \n ))}\n \n \n ),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [leadPassenger?.firstName, leadPassenger?.lastName, leadPassenger?.phone, t]\n );\n\n return isMobile && displayAsAcccordion ? (\n \n ) : (\n <>\n \n {t('passengers')}\n \n {content}\n \n );\n};\n\nexport default PassengerInformationSummary;\n","import { COLORS } from '../constants/colors';\n\nexport enum FlightStatus {\n DIVERTED = 'Diverted',\n NO_INFO = 'No info',\n CANCELLED = 'Cancelled',\n DELAYED = 'Delayed',\n LANDED_ON_TIME = 'Landed',\n AT_GATE_ON_TIME = 'At gate',\n DEPARTED_ON_TIME = 'Departed',\n DEPARTED_LATE = 'Departed late',\n AT_GATE_LATE = 'At gate late',\n LANDED_LATE = 'Landed late',\n COMPLETED_ON_TIME = 'Completed',\n COMPLETED_LATE = 'Completed late',\n BOOKED = 'Booked',\n}\n\nexport const FlightStatusColor = {\n NO_INFO: COLORS.LIGHT_RED,\n CANCELLED: COLORS.LIGHT_RED,\n DIVERTED: COLORS.LIGHT_RED,\n DELAYED: COLORS.MEDIUM_ORANGE,\n LANDED_ON_TIME: COLORS.LIGHT_GREEN,\n AT_GATE_ON_TIME: COLORS.LIGHT_GREEN,\n DEPARTED_ON_TIME: COLORS.LIGHT_GREEN,\n DEPARTED_LATE: COLORS.MEDIUM_ORANGE,\n AT_GATE_LATE: COLORS.MEDIUM_ORANGE,\n LANDED_LATE: COLORS.MEDIUM_ORANGE,\n COMPLETED_ON_TIME: COLORS.LIGHT_BLUE,\n COMPLETED_LATE: COLORS.LIGHT_ORANGE,\n BOOKED: COLORS.BLACK_12,\n} as {\n [key in keyof typeof FlightStatus]: keyof typeof COLORS;\n};\n\nexport const FlightStatusTextColor = {\n NO_INFO: COLORS.RED_WARNING,\n CANCELLED: COLORS.RED_WARNING,\n DIVERTED: COLORS.RED_WARNING,\n DELAYED: COLORS.RED_WARNING,\n LANDED_ON_TIME: COLORS.GREEN_TEXT,\n AT_GATE_ON_TIME: COLORS.GREEN_TEXT,\n DEPARTED_ON_TIME: COLORS.GREEN_TEXT,\n DEPARTED_LATE: COLORS.RED_WARNING,\n AT_GATE_LATE: COLORS.RED_WARNING,\n LANDED_LATE: COLORS.ORANGE_TEXT,\n COMPLETED_ON_TIME: COLORS.BLACK,\n COMPLETED_LATE: COLORS.ORANGE_TEXT,\n BOOKED: COLORS.BLACK,\n} as {\n [key in keyof typeof FlightStatus]: keyof typeof COLORS;\n};\n\nexport interface FlightStatusTextOption {\n strike: boolean;\n isDelayed: boolean;\n}\n\nexport const FlightStatusTextType = {\n NO_INFO: {\n strike: false,\n isDelayed: false,\n },\n CANCELLED: {\n strike: true,\n isDelayed: false,\n },\n DIVERTED: {\n strike: true,\n isDelayed: false,\n },\n DELAYED: {\n strike: true,\n isDelayed: true,\n },\n DEPARTED_ON_TIME: {\n strike: false,\n isDelayed: false,\n },\n DEPARTED_LATE: {\n strike: true,\n isDelayed: true,\n },\n LANDED_ON_TIME: {\n strike: false,\n isDelayed: false,\n },\n LANDED_LATE: {\n strike: true,\n isDelayed: true,\n },\n AT_GATE_ON_TIME: {\n strike: false,\n isDelayed: false,\n },\n AT_GATE_LATE: {\n strike: true,\n isDelayed: true,\n },\n COMPLETED_ON_TIME: {\n strike: false,\n isDelayed: false,\n },\n COMPLETED_LATE: {\n strike: true,\n isDelayed: true,\n },\n BOOKED: {\n strike: false,\n isDelayed: false,\n },\n} as {\n [key in keyof typeof FlightStatus]: FlightStatusTextOption;\n};\n\nexport const FlightStatusTooltip = {\n NO_INFO: 'The information displayed might be incorrect or out-to-date',\n CANCELLED: 'The flight has been cancelled',\n DIVERTED: 'The flight has been diverted',\n DELAYED: 'The flight is delayed on departure',\n DEPARTED_ON_TIME: 'The flight departed',\n DEPARTED_LATE: 'The flight accumulated delay',\n LANDED_LATE: 'The flight landed with delay',\n LANDED_ON_TIME: 'The flight landed on time',\n AT_GATE_ON_TIME: 'The flight approached the gate on time',\n AT_GATE_LATE: 'The flight approached the gate with delay',\n COMPLETED_ON_TIME: 'Flight completed',\n COMPLETED_LATE: 'Flight completed with delay.',\n BOOKED: 'Flight scheduled',\n} as {\n [key in keyof typeof FlightStatus]: string;\n};\n\nexport const getFlightStatusTextColor = (status: keyof typeof FlightStatus) => FlightStatusTextColor[status];\n\nexport const getFlightStatusColor = (status: keyof typeof FlightStatus) => FlightStatusColor[status];\n\nexport const getFlightStatusKeyName = (value: string): keyof typeof FlightStatus => {\n return Object.entries(FlightStatus).find(([_, val]) => val === value)?.[0] as keyof typeof FlightStatus;\n};\n\nexport const getFlightStatusTextType = (status: keyof typeof FlightStatus) => FlightStatusTextType[status];\n\nexport const getFlightStatusTooltip = (status: keyof typeof FlightStatus) => FlightStatusTooltip[status];\n","import { Box, Tooltip, Typography } from '@mui/material';\nimport React from 'react';\n\nimport {\n FlightStatus,\n getFlightStatusColor,\n getFlightStatusTextColor,\n getFlightStatusTooltip,\n} from '../../../helpers/flightStatusUtil';\n\ninterface FlightStatusBadgeProps {\n status: keyof typeof FlightStatus;\n width?: string;\n height?: string;\n showTooltip?: boolean;\n}\n\nconst FlightStatusBadge = ({ status, width, height, showTooltip }: FlightStatusBadgeProps) => (\n \n \n \n {FlightStatus[status]}\n \n \n \n);\n\nexport default FlightStatusBadge;\n","/* eslint-disable complexity */\nimport { IconedData } from '@get-e/react-components';\nimport CalendarTodayOutlinedIcon from '@mui/icons-material/CalendarTodayOutlined';\nimport FlightLandOutlinedIcon from '@mui/icons-material/FlightLandOutlined';\nimport FlightTakeoffOutlinedIcon from '@mui/icons-material/FlightTakeoffOutlined';\nimport QuestionMarkOutlinedIcon from '@mui/icons-material/QuestionMarkOutlined';\nimport RoomOutlinedIcon from '@mui/icons-material/RoomOutlined';\nimport { Box, Grid, Typography, useMediaQuery } from '@mui/material';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport CopyToClipboardButton from '../../../../../../components/buttons/CopyToClipboardButton';\nimport { COLORS } from '../../../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../../../constants/dateFormats';\nimport { FlightStatus, getFlightStatusKeyName } from '../../../../../../helpers/flightStatusUtil';\nimport { getDateTimeWithoutOffsetFormatted } from '../../../../../../helpers/getDateTimeWithoutOffset';\nimport theme from '../../../../../../styles/theme';\nimport { Arrival, Departure, FlightDetails, FlightType } from '../../../../../rides/api/types';\nimport FlightStatusBadge from '../../../../../rides/components/FlightStatusBadge';\nimport { Passenger } from '../../../../api/types';\nimport { RideSummaryAccordions } from '../RideSummaryCardContext';\nimport informationSummaryStyles from './InformationSummary.styles';\nimport SummaryAccordion from './SummaryAccordion';\n\ninterface RideInformationSummaryProps {\n unid: keyof typeof RideSummaryAccordions;\n prettifiedUnid?: string;\n durationInSeconds: number;\n pickUp?: Departure;\n dropOff?: Arrival;\n flightDetails?: FlightDetails | null;\n flightStatus?: FlightStatus;\n specialRequest?: string;\n isOnlyPickupAndDropoff?: boolean;\n displayAsAcccordion?: boolean;\n isAlwaysMobile?: boolean;\n hidePickUpDateAndTime?: boolean;\n vehicle?: string;\n numberOfPassengers?: number;\n numberOfBags?: number;\n passengers?: Passenger[];\n}\n\nconst getPassengersNamesList = (passengers: Passenger[]): string =>\n passengers.map(passenger => `${passenger.firstName} ${passenger.lastName}`).join(', ');\n\nconst RideInformationSummary = ({\n unid,\n prettifiedUnid,\n pickUp,\n dropOff,\n flightDetails,\n flightStatus,\n durationInSeconds,\n specialRequest,\n isOnlyPickupAndDropoff,\n displayAsAcccordion = true,\n isAlwaysMobile,\n hidePickUpDateAndTime,\n vehicle,\n numberOfPassengers,\n numberOfBags,\n passengers = [],\n}: RideInformationSummaryProps) => {\n const classes = informationSummaryStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down(isAlwaysMobile ? 'xl' : 'md'));\n\n const scheduledArrivalLocal = useMemo(() => {\n let scheduledTime: string | null = null;\n\n if (flightDetails?.type === FlightType.ARRIVAL) {\n scheduledTime = getDateTimeWithoutOffsetFormatted(\n flightDetails?.arrival?.datetimeLocal,\n DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']\n );\n } else if (flightDetails?.type === FlightType.DEPARTURE) {\n scheduledTime = getDateTimeWithoutOffsetFormatted(\n flightDetails?.departure?.datetimeLocal,\n DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']\n );\n } else if (flightDetails?.arrivalTime) {\n scheduledTime = getDateTimeWithoutOffsetFormatted(\n flightDetails?.arrivalTime,\n DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']\n );\n } else {\n scheduledTime = null;\n }\n\n return scheduledTime;\n }, [\n flightDetails?.arrival?.datetimeLocal,\n flightDetails?.arrivalTime,\n flightDetails?.departure?.datetimeLocal,\n flightDetails?.type,\n ]);\n\n const pickUpDateAndTime = useMemo(() => {\n if (!pickUp?.departAtLocal) {\n return '';\n }\n\n return getDateTimeWithoutOffsetFormatted(pickUp.departAtLocal, DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']);\n }, [pickUp?.departAtLocal]);\n\n const dropOffDateAndTime = useMemo(() => {\n if (!dropOff?.arriveAtLocal) {\n return '';\n }\n\n return getDateTimeWithoutOffsetFormatted(dropOff.arriveAtLocal, DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']);\n }, [dropOff?.arriveAtLocal]);\n\n const flightTypeIcon = useMemo(() => {\n if (flightDetails?.type === FlightType.DEPARTURE) {\n return FlightTakeoffOutlinedIcon;\n }\n\n return FlightLandOutlinedIcon;\n }, [flightDetails?.type]);\n\n const scheduledLabel = useMemo(() => {\n if (flightDetails?.type === FlightType.DEPARTURE) {\n return `${t('pages.summary.departureTime')}:`;\n } else if (flightDetails?.type === FlightType.ARRIVAL) {\n return `${t('pages.summary.arrivalTime')}:`;\n }\n\n return `${t('pages.summary.scheduledTime')}:`;\n }, [flightDetails?.type, t]);\n\n const passengerNames = getPassengersNamesList(passengers);\n\n const getCopyToClipboardText = () => {\n return [\n `${t('ride')}: ${prettifiedUnid}`,\n `${t('pages.singleRide.fields.pickUpDate')}: ${pickUpDateAndTime}`,\n `${t('pickUpLocation')}: ${pickUp?.location.address}`,\n `${t('dropOffLocation')}: ${dropOff?.location.address}`,\n `${t('specialRequest')}: ${specialRequest}`,\n `${t('vehicleType')}: ${vehicle}`,\n `${t('numberOfPassengers')}: ${numberOfPassengers}`,\n `${t('piecesOfLuggage')}: ${numberOfBags}`,\n `${t('passengers')}: ${passengerNames}`,\n ].join('\\n');\n };\n\n const content = useMemo(\n () => (\n <>\n {isMobile && !hidePickUpDateAndTime && (\n \n )}\n \n \n \n \n \n \n \n {pickUp?.location?.address || pickUp?.location?.name || ''}\n \n {pickUpDateAndTime}\n \n \n \n \n \n \n \n {dropOff?.location?.address || dropOff?.location?.name || ''}\n \n {dropOffDateAndTime}\n \n \n {!isOnlyPickupAndDropoff && (\n <>\n \n \n \n {flightStatus && }\n \n \n \n )}\n \n ),\n [\n classes.pickupDropoffDateTime,\n dropOff?.location?.address,\n dropOff?.location?.name,\n dropOffDateAndTime,\n flightDetails?.number,\n flightStatus,\n flightTypeIcon,\n hidePickUpDateAndTime,\n isMobile,\n isOnlyPickupAndDropoff,\n pickUp?.location?.address,\n pickUp?.location?.name,\n pickUpDateAndTime,\n scheduledArrivalLocal,\n specialRequest,\n scheduledLabel,\n t,\n ]\n );\n\n return isMobile && displayAsAcccordion ? (\n \n ) : (\n <>\n \n \n {t('ride')}\n \n \n \n {content}\n \n );\n};\n\nexport default RideInformationSummary;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Grid } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { RideResponse } from '../../../ride/api/types';\nimport ReferenceCard from '../../../ride/supplier/components/ReferenceCard';\nimport PassengerInformationSummary from '../../../ride/supplier/components/rideSummaryCard/components/PassengerInformationSummary';\nimport RideInformationSummary from '../../../ride/supplier/components/rideSummaryCard/components/RideInformationSummary';\nimport { RideSummaryAccordions } from '../../../ride/supplier/components/rideSummaryCard/RideSummaryCardContext';\nimport useConfirmCloseAddRemarksRide from '../../../ride/supplier/hooks/useConfirmCloseAddRemarksRide';\nimport { RemarksCard, RemarksValues, initialRemarks } from './RemarksCard';\n\nconst useStyles = makeStyles({ closeRideModal: { '& .MuiDialog-container .MuiPaper-root': { maxWidth: '600px' } } });\n\nexport interface CloseRideData {\n referenceNumber: string;\n remarks: string;\n}\n\ninterface CloseRideModalProps {\n isModalOpen: boolean;\n onClose: () => void;\n ride: RideResponse;\n onFinished: (updatedRide?: RideResponse) => void;\n supplierReference?: string;\n}\n\nconst CloseRideModal = ({ isModalOpen, onClose, ride, onFinished, supplierReference }: CloseRideModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const [remarksValues, setRemarksValues] = useState(initialRemarks);\n const [reference, setReference] = useState(supplierReference ?? null);\n\n const { onCloseRide, isSaving } = useConfirmCloseAddRemarksRide({\n rideId: ride.unid,\n reference,\n remarksValues,\n });\n\n const handleClose = async () => {\n const data = await onCloseRide();\n\n onClose();\n onFinished(data);\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default CloseRideModal;\n","import { TextField } from '@get-e/react-components';\nimport { Box, Grid, Typography } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport useFormStyles from '../../../../styles/Form';\n\ninterface AdditionalCostsCardProps {\n extraWaitingTime?: number;\n waitingTimeCosts?: number;\n parkingTollCosts?: number;\n otherCosts?: number;\n comments?: string;\n isVisible?: boolean;\n order?: number;\n}\n\nconst AdditionalCostsCard = ({\n extraWaitingTime,\n waitingTimeCosts,\n parkingTollCosts,\n otherCosts,\n comments,\n isVisible,\n order,\n}: AdditionalCostsCardProps) => {\n const { t } = useTranslation();\n const formClasses = useFormStyles();\n\n if (!isVisible) {\n return null;\n }\n\n return (\n \n \n {t('modals.referencesAndRemarks.additionalCosts')}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default AdditionalCostsCard;\n","import { Coordinates } from '../../services/types';\n\ninterface RideCordinates {\n pickupLatitude?: number;\n pickupLongitude?: number;\n dropOffLatitude?: number;\n dropOffLongitude?: number;\n}\n\nexport const getRidePoints = ({ pickupLatitude, pickupLongitude, dropOffLatitude, dropOffLongitude }: RideCordinates) => {\n const pickupCoordinates =\n pickupLatitude && pickupLongitude\n ? ({\n lat: pickupLatitude,\n lon: pickupLongitude,\n } as Coordinates)\n : undefined;\n\n const dropOffCoordinates =\n dropOffLatitude && dropOffLongitude\n ? ({\n lat: dropOffLatitude,\n lon: dropOffLongitude,\n } as Coordinates)\n : undefined;\n\n return [pickupCoordinates, dropOffCoordinates];\n};\n","import { IconedData } from '@get-e/react-components';\nimport RouteOutlinedIcon from '@mui/icons-material/RouteOutlined';\nimport TimerOutlinedIcon from '@mui/icons-material/TimerOutlined';\nimport { Box } from '@mui/material';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../../../constants/colors';\nimport metersToKmAndMiFormatted from '../../../../../../helpers/metersToKmAndMiFormatted';\nimport secondsToTimeFormatted from '../../../../../../helpers/secondsToTimeFormatted';\n\ninterface RideSummaryProps {\n distanceInMeters?: number;\n durationInSeconds?: number;\n}\n\nconst RideSummary = ({ distanceInMeters, durationInSeconds }: RideSummaryProps) => {\n const { t } = useTranslation();\n\n const distance = useMemo(() => metersToKmAndMiFormatted(distanceInMeters), [distanceInMeters]);\n\n const time = useMemo(() => secondsToTimeFormatted(durationInSeconds), [durationInSeconds]);\n\n return (\n \n \n \n \n );\n};\n\nexport default RideSummary;\n","import { IconedData } from '@get-e/react-components';\nimport HandshakeOutlinedIcon from '@mui/icons-material/HandshakeOutlined';\nimport LocalTaxiOutlinedIcon from '@mui/icons-material/LocalTaxiOutlined';\nimport { Typography, useMediaQuery, Box } from '@mui/material';\nimport clsx from 'clsx';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../../../constants/colors';\nimport theme from '../../../../../../styles/theme';\nimport { RideSummaryAccordions } from '../RideSummaryCardContext';\nimport informationSummaryStyles from './InformationSummary.styles';\nimport SummaryAccordion from './SummaryAccordion';\n\ninterface VehicleInformationSummaryProps {\n unid: keyof typeof RideSummaryAccordions;\n vehicleClass?: string;\n vehicleType?: string;\n vehicleModel?: string;\n meetingInstructions?: string;\n vehicleImageUrl?: string;\n displayAsAcccordion?: boolean;\n}\n\nconst VehicleInformationSummary = ({\n unid,\n vehicleClass,\n vehicleType,\n vehicleModel,\n meetingInstructions,\n vehicleImageUrl,\n displayAsAcccordion = true,\n}: VehicleInformationSummaryProps) => {\n const classes = informationSummaryStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n const vehicleClassAndType = useMemo(\n () => `${vehicleClass ?? ''} ${vehicleType ?? ''} ${vehicleModel ? `(${vehicleModel})` : ''}`,\n [vehicleClass, vehicleModel, vehicleType]\n );\n\n const content = useMemo(\n () => (\n \n \n \n \n \n \n \n ),\n [classes.vehicleImage, classes.vehicleImageMobile, isMobile, meetingInstructions, t, vehicleClassAndType, vehicleImageUrl]\n );\n\n return isMobile && displayAsAcccordion ? (\n \n ) : (\n <>\n \n {t('vehicle')}\n \n {content}\n \n );\n};\n\nexport default VehicleInformationSummary;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Grid } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport GoogleMap from '../../../../components/navigation/GoogleMap';\nimport { getRidePoints } from '../../../../helpers/googleMaps/getRidePoints';\nimport { AssignDriverToRide } from '../../../rides/supplier/api/types';\nimport { RemarksCard, RemarksValues, initialRemarks } from '../../../rides/supplier/components/RemarksCard';\nimport { RideResponse } from '../../api/types';\nimport useConfirmCloseAddRemarksRide from '../hooks/useConfirmCloseAddRemarksRide';\nimport useSupplierDriverInformation from '../hooks/useSupplierDriverInformation';\nimport ReferenceCard from './ReferenceCard';\nimport PassengerInformationSummary from './rideSummaryCard/components/PassengerInformationSummary';\nimport RideInformationSummary from './rideSummaryCard/components/RideInformationSummary';\nimport RideSummary from './rideSummaryCard/components/RideSummary';\nimport VehicleInformationSummary from './rideSummaryCard/components/VehicleInformationSummary';\nimport { RideSummaryAccordions } from './rideSummaryCard/RideSummaryCardContext';\n\nconst useStyles = makeStyles({ confirmRideModal: { '& .MuiDialog-container .MuiPaper-root': { maxWidth: '600px' } } });\n\ninterface ConfirmRideModalProps {\n isModalOpen: boolean;\n onClose: () => void;\n onFinished: (updatedRide?: RideResponse) => void;\n ride: RideResponse;\n supplierReference?: string;\n driverChangeRequest?: AssignDriverToRide;\n isDriverUnassign?: boolean;\n}\n\nconst ConfirmRideModal = ({\n isModalOpen,\n onClose,\n onFinished,\n ride,\n supplierReference,\n driverChangeRequest,\n isDriverUnassign,\n}: ConfirmRideModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const [remarksValues, setRemarksValues] = useState(initialRemarks);\n const [reference, setReference] = useState(supplierReference ?? null);\n const { handleChangeDriver, handleUnassignDriver } = useSupplierDriverInformation();\n\n const { onConfirmRide, isSaving } = useConfirmCloseAddRemarksRide({\n rideId: ride.unid,\n reference,\n remarksValues,\n });\n\n const points = useMemo(() => {\n return getRidePoints({\n pickupLatitude: ride.pickUp.location.coordinates.lat,\n pickupLongitude: ride.pickUp.location.coordinates.lon,\n dropOffLatitude: ride.dropOff.location.coordinates.lat,\n dropOffLongitude: ride.dropOff.location.coordinates.lon,\n });\n }, [\n ride.dropOff.location.coordinates.lat,\n ride.dropOff.location.coordinates.lon,\n ride.pickUp.location.coordinates.lat,\n ride.pickUp.location.coordinates.lon,\n ]);\n\n const handleConfirm = async () => {\n if (driverChangeRequest) {\n await handleChangeDriver(driverChangeRequest);\n }\n\n if (isDriverUnassign) {\n await handleUnassignDriver(ride.unid);\n }\n\n const data = await onConfirmRide();\n\n onClose();\n onFinished(data);\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default ConfirmRideModal;\n","import { Box } from '@mui/material';\nimport React, { ReactNode } from 'react';\n\ninterface CellWrapperProps {\n children: ReactNode;\n}\n\nconst CellWrapper = ({ children }: CellWrapperProps) => (\n \n {children}\n \n);\n\nexport default CellWrapper;\n","/* eslint-disable @typescript-eslint/init-declarations */\nimport { Autocomplete, TextField, ModalAction as Modal } from '@get-e/react-components';\nimport PhoneOutlinedIcon from '@mui/icons-material/PhoneOutlined';\nimport StarIcon from '@mui/icons-material/Star';\nimport { Box, InputAdornment, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport clsx from 'clsx';\nimport { MuiTelInput } from 'mui-tel-input';\nimport React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { SINGLE_RIDE_DRIVER_SAVE } from '../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../../context/NotificationContext';\nimport { getCountryCode } from '../../../../helpers/getCountryCode';\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport isFilledString from '../../../../helpers/inputValidation/validators/isFilledString';\nimport useEffectAsync from '../../../../hooks/useEffectAsync';\nimport { AddDriverRequest, Driver } from '../../../drivers/api/types';\nimport { RideAmplitudeEventProperties, RideResponse } from '../../../ride/api/types';\nimport useSupplierDriverInformation, {\n ADD_DRIVER_ID,\n DEAFULT_ADD_DRIVER_BUTTON_OPTION,\n NO_RESULTS_DRIVER_ID,\n NO_RESULTS_DRIVER_OPTION,\n} from '../../../ride/supplier/hooks/useSupplierDriverInformation';\nimport { assignDriverToRide } from '../api';\n\nconst useStyles = makeStyles({\n formField: {\n marginBottom: '1.25rem',\n width: '100%',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n mobileFieldDisabled: {\n '&:hover': { pointerEvents: 'none' },\n '& .MuiInputBase-root.MuiFilledInput-root': {\n backgroundColor: COLORS.WHITE,\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: 0,\n borderBottomStyle: 'hidden',\n '&.Mui-disabled:before': { borderBottom: `1px solid ${COLORS.BLACK_12}` },\n '&.MuiInputBase-input-MuiFilledInput-input.Mui-disabled': { marginLeft: '-1.5rem' },\n },\n },\n formDriverField: { marginBottom: '2.5rem' },\n noResults: {\n textAlign: 'center',\n padding: '.75rem 1rem',\n },\n addNewContainer: {\n padding: '.75rem 1rem',\n cursor: 'pointer',\n '&:hover': { backgroundColor: COLORS.LIGHT_GRAY },\n },\n modalContent: { '& .MuiDialog-paper': { overflow: 'visible' } },\n borderBottom: { borderBottom: `1px solid ${COLORS.DARK_GRAY}` },\n});\n\nexport interface AddDriverFields {\n name: string;\n mobile: string;\n}\n\nexport interface AddDriverFormErrors {\n name: InputError | null;\n mobile: InputError | null;\n}\n\ninterface AddDriverModalProps {\n isModalOpen: boolean;\n onClose: () => void;\n rideId: string;\n onFinished: (updatedRide?: RideResponse) => void;\n amplitudeEventProperties?: RideAmplitudeEventProperties;\n}\n\nconst AddDriverModalRidesOverview = ({\n isModalOpen,\n onClose,\n rideId,\n onFinished,\n amplitudeEventProperties,\n}: AddDriverModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const [isDriverSelected, setIsDriverSelected] = useState(false);\n const [isAdded, setIsAdded] = useState(false);\n const [searchPhrase, setSearchPhrase] = useState('');\n const [isNewDriverAdded, setIsNewDriverAdded] = useState(false);\n const [isSubmited, setIsSubmited] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [filterOptionsLength, setFilterOptionsLength] = useState(0);\n\n const [values, setValues] = useState({\n name: '',\n mobile: '',\n });\n\n const [formErrors, setFormErrors] = useState({\n name: null,\n mobile: null,\n });\n\n const { showNotification } = useNotificationContext();\n\n const {\n driverInformation,\n driverInformations,\n addDriverInformation,\n setDriverInformation,\n driverInformationError,\n setDriverInformationError,\n } = useSupplierDriverInformation();\n\n const handleChange = (key: T, newValue: AddDriverFields[T] & string): void => {\n setValues({\n ...values,\n [key]: newValue,\n });\n\n setFormErrors({\n ...formErrors,\n [key]: null,\n });\n\n setDriverInformationError({\n ...driverInformationError,\n phoneNumberError: null,\n });\n };\n\n const validateFields = (): boolean => {\n const validatedName = isFilledString(!isDriverSelected ? values.name : (driverInformation?.name ?? ''), InputError.Empty);\n\n const validatedMobile = isFilledString(values.mobile, InputError.Empty);\n\n const fieldErros: AddDriverFormErrors = {\n name: validatedName.isValid ? null : validatedName.error,\n mobile: validatedMobile.isValid ? null : validatedMobile.error,\n };\n\n const isValid = Object.values(fieldErros).every(error => error === null);\n\n !isValid && setFormErrors(fieldErros);\n\n return isValid;\n };\n\n const handleSubmit = async () => {\n if (!validateFields()) {\n return;\n }\n\n setIsSubmited(true);\n\n if (isAdded) {\n const newDriver = {\n name: values.name,\n phoneNumber: values.mobile,\n } as AddDriverRequest;\n\n await addDriverInformation(newDriver);\n\n setIsNewDriverAdded(true);\n }\n };\n\n useEffectAsync(async () => {\n const handleAddNewDriver = isAdded ? isNewDriverAdded : true;\n let rideResponse: RideResponse | undefined;\n\n if (driverInformation?.id && handleAddNewDriver && isSubmited) {\n setIsSaving(true);\n await assignDriverToRide({\n driverId: driverInformation?.id?.toString(),\n rideId,\n })\n .then(({ data }) => {\n showNotification(t('alert.edit.success'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_SAVE, amplitudeEventProperties);\n rideResponse = data;\n })\n .catch(() => {\n showNotification(t('alert.edit.error'), Severity.Error);\n })\n .finally(() => {\n setIsSaving(false);\n onClose();\n onFinished(rideResponse);\n });\n setIsSubmited(false);\n }\n }, [isNewDriverAdded, driverInformation, rideId, isAdded, isSubmited]);\n\n const driverInformationOptions: Driver[] = useMemo(() => {\n const activeDrivers = driverInformations.filter(driverInformationItem => !driverInformationItem.isDeactivated);\n\n return isAdded ? [] : [DEAFULT_ADD_DRIVER_BUTTON_OPTION, ...activeDrivers];\n }, [driverInformations, isAdded]);\n\n return (\n \n {!isAdded ? (\n option.name}\n getOptionKey={(option: Driver) => option.id}\n filterOptions={options => {\n if (options.length === 1) {\n options.unshift(NO_RESULTS_DRIVER_OPTION);\n }\n\n const searchTerm = searchPhrase.toLowerCase().trim();\n\n const filteredDrivers = options.filter(\n driver => driver.name.toLowerCase().includes(searchTerm) || driver.phoneNumber.includes(searchTerm)\n );\n\n const found = filteredDrivers.some(el => el.id === ADD_DRIVER_ID);\n\n if (!found) {\n filteredDrivers.unshift(DEAFULT_ADD_DRIVER_BUTTON_OPTION);\n }\n\n setFilterOptionsLength(filteredDrivers.length);\n\n return filteredDrivers;\n }}\n renderOption={(prop, option: Driver) => {\n if (option.id === NO_RESULTS_DRIVER_ID) {\n return (\n \n {t('noResultsFound')}\n \n );\n }\n\n if (option.id === ADD_DRIVER_ID) {\n return (\n 1 })}\n onClick={() => {\n setIsDriverSelected(false);\n setIsAdded(true);\n }}\n >\n {`+ ${t('buttonName.addNew')}`}\n \n );\n }\n\n const averageRate = option.feedbacks?.averageRate\n ? option.feedbacks?.averageRate.toFixed(1).toString()\n : '';\n\n const count = option.feedbacks?.count ?? '';\n\n return (\n \n \n {option.name} ({option.phoneNumber})\n \n {averageRate}\n {count !== '' && count !== 0 && (\n <>\n \n ({option.feedbacks?.count})\n \n )}\n \n );\n }}\n value={driverInformation}\n onChange={(_, newValue) => {\n setDriverInformation(newValue as Driver);\n handleChange('mobile', newValue?.phoneNumber ?? '');\n setIsDriverSelected(true);\n\n setFormErrors({\n ...formErrors,\n name: null,\n mobile: null,\n });\n }}\n isError={formErrors.name !== null}\n helperText={formErrors.name ? t(formErrors.name) : undefined}\n required\n className={clsx(classes.formField, classes.formDriverField)}\n inputValue={searchPhrase}\n onInputChange={(_, newInputValue) => {\n setSearchPhrase(newInputValue);\n handleChange('name', newInputValue);\n }}\n />\n ) : (\n {\n setSearchPhrase(event.target.value);\n handleChange('name', event.target.value);\n }}\n className={classes.formField}\n error={formErrors.name !== null}\n helperText={formErrors.name ? t(formErrors.name) : undefined}\n />\n )}\n handleChange('mobile', value)}\n error={formErrors?.mobile !== null || driverInformationError.phoneNumberError !== null}\n helperText={(formErrors?.mobile && t(formErrors.mobile)) || driverInformationError?.phoneNumberError}\n variant=\"filled\"\n fullWidth\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n disabled={isDriverSelected}\n />\n \n );\n};\n\nexport default AddDriverModalRidesOverview;\n","/* eslint-disable @typescript-eslint/init-declarations */\nimport { Autocomplete, ModalAction as Modal } from '@get-e/react-components';\nimport StarIcon from '@mui/icons-material/Star';\nimport { Box, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { SINGLE_RIDE_DRIVER_SAVE } from '../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../../context/NotificationContext';\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport { useDrivers } from '../../../drivers/api';\nimport { Driver } from '../../../drivers/api/types';\nimport { RideAmplitudeEventProperties, RideResponse } from '../../../ride/api/types';\nimport { NO_RESULTS_DRIVER_OPTION } from '../../../ride/supplier/hooks/useSupplierDriverInformation';\nimport { assignDriverToRide } from '../api';\n\nconst useStyles = makeStyles({\n formField: {\n marginBottom: '1.25rem',\n width: '100%',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n modalContent: { '& .MuiDialog-paper': { overflow: 'visible' } },\n});\n\ninterface ChangeDriverModalProps {\n isModalOpen: boolean;\n onClose: () => void;\n rideId: string;\n initialDriver: Driver;\n onFinished: (updatedRide?: RideResponse) => void;\n amplitudeEventProperties?: RideAmplitudeEventProperties;\n}\n\nconst ChangeDriverModalRidesOverview = ({\n isModalOpen,\n onClose,\n rideId,\n initialDriver,\n onFinished,\n amplitudeEventProperties,\n}: ChangeDriverModalProps) => {\n const classes = useStyles();\n const { showNotification } = useNotificationContext();\n const { t } = useTranslation();\n const [searchPhrase, setSearchPhrase] = useState('');\n const [driverInformation, setDriverInformation] = useState(initialDriver);\n const [driverError, setDriverError] = useState('');\n const [isSaving, setIsSaving] = useState(false);\n\n const { data: drivers } = useDrivers();\n\n const driverInformationOptions: Driver[] = useMemo(\n () => drivers.filter((driverInformationItem: Driver) => !driverInformationItem.isDeactivated),\n [drivers]\n );\n\n const handleSubmit = async () => {\n if (!driverInformation) {\n setDriverError(InputError.Empty);\n return;\n }\n\n setIsSaving(true);\n\n let rideResponse: RideResponse | undefined;\n\n await assignDriverToRide({\n driverId: driverInformation?.id?.toString(),\n rideId,\n })\n .then(({ data }) => {\n showNotification(t('alert.edit.success'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_SAVE, amplitudeEventProperties);\n rideResponse = data;\n })\n .catch(error => {\n showNotification(t('alert.edit.error'), Severity.Error);\n })\n .finally(() => {\n setIsSaving(false);\n onClose();\n onFinished(rideResponse);\n });\n };\n\n return (\n \n option.name}\n getOptionKey={(option: Driver) => option.id}\n filterOptions={options => {\n if (options.length === 1) {\n options.unshift(NO_RESULTS_DRIVER_OPTION);\n }\n\n const searchTerm = searchPhrase.toLowerCase().trim();\n\n const filteredDrivers = options.filter(\n driver => driver.name.toLowerCase().includes(searchTerm) || driver.phoneNumber.includes(searchTerm)\n );\n\n return filteredDrivers;\n }}\n renderOption={(prop, option: Driver) => {\n const averageRate = option.feedbacks?.averageRate ? option.feedbacks?.averageRate.toFixed(1).toString() : '';\n\n const count = option.feedbacks?.count ?? '';\n\n return (\n \n \n {option.name} ({option.phoneNumber})\n \n {averageRate}\n {count !== '' && count !== 0 && (\n <>\n \n ({option.feedbacks?.count})\n \n )}\n \n );\n }}\n value={driverInformation}\n onChange={(_, newValue) => {\n setDriverInformation(newValue as Driver);\n setDriverError('');\n }}\n required\n className={classes.formField}\n inputValue={searchPhrase}\n onInputChange={(_, newInputValue) => {\n setSearchPhrase(newInputValue);\n setDriverError('');\n }}\n isError={driverError !== ''}\n helperText={driverError ? t(driverError) : ''}\n />\n \n );\n};\n\nexport default ChangeDriverModalRidesOverview;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nconst RemoveDriverConfirmModal = ({\n onClose,\n onConfirm,\n isLoading,\n}: {\n onClose: () => void;\n onConfirm: () => void;\n isLoading?: boolean;\n}) => {\n const { t } = useTranslation();\n\n const handleConfirm = () => {\n onConfirm();\n };\n\n return (\n \n \n {t('modals.removeDriverAndVehicle.description')}\n \n {t('modals.removeDriverAndVehicle.descriptionPart1')}\n \n );\n};\n\nexport default RemoveDriverConfirmModal;\n","import { IconedData } from '@get-e/react-components';\nimport BadgeOutlinedIcon from '@mui/icons-material/BadgeOutlined';\nimport DeleteOutlineOutlinedIcon from '@mui/icons-material/DeleteOutlineOutlined';\nimport PhoneOutlinedIcon from '@mui/icons-material/PhoneOutlined';\nimport StarIcon from '@mui/icons-material/Star';\nimport { Box, Grid, Typography } from '@mui/material';\nimport React, { useContext, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport DropdownButtonMenu, { DropdownMenuOption } from '../../../../components/dropdownButtonMenu/DropdownButtonMenu';\nimport {\n SINGLE_RIDE_ADD_DRIVER,\n SINGLE_RIDE_CHANGE_DRIVER,\n SINGLE_RIDE_DRIVER_UNASSIGN,\n} from '../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../../context/NotificationContext';\nimport { Driver } from '../../../drivers/api/types';\nimport CellWrapper from '../../../rides/components/CellWrapper';\nimport { unassignDriverFromRide } from '../../../rides/supplier/api';\nimport AddDriverModalRidesOverview from '../../../rides/supplier/components/AddDriverModalRidesOverview';\nimport ChangeDriverModalRidesOverview from '../../../rides/supplier/components/ChangeDriverModalRidesOverview';\nimport RemoveDriverConfirmModal from '../../../rides/supplier/components/RemoveDriverConfirmModal';\nimport { RideContext } from '../context/RideContext';\n\ninterface DriverInformationCardProps {\n driver: Driver | null;\n rideId: string;\n onDriverManageFinished: () => void;\n isVisible?: boolean;\n isTitileDisabled?: boolean;\n order?: number;\n}\n\nconst DriverInformationCard = ({\n driver,\n rideId,\n onDriverManageFinished,\n isVisible,\n isTitileDisabled,\n order,\n}: DriverInformationCardProps) => {\n const { t } = useTranslation();\n const [isAddDriverModalOpen, setIsAddDriverModalOpen] = useState(false);\n const [isChangeDriverModalOpen, setIsChangeDriverModalOpen] = useState(false);\n const [isRemoveDriverConfirmModalOpen, setIsRemoveDriverConfirmModalOpen] = useState(false);\n const [isSavingRemove, setIsSavingRemove] = useState(false);\n const { amplitudeEventProperties } = useContext(RideContext);\n const { showNotification } = useNotificationContext();\n\n const handleManageDriver = () => {\n if (driver) {\n setIsChangeDriverModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CHANGE_DRIVER, amplitudeEventProperties);\n } else {\n setIsAddDriverModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_ADD_DRIVER, amplitudeEventProperties);\n }\n };\n\n const driverButtonOptionsMap = useMemo(() => {\n if (driver) {\n return {\n mainButton: 'buttonName.changeDriver',\n options: ['UNASSIGN_DRIVER'],\n };\n }\n\n return {\n mainButton: 'buttonName.addDriver',\n options: [],\n };\n }, [driver]);\n\n const driverButtonOptions = useMemo((): DropdownMenuOption[] => {\n const options: DropdownMenuOption[] = [];\n\n if (!driverButtonOptionsMap) {\n return options;\n }\n\n if (driverButtonOptionsMap.options.includes('UNASSIGN_DRIVER')) {\n options.push({\n id: 1,\n label: t('buttonName.unassignDriver'),\n icon: DeleteOutlineOutlinedIcon,\n onClick: () => {\n setIsRemoveDriverConfirmModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_UNASSIGN, amplitudeEventProperties);\n },\n });\n }\n\n return options;\n }, [amplitudeEventProperties, driverButtonOptionsMap, t]);\n\n const onConfirmRemoveDriver = async () => {\n try {\n setIsSavingRemove(true);\n await unassignDriverFromRide(rideId);\n showNotification(t('alert.edit.successRemoveDriver'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_UNASSIGN, amplitudeEventProperties);\n onDriverManageFinished();\n } catch (error) {\n showNotification(t('alert.driverUnassignError'), Severity.Error);\n } finally {\n setIsRemoveDriverConfirmModalOpen(false);\n setIsSavingRemove(false);\n }\n };\n\n if (!isVisible) {\n return null;\n }\n\n return (\n \n \n \n {t('driver')}\n \n \n \n \n \n \n \n {`${t('name')}:`}\n \n {driver?.name ?? t('notAssigned')}\n \n {Boolean(driver?.feedbacks) && (\n \n {(driver?.feedbacks?.averageRate ?? 0).toFixed(1)}\n \n \n {`(${driver?.feedbacks?.count ?? 0} ${t('reviews').toLowerCase()})`}\n \n \n )}\n \n \n \n \n \n \n \n \n \n \n \n \n {isAddDriverModalOpen && (\n setIsAddDriverModalOpen(false)}\n rideId={rideId}\n onFinished={onDriverManageFinished}\n amplitudeEventProperties={amplitudeEventProperties}\n />\n )}\n {isChangeDriverModalOpen && driver && (\n setIsChangeDriverModalOpen(false)}\n rideId={rideId}\n initialDriver={driver}\n onFinished={onDriverManageFinished}\n amplitudeEventProperties={amplitudeEventProperties}\n />\n )}\n {isRemoveDriverConfirmModalOpen && (\n setIsRemoveDriverConfirmModalOpen(false)}\n onConfirm={onConfirmRemoveDriver}\n isLoading={isSavingRemove}\n />\n )}\n \n );\n};\n\nexport default DriverInformationCard;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Grid } from '@mui/material';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { RemarksCard, RemarksValues, initialRemarks } from '../../../rides/supplier/components/RemarksCard';\nimport useConfirmCloseAddRemarksRide from '../hooks/useConfirmCloseAddRemarksRide';\nimport ReferenceCard from './ReferenceCard';\n\nexport interface ReferencesAndRemarksData {\n referenceNumber: string;\n minutesWaiting: string;\n minutesCosts: string;\n parkingCosts: string;\n otherCosts: string;\n remarks: string;\n}\n\ninterface RemarksModalProps {\n rideId: string;\n isModalOpen: boolean;\n onClose: () => void;\n onFinished: () => void;\n reference?: string;\n}\n\nconst RemarksModal = ({ rideId, isModalOpen, onClose, onFinished, reference }: RemarksModalProps) => {\n const { t } = useTranslation();\n const [remarksValues, setRemarksValues] = useState(initialRemarks);\n const [supplierReference, setSupplierReference] = useState(reference ?? null);\n\n const { onAddRideRemarks, isSaving } = useConfirmCloseAddRemarksRide({\n rideId,\n remarksValues,\n reference: supplierReference,\n });\n\n const handleAddRemarks = async () => {\n await onAddRideRemarks();\n onFinished();\n onClose();\n };\n\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nexport default RemarksModal;\n","import { Grid, Skeleton, useMediaQuery } from '@mui/material';\nimport React from 'react';\n\nimport theme from '../../../../../styles/theme';\n\nconst RideLoadingSkeleton = () => {\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default RideLoadingSkeleton;\n","import { Box, Grid } from '@mui/material';\nimport React, { useContext, useMemo } from 'react';\n\nimport GoogleMap from '../../../../components/navigation/GoogleMap';\nimport { COLORS } from '../../../../constants/colors';\nimport { getRidePoints } from '../../../../helpers/googleMaps/getRidePoints';\nimport { RideContext } from '../context/RideContext';\nimport RideSummary from './rideSummaryCard/components/RideSummary';\n\ninterface RideMapCardProps {\n mapKey: number;\n isVisible?: boolean;\n marginBottom?: string;\n}\n\nconst RideMapCard = ({ mapKey, isVisible, marginBottom: marginBotton }: RideMapCardProps) => {\n const { rideResponse } = useContext(RideContext);\n\n const points = useMemo(() => {\n return getRidePoints({\n pickupLatitude: rideResponse?.pickUp?.location?.coordinates?.lat,\n pickupLongitude: rideResponse?.pickUp?.location?.coordinates?.lon,\n dropOffLatitude: rideResponse?.dropOff?.location?.coordinates?.lat,\n dropOffLongitude: rideResponse?.dropOff?.location?.coordinates?.lon,\n });\n }, [\n rideResponse?.dropOff?.location?.coordinates?.lat,\n rideResponse?.dropOff?.location?.coordinates?.lon,\n rideResponse?.pickUp?.location?.coordinates?.lat,\n rideResponse?.pickUp?.location?.coordinates?.lon,\n ]);\n\n if (!isVisible) {\n return null;\n }\n\n return (\n \n \n \n \n \n \n );\n};\n\nexport default RideMapCard;\n","import downloadFile from '../../../helpers/downloadFile';\nimport apiClient from '../../../services/api';\nimport { getDownloadRideOrderRoute } from '../../../services/routes';\n\nconst downloadRideOrder = async (id: string): Promise => {\n const result = await apiClient\n .get(getDownloadRideOrderRoute(id), { responseType: 'blob' })\n .then(response => {\n const url = window.URL.createObjectURL(new Blob([response.data]));\n\n downloadFile(url, `GET-E Ride order ${id}.pdf`);\n })\n .catch(error => {\n console.log(error);\n });\n\n return result;\n};\n\nexport default downloadRideOrder;\n","import { IconedData } from '@get-e/react-components';\nimport DownloadOutlinedIcon from '@mui/icons-material/DownloadOutlined';\nimport { Grid, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useContext, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\n\nimport { logAmplitudeEvent } from '../../../../../amplitude/amplitude';\nimport { SINGLE_RIDE_DOWNLOAD_DOCUMENTATION } from '../../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../../constants/colors';\nimport theme from '../../../../../styles/theme';\nimport downloadRideOrder from '../../../../rides/api/downloadRideOrder';\nimport { RideContext } from '../../context/RideContext';\nimport PassengerInformationSummary from './components/PassengerInformationSummary';\nimport RideInformationSummary from './components/RideInformationSummary';\nimport VehicleInformationSummary from './components/VehicleInformationSummary';\nimport { initialExpandedAccordions, RideSummaryAccordions, RideSummaryCardContext } from './RideSummaryCardContext';\n\nconst useStyles = makeStyles({\n gridItemMobile: { padding: 0 },\n gridItem: {\n padding: '1rem 1rem 0 1rem',\n width: '100%',\n },\n});\n\nconst RideSummaryCard = () => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const { rideResponse, amplitudeEventProperties } = useContext(RideContext);\n const [expanded, setExpanded] = useState(initialExpandedAccordions);\n\n const { mutate: downloadRideOrderMutation } = useMutation(downloadRideOrder);\n\n const price = useMemo(() => {\n if (!rideResponse?.price?.isoCurrency && !rideResponse?.price?.amount) {\n return '';\n }\n\n return `${rideResponse.price.isoCurrency} ${rideResponse.price.amount.toFixed(2)}`;\n }, [rideResponse?.price?.amount, rideResponse?.price?.isoCurrency]);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {t('price')}:\n \n \n {price}\n \n \n \n {\n downloadRideOrderMutation(rideResponse?.unid ?? '');\n logAmplitudeEvent(SINGLE_RIDE_DOWNLOAD_DOCUMENTATION, amplitudeEventProperties);\n }}\n />\n \n \n \n \n );\n};\n\nexport default RideSummaryCard;\n","import { makeStyles } from '@mui/styles';\n\nimport { COLORS } from '../../../constants/colors';\n\nconst rideStyles = makeStyles(styleTheme => ({\n headerTitleWrapper: {\n marginBottom: '2rem',\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [styleTheme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 0,\n [styleTheme.breakpoints.down('sm')]: {\n width: '100%',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '0.5rem',\n },\n },\n headerSecondaryTitle: {\n color: COLORS.BLUE,\n fontSize: '1.5rem',\n fontWeight: 700,\n },\n mainWrapper: {\n alignItems: 'center',\n padding: '0 2rem',\n },\n mainWrapperTopPadding: { paddingTop: '3.5rem' },\n referenceAndRemarksButton: { height: '44px' },\n}));\n\nexport default rideStyles;\n","import { SecondaryButton } from '@get-e/react-components';\nimport { Box, Grid, Typography, useMediaQuery } from '@mui/material';\nimport dayjs from 'dayjs';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useParams } from 'react-router-dom';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport CopyToClipboardButton from '../../../components/buttons/CopyToClipboardButton';\nimport PageActionButton from '../../../components/buttons/PageActionButton';\nimport { SINGLE_RIDE_PAGE } from '../../../constants/amplitude/commonKeys';\nimport { SINGLE_RIDE_ADD_REMARKS, SINGLE_RIDE_CLOSE, SINGLE_RIDE_CONFIRM } from '../../../constants/amplitude/supplierKeys';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { RideStatus, getRideStatusKey } from '../../../helpers/rideStatusUtil';\nimport theme from '../../../styles/theme';\nimport StatusBadge from '../../rides/components/StatusBadge';\nimport CloseRideModal from '../../rides/supplier/components/CloseRideModal';\nimport { RideAmplitudeEventProperties } from '../api/types';\nimport { useRide } from '../api/useRide';\nimport CancellationPoliciesCard from '../components/CancellationPoliciesCard';\nimport RideReview from '../components/RideReview';\nimport AdditionalCostsCard from './components/AdditionalCostsCard';\nimport ConfirmRideModal from './components/ConfirmRideModal';\nimport DriverInformationCard from './components/DriverInformationCard';\nimport ReferenceCard from './components/ReferenceCard';\nimport RemarksModal from './components/RemarksModal';\nimport RideLoadingSkeleton from './components/rideLoadingSkeleton/RideLoadingSkeleton';\nimport RideMapCard from './components/RideMapCard';\nimport RideSummaryCard from './components/rideSummaryCard/RideSummaryCard';\nimport { RideContext } from './context/RideContext';\nimport rideStyles from './Ride.styles';\n\nconst Ride = () => {\n const classes = rideStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const { rideId }: { rideId: string } = useParams();\n const [isConfirmRideModalOpen, setIsConfirmRideModalOpen] = useState(false);\n const [isCloseRideModalOpen, setIsCloseRideModalOpen] = useState(false);\n const [isRemarksModalOpen, setIsRemarksModalOpen] = useState(false);\n const [supplierReference, setSupplierReference] = useState(null);\n const [mapKey, setMapKey] = useState(0);\n const isPageOpened = useRef(false);\n\n const { data, isLoading, isFetching: isFetchingRide, refetch } = useRide(rideId);\n\n useEffect(() => {\n if (data?.supplierReference) {\n setSupplierReference(data.supplierReference);\n }\n }, [data?.supplierReference, setSupplierReference]);\n\n const amplitudeEventProperties = useMemo(() => {\n return {\n 'Ride number': data?.prettifiedUnid,\n 'Ride created time': dayjs.utc(data?.createdAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride pickup time': dayjs.utc(data?.pickUp.departAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride customer': data?.customer,\n 'Ride supplier': data?.supplier,\n 'Ride status': data?.status,\n 'Ride situation tags': data?.situationTag,\n 'Ride qc status': data?.qcStatus,\n 'Ride has driver': Boolean(data?.driver),\n } as RideAmplitudeEventProperties;\n }, [\n data?.createdAt,\n data?.customer,\n data?.driver,\n data?.pickUp.departAt,\n data?.prettifiedUnid,\n data?.qcStatus,\n data?.situationTag,\n data?.status,\n data?.supplier,\n ]);\n\n const isConfirmRideButtonVisible = useMemo(\n () =>\n data?.status &&\n [getRideStatusKey(RideStatus.TO_CONFIRM), getRideStatusKey(RideStatus.TO_CONFIRM_CHANGE)].includes(data.status),\n [data?.status]\n );\n\n const isCloseRideButtonVisible = useMemo(() => data?.status === getRideStatusKey(RideStatus.TO_CLOSE), [data?.status]);\n\n const isReferenceAndRemarksButtonEnabled = useMemo(\n () =>\n data?.status &&\n [\n getRideStatusKey(RideStatus.TO_CONFIRM_CHANGE),\n getRideStatusKey(RideStatus.CONFIRMED),\n getRideStatusKey(RideStatus.DRIVER_ON_THE_WAY),\n getRideStatusKey(RideStatus.DRIVER_AT_PICKUP),\n getRideStatusKey(RideStatus.PASSENGER_ON_BOARD),\n getRideStatusKey(RideStatus.ACTIVE),\n getRideStatusKey(RideStatus.TO_CLOSE),\n ].includes(data.status),\n [data?.status]\n );\n\n const pickUpDate = useMemo(() => dayjs(data?.pickUp?.departAt).toDate(), [data?.pickUp?.departAt]);\n\n const handleConfirmRide = () => {\n setIsConfirmRideModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CONFIRM, amplitudeEventProperties);\n };\n\n const handleCloseRide = () => {\n setIsCloseRideModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CLOSE, amplitudeEventProperties);\n };\n\n const handleAddRemarks = async () => {\n setIsRemarksModalOpen(true);\n await refetch();\n logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS, amplitudeEventProperties);\n };\n\n const handleConfirmCloseFinished = async () => {\n await refetch();\n setMapKey(Math.random());\n };\n\n const handleDriverManageFinished = async () => {\n await refetch();\n setMapKey(Math.random());\n };\n\n if (!data || isLoading) {\n return ;\n }\n\n if (!isPageOpened.current) {\n isPageOpened.current = true;\n logAmplitudeEvent(SINGLE_RIDE_PAGE, amplitudeEventProperties);\n }\n\n console.log({ data });\n\n return (\n \n \n \n \n \n {t('ride')} {data?.prettifiedUnid}\n \n \n \n \n \n \n {t('buttonName.confirmRide')}\n \n \n {t('buttonName.closeRide')}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {t('buttonName.referenceAndRemarks')}\n \n \n \n \n \n \n \n {isConfirmRideModalOpen && (\n {\n setIsConfirmRideModalOpen(false);\n setMapKey(Math.random());\n }}\n onFinished={handleConfirmCloseFinished}\n ride={data}\n supplierReference={supplierReference ? supplierReference : undefined}\n />\n )}\n {isCloseRideModalOpen && (\n setIsCloseRideModalOpen(false)}\n onFinished={handleConfirmCloseFinished}\n ride={data}\n supplierReference={supplierReference ? supplierReference : undefined}\n />\n )}\n {isRemarksModalOpen && (\n setIsRemarksModalOpen(false)}\n onFinished={handleConfirmCloseFinished}\n reference={data.supplierReference || undefined}\n />\n )}\n \n );\n};\n\nexport default Ride;\n","import { TextField } from '@get-e/react-components';\nimport { Box, Grid, Typography } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\n\ninterface AdditionalCostsFormProps {\n additionalCostsValues: {\n extraWaitingTime: string | null;\n waitingTimeCosts: string | null;\n parkingTollCosts: string | null;\n otherCosts: string | null;\n comments: string | null;\n };\n onChangeField: (field: string, value: string) => void;\n}\n\nconst AdditionalCostsForm = ({ additionalCostsValues, onChangeField }: AdditionalCostsFormProps) => {\n const { t } = useTranslation();\n\n return (\n \n \n {t('modals.referencesAndRemarks.additionalCosts')}\n \n \n {t('modals.referencesAndRemarks.additionalCostsDescription1')}\n \n \n {t('modals.referencesAndRemarks.additionalCostsDescription2')}\n \n \n \n onChangeField('extraWaitingTime', event.target.value)}\n />\n \n \n onChangeField('waitingTimeCosts', event.target.value)}\n />\n \n \n onChangeField('parkingTollCosts', event.target.value)}\n />\n \n \n onChangeField('otherCosts', event.target.value)}\n />\n \n \n onChangeField('comments', event.target.value)}\n InputProps={{\n minRows: '3',\n multiline: true,\n }}\n />\n \n \n \n );\n};\n\nexport default AdditionalCostsForm;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Grid } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { RemarksValues, initialRemarks } from '../../../rides/supplier/components/RemarksCard';\nimport { RideResponse } from '../../api/types';\nimport RideInformationCard from '../../customer/components/RideInformationCard';\nimport useConfirmCloseAddRemarksRide from '../hooks/useConfirmCloseAddRemarksRide';\nimport AdditionalCostsForm from './AdditionalCostsForm';\nimport ReferenceCard from './ReferenceCard';\n\nconst useStyles = makeStyles({ closeRideModal: { '& .MuiDialog-container .MuiPaper-root': { maxWidth: '900px' } } });\n\nexport interface CloseRideData {\n referenceNumber: string;\n remarks: string;\n}\n\ninterface CloseRideModalProps {\n isModalOpen: boolean;\n onClose: () => void;\n ride: RideResponse;\n onFinished: (updatedRide?: RideResponse) => void;\n supplierReference?: string;\n}\n\nconst CloseRideModal = ({ isModalOpen, onClose, ride, onFinished, supplierReference }: CloseRideModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const [remarksValues, setRemarksValues] = useState(initialRemarks);\n const [reference, setReference] = useState(supplierReference ?? null);\n const [closeRideStage, setCloseRideStage] = useState(0);\n\n const { onCloseRide, isSaving } = useConfirmCloseAddRemarksRide({\n rideId: ride.unid,\n reference,\n remarksValues,\n });\n\n const handleClose = async () => {\n if (closeRideStage === 0) {\n setCloseRideStage(1);\n return;\n }\n\n const data = await onCloseRide();\n\n onClose();\n onFinished(data);\n };\n\n const onBackClick = () => {\n if (closeRideStage === 1) {\n setCloseRideStage(0);\n return;\n }\n\n onClose();\n };\n\n return (\n \n {closeRideStage === 0 ? (\n \n \n \n \n \n \n \n \n ) : (\n \n {\n setRemarksValues({\n ...remarksValues,\n [field]: value,\n });\n }}\n />\n \n )}\n \n );\n};\n\nexport default CloseRideModal;\n","import { IconedData } from '@get-e/react-components';\nimport { AirlineSeatReclineExtra, Work } from '@mui/icons-material';\nimport { Grid, Typography, Box, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../../constants/colors';\nimport theme from '../../../../styles/theme';\nimport { RideResponse } from '../../api/types';\nimport { Vehicle } from '../../components/updateRide/VehicleOptions';\nimport withExpandable from '../../components/withExpandable';\n\nconst useStyles = makeStyles({\n image: {\n height: '62px',\n width: '182px',\n },\n headingContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n heading: {\n color: COLORS.BLUE,\n fontSize: '1rem',\n fontWeight: 700,\n marginBottom: 0,\n },\n cardContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n padding: '1rem',\n position: 'relative',\n },\n modal: {\n border: 'none',\n padding: '0',\n marginBottom: '1.5rem',\n marginTop: 0,\n },\n luggageSeatsContainer: {\n display: 'flex',\n flexDirection: 'row',\n gap: '1rem',\n },\n vehicleInfo: {\n color: COLORS.BLACK,\n paddingBottom: '.6rem',\n fontWeight: 600,\n },\n});\n\ninterface SelectedVehicleCardProps {\n data?: RideResponse;\n vehicle?: Vehicle;\n isInModal?: boolean;\n renderChevrons: JSX.Element;\n isExpanded: boolean;\n}\n\nconst SelectedVehicleCard = ({ data, vehicle, isInModal, renderChevrons, isExpanded }: SelectedVehicleCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n return (\n \n \n \n {t('pages.singleRide.selectedVehicle.title')}\n \n {!isInModal && renderChevrons}\n \n {isExpanded && (\n \n \n \n \n {`${data?.vehicle?.class} ${data?.vehicle?.type}\n (${data?.vehicle?.brandAndModel})`}\n \n \n \n \n \n \n \n \"Vehicle\"\n \n \n \n )}\n \n );\n};\n\nexport default withExpandable(SelectedVehicleCard);\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Grid } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { AssignDriverToRide } from '../../../rides/supplier/api/types';\nimport { RemarksValues, initialRemarks } from '../../../rides/supplier/components/RemarksCard';\nimport { RideResponse } from '../../api/types';\nimport RideInformationCard from '../../customer/components/RideInformationCard';\nimport useConfirmCloseAddRemarksRide from '../hooks/useConfirmCloseAddRemarksRide';\nimport useSupplierDriverInformation from '../hooks/useSupplierDriverInformation';\nimport ReferenceCard from './ReferenceCard';\nimport SelectedVehicleCard from './SelectedVehicleCard';\n\nconst useStyles = makeStyles({ confirmRideModal: { '& .MuiDialog-container .MuiPaper-root': { maxWidth: '700px' } } });\n\ninterface ConfirmRideModalProps {\n isModalOpen: boolean;\n onClose: () => void;\n onFinished: (updatedRide?: RideResponse) => void;\n ride: RideResponse;\n supplierReference?: string;\n driverChangeRequest?: AssignDriverToRide;\n isDriverUnassign?: boolean;\n}\n\nconst ConfirmRideModal = ({\n isModalOpen,\n onClose,\n onFinished,\n ride,\n supplierReference,\n driverChangeRequest,\n isDriverUnassign,\n}: ConfirmRideModalProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const [remarksValues] = useState(initialRemarks);\n const [reference, setReference] = useState(supplierReference ?? null);\n const { handleChangeDriver, handleUnassignDriver } = useSupplierDriverInformation();\n\n const { onConfirmRide, isSaving } = useConfirmCloseAddRemarksRide({\n rideId: ride.unid,\n reference,\n remarksValues,\n });\n\n const handleConfirm = async () => {\n if (driverChangeRequest) {\n await handleChangeDriver(driverChangeRequest);\n }\n\n if (isDriverUnassign) {\n await handleUnassignDriver(ride.unid);\n }\n\n const data = await onConfirmRide();\n\n onClose();\n onFinished(data);\n };\n\n return (\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n};\n\nexport default ConfirmRideModal;\n","import { Download } from '@mui/icons-material';\nimport { Grid, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport dayjs from 'dayjs';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { useMutation } from 'react-query';\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport CopyToClipboardButton from '../../../../components/buttons/CopyToClipboardButton';\nimport PageActionButton from '../../../../components/buttons/PageActionButton';\nimport { SINGLE_RIDE_PAGE } from '../../../../constants/amplitude/commonKeys';\nimport {\n SINGLE_RIDE_CLOSE,\n SINGLE_RIDE_CONFIRM,\n SINGLE_RIDE_DOWNLOAD_DOCUMENTATION,\n} from '../../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { RideStatus, getRideStatusKey } from '../../../../helpers/rideStatusUtil';\nimport theme from '../../../../styles/theme';\nimport downloadRideOrder from '../../../rides/api/downloadRideOrder';\nimport StatusBadge from '../../../rides/components/StatusBadge';\nimport { RideAmplitudeEventProperties, RideResponse } from '../../api/types';\nimport { RideContext } from '../context/RideContext';\nimport CloseRideModal from './CloseRideModal';\nimport ConfirmRideModalNew from './ConfirmRideModalNew';\nimport RideLoadingSkeleton from './rideLoadingSkeleton/RideLoadingSkeleton';\n\nconst useStyles = makeStyles(styleTheme => ({\n headerTitleWrapper: {\n marginBottom: '2rem',\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [styleTheme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 0,\n [styleTheme.breakpoints.down('sm')]: {\n width: '100%',\n marginBottom: '0.5rem',\n gap: '0.5rem',\n },\n },\n headerSecondaryTitle: {\n color: COLORS.BLUE,\n fontSize: '1.5rem',\n fontWeight: 700,\n marginRight: '1rem',\n },\n subheaderText: {\n fontWeight: 400,\n fontSize: '0.75rem',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n marginRight: '0.5rem',\n color: COLORS.BLUE,\n '& .MuiSvgIcon-root': {\n fontSize: '1.3rem',\n marginRight: '0.3rem',\n },\n [styleTheme.breakpoints.down('lg')]: { marginBottom: '1rem' },\n },\n mainWrapper: {\n display: 'initial',\n alignItems: 'center',\n padding: '0 0 0 2rem',\n [styleTheme.breakpoints.down('lg')]: { padding: 0 },\n },\n}));\n\ninterface SupplierRideHeaderProps {\n data?: RideResponse;\n refetch: () => void;\n isLoading: boolean;\n}\n\nconst RideHeader = ({ data, isLoading, refetch }: SupplierRideHeaderProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { useSupplierFinancialInformationVisibility } = useFlags();\n const [isConfirmRideModalOpen, setIsConfirmRideModalOpen] = useState(false);\n const [isCloseRideModalOpen, setIsCloseRideModalOpen] = useState(false);\n const [supplierReference, setSupplierReference] = useState(null);\n const isPageOpened = useRef(false);\n\n useEffect(() => {\n if (data?.supplierReference) {\n setSupplierReference(data.supplierReference);\n }\n }, [data?.supplierReference, setSupplierReference]);\n\n const amplitudeEventProperties = useMemo(() => {\n return {\n 'Ride number': data?.prettifiedUnid,\n 'Ride created time': dayjs.utc(data?.createdAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride pickup time': dayjs.utc(data?.pickUp.departAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride customer': data?.customer,\n 'Ride supplier': data?.supplier,\n 'Ride status': data?.status,\n 'Ride situation tags': data?.situationTag,\n 'Ride qc status': data?.qcStatus,\n 'Ride has driver': Boolean(data?.driver),\n } as RideAmplitudeEventProperties;\n }, [\n data?.createdAt,\n data?.customer,\n data?.driver,\n data?.pickUp.departAt,\n data?.prettifiedUnid,\n data?.qcStatus,\n data?.situationTag,\n data?.status,\n data?.supplier,\n ]);\n\n const { mutate: downloadRideOrderMutation } = useMutation(downloadRideOrder);\n\n const isConfirmRideButtonVisible = useMemo(\n () =>\n data?.status &&\n [getRideStatusKey(RideStatus.TO_CONFIRM), getRideStatusKey(RideStatus.TO_CONFIRM_CHANGE)].includes(data.status),\n [data?.status]\n );\n\n const isCloseRideButtonVisible = useMemo(() => data?.status === getRideStatusKey(RideStatus.TO_CLOSE), [data?.status]);\n\n const handleConfirmRide = () => {\n setIsConfirmRideModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CONFIRM, amplitudeEventProperties);\n };\n\n const handleCloseRide = () => {\n setIsCloseRideModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CLOSE, amplitudeEventProperties);\n };\n\n const handleConfirmCloseFinished = () => {\n refetch();\n };\n\n if (!data || isLoading) {\n return ;\n }\n\n if (!isPageOpened.current) {\n isPageOpened.current = true;\n logAmplitudeEvent(SINGLE_RIDE_PAGE, amplitudeEventProperties);\n }\n\n return (\n <>\n \n \n \n \n \n {t('ride')} {data?.prettifiedUnid}\n \n \n \n \n \n \n {t('buttonName.confirmRide')}\n \n \n {t('buttonName.closeRide')}\n \n \n \n \n {useSupplierFinancialInformationVisibility && (\n {\n downloadRideOrderMutation(data?.unid ?? '');\n logAmplitudeEvent(SINGLE_RIDE_DOWNLOAD_DOCUMENTATION, amplitudeEventProperties);\n }}\n >\n \n {t('pages.singleRide.downloadRideOrder')}\n \n )}\n \n \n {isConfirmRideModalOpen && (\n {\n setIsConfirmRideModalOpen(false);\n }}\n onFinished={handleConfirmCloseFinished}\n ride={data}\n supplierReference={supplierReference ? supplierReference : undefined}\n />\n )}\n {isCloseRideModalOpen && (\n setIsCloseRideModalOpen(false)}\n onFinished={handleConfirmCloseFinished}\n ride={data}\n supplierReference={supplierReference ? supplierReference : undefined}\n />\n )}\n \n \n );\n};\n\nexport default RideHeader;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Grid, Typography } from '@mui/material';\nimport clsx from 'clsx';\nimport dayjs from 'dayjs';\nimport React from 'react';\n\nimport GoogleMap from '../../../../components/navigation/GoogleMap';\nimport { COLORS } from '../../../../constants/colors';\nimport { RideResponse } from '../../api/types';\nimport CancellationPoliciesCard from '../../components/CancellationPoliciesCard';\nimport FlightInformationCard from '../../customer/components/FlightInformationCard';\nimport PassengerInformationCard from '../../customer/components/PassengerInformationCard';\nimport RideInformationCard from '../../customer/components/RideInformationCard';\nimport DriverReferencesCard from '../components/DriverReferencesCard';\nimport SelectedVehicleCard from '../components/SelectedVehicleCard';\n\nexport const renderDesktopView = (\n data: RideResponse | undefined | any,\n classes: any,\n t: any,\n refetch: () => void,\n showPrice: boolean\n) => {\n return (\n <>\n \n \n \n \n {data?.vehicle && (\n \n \n \n )}\n \n \n \n {Boolean(data?.passengers?.length) && (\n \n \n \n )}\n {Boolean(data?.cancellationPolicies?.length) && (\n \n \n \n )}\n \n \n \n \n {showPrice && (\n \n {t('price')}:\n \n {data?.vehicle?.priceCurrency\n ? `${data.vehicle?.priceCurrency} `\n : `${data?.price?.isoCurrency} `}\n {data?.price?.amount}\n \n \n )}\n \n\n \n \n \n \n \n );\n};\n\nexport const renderMobileView = (\n data: RideResponse | undefined | any,\n classes: any,\n t: any,\n refetch: () => void,\n showPrice: boolean\n) => {\n return (\n <>\n \n \n \n {showPrice && (\n \n {t('price')}:\n \n {data?.vehicle?.priceCurrency\n ? `${data.vehicle?.priceCurrency} `\n : `${data?.price?.isoCurrency} `}\n {data?.price?.amount}\n \n \n )}\n \n \n \n \n {data?.vehicle && (\n \n \n \n )}\n \n \n \n {Boolean(data?.passengers?.length) && (\n \n \n \n )}\n {Boolean(data?.cancellationPolicies?.length) && (\n \n \n \n )}\n \n \n \n \n \n );\n};\n","/* eslint-disable @typescript-eslint/no-misused-promises */\nimport { useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useParams } from 'react-router-dom';\n\nimport { COLORS } from '../../../constants/colors';\nimport theme from '../../../styles/theme';\nimport { useRide } from '../api/useRide';\nimport RideHeader from './components/RideHeader';\nimport RideLoadingSkeleton from './components/rideLoadingSkeleton/RideLoadingSkeleton';\nimport { renderDesktopView, renderMobileView } from './helpers/renderRideView';\n\nconst useStyles = makeStyles(styleTheme => ({\n contentContainer: {\n paddingLeft: '2rem',\n marginBottom: '0.5rem',\n [styleTheme.breakpoints.down('lg')]: { padding: '0' },\n },\n cancellationPolicies: {\n marginTop: '1.5rem',\n width: '96%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n padding: '1rem',\n marginLeft: '2rem',\n position: 'relative',\n [styleTheme.breakpoints.down('lg')]: {\n marginLeft: '0',\n width: '100%',\n },\n '& h4': { color: `${COLORS.BLUE} !important` },\n },\n googleMapContainer: {\n height: '20rem',\n display: 'flex',\n justifyContent: 'flex-start',\n marginTop: '1rem',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '.5rem',\n overflow: 'hidden',\n '& > *': {\n borderTopLeftRadius: '.5rem',\n borderTopRightRadius: '.5rem',\n overflow: 'hidden',\n },\n },\n googleMapContainerMobile: {\n height: '14.5rem',\n display: 'flex',\n justifyContent: 'flex-start',\n marginTop: '1rem',\n marginBottom: '0.5rem',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '.5rem',\n '& > *': {\n borderTopLeftRadius: '.5rem',\n borderTopRightRadius: '.5rem',\n overflow: 'hidden',\n },\n },\n priceOnMap: {\n height: '62px',\n backgroundColor: COLORS.WHITE,\n display: 'flex',\n alignItems: 'center',\n marginLeft: '1rem',\n justifyContent: 'flex-start',\n [styleTheme.breakpoints.down('sm')]: {\n justifyContent: 'space-between',\n marginRight: '1rem',\n },\n },\n}));\n\nconst RideView = () => {\n const classes = useStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { rideId }: { rideId: string } = useParams();\n const { data, isLoading, refetch } = useRide(rideId);\n const { t } = useTranslation();\n const { useSupplierFinancialInformationVisibility } = useFlags();\n\n if (isLoading) {\n return ;\n }\n\n return (\n <>\n \n {isMobile\n ? renderMobileView(data, classes, t, refetch, useSupplierFinancialInformationVisibility)\n : renderDesktopView(data, classes, t, refetch, useSupplierFinancialInformationVisibility)}\n \n );\n};\n\nexport default RideView;\n","import { FullScreenLoader } from '@get-e/react-components';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { FunctionComponent } from 'react';\n\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { AccountType } from '../../../services/types';\nimport { default as CustomerRide } from '../customer/Ride';\nimport { default as CustomerRideNew } from '../customer/RideView';\nimport { default as SupplierRide } from '../supplier/Ride';\nimport { default as SupplierRideView } from '../supplier/RideView';\n\nconst RidePageSwitch: FunctionComponent = () => {\n const {\n currentProfile: { accountType },\n } = useCurrentProfileContext();\n\n const { useNewCustomerRidePage, useNewSupplierPage } = useFlags();\n\n switch (accountType) {\n case AccountType.CUSTOMER:\n return useNewCustomerRidePage ? : ;\n case AccountType.SUPPLIER:\n return useNewSupplierPage ? : ;\n default:\n return ;\n }\n};\n\nexport default RidePageSwitch;\n","import { RideResponse } from '../../pages/ride/api/types';\nimport { Ride } from '../../pages/ride/components/RideInformation';\nimport { RideMapType } from '../../pages/ride/customer/context/RideContext';\n\nexport const mapRideToContext = (ride: RideResponse, rideValues: Partial): RideMapType => ({\n prettifiedUnid: ride.prettifiedUnid,\n pickupCoordinates:\n rideValues.pickUpLocation?.latitude && rideValues.pickUpLocation?.longitude\n ? {\n lat: rideValues.pickUpLocation?.latitude,\n lon: rideValues.pickUpLocation?.longitude,\n }\n : undefined,\n dropOffCoordinates:\n rideValues.dropOffLocation?.latitude && rideValues.dropOffLocation?.longitude\n ? {\n lat: rideValues.dropOffLocation?.latitude,\n lon: rideValues.dropOffLocation?.longitude,\n }\n : undefined,\n dropOffPlaceId: rideValues.dropOffLocation?.id,\n pickUpPlaceId: rideValues.pickUpLocation?.id,\n lastPositionUpdate: ride?.lastPositionUpdate,\n});\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography } from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nconst LeavePageModal = ({ onClose, onConfirm }: { onClose: () => void; onConfirm: () => void }) => {\n const { t } = useTranslation();\n\n return (\n \n {t('modals.leavePage.description')}\n \n {t('doYouWantToProceed')}\n \n \n );\n};\n\nexport default LeavePageModal;\n","import { TextField, AddDeleteButtons } from '@get-e/react-components';\nimport PersonOutlineIcon from '@material-ui/icons/PersonOutline';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport PhoneOutlinedIcon from '@mui/icons-material/PhoneOutlined';\nimport { Box, FormControlLabel, InputAdornment, Radio, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport { MuiTelInput } from 'mui-tel-input';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { getCountryCode } from '../../../../helpers/getCountryCode';\nimport { PassengerError } from './PassengerList';\n\nconst useStyles = makeStyles({\n formField: {\n marginBottom: '1rem',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n halfFormField: { width: 'calc(50% - 1rem)' },\n marginLeft: { marginLeft: '2rem' },\n multipleSelectItem: {\n width: '100% !important',\n padding: '0.5rem !important',\n '& .MuiListItemText-root': { paddingLeft: '0.5rem !important' },\n },\n header: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n marginBottom: '1rem',\n },\n});\n\nexport interface Passenger {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n isLead: boolean;\n uuid?: string;\n}\n\ninterface PassengerInformationProps {\n passenger?: Passenger;\n handleAddNewPassenger: () => void;\n handleRemovePassenger: (id: string) => void;\n updatePassengers: (passenger: Passenger, error: PassengerError) => void;\n passengerCount: number;\n errorValues?: PassengerError;\n isOnlyOnePassenger?: boolean;\n}\n\nconst PassengerInformation = ({\n passenger,\n handleAddNewPassenger,\n handleRemovePassenger,\n updatePassengers,\n passengerCount,\n errorValues,\n isOnlyOnePassenger,\n}: PassengerInformationProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n const [values, setValues] = useState(\n passenger ?? {\n id: uuidv4(),\n firstName: '',\n lastName: '',\n email: '',\n phone: '',\n isLead: false,\n }\n );\n\n useEffect(() => {\n if (isOnlyOnePassenger) {\n handleChange('isLead', true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isOnlyOnePassenger]);\n\n const handleChange = (key: T, newValue: Passenger[T] & (string | boolean)): void => {\n setValues({\n ...values,\n [key]: newValue,\n });\n\n updatePassengers(\n {\n ...values,\n [key]: newValue,\n },\n {\n ...errorValues,\n [key]: null,\n } as PassengerError\n );\n };\n\n return (\n <>\n \n \n Passenger {passengerCount}\n \n {\n handleRemovePassenger(passenger?.id ?? '-1');\n }}\n isDeleteDisabled={isOnlyOnePassenger}\n />\n \n handleChange('firstName', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.firstName}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n handleChange('lastName', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.lastName}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n handleChange('phone', value)}\n required={values.isLead}\n error={values.isLead && errorValues?.phone !== null}\n helperText={values.isLead && errorValues?.phone ? t(errorValues.phone) : null}\n variant=\"filled\"\n fullWidth\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n handleChange('email', event.target.value)}\n required={values.isLead}\n autoComplete=\"off\"\n value={values.email}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n }\n label=\"Main passenger\"\n sx={{ marginBottom: '2rem' }}\n />\n \n );\n};\n\nexport default PassengerInformation;\n","import { FormHelperText, RadioGroup } from '@mui/material';\nimport React, { Dispatch, SetStateAction, useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport PassengerInformation, { Passenger } from './PassengerInformation';\n\nexport interface PassengerError {\n id: string;\n firstName: InputError | null;\n lastName: InputError | null;\n email: InputError | null;\n phone: InputError | null;\n}\n\ninterface PassengerListProps {\n passengers: Passenger[];\n setValues: Dispatch>;\n errors: PassengerError[];\n setErrors: Dispatch>;\n}\n\nexport const PassengerList = ({ passengers, setValues, errors, setErrors }: PassengerListProps) => {\n const { t } = useTranslation();\n const [contentKey, setContentKey] = useState(0);\n const [isMainPassengerRequiredError, setIsMainPassengerRequiredError] = useState(false);\n const isOnlyOnePassenger = passengers.length === 1;\n\n useEffect(() => {\n if (!passengers.find(el => el.isLead)) {\n setIsMainPassengerRequiredError(true);\n } else {\n setIsMainPassengerRequiredError(false);\n }\n }, [passengers]);\n\n const handleAddNewPassenger = () => {\n const initialPassengerId = uuidv4();\n\n const updatedValues = [\n ...passengers,\n {\n id: initialPassengerId,\n firstName: '',\n lastName: '',\n email: '',\n phone: '',\n isLead: false,\n },\n ];\n\n const updatedErrorValues = [\n ...errors,\n {\n id: initialPassengerId,\n firstName: null,\n lastName: null,\n email: null,\n phone: null,\n isLead: false,\n },\n ];\n\n setContentKey(contentKey + 1);\n setValues(updatedValues);\n setErrors(updatedErrorValues);\n };\n\n const handleRemovePassenger = (id: string) => {\n const updatedValues = passengers.filter(traveller => traveller.id !== id);\n\n setValues(updatedValues);\n };\n\n const updatePassengers = (updatedPassenger: Passenger, updatedError: PassengerError) => {\n const updatedValues = passengers.map(passenger => (passenger.id === updatedPassenger.id ? updatedPassenger : passenger));\n const updatedErrors = errors.map(passenger => (passenger.id === updatedPassenger.id ? updatedError : passenger));\n\n setValues(updatedValues);\n setErrors(updatedErrors);\n };\n\n const handleChangeMainPassenger = (passengerId: string) => {\n setValues(prevPassengers =>\n prevPassengers.map(passenger => ({\n ...passenger,\n isLead: passenger.id === passengerId,\n }))\n );\n setContentKey(contentKey + 1);\n };\n\n return (\n el.isLead)?.id}\n onChange={event => handleChangeMainPassenger((event.target as HTMLInputElement).value)}\n >\n
    \n {isMainPassengerRequiredError && {t('errors.mainPassengerRequired')}}\n {passengers?.map((passenger, index) => {\n return (\n el.id === passenger.id)}\n isOnlyOnePassenger={isOnlyOnePassenger}\n />\n );\n })}\n
    \n \n );\n};\n","import { Spinner, TextField, IconedData } from '@get-e/react-components';\nimport CheckIcon from '@mui/icons-material/Check';\nimport DangerousOutlinedIcon from '@mui/icons-material/DangerousOutlined';\nimport FlightLandIcon from '@mui/icons-material/FlightLand';\nimport FlightTakeoffIcon from '@mui/icons-material/FlightTakeoff';\nimport { Grid, Box, Typography, InputAdornment, Tooltip, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport clsx from 'clsx';\nimport dayjs from 'dayjs';\nimport React, { SetStateAction, Dispatch, useState, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport uuid from 'react-uuid';\n\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport { getAirlineIataImage } from '../../../../services/routes';\nimport { PrimaryTimeZone } from '../../../../services/types';\nimport theme from '../../../../styles/theme';\nimport { FlightDetails } from '../../../rides/api/types';\n\nconst useStyles = makeStyles(() => ({\n centerContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n '& > div > span': { fontWeight: 700 },\n },\n noFlightTracking: {\n '& .MuiInputBase-root': {\n borderBottom: `2px solid ${COLORS.ORANGE_TEXT}`,\n '&:hover:before': { borderBottom: 'none' },\n '&:before': { borderBottom: 'none' },\n '&:after': { borderBottom: 'none' },\n '&.Mui-focused': { borderBottom: `2px solid ${COLORS.ORANGE_TEXT}` },\n },\n },\n flightTracking: {\n '& .MuiInputBase-root': {\n borderBottom: `2px solid ${COLORS.GREEN}`,\n '&:hover:before': { borderBottom: 'none' },\n '&:before': { borderBottom: 'none' },\n '&:after': { borderBottom: 'none' },\n '&.Mui-focused': { borderBottom: `2px solid ${COLORS.GREEN}` },\n },\n },\n}));\n\nconst AIRLINE_IMAGE_WIDTH = 75;\nconst AIRLINE_IMAGE_HEIGHT = 25;\n\nexport interface RideError {\n pickUpDate: InputError | null;\n pickUpTime: InputError | null;\n travellers: InputError | null;\n luggages: InputError | null;\n pickUpLocation: InputError | null;\n dropOffLocation: InputError | null;\n}\n\nexport const initialRideErrors = {\n pickUpDate: null,\n pickUpTime: null,\n travellers: null,\n luggages: null,\n pickUpLocation: null,\n dropOffLocation: null,\n};\n\nexport interface Ride {\n id: string;\n flightNumber: string;\n flightDetails: FlightDetails;\n primaryTimeZone: PrimaryTimeZone | null;\n}\n\nexport const initialRide = {\n id: uuid(),\n flightNumber: '',\n flightDetails: {} as FlightDetails,\n primaryTimeZone: null,\n} as Ride;\n\ninterface ChangeFlightNumberProps {\n handleFlightNumberFinishing: () => void;\n isLoadingFlight?: boolean;\n isErrorFlight?: boolean;\n isUtc: boolean;\n flightDetails: FlightDetails;\n setFlightDetails: Dispatch>;\n flightNumber: string;\n setFlightNumber: Dispatch>;\n}\n\nconst ChangeFlightNumber = ({\n handleFlightNumberFinishing,\n isLoadingFlight,\n isErrorFlight,\n isUtc,\n flightDetails,\n flightNumber,\n setFlightNumber,\n}: ChangeFlightNumberProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const [imageError, setImageError] = useState(false);\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const isFlightTracked = !isErrorFlight && Boolean(flightDetails.number);\n\n const flightDepartureDateTime = useMemo(() => {\n const dateTime = isUtc ? flightDetails.departure?.datetimeZulu : flightDetails.departure?.datetimeLocal;\n\n return dateTime && dayjs(dateTime).utc().format(DATE_FORMATS['DD MMM at HH:mm A']);\n }, [isUtc, flightDetails.departure?.datetimeLocal, flightDetails.departure?.datetimeZulu]);\n\n const flightArrivalDateTime = useMemo(() => {\n const dateTime = isUtc ? flightDetails.arrival?.datetimeZulu : flightDetails.arrival?.datetimeLocal;\n\n return dateTime && dayjs(dateTime).utc().format(DATE_FORMATS['DD MMM at HH:mm A']);\n }, [isUtc, flightDetails.arrival?.datetimeLocal, flightDetails.arrival?.datetimeZulu]);\n\n const airlineAbbreviation = useMemo(() => flightNumber.replace(/[^a-zA-Z]/g, ''), [flightNumber]);\n\n const handleImageError = () => {\n setImageError(true);\n };\n\n const flightIcon = useMemo(() => {\n if (isFlightTracked) {\n return airlineAbbreviation && flightDepartureDateTime && !imageError ? (\n \n ) : (\n \n );\n }\n\n return flightNumber ? : <>;\n }, [isFlightTracked, flightNumber, airlineAbbreviation, flightDepartureDateTime, imageError]);\n\n return (\n <>\n \n \n Flight information\n \n \n \n \n {\n setFlightNumber(event.target.value);\n handleFlightNumberFinishing();\n }}\n className={clsx({\n [classes.flightTracking]: isFlightTracked,\n [classes.noFlightTracking]: !isFlightTracked && flightNumber !== '',\n })}\n InputProps={{\n endAdornment: (\n \n \n {isLoadingFlight ? : flightIcon}\n \n \n ),\n }}\n />\n \n \n {isFlightTracked && flightDepartureDateTime && (\n \n \n \n {flightDepartureDateTime} {isUtc ? '(UTC)' : ''}\n \n \n )}\n {isFlightTracked && flightArrivalDateTime && (\n \n \n \n {flightArrivalDateTime} {isUtc ? '(UTC)' : ''}\n \n \n )}\n \n \n \n );\n};\n\nexport default ChangeFlightNumber;\n","import { TextField } from '@get-e/react-components';\nimport { Grid, Box, Typography, FormControl, InputLabel, Select, MenuItem } from '@mui/material';\nimport React, { SetStateAction, Dispatch, useContext } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport uuid from 'react-uuid';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { RIDE_INFORMATION_REFERENCE } from '../../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport { CustomField } from '../../api/types';\nimport { RideContext } from '../../customer/context/RideContext';\n\nexport interface ReferenceError {\n customFields: { [key: string]: InputError | null };\n}\n\nexport const initialReferenceErrors = { customFields: {} };\n\nexport interface ReferenceField {\n id?: string;\n customReference: string;\n customFields: CustomField[];\n}\n\nexport const initialReference = {\n id: uuid(),\n customReference: '',\n customFields: [],\n} as ReferenceField;\n\ninterface ChangeReferencesProps {\n referenceValues: ReferenceField;\n setReferenceValues: Dispatch>;\n errors: ReferenceError;\n setErrors: Dispatch>;\n initialReferenceValues?: ReferenceField | null;\n}\n\nconst ChangeReferences = ({\n referenceValues,\n setReferenceValues,\n errors,\n setErrors,\n initialReferenceValues,\n}: ChangeReferencesProps) => {\n const { t } = useTranslation();\n const { amplitudeEventProperties } = useContext(RideContext);\n\n const handleChangeValue = (field: keyof ReferenceField, value: string | null, fieldKey?: string) => {\n let newValues = { ...referenceValues };\n\n newValues = {\n ...referenceValues,\n [field]: value,\n };\n\n if (field === 'customFields') {\n const updatedCustomFields = referenceValues.customFields?.map(customField => {\n if (customField.key === fieldKey) {\n return {\n ...customField,\n value,\n } as CustomField;\n }\n\n return customField;\n });\n\n newValues.customFields = updatedCustomFields;\n }\n\n const newErrors = { ...errors };\n\n if (field !== 'customFields') {\n newErrors[field] = null;\n } else if (fieldKey) {\n newErrors.customFields[fieldKey] = null;\n }\n\n setReferenceValues(newValues);\n setErrors(newErrors);\n };\n\n const renderField = (customField: CustomField) => {\n const customFieldError =\n errors.customFields[customField.key] !== undefined && errors.customFields[customField.key] !== null;\n\n const commonProps = {\n label: customField.label,\n required: customField.isRequired,\n error: customFieldError,\n onBlur: () =>\n initialReferenceValues?.customFields[customField.key] !== referenceValues.customFields[customField.key]\n ? logAmplitudeEvent(RIDE_INFORMATION_REFERENCE, amplitudeEventProperties)\n : {},\n };\n\n if (customField.type === 'ENUM' && Array.isArray(customField.options) && customField.options.length > 0) {\n return (\n \n {customField.label}\n handleChangeValue('customFields', event.target.value, customField.key)}\n >\n {customField.options.map(option => (\n \n {option.label}\n \n ))}\n \n \n );\n }\n\n return (\n handleChangeValue('customFields', event.target.value, customField.key)}\n helperText={customFieldError ? t('form.helperText.empty') : ' '}\n />\n );\n };\n\n return (\n <>\n \n \n {t('pages.rides.references')}\n \n \n \n \n handleChangeValue('customReference', event.target.value)}\n onBlur={() =>\n initialReferenceValues?.customReference !== referenceValues.customReference\n ? logAmplitudeEvent(RIDE_INFORMATION_REFERENCE, amplitudeEventProperties)\n : {}\n }\n />\n \n\n {referenceValues.customFields?.map(customField => (\n \n {renderField(customField)}\n \n ))}\n \n \n );\n};\n\nexport default ChangeReferences;\n","import { TextField } from '@get-e/react-components';\nimport { alpha } from '@material-ui/core/styles';\nimport LuggageOutlinedIcon from '@mui/icons-material/LuggageOutlined';\nimport PersonOutlineOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';\nimport { FormControlLabel, Grid, Switch, Box, Typography, InputAdornment, Tooltip, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { DatePicker, TimePicker } from '@mui/x-date-pickers-pro';\nimport clsx from 'clsx';\nimport dayjs from 'dayjs';\nimport React, { SetStateAction, Dispatch, useState, useContext } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport uuid from 'react-uuid';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport CopyToClipboardButton from '../../../../components/buttons/CopyToClipboardButton';\nimport {\n RIDE_INFORMATION_CAR_PICKUP_TIME,\n RIDE_INFORMATION_FROM,\n RIDE_INFORMATION_LUGGAGE,\n RIDE_INFORMATION_PASSENGERS,\n RIDE_INFORMATION_PICKUP_DATE,\n RIDE_INFORMATION_SPECIAL_REQUEST,\n RIDE_INFORMATION_TO,\n} from '../../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../../../constants/datePickerPlaceholder';\nimport { TIME_FORMATS } from '../../../../constants/timeFormats';\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport { PrimaryTimeZone } from '../../../../services/types';\nimport theme from '../../../../styles/theme';\nimport { FlightDetails } from '../../../rides/api/types';\nimport { SearchLocation } from '../../api/types';\nimport { NewRideContext } from '../../customer/context/RideContext';\nimport { SearchLocationComponent } from '../SearchLocationComponent';\n\nconst useStyles = makeStyles(styleTheme => ({\n centerContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n '& > div > span': { fontWeight: 700 },\n },\n timeSepartor: {\n '& .MuiTimePickerToolbar-hourMinuteLabel': {\n display: 'flex',\n alignItems: 'center',\n },\n '& .MuiTimePickerToolbar-separator': { marginTop: '-.5rem' },\n },\n utcSwitch: {\n whiteSpace: 'nowrap',\n marginRight: '.3rem',\n '& .MuiSwitch-switchBase.Mui-checked': {\n color: COLORS.ORANGE_WARNING,\n '&:hover': { backgroundColor: alpha(COLORS.ORANGE_WARNING, theme.palette.action.hoverOpacity) },\n },\n '& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': { backgroundColor: COLORS.ORANGE_WARNING },\n },\n utcSwitchChecked: {\n color: COLORS.ORANGE_WARNING,\n fontWeight: 600,\n },\n utcBlock: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n },\n}));\n\nexport interface RideError {\n pickUpDate: InputError | null;\n pickUpTime: InputError | null;\n travellers: InputError | null;\n luggages: InputError | null;\n pickUpLocation: InputError | null;\n dropOffLocation: InputError | null;\n}\n\nexport const initialRideErrors = {\n pickUpDate: null,\n pickUpTime: null,\n travellers: null,\n luggages: null,\n pickUpLocation: null,\n dropOffLocation: null,\n};\n\nexport interface Ride {\n id: string;\n pickUpLocation: SearchLocation | null;\n dropOffLocation: SearchLocation | null;\n pickUpDate: Date | null;\n pickUpTime: Date | null;\n pickUpDateLocal: Date | null;\n pickUpTimeLocal: Date | null;\n dropOffDate: Date | null;\n dropOffDateLocal: Date | null;\n travellers: string;\n luggages: string;\n flightNumber: string;\n specialRequest: string;\n customReference: string;\n flightDetails: FlightDetails;\n primaryTimeZone: PrimaryTimeZone | null;\n}\n\nexport const initialRide = {\n id: uuid(),\n pickUpLocation: null,\n dropOffLocation: null,\n pickUpDate: null,\n pickUpDateLocal: null,\n pickUpTime: null,\n pickUpTimeLocal: null,\n dropOffDate: null,\n dropOffDateLocal: null,\n travellers: '',\n luggages: '',\n specialRequest: '',\n customReference: '',\n flightDetails: {} as FlightDetails,\n primaryTimeZone: null,\n} as Ride;\n\ninterface ChangeRideInformationProps {\n rideValues: Ride;\n setRideValues: Dispatch>;\n errors: RideError;\n setErrors: Dispatch>;\n isUtc: boolean;\n initialRideValues?: Ride | null;\n setIsUtc: Dispatch>;\n}\n\nconst ChangeRideInformation = ({\n rideValues,\n setRideValues,\n errors,\n setErrors,\n initialRideValues,\n isUtc,\n setIsUtc,\n}: ChangeRideInformationProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const [inputValue, setInputValue] = useState('');\n const [inputValueDropOff, setInputValueDropOff] = useState('');\n const [openDate, setOpenDate] = useState(false);\n const [openTime, setOpenTime] = useState(false);\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const { amplitudeEventProperties } = useContext(NewRideContext);\n\n const handleChangeValue = (field: keyof Ride, value: string | Date | SearchLocation | null, fieldKey?: string) => {\n let newValues = { ...rideValues };\n\n newValues = {\n ...rideValues,\n [field]: value,\n };\n\n const newErrors = { ...errors };\n\n newErrors.pickUpDate = null;\n newErrors.pickUpTime = null;\n newErrors[field] = null;\n\n if (field === 'pickUpDateLocal') {\n newValues.pickUpTimeLocal = dayjs(\n dayjs(value as Date).format(DATE_FORMATS['YYYY-MM-DDT']) +\n dayjs(newValues.pickUpTimeLocal).format(TIME_FORMATS['HH:mm:ss'])\n ).toDate();\n }\n\n if (field === 'pickUpDate') {\n newValues.pickUpTime = dayjs(\n dayjs(value as Date).format(DATE_FORMATS['YYYY-MM-DDT']) +\n dayjs(newValues.pickUpTime).format(TIME_FORMATS['HH:mm:ss'])\n ).toDate();\n }\n\n setRideValues(newValues);\n setErrors(newErrors);\n };\n\n return (\n <>\n \n \n {t('rideInformation')}\n \n \n setIsUtc?.(event.target.checked)} name=\"primaryTimeZone\" />\n }\n label=\"Local\"\n labelPlacement={'start'}\n />\n UTC\n \n \n \n \n \n {\n handleChangeValue('pickUpLocation', newValue);\n }}\n label={t('pickUpLocation')}\n logEvent={() => logAmplitudeEvent(RIDE_INFORMATION_FROM, amplitudeEventProperties)}\n />\n \n \n {\n handleChangeValue('dropOffLocation', newValue);\n }}\n label={t('dropOffLocation')}\n logEvent={() => logAmplitudeEvent(RIDE_INFORMATION_TO, amplitudeEventProperties)}\n />\n \n \n \n \n \n handleChangeValue(isUtc ? 'pickUpDate' : 'pickUpDateLocal', newValue)}\n format={DATE_FORMATS['dd MMM yyyy']}\n onClose={() => {\n logAmplitudeEvent(RIDE_INFORMATION_PICKUP_DATE, amplitudeEventProperties);\n setOpenDate(false);\n }}\n slotProps={{\n textField: {\n error: errors.pickUpDate !== null,\n helperText: errors.pickUpDate ? t(errors.pickUpDate) : '',\n variant: 'filled',\n required: true,\n inputProps: { readOnly: true },\n onClick: () => setOpenDate(true),\n },\n }}\n localeText={datePickerPlaceholder}\n open={openDate}\n />\n \n \n \n \n handleChangeValue(isUtc ? 'pickUpTime' : 'pickUpTimeLocal', newValue)}\n format={TIME_FORMATS['HH:mm a']}\n onClose={() => {\n logAmplitudeEvent(RIDE_INFORMATION_CAR_PICKUP_TIME, amplitudeEventProperties);\n setOpenTime(false);\n }}\n slotProps={{\n textField: {\n error: errors.pickUpTime !== null,\n helperText: errors.pickUpTime ? t(errors.pickUpTime) : '',\n variant: 'filled',\n required: true,\n inputProps: { readOnly: true },\n onClick: () => setOpenTime(true),\n },\n mobilePaper: { className: classes.timeSepartor },\n }}\n ampm={false}\n open={openTime}\n />\n \n \n \n \n \n handleChangeValue('travellers', event.target.value)}\n error={errors.travellers !== null}\n helperText={errors.travellers && t(errors.travellers)}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n inputProps: { min: 1 },\n }}\n onBlur={() =>\n initialRideValues?.travellers !== rideValues.travellers\n ? logAmplitudeEvent(RIDE_INFORMATION_PASSENGERS, amplitudeEventProperties)\n : {}\n }\n noHelperTextSpace\n />\n \n \n handleChangeValue('luggages', event.target.value)}\n error={errors.luggages !== null}\n helperText={errors.luggages && t(errors.luggages)}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n inputProps: { min: 0 },\n }}\n onBlur={() =>\n initialRideValues?.luggages !== rideValues.luggages\n ? logAmplitudeEvent(RIDE_INFORMATION_LUGGAGE, amplitudeEventProperties)\n : {}\n }\n noHelperTextSpace\n />\n \n \n \n handleChangeValue('specialRequest', event.target.value)}\n multiline\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n onBlur={() =>\n initialRideValues?.specialRequest !== rideValues.specialRequest\n ? logAmplitudeEvent(RIDE_INFORMATION_SPECIAL_REQUEST, amplitudeEventProperties)\n : {}\n }\n />\n \n \n \n );\n};\n\nexport default ChangeRideInformation;\n","/* eslint-disable no-nested-ternary */\nimport { Spinner } from '@get-e/react-components';\nimport { DirectionsCar } from '@mui/icons-material';\nimport { Alert, Box, Grid, Typography } from '@mui/material';\nimport React, { Dispatch, SetStateAction, useContext, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { RIDE_INFORMATION_VEHICLE_CARD } from '../../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport SelectedVehicleCard from '../../customer/components/SelectedVehicleCard';\nimport { RideContext } from '../../customer/context/RideContext';\nimport NoVehicleAvailable from '../NoVehicleAvailable';\n\nexport interface Vehicle {\n id: string;\n vehicleClass: string;\n vehicleType: string;\n vehicleImage: string;\n travellers: string;\n luggages: string;\n price: number;\n priceCurrency: string;\n carId?: string;\n}\n\ninterface VehiclesProp {\n selectedVehicle: Vehicle | null;\n setSelectedVehicle: Dispatch>;\n vehicleList: Vehicle[];\n isError?: boolean;\n setIsError?: () => void;\n isLoading: boolean;\n maxPassengers?: number;\n}\n\nconst VehicleOptions = ({\n selectedVehicle,\n setSelectedVehicle,\n vehicleList = [],\n isError = false,\n setIsError,\n isLoading,\n maxPassengers,\n}: VehiclesProp) => {\n const { t } = useTranslation();\n const { amplitudeEventProperties } = useContext(RideContext);\n\n useEffect(() => {\n if (vehicleList.length > 0 && selectedVehicle) {\n const selectedVehicleExists = vehicleList.some(\n vehicle => getUniqueVehicleId(selectedVehicle) === getUniqueVehicleId(vehicle)\n );\n\n if (!selectedVehicleExists) {\n setSelectedVehicle(vehicleList[0]);\n }\n }\n }, [selectedVehicle, vehicleList, setSelectedVehicle]);\n\n const onCardClick = (vehicle: Vehicle | null) => {\n setSelectedVehicle(vehicle);\n setIsError?.();\n\n logAmplitudeEvent(RIDE_INFORMATION_VEHICLE_CARD, amplitudeEventProperties);\n };\n\n const getUniqueVehicleId = (vehicle: Vehicle | null): string =>\n `${vehicle?.vehicleClass}${vehicle?.vehicleType}${vehicle?.travellers}${vehicle?.luggages}`;\n\n if (isLoading) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n {t('pages.rides.selectVehicle')}\n \n {!selectedVehicle && (\n }\n severity=\"error\"\n style={{ marginBottom: '1rem' }}\n >\n {t('errors.selectVehicle')}\n \n )}\n {vehicleList.length > 0 ? (\n vehicleList.map((vehicle: Vehicle) => {\n return (\n onCardClick(vehicle)}\n vehicle={vehicle}\n isPassengerOverMax={parseInt(vehicle?.travellers) < (maxPassengers || 0)}\n />\n );\n })\n ) : selectedVehicle ? (\n onCardClick(selectedVehicle)}\n vehicle={selectedVehicle}\n isPassengerOverMax={parseInt(selectedVehicle?.travellers) < (maxPassengers || 0)}\n />\n ) : (\n \n )}\n \n );\n};\n\nexport default VehicleOptions;\n","// eslint-disable @typescript-eslint/no-unsafe-return\nimport { Grid } from '@mui/material';\nimport React, { useContext, useMemo } from 'react';\n\nimport GoogleMap from '../../../../components/navigation/GoogleMap';\nimport { COLORS } from '../../../../constants/colors';\nimport { NewRideContext } from '../context/RideContext';\n\nconst RideMap = () => {\n const {\n summary: { pickupCoordinates, dropOffCoordinates, pickUpPlaceId, dropOffPlaceId, prettifiedUnid, lastPositionUpdate },\n } = useContext(NewRideContext);\n\n const points = useMemo(() => {\n return [pickupCoordinates, dropOffCoordinates];\n }, [dropOffCoordinates, pickupCoordinates]);\n\n return (\n \n \n \n \n \n \n \n );\n};\n\nexport default RideMap;\n","import { Dispatch, SetStateAction, useState } from 'react';\n\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport allValid from '../../../../helpers/inputValidation/validators/allValid';\nimport and from '../../../../helpers/inputValidation/validators/and';\nimport isAfterTime from '../../../../helpers/inputValidation/validators/isAfterTime';\nimport isFilledString from '../../../../helpers/inputValidation/validators/isFilledString';\nimport isNotNull from '../../../../helpers/inputValidation/validators/isNotNull';\nimport isPastDate from '../../../../helpers/inputValidation/validators/isPastDate';\nimport { FlightDetails } from '../../../rides/api/types';\nimport { initialRide, initialRideErrors, Ride, RideError } from '../../components/updateRide/ChangeRideInformation';\n\nconst useNewRideInformation = (\n isUtc: boolean\n): {\n rideValues: Ride;\n setRideValues: Dispatch>;\n rideErrors: RideError;\n setRideErrors: Dispatch>;\n validateRideFields: () => boolean;\n flightDetails: FlightDetails;\n setFlightDetails: Dispatch>;\n} => {\n const [errors, setErrors] = useState(initialRideErrors);\n const [rideValues, setRideValues] = useState(initialRide);\n const [flightDetails, setFlightDetails] = useState({} as FlightDetails);\n\n const validateFields = () => {\n const pickupDate = isUtc ? rideValues.pickUpDate : rideValues.pickUpDateLocal;\n const pickupTime = isUtc ? rideValues.pickUpTime : rideValues.pickUpTimeLocal;\n\n const validated = {\n pickUpDate: and(isNotNull(pickupDate, InputError.Empty), () => isPastDate(pickupDate, InputError.InvalidPastDate)),\n pickUpTime: and(isNotNull(pickupTime, InputError.Empty), () =>\n isAfterTime(pickupTime, new Date(), InputError.InvalidPastTime)\n ),\n travellers: isFilledString(rideValues.travellers, InputError.Empty),\n luggages: isFilledString(rideValues.luggages, InputError.Empty),\n pickUpLocation: isNotNull(rideValues.pickUpLocation, InputError.Empty),\n dropOffLocation: isNotNull(rideValues.dropOffLocation, InputError.Empty),\n };\n\n if (!allValid(validated)) {\n const fieldErrors = {\n pickUpDate: validated.pickUpDate.isValid ? null : validated.pickUpDate.error,\n pickUpTime: validated.pickUpTime.isValid ? null : validated.pickUpTime.error,\n travellers: validated.travellers.isValid ? null : validated.travellers.error,\n luggages: validated.luggages.isValid ? null : validated.luggages.error,\n pickUpLocation: validated.pickUpLocation.isValid ? null : validated.pickUpLocation.error,\n dropOffLocation: validated.dropOffLocation.isValid ? null : validated.dropOffLocation.error,\n };\n\n setErrors(fieldErrors);\n return false;\n }\n\n return true;\n };\n\n return {\n rideValues,\n setRideValues,\n setFlightDetails,\n flightDetails,\n rideErrors: errors,\n setRideErrors: setErrors,\n validateRideFields: validateFields,\n };\n};\n\nexport default useNewRideInformation;\n","import { Dispatch, SetStateAction, useState } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport { Validated } from '../../../../helpers/inputValidation/Validator';\nimport and from '../../../../helpers/inputValidation/validators/and';\nimport isEmail from '../../../../helpers/inputValidation/validators/isEmail';\nimport isFilledString from '../../../../helpers/inputValidation/validators/isFilledString';\nimport { Passenger } from '../../components/passengerInformation/PassengerInformation';\nimport { PassengerError } from '../../components/passengerInformation/PassengerList';\n\nconst initialPassengerId = uuidv4();\n\nexport const initialPassenger = {\n id: initialPassengerId,\n firstName: '',\n lastName: '',\n email: '',\n phone: '',\n isLead: true,\n} as Passenger;\n\nexport const initialPassengerErrors = {\n id: initialPassengerId,\n firstName: null,\n lastName: null,\n email: null,\n phone: null,\n} as PassengerError;\n\nexport const validField = {\n isValid: true,\n value: '',\n} as Validated;\n\nconst usePassengerInformation = (): {\n passengerValues: Passenger[];\n setPassengerValues: Dispatch>;\n passengerErrors: PassengerError[];\n setPassengerErrors: Dispatch>;\n validatePassengerFields: () => boolean;\n} => {\n const [values, setValues] = useState([initialPassenger]);\n\n const [errors, setErrors] = useState([initialPassengerErrors]);\n\n const validateFields = () => {\n const fieldErrors: PassengerError[] = values.map(traveller => {\n const { isLead } = traveller;\n\n const validatedFirstName = isFilledString(traveller.firstName, InputError.Empty);\n\n const validatedLastName = isFilledString(traveller.lastName, InputError.Empty);\n\n let validatedPhone = validField;\n\n if (isLead) {\n validatedPhone = isFilledString(traveller.phone, InputError.Empty);\n }\n\n const validatedEmail = and(isLead ? isFilledString(traveller.email, InputError.Empty) : validField, () =>\n traveller.email ? isEmail(traveller.email, InputError.InvalidEmail) : validField\n );\n\n return {\n id: traveller.id,\n firstName: validatedFirstName.isValid ? null : validatedFirstName.error,\n lastName: validatedLastName.isValid ? null : validatedLastName.error,\n email: validatedEmail.isValid ? null : validatedEmail.error,\n phone: validatedPhone.isValid ? null : validatedPhone.error,\n };\n });\n\n setErrors(fieldErrors);\n\n const hasErrors = fieldErrors.some(\n error => error.firstName || error.lastName || error.email || error.phone || !values.find(el => el.isLead)\n );\n\n return !hasErrors;\n };\n\n return {\n passengerValues: values,\n setPassengerValues: setValues,\n passengerErrors: errors,\n setPassengerErrors: setErrors,\n validatePassengerFields: validateFields,\n };\n};\n\nexport default usePassengerInformation;\n","import { Dispatch, SetStateAction, useState } from 'react';\n\nimport { InputError } from '../../../../helpers/inputValidation/InputError';\nimport allValid from '../../../../helpers/inputValidation/validators/allValid';\nimport isFilledString from '../../../../helpers/inputValidation/validators/isFilledString';\nimport {\n initialReference,\n initialReferenceErrors,\n ReferenceField,\n ReferenceError,\n} from '../../components/updateRide/ChangeReferences';\n\nconst useReferences = (): {\n referencesValues: ReferenceField;\n setReferencesValues: Dispatch>;\n referencesErrors: ReferenceError;\n setReferencesErrors: Dispatch>;\n validateReferencesFields: () => boolean;\n} => {\n const [errors, setErrors] = useState(initialReferenceErrors);\n const [referencesValues, setReferencesValues] = useState(initialReference);\n\n const validateFields = () => {\n const validatedCustomFields = {};\n const validatedCustomFieldsErrors = {};\n\n referencesValues.customFields.forEach(customField => {\n const validation = isFilledString(customField.value, InputError.Empty);\n\n if (customField.isRequired) {\n validatedCustomFields[customField.key] = validation;\n validatedCustomFieldsErrors[customField.key] = validation.isValid ? null : validation.error;\n }\n });\n\n if (!allValid(validatedCustomFields)) {\n const fieldErrors = { customFields: validatedCustomFieldsErrors };\n\n setErrors(fieldErrors);\n return false;\n }\n\n return true;\n };\n\n return {\n referencesValues,\n setReferencesValues,\n referencesErrors: errors,\n setReferencesErrors: setErrors,\n validateReferencesFields: validateFields,\n };\n};\n\nexport default useReferences;\n","import { GridRowsProp } from '@mui/x-data-grid-pro';\n\nimport { PAYMENT_METHOD, RideResponse } from '../../pages/ride/api/types';\nimport { User } from '../../pages/users/api/types';\nimport { getDateTimeWithoutOffset } from '../getDateTimeWithoutOffset';\nimport { isFlightMismatch } from '../isFlightMismatch';\nimport { isOvernightFlight } from '../isOvernightFlight';\n\nexport const mapRidesToRows = (rows: RideResponse[], currentUser?: User): GridRowsProp => {\n const mappedRows: GridRowsProp = rows.map(row => {\n const pickUpDepartAt = getDateTimeWithoutOffset(row?.pickUp?.departAt);\n const pickUpDepartAtLocal = getDateTimeWithoutOffset(row?.pickUp?.departAtLocal);\n const hasDriver = Boolean(row.driver);\n const hasFlight = Boolean(row.flightDetails?.number);\n const hasContact = Boolean(row.contactPerson);\n const isFlightMismatchValue = isFlightMismatch(row.flightDetails, row.pickUp.location, row.dropOff.location);\n const isOvernightFlightValue = isOvernightFlight(row.pickUp.departAtLocal, row.dropOff.arriveAtLocal);\n const isPaymentMethodCreditCard = row.paymentMethod === PAYMENT_METHOD.CREDIT_CARD;\n\n return {\n id: row.unid,\n status: row.status,\n trackingStatus: row.trackingStatus,\n originalPickupUtc: row.pickUp.departAt,\n pickup: pickUpDepartAt,\n pickupLocal: pickUpDepartAtLocal,\n primaryTimeZone: currentUser?.primaryTimeZone,\n passengers: row.passengers,\n connectedTrips: row.connectedTrips,\n route: {\n from: row.pickUp.location.name,\n to: row.dropOff.location.name,\n flight: row.flightDetails?.number,\n },\n customerReference: row.customerReference,\n rideNumber: row.prettifiedUnid,\n newStatusOptions: {\n hasDriver,\n hasFlight,\n hasContact,\n isFlightMismatch: isFlightMismatchValue,\n isOvernightFlight: isOvernightFlightValue,\n },\n isPaymentMethodCreditCard,\n customFields: row.customFields,\n isManagedByApi: row.isManagedByApi,\n source: row.source,\n isIgnoredByCars: row.isIgnoredByCars,\n };\n });\n\n return mappedRows;\n};\n","import { FlightDetails, FlightType, Location } from '../pages/rides/api/types';\n\nexport const isFlightMismatch = (flightDetails: FlightDetails | null, pickUpLocation: Location, dropOffLocation: Location) => {\n if (!flightDetails) {\n return false;\n }\n\n if (\n (flightDetails.type === FlightType.ARRIVAL &&\n pickUpLocation.type === 'Airport' &&\n pickUpLocation.name === flightDetails.arrival.iata) ||\n (flightDetails.type === FlightType.DEPARTURE &&\n dropOffLocation.type === 'Airport' &&\n dropOffLocation.name === flightDetails.departure.iata)\n ) {\n return false;\n }\n\n return true;\n};\n","import dayjs from 'dayjs';\n\nexport const isOvernightFlight = (depDateTimeLocal: string, arrDateTimeLocal: string) => {\n const depDate = dayjs(depDateTimeLocal);\n const arrDate = dayjs(arrDateTimeLocal);\n\n return !depDate.isSame(arrDate, 'day');\n};\n","import { useMemo } from 'react';\nimport { useQuery } from 'react-query';\n\nimport { USE_RIDES } from '../../../constants/queryKeys';\nimport apiClient from '../../../services/api';\nimport { RIDES } from '../../../services/routes';\nimport { RideResponse } from '../../ride/api/types';\nimport { RidesVariables } from './types';\n\nexport const useRides = (variables: Partial) => {\n const { query = '', startDate, endDate, statusFilters } = variables;\n\n const { data, refetch, isLoading, isRefetching } = useQuery(\n [USE_RIDES + query + statusFilters + startDate + endDate],\n () => listRides(variables),\n {\n keepPreviousData: false,\n refetchOnWindowFocus: false,\n retry: false,\n cacheTime: 500,\n }\n );\n\n return useMemo(\n () => ({\n data: data ?? [],\n refetch,\n isLoading,\n isRefetching,\n }),\n [data, isLoading, isRefetching, refetch]\n );\n};\n\nexport const listRides = async (variables: Partial): Promise => {\n const { query = '', startDate, endDate, statusFilters } = variables;\n const filterEmptyStrings = arr => Array.isArray(arr) && arr.filter(item => item !== '');\n\n const filteredParams = {\n query,\n startDate,\n endDate,\n ...(filterEmptyStrings(statusFilters) && { statusFilters }),\n };\n\n const { data } = await apiClient.get(RIDES, { params: filteredParams });\n\n return data;\n};\n","import makeStyles from '@mui/styles/makeStyles';\n\nimport { COLORS } from '../../../constants/colors';\nimport { BUTTON_WIDTH } from '../../../constants/layout';\n\nconst useRidesStyles = makeStyles(styleTheme => ({\n addRideButton: { width: BUTTON_WIDTH },\n footer: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: '0 2rem',\n },\n filterButtonsWrapper: {\n paddingTop: '2rem',\n display: 'flex',\n flexDirection: 'row',\n [styleTheme.breakpoints.down('lg')]: {\n flexDirection: 'column',\n paddingTop: '1rem',\n overflow: 'auto',\n },\n justifyContent: 'space-between',\n },\n multipleSelectButtonsWrapper: {\n overflowX: 'auto',\n whiteSpace: 'nowrap',\n marginBottom: 0,\n '&::-webkit-scrollbar': {\n height: 0,\n width: 0,\n display: 'none',\n },\n '& [class*=\"MuiButtonBase-root\"]': {\n borderRight: '1px solid rgba(0, 0, 0, 0.12)',\n '&:nth-of-type(1)': {\n marginLeft: 0,\n },\n marginLeft: '16px',\n borderRadius: '8px',\n cursor: 'pointer !important',\n },\n },\n mulipleSelectButtonsOld: {\n overflowX: 'auto',\n whiteSpace: 'nowrap',\n marginBottom: 0,\n '&::-webkit-scrollbar': {\n height: 0,\n width: 0,\n display: 'none',\n },\n },\n resetFilters: {\n fontFamily: 'inherit',\n color: COLORS.BLUE,\n '&:hover': { color: COLORS.BLUE_DARK },\n },\n resultsFilterButtonWrapper: {\n display: 'flex',\n [styleTheme.breakpoints.down('md')]: { marginTop: '2rem' },\n },\n noResultsContentWrapper: {\n border: `1px solid ${COLORS.BLUE}`,\n borderRadius: '4px',\n padding: '0.625rem 1.25rem !important',\n marginTop: '2rem',\n display: 'flex',\n alignItems: 'center',\n '&:hover': {\n borderColor: COLORS.BLUE_DARK,\n cursor: 'pointer',\n },\n },\n totalCount: {\n padding: 0,\n width: 'auto',\n },\n totalCountLabel: {\n marginRight: 0,\n color: `${COLORS.SLATE_GREY} !important`,\n },\n numberedIcon: {\n color: COLORS.WHITE,\n backgroundColor: COLORS.ORANGE,\n lineHeight: '1rem',\n },\n numberedIconZero: {\n color: COLORS.BLUE,\n backgroundColor: COLORS.EXTRA_LIGHT_GRAY,\n lineHeight: '1rem',\n },\n}));\n\nexport default useRidesStyles;\n","import { IconedData, LabeledData } from '@get-e/react-components';\nimport CloudDownloadOutlinedIcon from '@mui/icons-material/CloudDownloadOutlined';\nimport { makeStyles } from '@mui/styles';\nimport { Box } from '@mui/system';\nimport { GridFooterContainer } from '@mui/x-data-grid-pro';\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport useRidesStyles from './Rides.styles';\n\nconst useStyles = makeStyles(() => ({\n buttonStyle: { padding: '.6rem 2rem' },\n disabled: {\n backgroundColor: COLORS.LIGHT_GRAY,\n color: COLORS.SLATE_GREY,\n cursor: 'pointer',\n borderRadius: '.25rem',\n '& :hover *': { color: `${COLORS.SLATE_GREY} !important` },\n },\n}));\n\ninterface CustomFooterProps {\n handleExport: () => void;\n totalCount?: number;\n isLoadingExport?: boolean;\n}\n\nexport const CustomFooter = ({ handleExport, totalCount = 0, isLoadingExport }: CustomFooterProps) => {\n const classes = useRidesStyles();\n const { t } = useTranslation();\n const customClasses = useStyles();\n\n return (\n \n \n !isLoadingExport && handleExport()}\n dataTextBold\n bottomMargin=\"0\"\n />\n \n \n \n );\n};\n","import { Grid, Skeleton, useMediaQuery, Box } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport theme from '../../../styles/theme';\n\nconst useStyles = makeStyles({\n mainContainer: {\n justifyContent: 'space-between',\n alignItems: 'flex-end',\n padding: '0 2rem 2rem 2rem',\n },\n mainContainerMobile: {\n justifyContent: 'space-between',\n alignItems: 'flex-end',\n padding: '2rem',\n },\n pageHeaderWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n color: '#000',\n },\n pageHeader: {\n color: '#3f51b5',\n fontSize: '1.5rem',\n fontWeight: 700,\n },\n content: {\n width: '100%',\n height: 'calc(100vh - 263px)',\n marginTop: '2rem',\n },\n});\n\nconst RidesLoadingSkeleton = () => {\n const classes = useStyles();\n const isSmallDevice = useMediaQuery(theme.breakpoints.down('md'));\n\n return (\n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n );\n};\n\nexport default RidesLoadingSkeleton;\n","import { getSingleRideRoute } from '../../../../constants/urlPaths';\n\nexport const handleRideMiddleMouseClick = (event: MouseEvent) => {\n if (event.button === 1) {\n const path = event.composedPath();\n const row = path.find(el => el instanceof HTMLElement && el.getAttribute('role') === 'row');\n\n if (row instanceof HTMLElement) {\n const rideId = row.getAttribute('data-id');\n\n if (rideId) {\n window.open(getSingleRideRoute(rideId), '_blank');\n }\n }\n }\n};\n","import { Tooltip, Typography } from '@mui/material';\nimport React, { ReactNode, useMemo } from 'react';\n\ninterface CellTextProps {\n children: ReactNode;\n marginTop?: string;\n marginBottom?: string;\n marginLeft?: string;\n fontSize?: string;\n tooltip?: string | string[];\n}\n\nconst CellText = ({ children, marginTop, marginBottom, marginLeft, fontSize, tooltip }: CellTextProps) => {\n const tooltipContent = useMemo(() => {\n if (Array.isArray(tooltip)) {\n return tooltip.map(value => (\n \n {value}\n \n ));\n } else if (typeof tooltip === 'string') {\n return tooltip;\n }\n\n return '';\n }, [tooltip]);\n\n const tooltipText = useMemo(\n () => (typeof tooltipContent === 'string' ? tooltipContent : <>{tooltipContent}),\n [tooltipContent]\n );\n\n return (\n \n \n {children}\n \n \n );\n};\n\nexport default CellText;\n","import { ContactMail, Nightlight, PersonAdd, AirplanemodeInactiveOutlined } from '@mui/icons-material';\nimport { Box, Tooltip } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { getRideStatusOptionKey, RideStatusOption } from '../../../helpers/rideStatusUtil';\n\nconst useStyles = makeStyles({\n optionIcon: {\n marginRight: '0.5rem',\n fontSize: '1rem !important',\n color: COLORS.SLATE_GREY,\n },\n});\n\ninterface CellTextProps {\n statusOptions?: Array;\n}\n\nconst StatusOptionBadge = ({ statusOptions }: CellTextProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n const isRideStatusOptionVisible = (option: RideStatusOption) =>\n Boolean(statusOptions?.includes(getRideStatusOptionKey(option)));\n\n return (\n \n {isRideStatusOptionVisible(RideStatusOption.DRIVER_KNOWN) && (\n \n \n \n )}\n {isRideStatusOptionVisible(RideStatusOption.NO_FLIGHT_INFORMATION) && (\n \n \n \n )}\n {isRideStatusOptionVisible(RideStatusOption.OVERNIGHT_FLIGHT) && (\n \n \n \n )}\n {isRideStatusOptionVisible(RideStatusOption.CONTACT_GREETER_INFO_KNOWN) && (\n \n \n \n )}\n \n );\n};\n\nexport default StatusOptionBadge;\n","import CachedIcon from '@mui/icons-material/Cached';\nimport CreateOutlinedIcon from '@mui/icons-material/CreateOutlined';\nimport DownloadOutlinedIcon from '@mui/icons-material/DownloadOutlined';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport ReceiptLongOutlinedIcon from '@mui/icons-material/ReceiptLongOutlined';\nimport SyncDisabledIcon from '@mui/icons-material/SyncDisabled';\nimport { Box, Tooltip, Typography } from '@mui/material';\nimport { GridActionsCellItem, GridRowParams } from '@mui/x-data-grid-pro';\nimport dayjs from 'dayjs';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { useMutation } from 'react-query';\nimport { logAmplitudeEvent } from '../../../../amplitude/amplitude';\nimport { BOOKING_SOURCE } from '../../../../constants';\nimport { DONWLOAD_DOCUMENTATION, SEND_CONFIRMATION } from '../../../../constants/amplitude/customerKeys';\nimport { COLORS } from '../../../../constants/colors';\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { getRideStatusOptions } from '../../../../helpers/rideStatusUtil';\nimport { TrafficJamIcon } from '../../../../public/assets/icons';\nimport { PrimaryTimeZone } from '../../../../services/types';\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport { CustomField } from '../../../ride/api/types';\nimport { Passenger } from '../../api/types';\nimport CellText from '../../components/CellText';\nimport CellWrapper from '../../components/CellWrapper';\nimport StatusBadge from '../../components/StatusBadge';\nimport StatusOptionBadge from '../../components/StatusOptionBadge';\nimport downloadBookingConfirmation from '../api/downloadBookingConfirmation';\nimport downloadReceipt from '../api/downloadReceipt';\nimport { RideAction } from '../Rides';\n\nexport interface BookingConfirmationRow {\n rideId: string;\n passengers: Passenger[];\n}\n\nexport const useRidesColumns = (\n handleSendConfirmation: (row: BookingConfirmationRow) => void,\n handleEditRide: (rideId: string) => void,\n primaryTimeZone?: keyof typeof PrimaryTimeZone\n) => {\n const dataGridClases = useDataGridStyles();\n const { t } = useTranslation();\n const { useManagedByCars, useConnectedTripsNotification } = useFlags();\n\n const { mutate: downloadBookingConfirmationMutation, isLoading: isDownloadingBookingConfirmation } =\n useMutation(downloadBookingConfirmation);\n\n const { mutate: downloadReceiptMutation, isLoading: isDownloadingReceipt } = useMutation(downloadReceipt);\n\n const onActionItemClick = useCallback((unid: number, prettifiedUnid: string, action: RideAction, row?: GridRowParams) => {\n switch (action) {\n case RideAction.EDIT_RIDE:\n handleEditRide(unid.toString());\n break;\n case RideAction.SEND_CONFIRMATION:\n handleSendConfirmation({\n rideId: unid.toString(),\n passengers: row?.row?.passengers,\n });\n\n logAmplitudeEvent(SEND_CONFIRMATION);\n break;\n case RideAction.DOWNLOAD_CONFIRMATION:\n downloadBookingConfirmationMutation({\n unid: unid.toString(),\n prettifiedUnid,\n });\n\n logAmplitudeEvent(DONWLOAD_DOCUMENTATION);\n break;\n case RideAction.DOWNLOAD_RECEIPT:\n downloadReceiptMutation({\n unid: unid.toString(),\n prettifiedUnid,\n });\n break;\n default:\n throw new Error('Ride action not supported');\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return useMemo(() => {\n const columns = [\n {\n field: 'status',\n headerName: t('status'),\n width: 180,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n \n \n \n ),\n },\n {\n field: 'pickup',\n headerName: primaryTimeZone === 'UTC' ? t('pages.rides.pickupUTC') : t('pickUp'),\n width: 140,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n \n {dayjs(params.row.primaryTimeZone === 'UTC' ? params.row.pickup : params.row.pickupLocal).format(\n DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']\n )}\n \n {params.row.primaryTimeZone === 'UTC' && (\n \n \n Local: {dayjs(params.row.pickupLocal).format(DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A'])}\n \n \n )}\n \n ),\n },\n {\n field: 'passengers',\n headerName: t('passengers'),\n width: 180,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n {params.row.passengers.map((passenger: Passenger) => (\n \n {passenger.firstName} {passenger.lastName}\n \n ))}\n \n ),\n },\n {\n field: 'route',\n headerName: t('pages.rides.route'),\n flex: 1,\n minWidth: 250,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n \n {t('pickUp')}: \n {params.row.route.from}\n \n \n {t('dropOff')}: \n {params.row.route.to}\n \n {params.row.route.flight && (\n \n {t('flight')}: \n {params.row.route.flight}\n \n )}\n \n ),\n },\n {\n field: 'reference',\n headerName: t('reference'),\n width: 200,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n \n {t('reference')}: \n {params.row.customerReference ?? '-'}\n \n {params.row.customFields?.map((customField: CustomField) => (\n \n {customField.label}: \n {customField.value}\n \n ))}\n \n ),\n },\n {\n field: 'rideNumber',\n headerName: t('rideNumber'),\n width: 130,\n sortable: false,\n headerClassName: dataGridClases.hideSeparator,\n renderCell: (params: GridRowParams) => (\n \n \n {params.row.rideNumber}\n {useManagedByCars &&\n params.row.source === BOOKING_SOURCE.CARS &&\n params.row.isManagedByApi &&\n (params.row.isIgnoredByCars ? (\n \n \n \n ) : (\n \n \n \n ))}\n {useManagedByCars &&\n useConnectedTripsNotification &&\n params.row.isManagedByApi &&\n Array.isArray(params.row.connectedTrips) &&\n params.row.connectedTrips.length > 0 && (\n \n \n \n )}\n \n \n ),\n },\n {\n field: 'actions',\n type: 'actions',\n width: 20,\n headerClassName: dataGridClases.hideSeparator,\n getActions: (params: GridRowParams) => [\n }\n label=\"Edit ride\"\n onClick={() => onActionItemClick(params.row.id, params.row.rideNumber, RideAction.EDIT_RIDE)}\n showInMenu\n onResize={undefined}\n onResizeCapture={undefined}\n nonce=\"\"\n />,\n }\n label={t('pages.rides.sendBookingConfirmation')}\n onClick={() =>\n onActionItemClick(params.row.id, params.row.rideNumber, RideAction.SEND_CONFIRMATION, params)\n }\n showInMenu\n onResize={undefined}\n onResizeCapture={undefined}\n nonce=\"\"\n />,\n }\n label={t('pages.rides.downloadBookingConfirmation')}\n onClick={() => onActionItemClick(params.row.id, params.row.rideNumber, RideAction.DOWNLOAD_CONFIRMATION)}\n showInMenu\n onResize={undefined}\n onResizeCapture={undefined}\n nonce=\"\"\n />,\n }\n label={t('pages.rides.downloadReceipt')}\n onClick={() => onActionItemClick(params.row.id, params.row.rideNumber, RideAction.DOWNLOAD_RECEIPT)}\n showInMenu\n onResize={undefined}\n onResizeCapture={undefined}\n nonce=\"\"\n />,\n ],\n },\n ];\n\n return columns;\n }, [\n t,\n primaryTimeZone,\n dataGridClases.hideSeparator,\n dataGridClases.menuItem,\n dataGridClases.hideItem,\n useManagedByCars,\n isDownloadingBookingConfirmation,\n isDownloadingReceipt,\n onActionItemClick,\n useConnectedTripsNotification,\n ]);\n};\n","/* eslint-disable max-statements */\nimport {\n MultipleSelect,\n PrimaryButton,\n Spinner,\n TertiaryButton,\n TextField,\n NoResultsDataGrid as NoResults,\n} from '@get-e/react-components';\nimport AddIcon from '@mui/icons-material/Add';\nimport CalendarTodayOutlinedIcon from '@mui/icons-material/CalendarTodayOutlined';\nimport SearchIcon from '@mui/icons-material/Search';\nimport TuneOutlinedIcon from '@mui/icons-material/TuneOutlined';\nimport { Box, Grid, InputAdornment, Typography, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { DataGridPro, GridColDef, GridRowParams } from '@mui/x-data-grid-pro';\nimport { DateRange, LocalizationProvider } from '@mui/x-date-pickers-pro';\nimport { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';\nimport { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';\nimport { SingleInputDateRangeField } from '@mui/x-date-pickers-pro/SingleInputDateRangeField/SingleInputDateRangeField';\nimport clsx from 'clsx';\nimport dayjs, { Dayjs } from 'dayjs';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useEffect, useMemo, useState, useCallback, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\nimport { useHistory } from 'react-router-dom';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport { RIDES_PAGE } from '../../../constants/amplitude/commonKeys';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../../constants/datePickerPlaceholder';\nimport { BUTTON_WIDTH, MIN_BUTTON_WIDTH } from '../../../constants/layout';\nimport { BOOKING_TOOL, getSingleRideRoute, getUpdateRideRoute } from '../../../constants/urlPaths';\nimport { RIDES_FILTER } from '../../../constants/windowStorageKeys';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { useLocaleContext } from '../../../context/LocaleContext';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { mapRidesToRows } from '../../../helpers/maps/mapRidesToRows';\nimport {\n getCustomerRidesFilter,\n getRideStatusKey,\n resetCustomerRidesFilter,\n RideStatusFilter,\n useRideStatusMap,\n} from '../../../helpers/rideStatusUtil';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport SendBookingConfirmationModal, { BookingConfirmationEmail } from '../../ride/components/SendBookingConfirmationModal';\nimport exportRidesToExcel from '../api/exportRidesToExcel';\nimport { Passenger } from '../api/types';\nimport { useRides } from '../api/useRides';\nimport { CustomFooter } from '../components/CustomFooter';\nimport RidesLoadingSkeleton from '../components/RidesLoadingSkeleton';\nimport { handleRideMiddleMouseClick } from '../supplier/helpers/handleRideMiddleMouseClick';\nimport { BookingConfirmationRow, useRidesColumns } from './hooks/useRidesColumns';\n\nconst useStyles = ({ isButtonWidthFitContent }: { isButtonWidthFitContent: boolean }) =>\n makeStyles(styleTheme => ({\n addRideButton: {\n width: isButtonWidthFitContent ? 'fit-content' : BUTTON_WIDTH,\n minWidth: isButtonWidthFitContent ? MIN_BUTTON_WIDTH : 'auto',\n },\n footer: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: '0 2rem',\n },\n filterButtonsWrapper: {\n paddingTop: '2rem',\n display: 'flex',\n flexDirection: 'row',\n [styleTheme.breakpoints.down('md')]: { flexDirection: 'column', overflow: 'auto' },\n justifyContent: 'space-between',\n },\n multipleSelectButtonsWrapper: {\n overflowX: 'auto',\n whiteSpace: 'nowrap',\n marginBottom: 0,\n '&::-webkit-scrollbar': {\n height: 0,\n width: 0,\n display: 'none',\n },\n },\n resetFilters: {\n color: COLORS.BLUE,\n '&:hover': { color: COLORS.BLUE_DARK },\n },\n resultsFilterButtonWrapper: {\n display: 'flex',\n [styleTheme.breakpoints.down('md')]: { marginTop: '2rem' },\n },\n noResultsContentWrapper: {\n border: `1px solid ${COLORS.BLUE}`,\n borderRadius: '4px',\n padding: '0.625rem 1.25rem !important',\n marginTop: '2rem',\n display: 'flex',\n alignItems: 'center',\n '&:hover': {\n borderColor: COLORS.BLUE_DARK,\n cursor: 'pointer',\n },\n },\n totalCount: {\n padding: 0,\n width: 'auto',\n },\n totalCountLabel: {\n marginRight: 0,\n color: `${COLORS.SLATE_GREY} !important`,\n },\n }));\n\nexport enum RideAction {\n EDIT_RIDE,\n SEND_CONFIRMATION,\n DOWNLOAD_CONFIRMATION,\n DOWNLOAD_RECEIPT,\n}\n\nconst Rides = () => {\n const previousFilterState = getCustomerRidesFilter();\n const { t } = useTranslation();\n const { locale } = useLocaleContext();\n const classes = useStyles({ isButtonWidthFitContent: locale === 'es-ES' })();\n const history = useHistory();\n const dataGridClases = useDataGridStyles();\n const { showNotification } = useNotificationContext();\n const [isSendBookingConfirmationModalOpen, setIsSendBookingConfirmationModalOpen] = useState(false);\n const [selectedRow, setSelectedRow] = useState();\n const [searchPhrase, setSearchPhrase] = useState('');\n const [statusFilterKey, setStatusFilterKey] = useState(0);\n const { currentProfile: currentUser } = useCurrentProfileContext();\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'));\n const isPageOpened = useRef(false);\n const [isInitialLoad, setIsInitialLoad] = useState(true);\n const { useNewCustomerRidePage } = useFlags();\n const rideStatusMap = useRideStatusMap();\n\n const [statusIds, setStatusIds] = useState(\n previousFilterState.status.map(value => getRideStatusKey(value) as string)\n );\n\n const [selectedDateRange, setSelectedDateRange] = useState>(previousFilterState.dateRange);\n\n const {\n data = [],\n isLoading,\n isRefetching,\n } = useRides({\n query: searchPhrase,\n statusFilters: statusIds?.filter(el => el),\n startDate: selectedDateRange[0]\n ? dayjs(selectedDateRange[0])\n .set('hour', 0)\n .set('minute', 0)\n .set('second', 0)\n .format(DATE_FORMATS['YYYY-MM-DDT00:00:00'])\n : null,\n endDate: selectedDateRange[1]\n ? dayjs(selectedDateRange[1])\n .set('hour', 0)\n .set('minute', 0)\n .set('second', 0)\n .format(DATE_FORMATS['YYYY-MM-DDT00:00:00'])\n : null,\n });\n\n useEffect(() => {\n if (!isLoading && isInitialLoad) {\n setIsInitialLoad(false);\n }\n }, [isLoading, isInitialLoad]);\n\n const onSetStatusIds = (ids: string[]): void => {\n const filters = JSON.stringify({\n ...previousFilterState,\n status: ids.map(value => RideStatusFilter[value] as string),\n });\n\n localStorage.setItem(RIDES_FILTER, filters);\n\n setStatusIds(ids);\n };\n\n useEffect(() => {\n document.addEventListener('mouseup', handleRideMiddleMouseClick);\n return () => document.removeEventListener('mouseup', handleRideMiddleMouseClick);\n }, [data]);\n\n const handleSendConfirmation = (row: BookingConfirmationRow) => {\n setSelectedRow(row);\n setIsSendBookingConfirmationModalOpen(true);\n };\n\n const handleRowClick = (params: GridRowParams, event: React.MouseEvent) => {\n if (event.button === 0 && event.metaKey) {\n event.preventDefault();\n window.open(getSingleRideRoute(params.id.toString()), '_blank');\n return;\n }\n\n history.push(getSingleRideRoute(params.id.toString()));\n };\n\n const handleEditRide = (rideId: string) => {\n useNewCustomerRidePage ? history.push(getUpdateRideRoute(rideId)) : history.push(getSingleRideRoute(rideId));\n };\n\n const columns = useRidesColumns(\n useCallback(handleSendConfirmation, []),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useCallback(handleEditRide, []),\n currentUser?.primaryTimeZone\n );\n\n const { mutate: exportRidesToExcelMutation } = useMutation(exportRidesToExcel);\n\n const handleNewRide = (): void => {\n history.push(BOOKING_TOOL);\n };\n\n const handleExport = (): void => {\n const rideResultIds = data?.map(ride => ride.unid);\n\n if (selectedDateRange[0] === null || selectedDateRange[1] === null) {\n showNotification(t('alert.dateRangeRequired'), Severity.Error);\n return;\n }\n\n exportRidesToExcelMutation({\n startDate: dayjs(selectedDateRange[0]).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n endDate: dayjs(selectedDateRange[1]).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n tripUnids: rideResultIds,\n });\n };\n\n const initialBookingConfirmationEmails: BookingConfirmationEmail[] = useMemo(() => {\n return selectedRow?.passengers\n ? selectedRow?.passengers?.map((traveller: Passenger) => ({\n id: traveller.email,\n email: traveller.email,\n isIncluded: traveller.isLead,\n }))\n : ([] as BookingConfirmationEmail[]);\n }, [selectedRow]);\n\n const dataRows = useMemo(() => {\n if (data) {\n return mapRidesToRows(data, currentUser);\n }\n\n return [];\n }, [currentUser, data]);\n\n const handleResetFilters = () => {\n const filters = resetCustomerRidesFilter();\n const filterStatusIds = filters.status.map(value => getRideStatusKey(value) as string);\n\n setSearchPhrase('');\n setStatusIds(filterStatusIds);\n setSelectedDateRange(filters.dateRange);\n setStatusFilterKey(Math.random());\n };\n\n const resetFiltersButton = useMemo(\n () => (\n \n \n \n {t('buttonName.resetFilters')}\n \n \n ),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [handleResetFilters]\n );\n\n if (!isPageOpened.current) {\n isPageOpened.current = true;\n logAmplitudeEvent(RIDES_PAGE);\n }\n\n if (isInitialLoad && isLoading) {\n return ;\n }\n\n return (\n \n \n \n \n {t('rides')}\n \n \n \n }>\n {t('pages.rides.newRide')}\n \n \n \n \n \n {\n setSearchPhrase(event.target.value);\n }}\n label={t('pages.rides.searchByPassengerReferenceRide')}\n name=\"search\"\n InputProps={{\n endAdornment: (\n \n {isLoading || isRefetching ? : }\n \n ),\n onBlur: event => setSearchPhrase(event.target.value),\n }}\n onBlur={event => setSearchPhrase(event.target.value)}\n />\n \n \n \n {\n setSelectedDateRange(newValue);\n\n const filters = JSON.stringify({\n ...previousFilterState,\n dateRange: newValue,\n });\n\n localStorage.setItem(RIDES_FILTER, filters);\n }}\n localeText={{\n start: t('pages.rides.startingDate'),\n end: t('pages.rides.endingDate'),\n ...datePickerPlaceholder,\n }}\n slotProps={{\n textField: {\n variant: 'filled',\n placeholder: 'dd mmm y',\n inputProps: { readOnly: true },\n InputProps: {\n endAdornment: ,\n },\n },\n }}\n slots={{ field: SingleInputDateRangeField }}\n format={DATE_FORMATS['DD MMM YYYY']}\n />\n \n \n \n t(filter))}\n displayAsButtons\n />\n
    {resetFiltersButton}
    \n
    \n
    \n \n \n 'auto'}\n onRowClick={handleRowClick}\n loading={isLoading || !dataRows}\n slots={{\n noRowsOverlay: () => (\n {resetFiltersButton}\n }\n />\n ),\n footer: () =>\n dataRows?.length > 0\n ? CustomFooter({\n handleExport,\n totalCount: data.length,\n })\n : null,\n }}\n sx={{ overflowX: 'scroll' }}\n />\n \n \n {isSendBookingConfirmationModalOpen && (\n setIsSendBookingConfirmationModalOpen(false)}\n rideId={selectedRow?.rideId ?? ''}\n />\n )}\n \n );\n};\n\nexport default Rides;\n","import { DateRange } from '@mui/x-date-pickers-pro';\nimport dayjs, { Dayjs } from 'dayjs';\n\nexport const shortcutsItems: Array<{ label: string; getValue: () => DateRange }> = [\n {\n label: 'All time',\n getValue: () => [null, null],\n },\n {\n label: 'This Week',\n getValue: () => {\n const today = dayjs();\n\n return [today.startOf('week'), today.endOf('week')] as DateRange;\n },\n },\n {\n label: 'This Month',\n getValue: () => {\n const today = dayjs();\n\n return [today.startOf('month'), today.endOf('month')] as DateRange;\n },\n },\n {\n label: 'This Year',\n getValue: () => {\n const today = dayjs();\n\n return [today.startOf('year'), today.endOf('year')] as DateRange;\n },\n },\n {\n label: 'Last Week',\n getValue: () => {\n const today = dayjs();\n const prevWeek = today.subtract(1, 'week');\n\n return [prevWeek.startOf('week'), prevWeek.endOf('week')] as DateRange;\n },\n },\n {\n label: 'Last Month',\n getValue: () => {\n const today = dayjs();\n const prevMonth = today.subtract(1, 'month');\n\n return [prevMonth.startOf('month'), prevMonth.endOf('month')] as DateRange;\n },\n },\n {\n label: 'Last Year',\n getValue: () => {\n const today = dayjs();\n const prevYear = today.subtract(1, 'year');\n\n return [prevYear.startOf('year'), prevYear.endOf('year')] as DateRange;\n },\n },\n {\n label: 'Last 7 Days',\n getValue: () => {\n const today = dayjs();\n\n return [today.subtract(7, 'day'), today] as DateRange;\n },\n },\n {\n label: 'Last 14 Days',\n getValue: () => {\n const today = dayjs();\n\n return [today.subtract(14, 'day'), today] as DateRange;\n },\n },\n {\n label: 'Last 30 Days',\n getValue: () => {\n const today = dayjs();\n\n return [today.subtract(30, 'day'), today] as DateRange;\n },\n },\n {\n label: 'Last 60 Days',\n getValue: () => {\n const today = dayjs();\n\n return [today.subtract(60, 'day'), today] as DateRange;\n },\n },\n {\n label: 'Last 90 Days',\n getValue: () => {\n const today = dayjs();\n\n return [today.subtract(90, 'day'), today] as DateRange;\n },\n },\n {\n label: 'Last 12 Months',\n getValue: () => {\n const today = dayjs();\n const startOfLastYear = today.subtract(12, 'month').startOf('month');\n\n return [startOfLastYear, today] as DateRange;\n },\n },\n {\n label: 'Next Month',\n getValue: () => {\n const today = dayjs();\n const startOfNextMonth = today.endOf('month').add(1, 'day');\n\n return [startOfNextMonth, startOfNextMonth.endOf('month')] as DateRange;\n },\n },\n {\n label: 'Reset',\n getValue: () => [null, null],\n },\n];\n","import { ModalAction as Modal, PrimaryButton, SecondaryButton } from '@get-e/react-components';\nimport { CalendarTodayOutlined } from '@mui/icons-material/';\nimport { Box, Checkbox, Chip, Divider, List, ListItem, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { DateRange, LocalizationProvider, PickersShortcutsProps, SingleInputDateRangeField } from '@mui/x-date-pickers-pro';\nimport { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';\nimport { MobileDateRangePicker } from '@mui/x-date-pickers-pro/MobileDateRangePicker';\nimport { Dayjs } from 'dayjs';\nimport React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../../constants/datePickerPlaceholder';\nimport { SUPPLIER_RIDES_FILTER } from '../../../constants/windowStorageKeys';\nimport {\n getCustomerRidesFilter,\n getSupplierRidesFilter,\n RideStatusFilter,\n RideStatusSupplierFilter,\n} from '../../../helpers/rideStatusUtil';\nimport theme from '../../../styles/theme';\nimport { shortcutsItems } from '../supplier/helpers/dateRangeShortcuts';\n\nconst useStyles = makeStyles({\n clearFiltersButton: {\n marginBottom: '16px',\n marginTop: '32px',\n },\n});\n\ninterface RidesMobileFiltersModalProps {\n onClose: () => void;\n isOpen: boolean;\n statusFilterMap: Map;\n numberedValues: Map | null;\n onSubmit: (values: { dateRange: DateRange; status: string[] }) => void;\n page: 'CUSTOMER' | 'SUPPLIER';\n}\n\nconst RidesMobileFiltersModal = ({\n onClose,\n isOpen,\n statusFilterMap,\n onSubmit,\n numberedValues,\n page,\n}: RidesMobileFiltersModalProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const previousFilterState = page === 'SUPPLIER' ? getSupplierRidesFilter() : getCustomerRidesFilter();\n const isSmallScreen = useMediaQuery(theme.breakpoints.down('md'));\n\n const initialFiltersState = useMemo(\n () => (page === 'SUPPLIER' ? getSupplierRidesFilter() : getCustomerRidesFilter()),\n [page]\n );\n\n const [selectedFilters, setSelectedFilters] = useState<{\n dateRange: DateRange;\n status: string[];\n }>({\n dateRange: initialFiltersState.dateRange,\n status: initialFiltersState?.status ?? [],\n });\n\n const handleApplyClick = () => {\n onSubmit(selectedFilters);\n onClose();\n };\n\n const handleClearFiltersClick = () => {\n setSelectedFilters({\n dateRange: [null, null],\n status: [],\n });\n onSubmit({\n dateRange: [null, null],\n status: [],\n });\n onClose();\n };\n\n const handleCheckboxChange = (itemKey: string, checked: boolean) => {\n if (checked) {\n setSelectedFilters(prevFilters => ({\n ...prevFilters,\n status: [...prevFilters.status, itemKey],\n }));\n } else {\n setSelectedFilters(prevFilters => ({\n ...prevFilters,\n status: prevFilters.status.filter(filter => filter !== itemKey),\n }));\n }\n };\n\n return (\n {}}\n >\n \n {Array.from(statusFilterMap).map(([key, value]) => {\n return (\n \n \n \n {value}{' '}\n {key === 'TO_CONFIRM' && Boolean(numberedValues) && `(${numberedValues?.get('TO_CONFIRM')})`}\n \n ) =>\n handleCheckboxChange(\n page === 'CUSTOMER' ? RideStatusFilter[key] : RideStatusSupplierFilter[key],\n event.target.checked\n )\n }\n />\n \n \n );\n })}\n \n \n {\n setSelectedFilters(prevFilters => ({\n ...prevFilters,\n dateRange: newValue,\n }));\n\n const filters = JSON.stringify({\n ...previousFilterState,\n dateRange: newValue,\n });\n\n localStorage.setItem(SUPPLIER_RIDES_FILTER, filters);\n }}\n localeText={{\n start: t('pages.rides.startingDate'),\n end: t('pages.rides.endingDate'),\n ...datePickerPlaceholder,\n }}\n slotProps={{\n toolbar: {\n hidden: true,\n },\n shortcuts: {\n items: shortcutsItems,\n },\n textField: {\n variant: 'filled',\n placeholder: 'dd mmm y',\n inputProps: { readOnly: true },\n InputProps: {\n endAdornment: ,\n },\n },\n mobilePaper: {\n sx: {\n maxWidth: '100vw',\n },\n },\n }}\n format={DATE_FORMATS['DD MMM YYYY']}\n slots={{ field: SingleInputDateRangeField, shortcuts: CustomRangeShortcuts }}\n />\n\n \n {t('pages.rides.clearFilters')}\n \n {t('pages.rides.apply')}\n \n \n );\n};\n\nexport default RidesMobileFiltersModal;\n\nfunction CustomRangeShortcuts(props: PickersShortcutsProps>) {\n const { items, onChange, isValid, changeImportance = 'accept' } = props;\n\n if (items === null || items?.length === 0) {\n return null;\n }\n\n const resolvedItems = items?.map(item => {\n const newValue = item.getValue({ isValid });\n\n return {\n label: item.label,\n onClick: () => {\n onChange(newValue, changeImportance, item);\n },\n disabled: !isValid(newValue),\n };\n });\n\n return (\n \n ({\n display: 'flex',\n px: th.spacing(4),\n '& .MuiListItem-root': {\n pt: 0,\n pl: 0,\n pr: th.spacing(1),\n },\n })}\n >\n {resolvedItems?.map(item => {\n return (\n \n \n \n );\n })}\n \n \n \n );\n}\n","/* eslint-disable complexity */\n/* eslint-disable max-statements */\nimport {\n MultipleSelect,\n PrimaryButton,\n Spinner,\n TertiaryButton,\n TextField,\n NoResultsDataGrid as NoResults,\n} from '@get-e/react-components';\nimport AddIcon from '@mui/icons-material/Add';\nimport CalendarTodayOutlinedIcon from '@mui/icons-material/CalendarTodayOutlined';\nimport FilterList from '@mui/icons-material/FilterList';\nimport SearchIcon from '@mui/icons-material/Search';\nimport TuneOutlinedIcon from '@mui/icons-material/TuneOutlined';\nimport { Box, Grid, InputAdornment, Typography, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { DataGridPro, GridColDef, GridRowParams } from '@mui/x-data-grid-pro';\nimport { DateRange, LocalizationProvider } from '@mui/x-date-pickers-pro';\nimport { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';\nimport { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';\nimport { SingleInputDateRangeField } from '@mui/x-date-pickers-pro/SingleInputDateRangeField/SingleInputDateRangeField';\nimport clsx from 'clsx';\nimport dayjs, { Dayjs } from 'dayjs';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useEffect, useMemo, useState, useCallback, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\nimport { useHistory } from 'react-router-dom';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport { RIDES_PAGE } from '../../../constants/amplitude/commonKeys';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../../constants/datePickerPlaceholder';\nimport { BUTTON_WIDTH, MIN_BUTTON_WIDTH } from '../../../constants/layout';\nimport { BOOKING_TOOL, getSingleRideRoute, getUpdateRideRoute } from '../../../constants/urlPaths';\nimport { RIDES_FILTER } from '../../../constants/windowStorageKeys';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { useLocaleContext } from '../../../context/LocaleContext';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { mapRidesToRows } from '../../../helpers/maps/mapRidesToRows';\nimport {\n getCustomerRidesFilter,\n getRideStatusKey,\n resetCustomerRidesFilter,\n RideStatusFilter,\n useRideStatusMap,\n} from '../../../helpers/rideStatusUtil';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport SendBookingConfirmationModal, { BookingConfirmationEmail } from '../../ride/components/SendBookingConfirmationModal';\nimport exportRidesToExcel from '../api/exportRidesToExcel';\nimport { Passenger } from '../api/types';\nimport { useRides } from '../api/useRides';\nimport { CustomFooter } from '../components/CustomFooter';\nimport RidesLoadingSkeleton from '../components/RidesLoadingSkeleton';\nimport RidesMobileFiltersModal from '../components/RidesMobileFiltersModal';\nimport { shortcutsItems } from '../supplier/helpers/dateRangeShortcuts';\nimport { handleRideMiddleMouseClick } from '../supplier/helpers/handleRideMiddleMouseClick';\nimport { BookingConfirmationRow, useRidesColumns } from './hooks/useRidesColumns';\n\nconst useStyles = ({ isButtonWidthFitContent }: { isButtonWidthFitContent: boolean }) =>\n makeStyles(styleTheme => ({\n addRideButton: {\n width: isButtonWidthFitContent ? 'fit-content' : BUTTON_WIDTH,\n minWidth: isButtonWidthFitContent ? MIN_BUTTON_WIDTH : 'auto',\n },\n footer: {\n display: 'flex',\n justifyContent: 'space-between',\n padding: '0 2rem',\n },\n filterButtonsWrapper: {\n paddingTop: '2rem',\n display: 'flex',\n flexDirection: 'row',\n [styleTheme.breakpoints.down('md')]: { flexDirection: 'column' },\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n multipleSelectButtonsWrapper: {\n overflowX: 'auto',\n whiteSpace: 'nowrap',\n marginBottom: 0,\n '&::-webkit-scrollbar': {\n height: 0,\n width: 0,\n display: 'none',\n },\n '& [class*=\"MuiButtonBase-root\"]': {\n borderRight: '1px solid rgba(0, 0, 0, 0.12)',\n '&:nth-of-type(1)': {\n marginLeft: 0,\n },\n marginLeft: '16px',\n borderRadius: '8px',\n cursor: 'pointer !important',\n },\n },\n resetFilters: {\n color: COLORS.BLUE,\n '&:hover': { color: COLORS.BLUE_DARK },\n },\n resultsFilterButtonWrapper: {\n display: 'flex',\n [styleTheme.breakpoints.down('md')]: { marginTop: '2rem' },\n },\n noResultsContentWrapper: {\n border: `1px solid ${COLORS.BLUE}`,\n borderRadius: '4px',\n padding: '0.625rem 1.25rem !important',\n marginTop: '2rem',\n display: 'flex',\n alignItems: 'center',\n '&:hover': {\n borderColor: COLORS.BLUE_DARK,\n cursor: 'pointer',\n },\n },\n totalCount: {\n padding: 0,\n width: 'auto',\n },\n totalCountLabel: {\n marginRight: 0,\n color: `${COLORS.SLATE_GREY} !important`,\n },\n filtersButton: {\n width: '57px',\n height: '55px',\n marginLeft: '10px',\n minWidth: '57px',\n borderRadius: '8px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n '& [class*=\"MuiSvgIcon-root\"]': {\n fontSize: '27px',\n },\n },\n search: {\n '& [class*=\"MuiFormLabel-root\"]': {\n overflow: 'hidden',\n maxWidth: '83.5%',\n },\n },\n }));\n\nexport enum RideAction {\n EDIT_RIDE,\n SEND_CONFIRMATION,\n DOWNLOAD_CONFIRMATION,\n DOWNLOAD_RECEIPT,\n}\n\nconst Rides = () => {\n const { t } = useTranslation();\n const { locale } = useLocaleContext();\n const { currentProfile: currentUser } = useCurrentProfileContext();\n const { showNotification } = useNotificationContext();\n const { useNewCustomerRidePage } = useFlags();\n const previousFilterState = getCustomerRidesFilter();\n const isPageOpened = useRef(false);\n const dataGridClases = useDataGridStyles();\n const history = useHistory();\n const isMobile = useMediaQuery(theme.breakpoints.down(1138));\n const classes = useStyles({ isButtonWidthFitContent: locale === 'es-ES' })();\n const rideStatusMap = useRideStatusMap();\n\n const [isSendBookingConfirmationModalOpen, setIsSendBookingConfirmationModalOpen] = useState(false);\n const [selectedRow, setSelectedRow] = useState();\n const [searchPhrase, setSearchPhrase] = useState('');\n const [statusFilterKey, setStatusFilterKey] = useState(0);\n const [isInitialLoad, setIsInitialLoad] = useState(true);\n const [isFiltersModalOpen, setIsFiltersModalOpen] = useState(false);\n\n const [statusIds, setStatusIds] = useState(\n previousFilterState.status.map(value => getRideStatusKey(value) as string)\n );\n\n const [selectedDateRange, setSelectedDateRange] = useState>(previousFilterState.dateRange);\n\n const {\n data = [],\n isLoading,\n isRefetching,\n } = useRides({\n query: searchPhrase,\n statusFilters: statusIds?.filter(el => el),\n startDate: selectedDateRange[0]\n ? dayjs(selectedDateRange[0])\n .set('hour', 0)\n .set('minute', 0)\n .set('second', 0)\n .format(DATE_FORMATS['YYYY-MM-DDT00:00:00'])\n : null,\n endDate: selectedDateRange[1]\n ? dayjs(selectedDateRange[1])\n .set('hour', 0)\n .set('minute', 0)\n .set('second', 0)\n .format(DATE_FORMATS['YYYY-MM-DDT00:00:00'])\n : null,\n });\n\n useEffect(() => {\n if (!isLoading && isInitialLoad) {\n setIsInitialLoad(false);\n }\n }, [isLoading, isInitialLoad]);\n\n const onSetStatusIds = (ids: string[]): void => {\n const filters = JSON.stringify({\n ...previousFilterState,\n status: ids.map(value => RideStatusFilter[value] as string),\n });\n\n localStorage.setItem(RIDES_FILTER, filters);\n\n setStatusIds(ids);\n };\n\n useEffect(() => {\n document.addEventListener('mouseup', handleRideMiddleMouseClick);\n return () => document.removeEventListener('mouseup', handleRideMiddleMouseClick);\n }, [data]);\n\n const handleSendConfirmation = (row: BookingConfirmationRow) => {\n setSelectedRow(row);\n setIsSendBookingConfirmationModalOpen(true);\n };\n\n const handleRowClick = (params: GridRowParams, event: React.MouseEvent) => {\n if (event.button === 0 && event.metaKey) {\n event.preventDefault();\n window.open(getSingleRideRoute(params.id.toString()), '_blank');\n return;\n }\n\n history.push(getSingleRideRoute(params.id.toString()));\n };\n\n const handleEditRide = (rideId: string) => {\n useNewCustomerRidePage ? history.push(getUpdateRideRoute(rideId)) : history.push(getSingleRideRoute(rideId));\n };\n\n const columns = useRidesColumns(\n useCallback(handleSendConfirmation, []),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useCallback(handleEditRide, []),\n currentUser?.primaryTimeZone\n );\n\n const { mutate: exportRidesToExcelMutation } = useMutation(exportRidesToExcel);\n\n const handleNewRide = (): void => {\n history.push(BOOKING_TOOL);\n };\n\n const handleExport = (): void => {\n const rideResultIds = data?.map(ride => ride.unid);\n\n if (selectedDateRange[0] === null || selectedDateRange[1] === null) {\n showNotification(t('alert.dateRangeRequired'), Severity.Error);\n return;\n }\n\n exportRidesToExcelMutation({\n startDate: dayjs(selectedDateRange[0]).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n endDate: dayjs(selectedDateRange[1]).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n tripUnids: rideResultIds,\n });\n };\n\n const initialBookingConfirmationEmails: BookingConfirmationEmail[] = useMemo(() => {\n return selectedRow?.passengers\n ? selectedRow?.passengers?.map((traveller: Passenger) => ({\n id: traveller.email,\n email: traveller.email,\n isIncluded: traveller.isLead,\n }))\n : ([] as BookingConfirmationEmail[]);\n }, [selectedRow]);\n\n const dataRows = useMemo(() => {\n if (data) {\n return mapRidesToRows(data, currentUser);\n }\n\n return [];\n }, [currentUser, data]);\n\n const handleResetFilters = () => {\n const filters = resetCustomerRidesFilter();\n const filterStatusIds = filters.status.map(value => getRideStatusKey(value) as string);\n\n setSearchPhrase('');\n setStatusIds(filterStatusIds);\n setSelectedDateRange(filters.dateRange);\n setStatusFilterKey(Math.random());\n };\n\n const resetFiltersButton = useMemo(\n () => (\n \n \n \n {t('buttonName.resetFilters')}\n \n \n ),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [handleResetFilters]\n );\n\n const filtersActive = useMemo(() => {\n return selectedDateRange.some(range => range !== null) || statusIds.some(status => Boolean(status));\n }, [selectedDateRange, statusIds]);\n\n if (!isPageOpened.current) {\n isPageOpened.current = true;\n logAmplitudeEvent(RIDES_PAGE);\n }\n\n if (isInitialLoad && isLoading) {\n return ;\n }\n\n return (\n \n \n \n \n {t('rides')}\n \n \n \n }>\n {t('pages.rides.newRide')}\n \n \n \n \n \n {\n setSearchPhrase(event.target.value);\n }}\n className={classes.search}\n label={t('pages.rides.searchByPassengerReferenceRide')}\n name=\"search\"\n InputProps={{\n endAdornment: (\n \n {isLoading || isRefetching ? : }\n \n ),\n onBlur: event => setSearchPhrase(event.target.value),\n }}\n onBlur={event => setSearchPhrase(event.target.value)}\n />\n {isMobile && (\n setIsFiltersModalOpen(true)}\n >\n \n \n )}\n \n\n {!isMobile && (\n \n t(filter))}\n displayAsButtons\n />\n
    \n \n dr === null) ? t('pages.rides.allTime') : t('dateRange')}\n value={selectedDateRange}\n onChange={newValue => {\n setSelectedDateRange(newValue);\n\n const filters = JSON.stringify({\n ...previousFilterState,\n dateRange: newValue,\n });\n\n localStorage.setItem(RIDES_FILTER, filters);\n }}\n localeText={{\n start: t('pages.rides.startingDate'),\n end: t('pages.rides.endingDate'),\n ...datePickerPlaceholder,\n }}\n slotProps={{\n shortcuts: {\n items: shortcutsItems,\n },\n field: { clearable: true },\n textField: {\n variant: 'filled',\n placeholder: 'dd mmm y',\n inputProps: { readOnly: true },\n InputProps: {\n endAdornment: selectedDateRange.every(dr => dr === null) && (\n \n ),\n },\n },\n }}\n slots={{ field: SingleInputDateRangeField }}\n format={DATE_FORMATS['DD MMM YYYY']}\n />\n \n
    \n
    \n )}\n
    \n \n \n 'auto'}\n onRowClick={handleRowClick}\n loading={isLoading || !dataRows}\n slots={{\n noRowsOverlay: () => (\n {resetFiltersButton}\n }\n />\n ),\n footer: () =>\n dataRows?.length > 0\n ? CustomFooter({\n handleExport,\n totalCount: data.length,\n })\n : null,\n }}\n sx={{ overflowX: 'scroll' }}\n />\n \n \n {isSendBookingConfirmationModalOpen && (\n setIsSendBookingConfirmationModalOpen(false)}\n rideId={selectedRow?.rideId ?? ''}\n />\n )}\n {isFiltersModalOpen && (\n ; status: string[] }) => {\n const filters = JSON.stringify({\n status: values.status,\n dateRange: values.dateRange,\n });\n\n localStorage.setItem(RIDES_FILTER, filters);\n\n setStatusIds(values.status);\n setSelectedDateRange(values.dateRange);\n }}\n statusFilterMap={rideStatusMap}\n isOpen={isFiltersModalOpen}\n onClose={() => setIsFiltersModalOpen(false)}\n numberedValues={null}\n page=\"CUSTOMER\"\n />\n )}\n \n );\n};\n\nexport default Rides;\n","export function isLandscape() {\n return Math.abs(window.orientation) === 90;\n}\n","import CloudDownloadOutlinedIcon from '@mui/icons-material/CloudDownloadOutlined';\nimport { ButtonBase } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { BUTTON_WIDTH } from '../../../constants/layout';\n\nconst useStyles = makeStyles({\n isDisabled: {\n backgroundColor: `${COLORS.LIGHT_GRAY} !important`,\n color: COLORS.SLATE_GREY,\n },\n exportMainButton: {\n position: 'absolute',\n background: COLORS.WHITE,\n bottom: '-15px',\n left: 'calc(50% - 4rem)',\n width: BUTTON_WIDTH,\n height: '44px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n boxShadow: `0px 4px 20px ${COLORS.BLACK_12}`,\n borderRadius: '4px',\n color: COLORS.SLATE_GREY,\n fontWeight: 700,\n },\n});\n\ninterface ExportButtonProps {\n onClick?: () => void;\n isDisabled?: boolean;\n}\n\nconst ExportButton = ({ onClick, isDisabled }: ExportButtonProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n\n return (\n \n \n {t('pages.rides.export')}\n \n );\n};\n\nexport default ExportButton;\n","import { TertiaryButton } from '@get-e/react-components';\nimport TuneOutlinedIcon from '@mui/icons-material/TuneOutlined';\nimport { Box } from '@mui/system';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport useRidesStyles from './Rides.styles';\n\nexport const ResetFilterButton = ({ handleResetFilters }: { handleResetFilters: () => void }) => {\n const classes = useRidesStyles();\n const { t } = useTranslation();\n\n return (\n \n \n \n {t('buttonName.resetFilters')}\n \n \n );\n};\n","import { SvgIconComponent } from '@mui/icons-material';\nimport { SvgIcon, Typography } from '@mui/material';\nimport { Box } from '@mui/system';\nimport React from 'react';\nimport { COLORS } from '../../constants/colors';\n\ninterface IconedLabelProps {\n icon: SvgIconComponent;\n label?: string;\n dataLabel?: string;\n suffix?: string;\n alignToTop?: boolean;\n colorOfIconAndLabel?: string;\n excludeAnotation?: boolean;\n}\n\nexport const IconedLabel = ({\n icon,\n label,\n dataLabel,\n suffix = ': ',\n alignToTop,\n colorOfIconAndLabel,\n excludeAnotation,\n}: IconedLabelProps) => {\n return (\n \n \n \n \n {label}\n {!excludeAnotation && suffix}{' '}\n \n {dataLabel}\n \n \n );\n};\n","import { RideStatus } from '../../../../helpers/rideStatusUtil';\n\nexport enum RideChangeStatusKey {\n CONFIRM_RIDE,\n CLOSE_RIDE,\n DOWNLOAD_RIDE_ORDER,\n REFERENCES_AND_REMARKS,\n ADD_DRIVER,\n UNASSIGN_DRIVER,\n UNASSIGN_DRIVER_AND_VEHICLE,\n CHANGE_DRIVER,\n ADD_DRIVER_AND_VEHICLE,\n CHANGE_DRIVER_AND_VEHICLE,\n}\n\nexport interface RideChangeStatusOptionsMap {\n mainButton: keyof typeof RideChangeStatusKey;\n options: Array;\n}\n\nexport const rideChangeStatusLabel: Record = {\n CONFIRM_RIDE: 'buttonName.confirm',\n CLOSE_RIDE: 'buttonName.close',\n DOWNLOAD_RIDE_ORDER: 'pages.rides.downloadRideOrder',\n REFERENCES_AND_REMARKS: 'pages.rides.reference&remarks',\n ADD_DRIVER: 'buttonName.addDriver',\n UNASSIGN_DRIVER: 'pages.rides.unassignDriver',\n CHANGE_DRIVER: 'buttonName.changeDriver',\n ADD_DRIVER_AND_VEHICLE: 'buttonName.addDriverAndVehicle',\n CHANGE_DRIVER_AND_VEHICLE: 'buttonName.changeDriverAndVehicle',\n UNASSIGN_DRIVER_AND_VEHICLE: 'pages.rides.unassignDriverAndVehicle',\n};\n\nexport const rideChangeStatusTooltip: Record = {\n CONFIRM_RIDE: 'pages.rides.changeStatusConfirm',\n CLOSE_RIDE: 'pages.rides.changeStatusToClose',\n DOWNLOAD_RIDE_ORDER: null,\n REFERENCES_AND_REMARKS: null,\n ADD_DRIVER: 'pages.rides.changeStatusConfirmNoDriver',\n UNASSIGN_DRIVER: null,\n CHANGE_DRIVER: 'pages.rides.changeStatusConfirmWithDriver',\n ADD_DRIVER_AND_VEHICLE: null,\n CHANGE_DRIVER_AND_VEHICLE: null,\n UNASSIGN_DRIVER_AND_VEHICLE: null,\n};\n\nexport const getRideChangeStatusOptionsMap = (\n status: keyof typeof RideStatus,\n isDriverAssigned: boolean\n): RideChangeStatusOptionsMap | null => {\n switch (status) {\n case 'TO_CONFIRM':\n return {\n mainButton: 'CONFIRM_RIDE',\n options: [\n 'DOWNLOAD_RIDE_ORDER',\n isDriverAssigned ? 'CHANGE_DRIVER_AND_VEHICLE' : 'ADD_DRIVER_AND_VEHICLE',\n ...(isDriverAssigned ? ['UNASSIGN_DRIVER_AND_VEHICLE' as keyof typeof RideChangeStatusKey] : []),\n ],\n };\n case 'TO_CONFIRM_CHANGE':\n return {\n mainButton: 'CONFIRM_RIDE',\n options: [\n 'DOWNLOAD_RIDE_ORDER',\n isDriverAssigned ? 'CHANGE_DRIVER_AND_VEHICLE' : 'ADD_DRIVER_AND_VEHICLE',\n 'REFERENCES_AND_REMARKS',\n ...(isDriverAssigned ? ['UNASSIGN_DRIVER_AND_VEHICLE' as keyof typeof RideChangeStatusKey] : []),\n ],\n };\n case 'CONFIRMED':\n case 'DRIVER_ON_THE_WAY':\n case 'DRIVER_AT_PICKUP':\n case 'PASSENGER_ON_BOARD':\n case 'ACTIVE':\n return {\n mainButton: isDriverAssigned ? 'CHANGE_DRIVER_AND_VEHICLE' : 'ADD_DRIVER_AND_VEHICLE',\n options: [\n 'REFERENCES_AND_REMARKS',\n 'DOWNLOAD_RIDE_ORDER',\n ...(isDriverAssigned ? ['UNASSIGN_DRIVER_AND_VEHICLE' as keyof typeof RideChangeStatusKey] : []),\n ],\n };\n case 'TO_CLOSE':\n return {\n mainButton: 'CLOSE_RIDE',\n options: ['REFERENCES_AND_REMARKS', 'DOWNLOAD_RIDE_ORDER'],\n };\n default:\n return null;\n }\n};\n","import BadgeOutlinedIcon from '@mui/icons-material/BadgeOutlined';\nimport DeleteOutlineOutlinedIcon from '@mui/icons-material/DeleteOutlineOutlined';\nimport FileDownloadOutlinedIcon from '@mui/icons-material/FileDownloadOutlined';\nimport RequestQuoteOutlinedIcon from '@mui/icons-material/RequestQuoteOutlined';\nimport { Box } from '@mui/system';\nimport { GridRowModel } from '@mui/x-data-grid-pro';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport DropdownButtonMenu, { DropdownMenuOption } from '../../../../../components/dropdownButtonMenu/DropdownButtonMenu';\nimport CellWrapper from '../../../components/CellWrapper';\nimport { RideRow } from '../../api/types';\nimport {\n RideChangeStatusKey,\n RideChangeStatusOptionsMap,\n getRideChangeStatusOptionsMap,\n rideChangeStatusLabel,\n rideChangeStatusTooltip,\n} from '../ridesChangeStatusUtil';\n\ninterface ChangeStatusProps {\n row: GridRowModel;\n handleChangeStatusButtonClick: (rideId: string, optionsMap: RideChangeStatusOptionsMap) => void;\n handleReferenceAndRemarks: (data: RideRow) => void;\n handleDownloadRideOrder: (id: string) => void;\n handleRemoveDriver: (rideId: string, driverId: string) => void;\n handleDriverAndVehicle: (rideId: string) => void;\n isMobile: boolean;\n}\n\nexport const ChangeStatusButton = ({\n row,\n isMobile,\n handleChangeStatusButtonClick,\n handleDownloadRideOrder,\n handleReferenceAndRemarks,\n handleRemoveDriver,\n handleDriverAndVehicle,\n}: ChangeStatusProps) => {\n const { t } = useTranslation();\n\n const optionsMap: RideChangeStatusOptionsMap | null = useMemo(\n () => getRideChangeStatusOptionsMap(row.status, Boolean(row.driver)),\n [row.status, row.driver]\n );\n\n const changeStatusOptions = useMemo((): DropdownMenuOption[] => {\n const options: DropdownMenuOption[] = [];\n\n if (!optionsMap) {\n return options;\n }\n\n if (optionsMap.options.includes('ADD_DRIVER_AND_VEHICLE')) {\n options.push({\n id: RideChangeStatusKey.ADD_DRIVER_AND_VEHICLE,\n label: t(rideChangeStatusLabel.ADD_DRIVER_AND_VEHICLE),\n icon: BadgeOutlinedIcon,\n onClick: () => handleDriverAndVehicle(row.unid),\n });\n }\n\n if (optionsMap.options.includes('CHANGE_DRIVER_AND_VEHICLE')) {\n options.push({\n id: RideChangeStatusKey.CHANGE_DRIVER_AND_VEHICLE,\n label: t(rideChangeStatusLabel.CHANGE_DRIVER_AND_VEHICLE),\n icon: BadgeOutlinedIcon,\n onClick: () => handleDriverAndVehicle(row.unid),\n });\n }\n\n if (optionsMap.options.includes('UNASSIGN_DRIVER')) {\n options.push({\n id: RideChangeStatusKey.UNASSIGN_DRIVER,\n label: t(rideChangeStatusLabel.UNASSIGN_DRIVER),\n icon: DeleteOutlineOutlinedIcon,\n onClick: () => handleRemoveDriver(row.id, row.driver?.id),\n });\n }\n\n if (optionsMap.options.includes('UNASSIGN_DRIVER_AND_VEHICLE')) {\n options.push({\n id: RideChangeStatusKey.UNASSIGN_DRIVER_AND_VEHICLE,\n label: t(rideChangeStatusLabel.UNASSIGN_DRIVER_AND_VEHICLE),\n icon: DeleteOutlineOutlinedIcon,\n onClick: () => handleRemoveDriver(row.id, row.driver?.id),\n });\n }\n\n if (optionsMap.options.includes('REFERENCES_AND_REMARKS')) {\n options.push({\n id: RideChangeStatusKey.REFERENCES_AND_REMARKS,\n label: t(rideChangeStatusLabel.REFERENCES_AND_REMARKS),\n icon: RequestQuoteOutlinedIcon,\n onClick: () => handleReferenceAndRemarks(row as RideRow),\n });\n }\n\n if (optionsMap.options.includes('DOWNLOAD_RIDE_ORDER')) {\n options.push({\n id: RideChangeStatusKey.DOWNLOAD_RIDE_ORDER,\n label: t(rideChangeStatusLabel.DOWNLOAD_RIDE_ORDER),\n icon: FileDownloadOutlinedIcon,\n onClick: () => handleDownloadRideOrder(row.id),\n });\n }\n\n return options;\n }, [handleDownloadRideOrder, handleReferenceAndRemarks, handleDriverAndVehicle, handleRemoveDriver, optionsMap, row, t]);\n\n const mainButtonTooltip = useMemo(\n () => (optionsMap ? t(rideChangeStatusTooltip[optionsMap.mainButton] as string) : undefined),\n [optionsMap, t]\n );\n\n if (!optionsMap) {\n return null;\n }\n\n return (\n \n \n handleChangeStatusButtonClick(row.id, optionsMap)}\n options={changeStatusOptions}\n tooltip={mainButtonTooltip}\n tooltipWidth={130}\n />\n \n \n );\n};\n","import FlightLandOutlinedIcon from '@mui/icons-material/FlightLandOutlined';\nimport { Typography } from '@mui/material';\nimport { Box } from '@mui/system';\nimport { GridRowModel } from '@mui/x-data-grid-pro';\nimport React, { useState } from 'react';\n\nimport { COLORS } from '../../../../../constants/colors';\nimport { getAirlineIataImage } from '../../../../../services/routes';\nimport FlightStatusBadge from '../../../components/FlightStatusBadge';\n\ninterface FlightInfoProps {\n row: GridRowModel;\n}\n\nexport const FlightInfo = ({ row }: FlightInfoProps) => {\n const [imageError, setImageError] = useState(false);\n\n const airlineAbrevation = row.flightDetails.number ? row.flightDetails.number.replace(/[^a-zA-Z]/g, '') : '';\n\n const handleImageError = () => {\n setImageError(true);\n };\n\n return row.flightDetails.number ? (\n \n {!imageError ? (\n \n ) : (\n \n )}\n \n {row.flightDetails.number}\n \n \n \n ) : null;\n};\n","import HailOutlinedIcon from '@mui/icons-material/HailOutlined';\nimport LuggageOutlinedIcon from '@mui/icons-material/LuggageOutlined';\nimport PersonOutlineIcon from '@mui/icons-material/PersonOutline';\nimport { GridRowModel } from '@mui/x-data-grid-pro';\nimport React from 'react';\n\nimport { useTranslation } from 'react-i18next';\nimport { IconedLabel } from '../../../../../components/iconedLabel/IconedLabel';\nimport { Passenger } from '../../../api/types';\nimport CellText from '../../../components/CellText';\n\ninterface RideInformationCellProps {\n row: GridRowModel;\n}\n\nexport const RideInformationCell = ({ row }: RideInformationCellProps) => {\n const { t } = useTranslation();\n const leadPassenger = row.passengers.filter((passenger: Passenger) => passenger.isLead)[0];\n\n return (\n <>\n {leadPassenger && (\n \n \n \n )}\n \n \n \n \n \n \n \n );\n};\n","import BadgeOutlinedIcon from '@mui/icons-material/BadgeOutlined';\nimport DirectionsCarOutlinedIcon from '@mui/icons-material/DirectionsCarOutlined';\nimport LocationOnOutlinedIcon from '@mui/icons-material/LocationOnOutlined';\nimport { Box, Grid, Typography } from '@mui/material';\nimport React, { useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport CopyToClipboardButton from '../../../../components/buttons/CopyToClipboardButton';\nimport { IconedLabel } from '../../../../components/iconedLabel/IconedLabel';\nimport { COLORS } from '../../../../constants/colors';\nimport CellText from '../../components/CellText';\nimport StatusBadge from '../../components/StatusBadge';\nimport { RideRow } from '../api/types';\nimport { ChangeStatusButton } from '../hooks/components/ChangeStatusButton';\nimport { FlightInfo } from '../hooks/components/FlightInfo';\nimport { RideInformationCell } from '../hooks/components/RideInformationCell';\nimport { RideChangeStatusOptionsMap } from '../hooks/ridesChangeStatusUtil';\n\ninterface MobileListProps {\n data: RideRow[];\n handleChangeStatusButtonClick: (rideId: string, optionsMap: RideChangeStatusOptionsMap) => void;\n handleReferenceAndRemarks: (data: RideRow) => void;\n handleDownloadRideOrder: (id: string) => void;\n handleRemoveDriver: (rideId: string, driverId: string) => void;\n handleDriverAndVehicle: (rideId: string) => void;\n handleRowClick: (row: RideRow, event?: React.MouseEvent) => void;\n isFlowC?: boolean;\n}\n\nconst MobileList = ({\n data,\n handleChangeStatusButtonClick,\n handleReferenceAndRemarks,\n handleDownloadRideOrder,\n handleRemoveDriver,\n handleDriverAndVehicle,\n handleRowClick,\n isFlowC = false,\n}: MobileListProps) => {\n const { t } = useTranslation();\n const previousPickupDate = useRef(null);\n const groupingDate = useRef(null);\n\n if (!data) {\n return null;\n }\n\n const hasMissingAssignments = (row: RideRow) => {\n const hasDriver = Boolean(row.driver);\n const hasVehicle = Boolean(row.driverVehicleId);\n\n return !hasDriver || !hasVehicle;\n };\n\n return (\n <>\n {data?.map((rideItem: RideRow) => {\n if (rideItem.pickupDate !== previousPickupDate.current) {\n previousPickupDate.current = rideItem.pickupDate;\n groupingDate.current = rideItem.pickupDate;\n } else {\n groupingDate.current = null;\n }\n\n const backgroundColor = isFlowC && hasMissingAssignments(rideItem) ? 'rgba(0, 0, 0, 0.05)' : undefined;\n\n return (\n \n {groupingDate.current && (\n \n {rideItem.pickupDate}\n \n )}\n handleRowClick(rideItem)}\n style={{ backgroundColor }}\n >\n \n \n \n {rideItem.pickupTime}\n \n \n \n {rideItem.rideNumber}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {rideItem.supplierReference && (\n \n {t('reference')}:{' '}\n {rideItem.supplierReference}\n \n )}\n \n {t('price')}:{' '}\n {rideItem.price}\n \n \n \n \n \n );\n })}\n \n );\n};\n\nexport default React.memo(MobileList);\n","import { createContext } from 'react';\n\nexport interface SupplierRidesContext {\n searchPhrase: string;\n}\n\nexport const RidesContext = createContext({ searchPhrase: '' });\n","import { TextField } from '@get-e/react-components';\nimport SearchIcon from '@mui/icons-material/Search';\nimport { InputAdornment } from '@mui/material';\nimport React, { useContext } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { RidesContext } from '../context/RidesContext';\n\ninterface SearchInputProps {\n onChange?: (value: string) => void;\n}\n\nconst SearchInput = ({ onChange }: SearchInputProps) => {\n const { t } = useTranslation();\n\n const { searchPhrase } = useContext(RidesContext);\n\n return (\n \n \n \n ),\n }}\n onChange={event => {\n onChange && onChange(event.target.value);\n }}\n />\n );\n};\n\nexport default React.memo(SearchInput, () => true);\n","import dayjs from 'dayjs';\n\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { RideAmplitudeEventProperties, RideResponse } from '../../../ride/api/types';\n\nconst getAmplitudeEventProperies = (data: RideResponse | undefined) => {\n if (!data) {\n return;\n }\n\n return {\n 'Ride number': data.prettifiedUnid,\n 'Ride created time': dayjs.utc(data.createdAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride pickup time': dayjs.utc(data.pickUp.departAt).format(DATE_FORMATS['YYYY-MM-DD HH:mm:ss']),\n 'Ride customer': data.customer,\n 'Ride supplier': data.supplier,\n 'Ride status': data.status,\n 'Ride situation tags': data.situationTag,\n 'Ride qc status': data.qcStatus,\n 'Ride has driver': Boolean(data.driver),\n } as RideAmplitudeEventProperties;\n};\n\nexport default getAmplitudeEventProperies;\n","import { GridRowsProp, GridValidRowModel } from '@mui/x-data-grid-pro';\n\nimport { DATE_FORMATS } from '../../../../constants/dateFormats';\nimport { TIME_FORMATS } from '../../../../constants/timeFormats';\nimport { getDateTimeWithoutOffsetFormatted } from '../../../../helpers/getDateTimeWithoutOffset';\nimport { RideStatus } from '../../../../helpers/rideStatusUtil';\nimport { RideResponse } from '../../../ride/api/types';\n\nconst isUpdatedRideStatusMatching = (\n updatedStatus: keyof typeof RideStatus,\n statusFilterKeys: Array\n) => {\n // If no status filters are selected that nmeans all statuses are applied\n if (statusFilterKeys.length === 0) {\n return true;\n }\n\n switch (updatedStatus) {\n case 'COMPLETED':\n case 'CANCELLED':\n case 'TO_CLOSE':\n return statusFilterKeys.includes(updatedStatus);\n case 'TO_CONFIRM':\n case 'TO_CONFIRM_CHANGE':\n return statusFilterKeys.includes('TO_CONFIRM');\n case 'ACTIVE':\n case 'CONFIRMED':\n return statusFilterKeys.includes('CONFIRMED');\n default:\n return false;\n }\n};\n\nexport const mapRidesToRows = (props: {\n rows: RideResponse[];\n updatedRide?: RideResponse;\n statusFilterKeys: Array;\n}): GridRowsProp => {\n const result: GridValidRowModel[] = [];\n\n props.rows.forEach(row => {\n let data = row;\n\n if (props.updatedRide && props.updatedRide.unid === row.unid) {\n if (!isUpdatedRideStatusMatching(props.updatedRide.status, props.statusFilterKeys)) {\n return;\n }\n\n data = props.updatedRide;\n }\n\n result.push({\n id: data.unid,\n rideNumber: data.prettifiedUnid,\n status: data.status,\n trackingStatus: data.trackingStatus,\n originalPickupUtc: data.pickUp.departAt,\n pickupDateTime: getDateTimeWithoutOffsetFormatted(\n data.pickUp?.departAtLocal,\n DATE_FORMATS['ddd, DD MMM YYYY at HH:mm A']\n ),\n pickupDate: getDateTimeWithoutOffsetFormatted(data.pickUp?.departAtLocal, DATE_FORMATS['ddd DD MMM']),\n pickupTime: getDateTimeWithoutOffsetFormatted(data.pickUp?.departAtLocal, TIME_FORMATS['HH:mm A']),\n pickupDateSorting: getDateTimeWithoutOffsetFormatted(data.pickUp?.departAtLocal, DATE_FORMATS['DD MMM YYYY']),\n passengers: data.passengers,\n vehicleType: `${data.vehicle?.class} ${data.vehicle?.type} ${\n data.vehicle?.brandAndModel ? `(${data.vehicle.brandAndModel})` : ''\n }`,\n customerReference: data.customerReference,\n driver: data.driver,\n price: `${data.price?.isoCurrency} ${data.price?.amount.toFixed(2)}`,\n passengersCount: data.numberOfPassengers,\n luggages: data.numberOfBags,\n flightStatus: data.flightDetails?.status,\n flightDetails: data.flightDetails,\n distanceInMeters: data.distanceInMeters,\n durationInSeconds: data.durationInSeconds,\n numberOfPassengers: data.numberOfPassengers,\n numberOfBags: data.numberOfBags,\n vehicle: data.vehicle,\n specialRequest: data.specialRequest,\n pickupDescription: data.pickupDescription,\n notesForTheCustomer: data.notesForTheCustomer,\n pickUp: data.pickUp,\n dropOff: data.dropOff,\n supplierReference: data.supplierReference,\n unid: data.unid,\n });\n });\n\n return result;\n};\n","import BadgeOutlinedIcon from '@mui/icons-material/BadgeOutlined';\nimport DirectionsCarOutlinedIcon from '@mui/icons-material/DirectionsCarOutlined';\nimport { Box } from '@mui/material';\nimport { GridRowParams } from '@mui/x-data-grid-pro';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { IconedLabel } from '../../../../components/iconedLabel/IconedLabel';\nimport { COLORS } from '../../../../constants/colors';\nimport useDataGridStyles from '../../../../styles/DataGrid';\nimport CellText from '../../components/CellText';\nimport CellWrapper from '../../components/CellWrapper';\nimport StatusBadge from '../../components/StatusBadge';\nimport { RideRow } from '../api/types';\nimport { ChangeStatusButton } from './components/ChangeStatusButton';\nimport { FlightInfo } from './components/FlightInfo';\nimport { RideInformationCell } from './components/RideInformationCell';\nimport { RideChangeStatusOptionsMap } from './ridesChangeStatusUtil';\n\nexport const useRidesColumns = (\n handleChangeStatusButtonClick: (rideId: string, optionsMap: RideChangeStatusOptionsMap) => void,\n handleReferenceAndRemarks: (data: RideRow) => void,\n handleDownloadRideOrder: (id: string) => void,\n handleRemoveDriver: (rideId: string, driverId: string) => void,\n handleDriverAndVehicle: (rideId: string) => void,\n statusBadgeKey?: number\n) => {\n const dataGridClases = useDataGridStyles();\n const { t } = useTranslation();\n const { useSupplierFinancialInformationVisibility } = useFlags();\n\n const desktopColumns = useMemo(() => {\n const columns = [\n {\n field: 'status',\n headerName: t('status'),\n width: 170,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n \n \n ),\n },\n {\n field: 'pickup',\n headerName: t('pickUp'),\n minWidth: 230,\n flex: 1,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n {params.row.pickupDateTime}\n \n ),\n },\n {\n field: 'route',\n headerName: t('pages.rides.route'),\n minWidth: 200,\n flex: 1,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n \n {t('from')}: \n {params.row.pickUp.location.name}\n \n \n {t('To')}: \n {params.row.dropOff.location.name}\n \n \n \n ),\n },\n {\n field: 'rideInformation',\n headerName: t('rideInformation'),\n width: 190,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n \n \n ),\n },\n {\n field: 'driver',\n headerName: t('driver'),\n width: 200,\n sortable: false,\n renderCell: (params: GridRowParams) => (\n \n \n \n \n \n \n \n \n ),\n },\n {\n field: 'references',\n headerName: t('pages.rides.references'),\n minWidth: 180,\n flex: 1,\n sortable: false,\n headerClassName: dataGridClases.hideSeparator,\n renderCell: (params: GridRowParams) => (\n \n \n \n \n {t('rideNumber')}:
    \n {params.row.rideNumber}\n
    \n {params.row.supplierReference && (\n \n {t('reference')}:{' '}\n {params.row.supplierReference}\n \n )}\n {useSupplierFinancialInformationVisibility && (\n \n {t('price')}:{' '}\n {params.row.price}\n \n )}\n
    \n
    \n
    \n ),\n },\n {\n field: 'changeStatus',\n headerName: '',\n minWidth: 210,\n sortable: false,\n flex: 1,\n headerClassName: dataGridClases.hideSeparator,\n renderCell: (params: GridRowParams) => (\n \n ),\n },\n ];\n\n return columns;\n }, [\n dataGridClases.hideSeparator,\n handleChangeStatusButtonClick,\n handleDownloadRideOrder,\n handleReferenceAndRemarks,\n handleRemoveDriver,\n handleDriverAndVehicle,\n statusBadgeKey,\n t,\n useSupplierFinancialInformationVisibility,\n ]);\n\n return [desktopColumns];\n};\n","/* eslint-disable max-lines-per-function */\n/* eslint-disable complexity */\n/* eslint-disable max-statements */\nimport { MultipleSelect, NoResultsDataGrid as NoResults } from '@get-e/react-components';\nimport CalendarTodayOutlinedIcon from '@mui/icons-material/CalendarTodayOutlined';\nimport { Box, Grid, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { DataGridPro, GridColDef, GridRowParams } from '@mui/x-data-grid-pro';\nimport { DateRangePicker, DateRange, LocalizationProvider, SingleInputDateRangeField } from '@mui/x-date-pickers-pro';\nimport { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';\nimport clsx from 'clsx';\nimport dayjs, { Dayjs } from 'dayjs';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\nimport { useHistory } from 'react-router-dom';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport { RIDES_PAGE } from '../../../constants/amplitude/commonKeys';\nimport {\n ADD_DRIVER_AND_VEHICLE_BUTTON,\n CHANGE_DRIVER_AND_VEHICLE_BUTTON,\n SINGLE_RIDE_ADD_DRIVER,\n SINGLE_RIDE_ADD_REMARKS,\n SINGLE_RIDE_CHANGE_DRIVER,\n SINGLE_RIDE_CLOSE,\n SINGLE_RIDE_CONFIRM,\n SINGLE_RIDE_DOWNLOAD_DOCUMENTATION,\n SINGLE_RIDE_DRIVER_UNASSIGN,\n} from '../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../../constants/datePickerPlaceholder';\nimport { getSingleRideRoute } from '../../../constants/urlPaths';\nimport { SUPPLIER_RIDES_FILTER } from '../../../constants/windowStorageKeys';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { isLandscape } from '../../../helpers/isLandscape';\nimport {\n getRideStatusKey,\n getSupplierRidesFilter,\n resetSupplierRidesFilter,\n RideStatus,\n RideStatusSupplierFilter,\n useRideStatusSupplierMap,\n} from '../../../helpers/rideStatusUtil';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport { RideAmplitudeEventProperties, RideResponse } from '../../ride/api/types';\nimport ConfirmRideModal from '../../ride/supplier/components/ConfirmRideModal';\nimport DriverVehicleModal from '../../ride/supplier/components/DriverVehicleModal';\nimport StepperDriverVehicleModal from '../../ride/supplier/components/StepperDriverVehicleModal';\nimport downloadRideOrder from '../api/downloadRideOrder';\nimport exportRidesToExcel from '../api/exportRidesToExcel';\nimport { useRides } from '../api/useRides';\nimport { CustomFooter } from '../components/CustomFooter';\nimport ExportButton from '../components/ExportButton';\nimport { ResetFilterButton } from '../components/ResetFiltersButton';\nimport useRidesStyles from '../components/Rides.styles';\nimport RidesLoadingSkeleton from '../components/RidesLoadingSkeleton';\nimport { unassignDriverFromRide } from './api';\nimport { RideRow } from './api/types';\nimport AddDriverModalRidesOverview from './components/AddDriverModalRidesOverview';\nimport ChangeDriverModalRidesOverview from './components/ChangeDriverModalRidesOverview';\nimport CloseRideModal from './components/CloseRideModal';\nimport MobileList from './components/MobileList';\nimport ReferencesAndRemarksModal from './components/ReferencesAndRemarksModal';\nimport RemoveDriverConfirmModal from './components/RemoveDriverConfirmModal';\nimport SearchInput from './components/SearchInput';\nimport { RidesContext } from './context/RidesContext';\nimport getAmplitudeEventProperies from './helpers/getAmplitudeEventProperties';\nimport { handleRideMiddleMouseClick } from './helpers/handleRideMiddleMouseClick';\nimport { mapRidesToRows } from './helpers/mapRidesToRows';\nimport { RideChangeStatusOptionsMap } from './hooks/ridesChangeStatusUtil';\nimport { useRidesColumns } from './hooks/useRidesColumns';\n\nconst useStyles = makeStyles({\n resetMobile: {\n marginBottom: '2rem',\n marginTop: '1rem',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n fullScreenLoader: {\n height: 'calc(100vh - 300px)',\n width: '100%',\n display: 'flex',\n '& > div ': {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n '& > div': { minHeight: 'auto' },\n },\n },\n missingDriverVehicleRow: {\n backgroundColor: COLORS.LIGHT_ORANGE,\n '&:hover': {\n backgroundColor: 'rgba(255, 235, 215, 0.08)',\n },\n },\n});\n\nexport enum RideAction {\n EDIT_RIDE,\n SEND_CONFIRMATION,\n DOWNLOAD_CONFIRMATION,\n}\n\nlet searchTimeoutId: ReturnType | number = -1;\n\nconst Rides = () => {\n const { t } = useTranslation();\n const history = useHistory();\n const classes = useStyles();\n const ridesClasses = useRidesStyles();\n const dataGridClases = useDataGridStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { showNotification } = useNotificationContext();\n const previousFilterState = getSupplierRidesFilter();\n const [searchTerm, setSearchTerm] = useState('');\n const isPageOpened = useRef(false);\n const rideStatusSupplierMap = useRideStatusSupplierMap();\n const { newFrontendExperience, useSupplierFinancialInformationVisibility } = useFlags();\n\n const [debouncedSearchPhrase, setDebouncedSearchPhrase] = useState('');\n const [isSavingRemove, setIsSavingRemove] = useState(false);\n const [updatedRideData, setUpdatedRideData] = useState();\n\n const [statusIds, setStatusIds] = useState(\n previousFilterState.status.map(value => getRideStatusKey(value) as string)\n );\n\n const [selectedDateRange, setSelectedDateRange] = useState>(previousFilterState.dateRange);\n\n const [isDriverAndVehicleModalOpen, setIsDriverAndVehicleModalOpen] = useState(false);\n const [isConfirmRideModalOpen, setIsConfirmRideModalOpen] = useState(false);\n const [isCloseRideModalOpen, setIsCloseRideModalOpen] = useState(false);\n const [isReferencesModalOpen, setIsReferencesModalOpen] = useState(false);\n const [isAddDriverModalOpen, setIsAddDriverModalOpen] = useState(false);\n const [isRemoveDriverConfirmModalOpen, setIsRemoveDriverConfirmModalOpen] = useState(false);\n const [statusFilterKey, setStatusFilterKey] = useState(0);\n const [driverToRemove, setDriverToRemove] = useState<{ rideId: string; driverId: string }>();\n const [isChangeDriverModalOpen, setIsChangeDriverModalOpen] = useState(false);\n const [isInitialLoad, setIsInitialLoad] = useState(true);\n const rideDataRef = useRef();\n const amplitudeEventProperties = useRef();\n\n const {\n data: rideResponse,\n refetch,\n isRefetching,\n isLoading,\n } = useRides({\n query: debouncedSearchPhrase,\n statusFilters: statusIds?.filter(el => el),\n startDate: selectedDateRange[0]\n ? dayjs(selectedDateRange[0])\n .set('hour', 0)\n .set('minute', 0)\n .set('second', 0)\n .format(DATE_FORMATS['YYYY-MM-DDT00:00:00'])\n : null,\n endDate: selectedDateRange[1]\n ? dayjs(selectedDateRange[1])\n .set('hour', 0)\n .set('minute', 0)\n .set('second', 0)\n .format(DATE_FORMATS['YYYY-MM-DDT00:00:00'])\n : null,\n });\n\n const { mutate: exportRidesToExcelMutation, isLoading: isLoadingExport } = useMutation(exportRidesToExcel);\n\n const { mutate: downloadRideOrderMutation } = useMutation(downloadRideOrder);\n\n useEffect(() => {\n if (!isLoading && isInitialLoad) {\n setIsInitialLoad(false);\n }\n }, [isLoading, isInitialLoad]);\n\n const onSetStatusIds = (ids: string[]): void => {\n const filters = JSON.stringify({\n ...previousFilterState,\n status: ids.map(value => RideStatusSupplierFilter[value] as string),\n });\n\n localStorage.setItem(SUPPLIER_RIDES_FILTER, filters);\n\n setStatusIds(ids);\n };\n\n const handleChangeStatusButtonClick = useCallback(\n (rideId: string, optionsMap: RideChangeStatusOptionsMap) => {\n const ride = rideResponse.find(singleRide => singleRide.unid === rideId);\n\n rideDataRef.current = ride;\n\n amplitudeEventProperties.current = getAmplitudeEventProperies(ride);\n\n switch (optionsMap.mainButton) {\n case 'CONFIRM_RIDE':\n setIsConfirmRideModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CONFIRM, amplitudeEventProperties.current);\n break;\n case 'CLOSE_RIDE':\n setIsCloseRideModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CLOSE, amplitudeEventProperties.current);\n break;\n case 'ADD_DRIVER':\n setIsAddDriverModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_ADD_DRIVER, amplitudeEventProperties.current);\n break;\n case 'CHANGE_DRIVER':\n setIsChangeDriverModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CHANGE_DRIVER, amplitudeEventProperties.current);\n break;\n case 'ADD_DRIVER_AND_VEHICLE':\n setIsDriverAndVehicleModalOpen(true);\n logAmplitudeEvent(ADD_DRIVER_AND_VEHICLE_BUTTON, amplitudeEventProperties.current);\n break;\n case 'CHANGE_DRIVER_AND_VEHICLE':\n setIsDriverAndVehicleModalOpen(true);\n logAmplitudeEvent(CHANGE_DRIVER_AND_VEHICLE_BUTTON, amplitudeEventProperties.current);\n break;\n default:\n throw Error('Unexpected change status');\n }\n },\n [rideResponse]\n );\n\n const handleReferenceAndRemarks = useCallback(\n (data: RideRow) => {\n rideDataRef.current = data as unknown as RideResponse;\n\n const ride = rideResponse.find(singleRide => singleRide.unid === data.id);\n\n amplitudeEventProperties.current = getAmplitudeEventProperies(ride);\n\n setIsReferencesModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS, amplitudeEventProperties.current);\n },\n [rideResponse]\n );\n\n const handleDownloadRideOrder = useCallback(\n (id: string) => {\n const ride = rideResponse.find(singleRide => singleRide.unid === id);\n\n amplitudeEventProperties.current = getAmplitudeEventProperies(ride);\n\n downloadRideOrderMutation(id);\n logAmplitudeEvent(SINGLE_RIDE_DOWNLOAD_DOCUMENTATION, amplitudeEventProperties.current);\n },\n [downloadRideOrderMutation, rideResponse]\n );\n\n const handleRemoveDriver = useCallback((rideId: string, driverId: string) => {\n setIsRemoveDriverConfirmModalOpen(true);\n setDriverToRemove({\n rideId,\n driverId,\n });\n }, []);\n\n const handleDriverAndVehicle = useCallback(\n (rideId: string) => {\n const ride = rideResponse.find(singleRide => singleRide.unid === rideId);\n\n rideDataRef.current = ride as unknown as RideResponse;\n\n setIsDriverAndVehicleModalOpen(true);\n },\n [rideResponse]\n );\n\n const onConfirmRemoveDriver = async () => {\n let updatedRide = undefined as RideResponse | undefined;\n\n try {\n const ride = driverToRemove ? rideResponse.find(singleRide => singleRide.unid === driverToRemove.rideId) : undefined;\n\n amplitudeEventProperties.current = getAmplitudeEventProperies(ride);\n\n setIsSavingRemove(true);\n\n if (driverToRemove) {\n const { data } = await unassignDriverFromRide(driverToRemove.rideId);\n\n updatedRide = data;\n }\n\n showNotification(t('alert.edit.successRemoveDriver'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_UNASSIGN, amplitudeEventProperties.current);\n } catch (error) {\n showNotification(t('alert.driverUnassignError'), Severity.Error);\n } finally {\n setIsRemoveDriverConfirmModalOpen(false);\n setIsSavingRemove(false);\n await handleConfirmCloseAddRemarksFinished(updatedRide);\n }\n };\n\n const [desktopColumns] = useRidesColumns(\n handleChangeStatusButtonClick,\n handleReferenceAndRemarks,\n handleDownloadRideOrder,\n handleRemoveDriver,\n handleDriverAndVehicle\n );\n\n useEffect(() => {\n document.addEventListener('mouseup', handleRideMiddleMouseClick);\n return () => document.removeEventListener('mouseup', handleRideMiddleMouseClick);\n }, [rideResponse]);\n\n const handleRowClick = useCallback((row: RideRow | GridRowParams, event?: React.MouseEvent) => {\n if (event && event.button === 0 && event.metaKey) {\n event.preventDefault();\n window.open(getSingleRideRoute(row.id.toString()), '_blank');\n return;\n }\n\n history.push(getSingleRideRoute(row.id.toString()));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const handleConfirmCloseAddRemarksFinished = async (updatedRide?: RideResponse) => {\n await refetch();\n\n setTimeout(() => {\n if (updatedRide) {\n setUpdatedRideData(updatedRide);\n }\n }, 500);\n };\n\n const handleExport = (): void => {\n const rideResultIds = rideResponse?.map((ride: RideResponse) => ride.unid);\n\n if (selectedDateRange[0] === null || selectedDateRange[1] === null) {\n showNotification(t('alert.dateRangeRequired'), Severity.Error);\n return;\n }\n\n exportRidesToExcelMutation({\n startDate: dayjs(selectedDateRange[0]).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n endDate: dayjs(selectedDateRange[1]).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n tripUnids: rideResultIds,\n });\n };\n\n const dataRows = useMemo(() => {\n if (rideResponse) {\n return mapRidesToRows({\n rows: rideResponse,\n updatedRide: updatedRideData,\n statusFilterKeys: statusIds as Array,\n });\n }\n\n return [];\n }, [rideResponse, statusIds, updatedRideData]);\n\n const handleResetFilters = () => {\n const filters = resetSupplierRidesFilter();\n const filterStatusIds = filters.status.map(value => getRideStatusKey(value) as string);\n\n setStatusIds(filterStatusIds);\n setSelectedDateRange(filters.dateRange);\n setStatusFilterKey(Math.random());\n };\n\n const numberedValues = useMemo(() => {\n if (rideResponse && (statusIds.includes('TO_CONFIRM') || statusIds.length === 0)) {\n const filteredRides = rideResponse.filter(\n ride => ride.status === 'TO_CONFIRM' || ride.status === 'TO_CONFIRM_CHANGE'\n );\n\n return new Map([['TO_CONFIRM', filteredRides.length.toString()]]);\n }\n\n return new Map([['TO_CONFIRM', '0']]);\n }, [rideResponse, statusIds]);\n\n const calculateOverflowY = useMemo(() => {\n if (isMobile) {\n return isLandscape() ? 'none' : 'auto';\n }\n\n return 'initial';\n }, [isMobile]);\n\n const handleSearchInputOnChange = useCallback(\n (value: string) => {\n setSearchTerm(value);\n clearTimeout(searchTimeoutId);\n searchTimeoutId = setTimeout(() => {\n setDebouncedSearchPhrase(value);\n }, 600);\n },\n [setDebouncedSearchPhrase]\n );\n\n const getRowClassName = (params: GridRowParams) => {\n if (newFrontendExperience === 'FLOW_B') {\n const hasDriver = Boolean(params.row.driver);\n const hasVehicle = Boolean(params.row.driverVehicleId);\n const { pickUp } = params.row;\n\n if ((!hasDriver || !hasVehicle) && pickUp && pickUp.departAt) {\n const now = dayjs().utc();\n const departTime = dayjs.utc(pickUp.departAt);\n\n const hoursDiff = departTime.diff(now, 'hour', true);\n\n if (hoursDiff >= 0 && hoursDiff <= 3 && params.row.status === 'TO_CONFIRM') {\n return classes.missingDriverVehicleRow;\n }\n }\n }\n\n return '';\n };\n\n if (!isPageOpened.current) {\n isPageOpened.current = true;\n logAmplitudeEvent(RIDES_PAGE);\n }\n\n if (isInitialLoad && isLoading) {\n return ;\n }\n\n return (\n \n \n \n \n {t('rides')}\n \n \n \n \n \n \n \n \n {\n setSelectedDateRange(newValue);\n\n const filters = JSON.stringify({\n ...previousFilterState,\n dateRange: newValue,\n });\n\n localStorage.setItem(SUPPLIER_RIDES_FILTER, filters);\n }}\n localeText={{\n start: t('pages.rides.startingDate'),\n end: t('pages.rides.endingDate'),\n ...datePickerPlaceholder,\n }}\n slotProps={{\n textField: {\n variant: 'filled',\n placeholder: 'dd mmm y',\n inputProps: { readOnly: true },\n InputProps: {\n endAdornment: ,\n },\n },\n }}\n format={DATE_FORMATS['DD MMM YYYY']}\n slots={{ field: SingleInputDateRangeField }}\n />\n \n \n \n t(filter))}\n displayAsButtons\n numberedValues={numberedValues}\n />\n
    \n \n {isMobile && rideResponse.length > 0 && (\n \n {`${rideResponse.length.toString()} ${t('rides').toLowerCase()}`}\n \n )}\n
    \n
    \n \n \n \n {!isMobile || dataRows?.length === 0 ? (\n 'auto'}\n onRowClick={params => handleRowClick(params)}\n getRowClassName={getRowClassName}\n slots={{\n noRowsOverlay: () => (\n \n \n \n }\n />\n ),\n footer: () =>\n dataRows?.length > 0 && !isMobile && useSupplierFinancialInformationVisibility\n ? CustomFooter({\n handleExport,\n totalCount: dataRows.length,\n isLoadingExport,\n })\n : null,\n }}\n sx={{ overflowX: 'scroll' }}\n />\n ) : (\n \n )}\n \n {isMobile && dataRows.length > 0 && useSupplierFinancialInformationVisibility && (\n !isLoadingExport && handleExport()} isDisabled={isLoadingExport} />\n )}\n \n \n {isConfirmRideModalOpen && rideDataRef.current && (\n setIsConfirmRideModalOpen(false)}\n onFinished={handleConfirmCloseAddRemarksFinished}\n ride={rideDataRef.current}\n supplierReference={rideDataRef.current.supplierReference ?? undefined}\n />\n )}\n {isCloseRideModalOpen && rideDataRef.current && (\n setIsCloseRideModalOpen(false)}\n onFinished={handleConfirmCloseAddRemarksFinished}\n ride={rideDataRef.current}\n supplierReference={rideDataRef.current.supplierReference ?? undefined}\n />\n )}\n {isReferencesModalOpen && rideDataRef.current && (\n setIsReferencesModalOpen(false)}\n onFinished={handleConfirmCloseAddRemarksFinished}\n supplierReference={rideDataRef.current.supplierReference ?? undefined}\n />\n )}\n {isAddDriverModalOpen && rideDataRef.current?.unid && (\n setIsAddDriverModalOpen(false)}\n rideId={rideDataRef.current?.unid}\n onFinished={handleConfirmCloseAddRemarksFinished}\n amplitudeEventProperties={amplitudeEventProperties.current}\n />\n )}\n {isChangeDriverModalOpen && rideDataRef?.current?.unid && rideDataRef?.current?.driver && (\n setIsChangeDriverModalOpen(false)}\n rideId={rideDataRef?.current?.unid}\n initialDriver={rideDataRef?.current?.driver}\n onFinished={handleConfirmCloseAddRemarksFinished}\n amplitudeEventProperties={amplitudeEventProperties.current}\n />\n )}\n {isRemoveDriverConfirmModalOpen && (\n setIsRemoveDriverConfirmModalOpen(false)}\n onConfirm={onConfirmRemoveDriver}\n isLoading={isSavingRemove}\n />\n )}\n {isDriverAndVehicleModalOpen &&\n (newFrontendExperience === 'FLOW_C' ? (\n {\n await refetch?.();\n setIsDriverAndVehicleModalOpen(false);\n }}\n />\n ) : (\n {\n await refetch?.();\n setIsDriverAndVehicleModalOpen(false);\n }}\n />\n ))}\n
    \n );\n};\n\nexport default Rides;\n","/* eslint-disable @typescript-eslint/init-declarations */\n/* eslint-disable max-lines-per-function */\n/* eslint-disable complexity */\n/* eslint-disable max-statements */\nimport { MultipleSelect, NoResultsDataGrid as NoResults } from '@get-e/react-components';\nimport CalendarTodayOutlinedIcon from '@mui/icons-material/CalendarTodayOutlined';\nimport FilterList from '@mui/icons-material/FilterList';\nimport { Box, Grid, Typography, useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { DataGridPro, GridColDef, GridRowParams } from '@mui/x-data-grid-pro';\nimport { DateRangePicker, DateRange, LocalizationProvider, SingleInputDateRangeField } from '@mui/x-date-pickers-pro';\nimport { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';\nimport clsx from 'clsx';\nimport dayjs, { Dayjs } from 'dayjs';\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from 'react-query';\nimport { useHistory } from 'react-router-dom';\n\nimport { logAmplitudeEvent } from '../../../amplitude/amplitude';\nimport { RIDES_PAGE } from '../../../constants/amplitude/commonKeys';\nimport {\n ADD_DRIVER_AND_VEHICLE_BUTTON,\n SINGLE_RIDE_ADD_DRIVER,\n SINGLE_RIDE_ADD_REMARKS,\n SINGLE_RIDE_CHANGE_DRIVER,\n SINGLE_RIDE_CLOSE,\n SINGLE_RIDE_CONFIRM,\n SINGLE_RIDE_DOWNLOAD_DOCUMENTATION,\n SINGLE_RIDE_DRIVER_UNASSIGN,\n CHANGE_DRIVER_AND_VEHICLE_BUTTON,\n} from '../../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { datePickerPlaceholder } from '../../../constants/datePickerPlaceholder';\nimport { getSingleRideRoute } from '../../../constants/urlPaths';\nimport { SUPPLIER_RIDES_FILTER } from '../../../constants/windowStorageKeys';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { isLandscape } from '../../../helpers/isLandscape';\nimport {\n getRideStatusKey,\n getSupplierRidesFilter,\n resetSupplierRidesFilter,\n RideStatus,\n RideStatusSupplierFilter,\n useRideStatusSupplierMap,\n} from '../../../helpers/rideStatusUtil';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport { RideAmplitudeEventProperties, RideResponse } from '../../ride/api/types';\nimport ConfirmRideModal from '../../ride/supplier/components/ConfirmRideModal';\nimport DriverVehicleModal from '../../ride/supplier/components/DriverVehicleModal';\nimport downloadRideOrder from '../api/downloadRideOrder';\nimport exportRidesToExcel from '../api/exportRidesToExcel';\nimport { useRides } from '../api/useRides';\nimport { CustomFooter } from '../components/CustomFooter';\nimport ExportButton from '../components/ExportButton';\nimport { ResetFilterButton } from '../components/ResetFiltersButton';\nimport useRidesStyles from '../components/Rides.styles';\nimport RidesLoadingSkeleton from '../components/RidesLoadingSkeleton';\nimport RidesMobileFiltersModal from '../components/RidesMobileFiltersModal';\nimport { unassignDriverFromRide } from './api';\nimport { RideRow } from './api/types';\nimport AddDriverModalRidesOverview from './components/AddDriverModalRidesOverview';\nimport ChangeDriverModalRidesOverview from './components/ChangeDriverModalRidesOverview';\nimport CloseRideModal from './components/CloseRideModal';\nimport MobileList from './components/MobileList';\nimport ReferencesAndRemarksModal from './components/ReferencesAndRemarksModal';\nimport RemoveDriverConfirmModal from './components/RemoveDriverConfirmModal';\nimport SearchInput from './components/SearchInput';\nimport { RidesContext } from './context/RidesContext';\nimport { shortcutsItems } from './helpers/dateRangeShortcuts';\nimport getAmplitudeEventProperies from './helpers/getAmplitudeEventProperties';\nimport { handleRideMiddleMouseClick } from './helpers/handleRideMiddleMouseClick';\nimport { mapRidesToRows } from './helpers/mapRidesToRows';\nimport { RideChangeStatusOptionsMap } from './hooks/ridesChangeStatusUtil';\nimport { useRidesColumns } from './hooks/useRidesColumns';\n\nconst useStyles = makeStyles({\n resetMobile: {\n marginBottom: '2rem',\n marginTop: '1rem',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n fullScreenLoader: {\n height: 'calc(100vh - 300px)',\n width: '100%',\n display: 'flex',\n '& > div ': {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n '& > div': { minHeight: 'auto' },\n },\n },\n filtersButton: {\n width: '57px',\n height: '57px',\n minWidth: '57px',\n borderRadius: '8px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n '& [class*=\"MuiSvgIcon-root\"]': {\n fontSize: '27px',\n },\n },\n});\n\nexport enum RideAction {\n EDIT_RIDE,\n SEND_CONFIRMATION,\n DOWNLOAD_CONFIRMATION,\n}\n\nlet searchTimeoutId: ReturnType | number = -1;\n\nconst Rides = () => {\n const { t } = useTranslation();\n const history = useHistory();\n const classes = useStyles();\n const ridesClasses = useRidesStyles();\n const dataGridClases = useDataGridStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down(1138));\n const { showNotification } = useNotificationContext();\n const previousFilterState = getSupplierRidesFilter();\n const [searchTerm, setSearchTerm] = useState('');\n const isPageOpened = useRef(false);\n const rideStatusSupplierMap = useRideStatusSupplierMap();\n\n const [debouncedSearchPhrase, setDebouncedSearchPhrase] = useState('');\n const [isSavingRemove, setIsSavingRemove] = useState(false);\n const [updatedRideData, setUpdatedRideData] = useState();\n\n const [statusIds, setStatusIds] = useState(\n previousFilterState.status.map(value => getRideStatusKey(value) as string)\n );\n\n const [selectedDateRange, setSelectedDateRange] = useState>([null, null]);\n\n const [isDriverAndVehicleModalOpen, setIsDriverAndVehicleModalOpen] = useState(false);\n const [isConfirmRideModalOpen, setIsConfirmRideModalOpen] = useState(false);\n const [isCloseRideModalOpen, setIsCloseRideModalOpen] = useState(false);\n const [isReferencesModalOpen, setIsReferencesModalOpen] = useState(false);\n const [isAddDriverModalOpen, setIsAddDriverModalOpen] = useState(false);\n const [isRemoveDriverConfirmModalOpen, setIsRemoveDriverConfirmModalOpen] = useState(false);\n const [statusFilterKey, setStatusFilterKey] = useState(0);\n const [driverToRemove, setDriverToRemove] = useState<{ rideId: string; driverId: string }>();\n const [isChangeDriverModalOpen, setIsChangeDriverModalOpen] = useState(false);\n const [isInitialLoad, setIsInitialLoad] = useState(true);\n const [isFiltersModalOpen, setIsFiltersModalOpen] = useState(false);\n const rideDataRef = useRef();\n const amplitudeEventProperties = useRef();\n\n const {\n data: rideResponse,\n refetch,\n isRefetching,\n isLoading,\n } = useRides({\n query: debouncedSearchPhrase,\n statusFilters: statusIds?.filter(el => el),\n startDate: selectedDateRange[0]\n ? dayjs(selectedDateRange[0])\n .set('hour', 0)\n .set('minute', 0)\n .set('second', 0)\n .format(DATE_FORMATS['YYYY-MM-DDT00:00:00'])\n : null,\n endDate: selectedDateRange[1]\n ? dayjs(selectedDateRange[1])\n .set('hour', 0)\n .set('minute', 0)\n .set('second', 0)\n .format(DATE_FORMATS['YYYY-MM-DDT00:00:00'])\n : null,\n });\n\n const { mutate: exportRidesToExcelMutation, isLoading: isLoadingExport } = useMutation(exportRidesToExcel);\n\n const { mutate: downloadRideOrderMutation } = useMutation(downloadRideOrder);\n\n useEffect(() => {\n if (!isLoading && isInitialLoad) {\n setIsInitialLoad(false);\n }\n }, [isLoading, isInitialLoad]);\n\n const onSetStatusIds = (ids: string[]): void => {\n const filters = JSON.stringify({\n ...previousFilterState,\n status: ids.map(value => RideStatusSupplierFilter[value] as string),\n });\n\n localStorage.setItem(SUPPLIER_RIDES_FILTER, filters);\n\n setStatusIds(ids);\n };\n\n const handleChangeStatusButtonClick = useCallback(\n (rideId: string, optionsMap: RideChangeStatusOptionsMap) => {\n const ride = rideResponse.find(singleRide => singleRide.unid === rideId);\n\n rideDataRef.current = ride;\n\n amplitudeEventProperties.current = getAmplitudeEventProperies(ride);\n\n switch (optionsMap.mainButton) {\n case 'CONFIRM_RIDE':\n setIsConfirmRideModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CONFIRM, amplitudeEventProperties.current);\n break;\n case 'CLOSE_RIDE':\n setIsCloseRideModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CLOSE, amplitudeEventProperties.current);\n break;\n case 'ADD_DRIVER':\n setIsAddDriverModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_ADD_DRIVER, amplitudeEventProperties.current);\n break;\n case 'CHANGE_DRIVER':\n setIsChangeDriverModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_CHANGE_DRIVER, amplitudeEventProperties.current);\n break;\n case 'ADD_DRIVER_AND_VEHICLE':\n setIsDriverAndVehicleModalOpen(true);\n logAmplitudeEvent(ADD_DRIVER_AND_VEHICLE_BUTTON, amplitudeEventProperties.current);\n break;\n case 'CHANGE_DRIVER_AND_VEHICLE':\n setIsDriverAndVehicleModalOpen(true);\n logAmplitudeEvent(CHANGE_DRIVER_AND_VEHICLE_BUTTON, amplitudeEventProperties.current);\n break;\n default:\n throw Error('Unexpected change status');\n }\n },\n [rideResponse]\n );\n\n const handleReferenceAndRemarks = useCallback(\n (data: RideRow) => {\n rideDataRef.current = data as unknown as RideResponse;\n\n const ride = rideResponse.find(singleRide => singleRide.unid === data.id);\n\n amplitudeEventProperties.current = getAmplitudeEventProperies(ride);\n\n setIsReferencesModalOpen(true);\n logAmplitudeEvent(SINGLE_RIDE_ADD_REMARKS, amplitudeEventProperties.current);\n },\n [rideResponse]\n );\n\n const handleDownloadRideOrder = useCallback(\n (id: string) => {\n const ride = rideResponse.find(singleRide => singleRide.unid === id);\n\n amplitudeEventProperties.current = getAmplitudeEventProperies(ride);\n\n downloadRideOrderMutation(id);\n logAmplitudeEvent(SINGLE_RIDE_DOWNLOAD_DOCUMENTATION, amplitudeEventProperties.current);\n },\n [downloadRideOrderMutation, rideResponse]\n );\n\n const handleRemoveDriver = useCallback((rideId: string, driverId: string) => {\n setIsRemoveDriverConfirmModalOpen(true);\n setDriverToRemove({\n rideId,\n driverId,\n });\n }, []);\n\n const handleDriverAndVehicle = useCallback(\n (rideId: string) => {\n const ride = rideResponse.find(singleRide => singleRide.unid === rideId);\n\n rideDataRef.current = ride as unknown as RideResponse;\n\n setIsDriverAndVehicleModalOpen(true);\n },\n [rideResponse]\n );\n\n const onConfirmRemoveDriver = async () => {\n let updatedRide: RideResponse | undefined;\n\n try {\n const ride = driverToRemove ? rideResponse.find(singleRide => singleRide.unid === driverToRemove.rideId) : undefined;\n\n amplitudeEventProperties.current = getAmplitudeEventProperies(ride);\n\n setIsSavingRemove(true);\n\n if (driverToRemove) {\n const { data } = await unassignDriverFromRide(driverToRemove.rideId);\n\n updatedRide = data;\n }\n\n showNotification(t('alert.edit.successRemoveDriver'), Severity.Info);\n logAmplitudeEvent(SINGLE_RIDE_DRIVER_UNASSIGN, amplitudeEventProperties.current);\n } catch (error) {\n showNotification(t('alert.driverUnassignError'), Severity.Error);\n } finally {\n setIsRemoveDriverConfirmModalOpen(false);\n setIsSavingRemove(false);\n await handleConfirmCloseAddRemarksFinished(updatedRide);\n }\n };\n\n const [desktopColumns] = useRidesColumns(\n handleChangeStatusButtonClick,\n handleReferenceAndRemarks,\n handleDownloadRideOrder,\n handleRemoveDriver,\n handleDriverAndVehicle\n );\n\n useEffect(() => {\n document.addEventListener('mouseup', handleRideMiddleMouseClick);\n return () => document.removeEventListener('mouseup', handleRideMiddleMouseClick);\n }, [rideResponse]);\n\n const handleRowClick = useCallback((row: RideRow | GridRowParams, event?: React.MouseEvent) => {\n if (event && event.button === 0 && event.metaKey) {\n event.preventDefault();\n window.open(getSingleRideRoute(row.id.toString()), '_blank');\n return;\n }\n\n history.push(getSingleRideRoute(row.id.toString()));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const handleConfirmCloseAddRemarksFinished = async (updatedRide?: RideResponse) => {\n await refetch();\n\n setTimeout(() => {\n if (updatedRide) {\n setUpdatedRideData(updatedRide);\n }\n }, 500);\n };\n\n const handleExport = (): void => {\n const rideResultIds = rideResponse?.map(ride => ride.unid);\n\n if (selectedDateRange[0] === null || selectedDateRange[1] === null) {\n showNotification(t('alert.dateRangeRequired'), Severity.Error);\n return;\n }\n\n exportRidesToExcelMutation({\n startDate: dayjs(selectedDateRange[0]).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n endDate: dayjs(selectedDateRange[1]).format(DATE_FORMATS['YYYY-MM-DDTHH:mm:ss']),\n tripUnids: rideResultIds,\n });\n };\n\n const dataRows = useMemo(() => {\n if (rideResponse) {\n return mapRidesToRows({\n rows: rideResponse,\n updatedRide: updatedRideData,\n statusFilterKeys: statusIds as Array,\n });\n }\n\n return [];\n }, [rideResponse, statusIds, updatedRideData]);\n\n const handleResetFilters = () => {\n const filters = resetSupplierRidesFilter();\n const filterStatusIds = filters.status.map(value => getRideStatusKey(value) as string);\n\n setStatusIds(filterStatusIds);\n setSelectedDateRange(filters.dateRange);\n setStatusFilterKey(Math.random());\n };\n\n const numberedValues = useMemo(() => {\n if (rideResponse && (statusIds.includes('TO_CONFIRM') || statusIds.length === 0)) {\n const filteredRides = rideResponse.filter(\n ride => ride.status === 'TO_CONFIRM' || ride.status === 'TO_CONFIRM_CHANGE'\n );\n\n return new Map([['TO_CONFIRM', filteredRides.length.toString()]]);\n }\n\n return new Map([['TO_CONFIRM', '0']]);\n }, [rideResponse, statusIds]);\n\n const calculateOverflowY = useMemo(() => {\n if (isMobile) {\n return isLandscape() ? 'none' : 'auto';\n }\n\n return 'initial';\n }, [isMobile]);\n\n const handleSearchInputOnChange = useCallback(\n (value: string) => {\n setSearchTerm(value);\n clearTimeout(searchTimeoutId);\n searchTimeoutId = setTimeout(() => {\n setDebouncedSearchPhrase(value);\n }, 600);\n },\n [setDebouncedSearchPhrase]\n );\n\n const filtersActive = useMemo(() => {\n return selectedDateRange.some(range => range !== null) || statusIds.some(status => Boolean(status));\n }, [selectedDateRange, statusIds]);\n\n if (!isPageOpened.current) {\n isPageOpened.current = true;\n logAmplitudeEvent(RIDES_PAGE);\n }\n\n if (isInitialLoad && isLoading) {\n return ;\n }\n\n return (\n \n \n \n \n {t('rides')}\n \n \n \n \n \n \n \n {isMobile && (\n setIsFiltersModalOpen(true)}\n >\n \n \n )}\n \n\n {!isMobile && (\n \n t(filter))}\n displayAsButtons\n numberedValues={numberedValues}\n />\n
    \n \n dr === null)\n ? t('pages.rides.allTime')\n : t('dateRangeLocal')\n }\n sx={{ width: '100%', minWidth: '300px' }}\n value={selectedDateRange}\n onChange={newValue => {\n setSelectedDateRange(newValue);\n\n const filters = JSON.stringify({\n ...previousFilterState,\n dateRange: newValue,\n });\n\n localStorage.setItem(SUPPLIER_RIDES_FILTER, filters);\n }}\n localeText={{\n start: t('pages.rides.startingDate'),\n end: t('pages.rides.endingDate'),\n ...datePickerPlaceholder,\n }}\n slotProps={{\n shortcuts: {\n items: shortcutsItems,\n },\n field: { clearable: true },\n textField: {\n variant: 'filled',\n placeholder: 'dd mmm y',\n inputProps: { readOnly: true },\n InputProps: {\n endAdornment: selectedDateRange.every(dr => dr === null) && (\n \n ),\n },\n },\n }}\n format={DATE_FORMATS['DD MMM YYYY']}\n slots={{ field: SingleInputDateRangeField }}\n />\n \n {isMobile && rideResponse.length > 0 && (\n \n {`${rideResponse.length.toString()} ${t('rides').toLowerCase()}`}\n \n )}\n
    \n
    \n )}\n \n \n \n {!isMobile || dataRows?.length === 0 ? (\n 'auto'}\n onRowClick={params => handleRowClick(params)}\n slots={{\n noRowsOverlay: () => (\n \n \n \n }\n />\n ),\n footer: () =>\n dataRows?.length > 0 && !isMobile\n ? CustomFooter({\n handleExport,\n totalCount: dataRows.length,\n isLoadingExport,\n })\n : null,\n }}\n sx={{ overflowX: 'scroll' }}\n />\n ) : (\n \n )}\n \n {isMobile && dataRows.length > 0 && (\n !isLoadingExport && handleExport()} isDisabled={isLoadingExport} />\n )}\n \n \n {isConfirmRideModalOpen && rideDataRef.current && (\n setIsConfirmRideModalOpen(false)}\n onFinished={handleConfirmCloseAddRemarksFinished}\n ride={rideDataRef.current}\n supplierReference={rideDataRef.current.supplierReference ?? undefined}\n />\n )}\n {isCloseRideModalOpen && rideDataRef.current && (\n setIsCloseRideModalOpen(false)}\n onFinished={handleConfirmCloseAddRemarksFinished}\n ride={rideDataRef.current}\n supplierReference={rideDataRef.current.supplierReference ?? undefined}\n />\n )}\n {isReferencesModalOpen && rideDataRef.current && (\n setIsReferencesModalOpen(false)}\n onFinished={handleConfirmCloseAddRemarksFinished}\n supplierReference={rideDataRef.current.supplierReference ?? undefined}\n />\n )}\n {isAddDriverModalOpen && rideDataRef.current?.unid && (\n setIsAddDriverModalOpen(false)}\n rideId={rideDataRef.current?.unid}\n onFinished={handleConfirmCloseAddRemarksFinished}\n amplitudeEventProperties={amplitudeEventProperties.current}\n />\n )}\n {isChangeDriverModalOpen && rideDataRef?.current?.unid && rideDataRef?.current?.driver && (\n setIsChangeDriverModalOpen(false)}\n rideId={rideDataRef?.current?.unid}\n initialDriver={rideDataRef?.current?.driver}\n onFinished={handleConfirmCloseAddRemarksFinished}\n amplitudeEventProperties={amplitudeEventProperties.current}\n />\n )}\n {isRemoveDriverConfirmModalOpen && (\n setIsRemoveDriverConfirmModalOpen(false)}\n onConfirm={onConfirmRemoveDriver}\n isLoading={isSavingRemove}\n />\n )}\n {isDriverAndVehicleModalOpen && (\n {\n refetch?.();\n setIsDriverAndVehicleModalOpen(false);\n }}\n />\n )}\n {isFiltersModalOpen && (\n ; status: string[] }) => {\n const filters = JSON.stringify({\n status: values.status,\n dateRange: values.dateRange,\n });\n\n localStorage.setItem(SUPPLIER_RIDES_FILTER, filters);\n\n setStatusIds(values.status);\n setSelectedDateRange(values.dateRange);\n }}\n statusFilterMap={rideStatusSupplierMap}\n isOpen={isFiltersModalOpen}\n onClose={() => setIsFiltersModalOpen(false)}\n numberedValues={numberedValues}\n page=\"SUPPLIER\"\n />\n )}\n
    \n );\n};\n\nexport default Rides;\n","import { FullScreenLoader } from '@get-e/react-components';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { FunctionComponent } from 'react';\n\nimport { useCurrentProfileContext } from '../../../../context/CurrentProfileContext';\nimport { AccountType } from '../../../../services/types';\nimport { default as CustomerRides } from '../../customer/Rides';\nimport { default as CustomerRidesNew } from '../../customer/RidesNew';\nimport { default as SupplierRides } from '../../supplier/Rides';\nimport { default as SupplierRidesNew } from '../../supplier/RidesNew';\n\nconst RidesPageSwitch: FunctionComponent = () => {\n const {\n currentProfile: { accountType },\n } = useCurrentProfileContext();\n\n const { useNewSupplierOverview, useNewCustomerOverview } = useFlags();\n\n switch (accountType) {\n case AccountType.CUSTOMER:\n return useNewCustomerOverview ? : ;\n case AccountType.SUPPLIER:\n return useNewSupplierOverview ? : ;\n default:\n return ;\n }\n};\n\nexport default RidesPageSwitch;\n","export const LANGUAGES = {\n SPANISH: {\n label: 'Spanish',\n value: 'es-ES',\n },\n ENGLISH: {\n label: 'English',\n value: 'en-GB',\n },\n};\n","export const LOCAL_STORAGE_KEYS = { USER: 'user' };\nexport const PREFERRED_USER_LANGUAGE = 'LANGUAGE';\n","import { makeStyles } from '@mui/styles';\nimport { COLORS } from '../../constants/colors';\n\nconst settingsStyles = makeStyles(styleTheme => ({\n mainWrapper: {\n alignItems: 'center',\n padding: 0,\n },\n mainWrapperTopPadding: { paddingTop: '3.5rem' },\n headerTitleWrapper: {\n marginBottom: '2rem',\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [styleTheme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 'auto',\n [styleTheme.breakpoints.down('sm')]: {\n width: '100%',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '0.5rem',\n },\n },\n label: {\n color: COLORS.BLUE_DARK,\n fontWeight: '700',\n },\n labelDescription: { color: COLORS.SLATE_GREY },\n}));\n\nexport default settingsStyles;\n","/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { Select, SelectOption } from '@get-e/react-components';\nimport { Grid, Typography } from '@mui/material';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../constants/colors';\nimport { LANGUAGES } from '../../constants/languages';\nimport { PREFERRED_USER_LANGUAGE } from '../../constants/localStorageKeys';\nimport { PortalLocale, useLocaleContext } from '../../context/LocaleContext';\nimport settingsStyles from './Settings.styles';\n\nexport const Settings = () => {\n const classes = settingsStyles();\n const [language, setLanguage] = useState(localStorage.getItem(PREFERRED_USER_LANGUAGE) ?? 'en-GB');\n const { updateLocale } = useLocaleContext();\n const { t } = useTranslation();\n\n const handleLanguage = (newValue: PortalLocale) => {\n localStorage.setItem(PREFERRED_USER_LANGUAGE, newValue);\n\n setLanguage(newValue);\n\n updateLocale(newValue);\n };\n\n return (\n \n \n \n \n {t('settings')}\n \n \n \n \n {t('chooseLanguage')}\n handleLanguage(newValue as PortalLocale)}\n >\n {LANGUAGES.ENGLISH.label}\n {LANGUAGES.SPANISH.label}\n \n \n \n );\n};\n","import CreateOutlinedIcon from '@mui/icons-material/CreateOutlined';\nimport DirectionsCarOutlinedIcon from '@mui/icons-material/DirectionsCarOutlined';\nimport PersonAddAlt1OutlinedIcon from '@mui/icons-material/PersonAddAlt1Outlined';\nimport PersonOffOutlinedIcon from '@mui/icons-material/PersonOffOutlined';\nimport PersonOutlinedIcon from '@mui/icons-material/PersonOutlined';\nimport PersonRemoveOutlined from '@mui/icons-material/PersonRemoveOutlined';\nimport { Tooltip, Typography, useMediaQuery } from '@mui/material';\nimport {\n GridRenderCellParams,\n GridRowParams,\n GRID_DETAIL_PANEL_TOGGLE_COL_DEF,\n GridActionsCellItem,\n GridRowId,\n} from '@mui/x-data-grid-pro';\nimport dayjs from 'dayjs';\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { DetailPanelToggle } from '../../../components/detailPanelToggle/DetailPanelToggle';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport { User } from '../api/types';\nimport { ActiveTab, ChangeStatus } from '../Users';\n\nconst COLUMN_WIDTH = 230;\n\nexport interface UseUserColumnsProps {\n activeTab?: ActiveTab;\n handleDeactivate?: (user: User) => void;\n handleReactivate?: (user: User) => void;\n handleEdit?: (user: User) => void;\n handleRevoke?: (user: User) => void;\n}\n\nexport const useUsersColumns = ({ handleDeactivate, handleReactivate, handleEdit, handleRevoke }: UseUserColumnsProps) => {\n const { t } = useTranslation();\n const dataGridClases = useDataGridStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { currentProfile } = useCurrentProfileContext();\n\n const onActionItemClick = useCallback((user: User, action: ChangeStatus) => {\n switch (action) {\n case ChangeStatus.EDIT_USER:\n handleEdit && handleEdit(user);\n break;\n case ChangeStatus.DEACTIVATE_USER:\n handleDeactivate && handleDeactivate(user);\n break;\n case ChangeStatus.REACTIVATE_USER:\n handleReactivate && handleReactivate(user);\n break;\n case ChangeStatus.REVOKE_USER:\n handleRevoke && handleRevoke(user);\n break;\n default:\n throw new Error('Driver action not supported');\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return useMemo(\n () => [\n {\n field: 'fullName',\n headerName: t('name'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRenderCellParams) => {\n if (isMobile) {\n return (\n \n );\n }\n\n return {params.row.fullName};\n },\n },\n {\n field: 'email',\n headerName: t('email'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n },\n {\n field: 'permissions',\n headerName: t('pages.users.fields.permissions'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRenderCellParams) => (\n <>\n {!params.row.isDeactivated && params.row.permissions.manageUsers && (\n
    \n \n {t('users')}\n
    \n )}\n {!params.row.isDeactivated && params.row.permissions.manageRidesBookedByOthers && (\n
    \n \n {t('rides')}\n
    \n )}\n {params.row.isDeactivated && (\n
    \n \n {t('deactivated')}\n
    \n )}\n \n ),\n },\n {\n field: 'lastSeen',\n headerName: t('pages.users.fields.lastSeen'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRenderCellParams) => (\n \n {params.row.lastSeen === null\n ? t('pages.users.lastSeenNever')\n : dayjs(params.row.lastSeen).format(DATE_FORMATS['DD MMM YYYY HH:mm'])}\n \n ),\n },\n {\n field: 'actions',\n type: 'actions',\n flex: 1,\n maxWidth: 50,\n headerClassName: dataGridClases.hideSeparator,\n getActions: (params: GridRowParams) => {\n const actionItems: JSX.Element[] = [];\n\n if (handleEdit) {\n actionItems.push(\n }\n label={t('pages.users.menu.edit')}\n onClick={() => onActionItemClick(params.row, ChangeStatus.EDIT_USER)}\n showInMenu\n />\n );\n }\n\n if (\n handleDeactivate &&\n currentProfile.id.toString() !== params.row.id.toString() &&\n !params.row.isDeactivated\n ) {\n actionItems.push(\n }\n label={t('pages.users.menu.deactivate')}\n onClick={() => onActionItemClick(params.row, ChangeStatus.DEACTIVATE_USER)}\n showInMenu\n />\n );\n }\n\n if (handleReactivate) {\n actionItems.push(\n }\n label={t('pages.users.menu.reactivate')}\n onClick={() => onActionItemClick(params.row, ChangeStatus.REACTIVATE_USER)}\n showInMenu\n />\n );\n }\n\n if (handleRevoke) {\n actionItems.push(\n }\n label={t('pages.users.menu.revoke')}\n onClick={() => onActionItemClick(params.row, ChangeStatus.REVOKE_USER)}\n showInMenu\n />\n );\n }\n\n return actionItems;\n },\n },\n {\n ...GRID_DETAIL_PANEL_TOGGLE_COL_DEF,\n headerClassName: dataGridClases.hideSeparator,\n renderCell: (params: { id: GridRowId; value: boolean }) => (\n \n ),\n },\n ],\n [\n t,\n dataGridClases.hideSeparator,\n dataGridClases.menuItem,\n isMobile,\n handleEdit,\n handleDeactivate,\n currentProfile.id,\n handleReactivate,\n handleRevoke,\n onActionItemClick,\n ]\n );\n};\n","/* eslint-disable no-case-declarations */\nimport CreateOutlinedIcon from '@mui/icons-material/CreateOutlined';\nimport PersonAddAlt1OutlinedIcon from '@mui/icons-material/PersonAddAlt1Outlined';\nimport PersonOffOutlinedIcon from '@mui/icons-material/PersonOffOutlined';\nimport PersonRemoveOutlined from '@mui/icons-material/PersonRemoveOutlined';\nimport { Typography, Box, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { GridRowParams } from '@mui/x-data-grid-pro';\nimport dayjs from 'dayjs';\nimport React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport DropdownButtonMenu, { DropdownMenuOption } from '../../../components/dropdownButtonMenu/DropdownButtonMenu';\nimport { COLORS } from '../../../constants/colors';\nimport { DATE_FORMATS } from '../../../constants/dateFormats';\nimport { BUTTON_WIDTH } from '../../../constants/layout';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport theme from '../../../styles/theme';\nimport { User } from '../api/types';\nimport { ActiveTab } from '../Users';\nimport { UseUserColumnsProps } from './useUsersColumns';\n\nconst useStyles = makeStyles({\n mobileContent: {\n color: COLORS.BLACK,\n marginLeft: '.5rem',\n },\n editButton: {\n width: BUTTON_WIDTH,\n marginRight: '1rem',\n marginLeft: '0.2rem',\n color: COLORS.BLUE,\n border: `2px solid ${COLORS.BLUE}`,\n },\n deactivateButton: {\n width: BUTTON_WIDTH,\n color: COLORS.RED,\n border: `2px solid ${COLORS.RED}`,\n },\n container: {\n cursor: 'pointer',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '1rem',\n borderBottom: `1px solid ${COLORS.BLACK_12}`,\n },\n});\n\nexport const useUsersColumnsMobile = ({\n activeTab,\n handleDeactivate,\n handleReactivate,\n handleEdit,\n handleRevoke,\n}: UseUserColumnsProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const { currentProfile } = useCurrentProfileContext();\n\n return useMemo(\n () =>\n ({ row }: GridRowParams) => {\n const getDropDown = () => {\n switch (activeTab) {\n case ActiveTab.Active:\n const options: DropdownMenuOption[] = [];\n\n const isDeactivateEnabled =\n handleDeactivate && currentProfile.id.toString() !== row.id.toString() && !row.isDeactivated;\n\n if (isDeactivateEnabled) {\n options.push({\n id: 1,\n label: t('buttonName.deactivate'),\n icon: PersonRemoveOutlined,\n onClick: () => handleDeactivate && handleDeactivate(row as User),\n });\n }\n\n return (\n }\n onClick={() => handleEdit && handleEdit(row as User)}\n options={options}\n />\n );\n case ActiveTab.Invited:\n return (\n }\n onClick={() => handleRevoke && handleRevoke(row as User)}\n options={[]}\n />\n );\n case ActiveTab.Deactivated:\n return (\n }\n onClick={() => handleEdit && handleEdit(row as User)}\n options={[\n {\n id: 1,\n label: t('pages.users.menu.reactivate'),\n icon: PersonAddAlt1OutlinedIcon,\n onClick: () => handleReactivate && handleReactivate(row as User),\n },\n ]}\n />\n );\n default:\n return <>;\n }\n };\n\n if (!isMobile) {\n return <>;\n }\n\n return (\n handleEdit && handleEdit(row as User)}>\n \n {t('email')}: {row.email}\n \n {activeTab !== ActiveTab.Invited && (\n \n {t('pages.users.fields.lastSeen')}: \n {row.lastSeen === null\n ? t('pages.users.lastSeenNever')\n : dayjs(row.lastSeen).format(DATE_FORMATS['DD MMM YYYY HH:mm'])}\n \n )}\n {!row.isDeactivated && (\n \n {t('pages.users.fields.permissions')}: \n {row.permissions.manageUsers && t('users')}  \n {row.permissions.manageRidesBookedByOthers && t('rides')}\n \n )}\n \n {getDropDown()}\n \n \n );\n },\n [\n activeTab,\n classes.container,\n currentProfile.id,\n handleDeactivate,\n handleEdit,\n handleReactivate,\n handleRevoke,\n isMobile,\n t,\n ]\n );\n};\n","import { TabPanel } from '@get-e/react-components';\nimport { Box, useMediaQuery } from '@mui/material';\nimport { DataGridPro, GridColDef, GridColumnVisibilityModel, GridRowId, useGridApiRef } from '@mui/x-data-grid-pro';\nimport clsx from 'clsx';\nimport React, { FunctionComponent } from 'react';\nimport { Route, Switch, useRouteMatch } from 'react-router-dom';\n\nimport { CustomNoRowsOverlay } from '../../../components/noRowsDataGridOverlay/CustomNoRowsOverlay';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport { User } from '../api/types';\nimport { useUsersColumns } from '../hooks/useUsersColumns';\nimport { useUsersColumnsMobile } from '../hooks/useUsersColumnsMobile';\nimport { ActiveTab, ActiveTabUrl, getTableHeight, getTableWrapperHeight } from '../Users';\n\nconst ActiveUsersDataGrid: FunctionComponent<{\n data: User[];\n isFetching: boolean;\n value: ActiveTab;\n onEdit: (user: User) => void;\n onChangeStatus: (user: User, isActive: boolean) => void;\n columnVisibilityModel: GridColumnVisibilityModel;\n}> = ({ data, isFetching, value, onEdit, onChangeStatus, columnVisibilityModel }) => {\n const { path } = useRouteMatch();\n const classes = useDataGridStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const gridApiRef = useGridApiRef();\n\n const handleDeactivate = (user: User) => {\n onChangeStatus(user, false);\n };\n\n const handleEdit = (user: User) => {\n onEdit(user);\n };\n\n const onRowClick = (params: { id: GridRowId; row: User }) => {\n if (isMobile) {\n gridApiRef.current.toggleDetailPanel(params.id);\n } else {\n onEdit(params.row);\n }\n };\n\n return (\n \n \n \n \n 0,\n })}\n hideFooter\n disableColumnSelector\n rows={data}\n columns={\n useUsersColumns({\n handleDeactivate,\n handleEdit,\n }) as GridColDef[]\n }\n slots={{ noRowsOverlay: CustomNoRowsOverlay }}\n getDetailPanelContent={useUsersColumnsMobile({\n activeTab: ActiveTab.Active,\n handleDeactivate,\n handleEdit,\n })}\n getDetailPanelHeight={() => 'auto'}\n loading={isFetching}\n onRowClick={onRowClick}\n columnVisibilityModel={columnVisibilityModel}\n />\n \n \n \n \n );\n};\n\nexport default ActiveUsersDataGrid;\n","import { makeStyles, createStyles } from '@mui/styles';\n\nconst userModalStyles = makeStyles(() =>\n createStyles({\n formField: {\n marginBottom: '1rem',\n width: '100%',\n '& .MuiFormHelperText-root.Mui-error': { padding: '0 .75rem' },\n },\n multipleSelectItem: {\n width: '100% !important',\n padding: '0.5rem !important',\n '& .MuiListItemText-root': { paddingLeft: '0.5rem !important' },\n },\n })\n);\n\nexport default userModalStyles;\n","import { TextField, MultipleSelect, ModalAction as Modal } from '@get-e/react-components';\nimport PersonOutlineIcon from '@material-ui/icons/PersonOutline';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport { InputAdornment, Typography } from '@mui/material';\nimport { AxiosError } from 'axios';\nimport React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { USER_ROLES } from '../../../constants';\nimport { COLORS } from '../../../constants/colors';\nimport { STATUS_422 } from '../../../constants/httpStatusCodes';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport and from '../../../helpers/inputValidation/validators/and';\nimport isEmail from '../../../helpers/inputValidation/validators/isEmail';\nimport isFilledString from '../../../helpers/inputValidation/validators/isFilledString';\nimport { AccountType } from '../../../services/types';\nimport { inviteUser } from '../api';\nimport { InviteUserRequest, UserPermissions, UserRoles, ErrorResponse } from '../api/types';\nimport userModalStyles from './UserModal.styles';\n\ninterface AddUserFields {\n firstName: string;\n lastName: string;\n email: string;\n permissions: Omit;\n}\n\ninterface AddUserErrors {\n firstName: InputError | null;\n lastName: InputError | null;\n email: InputError | null;\n}\n\ninterface AddUserModalProps {\n onInviteUser: () => void;\n onClose: () => void;\n isOpen: boolean;\n}\n\nconst AddUserModal = ({ onInviteUser, onClose, isOpen }: AddUserModalProps) => {\n const classes = userModalStyles();\n const { t } = useTranslation();\n const [isSaving, setIsSaving] = useState(false);\n const [roleIds, setRoleIds] = useState([]);\n const { showNotification } = useNotificationContext();\n\n const [values, setValues] = useState({\n firstName: '',\n lastName: '',\n email: '',\n permissions: {\n [UserRoles.MANAGE_USERS]: false,\n [UserRoles.MANAGE_RIDES_BOOKED_BY_OTHERS]: false,\n },\n });\n\n const [formErrors, setFormErrors] = useState({\n firstName: null,\n lastName: null,\n email: null,\n });\n\n const {\n currentProfile: { accountType },\n } = useCurrentProfileContext();\n\n const roleMapValues = new Map([\n [USER_ROLES.MANAGE_USERS, t('pages.users.fields.manageUsers')],\n [USER_ROLES.MANAGE_RIDES_BOOKED_BY_OTHERS, `${t('pages.users.fields.manageRidesBookedByOthers')}`],\n ]);\n\n const roleMapValuesSupplier = new Map([[USER_ROLES.MANAGE_USERS, t('pages.users.fields.manageUsers')]]);\n\n const defaultRoleValues = useMemo(() => {\n const result: string[] = [];\n\n for (const [key, value] of Object.entries(values.permissions)) {\n value && result.push(t(`pages.users.fields.${key}`));\n }\n\n return result;\n }, [t, values.permissions]);\n\n const onSetIds = (ids: string[]) => {\n setRoleIds(ids);\n\n const permissionValues = Array.from(roleMapValues.keys()).reduce(\n (acc, key) => Object.assign(acc, { [UserRoles[key as keyof typeof UserRoles]]: ids.includes(key) }),\n {}\n );\n\n const newValues = {\n ...values,\n permissions: permissionValues as UserPermissions,\n };\n\n setValues(newValues);\n };\n\n const validateFields = (): boolean => {\n const validated = {\n firstName: isFilledString(values.firstName, InputError.Empty),\n lastName: isFilledString(values.lastName, InputError.Empty),\n email: and(isFilledString(values.email, InputError.Empty), () => isEmail(values.email, InputError.InvalidEmail)),\n };\n\n const fieldErrors: AddUserErrors = {\n firstName: validated.firstName.isValid ? null : validated.firstName.error,\n lastName: validated.lastName.isValid ? null : validated.lastName.error,\n email: validated.email.isValid ? null : validated.email.error,\n };\n\n const isValid = Object.values(fieldErrors).every(error => error === null);\n\n !isValid && setFormErrors(fieldErrors);\n\n return isValid;\n };\n\n const handleSubmit = async (): Promise => {\n if (!validateFields()) {\n return;\n }\n\n const payload: InviteUserRequest = {\n firstName: values.firstName,\n lastName: values.lastName,\n email: values.email,\n permissions: values.permissions,\n };\n\n try {\n setIsSaving(true);\n await inviteUser(payload);\n onInviteUser();\n onClose();\n } catch (error) {\n handleInviteUserError(error as AxiosError);\n } finally {\n setIsSaving(false);\n }\n };\n\n const handleInviteUserError = ({ response }: AxiosError) => {\n if (response?.status === STATUS_422) {\n const errorMessage = response?.data as ErrorResponse;\n\n if (errorMessage.message === t(InputError.EmailAlreadyTaken)) {\n const fieldErrors: AddUserErrors = {\n firstName: null,\n lastName: null,\n email: InputError.EmailAlreadyTaken,\n };\n\n setFormErrors(fieldErrors);\n }\n\n return;\n }\n\n showNotification(t('errors.defaultError'), Severity.Error);\n };\n\n const handleChange = (key: T, newValue: AddUserFields[T] & (string | boolean)): void => {\n setValues({\n ...values,\n [key]: newValue,\n });\n\n setFormErrors(prevStateForm => ({\n ...prevStateForm,\n [key]: null,\n }));\n };\n\n return (\n \n \n {t('pages.users.fields.profileInformation')}\n \n handleChange('firstName', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.firstName}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n disabled={isSaving}\n />\n handleChange('lastName', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.lastName}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n disabled={isSaving}\n />\n handleChange('email', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.email}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n disabled={isSaving}\n />\n \n {t('pages.users.fields.userPermissions')}\n \n \n \n );\n};\n\nexport default AddUserModal;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { updateUserStatus } from '../api';\nimport { User } from '../api/types';\n\nconst useStyles = makeStyles({\n confirmButton: {\n background: COLORS.RED,\n '&:hover': { background: COLORS.RED_WARNING },\n },\n});\n\ninterface ChangeUserStatusModalProps {\n user: User;\n isActive: boolean;\n onClose: () => void;\n onUpdateUserStatus: () => void;\n}\n\nconst ChangeUserStatusModal = ({ user, isActive, onClose, onUpdateUserStatus }: ChangeUserStatusModalProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const { showNotification } = useNotificationContext();\n\n const handleUpdateStatus = async () => {\n try {\n await updateUserStatus(user.id, !isActive);\n onUpdateUserStatus();\n } catch (error) {\n showNotification(t('errors.defaultError'), Severity.Error);\n } finally {\n onClose();\n }\n };\n\n const statusNamespace = isActive ? 'reactivate' : 'deactivate';\n\n const confirmButtonLabel = isActive ? t('buttonName.activate') : t('buttonName.deactivate');\n\n return (\n \n {t(`modals.${statusNamespace}.description`)}\n \n {t(`modals.${statusNamespace}.descriptionDetailed`)}\n \n \n {t('doYouWantToProceed')}\n \n \n );\n};\n\nexport default ChangeUserStatusModal;\n","import { TabPanel } from '@get-e/react-components';\nimport { Box, useMediaQuery } from '@mui/material';\nimport { DataGridPro, GridColDef, GridColumnVisibilityModel, GridRowId, useGridApiRef } from '@mui/x-data-grid-pro';\nimport clsx from 'clsx';\nimport React, { FunctionComponent } from 'react';\nimport { Route, Switch, useRouteMatch } from 'react-router-dom';\n\nimport { CustomNoRowsOverlay } from '../../../components/noRowsDataGridOverlay/CustomNoRowsOverlay';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport { User } from '../api/types';\nimport { useUsersColumns } from '../hooks/useUsersColumns';\nimport { useUsersColumnsMobile } from '../hooks/useUsersColumnsMobile';\nimport { ActiveTab, ActiveTabUrl, getTableHeight, getTableWrapperHeight } from '../Users';\n\nconst DeactivatedUsersDataGrid: FunctionComponent<{\n data: User[];\n isFetching: boolean;\n value: ActiveTab;\n onEdit: (user: User) => void;\n onChangeStatus: (user: User, isActive: boolean) => void;\n columnVisibilityModel: GridColumnVisibilityModel;\n}> = ({ data, isFetching, value, onEdit, onChangeStatus, columnVisibilityModel }) => {\n const { path } = useRouteMatch();\n const classes = useDataGridStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const gridApiRef = useGridApiRef();\n\n const handleEdit = (user: User) => {\n onEdit(user);\n };\n\n const handleReactivate = (user: User) => {\n onChangeStatus(user, true);\n };\n\n const onRowClick = (params: { id: GridRowId; row: User }) => {\n if (isMobile) {\n gridApiRef.current.toggleDetailPanel(params.id);\n }\n };\n\n return (\n \n \n \n \n 0,\n })}\n hideFooter\n disableColumnSelector\n rows={data}\n columns={\n useUsersColumns({\n handleEdit,\n handleReactivate,\n }) as GridColDef[]\n }\n slots={{ noRowsOverlay: CustomNoRowsOverlay }}\n getDetailPanelContent={useUsersColumnsMobile({\n activeTab: ActiveTab.Deactivated,\n handleEdit,\n handleReactivate,\n })}\n getDetailPanelHeight={() => 'auto'}\n loading={isFetching}\n onRowClick={onRowClick}\n columnVisibilityModel={columnVisibilityModel}\n />\n \n \n \n \n );\n};\n\nexport default DeactivatedUsersDataGrid;\n","import { TextField, MultipleSelect, ModalAction as Modal } from '@get-e/react-components';\nimport PersonOutlineIcon from '@material-ui/icons/PersonOutline';\nimport EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';\nimport { Box, Checkbox, FormControlLabel, InputAdornment, Typography } from '@mui/material';\nimport { AxiosError } from 'axios';\nimport React, { useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport ShowPasswordButton from '../../../components/buttons/showPasswordButton/ShowPasswordButton';\nimport { USER_ROLES } from '../../../constants';\nimport { COLORS } from '../../../constants/colors';\nimport { STATUS_422 } from '../../../constants/httpStatusCodes';\nimport { useCurrentProfileContext } from '../../../context/CurrentProfileContext';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { InputError } from '../../../helpers/inputValidation/InputError';\nimport and from '../../../helpers/inputValidation/validators/and';\nimport isEmail from '../../../helpers/inputValidation/validators/isEmail';\nimport isEqualString from '../../../helpers/inputValidation/validators/isEqualString';\nimport isFilledString from '../../../helpers/inputValidation/validators/isFilledString';\nimport isPasswordStrong from '../../../helpers/inputValidation/validators/isPasswordStrong';\nimport { AccountType } from '../../../services/types';\nimport { editUser } from '../api';\nimport { EditUserRequest, ErrorResponse, User, EditUserPermissions, UserRoles } from '../api/types';\nimport userModalStyles from './UserModal.styles';\n\ninterface EditUserFields {\n firstName: string;\n lastName: string;\n email: string;\n password: string;\n confirmPassword: string;\n permissions: EditUserPermissions;\n isActive: boolean;\n}\n\ninterface EditUserErrors {\n firstName: InputError | null;\n lastName: InputError | null;\n email: InputError | null;\n password?: InputError | null;\n confirmPassword?: InputError | null;\n}\n\ninterface EditUserModalProps {\n user: User;\n onEditUser: () => void;\n onClose: () => void;\n isOpen: boolean;\n}\n\nconst EditUserModal = ({ user, onEditUser, onClose, isOpen }: EditUserModalProps) => {\n const classes = userModalStyles();\n const { t } = useTranslation();\n const [showingPassword, setShowingPassword] = useState(false);\n const [showingConfirmPassword, setShowingConfirmPassword] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [roleIds, setRoleIds] = useState([]);\n const { currentProfile: currentUser } = useCurrentProfileContext();\n const { showNotification } = useNotificationContext();\n\n const [values, setValues] = useState({\n firstName: user.firstName,\n lastName: user.lastName,\n email: user.email,\n password: '',\n confirmPassword: '',\n permissions: {\n [UserRoles.MANAGE_USERS]: user.permissions.manageUsers,\n [UserRoles.MANAGE_RIDES_BOOKED_BY_OTHERS]: user.permissions.manageRidesBookedByOthers,\n },\n isActive: !user.isDeactivated,\n });\n\n const [formErrors, setFormErrors] = useState({\n firstName: null,\n lastName: null,\n email: null,\n password: null,\n confirmPassword: null,\n });\n\n const roleMapValues = useMemo(() => {\n const roleMap = new Map([[USER_ROLES.MANAGE_USERS, `${t('pages.users.fields.manageUsers')}`]]);\n\n if (currentUser.accountType === AccountType.CUSTOMER) {\n roleMap.set(USER_ROLES.MANAGE_RIDES_BOOKED_BY_OTHERS, `${t('pages.users.fields.manageRidesBookedByOthers')}`);\n }\n\n return roleMap;\n }, [currentUser.accountType, t]);\n\n const defaultRoleValues = useMemo(() => {\n const result: string[] = [];\n\n for (const [key, value] of Object.entries(values.permissions)) {\n value && result.push(t(`pages.users.fields.${key}`));\n }\n\n return result;\n }, [t, values.permissions]);\n\n const onSetIds = (ids: string[]) => {\n setRoleIds(ids);\n\n const permissionValues = Array.from(roleMapValues.keys()).reduce(\n (acc, key) => Object.assign(acc, { [UserRoles[key as keyof typeof UserRoles]]: ids.includes(key) }),\n {}\n );\n\n const newValues = {\n ...values,\n permissions: permissionValues as EditUserPermissions,\n };\n\n setValues(newValues);\n };\n\n const validateFields = (): boolean => {\n const shouldValidatePassword = values.password.trim() !== '';\n\n const validated = {\n firstName: isFilledString(values.firstName, InputError.Empty),\n lastName: isFilledString(values.lastName, InputError.Empty),\n email: and(isFilledString(values.email, InputError.Empty), () => isEmail(values.email, InputError.InvalidEmail)),\n password: isPasswordStrong(values.password, InputError.NotStrongPassword),\n confirmPassword: isEqualString(values.confirmPassword, values.password, InputError.NoMatch),\n };\n\n const fieldErros: EditUserErrors = {\n firstName: validated.firstName.isValid ? null : validated.firstName.error,\n lastName: validated.lastName.isValid ? null : validated.lastName.error,\n email: validated.email.isValid ? null : validated.email.error,\n password: validated.password.isValid || !shouldValidatePassword ? null : validated.password.error,\n confirmPassword:\n validated.confirmPassword.isValid || !shouldValidatePassword ? null : validated.confirmPassword.error,\n };\n\n const isValid = Object.values(fieldErros).every(error => error === null);\n\n !isValid && setFormErrors(fieldErros);\n\n return isValid;\n };\n\n const handleSubmit = async (): Promise => {\n if (!validateFields()) {\n return;\n }\n\n const shouldSubmitPassword = values.password.trim() !== '';\n\n const payload: EditUserRequest = {\n firstName: values.firstName,\n lastName: values.lastName,\n email: values.email,\n isDeactivated: !values.isActive,\n permissions: values.permissions,\n };\n\n if (shouldSubmitPassword) {\n payload.password = values.password;\n payload.password_confirmation = values.confirmPassword;\n }\n\n try {\n setIsSaving(true);\n await editUser(user.id, payload);\n onEditUser();\n onClose();\n } catch (error) {\n handleEditUserError(error as AxiosError);\n } finally {\n setIsSaving(false);\n }\n };\n\n const handleEditUserError = ({ response }: AxiosError) => {\n if (response?.status === STATUS_422) {\n const errorMessage = response?.data as ErrorResponse;\n\n if (errorMessage.message === t(InputError.EmailAlreadyTaken)) {\n const fieldErrors: EditUserErrors = {\n firstName: null,\n lastName: null,\n email: InputError.EmailAlreadyTaken,\n password: null,\n confirmPassword: null,\n };\n\n setFormErrors(fieldErrors);\n }\n\n return;\n }\n\n showNotification(t('errors.defaultError'), Severity.Error);\n };\n\n const handleChange = (key: T, newValue: EditUserFields[T] & (string | boolean)): void => {\n setValues({\n ...values,\n [key]: newValue,\n });\n\n setFormErrors(prevStateForm => ({\n ...prevStateForm,\n [key]: null,\n }));\n };\n\n return (\n \n handleChange('firstName', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.firstName}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n handleChange('lastName', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.lastName}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n handleChange('email', event.target.value)}\n required\n autoComplete=\"off\"\n value={values.email}\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n />\n {currentUser.id !== user.id && (\n <>\n handleChange('password', event.target.value)}\n InputProps={{\n endAdornment: (\n {\n setShowingPassword(password);\n }}\n />\n ),\n autoComplete: 'new-password',\n }}\n error={formErrors.password !== null}\n helperText={formErrors.password ? t(formErrors.password) : null}\n required\n className={classes.formField}\n />\n handleChange('confirmPassword', event.target.value)}\n InputProps={{\n endAdornment: (\n {\n setShowingConfirmPassword(password);\n }}\n />\n ),\n autoComplete: 'confirm-new-password',\n }}\n error={formErrors.confirmPassword !== null}\n helperText={formErrors.confirmPassword ? t(formErrors.confirmPassword) : null}\n required\n className={classes.formField}\n />\n \n )}\n {currentUser.id !== user.id && (\n \n \n {t('pages.users.fields.userPermissions')}\n \n \n \n )}\n {currentUser.id !== user.id && (\n <>\n \n {t('pages.users.fields.userStatus')}\n \n handleChange('isActive', event.target.checked)}\n />\n }\n label={t('active')}\n sx={{\n width: '100%',\n marginRight: 0,\n }}\n />\n \n )}\n \n );\n};\n\nexport default EditUserModal;\n","import { TabPanel } from '@get-e/react-components';\nimport { Box, useMediaQuery } from '@mui/material';\nimport { DataGridPro, GridColDef, GridColumnVisibilityModel, GridRowId, useGridApiRef } from '@mui/x-data-grid-pro';\nimport clsx from 'clsx';\nimport React, { FunctionComponent } from 'react';\nimport { Route, Switch, useRouteMatch } from 'react-router-dom';\n\nimport { CustomNoRowsOverlay } from '../../../components/noRowsDataGridOverlay/CustomNoRowsOverlay';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport { User } from '../api/types';\nimport { useUsersColumns } from '../hooks/useUsersColumns';\nimport { useUsersColumnsMobile } from '../hooks/useUsersColumnsMobile';\nimport { ActiveTab, ActiveTabUrl, getTableHeight, getTableWrapperHeight } from '../Users';\n\nconst InvitedUsersDataGrid: FunctionComponent<{\n data: User[];\n isFetching: boolean;\n value: ActiveTab;\n onRevoke: (user: User) => void;\n columnVisibilityModel: GridColumnVisibilityModel;\n}> = ({ data, isFetching, value, onRevoke, columnVisibilityModel }) => {\n const { path } = useRouteMatch();\n const classes = useDataGridStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const gridApiRef = useGridApiRef();\n\n const handleRevoke = (user: User) => {\n onRevoke(user);\n };\n\n const onRowClick = (params: { id: GridRowId; row: User }) => {\n if (isMobile) {\n gridApiRef.current.toggleDetailPanel(params.id);\n }\n };\n\n return (\n \n \n \n \n 0,\n })}\n hideFooter\n disableColumnSelector\n rows={data}\n columns={useUsersColumns({ handleRevoke }) as GridColDef[]}\n slots={{ noRowsOverlay: CustomNoRowsOverlay }}\n getDetailPanelContent={useUsersColumnsMobile({\n activeTab: ActiveTab.Invited,\n handleRevoke,\n })}\n getDetailPanelHeight={() => 'auto'}\n loading={isFetching}\n columnVisibilityModel={columnVisibilityModel}\n onRowClick={onRowClick}\n />\n \n \n \n \n );\n};\n\nexport default InvitedUsersDataGrid;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { Severity, useNotificationContext } from '../../../context/NotificationContext';\nimport { revokeUser } from '../api';\nimport { User } from '../api/types';\n\nconst useStyles = makeStyles({\n confirmButton: {\n background: COLORS.RED,\n '&:hover': { background: COLORS.RED_WARNING },\n },\n});\n\ninterface RevokeUserModalProps {\n user: User;\n onClose: () => void;\n onRevokeUser: () => void;\n}\n\nconst RevokeUserModal = ({ user, onClose, onRevokeUser }: RevokeUserModalProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const { showNotification } = useNotificationContext();\n\n const handleRevoke = async () => {\n try {\n await revokeUser(user.id);\n onRevokeUser();\n } catch (error) {\n showNotification(t('errors.defaultError'), Severity.Error);\n } finally {\n onClose();\n }\n };\n\n return (\n \n {t('modals.revoke.description')}\n \n {t('modals.revoke.descriptionDetailed')}\n \n \n {t('doYouWantToProceed')}\n \n \n );\n};\n\nexport default RevokeUserModal;\n","import { Grid, Skeleton, Box, useMediaQuery, Theme } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\n\nconst useStyles = makeStyles((theme: Theme) => ({\n mainWrapper: {\n alignItems: 'center',\n padding: 0,\n },\n mainWrapperTopPadding: { paddingTop: '3.5rem' },\n headerTitleWrapper: {\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [theme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 0,\n [theme.breakpoints.down('md')]: { marginBottom: '0.5rem' },\n [theme.breakpoints.down('sm')]: {\n width: '100%',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '0.5rem',\n marginBottom: '0.5rem',\n },\n },\n content: {\n width: '100%',\n height: 'calc(100vh - 263px)',\n marginTop: '2rem',\n },\n}));\n\nconst UsersLoadingSkeleton = () => {\n const classes = useStyles();\n const isMobile = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n\n return (\n \n \n \n \n \n \n \n {!isMobile && }\n \n \n \n\n \n \n \n \n \n \n \n\n \n\n {!isMobile ? (\n \n \n \n ) : (\n \n {[...Array(3)].map((_, index) => (\n \n \n \n ))}\n \n )}\n \n );\n};\n\nexport default UsersLoadingSkeleton;\n","/* eslint-disable max-statements */\n/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { NumberedTab, NumberedTabs } from '@get-e/react-components';\nimport AddIcon from '@mui/icons-material/Add';\nimport { Grid, Typography, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { GRID_DETAIL_PANEL_TOGGLE_FIELD, GridColumnVisibilityModel } from '@mui/x-data-grid-pro';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory, useRouteMatch } from 'react-router-dom';\n\nimport PageActionButton from '../../components/buttons/PageActionButton';\nimport { COLORS } from '../../constants/colors';\nimport { USE_ACTIVE_USERS, USE_DEACTIVE_USERS } from '../../constants/queryKeys';\nimport { USERS } from '../../constants/urlPaths';\nimport { useCurrentProfileContext } from '../../context/CurrentProfileContext';\nimport { Severity, useNotificationContext } from '../../context/NotificationContext';\nimport theme from '../../styles/theme';\nimport { useInvitedUsers, useUsers } from './api';\nimport { User } from './api/types';\nimport ActiveUsersDataGrid from './components/ActiveUsersDataGrid';\nimport AddUserModal from './components/AddUserModal';\nimport ChangeUserStatusModal from './components/ChangeUserStatusModal';\nimport DeactivatedUsersDataGrid from './components/DeactivatedUsersDataGrid';\nimport EditUserModal from './components/EditUserModal';\nimport EditUserProfileModal from './components/EditUserProfileModal';\nimport InvitedUsersDataGrid from './components/InvitedUsersDataGrid';\nimport RevokeUserModal from './components/RevokeUserModal';\nimport UsersLoadingSkeleton from './components/UsersLoadingSkeleton';\n\nconst useStyles = makeStyles(styleTheme => ({\n mainWrapper: {\n alignItems: 'center',\n padding: 0,\n },\n mainWrapperTopPadding: { paddingTop: '3.5rem' },\n headerTitleWrapper: {\n marginBottom: '2rem',\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [styleTheme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 'auto',\n [styleTheme.breakpoints.down('sm')]: {\n width: '100%',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '0.5rem',\n },\n },\n content: { order: 2 },\n}));\n\nexport enum ChangeStatus {\n REVOKE_USER = 'buttonName.revokeInvite',\n EDIT_USER = 'buttonName.editUser',\n DEACTIVATE_USER = 'buttonName.deactivate',\n REACTIVATE_USER = 'buttonName.reactivate',\n}\n\nexport enum ActiveTab {\n Active,\n Invited,\n Deactivated,\n}\n\nexport enum ActiveTabUrl {\n Active = 'active',\n Invited = 'invited',\n Deactivated = 'deactivated',\n}\n\nconst getActiveTab = (url: string): ActiveTab => {\n switch (url) {\n case USERS:\n case `${USERS}/${ActiveTabUrl.Active}`:\n return ActiveTab.Active;\n case `${USERS}/${ActiveTabUrl.Invited}`:\n return ActiveTab.Invited;\n case `${USERS}/${ActiveTabUrl.Deactivated}`:\n return ActiveTab.Deactivated;\n default:\n throw new Error(`Unhandled URL \"${url}\"`);\n }\n};\n\nexport const MOBILE_TABLE_HEIGHT = 'calc(100vh - 235px)';\nexport const TABLE_HEIGHT = 'calc(100vh - 217px)';\n\nexport const getTableWrapperHeight = (isMobile: boolean, isNoRows: boolean): string => {\n const height = isMobile ? MOBILE_TABLE_HEIGHT : TABLE_HEIGHT;\n\n return isNoRows ? 'auto' : height;\n};\n\nexport const getTableHeight = (isMobile: boolean, isNoRows: boolean): string => {\n const height = isMobile ? MOBILE_TABLE_HEIGHT : TABLE_HEIGHT;\n\n return isNoRows ? height : '100%';\n};\n\nconst Users = () => {\n const classes = useStyles();\n const { t } = useTranslation();\n const history = useHistory();\n const activeTab = getActiveTab(history.location.pathname);\n const { url } = useRouteMatch();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n const [invitedCount, setInvitedCount] = useState(null);\n const [isAddModalOpen, setIsAddModalOpen] = useState(false);\n const [isDeactivateModalOpen, setIsDeactivateModalOpen] = useState(false);\n const [isRevokeUserModalOpen, setIsRevokeUserModalOpen] = useState(false);\n const [isEditUserProfileModal, setIsEditUserProfileModal] = useState(false);\n const [isEditModalOpen, setIsEditModalOpen] = useState(false);\n const [isLoadingActive, setIsLoadingActive] = useState(true);\n const [isLoadingInvited, setIsLoadingInvited] = useState(true);\n const [isLoadingDeactivated, setIsLoadingDeactivated] = useState(true);\n const [activeCount, setActiveCount] = useState(null);\n const [deactivatedCount, setDeactivatedCount] = useState(null);\n const selectedUser = useRef();\n const isUserStatusActivate = useRef(false);\n const { showNotification } = useNotificationContext();\n const { currentProfile, refetchUserProfile } = useCurrentProfileContext();\n\n const {\n data: activeUsers,\n isFetching: isFetchingActiveUsers,\n refetch: refetchActiveUsers,\n } = useUsers(USE_ACTIVE_USERS, false);\n\n const { data: invitedUsers, isFetching: isFetchingInvitedUsers, refetch: refetchInvitedUsers } = useInvitedUsers();\n\n const {\n data: deactivatedUsers,\n isFetching: isFetchingDeativatedUsers,\n refetch: refetchDeactivatedUsers,\n } = useUsers(USE_DEACTIVE_USERS, true);\n\n useEffect(() => {\n if (activeUsers) {\n setActiveCount(activeUsers.length);\n setIsLoadingActive(false);\n }\n }, [activeUsers]);\n\n useEffect(() => {\n if (invitedUsers) {\n setInvitedCount(invitedUsers.length);\n setIsLoadingInvited(false);\n }\n }, [invitedUsers]);\n\n useEffect(() => {\n if (deactivatedUsers) {\n setDeactivatedCount(deactivatedUsers.length);\n setIsLoadingDeactivated(false);\n }\n }, [deactivatedUsers]);\n\n const onInviteUser = () => {\n showNotification(t('pages.users.notifications.inviteSuccessfullySent'), Severity.Info);\n refetchInvitedUsers();\n };\n\n const onEditUser = () => {\n showNotification(t('pages.users.notifications.userSuccessfullyEdited'), Severity.Info);\n refetchActiveUsers();\n refetchDeactivatedUsers();\n };\n\n const onRevokeUser = () => {\n showNotification(t('pages.users.notifications.invitationSuccessfullyRevoked'), Severity.Info);\n refetchInvitedUsers();\n };\n\n const onUpdateUserStatus = () => {\n showNotification(\n t(\n isUserStatusActivate.current\n ? 'pages.users.notifications.userSuccessfullyActivated'\n : 'pages.users.notifications.userSuccessfullyDeactivated'\n ),\n Severity.Info\n );\n refetchActiveUsers();\n refetchDeactivatedUsers();\n };\n\n const handleEdit = (user: User) => {\n selectedUser.current = user;\n\n if (currentProfile.id.toString() === user.id.toString()) {\n setIsEditUserProfileModal(true);\n } else {\n setIsEditModalOpen(true);\n }\n };\n\n const handleChangeStatus = (user: User, isActive: boolean) => {\n selectedUser.current = user;\n isUserStatusActivate.current = isActive;\n setIsDeactivateModalOpen(true);\n };\n\n const handleRevoke = (user: User) => {\n selectedUser.current = user;\n setIsRevokeUserModalOpen(true);\n };\n\n const handleUserProfileUpdate = async () => {\n await refetchUserProfile();\n };\n\n const columnVisibilityModel: GridColumnVisibilityModel = useMemo(\n () => ({\n email: !isMobile,\n permissions: !isMobile,\n lastSeen: activeTab === ActiveTab.Invited ? false : !isMobile,\n actions: !isMobile,\n [GRID_DETAIL_PANEL_TOGGLE_FIELD]: isMobile,\n }),\n [activeTab, isMobile]\n );\n\n if (isFetchingActiveUsers) {\n return ;\n }\n\n return (\n \n \n \n \n {t('users')}\n \n \n \n setIsAddModalOpen(true)}\n isLoading={isFetchingActiveUsers || isFetchingInvitedUsers || isFetchingDeativatedUsers}\n >\n \n {t('pages.users.inviteUser')}\n \n \n \n \n \n \n \n \n \n \n \n {activeTab === ActiveTab.Active && (\n \n )}\n {activeTab === ActiveTab.Invited && (\n \n )}\n {activeTab === ActiveTab.Deactivated && (\n \n )}\n \n {isAddModalOpen && (\n setIsAddModalOpen(false)} />\n )}\n {isEditModalOpen && selectedUser.current && (\n setIsEditModalOpen(false)}\n />\n )}\n {isDeactivateModalOpen && selectedUser.current && (\n setIsDeactivateModalOpen(false)}\n onUpdateUserStatus={onUpdateUserStatus}\n />\n )}\n {isRevokeUserModalOpen && selectedUser.current && (\n setIsRevokeUserModalOpen(false)}\n onRevokeUser={onRevokeUser}\n />\n )}\n {isEditUserProfileModal && currentProfile && (\n setIsEditUserProfileModal(false)}\n onUserProfileUpdated={handleUserProfileUpdate}\n />\n )}\n \n );\n};\n\nexport default Users;\n","import { ModalAction as Modal } from '@get-e/react-components';\nimport { Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\n\nconst useStyles = makeStyles({ confirmButtonDeactivate: { backgroundColor: COLORS.RED } });\n\ninterface ConfirmToggleVehicleActivationModalProps {\n id: number;\n isDeactivated: boolean;\n onClose: () => void;\n onToggle: (id: number, isDeactivated: boolean) => void;\n isLoading?: boolean;\n}\n\nconst ConfirmToggleVehicleActivationModal = ({\n id,\n isDeactivated,\n onClose,\n onToggle,\n isLoading,\n}: ConfirmToggleVehicleActivationModalProps) => {\n const { t } = useTranslation();\n const classes = useStyles();\n\n return (\n onToggle(id, isDeactivated)}\n title={t(\n isDeactivated ? 'modals.toggleVehicleActivation.titleActivate' : 'modals.toggleVehicleActivation.titleDeactivate'\n )}\n confirmButtonLabel={t(isDeactivated ? 'buttonName.activate' : 'buttonName.deactivate')}\n cancelButtonLabel={t('buttonName.cancel')}\n maxWidth=\"sm\"\n confirmButtonClassName={clsx({ [classes.confirmButtonDeactivate]: !isDeactivated })}\n isDisabled={isLoading}\n >\n \n {t(\n isDeactivated\n ? 'modals.toggleVehicleActivation.descriptionActivate'\n : 'modals.toggleVehicleActivation.descriptionDeactivate'\n )}\n \n {t('areYouSureToProceed')}\n \n );\n};\n\nexport default ConfirmToggleVehicleActivationModal;\n","import { ColorOption } from '../colorOptions';\n\nexport enum ChangeStatus {\n EDIT = 'EDIT',\n DEACTIVATE = 'DEACTIVATE',\n DUPLICATE = 'DUPLICATE',\n ACTIVATE = 'ACTIVATE',\n}\n\nexport interface Vehicle {\n id: number;\n licensePlate: string;\n identifier: string;\n brand?: Entity | null;\n color?: string | ColorOption;\n model?: Entity | null;\n status: string;\n pictures: Photo[];\n isArchived?: boolean;\n}\n\nexport interface Photo {\n id: number;\n url: string;\n isDefault: boolean;\n}\n\nexport interface Entity {\n id?: number;\n name: string;\n}\n\nexport interface ImageUrl {\n url: string;\n isDefault?: boolean;\n}\n\nexport interface VehicleVariables {\n licensePlate: string;\n identifier?: string;\n brandId?: number;\n color: string;\n modelId?: number;\n pictures?: ImageUrl[];\n}\n\nexport interface VehicleUpdateVariables extends VehicleVariables {\n id: number;\n}\n","import { LabeledData, DropdownMenu } from '@get-e/react-components';\nimport CarRepairIcon from '@mui/icons-material/CarRepair';\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy';\nimport EditIcon from '@mui/icons-material/Edit';\nimport NoCrashIcon from '@mui/icons-material/NoCrash';\nimport { Grid, Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport { ChangeStatus, Vehicle } from '../api/types';\nimport SmallVehicleImage from './SmallVehicleImage';\n\nconst useStyles = makeStyles({\n image: {\n height: '62px',\n width: '182px',\n },\n heading: {\n marginBottom: '1rem',\n color: COLORS.BLUE_DARK,\n fontSize: '1rem',\n fontWeight: 700,\n },\n cardContainer: {\n width: '100%',\n flexDirection: 'column',\n border: `1px solid ${COLORS.BLACK_12}`,\n borderRadius: '0.5rem',\n marginTop: '1rem',\n padding: '1rem',\n position: 'relative',\n },\n mili: {\n '& .MuiGrid-item ': {\n paddingTop: '0.3rem',\n '& > span': {\n fontSize: '.875rem',\n margin: 0,\n },\n },\n },\n});\n\ninterface VehicleCardProps {\n vehicle: Vehicle;\n onToggleStatus: (vehicle: Vehicle) => void;\n onEdit: (vehicle: Vehicle) => void;\n onDuplicateClick: (vehicle: Vehicle) => void;\n}\n\nconst VehicleCard = ({ vehicle, onToggleStatus, onEdit, onDuplicateClick }: VehicleCardProps) => {\n const classes = useStyles();\n const { t } = useTranslation();\n\n const onActionItemClick = useCallback(\n (action: ChangeStatus) => {\n switch (action) {\n case ChangeStatus.EDIT:\n onEdit(vehicle);\n break;\n case ChangeStatus.DUPLICATE:\n onDuplicateClick(vehicle);\n break;\n case ChangeStatus.DEACTIVATE:\n onToggleStatus(vehicle);\n break;\n case ChangeStatus.ACTIVATE:\n onToggleStatus(vehicle);\n break;\n default:\n throw new Error('Driver action not supported');\n }\n },\n [onDuplicateClick, onEdit, onToggleStatus, vehicle]\n );\n\n return (\n {}}>\n \n \n {vehicle?.licensePlate}\n \n {\n onActionItemClick(ChangeStatus.EDIT);\n },\n },\n {\n id: 2,\n label: t('duplicate'),\n icon: ContentCopyIcon,\n iconColor: COLORS.BLUE_DARK,\n labelColor: COLORS.BLUE_DARK,\n onClick: () => {\n onActionItemClick(ChangeStatus.DUPLICATE);\n },\n },\n {\n id: 3,\n label: t(vehicle.isArchived ? 'buttonName.activate' : 'buttonName.deactivate'),\n icon: vehicle.isArchived ? NoCrashIcon : CarRepairIcon,\n iconColor: vehicle.isArchived ? COLORS.BLUE_DARK : COLORS.RED,\n labelColor: vehicle.isArchived ? COLORS.BLUE_DARK : COLORS.RED,\n onClick: () =>\n onActionItemClick(vehicle.isArchived ? ChangeStatus.ACTIVATE : ChangeStatus.DEACTIVATE),\n },\n ]}\n />\n \n \n \n el.isDefault)?.url || vehicle?.pictures?.[0]?.url}\n boxSize={'100px'}\n />\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default VehicleCard;\n","import { Grid, Skeleton, Box, useMediaQuery, Theme } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React from 'react';\n\nconst useStyles = makeStyles((theme: Theme) => ({\n mainWrapper: {\n alignItems: 'center',\n padding: 0,\n },\n mainWrapperTopPadding: { paddingTop: '3.5rem' },\n headerTitleWrapper: {\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [theme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 0,\n [theme.breakpoints.down('sm')]: {\n width: '100%',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '0.5rem',\n },\n },\n content: {\n width: '100%',\n height: 'calc(100vh - 263px)',\n marginTop: '2rem',\n },\n}));\n\nconst VehiclesLoadingSkeleton = () => {\n const classes = useStyles();\n const isMobile = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'));\n\n return (\n \n \n \n \n \n \n \n {!isMobile && }\n \n \n \n\n \n \n \n \n \n\n {!isMobile ? (\n \n \n \n ) : (\n \n {[...Array(3)].map((_, index) => (\n \n \n \n ))}\n \n )}\n \n );\n};\n\nexport default VehiclesLoadingSkeleton;\n","import CarRepairIcon from '@mui/icons-material/CarRepair';\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy';\nimport CreateIcon from '@mui/icons-material/Create';\nimport NoCrashIcon from '@mui/icons-material/NoCrash';\nimport { Typography, useMediaQuery } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { GridRowParams, GridActionsCellItem } from '@mui/x-data-grid-pro';\nimport React, { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { COLORS } from '../../../constants/colors';\nimport useDataGridStyles from '../../../styles/DataGrid';\nimport theme from '../../../styles/theme';\nimport { ChangeStatus, Vehicle } from '../api/types';\nimport { colorOptions } from '../colorOptions';\nimport ColorCircle from '../colorOptions/ColorCircle';\nimport SmallVehicleImage from '../components/SmallVehicleImage';\n\nconst useStyles = makeStyles({ redMenuItem: { color: COLORS.RED } });\n\nconst COLUMN_WIDTH = 200;\nconst COLUMN_MOBILE_WIDTH = 150;\n\nexport const useVehiclesColumns = (\n onToggleStatus: (vehicle: Vehicle) => void,\n onEdit: (vehicle: Vehicle) => void,\n onDuplicateClick: (vehicle: Vehicle) => void\n) => {\n const { t } = useTranslation();\n const classes = useStyles();\n const dataGridClases = useDataGridStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('lg'));\n\n const onActionItemClick = useCallback(\n (vehicle: Vehicle, action: ChangeStatus) => {\n switch (action) {\n case ChangeStatus.EDIT:\n onEdit(vehicle);\n break;\n case ChangeStatus.DUPLICATE:\n onDuplicateClick(vehicle);\n break;\n case ChangeStatus.DEACTIVATE:\n onToggleStatus(vehicle);\n break;\n case ChangeStatus.ACTIVATE:\n onToggleStatus(vehicle);\n break;\n default:\n throw new Error('Driver action not supported');\n }\n },\n [onDuplicateClick, onEdit, onToggleStatus]\n );\n\n return useMemo(\n () => [\n {\n field: 'photo',\n headerName: '',\n width: 42,\n renderCell: (params: GridRowParams) => (\n el.isDefault)?.url ||\n (params.row as Vehicle).pictures?.[0]?.url\n }\n boxSize=\"36px\"\n />\n ),\n },\n {\n field: 'licensePlate',\n headerName: t('licensePlate'),\n minWidth: isMobile ? COLUMN_MOBILE_WIDTH : COLUMN_WIDTH,\n flex: 1,\n },\n {\n field: 'brand',\n headerName: t('brand'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRowParams) => {params.row.brand?.name ?? '-'},\n },\n {\n field: 'model',\n headerName: t('model'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRowParams) => {params.row.model?.name ?? '-'},\n },\n {\n field: 'color',\n headerName: t('color'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRowParams) => {\n return (\n el.id === params.row?.color) || colorOptions[0]}\n paddingBox=\"0\"\n />\n );\n },\n },\n {\n field: 'identifier',\n headerName: t('identifier'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRowParams) => {params.row.identifier || '-'},\n },\n {\n field: 'status',\n headerName: t('status'),\n minWidth: COLUMN_WIDTH,\n flex: 1,\n renderCell: (params: GridRowParams) => (\n {params.row.isArchived ? t('archived') : t('active')}\n ),\n },\n {\n field: 'actions',\n type: 'actions',\n width: 20,\n headerClassName: dataGridClases.hideSeparator,\n getActions: (params: GridRowParams) => {\n const vehicle = params.row as Vehicle;\n\n return [\n }\n label={t('buttonName.edit')}\n onClick={() => onActionItemClick(vehicle, ChangeStatus.EDIT)}\n showInMenu\n nonce=\"\"\n />,\n onActionItemClick(vehicle, ChangeStatus.DUPLICATE)}\n showInMenu\n icon={}\n />,\n \n ) : (\n \n )\n }\n label={t(vehicle.isArchived ? 'buttonName.activate' : 'buttonName.deactivate')}\n onClick={() =>\n onActionItemClick(vehicle, vehicle.isArchived ? ChangeStatus.ACTIVATE : ChangeStatus.DEACTIVATE)\n }\n showInMenu\n nonce=\"\"\n />,\n ];\n },\n },\n ],\n [t, isMobile, dataGridClases.hideSeparator, dataGridClases.menuItem, classes.redMenuItem, onActionItemClick]\n );\n};\n","/* eslint-disable max-statements */\nimport { TextField as CustomTextField, NoResultsDataGrid as NoResults } from '@get-e/react-components';\nimport AddIcon from '@mui/icons-material/Add';\nimport DirectionsCarFilledIcon from '@mui/icons-material/DirectionsCarFilled';\nimport SearchIcon from '@mui/icons-material/Search';\nimport { Grid, Typography, InputAdornment, useMediaQuery, Box } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { DataGridPro, GridRowId, GridEventListener, GridColDef } from '@mui/x-data-grid-pro';\nimport clsx from 'clsx';\nimport React, { useState, useCallback, useRef, useMemo, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { useMutation } from 'react-query';\nimport { logAmplitudeEvent } from '../../amplitude/amplitude';\nimport PageActionButton from '../../components/buttons/PageActionButton';\nimport {\n ACTIVATE_VEHICLE_BUTTON,\n DEACTIVATE_VEHICLE_BUTTON,\n DUPLICATE_VEHICLE_BUTTON,\n EDIT_VEHICLE_BUTTON,\n NEW_VEHICLE_BUTTON,\n VEHICLES_SCREEN,\n VEHICLES_SEARCH_INPUT,\n} from '../../constants/amplitude/supplierKeys';\nimport { COLORS } from '../../constants/colors';\nimport { Severity, useNotificationContext } from '../../context/NotificationContext';\nimport useDataGridStyles from '../../styles/DataGrid';\nimport theme from '../../styles/theme';\nimport { archiveVehicle, restoreVehicle, useVehicle, useVehicles } from './api';\nimport { Vehicle } from './api/types';\nimport { ColorOption, getColorOption } from './colorOptions';\nimport AddVehicleModal from './components/AddVehicleModal';\nimport ConfirmToggleVehicleActivationModal from './components/ConfirmToggleVehicleActivationModal';\nimport VehicleCard from './components/VehicleCard';\nimport VehiclesLoadingSkeleton from './components/VehiclesLoadingSkeleton';\nimport { useVehiclesColumns } from './hooks/useVehiclesColumns';\n\nconst useStyles = makeStyles(styleTheme => ({\n mainWrapper: {\n alignItems: 'center',\n padding: 0,\n },\n mainWrapperTopPadding: { paddingTop: '3.5rem' },\n headerTitleWrapper: {\n marginTop: '1rem',\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n [styleTheme.breakpoints.up('md')]: {\n justifyContent: 'space-between',\n flexDirection: 'row',\n marginTop: '2rem',\n },\n },\n headerTitle: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 0,\n [styleTheme.breakpoints.down('sm')]: {\n width: '100%',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: '0.5rem',\n },\n },\n headerTypo: {\n color: COLORS.BLUE,\n fontSize: '1.5rem',\n fontWeight: 700,\n paddingRight: '1rem',\n [styleTheme.breakpoints.down('sm')]: { padding: '0 0 1rem 0' },\n },\n content: { order: 2 },\n}));\n\nexport const TABLE_HEIGHT = 'calc(100vh - 263px)';\nlet searchTimeoutId: ReturnType | number = -1;\n\nconst Vehicles = () => {\n const classes = useStyles();\n const dataGridClasses = useDataGridStyles();\n const { t } = useTranslation();\n const [searchPhrase, setSearchPhrase] = useState('');\n const [debouncedSearchPhrase, setDebouncedSearchPhrase] = useState('');\n const [isAddVehicleModalOpen, setIsAddVehicleModalOpen] = useState(false);\n const [isEditVehicleModalOpen, setIsEditVehicleModalOpen] = useState(false);\n const [isConfirmToggleIsActiveModalOpen, setIsConfirmToggleIsActiveModalOpen] = useState(false);\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const selectedVehicle = useRef();\n const selectedId = useRef(null);\n const { data: vehicles = [], isFetching, isLoading, refetch } = useVehicles(debouncedSearchPhrase, 100);\n const contentKey = useRef(new Date());\n const [isInitialLoad, setIsInitialLoad] = useState(true);\n const { showNotification } = useNotificationContext();\n\n const { data: vehicleForEdit } = useVehicle(selectedId.current, contentKey.current);\n\n const { mutate: restoreVehicleMutation, isLoading: isLoadingRestore } = useMutation(restoreVehicle, {\n onSuccess: async () => {\n showNotification(t('alert.edit.successVehicleChange'), Severity.Info);\n await refetch();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n onSettled: () => {\n setIsConfirmToggleIsActiveModalOpen(false);\n selectedId.current = null;\n },\n });\n\n const { mutate: archiveVehicleMutation, isLoading: isLoadingArchive } = useMutation(archiveVehicle, {\n onSuccess: async () => {\n showNotification(t('alert.edit.successVehicleChange'), Severity.Info);\n await refetch();\n },\n onError: (error: Error) => {\n showNotification(t('alert.edit.error'), Severity.Error);\n },\n onSettled: () => {\n setIsConfirmToggleIsActiveModalOpen(false);\n selectedId.current = null;\n },\n });\n\n const isNoRows = useMemo(() => vehicles.length === 0, [vehicles.length]);\n\n const tableWrapperHeight = useMemo(() => {\n return isNoRows ? 'auto' : TABLE_HEIGHT;\n }, [isNoRows]);\n\n const tableHeight = useMemo(() => (isNoRows ? TABLE_HEIGHT : '100%'), [isNoRows]);\n\n useEffect(() => {\n logAmplitudeEvent(VEHICLES_SCREEN);\n }, []);\n\n useEffect(() => {\n if (!isLoading && isInitialLoad) {\n setIsInitialLoad(false);\n }\n }, [isLoading, isInitialLoad]);\n\n const handleSearchInputOnChange = useCallback(\n (value: string) => {\n setSearchPhrase(value);\n clearTimeout(searchTimeoutId);\n searchTimeoutId = setTimeout(() => {\n setDebouncedSearchPhrase(value);\n }, 600);\n },\n [setDebouncedSearchPhrase]\n );\n\n const onToggleStatus = (vehicle: Vehicle) => {\n selectedId.current = vehicle.id;\n\n setIsConfirmToggleIsActiveModalOpen(true);\n logAmplitudeEvent(vehicle.isArchived ? ACTIVATE_VEHICLE_BUTTON : DEACTIVATE_VEHICLE_BUTTON);\n };\n\n const onEdit = (vehicle: Vehicle) => {\n contentKey.current = new Date();\n selectedId.current = vehicle.id;\n setIsEditVehicleModalOpen(true);\n logAmplitudeEvent(EDIT_VEHICLE_BUTTON);\n };\n\n const onDuplicateClick = (vehicle: Vehicle) => {\n selectedVehicle.current = {\n id: -1,\n licensePlate: '',\n brand: vehicle.brand,\n model: vehicle.model,\n identifier: '',\n pictures: [],\n status: '',\n color: getColorOption(vehicle.color || '') as ColorOption,\n };\n\n setIsAddVehicleModalOpen(true);\n logAmplitudeEvent(DUPLICATE_VEHICLE_BUTTON);\n };\n\n const columns = useVehiclesColumns(onToggleStatus, onEdit, onDuplicateClick);\n\n const handleToggleActivation = (id: number, isDeactivated: boolean) => {\n if (isDeactivated) {\n restoreVehicleMutation(id);\n } else {\n archiveVehicleMutation(id);\n }\n };\n\n const onRowClick = useCallback>((params: { id: GridRowId; row: Vehicle }) => {\n onEdit(params.row);\n }, []);\n\n const handleCloseAddEditModal = () => {\n setIsAddVehicleModalOpen(false);\n setIsEditVehicleModalOpen(false);\n selectedId.current = null;\n selectedVehicle.current = undefined;\n };\n\n const handleSubmit = async () => {\n await refetch();\n setIsAddVehicleModalOpen(false);\n setIsEditVehicleModalOpen(false);\n selectedId.current = null;\n selectedVehicle.current = undefined;\n };\n\n if (isInitialLoad && isLoading) {\n return ;\n }\n\n return (\n \n \n \n {t('pages.vehicles.vehicles')}\n \n \n {\n setIsAddVehicleModalOpen(true);\n logAmplitudeEvent(NEW_VEHICLE_BUTTON);\n }}\n isLoading={isFetching}\n id=\"newVehicleButton\"\n >\n \n {t('pages.vehicles.newVehicle')}\n \n \n \n \n \n {\n handleSearchInputOnChange(event.target.value);\n }}\n label={t('pages.vehicles.search')}\n name=\"search\"\n InputProps={{\n endAdornment: (\n \n \n \n ),\n }}\n onBlur={() => logAmplitudeEvent(VEHICLES_SEARCH_INPUT)}\n />\n \n \n {!isMobile ? (\n \n (\n \n }\n text={t('pages.vehicles.notAvailable')}\n description={t('pages.vehicles.notAvailableDesc')}\n additionalContent={\n setIsAddVehicleModalOpen(true)}>\n \n {t('pages.vehicles.createOne')}\n \n \n }\n />\n ),\n }}\n onRowClick={onRowClick}\n />\n \n ) : (\n vehicles.map(vehicle => (\n \n ))\n )}\n {isConfirmToggleIsActiveModalOpen && vehicleForEdit && (\n setIsConfirmToggleIsActiveModalOpen(false)}\n onToggle={handleToggleActivation}\n isLoading={isLoadingArchive || isLoadingRestore}\n />\n )}\n {isAddVehicleModalOpen && (\n \n )}\n {isEditVehicleModalOpen && vehicleForEdit && (\n \n )}\n \n );\n};\n\nexport default Vehicles;\n","import { useLocation } from 'react-router-dom';\n\nconst useQuery = (): URLSearchParams => new URLSearchParams(useLocation().search);\n\nexport default useQuery;\n","import 'whatwg-fetch';\nimport React, { FunctionComponent, useEffect, useState } from 'react';\nimport { Redirect } from 'react-router-dom';\n\nimport config from '../../config';\nimport { IS_LOGIN_WITH_NEW_PORTAL } from '../../constants/windowStorageKeys';\nimport hasProperty from '../../helpers/hasProperty';\nimport { report } from '../../helpers/report';\nimport useQuery from '../../hooks/useQuery';\nimport Loading from '../../pages/loading/Loading';\nimport LogInMessage from '../loginMessage/LogInMessage';\n\nconst Authenticate: FunctionComponent = () => {\n const query = useQuery();\n const [authorizing, setAuthorizing] = useState(true);\n const [authorized, setAuthorized] = useState(false);\n const authorizationCode = query.get('code');\n const [tokenIsInvalid, setTokenIsInvalid] = useState(false);\n\n useEffect(() => {\n fetch(config.setCookieUrl, {\n method: 'POST',\n body: JSON.stringify({ authorizationCode }),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n },\n credentials: 'include',\n })\n .then(async response => {\n if (response.status >= 200 && response.status < 300) {\n setAuthorizing(false);\n setAuthorized(true);\n localStorage.removeItem(IS_LOGIN_WITH_NEW_PORTAL);\n return;\n }\n\n const errorResponse = (await response.json()) as unknown;\n\n const authCodeInvalid =\n hasProperty(errorResponse, 'errorCode') && errorResponse.errorCode === 'INVALID_AUTHORIZATION_CODE';\n\n if (authCodeInvalid) {\n setTokenIsInvalid(true);\n return;\n }\n\n throw Error(`Unexpected response status ${response.status}`);\n })\n .catch(fetchError => {\n report(fetchError);\n setAuthorizing(false);\n });\n }, [authorizationCode]);\n\n if (tokenIsInvalid) {\n return ;\n }\n\n if (authorizing) {\n return ;\n }\n\n if (authorized) {\n return ;\n }\n\n return ;\n};\n\nexport default Authenticate;\n","export default function hasProperty(object: unknown, property: T): object is { [property in T]: unknown } {\n return typeof object === 'object' && object !== null && Object.prototype.hasOwnProperty.call(object, property);\n}\n","import React, { FunctionComponent } from 'react';\nimport { Route, RouteComponentProps } from 'react-router-dom';\n\nimport { CustomerExportProps } from '../../pages/customerExport/CustomerExport';\nimport PageContainer from '../../pages/pageContainer/PageContainer';\nimport { UserRoles } from '../../pages/users/api/types';\nimport { AccountType } from '../../services/types';\n\ninterface PrivateRouteProps {\n path: string;\n component: React.FunctionComponent;\n mainClassName?: string;\n allowedAccountType?: AccountType[];\n allowedUserRoles?: UserRoles[];\n}\n\nconst PrivateRoute: FunctionComponent = ({\n // eslint-disable-next-line @typescript-eslint/naming-convention\n component: Component,\n mainClassName,\n allowedAccountType,\n allowedUserRoles,\n ...rest\n}) => (\n (\n \n \n \n )}\n />\n);\n\nexport default PrivateRoute;\n","import { useMediaQuery } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport { useFlags } from 'launchdarkly-react-client-sdk';\nimport React, { FunctionComponent } from 'react';\nimport { Route, Switch, useHistory } from 'react-router-dom';\n\nimport config from '../../config';\nimport TokenError from '../../constants/TokenError';\nimport {\n ACCEPT_INVITE,\n AUTHENTICATE,\n AVAILABILITY,\n BASE_URL_PATH,\n BOOKING_TOOL,\n DOCUMENTS,\n DRIVERS,\n VEHICLES,\n EXPIRED_INVITE_TOKEN,\n EXPIRED_PASSWORD_TOKEN,\n FORGOT_PASSWORD,\n INVALID_AUTH_CODE,\n INVALID_COOKIE,\n INVALID_INVITE_TOKEN,\n INVALID_PASSWORD_TOKEN,\n LOG_IN,\n LOG_IN_NEW,\n REPORTS,\n RESET_PASSWORD,\n RIDES,\n USERS,\n INVOICES,\n SETTINGS,\n UPDATE_RIDE,\n} from '../../constants/urlPaths';\nimport AcceptInvite from '../../pages/acceptInvite/AcceptInvite';\nimport Availability from '../../pages/availability/Availability';\nimport BookingTool from '../../pages/bookingTool/BookingTool';\nimport CustomerExport from '../../pages/customerExport/CustomerExport';\nimport Documents from '../../pages/documents/Documents';\nimport Drivers from '../../pages/drivers/Drivers';\nimport InvalidAuthCode from '../../pages/errorPages/InvalidAuthCode';\nimport InvalidCookie from '../../pages/errorPages/InvalidCookie';\nimport InvalidInviteToken from '../../pages/errorPages/InvalidInviteToken';\nimport InvalidPasswordToken from '../../pages/errorPages/InvalidPasswordToken';\nimport NotFound from '../../pages/errorPages/NotFound';\nimport TooManyRequest from '../../pages/errorPages/TooManyRequest';\nimport UnauthorizedUser from '../../pages/errorPages/UnauthorizedUser';\nimport ForgotPassword from '../../pages/forgotPassword/ForgotPassword';\nimport Invoices from '../../pages/invoices/Invoices';\nimport Login from '../../pages/login/Login';\nimport PageContainer from '../../pages/pageContainer/PageContainer';\nimport Reports from '../../pages/reports/Reports';\nimport ResetPassword from '../../pages/resetPassword/ResetPassword';\nimport RidePageSwitch from '../../pages/ride/components/RidePageSwitch';\nimport UpdateRide from '../../pages/ride/customer/UpdateRide';\nimport RidesPageSwitch from '../../pages/rides/components/ridesPageSwitch/RidesPageSwitch';\nimport { Settings } from '../../pages/settings/Settings';\nimport { UserRoles } from '../../pages/users/api/types';\nimport Users from '../../pages/users/Users';\nimport Vehicles from '../../pages/vehicles/Vehicles';\nimport { ERROR_NOT_AUTHORIZED, ERROR_NOT_FOUND, ERROR_TOO_MANY_REQUESTS } from '../../services/routes';\nimport { AccountType } from '../../services/types';\nimport theme from '../../styles/theme';\nimport Authenticate from '../authenticate/Authenticate';\nimport PrivateRoute from '../privateRoute/PrivateRoute';\n\nconst useStyles = makeStyles({\n mainContainer: { padding: '0rem 4rem 2rem 4rem' },\n mainContainerRide: { padding: '0rem 2rem 2rem 2rem' },\n mainContainerMobile: { padding: '1rem' },\n});\n\nconst usePrivateRoutes = () => {\n const classes = useStyles();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n const { useSettingsPage } = useFlags();\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return [\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n\n ,\n\n \n \n \n \n ,\n ,\n useSettingsPage && (\n \n ),\n ,\n ];\n};\n\nconst Routes: FunctionComponent = () => {\n const history = useHistory();\n\n return (\n \n {usePrivateRoutes()}\n {\n history.push(RIDES);\n return null;\n }}\n />\n {\n window.location.href = config.signInUrl;\n return null;\n }}\n />\n \n \n \n ,\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default Routes;\n","import { PortalLocale } from '../context/LocaleContext';\n\nexport type DayjsLocale = 'en' | 'es';\n\nconst findDayjsLocale = (value: PortalLocale): DayjsLocale => {\n switch (value) {\n case 'en-GB':\n return 'en';\n case 'es-ES':\n return 'es';\n default:\n console.log(`${value as string} is unsupported`);\n return 'en';\n }\n};\n\nexport default findDayjsLocale;\n","import { PortalLocale } from '../context/LocaleContext';\n\nconst supportedLocales: Array<{ locale: string; code: PortalLocale }> = [\n {\n locale: 'en',\n code: 'en-GB',\n },\n {\n locale: 'en-au',\n code: 'en-GB',\n },\n {\n locale: 'en-ca',\n code: 'en-GB',\n },\n {\n locale: 'en-cb',\n code: 'en-GB',\n },\n {\n locale: 'en-gb',\n code: 'en-GB',\n },\n {\n locale: 'en-ie',\n code: 'en-GB',\n },\n {\n locale: 'en-in',\n code: 'en-GB',\n },\n {\n locale: 'en-jm',\n code: 'en-GB',\n },\n {\n locale: 'en-ph',\n code: 'en-GB',\n },\n {\n locale: 'en-nz',\n code: 'en-GB',\n },\n {\n locale: 'en-tt',\n code: 'en-GB',\n },\n {\n locale: 'en-us',\n code: 'en-GB',\n },\n {\n locale: 'en-za',\n code: 'en-GB',\n },\n {\n locale: 'es-ES',\n code: 'es-ES',\n },\n];\n\nexport default supportedLocales;\n","/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { ComponentsProvider, NotificationSeverity, Notification } from '@get-e/react-components';\nimport { LicenseInfo } from '@mui/x-license-pro';\nimport dayjs from 'dayjs';\n\nimport React, { useCallback, useEffect, useState } from 'react';\nimport TagManager from 'react-gtm-module';\nimport { QueryClient, QueryClientProvider } from 'react-query';\nimport { BrowserRouter } from 'react-router-dom';\n\nimport { initAmplitude } from './amplitude/amplitude';\nimport Routes from './components/routes/Routes';\nimport { PREFERRED_USER_LANGUAGE } from './constants/localStorageKeys';\nimport { AuthProvider } from './context/AuthenticatedUserContext';\nimport { LocaleContext, PortalLocale } from './context/LocaleContext';\nimport { NotificationContext, Severity } from './context/NotificationContext';\nimport findDayjsLocale from './helpers/findDayjsLocale';\n\nimport { setZendeskLocale } from './helpers/zendeskConfig';\nimport i18n from './i18n';\nimport ErrorBoundary from './pages/errorPages/ErrorBoundary';\nimport Loading from './pages/loading/Loading';\nimport findSupportedLocale from './public/findSupportedLocale';\n\ninterface IeNavigator extends Navigator {\n userLanguage?: string;\n browserLanguage?: string;\n}\nLicenseInfo.setLicenseKey(process.env.REACT_APP_MUI_PRO_LICENCE_KEY ?? '');\n\nconst tagManagerArgs = { gtmId: process.env.GOOGLE_TAG_MANAGER_ID ?? '' };\n\nconst App = (): JSX.Element => {\n const queryClient = new QueryClient();\n const [locale, setLocale] = useState('en-GB');\n const [localeInitialized, setLocaleInitialized] = useState(false);\n\n const [notification, setNotification] = useState<{\n message: string;\n color: NotificationSeverity;\n } | null>(null);\n\n useEffect(() => {\n const ieNavigator: IeNavigator = window.navigator;\n const { userLanguage, browserLanguage } = ieNavigator;\n\n const navigatorLanguages = window.navigator.languages as readonly string[] | undefined;\n\n const navigatorLanguage = window.navigator.language as string | undefined;\n\n const uniqueUserLanguages = new Set([\n ...(navigatorLanguages ?? []),\n navigatorLanguage ?? '',\n userLanguage ?? '',\n browserLanguage ?? '',\n ]);\n\n const userLanguages = Array.from(uniqueUserLanguages).filter(language => Boolean(language));\n\n const portalLocale: PortalLocale =\n (localStorage.getItem(PREFERRED_USER_LANGUAGE) as PortalLocale) || findSupportedLocale(userLanguages) || 'en-GB';\n\n i18n.changeLanguage(portalLocale).then(() => setLocaleInitialized(true));\n\n setLocale(portalLocale);\n setZendeskLocale(portalLocale);\n\n dayjs.locale(findDayjsLocale(portalLocale));\n\n TagManager.initialize(tagManagerArgs);\n }, []);\n\n const updateLocale = useCallback(async (value: PortalLocale): Promise => {\n await i18n.changeLanguage(value);\n setLocale(value);\n dayjs.locale(findDayjsLocale(value));\n setZendeskLocale(value);\n }, []);\n\n const showNotification = (message: string, severity?: Severity): void => {\n const color = (() => {\n switch (severity) {\n case Severity.Info:\n case undefined:\n return 'info';\n case Severity.Error:\n return 'error';\n default:\n throw new Error('Unsupported severity');\n }\n })();\n\n setNotification({\n message,\n color,\n });\n };\n\n const notificationElement = (() => {\n if (notification === null) {\n return null;\n }\n\n return (\n setNotification(null)}>\n {notification.message}\n \n );\n })();\n\n if (!localeInitialized) {\n return ;\n }\n\n initAmplitude();\n\n return (\n \n \n \n \n \n \n \n {notificationElement}\n \n \n \n \n \n \n \n \n );\n};\n\nexport default App;\n","import { PortalLocale } from '../context/LocaleContext';\nimport supportedLocales from './supportedLocales';\n\nexport default function findSupportedLocale(preferredLocales: string[]): PortalLocale | null {\n for (const preferredLocale of preferredLocales) {\n for (const supportedLocale of supportedLocales) {\n if (preferredLocale.toLowerCase() === supportedLocale.locale.toLowerCase()) {\n return supportedLocale.code;\n }\n }\n }\n\n return 'en-GB';\n}\n","export const SENTRY_IGNORE_ERRORS = [\n 'SecurityError: Blocked a frame with origin \"https://app.portal.get-e.com\" from accessing a cross-origin frame.',\n 'SecurityError: Permission denied to access property \"document\" on cross-origin object',\n \"SecurityError: Failed to read a named property 'document' from 'Window': Blocked a frame with origin \\\"https://app.portal.get-e.com\\\" from accessing a cross-origin frame.\",\n 'Non-Error promise rejection captured with value: Object Not Found',\n 'ResizeObserver loop completed with undelivered notifications.',\n 'AbortError: AbortError',\n 'The Google Maps JavaScript API could not load',\n \"undefined is not a constructor (evaluating 'new google.maps.DirectionsRenderer')\",\n];\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-floating-promises */\nimport 'core-js/stable';\nimport 'regenerator-runtime/runtime';\nimport 'react-app-polyfill/ie11';\nimport 'react-app-polyfill/stable';\nimport chameleon from '@chamaeleonidae/chmln';\nimport { ThemeProvider } from '@mui/material/styles';\nimport { LocalizationProvider } from '@mui/x-date-pickers';\n\nimport { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';\nimport * as Sentry from '@sentry/browser';\nimport dayjs from 'dayjs';\nimport advancedFormat from 'dayjs/plugin/advancedFormat';\nimport duration from 'dayjs/plugin/duration';\nimport relativeTime from 'dayjs/plugin/relativeTime';\nimport timezone from 'dayjs/plugin/timezone';\nimport utc from 'dayjs/plugin/utc';\nimport { asyncWithLDProvider } from 'launchdarkly-react-client-sdk';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport './index.css';\nimport './i18n';\nimport App from './App';\nimport config from './config';\nimport { SENTRY_IGNORE_ERRORS } from './constants/sentryIgnoreErrors';\nimport currentEnvironment from './environment/currentEnvironment';\nimport Environment from './environment/Environment';\nimport ErrorBoundary from './pages/errorPages/ErrorBoundary';\nimport theme from './styles/theme';\n\nif (currentEnvironment === Environment.Production) {\n Sentry.init({\n dsn: config.sentryDsn,\n ignoreErrors: SENTRY_IGNORE_ERRORS,\n beforeSend(event) {\n if (event.message && SENTRY_IGNORE_ERRORS.includes(event.message)) {\n return null;\n }\n\n return event;\n },\n environment: 'production',\n release: config.appVersion,\n logLevel: 1,\n });\n}\n\nif (currentEnvironment !== Environment.Production) {\n const favicon = document.getElementById('newFavicon') as HTMLLinkElement;\n\n favicon.href = `${config.appUrl}/logo_favicon_pink.ico`;\n}\n\nchameleon.init('SUwKvhx3SxwlHMfJWSA5y00gzqd8tBCbSdRkvDQyM88tbx-1SGoRc-Fmz1SSd4kxC9Ws30', {\n fastUrl: 'https://fast.chameleon.io/',\n});\nconst { chmln }: any = window;\n\nchmln?.Snippet?.debug();\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\ndayjs.extend(advancedFormat);\ndayjs.extend(duration);\ndayjs.extend(relativeTime);\n\n(async () => {\n const initialLdContext = {\n kind: 'user',\n key: 'test@get-e.com',\n name: 'get-e',\n email: 'test@get-e.com',\n };\n\n const LDProvider = await asyncWithLDProvider({\n clientSideID: process.env.REACT_APP_LAUNCH_DARKLY_CLIENT_SIDE_ID ?? '',\n context: initialLdContext,\n });\n\n ReactDOM.render(\n \n \n \n \n \n \n \n \n ,\n document.getElementById('root')\n );\n})();\n\n/*\n * If you want your app to work offline and load faster, you can change\n * unregister() to register() below. Note this comes with some pitfalls.\n * Learn more about service workers: https://bit.ly/CRA-PWA\n */\n// ServiceWorker.unregister();\n"],"sourceRoot":""}