1import{c as j,j as e,h,d as y,u as g,a as _,r as d,t as v,Q as S,T,bg as $,V as P,W,bh as G,a1 as B,ar as F,b as D,b9 as V,av as U,bi as Y,G as q,m as M,b7 as A,X as K,n as Q,H as w,b8 as X,ba as Z,bj as J,B as ee,L as H}from"./index-BeNiNP74.js";import{M as te}from"./message-circle-CqCfLEVK.js";import{c as se,M as ae}from"./Coworking-Dwj0AUe8.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ne=j("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const ie=j("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const oe=j("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const re=j("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);function O({icon:a,iconClassName:n="text-primary",iconBgClassName:i="bg-primary/10",title:s,subtitle:o,onClick:r,href:l}
21){const c="flex items-center gap-4 rounded-2xl border border-border bg-card p-4 hover:bg-accent transition-colors cursor-pointer w-full text-left",u=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:h("flex h-11 w-11 shrink-0 items-center justify-center rounded-full",i),children:e.jsx(a,{className:h("h-5 w-5",n)})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-foreground text-sm",children:s}),e.jsx("p",{className:"text-xs text-muted-foreground",children:o})]})]});return l?e.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:c,onClick:r,children:u}):e.jsx("button",{type:"button",onClick:r,className:c,children:u})}const le="Ciao! Vorrei avere maggiori informazioni sulle stanze disponibili";function ce({open:a,onOpenChange:n}){const{localize:i}=y(),{t:s}=g("common");_(),d.useEffect(()=>{a&&v("contact_modal_opened",{source:"header"})},[a]);const o=l=>{v("contact_option_selected",{option:l}),n(!1)},r=B(le);return e.jsx(e.Fragment,{children:e.jsx(S,{open:a,onOpenChange:n,children:e.jsxs(T,{className:"min-h-0",children:[e.jsxs($,{children:[e.jsx(P,{children:s("contactModal.title")}),e.jsx(W,{children:s("contactModal.subtitle")})]}),e.jsx(G,{children:e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(O,{icon:ie,title:s("contactModal.options.info"),subtitle:s("contactModal.options.infoDesc"),onClick:()=>o("info"),href:`${i("MORE_INFO")}`}),e.jsx(O,{icon:ne,iconClassName:"text-sky-600",iconBgClassName:"bg-sky-500/10",title:s("contactModal.options.visit"),subtitle:s("contactModal.options.visitDesc"),onClick:()=>o("visita"),href:`${i("BOOK_VISIT")}`}),e.jsx(O,{icon:te,iconClassName:"text-emerald-600",iconBgClassName:"bg-emerald-500/10",title:s("contactModal.options.whatsapp"),subtitle:s("contactModal.options.whatsappDesc"),href:r,onClick:()=>{v("contact_option_selected",{option:"whatsapp"}),v("whatsapp_clicked",{source_page:window.location.pathname,source_component:"ContactModal"})}})]})})]})})})}const I=({className:a,children:n})=>{const{t:i,i18n:s}=g("common"),o=F(null,s.language);return o?e.jsx("a",{href:o,className:a,"aria-label":i("nav.personalArea"),children:n??i("nav.personalArea")}):null},C=[.22,1,.36,1],de=[{icon:oe,label:"Instagram",href:"https://www.instagram.com/homizycoliving/"},{icon:re,label:"LinkedIn",href:"https://www.linkedin.com/company/homizycoliving/"},{icon:X,label:"Email",href:"mailto:[email protected]"}];function he({open:a,onClose:n,onContactOpen:i}){const{t:s,i18n:o}=g("common"),r=D(),l=_(),{localize:c,anchor:u}=y(),N=V(),b=d.useRef(null),f=c("HOME"),p=[{label:s("nav.howItWorks"),href:`${f}${u("HOW_IT_WORKS")}`},{label:s("nav.why"),href:c("WHY")},{label:s("nav.residences"),href:c("RESIDENZE")},{label:s("nav.faq"),href:c("FAQ")}],k=t=>t.includes("#")?r.pathname===f&&r.hash===t.substring(t.indexOf("#")):r.pathname===t;d.useEffect(()=>{a&&n()},[r.pathname]),d.useEffect(()=>(a?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[a]),d.useEffect(()=>{if(!a)return;const t=x=>{x.key==="Escape"&&n()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,n]),d.useEffect(()=>{a&&setTimeout(()=>{var t;return(t=b.current)==null?void 0:t.focus()},100)},[a]);const m=t=>{n();const x=t.indexOf("#");if(x!==-1&&(t.substring(0,x)===f||t.startsWith("#"))){const L=t.substring(x);r.pathname===f?setTimeout(()=>{var E;(E=document.querySelector(L))==null||E.scrollIntoView({behavior:"smooth"})},350):l(`${f}${L}`)}else l(t)},R=U(o.language);return Y.createPortal(e.jsx(q,{children:a&&e.jsx(M.div,{className:"fixed inset-0 z-[9999] bg-homizy-black",initial:{opacity:0}
21,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:C},role:"dialog","aria-modal":"true","aria-label":s("mobileMenu.navAria"),children:e.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[e.jsxs("div",{className:"relative mx-4 mt-3 rounded-2xl overflow-hidden shrink-0",style:{height:"38vh",minHeight:"200px",maxHeight:"320px"},children:[e.jsx(M.img,{src:se,alt:"",className:"absolute inset-0 w-full h-full object-cover",initial:{scale:1.15},animate:{scale:1},exit:{scale:1.05},transition:{duration:.8,ease:C}}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-homizy-black via-homizy-black/30 to-transparent"}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("img",{src:A,alt:"Homizy",className:"h-6 brightness-0 invert"})}),e.jsx("button",{ref:b,onClick:n,"aria-label":s("mobileMenu.close"),className:"absolute top-3 right-3 flex h-11 w-11 items-center justify-center rounded-xl bg-white/10 backdrop-blur-sm text-white/80 active:text-white transition-colors",children:e.jsx(K,{className:"h-5 w-5"})})]}),e.jsx("div",{className:"px-8 pt-6 pb-2",children:e.jsx("span",{className:"text-xs font-medium uppercase tracking-[0.2em] text-white/30",children:"Menu"})}),e.jsx("nav",{className:"px-8",children:p.map((t,x)=>e.jsxs(M.button,{onClick:()=>m(t.href),initial:{clipPath:"inset(100% 0 0 0)"},animate:{clipPath:"inset(0% 0 0 0)"},transition:{delay:.2+x*.07,duration:.5,ease:C},className:h("flex items-center justify-between w-full py-4 min-h-[52px] border-b border-white/[0.06] transition-colors",k(t.href)?"text-primary":"text-white active:text-white/60"),children:[e.jsx("span",{className:"text-2xl font-bold tracking-tight",children:t.label}),e.jsx(Q,{className:"h-5 w-5 text-white/20 shrink-0"})]},t.href))}),e.jsx("div",{className:"flex-1 min-h-6"}),e.jsxs("div",{className:"px-8 flex flex-col items-center gap-2",children:[e.jsx(w,{variant:"yellow",to:`${c("CONFIGURATOR")}?src=header`,className:"w-full",children:s("buttons.startHere")}),e.jsxs("button",{onClick:()=>{n(),setTimeout(()=>i(),300)},className:"inline-flex items-center gap-1.5 text-sm font-medium text-white/40 active:text-white transition-colors min-h-[44px]",children:[s("nav.bookVisit"),e.jsx("span",{className:"text-white/20",children:"â"})]}),e.jsxs(I,{className:"inline-flex items-center gap-1.5 text-sm font-medium text-white/40 active:text-white transition-colors min-h-[44px]",children:[s("nav.personalArea"),e.jsx("span",{className:"text-white/20",children:"â"})]})]}),e.jsx("div",{className:"px-8 pt-1",style:{paddingBottom:"max(2rem, env(safe-area-inset-bottom))"},children:e.jsxs("div",{className:"flex items-center justify-between flex-col",children:[e.jsx("div",{className:"flex items-center gap-2.5",children:de.map(t=>e.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer","aria-label":t.label,className:"flex h-11 w-11 items-center justify-center rounded-lg border border-white/10 text-white/40 transition-colors active:border-primary active:text-primary",children:e.jsx(t.icon,{className:"h-4 w-4"})},t.label))}),e.jsx("div",{className:"flex items-center gap-1",children:Z.map((t,x)=>e.jsxs("span",{className:"flex items-center gap-1",children:[x>0&&e.jsx("span",{className:"text-white/20 text-xs",children:"·"}),e.jsxs("button",{onClick:()=>{n(),N(t.code)},"aria-label":`Switch to ${t.label}`,className:h("flex items-center gap-1.5 text-xs transition-colors min-h-[44px] px-1",R===t.code?"text-white/80 font-semibold":"text-white/40 active:text-white/70"),children:[e.jsx("span",{children:t.flag}),e.jsx("span",{children:t.label})]})]},t.code))})]})})]})})}),document.body)}const me=({showSolid:a,onContactOpen:n,onMobileOpen:i})=>{const{t:s}=g("common"),{localize:o}=y();return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(I,{className:h("hidden md:inline-flex items-center text-sm font-medium transition-colors hover:text-primary",a?"text-muted-foreground":"text-white/80")}),e.jsx(w,{variant:a?"outline":"outline-white",onClick:n,className:"hidden md:inline-flex",children:s("nav.bookVisit")}),e.jsx(w,{variant:"yellow",to:`${o("CONFIGURATOR")}?src=header`,className:"hidden md:inline-flex",children:s("buttons.startHere")}),e.jsx(J,{triggerClassName:h("hidden md:inline-flex",a?"text-muted-foreground hover:text-foreground":"text-white/80 hover:text-foreground")}),e.jsx(w,{variant:a?"outline":"outline-white",onClick:n,className:"md:hidden h-10 px-3 text-[13px]",children:s("nav.bookVisit")}),e.jsx(ee,{variant:"ghost",size:"icon","aria-label":"Menu",className:h("md:hidden",a?"text-foreground hover:text-foreground":"text-white hover:bg-white/10 hover:text-white"),onClick:i,children:e.jsx(ae,{className:"h-5 w-5"})})]})},xe=()=>
21{const[a,n]=d.useState(0);return d.useEffect(()=>{const i=()=>n(window.scrollY);return window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),a},z=42,ue=28,fe=80;function ve({variant:a="transparent"}){const{t:n}=g("common"),{localize:i,anchor:s}=y(),o=[{label:n("nav.howItWorks"),href:`${i("HOME")}${s("HOW_IT_WORKS")}`},{label:n("nav.why"),href:i("WHY")},{label:n("nav.residences"),href:i("RESIDENZE")},{label:n("nav.faq"),href:i("FAQ")}],[r,l]=d.useState(!1),[c,u]=d.useState(!1),N=a==="transparent",b=xe(),f=b>60,p=!N||f,k=Math.round(z-Math.min(b/fe,1)*(z-ue));return e.jsxs("header",{className:h("fixed left-0 right-0 z-50 transition-all duration-300",p?"bg-background/95 backdrop-blur-md shadow-sm border-b border-border":"bg-transparent"),style:{top:"var(--summer-promo-strip-height, 0px)"},children:[e.jsxs("div",{className:"container flex h-[72px] items-center justify-between",children:[e.jsx(H,{to:i("HOME"),className:"flex items-center",children:e.jsx("img",{src:A,alt:"Homizy",style:{height:`${k}px`},className:"block transition-[height] duration-100 ease-out"})}),e.jsx("nav",{className:"hidden items-center gap-8 md:flex",children:o.map(m=>m.href.includes("#")?e.jsx("a",{href:m.href,className:h("text-sm font-medium transition-colors hover:text-primary",p?"text-muted-foreground":"text-white/80"),children:m.label},m.href):e.jsx(H,{to:m.href,className:h("text-sm font-medium transition-colors hover:text-primary",p?"text-muted-foreground":"text-white/80"),children:m.label},m.href))}),e.jsx(me,{showSolid:p,onContactOpen:()=>u(!0),onMobileOpen:()=>l(!0)})]}),e.jsx(he,{open:r,onClose:()=>l(!1),onContactOpen:()=>u(!0)}),e.jsx(ce,{open:c,onOpenChange:u})]})}
21export{ce as C,ve as H,oe as I,re as L};
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.