import{j as e,m as i,A as x,aZ as h,bg as p,_ as d}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f10.js";import{a as s}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f4.js";import{l as m}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f21.js";import{b,u}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f19.js";import{s as g}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f23.js";import{u as f}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f61.js";import{h as _,i as v}from"./v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f8.js";const j=()=>{const{theme:t,setTheme:r}=b(f(a=>({theme:a.theme,setTheme:a.setTheme})));return e.jsx(i.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(x,{mode:"wait",children:t?e.jsx(i.div,{initial:{rotate:-90},animate:{rotate:0},exit:{rotate:90},transition:{duration:.1},children:e.jsx(_,{className:"w-5 h-5 text-yellow-400"})},"sun"):e.jsx(i.div,{initial:{rotate:90},animate:{rotate:0},exit:{rotate:-90},transition:{duration:.1},children:e.jsx(v,{className:"w-5 h-5 text-gray-700"})},"moon")})})};function w(){const t=s.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 s.useEffect(()=>()=>{t.current&&t.current.abort()},[]),{signal:t.current.signal,getNewController:r,abortFetch:a}}const y=()=>{const{close:t}=m.getState(),{abortFetch:r}=w(),a=u(n=>n.language),l=()=>{r(),t()};return e.jsxs(i.button,{onClick:l,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(h,{className:"w-5 h-5 text-green-600 ml-2"})]})},N=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f163.js")),[])),k=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_18_ea7d0884-20ea-4e04-b6f3-cef449ac182f164.js")),[]));function E(){var n,c;const t=g(o=>o.label),{open:r}=m.getState(),a=u(o=>o.language),l=o=>{r(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(j,{}),e.jsx(y,{})]}),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}),((c=(n=t.videos_tutoriais)==null?void 0:n.envio_em_massa)==null?void 0:c.length)>0&&e.jsx(p,{funcao:()=>window.open(t.videos_tutoriais.envio_em_massa,"_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:()=>l(k),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:()=>l(N),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 R=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"}));export{R as i,w as u};
