PageSourceSearch

https://festivalscdancaprojeto.lovable.app/assets/_site.premiacoes-DapLoPDB.js

js festivalscdancaprojeto.lovable.app collected 2026-10-03 03:32:09 UTC 8,747 bytes, 1 lines download raw bytes

1import{s as h,j as e,r as b}from"./index-BuD4p6Xq.js";import{u as j}from"./useQuery-CAaXNS-c.js";import{C as v,P as S,a as k}from"./premios-Ib0LhwND.js";import{S as _,s as f}from"./sessoes-DAEpDqlg.js";import{S as w}from"./sparkles-BUiUxW87.js";import{c as O}from"./createLucideIcon-CvSpSiT9.js";import{A as E}from"./award-bOH_CuRo.js";import{S as C}from"./star-CYlGp8GE.js";import{T as N}from"./trophy-fRsyBPiY.js";const P=[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]],M=O("medal",P),R={Crown:v,Trophy:N,Star:C,Award:E,Medal:M,Sparkles:w};function g(l){return l.coreografia_nome??l.nome_livre??l.grupo_nome??"—"}function I(){return j({queryKey:["premiados-publicos"],queryFn:async()=>{const[{data:l,error:o},p]=await Promise.all([h.from("premiados").select("*").eq("publicado",!0).order("sort_order"),h.from("site_config").select("value").eq("key","programacao_site_lock").maybeSingle()]);if(o)throw o;const c=new Map;for(const r of p.data?.value?.sessoes??[])for(const s of r?.linhas??[])s?.tipo==="cor"&&s.key&&c.set(String(s.key),s.numero??null);return(l??[]).map(r=>({...r,programacao_numero:r.coreografia_id?c.get(String(r.coreografia_id))??null:null,coreografia_sessao:r.sessao}))}})}function q({premios:l}){return l.length?e.jsxs("div",{className:"space-y-12",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-[0.3em] text-gold mb-3",children:"Campeões"}),e.jsx("h2",{className:"display text-3xl md:text-4xl text-foreground",style:{fontStyle:"normal"},children:"VENCEDORES E INDICADOS"})]}),S.map(o=>{const c=k.filter(r=>r.grupo===o).map(r=>({def:r,itens:l.filter(s=>s.premio_key===r.key)})).filter(r=>r.itens.length>0);return c.length?e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"border-l-2 border-gold pl-4 text-[11px] uppercase tracking-[0.25em] text-gold",children:o}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:c.map(({def:r,itens:s})=>{const a=s.filter(t=>t.papel==="vencedor"),d=s.filter(t=>t.papel!=="vencedor");return e.jsxs("div",{className:"bg-card/40 border border-border rounded-2xl p-6",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:r.label}),a.map(t=>e.jsxs("div",{className:"mt-3 flex items-start gap-2",children:[e.jsx(v,{className:"h-4 w-4 text-gold mt-1 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"display text-xl text-gradient-gold",style:{fontStyle:"normal"},children:g(t)}
1),t.grupo_nome&&t.grupo_nome!==g(t)&&e.jsx("div",{className:"text-xs text-muted-foreground",children:t.grupo_nome})]})]},t.id)),d.length>0&&e.jsxs("div",{className:"mt-4 pt-3 border-t border-border/60",children:[e.jsx("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground mb-2",children:"Indicados"}),e.jsx("ul",{className:"space-y-1",children:d.map(t=>e.jsxs("li",{className:"text-sm text-foreground/90",children:[g(t),t.grupo_nome&&t.grupo_nome!==g(t)&&e.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.grupo_nome]})]},t.id))})]})]},r.key)})})]},o):null})]}):null}function A({colocacoes:l}){const o=new Map;for(const a of l){const d=String(a.coreografia_sessao??a.sessao??"geral");o.set(d,[...o.get(d)??[],a])}const p=_.map(a=>a.value),c=Array.from(o.keys()).sort((a,d)=>{const t=p.indexOf(a),i=p.indexOf(d);return(t<0?99:t)-(i<0?99:i)}),[r,s]=b.useState(null);return l.length?e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-[0.3em] text-gold mb-3",children:"Resultados"}),e.jsx("h2",{className:"display text-3xl md:text-4xl text-foreground",style:{fontStyle:"normal"},children:"COLOCAÇÕES POR SESSÃO"}),e.jsx("div",{className:"flex flex-wrap gap-2 mt-6",children:c.map(a=>{const d=a===r;return e.jsx("button",{type:"button",onClick:()=>s(d?null:a),className:`px-4 py-2 rounded-full border text-[11px] uppercase tracking-[0.2em] transition-colors ${d?"border-gold text-gold bg-gold/10":"border-border text-muted-foreground hover:text-foreground"}`,children:f(a)},a)})})]}),r&&c.includes(r)&&e.jsxs("div",{className:"space-y-4 animate-in fade-in slide-in-from-top-2 duration-300",children:[e.jsxs("div",{className:"border-l-2 border-gold pl-4 text-[11px] uppercase tracking-[0.25em] text-gold",children:["Colocações · ",f(r)]}),(()=>{const a=o.get(r)??[],d=new Map;for(const i of a){const m=String(i.titulo??"").split(" — ")[0]??"Geral";d.set(m,[...d.get(m)??[],i])}const t=Array.from(d.entries()).map(([i,m])=>{const u=m.map(n=>n.programacao_numero).filter(n=>n!=null).sort((n,x)=>n-x)[0];return{categoria:i,cols:m,ordem:u??1/0}}).sort((i,m)=>i.ordem-m.ordem);return e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:t.map(({categoria:i,cols:m})=>{const u=new Map;for(const n of m){const x=String(n.titulo??"").match(/(\d+)º Lugar/),y=x?Number(x[1]):99;u.set(y,n)}return e.jsxs("div",{className:"bg-card/40 border border-border rounded-2xl px-5 py-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground mb-3",children:i}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[1,2,3].map(n=>{const x=u.get(n);return e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-[10px] uppercase tracking-[0.2em] text-gold mb-1",children:[n,"º"]}),x?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-sm font-medium leading-tight",children:g(x)}),x.grupo_nome&&e.jsx("div",{className:"text-[10px] text-muted-foreground mt-0.5",children:x.grupo_nome})]}):e.jsx("div",{className:"text-sm text-muted-foreground/50",children:"—"})]},n)})})]},i)})})})()]})]}):null}function $(){const{data:l}=I(),{data:o}=j({queryKey:["premiacoes"],queryFn:async()=>(await h.from("premiacoes").select("*").order("sort_order")).data??[]}),p=l??[],c=p.filter(s=>s.tipo!=="colocacao"),r=p.filter(s=>s.tipo==="colocacao");return e.jsx("div",{className:"px-6 lg:px-12 py-24",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsx("div",{className:"text-xs uppercase tracking-[0.3em] text-gold mb-4",children:"Premiações"}),e.jsx("h1",{className:"display text-gradient-gold text-5xl md:text-7xl",children:"TROFÉUS & RECONHECIMENTOS"}),e.jsx("p",{className:"mt-6 text-muted-foreground max-w-2xl text-lg",children:"Celebramos cada apresentação com reconhecimentos individuais e coletivos, valorizando técnica, criatividade e a entrega artística de cada grupo."}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 lg:gap-12 mt-14 items-start",children:[e.jsx(q,{premios:c}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase tracking-[0.3em] text-gold mb-3",children:"Troféus"}),e.jsx("h2",{className:"display text-3xl md:text-4xl text-foreground",style:{fontStyle:"normal"},children:"DESCRIÇÃO E VALORES"})]}),e.jsxs("div",{className:"hidden md:grid grid-cols-[1fr_auto] gap-6 px-7 text-[10px] uppercase tracking-[0.25em] text-muted-foreground",children:[e.jsx("div",{children:"Descrição"}),e.jsx("div",{className:"text-right w-[180px] max-w-[40%]",children:"Valores"})]}),(o??[]).map(s=>{const a=R[s.icon]??N;return e.jsxs("div",{className:"bg-card/40 border border-border rounded-2xl p-7 hover:border-gold/60 transition group flex gap-6 items-start",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"h-11 w-11 rounded-full bg-gold/10 border border-gold/30 flex items-center justify-center text-gold mb-5 group-hover:bg-gold/20 transition",children:e.jsx(a,{className:"h-5 w-5"})}),e.jsx("h3",{className:"display text-2xl text-foreground mb-3",style:{fontStyle:"normal"},children:s.title}),s.description&&e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed whitespace-pre-line",children:s.description})]}),s.prize_value&&e.jsxs("div",{className:"shrink-0 text-right pl-5 border-l border-border/60 self-center w-[180px] max-w-[40%]",children:[e.jsx("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground md:hidden",children:"Premiação"}),e.jsx("div",{className:`display text-gradient-gold mt-2 break-words ${s.prize_value.length>14?"text-lg md:text-xl":"text-2xl md:text-3xl"}`,style:{fontStyle:"normal"},children:s.prize_value})]})]},s.id)}),(o??[]).length===0&&e.jsx("p",{className:"text-muted-foreground",children:"As premiações serão divulgadas em breve."})]})]}),e.jsx("div",{className:"mt-16",children:e.jsx(A,{colocacoes:r})})]})})}export{$ 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.