import{j as a,$ as u,y as v,K as x,_ as n}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b10.js";import{a as s}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b4.js";import{u as m}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b19.js";import{a as d,b as h}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b21.js";import{q as f,U as _}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b23.js";import{H as j}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b79.js";import{F as b}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b8.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b18.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b7.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b5.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b9.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b47.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b6.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b2.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b3.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:"Contacts",ico:a.jsx(u,{size:20}),tooltip:`${i.Contacts}`},{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_31_281d2484-5da9-48a8-8939-2c37d755bb5b75.js")),[])),w=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b76.js")),[])),z=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b77.js")),[])),N=s.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b78.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"Contacts":t(a.jsx(w,{})),e(o.Contacts);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};
