PageSourceSearch

https://genesissa.com/_nuxt/C1VkpwRA.js

js genesissa.com collected 2026-09-24 14:44:02 UTC 14,025 bytes, 1 lines download raw bytes

1import{_ as F}from"./CPH0xhOW.js";import{M as D,cd as q,co as I,b7 as E,by as L,b4 as N,x as r,u as t,H as R,bO as s,bE as e,w as C,s as g,b$ as G,bm as w,aX as H,c5 as O,c7 as T,bc as n}from"./HqA1Igia.js";import{u as $}from"./BRHZf1yO.js";import{u as U}from"./Cg61vMxN.js";import"./YPoh9DPD.js";const X={key:0,class:"mkt-funil relative min-h-screen bg-[var(--bg)]"},Y={class:"relative mx-auto max-w-lg px-4 py-10 sm:py-14"},J={class:"mb-8 flex justify-center"},K={key:0,class:"rounded-2xl border border-[var(--border)] bg-[var(--surface)] p-8 text-center shadow-[var(--shadow)] sm:p-10"},Q={class:"text-2xl font-extrabold text-[var(--text)]"},W={class:"mt-2 text-sm leading-relaxed text-[var(--muted)]"},Z={key:1,class:"rounded-2xl border border-[var(--border)] bg-[var(--surface)] p-8 text-center shadow-[var(--shadow)] sm:p-10"},tt={class:"text-xl font-bold text-[var(--text)]"},et={class:"mt-2 text-sm text-[var(--muted)]"},st={key:2,class:"rounded-2xl border border-[color-mix(in_srgb,var(--status-success)_35%,transparent)] bg-[var(--surface)] p-8 text-center shadow-[var(--shadow)] sm:p-10"},at={class:"text-[11px] font-bold uppercase tracking-[0.14em] text-[var(--accent)]"},ot={class:"mt-2 text-2xl font-extrabold text-[var(--text)]"},rt={class:"mt-2 text-sm text-[var(--muted)]"},nt={class:"mt-6 rounded-xl border border-[var(--border)] bg-[var(--surface-2)] p-5 text-left"},it={class:"mb-4 text-sm font-bold text-[var(--text)]"},lt={class:"space-y-3 text-sm"},dt={class:"flex justify-between gap-3"},ct={class:"text-[var(--muted)]"},ut={class:"font-semibold text-[var(--text)]"},vt={class:"flex justify-between gap-3"},xt={class:"text-[var(--muted)]"},mt={class:"font-semibold tabular-nums text-[var(--text)]"},bt={class:"flex justify-between gap-3"},ft={class:"text-[var(--muted)]"},pt={class:"font-semibold text-[var(--text)]"},ht={class:"flex justify-between gap-3"},_t={class:"text-[var(--muted)]"},gt={class:"font-semibold text-[var(--text)]"},wt={key:3,class:"rounded-2xl border border-[var(--border)] bg-[var(--surface)] p-8 text-center shadow-[var(--shadow)] sm:p-10"},yt={class:"text-2xl font-extrabold text-[var(--text)]"},kt={class:"mt-2 text-sm leading-relaxed text-[var(--muted)]"},jt={key:0,class:"mt-4 break-all font-mono text-[10px] text-[var(--subtle)]"},At={class:"mt-6 rounded-xl border border-[var(--border)] bg-[var(--surface-2)] p-4 text-left"},Ct={class:"text-sm font-bold text-[var(--text)]"},zt={class:"mt-2 list-inside list-disc space-y-1 text-xs leading-relaxed text-[var(--muted)] sm:text-sm"},Mt={class:"mt-6 flex flex-col gap-3 sm:flex-row"},Vt=["disabled"],Bt={class:"mt-8 text-center text-xs text-[var(--subtle)]"},Pt={key:1,class:"assinatura-page dark min-h-screen flex items-center justify-center p-4",style:{background:"var(--bg-gradient)"}},St={class:"max-w-2xl w-full"},Ft={key:0,class:"dashboard-card rounded-2xl p-12 text-center"},Dt={class:"text-3xl font-bold text-white mb-4"},qt={class:"text-xl text-white/70 mb-8"},It={key:1,class:"bg-[var(--surface)] backdrop-blur-sm rounded-2xl border border-[var(--border)] p-12 text-center"},Et={class:"text-2xl font-bold text-[var(--text)] mb-2"},Lt={class:"text-[var(--muted)]"},Nt={key:2,class:"bg-[var(--surface)] backdrop-blur-sm rounded-2xl border border-[var(--status-success)] p-12 text-center"},Rt={class:"text-3xl font-bold text-[var(--text)] mb-4"},Gt={class:"text-xl text-[var(--muted)] mb-8"},Ht={class:"bg-[var(--surface-2)] rounded-lg p-6 mb-8"},Ot={class:"text-lg font-semibold text-[var(--text)] mb-4"},Tt={class:"space-y-3 text-left"},$t={class:"flex justify-between"},Ut={class:"text-[var(--muted)]"},Xt={class:"text-[var(--text)] font-semibold"},Yt={class:"flex justify-between"},Jt={class:"text-[var(--muted)]"},Kt={class:"text-[var(--text)] font-semibold"},Qt={class:"flex justify-between"},Wt={class:"text-[var(--muted)]"},Zt={class:"text-[var(--text)] font-semibold"},te={class:"flex justify-between"},ee={class:"text-[var(--muted)]"},se={class:"text-[var(--text)] font-semibold"},ae={key:3,class:"bg-[var(--surface)] backdrop-blur-sm rounded-2xl border border-[var(--border)] p-12 text-center"},oe={class:"text-3xl font-bold text-[var(--text)] mb-4"},re={class:"text-xl text-[var(--muted)] mb-8"},ne={key:0,class:"text-xs text-[var(--subtle)] mb-6 font-mono break-all"},ie={class:"rounded-xl border border-[var(--border)] bg-[var(--surface-2)] p-6 mb-8"},le={class:"flex items-start space-x-3"},de={class:"text-sm text-[var(--muted)] text-left"},ce={class:"font-semibold mb-1 text-[var(--text)]"},ue={class:"list-disc list-inside space-y-1 text-[var(--muted)]"},ve={class:"flex flex-col sm:flex-row gap-4"},xe=["disabled"],we=D({__name:"sucesso",setup(me){const{tn:a}=q(),z=O(),M=T(),{formatarValor:y,formatarPeriodicidade:k}=$(),{refreshUser:V,isAuthenticated:m,user:h}=U(),b=g(()=>z.query.session_id||""),v=G(),x=w(!0),c=w(!1),f=w(!1),u=g(()=>h.value?.assinatura?.assinatura_ativa===!0),l=g(()=>h.value?.assinatura?.assinatura||null),_=async()=>{try{await V(),!f.value&&h.value?.assinatura?.assinatura?.plano?.perfil==="marketing"&&(f.value=!0),await new Promise(i=>setTimeout(i,100))}catch(i){console.error("Erro ao verificar assinatura:",i)}finally{x.value=!1,c.value=!1}},j=async()=>{c.value=!0,await _()},p=async()=>{await H("/dashboard")},B=()=>{M.push("/login-mkt")},A=i=>{if(!i)return"-";const o=new Date(i);return new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric"}
1).format(o)};let d=null;function P(){v.limpar(),v.limparCheckoutMarketing()}return I(u,i=>{i&&P()}),E(()=>{if(f.value=v.ehFunilMarketingAtivo(),!m.value){x.value=!1;return}_(),d=L(()=>{!u.value&&!x.value&&m.value?_():u.value&&d&&(clearInterval(d),d=null)},1e4)}),N(()=>{d&&(clearInterval(d),d=null),v.limparCheckoutMarketing(),u.value&&v.limpar()}),(i,o)=>{const S=F;return f.value?(n(),r("div",X,[o[5]||(o[5]=t("div",{class:"pointer-events-none fixed inset-0 bg-[linear-gradient(180deg,var(--bg)_0%,var(--bg-2)_55%,var(--bg)_100%)]","aria-hidden":""},null,-1)),o[6]||(o[6]=t("div",{class:"pointer-events-none fixed -right-24 top-0 h-80 w-80 rounded-full bg-[var(--accent-soft)] blur-3xl opacity-50","aria-hidden":""},null,-1)),t("div",Y,[t("header",J,[R(S,{size:"md"})]),s(m)?x.value?(n(),r("div",Z,[o[2]||(o[2]=t("div",{class:"mx-auto mb-6 h-12 w-12 animate-spin rounded-full border-2 border-[var(--accent)] border-t-transparent"},null,-1)),t("h2",tt,e(s(a)("Verificando pagamento…")),1),t("p",et,e(s(a)("Aguarde enquanto confirmamos sua assinatura. A Stripe pode levar alguns segundos.")),1)])):u.value?(n(),r("div",st,[o[3]||(o[3]=t("div",{class:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-[var(--status-success)] text-white"},[t("svg",{class:"h-8 w-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"})])],-1)),t("p",at,e(s(a)("Pagamento confirmado")),1),t("h1",ot,e(s(a)("Bem-vindo ao Growthify!")),1),t("p",rt,e(s(a)("Sua assinatura foi ativada com sucesso.")),1),t("div",nt,[t("h3",it,e(s(a)("Detalhes da assinatura")),1),t("dl",lt,[t("div",dt,[t("dt",ct,e(s(a)("Plano")),1),t("dd",ut,e(l.value?.plano?.nome),1)]),t("div",vt,[t("dt",xt,e(s(a)("Valor")),1),t("dd",mt,e(s(y)(l.value?.valor||0)),1)]),t("div",bt,[t("dt",ft,e(s(a)("Periodicidade")),1),t("dd",pt,e(s(k)(l.value?.periodicidade||"")),1)]),t("div",ht,[t("dt",_t,e(s(a)("Próxima cobrança")),1),t("dd",gt,e(A(l.value?.data_proxima_cobranca)),1)])])]),t("button",{type:"button",class:"btn-primary-gradient mt-8 inline-flex w-full items-center justify-center rounded-xl px-6 py-3.5 text-sm font-semibold text-white transition duration-200 hover:brightness-110",onClick:p},e(s(a)("Acessar plataforma")),1)])):(n(),r("div",wt,[o[4]||(o[4]=t("div",{class:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-2xl bg-[var(--accent-soft)] text-[var(--accent)]"},[t("svg",{class:"h-8 w-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),t("h1",yt,e(s(a)("Aguardando confirmação")),1),t("p",kt,e(s(a)("Seu pagamento foi enviado à Stripe. A assinatura ativa assim que o sistema receber a confirmação — normalmente em segundos.")),1),b.value?(n(),r("p",jt," Ref.: "+e(b.value),1)):C("",!0),t("div",At,[t("p",Ct,e(s(a)("O que fazer agora?")),1),t("ul",zt,[t("li",null,e(s(a)("Aguarde a confirmação do pagamento")),1),t("li",null,e(s(a)("Esta página atualiza automaticamente a cada 10 segundos")),1),t("li",null,e(s(a)("Dúvidas? Fale com o suporte")),1)])]),t("div",Mt,[t("button",{type:"button",disabled:c.value,class:"flex-1 rounded-xl border border-[var(--border)] bg-[var(--surface-2)] px-4 py-3 text-sm font-semibold text-[var(--text)] transition duration-200 hover:bg-[var(--surface)] disabled:opacity-60",onClick:j},e(c.value?"Verificando…":"Verificar novamente"),9,Vt),t("button",{type:"button",class:"btn-primary-gradient flex-1 rounded-xl px-4 py-3 text-sm font-semibold text-white transition duration-200 hover:brightness-110",onClick:p},e(s(a)("Continuar")),1)])])):(n(),r("div",K,[o[1]||(o[1]=t("div",{class:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-2xl bg-[var(--accent-soft)] text-[var(--accent)]"},[t("svg",{class:"h-8 w-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])],-1)),t("h1",Q,e(s(a)("Faça login novamente")),1),t("p",W,e(s(a)("Sua sessão expirou. Entre de novo para confirmar sua assinatura Growthify.")),1),t("button",{type:"button",class:"btn-primary-gradient mt-8 inl
1ine-flex w-full items-center justify-center rounded-xl px-6 py-3.5 text-sm font-semibold text-white transition duration-200 hover:brightness-110",onClick:B},e(s(a)("Fazer login")),1)])),t("p",Bt," © "+e(new Date().getFullYear())+" Genesis S.A. ",1)])])):(n(),r("div",Pt,[t("div",St,[s(m)?x.value?(n(),r("div",It,[o[8]||(o[8]=t("div",{class:"animate-spin rounded-full h-16 w-16 border-b-2 border-[var(--accent)] mx-auto mb-6"},null,-1)),t("h2",Et,e(s(a)("Verificando pagamento...")),1),t("p",Lt,e(s(a)("Aguarde enquanto confirmamos sua assinatura. O Stripe pode levar alguns segundos para notificar o sistema.")),1)])):u.value?(n(),r("div",Nt,[o[9]||(o[9]=t("div",{class:"bg-[var(--status-success)] rounded-full w-20 h-20 flex items-center justify-center mx-auto mb-6"},[t("svg",{class:"w-12 h-12 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"})])],-1)),t("h1",Rt,e(s(a)("Assinatura Ativada!")),1),t("p",Gt,e(s(a)("Parabéns! Sua assinatura foi confirmada com sucesso.")),1),t("div",Ht,[t("h3",Ot,e(s(a)("Detalhes da Assinatura")),1),t("div",Tt,[t("div",$t,[t("span",Ut,e(s(a)("Plano:")),1),t("span",Xt,e(l.value?.plano?.nome),1)]),t("div",Yt,[t("span",Jt,e(s(a)("Valor:")),1),t("span",Kt,e(s(y)(l.value?.valor||0)),1)]),t("div",Qt,[t("span",Wt,e(s(a)("Periodicidade:")),1),t("span",Zt,e(s(k)(l.value?.periodicidade||"")),1)]),t("div",te,[t("span",ee,e(s(a)("Próxima cobrança:")),1),t("span",se,e(A(l.value?.data_proxima_cobranca)),1)])])]),t("button",{onClick:p,class:"btn-primary-gradient w-full py-4 font-bold rounded-xl transition-all duration-200 shadow-lg"},e(s(a)("Ir para o Dashboard")),1)])):(n(),r("div",ae,[o[11]||(o[11]=t("div",{class:"bg-[var(--accent)] rounded-full w-20 h-20 flex items-center justify-center mx-auto mb-6"},[t("svg",{class:"w-12 h-12 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),t("h1",oe,e(s(a)("Aguardando confirmação")),1),t("p",re,e(s(a)("Seu pagamento foi enviado à Stripe. A assinatura ativa assim que o servidor receber a confirmação (normalmente em segundos).")),1),b.value?(n(),r("p",ne,e(s(a)("Referência:"))+" "+e(b.value),1)):C("",!0),t("div",ie,[t("div",le,[o[10]||(o[10]=t("svg",{class:"w-6 h-6 text-[var(--accent)] flex-shrink-0 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20"},[t("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1)),t("div",de,[t("p",ce,e(s(a)("O que fazer agora?")),1),t("ul",ue,[t("li",null,e(s(a)("Aguarde a confirmação do pagamento pela operadora")),1),t("li",null,e(s(a)("Você receberá uma notificação quando estiver tudo pronto")),1),t("li",null,e(s(a)("Em caso de dúvidas, entre em contato com o suporte")),1)])])])]),t("div",ve,[t("button",{onClick:j,disabled:c.value,class:"flex-1 py-4 bg-[var(--surface-2)] hover:brightness-110 disabled:opacity-60 text-[var(--text)] font-semibold rounded-lg border border-[var(--border)] transition-colors"},e(c.value?"Verificando...":"Verificar Novamente"),9,xe),t("button",{onClick:p,class:"btn-primary-gradient flex-1 py-4 font-bold rounded-xl transition-all duration-200"},e(s(a)("Continuar")),1)])])):(n(),r("div",Ft,[o[7]||(o[7]=t("div",{class:"bg-[var(--accent)] rounded-full w-20 h-20 flex items-center justify-center mx-auto mb-6"},[t("svg",{class:"w-12 h-12 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])],-1)),t("h1",Dt,e(s(a)("Faça Login Novamente")),1),t("p",qt,e(s(a)("Sua sessão expirou. Faça login novamente para confirmar sua assinatura.")),1),t("button",{onClick:o[0]||(o[0]=be=>i.$router.push("/")),class:"btn-primary-gradient px-8 py-4 font-bold rounded-xl transition-all duration-200"},e(s(a)("Fazer Login")),1)]))])]))}}});
1export{we 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.