import{aM as u,b2 as x,_ as i}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d17.js";import{j as e,m as l,A as h}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d15.js";import{r as s}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1.js";import{f as c}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d122.js";import{g as p,u as d,e as b}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d14.js";import{u as m}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d146.js";import{n as g,o as f}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d16.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_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1164.js")),[])),y=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1165.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};
