{"version":3,"file":"static/js/270.c709422a.chunk.js","sources":["assets/images/food.svg","webpack://landing_page/./src/components/Modals/RatePlanModal/RatePlanModal.module.css?fc39","components/Modals/RatePlanModal/RatePlanModal.jsx","utils/useOldPriceCalculator.js","components/CircleLoader/CircleLoader.js","webpack://landing_page/./src/components/CancellationPolicy/CancellationPolicy.module.css?7cd0","components/CancellationPolicy/CancellationPolicy.js","assets/images/calendar.svg","assets/images/user.svg","utils/usePriceCalculator.js"],"sourceRoot":"","sourcesContent":["var _path, _path2, _path3, _path4;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nfunction SvgFood(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.50948 6.96483L6.90066 7.59556C7.03111 7.82985 7.37007 7.97403 7.7092 7.97403C7.81346 7.97403 7.94391 7.95605 8.04834 7.91998C8.49174 7.79378 8.70043 7.43343 8.51775 7.12711L8.12657 6.49638C7.89186 6.11791 7.99612 5.68555 8.36128 5.36114C9.14383 4.69447 9.3525 3.79351 8.88291 3.00067L8.49173 2.36994C8.30906 2.06363 7.78743 1.91946 7.34401 2.04566C6.90059 2.17186 6.69192 2.53221 6.8746 2.83853L7.26578 3.46927C7.50049 3.84773 7.39623 4.28009 7.03107 4.6045C6.22253 5.27105 6.03989 6.17199 6.50948 6.96483Z\",\n fill: \"#504D56\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.106 6.96483L11.4981 7.59556C11.6288 7.82985 11.9686 7.97403 12.3085 7.97403C12.413 7.97403 12.5437 7.95605 12.6484 7.91998C13.0928 7.79378 13.302 7.43343 13.1189 7.12711L12.7268 6.49638C12.4916 6.11791 12.5961 5.68555 12.9621 5.36114C13.7464 4.69447 13.9555 3.79351 13.4849 3.00067L13.0928 2.36994C12.9097 2.06363 12.3869 1.91946 11.9425 2.04566C11.498 2.17186 11.2889 2.53221 11.472 2.83853L11.864 3.46927C12.0993 3.84773 11.9948 4.28009 11.6288 4.6045C10.8446 5.27105 10.6355 6.17199 11.106 6.96483Z\",\n fill: \"#504D56\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.7249 6.96176L16.1146 7.59441C16.2445 7.82941 16.5821 7.97403 16.9199 7.97403C17.0237 7.97403 17.1537 7.956 17.2577 7.91982C17.6993 7.79324 17.9072 7.43179 17.7253 7.12453L17.3356 6.49188C17.1018 6.11226 17.2057 5.67859 17.5694 5.35319C18.3489 4.68449 18.5567 3.7808 18.089 2.98555L17.6995 2.37107C17.5176 2.06383 16.998 1.91922 16.5563 2.0458C16.1147 2.17238 15.9068 2.53383 16.0888 2.84108L16.4784 3.47373C16.7122 3.85335 16.6084 4.28703 16.2446 4.61242C15.4391 5.26282 15.2314 6.16652 15.7249 6.9618L15.7249 6.96176Z\",\n fill: \"#504D56\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.2646 15.4392H19.6739V15.2098C19.6739 13.948 18.9449 12.8469 17.8403 12.3651C17.4205 11.1952 16.3158 10.3694 15.0787 10.3694C14.7252 10.3694 14.3939 10.4382 14.0846 10.5529C13.5323 10.0023 12.8032 9.68115 12.0301 9.68115C11.3672 9.68115 10.7487 9.91062 10.2406 10.3235C9.90929 10.1859 9.53357 10.1171 9.18021 10.1171C7.85459 10.1171 6.70589 11.0346 6.35238 12.3194C5.18147 12.7322 4.38614 13.8793 4.38614 15.2098V15.4393H2.7511C2.33131 15.4393 2 15.7833 2 16.2192C2 16.6551 2.33132 16.9992 2.7511 16.9992H3.54643L4.29754 19.8896C4.60683 21.1283 5.6894 22.0001 6.92658 22.0001H17.0891C18.3263 22.0001 19.4089 21.1283 19.7182 19.8896L20.4693 16.9992H21.2646C21.6844 16.9992 22.0157 16.6551 22.0157 16.2192C22.0157 15.7835 21.6622 15.4393 21.2646 15.4393V15.4392ZM5.82196 15.1869C5.82196 14.4299 6.33005 13.8104 7.0591 13.6959C7.39042 13.6499 7.65563 13.3518 7.67769 13.0076C7.76599 12.2277 8.38473 11.6542 9.13583 11.6542C9.42308 11.6542 9.68814 11.7459 9.93116 11.9065C10.2404 12.113 10.6602 12.0441 10.9033 11.7689C11.1905 11.4249 11.5881 11.2413 12.0079 11.2413C12.516 11.2413 12.98 11.5166 13.245 11.9524C13.3555 12.136 13.5101 12.2507 13.7091 12.2965C13.9078 12.3424 14.1066 12.2965 14.2614 12.1817C14.5044 12.0211 14.7695 11.9294 15.0567 11.9294C15.7415 11.9294 16.3601 12.4341 16.4926 13.1452C16.5589 13.4435 16.7577 13.6728 17.0449 13.7416C17.7078 13.9023 18.1716 14.5216 18.1716 15.2098C18.1716 15.3015 18.1716 15.3705 18.1496 15.4393H5.84407C5.84407 15.3476 5.82188 15.2788 5.82188 15.1869L5.82196 15.1869ZM18.2821 19.4767C18.1274 20.0502 17.6415 20.4402 17.0892 20.4402H6.92666C6.37435 20.4402 5.86626 20.0503 5.73375 19.4767L5.09314 16.9763H18.923L18.2821 19.4767Z\",\n fill: \"#504D56\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgFood);\nexport default __webpack_public_path__ + \"static/media/food.99ed9d3c5035b00057f1a9516b318d28.svg\";\nexport { ForwardRef as ReactComponent };","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"RatePlanModal_overlay__XRRLV\",\"popup\":\"RatePlanModal_popup__dAm0Y\",\"closeButton\":\"RatePlanModal_closeButton__C2k-R\",\"title\":\"RatePlanModal_title__cSh-1\",\"subtitle\":\"RatePlanModal_subtitle__q97WX\",\"divider\":\"RatePlanModal_divider__qJRRx\",\"description\":\"RatePlanModal_description__tjPrd\",\"benefits\":\"RatePlanModal_benefits__ubmoB\",\"benefitItem\":\"RatePlanModal_benefitItem__Ln2yl\",\"checkmark\":\"RatePlanModal_checkmark__CH-ab\"};","import React, { useEffect } from 'react';\nimport styles from './RatePlanModal.module.css';\n\nconst RatePlanModal = ({ onClose, rpObject, room }) => {\n // Prevent body scrolling when modal is open\n useEffect(() => {\n document.body.style.overflow = 'hidden';\n return () => {\n document.body.style.overflow = 'auto';\n };\n }, []);\n\n // Close on escape key press\n useEffect(() => {\n const handleEsc = (event) => {\n if (event.key === 'Escape') {\n onClose();\n }\n };\n window.addEventListener('keydown', handleEsc);\n return () => {\n window.removeEventListener('keydown', handleEsc);\n };\n }, [onClose]);\n\n // Close when clicking outside the popup\n const handleOverlayClick = (e) => {\n if (e.target === e.currentTarget) {\n onClose();\n }\n };\n\n return (\n
\n {rpObject?.description}\n
\nsetShowRatePlanModal(true)}>See all inclusions
\n )\n }\n \n\n {t(\"cancellation_refund_policy\")}\n
\n\n {t(\"date\")}\n | \n\n {t(\"fee\")}\n | \n|
---|---|---|
\n {/* {pol?.penaltyText} {pol?.policyDate.format(\"DD MMM YY\")} */}\n\n {pol.daysBeforeArrival == 999\n ? t(\"no_refund\")\n : `${pol.penaltyText} ${pol?.policyDate?.format(\n \"DD MMM YY\"\n )}`}\n | \n {/*\n {t(\"before\")}{\" \"}\n {dayjs(dateRange?.startDate)\n .subtract(\n parseInt(pol?.variables?.daysBeforeArrival, 10),\n \"day\"\n )\n .format(\"D MMM\")}\n | */}\n\n {/* {pol?.penalty} {\"\"} {pol?.penaltyType}{\" \"}\n {t(\"of_the_booking_amount\")} */}\n\n {pol.daysBeforeArrival == 999\n ? t(\"hundred_percent_of_the_booking_amount\")\n : `${pol.penalty} ${pol.penaltyType} ${t(\n \"of_the_booking_amount\"\n )}`}\n | \n
\n {t(\"From\")}{\" \"}\n {dayjs(dateRange?.startDate)\n .subtract(defaultPolicy.daysBeforeArrival, \"day\")\n ?.format(\"D MMM\")}\n | \n\n {defaultPolicy.chargedPercentage}%{\" \"}\n {t(\"of_the_booking_amount\")}\n | \n