1import{c as k,j as e,a as N,L as C,b4 as S,aq as $,r as o,l as L,h as M,A as O,s as z,b5 as J,H as A,a1 as s,a2 as D,a3 as E,F as P}from"./index-BvqW7u43.js";import{H as W}from"./Hero-CI5Jl91k.js";import{HowItWorks as I}from"./HowItWorks-Cedov_RJ.js";import{CouponBanner as R}from"./CouponBanner-CdANO3oI.js";import{Benefits as H}from"./Benefits-Dj_njDPQ.js";import{B as q,W as B,C as T}from"./Categories-DUPa_bgp.js";import{Testimonials as U}from"./Testimonials-BmFXPo6W.js";import{DownloadCTA as F}from"./DownloadCTA-CL8cT1sp.js";import{PremiaJao as K}from"./PremiaJao-YfUm5IjT.js";import{m as G,o as Y,v as Q}from"./whatsapp-CXtauyUl.js";import{C as v}from"./chevron-up-BcZeCPIi.js";import{M as V}from"./map-pin-D7BFsQDi.js";import"./smartphone-Bab5U8Kn.js";import"./tag-HZ1WtU5b.js";import"./lock-G_GdVT4r.js";import"./circle-alert-Cj9NoGnP.js";import"./zap-B2VJNg7W.js";import"./gift-B01NPn6W.js";import"./trophy-DD_Lci8c.js";import"./calendar-D-5kbBq8.js";import"./users-DBi9ubsj.js";const Z=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],X=k("party-popper",Z),ee=[{title:"Cervejas e Marcas",icon:q,slugs:["cerveja-delivery","cerveja-artesanal-delivery","caixa-de-cerveja","fardo-de-cerveja","long-neck-delivery","lata-de-cerveja-delivery","heineken-delivery","budweiser-delivery","brahma-delivery","skol-delivery","corona-delivery","stella-artois-delivery","original-delivery","spaten-delivery"]},{title:"Destilados",icon:B,slugs:["whisky-delivery","vodka-delivery","gin-delivery","destilados-delivery","pinga-delivery","jack-daniels-delivery","johnnie-walker-delivery","ballantines-delivery","absolut-delivery","smirnoff-delivery","askov-delivery"]},{title:"Para sua ocasião",icon:X,slugs:["bebidas-para-churrasco","bebidas-para-festa","drink-delivery","kit-de-bebidas-delivery","combo-de-bebidas","barril-de-cerveja-delivery","ice-delivery","espumante-delivery","vinho-delivery"]},{title:"Aberto agora",icon:N,slugs:["pedir-bebida-agora","bebida-em-casa","entrega-de-bebida-rapida","cerveja-gelada-agora","bebida-delivery-agora","onde-comprar-cerveja","delivery-aberto-agora","distribuidora-aberta","conveniencia-aberta","distribuidora-perto"]}];function ae(a){return a.map(t=>S.find(r=>r.slug===t)).filter(t=>!!t)}function te({cityName:a,citySlug:t}){return e.jsx("section",{className:"py-20 bg-muted/30",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-5",children:[e.jsxs("h2",{className:"text-3xl sm:text-4xl font-black text-foreground text-balance",children:["O que você pode pedir em ",e.jsx("span",{className:"text-primary",children:a})]}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:"Tudo que rola no Jão Delivery na sua cidade, organizado pra você achar rápido."}),e.jsx("div",{className:"mt-10 grid gap-6 lg:grid-cols-2",children:ee.map(({title:r,icon:l,slugs:p})=>{const m=ae(p);return m.length===0?null:e.jsxs("div",{className:"rounded-2xl border border-border bg-card p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[e.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-xl bg-primary/15 text-primary",children:e.jsx(l,{className:"h-5 w-5"})}),e.jsx("h3",{className:"text-lg font-black text-foreground",children:r})]}),e.jsx("ul",{className:"flex flex-wrap gap-2",children:m.map(n=>e.jsx("li",{children:e.jsxs(C,{to:"/$citySlug/$keywordSlug",params:{citySlug:t,keywordSlug:n.slug},className:"inline-flex items-center rounded-full border border-border bg-background px-3 py-1.5 text-xs font-semibold text-foreground hover:border-primary hover:text-primary hover:bg-primary/5 transition-colors",children:[n.label," em ",a]})},n.slug))})]},r)})})]})})}const re="jao_utm_v1";function se(a,t,r){if(!(typeof window>"u"))try{const l=r?`${t}/${r}`:t;sessionStorage.setItem(re,JSON.stringify({utm_source:"site-cidade",utm_medium:"organic",utm_campaign:`cidade-nao-atende-${a}
1`.slice(0,200),utm_content:a.slice(0,200),utm_term:l.slice(0,200),referrer:document.referrer&&!document.referrer.includes(window.location.hostname)?document.referrer.slice(0,500):null}))}catch{}}function ie({cityName:a,citySlug:t,state:r}){const l=$(),[p,m]=o.useState(!0),[n,h]=o.useState(!1),[d,y]=o.useState(""),[u,j]=o.useState(""),[b,x]=o.useState(null),[g,w]=o.useState(!1);o.useEffect(()=>{if(sessionStorage.getItem(`jao_unavail_dismiss_${t}`)==="1"){m(!1);return}sessionStorage.getItem(`jao_unavail_min_${t}`)==="1"&&h(!0)},[t]);function f(){const i=!n;h(i);try{sessionStorage.setItem(`jao_unavail_min_${t}`,i?"1":"0")}catch{}}async function _(i){if(i.preventDefault(),x(null),!d.trim()||d.trim().length<2){x("Informe seu nome");return}const c=Q(u);if(!c.ok){x(c.reason);return}w(!0),se(t,a,r);try{await z.from("licenciamento_partial").upsert({whatsapp:c.normalized,nome:d.trim(),cidade:r?`${a}/${r}`:a,last_step:"city_unavailable_modal",source_path:typeof window<"u"?window.location.pathname:`/${t}`,utm_source:"site-cidade",utm_medium:"organic",utm_campaign:`cidade-nao-atende-${t}`.slice(0,200),utm_content:t.slice(0,200),utm_term:(r?`${a}/${r}`:a).slice(0,200)},{onConflict:"whatsapp"})}catch{}l({to:"/licenciamento/candidatura",search:{w:c.normalized,n:d.trim(),cs:t,cn:a,uf:r??void 0,utm_source:"site-oficial",utm_medium:"formulario-flutuante-interesse",utm_campaign:`cidade-${t}`.slice(0,200),utm_content:"cidade-nao-disponivel",utm_term:(r?`${a}/${r}`:a).slice(0,200)}})}return p?n?e.jsxs("button",{type:"button",onClick:f,className:"group fixed bottom-4 right-4 sm:bottom-6 sm:right-6 z-[60] flex items-center gap-2 rounded-full bg-[oklch(0.18_0.04_150)] text-white shadow-2xl pl-4 pr-4 pt-3 pb-4 text-sm font-bold hover:scale-[1.03] active:scale-100 transition-transform overflow-hidden landscape:px-6 landscape:py-4 landscape:text-base isolate","aria-label":"Abrir formulário â Leve o JÃO para sua cidade",children:[e.jsxs("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 rounded-full overflow-hidden -z-10",children:[e.jsx("span",{className:"absolute left-1/2 top-1/2 h-[300%] w-[300%] -translate-x-1/2 -translate-y-1/2 animate-[chipSpin_2.5s_linear_infinite] bg-[conic-gradient(from_0deg,transparent_0%,transparent_70%,oklch(0.85_0.18_150)_85%,oklch(0.95_0.2_150)_92%,oklch(0.85_0.18_150)_99%,transparent_100%)]"}),e.jsx("span",{className:"absolute inset-[2px] rounded-full bg-[oklch(0.18_0.04_150)]"})]}),e.jsx("img",{src:L,alt:"Jão",width:20,height:20,className:"h-5 w-5 object-contain rounded-[2px]",decoding:"async"}),"Leve o JÃO para ",a,e.jsx(v,{className:"h-4 w-4 text-white/80"}),e.jsx("style",{children:"@keyframes chipSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}"})]}):e.jsx("div",{className:"fixed z-[60] left-2 right-2 bottom-2 sm:left-auto sm:right-6 sm:bottom-6 sm:w-[380px] max-w-[calc(100vw-1rem)] box-border",role:"dialog","aria-label":"Leve o JÃO para sua cidade",children:e.jsxs("div",{className:"relative rounded-2xl bg-[oklch(0.18_0.04_150)] border border-primary/30 shadow-2xl overflow-hidden box-border text-white",children:[e.jsx("div",{className:"bg-gradient-to-br from-primary/25 via-primary/10 to-transparent px-4 pt-4 pb-3 sm:px-5 sm:pt-5",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"shrink-0 h-10 w-10 rounded-xl bg-primary/20 text-primary flex items-center justify-center",children:e.jsx(V,{className:"h-5 w-5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-[10px] font-bold tracking-[0.18em] uppercase text-primary mb-1",children:"Ainda não atendemos"}),e.jsxs("h3",{className:"text-base sm:text-lg font-black leading-tight text-white",children:["Leve o JÃO para ",a,r?`/${r}`:""]})]}),e.jsx("button",{type:"button",onClick:f,className:"h-8 w-8 rounded-lg hover:bg-white/10 text-white/70 flex items-center justify-center","aria-label":"Minimizar",children:e.jsx(v,{className:"h-4 w-4 rotate-180"})})]})}),e.jsxs("form",{onSubmit:_,className:"px-4 pb-4 sm:px-5 sm:pb-5 space-y-3",children:[e.jsx("p",{className:"text-xs sm:text-sm text-white/70 leading-relaxed",children:"Seja o licenciado exclusivo da sua cidade. Deixe seu WhatsApp e nosso time entra em contato."}),e.jsx("input",{type:"text",inputMode:"text",autoComplete:"name",value:d,onChange:i=>y(i.target.value),placeholder:"Seu nome",maxLength:80,className:"w-full h-11 px-3 rounded-xl border border-white/15 bg-white/5 text-white placeholder:text-white/40 text-base sm:text-sm focus:outline-none focus:ring-2 focus:ring-primary/40 focu
1s:border-primary/50 box-border"}),e.jsx("input",{type:"tel",inputMode:"numeric",autoComplete:"tel",value:u,onChange:i=>j(G(i.target.value)),placeholder:"(11) 9 9999-9999",maxLength:20,className:"w-full h-11 px-3 rounded-xl border border-white/15 bg-white/5 text-white placeholder:text-white/40 text-base sm:text-sm focus:outline-none focus:ring-2 focus:ring-primary/40 focus:border-primary/50 box-border"}),b&&e.jsx("p",{className:"text-xs text-destructive",children:b}),e.jsx("button",{type:"submit",disabled:g||Y(u).length<11,className:"w-full h-11 rounded-xl bg-primary text-primary-foreground font-bold text-sm flex items-center justify-center gap-2 disabled:opacity-60 hover:brightness-110 transition",children:g?e.jsx(M,{className:"h-4 w-4 animate-spin"}):e.jsxs(e.Fragment,{children:["Quero levar o JÃO ",e.jsx(O,{className:"h-4 w-4"})]})}),e.jsx("p",{className:"text-[10px] text-white/50 text-center leading-tight",children:"Ao continuar você aceita ser contatado pelo time Jão Delivery."})]})]})}):null}function Se(){const{city:a}=J.useLoaderData();return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(A,{citySlug:a.slug,cardapioEnabled:a.cardapio_enabled}),e.jsxs("main",{children:[e.jsx(W,{cityName:a.name,citySlug:a.slug}),e.jsx(s,{children:e.jsx(D,{})}),e.jsx(s,{children:e.jsx(I,{})}),e.jsx(s,{children:e.jsx(E,{citySlug:a.slug})}),e.jsx(s,{children:e.jsx(H,{cityName:a.name})}),e.jsx(s,{children:e.jsx(T,{})}),e.jsx(s,{children:e.jsx(R,{citySlug:a.slug})}),e.jsx(s,{children:e.jsx(K,{citySlug:a.slug})}),e.jsx(s,{children:e.jsx(U,{})}),e.jsx(s,{children:e.jsx(F,{citySlug:a.slug})}),e.jsx(s,{children:e.jsx(te,{cityName:a.name,citySlug:a.slug})})]}),e.jsx(P,{}),a.available===!1&&e.jsx(ie,{cityName:a.name,citySlug:a.slug,state:a.state})]})}export{Se 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.