import{aM as u,b2 as x,_ as i}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import{j as e,m as l,A as h}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{a as s}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import{f as c}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02831.js";import{d as p,u as d,c as b}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{u as m}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02857.js";import{a2 as g,a3 as f}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0287.js";const _=()=>{const{theme:t,setTheme:a}=p(m(r=>({theme:r.theme,setTheme:r.setTheme})));return e.jsx(l.button,{onClick:()=>a(!t),className:`flex items-center justify-center w-12 h-12 rounded-full
      bg-neutral-200 border border-neutral-300 hover:bg-neutral-300
      dark:bg-neutral-800 dark:border-neutral-700 dark:hover:bg-neutral-700
      backdrop-blur-sm transition-colors duration-300 shadow-xl`,"aria-label":"Alternar tema",whileHover:{scale:1.05},whileTap:{scale:.95},children:e.jsx(h,{mode:"wait",children:t?e.jsx(l.div,{initial:{rotate:-90},animate:{rotate:0},exit:{rotate:90},transition:{duration:.1},children:e.jsx(g,{className:"w-5 h-5 text-yellow-400"})},"sun"):e.jsx(l.div,{initial:{rotate:90},animate:{rotate:0},exit:{rotate:-90},transition:{duration:.1},children:e.jsx(f,{className:"w-5 h-5 text-gray-700"})},"moon")})})};function v(){const t=s.useRef(null);t.current||(t.current=new AbortController);const a=()=>(t.current&&t.current.abort(),t.current=new AbortController,t.current.signal),r=()=>{t.current&&t.current.abort()};return s.useEffect(()=>()=>{t.current&&t.current.abort()},[]),{signal:t.current.signal,getNewController:a,abortFetch:r}}const j=()=>{const{close:t}=c.getState(),{abortFetch:a}=v(),r=d(o=>o.language),n=()=>{a(),t()};return e.jsxs(l.button,{onClick:n,className:`flex items-center justify-center w-auto px-4 font-semibold h-12 rounded-full
      bg-neutral-200 border border-neutral-300 hover:bg-neutral-300
      dark:bg-neutral-800 dark:border-neutral-700 dark:hover:bg-neutral-700
      backdrop-blur-sm transition-colors duration-300 shadow-xl`,"aria-label":"Ir para WhatsApp",whileHover:{scale:1.05},whileTap:{scale:.95},children:[r.painel_voltar_whats,e.jsx(u,{className:"w-5 h-5 text-green-600 ml-2"})]})},w=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028174.js")),[])),y=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028175.js")),[]));function N(){const{open:t}=c.getState(),a=d(o=>o.language),{tutorial_envio_em_massa:r}=b(m(o=>({tutorial_envio_em_massa:o.getUrl("tutoriais","envio_em_massa")}))),n=o=>{t(e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"w-screen h-screen bg-[var(--eem-bg-primary)]"}),children:e.jsx(o,{})}))};return e.jsxs("div",{className:"w-screen h-screen overflow-auto bg-[var(--eem-bg-primary)] flex flex-col gap-5 hd:gap-1 items-center justify-center p-2",children:[e.jsxs("div",{className:"fixed hd:scale-75 top-6 right-6 hd:top-2 hd:right-2 z-50 flex items-center gap-2",children:[e.jsx(_,{}),e.jsx(j,{})]}),e.jsxs("div",{className:"flex gap-3 justify-center items-center",children:[e.jsx("h1",{className:"text-4xl hd:text-3xl font-bold",children:a.painel_titulo}),r.active&&e.jsx(x,{funcao:()=>window.open(r.link,"_blank")})]}),e.jsx("p",{className:"text-base mb-4 hd:mb-2",children:a.painel_subtitulo}),e.jsxs("div",{className:"grid gap-5 hd:gap-0",style:{gridTemplateColumns:"repeat(2, minmax(200px, 330px))"},children:[e.jsxs("div",{className:"rounded-2xl p-5 hd:scale-90 hd:p-4 flex flex-col gap-4",style:{border:"1px solid var(--eem-border-primary)",boxShadow:"var(--box-shadow-3xl)"},children:[e.jsx("h2",{className:"text-2xl font-semibold",children:a.painel_modelo_classico}),e.jsx("p",{className:"text-base",children:a.painel_modelo_classico_desc}),e.jsx("button",{onClick:()=>n(y),className:"mt-auto py-3 px-5 bg-[var(--primaria)] text-[var(--letra)] rounded-lg font-medium hover:opacity-90 transition-opacity",children:a.painel_modelo_classico_btn})]}),e.jsxs("div",{className:"rounded-2xl p-5 flex flex-col gap-4 hd:scale-90 hd:p-4",style:{border:"1px solid var(--eem-border-primary)",boxShadow:"var(--box-shadow-3xl)"},children:[e.jsx("h2",{className:"text-2xl font-semibold",children:a.painel_modelo_novo}),e.jsx("p",{className:"text-base",children:a.painel_modelo_novo_desc}),e.jsx("button",{onClick:()=>n(w),className:"mt-auto py-3 px-5 bg-[var(--primaria)] text-[var(--letra)] rounded-lg font-medium hover:opacity-90 transition-opacity",children:a.painel_modelo_novo_btn})]})]})]})}const P=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));export{P as i,v as u};
