1import{j as e,m as u,A as T}from"./vendor-motion-C-Vy0dKP.js";import{r as n,j as V,e as R}from"./vendor-react-BaAVn3DV.js";import{a as E,u as j,s as B,P as F,S as D,X as q,E as J}from"./index-DrP1MJKL.js";import{B as z,P as U,i as C,s as G,a as H}from"./smartFormHelper-C4XaQMdv.js";import{S as _,a as S,b as k,c as L,d as I}from"./select-C_dyDxFr.js";import{C as M}from"./circle-check-big-BYNlmM_q.js";import{T as Q}from"./trending-up-C0Nr7Ta9.js";import{L as X}from"./loader-circle-qqQ0hyKl.js";import{S as Y}from"./send-Hmcf2IhF.js";import{G as O}from"./graduation-cap-B1hnecVF.js";import{S as Z}from"./search-CVvElzuS.js";import{B as K}from"./book-open-1hULNgwz.js";import{B as A}from"./briefcase-DR9fWVxt.js";import{R as P}from"./rocket-C80eQ5JC.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";const W=[{id:"marketing-digital",label:"Marketing Digital & Performance",emoji:"ð"},{id:"gestao-ecommerce",label:"Gestão de E-commerce",emoji:"ðª"},{id:"vendas-marketplace",label:"Vendas em Marketplaces",emoji:"ð"},{id:"lideranca-feminina",label:"Liderança Feminina",emoji:"ð"},{id:"financas-negocio",label:"Finanças para o Negócio",emoji:"ð°"},{id:"ia-automacao",label:"IA & Automação no E-commerce",emoji:"ð¤"},{id:"logistica-operacoes",label:"LogÃstica & Operações",emoji:"ð¦"},{id:"branding-marca",label:"Branding & Construção de Marca",emoji:"â¨"},{id:"social-commerce",label:"Social Commerce & Influência",emoji:"ð±"},{id:"analytics-dados",label:"Analytics & Dados",emoji:"ð"},{id:"experiencia-cliente",label:"Experiência do Cliente (CX)",emoji:"ð"},{id:"empreendedorismo",label:"Empreendedorismo do Zero",emoji:"ð"},{id:"carreira-transicao",label:"Transição de Carreira para o Digital",emoji:"ð"},{id:"internacionalizacao",label:"Internacionalização & Cross-border",emoji:"ð"}],ee=()=>{const[c,r]=n.useState("vote"),[i,v]=n.useState([]),[d,f]=n.useState(""),[l,g]=n.useState(""),[m,x]=n.useState(""),[b,w]=n.useState(""),N=a=>{v(o=>o.includes(a)?o.filter(h=>h!==a):[...o,a])},t=async()=>{if(!C(d)){j.error("Informe um e-mail válido.");return}r("checking");try{const a=await G(d);if(a.isNew)r("extra");else{const o=a.prefill||{},h=o.name?`${o.name} ${o.last_name||""}`.trim():"";h&&g(h),await s(h||l)}}catch{r("extra")}},s=async a=>{if(!a.trim()){j.error("Preencha seu nome."),r("extra");return}r("submitting");try{const o=i.map($=>({topic:$,voter_name:a.trim(),voter_email:d.trim()})),{error:h}=await B.from("course_interest_votes").insert(o);if(h){if(h.code==="23505")j.error("Você já votou em um desses temas com esse e-mail.");else throw h;r("email");return}const y={name:a.trim().split(" ")[0],last_name:a.trim().split(" ").slice(1).join(" ")||void 0,signup_source:"curso_interesse"};m&&(y.state=m),b&&(y.profile=b),H(d,y),r("done"),j.success("Obrigada pelo seu voto!")}catch{j.error("Erro ao enviar. Tente novamente."),r("email")}},p="w-full px-4 py-3 rounded-xl border border-white/10 bg-white/[0.06] text-white focus:border-primary focus:outline-none transition-colors text-sm placeholder:text-white/30";return e.jsxs(u.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-16 bg-white/[0.04] border border-white/10 rounded-2xl overflow-hidden",children:[e.jsxs("div",{className:"bg-white/[0.03] px-6 py-8 text-center border-b border-white/10",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 text-primary mb-3",children:[e.jsx(E,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium tracking-widest uppercase",children:"Ajude a construir"})]}),e.jsxs("h2",{className:"text-2xl md:text-3xl font-serif font-bold mb-2 text-white",children:["Quais temas você quer"," ",e.jsx("span",{className:"text-gradient-primary italic",children:"aprender"}),"?"]}),e.jsx("p",{className:"text-white/50 max-w-lg mx-auto text-sm",children:"Estamos criando trilhas e cursos exclusivos para a comunidade MNE. Vote nos temas que mais importam para você e ajude a moldar o conteúdo."})]}),e.jsx("div",{className:"p-6 md:p-8",children:e.jsx(T,{mode:"wait",children:c==="done"?e.jsxs(u.div,{initial:{opacity:0,scale:.95}
1,animate:{opacity:1,scale:1},className:"text-center py-8",children:[e.jsx(M,{className:"w-14 h-14 text-secondary mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-serif font-bold mb-2 text-white",children:"Voto registrado!"}),e.jsx("p",{className:"text-white/50 max-w-md mx-auto mb-4",children:"Obrigada por nos ajudar a criar os melhores conteúdos para a comunidade. Avisaremos quando os cursos estiverem disponÃveis!"}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-xs text-white/40",children:[e.jsx(Q,{className:"w-3.5 h-3.5"}),e.jsxs("span",{children:["Você votou em ",i.length," tema",i.length>1?"s":""]})]})]},"done"):c==="checking"||c==="submitting"?e.jsxs(u.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"flex flex-col items-center justify-center gap-3 py-10",children:[e.jsx(X,{className:"w-8 h-8 text-primary animate-spin"}),e.jsx("p",{className:"text-sm text-white/50",children:c==="checking"?"Verificando seus dados...":"Enviando votos..."})]},"loading"):c==="extra"?e.jsxs(u.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"max-w-md mx-auto",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-lg font-serif font-bold text-white",children:"Conte mais sobre você ð"}),e.jsx("p",{className:"text-sm text-white/50 mt-1",children:"Primeira vez? Preencha alguns dados rápidos."})]}),e.jsxs("div",{className:"space-y-4 mb-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1.5 text-white/80",children:"Seu nome *"}),e.jsx("input",{type:"text",value:l,onChange:a=>g(a.target.value),placeholder:"Seu nome",maxLength:100,className:p})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-white/40 mb-1 block",children:"Estado"}),e.jsxs(_,{value:m,onValueChange:x,children:[e.jsx(S,{className:"h-[46px]",children:e.jsx(k,{placeholder:"UF"})}),e.jsx(L,{children:z.map(a=>e.jsx(I,{value:a,children:a},a))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-white/40 mb-1 block",children:"Tipo de atuação"}),e.jsxs(_,{value:b,onValueChange:w,children:[e.jsx(S,{className:"h-[46px]",children:e.jsx(k,{placeholder:"Selecione"})}),e.jsx(L,{children:U.map(a=>e.jsx(I,{value:a.value,children:a.label},a.value))})]})]})]})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("button",{onClick:()=>s(l),disabled:!l.trim(),className:`flex-1 flex items-center justify-center gap-2 py-3 rounded-full text-sm font-medium transition-all duration-200 2 ${l.trim()?"bg-primary text-primary-foreground hover:shadow-soft hover:scale-[1.01]":"bg-white/10 text-white/30"}`,children:[e.jsx(Y,{className:"w-4 h-4"}),"Enviar votos"]}),e.jsx("button",{onClick:()=>r("email"),className:"px-5 py-3 rounded-full text-sm font-medium border border-white/10 text-white/40 hover:border-primary/30",children:"Voltar"})]})]},"extra"):c==="email"?e.jsxs(u.div,{initial:{opacity:0}
2,animate:{opacity:1},className:"max-w-md mx-auto",children:[e.jsxs("p",{className:"text-sm text-white/50 text-center mb-6",children:["Quase lá! Informe seu e-mail para registrar seus"," ",e.jsxs("strong",{children:[i.length," voto",i.length>1?"s":""]}),"."]}),e.jsx("div",{className:"space-y-4 mb-6",children:e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1.5 text-white/80",children:"Seu e-mail *"}),e.jsx("input",{type:"email",value:d,onChange:a=>f(a.target.value),placeholder:"[email protected]",maxLength:255,className:p})]})}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("button",{onClick:t,disabled:!C(d),className:`flex-1 flex items-center justify-center gap-2 py-3 rounded-full text-sm font-medium transition-all duration-200 3 ${C(d)?"bg-primary text-primary-foreground hover:shadow-soft hover:scale-[1.01]":"bg-white/10 text-white/30"}`,children:"Continuar"}),e.jsx("button",{onClick:()=>r("vote"),className:"px-5 py-3 rounded-full text-sm font-medium border border-white/10 text-white/40 hover:border-primary/30",children:"Voltar"})]})]},"email"):e.jsxs(u.div,{initial:{opacity:0}
3,animate:{opacity:1},children:[e.jsx("p",{className:"text-sm text-white/50 mb-5 text-center",children:"Selecione todos os temas que você tem interesse (pode marcar quantos quiser):"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-8",children:W.map(a=>{const o=i.includes(a.id);return e.jsxs("button",{onClick:()=>N(a.id),className:`flex items-center gap-3 px-4 py-3.5 rounded-xl border text-left transition-all duration-200 4 ${o?"border-primary bg-primary/10 shadow-sm":"border-white/10 bg-white/[0.02] hover:border-primary/30"}`,children:[e.jsx("span",{className:"text-xl flex-shrink-0",children:a.emoji}),e.jsx("span",{className:`text-sm font-medium ${o?"text-primary":"text-white/80"}`,children:a.label}),o&&e.jsx(M,{className:"w-4 h-4 text-primary ml-auto flex-shrink-0"})]},a.id)})}),e.jsx("div",{className:"text-center",children:e.jsxs("button",{onClick:()=>r("email"),disabled:i.length===0,className:`inline-flex items-center gap-2 px-8 py-3 rounded-full text-sm font-medium transition-all duration-200 5 ${i.length>0?"bg-primary text-primary-foreground hover:shadow-soft hover:scale-[1.02] active:scale-[0.98]":"bg-white/10 text-white/30 curs
5or-not-allowed"}`,children:[e.jsx(E,{className:"w-4 h-4"}),i.length>0?`Continuar com ${i.length} tema${i.length>1?"s":""}`:"Selecione pelo menos um tema"]})})]},"vote")})})]})},te={gravado:"Gravado",online_ao_vivo:"Online ao Vivo",mba:"MBA",hibrido:"HÃbrido",presencial:"Presencial"},ae={executiva:"bg-blue-400/20 text-blue-300",empreendedora:"bg-amber-400/20 text-amber-300",ambas:"bg-purple-400/20 text-purple-300"},se={executiva:"Executiva",empreendedora:"Empreendedora",ambas:"Ambas"},Ce=()=>{const{journey:c}=V(),r=R(),[i,v]=n.useState([]),[d,f]=n.useState(!0),[l,g]=n.useState(""),m=c==="executiva"||c==="empreendedora"?c:"todas",x=m==="executiva"?{title:"Cursos para Executivas de E-commerce",description:"Cursos de liderança, estratégia e mercado digital para executivas, com curadoria e condições especiais da comunidade MNE.",canonical:"https://www.mulheresnoecommerce.com.br/cursos-mne/executiva"}:m==="empreendedora"?{title:"Cursos para Empreendedoras no E-commerce",description:"Cursos de e-commerce, marketing digital e gestão para empreendedoras, com curadoria e condições especiais da comunidade MNE.",canonical:"https://www.mulheresnoecommerce.com.br/cursos-mne/empreendedora"}:{title:"Cursos de E-commerce e Marketing Digital",description:"Cursos para mulheres em e-commerce, marketing digital, liderança e gestão, com curadoria e condições especiais da comunidade MNE.",canonical:"https://www.mulheresnoecommerce.com.br/cursos-mne"};n.useEffect(()=>{(async()=>{f(!0);const{data:s}=await B.from("mne_courses_public").select("id, name, cover_image_url, institution, category, journey, short_description, format, external_link, original_price, mne_price, discount_label, cta_label, order_index").order("order_index");s&&v(s),f(!1)})()},[]);const b=n.useMemo(()=>{let t=i;if(m!=="todas"&&(t=t.filter(s=>s.journey===m||s.journey==="ambas")),l.trim()){const s=l.toLowerCase().trim();t=t.filter(p=>p.name.toLowerCase().includes(s)||p.institution?.toLowerCase().includes(s)||p.short_description?.toLowerCase().includes(s)||p.category?.toLowerCase().includes(s))}return t},[i,m,l]),w=n.useMemo(()=>[{"@context":"https://schema.org","@type":"ItemList",name:"Cursos MNE para mulheres no e-commerce",numberOfItems:i.length,itemListElement:i.map((t,s)=>({"@type":"ListItem",position:s+1,item:{"@type":"Course",name:t.name,description:t.short_description||`Curso oferecido por ${t.institution||"parceiro MNE"}.`,provider:{"@type":"Organization",name:t.institution||"Mulheres no E-commerce"},...t.external_link?{url:t.external_link}:{}}}))},{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"InÃcio",item:"https://www.mulheresnoecommerce.com.br/"},{"@type":"ListItem",position:2,name:x.title,item:x.canonical}]}],[i,x.canonical,x.title]),N=t=>{t==="todas"?r("/cursos-mne",{replace:!0}):r(`/cursos-mne/${t}`,{replace:!0})};
5return e.jsxs(F,{children:[e.jsx(D,{title:x.title,description:x.description,canonical:x.canonical,ogImage:"https://www.mulheresnoecommerce.com.br/__l5e/assets-v1/f6d5d0b4-7812-4d70-aa05-e27217376381/og-cursos.jpg",jsonLd:w}),e.jsxs("section",{className:"bg-[hsl(0,0%,6%)] text-white py-20 sm:py-24 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-primary/10 rounded-full blur-[120px] pointer-events-none"}),e.jsx("div",{className:"absolute bottom-0 right-1/4 w-80 h-80 bg-primary/5 rounded-full blur-[100px] pointer-events-none"}),e.jsx("div",{className:"container mx-auto px-4 text-center max-w-3xl relative z-10",children:e.jsxs(u.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"inline-flex items-center gap-2 mb-6",children:[e.jsx(O,{className:"w-5 h-5 text-primary"}),e.jsx("span",{className:"text-xs font-bold tracking-[0.2em] uppercase text-primary",children:"Exclusivo para membros"})]}),e.jsxs("h1",{className:"text-3xl sm:text-5xl font-serif font-bold mb-5 leading-tight",children:["Cursos ",e.jsx("span",{className:"italic text-primary",children:"Mulheres no E-commerce"})]}),e.jsxs("p",{className:"text-white/50 text-lg leading-relaxed max-w-2xl mx-auto",children:["Curadoria MNE com ",e.jsx("strong",{className:"text-white/80",children:"descontos exclusivos"})," para membros da comunidade. Invista no seu desenvolvimento com condições especiais."]})]})})]}),e.jsx("div",{className:"bg-[hsl(0,0%,6%)] text-white pb-20",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[e.jsx("div",{className:"max-w-md mx-auto mb-8 pt-4",children:e.jsxs("div",{className:"relative",children:[e.jsx(Z,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-white/30"}),e.jsx("input",{type:"text",value:l,onChange:t=>g(t.target.value),placeholder:"Buscar curso, instituição ou tema...",className:"w-full pl-11 pr-10 py-3 rounded-xl bg-white/[0.06] border border-white/10 text-white placeholder:text-white/30 text-sm focus:outline-none focus:border-primary/50 focus:ring-1 focus:ring-primary/30 transition-all"}),l&&e.jsx("button",{onClick:()=>g(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/30 hover:text-white/60 transition-colors",children:e.jsx(q,{className:"w-4 h-4"})})]})}),e.jsx("div",{className:"flex flex-wrap justify-center gap-2 mb-10",children:[{key:"todas",label:"Todos os Cursos",icon:K},{key:"executiva",label:"Jornada Executiva",icon:A},{key:"empreendedora",label:"Jornada Empreendedora",icon:P}].map(({key:t,label:s,icon:p})=>e.jsxs("button",{onClick:()=>N(t),className:`flex items-center gap-2 px-4 sm:px-6 py-2.5 rounded-full text-sm font-medium transition-all 6 ${m===t?"bg-primary text-primary-foreground shadow-lg shadow-primary/20":"bg-white/[0.06] text-white/50 hover:text-white/80 hover:bg-white/10 border border-white/10"}`,children:[e.jsx(p,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:s}),e.jsx("span",{className:"sm:hidden",children:t==="todas"?"Todos":t==="executiva"?"Executiva":"Empreendedora"})]},t))}),d?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(t=>e.jsx("div",{className:"bg-white/5 border border-white/10 rounded-2xl h-80 animate-pulse"},t))}):b.length===0?e.jsxs("div",{className:"text-center py-16",children:[e.jsx(O,{className:"w-16 h-16 text-white/10 mx-auto mb-4"}),e.jsx("p",{className:"text-white/40 text-lg",children:l?"Nenhum curso encontrado para essa busca.":"Nenhum curso disponÃvel nesta jornada."})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:b.map((t,s)=>e.jsxs(u.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:s*.06},className:"group bg-white/[0.04] border border-white/10 rounded-2xl overflow-hidden hover:border-primary/40 hover:bg-white/[0.07] transition-all duration-300 flex flex-col",children:[e.jsxs("div",{className:"aspect-video bg-white/5 relative overflow-hidden",children:[t.cover_image_url?e.jsx("img",{src:t.cover_image_url,alt:t.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 opacity-90 group-hover:opacity-100"}):e.jsx("img",{src:"/assets/cursos-fallback.png",alt:t.name,className:"w-full h-full object-cover opacity-80 group-hover:opacity-100 transition-opacity duration-500"}),t.discount_label&&e.jsx("span",{className:"absolute top-3 right-3 px-4 py-1.5 rounded-full bg-primary text-primary-foreground text-sm font-extrabold shadow-xl shadow-primary/40 tracking-wide border border-white/20 backdrop-blur-sm",children:t.discount_label})]}),e.jsxs("div",{className:"p-5 flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:[t.journey&&e.jsx("span",{className:`text-[10px] px-2.5 py-0.5 rounded-full font-semibold ${ae[t.journey]||"bg-white/10 text-white/60"}`,children:se[t.journey]||t.journey}),t.format&&e.jsx("span",{className:"text-[10px] px-2.5 py-0.5 rounded-full bg-white/10 text-white/50 font-medium",children:te[t.format]||t.format})]}),e.jsx("h3",{className:"font-semibold text-lg mb-1 line-clamp-2 text-white/95",children:t.name}),t.institution&&e.jsx("p",{className:"text-xs text-white/40 mb-2",children:t.institution}),t.short_description&&e.jsx("p",{className:"text-sm text-white/50 line-clamp-2 mb-4",children:t.short_description}),e.jsxs("div",{className:"mt-auto",children:[e.jsxs("div",{className:"flex items-baseline gap-2 mb-4",children:[t.mne_price!=null&&e.jsxs("span",{className:"text-2xl font-bold text-primary",children:["R$ ",t.mne_price.toLocaleStr
6ing("pt-BR",{minimumFractionDigits:2})]}),t.original_price!=null&&e.jsxs("span",{className:"text-sm text-white/30 line-through",children:["R$ ",t.original_price.toLocaleString("pt-BR",{minimumFractionDigits:2})]})]}),t.external_link&&e.jsxs("a",{href:t.external_link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full px-4 py-3 rounded-xl bg-primary text-primary-foreground font-medium text-sm hover:opacity-90 transition-opacity",children:[t.cta_label||"Acessar com desconto",e.jsx(J,{className:"w-4 h-4"})]})]})]})]},t.id))}),e.jsx(ee,{}),e.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"border border-blue-500/20 bg-blue-500/5 rounded-2xl p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(A,{className:"w-6 h-6 text-blue-400"}),e.jsx("h3",{className:"font-semibold text-lg text-white/90",children:"Jornada Executiva"})]}),e.jsx("p",{className:"text-sm text-white/50 leading-relaxed",children:"Desenvolvimento de liderança, gestão, negociação, comunicação e crescimento corporativo."})]}),e.jsxs("div",{className:"border border-amber-500/20 bg-amber-500/5 rounded-2xl p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(P,{className:"w-6 h-6 text-amber-400"}),e.jsx("h3",{className:"font-semibold text-lg text-white/90",children:"Jornada Empreendedora"})]}),e.jsx("p",{className:"text-sm text-white/50 leading-relaxed",children:"Desenvolvimento de produto, vendas, marketing, posicionamento e escala de negócios próprios."})]})]})]})})]})};export{Ce 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.