PageSourceSearch

https://jao.delivery/assets/licenciamentopdx-De0wk7zo.js

js jao.delivery collected 2026-09-24 14:02:41 UTC 30,356 bytes, 1 lines download raw bytes

1import{j as e,r as x}from"./index-BvqW7u43.js";const Q="/assets/jao-logo-0OeKhf67.png",r="#29B225",y="rgba(41,178,37,0.10)",A="#0A0E0A",N="#111611",h="#1F2A1F",K="#F5F5F5",w="#FFFFFF",v="#E5E5E5",C="#E0A500",Y="https://hooks.pluga.co/v2/webhooks/MTcxMDYyNTM5MTYzMjM5MTY5OThUMTc4MTA0MzA5Ng",Z="https://jaodeliveryapp.lovable.app/__l5e/assets-v1/d6cc22fa-9c60-4532-875b-4c8a7aa086a3/app-mockup.png",X="https://jaodeliveryapp.lovable.app/__l5e/assets-v1/8ed1a4c9-2dde-439e-bc81-2cfbe510aed3/distribuidora.jpg",ee="https://jaodeliveryapp.lovable.app/__l5e/assets-v1/f326b7f1-d425-47f2-b2d7-48061418dacc/parceiros-banner.png";function i({children:t,delay:l=0,className:o=""}){const n=x.useRef(null);return x.useEffect(()=>{const c=n.current;if(!c)return;const m=new IntersectionObserver(R=>{R.forEach(E=>{E.isIntersecting&&(c.style.animationDelay=`${l}ms`,c.classList.add("in"),m.unobserve(c))})},{threshold:.12});return m.observe(c),()=>m.disconnect()},[l]),e.jsx("div",{ref:n,className:`licpdx-reveal ${o}`,children:t})}function be(){return e.jsxs("div",{className:"min-h-screen",style:{backgroundColor:A,color:"#fff"},children:[e.jsx(ae,{}),e.jsxs("main",{children:[e.jsx(se,{}),e.jsx(le,{}),e.jsx(oe,{}),e.jsx(ie,{}),e.jsx(de,{}),e.jsx(ne,{}),e.jsx(ce,{}),e.jsx(me,{}),e.jsx(xe,{})]}),e.jsx(he,{})]})}function ae(){function t(){document.getElementById("form")?.scrollIntoView({behavior:"smooth",block:"start"})}return e.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 backdrop-blur-md",style:{backgroundColor:"rgba(10,14,10,0.85)",borderBottom:`1px solid ${h}`},children:e.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-5 py-3 md:px-10",children:[e.jsx("a",{href:"#top",className:"flex items-center",children:e.jsx("img",{src:Q,alt:"JÃO Delivery",className:"h-9 w-auto md:h-11"})}),e.jsx("button",{type:"button",onClick:t,className:"licpdx-btn rounded-lg px-3 py-2 text-xs font-bold md:px-4 md:text-sm",children:"Quero minha cidade"})]})})}function O({opacity:t=.06,color:l="#fff"}){return e.jsx("div",{className:"pointer-events-none absolute inset-0",style:{opacity:t,backgroundImage:`linear-gradient(to right, ${l} 1px, transparent 1px), linear-gradient(to bottom, ${l} 1px, transparent 1px)`,backgroundSize:"64px 64px"}})}function te(){return e.jsx("div",{className:"relative mx-auto w-full max-w-[280px] md:max-w-[320px]",children:e.jsxs("div",{className:"relative aspect-[975/1920] rounded-[2.5rem] p-2 shadow-2xl",style:{backgroundColor:"#000",border:`2px solid ${h}`},children:[e.jsx("div",{className:"absolute left-1/2 top-2 z-10 h-5 w-24 -translate-x-1/2 rounded-b-2xl bg-black"}),e.jsx("div",{className:"relative h-full w-full overflow-hidden rounded-[2rem]",style:{backgroundColor:"#0F140F"},children:e.jsx("img",{src:Z,alt:"Tela do app Jão Delivery",className:"block h-full w-full object-cover object-center select-none",draggable:!1,loading:"lazy"})})]})})}function se(){return e.jsxs("section",{id:"top",className:"relative overflow-hidden pt-24 pb-16 md:pt-32 md:pb-24",style:{backgroundColor:A},children:[e.jsx(O,{}),e.jsx("div",{className:"licpdx-hero-aurora"}),e.jsxs("div",{className:"relative mx-auto max-w-7xl px-5 md:px-10",children:[e.jsx(i,{children:e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full px-4 py-2 text-xs font-semibold",style:{border:`1px solid ${h}`,color:r,backgroundColor:y},children:[e.jsx("span",{className:"licpdx-pulse-dot h-1.5 w-1.5 rounded-full",style:{backgroundColor:r}}),"2ª maior plataforma de delivery de bebidas do Brasil"]})}),e.jsxs("div",{className:"mt-8 grid items-center gap-12 lg:grid-cols-[1fr_1fr] lg:gap-16",children:[e.jsx(i,{delay:120,className:"order-2 lg:order-1",children:e.jsx(te,{})}),e.jsxs("div",{className:"order-1 lg:order-2",children:[e.jsx(i,{delay:80,children:e.jsxs("h1",{className:"text-[34px] font-extrabold leading-[1.05] tracking-tight sm:text-[46px] md:text-[56px]",children:["Pare de dividir pedido com o iFood."," ",e.jsx("span",{style:{color:r},children:"Seja o único delivery de bebidas da sua cidade."})]})}),e.jsx(i,{delay:180,children:e.jsxs("p",{className:"mt-6 text-base leading-relaxed text-white/65 md:text-lg",children:["O mesmo app que já fez"," ",e.jsx("span",{className:"font-bold",style:{color:C},children:"+R$2 milhões"})," ","em pedido pra distribuidoras em 250+ cidades."]})}),e.jsx(i,{delay:260,children:e.jsx("ul",{className:"mt-7 space-y-3",children:["2ª maior do Brasil em delivery de bebidas","Maior plataforma multimarcas — sem limite de marca","250+ cidades já operando"].map(t=>e.jsxs("li",{className:"flex items-start gap-3 text-sm md:text-base",children:[e.jsx("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-[11px] font-bold text-black",style:{backgroundColor:r},children:"✓"}),e.jsx("span",{className:"text-white/85",children:t})]},t))})}),e.jsx(i,{delay:340,children:e.jsx("button",{type:"button",onClick:()=>document.getElementById("form")?.scrollIntoView({behavior:"smooth"}),className:"licpdx-btn mt-8 w-full rounded-xl px-6 py-4 text-base font-bold md:w-auto",children:"Falar com especialista →"})})]})]})]})]})}function $({children:t,id:l}){return e.jsxs("section",{id:l,className:"relative overflow-hidden py-20 md:py-28",style:{backgroundColor:A,borderTop:`1px solid ${h}`},children:[e.jsx(O,{opacity:.05}),e.jsx("div",{className:"relative mx-auto max-w-6xl px-5 md:px-10",children:t})]})}function D({children:t,id:l}){return e.jsxs("section",{id:l,className:"relative overflow-hidden py-20 md:py-28",style:{backgroundColor:K,color:"#0A0E0A"},children:[e.jsx(O,{opacity:.04,color:"#000"}),e.jsx("div",{className:"relative mx-auto max-w-6xl px-5 md:px-10",children:t})]})}
1function le(){const t=[{t:"Comissão que corrói margem",d:"Cada pedido no marketplace é dinheiro saindo do seu bolso."},{t:"Cliente que não é seu",d:"O marketplace tem o dado, o histórico e a recompra. Você só entrega."},{t:"Operação manual",d:"WhatsApp não escala. Pedido se perde, atendente trava, fim de semana vira caos."}];return e.jsxs(D,{id:"dor",children:[e.jsx(i,{children:e.jsxs("h2",{className:"max-w-3xl text-3xl font-extrabold leading-tight tracking-tight md:text-5xl",children:["Você fatura ",e.jsx("span",{style:{color:C},children:"+R$200 mil/mês"}),". Mas o canal de vendas é de quem?"]})}),e.jsx(i,{delay:120,children:e.jsx("p",{className:"mt-6 max-w-3xl text-base leading-relaxed text-black/70 md:text-lg",children:"Hoje seu delivery depende de WhatsApp no manual, de marketplace que cobra comissão e fica com o cliente, ou de uma operação que trava quando o movimento aperta. Você cresce o faturamento, mas não cresce o ativo. O cliente é da plataforma — não seu."})}),e.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-3 md:gap-5",children:t.map((l,o)=>e.jsx(i,{delay:140+o*100,children:e.jsxs("div",{className:"licpdx-card-lift h-full rounded-xl p-6 md:p-7",style:{backgroundColor:w,border:`1px solid ${v}`},children:[e.jsx("div",{className:"text-2xl",children:"⚠️"}),e.jsx("h3",{className:"mt-4 text-lg font-bold md:text-xl",children:l.t}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-black/65 md:text-base",children:l.d})]})},l.t))})]})}function re(){return e.jsx("div",{className:"relative mx-auto aspect-square w-full max-w-md",children:e.jsxs("svg",{viewBox:"0 0 400 400",className:"h-full w-full",children:[e.jsx("path",{d:"M150 60 Q180 50 220 65 Q260 70 290 90 Q320 110 330 150 Q340 190 320 230 Q310 270 280 300 Q250 330 210 340 Q170 345 140 325 Q110 305 95 270 Q80 235 85 195 Q90 155 110 120 Q125 85 150 60 Z",fill:y,stroke:r,strokeWidth:"1.5"}),[[180,110],[230,130],[200,170],[260,180],[150,200],[220,220],[180,250],[250,260],[200,290],[170,150],[280,210],[160,280]].map(([t,l],o)=>e.jsxs("g",{children:[e.jsxs("circle",{cx:t,cy:l,r:"8",fill:r,opacity:"0.25",children:[e.jsx("animate",{attributeName:"r",values:"6;14;6",dur:"2s",begin:`${o*.2}s`,repeatCount:"indefinite"}),e.jsx("animate",{attributeName:"opacity",values:"0.4;0;0.4",dur:"2s",begin:`${o*.2}s`,repeatCount:"indefinite"})]}),e.jsx("circle",{cx:t,cy:l,r:"3.5",fill:r})]},o))]})})}function oe(){return e.jsx($,{id:"licenca",children:e.jsxs("div",{className:"grid items-center gap-12 lg:grid-cols-[1.1fr_1fr]",children:[e.jsxs("div",{children:[e.jsx(i,{children:e.jsxs("h2",{className:"text-3xl font-extrabold leading-tight tracking-tight md:text-5xl",children:["A licença Jão te dá o que o marketplace nunca vai dar:"," ",e.jsx("span",{style:{color:r},children:"o território."})]})}),e.jsx(i,{delay:120,children:e.jsx("p",{className:"mt-6 text-base leading-relaxed text-white/65 md:text-lg",children:"Você compra o direito exclusivo de operar o App do Jão na sua cidade. O consumidor baixa, entra e pede as bebidas dele direto no app. E aqui não tem limite de marca: tudo que você vende, entra. O canal é seu. O cliente é seu. A cidade é sua."})}),e.jsx(i,{delay:220,children:e.jsx("div",{className:"mt-8 rounded-xl p-6 md:p-7",style:{backgroundColor:N,border:`1px solid ${r}`},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full text-xl",style:{backgroundColor:y,color:r,border:`1px solid ${r}`},children:"🔒"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-lg font-bold md:text-xl",children:"1 cidade = 1 licenciado. Fechou, fechou."}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-white/65 md:text-base",children:"Cidade com +100 mil habitantes? Dá pra operar por bairro/região — território dividido, exclusividade mantida."})]})]})})})]}),e.jsx(i,{delay:180,children:e.jsx(re,{})})]})})}function ie(){const t=[["Marcas","Travado / limitado","Todas que você vende"],["Território","Sem exclusividade","Sua cidade, só sua"],["Cliente","Da plataforma","Seu"],["Catálogo","Limitado","Aberto"]];return e.jsxs(D,{id:"multimarcas",children:[e.jsx(i,{children:e.jsxs("h2",{className:"text-3xl font-extrabold leading-tight tracking-tight md:text-5xl",children:["Por que ser multimarcas ",e.jsx("span",{style:{color:r},children:"muda o jogo"})]})}),e.jsx(i,{delay:120,children:e.jsxs("div",{className:"mt-10 overflow-hidden rounded-2xl",style:{border:`1px solid ${v}`,backgroundColor:w},children:[e.jsxs("div",{className:"grid grid-cols-3 text-xs font-bold uppercase tracking-wider md:text-sm",style:{backgroundColor:"#0A0E0A",color:"#fff"},children:[e.jsx("div",{className:"px-4 py-4 md:px-6 md:py-5",children:" "}),e.jsx("div",{className:"px-4 py-4 md:px-6 md:py-5",children:"Operação comum"}),e.jsx("div",{className:"px-4 py-4 md:px-6 md:py-5",style:{color:r},children:"App do Jão"})]}),t.map((l,o)=>e.jsxs("div",{className:"grid grid-cols-3 text-sm md:text-base",style:{borderTop:`1px solid ${v}`,backgroundColor:o%2?"#FAFAFA":w},children:[e.jsx("div",{className:"px-4 py-4 font-bold md:px-6 md:py-5",children:l[0]}),e.jsx("div",{className:"px-4 py-4 text-black/60 md:px-6 md:py-5",children:l[1]}),e.jsx("div",{className:"px-4 py-4 font-semibold md:px-6 md:py-5",style:{color:r},children:l[2]})]},l[0]))]})})]})}function de(){const t=[{k:"+R$2 mi",v:"faturados pelos licenciados"},{k:"250+",v:"cidades operando"}
1,{k:"< 1 mês",v:"payback na maioria das operações"}],l=[{c:"Pinheiro/MA",r:"+R$1 milhão faturado, retorno em semanas"},{c:"Redenção/PA",r:"+R$634 mil faturados"},{c:"Ponta Grossa/PR",r:"+R$431 mil faturados"},{c:"São Bento/MA",r:"+R$429 mil faturados"}];return e.jsxs(D,{id:"prova",children:[e.jsx(i,{children:e.jsxs("h2",{className:"max-w-3xl text-3xl font-extrabold leading-tight tracking-tight md:text-5xl",children:["Não é promessa. É"," ",e.jsx("span",{style:{color:r},children:"faturamento que já aconteceu."})]})}),e.jsx(i,{delay:80,children:e.jsx("figure",{className:"mt-8 overflow-hidden rounded-2xl shadow-lg",style:{border:`1px solid ${v}`},children:e.jsx("img",{src:X,alt:"Distribuidora de bebidas com equipe operando expedição, empilhadeira e carregamento de caminhão",className:"block aspect-[16/9] w-full object-cover",loading:"lazy"})})}),e.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-3 md:gap-6",children:t.map((o,n)=>e.jsx(i,{delay:100+n*100,children:e.jsxs("div",{className:"licpdx-card-lift rounded-xl p-6 text-center md:p-8",style:{backgroundColor:w,border:`1px solid ${v}`},children:[e.jsx("div",{className:"text-4xl font-extrabold tracking-tight md:text-5xl",style:{color:C},children:o.k}),e.jsx("div",{className:"mt-2 text-sm text-black/65 md:text-base",children:o.v})]})},o.v))}),e.jsx("div",{className:"mt-6 grid gap-4 md:grid-cols-2 md:gap-5",children:l.map((o,n)=>e.jsx(i,{delay:120+n*80,children:e.jsxs("div",{className:"licpdx-card-lift flex items-start gap-4 roun
1ded-xl p-5 md:p-6",style:{backgroundColor:w,border:`1px solid ${v}`},children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full text-base",style:{backgroundColor:y,color:r},children:"📍"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-base font-bold md:text-lg",children:o.c}),e.jsx("div",{className:"mt-1 text-sm font-semibold md:text-base",style:{color:C},children:o.r})]})]})},o.c))}),e.jsx(i,{delay:140,children:e.jsx("figure",{className:"mt-8 overflow-hidden rounded-2xl shadow-lg",style:{border:`1px solid ${v}`},children:e.jsx("img",{src:ee,alt:"Parceiros Jão Delivery exibindo placas de R$1 milhão e meio milhão em vendas pelo aplicativo",className:"block w-full object-cover",loading:"lazy"})})})]})}function ne(){const t=[{t:"Você aplica",d:"Preenche o formulário e fala com um consultor."},{t:"Reservamos sua cidade",d:"Enquanto a conversa anda, o território fica seu."},{t:"Implementamos",d:"App configurado, catálogo carregado, operação no ar."},{t:"Você fatura",d:"Pedidos entram direto, cliente é seu, sem comissão de marketplace."}];return e.jsxs($,{id:"como",children:[e.jsx(i,{children:e.jsxs("h2",{className:"text-3xl font-extrabold tracking-tight md:text-5xl",children:["Da licença ao ",e.jsx("span",{style:{color:r},children:"primeiro pedido"})]})}),e.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-4 md:gap-5",children:t.map((l,o)=>e.jsx(i,{delay:120+o*90,children:e.jsxs("div",{className:"licpdx-card-lift h-full rounded-xl p-6 md:p-7",style:{backgroundColor:N,border:`1px solid ${h}`},children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full text-base font-bold",style:{backgroundColor:r,color:"#000"},children:o+1}),e.jsx("h3",{className:"mt-5 text-lg font-bold md:text-xl",children:l.t}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-white/60 md:text-base",children:l.d})]})},l.t))})]})}function ce(){return e.jsxs("section",{className:"relative overflow-hidden py-20 md:py-28",style:{backgroundColor:"#0A0E0A",borderTop:`1px solid ${r}`},children:[e.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:`radial-gradient(ellipse at center, ${y} 0%, transparent 60%)`}}),e.jsxs("div",{className:"relative mx-auto max-w-4xl px-5 text-center md:px-10",children:[e.jsx(i,{children:e.jsx("div",{className:"inline-flex items-center gap-2 rounded-full px-4 py-2 text-xs font-bold uppercase tracking-wider",style:{border:`1px solid ${r}`,color:r},children:"⚠ Atenção"})}),e.jsx(i,{delay:100,children:e.jsxs("h2",{className:"mt-6 text-3xl font-extrabold leading-tight tracking-tight md:text-5xl",children:["Cada cidade tem um dono. A sua ainda está livre —"," ",e.jsx("span",{style:{color:r},children:"por enquanto."})]})}),e.jsx(i,{delay:180,children:e.jsx("p",{className:"mx-auto mt-6 max-w-2xl text-base leading-relaxed text-white/70 md:text-lg",children:"São 250+ cidades já fechadas. A exclusividade é por ordem de chegada: o primeiro operador qualificado que aplicar pela sua cidade trava o território. Quando isso acontece, ninguém mais entra. Inclusive seu concorrente — que pode estar lendo isso agora."})}),e.jsx(i,{delay:260,children:e.jsx("button",{type:"button",onClick:()=>document.getElementById("form")?.scrollIntoView({behavior:"smooth"}),className:"licpdx-btn mt-8 rounded-xl px-7 py-4 text-base font-bold",children:"Garantir minha cidade antes que feche →"})})]})]})}function me(){const t=[{q:"A exclusividade é real?",a:"Sim. Um licenciado por cidade. Acima de 100 mil habitantes, pode ser dividida por região."},{q:"Quanto custa?",a:"Depende do porte da cidade. O consultor apresenta na conversa."},{q:"Já trabalho com outros canais. Posso usar junto?",a:"Pode. O Jão vira seu canal próprio, sem comissão e sem limite de marca."},{q:"E se meu concorrente aplicar antes?",a:"A cidade vai pra quem qualificar primeiro. Por isso a página existe."},{q:"Tenho suporte?",a:"Sim — implementação e acompanhamento inclusos."}],[l,o]=x.useState(0);return e.jsxs($,{id:"faq",children:[e.jsx(i,{children:e.jsx("h2",{className:"text-3xl font-extrabold tracking-tight md:text-5xl",children:"Perguntas frequentes"})}),e.jsx("div",{className:"mt-10 space-y-3",children:t.map((n,c)=>{const m=l===c;return e.jsx(i,{delay:60+c*50,children:e.jsxs("div",{className:"licpdx-card-lift overflow-hidden rounded-xl",style:{backgroundColor:N,border:`1px solid ${m?r:h}`},children:[e.jsxs("button",{type:"button",onClick:()=>o(m?null:c),className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left md:px-6 md:py-5",children:[e.jsx("span",{className:"text-base font-semibold md:text-lg",children:n.q}),e.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-base transition-transform duration-300",style:{color:r,border:`1px solid ${r}`,transform:m?"rotate(45deg)":"rotate(0deg)"},children:"+"})]}),e.jsx("div",{className:"grid transition-all duration-300 ease-out",style:{gridTemplateRows:m?"1fr":"0fr"}
1,children:e.jsx("div",{className:"overflow-hidden",children:e.jsx("div",{className:"px-5 pb-5 text-sm leading-relaxed text-white/70 md:px-6 md:pb-6 md:text-base",children:n.a})})})]})},n.q)})})]})}function xe(){return e.jsx($,{id:"cta",children:e.jsxs("div",{className:"grid items-start gap-12 lg:grid-cols-[1fr_1.1fr] lg:gap-16",children:[e.jsxs("div",{children:[e.jsx(i,{children:e.jsxs("h2",{className:"text-3xl font-extrabold leading-tight tracking-tight md:text-5xl",children:["Sua cidade, seu cliente, seu faturamento."," ",e.jsx("span",{style:{color:r},children:"Comece agora."})]})}),e.jsx(i,{delay:120,children:e.jsx("p",{className:"mt-6 text-base leading-relaxed text-white/65 md:text-lg",children:"Preenche o formulário. Um consultor confere se a sua cidade está livre e te chama no WhatsApp."})}),e.jsx(i,{delay:200,children:e.jsx("ul",{className:"mt-8 space-y-3 text-sm md:text-base",children:["Resposta em até 24h","Sem compromisso","Atendimento de operador para operador"].map(t=>e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"flex h-5 w-5 items-center justify-center rounded-full text-[11px] font-bold text-black",style:{backgroundColor:r},children:"✓"}),e.jsx("span",{className:"text-white/85",children:t})]},t))})})]}),e.jsx(i,{delay:160,children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-px rounded-[1.1rem] opacity-70 blur-2xl",style:{background:"radial-gradient(60% 60% at 50% 0%, rgba(41,178,37,0.35), transparent 70%)"}}),e.jsx("div",{id:"form",className:"relative rounded-2xl p-6 md:p-7",style:{backgroundImage:"linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%)",backgroundColor:"#141A14",border:"1px solid rgba(41,178,37,0.45)",boxShadow:"0 30px 80px -30px rgba(41,178,37,0.45), 0 1px 0 rgba(255,255,255,0.05) inset"},children:e.jsx(ue,{})})]})})]})})}const pe=["Ainda estou começando","Até R$10 mil","R$10 mil a R$30 mil","R$30 mil a R$60 mil","R$60 mil a R$100 mil"];function ue(){const[t,l]=x.useState({nome:"",distribuidora:"",email:"",whatsapp:"",cidade:"",faturamento:"",ja_delivery:"",pedidos_dia:""}),[o,n]=x.useState({}),[c,m]=x.useState(!1),[R,E]=x.useState(!1),[T,S]=x.useState(null),[J,z]=x.useState([]),[_,q]=x.useState(!0),[I,B]=x.useState(""),[G,k]=x.useState(!1);x.useEffect(()=>{let a=!0;return q(!0),fetch("https://servicodados.ibge.gov.br/api/v1/localidades/municipios?view=nivelado&orderBy=nome").then(s=>{if(!s.ok)throw new Error(`IBGE ${s.status}`);return s.json()}).then(s=>{if(!a)return;const d=s.map(p=>({nome:p["municipio-nome"]??p.nome??"",uf:p["UF-sigla"]??p.microrregiao?.mesorregiao?.UF?.sigla??""})).filter(p=>p.nome&&p.uf).sort((p,H)=>p.nome.localeCompare(H.nome,"pt-BR"));z(d),q(!1)}).catch(s=>{a&&(console.error("[IBGE] failed to load cities",s),q(!1))}),()=>{a=!1}},[]);const P=a=>a.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),F=P(I.trim()),L=F.length>=3?J.filter(a=>P(`${a.nome} ${a.uf}`).includes(F)).slice(0,30):[];function u(a,s){l(d=>({...d,[a]:s})),n(d=>({...d,[a]:void 0}))}function V(a){const s=a.replace(/\D/g,"").slice(0,11);return s.length<=2?s:s.length<=7?`(${s.slice(0,2)}) ${s.slice(2)}`:`(${s.slice(0,2)}) ${s.slice(2,7)}-${s.slice(7)}`}function M(a,s){switch(a){case"nome":return s.nome.trim()?void 0:"Informe seu nome";case"distribuidora":return s.distribuidora.trim()?void 0:"Informe a distribuidora";case"email":return s.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s.email)?void 0:"E-mail inválido":"Informe seu e-mail";case"whatsapp":{const d=s.whatsapp.replace(/\D/g,"");return d?d.length<10||d.length>11?"WhatsApp inválido":void 0:"Informe seu WhatsApp"}case"cidade":return s.cidade.trim()?void 0:"Selecione sua cidade na lista";case"faturamento":return s.faturamento?void 0:"Selecione uma opção";case"ja_delivery":return s.ja_delivery?void 0:"Selecione uma opção";case"pedidos_dia":return s.ja_delivery==="Sim"&&!s.pedidos_dia.trim()?"Informe a média":void 0;default:return}}function b(a){n(s=>({...s,[a]:M(a,t)}))}function W(){const a=["nome","distribuidora","email","whatsapp","cidade","faturamento","ja_delivery","pedidos_dia"],s={};return a.forEach(d=>{const p=M(d,t);p&&(s[d]=p)}),n(s),Object.keys(s).length>0&&requestAnimationFrame(()=>{const d=document.querySelector(".licpdx-field-error input, .licpdx-field-error select");d?.focus(),d?.scrollIntoView({behavior:"smooth",block:"center"})}),Object.keys(s).length===0}async function U(a){if(a.preventDefault(),!W()||c)return;m(!0),S(null);const s={name:t.nome.trim(),company:t.distribuidora.trim(),email:t.email.trim(),phone:t.whatsapp.trim(),city:t.cidade.trim(),revenue_range:t.faturamento,has_delivery:t.ja_delivery,orders_per_day:t.ja_delivery==="Sim"?t.pedidos_dia:"",conversion_identifier:"Licenciamento Jão Delivery"};try{if(!(await fetch(Y,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})).ok){S("Não conseguimos enviar agora. Tente novamente em alguns instantes."),m(!1);return}}catch(d){console.error("[Pluga] submit failed",d),S("Não conseguimos enviar agora. Tente novamente em alguns instantes."),m(!1);return}try{const d=window.fbq;typeof d=="function"&&d("track","Lead",{content_name:"Licenciamento Jão Delivery",content_category:"Licenciado"})}catch(d){console.error("[Pixel] failed to fire Lead",d)}m(!1),E(!0)}const g="licpdx-input w-full rounded-xl px-4 py-3 text-[15px] font-medium text-white placeholder:text-white/45 outline-none",j={backgroundColor:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.18)"};
1return R?e.jsxs("div",{className:"flex min-h-[460px] flex-col items-center justify-center text-center",children:[e.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full text-xl",style:{border:`1.5px solid ${r}`,color:r},children:"✓"}),e.jsx("h3",{className:"mt-6 text-xl font-bold",children:"Cadastro recebido"}),e.jsx("p",{className:"mt-3 max-w-sm text-base leading-relaxed text-white/75",children:"Recebemos seu cadastro. Em breve nossa equipe vai entrar em contato."})]}):e.jsxs("form",{onSubmit:U,className:"space-y-4",noValidate:!0,children:[e.jsxs("div",{className:"mb-5",children:[e.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-[10px] font-bold tracking-[0.2em]",style:{border:`1px solid ${r}`,color:r,backgroundColor:y},children:"APLICAR PARA LICENÇA"}),e.jsx("h3",{className:"mt-4 text-xl font-bold leading-snug md:text-2xl",children:"Garanta sua cidade"}),e.jsx("p",{className:"mt-2 text-sm text-white/55",children:"Resposta de um consultor em até 24h."})]}),e.jsx(f,{label:"Nome",error:o.nome,children:e.jsx("input",{type:"text",value:t.nome,onChange:a=>u("nome",a.target.value),onBlur:()=>b("nome"),placeholder:"Seu nome",maxLength:120,className:g,style:j})}),e.jsx(f,{label:"Nome da distribuidora",error:o.distribuidora,children:e.jsx("input",{type:"text",value:t.distribuidora,onChange:a=>u("distribuidora",a.target.value),onBlur:()=>b("distribuidora"),placeholder:"Razão social ou nome fantasia",maxLength:150,className:g,style:j})}),e.jsx(f,{label:"E-mail",error:o.email,children:e.jsx("input",{type:"email",value:t.email,onChange:a=>u("email",a.target.value),onBlur:()=>b("email"),placeholder:"[email protected]",maxLength:150,className:g,style:j})}),e.jsx(f,{label:"WhatsApp",error:o.whatsapp,children:e.jsx("input",{type:"tel",inputMode:"tel",value:t.whatsapp,onChange:a=>u("whatsapp",V(a.target.value)),onBlur:()=>b("whatsapp"),placeholder:"(11) 99999-9999",className:g,style:j})}),e.jsx(f,{label:"Cidade",error:o.cidade,children:e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",value:I,onChange:a=>{const s=a.target.value;B(s),u("cidade",""),k(!0)},onFocus:()=>k(!0),onBlur:()=>{setTimeout(()=>k(!1),180),b("cidade")},placeholder:_?"Carregando cidades…":"Qual a sua cidade?",autoComplete:"off",disabled:_,className:g,style:j}),t.cidade&&e.jsx("span",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-xs font-bold",style:{color:r},"aria-hidden":!0,children:"✓"}),G&&F.length>=3&&!_&&L.length>0&&e.jsx("div",{className:"absolute z-20 mt-1 w-full overflow-hidden rounded-xl shadow-xl",style:{backgroundColor:N,border:`1px solid ${h}`},children:e.jsx("ul",{className:"max-h-60 overflow-auto py-1 text-sm",children:L.map(a=>{const s=`${a.nome}/${a.uf}`;return e.jsx("li",{children:e.jsxs("button",{type:"button",onMouseDown:d=>d.preventDefault(),onClick:()=>{u("cidade",s),B(s),k(!1)},className:"block w-full px-4 py-2 text-left text-white/85 hover:bg-white/5",children:[e.jsx("span",{className:"font-semibold text-white",children:a.nome}),e.jsxs("span",{className:"ml-1 text-white/55",children:["/ ",a.uf]})]})},`${a.nome}-${a.uf}`)})})})]})}),e.jsx(f,{label:"Faixa de faturamento",error:o.faturamento,children:e.jsxs("select",{value:t.faturamento,onChange:a=>u("faturamento",a.target.value),onBlur:()=>b("faturamento"),className:g,style:j,children:[e.jsx("option",{value:"",style:{backgroundColor:N},children:"Selecione…"}),pe.map(a=>e.jsx("option",{value:a,style:{backgroundColor:N},children:a},a))]})}),e.jsx(f,{label:"Já trabalha com delivery?",error:o.ja_delivery,children:e.jsx("div",{className:"flex gap-3",children:["Sim","Não"].map(a=>{const s=t.ja_delivery===a;return e.jsxs("label",{className:"flex flex-1 cursor-pointer items-center gap-3 rounded-xl px-4 py-3 text-sm transition",style:{border:`1px solid ${s?r:h}`,backgroundColor:s?y:"transparent",color:"#fff"},children:[e.jsx("input",{type:"checkbox",checked:s,onChange:()=>u("ja_delivery",s?"":a),className:"h-4 w-4 cursor-pointer accent-current",style:{accentColor:r}}),e.jsx("span",{className:"font-semibold",children:a})]},a)})})}),t.ja_delivery==="Sim"&&e.jsx(f,{label:"Quantos pedidos por dia, em média?",error:o.pedidos_dia,children:e.jsx("input",{type:"number",min:0,value:t.pedidos_dia,onChange:a=>u("pedidos_dia",a.target.value),onBlur:()=>b("pedidos_dia"),placeholder:"Ex.: 45",className:g,style:j})}),T&&e.jsx("p",{className:"rounded-lg px-3 py-2 text-center text-xs",style:{backgroundColor:"rgba(239,68,68,0.1)",color:"#fca5a5",border:"1px solid rgba(239,68,68,0.3)"},children:T}
1),e.jsx("button",{type:"submit",disabled:c,className:"licpdx-btn mt-2 w-full rounded-xl px-5 py-4 text-base font-bold disabled:opacity-60",children:c?"Enviando…":"Falar com especialista"}),e.jsx("p",{className:"text-center text-[11px] text-white/45",children:"Seus dados são usados apenas para contato comercial."})]})}function f({label:t,error:l,children:o}){return e.jsxs("label",{className:`block ${l?"licpdx-field-error licpdx-field-shake":""}`,children:[e.jsx("span",{className:"licpdx-field-label mb-2 block text-[11px] font-bold uppercase tracking-[0.12em] text-white/85",children:t}),o,l&&e.jsxs("span",{className:"mt-1.5 flex items-center gap-1.5 text-xs font-medium text-red-300",children:[e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),l]})]})}function he(){return e.jsx("footer",{className:"border-t py-12",style:{borderColor:h,backgroundColor:A},children:e.jsxs("div",{className:"mx-auto max-w-4xl px-5 md:px-10",children:[e.jsxs("p",{className:"text-center text-xs leading-relaxed text-white/55 md:text-sm",children:[e.jsx("span",{className:"font-semibold text-white/75",children:"Aviso Legal:"}),' "Nenhuma informação contida neste produto deve ser interpretada como uma afirmação da obtenção de resultados. Qualquer referência ao desempenho passado ou potencial de uma estratégia abordada no conteúdo não é, e não deve ser interpretada como uma recomendação ou como garantia de qualquer resultado específico."']}),e.jsxs("div",{className:"mt-8 space-y-1 text-center text-xs text-white/65 md:text-sm",children:[e.jsxs("p",{children:["CNPJ: ",e.jsx("span",{className:"font-semibold text-white",children:"44.694.902/0001-40"})]}),e.jsxs("p",{children:["Razão Social:"," ",e.jsx("span",{className:"font-semibold text-white",children:"JAO DELIVERY TECNOLOGIA E SOFTWARE LTDA."})]})]}),e.jsxs("div",{className:"mt-8 flex flex-col items-center gap-3",children:[e.jsx("img",{src:Q,alt:"JÃO",className:"h-7 w-auto opacity-80"}),e.jsxs("p",{className:"text-center text-[11px] text-white/45",children:["Todos os direitos reservados a Jão Delivery de Bebidas 2019 - ",new Date().getFullYear()]})]})]})})}export{be as component};

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.