import{j as o,bv as x,Q as f,a0 as h,_ as l}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{a}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import{u as p}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import{u as d}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf126.js";import{u}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf107.js";import{k as j}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf21.js";import{q as _,b0 as E}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf23.js";import{H as g}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf152.js";import{F as b}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";import{E as R}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf46.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf18.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf6.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf7.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf28.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf5.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf9.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf47.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf2.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf3.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf41.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf38.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf60.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf74.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf108.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf27.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf37.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf109.js";function z(){const{label:t}=_(),{language:s}=p(),{setActiveMenu:i}=d(),{send:r}=u(),c=[{name:"Envio Rápido",ico:o.jsx(b,{size:20}),tooltip:`${s.envio_rapido}`},{name:"Contatos",ico:o.jsx(x,{size:20}),tooltip:`${s.contatos}`},{name:"Enviar Campanha",ico:o.jsx(g,{size:20}),tooltip:`${s.enviar_campanha}`},{name:"Relatório",ico:o.jsx(E,{size:20}),tooltip:`${s.relatorio}`}];return o.jsx("div",{className:"w-[60px] h-[100vh] z-[112] bg-[var(--menu-color)] border-r border-solid border-[var(--conversation-header-border)]",children:o.jsx("div",{className:"animate__animated animate__fadeInLeft h-full my-2 flex flex-col justify-between ml-1",children:o.jsxs("div",{className:"flex flex-col items-center gap-2",children:[o.jsx("div",{className:"lg:tooltip  lg:tooltip-right mb-2","data-tip":t.name,children:o.jsx("div",{className:"pulse cursor-pointer rounded-full w-9 h-9 shadow-lg",children:o.jsx("span",{children:o.jsx("img",{src:chrome.runtime.getURL("label/icons/icon.png"),className:"w-10 rounded-full"})})})}),c.map(e=>{if(!(r&&e.name==="Envio Rápido"))return o.jsx("div",{className:"lg:tooltip  lg:tooltip-right","data-tip":e.tooltip,onClick:()=>i(e.name),children:o.jsx("div",{className:"menu-item pulse cursor-pointer rounded-[10px] bg-[var(--ico-border-color)] p-2 text-[var(--ico-color)]",children:e.ico})},e.name)})]})})})}const w=a.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf202.js")),[])),y=a.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf203.js")),[])),L=a.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf204.js")),[])),M=a.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf205.js")),[]));function so(){const{language:t}=p(),{send:s}=u.getState(),{activeMenu:i,setActiveMenu:r}=d(),{open:c}=j.getState();a.useEffect(()=>{r(s?"Enviar Campanha":"Envio Rápido")},[]);const[m,e]=a.useState(),[v,n]=a.useState("");return a.useEffect(()=>{switch(i){case"Envio Rápido":e(o.jsx(M,{})),n(t.envio_rapido);break;case"Enviar Campanha":e(o.jsx(L,{})),n(t.enviar_campanha);break;case"Relatório":e(o.jsx(w,{})),n(t.relatorio);break;case"Contatos":e(o.jsx(y,{})),n(t.contatos);break}},[i,t]),o.jsxs("div",{className:"w-screen h-screen flex bg-[var(--background-document-with-captions)]","data-id":"eem-old",children:[o.jsx(z,{}),o.jsxs("div",{className:"p-2 w-full",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsx("div",{children:o.jsx(f,{children:v})}),o.jsx(h,{name:t.close,funcao:()=>c(o.jsx(R,{}))})]}),o.jsx(a.Suspense,{fallback:o.jsx(o.Fragment,{}),children:m})]})]})}export{so as default};
