1import{a as e,n as t,t as n}from"./jsx-runtime-KJkY8l8U.js";import{t as r}from"./link-D3nZUjiA.js";import{S as i,_ as a,h as o}from"./index-DD07JO8K.js";import{o as s}from"./post-display-CQIT75eY.js";var c=e(t(),1),l=n(),u=`https://api.whatsapp.com/send?phone=5511999606113&text=Ol%C3%A1!%20Vim%20pelo%20site%20da%20FRN%C2%B3%20e%20quero%20falar%20sobre%20um%20projeto%20de%20e-commerce.`,d=`tel:+551133992921`,f=`mailto:[email protected]`,p=[{key:`whatsapp`,label:`WhatsApp comercial`,value:`(11) 99960-6113`,href:u,external:!0,icon:(0,l.jsx)(`path`,{d:`M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.28-1.38a9.9 9.9 0 0 0 4.76 1.21h.01c5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2m5.8 14.06c-.24.68-1.42 1.32-1.95 1.36-.5.04-.96.22-3.24-.67-2.73-1.08-4.45-3.86-4.58-4.04-.13-.18-1.09-1.45-1.09-2.77s.69-1.96.94-2.23c.24-.27.53-.34.71-.34s.35 0 .5.01c.16.01.38-.06.59.45.24.57.8 1.98.87 2.12.07.14.12.31.02.49-.1.18-.15.29-.29.45-.14.16-.3.36-.43.48-.14.14-.29.29-.12.57.16.27.72 1.19 1.55 1.93 1.07.95 1.97 1.25 2.25 1.39.27.14.43.12.59-.07.16-.
118.68-.79.86-1.07.18-.27.36-.22.6-.13.25.09 1.56.74 1.83.87.27.14.45.2.51.31.07.11.07.64-.17 1.32`})},{key:`tel`,label:`Telefone comercial`,value:`(11) 3399-2921`,href:d,external:!1,icon:(0,l.jsx)(`path`,{d:`M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.4 21 3 13.6 3 4.5c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1z`})},{key:`mail`,label:`E-mail`,value:`[email protected]`,href:f,external:!1,icon:(0,l.jsx)(`path`,{d:`M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 4-8 5-8-5V6l8 5 8-5z`})}];function m(){let[e,t]=(0,c.useState)(!1),[n,i]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=setTimeout(()=>i(!0),900);return()=>clearTimeout(e)},[]),(0,l.jsxs)(`div`,{className:`flex flex-col items-end gap-3 transition-all duration-500 print:hidden ${n?`translate-y-0 opacity-100`:`pointer-events-none translate-y-4 opacity-0`}`,children:[e&&(0,l.jsxs)(`div`,{className:`animate-fade-in w-[19rem] overflow-hidden rounded-2xl border border-white/10 bg-brand-navy shadow-2xl`,children:[(0,l.jsxs)(`div`,{className:`border-b border-white/10 px-5 py-4`,children:[(0,l.jsx)(`p`,{className:`text-[10px] font-bold uppercase tracking-[0.28em] text-brand-mint`,children:`Fale com a FRN³`}),(0,l.jsx)(`p`,{className:`mt-1.5 text-xs leading-relaxed text-foreground/50`,children:`Resposta em até 1 dia útil. Seg a sex, 9h à s 18h.`})]}),(0,l.jsx)(`ul`,{className:`p-2`,children:p.map(e=>(0,l.jsx)(`li`,{children:(0,l.jsxs)(`a`,{href:e.href,target:e.external?`_blank`:void 0,rel:e.external?`noopener noreferrer`:void 0,className:`group flex items-center gap-3 rounded-xl px-3 py-3 transition-colors hover:bg-white/5`,children:[(0,l.jsx)(`span`,{className:`grid size-9 shrink-0 place-items-center rounded-full border border-brand-mint/25 text-brand-mint transition-colors group-hover:bg-brand-mint group-hover:text-brand-navy`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:`size-4`,children:e.icon})}),(0,l.jsxs)(`span`,{className:`min-w-0`,children:[(0,l.jsx)(`span`,{className:`block text-[10px] font-bold uppercase tracking-[0.2em] text-foreground/35`,children:e.label}),(0,l.jsx)(`span`,{className:`block truncate text-sm font-semibold text-foreground/85`,children:e.value})]})]})},e.key))}),(0,l.jsx)(`div`,{className:`border-t border-white/10 p-3`,children:(0,l.jsx)(r,{to:`/$`,params:{_splat:`contato/`},onClick:()=>t(!1),className:`block rounded-xl bg-brand-mint px-4 py-3 text-center text-[11px] font-bold uppercase tracking-[0.2em] text-brand-navy transition-opacity hover:opacity-90`,children:`Briefar meu projeto â`})})]}),(0,l.jsxs)(`button`,{type:`button`,onClick:()=>t(e=>!e),"aria-expanded":e,"aria-label":e?`Fechar canais de contato`:`Abrir canais de contato`,className:`group relative flex items-center gap-3 rounded-full bg-brand-mint py-3 pl-4 pr-5 font-bold text-brand-navy shadow-2xl transition-transform hover:scale-[1.03]`,children:[(0,l.jsx)(`span`,{"aria-hidden":!0,className:`absolute inset-0 -z-10 rounded-full bg-brand-mint/40 blur-xl transition-opacity group-hover:opacity-100`}),(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:`size-5`,children:e?(0,l.jsx)(`path`,{d:`M18.3 5.7 12 12l6.3 6.3-1.4 1.4L10.6 13.4 4.3 19.7 2.9 18.3 9.2 12 2.9 5.7l1.4-1.4L10.6 10.6l6.3-6.3z`}):p[0].icon}),(0,l.jsx)(`span`,{className:`text-[11px] uppercase tracking-[0.18em]`,children:e?`Fechar`:`Fale conosco`})]})]})}var h=`frn3.cookie-consent`;function g(){let[e,t]=(0,c.useState)(!1),[n,i]=(0,c.useState)(!1);(0,c.useEffect)(()=>{try{if(window.localStorage.getItem(h))return}catch{}let e=setTimeout(()=>t(!0),1200);return()=>clearTimeout(e)},[]);let a=e=>{try{window.localStorage.setItem(h,JSON.stringify({value:e,at:new Date().toISOString()}))}catch{}t(!1)};return e?(0,l.jsx)(`div`,{role:`dialog`,"aria-label":`Preferências de cookies`,className:`animate-fade-in fixed inset-x-0 bottom-0 z-[63] px-3 pb-[calc(4rem+env(safe-area-inset-bottom))] md:pb-3 print:hidden sm:px-6 sm:pb-4`,children:(0,l.jsx)(`div`,{className:`mx-auto max-h-[70vh] max-w-5xl overflow-y-auto rounded-2xl border border-white/10 bg-brand-navy shadow-2xl`,children:(0,l.jsxs)(`div`,{className:`grid gap-4 p-4 sm:gap-5 sm:p-6 lg:grid-cols-[1.6fr_1fr] lg:items-center`,children:[(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`p`,{className:`text-[10px] font-bold uppercase tracking-[0.2em] text-brand-mint sm:tracking-[0.28em]`,children:`Privacidade & cookies`}),(0,l.jsxs)(`p`,{className:`mt-2 text-[13px] leading-snug text-foreground
1/60 sm:text-sm sm:leading-relaxed`,children:[`Usamos cookies para manter o site funcionando, medir audiência e melhorar sua experiência. Saiba mais na`,` `,(0,l.jsx)(r,{to:`/$`,params:{_splat:`politica-de-privacidade/`},className:`text-brand-mint underline underline-offset-4`,children:`PolÃtica de Privacidade`}),`.`]}),(0,l.jsxs)(`button`,{type:`button`,onClick:()=>i(e=>!e),className:`mt-2 text-[10px] font-bold uppercase tracking-[0.2em] text-foreground/40 hover:text-brand-mint sm:mt-3`,children:[n?`Ocultar detalhes`:`Ver categorias`,` â¾`]}),n&&(0,l.jsxs)(`ul`,{className:`mt-3 grid gap-2 text-xs text-foreground/45 sm:grid-cols-3`,children:[(0,l.jsxs)(`li`,{className:`rounded-lg border border-white/10 p-3`,children:[(0,l.jsx)(`span`,{className:`block font-bold text-foreground/70`,children:`Essenciais`}),`Necessários para navegação e segurança. Sempre ativos.`]}),(0,l.jsxs)(`li`,{className:`rounded-lg border border-white/10 p-3`,children:[(0,l.jsx)(`span`,{className:`block font-bold text-foreground/70`,children:`AnalÃticos`}),`Medem páginas vistas e origem do tráfego, de forma agregada.`]}),(0,l.jsxs)(`li`,{className:`rounded-lg border border-white/10 p-3`,children:[(0,l.jsx)(`span`,{className:`block font-bold text-foreground/70`,children:`Marketing`}),`Permitem mensurar campanhas e remarketing.`]})]})]}),(0,l.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:gap-3 lg:flex-col`,children:[(0,l.jsx)(`button`,{type:`button`,onClick:()=>
1a(`all`),className:`flex-1 rounded-full bg-brand-mint px-6 py-3 text-[11px] font-bold uppercase tracking-[0.2em] text-brand-navy transition-opacity hover:opacity-90`,children:`Aceitar todos`}),(0,l.jsx)(`button`,{type:`button`,onClick:()=>a(`essential`),className:`flex-1 rounded-full border border-white/15 px-6 py-2.5 text-[11px] font-bold uppercase tracking-[0.2em] text-foreground/70 transition-colors hover:border-brand-mint/40 hover:text-brand-mint sm:py-3`,children:`Apenas essenciais`})]})]})})}):null}var _=[`Quais serviços vocês oferecem?`,`Vocês migram minha loja para a VTEX?`,`Como funciona o trabalho de CRO?`,`O que é a Orne.ai?`,`Quero falar com uma pessoa`],v=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,y=/(falar com (um |uma )?(humano|pessoa|atendente|especialista|consultor|vendedor)|atendimento humano|me liga|whatsapp|ligar para|falar com algu[ée]m|pessoa real)/i;function b(e,t){let n=[],r=/\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`/g,i=0,a,o=0;for(;a=r.exec(e);)a.index>i&&n.push(e.slice(i,a.index)),a[1]&&a[2]?n.push((0,l.jsx)(`a`,{href:a[2],className:`text-brand-mint underline underline-offset-2`,children:a[1]},`${t}-${o}`)):a[3]?n.push((0,l.jsx)(`strong`,{className:`font-semibold text-foreground/90`,children:a[3]},`${t}-${o}`)):a[4]&&n.push((0,l.jsx)(`code`,{className:`text-brand-mint`,children:a[4]},`${t}-${o}`)),i=a.index+a[0].length,o+=1;return i<e.length&&n.push(e.slice(i)),n}function x({text:e}){return(0,l.jsx)(`div`,{className:`space-y-2`,children:e.split(` 2`).filter(e=>e.trim()!==``).map((e,t)=>{let n=/^\s*([-*â¢]|\d+\.)\s+/.exec(e);return n?(0,l.jsxs)(`p`,{className:`flex gap-2 pl-1`,children:[(0,l.jsx)(`span`,{"aria-hidden":!0,className:`text-brand-mint`,children:`-`}),(0,l.jsx)(`span`,{children:b(e.slice(n[0].length),t)})]},t):(0,l.jsx)(`p`,{children:b(e,t)},t)})})}function S(e){return`w-full border-b bg-transparent px-0 py-2.5 text-sm outline-none transition-colors placeholder:text-foreground/25 focus:border-brand-mint ${e?`border-destructive`:`border-border`}`}var C=`frn3:ai-open`;function w(){return(0,l.jsxs)(`div`,{className:`mt-3 rounded-xl border border-brand-mint/20 bg-brand-mint/5 p-3.5`,children:[(0,l.jsx)(`p`,{className:`text-[11px] font-bold uppercase tracking-[0.2em] text-brand-mint`,children:`Atendimento humano`}),(0,l.jsx)(`p`,{className:`mt-1 text-xs text-foreground/55`,children:`Escolha o canal que preferir â o time comercial da FRN³ entra em contato:`}),(0,l.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:[(0,l.jsxs)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 rounded-lg bg-brand-mint px-3.5 py-2 text-[11px] font-bold uppercase tracking-[0.15em] text-brand-navy transition-opacity hover:opacity-90`,children:[(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:`size-4`,children:(0,l.jsx)(`path`,{d:`M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.28-1.38a9.9 9.9 0 0 0 4.76 1.21h.01c5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2m5.8 14.06c-.24.68-1.42 1.32-1.95 1.36-.5.04-.96.22-3.24-.67-2.73-1.08-4.45-3.86-4.58-4.04-.13-.18-1.09-1.45-1.09-2.77s.69-1.96.94-2.23c.24-.27.53-.34.71-.34s.35 0 .5.01c.16.01.38-.06.59.45.24.57.8 1.98.87 2.12.07.14.12.31.02.49-.1.18-.15.29-.29.45-.14.16-.3.36-.43.48-.14.14-.29.29-.12.57.16.27.72 1.19 1.55 1.93 1.07.95 1.97 1.25 2.25 1.39.27.14.43.12.59-.07.16-.
218.68-.79.86-1.07.18-.27.36-.22.6-.13.25.09 1.56.74 1.83.87.27.14.45.2.51.31.07.11.07.64-.17 1.32`})}),`WhatsApp`]}),(0,l.jsxs)(`a`,{href:f,className:`inline-flex items-center gap-2 rounded-lg border border-brand-mint/30 px-3.5 py-2 text-[11px] font-bold uppercase tracking-[0.15em] text-brand-mint transition-colors hover:bg-brand-mint/10`,children:[(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:`size-4`,children:(0,l.jsx)(`path`,{d:`M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 4-8 5-8-5V6l8 5 8-5z`})}),`E-mail`]}),(0,l.jsxs)(`a`,{href:d,className:`inline-flex items-center gap-2 rounded-lg border border-brand-mint/30 px-3.5 py-2 text-[11px] font-bold uppercase tracking-[0.15em] text-brand-mint transition-colors hover:bg-brand-mint/10`,children:[(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:`size-4`,children:(0,l.jsx)(`path`,{d:`M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.4 21 3 13.6 3 4.5c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1z`})}),`Ligar`]})]})]})}function T(e){typeof window>`u`||(i({event:`ai_assistant_open`,category:`ia_atendimento`,label:e?e.slice(0,120):`abertura_direta`}),window.dispatchEvent(new CustomEvent(C,{detail:{question:e??null}})))}function E({compact:e=!1,question:t=null}){let n=(0,c.useRef)(null),[r,a]=(0,c.useState)({name:``,email:``,company:``,phone:``}),[o,s]=(0,c.useState)(!1),[p,m]=(0,c.useState)({}),[h,g]=(0,c.useState)([]),[b,C]=(0,c.useState)(``),[T,E]=(0,c.useState)(!1),[D,O]=(0,c.useState)(null),k=(0,c.useRef)(null),A=(0,c.useRef)(null),j=(0,c.useRef)(null);(0,c.useEffect)(()=>{A.current?.scrollTo({top:A.current.scrollHeight,behavior:`smooth`})},[h,T]),(0,c.useEffect)(()=>{o&&!T&&j.current?.focus()},[o,T]);let M=(0,c.useCallback)(async e=>{let t=e.trim();if(!t||T)return;O(null),C(``),y.test(t)&&i({event:`ai_handoff_requested`,category:`ia_atendimento`,label:t.slice(0,120)});let n=[...h,{role:`user`,content:t}];g([...n,{role:`assistant`,content:``}]),E(!0);try{let e=await fetch(`/api/chat`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({conversationId:k.current,lead:{name:r.name,email:r.email,company:r.company,phone:r.phone,sourcePath:typeof window<`u`?window.location.pathname:null},messages:n})});if(!e.ok||!e.body)throw Error(await e.text().catch(()=>`Falha no atendimento.`));k.current=e.headers.get(`X-Conversation-Id`)??k.current;let t=e.body.getReader(),i=new TextDecoder,a=``;for(;;){let{done:e,value:r}=await t.read();if(e)break;a+=i.decode(r,{stream:!0}),g([...n,{role:`assistant`,content:a}])}a.trim()||g([...n,{role:`assistant`,content:`Não consegui responder agora. Fale com um especialista pelo WhatsApp (11) 99960-6113.`}])}catch(e){g(n),O(e instanceof Error&&e.message?e.message:`Não conseguimos responder agora. Tente novamente.`)}finally{E(!1)}},[T,r,h]);return(0,c.useEffect)(()=>{!t||!o||T||n.current!==t&&(n.current=t,M(t))},[t,o,T,M]),o?(0,l.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,l.jsx)(`div`,{ref:A,className:`min-h-0 flex-1 space-y-5 overflow-y-auto pr-1 ${e?`max-h-[22rem]`:`max-h-[26rem]`}`,children:h.map((e,t)=>(0,l.jsx)(`div`,{className:e.role===`user`?`flex justify-end`:``,children:e.role===`user`?(0,l.jsx)(`p`,{className:`max-w-[85%] bg-brand-mint px-4 py-2.5 text-sm font-medium text-brand-navy`,children:e.content}):(0,l.jsxs)(`div`,{className:`max-w-[92%] text-sm leading-relaxed text-foreground/70`,children:[(0,l.jsx)(`p`,{className:`mb-1.5 text-[10px] font-bold uppercase tracking-[0.25em] text-brand-mint`,children:`Ana · FRN³`}),e.content?(0,l.jsx)(x,{text:e.content}):(0,l.jsx)(`span`,{className:`inline-flex gap-1 text-foreground/35`,children:(0,l.jsx)(`span`,{className:`animate-pulse`,children:`escrevendoâ¦`})})]})},t))}),(()=>{let e=[...h].reverse().find(e=>e.role===`user`);return e&&y.test(e.content)&&!T?(0,l.jsx)(w,{}):null})(),h.length<=2&&(0,l.jsx)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:_.map(e=>(0,l.jsx)(`button`,{type:`button`,onClick:()=>void M(e),className:`border border-border px-3 py-1.5 text-[11px] text-foreground
2/50 transition-colors hover:border-brand-mint hover:text-brand-mint`,children:e},e))}),D&&(0,l.jsx)(`p`,{className:`mt-3 text-xs text-destructive`,children:D}),(0,l.jsxs)(`form`,{className:`mt-4 flex items-end gap-2 border-t border-border pt-4`,onSubmit:e=>{e.preventDefault(),M(b)},children:[(0,l.jsx)(`textarea`,{ref:j,rows:1,value:b,onChange:e=>C(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),M(b))},placeholder:`Escreva sua dúvidaâ¦`,className:`max-h-28 min-h-[2.5rem] flex-1 resize-none bg-transparent text-sm outline-none placeholder:text-foreground/25`}),(0,l.jsx)(`button`,{type:`submit`,disabled:T||!b.trim(),className:`bg-brand-mint px-4 py-2.5 text-[11px] font-bold uppercase tracking-[0.2em] text-brand-navy transition-opacity disabled:opacity-30`,children:`Enviar`})]}),(0,l.jsxs)(`p`,{className:`mt-3 text-[11px] text-foreground/30`,children:[`Quer falar com uma pessoa?`,` `,(0,l.jsx)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,className:`text-brand-mint`,children:`WhatsApp`}),` `,`·`,` `,(0,l.jsx)(`a`,{href:d,className:`text-brand-mint`,children:`(11) 3399-2921`}),` `,`·`,` `,(0,l.jsx)(`a`,{href:f,className:`text-brand-mint`,children:`e-mail`})]})]}):(0,l.jsxs)(`form`,{className:`space-y-6`,onBlur:()=>{v.test(r.email.trim())&&fetch(`/api/lead-partial`,{method:`POST`,headers:{"Content-Type":`application/json`},keepalive:!0,body:JSON.stringify({source:`ia`,name:r.name,email:r.email.trim(),company:r.company,phone:r.phone,reason:`Atendimento com IA`,message:t??null,sourcePath:typeof window<`u`?window.location.pathname:null})}).catch(()=>void 0)},onSubmit:e=>{e.preventDefault();let t={name:!r.name.trim(),email:!v.test(r.email.trim()),company:!r.company.trim()};m(t),!(t.name||t.email||t.company)&&(s(!0),M(`Olá! Sou ${r.name.trim()}, da ${r.company.trim()}.`))},children:[(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`p`,{className:`text-[10px] font-bold uppercase tracking-[0.28em] text-brand-mint`,children:`Atendimento com IA`}),t&&(0,l.jsxs)(`p`,{className:`mt-3 border-l-2 border-brand-mint pl-3 text-sm text-foreground/70`,children:[`Sua busca: `,(0,l.jsx)(`span`,{className:`text-brand-mint`,children:t})]}),(0,l.jsx)(`p`,{className:`mt-3 text-sm leading-relaxed text-foreground/55`,children:`Nossa especialista digital responde na hora sobre serviços, plataformas, cases e produtos de IA. Para começar, precisamos saber com quem falamos.`})]}),(0,l.jsxs)(`div`,{className:e?`space-y-4`:`grid gap-4 sm:grid-cols-2`,children:[(0,l.jsx)(`input`,{className:S(!!p.name),placeholder:`Seu nome *`,value:r.name,onChange:e=>a(t=>({...t,name:e.target.value}))}),(0,l.jsx)(`input`,{className:S(!!p.email),placeholder:`E-mail corporativo *`,type:`email`,value:r.email,onChange:e=>a(t=>({...t,email:e.target.value}))}),(0,l.jsx)(`input`,{className:S(!!p.company),placeholder:`Empresa *`,value:r.company,onChange:e=>a(t=>({...t,company:e.target.value}))}),(0,l.jsx)(`input`,{className:S(!1),placeholder:`Telefone (opcional)`,value:r.phone,onChange:e=>a(t=>({...t,phone:e.target.value}))})]}),(0,l.jsx)(`button`,{type:`submit`,className:`w-full bg-brand-mint px-6 py-3.5 text-[11px] font-bold uppercase tracking-[0.2em] text-brand-navy transition-opacity hover:opacity-90`,children:`Iniciar atendimento â`}),(0,l.jsx)(`p`,{className:`text-[11px] leading-relaxed text-foreground/30`,children:`Ao iniciar, você concorda que a FRN³ registre esta conversa para dar continuidade ao atendimento. Prefere falar com uma pessoa? WhatsApp (11) 99960-6113.`})]})}function D(){return(0,l.jsx)(`section`,{id:`atendimento-ia`,className:`border-t border-border bg-brand-navy/60 py-20`,children:(0,l.jsxs)(`div`,{className:`mx-auto grid max-w-7xl gap-14 px-6 lg:grid-cols-[0.85fr_1.15fr]`,children:[(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`p`,{className:`text-[10px] font-bold uppercase tracking-[0.28em] text-brand-mint`,children:`IA · Atendimento imediato`}),(0,l.jsx)(`h2`,{className:`mt-5 font-display text-3xl font-bold leading-[1.05] tracking-tight md:text-4xl`,children:`Fale agora com a nossa especialista digital.`}),(0,l.jsx)(`p`,{className:`mt-5 max-w-md text-[15px] leading-relaxed text-foreground
2/55`,children:`Somos uma agência de commerce e de IA aplicada - e nosso atendimento também é. A Ana conhece todos os serviços da FRN³ e os produtos Orne.ai, encontra o case ou o conteúdo certo para o seu cenário e encaminha ao time humano quando você quiser.`}),(0,l.jsx)(`ul`,{className:`mt-10 space-y-4 text-sm text-foreground/55`,children:[`Responde sobre VTEX, Shopify, Wake, Uappi e Olist`,`Indica serviços, cases e artigos em segundos`,`Registra seu contexto para o time comercial`,`Passa para humano por WhatsApp, telefone ou e-mail`].map((e,t)=>(0,l.jsxs)(`li`,{className:`flex gap-4`,children:[(0,l.jsxs)(`span`,{className:`text-[10px] font-bold tracking-[0.2em] text-brand-mint`,children:[`/`,String(t+1).padStart(2,`0`)]}),(0,l.jsx)(`span`,{children:e})]},e))})]}),(0,l.jsx)(`div`,{className:`border border-border bg-brand-navy p-6 md:p-8`,children:(0,l.jsx)(E,{})})]})})}function O(){let[e,t]=(0,c.useState)(!1),[n,r]=(0,c.useState)(null);return(0,c.useEffect)(()=>{let e=e=>{let n=e.detail;t(!0),n?.question&&r(n.question)};return window.addEventListener(C,e),()=>window.removeEventListener(C,e)},[]),(0,l.jsxs)(`div`,{className:`flex flex-col items-end gap-3 print:hidden`,children:[e&&(0,l.jsxs)(`div`,{className:`animate-fade-in flex h-[32rem] max-h-[75vh] w-[min(22rem,calc(100vw-2.5rem))] flex-col overflow-hidden rounded-2xl border border-white/10 bg-brand-navy shadow-2xl`,children:[(0,l.jsxs)(`div`,{className:`flex items-center justify-between border-b border-white/10 px-5 py-4`,children:[(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`p`,{className:`text-[10px] font-bold uppercase tracking-[0.28em] text-brand-mint`,children:`Atendimento com IA`}),(0,l.jsx)(`p`,{className:`mt-1 text-xs text-foreground/45`,children:`Ana · especialista digital FRN³`})]}),(0,l.jsx)(`button`,{type:`button`,onClick:()=>t(!1),"aria-label":`Fechar atendimento com IA`,className:`text-foreground/40 transition-colors hover:text-brand-mint`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:`size-4`,children:(0,l.jsx)(`path`,{d:`M18.3 5.7 12 12l6.3 6.3-1.4 1.4L10.6 13.4 4.3 19.7 2.9 18.3 9.2 12 2.9 5.7l1.4-1.4L10.6 10.6l6.3-6.3z`})})})]}),(0,l.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:(0,l.jsx)(E,{compact:!0,question:n})})]}),(0,l.jsxs)(`button`,{type:`button`,onClick:()=>t(e=>!e),"aria-expanded":e,className:`flex items-center gap-2 rounded-full border border-brand-mint/30 bg-brand-navy/95 py-3 pl-4 pr-5 text-[11px] font-bold uppercase tracking-[0.18em] text-brand-mint shadow-2xl backdrop-blur transition-transform hover:scale-[1.03]`,children:[(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:`size-4`,children:(0,l.jsx)(`path`,{d:`M12 2 9.9 8.1 4 10.2l5.9 2.1L12 18.4l2.1-6.1L20 10.2l-5.9-2.1zM5 16l-.9 2.6L1.5 19.5l2.6.9L5 23l.9-2.6 2.6-.9-2.6-.9z`})}),e?`Fechar IA`:`Atendimento IA`]})]})}var k=[{label:`VTEX RISE + FRN³`,to:`/servicos/vtex-rise/`,desc:`Entrada na VTEX com FastStore e go-live em 30 dias`,badge:`Novo`},{label:`CRO`,to:`/servicos/cro/`,desc:`Otimização de conversão ponta a ponta`},{label:`SEO & GEO`,to:`/servicos/seo/`,desc:`Visibilidade no Google e nas IAs generativas`},{label:`MÃdia Paga`,to:`/servicos/midia/`,desc:`Performance com ROAS previsÃvel`},{label:`CRM`,to:`/servicos/crm/`,desc:`Retenção, LTV e automação`},{label:`Business Intelligence`,to:`/servicos/bi/`,desc:`Dados que viram decisão`},{label:`Implementação`,to:`/servicos/implementacao/`,desc:`VTEX, Shopify, Wake, Uappi e Olist`},{label:`Headless`,to:`/servicos/headless/`,desc:`Arquitetura composable e velocidade`},{label:`Squad Dedicada`,to:`/servicos/squad-dedicada/`,desc:`Time sênior alocado no seu roadmap`},{label:`Ongoing`,to:`/servicos/ongoing/`,desc:`Evolução contÃnua da operação`},{label:`Treinamento`,to:`/servicos/treinamento/`,desc:`Capacitação do time interno`},{label:`Migração de plataforma`,to:`/servicos/migracao-de-plataforma/`,desc:`Replatform sem perder SEO nem receita`},{label:`App commerce`,to:`/servicos/app-commerce/`,desc:`Apps iOS e Android com tecnologia Eitri`},{label:`Integrações ERP/OMS/WMS`,to:`/servicos/integracoes/`,desc:`Middleware, filas e observabilidade`},{label:`Design & UX`,to:`/servicos/design-ux/`,desc:`Criação orientada a conversão`},{label:`Marketplaces & Omnichannel`,to:`/servicos/marketplaces-omnich
2annel/`,desc:`Estoque unificado e venda em rede`},{label:`Consultoria digital`,to:`/servicos/consultoria-digital/`,desc:`Diagnóstico, roadmap e business case`},{label:`IA aplicada`,to:`/servicos/ia-aplicada/`,desc:`Consultoria de IA com implantação e medição`},{label:`Suporte & sustentação`,to:`/servicos/suporte/`,desc:`SLA por severidade e plantão de incidentes`},{label:`CMS próprio`,to:`/cms-proprio/`,desc:`Painel editorial com editor visual ao vivo`}],A=`/assets/orne-ai-logo-CQaFVOIS.png`,j=e=>e.replace(/^\//,``),M=[{label:`Serviços`,to:`/servicos/`},{label:`Cases`,to:`/cases/`},{label:`CMS próprio`,to:`/cms-proprio/`},{label:`Orne.AI`,to:`/orne-ai/`},{label:`Blog`,to:`/blog/`},{label:`Contato`,to:`/contato/`}];function N(e,t=null,n=8){let[r,i]=(0,c.useState)([]),[o,s]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let r=e.trim();if(r.length<2){i([]),s(!1);return}s(!0);let o=!0,c=setTimeout(async()=>{let e=await a(r,t,n);o&&(i(e),s(!1))},260);return()=>{o=!1,clearTimeout(c)}},[e,t,n]),{results:r,loading:o}}function P({post:e,onNavigate:t}){return(0,l.jsxs)(r,{to:`/$`,params:{_splat:j(e.path)},onClick:t,className:`group flex items-start gap-4 border-b border-border py-3.5 last:border-b-0`,children:[(0,l.jsx)(`span`,{className:`mt-1 shrink-0 text-[9px] font-bold uppercase tracking-[0.2em] text-brand-mint`,children:e.kind===`case`?`Case`:s(e)}),(0,l.jsxs)(`span`,{className:`min-w-0`,children:[(0,l.jsx)(`span`,{className:`block text-sm font-semibold leading-snug text-foreground/85 transition-colors group-hover:text-brand-mint`,children:e.title}),(0,l.jsx)(`span`,{className:`mt-1 block text-[11px] uppercase tracking-widest text-foreground/30`,children:o(e.published_at)})]})]})}function F({variant:e=`desktop`}){let[t,n]=(0,c.useState)(!1),[i,a]=(0,c.useState)(``),o=(0,c.useRef)(null),{results:s,loading:u}=N(i,null,6),d=(0,c.useCallback)(()=>{n(!1),a(``)},[]);(0,c.useEffect)(()=>{if(!t)return;o.current?.focus();let e=e=>{e.key===`Escape`&&d()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t,d]);let f=()=>{let e=i.trim();d(),T(e||void 0)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(`button`,{type:`button`,onClick:()=>n(!0),"aria-label":`Buscar no site`,className:e===`mobile`?`flex w-full items-center gap-3 border border-border px-4 py-3 text-sm text-foreground/60`:`grid size-9 place-items-center rounded-full border border-border text-foreground/60 transition-colors hover:border-brand-mint/50 hover:text-brand-mint`,children:[(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,className:`size-4`,children:[(0,l.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,l.jsx)(`path`,{d:`m20 20-3.2-3.2`,strokeLinecap:`round`})]}),e===`mobile`&&(0,l.jsx)(`span`,{children:`Buscar no site ou perguntar à IA`})]}),t&&(0,l.jsxs)(`div`,{className:`fixed inset-0 z-[100] flex items-start justify-center bg-brand-navy/80 px-4 pt-[12vh] backdrop-blur-sm print:hidden`,children:[(0,l.jsx)(`button`,{type:`button`,"aria-label":`Fechar busca`,onClick:d,className:`absolute inset-0 cursor-default`}),(0,l.jsxs)(`div`,{className:`animate-fade-in relative w-full max-w-2xl overflow-hidden rounded-2xl border border-white/10 bg-brand-navy shadow-2xl`,children:[(0,l.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),f()},className:`flex items-center gap-3 border-b border-border px-5 py-4`,children:[(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,className:`size-4 text-brand-mint`,children:[(0,l.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,l.jsx)(`path`,{d:`m20 20-3.2-3.2`,strokeLinecap:`round`})]}),(0,l.jsx)(`input`,{ref:o,value:i,onChange:e=>a(e.target.value),placeholder:`Busque serviços, cases e artigos - ou pergunte à nossa IA`,className:`flex-1 bg-transparent text-sm outline-none placeholder:text-foreground/30`}),(0,l.jsx)(`button`,{type:`submit`,className:`shrink-0 bg-brand-mint px-3 py-2 text-[10px] font-bold uppercase tracking-[0.18em] text-brand-navy`,children:`Perguntar à IA`})]}),(0,l.jsx)(`div`,{className:`max-h-[55vh] overflow-y-auto px-5 py-4`,children:i.trim().length<2?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`p`,{className:`frn-eyebrow`,children:`Atalhos`}),(0,l.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:M.map(e=>(0,l.jsx)(r,{to:`/$`,params:{_splat:j(e.to)},onClick:d,className:`rounded-full border border-white/10 px-3 py-1.5 text-xs text-foreground
2/55 transition-colors hover:border-brand-mint/40 hover:text-brand-mint`,children:e.label},e.to))}),(0,l.jsx)(`p`,{className:`mt-6 text-xs leading-relaxed text-foreground/35`,children:`Não achou? A Ana, nossa IA de atendimento, conhece todos os serviços da FRN³ e os produtos Orne.ai - pergunte em linguagem natural.`})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`p`,{className:`frn-eyebrow`,children:u?`Buscandoâ¦`:`${s.length} resultado(s) em conteúdos`}),(0,l.jsx)(`div`,{className:`mt-2`,children:s.map(e=>(0,l.jsx)(P,{post:e,onNavigate:d},e.id))}),(0,l.jsxs)(`button`,{type:`button`,onClick:f,className:`mt-5 flex w-full items-center justify-between gap-4 rounded-xl border border-brand-mint/30 bg-brand-mint/[0.06] px-4 py-3 text-left transition-colors hover:bg-brand-mint/10`,children:[(0,l.jsxs)(`span`,{className:`text-sm text-foreground/75`,children:[`Perguntar à Ana sobre`,` `,(0,l.jsxs)(`span`,{className:`text-brand-mint`,children:[`â`,i.trim(),`â`]})]}),(0,l.jsx)(`span`,{"aria-hidden":!0,className:`text-brand-mint`,children:`â`})]})]})})]})]})]})}function I(){let[e,t]=(0,c.useState)(``),{results:n,loading:r}=N(e,`artigo`,10),i=e.trim().length>=2;return(0,l.jsxs)(`div`,{className:`relative`,children:[(0,l.jsxs)(`form`,{onSubmit:e=>e.preventDefault(),className:`flex items-center gap-3 border border-border bg-white/[0.02] px-4 py-3 transition-colors focus-within:border-brand-mint/50`,children:[(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,className:`size-4 text-brand-mint`,children:[(0,l.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,l.jsx)(`path`,{d:`m20 20-3.2-3.2`,strokeLinecap:`round`})]}),(0,l.jsx)(`input`,{value:e,onChange:e=>t(e.target.value),placeholder:`Buscar artigos: VTEX, CRO, IA, checkoutâ¦`,"aria-label":`Buscar no blog`,className:`flex-1 bg-transparent text-sm outline-none placeholder:text-foreground/30`}),e&&(0,l.jsx)(`button`,{type:`button`,onClick:()=>t(``),className:`text-[10px] font-bold uppercase tracking-widest text-foreground/35 hover:text-brand-mint`,children:`Limpar`})]}),i&&(0,l.jsxs)(`div`,{className:`mt-4 border border-border bg-brand-navy px-5 py-4`,children:[(0,l.jsx)(`p`,{className:`frn-eyebrow`,children:r?`Buscandoâ¦`:`${n.length} artigo(s) encontrados`}),(0,l.jsxs)(`div`,{className:`mt-2`,children:[n.map(e=>(0,l.jsx)(P,{post:e},e.id)),!r&&n.length===0&&(0,l.jsxs)(`p`,{className:`py-4 text-sm text-foreground/45`,children:[`Nada encontrado para â`,e.trim(),`â. Pergunte à nossa IA - ela cobre serviços, plataformas e produtos Orne.ai.`]})]}),(0,l.jsxs)(`button`,{type:`button`,onClick:()=>T(e.trim()),className:`mt-4 flex w-full items-center justify-between gap-4 rounded-xl border border-brand-mint/30 bg-brand-mint/[0.06] px-4 py-3 text-left transition-colors hover:bg-brand-mint/10`,children:[(0,l.jsxs)(`span`,{className:`text-sm text-foreground/75`,children:[`Perguntar à Ana sobre `,(0,l.jsxs)(`span`,{className:`text-brand-mint`,children:[`â`,e.trim(),`â`]})]}),(0,l.jsx)(`span`,{"aria-hidden":!0,className:`text-brand-mint`,children:`â`})]})]})]})}export{C as a,D as c,f as d,m as f,k as i,T as l,u as m,F as n,O as o,d as p,A as r,E as s,I as t,g as u};
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.