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,WAMdjD,EAAAA,EAAAA,KAACrC,EAAAA,EAAI,CAACiQ,GAAI,CAAC3P,SAAU,QAASiB,YAAaN,EAAAA,GAAQC,KAAMY,YAAa,GAAGiO,UACvE1N,EAAAA,EAAAA,KAAC2R,EAAW,CACVzO,QAAQ,EACRE,QAASgG,EACTnG,KAAMA,OAMlB,I","sources":["app/utils/isDraggable.ts","components/StyledModalCard.tsx","components/formInput/InputsDark.tsx","components/formInput/InputsLight.tsx","components/hooks/useWindowDimensions.tsx","pages/booking/BookingForm.tsx","pages/booking/BookingModal.tsx"],"sourcesContent":["\nconst isTextInput = (el: Element | null) => {\n if (el==null || el == undefined)\n return false;\n\n else\n return ['INPUT', 'TEXTAREA', 'BUTTON', 'IMAGE'].includes(el?.tagName);\n}\n\nconst isDraggable = (e: any) => {\n if (isTextInput(e.target) || isTextInput(document.activeElement))\n return false;\n}\n\nexport default isDraggable;\n","import { Card, styled } from \"@mui/material\";\n\n\nconst StyledModalCard = styled(Card)(({ theme }) => ({\n top: \"50%\",\n left: \"50%\",\n maxWidth: 800,\n minWidth: 300,\n position: \"absolute\",\n padding: \"1.5rem\",\n boxShadow: theme.shadows[2],\n transform: \"translate(-50%, -50%)\",\n width: \"100%\",\n outline: \"none\",\n border: \"1px solid \" + theme.palette.primary.main,\n [theme.breakpoints.down(\"md\")]: { width: \"95%\" },\n}));\n\n\nexport default StyledModalCard;\n","import { InputBase, MenuItem, styled, TextField, TextFieldProps } from \"@mui/material\";\nimport { FC } from \"react\";\nimport DatePicker from \"react-datepicker\";\n\n\n// Text Inputs\nconst StyledDarkTextField = styled(TextField)(({ theme }) => ({\n \"&:hover, & .MuiOutlinedInput-root:hover\": {\n \"& .MuiOutlinedInput-notchedOutline\": {\n borderColor: theme.palette.primary.main,\n },\n },\n \"& .MuiOutlinedInput-input\": {\n fontSize: 12,\n minHeight: 35,\n fontWeight: 500,\n borderRadius: \"8px\",\n padding: \"0px 1rem\",\n color: theme.palette.text.primary,\n },\n \"& .MuiOutlinedInput-notchedOutline\": {\n borderRadius: \"8px\",\n borderColor: \"transparent\",\n borderWidth: \"1px !important\",\n },\n \"& .MuiInputBase-root\": {\n backgroundColor:\n theme.palette.mode === \"light\"\n ? theme.palette.text.secondary\n : theme.palette.divider,\n },\n}));\n\nexport const DarkTextField: FC = (props) => {\n return ;\n};\n\n\n// Select Input (Dropdown)\nexport const DarkMenuItem = styled(MenuItem)(({ theme }) => ({\n fontSize: 12,\n fontWeight: 500,\n color: theme.palette.text.disabled,\n}));\n \nexport const DarkStyledSelectInput = styled(InputBase)(({ theme }) => ({\n height: 35,\n fontSize: 12,\n padding: \"0 1rem\",\n borderRadius: \"8px\",\n color: theme.palette.text.primary,\n backgroundColor:\n theme.palette.mode === \"light\"\n ? theme.palette.secondary[300]\n : theme.palette.divider,\n \"& .MuiSvgIcon-root\": { color: theme.palette.text.disabled },\n}));\n\n\nexport const DarkStyledDatePicker = styled(DatePicker)(({ theme }) => ({\n height: 35,\n //fontSize: 12, \n width: \"215%\",\n //padding: \"0 1rem\",\n borderRadius: \"8px\",\n color: theme.palette.text.primary,\n backgroundColor:\n theme.palette.mode === \"light\"\n ? theme.palette.secondary[300]\n : theme.palette.divider,\n \"& .MuiSvgIcon-root\": { color: theme.palette.text.disabled },\n}));","import { InputBase, styled, TextField, TextFieldProps } from \"@mui/material\";\nimport React from \"react\";\n\n// text input\nconst StyledTextField = styled(TextField)(({ theme }) => ({\n \"& .MuiOutlinedInput-input\": {\n fontWeight: 500,\n color: theme.palette.text.primary,\n },\n \"& .MuiOutlinedInput-notchedOutline\": {\n borderRadius: \"8px\",\n border: \"2px solid\",\n borderColor:\n theme.palette.mode === \"light\"\n ? theme.palette.secondary[300]\n : theme.palette.divider,\n },\n \"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline\": {\n borderColor: theme.palette.secondary[300],\n },\n}));\n\nexport const LightTextField = (props: TextFieldProps) => {\n return ;\n};\n\n\n// select input (dropdown)\nexport const StyledSelectInput = styled(InputBase)(({ theme }) => ({\n height: 50,\n fontSize: 12,\n width: \"100%\",\n fontWeight: 600,\n padding: \"0 8px\",\n border: \"2px solid\",\n borderRadius: \"8px\",\n color: theme.palette.text.primary,\n borderColor:\n theme.palette.mode === \"light\"\n ? theme.palette.secondary[300]\n : theme.palette.divider,\n \"& .MuiPopover-paper\": { boxShadow: \"none\" },\n \"& > .MuiSelect-select\": { paddingRight: \"0 !important\" },\n}));\n\n\n// pagination select dropdown\nexport const PaginationSelectInput = styled(InputBase)(({ theme }) => ({\n marginRight: theme.spacing(2),\n '& .MuiInputBase-input': {\n borderRadius: 4,\n position: 'relative',\n backgroundColor: theme.palette.background.paper,\n border: '1px solid rgba(36, 153, 239, 0.5)',\n fontSize: 12,\n fontWeight: 500,\n padding: '10px 26px 10px 12px',\n transition: theme.transitions.create(['border-color', 'box-shadow']),\n fontFamily: [\n '-apple-system',\n 'BlinkMacSystemFont',\n '\"Segoe UI\"',\n 'Roboto',\n '\"Helvetica Neue\"',\n 'Arial',\n 'sans-serif',\n '\"Apple Color Emoji\"',\n '\"Segoe UI Emoji\"',\n '\"Segoe UI Symbol\"',\n ].join(','),\n '&:focus': {\n borderRadius: 4,\n borderColor: theme.palette.primary.main,\n boxShadow: '0 0 0 0.2rem rgba(36, 153, 239, 0.25)',\n },\n },\n}));","import { useState, useEffect } from 'react';\n\nfunction getWindowDimensions() {\n const { innerWidth: wWidth, innerHeight: wHeight } = window;\n return {\n wWidth,\n wHeight\n };\n}\n\nexport default function useWindowDimensions() {\n const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions());\n\n useEffect(() => {\n function handleResize() {\n setWindowDimensions(getWindowDimensions());\n }\n\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n return windowDimensions;\n}","import { FC, useEffect, useRef, useState } from \"react\";\nimport { Button, Grid, MenuItem, Select, Box, Divider, Card } from \"@mui/material\";\nimport { useFormik } from \"formik\";\nimport * as Yup from \"yup\";\nimport { observer } from \"mobx-react-lite\";\nimport { LoadingButton } from \"@mui/lab\";\nimport { toast } from \"material-react-toastify\";\nimport { DarkStyledDatePicker, DarkTextField } from \"components/formInput/InputsDark\";\nimport FlexBox from \"components/FlexBox\";\nimport { H2, H3, H6 } from \"components/Typography\";\nimport { useStore } from '../../app/stores/store';\nimport { Booking } from \"app/models/booking\";\nimport { DarkStyledSelectInput } from \"components/formInput/InputsDark\";\nimport React from \"react\";\nimport { Roles } from \"app/models/roles\";\nimport { Trip } from \"app/models/trip\";\nimport \"./datePicker.css\";\n\n// CSS Modules\nimport 'react-datepicker/dist/react-datepicker-cssmodules.css';\nimport \"react-datepicker/dist/react-datepicker.css\";\nimport useWindowDimensions from \"components/hooks/useWindowDimensions\";\nimport StyledModalCard from \"components/StyledModalCard\";\nimport './bookingForm.css';\nimport { primary } from \"theme/themeColors\";\nimport { CloseOutlined } from \"@mui/icons-material\";\nimport { Boat } from \"app/models/boat\";\n\nconst { DateTime } = require(\"luxon\");\n\ninterface Props {\n data?: any;\n isEdit: boolean;\n reset?: () => void;\n onClose: () => void;\n}\n\nconst BookingForm: FC = ({ data, isEdit, reset, onClose }) => {\n\n const { bookingStore, boatStore, currentUserStore, stopStore, tripStore } = useStore();\n const { loadBookings, createBooking, createPublicBooking, loading, updateBooking, bookings } = bookingStore;\n const { stopsSorted, loadStops } = stopStore;\n const { trips } = tripStore;\n const { boats } = boatStore;\n \n const adminSx = {/*minWidth: 250, maxWidth: 600, */cursor: 'move'}\n const publicSx = {/*minWidth: 250, maxWidth: 600, */cursor: 'default'}\n \n //const [ availableBoats, setAvailableBoats ] = useState(null);\n const popperRef = useRef();\n const [ maxPax, setMaxPax ] = useState(7);\n const [trip, setTrip] = useState();\n const [excludedTimes, setExcludedTimes] = useState();\n const [dateClicked, setDateClicked] = useState(false)\n const { wHeight, wWidth } = useWindowDimensions();\n const newExcludedTimes: Date[] = [];\n const endOfDay = 1000*60*60*24 - 1;\n\n const getCorrectTenant = () => {\n // Anonymous/Not logged in\n if (!currentUserStore.isLoggedIn){\n return \"theharbourhopper\";\n }\n\n // Is logged in\n if (currentUserStore.currentUser?.roleId == Roles.root){\n return currentUserStore.rootTenantFilter;\n }\n else if(currentUserStore.currentUser?.tenantId != \"\"){\n return currentUserStore.currentUser?.tenantId\n }\n else{\n return undefined;\n }\n }\n\n const [newBookingFormValues] = useState({\n id: isEdit ? data.id : '',\n boatId: isEdit ? data.boatId : null,\n originId: isEdit ? data.originId : '',\n destinationId: isEdit ? data.destinationId : '',\n startTime: isEdit ? new Date(data.startTime) : new Date(/*DateTime.now().startOf('day').plus({hours: 36})*/), //todo: check if available\n _startTime: isEdit ? new Date(data.startTime) : undefined,\n paidDate: isEdit ? DateTime.fromFormat(data.paidDate, 'dd/MM/yyyy').toISODate() : undefined,\n duration: isEdit ? data.duration : 0,\n pax: isEdit ? data.pax : 1,\n amount: isEdit ? data.amount : 0.00,\n bookingName: isEdit? data.bookingName : '',\n bookingEmail: isEdit? data.bookingEmail : '',\n bookingMobile: isEdit? data.bookingMobile : '',\n status: isEdit? data.status : 0,\n tenantId: isEdit? data.tenantId : getCorrectTenant(),\n });\n\n const validatePax = (px: number | undefined) => {\n if (maxPax==0 || px==undefined)\n return true;\n\n if (px <= 0)\n return false;\n\n if (values.boatId != null && values.boatId != undefined && values.boatId != \"\"){\n var boat = boatStore.boatsSorted.find(b => b.id == values.boatId)!;\n return px <= boat.pax;\n }\n\n return px <= maxPax && px > 0;\n }\n\n const checkInteger = (e: any) => {\n\n var val = e.target.value;\n var reg = /^\\d+$/;\n\n if (reg.test(val) || val==\"\")\n handleChange(e);\n }\n \n const validationSchema = Yup.object({\n originId: Yup.string().required('Origin is required'),\n destinationId: Yup.string().required('Destination is required'),\n _startTime: Yup.date().required('Start Time is required'),\n pax: Yup.number().test(\n 'paxValid', \n \"Pax must be between 1 and \" + (maxPax), \n val => validatePax(val) // End can't be before start date\n ),\n bookingName: Yup.string().required('Booking name is required'),\n bookingMobile: Yup.string()\n .matches(/^0(4)\\d{8}$/, 'Phone number must start with 04 and be 10 digits long'),\n bookingEmail: Yup.string()\n .email('Email is invalid'),\n });\n\n const { values, errors, handleChange, handleSubmit, touched, handleBlur, dirty, isSubmitting, isValid, resetForm } = useFormik({\n initialValues: newBookingFormValues,\n validationSchema: validationSchema,\n\n onSubmit: async (addBooking: Booking) => {\n\n addBooking.startTime = values._startTime!;\n\n if (!isEdit) {\n try {\n // Add a booking\n addBooking.tenantId = getCorrectTenant();\n addBooking.amount = getAmount(values.pax) || 0;\n addBooking.startTime = values._startTime!;\n\n // Move to store\n if (currentUserStore.isLoggedIn){\n await createBooking(addBooking);\n handleClose();\n resetForm();\n toast.dark(\"Booking Added!\");\n await loadBookings();\n }\n else{\n // Get payment session\n var url = await createPublicBooking(addBooking);\n window.location.href = url;\n //var win = window.open(url, \"_blank\", \"toolbar=0,status=0,width=400,height=800,top=20,left=100,zoom='50%'\");\n resetForm();\n }\n\n } \n catch (error) {\n const message = (error as Error)?.message || \"Could not create payment session.\";\n toast.error(message);\n } \n } \n else {\n try {\n // Update a booking\n await updateBooking(addBooking); //only admin can update a booking\n handleClose();\n toast.dark(\"Booking Updated!\");\n await loadBookings();\n } \n catch(error) {\n const message = (error as Error)?.message || \"Update booking failed\";\n toast.error(message);\n }\n }\n }\n });\n \n const handleClose = () => {\n resetForm();\n onClose();\n }\n\n const setPopperVis = () => {\n setDateClicked(true);\n if(values.originId == '' || values.destinationId == '')\n popperRef.current.setOpen(false);\n }\n\n const handleBoatChange = (e: any) => {\n var boat = boats.find(b => b.id == e.target.value)\n if(boat!=null)\n setMaxPax(maxPax => boat!.pax);\n else\n setMaxPax(maxPax => 7)\n handleChange(e);\n }\n\n const getAmount = (pax: number) =>\n {\n //isEdit? values.amount : ((trip != undefined && values.pax > 0)? (values.pax < 4? trip.threePaxCost : trip. sevenPaxCost) : 0)\n if (isEdit)\n return values.amount;\n\n if (pax == 0 || trip == undefined){\n values.amount = 0;\n return 0;\n }\n\n else if (pax > 0 && pax < 4){\n values.amount = trip.threePaxCost;\n return trip.threePaxCost;\n }\n\n else if (pax >= 4){\n values.amount = trip.sevenPaxCost\n return trip.sevenPaxCost;\n }\n }\n\n const addMinutes = (d: Date, min: number) => {\n\n var newDate = new Date(d);\n newDate.setMinutes(newDate.getMinutes() + min );\n return newDate;\n }\n\n const addExcludeTimes = (start: Date, end: Date) =>\n {\n var padStart = start.getMinutes()%5;\n start.setMinutes(start.getMinutes()-padStart);\n start.setSeconds(0);\n start.setMilliseconds(0);\n\n var padEnd = 5-(end.getMinutes()%5);\n end.setSeconds(0);\n end.setMilliseconds(0);\n end = new Date(DateTime.fromJSDate(end).plus({minutes : padEnd})); //Account for a booking near midnight ticking over to new hour and new day\n\n for(var i=start; i {\n if (originId == \"\" || originId == undefined || destinationId == \"\" || destinationId == undefined)\n return 0;\n \n var trip = trips.find(t => t.originStop == originId && t.destinationStop == destinationId);\n\n if (trip==undefined)\n return 0;\n\n return trip.duration;\n }\n\n const setPastTimes = () =>\n {\n var startOfToday = DateTime.now().startOf('day');\n \n //Only exclude past times for today\n if (values._startTime == undefined || DateTime.fromJSDate(values._startTime).startOf('day') - startOfToday == 0){\n var now = DateTime.now().plus({minutes: 15});\n addExcludeTimes(new Date(startOfToday), new Date(now));\n }\n }\n \n const setOutOfHours = (e: any) =>\n {\n if(e == undefined)\n e = new Date();\n\n var date: Date = new Date(e);\n var dayOfWeek: number = date.getDay();\n switch (dayOfWeek)\n {\n case 0: { //Sun 9am-11pm\n addExcludeTimes(convertDate(date, 1), convertDate(date, 9));\n addExcludeTimes(convertDate(date, 23), convertDate(date, 24));\n break;\n }\n case 1: { //Mon 10am-7pm\n addExcludeTimes(convertDate(date, 0), convertDate(date, 10));\n addExcludeTimes(convertDate(date, 19), convertDate(date, 24));\n break;\n }\n case 2: { //Tue 10am-7pm\n addExcludeTimes(convertDate(date, 0), convertDate(date, 10));\n addExcludeTimes(convertDate(date, 19), convertDate(date, 24));\n break;\n }\n case 3: { //Wed 10am-7pm\n addExcludeTimes(convertDate(date, 0), convertDate(date, 10));\n addExcludeTimes(convertDate(date, 19), convertDate(date, 24));\n break;\n }\n case 4: { //Thu 9am - 11pm\n addExcludeTimes(convertDate(date, 0), convertDate(date, 9));\n addExcludeTimes(convertDate(date, 23), convertDate(date, 24));\n break;\n }\n case 5: { //Fri 9am-1am\n addExcludeTimes(convertDate(date, 0), convertDate(date, 9));\n break;\n }\n case 6: { //Sat 9am-1am\n addExcludeTimes(convertDate(date, 1), convertDate(date, 9));\n break;\n } \n }\n }\n\n const setBookedSlots = (e: any) =>\n {\n //if(values.boatId == '')\n //return;\n\n // ************************** TODO: get only bookings for the selected date. **************************\n var unavailable = bookings;\n\n if (e == undefined){\n e = DateTime.fromJSDate(new Date()).startOf('day');\n }\n\n unavailable.forEach((b) =>{\n \n if (DateTime.fromJSDate(new Date(b.startTime)).startOf('day') - e != 0)\n return; //next item, date of this booking is different from selected date\n\n var originPadding = getDuration(b.originId, values.destinationId); // time to get from the form booking to this unavailable one\n var destinationPadding = getDuration(b.destinationId, values.originId); // time to get from this unavailable booking to the form booking\n var exStart = new Date(addMinutes(b.startTime, -originPadding));\n var exEnd = addMinutes(b.startTime, b.duration + destinationPadding);\n\n addExcludeTimes(exStart, exEnd);\n\n // Clear travel time if stop changes and conflicts with excludeTime\n if(values._startTime != undefined && values._startTime > exStart && values._startTime < exEnd)\n values._startTime = undefined;\n });\n }\n\n const addTimeExclusions = (e: any) =>\n {\n setExcludedTimes([]);\n setPastTimes();\n setOutOfHours(e);\n setBookedSlots(e);\n setExcludedTimes(newExcludedTimes);\n }\n\n const convertDate = (date: Date, addHours: number) => {\n\n if (addHours == 24){\n var dt = DateTime.fromJSDate(date).endOf('day');\n return new Date(dt);\n };\n\n var dt = DateTime.fromJSDate(date).startOf('day').plus({hours: addHours});\n\n return new Date(dt);\n }\n\n const setTripDetails = () => {\n //Set trip duration and amount\n var newTrip = trips.find(t => t.destinationStop == values.destinationId && t.originStop == values.originId);\n setTrip(trip => newTrip);\n values.duration = (trip?.duration? trip.duration : 0);\n }\n\n useEffect(() => {\n setTripDetails();\n addTimeExclusions(values._startTime);\n values._startTime = undefined;\n }, [values.originId, values.destinationId, values.boatId])\n\n useEffect(() => {\n resetForm();\n }, [reset])\n\n useEffect(() => {\n loadStops();\n addTimeExclusions(new Date());\n }, [])\n\n\n return (\n <>\n \n

