!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="3d29ebd6-75b3-44cb-9e5f-1a94d4793ee8",e._sentryDebugIdIdentifier="sentry-dbid-3d29ebd6-75b3-44cb-9e5f-1a94d4793ee8")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[13143,51903,62415,56744,31508,34925,16115,56731,80785,32303,13304,32797],{5668:function(e,s,l){l.r(s),l.d(s,{default:function(){return o}});var a=l(57437),t=l(87805),r=l(53267);l(43034),l(54885),l(17322);var n=l(2265),i=l(4867),c=l(60023);function o(e){let{images:s}=e,l=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,a.jsxs)(r.tq,{modules:[t.W_],lazyPreloadPrevNext:1,loop:!0,slidesPerView:1,className:"rounded-t-md",onInit:e=>{let s=e.params.navigation;s.prevEl=l.current,s.nextEl=o.current,e.navigation.init(),e.navigation.update()},children:[s.map((e,s)=>(0,a.jsx)(r.o5,{children:(0,a.jsx)("div",{className:"aspect-[16/9] lg:aspect-[7/5] bg-white",children:(0,a.jsx)(c.default,{src:e.filePath,loading:"lazy",alt:e.alt,fill:!0,sizes:"(max-width: 767px) 100vw, 325px"})})},"image-slide-".concat(s))),(0,a.jsx)("div",{ref:l,children:(0,a.jsx)("div",{className:"absolute z-30 flex items-center justify-center top-2/4 align-center ",children:(0,a.jsx)(i.wyc,{className:"w-9 h-9 text-white"})})}),(0,a.jsx)("div",{ref:o,children:(0,a.jsx)("div",{className:"absolute z-30 flex items-center justify-center top-2/4 right-0 align-center ",children:(0,a.jsx)(i.XCv,{className:"w-9 h-9 text-white"})})})]})}},97463:function(e,s,l){l.r(s),l.d(s,{default:function(){return m}});var a=l(57437),t=l(39819),r=l(90415),n=l(5668),i=l(94760),c=l(31855),o=l(31508),d=l(59489),x=l(66648);function m(e){let{data:s,locale:l,translations:m,currencySymbol:h,propertyCardTranslations:f}=e,{PropertyMedia:u,PropertyContentTranslation:p,Location1:j,Location2:g,Location3:v}=s,N=(0,r.wn)(null!=p?p:[],"title",l),y=(0,r.GD)(N);return(0,a.jsx)(t.UE,{href:{pathname:t.ln.PropertyView,params:{slug:y,id:s.id}},target:"_blank",className:"h-full cursor-pointer",children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-between shadow-md hover:shadow-lg rounded-lg h-full bg-gray-50",children:[(0,a.jsxs)("div",{className:"relative w-full z-10",children:[(null==u?void 0:u.length)?(0,a.jsx)(n.default,{images:u.map(e=>({filePath:e.filePath,alt:N}))}):(0,a.jsx)(x.default,{src:"/assets/images/no-image.png",alt:"No image",height:200,width:300,loading:"lazy",className:"aspect-[16/9] w-full object-cover lg:aspect-[7/5] bg-white rounded-lg"}),(0,a.jsx)("span",{className:"absolute z-10 top-2 left-2 inline-flex font-semibold items-center rounded-full bg-white/90 px-2 py-1 text-xs uppercase text-gray-600 ring-1 ring-inset ring-gray-500/10",children:m.propertyType}),(0,a.jsx)("div",{className:"bottom-0 h-[36px] w-full absolute z-30 pointer-events-none",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center text-white h-full w-full p-2 text-sm bg-gradient-to-b from-transparent to-black/80",children:[(0,a.jsx)(d.Z,{className:"w-4 h-4"}),(0,a.jsx)("p",{className:"whitespace-nowrap truncate",children:(0,r.K4)(null==j?void 0:j.LocationTranslation,null==g?void 0:g.LocationTranslation,null==v?void 0:v.LocationTranslation)})]})})]}),(0,a.jsxs)("div",{className:"px-3 pt-4 w-full",children:[(0,a.jsx)("h3",{className:"text-base font-medium text-gray-900 truncate",children:N||"Property for Sale in phuket thailand property for sale"}),(0,a.jsxs)("div",{className:"flex gap-2 justify-between text-gray-800 pt-1 items-center",children:[(0,a.jsx)("div",{className:"flex flex-col gap-0.5 text-xs font-normal",children:(0,a.jsxs)("dl",{className:"flex justify-between text-center w-full gap-2",children:[!!s.priceSale&&(0,a.jsxs)("div",{className:"text-base whitespace-nowrap font-semibold",children:[(0,a.jsx)("span",{className:"font-normal",children:h}),new Intl.NumberFormat().format(Number(s.priceSale))]}),!!s.priceRent&&(0,a.jsxs)("div",{className:"text-base whitespace-nowrap font-semibold",children:[(0,a.jsx)("span",{className:"font-normal",children:h}),new Intl.NumberFormat().format(Number(s.priceRent)),(0,a.jsxs)("span",{className:"font-normal text-xs",children:["/",f.month]})]})]})}),(0,a.jsx)("p",{className:"text-xs font-normal whitespace-nowrap",children:(0,r.zx)(l,s.createdAt,"fromNow")})]})]}),(0,a.jsx)("div",{className:"relative pt-3 px-3 pb-6 w-full rounded-b-lg",children:(0,a.jsxs)("div",{className:"flex gap-5 justify-center text-sm text-gray-800 font-semibold h-5",children:[!!s.bedrooms&&(0,a.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,a.jsx)(i.default,{className:"w-3.5 h-3.5 text-gray-800"}),(0,a.jsx)("div",{children:s.bedrooms})]}),!!s.bathrooms&&(0,a.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,a.jsx)(c.default,{className:"w-3.5 h-3.5 text-gray-800"}),(0,a.jsx)("div",{children:s.bathrooms})]}),!!s.interiorSize&&(0,a.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,a.jsx)(o.default,{className:"w-3.5 h-3.5 text-gray-800"}),(0,a.jsxs)("div",{className:"flex gap-0.5 items-center",children:[new Intl.NumberFormat().format(Number(s.interiorSize)),(0,a.jsx)("div",{className:"text-gray-700 font-normal text-xs",children:f.unitSize})]})]})]})})]})},s.id)}},51903:function(e,s,l){l.r(s),l.d(s,{default:function(){return x}});var a=l(57437);l(2265);var t=l(87138),r=l(62415),n=l(56744),i=l(56731),c=l(80785),o=l(16115),d=l(34925);function x(e){let{facebookLink:s,instagramLink:l,tiktokLink:x,youtubeLink:m,whatsAppLink:h,lineLink:f}=e;return(0,a.jsxs)(a.Fragment,{children:[!!s&&(0,a.jsxs)(t.default,{target:"_blank",href:s,className:"hover:opacity-90",children:[(0,a.jsx)("span",{className:"sr-only",children:"Facebook"}),(0,a.jsx)(r.default,{className:"h-6 w-6"})]}),!!l&&(0,a.jsxs)(t.default,{target:"_blank",href:l,className:"hover:opacity-90",children:[(0,a.jsx)("span",{className:"sr-only",children:"Instagram"}),(0,a.jsx)(n.default,{className:"h-6 w-6"})]}),!!h&&(0,a.jsxs)(t.default,{target:"_blank",href:"https://wa.me/"+h,className:"hover:opacity-90",children:[(0,a.jsx)("span",{className:"sr-only",children:"whatsapp"}),(0,a.jsx)(i.default,{className:"h-6 w-6"})]}),!!m&&(0,a.jsxs)(t.default,{target:"_blank",href:m,className:"hover:opacity-90",children:[(0,a.jsx)("span",{className:"sr-only",children:"youtube"}),(0,a.jsx)(c.default,{className:"h-6 w-6"})]}),!!x&&(0,a.jsxs)(t.default,{target:"_blank",href:x,className:"hover:opacity-90",children:[(0,a.jsx)("span",{className:"sr-only",children:"tikTok"}),(0,a.jsx)(o.default,{className:"h-5 w-5"})]}),!!f&&(0,a.jsxs)(t.default,{target:"_blank",href:f,className:"hover:opacity-90",children:[(0,a.jsx)("span",{className:"sr-only",children:"line"}),(0,a.jsx)(d.default,{className:"h-5 w-5"})]})]})}},62415:function(e,s,l){l.r(s),l.d(s,{default:function(){return t}});var a=l(57437);function t(e){return(0,a.jsx)("svg",{fill:"currentColor",className:"h-6 w-6",...e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z",clipRule:"evenodd"})})}l(2265)},56744:function(e,s,l){l.r(s),l.d(s,{default:function(){return t}});var a=l(57437);function t(e){return(0,a.jsx)("svg",{fill:"currentColor",className:"h-6 w-6",...e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z",clipRule:"evenodd"})})}l(2265)},31508:function(e,s,l){l.r(s),l.d(s,{default:function(){return t}});var a=l(57437);function t(e){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5 text-primary",...e,fill:"currentColor",viewBox:"0 0 448 512",children:(0,a.jsx)("path",{d:"M48 56c0-13.3-10.7-24-24-24S0 42.7 0 56V456c0 13.3 10.7 24 24 24H424c13.3 0 24-10.7 24-24s-10.7-24-24-24H48V56zM96 97.6v48.3c31 3.6 60.4 12.5 87.4 25.7l25.3-41.1C174.2 113 136.2 101.6 96 97.6zm115.2 89.7c32.6 21 60.5 48.9 81.5 81.5l40.9-25.2c-25-39-58.2-72.2-97.2-97.2l-25.2 40.9zM334.1 384h48.3c-4-40.2-15.4-78.2-32.9-112.6l-41.1 25.3c13.2 26.9 22 56.3 25.7 87.4z"})})}l(2265)},34925:function(e,s,l){l.r(s),l.d(s,{default:function(){return t}});var a=l(57437);function t(e){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5 text-primary",...e,fill:"currentColor",viewBox:"0 0 512 512",children:(0,a.jsx)("path",{d:"M311 196.8v81.3c0 2.1-1.6 3.7-3.7 3.7h-13c-1.3 0-2.4-.7-3-1.5l-37.3-50.3v48.2c0 2.1-1.6 3.7-3.7 3.7h-13c-2.1 0-3.7-1.6-3.7-3.7V196.9c0-2.1 1.6-3.7 3.7-3.7h12.9c1.1 0 2.4 .6 3 1.6l37.3 50.3V196.9c0-2.1 1.6-3.7 3.7-3.7h13c2.1-.1 3.8 1.6 3.8 3.5zm-93.7-3.7h-13c-2.1 0-3.7 1.6-3.7 3.7v81.3c0 2.1 1.6 3.7 3.7 3.7h13c2.1 0 3.7-1.6 3.7-3.7V196.8c0-1.9-1.6-3.7-3.7-3.7zm-31.4 68.1H150.3V196.8c0-2.1-1.6-3.7-3.7-3.7h-13c-2.1 0-3.7 1.6-3.7 3.7v81.3c0 1 .3 1.8 1 2.5c.7 .6 1.5 1 2.5 1h52.2c2.1 0 3.7-1.6 3.7-3.7v-13c0-1.9-1.6-3.7-3.5-3.7zm193.7-68.1H327.3c-1.9 0-3.7 1.6-3.7 3.7v81.3c0 1.9 1.6 3.7 3.7 3.7h52.2c2.1 0 3.7-1.6 3.7-3.7V265c0-2.1-1.6-3.7-3.7-3.7H344V247.7h35.5c2.1 0 3.7-1.6 3.7-3.7V230.9c0-2.1-1.6-3.7-3.7-3.7H344V213.5h35.5c2.1 0 3.7-1.6 3.7-3.7v-13c-.1-1.9-1.7-3.7-3.7-3.7zM512 93.4V419.4c-.1 51.2-42.1 92.7-93.4 92.6H92.6C41.4 511.9-.1 469.8 0 418.6V92.6C.1 41.4 42.2-.1 93.4 0H419.4c51.2 .1 92.7 42.1 92.6 93.4zM441.6 233.5c0-83.4-83.7-151.3-186.4-151.3s-186.4 67.9-186.4 151.3c0 74.7 66.3 137.4 155.9 149.3c21.8 4.7 19.3 12.7 14.4 42.1c-.8 4.7-3.8 18.4 16.1 10.1s107.3-63.2 146.5-108.2c27-29.7 39.9-59.8 39.9-93.1z"})})}},16115:function(e,s,l){l.r(s),l.d(s,{default:function(){return t}});var a=l(57437);function t(e){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",...e,fill:"currentColor",viewBox:"0 0 448 512",children:(0,a.jsx)("path",{d:"M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z"})})}l(2265)},56731:function(e,s,l){l.r(s),l.d(s,{default:function(){return t}});var a=l(57437);function t(e){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5 text-primary",...e,fill:"currentColor",viewBox:"0 0 448 512",children:(0,a.jsx)("path",{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7 .9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"})})}l(2265)},80785:function(e,s,l){l.r(s),l.d(s,{default:function(){return t}});var a=l(57437);function t(e){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",...e,fill:"currentColor",viewBox:"0 0 576 512",children:(0,a.jsx)("path",{d:"M549.7 124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8 64 288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"})})}l(2265)},32303:function(e,s,l){l.r(s),l.d(s,{default:function(){return n}});var a=l(57437),t=l(90415);l(2265);var r=l(39343);function n(e){let{labels:s,currencySymbol:l}=e,n=(0,r.Gc)();return(0,a.jsx)("div",{children:n.watch("minPrice")||n.watch("maxPrice")?"".concat(l).concat(n.watch("minPrice")?(0,t.NO)(Number(n.watch("minPrice"))):s.noMin," - ").concat(l).concat(n.watch("maxPrice")?(0,t.NO)(Number(n.watch("maxPrice"))):s.noMax):s.price})}},95137:function(e,s,l){l.r(s),l.d(s,{default:function(){return o}});var a=l(57437),t=l(39819);l(2265);var r=l(18623),n=l(51903),i=l(18856),c=l(75868);function o(e){let{companyName:s,facebookLink:l,whatsAppLink:o,instagramLink:d,tiktokLink:x,youtubeLink:m,lineLink:h,translations:f,locationTranslation:u,address:p,phone:j,email:g}=e;return(0,a.jsxs)("div",{className:"container bg-gray-50 pb-8 py-16 sm:py-10 mt-16 border-t border-gray-200",children:[(0,a.jsxs)("div",{className:"mx-auto w-full",children:[(0,a.jsx)("div",{className:"text-center text-gray-900 text-2xl font-light",children:(0,a.jsx)(t.UE,{href:t.ln.Home,children:s})}),(0,a.jsxs)("div",{className:"mt-6 grid md:grid-cols-3 gap-x-2 gap-y-10",children:[(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("div",{className:"text-sm font-semibold leading-6 text-gray-900",children:f.connectWithUs}),(0,a.jsxs)("div",{className:"mt-6 text-sm leading-6 text-gray-900",children:[(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:p}}),(0,a.jsxs)("div",{className:"text-gray-900 text-sm",children:[(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)(i.Z,{"aria-hidden":"true",className:"h-4 w-4 text-gray-500"}),(0,a.jsx)("a",{href:"tel:".concat(j),className:"hover:text-gray-900",children:j})]}),(0,a.jsxs)("div",{className:"flex gap-2 items-center mt-1",children:[(0,a.jsx)(c.Z,{"aria-hidden":"true",className:"h-4 w-4 text-gray-500"}),(0,a.jsx)("a",{href:"mailto:".concat(g),className:"hover:text-gray-900",children:g})]})]})]}),(0,a.jsx)("div",{className:"mt-3 flex space-x-2 text-primary items-center",children:(0,a.jsx)(n.default,{facebookLink:l,instagramLink:d,whatsAppLink:o,tiktokLink:x,youtubeLink:m,lineLink:h})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-sm font-semibold leading-6 text-gray-900",children:f.explore}),(0,a.jsxs)("ul",{role:"list",className:"mt-6 space-y-4",children:[(0,a.jsx)("li",{children:(0,a.jsx)(t.UE,{href:{pathname:t.ln.ForSale,params:{slug:[f.properties,...u.fullSlug.split("/")]}},className:"text-sm leading-6 text-gray-900 hover:text-gray-900/90",children:f.buy})},"buy"),(0,a.jsx)("li",{children:(0,a.jsx)(t.UE,{href:{pathname:t.ln.ForRent,params:{slug:[f.properties,...u.fullSlug.split("/")]}},className:"text-sm leading-6 text-gray-900 hover:text-gray-900/90",children:f.rent})},"rent"),(0,a.jsx)("li",{children:(0,a.jsx)(t.UE,{href:{pathname:t.ln.Contact},className:"text-sm leading-6 text-gray-900 hover:text-gray-900/90",children:f.contact})},"contact")]})]})]})]}),(0,a.jsx)(r.default,{translations:f,companyName:s,className:"text-gray-900 mt-16 border-t border-gray-300 pt-8 sm:mt-20 lg:mt-24"})]})}},13143:function(e,s,l){l.r(s),l.d(s,{default:function(){return f}});var a=l(57437),t=l(2265),r=l(37229),n=l(46237),i=l(99768),c=l(73346),o=l(85273),d=l(58895),x=l(25286),m=l(90415),h=l(39343);function f(e){let{translations:s,searchConfig:l,searchParams:f,pageLoadResults:u,mapSearch:p,footerData:j,isDashboard:g}=e,v=(0,d.Z)(),{locale:N,currencySymbol:y}=l,{pageTitle:b,form:w,searchResults:z,mapSearchResults:S,listComponentEle:C,handleLocationChange:P,handleFormReset:T,toggleItems:L,isFormDirty:k,lastLocationUpdatedTimeStamp:F}=(0,i.E)(u,f,{propertyTypes:l.propertyTypes,translations:{near:s.near,unitSize:s.unitSize,beds:s.bedsSlug,"for-sale":s.forSaleSlug,"for-rent":s.forRentSlug,properties:s.defaultPropertyTypeValue,noMax:s.noMax,noMin:s.noMin,currencySymbol:y,select:s.select}},!0,N),V=(0,h.qo)({name:"tenure",control:w.control}),I=(0,h.qo)({name:"page",control:w.control}),[R,M]=(0,t.useState)(!1);return((0,x.Z)(100,()=>{let e=window.scrollY;e<78?M(!1):e>78&&M(!0)}),v)?(0,a.jsx)(h.RV,{...w,children:(0,a.jsxs)(o.Tabs,{defaultValue:"lists",className:"w-full",children:[(0,a.jsx)("div",{className:(0,m.cn)({"bg-white shadow-md":R},"flex flex-col md:flex-row space-x-6 items-center px-4 sticky md:relative w-full -mt-6 z-50 top-0 py-2"),children:(0,a.jsx)(n.default,{isFormDirty:k,onCheckboxToggle:L,onFormReset:T,onLocationChange:P,labels:s,data:{...l,defaultLocationLabel:u.fullLocationOrPlaceTranslation,defaultPropertyTypeValue:s.defaultPropertyTypeValue,categories:l.categories},isMobile:v})}),(0,a.jsx)(o.TabsContent,{value:"map",children:(0,a.jsx)("div",{className:"h-[calc(100vh-120px)] ",children:(0,a.jsx)(r.default,{defaultZoom:parseInt(f.zoom)||12,defaultCenter:p.center,defaultBounds:p.bounds,points:S.data,tenure:V,form:w,locale:N,currencySymbol:y,translations:s,googleApiKey:l.googleApiKey,isDashboard:g,lastLocationUpdatedTimeStamp:F})})}),(0,a.jsx)(o.TabsContent,{value:"lists",children:(0,a.jsx)(c.default,{searchConfig:l,searchResults:z,locale:N,currencySymbol:y,translations:s,form:w,pageTitle:b,page:I,listComponentEle:C,footerData:j})})]})}):(0,a.jsx)(h.RV,{...w,children:(0,a.jsxs)("div",{className:"relative z-10 overflow-hidden",children:[(0,a.jsx)("div",{className:"flex items-center py-2 sm:px-4 px-2 justify-end sm:justify-start",children:(0,a.jsx)(n.default,{isFormDirty:k,onCheckboxToggle:L,onFormReset:T,onLocationChange:P,labels:s,data:{...l,defaultPropertyTypeValue:s.defaultPropertyTypeValue,categories:l.categories,defaultLocationLabel:u.fullLocationOrPlaceTranslation},isMobile:!1})}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-1 hidden fixed lg:block  z-10 overflow-hidden sm:relative  bg-gray-100 flex-0 max-w-4xl",children:(0,a.jsx)(r.default,{defaultZoom:parseInt(f.zoom)||12,defaultCenter:p.center,defaultBounds:p.bounds,points:S.data,tenure:V,form:w,locale:N,currencySymbol:y,translations:s,googleApiKey:l.googleApiKey,isDashboard:g,lastLocationUpdatedTimeStamp:F})}),(0,a.jsx)(c.default,{searchConfig:l,searchResults:z,locale:N,currencySymbol:y,translations:s,form:w,pageTitle:b,page:I,listComponentEle:C,footerData:j})]})]})})}},46237:function(e,s,l){l.r(s),l.d(s,{default:function(){return F}});var a=l(57437),t=l(2265),r=l(67135),n=l(50495),i=l(32653),c=l(12047),o=l(87488),d=l(19573),x=l(91403),m=l(37059),h=l(83255),f=l(71126),u=l(42421),p=l(66117),j=l(12472),g=l(72377),v=l(90837),N=l(94880),y=l(39343),b=l(75585),w=l(65652),z=l(43511),S=l(39499),C=l(85273),P=l(16192),T=l(47050),L=l(32303),k=l(73949);function F(e){let{data:s,labels:l,isMobile:m,onLocationChange:h,onFormReset:b,onCheckboxToggle:w,isFormDirty:z}=e,F=(0,y.Gc)(),{propertyTypes:I,salePrices:R,rentPrices:M,currencySymbol:D,locale:_,siteId:B,defaultLocationLabel:E}=s,[Z,H]=(0,t.useState)(!1);return(0,a.jsx)(i.Form,{...F,children:(0,a.jsxs)("form",{className:"flex flex-col sm:flex-row flex-nowrap items-stretch gap-x-2 gap-y-2 w-full",children:[(0,a.jsx)("div",{className:"min-w-40 hidden sm:block",children:(0,a.jsx)(P.default,{form:F,sizes:[],name:"tenure",labels:{buy:l.buy,rent:l.rent}})}),(0,a.jsx)("div",{className:"sm:min-w-64",children:(0,a.jsx)(S.default,{indexName:"locations",siteId:B,onSearchUpdate:h,defaultValue:E,labels:{placeholder:l.placeholderLocation,searchNotFound:l.searchNotFound},formatData:e=>e.map(e=>{var s,l;return{value:null===(s=e.translations)||void 0===s?void 0:s[_].fullSlug,label:null===(l=e.translations)||void 0===l?void 0:l[_].fullName,options:{...e}}}),renderDropdownItem:e=>(0,a.jsx)(S.MeiliSearchDropdownItem,{label:e.label,type:(0,c.om)(e.options,l,_)})})}),(0,a.jsxs)("div",{className:"flex flex-nowrap items-stretch gap-x-2 gap-y-2 w-full overflow-x-auto",children:[(0,a.jsx)("div",{className:"min-w-48 hidden sm:block",children:(0,a.jsxs)(d.Popover,{children:[(0,a.jsx)(d.PopoverTrigger,{asChild:!0,children:(0,a.jsxs)(n.Button,{variant:"outline",className:" h-full w-full space-x-2 text-gray-900",children:[(0,a.jsx)(T.default,{labels:{selectType:l.selectType},propertyTypes:I}),(0,a.jsx)(u.Z,{className:"w-4 h-4"})]})}),(0,a.jsx)(d.PopoverContent,{className:"w-60",children:(0,a.jsx)(f.default,{form:F,options:I,toggleItems:w,labels:l})})]})}),(0,a.jsx)("div",{className:" min-w-40 hidden md:block",children:(0,a.jsxs)(d.Popover,{children:[(0,a.jsx)(d.PopoverTrigger,{asChild:!0,children:(0,a.jsxs)(n.Button,{variant:"outline",className:"h-full w-full text-gray-900",children:[(0,a.jsx)(L.default,{labels:l,currencySymbol:D}),(0,a.jsx)(u.Z,{className:"w-4 h-4"})]})}),(0,a.jsxs)(d.PopoverContent,{className:"w-72",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center gap-2 mb-4",children:[(0,a.jsx)(r.Label,{htmlFor:"width",children:l.minPrice}),(0,a.jsx)("div",{className:"max-w-40 w-full",children:(0,a.jsx)(o.default,{form:F,optionSalePrices:R,optionRentPrices:M,name:"minPrice",label:l.any,currencySymbol:D})})]}),(0,a.jsxs)("div",{className:"flex justify-between items-center gap-4",children:[(0,a.jsx)(r.Label,{htmlFor:"maxWidth",children:l.maxPrice}),(0,a.jsx)("div",{className:"max-w-40 w-full",children:(0,a.jsx)(o.default,{form:F,optionSalePrices:R,optionRentPrices:M,name:"maxPrice",label:l.any,currencySymbol:D})})]})]})]})}),(0,a.jsx)("div",{className:"min-w-40 hidden lg:block",children:(0,a.jsxs)(d.Popover,{children:[(0,a.jsx)(d.PopoverTrigger,{asChild:!0,children:(0,a.jsxs)(n.Button,{variant:"outline",className:"h-full w-full text-gray-900",children:[(0,a.jsx)(k.default,{labels:l}),(0,a.jsx)(u.Z,{className:"w-4 h-4"})]})}),(0,a.jsx)(d.PopoverContent,{className:"w-[300px]",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 ",children:[(0,a.jsx)(r.Label,{htmlFor:"width",children:l.bedrooms}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(x.default,{form:F,name:"bedrooms",labels:{any:l.any},limit:5})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 ",children:[(0,a.jsx)(r.Label,{htmlFor:"width",children:l.bathrooms}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(x.default,{form:F,name:"bathrooms",labels:{any:l.any},limit:5})})]})]})})]})}),m&&(0,a.jsxs)(C.TabsList,{className:"grid w-full grid-cols-2 md:order-first",children:[(0,a.jsx)(C.TabsTrigger,{value:"lists",children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(p.Z,{size:18}),(0,a.jsx)("span",{children:l.results})]})}),(0,a.jsx)(C.TabsTrigger,{value:"map",children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(j.Z,{size:18}),(0,a.jsx)("span",{children:l.map})]})})]}),(0,a.jsxs)(v.Dialog,{open:Z,onOpenChange:H,children:[(0,a.jsx)(v.DialogTrigger,{asChild:!0,className:"sm:hidden block",children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(g.Z,{className:"w-4 h-4"}),(0,a.jsx)("p",{className:"text-sm",children:l.filter})]})}),(0,a.jsxs)(v.DialogContent,{className:"sm:max-w-[425px] max-h-full h-full overflow-auto bg-white px-4 py-2",children:[(0,a.jsx)(N.ScrollArea,{className:"max-h-[82vh] mt-8 ",children:(0,a.jsx)(V,{toggleItems:w,data:s,labels:l})}),(0,a.jsxs)(v.DialogFooter,{className:"flex flex-row justify-between space-x-10 border-t pt-3",children:[(0,a.jsx)(n.Button,{className:"flex-1",onClick:b,variant:"link",children:l.reset}),(0,a.jsx)(n.Button,{className:"flex-1",onClick:()=>{H(!1)},children:l.search})]})]})]}),(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsxs)(d.Popover,{children:[(0,a.jsx)(d.PopoverTrigger,{asChild:!0,children:(0,a.jsxs)(n.Button,{variant:"outline",className:"h-full text-gray-900",children:[(0,a.jsx)("p",{children:l.more}),(0,a.jsx)(u.Z,{className:"w-4 h-4"})]})}),(0,a.jsx)(d.PopoverContent,{className:"w-full min-w-[400px] sm:max-w-[700px] overflow-y-auto max-h-[400px]",children:(0,a.jsx)(V,{toggleItems:w,data:s,labels:l})})]})}),(0,a.jsx)("div",{className:"hidden md:flex items-center justify-center",children:z&&(0,a.jsx)(n.Button,{onClick:b,variant:"link",className:"underline w-full text-gray-800",children:l.reset})})]})]})})}let V=e=>{let{toggleItems:s,data:l,labels:t}=e,{propertyTypes:n,salePrices:i,rentPrices:c,minLandSizes:d,maxLandSizes:u,minInteriorSizes:p,maxInteriorSizes:j,categories:g,currencySymbol:v}=l,N=(0,y.Gc)();return(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)("div",{className:"sm:hidden",children:(0,a.jsx)(P.default,{form:N,sizes:[],name:"tenure",labels:{buy:t.buy,rent:t.rent}})}),(0,a.jsxs)("div",{className:"sm:hidden",children:[(0,a.jsx)(r.Label,{htmlFor:"width",children:t.propertyType}),(0,a.jsx)("div",{className:"mt-1 pl-3",children:(0,a.jsx)(f.default,{form:N,options:n,toggleItems:s,labels:t})})]}),(0,a.jsxs)("div",{className:"flex flex-col md:hidden ",children:[(0,a.jsx)(r.Label,{htmlFor:"width",children:t.price}),(0,a.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(r.Label,{htmlFor:"width",className:"text-muted-foreground text-xs",children:t.min}),(0,a.jsx)("div",{className:" w-full",children:(0,a.jsx)(o.default,{form:N,optionSalePrices:i,optionRentPrices:c,name:"minPrice",label:t.any,currencySymbol:v})})]}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(r.Label,{htmlFor:"maxWidth",className:"text-muted-foreground text-xs",children:t.max}),(0,a.jsx)("div",{className:" w-full",children:(0,a.jsx)(o.default,{form:N,optionSalePrices:i,optionRentPrices:c,name:"maxPrice",label:t.any,currencySymbol:v})})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col lg:hidden gap-2 ",children:[(0,a.jsx)(r.Label,{htmlFor:"width",children:t.bedrooms}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(x.default,{form:N,name:"bedrooms",labels:{any:t.any},limit:5})})]}),(0,a.jsxs)("div",{className:"flex flex-col lg:hidden gap-2 ",children:[(0,a.jsx)(r.Label,{htmlFor:"width",children:t.bathrooms}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("div",{className:" w-full",children:(0,a.jsx)(x.default,{form:N,name:"bathrooms",labels:{any:t.any},limit:5})})})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:max-w-sm",children:[(0,a.jsxs)(r.Label,{htmlFor:"width",children:[t.interiorSize,(0,a.jsxs)("span",{className:"text-xs",children:["(",t.sqm,")"]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"text-muted-foreground text-xs py-1",children:t.min}),(0,a.jsx)(m.default,{form:N,sizes:p,name:"minInteriorSize",labels:t})]}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"text-muted-foreground text-xs py-1",children:t.max}),(0,a.jsx)(m.default,{form:N,sizes:j,name:"maxInteriorSize",labels:t})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:max-w-sm",children:[(0,a.jsxs)(r.Label,{htmlFor:"width",children:[t.landSize,(0,a.jsxs)("span",{className:"text-xs",children:["(",t.sqm,")"]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"text-muted-foreground text-xs py-1",children:t.min}),(0,a.jsx)(m.default,{form:N,sizes:d,name:"minLandSize",labels:t})]}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"text-muted-foreground text-xs py-1",children:t.max}),(0,a.jsx)(m.default,{form:N,sizes:u,name:"maxLandSize",labels:t})]})]})]}),(0,a.jsx)("div",{className:"flex flex-col sm:max-w-sm",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,a.jsx)(r.Label,{className:"mb-2",children:t.ownership}),(0,a.jsx)(b.default,{form:N,translation:t})]}),(0,a.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,a.jsx)(r.Label,{className:"mb-2",children:t.condition}),(0,a.jsx)(w.default,{form:N,translation:t})]})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:max-w-sm",children:[(0,a.jsx)(r.Label,{className:"mb-2",children:t.reference}),(0,a.jsx)(z.default,{form:N,name:"id",placeholder:"EPA..."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(r.Label,{children:t.features}),(0,a.jsx)(h.default,{form:N,options:g,toggleItems:s,labels:{selectFeature:t.selectType,features:t.features}})]})]})}},73346:function(e,s,l){l.r(s),l.d(s,{default:function(){return o}});var a=l(57437);l(2265);var t=l(28324),r=l(57760),n=l(95745),i=l(95137),c=l(313);function o(e){let{searchConfig:s,searchResults:l,locale:o,currencySymbol:d,translations:x,form:m,pageTitle:h,page:f,listComponentEle:u,footerData:p}=e;return(0,a.jsx)("div",{ref:u,className:"@container lg:h-[calc(100vh-120px)] overflow-y-auto overflow-x-hidden w-full flex-1",children:(0,a.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mt-4",children:[(0,a.jsx)(t.default,{title:h}),(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)("div",{className:"md:min-w-40",children:(0,a.jsx)(c.default,{form:m,labels:{"latest-first":x.latestFirst,"oldest-first":x.oldestFirst,"price-low-high":x.priceLowHigh,"price-high-low":x.priceHighLow}})})})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 @xl:grid-cols-2 @4xl:grid-cols-3 gap-4 p-4",children:(0,a.jsx)(r.default,{propertyTypeConfig:s.propertyTypes,results:l.data,locale:o,translations:{unitSize:x.unitSize,noResults:x.noResults,month:x.month},currencySymbol:d})}),l.totalCount>l.pageSize&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.default,{onPageChange:e=>{},currentPage:Number(null!=f?f:1),pageSize:l.pageSize,totalCount:l.totalCount}),!!l.data.length&&(0,a.jsx)("div",{className:"px-4 text-sm text-muted-foreground font-normal text-center mt-2",children:l.showPagination})]})]}),(0,a.jsx)(i.default,{...p})]})})}},57760:function(e,s,l){l.r(s),l.d(s,{default:function(){return r}});var a=l(57437);l(2265);var t=l(97463);function r(e){let{propertyTypeConfig:s,results:l,locale:r,translations:n,currencySymbol:i}=e;return l.length?(0,a.jsx)(a.Fragment,{children:l.map(e=>{var l,c;return(0,a.jsx)(t.default,{translations:{propertyType:null!==(c=null===(l=s.find(s=>s.propertyTypeId===e.propertyTypeId))||void 0===l?void 0:l.name)&&void 0!==c?c:""},data:e,locale:r,propertyCardTranslations:n,currencySymbol:i},"result-".concat(e.id))})}):(0,a.jsx)("div",{className:"col-span-3",children:(0,a.jsx)("div",{className:"h-20 flex items-center justify-center bg-muted w-full rounded",children:(0,a.jsx)("p",{className:"text-muted-foreground",children:n.noResults})})})}},28324:function(e,s,l){l.r(s),l.d(s,{default:function(){return t}});var a=l(57437);function t(e){let{title:s}=e;return(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsx)("h1",{className:"text-lg md:text-2xl font-semibold",children:s})})})}l(2265)}}]);