{"version":3,"file":"index-544631c6.js","sources":["../src/components/trip/TripSegment.jsx","../src/pages/trip/MyTripsPage.jsx","../src/pages/trip/TripPage.jsx","../src/pages/trip/TripTemplatesPage.jsx","../src/pages/trip/HomePage.jsx","../src/pages/trip/index.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport styles from '@styles/TripSegment.module.css';\nimport { Label } from 'semantic-ui-react';\nimport { DestinationName } from '@utils/constants';\n\nfunction TripSegment({ trip = {}, handleOnView, handleOnCopy, handleOnDelete }) {\n const gotoTrip = (tripID) => {\n if (!!handleOnView) {\n handleOnView(tripID);\n }\n };\n return (\n
\n
\n
\n {trip.userDefined} {!!trip.public && }\n
\n
\n {!!handleOnView && (\n \n )}\n\n {!!handleOnCopy && (\n <>\n
\n \n \n )}\n\n {!!handleOnDelete && (\n <>\n
\n handleOnDelete(trip.id)}\n title=\"删除\"\n >\n 删除\n \n \n )}\n
\n
\n {trip.total > 0 &&
参考价格: $A{trip.total}
}\n {!!trip.notes &&
{trip.notes}
}\n\n {trip?.destinations?.length > 0 ? (\n
\n {trip.destinations.map((elem, index) => {\n return (\n
\n
{DestinationName(elem.name)}
\n
{elem?.plays?.length > 0 && `(${elem.plays.length} 个活动)`}
\n
\n );\n })}\n
\n ) : (\n
请点击“查看”,添加目的地和体验
\n )}\n
\n );\n}\n\nTripSegment.propTypes = {\n trip: PropTypes.shape({}).isRequired,\n handleOnView: PropTypes.func,\n handleOnDelete: PropTypes.func,\n handleOnCopy: PropTypes.func,\n};\n\nexport default TripSegment;\n","import React, { useEffect, useState } from 'react';\nimport styles from '@styles/TripsPage.module.css';\nimport axios from 'axios';\nimport * as config from '@config';\nimport { Dimmer, Loader } from 'semantic-ui-react';\nimport { useNavigate } from 'react-router';\nimport TripSegment from '@components/trip/TripSegment';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { fetchTrips } from '@features/trips/tripsSlice';\nimport BackBar from '@components/BackBar';\nimport { GetToken } from '@utils/storage';\n\nfunction MyTripsPage(props) {\n const trips = useSelector((state) => state.trips.data);\n const fetching = useSelector((state) => state.trips.fetching);\n const [submitting, setSubmitting] = useState(false);\n\n const dispatch = useDispatch();\n const navigate = useNavigate();\n\n const controller = new AbortController();\n\n useEffect(() => {\n return () => {\n if (submitting) controller.abort();\n };\n }, []);\n\n const handleOnCreate = () => {\n const req = {};\n const url = new URL(`${config.apiURL}/trips`);\n setSubmitting(true);\n axios\n .post(url, req, {\n signal: controller.signal,\n headers: { Authorization: `Bearer ${GetToken()}` },\n })\n .then((res) => {\n // console.log(res.data);\n dispatch(fetchTrips());\n const id = res.data.id;\n if (id) {\n navigate(id);\n }\n })\n .catch((err) => {\n let msg = err.toString();\n if (err.response?.data?.error) {\n console.log('***', err.response.data.error);\n msg = err.response.data.error;\n }\n console.error(msg);\n })\n .finally(() => {\n setSubmitting(false);\n });\n };\n\n const handleDelete = (id) => {\n if (confirm('确定删除整个行程?') != true) return;\n setSubmitting(true);\n const url = new URL(`${config.apiURL}/trip/${id}`);\n axios\n .delete(url, {\n signal: controller.signal,\n headers: { Authorization: `Bearer ${GetToken()}` },\n })\n .then((res) => {\n const reply = res.data.reply;\n if (reply) {\n alert(reply);\n }\n dispatch(fetchTrips());\n })\n .catch((err) => {\n let msg = err.toString();\n if (err.response?.data?.error) {\n console.log('***', err.response.data.error);\n msg = err.response.data.error;\n }\n console.error(msg);\n })\n .finally(() => {\n setSubmitting(false);\n });\n };\n\n const gotoTrip = (id, hash) => {\n navigate(`${id}`);\n };\n\n return (\n <>\n \n
\n
\n
\n 我的行程 \n
\n \n
\n
\n {trips?.map((item, index) => {\n return (\n \n );\n })}\n
\n \n \n \n
\n \n );\n}\n\nexport default MyTripsPage;\n","import React, { useEffect, useState } from 'react';\nimport { useNavigate, useParams } from 'react-router';\nimport BackBar from '@components/BackBar';\nimport axios from 'axios';\nimport * as config from '@config';\nimport styles from '@styles/TripPage.module.css';\nimport { MdAddCircleOutline, MdOutlineContentCopy } from 'react-icons/md';\nimport { Modal, Button, Icon, Form, TextArea, Dimmer, Loader, Checkbox, Popup, Label } from 'semantic-ui-react';\nimport { SelectorCityOptions } from '@utils/constants';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { fetchTrips } from '@features/trips/tripsSlice';\nimport TripDestination from '@components/trip/TripDestination';\nimport { DestinationName } from '@utils/constants';\nimport { GetToken, GetUserInfo } from '@utils/storage';\nimport { CopyToClipboard } from '../../utils/utils';\nimport { App } from 'antd';\n\nconst defaultUserDefinedData = {\n userDefined: '',\n notes: '',\n public: false,\n};\n\nfunction TripPage(props) {\n const { tripID } = useParams();\n const dispatch = useDispatch();\n const navigate = useNavigate();\n const activities = useSelector((state) => state.activities.data);\n const trips = useSelector((state) => state.trips.data);\n const fetching = useSelector((state) => state.trips.fetching);\n const [data, setData] = useState({}); //trip\n const [dstPickerActive, setDstPickerActive] = useState(false);\n const [userDefinedActive, setUserDefinedActive] = useState(false);\n const [userDefinedData, setUserDefinedData] = useState(defaultUserDefinedData);\n const [submitting, setSubmitting] = useState(false);\n const [sortMode, setSortMode] = useState(false);\n const [compact, setCompact] = useState(false);\n const [exportTxtActive, setExportTxtActive] = useState(false);\n const [exportLinkActive, setExportLinkActive] = useState(false);\n const { message } = App.useApp();\n\n const loginInfo = GetUserInfo();\n\n const controller = new AbortController();\n\n useEffect(() => {\n if (tripID) {\n initalFetch();\n }\n return () => {\n if (fetching || submitting) controller.abort();\n };\n }, [tripID, trips]);\n\n useEffect(() => {\n // Reset setUserDefinedData\n if (userDefinedActive == true) {\n setUserDefinedData({\n userDefined: data.userDefined,\n notes: data.notes,\n public: data.public,\n });\n }\n }, [userDefinedActive]);\n\n const initalFetch = () => {\n const trip = trips.find((item) => item.id == tripID);\n if (!!trip) {\n setData(trip);\n setUserDefinedData({ userDefined: trip.userDefined, notes: trip.notes, public: trip.public });\n } else {\n fetchData();\n }\n };\n\n const fetchData = () => {\n dispatch(fetchTrips()).then((res) => {\n const trips = res.payload.trips;\n const trip = trips.find((item) => item.id == tripID);\n if (!!trip) {\n setData(trip);\n setUserDefinedData({ userDefined: trip.userDefined, notes: trip.notes, public: trip.public });\n } else {\n alert('没有找到行程');\n navigate(-1);\n }\n });\n };\n\n const handleOnCreate = (name) => {\n setSubmitting(true);\n const req = {\n tripID: data.id,\n names: [name],\n };\n const url = new URL(`${config.apiURL}/destinations`);\n axios\n .post(url, req, {\n signal: controller.signal,\n headers: { Authorization: `Bearer ${GetToken()}` },\n })\n .then((res) => {\n setDstPickerActive(false);\n fetchData();\n })\n .catch((err) => {\n let msg = err.toString();\n if (err.response?.data?.error) {\n console.log('***', err.response.data.error);\n msg = err.response.data.error;\n }\n console.error(msg);\n })\n .finally(() => {\n setSubmitting(false);\n });\n };\n\n const handleOnChange = (e, { name, value, checked }) => {\n if (name == 'public') {\n value = checked;\n }\n // console.log({ [name]: value });\n setUserDefinedData((prev) => {\n return { ...prev, [name]: value };\n });\n };\n\n const handleOnUpdate = () => {\n axios\n .put(`${config.apiURL}/trip/${tripID}`, userDefinedData, {\n signal: controller.signal,\n headers: { Authorization: `Bearer ${GetToken()}` },\n })\n .then((res) => {\n fetchData();\n setUserDefinedActive(false);\n })\n .catch((err) => {\n let msg = err.toString();\n if (err.response?.data?.error) {\n console.log('***', err.response.data.error);\n msg = err.response.data.error;\n }\n window.alert(msg);\n })\n .finally(() => {});\n };\n\n const summary = () => {\n return (\n
\n
价格: {!!data.total && `A$${data.total}`}
\n {/*
\n 总佣金: \n
*/}\n
\n );\n };\n\n //Switch to sorting mode\n const handleSortModeChange = () => {\n setSortMode((prev) => !prev);\n };\n\n const handleCompactChange = () => {\n setCompact((prev) => !prev);\n };\n\n const handleOnDragStart = (e, index) => {\n e.dataTransfer.setData('index', index);\n };\n\n const handleOnDragOver = (e) => {\n e.preventDefault();\n };\n\n const handleOnDrop = (e, index) => {\n e.preventDefault();\n const draggedIndex = e.dataTransfer.getData('index');\n console.log(draggedIndex, 'dropped on', index);\n if (draggedIndex == index) {\n console.warn('Same position');\n return;\n }\n // console.log('before', articles);\n const newData = [...data.destinations];\n const dragged = newData[draggedIndex];\n newData.splice(draggedIndex, 1); //remove dragged one\n newData.splice(index, 0, dragged);\n // console.log('after', newData);\n const ids = newData.map((item) => item.id);\n handleUpdateSort(ids);\n };\n\n const handleUpdateSort = (ids) => {\n // console.log(ids);\n var req = { ids: ids };\n setSubmitting(true);\n axios\n .patch(`${config.apiURL}/destinations`, req, {\n signal: controller.signal,\n headers: { Authorization: `Bearer ${GetToken()}` },\n })\n .then((res) => {\n fetchData();\n })\n .catch((err) => {\n let msg = err.toString();\n if (err.response?.data?.error) {\n console.log('***', err.response.data.error);\n msg = err.response.data.error;\n }\n window.alert(msg);\n })\n .finally(() => {\n setSubmitting(false);\n });\n };\n\n const TripTextSummary = () => {\n return (\n
\n
{data.userDefined}
\n {data.destinations.map((destination, i) => {\n return (\n
\n
\n {DestinationName(destination.name)}\n
\n
\n {destination?.plays?.map((play, j) => {\n const activity = activities.find((item) => item.id == play.activityID);\n return (\n
\n {j + 1}). {activity.name} {activity.nameEN && `(${activity.nameEN})`}\n
\n );\n })}\n
\n
\n );\n })}\n
\n );\n };\n\n const Order = () => {\n let counter = 0;\n data.destinations?.forEach((dst) => {\n counter = counter + dst.plays.length ?? 0;\n });\n if (counter > 0 && data.public == false) {\n return (\n
\n
\n 生成报价单 \n
\n
\n );\n } else {\n <>;\n }\n };\n\n const handleGenerateOrder = () => {\n if (confirm('生成报价单?') != true) {\n return;\n }\n setSubmitting(true);\n axios\n .post(\n `${config.apiURL}/trip/${tripID}/order`,\n {},\n {\n signal: controller.signal,\n headers: { Authorization: `Bearer ${GetToken()}` },\n }\n )\n .then((res) => {\n dispatch(fetchTrips());\n const orderID = res.data.orderID;\n if (orderID) {\n navigate(`/dashboard/orders/${orderID}`, { replace: true });\n }\n })\n .catch((err) => {\n let msg = err.toString();\n if (err.response?.data?.error) {\n console.log('***', err.response.data.error);\n msg = err.response.data.error;\n }\n window.alert(msg);\n })\n .finally(() => {\n setSubmitting(false);\n });\n };\n\n return (\n
\n \n
\n
\n {data.userDefined} {!!data.public && } \n
\n
\n setUserDefinedActive(true)}\n title=\"修改名称和备注\"\n >\n 修改名称和备注\n \n \n \n setExportTxtActive(false)} open={exportTxtActive} closeIcon>\n {data.userDefined}\n \n \n \n \n \n
\n \n \n
\n
\n
{data.notes}
\n setUserDefinedActive(false)}\n closeOnDimmerClick={false}\n closeIcon\n >\n 自定义信息\n \n
\n \n \n \n \n \n {loginInfo.email.startsWith('guxkai') && (\n \n \n 设置为模版\n }\n />\n \n }\n onChange={handleOnChange}\n />\n \n )}\n \n
\n \n \n \n \n \n\n {data.destinations?.length > 0 && summary()}\n
\n
\n \n \n
\n\n {data.destinations?.map((item, index) => {\n return (\n \n );\n })}\n
\n
\n
\n
setDstPickerActive(true)}>\n 添加目的地\n
\n
\n \n
\n\n setDstPickerActive(false)}\n closeOnDimmerClick={false}\n closeIcon\n >\n 选择观光地点\n \n
\n {SelectorCityOptions.map((item, index) => {\n return (\n handleOnCreate(item.value)}\n >\n {item.name}\n
\n );\n })}\n
\n \n \n \n \n \n \n \n \n
\n );\n}\n\nTripPage.propTypes = {};\n\nexport default TripPage;\n","import React, { useEffect, useState } from 'react';\nimport styles from '@styles/TripsPage.module.css';\nimport axios from 'axios';\nimport * as config from '@config';\nimport { Dimmer, Loader } from 'semantic-ui-react';\nimport { useNavigate } from 'react-router';\nimport TripSegment from '@components/trip/TripSegment';\nimport BackBar from '@components/BackBar';\nimport { GetToken } from '../../utils/storage';\n\nfunction TripTemplatesPage(props) {\n const [fetching, setFetching] = useState(false);\n const [data, setData] = useState([]); //trips\n const [submitting, setSubmitting] = useState(false);\n\n const navigate = useNavigate();\n\n const controller = new AbortController();\n\n useEffect(() => {\n fetchData();\n return () => {};\n }, []);\n\n const fetchData = () => {\n setFetching(true);\n const url = new URL(`${config.apiURL}/trips`);\n url.searchParams.set('public', true);\n axios\n .get(url, {\n signal: controller.signal,\n headers: { Authorization: `Bearer ${GetToken()}` },\n })\n .then((res) => {\n const trips = res.data.trips;\n if (trips) {\n setData(trips);\n }\n })\n .catch((err) => {\n let msg = err.toString();\n if (err.response?.data?.error) {\n console.log('***', err.response.data.error);\n msg = err.response.data.error;\n }\n console.error(msg);\n })\n .finally(() => {\n setFetching(false);\n });\n };\n\n const gotoTrip = (id) => {\n navigate(id);\n };\n\n const handleOnCopy = (tripID) => {\n const url = new URL(`${config.apiURL}/trip/${tripID}/copy`);\n setSubmitting(true);\n axios\n .post(\n url,\n {},\n {\n signal: controller.signal,\n headers: { Authorization: `Bearer ${GetToken()}` },\n }\n )\n .then((res) => {\n // goto copied trip\n const reply = res.data.reply;\n if (reply) {\n alert('已复制到“我的行程”');\n }\n const tripID = res.data.tripID;\n if (tripID) {\n navigate(`../my-trips/${tripID}`, { replace: true });\n }\n })\n .catch((err) => {\n let msg = err.toString();\n if (err.response?.data?.error) {\n console.log('***', err.response.data.error);\n msg = err.response.data.error;\n }\n console.error(msg);\n })\n .finally(() => {\n setSubmitting(false);\n });\n };\n\n return (\n <>\n \n\n
\n
\n
行程模板
\n
\n
\n {data.map((item, index) => {\n return (\n \n );\n })}\n
\n \n \n \n
\n \n );\n}\n\nexport default TripTemplatesPage;\n","import React from 'react';\nimport styles from '@styles/TripsHomePage.module.css';\nimport { Icon } from 'semantic-ui-react';\nimport { Link } from 'react-router-dom';\n\nfunction HomePage() {\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
1
\n
\n 选择策划好的旅程规划\n
\n

每一次旅行都是由专家针对不同目的地和主题精心策划的。

\n
\n
\n
\n
\n
2
\n
\n 让它成为你自己的\n
\n

混合搭配旅程项目或复制整个行程。让规划行程变得快速而简单。

\n
\n
\n
\n
\n
3
\n
{' '}\n 预订并完成\n
\n

在一个地方预订所有景点。

\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n );\n}\n\nexport default HomePage;\n","import React from 'react';\nimport { Route, Routes } from 'react-router';\nimport MyTripsPage from './MyTripsPage';\nimport TripPage from './TripPage';\nimport TripTemplatesPage from './TripTemplatesPage';\nimport HomePage from './HomePage';\nimport { useSelector } from 'react-redux';\nimport { Dimmer, Loader } from 'semantic-ui-react';\n\nfunction Index() {\n const fetching = useSelector((state) => state.activities.fetching);\n return (\n <>\n \n } />\n } />\n } />\n } />\n } />\n \n \n \n \n \n );\n}\n\nexport default Index;\n"],"names":["TripSegment","trip","handleOnView","handleOnCopy","handleOnDelete","gotoTrip","tripID","jsxs","styles","jsx","Label","Fragment","_a","elem","index","DestinationName","PropTypes","MyTripsPage","props","trips","useSelector","state","fetching","submitting","setSubmitting","useState","dispatch","useDispatch","navigate","useNavigate","controller","useEffect","handleOnCreate","req","url","config.apiURL","axios","GetToken","res","fetchTrips","id","err","msg","_b","handleDelete","reply","hash","BackBar","Loader","item","Dimmer","defaultUserDefinedData","TripPage","useParams","activities","data","setData","dstPickerActive","setDstPickerActive","userDefinedActive","setUserDefinedActive","userDefinedData","setUserDefinedData","sortMode","setSortMode","compact","setCompact","exportTxtActive","setExportTxtActive","exportLinkActive","setExportLinkActive","message","App","loginInfo","GetUserInfo","initalFetch","fetchData","name","handleOnChange","e","value","checked","prev","handleOnUpdate","summary","handleSortModeChange","handleCompactChange","handleOnDragStart","handleOnDragOver","handleOnDrop","draggedIndex","newData","dragged","ids","handleUpdateSort","TripTextSummary","destination","i","play","j","activity","Order","counter","dst","handleGenerateOrder","Icon","orderID","Modal","Button","config.agancyURL","CopyToClipboard","Form","TextArea","Checkbox","Popup","TripDestination","MdAddCircleOutline","SelectorCityOptions","TripTemplatesPage","setFetching","HomePage","Link","Index","Routes","Route"],"mappings":"s/BAMA,SAASA,EAAY,CAAE,KAAAC,EAAO,CAAA,EAAI,aAAAC,EAAc,aAAAC,EAAc,eAAAC,GAAkB,OACtE,M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