import{j as e,K as s,aB as m,aQ as u,_ as n}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{a as l}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import{k as i}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf21.js";import{b as x,u as c}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import{u as h}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf63.js";import{h as p,i as b}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";const g=()=>{const{theme:t,setTheme:r}=x(h(a=>({theme:a.theme,setTheme:a.setTheme})));return e.jsx(s.button,{onClick:()=>r(!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(m,{mode:"wait",children:t?e.jsx(s.div,{initial:{rotate:-90},animate:{rotate:0},exit:{rotate:90},transition:{duration:.1},children:e.jsx(p,{className:"w-5 h-5 text-yellow-400"})},"sun"):e.jsx(s.div,{initial:{rotate:90},animate:{rotate:0},exit:{rotate:-90},transition:{duration:.1},children:e.jsx(b,{className:"w-5 h-5 text-gray-700"})},"moon")})})};function f(){const t=l.useRef(null);t.current||(t.current=new AbortController);const r=()=>(t.current&&t.current.abort(),t.current=new AbortController,t.current.signal),a=()=>{t.current&&t.current.abort()};return l.useEffect(()=>()=>{t.current&&t.current.abort()},[]),{signal:t.current.signal,getNewController:r,abortFetch:a}}const _=()=>{const{close:t}=i.getState(),{abortFetch:r}=f(),a=c(d=>d.language),o=()=>{r(),t()};return e.jsxs(s.button,{onClick:o,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:[a.painel_voltar_whats,e.jsx(u,{className:"w-5 h-5 text-green-600 ml-2"})]})},v=l.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf163.js")),[])),j=l.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf164.js")),[]));function w(){const{open:t}=i.getState(),r=c(o=>o.language),a=o=>{t(e.jsx(l.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(g,{}),e.jsx(_,{})]}),e.jsx("h1",{className:"text-4xl hd:text-3xl font-bold",children:r.painel_titulo}),e.jsx("p",{className:"text-base mb-4 hd:mb-2",children:r.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:r.painel_modelo_classico}),e.jsx("p",{className:"text-base",children:r.painel_modelo_classico_desc}),e.jsx("button",{onClick:()=>a(j),className:"mt-auto py-3 px-5 bg-[var(--primaria)] text-[var(--letra)] rounded-lg font-medium hover:opacity-90 transition-opacity",children:r.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:r.painel_modelo_novo}),e.jsx("p",{className:"text-base",children:r.painel_modelo_novo_desc}),e.jsx("button",{onClick:()=>a(v),className:"mt-auto py-3 px-5 bg-[var(--primaria)] text-[var(--letra)] rounded-lg font-medium hover:opacity-90 transition-opacity",children:r.painel_modelo_novo_btn})]})]})]})}const T=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"}));export{T as i,f as u};
