import{j as a,a0 as u,y as v,Q as x,_ as n}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9910.js";import{a as s}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c994.js";import{u as m}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9919.js";import{a as d,b as h}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9921.js";import{q as f,V as _}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9923.js";import{H as j}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9979.js";import{F as b}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c998.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9918.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c996.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c997.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c99.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c995.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c999.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9947.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c992.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c993.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_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9975.js")),[])),w=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9976.js")),[])),z=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9977.js")),[])),N=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9978.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(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{U as default};
