1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];if(null!=l)for(var a in l)l.hasOwnProperty(a)&&(e[a]=l[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:splash":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fb03598b-fdfd-498f-b7f1-d5ac44642bee",e._sentryDebugIdIdentifier="sentry-dbid-fb03598b-fdfd-498f-b7f1-d5ac44642bee")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2163],{2118:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r});var a=l(95155),s=l(15239);let n=e=>{let{src:t,width:l,height:a,quality:s}=e;return"".concat(t,"?width=").concat(l,"&quality=").concat(s||75,"&height=").concat(a)},r=e=>(0,a.jsx)(s.default,{loader:n,...e})},2744:(e,t,l)=>{l.d(t,{default:()=>n});var a=l(95155),s=l(15239);let n=e=>{let{src:t,...l}=e;return(0,a.jsx)(s.default,{src:"".concat("https://splash.thethinkingtraveller.com").concat(t),...l,unoptimized:!0})}},5779:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(95155);let s=e=>(0,a.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 12 12",children:(0,a.jsx)("path",{d:"M6 0a.75.75 0 0 1 .75.75v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5H.75a.75.75 0 1 1 0-1.5h4.5V.75A.75.75 0 0 1 6 0Z"})})},7311:(e,t,l)=>{l.r(t),l.d(t,{default:()=>o});var a=l(95155),s=l(79435),n=l(43721),r=l(52619),i=l.n(r),c=l(20063);function o(e){let{children:t,href:l,className:r,trackEvent:o,eventName:d,eventParams:u,variant:m="solid",color:x="dark",size:h="medium"}=e,g=(0,n.LJ)(),f=(0,c.useRouter)();return(0,a.jsx)(s.Button,{as:i(),href:l,onClick:e=>{e.preventDefault();let t=e.currentTarget.getAttribute("href");if(t&&o&&d){u||(u={});let e=!1,l=()=>{e||(e=!0,f.push(t))},a=window.setTimeout(l,500);g[d](u,()=>{window.clearTimeout(a),l()});return}t&&f.push(t)},className:r,variant:m,color:x,size:h,children:t})}},11031:(e,t,l)=>{l.d(t,{default:()=>x});var a=l(95155),s=l(32763),n=l(79435),r=l(37808),i=l(43721),c=l(47957),o=l.n(c),d=l(52619),u=l.n(d),m=l(12115);function x(e){let{properties:t,cta:l,buttonColour:c="dark"}=e,[d,x]=(0,m.useState)(!1),[h,g]=(0,m.useState)(),f=(0,i.LJ)();return d||window.addEventListener("resize",o()(()=>x(!0),300)),(0,m.useEffect)(()=>{h&&(x(h.canScrollNext()||h.canScrollPrev()),h.on("resize",()=>{x(h.canScrollNext()||h.canScrollPrev())}))},[d,h]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Carousel,{setApi:g,opts:{active:d},children:[(0,a.jsx)(r.CarouselContent,{className:"items-center ml-6 mr-10 lg:ml-4 lg:mr-8 gap-x-2 lg:gap-x-4 ".concat(!d&&"justify-center"),children:t.map((e,t)=>(0,a.jsx)(r.CarouselItem,{className:"basis-auto",children:(0,a.jsx)(s.A,{title:e.romanceText,imageSmall:e.cardImageSmall,imageLarge:e.cardImageLarge,imageFallback:e.heroImageDesktop,link:e.path,name:e.name,description:"".concat(e.regionName,", ").concat(e.totalNumberOfGuests," Guests"),size:t%2?"small":"large"},e.slug)},e.slug))}),d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.CarouselPrevious,{className:"px-0 transition-all left-4 lg:left-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light"}),(0,a.jsx)(r.CarouselNext,{className:"px-0 transition-all hover:bg-stone-light bg-stone-white text-dark-black lg:right-10 right-4 disabled:opacity-0"})]})]}),l&&(null==l?void 0:l.link)&&(null==l?void 0:l.text)&&(0,a.jsx)("h3",{className:"flex justify-center pt-10 px-4",children:(0,a.jsx)(n.Button,{as:u(),href:l.link,variant:"outline",color:c,onClick:()=>{(null==l?void 0:l.trackEvent)&&(null==l?void 0:l.link)&&f.trackViewAllVillasCTA({path:l.link})},className:"w-full sm:w-auto sm:min-w-80",children:l.text})})]})}},13406:(e,t,l)=>{l.d(t,{Xi:()=>o,av:()=>d,j7:()=>c,tU:()=>i});var a=l(95155),s=l(12115),n=l(25667),r=l(64269);let i=n.bL,c=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)(n.B8,{ref:t,className:(0,r.cn)("inline-flex h-10 items-center justify-center rounded-md bg-slate-100 p-1 text-slate-500 dark:bg-slate-800 dark:text-slate-400",l),...s})});c.displayName=n.B8.displayName;let o=s.forwardRef((e,t)=>
1{let{className:l,...s}=e;return(0,a.jsx)(n.l9,{ref:t,className:(0,r.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-slate-950 data-[state=active]:shadow-sm dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300 dark:data-[state=active]:bg-slate-950 dark:data-[state=active]:text-slate-50",l),...s})});o.displayName=n.l9.displayName;let d=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)(n.UC,{ref:t,className:(0,r.cn)("mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300",l),...s})});d.displayName=n.UC.displayName},13777:(e,t,l)=>{l.r(t),l.d(t,{Bedrooms:()=>M,default:()=>z});var a=l(95155),s=l(68310),n=l(5779),r=l(48363);function i(e){let{value:t=0,onChange:l=()=>{},minValue:s=0,maxValue:i,disabled:c=!1,addPlusAfterValue:o=!1,zeroLabel:d}=e;return(0,a.jsxs)("div",{className:"flex items-center ".concat(c?"opacity-40":"opacity-100"),children:[(0,a.jsx)("button",{className:"p-2 transition-colors touch-manipulation enabled:hover:bg-stone-light enabled:focus-visible:bg-stone-light enabled:active:bg-yellow-stone/60 ".concat(t===s?"opacity-40":"opacity-100"),onClick:function(e){e.preventDefault(),t>s&&l(t-1)},disabled:t===s||c,children:(0,a.jsx)(r.A,{strokeWidth:1,className:"h-3 aspect-square"})}),(0,a.jsxs)("div",{className:"w-8 text-center uppercase no-translate",translate:"no",children:[0===t&&d?d:t,o&&t>0&&t!==i?"+":""]}),(0,a.jsx)("button",{className:"p-2 transition-colors touch-manipulation enabled:hover:bg-stone-light enabled:focus-visible:bg-stone-light enabled:active:bg-yellow-stone/60 ".concat(t===i?"opacity-40":"opacity-100"),onClick:function(e){e.preventDefault(),(!i||i&&t<i)&&l(t+1)},disabled:t===i||c,children:(0,a.jsx)(n.A,{strokeWidth:1,className:"h-3 aspect-square"})})]})}var c=l(13496),o=l(73457),d=l(76444),u=l(78334),m=l(20243),x=l(64269),h=l(67186),g=l(12115);function f(e){let{countries:t,setCountries:l,regions:s,setRegions:n,preselectedDestination:r,clearPreselectedDestination:i}=e,{body:f,isLoading:p,isError:v}=(0,h.y)();(0,g.useEffect)(()=>{if(r&&(null==f?void 0:f.data.countries)){if("country"===r.type){let e=f.data.countries.find(e=>e.slug===r.slug);e&&0===t.length&&l([e])}"region"===r.type&&f.data.countries.forEach(e=>{e.regions.forEach(e=>{e.slug===r.slug&&e&&0===s.length&&n([e])})})}},[null==f?void 0:f.data.countries,r,t.length,s.length,l,n]);let j=(e,l)=>!!(s.some(t=>t.slug===e.slug)||t.includes(l)),w=(e,a,r)=>{if(e)n([...s,a]);else if(!e){if(i&&i(),t.includes(r)){l(t.filter(e=>e.slug!==r.slug)),n([...s,...r.regions.filter(e=>e.slug!==a.slug)]);return}n(s.filter(e=>e.slug!==a.slug))}};return(0,a.jsx)("div",{children:(0,a.jsxs)(a.Fragment,{children:[p&&!v&&(0,a.jsx)(m.E,{className:"flex items-center justify-center min-h-48",children:(0,a.jsx)(u.k,{})}),v&&(0,a.jsxs)(m.E,{className:"flex items-center justify-center gap-4 min-h-48",children:[(0,a.jsx)(u.k,{}),(0,a.jsx)("p",{children:"Error loading destinations"})]}),f&&(0,a.jsx)(c.Accordion,{type:"multiple",children:f.data.countries.map(e=>(0,a.jsxs)(c.AccordionItem,{value:e.id,className:"px-6 py-4 border-b border-stone-light last:border-b-0",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(o.S,{id:e.slug,checked:!!(t.some(t=>t.slug===e.slug)||e.regions.every(e=>s.some(t=>t.slug===e.slug)))||!!e.regions.some(e=>s.some(t=>t.slug===e.slug))&&"indeterminate",onCheckedChange:a=>{a?(l([...t,e]),n(s.filter(t=>!e.regions.some(e=>e.slug===t.slug)))):!a&&(i&&i(),l(t.filter(t=>t.slug!==e.slug)),n(s.filter(t=>!e.regions.some(e=>e.slug===t.slug))))}}),(0,a.jsx)(d.Label,{htmlFor:e.slug,className:"w-full font-normal cursor-pointer sm:w-auto no-translate",translate:"no",children:e.name})]}),(0,a.jsx)("div",{className:"grow",children:(0,a.jsx)(c.AccordionTrigger,{className:"justify-end p-2"})})]}),(0,a.jsx)(c.AccordionContent,{className:"pb-0",children:e.groups.length?(0,a.jsx)(c.Accordion,{type:"multiple",className:"overflow-y-auto text-left max-h-48",children:e.groups.map(r=>(0,a.jsxs)(c.AccordionItem,{value:(0,x.xQ)(r.name),className:"ml-3 border-b-0",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 grow",children:[(0,a.jsx)(o.S,{id:(0,x.xQ)(r.name),checked:!!(t.some(t=>t.slug===e.slug)||r.regions.every(e=>s.some(t=>t.slug===e.slug)))||!!r.regions.some(e=>s.some(t=>t.slug===e.slug))&&"indeterminate",onCheckedChange:a=>((e,a,r)=>{let c=a.regions.map(e=>e.slug);
1if(e){if(t.some(e=>e.slug===r.slug))return;let e=a.regions.filter(e=>!s.some(t=>t.slug===e.slug));n([...s,...e])}else{if(i&&i(),t.some(e=>e.slug===r.slug)){l(t.filter(e=>e.slug!==r.slug)),n([...s.filter(e=>!c.includes(e.slug)),...r.regions.filter(e=>!c.includes(e.slug))]);return}n(s.filter(e=>!c.includes(e.slug)))}})(a,r,e)}),(0,a.jsx)(d.Label,{htmlFor:(0,x.xQ)(r.name),className:"w-full font-normal cursor-pointer sm:w-auto py-2 grow no-translate",translate:"no",children:r.name})]}),(0,a.jsx)("div",{className:"grow",children:(0,a.jsx)(c.AccordionTrigger,{className:"justify-end p-2"})})]}),(0,a.jsx)(c.AccordionContent,{className:"ml-4 pb-1 space-y-4",children:r.regions.map(t=>(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(o.S,{id:t.slug,checked:j(t,e),onCheckedChange:l=>w(l,t,e)}),(0,a.jsx)(d.Label,{htmlFor:t.slug,className:"w-full font-normal cursor-pointer sm:w-auto no-translate",translate:"no",children:t.name})]},t.id))})]},(0,x.xQ)(r.name)))}):(0,a.jsx)(c.Accordion,{type:"multiple",className:"mt-4 space-y-4 text-left",children:e.regions.map(t=>(0,a.jsx)(c.AccordionItem,{value:t.slug,className:"ml-4 border-b-0",children:(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(o.S,{id:t.slug,checked:j(t,e),onCheckedChange:l=>w(l,t,e)}),(0,a.jsx)(d.Label,{htmlFor:t.slug,className:"w-full font-normal cursor-pointer sm:w-auto",translate:"no",children:t.name})]})})},t.id))})})]},e.id))})]})})}var p=l(79435),v=l(26333),j=l(43721),w=l(73971),b=l(25919),N=l(20063),k=l(13406),y=l(45717),S=l(67874),C=l(67909);let A=()=>Promise.all([l.e(7713),l.e(7520),l.e(3704),l.e(4615)]).then(l.bind(l,91833)),_=(0,C.default)(()=>A().then(e=>e.HeroSearchCalendar),{ssr:!1,loading:()=>(0,a.jsx)("div",{className:"min-h-[22rem] w-[17.25rem]","aria-hidden":"true"})}),E=()=>Promise.all([l.e(5767),l.e(5426)]).then(l.bind(l,19960)),L=(0,C.default)(E,{ssr:!1,loading:()=>(0,a.jsx)("div",{className:"min-h-[22rem] w-[20rem]","aria-hidden":"true"})}),P=()=>{A().catch(()=>{}),E().catch(()=>{})};function z(e){let{selectedDestination:t}=e,l=(0,j.LJ)(),s=(0,N.usePathname)(),n=(0,N.useSearchParams)(),[r,i]=(0,g.useState)(0),[c,o]=(0,g.useState)(),[d,u]=(0,g.useState)(),[m,x]=(0,g.useState)(n.get("dateSelectionType")||"exact"),h="exact"===m?c:d,[f,v]=(0,g.useState)(y.Oi),[w,k]=(0,g.useState)(0),[S,C]=(0,g.useState)(0),[A,_]=(0,g.useState)(0),[E,L]=(0,g.useState)([]),[P,z]=(0,g.useState)([]),[F,D]=(0,g.useState)({type:(null==t?void 0:t.destinationType)||"",slug:(null==t?void 0:t.destinationSlug)||""}),M=e=>{e.preventDefault(),l.trackHeroSearchBarSubmit({slug:s});let t=e.currentTarget;setTimeout(()=>{t&&t.submit()},250)};return(0,g.useEffect)(()=>{(null==h?void 0:h.from)&&(null==h?void 0:h.to)&&l.trackResultsDate({startDate:(0,b.Fv)(h.from),endDate:(0,b.Fv)(h.to)})},[h,l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"container sm:hidden",children:(0,a.jsxs)("form",{method:"get",action:"/results",onSubmit:M,children:[(0,a.jsx)(T,{range:h,heroNumberOfNights:f,bedrooms:r,adults:w,childs:S,infants:A,countries:E,regions:P,preselectedDestination:F}),(0,a.jsx)(p.Button,{className:"w-full mx-auto no-translate",translate:"no",size:"large",type:"submit",children:"Search Villas"})]})}),(0,a.jsx)("form",{className:"container hidden mx-auto sm:block",method:"get",action:"/results",onSubmit:M,children:(0,a.jsxs)("div",{className:"sm:-space-x-px sm:grid sm:grid-flow-col lg:grid-cols-5",children:[(0,a.jsx)("div",{className:"hidden sm:flex weglot_translation",children:(0,a.jsx)(B,{countries:E,setCountries:L,regions:P,setRegions:z,preselectedDestination:F,clearPreselectedDestination:()=>{D(null)}})}),(0,a.jsx)("div",{className:"hidden md:flex weglot_translation",children:(0,a.jsx)(I,{exactRange:c,setExactRange:o,flexibleRange:d,setFlexibleRange:u,activeTab:m,setActiveTab:x,numberOfNights:f,setNumberOfNights:v})}),(0,a.jsx)("div",{className:"hidden lg:flex weglot_translation",children:(0,a.jsx)(R,{adults:w,setAdults:k,childs:S,setChilds:C,infants:A,setInfants:_})}),(0,a.jsx)("div",{className:"hidden lg:flex weglot_translation",children:(0,a.jsx)(V,{bedrooms:r,setBedrooms:i})}),(0,a.jsx)(T,{range:h,heroNumberOfNights:f,bedrooms:r,adults:w,childs:S,infants:A,countries:E,regions:P,preselectedDestination:F}),(0,a.jsx)(p.Button,{as:"button",className:"w-full sm:ml-0! no-translate weglot_translation",size:"large",translate:"no",type:"submit",children:"Search Villas"})]})})]})}function T(e){let{range:t,heroNumberOfNights:l,bedrooms:s,adults:n,childs:r,infants:i,countries:c,regions:o,preselectedDestination:d}=e,u=(0,w._)("towerSearchParams"),m=(0,w._)("sortByLowPrice"),{body:x}=(0,h.y)(),g=(0,N.useSearchParams)().get("dateSelectionType")||"exact";if(d&&x)if("country"===d.type&&0===c.length){let e=x.data.countries.find(e=>e.slug===d.slug);e&&(c=[e])}
1else"region"===d.type&&0===o.length&&x.data.countries.forEach(e=>{e.regions.forEach(e=>{e.slug===d.slug&&e&&(o=[e])})});if(u)return(0,a.jsxs)(a.Fragment,{children:[c.length>0&&c.map(e=>(0,a.jsx)("input",{type:"hidden",name:"countries",value:e.slug.toString()},e.id)),o.length>0&&o.map(e=>(0,a.jsx)("input",{type:"hidden",name:"regions",value:e.slug.toString()},e.id)),n>0&&(0,a.jsx)("input",{type:"hidden",name:"adults",value:n.toString()}),n>0&&r>0&&(0,a.jsx)("input",{type:"hidden",name:"children",value:r.toString()}),n>0&&i>0&&(0,a.jsx)("input",{type:"hidden",name:"infants",value:i.toString()}),s>0&&(0,a.jsx)("input",{type:"hidden",name:"bedrooms",value:s.toString()}),(null==t?void 0:t.from)&&(null==t?void 0:t.to)&&"exact"===g&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"hidden",name:"startDate",value:(0,b.Fv)(t.from)}),(0,a.jsx)("input",{type:"hidden",name:"endDate",value:(0,b.Fv)(t.to)})]}),(null==t?void 0:t.from)&&(null==t?void 0:t.to)&&"flexible"===g&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"hidden",name:"flex_startDate",value:(0,b.Fv)(t.from)}),(0,a.jsx)("input",{type:"hidden",name:"flex_endDate",value:(0,b.Fv)(t.to)}),(0,a.jsx)("input",{type:"hidden",name:"flex_NumberOfNights",value:l}),(0,a.jsx)("input",{type:"hidden",name:"dateSelectionType",value:g})]}),m&&(c.length>0||o.length>0||n>0||r>0||i>0||s>0||(null==t?void 0:t.from)&&(null==t?void 0:t.to))&&(0,a.jsx)("input",{type:"hidden",name:"sort",value:"priceLow"})]});let f=[...c.length>0?c.map(e=>e.regions.map(e=>e.id).join(",")):[],...o.length>0?o.map(e=>e.id):[]].join(",");return(0,a.jsxs)(a.Fragment,{children:[f.length>0&&(0,a.jsx)("input",{type:"hidden",name:"des",value:f}),n>0&&(0,a.jsx)("input",{type:"hidden",name:"people",value:"".concat(n+r)}),s>0&&(0,a.jsx)("input",{type:"hidden",name:"rooms",value:s.toString()}),(null==t?void 0:t.from)&&(null==t?void 0:t.to)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"hidden",name:"from",value:(0,b.t1)(t.from)}),(0,a.jsx)("input",{type:"hidden",name:"to",value:(0,b.t1)(t.to)})]})]})}function F(e){let{triggerLabel:t,children:l,onOpenChange:n,open:r,onWarm:i}=e;return(0,a.jsxs)(v.AM,{open:r,onOpenChange:n,children:[(0,a.jsxs)(v.Wv,{className:"flex items-center justify-between flex-1 px-6 capitalize group bg-stone-white ring-1 ring-inset ring-yellow-stone text-dark-black no-translate",translate:"no",onPointerEnter:i,onFocus:i,children:[t,(0,a.jsx)(s.A,{className:"w-4 h-4 transition-transform duration-300 shrink-0 group-data-[state=open]:rotate-180"})]}),(0,a.jsx)(v.hl,{sideOffset:-1,className:"p-0 overflow-auto rounded-none shadow-none border-none text-left ring-1 ring-inset ring-yellow-stone min-h-(--radix-popover-trigger-height) w-auto min-w-(--radix-popover-trigger-width)",children:l})]})}function B(e){let{countries:t,setCountries:l,regions:s,setRegions:n,preselectedDestination:r,clearPreselectedDestination:i}=e,c="Destinations";if(null==r?void 0:r.slug){var o;c=null==r||null==(o=r.slug)?void 0:o.replace(/-/g," ")}else 1===t.length?c=t[0].name:1===s.length&&(c=s[0].name);if(t.length>1||s.length>0){let e=t.length+s.length;c="".concat(e," ").concat((0,b.aX)("destination",e))}return(0,a.jsx)(F,{triggerLabel:c,children:(0,a.jsx)(f,{countries:t,setCountries:l,regions:s,setRegions:n,preselectedDestination:r,clearPreselectedDestination:i})})}function I(e){var t;let{exactRange:l,setExactRange:s,flexibleRange:n,setFlexibleRange:r,activeTab:i,setActiveTab:c,numberOfNights:o,setNumberOfNights:d}=e,u=(0,N.useSearchParams)(),m=(0,N.usePathname)(),{replace:x}=(0,N.useRouter)(),[h,f]=(0,g.useState)(!1),[p,v]=(0,g.useState)(null),j=new URLSearchParams(u.toString()),w=null!=(t=j.get("dateSelectionType"))?t:"exact",y="Dates";return"exact"===w&&(null==l?void 0:l.from)&&(null==l?void 0:l.to)?y=(0,b.sI)(l.from,l.to)||y:"flexible"===w&&p&&(y=p),(0,a.jsx)(F,{triggerLabel:y,onOpenChange:f,open:h,onWarm:P,children:(0,a.jsxs)(k.tU,{onValueChange:e=>{c(e),j.set("dateSelectionType",e),x("".concat(m,"?").concat(j.toString()),{scroll:!1})},defaultValue:w,className:"px-2",children:[(0,a.jsxs)(k.j7,{className:"bg-stone-light max-w-lg m-2 mx-auto grid gap-2 grid-cols-2",children:[(0,a.jsx)(k.Xi,{value:"exact",className:"uppercase hover:bg-stone-white/40 hover:text-dark-black/80",children:"Calendar"}),(0,a.jsx)(k.Xi,{value:"flexible",className:"uppercase hover:bg-stone-white/40 hover:text-dark-black/80",children:"Flexible"})]}),(0,a.jsxs)(S.o,{onError:()=>f(!1),children:[(0,a.jsx)(k.av,{value:"exact",children:(0,a.jsx)(_,{range:l,setRange:s,isPopoverOpen:h})}),(0,a.jsx)(k.av,{value:"flexible",children:(0,a.jsx)(L,{className:"max-w-xs",range:n,setRange:r,heroNumberOfNights:o,setHeroNumberOfNights:d,onSelectionChange:v,onApply:()=>{f(!1)}})})]})]})})}function R(e){let{adults:t,setAdults:l,childs:s,setChilds:n,infants:r,setInfants:i}=e,c="Guests";return(t||s||r)&&(c="".concat(t+s+r," ").concat((0,b.aX)("guest",t+s+r))),(0,a.jsx)(F,{triggerLabel:c,children:(0,a.jsx)(D,{adults:t,setAdults:l,childs:s,setChilds:n,infants:r,setInfants:i})})}function D(e){let{adults:t,setAdults:l,childs:s,setChilds:n,infants:r,setInfants:c}=e;return(0,g.useEffect)(()=>{t<1&&(n(0),c(0))},[t,n,c]),(0,a.jsxs)("div",{className:"px-6 py-4 space-y-3 text-sm",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsxs)("label",{translate:"no",children:["Adults",(0,a.jsx)("div",{className:"text-xs capitalize text-dark-black/70",children:"Ages 13+"})]}),(0,a.jsx)(i,{value:t,onChange:e=>{l(e)},maxValue:24})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsxs)("label",{translate:"no",children:["Children",(0,a.jsx)("div",{className:"text-xs capitalize text-dark-black/70",children:"Ages 2-12"})]}),(0,a.jsx)(i,{value:s,onChange:e=>{n(e)},maxValue:24,disabled:t<1})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsxs)("label",{translate:"no",children:["Infants",(0,a.jsx)("div",{className:"text-xs capitalize text-dark-black/70",children:"Under 2"})]}),(0,a.jsx)(i,{value:r,onChange:e=>{c(e)},maxValue:4,disabled:t<1})]})]})}function V(e){let{bedrooms:t,setBedrooms:l}=e,s=t?"".concat(t," ").concat((0,b.aX)("bedroom",t)):"bedrooms";return(0,a.jsx)(F,{triggerLabel:s,children:(0,a.jsx)(M,{bedrooms:t,setBedrooms:l})})}function M(e){let{bedrooms:t,setBedrooms:l,maxBedrooms:s=12}=e;return(0,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 text-sm",children:[(0,a.jsxs)("label",{translate:"no",children:["Bedrooms"," ",(0,a.jsxs)("span",{className:"text-xs text-dark-black/60",children:["(1 - ",s,")"]})]}),(0,a.jsx)(i,{value:t,onChange:l,maxValue:s,addPlusAfterValue:!0,zeroLabel:"All"})]})}},14733:(e,t,l)=>{l.d(t,{Ay:()=>i});var a=l(95155),s=l(64269),n=l(12115);let r=e=>{if("string"!=typeof e)throw Error("Invalid input. The text parameter must be a string.");let t=["the","by","to","is","its","through","into","in","at","on","of","for","and","near","a","an","with","here","de","la","our","your","await!","exclusive"],l=e.trim().split(" ");return l.map((e,a)=>"the"===e.toLowerCase()&&"Thinking"===l[a+1]&&"Traveller"===l[a+2]?{value:e,type:"uppercase"}:{value:e,type:t.includes(e.toLowerCase())?"normal":"uppercase"}).map(e=>"lifelong"===e.value.toLowerCase()||"memories"===e.value.toLowerCase()?{value:e.value,type:"italic"}:e)};function i(e){let{text:t,className:l,as:i}=e;return(0,a.jsx)(i||"p",{className:(0,s.cn)("font-serif text-balance leading-tight weglot_translation",l),children:r(t).map((e,l)=>(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("span",{className:"".concat("uppercase"===e.type?"uppercase":"italic"),children:e.value}),l<r(t).length-1&&" "]},l))})}},19974:(e,t,l)=>{l.d(t,{default:()=>n});var a=l(95155),s=l(54306);function n(){return(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault();{let t=new FormData(e.currentTarget).get("email");
1sessionStorage.setItem("newsletter_prefill_email",t),location.href="/newsletter"}},className:"w-full pt-10",children:[(0,a.jsx)("label",{htmlFor:"email",className:"sr-only weglot_translation",children:"Email"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:"email",name:"email",id:"email",className:"block w-full h-16 px-6 py-3 pr-16 tracking-tight border border-stone-light focus:outline-hidden focus:ring-2 text-dark-black placeholder:text-dark-black focus:ring-inset focus:ring-stone-light bg-stone-white weglot_translation",placeholder:"Enter email address",required:!0}),(0,a.jsxs)("button",{type:"submit",className:"absolute inset-y-0 right-0 grid items-center justify-center aspect-square weglot_translation",children:[(0,a.jsx)("span",{className:"sr-only weglot_translation",children:"Submit"}),(0,a.jsx)(s.A,{className:"w-5 h-5 fill-dark-black"})]})]})]})}},21969:(e,t,l)=>{l.d(t,{default:()=>c});var a=l(95155),s=l(79435);let n=e=>(0,a.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",children:(0,a.jsx)("path",{d:"M3.398 12.667c-.307 0-.563-.103-.769-.309a1.045 1.045 0 0 1-.308-.769V4.41c0-.307.102-.563.308-.769.206-.205.462-.308.769-.308h7.179c.307 0 .563.103.769.308.205.206.308.462.308.769v3.102l2.026-2.025v5.026l-2.026-2.026v3.103c0 .307-.103.563-.308.768-.206.206-.462.309-.769.309H3.398Zm0-.667h7.179c.12 0 .218-.038.295-.115a.402.402 0 0 0 .115-.295V4.41a.402.402 0 0 0-.115-.295.402.402 0 0 0-.295-.115H3.398a.402.402 0 0 0-.295.115.402.402 0 0 0-.116.295v7.18c0 .12.039.218.116.294a.402.402 0 0 0 .295.115Z"})});var r=l(51834),i=l(861);function c(e){let{videoId:t,propertyName:l,label:c="Watch Celebrations Video",className:o}=e;return(0,a.jsxs)(r.lG,{modal:!0,children:[(0,a.jsx)(r.zM,{asChild:!0,children:(0,a.jsxs)(s.Button,{variant:"underline",size:"small",className:"gap-4 px-0! no-underline text-olive-rich hover:text-olive-rich/70 ".concat(o||""),ariaLabel:"".concat(c," for ").concat(l),children:[(0,a.jsx)(n,{className:"size-4 shrink-0","aria-hidden":!0}),(0,a.jsx)("span",{className:"underline decoration-1 underline-offset-4",children:c})]})}),(0,a.jsxs)(r.Cf,{className:"w-full p-0 overflow-hidden max-w-screen-2xl max-h-svh",children:[(0,a.jsx)(i.s6,{asChild:!0,children:(0,a.jsxs)("div",{children:[(0,a.jsxs)(r.L3,{children:[l," celebration video"]}),(0,a.jsxs)(r.rr,{children:[c," for ",l,". Press Escape to close."]})]})}),(0,a.jsx)("div",{className:"w-full aspect-video max-h-svh",children:(0,a.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(t,"?rel=0&modestbranding=1&autoplay=1&mute=1"),title:"".concat(l," celebration video"),className:"w-full h-full border-0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})]})}},32763:(e,t,l)=>{l.d(t,{A:()=>o});var a=l(95155),s=l(52619),n=l.n(s);l(20243);var r=l(81080),i=l(10346),c=l(79435);function o(e){let{title:t,imageSmall:l,imageLarge:s,imageFallback:r,link:i,name:o,description:u,size:m="large"}=e;return(0,a.jsx)("div",{className:"w-[280px] lg:w-[412px]",children:(0,a.jsxs)(n(),{href:"/".concat(i),className:"flex justify-center py-6 px-4 bg-yellow-stone/50 relative aspect-4/5 group",children:[(0,a.jsx)("div",{className:"absolute inset-0",children:(0,a.jsx)(d,{size:m,imageSmall:l,imageLarge:s,imageFallback:r})}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[#222]/30"}),(0,a.jsxs)("div",{className:"relative flex flex-col items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"leading-snug text-center text-3xl lg:text-5xl font-serif text-stone-white text-pretty no-translate",children:o}),o&&(0,a.jsx)("h4",{className:"text-sm lg:text-base font-medium leading-snug tracking-widest text-center uppercase text-stone-white weglot_translation",children:u})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-y-2",children:[u&&(0,a.jsx)("h5",{className:"uppercase font-serif text-stone-white text-xl lg:text-2xl text-center text-balance weglot_translation",children:t}),(0,a.jsx)(c.Button,{variant:"outline",color:"light",size:"x-small",className:"group-hover:opacity-70",children:"View Details"})]})]})]})})}function d(e){let{size:t="large",imageSmall:l,imageLarge:s,imageFallback:n}=e;return"large"===t?(0,a.jsxs)(a.Fragment,{children:[s&&(0,a.jsx)(r.A,{src:"https://www.thethinkingtraveller.com".concat(s),alt:"",width:412,height:515,className:"object-cover w-full h-auto"}),!s&&n&&(0,a.jsx)(i.default,{src:"https://www.thethinkingtraveller.com".concat(n),width:412,height:515,className:"object-cover w-full h-full",resize:i.Resize.Fill,useAutoGravity:!0})]}):"small"===t?(0,a.jsxs)(a.Fragment,{children:[l&&(0,a.jsx)(r.A,{src:"https://www.thethinkingtraveller.com/".concat(l),alt:"",width:412,height:343,className:"object-cover w-full h-full"}),!l&&n&&(0,a.jsx)(i.default,{src:"https://www.thethinkingtraveller.com/".concat(n),width:412,height:343,className:"object-cover w-full h-full",resize:i.Resize.Fill,useAutoGravity:!0})]}):void 0}},33025:(e,t,l)=>{l.r(t),l.d(t,{default:()=>n});var a=l(95155),s=l(12115);function n(e){let{vimeoId:t,hashId:l,media:n,className:r,title:i="Backgroun
1d video"}=e,[c,o]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=new AbortController,t=()=>{},l=()=>{t(),o(!0)},a=()=>{if(t(),"function"==typeof requestIdleCallback){let e=requestIdleCallback(l,{timeout:2e3});t=()=>cancelIdleCallback(e)}else{let e=window.setTimeout(l,0);t=()=>window.clearTimeout(e)}},s=()=>{"complete"===document.readyState?a():window.addEventListener("load",a,{once:!0,signal:e.signal})};if(!n)return s(),()=>{e.abort(),t()};let r=window.matchMedia(n),i=()=>{r.matches?s():(t(),o(!1))};return i(),r.addEventListener("change",i,{signal:e.signal}),()=>{e.abort(),t()}},[n]),!c)return null;let d=new URLSearchParams({...l&&{h:l},background:"1",autoplay:"1",loop:"1",byline:"1",title:"1",dnt:"1"});return(0,a.jsx)("iframe",{src:"https://player.vimeo.com/video/".concat(t,"?").concat(d),title:i,className:r,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0})}},37592:(e,t,l)=>{l.d(t,{default:()=>x});var a=l(95155),s=l(15239),n=l(52619),r=l.n(n);function i(e){let{year:t,title:l,image:n,description:i,linkCTA:c}=e;return(0,a.jsxs)("div",{className:"w-[250px] h-full relative",children:[c?(0,a.jsx)(r(),{href:c,target:"_blank",children:n?(0,a.jsx)(s.default,{src:n,width:500,height:1e3,className:"w-[250px] h-[400px] object-cover",alt:"".concat(l)}):(0,a.jsx)("div",{className:"w-[250px] h-[400px] bg-ionian-rich/25"})}):(0,a.jsx)(a.Fragment,{children:n?(0,a.jsx)(s.default,{src:n,width:500,height:1e3,className:"w-[250px] h-[400px] object-cover",alt:"".concat(l)}):(0,a.jsx)("div",{className:"w-[250px] h-[400px] bg-ionian-rich/25"})}),t&&(0,a.jsx)("h3",{className:"mt-6 mb-4 font-serif text-4xl tracking-wide prose prose-ttt text-pretty prose-p:m-0 ",children:t}),l&&(0,a.jsx)("h4",{className:"my-1 font-medium text-base tracking-wide prose prose-ttt text-pretty prose-p:m-0 ",children:l}),i&&(0,a.jsx)("p",{className:"mb-8 text-base prose prose-ttt text-pretty prose-p:m-0 min-h-32 ",dangerouslySetInnerHTML:{__html:i}})]})}var c=l(79435),o=l(37808),d=l(47957),u=l.n(d),m=l(12115);function x(e){var t,l;let{items:s,buttons:n,buttonColour:d="dark"}=e,[x,h]=(0,m.useState)(!1),[g,f]=(0,m.useState)();return x||window.addEventListener("resize",u()(()=>h(!0),300)),(0,m.useEffect)(()=>{g&&(h(g.canScrollNext()||g.canScrollPrev()),g.on("resize",()=>{h(g.canScrollNext()||g.canScrollPrev())}))},[x,g]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.Carousel,{setApi:f,opts:{active:x,slidesToScroll:1,dragFree:!0},children:[(0,a.jsx)(o.CarouselContent,{className:"ml-6 mr-10 lg:ml-4 lg:mr-8 gap-x-2 lg:gap-x-4 ".concat(!x&&"justify-center"),children:s&&s.map((e,t)=>(0,a.jsx)("div",{className:"".concat(t%2?"sm:mt-4":""),children:(0,a.jsx)(o.CarouselItem,{className:"basis-auto",children:(0,a.jsx)(i,{year:e.year,title:e.title,image:e.image,description:e.description,linkCTA:e.linkCTA})})},t))}),x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.CarouselPrevious,{className:"px-0 transition-all left-4 lg:left-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light top-1/3 shadow-lg"}),(0,a.jsx)(o.CarouselNext,{className:"px-0 transition-all hover:bg-stone-light bg-stone-white text-dark-black lg:right-10 right-4 disabled:opacity-0 to
1p-1/3 shadow-lg"})]}),n&&(null==(t=n.ctaPrimary)?void 0:t.link)&&n.ctaPrimary.text&&(0,a.jsxs)("div",{className:"flex flex-wrap justify-center w-full gap-8 px-4 my-10",children:[(0,a.jsx)("h3",{className:"w-full sm:w-auto",children:(0,a.jsx)(c.Button,{as:r(),ariaLabel:n.ctaPrimary.text,variant:"outline",size:"medium",href:n.ctaPrimary.link,className:"w-full sm:w-auto",children:n.ctaPrimary.text})}),(null==(l=n.ctaSecondary)?void 0:l.link)&&n.ctaSecondary.text&&(0,a.jsx)(c.Button,{as:r(),ariaLabel:n.ctaSecondary.text,variant:"solid",size:"medium",href:n.ctaSecondary.link,className:"w-full sm:w-auto",children:n.ctaSecondary.text})]})]})})}},41403:(e,t,l)=>{l.d(t,{HalfVideoHalfText:()=>d});var a=l(95155),s=l(15239),n=l(79435),r=l(52619),i=l.n(r),c=l(14733),o=l(47063);function d(e){let{content:t,media:l,cta:r,cta2:d}=e,u=null==t?void 0:t.eyebrow,m=null==t?void 0:t.title,x=null==t?void 0:t.text,h=!!(null==l?void 0:l.vimeoId),g=!!(null==l?void 0:l.image),f=[r,d].filter(e=>!!(null==e?void 0:e.link));return(0,a.jsx)("div",{className:"p-4",children:(0,a.jsxs)("div",{className:"lg:flex lg:flex-wrap mx-auto max-w-7xl",children:[(0,a.jsx)("div",{className:"w-full lg:w-1/2",children:(0,a.jsx)("div",{className:"relative w-full aspect-video h-full",children:h?(0,a.jsxs)("div",{className:"relative w-full h-full",children:[(0,a.jsx)("iframe",{src:"https://player.vimeo.com/video/".concat(null==l?void 0:l.vimeoId,"?h=").concat(null==l?void 0:l.hashId,"&background=1&autoplay=1&loop=1&byline=1&title=1&cc=1&fullscreen=1"),className:"absolute inset-0 w-full h-full",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0}),(0,a.jsxs)("a",{href:"https://www.youtube.com/watch?v=gg4-DPzlv1Q",target:"_blank",rel:"noopener noreferrer",className:"absolute bottom-0 lg:bottom-10 right-0 hover:underline transition flex gap-1 text-dark-cement text-sm uppercase tracking-wide weglot_translation",title:"Open fullscreen",children:["Open in fullscreen ",(0,a.jsx)(o.MXi,{})]})]}):g?(0,a.jsx)(s.default,{src:l.image,alt:(null==l?void 0:l.alt)||m||"",fill:!0,priority:!0,className:"object-cover object-center"}):(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-stone-light text-dark-cement text-sm uppercase tracking-wide",children:"Add an image or video"})})}),(0,a.jsx)("div",{className:"w-full lg:w-1/2 flex items-center justify-center max-w-3xl mx-auto",children:(0,a.jsxs)("div",{className:"py-8 px-4 text-center flex flex-col items-center gap-4 weglot_translation",children:[u&&(0,a.jsx)("p",{className:"tracking-widest uppercase text-base weglot_translation",children:u}),m&&(0,a.jsx)("h1",{className:"mb-4 font-serif text-3xl lg:text-2xl weglot_translation",children:(0,a.jsx)(c.Ay,{as:"span",text:m})}),x&&(0,a.jsx)("div",{className:"mb-8 leading-relaxed lg:leading-normal text-lg lg:text-base lg:px-6 weglot_translation",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:x}})}),f.length>0&&(0,a.jsx)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:f.map((e,t)=>(0,a.jsx)(n.Button,{as:i(),ariaLabel:e.label,variant:0===t?"solid":"outline",size:"medium",href:e.link,children:e.label},e.link))})]})})]})})}},42509:(e,t,l)=>{l.r(t),l.d(t,{default:()=>u});var a=l(95155),s=l(20063),n=l(52619),r=l.n(n),i=l(12115),c=l(45204),o=l(64269),d=l(62785);function u(e){let{className:t}=e,l=(0,s.usePathname)()||"/",n=(0,i.useRef)(null),[u,m]=(0,i.useState)(!1),x=(()=>{let e=l.split("/").filter(Boolean),t=[{label:"Home",path:"/"}],a="";return e.forEach(e=>{a+="/".concat(e),t.push({label:e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),path:a})}),t})();return(0,i.useLayoutEffect)(()=>{m(!1)},[l]),(0,i.useLayoutEffect)(()=>{let e=n.current;e&&!u&&e.scrollWidth>e.clientWidth&&m(!0)},[u]),(0,a.jsx)(d.Qp,{className:(0,o.cn)("flex items-center h-8 px-6 text-dark-cement",t),children:(0,a.jsx)("div",{ref:n,className:"overflow-hidden",children:(0,a.jsx)(d.AB,{className:"flex-nowrap",children:x.map((e,t)=>{let l=t===x.length-1;return l&&u?null:(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[t>0&&(0,a.jsx)(d.tH,{className:"shrink-0",children:(0,a.jsx)(c.A,{className:"size-3"})}),(0,a.jsx)(d.J5,{children:l?(0,a.jsx)(d.tJ,{className:"text-xs font-medium leading-normal tracking-wide lg:tracking-wide",children:e.label}):(0,a.jsx)(d.w1,{asChild:!0,className:"text-xs leading-normal tracking-wide transition-colors lg:tracking-wide hover:opacity-70 hover:underline",children:(0,a.jsx)(r(),{href:e.path,children:0===t?(0,a.jsx)("span",{"aria-label":"Home",children:e.label}):e.label})})})]},e.path)})})})})}},45204:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(95155);let s=e=>
1(0,a.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M8.676 7.325C7.684 6.31 6.793 5.089 6.002 3.672L7.205 3c.742 1.329 1.562 2.447 2.457 3.361.88.901 1.993 1.689 3.35 2.357l.385.189v1.604l-.385.189c-1.357.668-2.47 1.456-3.35 2.356m-.986-5.731c.896.916 1.982 1.71 3.25 2.384-1.268.675-2.353 1.468-3.25 2.384C7.683 13.11 6.793 14.343 6 15.78l1.207.664c.742-1.347 1.561-2.474 2.455-3.388",clipRule:"evenodd"})})},45717:(e,t,l)=>{l.d(t,{Oi:()=>n,dQ:()=>s,lx:()=>a,os:()=>r});let a=4,s=28,n=7,r=6},47084:(e,t,l)=>{l.d(t,{default:()=>n});var a=l(95155),s=l(12115);function n(){let[e,t]=(0,s.useState)([]);return(0,s.useEffect)(()=>{t(Array.from(document.querySelectorAll("[data-anchor-id]")).map(e=>({id:e.getAttribute("data-anchor-id")||"",name:e.getAttribute("data-anchor-name")||""})))},[]),e.length>0&&(0,a.jsx)("div",{className:"container px-5 pt-8 pb-16 mx-auto lg:py-16 lg:px-32",children:(0,a.jsxs)("div",{className:"flex flex-col sm:items-center weglot_translation",children:[(0,a.jsx)("div",{className:"text-2xl font-medium leading-normal tracking-widest sm:text-center uppercase text-dark-black weglot_translation",children:"Table of contents"}),(0,a.jsx)("ul",{className:"flex flex-col w-full sm:items-center list-inside mt-2.5 gap-1 weglot_translation",children:e.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)("button",{className:"w-auto text-sm sm:text-lg leading-normal tracking-tight text-left sm:text-center transition-colors text-dark-black group hover:text-dark-cement hover:underline",onClick:()=>(function(e){let t=document.querySelector('[data-anchor-id="'.concat(e,'"]'));t&&t.scrollIntoView({behavior:"smooth"})})(e.id),children:e.name})},e.id))})]})})}},48363:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(95155);let s=e=>(0,a.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,a.jsx)("path",{d:"M810.667 554.667H213.333a42.667 42.667 0 0 1 0-85.334h597.334a42.667 42.667 0 0 1 0 85.334z"})})},48435:(e,t,l)=>{l.d(t,{default:()=>m});var a=l(95155),s=l(53818),n=l(79435),r=l(37808),i=l(47957),c=l.n(i),o=l(52619),d=l.n(o),u=l(12115);function m(e){let{heading:t,subheading:l,items:i=[],cta:o}=e,[m,x]=(0,u.useState)(!1),[h,g]=(0,u.useState)();return m||window.addEventListener("resize",c()(()=>x(!0),880)),(0,u.useEffect)(()=>{h&&(x(h.canScrollNext()||h.canScrollPrev()),h.on("resize",()=>{x(h.canScrollNext()||h.canScrollPrev())}))},[m,h]),(0,a.jsxs)("div",{className:"py-10",children:[(0,a.jsxs)("div",{className:"max-w-6xl mx-auto p-4",children:[(0,a.jsx)("h3",{className:"mb-10 text-2xl tracking-widest uppercase text-center weglot_translation",children:t}),(0,a.jsx)("p",{className:"font-serif text-2xl leading-relaxed tracking-tight text-center lg:text-3xl lg:leading-[1.4] text-dark-black font-extralight mb-10",children:l})]}),(0,a.jsxs)(r.Carousel,{setApi:g,opts:{active:m,loop:!0,align:"center"},children:[(0,a.jsx)(r.CarouselContent,{className:"my-4 ".concat(!m&&"justify-center"),children:i.map((e,t)=>(0,a.jsx)(r.CarouselItem,{className:"basis-auto",children:(0,a.jsx)("div",{className:"w-[90vw] lg:w-[880px] h-full relative",children:(0,a.jsxs)(d(),{href:"".concat("https://www.thethinkingtraveller.com").concat(e.href),children:[(0,a.jsx)(s.default,{src:e.image||"https://www.thethinkingtraveller.com/media/Think%20Experiences/Rebrand_experiences/Tasting_notes.jpg",width:880,height:464,className:"w-[90vw] lg:w-[880px] lg:h-[464px] object-cover",alt:"".concat(e.title)}),(0,a.jsxs)("div",{className:"text-center mx-auto p-4 max-w-3xl",children:[e.title&&(0,a.jsx)("p",{className:"my-2 font-serif text-4xl tracking-wide weglot_translation",children:e.title}),e.text&&(0,a.jsx)("p",{className:"mb-10 text-base weglot_translation",children:e.text})]})]})})},t))}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.CarouselPrevious,{className:"px-0 transition-all left-4 lg:left-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light shadow-xs top-1/4 sm:top-1/3"}),(0,a.jsx)(r.CarouselNext,{className:"px-0 transition-all right-4 lg:right-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light shadow-xs top-1/4 sm:top-1/3"})]})]}),(0,a.jsx)("div",{className:"w-full px-4 mb-10 lg:mb-20 flex justify-center",children:o&&(null==o?void 0:o.link)&&(null==o?void 0:o.text)&&(0,a.jsx)(n.Button,{as:d(),ariaLabel:o.text,variant:"outline",className:"mx-auto",href:o.link,children:o.text})})]})}},53818:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r});var a=l(95155),s=l(15239);let n=e=>{let{src:t}=e;return"https://www.thethinkingtraveller.com/Media/".concat(function(e){return(e=e.toLowerCase()).startsWith("https://www.thethinkingtraveller.com/media/")?e.replace("https://www.thethinkingtraveller.com/media/",""):encodeURIComponent(e).replace(/%2520/g,"%20")}(t))},r=e=>(0,a.jsx)(s.default,{loader:n,...e})},54146:(e,t,l)=>{l.d(t,{default:()=>x});var a=l(95155),s=l(32763),n=l(79435),r=l(37808),i=l(43721),c=l(47957),o=l.n(c),d=l(52619),u=l.n(d),m=l(12115);function x(e){let{properties:t,cta:l,buttonColour:c="dark"}=e,[d,x]=(0,m.useState)(!1),[h,g]=(0,m.useState)(),f=(0,i.LJ)();return(0,m.useEffect)(()=>{{let e=o()(()=>{x(!0)},300);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}},[]),(0,m.useEffect)(()=>
1{if(!h)return;let e=()=>{x(h.canScrollNext()||h.canScrollPrev())};return e(),h.on("resize",e),()=>{h.off("resize",e)}},[h]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Carousel,{setApi:g,opts:{active:d},children:[(0,a.jsx)(r.CarouselContent,{className:"ml-6 mr-10 lg:ml-4 lg:mr-8 gap-x-2 lg:gap-x-4 ".concat(!d&&"justify-center"),children:t.map((e,t)=>(0,a.jsx)(r.CarouselItem,{className:"basis-auto",children:(0,a.jsx)(s.A,{title:e.romanceText,imageSmall:e.cardImageSmall||void 0,imageLarge:e.cardImageLarge||void 0,imageFallback:e.heroImage.desktop,link:e.path,name:e.name,description:"".concat(e.regionLabel,", ").concat(e.totalNumberOfGuests," Guests")})},e.id))}),d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.CarouselPrevious,{className:"px-0 transition-all left-4 lg:left-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light"}),(0,a.jsx)(r.CarouselNext,{className:"px-0 transition-all hover:bg-stone-light bg-stone-white text-dark-black lg:right-10 right-4 disabled:opacity-0"})]})]}),l&&l.link&&l.text&&(0,a.jsx)("h3",{className:"flex justify-center pt-10 px-4",children:(0,a.jsx)(n.Button,{as:u(),href:l.link,variant:"outline",color:c,onClick:()=>{(null==l?void 0:l.trackEvent)&&(null==l?void 0:l.link)&&f.trackViewAllVillasCTA({path:l.link})},className:"w-full sm:w-auto sm:min-w-80",children:l.text})})]})}},58786:(e,t,l)=>{l.d(t,{C:()=>s});var a=l(30926);let s=(0,a.createServerReference)("7f4b1e0da0585d483684bf14e0b00c2138a56b61b8",a.callServer,void 0,a.findSourceMapURL,"postPreviewContent")},59297:(e,t,l)=>{l.d(t,{default:()=>h});var a=l(95155),s=l(12115),n=l(47957),r=l.n(n),i=l(37808),c=l(71700),o=l(52619),d=l.n(o),u=l(15239),m=l(79435);function x(e){let{title:t="lorem ipsum",text:l="lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ut purus eget sapien",image:s="https://www.thethinkingtraveller.com/media/Homepage/Slider/Villa_matchmaker_slider.jpg",mobileImage:n=s,CTAlink:r="/results",CTAlabel:i="Search villas",isExternal:c=!1,backgroundColour:o="bg-yellow-stone",textColour:x="text-stone-white",backgroundPosition:h="object-center"}=e,g=c?"a":d();return(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"relative mx-auto w-full px-1 pt-1 pb-8 sm:px-6 md:flex md:h-full md:min-h-[600px] md:bg-transparent md:px-20 md:py-16 ".concat(o," ").concat(x),children:[n&&(0,a.jsx)("div",{className:"md:hidden relative w-full h-0 pb-[60%]",children:(0,a.jsx)(u.default,{src:n,alt:t,fill:!0,className:"object-cover",priority:!0})}),s&&(0,a.jsx)("div",{className:"hidden md:block absolute inset-0",children:(0,a.jsx)(u.default,{src:s,alt:t,fill:!0,priority:!0,className:"object-cover ".concat(h)})}),(0,a.jsx)("div",{className:"w-full md:container md:mx-auto md:mt-auto",children:(0,a.jsxs)("div",{className:"relative w-full p-6 flex flex-col justify-between gap-6 md:max-w-[400px] md:justify-around md:gap-8 md:p-8 ".concat(o," ").concat(x),children:[(0,a.jsx)("h3",{className:"font-serif text-2xl tracking-tight text-center md:text-4xl font-extralight weglot_translation",dangerouslySetInnerHTML:{__html:t}}),l&&(0,a.jsx)("div",{className:"text-center min-h-36 sm:min-h-24 md:min-h-0 weglot_translation",dangerouslySetInnerHTML:{__html:l}}),(0,a.jsx)(m.Button,{as:g,ariaLabel:i,variant:"solid",size:"medium",href:r,targetBlank:c,color:"text-dark-black"===x?"dark":"light",className:"w-full max-w-sm mx-auto md:max-w-none",children:i})]})})]})})}function h(e){let{items:t}=e,[l,n]=(0,s.useState)(!1),[o,d]=(0,s.useState)();return l||window.addEventListener("resize",r()(()=>n(!0),300)),(0,s.useEffect)(()=>{o&&(n(o.canScrollNext()||o.canScrollPrev()),o.on("resize",()=>{n(o.canScrollNext()||o.canScrollPrev())}))},[l,o]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(i.Carousel,{className:"w-full",setApi:d,opts:{active:l,loop:!0},plugins:[(0,c.A)({delay:5e3,stopOnMouseEnter:!0})],children:[(0,a.jsx)(i.CarouselContent,{className:" ".concat(!l&&"justify-center"),children:t&&t.map((e,t)=>(0,a.jsx)(i.CarouselItem,{className:"w-screen",children:(0,a.jsx)(x,{title:e.title,text:e.text,image:e.image,mobileImage:e.mobileImage,backgroundColour:e.backgroundColour,textColour:e.textColour,backgroundPosition:e.backgroundPosition,CTAlink:e.CTAlink,CTAlabel:e.CTAlabel,isExternal:e.isExternal})},t))}),l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.CarouselPrevious,{className:"px-0 transition-all left-4 lg:left-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light"}),(0,a.jsx)(i.CarouselNext,{className:"px-0 transition-all hover:bg-stone-light bg-stone-white text-dark-black lg:right-10 right-4 disabled:opacity-0"})]})]})})}},61863:(e,t,l)=>{l.r(t),l.d(t,{Tabs:()=>i,TabsContent:()=>d,TabsList:()=>c,TabsTrigger:()=>o});var a=l(95155),s=l(12115),n=l(25667),r=l(64269);let i=n.bL,c=s.forwardRef((e,t)=>
1{let{className:l,...s}=e;return(0,a.jsx)(n.B8,{ref:t,className:(0,r.cn)("inline-flex h-16 items-center justify-center p-1 text-dark-black/60 space-x-6",l),...s})});c.displayName=n.B8.displayName;let o=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)(n.l9,{ref:t,className:(0,r.cn)("inline-flex items-center justify-center whitespace-nowrap uppercase pb-1.5 text-sm font-medium ring-offset-stone-light/30 transition-all focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-yellow-stone focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-dark-black data-[state=active]:border-b-2 data-[state=active]:border-dark-black hover:text-dark-black/80 hover:border-dark-black/50",l),...s})});o.displayName=n.l9.displayName;let d=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)(n.UC,{ref:t,className:(0,r.cn)("ring-offset-white focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-dark-black focus-visible:ring-offset-2",l),...s})});d.displayName=n.UC.displayName},62e3:(e,t,l)=>{l.r(t),l.d(t,{GetInTouchClientWrapper:()=>x,default:()=>u});var a=l(95155),s=l(52619),n=l.n(s),r=l(79435),i=l(53174),c=l(57830),o=l(59475),d=l(58849);function u(e){let{buttonColour:t="dark",heading:l,text:s,showIllustration:n=!0}=e,r=(0,d.x)();return(0,a.jsx)("div",{className:"px-4 py-10 md:py-16 mx-auto max-w-7xl lg:py-6",children:(0,a.jsxs)("div",{className:"justify-items-center gap-8 lg:gap-0 lg:h-[400px] lg:grid-flow-col-reverse grid ".concat(n&&"lg:grid-cols-3"),children:[(0,a.jsx)("div",{className:"".concat(n?"col-span-1 flex items-center lg:order-2 lg:p-6":"hidden","\n "),children:(0,a.jsx)(i.default,{className:"w-full max-w-72 lg:max-w-md max-h-[150px] lg:max-h-[350px]",src:"https://splash.thethinkingtraveller.com/img/illustrations/oyster.png",alt:"Door illustration",width:189,height:236,unoptimized:!0})}),(0,a.jsxs)("div",{className:"flex flex-col lg:col-span-2 gap-6 items-center justify-even justify-center lg:w-full lg:order-1 mx-auto text-center",children:[(0,a.jsx)("h2",{className:"font-serif text-3xl leading-none tracking-wide lg:text-5xl text-balance weglot_translation",children:l}),(0,a.jsx)("p",{className:"mb-4 text-balance weglot_translation",children:s}),(0,a.jsxs)("div",{className:"justify-center w-11/12 gap-4 mx-auto space-y-4 md:space-y-0 md:flex md:max-w-2xl md:flex-row md:flex-nowrap",children:[r===d.g.CallUs&&(0,a.jsx)(m,{href:"tel:+442073778518",icon:(0,a.jsx)(c.EZw,{className:"size-5"}),variant:"solid",text:"Call us",colour:t}),r===d.g.ScheduleACall&&(0,a.jsx)(m,{href:"/contact/book-a-call",icon:(0,a.jsx)(c.EZw,{className:"size-5"}),variant:"solid",text:"Book a call",colour:t}),r===d.g.Loading&&(0,a.jsx)(m,{href:"/contact/book-a-call",icon:(0,a.jsx)(c.EZw,{className:"size-5"}),variant:"solid",text:"Book a call",colour:t,disabled:!0}),(0,a.jsx)(m,{href:"/enquiries",icon:(0,a.jsx)(o.UX7,{className:"size-5"}),text:"Enquire",colour:t})]})]})]})})}let m=e=>{let{href:t,icon:l,text:s,variant:i="outline",colour:c="dark",disabled:o=!1,onClick:d}=e;return(0,a.jsxs)(r.Button,{as:n(),href:t,onClick:d,size:"medium",variant:i,className:"flex-1 gap-1 whitespace-nowrap md:max-w-58 w-full sm:w-3/4 ".concat(o?"opacity-20":""),color:c,"aria-label":s,disabled:o,children:[(0,a.jsx)("span",{className:"shrink-0",children:l}),s]})};function x(e){let{buttonColour:t="dark",heading:l="Villa Matchmaking Service",text:s="Because our local experts have personally visited each of our destinations, we know exactly what makes them special. Tell us what your ultimate villa holiday looks like, and allow us take care of the rest",showIllustration:n=!0}=e;return(0,a.jsx)(u,{buttonColour:t,heading:l,text:s,showIllustration:n})}},62684:(e,t,l)=>{l.d(t,{default:()=>n});var a=l(95155),s=l(54306);function n(){return(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault();{let t=new FormData(e.currentTarget).get("email");
1sessionStorage.setItem("newsletter_prefill_email",t),location.href="/newsletter"}},className:"w-full pt-10",children:[(0,a.jsx)("label",{htmlFor:"email",className:"sr-only weglot_translation",children:"Email"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:"email",name:"email",id:"email",className:"block w-full h-16 px-6 py-3 pr-16 tracking-tight border border-stone-light focus:outline-hidden focus:ring-2 text-dark-black placeholder:text-dark-black focus:ring-inset focus:ring-stone-light bg-stone-white weglot_translation",placeholder:"Enter email address",required:!0}),(0,a.jsxs)("button",{type:"submit",className:"absolute inset-y-0 right-0 grid items-center justify-center aspect-square weglot_translation",children:[(0,a.jsx)("span",{className:"sr-only weglot_translation",children:"Submit"}),(0,a.jsx)(s.A,{className:"w-5 h-5 fill-dark-black"})]})]})]})}},62785:(e,t,l)=>{l.d(t,{AB:()=>o,J5:()=>d,Qp:()=>c,tH:()=>x,tJ:()=>m,w1:()=>u});var a=l(95155),s=l(12115),n=l(32467),r=l(27937),i=(l(37772),l(64269));let c=s.forwardRef((e,t)=>{let{...l}=e;return(0,a.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...l})});c.displayName="Breadcrumb";let o=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)("ol",{ref:t,className:(0,i.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-inherit sm:gap-2.5",l),...s})});o.displayName="BreadcrumbList";let d=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)("li",{ref:t,className:(0,i.cn)("inline-flex items-center gap-1.5",l),...s})});d.displayName="BreadcrumbItem";let u=s.forwardRef((e,t)=>{let{asChild:l,className:s,...r}=e,c=l?n.DX:"a";return(0,a.jsx)(c,{ref:t,className:(0,i.cn)("transition-colors",s),...r})});u.displayName="BreadcrumbLink";let m=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,i.cn)("font-normal text-inherit",l),...s})});m.displayName="BreadcrumbPage";let x=e=>{let{children:t,className:l,...s}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,i.cn)("[&>svg]:w-3.5 [&>svg]:h-3.5",l),...s,children:null!=t?t:(0,a.jsx)(r.A,{})})};x.displayName="BreadcrumbSeparator"},64029:(e,t,l)=>{l.d(t,{default:()=>x});var a=l(95155),s=l(53818),n=l(52619),r=l.n(n);function i(e){let{title:t,image:l,description:n,link:i}=e;return(0,a.jsxs)("div",{className:"w-[300px] lg:w-[395px] h-full relative",children:[i?(0,a.jsx)(r(),{href:"".concat("https://www.thethinkingtraveller.com").concat(i),target:"_blank",children:l?(0,a.jsx)(s.default,{src:l,width:790,height:790,className:"w-[300px] h-[200px] lg:w-[395px] lg:h-[395px] object-cover",alt:"".concat(t)}):(0,a.jsx)("div",{className:"w-[300px] h-[200px] lg:w-[395px] lg:h-[395px] bg-ionian-rich/25"})}):(0,a.jsx)("div",{children:l?(0,a.jsx)(s.default,{src:l,width:790,height:790,className:"w-[300px] h-[200px] lg:w-[395px] lg:h-[395px] object-cover",alt:"".concat(t)}):(0,a.jsx)("div",{className:"w-[300px] h-[200px] lg:w-[395px] lg:h-[395px] bg-ionian-rich/25"})}),t&&(0,a.jsx)("h3",{className:"mt-8 mb-1 font-serif text-2xl tracking-wide prose lg:mb-6 min-h-16 lg:min-h-8 prose-ttt text-pretty prose-p:m-0 ",children:t}),n&&(0,a.jsx)("p",{className:"mb-8 text-base prose prose-ttt text-pretty prose-p:m-0 min-h-32 ",children:n.replace(/<[^>]+>/g,"").replace(/ /g," ")})]})}var c=l(79435),o=l(37808),d=l(47957),u=l.n(d),m=l(12115);function x(e){var t,l;let{items:s,buttons:n,buttonColour:d="dark"}=e,[x,h]=(0,m.useState)(!1),[g,f]=(0,m.useState)();return x||window.addEventListener("resize",u()(()=>h(!0),300)),(0,m.useEffect)(()=>{g&&(h(g.canScrollNext()||g.canScrollPrev()),g.on("resize",()=>{h(g.canScrollNext()||g.canScrollPrev())}))},[x,g]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.Carousel,{setApi:f,opts:{active:x},children:[(0,a.jsx)(o.CarouselContent,{className:"ml-6 mr-10 lg:ml-4 lg:mr-8 gap-x-2 lg:gap-x-4 ".concat(!x&&"justify-center"),children:s&&s.map((e,t)=>(0,a.jsx)(o.CarouselItem,{className:"basis-auto",children:(0,a.jsx)(i,{title:e.title,image:e.image,description:e.description,link:e.link})},t))}),x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.CarouselPrevious,{className:"px-0 transition-all left-4 lg:left-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light top-1/4 shadow-lg"}),(0,a.jsx)(o.CarouselNext,{className:"px-0 transition-all hover:bg-stone-light bg-stone-white text-dark-black lg:right-10 right-4 disabled:opacity-0 to
1p-1/4 shadow-lg"})]}),n&&(null==(t=n.ctaPrimary)?void 0:t.link)&&n.ctaPrimary.text&&(0,a.jsxs)("div",{className:"flex flex-wrap justify-center w-full gap-8 px-4 my-10",children:[(0,a.jsx)("h3",{className:"w-full sm:w-auto",children:(0,a.jsx)(c.Button,{as:r(),ariaLabel:n.ctaPrimary.text,variant:"outline",size:"medium",href:n.ctaPrimary.link,className:"w-full sm:w-auto",children:n.ctaPrimary.text})}),(null==(l=n.ctaSecondary)?void 0:l.link)&&n.ctaSecondary.text&&(0,a.jsx)(c.Button,{as:r(),ariaLabel:n.ctaSecondary.text,variant:"solid",size:"medium",href:n.ctaSecondary.link,className:"w-full sm:w-auto",children:n.ctaSecondary.text})]})]})})}},67186:(e,t,l)=>{l.d(t,{y:()=>n});var a=l(34001),s=l(54535);let n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{data:t,error:l,isLoading:n}=(0,a.u)(e?"https://tower.thethinkingtraveller.com/api/geography":null,s.A);return{body:t,isLoading:n,isError:l}}},73457:(e,t,l)=>{l.d(t,{S:()=>o});var a=l(95155),s=l(12115),n=l(38162),r=l(5917),i=l(7125),c=l(64269);let o=s.forwardRef((e,t)=>{let{className:l,...s}=e;return(0,a.jsx)(n.bL,{ref:t,className:(0,c.cn)("group peer h-4 w-4 shrink-0 rounded-xs border border-dark-black ring-offset-white focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-offset-2 focus-visible:ring-dark-black disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-dark-black data-[state=checked]:text-stone-white dark:border-slate-50 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300 dark:data-[state=checked]:bg-slate-50 dark:data-[state=checked]:text-slate-900 cursor-pointer",l),...s,children:(0,a.jsxs)(n.C1,{className:(0,c.cn)("flex items-center justify-center text-current"),children:[(0,a.jsx)(r.A,{className:"hidden w-4 h-4 group-data-[state=checked]:block"}),(0,a.jsx)(i.A,{className:"hidden w-4 h-4 group-data-[state=indeterminate]:block"})]})})});o.displayName=n.bL.displayName},73972:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r});var a=l(95155),s=l(12115),n=l(64269);function r(e){let[t,l]=(0,s.useState)([]);return(0,s.useEffect)(()=>
1{l(Array.from(document.querySelectorAll("[data-anchor-id]")).map(e=>({id:e.getAttribute("data-anchor-id")||"",name:e.getAttribute("data-anchor-name")||""})))},[]),t.length>0?(0,a.jsx)("ul",{className:(0,n.cn)("flex flex-col items-center justify-center gap-3 md:gap-6 lg:gap-10 md:flex-row",e),children:t.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)("button",{className:"uppercase font-medium tracking-widest hover:opacity-70 underline underline-offset-2 weglot_translation",onClick:()=>(function(e){let t=document.querySelector('[data-anchor-id="'.concat(e,'"]'));t&&t.scrollIntoView({behavior:"smooth"})})(e.id),children:e.name})},e.id))}):null}},78778:(e,t,l)=>{l.d(t,{default:()=>c});var a=l(95155),s=l(37808),n=l(47957),r=l.n(n),i=l(12115);function c(e){let{items:t}=e,[l,n]=(0,i.useState)(!1),[c,o]=(0,i.useState)();return l||window.addEventListener("resize",r()(()=>n(!0),300)),(0,i.useEffect)(()=>{c&&(n(c.canScrollNext()||c.canScrollPrev()),c.on("resize",()=>{n(c.canScrollNext()||c.canScrollPrev())}))},[l,c]),(0,a.jsxs)(s.Carousel,{setApi:o,opts:{active:l},children:[(0,a.jsx)(s.CarouselContent,{className:"items-end ml-6 mr-10 lg:ml-4 lg:mr-8 gap-x-2 lg:gap-x-4 ".concat(!l&&"justify-center"),children:t&&t.map((e,t)=>(0,a.jsx)(s.CarouselItem,{className:"basis-auto",children:e},t))}),l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.CarouselPrevious,{className:"px-0 transition-all left-4 lg:left-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light"}),(0,a.jsx)(s.CarouselNext,{className:"px-0 transition-all hover:bg-stone-light bg-stone-white text-dark-black lg:right-10 right-4 disabled:opacity-0"})]})]})}},80264:(e,t,l)=>{l.d(t,{default:()=>p});var a=l(95155),s=l(7311),n=l(54306),r=l(74448),i=l(15239);function c(e){let{link:t,trackEvent:l,children:s}=e;return(0,a.jsx)(r.A,{href:t,className:"after:absolute after:inset-0 after:content-['']",prefetch:!1,eventFunction:"trackViewCollectionCTA",eventParam
1s:{path:t},shouldTrack:l,children:s})}function o(e){let{title:t,image:l,label:s,link:r,trackEvent:o}=e;return(0,a.jsxs)("div",{className:"group relative w-[280px] lg:w-[412px] h-full flex flex-col",children:[(0,a.jsx)("div",{className:"inset-0 aspect-4/5 bg-yellow-stone/5",children:l&&(0,a.jsx)(i.default,{src:l,alt:t,width:412,height:515,className:"object-cover w-full aspect-4/5"})}),(0,a.jsx)("div",{className:"text-center flex flex-col items-center justify-between gap-2 py-4 px-1 flex-1",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,a.jsx)("h3",{className:"uppercase font-serif text-2xl lg:text-3xl font-serif text-pretty no-translate",translate:"no",children:s?t:(0,a.jsx)(c,{link:r,trackEvent:o,children:t})}),s&&(0,a.jsx)("h4",{className:"font-medium text-sm leading-snug tracking-widest uppercase weglot_translation group-hover:underline underline-offset-2",children:(0,a.jsxs)(c,{link:r,trackEvent:o,children:[s," ",(0,a.jsx)(n.A,{className:"inline-block ml-1 size-5"})]})})]})})]})}function d(e){let{title:t,image:l,label:s,link:n,trackEvent:r}=e;return(0,a.jsx)("div",{className:"w-[280px] lg:w-[412px] flex justify-center",children:(0,a.jsx)(o,{title:t,image:l,label:s,link:n,trackEvent:r})})}var u=l(37808),m=l(47957),x=l.n(m),h=l(52619),g=l.n(h),f=l(12115);function p(e){let{items:t,cta:l,buttonColour:r="dark"}=e,[i,c]=(0,f.useState)(!1),[o,m]=(0,f.useState)();return i||window.addEventListener("resize",x()(()=>c(!0),300)),(0,f.useEffect)(()=>{o&&(c(o.canScrollNext()||o.canScrollPrev()),o.on("resize",()=>{c(o.canScrollNext()||o.canScrollPrev())}))},[i,o]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(u.Carousel,{setApi:m,opts:{active:i},children:[(0,a.jsxs)(u.CarouselContent,{className:"ml-6 mr-10 lg:ml-4 lg:mr-8 gap-x-2 lg:gap-x-4 ".concat(!i&&"justify-center"),children:[t&&t.map((e,t)=>(0,a.jsx)(u.CarouselItem,{className:"basis-auto",children:(0,a.jsx)(d,{title:e.title,image:e.image,label:e.label,link:e.link,trackEvent:e.trackEvent})},t)),(null==l?void 0:l.link)&&(0,a.jsx)(u.CarouselItem,{className:"basis-auto",children:(0,a.jsx)(g(),{href:"".concat("https://www.thethinkingtraveller.com","/collections"),className:"block w-[280px] lg:w-[412px] h-full",children:(0,a.jsx)("div",{className:"group flex flex-col h-full",children:(0,a.jsxs)("div",{className:"aspect-4/5 bg-yellow-stone flex flex-col gap-2 items-center justify-center",children:[(0,a.jsx)("h3",{className:"uppercase font-serif text-2xl sm:text-3xl text-center text-pretty px-6",children:"See more"}),(0,a.jsxs)("h4",{className:"font-medium text-sm leading-snug tracking-widest uppercase weglot_translation group-hover:underline underline-offset-2",children:["Explore our collections"," ",(0,a.jsx)(n.A,{className:"inline-block ml-1 size-5"})]})]})})})})]}),i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.CarouselPrevious,{className:"px-0 transition-all left-4 lg:left-10 disabled:opacity-0 bg-stone-white text-dark-black hover:bg-stone-light"}),(0,a.jsx)(u.CarouselNext,{className:"px-0 transition-all hover:bg-stone-light bg-stone-white text-dark-black lg:right-10 right-4 disabled:opacity-0"})]}),l&&(null==l?void 0:l.link)&&(null==l?void 0:l.text)&&(0,a.jsx)("h3",{className:"flex justify-center pt-10 px-4",children:(0,a.jsx)(s.default,{href:l.link,trackEvent:l.trackEvent,eventName:"trackViewAllVillasCTA",eventParam
1s:{path:l.link},variant:"outline",color:r,className:"w-full sm:w-auto sm:min-w-80",children:l.text})})]})})}},81080:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(95155),s=l(15239);let n=e=>{let{src:t,width:l}=e;return"".concat(t,"?w=").concat(l)},r=e=>(0,a.jsx)(s.default,{loader:n,...e})},86342:(e,t,l)=>{l.r(t),l.d(t,{default:()=>d});var a=l(95155),s=l(79435),n=l(23342),r=l(43721),i=l(52619),c=l.n(i),o=l(12115);function d(e){let{id:t,slug:l,href:i,className:d,label:u="Contact to Book",ariaLabel:m,variant:x="solid",origin:h=r.$U.OffersOnWeeks,enquirySource:g="short-stay-offers",targetBlank:f=!0}=e,{isShortlisted:p,toggleShortlist:v}=(0,o.useContext)(n.K),j=g?"".concat(i).concat(i.includes("?")?"&":"?","enquirySource=").concat(g):i;return(0,a.jsx)(s.Button,{variant:x,size:"small",as:c(),href:j,targetBlank:f,onClick:()=>{p(t)||v(t,l,h)},className:d,...m?{ariaLabel:m}:{},children:u})}},94908:(e,t,l)=>{l.d(t,{default:()=>u});var a=l(95155),s=l(15239),n=l(52619),r=l.n(n),i=l(12115),c=l(79435),o=l(43721);function d(e){let{text:t}=e;return(0,a.jsxs)("div",{className:"relative font-serif text-4xl leading-none text-center uppercase group lg:text-6xl tracking-tightest text-lunario-acid font-extralight md:mx-4",children:[(0,a.jsx)("h3",{className:"transition-opacity group-hover:opacity-0 weglot_translation",children:t}),(0,a.jsx)("p",{className:"absolute inset-0 italic transition-opacity opacity-0 group-hover:opacity-100 weglot_translation",children:t})]})}function u(e){let{header:t="Our destinations",button:l={text:"Search all villas",link:"/results",trackEvent:!1,fullWidth:!1},items:n}=e,u=(0,o.LJ)(),[m,x]=(0,i.useState)(n[0].image),[h,g]=(0,i.useState)(n[0].text),[f,p]=(0,i.useState)(null),[v,j]=(0,i.useState)(null);return(0,a.jsxs)("div",{className:"relative",children:[m&&h&&(0,a.jsx)(s.default,{src:m,alt:h,fill:!0,className:"absolute inset-0 object-cover w-full h-full"}),f&&(0,a.jsx)(s.default,{src:f,alt:v||"",fill:!0,className:"absolute inset-0 object-cover w-full h-full transition-opacity ease-in duration-200 \n ".concat(f!==m?"opacity-100":"opacity-0")}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black/10"}),(0,a.jsxs)("div",{className:"relative flex flex-col items-center justify-between px-4 py-16 gap-28 lg:gap-36 lg:min-h-[680px] max-w-7xl mx-auto",children:[(0,a.jsx)("h2",{className:"leading-normal tracking-widest text-center uppercase lg:text-2xl lg:leading-normal text-stone-light weglot_translation",children:t}),(0,a.jsx)("div",{className:"relative flex flex-col flex-wrap justify-center gap-6 lg:gap-10 lg:flex-row",children:n.map((e,t)=>(0,a.jsx)(r(),{href:e.href,onMouseEnter:()=>{var t,l;return t=e.image,l=e.text,void(p(t),j(l))},onMouseLeave:()=>(e.image,e.text,void(x(null),g(null))),children:(0,a.jsx)(d,{text:e.text})},t))}),(0,a.jsx)("h3",{className:"inline-flex items-center justify-center",children:(0,a.jsx)(c.Button,{as:r(),href:"".concat("https://www.thethinkingtraveller.com").concat(l.link),variant:"solid",size:"medium",color:"light",className:l.fullWidth?"w-full sm:w-auto":"",onClick:()=>{(null==l?void 0:l.trackEvent)&&(null==l?void 0:l.link)&&u.trackViewAllVillasCTA({path:l.link})},children:l.text})})]})]})}}}]);
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.