{"version":3,"file":"static/js/219.d31714fb.chunk.js","sources":["assets/svg/unlock_svg.svg","components/Drawer/Drawer.js","webpack://landing_page/./src/components/Modals/MembershipDealsModal/MembershipDealsModal.module.css?2228","webpack://landing_page/./src/components/Modals/AuthForm/AuthForm.module.css?add3","assets/svg/unlock_modal_icon.svg","assets/svg/memberdeal_giftbox.svg","assets/svg/membershipdeal_close.svg","components/Modals/MembershipDealsModal/MembershipDealsModal.jsx","assets/images/bunk.svg","assets/images/check.svg","assets/images/kid.svg","assets/images/minus.svg","assets/images/plus.svg","assets/svg/view icon (3).svg","pages/MainPage/SecretMemberDeal/SecretMemberDeal.jsx","assets/svg/rp_inclusion_icon.svg","pages/MainPage/Room.js"],"sourceRoot":"","sourcesContent":["var _path;\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 SvgUnlockSvg(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 27,\n height: 27,\n viewBox: \"0 0 27 27\",\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: \"M18.7939 10.853V9.79414C18.7939 6.8751 16.4188 4.5 13.4997 4.5C10.5807 4.5 8.20559 6.8751 8.20559 9.79414V10.853C7.03604 10.853 6.08789 11.801 6.08789 12.9707V20.3824C6.088 21.5519 7.03604 22.5 8.20559 22.5H18.7939C19.9634 22.5 20.9116 21.5518 20.9116 20.3823V12.9706C20.9115 11.801 19.9634 10.853 18.7939 10.853ZM10.3233 9.79414C10.3233 8.04251 11.7481 6.6177 13.4997 6.6177C15.2514 6.6177 16.6762 8.04251 16.6762 9.79414V10.853H10.3233V9.79414ZM14.5585 17.2059C14.5585 17.7906 14.0844 18.2647 13.4996 18.2647C12.9148 18.2647 12.4408 17.7906 12.4408 17.2059V15.0882C12.4408 14.5034 12.9148 14.0293 13.4996 14.0293C14.0844 14.0293 14.5585 14.5034 14.5585 15.0882V17.2059Z\",\n fill: \"#494545\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgUnlockSvg);\nexport default __webpack_public_path__ + \"static/media/unlock_svg.84686d904f1512c3b98f7f4586c9f5d4.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport \"./Drawer.css\";\n\nconst Drawer = ({ isOpen, setIsOpen, children, width, height, overflow }) => {\n const toggleDrawer = () => {\n setIsOpen(!isOpen);\n };\n\n return (\n
\n \n e.stopPropagation()}\n >\n {children}\n
\n \n \n );\n};\n\nexport default Drawer;\n","// extracted by mini-css-extract-plugin\nexport default {\"modalOverlay\":\"MembershipDealsModal_modalOverlay__YHXvk\",\"modalContent\":\"MembershipDealsModal_modalContent__SeX7K\",\"closeButton\":\"MembershipDealsModal_closeButton__zQpL-\",\"modalHeader\":\"MembershipDealsModal_modalHeader__ESNC2\",\"giftIconContainer\":\"MembershipDealsModal_giftIconContainer__RHRFI\",\"title\":\"MembershipDealsModal_title__7QW9s\",\"contentLayout\":\"MembershipDealsModal_contentLayout__AfwbM\",\"imageContainer\":\"MembershipDealsModal_imageContainer__L5zCo\",\"giftImage\":\"MembershipDealsModal_giftImage__YriV5\",\"form\":\"MembershipDealsModal_form__nQo0K\",\"input\":\"MembershipDealsModal_input__UVTVm\",\"phoneInputWrapper\":\"MembershipDealsModal_phoneInputWrapper__DOsNB\",\"countryCode\":\"MembershipDealsModal_countryCode__xKyMO\",\"dropdownIcon\":\"MembershipDealsModal_dropdownIcon__NiVRK\",\"phoneInput\":\"MembershipDealsModal_phoneInput__MaGuS\",\"checkboxContainer\":\"MembershipDealsModal_checkboxContainer__F14S1\",\"checkbox\":\"MembershipDealsModal_checkbox__OdcqE\",\"checkmark\":\"MembershipDealsModal_checkmark__oE50L\",\"checkboxLabel\":\"MembershipDealsModal_checkboxLabel__w2qKs\",\"submitButton\":\"MembershipDealsModal_submitButton__RRAlf\",\"lockIcon\":\"MembershipDealsModal_lockIcon__6WE5V\"};","// extracted by mini-css-extract-plugin\nexport default {\"form\":\"AuthForm_form__YahHt\",\"modalHeader\":\"AuthForm_modalHeader__VSb2k\",\"btrue\":\"AuthForm_btrue__SsBMI\",\"title\":\"AuthForm_title__ju2gJ\",\"subtitle\":\"AuthForm_subtitle__aU6My\",\"input\":\"AuthForm_input__FPOsj\",\"submitButton\":\"AuthForm_submitButton__LfyZX\",\"switchText\":\"AuthForm_switchText__2caPR\",\"switchText1\":\"AuthForm_switchText1__gx6-C\",\"link\":\"AuthForm_link__NbYB-\",\"linkText\":\"AuthForm_linkText__plRbb\"};","var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _defs;\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 SvgUnlockModalIcon(_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: \"M20.7701 5.64136V7.04456C20.7701 7.26164 20.324 7.43752 19.7733 7.43752C19.2231 7.43752 18.7766 7.26164 18.7766 7.04456V5.64136C18.7766 3.62962 17.1401 1.99359 15.1288 1.99359C13.1175 1.99359 11.481 3.62962 11.481 5.64136V10.7105C11.481 10.9276 11.0344 11.1035 10.4842 11.1035C9.93354 11.1035 9.48743 10.9276 9.48743 10.7105V5.64136C9.48747 2.5305 12.018 0 15.1288 0C18.2396 0 20.7701 2.5305 20.7701 5.64136Z\",\n fill: \"url(#paint0_linear_61_1395)\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.1288 0C15.0484 0 14.9685 0.00210937 14.8889 0.0054375V2.00231C14.9683 1.99711 15.0482 1.99355 15.1288 1.99355C17.1401 1.99355 18.7766 3.62958 18.7766 5.64131V7.04452C18.7766 7.26159 19.2232 7.43747 19.7734 7.43747C20.3241 7.43747 20.7702 7.26159 20.7702 7.04452V5.64131C20.7702 2.5305 18.2397 0 15.1288 0Z\",\n fill: \"url(#paint1_linear_61_1395)\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.4842 11.1035C11.0344 11.1035 11.481 10.9277 11.481 10.7106V5.64143C11.481 5.48191 11.4924 5.32507 11.5123 5.1709H9.50721C9.49432 5.3261 9.48743 5.48295 9.48743 5.64143V10.7106C9.48743 10.9277 9.93354 11.1035 10.4842 11.1035Z\",\n fill: \"url(#paint2_linear_61_1395)\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.7766 5.64143V7.04463C18.7766 7.26171 19.2231 7.43759 19.7733 7.43759C20.324 7.43759 20.7701 7.26171 20.7701 7.04463V5.64143C20.7701 5.48295 20.7633 5.3261 20.7504 5.1709H18.7452C18.7651 5.32507 18.7766 5.48187 18.7766 5.64143Z\",\n fill: \"url(#paint3_linear_61_1395)\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.695 23.3712C17.3266 24.2097 12.9311 24.2097 8.56262 23.3712C8.02088 23.2672 7.58312 22.7921 7.44221 22.1632C6.59823 18.3964 6.59818 14.6092 7.44221 10.8423C7.58316 10.2133 8.02088 9.73823 8.56262 9.63426C12.9311 8.79572 17.3266 8.79576 21.695 9.63426C22.2368 9.73823 22.6745 10.2133 22.8154 10.8423C23.6595 14.6092 23.6594 18.3964 22.8154 22.1632C22.6745 22.7921 22.2368 23.2672 21.695 23.3712Z\",\n fill: \"url(#paint4_linear_61_1395)\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.5948 16.8792H6.81213C6.83829 18.6422 7.04824 20.4049 7.44218 22.1631C7.58309 22.7921 8.02085 23.2672 8.56259 23.3712C10.5694 23.7564 12.5818 23.9641 14.5948 23.9954V16.8792Z\",\n fill: \"url(#paint5_linear_61_1395)\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.5948 16.8792H6.81213C6.83829 18.6422 7.04824 20.4049 7.44218 22.1631C7.58309 22.7921 8.02085 23.2672 8.56259 23.3712C10.5694 23.7564 12.5818 23.9641 14.5948 23.9954V16.8792Z\",\n fill: \"url(#paint6_linear_61_1395)\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.8154 10.8423C22.6745 10.2132 22.2368 9.73821 21.695 9.63424C19.099 9.13591 16.4934 8.93379 13.8896 9.02772C15.6674 9.09185 17.4443 9.29402 19.2168 9.63424C19.7585 9.73821 20.1963 10.2133 20.3372 10.8423C21.1812 14.6092 21.1812 18.3964 20.3372 22.1631C20.1963 22.7921 19.7585 23.2672 19.2168 23.3711C17.4444 23.7114 15.6675 23.9135 13.8897 23.9777C16.4935 24.0716 19.099 23.8695 21.695 23.3711C22.2368 23.2672 22.6745 22.7921 22.8154 22.1631C23.6594 18.3964 23.6595 14.6092 22.8154 10.8423Z\",\n fill: \"url(#paint7_linear_61_1395)\"\n })), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.695 9.63423C20.7757 9.45774 19.8552 9.31923 18.934 9.21704V9.58135C19.0282 9.59865 19.1225 9.61618 19.2168 9.63428C19.7585 9.73824 20.1963 10.2133 20.3372 10.8423C21.1812 14.6092 21.1811 18.3964 20.3372 22.1632C20.1962 22.7921 19.7585 23.2672 19.2168 23.3712C19.1225 23.3893 19.0282 23.4068 18.934 23.4241V23.7884C19.8551 23.6862 20.7757 23.5477 21.695 23.3712C22.2368 23.2673 22.6745 22.7922 22.8154 22.1632C23.6594 18.3965 23.6595 14.6093 22.8154 10.8423C22.6745 10.2132 22.2368 9.7382 21.695 9.63423Z\",\n fill: \"url(#paint8_linear_61_1395)\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.4422 22.1631C7.58316 22.7921 8.02088 23.2672 8.56261 23.3711C12.9311 24.2096 17.3265 24.2097 21.695 23.3711C22.2368 23.2672 22.6745 22.7921 22.8154 22.1631C23.2374 20.2797 23.4484 18.3912 23.4484 16.5027H6.8092C6.80925 18.3912 7.02024 20.2797 7.4422 22.1631Z\",\n fill: \"url(#paint9_linear_61_1395)\"\n })), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.8896 21.0984C13.0105 21.0984 12.2953 20.3832 12.2953 19.5041V17.9664C12.2953 17.6331 12.1497 17.3223 11.8959 17.1136C11.1338 16.4871 10.7164 15.5621 10.7507 14.5758C10.779 13.7648 11.1186 13.0043 11.7071 12.4344C12.2952 11.865 13.0661 11.5497 13.8776 11.5466H13.8896C15.6214 11.5466 17.0304 12.9556 17.0304 14.6874C17.0304 15.6299 16.6124 16.5142 15.8836 17.1135C15.6296 17.3223 15.4839 17.6332 15.4839 17.9665V19.5041C15.4839 20.3832 14.7687 21.0984 13.8896 21.0984Z\",\n fill: \"url(#paint10_linear_61_1395)\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.3532 14.6873C16.3532 13.3235 15.2451 12.2185 13.8801 12.2237C12.5659 12.2286 11.4732 13.2859 11.4274 14.5993C11.3995 15.4016 11.7555 16.1215 12.3258 16.5904C12.7368 16.9283 12.9724 17.4343 12.9724 17.9664V19.504C12.9724 20.0106 13.383 20.4212 13.8895 20.4212C14.3961 20.4212 14.8067 20.0106 14.8067 19.504V17.9992L14.713 17.9664C14.713 17.4342 14.9018 16.8813 15.3128 16.5434C15.7709 16.1668 16.3249 15.062 16.3249 15.062C16.3421 14.9396 16.3532 14.8147 16.3532 14.6873Z\",\n fill: \"url(#paint11_linear_61_1395)\"\n })), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.3532 14.6873C16.3532 13.3235 15.2451 12.2185 13.8801 12.2237C12.5659 12.2286 11.4732 13.2859 11.4274 14.5993C11.3995 15.4016 11.7555 16.1215 12.3258 16.5904C12.7368 16.9283 12.9724 17.4343 12.9724 17.9664V19.504C12.9724 20.0106 13.383 20.4212 13.8895 20.4212C14.3961 20.4212 14.8067 20.0106 14.8067 19.504V17.9992L14.713 17.9664C14.713 17.4342 14.9018 16.8813 15.3128 16.5434C15.7709 16.1668 16.3249 15.062 16.3249 15.062C16.3421 14.9396 16.3532 14.8147 16.3532 14.6873Z\",\n fill: \"url(#paint12_linear_61_1395)\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.3532 14.6873C16.3532 13.3235 15.2451 12.2185 13.8801 12.2237C12.5659 12.2286 11.4732 13.2859 11.4274 14.5993C11.3995 15.4016 11.7555 16.1215 12.3258 16.5904C12.7368 16.9283 12.9724 17.4343 12.9724 17.9664V19.504C12.9724 20.0106 13.383 20.4212 13.8895 20.4212C14.3961 20.4212 14.8067 20.0106 14.8067 19.504V17.9992L14.713 17.9664C14.713 17.4342 14.9018 16.8813 15.3128 16.5434C15.7709 16.1668 16.3249 15.062 16.3249 15.062C16.3421 14.9396 16.3532 14.8147 16.3532 14.6873Z\",\n fill: \"url(#paint13_linear_61_1395)\"\n })), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.9596 17.7546C12.9679 17.8245 12.9724 17.8952 12.9724 17.9663V19.504C12.9724 20.0105 13.383 20.4212 13.8895 20.4212C14.3961 20.4212 14.8067 20.0105 14.8067 19.504V17.9991L14.713 17.9663C14.713 17.8959 14.7165 17.8252 14.7232 17.7546H12.9596Z\",\n fill: \"url(#paint14_linear_61_1395)\"\n })), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.9596 17.7546C12.9679 17.8245 12.9724 17.8952 12.9724 17.9663V19.504C12.9724 20.0105 13.383 20.4212 13.8895 20.4212C14.3961 20.4212 14.8067 20.0105 14.8067 19.504V17.9991L14.713 17.9663C14.713 17.8959 14.7165 17.8252 14.7232 17.7546H12.9596Z\",\n fill: \"url(#paint15_linear_61_1395)\"\n })), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.7862 17.3295C2.22979 17.3295 1.77885 16.8786 1.77885 16.3227C1.77885 15.7663 2.22979 15.3158 2.7862 15.3158C3.34213 15.3158 3.79307 15.7663 3.79307 16.3227C3.79307 16.8786 3.34213 17.3295 2.7862 17.3295ZM9.8856 15.062C9.12951 15.062 8.42076 14.6875 7.99935 14.0594C7.27185 12.9751 6.03763 12.2603 4.6356 12.2547C2.43341 12.2462 0.604352 14.0228 0.55279 16.2245C0.498884 18.5158 2.34013 20.3898 4.61967 20.3898C5.90216 20.3898 7.04592 19.7964 7.79123 18.8687C8.22904 18.3245 8.88295 17.9992 9.58138 17.9992H14.8065V17.9664C14.8065 17.4344 15.0423 16.9281 15.4534 16.5901C15.9114 16.2137 16.2315 15.6747 16.3248 15.062H9.8856Z\",\n fill: \"url(#paint16_linear_61_1395)\"\n })), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.8963 18.1358C5.55505 18.1358 5.27844 17.8592 5.27844 17.5179V15.1264C5.27844 14.7852 5.55505 14.5085 5.8963 14.5085C6.23755 14.5085 6.51416 14.7852 6.51416 15.1264V17.5179C6.51421 17.8592 6.23755 18.1358 5.8963 18.1358Z\",\n fill: \"url(#paint17_linear_61_1395)\"\n })), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.7619 16.0781C3.78149 16.1565 3.79302 16.2382 3.79302 16.3226C3.79302 16.8786 3.34209 17.3295 2.78615 17.3295C2.22974 17.3295 1.77881 16.8786 1.77881 16.3226C1.77881 16.2381 1.79034 16.1565 1.80993 16.0781H0.559915C0.557009 16.1268 0.553915 16.1754 0.55279 16.2245C0.498884 18.5158 2.34013 20.3898 4.61967 20.3898C5.90216 20.3898 7.04592 19.7964 7.79123 18.8687C8.22904 18.3245 8.88295 17.9992 9.58138 17.9992H14.8065V17.9664C14.8065 17.4344 15.0423 16.9281 15.4534 16.5901C15.6328 16.4427 15.7906 16.2701 15.9223 16.0781H3.7619Z\",\n fill: \"url(#paint18_linear_61_1395)\"\n })), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.78614 14.8901C1.99489 14.8901 1.35364 15.5314 1.35364 16.3226C1.35364 17.1134 1.99489 17.7547 2.78614 17.7547C3.57692 17.7547 4.21817 17.1134 4.21817 16.3226C4.21817 15.5314 3.57692 14.8901 2.78614 14.8901ZM2.78614 17.1139C2.34879 17.1139 1.99489 16.7595 1.99489 16.3226C1.99489 15.8858 2.34879 15.5314 2.78614 15.5314C3.22301 15.5314 3.57739 15.8858 3.57739 16.3226C3.57739 16.7595 3.22301 17.1139 2.78614 17.1139Z\",\n fill: \"url(#paint19_linear_61_1395)\"\n })), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.6882 15.6538C9.45383 15.6538 9.26379 15.8438 9.26379 16.0782C9.26379 16.3126 9.45378 16.5026 9.6882 16.5026H15.5537C15.8103 16.2674 16.0167 15.9785 16.1555 15.6538H9.6882Z\",\n fill: \"url(#paint20_linear_61_1395)\"\n })), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.0534 16.7205C10.8853 16.7205 10.7489 16.8569 10.7489 17.0251C10.7489 17.1932 10.8853 17.3296 11.0534 17.3296H14.924C15.0099 17.1035 15.1409 16.8956 15.3119 16.7205H11.0534V16.7205Z\",\n fill: \"url(#paint21_linear_61_1395)\"\n })), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.4259 17.9992H14.8065V17.9664C14.8065 17.4344 15.0423 16.9281 15.4534 16.5901C15.9113 16.2137 16.2315 15.6747 16.3248 15.062H11.4259V17.9992Z\",\n fill: \"url(#paint22_linear_61_1395)\"\n })), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint0_linear_61_1395\",\n x1: 11.4315,\n y1: 1.17966,\n x2: 13.6975,\n y2: 5.00902,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#EAF9FA\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#B3DAFE\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint1_linear_61_1395\",\n x1: 17.7102,\n y1: 3.71878,\n x2: 20.7606,\n y2: 3.71878,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#7BACDF\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#7BACDF\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint2_linear_61_1395\",\n x1: 10.4999,\n y1: 8.22921,\n x2: 10.4999,\n y2: 11.1778,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#7BACDF\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#7BACDF\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint3_linear_61_1395\",\n x1: 19.7576,\n y1: 6.3394,\n x2: 19.7576,\n y2: 7.46599,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#7BACDF\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#7BACDF\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint4_linear_61_1395\",\n x1: 11.7367,\n y1: 10.8563,\n x2: 18.5057,\n y2: 22.1236,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#FEF0AE\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FBC56D\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint5_linear_61_1395\",\n x1: 11.7188,\n y1: 20.5232,\n x2: 9.17918,\n y2: 17.4489,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#DC8758\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.2153,\n stopColor: \"#DD8654\",\n stopOpacity: 0.215\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.4291,\n stopColor: \"#E28448\",\n stopOpacity: 0.429\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.6424,\n stopColor: \"#EA8034\",\n stopOpacity: 0.642\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.8543,\n stopColor: \"#F47B18\",\n stopOpacity: 0.854\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FE7701\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint6_linear_61_1395\",\n x1: 10.7035,\n y1: 19.0624,\n x2: 10.7035,\n y2: 17.9156,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#DC8758\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.2153,\n stopColor: \"#DD8654\",\n stopOpacity: 0.215\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.4291,\n stopColor: \"#E28448\",\n stopOpacity: 0.429\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.6424,\n stopColor: \"#EA8034\",\n stopOpacity: 0.642\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.8543,\n stopColor: \"#F47B18\",\n stopOpacity: 0.854\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FE7701\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint7_linear_61_1395\",\n x1: 6.79638,\n y1: 6.24696,\n x2: 27.6212,\n y2: 25.9877,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#DC8758\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.2153,\n stopColor: \"#DD8654\",\n stopOpacity: 0.215\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.4291,\n stopColor: \"#E28448\",\n stopOpacity: 0.429\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.6424,\n stopColor: \"#EA8034\",\n stopOpacity: 0.642\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.8543,\n stopColor: \"#F47B18\",\n stopOpacity: 0.854\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FE7701\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint8_linear_61_1395\",\n x1: 21.2315,\n y1: 16.5027,\n x2: 23.1425,\n y2: 16.5027,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#DC8758\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.2153,\n stopColor: \"#DD8654\",\n stopOpacity: 0.215\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.4291,\n stopColor: \"#E28448\",\n stopOpacity: 0.429\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.6424,\n stopColor: \"#EA8034\",\n stopOpacity: 0.642\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.8543,\n stopColor: \"#F47B18\",\n stopOpacity: 0.854\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FE7701\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint9_linear_61_1395\",\n x1: 15.1288,\n y1: 19.7201,\n x2: 15.1288,\n y2: 24.0978,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#DC8758\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.2153,\n stopColor: \"#DD8654\",\n stopOpacity: 0.215\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.4291,\n stopColor: \"#E28448\",\n stopOpacity: 0.429\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.6424,\n stopColor: \"#EA8034\",\n stopOpacity: 0.642\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.8543,\n stopColor: \"#F47B18\",\n stopOpacity: 0.854\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FE7701\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint10_linear_61_1395\",\n x1: 13.0113,\n y1: 15.683,\n x2: 9.88984,\n y2: 13.8487,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#DC8758\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.2153,\n stopColor: \"#DD8654\",\n stopOpacity: 0.215\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.4291,\n stopColor: \"#E28448\",\n stopOpacity: 0.429\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.6424,\n stopColor: \"#EA8034\",\n stopOpacity: 0.642\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.8543,\n stopColor: \"#F47B18\",\n stopOpacity: 0.854\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FE7701\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint11_linear_61_1395\",\n x1: 12.3257,\n y1: 16.3224,\n x2: 15.3364,\n y2: 16.3224,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#5A5A5A\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#444444\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint12_linear_61_1395\",\n x1: 13.1122,\n y1: 16.3224,\n x2: 11.2501,\n y2: 16.3224,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#433F43\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#1A1A1A\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint13_linear_61_1395\",\n x1: 13.5712,\n y1: 15.113,\n x2: 12.1844,\n y2: 12.8742,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#433F43\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#1A1A1A\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint14_linear_61_1395\",\n x1: 13.7972,\n y1: 19.0879,\n x2: 12.9611,\n y2: 19.0879,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#433F43\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#1A1A1A\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint15_linear_61_1395\",\n x1: 13.8832,\n y1: 19.257,\n x2: 13.8832,\n y2: 17.9652,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#433F43\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#1A1A1A\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint16_linear_61_1395\",\n x1: 4.48912,\n y1: 12.5855,\n x2: 10.8095,\n y2: 18.9059,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#FEF0AE\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FBC56D\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint17_linear_61_1395\",\n x1: 6.48144,\n y1: 16.3222,\n x2: 5.27108,\n y2: 16.3222,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#FEF0AE\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FBC56D\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint18_linear_61_1395\",\n x1: 8.43792,\n y1: 17.3392,\n x2: 8.99484,\n y2: 19.8788,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#DC8758\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.2153,\n stopColor: \"#DD8654\",\n stopOpacity: 0.215\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.4291,\n stopColor: \"#E28448\",\n stopOpacity: 0.429\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.6424,\n stopColor: \"#EA8034\",\n stopOpacity: 0.642\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.8543,\n stopColor: \"#F47B18\",\n stopOpacity: 0.854\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FE7701\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint19_linear_61_1395\",\n x1: 3.67001,\n y1: 17.2065,\n x2: 1.83992,\n y2: 15.3764,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#FEF0AE\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FBC56D\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint20_linear_61_1395\",\n x1: 12.7097,\n y1: 16.4558,\n x2: 12.7097,\n y2: 15.671,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#FEF0AE\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FBC56D\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint21_linear_61_1395\",\n x1: 13.0304,\n y1: 17.3246,\n x2: 13.0304,\n y2: 16.8104,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#FEF0AE\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FBC56D\"\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"paint22_linear_61_1395\",\n x1: 13.4214,\n y1: 16.2614,\n x2: 15.3372,\n y2: 17.3975,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#DC8758\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.2153,\n stopColor: \"#DD8654\",\n stopOpacity: 0.215\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.4291,\n stopColor: \"#E28448\",\n stopOpacity: 0.429\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.6424,\n stopColor: \"#EA8034\",\n stopOpacity: 0.642\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.8543,\n stopColor: \"#F47B18\",\n stopOpacity: 0.854\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#FE7701\"\n })))));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgUnlockModalIcon);\nexport default __webpack_public_path__ + \"static/media/unlock_modal_icon.8b1e8debefb31fd17d5fb78a4792f085.svg\";\nexport { ForwardRef as ReactComponent };","var _rect,_path,_path2,_path3,_path4,_path5,_path6,_path7,_path8,_path9,_path10,_path11,_path12,_path13,_path14,_path15,_path16,_path17,_path18,_path19,_path20,_path21,_path22,_path23,_path24,_path25,_path26,_path27,_path28,_path29,_path30,_path31,_path32,_path33,_path34,_path35,_path36,_defs;function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e {\n const [isSignup, setIsSignup] = useState(false);\n const [usePhoneLogin, setUsePhoneLogin] = useState(false);\n const [formData, setFormData] = useState({\n email: \"\",\n name: \"\",\n phone: \"\",\n otp: \"\",\n emailOtp: \"\",\n phoneOtp: \"\",\n });\n const [phone, setPhone] = useState(\"\");\n const [otpSent, setOtpSent] = useState(false);\n const [otpResponse, setOtpResponse] = useState(\"\");\n // const [isVerified, setIsVerified] = useState(false);\n const isVerified = useRef();\n const [loading, isLoading] = useState(false);\n\n const handleChange = (e) => {\n setFormData({ ...formData, [e.target.name]: e.target.value });\n };\n\n const handleGetSignupOtp = async () => {\n isLoading(true);\n\n let dialCode = \"\";\n let mobile = \"\";\n\n if (phone) {\n try {\n const parsedPhone = parsePhoneNumber(String(phone));\n dialCode = `+${parsedPhone.countryCallingCode}`;\n mobile = parsedPhone.nationalNumber;\n } catch (error) {\n toastr.error(\"Invalid phone number format\");\n isLoading(false);\n return;\n }\n }\n\n if (!formData?.email && !phone) {\n toastr.error(\"Please enter details\");\n isLoading(false);\n return;\n }\n\n if (formData?.email) {\n const emailArray = formData.email.split(\",\").map((email) => email.trim());\n const emailRegex =\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n if (!emailArray.every((email) => emailRegex.test(email))) {\n toastr.error(\"Please enter valid email addresses\");\n isLoading(false);\n return;\n }\n }\n\n try {\n const reqObj = {\n name: formData?.name,\n dialCode: dialCode,\n mobile: mobile,\n email: formData?.email,\n };\n\n console.log(\"obj\", reqObj);\n\n const response = await otpCreateLoginAccount(reqObj);\n\n if (response.status === 200) {\n toastr.success(\"OTP sent successfully\");\n setOtpResponse(response.data);\n setOtpSent(true);\n } else {\n toastr.error(\"Please try again later\");\n }\n } catch (error) {\n console.log(\"error\", error);\n toastr.error(\"An error occurred. Please try again later.\");\n } finally {\n isLoading(false);\n }\n };\n const handleVerifySignupOtp = async () => {\n isLoading(true);\n const obj = {\n sessionId: otpResponse?.data?.sessionId,\n email: otpResponse?.data?.email,\n mobile: otpResponse?.data?.mobile,\n mobileOtp: formData?.mobileOtp,\n emailOtp: formData?.emailOtp,\n dialCode: otpResponse?.data?.dialCode,\n };\n\n try {\n const response = await verifyOtpLoginAccount(obj);\n if (response.status === 200) {\n toastr.succcess(\"login succesful\");\n isVerified.current = true;\n } else {\n toastr.error(\"Invalid Phone OTP. Please try again.\");\n return;\n }\n } catch {\n console.log(\"err\", error);\n } finally {\n isLoading(false);\n }\n };\n\n const handleGetOtp = async () => {\n isLoading(true);\n\n let dialCode = \"\";\n let mobile = \"\";\n\n if (phone) {\n try {\n const parsedPhone = parsePhoneNumber(String(phone));\n dialCode = `+${parsedPhone.countryCallingCode}`;\n mobile = parsedPhone.nationalNumber;\n } catch (error) {\n toastr.error(\"Invalid phone number format\");\n isLoading(false);\n return;\n }\n }\n\n if (!formData?.email && !phone) {\n toastr.error(\"Please enter details\");\n isLoading(false);\n return;\n }\n\n if (formData?.email) {\n const emailArray = formData.email.split(\",\").map((email) => email.trim());\n const emailRegex =\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n if (!emailArray.every((email) => emailRegex.test(email))) {\n toastr.error(\"Please enter valid email addresses\");\n isLoading(false);\n return;\n }\n }\n\n try {\n const reqObj = {\n dialCode,\n mobile,\n email: formData?.email,\n };\n\n console.log(\"obj\", reqObj);\n\n const response = await otpLoginAccount(reqObj);\n\n if (response.status === 200) {\n toastr.success(\"OTP sent successfully\");\n setOtpResponse(response.data);\n setOtpSent(true);\n } else {\n toastr.error(\"Please try again later\");\n }\n } catch (error) {\n console.log(\"error\", error);\n toastr.error(\"An error occurred. Please try again later.\");\n } finally {\n isLoading(false);\n }\n };\n\n const handleVerifyOtp = async () => {\n isLoading(true);\n const obj = {\n sessionId: otpResponse?.data?.sessionId,\n email: otpResponse?.data?.email,\n mobile: otpResponse?.data?.mobile,\n otp: formData?.emailOtp || formData?.phoneOtp,\n dialCode: otpResponse?.data?.dialCode,\n };\n\n try {\n const response = await verifyOtpLoginAccount(obj);\n if (response.status === 200) {\n toastr.succcess(\"login succesful\");\n isVerified.current = true;\n } else {\n toastr.error(\"Invalid Phone OTP. Please try again.\");\n return;\n }\n } catch {\n console.log(\"err\", error);\n } finally {\n isLoading(false);\n }\n };\n\n const [defaultCountry, setDefaultCountry] = useState(\"IN\");\n const { hotelData, dateRange } = useSelector((state) => state.hotelInfo);\n // const dispatch = useDispatch();\n // const { id } = hotelData;\n\n // const getPromotions = async () => {\n // const url = getSecretMemberDealUrl();\n // // dispatch(fetchPromotions(url, id));\n // applyPromotion();\n // };\n\n const handleSubmit1 = async (e) => {\n console.log(\"Called?\");\n e.preventDefault();\n\n if (isSignup && !otpSent) {\n await handleGetSignupOtp();\n return;\n }\n if (isSignup && otpSent && !isVerified?.current) {\n await handleVerifySignupOtp();\n if (!isVerified?.current) {\n toastr.error(\"OTP verification failed\");\n return;\n }\n }\n if (!isSignup && !otpSent) {\n await handleGetOtp();\n return;\n }\n if (!isSignup && otpSent && !isVerified?.current) {\n await handleVerifyOtp();\n if (!isVerified?.current) {\n toastr.error(\"OTP verification failed\");\n return;\n }\n }\n\n console.log(\"Form submitted:\", formData);\n const phoneNumber = parsePhoneNumber(String(phone));\n const dialCode = phoneNumber ? `+${phoneNumber.countryCallingCode}` : \"\";\n const mobile = phoneNumber ? phoneNumber.nationalNumber : \"\";\n\n if (isVerified?.current) {\n console.log(\"obj\", formData);\n\n await bookingTokenApi({\n email: formData?.email,\n gender: \"\",\n name: formData?.name,\n receiveEmails: formData?.receiveEmails,\n mobile: formData?.mobile,\n dialCode: formData?.dialCode,\n dob: \"\",\n regMedium: \"membership_deals\",\n });\n sessionStorage.setItem(\"isMembershipUnlocked\", \"true\");\n applyPromotion();\n onClose();\n }\n };\n\n const handleGetOtpCommon = async (isSignup) => {\n isLoading(true);\n\n let dialCode = \"\";\n let mobile = \"\";\n\n if (phone) {\n try {\n const parsedPhone = parsePhoneNumber(String(phone));\n dialCode = `+${parsedPhone.countryCallingCode}`;\n mobile = parsedPhone.nationalNumber;\n } catch (error) {\n toastr.error(\"Invalid phone number format\");\n isLoading(false);\n return;\n }\n }\n\n if (!formData?.email && !phone) {\n toastr.error(\"Please enter details\");\n isLoading(false);\n return;\n }\n\n if (formData?.email) {\n const emailArray = formData.email.split(\",\").map((email) => email.trim());\n const emailRegex =\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n if (!emailArray.every((email) => emailRegex.test(email))) {\n toastr.error(\"Please enter valid email addresses\");\n isLoading(false);\n return;\n }\n }\n\n try {\n const reqObj = {\n name: isSignup ? formData?.name : undefined, // Name only for signup\n dialCode,\n mobile,\n email: formData?.email,\n };\n\n console.log(\"Requesting OTP:\", reqObj);\n\n const response = isSignup\n ? await otpCreateLoginAccount(reqObj)\n : await otpLoginAccount(reqObj);\n\n if (response.status === 200) {\n toastr.success(\"OTP sent successfully\");\n setOtpResponse(response);\n setOtpSent(true);\n } else {\n toastr.error(\"Please try again later\");\n }\n } catch (error) {\n console.error(\"OTP Request Error:\", error);\n toastr.error(\"An error occurred. Please try again later.\");\n } finally {\n isLoading(false);\n }\n };\n\n const handleVerifyOtpCommon = async (isSignup) => {\n isLoading(true);\n console.log(\"otpresp\", otpResponse);\n // Common request fields for both Signup & Login\n const reqObj = {\n sessionId: otpResponse?.data?.sessionId,\n email: otpResponse?.data?.email,\n mobile: otpResponse?.data?.mobile,\n dialCode: otpResponse?.data?.dialCode,\n };\n\n // Modify OTP fields based on whether it's Signup or Login\n if (isSignup) {\n // reqObj.mobileOtp = formData.phoneOtp;\n reqObj.emailOtp = formData.emailOtp;\n } else {\n reqObj.otp = usePhoneLogin ? formData.phoneOtp : formData.emailOtp;\n }\n console.log(\"obj\", reqObj);\n try {\n const response = isSignup\n ? await verifyOtpCreateLoginAccount(reqObj) // API for signup OTP verification\n : await verifyOtpLoginAccount(reqObj); // API for login OTP verification\n\n if (response.status === 200) {\n toastr.success(\"OTP verification successful\");\n isVerified.current = true;\n sessionStorage.setItem(\"userName\", response?.data?.user?.firstName || formData?.name)\n } else {\n toastr.error(\"Invalid OTP. Please try again.\");\n }\n } catch (error) {\n console.error(\"OTP Verification Error:\", error);\n toastr.error(\"An error occurred. Please try again.\");\n } finally {\n isLoading(false);\n }\n };\n\n const handleSubmit = async (e, isResend = false) => {\n e.preventDefault();\n\n if (!otpSent || isResend) {\n await handleGetOtpCommon(isSignup);\n return;\n }\n\n if (!isVerified?.current) {\n await handleVerifyOtpCommon(isSignup);\n if (!isVerified?.current) {\n toastr.error(\"OTP verification failed\");\n return;\n }\n }\n\n console.log(\"Form submitted:\", formData);\n\n const phoneNumber = parsePhoneNumber(String(phone));\n const dialCode = phoneNumber ? `+${phoneNumber.countryCallingCode}` : \"\";\n const mobile = phoneNumber ? phoneNumber.nationalNumber : \"\";\n\n if (isVerified?.current) {\n if(isSignup){\n await bookingTokenApi({\n email: formData?.email,\n gender: \"\",\n name: formData?.name,\n receiveEmails: formData?.receiveEmails,\n mobile,\n dialCode,\n dob: \"\",\n regMedium: \"membership_deals\",\n });\n }\n\n await applyPromotion();\n sessionStorage.setItem(\"isMembershipUnlocked\", \"true\");\n onClose();\n }\n };\n\n useEffect(() => {\n setUsePhoneLogin(false);\n setOtpSent(false);\n isVerified.current = false;\n setFormData({\n email: \"\",\n name: \"\",\n phone: \"\",\n otp: \"\",\n emailOtp: \"\",\n phoneOtp: \"\",\n receiveEmails: false,\n });\n setPhone(\"\");\n setOtpResponse(\"\");\n }, [isSignup]);\n\n useEffect(() => {\n let country = storageService.get(\"searchParams\") || {};\n let locx = storageService.get(\"locationDetails\") || {};\n if (country?.country) {\n setDefaultCountry(country?.country);\n } else if (locx?.country) {\n setDefaultCountry(locx?.country);\n }\n }, []);\n\n if (!isOpen) return null;\n\n return (\n
\n
\n \n\n
\n
\n \n
\n\n
\n
\n
\n \"\"\n
\n

