import{bQ as x,V as f,Z as h,_ as n}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f611.js";import{j as o,r as t}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6.js";import{u as p,d as g}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f620.js";import{u as d}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6124.js";import{u}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6104.js";import{k as j}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f622.js";import{H as _}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6152.js";import{b3 as E}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f623.js";import{u as b}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f646.js";import{F as R}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f69.js";import{E as w}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f643.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f619.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f67.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f68.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f626.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f66.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f610.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f645.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f647.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f64.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f63.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f62.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f636.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f659.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6105.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6106.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f635.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6107.js";function z(){const{language:a}=p(),{setActiveMenu:l}=d(),{send:s}=u(),{config:i}=g(b(e=>({config:e.config}))),c=[{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":i.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"})})})}),c.map(e=>{if(!(s&&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_4_e110faba-0ecf-462e-819c-68342bb684f6202.js")),[])),M=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6203.js")),[])),L=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6204.js")),[])),N=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6205.js")),[]));function io(){const{language:a}=p(),{send:l}=u.getState(),{activeMenu:s,setActiveMenu:i}=d(),{open:c}=j.getState();t.useEffect(()=>{i(l?"Enviar Campanha":"Envio Rápido")},[]);const[m,e]=t.useState(),[v,r]=t.useState("");return t.useEffect(()=>{switch(s){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}},[s,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:()=>c(o.jsx(w,{}))})]}),o.jsx(t.Suspense,{fallback:o.jsx(o.Fragment,{}),children:m})]})]})}export{io as default};
