{"version":3,"file":"index-9aa21ac6.js","sources":["../src/components/transfer/TransferForm/components/DatePickerField.jsx","../src/components/transfer/TransferForm/components/TimePickerField.jsx","../src/components/GeoPicker/hooks/useMapsAutocomplete.js","../src/components/GeoPicker/hooks/useMapsPlaceDetails.js","../src/components/GeoPicker/index.jsx","../src/components/transfer/TransferForm/components/LocationField.jsx","../src/components/transfer/TransferForm/components/QtyPickerField.jsx","../src/components/transfer/TransferForm/index.jsx","../src/hooks/transfer/useRideQuote.js","../src/components/transfer/Vehicles/index.jsx","../src/pages/transfers/TransfersVehiclesPage.jsx","../src/hooks/transfer/useRideCreateOrder.js","../src/components/transfer/TransferPolicy.jsx","../src/pages/transfers/TransfersBookingPage.jsx","../src/hooks/transfer/useRideOrders.js","../src/components/transfer/TransferOrdersTable/index.jsx","../src/pages/transfers/TransfersOrdersPage.jsx","../src/hooks/transfer/useRideOrder.js","../src/components/transfer/TransferOrderDetail/utils.js","../src/components/transfer/TransferPaxEditModal/hooks/useRidePaxUpdate.js","../src/components/transfer/TransferPaxEditModal/index.jsx","../src/components/transfer/TransferOrderDetail/index.jsx","../src/hooks/transfer/useRideCancelOrder.js","../src/pages/transfers/TransfersOrderDetailPage.jsx","../src/hooks/transfer-enquiry/useTransferEnquiryPost.js","../src/pages/transfers/enquiry/TransferEnquiryHomePage.jsx","../src/hooks/transfer-enquiry/useTransferEnquiries.js","../node_modules/dayjs/plugin/duration.js","../src/components/transfer/TransferEnquiriesTable/index.jsx","../src/pages/transfers/enquiry/TransferEnquiriesPage.jsx","../src/hooks/transfer-enquiry/useTransferEnquiry.js","../src/pages/transfers/enquiry/TransferEnquiryDetailPage.jsx","../src/pages/transfers/index.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DayPicker } from 'react-day-picker';\nimport { zhCN } from 'react-day-picker/locale';\nimport { MdCalendarToday } from 'react-icons/md';\nimport dayjs from 'dayjs';\nimport Floated from '@components/Floated';\nimport styles_input from '@styles/InputContainerLarge.module.css';\n\nconst DatePickerField = ({ label, value, isOpen, setIsOpen, onSelect, defaultMonth }) => (\n
\n \n \n \n
\n \n )}\n \n);\n\nDatePickerField.propTypes = {\n label: PropTypes.string.isRequired,\n value: PropTypes.string,\n isOpen: PropTypes.bool.isRequired,\n setIsOpen: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n defaultMonth: PropTypes.instanceOf(Date),\n};\n\nexport default DatePickerField;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MdAccessTime } from 'react-icons/md';\nimport styles_input from '@styles/InputContainerLarge.module.css';\n\nconst TimePickerField = ({ label, name, value, onChange }) => (\n
\n \n \n \n
\n);\n\nTimePickerField.propTypes = {\n label: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n value: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n};\n\nexport default TimePickerField;\n","import { useCallback, useState, useRef } from 'react';\nimport { GetToken } from '@utils/storage';\nimport * as config from '@config';\n\nfunction useMapsAutocomplete() {\n const [fetching, setFetching] = useState(false);\n const [fetched, setFetched] = useState(false);\n const [predictions, setPredictions] = useState([]);\n const abortRef = useRef();\n\n const autoComplete = useCallback(async (input) => {\n abort();\n abortRef.current = new AbortController();\n setFetching(true);\n setFetched(false);\n try {\n const response = await fetch(`${config.apiURL2}/maps/autocomplete`, {\n method: 'POST',\n signal: abortRef.current.signal,\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${GetToken()}`,\n },\n body: JSON.stringify({ input }),\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to fetch auto complete');\n }\n const data = await response.json();\n const { predictions } = data;\n setPredictions(predictions);\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error auto complete:', error);\n }\n throw error;\n } finally {\n setFetching(false);\n setFetched(true);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { fetching, fetched, predictions, autoComplete, abort };\n}\n\nexport default useMapsAutocomplete;\n","import { useCallback, useState, useRef } from 'react';\nimport { GetToken } from '@utils/storage';\nimport * as config from '@config';\n\nfunction useMapsPlaceDetails() {\n const [fetching, setFetching] = useState(false);\n const [data, setData] = useState({});\n\n const abortRef = useRef();\n\n const fetchPlaceDetails = useCallback(async (placeID) => {\n abort();\n abortRef.current = new AbortController();\n setFetching(true);\n try {\n const response = await fetch(`${config.apiURL2}/maps/place-details`, {\n method: 'POST',\n signal: abortRef.current.signal,\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${GetToken()}`,\n },\n body: JSON.stringify({ placeID }),\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to fetch place details');\n }\n const data = await response.json();\n setData(data);\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error fetch place details :', error);\n }\n throw error;\n } finally {\n setFetching(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { fetching, data, fetchPlaceDetails, abort };\n}\n\nexport default useMapsPlaceDetails;\n","import React, { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport styles from './index.module.css';\nimport useMapsAutocomplete from './hooks/useMapsAutocomplete';\nimport { MdSearch, MdSearchOff } from 'react-icons/md';\nimport { Loader } from 'semantic-ui-react';\nimport { useDebounce } from '@hooks/useDebounce';\nimport { MdOutlineLocationOn } from 'react-icons/md';\nimport useMapsPlaceDetails from './hooks/useMapsPlaceDetails';\nimport { LoadingOutlined } from '@ant-design/icons';\n\nfunction GeoPicker({\n active = false,\n placeholder = '',\n defaultValue = '',\n onSelect = () => {},\n defaultResults = [],\n ...rest\n}) {\n const ref = useRef();\n const [value, setValue] = useState('');\n const { fetching, fetched, autoComplete, predictions, abort } = useMapsAutocomplete();\n const debounceAutoComplete = useDebounce(autoComplete, 500);\n const [results, setResults] = useState([]);\n\n useEffect(() => {\n if (active) {\n ref.current.focus();\n if (defaultValue) {\n setValue(defaultValue);\n handleSearch(defaultValue);\n }\n }\n return () => {\n if (active) {\n console.log('GeoPicker closed');\n abort();\n // reset();\n }\n };\n }, [active, defaultValue]);\n\n useEffect(() => {\n if (Array.isArray(predictions) && predictions.length > 0) {\n setResults(predictions);\n }\n }, [predictions]);\n\n useEffect(() => {\n if (Array.isArray(defaultResults) && defaultResults.length > 0) {\n setResults(defaultResults);\n }\n }, [defaultResults]);\n\n const reset = () => {\n flushResults();\n setValue(defaultValue);\n };\n\n const flushResults = () => {\n if (Array.isArray(defaultResults) && defaultResults.length > 0) {\n setResults([]);\n } else {\n setResults([]);\n }\n };\n\n const onChange = (e) => {\n const value = e.target.value;\n // console.log(value);\n setValue(value);\n handleSearch(value);\n };\n\n const handleSearch = (value) => {\n if (value.length < 3) {\n flushResults();\n return;\n }\n // Skip debounce if value is equal to defaultValue\n if (value == defaultValue) {\n autoComplete(value)\n .then((data) => {\n console.log('data:', data);\n })\n .catch((err) => {\n // alert(err);\n });\n } else {\n debounceAutoComplete(value)\n .then((data) => {\n console.log('data:', data);\n })\n .catch((err) => {\n // alert(err);\n });\n }\n };\n\n const Results = () => {\n if (fetching) {\n return ;\n }\n if (results.length == 0 && fetched) {\n return (\n
\n \n
无结果
\n
\n );\n }\n if (results.length == 0 && !fetched) {\n return (\n
\n \n
机场,酒店,地址
\n
\n );\n }\n\n return results.map((item, index) => {\n const { fetchPlaceDetails, fetching: fetchingDetails, abort: abortDetails } = useMapsPlaceDetails();\n\n useEffect(() => {\n return () => {\n abortDetails();\n };\n }, []);\n\n const handleOnClick = (item) => {\n fetchPlaceDetails(item.placeID)\n .then((data) => {\n console.log('Place details:', data);\n const { name, formattedAddress, location } = data.details;\n const description = `${name} - ${formattedAddress}`;\n onSelect({\n description: description,\n placeID: item.placeID,\n lat: location.lat,\n lng: location.lng,\n });\n })\n .catch((err) => {\n console.log(err);\n });\n };\n return (\n
handleOnClick(item)}>\n
\n \n
\n
\n
\n {item.description} {fetchingDetails && }\n
\n
\n
\n
\n );\n });\n };\n\n return (\n
\n \n
\n \n
\n
\n );\n}\n\nGeoPicker.propTypes = {\n active: PropTypes.bool,\n placeholder: PropTypes.string,\n defaultValue: PropTypes.string,\n onSelect: PropTypes.func.isRequired,\n};\n\nexport default GeoPicker;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Floated from '@components/Floated';\nimport GeoPicker from '@components/GeoPicker';\nimport styles_input from '@styles/InputContainerLarge.module.css';\n\nconst LocationField = ({ icon: Icon, label, value, isOpen, setIsOpen, onSelect, placeholder }) => (\n
\n \n \n \n
\n);\n\nLocationField.propTypes = {\n icon: PropTypes.elementType.isRequired,\n label: PropTypes.string.isRequired,\n value: PropTypes.string,\n isOpen: PropTypes.bool.isRequired,\n setIsOpen: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n placeholder: PropTypes.string,\n};\n\nexport default LocationField;\n","import React, { useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport styles_input from '@styles/InputContainerLarge.module.css';\n\nconst QtyPickerField = ({ icon: Icon, label, name, placeholder, value, onChange }) => {\n const inputRef = useRef();\n return (\n
\n \n \n \n
\n );\n};\n\nQtyPickerField.propTypes = {\n icon: PropTypes.elementType.isRequired,\n label: PropTypes.string.isRequired,\n placeholder: PropTypes.string,\n name: PropTypes.string.isRequired,\n value: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n};\n\nexport default QtyPickerField;\n","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport styles from './TransferForm.module.css';\nimport styles_input from '@styles/InputContainerLarge.module.css';\nimport { MdLocationOn, MdOutlineLocationOn, MdHourglassTop, MdGroup, MdOutlineLuggage } from 'react-icons/md';\nimport '@styles/day-picker.css';\nimport dayjs from 'dayjs';\nimport { Segmented } from 'antd';\nimport DatePickerField from './components/DatePickerField';\nimport TimePickerField from './components/TimePickerField';\nimport LocationField from './components/LocationField';\nimport QtyPickerField from './components/QtyPickerField';\nimport { MdOutlineSwapHoriz } from 'react-icons/md';\n\nexport const k_transfer_form_data = 'k_transfer_form_data';\n\nconst MIN_HOURS = '3';\n\n// 3 - 8 hours\nconst HOURS_ARRAY = ['3', '4', '5', '6', '7', '8', '9', '10'];\n\nconst TRIP_TYPES = {\n ONE_WAY: 'ONE_WAY',\n BY_HOUR: 'BY_HOUR',\n};\n\n// values are string beacuse they are used in URLSearchParams\nexport const DEFAULT_DATA = {\n time: '',\n date: '',\n pickup: '',\n pickupPlaceID: '',\n dropoff: '',\n dropoffPlaceID: '',\n passengerCount: '2',\n luggageCount: '2',\n hours: '', // empty means one way, otherwise by hours\n returnTrip: 'false',\n retDate: '', // for return trip\n retTime: '', // for return trip\n};\n\nfunction TransferForm({ data, setData }) {\n const [openCalendar, setOpenCalendar] = useState(false);\n const [openRetCalendar, setOpenRetCalendar] = useState(false);\n const [openPickup, setOpenPickup] = useState(false);\n const [openDropoff, setOpenDropoff] = useState(false);\n\n const handleOnChange = (e) => {\n const { name, value } = e.target;\n console.log([name, value]);\n\n setData((prev) => {\n return { ...prev, [name]: value };\n });\n };\n\n // type: pickup, dropoff\n const handleLocationSelect = (type) => (locationData) => {\n console.log('Selected location:', locationData);\n const { description, placeID } = locationData;\n setData((prev) => ({\n ...prev,\n [`${type}`]: description,\n [`${type}PlaceID`]: placeID,\n }));\n if (type === 'pickup') setOpenPickup(false);\n if (type === 'dropoff') setOpenDropoff(false);\n };\n\n const handleTripTypeChange = (value) => {\n if (value == TRIP_TYPES.ONE_WAY) {\n setData((prev) => {\n delete prev.hours;\n return { ...prev };\n });\n } else {\n setData((prev) => {\n return { ...prev, hours: MIN_HOURS };\n });\n }\n };\n\n const handleByHours = (e) => {\n const { name, value } = e.target;\n console.log([name, value]);\n setData((prev) => {\n return { ...prev, [name]: value };\n });\n };\n\n const handleChangeReturnTrip = (e) => {\n setData((prev) => {\n const returnTrip = prev.returnTrip === 'true' ? 'false' : 'true';\n if (returnTrip === 'false') {\n delete prev.retDate;\n delete prev.retTime;\n }\n return { ...prev, returnTrip: returnTrip };\n });\n };\n\n const handleDateSelect = (date) => {\n setData((prev) => ({\n ...prev,\n date: date ? dayjs(date).format('YYYY-MM-DD') : '',\n }));\n setOpenCalendar(false);\n };\n\n const handleRetDateSelect = (date) => {\n setData((prev) => ({\n ...prev,\n retDate: date ? dayjs(date).format('YYYY-MM-DD') : '',\n }));\n setOpenRetCalendar(false);\n };\n\n const renderFromLoation = () => (\n \n );\n\n const handleSwap = () => {\n console.log('swap locations');\n setData((prev) => {\n return {\n ...prev,\n pickup: prev.dropoff,\n dropoff: prev.pickup,\n pickupPlaceID: prev.dropoffPlaceID,\n dropoffPlaceID: prev.pickupPlaceID,\n };\n });\n };\n\n return (\n
\n {/*
\n \n
*/}\n
\n \n \n
\n
\n \n \n
\n {!data.hours && (\n
\n {renderFromLoation()}\n
\n \n
\n \n
\n )}\n {data.hours && (\n
\n {renderFromLoation()}\n
\n \n \n \n {HOURS_ARRAY.map((item, index) => {\n return (\n \n );\n })}\n \n
\n
\n )}\n\n {!data.hours && (\n <>\n
\n \n \n
\n {data.returnTrip === 'true' && (\n
\n \n \n
\n )}\n \n )}\n
\n
\n );\n}\n\nTransferForm.propTypes = {\n data: PropTypes.object.isRequired,\n setData: PropTypes.func.isRequired,\n};\n\nexport default TransferForm;\n","import { useCallback, useState, useRef } from 'react';\nimport { GetToken } from '@utils/storage';\nimport * as config from '@config';\n\nfunction useRideQuote() {\n const [submitting, setSubmitting] = useState(false);\n const [data, setData] = useState({});\n\n const abortRef = useRef();\n\n const handleRideQuote = useCallback(async (req) => {\n abort();\n setSubmitting(true);\n abortRef.current = new AbortController();\n console.log('Requesting ride quote:', req);\n\n try {\n const response = await fetch(`${config.apiURL2}/ride/quote`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${GetToken()}`,\n },\n body: JSON.stringify(req),\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'An error occurred while fetching ride quote');\n }\n const data = await response.json();\n const { quote } = data;\n setData(quote);\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error fetching ride quote:', error);\n }\n throw error;\n } finally {\n setSubmitting(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { submitting, handleRideQuote, data, abort };\n}\n\nexport default useRideQuote;\n","import React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport styles from './index.module.css';\nimport { MdGroup, MdOutlineLuggage } from 'react-icons/md';\nimport { Button } from 'antd';\nimport { DevMode } from '@utils/utils';\n\nfunction Vehicles({ data = [], onSelect = () => {} }) {\n useEffect(() => {}, [data]);\n\n return (\n
\n {data.map((item, index) => {\n return (\n
\n
\n
\n \n 最多{item.passengerCapacity}人\n
\n
\n \n 最多{item.luggageCapacity}件\n
\n
\n
\n
\n
\n {item.vehicleClass}\n
\n
\n\n
\n
{item.vehicleClass}
\n
\n {item.typicalVehicle.model} {item.typicalVehicle.manufacturer} or same class/grade\n
\n
\n
\n
\n
\n
{item.price.currency}
\n
{item.price.salePrice}
\n {DevMode() && ({item.price.netPrice})}\n
\n
\n \n
\n
\n
\n );\n })}\n
\n );\n}\n\nVehicles.propTypes = {\n data: PropTypes.array.isRequired,\n onSelect: PropTypes.func.isRequired,\n};\n\nexport default Vehicles;\n","import React, { useEffect, useState } from 'react';\nimport { useNavigate, useSearchParams } from 'react-router-dom';\nimport qs from 'qs';\nimport TransferForm, { k_transfer_form_data } from '../../components/transfer/TransferForm';\nimport BackBar from '../../components/BackBar';\nimport useRideQuote from '../../hooks/transfer/useRideQuote';\nimport { Skeleton } from 'antd';\nimport Vehicles from '../../components/transfer/Vehicles';\nimport { Button } from 'antd';\n\nfunction TransfersVehiclesPage() {\n const [searchParams, setSearchParams] = useSearchParams();\n const [data, setData] = useState({});\n const { submitting, handleRideQuote, data: quote, abort } = useRideQuote();\n const navigate = useNavigate();\n\n useEffect(() => {\n return () => {\n abort();\n };\n }, []);\n\n useEffect(() => {\n // Change search params when data changes\n const searchParams = new URLSearchParams(data);\n setSearchParams(searchParams, { replace: true });\n return () => {\n // save form data to session storage\n sessionStorage.setItem(k_transfer_form_data, JSON.stringify(data));\n };\n }, [data]);\n\n // set initial data from Search params at frist render\n useEffect(() => {\n const parsedObj = qs.parse(searchParams.toString());\n console.log('Search params:', parsedObj);\n setData(parsedObj);\n handleQuote(parsedObj);\n }, []);\n\n const handleQuote = (req) => {\n console.log('Submitted data:', req);\n handleRideQuote(req)\n .then((res) => {\n console.log('Ride quote:', res.quote);\n })\n .catch((error) => {\n console.error('Error:', error);\n alert(error);\n });\n };\n\n const handleOnSelect = (item) => {\n console.log('Selected vehicle:', item);\n navigate('booking', { state: { request: data, vehicle: item, quote: quote } });\n };\n\n return (\n
\n \n
\n \n
\n \n
\n {submitting && }\n
\n \n
\n );\n}\n\nexport default TransfersVehiclesPage;\n","import { useCallback, useRef, useState } from 'react';\nimport * as config from '@config';\nimport { GetToken } from '@utils/storage';\n\nfunction useRideCreateOrder() {\n const [submitting, setSubmitting] = useState(false);\n const abortRef = useRef();\n\n const createRideOrder = useCallback(async (req) => {\n abort();\n setSubmitting(true);\n abortRef.current = new AbortController();\n try {\n const response = await fetch(`${config.apiURL2}/ride/create-order`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${GetToken()}`,\n },\n body: JSON.stringify(req),\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'An error occurred while create ride order');\n }\n const data = await response.json();\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error create ride order:', error);\n }\n throw error;\n } finally {\n setSubmitting(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { submitting, createRideOrder, abort };\n}\n\nexport default useRideCreateOrder;\n","import React from 'react';\n\nfunction TransferPolicy() {\n return (\n
\n

航班抵达后含60分钟的等候时间。

\n

\n 在预约接送时间24小时之前取消可获得100%退款(全额退款),在预约接送时间24小时之内取消则不予退款(0%退款)。\n

\n

司机会在行程前一天联系您, 会说当地语言和英语。

\n
\n );\n}\n\nexport default TransferPolicy;\n","import React, { useEffect, useState } from 'react';\nimport { useLocation, useNavigate } from 'react-router';\nimport styles from '@styles/TransfersBookingPage.module.css';\nimport { MdGroup, MdOutlineLuggage } from 'react-icons/md';\nimport BackBar from '@components/BackBar';\nimport useRideCreateOrder from '@hooks/transfer/useRideCreateOrder';\nimport { Button, Form, Input, Radio, Select, Result, Spin } from 'antd';\nimport TransferPolicy from '../../components/transfer/TransferPolicy';\nimport { ScrollToTop } from '@utils/scrollPosition';\n\nconst initialValues = { meetAndGreet: true, childSeat: false };\n\nfunction TransfersBookingPage() {\n const location = useLocation();\n const { request, quote, vehicle } = location.state || {};\n // console.log('TransfersBookingPage:', request, quote, vehicle);\n\n const [form] = Form.useForm();\n const [total, setTotal] = useState();\n const { submitting, createRideOrder, abort } = useRideCreateOrder();\n const [success, setSuccess] = useState(false);\n const navigate = useNavigate();\n\n useEffect(() => {\n // default meet and greet service\n ScrollToTop();\n const { meetAndGreet } = form.getFieldsValue();\n if (meetAndGreet) {\n setTotal(vehicle.price.salePrice + quote.meetAndGreet.price.salePrice);\n } else {\n setTotal(vehicle.price.salePrice);\n }\n }, [form]);\n\n const onFieldsChange = (changedFields, allFields) => {\n const { meetAndGreet } = form.getFieldsValue();\n if (meetAndGreet) {\n setTotal(vehicle.price.salePrice + quote.meetAndGreet.price.salePrice);\n } else {\n setTotal(vehicle.price.salePrice);\n }\n };\n\n const onFinish = (values) => {\n if (confirm('确定要预订吗?') !== true) return;\n const { passenger, ...rest } = values;\n passenger.passengerCount = request.passengerCount || vehicle.passengerCapacity;\n passenger.luggageCount = request.luggageCount || vehicle.luggageCapacity;\n if (passenger.welcomeSign && rest.meetAndGreet) {\n passenger.welcomeSign = `欢迎 ${passenger.welcomeSign}`;\n }\n const req = {\n ...request,\n passenger: passenger,\n ...rest,\n salePrice: total,\n netPrice: vehicle.price.netPrice,\n currency: vehicle.price.currency,\n meetAndGreetFee: quote.meetAndGreet.price.netPrice,\n vehicleClass: vehicle.vehicleClass,\n };\n // console.log('req:', req);\n\n createRideOrder(req)\n .then((res) => {\n form.resetFields();\n setSuccess(true);\n })\n .catch((error) => {\n console.error('Error:', error);\n alert(error);\n });\n };\n\n if (success) {\n return (\n 请留意您的邮箱(包括垃圾邮件文件夹)或在”用车订单“页面查看进展。}\n extra={[\n navigate('/dashboard/transfers/orders', { replace: true })}\n >\n 查看\n ,\n ,\n ]}\n />\n );\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
其他信息
\n
\n
\n {quote?.arrFlightNum && (\n \n {\n // Get the form instance and set the uppercase value\n form.setFieldValue('arrFlightNumber', e.target.value.toUpperCase());\n }}\n />\n \n )}\n {quote?.depFlightNum && (\n \n {\n // Get the form instance and set the uppercase value\n form.setFieldValue('depFlightNumber', e.target.value.toUpperCase());\n }}\n />\n \n )}\n
\n \n 您想花费 {quote.meetAndGreet.price.currency} {quote.meetAndGreet.price.salePrice}{' '}\n 添加举牌接机服务吗?\n

\n }\n // style={{ marginBottom: 0 }}\n >\n \n \n \n \n \n\n {form.getFieldValue('meetAndGreet') && (\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 {vehicle.price.currency}\n {total}\n
\n
\n
\n
起点:{request.pickup}
\n
终点:{request.dropoff}
\n
用车日期:{request.date}
\n
用车时间:{request.time}
\n {request.hours &&
包车时长:{request.hours}h
}\n\n {!request.hours && request.retDate &&
返程日期:{request.retDate}
}\n {!request.hours && request.retTime &&
返程时间:{request.retTime}
}\n
\n\n
\n
车型
\n
\n
\n
\n
\n {vehicle.vehicleClass}\n
\n
\n
\n
{vehicle.vehicleClass}
\n
\n {vehicle.typicalVehicle.model} {vehicle.typicalVehicle.manufacturer} or same class/grade\n
\n
\n
\n \n 最多{vehicle.passengerCapacity}人\n
\n
\n \n 最多{vehicle.luggageCapacity}件\n
\n
\n
\n
\n
\n
条款政策
\n
\n
\n \n
\n
\n
\n \n );\n}\n\nexport default TransfersBookingPage;\n","import { useCallback, useRef, useState } from 'react';\nimport { GetToken } from '@utils/storage';\nimport * as config from '@config';\nimport { RemoveEmpty } from '@utils/utils';\n\nfunction useRideOrders() {\n const [fetching, setFetching] = useState(false);\n const [orders, setOrders] = useState([]);\n const [total, setTotal] = useState(0);\n\n const abortRef = useRef();\n\n const fetchOrders = useCallback(async ({ page = 1, pageSize = 20, ...rest }) => {\n abort();\n setFetching(true);\n abortRef.current = new AbortController();\n // in case page and pageSize are string\n page = parseInt(page);\n pageSize = parseInt(pageSize);\n let query = {\n offset: (page - 1) * pageSize,\n limit: pageSize,\n ...rest,\n };\n const q = RemoveEmpty(query);\n const queryString = new URLSearchParams(q).toString();\n try {\n const response = await fetch(`${config.apiURL2}/ride/orders?${queryString}`, {\n method: 'GET',\n headers: {\n Authorization: `Bearer ${GetToken()}`,\n },\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to fetch ride orders');\n }\n const data = await response.json();\n const { total, orders } = data;\n setOrders(orders || []);\n setTotal(total || 0);\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error fetch ride orders:', error);\n }\n throw error;\n } finally {\n setFetching(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { fetching, orders, total, fetchOrders, abort };\n}\n\nexport default useRideOrders;\n","import React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { Button, Table, Tag } from 'antd';\nimport dayjs from 'dayjs';\n\nfunction index({ orders, total, handleTableChange, loading = false, query = {}, onSelect = () => {} }) {\n useEffect(() => {\n // console.log(orders);\n return () => {};\n }, [orders]);\n\n const columns = [\n {\n title: 'Ref',\n key: 'ref',\n render: (text, record) => (\n
\n
{record.ref}
\n
\n {record.status && (\n {record.status}\n )}\n
\n
\n ),\n },\n {\n title: '用车时间',\n key: 'datetime',\n render: (text, record) => (\n
\n
{dayjs(record.time).format('YYYY-MM-DD HH:mm')}
\n {record.retTime &&
返程{dayjs(record.retTime).format('YYYY-MM-DD HH:mm')}
}\n
\n ),\n },\n {\n title: '起点',\n key: 'from',\n render: (text, record) => (\n
\n
{record.pickupName}
\n
{record.pickupAddress}
\n
\n ),\n },\n {\n title: '终点',\n key: 'to',\n render: (text, record) => (\n
\n
{record.dropoffName}
\n
{record.dropoffAddress}
\n
\n ),\n },\n {\n title: '金额',\n key: 'amount',\n render: (text, record) => (\n
\n {record.currency}\n {record.saleTotalPrice}\n
\n ),\n },\n {\n title: '乘客',\n key: 'passenger',\n render: (text, record) => (\n
\n \n {record.passenger.firstName} {record.passenger.lastName}\n \n {record.passenger.passengerCount && ({record.passenger.passengerCount})}\n
\n ),\n },\n {\n title: '操作',\n key: 'action',\n render: (text, record) => {\n return (\n \n );\n },\n },\n ];\n\n return (\n
\n `Total ${num} items`,\n pageSizeOptions: [1, 10, 20, 50, 100],\n }}\n />\n
\n );\n}\n\nindex.propTypes = {\n orders: PropTypes.array.isRequired,\n total: PropTypes.number.isRequired,\n handleTableChange: PropTypes.func.isRequired,\n loading: PropTypes.bool,\n query: PropTypes.object,\n onSelect: PropTypes.func.isRequired,\n};\n\nexport default index;\n","import React, { useEffect, useState } from 'react';\nimport useRideOrders from '@hooks/transfer/useRideOrders';\nimport TransferOrdersTable from '@components/transfer/TransferOrdersTable';\nimport { useNavigate, useSearchParams } from 'react-router-dom';\nimport qs from 'qs';\n\nconst DEFAULT_QUERY = {\n page: 1,\n pageSize: 10,\n};\n\nfunction TransfersOrdersPage() {\n const { fetching, orders, total, fetchOrders, abort } = useRideOrders();\n const [query, setQuery] = useState(DEFAULT_QUERY);\n const [searchParams, setSearchParams] = useSearchParams();\n const navigate = useNavigate();\n\n useEffect(() => {\n return () => {\n abort();\n };\n }, []);\n\n useEffect(() => {\n const query = qs.parse(searchParams.toString());\n setQuery(query);\n fetchOrders(query);\n }, [searchParams]);\n\n const handleTableChange = (pagination, filters, sorter) => {\n setSearchParams({ ...query, page: pagination.current, pageSize: pagination.pageSize });\n };\n\n const onSelect = (record) => {\n // console.log('Selected order:', record);\n navigate(`${record.id}`);\n };\n\n return (\n
\n

用车订单

\n \n
\n );\n}\n\nexport default TransfersOrdersPage;\n","import { useCallback, useState, useRef } from 'react';\nimport { GetToken } from '@utils/storage';\nimport * as config from '@config';\n\nfunction useRideOrder() {\n const [fetching, setFetching] = useState(false);\n const [order, setOrder] = useState();\n\n const abortRef = useRef();\n\n const fetchOrder = useCallback(async (id) => {\n abort();\n setFetching(true);\n abortRef.current = new AbortController();\n try {\n const response = await fetch(`${config.apiURL2}/ride/orders/${id}`, {\n headers: {\n Authorization: `Bearer ${GetToken()}`,\n },\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to fetch order');\n }\n const data = await response.json();\n const { order } = data;\n setOrder(order);\n return order;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error fetch ride order:', error);\n }\n throw error;\n } finally {\n setFetching(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { fetching, order, fetchOrder, abort };\n}\n\nexport default useRideOrder;\n","import dayjs from 'dayjs';\n\nexport const minutesToText = (minutes) => {\n const hours = Math.floor(minutes / 60);\n const remainingMinutes = minutes % 60;\n\n if (hours === 0) {\n return `${remainingMinutes} mins`;\n }\n\n if (remainingMinutes === 0) {\n return `${hours} ${hours === 1 ? 'hour' : 'hours'}`;\n }\n\n return `${hours} ${hours === 1 ? 'hour' : 'hours'} ${remainingMinutes} mins`;\n};\n\nexport const formatDate = (dateString) => {\n const date = new Date(dateString);\n return date.toLocaleString('en-AU', {\n weekday: 'long',\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n hour12: true,\n });\n};\n\nexport const formatYYYYMMDD = (dateString) => {\n return dayjs(dateString).format('YYYY-MM-DD');\n};\n\nexport const formatHHMM = (dateString) => {\n return dayjs(dateString).format('HH:mm');\n};\n","import { useState, useCallback, useRef } from 'react';\nimport * as config from '@config';\nimport { GetToken } from '@utils/storage';\n\nfunction useRidePaxUpdate() {\n const [updating, setUpdating] = useState(false);\n const abortRef = useRef();\n\n const updateRidePax = useCallback(async (id, req) => {\n abort();\n setUpdating(true);\n abortRef.current = new AbortController();\n try {\n const response = await fetch(`${config.apiURL2}/ride/orders/${id}/pax`, {\n method: 'PATCH',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${GetToken()}`,\n },\n body: JSON.stringify(req),\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to update ride pax');\n }\n const data = await response.json();\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error cancel ride order:', error);\n }\n throw error;\n } finally {\n setUpdating(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n return { updating, updateRidePax, abort };\n}\n\nexport default useRidePaxUpdate;\n","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Button, Form, Input, Modal, Select } from 'antd';\nimport { EditOutlined } from '@ant-design/icons';\nimport useRidePaxUpdate from './hooks/useRidePaxUpdate';\n\nfunction index({ id, title, pax, editWelcomeSign = false, callback = () => {} }) {\n const [form] = Form.useForm();\n const [open, setOpen] = useState(false);\n const { updating, updateRidePax, abort } = useRidePaxUpdate();\n\n useEffect(() => {\n return () => {\n if (!open) {\n form.resetFields();\n }\n };\n }, [open, form]);\n\n const handleUpdate = () => {\n const values = form.getFieldsValue();\n const req = {\n ...values,\n };\n updateRidePax(id, req)\n .then((data) => {\n console.log('data:', data);\n setOpen(false);\n callback();\n })\n .catch((error) => {\n alert(error.message);\n });\n };\n\n const groupStyle = { display: 'flex', gap: 16 };\n\n return (\n <>\n \n setOpen((prev) => !prev)} />\n \n setOpen(false)} footer={null} closeIcon={false} centered>\n
\n {!editWelcomeSign && (\n <>\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n \n )}\n {editWelcomeSign && (\n \n \n \n )}\n
\n
\n \n \n
\n
\n \n );\n}\n\nindex.propTypes = {\n id: PropTypes.string.isRequired,\n pax: PropTypes.object,\n callback: PropTypes.func,\n editWelcomeSign: PropTypes.bool,\n};\n\nexport default index;\n","import React from 'react';\nimport { Card, Row, Col, Typography, Descriptions, Tag, Divider } from 'antd';\nimport { CarOutlined } from '@ant-design/icons';\nimport PropTypes from 'prop-types';\nimport { formatDate, formatHHMM, formatYYYYMMDD, minutesToText } from './utils.js';\nimport TransferPolicy from '../TransferPolicy.jsx';\nimport TransferPaxEditModal from '../TransferPaxEditModal';\n\nconst { Title, Text } = Typography;\n\nconst TransferOrderDetail = ({ data, refresh = () => {}, ...rest }) => {\n if (!data) {\n return (\n
\n \n No booking data available\n \n
\n );\n }\n\n return (\n
\n {/* Header Card */}\n \n \n \n \n <Tag color={data.status === 'Cancelled' ? 'red' : 'blue'}>{data.status}</Tag>Reference:{' '}\n {data.ref}({data.rideID})\n \n \n \n \n {data.currency} {data.saleTotalPrice}\n \n \n \n \n\n
\n {/* Journey Details */}\n \n \n 出发}>\n
\n {data.pickupName}\n
\n {data.pickupAddress}\n
\n
\n\n 终点}>\n
\n {data.dropoffName}\n
\n {data.dropoffAddress}\n
\n
\n 日期}>{formatYYYYMMDD(data.time)}\n 时间}>{formatHHMM(data.time)}\n {data.duration && (\n 时长}>{minutesToText(data.duration)}\n )}\n {data.retTime && (\n <>\n 返程日期}>\n {formatYYYYMMDD(data.retTime)}\n \n 返程时间}>{formatHHMM(data.retTime)}\n \n )}\n {data.arrFlightNumber && (\n 到达航班}>{data.arrFlightNumber}\n )}\n {data.depFlightNumber && (\n 出发航班}>{data.depFlightNumber}\n )}\n
\n
\n\n {/* Passenger Details */}\n \n 乘客信息\n \n
\n }\n style={{ marginTop: 24 }}\n >\n \n 人数}>{data?.passenger?.passengerCount}\n 行李}>{data?.passenger?.luggageCount}\n 姓名}>\n {data?.passenger?.salutation} {data?.passenger?.firstName} {data?.passenger?.lastname}{' '}\n \n 电话}>{data?.passenger?.cellPhone}\n 邮箱}>{data?.passenger?.email}\n \n \n\n \n \n 车辆}>\n {data?.vehicleManufacture} {data?.vehicleModel}\n \n \n \n\n {/* Additional Services */}\n \n {data.meetAndGreet && (\n
\n } color=\"blue\">\n 举牌接机服务\n \n \n {data?.passenger?.welcomeSign}{' '}\n \n \n
\n )}\n
\n \n \n \n
\n \n );\n};\n\nTransferOrderDetail.propTypes = {\n data: PropTypes.object.isRequired,\n refresh: PropTypes.func,\n};\n\nexport default TransferOrderDetail;\n","import { useState, useCallback, useRef } from 'react';\nimport * as config from '@config';\nimport { GetToken } from '@utils/storage';\n\nfunction useRideCancelOrder() {\n const [cancelling, setCancelling] = useState(false);\n const abortRef = useRef();\n\n const cancelRideOrder = useCallback(async (id) => {\n abort();\n setCancelling(true);\n abortRef.current = new AbortController();\n try {\n const response = await fetch(`${config.apiURL2}/ride/orders/${id}/cancel`, {\n method: 'PATCH',\n headers: {\n Authorization: `Bearer ${GetToken()}`,\n },\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'An error occurred while cancelling ride order');\n }\n const data = await response.json();\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error cancel ride order:', error);\n }\n throw error;\n } finally {\n setCancelling(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { cancelling, cancelRideOrder, abort };\n}\n\nexport default useRideCancelOrder;\n","import React, { useEffect } from 'react';\nimport { useParams } from 'react-router';\nimport BackBar from '@components/BackBar';\nimport useRideOrder from '@hooks/transfer/useRideOrder';\nimport TransferOrderDetail from '@components/transfer/TransferOrderDetail';\nimport { Button } from 'antd';\nimport useRideCancelOrder from '@hooks/transfer/useRideCancelOrder';\n\nfunction TransfersOrderDetailPage() {\n const { id } = useParams();\n const { fetching, order, fetchOrder, abort } = useRideOrder();\n const { cancelling, cancelRideOrder, abort: abortCancel } = useRideCancelOrder();\n\n useEffect(() => {\n console.log(id);\n fetchOrder(id)\n .then((data) => {\n console.log('data:', data);\n })\n .catch((error) => {\n alert(error.message);\n });\n return () => {\n abort();\n };\n }, [id]);\n\n const handleCancel = () => {\n if (confirm('确定要取消预订吗?') !== true) return;\n cancelRideOrder(id)\n .then((data) => {\n // refetch order\n fetchOrder(id);\n const { reply } = data;\n if (reply) {\n alert(reply);\n }\n })\n .catch((error) => {\n alert(error.message);\n });\n };\n\n return (\n
\n \n {fetching &&
Loading...
}\n {order && (\n <>\n fetchOrder(id)} />\n {order.status !== 'Cancelled' && (\n \n )}\n \n )}\n
\n );\n}\n\nexport default TransfersOrderDetailPage;\n","import { useState, useRef, useCallback } from 'react';\nimport { GetToken } from '@utils/storage';\nimport * as config from '@config';\n\nfunction useTransferEnquiryPost() {\n const [adding, setAdding] = useState(false);\n const abortRef = useRef();\n\n const addEnquiry = useCallback(async (req) => {\n setAdding(true);\n abort();\n abortRef.current = new AbortController();\n try {\n const response = await fetch(`${config.apiURL2}/transfer-enquiries`, {\n method: 'POST',\n headers: {\n Authorization: `Bearer ${GetToken()}`,\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(req),\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'An error occurred adding enquiry');\n }\n const data = await response.json();\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error adding enquiry:', error);\n }\n throw error;\n } finally {\n setAdding(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { adding, addEnquiry, abort };\n}\n\nexport default useTransferEnquiryPost;\n","import React, { useEffect, useState } from 'react';\nimport TransferForm, { DEFAULT_DATA, k_transfer_form_data } from '@components/transfer/TransferForm';\nimport { useNavigate } from 'react-router';\nimport { useSelector } from 'react-redux';\nimport { Selector } from '@utils/constants';\nimport ActivitiesGrid from '@components/activity/ActivitiesGrid';\nimport { Button } from 'antd';\nimport useTransferEnquiryPost from '@hooks/transfer-enquiry/useTransferEnquiryPost';\nimport { Result } from 'antd';\nimport { set } from 'date-fns';\n\nfunction TransferEnquiryHomePage() {\n const jsonString = sessionStorage.getItem(k_transfer_form_data);\n const inintData = JSON.parse(jsonString) || DEFAULT_DATA;\n const [data, setData] = useState(inintData);\n const activities = useSelector((state) => state.activities.data);\n const fetching = useSelector((state) => state.activities.fetching);\n const [transferActivties, setTransferActivties] = useState([]);\n const { adding, addEnquiry } = useTransferEnquiryPost();\n\n const navigate = useNavigate();\n\n const [result, setResult] = useState();\n\n useEffect(() => {\n const jsonString = sessionStorage.getItem(k_transfer_form_data);\n const inintData = JSON.parse(jsonString) || DEFAULT_DATA;\n setData(inintData);\n }, []);\n\n useEffect(() => {\n filterActivities();\n }, [fetching]);\n\n useEffect(() => {\n // console.log('data changed', data);\n sessionStorage.setItem(k_transfer_form_data, JSON.stringify(data));\n return () => {};\n }, [data]);\n\n const filterActivities = () => {\n const fixedSelector = Selector.Transfers;\n let newData = [...activities];\n // Fixed selector\n newData = activities.filter((item) => {\n if (item.selectors?.includes(fixedSelector)) {\n return true;\n }\n });\n // Selector sorting\n newData?.sort((a, b) => {\n const sortA = a.selectorItems.find((item) => item.name == fixedSelector).sort;\n const sortB = b.selectorItems.find((item) => item.name == fixedSelector).sort;\n return sortA - sortB;\n });\n setTransferActivties(newData);\n };\n\n const handleSubmit = () => {\n console.log('Submitted data:', data);\n if (confirm('提交?') != true) return;\n addEnquiry(data)\n .then((res) => {\n console.log('Enquiry added:', res);\n setResult(res);\n setData(DEFAULT_DATA);\n })\n .catch((error) => {\n console.error('Error adding enquiry:', error);\n alert('Error adding enquiry:', error);\n });\n };\n\n const Success = () => {\n return (\n 请留意您的邮箱(包括垃圾邮件文件夹)或在”用车询价“页面查看进展。}\n extra={[\n ,\n ,\n ]}\n />\n );\n };\n\n if (result) {\n return ;\n }\n\n return (\n
\n
用车(机场接送)
\n
\n \n
\n \n 提交\n \n
\n
\n {fetching &&
Loading...
}\n

合约商家(节省 50% 车费)

\n
\n \n
\n
\n );\n}\n\nexport default TransferEnquiryHomePage;\n","import { useState, useRef, useCallback } from 'react';\nimport { GetToken } from '@utils/storage';\nimport * as config from '@config';\n\nfunction useTransferEnquiries() {\n const [fetching, setFetching] = useState(false);\n const [enquiries, setEnquiries] = useState();\n const [total, setTotal] = useState(0);\n const abortRef = useRef();\n\n const fetchEnquiries = useCallback(async () => {\n setFetching(true);\n abort();\n abortRef.current = new AbortController();\n try {\n const response = await fetch(`${config.apiURL2}/transfer-enquiries`, {\n headers: { Authorization: `Bearer ${GetToken()}` },\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'An error occurred fetching enquiries');\n }\n const data = await response.json();\n const { enquiries, total } = data;\n setTotal(total);\n setEnquiries(enquiries);\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error fetching enquiries:', error);\n }\n throw error;\n } finally {\n setFetching(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { fetching, enquiries, total, fetchEnquiries, abort };\n}\n\nexport default useTransferEnquiries;\n","!function(t,s){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=s():\"function\"==typeof define&&define.amd?define(s):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_duration=s()}(this,(function(){\"use strict\";var t,s,n=1e3,i=6e4,e=36e5,r=864e5,o=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,a=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:u,months:d,days:r,hours:e,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},c=function(t){return t instanceof g},f=function(t,s,n){return new g(t,n,s.$l)},m=function(t){return s.p(t)+\"s\"},l=function(t){return t<0},$=function(t){return l(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},v=function(t,s){return t?l(t)?{negative:!0,format:\"\"+y(t)+s}:{negative:!1,format:\"\"+t+s}:{negative:!1,format:\"\"}},g=function(){function l(t,s,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),s)return f(t*h[m(s)],this);if(\"number\"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if(\"object\"==typeof t)return Object.keys(t).forEach((function(s){i.$d[m(s)]=t[s]})),this.calMilliseconds(),this;if(\"string\"==typeof t){var e=t.match(a);if(e){var r=e.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var y=l.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(s,n){return s+(t.$d[n]||0)*h[n]}),0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=$(t/u),t%=u,this.$d.months=$(t/d),t%=d,this.$d.days=$(t/r),t%=r,this.$d.hours=$(t/e),t%=e,this.$d.minutes=$(t/i),t%=i,this.$d.seconds=$(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=v(this.$d.years,\"Y\"),s=v(this.$d.months,\"M\"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,\"D\"),e=v(this.$d.hours,\"H\"),r=v(this.$d.minutes,\"M\"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var u=v(o,\"S\"),d=t.negative||s.negative||i.negative||e.negative||r.negative||u.negative,a=e.format||r.format||u.format?\"T\":\"\",h=(d?\"-\":\"\")+\"P\"+t.format+s.format+i.format+a+e.format+r.format+u.format;return\"P\"===h||\"-P\"===h?\"P0D\":h},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||\"YYYY-MM-DDTHH:mm:ss\",i={Y:this.$d.years,YY:s.s(this.$d.years,2,\"0\"),YYYY:s.s(this.$d.years,4,\"0\"),M:this.$d.months,MM:s.s(this.$d.months,2,\"0\"),D:this.$d.days,DD:s.s(this.$d.days,2,\"0\"),H:this.$d.hours,HH:s.s(this.$d.hours,2,\"0\"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,\"0\"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,\"0\"),SSS:s.s(this.$d.milliseconds,3,\"0\")};return n.replace(o,(function(t,s){return s||String(i[t])}))},y.as=function(t){return this.$ms/h[m(t)]},y.get=function(t){var s=this.$ms,n=m(t);return\"milliseconds\"===n?s%=1e3:s=\"weeks\"===n?$(s/h[n]):this.$d[n],s||0},y.add=function(t,s,n){var i;return i=s?t*h[m(s)]:c(t)?t.$ms:f(t,this).$ms,f(this.$ms+i*(n?-1:1),this)},y.subtract=function(t,s){return this.add(t,s,!0)},y.locale=function(t){var s=this.clone();return s.$l=t,s},y.clone=function(){return f(this.$ms,this)},y.humanize=function(s){return t().add(this.$ms,\"ms\").locale(this.$l).fromNow(!s)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get(\"milliseconds\")},y.asMilliseconds=function(){return this.as(\"milliseconds\")},y.seconds=function(){return this.get(\"seconds\")},y.asSeconds=function(){return this.as(\"seconds\")},y.minutes=function(){return this.get(\"minutes\")},y.asMinutes=function(){return this.as(\"minutes\")},y.hours=function(){return this.get(\"hours\")},y.asHours=function(){return this.as(\"hours\")},y.days=function(){return this.get(\"days\")},y.asDays=function(){return this.as(\"days\")},y.weeks=function(){return this.get(\"weeks\")},y.asWeeks=function(){return this.as(\"weeks\")},y.months=function(){return this.get(\"months\")},y.asMonths=function(){return this.as(\"months\")},y.years=function(){return this.get(\"years\")},y.asYears=function(){return this.as(\"years\")},l}(),p=function(t,s,n){return t.add(s.years()*n,\"y\").add(s.months()*n,\"M\").add(s.days()*n,\"d\").add(s.hours()*n,\"h\").add(s.minutes()*n,\"m\").add(s.seconds()*n,\"s\").add(s.milliseconds()*n,\"ms\")};return function(n,i,e){t=e,s=e().$utils(),e.duration=function(t,s){var n=e.locale();return f(t,{$l:n},s)},e.isDuration=c;var r=i.prototype.add,o=i.prototype.subtract;i.prototype.add=function(t,s){return c(t)?p(this,t,1):r.bind(this)(t,s)},i.prototype.subtract=function(t,s){return c(t)?p(this,t,-1):o.bind(this)(t,s)}}}));","import React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { Button, Table, Tag } from 'antd';\nimport dayjs from 'dayjs';\nimport duration from 'dayjs/plugin/duration';\n\n// Add the duration plugin\ndayjs.extend(duration);\n\nfunction index({ enquiries, total, handleTableChange, loading = false, query = {}, onSelect = () => {} }) {\n useEffect(() => {\n console.log(enquiries);\n return () => {};\n }, [enquiries]);\n\n const columns = [\n {\n title: '用车时间',\n key: 'datetime',\n render: (text, record) => (\n
\n
{dayjs(record.enquiry.time).format('YYYY-MM-DD HH:mm')}
\n {record.retTime &&
返程{dayjs(record.enquiry.retTime).format('YYYY-MM-DD HH:mm')}
}\n
\n ),\n },\n {\n title: '起点',\n key: 'from',\n render: (text, record) => (\n
\n
{record.enquiry.pickup}
\n
\n ),\n },\n {\n title: '终点',\n key: 'to',\n render: (text, record) => (\n
\n
{record.enquiry.dropoff}
\n
\n ),\n },\n {\n title: '用车时长',\n key: 'duration',\n render: (text, record) => (\n
\n
{record.enquiry.duration ? `${record.enquiry.duration}小时` : ''}
\n
\n ),\n },\n {\n title: '人数',\n key: 'passengerCount',\n render: (text, record) => (\n
\n
{record.enquiry.passengerCount}人
\n
\n ),\n },\n {\n title: '回复',\n key: 'comments',\n render: (text, record) => (\n
\n
{record.comments?.length}
\n
\n ),\n },\n {\n title: '操作',\n key: 'action',\n render: (text, record) => {\n return (\n \n );\n },\n },\n ];\n\n return (\n
\n record.enquiry.id}\n columns={columns}\n onChange={handleTableChange}\n loading={loading}\n pagination={{\n current: query.page,\n pageSize: query.pageSize,\n total,\n showSizeChanger: true,\n showQuickJumper: true,\n showTotal: (num) => `Total ${num} items`,\n pageSizeOptions: [1, 10, 20, 50, 100],\n }}\n />\n
\n );\n}\n\nindex.propTypes = {\n enquiries: PropTypes.array,\n total: PropTypes.number.isRequired,\n handleTableChange: PropTypes.func.isRequired,\n loading: PropTypes.bool,\n query: PropTypes.object,\n onSelect: PropTypes.func.isRequired,\n};\n\nexport default index;\n","import React, { useEffect, useState } from 'react';\nimport useTransferEnquiries from '@hooks/transfer-enquiry/useTransferEnquiries';\nimport { useNavigate, useSearchParams } from 'react-router-dom';\nimport qs from 'qs';\nimport TransferEnquiriesTable from '@components/transfer/TransferEnquiriesTable';\n\nconst DEFAULT_QUERY = {\n page: 1,\n pageSize: 10,\n};\n\nfunction TransferEnquiriesPage() {\n const { fetching, enquiries, total, fetchEnquiries, abort } = useTransferEnquiries();\n const [query, setQuery] = useState(DEFAULT_QUERY);\n const [searchParams, setSearchParams] = useSearchParams();\n const navigate = useNavigate();\n\n useEffect(() => {\n return () => {\n abort();\n };\n }, []);\n\n useEffect(() => {\n const query = qs.parse(searchParams.toString());\n setQuery(query);\n fetchEnquiries(query);\n }, [searchParams]);\n\n const handleTableChange = (pagination, filters, sorter) => {\n setSearchParams({ ...query, page: pagination.current, pageSize: pagination.pageSize });\n };\n\n const onSelect = (record) => {\n console.log('Selected order:', record);\n navigate(`${record.enquiry.id}`);\n };\n\n return (\n
\n

用车咨询

\n \n
\n );\n}\n\nexport default TransferEnquiriesPage;\n","import { useState, useRef, useCallback } from 'react';\nimport { GetToken } from '@utils/storage';\nimport * as config from '@config';\n\nfunction useTransferEnquiry() {\n const [fetching, setFetching] = useState(false);\n const [enquiry, setEnquiry] = useState();\n const abortRef = useRef();\n\n const fetchEnquiry = useCallback(async (id) => {\n setFetching(true);\n abort();\n abortRef.current = new AbortController();\n try {\n const response = await fetch(`${config.apiURL2}/transfer-enquiries/${id}`, {\n headers: { Authorization: `Bearer ${GetToken()}` },\n signal: abortRef.current.signal,\n });\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'An error occurred fetching enquiry');\n }\n const data = await response.json();\n const { enquiry } = data;\n setEnquiry(enquiry);\n return data;\n } catch (error) {\n if (error.name === 'AbortError') {\n console.log('Request was aborted');\n throw new Error('Request was aborted');\n } else {\n console.error('Error fetching enquiry:', error);\n }\n throw error;\n } finally {\n setFetching(false);\n }\n }, []);\n\n const abort = useCallback(() => {\n if (abortRef.current) {\n abortRef.current.abort();\n }\n }, []);\n\n return { fetching, enquiry, fetchEnquiry, abort };\n}\n\nexport default useTransferEnquiry;\n","import React, { useEffect } from 'react';\nimport { useParams } from 'react-router';\nimport BackBar from '@components/BackBar';\nimport { Descriptions } from 'antd';\nimport useTransferEnquiry from '@hooks/transfer-enquiry/useTransferEnquiry';\nimport dayjs from 'dayjs';\nimport Comments from '../../../components/Comments';\n\nfunction TransferEnquiryDetailPage() {\n const { id } = useParams();\n\n const { fetching, enquiry, fetchEnquiry, abort } = useTransferEnquiry();\n\n useEffect(() => {\n fetchEnquiry(id);\n return () => abort();\n }, [id]);\n\n const getItems = (data) => {\n console.log('Data:', data);\n\n if (!data) {\n return [];\n }\n const items = [];\n items.push(\n ...[\n {\n key: 1,\n label: '提交时间',\n children: dayjs(data.createdAt).format('YYYY-MM-DD HH:mm:ss'),\n },\n {\n key: 2,\n label: '状态',\n children: data.status,\n },\n ]\n );\n\n // by hour\n if (data.duration) {\n items.push(\n ...[\n {\n key: 3,\n label: '起点/终点',\n children: data.pickup,\n },\n {\n key: 4,\n label: '用车时长',\n children: data.duration,\n },\n {\n key: 5,\n label: '乘客人数',\n children: data.passengerCount,\n },\n { key: 6, label: '行李数', children: data.luggageCount },\n ]\n );\n } else {\n items.push(\n ...[\n {\n key: 3,\n label: '起点',\n children: data.pickup,\n },\n {\n key: 4,\n label: '终点',\n children: data.dropoff,\n },\n ]\n );\n items.push(\n ...[\n {\n key: 5,\n label: '乘客数',\n children: data.passengerCount,\n },\n { key: 6, label: '行李数', children: data.luggageCount },\n ]\n );\n items.push({\n key: 7,\n label: '用车时间',\n children: data.time,\n });\n if (data.returnTime) {\n items.push({\n key: 8,\n label: '返程时间',\n children: data.returnTime,\n });\n }\n }\n console.log('Items:', items);\n\n return items;\n };\n\n return (\n
\n \n

用车咨询详情

\n {fetching &&
Loading...
}\n \n {enquiry && }\n
\n );\n}\n\nexport default TransferEnquiryDetailPage;\n","import React from 'react';\nimport { Routes, Route } from 'react-router-dom';\nimport { Result } from 'antd';\nimport TransfersHomePage from './TransfersHomePage';\nimport TransfersVehiclesPage from './TransfersVehiclesPage';\nimport TransfersBookingPage from './TransfersBookingPage';\nimport TransfersOrdersPage from './TransfersOrdersPage';\nimport TransfersOrderDetailPage from './TransfersOrderDetailPage';\nimport TransferEnquiryHomePage from './enquiry/TransferEnquiryHomePage';\nimport TransferEnquiriesPage from './enquiry/TransferEnquiriesPage';\nimport TransferEnquiryDetailPage from './enquiry/TransferEnquiryDetailPage';\n\nfunction index() {\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\nexport default index;\n"],"names":["DatePickerField","label","value","isOpen","setIsOpen","onSelect","defaultMonth","jsxs","styles_input","jsx","MdCalendarToday","dayjs","Floated","DayPicker","zhCN","PropTypes","TimePickerField","name","onChange","MdAccessTime","useMapsAutocomplete","fetching","setFetching","useState","fetched","setFetched","predictions","setPredictions","abortRef","useRef","autoComplete","useCallback","input","abort","response","config.apiURL2","GetToken","data","error","useMapsPlaceDetails","setData","fetchPlaceDetails","placeID","GeoPicker","active","placeholder","defaultValue","defaultResults","rest","ref","setValue","debounceAutoComplete","useDebounce","results","setResults","useEffect","handleSearch","flushResults","e","err","Results","Loader","styles","MdSearchOff","MdSearch","item","index","fetchingDetails","abortDetails","handleOnClick","formattedAddress","location","description","MdOutlineLocationOn","LoadingOutlined","LocationField","Icon","QtyPickerField","inputRef","k_transfer_form_data","HOURS_ARRAY","DEFAULT_DATA","TransferForm","openCalendar","setOpenCalendar","openRetCalendar","setOpenRetCalendar","openPickup","setOpenPickup","openDropoff","setOpenDropoff","handleOnChange","prev","handleLocationSelect","type","locationData","handleByHours","handleChangeReturnTrip","returnTrip","handleDateSelect","date","handleRetDateSelect","renderFromLoation","MdLocationOn","handleSwap","MdGroup","MdOutlineLuggage","MdOutlineSwapHoriz","MdHourglassTop","Fragment","useRideQuote","submitting","setSubmitting","handleRideQuote","req","quote","Vehicles","DevMode","Button","TransfersVehiclesPage","searchParams","setSearchParams","useSearchParams","navigate","useNavigate","parsedObj","qs","handleQuote","res","handleOnSelect","BackBar","Skeleton","useRideCreateOrder","createRideOrder","TransferPolicy","initialValues","TransfersBookingPage","useLocation","request","vehicle","form","Form","total","setTotal","success","setSuccess","ScrollToTop","meetAndGreet","onFieldsChange","changedFields","allFields","onFinish","values","passenger","Result","Spin","Input","Select","Radio","useRideOrders","orders","setOrders","fetchOrders","page","pageSize","query","q","RemoveEmpty","queryString","handleTableChange","loading","columns","text","record","Tag","Table","num","DEFAULT_QUERY","TransfersOrdersPage","setQuery","pagination","filters","sorter","TransferOrdersTable","useRideOrder","order","setOrder","fetchOrder","id","minutesToText","minutes","hours","remainingMinutes","formatYYYYMMDD","dateString","formatHHMM","useRidePaxUpdate","updating","setUpdating","updateRidePax","title","pax","editWelcomeSign","callback","open","setOpen","handleUpdate","groupStyle","EditOutlined","Modal","Title","Text","Typography","TransferOrderDetail","refresh","Card","Row","Col","Descriptions","TransferPaxEditModal","_a","_b","_c","_d","_e","_f","_g","CarOutlined","_h","useRideCancelOrder","cancelling","setCancelling","cancelRideOrder","TransfersOrderDetailPage","useParams","abortCancel","handleCancel","reply","useTransferEnquiryPost","adding","setAdding","addEnquiry","TransferEnquiryHomePage","jsonString","inintData","activities","useSelector","state","transferActivties","setTransferActivties","result","setResult","filterActivities","fixedSelector","Selector","newData","a","b","sortA","sortB","handleSubmit","Success","ActivitiesGrid","useTransferEnquiries","enquiries","setEnquiries","fetchEnquiries","t","s","module","this","n","i","r","o","u","d","h","c","g","f","m","l","$","y","v","p","duration","TransferEnquiriesPage","TransferEnquiriesTable","useTransferEnquiry","enquiry","setEnquiry","fetchEnquiry","TransferEnquiryDetailPage","getItems","items","Comments","Routes","Route"],"mappings":"ihDASMA,GAAkB,CAAC,CAAE,MAAAC,EAAO,MAAAC,EAAO,OAAAC,EAAQ,UAAAC,EAAW,SAAAC,EAAU,aAAAC,CAAA,IAClEC,EAAAA,KAAC,MAAI,CAAA,UAAWC,EAAa,gBACzB,SAAA,CAACC,EAAAA,IAAAC,GAAA,CAAgB,U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