import{j as e,m as s}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc35.js";import{u,b as h,e as v}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc34.js";import{m as b}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc323.js";import{B as k,S as g}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc348.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc37.js";import{b as N}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc366.js";import{o as _}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc367.js";import{s as z}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc368.js";import{a as $,b as U,c as w,d as S,e as y,f as V,g as C,h as E}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc360.js";import{u as j}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc347.js";import{f as B}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc36.js";import{r as F}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc3.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc33.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc32.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc39.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc310.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc320.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc38.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc311.js";const f=({goto_suporte:a})=>{const r=u(n=>n.language);return e.jsx(s.div,{whileHover:{scale:1.02},whileTap:{scale:.98},className:"w-full",children:e.jsxs(k,{variant:"outline",size:"lg",onClick:a,className:`
                    w-full h-12 rounded-xl 
                    border-2 border-neutral-200 dark:border-neutral-800                                                                          
                    bg-white dark:bg-neutral-950/50
                    text-neutral-700 dark:text-neutral-200 font-bold
                    hover:bg-neutral-50 dark:hover:bg-neutral-900 
                    hover:border-neutral-300 dark:hover:border-neutral-700
                    transition-all group
                `,children:[e.jsxs(s.div,{className:"mr-3 shrink-0",whileHover:{rotate:[0,-10,10,0]},transition:{duration:.5},children:[e.jsx("img",{src:chrome.runtime.getURL("label/icons/plugin/suporte.png"),alt:"Ícone Suporte",className:"w-9 h-9 rounded-full object-cover shadow-sm border border-neutral-100 dark:border-neutral-800",onError:n=>{n.currentTarget.src=chrome.runtime.getURL(`content/${z}`)}}),e.jsx($,{size:20,className:"hidden text-neutral-500"})]}),e.jsx("span",{children:r.status_suporte_btn})]})})},R=()=>{const a=u(o=>o.language),r=h(o=>o.user),n=b(o=>o.close),{checkout:d,suporte_premium:m}=v(j(o=>({checkout:o.getUrl("principais","checkout"),suporte_premium:o.getUrl("principais","suporte_premium")}))),l={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},i={hidden:{y:20,opacity:0},visible:{y:0,opacity:1}},t=()=>{n(),_(m.link,`
            Olá, finalizei o *TESTE PREMIUM* e preciso de suporte!

        *email:* ${r.email}`.trim())};return e.jsxs("div",{className:"w-full max-w-md mx-auto overflow-hidden bg-white dark:bg-black rounded-[2.5rem] shadow-2xl",children:[e.jsxs("div",{className:"relative h-32 bg-gradient-to-br from-[color-mix(in_srgb,var(--primaria),transparent_80%)] via-[color-mix(in_srgb,var(--primaria),transparent_90%)] to-transparent flex items-center justify-center",children:[e.jsx(s.div,{className:"relative z-10 w-16 h-16 bg-[var(--primaria)] rounded-2xl flex items-center justify-center text-white",children:e.jsx(B,{size:32,fill:"currentColor"})}),e.jsx("div",{className:"absolute bottom-0 left-0 w-full h-16 bg-gradient-to-t from-white dark:from-black to-transparent pointer-events-none"})]}),e.jsxs(s.div,{variants:l,initial:"hidden",animate:"visible",className:"px-8 pb-8 text-center",children:[e.jsxs(s.h1,{variants:i,className:"text-3xl font-black uppercase tracking-tighter text-slate-900 dark:text-white mb-3",children:[a.status_ass_teste," ",e.jsx("span",{className:"text-[var(--primaria)]",children:a.status_ass_teste_finalizado})]}),e.jsx(s.p,{variants:i,className:"text-slate-500 dark:text-slate-400 text-sm leading-relaxed mb-8",children:a.status_ass_teste_desc}),e.jsx(s.div,{variants:i,className:"flex flex-wrap justify-center gap-3 mb-8",children:[a.status_ass_automations,a.status_ass_fluxo_atendimento,a.followUp,a.status_ass_suspended_respostas_rapidas,a.status_ass_suspended_muito_mais].map(o=>e.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-bold uppercase tracking-widest bg-slate-100 dark:bg-slate-900 px-3 py-1 rounded-full text-slate-600 dark:text-slate-400 border border-slate-200 dark:border-slate-800",children:[e.jsx(U,{className:"text-[var(--primaria)]"})," ",o]},o))}),e.jsx(g,{className:"mb-8 opacity-50"}),e.jsxs(s.div,{variants:i,className:"space-y-3",children:[e.jsxs(k,{size:"lg",className:"w-full h-14 rounded-2xl bg-[var(--primaria)] hover:bg-[var(--secundaria)] text-white font-black text-xs uppercase tracking-[0.2em] group transition-all",onClick:()=>{N(),window.open(d.link,"_blank")},children:[e.jsx("span",{children:a.btnPremium}),e.jsx(w,{size:18,className:"ml-2 group-hover:translate-x-1 transition-transform"})]}),e.jsx(f,{goto_suporte:t})]})]})]})},A=()=>{const a=u(t=>t.language),r=h(t=>t.user),n=b(t=>t.close),{suporte_premium:d}=v(j(t=>({suporte_premium:t.getUrl("principais","suporte_premium")}))),m={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},l={hidden:{y:20,opacity:0},visible:{y:0,opacity:1}},i=()=>{n(),_(d.link,`
            Olá, estou com a assinatura *CANCELADA* e preciso de suporte!
    
        *email:* ${r.email}
        *assinatura_id:* ${r.user_premium?.id_assinatura}
            `.trim())};return e.jsxs("div",{className:"w-full max-w-md mx-auto overflow-hidden bg-white dark:bg-black rounded-[2.5rem] shadow-2xl border border-[var(--primaria)]/10 dark:border-[var(--primaria)]/20",children:[e.jsx("div",{className:"relative h-32 bg-gradient-to-br from-[var(--primaria)]/20 via-[var(--primaria)]/5 to-transparent flex items-center justify-center",children:e.jsx(s.div,{className:"w-16 h-16 bg-[var(--primaria)] rounded-2xl flex items-center justify-center text-white",children:e.jsx(S,{size:32})})}),e.jsxs(s.div,{variants:m,initial:"hidden",animate:"visible",className:"px-8 pb-8 text-center",children:[e.jsxs(s.h1,{variants:l,className:"text-3xl font-black uppercase tracking-tighter text-slate-900 dark:text-white mb-3",children:[a.assinatura," ",e.jsx("span",{className:"text-[var(--primaria)]",children:a.cancelada})]}),e.jsx(s.p,{variants:l,className:"text-slate-500 dark:text-slate-400 text-sm leading-relaxed mb-8",children:a.status_ass_canceled_desc}),e.jsx(s.div,{variants:l,className:"bg-[var(--primaria)]/5 dark:bg-[var(--primaria)]/30 border border-[var(--primaria)]/10 dark:border-[var(--primaria)]/40 p-4 rounded-2xl mb-8",children:e.jsx("p",{className:"text-xs font-bold text-[var(--primaria)] leading-tight",children:a.status_ass_canceled_text})}),e.jsx(g,{className:"mb-8 opacity-50"}),e.jsxs(s.div,{variants:l,className:"space-y-3",children:[e.jsx(f,{goto_suporte:i}),e.jsx("p",{className:"text-[10px] text-slate-400 dark:text-slate-500 font-medium px-4",children:a.status_ass_canceled_aviso})]})]})]})},L=()=>{const a=u(c=>c.language),r=h(c=>c.user),n=b(c=>c.close),{checkout:d,suporte_premium:m}=v(j(c=>({checkout:c.getUrl("principais","checkout"),suporte_premium:c.getUrl("principais","suporte_premium")}))),l={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},i={hidden:{y:20,opacity:0},visible:{y:0,opacity:1}},t=()=>{N(),window.open(d.link,"_blank")},o=()=>{n(),_(m.link,`