{!isEdit ? (currentUserStore.isLoggedIn? 'Add Booking' : 'New Booking') : 'Edit Booking'}\n

\n
\n \n
\n \n {currentUserStore.isLoggedIn &&\n \n
Boats
\n }\n >\n {//availableBoats?.map(option =>\n boats.map(option =>\n \n {option.name}\n )}\n \n
\n }\n \n
Origin
\n }\n >\n {stopsSorted.map(option =>\n \n {option.name}\n )}\n \n
\n \n
\n Destination\n {!currentUserStore.isLoggedIn &&\n ({trip?.duration != undefined? trip.duration : 0} min)\n }\n
\n }\n >\n {stopsSorted\n .filter(s => trips.filter(t => t.originStop == values.originId).find(t => t.destinationStop == s.id))\n .map(option =>\n \n {option.name}\n )}\n \n
\n \n
Time
\n
\n {e.preventDefault()}}\n onChange={(date: any) => {values._startTime=date; addTimeExclusions(date);}}\n disabled={(values.originId == '' || values.destinationId == '') && currentUserStore.isLoggedIn}\n />\n
\n {(values.originId == '' || values.destinationId =='') && dateClicked && !currentUserStore.isLoggedIn &&\n \n Please select an origin and a destination\n \n }\n
\n \n
Passengers {\"(max \" + maxPax +\")\"}
\n \n
\n {currentUserStore.isLoggedIn?\n <>\n \n
Duration
\n \n
\n \n
Amount $
\n \n
\n \n
Booking Email
\n \n
\n \n :\n <>\n \n \n \n }\n \n
Booking Name
\n \n
\n \n
Booking Mobile
\n \n
\n \n {/* Booking Footer */}\n \n {currentUserStore.isLoggedIn?\n \n handleClose()}\n sx={{\n width: 124,\n fontSize: 12,\n marginRight: 2,\n color: \"text.disabled\",\n borderColor: \"text.disabled\",\n }}\n >\n Cancel\n \n \n :\n \n Trip Total: ${values.pax > 0? getAmount(values.pax) : 0}\n \n }\n \n \n \n \n\n {currentUserStore.isLoggedIn?\n \"Save\"\n :\n <>\n Book Now\n \n {values.pax > 0? \" $\" + getAmount(values.pax) : \" $0\"}\n \n \n }\n \n \n \n\n
\n
\n \n );\n};\n\nexport default observer(BookingForm);\n","import { FC, useState } from \"react\";\nimport { Card, Divider, Modal } from \"@mui/material\";\nimport { observer } from \"mobx-react-lite\";\nimport { H2 } from \"components/Typography\";\nimport { useStore } from '../../app/stores/store';\nimport StyledModalCard from \"components/StyledModalCard\";\nimport React from \"react\";\nimport Draggable from 'react-draggable';\nimport isDraggable from \"app/utils/isDraggable\";\nimport { setDate, setHours, setMinutes } from \"date-fns\";\n\n// CSS Modules\nimport 'react-datepicker/dist/react-datepicker-cssmodules.css';\nimport \"react-datepicker/dist/react-datepicker.css\";\nimport BookingForm from \"./BookingForm\";\nimport { primary } from \"theme/themeColors\";\n\nconst { DateTime } = require(\"luxon\");\n\ninterface Props {\n data?: any;\n open: boolean;\n isEdit: boolean;\n onClose: () => void;\n}\n\nconst BookingModal: FC = ({ open, onClose, isEdit, data }) => {\n\n const { currentUserStore } = useStore();\n const [resetForm, setResetForm] = useState(false);\n\n const handleClose = () => {\n setResetForm(resetForm => true);\n onClose();\n }\n\n return (\n <> \n {currentUserStore.isLoggedIn?\n \n \n \n \n \n \n \n :\n \n \n \n }\n \n );\n};\n\nexport default observer(BookingModal);\n"],"names":["isTextInput","el","undefined","includes","tagName","e","target","document","activeElement","StyledModalCard","styled","Card","_ref","theme","_defineProperty","top","left","maxWidth","minWidth","position","padding","boxShadow","shadows","transform","width","outline","border","palette","primary","main","breakpoints","down","StyledDarkTextField","TextField","borderColor","fontSize","minHeight","fontWeight","borderRadius","color","text","borderWidth","backgroundColor","mode","secondary","divider","DarkTextField","props","_jsx","_objectSpread","fullWidth","DarkMenuItem","MenuItem","_ref2","disabled","DarkStyledSelectInput","InputBase","_ref3","height","DarkStyledDatePicker","DatePicker","_ref4","StyledTextField","LightTextField","StyledSelectInput","paddingRight","PaginationSelectInput","marginRight","spacing","background","paper","transition","transitions","create","fontFamily","join","getWindowDimensions","_window","window","wWidth","innerWidth","wHeight","innerHeight","useWindowDimensions","_useState","useState","_useState2","_slicedToArray","windowDimensions","setWindowDimensions","useEffect","handleResize","addEventListener","removeEventListener","DateTime","require","observer","data","isEdit","reset","onClose","_useStore","useStore","bookingStore","boatStore","currentUserStore","stopStore","tripStore","loadBookings","createBooking","createPublicBooking","loading","updateBooking","bookings","stopsSorted","loadStops","trips","boats","popperRef","useRef","maxPax","setMaxPax","_useState3","_useState4","trip","setTrip","_useState5","_useState6","excludedTimes","setExcludedTimes","_useState7","_useState8","dateClicked","setDateClicked","_useWindowDimensions","newExcludedTimes","getCorrectTenant","_currentUserStore$cur","_currentUserStore$cur2","_currentUserStore$cur3","isLoggedIn","currentUser","roleId","Roles","root","rootTenantFilter","tenantId","_useState9","id","boatId","originId","destinationId","startTime","Date","_startTime","paidDate","fromFormat","toISODate","duration","pax","amount","bookingName","bookingEmail","bookingMobile","status","newBookingFormValues","validationSchema","Yup","required","test","val","px","values","boatsSorted","find","b","matches","email","_useFormik","useFormik","initialValues","onSubmit","_onSubmit","_asyncToGenerator","_regeneratorRuntime","mark","_callee","addBooking","url","message","_message","wrap","_context","prev","next","getAmount","handleClose","resetForm","toast","dark","sent","location","href","t0","error","t1","stop","_x","apply","arguments","errors","handleChange","handleSubmit","touched","handleBlur","dirty","isSubmitting","isValid","threePaxCost","sevenPaxCost","addMinutes","d","min","newDate","setMinutes","getMinutes","addExcludeTimes","start","end","padStart","setSeconds","setMilliseconds","padEnd","fromJSDate","plus","minutes","i","push","getDuration","t","originStop","destinationStop","addTimeExclusions","startOfToday","now","startOf","setPastTimes","date","getDay","convertDate","setOutOfHours","unavailable","forEach","originPadding","destinationPadding","exStart","exEnd","setBookedSlots","addHours","dt","endOf","hours","newTrip","setTripDetails","_jsxs","_Fragment","children","Box","sx","H3","mx","my","mt","Button","float","p","mr","endIcon","CloseOutlined","onClick","Divider","className","Grid","container","item","H6","mb","Select","name","onChange","boat","value","onBlur","Boolean","input","map","option","textTransform","filter","s","current","setOpen","ref","marginLeft","popperClassName","selected","showTimeSelect","timeFormat","excludeTimes","timeIntervals","dateFormat","calendarStartDay","minDate","onKeyDown","preventDefault","placeholder","helperText","type","display","size","variant","flexGrow","FlexBox","justifyContent","LoadingButton","ml","open","setResetForm","Draggable","Modal","hideBackdrop","BookingForm"],"sourceRoot":""}