@roomstay/frontend 2.6.97-1 → 2.6.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/177.bundle.js +1 -1
  2. package/dist/288.bundle.js +1 -1
  3. package/dist/328.bundle.js +1 -1
  4. package/dist/370.bundle.js +1 -1
  5. package/dist/434.bundle.js +1 -0
  6. package/dist/449.bundle.js +1 -1
  7. package/dist/537.bundle.js +1 -1
  8. package/dist/978.bundle.js +1 -1
  9. package/dist/main.bundle.js +1 -1
  10. package/dist/src/api/AvailabilityAPI.d.ts +5 -5
  11. package/dist/src/api/AvailabilityAPI.js +12 -12
  12. package/dist/src/api/AvailabilityAPI.js.map +1 -1
  13. package/dist/src/api/BaseAPI.d.ts +1 -2
  14. package/dist/src/api/BaseAPI.js.map +1 -1
  15. package/dist/src/api/HotelAPI.d.ts +1 -1
  16. package/dist/src/api/HotelAPI.js +18 -11
  17. package/dist/src/api/HotelAPI.js.map +1 -1
  18. package/dist/src/api/ReservationAPI.d.ts +2 -2
  19. package/dist/src/api/ReservationAPI.js +13 -3
  20. package/dist/src/api/ReservationAPI.js.map +1 -1
  21. package/dist/src/components/generic/PaymentCard/InlinePaymentOption.js +6 -1
  22. package/dist/src/components/generic/PaymentCard/InlinePaymentOption.js.map +1 -1
  23. package/dist/src/components/generic/TaxInclusionNotice/TaxInclusionNotice.d.ts +10 -0
  24. package/dist/src/components/generic/TaxInclusionNotice/TaxInclusionNotice.js +57 -0
  25. package/dist/src/components/generic/TaxInclusionNotice/TaxInclusionNotice.js.map +1 -0
  26. package/dist/src/components/generic/date/DatePicker.d.ts +5 -0
  27. package/dist/src/components/generic/date/DatePicker.js +10 -6
  28. package/dist/src/components/generic/date/DatePicker.js.map +1 -1
  29. package/dist/src/components/generic/date/DatePickerDay.js +2 -1
  30. package/dist/src/components/generic/date/DatePickerDay.js.map +1 -1
  31. package/dist/src/components/steps/addons/AddonCard.js +46 -7
  32. package/dist/src/components/steps/addons/AddonCard.js.map +1 -1
  33. package/dist/src/components/steps/confirmation/GiftCardRedemption.d.ts +2 -0
  34. package/dist/src/components/steps/confirmation/GiftCardRedemption.js +46 -0
  35. package/dist/src/components/steps/confirmation/GiftCardRedemption.js.map +1 -0
  36. package/dist/src/components/steps/confirmation/StepConfirmationForm.js +29 -11
  37. package/dist/src/components/steps/confirmation/StepConfirmationForm.js.map +1 -1
  38. package/dist/src/components/steps/date/StepDatePricePerRoom.js +3 -1
  39. package/dist/src/components/steps/date/StepDatePricePerRoom.js.map +1 -1
  40. package/dist/src/components/steps/hotel/HotelCard.js +3 -1
  41. package/dist/src/components/steps/hotel/HotelCard.js.map +1 -1
  42. package/dist/src/components/steps/hotel/HotelCardModal.js +3 -1
  43. package/dist/src/components/steps/hotel/HotelCardModal.js.map +1 -1
  44. package/dist/src/components/steps/room/AvailableUpgradesModal.js +2 -1
  45. package/dist/src/components/steps/room/AvailableUpgradesModal.js.map +1 -1
  46. package/dist/src/components/steps/room/LargeRoomCard.js +2 -6
  47. package/dist/src/components/steps/room/LargeRoomCard.js.map +1 -1
  48. package/dist/src/components/steps/room/RoomList.js +27 -6
  49. package/dist/src/components/steps/room/RoomList.js.map +1 -1
  50. package/dist/src/components/steps/room/RoomListCrossSellBlock.js +1 -1
  51. package/dist/src/components/steps/room/RoomListCrossSellBlock.js.map +1 -1
  52. package/dist/src/components/steps/room/TabGroupedRooms/TabGroupedRooms.js +4 -1
  53. package/dist/src/components/steps/room/TabGroupedRooms/TabGroupedRooms.js.map +1 -1
  54. package/dist/src/components/steps/room/roomDetails/RoomDetails.js +2 -6
  55. package/dist/src/components/steps/room/roomDetails/RoomDetails.js.map +1 -1
  56. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js +2 -6
  57. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js.map +1 -1
  58. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js +2 -1
  59. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js.map +1 -1
  60. package/dist/src/components/steps/room/roomDetails/roomRates/ReadMoreRoomRateRow.js +2 -6
  61. package/dist/src/components/steps/room/roomDetails/roomRates/ReadMoreRoomRateRow.js.map +1 -1
  62. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js +27 -5
  63. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js.map +1 -1
  64. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js +12 -7
  65. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js.map +1 -1
  66. package/dist/src/components/summary/BEMobileSummaryModal.js +2 -1
  67. package/dist/src/components/summary/BEMobileSummaryModal.js.map +1 -1
  68. package/dist/src/components/summary/BESummary.js +3 -2
  69. package/dist/src/components/summary/BESummary.js.map +1 -1
  70. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js +37 -22
  71. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js.map +1 -1
  72. package/dist/src/contexts/DatePickerContext.d.ts +1 -0
  73. package/dist/src/contexts/DatePickerContext.js.map +1 -1
  74. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.d.ts +8 -0
  75. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.js.map +1 -1
  76. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js +3 -1
  77. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js.map +1 -1
  78. package/dist/src/contexts/HotelOverridesContext.d.ts +1 -0
  79. package/dist/src/contexts/HotelOverridesContext.js +19 -0
  80. package/dist/src/contexts/HotelOverridesContext.js.map +1 -1
  81. package/dist/src/hooks/useCalendarNightStay.d.ts +2 -2
  82. package/dist/src/hooks/useCalendarNightStay.js +4 -4
  83. package/dist/src/hooks/useCalendarNightStay.js.map +1 -1
  84. package/dist/src/index.d.ts +1 -0
  85. package/dist/src/index.js +4 -2
  86. package/dist/src/index.js.map +1 -1
  87. package/dist/src/models/Addon/Addon.d.ts +1 -0
  88. package/dist/src/models/Addon/Addon.js.map +1 -1
  89. package/dist/src/models/Confirmation.d.ts +4 -0
  90. package/dist/src/models/Confirmation.js.map +1 -1
  91. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js +26 -3
  92. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js.map +1 -1
  93. package/dist/src/pages/findReservation/FindReservationResults.js +2 -1
  94. package/dist/src/pages/findReservation/FindReservationResults.js.map +1 -1
  95. package/dist/src/pages/findReservation/ReservationRow.js +11 -6
  96. package/dist/src/pages/findReservation/ReservationRow.js.map +1 -1
  97. package/dist/src/pages/steps/StepGroupedRoom/StepGroupedRoomComponent.js +8 -1
  98. package/dist/src/pages/steps/StepGroupedRoom/StepGroupedRoomComponent.js.map +1 -1
  99. package/dist/src/pages/steps/StepRoom/StepRoomComponent.js +8 -0
  100. package/dist/src/pages/steps/StepRoom/StepRoomComponent.js.map +1 -1
  101. package/dist/src/pages/steps/StepThanks/StepThanksComponent.js +2 -1
  102. package/dist/src/pages/steps/StepThanks/StepThanksComponent.js.map +1 -1
  103. package/dist/src/translations/Translation.d.ts +0 -4
  104. package/dist/src/translations/Translation.js +0 -4
  105. package/dist/src/translations/Translation.js.map +1 -1
  106. package/dist/src/translations/languages/en-gb.js +0 -4
  107. package/dist/src/translations/languages/en-gb.js.map +1 -1
  108. package/dist/src/util/Analytics/GoogleAnalytics4.d.ts +2 -2
  109. package/dist/src/util/Analytics/GoogleAnalytics4.js +2 -2
  110. package/dist/src/util/Analytics/GoogleAnalytics4.js.map +1 -1
  111. package/dist/test.bundle.js +1 -1
  112. package/dist/vendors.bundle.js +1 -1
  113. package/package.json +3 -3
  114. package/dist/870.bundle.js +0 -1
