1import{c as j,p as N,q as v,r as w,j as e,S as y,H as D,D as k,L as S,g as p,t as P,h as C,F as E,i as L}from"./index-DpeRiJon.js";import{P as I}from"./ProductPrice-Yw87jzlN.js";import{S as z}from"./shopping-cart-DKXLKyW6.js";const A="https://d353vpubtzx8k9.cloudfront.net/imagens/passaportes-capa-desk.jpg",M="https://d353vpubtzx8k9.cloudfront.net/imagens/passaportes-capa-mob.jpg",U=()=>{const{selectedDate:r,setVisitDate:u}=j(),h=r?N(r):"data não selecionada",l=r?{dateStr:r}:null,g=r,{data:o}=v("passports",g),m=[301021,300538,267907,298646,299283,257979,257980,263391,297854,298248,301671,17336,238947,268339,268340],b=w.useMemo(()=>{if(!o)return[];const c=(o.data??o.items??o.results??o.products??[]).filter(a=>{const t=Number(a.code??a.id);return m.includes(t)}),d=new Map;return m.forEach((a,t)=>d.set(a,t)),c.sort((a,t)=>{const n=Number(a.code??a.id),i=Number(t.code??t.id);return(d.get(n)??999)-(d.get(i)??999)}),c},[o]);return e.jsxs(e.Fragment,{children:[e.jsx(y,{title:"Passaportes Beto Carrero World â Ingressos com Melhor Preço",description:"Compre online seu passaporte para o Beto Carrero World. Escolha a data, ganhe descontos e garanta sua entrada.",path:"/passaportes"}),e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(D,{}),e.jsx("section",{className:"relative w-full",children:e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:M,alt:"Passaportes para 1 ou 2 dias",className:"w-full h-[180px] object-cover md:hidden"}),e.jsx("img",{src:A,alt:"Passaportes para 1 ou 2 dias",className:"hidden md:block w-full h-[260px] object-cover"}),e.jsx("h1",{className:"absolute bottom-3 left-4 right-4 text-primary-foreground font-extrabold text-lg md:text-2xl drop-shadow",children:"Passaportes para 1 ou 2 dias"})]})}),e.jsx("main",{className:"flex-1",children:e.jsx("div",{className:"container py-6 md:py-10",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[e.jsx("div",{className:"md:col-span-1 min-w-0",children:e.jsx("div",{className:"md:sticky md:top-20 md:max-h-[calc(100vh-6rem)] md:overflow-y-auto space-y-6 pr-1",children:e.jsxs("section",{"aria-labelledby":"cal-title",children:[e.jsx("h2",{id:"cal-title",className:"font-extrabold text-foreground text-lg mb-4",children:"Escolha a data da visita"}),e.jsx(k,{value:r,onChange:u,catalogType:"passports"})]})})}),e.jsx("div",{className:"md:col-span-2 min-w-0",children:e.jsxs("section",{"aria-labelledby":"pass-title",className:"mb-10",children:[e.jsx("h2",{id:"pass-title",className:"font-extrabold text-foreground text-lg mb-4",children:"Passaportes disponÃveis"}),e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-3",children:b.map((s,c)=>{const d=s.code??s.id??`api-${c}`,a=s.name??s.title??"Passaporte",t=s.imageThumb??s.imageUrl??s.image??"",n=s.price&&typeof s.price=="object"?s.price:null,i=s.subName??"",x=s.shortDescription??"",f=String(a).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")||"passaporte";return e.jsxs(S,{to:`/passaporte/${f}/${encodeURIComponent(String(d))}`,className:"rounded-2xl bg-card shadow-sm border border-border overflow-hidden hover:shadow-md transition-shadow flex flex-col h-full",children:[e.jsxs("div",{className:"flex items-stretch gap-3",children:[e.jsx("div",{className:"w-24 h-24 flex-shrink-0 relative",children:t?e.jsx("img",{src:t,alt:a,className:"w-full h-full object-cover",loading:"lazy"}):e.jsx("div",{className:"w-full h-full bg-muted"})}),e.jsxs("div",{className:"min-w-0 flex-1 self-center pr-3 py-2",children:[e.jsx("h3",{className:"font-extrabold text-foreground text-base leading-tight",children:a}),i&&e.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:i})]})]}),e.jsxs("div",{className:"relative h-0",children:[e.jsx("div",{className:"absolute -left-2 -top-2 w-4 h-4 rounded-full bg-background"}),e.jsx("div",{className:"absolute -right-2 -top-2 w-4 h-4 rounded-full bg-background"}),e.jsx("div",{className:"absolute inset-x-3 -top-px border-t border-dashed border-border"})]}),e.jsx("div",{className:"px-4 pt-3 pb-3 flex flex-col flex-1",children:l?e.jsxs("div",{className:"flex items-center justify-between gap-3 mt-auto",children:[e.jsxs("div",{children:[x&&e.jsx("div",{className:"text-xs text-muted-foreground leading-snug mb-1",dangerouslySetInnerHTML:{__html:x}}),n?e.jsx(I,{price:n}):e.jsx("p",{className:"text-foreground text-base mt-1",children:"Selecione uma data..."})]}),e.jsx("span",{"aria-hidden":"true",className:"w-7 h-7 rounded-full border-2 border-accent text-foreground flex items-center justify-center hover:bg-accent/10 flex-shrink-0",children:e.jsx(P,{className:"w-3 h-3"})})]}):e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mt-auto",children:[e.jsx(p,{className:"w-4 h-4"}),"data não selecionada"]}
1)})]},`api-${d}`)})})]})})]})})}),e.jsx(C,{}),e.jsx(E,{}),e.jsx(L,{}),e.jsxs("div",{className:"md:hidden fixed bottom-0 inset-x-0 z-40 bg-card border-t border-border shadow-[0_-4px_16px_hsl(var(--foreground)/0.08)]",children:[e.jsxs("div",{className:"px-4 pt-3 pb-2 flex items-center gap-2 border-b border-border/60",children:[e.jsx(p,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:`text-sm ${l?"text-foreground font-semibold":"text-muted-foreground"}`,children:l?h:"escolha a data da visita"})]}),e.jsxs("div",{className:"px-4 py-3 flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"text-xs text-muted-foreground leading-tight",children:["Adicione itens",e.jsx("br",{}),"no carrinho"]}),e.jsxs("button",{type:"button",disabled:!l,onClick:()=>{const s=document.getElementById("pass-title");s==null||s.scrollIntoView({behavior:"smooth",block:"start"})},className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-muted text-muted-foreground font-bold text-sm disabled:opacity-70 enabled:bg-accent enabled:text-accent-foreground transition-colors",children:[e.jsx(z,{className:"w-4 h-4"}),"Adicionar"]})]})]}),e.jsx("div",{className:"md:hidden h-28","aria-hidden":"true"})]})]})};export{U as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.