1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8941],{79904:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/property/[slug]",function(){return r(13523)}])},13523:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return et},default:function(){return er}});var s=r(85893),i=r(67294),l=r(19883),a=r(58725),o=r(3368),n=r(67992),c=r(14596),p=r(63427),y=r(54544),d=r(30681),u=r(43127),x=r(80775),h=r(61798),m=r(51910),v=r(32598),g=r(80304),j=r(60297),b=r(60860),k=r(50713),f=r(65369),N=r(18008),T=r(45697),w=r.n(T),_=r(77008);let C=e=>{let{className:t,style:r,title:i,label:l,icon:a}=e;return(0,s.jsxs)("div",{className:["Chip",t].join(" ").trim(),style:r,children:[a&&(0,s.jsx)("span",{className:"Chip__icon",children:"string"==typeof a?(0,s.jsx)(_.J,{icon:a}):a}),(0,s.jsxs)("span",{className:"Chip__body",children:[i&&(0,s.jsx)("span",{className:"Chip__title",children:i}),(0,s.jsx)("span",{className:"Chip__label",children:l})]})]})};C.propTypes={className:w().string,style:w().object,label:w().any.isRequired,title:w().any,icon:w().oneOfType([w().string,w().node])},C.defaultProps={className:void 0,title:void 0};var I=r(49148),z=r(37864),D=r(46611),R=r(10569),P=r(50643),A=r(32203),E=r(185);let L=e=>{let{property:t}=e,{t:r}=(0,h.$G)(),i={trash:!1,electricity:!1,gas:!1,water:!1,internet:!1,condominium:!1},l=[],a=[{icon:(0,s.jsx)(z.Z,{}),label:r("property:utilities:trash"),key:"tariType"},{icon:(0,s.jsx)(D.Z,{}),label:r("property:utilities:electricity"),key:"electricityType"},{icon:(0,s.jsx)(R.Z,{}),label:r("property:utilities:gas"),key:"gasType"},{icon:(0,s.jsx)(P.Z,{}),label:r("property:utilities:water"),key:"waterType"},{icon:(0,s.jsx)(A.Z,{}),label:r("property:utilities:internet"),key:"internetType"},{icon:(0,s.jsx)(E.Z,{}),label:r("property:utilities:condominium"),key:"condominiumType"}],n=[{label:"",key:"bathrooms"},{label:r("property:services:heating"),key:"heating"},{label:r("property:services:heatingCentralized"),key:"heatingCentralized"},{label:r("property:services:climate"),key:"climate"},{label:r("property:services:elevator"),key:"elevator"},{label:r("property:services:tv"),key:"tv"},{label:r("property:services:washingMac"),key:"washingMac"},{label:r("property:services:mosquitoNets"),key:"mosquitoNets"},{label:r("property:services:balcony"),key:"balcony"},{label:r("property:services:terrace"),key:"terrace"},{label:r("property:services:garden"),key:"garden"},{label:r("property:services:handicap"),key:"handicap"},{label:r("property:services:fridge"),key:"fridge"},{label:r("property:services:microwave"),key:"microwave"},{label:r("property:services:dishwasher"),key:"dishwasher"},{label:"",key:"kitchen"},{label:"",key:"oven"},{label:"",key:"stoveTop"},{label:"",key:"boxAuto"},{label:"",key:"boxBici"}];if(!t)return null;if(t){let e;i=a.filter(e=>"included"===t.expenses[e.key]||"Y1"===t.expenses[e.key]),e=[],n.forEach(s=>{"bathrooms"===s.key&&(1===t[s.key]&&(e=[...e,"1 "+r("property:services:bathrooms:1")]),t[s.key]>1&&(e=[...e,t[s.key]+" "+r("property:services:bathrooms:2")])),!0===t[s.key]&&(e=[...e,s.label]),"kitchen"===s.key&&("A"===t[s.key]&&(e=[...e,r("property:services:kitchen:A")]),"C"===t[s.key]&&(e=[...e,r("property:services:kitchen:C")])),"oven"===s.key&&("Y1"===t[s.key]&&(e=[...e,r("property:services:oven:1")]),"Y2"===t[s.key]&&(e=[...e,r("property:services:oven:2")]),"Y3"===t[s.key]&&(e=[...e,r("property:services:oven:3")])),"stoveTop"===s.key&&("Y1"===t[s.key]&&(e=[...e,r("property:services:stoveTop:1")]),"Y2"===t[s.key]&&(e=[...e,r("property:services:stoveTop:2")]),"Y3"===t[s.key]&&(e=[...e,r("property:services:stoveTop:3")])),"boxAuto"===s.key&&("I1"===t[s.key]&&(e=[...e,r("property:services:boxAuto:1")]),"E1"===t[s.key]&&(e=[...e,r("property:services:boxAuto:2")]),"I2"===t[s.key]&&(e=[...e,r("property:services:boxAuto:3")])),"boxBici"===s.key&&("Y1"===t[s.key]&&(e=[...e,r("property:services:boxBici:1")]),"Y2"===t[s.key]&&(e=[...e,r("property:services:boxBici:2")]))}),l=e}return(0,s.jsxs)(s.Fragment,{children:[i.length>0&&(0,s.jsxs)("div",{className:"my-10",children:[(0,s.jsx)(o.D,{variant:"h4",children:r("property:utilities:title")}),(0,s.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-5 ga
1p-6 mt-6",children:i.map((e,t)=>(0,s.jsx)(C,{label:e.label,icon:e.icon,className:"col-span-1"},t))})]}),l.length>0&&(0,s.jsxs)(s.Fragment,{children:[i.length>0?(0,s.jsx)("hr",{}):null,(0,s.jsxs)("div",{className:"my-10",children:[(0,s.jsx)(o.D,{variant:"h4",children:r("property:services:title")}),(0,s.jsx)("div",{className:"flex flex-wrap gap-3 mt-2",children:l.map(e=>(0,s.jsx)(I.V,{label:e,variant:"gray"},e))})]})]})]})};var S=r(52570),Y=r(35396),Z=r(72159),F=r(27533),U=r(41280),G=r(35358),q=r(5152),B=r.n(q),O=r(3350),M=r(18289),V=r(84441),$=r(76571),H=r(68206),W=r(31507),X=r(31188),J=r(29380),K=r(47894),Q=r(54450);let ee=B()(()=>Promise.all([r.e(9238),r.e(4409)]).then(r.bind(r,84409)),{loadableGenerated:{webpack:()=>[84409]},ssr:!1});var et=!0;function er(e){var t,r;let{t:T,i18n:w}=(0,h.$G)(["common","property",...m.UD]),{searchCity:_,searchTypology:C,setSearchCity:I,isInitialized:z}=(0,$.useSearchFiltersContext)(),{property:D,isFavorite:R,pois:P,session:A,userRole:E}=e,{session:q,isLoading:B}=(0,K.b)(A),[et,er]=(0,i.useState)((null==D?void 0:D.translatedDescription)||(null==D?void 0:D.description)||""),[es,ei]=(0,i.useState)(!1),[el,ea]=(0,i.useState)(!(null==D?void 0:D.translatedDescription)&&"it"!==w.language),[eo,en]=(0,i.useState)(!1);if(!D)return null;let ec=w.language&&w.language.length>0?w.language:"it",ep="it"!==ec?"/".concat(ec):"",ey=(null==D?void 0:D.slug)||(null==D?void 0:D.unid)||"",ed=ep.length>0?"".concat(ep,"/property").concat(ey?"/".concat(encodeURIComponent(ey)):""):"/property".concat(ey?"/".concat(encodeURIComponent(ey)):""),eu=(0,Q.cI)(D,ec)||ed,ex="".concat(m.or).concat(eu);async function eh(e){let{targetLang:t,text:r,sourceLang:s="it"}=e;if(!r)return"";if(!t)return r;if(!q){er(r);return}ei(!0);try{let e=await (0,g.t3)("translate/handler-text",{text:r,targetLang:t,sourceLang:s,userId:null==q?void 0:q.userId,isDescription:!0},{headers:{"Content-Type":"application/json","X-CSRF-Token":null==q?void 0:q.csrfToken}});if(e&&e.data){var i;let t=(null===(i=e.data)||void 0===i?void 0:i.text)||"";er(t),ea(!1)}}catch(e){console.error("Error handling translation:",e),er(r)}finally{ei(!1)}}(0,i.useEffect)(()=>{(null==D?void 0:D.city)&&D.city!==_&&I(D.city)},[z]);let em=(0,i.useRef)(null);return(0,s.jsxs)(u.A,{global:x.b,pageData:{seo:{metaTitle:"".concat((0,G.UP)(D.title,!0)," - ").concat(D.city," (").concat(D.zone,")"),metaDescription:(0,v.mG)(null==D?void 0:D.description),metaImage:{url:(null==D?void 0:D.cover)||m.i3,alternativeText:"".concat((0,G.UP)(D.title,!0)," - ").concat(D.city," (").concat(D.zone,")")},canonical:ex,structuredData:(0,Q.cB)(D)}},className:"Property",children:[(0,s.jsx)(l.$,{className:"mb-16",children:(0,s.jsxs)(d.W,{children:[(0,s.jsx)(o.D,{variant:"h1",size:"xl",className:"text-left mb-0",children:(0,G.UP)(D.title,!0)}),(0,s.jsxs)(p.l,{icon:(0,s.jsx)(O.Z,{size:20,color:"#aaa"}),children:[(0,s.jsx)(U.x,{title:T("property:searchIn")+" "+D.city,"aria-label":T("property:searchIn")+" "+D.city,className:"hover:text-primary",href:"/".concat(w.language,"/search?city=").concat(D.city,"&p=1&typology=").concat(C,"&rooms=all&tenantsGenre=all&tenantsType=all"),children:D.city})," ","-"," ",(0,s.jsx)(U.x,{title:T("property:searchIn")+" "+D.zone,"aria-label":T("property:searchIn")+" "+D.zone,className:"hover:text-primary",href:"/".concat(w.language,"/search?city=").concat(D.city,"&p=1&typology=").concat(C,"&rooms=all&zone=").concat(encodeURI(D.zone),"&tenantsGenre=all&tenantsType=all"),children:D.zone})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(y.Id,{value:D.unid,icon:(0,s.jsx)(M.Z,{size:16}),copyText:T("common:copyText")}),(0,s.jsxs)("div",{className:"flex items-center justify-end",children:[(0,s.jsx)(a.M,{variant:"button",shareLabel:T("common:shareText"),buttonVariant:"primary",url:ex,title:"".concat((0,G.UP)(D.title,!0)," - ").concat(D.city," (").concat(D.zone,")")}),(null==E?void 0:E.role)==="tenant"?(0,s.jsx)(F.P,{session:q,propertyId:D.id,isFavorite:R,translations:T}):null]})]})]})}),(0,s.jsx)(S.M,{property:D,images:D.images||[],isVTopen:eo,setIsVTopen:en,scrollToRooms:()=>
1{if(em.current){let e=em.current.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:e-80,behavior:"smooth"})}}}),(0,s.jsx)(l.$,{children:(0,s.jsx)(d.W,{children:(0,s.jsxs)(c.nf,{children:[(0,s.jsxs)(c.jt,{children:[(0,s.jsx)(o.D,{variant:"h2",size:"lg",color:"primary",children:T("property:category:".concat(D.category))}),(0,s.jsx)("div",{ref:em}),D&&Array.isArray(D.rooms)&&D.rooms.some(e=>!0===e.published)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"flex flex-col my-8",children:[(0,s.jsxs)("div",{className:"flex items-start justify-start gap-x-4",children:[(0,s.jsx)(o.D,{variant:"h3",children:T("property:rooms:title")}),D.virtualTour?(0,s.jsx)(V.z,{label:T("property:virtualTour"),variant:"link-tertiary",className:"text-sm text-gray-600 hover:text-primary",onClick:()=>{en(!0)},prependIcon:(0,s.jsx)(X.r,{fill:"#db4812",width:"1.2rem",height:"1.2rem"})}):null]}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-2",children:D.rooms.map((e,t)=>{var r,i;let{availableLabel:l,priceText:a,price:o}=(0,v.DH)(e,T),c=(null==D?void 0:D.wholeRentPriority)||!1,p=(null==D?void 0:D.wholeRentCost)||0;return e.published?(0,s.jsx)(n.y,{className:"col-span-1",available:e.available,availableLabel:l,href:"/".concat(w.language,"/property/").concat(D.slug,"/").concat(e.idRoom),slider:(null===(r=e.images)||void 0===r?void 0:r.length)>0?e.images.map(e=>({src:(0,G.cq)(e.url)})):[{src:m.T1}],title:T("property:rooms:".concat(e.category))+" ("+(null===(i=e.idRoom)||void 0===i?void 0:i.split("-")[0])+")",priceText:c?T("common:priceTextWholeRent"):a,price:c?p+"â¬":o,priceFrequency:T("property:priceFrequency"),wholeRent:c},t):null})})]})]}):null,(0,s.jsx)("hr",{className:"mt-4"}),(0,s.jsx)(L,{property:D}),(0,s.jsx)(f.S,{property:D}),(0,s.jsx)(b.N,{property:D}),(0,s.jsx)(k.E,{property:D}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"my-10",children:[(0,s.jsxs)(o.D,{variant:"h4",className:"flex flex-row items-center justify-start gap-x-2",children:[T("property:description"),q&&"it"!==w.language?(0,s.jsx)(V.z,{label:(0,s.jsx)(h.cC,{i18nKey:"common:translateTo",values:{lang:m.mT.filter(e=>e.country===w.language)[0].label}}),variant:"link-tertiary",className:"mt-1 text-xs",onClick:()=>eh({targetLang:w.language,text:D.description}),appendIcon:es?(0,s.jsx)(J.Z,{size:18}):null}):null]}),(0,s.jsx)(ee,{content:et,buttonText:T("errors:textMore"),buttonTextHide:T("errors:textHide"),truncateLength:250})]}),(0,s.jsx)("hr",{}),(0,s.jsx)(Y.V,{property:D,pois:P}),(0,s.jsx)(W.Z,{propertyLocation:D,pois:P,t:T,withGmLink:!!q}),(0,s.jsx)("hr",{}),(0,s.jsx)(N.A,{session:q,property:D,isRoom:!1,room:null})]}),(0,s.jsx)(c.xN,{className:"hidden lg:block",children:(0,s.jsxs)("div",{className:"lg:grid lg:grid-cols-12",children:[(0,s.jsx)(H.D,{property:D,translations:T}),(0,s.jsx)(f.S,{property:D,pageLocation:"aside"}),(0,s.jsx)(k.E,{property:D,pageLocation:"aside"}),(0,s.jsx)(b.N,{property:D,pageLocation:"aside"}),D&&(null===(t=D.rooms)||void 0===t?void 0:t.some(e=>!0===e.published))?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("hr",{className:"mt-4 col-span-12"}),(0,s.jsx)("div",{className:"col-span-12 mt-4 flex",children:(0,s.jsx)(j._,{property:D,session:q,refreshContactOnClick:!A&&!!((null==q?void 0:q.userId)||(null==q?void 0:q._id))})})]}):null]})})]})})}),D&&(null===(r=D.rooms)||void 0===r?void 0:r.some(e=>!0===e.published))?(0,s.jsxs)(Z.C,{children:[(0,s.jsx)(H.D,{property:D,translations:T}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(j._,{property:D,session:q,refreshContactOnClick:!A&&!!((null==q?void 0:q.userId)||(null==q?void 0:q._id))})})]}):null]})}}},function(e){e.O(0,[3714,4969,9734,9332,1830,1284,719,6364,5358,6571,9530,2075,6180,8184,7992,5038,2888,9774,179],function(){return e(e.s=79904)}),_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.