PageSourceSearch

https://app.flowtheroom.com/_next/static/chunks/405.0be6a0c6dd84df04.js

js flowtheroom.com collected 2026-09-25 09:50:02 UTC 39,002 bytes, 1 lines download raw bytes

1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="96189d81-ff23-43a8-92a3-eb33805e959f",t._sentryDebugIdIdentifier="sentry-dbid-96189d81-ff23-43a8-92a3-eb33805e959f")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{53598:function(t,e,r){var n=r(57437);r(2265),e.Z=()=>(0,n.jsx)("div",{className:"tw-w-full tw-h-px tw-bg-border-light tw-mt-4"})},72418:function(t,e,r){var n=r(57437);r(2265);var a=r(53598);e.Z=t=>{let{title:e,option:r,isShowDivider:s=!1,className:l="",optionElement:i,hideTitle:w=!1}=t;return(0,n.jsxs)(n.Fragment,{children:[s&&(0,n.jsx)(a.Z,{}),(0,n.jsxs)("div",{className:`tw-py-1.5 ${w?"tw-flex tw-justify-center":"between-content"} ${l}`,children:[!w&&(0,n.jsx)("p",{className:"typography-overline tw-text-body",children:e}),r&&(0,n.jsx)("div",{className:`tw-whitespace-nowrap tw-text-brand-info tw-bg-brand-subtle tw-rounded-full tw-font-semibold tw-text-xs tw-px-4 tw-py-2${w?" tw-w-full tw-text-center tw-relative":""}`,children:r}),!r&&(0,n.jsx)("div",{className:"tw-h-[32px]"}),i]})]})}},36863:function(t,e,r){r.d(e,{Z:function(){return s}});var n=r(57437);r(2265);var a=r(66707);function s(t){let{id:e,label:r,selected:s,onClick:l,className:i=""}=t;return(0,n.jsx)("div",{className:`tw-flex ${i}`,children:(0,n.jsx)("div",{className:"button-class",onClick:()=>l(e),children:(0,n.jsx)(a.Z,{textClassName:"tw-ml-3 tw-my-0.5",icon:s?(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tw-shrink-0",children:[(0,n.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",fill:"var(--themes-bg-brand)"}),(0,n.jsx)("path",{d:"M7.5 12L10.5 15L16.5 9",stroke:"var(--themes-text-brand-strong)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tw-shrink-0",children:(0,n.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",stroke:"var(--themes-text-body-strong)",strokeWidth:"1.5"})}),text:(0,n.jsx)("div",{className:"typography-fixed-xs-medium tw-text-body-strong",children:r})})})})}},4281:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(57437),a=r(2265),s=r(98487),l=r(89595);let i=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,n.jsx)(s.fC,{ref:e,className:(0,l.cn)("tw-peer tw-inline-flex tw-h-[26px] tw-w-[42px] tw-shrink-0 tw-cursor-pointer","tw-items-center tw-rounded-full tw-border-0 tw-p-0","tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2","focus-visible:tw-ring-flow-primary focus-visible:tw-ring-offset-2","disabled:tw-cursor-not-allowed disabled:tw-opacity-50","tw-bg-[#E9E9EA] data-[state=checked]:tw-bg-[var(--themes-bg-brand)]","dark:tw-bg-[#39393D] dark:data-[state=checked]:tw-bg-[var(--themes-bg-brand)]",r),...a,children:(0,n.jsx)(s.bU,{className:(0,l.cn)("tw-pointer-events-none tw-block tw-h-[22px] tw-w-[22px]","tw-rounded-full tw-bg-white tw-shadow-lg tw-ring-0","tw-transition-transform tw-duration-300","data-[state=unchecked]:tw-translate-x-[2px]","data-[state=checked]:tw-translate-x-[18px]")})})});i.displayName="IOSSwitch";var w=r(30490),o=t=>{let{isShowOvernight:e,handleOvernightClicked:r,spaceType:a,className:s}=t,l=(0,w.T)();return"rest"!==a?null:(0,n.jsxs)("div",{className:`between-content ${s}`,children:[(0,n.jsx)("p",{className:"tw-font-semibold tw-text-sm",children:l("search_bar.display_overnight_stays")}),(0,n.jsx)(i,{checked:e,onCheckedChange:r,"aria-label":"controlled"})]})}},78351:function(t,e,r){r.d(e,{Z:function(){return h}});var n=r(57437),a=r(50682),s=r(73333),l=r(31052),i=r(2265),w=r(29621),o=t=>{let{className:e,flipped:r=!1,...a}=t;return(0,n.jsxs)("svg",{width:"8",height:"20",viewBox:"0 0 8 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:e,style:r?{transform:"scaleX(-1)"}:void 0,...a,children:[(0,n.jsx)("rect",{width:"2",height:"20",fill:"currentColor"}),(0,n.jsx)("path",{d:"M8 5.5L2 0V11L8 5.5Z",fill:"currentColor"})]})};let d=i.forwardRef((t,e)=>{let{children:r,className:a,isActive:s=!1,...i}=t,w=0===i["data-index"],d=["tw-block tw-h-full",a??"",w?"tw-z-10":""].filter(
1Boolean).join(" ");return(0,n.jsx)("span",{...i,ref:e,className:d,children:(0,n.jsxs)(l.m.div,{animate:{scale:s?1.35:1},transition:{type:"spring",stiffness:480,damping:20},className:"tw-flex tw-items-center tw-justify-center tw-h-full tw-origin-bottom",children:[(0,n.jsx)(o,{flipped:!w,className:"tw-flex-none tw-text-brand-info"}),r]})})});d.displayName="SearchArrowSliderThumb";var c=r(38509),u=r(89595);let m=t=>{let{count:e,startIdx:r,endIdx:s,colorVar:l}=t,i=(0,a.J)();return(0,n.jsx)("span",{"aria-hidden":"true",className:"tw-pointer-events-none tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-between",children:Array.from({length:e},(t,e)=>(0,n.jsx)("span",{style:{width:2,height:"100%",flex:"none",backgroundColor:l,opacity:e>=r&&e<=s?1:.35,transition:i?void 0:"opacity 150ms ease-out"}},e))})};var h=t=>{let{stripeColorVar:e="var(--themes-bg-brand-secondary)",height:r=16,className:a,style:o,formatThumbValue:h,...x}=t,f=i.useRef(null),[p,b]=i.useState(0),[g,v]=i.useState(null),j=i.useRef([]),y=i.useRef(null),N=i.useRef(!1);i.useLayoutEffect(()=>{let t=f.current;if(!t)return;let e=()=>b(t.clientWidth);e();let r=new ResizeObserver(e);return r.observe(t),()=>r.disconnect()},[]);let C="number"==typeof x.min?x.min:0,_=("number"==typeof x.max?x.max:100)-C,k=Array.isArray(x.value)?x.value:"number"==typeof x.value?[x.value]:[],R=t=>null==t||_<=0?0:(t-C)/_;i.useEffect(()=>{let t=j.current;if(j.current=k,!h||t.length!==k.length)return;let e=k.findIndex((e,r)=>e!==t[r]);if(-1===e)return;let r=document.activeElement,n=!!r&&"slider"===r.getAttribute("role")&&!!f.current?.contains(r);(N.current||n)&&(v(e),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>v(null),800))},[k,h]),i.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);let S=p>0,O=S?Math.max(2,Math.round((p+4)/6)):0,T=O-1,E=t=>Math.min(T,Math.max(0,t)),M=S?E(Math.round((k.length>1?R(k[0]):0)*T)):0,I=S?E(Math.round(R(k[k.length-1])*T)):0,A=t=>(R(k[t])-.5)*20,Z=S&&T>0?(p-2)/T:0,L=t=>{let e=A(t);if(!S)return e+(0===t?4:-4);let r=0===t,n=(r?M:I)*Z;return e+((r?n+4:n+2-4)-R(k[t])*p)},$=-(20-r)/2;return(0,n.jsx)(c.i,{...x,ref:f,className:(0,u.cn)("tw-mt-2.5 tw-w-[90%] md:tw-w-[284px] tw-py-2",a),style:o,trackClassName:"tw-h-4 tw-rounded-none tw-bg-transparent",trackStyle:{height:`${r}px`},rangeClassName:"tw-h-full tw-rounded-none tw-bg-transparent tw-border-0",trackChildren:(0,n.jsx)(m,{count:O,startIdx:M,endIdx:I,colorVar:e}),thumbRender:(t,e)=>{let r=h?.(k[e],e);return(0,n.jsxs)(w.bU,{...t,className:(0,u.cn)(t.className,"tw-rounded-none tw-border-0 tw-bg-transparent tw-shadow-none"),onPointerDown:r=>{t.onPointerDown?.(r),N.current=!0,y.current&&clearTimeout(y.current),v(e)},onPointerUp:e=>{t.onPointerUp?.(e),N.current=!1,y.current&&clearTimeout(y.current),y.current=setTimeout(()=>v(null),600)},onPointerCancel:e=>{t.onPointerCancel?.(e),N.current=!1,y.current&&clearTimeout(y.current),y.current=setTimeout(()=>v(null),300)},children:[(0,n.jsx)(s.M,{children:g===e&&r?(0,n.jsx)("span",{"aria-hidden":"true",className:"tw-pointer-events-none tw-absolute tw-bottom-[calc(100%+10px)] tw-left-1/2 tw-z-20",style:{transform:`translateX(calc(-50% + ${L(e)}px))`},children:(0,n.jsx)(l.m.span,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:2},transition:{duration:.16,ease:"easeOut"},className:"tw-block tw-whitespace-nowrap tw-rounded-xl tw-border tw-border-[var(--themes-border-light)] tw-bg-[var(--themes-bg-default-white)] tw-px-4 tw-py-2.5 tw-text-xs tw-font-normal tw-leading-none tw-text-title tw-shadow-[0px_4px_6px_0px_rgba(30,30,30,0.1),0px_10px_15px_0px_rgba(30,30,30,0.1)]",children:r})},"thumb-tip"):null}),(0,n.jsx)(d,{"data-index":e,isActive:g===e,style:{transform:`translateX(${L(e)}px) translateY(${$}px)`}})]})}})}},90405:function(t,e,r){r.r(e),r.d(e,{default:function(){return T}});var n=r(57437),a=r(50682),s=r(31052),l=r(2265),i=r(30490),w=r(11362),o=r(72301),d=r(97352),c=r(75282),u=r(1734),m=r(38167),h=r(35916),x=r(64021),f=r(42184),p=r(25429),b=r(42490),g=r(4281),v=r(63026),j=r(76372),y=r(48473),N=r(41919),C=r(59864),_=r(53899),k=r(3113),R=r(26141),S=r(98558),O=r(96623);function T(t){let{remoteTime:e,searchOptions:r,type:T,className:E="",currencyFormat:M}=t,I=e?.timestamp??Date.now(),A=e??{timestamp:I,time:new Date(I).toISOString()},Z=(0,i.T)(),{region:L,lang:$}=(0,o.useParams)(),[V,K]=(0,l.useState)(null),B=(0,l.useRef)(null),D=(0,l.useRef)(null),[P,H]=(0,l.useState)(null),[F,G]=(0,l.useState)(0),U=(0,l.useRef)(null),Y=(0,l.useRef)(!1),W=(0,w.b9)(N.YV),[z]=(0,w.KO)(N.xR),[X]=(0,w.KO)(N.Uz),[J]=(0,w.KO)(N.mN),[Q]=(0,w.KO)(N.mv),[q]=(0,w.KO)(N.Gr),[tt]=(0,w.KO)(N.CI),[te]=(0,w.KO)(N.Ys),[tr]=(0,w.KO)(N.AG),[tn]=(0,w.KO)(N.x2),[ta]=(0,w.KO)(N.d),[ts]=(0,w.KO)(N.lX),tl=(0,R.Er)(C.FW.LOCATION_GROUP),{data:ti}=(0,y.n)({region:L,lang:$,spaceType:z,locationGroup:tl&&"my"===L?tl:void 0,priceMode:ts}),tw=ti??r,to=(0,l.useMemo)(()=>J&&"string"==typeof J?(0,S.WV)(J,L,$,I,{today:Z("date.today"),tomorrow:Z("date.tomorrow")}):Z("date.today"),[J,$,Z,L,I]),td=(0,l.useMemo)(()=>{let t="time"===V?P:Q;return t?.text||Z("search_bar.any_time")},[V,P,Q,Z]),tc=(0,l.useMemo)(()=>{let t="duration"===V?F:q;return t?`${(0,O.B)(t)}+`:Z("search_bar.no_pref_duration")},[V,F,q,Z]),[tu,tm,th,tx,tf]=[k.cB.PRICE_RANGE,k.cB.STAR_RATING,k.cB.THEME,k.cB.PAYMENT_OPTION,k.cB.AMENITIES].map(t=>tw?.filtering?.find(e=>e.key===t)),tp=(0,l.useCallback)(()=>K(null),[]),tb=(0,l.useRef)(null),tg=(0,l.useRef)(null),tv=(0,l.useRef)(null),tj=(0,a.J)(),[ty,tN]=(0,l.useState)(null),tC=(0,l.useRef)(!1);(0,l.useLayoutEffect)(()=>{let t="time"===V?tg.current:"duration"===V?tv.current:null,e=tb.current;if(!t||!e){tC.current=!1,tN(t=>t?{...t,visible:!1}:null);return}let r=e.getBoundingClientRect(),n=t.getBoundingClientRect();tN({x:n.left-r.left,top:n.top-r.top,width:n.width,height:n.height,visible:!0,slide:tC.current}),tC.current=!0},[V,td,tc]);let t_=(0,l.useCallback)(()=>{W({isShowOvernight:!X})},[W,X]),tk=(0,l.useCallback)(()=>{Y.current=!1,U.current={priceRange:tt,starRating:te,theme:tr,paymentOption:tn,amenities:ta,isShowOvernight:X},K("filters")},[tt,te,tr,tn,ta,X]),tR=(0,l.useCallback)(()=>{Y.current=!0,W({isImmediateSearch:!0}),K(null)},[W]),tS=(0,l.useCallback)(()=>{W({priceRange:void 0,starRating:[],theme:"",paymentOption:[],amenities:[],isShowOvernight:!0})},[W]),tO=(0,l.useCallback)(()=>{"time"===V&&null!==P?W({time:P}):"duration"===V?W({duration:F}):"filters"===V&&!Y.current&&U.current&&W({priceRange:U.current.priceRange,starRating:U.current.starRating,theme:U.current.theme,paymentOption:U.current.paymentOption,amenities:U.current.amenities,isShowOvernight:U.current.isShowOvernight}),K(null)},[V,P,F,W]),tT=(0,l.useCallback)(()=>{let t={},e=(0,S.FP)(I,L),r=k.OL.find(t=>t.value===k.TI.ANY_CHECK_IN_TIME);if(r){let n={text:r.text[(0,R.VD)(L,$)],periodType:r.value,value:r.value};J||(t.date=e),Q?.value||(t.time=n)}else J||(t.date=e);Object.keys(t).length>0&&W(t)},[W,L,$,I,J,Q]);return(0,l.useEffect)(()=>
1{if("date"!==V&&"time"!==V&&"duration"!==V&&"filters"!==V)return;let t=t=>{B.current&&!B.current.contains(t.target)&&tO()};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[V,tp,tO]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{ref:B,className:`tw-relative tw-flex tw-items-center tw-gap-3 ${E}`,children:[(0,n.jsxs)("div",{ref:D,className:"tw-flex tw-items-center tw-bg-default-white tw-border-2 tw-border-brand-strong focus-within:tw-border-[color:rgb(var(--flow-ring))] tw-transition-colors tw-duration-150 tw-rounded-full tw-h-14 tw-shrink-0 tw-w-[360px] tw-overflow-hidden tw-px-4 tw-gap-3",children:[(0,n.jsx)("div",{className:"tw-flex tw-h-full tw-shrink-0 tw-items-center",children:(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 13.5 13.5",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tw-shrink-0 tw-text-info",children:(0,n.jsx)("path",{d:"M12.75 12.75L9.28553 9.28553M9.28553 9.28553C10.1904 8.38071 10.75 7.13071 10.75 5.75C10.75 2.98858 8.51142 0.75 5.75 0.75C2.98858 0.75 0.75 2.98858 0.75 5.75C0.75 8.51142 2.98858 10.75 5.75 10.75C7.13071 10.75 8.38071 10.1904 9.28553 9.28553Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,n.jsxs)("div",{className:"tw-flex tw-min-h-0 tw-flex-1 tw-items-stretch",children:[(0,n.jsxs)("div",{onMouseDown:()=>{V&&tO(),tT()},className:"tw-flex tw-min-w-0 tw-flex-1 tw-flex-col tw-justify-center",children:[(0,n.jsx)("span",{className:"tw-text-xs tw-font-medium tw-leading-4 tw-text-info",children:Z("search_bar.destinations")}),(0,n.jsx)("div",{className:"tw-min-h-0 tw-w-full",children:(0,n.jsx)(d.Z,{type:T,searchOptions:tw,hideBorder:!0,isMobile:!0,popperContainerRef:D})})]}),(0,n.jsx)("div",{className:"tw-bg-border-light tw-w-[2px] tw-self-stretch tw-shrink-0"}),(0,n.jsxs)("div",{onClick:()=>K("date"),className:"tw-flex tw-flex-col tw-justify-center tw-min-w-[112px] tw-shrink-0 tw-self-center tw-h-10 tw-ml-2 tw-px-3 tw-cursor-pointer tw-rounded-lg hover:tw-bg-flow-hover tw-transition-colors",children:[(0,n.jsx)("span",{className:"tw-text-xs tw-font-medium tw-leading-4 tw-text-info",children:Z("search_bar.date")}),(0,n.jsx)("span",{className:"tw-whitespace-nowrap tw-text-sm tw-font-medium tw-leading-[18px] tw-text-[var(--themes-text-body-strong)]",children:to})]})]})]}),"date"===V&&(0,n.jsxs)("div",{className:"tw-absolute tw-top-[calc(100%+8px)] tw-left-[248px] tw-z-50 tw-bg-default-white tw-border tw-border-light tw-rounded-2xl tw-shadow-[0px_4px_6px_0px_rgba(30,30,30,0.1),0px_10px_15px_0px_rgba(30,30,30,0.1)] tw-p-4 tw-w-[364px]",children:[" ",(0,n.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between tw-mb-3",children:[(0,n.jsx)("span",{className:"tw-text-base tw-font-semibold tw-text-title",children:Z("search_bar.date")}),(0,n.jsx)("button",{onClick:tp,className:"tw-flex tw-items-center tw-justify-center tw-w-10 tw-h-10 tw-rounded-full tw-bg-gray tw-border-0 tw-cursor-pointer",children:(0,n.jsx)("span",{className:"tw-text-title tw-text-base tw-leading-none",children:"✕"})})]}),(0,n.jsx)(c.default,{remoteTime:A,searchOptions:tw,type:T,section:"SEARCH_RESULT_BAR",defaultShowCalendar:!0,onDateSelected:tp})]}),(0,n.jsxs)("div",{ref:tb,className:"tw-relative tw-flex tw-items-center tw-gap-1 tw-bg-default-white tw-border-[1.5px] tw-border-light tw-rounded-full tw-h-10 tw-px-1 tw-shrink-0",children:[(0,n.jsx)(s.m.div,{"aria-hidden":!0,initial:!1,animate:{x:ty?.x??0,width:ty?.width??0,opacity:ty?.visible?1:0},transition:tj?{duration:0}:ty?.slide?{type:"spring",stiffness:550,damping:38}:{x:{duration:0},width:{duration:0},opacity:{duration:.15,ease:"easeOut"}},className:"tw-pointer-events-none tw-absolute tw-left-0 tw-rounded-full tw-bg-brand",style:{top:ty?.top??0,height:ty?.height??0}}),"time"===V&&(0,n.jsxs)("div",{className:"tw-absolute tw-top-[calc(100%+8px)] tw-left-0 tw-z-50 tw-flex tw-flex-col tw-gap-3 tw-bg-default-white tw-border tw-border-light tw-rounded-2xl tw-shadow-[0px_4px_6px_0px_rgba(30,30,30,0.1),0px_10px_15px_0px_rgba(30,30,30,0.1)] tw-p-4 tw-w-[340px]",children:[" ",(0,n.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between",children:[(0,n.jsx)("span",{className:"tw-text-base tw-font-semibold tw-leading-6 tw-text-title",children:Z("search_bar.check_in_time")}),(0,n.jsx)("button",{onClick:tO,className:"tw-flex tw-items-center tw-justify-center tw-w-10 tw-h-10 tw-rounded-full tw-bg-gray tw-border-0 tw-cursor-pointer tw-p-3",children:(0,n.jsx)("span",{className:"tw-text-title tw-text-[16
1px] tw-leading-none",children:"✕"})})]}),(0,n.jsx)(u.Z,{remoteTime:A,swiperType:_.FR.TIME,type:T,section:"SEARCH_RESULT_BAR",hideTitle:!0,deferSearch:!0}),(0,n.jsx)("button",{onClick:()=>{W({isImmediateSearch:!0}),tp()},className:"tw-w-full tw-h-14 tw-rounded-[6px] tw-border-0 tw-cursor-pointer tw-bg-brand hover:tw-bg-[var(--color-new-primary-300)] active:tw-scale-[0.97] tw-transition tw-duration-150 tw-text-brand-strong tw-font-semibold tw-text-base tw-leading-5",children:Z("search_bar.save_and_continue")})]}),(0,n.jsxs)("button",{ref:tg,onClick:()=>{H(Q),K("time")},className:`tw-relative tw-z-[1] tw-flex tw-items-center tw-gap-1 tw-px-3 tw-py-2 tw-rounded-full tw-cursor-pointer tw-border-0 tw-outline-0 tw-bg-transparent active:tw-scale-[0.97] tw-transition tw-duration-150 ${"time"===V?"tw-text-brand-strong":"tw-text-[var(--themes-text-body-strong)] hover:tw-bg-flow-hover"}`,children:[(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 13.5 13.8197",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tw-shrink-0",children:(0,n.jsx)("path",{d:"M0.75 13.0697L8.08333 13.0697V3.06251C8.08333 2.15315 8.08333 1.69847 7.89577 1.38332C7.73132 1.10699 7.47253 0.899402 7.16711 0.798806C6.81877 0.684078 6.37492 0.782712 5.48722 0.979979L3.75388 1.36516C3.1578 1.49763 2.85976 1.56386 2.63729 1.72413C2.44105 1.86551 2.28697 2.05759 2.19153 2.27982C2.08333 2.53176 2.08333 2.83707 2.08333 3.4477V13.0697M8.07931 2.40306H9.28333C10.0301 2.40306 10.4034 2.40306 10.6887 2.54839C10.9395 2.67622 11.1435 2.88019 11.2713 3.13108C11.4167 3.41629 11.4167 3.78966 11.4167 4.5364V13.0697H12.75M6.08333 7.06973H6.09",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("span",{className:"tw-text-xs tw-font-medium tw-whitespace-nowrap",children:td})]}),(0,n.jsx)("div",{className:"tw-bg-border-default tw-w-[2px] tw-h-2.5 tw-shrink-0"}),(0,n.jsxs)("div",{className:"tw-relative",children:[(0,n.jsxs)("button",{ref:tv,onClick:()=>{G(q),K("duration")},className:`tw-relative tw-z-[1] tw-flex tw-items-center tw-gap-1 tw-px-3 tw-py-2 tw-rounded-full tw-cursor-pointer tw-border-0 tw-outline-0 tw-bg-transparent active:tw-scale-[0.97] tw-transition tw-duration-150 ${"duration"===V?"tw-text-brand-strong":"tw-text-[var(--themes-text-body-strong)] hover:tw-bg-flow-hover"}`,children:[(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 13.5 13.5",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tw-shrink-0",children:(0,n.jsx)("path",{d:"M6.75 3.41667V6.75L8.41667 7.75M12.75 6.75C12.75 10.0637 10.0637 12.75 6.75 12.75C3.43629 12.75 0.75 10.0637 0.75 6.75C0.75 3.43629 3.43629 0.75 6.75 0.75C10.0637 0.75 12.75 3.43629 12.75 6.75Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("span",{className:"tw-text-xs tw-font-medium tw-whitespace-nowrap",children:tc})]}),"duration"===V&&(0,n.jsxs)("div",{className:"tw-absolute tw-top-[calc(100%+8px)] tw-left-0 tw-z-50 tw-flex tw-flex-col tw-gap-3 tw-bg-default-white tw-border tw-border-default tw-rounded-2xl tw-shadow-[0px_4px_6px_0px_rgba(30,30,30,0.1),0px_10px_15px_0px_rgba(30,30,30,0.1)] tw-p-4 tw-w-[340px]",children:[" ",(0,n.jsxs)("div",{className:"tw-flex tw-items-center tw-justify-between tw-h-10",children:[(0,n.jsx)("span",{className:"tw-text-base tw-font-semibold tw-leading-6 tw-text-title",children:Z("search_bar.durations")}),(0,n.jsx)("button",{onClick:tO,className:"tw-flex tw-items-center tw-justify-center tw-w-10 tw-h-10 tw-rounded-full tw-bg-gray tw-border-0 tw-cursor-pointer tw-p-3 tw-text-title",children:(0,n.jsx)(j.T,{className:"tw-w-4 tw-h-4"})})]}),(0,n.jsx)(m.Z,{hideTitle:!0,deferSearch:!0,type:T,section:"SEARCH_RESULT_BAR",className:"tw-w-full"}),(0,n.jsx)("button",{onClick:()=>{W({isImmediateSearch:!0}),tp()},className:"tw-w-full tw-h-14 tw-rounded-[6px] tw-border-0 tw-cursor-pointer tw-bg-brand hover:tw-bg-[var(--color-new-primary-300)] active:tw-scale-[0.97] tw-transition tw-duration-150 tw-text-brand-strong tw-font-semibold tw-text-base tw-leading-5",children:Z("search_bar.save_and_continue")})]})]})]}),(0,n.jsxs)("div",{className:"tw-relative",children:[(0,n.jsxs)("button",{onClick:tk,className:"tw-flex tw-items-center tw-gap-2 tw-bg-default-white hover:tw-bg-flow-hover active:tw-scale-[0.97] tw-transition tw-duration-150 tw-border-[1.5px] tw-border-light tw-rounded-full tw-h-10 tw-px-4 tw-shrink-0 tw-cursor-pointer tw-outline-0",children:[(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 12.5 11.5",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tw-shrink-0",children:(0,n.jsx)("path",{d:"M5.25 1.75H11.75M5.25 1.75C5.25 2.01522 5.14464 2.26957 4.95711 2.45711C4.76957 2.64464 4.51522 2.75 4.25 2.75C3.98478 2.75 3.73043 2.64464 3.54289 2.45711C3.35536 2.26957 3.25 2.01522 3.25 1.75M5.25 1.75C5.25 1.48478 5.14464 1.23043 4.95711 1.04289C4.76957 0.855357 4.51522 0.75 4.25 0.75C3.98478 0.75 3.73043 0.855357 3.54289 1.04289C3.35536 1.23043 3.25 1.48478 3.25 1.75M3.25 1.75H0.75M5.25 9.75H11.75M5.25 9.75C5.25 10.0152 5.14464 10.2696 4.95711 10.4571C4.76957 10.6446 4.51522 10.75 4.25 10.75C3.98478 10.75 3.73043 10.6446 3.54289 10.4571C3.35536 10.2696 3.25 10.0152 3.25 9.75M5.25 9.75C5.25 9.48478 5.14464 9.23043 4.95711 9.04289C4.76957 8.85536 4.51522 8.75 4.25 8.75C3.98478 8.75 3.73043 8.85536 3.54289 9.04289C3.35536 9.23043 3.25 9.48478 3.25 9.75M3.25 9.75H0.75M9.25 5.75H11.75M9.25 5.75C9.25 6.01522 9.14464 6.26957 8.95711 6.45711C8.76957 6.64464 8.51522 6.75 8.25 6.75C7.98478 6.75 7.73043 6.64464 7.54289 6.45711C7.35536 6.26957 7.25 6.01522 7.25 5.75M9.25 5.75C9.25 5.48478 9.14464 5.23
1043 8.95711 5.04289C8.76957 4.85536 8.51522 4.75 8.25 4.75C7.98478 4.75 7.73043 4.85536 7.54289 5.04289C7.35536 5.23043 7.25 5.48478 7.25 5.75M7.25 5.75H0.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("span",{className:"tw-text-xs tw-font-medium tw-whitespace-nowrap tw-text-body-strong",children:Z("filter")})]}),(0,n.jsxs)("div",{className:`tw-absolute tw-top-[calc(100%+8px)] tw-left-0 tw-z-50 tw-w-[340px] tw-bg-default-white tw-border tw-border-light tw-rounded-2xl tw-shadow-[0px_10px_15px_-3px_rgba(30,30,30,0.1),0px_4px_6px_-4px_rgba(30,30,30,0.1)] tw-flex tw-flex-col tw-max-h-[80vh] ${"filters"===V?"":"tw-hidden"}`,children:[" ",(0,n.jsx)("div",{className:"tw-flex tw-items-center tw-gap-2 tw-p-4 tw-border-b tw-border-light tw-shrink-0",children:(0,n.jsx)("span",{className:"tw-text-base tw-font-semibold tw-text-title",children:Z("filter")})}),(0,n.jsxs)(v.j,{className:"tw-flex-1 tw-px-4 tw-flex tw-flex-col tw-gap-3 tw-py-3",children:[(0,n.jsx)(g.Z,{isShowOvernight:X??!0,handleOvernightClicked:t_,spaceType:z,className:"tw-border-b tw-border-light tw-py-4"}),(0,n.jsx)(h.Z,{priceRangeFilter:tu,type:T,currencyFormat:M,deferSearch:!0}),(0,n.jsx)(f.Z,{themeFilter:th,type:T,deferSearch:!0}),(0,n.jsx)(x.Z,{starRatingFilter:tm,type:T,deferSearch:!0}),(0,n.jsx)(p.Z,{paymentOptionFilter:tx,type:T,deferSearch:!0}),(0,n.jsx)(b.Z,{amenitiesFilter:tf,type:T,deferSearch:!0})]}),(0,n.jsxs)("div",{className:"tw-flex tw-gap-3 tw-p-4 tw-border-t tw-border-default tw-shrink-0",children:[(0,n.jsx)("button",{onClick:tS,className:"tw-h-12 tw-px-4 tw-border tw-border-default tw-rounded-[6px] tw-text-sm tw-font-semibold tw-text-title tw-bg-default-white tw-shrink-0 tw-cursor-pointer",children:Z("search_bar.clear_all")}),(0,n.jsx)("button",{onClick:tR,className:"tw-flex-1 tw-h-12 tw-rounded-[6px] tw-bg-brand hover:tw-bg-[var(--color-new-primary-300)] active:tw-scale-[0.97] tw-transition tw-duration-150 tw-text-sm tw-font-semibold tw-text-brand-strong tw-border-0 tw-cursor-pointer",children:Z("search_bar.save_and_continue")})]})]})]})]})})}},42490:function(t,e,r){r.d(e,{Z:function(){return c}});var n=r(57437),a=r(2265),s=r(11362),l=r(41919),i=r(39399),w=r(37054),o=r(36863),d=r(72418);function c(t){let{amenitiesFilter:e,isMapSearch:r=!1,type:c,deferSearch:u=!1}=t,[m]=(0,s.KO)(l.d),[h]=(0,s.KO)(i.eS),x=(0,s.b9)(l.YV),f=(0,s.b9)(i.AM),p=r?h:m,b=r?f:x,g=(0,a.useCallback)(t=>p.includes(t),[p]),v=t=>{let e=g(t);b({amenities:e?p.filter(e=>e!==t):[...p,t],...u?{}:{isImmediateSearch:!0}}),e||(0,w.pJ)(c,{amenities:t})};return!e?.value||e?.value?.length<=0?null:(0,n.jsxs)("div",{children:[(0,n.jsx)(d.Z,{title:e?.name}),(0,n.jsx)("div",{className:"tw-flex tw-flex-wrap tw-gap-2 tw-mt-2",children:e.value?.map(t=>{let{id:e,name:r}=t;return n.jsx(o.Z,{id:e,label:r,selected:g(e),onClick:v,className:"tw-w-full"},e)})})]})}},38167:function(t,e,r){r.d(e,{Z:function(){return p}});var n=r(57437),a=r(3113),s=r(2265),l=r(11362),i=r(41919),w=r(30490),o=r(39399),d=r(72418),c=r(43088),u=r(25486),m=r(47581),h=r(34033),x=r(23841),f=r(96623);function p(t){let{isMapSearch:e=!1,className:r="",isShowDivider:p=!1,hideTitle:b=!1,deferSearch:g=!1,type:v,section:j=""}=t,y=(0,w.T)(),[N]=(0,l.KO)(i.Gr),[C]=(0,l.KO)(o.X7),_=(0,l.b9)(i.YV),k=(0,l.b9)(o.AM),R=(0,l.b9)(m.m),S=(0,s.useCallback)(t=>{e?k({duration:t,...g?{}:{isImmediateSearch:!0}}):_({duration:t,...g?{}:{isImmediateSearch:!0}});let r={page:v,section:j};if(!(0,c.Qr)(r)){let{page:t,section:e}=r;R({source:u.Z.getGAEventName(t,e)})}},[_,k,e,g,v,j,R]),O=e?C:N;return(0,n.jsxs)("div",{className:`${r}`,children:[(0,n.jsx)(d.Z,{hideTitle:b,title:y("search_bar.durations"),option:O?(0,n.jsxs)("div",{className:b?"tw-flex tw-items-center tw-justify-center tw-leading-4":"between-content",children:[`${(0,f.B)(O)}+`,(0,n.jsx)("div",{className:b?"tw-absolute tw-right-2 tw-top-1/2 -tw-translate-y-1/2 tw-flex tw-items-center tw-justify-center tw-bg-brand-subtle-info tw-rounded-full tw-p-[3px] tw-cursor-pointer":"button-class",onClick:()=>{e?k({duration:0,...g?{}:{isImmediateSearch:!0}}):_({duration:0,...g?{}:{isImmediateSearch:!0}})},children:b?(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})}):(0,n.jsx)(x.Z,{src:"https://cdns.flowtheroom.com/qOh2lp-0AGWeBP68yRH5aQ/b72b8906-1ce4-461e-11f4-ccfa0f906300/public",width:12,height:12,alt:y("close"),className:"tw-ml-2 tw-p-0.5"})})]}
1):y("search_bar.no_pref_duration"),isShowDivider:p}),(0,n.jsx)(h.E,{"aria-labelledby":"duration-radio-buttons-group-label",value:String(O),onValueChange:t=>S(Number(t)),className:"tw-grid tw-grid-cols-3 tw-gap-x-1 tw-gap-y-0 tw-mt-4",children:Array.from({length:a.sT.MAX+1-a.sT.MIN},(t,e)=>e+a.sT.MIN).map(t=>{let e=`duration-${t}`;return(0,n.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-[7px] tw-h-10 tw-pr-2",children:[(0,n.jsx)(h.m,{value:String(t),id:e,className:"tw-h-[18px] tw-w-[18px] tw-border-[1.5px] tw-border-dark tw-text-brand data-[state=checked]:tw-border-brand-default"}),(0,n.jsx)("label",{htmlFor:e,className:"typography-fixed-xs-medium tw-text-body-strong tw-whitespace-nowrap tw-cursor-pointer",children:`${(0,f.B)(t)}+`})]},e)})})]})}},25429:function(t,e,r){r.d(e,{Z:function(){return c}});var n=r(57437),a=r(2265),s=r(11362),l=r(41919),i=r(39399),w=r(37054),o=r(36863),d=r(72418);function c(t){let{paymentOptionFilter:e,isMapSearch:r=!1,type:c,deferSearch:u=!1}=t,[m]=(0,s.KO)(l.x2),[h]=(0,s.KO)(i.Td),x=(0,s.b9)(l.YV),f=(0,s.b9)(i.AM),p=(0,a.useCallback)(t=>(r?h:m).includes(t),[r,h,m]),b=t=>{let e=p(t)?(r?h:m).filter(e=>e!==t):(r?h:m).concat([t]);r?f({paymentOption:e,...u?{}:{isImmediateSearch:!0}}):x({paymentOption:e,...u?{}:{isImmediateSearch:!0}}),p(t)||(0,w.pJ)(c,{paymentOption:t})};return!e?.value||e?.value?.length<=0?null:(0,n.jsxs)("div",{children:[(0,n.jsx)(d.Z,{title:e?.name}),(0,n.jsx)("div",{className:"tw-flex tw-flex-wrap tw-gap-2 tw-mt-2",children:e.value?.map(t=>{let{type:e,name:r}=t;return n.jsx(o.Z,{id:e,label:r,selected:p(e),onClick:b,className:"tw-w-full"},e)})})]})}},35916:function(t,e,r){r.d(e,{Z:function(){return f}});var n=r(57437),a=r(57192),s=r(11362),l=r(41919),i=r(39399),w=r(33063),o=r(2265),d=r(25486),c=r(37054),u=r(47581),m=r(72418),h=r(72301),x=r(78351);function f(t){let{priceRangeFilter:e,isMapSearch:r=!1,className:f="",type:p,section:b="SEARCH_RESULT_BAR",currencyFormat:g,deferSearch:v=!1}=t,{region:j}=(0,h.useParams)(),y=(0,s.b9)(l.YV),N=(0,s.b9)(i.AM),[C]=(0,s.KO)(l.CI),[_]=(0,s.KO)(i.VJ),k=(0,s.Dv)(w.gb),[R,S]=(0,o.useState)([e?.value.min??0,e?.value.max??0]),O=(0,s.b9)(u.m);(0,o.useEffect)(()=>{let t=[(r?_?.[0]:C?.[0])??e?.value.min,(r?_?.[1]:C?.[1])??e?.value.max];S(e=>e[0]===t[0]&&e[1]===t[1]?e:t)},[e?.value,C,_,r]);let T=(0,o.useRef)(j);(0,o.useEffect)(()=>{T.current!==j&&(T.current=j,(r?N:y)({priceRange:void 0,...v?{}:{isImmediateSearch:!0}}))},[j,r,N,y,v]);let E=()=>{O({source:d.Z.getGAEventName(p,b)})},M=t=>{(0,c.pJ)(p,t)};if(!e?.value?.min||!e?.value?.max)return null;let I=g??k,A=t=>{if(null==t)return"";let e=(0,a.T4)(t,I);return"-"===e?t.toString():e};return(0,n.jsxs)("div",{className:`${f}`,children:[(0,n.jsx)(m.Z,{title:e.name,option:`${A(R[0])} - ${A(R[1])}${R[1]===e?.value.max?"+":""}`}),(0,n.jsx)("div",{className:"tw-flex tw-justify-center",children:(0,n.jsx)(x.Z,{min:e?.value.min,max:e?.value.max,value:R,onValueChange:t=>{S(t)},onValueCommit:()=>{let t;t=(R[0]!==e?.value.min||R[1]!==e?.value.max)&&(R[0]||R[1])?R:void 0,r?N({priceRange:t,...v?{}:{isImmediateSearch:!0}}):y({priceRange:t,...v?{}:{isImmediateSearch:!0}}),t&&M({priceRange:t}),E()},formatThumbValue:t=>A(t)})})]})}},64021:function(t,e,r){r.d(e,{Z:function(){return m}});var n=r(57437);r(2265);var a=r(11362),s=r(41919),l=r(39399),i=r(25486),w=r(47581),o=r(30490),d=r(36863),c=r(72418),u=r(90450);function m(t){let{starRatingFilter:e,isMapSearch:r=!1,type:m,section:h="SEARCH_RESULT_BAR",deferSearch:x=!1}=t,f=(0,o.T)(),[p]=(0,a.KO)(s.Ys),[b]=(0,a.KO)(l.Ds),g=(0,a.b9)(s.YV),v=(0,a.b9)(l.AM),j=(0,a.b9)(w.m),y=()=>{j({source:i.Z.getGAEventName(m,h)})},N=t=>{let e;let n=r?b:p;if(n?.includes(t)){let r=n?.indexOf(t);e=n?.filter((t,e)=>e!==r)}else e=[...n,t];r?v({starRating:e,...x?{}:{isImmediateSearch:!0}}):g({starRating:e,...x?{}:{isImmediateSearch:!0}}),n?.includes(t)||(0,u.sendApplyQuickFilter)(m,{starRating:t}),y()};return e?.value?(0,n.jsxs)("div",{children:[(0,n.jsx)(c.Z,{title:e.name}),(0,n.jsx)("div",{className:"tw-grid tw-grid-cols-3 tw-mt-2",children:Array.from({length:e.value.max+1-e.value.min},(t,r)=>r+e.value.min).map(t=>(0,n.jsx)(d.Z,{id:t,label:f("stars",{num:t}),selected:r?b.includes(t):p.includes(t),onClick:N},`star_rating_${t}`))})]}):null}},42184:function(t,e,r){r.d(e,{Z:function(){return d}});var n=r(57437);r(2265);
1var a=r(11362),s=r(41919),l=r(39399),i=r(96294),w=r(37054),o=r(72418);function d(t){let{themeFilter:e,isMapSearch:r=!1,type:d,section:c="SEARCH_RESULT_BAR",deferSearch:u=!1}=t,[m]=(0,a.KO)(s.AG),[h]=(0,a.KO)(l.QG),x=(0,a.b9)(s.YV),f=(0,a.b9)(l.AM),p=t=>{let e;e=(r?h:m)===t?"":t,r?f({theme:e,...u?{}:{isImmediateSearch:!0}}):x({theme:e,...u?{}:{isImmediateSearch:!0}}),(0,w.pJ)(d,{theme:e})};return!e?.value||e?.value?.length<=0?null:(0,n.jsxs)("div",{children:[(0,n.jsx)(o.Z,{title:e.name}),(0,n.jsx)("div",{className:"tw-flex tw-flex-wrap tw-gap-2 tw-mt-2",children:e?.value?.map(t=>n.jsx(i.default,{sourceParams:{page:d,section:c},className:`${(r?h:m)===t.value?"sunshine-btn":"tw-bg-white tw-border-grey"}`,onClick:()=>p(t.value),borderRadius:"full",variant:"outlined",disableRipple:!0,children:n.jsx("p",{className:`typography-fixed-xs-medium tw-py-3 tw-px-5 ${(r?h:m)===t.value?"tw-text-black-ground":"tw-text-body-strong"}`,children:t.text})},t.value))})]})}},1734:function(t,e,r){r.d(e,{Z:function(){return _}});var n=r(57437),a=r(11362),s=r(72301),l=r(30490),i=r(2265),w=r(72418),o=r(23841),d=r(78351),c=r(38167),u=r(34033),m=r(3113),h=r(25486),x=r(67512),f=r(41919),p=r(47581),b=r(39399),g=r(53899),v=r(37054),j=r(26141),y=r(20469),N=r(98558),C=r(97075);function _(t){let{remoteTime:e,isMapSearch:r=!1,className:_="",type:k,section:R,swiperType:S,hideTitle:O=!1,deferSearch:T=!1}=t,E=(0,l.T)(),{region:M,lang:I}=(0,s.useParams)(),[A]=(0,a.KO)(f.xR),[Z]=(0,a.KO)(b.ll),[L]=(0,a.KO)(f.mN),[$]=(0,a.KO)(b.Ee),[V]=(0,a.KO)(f.mv),[K]=(0,a.KO)(b.bX),B=(0,a.b9)(f.YV),D=(0,a.b9)(b.AM),P=(0,a.b9)(p.m),[H,F]=(0,i.useState)([]),G=(0,i.useRef)([]),U=(0,i.useRef)(null),Y=m.OL.filter(t=>"daycation"===t.type).map(t=>{let n=(0,x.Xs)(r?$:L,t.end_time,e?.timestamp,M);return t.isDisabled=n<e?.timestamp,t}),W=(0,i.useMemo)(()=>{let t=r?K:V;return t.timeType===m.uK.PERIOD?t.periodType:null},[r,K,V]),z=t=>{let n=(0,x.Xs)(r?$:L,t.start_time,e?.timestamp,M),a=(0,x.Xs)(r?$:L,t.end_time,e?.timestamp,M),s={text:t.text[(0,j.VD)(M,I)],value:n,endValue:a,periodType:t.value,timeType:m.uK.PERIOD};F([Math.max(0,J.findIndex(t=>n===t.timestamp.valueOf())),J.findIndex(t=>a===t.timestamp.valueOf())]),r?D({time:s,...T?{}:{isImmediateSearch:!0}}):B({time:s,...T?{}:{isImmediateSearch:!0}}),X({value:t.value})},X=t=>{let{value:e}=t,n=(0,y.fU)({periodType:e});(0,v.Bq)({source:h.Z.getGAEventName(k,R,n),type:m.uK.PERIOD,value:e,date:r?$:L})},J=(0,i.useMemo)(()=>(0,C.Y2)(r?$:L,e?.timestamp,M),[M,r,L,$]);(0,i.useEffect)(()=>{let t=r?$:L,n=r?K:V,a=n.value,s=n.endValue;if(n.timeType===m.uK.PERIOD){let r=m.OL.find(t=>{let{value:e}=t;return e===n.periodType});a=(0,x.Xs)(t,r?.start_time,e?.timestamp,M),s=r?.end_time?(0,x.Xs)(t,r?.end_time,e?.timestamp,M):void 0}let l=J.findIndex(t=>t.timestamp===a),i=s?J.findIndex(t=>t.timestamp===s):-1;i>=0?F([Math.max(0,l),i]):F([J[0]?.value,J[J.length-1]?.value])},[r,K,V,J]),(0,i.useEffect)(()=>{G.current=H},[H]),(0,i.useEffect)(()=>{Q()},[L]);let Q=()=>{let t=Y.find(t=>t.value===V?.periodType&&!!t?.isDisabled);t?.isDisabled&&tr()},q=(t,e)=>{if(0===t[0]&&t[1]===J.length-1){tr();return}let n=J[t[0]],a=J[t[1]];if(!n||!a)return;let s={text:`${n.label} - ${a.label}`,value:n.timestamp,endValue:a.timestamp,timeType:m.uK.FREE};r?D({time:s,...e?{isImmediateSearch:!0}:{}}):B({time:s,...e?{isImmediateSearch:!0}:{}})},tt=t=>{U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{U.current=null,q(t,!T)},90)},te=t=>{U.current&&(clearTimeout(U.current),U.current=null),q(t,!T)};(0,i.useEffect)(()=>()=>{U.current&&clearTimeout(U.current)},[]);let tr=()=>{let t=(0,C.rh)(M,I);r?D({time:t,...T?{}:{isImmediateSearch:!0}}):B({time:t,...T?{}:{isImmediateSearch:!0}})},tn=t=>t.value&&t.endValue?(0,N.dO)(t.value,t.endValue):t.text,ta=()=>{P({source:h.Z.getGAEventName(k,R)})},ts=r?K:V,tl=2===H.length&&J.length>0&&0===H[0]&&H[1]===J.length-1,ti=2===H.length&&J.length>0&&!tl,tw=(()=>{if(2!==H.length||0===J.length)return tn(ts);if(tl)return ts?.text||(0,C.rh)(M,I).text;let t=J[H[0]]?.label,e=J[H[1]]?.label;return t&&e?`${t} - ${e}`:tn(ts)})();return(0,n.jsxs)("div",{className:`${_}`,children:[(0,n.jsx)(w.Z,{hideTitle:O,title:E((r?Z:A)===m.dP.PARTY?"search_bar.start_time":"search_bar.check_in_time"),option:ti?(0,n.jsxs)("div",{className:O?"tw-flex tw-items-center tw-justify-center":"between-content",children:[tw,(0,n.jsx)("div",{className:O?"tw-absolute tw-right-2 tw-top-1/2 -tw-translate-y-1/2 tw-flex tw-items-center tw-justify-center tw-bg-brand-subtle-info tw-rounded-full tw-p-[3px] tw-cursor-pointer":"button-class",onClick:()=>{let t=(0,C.rh)(M,I);r?D({time:t,...T?{}:{isImmediateSearch:!0}}):B({time:t,...T?{}:{isImmediateSearch:!0}})},children:O?(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})}):(0,n.jsx)(o.Z,{src:"https://cdns.flowtheroom.com/qOh2lp-0AGWeBP68yRH5aQ/b72b8906-1ce4-461e-11f4-ccfa0f906300/public",width:12,height:12,alt:E("close"),className:"tw-ml-2 tw-p-0.5",unoptimized:!0})})]}):tw}),(0,n.jsx)("div",{className:`tw-flex tw-justify-center${O?" tw-px-4":""}`,children:(0,n.jsx)(d.Z,{"aria-label":"Start time range",value:H,onValueChange:t=>{G.current=t,F(t),tt(t)},onValueCommit:()=>{te(G.current),ta()},min:J[0]?.value,max:J[J.length-1]?.value,formatThumbValue:t=>J[t]?.label??"",className:O?"tw-w-full":""})}),(0,n.jsx)(u.E,{"aria-labelledby":"daycation-periods-radio-buttons-group-label",value:W??"",onValueChange:t=>{let e=Y.find(e=>e.value===t);e&&z(e)}
1,className:"tw-grid tw-grid-cols-1 tw-mt-4",children:Y.map((t,e)=>{let r=`daycation-period-${e}`;return(0,n.jsxs)("div",{className:"tw-flex tw-items-center tw-gap-3 tw-py-2",children:[(0,n.jsx)(u.m,{value:t.value,id:r,disabled:t?.isDisabled,className:"tw-text-brand"}),(0,n.jsx)("label",{htmlFor:r,className:`typography-fixed-xs-medium tw-whitespace-nowrap tw-cursor-pointer ${t?.isDisabled?"tw-text-body-subtle":"tw-text-body-strong"}`,children:`${t.text[(0,j.VD)(M,I)]} (${t.start_time} - ${t.end_time})`})]},`daycation_periods_checkbox_${e}`)})}),S===g.FR.FULL&&A?.includes(m.dP.REST)&&(0,n.jsx)(c.Z,{className:"tw-mt-8 tw-w-full",type:k,section:R})]})}},34033:function(t,e,r){r.d(e,{E:function(){return w},m:function(){return o}});var n=r(57437),a=r(2265),s=r(30374),l=r(33157),i=r(89595);let w=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,n.jsx)(s.fC,{className:(0,i.cn)("tw-grid tw-gap-2",r),ref:e,...a})});w.displayName=s.fC.displayName;let o=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,n.jsx)(s.ck,{ref:e,className:(0,i.cn)("tw-aspect-square tw-h-[18px] tw-w-[18px] tw-rounded-full tw-border-[1.5px] tw-border-flow-foreground data-[state=checked]:tw-border-flow-primary tw-text-flow-primary tw-transition-colors focus:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-flow-ring focus-visible:tw-ring-offset-2 focus-visible:tw-ring-offset-flow-background disabled:tw-cursor-not-allowed disabled:tw-opacity-50",r),...a,children:(0,n.jsx)(s.z$,{className:"tw-flex tw-items-center tw-justify-center",children:(0,n.jsx)(l.Z,{className:"tw-h-2.5 tw-w-2.5 tw-fill-flow-primary tw-text-flow-primary"})})})});o.displayName=s.ck.displayName},38509:function(t,e,r){r.d(e,{i:function(){return i}});var n=r(57437),a=r(2265),s=r(29621),l=r(89595);let i=a.forwardRef((t,e)=>{let{className:r,thumbRender:i,trackClassName:w,rangeClassName:o,trackStyle:d,rangeStyle:c,trackChildren:u,...m}=t,h=a.useMemo(()=>Array.isArray(m.value)?m.value:Array.isArray(m.defaultValue)?m.defaultValue:[m.value??m.defaultValue??0],[m.value,m.defaultValue]),x=(0,l.cn)("tw-block tw-h-5 tw-w-5 tw-rounded-full tw-border tw-border-flow-primary tw-bg-flow-background tw-shadow tw-ring-offset-flow-background tw-transition-colors","focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-flow-ring focus-visible:tw-ring-offset-2 focus-visible:tw-ring-offset-flow-background","disabled:tw-pointer-events-none disabled:tw-opacity-50");return(0,n.jsxs)(s.fC,{ref:e,className:(0,l.cn)("tw-relative tw-flex tw-w-full tw-touch-none tw-select-none tw-items-center",r),...m,children:[(0,n.jsxs)(s.fQ,{className:(0,l.cn)("tw-relative tw-h-1.5 tw-w-full tw-grow tw-overflow-hidden tw-rounded-full tw-bg-flow-muted",w),style:d,children:[(0,n.jsx)(s.e6,{className:(0,l.cn)("tw-absolute tw-h-full tw-bg-flow-primary",o),style:c}),u]}),h.map((t,e)=>{let r=i?i({className:x},e):(0,n.jsx)(s.bU,{className:x});return a.isValidElement(r)?a.cloneElement(r,{key:e}):r})]})});i.displayName="Slider"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.