PageSourceSearch

https://indagare.com/_next/static/chunks/3j_zagvvblyv9.js

js indagare.com collected 2026-09-25 19:15:40 UTC 32,173 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,641706,e=>{e.v({dayGrid:"DatePicker-module__vNL2FG__dayGrid",hide:"DatePicker-module__vNL2FG__hide",message:"DatePicker-module__vNL2FG__message",month:"DatePicker-module__vNL2FG__month",monthTitle:"DatePicker-module__vNL2FG__monthTitle",next:"DatePicker-module__vNL2FG__next",previous:"DatePicker-module__vNL2FG__previous",root:"DatePicker-module__vNL2FG__root"})},600991,e=>{e.v({contained:"Day-module__qXDnrW__contained",day:"Day-module__qXDnrW__day",disabled:"Day-module__qXDnrW__disabled",end:"Day-module__qXDnrW__end",root:"Day-module__qXDnrW__root",start:"Day-module__qXDnrW__start"})},821642,e=>{e.v({content:"DayHeader-module__xeZgRW__content",root:"DayHeader-module__xeZgRW__root"})},562972,e=>{e.v({root:"Scroller-module__ypevEG__root"})},387364,e=>{e.v({clear:"HotelAndLocationSearchAutocomplete-module__dRIOva__clear",error:"HotelAndLocationSearchAutocomplete-module__dRIOva__error",icon:"HotelAndLocationSearchAutocomplete-module__dRIOva__icon",input:"HotelAndLocationSearchAutocomplete-module__dRIOva__input",item:"HotelAndLocationSearchAutocomplete-module__dRIOva__item",itemDetailDescription:"HotelAndLocationSearchAutocomplete-module__dRIOva__itemDetailDescription",itemDetailTitle:"HotelAndLocationSearchAutocomplete-module__dRIOva__itemDetailTitle",itemDetails:"HotelAndLocationSearchAutocomplete-module__dRIOva__itemDetails",itemIcon:"HotelAndLocationSearchAutocomplete-module__dRIOva__itemIcon",label:"HotelAndLocationSearchAutocomplete-module__dRIOva__label",listbox:"HotelAndLocationSearchAutocomplete-module__dRIOva__listbox",loadMore:"HotelAndLocationSearchAutocomplete-module__dRIOva__loadMore",loading:"HotelAndLocationSearchAutocomplete-module__dRIOva__loading",menu:"HotelAndLocationSearchAutocomplete-module__dRIOva__menu",noResults:"HotelAndLocationSearchAutocomplete-module__dRIOva__noResults",noShrink:"HotelAndLocationSearchAutocomplete-module__dRIOva__noShrink",option:"HotelAndLocationSearchAutocomplete-module__dRIOva__option",root:"HotelAndLocationSearchAutocomplete-module__dRIOva__root",withIcon:"HotelAndLocationSearchAutocomplete-module__dRIOva__withIcon"})},140079,e=>{e.v({actions:"HotelSearchBar-module__bDXb3a__actions",actionsSpacer:"HotelSearchBar-module__bDXb3a__actionsSpacer",fill:"HotelSearchBar-module__bDXb3a__fill",floating:"HotelSearchBar-module__bDXb3a__floating",horizontal:"HotelSearchBar-module__bDXb3a__horizontal",inputWrapper:"HotelSearchBar-module__bDXb3a__inputWrapper",lockedLocationContent:"HotelSearchBar-module__bDXb3a__lockedLocationContent",lockedLocationField:"HotelSearchBar-module__bDXb3a__lockedLocationField",lockedLocationIcon:"HotelSearchBar-module__bDXb3a__lockedLocationIcon",lockedLocationInner:"HotelSearchBar-module__bDXb3a__lockedLocationInner",lockedLocationLabel:"HotelSearchBar-module__bDXb3a__lockedLocationLabel",lockedSearch:"HotelSearchBar-module__bDXb3a__lockedSearch",noPadding:"HotelSearchBar-module__bDXb3a__noPadding",root:"HotelSearchBar-module__bDXb3a__root",separator:"HotelSearchBar-module__bDXb3a__separator",submit:"HotelSearchBar-module__bDXb3a__submit",vertical:"HotelSearchBar-module__bDXb3a__vertical"})},663987,390742,629439,419081,579379,e=>{"use strict";var t,a,o,l=e.i(810813),r=e.i(317434),i=e.i(140079),n=e.i(360871),d=e.i(51694);function s(e,t){let a=(0,n.toDate)(e);if(isNaN(t))return(0,d.constructFrom)(e,NaN);if(!t)return a;let o=a.getDate(),l=(0,d.constructFrom)(e,a.getTime());return(l.setMonth(a.getMonth()+t+1,0),o>=l.getDate())?l:(a.setFullYear(l.getFullYear(),l.getMonth(),o),a)}var c=e.i(185511);function u(e,t,a){let o=(0,n.toDate)(e);if(isNaN(+o))throw TypeError("Start date is invalid");let l=(0,n.toDate)(t);if(isNaN(+l))throw TypeError("End date is invalid");if(a?.assertPositive&&+o>+l)throw TypeError("End date must be after start date");return{start:o,end:l}}var m=e.i(736735),_=e.i(641706),h=e.i(600991),p=e.i(7284),f=e.i(778743);function b(e,t){return+(0,f.startOfDay)(e)==+(0,f.startOfDay)(t)}let g=({day:e,disabled:t,intervalPosition:a,onClick:o})=>(0,l.jsx)("div",{className:(0,p.default)(h.default.root,h.default[a],t&&h.default.disabled),children:(0,l.jsx)("button",{type:"button",disabled:t,className:(0,p.default)(h.default.day),onClick:()=>o(e),children:(0,n.toDate)(e).getDate()})});var v=e.i(821642);let x=({children:e})=>(0,l.jsx)("div",{className:v.default.root,children:(0,l.jsx)("div",{className:v.default.content,children:e})});e.i(702432);var N=e.i(384862),k=e.i(562972);let j=({childrenToShow:e,indexScroll:t,children:a})=>{let[o,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>
1{if(!o)return;let t=Array.from(o.childNodes);if(!t.length)return;let a=t.length-1,l=e-1,r=t[l>a?a:l<0?0:l],i=r.clientWidth+r.offsetLeft;o.setAttribute("style",`max-width: ${i}px;`)},[o,e]),(0,r.useEffect)(()=>{if(!o)return;let e=Array.from(o.childNodes);if(!e.length)return;let a=e.length-1,l=t.index,r=e[l>a?a:l<0?0:l];o.scroll({left:r.offsetLeft,behavior:t.scrollType})},[o,t]),(0,l.jsx)("div",{className:k.default.root,ref:i,children:a})};var S=e.i(883465),I=e.i(28022),L=((t={}).previous="date-picker-prev",t.next="date-picker-next",t),D=e.i(6957);let C="yyyy-MM",y=({value:e,onDayClicked:t,displayMonthCount:a,allowPast:o=!1,minDate:i,maxDate:h,message:f})=>{let v=a<1?1:a,k=(0,m.startOfToday)(),y=u(k,s(k,v-1));e?.start&&(y=u(e.start,s(e.start,v-1))),e?.start&&e.start>y.end&&(y.end=s(e.start,v-1)),e?.end&&e.end>y.end&&(y.end=s(e.end,v-1));let[A,T]=(0,r.useState)(function(e){let t=(0,n.toDate)(e.start),a=(0,n.toDate)(e.end),o=+t>+a,l=o?+t:+a,r=o?a:t;r.setHours(0,0,0,0),r.setDate(1);let i=(void 0)??1;if(!i)return[];i<0&&(i=-i,o=!o);let d=[];for(;+r<=l;)d.push((0,n.toDate)(r)),r.setMonth(r.getMonth()+i);return o?d.reverse():d}(y)),[H,R]=(0,r.useState)({index:0,scrollType:"instant"}),O=Array.from(A).map(e=>{let t,a,o,r;return{month:e,days:Array.from(Array((a=(t=(0,n.toDate)(e)).getFullYear(),o=t.getMonth(),(r=(0,d.constructFrom)(e,0)).setFullYear(a,o+1,0),r.setHours(0,0,0,0),r.getDate()))).map((t,a)=>new Date((0,n.toDate)(e).getFullYear(),(0,n.toDate)(e).getMonth(),a+1)),startFiller:Array.from(Array((0,n.toDate)(e).getDay())).map((t,a)=>(0,l.jsx)("div",{},`filler:${(0,c.format)(e,C)}:${a}`))}}),w=!o&&A[H.index]<=k;return(0,l.jsxs)("div",{className:_.default.root,children:[(0,l.jsx)("div",{className:(0,p.default)(_.default.previous,w&&_.default.hide),children:(0,l.jsx)(S.Touchable,{"data-testid":L.previous,variant:S.TouchableVariant.ghost,tag:S.TouchableTag.button,disabled:w,collapsePadding:!0,onClick:()=>{T(0===H.index?[s(A[0],-1),...A]:A),R({index:0===H.index?H.index:H.index-1,scrollType:"smooth"})},icon:(0,l.jsx)(I.ChevronRight,{})})}),(0,l.jsx)("div",{className:_.default.next,children:(0,l.jsx)(S.Touchable,{"data-testid":L.next,variant:S.TouchableVariant.ghost,tag:S.TouchableTag.button,onClick:()=>{T(H.index>=A.length-a?[...A,s(A[A.length-1],1)]:A),R({index:H.index+1,scrollType:"smooth"})},icon:(0,l.jsx)(I.ChevronRight,{})})}),(0,l.jsx)(j,{childrenToShow:v,indexScroll:H,children:O.map(a=>(0,l.jsxs)("div",{className:_.default.month,children:[(0,l.jsx)("div",{className:(0,p.default)(_.default.monthTitle,N.austinTextFont.className,D.FontSize.headingXxs),children:(0,c.format)(a.month,"MMMM uuuu")}),(0,l.jsxs)("div",{className:_.default.dayGrid,children:[(0,l.jsx)(x,{children:"S"}),(0,l.jsx)(x,{children:"M"}),(0,l.jsx)(x,{children:"T"}),(0,l.jsx)(x,{children:"W"}),(0,l.jsx)(x,{children:"T"}),(0,l.jsx)(x,{children:"F"}),(0,l.jsx)(x,{children:"S"}),a.startFiller,a.days.map(a=>(0,l.jsx)(g,{day:a,disabled:!o&&a<k||!!i&&a<i||!!h&&a>h,intervalPosition:e?e.start&&b(a,e.start)?"start":e.end&&b(a,e.end)?"end":e.start&&e.end&&function(e,t){let a=+(0,n.toDate)(e),[o,l]=[+(0,n.toDate)(t.start),+(0,n.toDate)(t.end)].sort((e,t)=>e-t);return a>=o&&a<=l}(a,e)?"contained":"none":"none",onClick:e=>t(e)},(0,c.format)(a,"yyyy-MM-dd")))]})]},(0,c.format)(a.month,C)))}),!!f&&(0,l.jsx)("p",{className:_.default.message,children:f})]})};e.s(["DatePicker",0,y],390742);var A=e.i(24346),T=e.i(546394),H=e.i(609366),R=e.i(630530);let O=({className:e})=>(0,l.jsx)("svg",{className:(0,p.default)(R.default.root,R.default.calendarRatio,e),xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",children:(0,l.jsx)("path",{className:R.default.strokeColor,d:"M13 6.66665H1M9.66667 1.33331V3.99998M4.33333 1.33331V3.99998M4.2 14.6666H9.8C10.9201 14.6666 11.4802 14.6666 11.908 14.4487C12.2843 14.2569 12.5903 13.951 12.782 13.5746C13 13.1468 13 12.5868 13 11.4666V5.86665C13 4.74654 13 4.18649 12.782 3.75867C12.5903 3.38234 12.2843 3.07638 11.908 2.88463C11.4802 2.66665 10.9201 2.66665 9.8 2.66665H4.2C3.0799 2.66665 2.51984 2.66665 2.09202 2.88463C1.71569 3.07638 1.40973 3.38234 1.21799 3.75867C1 4.18649 1 4.74654 1 5.86665V11.4666C1 12.5868 1 13.1468 1.21799 13.5746C1.40973 13.951 1.71569 14.2569 2.09202 14.4487C2.51984 14.6666 3.0799 14.6666 4.2 14.6666Z",stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round"})});e.s(["CalendarIcon",0,O],629439);let w=({className:e})=>(0,l.jsx)("svg",{className:(0,p.default)(R.default.root,R.default.squareRatio,e),xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,l.jsx)("path",{className:R.default.strokeColor,d:"M3.33203 10H16.6654M16.6654 10L11.6654 5M16.6654 10L11.6654 15",stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round"})});e.s(["LongArrowIcon",0,w],419081);var M=e.i(646513),B=e.i(787242),W=e.i(983596);let F="MMM d, yyyy",P=({range:{start:e,end:t},onClick:a,error:o,disableBorder:r=!1,testId:i})=>(0,l.jsxs)(S.Touchable,{variant:S.TouchableVariant.input,tag:S.TouchableTag.button,onClick:a,align:B.Position.left,icon:(0,l.jsx)(O,{}),iconSize:W.Size.sm,className:(0,p.default)(M.default.root,!!o&&M.default.error),fill:!0,disableBorder:r,"data-testid":i,children:[(0,l.jsx)("span",{children:e?(0,c.format)(e,F):"Check-in"}),(0,l.jsx)(w,{className:M.default.arrow})," ",(0,l.jsx)("span",{children:t?(0,c.format)(t,F):"Check-out"})]});var X=e.i(719558);let E="EEE, MMM d",G=({range:{start:e,end:t}})=>(0,l.jsxs)("div",{className:(0,p.default)(N.austinTextFont.className,X.default.root,D.FontSize.headingXxs),children:[(0,l.jsx)("div",{className:(0,p.default)(X.default.part,X.default.start,!!e&&X.default.selected,(!e||!!t)&&X.default.active),children:e?(0,c.format)(e,E):"Check-in"}),(0,l.jsx)(w,{}),(0,l.jsx)("div",{className:(0,p.default)(X.default.part,X.default.end,!!t&&X.default.selected,!!e&&!t&&X.default.active),children:t?(0,c.format)(t,E):"Check-out"})]}
1),K=({placement:e,onChange:t,id:a,error:o,closeOnRangeComplete:r=!1,value:i,disableBorder:n=!1,shrink:d=!1,allowClear:s=!1,disableFlip:c=!1,testId:u,minDate:m,maxDate:_,message:h,...p})=>(0,l.jsx)(A.PopupMenu,{renderButton:(e,t)=>(0,l.jsx)(P,{error:o,range:{start:i?.start,end:i?.end},onClick:()=>t(!e),disableBorder:n,testId:u}),placement:e,id:a,fill:!d,disablePortal:!0,disableFlip:c,children:(e,a)=>(0,l.jsx)(H.Float,{collapsePadding:!0,children:(0,l.jsxs)("div",{className:T.default.content,children:[(0,l.jsx)(G,{range:{start:i?.start,end:i?.end}}),(0,l.jsx)(y,{...p,value:i,onDayClicked:o=>{(i?.start&&i?.end||!i?.start&&!i?.end)&&t({start:o,end:void 0}),i?.start&&!i?.end&&o>i?.start&&(t({start:i?.start,end:o}),r&&a(!e)),i?.start&&!i?.end&&o<i?.start&&t({start:o,end:i?.end})},minDate:m,maxDate:_,message:h}),s&&(0,l.jsx)("div",{className:T.default.actions,children:(0,l.jsx)(S.Touchable,{variant:S.TouchableVariant.outline,tag:S.TouchableTag.button,onClick:()=>{t({start:void 0,end:void 0})},children:"Clear"})})]})})});var q=e.i(166410),V=e.i(947642);let z=({outlineMatch:e="minus",strokeWidth:t=2,className:a})=>(0,l.jsxs)("svg",{className:(0,p.default)(R.default.root,R.default.squareRatio,a),xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[(0,l.jsx)("path",{className:(0,p.default)("minus"===e?R.default.strokeColor:"background"===e?R.default.strokeColor3:R.default.strokeColor2,R.default.fillColor3),d:"M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z",stroke:"black",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,l.jsx)("path",{className:R.default.strokeColor,d:"M 7 11 H 15 Z",stroke:"black",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]});e.s(["MinusCircleOutlineIcon",0,z],579379);var Z=e.i(856178);let U=({name:e,label:t,type:a="number",control:o,fill:r=!1,id:i,collapseSpacing:n=!1,className:d,disableError:s=!1,disableHelper:c=!1,max:u,min:m,onInteract:_})=>(0,l.jsx)(q.Controller,{control:o,name:e,render:({field:{onChange:e,onBlur:o,value:h,name:f,ref:b},fieldState:{error:g}})=>{let v=parseInt(h),x=isNaN(v)?0:v;return(0,l.jsxs)("div",{className:(0,p.default)(V.default.root,r&&V.default.fill,n&&V.default.collapseSpacing,d),children:[(0,l.jsxs)("div",{className:V.default.field,children:[(0,l.jsx)("label",{className:V.default.label,htmlFor:i,children:t}),(0,l.jsx)(S.Touchable,{variant:S.TouchableVariant.icon,tag:S.TouchableTag.button,icon:(0,l.jsx)(z,{className:V.default.icon,strokeWidth:1}),iconSize:W.Size.md,disabled:x<=m,onClick:()=>{m<x&&(_?.(),e(x-1))},collapsePadding:!0}),(0,l.jsx)("input",{className:(0,p.default)(V.default.input,!s&&g&&V.default.error),type:a,name:f,id:i,value:h,onChange:t=>{void 0!==u&&parseInt(t.target.value)>u?e(u):void 0!==m&&parseInt(t.target.value)<m?e(m):e(t.target.value)},onBlur:o,placeholder:t,ref:b}),(0,l.jsx)(S.Touchable,{variant:S.TouchableVariant.icon,tag:S.TouchableTag.button,icon:(0,l.jsx)(Z.PlusCircleOutlineIcon,{className:V.default.icon,strokeWidth:1}),iconSize:W.Size.md,disabled:x>=u,onClick:()=>{x<u&&(_?.(),e(x+1))},collapsePadding:!0})]}),!c&&(0,l.jsx)("p",{className:(0,p.default)(V.default.helper,!!g&&V.default.error),children:!s&&g?.message})]})}}),$=({className:e})=>(0,l.jsxs)("svg",{className:(0,p.default)(R.default.root,R.default.squareRatio,e),xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,l.jsx)("path",{className:R.default.strokeColor,d:"M14.6641 14V12.6667C14.6636 12.0758 14.467 11.5019 14.105 11.0349C13.743 10.5679 13.2361 10.2344 12.6641 10.0867",stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{className:R.default.strokeColor,d:"M11.9987 14V12.6667C11.9987 11.9594 11.7177 11.2811 11.2176 10.781C10.7176 10.281 10.0393 10 9.33203 10H3.9987C3.29145 10 2.61318 10.281 2.11308 10.781C1.61298 11.2811 1.33203 11.9594 1.33203 12.6667V14",stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{className:R.default.strokeColor,d:"M10 2.08667C10.5736 2.23354 11.
1082 2.56714 11.4451 3.03488C11.8082 3.50262 12.0052 4.07789 12.0052 4.67C12.0052 5.26212 11.8082 5.83739 11.4451 6.30513C11.082 6.77287 10.5736 7.10647 10 7.25334",stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{className:R.default.strokeColor,d:"M6.66667 7.33333C8.13943 7.33333 9.33333 6.13943 9.33333 4.66667C9.33333 3.19391 8.13943 2 6.66667 2C5.19391 2 4 3.19391 4 4.66667C4 6.13943 5.19391 7.33333 6.66667 7.33333Z",stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round"})]});var Q=e.i(192740),Y=e.i(506084),J=e.i(754704);let ee=({control:e,adultsName:t,childrenName:a,placement:o,adultCount:r,childrenCount:i,isError:n,disableBorder:d=!1,disableFlip:s=!1,shrink:c=!1,testId:u,onInteract:m})=>(0,l.jsx)(A.PopupMenu,{renderButton:(e,t)=>(0,l.jsx)(S.Touchable,{"data-testid":u,variant:S.TouchableVariant.input,tag:S.TouchableTag.button,onClick:()=>t(!e),icon:(0,l.jsx)($,{}),iconSize:W.Size.sm,align:B.Position.left,className:(0,p.default)(Q.default.button,n&&Q.default.error),fill:!0,disableBorder:d,children:(0,J.buildGuestsString)(r,i)}),placement:o,fill:!c,menuSameWidth:!0,disablePortal:!0,disableFlip:s,children:(0,l.jsx)(H.Float,{collapsePadding:!0,children:(0,l.jsxs)("div",{className:Q.default.content,children:[(0,l.jsx)(U,{control:e,name:t,id:"room-search-adults",label:"Adults",disableError:!0,disableHelper:!0,max:Y.BOOKING_ADULTS_MAX,min:Y.BOOKING_ADULTS_MIN,onInteract:m}),(0,l.jsx)(U,{control:e,name:a,id:"room-search-children",label:"Children",disableError:!0,disableHelper:!0,max:Y.BOOKING_CHILDREN_MAX,min:Y.BOOKING_CHILDREN_MIN,onInteract:m})]})})});var et=e.i(312476),ea=e.i(819209),eo=e.i(702502),el=e.i(957292);let er=(0,el.object)({startDate:(0,el.string)(),endDate:(0,el.string)(),adults:(0,el.number)().min(Y.BOOKING_ADULTS_MIN,`At least ${Y.BOOKING_ADULTS_MIN} adult${1!==Y.BOOKING_ADULTS_MIN?"s":""} must be present`).max(Y.BOOKING_ADULTS_MAX,`Only ${Y.BOOKING_ADULTS_MAX} adult${1!==Y.BOOKING_ADULTS_MIN?"s":""} or less can be booked at one time`).transform(e=>e||0).required("Adults are required").test("Adults are required",e=>!!e),children:(0,el.number)().min(Y.BOOKING_CHILDREN_MIN,`At least ${Y.BOOKING_CHILDREN_MIN} child${1!==Y.BOOKING_CHILDREN_MIN?"ren":""} must be present`).max(Y.BOOKING_CHILDREN_MAX,`Only ${Y.BOOKING_CHILDREN_MAX} child${1!==Y.BOOKING_CHILDREN_MAX?"ren":""} or less can be booked at one time`).required("Children are required"),locationPid:(0,el.string)().defined().nullable().when(["$locationRequired","startDate","endDate"],{is:(e,t,a)=>e&&!!t&&!!a,then:e=>e.required("Location is required")}),rooms:(0,el.number)().required("Rooms are required").default(1)});var ei=e.i(972046),en=e.i(532452),ed=e.i(558533),es=e.i(90084),ec=e.i(436705);let eu=({isLoading:e})=>(0,l.jsx)("button",{"data-testid":en.HotelSearchTestId.submit,className:ed.default.root,type:"submit",title:"Search hotels",disabled:e,children:e?(0,l.jsx)(es.Loader,{collapseMargin:!0,size:16,variant:"primary"}):(0,l.jsx)(ec.SpyGlassIcon,{})});var em=e.i(345347),e_=e.i(621705),eh=e.i(24049),ep=e.i(984752),ef=e.i(309798),eb=e.i(387364);let eg=()=>(0,l.jsx)("svg",{className:(0,p.default)(R.default.root,R.default.squareRatio),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.jsx)("path",{className:R.default.strokeColor,d:"M6 18L18 6M18 14V6H10",stroke:"#757575",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});var ev=((a={})[a.shrinkable=0]="shrinkable",a[a.placeholder=1]="placeholder",a);let ex=(0,r.forwardRef)(function(e,t){let{disableClearable:a=!1,disabled:o=!1,readOnly:i=!1,label:n,labelType:d,isLoading:s=!1,icon:c,error:u,options:m,getMoreOptions:_,moreOptionsAvailable:h,testId:f,placement:b="bottom",disableFlip:g,onFocus:v}=e,{getRootProps:x,getInputProps:N,getClearProps:k,getListboxProps:j,getOptionProps:S,dirty:I,id:L,popupOpen:C,focused:y,anchorEl:A,setAnchorEl:T,groupedOptions:R,value:O,inputValue:w}=(0,ep.useAutocomplete)({...e,isOptionEqualToValue:(e,t)=>e.id===t?.id,getOptionKey:e=>e?.id||"",getOptionLabel:e=>e?.label||"",clearOnEscape:!0}),[M,B]=(0,r.useState)(null);(0,r.useEffect)(()=>
1{if(!M)return;let e=new IntersectionObserver(e=>{e.length&&e[0].intersectionRatio>0&&h&&!s&&_()},{threshold:0});return e.observe(M),()=>e.disconnect()},[_,h,s,M]);let W=(0,ef.default)(t,T);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{...x(),ref:W,className:(0,p.default)(eb.default.root,y&&eb.default.focused,!!u&&eb.default.error),children:[!!c&&(0,l.jsx)("div",{className:eb.default.icon,children:c}),(0,l.jsx)("input",{...N(),onFocus:e=>{N().onFocus?.(e),v?.()},className:(0,p.default)(eb.default.input,1===d&&eb.default.noShrink,!!c&&eb.default.withIcon),"data-testid":f,placeholder:1===d?n:void 0}),0===d&&(0,l.jsx)("label",{htmlFor:L,className:eb.default.label,children:n}),!a&&!o&&I&&!i&&!!O&&!s&&(0,l.jsx)("div",{className:eb.default.clear,children:(0,l.jsx)("button",{...k(),children:(0,l.jsx)(e_.ClearIcon,{})})}),s&&(0,l.jsx)("div",{className:eb.default.loading,children:(0,l.jsx)(es.Loader,{size:24})})]}),A&&(0,l.jsx)(eh.Popper,{open:C&&(!!w||!!m.length),anchorEl:A,modifiers:[{name:"flip",enabled:!g},{name:"preventOverflow",enabled:!0},{name:"offset",options:{offset:[0,8]}}],className:eb.default.menu,disablePortal:!0,placement:b,children:(0,l.jsx)(H.Float,{collapsePadding:!0,children:(0,l.jsxs)("ul",{...j(),className:(0,p.default)(eb.default.listbox),children:[R.map((e,t)=>{let{key:a,...o}=S({option:e,index:t});return(0,r.createElement)("li",{...o,key:`${e.id}:${e.label}`,className:(0,p.default)(o.className,eb.default.item),children:[!!e.icon&&(0,l.jsx)("div",{className:eb.default.itemIcon,children:e.icon}),(0,l.jsxs)("div",{className:eb.default.itemDetails,children:[(0,l.jsx)("p",{className:(0,p.default)(D.FontSize.bodySm,eb.default.itemDetailTitle,"clamp--1"),title:e.label,children:e.label}),!!e.description&&(0,l.jsx)("p",{className:(0,p.default)(D.FontSize.caption,eb.default.itemDetailDescription,"clamp--1"),title:e.description,children:e.description})]}),!!e.onItemClick&&(0,l.jsx)("div",{className:eb.default.itemIcon,children:(0,l.jsx)(eg,{})})]})}),0===R.length&&(0,l.jsx)("li",{className:eb.default.noResults,children:"No results"}),h&&(0,l.jsx)("li",{className:eb.default.loadMore,ref:B,children:s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Loader,{size:16,collapseMargin:!0})," Loading..."]})})]})})})]})}),eN=({id:e,fill:t,control:a,name:o,label:r,options:i,getMoreOptions:n,isLoading:d,moreOptionsAvailable:s,icon:c,inputValue:u,onInputChange:m,onClear:_,onFocus:h,testId:f,placement:b="bottom",disableFlip:g=!1})=>(0,l.jsx)(q.Controller,{control:a,name:o,render:({field:{onChange:a,value:o},fieldState:{error:v}})=>(0,l.jsx)("div",{className:(0,p.default)(em.default.root,t&&em.default.fill),children:(0,l.jsx)("div",{className:em.default.field,children:(0,l.jsx)(ex,{id:e,testId:f,label:r,labelType:ev.placeholder,icon:c,autoHighlight:!0,options:i,value:i.find(e=>e.id===o)||null,onChange:async(e,t,o)=>{"clear"===o?_():t?.onItemClick?.(t),a(t?.id)},inputValue:u,onInputChange:(e,t,a)=>{(e||"reset"!==a)&&m(t)},onFocus:h,isLoading:d,componentName:"HotelSearchLocationSelect",clearOnBlur:!0,getMoreOptions:n,moreOptionsAvailable:s,error:v?.message,placement:b,disableFlip:g})})})});var ek=e.i(417293),ej=e.i(973146),eS=e.i(310313);let eI=({className:e})=>(0,l.jsxs)("svg",{className:(0,p.default)(R.default.root,R.default.squareRatio),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,l.jsx)("path",{className:R.default.strokeColor,d:"M12 13C13.6569 13 15 11.6569 15 10C15 8.34315 13.6569 7 12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13Z",stroke:"#151414",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{className:R.default.strokeColor,d:"M12 22C16 18 20 14.4183 20 10C20 5.58172 16.4183 2 12 2C7.58172 2 4 5.58172 4 10C4 14.4183 8 18 12 22Z",stroke:"#151414",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),eL=({className:e})=>(0,l.jsxs)("svg",{className:(0,p.default)(R.default.root,R.default.squareRatio,e),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,l.jsx)("path",{className:R.default.strokeColor,d:"M12 13C13.6569 13 15 11.6569 15 10C15 8.34315 13.6569 7 12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13Z",stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{className:R.default.strokeColor,d:"M12 22C16 18 20 14.4183 20 10C20 5.58172 16.4183 2 12 2C7.58172 2 4 5.58172 4 10C4 14.4183 8 18 12 22Z",stroke:"#757575",strokeLinecap:"round",strokeLinejoin:"round"})]});var eD=e.i(470712),eC=e.i(38135),ey=e.i(348796),eA=e.i(77399),eT=e.i(777684),eH=e.i(949531),eR=e.i(748045),eO=e.i(560702),ew=((o={}).horizontal="horizontal",o.vertical="vertical",o);e.s(["HotelSearchBar",0,e=>{let t=(0,eT.useRouter)(),{search:a,onSearch:o,onClear:n,isLoading:d,layoutVariant:s,dateFilterOffer:c,useLocation:u=!1,isFloating:m=!1,collapsePadding:_=!1,enableIconButton:h=!1,fill:f=!1,inputFooter:b,disableClear:g=!1,menuPlacements:v="bottom",disableMenuFlip:x=!1,lockLocation:N=!1,renderLocationFooter:k,trackHotelsSearchEvents:j=!1}=e,I=(0,ea.useScreenSize)(),[L,C]=(0,r.useState)(e.useLocation&&e.defaultSearchLocation?.label||""),y=(0,ek.useEntityTypeSearchInfinite)({entityTypes:[ej.EntityType.location,ej.EntityType.hotel],query:L}),A=e.useLocation?e.defaultSearchLocation:null;(0,r.useEffect)(()=>{C(A?.label?A.label:"")},[A?.label]);let T=(0,r.useMemo)(()=>({locationRequired:u}),[u]),{control:H,formState:R,handleSubmit:O,setValue:w,clearErrors:M,watch:B,reset:W}=(0,q.useForm)({defaultValues:{endDate:a?.endDate||"",startDate:a?.startDate||"",adults:a?.adults||1,children:a?.children||0,rooms:a?.rooms||1,locationPid:a?.locationPid||e.useLocation&&e.defaultSearchLocation?.id||""},resolver:(0,eo.yupResolver)(er),context:T});(0,r.useEffect)(()=>{w("startDate",a?.startDate||""),w("endDate",a?.endDate||""),w("adults",a?.adults||1),w("children",a?.children||0),w("locationPid",a?.locationPid||A?.id||""),w("rooms",a?.rooms||1)},[A?.id,a,w]);let F=B("startDate"),P=B("endDate"),X=parseInt(String(B("adults"))||"0"),E=parseInt(String(B("children"))||"0"),G=parseInt(String(B("rooms"))||"1")||1,V=(0,eR.useGtmTrackFormStart)(eO.FormId.hotelSearch),z=()=>{C(""),y.mutate()},Z=(0,r.useRef)(!1),U=()=>{j&&!Z.current&&(Z.current=!0,(0,eH.pushToDataLayer)({event:"start_search_hotels"}))},$=L&&y.data?.length?y.data.flatMap(e=>e.entities||[])?.map(e=>({label:e.title,id:e.pid,icon:e.type===ej.EntityType.place?(0,l.jsx)(eC.StayOutlineIcon,{},e.pid):(0,l.jsx)(eI,{},e.pid),description:e.description,onItemClick:e.type===ej.EntityType.place?()=>t.push(`${(0,ey.buildEntityUrl)(eA.PlaceType.lodging,e.pid)}/booking`):void 0})):e.useLocation&&e.defaultSearchLocation?[e.defaultSearchLocation]:[];return(0,l.jsx)("form",{"data-testid":en.HotelSearchTestId.form,onSubmit:O(e=>{(0,ei.trackCustomEvent)({provider:ei.AnalyticsProvider.hubspot,name:ei.HubspotWidgetAnalyticCTAEvent.findRooms,properties:e}),o(e)}),onChange:V,noValidate:!0,children:(0,l.jsxs)("fieldset",{className:(0,p.default)(i.default.root,i.default[s],m&&i.default.floating,_&&i.default.noPadding,f&&i.default.fill,N&&i.default.lockedSearch),disabled:d,children:[u&&(0,l.jsx)("div",{className:(0,p.default)(i.default.inputWrapper,f&&i.default.fill),children:N?(0,l.jsx)("div",{className:i.default.lockedLocationField,"data-testid":en.HotelSearchTestId.location,children:(0,l.jsxs)("div",{className:i.default.lockedLocationInner,children:[(0,l.jsx)("span",{className:i.default.lockedLocationIcon,children:(0,l.jsx)(eL,{})}),(0,l.jsxs)("div",{className:i.default.lockedLocationContent,children:[(0,l.jsx)("div",{className:(0,p.default)(i.default.lockedLocationLabel,D.FontSize.body),children:A?.label}),k?.({startDate:F||"",endDate:P||"",adults:X,children:E,rooms:G,locationPid:null})]})]})}
1):(0,l.jsx)(eN,{control:H,name:"locationPid",id:"hotel-search-location-pid",testId:en.HotelSearchTestId.location,label:"Enter a destination",options:$,getMoreOptions:()=>y.setSize(e=>e+1),moreOptionsAvailable:!!y.data&&(y.data[y.data.length-1].entities?.length||0)>=eS.SEARCH_PAGE_SIZE,isLoading:y.isLoading||y.isValidating,inputValue:L,onInputChange:e=>{U(),C(e)},onClear:z,onFocus:U,icon:(0,l.jsx)(eI,{}),placement:v,disableFlip:x})}),(0,l.jsx)("div",{className:(0,p.default)(i.default.inputWrapper,f&&i.default.fill),children:(0,l.jsx)(K,{id:"room-search-range",testId:en.HotelSearchTestId.range,placement:v,closeOnRangeComplete:!0,displayMonthCount:I===et.ScreenSize.mobile?1:2,error:R.errors.startDate?.type||R.errors.endDate?.type,value:{start:F?(0,eD.parseTransmissibleDate)(F):void 0,end:P?(0,eD.parseTransmissibleDate)(P):void 0},onChange:async e=>{V(),w("startDate",(0,eD.formatTransmissibleDate)(e.start)),w("endDate",(0,eD.formatTransmissibleDate)(e.end)),M(["startDate","endDate"])},shrink:!0,disableFlip:x,minDate:c?.bookingWindowFrom?(0,eD.parseTransmissibleDate)(c.bookingWindowFrom):void 0,maxDate:c?.bookingWindowTo?(0,eD.parseTransmissibleDate)(c.bookingWindowTo):void 0,message:c?"(Only displaying dates eligible for special offer)":void 0})}),(0,l.jsx)("div",{className:(0,p.default)(i.default.inputWrapper,f&&i.default.fill),children:(0,l.jsx)(ee,{control:H,adultsName:"adults",childrenName:"children",placement:v,adultCount:X,childrenCount:E,shrink:!0,testId:en.HotelSearchTestId.guests,disableFlip:x,onInteract:V})}),b,(0,l.jsx)("div",{className:i.default.actionsSpacer,children:(0,l.jsxs)("div",{className:i.default.actions,children:[h?(0,l.jsx)(eu,{isLoading:d||R.isSubmitting}):(0,l.jsx)(S.Touchable,{"data-testid":en.HotelSearchTestId.submit,variant:S.TouchableVariant.primary,tag:S.TouchableTag.button,type:"submit",className:i.default.submit,isLoading:d,fill:"vertical"===s,disabled:d,children:a?"Update search":"Search"}),a&&!g&&(0,l.jsx)(S.Touchable,{"data-testid":en.HotelSearchTestId.clear,variant:"horizontal"===s?S.TouchableVariant.ghost:S.TouchableVariant.outline,tag:S.TouchableTag.button,onClick:()=>{W({endDate:"",startDate:"",adults:1,children:0,rooms:1,locationPid:N&&A?.id||""}),n(),N||z()},fill:"vertical"===s,disabled:d,children:"Clear"})]})})]})})},"HotelSearchLayoutVariant",()=>ew],663987)},558533,e=>{e.v({root:"IconSubmitButton-module__F1RpIW__root"})},646513,e=>{e.v({arrow:"Button-module__nI0M3a__arrow",description:"Button-module__nI0M3a__description",error:"Button-module__nI0M3a__error"})},546394,e=>{e.v({actions:"RangePicker-module__h75gGq__actions",content:"RangePicker-module__h75gGq__content"})},719558,e=>{e.v({active:"RangeSummary-module__fANWUW__active",end:"RangeSummary-module__fANWUW__end",part:"RangeSummary-module__fANWUW__part",root:"RangeSummary-module__fANWUW__root",selected:"RangeSummary-module__fANWUW__selected",start:"RangeSummary-module__fANWUW__start"})},947642,e=>{e.v({collapseSpacing:"ButtonNumberInput-module__gQ2KyW__collapseSpacing",error:"ButtonNumberInput-module__gQ2KyW__error",field:"ButtonNumberInput-module__gQ2KyW__field",fill:"ButtonNumberInput-module__gQ2KyW__fill",helper:"ButtonNumberInput-module__gQ2KyW__helper",icon:"ButtonNumberInput-module__gQ2KyW__icon",input:"ButtonNumberInput-module__gQ2KyW__input",label:"ButtonNumberInput-module__gQ2KyW__label",root:"ButtonNumberInput-module__gQ2KyW__root"})},192740,e=>{e.v({button:"GuestPickerInput-module__4jCWua__button",content:"GuestPickerInput-module__4jCWua__content",error:"GuestPickerInput-module__4jCWua__error"})},345347,e=>{e.v({clear:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__clear",contentWrapper:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__contentWrapper",error:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__error",field:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__field",fill:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__fill",helper:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__helper",icon:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__icon",input:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__input",label:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__label",loadingWrapper:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__loadingWrapper",option:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__option",root:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__root",withIcon:"HotelAndLocationSearchAutocompleteInput-module__ZRXr9a__withIcon"})},532452,e=>{"use strict";var t,a,o,l,r,i=((t={}).update="hotel-search-update",t.clear="hotel-search-clear",t.form="hotel-search-form",t.submit="hotel-search-submit",t.range="hotel-search-range",t.guests="hotel-search-guests",t.location="hotel-search-location",t.book="hotel-search-book-hotel",t),n=((a={}).hotelName="hotel-name",a.viewRoomsAndRatesSticky="view-rooms-and-rates-sticky",a.viewRoomsAndRates="view-rooms-and-rates",a),d=((o={}).book="book-rate",o.toggleRates="toggle-view-rates",o),s=((l={}).backToRoomsAndRates="back-to-rooms-and-rates",l.bookingSummaryToggle="booking-summary-toggle-details",l.bookingForm="booking-form",l.toggleAdditionalGuests="toggle-ad
1ditional-guests",l.bookingSubmit="booking-submit",l);(r={}).backToRoomsAndRates="back-to-rooms-and-rates",r.viewBookingHistory="view-booking-history",e.s(["HotelCheckoutTestId",()=>s,"HotelReviewTestId",()=>n,"HotelRoomsAndRatesTestId",()=>d,"HotelSearchTestId",()=>i])}]);

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.