1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0e50fc28-d01b-44b3-8e17-a7714e74fad0",e._sentryDebugIdIdentifier="sentry-dbid-0e50fc28-d01b-44b3-8e17-a7714e74fad0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[184],{41924:function(e,t,n){var r,a,s=n(52983);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.Z=e=>s.createElement("svg",i({width:24,height:24,viewBox:"0 0 24 24"},e),r||(r=s.createElement("path",{fill:"currentColor",d:"M15.44 10.06c-1.15-.72-2.59-.29-3.31.72-2.3-3.02-5.89-.43-5.17 2.87 0 .86 1.15 1.58 1.44 2.3.29.86 1.15 1.58 1.87 2.01 0 0 .43.57 1.15.43.43-.14.29-.29.14-.43-.43-.57-.72-1.01-1.15-1.44-.43-.57-.72-1.15-1.29-1.87-.29-.29-.57-.72-.57-1.29-.43-1.01 0-3.16 1.44-2.3.72.43 1.01 1.15 2.01 1.58v.14h.14c.86.29.72-.57.57-1.15.72-.72 1.72-.72 2.59 0 1.01 1.15 0 2.87-.72 4.02-.57.72-1.72 1.72-2.73 1.87v.14c3.16.14 7.04-5.32 3.59-7.62Z"})),a||(a=s.createElement("path",{fill:"currentColor",d:"M21.76 20.41c-.14-2.87-.26-5.41 0-8.41.14-.86-.14-1.65 0-2.66.14-.72.14-1.29.14-2.01.29-5.03-1-4.89-5.74-4.17.14-2.16-.57-1.72-2.3-1.87-.29-.29-.29-.43-.43-.72C13-.15 12.57.14 11.99 0c-.43 0-1.44 0-1.58.57l-.29.57c-.43-.14-1.01 0-1.44.14-.86 0-.86.86-.86 1.44-1.29-.14-3.73 0-5.17 0v-.14h-.14v.14c-.57.14-.72 1.01-.14 1.29-.86 6.75.14 13.37.14 20.12h.14c0-.29 0-.57.14-.86 4.31.57 9.62.57 14.08.72.86 0 2.58-.29 3.44 0 1.72 0 1.72-2.44 1.44-3.59ZM9.26 4.02V2.58c.57-.29 1.72.43 2.01-.57l.29-.57h.72c.29.43.43 1.15 1.15 1.15h1.29v.57h-.57v.14c.14 0 .43 0 .57.14v.43c-1.15.14-2.16.29-3.16.29-.57-.14-1.72-.14-2.3-.14Zm11.63 14.37c-.29 1.29 0 2.73-.43 4.02-.86-.29-3.01-.14-3.87-.14-1.58 0-3.74-.14-5.32 0-2.59.14-5.68-.21-8.27.22 0-1.44.14-.56 0-2 0-1.72.08-5.41.08-7.28.29-3.02.43-6.18 0-9.2h4.74c-.29 1.44.86 1.58 2.01 1.44.72 0 1.44 0 2.16.14 1.15-.14 2.3-.14 3.59-.14l.57-.29V3.72c1.15.14 3.44 0 4.45.29.14 2.44-.61 3.98-.11 5.98.14 2.3.5 5.5.39 8.4Z"})))},73708:function(e,t,n){var r,a=n(52983);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.Z=e=>a.createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24"},e),r||(r=a.createElement("path",{fill:"currentColor",d:"M23.81 10.313c-.28-1.614-.631-2.729-1.277-4.43-1.995-2.846-4.753-5.31-8.318-5.59-3.227-.836-6.939.147-9.418 2.333-1.174.983-2.67 2.01-3.227 3.594 0-1.262.425-2.802.088-3.99C1.496 1.746 1.775.587.866.572-.176.5.117 2.142.235 2.567c.161.396.058 1.555 0 1.907C.117 5.531.088 6.631 0 7.79c-.059.777 1.1 1.056 1.394.337.44.206.88.352 1.335.44 2.053.162 4.122-.117 6.117-.528v-.147c-.66-.146-1.408-.117-2.04-.19-1.598-.088-3.197-.91-4.796-.5.381-.175.821-.513 1.027-.777 1.364-1.467 3.829-3.11 5.75-3.814 2.523-.968 5.15-.69 7.658-.088 1.907 1.012 4.225 2.64 4.988 4.695 1.878 4.723.69 10.987-3.873 13.73-4.254 2.583-10.122 1.614-13.834-1.554-1.041-1.247-1.878-3.33-2.362-5.017-.146-.5-.719-2.802-.968-1.291-.293 1.423.323 3.843 1.042 5.207.293.88.939 2.025 1.687 2.597 5.12 4.489 14.435 4.152 18.645-1.423 1.643-2.817 2.45-6.015 2.025-9.169l.014.015Z"})))},35011:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(97458),a=n(16176),s=n(71020),i=n(52983),o=n(81641),l=n(82631),c=n(68910),u=n(17252),d=n(73708),m=n(99888),f=n(19330),h=n(28567),g=n.n(h),p=n(1168),y=n(85743),b=n(19722),x=n(44750),v=n(24174),w=n(11330),I=n(48054),j=n(85466),C=n.n(j),L=n(9186),S=n(21509),N=n(71284),k=n(44006);let E=e=>{var t;let{title:n,key:a}=function({params:e}){let t=_({params:e}),n=M({params:e}),a=Z({params:e}),s=e.search??(0,r.jsx)(o.Z,{defaultMessage:"Destination",id:"mqUPc5PfeS",description:"Recent search destination title while its canonical name loads"});return e.location?{title:t??s,key:"location"}:void 0!==e.poiLat&&void 0!==e.poiLng?{title:a??s,key:"poi"}
1:e.collection?{title:n??s,key:"collection"}:{title:(0,r.jsx)(o.Z,{...N.sY.anywhere}),key:"anywhere"}}({params:e.resultItem.params});return{title:n,subtitle:(t=Object.entries({dates:P({params:e.resultItem.params}),attendees:T({params:e.resultItem.params}),filters:R({params:e.resultItem.params}),collection:M({params:e.resultItem.params}),location:_({params:e.resultItem.params}),poi:Z({params:e.resultItem.params})}).filter(([e,t])=>e!==a&&void 0!==t).map(([,e])=>e),(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>(0,r.jsxs)(i.Fragment,{children:[t>0&&" \xb7 ",e]},t))}))}},P=({params:e})=>e.checkin&&e.checkout&&"flexible"!==e.availabilityMode?(0,r.jsxs)("span",{children:[(0,r.jsx)(w.C,{from:e.checkin,to:e.checkout,separator:"dash",alwaysShowYear:!1,className:"flex-nowrap"}),e.dateFlexibility?" +/-":void 0]}):e.from&&e.to&&e.minNights&&"flexible"===e.availabilityMode?(0,r.jsx)(o.Z,{defaultMessage:"Flexible dates ({nights})",id:"xqxCx6RSy0",description:"Recent search summary: flexible date range with minimum nights",values:{nights:(0,r.jsx)(I._,{count:e.minNights})}}):void 0,T=({params:e})=>{let t={adults:e.adults,children:e.children,infants:e.infants,pets:e.pets};if(!(C()(t,L.C)||Object.values(t).every(e=>void 0===e)))return(0,r.jsx)(v.t,{participants:t})},R=({params:e})=>{let t=(0,p.Z)(),{amenities:n,priceMin:a,priceMax:s,bedrooms:l,bathrooms:c,petsAllowed:u,withAnyGames:d,withAnyGardenFurniture:m,withAnyHvac:f,withAnyPool:h,withAnySkiing:g,withAnyWirelessTv:y,withAnyWorkSpace:b}=e,v=n||[],w=Object.entries(e).filter(([e,t])=>e.startsWith("withAny")&&"1"===t).map(([e])=>e),I=[...v.map(e=>x.P[e]).filter(Boolean),...w.map(e=>S.c_[e]).filter(Boolean)],j=(0,i.useMemo)(()=>{let e=Number(void 0!==a||void 0!==s),t=l?Number(l>0):0,r=c?Number(c>0):0;return e+t+r+Number("1"===u)+(0,S.yF)(n)+[d,m,f,h,g,y,b].filter(e=>"1"===e).length},[a,s,l,c,u,n,d,m,f,h,g,y,b]);if(0!==j)return(0,r.jsx)(o.Z,{defaultMessage:"{count, plural, one {{filterList}} =2 {{filterList}} other {# filters}}",id:"xhofWajTKW",description:"Filters",values:{count:j,labelCount:I.length,filterList:t.formatList(I.map(e=>(0,r.jsx)(o.Z,{...e},e.id)),{type:"conjunction"})}})};function M({params:e}){let[t,{data:n}]=(0,k.DX)();return(0,i.useEffect)(()=>{e.collection&&t({variables:{shortId:e.collection}})},[e.collection,t]),n?.collection?.name}function _({params:e}){let[t,{data:n}]=(0,k.UL)();return(0,i.useEffect)(()=>{e.location&&t({variables:{shortId:e.location}})},[e.location,t]),n?.location?.name}function Z({params:e}){return void 0!==e.poiLat&&void 0!==e.poiLng&&e.search?e.search:void 0}let A="h-1 w-1",B=({item:e,highlighted:t,current:n,index:a,lastIndex:s,lastInGroup:i,isDefaultSuggestions:l})=>{let c,m,h,g;let x=(0,p.Z)(),v=(0,b.H)();if(e!==f.km){switch(q(e)){case"Location":c=(g=e.resultItem).name,m=g.ancestors?.totalCount>0?(0,r.jsx)(o.Z,{defaultMessage:"{greatestAncestor}{bullet}{count} results",id:"isN1QeucIT",description:"Typeahead: Location subtitle result item with great ancestor",values:{greatestAncestor:g.ancestors?.nodes?.[0]?.name,count:g.listings.totalCount<=50?g.listings.totalCount:(0,y._5)(g.listings.totalCount)+"+",bullet:D}}):(0,r.jsx)(o.Z,{defaultMessage:"{count} results",id:"3UNUnRdEhu",description:"Typeahead: Location subtitle result item",values:{count:g.listings.totalCount<=50?g.listings.totalCount:(0,y._5)(g.listings.totalCount)+"+",bullet:D}}),h=(0,r.jsx)(u.Z,{className:[A].filter(Boolean).join(" ")});break;case"PointOfInterest":c=(g=e.resultItem).name,m=$(g,x.formatDisplayName(g.country,{type:"region"})),h=(0,r.jsx)(u.Z,{className:[A].filter(Boolean).join(" ")});break;case"Anywhere":c=(g=e).resultItem.name,m=(0,r.jsx)(o.Z,{defaultMessage:"{count} results",id:"3UNUnRdEhu",description:"Typeahead: Location subtitle result item",values:{count:g.resultItem.listings.totalCount<=50?g.resultItem.listings.totalCount:(0,y._5)(g.resultItem.listings.totalCount)+"+",bullet:D}}),h=(0,r.jsx)(u.Z,{className:[A].filter(Boolean).join(" ")});break;case"RecentSearch":{let t=E(g=e);c=t.title,m=t.subtitle,h=(0,r.jsx)(d.Z,{className:[A].filter(Boolean).join(" ")})}}return(0,r.jsx)(O,{first:0===a&&!l,last:a===s,lastInGroup:i,highlighted:t,"data-testid":`typeahead-item-${c}`,children:(0,r.jsxs)("div",{className:"z-10 flex items-start gap-3",children:[(0,r.jsx)("span",{className:["my-1 flex min-w-1 shrink-0 justify-start transition-transform ease-
1out-smooth",t&&"scale-105"].filter(Boolean).join(" "),children:h}),(0,r.jsxs)("div",{className:"grow-0",children:[(0,r.jsx)("p",{className:["line-clamp-1 text-f5",!v&&"sm:text-f7",n&&"font-bold"].filter(Boolean).join(" "),children:c}),(0,r.jsx)("p",{className:["text-f8 leading-4",n?"text-february":"text-february-muted"].filter(Boolean).join(" "),children:m})]})]})})}},O=(0,m.z)("div",({first:e,last:t,highlighted:n,lastInGroup:r})=>["relative flex items-center gap-3 border-b border-b-neutral-300 text-left no-underline min-h-[4.5rem] nl:-mx-3 nl:w-[calc(100%+2rem)] before:absolute before:inset-0 before:z-0 before:-mx-3 before:-my-[1px] before:border-y before:border-y-neutral-300 before:bg-neutral-100 before:opacity-0 before:transition-opacity before:ease-in-out before:content-['']",n&&"before:opacity-100",t&&"border-b-0 before:-mb-2 before:rounded-b-md before:border-b-0",e&&"before:-mt-2 before:rounded-t-md before:border-t-0",r&&"border-b-0"]),F=({index:e,lastIndex:t})=>{let[n]=(0,i.useState)(g()(3+7*Math.random(),3)),[a]=(0,i.useState)(g()(2+5*Math.random(),3));return(0,r.jsx)(O,{first:0===e,last:e===t,className:"animate-pulse",children:(0,r.jsxs)("div",{className:"z-10 flex items-start gap-3",children:[(0,r.jsx)("span",{className:"my-1 flex min-w-1 shrink-0 justify-start",children:(0,r.jsx)(u.Z,{className:[A].filter(Boolean).join(" ")})}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{style:{"--first-line-length":`${n}rem`},className:"my-1 h-1 w-[--first-line-length] rounded bg-neutral-200"}),(0,r.jsx)("span",{style:{"--second-line-length":`${a}rem`},className:"mb-1 h-[0.5rem] w-[--second-line-length] rounded bg-neutral-200"})]})]})})},$=(e,t)=>{switch(e.category){case"AREA":return(0,r.jsx)(o.Z,{defaultMessage:"Area{bullet}{country}",id:"VMst2xS08+",description:"Point of interest: Area with country",values:{country:t,bullet:D}});case"BUILDING":return(0,r.jsx)(o.Z,{defaultMessage:"Building{bullet}{country}",id:"Y1caMffPkK",description:"Point of interest: Building with country",values:{country:t,bullet:D}});case"CITY":case"LARGE_CITY":return(0,r.jsx)(o.Z,{defaultMessage:"City{bullet}{country}",id:"P4IdPiqZJL",description:"Point of interest: City with country",values:{country:t,bullet:D}});case"TRAVEL":return(0,r.jsx)(o.Z,{defaultMessage:"Travel{bullet}{country}",id:"jLW49gx083",description:"Point of interest: Travel with country",values:{country:t,bullet:D}});default:return}},D=(0,r.jsx)("span",{className:"mx-2",children:"\xb7"}),q=e=>e&&"object"==typeof e?e.resultItem.__typename:"undefined";var K=n(37863);let U=({results:e,allResults:t,highlightedIndex:n,currentIndex:a,lastIndex:s,getItemProps:i,isDefaultSuggestions:o,keyPrefix:l,title:c,action:u,loading:d})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K.m,{mounted:!!(c||u),className:"sm:-mx-3",children:(0,r.jsxs)("div",{className:"flex justify-end border-b border-b-neutral-300 py-2",children:[c&&(0,r.jsx)("h4",{className:"mr-auto text-f8 font-bold text-february-muted",children:c}),u&&u]})}),!d&&e.map((c,u)=>{let d="suggested"===l?t.findIndex(e=>C()(e,c)):u,m=-1!==d?d:u;return(0,r.jsx)("div",{...i({item:c,index:m}),className:"cursor-pointer",children:(0,r.jsx)(B,{highlighted:n===m,current:a===m,index:m,lastIndex:s,lastInGroup:u===e.length-1,item:c,isDefaultSuggestions:o})},`${l}-result-${m}`)})]}),z=(0,i.forwardRef)(({search:e,isDefaultSuggestions:t,results:n,loading:u,highlightedIndex:d,selectedItem:m,getItemProps:f,...h},g)=>{let p=(0,s.O)(),{clearSearches:y}=(0,l.t)(),b=n.findIndex(t=>!(!m||(0,c.pm)(m)||(0,c.pm)(t)||!e)&&((0,c.rP)(m)?(0,c.rP)(t):m.resultItem.id===t?.resultItem.id&&t?.resultItem.name===e)),{recentSearches:x,otherSearches:v,lastIndex:w}=(0,i.useMemo)(()=>{let e=n.filter(e=>(0,c.iv)(e)),r=n.filter(e=>!(0,c.iv)(e)),a=t&&e.length>0?n.length-1+(e.length-1):n.length-1;return{recentSearches:e,otherSearches:r,lastIndex:a}},[n,t]);return(0,r.jsxs)("div",{ref:g,...h,className:"px-3 py-2",children:[x.length>0&&(0,r.jsx)(U,{results:x,allResults:n,highlightedIndex:d,currentIndex:b,lastIndex:w,getItemProps:f,isDefaultSuggestions:t,keyPrefix:"recent",title:t?(0,r.jsx)(o.Z,{defaultMessage:"Recent searches",description:"Typeahead: Recent searches label",id:"mC82Tw5wdk"}):void 0,action:(0,r.jsx)(a.Q,{type:"button",onClick:()=>y(),className:"text-f8 text-february-muted",children:(0,r.jsx)(o.Z,{defaultMessage:"Clear recent searches",id:"p5N4FlTJyH",description:"Typeahead: Clear recent searches"})})}),(0,r.jsx)(U,{results:v,allResults:n,highlightedIndex:d,currentIndex:b,lastIndex:w,getItemProps:f,isDefaultSuggestions:t,keyPrefix:"suggested",title:t?(0,r.jsx)(o.Z,{defaultMessage:"Suggested searches",description:"Typeahead: Suggested searches label",id:"CTgBFucNwd"}):void 0,loading:u}),p&&(u||0===n.length)&&(0,r.jsx)(V,{placeholderCount:6})]})});z.displayName="LocationFilterSuggestions";let V=({placeholderCount:e=6})=>(0,r.jsx)(r.Fragment,{children:[...Array(e)].map((e,t,n)=>(0,r.jsx)("div",{children:(0,r.jsx)(F,{index:t,lastIndex:n.length-1})},`placeholder-${t}`))})},44006:function(e,t,n){n.d(t,{DX:function(){return f},Rb:function(){return l},U3:function(){return u},UL:function(){return p},gp:function(){return d},i0:function(){return g}});var r=n(2506),a=n(1477),s=n(64076);let i={};(0,r.Ps)` 2 query LocationSearch($query: String!, $first: Int) { 3 search(query: $query, first: $first) { 4 nodes { 5 ... on Location { 6 id 7 shortId 8 name 9 listings { 10 totalCount 11 } 12 } 13 ... on Collection { 14 id 15 shortId 16 name 17 listings { 18 totalCount 19 } 20 } 21 ... on PointOfInterest { 22 id 23 coordinates 24 name 25 category 26 country 27 } 28 } 29 } 30} 31 `,(0,r.Ps)` 32 query LocationSuggestion($shortId: String!) { 33 location(shortId: $shortId) { 34 id 35 shortId 36 name 37 listings { 38 totalCount 39 } 40 } 41} 42 `;let o=(0,r.Ps)` 43 query TotalListingsCount($inCollection: String) { 44 listings(filter: {inCollection: $inCollection}) { 45 totalCount 46 } 47} 48 `;function l(e){let t={...i,...e};return a.t(o,t)}(0,r.Ps)` 49 query LocationSuggestions { 50 locationSuggestions { 51 nodes { 52 id 53 shortId 54 name 55 listings { 56 totalCount 57 } 58 } 59 } 60} 61 `;let c=(0,r.Ps)` 62 query SearchSuggestions($query: String!, $first: Int, $inCollection: String) { 63 searchSuggestions(query: $query, first: $first, inCollection: $inCollection) { 64 nodes { 65 matchType 66 resultItem { 67 ... on Location { 68 id 69 shortId 70 name 71 listings { 72 totalCount 73 } 74 ancestors { 75 nodes { 76 id 77 name 78 } 79 totalCount 80 } 81 } 82 ... on PointOfInterest { 83 id 84 coordinates 85 name 86 category 87 country 88 } 89 } 90 } 91 } 92} 93 `;function u(e){let t={...i,...e};return s.a(c,t)}function d(e){let t={...i,...e};return a.t(c,t)}let m=(0,r.Ps)` 94 query CollectionTitle($shortId: String!) { 95 collection(shortId: $shortId) { 96 id 97 name 98 } 99} 100 `;function f(e){let t={...i,...e};return a.t(m,t)}let h=(0,r.Ps)` 101 query LocationTitle($shortId: String!) { 102 location(shortId: $shortId) { 103 id 104 name 105 } 106} 107 `;function g(e){let t={...i,...e};return s.a(h,t)}function p(e){let t={...i,...e};return a.t(h,t)}},71284:function(e,t,n){n.d(t,{a4:function(){return j},sY:function(){return C}});var r=n(97458),a=n(25802),s=n(95199),i=n(19330),o=n(62061),l=n(52983),c=n(1168),u=n(61716),d=n(13507),m=n(19722),f=n(89034),h=n(44006),g=n(41924),p=n(17252);let y=({selectedItem:e,...t})=>"object"==typeof e&&e&&e?.resultItem?.__typename==="Collection"?(0,r.jsx)(g.Z,{...t}):(0,r.jsx)(p.Z,{...t});var b=n(35011),x=n(68910),v=n(69643),w=n(29736);let I=["search","neLat","neLng","swLat","swLng","poiLat","poiLng","location"],j=({values:e,triggerOnEvent:t,onChange:n,onGoTo:u,fieldProps:g,submitOnClear:p,size:j,className:L,...S})=>{let N=(0,c.Z)(),k=(0,s.e)("lg"),E=(0,m.H)(!0),[P,T]=(0,l.useState)(0),R=(0,o.q)(),M=(0,l.useRef)(),_=(0,l.useRef)(),[Z,A]=(0,l.useState)(!1),[B,O]=(0,l.useState)(!1),{data:F}=(0,h.i0)({variables:{shortId:e?.location},skip:!e?.location}),$=F?.location?.name,{isOpen:D,openMenu:q,inputValue:K,getMenuProps:U,getInputProps:z,highlightedIndex:V,getItemProps:Y,selectedItem:W,selectItem:H,results:G,loading:Q,isDefaultSuggestions:J}=(0,v.Y)({inputRef:_,values:e,onChange:n,onGoTo:u,locationTitle:$,clearOptions:p?{immediateSubmit:!0,immediateSubmitKeys:I}:void 0}),X=!!($&&e?.location&&K===e?.search)&&$||K,ee=(0,w.Og)(e),et=(0,w.EU)(X),en=(0,l.useMemo)(()=>et?N.formatMessage(C.anywhere):ee?N.formatMessage(C.areaOnMap):N.formatMessage(C.placeholder),[N,ee,et]),er=(0,l.useMemo)(()=>!!X||ee||et||W&&!(0,x.pm)(W)||D||Z,[X,ee,et,W,D,Z]);return(0,l.useEffect)(()=>{navigator.userAgent.includes("iPhone OS 15")&&T(3)},[]),(0,l.useEffect)(()=>{M&&M.current.scrollTo(0,0)},[D,G]),(0,d.dh)(e=>{t&&"location"===e&&(_.current.focus(),q())},"triggerSearchFilter"),(0,d.dh)(()=>{t&&_.current.blur()},"closeAllSearchFilters"),(0,r.jsxs)("div",{onFocus:()=>A(!0),onBlur:()=>A(!1),onMouseEnter:()=>O(!0),onMouseLeave:()=>
107O(!1),...S,className:["relative h-full",L,"group"].filter(Boolean).join(" "),children:[(0,r.jsx)(f.R0,{active:D,hocus:B||Z,round:"left",size:j,clearActive:!!(X||ee),afterField:(0,r.jsx)("input",{type:"text","data-testid":"typeahead-input",...z({ref:_,value:et?"":X,placeholder:en,onKeyDown:e=>{"Tab"===e.key&&H(G[V]||i.km),"Enter"===e.key&&K&&K.length>2&&-1===V&&G[0]&&!Q&&H(G[0])}}),className:["absolute left-0 top-0 z-0 h-full w-full text-ellipsis border-0 bg-transparent pt-[1.25rem] font-medium rounded-l-3xl rounded-r focus:outline-none focus:ring-0",ee||et?"placeholder:text-february":"placeholder:text-transparent","lg"===j?"lg:pl-4.5 lg:text-f6 xl:pl-[4.5rem] xl:pt-3.5 xl:text-f5":"pl-[2.5rem] text-f7"].filter(Boolean).join(" ")}),onClear:()=>{H(w.EO),_.current?.focus()},className:[g?.className,...g?.tx??[]].filter(Boolean).join(" "),children:(0,r.jsxs)(f.L_,{size:j,className:"w-full",children:[(0,r.jsx)(y,{selectedItem:W,className:[...(0,f.iv)({size:j})].filter(Boolean).join(" ")}),(0,r.jsxs)(a.S,{initial:!1,children:[!er&&(0,r.jsx)("span",{"aria-hidden":!0,role:"presentation",className:[...(0,f.Yq)({isOpen:D})].filter(Boolean).join(" "),children:N.formatMessage(C.placeholder)},"placeholder"),er&&(0,r.jsx)("span",{"aria-hidden":!0,role:"presentation",className:[...(0,f.Iz)({size:j})].filter(Boolean).join(" "),children:N.formatMessage(C.label)},"label")]})]})}),(0,r.jsx)("div",{style:{"--viewport-height":`${R}px`,"--ios-bottom-offset":`${P}rem`},...U(),"aria-hidden":D?"false":"true",className:["left-0 top-full mt-[0.5rem] rounded-md bg-white absolute z-overlay shadow-lg transition duration-300 ease-out-slope sm:mx-1 sm:w-[calc(100%-8px)]",E&&k?"w-[300px]":"w-6",D&&(G.length>0||Q)?"pointer-events-auto translate-y-0 opacity-100":"pointer-events-none translate-y-[-10px] opacity-0"].filter(Boolean).join(" "),children:(0,r.jsx)(b.Z,{style:E?{maskImage:"linear-gradient(to bottom, rgba(256, 256, 256, 1) 0rem, rgba(256, 256, 256, 1) calc(100%-1rem), rgba(0, 0, 0, 0) 100%)"}:void 0,ref:M,search:K,results:G,loading:Q,highlightedIndex:V,selectedItem:W,getItemProps:Y,isDefaultSuggestions:J,className:["scroll-m-4",E&&"overflow-y-scroll scrollbar-hide",E&&(k?"max-h-[calc(var(--svh-full)-5rem)]":"max-h-[calc((var(--viewport-height)-5rem)-var(--ios-bottom-offset))]")].filter(Boolean).join(" ")})})]})},C=(0,u.vU)({placeholder:{defaultMessage:"Where do you want to go?",id:"LGUChp9QYV",description:"Filter: availability filter location placeholder"},label:{defaultMessage:"Where do you want to go?",id:"K8Z57tReSR",description:"Filter: availability filter location label"},areaOnMap:{defaultMessage:"Area on map",id:"V9G7IgU4c2",description:"Filter: availability filter location value (user exploring map)"},anywhere:{defaultMessage:"Anywhere",id:"59Jtuz2mRP",description:"Filter: availability filter location value (no specific area)"}})},68910:function(e,t,n){n.d(t,{E6:function(){return a},iv:function(){return o},pm:function(){return i},rP:function(){return s}});var r=n(19330);let a=e=>e?.matchType!=="CLEAR"&&e!==r.km&&e?.matchType!=="ANYWHERE"&&e?.matchType!=="RECENT_SEARCH",s=e=>e?.matchType!=="CLEAR"&&e!==r.km&&e?.matchType==="ANYWHERE",i=e=>e?.matchType==="CLEAR",o=e=>e!==r.km&&e?.resultItem?.__typename==="RecentSearch"},85792:function(e,t,n){n.d(t,{So:function(){return l},fc:function(){return h},pZ:function(){return f}});var r=n(52983),a=n(1168),s=n(82631),i=n(33211),o=n(44006);let l="anywhere",c=e=>{e.current&&clearTimeout(e.current)},u=({isParamsReady:e,isPrefetchCompleted:t,isPrefetching:n})=>e&&!t&&!n,d=({name:e,totalCount:t})=>({resultItem:{__typename:"Anywhere",shortId:"anywhere",id:"anywhere",name:e,listings:{totalCount:t}},matchType:"ANYWHERE"}),m=({searchSuggestions:e,totalListingsCount:t,anywhereName:n})=>[...(e?.searchSuggestions.nodes??[]).filter(e=>!!e),d({name:n,totalCount:t?.listings.totalCount??0})];function f(e=!1,t,n=1e3){let l=(0,a.Z)(),d=(0,i.C)(),{searches:f}=(0,s.t)(),h=(0,r.useRef)(!1),g=(0,r.useRef)(!1),p=(0,r.useRef)(),[y,b]=(0,r.useState)([]),[x,{loading:v}]=(0,o.Rb)(),[w,{loading:I}]=(0,o.gp)(),j=l.formatMessage({defaultMessage:"Anywhere",id:"59Jtuz2mRP",description:"Filter: availability filter location value (no specific area)"}),C=(0,r.useCallback)(async e=>
107{try{let[n,r]=await Promise.all([w({variables:{query:"",first:4,inCollection:t}}),x({variables:{inCollection:t}})]);if(e())return;b(m({searchSuggestions:n.data,totalListingsCount:r.data,anywhereName:j}))}catch(t){e()||console.error("Error fetching location suggestions:",t)}e()||(h.current=!0,g.current=!1)},[j,w,x,t]);return(0,r.useEffect)(()=>{let t=!1,r=()=>{g.current=!0,C(()=>t)};return(c(p),h.current=!1,g.current=!1,b([]),e)?r():u({isParamsReady:d,isPrefetchCompleted:h.current,isPrefetching:g.current})&&(g.current=!0,p.current=setTimeout(r,n)),()=>{t=!0,c(p)}},[n,C,e,d]),{suggestions:(0,r.useMemo)(()=>v||I||0===y.length?[]:[...(f??[]).slice(0,2),...y],[f,y,v,I]),loading:v||I}}function h(e,t=500){let[n]=(0,o.gp)(),[a]=(0,o.Rb)();(0,r.useEffect)(()=>{setTimeout(()=>{n({variables:{query:"",first:4,inCollection:e}}),a({variables:{inCollection:e}})},t)},[n,a,e,t])}},69643:function(e,t,n){n.d(t,{Y:function(){return b}});var r=n(19330),a=n(52983),s=n(78735),i=n(80215),o=n(1168),l=n(14875),c=n(28596),u=n(19722),d=n(44006),m=n(68910),f=n(85792),h=n(29736);let g=(e="")=>{switch(!0){case e.startsWith("/search"):return"search";case e.startsWith("/"):return"home";case e.startsWith("/p/"):return"location";case e.startsWith("/c/"):return"collection";default:return}}
107,p=e=>e?"object"==typeof e?e.resultItem.__typename:"string"==typeof e?e:"undefined":"undefined",y=e=>{let t=p(e);if(e===r.km)return"";switch(t){case"Collection":case"PointOfInterest":case"Location":return e.resultItem.name;case"Anywhere":return f.So}return""},b=({inputRef:e,values:t,immediateSuggestions:r,onChange:b,onGoTo:x,onSelectRecentSearch:v,clearOptions:w,locationTitle:I})=>{let j=(0,o.Z)(),C=(0,i.useRouter)(),L=(0,u.H)(!0),S=(0,c.jK)(),N=(0,h.Og)(t),{suggestions:k,loading:E}=(0,f.pZ)(r,t?.collection),P=(0,a.useRef)(),T=t?.location&&I?I:t?.search||"",[R,M]=(0,a.useState)(T),[_,Z]=function(e,{maxRunTimeout:t=4e3}={}){let n=(0,a.useRef)(),r=(0,a.useRef)(),s=(0,a.useCallback)(async()=>(n.current||(n.current=e().then(e=>(r.current=e,e)).catch(e=>{throw console.error("useDynamicCallback: Failed to execute import callback",e),e})),n.current),[e]);return[(0,a.useCallback)(async(...e)=>{try{var n;if(await (n=s(),Promise.race([n,new Promise((e,n)=>setTimeout(()=>n(void 0),t))])),r.current)return r.current(...e)}catch(e){throw console.error("useDynamicCallback: Failed to execute importCallback (or it timed out)",e),e}throw void 0},[s,t]),s]}(()=>n.e(7607).then(n.bind(n,77607)).then(e=>e.getBoundingBoxFromPoint)),A=R.length<2||(0,h.EU)(R),{data:B,loading:O}=(0,d.U3)({variables:{query:R,first:6,inCollection:t?.collection},skip:A}),F=A?E:O,$=(0,a.useMemo)(()=>A?[...k]:F?[]:R.length>=2&&B?.searchSuggestions.nodes?.length?B?.searchSuggestions.nodes:[],[A,F,R.length,B?.searchSuggestions.nodes,k]),D=e=>{l.c.track({event:"Search Query Result Selected",item:e,searchLocation:g(C.asPath.split("?")[0]),query:t?.search??""})},{isOpen:q,openMenu:K,getMenuProps:U,getInputProps:z,highlightedIndex:V,getItemProps:Y,selectedItem:W,selectItem:H,inputValue:G,setInputValue:Q,reset:J}=(0,s.Kb)({id:"search",onInputValueChange({inputValue:e,type:t}){if(t!==s.Kb.stateChangeTypes.InputKeyDownArrowDown&&t!==s.Kb.stateChangeTypes.InputKeyDownArrowUp&&t!==s.Kb.stateChangeTypes.ItemMouseMove){if(P.current&&clearTimeout(P.current),e.length<2){M(e);return}P.current=setTimeout(()=>{M(e)},100),e&&t===s.Kb.stateChangeTypes.InputChange&&l.c.track({event:"Search Query Entered",query:e,searchLocation:g(C.asPath)})}},items:$,itemToString:e=>(0,m.pm)(e)?"":(0,m.rP)(e)?f.So:(0,m.iv)(e)?"":"string"==typeof e?j.formatDisplayName(e,{type:"region"}):e?.resultItem.name,onSelectedItemChange:async({selectedItem:t,type:n})=>{let r=p(t),a=n!==s.Kb.stateChangeTypes.FunctionSelectItem;switch(r){case"Clear":b?.({search:void 0,location:void 0,neLng:void 0,neLat:void 0,swLng:void 0,swLat:void 0,poiLat:void 0,poiLng:void 0},w);break;case"Location":a&&(0,m.E6)(t)&&"Location"===t.resultItem.__typename&&b?.({search:t.resultItem.name,location:t.resultItem.shortId,neLng:void 0,neLat:void 0,swLng:void 0,swLat:void 0,poiLat:void 0,poiLng:void 0,...L?{}:{view:S}});break;case"PointOfInterest":if(a&&(0,m.E6)(t)&&"PointOfInterest"===t.resultItem.__typename){let e;try{e=await _(t.resultItem)}catch(e){throw console.error("Could not get bounding box from PointOfInterest",e),e}b?.({search:t.resultItem.name,location:void 0,neLng:e.neLng,neLat:e.neLat,swLng:e.swLng,swLat:e.swLat,poiLat:t.resultItem.coordinates[0],poiLng:t.resultItem.coordinates[1],direction:void 0,cursor:void 0,...L?{}:{view:S}})}break;case"Anywhere":b?.({search:f.So,location:void 0,neLng:void 0,neLat:void 0,swLng:void 0,swLat:void 0,poiLat:void 0,poiLng:void 0,...L?{}:{view:S}});break;case"RecentSearch":a&&(0,m.iv)(t)&&(D(t),b?.(t.resultItem.params,{replace:!0,immediateSubmit:!0}),v?.())}(a&&(0,m.E6)(t)||(0,m.rP)(t))&&(D(t),x?.()),e?.current?.blur()},stateReducer(e,t){switch(t.type){case s.Kb.stateChangeTypes.InputKeyDownEnter:if(""===t.changes.inputValue)return{...t.changes,isOpen:!0};return t.changes;case s.Kb.stateChangeTypes.ItemClick:return Z(),t.changes;case s.Kb.stateChangeTypes.InputKeyDownArrowDown:case s.Kb.stateChangeTypes.InputKeyDownArrowUp:return{...t.changes,inputValue:void 0!==t.changes.highlightedIndex?y($[t.changes.highlightedIndex]):""};case s.Kb.stateChangeTypes.InputBlur:{let n=e.highlightedIndex;if(!F&&n>=0)return{...t.changes,selectedItem:$[n],inputValue:y($[n])};if(!F&&$[0]&&!A)return{...t.changes,selectedItem:$[0],inputValue:y($[0])};if((0,m.E6)(t.changes.selectedItem))return{...t.changes,inputValue:t.changes.selectedItem.resultItem.name};if((0,m.rP)(t.changes.selectedItem))return{...t.changes,inputValue:f.So};return{...t.changes,inputValue:""}}default:return t.changes}}});return(0,a.useEffect)(()=>()=>{P.current&&clearTimeout(P.current)},[]),(0,a.useEffect)(()=>{q&&G!==(t?.search||"")||(0,a.startTransition)(()=>{Q(T),M(T)})},[G,q,Q,T,t?.search]),(0,a.useEffect)(()=>{N&&J()},[N,J]),(0,a.useEffect)(()=>{t?.search||t?.location||t?.poiLat||t?.poiLng||N||!W||(J(),Q(""))},[N,J,W,Q,t?.location,t?.poiLat,t?.poiLng,t?.search]),(0,a.useEffect)(()=>
107{if(W&&!(0,m.iv)(W)||!G||q)return;let e=$.find(e=>G===f.So?(0,m.rP)(e):!!(0,m.E6)(e)&&("Location"===e.resultItem.__typename?e.resultItem.shortId===t?.location&&e.resultItem.name===G:"PointOfInterest"===e.resultItem.__typename&&e.resultItem.coordinates[0]===t?.poiLat&&e.resultItem.coordinates[1]===t?.poiLng&&e.resultItem.name===G));e&&H(e)},[W,G,H,$,t?.location,t?.collection,t?.poiLat,t?.poiLng,q]),{isOpen:q,openMenu:K,inputValue:G,getMenuProps:U,getInputProps:z,highlightedIndex:V,getItemProps:Y,selectedItem:W,selectItem:H,results:$,loading:F,isDefaultSuggestions:A}}},29736:function(e,t,n){n.d(t,{EO:function(){return i},EU:function(){return s},Og:function(){return a}});var r=n(85792);function a(e){return"number"==typeof e?.neLat&&"number"==typeof e?.neLng&&"number"==typeof e?.swLat&&"number"==typeof e?.swLng&&void 0===e?.poiLat&&void 0===e?.poiLng}function s(e){return e===r.So}let i={resultItem:{__typename:"Clear"},matchType:"CLEAR"}},89034:function(e,t,n){n.d(t,{Iz:function(){return g},L_:function(){return m},R0:function(){return d},S0:function(){return u},Yq:function(){return f},iv:function(){return h},n6:function(){return p}});var r=n(97458),a=n(83461),s=n(99888),i=n(85466),o=n.n(i),l=n(80215),c=n(52983);function u({values:e,onChange:t}){let n=(0,c.useRef)(e),r=(0,c.useRef)(!1),[a,s]=(0,c.useState)(!0),i=(0,c.useCallback)((n,a)=>
107{if(!n)return;let i="function"==typeof n?n(e):{...e,...n};if(r.current||=e.pets!==i.pets||e.petsAllowed!==i.petsAllowed,t){if(o()(i,e)){a?.clearPetSelectionAttribution&&t(i,a);return}s(!1),t(i,a)}},[e,t]),l=(0,c.useCallback)(()=>{n.current={...e},r.current=!1,s(!0)},[e]),u=(0,c.useCallback)(()=>{i(n.current,{clearPetSelectionAttribution:r.current}),r.current=!1,s(!0)},[i]);return{update:i,rollbackToMarked:u,markRollbackState:l,isPrestine:a}}let d=(0,c.forwardRef)(({active:e,hocus:t,round:n="none",size:i,clearActive:o,onClick:l,onClear:c,afterField:u,children:d,className:m,...f},h)=>(0,r.jsxs)("div",{className:"flex h-full w-full max-w-full items-center",children:[(0,r.jsxs)("button",{ref:h,tabIndex:l?void 0:-1,onClick:l,...f,className:["h-full shrink grow overflow-hidden",m,"group",!o&&"-mr-3"].filter(Boolean).join(" "),children:[(0,r.jsx)("span",{className:["absolute inset-0 block rounded transition-all duration-200 ease-out-smooth before:pointer-events-none before:absolute before:inset-0 before:rounded before:shadow-inputFocus",e||t?"shadow-lg before:opacity-100":"before:opacity-0 group-hocus:shadow-lg group-hocus:before:opacity-100",(0,s.b)("ring-1 ring-transparent group-hocus:ring-february-muted",t&&"ring-1 ring-february-muted",e&&"ring-1 ring-february"),"right"===n&&"rounded-r-[calc(var(--search-filter-height)/2)] before:rounded-r-[calc(var(--search-filter-height)/2)]","left"===n&&"rounded-l-[calc(var(--search-filter-height)/2)] before:rounded-l-[calc(var(--search-filter-height)/2)]"].filter(
107Boolean).join(" ")}),d]}),u,(0,r.jsx)("button",{tabIndex:o?0:-1,onClick:c,className:["relative z-10 shrink-0 grow-0 rounded-full grid place-content-center text-neutral-300 transition-[opacity,color] duration-200 ease-in-out hocus:text-neutral-600",o?"opacity-100":"opacity-0","lg"===i?"mr-2.5 h-[1.25rem] w-[1.25rem] xl:mr-3 xl:h-1.5 xl:w-1.5":"mr-2.5 h-1 w-1"].filter(Boolean).join(" "),children:(0,r.jsx)(a.Z,{className:["!m-0","lg"===i?"h-[0.875rem] w-[0.875rem] xl:h-1 xl:w-1":"h-[0.75rem] w-[0.75rem]"].filter(Boolean).join(" ")})})]}));function m({size:e,className:t,...n}){let{locale:a}=(0,l.useRouter)();return(0,r.jsx)("span",{...n,className:["grid items-start justify-items-start overflow-hidden py-2 pl-3 gap-x-2 gap-y-[0.125rem] [grid-template-columns:1rem_1fr] [grid-template-rows:0.9rem_1rem] text-left text-f7 leading-none [mask-image:linear-gradient(to_right,rgba(0,0,0,1)_calc(100%-1rem),transparent_100%)]",t,"lg"===e&&"lg:[grid-template-rows:1rem_1.2rem] xl:gap-x-3 xl:gap-y-0 xl:pl-4 xl:[grid-template-columns:1.5rem_1fr]","lg"===e&&(0,s.b)("lg:text-f6 xl:text-f5","fr"===a&&"lg:text-f6 lg:[font-size:0.8rem] xl:text-f5 xl:[font-size:0.95rem]")].filter(Boolean).join(" ")})}d.displayName="FilterField";let f=({isOpen:e})=>["col-start-2 row-span-2 row-start-1 block self-center whitespace-nowrap will-change-transform enter:animate-slide-custom-in enter:[animation-delay:200ms] enter:[--tw-slide-custom-y:0.125rem] enter:[animation-duration:200ms] leave:animate-slide-custom-out leave:[--tw-slide-custom-y:0.125rem] leave:[animation-duration:200ms]",e?"text-neutral-700":"text-february-muted"],h=({size:e}={})=>["col-start-1 row-span-2 row-start-1 h-1 w-1 self-center","lg"===e?"h-1 w-1 xl:h-1.5 xl:w-1.5":"h-1 w-1"],g=({size:e}={})=>["col-start-2 row-start-1 block self-start whitespace-nowrap text-f8 text-february-muted will-change-transform enter:animate-slide-custom-in enter:[animation-delay:200ms] enter:[--tw-slide-custom-y:0.125rem] enter:[animation-duration:200ms] leave:animate-slide-custom-out leave:[--tw-slide-custom-y:0.125rem] leave:[animation-duration:200ms]","lg"===e&&"lg:text-f7"],p=()=>["col-start-2 row-start-2 block whitespace-nowrap font-medium will-change-transform enter:animate-slide-custom-in enter:[animation-delay:200ms] enter:[--tw-slide-custom-y:0.125rem] enter:[animation-duration:200ms] leave:animate-slide-custom-out leave:[--tw-slide-custom-y:0.125rem] leave:[animation-duration:200ms]"]}}]); 108//# sourceMappingURL=184-3cc5eb0b20a78270.js.map
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.