import{bC as x,o as f,q as h,_ as n}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d17.js";import{j as o}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d15.js";import{r as t}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1.js";import{u as p,e as g}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d14.js";import{u as d}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1125.js";import{u}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1104.js";import{f as j}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d122.js";import{H as _}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1153.js";import{l as E}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d134.js";import{u as b}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d146.js";import{D as R}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d16.js";import{E as w}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d143.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d18.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d13.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d12.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d123.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d19.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d110.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d120.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d126.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d145.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d147.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d111.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1105.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d136.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d159.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1106.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1107.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1108.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d135.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1109.js";function z(){const{language:a}=p(),{setActiveMenu:l}=d(),{send:i}=u(),{config:s}=g(b(e=>({config:e.config}))),m=[{name:"Envio Rápido",ico:o.jsx(R,{size:20}),tooltip:`${a.envio_rapido}`},{name:"Contatos",ico:o.jsx(x,{size:20}),tooltip:`${a.contatos}`},{name:"Enviar Campanha",ico:o.jsx(_,{size:20}),tooltip:`${a.enviar_campanha}`},{name:"Relatório",ico:o.jsx(E,{size:20}),tooltip:`${a.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":s.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/plugin/icon.png"),className:"w-10 rounded-full"})})})}),m.map(e=>{if(!(i&&e.name==="Envio Rápido"))return o.jsx("div",{className:"lg:tooltip  lg:tooltip-right","data-tip":e.tooltip,onClick:()=>l(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 y=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1203.js")),[])),M=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1204.js")),[])),L=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1205.js")),[])),N=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1206.js")),[]));function lo(){const{language:a}=p(),{send:l}=u.getState(),{activeMenu:i,setActiveMenu:s}=d(),{open:m}=j.getState();t.useEffect(()=>{s(l?"Enviar Campanha":"Envio Rápido")},[]);const[c,e]=t.useState(),[v,r]=t.useState("");return t.useEffect(()=>{switch(i){case"Envio Rápido":e(o.jsx(N,{})),r(a.envio_rapido);break;case"Enviar Campanha":e(o.jsx(L,{})),r(a.enviar_campanha);break;case"Relatório":e(o.jsx(y,{})),r(a.relatorio);break;case"Contatos":e(o.jsx(M,{})),r(a.contatos);break}},[i,a]),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:a.close,funcao:()=>m(o.jsx(w,{}))})]}),o.jsx(t.Suspense,{fallback:o.jsx(o.Fragment,{}),children:c})]})]})}export{lo as default};
