1import{j as t,d as Z,r as u,b as X}from"./vendor-react-CoH7wDUq.js";import{u as ee,Z as T,_ as te,T as ae}from"./index-co-p2Yz-.js";import"./vendor-pdf-DNjb9-t8.js";const re="/images/jordana-float.webp",L="/images/jordana-chat.webp",oe="/images/"+encodeURIComponent("Profissional com saudação acolhedora.png"),P="/images/"+encodeURIComponent("Profissional com logo de Campos do Jordão.png");function M(i){const m=i.split(/(\*\*[^*]+\*\*)/g);let l=0;const n=[];for(const p of m){const c=/^\*\*(.+)\*\*$/.exec(p);if(c){n.push(t.jsx("strong",{className:"font-semibold text-slate-900",children:c[1]},l++));continue}const x=p.split(/(\*[^*]+\*)/g);for(const r of x){const s=/^\*([^*]+)\*$/.exec(r);s?n.push(t.jsx("em",{className:"italic text-slate-700",children:s[1]},l++)):r&&n.push(t.jsx(Z.Fragment,{children:r},l++))}}return n}function se(i,m){return i.split(` 2`).map((n,p)=>{const c=`${m}-${p}`,x=n.trim();if(x==="---")return t.jsx("hr",{className:"my-4 border-0 h-px bg-gradient-to-r from-transparent via-slate-300 to-transparent"},c);if(n==="")return t.jsx("div",{className:"h-1 shrink-0","aria-hidden":!0},c);const r=/^###\s+(.+)$/.exec(x);if(r)return t.jsx("h4",{className:"mt-4 first:mt-0 text-sm font-semibold tracking-tight text-blue-800",children:M(r[1])},c);const s=/^\d+\.\s/.test(n),b=/^[â¢\u2022\-]\s/.test(x),w=(s||b)&&p>0?" mt-3":p>0?" mt-1.5":"";return t.jsx("p",{className:`text-left text-slate-700 leading-relaxed text-sm md:text-[15px] break-words${w}`,children:M(n)},c)})}function ne(i){return i.trim().split(/\n\n+/).map((l,n)=>t.jsx("div",{className:"mb-4 last:mb-0 border-b border-slate-200/90 pb-4 last:border-0 last:pb-0",children:se(l,n)},n))}const ie=new Set(["passeios","ondecomer","hospedagens","eventos","roteiros","explore","portfolio"]);function z(i){var l,n;const m=String(i.url||"");return m.includes("#")&&((n=(l=m.split("#")[1])==null?void 0:l.split(/[/?]/)[0])==null?void 0:n.toLowerCase())||null}function E(i){if(i.type&&i.type!=="navigate")return!1;const m=String(i.url||"");if(m==="/portfolio"||m.startsWith("/portfolio?"))return!0;const l=z(i);return!!(l&&ie.has(l))}function le(i){if(!Array.isArray(i)||i.length===0)return[];const m=i.filter(r=>r.type==="refresh_sample"||r.emphasize),l=i.filter(E),n=i.filter(r=>r.type==="open_card"),p=i.filter(r=>r.type!=="refresh_sample"&&!r.emphasize&&!E(r)&&r.type!=="open_card"),c=new Set,x=[];for(const r of[...m,...l,...n,...p]){const s=[r.type||"navigate",r.url||"",String(r.locationId??""),r.label||"",String(r.samplePage??"")].join("|");c.has(s)||(c.add(s),x.push(r))}return x}function de(i,m,l){const n=Array.isArray(i)?[...i]:[];for(let s=0;s<n.length;s+=1){const b=n[s];if(!b||b.type&&b.type!=="navigate")continue;const w=String(b.url||""),j=String(b.label||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");w.includes("#eventos")&&/calendario|agenda|festival|ver eventos|events calendar|eventos do portal/.test(j)&&!/mice|captac|fornecedor|convention/.test(j)&&(n[s]={...b,type:"navigate",url:"/#calendario",label:l==="en"?"ð Events calendar":l==="es"?"ð Calendario de Eventos":"ð Calendário de Eventos"})}const p=`${m||""}`.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=l==="en"?{eat:"ð½ï¸ Where to eat",stay:"ð¨ Where to stay",tours:"ð¢ Tours / Attractions",events:"ð Events calendar",map:"ðºï¸ Map and itineraries"}:l==="es"?{eat:"ð½ï¸ Dónde comer",stay:"ð¨ Dónde alojarse",tours:"ð¢ Paseos / Atracciones",events:"ð Calendario de Eventos",map:"ðºï¸ Mapa y rutas"}:{eat:"ð½ï¸ Ver Onde comer",stay:"ð¨ Ver Onde ficar",tours:"ð¢ Ver atrações / Passeios",events:"ð Calendário de Eventos",map:"ðºï¸ Mapa e roteiros"},x=s=>n.some(b=>E(b)&&z(b)===s),r=(s,b)=>{const w=b.split("#")[1];!w||x(w)||n.unshift({type:"navigate",label:s,url:b})};return/\b(restaurante|restaurant|gastronom|onde comer|where to eat|donde comer|fondue|truta|trout|choperia|\bbar\b|jantar|almoco|lunch|dinner)\b/.test(p)&&!/\b(pontos? turistic|atracoes?|passeios?|parques?)\b/.test(p)&&r(c.eat,"/#ondecomer"),/\b(hotel|pousada|hospedagem|hospedagens|accommodation|onde ficar|where to stay|donde alojarse|onde dormir|pernoite|estadia)\b/.test(p)&&!/\b(pontos? turistic|atracoes?|passeios?|parques?)\b/.test(p)&&r(c.stay,"/#hospedagens"),/\b(passeio|passeios|atracao|atracoes|attraction|parque|park|museu|museum|mirante|trilha|tour|natureza|nature|pontos? turistic)\b/.test(p)&&r(c.tours,"/#passeios"),/\b(evento|eventos|event|festival|calendario|calendar|agenda)\b/.test(p)&&!/\bmice\b/.test(p)?r(c.events,"/#calendario"):/\bmice\b/.test(p)&&r(l==="en"?"ð Events":"ð Eventos","/#eventos"),/\b(roteiro|roteiros|itinerario|itinerary|itineraries|map
2a)\b/.test(p)&&!x("roteiros")&&r(c.map,"/#roteiros"),n}const J={pt:{search:"Enviar",sending:"A enviarâ¦",loading:"A gerar respostaâ¦",defaultText:"Escreva uma pergunta abaixo para começar.",error:"Não foi possÃvel obter uma resposta. Tente de novo dentro de instantes.",cardTitle:"Olá, sou Jordana, assistente virtual",cardSubtitle:"Tire suas dúvidas comigo!",closeCard:"Fechar painel",newChat:"Nova conversa",followUpPlaceholder:"Pergunte sobre Campos ou sobre o site",followUpLabel:"Continuar a conversa",followUpHelp:"Enter envia · Shift+Enter nova linha",userBadge:"Você",assistantBadge:"Guia",badgeSite:"Resposta com base nos dados do site, mapa e base de conhecimento (processada no servidor; sem serviço Google obrigatório).",badgeLegacy:"Resposta a partir do modo de compatibilidade do cadastro. Para respostas Gemini no servidor, configure o backend (ver documentação).",badgeGemini:"Resposta gerada com Google Gemini (configuração opcional no servidor).",anaName:"Jordana",anaOpen:"Abrir assistente Jordana",anaClickPrompt:"Pergunte para Jordana",anaClickPromptSub:"Assistente virtual",anaMinimize:"Fechar Jordana",anaExpand:"Abrir Jordana"},en:{search:"Send",sending:"Sendingâ¦",loading:"Generatingâ¦",defaultText:"Type a question below to get started.",error:"We could not get a response. Please try again in a moment.",cardTitle:"Hi, I'm Jordana, virtual assistant",cardSubtitle:"Ask me your questions",closeCard:"Close panel",newChat:"New chat",followUpPlaceholder:"Follow-up questionâ¦",followUpLabel:"Continue the conversation",followUpHelp:"Enter to send · Shift+Enter for a new line",userBadge:"You",assistantBadge:"Guide",badgeSite:"Answer based on site data, map, and knowledge base (server-side; no mandatory Google service).",badgeLegacy:"Answer from site compatibility mode. For Gemini on the server, configure the backend (see docs).",badgeGemini:"Answer generated with Google Gemini (optional server configuration).",anaName:"Jordana",anaOpen:"Open Jordana assistant",anaClickPrompt:"Ask Jordana",anaClickPromptSub:"Virtual assistant",anaMinimize:"Hide Jordana",anaExpand:"Show Jordana"},es:{search:"Enviar",sending:"Enviandoâ¦",loading:"Generandoâ¦",defaultText:"Escriba una pregunta abajo para comenzar.",error:"No fue posible obtener una respuesta. Inténtelo de nuevo en unos instantes.",cardTitle:"Hola, soy Jordana, asistente virtual",cardSubtitle:"Hazme tus preguntas",closeCard:"Cerrar panel",newChat:"Nueva conversación",followUpPlaceholder:"Pregunta de seguimientoâ¦",followUpLabel:"Continuar la conversación",followUpHelp:"Enter envÃa · Shift+Enter nueva lÃnea",userBadge:"Usted",assistantBadge:"GuÃa",badgeSite:"Respuesta basada en datos del sitio, mapa y base de conocimiento (en el servidor; sin servicio Google obligatorio).",badgeLegacy:"Respuesta desde el modo de compatibilidad del sitio. Para Gemini en el servidor, configure el backend (ver documentación).",badgeGemini:"Respuesta generada con Google Gemini (configuración opcional en el servidor).",anaName:"Jordana",anaOpen:"Abrir asistente Jordana",anaClickPrompt:"Pregúntale a Jordana",anaClickPromptSub:"Asistente virtual",anaMinimize:"Cerrar Jordana",anaExpand:"Mostrar Jordana"}},O="site:roteiros-tematicos-modal",I="site:calendario-eventos-modal",pe=()=>{const{language:i}=ee(),[m,l]=u.useState(""),[n,p]=u.useState(!1),[c,x]=u.useState([]),[r,s]=u.useState(!1),[b,w]=u.useState(!1),j=u.useRef(null),S=u.useRef(null),_=u.useRef(null),[R,A]=u.useState(!1),[G,H]=u.useState(!1),[q,D]=u.useState(!1),[V,U]=u.useState(!1),[$,k]=u.useState(!1),d=J[i]??J.pt;u.useEffect(()=>{try{const e=localStorage.getItem(T);if(!e){A(!0);return}const o=JSON.parse(e);Array.isArray(o.messages)&&o.messages.length>0&&(x(o.messages.map(a=>({role:a.role==="user"?"user":"assistant",text:String(a.text||""),actions:Array.isArray(a.actions)?a.actions:void 0,chatSource:a.chatSource==="gemini"||a.chatSource==="legacy"||a.chatSource==="site"?a.chatSource:void 0,legacyReason:a.legacyReason??void 0}))),s(o.chatOpen!==!1)),typeof o.inputDraft=="string"&&l(o.inputDraft)}catch{}A(!0)},[]),u.useEffect(()=>{const e=window.matchMedia("(max-width: 767px)"),o=()=>U(e.matches);return o(),e.addEventListener("change",o),()=>e.removeEventListener("change",o)},[]),u.useEffect(()=>{const e=o=>{const a=o.detail;
2H(!!(a!=null&&a.open))};return window.addEventListener(O,e),()=>window.removeEventListener(O,e)},[]),u.useEffect(()=>{const e=o=>{const a=o.detail;D(!!(a!=null&&a.open))};return window.addEventListener(I,e),()=>window.removeEventListener(I,e)},[]),u.useEffect(()=>{if(!R)return;const e=window.setTimeout(()=>{try{localStorage.setItem(T,JSON.stringify({v:2,messages:c,inputDraft:m,chatOpen:r}))}catch{}},400);return()=>window.clearTimeout(e)},[c,m,r,R]),u.useEffect(()=>{if(!r)return;const e=S.current;if(!e)return;const o=()=>{var h;try{if(b){const v=e.querySelector('[data-chat-loading="true"]');v==null||v.scrollIntoView({behavior:"smooth",block:"start"});return}const g=c[c.length-1];if((g==null?void 0:g.role)==="assistant"){const v=e.querySelectorAll('[data-chat-role="assistant"]'),f=v[v.length-1];f==null||f.scrollIntoView({behavior:"smooth",block:"start"});return}(h=j.current)==null||h.scrollIntoView({behavior:"smooth",block:"end"})}catch{const g=S.current;g&&(g.scrollTop=g.scrollHeight)}},a=window.requestAnimationFrame(()=>o());return()=>window.cancelAnimationFrame(a)},[c,b,r]),u.useEffect(()=>{if(!r)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[r]),u.useEffect(()=>{if(!r)return;const e=window.setTimeout(()=>{var o;return(o=_.current)==null?void 0:o.focus()},200);return()=>window.clearTimeout(e)},[r]),u.useEffect(()=>{const e=()=>{k(!1),s(!0)};return window.addEventListener("virtualguide:open",e),()=>window.removeEventListener("virtualguide:open",e)},[]);const B=u.useCallback(()=>{x([]),l(""),s(!1);try{localStorage.removeItem(T)}catch{}A(!0)},[]),y=u.useCallback(async(e,o)=>{const a=(e??m).trim();if(!a)return;const h=c.map(f=>({role:f.role==="assistant"?"assistant":"user",text:f.text})),g=((o==null?void 0:o.displayText)||a).trim()||a,v=Math.max(0,Math.floor(Number(o==null?void 0:o.samplePage)||0));k(!1),s(!0),x(f=>[...f,{role:"user",text:g}]),e===void 0&&l(""),p(!0),w(!0);try{const f=await te.sendMessage(a,{tone:"friendly",history:h,backendOnly:!0,language:i,samplePage:v>0?v:void 0}),C=typeof f.text=="string"?f.text:JSON.stringify(f.text),Y=de(f.actions,C,i);x(Q=>[...Q,{role:"assistant",text:C,actions:Y,chatSource:f.chatSource,legacyReason:f.legacyReason??void 0}])}catch{x(f=>[...f,{role:"assistant",text:d.error}])}p(!1),w(!1)},[c,m,i,d.error]);u.useEffect(()=>{const e=o=>{var h,g;const a=(g=(h=o==null?void 0:o.detail)==null?void 0:h.query)==null?void 0:g.trim();a&&y(a)};return window.addEventListener("virtualguide:open-query",e),()=>window.removeEventListener("virtualguide:open-query",e)},[y]);const F=u.useCallback(e=>{if(e.type==="refresh_sample"&&e.query){const a=Math.max(1,Math.floor(Number(e.samplePage)||1));y(e.query,{samplePage:a,displayText:e.label||"⨠Ver outras opções"});return}if(e.type==="refine_question"&&e.query){l(e.query),y(e.query);return}if(e.type==="open_card"&&e.locationId!=null){window.dispatchEvent(new CustomEvent("site:open-location-card",{detail:{locationId:Number(e.locationId),returnToChat:!0}}));return}if(e.type==="open_route"&&e.locationId!=null){const a=Date.now(),h={type:e.type,locationId:Number(e.locationId),ts:a};window.__vg_pending_map_action=h,ae(h),s(!1),window.dispatchEvent(new CustomEvent("site:navigate",{detail:{target:"roteiros"}}));const g=()=>window.dispatchEvent(new CustomEvent("virtualguide:map-action",{detail:h}));g(),[400,900,1600,2800,4500,7e3].forEach(v=>setTimeout(g,v));return}const o=(e.url||"").toString();if(o.startsWith("http")){window.open(o,"_blank","noopener");return}if(o.includes("#")){const a=(o.split("#")[1]||"").replace(/^#/,"");a&&(s(!1),window.setTimeout(()=>{if(a!=="portfolio")try{String(window.location.hash||"").replace(/^#/,"")!==a&&(window.location.hash=a)}catch{}window.dispatchEvent(new CustomEvent("site:navigate",{detail:{target:a}}));try{window.scrollTo({top:0,left:0,behavior:"smooth"})}catch{}},0));return}if(o.startsWith("/")){const a=o.replace(/^\//,"").split("/")[0];s(!1),window.dispatchEvent(new CustomEvent("site:navigate",{detail:{target:a}})),window.setTimeout(()=>{try{window.scrollTo({top:0,left:0,behavior:"smooth"})}catch{}},80)}},[y]),W=r&&typeof document<"u"?X.createPortal(t.jsxs("div",{className:"fixed inset-0 z-[200] flex items-end justify-center px-2 pb-[max(0.5rem,env(safe-area-inset-bottom))] pt-2 md:items-center md:p-4 md:pb-8 md:pt-0",role:"dialog","aria-modal":"true","aria-labelledby":"hero-ia-panel-title",children:[t.jsx("button",{type:"button",className:"absolute inset-0 bg-slate-950/65 backdrop-blur-sm transition-opacity","aria-label":d.closeCard,onClick:()=>s(!1)}),t.jsxs("div",{className:"relative z-10 flex min-h-0 min-w-0 max-h-[min(92dvh,900px)] w-full max-w-2xl flex-col overflow-hidden rounded-t-2xl border border-slate-700/80 bg-slate-900/92 shadow-[0_-12px_48px_rgba(15,23,42,0.45)] backdrop-blur-md md:max-h-[min(88vh,820px)] md:rounded-2xl md:shadow-2xl md:shadow-slate-950/50",children:[t.jsx("div",{className:"h-1 shrink-0 bg-gradient-to-r from-emerald-500 via-sky-400 to-amber-400 animate-pulse opacity-90","aria-hidden":!0}),t.jsx("div",{className:"shrink-0 border-b border-slate-800 bg-slate-900 px-4 py-3.5 md:rounded-t-none",children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2 md:gap-3",children:[t.jsx("div",{className:"shrink-0","aria-hidden":!0,
2children:t.jsx("img",{src:L,alt:"",width:128,height:160,decoding:"async",loading:"lazy",className:"pointer-events-none select-none bg-transparent h-24 w-auto max-h-32 object-contain object-bottom md:h-32 md:max-h-40",draggable:!1,onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=P}})}),t.jsxs("div",{className:"min-w-0 text-left",children:[t.jsx("h2",{id:"hero-ia-panel-title",className:"text-base font-semibold tracking-tight text-white",children:d.cardTitle}),t.jsx("p",{className:"truncate text-xs text-slate-400 hidden md:block",children:d.cardSubtitle})]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[t.jsx("button",{type:"button",onClick:()=>B(),className:"rounded-lg px-2.5 py-1.5 text-xs font-semibold text-white bg-blue-600/95 hover:bg-blue-700/95 shadow-sm ring-1 ring-blue-400/30",children:d.newChat}),t.jsx("button",{type:"button",onClick:()=>s(!1),className:"rounded-lg p-2 text-slate-400 hover:bg-white/10 hover:text-white","aria-label":d.closeCard,children:t.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]})}),t.jsxs("div",{ref:S,className:"min-h-0 flex-1 overflow-y-auto overscroll-contain bg-slate-950/80 px-3 py-3 md:px-5 md:py-4 hero-ia-scrollbar",children:[c.length===0&&!b&&t.jsx("p",{className:"rounded-xl border border-slate-600/80 bg-slate-900/70 px-3 py-3 text-left text-sm leading-relaxed text-slate-300 shadow-sm backdrop-blur-sm",children:d.defaultText}),t.jsxs("div",{className:"flex flex-col gap-4",children:[c.map((e,o)=>t.jsx("div",{"data-chat-role":e.role,className:`flex ${e.role==="user"?"justify-end":"justify-start"}`,children:t.jsxs("div",{className:`max-w-[min(100%,34rem)] rounded-2xl border px-3.5 py-3 shadow-md md:px-4 md:py-3.5 ${e.role==="user"?"border-blue-500/40 bg-blue-950/50 text-slate-100 backdrop-blur-sm":"border-slate-200/90 bg-white/98 text-slate-800"}`,children:[t.jsx("p",{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider ${e.role==="user"?"text-sky-400/95":"text-slate-500"}`,children:e.role==="user"?d.userBadge:d.assistantBadge}),e.role==="assistant"?t.jsxs("div",{className:"text-left",children:[t.jsx("div",{className:"max-w-none",children:ne(e.text)}),(()=>{const a=le(e.actions);return a.length===0?null:t.jsx("div",{className:"mt-3 flex flex-wrap gap-2 border-t border-slate-200/90 pt-3",children:a.map((h,g)=>{const v=h.type==="refresh_sample"||h.emphasize,f=E(h),C=v?"inline-flex min-h-[44px] w-full sm:w-auto items-center justify-center gap-2 rounded-xl border-2 border-amber-300/90 bg-gradient-to-r from-amber-500 via-orange-500 to-rose-500 px-4 py-2.5 text-left text-sm font-bold text-white shadow-[0_0_22px_rgba(249,115,22,0.55)] ring-2 ring-amber-200/70 ring-offset-2 ring-offset-white transition duration-200 hover:brightness-110 hover:shadow-[0_0_32px_rgba(249,115,22,0.75)] active:scale-[0.98]":f?"inline-flex min-h-[40px] items-center gap-1.5 rounded-xl border border-sky-500/40 bg-sky-600 px-3.5 py-2 text-left text-xs font-semibold text-white shadow-sm transition hover:bg-sky-500 active:scale-[0.99]":h.type==="open_card"?"inline-flex min-h-[40px] items-center gap-1.5 rounded-xl border border-emerald-600/30 bg-emerald-50 px-3 py-2 text-left text-xs font-semibold text-emerald-900 shadow-sm transition hover:bg-emerald-100 active:scale-[0.99]":"inline-flex min-h-[40px] items-center gap-1.5 rounded-xl border border-slate-300 bg-slate-50 px-3 py-2 text-left text-xs font-medium text-slate-800 shadow-sm transition hover:bg-slate-100 active:scale-[0.99]";return t.jsx("button",{type:"button",onClick:()=>F(h),className:C,children:t.jsx("span",{className:v?"tracking-wide":"truncate",children:h.label})},`inline-${g}-${h.label}-${h.samplePage??""}`)})})})(),(e.chatSource==="site"||e.chatSource==="legacy")&&t.jsx("p",{className:"mt-3 border-t border-slate-200 pt-2 text-[10px] leading-snug text-slate-500",children:e.chatSource==="site"?d.badgeSite:d.badgeLegacy}),e.chatSource==="gemini"&&t.jsx("p",{className:"mt-2 text-[10px] text-emerald-600",children:d.badgeGemini})]}):t.jsx("p",{className:"whitespace-pre-wrap break-words text-left text-sm text-slate-100 md:text-[15px]",children:e.text})]})},`${o}-${e.role}-${e.text.slice(0,24)}`)),b&&t.jsx("div",{className:"flex justify-start","data-chat-loading":"true",children:t.jsxs("div",{className:"flex max-w-[min(100%,34rem)] items-center gap-3 rounded-2xl border border-slate-600/80 bg-slate-900/75 px-4 py-3 text-sm text-slate-200 shadow-sm backdrop-blur-sm",children:[t.jsx("div",{className:"h-5 w-5 shrink-0 animate-spin rounded-full border-2 border-slate-600 border-t-sky-400","aria-hidden":!0}),t.jsx("span",{children:d.loading})]})}),t.jsx("div",{ref:j,className:"h-px shrink-0","aria-hidden":!0})]})]}),t.jsx("div",{className:"shrink-0 border-t border-slate-700/60 bg-slate-900/88 px-3 py-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] backdrop-blur-md md:px-5 md:py-4",children:t.jsxs("div",{children:[t.jsxs("div",{className:"mb-1.5 hidden flex-wrap items-baseline justify-between gap-2 md:flex",children:[t.jsx("label",{htmlFor:"hero-followup",className:"text-[11px] font-semibold uppercase tracking-wider text-slate-400",children:d.followUpLabel}),t.jsx("span",{className:"text-[10px] text-slate-500",children:d.followUpHelp})]}),t.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-2",children:[t.jsx("textarea",{id:"hero-followup",ref:_,"aria-label":d.followUpPlaceholder,rows:2,value:m,onChange:e=>l(e.target.value),onKeyDown:e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),y())},disabled:n,className:"min-h-[48px] max-h-32 min-w-0 flex-1 resize-none rounded-xl border border-slate-600/80 bg-slate-950/50 px-3 py-2.5 text-sm text-slate-100 outline-none placeholder:text-slate-500 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/25 disabled:opacity-55",placeholder:d.followUpPlaceholder}),t.jsx("button",{type:"button",onClick:()=>void y(),disabled:n||!m.trim(),className:"inline-flex min-h-[48px] shrink-0 items-center justify-center rounded-xl bg-blue-600 px-5 text-sm font-semibold text-white shadow-md transition hover:bg-blue-700 disabled:pointer-events-none disabled:opacity-40",children:n?d.sending:d.search})]})]})})]})]}),document.body):null,N=V&&(G||q),K=()=>{s(!1),k(!0)};return t.jsxs(t.Fragment,{children:[W,$?t.jsx("button",{type:"button","aria-label":d.anaExpand,"aria-hidden":N,className:`fixed bottom-[max(0.75rem,env(safe-area-inset-bottom))] right-3 z-[130] flex h-14 w-14 items-center justify-center overflow-hidden rounded-full border-2 border-white/80 bg-slate-900 shadow-[0_8px_24px_rgba(15,23,42,0.45)] ring-2 ring-emerald-400/70 transition hover:scale-105 hover:ring-emerald-300 md:bottom-5 md:right-5 md:h-16 md:w-16 ${N?"max-md:hidden":""}`,onClick:()=>k(!1),children:t.jsx("img",{src:L,alt:"",width:64,height:64,decoding:"async",fetchPriority:"low",className:"h-full w-full object-cover object-top",draggable:!1,onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=P}})}):t.jsx("div",{className:`fixed bottom-0 right-2 z-[130] md:bottom-5 md:right-5 bg-transparent shadow-none ${N?"max-md:hidden":""}`,children:t.jsxs("div",{className:"relative w-[122px] h-[240px] md:w-[185px] md:h-[345px] bg-transparent [isolation:isolate]",children:[t.jsx("button",{type:"button",onClick:K,className:"absolute right-0.5 top-0.5 z-20 inline-flex h-5 w-5 items-center justify-center rounded-full bg-black/35 text-white/80 opacity-55 backdrop-blur-[2px] transition hover:bg-black/55 hover:opacity-100 md:h-6 md:w-6","aria-label":d.anaMinimize,title:d.anaMinimize,children:t.jsx("svg",{className:"h-3 w-3 md:h-3.5 md:w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.2,children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),t.jsx("div",{role:"button",tabIndex:0,"aria-label":d.anaOpen,"aria-hidden":N,className:"absolute inset-0 cursor-pointer",onClick:()=>s(!0),onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),s(!0))},children:t.jsx("img",{src:re,alt:d.anaName,width:185,height:345,decoding:"async",fetchPriority:"low",className:"h-full w-full max-h-none object-contain object-bottom select-none pointer-events-none bg-transparent",style:{backgroundColor:"transparent"},draggable:!1,onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=oe}})}),t.jsxs("button",{type:"button",className:"absolute left-[2%] top-[-1%] z-10 max-w-[64%] rounded-2xl border border-white/25 bg-slate-900/70 px-2 py-1.5 text-[10.5px] font-semibold text-white shadow-lg backdrop-blur-sm hover:bg-slate-900/80 animate-ana-bubble md:left-[0.5%] md:top-[-6%] md:max-w-[9
26%] md:px-4 md:py-2.5 md:text-[14px]",onClick:e=>{e.stopPropagation(),s(!0)},children:[t.jsx("span",{"aria-hidden":!0,className:"absolute -bottom-2 left-[22%] h-4 w-4 rotate-45 bg-slate-900/70 border-r border-b border-white/15"}),t.jsx("div",{className:"relative leading-tight",children:d.anaClickPrompt}),t.jsx("div",{className:"relative mt-0.5 hidden text-[8.5px] font-medium text-slate-200/90 md:block",children:d.anaClickPromptSub})]})]})}),t.jsx("style",{children:` 3 .hero-ia-scrollbar::-webkit-scrollbar { width: 8px; } 4 .hero-ia-scrollbar::-webkit-scrollbar-track { background: rgba(30, 41, 59, 0.5); border-radius: 4px; } 5 .hero-ia-scrollbar::-webkit-scrollbar-thumb { background: rgba(71, 85, 105, 0.65); border-radius: 4px; } 6 .hero-ia-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.85); } 7 @keyframes anaBubble { 8 0%,100% { transform: translateY(0) scale(1); filter: brightness(1); } 9 30% { transform: translateY(-4px) scale(1.02); filter: brightness(1.06); } 10 60% { transform: translateY(0) scale(0.995); filter: brightness(1); } 11 } 12 .animate-ana-bubble { animation: anaBubble 1.5s ease-in-out infinite; } 13 `})]})};export{I as CALENDARIO_EVENTOS_MODAL_EVENT,pe as JordanaHeroChat,O as ROTEIROS_TEMATICOS_MODAL_EVENT,pe as default};
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.