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CF,EAAAA,EAAAA,KAAA,OAAKI,UAAU,aACfJ,EAAAA,EAAAA,KAAA,OACEI,UAAU,SACVgE,MAAO,CACL2B,gBAAiB,+CAGrB5F,EAAAA,EAAAA,MAAA,OAAKC,UAAU,iBAAgBF,SAAA,EAC7BF,EAAAA,EAAAA,KAAA,MAAAE,SAAI,4BACJF,EAAAA,EAAAA,KAAA,KAAAE,SAAG,gTAUXF,EAAAA,EAAAA,KAACgG,EAAY,QAEN,C","sources":["pages/OrderSection.jsx","pages/OrderPage.jsx"],"sourcesContent":["import React, { useState, useEffect, useRef, Fragment } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { placeCartActions } from \"../store/placeCart-slice\";\r\nimport { orderActions } from \"../store/order-slice\";\r\nimport { uiActions } from \"../store/ui-slice\";\r\nimport { SelectBox } from \"devextreme-react/select-box\";\r\n\r\n// import './QuickOrderV2.css'\r\n\r\nconst customItemRender = (data) => {\r\n return (\r\n \r\n
\r\n \r\n

{data.title}

\r\n
\r\n
\r\n );\r\n};\r\n\r\nconst OrderSection = (props) => {\r\n const dispatch = useDispatch();\r\n const history = useNavigate();\r\n const adultNumberRef = useRef();\r\n const childrenNumberRef = useRef();\r\n\r\n const [selectedOption, setSelectedOption] = useState(null);\r\n\r\n const currentSelected = useSelector(\r\n (state) => state.placeCart.quickOrderObject\r\n );\r\n const { details } = currentSelected;\r\n const detailAdult = details.find((el) => el.custommerTypeId === 1);\r\n const detailChildren = details.find((el) => el.custommerTypeId === 2);\r\n\r\n const {\r\n danhsachDiaDiemGiaVe: danhsachDiaDiem,\r\n danhsachTuyenDiaDiemGiaVe: danhsachTuyen,\r\n } = useSelector((state) => state.diadiem);\r\n\r\n useEffect(() => {\r\n if (danhsachDiaDiem[0]) {\r\n dispatch(\r\n placeCartActions.initQuickOrder({\r\n selectedPlace: danhsachDiaDiem[0],\r\n })\r\n );\r\n\r\n dispatch(orderActions.resetOrder());\r\n setSelectedOption(danhsachDiaDiem[0].id);\r\n }\r\n }, [danhsachDiaDiem]);\r\n\r\n const adultAddHandler = (evt) => {\r\n if (!currentSelected) return;\r\n dispatch(\r\n // placeCartActions.increaseAdultQuantity({ placeId: currentSelected.id })\r\n placeCartActions.quickOrderTuningQuantity({\r\n count: 1,\r\n custommerTypeId: 1,\r\n })\r\n );\r\n };\r\n\r\n const adultMinusHanlder = (evt) => {\r\n if (!currentSelected) return;\r\n // if (currentSelected.adultQuantity === 0) return;\r\n const detail = details.find((el) => el.custommerTypeId === 1);\r\n if (!detail) return;\r\n if (detail.quantity === 0) return;\r\n dispatch(\r\n // placeCartActions.decreaseAdultQuantity({ placeId: currentSelected.id })\r\n placeCartActions.quickOrderTuningQuantity({\r\n count: -1,\r\n custommerTypeId: 1,\r\n })\r\n );\r\n };\r\n\r\n const childrenAddHandler = (evt) => {\r\n if (!currentSelected) return;\r\n dispatch(\r\n // placeCartActions.increaseChildrenQuantity({ placeId: currentSelected.id })\r\n placeCartActions.quickOrderTuningQuantity({\r\n count: 1,\r\n custommerTypeId: 2,\r\n })\r\n );\r\n };\r\n\r\n const childrenMinusHanlder = (evt) => {\r\n if (!currentSelected) return;\r\n // if (currentSelected.childrenQuantity === 0) return;\r\n const detail = details.find((el) => el.custommerTypeId === 2);\r\n if (!detail) return;\r\n if (detail.quantity === 0) return;\r\n dispatch(\r\n // placeCartActions.decreaseChildrenQuantity({ placeId: currentSelected.id })\r\n placeCartActions.quickOrderTuningQuantity({\r\n count: -1,\r\n custommerTypeId: 2,\r\n })\r\n );\r\n };\r\n\r\n const selectDiaDiemhandler = (val) => {\r\n const selectedPlace = danhsachDiaDiem.find((el) => el.id === val);\r\n const adultNumber = +adultNumberRef.current.value;\r\n const childrenNumber = +childrenNumberRef.current.value;\r\n dispatch(\r\n placeCartActions.replaceCartItem({\r\n selectedPlace,\r\n adultCount: adultNumber,\r\n childrenCount: childrenNumber,\r\n })\r\n );\r\n };\r\n\r\n const selectedPlaceHandler = (evt) => {\r\n // const selectedValue = evt.target.value\r\n setSelectedOption(evt);\r\n selectDiaDiemhandler(evt.value);\r\n };\r\n\r\n const quickorderSelectPlaceHandler = (evt) => {\r\n // console.log(evt)\r\n setSelectedOption(evt.selectedItem.id);\r\n selectDiaDiemhandler(evt.selectedItem.id);\r\n };\r\n\r\n const submitHandler = (evt) => {\r\n evt.preventDefault();\r\n dispatch(uiActions.setOrderType(true));\r\n history(\"/xac-nhan-dat-ve\");\r\n };\r\n\r\n const changeAdultQuantityHandler = (evt) => {\r\n // console.log(evt.target.value)\r\n dispatch(\r\n placeCartActions.quickOrderChangeQuantity({\r\n count: +evt.target.value,\r\n custommerTypeId: 1,\r\n })\r\n );\r\n };\r\n\r\n const changeChildQuantityHandler = (evt) => {\r\n dispatch(\r\n placeCartActions.quickOrderChangeQuantity({\r\n count: +evt.target.value,\r\n custommerTypeId: 2,\r\n })\r\n );\r\n };\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \r\n

Chào mừng đến với Huế!

\r\n

Đặt vé tham quan trực tuyến thuận tiện, nhanh chóng.

\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default OrderSection;\r\n","import React, { Fragment, useContext } from \"react\";\r\nimport Slider from \"react-slick\";\r\nimport OrderSection from \"./OrderSection\";\r\nimport AuthContext from \"../contexts/JWTAuthContext\";\r\nimport { useEffect } from \"react\";\r\nimport { publish } from \"../customEvents\";\r\n\r\nconst OrderPage = (props) => {\r\n const { changeContext } = useContext(AuthContext);\r\n\r\n useEffect(() => {\r\n publish(\"changeCurrentPage\");\r\n changeContext(false);\r\n }, []);\r\n return (\r\n \r\n {/* */}\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n

Đại Nội Huế

\r\n

\r\n Người ta đến Huế không chỉ thưởng thức những cảnh đẹp lãng\r\n mạn, thơ mộng mà nơi đây còn lưu giữ vết tích Đại Nội Huế,\r\n chốn cung đình xưa cũ của triều đại nhà Nguyễn ở Việt Nam.\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Bia Quốc Học

\r\n

\r\n Bia Quốc Học tọa lạc giữa một ngoại cảnh thiên nhiên thơ mộng,\r\n nhất là phía sau có dòng sông Hương trong xanh êm ả, giữa một\r\n không gian kiến trúc độc đáo.\r\n

\r\n
\r\n \r\n \r\n \r\n {/* */}\r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default OrderPage;\r\n"],"names":["customItemRender","data","_jsx","Fragment","children","_jsxs","className","src","title","props","dispatch","useDispatch","history","useNavigate","adultNumberRef","useRef","childrenNumberRef","selectedOption","setSelectedOption","useState","currentSelected","useSelector","state","placeCart","quickOrderObject","details","detailAdult","find","el","custommerTypeId","detailChildren","danhsachDiaDiemGiaVe","danhsachDiaDiem","danhsachTuyenDiaDiemGiaVe","danhsachTuyen","diadiem","useEffect","placeCartActions","initQuickOrder","selectedPlace","orderActions","resetOrder","id","selectDiaDiemhandler","val","adultNumber","current","value","childrenNumber","replaceCartItem","adultCount","childrenCount","onSubmit","evt","preventDefault","uiActions","setOrderType","SelectBox","dataSource","displayExpr","valueExpr","searchEnabled","onSelectionChanged","selectedItem","itemRender","onClick","detail","quantity","quickOrderTuningQuantity","count","style","backgroundColor","color","ref","type","step","min","onChange","quickOrderChangeQuantity","target","changeContext","useContext","AuthContext","publish","display","Slider","dots","arrows","fade","autoplay","autoplaySpeed","pauseOnHover","infinite","speed","slidesToShow","slidesToScroll","lazyLoad","backgroundImage","OrderSection"],"sourceRoot":""}