1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[117],{926:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return n.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}});let n=t(1209),s=t(5153),o=t(7197)},7560:(e,r,t)=>{"use strict";t.d(r,{y:()=>v});var n=t(5155),s=t(5239),o=t(2952),l=t(2162),a=t.n(l),i=t(2883),d=t(5704);let c=d.env.NEXT_PUBLIC_SANITY_PROJECT_ID||"y6mv45je",u=d.env.NEXT_PUBLIC_SANITY_DATASET||"production",m=d.env.NEXT_PUBLIC_SANITY_API_VERSION||"2025-01-01",b=d.env.SANITY_API_READ_TOKEN,f=(0,i.UU)({projectId:c,dataset:u,apiVersion:m,useCdn:!0});b&&(0,i.UU)({projectId:c,dataset:u,apiVersion:m,useCdn:!1,token:b});let h=a()(f);var p=t(7771);function x(e,r){return new Intl.NumberFormat("fr"===r?"fr-FR":"en-GB",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(e)}function v(e){var r,t,l,a,i,d,c;let{property:u,locale:m,showAvailabilityOnRequest:b,variant:f,hideWishlistButton:v}=e,g="fr"===m?{priceOnRequest:"Prix sur demande",rentalOnRequest:"Prix sur demande",rentalFromPrice:e=>"\xc0 partir de ".concat(e," / semaine"),bedrooms:e=>"".concat(e," chambre").concat(e>1?"s":""),guests:e=>"".concat(e," voyageur").concat(e>1?"s":""),sqmInterior:e=>"".concat(e," m\xb2"),sqmLand:e=>"".concat(e," m\xb2 terrain")}:{priceOnRequest:"Price on request",rentalOnRequest:"Price on request",rentalFromPrice:e=>"From ".concat(e," / week"),bedrooms:e=>"".concat(e," bedroom").concat(e>1?"s":""),guests:e=>"".concat(e," guest").concat(e>1?"s":""),sqmInterior:e=>"".concat(e," sqm"),sqmLand:e=>"".concat(e," sqm land")},w="fr"===m?"en":"fr",k=(null==(r=u.title)?void 0:r[m])||(null==(t=u.title)?void 0:t[w])||u.reference,y=[(null==(l=u.subAreaTitle)?void 0:l[m])||(null==(a=u.subAreaTitle)?void 0:a[w])||null,(null==(i=u.destinationTitle)?void 0:i[m])||(null==(d=u.destinationTitle)?void 0:d[w])||null].map(e=>"string"==typeof e?e.trim():"").filter(Boolean).join(", "),j=null==(c=u.slug)?void 0:c.current,N=j?"/properties/".concat(j):null,P="inline"===f,_=u.salePriceOnRequest||"number"!=typeof u.salePrice||u.salePrice<=0?g.priceOnRequest:x(u.salePrice,m),T=[];"number"==typeof u.bedrooms&&u.bedrooms>0&&T.push(g.bedrooms(u.bedrooms)),"number"==typeof u.surfaceHouse&&u.surfaceHouse>0&&T.push(g.sqmInterior(u.surfaceHouse)),"number"==typeof u.surfaceLand&&u.surfaceLand>0&&T.push(g.sqmLand(u.surfaceLand));let L=[];"number"==typeof u.bedrooms&&u.bedrooms>0&&L.push(g.bedrooms(u.bedrooms)),"number"==typeof u.maxGuests&&u.maxGuests>0&&L.push(g.guests(u.maxGuests));let q="on_request"===u.rentalDisplayMode?g.rentalOnRequest:"from_price"===u.rentalDisplayMode&&"number"==typeof u.rentalLowSeasonPerWeek&&u.rentalLowSeasonPerWeek>0?g.rentalFromPrice(x(u.rentalLowSeasonPerWeek,m)):null,E=!!b&&!u.hasAvailabilityBlocked,S=null;u.coverImage&&(S=function(e,r){if(!function(e){var r;if(!e||"object"!=typeof e)return!1;let t=null==(r=e.asset)?void 0:r._ref;return"string"==typeof t&&t.trim().length>0}(e))return null;try{return r(h.image(e)).url()}catch(e){return null}}(u.coverImage,e=>e.width(1200).height(800).fit("crop")));let I=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:P?"relative h-44 w-full shrink-0 bg-black/5 sm:h-48 sm:w-52":"relative aspect-4/3 w-full bg-black/5",children:[j&&!v?(0,n.jsx)("div",{className:"absolute right-3 top-3 z-10",children:(0,n.jsx)(p.PropertyWishlistButton,{slug:j})}
1):null,E?(0,n.jsx)("div",{className:"absolute left-4 top-4 rounded-full border border-border bg-background/90 px-3 py-1 text-xs font-medium text-foreground shadow-sm backdrop-blur dark:bg-background/70",children:"Availability on request"}):null,S?(0,n.jsx)(s.default,{src:S,alt:k,fill:!0,loading:"lazy",className:"object-cover",sizes:P?"(max-width: 640px) 10rem, 13rem":"(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw"}):null]}),(0,n.jsxs)("div",{className:P?"p-4 sm:p-5":"p-6",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,n.jsxs)("p",{className:"text-xs font-medium tracking-wide text-foreground/60",children:[u.reference,y?" \xb7 ".concat(y):""]}),u.listingType?(0,n.jsxs)(n.Fragment,{children:[("rent"===u.listingType||"both"===u.listingType)&&(0,n.jsx)("span",{className:"inline-flex items-center rounded-full border border-blue-200/50 bg-blue-50/30 px-2 py-0.5 text-[10px] font-medium text-blue-600 dark:border-blue-800/60 dark:bg-blue-950/50 dark:text-blue-400",children:"fr"===m?"Location":"Rental"}),("sale"===u.listingType||"both"===u.listingType)&&(0,n.jsx)("span",{className:"inline-flex items-center rounded-full border border-emerald-200/50 bg-emerald-50/30 px-2 py-0.5 text-[10px] font-medium text-emerald-600 dark:border-emerald-800/60 dark:bg-emerald-950/50 dark:text-emerald-400",children:"fr"===m?"Vente":"Sale"})]}):null]}),(0,n.jsx)("p",{className:P?"mt-1 text-sm font-medium sm:text-base":"mt-2 text-sm font-medium",children:k}),"sales"===f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"mt-2 text-sm font-medium text-foreground",children:_}),T.length>0?(0,n.jsx)("p",{className:"mt-1 text-sm text-foreground/70",children:T.join(" \xb7 ")}):null]}):(0,n.jsxs)(n.Fragment,{children:[q?(0,n.jsx)("p",{className:"mt-2 text-sm text-foreground/70",children:q}):null,L.length>0?(0,n.jsx)("p",{className:"mt-1 text-sm text-foreground/70",children:L.join(" \xb7 ")}):null]})]})]});return N?(0,n.jsx)(o.N_,{href:N,className:"block overflow-hidden border border-border bg-background transition-colors hover:bg-black/5 dark:hover:bg-white/5 ".concat(P?"rounded-2xl":"rounded-3xl"," ").concat(P?"sm:flex sm:min-h-48":""),children:I}):(0,n.jsx)("div",{className:"overflow-hidden border border-border bg-background ".concat(P?"rounded-2xl sm:flex sm:min-h-48":"rounded-3xl"),children:I})}},7771:(e,r,t)=>{"use strict";t.r(r),t.d(r,{PropertyWishlistButton:()=>a});var n=t(5155),s=t(2115),o=t(5604),l=t(6179);function a(e){let{slug:r}=e,t=(0,o.useTranslations)("Wishlist"),[a,i]=(0,s.useState)(!1),[d,c]=(0,s.useState)(!1);(0,s.useEffect)(()=>{c(!0),i((0,l.Ce)(r))},[r]),(0,s.useEffect)(()=>{function e(){i((0,l.Ce)(r))}return window.addEventListener("storage",e),window.addEventListener("alp-wishlist-changed",e),()=>{window.removeEventListener("storage",e),window.removeEventListener("alp-wishlist-changed",e)}},[r]);let u=(0,s.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let{saved:t}=(0,l.dM)(r);i(t)},[r]),m=t(a?"remove":"save"),b=t(a?"removeAria":"saveAria");if(!d)return(0,n.jsx)("span",{className:"inline-flex h-10 w-10 shrink-0 rounded-full border border-border bg-background/80 backdrop-blur","aria-hidden":!0});let f=(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:a?"currentColor":"none",stroke:"currentColor",strokeWidth:1.75,className:"h-4 w-4","aria-hidden":!0,children:(0,n.jsx)("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"})});return(0,n.jsx)("button",{type:"button",onClick:u,"aria-pressed":a,"aria-label":b,title:m,className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-border bg-background/90 text-foreground shadow-sm backdrop-blur transition-colors hover:bg-black/5 dark:hover:bg-white/10 ".concat(a?"alp-wishlist-icon-saved":"text-foreground/70"),children:f})}},9213:(e,r,t)=>{Promise.resolve().then(t.bind(t,3691)),Promise.resolve().then(t.bind(t,8558)),Promise.resolve().then(t.bind(t,6387)),Promise.resolve().then(t.bind(t,7456)),Promise.resolve().then(t.bind(t,5433)),Promise.resolve().then(t.bind(t,856))}},e=>{e.O(0,[493,599,856,777,441,255,358],()=>e(e.s=9213)),_N_E=e.O()}]);
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.