PageSourceSearch

https://ecocard.bio.br/_next/static/chunks/2pw5jznsghq1o.js

js ecocard.bio.br collected 2026-10-07 04:21:12 UTC 72,684 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83057,e=>{"use strict";var a=e.i(843476),t=e.i(271645),s=e.i(770703),r=e.i(522016),i=e.i(972520),l=e.i(217923),n=e.i(607486),c=e.i(248256),o=e.i(73526),d=e.i(346897),m=e.i(367240),x=e.i(555436),p=e.i(283086),u=e.i(37727),h=e.i(846696),f=e.i(647163),g=e.i(454803),b=e.i(424178),j=e.i(620278),y=e.i(595468),w=e.i(263488),v=e.i(284614),N=e.i(343432),k=e.i(503116),z=e.i(878894),C=e.i(664659);let S=(0,s.default)(()=>e.A(279031),{loadableGenerated:{modules:[608095]},ssr:!1,loading:()=>(0,a.jsx)("div",{className:"w-full h-[400px] bg-zinc-50 rounded-3xl animate-pulse"})});function I(e){return/^0x[0-9a-f]+:0x[0-9a-f]+$/i.test(e)}function R(){let[e,s]=(0,t.useState)(!1),[l,n]=(0,t.useState)(null),[R,L]=(0,t.useState)({businessName:"",city:"São Paulo",keyword:"",lat:-23.5505,lng:-46.6333,placeId:"",cid:"",fid:"",identityId:"",category:"",cityReferenceUrl:"",cityReferenceLabel:"",leadInfo:{name:"",email:"",phone:""}}),[F,D]=(0,t.useState)([-23.5505,-46.6333]),[T,O]=(0,t.useState)({lat:-23.5505,lng:-46.6333}),[B,U]=(0,t.useState)(!1),[M,G]=(0,t.useState)(!1),[q,$]=(0,t.useState)(null);(0,t.useEffect)(()=>{let e=!0;async function a(){try{let a=await fetch("/api/entities/search?q=guarulhos&type=city",{cache:"no-store",headers:{Accept:"application/json"}}),t=await a.json().catch(()=>null);if(!e)return;let s=Array.isArray(t?.results)&&t.results.length>0,r=t?.degraded===!0,i=a.ok&&s&&!r;$({ok:i,message:i?"Busca de cidade operacional.":"Busca de cidade instável no momento. Tente novamente em instantes."})}catch{if(!e)return;$({ok:!1,message:"Não foi possível validar a busca de cidade agora."})}}a();let t=window.setInterval(a,2e4);return()=>{e=!1,window.clearInterval(t)}},[]);let V=()=>{n(null),U(!1),G(!1),L(e=>({...e,businessName:"",keyword:"",placeId:"",cid:"",fid:"",identityId:"",category:"",leadInfo:{name:"",email:"",phone:""}}))},_=async e=>{if(e.preventDefault(),!R.leadInfo.name||!R.leadInfo.email||!R.leadInfo.phone)return void h.toast.error("Todos os campos são obrigatórios para liberar o relatório.");s(!0);try{let e=await fetch("/api/public/leads",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({leadInfo:R.leadInfo,businessName:R.businessName,city:R.city,keyword:R.keyword,result:l,identityId:R.identityId||null,placeId:R.placeId||null,segment:R.category||"Geral"})}),a=await e.json();a.success?(U(!0),h.toast.success(a.message||"Relatório enviado com sucesso por e-mail.")):h.toast.error(a.error||"Erro ao processar lead")}catch(e){h.toast.error("Falha de conexão ao enviar relatório")}finally{s(!1)}},H=async e=>{e.preventDefault(),s(!0),n(null);try{let e=await fetch(`/api/public/rank-tracker/scan?t=${Date.now()}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(R)}),a=await e.json();a.success?(n(a),L(e=>({...e,lat:a.lat,lng:a.lng})),D([a.lat,a.lng]),h.toast.success("Diagnóstico gerado com sucesso!")):h.toast.error(a.error||"Erro ao processar scan")}catch(e){h.toast.error("Falha de conexão")}finally{s(!1)}};return(0,a.jsxs)("section",{id:"free-scan",className:"py-24 px-4 md:px-8 bg-[#4A696F] text-white overflow-hidden relative rounded-[4rem] mx-4 md:mx-8 mb-24",children:[(0,a.jsx)("div",{className:"absolute -bottom-24 -left-24 w-96 h-96 bg-emerald-500/10 rounded-full blur-[100px]"}),(0,a.jsx)("div",{className:"absolute -top-24 -right-24 w-96 h-96 bg-emerald-500/10 rounded-full blur-[100px]"}),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto space-y-16 relative z-10",children:[(0,a.jsxs)("div",{className:"text-center space-y-6",children:[(0,a.jsx)("div",{className:"inline-flex items-center gap-2 bg-[#FFB700]/10 text-[#FFB700] px-4 py-2 rounded-full text-[10px] font-black uppercase tracking-[0.2em] italic border border-[#FFB700]/20",children:"Diagnóstico em tempo real"}),(0,a.jsxs)("h2",{className:"text-5xl md:text-7xl font-black tracking-tighter italic leading-[0.9]",children:["Descubra como você aparece no ",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-[#FFB700] italic",children:"Google Maps"})]}),(0,a.jsx)("p",{className:"max-w-2xl mx-auto text-lg text-white/60 font-medium",children:"Veja seu posicionamento exato nos arredores do seu negócio."})]}),(0,a.jsx)("div",{className:"max-w-[1020px] xl:max-w-[1060px] mx-auto",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-7 xl:gap-8 items-start",children:[(0,a.jsx)("div",{className:"lg:col-span-5 bg-white rounded-[2.5rem] p-8 md:p-10 shadow-2xl shadow-emerald-950/20 border border-emerald-900/10 text-zinc-900",children:l?(0,a.jsxs)("div",{className:"space-y-8 text-center animate-in fade-in zoom-in-95 duration-700",children:[(0,a.jsx)("div",{className:"w-20 h-20 bg-emerald-100 text-emerald-600 rounded-full flex items-center justify-center mx-auto",children:(0,a.jsx)(y.CheckCircle2,{className:"w-10 h-10"})}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h3",{className:"text-2xl font-black text-zinc-900 tracking-tight italic",children:"Consulta concluída!"}),l.targetFound?(0,a.jsxs)("p",{className:"text-zinc-500 font-medium italic",children:["Sua ficha apareceu em ",(0,a.jsxs)("strong",{children:["#",l.avgRanking]})," na consulta central."]}):(0,a.jsxs)("p",{className:"text-zinc-500 font-medium italic",children:["A ficha selecionada não apareceu entre os ",(0,a.jsxs)("strong",{children:[l.checkedResults||0," resultados"]})," desta palavra-chave. Isso não significa que o perfil não exista."]}),l.isSimulated&&(0,a.jsx)("p",{className:"text-[10px] text-primary font-black uppercase tracking-wider mt-2",children:"1 ponto consultado no centro. Os outros 8 pontos estão bloqueados e não consumiram créditos."}),l.cached&&(0,a.jsxs)("p",{className:"text-[10px] text-amber-600 font-black uppercase tracking-widest mt-2 flex items-center justify-center gap-1",children:[(0,a.jsx)(k.Clock,{className:"w-3 h-3"})," Dados atualizados há menos de 24h"]})]}),B?(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-6 border-t border-zinc-100 animate-in fade-in zoom-in-95 duration-700",children:[(0,a.jsx)("div",{className:"bg-emerald-50 border border-emerald-100 p-4 rounded-2xl mb-2",children:(0,a.jsx)("p",{className:"text-[10px] font-bold text-emerald-800 leading-tight",children:"Sucesso! O acesso aos competidores e detalhes do ranking foi liberado no mapa ao lado."})}),(0,a.jsx)(r.default,{href:"/criar-cartao",className:"w-full py-5 bg-primary text-white rounded-full font-black uppercase tracking-widest text-[10px] flex items-center justify-center hover:bg-primary/90 transition-all shadow-lg shadow-primary/10",children:"Criar cartão grátis"}),(0,a.jsx)("button",{onClick:V,className:"text-[10px] font-black uppercase tracking-widest text-zinc-400 hover:text-red-500 py-2",children:"Realizar Novo Diagnóstico"})]}):(0,a.jsxs)("form",{onSubmit:_,className:"space-y-6 pt-6 border-t border-zinc-100 animate-in fade-in slide-in-from-bottom-4 duration-700",children:[(0,a.jsxs)("div",{className:"space-y-4 text-center pb-2",children:[(0,a.jsx)("h4",{className:"text-[11px] font-black text-emerald-600 uppercase tracking-widest leading-none",children:"Receber Relatório Completo"}),(0,a.jsx)("p",{className:"text-[10px] text-zinc-400 font-bold leading-relaxed px-4",children:"Enviaremos o diagnóstico detalhado com a análise de todos os pontos diretamente no seu e-mail e WhatsApp."})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"relative group/field",children:[(0,a.jsx)(v.User,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 group-focus-within/field:text-emerald-500 transition-colors"}),(0,a.jsx)("input",{required:!0,type:"text",placeholder:"Seu Nome",className:"w-full pl-12 pr-4 py-4 bg-zinc-50 border border-zinc-100 rounded-2xl text-sm font-bold text-zinc-900 outline-none focus:ring-2 focus:ring-emerald-500 transition-all",value:R.leadInfo.name,onChange:e=>L({...R,leadInfo:{...R.leadInfo,name:e.target.value}})})]}),(0,a.jsxs)("div",{className:"relative group/field",children:[(0,a.jsx)(w.Mail,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 group-focus-within/field:text-emerald-500 transition-colors"}),(0,a.jsx)("input",{required:!0,type:"email",placeholder:"Seu melhor E-mail",className:"w-full pl-12 pr-4 py-4 bg-zinc-50 border border-zinc-100 rounded-2xl text-sm font-bold text-zinc-900 outline-none focus:ring-2 focus:ring-emerald-500 transition-all",value:R.leadInfo.email,onChange:e=>L({...R,leadInfo:{...R.leadInfo,email:e.target.value}})})]}),(0,a.jsxs)("div",{className:"relative group/field",children:[(0,a.jsx)(N.Phone,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 group-focus-within/field:text-emerald-500 transition-colors"}),(0,a.jsx)("input",{required:!0,type:"text",placeholder:"Seu WhatsApp",className:"w-full pl-12 pr-4 py-4 bg-zinc-50 border border-zinc-100 rounded-2xl text-sm font-bold text-zinc-900 outline-none focus:ring-2 focus:ring-emerald-500 transition-all",value:R.leadInfo.phone,onChange:e=>L({...R,leadInfo:{...R.leadInfo,phone:e.target.value}})})]})]}),(0,a.jsxs)("button",{type:"submit",disabled:e,className:"w-full py-5 bg-primary hover:bg-primary/90 text-white rounded-full font-black uppercase tracking-widest text-[10px] shadow-xl shadow-primary/20 flex items-center justify-center gap-3 transition-all active:scale-95",children:[e?(0,a.jsx)(m.RotateCcw,{className:"w-4 h-4 animate-spin"}):(0,a.jsx)(p.Sparkles,{className:"w-4 h-4"}),"Enviar Meu Relatório (PDF)"]}),(0,a.jsx)("button",{type:"button",onClick:V,className:"w-full text-[10px] font-black uppercase tracking-widest text-zinc-400 hover:text-red-500 py-2 transition-colors",children:"← Fazer Nova Busca"}),(0,a.jsx)("p",{className:"text-[9px] text-zinc-400 text-center font-bold",children:"100% Seguro. Seus dados não serão compartilhados."})]})]}):(0,a.jsxs)("form",{onSubmit:H,className:"space-y-6",children:[(0,a.jsxs)("h3",{className:"text-xl font-black tracking-tight uppercase italic flex items-center gap-3",children:[(0,a.jsx)(x.Search,{className:"w-5 h-5 text-emerald-600"}),"Rastrear Empresa"]}),q&&!q.ok&&(0,a.jsxs)("div",{className:(0,f.cn)("rounded-2xl border px-4 py-3 text-[11px] font-bold flex items-center gap-2","bg-amber-50 border-amber-100 text-amber-700"),children:[(0,a.jsx)(z.AlertTriangle,{className:"w-4 h-4 shrink-0"}),(0,a.jsx)("span",{children:q.message})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(A,{step:1,active:!!R.city,title:"Cidade"}),(0,a.jsxs)("button",{type:"button",onClick:()=>{L({...R,city:"São Paulo",lat:-23.5505,lng:-46.6333,businessName:"",identityId:"",placeId:"",cid:"",fid:""}),D([-23.5505,-46.6333]),O({lat:-23.5505,lng:-46.6333})},className:"flex items-center gap-1 text-[8px] font-black uppercase text-zinc-400 hover:text-emerald-500 transition-colors",children:["Padrão SP ",(0,a.jsx)(m.RotateCcw,{className:"w-3 h-3"})]})]}),(0,a.jsx)(g.OmniSearchInput,{type:"city",placeholder:"Qual cidade?",ariaLabel:"Qual cidade",value:R.city,onChange:(e,a)=>{if(a){let e,t;console.log("[DEBUG_SCAN] Cidade Selecionada:",a),e=a.directoryHref||a.officialWebsite||a.wikipedia||"",t=a.directoryHref?"Ver Perfil da Cidade":a.officialWebsite?"Ver Site Oficial":a.wikipedia?"Ver Dados Wikipedia":"",L({...R,city:a.label,lat:a.lat||R.lat,lng:a.lng||R.lng,businessName:"",identityId:"",placeId:"",cid:"",fid:"",cityReferenceUrl:e,cityReferenceLabel:t}),a.lat&&a.lng?(console.log("[DEBUG_SCAN] Atualizando mapa para:",a.lat,a.lng),D([a.lat,a.lng]),O({lat:a.lat,lng:a.lng})):console.warn("[DEBUG_SCAN] Cidade selecionada sem coordenadas válidas!")}else L(a=>({...a,city:e,businessName:"",identityId:"",placeId:"",cid:"",fid:"",cityReferenceUrl:"",cityReferenceLabel:""}))}}),R.cityReferenceUrl&&(0,a.jsxs)("div",{className:"pl-8 flex items-center gap-2 animate-in fade-in slide-in-from-left-2 duration-500",children:[(0,a.jsx)(c.Globe,{className:"w-3 h-3 text-emerald-500"}),(0,a.jsx)("a",{href:R.cityReferenceUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] font-black uppercase text-emerald-600 hover:text-emerald-700 underline decoration-emerald-500/30",children:R.cityReferenceLabel||"Ver Referência"})]})]}),(0,a.jsxs)("div",{className:(0,f.cn)("space-y-2 transition-all",!R.city&&"opacity-30 pointer-events-none"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(A,{step:2,active:!0,title:"Arraste o pin (Centro Padrão)"}),T&&(0,a.jsxs)("button",{type:"button",onClick:()=>{L({...R,lat:T.lat,lng:T.lng}),D([T.lat,T.lng])},className:"flex items-center gap-1 text-[8px] font-black uppercase text-zinc-400 hover:text-emerald-500 transition-colors",children:["Resetar ",(0,a.jsx)(m.RotateCcw,{className:"w-3 h-3"})]})]}),(0,a.jsx)("p",{className:"text-[9px] text-zinc-400 font-medium pl-8",children:"Mova o centro exato do radar geográfico"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3 pl-8",children:[(0,a.jsx)(E,{label:"LAT",value:R.lat,onChange:e=>{L({...R,lat:e}),D([e,R.lng])}}),(0,a.jsx)(E,{label:"LNG",value:R.lng,onChange:e=>{L({...R,lng:e}),D([R.lat,e])}})]})]}),(0,a.jsxs)("div",{className:(0,f.cn)("space-y-2 transition-all",!R.city&&"opacity-30 pointer-events-none"),children:[(0,a.jsx)(A,{step:3,active:!!R.businessName,title:"Sua Empresa"}),(0,a.jsx)(g.OmniSearchInput,{type:"business",placeholder:"Nome da empresa...",ariaLabel:"Nome da empresa",value:R.businessName,onChange:(e,a)=>{if(a){let e,t,s,r,i;e="INTERNAL"===a.source,s=I(t=String(a.placeId||a.place_id||(e?"":a.id)||"").trim())?"":t,r=String(a.fid||(I(t)?t:"")).trim(),i=(!R.keyword||R.keyword.length<3)&&a.category&&!["Unidade Verificada","Empresa Local","Histórico","Lead"].includes(a.category)?a.category:R.keyword,L({...R,businessName:a.label||a.title||a.businessName||"",placeId:s,cid:a.cid||"",fid:r,identityId:e||"ENTIDADE"===a.type?a.id:"",lat:a.lat||R.lat,lng:a.lng||R.lng,city:a.city||R.city,keyword:i,category:a.category||""}),a.lat&&a.lng&&D([a.lat,a.lng])}else L(a=>({...a,businessName:e,placeId:"",cid:"",fid:"",identityId:""}))},cityContext:R.city})]}),(0,a.jsxs)("div",{className:(0,f.cn)("space-y-2 transition-all",!R.businessName&&"opacity-30 pointer-events-none"),children:[(0,a.jsx)(A,{step:4,active:!!R.keyword,title:"Palavra-chave"}),(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsx)(j.Target,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400 group-focus-within:text-emerald-500 transition-colors"}),(0,a.jsx)("input",{required:!0,type:"text","aria-label":"Palavra-chave principal",className:"w-full pl-12 pr-12 py-4 bg-zinc-50 border border-zinc-100 rounded-2xl text-sm font-bold focus:ring-2 focus:ring-emerald-500 outline-none transition-all",value:R.keyword,placeholder:"Ex: Clínica Odontológica",onChange:e=>L({...R,keyword:e.target.value})}),R.keyword&&(0,a.jsx)("button",{type:"button",onClick:()=>L({...R,keyword:""}),"aria-label":"Limpar palavra-chave",className:"absolute right-3 top-1/2 -translate-y-1/2 min-w-10 min-h-10 inline-flex items-center justify-center text-zinc-300 hover:text-red-500 transition-colors",children:(0,a.jsx)(u.X,{className:"w-4 h-4"})})]})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("button",{type:"button","aria-expanded":M,"aria-controls":"free-scan-google-identifiers",onClick:()=>G(e=>!e),className:"flex w-full items-center justify-between gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 px-4 py-3 text-left transition-colors hover:border-emerald-200 hover:bg-emerald-50/50",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"block text-[10px] font-black uppercase tracking-widest text-zinc-700",children:M?"Ocultar":"Mostrar mais"}),(0,a.jsx)("span",{className:"mt-0.5 block text-[9px] font-medium text-zinc-400",children:"Identificadores do Google (opcional)"})]}),(0,a.jsx)(C.ChevronDown,{className:(0,f.cn)("h-4 w-4 shrink-0 text-zinc-400 transition-transform",M&&"rotate-180 text-emerald-600")})]}),M&&(0,a.jsxs)("div",{id:"free-scan-google-identifiers",className:"space-y-4 rounded-2xl border border-emerald-100 bg-emerald-50/40 p-4 animate-in fade-in slide-in-from-top-1",children:[(0,a.jsx)("p",{className:"text-[10px] font-medium leading-relaxed te
1xt-zinc-500",children:"Use quando a empresa não for localizada apenas pelo nome. Preencha o identificador que tiver ou, se souber, os três."}),(0,a.jsx)(P,{id:"free-scan-place-id",label:"Place ID",placeholder:"Ex.: ChIJ...",value:R.placeId,onChange:e=>L(a=>({...a,placeId:e}))}),(0,a.jsx)(P,{id:"free-scan-cid",label:"CID",placeholder:"Ex.: 1234567890123456789",inputMode:"numeric",value:R.cid,onChange:e=>L(a=>({...a,cid:e}))}),(0,a.jsx)(P,{id:"free-scan-fid",label:"FID",placeholder:"Ex.: 0x...:0x...",value:R.fid,onChange:e=>L(a=>({...a,fid:e}))})]})]}),(0,a.jsx)("button",{disabled:e||!R.keyword,className:"w-full py-6 bg-primary hover:bg-primary/90 text-white rounded-full font-black uppercase tracking-widest text-xs shadow-xl shadow-primary/20 disabled:opacity-50 flex items-center justify-center gap-3 active:scale-95 transition-all",children:e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.RotateCcw,{className:"w-5 h-5 animate-spin"}),(0,a.jsx)("span",{children:"Analisando o Google..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.Sparkles,{className:"w-5 h-5"}),(0,a.jsx)("span",{children:"Gerar Meu Grid Grátis"}),(0,a.jsx)(i.ArrowRight,{className:"w-4 h-4"})]})}),(0,a.jsx)("p",{className:"text-[10px] text-zinc-400 text-center font-bold",children:"100% Seguro. Seus dados não serão compartilhados."})]})}),(0,a.jsx)("div",{className:"lg:col-span-7 space-y-6",children:l?(0,a.jsx)("div",{className:"animate-in fade-in duration-1000",children:(0,a.jsx)(S,{center:[R.lat,R.lng],points:l.points,blurred:!B,interactive:!1})}):R.city?(0,a.jsxs)("div",{className:"space-y-6 animate-in slide-in-from-right-10 duration-1000",children:[(0,a.jsx)(S,{center:F,points:[],gridSize:3,distance:400,interactive:!0,onCenterChange:(e,a)=>{L(t=>({...t,lat:e,lng:a})),D([e,a])}}),(0,a.jsxs)("div",{className:"flex items-center gap-2 pl-2 text-[11px] font-bold text-emerald-100/70",children:[(0,a.jsx)(d.MapPin,{className:"w-4 h-4 text-emerald-300 shrink-0"}),(0,a.jsx)("span",{children:"Arraste o pin para ajustar o centro do seu radar."})]})]}):(0,a.jsxs)("div",{className:"h-[600px] bg-emerald-900/20 rounded-[3rem] border-2 border-dashed border-emerald-800/20 flex flex-col items-center justify-center text-center px-12 space-y-6",children:[(0,a.jsx)("div",{className:"w-20 h-20 bg-emerald-900/30 rounded-full flex items-center justify-center shadow-sm",children:(0,a.jsx)(o.Map,{className:"w-10 h-10 text-emerald-800/50"})}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h4",{className:"text-xl font-black text-emerald-800/50 italic",children:"O mapa aparecerá aqui"}),(0,a.jsx)("p",{className:"text-sm text-emerald-800/30 font-medium max-w-xs",children:"Selecione uma cidade para carregar o posicionamento interativo."})]})]})})]})}),(0,a.jsx)(b.RobotOverlay,{isActive:e&&!l,title:"Análise em Tempo Real",subtitle:`O Rob\xf4 est\xe1 escanendo ${R.businessName} em ${R.city}...`})]})]})}function A({step:e,active:t,title:s}){return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:(0,f.cn)("w-5 h-5 rounded-full flex items-center justify-center text-[10px] font-black transition-colors",t?"bg-primary text-white shadow-lg shadow-primary/20":"bg-zinc-200 text-zinc-500"),children:e}),(0,a.jsx)("h4",{className:(0,f.cn)("text-[10px] font-black uppercase tracking-widest",t?"text-zinc-900":"text-zinc-400"),children:s})]})}function E({label:e,value:t,onChange:s}){let r=`coordinate-${e.toLowerCase()}`;return(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("label",{htmlFor:r,className:"text-[8px] font-black uppercase text-zinc-400",children:e}),(0,a.jsx)("input",{id:r,type:"number",step:"any",value:t,"aria-label":"LAT"===e?"Latitude":"LNG"===e?"Longitude":e,onChange:e=>s(parseFloat(e.target.value)||0),className:"w-full px-4 py-3 bg-zinc-50 border border-zinc-100 rounded-xl text-[11px] font-bold outline-none focus:ring-1 focus:ring-emerald-500"})]})}function P({id:e,label:t,placeholder:s,value:r,inputMode:i="text",onChange:l}){return(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)("label",{htmlFor:e,className:"text-[9px] font-black uppercase tracking-wider text-zinc-600",children:t}),(0,a.jsx)("input",{id:e,type:"text",inputMode:i,autoComplete:"off",autoCapitalize:"none",spellCheck:!1,maxLength:255,value:r,placeholder:s,onChange:e=>l(e.target.value),className:"w-full rounded-xl border border-zinc-200 bg-white px-4 py-3 text-[11px] font-bold outline-none transition-all placeholder:text-zinc-300 focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/15"})]})}let L=(0,s.default)(()=>e.A(279031),{loadableGenerated:{modules:[608095]},ssr:!1,loading:()=>(0,a.jsx)("div",{className:"w-full h-[400px] bg-zinc-50 rounded-3xl animate-pulse"})}),F=(0,s.default)(()=>e.A(901769),{loadableGenerated:{modules:[220312]},ssr:!1,loading:()=>(0,a.jsx)("div",{className:"w-full h-[520px] rounded-[2rem] bg-zinc-100 animate-pulse"})});function D({label:e,value:t}){return(0,a.jsxs)("div",{className:"rounded-[1.5rem] border border-white/10 bg-white/90 px-5 py-4 text-zinc-900 shadow-lg shadow-zinc-950/5",children:[(0,a.jsx)("div",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-zinc-400",children:e}),(0,a.jsx)("div",{className:"mt-2 text-lg font-black tracking-tight",children:t})]})}function T({step:e,active:t,title:s}){return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:(0,f.cn)("w-5 h-5 rounded-full flex items-center justify-center text-[10px] font-black transition-colors",t?"bg-primary text-white shadow-lg shadow-primary/20":"bg-zinc-200 text-zinc-500"),children:e}),(0,a.jsx)("h4",{className:(0,f.cn)("text-[10px] font-black uppercase tracking-widest",t?"text-zinc-900":"text-zinc-400"),children:s})]})}function O({label:e,value:t,onChange:s}){let r=`preferred-coordinate-${e.toLowerCase()}`;return(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("label",{htmlFor:r,className:"text-[8px] font-black uppercase text-zinc-400",children:e}),(0,a.jsx)("input",{id:r,type:"number",step:"any",value:t,"aria-label":e,onChange:e=>s(parseFloat(e.target.value)||0),className:"w-full px-4 py-3 bg-zinc-50 border border-zinc-100 rounded-xl text-[11px] font-bold outline-none focus:ring-1 focus:ring-emerald-500"})]})}e.s(["default",0,function({showKeywordSearch:e=!1}){let[s,j]=(0,t.useState)(!1),[y,w]=(0,t.useState)(!1),[v,N]=(0,t.useState)(!1),[k,z]=(0,t.useState)(null),[C,S]=(0,t.useState)([-23.5505,-46.6333]),[I,A]=(0,t.useState)({lat:-23.5505,lng:-46.6333}
1),[E,P]=(0,t.useState)({city:"São Paulo",businessName:"",keyword:"",lat:-23.5505,lng:-46.6333,cityReferenceUrl:"",cityReferenceLabel:""}),B=async e=>{e.preventDefault(),N(!0),z(null);try{let e=await fetch(`/api/public/directory/keyword-search?t=${Date.now()}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)}),a=await e.json();if(!e.ok||!a?.success)return void h.toast.error(a?.error||"Erro ao buscar empresas pela palavra-chave");z(a),a.center?.lat&&a.center?.lng&&S([a.center.lat,a.center.lng]),h.toast.success("Busca por palavra-chave concluída!")}catch{h.toast.error("Falha de conexão na busca por palavra-chave")}finally{N(!1)}};return(0,t.useEffect)(()=>{if(!s&&!y)return;let e=document.body.style.overflow,a=e=>{"Escape"===e.key&&(j(!1),w(!1))};return document.body.style.overflow="hidden",window.addEventListener("keydown",a),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",a)}},[y,s]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("section",{id:"mais-recursos",className:"px-4 py-10 sm:px-6 sm:py-14 lg:px-8",children:(0,a.jsxs)("div",{className:"mx-auto max-w-6xl space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-2xl font-bold text-eco-text sm:text-3xl",children:"Mais recursos"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-eco-muted sm:text-base",children:"Ferramentas avançadas quando você precisar, sem pesar no visual da página."})]}),(0,a.jsxs)("div",{className:"grid gap-4 md:grid-cols-3",children:[e?(0,a.jsxs)("button",{type:"button",onClick:()=>j(!0),className:"group flex min-h-56 flex-col items-start rounded-2xl border border-eco-border bg-eco-surface p-6 text-left shadow-eco-card transition-all hover:-translate-y-1 hover:border-eco-primary/40 hover:shadow-eco-glow",children:[(0,a.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-eco-primary/10 text-eco-primary",children:(0,a.jsx)(x.Search,{className:"h-6 w-6","aria-hidden":"true"})}),(0,a.jsx)("span",{className:"mt-6 text-lg font-bold text-eco-text",children:"Descubra empresas por keyword + cidade"}),(0,a.jsx)("span",{className:"mt-2 text-sm leading-6 text-eco-muted",children:"Cruze uma palavra-chave com uma cidade e visualize empresas locais no mapa."}),(0,a.jsxs)("span",{className:"mt-auto flex items-center gap-2 pt-6 text-xs font-semibold text-eco-primary",children:["Abrir pesquisa ",(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-1","aria-hidden":"true"})]})]}):null,(0,a.jsxs)("button",{type:"button",onClick:()=>w(!0),className:"group flex min-h-56 flex-col items-start rounded-2xl border border-eco-border bg-eco-surface p-6 text-left shadow-eco-card transition-all hover:-translate-y-1 hover:border-eco-primary/40 hover:shadow-eco-glow",children:[(0,a.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-eco-secondary/10 text-eco-secondary",children:(0,a.jsx)(l.BarChart3,{className:"h-6 w-6","aria-hidden":"true"})}),(0,a.jsx)("span",{className:"mt-6 text-lg font-bold text-eco-text",children:"Scan clássico de ranking"}),(0,a.jsx)("span",{className:"mt-2 text-sm leading-6 text-eco-muted",children:"Analise empresa, keyword e posições no grid local em uma experiência dedicada."}),(0,a.jsxs)("span",{className:"mt-auto flex items-center gap-2 pt-6 text-xs font-semibold text-eco-primary",children:["Abrir scan ",(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-1","aria-hidden":"true"})]})]}),(0,a.jsxs)(r.default,{href:"/diretorio/perfis?focus=search",className:"group flex min-h-56 flex-col items-start rounded-2xl border border-eco-border bg-eco-surface p-6 text-left shadow-eco-card transition-all hover:-translate-y-1 hover:border-eco-primary/40 hover:shadow-eco-glow",children:[(0,a.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-eco-primary/10 text-eco-primary",children:(0,a.jsx)(n.Building2,{className:"h-6 w-6","aria-hidden":"true"})}),(0,a.jsx)("span",{className:"mt-6 text-lg font-bold text-eco-text",children:"Buscar perfis no diretório"}),(0,a.jsx)("span",{className:"mt-2 text-sm leading-6 text-eco-muted",children:"Encontre empresas e profissionais por nome, categoria, endereço ou descrição."}),(0,a.jsxs)("span",{className:"mt-auto flex items-center gap-2 pt-6 text-xs font-semibold text-eco-primary",children:["Explorar diretório ",(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-1","aria-hidden":"true"})]})]})]})]})}),e&&s?(0,a.jsx)("div",{className:"fixed inset-0 z-[1200] overflow-y-auto bg-zinc-950/75 p-3 backdrop-blur-sm md:p-8",role:"dialog","aria-modal":"true","aria-label":"Pesquisa de empresas por keyword e cidade",children:(0,a.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,a.jsxs)("div",{className:"sticky top-0 z-20 mb-4 flex items-center justify-between rounded-[2rem] border border-white/10 bg-zinc-950/80 px-5 py-4 text-white shadow-2xl backdrop-blur-xl md:px-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-[#FFB700]",children:"Pesquisa local"}),(0,a.jsx)("h3",{className:"text-lg font-black tracking-tight md:text-xl",children:"Descubra empresas por keyword + cidade"})]}),(0,a.jsx)("button",{type:"button",onClick:()=>j(!1),className:"inline-flex min-h-11 min-w-11 items-center justify-center rounded-full border border-white/10 bg-white/5 text-white transition hover:bg-white/10","aria-label":"Fechar pesquisa por keyword e cidade",children:(0,a.jsx)(u.X,{className:"h-5 w-5"})})]}),(0,a.jsxs)("section",{id:"free-scan",className:"relative overflow-hidden rounded-[3rem] bg-[#4A696F] px-4 py-16 text-white md:px-8",children:[(0,a.jsx)("div",{className:"absolute -bottom-24 -left-24 w-96 h-96 bg-emerald-500/10 rounded-full blur-[100px]"}),(0,a.jsx)("div",{className:"absolute -top-24 -right-24 w-96 h-96 bg-emerald-500/10 rounded-full blur-[100px]"}
1),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto space-y-16 relative z-10",children:[(0,a.jsxs)("div",{className:"text-center space-y-6",children:[(0,a.jsx)("div",{className:"inline-flex items-center gap-2 bg-[#FFB700]/10 text-[#FFB700] px-4 py-2 rounded-full text-[10px] font-black uppercase tracking-[0.2em] italic border border-[#FFB700]/20",children:"Preferência por palavra-chave"}),(0,a.jsxs)("h2",{className:"text-5xl md:text-7xl font-black tracking-tighter italic leading-[0.9]",children:["Descubra empresas por ",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-[#FFB700] italic",children:"keyword + cidade"})]}),(0,a.jsx)("p",{className:"max-w-3xl mx-auto text-lg text-white/60 font-medium",children:"O fluxo principal agora usa a busca local da Serper Maps por palavra-chave. Você pode cruzar com uma empresa específica ou buscar só pela keyword. O scan clássico continua disponível em modal."})]}),(0,a.jsx)("div",{className:"max-w-[1120px] mx-auto",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-7 xl:gap-8 items-start",children:[(0,a.jsx)("div",{className:"lg:col-span-4 bg-white rounded-[2.5rem] p-8 md:p-10 shadow-2xl shadow-emerald-950/20 border border-emerald-900/10 text-zinc-900",children:(0,a.jsxs)("form",{onSubmit:B,className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("h3",{className:"text-xl font-black tracking-tight uppercase italic flex items-center gap-3",children:[(0,a.jsx)(x.Search,{className:"w-5 h-5 text-emerald-600"}),"Busca por Palavra-chave"]}),(0,a.jsx)("span",{className:"rounded-full bg-emerald-50 px-3 py-1 text-[9px] font-black uppercase tracking-widest text-emerald-700",children:"Novo padrão"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(T,{step:1,active:!!E.city,title:"Cidade"}),(0,a.jsxs)("button",{type:"button",onClick:()=>{P(e=>({...e,city:"São Paulo",lat:-23.5505,lng:-46.6333})),S([-23.5505,-46.6333]),A({lat:-23.5505,lng:-46.6333})},className:"flex items-center gap-1 text-[8px] font-black uppercase text-zinc-400 hover:text-emerald-500 transition-colors",children:["Padrão SP ",(0,a.jsx)(m.RotateCcw,{className:"w-3 h-3"})]})]}),(0,a.jsx)(g.OmniSearchInput,{type:"city",placeholder:"Qual cidade?",ariaLabel:"Qual cidade",value:E.city,onChange:(e,a)=>{if(a){let e,t;e=a.directoryHref||a.officialWebsite||a.wikipedia||"",t=a.directoryHref?"Ver Perfil da Cidade":a.officialWebsite?"Ver Site Oficial":a.wikipedia?"Ver Dados Wikipedia":"",P(s=>({...s,city:a.label,lat:a.lat||s.lat,lng:a.lng||s.lng,cityReferenceUrl:e,cityReferenceLabel:t})),a.lat&&a.lng&&(S([a.lat,a.lng]),A({lat:a.lat,lng:a.lng}))}else P(a=>({...a,city:e,cityReferenceUrl:"",cityReferenceLabel:""}))}}),E.cityReferenceUrl?(0,a.jsxs)("div",{className:"pl-8 flex items-center gap-2 animate-in fade-in slide-in-from-left-2 duration-500",children:[(0,a.jsx)(c.Globe,{className:"w-3 h-3 text-emerald-500"}),(0,a.jsx)("a",{href:E.cityReferenceUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] font-black uppercase text-emerald-600 hover:text-emerald-700 underline decoration-emerald-500/30",children:E.cityReferenceLabel||"Ver Referência"})]}):null]}),(0,a.jsxs)("div",{className:(0,f.cn)("space-y-2 transition-all",!E.city&&"opacity-30 pointer-events-none"),children:[(0,a.jsx)(T,{step:2,active:!!E.businessName,title:"Empresa opcional"}),(0,a.jsx)(g.OmniSearchInput,{type:"business",placeholder:"Empresa para cruzar com a keyword...",ariaLabel:"Empresa opcional",value:E.businessName,onChange:(e,a)=>{if(a){let e;e=(!E.keyword||E.keyword.length<3)&&a.category?a.category:E.keyword,P(t=>({...t,businessName:a.label||a.title||"",keyword:e,lat:a.lat||t.lat,lng:a.lng||t.lng,city:a.city||t.city})),a.lat&&a.lng&&S([a.lat,a.lng])}else P(a=>({...a,businessName:e}))},cityContext:E.city})]}),(0,a.jsxs)("div",{className:(0,f.cn)("space-y-2 transition-all",!E.city&&"opacity-30 pointer-events-none"),children:[(0,a.jsx)(T,{step:3,active:!!E.keyword,title:"Palavra-chave"}),(0,a.jsx)(g.OmniSearchInput,{type:"keyword",placeholder:"Ex: Esteticista, psicólogo 
1infantil, dentista...",ariaLabel:"Palavra-chave",value:E.keyword,onChange:e=>P(a=>({...a,keyword:e}))})]}),(0,a.jsxs)("div",{className:(0,f.cn)("space-y-2 transition-all",!E.city&&"opacity-30 pointer-events-none"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(T,{step:4,active:!0,title:"Centro da busca"}),I?(0,a.jsxs)("button",{type:"button",onClick:()=>{P(e=>({...e,lat:I.lat,lng:I.lng})),S([I.lat,I.lng])},className:"flex items-center gap-1 text-[8px] font-black uppercase text-zinc-400 hover:text-emerald-500 transition-colors",children:["Resetar ",(0,a.jsx)(m.RotateCcw,{className:"w-3 h-3"})]}):null]}),(0,a.jsx)("p",{className:"text-[9px] text-zinc-400 font-medium pl-8",children:"Arraste o pin no mapa para mudar o centro usado na consulta."}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3 pl-8",children:[(0,a.jsx)(O,{label:"LAT",value:E.lat,onChange:e=>{P(a=>({...a,lat:e})),S([e,E.lng])}}),(0,a.jsx)(O,{label:"LNG",value:E.lng,onChange:e=>{P(a=>({...a,lng:e})),S([E.lat,e])}})]})]}),(0,a.jsx)("button",{disabled:v||!E.city||!E.keyword,className:"w-full py-6 bg-primary hover:bg-primary/90 text-white rounded-full font-black uppercase tracking-widest text-xs shadow-xl shadow-primary/20 disabled:opacity-50 flex items-center justify-center gap-3 active:scale-95 transition-all",children:v?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.RotateCcw,{className:"w-5 h-5 animate-spin"}),(0,a.jsx)("span",{children:"Buscando no Google Maps..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.Sparkles,{className:"w-5 h-5"}),(0,a.jsx)("span",{children:"Buscar empresas por keyword"}),(0,a.jsx)(i.ArrowRight,{className:"w-4 h-4"})]})}),(0,a.jsx)("button",{type:"button",onClick:()=>{j(!1),w(!0)},className:"w-full py-4 rounded-full border border-zinc-200 bg-zinc-50 text-zinc-700 font-black uppercase tracking-widest text-[10px] transition hover:border-primary/30 hover:text-primary",children:"Abrir scan clássico em modal"})]})}),(0,a.jsx)("div",{className:"lg:col-span-8 space-y-6",children:k?.items?.length?(0,a.jsxs)("div",{className:"space-y-4 animate-in fade-in duration-700",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,a.jsx)(D,{label:"Cidade",value:k.city||E.city}),(0,a.jsx)(D,{label:"Palavra-chave",value:k.keyword||E.keyword}),(0,a.jsx)(D,{label:"Empresas encontradas",value:String(k.items.length)})]}),k.keywordPageHref?(0,a.jsx)("div",{className:"rounded-[2rem] border border-white/10 bg-white/90 p-5 text-zinc-900 shadow-lg shadow-zinc-950/5",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-zinc-400",children:"Página já disponível"}),(0,a.jsx)("div",{className:"mt-2 text-lg font-black tracking-tight",children:k.termDestination?.label||k.keyword||E.keyword}),(0,a.jsx)("p",{className:"mt-1 text-sm text-zinc-500",children:"Este termo já possui uma entidade ou taxonomia pública aprovada no Ecocard."})]}),(0,a.jsx)("a",{href:k.keywordPageHref,className:"inline-flex items-center justify-center rounded-full bg-primary px-5 py-3 text-[11px] font-black uppercase tracking-widest text-white transition hover:bg-primary/90",children:"Abrir página"})]})}):null,(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[k.businessName?(0,a.jsxs)("span",{className:"rounded-full bg-amber-50 px-4 py-2 text-[10px] font-black uppercase tracking-widest text-amber-800 border border-amber-200",children:["Cruzando com empresa: ",k.businessName]}):null,k.items.some(e=>e.exactBusinessMatch)?(0,a.jsx)("span",{className:"rounded-full bg-emerald-50 px-4 py-2 text-[10px] font-black uppercase tracking-widest text-emerald-800 border border-emerald-200",children:"Match exato de empresa encontrado"}):null,k.items.some(e=>e.reconciledInDirectory)?(0,a.jsx)("span",{className:"rounded-full bg-blue-50 px-4 py-2 text-[10px] font-black uppercase tracking-widest text-blue-800 border border-blue-200",children:"Perfis reconciliados no diretório"}):null,k.items.some(e=>e.hasActiveKeywordContract)?(0,a.jsx)("span",{className:"rounded-full bg-fuchsia-50 px-4 py-2 text-[10px] font-black uppercase tracking-widest text-fuchsia-800 border border-fuchsia-200",children:"Contratos ativos de keyword detectados"}):null]}),k.groups?.length?(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:k.groups.map(e=>(0,a.jsxs)("span",{className:"rounded-full bg-white/80 px-4 py-2 text-[10px] font-black uppercase tracking-widest text-zinc-700 border border-white/20",children:[e.q," · ",e.total]},e.q))}):null,(0,a.jsx)(F,{cityLabel:k.city||E.city,keyword:k.keyword||E.keyword,
1center:k.center||{lat:E.lat,lng:E.lng},items:k.items||[]})]}):E.city?(0,a.jsxs)("div",{className:"space-y-6 animate-in slide-in-from-right-10 duration-1000",children:[(0,a.jsx)(L,{center:C,points:[],gridSize:3,distance:400,interactive:!0,onCenterChange:(e,a)=>{P(t=>({...t,lat:e,lng:a})),S([e,a])}}),(0,a.jsxs)("div",{className:"flex items-center gap-2 pl-2 text-[11px] font-bold text-emerald-100/70",children:[(0,a.jsx)(d.MapPin,{className:"w-4 h-4 text-emerald-300 shrink-0"}),(0,a.jsx)("span",{children:"Arraste o pin para ajustar o centro da busca por palavra-chave."})]})]}):(0,a.jsxs)("div",{className:"h-[600px] bg-emerald-900/20 rounded-[3rem] border-2 border-dashed border-emerald-800/20 flex flex-col items-center justify-center text-center px-12 space-y-6",children:[(0,a.jsx)("div",{className:"w-20 h-20 bg-emerald-900/30 rounded-full flex items-center justify-center shadow-sm",children:(0,a.jsx)(o.Map,{className:"w-10 h-10 text-emerald-800/50"})}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h4",{className:"text-xl font-black text-emerald-800/50 italic",children:"O mapa aparecerá aqui"}),(0,a.jsx)("p",{className:"text-sm text-emerald-800/30 font-medium max-w-xs",children:"Selecione uma cidade para preparar a busca local por palavra-chave."})]})]})})]})})]})]})]})}):null,y?(0,a.jsx)("div",{className:"fixed inset-0 z-[1200] bg-zinc-950/70 backdrop-blur-sm p-4 md:p-8 overflow-y-auto",role:"dialog","aria-modal":"true","aria-label":"Scan clássico de ranking",children:(0,a.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,a.jsxs)("div",{className:"sticky top-0 z-10 mb-4 flex items-center justify-between rounded-[2rem] border border-white/10 bg-zinc-950/70 px-6 py-4 text-white backdrop-blur-xl",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-emerald-300",children:"Modo clássico"}),(0,a.jsx)("h3",{className:"text-xl font-black tracking-tight",children:"Empresa + keyword + grid de ranking"})]}),(0,a.jsx)("button",{type:"button",onClick:()=>w(!1),className:"inline-flex min-h-11 min-w-11 items-center justify-center rounded-full border border-white/10 bg-white/5 text-white transition hover:bg-white/10","aria-label":"Fechar modal",children:(0,a.jsx)(u.X,{className:"w-5 h-5"})})]}),(0,a.jsx)(R,{})]})}):null,(0,a.jsx)(b.RobotOverlay,{isActive:v&&!k,title:"Busca por Palavra-chave",subtitle:`O rob\xf4 est\xe1 buscando ${E.keyword} em ${E.city}${E.businessName?` e cruzando com ${E.businessName}`:""}...`})]})}],83057)},100611,e=>{"use strict";var a=e.i(843476),t=e.i(271645),s=e.i(343827),r=e.i(886984),i=e.i(578582);e.s(["FeaturedProfessionals",0,function({initialProfessionals:e,fallbackProfessionals:l}){let[n,c]=(0,t.useState)(e.length>0?e:l),[o,d]=(0,t.useState)(null);return((0,t.useEffect)(()=>{function e(e){let a={id:e.id,profileKind:e.profileKind,name:e.displayName,specialty:e.category,rating:e.googleRating,reviewCount:e.googleReviewCount,city:e.cityLabel,state:e.stateLabel,photoUrl:(0,i.optimizeGoogleImageUrl)(e.googleThumbnailUrl),photoUrls:(e.imageUrls||[]).map(e=>(0,i.optimizeGoogleImageUrl)(e)),phone:e.phone,website:e.website,address:e.address,neighborhood:e.neighborhood,href:e.publicHref||"/diretorio/local/"+String(e.displayName||"perfil").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),isChatOnline:e.isChatOnline,reviews:e.reviews,shareHref:e.shareHref,isClaimed:"CLAIMED"===e.ownershipStatus||"REASSIGNED"===e.ownershipStatus,isVerified:e.isVerified,verifiedLabel:e.verifiedLabel,modelId:e.modelId,mobileLayout:e.mobileLayout,enabledSections:e.enabledSections,landingData:e.landingData};c(e=>[a,...e.filter(e=>e.id!==a.id)].slice(0,8)),d(a.id||null),window.setTimeout(()=>{document.getElementById(`professional-card-${e.id}`)?.scrollIntoView({behavior:"smooth",block:"center"})},50)}function a(a){e(a.detail)}window.addEventListener("eco:professional-selected",a);let t=new URLSearchParams(window.location.search).get("profile");return t&&fetch(`/api/public/directory-search?id=${encodeURIComponent(t)}`).then(e=>e.json()).then(a=>{a.success&&a.profiles?.[0]&&e(a.profiles[0])}).catch(()=>void 0),()=>window.removeEventListener("eco:professional-selected",a)},[]),0===n.length)?(0,a.jsxs)("div",{className:"col-span-full rounded-eco border border-eco-border bg-eco-surface px-6 py-10 text-center",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-eco-text",children:"Nenhum perfil publicado no diretório deste ambiente."}),(0,a.jsx)("p",{className:"mt-2 text-xs text-eco-muted",children:"Os perfis aparecerão aqui depois que o banco deste ambiente for conciliado."})]}):(0,a.jsx)(r.DirectoryCardGrid,{className:"w-full min-w-0 max-w-full gap-4",children:n.map(e=>{let t=e.id||e.name,r=!!(e.id&&e.id===o);return(0,a.jsx)("div",{id:e.id?`professional-card-${e.id}`:void 0,className:`w-full min-w-0 max-w-full ${r?"rounded-eco ring-2 ring-eco-primary ring-offset-4 ring-offset-eco-bg":""}`,children:(0,a.jsx)(s.ProfessionalCard,{profileId:e.id,profileKind:e.profileKind,name:e.name,specialty:e.specialty||void 0,rating:e.rating,reviewCount:e.reviewCount,city:e.city||void 0,state:e.state||void 0,photoUrl:e.photoUrl,photoUrls:e.photoUrls,phone:e.phone,website:e.website,address:e.address,neighborhood:e.neighborhood,href:e.href,isChatOnline:e.isChatOnline,reviews:e.reviews,shareHref:e.shareHref,isClaimed:e.isClaimed,isAuthenticated:e.isAuthenticated,isVerified:e.isVerified,verifiedLabel:e.verifiedLabel,modelId:e.modelId,mobileLayout:e.mobileLayout,enabledSections:e.enabledSections,landingData:e.landingData})},t)})})}])},32939,e=>{"use strict";var a=e.i(843476),t=e.i(271645),s=e.i(618566),r=e.i(972520),i=e.i(531278),l=e.i(346897),n=e.i(555436);e.s(["HeroDirectorySearch",0,function({centered:e=!1}){let c=(0,s.useRouter)(),o=(0,t.useRef)(null),[d,m]=(0,t.useState)(""),[x,p]=(0,t.useState)([]),[u,h]=(0,t.useState)(null),[f,g]=(0,t.useState)(!1),[b,j]=(0,t.useState)(!1);function y(){let e=d.trim();e.length<2||(j(!1),c.push(`/diretorio/perfis?all=1&q=${encodeURIComponent(e)}`))}return(0,t.useEffect)(()=>
1{if(!e)return window.addEventListener("eco:focus-directory-search",a),"search"===new URLSearchParams(window.location.search).get("focus")&&a(),()=>window.removeEventListener("eco:focus-directory-search",a);function a(){o.current?.scrollIntoView({behavior:"smooth",block:"center"}),window.setTimeout(()=>o.current?.focus(),250)}},[e]),(0,t.useEffect)(()=>{let e=d.trim();if(e.length<2){p([]),h(null),g(!1),j(!1);return}let a=new AbortController,t=window.setTimeout(async()=>{g(!0);try{let t=await fetch(`/api/public/directory-search?q=${encodeURIComponent(e)}`,{signal:a.signal}),s=await t.json();p(t.ok&&s.success?s.profiles.slice(0,6):[]),h(t.ok&&s.success&&s.interpretation||null),j(!0)}catch(e){"AbortError"!==e.name&&p([])}finally{a.signal.aborted||g(!1)}},350);return()=>{window.clearTimeout(t),a.abort()}},[d]),(0,a.jsxs)("form",{className:`relative flex w-full max-w-2xl flex-col gap-3 sm:flex-row ${e?"mx-auto":"mx-auto lg:mx-0"}`,role:"search",onSubmit:e=>{e.preventDefault(),y()},children:[(0,a.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,a.jsx)(n.Search,{className:"absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-eco-muted sm:hidden","aria-hidden":"true"}),(0,a.jsx)("input",{ref:o,id:e?void 0:"hero-directory-search",type:"search",value:d,onChange:e=>m(e.target.value),onFocus:()=>d.trim().length>=2&&j(!0),onBlur:()=>window.setTimeout(()=>j(!1),150),placeholder:"Ex.: biomédica em São Paulo","aria-label":"Buscar profissionais, serviços ou categorias",autoComplete:"off",className:"h-14 w-full rounded-eco border border-eco-border bg-eco-surface px-5 pl-12 text-base text-eco-text placeholder:text-eco-muted/70 focus:border-eco-primary/50 focus:outline-none focus:ring-2 focus:ring-eco-primary/30 sm:pl-5"}),b&&d.trim().length>=2&&(0,a.jsx)("div",{className:"absolute inset-x-0 top-[calc(100%+0.5rem)] z-30 overflow-hidden rounded-eco border border-eco-border bg-eco-surface text-left shadow-2xl shadow-black/35",children:f?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 px-4 py-5 text-sm text-eco-muted",children:[(0,a.jsx)(i.Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Buscando perfis..."]}):x.length>0?(0,a.jsxs)("div",{className:"max-h-96 overflow-y-auto p-2",children:[u?(0,a.jsxs)("div",{className:"px-3 pb-2 pt-1 text-xs font-medium text-eco-muted",children:["Entendemos: ",(0,a.jsx)("span",{className:"font-bold text-eco-text",children:u.service}),u.location?(0,a.jsxs)(a.Fragment,{children:[" em ",(0,a.jsx)("span",{className:"font-bold text-eco-text",children:u.location})]}):null]}):null,x.map(e=>{let t=[e.cityLabel,e.stateLabel].filter(Boolean).join(", ");return(0,a.jsxs)("button",{type:"button",className:"flex w-full items-start gap-3 rounded-xl px-3 py-3 text-left transition hover:bg-eco-surface-elevated focus:bg-eco-surface-elevated focus:outline-none",onMouseDown:e=>e.preventDefault(),onClick:()=>{j(!1),window.dispatchEvent(new CustomEvent("eco:professional-selected",{detail:e}))},children:[(0,a.jsx)("span",{className:"mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-eco-primary/10 text-eco-primary",children:(0,a.jsx)(n.Search,{className:"h-4 w-4","aria-hidden":"true"})}),(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:"block truncate text-sm font-semibold text-eco-text",children:e.displayName}),(0,a.jsxs)("span",{className:"mt-0.5 flex items-center gap-1 truncate text-xs text-eco-muted",children:[t&&(0,a.jsx)(l.MapPin,{className:"h-3 w-3 shrink-0","aria-hidden":"true"}),[e.category,t].filter(Boolean).join(" · ")]})]})]},e.id)}),(0,a.jsxs)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:y,className:"mt-1 flex w-full items-center justify-center gap-2 border-t border-eco-border px-3 py-3 text-sm font-bold text-eco-primary transition hover:bg-eco-surface-elevated",children:["Ver todos os resultados",(0,a.jsx)(r.ArrowRight,{className:"h-4 w-4","aria-hidden":"true"})]})]}):(0,a.jsx)("div",{className:"px-4 py-5 text-center text-sm text-eco-muted",children:"Nenhum perfil encontrado."})})]}),(0,a.jsxs)("button",{type:"submit",disabled:d.trim().length<2||f,className:"inline-flex h-14 shrink-0 items-center justify-center gap-3 rounded-eco bg-eco-primary px-8 text-base font-semibold text-eco-bg shadow-lg shadow-eco-primary/20 transition-all hover:bg-eco-primary-hover active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-60 sm:min-w-40",children:[f?(0,a.jsx)(i.Loader2,{className:"h-5 w-5 animate-spin","aria-hidden":"true"}):"Buscar",!f&&(0,a.jsx)(r.ArrowRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})}])},852233,e=>{"use strict";var a=e.i(843476),t=e.i(271645),s=e.i(522016),r=e.i(595468),i=e.i(561659),l=e.i(805899),n=e.i(341240),c=e.i(44060),c=c,o=e.i(581418),d=e.i(150965),m=e.i(285142),m=m,x=e.i(823173);e.s(["HomeEngagementPanel",0,function({isAuthenticated:e}){let[p,u]=(0,t.useState)("SUGGESTION"),[h,f]=(0,t.useState)(""),[g,b]=(0,t.useState)(!1),[j,y]=(0,t.useState)(null);async function w(e){e.preventDefault(),b(!0),y(null);try{let e=await fetch("/api/account-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({category:p,subject:h})}),a=await e.json();if(!e.ok||!a?.ok)return void y({ok:!1,message:a?.message||"Não foi possível enviar agora."});f(""),y({ok:!0,message:a.message||"Enviado com sucesso."})}catch{y({ok:!1,message:"Falha de conexão. Tente novamente."})}finally{b(!1)}}return(0,a.jsx)("section",{"aria-labelledby":"home-engagement-title",className:"flex h-full flex-col justify-center overflow-hidden rounded-[2.25rem] border border-eco-border bg-eco-surface p-6 shadow-2xl shadow-eco-primary/10 sm:p-9",children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-md",children:[(0,a.jsx)("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-2xl bg-eco-primary/10 text-eco-primary",children:e?(0,a.jsx)(c.default,{className:"h-6 w-6","aria-hidden":"true"}):(0,a.jsx)(m.default,{className:"h-6 w-6","aria-hidden":"true"})}),e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mt-6 text-xs font-black uppercase tracking-[0.18em] text-eco-primary",children:"Sua voz melhora o Ecocard"}),(0,a.jsx)("h2",{id:"home-engagement-title",className:"mt-2 text-3xl font-black tracking-tight text-eco-text",children:"Fale com a nossa equipe"}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-eco-muted",children:"Envie uma reclamação ou sugira uma melhoria. Sua solicitação ficará registrada para acompanhamento."}),(0,a.jsxs)("form",{onSubmit:w,className:"mt-7 space-y-4",children:[(0,a.jsxs)("label",{className:"block text-xs font-black uppercase tracking-wider text-eco-text",children:["Tipo de contato",(0,a.jsxs)("select",{name:"category",value:p,onChange:e=>u(e.target.value),className:"mt-2 min-h-12 w-full rounded-xl border border-eco-border bg-eco-bg px-4 text-sm font-semibold normal-case tracking-normal outline-none focus:border-eco-primary focus:ring-2 focus:ring-eco-primary/15",children:[(0,a.jsx)("option",{value:"SUGGESTION",children:"Sugestão de melhoria"}),(0,a.jsx)("option",{value:"COMPLAINT",children:"Reclamação"})]})]}),(0,a.jsxs)("label",{className:"block text-xs font-black uppercase tracking-wider text-eco-text",children:["Assunto",(0,a.jsx)("input",{name:"subject",required:!0,minLength:4,maxLength:200,value:h,onChange:e=>f(e.target.value),placeholder:"COMPLAINT"===p?"Conte resumidamente o que aconteceu":"Qual melhoria você gostaria de sugerir?",className:"mt-2 min-h-12 w-full rounded-xl border border-eco-border bg-eco-bg px-4 text-sm font-medium normal-case tracking-normal outline-none placeholder:text-eco-muted/70 focus:border-eco-primary focus:ring-2 focus:ring-eco-primary/15"})]}),j?(0,a.jsxs)("p",{role:j.ok?"status":"alert",className:`flex items-center gap-2 rounded-xl px-4 py-3 text-sm font-bold ${j.ok?"bg-emerald-50 text-emerald-800":"bg-rose-50 text-rose-700"}`,children:[j.ok?(0,a.jsx)(r.CheckCircle2,{className:"h-5 w-5 shrink-0","aria-hidden":"true"}):null,j.message]}):null,(0,a.jsx)("button",{disabled:g,className:"flex min-h-12 w-full items-center justify-center rounded-xl bg-eco-primary px-5 text-sm font-black text-white transition hover:opacity-90 disabled:cursor-wait disabled:opacity-60",children:g?"Enviando...":"Enviar"})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mt-6 text-xs font-black uppercase tracking-[0.18em] text-eco-primary",children:"Participe do Ecocard"}),(0,a.jsx)("h2",{id:"home-engagement-title",className:"mt-2 text-3xl font-black tracking-tight text-eco-text",children:"Crie sua conta gratuita para"}),(0,a.jsxs)("ul",{className:"mt-6 grid gap-3 text-sm font-semibold text-eco-text sm:grid-cols-2 lg:grid-cols-1 xl:grid-cols-2",children:[(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.Flag,{className:"h-4 w-4 text-eco-primary","aria-hidden":"true"})," Relatar problemas"]}),(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(o.ShieldCheck,{className:"h-4 w-4 text-eco-primary","aria-hidden":"true"})," Reivindicar perfil"]}),(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(c.default,{className:"h-4 w-4 text-eco-primary","aria-hidden":"true"})," Avaliar perfis"]}),(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(n.Lightbulb,{className:"h-4 w-4 text-eco-primary","aria-hidden":"true"})," Sugerir melhorias"]}),(0,a.jsx)("li",{children:(0,a.jsxs)(s.default,{href:"/criar-cartao",className:"flex items-center gap-2 transition hover:text-eco-primary",children:[(0,a.jsx)(i.CreditCard,{className:"h-4 w-4 text-eco-primary","aria-hidden":"true"})," Criar seu Ecocard"]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(s.default,{href:"/marketplace",className:"flex items-center gap-2 transition hover:text-eco-primary",children:[(0,a.jsx)(d.ShoppingBag,{className:"h-4 w-4 text-eco-primary","aria-hidden":"true"})," Acessar o Marketplace"]})})]}),(0,a.jsx)("div",{className:"mt-7",children:(0,a.jsx)(x.GoogleLoginButton,{callbackUrl:"/",label:"Criar conta gratuita com Google"})}),(0,a.jsxs)("p",{className:"mt-5 text-center text-xs text-eco-muted",children:["Já possui uma conta? ",(0,a.jsx)(s.default,{href:"/dash/login?callbackUrl=%2F",className:"font-black text-eco-primary underline underline-offset-4",children:"Entrar"})]})]})]})})}],852233)},797491,e=>{"use strict";var a=e.i(843476),t=e.i(581418),s=e.i(870273),r=e.i(346897),i=e.i(343432),l=e.i(248256),n=e.i(595468),c=e.i(373884),o=e.i(63209),d=e.i(972520),m=e.i(647163),x=e.i(522016);e.s(["default",0,function({business:e,platforms:p,trustProfileUrl:u,compact:h=!1,className:f,settings:g,lastVerified:b}){let j=p.filter(e=>"CORRECT"===e.status).length,y=p.length>0?Math.round(j/p.length*100):0;return h?(0,a.jsxs)("div",{className:(0,m.cn)("inline-flex items-center gap-4 bg-white border border-zinc-100 rounded-[2rem] px-6 py-4 shadow-lg shadow-zinc-900/5",f),children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-xl bg-zinc-900 flex items-center justify-center shrink-0",children:(0,a.jsx)(t.ShieldCheck,{className:"w-5 h-5 text-emerald-400"})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex",style:{color:"var(--institutional-secondary)"},children:[void 0,void 0,void 0,void 0,void 0].map((t,r)=>(0,a.jsx)(s.Star,{className:`w-3 h-3 fill-current ${r<Math.floor(e.rating)?"":"opacity-20"}`},r))}),(0,a.jsx)("span",{className:"text-xs font-black text-zinc-900",children:e.rating.toFixed(1)}),(0,a.jsxs)("span",{className:"text-[10px] text-zinc-400 font-medium",children:["(",e.reviewsCount,")"]})]}),(0,a.jsxs)("p",{className:"text-[9px] font-black text-zinc-400 uppercase tracking-widest mt-0.5",children:[g?.trustSystemName||"Ramderf Trust"," · ",y,"% NAP"]})]}),u&&(0,a.jsx)(x.default,{href:u,target:"_blank",className:"ml-2",children:(0,a.jsx)(d.ArrowRight,{className:"w-4 h-4 text-zinc-300 hover:text-emerald-500 transition-colors"})})]}):(0,a.jsxs)("div",{className:(0,m.cn)("bg-white rounded-[3rem] border border-zinc-100 shadow-xl shadow-zinc-900/5 overflow-hidden",f),children:[(0,a.jsxs)("div",{className:"bg-zinc-900 px-10 py-8 flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"w-14 h-14 roun
1ded-2xl bg-emerald-600 flex items-center justify-center shadow-xl shadow-emerald-600/30",children:(0,a.jsx)(t.ShieldCheck,{className:"w-7 h-7 text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[9px] font-black text-zinc-500 uppercase tracking-[0.3em]",children:g?.trustUptitle||"Verificado via"}),(0,a.jsx)("p",{className:"font-black text-white text-xl tracking-tighter uppercase italic leading-none",children:g?.trustSystemName||"Ramderf Trust"}),b&&(0,a.jsxs)("p",{className:"text-[8px] font-medium text-zinc-600 mt-1",children:["Auditado em: ",new Date(b).toLocaleDateString("pt-BR")]})]})]}),(0,a.jsxs)("div",{className:(0,m.cn)("px-4 py-2 rounded-full text-[10px] font-black uppercase tracking-widest",y>=70?"bg-emerald-500/20 text-emerald-400":"bg-amber-500/20 text-amber-400"),children:[y,"% NAP"]})]}),(0,a.jsxs)("div",{className:"p-10 space-y-8",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[9px] font-black text-zinc-400 uppercase tracking-widest mb-1",children:"Empresa"}),(0,a.jsx)("h3",{className:"text-2xl font-black text-zinc-900 tracking-tighter leading-tight",children:e.name}),e.category&&(0,a.jsx)("span",{className:"inline-block mt-1 px-3 py-0.5 bg-zinc-100 text-zinc-500 text-[10px] font-black uppercase tracking-widest rounded-full capitalize",children:e.category})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 p-5 bg-zinc-50 rounded-2xl",children:[(0,a.jsx)("div",{className:"flex",style:{color:"var(--institutional-secondary)"},children:[void 0,void 0,void 0,void 0,void 0].map((t,r)=>(0,a.jsx)(s.Star,{className:`w-5 h-5 fill-current ${r<Math.floor(e.rating)?"":"opacity-20"}`},r))}),(0,a.jsx)("span",{className:"text-2xl font-black text-zinc-900",children:e.rating.toFixed(1)}),(0,a.jsxs)("span",{className:"text-sm text-zinc-400 font-medium",children:["(",e.reviewsCount," avaliações no Google)"]})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[e.address&&(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(r.MapPin,{className:"w-4 h-4 text-emerald-500 shrink-0 mt-0.5"}),(0,a.jsx)("span",{className:"text-sm font-medium text-zinc-600",children:e.address})]}),e.phone&&(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(i.Phone,{className:"w-4 h-4 text-emerald-500 shrink-0"}),(0,a.jsx)("span",{className:"text-sm font-medium text-zinc-600",children:e.phone})]}),e.website&&(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(l.Globe,{className:"w-4 h-4 text-emerald-500 shrink-0"}),(0,a.jsx)("a",{href:e.website,target:"_blank",className:"text-sm font-medium text-blue-600 hover:underline truncate",children:e.website.replace(/^https?:\/\//,"")})]})]})]}),p.length>0&&(0,a.jsxs)("div",{className:"space-y-3 pt-6 border-t border-zinc-100",children:[(0,a.jsx)("p",{className:"text-[9px] font-black text-zinc-400 uppercase tracking-widest",children:"Presença Digital Verificada"}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-2",children:p.slice(0,6).map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 bg-zinc-50 rounded-xl",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:["CORRECT"===e.status?(0,a.jsx)(n.CheckCircle2,{className:"w-4 h-4 text-emerald-500 shrink-0"}):"ERROR"===e.status?(0,a.jsx)(c.XCircle,{className:"w-4 h-4 text-red-500 shrink-0"}):(0,a.jsx)(o.AlertCircle,{className:"w-4 h-4 text-zinc-300 shrink-0"}),(0,a.jsx)("span",{className:"text-[11px] font-bold text-zinc-700 uppercase tracking-tight",children:e.name})]}),e.link&&(0,a.jsx)("a",{href:e.link,target:"_blank",children:(0,a.jsx)(d.ArrowRight,{className:"w-3 h-3 text-zinc-300 hover:text-emerald-500 transition-colors"})})]},t))})]}),u&&(0,a.jsxs)(x.default,{href:u,target:"_blank",className:"flex items-center justify-center gap-3 w-full h-14 bg-zinc-900 text-white rounded-2xl font-black text-[11px] uppercase tracking-widest hover:bg-emerald-600 transition-all shadow-xl shadow-zinc-900/10 active:scale-95 group",children:[(0,a.jsx)(t.ShieldCheck,{className:"w-4 h-4 group-hover:rotate-12 transition-transform"}),g?.trustCTA||"Ver Perfil Completo de Autoridade"]})]})]})}])},946145,e=>{"use strict";var a=e.i(843476),t=e.i(522016),s=e.i(178583),r=e.i(87316),i=e.i(972520),l=e.i(346897),n=e.i(269638),c=e.i(657688);e.s(["default",0,function({posts:e,settings:o,translations:d,projectId:m}){if(!e||0===e.length)return null;let x=(e,a)=>d&&d[e]||a;return(0,a.jsx)("section",{id:"blog",className:"py-32 bg-zinc-50/50",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-8",children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-8 mb-16",children:[(0,a.jsxs)("div",{className:"max-w-2xl",children:[(0,a.jsx)("h4",{className:"text-primary font-black uppercase tracking-[0.3em] text-xs mb-4",children:o?.blogBadge||x("blog.uptitle","Conteúdo & Dicas")}),(0,a.jsx)("h2",{className:"text-4xl md:text-5xl font-black text-zinc-900 tracking-tight leading-none",children:o?.blogTitle||x("blog.title","Blog & Notícias")}),(0,a.jsx)("p",{className:"text-zinc-500 font-medium text-lg mt-6 leading-relaxed",children:o?.blogDescription||x("blog.description","Fique por dentro das novida
1des, dicas técnicas e tendências do mercado.")})]}),(0,a.jsxs)(t.default,{href:`/diretorio/blog-perfis${m?`?project=${m}`:""}`,className:"group flex items-center gap-3 text-sm font-black uppercase tracking-widest text-zinc-900 hover:text-primary transition-colors",children:["Ver todos os artigos",(0,a.jsx)(i.ArrowRight,{className:"w-5 h-5 group-hover:translate-x-2 transition-transform"})]})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:e.slice(0,3).map(e=>(0,a.jsxs)(t.default,{href:`/diretorio/blog-perfis/${e.slug}${m?`?project=${m}`:""}`,className:"group flex flex-col space-y-6",itemScope:!0,itemType:"https://schema.org/BlogPosting",children:[(0,a.jsx)("div",{className:"aspect-[16/10] w-full rounded-[2.5rem] overflow-hidden bg-zinc-100 shadow-sm transition-transform group-hover:scale-[1.03] duration-500 relative",children:e.imageUrl?(0,a.jsx)(c.default,{src:e.imageUrl,alt:e.title,fill:!0,className:"w-full h-full object-cover"}):(0,a.jsx)("div",{className:"w-full h-full flex items-center justify-center text-zinc-300",children:(0,a.jsx)(s.FileText,{className:"w-12 h-12 opacity-20"})})}),(0,a.jsxs)("div",{className:"space-y-4 px-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 text-xs font-bold text-primary uppercase tracking-widest",children:[(0,a.jsx)(r.Calendar,{className:"w-3.5 h-3.5"}),(0,a.jsx)("time",{itemProp:"datePublished",dateTime:e.createdAt,children:new Date(e.createdAt).toLocaleDateString("pt-BR")})]}),o?.contractedCity&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] font-black text-zinc-400 uppercase tracking-widest",itemProp:"contentLocation",itemScope:!0,itemType:"https://schema.org/Place",children:[(0,a.jsx)(l.MapPin,{className:"w-3 h-3 text-primary"}),(0,a.jsx)("span",{itemProp:"name",children:o.contractedCity})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] font-black text-emerald-600 uppercase tracking-widest",children:[(0,a.jsx)(n.CheckCircle,{className:"w-3 h-3"}),(0,a.jsx)("span",{children:o?.author?.expertise||o?.author?.name||"Especialista Verificado"})]}),(0,a.jsx)("h3",{className:"text-2xl font-black text-zinc-900 group-hover:text-primary transition-colors leading-tight",itemProp:"headline",children:e.title}
1),(0,a.jsxs)("div",{itemProp:"author",itemScope:!0,itemType:o?.author?.type==="Organization"?"https://schema.org/Organization":"https://schema.org/Person",className:"hidden",children:[(0,a.jsx)("span",{itemProp:"name",children:o?.author?.name||o?.companyName}),o?.author?.bio&&(0,a.jsx)("span",{itemProp:"description",children:o.author.bio}),o?.author?.expertise&&(0,a.jsx)("span",{itemProp:"knowsAbout",children:o.author.expertise})]}),(0,a.jsx)("p",{className:"text-zinc-500 font-medium line-clamp-2 leading-relaxed",itemProp:"description",children:e.content.replace(/<[^>]*>?/gm,"")}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-zinc-900 font-black text-xs uppercase tracking-widest pt-2 group-hover:gap-4 transition-all",children:["Ler Artigo ",(0,a.jsx)(i.ArrowRight,{className:"w-4 h-4 text-primary"})]})]})]},e.id))})]})})}])},254834,e=>{"use strict";var a=e.i(843476),t=e.i(271645),s=e.i(514764),r=e.i(595468),i=e.i(63209),l=e.i(531278),n=e.i(972520),c=e.i(647163),o=e.i(95187);let d=(0,o.createServerReference)("405287ac326ab1c46c6728295b51c8eacaa2f49276",o.callServer,void 0,o.findSourceMapURL,"submitBudgetAction");var m=e.i(522016),x=e.i(969411);e.s(["default",0,function({settings:e,serviceProServices:o,services:p}){let[u,h]=(0,t.useState)(!1),[f,g]=(0,t.useState)(!1),[b,j]=(0,t.useState)(null),[y,w]=(0,t.useState)([]),[v,N]=(0,t.useState)({name:"",phone:"",email:"",address:"",notes:""});(0,t.useEffect)(()=>{let e=localStorage.getItem("budget_form_draft");if(e)try{let a=JSON.parse(e);a.formData&&N(a.formData),a.selectedServices&&w(a.selectedServices)}catch(e){console.error("Failed to load budget draft",e)}},[]),(0,t.useEffect)(()=>{localStorage.setItem("budget_form_draft",JSON.stringify({formData:v,selectedServices:y}))},[v,y]);let k=e=>{let{name:a,value:t}=e.target;N(e=>({...e,[a]:t}))},z=o&&o.length>0?o.map(e=>({id:e.id,name:e.nome})):p.map(e=>({id:e.id,name:e.title})),C=async e=>{e.preventDefault(),h(!0),j(null);let a=new FormData(e.currentTarget),t={customerName:a.get("name"),customerPhone:a.get("phone"),customerEmail:a.get("email"),customerAddress:a.get("address"),description:a.get("notes"),serviceType:y.join(", "),source:"Website Integration"};try{let e=await d(t);e.success?(g(!0),(0,x.trackConversion)({eventType:"BUDGET_SUBMIT",targetText:"Solicitar Orçamento",targetId:"public-budget-form",metadata:{form:"budget",orderId:e.orderId||null,services:y.join(", ").slice(0,500)}}),localStorage.removeItem("budget_form_draft")):j(e.error||"Ocorreu um erro ao enviar seu pedido.")}catch(e){j("Ocorreu um erro ao enviar seu pedido. Tente novamente.")}finally{h(!1)}};return f?(0,a.jsx)("section",{className:"py-24 bg-zinc-950 px-6",children:(0,a.jsxs)("div",{className:"max-w-4xl mx-auto bg-primary/10 border-2 border-primary rounded-[--radius] p-12 text-center space-y-6 animate-in zoom-in duration-500",children:[(0,a.jsx)("div",{className:"w-20 h-20 bg-primary text-white rounded-full flex items-center justify-center mx-auto shadow-lg shadow-primary/20",children:(0,a.jsx)(r.CheckCircle2,{className:"w-10 h-10"})}),(0,a.jsx)("h3",{className:"text-3xl font-black text-primary uppercase",children:e?.budgetSuccessTitle||"Solicitação Enviada!"}),(0,a.jsx)("p",{className:"text-primary font-medium max-w-sm mx-auto",children:e?.budgetSuccessMessage||"Recebemos seu pedido de orçamento. Agora você já pode acompanhar o status direto na sua área exclusiva."}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 items-center",children:[(0,a.jsxs)(m.default,{href:"/cliente",className:"bg-primary hover:bg-primary/90 text-white px-10 py-4 rounded-[--radius] font-black uppercase tracking-widest text-xs shadow-xl shadow-primary/20 flex items-center gap-2",children:["Ver Meu Status ",(0,a.jsx)(n.ArrowRight,{className:"w-4 h-4"})]}),(0,a.jsx)("button",{onClick:()=>g(!1),className:"text-primary font-black uppercase tracking-widest text-[10px] hover:underline",children:"Fazer outra solicitação"})]})]})}):(0,a.jsxs)("section",{id:"orcamento",className:"py-24 bg-zinc-950 text-white overflow-hidden relative",children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 w-full h-full bg-[radial-gradient(circle_at_30%_-20%,var(--primary),transparent)] opacity-20 pointer-events-none"}),(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-6 relative z-10",children:(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 gap-20 items-start",children:[(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("span",{className:"text-primary font-black uppercase tracking-[0.3em] text-sm",children:e?.budgetBadge||"Orçamento Inteligente"}),(0,a.jsxs)("h2",{className:"text-5xl md:text-7xl font-black tracking-tighter leading-none",children:[e?.budgetTitle||"Peça um"," ",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-primary italic",children:e?.budgetSubtitle||"orçamento agora"})]})]}),(0,a.jsx)("p",{className:"text-zinc-400 text-lg leading-relaxed max-w-md",children:e?.budgetDescription||"Integrado ao nosso sistema de gestão **ServicePRO**, sua solicitação cai direto na mesa dos nossos técnicos para uma resposta ultra-rápida."}),z.length>0&&(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("h4",{className:"text-xs font-black uppercase tracking-widest text-zinc-500",children:"Selecione os Serviços Desejados:"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:z.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{var a;return a=e.name,void w(e=>e.includes(a)?e.filter(e=>e!==a):[...e,a])}
1,className:(0,c.cn)("flex items-center gap-3 p-4 rounded-[--radius] border-2 transition-all text-left group",y.includes(e.name)?"border-primary bg-primary/20 text-white":"border-white/5 bg-white/5 text-zinc-400 hover:border-white/20"),children:[(0,a.jsx)("div",{className:(0,c.cn)("w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0 transition-colors",y.includes(e.name)?"border-primary bg-primary":"border-zinc-700"),children:y.includes(e.name)&&(0,a.jsx)(r.CheckCircle2,{className:"w-3 h-3 text-white"})}),(0,a.jsx)("span",{className:"font-bold text-sm truncate",children:e.name})]},e.id))})]})]}),(0,a.jsx)("form",{id:"public-budget-form",onSubmit:C,className:"bg-zinc-900/50 backdrop-blur-xl border border-white/10 p-8 md:p-12 rounded-[--radius] shadow-2xl relative",children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{className:"text-[10px] font-black uppercase tracking-widest text-zinc-500",children:"Nome Completo"}),(0,a.jsx)("input",{required:!0,name:"name",value:v.name,onChange:k,className:"w-full bg-black/50 border border-white/10 rounded-[--radius] px-6 py-4 text-white font-medium focus:ring-2 ring-primary outline-none transition-all"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{className:"text-[10px] font-black uppercase tracking-widest text-zinc-500",children:"WhatsApp / Tel"}),(0,a.jsx)("input",{required:!0,name:"phone",value:v.phone,onChange:k,className:"w-full bg-black/50 border border-white/10 rounded-[--radius] px-6 py-4 text-white font-medium focus:ring-2 ring-primary outline-none transition-all"})]})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{className:"text-[10px] font-black uppercase tracking-widest text-zinc-500",children:"Endereço do Local"}),(0,a.jsx)("input",{required:!0,name:"address",value:v.address,onChange:k,className:"w-full bg-black/50 border border-white/10 rounded-[--radius] px-6 py-4 text-white font-medium focus:ring-2 ring-primary outline-none transition-all"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{className:"text-[10px] font-black uppercase tracking-widest text-zinc-500",children:"Notas Adicionais (Opcional)"}),(0,a.jsx)("textarea",{name:"notes",rows:4,value:v.notes,onChange:k,className:"w-full bg-black/50 border border-white/10 rounded-[--radius] px-6 py-4 text-white font-medium focus:ring-2 ring-primary outline-none transition-all resize-none"})]}),b&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-400 text-sm font-bold bg-red-400/10 p-4 rounded-[--radius] border border-red-400/20",children:[(0,a.jsx)(i.AlertCircle,{className:"w-4 h-4"}),b]}),(0,a.jsx)("button",{type:"submit",disabled:u,className:"w-full bg-primary hover:bg-primary/90 text-white font-black uppercase tracking-[0.2em] py-6 rounded-[--radius] shadow-xl shadow-primary/20 transition-all flex items-center justify-center gap-3 disabled:opacity-50",children:u?(0,a.jsx)(l.Loader2,{className:"w-6 h-6 animate-spin"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Send,{className:"w-5 h-5"}),"Solicitar Orçamento"]})})]})})]})})]})}],254834)}]);

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.