@@ -1 +1 @@
1
- (("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[177],{9177:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return xe}});var a=t(6058),o=t(67294),s=t(26793),n=t(89250),l=t(79655),m=t(13821),i=t(13010),u=t(46409),c=t(19874),d=t(4511),A=t(38279),_=t(31972),p=t(42982),h=t(4942),y=t(89331),C=t(7832),g=t(50683),f=t(71639),w=t(67023),x=t(72258),b=t(49368),v=t(70885),S=t(23115),B=t(94184),E=t.n(B),R=t(87933),k=t(63351),U=t(30584),I=t(60281),N=t(79478),O=t(3473),P=t(14119),Z=t.n(P);function j(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function D(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?j(Object(t),!0).forEach((function(r){(0,h.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function T(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var M=function(e){var r=(0,o.useContext)(a.g7),t=(0,o.useContext)(a.O8).orderUnavailableRoomsLast,n=(0,y.WP)().hotel,l=(0,s.$)().t,m=r.currentRoomSort,u=e.rooms,c=e.group,d=(0,o.useState)({}),A=(0,v.Z)(d,2),_=A[0],C=A[1],g=(0,o.useMemo)((function(){return Object.keys(c.filters||{})}),[c.filters]),f=(0,o.useMemo)((function(){var e,r=function(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return T(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return n=e.done,e},e:function(e){l=!0,s=e},f:function(){try{n||null==t.return||t.return()}finally{if(l)throw s}}}}(g);try{for(r.s();!(e=r.n()).done;){var t,a=e.value,o=null===(t=c.filters)||void 0===t?void 0:t[a];if(null!=o&&o.requireSelection&&!_[a])return l(N.W.Step.Room.SelectDwellingOptionsFirst)}}catch(e){r.e(e)}finally{r.f()}}),[_,g]),w=(0,o.useMemo)((function(){return Object.entries(c.filters).filter((function(e){var r=(0,v.Z)(e,2),t=r[0],a=r[1];return!_[t]&&a.requireSelection})).map((function(e){return(0,v.Z)(e,2)[1].name})).join(", ")}),[_,g]),x=(0,o.useMemo)((function(){var e=(0,p.Z)(u);return 0!==e.length&&e.sort(I.Z.getSortByFunction(m)),null!=n&&n.showUnavailableRooms&&t&&e.sort((function(e,r){return e.isAvailable()&&!r.isAvailable()?-1:!e.isAvailable()&&r.isAvailable()?1:0})),e.filter((function(e){for(var r=0,t=Object.keys(_);r<t.length;r++){var a,o=t[r];if(null!==(a=e.auxiliaryValues)&&void 0!==a&&a[o]&&_[o]&&!e.auxiliaryValues[o].includes("".concat(_[o])))return!1}return e})).map((function(e,r){return o.createElement(O.Z,{key:e.code,room:e,disableMarginBottom:r===u.length-1,bookNowButtonDisabledReason:f})}))}),[u,_,m,t,f]);return o.createElement("div",{className:E()(Z().groupedRoomList,"room-list")},!!c.groupName&&o.createElement("div",{className:Z().groupedRoomListHeader},o.createElement(i.Z,{bold:!0},c.groupName)),!(null==g||!g.length)&&u.length>0&&o.createElement("div",{className:Z().filterContainer},g.map((function(e){var t,a=null===(t=c.filters)||void 0===t?void 0:t[e];if("select"===a.type){var s,n,l=[{label:"All",value:null}].concat((0,p.Z)(a.options)),m=null!==(s=null==_?void 0:_[e])&&void 0!==s?s:null===(n=l[0])||void 0===n?void 0:n.value;return o.createElement("div",{key:e,className:Z().filterItem},o.createElement("div",{className:Z()["filterItem-label"]},a.name,":"),o.createElement(k.P,{keyName:"value",labelName:"label",options:l,value:m,onChange:function(t){C((function(a){var o=D(D({},a),{},(0,h.Z)({},e,t));return r.setCurrentGroupedRoomFilters(o),o}))}}))}}))),w&&o.createElement(R.ZP,{type:R.NK.Accent1,icon:S.Tu.Info},o.createElement(U.ZP,{type:U.yG.Small},"Please select: ",w)),o.createElement("div",{className:"room-list__container"},x))},Y=t(25758),G=t(39136),W=t(84544);function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function F(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?L(Object(t),!0).forEach((function(r){(0,h.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function q(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return z(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?z(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return n=e.done,e},e:function(e){l=!0,s=e},f:function(){try{n||null==t.return||t.return()}finally{if(l)throw s}}}}function z(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var H=function(){var e,r=(0,y.WP)().hotel,t=(0,o.useContext)(a.O8).disableGroupRoomsAllTab,s=(0,G.w)(),n=s.rooms,l=s.isLoading,m=s.loadingAttempted,i=s.apiHasError,u=(0,Y.u)(),c=(0,o.useMemo)((function(){var e;if(!r)return[];var t,a={"list-all":{id:"list-all",groupName:"All Accommodations",filters:{},rooms:[]}},o=q(null!==(e=null==r?void 0:r.roomGroups)&&void 0!==e?e:[]);try{for(o.s();!(t=o.n()).done;){var s=t.value;a[s.id]=F(F({},s),{},{rooms:[]})}}catch(e){o.e(e)}finally{o.f()}var l,m=q(n);try{var i=function(){var e=l.value,t=e.roomGroupId?e.roomGroupId:"list-all";if(!a[t]){var o,s=null==r||null===(o=r.roomGroups)||void 0===o?void 0:o.find((function(e){return e.id===t}));s?a[t]=F(F({},s),{},{rooms:[]}):t="list-all"}a[t].rooms.push(e)};for(m.s();!(l=m.n()).done;)i()}catch(e){m.e(e)}finally{m.f()}for(var u=0,c=Object.keys(a);u<c.length;u++){var d,A,_=c[u];0===(null===(d=a[_])||void 0===d||null===(A=d.rooms)||void 0===A?void 0:A.length)&&"list-all"!==_&&delete a[_]}var p=Object.values(a).filter((function(e){return!!e}));return 1===p.length&&0===p[0].rooms.length&&p.splice(0,1),W.ZP.instance.sendRoomImpressions(),p}),[n,null==r?void 0:r.roomGroups]),d=(0,o.useMemo)((function(){var e;return null!==(e=u.get("defaultTab"))&&void 0!==e?e:void 0}),[]);if(l||!m)return o.createElement(C.Z,null);if(c.length>0&&c.length<=2){var A={groupName:"",filters:{},id:""},_=[];return 2===c.length?(A=c[1],_=c[1].rooms):_=c[0].rooms,o.createElement(M,{group:A,rooms:_})}if(c.length>2){var h=(0,p.Z)(c);return h.splice(0,1),o.createElement("div",{style:{maxWidth:"100%",overflow:"hidden"}},o.createElement(f.Z,{fullBleedOnLineBreak:!1,activeKey:d},o.createElement(g.O,{title:"All Accommodation",navPath:"list-all",key:"list-all",preventScrollTop:!0},t?o.createElement(M,{group:c[0],rooms:n}):null==c?void 0:c.filter((function(e){return e.rooms.length})).map((function(e){return o.createElement(M,{group:e,rooms:e.rooms,key:e.id})}))),h.map((function(e){return o.createElement(g.O,{title:e.groupName,navPath:e.groupName,key:e.id,preventScrollTop:!0},o.createElement(M,{group:e,rooms:e.rooms}))}))))}return o.createElement(o.Fragment,null,i?o.createElement(b.F,null):o.createElement(w.Z,null),null==r||null===(e=r.crossSellHotelIds)||void 0===e?void 0:e.map((function(e){return o.createElement(x.Z,{key:e,hotelId:e})})))},J=t(32941),V=t(41092),$=t(64854),Q=t(78886),K=t(72870),X=t(79740),ee=t(42530),re=t(33409),te=t(25112),ae=t(95494),oe=t(50234),se=t(97754),ne=t(90292),le=t(43261),me=t(6941),ie=t(3748),ue=t(53796),ce=t(65986),de=t(9362),Ae=t.n(de),_e=function(e){var r=e.row,t=e.disabled,a=void 0!==t&&t,n=e.onChange,l=e.promocodeTextColor,m=void 0===l?se.Il.Navy:l,i=e.useUpdatedDesign,u=void 0!==i&&i,c=(0,s.$)().t,d=(0,y.WP)().hotel,A=(null==r?void 0:r.getPromoCodeTooltip(c,N.W))||"",_=(0,o.useRef)(null),p=(0,o.useMemo)((function(){return r&&d?d.memberOnlyPromoCode===r.getPromoCode()?"":r.getPromoCode():""}),[r,d]);return m=p?r.getPromoCodeColour():m,o.createElement(o.Fragment,null,o.createElement(te.Z,{title:A,wrapperClasses:"u-w-100@xl- d-flex",disabled:a},o.createElement("div",{className:E()("u-cursor-pointer",{"--updated":u}),ref:_,style:{width:"100%"}},o.createElement("div",{className:"u-flex align-items-center justify-content-center u-w-100@xl- room-builder-progress--promo",style:{width:"100%"}},o.createElement("div",{style:{width:"100%"}},o.createElement("div",{className:Ae()["user-search-summary-card-label"]},c(N.W.Step.Date.PromoCode)),o.createElement(ce.Z,{value:p,onChange:function(e){n(e)},valid:(null==r?void 0:r.getPromoCodeStatus())!==V.V.New?(null==r?void 0:r.getPromoCodeStatus())===V.V.Valid:void 0,variant:"text",hideValidText:!0,row:r}))))))},pe=function(e){var r,t,a,n=e.row,l=e.hotel,m=e.isSelectedRow,i=e.bookingWizardContext,u=e.maxAdults,c=e.maxChildren,d=e.maxInfants,A=e.showChildren,_=e.setGuest,p=e.setGuests,h=e.changePromoCode,y=e.textColor,C=(0,s.$)().t,g=!0===(null==l||null===(r=l.childConfiguration)||void 0===r?void 0:r.supportInfants),f=null==l||null===(t=l.childConfiguration)||void 0===t?void 0:t.childRange,w=null==l||null===(a=l.childConfiguration)||void 0===a?void 0:a.infantRange;return o.createElement(o.Fragment,null,o.createElement("div",{className:Ae()["user-search-summary-row__divider"]}),o.createElement("div",{className:Ae()["user-search-summary-row__group"]},o.createElement("div",{className:Ae()["user-search-summary-row__input"]},o.createElement("div",{className:Ae()["user-search-summary-card-item"]},o.createElement("div",{className:Ae()["user-search-summary-card-label"]},C(N.W.Misc.Guests)),o.createElement(ie.X.Provider,{value:i},o.createElement(ue.G,{defaultValue:{adults:n.getAdults(),children:n.getChildren(),infants:n.getInfants()},onChange:_,onEditingChange:p,disableChild:!A,showInfants:g,maxAdults:u,maxChildren:c,maxInfants:d,disableRoom:!0,ageRange:{child:f,infant:w}}))))),o.createElement("div",{className:Ae()["user-search-summary-row__divider"]}),o.createElement("div",{className:Ae()["user-search-summary-row__group"]},o.createElement("div",{className:Ae()["user-search-summary-row__input"]},o.createElement(_e,{row:n,onChange:h,disabled:!m,promocodeTextColor:y,useUpdatedDesign:!0}))))},he=function(e){var r,t,n=e.row,l=(e.index,(0,s.$)().t),m=(0,o.useRef)(),i=(0,y.WP)(),u=i.isAccent2ColorDark,c=i.hotel,d=(0,o.useContext)(a.hy),A=d.selectedBasketRow,_=d.currentBasketRows,p=d.updateBasketRow,C=d.removeBasketRow,g=d.selectBasketRow,f=(0,o.useContext)(a.g7),w=(0,oe.i)().isMobile,x=(0,o.useState)(!0),b=(0,v.Z)(x,2),S=b[0],B=b[1],R=(0,o.useMemo)((function(){return(null==A?void 0:A.getID())===(null==n?void 0:n.getID())}),[A]),k=_.length>1,I=function(){W.ZP.instance.sendInteraction("Remove Room",W.s_.BUTTON,W._J.ROOMS),C(n)},O=function(e){var r,t,a,o,s;a=(r={adults:e.adults,children:e.children,infants:e.infants}).children,o=r.infants,s=r.updatedPromoCode,(t=r.adults)&&t!==n.getAdults()&&(W.ZP.instance.sendInteraction("Guests",W.s_.NUMBER_INPUT,W._J.ROOMS),n.setAdults(t)),!a&&0!==a||a===n.getChildren()||(W.ZP.instance.sendInteraction("Guests",W.s_.NUMBER_INPUT,W._J.ROOMS),n.setChildren(a)),!o&&0!==o||o===n.getInfants()||(W.ZP.instance.sendInteraction("Guests",W.s_.NUMBER_INPUT,W._J.ROOMS),n.setInfants(o)),!s&&""!==s||s===n.getPromoCode()||(W.ZP.instance.sendInteraction("Promo Code",W.s_.FORM_FIELD,W._J.ROOMS),n.setPromoCode(s)),p(n)},P=function(e){var r;r=e,W.ZP.instance.sendInteraction("Promo Code",W.s_.FORM_FIELD,W._J.ROOMS),A&&(A.setPromoCode(r),p(A))},Z=n.isValid(),j=f.screenSize>ne.Z.ExtraLarge,D=f.screenSize<=ne.Z.Medium,T=!!Z&&u&&R,M=T?se.Il.White:void 0,Y=(0,o.useState)({adults:null==n?void 0:n.getAdults(),children:null==n?void 0:n.getChildren(),infants:null==n?void 0:n.getInfants()}),G=(0,v.Z)(Y,2),L=G[0],F=G[1],q=(0,ae.X)(),z=q.getMaxSelectableAdults,H=q.showChildren,J=q.getMaxSelectableInfants,V=q.getMaxSelectableChildren,K=z({adults:L.adults,children:L.children}),ie=V({adults:L.adults}),ue=J(),ce=o.createElement(te.Z,{title:k?"Remove this room":"Cannot remove this room as at least one must be selected.",followElement:null==m?void 0:m.current,wrapperClasses:Ae()["user-search-summary-row__remove-tooltip"]},o.createElement("div",{className:Ae()["user-search-summary-row__remove"],onClick:I,ref:m},o.createElement($.Z,{textColor:M,isText:!0,icon:Q.Tu.Close,iconPosition:"right",stopIconAnimation:!0,disabled:!k,onClick:I}))),de=o.createElement("div",{className:Ae()["user-search-summary-row__collapse"]},o.createElement($.Z,{isText:!0,icon:S?Q.Tu.ArrowDown3:Q.Tu.ArrowUp3,iconPosition:"right",stopIconAnimation:!0,onClick:function(){B((function(e){return!e}))}})),_e={layout:"booking-summary",theme:me.mw.Default,type:D?"top-sheet":"popup",isImagesTheme:!1,isImagesThemeMobile:!1,activeSection:null,onNextHandler:function(e){},onPrevHandler:function(e){},stateSections:me.lQ};return Z&&!R?o.createElement("div",{className:"".concat(Ae()["user-completed-summary-row"]," u-flex w-100")},o.createElement("div",{className:"u-flex justify-content-start"},o.createElement("div",{className:"u-flex flex-column"},o.createElement("span",null,o.createElement(U.ZP,{inline:j},o.createElement("strong",null,n.getRoom().name)),o.createElement(U.ZP,{inline:j,type:j?U.yG.Body:U.yG.Small},o.createElement("span",{className:"u-marg-left--light@xl"},le.Z.pluralWithDictAndCount(n.getAdults(),N.W.Step.Date.Adult,l),H?o.createElement(o.Fragment,null,", ",le.Z.pluralWithDictAndCount(n.getChildren(),N.W.Step.Date.Child,l)):null,null!=c&&null!==(t=c.childConfiguration)&&void 0!==t&&t.supportInfants?o.createElement(o.Fragment,null,", ",le.Z.pluralWithDictAndCount(n.getInfants(),N.W.Step.Date.Infant,l)):null))),o.createElement(U.ZP,{type:U.yG.Caption,color:se.Il.DarkGrey},o.createElement("strong",null,n.getStayDateRange("ddd, MMM D, YYYY"," -")))),n.isPromoCodeValid()&&o.createElement("div",{className:"u-marg-left d-flex align-items-center"},o.createElement(re.ZP,{type:re.Rm.Success,icon:Q.Tu.Money},n.getPromoCode()))),o.createElement("div",{className:"u-flex align-items-center"},o.createElement("div",{className:"u-flex align-items-center room-builder-progress--edit"},o.createElement(te.Z,{title:l(N.W.Step.Room.EditThisRoom)},o.createElement("div",{className:"u-flex align-items-center"},o.createElement($.Z,{isText:!0,size:"tiny",onClick:function(){W.ZP.instance.sendInteraction("Edit Room",W.s_.LINK,W._J.ROOMS),g(n)}},l(N.W.Misc.Edit).toUpperCase())))),ce)):o.createElement("div",{className:E()(Ae()["user-search-summary-row"],(r={},(0,h.Z)(r,Ae()["--selected"],R),(0,h.Z)(r,Ae()["--valid"],Z),(0,h.Z)(r,Ae()["--has-dark-bg"],T),r))},o.createElement("div",{className:Ae()["user-search-summary-row--inner"]},o.createElement("div",{className:Ae()["user-search-summary-row__group"]},o.createElement(ee.Z,{startDate:n.getStartDate(),endDate:n.getEndDate(),selectedDateChanged:function(e,r){e&&n.setStartDate(e),r&&n.setEndDate(r),p(n)},isAboveNav:!0,className:Ae()["user-search-summary-row__input"]},o.createElement(te.Z,{disabled:!R,title:l(N.W.Step.Date.SelectArrivalAndDepartureDatesByClickingHere)},o.createElement("div",{className:"u-flex align-items-center justify-content-center u-w-100@xl- u-cursor-pointer"},o.createElement("div",{className:Ae()["user-search-summary-card-date-range"]},o.createElement("div",{className:Ae()["user-search-summary-card-date-range--item"]},o.createElement("div",{className:Ae()["user-search-summary-card-label"]},l(N.W.Misc.CheckIn)),o.createElement(U.ZP,{color:T?se.Il.White:se.Il.Accent,bold:!0,className:"u-nowrap"},n.getArrivalDate())),o.createElement("div",{className:Ae()["user-search-summary-card-date-range--icon"]},o.createElement(Q.ZP,{icon:Q.Tu.ArrowRight2,color:T?se.Il.White:void 0})),o.createElement("div",{className:Ae()["user-search-summary-card-date-range--item"]},o.createElement("div",{className:Ae()["user-search-summary-card-label"]},l(N.W.Misc.CheckOut)),o.createElement(U.ZP,{color:T?se.Il.White:se.Il.Accent,bold:!0,className:"u-nowrap"},n.getDepartureDate()))))))),w?o.createElement("div",{className:"w-100"},o.createElement(X.Z,{open:!S},o.createElement("div",{className:"w-100 u-flex flex-column"},o.createElement(pe,{row:n,hotel:c,isSelectedRow:R,bookingWizardContext:_e,maxAdults:K,maxChildren:ie,maxInfants:ue,showChildren:H,setGuest:O,setGuests:F,changePromoCode:P,textColor:M})))):o.createElement(pe,{row:n,hotel:c,isSelectedRow:R,bookingWizardContext:_e,maxAdults:K,maxChildren:ie,maxInfants:ue,showChildren:H,setGuest:O,setGuests:F,changePromoCode:P,textColor:M})),o.createElement("div",{className:Ae()["user-search-summary-row--buttons"]},R&&Z?o.createElement($.Z,{isText:!0,size:"tiny",onClick:function(){W.ZP.instance.sendInteraction("Cancel Room Changes",W.s_.LINK,W._J.ROOMS),g(null)},textColor:M},l(N.W.Misc.Cancel)):o.createElement("div",null,!!w&&de,ce)))},ye=(0,J.A)($.Z),Ce=function(){var e=(0,o.useContext)(a.hy),r=e.currentBasketRows,t=e.addBasketRow,n=(0,s.$)().t;return o.createElement(o.Fragment,null,r.map((function(e,r){return o.createElement(he,{row:e,index:r,key:e.getID()})})),o.createElement("div",{className:"u-flex justify-content-end"},o.createElement(ye,{icon:Q.Tu.Add,onClick:function(){W.ZP.instance.sendInteraction("Add Room Row",W.s_.BUTTON,W._J.ROOMS),t(new V.Z)},stopIconAnimation:!0},n(N.W.Step.Room.RoomInfo.AddRoom))),o.createElement(K.y,null))},ge=t(40370),fe=t(50840),we=t(95692),xe=function(){var e=(0,o.useContext)(a.g7),r=(0,n.TH)(),t=(0,s.$)().t,p=(0,o.useContext)(a.aN).currentStep,h=o.createElement(d.Z,null);return o.createElement("div",{className:"container rs-step-grouped-room"},o.createElement(ge.default,null),o.createElement(u.i5,null,o.createElement(u.mV,null,e.screenSize>ne.Z.Medium&&o.createElement(o.Fragment,null,o.createElement(l.rU,{to:{pathname:we.Z.getPreviousStepUrl(p),search:r.search}},o.createElement(m.Z,null)),o.createElement("div",{className:"u-marg-top--light u-marg-bottom--heavy"},o.createElement(i.Z,{bold:!0},t(N.W.Step.Room.ChooseRoom)))),o.createElement(fe.Y,null),o.createElement(c.Z,{smallMargins:!0}),o.createElement(Ce,null),h&&o.createElement("div",{className:"u-marg-top--light"},h),o.createElement("div",{className:"u-marg-top"},o.createElement(H,null))),e.screenSize>ne.Z.Medium&&o.createElement(u.f,null,o.createElement("div",{className:"u-marg-top"},o.createElement(A.Z,null)),o.createElement("div",{className:"u-marg-top--heavy"},o.createElement(_.Z,null)))))}},15497:function(e,r,t){(r=t(23645)(!0)).push([e.id,".TabGroupedRoomList-module__groupedRoomList___2Rfwh{padding-top:32px}.TabGroupedRoomList-module__groupedRoomListHeader___UiaS8{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.TabGroupedRoomList-module__filterContainer___37hfp{display:flex;align-items:center;justify-content:center;background-color:#fff;border-radius:10px;border:1px solid var(--rs-color-accent-1);padding:18px 24px;margin-bottom:16px}.TabGroupedRoomList-module__filterItem___2tx0x{display:flex;align-items:center;cursor:pointer}.TabGroupedRoomList-module__filterItem___2tx0x+.TabGroupedRoomList-module__filterItem___2tx0x{margin-left:16px;padding-left:16px;border-left:1px solid var(--rs-color-grey)}.TabGroupedRoomList-module__filterItem-label___2Ryoa{margin-right:8px;font-weight:bold}","",{version:3,sources:["TabGroupedRoomList.module.scss"],names:[],mappings:"AAAA,oDAAiB,gBAAgB,CAAC,0DAAuB,YAAY,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,oDAAiB,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,yCAAyC,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,+CAAY,YAAY,CAAC,kBAAkB,CAAC,cAAc,CAAC,8FAAwB,gBAAgB,CAAC,iBAAiB,CAAC,0CAA0C,CAAC,qDAAkB,gBAAgB,CAAC,gBAAgB",file:"TabGroupedRoomList.module.scss",sourcesContent:[".groupedRoomList{padding-top:32px}.groupedRoomListHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.filterContainer{display:flex;align-items:center;justify-content:center;background-color:#fff;border-radius:10px;border:1px solid var(--rs-color-accent-1);padding:18px 24px;margin-bottom:16px}.filterItem{display:flex;align-items:center;cursor:pointer}.filterItem+.filterItem{margin-left:16px;padding-left:16px;border-left:1px solid var(--rs-color-grey)}.filterItem-label{margin-right:8px;font-weight:bold}"]}]),r.locals={groupedRoomList:"TabGroupedRoomList-module__groupedRoomList___2Rfwh",groupedRoomListHeader:"TabGroupedRoomList-module__groupedRoomListHeader___UiaS8",filterContainer:"TabGroupedRoomList-module__filterContainer___37hfp",filterItem:"TabGroupedRoomList-module__filterItem___2tx0x","filterItem-label":"TabGroupedRoomList-module__filterItem-label___2Ryoa"},e.exports=r},66729:function(e,r,t){(r=t(23645)(!0)).push([e.id,".UserSearchSummaryRow-module__user-completed-summary-row___YwhEW{padding:16px 32px;margin-bottom:16px;border-radius:10px;display:flex;align-items:center;background-color:var(--rs-color-light-grey);position:relative}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi{display:flex;justify-content:space-between;width:100%;position:relative;border:1px solid #fff;border-radius:8px;padding:8px;margin-bottom:16px;background-color:#fff;transition:border-color .2s}.UserSearchSummaryRow-module__user-search-summary-row--inner___2rmit{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex:1 auto}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row--inner___2rmit{flex-direction:column}}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi.UserSearchSummaryRow-module__--selected___ywCNH{border-color:var(--rs-color-accent-1)}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi.UserSearchSummaryRow-module__--selected___ywCNH .UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2{opacity:1}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi.UserSearchSummaryRow-module__--valid___XILvy{background-color:var(--rs-color-accent-2)}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi.UserSearchSummaryRow-module__--has-dark-bg___1BgQj .UserSearchSummaryRow-module__user-search-summary-row__divider___2hRPg{background-color:rgba(255,255,255,.2)}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row___ImnHi{display:block;width:100%;padding:16px 15px;padding-top:48px}}.UserSearchSummaryRow-module__user-search-summary-card-label___N-Deu{color:#8b8f9a;font-size:14px;padding-bottom:4px}.UserSearchSummaryRow-module__user-search-summary-card-date-range____aGwp{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%}.UserSearchSummaryRow-module__user-search-summary-card-date-range--icon___1-c4r{padding:0 16px}.UserSearchSummaryRow-module__user-search-summary-card-date-range--item___szt87{padding-right:16px}@media(max-width: 576px){.UserSearchSummaryRow-module__user-search-summary-card-date-range--item___szt87{width:100%}}.UserSearchSummaryRow-module__user-search-summary-card-item___2J-r5{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.UserSearchSummaryRow-module__user-search-summary-row--mobile-select-label___3ebob{display:none;position:absolute;top:16px;left:16px}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row--mobile-select-label___3ebob{display:block}}.UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2{display:flex;padding-left:16px;padding-right:16px;opacity:.6;transition:opacity .2s}.UserSearchSummaryRow-module__user-search-summary-row__group-label___103_H{margin-right:8px !important}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__group-label___103_H{display:none !important}}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2{flex-direction:column;width:100%}}@media(max-width: 767px){.UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2,.UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2 p{font-size:14px !important;line-height:1em !important}}.UserSearchSummaryRow-module__user-search-summary-row__divider___2hRPg{height:32px;width:1px;display:block;position:relative;margin-left:16px;margin-right:16px;transition:background-color .2s;background-color:rgba(0,0,0,.1)}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__divider___2hRPg{display:none}}.UserSearchSummaryRow-module__user-search-summary-row__collapse___36sFY{display:flex;align-items:center}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__collapse___36sFY{position:absolute;top:8px;right:48px}}.UserSearchSummaryRow-module__user-search-summary-row__remove___FnSZP{display:flex;align-items:center}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__remove___FnSZP{position:absolute;top:8px;right:16px}}.UserSearchSummaryRow-module__user-search-summary-row__remove-tooltip___29GmC{display:flex;justify-content:center;align-items:center}.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej{display:flex}.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej~.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej{margin-left:8px}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej{display:block;width:100%;padding:10px 16px;justify-content:center;border:1px solid var(--rs-color-light-grey);border-radius:4px;margin-bottom:8px}.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej~.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej{margin-left:0px}}.UserSearchSummaryRow-module__user-search-summary-row--buttons___2Rkv7{display:flex;justify-content:flex-end;align-items:center;max-height:42px}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row--buttons___2Rkv7{position:absolute;right:16px;top:16px}}.UserSearchSummaryRow-module__user-search-summary-row--buttons___2Rkv7 button{text-transform:capitalize}.UserSearchSummaryRow-module__user-search-summary-row--button-action___2agDA{display:flex;max-height:42px}.UserSearchSummaryRow-module__user-search-summary-row--button-action___2agDA button{border-radius:5px;text-transform:capitalize;border:1px solid var(--rs-color-accent-1)}@media(max-width: 576px){.UserSearchSummaryRow-module__user-search-summary-row--button-action___2agDA button{width:100%;justify-content:center}}","",{version:3,sources:["UserSearchSummaryRow.module.scss"],names:[],mappings:"AAAA,iEAA4B,iBAAiB,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,YAAY,CAAC,kBAAkB,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,8DAAyB,YAAY,CAAC,6BAA6B,CAAC,UAAU,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,WAAW,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,2BAA2B,CAAC,qEAAgC,YAAY,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,sBAAsB,CAAC,WAAW,CAAC,0BAA0B,qEAAgC,qBAAqB,CAAC,CAAC,8GAAoC,qCAAqC,CAAC,mLAAoE,SAAS,CAAC,2GAAiC,yCAAyC,CAAC,wLAAyE,qCAAqC,CAAC,0BAA0B,8DAAyB,aAAa,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,qEAAgC,aAAa,CAAC,cAAc,CAAC,kBAAkB,CAAC,0EAAqC,YAAY,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,UAAU,CAAC,gFAA2C,cAAc,CAAC,gFAA2C,kBAAkB,CAAC,yBAAyB,gFAA2C,UAAU,CAAC,CAAC,oEAA+B,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,mFAA8C,YAAY,CAAC,iBAAiB,CAAC,QAAQ,CAAC,SAAS,CAAC,0BAA0B,mFAA8C,aAAa,CAAC,CAAC,qEAAgC,YAAY,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,UAAU,CAAC,sBAAsB,CAAC,2EAAsC,2BAA2B,CAAC,0BAA0B,2EAAsC,uBAAuB,CAAC,CAAC,0BAA0B,qEAAgC,qBAAqB,CAAC,UAAU,CAAC,CAAC,yBAAyB,4IAAkE,yBAAyB,CAAC,0BAA0B,CAAC,CAAC,uEAAkC,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,+BAA+B,CAAC,+BAA+B,CAAC,0BAA0B,uEAAkC,YAAY,CAAC,CAAC,wEAAmC,YAAY,CAAC,kBAAkB,CAAC,0BAA0B,wEAAmC,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,sEAAiC,YAAY,CAAC,kBAAkB,CAAC,0BAA0B,sEAAiC,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,8EAAyC,YAAY,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,qEAAgC,YAAY,CAAC,0IAAgE,eAAe,CAAC,0BAA0B,qEAAgC,aAAa,CAAC,UAAU,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,0IAAgE,eAAe,CAAC,CAAC,uEAAkC,YAAY,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,eAAe,CAAC,0BAA0B,uEAAkC,iBAAiB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,8EAAyC,yBAAyB,CAAC,6EAAwC,YAAY,CAAC,eAAe,CAAC,oFAA+C,iBAAiB,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,yBAAyB,oFAA+C,UAAU,CAAC,sBAAsB,CAAC",file:"UserSearchSummaryRow.module.scss",sourcesContent:[".user-completed-summary-row{padding:16px 32px;margin-bottom:16px;border-radius:10px;display:flex;align-items:center;background-color:var(--rs-color-light-grey);position:relative}.user-search-summary-row{display:flex;justify-content:space-between;width:100%;position:relative;border:1px solid #fff;border-radius:8px;padding:8px;margin-bottom:16px;background-color:#fff;transition:border-color .2s}.user-search-summary-row--inner{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex:1 auto}@media(max-width: 1199px){.user-search-summary-row--inner{flex-direction:column}}.user-search-summary-row.--selected{border-color:var(--rs-color-accent-1)}.user-search-summary-row.--selected .user-search-summary-row__group{opacity:1}.user-search-summary-row.--valid{background-color:var(--rs-color-accent-2)}.user-search-summary-row.--has-dark-bg .user-search-summary-row__divider{background-color:rgba(255,255,255,.2)}@media(max-width: 1199px){.user-search-summary-row{display:block;width:100%;padding:16px 15px;padding-top:48px}}.user-search-summary-card-label{color:#8b8f9a;font-size:14px;padding-bottom:4px}.user-search-summary-card-date-range{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%}.user-search-summary-card-date-range--icon{padding:0 16px}.user-search-summary-card-date-range--item{padding-right:16px}@media(max-width: 576px){.user-search-summary-card-date-range--item{width:100%}}.user-search-summary-card-item{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.user-search-summary-row--mobile-select-label{display:none;position:absolute;top:16px;left:16px}@media(max-width: 1199px){.user-search-summary-row--mobile-select-label{display:block}}.user-search-summary-row__group{display:flex;padding-left:16px;padding-right:16px;opacity:.6;transition:opacity .2s}.user-search-summary-row__group-label{margin-right:8px !important}@media(max-width: 1199px){.user-search-summary-row__group-label{display:none !important}}@media(max-width: 1199px){.user-search-summary-row__group{flex-direction:column;width:100%}}@media(max-width: 767px){.user-search-summary-row__group,.user-search-summary-row__group p{font-size:14px !important;line-height:1em !important}}.user-search-summary-row__divider{height:32px;width:1px;display:block;position:relative;margin-left:16px;margin-right:16px;transition:background-color .2s;background-color:rgba(0,0,0,.1)}@media(max-width: 1199px){.user-search-summary-row__divider{display:none}}.user-search-summary-row__collapse{display:flex;align-items:center}@media(max-width: 1199px){.user-search-summary-row__collapse{position:absolute;top:8px;right:48px}}.user-search-summary-row__remove{display:flex;align-items:center}@media(max-width: 1199px){.user-search-summary-row__remove{position:absolute;top:8px;right:16px}}.user-search-summary-row__remove-tooltip{display:flex;justify-content:center;align-items:center}.user-search-summary-row__input{display:flex}.user-search-summary-row__input~.user-search-summary-row__input{margin-left:8px}@media(max-width: 1199px){.user-search-summary-row__input{display:block;width:100%;padding:10px 16px;justify-content:center;border:1px solid var(--rs-color-light-grey);border-radius:4px;margin-bottom:8px}.user-search-summary-row__input~.user-search-summary-row__input{margin-left:0px}}.user-search-summary-row--buttons{display:flex;justify-content:flex-end;align-items:center;max-height:42px}@media(max-width: 1199px){.user-search-summary-row--buttons{position:absolute;right:16px;top:16px}}.user-search-summary-row--buttons button{text-transform:capitalize}.user-search-summary-row--button-action{display:flex;max-height:42px}.user-search-summary-row--button-action button{border-radius:5px;text-transform:capitalize;border:1px solid var(--rs-color-accent-1)}@media(max-width: 576px){.user-search-summary-row--button-action button{width:100%;justify-content:center}}"]}]),r.locals={"user-completed-summary-row":"UserSearchSummaryRow-module__user-completed-summary-row___YwhEW","user-search-summary-row":"UserSearchSummaryRow-module__user-search-summary-row___ImnHi","user-search-summary-row--inner":"UserSearchSummaryRow-module__user-search-summary-row--inner___2rmit","--selected":"UserSearchSummaryRow-module__--selected___ywCNH","user-search-summary-row__group":"UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2","--valid":"UserSearchSummaryRow-module__--valid___XILvy","--has-dark-bg":"UserSearchSummaryRow-module__--has-dark-bg___1BgQj","user-search-summary-row__divider":"UserSearchSummaryRow-module__user-search-summary-row__divider___2hRPg","user-search-summary-card-label":"UserSearchSummaryRow-module__user-search-summary-card-label___N-Deu","user-search-summary-card-date-range":"UserSearchSummaryRow-module__user-search-summary-card-date-range____aGwp","user-search-summary-card-date-range--icon":"UserSearchSummaryRow-module__user-search-summary-card-date-range--icon___1-c4r","user-search-summary-card-date-range--item":"UserSearchSummaryRow-module__user-search-summary-card-date-range--item___szt87","user-search-summary-card-item":"UserSearchSummaryRow-module__user-search-summary-card-item___2J-r5","user-search-summary-row--mobile-select-label":"UserSearchSummaryRow-module__user-search-summary-row--mobile-select-label___3ebob","user-search-summary-row__group-label":"UserSearchSummaryRow-module__user-search-summary-row__group-label___103_H","user-search-summary-row__collapse":"UserSearchSummaryRow-module__user-search-summary-row__collapse___36sFY","user-search-summary-row__remove":"UserSearchSummaryRow-module__user-search-summary-row__remove___FnSZP","user-search-summary-row__remove-tooltip":"UserSearchSummaryRow-module__user-search-summary-row__remove-tooltip___29GmC","user-search-summary-row__input":"UserSearchSummaryRow-module__user-search-summary-row__input___wzoej","user-search-summary-row--buttons":"UserSearchSummaryRow-module__user-search-summary-row--buttons___2Rkv7","user-search-summary-row--button-action":"UserSearchSummaryRow-module__user-search-summary-row--button-action___2agDA"},e.exports=r},14119:function(e,r,t){var a=t(93379),o=t(15497);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);a(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},9362:function(e,r,t){var a=t(93379),o=t(66729);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);a(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}}}]);
1
+ (("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[177],{9177:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return xe}});var a=t(6058),o=t(67294),s=t(26793),n=t(89250),l=t(79655),i=t(13821),m=t(13010),u=t(46409),c=t(19874),d=t(4511),A=t(38279),_=t(31972),p=t(42982),h=t(4942),y=t(89331),C=t(7832),g=t(50683),f=t(71639),w=t(67023),x=t(72258),v=t(49368),b=t(70885),S=t(23115),B=t(94184),E=t.n(B),R=t(87933),k=t(63351),U=t(30584),I=t(60281),N=t(79478),O=t(3473),P=t(14119),Z=t.n(P);function j(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function D(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?j(Object(t),!0).forEach((function(r){(0,h.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function T(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var M=function(e){var r=(0,o.useContext)(a.g7),t=(0,o.useContext)(a.O8).orderUnavailableRoomsLast,n=(0,y.WP)().hotel,l=(0,s.$)().t,i=r.currentRoomSort,u=e.rooms,c=e.group,d=(0,o.useState)({}),A=(0,b.Z)(d,2),_=A[0],C=A[1],g=(0,o.useMemo)((function(){return Object.keys(c.filters||{})}),[c.filters]),f=(0,o.useMemo)((function(){var e,r=function(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return T(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return n=e.done,e},e:function(e){l=!0,s=e},f:function(){try{n||null==t.return||t.return()}finally{if(l)throw s}}}}(g);try{for(r.s();!(e=r.n()).done;){var t,a=e.value,o=null===(t=c.filters)||void 0===t?void 0:t[a];if(null!=o&&o.requireSelection&&!_[a])return l(N.W.Step.Room.SelectDwellingOptionsFirst)}}catch(e){r.e(e)}finally{r.f()}}),[_,g]),w=(0,o.useMemo)((function(){return Object.entries(c.filters).filter((function(e){var r=(0,b.Z)(e,2),t=r[0],a=r[1];return!_[t]&&a.requireSelection})).map((function(e){return(0,b.Z)(e,2)[1].name})).join(", ")}),[_,g]),x=(0,o.useMemo)((function(){var e=(0,p.Z)(u);return 0!==e.length&&e.sort(I.Z.getSortByFunction(i)),null!=n&&n.showUnavailableRooms&&t&&e.sort((function(e,r){return e.isAvailable()&&!r.isAvailable()?-1:!e.isAvailable()&&r.isAvailable()?1:0})),e.filter((function(e){for(var r=0,t=Object.keys(_);r<t.length;r++){var a,o=t[r];if(null!==(a=e.auxiliaryValues)&&void 0!==a&&a[o]&&_[o]&&!e.auxiliaryValues[o].includes("".concat(_[o])))return!1}return e})).map((function(e,r){return o.createElement(O.Z,{key:e.code,room:e,disableMarginBottom:r===u.length-1,bookNowButtonDisabledReason:f})}))}),[u,_,i,t,f]);return o.createElement("div",{className:E()(Z().groupedRoomList,"room-list")},!!c.groupName&&o.createElement("div",{className:Z().groupedRoomListHeader},o.createElement(m.Z,{bold:!0},c.groupName)),!(null==g||!g.length)&&u.length>0&&o.createElement("div",{className:Z().filterContainer},g.map((function(e){var t,a=null===(t=c.filters)||void 0===t?void 0:t[e];if("select"===a.type){var s,n,l=[{label:"All",value:null}].concat((0,p.Z)(a.options)),i=null!==(s=null==_?void 0:_[e])&&void 0!==s?s:null===(n=l[0])||void 0===n?void 0:n.value;return o.createElement("div",{key:e,className:Z().filterItem},o.createElement("div",{className:Z()["filterItem-label"]},a.name,":"),o.createElement(k.P,{keyName:"value",labelName:"label",options:l,value:i,onChange:function(t){C((function(a){var o=D(D({},a),{},(0,h.Z)({},e,t));return r.setCurrentGroupedRoomFilters(o),o}))}}))}}))),w&&o.createElement(R.ZP,{type:R.NK.Accent1,icon:S.Tu.Info},o.createElement(U.ZP,{type:U.yG.Small},"Please select: ",w)),o.createElement("div",{className:"room-list__container"},x))},Y=t(25758),G=t(39136),W=t(84544);function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function F(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?L(Object(t),!0).forEach((function(r){(0,h.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function q(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return z(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?z(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return n=e.done,e},e:function(e){l=!0,s=e},f:function(){try{n||null==t.return||t.return()}finally{if(l)throw s}}}}function z(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var H=function(){var e,r=(0,y.WP)().hotel,t=(0,o.useContext)(a.aN).roomRateCalendarInteractivity,s=(0,o.useContext)(a.O8).disableGroupRoomsAllTab,n=(0,G.w)(),l=n.rooms,i=n.isLoading,m=n.loadingAttempted,u=n.apiHasError,c=(0,Y.u)(),d=(0,o.useMemo)((function(){var e;if(!r)return[];var t,a={"list-all":{id:"list-all",groupName:"All Accommodations",filters:{},rooms:[]}},o=q(null!==(e=null==r?void 0:r.roomGroups)&&void 0!==e?e:[]);try{for(o.s();!(t=o.n()).done;){var s=t.value;a[s.id]=F(F({},s),{},{rooms:[]})}}catch(e){o.e(e)}finally{o.f()}var n,i=q(l);try{var m=function(){var e=n.value,t=e.roomGroupId?e.roomGroupId:"list-all";if(!a[t]){var o,s=null==r||null===(o=r.roomGroups)||void 0===o?void 0:o.find((function(e){return e.id===t}));s?a[t]=F(F({},s),{},{rooms:[]}):t="list-all"}a[t].rooms.push(e)};for(i.s();!(n=i.n()).done;)m()}catch(e){i.e(e)}finally{i.f()}for(var u=0,c=Object.keys(a);u<c.length;u++){var d,A,_=c[u];0===(null===(d=a[_])||void 0===d||null===(A=d.rooms)||void 0===A?void 0:A.length)&&"list-all"!==_&&delete a[_]}var p=Object.values(a).filter((function(e){return!!e}));return 1===p.length&&0===p[0].rooms.length&&p.splice(0,1),W.ZP.instance.sendRoomImpressions(),p}),[l,null==r?void 0:r.roomGroups]),A=(0,o.useMemo)((function(){var e;return null!==(e=c.get("defaultTab"))&&void 0!==e?e:void 0}),[]);if((null==t||!t.rateCode||null==t||!t.roomCode)&&(i||!m))return o.createElement(C.Z,null);if(d.length>0&&d.length<=2){var _={groupName:"",filters:{},id:""},h=[];return 2===d.length?(_=d[1],h=d[1].rooms):h=d[0].rooms,o.createElement(M,{group:_,rooms:h})}if(d.length>2){var b=(0,p.Z)(d);return b.splice(0,1),o.createElement("div",{style:{maxWidth:"100%",overflow:"hidden"}},o.createElement(f.Z,{fullBleedOnLineBreak:!1,activeKey:A},o.createElement(g.O,{title:"All Accommodation",navPath:"list-all",key:"list-all",preventScrollTop:!0},s?o.createElement(M,{group:d[0],rooms:l}):null==d?void 0:d.filter((function(e){return e.rooms.length})).map((function(e){return o.createElement(M,{group:e,rooms:e.rooms,key:e.id})}))),b.map((function(e){return o.createElement(g.O,{title:e.groupName,navPath:e.groupName,key:e.id,preventScrollTop:!0},o.createElement(M,{group:e,rooms:e.rooms}))}))))}return o.createElement(o.Fragment,null,u?o.createElement(v.F,null):o.createElement(w.Z,null),null==r||null===(e=r.crossSellHotelIds)||void 0===e?void 0:e.map((function(e){return o.createElement(x.Z,{key:e,hotelId:e})})))},J=t(32941),V=t(41092),$=t(64854),Q=t(78886),K=t(72870),X=t(79740),ee=t(42530),re=t(33409),te=t(25112),ae=t(95494),oe=t(50234),se=t(97754),ne=t(90292),le=t(43261),ie=t(6941),me=t(3748),ue=t(53796),ce=t(65986),de=t(9362),Ae=t.n(de),_e=function(e){var r=e.row,t=e.disabled,a=void 0!==t&&t,n=e.onChange,l=e.promocodeTextColor,i=void 0===l?se.Il.Navy:l,m=e.useUpdatedDesign,u=void 0!==m&&m,c=(0,s.$)().t,d=(0,y.WP)().hotel,A=(null==r?void 0:r.getPromoCodeTooltip(c,N.W))||"",_=(0,o.useRef)(null),p=(0,o.useMemo)((function(){return r&&d?d.memberOnlyPromoCode===r.getPromoCode()?"":r.getPromoCode():""}),[r,d]);return i=p?r.getPromoCodeColour():i,o.createElement(o.Fragment,null,o.createElement(te.Z,{title:A,wrapperClasses:"u-w-100@xl- d-flex",disabled:a},o.createElement("div",{className:E()("u-cursor-pointer",{"--updated":u}),ref:_,style:{width:"100%"}},o.createElement("div",{className:"u-flex align-items-center justify-content-center u-w-100@xl- room-builder-progress--promo",style:{width:"100%"}},o.createElement("div",{style:{width:"100%"}},o.createElement("div",{className:Ae()["user-search-summary-card-label"]},c(N.W.Step.Date.PromoCode)),o.createElement(ce.Z,{value:p,onChange:function(e){n(e)},valid:(null==r?void 0:r.getPromoCodeStatus())!==V.V.New?(null==r?void 0:r.getPromoCodeStatus())===V.V.Valid:void 0,variant:"text",hideValidText:!0,row:r}))))))},pe=function(e){var r,t,a,n=e.row,l=e.hotel,i=e.isSelectedRow,m=e.bookingWizardContext,u=e.maxAdults,c=e.maxChildren,d=e.maxInfants,A=e.showChildren,_=e.setGuest,p=e.setGuests,h=e.changePromoCode,y=e.textColor,C=(0,s.$)().t,g=!0===(null==l||null===(r=l.childConfiguration)||void 0===r?void 0:r.supportInfants),f=null==l||null===(t=l.childConfiguration)||void 0===t?void 0:t.childRange,w=null==l||null===(a=l.childConfiguration)||void 0===a?void 0:a.infantRange;return o.createElement(o.Fragment,null,o.createElement("div",{className:Ae()["user-search-summary-row__divider"]}),o.createElement("div",{className:Ae()["user-search-summary-row__group"]},o.createElement("div",{className:Ae()["user-search-summary-row__input"]},o.createElement("div",{className:Ae()["user-search-summary-card-item"]},o.createElement("div",{className:Ae()["user-search-summary-card-label"]},C(N.W.Misc.Guests)),o.createElement(me.X.Provider,{value:m},o.createElement(ue.G,{defaultValue:{adults:n.getAdults(),children:n.getChildren(),infants:n.getInfants()},onChange:_,onEditingChange:p,disableChild:!A,showInfants:g,maxAdults:u,maxChildren:c,maxInfants:d,disableRoom:!0,ageRange:{child:f,infant:w}}))))),o.createElement("div",{className:Ae()["user-search-summary-row__divider"]}),o.createElement("div",{className:Ae()["user-search-summary-row__group"]},o.createElement("div",{className:Ae()["user-search-summary-row__input"]},o.createElement(_e,{row:n,onChange:h,disabled:!i,promocodeTextColor:y,useUpdatedDesign:!0}))))},he=function(e){var r,t,n=e.row,l=(e.index,(0,s.$)().t),i=(0,o.useRef)(),m=(0,y.WP)(),u=m.isAccent2ColorDark,c=m.hotel,d=(0,o.useContext)(a.hy),A=d.selectedBasketRow,_=d.currentBasketRows,p=d.updateBasketRow,C=d.removeBasketRow,g=d.selectBasketRow,f=(0,o.useContext)(a.g7),w=(0,oe.i)().isMobile,x=(0,o.useState)(!0),v=(0,b.Z)(x,2),S=v[0],B=v[1],R=(0,o.useMemo)((function(){return(null==A?void 0:A.getID())===(null==n?void 0:n.getID())}),[A]),k=_.length>1,I=function(){W.ZP.instance.sendInteraction("Remove Room",W.s_.BUTTON,W._J.ROOMS),C(n)},O=function(e){var r,t,a,o,s;a=(r={adults:e.adults,children:e.children,infants:e.infants}).children,o=r.infants,s=r.updatedPromoCode,(t=r.adults)&&t!==n.getAdults()&&(W.ZP.instance.sendInteraction("Guests",W.s_.NUMBER_INPUT,W._J.ROOMS),n.setAdults(t)),!a&&0!==a||a===n.getChildren()||(W.ZP.instance.sendInteraction("Guests",W.s_.NUMBER_INPUT,W._J.ROOMS),n.setChildren(a)),!o&&0!==o||o===n.getInfants()||(W.ZP.instance.sendInteraction("Guests",W.s_.NUMBER_INPUT,W._J.ROOMS),n.setInfants(o)),!s&&""!==s||s===n.getPromoCode()||(W.ZP.instance.sendInteraction("Promo Code",W.s_.FORM_FIELD,W._J.ROOMS),n.setPromoCode(s)),p(n)},P=function(e){var r;r=e,W.ZP.instance.sendInteraction("Promo Code",W.s_.FORM_FIELD,W._J.ROOMS),A&&(A.setPromoCode(r),p(A))},Z=n.isValid(),j=f.screenSize>ne.Z.ExtraLarge,D=f.screenSize<=ne.Z.Medium,T=!!Z&&u&&R,M=T?se.Il.White:void 0,Y=(0,o.useState)({adults:null==n?void 0:n.getAdults(),children:null==n?void 0:n.getChildren(),infants:null==n?void 0:n.getInfants()}),G=(0,b.Z)(Y,2),L=G[0],F=G[1],q=(0,ae.X)(),z=q.getMaxSelectableAdults,H=q.showChildren,J=q.getMaxSelectableInfants,V=q.getMaxSelectableChildren,K=z({adults:L.adults,children:L.children}),me=V({adults:L.adults}),ue=J(),ce=o.createElement(te.Z,{title:k?"Remove this room":"Cannot remove this room as at least one must be selected.",followElement:null==i?void 0:i.current,wrapperClasses:Ae()["user-search-summary-row__remove-tooltip"]},o.createElement("div",{className:Ae()["user-search-summary-row__remove"],onClick:I,ref:i},o.createElement($.Z,{textColor:M,isText:!0,icon:Q.Tu.Close,iconPosition:"right",stopIconAnimation:!0,disabled:!k,onClick:I}))),de=o.createElement("div",{className:Ae()["user-search-summary-row__collapse"]},o.createElement($.Z,{isText:!0,icon:S?Q.Tu.ArrowDown3:Q.Tu.ArrowUp3,iconPosition:"right",stopIconAnimation:!0,onClick:function(){B((function(e){return!e}))}})),_e={layout:"booking-summary",theme:ie.mw.Default,type:D?"top-sheet":"popup",isImagesTheme:!1,isImagesThemeMobile:!1,activeSection:null,onNextHandler:function(e){},onPrevHandler:function(e){},stateSections:ie.lQ};return Z&&!R?o.createElement("div",{className:"".concat(Ae()["user-completed-summary-row"]," u-flex w-100")},o.createElement("div",{className:"u-flex justify-content-start"},o.createElement("div",{className:"u-flex flex-column"},o.createElement("span",null,o.createElement(U.ZP,{inline:j},o.createElement("strong",null,n.getRoom().name)),o.createElement(U.ZP,{inline:j,type:j?U.yG.Body:U.yG.Small},o.createElement("span",{className:"u-marg-left--light@xl"},le.Z.pluralWithDictAndCount(n.getAdults(),N.W.Step.Date.Adult,l),H?o.createElement(o.Fragment,null,", ",le.Z.pluralWithDictAndCount(n.getChildren(),N.W.Step.Date.Child,l)):null,null!=c&&null!==(t=c.childConfiguration)&&void 0!==t&&t.supportInfants?o.createElement(o.Fragment,null,", ",le.Z.pluralWithDictAndCount(n.getInfants(),N.W.Step.Date.Infant,l)):null))),o.createElement(U.ZP,{type:U.yG.Caption,color:se.Il.DarkGrey},o.createElement("strong",null,n.getStayDateRange("ddd, MMM D, YYYY"," -")))),n.isPromoCodeValid()&&o.createElement("div",{className:"u-marg-left d-flex align-items-center"},o.createElement(re.ZP,{type:re.Rm.Success,icon:Q.Tu.Money},n.getPromoCode()))),o.createElement("div",{className:"u-flex align-items-center"},o.createElement("div",{className:"u-flex align-items-center room-builder-progress--edit"},o.createElement(te.Z,{title:l(N.W.Step.Room.EditThisRoom)},o.createElement("div",{className:"u-flex align-items-center"},o.createElement($.Z,{isText:!0,size:"tiny",onClick:function(){W.ZP.instance.sendInteraction("Edit Room",W.s_.LINK,W._J.ROOMS),g(n)}},l(N.W.Misc.Edit).toUpperCase())))),ce)):o.createElement("div",{className:E()(Ae()["user-search-summary-row"],(r={},(0,h.Z)(r,Ae()["--selected"],R),(0,h.Z)(r,Ae()["--valid"],Z),(0,h.Z)(r,Ae()["--has-dark-bg"],T),r))},o.createElement("div",{className:Ae()["user-search-summary-row--inner"]},o.createElement("div",{className:Ae()["user-search-summary-row__group"]},o.createElement(ee.Z,{startDate:n.getStartDate(),endDate:n.getEndDate(),selectedDateChanged:function(e,r){e&&n.setStartDate(e),r&&n.setEndDate(r),p(n)},isAboveNav:!0,className:Ae()["user-search-summary-row__input"]},o.createElement(te.Z,{disabled:!R,title:l(N.W.Step.Date.SelectArrivalAndDepartureDatesByClickingHere)},o.createElement("div",{className:"u-flex align-items-center justify-content-center u-w-100@xl- u-cursor-pointer"},o.createElement("div",{className:Ae()["user-search-summary-card-date-range"]},o.createElement("div",{className:Ae()["user-search-summary-card-date-range--item"]},o.createElement("div",{className:Ae()["user-search-summary-card-label"]},l(N.W.Misc.CheckIn)),o.createElement(U.ZP,{color:T?se.Il.White:se.Il.Accent,bold:!0,className:"u-nowrap"},n.getArrivalDate())),o.createElement("div",{className:Ae()["user-search-summary-card-date-range--icon"]},o.createElement(Q.ZP,{icon:Q.Tu.ArrowRight2,color:T?se.Il.White:void 0})),o.createElement("div",{className:Ae()["user-search-summary-card-date-range--item"]},o.createElement("div",{className:Ae()["user-search-summary-card-label"]},l(N.W.Misc.CheckOut)),o.createElement(U.ZP,{color:T?se.Il.White:se.Il.Accent,bold:!0,className:"u-nowrap"},n.getDepartureDate()))))))),w?o.createElement("div",{className:"w-100"},o.createElement(X.Z,{open:!S},o.createElement("div",{className:"w-100 u-flex flex-column"},o.createElement(pe,{row:n,hotel:c,isSelectedRow:R,bookingWizardContext:_e,maxAdults:K,maxChildren:me,maxInfants:ue,showChildren:H,setGuest:O,setGuests:F,changePromoCode:P,textColor:M})))):o.createElement(pe,{row:n,hotel:c,isSelectedRow:R,bookingWizardContext:_e,maxAdults:K,maxChildren:me,maxInfants:ue,showChildren:H,setGuest:O,setGuests:F,changePromoCode:P,textColor:M})),o.createElement("div",{className:Ae()["user-search-summary-row--buttons"]},R&&Z?o.createElement($.Z,{isText:!0,size:"tiny",onClick:function(){W.ZP.instance.sendInteraction("Cancel Room Changes",W.s_.LINK,W._J.ROOMS),g(null)},textColor:M},l(N.W.Misc.Cancel)):o.createElement("div",null,!!w&&de,ce)))},ye=(0,J.A)($.Z),Ce=function(){var e=(0,o.useContext)(a.hy),r=e.currentBasketRows,t=e.addBasketRow,n=(0,s.$)().t;return o.createElement(o.Fragment,null,r.map((function(e,r){return o.createElement(he,{row:e,index:r,key:e.getID()})})),o.createElement("div",{className:"u-flex justify-content-end"},o.createElement(ye,{icon:Q.Tu.Add,onClick:function(){W.ZP.instance.sendInteraction("Add Room Row",W.s_.BUTTON,W._J.ROOMS),t(new V.Z)},stopIconAnimation:!0},n(N.W.Step.Room.RoomInfo.AddRoom))),o.createElement(K.y,null))},ge=t(40370),fe=t(50840),we=t(95692),xe=function(){var e=(0,o.useContext)(a.g7),r=(0,o.useContext)(a.aN),t=r.currentStep,p=r.roomRateCalendarInteractivity,h=r.setRoomRateCalendarInteractivity,y=(0,n.TH)(),C=(0,s.$)().t;(0,o.useEffect)((function(){return function(){p&&h(null)}}),[t]);var g=o.createElement(d.Z,null);return o.createElement("div",{className:"container rs-step-grouped-room"},o.createElement(ge.default,null),o.createElement(u.i5,null,o.createElement(u.mV,null,e.screenSize>ne.Z.Medium&&o.createElement(o.Fragment,null,o.createElement(l.rU,{to:{pathname:we.Z.getPreviousStepUrl(t),search:y.search}},o.createElement(i.Z,null)),o.createElement("div",{className:"u-marg-top--light u-marg-bottom--heavy"},o.createElement(m.Z,{bold:!0},C(N.W.Step.Room.ChooseRoom)))),o.createElement(fe.Y,null),o.createElement(c.Z,{smallMargins:!0}),o.createElement(Ce,null),g&&o.createElement("div",{className:"u-marg-top--light"},g),o.createElement("div",{className:"u-marg-top"},o.createElement(H,null))),e.screenSize>ne.Z.Medium&&o.createElement(u.f,null,o.createElement("div",{className:"u-marg-top"},o.createElement(A.Z,null)),o.createElement("div",{className:"u-marg-top--heavy"},o.createElement(_.Z,null)))))}},15497:function(e,r,t){(r=t(23645)(!0)).push([e.id,".TabGroupedRoomList-module__groupedRoomList___2Rfwh{padding-top:32px}.TabGroupedRoomList-module__groupedRoomListHeader___UiaS8{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.TabGroupedRoomList-module__filterContainer___37hfp{display:flex;align-items:center;justify-content:center;background-color:#fff;border-radius:10px;border:1px solid var(--rs-color-accent-1);padding:18px 24px;margin-bottom:16px}.TabGroupedRoomList-module__filterItem___2tx0x{display:flex;align-items:center;cursor:pointer}.TabGroupedRoomList-module__filterItem___2tx0x+.TabGroupedRoomList-module__filterItem___2tx0x{margin-left:16px;padding-left:16px;border-left:1px solid var(--rs-color-grey)}.TabGroupedRoomList-module__filterItem-label___2Ryoa{margin-right:8px;font-weight:bold}","",{version:3,sources:["TabGroupedRoomList.module.scss"],names:[],mappings:"AAAA,oDAAiB,gBAAgB,CAAC,0DAAuB,YAAY,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,oDAAiB,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,yCAAyC,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,+CAAY,YAAY,CAAC,kBAAkB,CAAC,cAAc,CAAC,8FAAwB,gBAAgB,CAAC,iBAAiB,CAAC,0CAA0C,CAAC,qDAAkB,gBAAgB,CAAC,gBAAgB",file:"TabGroupedRoomList.module.scss",sourcesContent:[".groupedRoomList{padding-top:32px}.groupedRoomListHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.filterContainer{display:flex;align-items:center;justify-content:center;background-color:#fff;border-radius:10px;border:1px solid var(--rs-color-accent-1);padding:18px 24px;margin-bottom:16px}.filterItem{display:flex;align-items:center;cursor:pointer}.filterItem+.filterItem{margin-left:16px;padding-left:16px;border-left:1px solid var(--rs-color-grey)}.filterItem-label{margin-right:8px;font-weight:bold}"]}]),r.locals={groupedRoomList:"TabGroupedRoomList-module__groupedRoomList___2Rfwh",groupedRoomListHeader:"TabGroupedRoomList-module__groupedRoomListHeader___UiaS8",filterContainer:"TabGroupedRoomList-module__filterContainer___37hfp",filterItem:"TabGroupedRoomList-module__filterItem___2tx0x","filterItem-label":"TabGroupedRoomList-module__filterItem-label___2Ryoa"},e.exports=r},66729:function(e,r,t){(r=t(23645)(!0)).push([e.id,".UserSearchSummaryRow-module__user-completed-summary-row___YwhEW{padding:16px 32px;margin-bottom:16px;border-radius:10px;display:flex;align-items:center;background-color:var(--rs-color-light-grey);position:relative}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi{display:flex;justify-content:space-between;width:100%;position:relative;border:1px solid #fff;border-radius:8px;padding:8px;margin-bottom:16px;background-color:#fff;transition:border-color .2s}.UserSearchSummaryRow-module__user-search-summary-row--inner___2rmit{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex:1 auto}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row--inner___2rmit{flex-direction:column}}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi.UserSearchSummaryRow-module__--selected___ywCNH{border-color:var(--rs-color-accent-1)}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi.UserSearchSummaryRow-module__--selected___ywCNH .UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2{opacity:1}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi.UserSearchSummaryRow-module__--valid___XILvy{background-color:var(--rs-color-accent-2)}.UserSearchSummaryRow-module__user-search-summary-row___ImnHi.UserSearchSummaryRow-module__--has-dark-bg___1BgQj .UserSearchSummaryRow-module__user-search-summary-row__divider___2hRPg{background-color:rgba(255,255,255,.2)}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row___ImnHi{display:block;width:100%;padding:16px 15px;padding-top:48px}}.UserSearchSummaryRow-module__user-search-summary-card-label___N-Deu{color:#8b8f9a;font-size:14px;padding-bottom:4px}.UserSearchSummaryRow-module__user-search-summary-card-date-range____aGwp{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%}.UserSearchSummaryRow-module__user-search-summary-card-date-range--icon___1-c4r{padding:0 16px}.UserSearchSummaryRow-module__user-search-summary-card-date-range--item___szt87{padding-right:16px}@media(max-width: 576px){.UserSearchSummaryRow-module__user-search-summary-card-date-range--item___szt87{width:100%}}.UserSearchSummaryRow-module__user-search-summary-card-item___2J-r5{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.UserSearchSummaryRow-module__user-search-summary-row--mobile-select-label___3ebob{display:none;position:absolute;top:16px;left:16px}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row--mobile-select-label___3ebob{display:block}}.UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2{display:flex;padding-left:16px;padding-right:16px;opacity:.6;transition:opacity .2s}.UserSearchSummaryRow-module__user-search-summary-row__group-label___103_H{margin-right:8px !important}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__group-label___103_H{display:none !important}}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2{flex-direction:column;width:100%}}@media(max-width: 767px){.UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2,.UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2 p{font-size:14px !important;line-height:1em !important}}.UserSearchSummaryRow-module__user-search-summary-row__divider___2hRPg{height:32px;width:1px;display:block;position:relative;margin-left:16px;margin-right:16px;transition:background-color .2s;background-color:rgba(0,0,0,.1)}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__divider___2hRPg{display:none}}.UserSearchSummaryRow-module__user-search-summary-row__collapse___36sFY{display:flex;align-items:center}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__collapse___36sFY{position:absolute;top:8px;right:48px}}.UserSearchSummaryRow-module__user-search-summary-row__remove___FnSZP{display:flex;align-items:center}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__remove___FnSZP{position:absolute;top:8px;right:16px}}.UserSearchSummaryRow-module__user-search-summary-row__remove-tooltip___29GmC{display:flex;justify-content:center;align-items:center}.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej{display:flex}.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej~.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej{margin-left:8px}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej{display:block;width:100%;padding:10px 16px;justify-content:center;border:1px solid var(--rs-color-light-grey);border-radius:4px;margin-bottom:8px}.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej~.UserSearchSummaryRow-module__user-search-summary-row__input___wzoej{margin-left:0px}}.UserSearchSummaryRow-module__user-search-summary-row--buttons___2Rkv7{display:flex;justify-content:flex-end;align-items:center;max-height:42px}@media(max-width: 1199px){.UserSearchSummaryRow-module__user-search-summary-row--buttons___2Rkv7{position:absolute;right:16px;top:16px}}.UserSearchSummaryRow-module__user-search-summary-row--buttons___2Rkv7 button{text-transform:capitalize}.UserSearchSummaryRow-module__user-search-summary-row--button-action___2agDA{display:flex;max-height:42px}.UserSearchSummaryRow-module__user-search-summary-row--button-action___2agDA button{border-radius:5px;text-transform:capitalize;border:1px solid var(--rs-color-accent-1)}@media(max-width: 576px){.UserSearchSummaryRow-module__user-search-summary-row--button-action___2agDA button{width:100%;justify-content:center}}","",{version:3,sources:["UserSearchSummaryRow.module.scss"],names:[],mappings:"AAAA,iEAA4B,iBAAiB,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,YAAY,CAAC,kBAAkB,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,8DAAyB,YAAY,CAAC,6BAA6B,CAAC,UAAU,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,WAAW,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,2BAA2B,CAAC,qEAAgC,YAAY,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,sBAAsB,CAAC,WAAW,CAAC,0BAA0B,qEAAgC,qBAAqB,CAAC,CAAC,8GAAoC,qCAAqC,CAAC,mLAAoE,SAAS,CAAC,2GAAiC,yCAAyC,CAAC,wLAAyE,qCAAqC,CAAC,0BAA0B,8DAAyB,aAAa,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,qEAAgC,aAAa,CAAC,cAAc,CAAC,kBAAkB,CAAC,0EAAqC,YAAY,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,UAAU,CAAC,gFAA2C,cAAc,CAAC,gFAA2C,kBAAkB,CAAC,yBAAyB,gFAA2C,UAAU,CAAC,CAAC,oEAA+B,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,mFAA8C,YAAY,CAAC,iBAAiB,CAAC,QAAQ,CAAC,SAAS,CAAC,0BAA0B,mFAA8C,aAAa,CAAC,CAAC,qEAAgC,YAAY,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,UAAU,CAAC,sBAAsB,CAAC,2EAAsC,2BAA2B,CAAC,0BAA0B,2EAAsC,uBAAuB,CAAC,CAAC,0BAA0B,qEAAgC,qBAAqB,CAAC,UAAU,CAAC,CAAC,yBAAyB,4IAAkE,yBAAyB,CAAC,0BAA0B,CAAC,CAAC,uEAAkC,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,+BAA+B,CAAC,+BAA+B,CAAC,0BAA0B,uEAAkC,YAAY,CAAC,CAAC,wEAAmC,YAAY,CAAC,kBAAkB,CAAC,0BAA0B,wEAAmC,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,sEAAiC,YAAY,CAAC,kBAAkB,CAAC,0BAA0B,sEAAiC,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,8EAAyC,YAAY,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,qEAAgC,YAAY,CAAC,0IAAgE,eAAe,CAAC,0BAA0B,qEAAgC,aAAa,CAAC,UAAU,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,0IAAgE,eAAe,CAAC,CAAC,uEAAkC,YAAY,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,eAAe,CAAC,0BAA0B,uEAAkC,iBAAiB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,8EAAyC,yBAAyB,CAAC,6EAAwC,YAAY,CAAC,eAAe,CAAC,oFAA+C,iBAAiB,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,yBAAyB,oFAA+C,UAAU,CAAC,sBAAsB,CAAC",file:"UserSearchSummaryRow.module.scss",sourcesContent:[".user-completed-summary-row{padding:16px 32px;margin-bottom:16px;border-radius:10px;display:flex;align-items:center;background-color:var(--rs-color-light-grey);position:relative}.user-search-summary-row{display:flex;justify-content:space-between;width:100%;position:relative;border:1px solid #fff;border-radius:8px;padding:8px;margin-bottom:16px;background-color:#fff;transition:border-color .2s}.user-search-summary-row--inner{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex:1 auto}@media(max-width: 1199px){.user-search-summary-row--inner{flex-direction:column}}.user-search-summary-row.--selected{border-color:var(--rs-color-accent-1)}.user-search-summary-row.--selected .user-search-summary-row__group{opacity:1}.user-search-summary-row.--valid{background-color:var(--rs-color-accent-2)}.user-search-summary-row.--has-dark-bg .user-search-summary-row__divider{background-color:rgba(255,255,255,.2)}@media(max-width: 1199px){.user-search-summary-row{display:block;width:100%;padding:16px 15px;padding-top:48px}}.user-search-summary-card-label{color:#8b8f9a;font-size:14px;padding-bottom:4px}.user-search-summary-card-date-range{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%}.user-search-summary-card-date-range--icon{padding:0 16px}.user-search-summary-card-date-range--item{padding-right:16px}@media(max-width: 576px){.user-search-summary-card-date-range--item{width:100%}}.user-search-summary-card-item{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.user-search-summary-row--mobile-select-label{display:none;position:absolute;top:16px;left:16px}@media(max-width: 1199px){.user-search-summary-row--mobile-select-label{display:block}}.user-search-summary-row__group{display:flex;padding-left:16px;padding-right:16px;opacity:.6;transition:opacity .2s}.user-search-summary-row__group-label{margin-right:8px !important}@media(max-width: 1199px){.user-search-summary-row__group-label{display:none !important}}@media(max-width: 1199px){.user-search-summary-row__group{flex-direction:column;width:100%}}@media(max-width: 767px){.user-search-summary-row__group,.user-search-summary-row__group p{font-size:14px !important;line-height:1em !important}}.user-search-summary-row__divider{height:32px;width:1px;display:block;position:relative;margin-left:16px;margin-right:16px;transition:background-color .2s;background-color:rgba(0,0,0,.1)}@media(max-width: 1199px){.user-search-summary-row__divider{display:none}}.user-search-summary-row__collapse{display:flex;align-items:center}@media(max-width: 1199px){.user-search-summary-row__collapse{position:absolute;top:8px;right:48px}}.user-search-summary-row__remove{display:flex;align-items:center}@media(max-width: 1199px){.user-search-summary-row__remove{position:absolute;top:8px;right:16px}}.user-search-summary-row__remove-tooltip{display:flex;justify-content:center;align-items:center}.user-search-summary-row__input{display:flex}.user-search-summary-row__input~.user-search-summary-row__input{margin-left:8px}@media(max-width: 1199px){.user-search-summary-row__input{display:block;width:100%;padding:10px 16px;justify-content:center;border:1px solid var(--rs-color-light-grey);border-radius:4px;margin-bottom:8px}.user-search-summary-row__input~.user-search-summary-row__input{margin-left:0px}}.user-search-summary-row--buttons{display:flex;justify-content:flex-end;align-items:center;max-height:42px}@media(max-width: 1199px){.user-search-summary-row--buttons{position:absolute;right:16px;top:16px}}.user-search-summary-row--buttons button{text-transform:capitalize}.user-search-summary-row--button-action{display:flex;max-height:42px}.user-search-summary-row--button-action button{border-radius:5px;text-transform:capitalize;border:1px solid var(--rs-color-accent-1)}@media(max-width: 576px){.user-search-summary-row--button-action button{width:100%;justify-content:center}}"]}]),r.locals={"user-completed-summary-row":"UserSearchSummaryRow-module__user-completed-summary-row___YwhEW","user-search-summary-row":"UserSearchSummaryRow-module__user-search-summary-row___ImnHi","user-search-summary-row--inner":"UserSearchSummaryRow-module__user-search-summary-row--inner___2rmit","--selected":"UserSearchSummaryRow-module__--selected___ywCNH","user-search-summary-row__group":"UserSearchSummaryRow-module__user-search-summary-row__group___1_4r2","--valid":"UserSearchSummaryRow-module__--valid___XILvy","--has-dark-bg":"UserSearchSummaryRow-module__--has-dark-bg___1BgQj","user-search-summary-row__divider":"UserSearchSummaryRow-module__user-search-summary-row__divider___2hRPg","user-search-summary-card-label":"UserSearchSummaryRow-module__user-search-summary-card-label___N-Deu","user-search-summary-card-date-range":"UserSearchSummaryRow-module__user-search-summary-card-date-range____aGwp","user-search-summary-card-date-range--icon":"UserSearchSummaryRow-module__user-search-summary-card-date-range--icon___1-c4r","user-search-summary-card-date-range--item":"UserSearchSummaryRow-module__user-search-summary-card-date-range--item___szt87","user-search-summary-card-item":"UserSearchSummaryRow-module__user-search-summary-card-item___2J-r5","user-search-summary-row--mobile-select-label":"UserSearchSummaryRow-module__user-search-summary-row--mobile-select-label___3ebob","user-search-summary-row__group-label":"UserSearchSummaryRow-module__user-search-summary-row__group-label___103_H","user-search-summary-row__collapse":"UserSearchSummaryRow-module__user-search-summary-row__collapse___36sFY","user-search-summary-row__remove":"UserSearchSummaryRow-module__user-search-summary-row__remove___FnSZP","user-search-summary-row__remove-tooltip":"UserSearchSummaryRow-module__user-search-summary-row__remove-tooltip___29GmC","user-search-summary-row__input":"UserSearchSummaryRow-module__user-search-summary-row__input___wzoej","user-search-summary-row--buttons":"UserSearchSummaryRow-module__user-search-summary-row--buttons___2Rkv7","user-search-summary-row--button-action":"UserSearchSummaryRow-module__user-search-summary-row--button-action___2agDA"},e.exports=r},14119:function(e,r,t){var a=t(93379),o=t(15497);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);a(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},9362:function(e,r,t){var a=t(93379),o=t(66729);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);a(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}}}]);
@@ -1 +1 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[288],{12288:function(e,t,n){n.r(t),n.d(t,{default:function(){return ve}});var l=n(6058),a=n(67294),o=n(26793),r=n(89250),i=n(79655),s=n(79478),c=n(13821),m=n(13010),u=n(46409),d=n(19874),g=n(42982),v=n(89331),E=n(7832),f=n(3473),p=n(72258),h=n(39136),w=n(60281),y=n(84544),C=n(90292),Z=n(67023),R=n(70885),N=n(64854),x=n(20858),S=n(78886),P=n(33409),b=n(30584),I=n(78361),k=n(73633),A=n(44744),M=n(97754),D=n(40291),B=n(32458),W=n(98013);function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}var T=function(e){var t=e.room,n=(0,a.useState)([]),r=(0,R.Z)(n,2),i=r[0],c=r[1],u=(0,a.useState)([]),d=(0,R.Z)(u,2),g=d[0],E=d[1],f=(0,a.useState)(!1),p=(0,R.Z)(f,2),h=p[0],w=p[1],Z=a.useContext(l.g7),T=(0,a.useContext)(l.hy),_=(0,v.WP)().hotel,F=(0,o.$)().t;(0,a.useEffect)((function(){var e=[],n=[];if(k.Z.isActive()){var l,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var l=0,a=function(){};return{s:a,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){i=!0,o=e},f:function(){try{r||null==n.return||n.return()}finally{if(i)throw o}}}}(t.getRates());try{for(a.s();!(l=a.n()).done;){var o,r,i,s=l.value;(null===(o=s.promoCode)||void 0===o?void 0:o.toLowerCase())===(null===(r=T.selectedBasketRow)||void 0===r||null===(i=r.getPromoCode())||void 0===i?void 0:i.toLowerCase())?n.unshift(s):e.push(s)}}catch(e){a.e(e)}finally{a.f()}n.length>0&&c(n)}else e=t.getRates();E(e)}),[t.getRates()]);var U=t.getShortDescription(),L=Z.screenSize<=C.Z.Large,G=Math.round(t.getLowestPrice(!1,!0)),j=Z.screenSize>C.Z.Medium&&G.toLocaleString().length<7?"large":"normal";return a.createElement("div",{className:"room-details-container --theme-retargeting u-marg-top u-marg-bottom"},a.createElement("div",{className:"room-details"},a.createElement("div",{className:"room-details--image"},a.createElement(D.Z,{images:t.getImages(),imageSize:A.h.Medium})),a.createElement("div",{className:"room-details--content u-pad--heavy u-pad@l-"},a.createElement("div",{className:"u-marg-bottom"},a.createElement("div",{className:"u-marg-bottom"},a.createElement(P.ZP,{type:P.Rm.Primary,icon:S.Tu.Add},F(s.W.Step.Room.YouBookedThisRoomRecently))),a.createElement("div",{className:"room-details--content-title u-marg-bottom--light"},a.createElement(m.Z,{bold:!0},t.name)),a.createElement(W.R,{room:t,textColor:M.Il.Navy}),a.createElement("div",{className:"room-details--content-description u-marg-bottom--light"},a.createElement(b.ZP,{color:M.Il.Navy,type:b.yG.Small},a.createElement("span",{dangerouslySetInnerHTML:{__html:(null==U?void 0:U.replace(/<br(\/|)>/g,""))||""}})))),a.createElement("div",{className:"row"},a.createElement("div",{className:"col-md-6 u-flex u-marg-bottom@m- flex-column align-items-start"},a.createElement("div",{className:"room-details--content-perks u-marg-bottom@m-"},L&&a.createElement("div",{className:"u-marg-bottom"},a.createElement(b.ZP,{type:b.yG.Small,bold:!0,color:M.Il.Accent},(null==_?void 0:_.perkTitle)||F(s.W.Misc.Perks.AndYouGetAll))))),a.createElement("div",{className:"col-md-6 u-flex justify-content-end flex-column align-items-start align-items-md-end"},a.createElement(b.ZP,{type:b.yG.Small,color:M.Il.Navy,inline:!0},F(s.W.Misc.From)),a.createElement("div",{className:"room-details--content-price flex-row align-items-end"},a.createElement(m.Z,{size:j,bold:!0},a.createElement(x.Z,{hideDecimals:!0},G)),a.createElement(b.ZP,{color:M.Il.Navy,inline:!0},"/",F(s.W.Misc.Night))),a.createElement("div",{className:"u-marg-bottom"},a.createElement(b.ZP,{type:b.yG.Small,color:M.Il.Navy,className:"u-nowrap"},a.createElement("span",{dangerouslySetInnerHTML:{__html:t.getLowestPriceType()===I.I.IncludingFeesAndTaxes?F(s.W.Step.Room.RoomInfo.IncludesTaxes):F(s.W.Step.Room.ExcludingTaxes)}}))),a.createElement("div",{className:"u-marg-top--light u-flex justify-content-end u-w-100@m-"},a.createElement(N.Z,{name:"ViewRatesNowButton",primary:!0,filled:!0,stopIconAnimation:!0,iconPosition:"right",wide:Z.screenSize<=C.Z.Large,onClick:function(){y.ZP.instance.sendInteraction("More Room Details",y.s_.LINK,y._J.ROOMS),w(!0)}},F(s.W.Step.Room.RoomInfo.ViewRates))))))),a.createElement(B.Z,{open:h,room:e.room,rates:g,featuredRates:i,onClose:function(){w(!1)}}))},_=n(94184),F=n.n(_),U=n(79740),L=n(42530),G=n(89089),j=n(65986),z=n(25112),V=n(63351),J=n(95494),Y=n(43261);function $(e){(0,v.WP)().hotel;var t,n,l,r,i=(0,(0,J.X)().getMaxSelectableAdults)({adults:null===(t=e.row)||void 0===t?void 0:t.getAdults(),children:null===(n=e.row)||void 0===n?void 0:n.getChildren()}),c=(0,o.$)().t,m=null!==(l=null===(r=e.row)||void 0===r?void 0:r.getAdults())&&void 0!==l?l:1;return a.createElement(V.P,{nativeOnMobile:!0,options:(0,g.Z)(Array(i)).map((function(e,t){return t+=1,{text:Y.Z.pluralWithDictAndCount(t,s.W.Step.Date.Adult,c),value:t.toString()}})),value:null==m?void 0:m.toString(),onChange:e.onChange,keyName:"value",labelName:"text",inputLabelColor:e.labelColor})}function H(e){var t,n,l,r=(0,v.WP)().hotel,i=(0,o.$)().t,c=null!==(t=null===(n=e.row)||void 0===n?void 0:n.getChildren())&&void 0!==t?t:1,m=Math.max((null==r?void 0:r.maxOccupancy)+1-(null===(l=e.row)||void 0===l?void 0:l.getAdults()));return(m<1||isNaN(m))&&(m=1),a.createElement(V.P,{nativeOnMobile:!0,options:(0,g.Z)(Array(m)).map((function(e,t){return{text:Y.Z.pluralWithDictAndCount(t,s.W.Step.Date.Child,i),value:t.toString()}})),value:null==c?void 0:c.toString(),onChange:e.onChange,keyName:"value",labelName:"text",inputLabelColor:e.labelColor})}var K=n(50234),X=n(41092);function q(e){var t,n,l,r=(0,v.WP)().hotel,i=(0,o.$)().t,c=null!==(t=null===(n=e.row)||void 0===n?void 0:n.getInfants())&&void 0!==t?t:1,m=Math.max((null==r?void 0:r.maxOccupancy)+1-(null===(l=e.row)||void 0===l?void 0:l.getAdults()));return(m<1||isNaN(m))&&(m=1),a.createElement(V.P,{nativeOnMobile:!0,options:(0,g.Z)(Array(m)).map((function(e,t){return{text:Y.Z.pluralWithDictAndCount(t,s.W.Step.Date.Infant,i),value:t.toString()}})),value:null==c?void 0:c.toString(),onChange:e.onChange,keyName:"value",labelName:"text",inputLabelColor:e.labelColor})}function Q(e){var t,n,r,i,c=(0,a.useContext)(l.hy),m=(0,a.useContext)(l.g7),u=(0,v.WP)().hotel,d=(0,J.X)().showChildren,g=(0,o.$)().t,E=(0,K.i)().isMobile,f=(0,a.useState)(!1),p=(0,R.Z)(f,2),h=p[0],w=p[1],Z=(0,a.useState)(!0),x=(0,R.Z)(Z,2),I=x[0],k=x[1],A=e.row,D=(0,a.useMemo)((function(){var e;return c.selectedBasketRow&&(null===(e=c.selectedBasketRow)||void 0===e?void 0:e.getID())===(null==A?void 0:A.getID())}),[c.selectedBasketRow,null===(t=c.selectedBasketRow)||void 0===t?void 0:t.getID(),null==A?void 0:A.getID()]),B=F()("room-builder-progress--item",{"--current":D,"--complete":A.isValid()}),W=(0,a.useRef)(null),O=(0,a.useState)(!1),T=(0,R.Z)(O,2),_=T[0],V=T[1];(0,a.useEffect)((function(){h&&!D&&w(!1)}),[c.selectBasketRow]);var Q=function(e){var t=e.adults,n=e.children,l=e.infants,a=e.updatedPromoCode;t&&t!==A.getAdults()&&(y.ZP.instance.sendInteraction("Guests",y.s_.NUMBER_INPUT,y._J.ROOMS),A.setAdults(t)),!n&&0!==n||n===A.getChildren()||(y.ZP.instance.sendInteraction("Guests",y.s_.NUMBER_INPUT,y._J.ROOMS),A.setChildren(n)),!l&&0!==l||l===A.getInfants()||(y.ZP.instance.sendInteraction("Guests",y.s_.NUMBER_INPUT,y._J.ROOMS),A.setInfants(l)),!a&&""!==a||a===A.getPromoCode()||(y.ZP.instance.sendInteraction("Promo Code",y.s_.FORM_FIELD,y._J.ROOMS),A.setPromoCode(a)),c.updateBasketRow(A)},ee=function(e,t){e&&A.setStartDate(e),t&&A.setEndDate(t),c.updateBasketRow(A)},te=function(e){c.onDatePickerOpenChange(e)},ne=c.currentBasketRows.length>1,le=a.createElement("div",{className:"room-builder-progress--remove"},a.createElement(z.Z,{title:ne?"Remove this room":"Cannot remove this room as at least one must be selected."},a.createElement(N.Z,{isText:!0,icon:S.Tu.Close,iconPosition:"right",stopIconAnimation:!0,disabled:!ne,onClick:function(){y.ZP.instance.sendInteraction("Remove Room",y.s_.BUTTON,y._J.ROOMS),c.removeBasketRow(A)}}))),ae=a.createElement("div",{className:"room-builder-progress--collapse"},a.createElement(N.Z,{isText:!0,icon:I?S.Tu.ArrowDown3:S.Tu.ArrowUp3,iconPosition:"right",stopIconAnimation:!0,onClick:function(){k((function(e){return!e}))}})),oe=m.screenSize>C.Z.ExtraLarge,re=oe||D,ie=(0,a.useMemo)((function(){return 1!==c.currentBasketRows.length?e.number+1:""}),[c.currentBasketRows.length,e.number]),se=(null==A?void 0:A.getPromoCodeTooltip(g,s.W))||"",ce=function(){V(!0)},me=function(e){Q({adults:+e})},ue=function(e){Q({children:+e})},de=function(e){Q({infants:+e})},ge=A.getPromoCode(null==u?void 0:u.memberOnlyPromoCode),ve=(0,a.useMemo)((function(){return a.createElement("div",{className:"room-builder-progress--value"},a.createElement(L.Z,{startDate:A.getStartDate(),endDate:A.getEndDate(),selectedDateChanged:ee,className:"u-w-100@xl- d-flex align-items-center justify-content-center",isAboveNav:!0,onDatePickerOpenChange:te},a.createElement(z.Z,{title:g(s.W.Step.Date.SelectArrivalAndDepartureDatesByClickingHere)},a.createElement("div",{className:"u-flex align-items-center justify-content-center u-w-100@xl- u-cursor-pointer"},a.createElement(b.ZP,{color:M.Il.Accent,bold:!0,className:"u-nowrap"},A.getArrivalDate()),a.createElement(S.ZP,{icon:S.Tu.ArrowRight2}),a.createElement(b.ZP,{color:M.Il.Accent,bold:!0,className:"u-nowrap"},A.getDepartureDate())))))}),[A,te]),Ee=(0,a.useMemo)((function(){var e;return a.createElement(a.Fragment,null,a.createElement(z.Z,{title:g(s.W.Step.Date.UpdateAdults),wrapperClasses:"u-w-100@xl- d-flex"},a.createElement("div",{className:"room-builder-progress--value u-flex-justify-center u-flex"},a.createElement($,{row:A,onChange:me}))),d?a.createElement(z.Z,{title:g(s.W.Step.Date.UpdateChildren),wrapperClasses:"u-w-100@xl- d-flex"},a.createElement("div",{className:"room-builder-progress--value u-flex-justify-center u-flex"},a.createElement(H,{row:A,onChange:ue}))):null,null!=u&&null!==(e=u.childConfiguration)&&void 0!==e&&e.supportInfants?a.createElement(z.Z,{title:g(s.W.Step.Date.UpdateInfants),wrapperClasses:"u-w-100@xl- d-flex"},a.createElement("div",{className:"room-builder-progress--value u-flex-justify-center u-flex"},a.createElement(q,{row:A,onChange:de}))):null,a.createElement(a.Fragment,null,E?null:ve,a.createElement(z.Z,{title:se,wrapperClasses:"u-w-100@xl- d-flex"},a.createElement("div",{className:"room-builder-progress--value u-cursor-pointer",ref:W,onClick:ce},a.createElement("div",{className:"u-flex align-items-center justify-content-center u-w-100@xl-"},a.createElement(b.ZP,{className:"u-pad-right--light",type:b.yG.Body,color:ge?A.getPromoCodeColour():M.Il.Navy},ge||g(s.W.Step.Date.PromoCode)),a.createElement(S.ZP,{icon:S.Tu.Dropdown,color:M.Il.DarkGrey}))))))}),[A,E,ge,se,d,null==u?void 0:u.childConfiguration,me,ue,de]);return a.createElement("div",{className:B},D||!A.isValid()?a.createElement("div",{className:"u-flex w-100 001"},a.createElement("div",{className:"u-flex flex-wrap flex-xl-nowrap flex-row u-w-100@xl- align-items-center"},a.createElement("div",null,A.isValid()?a.createElement(b.ZP,null,a.createElement("strong",{className:"u-nowrap"},g(s.W.Step.Room.EditingRoom)," ",ie)):a.createElement(b.ZP,null,a.createElement("strong",{className:"u-nowrap"},g(s.W.Step.Room.SelectRoom)," ",ie))),re?a.createElement(a.Fragment,null,!oe&&a.createElement("div",{className:"w-100 d-flex"+(re?" u-marg-bottom@xl-":"")},a.createElement(b.ZP,{type:b.yG.Small,color:M.Il.DarkGrey,inline:!0},g(s.W.Step.Room.ChooseRoomBelow))),a.createElement(a.Fragment,null,E?ve:null),E?a.createElement("div",{className:"w-100"},a.createElement(U.Z,{open:!I},a.createElement("div",{className:"w-100 u-flex flex-column"},Ee))):Ee,a.createElement(G.a,{open:_,followElement:W.current,onClose:function(){V(!1)}},a.createElement("div",{className:"u-pad--heavy"},a.createElement("div",null,a.createElement(j.Z,{value:ge,onChange:function(e){var t;t=e,y.ZP.instance.sendInteraction("Promo Code",y.s_.FORM_FIELD,y._J.ROOMS),c.selectedBasketRow&&(c.selectedBasketRow.setPromoCode(t),c.selectedBasketRow.setManualInputPromoCode(!!t),c.updateBasketRow(c.selectedBasketRow),t&&V(!1))},valid:(null===(n=c.selectedBasketRow)||void 0===n?void 0:n.getPromoCodeStatus())!==X.V.New&&ge?(null===(r=c.selectedBasketRow)||void 0===r?void 0:r.getPromoCodeStatus())===X.V.Valid:void 0,row:c.selectedBasketRow})),a.createElement("div",{className:"u-flex justify-content-end align-items-center u-marg-top"},a.createElement(N.Z,{isText:!0,size:"small",onClick:function(){y.ZP.instance.sendInteraction("Cancel Promo Popup",y.s_.BUTTON,y._J.ROOMS),V(!1)}},g(s.W.Misc.Cancel))))),!oe&&A.isValid()&&a.createElement(N.Z,{wide:!0,primary:!0,filled:!0,onClick:function(){y.ZP.instance.sendInteraction("Save Room Changes",y.s_.BUTTON,y._J.ROOMS),c.selectBasketRow(null),w(!1)}},g(s.W.Misc.Save))):a.createElement("div",{className:"w-100"},a.createElement(b.ZP,{type:b.yG.Small,color:M.Il.DarkGrey},g(s.W.Step.Room.NextRoom)))),a.createElement("div",{className:"u-flex align-items-center"},A.isValid()&&a.createElement("div",{className:"u-none@xl-"},a.createElement(z.Z,{title:"Cancel changes"},a.createElement("div",{className:"u-flex align-items-center"},a.createElement(N.Z,{isText:!0,size:"tiny",onClick:function(){y.ZP.instance.sendInteraction("Cancel Room Changes",y.s_.LINK,y._J.ROOMS),c.selectBasketRow(null),w(!1)}},g(s.W.Misc.Cancel).toUpperCase())))),a.createElement("div",{className:"u-flex align-items-center flex-row"},E&&ae,le))):a.createElement("div",{className:"u-flex w-100 002"},a.createElement("div",{className:"u-flex justify-content-start"},a.createElement("div",{className:"u-flex flex-column"},a.createElement("span",null,a.createElement(b.ZP,{inline:oe},a.createElement("strong",null,A.getRoom().name)),a.createElement(b.ZP,{inline:oe,type:oe?b.yG.Body:b.yG.Small},a.createElement("span",{className:"u-marg-left--light@xl"},Y.Z.pluralWithDictAndCount(A.getAdults(),s.W.Step.Date.Adult,g),d?a.createElement(a.Fragment,null,", ",Y.Z.pluralWithDictAndCount(A.getChildren(),s.W.Step.Date.Child,g)):null,null!=u&&null!==(i=u.childConfiguration)&&void 0!==i&&i.supportInfants?a.createElement(a.Fragment,null,", ",Y.Z.pluralWithDictAndCount(A.getInfants(),s.W.Step.Date.Infant,g)):null))),a.createElement(b.ZP,{type:b.yG.Caption,color:M.Il.DarkGrey},a.createElement("strong",null,A.getStayDateRange("ddd, MMM D, YYYY"," -")))),ge&&A.isPromoCodeValid()&&a.createElement("div",{className:"u-marg-left d-flex align-items-center"},a.createElement(P.ZP,{type:P.Rm.Success,icon:S.Tu.Money},ge))),a.createElement("div",{className:"u-flex align-items-center"},a.createElement("div",{className:"u-flex align-items-center room-builder-progress--edit"},a.createElement(z.Z,{title:g(s.W.Step.Room.EditThisRoom)},a.createElement("div",{className:"u-flex align-items-center"},a.createElement(N.Z,{isText:!0,size:"tiny",onClick:function(){y.ZP.instance.sendInteraction("Edit Room",y.s_.LINK,y._J.ROOMS),c.selectBasketRow(A),w(!0)}},g(s.W.Misc.Edit).toUpperCase())))),le)))}var ee=n(72870),te=(0,n(32941).A)(N.Z);function ne(){var e=(0,a.useContext)(l.hy),t=e.currentBasketRows,n=e.addBasketRow,r=(e.selectedBasketRow,(0,o.$)().t),i=function(){y.ZP.instance.sendInteraction("Add Room Row",y.s_.BUTTON,y._J.ROOMS),n(new X.Z)};return(0,a.useMemo)((function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"room-builder-progress"},!!t.length&&t.map((function(e,t){return a.createElement(Q,{row:e,key:e.getID(),number:t})})),a.createElement("div",{className:"u-flex justify-content-end"},a.createElement(te,{icon:S.Tu.Add,onClick:i,stopIconAnimation:!0},r(s.W.Step.Room.RoomInfo.AddRoom)))),a.createElement(ee.y,null))}),[t,r])}var le=n(87933),ae=n(4511);function oe(){var e=(0,a.useContext)(l.hy),t=(0,o.$)().t,n=!(!e.selectedBasketRow||!e.selectedBasketRow.isValid());return a.createElement("div",{className:"u-marg-top u-marg-bottom"},a.createElement(ae.Z,null),a.createElement(U.Z,{open:n},a.createElement(le.ZP,{icon:S.Tu.Edit,type:le.NK.Accent1},a.createElement(b.ZP,{type:b.yG.Small},a.createElement("strong",null,t(s.W.Misc.Alerts.YouAreEditing))," - ",t(s.W.Misc.Alerts.YouAreEditingAlert)))))}var re=function(e){return(0,a.useContext)(l.g7).screenSize<=C.Z.Medium?a.createElement(a.Fragment,null,a.createElement(oe,null),a.createElement(d.Z,{smallMargins:!0}),a.createElement(ne,null),e.children,a.createElement(d.Z,{smallMargins:!0})):a.createElement(a.Fragment,null,a.createElement(ne,null),e.children,a.createElement(oe,null))},ie=n(49368);function se(){var e=(0,a.useContext)(l.hy),t=(0,a.useContext)(l.g7),n=(0,a.useContext)(l.O8).orderUnavailableRoomsLast,o=(0,v.WP)().hotel,r=(0,h.w)(),i=r.rooms,s=r.loadingAttempted,c=r.isLoading,m=r.openRoom,u=r.apiHasError,d=r.retargetingRoom,R=(0,a.useRef)(null),N=(0,a.useRef)(null),x=t.currentRoomSort,S=null;return(0,a.useEffect)((function(){return function(){N.current&&clearTimeout(N.current)}}),[]),(0,a.useMemo)((function(){var l,r=(0,g.Z)(i);0!==r.length&&r.sort(w.Z.getSortByFunction(x)),null!=o&&o.showUnavailableRooms&&n&&r.sort((function(e,t){return e.isAvailable()&&!t.isAvailable()?-1:!e.isAvailable()&&t.isAvailable()?1:0})),!e.isDatePickerOpen&&!c&&r.length>0&&(N.current&&clearTimeout(N.current),N.current=setTimeout((function(){!function(){if(R.current&&S!==i){S=i;var e=t.screenSize<=C.Z.Medium?185:350;window.scrollTo({top:window.scrollY+(R.current.getBoundingClientRect().top-e),behavior:"smooth"})}}()}),100));var m=a.createElement("div",{ref:R,className:"room-list"},c||!s?a.createElement(E.Z,null):r.length?a.createElement("div",{className:"room-list__container"},r.map((function(e,t){return a.createElement(f.Z,{key:e.code,room:e,disableMarginBottom:t===r.length-1})}))):a.createElement(a.Fragment,null,u?a.createElement(ie.F,null):a.createElement(Z.Z,null),null==o||null===(l=o.crossSellHotelIds)||void 0===l?void 0:l.map((function(e){return a.createElement(p.Z,{key:e,hotelId:e})}))));return y.ZP.instance.sendRoomImpressions(),a.createElement(a.Fragment,null,a.createElement(re,null,!c&&d?a.createElement(T,{key:d.code,room:d}):null),m)}),[i,c,s,m,x,t.currentFilters,e.loadedPromotion,e.isDatePickerOpen,n])}var ce=n(38279),me=n(31972),ue=n(40370),de=n(50840),ge=n(95692),ve=function(){var e=(0,a.useContext)(l.g7),t=(0,r.TH)(),n=(0,o.$)().t,g=(0,a.useContext)(l.aN).currentStep;return a.createElement("div",{className:"container rs-step-room"},a.createElement(ue.default,null),a.createElement(u.i5,null,a.createElement(u.mV,null,e.screenSize>C.Z.Medium&&a.createElement(a.Fragment,null,a.createElement(i.rU,{to:{pathname:ge.Z.getPreviousStepUrl(g),search:t.search}},a.createElement(c.Z,null)),a.createElement("div",{className:"u-marg-top--light u-marg-bottom--heavy"},a.createElement(m.Z,{bold:!0},n(s.W.Step.Room.ChooseRoom)))),a.createElement(de.Y,null)),e.screenSize>C.Z.Medium&&a.createElement(u.f,null,a.createElement(ce.Z,null))),e.screenSize>C.Z.Medium&&a.createElement(d.Z,null),a.createElement(u.i5,null,a.createElement(u.mV,null,a.createElement(se,null)),a.createElement(u.f,null,a.createElement(me.Z,null))))}}}]);
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[288],{12288:function(e,t,n){n.r(t),n.d(t,{default:function(){return ge}});var l=n(6058),a=n(67294),o=n(26793),r=n(89250),i=n(79655),c=n(79478),s=n(13821),m=n(13010),u=n(46409),d=n(19874),v=n(42982),g=n(89331),E=n(7832),f=n(3473),p=n(72258),h=n(39136),C=n(60281),y=n(84544),w=n(90292),R=n(67023),Z=n(70885),N=n(64854),x=n(20858),S=n(78886),P=n(33409),b=n(2927),I=n(30584),k=n(73633),A=n(44744),M=n(97754),D=n(40291),B=n(32458),O=n(98013);function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}var T=function(e){var t=e.room,n=(0,a.useState)([]),r=(0,Z.Z)(n,2),i=r[0],s=r[1],u=(0,a.useState)([]),d=(0,Z.Z)(u,2),v=d[0],E=d[1],f=(0,a.useState)(!1),p=(0,Z.Z)(f,2),h=p[0],C=p[1],R=a.useContext(l.g7),T=(0,a.useContext)(l.hy),_=(0,g.WP)().hotel,F=(0,o.$)().t;(0,a.useEffect)((function(){var e=[],n=[];if(k.Z.isActive()){var l,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var l=0,a=function(){};return{s:a,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){i=!0,o=e},f:function(){try{r||null==n.return||n.return()}finally{if(i)throw o}}}}(t.getRates());try{for(a.s();!(l=a.n()).done;){var o,r,i,c=l.value;(null===(o=c.promoCode)||void 0===o?void 0:o.toLowerCase())===(null===(r=T.selectedBasketRow)||void 0===r||null===(i=r.getPromoCode())||void 0===i?void 0:i.toLowerCase())?n.unshift(c):e.push(c)}}catch(e){a.e(e)}finally{a.f()}n.length>0&&s(n)}else e=t.getRates();E(e)}),[t.getRates()]);var U=t.getShortDescription(),G=R.screenSize<=w.Z.Large,L=Math.round(t.getLowestPrice(!1,!0)),j=R.screenSize>w.Z.Medium&&L.toLocaleString().length<7?"large":"normal";return a.createElement("div",{className:"room-details-container --theme-retargeting u-marg-top u-marg-bottom"},a.createElement("div",{className:"room-details"},a.createElement("div",{className:"room-details--image"},a.createElement(D.Z,{images:t.getImages(),imageSize:A.h.Medium})),a.createElement("div",{className:"room-details--content u-pad--heavy u-pad@l-"},a.createElement("div",{className:"u-marg-bottom"},a.createElement("div",{className:"u-marg-bottom"},a.createElement(P.ZP,{type:P.Rm.Primary,icon:S.Tu.Add},F(c.W.Step.Room.YouBookedThisRoomRecently))),a.createElement("div",{className:"room-details--content-title u-marg-bottom--light"},a.createElement(m.Z,{bold:!0},t.name)),a.createElement(O.R,{room:t,textColor:M.Il.Navy}),a.createElement("div",{className:"room-details--content-description u-marg-bottom--light"},a.createElement(I.ZP,{color:M.Il.Navy,type:I.yG.Small},a.createElement("span",{dangerouslySetInnerHTML:{__html:(null==U?void 0:U.replace(/<br(\/|)>/g,""))||""}})))),a.createElement("div",{className:"row"},a.createElement("div",{className:"col-md-6 u-flex u-marg-bottom@m- flex-column align-items-start"},a.createElement("div",{className:"room-details--content-perks u-marg-bottom@m-"},G&&a.createElement("div",{className:"u-marg-bottom"},a.createElement(I.ZP,{type:I.yG.Small,bold:!0,color:M.Il.Accent},(null==_?void 0:_.perkTitle)||F(c.W.Misc.Perks.AndYouGetAll))))),a.createElement("div",{className:"col-md-6 u-flex justify-content-end flex-column align-items-start align-items-md-end"},a.createElement(I.ZP,{type:I.yG.Small,color:M.Il.Navy,inline:!0},F(c.W.Misc.From)),a.createElement("div",{className:"room-details--content-price flex-row align-items-end"},a.createElement(m.Z,{size:j,bold:!0},a.createElement(x.Z,{hideDecimals:!0},L)),a.createElement(I.ZP,{color:M.Il.Navy,inline:!0},"/",F(c.W.Misc.Night))),a.createElement("div",{className:"u-marg-bottom"},a.createElement(I.ZP,{type:I.yG.Small,color:M.Il.Navy,className:"u-nowrap"},a.createElement(b._,{room:t}))),a.createElement("div",{className:"u-marg-top--light u-flex justify-content-end u-w-100@m-"},a.createElement(N.Z,{name:"ViewRatesNowButton",primary:!0,filled:!0,stopIconAnimation:!0,iconPosition:"right",wide:R.screenSize<=w.Z.Large,onClick:function(){y.ZP.instance.sendInteraction("More Room Details",y.s_.LINK,y._J.ROOMS),C(!0)}},F(c.W.Step.Room.RoomInfo.ViewRates))))))),a.createElement(B.Z,{open:h,room:e.room,rates:v,featuredRates:i,onClose:function(){C(!1)}}))},_=n(94184),F=n.n(_),U=n(79740),G=n(42530),L=n(89089),j=n(65986),z=n(25112),V=n(63351),J=n(95494),Y=n(43261);function $(e){(0,g.WP)().hotel;var t,n,l,r,i=(0,(0,J.X)().getMaxSelectableAdults)({adults:null===(t=e.row)||void 0===t?void 0:t.getAdults(),children:null===(n=e.row)||void 0===n?void 0:n.getChildren()}),s=(0,o.$)().t,m=null!==(l=null===(r=e.row)||void 0===r?void 0:r.getAdults())&&void 0!==l?l:1;return a.createElement(V.P,{nativeOnMobile:!0,options:(0,v.Z)(Array(i)).map((function(e,t){return t+=1,{text:Y.Z.pluralWithDictAndCount(t,c.W.Step.Date.Adult,s),value:t.toString()}})),value:null==m?void 0:m.toString(),onChange:e.onChange,keyName:"value",labelName:"text",inputLabelColor:e.labelColor})}function H(e){var t,n,l,r=(0,g.WP)().hotel,i=(0,o.$)().t,s=null!==(t=null===(n=e.row)||void 0===n?void 0:n.getChildren())&&void 0!==t?t:1,m=Math.max((null==r?void 0:r.maxOccupancy)+1-(null===(l=e.row)||void 0===l?void 0:l.getAdults()));return(m<1||isNaN(m))&&(m=1),a.createElement(V.P,{nativeOnMobile:!0,options:(0,v.Z)(Array(m)).map((function(e,t){return{text:Y.Z.pluralWithDictAndCount(t,c.W.Step.Date.Child,i),value:t.toString()}})),value:null==s?void 0:s.toString(),onChange:e.onChange,keyName:"value",labelName:"text",inputLabelColor:e.labelColor})}var K=n(50234),X=n(41092);function q(e){var t,n,l,r=(0,g.WP)().hotel,i=(0,o.$)().t,s=null!==(t=null===(n=e.row)||void 0===n?void 0:n.getInfants())&&void 0!==t?t:1,m=Math.max((null==r?void 0:r.maxOccupancy)+1-(null===(l=e.row)||void 0===l?void 0:l.getAdults()));return(m<1||isNaN(m))&&(m=1),a.createElement(V.P,{nativeOnMobile:!0,options:(0,v.Z)(Array(m)).map((function(e,t){return{text:Y.Z.pluralWithDictAndCount(t,c.W.Step.Date.Infant,i),value:t.toString()}})),value:null==s?void 0:s.toString(),onChange:e.onChange,keyName:"value",labelName:"text",inputLabelColor:e.labelColor})}function Q(e){var t,n,r,i,s=(0,a.useContext)(l.hy),m=(0,a.useContext)(l.g7),u=(0,g.WP)().hotel,d=(0,J.X)().showChildren,v=(0,o.$)().t,E=(0,K.i)().isMobile,f=(0,a.useState)(!1),p=(0,Z.Z)(f,2),h=p[0],C=p[1],R=(0,a.useState)(!0),x=(0,Z.Z)(R,2),b=x[0],k=x[1],A=e.row,D=(0,a.useMemo)((function(){var e;return s.selectedBasketRow&&(null===(e=s.selectedBasketRow)||void 0===e?void 0:e.getID())===(null==A?void 0:A.getID())}),[s.selectedBasketRow,null===(t=s.selectedBasketRow)||void 0===t?void 0:t.getID(),null==A?void 0:A.getID()]),B=F()("room-builder-progress--item",{"--current":D,"--complete":A.isValid()}),O=(0,a.useRef)(null),W=(0,a.useState)(!1),T=(0,Z.Z)(W,2),_=T[0],V=T[1];(0,a.useEffect)((function(){h&&!D&&C(!1)}),[s.selectBasketRow]);var Q=function(e){var t=e.adults,n=e.children,l=e.infants,a=e.updatedPromoCode;t&&t!==A.getAdults()&&(y.ZP.instance.sendInteraction("Guests",y.s_.NUMBER_INPUT,y._J.ROOMS),A.setAdults(t)),!n&&0!==n||n===A.getChildren()||(y.ZP.instance.sendInteraction("Guests",y.s_.NUMBER_INPUT,y._J.ROOMS),A.setChildren(n)),!l&&0!==l||l===A.getInfants()||(y.ZP.instance.sendInteraction("Guests",y.s_.NUMBER_INPUT,y._J.ROOMS),A.setInfants(l)),!a&&""!==a||a===A.getPromoCode()||(y.ZP.instance.sendInteraction("Promo Code",y.s_.FORM_FIELD,y._J.ROOMS),A.setPromoCode(a)),s.updateBasketRow(A)},ee=function(e,t){e&&A.setStartDate(e),t&&A.setEndDate(t),s.updateBasketRow(A)},te=function(e){s.onDatePickerOpenChange(e)},ne=s.currentBasketRows.length>1,le=a.createElement("div",{className:"room-builder-progress--remove"},a.createElement(z.Z,{title:ne?"Remove this room":"Cannot remove this room as at least one must be selected."},a.createElement(N.Z,{isText:!0,icon:S.Tu.Close,iconPosition:"right",stopIconAnimation:!0,disabled:!ne,onClick:function(){y.ZP.instance.sendInteraction("Remove Room",y.s_.BUTTON,y._J.ROOMS),s.removeBasketRow(A)}}))),ae=a.createElement("div",{className:"room-builder-progress--collapse"},a.createElement(N.Z,{isText:!0,icon:b?S.Tu.ArrowDown3:S.Tu.ArrowUp3,iconPosition:"right",stopIconAnimation:!0,onClick:function(){k((function(e){return!e}))}})),oe=m.screenSize>w.Z.ExtraLarge,re=oe||D,ie=(0,a.useMemo)((function(){return 1!==s.currentBasketRows.length?e.number+1:""}),[s.currentBasketRows.length,e.number]),ce=(null==A?void 0:A.getPromoCodeTooltip(v,c.W))||"",se=function(){V(!0)},me=function(e){Q({adults:+e})},ue=function(e){Q({children:+e})},de=function(e){Q({infants:+e})},ve=A.getPromoCode(null==u?void 0:u.memberOnlyPromoCode),ge=(0,a.useMemo)((function(){return a.createElement("div",{className:"room-builder-progress--value"},a.createElement(G.Z,{startDate:A.getStartDate(),endDate:A.getEndDate(),selectedDateChanged:ee,className:"u-w-100@xl- d-flex align-items-center justify-content-center",isAboveNav:!0,onDatePickerOpenChange:te},a.createElement(z.Z,{title:v(c.W.Step.Date.SelectArrivalAndDepartureDatesByClickingHere)},a.createElement("div",{className:"u-flex align-items-center justify-content-center u-w-100@xl- u-cursor-pointer"},a.createElement(I.ZP,{color:M.Il.Accent,bold:!0,className:"u-nowrap"},A.getArrivalDate()),a.createElement(S.ZP,{icon:S.Tu.ArrowRight2}),a.createElement(I.ZP,{color:M.Il.Accent,bold:!0,className:"u-nowrap"},A.getDepartureDate())))))}),[A,te]),Ee=(0,a.useMemo)((function(){var e;return a.createElement(a.Fragment,null,a.createElement(z.Z,{title:v(c.W.Step.Date.UpdateAdults),wrapperClasses:"u-w-100@xl- d-flex"},a.createElement("div",{className:"room-builder-progress--value u-flex-justify-center u-flex"},a.createElement($,{row:A,onChange:me}))),d?a.createElement(z.Z,{title:v(c.W.Step.Date.UpdateChildren),wrapperClasses:"u-w-100@xl- d-flex"},a.createElement("div",{className:"room-builder-progress--value u-flex-justify-center u-flex"},a.createElement(H,{row:A,onChange:ue}))):null,null!=u&&null!==(e=u.childConfiguration)&&void 0!==e&&e.supportInfants?a.createElement(z.Z,{title:v(c.W.Step.Date.UpdateInfants),wrapperClasses:"u-w-100@xl- d-flex"},a.createElement("div",{className:"room-builder-progress--value u-flex-justify-center u-flex"},a.createElement(q,{row:A,onChange:de}))):null,a.createElement(a.Fragment,null,E?null:ge,a.createElement(z.Z,{title:ce,wrapperClasses:"u-w-100@xl- d-flex"},a.createElement("div",{className:"room-builder-progress--value u-cursor-pointer",ref:O,onClick:se},a.createElement("div",{className:"u-flex align-items-center justify-content-center u-w-100@xl-"},a.createElement(I.ZP,{className:"u-pad-right--light",type:I.yG.Body,color:ve?A.getPromoCodeColour():M.Il.Navy},ve||v(c.W.Step.Date.PromoCode)),a.createElement(S.ZP,{icon:S.Tu.Dropdown,color:M.Il.DarkGrey}))))))}),[A,E,ve,ce,d,null==u?void 0:u.childConfiguration,me,ue,de]);return a.createElement("div",{className:B},D||!A.isValid()?a.createElement("div",{className:"u-flex w-100 001"},a.createElement("div",{className:"u-flex flex-wrap flex-xl-nowrap flex-row u-w-100@xl- align-items-center"},a.createElement("div",null,A.isValid()?a.createElement(I.ZP,null,a.createElement("strong",{className:"u-nowrap"},v(c.W.Step.Room.EditingRoom)," ",ie)):a.createElement(I.ZP,null,a.createElement("strong",{className:"u-nowrap"},v(c.W.Step.Room.SelectRoom)," ",ie))),re?a.createElement(a.Fragment,null,!oe&&a.createElement("div",{className:"w-100 d-flex"+(re?" u-marg-bottom@xl-":"")},a.createElement(I.ZP,{type:I.yG.Small,color:M.Il.DarkGrey,inline:!0},v(c.W.Step.Room.ChooseRoomBelow))),a.createElement(a.Fragment,null,E?ge:null),E?a.createElement("div",{className:"w-100"},a.createElement(U.Z,{open:!b},a.createElement("div",{className:"w-100 u-flex flex-column"},Ee))):Ee,a.createElement(L.a,{open:_,followElement:O.current,onClose:function(){V(!1)}},a.createElement("div",{className:"u-pad--heavy"},a.createElement("div",null,a.createElement(j.Z,{value:ve,onChange:function(e){var t;t=e,y.ZP.instance.sendInteraction("Promo Code",y.s_.FORM_FIELD,y._J.ROOMS),s.selectedBasketRow&&(s.selectedBasketRow.setPromoCode(t),s.selectedBasketRow.setManualInputPromoCode(!!t),s.updateBasketRow(s.selectedBasketRow),t&&V(!1))},valid:(null===(n=s.selectedBasketRow)||void 0===n?void 0:n.getPromoCodeStatus())!==X.V.New&&ve?(null===(r=s.selectedBasketRow)||void 0===r?void 0:r.getPromoCodeStatus())===X.V.Valid:void 0,row:s.selectedBasketRow})),a.createElement("div",{className:"u-flex justify-content-end align-items-center u-marg-top"},a.createElement(N.Z,{isText:!0,size:"small",onClick:function(){y.ZP.instance.sendInteraction("Cancel Promo Popup",y.s_.BUTTON,y._J.ROOMS),V(!1)}},v(c.W.Misc.Cancel))))),!oe&&A.isValid()&&a.createElement(N.Z,{wide:!0,primary:!0,filled:!0,onClick:function(){y.ZP.instance.sendInteraction("Save Room Changes",y.s_.BUTTON,y._J.ROOMS),s.selectBasketRow(null),C(!1)}},v(c.W.Misc.Save))):a.createElement("div",{className:"w-100"},a.createElement(I.ZP,{type:I.yG.Small,color:M.Il.DarkGrey},v(c.W.Step.Room.NextRoom)))),a.createElement("div",{className:"u-flex align-items-center"},A.isValid()&&a.createElement("div",{className:"u-none@xl-"},a.createElement(z.Z,{title:"Cancel changes"},a.createElement("div",{className:"u-flex align-items-center"},a.createElement(N.Z,{isText:!0,size:"tiny",onClick:function(){y.ZP.instance.sendInteraction("Cancel Room Changes",y.s_.LINK,y._J.ROOMS),s.selectBasketRow(null),C(!1)}},v(c.W.Misc.Cancel).toUpperCase())))),a.createElement("div",{className:"u-flex align-items-center flex-row"},E&&ae,le))):a.createElement("div",{className:"u-flex w-100 002"},a.createElement("div",{className:"u-flex justify-content-start"},a.createElement("div",{className:"u-flex flex-column"},a.createElement("span",null,a.createElement(I.ZP,{inline:oe},a.createElement("strong",null,A.getRoom().name)),a.createElement(I.ZP,{inline:oe,type:oe?I.yG.Body:I.yG.Small},a.createElement("span",{className:"u-marg-left--light@xl"},Y.Z.pluralWithDictAndCount(A.getAdults(),c.W.Step.Date.Adult,v),d?a.createElement(a.Fragment,null,", ",Y.Z.pluralWithDictAndCount(A.getChildren(),c.W.Step.Date.Child,v)):null,null!=u&&null!==(i=u.childConfiguration)&&void 0!==i&&i.supportInfants?a.createElement(a.Fragment,null,", ",Y.Z.pluralWithDictAndCount(A.getInfants(),c.W.Step.Date.Infant,v)):null))),a.createElement(I.ZP,{type:I.yG.Caption,color:M.Il.DarkGrey},a.createElement("strong",null,A.getStayDateRange("ddd, MMM D, YYYY"," -")))),ve&&A.isPromoCodeValid()&&a.createElement("div",{className:"u-marg-left d-flex align-items-center"},a.createElement(P.ZP,{type:P.Rm.Success,icon:S.Tu.Money},ve))),a.createElement("div",{className:"u-flex align-items-center"},a.createElement("div",{className:"u-flex align-items-center room-builder-progress--edit"},a.createElement(z.Z,{title:v(c.W.Step.Room.EditThisRoom)},a.createElement("div",{className:"u-flex align-items-center"},a.createElement(N.Z,{isText:!0,size:"tiny",onClick:function(){y.ZP.instance.sendInteraction("Edit Room",y.s_.LINK,y._J.ROOMS),s.selectBasketRow(A),C(!0)}},v(c.W.Misc.Edit).toUpperCase())))),le)))}var ee=n(72870),te=(0,n(32941).A)(N.Z);function ne(){var e=(0,a.useContext)(l.hy),t=e.currentBasketRows,n=e.addBasketRow,r=(e.selectedBasketRow,(0,o.$)().t),i=function(){y.ZP.instance.sendInteraction("Add Room Row",y.s_.BUTTON,y._J.ROOMS),n(new X.Z)};return(0,a.useMemo)((function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"room-builder-progress"},!!t.length&&t.map((function(e,t){return a.createElement(Q,{row:e,key:e.getID(),number:t})})),a.createElement("div",{className:"u-flex justify-content-end"},a.createElement(te,{icon:S.Tu.Add,onClick:i,stopIconAnimation:!0},r(c.W.Step.Room.RoomInfo.AddRoom)))),a.createElement(ee.y,null))}),[t,r])}var le=n(87933),ae=n(4511);function oe(){var e=(0,a.useContext)(l.hy),t=(0,o.$)().t,n=!(!e.selectedBasketRow||!e.selectedBasketRow.isValid());return a.createElement("div",{className:"u-marg-top u-marg-bottom"},a.createElement(ae.Z,null),a.createElement(U.Z,{open:n},a.createElement(le.ZP,{icon:S.Tu.Edit,type:le.NK.Accent1},a.createElement(I.ZP,{type:I.yG.Small},a.createElement("strong",null,t(c.W.Misc.Alerts.YouAreEditing))," - ",t(c.W.Misc.Alerts.YouAreEditingAlert)))))}var re=function(e){return(0,a.useContext)(l.g7).screenSize<=w.Z.Medium?a.createElement(a.Fragment,null,a.createElement(oe,null),a.createElement(d.Z,{smallMargins:!0}),a.createElement(ne,null),e.children,a.createElement(d.Z,{smallMargins:!0})):a.createElement(a.Fragment,null,a.createElement(ne,null),e.children,a.createElement(oe,null))},ie=n(49368);function ce(){var e=(0,a.useContext)(l.aN).roomRateCalendarInteractivity,t=(0,a.useContext)(l.hy),n=(0,a.useContext)(l.g7),o=(0,a.useContext)(l.O8).orderUnavailableRoomsLast,r=(0,g.WP)().hotel,i=(0,h.w)(),c=i.rooms,s=i.loadingAttempted,m=i.isLoading,u=i.openRoom,d=i.apiHasError,Z=i.retargetingRoom,N=(0,a.useRef)(null),x=(0,a.useRef)(null),S=n.currentRoomSort,P=(0,a.useRef)(null);return(0,a.useEffect)((function(){return function(){x.current&&clearTimeout(x.current)}}),[]),(0,a.useMemo)((function(){var l,i=(0,v.Z)(c);0!==i.length&&i.sort(C.Z.getSortByFunction(S)),null!=r&&r.showUnavailableRooms&&o&&i.sort((function(e,t){return e.isAvailable()&&!t.isAvailable()?-1:!e.isAvailable()&&t.isAvailable()?1:0}));var u=!(null==e||!e.rateCode||null==e||!e.roomCode),g=m||!s;u&&(P.current=c),!t.isDatePickerOpen&&!m&&i.length>0&&(x.current&&clearTimeout(x.current),x.current=setTimeout((function(){u||function(){if(N.current&&P.current!==c){P.current=c;var e=n.screenSize<=w.Z.Medium?185:350;window.scrollTo({top:window.scrollY+(N.current.getBoundingClientRect().top-e),behavior:"smooth"})}}()}),100));var h=a.createElement("div",{ref:N,className:"room-list"},g&&!u?a.createElement(E.Z,null):i.length?a.createElement("div",{className:"room-list__container"},g&&u?a.createElement(E.Z,null):a.createElement(a.Fragment,null),i.map((function(e,t){return a.createElement(f.Z,{key:e.code,room:e,disableMarginBottom:t===i.length-1})}))):a.createElement(a.Fragment,null,d?a.createElement(ie.F,null):a.createElement(R.Z,null),null==r||null===(l=r.crossSellHotelIds)||void 0===l?void 0:l.map((function(e){return a.createElement(p.Z,{key:e,hotelId:e})}))));return y.ZP.instance.sendRoomImpressions(),a.createElement(a.Fragment,null,a.createElement(re,null,!m&&Z?a.createElement(T,{key:Z.code,room:Z}):null),h)}),[c,m,s,u,S,n.currentFilters,t.loadedPromotion,t.isDatePickerOpen,o,e])}var se=n(38279),me=n(31972),ue=n(40370),de=n(50840),ve=n(95692),ge=function(){var e=(0,a.useContext)(l.g7),t=(0,a.useContext)(l.aN),n=t.roomRateCalendarInteractivity,v=t.setRoomRateCalendarInteractivity,g=(0,r.TH)(),E=(0,o.$)().t,f=(0,a.useContext)(l.aN).currentStep;return(0,a.useEffect)((function(){return function(){n&&v(null)}}),[f]),a.createElement("div",{className:"container rs-step-room"},a.createElement(ue.default,null),a.createElement(u.i5,null,a.createElement(u.mV,null,e.screenSize>w.Z.Medium&&a.createElement(a.Fragment,null,a.createElement(i.rU,{to:{pathname:ve.Z.getPreviousStepUrl(f),search:g.search}},a.createElement(s.Z,null)),a.createElement("div",{className:"u-marg-top--light u-marg-bottom--heavy"},a.createElement(m.Z,{bold:!0},E(c.W.Step.Room.ChooseRoom)))),a.createElement(de.Y,null)),e.screenSize>w.Z.Medium&&a.createElement(u.f,null,a.createElement(se.Z,null))),e.screenSize>w.Z.Medium&&a.createElement(d.Z,null),a.createElement(u.i5,null,a.createElement(u.mV,null,a.createElement(ce,null)),a.createElement(u.f,null,a.createElement(me.Z,null))))}}}]);
@@ -1 +1 @@
1
- (("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[328],{72258:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(70885),o=n(6058),l=n(67294),a=n(26793),i=n(79478),c=n(1126),m=n(83893),s=n(20858),u=n(13010),d=n(78886),p=n(64485),A=n(30584),f=n(57133),g=n(44744),v=n(97754),y=n(90292);function C(e){var t=(0,a.$)().t,n=(0,l.useContext)(o.g7),C=(0,l.useContext)(o.hy),h=(0,l.useState)(!1),b=(0,r.Z)(h,2),E=b[0],_=b[1],x=(0,l.useState)(!0),S=(0,r.Z)(x,2),B=S[0],k=S[1],Z=(0,l.useState)(!0),R=(0,r.Z)(Z,2),w=R[0],O=R[1],P=(0,l.useState)(""),N=(0,r.Z)(P,2),D=N[0],j=N[1],I=(0,l.useState)(""),M=(0,r.Z)(I,2),F=M[0],W=M[1],L=(0,l.useState)(""),z=(0,r.Z)(L,2),U=z[0],T=z[1],G=(0,l.useState)(""),Y=(0,r.Z)(G,2),q=Y[0],J=Y[1],Q=(0,l.useState)([]),V=(0,r.Z)(Q,2),H=V[0],$=V[1],X=(0,f.t)().memberNumber;return(0,l.useEffect)((function(){var t=C.selectedBasketRow;t&&m.Z.Availability.getCheapestPricePerDay(t.getStartDate(),t.getEndDate(),t.getAdults(),t.getChildren(),t.getInfants(),t.getPromoCode(),t.getRoomCode(),e.hotelId,X,!0).catch().then((function(n){if(n){for(var r=!0,o=t.getStartDate();o.isBefore(t.getEndDate(),"day");o=o.add(1,"day"))if(!n[o.format(c.yJ)]){r=!1;break}if(_(r),k(!0),r){O(!0);var l=m.Z.Availability.getCrossSellHotelInfo(e.hotelId);W(l.name),j(l.image||""),T(l.description);var a=["arrive="+t.getStartDate().format("YYYY-M-D"),"depart="+t.getEndDate().format("YYYY-M-D")];t.getAdults()>1&&a.push("adults="+t.getAdults()),t.getChildren()>0&&a.push("children="+t.getChildren()),t.getInfants()>0&&a.push("infants="+t.getInfants()),t.getPromoCode()&&a.push("promocode="+t.getPromoCode()),J(l.checkoutUrl+"#/step/room/?"+a.join("&")),m.Z.Availability.fetchAvailabilityData(t,e.hotelId,X,!0).catch((function(e){return[]})).then((function(e){null!=e&&e.length?($(e),O(!1)):(k(!1),O(!1))}))}}}))}),[C.selectedBasketRow]),E?l.createElement("div",{className:"u-marg-top--heavy u-marg-bottom"},l.createElement("div",{className:"cross-sell-module"},l.createElement("div",{className:"cross-sell-module--image",style:{backgroundImage:"url('".concat(g.Z.resizeImage(D,g.h.Original),"')")}}),l.createElement("div",{className:"cross-sell-module--content u-pad--heavy u-pad@m-"},l.createElement("div",{className:"u-marg-bottom--heavy"},l.createElement("div",{className:"cross-sell-module--content-title u-marg-bottom--light"},l.createElement(u.Z,{bold:!0,size:B?"large":"normal"},t(w?i.W.Step.Room.CrossSellBlock.AvailabilityNearBy1:B?i.W.Step.Room.CrossSellBlock.AvailabilityNearBy2:i.W.Step.Room.CrossSellBlock.DateUnavailable))),B&&l.createElement("div",{className:"cross-sell-module--content-description u-marg-bottom--light"},l.createElement(A.ZP,{color:v.Il.DarkGrey,type:A.yG.Body},l.createElement("strong",{style:{color:v.Il.Accent}},F),l.createElement("div",{dangerouslySetInnerHTML:{__html:U}})))),w?l.createElement(p.Z,null):l.createElement(l.Fragment,null,H.slice(0,4).map((function(e,n){var r=q+"&room="+e.code,o="u-flex align-items-end";return n<H.length-1&&(o+=" u-pad-bottom u-border-bottom u-marg-bottom"),l.createElement("a",{key:e.code,className:o,href:r,target:"_blank",rel:"noreferrer"},l.createElement("div",{className:"u-flex flex-column align-items-start justify-content-start"},l.createElement(A.ZP,{type:A.yG.Body,color:v.Il.Accent,bold:!0},e.name),l.createElement(A.ZP,{type:A.yG.Small,color:v.Il.DarkGrey},t(i.W.Step.Room.Sleeps,{maxOccupancy:e.occupancy}))),l.createElement("div",{className:"u-flex flex-column align-items-end align-items-md-end"},l.createElement(A.ZP,{type:A.yG.Small,color:v.Il.DarkGrey,inline:!0},t(i.W.Misc.From)),l.createElement(A.ZP,{type:A.yG.Body,color:v.Il.Accent,bold:!0},l.createElement(s.Z,null,e.getLowestPrice(!0)))))}))),B&&l.createElement("div",{className:"u-marg-top--light u-flex justify-content-start u-w-100@m- u-marg-top--heavy"},l.createElement("a",{className:"link-button --primary --filled --success --icon-right --normal"+(n.screenSize<=y.Z.Medium?" --wide":""),tabIndex:0,type:"button",href:q,target:"_blank",rel:"noreferrer"},l.createElement("span",null,"See all ",H.length," rooms",l.createElement(d.ZP,{icon:d.Tu.ArrowRight,size:"1em"}))))))):null}},32458:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(42982),o=n(6058),l=n(89331),a=n(67294),i=n(26793),c=n(79478),m=n(13010),s=n(78886),u=n(19874),d=n(65128),p=n(30584),A=n(40291),f=n(98013),g=n(8643),v=n(97754),y=n(11830),C=n(98631);function h(e){var t,n=(0,a.useContext)(o.O8).roomModalDescSideBySide,h=(0,i.$)().t,b=(0,l.WP)().hotel,E=b.rooms,_=e.room.getRoomPerks({hotel:b,room:e.room}),x=_.roomPerks,S=_.prePerkDisclaimer,B=null==E?void 0:E[e.room.code],k=null!=B&&B.amenities?(0,r.Z)(B.amenities):[];null!=B&&null!==(t=B.features)&&void 0!==t&&t.length&&B.features.forEach((function(e){k.push(e)}));var Z=(null==S?void 0:S.replace(/<br(\/|)>/g,""))||"",R=function(){return a.createElement("div",{className:"u-marg-bottom--heavy rs-room-modal-long-description"},a.createElement(p.ZP,{type:p.yG.Small,color:v.Il.Graphite,asDiv:!0},a.createElement(y.R,{content:e.room.getLongDescription()||""})))};return a.createElement(d.Z,{title:e.room.name+" "+h(c.W.Step.Room.RoomInfo.Information),open:e.open,size:d.g.Small,onClose:e.onClose},a.createElement("div",{className:"rs-room-modal"},a.createElement("div",{style:{height:"350px"}},a.createElement(A.Z,{images:e.room.getImages()})),a.createElement("div",{className:"u-marg-heavy u-marg@m- rs-room-modal-container"},a.createElement("div",{className:"u-marg-bottom--light rs-room-modal-headline"},a.createElement(m.Z,{bold:!0,size:"large"},e.room.name)),a.createElement(f.R,{room:e.room}),a.createElement("div",{className:"u-marg-bottom--heavy rs-room-modal-short-description"},a.createElement(p.ZP,{color:v.Il.DarkGrey,type:p.yG.Small},a.createElement("span",{dangerouslySetInnerHTML:{__html:e.room.getShortDescription(!1)||""}}))),n?a.createElement(a.Fragment,null,a.createElement(R,null),a.createElement(u.Z,null)):null,!(null!=b&&b.perksHideOnRoomDetail)&&x&&a.createElement("div",{className:"u-marg-bottom--heavy rs-room-modal-perks"},a.createElement("div",{className:"row"},a.createElement(C.Z,{hotel:b,room:e.room,roomPerks:x})),(null==b?void 0:b.perksShowDisclaimer)&&a.createElement("div",{className:"row u-marg-top--lighter"},a.createElement("small",{className:"col-12"},h(c.W.Misc.PerksDisclaimer)))),!(null==k||!k.length)&&a.createElement(a.Fragment,null,a.createElement("div",{className:"u-marg-bottom"},a.createElement(p.ZP,{color:v.Il.Accent,type:p.yG.Small},a.createElement("strong",null,h(c.W.Step.Room.RoomInfo.RoomAmenities)))),a.createElement("div",{className:"row"},k.map((function(e){return a.createElement("div",{key:e.description,className:"col-sm-6 u-marg-bottom--light u-flex justify-content-start"},a.createElement(s.ZP,{icon:s.Tu.Check,color:v.Il.White,backgroundColor:v.Il.Navy,borderRadius:"round",noPadding:!0,size:"16px"}),a.createElement("div",{className:"u-marg-left--light u-flex"},a.createElement(p.ZP,{type:p.yG.Small,inline:!0},e.description)))})))),a.createElement(u.Z,null),n?null:a.createElement(R,null),!!Z&&a.createElement("div",{className:"u-marg-bottom--heavy rs-room-modal-disclaimer"},a.createElement(p.ZP,{type:p.yG.Small},a.createElement("strong",null,h(c.W.Step.Room.RoomInfo.Disclaimer))),a.createElement(p.ZP,{type:p.yG.Small},a.createElement("span",{dangerouslySetInnerHTML:{__html:Z}})))),a.createElement(g.Z,{featuredRates:e.featuredRates,rates:e.rates,roomCode:e.room.code})))}},49368:function(e,t,n){"use strict";n.d(t,{F:function(){return B}});var r=n(87462),o=n(15861),l=n(70885),a=n(64687),i=n.n(a),c=n(6058),m=n(27484),s=n.n(m),u=n(67294),d=n(87536),p=n(26793),A=n(79478),f=n(79740),g=n(83893),v=n(87933),y=n(64854),C=n(13010),h=n(78886),b=n(30584),E=n(41432),_=n(514),x=n(97754),S=n(16431),B=function(){var e=(0,d.cI)(),t=e.register,n=e.handleSubmit,a=e.formState,m=(0,_.W)().hotel,B=(0,u.useContext)(c.hy),k=(0,p.$)().t,Z=(0,u.useState)({}),R=(0,l.Z)(Z,2),w=R[0],O=R[1],P=(0,u.useState)(!1),N=(0,l.Z)(P,2),D=N[0],j=N[1],I=function(){var e=(0,o.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O({}),j(!0),e.prev=2,n=B.selectedBasketRow,r="",[{name:"Adults",value:n.getAdults()},{name:"Children",value:n.getChildren()},{name:"Infants",value:n.getInfants()},{name:"Promo Code",value:n.getPromoCode()},{name:"Dates range",value:n.getStayDateRange("ddd D MMM YYYY"," till ")},{name:"Date Sent",value:s()().format("dd D MMM YYYY")}].forEach((function(e){var t=e.name,n=e.value;n&&(r+="".concat(t,": ").concat(n,"\n"))})),e.next=8,g.Z.Error.sendRoomFallbackForm(null==m?void 0:m.hotelID,{name:t.name,telephone:t.telephone,email:t.email,searchQuery:r});case 8:O({success:!0}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),O({success:!1,message:k(A.W.Step.Room.ErrorForm.APIError)});case 14:j(!1);case 15:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}();return u.createElement("div",{className:"u-fill-white u-rounded"},u.createElement("div",{className:"row u-pad--heavy"},u.createElement("div",{className:"col-lg-6 d-flex justify-content-center flex-column"},u.createElement("div",{className:"u-marg-bottom--light"},u.createElement(h.ZP,{icon:h.Tu.Error,color:x.Il.Alert,size:"24px"})),u.createElement("div",{className:"u-marg-bottom--light"},u.createElement(C.Z,{bold:!0,color:x.Il.Alert},u.createElement("span",{style:{color:"inherit"},dangerouslySetInnerHTML:{__html:k(A.W.Step.Room.ErrorForm.Title)}}))),u.createElement(b.ZP,{type:b.yG.Small},u.createElement("span",{dangerouslySetInnerHTML:{__html:k(A.W.Step.Room.ErrorForm.Description)}}))),u.createElement("div",{className:"col-lg-6"},u.createElement("form",null,u.createElement(f.Z,{open:!!a.errors},Object.values(a.errors).map((function(e,t){return u.createElement(v.ZP,{key:t,type:v.NK.Danger},u.createElement(b.ZP,{type:b.yG.Small},null==e?void 0:e.message))}))),u.createElement("div",{className:"u-marg-bottom--light u-marg-top"},u.createElement(E.Z,(0,r.Z)({placeholder:k(A.W.Step.Room.ErrorForm.Inputs.Name)},t("name",{required:{value:!0,message:"".concat(k(A.W.Step.Room.ErrorForm.Inputs.Name)," is a required field")}})))),u.createElement("div",{className:"u-marg-bottom--light"},u.createElement(E.Z,(0,r.Z)({placeholder:k(A.W.Step.Room.ErrorForm.Inputs.Email)},t("email",{required:{value:!0,message:"".concat(k(A.W.Step.Room.ErrorForm.Inputs.Email)," is a required field")},pattern:{value:S.CU,message:"Email must be valid"}})))),u.createElement("div",{className:"u-marg-bottom--light"},u.createElement(E.Z,(0,r.Z)({placeholder:k(A.W.Step.Room.ErrorForm.Inputs.Telephone)},t("telephone",{required:{value:!0,message:"".concat(k(A.W.Step.Room.ErrorForm.Inputs.Telephone)," is a required field")}})))),u.createElement(y.Z,{filled:!0,primary:!0,onClick:n(I),isLoading:D,disabled:D||w.success},k(A.W.Step.Room.ErrorForm.ContactUsButton)),u.createElement(f.Z,{open:!!w.success},u.createElement("div",{className:"u-pad-top"},u.createElement(b.ZP,{color:x.Il.Success},k(A.W.Step.Room.ErrorForm.ConfirmationMessage)))),u.createElement(f.Z,{open:!1===w.success},u.createElement("div",{className:"u-pad-top"},u.createElement(b.ZP,{color:x.Il.Alert},w.message)))))))}},72870:function(e,t,n){"use strict";n.d(t,{y:function(){return l}});var r=n(6058),o=n(67294),l=function(){var e,t,n=(0,o.useContext)(r.hy).selectedBasketRow;return o.createElement("script",{type:"application/ld+json"},JSON.stringify({"@context":"https://structured-data.triptease.io","@type":"LodgingSearch",checkinTime:null==n||null===(e=n.getStartDate())||void 0===e?void 0:e.format("YYYY-M-D"),checkoutTime:null==n||null===(t=n.getEndDate())||void 0===t?void 0:t.format("YYYY-M-D"),numAdults:null==n?void 0:n.getAdults(),numChildren:null==n?void 0:n.getChildren(),numInfants:null==n?void 0:n.getInfants(),numRooms:"1",offerCode:null==n?void 0:n.getPromoCode()}))}},3473:function(e,t,n){"use strict";n.d(t,{Z:function(){return J}});var r=n(4942),o=n(70885),l=n(6058),a=n(89331),i=n(94184),c=n.n(i),m=n(67294),s=n(26793),u=n(79740),d=n(64854),p=n(20858),A=n(13010),f=n(78886),g=n(19874),v=n(26573),y=n(30584),C=n(40291),h=n(98013),b=n(42041),E=n(90292);function _(e){var t,n=(0,m.useContext)(l.g7),r=(0,a.WP)().hotel,i=e.perks,s=e.room,u=n.screenSize<=E.Z.Large,d=(0,m.useState)(null===(t=i[0])||void 0===t?void 0:t.name),p=(0,o.Z)(d,2),A=p[0],f=p[1],g=c()("room-perk-icon",{"--has-bg":u});return m.createElement(m.Fragment,null,!(null==i||!i.length)&&m.createElement("ul",null,i.map((function(e,t){if(!(u&&t>=4)){var o=(0,b.W)(e);return m.createElement("li",{key:t,onClick:function(){f(e.name)}},m.createElement("div",{className:g},o),m.createElement("div",{className:"u-marg-right u-none@l- u-block@m- "+(u&&A!==e.name||n.screenSize===E.Z.Tiny?"u-none-2":"")},m.createElement(y.xv,{type:y.yG.Small},null!=e&&e.perkNameRenderer?e.perkNameRenderer({hotel:r,room:s}):e.name)))}}))))}var x=n(57700),S=n(8643),B=n(83966),k=n(40742),Z=n(79478),R=n(97754),w=n(80131),O=n.n(w);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){var t,n,i=e.room,p=e.hideFindAvailableRooms,A=(0,s.$)().t,g=(0,m.useContext)(l.g7),v=g.screenSize,C=g.currentFilters,h=g.setCurrentFilters,b=(0,a.WP)().hotel,_=(0,m.useContext)(l.hy),x=_.currentBasketRows,S=null!==(t=_.selectedBasketRow)&&void 0!==t?t:x[x.length-1],w=(0,m.useState)(null),N=(0,o.Z)(w,2),D=N[0],j=N[1],I=(0,m.useState)(null),M=(0,o.Z)(I,2),F=M[0],W=M[1],L=(0,m.useState)(!1),z=(0,o.Z)(L,2),U=z[0],T=z[1];return m.createElement(m.Fragment,null,m.createElement("div",{className:c()(O().container,(0,r.Z)({},O().calendarOpen,U))},m.createElement("div",{className:O().info},m.createElement(y.ZP,{bold:!0},A(Z.W.Step.Room.RoomInfo.Unfortunately)),m.createElement(y.ZP,{color:R.Il.Accent},null==S?void 0:S.getStartDate().format("ddd, DD MMM")," — ",null==S?void 0:S.getEndDate().format("ddd, DD MMM")),m.createElement(y.ZP,{type:y.yG.Small},A(Z.W.Step.Room.RoomInfo.IsUnavailableForRoom,{room:i.name}))),!p&&m.createElement(d.Z,{className:O().findDatesBtn,name:"FindAvailableDatesButton",primary:!0,primaryActive:U,filled:!0,icon:U?f.Tu.ArrowUp2:f.Tu.ArrowDown2,iconPosition:"right",stopIconAnimation:!0,textColor:(0,R.pJ)(U?null==b?void 0:b.colors.accent3:null==b?void 0:b.colors.accent),onClick:function(){return T((function(e){return!e}))},size:v<=E.Z.Mobile?"small":"normal"},A(Z.W.Step.Room.RoomInfo.FindAvailableDatesForRoom)),m.createElement(u.Z,{open:U,topOffset:21},m.createElement("div",{className:O().calendarOverlay},m.createElement(B.Z,{showMonthOnLoad:S.getStartDate(),showMultipleMonths:v>E.Z.ExtraLarge,supportsMultiSelecting:!0,supportsWeek:!1,className:O().calendar,roomCode:null!==(n=i.code)&&void 0!==n?n:"",small:!0,onStartDateChanged:j,onEndDateChanged:W}),m.createElement("div",{className:O().calendarFooter},m.createElement(y.ZP,{bold:!0,color:D?R.Il.Accent:void 0},D?"".concat(D.format("ddd, DD MMM")).concat(F?" — ".concat(F.format("ddd, DD MMM")):""):A(Z.W.Step.Room.RoomInfo.SelectDate)),m.createElement(d.Z,{primary:!0,filled:!0,onClick:function(){if(D&&F&&i.code){_.setStartDate(D),_.setEndDate(F);var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},C);e.RoomType=new k.Z([i.code]),h(e)}},disabled:!(D&&F),mobileWidth:!0},A(Z.W.Step.Room.RoomInfo.SelectCheckoutDate)))))))}var D=n(32458),j=n(49723),I=n(46716),M=n(33236),F=function(e){var t,n=(0,M.useCurrentHotel)().hotel,r=(0,m.useContext)(l.hy),a=(0,m.useContext)(l.g7),i=(0,m.useState)(!0),c=(0,o.Z)(i,2),s=c[0],u=c[1],d=null!==(t=r.selectedBasketRow)&&void 0!==t?t:r.currentBasketRows[0];return(0,m.useEffect)((function(){var t=!1;u(!0);var r=null==e?void 0:e.code;if(null!=n&&n.checkAreaAvailabilityOnRoomStep&&r){var l,i=null===(l=n.roomGroups)||void 0===l?void 0:l.find((function(t){return t.id===(null==e?void 0:e.roomGroupId)})),c=null!=i&&i.filters?Object.keys(i.filters):[],m=Object.fromEntries(Object.entries(a.currentGroupedRoomFilters).filter((function(e){var t=(0,o.Z)(e,1)[0];return c.includes(t)})));M.API.Availability.fetchAreaAvailability(d,n.hotelID,m).then((function(e){t||0!==e[r]||u(!1)}))}return function(){t=!0}}),[d,a.currentGroupedRoomFilters,n,e]),s},W=n(50234),L=n(78361),z=n(73633),U=n(44744),T=n(61715),G=n(84544),Y=n(39605);function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(e){var t=e.room,n=(0,m.useState)([]),i=(0,o.Z)(n,2),b=i[0],B=i[1],k=(0,m.useState)([]),w=(0,o.Z)(k,2),O=w[0],P=w[1],M=(0,m.useState)(!t.isAvailable()),J=(0,o.Z)(M,2),Q=J[0],V=J[1],H=(0,m.useState)(!1),$=(0,o.Z)(H,2),X=$[0],K=$[1],ee=(0,s.$)().t,te=(0,m.useContext)(l.g7),ne=(0,m.useContext)(l.hy),re=(0,m.useContext)(l.Qm),oe=(0,a.WP)().hotel,le=(0,m.useContext)(l.O8),ae=F(t),ie=c()("room-details",(0,r.Z)({},"+is-open",Q));(0,m.useEffect)((function(){var n;null!==(n=ne.selectedBasketRow)&&void 0!==n&&n.getRoom()&&ne.selectedBasketRow.getRoom().code===e.room.code&&V(!0);var r=ne.selectedBasketRow;r&&G.ZP.instance.addRoomImpression(t,{to:r.getStartDate(),from:r.getEndDate()},r.getPromoCode())}),[ne.selectedBasketRow]),(0,m.useEffect)((function(){var e=[],n=[];if(z.Z.isActive()){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw l}}}}(t.getRates());try{for(o.s();!(r=o.n()).done;){var l,a,i,c=r.value;(null===(l=c.promoCode)||void 0===l?void 0:l.toLowerCase())===(null===(a=ne.selectedBasketRow)||void 0===a||null===(i=a.getPromoCode())||void 0===i?void 0:i.toLowerCase())?n.unshift(c):e.push(c)}}catch(e){o.e(e)}finally{o.f()}n.length>0&&(V(!0),B(n))}else e=t.getRates();P(e)}),[t.getRates()]);var ce=t.getShortDescription(),me=(0,W.i)().isMobile,se=Q||te.screenSize<=E.Z.Medium&&null===Q&&!(null!=oe&&oe.mobileDefaultRatesClosed),ue=t.getLowestPrice(!1,!0),de=le.alwaysShowDecimals?ue:Math.round(ue),pe=te.screenSize>E.Z.Medium&&de.toLocaleString().length<7?"large":"normal",Ae=function(e){return Math.round(T.z7(e,!0,re.currentCurrency,null==oe?void 0:oe.defaultCurrency))},fe=(0,j.Z)({hideDecimals:!0,children:de}),ge=fe.value,ve=fe.isLoading,ye=ne.selectedBasketRow,Ce=(0,I.Z)().hasPricePreview,he=t.getRoomPerks({hotel:oe,room:t,perksLimitNumber:5}).roomPerks;return m.createElement("div",{className:"room-details-container ".concat(e.disableMarginBottom?"":"u-marg-bottom")},m.createElement("div",{className:ie},m.createElement("div",{className:"room-details--image"},m.createElement(C.Z,{images:e.room.getImages(),imageSize:U.h.Medium})),m.createElement("div",{className:"room-details--content u-pad--heavy u-pad@l-"},m.createElement("div",{className:"u-marg-bottom"},te.screenSize>E.Z.Large&&m.createElement(m.Fragment,null,m.createElement("div",{className:"u-marg-bottom"},m.createElement(x.Z,{room:t,limit:2}))),m.createElement("div",{className:"room-details--content-title u-marg-bottom--light"},m.createElement(A.Z,{bold:!0},t.name)),m.createElement(h.R,{room:t}),(null==ce?void 0:ce.replace(/<br(\/|)>/g,""))&&m.createElement("div",{className:"room-details--content-description u-marg-bottom--light"},m.createElement(y.ZP,{color:R.Il.DarkGrey,type:y.yG.Small},m.createElement("span",{dangerouslySetInnerHTML:{__html:(null==ce?void 0:ce.replace(/<br(\/|)>/g,""))||""}})))),m.createElement("div",{className:"row"},!(null!=oe&&oe.perksHideOnRoomRow)&&m.createElement("div",{className:"col-12 u-flex u-marg-bottom@m- flex-column align-items-start"},m.createElement("div",{className:"room-details--content-perks u-marg-bottom@m-"},me&&m.createElement("div",{className:"u-marg-bottom"},m.createElement(y.ZP,{type:y.yG.Small,bold:!0,color:R.Il.Accent},(null==oe?void 0:oe.perkTitle)||ee(Z.W.Misc.Perks.AndYouGetAll))),m.createElement(_,{perks:he,room:t}))),(null==oe?void 0:oe.showDescriptionOnRoomDetails)&&m.createElement("div",{className:"col-12"},m.createElement(g.Z,{noMargins:!0}),m.createElement("div",{className:"u-marg-top u-text-overflow-ellipsis-3 u-marg-bottom"},m.createElement(y.ZP,{type:y.yG.Small,color:R.Il.Graphite},m.createElement("span",{dangerouslySetInnerHTML:{__html:e.room.getLongDescription()||""}})))),m.createElement("div",{className:"col-md-6 u-flex u-marg-bottom@m- flex-column align-items-start"},m.createElement(d.Z,{icon:f.Tu.ArrowRight2,isText:!0,primary:!0,size:"tiny",iconPosition:"right",onClick:function(){G.ZP.instance.sendInteraction("More Room Details",G.s_.LINK,G._J.ROOMS),K(!0)}},ee(Z.W.Step.Room.RoomInfo.MoreDetails))),t.isAvailable()&&m.createElement("div",{className:"col-md-6 u-flex justify-content-end flex-column align-items-start align-items-md-end"},m.createElement(y.ZP,{type:y.yG.Small,color:R.Il.Navy,inline:!0},ee(Z.W.Misc.From)),m.createElement("div",{className:"room-details--content-price flex-row align-items-end"},m.createElement(A.Z,{size:pe,bold:!0},m.createElement(p.Z,{hideDecimals:!0},de)),m.createElement(y.ZP,{color:R.Il.DarkGrey,inline:!0},"/",ee(Z.W.Misc.Night))),m.createElement(y.ZP,{type:y.yG.Small,color:R.Il.Grey,className:"u-nowrap",align:me?Y.P.Left:Y.P.Right},m.createElement("span",{dangerouslySetInnerHTML:{__html:t.getLowestPriceType()===L.I.IncludingFeesAndTaxes?ee(Z.W.Step.Room.RoomInfo.IncludesTaxes):ee(Z.W.Step.Room.ExcludingTaxes)}})))),m.createElement("div",{className:"u-flex-direction-column u-flex u-flex-align-flex-end u-flex-align-flex-start@m- u-w-100@m-"},!ve&&Ce?m.createElement("div",{className:"u-marg-top--light"},m.createElement(v.C,{price:ge,checkin:((null==ye?void 0:ye.getStartDate())||ne.endDate).format("YYYY-MM-DD"),currency:re.currentCurrency})):null,m.createElement(d.Z,{className:"u-marg-top--light",name:"ViewRatesNowButton",primary:!0,primaryActive:!!se,filled:!0,stopIconAnimation:!0,icon:se?f.Tu.ArrowUp2:f.Tu.ArrowDown2,iconPosition:"right",onClick:function(){if(!se){var e=ne.selectedBasketRow;e&&G.ZP.instance.sendRoomClick(t,e.getStartDate(),e.getEndDate(),e.getPromoCode())}V(!se)},wide:te.screenSize<=E.Z.Large,textColor:(0,R.pJ)(se?null==oe?void 0:oe.colors.accent3:null==oe?void 0:oe.colors.accent)},ee(se?Z.W.Step.Room.RoomInfo.CloseRates:Z.W.Step.Room.RoomInfo.ViewRates))))),m.createElement(u.Z,{open:!!se},t.isAvailable()&&ae?m.createElement(S.Z,{roomCode:t.code,rates:O,featuredRates:b,bookNowButtonDisabledReason:e.bookNowButtonDisabledReason}):m.createElement(N,{room:t,hideFindAvailableRooms:t.isAvailable()&&!ae})),m.createElement(D.Z,{open:X,room:e.room,rates:O,featuredRates:b,onClose:function(){K(!1)}}),t.getRates().map((function(e){return m.createElement("script",{key:t.code+"-"+e.code,type:"application/ld+json"},JSON.stringify({"@context":"http://schema.org/","@type":"Offer",itemOffered:{"@type":"HotelRoom",name:t.name},name:e.name,identifier:e.code,priceSpecification:{"@type":"UnitPriceSpecification",price:Ae(e.getAveragePrice(!0)),basePrice:Ae(e.getTotalPrice(!0)),totalPrice:Ae(e.getAveragePrice()),priceCurrency:re.currentCurrency,unitText:"Nightly"}}))})))}},98013:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(89331),o=n(67294),l=n(26793),a=n(78886),i=n(30584),c=n(79478),m=n(97754);function s(e){var t,n,s,u,d,p,A,f=(0,r.WP)().hotel,g=(0,l.$)().t,v=null==f||null===(t=f.rooms)||void 0===t?void 0:t[null===(n=e.room)||void 0===n?void 0:n.code],y=null==v?void 0:v.roomSize,C=null==f||null===(s=f.overwrites)||void 0===s||null===(u=s[null===(d=e.room)||void 0===d?void 0:d.code])||void 0===u?void 0:u.RoomDimensions,h=null!=C?C:y?"".concat(y," m²"):void 0,b=!(null==v||!v.petFriendly),E=null!==(p=e.textColor)&&void 0!==p?p:m.Il.DarkGrey,_="".concat((null==v?void 0:v.bedQuantity)>0?null==v?void 0:v.bedQuantity:""," ").concat(null==v?void 0:v.bedType);return null!=v&&null!==(A=v.bedTypeOverride)&&void 0!==A&&A.trim()&&(_=v.bedTypeOverride),o.createElement("ul",{className:"u-inline-flex u-flex-gap u-flex-wrap u-marg-bottom rs-room-details-beds-block"},o.createElement("li",{className:"u-flex align-items-center"},o.createElement(a.ZP,{icon:a.Tu.People,size:"24px",color:m.Il.Navy}),o.createElement("div",{className:"u-pad-left--light"},o.createElement(i.xv,{type:i.yG.Small,inline:!0,color:E},g(c.W.Step.Room.Sleeps,{maxOccupancy:null==v?void 0:v.maxOccupancy})))),!1!==(null==v?void 0:v.showBedType)&&o.createElement("li",{className:"u-flex align-items-center"},o.createElement(a.ZP,{icon:a.Tu.Bed,size:"24px",color:m.Il.Navy}),o.createElement("div",{className:"u-pad-left--light"},o.createElement(i.xv,{type:i.yG.Small,inline:!0,color:E},_))),!!h&&o.createElement("li",{className:"u-flex align-items-center"},o.createElement(a.ZP,{icon:a.Tu.RoomSize,size:"24px",color:m.Il.Navy}),o.createElement("div",{className:"u-pad-left--light"},o.createElement(i.xv,{type:i.yG.Small,inline:!0,color:E},h))),b&&o.createElement("li",{className:"u-flex align-items-center"},o.createElement(a.ZP,{icon:a.Tu.PetFriendly,size:"24px",color:m.Il.Navy}),o.createElement("div",{className:"u-pad-left--light"},o.createElement(i.xv,{type:i.yG.Small,inline:!0,color:E},g(c.W.Step.Room.PetFriendly)))))}},50840:function(e,t,n){"use strict";n.d(t,{Y:function(){return te}});var r=n(70885),o=n(6058),l=n(67294),a=n(26793),i=n(79478),c=n(78886),m=n(30584),s=n(4942),u=n(64854),d=n(33409),p=n(27930);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){var e=(0,l.useContext)(o.g7),t=(0,a.$)().t,n=Object.keys(e.currentFilters).filter((function(t){return t&&e.currentFilters[t]instanceof p.Z}));return n.length?l.createElement("div",{className:"u-flex w-100"},l.createElement("div",{className:"filter-height"},n&&(n.length<=2?n.map((function(n){var r;if(n&&e.currentFilters[n]instanceof p.Z)return l.createElement(d.ZP,{key:n,onClickIcon:function(){e.setCurrentFilters(f(f({},e.currentFilters),{},(0,s.Z)({},n,null)))},type:d.Rm.Secondary,icon:c.Tu.Close,iconPosition:"right"},null===(r=e.currentFilters[n])||void 0===r?void 0:r.getLabel(t))})):l.createElement(d.ZP,{onClickIcon:function(){e.setCurrentFilters({})},type:d.Rm.Secondary,icon:c.Tu.Close,iconPosition:"right"},n.length," Filters Applied"))),!!Object.values(e.currentFilters).filter((function(e){return!!e})).length&&l.createElement(u.Z,{isText:!0,size:"tiny",onClick:function(){e.setCurrentFilters({})}},t(i.W.Misc.ClearAll))):l.createElement(l.Fragment,null)}var v=n(89331),y=n(13010),C=n(19874),h=n(65128),b=n(89089),E=n(94184),_=n.n(E),x=n(20858),S=n(64485),B=n(42982),k=n(55061),Z=n.n(k),R=function(e){var t,n,r,o=_()(Z().marker,(n={},(0,s.Z)(n,Z()["--fixed"],e.fixed),(0,s.Z)(n,Z()["--hidden"],!(null!==(t=e.marker)&&void 0!==t&&t.isVisible)),(0,s.Z)(n,Z()["--".concat(e.isEdge)],!!e.isEdge),n)),a=_()(Z()["marker-label"],(r={},(0,s.Z)(r,Z()["--fixed"],e.fixed),(0,s.Z)(r,Z()["--".concat(e.isEdge)],!!e.isEdge),r)),i={};return e.offset&&(i.left=Math.max(Math.min(100,e.offset),0)+"%"),l.createElement("span",{className:o,style:i},e.marker&&!!e.marker.label&&l.createElement("span",{className:a},e.marker.label))},w=function(e){var t,n,o=e.min,a=void 0===o?0:o,i=e.max,c=void 0===i?100:i,m=(0,l.useState)(!1),s=(0,r.Z)(m,2),u=(s[0],s[1]),d=(0,l.useState)(null),p=(0,r.Z)(d,2),A=p[0],f=p[1],g=(0,l.useRef)(null),v=function(t){var n,r,o=null==g||null===(n=g.current)||void 0===n?void 0:n.getBoundingClientRect();if(o){for(var l=o.x,i=o.x+o.width,m=Math.max(Math.min(Math.round(a+(c-a)*(t.clientX-l)/(i-l)),e.max),e.min),s=A,u=e.markers,d=0;d<u.length;d++)u[d].isVisible&&(null===s||Math.abs(m-u[s].value)>Math.abs(m-u[d].value))&&(s=d);var p=(0,B.Z)(e.markers);null!==s&&(p[s].value=m),null===(r=e.onChange)||void 0===r||r.call(e,p),f(s)}},y=function(e){var t;return t=(e-a)/(c-a)*100,Math.min(Math.max(t,0),100)};return(0,l.useEffect)((function(){var e,t=!1,n=null==g||null===(e=g.current)||void 0===e?void 0:e.getBoundingClientRect();if(n){n.x,n.x,n.width;var r=function(e){t||null===A||v(e)},o=function(){u(!1),f(null)};return document.body.addEventListener("mouseup",o),document.body.addEventListener("mousemove",r),function(){t=!0,document.body.removeEventListener("mouseup",o),document.body.removeEventListener("mousemove",r)}}}),[A]),l.createElement("div",{className:Z().slider,onMouseDown:function(e){u(!0),v(e)},ref:g},l.createElement("div",{className:Z()["slider-track"]},null===(t=null!==(n=e.backgroundMarkers)&&void 0!==n?n:[])||void 0===t?void 0:t.map((function(e,t){return l.createElement(R,{key:t,offset:y(e.value),marker:e,fixed:!0,isEdge:e.isEdge})})),l.createElement("div",{className:Z()["slider-rail"],style:{left:"".concat(y(e.markers[0].value),"%"),right:"".concat(100-y(e.markers[1].value),"%")}}),e.markers.map((function(e,t){return l.createElement(R,{key:t,offset:y(e.value),marker:e})}))))},O=n(43144),P=n(15671),N=n(60136),D=n(82963),j=n(61120);var I=function(e){(0,N.Z)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,j.Z)(t);if(n){var o=(0,j.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,D.Z)(this,e)});function o(e,t){var n;return(0,P.Z)(this,o),(n=r.call(this)).min=void 0,n.max=void 0,n.getMin=function(){return n.min},n.getMax=function(){return n.max},n.getLabel=function(){return"Budget"},n.check=function(e){if(e.getLowestPrice()>n.max)return null;var t=[];return e.getOriginalRates().forEach((function(e){e.getAveragePrice()<=n.max&&e.getAveragePrice()>=n.min&&t.push(e)})),e.filteredRates=t,e},n.min=e,n.max=t,n}return(0,O.Z)(o)}(p.Z),M=n(97754);function F(e){var t,n,o,c,s,d=(0,a.$)().t,p=(0,l.useState)([null!==(t=null===(n=e.filter)||void 0===n?void 0:n.getMin())&&void 0!==t?t:0,null!==(o=null===(c=e.filter)||void 0===c?void 0:c.getMax())&&void 0!==o?o:0]),A=(0,r.Z)(p,2),f=A[0],g=A[1],v=(0,l.useState)(f),y=(0,r.Z)(v,2),C=y[0],h=y[1],b=(0,l.useState)(null),E=(0,r.Z)(b,2),B=E[0],k=E[1];(0,l.useEffect)((function(){var t,n,r,o,l,a,i=null!==(t=e.roomList)&&void 0!==t&&t.length?e.roomList.reduce((function(e,t){var n=t.getLowestPrice(!0);return e<n&&e?e:n}),0):0,c=null!==(n=e.roomList)&&void 0!==n&&n.length?e.roomList.reduce((function(e,t){var n=t.getHighestPrice(!0);return e>n&&e?e:n}),0):0;g([i,c]),h([null!==(r=null===(o=e.filter)||void 0===o?void 0:o.getMin())&&void 0!==r?r:i,null!==(l=null===(a=e.filter)||void 0===a?void 0:a.getMax())&&void 0!==l?l:c])}),[e.roomList]),(0,l.useEffect)((function(){var e=f[1]-f[0];C[1]<f[0]+.3*e?k("left"):C[0]>f[1]-.3*e?k("right"):k(null)}),[C]);var Z=function(e){return l.createElement(x.Z,{hideDecimals:!0,disableLoading:!0},e)},R=(M.Il.Grey,Z(f[0]),f[0],M.Il.Grey,Z(f[1]),f[1],Z(C[0]),Z(C[1]),C[1],C[0],C[0],[{isVisible:!0,value:C[0]},{isVisible:!0,value:C[1]},{isVisible:!1,label:l.createElement(l.Fragment,null,Z(C[0])," - ",Z(C[1])),value:C[0]+(C[1]-C[0])/2}]),O=[{isVisible:!0,value:f[0],label:Z(f[0]),isEdge:"start"},{isVisible:!0,value:f[1],label:Z(f[1]),isEdge:"end"}];return l.createElement(l.Fragment,null,l.createElement("div",{className:"u-flex"},l.createElement("div",null,l.createElement(m.ZP,{inline:!0,type:m.yG.Small},l.createElement("strong",null,d(i.W.Step.Room.Filter.Budget))),l.createElement(m.ZP,{inline:!0,type:m.yG.Small},"/",d(i.W.Misc.PerNight))),l.createElement("div",null,l.createElement(u.Z,{size:"tiny",isText:!0,disabled:!e.filter,onClick:function(){return h(f),void e.onChange(null)}},d(i.W.Misc.Clear)))),(null===(s=e.roomList)||void 0===s?void 0:s.length)>0?l.createElement("div",{className:_()("roomstay-slider",{"--min-limit":"left"===B,"--max-limit":"right"===B})},l.createElement(w,{min:f[0],max:f[1],onChange:function(t){h(t.map((function(e){return e.value}))),e.onChange(new I(t[0].value,t[1].value))},markers:R,backgroundMarkers:O})):l.createElement("div",{className:"u-marg-top-bottom u-flex justify-content-center"},l.createElement(S.Z,null)))}var W=n(69024),L=n(89087);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){var t,n=(0,a.$)().t,o=(0,l.useState)({}),c=(0,r.Z)(o,2),d=c[0],p=c[1],A=(0,l.useState)(0),f=(0,r.Z)(A,2),g=f[0],v=f[1],y=(0,l.useRef)(null);return(0,l.useEffect)((function(){if(e.roomList){var t={},n=e.filter?e.filter.getViewOnly():null;e.roomList.forEach((function(e){e.getOriginalRates().forEach((function(e){t[e.name]={status:!n||n.includes(e.name)}}))})),p(t)}}),[e.roomList,g]),(0,l.useEffect)((function(){var t;if(null!=y&&y.current&&null!==(t=e.roomList)&&void 0!==t&&t.length){var n=Object.keys(d),r=n.filter((function(e){return d[e].status}));n.length===r.length?e.onChange(null):e.onChange(new L.Z(r))}}),[d]),l.createElement(l.Fragment,null,l.createElement("div",{className:"u-flex u-marg-bottom",ref:y},l.createElement(m.ZP,{inline:!0,type:m.yG.Small},l.createElement("strong",null,n(i.W.Step.Room.Filter.RateType))),l.createElement(u.Z,{size:"tiny",isText:!0,disabled:!e.filter,onClick:function(){e.onChange(null),v((function(e){return e+1}))}},n(i.W.Misc.Clear))),l.createElement("div",null,(null===(t=e.roomList)||void 0===t?void 0:t.length)>0?d&&Object.keys(d).map((function(e){return l.createElement("div",{className:"u-marg-bottom--light",key:e},l.createElement(W.Z,{label:e,checked:d[e].status,onChange:function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},d);n[e].status=t.target.checked,p(n)}}))})):l.createElement("div",{className:"u-marg-top-bottom u-flex justify-content-center"},l.createElement(S.Z,null))))}var T=n(40742);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){var t,n=(0,a.$)().t,o=(0,l.useState)({}),c=(0,r.Z)(o,2),d=c[0],p=c[1],A=(0,l.useState)(0),f=(0,r.Z)(A,2),g=f[0],v=f[1],y=(0,l.useRef)(null);(0,l.useEffect)((function(){if(e.roomList){var t={},n=e.filter?e.filter.getVisibleRooms():null;e.roomList.forEach((function(e){t[e.name]={status:!n||n.includes(e.name)||n.includes(e.code)}})),p(t)}}),[e.roomList,g]);var C=Object.keys(d),h=C.filter((function(e){return d[e].status}));return(0,l.useEffect)((function(){var t;null!=y&&y.current&&null!==(t=e.roomList)&&void 0!==t&&t.length&&(h.length===C.length?e.onChange(null):e.onChange(new T.Z(h)))}),[d]),l.createElement(l.Fragment,null,l.createElement("div",{className:"u-flex u-marg-bottom u-marg-top--heavy",ref:y},l.createElement(m.ZP,{inline:!0,type:m.yG.Small},l.createElement("strong",null,n(i.W.Step.Room.Filter.RoomType))),l.createElement(u.Z,{size:"tiny",isText:!0,disabled:!e.filter,onClick:function(){e.onChange(null),v((function(e){return e+1}))}},n(i.W.Misc.Clear))),l.createElement("div",null,(null===(t=e.roomList)||void 0===t?void 0:t.length)>0?d&&Object.keys(d).map((function(e){return l.createElement("div",{className:"u-marg-bottom--light",key:e},l.createElement(W.Z,{label:e,checked:d[e].status,onChange:function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},d);n[e].status=t.target.checked,p(n)}}))})):l.createElement("div",{className:"u-marg-top-bottom u-flex justify-content-center"},l.createElement(S.Z,null))))}var q=n(54862),J=n(84544),Q=n(90292);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e){var t=(0,l.useContext)(o.g7),n=(0,l.useContext)(o.hy),c=(0,v.WP)().hotel,d=(0,a.$)().t,p=(0,l.useState)(t.currentFilters),A=(0,r.Z)(p,2),f=A[0],g=A[1],E=(0,l.useState)([]),_=(0,r.Z)(E,2),x=_[0],S=_[1];(0,l.useEffect)((function(){if(g(H({},t.currentFilters)),e.open){var r,o=n.getAllValidRows();q.Z.getUnfilteredRoomList(null!==(r=n.selectedBasketRow)&&void 0!==r?r:o[o.length-1],null==c?void 0:c.hotelID).then((function(e){S(e)}))}}),[e.open]);var B=l.createElement("div",{className:"u-flex align-items-center justify-content-between justify-content-md-end"},l.createElement("div",{className:"u-marg-right--heavy"},l.createElement(m.ZP,{color:M.Il.Accent},l.createElement("strong",null,q.Z.filterRooms(x,Object.values(f)).length," ",d(i.W.Step.Room.Filter.MatchingRoomsRates)))),l.createElement(u.Z,{primary:!0,filled:!0,onClick:function(){var n;J.ZP.instance.sendInteraction("Apply Filters",J.s_.BUTTON,J._J.ROOMS),t.setCurrentFilters(f),null===(n=e.onClose)||void 0===n||n.call(e)}},d(i.W.Misc.ApplyChanges))),k=function(e,t){g((function(n){return H(H({},n),{},(0,s.Z)({},e,t))}))},Z=l.createElement("div",{className:"room-filter"},l.createElement("div",{className:"u-pad--heavy u-pad-bottom--none"},t.screenSize>Q.Z.Medium&&l.createElement("div",{className:"u-marg-bottom"},l.createElement(y.Z,{bold:!0},d(i.W.Step.Room.FilterBy))),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-md-6"},l.createElement(F,{filter:f.Budget,onChange:function(e){return k("Budget",e)},roomList:x}),l.createElement("div",{className:"u-marg-bottom--heavy"},l.createElement(Y,{roomList:x,filter:f.RoomType,onChange:function(e){return k("RoomType",e)}}))),l.createElement("div",{className:"col-md-6"},l.createElement("div",{className:"u-marg-bottom--heavy"},l.createElement(U,{roomList:x,filter:f.RateType,onChange:function(e){return k("RateType",e)}}))))));return t.screenSize>Q.Z.Medium?l.createElement(b.a,{followElement:e.anchorEl,onClose:e.onClose,open:e.open,placement:"bottom-start"},l.createElement(l.Fragment,null,Z,l.createElement("div",{className:"u-pad--heavy u-pad-top--none"},l.createElement(C.Z,null),B))):l.createElement(h.Z,{open:e.open,onClose:e.onClose,title:d(i.W.Step.Room.FilterBy),mobileFooter:B},Z)}var X=n(63351),K=n(60281);function ee(){var e=(0,l.useContext)(o.g7).screenSize<=Q.Z.Medium,t=(0,l.useContext)(o.g7),n=(0,l.useState)(t.currentRoomSort),a=(0,r.Z)(n,2),i=a[0],c=a[1];return l.createElement(X.P,{nativeOnMobile:!0,options:Object.values(K.s).map((function(e){return{text:e,value:e}})),value:i,onChange:function(e){J.ZP.instance.sendInteraction("Change Sort",J.s_.DROPDOWN,J._J.ROOMS),c(e),t.setCurrentRoomSort(e)},keyName:"value",labelName:"text",className:_()("u-flex align-items-center",{"text-small":e})})}var te=function(){var e=(0,l.useContext)(o.g7),t=(0,a.$)().t,n=(0,l.useRef)(null),s=(0,l.useState)(!1),u=(0,r.Z)(s,2),d=u[0],p=u[1];return l.createElement("div",{className:"row align-items-end"},l.createElement("div",{className:"col-6 col-md-4 col-lg-3"},l.createElement(m.ZP,{type:m.yG.Label,color:M.Il.DarkGrey},l.createElement("strong",null,t(i.W.Step.Room.SortBy))),l.createElement("div",null,l.createElement(ee,null))),l.createElement("div",{className:"col-6 col-md-2 col-lg-2"},l.createElement("div",{ref:n},l.createElement("div",{className:"filter-button d-flex align-items-center u-cursor-pointer",onClick:function(){J.ZP.instance.sendInteraction("Show Filters",J.s_.DROPDOWN,J._J.ROOMS),p(!0)}},l.createElement(m.ZP,null,e.screenSize>Q.Z.Medium?t(i.W.Step.Room.FilterBy):t(i.W.Step.Room.Filter.ShowFilters)),l.createElement(c.ZP,{icon:c.Tu.Dropdown,color:M.Il.DarkGrey})),l.createElement($,{open:d,anchorEl:n.current,onClose:function(){p(!1)}}))),l.createElement("div",{className:"col-md-12 col-lg-7 u-align-right u-marg-top@l- u-empty-none filter-push-down"},l.createElement(g,null)))}},48229:function(e,t,n){(t=n(23645)(!0)).push([e.id,".Slider-module__slider___2f65h{width:100%;display:flex;padding:13px 0;user-select:none}.Slider-module__slider-track___3uTXL{height:4px;width:100%;background-color:var(--rs-color-snow);position:relative;border-radius:4px;z-index:1}.Slider-module__slider-rail___2Jeoy{top:0;left:0;right:0;bottom:0;background-color:var(--rs-color-accent-1);position:absolute;display:block;border-radius:4px;z-index:2}.Slider-module__marker___1duEi{position:absolute;top:50%;transform:translate(-50%, -50%);border-radius:100%;width:14px;height:14px;background-color:var(--rs-color-accent-1);border:2px solid var(--rs-color-white);cursor:grab}.Slider-module__marker___1duEi.Slider-module__--hidden___2PnRK{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.Slider-module__marker___1duEi.Slider-module__--fixed___3P_lS{background-color:var(--rs-color-navy);width:8px;height:8px;border:unset}.Slider-module__marker___1duEi.Slider-module__--start___2VXUn{left:0}.Slider-module__marker___1duEi.Slider-module__--end___1d_8m{left:100%}.Slider-module__marker-label___2nSLZ{position:absolute;left:50%;top:16px;transform:translateX(-50%);display:block;white-space:nowrap;user-select:none;font-size:14px !important;line-height:1em !important}.Slider-module__marker-label___2nSLZ.Slider-module__--fixed___3P_lS{color:var(--rs-color-grey)}.Slider-module__marker-label___2nSLZ:not(.Slider-module__--fixed___3P_lS){background-color:#fff;padding:0px 4px}.Slider-module__marker-label___2nSLZ.Slider-module__--start___2VXUn{transform:translateX(-10%)}.Slider-module__marker-label___2nSLZ.Slider-module__--end___1d_8m{transform:translateX(-75%)}","",{version:3,sources:["Slider.module.scss"],names:[],mappings:"AAAA,+BAAQ,UAAU,CAAC,YAAY,CAAC,cAAc,CAAC,gBAAgB,CAAC,qCAAc,UAAU,CAAC,UAAU,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,SAAS,CAAC,oCAAa,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,yCAAyC,CAAC,iBAAiB,CAAC,aAAa,CAAC,iBAAiB,CAAC,SAAS,CAAC,+BAAQ,iBAAiB,CAAC,OAAO,CAAC,+BAA+B,CAAC,kBAAkB,CAAC,UAAU,CAAC,WAAW,CAAC,yCAAyC,CAAC,sCAAsC,CAAC,WAAW,CAAC,+DAAiB,8BAA8B,CAAC,0BAA0B,CAAC,8DAAgB,qCAAqC,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,8DAAgB,MAAM,CAAC,4DAAc,SAAS,CAAC,qCAAc,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,0BAA0B,CAAC,aAAa,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,0BAA0B,CAAC,oEAAsB,0BAA0B,CAAC,0EAA4B,qBAAqB,CAAC,eAAe,CAAC,oEAAsB,0BAA0B,CAAC,kEAAoB,0BAA0B",file:"Slider.module.scss",sourcesContent:[".slider{width:100%;display:flex;padding:13px 0;user-select:none}.slider-track{height:4px;width:100%;background-color:var(--rs-color-snow);position:relative;border-radius:4px;z-index:1}.slider-rail{top:0;left:0;right:0;bottom:0;background-color:var(--rs-color-accent-1);position:absolute;display:block;border-radius:4px;z-index:2}.marker{position:absolute;top:50%;transform:translate(-50%, -50%);border-radius:100%;width:14px;height:14px;background-color:var(--rs-color-accent-1);border:2px solid var(--rs-color-white);cursor:grab}.marker.--hidden{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.marker.--fixed{background-color:var(--rs-color-navy);width:8px;height:8px;border:unset}.marker.--start{left:0}.marker.--end{left:100%}.marker-label{position:absolute;left:50%;top:16px;transform:translateX(-50%);display:block;white-space:nowrap;user-select:none;font-size:14px !important;line-height:1em !important}.marker-label.--fixed{color:var(--rs-color-grey)}.marker-label:not(.--fixed){background-color:#fff;padding:0px 4px}.marker-label.--start{transform:translateX(-10%)}.marker-label.--end{transform:translateX(-75%)}"]}]),t.locals={slider:"Slider-module__slider___2f65h","slider-track":"Slider-module__slider-track___3uTXL","slider-rail":"Slider-module__slider-rail___2Jeoy",marker:"Slider-module__marker___1duEi","--hidden":"Slider-module__--hidden___2PnRK","--fixed":"Slider-module__--fixed___3P_lS","--start":"Slider-module__--start___2VXUn","--end":"Slider-module__--end___1d_8m","marker-label":"Slider-module__marker-label___2nSLZ"},e.exports=t},6273:function(e,t,n){(t=n(23645)(!0)).push([e.id,".UnavailableRoom-module__container___uzzJu{display:flex;flex-direction:column;align-items:stretch;text-align:center;padding:30px 15px;background-color:#f3f3f3}@media(max-width: 576px){.UnavailableRoom-module__container___uzzJu{padding-left:0;padding-right:0}}@media(min-width: 767px){.UnavailableRoom-module__container___uzzJu{padding-left:0;padding-right:0}}@media(min-width: 991px){.UnavailableRoom-module__container___uzzJu{padding:30px 15px}}.UnavailableRoom-module__container___uzzJu.UnavailableRoom-module__calendarOpen___1mV12{padding-bottom:15px}@media(max-width: 576px){.UnavailableRoom-module__container___uzzJu.UnavailableRoom-module__calendarOpen___1mV12{padding-bottom:0}}@media(min-width: 767px){.UnavailableRoom-module__container___uzzJu.UnavailableRoom-module__calendarOpen___1mV12{padding-bottom:0}}@media(min-width: 991px){.UnavailableRoom-module__container___uzzJu.UnavailableRoom-module__calendarOpen___1mV12{padding-bottom:15px}}.UnavailableRoom-module__info___1H4gd{display:flex;flex-direction:column;gap:5px;padding-bottom:15px}.UnavailableRoom-module__findDatesBtn___vWuEJ{z-index:5;align-self:center}.UnavailableRoom-module__calendarOverlay___3c-Kn{background:#fff;border-radius:20px;padding:60px 0 20px;margin-top:-21px;display:flex;flex-direction:column;gap:20px;align-items:center}.UnavailableRoom-module__calendarFooter___2b-0Q{display:flex;justify-content:space-between;align-items:center;width:100%;padding-left:20px;padding-right:20px}@media(max-width: 767px){.UnavailableRoom-module__calendarFooter___2b-0Q{flex-direction:column;gap:20px}.UnavailableRoom-module__calendarFooter___2b-0Q>:last-child{align-self:center;justify-content:center}}.UnavailableRoom-module__calendar___1jd-j{border:none !important;padding:0 !important;gap:0 !important}.UnavailableRoom-module__calendar___1jd-j [class*=diji-calendar-month]{gap:0 !important;padding:0 !important}.UnavailableRoom-module__calendar___1jd-j [class*=diji-calendar-month--items]{padding:0 !important;gap:0 !important;margin:0 !important}.UnavailableRoom-module__calendar___1jd-j [class*=diji-calendar-month--item]{gap:0 !important;padding:0 !important;margin:1.5px !important}.UnavailableRoom-module__calendar___1jd-j [class*=diji-calendar-navigation]{top:-25px !important;left:30px !important;right:30px !important}","",{version:3,sources:["UnavailableRoom.module.scss"],names:[],mappings:"AAAA,2CAAW,YAAY,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,yBAAyB,2CAAW,cAAc,CAAC,eAAe,CAAC,CAAC,yBAAyB,2CAAW,cAAc,CAAC,eAAe,CAAC,CAAC,yBAAyB,2CAAW,iBAAiB,CAAC,CAAC,wFAAwB,mBAAmB,CAAC,yBAAyB,wFAAwB,gBAAgB,CAAC,CAAC,yBAAyB,wFAAwB,gBAAgB,CAAC,CAAC,yBAAyB,wFAAwB,mBAAmB,CAAC,CAAC,sCAAM,YAAY,CAAC,qBAAqB,CAAC,OAAO,CAAC,mBAAmB,CAAC,8CAAc,SAAS,CAAC,iBAAiB,CAAC,iDAAiB,eAAe,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,YAAY,CAAC,qBAAqB,CAAC,QAAQ,CAAC,kBAAkB,CAAC,gDAAgB,YAAY,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,UAAU,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,yBAAyB,gDAAgB,qBAAqB,CAAC,QAAQ,CAAC,4DAA4B,iBAAiB,CAAC,sBAAsB,CAAC,CAAC,0CAAU,sBAAsB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,uEAAuC,gBAAgB,CAAC,oBAAoB,CAAC,8EAA8C,oBAAoB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,6EAA6C,gBAAgB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,4EAA4C,oBAAoB,CAAC,oBAAoB,CAAC,qBAAqB",file:"UnavailableRoom.module.scss",sourcesContent:[".container{display:flex;flex-direction:column;align-items:stretch;text-align:center;padding:30px 15px;background-color:#f3f3f3}@media(max-width: 576px){.container{padding-left:0;padding-right:0}}@media(min-width: 767px){.container{padding-left:0;padding-right:0}}@media(min-width: 991px){.container{padding:30px 15px}}.container.calendarOpen{padding-bottom:15px}@media(max-width: 576px){.container.calendarOpen{padding-bottom:0}}@media(min-width: 767px){.container.calendarOpen{padding-bottom:0}}@media(min-width: 991px){.container.calendarOpen{padding-bottom:15px}}.info{display:flex;flex-direction:column;gap:5px;padding-bottom:15px}.findDatesBtn{z-index:5;align-self:center}.calendarOverlay{background:#fff;border-radius:20px;padding:60px 0 20px;margin-top:-21px;display:flex;flex-direction:column;gap:20px;align-items:center}.calendarFooter{display:flex;justify-content:space-between;align-items:center;width:100%;padding-left:20px;padding-right:20px}@media(max-width: 767px){.calendarFooter{flex-direction:column;gap:20px}.calendarFooter>:last-child{align-self:center;justify-content:center}}.calendar{border:none !important;padding:0 !important;gap:0 !important}.calendar [class*=diji-calendar-month]{gap:0 !important;padding:0 !important}.calendar [class*=diji-calendar-month--items]{padding:0 !important;gap:0 !important;margin:0 !important}.calendar [class*=diji-calendar-month--item]{gap:0 !important;padding:0 !important;margin:1.5px !important}.calendar [class*=diji-calendar-navigation]{top:-25px !important;left:30px !important;right:30px !important}"]}]),t.locals={container:"UnavailableRoom-module__container___uzzJu",calendarOpen:"UnavailableRoom-module__calendarOpen___1mV12",info:"UnavailableRoom-module__info___1H4gd",findDatesBtn:"UnavailableRoom-module__findDatesBtn___vWuEJ",calendarOverlay:"UnavailableRoom-module__calendarOverlay___3c-Kn",calendarFooter:"UnavailableRoom-module__calendarFooter___2b-0Q",calendar:"UnavailableRoom-module__calendar___1jd-j"},e.exports=t},55061:function(e,t,n){var r=n(93379),o=n(48229);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},80131:function(e,t,n){var r=n(93379),o=n(6273);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}}}]);
1
+ (("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[328],{72258:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(70885),o=n(6058),l=n(67294),a=n(26793),i=n(79478),c=n(1126),m=n(83893),s=n(20858),u=n(13010),d=n(78886),p=n(64485),A=n(30584),f=n(57133),g=n(44744),v=n(97754),C=n(90292);function y(e){var t=(0,a.$)().t,n=(0,l.useContext)(o.g7),y=(0,l.useContext)(o.hy),h=(0,l.useState)(!1),b=(0,r.Z)(h,2),E=b[0],_=b[1],x=(0,l.useState)(!0),S=(0,r.Z)(x,2),B=S[0],k=S[1],Z=(0,l.useState)(!0),R=(0,r.Z)(Z,2),w=R[0],O=R[1],P=(0,l.useState)(""),N=(0,r.Z)(P,2),D=N[0],j=N[1],M=(0,l.useState)(""),I=(0,r.Z)(M,2),F=I[0],W=I[1],L=(0,l.useState)(""),z=(0,r.Z)(L,2),U=z[0],T=z[1],G=(0,l.useState)(""),Y=(0,r.Z)(G,2),q=Y[0],J=Y[1],Q=(0,l.useState)([]),V=(0,r.Z)(Q,2),H=V[0],$=V[1],X=(0,f.t)().memberNumber;return(0,l.useEffect)((function(){var t=y.selectedBasketRow;t&&m.Z.Availability.getCheapestPricePerDay(t.getStartDate(),t.getEndDate(),t.getAdults(),t.getChildren(),t.getInfants(),t.getPromoCode(),t.getRoomCode(),"",e.hotelId,X,!0).catch().then((function(n){if(n){for(var r=!0,o=t.getStartDate();o.isBefore(t.getEndDate(),"day");o=o.add(1,"day"))if(!n[o.format(c.yJ)]){r=!1;break}if(_(r),k(!0),r){O(!0);var l=m.Z.Availability.getCrossSellHotelInfo(e.hotelId);W(l.name),j(l.image||""),T(l.description);var a=["arrive="+t.getStartDate().format("YYYY-M-D"),"depart="+t.getEndDate().format("YYYY-M-D")];t.getAdults()>1&&a.push("adults="+t.getAdults()),t.getChildren()>0&&a.push("children="+t.getChildren()),t.getInfants()>0&&a.push("infants="+t.getInfants()),t.getPromoCode()&&a.push("promocode="+t.getPromoCode()),J(l.checkoutUrl+"#/step/room/?"+a.join("&")),m.Z.Availability.fetchAvailabilityData(t,e.hotelId,X,!0).catch((function(e){return[]})).then((function(e){null!=e&&e.length?($(e),O(!1)):(k(!1),O(!1))}))}}}))}),[y.selectedBasketRow]),E?l.createElement("div",{className:"u-marg-top--heavy u-marg-bottom"},l.createElement("div",{className:"cross-sell-module"},l.createElement("div",{className:"cross-sell-module--image",style:{backgroundImage:"url('".concat(g.Z.resizeImage(D,g.h.Original),"')")}}),l.createElement("div",{className:"cross-sell-module--content u-pad--heavy u-pad@m-"},l.createElement("div",{className:"u-marg-bottom--heavy"},l.createElement("div",{className:"cross-sell-module--content-title u-marg-bottom--light"},l.createElement(u.Z,{bold:!0,size:B?"large":"normal"},t(w?i.W.Step.Room.CrossSellBlock.AvailabilityNearBy1:B?i.W.Step.Room.CrossSellBlock.AvailabilityNearBy2:i.W.Step.Room.CrossSellBlock.DateUnavailable))),B&&l.createElement("div",{className:"cross-sell-module--content-description u-marg-bottom--light"},l.createElement(A.ZP,{color:v.Il.DarkGrey,type:A.yG.Body},l.createElement("strong",{style:{color:v.Il.Accent}},F),l.createElement("div",{dangerouslySetInnerHTML:{__html:U}})))),w?l.createElement(p.Z,null):l.createElement(l.Fragment,null,H.slice(0,4).map((function(e,n){var r=q+"&room="+e.code,o="u-flex align-items-end";return n<H.length-1&&(o+=" u-pad-bottom u-border-bottom u-marg-bottom"),l.createElement("a",{key:e.code,className:o,href:r,target:"_blank",rel:"noreferrer"},l.createElement("div",{className:"u-flex flex-column align-items-start justify-content-start"},l.createElement(A.ZP,{type:A.yG.Body,color:v.Il.Accent,bold:!0},e.name),l.createElement(A.ZP,{type:A.yG.Small,color:v.Il.DarkGrey},t(i.W.Step.Room.Sleeps,{maxOccupancy:e.occupancy}))),l.createElement("div",{className:"u-flex flex-column align-items-end align-items-md-end"},l.createElement(A.ZP,{type:A.yG.Small,color:v.Il.DarkGrey,inline:!0},t(i.W.Misc.From)),l.createElement(A.ZP,{type:A.yG.Body,color:v.Il.Accent,bold:!0},l.createElement(s.Z,null,e.getLowestPrice(!0)))))}))),B&&l.createElement("div",{className:"u-marg-top--light u-flex justify-content-start u-w-100@m- u-marg-top--heavy"},l.createElement("a",{className:"link-button --primary --filled --success --icon-right --normal"+(n.screenSize<=C.Z.Medium?" --wide":""),tabIndex:0,type:"button",href:q,target:"_blank",rel:"noreferrer"},l.createElement("span",null,"See all ",H.length," rooms",l.createElement(d.ZP,{icon:d.Tu.ArrowRight,size:"1em"}))))))):null}},32458:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(42982),o=n(6058),l=n(89331),a=n(67294),i=n(26793),c=n(79478),m=n(13010),s=n(78886),u=n(19874),d=n(65128),p=n(30584),A=n(40291),f=n(98013),g=n(8643),v=n(97754),C=n(11830),y=n(98631);function h(e){var t,n=(0,a.useContext)(o.O8).roomModalDescSideBySide,h=(0,i.$)().t,b=(0,l.WP)().hotel,E=b.rooms,_=e.room.getRoomPerks({hotel:b,room:e.room}),x=_.roomPerks,S=_.prePerkDisclaimer,B=null==E?void 0:E[e.room.code],k=null!=B&&B.amenities?(0,r.Z)(B.amenities):[];null!=B&&null!==(t=B.features)&&void 0!==t&&t.length&&B.features.forEach((function(e){k.push(e)}));var Z=(null==S?void 0:S.replace(/<br(\/|)>/g,""))||"",R=function(){return a.createElement("div",{className:"u-marg-bottom--heavy rs-room-modal-long-description"},a.createElement(p.ZP,{type:p.yG.Small,color:v.Il.Graphite,asDiv:!0},a.createElement(C.R,{content:e.room.getLongDescription()||""})))};return a.createElement(d.Z,{title:e.room.name+" "+h(c.W.Step.Room.RoomInfo.Information),open:e.open,size:d.g.Small,onClose:e.onClose},a.createElement("div",{className:"rs-room-modal"},a.createElement("div",{style:{height:"350px"}},a.createElement(A.Z,{images:e.room.getImages()})),a.createElement("div",{className:"u-marg-heavy u-marg@m- rs-room-modal-container"},a.createElement("div",{className:"u-marg-bottom--light rs-room-modal-headline"},a.createElement(m.Z,{bold:!0,size:"large"},e.room.name)),a.createElement(f.R,{room:e.room}),a.createElement("div",{className:"u-marg-bottom--heavy rs-room-modal-short-description"},a.createElement(p.ZP,{color:v.Il.DarkGrey,type:p.yG.Small},a.createElement("span",{dangerouslySetInnerHTML:{__html:e.room.getShortDescription(!1)||""}}))),n?a.createElement(a.Fragment,null,a.createElement(R,null),a.createElement(u.Z,null)):null,!(null!=b&&b.perksHideOnRoomDetail)&&x&&a.createElement("div",{className:"u-marg-bottom--heavy rs-room-modal-perks"},a.createElement("div",{className:"row"},a.createElement(y.Z,{hotel:b,room:e.room,roomPerks:x})),(null==b?void 0:b.perksShowDisclaimer)&&a.createElement("div",{className:"row u-marg-top--lighter"},a.createElement("small",{className:"col-12"},h(c.W.Misc.PerksDisclaimer)))),!(null==k||!k.length)&&a.createElement(a.Fragment,null,a.createElement("div",{className:"u-marg-bottom"},a.createElement(p.ZP,{color:v.Il.Accent,type:p.yG.Small},a.createElement("strong",null,h(c.W.Step.Room.RoomInfo.RoomAmenities)))),a.createElement("div",{className:"row"},k.map((function(e){return a.createElement("div",{key:e.description,className:"col-sm-6 u-marg-bottom--light u-flex justify-content-start"},a.createElement(s.ZP,{icon:s.Tu.Check,color:v.Il.White,backgroundColor:v.Il.Navy,borderRadius:"round",noPadding:!0,size:"16px"}),a.createElement("div",{className:"u-marg-left--light u-flex"},a.createElement(p.ZP,{type:p.yG.Small,inline:!0},e.description)))})))),a.createElement(u.Z,null),n?null:a.createElement(R,null),!!Z&&a.createElement("div",{className:"u-marg-bottom--heavy rs-room-modal-disclaimer"},a.createElement(p.ZP,{type:p.yG.Small},a.createElement("strong",null,h(c.W.Step.Room.RoomInfo.Disclaimer))),a.createElement(p.ZP,{type:p.yG.Small},a.createElement("span",{dangerouslySetInnerHTML:{__html:Z}})))),a.createElement(g.Z,{featuredRates:e.featuredRates,rates:e.rates,roomCode:e.room.code})))}},49368:function(e,t,n){"use strict";n.d(t,{F:function(){return B}});var r=n(87462),o=n(15861),l=n(70885),a=n(64687),i=n.n(a),c=n(6058),m=n(27484),s=n.n(m),u=n(67294),d=n(87536),p=n(26793),A=n(79478),f=n(79740),g=n(83893),v=n(87933),C=n(64854),y=n(13010),h=n(78886),b=n(30584),E=n(41432),_=n(514),x=n(97754),S=n(16431),B=function(){var e=(0,d.cI)(),t=e.register,n=e.handleSubmit,a=e.formState,m=(0,_.W)().hotel,B=(0,u.useContext)(c.hy),k=(0,p.$)().t,Z=(0,u.useState)({}),R=(0,l.Z)(Z,2),w=R[0],O=R[1],P=(0,u.useState)(!1),N=(0,l.Z)(P,2),D=N[0],j=N[1],M=function(){var e=(0,o.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O({}),j(!0),e.prev=2,n=B.selectedBasketRow,r="",[{name:"Adults",value:n.getAdults()},{name:"Children",value:n.getChildren()},{name:"Infants",value:n.getInfants()},{name:"Promo Code",value:n.getPromoCode()},{name:"Dates range",value:n.getStayDateRange("ddd D MMM YYYY"," till ")},{name:"Date Sent",value:s()().format("dd D MMM YYYY")}].forEach((function(e){var t=e.name,n=e.value;n&&(r+="".concat(t,": ").concat(n,"\n"))})),e.next=8,g.Z.Error.sendRoomFallbackForm(null==m?void 0:m.hotelID,{name:t.name,telephone:t.telephone,email:t.email,searchQuery:r});case 8:O({success:!0}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),O({success:!1,message:k(A.W.Step.Room.ErrorForm.APIError)});case 14:j(!1);case 15:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}();return u.createElement("div",{className:"u-fill-white u-rounded"},u.createElement("div",{className:"row u-pad--heavy"},u.createElement("div",{className:"col-lg-6 d-flex justify-content-center flex-column"},u.createElement("div",{className:"u-marg-bottom--light"},u.createElement(h.ZP,{icon:h.Tu.Error,color:x.Il.Alert,size:"24px"})),u.createElement("div",{className:"u-marg-bottom--light"},u.createElement(y.Z,{bold:!0,color:x.Il.Alert},u.createElement("span",{style:{color:"inherit"},dangerouslySetInnerHTML:{__html:k(A.W.Step.Room.ErrorForm.Title)}}))),u.createElement(b.ZP,{type:b.yG.Small},u.createElement("span",{dangerouslySetInnerHTML:{__html:k(A.W.Step.Room.ErrorForm.Description)}}))),u.createElement("div",{className:"col-lg-6"},u.createElement("form",null,u.createElement(f.Z,{open:!!a.errors},Object.values(a.errors).map((function(e,t){return u.createElement(v.ZP,{key:t,type:v.NK.Danger},u.createElement(b.ZP,{type:b.yG.Small},null==e?void 0:e.message))}))),u.createElement("div",{className:"u-marg-bottom--light u-marg-top"},u.createElement(E.Z,(0,r.Z)({placeholder:k(A.W.Step.Room.ErrorForm.Inputs.Name)},t("name",{required:{value:!0,message:"".concat(k(A.W.Step.Room.ErrorForm.Inputs.Name)," is a required field")}})))),u.createElement("div",{className:"u-marg-bottom--light"},u.createElement(E.Z,(0,r.Z)({placeholder:k(A.W.Step.Room.ErrorForm.Inputs.Email)},t("email",{required:{value:!0,message:"".concat(k(A.W.Step.Room.ErrorForm.Inputs.Email)," is a required field")},pattern:{value:S.CU,message:"Email must be valid"}})))),u.createElement("div",{className:"u-marg-bottom--light"},u.createElement(E.Z,(0,r.Z)({placeholder:k(A.W.Step.Room.ErrorForm.Inputs.Telephone)},t("telephone",{required:{value:!0,message:"".concat(k(A.W.Step.Room.ErrorForm.Inputs.Telephone)," is a required field")}})))),u.createElement(C.Z,{filled:!0,primary:!0,onClick:n(M),isLoading:D,disabled:D||w.success},k(A.W.Step.Room.ErrorForm.ContactUsButton)),u.createElement(f.Z,{open:!!w.success},u.createElement("div",{className:"u-pad-top"},u.createElement(b.ZP,{color:x.Il.Success},k(A.W.Step.Room.ErrorForm.ConfirmationMessage)))),u.createElement(f.Z,{open:!1===w.success},u.createElement("div",{className:"u-pad-top"},u.createElement(b.ZP,{color:x.Il.Alert},w.message)))))))}},72870:function(e,t,n){"use strict";n.d(t,{y:function(){return l}});var r=n(6058),o=n(67294),l=function(){var e,t,n=(0,o.useContext)(r.hy).selectedBasketRow;return o.createElement("script",{type:"application/ld+json"},JSON.stringify({"@context":"https://structured-data.triptease.io","@type":"LodgingSearch",checkinTime:null==n||null===(e=n.getStartDate())||void 0===e?void 0:e.format("YYYY-M-D"),checkoutTime:null==n||null===(t=n.getEndDate())||void 0===t?void 0:t.format("YYYY-M-D"),numAdults:null==n?void 0:n.getAdults(),numChildren:null==n?void 0:n.getChildren(),numInfants:null==n?void 0:n.getInfants(),numRooms:"1",offerCode:null==n?void 0:n.getPromoCode()}))}},3473:function(e,t,n){"use strict";n.d(t,{Z:function(){return J}});var r=n(4942),o=n(70885),l=n(6058),a=n(89331),i=n(94184),c=n.n(i),m=n(67294),s=n(26793),u=n(79740),d=n(64854),p=n(20858),A=n(13010),f=n(78886),g=n(19874),v=n(26573),C=n(2927),y=n(30584),h=n(40291),b=n(98013),E=n(42041),_=n(90292);function x(e){var t,n=(0,m.useContext)(l.g7),r=(0,a.WP)().hotel,i=e.perks,s=e.room,u=n.screenSize<=_.Z.Large,d=(0,m.useState)(null===(t=i[0])||void 0===t?void 0:t.name),p=(0,o.Z)(d,2),A=p[0],f=p[1],g=c()("room-perk-icon",{"--has-bg":u});return m.createElement(m.Fragment,null,!(null==i||!i.length)&&m.createElement("ul",null,i.map((function(e,t){if(!(u&&t>=4)){var o=(0,E.W)(e);return m.createElement("li",{key:t,onClick:function(){f(e.name)}},m.createElement("div",{className:g},o),m.createElement("div",{className:"u-marg-right u-none@l- u-block@m- "+(u&&A!==e.name||n.screenSize===_.Z.Tiny?"u-none-2":"")},m.createElement(y.xv,{type:y.yG.Small},null!=e&&e.perkNameRenderer?e.perkNameRenderer({hotel:r,room:s}):e.name)))}}))))}var S=n(57700),B=n(8643),k=n(83966),Z=n(40742),R=n(79478),w=n(97754),O=n(80131),P=n.n(O);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){var t,n,i=e.room,p=e.hideFindAvailableRooms,A=(0,s.$)().t,g=(0,m.useContext)(l.g7),v=g.screenSize,C=g.currentFilters,h=g.setCurrentFilters,b=(0,a.WP)().hotel,E=(0,m.useContext)(l.hy),x=E.currentBasketRows,S=null!==(t=E.selectedBasketRow)&&void 0!==t?t:x[x.length-1],B=(0,m.useState)(null),O=(0,o.Z)(B,2),D=O[0],j=O[1],M=(0,m.useState)(null),I=(0,o.Z)(M,2),F=I[0],W=I[1],L=(0,m.useState)(!1),z=(0,o.Z)(L,2),U=z[0],T=z[1];return m.createElement(m.Fragment,null,m.createElement("div",{className:c()(P().container,(0,r.Z)({},P().calendarOpen,U))},m.createElement("div",{className:P().info},m.createElement(y.ZP,{bold:!0},A(R.W.Step.Room.RoomInfo.Unfortunately)),m.createElement(y.ZP,{color:w.Il.Accent},null==S?void 0:S.getStartDate().format("ddd, DD MMM")," — ",null==S?void 0:S.getEndDate().format("ddd, DD MMM")),m.createElement(y.ZP,{type:y.yG.Small},A(R.W.Step.Room.RoomInfo.IsUnavailableForRoom,{room:i.name}))),!p&&m.createElement(d.Z,{className:P().findDatesBtn,name:"FindAvailableDatesButton",primary:!0,primaryActive:U,filled:!0,icon:U?f.Tu.ArrowUp2:f.Tu.ArrowDown2,iconPosition:"right",stopIconAnimation:!0,textColor:(0,w.pJ)(U?null==b?void 0:b.colors.accent3:null==b?void 0:b.colors.accent),onClick:function(){return T((function(e){return!e}))},size:v<=_.Z.Mobile?"small":"normal"},A(R.W.Step.Room.RoomInfo.FindAvailableDatesForRoom)),m.createElement(u.Z,{open:U,topOffset:21},m.createElement("div",{className:P().calendarOverlay},m.createElement(k.Z,{showMonthOnLoad:S.getStartDate(),showMultipleMonths:v>_.Z.ExtraLarge,supportsMultiSelecting:!0,supportsWeek:!1,className:P().calendar,roomCode:null!==(n=i.code)&&void 0!==n?n:"",small:!0,onStartDateChanged:j,onEndDateChanged:W}),m.createElement("div",{className:P().calendarFooter},m.createElement(y.ZP,{bold:!0,color:D?w.Il.Accent:void 0},D?"".concat(D.format("ddd, DD MMM")).concat(F?" — ".concat(F.format("ddd, DD MMM")):""):A(R.W.Step.Room.RoomInfo.SelectDate)),m.createElement(d.Z,{primary:!0,filled:!0,onClick:function(){if(D&&F&&i.code){E.setStartDate(D),E.setEndDate(F);var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},C);e.RoomType=new Z.Z([i.code]),h(e)}},disabled:!(D&&F),mobileWidth:!0},A(R.W.Step.Room.RoomInfo.SelectCheckoutDate)))))))}var j=n(32458),M=n(49723),I=n(46716),F=n(33236),W=function(e){var t,n=(0,F.useCurrentHotel)().hotel,r=(0,m.useContext)(l.hy),a=(0,m.useContext)(l.g7),i=(0,m.useState)(!0),c=(0,o.Z)(i,2),s=c[0],u=c[1],d=null!==(t=r.selectedBasketRow)&&void 0!==t?t:r.currentBasketRows[0];return(0,m.useEffect)((function(){var t=!1;u(!0);var r=null==e?void 0:e.code;if(null!=n&&n.checkAreaAvailabilityOnRoomStep&&r){var l,i=null===(l=n.roomGroups)||void 0===l?void 0:l.find((function(t){return t.id===(null==e?void 0:e.roomGroupId)})),c=null!=i&&i.filters?Object.keys(i.filters):[],m=Object.fromEntries(Object.entries(a.currentGroupedRoomFilters).filter((function(e){var t=(0,o.Z)(e,1)[0];return c.includes(t)})));F.API.Availability.fetchAreaAvailability(d,n.hotelID,m).then((function(e){t||0!==e[r]||u(!1)}))}return function(){t=!0}}),[d,a.currentGroupedRoomFilters,n,e]),s},L=n(50234),z=n(73633),U=n(44744),T=n(61715),G=n(84544),Y=n(39605);function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(e){var t=e.room,n=(0,m.useState)([]),i=(0,o.Z)(n,2),E=i[0],k=i[1],Z=(0,m.useState)([]),O=(0,o.Z)(Z,2),P=O[0],N=O[1],F=(0,m.useState)(!t.isAvailable()),J=(0,o.Z)(F,2),Q=J[0],V=J[1],H=(0,m.useState)(!1),$=(0,o.Z)(H,2),X=$[0],K=$[1],ee=(0,s.$)().t,te=(0,m.useContext)(l.g7),ne=(0,m.useContext)(l.hy),re=(0,m.useContext)(l.Qm),oe=(0,a.WP)().hotel,le=(0,m.useContext)(l.O8),ae=W(t),ie=c()("room-details",(0,r.Z)({},"+is-open",Q));(0,m.useEffect)((function(){var n;null!==(n=ne.selectedBasketRow)&&void 0!==n&&n.getRoom()&&ne.selectedBasketRow.getRoom().code===e.room.code&&V(!0);var r=ne.selectedBasketRow;r&&G.ZP.instance.addRoomImpression(t,{to:r.getStartDate(),from:r.getEndDate()},r.getPromoCode())}),[ne.selectedBasketRow]),(0,m.useEffect)((function(){var e=[],n=[];if(z.Z.isActive()){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw l}}}}(t.getRates());try{for(o.s();!(r=o.n()).done;){var l,a,i,c=r.value;(null===(l=c.promoCode)||void 0===l?void 0:l.toLowerCase())===(null===(a=ne.selectedBasketRow)||void 0===a||null===(i=a.getPromoCode())||void 0===i?void 0:i.toLowerCase())?n.unshift(c):e.push(c)}}catch(e){o.e(e)}finally{o.f()}n.length>0&&(V(!0),k(n))}else e=t.getRates();N(e)}),[t.getRates()]);var ce=t.getShortDescription(),me=(0,L.i)().isMobile,se=Q||te.screenSize<=_.Z.Medium&&null===Q&&!(null!=oe&&oe.mobileDefaultRatesClosed),ue=t.getLowestPrice(!1,!0),de=le.alwaysShowDecimals?ue:Math.round(ue),pe=te.screenSize>_.Z.Medium&&de.toLocaleString().length<7?"large":"normal",Ae=function(e){return Math.round(T.z7(e,!0,re.currentCurrency,null==oe?void 0:oe.defaultCurrency))},fe=(0,M.Z)({hideDecimals:!0,children:de}),ge=fe.value,ve=fe.isLoading,Ce=ne.selectedBasketRow,ye=(0,I.Z)().hasPricePreview,he=t.getRoomPerks({hotel:oe,room:t,perksLimitNumber:5}).roomPerks;return m.createElement("div",{className:"room-details-container ".concat(e.disableMarginBottom?"":"u-marg-bottom")},m.createElement("div",{className:ie},m.createElement("div",{className:"room-details--image"},m.createElement(h.Z,{images:e.room.getImages(),imageSize:U.h.Medium})),m.createElement("div",{className:"room-details--content u-pad--heavy u-pad@l-"},m.createElement("div",{className:"u-marg-bottom"},te.screenSize>_.Z.Large&&m.createElement(m.Fragment,null,m.createElement("div",{className:"u-marg-bottom"},m.createElement(S.Z,{room:t,limit:2}))),m.createElement("div",{className:"room-details--content-title u-marg-bottom--light"},m.createElement(A.Z,{bold:!0},t.name)),m.createElement(b.R,{room:t}),(null==ce?void 0:ce.replace(/<br(\/|)>/g,""))&&m.createElement("div",{className:"room-details--content-description u-marg-bottom--light"},m.createElement(y.ZP,{color:w.Il.DarkGrey,type:y.yG.Small},m.createElement("span",{dangerouslySetInnerHTML:{__html:(null==ce?void 0:ce.replace(/<br(\/|)>/g,""))||""}})))),m.createElement("div",{className:"row"},!(null!=oe&&oe.perksHideOnRoomRow)&&m.createElement("div",{className:"col-12 u-flex u-marg-bottom@m- flex-column align-items-start"},m.createElement("div",{className:"room-details--content-perks u-marg-bottom@m-"},me&&m.createElement("div",{className:"u-marg-bottom"},m.createElement(y.ZP,{type:y.yG.Small,bold:!0,color:w.Il.Accent},(null==oe?void 0:oe.perkTitle)||ee(R.W.Misc.Perks.AndYouGetAll))),m.createElement(x,{perks:he,room:t}))),(null==oe?void 0:oe.showDescriptionOnRoomDetails)&&m.createElement("div",{className:"col-12"},m.createElement(g.Z,{noMargins:!0}),m.createElement("div",{className:"u-marg-top u-text-overflow-ellipsis-3 u-marg-bottom"},m.createElement(y.ZP,{type:y.yG.Small,color:w.Il.Graphite},m.createElement("span",{dangerouslySetInnerHTML:{__html:e.room.getLongDescription()||""}})))),m.createElement("div",{className:"col-md-6 u-flex u-marg-bottom@m- flex-column align-items-start"},m.createElement(d.Z,{icon:f.Tu.ArrowRight2,isText:!0,primary:!0,size:"tiny",iconPosition:"right",onClick:function(){G.ZP.instance.sendInteraction("More Room Details",G.s_.LINK,G._J.ROOMS),K(!0)}},ee(R.W.Step.Room.RoomInfo.MoreDetails))),t.isAvailable()&&m.createElement("div",{className:"col-md-6 u-flex justify-content-end flex-column align-items-start align-items-md-end"},m.createElement(y.ZP,{type:y.yG.Small,color:w.Il.Navy,inline:!0},ee(R.W.Misc.From)),m.createElement("div",{className:"room-details--content-price flex-row align-items-end"},m.createElement(A.Z,{size:pe,bold:!0},m.createElement(p.Z,{hideDecimals:!0},de)),m.createElement(y.ZP,{color:w.Il.DarkGrey,inline:!0},"/",ee(R.W.Misc.Night))),m.createElement(y.ZP,{type:y.yG.Small,color:w.Il.Grey,className:"u-nowrap",align:me?Y.P.Left:Y.P.Right},m.createElement(C._,{room:t})))),m.createElement("div",{className:"u-flex-direction-column u-flex u-flex-align-flex-end u-flex-align-flex-start@m- u-w-100@m-"},!ve&&ye?m.createElement("div",{className:"u-marg-top--light"},m.createElement(v.C,{price:ge,checkin:((null==Ce?void 0:Ce.getStartDate())||ne.endDate).format("YYYY-MM-DD"),currency:re.currentCurrency})):null,m.createElement(d.Z,{className:"u-marg-top--light",name:"ViewRatesNowButton",primary:!0,primaryActive:!!se,filled:!0,stopIconAnimation:!0,icon:se?f.Tu.ArrowUp2:f.Tu.ArrowDown2,iconPosition:"right",onClick:function(){if(!se){var e=ne.selectedBasketRow;e&&G.ZP.instance.sendRoomClick(t,e.getStartDate(),e.getEndDate(),e.getPromoCode())}V(!se)},wide:te.screenSize<=_.Z.Large,textColor:(0,w.pJ)(se?null==oe?void 0:oe.colors.accent3:null==oe?void 0:oe.colors.accent)},ee(se?R.W.Step.Room.RoomInfo.CloseRates:R.W.Step.Room.RoomInfo.ViewRates))))),m.createElement(u.Z,{open:!!se},t.isAvailable()&&ae?m.createElement(B.Z,{roomCode:t.code,rates:P,featuredRates:E,bookNowButtonDisabledReason:e.bookNowButtonDisabledReason}):m.createElement(D,{room:t,hideFindAvailableRooms:t.isAvailable()&&!ae})),m.createElement(j.Z,{open:X,room:e.room,rates:P,featuredRates:E,onClose:function(){K(!1)}}),t.getRates().map((function(e){return m.createElement("script",{key:t.code+"-"+e.code,type:"application/ld+json"},JSON.stringify({"@context":"http://schema.org/","@type":"Offer",itemOffered:{"@type":"HotelRoom",name:t.name},name:e.name,identifier:e.code,priceSpecification:{"@type":"UnitPriceSpecification",price:Ae(e.getAveragePrice(!0)),basePrice:Ae(e.getTotalPrice(!0)),totalPrice:Ae(e.getAveragePrice()),priceCurrency:re.currentCurrency,unitText:"Nightly"}}))})))}},98013:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(89331),o=n(67294),l=n(26793),a=n(78886),i=n(30584),c=n(79478),m=n(97754);function s(e){var t,n,s,u,d,p,A,f=(0,r.WP)().hotel,g=(0,l.$)().t,v=null==f||null===(t=f.rooms)||void 0===t?void 0:t[null===(n=e.room)||void 0===n?void 0:n.code],C=null==v?void 0:v.roomSize,y=null==f||null===(s=f.overwrites)||void 0===s||null===(u=s[null===(d=e.room)||void 0===d?void 0:d.code])||void 0===u?void 0:u.RoomDimensions,h=null!=y?y:C?"".concat(C," m²"):void 0,b=!(null==v||!v.petFriendly),E=null!==(p=e.textColor)&&void 0!==p?p:m.Il.DarkGrey,_="".concat((null==v?void 0:v.bedQuantity)>0?null==v?void 0:v.bedQuantity:""," ").concat(null==v?void 0:v.bedType);return null!=v&&null!==(A=v.bedTypeOverride)&&void 0!==A&&A.trim()&&(_=v.bedTypeOverride),o.createElement("ul",{className:"u-inline-flex u-flex-gap u-flex-wrap u-marg-bottom rs-room-details-beds-block"},o.createElement("li",{className:"u-flex align-items-center"},o.createElement(a.ZP,{icon:a.Tu.People,size:"24px",color:m.Il.Navy}),o.createElement("div",{className:"u-pad-left--light"},o.createElement(i.xv,{type:i.yG.Small,inline:!0,color:E},g(c.W.Step.Room.Sleeps,{maxOccupancy:null==v?void 0:v.maxOccupancy})))),!1!==(null==v?void 0:v.showBedType)&&o.createElement("li",{className:"u-flex align-items-center"},o.createElement(a.ZP,{icon:a.Tu.Bed,size:"24px",color:m.Il.Navy}),o.createElement("div",{className:"u-pad-left--light"},o.createElement(i.xv,{type:i.yG.Small,inline:!0,color:E},_))),!!h&&o.createElement("li",{className:"u-flex align-items-center"},o.createElement(a.ZP,{icon:a.Tu.RoomSize,size:"24px",color:m.Il.Navy}),o.createElement("div",{className:"u-pad-left--light"},o.createElement(i.xv,{type:i.yG.Small,inline:!0,color:E},h))),b&&o.createElement("li",{className:"u-flex align-items-center"},o.createElement(a.ZP,{icon:a.Tu.PetFriendly,size:"24px",color:m.Il.Navy}),o.createElement("div",{className:"u-pad-left--light"},o.createElement(i.xv,{type:i.yG.Small,inline:!0,color:E},g(c.W.Step.Room.PetFriendly)))))}},50840:function(e,t,n){"use strict";n.d(t,{Y:function(){return te}});var r=n(70885),o=n(6058),l=n(67294),a=n(26793),i=n(79478),c=n(78886),m=n(30584),s=n(4942),u=n(64854),d=n(33409),p=n(27930);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){var e=(0,l.useContext)(o.g7),t=(0,a.$)().t,n=Object.keys(e.currentFilters).filter((function(t){return t&&e.currentFilters[t]instanceof p.Z}));return n.length?l.createElement("div",{className:"u-flex w-100"},l.createElement("div",{className:"filter-height"},n&&(n.length<=2?n.map((function(n){var r;if(n&&e.currentFilters[n]instanceof p.Z)return l.createElement(d.ZP,{key:n,onClickIcon:function(){e.setCurrentFilters(f(f({},e.currentFilters),{},(0,s.Z)({},n,null)))},type:d.Rm.Secondary,icon:c.Tu.Close,iconPosition:"right"},null===(r=e.currentFilters[n])||void 0===r?void 0:r.getLabel(t))})):l.createElement(d.ZP,{onClickIcon:function(){e.setCurrentFilters({})},type:d.Rm.Secondary,icon:c.Tu.Close,iconPosition:"right"},n.length," Filters Applied"))),!!Object.values(e.currentFilters).filter((function(e){return!!e})).length&&l.createElement(u.Z,{isText:!0,size:"tiny",onClick:function(){e.setCurrentFilters({})}},t(i.W.Misc.ClearAll))):l.createElement(l.Fragment,null)}var v=n(89331),C=n(13010),y=n(19874),h=n(65128),b=n(89089),E=n(94184),_=n.n(E),x=n(20858),S=n(64485),B=n(42982),k=n(55061),Z=n.n(k),R=function(e){var t,n,r,o=_()(Z().marker,(n={},(0,s.Z)(n,Z()["--fixed"],e.fixed),(0,s.Z)(n,Z()["--hidden"],!(null!==(t=e.marker)&&void 0!==t&&t.isVisible)),(0,s.Z)(n,Z()["--".concat(e.isEdge)],!!e.isEdge),n)),a=_()(Z()["marker-label"],(r={},(0,s.Z)(r,Z()["--fixed"],e.fixed),(0,s.Z)(r,Z()["--".concat(e.isEdge)],!!e.isEdge),r)),i={};return e.offset&&(i.left=Math.max(Math.min(100,e.offset),0)+"%"),l.createElement("span",{className:o,style:i},e.marker&&!!e.marker.label&&l.createElement("span",{className:a},e.marker.label))},w=function(e){var t,n,o=e.min,a=void 0===o?0:o,i=e.max,c=void 0===i?100:i,m=(0,l.useState)(!1),s=(0,r.Z)(m,2),u=(s[0],s[1]),d=(0,l.useState)(null),p=(0,r.Z)(d,2),A=p[0],f=p[1],g=(0,l.useRef)(null),v=function(t){var n,r,o=null==g||null===(n=g.current)||void 0===n?void 0:n.getBoundingClientRect();if(o){for(var l=o.x,i=o.x+o.width,m=Math.max(Math.min(Math.round(a+(c-a)*(t.clientX-l)/(i-l)),e.max),e.min),s=A,u=e.markers,d=0;d<u.length;d++)u[d].isVisible&&(null===s||Math.abs(m-u[s].value)>Math.abs(m-u[d].value))&&(s=d);var p=(0,B.Z)(e.markers);null!==s&&(p[s].value=m),null===(r=e.onChange)||void 0===r||r.call(e,p),f(s)}},C=function(e){var t;return t=(e-a)/(c-a)*100,Math.min(Math.max(t,0),100)};return(0,l.useEffect)((function(){var e,t=!1,n=null==g||null===(e=g.current)||void 0===e?void 0:e.getBoundingClientRect();if(n){n.x,n.x,n.width;var r=function(e){t||null===A||v(e)},o=function(){u(!1),f(null)};return document.body.addEventListener("mouseup",o),document.body.addEventListener("mousemove",r),function(){t=!0,document.body.removeEventListener("mouseup",o),document.body.removeEventListener("mousemove",r)}}}),[A]),l.createElement("div",{className:Z().slider,onMouseDown:function(e){u(!0),v(e)},ref:g},l.createElement("div",{className:Z()["slider-track"]},null===(t=null!==(n=e.backgroundMarkers)&&void 0!==n?n:[])||void 0===t?void 0:t.map((function(e,t){return l.createElement(R,{key:t,offset:C(e.value),marker:e,fixed:!0,isEdge:e.isEdge})})),l.createElement("div",{className:Z()["slider-rail"],style:{left:"".concat(C(e.markers[0].value),"%"),right:"".concat(100-C(e.markers[1].value),"%")}}),e.markers.map((function(e,t){return l.createElement(R,{key:t,offset:C(e.value),marker:e})}))))},O=n(43144),P=n(15671),N=n(60136),D=n(82963),j=n(61120);var M=function(e){(0,N.Z)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,j.Z)(t);if(n){var o=(0,j.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,D.Z)(this,e)});function o(e,t){var n;return(0,P.Z)(this,o),(n=r.call(this)).min=void 0,n.max=void 0,n.getMin=function(){return n.min},n.getMax=function(){return n.max},n.getLabel=function(){return"Budget"},n.check=function(e){if(e.getLowestPrice()>n.max)return null;var t=[];return e.getOriginalRates().forEach((function(e){e.getAveragePrice()<=n.max&&e.getAveragePrice()>=n.min&&t.push(e)})),e.filteredRates=t,e},n.min=e,n.max=t,n}return(0,O.Z)(o)}(p.Z),I=n(97754);function F(e){var t,n,o,c,s,d=(0,a.$)().t,p=(0,l.useState)([null!==(t=null===(n=e.filter)||void 0===n?void 0:n.getMin())&&void 0!==t?t:0,null!==(o=null===(c=e.filter)||void 0===c?void 0:c.getMax())&&void 0!==o?o:0]),A=(0,r.Z)(p,2),f=A[0],g=A[1],v=(0,l.useState)(f),C=(0,r.Z)(v,2),y=C[0],h=C[1],b=(0,l.useState)(null),E=(0,r.Z)(b,2),B=E[0],k=E[1];(0,l.useEffect)((function(){var t,n,r,o,l,a,i=null!==(t=e.roomList)&&void 0!==t&&t.length?e.roomList.reduce((function(e,t){var n=t.getLowestPrice(!0);return e<n&&e?e:n}),0):0,c=null!==(n=e.roomList)&&void 0!==n&&n.length?e.roomList.reduce((function(e,t){var n=t.getHighestPrice(!0);return e>n&&e?e:n}),0):0;g([i,c]),h([null!==(r=null===(o=e.filter)||void 0===o?void 0:o.getMin())&&void 0!==r?r:i,null!==(l=null===(a=e.filter)||void 0===a?void 0:a.getMax())&&void 0!==l?l:c])}),[e.roomList]),(0,l.useEffect)((function(){var e=f[1]-f[0];y[1]<f[0]+.3*e?k("left"):y[0]>f[1]-.3*e?k("right"):k(null)}),[y]);var Z=function(e){return l.createElement(x.Z,{hideDecimals:!0,disableLoading:!0},e)},R=(I.Il.Grey,Z(f[0]),f[0],I.Il.Grey,Z(f[1]),f[1],Z(y[0]),Z(y[1]),y[1],y[0],y[0],[{isVisible:!0,value:y[0]},{isVisible:!0,value:y[1]},{isVisible:!1,label:l.createElement(l.Fragment,null,Z(y[0])," - ",Z(y[1])),value:y[0]+(y[1]-y[0])/2}]),O=[{isVisible:!0,value:f[0],label:Z(f[0]),isEdge:"start"},{isVisible:!0,value:f[1],label:Z(f[1]),isEdge:"end"}];return l.createElement(l.Fragment,null,l.createElement("div",{className:"u-flex"},l.createElement("div",null,l.createElement(m.ZP,{inline:!0,type:m.yG.Small},l.createElement("strong",null,d(i.W.Step.Room.Filter.Budget))),l.createElement(m.ZP,{inline:!0,type:m.yG.Small},"/",d(i.W.Misc.PerNight))),l.createElement("div",null,l.createElement(u.Z,{size:"tiny",isText:!0,disabled:!e.filter,onClick:function(){return h(f),void e.onChange(null)}},d(i.W.Misc.Clear)))),(null===(s=e.roomList)||void 0===s?void 0:s.length)>0?l.createElement("div",{className:_()("roomstay-slider",{"--min-limit":"left"===B,"--max-limit":"right"===B})},l.createElement(w,{min:f[0],max:f[1],onChange:function(t){h(t.map((function(e){return e.value}))),e.onChange(new M(t[0].value,t[1].value))},markers:R,backgroundMarkers:O})):l.createElement("div",{className:"u-marg-top-bottom u-flex justify-content-center"},l.createElement(S.Z,null)))}var W=n(69024),L=n(89087);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){var t,n=(0,a.$)().t,o=(0,l.useState)({}),c=(0,r.Z)(o,2),d=c[0],p=c[1],A=(0,l.useState)(0),f=(0,r.Z)(A,2),g=f[0],v=f[1],C=(0,l.useRef)(null);return(0,l.useEffect)((function(){if(e.roomList){var t={},n=e.filter?e.filter.getViewOnly():null;e.roomList.forEach((function(e){e.getOriginalRates().forEach((function(e){t[e.name]={status:!n||n.includes(e.name)}}))})),p(t)}}),[e.roomList,g]),(0,l.useEffect)((function(){var t;if(null!=C&&C.current&&null!==(t=e.roomList)&&void 0!==t&&t.length){var n=Object.keys(d),r=n.filter((function(e){return d[e].status}));n.length===r.length?e.onChange(null):e.onChange(new L.Z(r))}}),[d]),l.createElement(l.Fragment,null,l.createElement("div",{className:"u-flex u-marg-bottom",ref:C},l.createElement(m.ZP,{inline:!0,type:m.yG.Small},l.createElement("strong",null,n(i.W.Step.Room.Filter.RateType))),l.createElement(u.Z,{size:"tiny",isText:!0,disabled:!e.filter,onClick:function(){e.onChange(null),v((function(e){return e+1}))}},n(i.W.Misc.Clear))),l.createElement("div",null,(null===(t=e.roomList)||void 0===t?void 0:t.length)>0?d&&Object.keys(d).map((function(e){return l.createElement("div",{className:"u-marg-bottom--light",key:e},l.createElement(W.Z,{label:e,checked:d[e].status,onChange:function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},d);n[e].status=t.target.checked,p(n)}}))})):l.createElement("div",{className:"u-marg-top-bottom u-flex justify-content-center"},l.createElement(S.Z,null))))}var T=n(40742);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){var t,n=(0,a.$)().t,o=(0,l.useState)({}),c=(0,r.Z)(o,2),d=c[0],p=c[1],A=(0,l.useState)(0),f=(0,r.Z)(A,2),g=f[0],v=f[1],C=(0,l.useRef)(null);(0,l.useEffect)((function(){if(e.roomList){var t={},n=e.filter?e.filter.getVisibleRooms():null;e.roomList.forEach((function(e){t[e.name]={status:!n||n.includes(e.name)||n.includes(e.code)}})),p(t)}}),[e.roomList,g]);var y=Object.keys(d),h=y.filter((function(e){return d[e].status}));return(0,l.useEffect)((function(){var t;null!=C&&C.current&&null!==(t=e.roomList)&&void 0!==t&&t.length&&(h.length===y.length?e.onChange(null):e.onChange(new T.Z(h)))}),[d]),l.createElement(l.Fragment,null,l.createElement("div",{className:"u-flex u-marg-bottom u-marg-top--heavy",ref:C},l.createElement(m.ZP,{inline:!0,type:m.yG.Small},l.createElement("strong",null,n(i.W.Step.Room.Filter.RoomType))),l.createElement(u.Z,{size:"tiny",isText:!0,disabled:!e.filter,onClick:function(){e.onChange(null),v((function(e){return e+1}))}},n(i.W.Misc.Clear))),l.createElement("div",null,(null===(t=e.roomList)||void 0===t?void 0:t.length)>0?d&&Object.keys(d).map((function(e){return l.createElement("div",{className:"u-marg-bottom--light",key:e},l.createElement(W.Z,{label:e,checked:d[e].status,onChange:function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},d);n[e].status=t.target.checked,p(n)}}))})):l.createElement("div",{className:"u-marg-top-bottom u-flex justify-content-center"},l.createElement(S.Z,null))))}var q=n(54862),J=n(84544),Q=n(90292);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e){var t=(0,l.useContext)(o.g7),n=(0,l.useContext)(o.hy),c=(0,v.WP)().hotel,d=(0,a.$)().t,p=(0,l.useState)(t.currentFilters),A=(0,r.Z)(p,2),f=A[0],g=A[1],E=(0,l.useState)([]),_=(0,r.Z)(E,2),x=_[0],S=_[1];(0,l.useEffect)((function(){if(g(H({},t.currentFilters)),e.open){var r,o=n.getAllValidRows();q.Z.getUnfilteredRoomList(null!==(r=n.selectedBasketRow)&&void 0!==r?r:o[o.length-1],null==c?void 0:c.hotelID).then((function(e){S(e)}))}}),[e.open]);var B=l.createElement("div",{className:"u-flex align-items-center justify-content-between justify-content-md-end"},l.createElement("div",{className:"u-marg-right--heavy"},l.createElement(m.ZP,{color:I.Il.Accent},l.createElement("strong",null,q.Z.filterRooms(x,Object.values(f)).length," ",d(i.W.Step.Room.Filter.MatchingRoomsRates)))),l.createElement(u.Z,{primary:!0,filled:!0,onClick:function(){var n;J.ZP.instance.sendInteraction("Apply Filters",J.s_.BUTTON,J._J.ROOMS),t.setCurrentFilters(f),null===(n=e.onClose)||void 0===n||n.call(e)}},d(i.W.Misc.ApplyChanges))),k=function(e,t){g((function(n){return H(H({},n),{},(0,s.Z)({},e,t))}))},Z=l.createElement("div",{className:"room-filter"},l.createElement("div",{className:"u-pad--heavy u-pad-bottom--none"},t.screenSize>Q.Z.Medium&&l.createElement("div",{className:"u-marg-bottom"},l.createElement(C.Z,{bold:!0},d(i.W.Step.Room.FilterBy))),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-md-6"},l.createElement(F,{filter:f.Budget,onChange:function(e){return k("Budget",e)},roomList:x}),l.createElement("div",{className:"u-marg-bottom--heavy"},l.createElement(Y,{roomList:x,filter:f.RoomType,onChange:function(e){return k("RoomType",e)}}))),l.createElement("div",{className:"col-md-6"},l.createElement("div",{className:"u-marg-bottom--heavy"},l.createElement(U,{roomList:x,filter:f.RateType,onChange:function(e){return k("RateType",e)}}))))));return t.screenSize>Q.Z.Medium?l.createElement(b.a,{followElement:e.anchorEl,onClose:e.onClose,open:e.open,placement:"bottom-start"},l.createElement(l.Fragment,null,Z,l.createElement("div",{className:"u-pad--heavy u-pad-top--none"},l.createElement(y.Z,null),B))):l.createElement(h.Z,{open:e.open,onClose:e.onClose,title:d(i.W.Step.Room.FilterBy),mobileFooter:B},Z)}var X=n(63351),K=n(60281);function ee(){var e=(0,l.useContext)(o.g7).screenSize<=Q.Z.Medium,t=(0,l.useContext)(o.g7),n=(0,l.useState)(t.currentRoomSort),a=(0,r.Z)(n,2),i=a[0],c=a[1];return l.createElement(X.P,{nativeOnMobile:!0,options:Object.values(K.s).map((function(e){return{text:e,value:e}})),value:i,onChange:function(e){J.ZP.instance.sendInteraction("Change Sort",J.s_.DROPDOWN,J._J.ROOMS),c(e),t.setCurrentRoomSort(e)},keyName:"value",labelName:"text",className:_()("u-flex align-items-center",{"text-small":e})})}var te=function(){var e=(0,l.useContext)(o.g7),t=(0,a.$)().t,n=(0,l.useRef)(null),s=(0,l.useState)(!1),u=(0,r.Z)(s,2),d=u[0],p=u[1];return l.createElement("div",{className:"row align-items-end"},l.createElement("div",{className:"col-6 col-md-4 col-lg-3"},l.createElement(m.ZP,{type:m.yG.Label,color:I.Il.DarkGrey},l.createElement("strong",null,t(i.W.Step.Room.SortBy))),l.createElement("div",null,l.createElement(ee,null))),l.createElement("div",{className:"col-6 col-md-2 col-lg-2"},l.createElement("div",{ref:n},l.createElement("div",{className:"filter-button d-flex align-items-center u-cursor-pointer",onClick:function(){J.ZP.instance.sendInteraction("Show Filters",J.s_.DROPDOWN,J._J.ROOMS),p(!0)}},l.createElement(m.ZP,null,e.screenSize>Q.Z.Medium?t(i.W.Step.Room.FilterBy):t(i.W.Step.Room.Filter.ShowFilters)),l.createElement(c.ZP,{icon:c.Tu.Dropdown,color:I.Il.DarkGrey})),l.createElement($,{open:d,anchorEl:n.current,onClose:function(){p(!1)}}))),l.createElement("div",{className:"col-md-12 col-lg-7 u-align-right u-marg-top@l- u-empty-none filter-push-down"},l.createElement(g,null)))}},48229:function(e,t,n){(t=n(23645)(!0)).push([e.id,".Slider-module__slider___2f65h{width:100%;display:flex;padding:13px 0;user-select:none}.Slider-module__slider-track___3uTXL{height:4px;width:100%;background-color:var(--rs-color-snow);position:relative;border-radius:4px;z-index:1}.Slider-module__slider-rail___2Jeoy{top:0;left:0;right:0;bottom:0;background-color:var(--rs-color-accent-1);position:absolute;display:block;border-radius:4px;z-index:2}.Slider-module__marker___1duEi{position:absolute;top:50%;transform:translate(-50%, -50%);border-radius:100%;width:14px;height:14px;background-color:var(--rs-color-accent-1);border:2px solid var(--rs-color-white);cursor:grab}.Slider-module__marker___1duEi.Slider-module__--hidden___2PnRK{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.Slider-module__marker___1duEi.Slider-module__--fixed___3P_lS{background-color:var(--rs-color-navy);width:8px;height:8px;border:unset}.Slider-module__marker___1duEi.Slider-module__--start___2VXUn{left:0}.Slider-module__marker___1duEi.Slider-module__--end___1d_8m{left:100%}.Slider-module__marker-label___2nSLZ{position:absolute;left:50%;top:16px;transform:translateX(-50%);display:block;white-space:nowrap;user-select:none;font-size:14px !important;line-height:1em !important}.Slider-module__marker-label___2nSLZ.Slider-module__--fixed___3P_lS{color:var(--rs-color-grey)}.Slider-module__marker-label___2nSLZ:not(.Slider-module__--fixed___3P_lS){background-color:#fff;padding:0px 4px}.Slider-module__marker-label___2nSLZ.Slider-module__--start___2VXUn{transform:translateX(-10%)}.Slider-module__marker-label___2nSLZ.Slider-module__--end___1d_8m{transform:translateX(-75%)}","",{version:3,sources:["Slider.module.scss"],names:[],mappings:"AAAA,+BAAQ,UAAU,CAAC,YAAY,CAAC,cAAc,CAAC,gBAAgB,CAAC,qCAAc,UAAU,CAAC,UAAU,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,SAAS,CAAC,oCAAa,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,yCAAyC,CAAC,iBAAiB,CAAC,aAAa,CAAC,iBAAiB,CAAC,SAAS,CAAC,+BAAQ,iBAAiB,CAAC,OAAO,CAAC,+BAA+B,CAAC,kBAAkB,CAAC,UAAU,CAAC,WAAW,CAAC,yCAAyC,CAAC,sCAAsC,CAAC,WAAW,CAAC,+DAAiB,8BAA8B,CAAC,0BAA0B,CAAC,8DAAgB,qCAAqC,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,8DAAgB,MAAM,CAAC,4DAAc,SAAS,CAAC,qCAAc,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,0BAA0B,CAAC,aAAa,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,0BAA0B,CAAC,oEAAsB,0BAA0B,CAAC,0EAA4B,qBAAqB,CAAC,eAAe,CAAC,oEAAsB,0BAA0B,CAAC,kEAAoB,0BAA0B",file:"Slider.module.scss",sourcesContent:[".slider{width:100%;display:flex;padding:13px 0;user-select:none}.slider-track{height:4px;width:100%;background-color:var(--rs-color-snow);position:relative;border-radius:4px;z-index:1}.slider-rail{top:0;left:0;right:0;bottom:0;background-color:var(--rs-color-accent-1);position:absolute;display:block;border-radius:4px;z-index:2}.marker{position:absolute;top:50%;transform:translate(-50%, -50%);border-radius:100%;width:14px;height:14px;background-color:var(--rs-color-accent-1);border:2px solid var(--rs-color-white);cursor:grab}.marker.--hidden{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.marker.--fixed{background-color:var(--rs-color-navy);width:8px;height:8px;border:unset}.marker.--start{left:0}.marker.--end{left:100%}.marker-label{position:absolute;left:50%;top:16px;transform:translateX(-50%);display:block;white-space:nowrap;user-select:none;font-size:14px !important;line-height:1em !important}.marker-label.--fixed{color:var(--rs-color-grey)}.marker-label:not(.--fixed){background-color:#fff;padding:0px 4px}.marker-label.--start{transform:translateX(-10%)}.marker-label.--end{transform:translateX(-75%)}"]}]),t.locals={slider:"Slider-module__slider___2f65h","slider-track":"Slider-module__slider-track___3uTXL","slider-rail":"Slider-module__slider-rail___2Jeoy",marker:"Slider-module__marker___1duEi","--hidden":"Slider-module__--hidden___2PnRK","--fixed":"Slider-module__--fixed___3P_lS","--start":"Slider-module__--start___2VXUn","--end":"Slider-module__--end___1d_8m","marker-label":"Slider-module__marker-label___2nSLZ"},e.exports=t},6273:function(e,t,n){(t=n(23645)(!0)).push([e.id,".UnavailableRoom-module__container___uzzJu{display:flex;flex-direction:column;align-items:stretch;text-align:center;padding:30px 15px;background-color:#f3f3f3}@media(max-width: 576px){.UnavailableRoom-module__container___uzzJu{padding-left:0;padding-right:0}}@media(min-width: 767px){.UnavailableRoom-module__container___uzzJu{padding-left:0;padding-right:0}}@media(min-width: 991px){.UnavailableRoom-module__container___uzzJu{padding:30px 15px}}.UnavailableRoom-module__container___uzzJu.UnavailableRoom-module__calendarOpen___1mV12{padding-bottom:15px}@media(max-width: 576px){.UnavailableRoom-module__container___uzzJu.UnavailableRoom-module__calendarOpen___1mV12{padding-bottom:0}}@media(min-width: 767px){.UnavailableRoom-module__container___uzzJu.UnavailableRoom-module__calendarOpen___1mV12{padding-bottom:0}}@media(min-width: 991px){.UnavailableRoom-module__container___uzzJu.UnavailableRoom-module__calendarOpen___1mV12{padding-bottom:15px}}.UnavailableRoom-module__info___1H4gd{display:flex;flex-direction:column;gap:5px;padding-bottom:15px}.UnavailableRoom-module__findDatesBtn___vWuEJ{z-index:5;align-self:center}.UnavailableRoom-module__calendarOverlay___3c-Kn{background:#fff;border-radius:20px;padding:60px 0 20px;margin-top:-21px;display:flex;flex-direction:column;gap:20px;align-items:center}.UnavailableRoom-module__calendarFooter___2b-0Q{display:flex;justify-content:space-between;align-items:center;width:100%;padding-left:20px;padding-right:20px}@media(max-width: 767px){.UnavailableRoom-module__calendarFooter___2b-0Q{flex-direction:column;gap:20px}.UnavailableRoom-module__calendarFooter___2b-0Q>:last-child{align-self:center;justify-content:center}}.UnavailableRoom-module__calendar___1jd-j{border:none !important;padding:0 !important;gap:0 !important}.UnavailableRoom-module__calendar___1jd-j [class*=diji-calendar-month]{gap:0 !important;padding:0 !important}.UnavailableRoom-module__calendar___1jd-j [class*=diji-calendar-month--items]{padding:0 !important;gap:0 !important;margin:0 !important}.UnavailableRoom-module__calendar___1jd-j [class*=diji-calendar-month--item]{gap:0 !important;padding:0 !important;margin:1.5px !important}.UnavailableRoom-module__calendar___1jd-j [class*=diji-calendar-navigation]{top:-25px !important;left:30px !important;right:30px !important}","",{version:3,sources:["UnavailableRoom.module.scss"],names:[],mappings:"AAAA,2CAAW,YAAY,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,yBAAyB,2CAAW,cAAc,CAAC,eAAe,CAAC,CAAC,yBAAyB,2CAAW,cAAc,CAAC,eAAe,CAAC,CAAC,yBAAyB,2CAAW,iBAAiB,CAAC,CAAC,wFAAwB,mBAAmB,CAAC,yBAAyB,wFAAwB,gBAAgB,CAAC,CAAC,yBAAyB,wFAAwB,gBAAgB,CAAC,CAAC,yBAAyB,wFAAwB,mBAAmB,CAAC,CAAC,sCAAM,YAAY,CAAC,qBAAqB,CAAC,OAAO,CAAC,mBAAmB,CAAC,8CAAc,SAAS,CAAC,iBAAiB,CAAC,iDAAiB,eAAe,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,YAAY,CAAC,qBAAqB,CAAC,QAAQ,CAAC,kBAAkB,CAAC,gDAAgB,YAAY,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,UAAU,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,yBAAyB,gDAAgB,qBAAqB,CAAC,QAAQ,CAAC,4DAA4B,iBAAiB,CAAC,sBAAsB,CAAC,CAAC,0CAAU,sBAAsB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,uEAAuC,gBAAgB,CAAC,oBAAoB,CAAC,8EAA8C,oBAAoB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,6EAA6C,gBAAgB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,4EAA4C,oBAAoB,CAAC,oBAAoB,CAAC,qBAAqB",file:"UnavailableRoom.module.scss",sourcesContent:[".container{display:flex;flex-direction:column;align-items:stretch;text-align:center;padding:30px 15px;background-color:#f3f3f3}@media(max-width: 576px){.container{padding-left:0;padding-right:0}}@media(min-width: 767px){.container{padding-left:0;padding-right:0}}@media(min-width: 991px){.container{padding:30px 15px}}.container.calendarOpen{padding-bottom:15px}@media(max-width: 576px){.container.calendarOpen{padding-bottom:0}}@media(min-width: 767px){.container.calendarOpen{padding-bottom:0}}@media(min-width: 991px){.container.calendarOpen{padding-bottom:15px}}.info{display:flex;flex-direction:column;gap:5px;padding-bottom:15px}.findDatesBtn{z-index:5;align-self:center}.calendarOverlay{background:#fff;border-radius:20px;padding:60px 0 20px;margin-top:-21px;display:flex;flex-direction:column;gap:20px;align-items:center}.calendarFooter{display:flex;justify-content:space-between;align-items:center;width:100%;padding-left:20px;padding-right:20px}@media(max-width: 767px){.calendarFooter{flex-direction:column;gap:20px}.calendarFooter>:last-child{align-self:center;justify-content:center}}.calendar{border:none !important;padding:0 !important;gap:0 !important}.calendar [class*=diji-calendar-month]{gap:0 !important;padding:0 !important}.calendar [class*=diji-calendar-month--items]{padding:0 !important;gap:0 !important;margin:0 !important}.calendar [class*=diji-calendar-month--item]{gap:0 !important;padding:0 !important;margin:1.5px !important}.calendar [class*=diji-calendar-navigation]{top:-25px !important;left:30px !important;right:30px !important}"]}]),t.locals={container:"UnavailableRoom-module__container___uzzJu",calendarOpen:"UnavailableRoom-module__calendarOpen___1mV12",info:"UnavailableRoom-module__info___1H4gd",findDatesBtn:"UnavailableRoom-module__findDatesBtn___vWuEJ",calendarOverlay:"UnavailableRoom-module__calendarOverlay___3c-Kn",calendarFooter:"UnavailableRoom-module__calendarFooter___2b-0Q",calendar:"UnavailableRoom-module__calendar___1jd-j"},e.exports=t},55061:function(e,t,n){var r=n(93379),o=n(48229);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},80131:function(e,t,n){var r=n(93379),o=n(6273);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}}}]);