1import{u as H,j as t,r as f,d as Z}from"./vendor-DyBgZv16.js";import{K as ee,e as te,B as ae,ai as oe,G as se,at as M,bA as P,X as B,bB as ne}from"./icones-CREHTfx9.js";import{b as le,u as _,C as W,e as re,N as L,I as ie,a as ce}from"./index-5iydr5a6.js";const me="https://www.homio.com.br",de=[{label:"gestaoDeVendas",icon:ee,href:"/saiba-mais"},{label:"centralDeConversas",icon:te,href:"/conversas"},{label:"inteligenciaArtificial",icon:ae,href:"/ia"},{label:"dadosEAnalytics",icon:oe,href:"/dados-analytics"}],R=[{label:"produto",children:de},{label:"saibaMais",href:"/saiba-mais"},{label:"precos",href:"/precos"},{label:"parceiros",href:"/parceiros"},{label:"blog",href:"/blog"}],A=({claro:w=!1,compacto:x=!1})=>{const m=le(),{pathname:l}=H(),d=_(W),r=ie.find(O=>O!==m)??"pt",I=re(l,r);return t.jsxs("a",{href:I,hrefLang:r,"aria-label":`${d.cabecalho.trocarIdioma}: ${L[r]}`,title:L[r],className:`inline-flex items-center gap-1.5 rounded-lg font-bold transition-colors ${x?"text-[13px] px-2.5 py-1.5":"text-sm px-3 py-2"} ${w?"text-gray-300 hover:text-white hover:bg-white/10":"text-gray-500 hover:text-brand-purple hover:bg-gray-100"}`,children:[t.jsx(se,{size:15,strokeWidth:2}),r.toUpperCase()]})},G="https://storage.googleapis.com/msgsndr/sTzec3aUgGdmWIlduwGM/media/6850689d4a13d5545c24a098.png",he="https://storage.googleapis.com/msgsndr/sTzec3aUgGdmWIlduwGM/media/6977e87ad4fb9015ec21727f.png",ue=({onOpenModal:w,darkMode:x=!1,revealOnScroll:m=!1})=>{const[l,d]=f.useState(!1),[r,I]=f.useState(!1),[O,U]=f.useState(!1),[i,u]=f.useState(null),v=H(),j=Z(),o=_(W),b=ce(),$=e=>o.menuProduto[e]??e,D=e=>{w?w(e):j(b("/agendar-demo"))},h=f.useRef(null),N=m?O:r,T=x&&!N;f.useEffect(()=>{const e=()=>{I(window.scrollY>20),U(window.scrollY>window.innerHeight*2)};return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);const Y=e=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(e)},50)},K=()=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(null)},150)},n=(e,a)=>{if(!a){e.preventDefault();return}if(e.preventDefault(),d(!1),u(null),a.startsWith("http")){window.open(a,"_blank","noopener,noreferrer");return}if(!a.includes("#")){j(b(a)),window.scrollTo({top:0,behavior:"smooth"});return}const[s,k]=a.split("#");if(s&&s!=="/"&&v.pathname!==s)j(b(s)),setTimeout(()=>{const c=document.getElementById(k);if(c){const C=c.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:C,behavior:"smooth"})}},300);else if(s==="/"&&v.pathname!=="/")j(b("/")),setTimeout(()=>{const c=document.getElementById(k);if(c){const C=c.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:C,behavior:"smooth"})}},300);else{const c=k||s.replace("/",""),y=document.getElementById(c);if(y){const Q=y.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:Q,behavior:"smooth"})}}},p=e=>e?e.startsWith("http")||e.startsWith("#")?e:b(e):"#",E=x&&N,g=x,V=N?`fixed top-4 left-0 right-0 mx-auto w-[95%] max-w-[1240px] rounded-2xl backdrop-blur-md shadow-dropdown h-[70px] ${E?"bg-[#0a0a0a] border border-white/10":"bg-white/90 border border-gray-200/50"} ${m?"animate-in slide-in-from-top-6 fade-in duration-300":""}`:m?"absolute top-0 left-0 right-0 h-[80px] bg-transparent":"fixed top-0 left-0 right-0 h-[80px] bg-transparent border-b border-transparent",S=g?"text-gray-300 hover:text-white":"text-gray-500 hover:text-[#191919]",F=g?"text-white font-bold":"text-brand-purple font-bold",X=g?he:G,q=g?"text-gray-300":"text-gray-500",J=T?"bg-white text-[#191919] hover:bg-gray-100":E?"bg-[#a552fb] text-white hover:bg-[#8e44dd]":"bg-brand-purple text-white hover:bg-[#2a105e]";return t.jsxs("header",{className:`${V} z-50 transition-all duration-300 flex items-center`,children:[t.jsxs("div",{className:`w-full h-full px-6 flex items-center justify-between ${N?"":"max-w-[1240px] mx-auto"}`,children:[t.jsx("div",{className:"flex-shrink-0",children:t.jsx("a",{href:p("/"),onClick:e=>n(e,"/"),className:"flex items-center gap-2.5 group outline-none",children:t.jsx("img",{src:X,alt:"Homio",width:1080,height:274,className:"h-8 w-auto object-contain"})})}),t.jsx("nav",{className:"hidden lg:flex items-center gap-10","aria-label":o.cabecalho.navegacaoPrincipal,children:R.map(e=>t.jsxs("div",{className:"relative h-full flex items-center",onMouseEnter:()=>e.children&&Y(e.label),onMouseLeave:K,children:[t.jsxs("a",{href:p(e.href),onClick:a=>{if(e.children){a.preventDefault(),u(i===e.label?null:e.label);return}n(a,e.href)},className:`flex items-center gap-1 text-[13px] font-medium transition-colors duration-200 outline-none cursor-pointer py-2 2 ${i===e.label?T?"text-white":"text-brand-purple":S} 3 ${v.pathname===e.href?F:""} 4 `,children:[o.navegacao[e.label],e.children&&t.jsx(M,{size:12,className:`transition-transform duration-300 opacity-40 ${i===e.label?"rotate-180":""} ${q}`})]}),e.children&&i===e.label&&t.jsx("div",{className:"absolute top-[calc(100%-10px)] left-1/2 -translate-x-1/2 bg-white rounded-xl shadow-dropdown border border-gray-100 overflow-hidden animate-in fade-in slide-in-from-top-1 duration-200 z-50",children:t.jsx("div",{className:"p-2 w-[240px] flex flex-col",children:e.children.map(a=>t.jsxs("a",{href:p(a.href),onClick:s=>n(s,a.href),className:"flex items-center gap-3 p-3 rounded-lg hover:bg-[#f9fafb] transition-colors group/item cursor-pointer",children:[a.icon&&t.jsx(a.icon,{size:16,className:"text-gray-300 group-hover/item:text-brand-purple transition-colors"}),t.jsx("span",{className:"text-[13px] font-semibold text-[#191919] whitespace-nowrap",children:$(a.label)})]},a.label))})})]},e.label))}),t.jsxs("div",{className:"hidden lg:flex items-center gap-6",children:[t.jsx(A,{claro:g,compacto:!0}),t.jsxs("a",{href:"https://app.homio.com.br",onClick:e=>n(e,"https://app.homio.com.br"),className:`text-[13px] font-medium transition-colors flex items-center gap-2 ${S}`,children:[t.jsx(P,{size:14,className:"opacity-40"}),o.cabecalho.entrar]}),t.jsx("button",{onClick:()=>D(),className:`px-6 py-3 text-[13px] font-semibold rounded-lg transition-all duration-300 outline-none ${J}`,children:o.cabecalho.agendar})]}),t.jsx("button",{className:`lg:hidden p-2 outline-none ${T?"text-white":"text-[#191919]"}`,onClick:()=>d(!l),"aria-label":l?o.cabecalho.fecharMenu:o.cabecalho.abrirMenu,"aria-expanded":l,children:l?t.jsx(B,{size:24}):t.jsx(ne,{size:24})})]}),l&&t.jsxs("div",{className:"lg:hidden fixed inset-0 top-0 bg-white z-40 animate-in slide-in-from-right duration-300 overflow-y-auto flex flex-col",children:[t.jsxs("div",{className:"flex items-center justify-between px-6 py-5 border-b border-gray-100",children:[t.jsx("a",{href:p("/"),onClick:e=>{n(e,"/")},className:"outline-none",children:t.jsx("img",{src:G,alt:"Homio",width:1080,height:274,className:"h-7 w-auto object-contain"})}),t.jsx("button",{className:"p-2 text-[#191919] outline-none",onClick:()=>d(!1),children:t.jsx(B,{size:24})})]}),t.jsxs("div",{className:"flex-1 flex flex-col gap-1 px-6 py-6",children:[R.map(e=>t.jsx("div",{children:e.children?t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:()=>u(i===e.label?null:e.label),className:"w-full flex items-center justify-between py-3 text-lg font-bold text-[#191919] outline-none",children:[o.navegacao[e.label],t.jsx(M,{size:18,className:`text-gray-400 transition-transform duration-200 ${i===e.label?"rotate-180":""}`})]}),i===e.label&&t.jsx("div",{className:"pl-4 pb-2 flex flex-col gap-1 animate-in fade-in slide-in-from-top-1 duration-200",children:e.children.map(a=>t.jsxs("a",{href:p(a.href),onClick:s=>n(s,a.href),className:"flex items-center gap-3 py-2.5 px-3 rounded-xl hover:bg-gray-50 transition-colors",children:[a.icon&&t.jsx(a.icon,{size:16,className:"text-gray-400"}),t.jsx("span",{className:"text-[15px] font-semibold text-gray-700",children:$(a.label)})]},a.label))})]}):t.jsx("a",{href:p(e.href),onClick:a=>n(a,e.href),className:`block py-3 text-lg font-bold transition-colors ${v.pathname===e.href?"text-brand-purple":"text-[#191919]"}`,children:o.navegacao[e.label]})},e.label)),t.jsxs("a",{href:"https://app.homio.com.br",onClick:e=>n(e,"https://app.homio.com.br"),className:"flex items-center gap-2 py-3 text-lg font-bold text-gray-500",children:[t.jsx(P,{size:18,className:"opacity-60"}),o.cabecalho.entrar]}),t.jsx("div",{className:"-ml-3 pt-1",children:t.jsx(A,{})})]}),t.jsx("div",{className:"px-6 pb-8 pt-2",children:t.jsx("button",{onClick:()=>{d(!1),D()},className:"w-full py-4 bg-brand-purple text-white rounded-lg font-bold text-base shadow-lg shadow-brand-purple/20 active:scale-[0.98] transition-transform",children:o.cabecalho.agendar})})]})]})};export{ue as H,de as P,A as S,me as a};
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.