import{aX as m,be as u,_ as i}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7111.js";import{j as e,m as n,A as x,r as s}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71.js";import{k as c}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7122.js";import{b as h,u as d}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7120.js";import{s as p}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7124.js";import{u as b}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7162.js";import{h as g,i as f}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a719.js";const _=()=>{const{theme:t,setTheme:r}=h(b(a=>({theme:a.theme,setTheme:a.setTheme})));return e.jsx(n.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(n.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(n.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 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 j=()=>{const{close:t}=c.getState(),{abortFetch:r}=v(),a=d(o=>o.language),l=()=>{r(),t()};return e.jsxs(n.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(m,{className:"w-5 h-5 text-green-600 ml-2"})]})},w=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71165.js")),[])),y=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71166.js")),[]));function N(){const t=p(o=>o.label),{open:r}=c.getState(),a=d(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(_,{}),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}),t.videos_tutoriais?.envio_em_massa?.length>0&&e.jsx(u,{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(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:()=>l(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 O=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));export{O as i,v as u};
