1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9792],{7187:(e,t,a)=>{a.d(t,{s:()=>s});var l=a(95155),n=a(66766),i=a(12115);function s(e){let{src:t,alt:a,sizes:s="96px",className:r}=e,[o,c]=(0,i.useState)(!1);return(0,l.jsx)(n.default,{src:!t||o?"/images/agent-placeholder.svg":t,alt:a,fill:!0,sizes:s,className:r,onError:()=>c(!0)})}},12787:(e,t,a)=>{a.d(t,{MD:()=>i});let l={appartamento:{it:"Appartamento",en:"Apartment"},attico_mansarda:{it:"Attico",en:"Penthouse"},baita_chalet_trullo:{it:"Baita",en:"Cabin"},casa_indipendente:{it:"Casa indipendente",en:"Detached house"},casa_semindipendente:{it:"Casa semindipendente",en:"Semi-detached house"},casa_vacanze:{it:"Casa vacanze",en:"Holiday home"},cascina_casale:{it:"Cascina",en:"Farmhouse"},castello:{it:"Castello",en:"Castle"},chalet:{it:"Chalet",en:"Chalet"},duplex:{it:"Duplex",en:"Duplex"},fattoria:{it:"Fattoria",en:"Farm"},loft_open_space:{it:"Loft",en:"Loft"},nuove_costruzioni:{it:"Nuova costruzione",en:"New construction"},porzione_di_casa:{it:"Porzione di casa",en:"House portion"},porzione_di_villa:{it:"Porzione di villa",en:"Villa portion"},residence:{it:"Residence",en:"Residence"},rustico:{it:"Rustico",en:"Country house"},seminterrato:{it:"Seminterrato",en:"Basement"},stanza:{it:"Stanza",en:"Room"},villa_a_schiera:{it:"Villa a schiera",en:"Terraced villa"},villa_o_villino:{it:"Villa",en:"Villa"},villa_singola:{it:"Villa singola",en:"Detached villa"},villetta_bifamiliare:{it:"Villetta bifamiliare",en:"Semi-detached villa"},multiproprieta:{it:"Multipropriet\xe0",en:"Timeshare"},altro:{it:"Immobile",en:"Property"},agriturismo:{it:"Agriturismo",en:"Agritourism"},albergo_hotel:{it:"Albergo",en:"Hotel"},attivita_commerciale:{it:"Attivit\xe0 commerciale",en:"Commercial business"},azienda_agricola:{it:"Azienda agricola",en:"Agricultural business"},bar:{it:"Bar",en:"Bar"},camping_area:{it:"Camping",en:"Campsite"},commerciale_altro:{it:"Locale commerciale",en:"Commercial space"},discoteca:{it:"Discoteca",en:"Nightclub"},laboratorio:{it:"Laboratorio",en:"Workshop"},locale_commerciale:{it:"Locale commerciale",en:"Commercial space"},negozio:{it:"Negozio",en:"Shop"},ristorante:{it:"Ristorante",en:"Restaurant"},show_room:{it:"Show room",en:"Showroom"},stabile_palazzo:{it:"Stabile",en:"Building"},ufficio:{it:"Ufficio",en:"Office"},capannone_industriale:{it:"Capannone industriale",en:"Industrial warehouse"},terreno:{it:"Terreno",en:"Land"},terreno_edificabile:{it:"Terreno edificabile",en:"Buildable land"},terreno_industriale:{it:"Terreno industriale",en:"Industrial land"},cantina:{it:"Cantina",en:"Cellar"},garage_box:{it:"Garage",en:"Garage"},magazzino:{it:"Magazzino",en:"Warehouse"},posto_auto:{it:"Posto auto",en:"Parking space"},posto_barca:{it:"Posto barca",en:"Boat slip"}},n={vendita:{it:"vendita",en:"for sale"},affitto:{it:"affitto",en:"for rent"}};function i(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it",i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it";return l[e][t]}(e.propertyType,a),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it";return n[e][t]}(e.contractType,a),r=(null==(t=e.neighborhood)?void 0:t.trim())||null,o="en"===a?"".concat(i," ").concat(s," in ").concat(e.city):"".concat(i," in ").concat(s," a ").concat(e.city);return r?"".concat(o,", ").concat(r):o}},22057:(e,t,a)=>{a.d(t,{G:()=>i});var l=a(95155),n=a(17652);function i(e){let{property:t,priceChanged:a=!1}=e,i=(0,n.c)("search.labels"),s=function(e,t){let a=[],l=function(e,t){let a=new Set(e.programs);return a.has("open_house")?{key:"openHouse",bgClass:"bg-white",textClass:"text-neutral-900"}:a.has("last_minute_casa")?{key:"lastMinute",bgClass:"bg-white",textClass:"text-neutral-900"}:a.has("max_deal")?{key:"maxDeal",bgClass:"bg-white",textClass:"text-neutral-900"}:a.has("saldi_immobiliari")?{key:"discount",bgClass:"bg-white",textClass:"text-neutral-900"}:a.has("no_provvigione")?{key:"noCommission",bgClass:"bg-white",textClass:"text-neutral-900"}:a.has("immobile_asta")?{key:"auction",bgClass:"bg-white",textClass:"text-neutral-900"}:!e.isConfidential&&t?{key:"priceUpdated",bgClass:"bg-brand-red",textClass:"text-white"}:e.isNew?{key:"new",bgClass:"bg-white",textClass:"text-neutral-900"}:null}(e,t);l&&a.push(l);
1let n=e.isLuxury?{key:"collection",bgClass:"bg-brand-navy",textClass:"text-white"}:"commerciale"===e.macroCategory?{key:"commercial",bgClass:"bg-neutral-300",textClass:"text-neutral-900"}:null;return n&&a.push(n),a}(t,a);return 0===s.length?null:(0,l.jsx)("div",{className:"absolute right-[-20px] top-6 flex flex-col gap-1.5",children:s.map(e=>(0,l.jsx)("div",{className:"flex h-[26px] w-[175px] shrink-0 items-center pl-5 pr-5 ".concat(e.bgClass),style:{clipPath:"path('M1.09915 25.9991 C0.275743 25.9991 -0.254382 25.141 0.12494 24.4229 L12.6 0.861698 C12.8803 0.332681 13.4373 0 14.0442 0 H173.988 C174.811 0 175.341 0.858062 174.962 1.57614 L162.487 25.1383 C162.207 25.6673 161.65 26 161.043 26 L1.09915 25.9991 Z')"},children:(0,l.jsx)("span",{className:"whitespace-nowrap text-[12px] font-semibold uppercase leading-4 tracking-[0.2px] ".concat(e.textClass),children:i(e.key)})},e.key))})}},29792:(e,t,a)=>{a.r(t),a.d(t,{SimilarPropertiesCarousel:()=>C});var l=a(95155),n=a(12115),i=a(6874),s=a.n(i),r=a(66766),o=a(17652),c=a(95877),d=a(77335),u=a(81683),x=a(7187),p=a(46815),m=a(22057),h=a(59434),f=a(13658),b=a(12787),g=a(33118),v=a(35067);function j(e){let{icon:t,label:a}=e;return(0,l.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5 rounded-[6px] bg-[rgba(69,69,69,0.1)] px-1 py-0.5 text-[14px] leading-4 text-neutral-900",children:[(0,l.jsx)("span",{className:"shrink-0",children:t}),a]})}function w(e){let{pair:t}=e;return t.long===t.short?(0,l.jsx)(l.Fragment,{children:t.long}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"@[400px]:hidden",children:t.short}),(0,l.jsx)("span",{className:"hidden @[400px]:inline",children:t.long})]})}function y(e){let{property:t,cardsPerRow:a,hrefPrefix:n}=e,i=(0,o.c)("search.propertyCard"),d=(0,o.k)(),y=(0,c.Ym)(),{id:N,code:C,propertyType:_,contractType:k,neighborhood:z,quadrantName:S,price:R,isConfidential:A,isNegotiable:P,programs:L,rooms:D,totalArea:G,bathrooms:I,floor:T,city:V,address:F,mainPhotoUrl:H,agencySlug:M,agencyName:B,agentName:E,agentPhotoUrl:O}=t,U=(0,f.tS)({contractType:k,propertyType:_,city:V,neighborhood:z,quadrantName:S,code:C}),J=(0,g.OL)(M,"/".concat(U),{fallback:n?"".concat(n,"/immobile/").concat(N):"/immobile/".concat(N),locale:"en"===y?"en":"it"}),W=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative h-[216px] w-full overflow-hidden lg:h-64",children:[H?(0,l.jsx)(r.default,{src:H,alt:i("imageAlt",{city:null!=V?V:""}),fill:!0,className:"card-img object-cover",sizes:"(max-width: 1024px) 300px, 33vw"}):(0,l.jsx)("div",{className:"flex h-full items-center justify-center bg-neutral-200 text-sm text-neutral-600",children:i("noPhoto")}),(0,l.jsx)(m.G,{property:t})]}),(0,l.jsxs)("div",{className:"card-text flex flex-1 flex-col gap-2 px-3 py-2",children:[(B||E)&&(0,l.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,l.jsx)("div",{className:"relative size-9 shrink-0 overflow-hidden rounded-card-inner border-2 border-neutral-200 bg-neutral-100",children:(0,l.jsx)(x.s,{src:O,alt:null!=E?E:i("agentAlt"),sizes:"36px",className:"object-cover"})}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[B&&(0,l.jsx)("span",{className:"truncate text-[13px] font-semibold leading-4 tracking-[0.2px] text-neutral-600",children:B}),E&&(0,l.jsx)("span",{className:"truncate text-[14px] font-semibold leading-4 text-neutral-900",children:E})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsx)("div",{className:"flex items-baseline gap-1 text-neutral-900",children:A?(0,l.jsx)("span",{className:"text-[16px] font-semibold leading-5",children:i("confidentialLowercase")}):(0,l.jsxs)(l.Fragment,{children:[L.includes("immobile_asta")&&(0,l.jsx)("span",{className:"shrink-0 text-[14px] leading-4 tracking-[0.2px]",children:i("fromPrice")}),(0,l.jsxs)("span",{className:"text-[16px] font-semibold leading-5",children:[d.number(R,{style:"currency",currency:"EUR",maximumFractionDigits:0,useGrouping:!0}),"affitto"===k&&(0,l.jsx)("span",{className:"text-[14px] font-normal text-neutral-600",children:i("monthSuffix")})]})]})}),!t.isSold&&!t.isRented&&(0,l.jsx)(p.o,{propertyId:N})]}
1),(0,l.jsx)("h3",{className:"h3-card line-clamp-2 !text-[16px] !leading-5 text-neutral-900",children:(0,b.MD)(t,y)}),(0,l.jsx)("p",{className:"line-clamp-1 text-[14px] leading-4 text-neutral-900",children:null!=F?F:V})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between px-3 pb-4 pt-1",children:[null!=D&&(0,l.jsx)(j,{icon:(0,l.jsx)(u.AM,{size:12}),label:(0,l.jsx)(w,{pair:(0,v.fX)(D,i)})}),null!=G&&(0,l.jsx)(j,{icon:(0,l.jsx)(u.xu,{size:12}),label:(0,l.jsx)(w,{pair:(0,v.wV)(G,i)})}),null!=I&&(0,l.jsx)(j,{icon:(0,l.jsx)(u.rR,{size:12}),label:(0,l.jsx)(w,{pair:(0,v.Uh)(I,i)})}),null!=T&&(0,l.jsx)(j,{icon:(0,l.jsx)(u.MR,{size:12}),label:(0,l.jsx)(w,{pair:(0,v.HG)(T,i)})})]})]}),X=t.isSold||t.isRented;return(0,l.jsx)("article",{className:(0,h.cn)("flex w-[346px] shrink-0 self-stretch",3===a?"lg:w-[calc((100%-32px)/3)]":"lg:w-[calc(50%-8px)]"),children:X?(0,l.jsx)("div",{className:"@container group flex h-full w-full flex-col overflow-hidden rounded-[24px] bg-neutral-200 opacity-75","aria-disabled":"true",children:W}):(0,l.jsx)(s(),{href:J,className:"@container card-lift card-lift-shadow group flex h-full w-full flex-col overflow-hidden rounded-[24px] bg-neutral-50",children:W})})}function N(e){let{cta:t,cardsPerRow:a}=e;return(0,l.jsx)("article",{className:(0,h.cn)("flex w-[346px] shrink-0 self-stretch",3===a?"lg:w-[calc((100%-32px)/3)]":"lg:w-[calc(50%-8px)]"),children:(0,l.jsxs)(s(),{href:t.href,className:"card-lift card-lift-shadow group flex h-full w-full flex-col items-center justify-center gap-6 overflow-hidden rounded-[24px] bg-brand-blue px-6 py-10 text-center text-white",children:[(0,l.jsx)("span",{className:"text-[20px] font-semibold leading-6",children:t.label}),(0,l.jsx)("span",{"aria-hidden":"true",className:"flex h-14 w-14 items-center justify-center rounded-full bg-white/15 transition-transform group-hover:translate-x-1",children:(0,l.jsx)(u.A6,{size:24,className:"rotate-180 text-white"})})]})})}function C(e){var t,a,i;let{heading:r,headingIcon:c,tabs:x,cardsPerRow:p=2,inColumn:m=!1,hrefPrefix:f,headingCta:b,reveal:g=!1}=e,v=(0,o.c)("search.similar"),[j,w]=(0,n.useState)(null!=(a=null==(t=x[0])?void 0:t.id)?a:""),C=x.find(e=>e.id===j),_=null!=(i=null==C?void 0:C.properties)?i:[],k=null==C?void 0:C.trailingCta,z=(0,n.useRef)(null),S=(0,n.useRef)(null),{trackTransform:R,canPrev:A,canNext:P,scrollPrev:L,scrollNext:D}=(0,d.pT)({scrollRef:z,trackRef:S,cardsPerStep:p,resetKey:j});return(0,l.jsx)("section",{"aria-label":r,className:"carousel-properties -mx-4 overflow-x-clip bg-brand-beige p-4 pb-8 pt-12 sm:mx-0 lg:overflow-x-visible lg:bg-transparent lg:px-0 lg:pb-16 lg:pt-16",children:(0,l.jsxs)("div",{className:(0,h.cn)(!m&&"mx-auto max-w-page",g&&"reveal-on-scroll"),children:[(0,l.jsxs)("div",{className:(0,h.cn)("mb-6 flex items-center gap-3 lg:mb-8 lg:gap-5",b&&"justify-between"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 lg:gap-5",children:[c,(0,l.jsx)("h2",{className:"section-pictogram-heading",children:r})]}),b&&(0,l.jsx)(s(),{href:b.href,className:"shrink-0 text-sm font-semibold tracking-[0.2px] text-neutral-700 hover:text-brand-blue focus-visible:outline-none focus-visible:rounded focus-visible:ring-2 focus-visible:ring-brand-blue focus-visible:ring-offset-2",children:b.label})]}),(0,l.jsxs)("div",{children:[x.length>1&&(0,l.jsx)("div",{className:"flex border-b border-neutral-400",role:"tablist",children:x.map(e=>(0,l.jsx)("button",{role:"tab",type:"button","aria-selected":j===e.id,onClick:()=>w(e.id),className:(0,h.cn)("-mb-px h-8 border-b-2 px-4 text-[16px] font-semibold leading-5 transition-colors focus-visible:outline-none",j===e.id?"border-brand-blue text-brand-blue":"border-transparent text-neutral-600 hover:text-neutral-900"),children:e.label},e.id))}),(0,l.jsxs)("div",{className:"relative -mx-4 sm:mx-0",children:[(0,l.jsx)("div",{ref:z,className:(0,h.cn)("carousel-properties-bento overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden pb-10 pt-4 lg:overflow-x-clip lg:overflow-y-visible lg:bg-brand-beige lg:py-12 lg:px-0",x.length>
11?"lg:rounded-b-[40px]":"lg:rounded-[40px]"),children:(0,l.jsxs)("div",{ref:S,className:"flex items-start gap-4 px-4 will-change-transform sm:px-0 lg:transition-transform lg:duration-300 lg:ease-out",style:{transform:R},children:[(0,l.jsx)("span",{"aria-hidden":"true",className:"hidden shrink-0 self-stretch lg:block lg:w-8"}),_.length>0?(0,l.jsxs)(l.Fragment,{children:[_.map(e=>(0,l.jsx)(y,{property:e,cardsPerRow:p,hrefPrefix:f},e.id)),k&&(0,l.jsx)(N,{cta:k,cardsPerRow:p})]}):(0,l.jsx)("p",{className:"flex h-[216px] w-full items-center justify-center text-[16px] text-neutral-600 lg:h-64",children:null==C?void 0:C.emptyLabel}),(0,l.jsx)("span",{"aria-hidden":"true",className:"hidden shrink-0 self-stretch lg:block lg:w-8"})]})}),(0,l.jsx)("button",{type:"button",onClick:L,disabled:!A,"aria-label":v("prevAria"),className:(0,h.cn)("absolute left-[-20px] top-1/2 z-[1] hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full shadow-[0_0_0_8px_var(--color-brand-beige)] tap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-blue lg:flex",A?"bg-brand-blue hover:bg-brand-blue-dark":"cursor-default bg-neutral-700"),children:(0,l.jsx)(u.A6,{size:16,className:"text-white"})}),(0,l.jsx)("button",{type:"button",onClick:D,disabled:!P,"aria-label":v("nextAria"),className:(0,h.cn)("absolute right-[-20px] top-1/2 z-[1] hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full shadow-[0_0_0_8px_var(--color-brand-beige)] tap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-blue lg:flex",P?"bg-brand-blue hover:bg-brand-blue-dark":"cursor-default bg-neutral-700"),children:(0,l.jsx)(u.A6,{size:16,className:"rotate-180 text-white"})})]})]})]})})}},35067:(e,t,a)=>{function l(e,t){return{long:t("rooms",{count:e}),short:t("roomsShort",{count:e})}}function n(e,t){return{long:t("bathrooms",{count:e}),short:t("bathroomsShort",{count:e})}}function i(e,t){let a=t("surface",{value:e}),l=e>=1e3?t("surfaceLarge"):a;return{long:a,short:l}}function s(e,t){return"number"==typeof e?{long:t("floor",{value:e}),short:t("floorShort",{value:e})}:{long:t("floorValue.".concat(e)),short:t("floorValueShort.".concat(e))}}a.d(t,{HG:()=>s,Uh:()=>n,fX:()=>l,wV:()=>i})},46278:(e,t,a)=>{a.d(t,{RO:()=>s,eG:()=>i,iT:()=>n});let l="remax:pending-auth-action";function n(e){try{window.sessionStorage.setItem(l,JSON.stringify(e))}catch(e){}}function i(){try{let e=window.sessionStorage.getItem(l);if(!e)return null;return window.sessionStorage.removeItem(l),JSON.parse(e)}catch(e){return null}}function s(){try{let e=window.sessionStorage.getItem(l);return e?JSON.parse(e):null}catch(e){return null}}},46815:(e,t,a)=>{a.d(t,{o:()=>x});var l=a(95155),n=a(12115),i=a(17652),s=a(59434),r=a(81683),o=a(77208),c=a(91400),d=a(46278),u=a(50444);function x(e){let{propertyId:t,className:a,initialFavourited:x=!1,onUnfavorited:p,size:m="md"}=e,h=(0,i.c)("common.favourite"),f=(0,o.D)(),{openLoginModal:b}=(0,c.G)(),[g,v]=(0,n.useState)(x),j=(0,n.useRef)(!1),[w,y]=(0,n.useState)(!1),N=(0,n.useRef)(!1);(0,n.useEffect)(()=>{x||(0,u.lM)().then(e=>{N.current||v(e.includes(t))})},[t,x]);let C=(0,n.useCallback)(async e=>{if(e.preventDefault(),e.stopPropagation(),!f){(0,d.iT)({type:"favorite",propertyId:t}),b();return}N.current=!0;let a=!g;v(a),a&&y(!0);try{a?await (0,u.HI)(t):(await (0,u._q)(t),null==p||p())}catch(e){v(!a)}},[f,g,t,p,b]);(0,n.useEffect)(()=>{if(!f||j.current)return;let e=(0,d.RO)();(null==e?void 0:e.type)==="favorite"&&e.propertyId===t&&((0,d.eG)(),j.current=!0,N.current=!0,v(!0),y(!0),(0,u.HI)(t).catch(()=>{v(!1)}))},[f,t]);let _="sm"===m?16:18;return(0,l.jsx)("button",{type:"button",onClick:C,"aria-label":h(g?"remove":"add"),"aria-pressed":g,className:(0,s.cn)("flex shrink-0 items-center justify-center rounded-pill transition-[colors,transform] duration-150 ease-out","sm"===m?"size-6":"size-8","hover:bg-neutral-100 active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-blue",a),children:(0,l.jsx)("span",{className:(0,s.cn)("inline-flex",w&&"animate-heart-pulse"),onAnimationEnd:()=>y(!1),children:g?(0,l.jsx)(r.C3,{size:_,className:"text-brand-red"}):(0,l.jsx)(r.jG,{size:_,className:"text-neutral-400"})})})}}}]);
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.