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AR,EAAU,IACHA,EACHC,QAAS,IACFD,EAAQC,QACXU,yBAA0BH,IAI1C,CAGA,OADuB,WAAY,IAAII,QAAQ,IAAMhL,OAAOiL,MAAQA,EAAAA,IAC9ClB,EAAKK,GAAS3N,KAAKyO,EAAa,EAGpDA,EAAgBxO,IAClB,GAAIA,EAASyO,QAAU,KAAOzO,EAASyO,OAAS,IAC5C,OAAOzO,EACJ,CACH,IAAIY,EAAQ,IAAI8N,MAAM1O,EAAS2O,YAE/B,MADA/N,EAAMZ,SAAWA,EACXY,CACV,E","sources":["webpack:///./Scripts/Actions/Cart.action.js","webpack:///./Scripts/Actions/Error.action.js","webpack:///./Scripts/Components/Booking/BookingButton.js","webpack:///./Scripts/Components/Booking/BookingContainer.js","webpack:///./Scripts/Components/Booking/TimePicker.js","webpack:///./Scripts/Components/ConfirmModal.js","webpack:///./Scripts/Components/withReactiveStyleBuyButton.js","webpack:///./Scripts/Services/Booking.service.js","webpack:///./Scripts/Services/http.js"],"sourcesContent":["import { get, put } from '../Services/http';\nimport { catchError } from './Error.action';\nimport {\n CART_LOAD_ERROR,\n CART_RECEIVE,\n CART_SHOW_INFO,\n CART_CLEAR,\n} from '../constants';\nimport { camelCaseAdditionalInfo } from '../Services/Booking.service';\n\nexport const load = () => (dispatch, getState) => {\n return get('/api/cart')\n .then((response) => response.json())\n .then((cart) => {\n cart.orderRows?.forEach((row) => {\n if (!!row.additionalInfo) {\n row.additionalInfo = camelCaseAdditionalInfo(row.additionalInfo);\n }\n });\n dispatch(receive(cart));\n })\n .catch((ex) => dispatch(catchError(ex, (error) => loadError(error))));\n};\n\nexport const loadError = (error) => ({\n type: CART_LOAD_ERROR,\n payload: {\n error,\n },\n});\n\nexport const receive = (cart) => ({\n type: CART_RECEIVE,\n payload: cart,\n});\n\nexport const clearCart = () => ({\n type: CART_CLEAR,\n payload: {},\n});\n\nexport const toggle = () => (dispatch, getState) => {\n dispatch(show(!getState().cart.showInfo));\n};\n\nconst show = (visible) => ({\n type: CART_SHOW_INFO,\n payload: {\n showInfo: visible,\n },\n});\n\nexport const update = (\n rowSystemId,\n articleNumber,\n quantity,\n abortController = null\n) => (dispatch) => {\n return put(\n `/api/cart/update`,\n { articleNumber, quantity, rowSystemId },\n abortController\n )\n .then((response) => response.json())\n .then((cart) => {\n cart.orderRows?.forEach((row) => {\n row.additionalInfo = camelCaseAdditionalInfo(row.additionalInfo);\n });\n dispatch(receive(cart));\n })\n .catch((ex) => {\n dispatch(catchError(ex, (error) => loadError(error)));\n throw ex;\n });\n};\n","export const catchError = (ex, onError) => (dispatch) => {\n if (ex.response) {\n ex.response.json().then((error) => dispatch(onError(error)));\n } else {\n dispatch(onError(ex));\n }\n};\n","import React, { Fragment, useState } from 'react';\nimport withReactiveStyleBuyButton from '../withReactiveStyleBuyButton';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { receive, loadError } from '../../Actions/Cart.action';\nimport { catchError } from '../../Actions/Error.action';\nimport { translate } from '../../Services/translation';\nimport {\n camelCaseAdditionalInfo,\n reserveBooking,\n} from '../../Services/Booking.service';\nimport { ConfirmModal } from '../ConfirmModal';\n\nconst OrderButton = ({\n onClick,\n cssClass,\n articleNumber,\n additionalInfo,\n disabled,\n setReservationFailed,\n skipUpsell,\n}) => (\n \n);\n\nconst StyledButton = (props) => {\n const dispatch = useDispatch();\n const [showModal, setShowModal] = useState(false);\n const stateCart = useSelector((state) => state.cart);\n const onClick = async ({\n articleNumber,\n additionalInfo,\n setReservationFailed,\n skipUpsell,\n }) => {\n try {\n const result = await reserveBooking(\n additionalInfo.location,\n additionalInfo.idBlock,\n additionalInfo.numberOfPeople,\n {\n articleNumber,\n quantity: 1,\n additionalInfo: additionalInfo,\n },\n skipUpsell\n );\n\n if (!result.success) {\n setReservationFailed(true);\n return false;\n }\n\n var cart = result.cart;\n cart.orderRows.forEach((row) => {\n if (row.additionalInfo != null) {\n row.additionalInfo = camelCaseAdditionalInfo(row.additionalInfo);\n }\n });\n\n dispatch(receive(cart));\n\n if (skipUpsell) {\n setShowModal(true);\n } else if (cart.upsellUrl) {\n window.location.href = cart.upsellUrl;\n }\n\n return true;\n } catch (ex) {\n dispatch(catchError(ex, (error) => loadError(error)));\n return false;\n }\n };\n const Button = withReactiveStyleBuyButton(OrderButton, onClick, 'buy-button');\n\n return (\n
\n {translate('booking.chosenlocation')}\n
\n\n {translate('booking.chosenbundle')}\n
\n\n {bookingInfo.Price}\n
\n\n {bookingInfo.OffPeakPrice}\n
\n >\n ) : (\n <>\n {bookingInfo.CampaignPrice ? (\n <>\n\n {bookingInfo.Price}\n
\n\n {bookingInfo.CampaignPrice}\n
\n >\n ) : (\n\n {bookingInfo.Price}\n
\n )}\n >\n )}\n\n {bookingInfo.NumberOfClients}\n
\n\n {bookingInfo.Minutes}\n x60\n
\n\n {translate('booking.reservationfailedtext')}\n
\n \n\n {translate('booking.offpeaktime')}\n
\n\n {translate('booking.onpeaktime')}\n
\n >\n )}\n\n {translate('booking.selectedtime')}\n
\n{body}
\n