import{j as a,Y as u,v,H as x,_ as n}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{a as s}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import{a as h,u as m}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import{u as d,a as f}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e21.js";import{H as _}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e75.js";import{Q as j}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import{F as g}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e46.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e2.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e3.js";function E(){const{label:o}=h(),{language:i}=m(),{setActiveMenu:r}=d(),{send:l}=f(),t=[{name:"Envio Rápido",ico:a.jsx(g,{size:20}),tooltip:`${i.envio_rapido}`},{name:"Contatos",ico:a.jsx(u,{size:20}),tooltip:`${i.contatos}`},{name:"Enviar Campanha",ico:a.jsx(_,{size:20}),tooltip:`${i.enviar_campanha}`},{name:"Relatório",ico:a.jsx(j,{size:20}),tooltip:`${i.relatorio}`}];return a.jsx("div",{className:"w-[60px] h-[100vh] z-[112] bg-[var(--menu-color)] border-r border-solid border-[var(--conversation-header-border)]",children:a.jsx("div",{className:"animate__animated animate__fadeInLeft h-full my-2 flex flex-col justify-between ml-1",children:a.jsxs("div",{className:"flex flex-col items-center gap-2",children:[a.jsx("div",{className:"lg:tooltip  lg:tooltip-right mb-2","data-tip":o.name,children:a.jsx("div",{className:"pulse cursor-pointer rounded-full w-9 h-9 shadow-lg",children:a.jsx("span",{children:a.jsx("img",{src:chrome.runtime.getURL("label/icons/icon.png"),className:"w-10 rounded-full"})})})}),t.map(e=>{if(!(l&&e.name==="Envio Rápido"))return a.jsx("div",{className:"lg:tooltip  lg:tooltip-right","data-tip":e.tooltip,onClick:()=>r(e.name),children:a.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 b=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e71.js")),[])),w=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e72.js")),[])),z=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e73.js")),[])),N=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e74.js")),[]));function U(){const{language:o}=m(),{activeMenu:i,setOpen:r}=d(),[l,t]=s.useState(),[c,e]=s.useState("");s.useEffect(()=>{switch(i){case"Envio Rápido":t(a.jsx(N,{})),e(o.envio_rapido);break;case"Enviar Campanha":t(a.jsx(z,{})),e(o.enviar_campanha);break;case"Relatório":t(a.jsx(b,{})),e(o.relatorio);break;case"Contatos":t(a.jsx(w,{})),e(o.contatos);break}},[i,o]);const p=a.jsxs("div",{className:"w-[100vw] h-[100vh] flex",children:[a.jsx(E,{}),a.jsxs("div",{className:"p-2 w-full",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("div",{children:a.jsx(v,{children:c})}),a.jsx(x,{name:o.close,funcao:()=>r(!1)})]}),a.jsx(s.Suspense,{fallback:a.jsx(a.Fragment,{}),children:l})]})]});return a.jsx("section",{"data-id":"Envio Em Massa",children:a.jsx("dialog",{className:"animate__animated animate__zoomIn modal modal-bottom sm:modal-middle !absolute overflow-hidden !z-[200]",open:!0,children:a.jsx("div",{className:"modal-box relative overflow-hidden !max-w-none !max-h-none !w-fit !h-fit",children:a.jsx("div",{className:"w-full h-full",children:p})})})})}export{U as default};
