PageSourceSearch

https://amazoniaticket.lovable.app/assets/PDVMasterEventos-DVT6Y013.js

js amazoniaticket.lovable.app collected 2026-10-03 03:22:32 UTC 3,934 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PDVMasterCaixa-B_Spy2Ar.js","assets/index-Cokc-GQZ.js","assets/index-DBlWhDbd.css","assets/pdvMasterSession-DBJzWTBY.js","assets/useThermalPrinter-3JDQYXPx.js","assets/loteFilters-Baa6BJ-2.js","assets/TerminalChargeDialog-MiHQ_O_S.js","assets/dialog-CzTGhqT3.js","assets/index-CbmzzImk.js","assets/Combination-DzednwTt.js","assets/masks-DtSNhuR_.js","assets/pdvSession-CG4F53pd.js","assets/datetime-CyBskthS.js","assets/circle-check-CVsvZdOY.js","assets/loader-circle-DB1BNH8B.js","assets/printer-Hi--7TYz.js","assets/mail-CVBREMIu.js","assets/message-circle-DVysKLXc.js","assets/arrow-left-DHeiQWhd.js","assets/credit-card-QiC-QRE1.js","assets/circle-x-jbrflg5z.js","assets/triangle-alert-hPX5BsVb.js","assets/PdvSeatPickerDialog-BEwmee6X.js","assets/SeatSelector-B3gUSjtw.js","assets/badge-ByZJNgBF.js","assets/file-code-BP-aug_p.js","assets/trash-2-mL6vrI-E.js","assets/gift-B9-qo-jM.js"])))=>i.map(i=>d[i]);
2import{z as v,g as h,r as i,_ as g,s as f,j as e,B as j,w as N,C as _}from"./index-Cokc-GQZ.js";import{g as b,c}from"./pdvMasterSession-DBJzWTBY.js";import{C as w}from"./card-cM6ELIx2.js";import{L as y}from"./loader-circle-DB1BNH8B.js";import{M as C}from"./map-pin-BJb4zfzX.js";function D(){const{token:t}=v(),r=h(),[o,d]=i.useState([]),[a,m]=i.useState(null),[l,x]=i.useState(!0);i.useEffect(()=>{if(!t)return;g(()=>import("./PDVMasterCaixa-B_Spy2Ar.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])).catch(()=>{});const s=b(t);if(!s){r(`/pdv/m/${t}`);return}f.rpc("validate_pdv_master_login",{_token:t,_password:s.password}).then(({data:u})=>{const n=u;if(!(n!=null&&n.ok)){c(t),r(`/pdv/m/${t}`);return}d(n.eventos||[]),m(n.link),x(!1)})},[t,r]);const p=()=>{t&&c(t),r(`/pdv/m/${t}`)};return l?e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx(y,{className:"h-8 w-8 animate-spin text-primary"})}):e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs("header",{className:"bg-primary text-primary-foreground px-3 py-2 sticky top-0 z-10 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"font-bold text-sm",children:(a==null?void 0:a.nome)||"Caixa Mestre"}),(a==null?void 0:a.nome_operador)&&e.jsx("p",{className:"text-[11px] opacity-90",children:a.nome_operador})]}),e.jsx(j,{size:"icon",variant:"ghost",className:"text-primary-foreground",onClick:p,children:e.jsx(N,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"p-3 space-y-3",children:[e.jsx("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Selecione o evento para vender"}),o.length===0&&e.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:"Nenhum evento ativo neste caixa mestre."}),e.jsx("div",{className:"grid gap-2",children:o.map(s=>e.jsx(w,{className:"p-3 cursor-pointer hover:border-primary active:scale-[0.98] transition",onClick:()=>r(`/pdv/m/${t}/caixa/${s.event.id}`),children:e.jsxs("div",{className:"flex items-center gap-3",children:[s.event.card_image_url||s.event.banner_url?e.jsx("img",{src:s.event.card_image_url||s.event.banner_url,alt:"",className:"w-16 h-16 rounded object-cover"}):e.jsx("div",{className:"w-16 h-16 rounded bg-muted"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"font-bold text-sm leading-tight",children:s.event.titulo}),e.jsxs("div",{className:"text-[11px] text-muted-foreground flex items-center gap-1 mt-0.5",children:[e.jsx(_,{className:"h-3 w-3"})," ",new Date(s.event.data_inicio).toLocaleDateString("pt-BR")]}),e.jsxs("div",{className:"text-[11px] text-muted-foreground flex items-center gap-1",children:[e.jsx(C,{className:"h-3 w-3"})," ",s.event.local_cidade]}),e.jsxs("div",{className:"text-[10px] text-primary mt-0.5",children:["PDV: ",s.pdv.nome]})]})]})},s.event.id))})]})]})}export{D 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.