Olá, estou com a assinatura *VENCIDA* e preciso de suporte!

email: ${r.email}
assinatura_id: ${r.user_premium?.id_assinatura}
      `.trim())},x=()=>{n()};return e.jsxs("div",{className:"w-full max-w-md mx-auto overflow-hidden bg-white dark:bg-black rounded-[2.5rem] shadow-2xl border border-rose-100 dark:border-rose-900/20",children:[e.jsx("div",{className:"relative h-32 bg-gradient-to-br from-[var(--primaria)]/20 via-[var(--secundaria)]/5 to-transparent flex items-center justify-center",children:e.jsx(s.div,{className:"w-16 h-16 bg-[var(--primaria)] rounded-2xl  flex items-center justify-center text-white",children:e.jsx(y,{size:32})})}),e.jsxs(s.div,{variants:l,initial:"hidden",animate:"visible",className:"px-8 pb-8 text-center",children:[e.jsxs(s.h1,{variants:i,className:"text-3xl font-black uppercase tracking-tighter text-slate-900 dark:text-white mb-3",children:[a.assinatura," ",e.jsx("span",{className:"text-[var(--primaria)]",children:a.status_ass_overdue_venc})]}),e.jsx(s.p,{variants:i,className:"text-slate-500 dark:text-slate-400 text-sm leading-relaxed mb-6",children:a.status_ass_overdue_desc}),e.jsxs(s.div,{variants:i,className:"bg-[var(--primaria)] dark:bg-[var(--primaria)]/30 border border-rose-100 dark:border-rose-900/40 p-4 rounded-2xl mb-8 flex items-center gap-3 text-left",children:[e.jsx("div",{className:"bg-white p-2 rounded-lg shrink-0 text-[var(--primaria)]",children:e.jsx(V,{size:18})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold text-white",children:a.status_ass_overdue_dados}),e.jsx("p",{className:"text-[10px] text-white",children:a.status_ass_overdue_reactive})]})]}),e.jsx(g,{className:"mb-8 opacity-50"}),e.jsxs(s.div,{variants:i,className:"space-y-6",children:[e.jsxs(k,{size:"lg",onClick:t,className:`w-full h-14 rounded-2xl
                       bg-[var(--primaria)]
                       text-white font-black
                       text-xs uppercase tracking-[0.2em]
                       group transition-all`,children:[e.jsx("span",{children:a.status_ass_btn}),e.jsx(w,{size:18,className:"ml-2 group-hover:translate-x-1 transition-transform"})]}),e.jsx(f,{goto_suporte:o}),e.jsx("button",{onClick:x,className:`mt-10 block w-full text-center
                       text-[12px] uppercase tracking-widest
                       text-slate-400 hover:text-slate-600
                       dark:text-slate-500 dark:hover:text-slate-300
                       transition-colors`,children:"Resolver depois"})]})]})]})},O=()=>{const a=u(t=>t.language),r=h(t=>t.user),n=b(t=>t.close),{suporte_premium:d}=v(j(t=>({suporte_premium:t.getUrl("principais","suporte_premium")}))),m={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},l={hidden:{y:20,opacity:0},visible:{y:0,opacity:1}},i=()=>{n(),_(d.link,`
            Olá, estou com a assinatura *SUSPENSA* e preciso de suporte!
            
                *email:* ${r.email}
                *assinatura_id:* ${r.user_premium?.id_assinatura}`.trim())};return e.jsxs("div",{className:"w-full max-w-md mx-auto overflow-hidden bg-white dark:bg-black rounded-[2.5rem] shadow-2xl border border-amber-100 dark:border-neutral-900",children:[e.jsx("div",{className:"relative h-32 bg-gradient-to-br from-[var(--primaria)]/20 via-[var(--secundaria)]/5 to-transparent flex items-center justify-center",children:e.jsx(s.div,{className:"w-16 h-16 bg-[var(--primaria)] rounded-2xl  flex items-center justify-center text-white",children:e.jsx(C,{size:32})})}),e.jsxs(s.div,{variants:m,initial:"hidden",animate:"visible",className:"px-8 pb-8 text-center",children:[e.jsxs(s.h1,{variants:l,className:"text-3xl font-black uppercase tracking-tighter text-slate-900 dark:text-white mb-3",children:[a.assinatura," ",e.jsx("span",{className:"text-[var(--primaria)]",children:a.status_ass_suspended_sus})]}),e.jsx(s.p,{variants:l,className:"text-slate-500 dark:text-slate-400 text-sm leading-relaxed mb-6",children:a.status_ass_suspended_desc}),e.jsxs(s.div,{variants:l,className:"bg-[var(--primaria)] border-[var(--primaria)]/40 p-4 rounded-2xl mb-8 flex items-start gap-3 text-left",children:[e.jsx(E,{className:"text-white mt-1 shrink-0 animate-spin-slow"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold text-white ",children:a.status_ass_suspended_suport}),e.jsx("p",{className:"text-[10px] text-white",children:a.status_ass_suspended_reactive})]})]}),e.jsx(g,{className:"mb-8 opacity-50"}),e.jsx(s.div,{variants:l,className:"space-y-3",children:e.jsx(f,{goto_suporte:i})})]})]})},T=({days:a})=>{const r=u(p=>p.language),n=h(p=>p.user),d=b(p=>p.close),{checkout:m,suporte_premium:l}=v(j(p=>({checkout:p.getUrl("principais","checkout"),suporte_premium:p.getUrl("principais","suporte_premium")}))),i=a<=3,t=F.useMemo(()=>i?{color:"[var(--primaria)]",gradient:"from-[var(--primaria)]/20 via-[var(--primaria)]/5",iconBg:"bg-[var(--primaria)]",textColor:"text-[var(--primaria)]",borderColor:"border-[var(--primaria)]/10 dark:border-[var(--primaria)]/20",buttonBg:"bg-[var(--primaria)] hover:bg-[var(--primaria)]",icon:e.jsx(C,{size:32}),title:r.status_ass_title_1}:{color:"[var(--primaria)]",gradient:"from-[var(--primaria)]/20 via-[var(--primaria)]/5",iconBg:"bg-[var(--primaria)]",textColor:"text-[var(--primaria)]",borderColor:"border-[var(--primaria)]/10 dark:border-[var(--primaria)]/20",buttonBg:"bg-[var(--primaria)] hover:bg-[var(--primaria)]",icon:e.jsx(y,{size:32}),title:r.status_ass_title_2},[i,r]),o={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},x={hidden:{y:20,opacity:0},visible:{y:0,opacity:1}},c=()=>{d(),_(l.link,`
            Olá, estou com a assinatura *VENCENDO* e preciso de suporte!

    *email:* ${n.email}
    *assinatura_id:* ${n.user_premium?.id_assinatura}
        `.trim())};return e.jsxs("div",{className:`w-full max-w-md mx-auto overflow-hidden bg-white dark:bg-black rounded-[2.5rem] shadow-2xl border ${t.borderColor} transition-colors duration-500`,children:[e.jsxs("div",{className:`relative h-32 bg-gradient-to-br ${t.gradient} to-transparent flex items-center justify-center transition-colors duration-500`,children:[e.jsx(s.div,{className:`w-16 h-16 ${t.iconBg} rounded-2xl flex items-center justify-center text-white z-10`,children:t.icon}),e.jsx("span",{className:`absolute font-black text-9xl opacity-5 select-none ${t.textColor}`,children:a})]}),e.jsxs(s.div,{variants:o,initial:"hidden",animate:"visible",className:"px-8 pb-8 text-center",children:[e.jsx(s.h1,{variants:x,className:"text-2xl font-black uppercase tracking-tighter text-slate-900 dark:text-white mb-3",children:t.title}),e.jsx(s.p,{variants:x,className:"text-slate-500 dark:text-slate-400 text-sm leading-relaxed mb-6",children:i?e.jsx("span",{className:"font-semibold text-rose-600 dark:text-rose-400",children:r.status_ass_text_1}):r.status_ass_text_2}),e.jsx(g,{className:"mb-8 opacity-50"}),e.jsxs(s.div,{variants:x,className:"space-y-3",children:[e.jsxs(k,{size:"lg",className:`w-full h-14 rounded-2xl ${t.buttonBg} text-white font-black text-xs uppercase tracking-[0.2em] group transition-all`,onClick:()=>{N(),window.open(m.link,"_blank")},children:[e.jsx("span",{children:r.status_ass_btn}),e.jsx(w,{size:18,className:"ml-2 group-hover:translate-x-1 transition-transform"})]}),e.jsx(f,{goto_suporte:c})]})]})]})};function ie({status:a,days:r=NaN}){return{test_finished:e.jsx(R,{}),canceled:e.jsx(A,{}),suspended:e.jsx(O,{}),overdue:e.jsx(L,{}),active:e.jsx(T,{days:r}),free:null}[a]}export{ie as default};
