PageSourceSearch

https://www.mulheresnoecommerce.com.br/assets/Eventos-D7XeSry_.js

js mulheresnoecommerce.com.br collected 2026-10-06 12:44:14 UTC 68,633 bytes, 26 lines download raw bytes

1import{j as e,m as n,A as ee}from"./vendor-motion-C-Vy0dKP.js";import{r as o,L as he}from"./vendor-react-BaAVn3DV.js";import{B as Fe,i as Be,s as Re,a as ze,P as Ze}from"./smartFormHelper-C4XaQMdv.js";import{s as ae,a as fe,C as le,b as _e,u as C,E as et,P as tt,S as at,M as st}from"./index-DrP1MJKL.js";import{C as Ce}from"./checkbox-bFnQ0SnZ.js";import{S as Ee,a as Me,b as $e,c as Ie,d as Pe}from"./select-C_dyDxFr.js";import{S as rt}from"./ShareButton-B1mCAeam.js";import{S as ot}from"./SEOBreadcrumb-CrtYO1oW.js";import{E as Ve,W as we}from"./EventoCommunityPopup-DNWfufwr.js";import{C as de}from"./calendar-7KCwymQ8.js";import{M as se}from"./map-pin-DDIZ4yXD.js";import{U as He}from"./users-DFVmzE1l.js";import{U as ge}from"./users-round-DbCsHzBZ.js";import{A as Se}from"./arrow-right-BhG9TH4Q.js";import{M as We}from"./monitor-T9mPubO9.js";import{B as Ye}from"./building-2-TFHxJLP0.js";import{A as nt}from"./arrow-left-DbI7Hsma.js";import{L as Ge}from"./loader-circle-qqQ0hyKl.js";import{L as De,P as it}from"./plane-HlOggcQL.js";import{C as lt}from"./circle-plus-BIPDDbNp.js";import{S as Qe}from"./search-CVvElzuS.js";import{S as dt}from"./send-Hmcf2IhF.js";import{U as ct}from"./user-CbSKYdZF.js";import{L as ke}from"./lightbulb-B8PjI44O.js";import{i as J,C as mt,a as xt,b as Le,s as ut}from"./calendar-BYaDhsHx.js";import{C as pt}from"./calendar-days-BeNUtm5K.js";import{f as te,p as ce,s as ht}from"./pt-BR-ChTAqQKH.js";import{u as gt}from"./use-mobile-xvz_J_gL.js";import ft from"./MneExperiencesBanner-CSPN6IX_.js";import{G as bt}from"./globe-Cb7WPHFu.js";import{B as vt}from"./bell-BgFfinCp.js";import{F as jt}from"./filter-DXpW-1OB.js";import"./vendor-ui-CQWRReMe.js";import"./vendor-charts-M7m8QV2H.js";import"./vendor-query-CdGXDvSH.js";import"./vendor-supabase-BVsQbp7g.js";import"./chevron-down-BPy8m-D4.js";import"./chevron-up-BC1Er3lP.js";import"./dropdown-menu-BxPVMBN2.js";import"./circle-BHgcgvKr.js";import"./share-2-BB0v7nTW.js";import"./copy-MHu547pn.js";import"./dialog-CmZdQCLD.js";import"./clock-uAjlY3Ff.js";import"./chevron-left-DzYX5UWq.js";import"./IMG_2891.jpeg.asset-7iG4HkdW.js";const Oe={online:{icon:e.jsx(We,{className:"w-3.5 h-3.5"}),label:"Online",gradient:"bg-gradient-verde-agua",badgeGradient:"bg-gradient-verde-agua text-secondary-foreground",bgTint:"bg-sage-soft",hoverBorder:"hover:border-secondary/50",dateBg:"bg-secondary/10 group-hover:bg-secondary/20"},presencial:{icon:e.jsx(Ye,{className:"w-3.5 h-3.5"}),label:"Presencial",gradient:"bg-gradient-laranja",badgeGradient:"bg-gradient-laranja text-primary-foreground",bgTint:"bg-warm-glow",hoverBorder:"hover:border-primary/50",dateBg:"bg-primary/10 group-hover:bg-primary/20"},hibrido:{icon:e.jsx(we,{className:"w-3.5 h-3.5"}),label:"Híbrido",gradient:"bg-gradient-rosa",badgeGradient:"bg-gradient-rosa text-accent-foreground",bgTint:"bg-rose-soft",hoverBorder:"hover:border-accent/50",dateBg:"bg-accent/10 group-hover:bg-accent/20"}},Te=a=>new Date(a).toLocaleDateString("pt-BR",{day:"numeric",month:"short"}),yt=a=>new Date(a).toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}),Nt=a=>a.cidade&&a.estado?`${a.cidade}, ${a.estado}`:a.cidade?a.cidade:a.location?a.location:a.formato==="online"?"Online":a.formato==="presencial"||a.formato==="hibrido"?"Local a definir":null,wt=a=>new Date(a).getDate(),kt=a=>new Date(a).toLocaleDateString("pt-BR",{month:"short"}).replace(".",""),_t=({event:a,index:l,communityName:g,communityId:f,communityData:N})=>{const[u,d]=o.useState(!1),p=a.data_inicio?new Date(a.data_inicio)<new Date:!1,c=Oe[a.formato]||Oe.presencial,v=Nt(a);return e.jsxs(n.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:l*.05,duration:.35},children:[e.jsxs(he,{to:`/eventos/${a.slug||a.id}`,className:`group relative flex overflow-hidden ${c.bgTint} border-2 border-border rounded-2xl transition-all duration-300
2          ${c.hoverBorder} hover:shadow-card-hover hover:-translate-y-0.5 ${p?"opacity-50":""}`,children:[e.jsx("div",{className:`w-2 flex-shrink-0 ${c.gradient} transition-all duration-300 group-hover:w-2.5`}),e.jsxs("div",{className:"flex gap-4 p-4 sm:p-5 flex-1 min-w-0",children:[a.data_inicio&&e.jsx("div",{className:"hidden sm:flex flex-col items-center justify-center min-w-[56px]",children:e.jsxs("div",{className:`w-14 h-14 roun
2ded-xl ${c.dateBg} flex flex-col items-center justify-center transition-colors`,children:[e.jsx("span",{className:"text-xl font-bold leading-none",style:{color:a.formato==="online"?"hsl(var(--secondary))":a.formato==="hibrido"?"hsl(var(--accent))":"hsl(var(--primary))"},children:wt(a.data_inicio)}),e.jsx("span",{className:"text-[10px] font-bold uppercase mt-0.5 opacity-70",style:{color:a.formato==="online"?"hsl(var(--secondary))":a.formato==="hibrido"?"hsl(var(--accent))":"hsl(var(--primary))"},children:kt(a.data_inicio)})]})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-[11px] font-bold ${c.badgeGradient} shadow-sm`,children:[c.icon,c.label]}),p&&e.jsx("span",{className:"text-[11px] font-medium text-muted-foreground bg-muted px-2 py-0.5 rounded-full",children:"Encerrado"}),a.data_inicio&&e.jsx("span",{className:"sm:hidden text-[11px] text-muted-foreground",children:Te(a.data_inicio)})]}),e.jsx("h3",{className:"text-base sm:text-lg font-serif font-bold mb-1 group-hover:text-primary transition-colors line-clamp-1",children:a.title}),a.descricao_curta&&e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-3 line-clamp-2",children:a.descricao_curta}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[a.data_inicio&&e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(de,{className:"w-3.5 h-3.5 text-primary/60"}),Te(a.data_inicio)," · ",yt(a.data_inicio)]}),v&&e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(se,{className:"w-3.5 h-3.5 text-accent/60"}),v]}),a.target_audience&&e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(He,{className:"w-3.5 h-3.5 text-secondary/60"}),a.target_audience]}),g&&f&&(N?e.jsxs("button",{type:"button",onClick:m=>{m.preventDefault(),m.stopPropagation(),d(!0)},className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-bold transition-all hover:scale-105 shadow-sm cursor-pointer",style:{background:"hsl(var(--roxo) / 0.15)",color:"hsl(var(--roxo))"},children:[e.jsx(ge,{className:"w-3 h-3"}),"Já temos a comunidade desse evento! Confira →"]}):e.jsxs(he,{to:`/comunidades?destaque=${f}`,onClick:m=>m.stopPropagation(),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-bold transition-all hover:scale-105 shadow-sm",style:{background:"hsl(var(--roxo) / 0.15)",color:"hsl(var(--roxo))"},children:[e.jsx(ge,{className:"w-3 h-3"}),"Já temos a comunidade desse evento! Confira →"]}))]})]}),e.jsx("div",{className:"hidden sm:flex items-center pl-2",children:e.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center transition-all duration-300 ${a.formato==="online"?"group-hover:bg-secondary/10":a.formato==="hibrido"?"group-hover:bg-accent/10":"group-hover:bg-primary/10"}`,children:e.jsx(Se,{className:"w-4 h-4 text-muted-foreground group-hover:text-primary group-hover:translate-x-0.5 transition-all"})})})]})]}),N&&e.jsx(Ve,{open:u,onClose:()=>d(!1),eventTitle:a.title,eventId:a.id,community:N})]})},St="/assets/evento-mne-hero-Quw_7sQ7.jpg",Ct=a=>new Date(a).toLocaleDateString("pt-BR",{day:"numeric",month:"long",year:"numeric"}),Et=({event:a})=>{const[l,g]=o.useState(!1),f=!l&&a.image_url?a.image_url:St,[N,u]=o.useState([]);return o.useEffect(()=>{ae.from("event_sponsors").select("id, nome, logo_url, link_site, categoria").eq("event_id",a.id).order("order_index",{ascending:!0}).then(({data:d})=>{d&&u(d)})},[a.id]),e.jsx(n.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:e.jsx(he,{to:`/eventos/${a.slug||a.id}`,className:"group block",children:e.jsx("div",{className:"p-[3px] rounded-3xl shadow-soft hover:shadow-card-hover transition-shadow duration-500",style:{background:"linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)), hsl(var(--secondary)), hsl(var(--roxo)))"},children:e.jsx("div",{className:"relative overflow-hidden rounded-[calc(1.5rem-3px)] bg-card",children:e.jsxs("div",{className:"flex flex-col-reverse lg:flex-row",children:[e.jsxs("div",{className:"relative flex-1 p-6 sm:p-10 lg:p-12 flex flex-col justify-center overflow-hidden",style:{background:"linear-gradient(135deg, hsl(var(--primary) / 0.12), hsl(var(--accent) / 0.10), hsl(var(--secondary) / 0.06), hsl(var(--roxo) / 0.05))"},children:[e.jsx(n.div,{animate:{x:[0,15,0],y:[0,-10,0]},transition:{repeat:1/0,duration:6,ease:"easeInOut"},className:"absolute top-[-30px] right-[-30px] w-40 h-40 rounded-full blur-2xl",style:{background:"hsl(var(--accent) / 0.15)"}}),e.jsx(n.div,{animate:{x:[0,-10,0],y:[0,12,0]},transition:{repeat:1/0,duration:8,ease:"easeInOut"},className:"absolute bottom-[-20px] left-[-20px] w-32 h-32 rounded-full blur-2xl",style:{background:"hsl(var(--secondary) / 0.15)"}}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[e.jsxs(n.span,{animate:{scale:[1,1.05,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-bold bg-gradient-laranja text-primary-foreground shadow-soft",style:{boxShadow:"0 0 20px hsl(var(--primary) / 0.3)"},children:[e.jsx(fe,{className:"w-3 h-3"}),a.tipo_evento==="evento_mne"?"MNE Experience":"Destaque do Mercado"]}),a.categoria_mne&&e.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-accent/10 text-accent",children:a.categoria_mne})]}),e.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-serif font-bold mb-3",children:a.title}),a.descricao_curta&&e.jsx("p",{className:"text-muted-foreground max-w-xl mb-5 leading-relaxed",children:a.descricao_curta}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-muted-foreground text-sm mb-5",children:[a.data_inicio&&e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(de,{className:"w-4 h-4 text-primary"}),e.jsx("span",{children:Ct(a.data_inicio)})]}),(a.cidade||a.location)&&e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(se,{className:"w-4 h-4 text-accent"}),e.jsx("span",{children:a.cidade||a.location})]})]}),e.jsxs("span",{className:"inline-flex items-center gap-2 text-sm font-bold text-gradient-primary group-hover:gap-3 transition-all mb-6",children:[a.is_paid?"Quero participar":"Saiba mais"," ",e.jsx(Se,{className:"w-4 h-4 text-primary"})]}),N.length>0&&e.jsxs("div",{className:"pt-4 border-t border-border/30",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground
2/50 font-semibold block mb-3",children:"Patrocínio"}),e.jsx("div",{className:"flex items-center gap-6 flex-wrap",children:N.map(d=>d.logo_url?e.jsx("img",{src:d.logo_url,alt:d.nome,title:d.nome,className:"h-5 sm:h-6 object-contain opacity-40 hover:opacity-100 transition-opacity duration-300 cursor-default"},d.id):e.jsx("span",{className:"text-xs font-medium text-muted-foreground/50 hover:text-muted-foreground transition-colors",children:d.nome},d.id))})]})]})]}),e.jsxs("div",{className:"relative w-full lg:w-[42%] aspect-[16/9] sm:aspect-[2/1] lg:aspect-auto lg:h-auto lg:min-h-[320px] flex-shrink-0 overflow-hidden bg-muted",children:[e.jsx("img",{src:f,alt:`Mulheres no evento ${a.title}`,className:"w-full h-full object-cover object-[center_30%]",loading:"eager",decoding:"async",fetchPriority:"high",onError:()=>g(!0)}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-card/60 via-transparent to-transparent lg:block hidden"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-card/40 to-transparent lg:hidden"})]})]})})})})})},Mt=Fe,$t=["E-commerce","Marketing Digital","Gestão","Logística","Tecnologia","Carreira","Finanças","Liderança feminina"],It=[{value:"Presencial",emoji:"🏢"},{value:"Online",emoji:"💻"},{value:"Híbrido",emoji:"🔄"}],Pt=[{value:"running",label:"Corrida / Bem-estar",emoji:"🏃‍♀️"},{value:"wine",label:"Wine & Connect",emoji:"🍷"},{value:"travel",label:"Viagem de negócios",emoji:"✈️"},{value:"culture",label:"Cultura & Arte",emoji:"🎨"},{value:"gastronomy",label:"Gastronomia",emoji:"🍴"},{value:"networking_vip",label:"Networking VIP",emoji:"🥂"},{value:"retreat",label:"Retiro / Imersão",emoji:"🧖‍♀️"}],ie={enter:a=>({x:a>0?60:-60,opacity:0}),center:{x:0,opacity:1},exit:a=>({x:a>0?-60:60,opacity:0})},F=["identify","choose","details","extras"],pe={identify:{icon:ct,title:"Quem é você?",subtitle:"Precisamos de alguns dados para te conhecer",dotClass:"bg-gradient-laranja"},choose:{icon:ke,title:"Como quer contribuir?",subtitle:"Escolha uma das opções abaixo",dotClass:"bg-gradient-rosa"},details:{icon:Qe,title:"Detalhes",subtitle:"",dotClass:"bg-gradient-verde-agua"},extras:{icon:fe,title:"Interesses & observações",subtitle:"Experiências extras e espaço livre para sugestões",dotClass:"bg-gradient-laranja"}};function Dt(a){return F.filter(g=>g!=="checking").indexOf(a)+1}const Lt=F.length;function Ae({onBack:a}){const[l,g]=o.useState("identify"),[f,N]=o.useState(1),[u,d]=o.useState(null),[p,c]=o.useState(""),[v,m]=o.useState(""),[k,_]=o.useState(""),[j,O]=o.useState(""),[i,$]=o.useState(""),[E,M]=o.useState(""),[V,I]=o.useState(""),[P,be]=o.useState(""),[H,X]=o.useState([]),[W,me]=o.useState([]),[Y,re]=o.useState([]),[K,Z]=o.useState(""),[ve,xe]=o.useState(!1),[G,Q]=o.useState(!1),A=(r,h,S)=>{S(r.includes(h)?r.filter(ye=>ye!==h):[...r,h])},B=()=>l==="identify"?p.trim().length>0&&Be(v):l==="choose"?u!==null:l==="details"?u==="indicate"?E.trim().length>2:P.trim().length>2:!0,oe=async()=>{if(!B())return;if(N(1),l==="identify"){g("checking");try{const h=await Re(v);if(!h.isNew){const S=h.prefill||{};S.name&&!p.trim()&&c(`${S.name} ${S.last_name||""}`.trim()),S.whatsapp&&!k.trim()&&_(S.whatsapp),S.state&&!j&&O(S.state)}}catch{}g("choose");return}const r=F.indexOf(l);r<F.length-1&&g(F[r+1])},je=()=>{N(-1);const r=F.indexOf(l);r>0&&g(F[r-1])},b=u==="indicate"?{title:"Qual evento quer indicar?",subtitle:"Compartilhe o nome e link do evento"}:{title:"O que quer ver na agenda?",subtitle:"Conte o que faz seus olhos brilharem"},w=async()=>{if(!B())return;Q(!0);const r=u==="indicate"?"indicacao":"sugestao",{error:h}=await ae.from("event_suggestions").insert({nome:p.trim().slice(0,100),email:v.trim().slice(0,255),whatsapp:k.trim()||null,estado:j||null,tipo_evento:r,observacao:u==="indicate"?E.trim().slice(0,500):P.trim().slice(0,500),temas:u==="suggest"&&H.length>0?H:null,formatos:u==="suggest"&&W.length>0?W:null,interesses:Y.length>0?Y:null,cidade:i.trim()||null,observacao_extra:u==="indicate"?[V.trim(),K.trim()].filter(Boolean).join(" | ")||null:K.trim()||null});ze(v,{name:p.trim().split(" ")[0],last_name:p.trim().split(" ").slice(1).join(" ")||void 0,whatsapp:k.trim()||void 0,state:j||void 0,signup_source:"evento_sugestao"}),Q(!1),h?C.error("Erro ao enviar sugestão. Tente novamente."):(xe(!0),C.success("Sugestão enviada! Obrigada 💜"))};if(ve)return e.jsxs(n.div,{initial:{opacity:0,scale:.95}
2,animate:{opacity:1,scale:1},className:"text-center py-12 px-6 rounded-3xl shadow-card overflow-hidden relative",style:{background:"linear-gradient(135deg, hsl(var(--warm-glow)), hsl(var(--sage-soft)))"},children:[e.jsx("div",{className:"absolute inset-0 border-2 border-border rounded-3xl"}),e.jsx(n.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",bounce:.5},className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-verde-agua flex items-center justify-center shadow-soft relative z-10",children:e.jsx(le,{className:"w-8 h-8 text-secondary-foreground"})}),e.jsx("h3",{className:"text-xl font-serif font-bold mb-2 relative z-10",children:u==="indicate"?"Indicação recebida!":"Sugestão recebida!"}),e.jsx("p",{className:"text-muted-foreground text-sm max-w-sm mx-auto relative z-10",children:"Obrigada por contribuir com a comunidade! Vamos avaliar com carinho ✨"}),e.jsx("button",{onClick:a,className:"mt-4 text-xs text-primary font-semibold underline underline-offset-2 relative z-10",children:"← Voltar"})]});const T=l==="checking"?"identify":l,ne=Dt(T),U=T==="details"?{...pe[T],...b}:pe[T]||pe.identify,R=U.icon,ue=F.map(r=>pe[r]?.dotClass||"bg-muted"),D="w-full px-3 py-2.5 rounded-xl border-2 border-border bg-background text-sm focus:outline-none focus:border-primary/50 transition-colors";return e.jsxs(n.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"rounded-3xl shadow-card overflow-hidden relative",style:{background:"linear-gradient(135deg, hsl(var(--warm-glow)), hsl(var(--rose-soft)), hsl(var(--sage-soft)))"},children:[e.jsx("div",{className:"absolute inset-0 border-2 border-border rounded-3xl"}),e.jsxs("div",{className:"relative z-10 p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsxs("button",{onClick:l==="identify"?a:je,className:"flex items-center gap-1 text-xs font-semibold text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(nt,{className:"w-4 h-4"}),l==="identify"?"Voltar":"Anterior"]}),e.jsx("div",{className:"flex-1 flex items-center gap-1.5 justify-center",children:F.map((r,h)=>e.jsx(n.div,{className:`h-2 rounded-full transition-all ${h+1<=ne?ue[h]:"bg-muted/60"}`,animate:{width:h+1===ne?32:8},transition:{type:"spring",stiffness:300,damping:25}},h))}),e.jsxs("span",{className:"text-xs font-bold text-muted-foreground whitespace-nowrap",children:[ne,"/",Lt]})]}),e.jsxs("div",{className:"flex items-start gap-3 mb-5",children:[e.jsx(n.div,{initial:{rotate:-15,scale:.8},animate:{rotate:0,scale:1},transition:{type:"spring",bounce:.4},className:`w-10 h-10 rounded-2xl ${U.dotClass} flex items-center justify-center shadow-soft flex-shrink-0`,children:e.jsx(R,{className:"w-5 h-5 text-secondary-foreground"})},T),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-serif font-bold leading-tight",children:U.title}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:U.subtitle})]})]}),e.jsx("div",{className:"min-h-[260px]",children:e.jsxs(ee,{mode:"wait",custom:f,children:[l==="checking"&&e.jsxs(n.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},className:"flex flex-col items-center justify-center gap-3 py-10",children:[e.jsx(Ge,{className:"w-8 h-8 text-primary animate-spin"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Verificando seus dados..."})]},"s-checking"),l==="identify"&&e.jsx(n.div,{custom:f,variants:ie,initial:"enter",animate:"center",exit:"exit",transition:{duration:.25},children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:"Nome *"}),e.jsx("input",{type:"text",value:p,onChange:r=>c(r.target.value),maxLength:100,placeholder:"Como podemos te chamar?",className:D,autoFocus:!0})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:"E-mail *"}),e.jsx("input",{type:"email",value:v,onChange:r=>m(r.target.value),maxLength:255,placeholder:"[email protected]",className:D})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:"WhatsApp"}),e.jsx(_e,{value:k,onChange:r=>_(r||""),placeholder:"(11) 99999-9999"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"text-xs font-semibold text-muted-foreground mb-1 flex items-center gap-1",children:[e.jsx(se,{className:"w-3 h-3"})," Estado"]}),e.jsxs("select",{value:j,onChange:r=>O(r.target.value),className:`${D} ${j?"":"text-muted-foreground"}`,children:[e.jsx("option",{value:"",children:"Selecione"}),Mt.map(r=>e.jsx("option",{value:r,children:r},r))]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"text-xs font-semibold text-muted-foreground mb-1 flex items-center gap-1",children:[e.jsx(se,{className:"w-3 h-3"})," Cidade"]}),e.jsx("input",{type:"text",value:i,onChange:r=>$(r.target.value),maxLength:100,placeholder:"Ex: São Paulo",className:D})]})]})]})},"s-identify"),l==="choose"&&e.jsx(n.div,{custom:f,variants:ie,initial:"enter",animate:"center",exit:"exit",transition:{duration:.25},children:e.jsx("div",{className:"space-y-3",children:[{value:"indicate",icon:De,title:"Indicar um evento existente",desc:"Já conhece um evento legal? Compartilhe com a gente!",dotClass:"bg-gradient-laranja"},{value:"suggest",icon:lt,title:"Sugerir um novo evento",desc:"Tem uma ideia de evento? Conte pra gente o que gostaria de ver!",dotClass:"bg-gradient-rosa"}].map(r=>{const h=u===r.value;return e.jsxs(n.button,{whileHover:{scale:1.01},whileTap:{scale:.98},onClick:()=>d(r.value),className:`w-full text-left p-4 rounded-2xl border-2 transition-all flex items-start gap-3 ${h?"border-primary bg-primary/5 shadow-soft":"border-border bg-background hover:border-primary/30"}`,children:[e.jsx("div",{className:`w-10 h-10 rounded-xl ${r.dotClass} flex items-center justify-center flex-shrink-0`,children:e.jsx(r.icon,{className:"w-5 h-5 text-secondary-foreground"})}),e.jsxs("div",{children:[e.jsx("p",{className:`text-sm font-bold ${h?"text-foreground":"text-foreground/80"}`,children:r.title}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:r.desc})]}),h&&e.jsx(n.div,{initial:{scale:0},animate:{scale:1},className:"ml-auto mt-1 w-5 h-5 rounded-full bg-primary flex items-center justify-center flex-shrink-0",children:e.jsx(le,{className:"w-3 h-3 text-primary-foreground"})})]},r.value)})})},"s-choose"),l==="details"&&u==="indicate"&&e.jsx(n.div,{custom:f,variants:ie,initial:"enter",animate:"center",exit:"exit",transition:{duration:.25},children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Nome do evento *"}),e.jsx("input",{type:"text",value:E,onChange:r=>M(r.target.value),maxLength:200,placeholder:"Ex: VTEX Day, Web Summit, Meetup E-commerce SP...",className:D,autoFocus:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Link do evento"}),e.jsxs("div",{className:"relative",children:[e.jsx(De,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:"url",value:V,onChange:r=>I(r.target.value),maxLength:500,placeholder:"https://...",className:`${D} pl-10`})]}),e.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:"Opcional — se tiver o link, cole aqui!"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Por que recomenda?"}),e.jsx("textarea",{value:K,onChange:r=>Z(r.target.value),maxLength:500,rows:3,placeholder:"Conte por que acha que seria legal para a comunidade...",className:`${D} min-h-[80px] resize-none`})]})]})},"s-details-indicate"),l==="details"&&u==="suggest"&&e.jsx(n.div,{custom:f,variants:ie,initial:"enter",animate:"center",exit:"exit",transition:{duration:.25},children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Descreva o evento que gostaria de ver *"}),e.jsxs("div",{className:"relative",children:[e.jsx(Qe,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:"text",value:P,onChange:r=>be(r.target.value),maxLength:500,placeholder:"Ex: Workshop de tráfego pago, Meetup presencial em SP...",className:`${D} pl-10`,autoFocus:!0})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Quais temas te interessam?"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:$t.map((r,h)=>e.jsx(n.button,{initial:{opacity:0,y:8}
2,animate:{opacity:1,y:0},transition:{delay:h*.03},onClick:()=>A(H,r,X),className:`px-3 py-2 rounded-xl text-xs font-medium transition-all border-2 ${H.includes(r)?"border-primary bg-gradient-laranja text-primary-foreground shadow-soft scale-105":"border-border bg-background text-muted-foreground hover:border-primary/40 hover:bg-warm-glow"}`,children:r},r))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Qual formato prefere?"}),e.jsx("div",{className:"flex gap-2",children:It.map(r=>e.jsxs("button",{onClick:()=>A(W,r.value,me),className:`flex-1 py-2.5 rounded-xl text-xs font-medium transition-all border-2 flex items-center justify-center gap-1.5 ${W.includes(r.value)?"border-accent bg-gradient-rosa text-accent-foreground shadow-soft scale-105":"border-border bg-background text-muted-foreground hover:border-accent/40 hover:bg-rose-soft"}`,children:[e.jsx("span",{children:r.emoji})," ",r.value]},r.value))})]})]})},"s-details-suggest"),l==="extras"&&e.jsx(n.div,{custom:f,variants:ie,initial:"enter",animate:"center",exit:"exit",transition:{duration:.25},children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-semibold text-foreground mb-3 block",children:"Experiências que te interessam 💜"}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:Pt.map((r,h)=>{const S=Y.includes(r.value);return e.jsxs(n.button,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:h*.04},onClick:()=>A(Y,r.value,re),className:`relative py-3 px-3 rounded-2xl text-sm font-medium transition-all border-2 flex items-center gap-2.5 text-left ${S?"border-accent bg-gradient-rosa text-accent-foreground shadow-soft":"border-border bg-background text-muted-foreground hover:border-accent/40 hover:bg-rose-soft"}`,children:[e.jsx("span",{className:"text-xl flex-shrink-0",children:r.emoji}),e.jsx("span",{className:"leading-tight text-xs font-semibold",children:r.label}),S&&e.jsx(n.div,{initial:{scale:0},animate:{scale:1},className:"absolute top-1.5 right-1.5 w-4 h-4 rounded-full bg-accent flex items-center justify-center",children:e.jsx(le,{className:"w-2.5 h-2.5 text-accent-foreground"})})]},r.value)})})]}),u==="suggest"&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:"Alguma ideia ou sugestão extra?"}),e.jsx("textarea",{value:K,onChange:r=>Z(r.target.value),maxLength:1e3,rows:3,placeholder:"Uma palestrante que admira, um tema específico, um formato diferente... 🌟",className:`${D} min-h-[80px] resize-none`}),e.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1 flex items-center gap-1",children:[e.jsx(fe,{className:"w-3 h-3"})," Totalmente opcional — mas adoramos ouvir você!"]})]})]})},"s-extras")]})}),l!=="checking"&&e.jsxs("div",{className:"flex justify-between items-center mt-5",children:[e.jsxs("div",{className:"text-[11px] text-muted-foreground",children:[l==="identify"&&"* campos obrigatórios",l==="choose"&&"selecione uma opção",l==="details"&&(u==="indicate"?"* nome do evento é obrigatório":"* descreva em pelo menos 3 caracteres"),l==="extras"&&"este passo é opcional"]}),l!=="extras"?e.jsxs(n.button,{whileHover:{scale:B()?1.03:1},whileTap:{scale:B()?.97:1},onClick:oe,disabled:!B(),className:`px-6 py-2.5 rounded-xl text-sm font-bold flex items-center gap-2 transition-all ${B()?"bg-gradient-laranja text-primary-foreground shadow-soft cursor-pointer":"bg-muted text-muted-foreground cursor-not-allowed"}`,children:["Próximo ",e.jsx(Se,{className:"w-4 h-4"})]}):e.jsxs(n.button,{whileHover:{scale:1.03},whileTap:{scale:.97},onClick:w,disabled:G,className:"px-6 py-2.5 rounded-xl text-sm font-bold flex items-center gap-2 transition-all bg-gradient-laranja text-primary-foreground shadow-soft cursor-pointer",children:[e.jsx(dt,{className:"w-4 h-4"}),G?"Enviando...":u==="indicate"?"Enviar indicação":"Enviar sugestão"]})]})]})]})}const qe={mne:4,ingressos:3,parceiro:2,mercado:1},Ue=a=>{if(a.fixado_no_topo)return"mne";switch(a.tipo_evento){case"evento_mne":return"mne";case"distribuicao_ingressos":case"sorteio_ingressos":return"ingressos";case"evento_parceiro":return"parceiro";default:return"mercado"}},Ot=a=>a.length?a.map(Ue).sort((l,g)=>qe[g]-qe[l])[0]:null,Je={mne:"Evento MNE",ingressos:"Ingressos MNE",parceiro:"Parceiro com presença MNE",mercado:"Agenda do mercado"},z={mne:"hsl(24 90% 55%)",ingressos:"hsl(280 65% 55%)",parceiro:"hsl(210 80% 55%)",mercado:"hsl(0 0% 60%)"},Tt=({events:a,selectedDate:l,onSelectDate:g,month:f,onMonthChange:N,onMonthClick:u})=>{const d=o.useMemo(()=>{const m=new Map;return a.forEach(k=>{if(!k.data_inicio)return;const _=new Date(k.data_inicio),j=te(_,"yyyy-MM-dd");m.has(j)||m.set(j,[]),m.get(j).push(k)}),m},[a]),p=m=>{const k=d.get(te(m,"yyyy-MM-dd"));return Ot(k||[])},c=o.useMemo(()=>({kindMne:m=>p(m)==="mne",kindIngressos:m=>p(m)==="ingressos",kindParceiro:m=>p(m)==="parceiro",kindMercado:m=>p(m)==="mercado"}),[d]),v=o.useMemo(()=>a.filter(m=>m.data_inicio&&J(new Date(m.data_inicio),f)).length,[a,f]);return e.jsxs("div",{className:"bg-card border-2 border-border rounded-2xl overflow-hidden shadow-card relative",children:[e.jsx("div",{className:"h-1.5 bg-gradient-to-r from-primary via-accent to-secondary"}),e.jsx("div",{className:"px-4 py-3 border-b border-border",style:{background:"linear-gradient(135deg, hsl(var(--primary) / 0.12), hsl(var(--accent) / 0.08), hsl(var(--secondary) / 0.05))"},children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2 text-xs font-bold text-foreground uppercase tracking-wider",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-gradient-laranja flex items-center justify-center",children:e.jsx(pt,{className:"w-3.5 h-3.5 text-primary-foreground"})}),"Calendário"]}),v>0&&e.jsxs("span",{className:"text-xs font-bold text-accent-foreground bg-gradient-rosa px-2.5 py-0.5 rounded-full shadow-sm",children:[v," evento",v>1?"s":""]})]})}),e.jsxs("div",{className:"p-3",children:[e.jsx(mt,{mode:"single",selected:l,onSelect:g,month:f,onMonthChange:N,locale:ce,className:"pointer-events-auto",classNames:{caption_label:u?"text-sm font-medium cursor-pointer hover:text-primary transition-colors underline decoration-primary/30 underline-offset-2 hover:
2decoration-primary":"text-sm font-medium"},modifiers:c,modifiersClassNames:{kindMne:"evento-dot evento-mne",kindIngressos:"evento-dot evento-ingressos",kindParceiro:"evento-dot evento-parceiro",kindMercado:"evento-dot evento-mercado"},formatters:{formatCaption:m=>te(m,"LLLL yyyy",{locale:ce})}}),u&&e.jsxs("button",{type:"button",onClick:()=>u(f),className:"w-full text-center text-xs font-semibold text-primary hover:text-primary/80 transition-colors py-1.5 -mt-1 rounded-lg hover:bg-primary/5",children:["Filtrar por ",te(f,"MMMM",{locale:ce})]}),e.jsx("div",{className:"mt-3 pt-3 border-t border-border grid grid-cols-2 gap-1.5",children:["mne","ingressos","parceiro","mercado"].map(m=>e.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] text-muted-foreground leading-tight",children:[e.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{background:z[m]}}),e.jsx("span",{className:"truncate",children:Je[m]})]},m))})]}),e.jsx("style",{children:`
3        .evento-dot {
4          position: relative;
5          font-weight: 700;
6        }
7        .evento-dot::after {
8          content: '';
9          position: absolute;
10          bottom: 2px;
11          left: 50%;
12          transform: translateX(-50%);
13          width: 6px;
14          height: 6px;
15          border-radius: 50%;
16          box-shadow: 0 0 6px currentColor;
17        }
18        .evento-mne::after { background: ${z.mne}; box-shadow: 0 0 6px ${z.mne}; }
19        .evento-ingressos::after { background: ${z.ingressos}; box-shadow: 0 0 6px ${z.ingressos}; }
20        .evento-parceiro::after { background: ${z.parceiro}; box-shadow: 0 0 6px ${z.parceiro}; }
21        .evento-mercado::after { background: ${z.mercado}; box-shadow: none; }
22        .evento-dot[aria-selected="true"]::after {
23          background: hsl(var(--primary-foreground));
24          box-shadow: 0 0 4px hsl(var(--primary-foreground) / 0.4);
25        }
26      `})]})},At=()=>{const[a,l]=o.useState([]),[g,f]=o.useState(!0),[N,u]=o.useState(null),[d,p]=o.useState({name:"",email:"",whatsapp:""}),[c,v]=o.useState(null),[m,k]=o.useState(!1),[_,j]=o.useState(new Set);o.useEffect(()=>{ae.from("events").select("*, communities(id, name, emoji, color, description, whatsapp_link, requires_approval)").eq("tipo_evento","evento_internacional").eq("status","publicado").order("data_inicio",{ascending:!0}).then(({data:i})=>{i&&l(i),f(!1)})},[]);const O=async(i,$)=>{if(!d.name.trim()||!d.email.trim()||!d.whatsapp.trim()){C.error("Preencha nome, e-mail e WhatsApp.");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d.email)){C.error("Informe um e-mail válido.");return}k(!0);const{error:E}=await ae.from("community_suggestions").insert([{name:`Comunidade ${$}`,description:`Interesse em comunidade para o evento ${$}`,suggested_by_name:d.name.trim(),suggested_by_email:d.email.trim(),whatsapp:d.whatsapp.trim()||null,event_id:i,status:"pendente"}]);k(!1),E?E.code==="23505"?(C.info("Você já demonstrou interesse! 💜"),j(M=>new Set(M).add(i))):C.error("Erro ao registrar interesse."):(C.success("Interesse registrado! Avisaremos quando a comunidade for criada 💜"),j(M=>new Set(M).add(i))),u(null),p({name:"",email:"",whatsapp:""})};return g||a.length===0?null:e.jsxs("section",{className:"mt-16",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-rosa flex items-center justify-center shadow-soft",children:e.jsx(it,{className:"w-5 h-5 text-accent-foreground"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-serif font-bold",children:"Eventos Internacionais"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Os maiores eventos globais de varejo, tecnologia e inovação"})]})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:a.map((i,$)=>{const E=i.communities,M=!!E,V=_.has(i.id);return e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:$*.06},className:"group relative overflow-hidden rounded-2xl border-2 border-border bg-card shadow-card hover:shadow-card-hover transition-all",children:[e.jsx("div",{className:`h-2 bg-gradient-to-r ${i.gradient_class||"from-primary to-accent"}`}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-3xl leading-none",children:i.flag_emoji}),e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-wider text-primary bg-primary/10 px-2.5 py-1 rounded-full",children:i.month_label})]}),e.jsx("a",{href:`${i.url_inscricao_externa}?utm_source=mulheres-no-ecommerce&utm_medium=site&utm_campaign=eventos-internacionais&utm_content=${i.slug||i.title.toLowerCase().replace(/\s+/g,"-")}`,target:"_blank",rel:"noopener noreferrer",className:"block",children:e.jsx("h3",{className:"font-serif font-bold text-lg leading-snug group-hover:text-primary transition-colors",children:i.title})}),e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[e.jsx(se,{className:"w-3.5 h-3.5 shrink-0"})," ",i.cidade,i.pais&&i.pais!=="BR"?`, ${i.pais}`:""]}),(i.descricao_curta||i.description)&&e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-3",children:i.descricao_curta||i.description}),M?e.jsxs("button",{onClick:()=>v({evt:i,community:E}),className:"mt-3 inline-flex items-center gap-1.5 text-xs font-semibold text-accent hover:underline",children:[e.jsx(ge,{className:"w-3 h-3"}),E.emoji," ",E.name]}):V?e.jsxs("div",{className:"mt-3 inline-flex items-center gap-1.5 text-xs font-semibold text-secondary",children:[e.jsx(le,{className:"w-3 h-3"})," Interesse registrado!"]}):e.jsx("div",{className:"mt-3",children:N===i.id?e.jsx(ee,{children:e.jsxs(n.div,{initial:{opacity:0,height:0}
26,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"space-y-2",children:[e.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Avise-nos que quer uma comunidade para este evento:"}),e.jsx("input",{value:d.name,onChange:I=>p(P=>({...P,name:I.target.value})),placeholder:"Seu nome *",required:!0,className:"w-full px-3 py-2 rounded-lg border border-border bg-background text-xs focus:outline-none focus:border-primary/50"}),e.jsx("input",{value:d.email,onChange:I=>p(P=>({...P,email:I.target.value})),placeholder:"[email protected] *",type:"email",className:"w-full px-3 py-2 rounded-lg border border-border bg-background text-xs focus:outline-none focus:border-primary/50"}),e.jsx(_e,{value:d.whatsapp,onChange:I=>p(P=>({...P,whatsapp:I||""})),placeholder:"WhatsApp *",required:!0}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:()=>O(i.id,i.title),disabled:m,className:"flex-1 px-3 py-2 rounded-lg text-xs font-bold bg-gradient-laranja text-primary-foreground disabled:opacity-50",children:m?"Enviando...":"Enviar"}),e.jsx("button",{onClick:()=>{u(null),p({name:"",email:"",whatsapp:""})},className:"px-3 py-2 rounded-lg text-xs text-muted-foreground border border-border hover:bg-muted",children:"Cancelar"})]})]})}):e.jsxs("button",{onClick:()=>u(i.id),className:"inline-flex items-center gap-1.5 text-xs font-semibold text-accent hover:underline",children:[e.jsx(ge,{className:"w-3 h-3"})," Tenho interesse na comunidade"]})}),e.jsxs("a",{href:`${i.url_inscricao_externa}?utm_source=mulheres-no-ecommerce&utm_medium=site&utm_campaign=eventos-internacionais&utm_content=${i.slug||i.title.toLowerCase().replace(/\s+/g,"-")}`,target:"_blank",rel:"noopener noreferrer",className:"mt-3 flex items-center gap-1.5 text-xs font-semibold text-primary opacity-0 group-hover:opacity-100 transition-opacity",children:["Acessar site ",e.jsx(et,{className:"w-3 h-3"})]})]})]},i.id)})}),c&&e.jsx(Ve,{open:!!c,onClose:()=>v(null),eventTitle:c.evt.title,eventId:c.evt.id,community:{id:c.community.id,name:c.community.name,description:c.community.description||"",emoji:c.community.emoji,color:c.community.color,whatsapp_link:c.community.whatsapp_link,requires_approval:c.community.requires_approval}})]})},$a=()=>{const[a,l]=o.useState([]),[g,f]=o.useState(!0),[N,u]=o.useState("todos"),[d,p]=o.useState("todos"),[c,v]=o.useState(null),[m,k]=o.useState(new Date),[_,j]=o.useState(),[O,i]=o.useState(""),[$,E]=o.useState(""),[M,V]=o.useState(""),[I,P]=o.useState(!1),[be,H]=o.useState(!1),[X,W]=o.useState(!1),[me,Y]=o.useState("form"),[re,K]=o.useState(""),[Z,ve]=o.useState(""),[xe,G]=o.useState(!1),Q=gt(),A=o.useRef(null),B=async()=>{if(!O.trim()){C.error("Informe seu nome.");return}if(!Be($)){C.error("Informe um e-mail válido.");return}if(!M.trim()){C.error("Informe seu WhatsApp.");return}if(!I){C.error("Autorize o contato para continuar.");return}Y("checking");try{const t=await Re($);if(t.isNew)Y("extra");else{const s=t.prefill||{};s.name&&i(`${s.name} ${s.last_name||""}`.trim()),s.whatsapp&&!M.trim()&&V(s.whatsapp),await oe()}}catch{await oe()}},oe=async()=>{W(!0);const{error:t}=await ae.from("event_alert_subscribers").insert([{email:$.trim(),nome:O.trim(),whatsapp:M.trim(),lgpd_consent:I}]),s={name:O.trim().split(" ")[0],last_name:O.trim().split(" ").slice(1).join(" ")||void 0,whatsapp:M.trim()||void 0,signup_source:"evento_alerta"};re&&(s.state=re),Z&&(s.profile=Z),ze($,s),W(!1),t?t.code==="23505"?(C.info("Você já está inscrita! 💜"),H(!0)):C.error("Erro ao se inscrever. Tente novamente."):(H(!0),C.success("Inscrição feita! Você será avisada 💜"))};o.useEffect(()=>{(async()=>{const{data:s}=await ae.from("events").select("*, communities(id, name, description, emoji, color, whatsapp_link)").eq("visibilidade","publico").eq("status","publicado").order("data_inicio",{ascending:!0});if(s){const x=ht(new Date),y=s.filter(L=>L.data_inicio?new Date(L.data_fim||L.data_inicio)>=x:!0);l(y),k(ut(new Date))}f(!1)})()},[]);const je=a.filter(t=>t.fixado_no_topo),b=o.useMemo(()=>a.filter(t=>!t.fixado_no_topo),[a]),w=o.useRef(new Date).current,T=o.useMemo(()=>xt(w,1),[w]),ne=o.useMemo(()=>{const t={mes:0,proximo_mes:0,ano:0,todos:b.length};return b.forEach(s=>{if(!s.data_inicio)return;const x=new Date(s.data_inicio);J(x,w)&&t.mes++,J(x,T)&&t.proximo_mes++,x.getFullYear()===w.getFullYear()&&t.ano++}),t},[b,w,T]),U=o.useMemo(()=>{let t=b;return c!==null?t=t.filter(s=>!s.data_inicio||new Date(s.data_inicio).getMonth()===c&&new Date(s.data_inicio).getFullYear()===w.getFullYear()):d==="mes"?t=t.filter(s=>!s.data_inicio||J(new Date(s.data_inicio),w)):d==="proximo_mes"?t=t.filter(s=>!s.data_inicio||J(new Date(s.data_inicio),T)):d==="ano"&&(t=t.filter(s=>!s.data_inicio||new Date(s.data_inicio).getFullYear()===w.getFullYear())),N!=="todos"&&(t=t.filter(s=>s.formato===N)),_&&(t=t.filter(s=>s.data_inicio&&Le(new Date(s.data_inicio),_))),t},[b,d,N,_,c]),R=o.useMemo(()=>{const t=w.getFullYear(),s=[],x=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"];for(let y=0;y<12;y++){const L=b.filter(q=>q.data_inicio&&new Date(q.data_inicio).getMonth()===y&&new Date(q.data_inicio).getFullYear()===t);
26s.push({month:y,label:x[y],events:L})}return s},[b]),ue=o.useMemo(()=>{const t=new Map;return U.forEach(s=>{const x=s.data_inicio?s.data_inicio.substring(0,7):"sem-data";t.has(x)||t.set(x,[]),t.get(x).push(s)}),Array.from(t.entries()).map(([s,x])=>({key:s,label:s==="sem-data"?"Sem data definida":te(new Date(parseInt(s.slice(0,4)),parseInt(s.slice(5,7))-1,1),"MMMM 'de' yyyy",{locale:ce}),events:x}))},[U]),D=t=>{_&&t&&Le(_,t)?j(void 0):j(t)},r=[{value:"mes",label:"Esse mês"},{value:"proximo_mes",label:"Próximo mês"},{value:"ano",label:`Eventos ${w.getFullYear()}`},{value:"todos",label:"Todos"}],h=[{value:"todos",label:"Todos",icon:e.jsx(jt,{className:"w-3.5 h-3.5"})},{value:"online",label:"Online",icon:e.jsx(We,{className:"w-3.5 h-3.5"})},{value:"presencial",label:"Presencial",icon:e.jsx(Ye,{className:"w-3.5 h-3.5"})},{value:"hibrido",label:"Híbrido",icon:e.jsx(we,{className:"w-3.5 h-3.5"})}],S={todos:"border-primary bg-gradient-laranja text-primary-foreground shadow-soft",online:"border-secondary bg-secondary text-secondary-foreground shadow-soft",presencial:"border-primary bg-primary text-primary-foreground shadow-soft",hibrido:"border-accent bg-gradient-rosa text-accent-foreground shadow-soft"};o.useEffect(()=>{!g&&b.length>0&&d==="todos"&&(b.filter(s=>s.data_inicio&&J(new Date(s.data_inicio),w)).length===0?b.filter(x=>x.data_inicio&&J(new Date(x.data_inicio),T)).length>0?p("proximo_mes"):p("ano"):p("mes"))},[g,b.length]);const ye=["from-primary via-accent to-secondary","from-accent via-[hsl(var(--roxo))] to-primary","from-secondary via-primary to-accent"];return e.jsxs(tt,{children:[e.jsx(at,{title:"Eventos | Mulheres no E-commerce",description:"Participe de eventos online e presenciais do Mulheres no E-commerce. Networking, aprendizado e conexões reais.",canonical:"https://www.mulheresnoecommerce.com.br/eventos",ogImage:"https://www.mulheresnoecommerce.com.br/__l5e/assets-v1/2221f98e-26b9-48a8-86eb-f59e0c82d225/og-eventos.jpg",jsonLd:{"@context":"https://schema.org","@type":"ItemList",name:"Eventos – Mulheres no E-commerce",description:"Lista de eventos do Mulheres no E-commerce",numberOfItems:a.length,itemListElement:a.slice(0,30).map((t,s)=>({"@type":"ListItem",position:s+1,url:t.slug?`https://www.mulheresnoecommerce.com.br/eventos/${t.slug}`:void 0,name:t.title}))}}),e.jsxs("section",{className:"relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, hsl(21 85% 59% / 0.12), hsl(348 87% 60% / 0.08), hsl(168 81% 40% / 0.06), hsl(238 30% 51% / 0.05))"}}),e.jsx(n.div,{animate:{x:[0,20,0],y:[0,-15,0]},transition:{repeat:1/0,duration:8,ease:"easeInOut"},className:"absolute top-[-80px] right-[-60px] w-72 h-72 rounded-full opacity-50 blur-3xl pointer-events-none",style:{background:"hsl(var(--accent) / 0.3)"}}),e.jsx(n.div,{animate:{x:[0,-15,0],y:[0,20,0]},transition:{repeat:1/0,duration:10,ease:"easeInOut"},className:"absolute bottom-[-60px] left-[-40px] w-64 h-64 rounded-full opacity-40 blur-3xl pointer-events-none",style:{background:"hsl(var(--secondary) / 0.3)"}}),e.jsx(n.div,{animate:{scale:[1,1.1,1]},transition:{repeat:1/0,duration:6,ease:"easeInOut"},className:"absolute top-1/3 left-1/4 w-48 h-48 rounded-full opacity-30 blur-3xl pointer-events-none",style:{background:"hsl(var(--roxo) / 0.3)"}}),e.jsx(n.div,{animate:{x:[0,10,0],scale:[1,1.05,1]},transition:{repeat:1/0,duration:7,ease:"easeInOut"},className:"absolute top-1/2 right-1/4 w-56 h-56 rounded-full opacity-35 blur-3xl pointer-events-none",style:{background:"hsl(var(--primary) / 0.25)"}}),e.jsxs("div",{className:"relative max-w-6xl mx-auto px-4 pt-6 pb-12 md:pt-8 md:pb-16",children:[e.jsx(ot,{items:[{label:"Início",href:"/"},{label:"Eventos"}]}),e.jsxs(n.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"text-center",children:[e.jsxs(n.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.2},className:"inline-flex items-center gap-2 bg-gradient-laranja text-primary-foreground px-5 py-2 rounded-full mb-6 shadow-soft",children:[e.jsx(fe,{className:"w-4 h-4"}),e.jsx("span",{className:"text-xs font-bold tracking-widest uppercase",children:"Eventos & Experiências"})]}),e.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-6xl font-serif font-bold mb-5 leading-tight break-words",children:["Conecte-se com quem"," ",e.jsx("span",{className:"text-gradient-rosa italic",children:"transforma"}),e.jsx("br",{className:"hidden md:block"})," ","o e-commerce"]}),e.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-base sm:text-lg md:text-xl mb-6",children:"Eventos exclusivos para mulheres que empreende no digital. Networking real, conteúdo de verdade e conexões que impulsionam."}),e.jsx("div",{className:"flex justify-center mb-10",children:e.jsx(rt,{variant:"outline",url:"https://www.mulheresnoecommerce.com.br/eventos",sharePath:"/eventos",title:"Eventos | Mulheres no E-commerce",text:"Confira os eventos do Mulheres no E-commerce"})}),e.jsxs(n.div,{initial:{opacity:0,y:20}
26,animate:{opacity:1,y:0},transition:{delay:.4},className:"w-full max-w-4xl mx-auto",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[e.jsx("div",{className:"h-px flex-1 max-w-[60px] bg-gradient-to-r from-transparent to-border"}),e.jsxs("span",{className:"text-xs font-bold tracking-widest text-muted-foreground uppercase",children:["Calendário ",w.getFullYear()]}),e.jsx("div",{className:"h-px flex-1 max-w-[60px] bg-gradient-to-l from-transparent to-border"})]}),!Q&&e.jsx("div",{className:"relative h-28 mb-1",children:R.filter(t=>t.events.length>0).slice(0,4).map((t,s)=>{const x=t.events[0],y=(t.month+.5)/12*100,L=s%2===0?0:28;return e.jsxs("div",{className:"absolute flex flex-col items-center",style:{left:`${y}%`,transform:"translateX(-50%)",top:`${L}px`},children:[e.jsxs(n.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:.5+s*.08},whileHover:{y:-3,scale:1.04},onClick:()=>{v(c===t.month?null:t.month),p("todos"),j(void 0),A.current&&A.current.scrollIntoView({behavior:"smooth",block:"start"})},className:`cursor-pointer bg-card/95 backdrop-blur-sm border-2 rounded-xl px-3 py-2 shadow-card hover:shadow-card-hover transition-all max-w-[150px] ${c===t.month?"border-primary ring-2 ring-primary/20":"border-border"}`,children:[e.jsx("div",{className:`w-full h-1 rounded-full mb-1.5 ${x.formato==="online"?"bg-gradient-verde-agua":x.formato==="presencial"?"bg-gradient-laranja":"bg-gradient-rosa"}`}),e.jsx("p",{className:"text-[10px] font-bold text-foreground truncate leading-tight",children:x.title}),e.jsxs("p",{className:"text-[9px] text-muted-foreground mt-0.5",children:[x.data_inicio?te(new Date(x.data_inicio),"dd MMM",{locale:ce}):"",t.events.length>1&&e.jsxs("span",{className:"ml-1 text-primary font-bold",children:["+",t.events.length-1]})]})]}),e.jsx("div",{className:"w-px flex-1 min-h-[8px]",style:{background:"linear-gradient(to bottom, hsl(var(--border)), hsl(var(--primary) / 0.3))"}})]},t.month)})}),e.jsxs("div",{className:"relative overflow-x-auto scrollbar-none py-3",children:[e.jsx("div",{className:"absolute top-1/2 left-4 right-4 h-[3px] rounded-full -translate-y-[2px] z-0",style:{background:"linear-gradient(90deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.25), hsl(var(--secondary) / 0.25), hsl(var(--primary) / 0.15))"}}),e.jsx("div",{className:"relative flex items-center min-w-[600px] md:min-w-0 px-2",children:R.map(t=>{const s=t.events.length>0,x=w.getMonth()===t.month,y=c===t.month,L=t.month<w.getMonth(),q=s?t.events.map(Ue).sort((Xe,Ke)=>({mne:4,ingressos:3,parceiro:2,mercado:1})[Ke]-{mne:4,ingressos:3,parceiro:2,mercado:1}[Xe])[0]:null,Ne=q?{mne:"hsl(24 90% 55%)",ingressos:"hsl(280 65% 55%)",parceiro:"hsl(210 80% 55%)",mercado:"hsl(0 0% 65%)"}[q]:void 0;return e.jsxs("div",{className:"flex-1 flex flex-col items-center relative group",children:[e.jsxs(n.button,{whileHover:{scale:1.25},whileTap:{scale:.9},onClick:()=>{v(y?null:t.month),p("todos"),j(void 0),s&&A.current&&A.current.scrollIntoView({behavior:"smooth",block:"start"})},style:s&&!y&&Ne?{backgroundColor:Ne,boxShadow:`0 0 0 2px ${Ne}22`}:void 0,className:`relative z-10 rounded-full transition-all duration-300 cursor-pointer ${y?"w-8 h-8 bg-gradient-laranja shadow-soft ring-3 ring-primary/25":s?x?"w-6 h-6 shadow-soft ring-2 ring-accent/30":"w-5 h-5 shadow-sm":x?"w-4 h-4 bg-muted ring-2 ring-accent/20":L?"w-3 h-3 bg-muted/60":"w-3.5 h-3.5 bg-muted/80 hover:bg-muted"}`,title:s?`${t.events.length} evento${t.events.length>1?"s":""} em ${t.label} · ${q?Je[q]:""}`:`Sugira um evento para ${t.label}!`,children:[y&&e.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-[10px] font-bold text-primary-foreground",children:s?t.events.length:"?"}),x&&!y&&e.jsx(n.span,{animate:{scale:[1,1.8,1],opacity:[.6,0,.6]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},className:"absolute inset-0 rounded-full bg-accent/40"})]}),e.jsx("span",{className:`mt-2.5 text-[10px] md:text-xs font-bold transition-colors ${y?"text-primary":x?"text-accent":s?"text-foreground":L?"text-muted-foreground
26/30":"text-muted-foreground/60"}`,children:t.label}),s&&!y?e.jsxs("span",{className:`text-[9px] font-bold mt-0.5 ${x?"text-accent":"text-primary/70"}`,children:[t.events.length," ",t.events.length===1?"evento":"eventos"]}):!s&&!L?e.jsx("span",{className:"text-[8px] text-muted-foreground/40 mt-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:"sugerir"}):null]},t.month)})})]}),e.jsx(ee,{children:c!==null&&e.jsxs(n.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"flex items-center justify-center gap-3 mt-2 overflow-hidden",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs bg-primary/10 text-primary px-3 py-1.5 rounded-full font-semibold",children:[e.jsx(de,{className:"w-3 h-3"}),R[c].label," ",w.getFullYear(),R[c].events.length>0?` · ${R[c].events.length} evento${R[c].events.length>1?"s":""}`:" · nenhum evento"]}),e.jsx("button",{onClick:()=>v(null),className:"text-[10px] text-accent font-semibold underline underline-offset-2 hover:text-accent/80",children:"Limpar"})]})})]})]})]})]}),e.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[je.map(t=>e.jsx(Et,{event:t},t.id)),e.jsx(ft,{placement:"events"}),e.jsx(n.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-card border-2 border-border rounded-2xl shadow-card p-4 md:p-5 mb-10",style:{borderImage:"linear-gradient(90deg, hsl(var(--primary) / 0.2), hsl(var(--accent) / 0.2), hsl(var(--secondary) / 0.2)) 1"},children:e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:r.map(t=>e.jsxs(n.button,{whileTap:{scale:.95},onClick:()=>{p(t.value),j(void 0)},className:`px-4 py-2 rounded-full text-xs font-semibold transition-all duration-200 border-2 ${d===t.value?"border-primary bg-gradient-laranja text-primary-foreground shadow-soft":"border-border bg-background text-muted-foreground hover:border-primary/40 hover:text-foreground hover:bg-warm-glow"}`,children:[t.label,e.jsx("span",{className:`ml-1.5 inline-flex items-center justify-center min-w-[18px] h-[18px] rounded-full text-[10px] font-bold ${d===t.value?"bg-primary-foreground/20 text-primary-foreground":"bg-muted text-muted-foreground"}`,children:ne[t.value]})]},t.value))}),e.jsx("div",{className:"h-6 w-px hidden sm:block",style:{background:"linear-gradient(to bottom, hsl(var(--primary) / 0.3), hsl(var(--accent) / 0.3), hsl(var(--secondary) / 0.3))"}}),e.jsx("div",{className:"flex flex-wrap gap-2 items-center",children:h.map(t=>e.jsxs(n.button,{whileTap:{scale:.95},onClick:()=>u(t.value),className:`px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-200 border-2 inline-flex items-center gap-1.5 ${N===t.value?S[t.value]:t.value==="online"?"border-border bg-sage-soft text-muted-foreground hover:border-secondary/40":t.value==="presencial"?"border-border bg-warm-glow text-muted-foreground hover:border-primary/40":t.value==="hibrido"?"border-border bg-rose-soft text-muted-foreground hover:border-accent/40":"border-border bg-background text-muted-foreground hover:border-primary/30 hover:bg-warm-glow"}`,children:[t.icon,t.label]},t.value))}),_&&e.jsx("button",{onClick:()=>j(void 0),className:"ml-auto text-xs text-accent font-semibold underline underline-offset-2 hover:text-accent/80 transition-colors",children:"✕ Limpar data"})]})}),e.jsxs(n.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.2},className:"mb-8 rounded-2xl border-2 border-primary/20 bg-primary/5 px-5 py-5 md:px-8 md:py-6",children:[e.jsx("p",{className:"text-sm md:text-base leading-relaxed text-foreground",children:e.jsx("span",{className:"font-bold",children:"O Mulheres no E-commerce acredita na força da representatividade."})}),e.jsxs("p",{className:"mt-2 text-sm md:text-base leading-relaxed text-muted-foreground",children:["Por isso, não divulgamos nem participamos de eventos que não tenham, no mínimo, ",e.jsx("strong",{className:"text-foreground",children:"30% de mulheres na grade de palestrantes"}),"."]}),e.jsx("p",{className:"mt-1 text-xs md:text-sm text-muted-foreground hidden md:block",children:"Nosso compromisso é impulsionar a presença feminina nos espaços de decisão, conteúdo e visibilidade."})]}),e.jsx("div",{className:"mb-8",children:e.jsxs(he,{to:"/workshops-gratuitos",className:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-6 rounded-2xl border-2 border-primary/30 bg-primary/5 p-5 hover:border-primary/60 transition-colors",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-[11px] uppercase tracking-[2px] text-primary font-semibold mb-1",children:"Workshops MNE · 100% gratuitos"}),e.jsx("h2",{className:"text-lg sm:text-xl font-serif font-bold",children:"Agenda quinzenal de workshops online"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Cada workshop tem sua própria página, com conteúdo, convidada e marcas parceiras."})]}),e.jsx("span",{className:"inline-flex items-center gap-2 text-sm font-semibold text-primary whitespace-nowrap",children:"Ver workshops →"})]})}),e.jsxs("div",{className:`${Q?"flex flex-col gap-6":"grid grid-cols-[280px_1fr] gap-8 items-start"}`,children:[e.jsxs(n.div,{initial:{opacity:0,x:-20}
26,animate:{opacity:1,x:0},transition:{delay:.15},className:Q?"":"sticky top-24",children:[e.jsx(Tt,{events:b,selectedDate:_,onSelectDate:D,month:m,onMonthChange:k,onMonthClick:t=>{j(void 0),v(t.getMonth()),p("todos")}}),!Q&&!g&&b.length>0&&e.jsxs("div",{className:"mt-4 bg-card border-2 border-border rounded-2xl p-4 space-y-3 shadow-card overflow-hidden relative",children:[e.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-primary via-accent to-secondary"}),e.jsxs("h3",{className:"text-xs font-bold text-muted-foreground uppercase tracking-wider flex items-center gap-2 pt-1",children:[e.jsx(He,{className:"w-3.5 h-3.5 text-accent"}),"Resumo"]}),e.jsxs("div",{className:"space-y-2.5",children:[[{icon:e.jsx(bt,{className:"w-3.5 h-3.5"}),label:"Online",count:b.filter(t=>t.formato==="online").length,gradient:"bg-gradient-verde-agua"},{icon:e.jsx(se,{className:"w-3.5 h-3.5"}),label:"Presencial",count:b.filter(t=>t.formato==="presencial").length,gradient:"bg-gradient-laranja"},{icon:e.jsx(we,{className:"w-3.5 h-3.5"}),label:"Híbrido",count:b.filter(t=>t.formato==="hibrido").length,gradient:"bg-gradient-rosa"}].map(t=>e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsxs("span",{className:"flex items-center gap-2 text-muted-foreground",children:[t.icon," ",t.label]}),e.jsx("span",{className:"font-bold text-foreground",children:t.count})]}),e.jsx("div",{className:"h-2 bg-muted rounded-full overflow-hidden",children:e.jsx(n.div,{initial:{width:0},animate:{width:`${b.length>0?t.count/b.length*100:0}%`},transition:{duration:.8,ease:"easeOut"},className:`h-full ${t.gradient} rounded-full`})})]},t.label)),e.jsxs("div",{className:"pt-2 border-t border-border flex items-center justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground font-medium",children:"Total"}),e.jsx("span",{className:"font-bold text-gradient-primary text-lg",children:b.length})]})]})]})]}),e.jsx("div",{ref:A,children:g?e.jsx("div",{className:"space-y-6",children:[1,2,3].map(t=>e.jsxs("div",{className:"bg-card border-2 border-border rounded-2xl p-6 animate-pulse shadow-card",children:[e.jsx("div",{className:"h-5 bg-muted rounded w-1/4 mb-4"}),e.jsx("div",{className:"h-6 bg-muted rounded w-3/4 mb-3"}),e.jsx("div",{className:"h-4 bg-muted rounded w-full mb-2"}),e.jsx("div",{className:"h-4 bg-muted rounded w-2/3"})]},t))}):ue.length===0?e.jsxs("div",{className:"space-y-6",children:[e.jsxs(n.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center py-12 rounded-3xl shadow-card overflow-hidden relative",style:{background:"linear-gradient(135deg, hsl(var(--warm-glow)), hsl(var(--rose-soft)), hsl(var(--sage-soft)))"},children:[e.jsx("div",{className:"absolute inset-0 border-2 border-border rounded-3xl"}),e.jsx(n.div,{animate:{scale:[1,1.1,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-rosa flex items-center justify-center shadow-soft relative z-10",children:e.jsx(de,{className:"w-8 h-8 text-accent-foreground"})}),e.jsx("h3",{className:"text-xl font-serif font-bold mb-2 relative z-10",children:"Nenhum evento neste período"}),e.jsx("p",{className:"text-muted-foreground max-w-md mx-auto mb-6 text-sm relative z-10",children:"Mas você pode ajudar a comunidade sugerindo o evento ideal! 👇"})]}),e.jsxs(n.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-3xl shadow-card overflow-hidden relative",style:{background:"linear-gradient(135deg, hsl(var(--sage-soft)), hsl(var(--warm-glow)))"},children:[e.jsx("div",{className:"absolute inset-0 border-2 border-border rounded-3xl"}),e.jsxs("div",{className:"relative z-10 p-6 md:p-10",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("div",{className:"w-14 h-14 mx-auto rounded-2xl bg-gradient-verde-agua flex items-center justify-center shadow-soft mb-4",children:e.jsx(vt,{className:"w-6 h-6 text-secondary-foreground"})}),e.jsx("h3",{className:"text-xl font-serif font-bold mb-1",children:"Receba alertas de novos eventos"}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-md mx-auto",children:"Seja a primeira a saber quando novos eventos forem publicados"})]}),be?e.jsxs(n.div,{initial:{opacity:0,scale:.95}
26,animate:{opacity:1,scale:1},className:"flex items-center gap-3 bg-secondary/20 rounded-xl p-4 max-w-md mx-auto",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-verde-agua flex items-center justify-center shadow-soft flex-shrink-0",children:e.jsx(le,{className:"w-5 h-5 text-secondary-foreground"})}),e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Pronto! Você será avisada quando novos eventos surgirem ✨"})]}):me==="checking"?e.jsxs(n.div,{initial:{opacity:0},animate:{opacity:1},className:"flex flex-col items-center gap-3 py-6",children:[e.jsx(Ge,{className:"w-8 h-8 text-primary animate-spin"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Verificando seus dados..."})]}):me==="extra"?e.jsxs(n.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"space-y-3 max-w-lg mx-auto",children:[e.jsxs("div",{className:"text-center mb-2",children:[e.jsx("h4",{className:"text-base font-serif font-bold",children:"Conte mais sobre você 💜"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Primeira vez? Dados rápidos para te conhecermos melhor."})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Estado"}),e.jsxs(Ee,{value:re,onValueChange:K,children:[e.jsx(Me,{className:"h-[46px]",children:e.jsx($e,{placeholder:"UF"})}),e.jsx(Ie,{children:Fe.map(t=>e.jsx(Pe,{value:t,children:t},t))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Tipo de atuação"}),e.jsxs(Ee,{value:Z,onValueChange:ve,children:[e.jsx(Me,{className:"h-[46px]",children:e.jsx($e,{placeholder:"Selecione"})}),e.jsx(Ie,{children:Ze.map(t=>e.jsx(Pe,{value:t.value,children:t.label},t.value))})]})]})]}),e.jsxs("div",{className:"text-center pt-1",children:[e.jsxs("label",{className:"mb-3 flex items-start justify-center gap-3 text-left text-xs leading-relaxed text-muted-foreground",children:[e.jsx(Ce,{checked:I,onCheckedChange:t=>P(t===!0),className:"mt-0.5"}),"Autorizo o MNE a enviar avisos e comunicações sobre eventos."]}),e.jsx(n.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:oe,disabled:X,className:"px-8 py-3 rounded-full text-sm font-bold bg-gradient-laranja text-primary-foreground shadow-soft hover:shadow-card-hover transition-shadow disabled:opacity-50",children:X?"Enviando...":"Quero ser avisada"})]})]}):e.jsxs("form",{onSubmit:t=>{t.preventDefault(),B()},className:"space-y-3 max-w-lg mx-auto",children:[e.jsx("div",{children:e.jsx("input",{type:"text",value:O,onChange:t=>i(t.target.value),placeholder:"Seu nome *",required:!0,maxLength:100,className:"w-full px-4 py-3 rounded-xl border-2 border-border bg-background text-sm focus:outline-none focus:border-primary/50 transition-colors"})}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{className:"relative",children:[e.jsx(st,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:"email",value:$,onChange:t=>E(t.target.value),placeholder:"[email protected] *",required:!0,className:"w-full pl-10 pr-3 py-3 rounded-xl border-2 border-border bg-background text-sm focus:outline-none focus:border-primary/50 transition-colors"})]}),e.jsx(_e,{value:M,onChange:t=>V(t||""),placeholder:"WhatsApp *",required:!0})]}),e.jsxs("div",{className:"text-center pt-1",children:[e.jsxs("label",{className:"mb-3 flex items-start justify-center gap-3 text-left text-xs leading-relaxed text-muted-foreground",children:[e.jsx(Ce,{checked:I,onCheckedChange:t=>P(t===!0),className:"mt-0.5"}),"Autorizo o MNE a enviar avisos e comunicações sobre eventos."]}),e.jsx(n.button,{whileHover:{scale:1.02},whileTap:{scale:.98},type:"submit",disabled:X,className:"px-8 py-3 rounded-full text-sm font-bold bg-gradient-laranja text-primary-foreground shadow-soft hover:shadow-card-hover transition-shadow disabled:opacity-50",children:X?"Enviando...":"Quero ser avisada"})]})]})]})]}),e.jsx(ee,{mode:"wait",children:xe?e.jsx(n.div,{initial:{opacity:0,scale:.95}
26,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:e.jsx(Ae,{onBack:()=>G(!1)})},"form"):e.jsxs(n.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},whileHover:{scale:1.02,y:-2},whileTap:{scale:.98},onClick:()=>G(!0),className:"w-full rounded-3xl shadow-card border-2 border-border p-8 flex flex-col items-center justify-center gap-3 text-center cursor-pointer transition-all hover:shadow-card-hover relative overflow-hidden",style:{background:"linear-gradient(135deg, hsl(var(--sage-soft)), hsl(var(--warm-glow)))"},children:[e.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-verde-agua flex items-center justify-center shadow-soft",children:e.jsx(ke,{className:"w-7 h-7 text-secondary-foreground"})}),e.jsx("h3",{className:"text-lg font-serif font-bold",children:"Sugira um evento para a comunidade"}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:"Nos conte o que você gostaria de ver na nossa agenda"}),e.jsx("span",{className:"mt-2 px-5 py-2 rounded-full text-xs font-bold bg-gradient-laranja text-primary-foreground shadow-soft",children:"Sugerir evento"})]},"cta")})]}):e.jsxs("div",{className:"space-y-10",children:[e.jsx(ee,{mode:"wait",children:ue.map((t,s)=>e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{delay:s*.06,duration:.4},children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 mb-6",children:[e.jsx("div",{className:`w-9 h-9 rounded-xl ${s%3===0?"bg-gradient-laranja":s%3===1?"bg-gradient-rosa":"bg-gradient-verde-agua"} flex items-center justify-center flex-shrink-0 shadow-soft`,children:e.jsx(de,{className:"w-4.5 h-4.5 text-primary-foreground"})}),e.jsx("h2",{className:"text-base sm:text-lg font-serif font-bold capitalize min-w-0 break-words",children:t.label}),e.jsx("div",{className:`flex-1 min-w-[12px] h-px bg-gradient-to-r ${ye[s%3]} opacity-40`}),e.jsxs("span",{className:`text-[11px] sm:text-xs font-bold whitespace-nowrap flex-shrink-0 px-2.5 sm:px-3 py-1 rounded-full shadow-sm ${s%3===0?"bg-gradient-laranja text-primary-foreground":s%3===1?"bg-gradient-rosa text-accent-foreground":"bg-gradient-verde-agua text-secondary-foreground"}`,children:[t.events.length," evento",t.events.length>1?"s":""]})]}),e.jsx("div",{className:"grid grid-cols-1 gap-4",children:t.events.map((x,y)=>e.jsx(_t,{event:x,index:y,communityName:x.communities?.name,communityId:x.communities?.id,communityData:x.communities||null},x.id))})]},t.key))}),e.jsx("div",{className:"mt-10",children:e.jsx(ee,{mode:"wait",children:xe?e.jsx(n.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:e.jsx(Ae,{onBack:()=>G(!1)})},"form"):e.jsxs(n.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},whileHover:{scale:1.01},whileTap:{scale:.99},onClick:()=>G(!0),className:"w-full text-center py-8 px-6 rounded-3xl shadow-card overflow-hidden relative cursor-pointer flex flex-col items-center gap-2 border-2 border-border hover:shadow-card-hover transition-shadow",style:{background:"linear-gradient(135deg, hsl(var(--warm-glow)), hsl(var(--rose-soft)), hsl(var(--sage-soft)))"},children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-verde-agua flex items-center justify-center shadow-soft",children:e.jsx(ke,{className:"w-6 h-6 text-secondary-foreground"})}),e.jsx("h3",{className:"text-lg font-serif font-bold",children:"Sugira um evento para a comunidade"}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:"Nos conte o que você gostaria de ver na nossa agenda"}),e.jsx("span",{className:"mt-2 px-5 py-2 rounded-full text-xs font-bold bg-gradient-laranja text-primary-foreground shadow-soft",children:"Sugerir evento"})]},"cta")})})]})})]}),e.jsx(At,{})]})]})};export{$a 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.