PageSourceSearch

https://landfolk.com/_next/static/chunks/pages/my/collections/[collectionId]-044caa010396fc99.js

js landfolk.com collected 2026-09-24 22:57:24 UTC 65,301 bytes, 12 lines download raw bytes

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]="0e2a8e88-4790-4957-9793-c4642221b274",e._sentryDebugIdIdentifier="sentry-dbid-0e2a8e88-4790-4957-9793-c4642221b274")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1267,595],{18477:function(e,t,i){"use strict";var n,a=i(52983);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}t.Z=e=>a.createElement("svg",l({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M23.724 9.77c.12.655.242 1.313.242 2.023.06.517.03 1.128 0 1.73-.02.428-.041.852-.03 1.232.117 1.787-.043 3.907-.972 5.388-.407.668-1.133 1.119-1.816 1.438-.537.509-2.236.843-3.064.567-.567.043-4.531-.116-3.035-.8.73-.21 1.558-.266 2.385-.323 1.919-.133 3.833-.265 4.513-2.305.436-.931.404-1.833.368-2.816-.008-.228-.017-.46-.02-.698-.008-.577.006-1.185.02-1.807.033-1.413.067-2.89-.165-4.191a21.59 21.59 0 0 0-1.798.495c-.61.187-1.217.373-1.861.507-.27 0-.519-.014-.761-.027-.518-.027-1.004-.053-1.578.056-.85-.118-1.699-.262-2.547-.407a68.013 68.013 0 0 0-3.102-.48c-.594-.127-1.03.006-1.56.169-.131.04-.268.082-.415.122-.236.023-.456.026-.665.029-.604.009-1.128.016-1.731.48-1.067.327-2.141-.037-3.195-.394-.396-.133-.789-.266-1.177-.362.378 1.569.334 2.803.218 4.415-.06.835.04 1.746.135 2.623.043.39.085.772.112 1.139-.163.887-.002 1.043.462 1.495.075.074.158.155.25.248.508.697 1.336.77 2.12.828.948.34 1.827.39 2.812.445l.078.005c.624.116 2.803 1.713.624 1.481-.363-.073-.74-.102-1.074-.043-.706.253-2.001.028-2.687-.092a88.97 88.97 0 0 0-.058-.01c-1.96.174-3.428-1.104-4.372-2.527-.551-2.774-.435-5.257-.058-8.06-.595-3.69-.857-8.453 3.79-9.353.47-.162.906-.049 1.332.061.416.108.823.213 1.24.055l-.004-.102A38.922 38.922 0 0 1 6.654.712c-.014-.944 1.453-.944 1.453 0l.008.248c.011.346.02.637.02 1.015 1.359-.052 2.574.039 3.82.131.485.037.976.073 1.482.102.12-.006.144.002.166-.002.04-.007.074-.05.632-.274.668-.175 1.119-.102 1.7 0-.049-.308.005-.577.055-.83.026-.128.05-.253.06-.376.277-1.467 1.961-.435 1.366.668-.073.233-.015.509.043.741.45.105.937.13 1.431.154.94.046 1.904.094 2.694.703l.086.07c.67.547 1.2.98 1.744 1.745.27.571.206 1.135.142 1.702-.032.284-.065.568-.055.854-.063.852.08 1.627.223 2.407ZM18.228 8.55c1.02-.083 2.037-.165 2.993.076l-.015.014c.131.015.465.058.843.131-.076-.646-.031-1.436.009-2.145.013-.247.027-.484.034-.702.055-.337-.136-.479-.375-.657-.08-.06-.165-.123-.25-.2-.676-.905-1.632-.938-2.616-.971-.452-.016-.91-.032-1.348-.132-.064.223-.049.514-.034.811.033.653.067 1.337-.721 1.396-.912-.08-.806-1.125-.724-1.93.022-.207.041-.398.041-.553-.663-.205-1.312-.082-1.96.041-.503.095-1.004.19-1.51.133-1.555-.203-2.949-.32-4.517-.32a5.573 5.573 0 0 1-.015 1.903c.015.944-1.452.944-1.452 0l.035-.327c.056-.513.091-.83-.006-1.401-.41.115-.91-.027-1.353-.153a6.038 6.038 0 0 0-.477-.123c-.654 0-1.394.363-1.946.668-.586.324-.817 1.002-1.037 1.643-.085.25-.169.494-.27.71-.027.706.057 1.547.127 2.253l.018.187c1.031-.334 2.382-.64 3.427-.334.247.024.527-.015.816-.054.408-.056.835-.115 1.218-.004.282.07.505.181.712.284.386.192.713.355 1.263.166 1.107.022 2.101-.166 3.043-.345.874-.165 1.702-.322 2.534-.294 1.113.423 2.315.326 3.513.229Zm-2.163 10.46-.101.101v.015c-.337-.239-.685-.468-1.034-.698-.797-.525-1.597-1.052-2.263-1.698-.099 1.595-.139 2.894-.17 3.913-.061 1.986-.09 2.912-.455 2.912-.262 0-.3-1.154-.372-3.316-.031-.953-.07-2.103-.136-3.437-.373.232-.777.549-1.188.871-.772.606-1.572 1.233-2.254 1.366.302-1.012.995-1.775 1.687-2.537.44-.484.879-.968 1.218-1.515.42-1.046 1.83-.61 1.946.261 1.03.5 1.673 1.53 2.302 2.536.267.427.53.85.82 1.226Z",clipRule:"evenodd"})))},83461:function(e,t,i){"use strict";var n,a=i(52983);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}t.Z=e=>a.createElement("svg",l({width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n||(n=a.createElement("path",{fill:"currentColor",d:"M4.58 11.38c.32.32.84.32 1.16 0l2.22-2.22 2.2 2.2a.848.848 0 1 0 1.2-1.2L9.2 8l2.2-2.2a.848.848 0 1 0-1.2-1.2L8 6.8 5.8 4.6a.849.849 0 0 0-1.2 1.2L6.8 8l-2.22 2.22a.82.82 0 0 0 0 1.16Zm-2.24 2.28C.78 12.1 0 10.213 0 8s.78-4.1 2.34-5.66C3.9.78 5.787 0 8 0s4.1.78 5.66 2.34C15.22 3.9 16 5.787 16 8s-.78 4.1-2.34 5.66C12.1 15.22 10.213 16 8 16s-4.1-.78-5.66-2.34Z"})))},58416:function(e,t,i){"use strict";var n,a=i(52983);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}t.Z=e=>a.createElement("svg",l({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M.77 6.415c1.717 2.17 5.932.193 4.587-2.596-.975-1.388-2.101-2.253-3.694-1.594-.316-.027-.851.715-.796 1.058-.062.194.018.1.108-.007.05-.06.104-.124.139-.144.961-.728 2.499.604 2.883 1.442.55 1.622-1.647 2.446-2.609 1.32a9.607 9.607 0 0 0-.24-.351C.727 4.942.2 4.195.497 3.42a1.08 1.08 0 0 1 .054-.174c.049-.132.085-.23-.095-.06-.893.935-.302 2.323.33 3.23H.77ZM3.724 10.4c-.044 0-.127-.028-.204-.054-.138-.047-.257-.087-.098.054.195.206.384.501.49.67.044.068.075.115.086.127.261.482.237 1.027.21 1.633l-.004.098c-.038.626-.447.
1651-.854.676-.174.011-.347.022-.491.08-.467.137-.7.137-1.126-.124-1.291-.948-.81-3.173.892-3.27.151-.027.412-.027.577 0 .343.055.041-.123-.137-.192-1.058-.495-2.664.22-2.87 1.388-.66 2.926 3.24 5.206 5.108 2.61.961-1.402-.151-3.545-1.593-3.668l.014-.028Zm12.803 9.09c2.195-.237 4.428-.478 6.324.777h-.027c1.112.728-.07 1.181-.838.81a9.565 9.565 0 0 0-.964-.066c-.62-.022-1.255-.044-1.837-.277-.555-.17-1.066.01-1.574.19-.396.14-.79.28-1.2.25-1.05.015-2.105-.02-3.162-.055-1.748-.059-3.498-.117-5.227.054a2.982 2.982 0 0 1-.7 0c-.33-.068 0-1.181.26-1.319 1.339-.988 2.59-.694 3.867-.395.87.205 1.753.412 2.683.217.78-.011 1.585-.098 2.395-.186ZM3.764 17.805s-.151-.082-.247-.124c.128.047.247.11.356.188a2.42 2.42 0 0 0-.123-.064h.014Zm.11.064c1.71.95 1.861 3.8-.138 4.538C1.65 23.41-.712 20.786.208 18.848c.357-1.374 2.608-1.58 3.048-1.264-1.016-.357-2.142.44-2.266 1.47-.357 1.484 1.51 2.157 2.746 2.006 1.334-.4 1.208-2.438.137-3.192Zm-.37-.174h.013l-.057-.021c-.07-.027-.09-.034.043.021Zm12.294-5.877c-2.503-.014-5.005-.028-7.503-.014-.11 0-.232-.008-.358-.016-.598-.039-1.3-.085-1.345.675.044.712.68.708 1.27.705.151 0 .299-.001.433.01 3.337 0 6.7 0 10.037.027.812-.02 1.598-.008 2.383.004.863.012 1.724.025 2.616-.004.892 0 .892-1.387 0-1.373h-.014c-2.507.013-5.014 0-7.519-.014ZM9.262 5.289c-.542-.194-1.08-.387-1.626-.437h.014c-.046-.01-.139-.008-.227-.006-.177.003-.34.006-.103-.077.728-.508 1.813-.522 2.637-.522 1.352.091 2.13-.006 3.294-.151.242-.03.5-.063.784-.096 1.478.134 2.944.261 4.407.388 1.54.134 3.079.268 4.628.409.398.041 0 .123-.206.15-1.512.346-3.044.326-4.576.305-1.64-.022-3.28-.043-4.899.383-.7.082-1.414.11-2.17.11-.664.007-1.312-.225-1.957-.456Z",clipRule:"evenodd"})))},15736:function(e,t,i){"use strict";var n,a=i(52983);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}t.Z=e=>a.createElement("svg",l({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M23.914 17.689a50.722 50.722 0 0 1-.097-2.053c.097-.403.125-1.124.056-1.485-.194-1.29.097-2.65-.042-3.967-.07-1.443.194-2.983.028-4.398.125-1.249-.153-2.816-1.72-2.83h.084c-1.79-.111-3.717-.694-5.561-.735-.209-.084-1.054-.306-1.415-.153-.943.264-1.858.75-2.76 1.11-1.511.388-2.981.36-4.465.818a3.736 3.736 0 0 0-.07-.444c-.069-.555-.041.278-.152.444-.319-.222-1.082-.471-1.484-.458-.68-.208-1.414-.61-2.136-.72-.471-.195-2.316-1.083-2.953-.736-1.36.333 3.161 2.22 3.564 2.33.36.333 1.553.666 1.83.708.208.07.5.333.804.388-.457 1.61-.083 3.302.028 4.897-.277 3.122-.804 6.257.194 9.24-.943-.5-2.274-.305-3.259-.624-1.109-.458-2.454-.292-3.37-1-.36-3.814 1.235-7.685.5-11.555C1.546 4.843.894 3.58.81 2.04.67 1.68.367 3.858.353 4.08c-.07 1.415-.43 3.19-.264 4.55-.194 1.567-.027 3.093.084 4.633.055 1.277.346 2.498.36 3.788-.18.666.125 1.83 1.082 1.79h-.056c1.65.499 3.426 1.456 5.048 1.872.208.18.888.527 1.262.458.07.194 0 .721.056.333 0-.097.027-.222.041-.333 1.027-.125 2.025-.666 2.968-.999 1.553-.388 3.051-.513 4.577-.902 1.15.25 1.137.18 2.246.236.444.139.985.222 1.428.18 1.11-.041 2.275.403 3.454.098.29-.042.513 0 .79.027.97.084-.735-.291-.763-.319-1.872-.194-3.8-1.207-5.644-1.456-.749-.18-1.553-.625-2.33-.209-1.11.222-2.219.403-3.314.763-1.096.056-2.122.625-3.148.944.208-1.346-.194-2.802.166-4.134.32-.43.486-1.166.43-1.679 0-2.705-.236-5.507-.527-8.199 1.193-.388 2.469-.5 3.647-.874 1.248-.027 2.386-.652 3.592-.943-.693 2.164-.055 4.55-.444 6.659-.263.666-.485 1.859-.471 2.566.042 1.221.569 2.484.93 3.635.055.111-.015.597.11.277.194-.346.416-.915.375-1.081-.014-.819.485-1.554.11-2.373-.29-.735.375-1.512.264-2.261-.097-2.456-.541-5.05-.666-7.436.943.389 2.011.097 2.94.305 1.193.347 2.607.084 3.703.541.152 1.61.083 3.233-.153 4.842-.097.888-.083 1.859-.277 2.76-.194 1.013.028 1.957.028 2.886-.167 1.304.263 2.636.652 3.83 1.359 2.094 1.497.055 1.275-1.18v.014Z",clipRule:"evenodd"})))},10724:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my/collections/[collectionId]",function(){return i(7573)}])},11847:function(e,t,i){"use strict";i.d(t,{Q:function(){return l}});var n=i(52983),a=i(40862);function l(e,t){let i=(0,a.Ou)({__typename:"Story",id:e.id,shortId:e.shortId,cover:e.cover},t),l=(0,n.useCallback)((e={notify:!0})=>i.toggle(e),[i]);return{...i,toggle:l}}},33223:function(e,t,i){"use strict";i.d(t,{q:function(){return c}});var n=i(97458),a=i(33389),l=i(52983),s=i(11847),r=i(95517),o=i(16063);function c({id:e,shortId:t,title:i,intro:c,cover:d,listId:u,slug:f}){let{isFavorited:h,isLoading:m,toggle:p}=(0,s.Q)({id:e,shortId:t,cover:d},"story-inspiration-card"),g=(0,l.useCallback)(()=>{p({listId:u,notify:!u})},[u,p]);return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(a.l,{href:o._j.story(t,f),cover:{url:d.url,proxy:d.proxy},header:i,body:c}),(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),g()},disabled:m,className:"absolute right-3 top-3 z-20 grid h-2 w-2 place-content-center rounded-full bg-white/90 shadow-sm disabled:opacity-60",children:(0,n.jsx)(r.P,{toggled:h,loading:m,size:1,animate:!0,className:"h-1 w-1"})})]})}},2075:function(e,t,i){"use strict";i.d(t,{S:function(){return p}});var n=i(97458),a=i(95199),l=i(52983),s=i(1168),r=i(88195),o=i(14875),c=i(9186),d=i(2506),u=i(64593),f=i(64076);let h={},m=(0,d.Ps)`
2    query MapListing($shortId: String!, $filter: ListingsFilterInput) {
3  listing(shortId: $shortId) {
4    ...ListingCardBase
5    bookingQuote(filter: $filter) {
6      ...ListingCardBookingQuote
7    }
8  }
9}
10    ${u.OI}
11${u.jP}`;function p({listing:e,shortId:t,guests:i,filter:d,hideDates:u,active:p=!0,trackView:g=p,disableGallery:b,disableImageHoverScale:x,stabilizeImageFavoriteToggle:v,listName:y,listId:j}){let w=(0,s.Z)(),k=(0,a.e)("sm"),N=(0,l.useRef)(),{data:C,loading:M}=function(e){let t={...h,...e};return f.a(m,t)}({variables:{shortId:e?.shortId??t??"",filter:d},skip:!t||!p}),S=t?C?.listing:e;return((0,l.useEffect)(()=>{t&&g&&C?.listing&&y&&N.current!==C.listing.id&&(N.current=C.listing.id,o.c.track({event:"Listing Map Card Viewed",listing:C.listing,listName:y,listId:j}))}
11,[C?.listing,j,y,t,g]),p&&S&&!M)?(0,n.jsx)(r.dF,{listName:y,listId:j,variant:"detailed",trackingCardType:"map",sizes:`${a.B.sm} 104px, 204px`,hideDates:u,priority:p,info:k?r.wr.filter(e=>"location"!==e):r.wr,...S,disableGallery:b??k,disableImageHoverScale:x,stabilizeImageFavoriteToggle:v,participants:{...c.C,...i},dates:{checkin:d?.availableIn?.checkinOn,checkout:d?.availableIn?.checkoutOn},buttonText:w.formatMessage({defaultMessage:"Explore",id:"q8u8is9RUs",description:"Listing popup on p2 map: explore the summer house button"}),titleStyles:["!px-3 !pt-3"],contentStyles:["!px-3"],footerStyles:["!px-3 !pb-3"],onClick:e=>{!(e.target instanceof Element&&e.target.closest("button"))&&C?.listing&&y&&o.c.track({event:"Listing Map Card Clicked",listing:C.listing,listName:y,listId:j})},localRecommendations:S.localRecommendations}):(0,n.jsx)(r.dF,{placeholder:!0,variant:"detailed",shortId:t,titleStyles:["!px-3 !pt-3"],contentStyles:["!px-3"],footerStyles:["!px-3 !pb-3"],buttonText:w.formatMessage({defaultMessage:"Explore",id:"q8u8is9RUs",description:"Listing popup on p2 map: explore the summer house button"})})}},12577:function(e,t,i){"use strict";i.d(t,{Gc:function(){return f}});var n=i(97458),a=i(43547),l=i(52983),s=i(81641),r=i(44664),o=i(93207),c=i(64132),d=i(91352);let u="https://calendly.com/jonas-overgaard-landfolk/a-phone-call-with-jonas";function f({context:e,guests:t,trackingId:i}){let a=function({context:e,guests:t}){let i=(t?.adults??0)+(t?.children??0)>=10;return"search-results"===e?i?"search-results-notification":void 0:i?"guest-picker-notification":"quiet-link"}({context:e,guests:t}),s=function(e){switch(e){case"booking-widget":return"group_booking_concierge_booking_widget_clicked";case"search-filter":return"group_booking_concierge_search_filter_clicked";case"search-results":return"group_booking_concierge_search_results_clicked"}}(e),r=i??e,[d,u]=(0,l.useState)(!1),f=a&&`group_booking_concierge_${a}`,{ref:g}=(0,c.j)(a&&"quiet-link"!==a&&!d&&f?{elementId:f,relation:"group_booking_concierge",shortId:r}:void 0);if(!a||d)return;let b=()=>{(0,o.j)({actionClicked:{actionId:s,context:e,elementId:f,relation:"group_booking_concierge",shortId:r}})};
11return(0,n.jsx)("div",{ref:g,className:[].filter(Boolean).join(" "),children:"quiet-link"===a?(0,n.jsx)(h,{onClick:b}):"search-results-notification"===a?(0,n.jsx)(p,{onClick:b,onClose:()=>u(!0)}):(0,n.jsx)(m,{onClick:b})})}function h({onClick:e}){return(0,n.jsxs)("div",{className:"mt-3 border-t border-neutral-300 pt-3 text-f7",children:[(0,n.jsx)(s.Z,{defaultMessage:"Have a complex request?",id:"+td0GPNbVU",description:"Group booking concierge: default guest picker helper text"})," ",(0,n.jsx)(b,{onClick:e,children:(0,n.jsx)(s.Z,{defaultMessage:"Contact Landfolk",id:"U2mGuyJaIK",description:"Group booking concierge: default guest picker CTA"})})]})}function m({onClick:e}){return(0,n.jsxs)(a.P,{size:"small",headline:(0,n.jsx)(s.Z,{defaultMessage:"Planning for 10+ guests?",id:"ECbTk81+jL",description:"Group booking concierge: notification headline"}),className:"mt-3",children:[(0,n.jsx)("p",{className:"mb-2",children:(0,n.jsx)(s.Z,{defaultMessage:"Landfolk can help you find homes that fit the full group and any special needs.",id:"RKGD2Bc9cr",description:"Group booking concierge: guest picker notification body"})}),(0,n.jsx)(g,{onClick:e,children:(0,n.jsx)(s.Z,{defaultMessage:"Book a quick call",id:"1tRvNCdYZi",description:"Group booking concierge: guest picker notification CTA"})})]})}function p({onClick:e,onClose:t}){return(0,n.jsxs)(a.P,{size:"small",onClose:t,headline:(0,n.jsx)(s.Z,{defaultMessage:"Hard to find the right fit?",id:"ph/TbNfDnH",description:"Group booking concierge: search results notification headline"}),className:"mb-3 ns:-mt-3",children:[(0,n.jsx)("p",{className:"mb-3",children:(0,n.jsx)(s.Z,{defaultMessage:"For larger groups, Landfolk can shortlist homes and coordinate needs that are hard to capture in filters.",id:"4fNFc+l1Hq",description:"Group booking concierge: search results notification body"})}),(0,n.jsx)(g,{onClick:e,children:(0,n.jsx)(s.Z,{defaultMessage:"Book a quick call",id:"0qzlD7DbMt",description:"Group booking concierge: search results notification CTA"})})]})}function g({children:e,onClick:t}){return(0,n.jsx)(d.Z,{href:u,target:"_blank",rel:"noreferrer",onClick:t,size:"sm",children:e})}function b({children:e,onClick:t}){return(0,n.jsx)(r.r,{href:u,target:"_blank",rel:"noreferrer",onClick:t,children:e})}},65519:function(e,t,i){"use strict";i.d(t,{h:function(){return d}});var n=i(97458),a=i(78869),l=i.n(a),s=i(52983),r=i(47014);let o=l()(()=>Promise.all([i.e(48),i.e(5072),i.e(3597)]).then(i.bind(i,43597)).then(e=>e.MapView),{loadableGenerated:{webpack:()=>[43597]},ssr:!1}),c=s.useLayoutEffect;function d({style:e,className:t,...i}){let a=(0,s.useRef)(),[l,d]=(0,r.YD)({threshold:0,rootMargin:"100% 0% 100% 0%",triggerOnce:!0}),u=(0,s.useCallback)(e=>{a.current=e,l(e)},[l]),[f,h]=(0,s.useState)({width:0,height:0});return c(()=>{let e=void 0!==i.width?i.width:a.current?.offsetWidth,t=void 0!==i.height?i.height:a.current?.offsetHeight;void 0!==e&&void 0!==t&&h({width:e,height:t})},[i.width,i.height]),(0,n.jsx)("div",{style:e,ref:u,className:[t,"bg-beach-100"].filter(Boolean).join(" "),children:d&&(0,n.jsx)(o,{...i,...f})})}},24067:function(e,t,i){"use strict";i.d(t,{k:function(){return o}});var n=i(97458),a=i(61959),l=i(16176),s=i(1168),r=i(81641);function o({submitText:e,clearText:t,onClear:i,onSubmit:o,children:c}){let d=(0,s.Z)();return(0,n.jsxs)("div",{className:"flex flex-wrap justify-between nl:w-full",children:[c,i&&(0,n.jsx)(l.Q,{onClick:i,className:"text-f7",children:t??(0,n.jsx)(r.Z,{defaultMessage:"Clear",id:"/GCoTAAjMN"})}),o&&(0,n.jsx)(a.zx,{onClick:o,"data-testid":"save-filter-button",className:"relative ml-auto",children:e??d.formatMessage({defaultMessage:"Save",id:"3n9J1B0oma",description:"Filter action: Save button label"})})]})}},32476:function(e,t,i){"use strict";i.d(t,{sV:function(){return v}});var n=i(97458),a=i(18011),l=i(72751),s=i(95199),r=i(73352),o=i.n(r),c=i(52983),d=i(81641),u=i(13507),f=i(24067),h=i(89034),m=i(11894),p=i(59725),g=i(26366),b=i(12823);let x=["checkin","checkout","dateFlexibility","from","to","minNights"];function v({values:e={},flexible:t=!0,precisionOptions:i=!0,button:r=b.A,buttonProps:v,size:y,placeholderContent:j,submitText:w,triggerOnEvent:k,positioning:N,fitPopoverInViewport:C,modal:M,className:S,onChange:Z,onSubmit:O,onOpenChange:_,submitOnClear:I,partialCheckin:A,onPartialCheckinChange:z,...F}){let B=(0,s.e)("sm"),P=(0,s.e)("nl"),R=(0,c.useRef)(),[L,E]=(0,c.useState)(!1),D="flexible"===e.availabilityMode?e.from&&e.to:e.checkin&&e.checkout,G=(0,p.VD)({values:e,partialCheckin:A}),T=(0,p.Cp)({values:e,partialCheckin:A}),{update:q,rollbackToMarked:$,markRollbackState:V,isPrestine:Q}=(0,h.S0)({values:e,onChange:Z}),U=(0,c.useCallback)(e=>{z?.(void 0),q(e=>({...e,from:void 0,to:void 0,minNights:void 0,checkin:void 0,checkout:void 0,dateFlexibility:0}),e)},[z,q]),H=(0,c.useCallback)(e=>{E(e),e||z?.(void 0),e&&V(),_?.(e)},[V,_,z]);return(0,u.dh)(e=>{k&&"availability"===e&&E(!0)},"triggerSearchFilter"),(0,u.dh)(()=>{k&&E(!1)},"closeAllSearchFilters"),(0,n.jsx)("div",{...F,className:[S,"relative lg:h-full"].filter(
11Boolean).join(" "),children:(0,n.jsx)(l.J,{open:L,onOpenChange:H,onCloseForced:()=>{z?.(void 0),$()},positioning:N,fitInViewport:C,modal:M,title:P&&!t?(0,n.jsx)(d.Z,{defaultMessage:"Arrival and departure",id:"MLEn/omfOH",description:"Filter: availability filter title"}):void 0,header:t||B&&"fixed"===e.availabilityMode?(0,n.jsx)(n.Fragment,{children:t&&(0,n.jsx)(g.Q,{mode:e.availabilityMode??"fixed",setMode:e=>{e&&(z?.(void 0),q({availabilityMode:e}))},ref:R,className:["relative z-30 overflow-hidden bg-neutral-100","nl:flex nl:w-full nl:items-center nl:justify-center nl:px-3 nl:py-2","lg:-mx-4 lg:-mt-4 lg:w-[calc(100%+4rem)] lg:shadow-md","flexible"===e.availabilityMode&&"lg:mb-2.5"].filter(Boolean).join(" "),children:P&&(0,n.jsx)(a.GG,{onClick:$,className:"relative z-10 -mr-2"})})}):void 0,headerStyle:t?["nl:!p-0"]:B?["sm:!pb-0"]:void 0,headerCloseButton:!t,content:(0,n.jsx)(m.P,{values:e,update:q,flexible:t,precisionOptions:i,onSelectStart:z,onSelectRange:()=>z?.(void 0),onCancelSelection:()=>z?.(void 0)}),contentStyle:["nl:!py-0"],footer:(0,n.jsx)(f.k,{submitText:w,onClear:()=>U(),onSubmit:()=>{z?.(void 0),E(!1),O?.()}}),hideFooter:(0,p.Qc)({isPrestine:Q,isActive:D,hasPartialFixedAvailability:G}),initialFocusEl:t?()=>R.current?.querySelector(`#tab_${e.availabilityMode}`):void 0,className:"md:w-[53rem] md:max-w-[calc(100vw-2rem)] lg:w-[55vw] lg:min-w-[42.5rem] lg:max-w-[53rem]",children:(0,n.jsx)(r,{isOpen:L,checkin:T.checkin,checkout:T.checkout,dateFlexibility:e.dateFlexibility??0,from:e.from,to:e.to,minNights:e.minNights??0,placeholderContent:j,flexible:t,mode:e.availabilityMode,size:y,onClick:()=>E(e=>!e),onClear:()=>{U(I?{immediateSubmit:!0,immediateSubmitKeys:x}:void 0)},...o()(v,"className","tx"),className:[v?.className,...v?.tx??[]].filter(Boolean).join(" ")})})})}},59725:function(e,t,i){"use strict";function n({values:e,partialCheckin:t}){return e?.availabilityMode==="flexible"?{checkin:e.checkin,checkout:e.checkout}:{checkin:t??e?.checkin,checkout:t?void 0:e?.checkout}}function a({values:e,partialCheckin:t}){return!!(e?.availabilityMode!=="flexible"&&t)}function l({isPrestine:e,isActive:t,hasPartialFixedAvailability:i}){return i||e&&!t}i.d(t,{Cp:function(){return n},Qc:function(){return l},VD:function(){return a}})},34601:function(e,t,i){"use strict";i.d(t,{L:function(){return s}});var n=i(97458),a=i(12577),l=i(88503);let s=({values:e,update:t})=>(0,n.jsx)(l.J,{onChange:i=>{let n=e?.pets??0,a=0===i.pets&&n>0,l=i.pets>0;t({...i,...l&&{petsAllowed:"1"},...a&&{petsAllowed:"0"}},i.pets!==n?{petSelectionSource:"guest-picker"}:void 0)},guests:{...e},footer:(0,n.jsx)(a.Gc,{context:"search-filter",guests:e})})},29143:function(e,t,i){"use strict";i.d(t,{o:function(){return x}});var n=i(97458),a=i(72751),l=i(95199),s=i(73352),r=i.n(s),o=i(52983),c=i(81641),d=i(13507),u=i(60899),f=i(9186),h=i(24067),m=i(89034),p=i(34601),g=i(76197);let b=["adults","children","infants","pets","petsAllowed"];function x({values:e={},button:t=g.G,buttonProps:i,placeholderContent:s,submitText:x,triggerOnEvent:v,positioning:y,fitPopoverInViewport:j,modal:w,className:k,onChange:N,onSubmit:C,onOpenChange:M,submitOnClear:S,...Z}){let[O,_]=(0,o.useState)(!1),I=(0,l.e)("nl"),A=u.zC.some(t=>e[t]),{update:z,rollbackToMarked:F,markRollbackState:B,isPrestine:P}=(0,m.S0)({values:{...f.C,...e},onChange:N}),R=(0,o.useCallback)(e=>{z({...f.C,petsAllowed:"0"},e)},[z]),L=(0,o.useCallback)(e=>{_(e),e&&B(),M?.(e)},[B,M]);return(0,d.dh)(e=>{v&&"guests"===e&&_(!0)},"triggerSearchFilter"),(0,d.dh)(()=>{v&&_(!1)},"closeAllSearchFilters"),(0,n.jsx)("div",{...Z,className:[k,"h-full"].filter(Boolean).join(" "),children:(0,n.jsx)(a.J,{open:O,onOpenChange:L,onCloseForced:F,positioning:y,fitInViewport:j,modal:w,width:I?"sm":"auto",title:I?(0,n.jsx)(c.Z,{defaultMessage:"Guests",id:"BRziOILDDc",description:"Filter: capacity filter title"}):void 0,content:(0,n.jsx)(p.L,{values:e,update:z}),footer:(0,n.jsx)(h.k,{submitText:x,onClear:()=>R(),onSubmit:()=>{_(!1),C?.()}}),hideFooter:P&&!A,className:"w-[23rem]",children:(0,n.jsx)(t,{guests:e,isOpen:O,onClick:()=>_(e=>!e),onClear:()=>{R(S?{immediateSubmit:!0,immediateSubmitKeys:b}:void 0)},placeholderContent:s,...r()(i,"className","tx"),className:[i?.className,...i?.tx??[]].filter(
11Boolean).join(" ")})})})}},89034:function(e,t,i){"use strict";i.d(t,{Iz:function(){return p},L_:function(){return f},R0:function(){return u},S0:function(){return d},Yq:function(){return h},iv:function(){return m},n6:function(){return g}});var n=i(97458),a=i(83461),l=i(99888),s=i(85466),r=i.n(s),o=i(80215),c=i(52983);function d({values:e,onChange:t}){let i=(0,c.useRef)(e),n=(0,c.useRef)(!1),[a,l]=(0,c.useState)(!0),s=(0,c.useCallback)((i,a)=>{if(!i)return;let s="function"==typeof i?i(e):{...e,...i};if(n.current||=e.pets!==s.pets||e.petsAllowed!==s.petsAllowed,t){if(r()(s,e)){a?.clearPetSelectionAttribution&&t(s,a);return}l(!1),t(s,a)}},[e,t]),o=(0,c.useCallback)(()=>{i.current={...e},n.current=!1,l(!0)},[e]),d=(0,c.useCallback)(()=>{s(i.current,{clearPetSelectionAttribution:n.current}),n.current=!1,l(!0)},[s]);return{update:s,rollbackToMarked:d,markRollbackState:o,isPrestine:a}}let u=(0,c.forwardRef)(({active:e,hocus:t,round:i="none",size:s,clearActive:r,onClick:o,onClear:c,afterField:d,children:u,className:f,...h},m)=>(0,n.jsxs)("div",{className:"flex h-full w-full max-w-full items-center",children:[(0,n.jsxs)("button",{ref:m,tabIndex:o?void 0:-1,onClick:o,...h,className:["h-full shrink grow overflow-hidden",f,"group",!r&&"-mr-3"].filter(Boolean).join(" "),children:[(0,n.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,l.b)("ring-1 ring-transparent group-hocus:ring-february-muted",t&&"ring-1 ring-february-muted",e&&"ring-1 ring-february"),"right"===i&&"rounded-r-[calc(var(--search-filter-height)/2)] before:rounded-r-[calc(var(--search-filter-height)/2)]","left"===i&&"rounded-l-[calc(var(--search-filter-height)/2)] before:rounded-l-[calc(var(--search-filter-height)/2)]"].filter(
11Boolean).join(" ")}),u]}),d,(0,n.jsx)("button",{tabIndex:r?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",r?"opacity-100":"opacity-0","lg"===s?"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,n.jsx)(a.Z,{className:["!m-0","lg"===s?"h-[0.875rem] w-[0.875rem] xl:h-1 xl:w-1":"h-[0.75rem] w-[0.75rem]"].filter(Boolean).join(" ")})})]}));function f({size:e,className:t,...i}){let{locale:a}=(0,o.useRouter)();return(0,n.jsx)("span",{...i,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,l.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(" ")})}u.displayName="FilterField";let h=({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"],m=({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"],p=({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"],g=()=>["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]"]},7573:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eN}});var n=i(97458),a=i(74252),l=i(71775),s=i(80215),r=i(13632),o=i(81375),c=i(25407),d=i(58416),u=i(66425),f=i(15736),h=i(88472),m=i(19951),p=i(61959),g=i(64374),b=i(16133),x=i(32470),v=i(92098),y=i(78142),j=i(50299),w=i(69081),k=i(27098),N=i(43547),C=i(18011),M=i(72751),S=i(95199),Z=i(19330),O=i(71020),_=i(85466),I=i.n(_),A=i(73352),z=i.n(A),F=i(49335),B=i.n(F),P=i(52983),R=i(47014),L=i(1168),E=i(81641),D=i(49574),G=i(44360),T=i(48938),q=i(40862),$=i(74861),V=i(69813),Q=i(48524),U=i(74068),H=i(70309),Y=i(33223),J=i(88195),K=i(2075),X=i(65519),W=i(32476),ee=i(29143),et=i(9186),ei=i(85743),en=i(27401),ea=i(61716),el=i(50434),es=i(38769),er=i(61495);function eo({list:e,children:t}){let[i,{loading:a,error:l}]=(0,$.K4)(),[s,r]=(0,P.useState)(!1),o=(0,er.Gk)(e),c=(0,P.useMemo)(()=>(0,er.G9)({list:e,origin:window.location.origin}),[e]),{actions:d,confetti:u,form:f,step:h,viewer:m,viewerLoading:p,showSenderIdentity:g,showSenderNameField:b,isSubmittingEmail:v,submitError:y,handleSubmitEmailShare:j,setStep:w,setSubmitError:k}=(0,es.UQ)({shareTarget:c||{url:"",title:e.title,text:e.description||void 0},recipientAttributionSurface:"my-favorites",celebrateOnCopy:!0,onShareAction:t=>{(0,el.vg)({relation:"my_collection",shortId:e.shortId,elementId:"my_collection_share_button",context:"my-collection-share-dialog",action:t})}}),M=async t=>{let{data:n}=await i({variables:{input:{favoriteListId:e.id,visibility:t?T.rR.Public:T.rR.Private}}});n?.updateFavoriteList?.success&&(0,el.Sy)({relation:"my_collection",shortId:e.shortId,elementId:"my_collection_share_button",context:"my-collection-share-dialog",from:t?"private":"public",to:t?"public":"private"})};return(0,n.jsxs)(C.GR,{open:s,onOpenChange:t=>{if(r(t),!t){k(void 0),f.reset(),w("actions");return}(0,el.At)({relation:"my_collection",shortId:e.shortId,elementId:"my_collection_share_button",context:"my-collection-share-dialog",visibility:o?"public":"private"})},children:[(0,n.jsx)(C.hg,{asChild:!0,children:t}),(0,n.jsxs)(C.Vq,{width:"sm",children:[(0,n.jsx)(C.GG,{float:!0}
11),"actions"===h&&(0,n.jsxs)(C.a7,{className:"sm:pt-3 ns:pt-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"mb-3.5 text-f3 font-bold sm:text-f4",children:(0,n.jsx)(E.Z,{...ec.title,values:{collectionTitle:e.title}})}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-bold",children:(0,n.jsx)(E.Z,{...ec.toggleLabel})}),(0,n.jsx)("p",{children:(0,n.jsx)(E.Z,{...ec.toggleDescription})})]}),(0,n.jsx)(x.r,{checked:o,disabled:a,onChange:e=>{M(e.currentTarget.checked).catch(console.error)}})]})]}),l?.message&&(0,n.jsx)(N.P,{type:"error",size:"small",className:"mb-3 mt-3.5",children:l.message}),o&&c&&(0,n.jsxs)("div",{className:"mt-3.5",children:[(0,n.jsx)(es.Dt,{actions:d}),u]})]}),"email"===h&&(0,n.jsx)(en.RV,{...f,children:(0,n.jsx)(es.xQ,{form:f,title:e.title,viewer:m,showSenderIdentity:g,showSenderNameField:b,isSubmitting:v,submitError:y,viewerLoading:p,onBack:()=>{k(void 0),f.clearErrors(),w("actions")},onSubmit:j})}),"sent"===h&&(0,n.jsx)(es.kh,{recipientEmail:f.getValues("recipientEmail")})]})]})}let ec=(0,ea.vU)({title:{defaultMessage:"Share “{collectionTitle}”",id:"pXeCi4AOQa",description:"Favorite list share dialog title"},toggleLabel:{defaultMessage:"Create read-only link",id:"J6Tnwed9af",description:"Favorite list share dialog toggle label"},toggleDescription:{defaultMessage:"Anyone with this link can view the Collection, but can’t change it",id:"TBqxE4OlVe",description:"Favorite list share dialog toggle description"}});var ed=i(17283),eu=i(95517),ef=i(16063),eh=i(44664),em=i(11847);function ep({id:e,shortId:t,title:i,intro:a,cover:l,listId:s,slug:r}){let{isFavorited:o,isLoading:c,toggle:d}=(0,em.Q)({id:e,shortId:t,cover:l},"story-collection-card"),u=(0,P.useCallback)(()=>{d({listId:s,notify:!1})},[s,d]);return(0,n.jsxs)("article",{className:"relative",children:[(0,n.jsxs)(eh.r,{href:ef._j.story(t,r),className:"group grid cursor-pointer grid-cols-12 gap-x-3 no-underline",children:[(0,n.jsx)("div",{className:"relative block self-start overflow-hidden text-0 sm:row-span-2 sm:min-w-[104px] ns:col-span-5 ns:row-span-full ns:min-w-[204px]",children:(0,n.jsx)("figure",{className:"relative h-0 overflow-hidden pb-full",children:(0,n.jsx)(ed.B0,{...l,alt:i,width:550,height:550,sizes:"375px",wrapperStyle:"absolute inset-0",className:"h-full w-full object-cover can-hover:transform-gpu can-hover:transition can-hover:duration-700 can-hover:ease-out can-hover:group-hover:scale-105"})})}),(0,n.jsxs)("div",{className:"col-span-7 pl-3 pr-3.5",children:[(0,n.jsxs)("div",{className:"mb-3 ns:col-span-7",children:[(0,n.jsx)("span",{className:"text-f7 text-february-muted",children:(0,n.jsx)(E.Z,{defaultMessage:"Story",id:"WCRLL8Gy7E",description:"Story collection card title"})}),(0,n.jsx)("h3",{className:"grow font-serif text-f4 transition ease-in group-hover:text-forest-700 sm:mb-2 sm:pb-0 sm:font-sans sm:text-f7 sm:font-bold",children:i})]}),(0,n.jsx)("p",{className:"line-clamp-5",children:a})]})]}),(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),u()},disabled:c,className:"absolute right-0 top-0 z-20 shrink-0 grow-0 disabled:opacity-60",children:(0,n.jsx)(eu.P,{toggled:o,loading:c,size:1,animate:!0})})]})}var eg=i(49615);function eb({list:e}){let t=(0,L.Z)(),i=(0,S.e)("lg"),a=(0,S.e)("sm"),[l]=(0,r.fl)(),[s,{loading:o}]=(0,$.K4)({awaitRefetchQueries:!0,refetchQueries:[{query:r.we,variables:{shortId:e?.shortId}}]}),d=e.title||t.formatMessage(q.$z),[u,f]=(0,P.useState)("list"),[g,b]=(0,P.useState)(!1),x=e.favorites.edges.reduce((t,i)=>(i.node?.__typename==="Listing"&&Number.isFinite(i.node?.latitude)&&Number.isFinite(i.node?.longitude)&&t.push({...e.checkinOn||e.checkoutOn?z()(i.node,"pricing"):i.node}),t),[]);return(0,D.Hd)(()=>{e.subscribed&&l({variables:{input:{favoriteListId:e.id}}})}),(0,P.useLayoutEffect)(()=>{b("map"===u)},[u]),(0,P.useLayoutEffect)(()=>{f(g?"map":"list")},[g]),(0,P.useLayoutEffect)(()=>{i&&b(!1)},[i]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(H.HJ,{title:d,noindex:!0,nofollow:!0}),(0,n.jsxs)("article",{className:"lg:mb-4.5",children:[(0,n.jsxs)(V.x,{className:"lg:mb-4.5 nl:relative nl:!mb-0",children:[(0,n.jsxs)("div",{className:"nl:flex nl:items-center nl:justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(V.X,{className:"!overflow-visible whitespace-normal sm:!leading-8",children:d}),e.description&&!a&&(0,n.jsx)("p",{children:e.description})]}),a&&(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[e.visibility===T.rR.Public&&(0,n.jsx)(v.C,{type:"muted",className:"mr-1",children:(0,n.jsx)(E.Z,{defaultMessage:"Public",id:"kc0deOq1xq",description:"Collection: Shared collection visibility label"})}),(0,n.jsx)(eo,{list:e,children:(0,n.jsx)(p.zx,{type:"button",size:"sm",kind:"outline","aria-label":t.formatMessage({defaultMessage:"Share",id:"I0qhZ5gi1m",description:"Collection: Share button"}),className:"!h-auto !w-auto !min-w-2.5 !px-3 !py-2 active:bg-white active:shadow-md",children:(0,n.jsx)(p.zx.Icon,{children:(0,n.jsx)(m.Z,{})})})}),(0,n.jsx)(eg.S,{list:e,wrapperStyle:["z-[110]"],children:(0,n.jsx)(C.hg,{asChild:!0,children:(0,n.jsx)(p.zx,{type:"button",size:"sm",kind:"outline","aria-label":t.formatMessage({defaultMessage:"Settings",id:"FINfpKPYN/",description:"Collection: Settings button"}),className:"!h-auto !w-auto !min-w-2.5 !px-3 !py-2 active:bg-white active:shadow-md",children:(0,n.jsx)(p.zx.Icon,{children:(0,n.jsx)(h.Z,{})})})})})]})]}),e.description&&a&&(0,n.jsx)("p",{className:"mt-2 w-full text-f7",children:e.description})]}),(0,n.jsxs)("div",{className:"lg:-mt-4 lg:grid lg:grid-cols-12 lg:gap-x-3",children:[(0,n.jsx)(ex,{onFiltersUpdate:e=>s({variables:{input:e}}),loading:o,list:e,className:"col-span-12"}),(0,n.jsx)("section",{className:"relative pb-5 lg:col-span-6",children:e.favorites.edges.length?(0,n.jsx)("ul",{className:["mb-5 grid w-full transition-opacity sm:grid-cols-1 md:grid-cols-[repeat(auto-fill,minmax(clamp(16rem,14vw,22rem),
111fr))] md:gap-x-3 md:gap-y-4",o&&"opacity-40"].filter(Boolean).join(" "),children:e?.favorites?.edges.map(({node:a})=>a?"Listing"===a.__typename?n.jsx("li",{className:"sm:not-last:mb-4 lg:py-4 lg:not-last:border-b lg:not-last:border-neutral-300",children:n.jsx(J.dF,{listName:"favorites",listId:e.id,variant:i?"detailed":"base",imageStyles:["sm:-mx-3"],sizes:`${S.B.sm} 100vw, ${S.B.md} 375px, 192px`,participants:z()(e.participants,"__typename"),favoriteRemoveDelay:2e3,showAddDates:!a.pricing,buttonText:i?a.bookingQuote&&0===a.bookingQuote.errors.length?t.formatMessage({defaultMessage:"Explore and book",id:"ppYVyDUShf",description:"Collections: Listing card with quote button text"}):t.formatMessage({defaultMessage:"Explore",id:"YutCLmpUUP",description:"Collections: Listing card button text"}):void 0,dates:e.checkinOn&&e.checkoutOn?{checkin:e.checkinOn,checkout:e.checkoutOn}:void 0,...e.checkinOn||e.checkoutOn?z()(a,"pricing"):a})},a.shortId):"Story"===a.__typename?n.jsx("li",{className:"sm:not-last:mb-4 lg:py-4 lg:not-last:border-b lg:not-last:border-neutral-300",children:i?n.jsx(ep,{id:a.id,shortId:a.shortId,title:a.title,intro:a.intro,slug:a.slug,listId:e.id,cover:{url:a.favoriteCover.url,proxy:a.favoriteCover.proxy,blurhash:a.favoriteCover.blurhash}}):n.jsx(Y.q,{id:a.id,shortId:a.shortId,createdAt:a.createdAt,title:a.title,intro:a.intro,slug:a.slug,listId:e.id,cover:{url:a.favoriteCover.url,proxy:a.favoriteCover.proxy}})},a.shortId):void 0:void 0)}):(0,n.jsx)("p",{className:"my-4",children:(0,n.jsx)(E.Z,{defaultMessage:"You haven’t added anything to this Collection yet. {br}<heart>Favorite</heart> anything and choose this Collection, and it’ll show up right here.",id:"JnI1W0h1Es",description:"Collections: Empty collection description",values:{heart:e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"sr-only",children:e}),(0,n.jsx)(c.Z,{role:"presentation","aria-hidden":!0,className:"-mt-1 inline-block h-1 w-1"})]}),br:(0,n.jsx)("br",{})}})})}),i&&x.length?(0,n.jsx)("section",{className:["sticky top-5 flex h-[calc(100vh-4rem)] py-4 pl-3 transition-opacity lg:col-span-6",o&&"opacity-40"].filter(
11Boolean).join(" "),children:(0,n.jsx)(ej,{listings:x,guests:e.participants,filter:{availableIn:e.checkinOn&&e.checkoutOn?{checkinOn:e.checkinOn,checkoutOn:e.checkoutOn}:void 0},className:"h-full w-full"})}):void 0]})]}),!i&&x.length?(0,n.jsx)(ey,{value:u,onChange:f}):void 0,(0,n.jsx)(C.GR,{open:g,onOpenChange:b,children:(0,n.jsx)(ew,{title:d,listings:x})})]})}let ex=({list:e,loading:t,onFiltersUpdate:i,className:l,...s})=>{let r=(0,S.e)("lg"),o=(0,S.e)("ns"),[c,d]=(0,R.YD)({threshold:0,fallbackInView:!0,initialInView:!0}),u=!d,{width:f=-1,ref:g}=(0,G.Z)({box:"border-box"}),[b,x]=(0,P.useState)(e.lowestPriceAvailability?.interval?.first&&e.lowestPriceAvailability?.interval?.last&&e.lowestPriceAvailability?.minNights?{from:e.lowestPriceAvailability.interval.first,to:e.lowestPriceAvailability.interval.last,minNights:e.lowestPriceAvailability.minNights,availabilityMode:"flexible"}:e.approxAvailability?.checkinOn&&e.approxAvailability?.checkoutOn?{checkin:e.approxAvailability.checkinOn,checkout:e.approxAvailability.checkoutOn,dateFlexibility:e.approxAvailability?.checkinAfterDays??0,availabilityMode:"fixed"}:{checkin:e.checkinOn,checkout:e.checkoutOn,availabilityMode:"fixed"}),[y,j]=(0,P.useState)({adults:e.participants.adults??et.C.adults,children:e.participants.children??et.C.children,infants:e.participants.infants??et.C.infants,pets:e.participants.pets??et.C.pets});(0,P.useEffect)(()=>{x(e.lowestPriceAvailability?.interval?.first&&e.lowestPriceAvailability?.interval?.last&&e.lowestPriceAvailability?.minNights?{from:e.lowestPriceAvailability.interval.first,to:e.lowestPriceAvailability.interval.last,minNights:e.lowestPriceAvailability.minNights,availabilityMode:"flexible"}:e.approxAvailability?.checkinOn&&e.approxAvailability?.checkoutOn&&e.approxAvailability?.checkinAfterDays?{checkin:e.approxAvailability.checkinOn,checkout:e.approxAvailability.checkoutOn,dateFlexibility:e.approxAvailability?.checkinAfterDays??0,availabilityMode:"fixed"}:{checkin:e.checkinOn,checkout:e.checkoutOn,availabilityMode:"fixed"}),j({adults:e.participants.adults??et.C.adults,children:e.participants.children??et.C.children,infants:e.participants.infants??et.C.infants,pets:e.participants.pets??et.C.pets})},[e]);let w=(0,P.useRef)(!0),k=(0,P.useRef)(!0),N=()=>{k.current=!0,i({participants:{adults:y.adults,children:y.children,infants:y.infants,pets:y.pets},favoriteListId:e?.id})},M=()=>{if(w.current=!0,"flexible"===b.availabilityMode){if(b.from&&b.to&&b.minNights){i({lowestPriceAvailability:{interval:{first:b.from,last:b.to},minNights:b.minNights},favoriteListId:e?.id});return}if(!e.lowestPriceAvailability)return;i({lowestPriceAvailability:Z.PX,favoriteListId:e?.id});return}if(b.dateFlexibility&&b.dateFlexibility>0&&b.checkin&&b.checkout){i({approxAvailability:{duration:{checkinOn:b.checkin??Z.PX,checkoutOn:b.checkout??Z.PX},checkinAfterDays:b.dateFlexibility,checkinBeforeDays:b.dateFlexibility,checkoutAfterDays:b.dateFlexibility,checkoutBeforeDays:b.dateFlexibility},favoriteListId:e?.id});return}i({checkinOn:b.checkin??Z.PX,checkoutOn:b.checkout??Z.PX,favoriteListId:e?.id})};return(0,n.jsxs)("aside",{...s,className:[l,"lg:sticky lg:top-0 lg:z-navigation lg:mb-2"].filter(Boolean).join(" "),children:[(0,n.jsx)("div",{ref:c,className:"absolute bottom-full left-0 mb-[1px] h-[1px] w-full"}),(0,n.jsx)(ev,{isSticky:u&&r,children:(0,n.jsx)(eg.S,{list:e,children:(0,n.jsxs)("div",{className:"relative z-10 flex",children:[(0,n.jsxs)("div",{className:"flex w-full items-center justify-start",children:[r&&(0,n.jsx)("div",{style:{"--title-width":u?`calc(${f}px + 1rem)`:"calc(0px + 0rem)"},className:"w-[--title-width] transition-[width] duration-500",children:(0,n.jsx)("h2",{ref:g,className:["pointer-events-none w-[max-content] max-w-5 truncate font-serif text-f4 leading-6 transition-opacity duration-500",u?"opacity-100":"opacity-0"].filter(Boolean).join(" "),children:e.title})}),(0,n.jsxs)("div",{className:"relative z-10 flex gap-x-2 will-change-transform sm:w-full",children:[(0,n.jsx)(W.sV,{values:b,onChange:e=>{x(e),w.current=!1},onSubmit:M,onOpenChange:e=>{e||w.current||M()}
11,flexible:!0,triggerOnEvent:!0,className:"flex-1"}),(0,n.jsx)(ee.o,{values:I()(y,et.C)?void 0:y,onChange:e=>{j({...et.C,...e}),k.current=!1},onSubmit:N,onOpenChange:e=>{e||k.current||N()},triggerOnEvent:!0,className:"flex-1"}),(0,n.jsx)(ek,{onChange:t=>{i({subscribed:t,favoriteListId:e?.id})},list:e})]})]}),o&&(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[e.visibility===T.rR.Public&&(0,n.jsx)(v.C,{type:"muted",className:"mr-1",children:(0,n.jsx)(E.Z,{defaultMessage:"Public",id:"kc0deOq1xq",description:"Collection: Shared collection visibility label"})}),(0,n.jsx)(eo,{list:e,children:(0,n.jsxs)(p.zx,{type:"button",kind:"outline",size:"sm",className:"flex items-center justify-center gap-2",children:[(0,n.jsx)(p.zx.Icon,{children:(0,n.jsx)(m.Z,{})}),(0,n.jsx)(p.zx.Label,{children:(0,n.jsx)(E.Z,{defaultMessage:"Share",id:"I0qhZ5gi1m",description:"Collection: Share button"})})]})}),(0,n.jsx)(C.hg,{asChild:!0,children:(0,n.jsxs)(p.zx,{type:"button",kind:"outline",size:"sm",className:"flex items-center justify-center gap-2",children:[(0,n.jsx)(p.zx.Icon,{children:(0,n.jsx)(h.Z,{})}),(0,n.jsx)(p.zx.Label,{children:(0,n.jsx)(E.Z,{defaultMessage:"Edit",id:"5YHWe7YZ6Y",description:"Collection: Edit button"})})]})})]}),t&&(0,n.jsx)(a.$,{className:"fixed left-1/2 top-7 ml-[-0.575rem]"})]})})})]})},ev=({isSticky:e,children:t,className:i,...a})=>(0,n.jsxs)("div",{...a,className:[i,"relative [will-change:transform] lg:mb-2 lg:py-3 nl:pb-3.5 nl:pt-3 lg:after:absolute lg:after:-bottom-3 lg:after:left-0 lg:after:top-0 lg:after:w-full lg:after:border-b lg:after:border-neutral-300 lg:after:transition lg:after:duration-500",e&&"after:-translate-y-3 after:opacity-0"].filter(Boolean).join(" "),children:[(0,n.jsx)(Q.F,{className:["pointer-events-none absolute -bottom-3 left-0 top-0 bg-white transition duration-500 nl:hidden before:pointer-events-none before:absolute before:bottom-full before:left-0 before:h-6 before:w-full before:bg-white before:transition-opacity after:pointer-events-none after:absolute after:inset-0 after:shadow-md after:transition-opacity after:duration-500 after:[clip-path:inset(0_0_-3rem_0)]",e?"-translate-y-3 before:opacity-100 after:opacity-100":"before:opacity-0 after:opacity-0"].filter(Boolean).join(" ")}),t]}),ey=({value:e,onChange:t,className:i,...a})=>{let l=(0,L.Z)(),s=(0,U.UN)("mobileMenu");return(0,n.jsx)("aside",{...a,className:[i,"pointer-events-none fixed left-0 z-floating flex w-full justify-center shadow-md lg:bottom-3 lg:rounded-full nl:inset-x-0 nl:bottom-0 nl:bg-neutral-100",s].filter(Boolean).join(" "),children:(0,n.jsx)(b.K,{label:l.formatMessage({defaultMessage:"Choose list view",id:"YCSebjGBMe",description:"Collections: Mobile list view type picker hidden label"}),value:e,onChange:t,options:[{value:"list",icon:d.Z,content:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(E.Z,{defaultMessage:"List",id:"wg0QqAS9Rq",description:"Collections: Mobile list view label"})})},{value:"map",icon:f.Z,content:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(E.Z,{defaultMessage:"Map",id:"JCrfyifvoA",description:"Collections: Mobile map view label"})})}],className:"pointer-events-auto md:max-w-5 nl:grid nl:w-full nl:grid-cols-2 nl:px-3 nl:py-2"})})},ej=({listings:e,guests:t,filter:i,cooperativeGestures:a,className:l,...s})=>{let r=e.map(e=>e.shortId).join(","),{getPriceLabel:o}=(0,ei.VU)(),c=(0,P.useMemo)(()=>({type:"FeatureCollection",features:e.map(e=>({...B()(e,"id","shortId","longitude","latitude","pricing","bookingQuote","available","suitableForParticipants")})).filter(e=>Number.isFinite(e.latitude)&&Number.isFinite(e.longitude)).map((e,t)=>({type:"Feature",id:t+1,properties:{rank:t,label:o(e),...e},geometry:{type:"Point",coordinates:[e.longitude,e.latitude]}}))}),[o,e]),d=(0,D.fN)(c),{ref:u,width:f=0,height:h=0}=(0,G.Z)({box:"content-box"}),m=(0,P.useRef)(),[p,g]=(0,P.useState)(!1),b=(0,k.F)(m),x=(0,P.useMemo)(()=>({width:Math.round(f),height:Math.round(h)}),[f,h]),v=e=>{d?.current&&b(d.current,{padding:{top:96,bottom:96,left:96,right:96},...e})};return(0,D.lR)(()=>{v()},[r]),(0,n.jsx)("div",{ref:u,...s,className:[l,"relative overflow-hidden bg-beach-100"].filter(
11Boolean).join(" "),children:(0,n.jsxs)(X.h,{onLoad:e=>{m.current=e.target,e.target.once("idle",()=>{v({animate:!1})})},legend:"top-left",cooperativeGestures:a,width:x?.width||0,height:x?.height||0,className:"absolute inset-0",children:[(0,n.jsx)(w.lm,{onLabelLoad:()=>g(!0)}),(0,n.jsx)(j.z4,{data:c,renderLabels:p,popupContent:a=>{let l=e.find(e=>e.id===a.properties.id);if(l)return(0,n.jsx)(K.S,{listName:"favorites",listing:l,guests:t,filter:i})}})]})})},ew=({title:e,listings:t})=>(0,n.jsxs)(C.Vq,{width:"full",height:"full",children:[(0,n.jsxs)(C.fK,{shadow:!0,children:[(0,n.jsx)(C.$N,{asChild:!0,children:(0,n.jsx)("h1",{className:"flex items-center justify-start font-bold sm:text-f4 ns:text-f3",children:e})}),(0,n.jsx)(C.GG,{})]}),(0,n.jsx)(C.a7,{className:"!p-0",children:(0,n.jsx)(ej,{listings:t,cooperativeGestures:!1,className:"h-full w-full"})})]}),ek=({onChange:e,list:t})=>{let i=(0,O.O)(),[a,l]=(0,P.useState)(!1),[s,r]=(0,P.useState)(t.subscribed),c=(0,S.e)("nl"),d=(0,P.useMemo)(()=>!!(t.checkinOn&&t.checkoutOn||t.approxAvailability?.checkoutOn&&t.approxAvailability?.checkinOn&&t.approxAvailability?.checkinAfterDays&&t.approxAvailability?.checkoutAfterDays&&t.approxAvailability?.checkinBeforeDays&&t.approxAvailability?.checkoutBeforeDays||t.lowestPriceAvailability?.interval?.first&&t.lowestPriceAvailability?.interval?.last&&t.lowestPriceAvailability?.minNights),[t]),[f]=(0,o.u)();return(0,n.jsx)("div",{className:"lg:relative",children:(0,n.jsx)(M.J,{open:a,onOpenChange:e=>l(e),fitInViewport:!0,headerCloseButton:c,contentStyle:[c&&"!pt-0"],title:(0,n.jsx)("span",{className:"font-bold",children:(0,n.jsx)(E.Z,{defaultMessage:"Notifications",id:"udFEGIc09X",description:"My Collections: Notifications settings popover: title"})}),content:(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-bold",children:(0,n.jsx)(E.Z,{defaultMessage:"Notify me",id:"/ZZbdLyyL1",description:"My Collections: Notifications settings popover: Notify me label"})}),(0,n.jsx)("p",{children:(0,n.jsx)(E.Z,{defaultMessage:"Send an email when holiday homes in this Collection are updated",id:"Bmf9XkVRJp",description:"My Collections: Notifications settings popover: Notify me description"})})]}),(0,n.jsx)(x.r,{small:!0,checked:s,onChange:t=>{let i=t.currentTarget.checked;r(i),e?.(i)}})]}),s&&!d&&(0,n.jsx)(N.P,{headline:(0,n.jsx)(E.Z,{defaultMessage:"Dates are not set",id:"uW1vRy3UoL",description:"My Collections: Notifications settings popover: Notify me description: headline"}),type:"warning",size:"small",className:"mt-2",children:(0,n.jsx)(E.Z,{defaultMessage:"You need to set dates for this collection in order to receive notifications.",id:"bYB7SArxwk",description:"My favourites: Notifications settings popover: Notify me description"})})]}),footer:c&&(0,n.jsx)(p.zx,{onClick:()=>l(!1),className:"w-full",children:(0,n.jsx)(E.Z,{defaultMessage:"Save",id:"T6jRnqQOC0",description:"My Collections: Notifications settings popover mobile: Save button"})}),className:"ns:w-[25.5rem]",children:(0,n.jsx)(g.D,{type:"button",active:i&&(a||s),pressed:a,onClick:()=>l(!0),icon:u.Z,className:"nl:!pr-1",children:(0,n.jsxs)("div",{ref:f,className:"flex items-center justify-end gap-1",children:[!c&&(s?(0,n.jsx)(E.Z,{defaultMessage:"Notifications on",id:"zZURP5uSAN",description:"My Collections: Notifications settings: trigger pill label"}):(0,n.jsx)(E.Z,{defaultMessage:"Notifications off",id:"k41WR04tSt",description:"My Collections: Notifications settings: trigger pill label"})),s&&!d&&(0,n.jsx)(y.Z,{delay:300,content:1,type:"warning",noRing:!0})]})})})})};function eN(){let e=(0,s.useRouter)(),t=e.query.collectionId||"";"string"==typeof t&&/[A-Z]/.test(t)&&e.replace(ef._j.userCollection(t.toLowerCase()));let i=(0,r.aN)({variables:{shortId:t},skip:!t});if(t)return(0,n.jsx)(l.G,{query:i,field:"favoriteList",renderLoading:()=>(0,n.jsx)("div",{className:"grid min-h-[50vh] animate-fade-in place-content-center",children:(0,n.jsx)(a.$,{})}),children:e=>e?(0,n.jsx)(eb,{list:e}):(0,n.jsx)("div",{children:"Not found"})})}},69813:function(e,t,i){"use strict";i.d(t,{X:function(){return l},x:function(){return a}});var n=i(99888);let a=(0,n.z)("header","border-b border-neutral-300 lg:mb-4.5 lg:mt-3 lg:py-4 nl:mb-4 nl:mt-2 nl:py-3"),l=(0,n.z)("h1","truncate font-serif lg:text-f2 lg:leading-tight nl:text-f2.5 nl:leading-normal")},74068:function(e,t,i){"use strict";i.d(t,{II:function(){return l},UN:function(){return s},u9:function(){return a}});var n=i(52983);let a="nl:transition-transform nl:duration-500 nl:ease-in-out";function l(e){return e.split(/[?#]/)[0]??""}function s(e,{elastic:t=!1,visible:i=!0}={}){return(0,n.useMemo)(()=>{switch(e){case"mobileMenu":return i?"nl:translate-y-[calc(var(--mobile-menu-attach)+0%)] nl:transition-transform nl:duration-500 nl:ease-in-out":"nl:translate-y-[calc(var(--mobile-menu-attach)+100%)] nl:transition-transform nl:duration-500 nl:ease-in-out";case"bottom":return t?"nl:translate-y-[--mobile-bottom-attach] nl:transition-transform nl:duration-[--mobile-bottom-attach-elastic-duration] nl:ease-in-out":"nl:translate-y-[--mobile-bottom-attach] nl:transition-transform nl:duration-500 nl:ease-in-out";default:return a}},[e,t,i])}},53251:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});
11var n=i(69092),a=i(117),l=i(66034);function s(e,t){(0,l.Z)(2,arguments);var i=(0,a.Z)(e),s=(0,n.Z)(t);return isNaN(s)?new Date(NaN):(s&&i.setDate(i.getDate()+s),i)}},30512:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(117),a=i(66034);function l(e,t){(0,a.Z)(2,arguments);var i=(0,n.Z)(e),l=(0,n.Z)(t);return i.getTime()<l.getTime()}},33212:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(74726),a=i(66034);function l(e,t){(0,a.Z)(2,arguments);var i=(0,n.Z)(e),l=(0,n.Z)(t);return i.getTime()===l.getTime()}},99917:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var n=i(117),a=i(66034);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){var t,i;if((0,a.Z)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==l(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach(function(e){var t=(0,n.Z)(e);(void 0===i||i<t||isNaN(Number(t)))&&(i=t)}),i||new Date(NaN)}},33389:function(e,t,i){"use strict";i.d(t,{l:function(){return c}});var n=i(97458),a=i(52983),l=i(95199),s=i(37863),r=i(17283),o=i(68);function c({className:e,style:t,imageSizes:i="(max-width: 630px) 90vw, (min-width: 640px) and (max-width: 1023px) 50vw, 292px",imageWidth:c=600,cover:d,preheader:u,href:f,header:h,body:m,icon:p,framed:g,target:b,centeredHeader:x,onClick:v,...y}){let[j,w]=(0,a.useState)(!1),k=(0,l.e)("cant-hover"),N=(0,l.e)("nl");return(0,n.jsxs)("article",{onMouseEnter:()=>{w(!0)},onMouseLeave:()=>{w(!1)},style:t,...y,className:["relative z-0 col-span-1 aspect-1 overflow-hidden bg-february",e,"group"].filter(Boolean).join(" "),children:[!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute inset-0 top-1/2 z-10 bg-gradient-to-t from-february/80 sm:from-february"}),(0,n.jsx)("div",{className:"absolute inset-0 z-10 bg-none backdrop-blur-0 transition-all duration-700 ease-out can-hover:group-hover:bg-february/60 can-hover:group-hover:backdrop-blur-sm"}),(0,n.jsx)("div",{className:"absolute inset-0",children:(0,n.jsx)("figure",{className:"relative h-0 overflow-hidden pb-full",children:d&&(0,n.jsx)(r.B0,{alt:`${h} cover image`,...d,width:c,height:c,sizes:i,wrapperStyle:"absolute inset-0",className:"origin-bottom object-cover object-center can-hover:transition can-hover:duration-700 can-hover:ease-out can-hover:group-hover:scale-105"})})})]}),g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute inset-0 z-10 bg-none backdrop-blur-0 transition-all duration-700 ease-out can-hover:group-hover:bg-forest-800/60 can-hover:group-hover:backdrop-blur-sm"}),(0,n.jsx)("div",{className:"absolute inset-0 bg-forest-800",children:(0,n.jsx)("span",{className:"absolute inset-3.5 bottom-[6rem] overflow-hidden",children:(0,n.jsx)(r.B0,{alt:`${h} cover image`,...d,url:d?.url||"",width:c,height:c/1.33,sizes:i,wrapperStyle:"h-full w-full",className:"h-full w-full origin-bottom object-cover can-hover:transform-gpu can-hover:transition can-hover:duration-700 can-hover:ease-out can-hover:group-hover:scale-105"})})})]}),(0,n.jsxs)("div",{className:"absolute inset-x-0 bottom-3.5 top-0 z-10 flex flex-col content-end justify-end p-3.5",children:[(0,n.jsxs)("div",{className:"flex w-full items-end justify-between gap-3",children:[(0,n.jsxs)(o.Q,{href:f,target:b,onClick:v,className:["no-underline before:absolute before:-inset-3.5 before:bg-transparent",x&&"w-full text-center"].filter(Boolean).join(" "),children:[u&&(0,n.jsx)("span",{className:["text-f7",g?"text-beach-100":"text-neutral-300"].filter(Boolean).join(" "),children:Array.isArray(u)?u.filter(Boolean).map((e,t)=>(0,n.jsx)("span",{className:"not-last:after:px-2 not-last:after:content-['\xb7']",children:e},t)):u}),(0,n.jsx)("h3",{className:["font-bold text-white",x&&"underline decoration-white/50",g?"line-clamp-1":"line-clamp-2"].filter(Boolean).join(" "),children:h})]}),p&&(0,n.jsx)("div",{className:"relative -top-[0.375rem]",children:p})]}),(0,n.jsx)(s.m,{transitionOptions:{mountOnEnter:!1,unmountOnExit:!1},duration:300,mounted:(N||k)&&!g||j,className:"-mb-3.5 w-full text-white ease-
11out-smooth",children:(0,n.jsx)("p",{className:"line-clamp-5 pt-2 sm:line-clamp-3 sm:text-f7",children:m})})]})]})}},24174:function(e,t,i){"use strict";i.d(t,{t:function(){return s}});var n=i(97458),a=i(1168),l=i(61716);function s({participants:{adults:e=0,children:t=0,infants:i=0,pets:s=0},group:o,type:c="conjunction"}){let d=(0,a.Z)(),u=[],f=o&&o.includes("adults"),h=o&&o.includes("children"),m=o&&o.includes("infants"),p=o&&o.includes("pets"),g=0;return f&&(g+=e),h&&(g+=t),m&&(g+=i),p&&(g+=s),g>0&&u.push(d.formatMessage(r.guests,{value:g})),!f&&e>0&&u.push(d.formatMessage(r.adults,{value:e})),!h&&t>0&&u.push(d.formatMessage(r.children,{value:t})),!m&&i>0&&u.push(d.formatMessage(r.infants,{value:i})),!p&&s>0&&u.push(d.formatMessage(r.pets,{value:s})),(0,n.jsx)(l.yX,{value:u,type:c})}let r=(0,l.vU)({guests:{defaultMessage:"{value, plural, one {# guest} other {# guests}}",id:"loZFB8RGM4"},adults:{defaultMessage:"{value, plural, one {# adult} other {# adults}}",id:"f3VQKdRZ6j"},children:{defaultMessage:"{value, plural, one {# child} other {# children}}",id:"MbwgbwhQdx"},infants:{defaultMessage:"{value, plural, one {# baby} other {# babies}}",id:"rVKmNde7gC"},pets:{defaultMessage:"{value, plural, one {# pet} other {# pets}}",id:"nVocpPzboJ"}})},78142:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(97458),a=i(86279),l=i.n(a),s=i(52983),r=i(49574),o=i(55157);function c({type:e="info",animate:t=!1,duration:i=300,delay:a=0,className:c,content:d,noRing:u}){let[f,h]=(0,s.useState)(!0);return(0,r.lR)(()=>{t&&d&&h(!1)},[d]),(0,n.jsxs)("span",{className:l().dynamic([["2cbf2d32f357e52c",[i,a]]])+" "+([c,"relative inline-grid justify-items-center text-f8"].filter(Boolean).join(" ")||""),children:[(0,n.jsx)(l(),{id:"2cbf2d32f357e52c",dynamic:[i,a],children:`@-webkit-keyframes scale-in{from{-webkit-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes scale-in{from{-moz-transform:scale(0);transform:scale(0)}to{-moz-transform:scale(1);transform:scale(1)}}@-o-keyframes scale-in{from{-o-transform:scale(0);transform:scale(0)}to{-o-transform:scale(1);transform:scale(1)}}@keyframes scale-in{from{-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.badge-content.__jsx-style-dynamic-selector{-webkit-animation:scale-in ${i}ms ${a}ms cubic-bezier(.1,1.75,.5,1)backwards;-moz-animation:scale-in ${i}ms ${a}ms cubic-bezier(.1,1.75,.5,1)backwards;-o-animation:scale-in ${i}ms ${a}ms cubic-bezier(.1,1.75,.5,1)backwards;animation:scale-in ${i}ms ${a}ms cubic-bezier(.1,1.75,.5,1)backwards}`}),t&&(0,n.jsx)(o.g,{scale:2,style:{animationDuration:`${1.2*i}ms`,animationDelay:f?`${a}ms`:`${-.3*i}ms`},className:["col-start-1 col-end-1 row-start-1 row-end-1 h-1 w-1 self-center !ring-4","info"===e&&"text-info/50","warning"===e&&"text-beach-300/50","success"===e&&"text-confirmation/50","error"===e&&"text-error/50"].filter(Boolean).join(" ")},d),(0,n.jsx)("span",{className:l().dynamic([["2cbf2d32f357e52c",[i,a]]])+" "+(["badge-content","relative z-10 col-start-1 col-end-1 row-start-1 row-end-1 inline-block h-1 min-w-1 rounded-full px-1 text-center font-bold",!u&&"ring-2 ring-white","info"===e&&"bg-info text-white","warning"===e&&"bg-beach-300 text-february","success"===e&&"bg-confirmation text-white","error"===e&&"bg-error text-white"].filter(Boolean).join(" ")||""),children:(0,n.jsx)("span",{style:{animationDelay:`${a+.4*i}ms`,animationFillMode:"both"},className:l().dynamic([["2cbf2d32f357e52c",[i,a]]])+" "+(["inline-block",d&&d?.toString().length<=2?"mx-[-0.125em]":"px-[0.125em]",t&&"animate-fade-in"].filter(Boolean).join(" ")||""),children:d})})]})}},87413:function(e,t,i){"use strict";i.d(t,{E:function(){return h}});var n=i(97458),a=i(47937),l=i(52983),s=i(49574),r=i(99888),o=i(23740),c=i(13091),d=i(80331),u=i(70858),f=i(34460);let h=(0,l.forwardRef)(({name:e,className:t,validation:i,...a},l)=>{let s=(0,f.v)(),r=s?.floating,o=s?.label,c=(0,n.jsx)(m,{ref:l,name:e,validation:i,className:t,...a});return r&&o?(0,n.jsx)(u.Ec,{label:o,children:c}):c});h.displayName="FieldTextarea";let m=(0,l.forwardRef)(({name:e,register:t,className:i,validation:f,onFocus:h,onBlur:m,onInput:p,onChange:g,onScroll:b,...x},v)=>{let y=(0,l.useContext)(d.f),j=(0,o.a)(),w=(0,u.Bo)(),k=(0,l.useRef)(void 0),{ref:N,onBlur:C,onChange:M,...S}=(0,c.k)(e,v,{required:x.required,disabled:x.disabled,...f},t),Z=(0,s.qq)(k,N);return(0,l.useEffect)(()=>{w&&k.current&&(w.setHasValue(!!k.current.value),w.setIsScrolled(k.current.scrollTop>0))},[w]),(0,n.jsx)(a.ys.Textarea,{ref:Z,onFocus:e=>{w?.setFocused(!0),h?.(e)},onBlur:e=>{w?.setFocused(!1),C?.(e),m?.(e)},onInput:e=>{w?.setHasValue(!!e.currentTarget.value),p?.(e)},onChange:e=>{M?.(e),g?.(e)},onScroll:e=>{w?.setIsScrolled(e.currentTarget.scrollTop>0),b?.(e)},...S,...x,className:[i,"w-full resize-y px-3",...j.cursor,...j.placeholder,...y?["w-0 shrink grow select-auto appearance-none border-0 bg-transparent","focus:outline-none focus:ring-0"]:[...j.base],(0,r.b)("py-3",w&&"pb-3 pt-3.5"),w&&"font-medium"].filter(
11Boolean).join(" ")})});m.displayName="TextareaElement"},27098:function(e,t,i){"use strict";i.d(t,{F:function(){return l}});var n=i(69905),a=i(52983);function l(e){return(0,a.useCallback)((t,i)=>{let a=e.current;return new Promise(e=>{if(!a||!t.features.length||i?.skip){e();return}let l=(0,n.VWR)(t);if(!l.every(Number.isFinite)){e();return}a.fitBounds(l,{maxZoom:12,...i}),a.once("idle",()=>{e()})})},[e])}},72751:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var n=i(97458),a=i(80447),l=i(91973),s=i(52983),r=i(44360),o=i(6553),c=i(98709),d=i(95199),u=i(37863),f=i(18011);function h({children:e,content:t,contentStyle:i=[],defaultOpen:h,open:p,onOpenChange:g,onCloseForced:b,modal:x,title:v,header:y,contentFooter:j,footer:w,hideFooter:k,fitInViewport:N,headerStyle:C=[],hideHeader:M=!1,headerCloseButton:S=!0,bodyCloseButton:Z=!1,positioning:O,onEscapeKeyDown:_,onInteractOutside:I,initialFocusEl:A,className:z,...F}){let B=(0,d.e)("nl"),P=(0,s.useRef)(),R=(0,s.useRef)(),{ref:L}=(0,r.Z)({onResize({height:e}){if("number"==typeof e&&"number"==typeof P.current&&R.current){let t=e-P.current,i=R.current.scrollTop;R.current.scrollTo({top:i+t})}P.current=e}});return B?(0,n.jsxs)(f.GR,{defaultOpen:h,open:p,onOpenChange:g,modal:x,onEscapeKeyDown:e=>{b?.(),_?.(e)},onInteractOutside:I,initialFocusEl:A,children:[(0,n.jsxs)(f.Vq,{className:z,...F,children:[!M&&(0,n.jsx)(f.fK,{shadow:!!(y||C.length),className:[...C].filter(Boolean).join(" "),children:(0,n.jsxs)("div",{ref:L,className:"flex w-full flex-wrap justify-between",children:[v&&(0,n.jsx)(f.$N,{asChild:!0,children:(0,n.jsx)("h1",{className:"flex items-center justify-start font-bold sm:text-f4 ns:text-f3",children:v})}),S&&(0,n.jsx)(f.GG,{onClick:b,className:"-m-2 ml-auto"}),y]})}),(0,n.jsxs)(f.a7,{ref:R,afterHeader:!!(y||C),className:["sm:[contain:strict]",...i].filter(Boolean).join(" "),children:[Z&&(0,n.jsx)(f.GG,{onClick:b,className:"absolute right-3 top-3 z-floating -m-2"}),(0,n.jsx)(o.n,{scrollRef:R,children:t})]}),j,w&&(0,n.jsx)(f.cN,{children:w})]}),(0,n.jsx)(f.hg,{asChild:!0,children:e})]}):(0,n.jsxs)(a.F3.Root,{defaultOpen:h,open:p,onOpenChange:({open:e})=>g?.(e),lazyMount:!0,portalled:!0,unmountOnExit:!0,onInteractOutside:I,positioning:{placement:"bottom",flip:!1,offset:{mainAxis:8},listeners:{ancestorResize:!0,ancestorScroll:!0,elementResize:!1,layoutShift:!1},...O},modal:x??!1,children:[(0,n.jsx)(a.F3.Trigger,{asChild:!0,children:e}),(0,n.jsx)(l.h,{children:(0,n.jsx)(a.F3.Positioner,{children:(0,n.jsxs)(a.F3.Content,{...F,className:[z,"z-overlay rounded-sm bg-white shadow-lg ring-1 ring-february ring-opacity-5 flex flex-col overflow-hidden will-change-transform data-[placement=top]:animate-slide-bottom data-[placement=bottom]:animate-slide-top data-[placement=left]:animate-slide-right data-[placement=right]:animate-slide-left data-[placement=closed]:pointer-events-none data-[placement=closed]:animate-fade-out",N&&"max-h-[calc(var(--available-height)-7rem)]"].filter(
11Boolean).join(" "),children:[(0,n.jsxs)("div",{ref:R,className:["overflow-y-auto p-4",...i,N&&"[mask-image:linear-gradient(to_bottom,rgba(0,0,0,1)_0,rgba(0,0,0,1)_calc(100%-2rem),transparent_100%)]"].filter(Boolean).join(" "),children:[(v||y)&&(0,n.jsx)("header",{className:["sticky top-0 z-30 mb-3.5",...C].filter(Boolean).join(" "),children:(0,n.jsxs)("div",{ref:L,className:"flex w-full flex-wrap items-center justify-between",children:[v&&(0,n.jsx)(a.F3.Title,{asChild:!0,children:(0,n.jsx)("h1",{className:"flex items-center justify-start sm:text-f4 ns:text-f3",children:v})}),S&&(0,n.jsx)(a.F3.CloseTrigger,{onClick:b,children:(0,n.jsx)(c.Z,{"aria-hidden":!0,className:"m-2 h-1 w-1"})}),y]})}),t]}),j,w&&(0,n.jsx)(u.m,{mounted:!k,children:(0,n.jsx)(m,{className:"z-30",children:w})})]})})})]})}let m=f.cN}},function(e){e.O(0,[4138,1367,6028,5809,5483,7132,6205,2790,9905,9630,8360,8439,625,3361,8195,9627,299,6914,2778,5629,2888,9774,179],function(){return e(e.s=10724)}),_N_E=e.O()}]);
12//# sourceMappingURL=[collectionId]-044caa010396fc99.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.