import{j as a,$ as u,y as v,K as x,_ as n}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080910.js";import{a as s}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508094.js";import{u as m}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080919.js";import{a as d,b as h}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080921.js";import{q as f,U as _}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080923.js";import{H as j}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080980.js";import{F as b}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508098.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080918.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508097.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b2250809.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508095.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508099.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080947.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508096.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508092.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508093.js";function g(){const{label:o}=f(),{language:i}=m(),{setActiveMenu:r}=d(),{send:l}=h(),t=[{name:"Envio Rápido",ico:a.jsx(b,{size:20}),tooltip:`${i.envio_rapido}`},{name:"Contatos",ico:a.jsx(u,{size:20}),tooltip:`${i.contatos}`},{name:"Enviar Campanha",ico:a.jsx(j,{size:20}),tooltip:`${i.enviar_campanha}`},{name:"Relatório",ico:a.jsx(_,{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 E=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080976.js")),[])),w=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080977.js")),[])),z=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080978.js")),[])),N=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080979.js")),[]));function H(){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(E,{})),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(g,{}),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{H as default};