B-connect true value

\n
\n

\n {isSignup\n ? \"Sign up and get exclusive rates & discounts\"\n : \"Login to Your Account\"}\n

\n

\n {isSignup\n ? \"Create an account to get started\"\n : \"Welcome back, please enter your details\"}\n

\n\n {isSignup && !otpSent && (\n \n )}\n\n {!usePhoneLogin && !otpSent && (\n \n )}\n\n {(isSignup || usePhoneLogin) && !otpSent && (\n \n )}\n\n {!otpSent && (\n \n )}\n\n {otpSent && (\n <>\n {isSignup && (\n <>\n \n {/* */}\n \n )}\n {!isSignup && (\n \n )}\n {otpSent && (\n

\n Didn't get an OTP?{\" \"}\n handleSubmit(e, true)}\n className={styles1.link}\n style={{ background: \"none\" }}\n >\n Resend\n \n

\n )}\n \n \n )}\n\n {/* {!isSignup && (\n

\n {usePhoneLogin ? \"Login with Email?\" : \"Login with Phone?\"}\n setUsePhoneLogin(!usePhoneLogin)}\n className={styles1.linkText}\n >\n {usePhoneLogin ? \"Use Email\" : \"Use Phone\"}\n \n

\n )} */}\n\n

\n {isSignup ? \"Already have an account?\" : \"Don't have an account?\"}\n {\n setIsSignup(!isSignup);\n }}\n className={styles1.link}\n >\n {isSignup ? \"Login\" : \"Sign Up\"}\n \n

\n \n
\n
\n
\n );\n};\n\nexport default MembershipDealsModal;\n","var _path;\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 SvgBunk(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\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: \"M19.0909 2.7272C18.8498 2.7272 18.6186 2.82308 18.4482 2.99354C18.2776 3.16399 18.1819 3.39519 18.1819 3.6364V6.36371H8.18178V5.45451C8.18178 4.7313 7.89444 4.03759 7.38308 3.52606C6.87156 3.01454 6.17786 2.72719 5.45452 2.72719H1.81822V0.909091C1.81822 0.584311 1.64488 0.284186 1.36363 0.121794C1.08238 -0.040598 0.735853 -0.040598 0.454595 0.121794C0.173345 0.284186 0 0.584307 0 0.909091V19.0909C0 19.4157 0.173345 19.7158 0.454595 19.8782C0.735846 20.0406 1.08237 20.0406 1.36363 19.8782C1.64488 19.7158 1.81822 19.4157 1.81822 19.0909V17.2728H18.1818V19.0911V19.0909C18.1818 19.4157 18.3551 19.7158 18.6364 19.8782C18.9176 20.0406 19.2641 20.0406 19.5454 19.8782C19.8267 19.7158 20 19.4157 20 19.0909V3.63641C20 3.39518 19.9041 3.164 19.7337 2.99354C19.5632 2.82308 19.332 2.7272 19.0908 2.7272L19.0909 2.7272ZM5.45459 4.54546C5.69581 4.54546 5.92699 4.64119 6.09744 4.8118C6.2679 4.98225 6.36378 5.21345 6.36378 5.45451V6.36371H1.81822V4.54545L5.45459 4.54546ZM1.8183 15.4547V13.6364H5.45459C5.69581 13.6364 5.92699 13.7323 6.09744 13.9028C6.2679 14.0732 6.36378 14.3044 6.36378 14.5456V15.4547L1.8183 15.4547ZM8.18177 15.4547V14.5457C8.18177 13.8223 7.89444 13.1286 7.38308 12.6171C6.87156 12.1057 6.17786 11.8183 5.45451 11.8183H1.81822V8.18182H18.1818V15.4548L8.18177 15.4547Z\",\n fill: \"#504D56\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgBunk);\nexport default __webpack_public_path__ + \"static/media/bunk.70331d6e341fc050cb6b5b1c03827550.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\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 SvgCheck(_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: \"M20 6L9 17L4 12\",\n stroke: \"#504D56\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgCheck);\nexport default __webpack_public_path__ + \"static/media/check.79c68e9e5c3c07f7fcf40890a21c3cd5.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\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 SvgKid(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n fill: \"#000000\",\n width: \"800px\",\n height: \"800px\",\n viewBox: \"0 0 24 24\",\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: \"M10,10a1,1,0,1,0-1,1A1,1,0,0,0,10,10Zm4.5,4.06a1,1,0,0,0-1.37.36,1.3,1.3,0,0,1-2.26,0,1,1,0,0,0-1.37-.36,1,1,0,0,0-.37,1.36,3.31,3.31,0,0,0,5.74,0A1,1,0,0,0,14.5,14.06ZM15,9a1,1,0,1,0,1,1A1,1,0,0,0,15,9ZM12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18A8,8,0,0,1,9,4.57,3,3,0,0,0,9,5a3,3,0,0,0,3,3,1,1,0,0,0,0-2,1,1,0,0,1,0-2,8,8,0,0,1,0,16Z\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgKid);\nexport default __webpack_public_path__ + \"static/media/kid.68f2960c600eac47082898d91d81ab72.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\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 SvgMinus(_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: \"M5 12H19\",\n stroke: \"#3274D2\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgMinus);\nexport default __webpack_public_path__ + \"static/media/minus.865d540ae3526056cbf6eb0a831ba9d3.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2;\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 SvgPlus(_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: \"M12 5V19\",\n stroke: \"#3274D2\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 12H19\",\n stroke: \"#3274D2\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgPlus);\nexport default __webpack_public_path__ + \"static/media/plus.eff3a5d9f82e1fdbf190bd27aa43ed06.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _defs;\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 SvgViewicon3(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 12,\n viewBox: \"0 0 12 12\",\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, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_135_2825)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.7447 9.20869C11.5152 9.32618 11.2327 9.23634 11.1142 9.00562H11.1142C10.3955 7.60498 8.48719 5.59697 5.99998 5.59697C3.76938 5.59697 1.78711 7.24912 0.885752 9.00565C0.767181 9.2355 0.484806 9.32623 0.254767 9.20806C0.0247515 9.08988 -0.0662798 8.80807 0.0515405 8.57787C1.08715 6.55566 3.36455 4.65947 5.99998 4.65947C9.0056 4.65947 11.1582 7.03491 11.9484 8.57787C12.0664 8.80831 11.9752 9.09075 11.7447 9.20869ZM0.182134 4.17431L1.22613 5.11612C1.41949 5.29057 1.71579 5.27311 1.88817 5.08205C2.06156 4.88981 2.04633 4.59342 1.8541 4.42001L0.810095 3.4782C0.617931 3.30483 0.321541 3.32002 0.148056 3.51227C-0.0253344 3.70451 -0.0101001 4.0009 0.182134 4.17431ZM10.7738 5.11612L11.8178 4.17431C12.01 4.0009 12.0252 3.70451 11.8519 3.51227C11.6784 3.32006 11.382 3.30478 11.1898 3.4782L10.1458 4.42001C9.9536 4.5934 9.93837 4.88981 10.1118 5.08205C10.2843 5.27332 10.5807 5.29036 10.7738 5.11612ZM5.99995 3.24736C6.25885 3.24736 6.4687 3.03748 6.4687 2.77861V1.37109C6.4687 1.11223 6.25885 0.902344 5.99995 0.902344C5.74106 0.902344 5.5312 1.11223 5.5312 1.37109V2.77861C5.53123 3.0375 5.74109 3.24736 5.99995 3.24736ZM8.30269 8.79143C8.30269 10.0631 7.26968 11.0977 5.99998 11.0977C4.73027 11.0977 3.69727 10.0631 3.69727 8.79143C3.69727 7.51978 4.73027 6.4852 5.99998 6.4852C7.26968 6.4852 8.30269 7.51978 8.30269 8.79143ZM7.36521 8.79143C7.36521 8.03672 6.75279 7.4227 6 7.4227C5.24721 7.4227 4.63477 8.03672 4.63477 8.79143C4.63477 9.54614 5.24719 10.1602 5.99998 10.1602C6.75277 10.1602 7.36521 9.54614 7.36521 8.79143Z\",\n fill: \"#026AA2\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_135_2825\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 12,\n height: 12,\n fill: \"white\"\n })))));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgViewicon3);\nexport default __webpack_public_path__ + \"static/media/view icon (3).834bb014a3be21c4ed937bc5e79f4f19.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useRef, useState } from \"react\";\nimport \"../MainPage.css\";\nimport unlockSVG from \"../../../assets/svg/unlock_svg.svg\";\nimport MembershipDealsModal from \"../../../components/Modals/MembershipDealsModal/MembershipDealsModal\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { currency } from \"../../../utils/currency\";\nimport { isValidTimeZone } from \"../../../utils/utils\";\nimport dayjs from \"dayjs\";\nimport { fetchPromotionsApi } from \"../../../Services/mainPageService\";\nimport { fetchPromotions } from \"../../../redux/actions/hotelInfoAction\";\n\nconst SecretMemberDeal = ({\n price,\n isRatePlan,\n selectRoomBtn,\n getMembershipDetails,\n getSecretMemberDealUrl,\n applyPromotion,\n}) => {\n const [showMembershipModal, setShowMembershipModal] = useState({\n isOpen: false,\n });\n const isUnlocked = sessionStorage.getItem(\"isMembershipUnlocked\") === \"true\";\n // const [isEnabled, setIsEnabled] = useState(false);\n const isEnabledRef = useRef(false);\n\n const [membershipDetails, setMembershipDetails] = useState({\n name: \"Member-Only Rate\",\n description: \"Unlock and reveal the best price for your stay.\",\n });\n\n const { hotelData, dateRange } = useSelector((state) => state.hotelInfo);\n\n const dispatch = useDispatch();\n\n const { id } = hotelData;\n\n const enableSecretMemberDeal = async () => {\n const url = getSecretMemberDealUrl();\n const response = await fetchPromotionsApi(url);\n if (response?.status === 200) {\n setMembershipDetails({\n name: response?.data?.[0]?.name || \"Member-Only Rate\",\n description:\n response?.data?.[0]?.description ||\n \"Unlock and reveal the best price for your stay.\",\n });\n // const isBeacon = hotelData?.chainName === \"beacon\" || hotelData?.chainName === \"zinc\" || hotelData?.id !== 2825;\n const isBeacon =\n hotelData?.id === 2825 ||\n hotelData?.chainName === \"beacon\" ||\n hotelData?.chainName === \"zinc\";\n if (isBeacon && response?.data?.length) {\n isEnabledRef.current = true;\n if (isUnlocked) dispatch(fetchPromotions(url, id));\n }\n if (!response?.data?.length && isUnlocked) {\n sessionStorage.setItem(\"isMembershipUnlocked\", \"false\");\n }\n getMembershipDetails(\n response?.data?.[0]?.name,\n response?.data?.[0]?.description\n );\n }\n };\n\n useEffect(() => {\n enableSecretMemberDeal();\n }, [hotelData, dateRange]);\n\n if (!isEnabledRef?.current || isUnlocked) {\n return null;\n }\n\n return (\n <>\n \n
\n
\n

{membershipDetails?.name}

\n
\n

{membershipDetails?.description}

\n
\n
\n
\n
\n

\n {\" \"}\n {currency(hotelData?.currency)} {price}\n

\n per night\n
\n
\n setShowMembershipModal({ isOpen: true })}\n >\n \"unlock\"\n {isUnlocked ? \"Unlocked\" : \"Unlock\"}\n \n
\n
\n \n {showMembershipModal?.isOpen && (\n setShowMembershipModal({ isOpen: false })}\n getSecretMemberDealUrl={getSecretMemberDealUrl}\n applyPromotion={applyPromotion}\n />\n )}\n \n );\n};\n\nexport default SecretMemberDeal;\n","var _path;\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 SvgRpInclusionIcon(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 12,\n viewBox: \"0 0 12 12\",\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: \"M1.64339 5.52365C1.42688 5.52428 1.21498 5.58777 1.03218 5.70678C0.849387 5.82579 0.703173 5.99546 0.610458 6.19616C0.517743 6.39686 0.482314 6.62038 0.508271 6.84088C0.534228 7.06137 0.62051 7.26982 0.757135 7.44211L3.66965 11.1021C3.7735 11.2343 3.90661 11.3393 4.05794 11.4082C4.20926 11.4771 4.37443 11.508 4.53972 11.4982C4.89324 11.4788 5.2124 11.2848 5.41589 10.9658L11.4659 0.970612C11.4669 0.968954 11.468 0.967296 11.469 0.965663C11.5258 0.876251 11.5074 0.699061 11.3902 0.587748C11.358 0.55718 11.3201 0.533696 11.2787 0.518741C11.2373 0.503786 11.1934 0.497677 11.1497 0.50079C11.1059 0.503904 11.0632 0.516174 11.0243 0.536845C10.9853 0.557516 10.9509 0.58615 10.9231 0.620984C10.9209 0.623723 10.9187 0.62642 10.9164 0.629076L4.81486 7.70094C4.79164 7.72785 4.76344 7.74976 4.7319 7.7654C4.70036 7.78103 4.6661 7.79009 4.63112 7.79203C4.59614 7.79397 4.56113 7.78876 4.52813 7.7767C4.49513 7.76465 4.46479 7.74599 4.43888 7.7218L2.41389 5.83146C2.20358 5.63369 1.92869 5.52388 1.64339 5.52365Z\",\n fill: \"#3D3939\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgRpInclusionIcon);\nexport default __webpack_public_path__ + \"static/media/rp_inclusion_icon.6298c185def07d3b4854507a618fc7e5.svg\";\nexport { ForwardRef as ReactComponent };","import dayjs from \"dayjs\";\nimport \"lazysizes\";\nimport \"lazysizes/plugins/parent-fit/ls.parent-fit\";\nimport React, { useEffect, useMemo, useRef, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { Carousel } from \"react-responsive-carousel\";\nimport { Link } from \"react-router-dom\";\nimport ImageViewer from \"react-simple-image-viewer\";\nimport uuid from \"react-uuid\";\nimport toastr from \"toastr\";\nimport roomBunkImg from \"../../assets/images/bunk.svg\";\nimport check from \"../../assets/images/check.svg\";\nimport foodPic from \"../../assets/images/food.svg\";\nimport kidPic from \"../../assets/images/kid.svg\";\nimport minus from \"../../assets/images/minus.svg\";\nimport plus from \"../../assets/images/plus.svg\";\nimport userpic from \"../../assets/images/user.svg\";\nimport CircleLoader from \"../../components/CircleLoader/CircleLoader\";\nimport Drawer from \"../../components/Drawer/Drawer\";\nimport Icon from \"../../components/Icon/Icon\";\nimport viewIcon from \"../../assets/svg/view icon (3).svg\";\nimport {\n addAddon,\n addRatePlan,\n addRoom,\n available,\n deselectAddon,\n deselectRoom,\n} from \"../../redux/actions/hotelInfoAction\";\nimport hotelInfoTypes from \"../../redux/actionType/hotelInfoTypes\";\nimport storageService from \"../../Services/storageService\";\nimport { currency as currencies, currency } from \"../../utils/currency\";\nimport { fireGtmEvent, pixelHighIntent } from \"../../utils/googleAnalytics\";\nimport { RoomAmenityIcons } from \"../../utils/icons\";\nimport {\n arrangePromos,\n calculatePromotion,\n getApplicablePromotion,\n getApplicablePromotionRoom,\n} from \"../../utils/usePriceCalculator\";\nimport useWindowSize from \"../../utils/useWindowSize\";\nimport {\n convert24hrTo12hr,\n EXCLUDE_DISCOUNT_ROOM,\n getCalculatedTax,\n getFixedValue,\n IMAGE_QUALITY,\n isStartTimeBeforeEndTime,\n mmtColorHotels,\n pluralWords,\n sourceTest,\n} from \"../../utils/utils\";\nimport isBetween from \"dayjs/plugin/isBetween\";\nimport { isRoomAvailableApi } from \"../../Services/mainPageService\";\nimport CancellationPolicy from \"../../components/CancellationPolicy/CancellationPolicy\";\nimport unlockSVG from \"../../assets/svg/unlock_svg.svg\";\nimport MembershipDealsModal from \"../../components/Modals/MembershipDealsModal/MembershipDealsModal.jsx\";\nimport SecretMemberDeal from \"./SecretMemberDeal/SecretMemberDeal.jsx\";\nimport rp_inclusion_icon from \"../../assets/svg/rp_inclusion_icon.svg\";\nimport RatePlanModal from \"../../components/Modals/RatePlanModal/RatePlanModal.jsx\";\ndayjs.extend(isBetween);\n\nconst Button = ({ value, setValue, maxValue, room, price, isHourlyRoom }) => {\n const dispatch = useDispatch();\n const {\n RoomImages,\n maxGuestCount,\n defaultGuestCount,\n defaultPrice,\n availableRooms,\n } = room;\n const {\n promotions,\n roomSlots = {},\n hourlyTime,\n selectedRooms,\n hotelData,\n } = useSelector((state) => state.hotelInfo);\n\n let promo = promotions?.sort((a, b) => b.discount - a.discount)[0];\n\n if (promo?.type === \"bulk\" && !isHourlyRoom) {\n promo = null;\n if (promotions?.length > 1) {\n promo = promotions[1];\n }\n }\n\n const { t } = useTranslation();\n\n const increment = () => {\n if (value < maxValue) {\n let arr = Object.keys(roomSlots).length > 0 ? Object.keys(roomSlots) : [];\n if (\n isHourlyRoom &&\n arr?.length > 0 &&\n arr.includes(String(room?.id)) &&\n Object.keys(roomSlots[room?.id]).length > 0\n ) {\n let newAr = arr.filter((ar) => ar === String(room?.id));\n let isDisable = !(\n isStartTimeBeforeEndTime(\n convert24hrTo12hr(roomSlots[room?.id]?.firstCheckInTime),\n hourlyTime\n ) &&\n isStartTimeBeforeEndTime(\n hourlyTime,\n convert24hrTo12hr(roomSlots[room?.id]?.lastCheckInTime)\n )\n );\n if (isDisable) {\n toastr.error(t(\"not_available_selected_checkin_time\"));\n return;\n }\n }\n if (isHourlyRoom && !Object.keys(roomSlots).includes(String(room?.id))) {\n toastr.error(t(\"please_select_time_slot\"));\n return;\n }\n\n setValue((val) => val + 1);\n dispatch(addRoom(room));\n\n fireGtmEvent(\"room_added\", {\n room_name: room?.roomName,\n roomId: room?.id,\n totalPrice: price,\n pricePerNight: parseInt(defaultPrice),\n photos: RoomImages?.length,\n defaultGuestCount,\n maxGuestCount,\n oneRoomLeft: availableRooms < 3,\n availableRooms,\n });\n if (hotelData?.userId === 103376 && window && window?.gtag) {\n window?.gtag(\"event\", \"add_to_cart\", {\n value: price,\n currency: hotelData?.currency,\n items: [\n {\n price: price, // Room price per night\n item_id: hotelData?.id, // Room ID or SKU\n item_name: room?.roomName, // Room name\n },\n ],\n });\n }\n }\n };\n\n const decrement = () => {\n if (value > 0) {\n setValue((val) => val - 1);\n dispatch(deselectRoom(room));\n\n fireGtmEvent(\"room_removed\", {\n roomName: room?.roomName,\n roomId: room?.id,\n totalPrice: price,\n pricePerNight: parseInt(defaultPrice),\n photos: RoomImages?.length,\n defaultGuestCount,\n maxGuestCount,\n oneRoomLeft: availableRooms < 3,\n availableRooms,\n });\n if (hotelData?.userId === 103376 && window && window?.gtag) {\n window?.gtag(\"event\", \"remove_from_cart\", {\n value: price,\n currency: hotelData?.currency,\n items: [\n {\n price: price, // Room price per night\n item_id: hotelData?.id, // Room ID or SKU\n item_name: room?.roomName, // Room name\n },\n ],\n });\n }\n }\n };\n return value > 0 ? (\n
\n \n\n {value}\n \n
\n ) : (\n (!isHourlyRoom || selectedRooms?.length > 0) && (\n
\n \n {\" \"}\n {t(\"reserve\")}{\" \"}\n {isHourlyRoom && (\n \n )}{\" \"}\n {\" \"}\n
\n )\n );\n};\n\nconst AddonButton = ({\n name,\n extraChild,\n setExtraChild,\n extraAdult,\n setExtraAdult,\n maxGuestCount,\n addon,\n setPeople,\n defaultGuestCount,\n totalPeople,\n guestToDisplay,\n room,\n roomCount,\n extraInfant,\n setExtraInfant,\n adultAddons,\n}) => {\n const dispatch = useDispatch();\n\n const { selectedAddons } = useSelector((state) => state.hotelInfo);\n const { t } = useTranslation();\n\n const increment = () => {\n let guestCount = selectedAddons?.filter(\n (adn) =>\n adn?.hotel_room_id === room?.id && adn?.Addon?.category === \"person\"\n )?.length;\n if (\n extraChild + extraAdult + extraInfant <\n (maxGuestCount - defaultGuestCount) * roomCount &&\n name?.startsWith(\"Extra\") &&\n guestCount + defaultGuestCount < maxGuestCount * roomCount\n ) {\n name === \"Extra Adult\"\n ? dispatch(addAddon(adultAddons[extraAdult]))\n : dispatch(addAddon(addon));\n name === \"Extra Adult\"\n ? setExtraAdult((state) => state + 1)\n : name === \"Extra Child\" && addon?.type === \"infant\"\n ? setExtraInfant((prev) => prev + 1)\n : setExtraChild((state) => state + 1);\n setPeople((state) => state + 1);\n fireGtmEvent(\"addon_selected\", {\n addon_name: addon?.Addon?.name,\n addon_price: addon?.price,\n addon_id: addon?.id,\n hotel_room_id: addon?.hotel_room_id,\n });\n } else {\n toastr.error(t(\"maximum_occupancy_reached\"));\n }\n };\n\n const decrement = () => {\n if (name === \"Extra Adult\" && extraAdult > 0) {\n dispatch(deselectAddon(adultAddons[extraAdult - 1]));\n setExtraAdult((state) => state - 1);\n setPeople((state) => state - 1);\n\n fireGtmEvent(\"addon_removed\", {\n addonName: addon?.Addon?.name,\n addonPrice: addon?.price,\n addonId: addon?.id,\n hotelRoomId: addon?.hotel_room_id,\n });\n } else if (\n name === \"Extra Child\" &&\n extraChild > 0 &&\n addon?.type === \"child\"\n ) {\n dispatch(deselectAddon(addon));\n setExtraChild((state) => state - 1);\n setPeople((state) => state - 1);\n fireGtmEvent(\"addon_removed\", {\n addonName: addon?.Addon?.name,\n addonPrice: addon?.price,\n addonId: addon?.id,\n hotelRoomId: addon?.hotel_room_id,\n });\n } else if (\n name === \"Extra Child\" &&\n extraInfant > 0 &&\n addon?.type === \"infant\"\n ) {\n dispatch(deselectAddon(addon));\n setExtraInfant((prev) => prev - 1);\n setPeople((state) => state - 1);\n fireGtmEvent(\"addon_removed\", {\n addonName: addon?.Addon?.name,\n addonPrice: addon?.price,\n addonId: addon?.id,\n hotelRoomId: addon?.hotel_room_id,\n });\n }\n };\n return (\n
\n
\n -\n
\n
\n {name === \"Extra Adult\"\n ? extraAdult\n : addon?.type === \"infant\"\n ? extraInfant\n : extraChild}\n
\n\n
\n +\n
\n
\n );\n};\n\nconst MealAddon = ({\n addon,\n name,\n addAddon,\n deselectAddon,\n room,\n breakfast,\n lunch,\n dinner,\n setBreakfast,\n setLunch,\n setDinner,\n maxGuestCount,\n}) => {\n const dispatch = useDispatch();\n\n const increment = () => {\n if (name === \"Breakfast\" && breakfast < maxGuestCount) {\n setBreakfast((prev) => prev + 1);\n dispatch(addAddon(addon));\n }\n if (name === \"Lunch\" && lunch < maxGuestCount) {\n setLunch((prev) => prev + 1);\n dispatch(addAddon(addon));\n }\n if (name === \"Dinner\" && dinner < maxGuestCount) {\n setDinner((prev) => prev + 1);\n dispatch(addAddon(addon));\n }\n };\n\n const decrement = () => {\n if (name === \"Breakfast\" && breakfast > 0) {\n setBreakfast((prev) => prev - 1);\n dispatch(deselectAddon(addon));\n }\n if (name === \"Lunch\" && lunch > 0) {\n setLunch((prev) => prev - 1);\n dispatch(deselectAddon(addon));\n }\n if (name === \"Dinner\" && dinner > 0) {\n setDinner((prev) => prev - 1);\n dispatch(deselectAddon(addon));\n }\n };\n\n return (\n
\n
\n -\n
\n
\n {addon?.Addon?.name === \"Breakfast\"\n ? breakfast\n : addon?.Addon?.name === \"Lunch\"\n ? lunch\n : dinner}\n
\n\n
\n +\n
\n
\n );\n};\n\nconst NewSelectionSlot = ({\n id,\n defaultGuestCount,\n maxGuestCount,\n extraInfantPrice,\n extraChildPrice,\n room,\n childAgeSplit,\n childAgeLimit,\n}) => {\n const { selectedRooms, isRatePlans } = useSelector(\n (state) => state.hotelInfo\n );\n\n const dispatch = useDispatch();\n\n const [selectedAdultCount, setSelectedAdultCount] =\n useState(defaultGuestCount);\n const [selectedChildCount, setSelectedChildCount] = useState(0);\n const [selectedInfantCount, setSelectedInfantCount] = useState(0);\n const [thisRoom, setThisRoom] = useState();\n const [isSetRoom, setIsSetRoom] = useState(true);\n const [isRoomDescOpen, setRoomDescOpen] = useState(false);\n\n useEffect(() => {\n if (selectedRooms?.length > 0) {\n let rom =\n selectedRooms?.filter(\n (rm) => rm?.id === room?.id && Number(rm?.idx) === Number(id)\n )[0] || {};\n\n setThisRoom(rom);\n }\n }, [selectedRooms]);\n\n useEffect(() => {\n if (thisRoom) {\n setSelectedAdultCount(thisRoom?.sAdult);\n setSelectedChildCount(thisRoom?.sChild);\n setSelectedInfantCount(thisRoom?.sInfant);\n setIsSetRoom(false);\n } else {\n setIsSetRoom(true);\n }\n }, [thisRoom]);\n\n useEffect(() => {\n let rom =\n selectedRooms?.filter(\n (rm) => rm?.id === room?.id && Number(rm?.idx) === Number(id)\n )[0] || {};\n if (selectedRooms?.length > 0 && rom && !isSetRoom) {\n rom = {\n ...rom,\n sAdult: selectedAdultCount,\n sChild: selectedChildCount,\n sInfant: selectedInfantCount,\n };\n dispatch({ type: hotelInfoTypes.SET_ROOM, payload: rom });\n }\n }, [selectedAdultCount, selectedChildCount, selectedInfantCount]);\n\n const { width } = useWindowSize();\n\n const { t } = useTranslation();\n\n return (\n \n
\n

\n {t(\"room\")} {id}\n

\n
\n
\n 901 && \"center\" }}\n >\n {/*

\n {t(\"adults\")}:{\" \"}\n {width < 901 && (\n {t(\"adult_age\")}\n )}\n

*/}\n \n {t(\"adults\")}:{\" \"}\n \n {\"Above \"}\n {childAgeLimit}\n {t(\"years\")}\n {\" \"}\n

\n\n {\n setSelectedAdultCount(Number(e.target.value));\n fireGtmEvent(\"adult_dropdown_clicked\", {\n count: e.target.value,\n roomIndex: id,\n room,\n });\n }}\n >\n {Array.from({\n length: maxGuestCount - selectedChildCount - selectedInfantCount,\n }).map((_, idx) => {\n return (\n \n );\n })}\n \n
\n {extraChildPrice && (\n
\n \n {t(\"children\")}:{\" \"}\n \n ({childAgeSplit}\n {t(\"years\")} - {childAgeLimit}\n {t(\"years\")})\n {\" \"}\n

\n {\n setSelectedChildCount(Number(e.target.value));\n fireGtmEvent(\"child_dropdown_clicked\", {\n count: e.target.value,\n roomIndex: id,\n room,\n });\n }}\n >\n {/* */}\n {Array.from({\n length:\n maxGuestCount - selectedAdultCount - selectedInfantCount + 1,\n }).map((_, idx) => {\n return (\n \n );\n })}\n \n
\n )}\n {extraInfantPrice && (\n
\n \n {t(\"infants\")}:{\" \"}\n \n (0 - {childAgeSplit}\n {t(\"years\")})\n {\" \"}\n

\n {\n setSelectedInfantCount(Number(e.target.value));\n fireGtmEvent(\"infant_dropdown_clicked\", {\n count: e.target.value,\n roomIndex: id,\n room,\n });\n }}\n >\n {Array.from({\n length:\n maxGuestCount - selectedAdultCount - selectedChildCount + 1,\n }).map((_, idx) => {\n return (\n \n );\n })}\n \n
\n )}\n \n \n );\n};\n\nconst RateplanSlot = ({\n id,\n thisPlan,\n maxAdultCount,\n maxGuestCount,\n extraChildPrice,\n extraInfantPrice,\n room,\n childAgeSplit,\n childAgeLimit,\n}) => {\n const { selectedRooms, isRatePlans } = useSelector(\n (state) => state.hotelInfo\n );\n\n const { maxChildCount, maxInfantCount } = room;\n const dispatch = useDispatch();\n\n const [selectedAdultCount, setSelectedAdultCount] = useState(0);\n const [selectedChildCount, setSelectedChildCount] = useState(0);\n const [selectedInfantCount, setSelectedInfantCount] = useState(0);\n const [thisRoom, setThisRoom] = useState();\n const [isSetRoom, setIsSetRoom] = useState(true);\n\n useEffect(() => {\n if (thisPlan) {\n setSelectedAdultCount(thisPlan?.sAdult);\n setSelectedChildCount(thisPlan?.sChild);\n setSelectedInfantCount(thisPlan?.sInfant);\n setIsSetRoom(false);\n } else {\n setIsSetRoom(true);\n }\n }, [thisPlan]);\n\n useEffect(() => {\n let rom =\n selectedRooms?.filter(\n (rm) => rm?.id === room?.id && Number(rm?.idx) === Number(id)\n )[0] || {};\n if (selectedRooms?.length > 0 && rom && !isSetRoom) {\n rom = {\n ...rom,\n sAdult: selectedAdultCount,\n sChild: selectedChildCount,\n sInfant: selectedInfantCount,\n };\n dispatch({ type: hotelInfoTypes.SET_ROOM, payload: rom });\n }\n }, [selectedAdultCount, selectedChildCount, selectedInfantCount]);\n\n const { width } = useWindowSize();\n\n const { t } = useTranslation();\n\n const handleChange = (e) => {\n let cnt = Number(e.target.value);\n let name = e.target.name;\n let obj = { ...thisPlan, [name]: cnt };\n dispatch({ type: hotelInfoTypes.EDIT_RP, payload: obj });\n };\n\n return (\n \n
\n

\n {t(\"room\")} {id}\n

\n
\n
\n 901 && \"center\" }}\n >\n {/*

\n {t(\"adults\")}:{\" \"}\n {width < 901 && (\n {t(\"adult_age\")}\n )}\n

*/}\n\n \n {t(\"adults\")}:{\" \"}\n \n {\"Above \"}\n {childAgeLimit}\n {t(\"years\")}\n {\" \"}\n

\n\n {\n setSelectedAdultCount(Number(e.target.value));\n fireGtmEvent(\"adult_dropdown_clicked\", {\n count: e.target.value,\n roomIndex: id,\n room,\n });\n handleChange(e);\n }}\n >\n {Array.from({\n length:\n maxGuestCount - selectedInfantCount - selectedChildCount >\n maxAdultCount\n ? maxAdultCount\n : maxGuestCount - selectedInfantCount - selectedChildCount,\n }).map((_, idx) => {\n return (\n \n );\n })}\n \n
\n {maxChildCount > 0 && (\n
\n \n {t(\"children\")}:{\" \"}\n \n ({childAgeSplit}\n {t(\"years\")} - {childAgeLimit}\n {t(\"years\")})\n {\" \"}\n

\n {\n setSelectedChildCount(Number(e.target.value));\n fireGtmEvent(\"child_dropdown_clicked\", {\n count: e.target.value,\n roomIndex: id,\n room,\n });\n handleChange(e);\n }}\n >\n {/* */}\n {Array.from({\n length: Math.abs(\n (maxGuestCount - selectedAdultCount - selectedInfantCount >\n maxChildCount\n ? maxChildCount\n : maxGuestCount -\n selectedAdultCount -\n selectedInfantCount) + 1\n ),\n }).map((_, idx) => {\n return (\n \n );\n })}\n \n
\n )}\n {maxInfantCount > 0 && (\n
\n \n {t(\"infants\")}:{\" \"}\n \n (0 - {childAgeSplit}\n {t(\"years\")})\n {\" \"}\n

\n {\n setSelectedInfantCount(Number(e.target.value));\n fireGtmEvent(\"infant_dropdown_clicked\", {\n count: e.target.value,\n roomIndex: id,\n room,\n });\n handleChange(e);\n }}\n >\n {Array.from({\n length:\n (maxGuestCount - selectedAdultCount - selectedChildCount >\n maxInfantCount\n ? maxInfantCount\n : maxGuestCount - selectedAdultCount - selectedChildCount) +\n 1,\n }).map((_, idx) => {\n return (\n \n );\n })}\n \n
\n )}\n \n \n );\n};\n\nconst RatePlanContainer = ({\n room,\n code,\n rateplan = {},\n extraPrice = 1,\n setAvailableRooms,\n availableRooms,\n maxRoomPerBooking,\n rpRoomCount,\n setRPRoomCount,\n selectedRPRoomCount,\n setSelectedRPRoomCount,\n idx,\n notificationStyle,\n handleRoomPrice,\n pricingfornotifications, // taking from Room function who is taking it from mainpage for notifications on Room and rateplan\n getSecretMemberDealUrl,\n applyPromotion,\n}) => {\n const rpObject = {\n ...JSON.parse(rateplan?.ratePlanConfig),\n ratePlanId: rateplan?.ratePlanId,\n ratePlanId: rateplan?.ratePlanId,\n id: rateplan?.id,\n };\n\n const [arrangedPromos, setArrangedPromos] = useState([]);\n const [isLoading, setIsLoading] = useState(false);\n const [showCancellation, setShowCancellation] = useState(false);\n const [cancellationPolicy, setCancellationPolicy] = useState([]);\n const [suiteRoomsForNotifications, setsuiteRoomsForNotifications] = useState(\n []\n );\n const [secretMemberDetails, setSecretMemberDetails] = useState({\n name: \"\",\n description: \"\",\n });\n\n const isSecretMemberUnlocked =\n sessionStorage.getItem(\"isMembershipUnlocked\") === \"true\";\n\n const { policies = [] } = rpObject;\n\n const cancelShown = useMemo(() => {\n let arr = [];\n policies?.forEach((pol) => {\n arr.push(pol);\n // if (!pol?.dates?.start && !pol?.dates?.end) {\n // arr.push(pol);\n // } else if (\n // pol?.dates?.start &&\n // pol?.dates?.end &&\n // dayjs().isBetween(\n // dayjs(pol?.dates?.start),\n // dayjs(pol?.dates?.end),\n // null,\n // \"[]\"\n // )\n // ) {\n // arr.push(pol);\n // } else if (\n // !pol?.dates?.end &&\n // dayjs(pol?.dates?.start).diff(dayjs(), \"days\") <= 0\n // ) {\n // arr.push(pol);\n // } else if (\n // !pol?.dates?.start &&\n // dayjs().diff(dayjs(pol?.dates?.end), \"days\") > 0\n // ) {\n // arr.push(pol);\n // }\n });\n arr = arr\n .flatMap((ar) => ar?.result)\n .filter(\n (obj, index, self) =>\n index === self.findIndex((o) => o.Days_Before === obj.Days_Before)\n )\n .sort((a, b) => a?.Days_Before - b?.Days_Before);\n // setCancellationPolicy(arr);\n // console.log(\"pol\", arr[0]?.result);\n\n if (JSON.stringify(arr) !== JSON.stringify(cancellationPolicy)) {\n setCancellationPolicy(arr);\n }\n return arr;\n }, [policies]);\n\n const {\n pricing,\n maxAdultCount,\n maxChildCount,\n maxGuestCount,\n pricingAdditionalGuests = {},\n maxInfantCount,\n } = room;\n\n const dispatch = useDispatch();\n\n const isVRHotel = storageService.get(\"source\") === \"google_vr\";\n\n const {\n hotelData,\n totalAdult,\n totalChild,\n totalInfant,\n dateRange,\n totalPeople,\n dateCount,\n selectedRatePlans = [],\n promotions = [],\n taxes,\n isHourlyRoom,\n // pricingfornotifications = [],\n } = useSelector((state) => state.hotelInfo);\n\n useEffect(() => {\n const filterLowestPriceRooms = (roomsArray) => {\n const lowestPrices = new Map();\n\n roomsArray?.forEach((roomObj) => {\n const [[roomName, price]] = Object.entries(roomObj);\n\n if (roomName?.toLowerCase().includes(\"suite\")) {\n if (\n !lowestPrices.has(roomName) ||\n price < lowestPrices.get(roomName)\n ) {\n lowestPrices.set(roomName, price);\n }\n }\n });\n\n return Array.from(lowestPrices).map(([roomName, price]) => ({\n roomName: roomName,\n roomPrice: price,\n }));\n };\n\n if (pricingfornotifications?.length > 0) {\n let x = filterLowestPriceRooms(pricingfornotifications);\n let final = x?.slice(0, 2);\n setTimeout(() => {\n if (final?.length > 0) {\n setsuiteRoomsForNotifications(final);\n }\n }, 0);\n }\n }, [pricingfornotifications]);\n\n const [searchData, setSearchData] = useState([]);\n const [showRatePlanModal, setShowRatePlanModal] = useState(false);\n const [truncatedDesc, setTruncatedDesc] = useState({\n isTruncated: false,\n displayText: \"\",\n });\n\n useEffect(() => {\n if (promotions?.length > 0) {\n let ar = arrangePromos(promotions);\n setArrangedPromos(ar);\n } else {\n setArrangedPromos([]);\n }\n }, [promotions, hotelData?.id]);\n\n let maxAdlt =\n room?.maxAdultCount >\n pricing?.filter((rm) => rm?.ratePlanCode === code)?.length\n ? pricing?.filter((rm) => rm?.ratePlanCode === code)?.length\n : room?.maxAdultCount;\n\n let aCount = totalAdult <= maxAdlt ? totalAdult : maxAdlt;\n let cCount = 0;\n let iCount = 0;\n\n const inventoryCount = room?.availableRooms;\n\n function distributeGuests(\n totalAdults,\n totalChildren,\n totalInfants,\n roomQuantity,\n maxGuests,\n maxAdults,\n maxChildren,\n maxInfants\n ) {\n let rooms = [];\n let remainingAdults = totalAdults;\n let remainingChildren = totalChildren;\n let remainingInfants = totalInfants;\n\n if (\n (totalChildren > 0 && !maxChildren) ||\n (totalInfants > 0 && !maxInfants)\n ) {\n return [];\n }\n\n let minRoomsNeeded = Math.ceil(totalAdults / maxAdults);\n minRoomsNeeded = Math.max(\n minRoomsNeeded,\n Math.ceil((totalAdults + totalChildren + totalInfants) / maxGuests)\n );\n\n if (roomQuantity < minRoomsNeeded) {\n return [];\n }\n\n for (let i = 0; i < roomQuantity; i++) {\n let roomAdults = 0;\n let roomChildren = 0;\n let roomInfants = 0;\n\n if (remainingInfants > 0 && remainingAdults > 0) {\n roomInfants = Math.min(remainingInfants, maxInfants, maxGuests - 1); // At least one adult must be in the room\n roomAdults = Math.min(\n remainingAdults,\n maxAdults,\n maxGuests - roomInfants\n );\n\n let spaceLeft = maxGuests - roomAdults - roomInfants;\n if (spaceLeft > 0 && remainingChildren > 0) {\n roomChildren = Math.min(remainingChildren, maxChildren, spaceLeft);\n }\n }\n else if (remainingChildren > 0 && remainingAdults > 0) {\n roomChildren = Math.min(remainingChildren, maxChildren, maxGuests - 1); // At least one adult must be in the room\n roomAdults = Math.min(\n remainingAdults,\n maxAdults,\n maxGuests - roomChildren\n );\n }\n else if (remainingAdults > 0) {\n roomAdults = Math.min(remainingAdults, maxAdults, maxGuests);\n }\n\n remainingInfants -= roomInfants;\n remainingChildren -= roomChildren;\n remainingAdults -= roomAdults;\n\n rooms.push({\n adults: roomAdults,\n children: roomChildren,\n infants: roomInfants,\n });\n\n // If all guests are accommodated, break the loop\n if (\n remainingAdults === 0 &&\n remainingChildren === 0 &&\n remainingInfants === 0\n ) {\n break;\n }\n }\n\n // If there are still remaining guests after using all rooms, return an empty array\n if (remainingAdults > 0 || remainingChildren > 0 || remainingInfants > 0) {\n return [];\n }\n\n return rooms;\n }\n\n const getLowestPrice = (\n adultCount,\n childCount,\n infantCount,\n minorObj,\n pricing\n ) => {\n let totalGuest = adultCount + childCount + infantCount;\n\n let adultPricing =\n pricing?.filter((pr) => pr?.adultCount === adultCount)?.[0]\n ?.priceForPax || [];\n\n let childPricing = minorObj?.children;\n let infantPricng = minorObj?.infants;\n\n let dates = adultPricing?.map((date) => date?.checkInDate) || [];\n\n let rpArr = [];\n\n dates.forEach((date) => {\n let sum = 0,\n tax = 0;\n\n // calculate adult price\n sum += adultPricing?.filter((dt) => dt?.checkInDate === date)?.[0]\n ?.priceBeforeTax;\n\n if (childCount > 0) {\n let datePrice = childPricing?.filter(\n (dt) => dt?.checkInDate === date\n )[0]?.priceBeforeTax;\n let childPrice = 0;\n for (let i = 0; i < childCount; i++) {\n childPrice += datePrice;\n }\n\n if (pricing?.some((pr) => pr?.adultCount === adultCount + childCount)) {\n let extraAdultComparePrice =\n pricing?.filter(\n (pr) => pr?.adultCount === adultCount + childCount\n )?.[0]?.priceForPax || [];\n let priceForThis = extraAdultComparePrice?.filter(\n (pr) => pr?.checkInDate === date\n )?.[0]?.priceBeforeTax;\n sum = Math.min(priceForThis, sum + childPrice);\n }\n }\n if (infantCount > 0) {\n // compare the price with child and swap it with infant;\n let childDatePrice = childPricing?.filter(\n (dt) => dt?.checkInDate === date\n )[0]?.priceBeforeTax;\n\n let infantDatePrice = infantPricng?.filter(\n (dt) => dt?.checkInDate === date\n )[0]?.priceBeforeTax;\n\n let infantPrice = Math.min(childDatePrice, infantDatePrice);\n let price = 0;\n for (let i = 0; i < infantCount; i++) {\n price += infantPrice;\n }\n\n if (\n pricing?.some(\n (pr) => pr?.adultCount === adultCount + infantCount + childCount\n )\n ) {\n let extraAdultComparePrice =\n pricing?.filter(\n (pr) => pr?.adultCount === adultCount + infantCount + childCount\n )?.[0]?.priceForPax || [];\n let priceForThis = extraAdultComparePrice?.filter(\n (pr) => pr?.checkInDate === date\n )?.[0]?.priceBeforeTax;\n sum = Math.min(priceForThis, sum + price);\n }\n }\n let obj = {\n checkInDate: date,\n priceBeforeTax: sum,\n };\n rpArr.push(obj);\n });\n\n return rpArr;\n };\n\n const { price, taxAmount, priceReduced } = useMemo(() => {\n let sum = 0,\n tax = 0,\n promosApplied = [],\n priceReduced = 0;\n\n let searchedRooms = distributeGuests(\n totalAdult,\n totalChild,\n totalInfant,\n availableRooms,\n room?.maxGuestCount,\n maxAdlt,\n room?.maxChildCount,\n room?.maxInfantCount\n );\n\n if (searchedRooms.length > 0) {\n setSearchData(searchedRooms);\n\n for (let i = 0; i < searchedRooms.length; i++) {\n let tempArr = getLowestPrice(\n searchedRooms[i]?.adults,\n searchedRooms[i]?.children,\n searchedRooms[i]?.infants,\n pricingAdditionalGuests[code],\n pricing?.filter((r) => r?.ratePlanCode === code)\n );\n\n tempArr?.forEach((obj, idx) => {\n let tempPrice = obj?.priceBeforeTax;\n let checkInDate = obj?.checkInDate;\n\n const promo = getApplicablePromotionRoom({\n arrangedPromos: promotions,\n rp: { rpObject, roomId: room?.id },\n tempPrice,\n checkInDate,\n });\n\n if (promo) {\n promosApplied.push(promo);\n }\n\n // if (hotelData?.userId !== 63809) {\n // tempPrice = tempPrice > 7500 ? tempPrice * 1.18 : tempPrice * 1.12;\n // }\n\n let { finalValue, reducedPrice } = calculatePromotion({\n price: tempPrice,\n promo,\n idx,\n dateCount,\n });\n priceReduced += reducedPrice;\n\n const taxObj = getCalculatedTax({\n rooms: [{ id: room?.id, amount: finalValue }],\n isInclusive: hotelData?.isTaxIncluded,\n taxes: taxes,\n noOfNights: 1,\n });\n\n sum += finalValue;\n tax += taxObj?.totalRoomTax;\n });\n }\n } else {\n setSearchData([]);\n let tempArr =\n pricing?.filter(\n (pr) =>\n pr?.adultCount === aCount &&\n pr?.childCount === 0 &&\n pr?.infantCount === 0 &&\n pr?.ratePlanCode === code\n )?.[0]?.priceForPax || [];\n\n tempArr?.forEach((obj, idx) => {\n let tempPrice = obj?.priceBeforeTax;\n let checkInDate = obj?.checkInDate;\n\n const promo = getApplicablePromotionRoom({\n arrangedPromos: promotions,\n rp: { rpObject, roomId: room?.id },\n tempPrice,\n checkInDate,\n });\n\n if (promo) {\n promosApplied.push(promo);\n }\n\n // if (hotelData?.userId !== 63809) {\n // tempPrice = tempPrice > 7500 ? tempPrice * 1.18 : tempPrice * 1.12;\n // }\n\n let { finalValue, reducedPrice } = calculatePromotion({\n price: tempPrice,\n promo,\n idx,\n dateCount,\n });\n priceReduced += reducedPrice;\n\n const taxObj = getCalculatedTax({\n rooms: [{ id: room?.id, amount: finalValue }],\n isInclusive: hotelData?.isTaxIncluded,\n taxes: taxes,\n noOfNights: 1,\n });\n\n sum += finalValue;\n tax += taxObj?.totalRoomTax;\n });\n }\n\n if (sum > 0) {\n const lowestPrice = storageService.get(\"lowestPrice\") ?? Infinity;\n storageService.set(\"lowestPrice\", Math.min(lowestPrice, sum + tax));\n }\n\n return {\n price: Number(sum),\n taxAmount: Number(tax),\n priceReduced: Number(priceReduced),\n };\n }, [\n pricing,\n totalAdult,\n totalChild,\n totalInfant,\n arrangedPromos,\n taxes,\n dateRange,\n ]);\n\n useEffect(() => {\n if (!room || !price || !handleRoomPrice) return;\n handleRoomPrice(room?.roomName, price);\n }, [room, price]);\n\n // useEffect(() => {\n // if (!room || !price) return;\n // // console.log(\n // // \"room.roomName and price that will be passed to handleRoomPrice function\",\n // // room.roomName,\n // // price\n // // );\n // dispatch({\n // type: hotelInfoTypes.PRICE_FOR_NOTIFICATIONS,\n // payload: { [room.roomName]: price },\n // });\n // }, [room, price]);\n\n const selectedCount = useMemo(() => {\n return selectedRatePlans?.filter(\n (rp) => rp?.id === `${room?.id}_${code}_${idx}`\n )?.length;\n }, [selectedRatePlans]);\n\n const thisSelectedRateplans = useMemo(() => {\n return selectedRatePlans?.filter(\n (rp) => rp?.id === `${room?.id}_${code}_${idx}`\n );\n }, [selectedRatePlans]);\n\n const thisRoomCount = useMemo(() => {\n return selectedRatePlans?.filter((rp) => rp?.roomId === room?.id)?.length;\n }, [selectedRatePlans]);\n\n const [thisRoomIndex] = useMemo(() => {\n return selectedRatePlans\n ?.filter((rp) => rp?.roomId === room?.id && code === rp?.code)\n ?.sort((a, b) => a?.index - b?.index)\n ?.slice(-1);\n }, [selectedRatePlans]);\n\n const increment = async () => {\n if (isLoading) {\n return;\n }\n setIsLoading(true);\n\n if (maxRoomPerBooking && selectedRatePlans?.length >= maxRoomPerBooking) {\n toastr.error(\n `Hotel does not allow more than ${maxRoomPerBooking} rooms in a single reservation.`\n );\n setIsLoading(false);\n return;\n }\n\n let resp = await checkRoomCount(thisRoomCount + 1);\n if (!resp) {\n setIsLoading(false);\n return;\n }\n\n try {\n if (thisRoomCount < availableRooms) {\n let obj = {\n sAdult: aCount,\n sChild: 0, //cCount,\n sInfant: 0, //iCount,\n code,\n roomId: room?.id,\n rpObject,\n id: `${room?.id}_${code}_${idx}`,\n idx: (thisRoomIndex?.idx || 0) + 1,\n RoomImages: room?.RoomImages,\n roomName: room?.roomName,\n };\n fireGtmEvent(\"room_added\", obj);\n if (window) {\n window?.gtag(\"event\", \"add_to_cart\", {\n value: price,\n currency: hotelData?.currency,\n items: [\n {\n id: hotelData?.id,\n start_date: dayjs(dateRange.startDate).format(\"YYYY-MM-DD\"),\n end_date: dayjs(dateRange.endDate).format(\"YYYY-MM-DD\"),\n google_business_vertical: \"hotel_rental\",\n },\n ],\n });\n }\n if (hotelData?.userId === 103376 && window?.gtag) {\n window?.gtag(\"event\", \"add_to_cart\", {\n value: price,\n currency: hotelData?.currency,\n items: [\n {\n price: price, // Room price per night\n item_id: hotelData?.id, // Room ID or SKU\n item_name: room?.roomName, // Room name\n },\n ],\n });\n }\n let obj2 = {\n hotelId: hotelData?.id,\n roomIds: [obj?.roomId],\n checkInDate: dayjs(dateRange.startDate).format(\"YYYY-MM-DD\"),\n checkOutDate: dayjs(dateRange.endDate).format(\"YYYY-MM-DD\"),\n roomCount: thisRoomCount + 1,\n };\n dispatch(addRatePlan(obj, obj2, 0, () => setIsLoading(false)));\n addRatePlanAds();\n } else {\n toastr.error(t(\"Maximum room count reached!\"));\n setIsLoading(false);\n }\n } catch (error) {\n fireGtmEvent(\"add_rp_error\", error);\n setIsLoading(false);\n }\n };\n\n const checkRoomCount = async (roomCount = 1) => {\n let obj = {\n hotelId: hotelData?.id,\n roomIds: [room?.id],\n checkInDate: dayjs(dateRange.startDate).format(\"YYYY-MM-DD\"),\n checkOutDate: dayjs(dateRange.endDate).format(\"YYYY-MM-DD\"),\n roomCount,\n };\n const response = await isRoomAvailableApi(obj);\n\n dispatch({\n type: hotelInfoTypes.SET_UPDATED_ROOM_COUNT,\n payload: { id: room?.id, value: response?.data },\n });\n if (!response?.data) {\n setAvailableRooms(response?.data);\n toastr.error(\"Room sold out, please select other available room.\");\n }\n return response?.data;\n };\n\n const addRatePlanAds = () => {\n if (window) {\n window?.gtag(\"event\", \"conversion\", {\n send_to: \"AW-10960259904/_RXWCJnb3MwZEMCWoeoo\",\n value: price + taxAmount,\n currency: hotelData?.currency,\n event_callback: () => {},\n });\n }\n };\n\n const handleSearchData = async () => {\n if (isLoading) {\n return;\n }\n if (maxRoomPerBooking && selectedRatePlans?.length >= maxRoomPerBooking) {\n toastr.error(\n `Hotel does not allow more than ${maxRoomPerBooking} rooms in a single reservation.`\n );\n setIsLoading(false);\n return;\n }\n setIsLoading(true);\n let resp = await checkRoomCount(thisRoomCount + searchData.length);\n if (!resp) {\n setIsLoading(false);\n return;\n }\n\n try {\n fireGtmEvent(\"searchRoom_added\", { searchData, room });\n searchData.forEach((sd, indx) => {\n if (thisRoomCount >= availableRooms) {\n toastr.error(t(\"Maximum room count reached!\"));\n setIsLoading(false);\n return;\n }\n let obj = {\n sAdult: sd.adults,\n sChild: sd.children, //cCount,\n sInfant: sd.infants, //iCount,\n code,\n roomId: room?.id,\n rpObject,\n id: `${room?.id}_${code}_${idx}`,\n idx: (indx || 0) + 1,\n RoomImages: room?.RoomImages,\n roomName: room?.roomName,\n };\n let obj2 = {\n hotelId: hotelData?.id,\n roomIds: [obj?.roomId],\n checkInDate: dayjs(dateRange.startDate).format(\"YYYY-MM-DD\"),\n checkOutDate: dayjs(dateRange.endDate).format(\"YYYY-MM-DD\"),\n roomCount: thisRoomCount + searchData.length,\n };\n\n dispatch(addRatePlan(obj, obj2, indx, () => setIsLoading(false)));\n addRatePlanAds();\n });\n } catch (error) {\n fireGtmEvent(\"add_rp_error\", error);\n setIsLoading(false);\n }\n };\n\n const decrement = () => {\n if (thisRoomCount > 0) {\n fireGtmEvent(\"room_removed\", { roomId: room?.id });\n if (hotelData?.userId === 103376 && window && window?.gtag) {\n window?.gtag(\"event\", \"remove_from_cart\", {\n value: price,\n currency: hotelData?.currency,\n items: [\n {\n price: price, // Room price per night\n item_id: hotelData?.id, // Room ID or SKU\n item_name: room?.roomName, // Room name\n },\n ],\n });\n }\n dispatch({\n type: hotelInfoTypes.DESELECT_RP,\n payload: `${room?.id}_${code}_${idx}`,\n });\n }\n };\n\n const { t } = useTranslation();\n\n const truncateDescription = (description, limit) => {\n const words = description.split(\" \");\n\n if (words.length > limit) {\n setTruncatedDesc({\n isTruncated: true,\n displayText: words?.slice(0, 20).join(\" \") + \"...\",\n });\n } else {\n setTruncatedDesc({ isTruncated: false, displayText: description });\n }\n };\n\n useEffect(() => {\n truncateDescription(rpObject?.description || '', 10);\n },[]);\n\n const [dropCancellation, setDropCancellation] = useState(false);\n\n const handleToggleCancellation = () => {\n setDropCancellation(!dropCancellation);\n dropCancellation\n ? fireGtmEvent(\"cancelClosedLandingPage\")\n : fireGtmEvent(\"cancelViewedLandingPage\");\n };\n\n return (\n <>\n {price > 0 && (\n <>\n
\n
\n
\n \n
\n {!room?.roomName?.toLowerCase()?.includes(\"suite\") &&\n rpObject?.name?.toLowerCase()?.includes(\"room only\") && (\n \n {`Only ${\n room?.availableRooms > 3\n ? Math.floor(Math.random() * 2) + 2\n : room?.availableRooms\n } ${\n room?.availableRooms === 1 ? \"room\" : \"rooms\"\n } left at this price!`}\n

\n )}\n {room?.roomName?.toLowerCase()?.includes(\"suite\") &&\n rpObject?.name?.toLowerCase()?.includes(\"room only\") &&\n suiteRoomsForNotifications?.map((ele) =>\n ele?.roomName === room?.roomName ? (\n \n {`Hurry! Only ${\n room?.availableRooms > 3\n ? Math.floor(Math.random() * 2) + 2\n : room?.availableRooms\n } ${\n room?.availableRooms === 1 ? \"suite\" : \"suites\"\n } remaining for your dates`}\n

\n ) : null\n )}\n {/* Secret Member deal */}\n {secretMemberDetails?.name &&\n secretMemberDetails?.description &&\n isSecretMemberUnlocked && (\n
\n

{secretMemberDetails?.name}

\n
\n

{secretMemberDetails?.description}

\n
\n )}\n\n

\n {rpObject?.name}\n

\n \n

\n {truncatedDesc?.displayText}\n

\n {truncatedDesc?.isTruncated && (\n setShowRatePlanModal(true)}\n >\n Show More\n

\n )}\n
\n {rpObject?.inclusions?.length &&\n rpObject?.inclusions?.slice(0, 2)?.map((inc) => (\n
\n
\n \n

{inc?.inclusionName}

\n
\n
\n ))\n }\n \n
\n {/* cancellation window */}\n
\n {\n rpObject?.inclusions?.length > 2 && (\n

setShowRatePlanModal(true)}>See all inclusions

\n )\n }\n {/*
*/}\n {\n cancelShown.length > 0 && (\n

\n {t(\"cancellation_refund_policy\")}\n

\n )\n }\n \n
\n
\n
\n
\n
\n {priceReduced > 0 ? (\n
\n \n

\n {currency(hotelData?.currency)}{\" \"}\n {/* {((price + priceReduced) * extraPrice).toFixed(\n getFixedValue(hotelData?.currency)\n )} */}\n {(\n ((price + priceReduced) * extraPrice) /\n dateCount\n ).toFixed(getFixedValue(hotelData?.currency))}\n

\n \n {currencies(hotelData?.currency)}{\" \"}\n {Number(\n (priceReduced * extraPrice) / dateCount\n ).toFixed(getFixedValue(hotelData?.currency))}{\" \"}\n {t(\"off\")}\n

\n \n\n \n

\n {currency(hotelData?.currency)}{\" \"}\n {((price * extraPrice) / dateCount).toFixed(\n getFixedValue(hotelData?.currency)\n )}{\" \"}\n /{\" \"}\n

\n

\n {\" \"}\n {dateCount === 1 ? t(\"night\") : `${t(\"Night\")}`}\n {/* {dateCount === 1\n ? t(\"night\")\n : `${dateCount / dateCount} ${t(\"night\")}`} */}\n

\n
\n
\n ) : (\n
\n

\n {currency(hotelData?.currency)}{\" \"}\n {Number(price).toFixed(\n getFixedValue(hotelData?.currency)\n )}{\" \"}\n /{\" \"}\n

\n

\n {dateCount === 1\n ? t(\"night\")\n : `${dateCount} ${t(\"Nights\")}`}\n

\n
\n )}\n {taxAmount > 0 && (\n

\n +{\" \"}\n {Number((taxAmount * extraPrice) / dateCount).toFixed(\n getFixedValue(hotelData?.currency)\n )}{\" \"}\n {t(\"taxes\")}\n

\n )}\n {searchData.length > 0 ? (\n

\n {\" \"}\n {t(\"price_for\")} {totalPeople}{\" \"}\n {t(pluralWords(totalPeople, \"guest\"))}\n

\n ) : (\n

\n {\" \"}\n {t(\"price_for\")} {aCount}{\" \"}\n {t(pluralWords(aCount, \"Adult\"))}\n

\n )}\n {isVRHotel ? (\n \n (This room can accommodate up to {maxGuestCount || 1}{\" \"}\n guests)\n \n ) : null}\n
\n
\n {selectedCount === 0 ? (\n 0 ? handleSearchData : increment\n }\n >\n {isLoading ? : t(\"select\")}\n
\n ) : (\n \n
\n -\n
\n
\n {selectedCount}\n
\n\n
\n +\n
\n
\n )}\n
\n \n \n \n
\n {Array.from({ length: selectedCount }).map((_, id) => {\n return (\n \n );\n })}\n
\n {/* secret member rate box */}\n {availableRooms > 0 && (\n 0\n ? ((price + priceReduced) * extraPrice).toFixed(\n getFixedValue(hotelData?.currency)\n )\n : Number(price).toFixed(getFixedValue(hotelData?.currency))\n }\n isRatePlan={true}\n getMembershipDetails={(name, description) =>\n setSecretMemberDetails({ name, description })\n }\n getSecretMemberDealUrl={getSecretMemberDealUrl}\n applyPromotion={applyPromotion}\n />\n )}\n \n \n \n
\n {cancelShown.length > 0 && (\n \n \n\n {/* {\n setShowCancellation(true);\n fireGtmEvent(\"rpCancellationOpened\", {\n room_rp_id: `${room?.id}_${code}_${idx}`,\n });\n }}\n >\n {t(\"cancellation_policy\")}\n

*/}\n
\n )}\n {showCancellation && (\n \n
\n
\n

{t(\"cancellation_policy\")}

\n setShowCancellation(false)}\n >\n X\n

\n
\n
\n {cancelShown?.some((res) => res?.Days_Before == 999) ? (\n

\n Non Refundable - 100% of the money will be charged upon\n cancellation.\n

\n ) : (\n cancelShown.map((res, idx) => {\n let obj = {\n nights: \"nights\",\n percent: \"%\",\n fixed: hotelData?.currency,\n };\n return (\n

\n •{\" \"}\n {res?.Days_Before === 0\n ? `${t(\n \"Incase of No Show / Cancelling on day of Checkin will incur\"\n )} ${res?.Penalty_Value}${\n obj[res?.Penalty_Type]\n } ${t(\"penalty\")}.`\n : res?.Penalty_Type === \"nights\"\n ? `${t(\"Cancelling\")} ${\n res?.Days_Before\n } ${pluralWords(res?.Days_Before, \"day\")} ${t(\n \"before arrival incurs a\"\n )} ${res?.Penalty_Value}${pluralWords(\n res?.Penalty_Value,\n \"night\"\n )} ${t(\"penalty\")}.`\n : `${t(\"Cancelling\")} ${\n res?.Days_Before\n } ${pluralWords(res?.Days_Before, \"day\")} ${t(\n \"before arrival incurs a\"\n )} ${res?.Penalty_Value}${\n obj[res?.Penalty_Type]\n } ${t(\"penalty\")}.`}\n

\n );\n })\n )}\n
\n
\n
\n )}\n \n \n )}\n {showRatePlanModal && (\n setShowRatePlanModal(false)}\n rpObject={rpObject}\n room={room}\n />\n )}\n \n );\n};\n\nconst Room = ({\n room,\n showFakePrice = false,\n extraPrice = 1,\n totalPeople,\n dateRange,\n lastDates,\n isFirst = false,\n showLoyal,\n isModify = false,\n isSelected = false,\n handleRoomPrice,\n pricingfornotifications,\n getSecretMemberDealUrl,\n applyPromotion,\n}) => {\n const {\n id,\n roomName = \"Single Room\",\n defaultPrice,\n defaultGuestCount,\n RoomImages,\n pricing,\n availableRooms: a1Rooms,\n HotelRoomAddons,\n HotelRoomAmenities,\n maxGuestCount,\n hourly = [],\n priceConfig = {},\n chosenPriceConfig,\n priceConfigDifference = {},\n } = room;\n\n const [price, setPrice] = useState(defaultPrice);\n const [roomCount, setRoomCount] = useState(0);\n const [viewImage, setViewImage] = useState(false);\n const [, setPeople] = useState(0);\n const [extraAdult, setExtraAdult] = useState(0);\n const [extraChild, setExtraChild] = useState(0);\n const [availableRooms, setAvailableRooms] = useState();\n const [size, setSize] = useState(300);\n const [isDorm, setIsDorm] = useState(false);\n const [shouldAdd, setShouldAdd] = useState(true);\n const [cancellationPolicy, setCancellationPolicy] = useState();\n const [showCancel, setShowCancel] = useState(false);\n const [, setLastDate] = useState();\n const [partialPercentage, setPartialPercentage] = useState();\n const [isCOD, setIsCOD] = useState(false);\n const [freeFood, setFreeFood] = useState();\n const [freeGuest, setFreeGuest] = useState([]);\n const [dinner, setDinner] = useState(0);\n const [lunch, setLunch] = useState(0);\n const [breakfast, setBreakfast] = useState(0);\n const [priceToDisplay, setPriceToDisplay] = useState();\n const [guestToDisplay, setGuestToDisplay] = useState();\n const [taxAmt, setTax] = useState();\n const [excludedPrice, setExcludedPrice] = useState(0);\n const [addons, setAddons] = useState(HotelRoomAddons);\n const [adultAddons, setAdultAddons] = useState([]);\n const [compareAdultAddons, setCompareAdultAddons] = useState([]);\n const [extraInfant, setExtraInfant] = useState(0);\n const [aRooms, setARooms] = useState();\n const [rpRoomCount, setRPRoomCount] = useState(0);\n const [selectedRPRoomCount, setSelectedRPRoomCount] = useState(0);\n const [arrangedPromos, setArrangedPromos] = useState([]);\n\n const [searchGuestCount, setSearchGuestCount] = useState(2);\n const [searchRoomCount, setSearchRoomCount] = useState(0);\n const [useSearchData, setUseSearchData] = useState(false);\n const [searchData, setSearchData] = useState([]);\n const [isOverflowing, setIsOverflowing] = useState(false);\n const [visibleItems, setVisibleItems] = useState([]);\n const [showEllipsis, setShowEllipsis] = useState(false);\n const [notifications, setnotifications] = useState([]);\n const [randomNumber, setRandomNumber] = useState(7);\n const [peopleViewing, setpeopleViewing] = useState(2);\n const [bookedMinutesAgo, setbookedMinutesAgo] = useState(10);\n const [secretMemberDetails, setSecretMemberDetails] = useState({\n name: \"\",\n description: \"\",\n });\n const isSecretMemberUnlocked =\n sessionStorage.getItem(\"isMembershipUnlocked\") === \"true\";\n\n // new room selection\n const [selectedRoomCount, setSelectedRoomCount] = useState(-1);\n\n HotelRoomAddons.sort((a, b) => a.price - b.price);\n\n const isVRHotel = storageService.get(\"source\") === \"google_vr\";\n\n const { t } = useTranslation();\n\n const dispatch = useDispatch();\n\n const windowSize = useWindowSize();\n\n const descriptionRef = useRef();\n\n const {\n selectedRooms,\n hotelData,\n selectedAddons,\n totalAdult,\n totalChild,\n promotions = [],\n policies,\n payments,\n isHourlyRoom,\n isRatePlans,\n roomSlots,\n hourlyTime,\n dateCount,\n taxes,\n updatedRoomCount = {},\n hourlyDate,\n // pricingfornotifications = [],\n } = useSelector((state) => state.hotelInfo);\n const [isRoomDescOpen, setRoomDescOpen] = useState(false);\n\n //Real-Time Booking Alerts and Popularity Signals - Starts\n useEffect(() => {\n const filterLowestPriceRooms = (roomsArray) => {\n const lowestPrices = new Map();\n\n roomsArray?.forEach((roomObj) => {\n const [[roomName, price]] = Object.entries(roomObj);\n if (!lowestPrices.has(roomName) || price < lowestPrices.get(roomName)) {\n lowestPrices.set(roomName, price);\n }\n });\n\n return Array.from(lowestPrices).map(([roomName, price]) => ({\n [roomName]: price,\n }));\n };\n\n if (pricingfornotifications?.length > 0) {\n let x = filterLowestPriceRooms(pricingfornotifications);\n let final = x?.slice(0, 4);\n\n setTimeout(() => {\n if (final?.length > 0) {\n setnotifications(final);\n }\n }, 0);\n }\n }, [pricingfornotifications]);\n\n const notificationDivStyle =\n windowSize.width <= 900\n ? {\n width: \"100%\",\n display: \"flex\",\n justifyContent: \"flex-start\",\n marginTop: \"1vh\",\n paddingLeft: \"10px\",\n gap: \"2px\",\n alignItems: \"center\",\n }\n : {\n width: \"100%\",\n display: \"flex\",\n marginTop: \"0\",\n left:\n windowSize?.width > 900 && windowSize?.width <= 1250\n ? \"315px\"\n : \"26.5vw\",\n bottom: \"10px\",\n right: \"0px\",\n top: \"10px\",\n gap: \"2px\",\n alignItems: \"center\",\n };\n\n const notificationStyle = {\n fontWeight: \"500\",\n color: \"#026AA2\",\n backgroundColor: \"#F0F9FF\",\n border: \"1px solid #B9E6FE\",\n width: \"fit-content\",\n padding: \"2px 8px 2px 8px\",\n borderRadius: \"18px\",\n display: \"flex\",\n alignItems: \"center\",\n gap: \"3px\",\n marginLeft: \"3px\",\n };\n\n useEffect(() => {\n const styleSheet = document.createElement(\"style\");\n styleSheet.type = \"text/css\";\n styleSheet.innerHTML = `\n @keyframes blink-border {\n 0% { border-color: #B9E6FE; }\n 50% { border-color: transparent; }\n 100% { border-color: #B9E6FE; }\n }\n\n @keyframes blink-icon {\n 0% { opacity: 1; }\n 50% { opacity: 0.5; }\n 100% { opacity: 1; }\n }\n `;\n document.head.appendChild(styleSheet);\n }, []);\n\n function generateRandomNumber(min, max) {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n }\n\n function checkAndSaveRandomNumber() {\n try {\n const savedData = localStorage.getItem(\"bookingNumber\");\n\n if (savedData) {\n const parts = savedData.split(\"|\");\n if (parts?.length === 2) {\n const savedNumber = parseInt(parts[0], 10);\n const savedDateStr = parts[1];\n\n const today = new Date();\n const todayStr = `${today.getFullYear()}-${String(\n today.getMonth() + 1\n ).padStart(2, \"0\")}-${String(today.getDate()).padStart(2, \"0\")}`;\n\n if (savedDateStr === todayStr) {\n return savedNumber;\n }\n }\n }\n\n const randomNumber = generateRandomNumber(5, 15);\n const today = new Date();\n const todayStr = `${today?.getFullYear()}-${String(\n today.getMonth() + 1\n ).padStart(2, \"0\")}-${String(today?.getDate()).padStart(2, \"0\")}`;\n\n const dataToStore = `${randomNumber}|${todayStr}`;\n\n try {\n localStorage.setItem(\"bookingNumber\", dataToStore);\n } catch (err) {\n console.log(err);\n }\n\n return randomNumber;\n } catch (error) {\n console.log(error);\n return generateRandomNumber(5, 15);\n }\n }\n\n useEffect(() => {\n const number = checkAndSaveRandomNumber();\n\n if (number) {\n setRandomNumber(number);\n }\n }, []);\n\n useEffect(() => {\n let randomNumber = Math.floor(Math.random() * (10 - 2 + 1) + 2);\n\n if (randomNumber) {\n setpeopleViewing(randomNumber);\n }\n }, []);\n\n useEffect(() => {\n let randomNumber = Math.floor(Math.random() * (30 - 10 + 1) + 10);\n if (randomNumber) {\n setbookedMinutesAgo(randomNumber);\n }\n }, []);\n\n const getRoomNotification = (\n notifications,\n room,\n peopleViewing,\n bookedMinutesAgo,\n randomNumber,\n hotelData\n ) => {\n const roomIndex = notifications?.findIndex(\n (notification) => Object.keys(notification)[0] === room?.roomName\n );\n\n switch (roomIndex) {\n case 0:\n return (\n \n \n {peopleViewing} people are viewing this room right now\n

\n );\n case 1:\n return (\n

\n Someone booked this room {bookedMinutesAgo} minutes ago\n

\n );\n case 2:\n return (\n

\n This room was booked {randomNumber} times in last 7 days\n

\n );\n case 3:\n return hotelData?.city ? (\n

\n Highly rated by travelers visiting {hotelData.city}\n

\n ) : (\n

\n Highly rated by travelers\n

\n );\n default:\n return null;\n }\n };\n //Real-Time Booking Alerts and Popularity Signals - Ends\n\n const truncateDescription = (text, wordLimit = 20) => {\n const lines = text?.split(\"\\n\") || [];\n return { truncatedLines: lines, isTruncated: true };\n const firstLineWords = lines[0]?.trim().split(\" \") || [];\n const secondLineWords = lines[1]?.trim().split(\" \") || [];\n\n let truncatedLines = [];\n let isTruncated = false;\n\n if (firstLineWords.length > wordLimit) {\n truncatedLines = [firstLineWords.slice(0, wordLimit).join(\" \") + \"...\"];\n isTruncated = true;\n } else if (secondLineWords.length > wordLimit || lines.length > 2) {\n truncatedLines = [\n lines[0],\n secondLineWords.slice(0, wordLimit).join(\" \") + \"...\",\n ];\n isTruncated = true;\n } else {\n truncatedLines = lines.slice(0, 2);\n }\n\n return { truncatedLines, isTruncated };\n };\n\n const { truncatedLines, isTruncated } = truncateDescription(\n room?.description\n );\n\n useEffect(() => {\n if (a1Rooms && a1Rooms > 0) {\n if (hotelData?.userId === 63809) {\n a1Rooms > 5 ? setARooms(5) : setARooms(a1Rooms);\n } else {\n setARooms(a1Rooms);\n }\n } else {\n setARooms(0);\n }\n }, [a1Rooms]);\n\n useEffect(() => {\n const filterRooms = selectedRooms;\n const findRoom = filterRooms?.filter((rm) => rm?.id === room?.id);\n const filterAddons = selectedAddons?.filter(\n (adn) => adn?.hotelRoomId === room?.id\n );\n setRoomCount(findRoom?.length);\n if (findRoom?.length === 0 && filterAddons?.length === 0) {\n setExtraAdult(0);\n setExtraChild(0);\n setExtraInfant(0);\n setDinner(0);\n setLunch(0);\n setBreakfast(0);\n }\n }, [roomCount, selectedAddons, selectedRooms]);\n\n useEffect(() => {\n const checkOverflow = () => {\n if (descriptionRef.current) {\n setIsOverflowing(\n descriptionRef.current.scrollHeight >\n descriptionRef.current.clientHeight\n );\n }\n };\n\n checkOverflow();\n\n window.addEventListener(\"resize\", checkOverflow);\n\n return () => {\n window.removeEventListener(\"resize\", checkOverflow);\n };\n }, [descriptionRef.current]);\n\n useEffect(() => {\n if (\n HotelRoomAmenities?.some(\n (amn) =>\n amn?.Amenity?.name === \"Bunk Beds\" &&\n amn?.Amenity?.category === \"bed_type\"\n )\n ) {\n setIsDorm(true);\n }\n }, [selectedRooms]);\n\n useEffect(() => {\n if (HotelRoomAddons?.length > 0) {\n let tempFood = HotelRoomAddons?.filter(\n (adn) => adn?.price === \"0.00\" && adn?.Addon?.category === \"meal\"\n );\n setFreeFood(tempFood);\n\n let tempGuest = HotelRoomAddons?.filter(\n (adn) => adn?.price === \"0.00\" && adn?.Addon?.category === \"person\"\n );\n setFreeGuest(tempGuest);\n }\n }, []);\n\n useEffect(() => {\n if (payments) {\n if (payments?.some((pay) => pay?.Gateway?.name === \"COD\")) {\n setIsCOD(true);\n }\n if (payments?.some((pay) => pay?.Gateway?.name === \"PartialPayment\")) {\n let val = payments?.filter(\n (pay) => pay?.Gateway?.name === \"PartialPayment\"\n )[0]?.config?.minPercentage;\n\n val > 0 && setPartialPercentage(val);\n }\n }\n }, [payments]);\n\n useEffect(() => {\n if (policies?.length > 0) {\n let temp =\n policies?.filter((pol) => pol?.type === \"cancellation_policy\") || [];\n\n if (temp?.length > 0) {\n temp[0]?.HotelPolicies?.sort(\n (a, b) =>\n b?.variables?.daysBeforeArrival - a?.variables?.daysBeforeArrival\n );\n\n setCancellationPolicy(temp[0]?.HotelPolicies);\n }\n }\n }, [policies]);\n\n useEffect(() => {\n let last, diffDays;\n if (cancellationPolicy?.length > 0) {\n if (cancellationPolicy[0]?.variables?.chargedPercentage === 0) {\n last = dayjs(dateRange?.startDate).subtract(\n cancellationPolicy[0]?.variables?.daysBeforeArrival,\n \"day\"\n );\n } else {\n last = dayjs(dateRange?.startDate).subtract(\n cancellationPolicy[0]?.variables?.daysBeforeArrival + 1,\n \"day\"\n );\n }\n diffDays = last?.diff(dayjs(), \"day\");\n if (diffDays >= 0) {\n setShowCancel(true);\n }\n setLastDate(last?.format(\"MMM DD\"));\n } else {\n diffDays = dayjs(dateRange?.startDate).diff(dayjs(), \"day\");\n\n if (diffDays >= 1) {\n last = dayjs(dateRange?.startDate).subtract(1, \"day\");\n setShowCancel(true);\n setLastDate(last?.format(\"MMM DD\"));\n }\n }\n }, [cancellationPolicy, room?.pricing]);\n\n useEffect(() => {\n if (selectedAddons?.length > 0) {\n setExtraAdult(\n selectedAddons?.filter(\n (addon) =>\n addon?.Addon?.name === \"Extra Adult\" &&\n addon?.hotelRoomId === room?.id\n )?.length\n );\n setExtraChild(\n selectedAddons?.filter(\n (addon) =>\n addon?.Addon?.name === \"Extra Child\" &&\n addon?.type === \"child\" &&\n addon?.hotelRoomId === room?.id\n )?.length\n );\n setExtraInfant(\n selectedAddons?.filter(\n (addon) =>\n addon?.Addon?.name === \"Extra Child\" &&\n addon?.type === \"infant\" &&\n addon?.hotelRoomId === room?.id\n )?.length\n );\n setDinner(\n selectedAddons?.filter(\n (addon) =>\n addon?.Addon?.name === \"Dinner\" && addon?.hotelRoomId === room?.id\n )?.length\n );\n setLunch(\n selectedAddons?.filter(\n (addon) =>\n addon?.Addon?.name === \"Lunch\" && addon?.hotelRoomId === room?.id\n )?.length\n );\n setBreakfast(\n selectedAddons?.filter(\n (addon) =>\n addon?.Addon?.name === \"Breakfast\" &&\n addon?.hotelRoomId === room?.id\n )?.length\n );\n }\n }, [selectedAddons]);\n\n useEffect(() => {\n let guestCount = selectedAddons?.filter(\n (adn) =>\n adn?.hotel_room_id === room?.id && adn?.Addon?.category === \"person\"\n )?.length;\n if (guestToDisplay && guestToDisplay === defaultGuestCount + guestCount) {\n setExtraAdult(0);\n setExtraChild(0);\n }\n }, [extraAdult, extraChild]);\n\n useEffect(() => {\n let finalPrice = 0;\n let val = totalAdult <= maxGuestCount ? totalAdult : maxGuestCount;\n\n if (\n priceConfigDifference &&\n Object.keys(priceConfigDifference).length > 0\n ) {\n pricing.forEach((pr) => {\n finalPrice =\n finalPrice +\n parseFloat(pr?.price) +\n parseFloat(priceConfigDifference[val]);\n });\n } else {\n pricing.forEach((pr) => {\n finalPrice =\n finalPrice +\n parseFloat(pr.price) * (parseFloat(priceConfig[val]) || 1);\n });\n }\n let tempPrice = pricing?.length === 0 ? defaultPrice : finalPrice;\n if (hotelData?.userId === 63809) {\n tempPrice = tempPrice > 8400 ? tempPrice / 1.18 : tempPrice / 1.12;\n }\n setPrice(tempPrice);\n setPeople(parseInt(defaultGuestCount));\n\n if (totalAdult <= maxGuestCount) {\n setPriceToDisplay(tempPrice);\n setGuestToDisplay(totalAdult);\n } else {\n setPriceToDisplay(null);\n setGuestToDisplay(maxGuestCount);\n }\n\n if (updatedRoomCount[room?.id] >= 0) {\n setAvailableRooms(updatedRoomCount[room?.id]);\n } else {\n setAvailableRooms(aRooms);\n }\n }, [totalAdult, room, extraPrice, aRooms, updatedRoomCount]);\n\n useEffect(() => {\n if (isDorm && maxGuestCount !== defaultGuestCount && availableRooms > 0) {\n setAvailableRooms(1);\n }\n }, [isDorm, room, aRooms]);\n\n useEffect(() => {\n let width = windowSize.width > 901 ? 300 : 400;\n\n setSize(width);\n }, [windowSize]);\n\n const [currentIndex, setCurrentIndex] = useState(0);\n const handleImage = (id) => {\n setViewImage(true);\n setCurrentIndex(id);\n };\n\n useEffect(() => {\n if (selectedRooms?.length === 0) {\n dispatch({ type: hotelInfoTypes.SET_SLOTS, payload: {} });\n }\n }, [selectedRooms?.length]);\n\n // NEW TYPE\n\n const testId = storageService.get(\"testId\") || 0;\n\n useEffect(() => {\n const {\n priceConfig = {},\n defaultGuestCount,\n maxGuestCount,\n HotelRoomAddons,\n pricing,\n extraChildPrice,\n childAgeSplit,\n extraInfantPrice,\n } = room;\n let guests = Object.keys(priceConfig).map(Number);\n let additionalGuestCount = guests.length - defaultGuestCount;\n let averagePrice = 0;\n pricing.forEach((pr) => {\n averagePrice += parseFloat(pr.price);\n });\n averagePrice = averagePrice / pricing?.length;\n let newAddons = [];\n let childAddons = [];\n if (maxGuestCount > defaultGuestCount) {\n for (let i = 1; i <= additionalGuestCount; i++) {\n let addonPrice =\n (priceConfig[defaultGuestCount + i] -\n priceConfig[defaultGuestCount + i - 1]) *\n averagePrice;\n let newAddonObj = {\n hotelRoomId: room?.id,\n hotel_room_id: room?.id,\n price: addonPrice.toFixed(getFixedValue(hotelData?.currency)),\n Addon: {\n name: \"Extra Adult\",\n displayName: t(\"extra_adult\"),\n category: \"person\",\n },\n };\n newAddons.push(newAddonObj);\n }\n if (extraChildPrice) {\n let obj = {\n hotelRoomId: room?.id,\n hotel_room_id: room?.id,\n price: parseFloat(extraChildPrice).toFixed(\n getFixedValue(hotelData?.currency)\n ),\n type: \"child\",\n Addon: {\n name: \"Extra Child\",\n displayName: childAgeSplit\n ? `${t(\"extra_child\")} (${childAgeSplit}-18`\n : `${t(\"extra_child\")} (12-18)`,\n category: \"person\",\n },\n };\n childAddons.push(obj);\n }\n if (extraInfantPrice) {\n let obj = {\n hotelRoomId: room?.id,\n hotel_room_id: room?.id,\n price: parseFloat(extraInfantPrice).toFixed(\n getFixedValue(hotelData?.currency)\n ),\n type: \"infant\",\n Addon: {\n name: \"Extra Child\",\n displayName: childAgeSplit\n ? `${t(\"extra_child\")} (0-${childAgeSplit})`\n : `${t(\"extra_child\")} (0-12)`,\n category: \"person\",\n },\n };\n childAddons.push(obj);\n }\n }\n let newroom = [...HotelRoomAddons, newAddons[0] || []];\n // newAddons?.sort((a, b) => b?.price - a?.price);\n setAddons([...newroom, ...childAddons]);\n setAdultAddons(newAddons);\n setCompareAdultAddons(newAddons);\n }, [selectedRooms, room]);\n\n useEffect(() => {\n if (roomCount > 1) {\n let arr = [...adultAddons, ...compareAdultAddons];\n setAdultAddons(arr);\n }\n }, [roomCount]);\n\n // useEffect(() => {\n // const calculateVisibleItems = () => {\n // return;\n // const items = truncatedLines || [];\n // console.log(items);\n // const container = descriptionRef.current;\n // console.log(\"hi\");\n // if (!container || !items?.length) return;\n // console.log(\"hello\");\n\n // // Create a temporary list to measure\n // const temp = document.createElement(\"ul\");\n // temp.style.cssText = window.getComputedStyle(\n // container.firstChild\n // ).cssText;\n // temp.style.position = \"absolute\";\n // temp.style.visibility = \"hidden\";\n // temp.style.height = \"auto\";\n // temp.style.width = `${container.clientWidth}px`;\n // document.body.appendChild(temp);\n\n // // Binary search to find the maximum number of visible items\n // let start = 0;\n // let end = items.length;\n // let visibleCount = 0;\n\n // while (start <= end) {\n // const mid = Math.floor((start + end) / 2);\n // temp.innerHTML =\n // items\n // .slice(0, mid)\n // .map((item) => `
  • ${item}
  • `)\n // .join(\"\") + \"
  • ...
  • \";\n\n // if (temp.offsetHeight <= container.clientHeight) {\n // visibleCount = mid;\n // start = mid + 1;\n // } else {\n // end = mid - 1;\n // }\n // }\n\n // // Clean up\n // document.body.removeChild(temp);\n\n // // Update state\n // setVisibleItems(items.slice(0, visibleCount));\n // setShowEllipsis(visibleCount < items.length);\n // };\n\n // // Calculate initially\n // calculateVisibleItems();\n\n // // Recalculate on resize\n // const resizeObserver = new ResizeObserver(calculateVisibleItems);\n // resizeObserver.observe(descriptionRef?.current);\n\n // return () => {\n // resizeObserver.disconnect();\n // };\n // }, [truncatedLines?.truncatedLines]);\n\n useEffect(() => {\n const calculateVisibleItems = () => {\n // Your original logic remains unchanged\n const items = truncatedLines || [];\n const container = descriptionRef.current;\n if (!container || !items?.length) return;\n\n // Create a temporary list to measure\n const temp = document.createElement(\"ul\");\n temp.style.cssText = window.getComputedStyle(\n container.firstChild\n ).cssText;\n temp.style.position = \"absolute\";\n temp.style.visibility = \"hidden\";\n temp.style.height = \"auto\";\n temp.style.width = `${container.clientWidth}px`;\n document.body.appendChild(temp);\n\n // Binary search to find the maximum number of visible items\n let start = 0;\n let end = items.length;\n let visibleCount = 0;\n\n while (start <= end) {\n const mid = Math.floor((start + end) / 2);\n temp.innerHTML =\n items\n .slice(0, mid)\n .map((item) => `
  • ${item}
  • `)\n .join(\"\") + \"
  • ...
  • \";\n\n if (temp.offsetHeight <= container.clientHeight) {\n visibleCount = mid;\n start = mid + 1;\n } else {\n end = mid - 1;\n }\n }\n\n // Clean up\n document.body.removeChild(temp);\n\n // Update state\n setVisibleItems(items.slice(0, visibleCount));\n setShowEllipsis(visibleCount < items.length);\n };\n\n if (descriptionRef.current) {\n // Ensure descriptionRef.current exists before observing\n const resizeObserver = new ResizeObserver(calculateVisibleItems);\n resizeObserver.observe(descriptionRef.current);\n\n // Cleanup on unmount\n return () => {\n resizeObserver.disconnect();\n };\n }\n }, [truncatedLines?.truncatedLines]);\n\n const handleSelectedSlots = (slot, isDisable) => {\n if (isDisable) {\n return;\n }\n fireGtmEvent(\"slot_selected\", { slot });\n dispatch({\n type: hotelInfoTypes.SET_SLOTS,\n payload: {},\n });\n let obj = {};\n const { HotelRooms = [] } = hotelData;\n\n let filterRooms =\n HotelRooms?.filter((rms) =>\n rms?.hourly?.some((hr) => hr?.hour === slot?.hour)\n ) || [];\n\n let removeRooms = [];\n filterRooms.forEach((rms) => {\n const { hourly = [] } = rms;\n if (hourly?.length > 0) {\n var newobj = {};\n let arr = hourly?.filter((hr) => hr?.hour === slot?.hour) || [];\n if (arr?.length > 0) {\n newobj = arr[0];\n }\n if (arr?.length > 0) {\n removeRooms = [\n ...removeRooms,\n ...selectedRooms\n ?.filter((rem) => rem?.id === rms?.id)\n ?.map((rm) => rm?.id),\n ];\n obj = { ...obj, [newobj?.roomId]: newobj };\n }\n }\n });\n if (Object.keys(obj).length > 0) {\n let arr = [...selectedRooms];\n arr.forEach((rm) => {\n if (!removeRooms.includes(rm?.id))\n dispatch({ type: hotelInfoTypes.DESELECT_ROOM, payload: rm });\n });\n dispatch({\n type: hotelInfoTypes.SET_SLOTS,\n payload: obj,\n });\n if (roomCount === 0 && selectedRooms?.length === 0) {\n if (testId === 0) {\n let adultC =\n totalAdult <= room?.maxGuestCount ? totalAdult : maxGuestCount;\n dispatch({\n type: hotelInfoTypes.SELECT_ROOM,\n payload: {\n idx: 1,\n sAdult: adultC,\n sChild: 0,\n sInfant: 0,\n ...room,\n },\n });\n } else {\n dispatch({\n type: hotelInfoTypes.SET_ROOM,\n payload: room,\n });\n }\n // remove stuff\n // change above payload to room from { idx: 1, sAdult: 2, sChild: 0, sInfant: 0, ...room }\n // end remove stuff\n }\n dispatch({\n type: hotelInfoTypes.SET_HOUR,\n payload: slot?.hour,\n });\n }\n };\n\n const changeRoomCount = (e) => {\n let temp = Number(e.target.value);\n fireGtmEvent(\"room_added\", {\n selectedRooomCount: temp,\n room,\n });\n\n if (hotelData?.userId === 103376 && window && window?.gtag) {\n window?.gtag(\"event\", \"add_to_cart\", {\n value: price,\n currency: hotelData?.currency,\n items: [\n {\n price: price, // Room price per night\n item_id: hotelData?.id, // Room ID or SKU\n item_name: room?.roomName, // Room name\n },\n ],\n });\n }\n\n let userHistory = JSON.parse(localStorage.getItem(\"userHistory\")) || {};\n let historyObj = {\n id: hotelData?.id,\n checkInDate: dayjs(dateRange?.startDate).format(\"YYYY-MM-DD\"),\n checkOutDate: dayjs(dateRange?.endDate).format(\"YYYY-MM-DD\"),\n currenDate: dayjs().format(\"YYYY-MM-DD HH:mm\"),\n event: \"room_added\",\n };\n let tempHistory = userHistory[hotelData?.id] || [];\n userHistory = {\n ...userHistory,\n [hotelData?.id]: [...tempHistory, historyObj],\n };\n localStorage.setItem(\"userHistory\", JSON.stringify(userHistory));\n\n let isHighCalled = storageService.get(\"newHighEventCalled\") || false;\n if (!isHighCalled) {\n pixelHighIntent(\"potential_guest\");\n storageService.set(\"newHighEventCalled\", true);\n }\n setSelectedRoomCount(temp);\n\n if (temp >= 0) {\n dispatch({\n type: hotelInfoTypes.RESET_ROOM,\n payload: { id: room?.id, resetAdn: false },\n });\n if (window) {\n window?.gtag(\"event\", \"add_to_cart\", {\n value: room?.pricing?.[0]?.price * temp,\n items: [\n {\n id: id,\n start_date: dayjs(dateRange.startDate).format(\"YYYY-MM-DD\"),\n end_date: dayjs(dateRange.endDate).format(\"YYYY-MM-DD\"),\n google_business_vertical: \"hotel_rental\",\n },\n ],\n });\n }\n let adult =\n totalAdult + totalChild <= maxGuestCount ? totalAdult : maxGuestCount;\n let child =\n room?.extraChildPrice && totalAdult + totalChild <= maxGuestCount\n ? totalChild\n : 0;\n for (let i = 0; i < temp; i++) {\n let obj = {\n idx: i + 1,\n sAdult: adult,\n sChild: child,\n sInfant: 0,\n ...room,\n };\n dispatch(addRoom(obj));\n addRoomAds();\n }\n } else if (temp < 0 && roomCount > 0) {\n dispatch({\n type: hotelInfoTypes.RESET_ROOM,\n payload: { id: room?.id, resetAdn: true },\n });\n fireGtmEvent(\"room_removed\", {\n room,\n });\n if (hotelData?.userId === 103376 && window && window?.gtag) {\n window?.gtag(\"event\", \"remove_from_cart\", {\n value: price,\n currency: hotelData?.currency,\n items: [\n {\n price: price, // Room price per night\n item_id: hotelData?.id, // Room ID or SKU\n item_name: room?.roomName, // Room name\n },\n ],\n });\n }\n }\n };\n\n // RATE PLANS EDITION\n\n useEffect(() => {\n if (isRatePlans && room?.availableRooms) {\n setRPRoomCount(room?.availableRooms || 0);\n } else {\n setRPRoomCount(0);\n }\n }, [room?.id]);\n\n const rpTypes = useMemo(() => {\n if (!isRatePlans) return [];\n return pricing\n ?.filter(\n (obj, index, self) =>\n index ===\n self.findIndex((t) => t[\"ratePlanCode\"] === obj[\"ratePlanCode\"])\n )\n ?.map((tp) => tp?.ratePlanCode);\n }, [pricing]);\n\n useEffect(() => {\n if (promotions?.length > 0) {\n let ar = arrangePromos(promotions);\n setArrangedPromos(ar);\n } else {\n setArrangedPromos([]);\n }\n }, [promotions, hotelData?.id]);\n\n const { rmPrice, rmTax, rmPriceReduced, noDiscPrice, basePrice } =\n useMemo(() => {\n let tempAdult =\n totalAdult <= room?.maxGuestCount ? totalAdult : room?.maxGuestCount,\n tempChild = 0,\n tempPrice = 0,\n priceReduced = 0,\n tempTax = 0,\n noDiscPrice = 0,\n promosApplied = [];\n let defaultPrice = 0;\n let isDiffConfig = chosenPriceConfig === \"priceConfigDifference\";\n const priceForAll = calculateRooms();\n if (priceForAll.length > 0) {\n setSearchGuestCount(totalAdult + totalChild);\n setSearchRoomCount(priceForAll.length);\n setUseSearchData(true);\n setSearchData(priceForAll);\n\n priceForAll.forEach((pfa) => {\n tempAdult = pfa.adults;\n tempChild = pfa.children;\n pricing.forEach((pr, idx) => {\n let sum = 0,\n prVal = 0;\n\n if (isDiffConfig && room?.priceConfigDifference) {\n sum += pr?.price + parseFloat(priceConfigDifference[tempAdult]);\n } else {\n sum += pr?.price * parseFloat(priceConfig[tempAdult]);\n }\n\n // if (tempInfant && tempInfant > 0) {\n // sum += room?.extraInfantPrice * tempInfant;\n // }\n\n if (tempChild && tempChild > 0) {\n sum += room?.extraChildPrice * tempChild;\n }\n noDiscPrice += sum;\n const promo = getApplicablePromotionRoom({\n arrangedPromos: promotions,\n rp: { roomId: room?.id },\n tempPrice: sum,\n checkInDate: pr?.date,\n });\n\n if (promo) {\n promosApplied.push(promo);\n }\n let { finalValue, reducedPrice } = calculatePromotion({\n price: sum,\n promo,\n idx,\n dateCount,\n });\n\n priceReduced += reducedPrice;\n\n const taxObj = getCalculatedTax({\n taxes: taxes,\n rooms: [{ id: room?.id, amount: finalValue }],\n isInclusive: hotelData?.isTaxIncluded,\n noOfNights: 1,\n });\n tempPrice +=\n finalValue + (hotelData?.isTaxIncluded ? taxObj.totalRoomTax : 0);\n tempTax += Math.abs(taxObj.totalRoomTax);\n\n if (isHourlyRoom) {\n let slotObj = roomSlots[room?.id];\n let defaultPrice = 0;\n if (isDiffConfig && priceConfigDifference) {\n defaultPrice =\n Number(pr?.price) +\n parseFloat(priceConfigDifference[room?.defaultGuestCount]);\n } else {\n defaultPrice =\n Number(pr?.price) *\n parseFloat(priceConfig[room?.defaultGuestCount]);\n }\n\n if (tempAdult <= room?.defaultGuestCount) {\n tempPrice = defaultPrice * slotObj?.percentage;\n } else {\n if (isDiffConfig && priceConfigDifference) {\n tempPrice =\n defaultPrice * slotObj?.percentage +\n priceConfigDifference[room?.sAdult];\n } else {\n tempPrice =\n defaultPrice * slotObj?.percentage +\n (priceConfig[room?.sAdult] * defaultPrice - defaultPrice);\n }\n }\n priceReduced = 0;\n tempTax = 0;\n }\n });\n });\n } else {\n setSearchData([]);\n setSearchGuestCount(tempAdult);\n setSearchRoomCount(1);\n setUseSearchData(false);\n pricing.forEach((pr, idx) => {\n let sum = 0,\n prVal = 0;\n\n if (isDiffConfig && priceConfigDifference) {\n sum += pr?.price + parseFloat(priceConfigDifference[tempAdult]);\n } else {\n sum += pr?.price * parseFloat(priceConfig[tempAdult]);\n }\n noDiscPrice += sum;\n const promo = getApplicablePromotionRoom({\n arrangedPromos: promotions,\n rp: { roomId: room?.id },\n tempPrice: sum,\n checkInDate: pr?.date,\n });\n\n if (promo) {\n promosApplied.push(promo);\n }\n let { finalValue, reducedPrice } = calculatePromotion({\n price: sum,\n promo,\n idx,\n dateCount,\n });\n\n priceReduced += reducedPrice;\n\n const taxObj = getCalculatedTax({\n taxes: taxes,\n rooms: [{ id: room?.id, amount: finalValue }],\n isInclusive: hotelData?.isTaxIncluded,\n noOfNights: 1,\n });\n tempPrice +=\n finalValue + (hotelData?.isTaxIncluded ? taxObj.totalRoomTax : 0);\n tempTax += Math.abs(taxObj.totalRoomTax);\n\n if (isHourlyRoom) {\n if (isDiffConfig && priceConfigDifference) {\n defaultPrice =\n Number(pr?.price) +\n parseFloat(priceConfigDifference[room?.defaultGuestCount]);\n } else {\n defaultPrice =\n Number(pr?.price) *\n parseFloat(priceConfig[room?.defaultGuestCount]);\n }\n\n // if (tempAdult <= room?.defaultGuestCount) {\n // tempPrice = defaultPrice;\n // } else {\n // if (isDiffConfig && priceConfigDifference) {\n // tempPrice = defaultPrice + priceConfigDifference[tempAdult];\n // } else {\n // tempPrice =\n // defaultPrice +\n // priceConfig[tempAdult] * defaultPrice -\n // defaultPrice;\n // }\n // }\n priceReduced = 0;\n tempTax = 0;\n }\n });\n }\n\n if (room?.availableRooms && !isRatePlans) {\n const lowestPrice = storageService.get(\"lowestPrice\") ?? Infinity;\n storageService.set(\n \"lowestPrice\",\n Math.min(lowestPrice, tempPrice * extraPrice + tempTax * extraPrice)\n );\n }\n\n return {\n rmPrice: Number(tempPrice * extraPrice),\n rmTax: Number(tempTax * extraPrice),\n rmPriceReduced: Number(priceReduced * extraPrice),\n noDiscPrice: Number(noDiscPrice * extraPrice),\n basePrice: defaultPrice,\n };\n }, [pricing, arrangedPromos, isHourlyRoom, dateRange]);\n\n function calculateRooms() {\n let rooms = [];\n let remainingAdults = totalAdult;\n let remainingChildren = totalChild;\n\n if ((totalChild > 0 && !room?.extraChildPrice) || isHourlyRoom) {\n return [];\n }\n\n for (let i = 0; i < availableRooms; i++) {\n if (remainingAdults === 0 && remainingChildren === 0) break;\n\n let currentRoom = {\n adults: 0,\n children: 0,\n infants: 0,\n };\n\n // Ensure at least one adult in the room\n if (remainingAdults > 0) {\n currentRoom.adults = 1;\n remainingAdults -= 1;\n } else {\n break; // No more adults to place with children\n }\n\n // Fill the remaining space in the room with children first\n let remainingSpace = maxGuestCount - currentRoom.adults;\n if (remainingChildren > 0) {\n if (remainingChildren >= remainingSpace) {\n currentRoom.children = remainingSpace;\n remainingChildren -= remainingSpace;\n } else {\n currentRoom.children = remainingChildren;\n remainingChildren = 0;\n }\n }\n\n // Fill any remaining space with adults\n remainingSpace =\n maxGuestCount - (currentRoom.adults + currentRoom.children);\n if (remainingSpace > 0 && remainingAdults > 0) {\n if (remainingAdults >= remainingSpace) {\n currentRoom.adults += remainingSpace;\n remainingAdults -= remainingSpace;\n } else {\n currentRoom.adults += remainingAdults;\n remainingAdults = 0;\n }\n }\n\n rooms.push(currentRoom);\n }\n\n // Check if all guests are accommodated\n if (remainingAdults > 0 || remainingChildren > 0) {\n return [];\n }\n\n return rooms;\n }\n\n const addSearchData = () => {\n if (searchData.length <= 0) {\n return;\n }\n const checkInDate = dayjs(dateRange?.startDate);\n const checkOutDate = dayjs(dateRange?.endDate);\n const nightDifference = checkOutDate.diff(checkInDate, \"day\");\n // console.log(\"dt\", dateRange, nightDifference, hotelData?.minBookingNights);\n\n if (\n hotelData?.minBookingNights &&\n nightDifference < hotelData.minBookingNights\n ) {\n toastr.error(\n `Minimum booking nights required: ${hotelData.minBookingNights}`\n );\n return;\n }\n for (let i = 0; i < searchData.length; i++) {\n let obj = {\n idx: i + 1,\n sAdult: searchData[i]?.adults,\n sChild: searchData[i]?.children,\n sInfant: searchData[i]?.infants,\n ...room,\n };\n dispatch(addRoom(obj));\n addRoomAds();\n }\n fireGtmEvent(\"searchRoom_added\", { searchData, room });\n };\n\n const addRoomAds = () => {\n if (window) {\n window?.gtag(\"event\", \"conversion\", {\n send_to: \"AW-10960259904/_RXWCJnb3MwZEMCWoeoo\",\n value: rmPrice + rmTax,\n currency: hotelData?.currency,\n event_callback: () => {},\n });\n }\n };\n\n const shouldShowButton =\n isTruncated || room?.description?.split(\"\\n\").length > 2;\n\n return (\n
    \n \n \n {RoomImages?.length === 0 ? (\n RoomImages[0]?.cdnImageUrl && setViewImage(true)}\n />\n ) : (\n {\n handleImage(id);\n fireGtmEvent(\"room_image_expanded\");\n }}\n className=\"room__topLeftContainer\"\n >\n {RoomImages?.map((image, id) => (\n \n ))}\n \n )}\n
    \n \n {room?.availableRooms > 0 && (\n
    \n

    \n {notifications?.some(\n (notification) =>\n notification &&\n typeof notification === \"object\" &&\n Object.keys(notification).length > 0 &&\n Object.keys(notification)[0] === room?.roomName\n ) &&\n getRoomNotification(\n notifications,\n room,\n peopleViewing,\n bookedMinutesAgo,\n randomNumber,\n hotelData\n )}\n

    \n
    \n )}\n \n
    \n

    {roomName}

    \n\n {!isModify && isFirst && availableRooms > 0 && (\n

    \n {hotelData?.HotelRooms?.length === 1\n ? t(\"lowest_price_ever\")\n : t(\"recommended\")}\n

    \n )}\n {isSelected &&

    Current Selection

    }\n
    \n {room?.description && (\n \n {isOverflowing ? (\n \n ) : null}\n
      \n {truncatedLines.map((line, index) => (\n
    • {line}
    • \n ))}\n
    \n {isOverflowing && (\n \n setRoomDescOpen(!isRoomDescOpen)}\n className=\"text-blue-500 ml-2\"\n style={{\n background: \"none\",\n fontWeight: \"800\",\n textDecoration: \"underline\",\n cursor: \"pointer\",\n }}\n >\n {isRoomDescOpen ? \"Close\" : \"View More\"}\n \n \n )}\n \n )}\n \n \n \n

    {t(\"Description\")}

    \n\n \n setRoomDescOpen(!isRoomDescOpen)}\n />\n \n \n\n \n
      \n {room?.description?.split(\"\\n\").map((line, index) => (\n \n {line.trim()}\n \n ))}\n
    \n \n \n \n
    \n
    \n {!isRatePlans && searchData.length === 0 ? (\n guestToDisplay ? (\n

    \n \n }\n tooltip={t(\"min_pax\")}\n />{\" \"}\n {t(\"price_for_upto\")} {guestToDisplay}{\" \"}\n {isDorm ? t(\"bed\") : t(\"guests\")}\n

    \n ) : (\n

    \n \n }\n tooltip={t(\"min_pax\")}\n />{\" \"}\n {t(\"price_for\")}\n {defaultGuestCount === 1 ? \" \" : ` ${t(\"upto\")}`}{\" \"}\n {defaultGuestCount} {isDorm ? t(\"bed\") : t(\"guests\")}\n

    \n )\n ) : null}\n {isDorm ? (\n

    \n \n }\n tooltip={t(\"max_bed\")}\n />\n {aRooms} {t(\"bed_dorm\")}\n

    \n ) : maxGuestCount - defaultGuestCount > 0 && !guestToDisplay ? (\n

    \n \n }\n tooltip={t(\"max_pax\")}\n />\n {t(\"max\")} {maxGuestCount - defaultGuestCount}{\" \"}\n {t(\"additional_guests\")}\n

    \n ) : (\n <>\n )}\n {!isRatePlans && (\n
    \n {freeFood?.map((food, id) => {\n return (\n \n {\" \"}\n \n }\n tooltip={t(\"free\")}\n />{\" \"}\n {food?.Addon?.name} {t(\"included\")}\n

    \n );\n })}\n\n {freeGuest?.map((food, id) => {\n return (\n \n {\" \"}\n \n }\n tooltip={t(\"verified\")}\n />{\" \"}\n {food?.Addon?.name} {t(\"can_stay_for_free\")}\n

    \n );\n })}\n\n {showCancel && !isRatePlans && (\n

    \n {\" \"}\n \n }\n tooltip=\"Verified\"\n />{\" \"}\n {t(\"free_cancellation_till\")} {lastDates}\n

    \n )}\n {isCOD && (\n

    \n {\" \"}\n \n }\n tooltip={t(\"verified\")}\n />{\" \"}\n {t(\"book_now_pay_later\")}\n

    \n )}\n {partialPercentage && !isCOD && (\n

    \n {\" \"}\n \n }\n tooltip={t(\"verified\")}\n />{\" \"}\n {t(\"reserve_at_just\")} {currencies(hotelData?.currency)}\n {((partialPercentage / 100) * price).toFixed(\n getFixedValue(hotelData?.currency)\n )}\n !\n

    \n )}\n
    \n )}\n
    \n
    \n \n
    \n {HotelRoomAmenities?.map((am, id) => {\n return (\n

    \n \n {am?.Amenity?.Trasalations?.[0]?.name || am?.Amenity?.name}\n

    \n );\n })}\n
    \n {\n
    \n {availableRooms === 0 ||\n (isRatePlans && !room?.ratePlans) ||\n room?.pricing?.length === 0\n ? t(\"sold_out\")\n : availableRooms < 3 &&\n availableRooms + \" \" + t(\"room_left_hurry_up\")}\n
    \n }\n {/*
    \n {isModify && availableRooms === 0 ? (\n
    \n

    \n {t(\"you_have_selected\")} {t(\"rooms\")}\n

    \n
    \n ) : (\n
    \n \n\n {value}\n \n
    \n )}\n
    */}\n {isHourlyRoom && availableRooms !== 0 && (\n
    \n {hourly?.map((slot) => {\n let isDisable = !(\n isStartTimeBeforeEndTime(\n convert24hrTo12hr(slot?.firstCheckInTime),\n hourlyTime\n ) &&\n isStartTimeBeforeEndTime(\n hourlyTime,\n convert24hrTo12hr(slot?.lastCheckInTime)\n )\n );\n\n let isDiffConfig =\n chosenPriceConfig === \"priceConfigDifference\";\n let tempAdult =\n totalAdult <= maxGuestCount ? totalAdult : maxGuestCount;\n let isTemp = totalAdult <= defaultGuestCount;\n\n return (\n handleSelectedSlots(slot, isDisable)}\n key={slot?.id}\n >\n \n {currencies(hotelData?.currency)}{\" \"}\n {isTemp\n ? (basePrice * Number(slot?.percentage)).toFixed(\n getFixedValue(hotelData?.currency)\n )\n : isDiffConfig && priceConfigDifference\n ? (\n basePrice * slot?.percentage +\n priceConfigDifference[tempAdult]\n ).toFixed(getFixedValue(hotelData?.currency))\n : (\n basePrice * slot?.percentage +\n (priceConfig[tempAdult] * basePrice - basePrice)\n ).toFixed(getFixedValue(hotelData?.currency))}\n \n\n

    \n {slot?.hour} {t(\"hour\")}\n

    \n
    \n );\n })}\n \n )}\n {/* Secret Member Deal */}\n {!isRatePlans &&\n secretMemberDetails?.name &&\n secretMemberDetails?.description &&\n isSecretMemberUnlocked && (\n \n

    {secretMemberDetails?.name}

    \n
    \n

    {secretMemberDetails?.description}

    \n \n )}\n
    \n {!isRatePlans && (\n
    \n
    \n {availableRooms !== 0 && rmPriceReduced > 0 && (\n <>\n {rmPriceReduced > 0 && (\n \n \n {/* {(\n noDiscPrice -\n (!hotelData?.isTaxIncluded ? 0 : rmTax)\n ).toFixed(getFixedValue(hotelData?.currency))}{\" \"} */}\n {(\n (Number(noDiscPrice) || 0) -\n (!hotelData?.isTaxIncluded\n ? 0\n : Number(rmTax) || 0) /\n Math.max(dateCount, 1)\n ).toFixed(getFixedValue(hotelData?.currency))}\n {\" \"}\n \n {\" \"}\n {currencies(hotelData?.currency)}{\" \"}\n {rmPriceReduced.toFixed(\n getFixedValue(hotelData?.currency)\n )}{\" \"}\n {t(\"off\")}\n \n \n )}\n \n )}\n
    \n {/* FAKE PRICE */}\n {promotions?.length < 1 && storageService.get(\"subscribed\") && (\n \n \n \n {currencies(hotelData?.currency)}\n \n \n \n \n {(rmPrice * 1.15 * extraPrice).toFixed(\n getFixedValue(hotelData?.currency)\n )}\n \n \n
    \n )}\n {availableRooms > 0 && !isHourlyRoom && !isRatePlans && (\n
    \n

    \n \n {currencies(hotelData?.currency)}{\" \"}\n {rmPrice.toFixed(getFixedValue(hotelData?.currency))}{\" \"}\n \n

    \n

    \n \n / {dateCount > 1 ? dateCount : null}{\" \"}\n {t(pluralWords(dateCount, \"night\"))}\n \n

    \n {rmTax > 0 ? (\n

    \n + {currencies(hotelData?.currency)}{\" \"}\n {rmTax?.toFixed(getFixedValue(hotelData?.currency))}{\" \"}\n {t(\"taxes\")}\n

    \n ) : (\n t(\"incl_of_taxes\")\n )}\n {searchData.length >= 1 && (\n

    \n {searchGuestCount}{\" \"}\n {t(pluralWords(searchGuestCount, \"guest\"))}{\" \"}\n {searchRoomCount}{\" \"}\n {t(\n pluralWords(searchRoomCount, isDorm ? \"bed\" : \"room\")\n )}\n

    \n )}\n {isVRHotel ? (\n \n (This room can accommodate up to {maxGuestCount || 1}{\" \"}\n guests)\n \n ) : null}\n
    \n )}\n
    \n )}\n\n {!isHourlyRoom && !isRatePlans && !isModify && (\n \n

    {t(\"view_room\")}

    \n \n )}\n {availableRooms !== 0 && !isRatePlans && (\n <>\n {(!isHourlyRoom || selectedRooms?.length > 0) &&\n (testId === 0 ? (\n searchData.length > 0 &&\n !isHourlyRoom &&\n !selectedRooms?.some((rm) => rm?.id === room?.id) ? (\n \n {t(\"select\")} {isDorm ? t(\"bed\") : t(\"room\")}\n \n ) : (\n <>\n \n {t(\"select_rooms\")}\n \n 0 && \"#fff\",\n color:\n roomCount > 0\n ? mmtColorHotels.includes(hotelData?.id)\n ? \"var(--primary-color)\"\n : \"var(--blue)\"\n : \"#fff\",\n fontWeight: roomCount > 0 && \"bold\",\n }}\n onChange={changeRoomCount}\n >\n \n {Array.from({ length: availableRooms }).map(\n (_, id) => (\n \n )\n )}\n \n \n )\n ) : (\n \n ))}\n \n )}\n \n {!isRatePlans && availableRooms > 0 && (\n \n setSecretMemberDetails({ name, description })\n }\n getSecretMemberDealUrl={getSecretMemberDealUrl}\n applyPromotion={applyPromotion}\n />\n )}\n {isHourlyRoom && roomCount > 0 && (\n \n {roomCount}{\" \"}\n {roomCount > 1\n ? isDorm\n ? t(\"Beds\")\n : t(\"rooms\")\n : isDorm\n ? t(\"bed\")\n : t(\"room\")}{\" \"}\n {t(\"selected\")}\n \n )}\n \n \n \n {isRatePlans &&\n availableRooms > 0 &&\n room?.ratePlans &&\n rpTypes?.map(\n (pr, id) =>\n room?.ratePlans[pr] && (\n \n )\n )}\n \n {!isDorm && testId === 0 && (\n \n
    \n {Array.from({ length: roomCount }).map((_, id) => {\n return (\n \n );\n })}\n
    \n \n )}\n \n {\n ad?.Addon?.category === \"meal\") &&\n \"1px solid #dadada\",\n borderRadius: testId === 0 && \"0 0 8px 8px\",\n }}\n >\n {addons?.map((addon, id) => {\n let customAddonName = addon?.Addon?.name;\n if (hotelData?.userId == 88913) {\n const addonNameMap = {\n Breakfast: \"Suhoor\",\n Dinner: \"Iftar\",\n };\n customAddonName =\n addonNameMap[customAddonName] || customAddonName;\n }\n return (\n
    \n {roomCount > 0 && addon.price !== \"0.00\" ? (\n addon?.Addon?.category === \"person\" ? (\n totalPeople > defaultGuestCount &&\n defaultGuestCount < maxGuestCount &&\n testId !== 0 && (\n
    \n {\" \"}\n
    \n \n {addon?.Addon?.name === \"Extra Adult\" ? (\n \"user\"\n ) : (\n \"user\"\n )}{\" \"}\n {t(\"add\")}{\" \"}\n {addon?.Addon?.displayName || addon?.Addon?.name}{\" \"}\n {\" \"}\n

    \n ({currencies(hotelData?.currency)}{\" \"}\n {addon?.Addon?.name === \"Extra Adult\"\n ? adultAddons[extraAdult]?.price ||\n adultAddons[adultAddons?.length - 1]?.price\n : addon?.price}\n / {t(\"room\")} / {t(\"day\")}) ({t(\"incl_of_taxes\")})\n

    \n
    \n
    \n )\n ) : addon?.Addon?.category === \"meal\" ? (\n
    \n rm?.id === room?.id)\n ?.length\n }\n />\n
    \n \n \"food\"{\" \"}\n {customAddonName}{\" \"}\n \n

    \n ( {currencies(hotelData?.currency)} {addon?.price} /\n {t(\"person\")} / {t(\"day\")}) ({t(\"incl_of_taxes\")})\n

    \n
    \n
    \n ) : null\n ) : (\n <>\n )}\n
    \n );\n })}\n \n }\n \n {!storageService.get(\"subscribed\") &&\n !sourceTest.includes(storageService.get(\"source\")) &&\n !window.location.href.includes(\"/rooms/\") &&\n showFakePrice &&\n availableRooms > 0 && (\n
    \n

    {t(\"unlock_additional_discount\")}

    \n {\n fireGtmEvent(\"subscribe_popup_shown\", { position: \"room\" });\n showLoyal(true);\n }}\n style={{ fontSize: \"0.8rem\" }}\n >\n {t(\"unlock\")} 🔓\n \n
    \n )}\n {viewImage && (\n img?.cdnImageUrl //+ `?tr=w-${size},h-300,q-${IMAGE_QUALITY},fo-auto`\n // // return `${img.cdnImageUrl}?tr=w-${size},ar-1-1,q-${IMAGE_QUALITY}`;\n // )}\n src={RoomImages?.map(\n (img) =>\n `${img?.cdnImageUrl}?tr=w-1000,fo-contain,q-${IMAGE_QUALITY}`\n )}\n currentIndex={currentIndex}\n disableScroll={false}\n closeOnClickOutside={true}\n onClose={setViewImage}\n />\n )}\n \n );\n};\n\nexport default Room;\n"],"names":["_ref","isOpen","setIsOpen","children","width","height","overflow","_jsx","className","onClick","toggleDrawer","style","e","stopPropagation","onClose","isUnlocked","getSecretMemberDealUrl","applyPromotion","isSignup","setIsSignup","useState","usePhoneLogin","setUsePhoneLogin","formData","setFormData","email","name","phone","otp","emailOtp","phoneOtp","setPhone","otpSent","setOtpSent","otpResponse","setOtpResponse","isVerified","useRef","loading","isLoading","handleChange","target","value","defaultCountry","setDefaultCountry","hotelData","dateRange","useSelector","state","hotelInfo","handleSubmit","async","isResend","arguments","length","undefined","preventDefault","dialCode","mobile","parsedPhone","parsePhoneNumber","String","countryCallingCode","nationalNumber","error","toastr","emailArray","split","map","trim","emailRegex","every","test","reqObj","console","log","response","otpCreateLoginAccount","otpLoginAccount","status","handleGetOtpCommon","current","_otpResponse$data9","_otpResponse$data10","_otpResponse$data11","_otpResponse$data12","sessionId","data","verifyOtpCreateLoginAccount","verifyOtpLoginAccount","_response$data","_response$data$user","sessionStorage","setItem","user","firstName","handleVerifyOtpCommon","phoneNumber","bookingTokenApi","gender","receiveEmails","dob","regMedium","useEffect","country","storageService","get","locx","styles","_jsxs","src","close_icon","alt","gift_box","onSubmit","styles1","form","modalHeader","giftIconContainer","unlock_icon","btrue","title","subtitle","type","placeholder","onChange","input","required","disabled","PhoneInput","submitButton","_Fragment","switchText1","link","background","switchText","price","isRatePlan","selectRoomBtn","getMembershipDetails","showMembershipModal","setShowMembershipModal","getItem","isEnabledRef","membershipDetails","setMembershipDetails","description","dispatch","useDispatch","id","url","fetchPromotionsApi","_response$data$","_response$data2","_response$data2$","_response$data3","_response$data4","_response$data5","_response$data5$","_response$data6","_response$data6$","chainName","fetchPromotions","enableSecretMemberDeal","currency","unlockSVG","MembershipDealsModal","dayjs","isBetween","Button","_promo","setValue","maxValue","room","isHourlyRoom","RoomImages","maxGuestCount","defaultGuestCount","defaultPrice","availableRooms","promotions","roomSlots","hourlyTime","selectedRooms","promo","sort","a","b","discount","t","useTranslation","increment","_window","arr","Object","keys","includes","_roomSlots$room$id","_roomSlots$room$id2","filter","ar","isStartTimeBeforeEndTime","convert24hrTo12hr","firstCheckInTime","lastCheckInTime","_window2","val","addRoom","fireGtmEvent","room_name","roomName","roomId","totalPrice","pricePerNight","parseInt","photos","oneRoomLeft","userId","window","gtag","items","item_id","item_name","minus","decrement","_window3","_window4","deselectRoom","plus","display","justifyContent","alignItems","gap","AddonButton","_ref2","extraChild","setExtraChild","extraAdult","setExtraAdult","addon","setPeople","totalPeople","guestToDisplay","roomCount","extraInfant","setExtraInfant","adultAddons","selectedAddons","_addon$Addon2","deselectAddon","addonName","Addon","addonPrice","addonId","hotelRoomId","hotel_room_id","_addon$Addon3","_addon$Addon4","prev","_selectedAddons$filte","guestCount","adn","_adn$Addon","category","_addon$Addon","startsWith","addAddon","addon_name","addon_price","addon_id","MealAddon","_ref3","_addon$Addon5","_addon$Addon6","breakfast","lunch","dinner","setBreakfast","setLunch","setDinner","NewSelectionSlot","_ref4","extraInfantPrice","extraChildPrice","childAgeSplit","childAgeLimit","isRatePlans","selectedAdultCount","setSelectedAdultCount","selectedChildCount","setSelectedChildCount","selectedInfantCount","setSelectedInfantCount","thisRoom","setThisRoom","isSetRoom","setIsSetRoom","isRoomDescOpen","setRoomDescOpen","rom","rm","Number","idx","sAdult","sChild","sInfant","hotelInfoTypes","SET_ROOM","payload","useWindowSize","padding","color","count","roomIndex","Array","from","_","uuid","RateplanSlot","_ref5","thisPlan","maxAdultCount","maxChildCount","maxInfantCount","cnt","obj","EDIT_RP","borderTop","Math","abs","RatePlanContainer","_ref6","_pricing$filter","_pricing$filter2","_room$roomName","_room$roomName$toLowe","_rpObject$name","_rpObject$name$toLowe","_room$roomName2","_room$roomName2$toLow","_rpObject$name2","_rpObject$name2$toLow","_rpObject$inclusions","_rpObject$inclusions2","_rpObject$inclusions3","_rpObject$inclusions4","code","rateplan","extraPrice","setAvailableRooms","maxRoomPerBooking","rpRoomCount","setRPRoomCount","selectedRPRoomCount","setSelectedRPRoomCount","notificationStyle","handleRoomPrice","pricingfornotifications","rpObject","JSON","parse","ratePlanConfig","ratePlanId","arrangedPromos","setArrangedPromos","setIsLoading","showCancellation","setShowCancellation","cancellationPolicy","setCancellationPolicy","suiteRoomsForNotifications","setsuiteRoomsForNotifications","secretMemberDetails","setSecretMemberDetails","isSecretMemberUnlocked","policies","cancelShown","useMemo","forEach","pol","push","flatMap","result","index","self","findIndex","o","Days_Before","stringify","pricing","pricingAdditionalGuests","isVRHotel","totalAdult","totalChild","totalInfant","dateCount","selectedRatePlans","taxes","x","roomsArray","lowestPrices","Map","roomObj","entries","toLowerCase","has","set","_ref7","roomPrice","filterLowestPriceRooms","final","slice","setTimeout","searchData","setSearchData","showRatePlanModal","setShowRatePlanModal","truncatedDesc","setTruncatedDesc","isTruncated","displayText","arrangePromos","maxAdlt","ratePlanCode","aCount","getLowestPrice","adultCount","childCount","infantCount","minorObj","_pricing$filter3","_pricing$filter3$","adultPricing","pr","priceForPax","childPricing","infantPricng","infants","dates","date","checkInDate","rpArr","_adultPricing$filter","_adultPricing$filter$","sum","dt","priceBeforeTax","_childPricing$filter$","datePrice","childPrice","i","some","_pricing$filter4","_pricing$filter4$","_extraAdultComparePri","_extraAdultComparePri2","extraAdultComparePrice","priceForThis","min","_childPricing$filter$2","_infantPricng$filter$","childDatePrice","infantDatePrice","infantPrice","_pricing$filter5","_pricing$filter5$","_extraAdultComparePri3","_extraAdultComparePri4","taxAmount","priceReduced","tax","promosApplied","searchedRooms","totalAdults","totalChildren","totalInfants","roomQuantity","maxGuests","maxAdults","maxChildren","maxInfants","rooms","remainingAdults","remainingChildren","remainingInfants","minRoomsNeeded","ceil","max","roomAdults","roomChildren","roomInfants","spaceLeft","adults","distributeGuests","_searchedRooms$i","_searchedRooms$i2","_searchedRooms$i3","tempArr","r","tempPrice","getApplicablePromotionRoom","rp","finalValue","reducedPrice","calculatePromotion","taxObj","getCalculatedTax","amount","isInclusive","isTaxIncluded","noOfNights","totalRoomTax","_pricing$filter6","_pricing$filter6$","_storageService$get","lowestPrice","Infinity","selectedCount","_selectedRatePlans$fi","thisSelectedRateplans","thisRoomCount","_selectedRatePlans$fi2","thisRoomIndex","_selectedRatePlans$fi3","_selectedRatePlans$fi4","checkRoomCount","_window6","_window5","_window7","start_date","startDate","format","end_date","endDate","google_business_vertical","obj2","hotelId","roomIds","checkOutDate","addRatePlan","addRatePlanAds","isRoomAvailableApi","SET_UPDATED_ROOM_COUNT","_window8","send_to","event_callback","truncateDescription","limit","words","join","dropCancellation","setDropCancellation","marginLeft","border","backgroundColor","floor","random","ele","fontWeight","fontSize","inclusions","inc","rp_inclusion_icon","inclusionName","handleToggleCancellation","cursor","toFixed","getFixedValue","textDecoration","currencies","pluralWords","sd","indx","CircleLoader","_window9","_window10","DESELECT_RP","_room$pricingAddition","_room$pricingAddition2","_room$pricingAddition3","_room$pricingAddition4","SecretMemberDeal","marginTop","CancellationPolicy","noMargin","Drawer","res","nights","percent","fixed","Penalty_Value","Penalty_Type","RatePlanModal","_ref8","_room$description","_room$pricing2","_hotelData$HotelRooms","_room$description2","_room$pricing3","showFakePrice","lastDates","isFirst","showLoyal","isModify","isSelected","a1Rooms","HotelRoomAddons","HotelRoomAmenities","hourly","priceConfig","chosenPriceConfig","priceConfigDifference","setPrice","setRoomCount","viewImage","setViewImage","size","setSize","isDorm","setIsDorm","shouldAdd","setShouldAdd","showCancel","setShowCancel","setLastDate","partialPercentage","setPartialPercentage","isCOD","setIsCOD","freeFood","setFreeFood","freeGuest","setFreeGuest","priceToDisplay","setPriceToDisplay","setGuestToDisplay","taxAmt","setTax","excludedPrice","setExcludedPrice","addons","setAddons","setAdultAddons","compareAdultAddons","setCompareAdultAddons","aRooms","setARooms","searchGuestCount","setSearchGuestCount","searchRoomCount","setSearchRoomCount","useSearchData","setUseSearchData","isOverflowing","setIsOverflowing","visibleItems","setVisibleItems","showEllipsis","setShowEllipsis","notifications","setnotifications","randomNumber","setRandomNumber","peopleViewing","setpeopleViewing","bookedMinutesAgo","setbookedMinutesAgo","selectedRoomCount","setSelectedRoomCount","windowSize","descriptionRef","payments","updatedRoomCount","hourlyDate","_ref9","notificationDivStyle","paddingLeft","left","bottom","right","top","borderRadius","generateRandomNumber","styleSheet","document","createElement","innerHTML","head","appendChild","number","savedData","localStorage","parts","savedNumber","savedDateStr","today","Date","getFullYear","getMonth","padStart","getDate","dataToStore","err","checkAndSaveRandomNumber","truncatedLines","text","lines","findRoom","filterAddons","checkOverflow","scrollHeight","clientHeight","addEventListener","removeEventListener","amn","_amn$Amenity","_amn$Amenity2","Amenity","tempFood","_adn$Addon2","tempGuest","_adn$Addon3","pay","_pay$Gateway","Gateway","_pay$Gateway2","_payments$filter$","_payments$filter$$con","_pay$Gateway3","config","minPercentage","temp","_temp$","_temp$$HotelPolicies","_temp$2","HotelPolicies","_b$variables","_a$variables","variables","daysBeforeArrival","last","diffDays","_cancellationPolicy$","_cancellationPolicy$$","_last","_last2","_cancellationPolicy$2","_cancellationPolicy$3","_cancellationPolicy$4","_cancellationPolicy$5","chargedPercentage","subtract","diff","_last3","_selectedAddons$filte2","_selectedAddons$filte3","_selectedAddons$filte4","_selectedAddons$filte5","_selectedAddons$filte6","_selectedAddons$filte7","_addon$Addon7","_addon$Addon8","_addon$Addon9","_addon$Addon10","_addon$Addon11","_addon$Addon12","_selectedAddons$filte8","_adn$Addon4","finalPrice","parseFloat","currentIndex","setCurrentIndex","SET_SLOTS","testId","additionalGuestCount","averagePrice","newAddons","childAddons","newAddonObj","displayName","newroom","calculateVisibleItems","container","cssText","getComputedStyle","firstChild","position","visibility","clientWidth","body","start","end","visibleCount","mid","item","offsetHeight","removeChild","resizeObserver","ResizeObserver","observe","disconnect","rpTypes","_pricing$filter7","tp","rmPrice","rmTax","rmPriceReduced","noDiscPrice","basePrice","tempAdult","tempChild","tempTax","isDiffConfig","priceForAll","currentRoom","remainingSpace","calculateRooms","pfa","slotObj","percentage","_storageService$get2","addRoomAds","_window16","IMAGE_QUALITY","objectFit","maxWidth","_RoomImages$","cdnImageUrl","Carousel","infiniteLoop","showStatus","showThumbs","preventMovementUntilSwipeScrollTolerance","showArrows","showIndicators","onClickItem","handleImage","image","srcSet","maxHeight","minHeight","notification","getRoomNotification","animation","viewIcon","city","flexGrow","HotelRooms","wordBreak","overflowWrap","ref","listStyleType","line","flexDirection","boxShadow","zIndex","overflowY","marginBottom","Icon","iconName","userpic","tooltip","roomBunkImg","food","_food$Addon","foodPic","_food$Addon2","check","am","_am$Amenity","_am$Amenity2","_am$Amenity3","_am$Amenity3$Trasalat","_am$Amenity3$Trasalat2","_am$Amenity4","RoomAmenityIcons","Trasalations","ratePlans","slot","_roomSlots$room$id3","isDisable","isTemp","handleSelectedSlots","filterRooms","rms","_rms$hourly","hr","hour","removeRooms","newobj","_selectedRooms$filter","_newobj","rem","DESELECT_ROOM","adultC","SELECT_ROOM","SET_HOUR","Link","to","pathname","htmlFor","mmtColorHotels","_window11","_window12","selectedRooomCount","userHistory","historyObj","currenDate","event","tempHistory","pixelHighIntent","_window13","_room$pricing","_room$pricing$","RESET_ROOM","resetAdn","adult","child","_window14","_window15","addSearchData","nightDifference","minBookingNights","_searchData$i","_searchData$i2","_searchData$i3","textAlign","borderBottom","ad","_ad$Addon","_addon$Addon13","_addon$Addon14","_addon$Addon15","_addon$Addon16","_addon$Addon17","_addon$Addon18","_addon$Addon19","_adultAddons$extraAdu","_adultAddons","_addon$Addon20","_addon$Addon21","_selectedRooms$filter2","customAddonName","Breakfast","Dinner","kidPic","sourceTest","location","href","ImageViewer","img","disableScroll","closeOnClickOutside"],"mappings":";;uHAwBA,MACA,EAAe,IAA0B,8D,uDCtBzC,MAuBA,EAvBeA,IAA+D,IAA9D,OAAEC,EAAM,UAAEC,EAAS,SAAEC,EAAQ,MAAEC,EAAK,OAAEC,EAAM,SAAEC,GAAUN,EAKtE,OACEO,EAAAA,EAAAA,KAAA,OAAAJ,UACEI,EAAAA,EAAAA,KAAA,OACEC,UAAW,mBAAkBP,EAAS,OAAS,IAC/CQ,QAReC,KACnBR,GAAWD,EAAO,EAOQE,UAEtBI,EAAAA,EAAAA,KAAA,OACEC,UAAW,mBAAkBP,EAAS,OAAS,IAC/CU,MAAO,CAAEP,QAAOC,SAAQC,YACxBG,QAAUG,GAAMA,EAAEC,kBAAkBV,SAEnCA,OAGD,C,4DCrBV,QAA+B,2CAA/B,EAAyF,2CAAzF,EAAkJ,0CAAlJ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